// @ts-nocheck
import { GraphQLResolveInfo, SelectionSetNode, FieldNode, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql';
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
import { gql } from '@graphql-mesh/utils';

import type { GetMeshOptions } from '@graphql-mesh/runtime';
import type { YamlConfig } from '@graphql-mesh/types';
import { defaultImportFn, handleImport } from '@graphql-mesh/utils';
import { PubSub } from '@graphql-mesh/utils';
import { DefaultLogger } from '@graphql-mesh/utils';
import type { MeshResolvedSource } from '@graphql-mesh/runtime';
import type { MeshTransform, MeshPlugin } from '@graphql-mesh/types';
import { createMeshHTTPHandler, MeshHTTPHandler } from '@graphql-mesh/http';
import { getMesh, type ExecuteMeshFn, type SubscribeMeshFn, type MeshContext as BaseMeshContext, type MeshInstance } from '@graphql-mesh/runtime';
import { MeshStore, FsStoreStorageAdapter } from '@graphql-mesh/store';
import { path as pathModule } from '@graphql-mesh/cross-helpers';
import type { ImportFn } from '@graphql-mesh/types';
import type { GreenInvoiceNewTypes } from './sources/GreenInvoiceNew/types';
import type { GreenInvoiceTypes } from './sources/GreenInvoice/types';
export type Maybe<T> = T | null;
export type InputMaybe<T> = Maybe<T>;
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
export type RequireFields<T, K extends keyof T> = Omit<T, K> & { [P in K]-?: NonNullable<T[P]> };



/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
  ID: { input: string; output: string; }
  /** The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text. */
  String: { input: string; output: string; }
  /** The `Boolean` scalar type represents `true` or `false`. */
  Boolean: { input: boolean; output: boolean; }
  /** The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1. */
  Int: { input: number; output: number; }
  /** The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point). */
  Float: { input: number; output: number; }
  /** Floats that will have a value of 0 or more. */
  NonNegativeFloat: { input: number; output: number; }
  /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
  JSON: { input: any; output: any; }
  /** A field whose value conforms to the standard internet email address format as specified in HTML Spec: https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address. */
  EmailAddress: { input: string; output: string; }
  /** A field whose value is a generic Universally Unique Identifier: https://en.wikipedia.org/wiki/Universally_unique_identifier. */
  UUID: { input: string; output: string; }
  /** A string that cannot be passed as an empty value */
  NonEmptyString: { input: string; output: string; }
  /** Integers that will have a value of 0 or more. */
  NonNegativeInt: { input: number; output: number; }
  /** Represents date values */
  Date: { input: string; output: string; }
  /** Floats that will have a value greater than 0. */
  PositiveFloat: { input: number; output: number; }
  /** Integers that will have a value greater than 0. */
  PositiveInt: { input: number; output: number; }
  ObjMap: { input: unknown; output: unknown; }
};

export type Query = {
  getDocument?: Maybe<_DOLLAR_defs_Document>;
  searchDocuments?: Maybe<_DOLLAR_defs_searchDocumentsResponse>;
  previewDocument?: Maybe<_DOLLAR_defs_previewDocumentResponse>;
  getLinkedDocuments?: Maybe<_DOLLAR_defs_GetLinkedDocuments>;
  getDocumentsDownloadLinks?: Maybe<_DOLLAR_defs_Url>;
  getExpense?: Maybe<_DOLLAR_defs_GetExpense>;
  searchExpenses?: Maybe<_DOLLAR_defs_searchExpensesResponse>;
  searchExpenseDrafts?: Maybe<searchExpenseDrafts_response>;
  getClient?: Maybe<_DOLLAR_defs_getClientResponse>;
  getFileUploadUrl?: Maybe<_DOLLAR_defs_getFileUploadUrlResponse>;
  getBankTransactions?: Maybe<_DOLLAR_defs_getBankTransactionsResponse>;
};


export type QuerygetDocumentArgs = {
  id: Scalars['String']['input'];
};


export type QuerysearchDocumentsArgs = {
  input?: InputMaybe<_DOLLAR_defs_searchDocumentsRequest_Input>;
};


export type QuerypreviewDocumentArgs = {
  input?: InputMaybe<_DOLLAR_defs_DocumentInputNew_Input>;
};


export type QuerygetLinkedDocumentsArgs = {
  id: Scalars['String']['input'];
};


export type QuerygetDocumentsDownloadLinksArgs = {
  id: Scalars['String']['input'];
};


export type QuerygetExpenseArgs = {
  id: Scalars['String']['input'];
};


export type QuerysearchExpensesArgs = {
  input?: InputMaybe<_DOLLAR_defs_searchExpensesRequest_Input>;
};


export type QuerysearchExpenseDraftsArgs = {
  input?: InputMaybe<_DOLLAR_defs_searchExpenseDraftsRequest_Input>;
};


export type QuerygetClientArgs = {
  id: Scalars['String']['input'];
};


export type QuerygetFileUploadUrlArgs = {
  context?: InputMaybe<Scalars['String']['input']>;
  data?: InputMaybe<queryInput_getFileUploadUrl_data_Input>;
};


export type QuerygetBankTransactionsArgs = {
  valueDate?: InputMaybe<queryInput_getBankTransactions_valueDate_Input>;
  from?: InputMaybe<Scalars['Float']['input']>;
  size?: InputMaybe<Scalars['Float']['input']>;
  bookingStatus?: InputMaybe<Scalars['String']['input']>;
};

export type Mutation = {
  addDocument?: Maybe<_DOLLAR_defs_addDocumentResponse>;
  closeDocument?: Maybe<Scalars['JSON']['output']>;
  addExpense?: Maybe<_DOLLAR_defs_addExpenseResponse>;
  updateExpense?: Maybe<_DOLLAR_defs_updateExpenseResponse>;
  addExpenseDraftByFile?: Maybe<addExpenseDraftByFile_response>;
  addClient?: Maybe<_DOLLAR_defs_addClientResponse>;
  updateClient?: Maybe<_DOLLAR_defs_updateClientResponse>;
  deleteClient?: Maybe<_DOLLAR_defs_deleteClientResponse>;
};


export type MutationaddDocumentArgs = {
  input?: InputMaybe<_DOLLAR_defs_addDocumentRequest_Input>;
};


export type MutationcloseDocumentArgs = {
  id: Scalars['String']['input'];
};


export type MutationaddExpenseArgs = {
  input?: InputMaybe<Scalars['JSON']['input']>;
};


export type MutationupdateExpenseArgs = {
  id?: InputMaybe<Scalars['String']['input']>;
  input?: InputMaybe<_DOLLAR_defs_updateExpenseRequest_Input>;
};


export type MutationaddExpenseDraftByFileArgs = {
  input?: InputMaybe<_DOLLAR_defs_addExpenseDraftByFileRequest_Input>;
};


export type MutationaddClientArgs = {
  input?: InputMaybe<_DOLLAR_defs_addClientRequest_Input>;
};


export type MutationupdateClientArgs = {
  id: Scalars['String']['input'];
  input?: InputMaybe<_DOLLAR_defs_updateClientRequest_Input>;
};


export type MutationdeleteClientArgs = {
  id: Scalars['String']['input'];
};

/** A Single Document */
export type _DOLLAR_defs_Document = {
  /** Total amount, in requested currency (including the VAT, Discount & Rounding) */
  amount: Scalars['Float']['output'];
  /** Amount due VAT - Amount before VAT, and before rounding & discount (if requested) */
  amountDueVat: Scalars['NonNegativeFloat']['output'];
  /** Amount due VAT - local currency */
  amountDueVatLocal: Scalars['NonNegativeFloat']['output'];
  /** Amount excluded VAT - Amount that is excluded of VAT */
  amountExcludeVat: Scalars['NonNegativeFloat']['output'];
  /** Amount exempt VAT - 0 unless there's one or more items that are excluded of VAT such as mixed documents (that have both VAT excluded & included items) */
  amountExemptVat: Scalars['NonNegativeFloat']['output'];
  /** Amount in local currency */
  amountLocal: Scalars['Float']['output'];
  /** Amount that is still left to be paid, exists only in payment request documents */
  amountOpened: Scalars['Float']['output'];
  business: _DOLLAR_defs_Business;
  calculatedAmountLocal: Scalars['Float']['output'];
  calculatedAmountOpenedLocal: Scalars['Float']['output'];
  calculatedIncomeAmountExcludeLocal: Scalars['Float']['output'];
  calculatedIncomeAmountLocal: Scalars['Float']['output'];
  calculatedPaymentAmountLocal: Scalars['Float']['output'];
  cancellable: Scalars['Boolean']['output'];
  cancelType?: Maybe<Scalars['Float']['output']>;
  client: query_getDocument_client;
  /** The creation date, in UNIX timestamp format */
  creationDate: Scalars['NonNegativeInt']['output'];
  currency: _DOLLAR_defs_Currency;
  /** Currency rate relative to ILS */
  currencyRate: Scalars['NonNegativeFloat']['output'];
  data: _DOLLAR_defs_DocumentData;
  /** Document's description */
  description: Scalars['String']['output'];
  /** Document reference date */
  documentDate: Scalars['Date']['output'];
  downloaded: Scalars['Boolean']['output'];
  /** Texts appearing in footer */
  footer?: Maybe<Scalars['String']['output']>;
  /** Document ID */
  id: Scalars['String']['output'];
  income: Array<Maybe<_DOLLAR_defs_Income>>;
  lang: _DOLLAR_defs_DocumentLang;
  linkedDocuments?: Maybe<Array<Maybe<_DOLLAR_defs_DocumentLinkedDocument>>>;
  /** Document tax number */
  number: Scalars['String']['output'];
  payment: Array<Maybe<_DOLLAR_defs_PaymentDocument>>;
  ref: Array<Maybe<Scalars['Float']['output']>>;
  remarks?: Maybe<Scalars['String']['output']>;
  reverseCharge: Scalars['Boolean']['output'];
  /** Round the amounts */
  rounding: Scalars['Boolean']['output'];
  /** Digital sign the document */
  signed: Scalars['Boolean']['output'];
  skinId: Scalars['Float']['output'];
  /** Document status */
  status: Scalars['Float']['output'];
  taxConfirmationEligible: Scalars['Boolean']['output'];
  templateId: Scalars['Float']['output'];
  type: _DOLLAR_defs_DocumentType;
  url: _DOLLAR_defs_Url;
  userName?: Maybe<Scalars['String']['output']>;
  /** VAT amount */
  vat: Scalars['NonNegativeFloat']['output'];
  vatLocal?: Maybe<Scalars['Float']['output']>;
  /** VAT rate */
  vatRate: Scalars['NonNegativeFloat']['output'];
  vatType: _DOLLAR_defs_VatType;
};

export type _DOLLAR_defs_Business = {
  accountantDocsEmailSettings: Scalars['Float']['output'];
  accountantEmails: Array<Maybe<Scalars['JSON']['output']>>;
  accountantReportEmailSettings: Scalars['Float']['output'];
  accountingType: Scalars['Float']['output'];
  active: Scalars['Boolean']['output'];
  advanceNationalInsuranceRate: Scalars['Float']['output'];
  advanceTaxRate: Scalars['Float']['output'];
  bankDisplay: Scalars['Boolean']['output'];
  bankDisplayEn: Scalars['Boolean']['output'];
  deductionRate: Scalars['Float']['output'];
  documentsEmailSettings: Scalars['Float']['output'];
  emailSubjectType: Scalars['Float']['output'];
  /** Is the business exemption free or not */
  exemption: Scalars['Boolean']['output'];
  incomeReportEmailSettings: Scalars['Float']['output'];
  incomeReportFormatType: Scalars['Float']['output'];
  reportSendingDay: Scalars['Float']['output'];
  senderEmailSettings: Scalars['Float']['output'];
  type: query_getDocument_business_type;
};

/** The business type ID */
export type query_getDocument_business_type =
  | '_1'
  | '_2'
  | '_3'
  | '_4'
  | '_5'
  | '_6';

export type query_getDocument_client = {
  country?: Maybe<_DOLLAR_defs_Country>;
  /** List of email addresses */
  emails?: Maybe<Array<Maybe<Scalars['EmailAddress']['output']>>>;
  /** The client ID */
  id?: Maybe<Scalars['UUID']['output']>;
  /** The client name */
  name?: Maybe<Scalars['NonEmptyString']['output']>;
  phone?: Maybe<Scalars['String']['output']>;
  /** The client tax ID */
  taxId?: Maybe<Scalars['String']['output']>;
  /** Whether the client is self */
  self?: Maybe<Scalars['Boolean']['output']>;
  /** Client address */
  address?: Maybe<Scalars['String']['output']>;
  /** Client city */
  city?: Maybe<Scalars['String']['output']>;
  /** Client zip code */
  zip?: Maybe<Scalars['String']['output']>;
  /** Client fax */
  fax?: Maybe<Scalars['String']['output']>;
  /** The client mobile number */
  mobile?: Maybe<Scalars['String']['output']>;
  /** Add a temporary client to the clients' list */
  add?: Maybe<Scalars['Boolean']['output']>;
  JSON?: Maybe<Scalars['JSON']['output']>;
};

/** 2-letter ISO supplier country code, default is IL */
export type _DOLLAR_defs_Country =
  | 'UG'
  | 'UZ'
  | 'AT'
  | 'AU'
  | 'UA'
  | 'UY'
  | 'AZ'
  | 'CX'
  | 'AE'
  | 'IT'
  | 'BS'
  | 'GS'
  | 'UM'
  | 'VI'
  | 'VG'
  | 'HM'
  | 'TC'
  | 'MP'
  | 'MH'
  | 'SB'
  | 'FO'
  | 'FK'
  | 'FJ'
  | 'KM'
  | 'CK'
  | 'CC'
  | 'KY'
  | 'ID'
  | 'IS'
  | 'IE'
  | 'IR'
  | 'SV'
  | 'AL'
  | 'DZ'
  | 'AX'
  | 'AO'
  | 'AI'
  | 'AD'
  | 'AQ'
  | 'AG'
  | 'EE'
  | 'AF'
  | 'EC'
  | 'AR'
  | 'US'
  | 'AW'
  | 'ER'
  | 'AM'
  | 'ET'
  | 'BT'
  | 'BV'
  | 'BW'
  | 'BG'
  | 'BO'
  | 'BA'
  | 'BI'
  | 'BF'
  | 'BH'
  | 'BY'
  | 'BE'
  | 'BZ'
  | 'BD'
  | 'BJ'
  | 'BB'
  | 'BN'
  | 'BR'
  | 'GB'
  | 'BM'
  | 'DJ'
  | 'JM'
  | 'JE'
  | 'GA'
  | 'GE'
  | 'GH'
  | 'GT'
  | 'GU'
  | 'GP'
  | 'GY'
  | 'GI'
  | 'GN'
  | 'GW'
  | 'GQ'
  | 'GF'
  | 'GM'
  | 'GL'
  | 'DE'
  | 'GD'
  | 'GG'
  | 'DM'
  | 'DK'
  | 'ZA'
  | 'SS'
  | 'KR'
  | 'IM'
  | 'NF'
  | 'HT'
  | 'MV'
  | 'BQ'
  | 'IN'
  | 'NL'
  | 'HK'
  | 'HU'
  | 'HN'
  | 'IO'
  | 'TF'
  | 'PH'
  | 'DO'
  | 'CD'
  | 'CF'
  | 'PS'
  | 'WF'
  | 'VN'
  | 'VU'
  | 'VE'
  | 'VA'
  | 'ZW'
  | 'ZM'
  | 'CI'
  | 'TJ'
  | 'TV'
  | 'TG'
  | 'TO'
  | 'TN'
  | 'TK'
  | 'TR'
  | 'TM'
  | 'TW'
  | 'TZ'
  | 'TT'
  | 'GR'
  | 'JP'
  | 'JO'
  | 'IL'
  | 'KW'
  | 'CV'
  | 'LA'
  | 'LB'
  | 'LY'
  | 'LU'
  | 'LV'
  | 'LR'
  | 'LT'
  | 'LI'
  | 'LS'
  | 'MR'
  | 'MU'
  | 'ML'
  | 'MG'
  | 'MZ'
  | 'MD'
  | 'MN'
  | 'ME'
  | 'MS'
  | 'MC'
  | 'TL'
  | 'MM'
  | 'YT'
  | 'FM'
  | 'MW'
  | 'MY'
  | 'MT'
  | 'EG'
  | 'MO'
  | 'MK'
  | 'MX'
  | 'MA'
  | 'MQ'
  | 'NR'
  | 'NO'
  | 'NG'
  | 'NZ'
  | 'NU'
  | 'NE'
  | 'NI'
  | 'NA'
  | 'NP'
  | 'ST'
  | 'SJ'
  | 'EH'
  | 'SD'
  | 'SZ'
  | 'SO'
  | 'SY'
  | 'SR'
  | 'SL'
  | 'SC'
  | 'CN'
  | 'SG'
  | 'SI'
  | 'SK'
  | 'WS'
  | 'AS'
  | 'BL'
  | 'MF'
  | 'SM'
  | 'PM'
  | 'SN'
  | 'SH'
  | 'VC'
  | 'LC'
  | 'SX'
  | 'KN'
  | 'SA'
  | 'ES'
  | 'RS'
  | 'LK'
  | 'OM'
  | 'IQ'
  | 'PW'
  | 'PL'
  | 'PF'
  | 'PR'
  | 'PT'
  | 'PN'
  | 'FI'
  | 'PA'
  | 'PG'
  | 'PK'
  | 'PY'
  | 'PE'
  | 'TD'
  | 'CL'
  | 'CZ'
  | 'KP'
  | 'FR'
  | 'CU'
  | 'CO'
  | 'CG'
  | 'XK'
  | 'CR'
  | 'CW'
  | 'KZ'
  | 'QA'
  | 'KG'
  | 'KI'
  | 'NC'
  | 'KH'
  | 'CM'
  | 'CA'
  | 'KE'
  | 'CY'
  | 'HR'
  | 'RE'
  | 'RW'
  | 'RO'
  | 'RU'
  | 'SE'
  | 'CH'
  | 'TH'
  | 'YE';

/** 3-letter ISO item currency code */
export type _DOLLAR_defs_Currency =
  | 'ILS'
  | 'USD'
  | 'EUR'
  | 'GBP'
  | 'JPY'
  | 'CHF'
  | 'CNY'
  | 'AUD'
  | 'CAD'
  | 'RUB'
  | 'BRL'
  | 'HKD'
  | 'SGD'
  | 'THB'
  | 'MXN'
  | 'TRY'
  | 'NZD'
  | 'SEK'
  | 'NOK'
  | 'DKK'
  | 'KRW'
  | 'INR'
  | 'IDR'
  | 'PLN'
  | 'RON'
  | 'ZAR'
  | 'HRK';

export type _DOLLAR_defs_DocumentData = {
  /** TODO: implement */
  tags?: Maybe<Array<Maybe<Scalars['JSON']['output']>>>;
};

export type _DOLLAR_defs_Income = {
  /** Amount */
  amount?: Maybe<Scalars['Float']['output']>;
  /** Total amount */
  amountTotal?: Maybe<Scalars['Float']['output']>;
  /** Catalog number */
  catalogNum?: Maybe<Scalars['String']['output']>;
  currency: _DOLLAR_defs_Currency;
  /** Currency rate relative to ILS */
  currencyRate?: Maybe<Scalars['NonNegativeFloat']['output']>;
  /** Item description */
  description: Scalars['NonEmptyString']['output'];
  /** The ID of the item to attach as income */
  itemId?: Maybe<Scalars['String']['output']>;
  /** Item price */
  price: Scalars['Float']['output'];
  /** Quantity */
  quantity: Scalars['NonNegativeFloat']['output'];
  /** VAT amount */
  vat?: Maybe<Scalars['NonNegativeFloat']['output']>;
  /** VAT rate */
  vatRate?: Maybe<Scalars['NonNegativeFloat']['output']>;
  vatType: _DOLLAR_defs_VatType;
};

/** VAT type */
export type _DOLLAR_defs_VatType =
  | '_0'
  | '_1'
  | '_2';

/** Document language */
export type _DOLLAR_defs_DocumentLang =
  | 'en'
  | 'he';

/** A Linked Document */
export type _DOLLAR_defs_DocumentLinkedDocument = {
  /** Total amount, in requested currency (including the VAT, Discount & Rounding) */
  amount: Scalars['Float']['output'];
  currency: _DOLLAR_defs_Currency;
  /** Currency rate relative to ILS */
  currencyRate: Scalars['NonNegativeFloat']['output'];
  /** Document reference date */
  documentDate: Scalars['Date']['output'];
  /** Document ID */
  id: Scalars['String']['output'];
  /** Document tax number */
  number: Scalars['String']['output'];
  reverseCharge: Scalars['Boolean']['output'];
  type: _DOLLAR_defs_DocumentType;
};

/** Document type */
export type _DOLLAR_defs_DocumentType =
  | '_10'
  | '_100'
  | '_200'
  | '_210'
  | '_300'
  | '_305'
  | '_320'
  | '_330'
  | '_400'
  | '_405'
  | '_500'
  | '_600'
  | '_610';

export type _DOLLAR_defs_PaymentDocument = {
  currency: _DOLLAR_defs_Currency;
  /** Currency rate relative to ILS */
  currencyRate?: Maybe<Scalars['NonNegativeFloat']['output']>;
  date?: Maybe<Scalars['String']['output']>;
  /** Sum paid */
  price: Scalars['Float']['output'];
  type: query_getDocument_payment_items_type;
  subType?: Maybe<query_getDocument_payment_items_subType>;
  /** Bank name (required when using Cheques) */
  bankName?: Maybe<Scalars['String']['output']>;
  /** Bank branch number (required when using Cheques) */
  bankBranch?: Maybe<Scalars['String']['output']>;
  /** Bank account number (required when using Cheques) */
  bankAccount?: Maybe<Scalars['String']['output']>;
  /** Cheque number (required when using Cheques) */
  chequeNum?: Maybe<Scalars['String']['output']>;
  /** Payer account (PayPal / Payment App / Other) */
  accountId?: Maybe<Scalars['String']['output']>;
  /** Transaction ID (PayPal / Payment App / Other) */
  transactionId?: Maybe<Scalars['String']['output']>;
  appType?: Maybe<query_getDocument_payment_items_appType>;
  cardType?: Maybe<query_getDocument_payment_items_cardType>;
  /** Credit card's last 4 digits */
  cardNum?: Maybe<Scalars['String']['output']>;
  dealType?: Maybe<query_getDocument_payment_items_dealType>;
  /** Credit card's payments count (1-36) */
  numPayments?: Maybe<Scalars['Int']['output']>;
  /** Credit card's first payment */
  firstPayment?: Maybe<Scalars['Float']['output']>;
};

/** Payment method */
export type query_getDocument_payment_items_type =
  | 'NEGATIVE_1'
  | '_0'
  | '_1'
  | '_2'
  | '_3'
  | '_4'
  | '_5'
  | '_9'
  | '_10'
  | '_11';

/** Other payment sub type (required when using 'other' as a Payment type) */
export type query_getDocument_payment_items_subType =
  | '_1'
  | '_2'
  | '_3'
  | '_4'
  | '_5'
  | '_6'
  | '_7'
  | '_8';

/** Payment app type (required when using 'payment app' as a Payment type) */
export type query_getDocument_payment_items_appType =
  | '_1'
  | '_2'
  | '_3'
  | '_4'
  | '_5'
  | '_6';

/** Credit card type */
export type query_getDocument_payment_items_cardType =
  | '_1'
  | '_2'
  | '_3'
  | '_4'
  | '_5';

/** Credit card deal type */
export type query_getDocument_payment_items_dealType =
  | '_1'
  | '_2'
  | '_3'
  | '_4'
  | '_5'
  | '_6';

export type _DOLLAR_defs_Url = {
  /** Copy in Hebrew */
  he: Scalars['String']['output'];
  /** Copy in English */
  en?: Maybe<Scalars['String']['output']>;
  /** Origin */
  origin: Scalars['String']['output'];
};

export type _DOLLAR_defs_searchDocumentsResponse = {
  /** Total number of items */
  total: Scalars['NonNegativeFloat']['output'];
  /** Current page number */
  page: Scalars['PositiveFloat']['output'];
  /** Number of items per page */
  pageSize: Scalars['PositiveFloat']['output'];
  /** Total number of pages */
  pages: Scalars['NonNegativeFloat']['output'];
  /** Starting index */
  from?: Maybe<Scalars['NonNegativeFloat']['output']>;
  /** Ending index */
  to?: Maybe<Scalars['NonNegativeFloat']['output']>;
  items: Array<Maybe<_DOLLAR_defs_Document>>;
};

export type _DOLLAR_defs_searchDocumentsRequest_Input = {
  /** Page requested */
  page?: InputMaybe<Scalars['Float']['input']>;
  /** Results per page */
  pageSize?: InputMaybe<Scalars['Float']['input']>;
  /** Document tax number */
  number?: InputMaybe<Scalars['String']['input']>;
  /** Document type */
  type?: InputMaybe<Array<InputMaybe<_DOLLAR_defs_DocumentType>>>;
  /** Document status */
  status?: InputMaybe<Array<InputMaybe<queryInput_searchDocuments_input_status_items>>>;
  /** Payment types used in this document */
  paymentTypes?: InputMaybe<Array<InputMaybe<queryInput_searchDocuments_input_paymentTypes_items>>>;
  /** Documents that were created after the specified date in the format YYYY-MM-DD */
  fromDate?: InputMaybe<Scalars['Date']['input']>;
  /** Documents that were created until the specified date in the format YYYY-MM-DD */
  toDate?: InputMaybe<Scalars['Date']['input']>;
  /** Client ID */
  clientId?: InputMaybe<Scalars['String']['input']>;
  /** Client name */
  clientName?: InputMaybe<Scalars['String']['input']>;
  /** Document description */
  description?: InputMaybe<Scalars['String']['input']>;
  /** Whether document was downloaded by client */
  download?: InputMaybe<Scalars['Boolean']['input']>;
  sort?: InputMaybe<queryInput_searchDocuments_input_sort>;
};

export type queryInput_searchDocuments_input_status_items =
  | '_0'
  | '_1'
  | '_2'
  | '_3'
  | '_4';

export type queryInput_searchDocuments_input_paymentTypes_items =
  | 'NEGATIVE_1'
  | '_0'
  | '_1'
  | '_2'
  | '_3'
  | '_4'
  | '_5'
  | '_10'
  | '_11';

export type queryInput_searchDocuments_input_sort =
  | 'documentDate'
  | 'creationDate';

export type _DOLLAR_defs_previewDocumentResponse = query_previewDocument_oneOf_0 | _DOLLAR_defs_ErrorResponse;

export type query_previewDocument_oneOf_0 = {
  /** Preview document file in Base64 */
  file: Scalars['String']['output'];
};

/** Error */
export type _DOLLAR_defs_ErrorResponse = {
  errorCode?: Maybe<Scalars['Float']['output']>;
  errorMessage?: Maybe<Scalars['String']['output']>;
};

export type _DOLLAR_defs_DocumentInputNew_Input = {
  /** Document's description */
  description?: InputMaybe<Scalars['String']['input']>;
  remarks?: InputMaybe<Scalars['String']['input']>;
  /** Texts appearing in footer */
  footer?: InputMaybe<Scalars['String']['input']>;
  type: _DOLLAR_defs_DocumentType;
  /** Document date in the format YYYY-MM-DD */
  date?: InputMaybe<Scalars['String']['input']>;
  /** Document payment due date in the format YYYY-MM-DD */
  dueDate?: InputMaybe<Scalars['String']['input']>;
  lang: _DOLLAR_defs_DocumentLang;
  currency: _DOLLAR_defs_Currency;
  vatType: _DOLLAR_defs_VatType;
  discount?: InputMaybe<_DOLLAR_defs_DocumentDiscount_Input>;
  /** Round the amounts */
  rounding?: InputMaybe<Scalars['Boolean']['input']>;
  /** Digital sign the document */
  signed?: InputMaybe<Scalars['Boolean']['input']>;
  /** Max payments allowed (valid only on supported accounts) */
  maxPayments?: InputMaybe<Scalars['Int']['input']>;
  client?: InputMaybe<Scalars['JSON']['input']>;
  income?: InputMaybe<Array<InputMaybe<_DOLLAR_defs_Income_Input>>>;
  payment?: InputMaybe<Array<InputMaybe<_DOLLAR_defs_PaymentDocument_Input>>>;
  /** Linked document IDs. allows you to state the related / relevant documents, e.g.: when creating a receipt, attach your original invoice document ID as one of the ids in the linkedDocumentIds - this in turn will automatically close the original invoice if needed. */
  linkedDocumentIds?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
  /** Linked payment ID (valid for document type 305 only). allows you to define the paymentId that the document is going to be relevant to, this can be attached only to invoice documents (type 305). */
  linkedPaymentId?: InputMaybe<Scalars['String']['input']>;
  linkType?: InputMaybe<queryInput_previewDocument_input_linkType>;
};

/** Discount information */
export type _DOLLAR_defs_DocumentDiscount_Input = {
  amount: Scalars['Float']['input'];
  type: queryInput_previewDocument_input_discount_type;
};

/** Discount amount type */
export type queryInput_previewDocument_input_discount_type =
  | 'sum'
  | 'percentage';

export type _DOLLAR_defs_Income_Input = {
  /** Amount */
  amount?: InputMaybe<Scalars['Float']['input']>;
  /** Total amount */
  amountTotal?: InputMaybe<Scalars['Float']['input']>;
  /** Catalog number */
  catalogNum?: InputMaybe<Scalars['String']['input']>;
  currency: _DOLLAR_defs_Currency;
  /** Currency rate relative to ILS */
  currencyRate?: InputMaybe<Scalars['NonNegativeFloat']['input']>;
  /** Item description */
  description: Scalars['NonEmptyString']['input'];
  /** The ID of the item to attach as income */
  itemId?: InputMaybe<Scalars['String']['input']>;
  /** Item price */
  price: Scalars['Float']['input'];
  /** Quantity */
  quantity: Scalars['NonNegativeFloat']['input'];
  /** VAT amount */
  vat?: InputMaybe<Scalars['NonNegativeFloat']['input']>;
  /** VAT rate */
  vatRate?: InputMaybe<Scalars['NonNegativeFloat']['input']>;
  vatType: _DOLLAR_defs_VatType;
};

export type _DOLLAR_defs_PaymentDocument_Input = {
  currency: _DOLLAR_defs_Currency;
  /** Currency rate relative to ILS */
  currencyRate?: InputMaybe<Scalars['NonNegativeFloat']['input']>;
  date?: InputMaybe<Scalars['String']['input']>;
  /** Sum paid */
  price: Scalars['Float']['input'];
  type: query_getDocument_payment_items_type;
  subType?: InputMaybe<query_getDocument_payment_items_subType>;
  /** Bank name (required when using Cheques) */
  bankName?: InputMaybe<Scalars['String']['input']>;
  /** Bank branch number (required when using Cheques) */
  bankBranch?: InputMaybe<Scalars['String']['input']>;
  /** Bank account number (required when using Cheques) */
  bankAccount?: InputMaybe<Scalars['String']['input']>;
  /** Cheque number (required when using Cheques) */
  chequeNum?: InputMaybe<Scalars['String']['input']>;
  /** Payer account (PayPal / Payment App / Other) */
  accountId?: InputMaybe<Scalars['String']['input']>;
  /** Transaction ID (PayPal / Payment App / Other) */
  transactionId?: InputMaybe<Scalars['String']['input']>;
  appType?: InputMaybe<query_getDocument_payment_items_appType>;
  cardType?: InputMaybe<query_getDocument_payment_items_cardType>;
  /** Credit card's last 4 digits */
  cardNum?: InputMaybe<Scalars['String']['input']>;
  dealType?: InputMaybe<query_getDocument_payment_items_dealType>;
  /** Credit card's payments count (1-36) */
  numPayments?: InputMaybe<Scalars['Int']['input']>;
  /** Credit card's first payment */
  firstPayment?: InputMaybe<Scalars['Float']['input']>;
};

/** Reference type (applicable only when using linkedDocumentIds) */
export type queryInput_previewDocument_input_linkType =
  | 'LINK'
  | 'CANCEL';

export type _DOLLAR_defs_GetLinkedDocuments = {
  /** Total amount, in requested currency (including the VAT, Discount & Rounding) */
  amount?: Maybe<Scalars['Float']['output']>;
  currency?: Maybe<_DOLLAR_defs_Currency>;
  /** Currency rate relative to ILS */
  currencyRate?: Maybe<Scalars['NonNegativeFloat']['output']>;
  /** Document reference date */
  documentDate?: Maybe<Scalars['Date']['output']>;
  /** Document ID */
  id?: Maybe<Scalars['String']['output']>;
  /** Document tax number */
  number?: Maybe<Scalars['String']['output']>;
  /** Document status */
  status?: Maybe<Scalars['Float']['output']>;
  type?: Maybe<_DOLLAR_defs_DocumentType>;
};

/** A Single Expense */
export type _DOLLAR_defs_GetExpense = {
  /** The amount excluding the vat */
  amountExcludeVat?: Maybe<Scalars['Float']['output']>;
  /** The expense ID */
  id?: Maybe<Scalars['String']['output']>;
  businessType?: Maybe<query_getExpense_businessType>;
  documentType?: Maybe<_DOLLAR_defs_ExpenseDocumentType>;
  status?: Maybe<query_getExpense_status>;
  paymentType?: Maybe<query_getExpense_paymentType>;
  currency?: Maybe<_DOLLAR_defs_Currency>;
  /** Currency rate relative to ILS */
  currencyRate?: Maybe<Scalars['NonNegativeFloat']['output']>;
  /** VAT amount */
  vat?: Maybe<Scalars['NonNegativeFloat']['output']>;
  /** The total amount of the expense */
  amount?: Maybe<Scalars['Float']['output']>;
  /** Date of the expense */
  date?: Maybe<Scalars['String']['output']>;
  /** Due date of the expense */
  dueDate?: Maybe<Scalars['String']['output']>;
  /** Number of the expense */
  number?: Maybe<Scalars['String']['output']>;
  /** Is the expense currently active or not */
  active?: Maybe<Scalars['Boolean']['output']>;
  /** Description for the expense */
  description?: Maybe<Scalars['String']['output']>;
  /** Remarks for the expense */
  remarks?: Maybe<Scalars['String']['output']>;
  supplier?: Maybe<_DOLLAR_defs_Supplier>;
  /** URL of expense thumbnail */
  thumbnail?: Maybe<Scalars['String']['output']>;
  /** URL to download the expense thumbnail */
  url?: Maybe<Scalars['String']['output']>;
  /** Is the supplier currently active or not */
  cancellable?: Maybe<Scalars['Boolean']['output']>;
  /** Reporting date of the expense */
  reportingDate?: Maybe<Scalars['String']['output']>;
  accountingClassification?: Maybe<_DOLLAR_defs_AccountingClassification>;
  /** The local amount of the expense */
  amountLocal?: Maybe<Scalars['Float']['output']>;
  /** The amount of accounting */
  amountAccounting?: Maybe<Scalars['Float']['output']>;
  /** The vat amount of accounting */
  vatAccounting?: Maybe<Scalars['Float']['output']>;
  /** The creation date, in UNIX timestamp format */
  creationDate?: Maybe<Scalars['NonNegativeInt']['output']>;
  /** The last update date of the expense, in UNIX timestamp format */
  lastUpdateDate?: Maybe<Scalars['Int']['output']>;
};

/** The business type ID */
export type query_getExpense_businessType =
  | '_1'
  | '_2'
  | '_3'
  | '_4'
  | '_5'
  | '_6';

/** Document type */
export type _DOLLAR_defs_ExpenseDocumentType =
  | '_20'
  | '_305'
  | '_320'
  | '_330'
  | '_400'
  | '_405';

/** The status of the expense */
export type query_getExpense_status =
  | '_10'
  | '_20'
  | '_30'
  | '_100';

/** Payment method */
export type query_getExpense_paymentType =
  | 'NEGATIVE_1'
  | '_0'
  | '_1'
  | '_2'
  | '_3'
  | '_4'
  | '_5'
  | '_10'
  | '_11';

export type _DOLLAR_defs_Supplier = {
  /** Phone number */
  phone?: Maybe<Scalars['String']['output']>;
  /** Mobile number */
  mobile?: Maybe<Scalars['String']['output']>;
  /** Email addresses */
  emails?: Maybe<Array<Maybe<Scalars['EmailAddress']['output']>>>;
  /** Fax number */
  fax?: Maybe<Scalars['String']['output']>;
  /** Contact person name */
  contactPerson?: Maybe<Scalars['String']['output']>;
  /** Street address */
  address?: Maybe<Scalars['String']['output']>;
  /** City name */
  city?: Maybe<Scalars['String']['output']>;
  /** Zip/postal code */
  zip?: Maybe<Scalars['String']['output']>;
  country?: Maybe<_DOLLAR_defs_Country>;
  /** Bank name */
  bankName?: Maybe<Scalars['String']['output']>;
  /** Bank branch number */
  bankBranch?: Maybe<Scalars['String']['output']>;
  /** Bank account number */
  bankAccount?: Maybe<Scalars['String']['output']>;
  /** The supplier ID */
  id?: Maybe<Scalars['String']['output']>;
  /** The supplier name */
  name?: Maybe<Scalars['String']['output']>;
  /** Is the supplier active or not */
  active?: Maybe<Scalars['Boolean']['output']>;
  /** The supplier tax ID */
  taxId?: Maybe<Scalars['String']['output']>;
  paymentTerms?: Maybe<query_getExpense_supplier_allOf_3_paymentTerms>;
  labels?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
  /** The creation date, in UNIX timestamp format */
  creationDate?: Maybe<Scalars['NonNegativeInt']['output']>;
  /** The last update date of the supplier, in UNIX timestamp format */
  lastUpdateDate?: Maybe<Scalars['Int']['output']>;
  /** The supplier department */
  department?: Maybe<Scalars['String']['output']>;
  /** The supplier accounting key */
  accountingKey?: Maybe<Scalars['String']['output']>;
  /** The Supplier remarks for self use */
  remarks?: Maybe<Scalars['String']['output']>;
  /** The amount of incomes from the customer */
  incomeAmount?: Maybe<Scalars['Float']['output']>;
  paymentAmount?: Maybe<Scalars['Float']['output']>;
  /** The balance amount of the supplier */
  balanceAmount?: Maybe<Scalars['Float']['output']>;
};

/** The supplier payment term, default is 0 */
export type query_getExpense_supplier_allOf_3_paymentTerms =
  | 'NEGATIVE_1'
  | '_0'
  | '_10'
  | '_15'
  | '_30'
  | '_45'
  | '_60'
  | '_75'
  | '_90'
  | '_120';

/** Account classification of the expense */
export type _DOLLAR_defs_AccountingClassification = {
  /** The classification ID, see 'Get Accounting Classifications' endpoint */
  id?: Maybe<Scalars['String']['output']>;
  /** The classification key */
  key?: Maybe<Scalars['String']['output']>;
  /** The classification code */
  code?: Maybe<Scalars['String']['output']>;
  /** The classification title */
  title?: Maybe<Scalars['String']['output']>;
  irsCode?: Maybe<query_getExpense_accountingClassification_irsCode>;
  /** The classification income */
  income?: Maybe<Scalars['Float']['output']>;
  /** The classification type */
  type?: Maybe<Scalars['Float']['output']>;
  /** The classification VAT */
  vat?: Maybe<Scalars['Float']['output']>;
};

/** The classification IRS code */
export type query_getExpense_accountingClassification_irsCode =
  | '_1306'
  | '_1307'
  | '_1310'
  | '_1320'
  | '_1330'
  | '_1340'
  | '_1390'
  | '_3011'
  | '_3012'
  | '_3015'
  | '_3055'
  | '_3060'
  | '_3066'
  | '_3067'
  | '_3068'
  | '_3070'
  | '_3075'
  | '_3080'
  | '_3085'
  | '_3090'
  | '_3100'
  | '_3120'
  | '_3511'
  | '_3512'
  | '_3515'
  | '_3520'
  | '_3535'
  | '_3540'
  | '_3545'
  | '_3550'
  | '_3555'
  | '_3560'
  | '_3566'
  | '_3567'
  | '_3568'
  | '_3570'
  | '_3575'
  | '_3580'
  | '_3590'
  | '_3595'
  | '_3600'
  | '_3620'
  | '_3625'
  | '_3640'
  | '_3650'
  | '_3660'
  | '_3665'
  | '_3680'
  | '_5010'
  | '_5090'
  | '_8040'
  | '_8050'
  | '_8060'
  | '_8080'
  | '_8090';

export type _DOLLAR_defs_searchExpensesResponse = {
  /** Total number of items */
  total: Scalars['NonNegativeFloat']['output'];
  /** Current page number */
  page: Scalars['PositiveFloat']['output'];
  /** Number of items per page */
  pageSize: Scalars['PositiveFloat']['output'];
  /** Total number of pages */
  pages: Scalars['NonNegativeFloat']['output'];
  /** Starting index */
  from?: Maybe<Scalars['NonNegativeFloat']['output']>;
  /** Ending index */
  to?: Maybe<Scalars['NonNegativeFloat']['output']>;
  items?: Maybe<_DOLLAR_defs_GetExpense>;
};

export type _DOLLAR_defs_searchExpensesRequest_Input = {
  /** Expense that were created after the specified date in the format YYYY-MM-DD */
  fromDate?: InputMaybe<Scalars['String']['input']>;
  /** Expense that were created until the specified date in the format YYYY-MM-DD */
  toDate?: InputMaybe<Scalars['String']['input']>;
  /** Due date of the expense, in the format YYYY-MM-DD */
  dueDate?: InputMaybe<Scalars['String']['input']>;
  /** Expense description */
  description?: InputMaybe<Scalars['String']['input']>;
  /** Supplier's ID */
  supplierId?: InputMaybe<Scalars['String']['input']>;
  /** Supplier's name */
  supplierName?: InputMaybe<Scalars['String']['input']>;
  /** Expense serial number */
  number?: InputMaybe<Scalars['String']['input']>;
  /** Filter expenses that are only paid or unpaid, if not added to the request, will return both */
  paid?: InputMaybe<Scalars['Boolean']['input']>;
  /** Filter expenses that are only reported or unreported, if not added to the request, will return both */
  reported?: InputMaybe<Scalars['Boolean']['input']>;
  /** The field to sort the results by */
  sort?: InputMaybe<Scalars['String']['input']>;
  /** Min amount of the expense */
  minAmount: Scalars['Float']['input'];
  /** Max amount of the expense */
  maxAmount: Scalars['Float']['input'];
  /** Page requested */
  page: Scalars['Float']['input'];
  /** Results per page */
  pageSize: Scalars['Float']['input'];
};

export type searchExpenseDrafts_response = searchExpenseDrafts_200_response | searchExpenseDrafts_404_response;

export type searchExpenseDrafts_200_response = {
  /** Total number of items */
  total: Scalars['NonNegativeFloat']['output'];
  /** Current page number */
  page: Scalars['PositiveFloat']['output'];
  /** Number of items per page */
  pageSize: Scalars['PositiveFloat']['output'];
  /** Total number of pages */
  pages: Scalars['NonNegativeFloat']['output'];
  /** Starting index */
  from?: Maybe<Scalars['NonNegativeFloat']['output']>;
  /** Ending index */
  to?: Maybe<Scalars['NonNegativeFloat']['output']>;
  aggregations: query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations;
  /** The expense drafts that were found */
  items: Array<Maybe<query_searchExpenseDrafts_oneOf_0_allOf_1_items_items>>;
};

export type query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations = {
  totalAmount: query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations_totalAmount;
};

export type query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations_totalAmount = {
  value: Scalars['Float']['output'];
};

/** Partial Expense */
export type query_searchExpenseDrafts_oneOf_0_allOf_1_items_items = {
  id: Scalars['String']['output'];
  status: Scalars['Float']['output'];
  /** The creation date, in UNIX timestamp format */
  creationDate: Scalars['NonNegativeInt']['output'];
  lastUpdateDate: Scalars['Float']['output'];
  reportingPeriod: Scalars['String']['output'];
  hasDefaultValues: Scalars['Boolean']['output'];
  url: Scalars['String']['output'];
  thumbnail: Scalars['String']['output'];
  expense: query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense;
};

export type query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense = {
  accountingClassification: _DOLLAR_defs_AccountingClassification;
  /** Is the expense active or not */
  active: Scalars['Boolean']['output'];
  /** Should we save the supplier or not (by setting this to true you are required to add a supplier) */
  addRecipient: Scalars['Boolean']['output'];
  /** The total amount of the expense */
  amount?: Maybe<Scalars['Float']['output']>;
  confirmFromEdit: Scalars['Boolean']['output'];
  currency: _DOLLAR_defs_Currency;
  /** Currency rate relative to ILS */
  currencyRate: Scalars['NonNegativeFloat']['output'];
  /** Date of the expense */
  date?: Maybe<Scalars['String']['output']>;
  /** Description for the expense */
  description: Scalars['String']['output'];
  documentType: _DOLLAR_defs_ExpenseDocumentType;
  /** File hash */
  fileHash: Scalars['String']['output'];
  /** Key of the file location */
  fileKey: Scalars['String']['output'];
  labels: Array<Maybe<Scalars['String']['output']>>;
  /** Number of the expense */
  number?: Maybe<Scalars['String']['output']>;
  paymentType?: Maybe<query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType>;
  /** Reporting date of the expense */
  reportingDate: Scalars['String']['output'];
  supplier: _DOLLAR_defs_Supplier;
  tags: Array<Maybe<Scalars['String']['output']>>;
  texts: Array<Maybe<Scalars['String']['output']>>;
  /** VAT amount */
  vat: Scalars['NonNegativeFloat']['output'];
};

/** Payment method */
export type query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType = Boolean_container | query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1_container;

export type Boolean_container = {
  Boolean?: Maybe<Scalars['Boolean']['output']>;
};

export type query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1_container = {
  query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1?: Maybe<query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1>;
};

export type query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1 =
  | '_1'
  | '_2'
  | '_3'
  | '_4'
  | '_5'
  | '_10'
  | '_11';

export type searchExpenseDrafts_404_response = {
  errorCode?: Maybe<Scalars['Int']['output']>;
  errorMessage?: Maybe<Scalars['String']['output']>;
};

export type _DOLLAR_defs_searchExpenseDraftsRequest_Input = {
  /** Expense drafts that were created after the specified date in the format YYYY-MM-DD */
  fromDate?: InputMaybe<Scalars['Date']['input']>;
  /** Expense drafts that were created until the specified date in the format YYYY-MM-DD */
  toDate?: InputMaybe<Scalars['Date']['input']>;
  /** Expense draft description */
  description?: InputMaybe<Scalars['String']['input']>;
  /** Supplier's ID */
  supplierId?: InputMaybe<Scalars['String']['input']>;
  /** Supplier's name */
  supplierName?: InputMaybe<Scalars['String']['input']>;
  /** Page requested */
  page?: InputMaybe<Scalars['Float']['input']>;
  /** Results per page */
  pageSize?: InputMaybe<Scalars['Float']['input']>;
};

export type _DOLLAR_defs_getClientResponse = {
  /** Phone number */
  phone?: Maybe<Scalars['String']['output']>;
  /** Mobile number */
  mobile?: Maybe<Scalars['String']['output']>;
  /** Email addresses */
  emails?: Maybe<Array<Maybe<Scalars['EmailAddress']['output']>>>;
  /** Fax number */
  fax?: Maybe<Scalars['String']['output']>;
  /** Contact person name */
  contactPerson?: Maybe<Scalars['String']['output']>;
  /** Street address */
  address?: Maybe<Scalars['String']['output']>;
  /** City name */
  city?: Maybe<Scalars['String']['output']>;
  /** Zip/postal code */
  zip?: Maybe<Scalars['String']['output']>;
  country?: Maybe<_DOLLAR_defs_Country>;
  /** Bank name */
  bankName?: Maybe<Scalars['String']['output']>;
  /** Bank branch number */
  bankBranch?: Maybe<Scalars['String']['output']>;
  /** Bank account number */
  bankAccount?: Maybe<Scalars['String']['output']>;
  /** The client ID */
  id?: Maybe<Scalars['UUID']['output']>;
  /** The client name */
  name?: Maybe<Scalars['NonEmptyString']['output']>;
  /** Is the client currently active or not */
  active?: Maybe<Scalars['Boolean']['output']>;
  /** The client tax ID */
  taxId?: Maybe<Scalars['String']['output']>;
  paymentTerms?: Maybe<query_getClient_allOf_3_paymentTerms>;
  labels?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
  /** The creation date, in UNIX timestamp format */
  creationDate?: Maybe<Scalars['NonNegativeInt']['output']>;
  /** The last update date of the supplier, in UNIX timestamp format */
  lastUpdateDate?: Maybe<Scalars['Int']['output']>;
  /** Whether to send emails to the user automatically when assigning him to an invoice or not */
  send?: Maybe<Scalars['Boolean']['output']>;
  /** The supplier department */
  department?: Maybe<Scalars['String']['output']>;
  /** The supplier accounting key */
  accountingKey?: Maybe<Scalars['String']['output']>;
  /** The category this client is related to */
  category?: Maybe<Scalars['Int']['output']>;
  /** The sub category this client is related to */
  subCategory?: Maybe<Scalars['Int']['output']>;
  /** Client remarks for self use */
  remarks?: Maybe<Scalars['String']['output']>;
  /** The amount of incomes from the customer */
  incomeAmount?: Maybe<Scalars['Float']['output']>;
  paymentAmount?: Maybe<Scalars['Float']['output']>;
  /** The balance amount of the client */
  balanceAmount?: Maybe<Scalars['Float']['output']>;
};

/** The client payment term, default is 0 */
export type query_getClient_allOf_3_paymentTerms =
  | 'NEGATIVE_1'
  | '_0'
  | '_10'
  | '_15'
  | '_30'
  | '_45'
  | '_60'
  | '_75'
  | '_90'
  | '_120';

export type _DOLLAR_defs_addDocumentResponse = _DOLLAR_defs_AddedDocument | _DOLLAR_defs_ErrorResponse;

export type _DOLLAR_defs_AddedDocument = {
  /** Document ID */
  id: Scalars['String']['output'];
  lang: _DOLLAR_defs_DocumentLang;
  /** Document serial number */
  number: Scalars['PositiveInt']['output'];
  /** Digital sign the document */
  signed: Scalars['Boolean']['output'];
  url: _DOLLAR_defs_Url;
};

/** Add a document to the current business */
export type _DOLLAR_defs_addDocumentRequest_Input = {
  /** Document's description */
  description?: InputMaybe<Scalars['String']['input']>;
  remarks?: InputMaybe<Scalars['String']['input']>;
  /** Texts appearing in footer */
  footer?: InputMaybe<Scalars['String']['input']>;
  type: _DOLLAR_defs_DocumentType;
  /** Document date in the format YYYY-MM-DD */
  date?: InputMaybe<Scalars['String']['input']>;
  /** Document payment due date in the format YYYY-MM-DD */
  dueDate?: InputMaybe<Scalars['String']['input']>;
  lang: _DOLLAR_defs_DocumentLang;
  currency: _DOLLAR_defs_Currency;
  vatType: _DOLLAR_defs_VatType;
  discount?: InputMaybe<_DOLLAR_defs_DocumentDiscount_Input>;
  /** Round the amounts */
  rounding?: InputMaybe<Scalars['Boolean']['input']>;
  /** Digital sign the document */
  signed?: InputMaybe<Scalars['Boolean']['input']>;
  /** Max payments allowed (valid only on supported accounts) */
  maxPayments?: InputMaybe<Scalars['Int']['input']>;
  client?: InputMaybe<Scalars['JSON']['input']>;
  income?: InputMaybe<Array<InputMaybe<_DOLLAR_defs_Income_Input>>>;
  payment?: InputMaybe<Array<InputMaybe<_DOLLAR_defs_PaymentDocument_Input>>>;
  /** Linked document IDs. allows you to state the related / relevant documents, e.g.: when creating a receipt, attach your original invoice document ID as one of the ids in the linkedDocumentIds - this in turn will automatically close the original invoice if needed. */
  linkedDocumentIds?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
  /** Linked payment ID (valid for document type 305 only). allows you to define the paymentId that the document is going to be relevant to, this can be attached only to invoice documents (type 305). */
  linkedPaymentId?: InputMaybe<Scalars['String']['input']>;
  linkType?: InputMaybe<queryInput_previewDocument_input_linkType>;
  /** Email content to send with the document */
  emailContent?: InputMaybe<Scalars['String']['input']>;
  /** Whether to attach the document to the email */
  attachment?: InputMaybe<Scalars['Boolean']['input']>;
};

export type _DOLLAR_defs_addExpenseResponse = _DOLLAR_defs_Expense | _DOLLAR_defs_ErrorResponse;

export type _DOLLAR_defs_Expense = {
  paymentType?: Maybe<mutation_addExpense_oneOf_0_allOf_0_paymentType>;
  currency?: Maybe<_DOLLAR_defs_Currency>;
  /** Currency rate relative to ILS */
  currencyRate?: Maybe<Scalars['NonNegativeFloat']['output']>;
  /** VAT amount */
  vat?: Maybe<Scalars['NonNegativeFloat']['output']>;
  /** The total amount of the expense */
  amount?: Maybe<Scalars['Float']['output']>;
  /** Date of the expense */
  date?: Maybe<Scalars['String']['output']>;
  /** Due date of the expense */
  dueDate?: Maybe<Scalars['String']['output']>;
  /** Reporting date of the expense */
  reportingDate?: Maybe<Scalars['String']['output']>;
  documentType?: Maybe<_DOLLAR_defs_ExpenseDocumentType>;
  /** Number of the expense */
  number?: Maybe<Scalars['String']['output']>;
  /** Description for the expense */
  description?: Maybe<Scalars['String']['output']>;
  /** Remarks for the expense */
  remarks?: Maybe<Scalars['String']['output']>;
  supplier?: Maybe<_DOLLAR_defs_Supplier>;
  accountingClassification?: Maybe<_DOLLAR_defs_AccountingClassification>;
  /** Is the expense active or not */
  active?: Maybe<Scalars['Boolean']['output']>;
  /** Should we save the supplier or not (by setting this to true you are required to add a supplier) */
  addRecipient?: Maybe<Scalars['Boolean']['output']>;
  /** Should we save the accounting classification (by setting this to true you are required to add an accounting classification that contains title & irsCode) */
  addAccountingClassification?: Maybe<Scalars['Boolean']['output']>;
  JSON?: Maybe<Scalars['JSON']['output']>;
};

/** Payment method */
export type mutation_addExpense_oneOf_0_allOf_0_paymentType = Boolean_container | mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_container;

export type mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_container = {
  mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1?: Maybe<mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1>;
};

export type mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1 =
  | '_1'
  | '_2'
  | '_3'
  | '_4'
  | '_5'
  | '_10'
  | '_11';

export type _DOLLAR_defs_updateExpenseResponse = _DOLLAR_defs_GetExpense | _DOLLAR_defs_ErrorResponse;

export type _DOLLAR_defs_updateExpenseRequest_Input = {
  /** The expense ID */
  id: Scalars['String']['input'];
  paymentType?: InputMaybe<mutationInput_updateExpense_input_paymentType_Input>;
  currency?: InputMaybe<_DOLLAR_defs_Currency>;
  /** Currency rate relative to ILS */
  currencyRate?: InputMaybe<Scalars['NonNegativeFloat']['input']>;
  /** VAT amount */
  vat?: InputMaybe<Scalars['NonNegativeFloat']['input']>;
  /** The total amount of the expense */
  amount?: InputMaybe<Scalars['Float']['input']>;
  /** Date of the expense */
  date?: InputMaybe<Scalars['String']['input']>;
  /** Due date of the expense */
  dueDate?: InputMaybe<Scalars['String']['input']>;
  /** Reporting date of the expense */
  reportingDate?: InputMaybe<Scalars['String']['input']>;
  documentType?: InputMaybe<_DOLLAR_defs_ExpenseDocumentType>;
  /** Number of the expense */
  number?: InputMaybe<Scalars['String']['input']>;
  /** Description for the expense */
  description?: InputMaybe<Scalars['String']['input']>;
  /** Remarks for the expense */
  remarks?: InputMaybe<Scalars['String']['input']>;
  supplier?: InputMaybe<_DOLLAR_defs_Supplier_Input>;
  accountingClassification?: InputMaybe<_DOLLAR_defs_AccountingClassification_Input>;
  /** Is the expense active or not */
  active?: InputMaybe<Scalars['Boolean']['input']>;
};

export type mutationInput_updateExpense_input_paymentType_Input =
  { Boolean: Scalars['Boolean']['input']; mutationInput_updateExpense_input_paymentType_oneOf_1?: never; }
  |  { Boolean?: never; mutationInput_updateExpense_input_paymentType_oneOf_1: mutationInput_updateExpense_input_paymentType_oneOf_1; };

export type mutationInput_updateExpense_input_paymentType_oneOf_1 =
  | '_1'
  | '_2'
  | '_3'
  | '_4'
  | '_5'
  | '_10'
  | '_11';

export type _DOLLAR_defs_Supplier_Input = {
  /** Phone number */
  phone?: InputMaybe<Scalars['String']['input']>;
  /** Mobile number */
  mobile?: InputMaybe<Scalars['String']['input']>;
  /** Email addresses */
  emails?: InputMaybe<Array<InputMaybe<Scalars['EmailAddress']['input']>>>;
  /** Fax number */
  fax?: InputMaybe<Scalars['String']['input']>;
  /** Contact person name */
  contactPerson?: InputMaybe<Scalars['String']['input']>;
  /** Street address */
  address?: InputMaybe<Scalars['String']['input']>;
  /** City name */
  city?: InputMaybe<Scalars['String']['input']>;
  /** Zip/postal code */
  zip?: InputMaybe<Scalars['String']['input']>;
  country?: InputMaybe<_DOLLAR_defs_Country>;
  /** Bank name */
  bankName?: InputMaybe<Scalars['String']['input']>;
  /** Bank branch number */
  bankBranch?: InputMaybe<Scalars['String']['input']>;
  /** Bank account number */
  bankAccount?: InputMaybe<Scalars['String']['input']>;
  /** The supplier ID */
  id?: InputMaybe<Scalars['String']['input']>;
  /** The supplier name */
  name?: InputMaybe<Scalars['String']['input']>;
  /** Is the supplier active or not */
  active?: InputMaybe<Scalars['Boolean']['input']>;
  /** The supplier tax ID */
  taxId?: InputMaybe<Scalars['String']['input']>;
  paymentTerms?: InputMaybe<query_getExpense_supplier_allOf_3_paymentTerms>;
  labels?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
  /** The creation date, in UNIX timestamp format */
  creationDate?: InputMaybe<Scalars['NonNegativeInt']['input']>;
  /** The last update date of the supplier, in UNIX timestamp format */
  lastUpdateDate?: InputMaybe<Scalars['Int']['input']>;
  /** The supplier department */
  department?: InputMaybe<Scalars['String']['input']>;
  /** The supplier accounting key */
  accountingKey?: InputMaybe<Scalars['String']['input']>;
  /** The Supplier remarks for self use */
  remarks?: InputMaybe<Scalars['String']['input']>;
  /** The amount of incomes from the customer */
  incomeAmount?: InputMaybe<Scalars['Float']['input']>;
  paymentAmount?: InputMaybe<Scalars['Float']['input']>;
  /** The balance amount of the supplier */
  balanceAmount?: InputMaybe<Scalars['Float']['input']>;
};

/** Account classification of the expense */
export type _DOLLAR_defs_AccountingClassification_Input = {
  /** The classification ID, see 'Get Accounting Classifications' endpoint */
  id?: InputMaybe<Scalars['String']['input']>;
  /** The classification key */
  key?: InputMaybe<Scalars['String']['input']>;
  /** The classification code */
  code?: InputMaybe<Scalars['String']['input']>;
  /** The classification title */
  title?: InputMaybe<Scalars['String']['input']>;
  irsCode?: InputMaybe<query_getExpense_accountingClassification_irsCode>;
  /** The classification income */
  income?: InputMaybe<Scalars['Float']['input']>;
  /** The classification type */
  type?: InputMaybe<Scalars['Float']['input']>;
  /** The classification VAT */
  vat?: InputMaybe<Scalars['Float']['input']>;
};

export type addExpenseDraftByFile_response = addExpenseDraftByFile_200_response | searchExpenseDrafts_404_response;

export type addExpenseDraftByFile_200_response = {
  /** The expense draft ID */
  id?: Maybe<Scalars['String']['output']>;
  status?: Maybe<mutation_addExpenseDraftByFile_oneOf_0_status>;
  /** The creation date, in UNIX timestamp format */
  creationDate?: Maybe<Scalars['NonNegativeInt']['output']>;
  /** The last update date of the expense draft, in UNIX timestamp format */
  lastUpdateDate?: Maybe<Scalars['Int']['output']>;
  expense?: Maybe<_DOLLAR_defs_ExpensePartial>;
  /** URL of expense thumbnail */
  thumbnail?: Maybe<Scalars['String']['output']>;
  /** URL to download the expense thumbnail */
  url?: Maybe<Scalars['String']['output']>;
};

/** The status of the expense draft */
export type mutation_addExpenseDraftByFile_oneOf_0_status =
  | '_10'
  | '_50';

/** A Single Expense */
export type _DOLLAR_defs_ExpensePartial = {
  paymentType?: Maybe<mutation_addExpense_oneOf_0_allOf_0_paymentType>;
  currency?: Maybe<_DOLLAR_defs_Currency>;
  /** Currency rate relative to ILS */
  currencyRate?: Maybe<Scalars['NonNegativeFloat']['output']>;
  /** VAT amount */
  vat?: Maybe<Scalars['NonNegativeFloat']['output']>;
  /** The total amount of the expense */
  amount?: Maybe<Scalars['Float']['output']>;
  /** Date of the expense */
  date?: Maybe<Scalars['String']['output']>;
  /** Due date of the expense */
  dueDate?: Maybe<Scalars['String']['output']>;
  /** Reporting date of the expense */
  reportingDate?: Maybe<Scalars['String']['output']>;
  documentType?: Maybe<_DOLLAR_defs_ExpenseDocumentType>;
  /** Number of the expense */
  number?: Maybe<Scalars['String']['output']>;
  /** Description for the expense */
  description?: Maybe<Scalars['String']['output']>;
  /** Remarks for the expense */
  remarks?: Maybe<Scalars['String']['output']>;
  supplier?: Maybe<_DOLLAR_defs_Supplier>;
  accountingClassification?: Maybe<_DOLLAR_defs_AccountingClassification>;
  /** Is the expense active or not */
  active?: Maybe<Scalars['Boolean']['output']>;
  /** Should we save the supplier or not (by setting this to true you are required to add a supplier) */
  addRecipient?: Maybe<Scalars['Boolean']['output']>;
  /** Should we save the accounting classification (by setting this to true you are required to add an accounting classification that contains title & irsCode) */
  addAccountingClassification?: Maybe<Scalars['Boolean']['output']>;
};

export type _DOLLAR_defs_addExpenseDraftByFileRequest_Input = {
  /** The file, in Base64, allowed types: GIF, PNG, JPG, SVG, PDF */
  file?: InputMaybe<Scalars['String']['input']>;
};

export type _DOLLAR_defs_addClientResponse = _DOLLAR_defs_getClientResponse | _DOLLAR_defs_ErrorResponse;

/** Add a new client to the current business */
export type _DOLLAR_defs_addClientRequest_Input = {
  /** Phone number */
  phone?: InputMaybe<Scalars['String']['input']>;
  /** Mobile number */
  mobile?: InputMaybe<Scalars['String']['input']>;
  /** Email addresses */
  emails?: InputMaybe<Array<InputMaybe<Scalars['EmailAddress']['input']>>>;
  /** Fax number */
  fax?: InputMaybe<Scalars['String']['input']>;
  /** Contact person name */
  contactPerson?: InputMaybe<Scalars['String']['input']>;
  /** Street address */
  address?: InputMaybe<Scalars['String']['input']>;
  /** City name */
  city?: InputMaybe<Scalars['String']['input']>;
  /** Zip/postal code */
  zip?: InputMaybe<Scalars['String']['input']>;
  country?: InputMaybe<_DOLLAR_defs_Country>;
  /** Bank name */
  bankName?: InputMaybe<Scalars['String']['input']>;
  /** Bank branch number */
  bankBranch?: InputMaybe<Scalars['String']['input']>;
  /** Bank account number */
  bankAccount?: InputMaybe<Scalars['String']['input']>;
  /** The client name */
  name: Scalars['NonEmptyString']['input'];
  /** Is the client currently active or not */
  active?: InputMaybe<Scalars['Boolean']['input']>;
  /** The client tax ID */
  taxId?: InputMaybe<Scalars['String']['input']>;
  paymentTerms?: InputMaybe<mutationInput_addClient_input_allOf_3_paymentTerms>;
  labels?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
  /** Whether to send emails to the user automatically when assigning him to an invoice or not */
  send?: InputMaybe<Scalars['Boolean']['input']>;
  /** The client department */
  department?: InputMaybe<Scalars['String']['input']>;
  /** The client accounting key */
  accountingKey?: InputMaybe<Scalars['String']['input']>;
  /** The category this client is related to */
  category?: InputMaybe<Scalars['Int']['input']>;
  /** The sub category this client is related to */
  subCategory?: InputMaybe<Scalars['Int']['input']>;
  /** Client remarks for self use */
  remarks?: InputMaybe<Scalars['String']['input']>;
};

/** The client payment term, default is 0 */
export type mutationInput_addClient_input_allOf_3_paymentTerms =
  | 'NEGATIVE_1'
  | '_0'
  | '_10'
  | '_15'
  | '_30'
  | '_45'
  | '_60'
  | '_75'
  | '_90'
  | '_120';

export type _DOLLAR_defs_updateClientResponse = _DOLLAR_defs_getClientResponse | _DOLLAR_defs_ErrorResponse;

/** Update an existing client */
export type _DOLLAR_defs_updateClientRequest_Input = {
  /** The client name */
  name: Scalars['NonEmptyString']['input'];
  /** Is the client currently active or not */
  active?: InputMaybe<Scalars['Boolean']['input']>;
  /** The client tax ID */
  taxId?: InputMaybe<Scalars['String']['input']>;
  paymentTerms?: InputMaybe<mutationInput_updateClient_input_paymentTerms>;
  labels?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
  /** Whether to send emails to the user automatically when assigning him to an invoice or not */
  send?: InputMaybe<Scalars['Boolean']['input']>;
  /** The client department */
  department?: InputMaybe<Scalars['String']['input']>;
  /** The client accounting key */
  accountingKey?: InputMaybe<Scalars['String']['input']>;
  /** The category this client is related to */
  category?: InputMaybe<Scalars['Int']['input']>;
  /** The sub category this client is related to */
  subCategory?: InputMaybe<Scalars['Int']['input']>;
  /** Client remarks for self use */
  remarks?: InputMaybe<Scalars['String']['input']>;
  /** Phone number */
  phone?: InputMaybe<Scalars['String']['input']>;
  /** Mobile number */
  mobile?: InputMaybe<Scalars['String']['input']>;
  /** Email addresses */
  emails?: InputMaybe<Array<InputMaybe<Scalars['EmailAddress']['input']>>>;
  /** Fax number */
  fax?: InputMaybe<Scalars['String']['input']>;
  /** Contact person name */
  contactPerson?: InputMaybe<Scalars['String']['input']>;
  /** Street address */
  address?: InputMaybe<Scalars['String']['input']>;
  /** City name */
  city?: InputMaybe<Scalars['String']['input']>;
  /** Zip/postal code */
  zip?: InputMaybe<Scalars['String']['input']>;
  country?: InputMaybe<_DOLLAR_defs_Country>;
  /** Bank name */
  bankName?: InputMaybe<Scalars['String']['input']>;
  /** Bank branch number */
  bankBranch?: InputMaybe<Scalars['String']['input']>;
  /** Bank account number */
  bankAccount?: InputMaybe<Scalars['String']['input']>;
};

/** The client payment term, default is 0 */
export type mutationInput_updateClient_input_paymentTerms =
  | 'NEGATIVE_1'
  | '_0'
  | '_10'
  | '_15'
  | '_30'
  | '_45'
  | '_60'
  | '_75'
  | '_90'
  | '_120';

export type _DOLLAR_defs_deleteClientResponse = _DOLLAR_defs_getClientResponse | _DOLLAR_defs_ErrorResponse;

export type HTTPMethod =
  | 'GET'
  | 'HEAD'
  | 'POST'
  | 'PUT'
  | 'DELETE'
  | 'CONNECT'
  | 'OPTIONS'
  | 'TRACE'
  | 'PATCH';

export type _DOLLAR_defs_getFileUploadUrlResponse = {
  /** File Upload URL */
  url: Scalars['String']['output'];
  fields: query_getFileUploadUrl_fields;
};

export type query_getFileUploadUrl_fields = {
  otherField?: Maybe<Scalars['String']['output']>;
  bucket?: Maybe<Scalars['String']['output']>;
  key?: Maybe<Scalars['String']['output']>;
  Policy?: Maybe<Scalars['String']['output']>;
  x_amz_meta_account_id?: Maybe<Scalars['String']['output']>;
  x_amz_meta_user_id?: Maybe<Scalars['String']['output']>;
  x_amz_meta_business_id?: Maybe<Scalars['String']['output']>;
  x_amz_meta_file_context?: Maybe<Scalars['String']['output']>;
  x_amz_meta_file_data?: Maybe<Scalars['String']['output']>;
  X_Amz_Algorithm?: Maybe<Scalars['String']['output']>;
  X_Amz_Credential?: Maybe<Scalars['String']['output']>;
  X_Amz_Date?: Maybe<Scalars['String']['output']>;
  X_Amz_Security_Token?: Maybe<Scalars['String']['output']>;
  X_Amz_Signature?: Maybe<Scalars['String']['output']>;
};

export type queryInput_getFileUploadUrl_data_Input = {
  source: Scalars['Int']['input'];
  id?: InputMaybe<Scalars['String']['input']>;
  state?: InputMaybe<Scalars['String']['input']>;
};

export type _DOLLAR_defs_getBankTransactionsResponse = {
  size?: Maybe<Scalars['Int']['output']>;
  total?: Maybe<Scalars['Int']['output']>;
  pages?: Maybe<Scalars['Int']['output']>;
  page?: Maybe<Scalars['Int']['output']>;
  from?: Maybe<Scalars['Int']['output']>;
  to?: Maybe<Scalars['Int']['output']>;
  aggregations?: Maybe<Scalars['JSON']['output']>;
  results?: Maybe<Array<Maybe<_DOLLAR_defs_BankTransaction>>>;
};

export type _DOLLAR_defs_BankTransaction = {
  /** The transaction ID */
  id?: Maybe<Scalars['String']['output']>;
  aspspCode?: Maybe<_12_const>;
  /** The business ID */
  businessId?: Maybe<Scalars['String']['output']>;
  /** The creation date timestamp */
  createdAt?: Maybe<Scalars['Float']['output']>;
  /** The update date timestamp */
  updatedAt?: Maybe<Scalars['Float']['output']>;
  status?: Maybe<Scalars['Int']['output']>;
  classification?: Maybe<Scalars['Int']['output']>;
  bookingStatus?: Maybe<booked_const>;
  source?: Maybe<bank_const>;
  /** The amount of the transaction */
  amount?: Maybe<Scalars['Float']['output']>;
  /** The resource ID */
  resourceId?: Maybe<Scalars['String']['output']>;
  /** The creditor name */
  creditorName?: Maybe<Scalars['String']['output']>;
  /** The creditor account */
  creditorAccount?: Maybe<Scalars['String']['output']>;
  currency?: Maybe<_DOLLAR_defs_Currency>;
  /** Value date of the transaction */
  valueDate?: Maybe<Scalars['String']['output']>;
  /** Booking date of the transaction */
  bookingDate?: Maybe<Scalars['String']['output']>;
  /** The check ID */
  checkId?: Maybe<Scalars['String']['output']>;
  description?: Maybe<Scalars['String']['output']>;
  /** The debtor name */
  debtorName?: Maybe<Scalars['String']['output']>;
  /** The debtor account */
  debtorAccount?: Maybe<Scalars['String']['output']>;
  type?: Maybe<query_getBankTransactions_results_items_type>;
  name?: Maybe<Scalars['String']['output']>;
  date?: Maybe<Scalars['String']['output']>;
  /** The IBAN of the transaction */
  iban?: Maybe<Scalars['String']['output']>;
};

export type _12_const =
  | '_12';

export type booked_const =
  | 'booked';

export type bank_const =
  | 'bank';

/** The type of the transaction */
export type query_getBankTransactions_results_items_type =
  | 'credit'
  | 'debt';

export type queryInput_getBankTransactions_valueDate_Input = {
  from: Scalars['String']['input'];
  to: Scalars['String']['input'];
};

export type WithIndex<TObject> = TObject & Record<string, any>;
export type ResolversObject<TObject> = WithIndex<TObject>;

export type ResolverTypeWrapper<T> = Promise<T> | T;


export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
  resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
};

export type LegacyStitchingResolver<TResult, TParent, TContext, TArgs> = {
  fragment: string;
  resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
};

export type NewStitchingResolver<TResult, TParent, TContext, TArgs> = {
  selectionSet: string | ((fieldNode: FieldNode) => SelectionSetNode);
  resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
};
export type StitchingResolver<TResult, TParent, TContext, TArgs> = LegacyStitchingResolver<TResult, TParent, TContext, TArgs> | NewStitchingResolver<TResult, TParent, TContext, TArgs>;
export type Resolver<TResult, TParent = Record<PropertyKey, never>, TContext = Record<PropertyKey, never>, TArgs = Record<PropertyKey, never>> =
  | ResolverFn<TResult, TParent, TContext, TArgs>
  | ResolverWithResolve<TResult, TParent, TContext, TArgs>
  | StitchingResolver<TResult, TParent, TContext, TArgs>;

export type ResolverFn<TResult, TParent, TContext, TArgs> = (
  parent: TParent,
  args: TArgs,
  context: TContext,
  info: GraphQLResolveInfo
) => Promise<TResult> | TResult;

export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (
  parent: TParent,
  args: TArgs,
  context: TContext,
  info: GraphQLResolveInfo
) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;

export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (
  parent: TParent,
  args: TArgs,
  context: TContext,
  info: GraphQLResolveInfo
) => TResult | Promise<TResult>;

export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
  subscribe: SubscriptionSubscribeFn<{ [key in TKey]: TResult }, TParent, TContext, TArgs>;
  resolve?: SubscriptionResolveFn<TResult, { [key in TKey]: TResult }, TContext, TArgs>;
}

export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
  subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
  resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
}

export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> =
  | SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs>
  | SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;

export type SubscriptionResolver<TResult, TKey extends string, TParent = Record<PropertyKey, never>, TContext = Record<PropertyKey, never>, TArgs = Record<PropertyKey, never>> =
  | ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>)
  | SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;

export type TypeResolveFn<TTypes, TParent = Record<PropertyKey, never>, TContext = Record<PropertyKey, never>> = (
  parent: TParent,
  context: TContext,
  info: GraphQLResolveInfo
) => Maybe<TTypes> | Promise<Maybe<TTypes>>;

export type IsTypeOfResolverFn<T = Record<PropertyKey, never>, TContext = Record<PropertyKey, never>> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;

export type NextResolverFn<T> = () => Promise<T>;

export type DirectiveResolverFn<TResult = Record<PropertyKey, never>, TParent = Record<PropertyKey, never>, TContext = Record<PropertyKey, never>, TArgs = Record<PropertyKey, never>> = (
  next: NextResolverFn<TResult>,
  parent: TParent,
  args: TArgs,
  context: TContext,
  info: GraphQLResolveInfo
) => TResult | Promise<TResult>;



/** Mapping of union types */
export type ResolversUnionTypes<_RefType extends Record<string, unknown>> = ResolversObject<{
  _DOLLAR_defs_previewDocumentResponse:
    | ( query_previewDocument_oneOf_0 )
    | ( _DOLLAR_defs_ErrorResponse )
  ;
  searchExpenseDrafts_response:
    | ( Omit<searchExpenseDrafts_200_response, 'items'> & { items: Array<Maybe<_RefType['query_searchExpenseDrafts_oneOf_0_allOf_1_items_items']>> } )
    | ( searchExpenseDrafts_404_response )
  ;
  query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType:
    | ( Boolean_container )
    | ( query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1_container )
  ;
  _DOLLAR_defs_addDocumentResponse:
    | ( _DOLLAR_defs_AddedDocument )
    | ( _DOLLAR_defs_ErrorResponse )
  ;
  _DOLLAR_defs_addExpenseResponse:
    | ( Omit<_DOLLAR_defs_Expense, 'paymentType'> & { paymentType?: Maybe<_RefType['mutation_addExpense_oneOf_0_allOf_0_paymentType']> } )
    | ( _DOLLAR_defs_ErrorResponse )
  ;
  mutation_addExpense_oneOf_0_allOf_0_paymentType:
    | ( Boolean_container )
    | ( mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_container )
  ;
  _DOLLAR_defs_updateExpenseResponse:
    | ( _DOLLAR_defs_GetExpense )
    | ( _DOLLAR_defs_ErrorResponse )
  ;
  addExpenseDraftByFile_response:
    | ( Omit<addExpenseDraftByFile_200_response, 'expense'> & { expense?: Maybe<_RefType['_DOLLAR_defs_ExpensePartial']> } )
    | ( searchExpenseDrafts_404_response )
  ;
  _DOLLAR_defs_addClientResponse:
    | ( _DOLLAR_defs_getClientResponse )
    | ( _DOLLAR_defs_ErrorResponse )
  ;
  _DOLLAR_defs_updateClientResponse:
    | ( _DOLLAR_defs_getClientResponse )
    | ( _DOLLAR_defs_ErrorResponse )
  ;
  _DOLLAR_defs_deleteClientResponse:
    | ( _DOLLAR_defs_getClientResponse )
    | ( _DOLLAR_defs_ErrorResponse )
  ;
}>;


/** Mapping between all available schema types and the resolvers types */
export type ResolversTypes = ResolversObject<{
  Query: ResolverTypeWrapper<Record<PropertyKey, never>>;
  Mutation: ResolverTypeWrapper<Record<PropertyKey, never>>;
  _DOLLAR_defs_Document: ResolverTypeWrapper<_DOLLAR_defs_Document>;
  Float: ResolverTypeWrapper<Scalars['Float']['output']>;
  NonNegativeFloat: ResolverTypeWrapper<Scalars['NonNegativeFloat']['output']>;
  _DOLLAR_defs_Business: ResolverTypeWrapper<_DOLLAR_defs_Business>;
  JSON: ResolverTypeWrapper<Scalars['JSON']['output']>;
  query_getDocument_business_type: query_getDocument_business_type;
  query_getDocument_client: ResolverTypeWrapper<query_getDocument_client>;
  _DOLLAR_defs_Country: _DOLLAR_defs_Country;
  EmailAddress: ResolverTypeWrapper<Scalars['EmailAddress']['output']>;
  UUID: ResolverTypeWrapper<Scalars['UUID']['output']>;
  NonEmptyString: ResolverTypeWrapper<Scalars['NonEmptyString']['output']>;
  NonNegativeInt: ResolverTypeWrapper<Scalars['NonNegativeInt']['output']>;
  _DOLLAR_defs_Currency: _DOLLAR_defs_Currency;
  _DOLLAR_defs_DocumentData: ResolverTypeWrapper<_DOLLAR_defs_DocumentData>;
  Date: ResolverTypeWrapper<Scalars['Date']['output']>;
  _DOLLAR_defs_Income: ResolverTypeWrapper<_DOLLAR_defs_Income>;
  _DOLLAR_defs_VatType: _DOLLAR_defs_VatType;
  _DOLLAR_defs_DocumentLang: _DOLLAR_defs_DocumentLang;
  _DOLLAR_defs_DocumentLinkedDocument: ResolverTypeWrapper<_DOLLAR_defs_DocumentLinkedDocument>;
  _DOLLAR_defs_DocumentType: _DOLLAR_defs_DocumentType;
  _DOLLAR_defs_PaymentDocument: ResolverTypeWrapper<_DOLLAR_defs_PaymentDocument>;
  Int: ResolverTypeWrapper<Scalars['Int']['output']>;
  query_getDocument_payment_items_type: query_getDocument_payment_items_type;
  query_getDocument_payment_items_subType: query_getDocument_payment_items_subType;
  query_getDocument_payment_items_appType: query_getDocument_payment_items_appType;
  query_getDocument_payment_items_cardType: query_getDocument_payment_items_cardType;
  query_getDocument_payment_items_dealType: query_getDocument_payment_items_dealType;
  _DOLLAR_defs_Url: ResolverTypeWrapper<_DOLLAR_defs_Url>;
  _DOLLAR_defs_searchDocumentsResponse: ResolverTypeWrapper<_DOLLAR_defs_searchDocumentsResponse>;
  PositiveFloat: ResolverTypeWrapper<Scalars['PositiveFloat']['output']>;
  _DOLLAR_defs_searchDocumentsRequest_Input: _DOLLAR_defs_searchDocumentsRequest_Input;
  queryInput_searchDocuments_input_status_items: queryInput_searchDocuments_input_status_items;
  queryInput_searchDocuments_input_paymentTypes_items: queryInput_searchDocuments_input_paymentTypes_items;
  queryInput_searchDocuments_input_sort: queryInput_searchDocuments_input_sort;
  _DOLLAR_defs_previewDocumentResponse: ResolverTypeWrapper<ResolversUnionTypes<ResolversTypes>['_DOLLAR_defs_previewDocumentResponse']>;
  query_previewDocument_oneOf_0: ResolverTypeWrapper<query_previewDocument_oneOf_0>;
  _DOLLAR_defs_ErrorResponse: ResolverTypeWrapper<_DOLLAR_defs_ErrorResponse>;
  _DOLLAR_defs_DocumentInputNew_Input: _DOLLAR_defs_DocumentInputNew_Input;
  _DOLLAR_defs_DocumentDiscount_Input: _DOLLAR_defs_DocumentDiscount_Input;
  queryInput_previewDocument_input_discount_type: queryInput_previewDocument_input_discount_type;
  _DOLLAR_defs_Income_Input: _DOLLAR_defs_Income_Input;
  _DOLLAR_defs_PaymentDocument_Input: _DOLLAR_defs_PaymentDocument_Input;
  queryInput_previewDocument_input_linkType: queryInput_previewDocument_input_linkType;
  _DOLLAR_defs_GetLinkedDocuments: ResolverTypeWrapper<_DOLLAR_defs_GetLinkedDocuments>;
  _DOLLAR_defs_GetExpense: ResolverTypeWrapper<_DOLLAR_defs_GetExpense>;
  query_getExpense_businessType: query_getExpense_businessType;
  _DOLLAR_defs_ExpenseDocumentType: _DOLLAR_defs_ExpenseDocumentType;
  query_getExpense_status: query_getExpense_status;
  query_getExpense_paymentType: query_getExpense_paymentType;
  _DOLLAR_defs_Supplier: ResolverTypeWrapper<_DOLLAR_defs_Supplier>;
  query_getExpense_supplier_allOf_3_paymentTerms: query_getExpense_supplier_allOf_3_paymentTerms;
  _DOLLAR_defs_AccountingClassification: ResolverTypeWrapper<_DOLLAR_defs_AccountingClassification>;
  query_getExpense_accountingClassification_irsCode: query_getExpense_accountingClassification_irsCode;
  _DOLLAR_defs_searchExpensesResponse: ResolverTypeWrapper<_DOLLAR_defs_searchExpensesResponse>;
  _DOLLAR_defs_searchExpensesRequest_Input: _DOLLAR_defs_searchExpensesRequest_Input;
  searchExpenseDrafts_response: ResolverTypeWrapper<ResolversUnionTypes<ResolversTypes>['searchExpenseDrafts_response']>;
  searchExpenseDrafts_200_response: ResolverTypeWrapper<Omit<searchExpenseDrafts_200_response, 'items'> & { items: Array<Maybe<ResolversTypes['query_searchExpenseDrafts_oneOf_0_allOf_1_items_items']>> }>;
  query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations: ResolverTypeWrapper<query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations>;
  query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations_totalAmount: ResolverTypeWrapper<query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations_totalAmount>;
  query_searchExpenseDrafts_oneOf_0_allOf_1_items_items: ResolverTypeWrapper<Omit<query_searchExpenseDrafts_oneOf_0_allOf_1_items_items, 'expense'> & { expense: ResolversTypes['query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense'] }>;
  query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense: ResolverTypeWrapper<Omit<query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense, 'paymentType'> & { paymentType?: Maybe<ResolversTypes['query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType']> }>;
  query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType: ResolverTypeWrapper<ResolversUnionTypes<ResolversTypes>['query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType']>;
  Boolean_container: ResolverTypeWrapper<Boolean_container>;
  query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1_container: ResolverTypeWrapper<query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1_container>;
  query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1: query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1;
  searchExpenseDrafts_404_response: ResolverTypeWrapper<searchExpenseDrafts_404_response>;
  _DOLLAR_defs_searchExpenseDraftsRequest_Input: _DOLLAR_defs_searchExpenseDraftsRequest_Input;
  _DOLLAR_defs_getClientResponse: ResolverTypeWrapper<_DOLLAR_defs_getClientResponse>;
  query_getClient_allOf_3_paymentTerms: query_getClient_allOf_3_paymentTerms;
  _DOLLAR_defs_addDocumentResponse: ResolverTypeWrapper<ResolversUnionTypes<ResolversTypes>['_DOLLAR_defs_addDocumentResponse']>;
  _DOLLAR_defs_AddedDocument: ResolverTypeWrapper<_DOLLAR_defs_AddedDocument>;
  PositiveInt: ResolverTypeWrapper<Scalars['PositiveInt']['output']>;
  _DOLLAR_defs_addDocumentRequest_Input: _DOLLAR_defs_addDocumentRequest_Input;
  _DOLLAR_defs_addExpenseResponse: ResolverTypeWrapper<ResolversUnionTypes<ResolversTypes>['_DOLLAR_defs_addExpenseResponse']>;
  _DOLLAR_defs_Expense: ResolverTypeWrapper<Omit<_DOLLAR_defs_Expense, 'paymentType'> & { paymentType?: Maybe<ResolversTypes['mutation_addExpense_oneOf_0_allOf_0_paymentType']> }>;
  mutation_addExpense_oneOf_0_allOf_0_paymentType: ResolverTypeWrapper<ResolversUnionTypes<ResolversTypes>['mutation_addExpense_oneOf_0_allOf_0_paymentType']>;
  mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_container: ResolverTypeWrapper<mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_container>;
  mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1: mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1;
  _DOLLAR_defs_updateExpenseResponse: ResolverTypeWrapper<ResolversUnionTypes<ResolversTypes>['_DOLLAR_defs_updateExpenseResponse']>;
  _DOLLAR_defs_updateExpenseRequest_Input: _DOLLAR_defs_updateExpenseRequest_Input;
  mutationInput_updateExpense_input_paymentType_Input: mutationInput_updateExpense_input_paymentType_Input;
  mutationInput_updateExpense_input_paymentType_oneOf_1: mutationInput_updateExpense_input_paymentType_oneOf_1;
  _DOLLAR_defs_Supplier_Input: _DOLLAR_defs_Supplier_Input;
  _DOLLAR_defs_AccountingClassification_Input: _DOLLAR_defs_AccountingClassification_Input;
  addExpenseDraftByFile_response: ResolverTypeWrapper<ResolversUnionTypes<ResolversTypes>['addExpenseDraftByFile_response']>;
  addExpenseDraftByFile_200_response: ResolverTypeWrapper<Omit<addExpenseDraftByFile_200_response, 'expense'> & { expense?: Maybe<ResolversTypes['_DOLLAR_defs_ExpensePartial']> }>;
  mutation_addExpenseDraftByFile_oneOf_0_status: mutation_addExpenseDraftByFile_oneOf_0_status;
  _DOLLAR_defs_ExpensePartial: ResolverTypeWrapper<Omit<_DOLLAR_defs_ExpensePartial, 'paymentType'> & { paymentType?: Maybe<ResolversTypes['mutation_addExpense_oneOf_0_allOf_0_paymentType']> }>;
  _DOLLAR_defs_addExpenseDraftByFileRequest_Input: _DOLLAR_defs_addExpenseDraftByFileRequest_Input;
  _DOLLAR_defs_addClientResponse: ResolverTypeWrapper<ResolversUnionTypes<ResolversTypes>['_DOLLAR_defs_addClientResponse']>;
  _DOLLAR_defs_addClientRequest_Input: _DOLLAR_defs_addClientRequest_Input;
  mutationInput_addClient_input_allOf_3_paymentTerms: mutationInput_addClient_input_allOf_3_paymentTerms;
  _DOLLAR_defs_updateClientResponse: ResolverTypeWrapper<ResolversUnionTypes<ResolversTypes>['_DOLLAR_defs_updateClientResponse']>;
  _DOLLAR_defs_updateClientRequest_Input: _DOLLAR_defs_updateClientRequest_Input;
  mutationInput_updateClient_input_paymentTerms: mutationInput_updateClient_input_paymentTerms;
  _DOLLAR_defs_deleteClientResponse: ResolverTypeWrapper<ResolversUnionTypes<ResolversTypes>['_DOLLAR_defs_deleteClientResponse']>;
  ObjMap: ResolverTypeWrapper<Scalars['ObjMap']['output']>;
  HTTPMethod: HTTPMethod;
  String: ResolverTypeWrapper<Scalars['String']['output']>;
  Boolean: ResolverTypeWrapper<Scalars['Boolean']['output']>;
  _DOLLAR_defs_getFileUploadUrlResponse: ResolverTypeWrapper<_DOLLAR_defs_getFileUploadUrlResponse>;
  query_getFileUploadUrl_fields: ResolverTypeWrapper<query_getFileUploadUrl_fields>;
  queryInput_getFileUploadUrl_data_Input: queryInput_getFileUploadUrl_data_Input;
  _DOLLAR_defs_getBankTransactionsResponse: ResolverTypeWrapper<_DOLLAR_defs_getBankTransactionsResponse>;
  _DOLLAR_defs_BankTransaction: ResolverTypeWrapper<_DOLLAR_defs_BankTransaction>;
  _12_const: _12_const;
  booked_const: booked_const;
  bank_const: bank_const;
  query_getBankTransactions_results_items_type: query_getBankTransactions_results_items_type;
  queryInput_getBankTransactions_valueDate_Input: queryInput_getBankTransactions_valueDate_Input;
}>;

/** Mapping between all available schema types and the resolvers parents */
export type ResolversParentTypes = ResolversObject<{
  Query: Record<PropertyKey, never>;
  Mutation: Record<PropertyKey, never>;
  _DOLLAR_defs_Document: _DOLLAR_defs_Document;
  Float: Scalars['Float']['output'];
  NonNegativeFloat: Scalars['NonNegativeFloat']['output'];
  _DOLLAR_defs_Business: _DOLLAR_defs_Business;
  JSON: Scalars['JSON']['output'];
  query_getDocument_client: query_getDocument_client;
  EmailAddress: Scalars['EmailAddress']['output'];
  UUID: Scalars['UUID']['output'];
  NonEmptyString: Scalars['NonEmptyString']['output'];
  NonNegativeInt: Scalars['NonNegativeInt']['output'];
  _DOLLAR_defs_DocumentData: _DOLLAR_defs_DocumentData;
  Date: Scalars['Date']['output'];
  _DOLLAR_defs_Income: _DOLLAR_defs_Income;
  _DOLLAR_defs_DocumentLinkedDocument: _DOLLAR_defs_DocumentLinkedDocument;
  _DOLLAR_defs_PaymentDocument: _DOLLAR_defs_PaymentDocument;
  Int: Scalars['Int']['output'];
  _DOLLAR_defs_Url: _DOLLAR_defs_Url;
  _DOLLAR_defs_searchDocumentsResponse: _DOLLAR_defs_searchDocumentsResponse;
  PositiveFloat: Scalars['PositiveFloat']['output'];
  _DOLLAR_defs_searchDocumentsRequest_Input: _DOLLAR_defs_searchDocumentsRequest_Input;
  _DOLLAR_defs_previewDocumentResponse: ResolversUnionTypes<ResolversParentTypes>['_DOLLAR_defs_previewDocumentResponse'];
  query_previewDocument_oneOf_0: query_previewDocument_oneOf_0;
  _DOLLAR_defs_ErrorResponse: _DOLLAR_defs_ErrorResponse;
  _DOLLAR_defs_DocumentInputNew_Input: _DOLLAR_defs_DocumentInputNew_Input;
  _DOLLAR_defs_DocumentDiscount_Input: _DOLLAR_defs_DocumentDiscount_Input;
  _DOLLAR_defs_Income_Input: _DOLLAR_defs_Income_Input;
  _DOLLAR_defs_PaymentDocument_Input: _DOLLAR_defs_PaymentDocument_Input;
  _DOLLAR_defs_GetLinkedDocuments: _DOLLAR_defs_GetLinkedDocuments;
  _DOLLAR_defs_GetExpense: _DOLLAR_defs_GetExpense;
  _DOLLAR_defs_Supplier: _DOLLAR_defs_Supplier;
  _DOLLAR_defs_AccountingClassification: _DOLLAR_defs_AccountingClassification;
  _DOLLAR_defs_searchExpensesResponse: _DOLLAR_defs_searchExpensesResponse;
  _DOLLAR_defs_searchExpensesRequest_Input: _DOLLAR_defs_searchExpensesRequest_Input;
  searchExpenseDrafts_response: ResolversUnionTypes<ResolversParentTypes>['searchExpenseDrafts_response'];
  searchExpenseDrafts_200_response: Omit<searchExpenseDrafts_200_response, 'items'> & { items: Array<Maybe<ResolversParentTypes['query_searchExpenseDrafts_oneOf_0_allOf_1_items_items']>> };
  query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations: query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations;
  query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations_totalAmount: query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations_totalAmount;
  query_searchExpenseDrafts_oneOf_0_allOf_1_items_items: Omit<query_searchExpenseDrafts_oneOf_0_allOf_1_items_items, 'expense'> & { expense: ResolversParentTypes['query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense'] };
  query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense: Omit<query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense, 'paymentType'> & { paymentType?: Maybe<ResolversParentTypes['query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType']> };
  query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType: ResolversUnionTypes<ResolversParentTypes>['query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType'];
  Boolean_container: Boolean_container;
  query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1_container: query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1_container;
  searchExpenseDrafts_404_response: searchExpenseDrafts_404_response;
  _DOLLAR_defs_searchExpenseDraftsRequest_Input: _DOLLAR_defs_searchExpenseDraftsRequest_Input;
  _DOLLAR_defs_getClientResponse: _DOLLAR_defs_getClientResponse;
  _DOLLAR_defs_addDocumentResponse: ResolversUnionTypes<ResolversParentTypes>['_DOLLAR_defs_addDocumentResponse'];
  _DOLLAR_defs_AddedDocument: _DOLLAR_defs_AddedDocument;
  PositiveInt: Scalars['PositiveInt']['output'];
  _DOLLAR_defs_addDocumentRequest_Input: _DOLLAR_defs_addDocumentRequest_Input;
  _DOLLAR_defs_addExpenseResponse: ResolversUnionTypes<ResolversParentTypes>['_DOLLAR_defs_addExpenseResponse'];
  _DOLLAR_defs_Expense: Omit<_DOLLAR_defs_Expense, 'paymentType'> & { paymentType?: Maybe<ResolversParentTypes['mutation_addExpense_oneOf_0_allOf_0_paymentType']> };
  mutation_addExpense_oneOf_0_allOf_0_paymentType: ResolversUnionTypes<ResolversParentTypes>['mutation_addExpense_oneOf_0_allOf_0_paymentType'];
  mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_container: mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_container;
  _DOLLAR_defs_updateExpenseResponse: ResolversUnionTypes<ResolversParentTypes>['_DOLLAR_defs_updateExpenseResponse'];
  _DOLLAR_defs_updateExpenseRequest_Input: _DOLLAR_defs_updateExpenseRequest_Input;
  mutationInput_updateExpense_input_paymentType_Input: mutationInput_updateExpense_input_paymentType_Input;
  _DOLLAR_defs_Supplier_Input: _DOLLAR_defs_Supplier_Input;
  _DOLLAR_defs_AccountingClassification_Input: _DOLLAR_defs_AccountingClassification_Input;
  addExpenseDraftByFile_response: ResolversUnionTypes<ResolversParentTypes>['addExpenseDraftByFile_response'];
  addExpenseDraftByFile_200_response: Omit<addExpenseDraftByFile_200_response, 'expense'> & { expense?: Maybe<ResolversParentTypes['_DOLLAR_defs_ExpensePartial']> };
  _DOLLAR_defs_ExpensePartial: Omit<_DOLLAR_defs_ExpensePartial, 'paymentType'> & { paymentType?: Maybe<ResolversParentTypes['mutation_addExpense_oneOf_0_allOf_0_paymentType']> };
  _DOLLAR_defs_addExpenseDraftByFileRequest_Input: _DOLLAR_defs_addExpenseDraftByFileRequest_Input;
  _DOLLAR_defs_addClientResponse: ResolversUnionTypes<ResolversParentTypes>['_DOLLAR_defs_addClientResponse'];
  _DOLLAR_defs_addClientRequest_Input: _DOLLAR_defs_addClientRequest_Input;
  _DOLLAR_defs_updateClientResponse: ResolversUnionTypes<ResolversParentTypes>['_DOLLAR_defs_updateClientResponse'];
  _DOLLAR_defs_updateClientRequest_Input: _DOLLAR_defs_updateClientRequest_Input;
  _DOLLAR_defs_deleteClientResponse: ResolversUnionTypes<ResolversParentTypes>['_DOLLAR_defs_deleteClientResponse'];
  ObjMap: Scalars['ObjMap']['output'];
  String: Scalars['String']['output'];
  Boolean: Scalars['Boolean']['output'];
  _DOLLAR_defs_getFileUploadUrlResponse: _DOLLAR_defs_getFileUploadUrlResponse;
  query_getFileUploadUrl_fields: query_getFileUploadUrl_fields;
  queryInput_getFileUploadUrl_data_Input: queryInput_getFileUploadUrl_data_Input;
  _DOLLAR_defs_getBankTransactionsResponse: _DOLLAR_defs_getBankTransactionsResponse;
  _DOLLAR_defs_BankTransaction: _DOLLAR_defs_BankTransaction;
  queryInput_getBankTransactions_valueDate_Input: queryInput_getBankTransactions_valueDate_Input;
}>;

export type enumDirectiveArgs = {
  subgraph?: Maybe<Scalars['String']['input']>;
  value?: Maybe<Scalars['String']['input']>;
};

export type enumDirectiveResolver<Result, Parent, ContextType = MeshContext, Args = enumDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;

export type resolveRootDirectiveArgs = {
  subgraph?: Maybe<Scalars['String']['input']>;
};

export type resolveRootDirectiveResolver<Result, Parent, ContextType = MeshContext, Args = resolveRootDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;

export type exampleDirectiveArgs = {
  subgraph?: Maybe<Scalars['String']['input']>;
  value?: Maybe<Scalars['ObjMap']['input']>;
};

export type exampleDirectiveResolver<Result, Parent, ContextType = MeshContext, Args = exampleDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;

export type statusCodeTypeNameDirectiveArgs = {
  subgraph?: Maybe<Scalars['String']['input']>;
  typeName?: Maybe<Scalars['String']['input']>;
  statusCode?: Maybe<Scalars['String']['input']>;
};

export type statusCodeTypeNameDirectiveResolver<Result, Parent, ContextType = MeshContext, Args = statusCodeTypeNameDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;

export type httpOperationDirectiveArgs = {
  subgraph?: Maybe<Scalars['String']['input']>;
  path?: Maybe<Scalars['String']['input']>;
  operationSpecificHeaders?: Maybe<Array<Maybe<Array<Maybe<Scalars['String']['input']>>>>>;
  httpMethod?: Maybe<HTTPMethod>;
  isBinary?: Maybe<Scalars['Boolean']['input']>;
  requestBaseBody?: Maybe<Scalars['ObjMap']['input']>;
  queryParamArgMap?: Maybe<Scalars['ObjMap']['input']>;
  queryStringOptionsByParam?: Maybe<Scalars['ObjMap']['input']>;
  jsonApiFields?: Maybe<Scalars['Boolean']['input']>;
  queryStringOptions?: Maybe<Scalars['ObjMap']['input']>;
};

export type httpOperationDirectiveResolver<Result, Parent, ContextType = MeshContext, Args = httpOperationDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;

export type transportDirectiveArgs = {
  subgraph?: Maybe<Scalars['String']['input']>;
  kind?: Maybe<Scalars['String']['input']>;
  location?: Maybe<Scalars['String']['input']>;
  headers?: Maybe<Array<Maybe<Array<Maybe<Scalars['String']['input']>>>>>;
  queryStringOptions?: Maybe<Scalars['ObjMap']['input']>;
  queryParams?: Maybe<Array<Maybe<Array<Maybe<Scalars['String']['input']>>>>>;
};

export type transportDirectiveResolver<Result, Parent, ContextType = MeshContext, Args = transportDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;

export type resolveRootFieldDirectiveArgs = {
  subgraph?: Maybe<Scalars['String']['input']>;
  field?: Maybe<Scalars['String']['input']>;
};

export type resolveRootFieldDirectiveResolver<Result, Parent, ContextType = MeshContext, Args = resolveRootFieldDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;

export type typescriptDirectiveArgs = {
  subgraph?: Maybe<Scalars['String']['input']>;
  type?: Maybe<Scalars['String']['input']>;
};

export type typescriptDirectiveResolver<Result, Parent, ContextType = MeshContext, Args = typescriptDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;

export type QueryResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['Query'] = ResolversParentTypes['Query']> = ResolversObject<{
  getDocument?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_Document']>, ParentType, ContextType, RequireFields<QuerygetDocumentArgs, 'id'>>;
  searchDocuments?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_searchDocumentsResponse']>, ParentType, ContextType, Partial<QuerysearchDocumentsArgs>>;
  previewDocument?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_previewDocumentResponse']>, ParentType, ContextType, Partial<QuerypreviewDocumentArgs>>;
  getLinkedDocuments?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_GetLinkedDocuments']>, ParentType, ContextType, RequireFields<QuerygetLinkedDocumentsArgs, 'id'>>;
  getDocumentsDownloadLinks?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_Url']>, ParentType, ContextType, RequireFields<QuerygetDocumentsDownloadLinksArgs, 'id'>>;
  getExpense?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_GetExpense']>, ParentType, ContextType, RequireFields<QuerygetExpenseArgs, 'id'>>;
  searchExpenses?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_searchExpensesResponse']>, ParentType, ContextType, Partial<QuerysearchExpensesArgs>>;
  searchExpenseDrafts?: Resolver<Maybe<ResolversTypes['searchExpenseDrafts_response']>, ParentType, ContextType, Partial<QuerysearchExpenseDraftsArgs>>;
  getClient?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_getClientResponse']>, ParentType, ContextType, RequireFields<QuerygetClientArgs, 'id'>>;
  getFileUploadUrl?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_getFileUploadUrlResponse']>, ParentType, ContextType, Partial<QuerygetFileUploadUrlArgs>>;
  getBankTransactions?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_getBankTransactionsResponse']>, ParentType, ContextType, Partial<QuerygetBankTransactionsArgs>>;
}>;

export type MutationResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['Mutation'] = ResolversParentTypes['Mutation']> = ResolversObject<{
  addDocument?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_addDocumentResponse']>, ParentType, ContextType, Partial<MutationaddDocumentArgs>>;
  closeDocument?: Resolver<Maybe<ResolversTypes['JSON']>, ParentType, ContextType, RequireFields<MutationcloseDocumentArgs, 'id'>>;
  addExpense?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_addExpenseResponse']>, ParentType, ContextType, Partial<MutationaddExpenseArgs>>;
  updateExpense?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_updateExpenseResponse']>, ParentType, ContextType, Partial<MutationupdateExpenseArgs>>;
  addExpenseDraftByFile?: Resolver<Maybe<ResolversTypes['addExpenseDraftByFile_response']>, ParentType, ContextType, Partial<MutationaddExpenseDraftByFileArgs>>;
  addClient?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_addClientResponse']>, ParentType, ContextType, Partial<MutationaddClientArgs>>;
  updateClient?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_updateClientResponse']>, ParentType, ContextType, RequireFields<MutationupdateClientArgs, 'id'>>;
  deleteClient?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_deleteClientResponse']>, ParentType, ContextType, RequireFields<MutationdeleteClientArgs, 'id'>>;
}>;

export type _DOLLAR_defs_DocumentResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_Document'] = ResolversParentTypes['_DOLLAR_defs_Document']> = ResolversObject<{
  amount?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  amountDueVat?: Resolver<ResolversTypes['NonNegativeFloat'], ParentType, ContextType>;
  amountDueVatLocal?: Resolver<ResolversTypes['NonNegativeFloat'], ParentType, ContextType>;
  amountExcludeVat?: Resolver<ResolversTypes['NonNegativeFloat'], ParentType, ContextType>;
  amountExemptVat?: Resolver<ResolversTypes['NonNegativeFloat'], ParentType, ContextType>;
  amountLocal?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  amountOpened?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  business?: Resolver<ResolversTypes['_DOLLAR_defs_Business'], ParentType, ContextType>;
  calculatedAmountLocal?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  calculatedAmountOpenedLocal?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  calculatedIncomeAmountExcludeLocal?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  calculatedIncomeAmountLocal?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  calculatedPaymentAmountLocal?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  cancellable?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
  cancelType?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
  client?: Resolver<ResolversTypes['query_getDocument_client'], ParentType, ContextType>;
  creationDate?: Resolver<ResolversTypes['NonNegativeInt'], ParentType, ContextType>;
  currency?: Resolver<ResolversTypes['_DOLLAR_defs_Currency'], ParentType, ContextType>;
  currencyRate?: Resolver<ResolversTypes['NonNegativeFloat'], ParentType, ContextType>;
  data?: Resolver<ResolversTypes['_DOLLAR_defs_DocumentData'], ParentType, ContextType>;
  description?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
  documentDate?: Resolver<ResolversTypes['Date'], ParentType, ContextType>;
  downloaded?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
  footer?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  id?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
  income?: Resolver<Array<Maybe<ResolversTypes['_DOLLAR_defs_Income']>>, ParentType, ContextType>;
  lang?: Resolver<ResolversTypes['_DOLLAR_defs_DocumentLang'], ParentType, ContextType>;
  linkedDocuments?: Resolver<Maybe<Array<Maybe<ResolversTypes['_DOLLAR_defs_DocumentLinkedDocument']>>>, ParentType, ContextType>;
  number?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
  payment?: Resolver<Array<Maybe<ResolversTypes['_DOLLAR_defs_PaymentDocument']>>, ParentType, ContextType>;
  ref?: Resolver<Array<Maybe<ResolversTypes['Float']>>, ParentType, ContextType>;
  remarks?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  reverseCharge?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
  rounding?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
  signed?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
  skinId?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  status?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  taxConfirmationEligible?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
  templateId?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  type?: Resolver<ResolversTypes['_DOLLAR_defs_DocumentType'], ParentType, ContextType>;
  url?: Resolver<ResolversTypes['_DOLLAR_defs_Url'], ParentType, ContextType>;
  userName?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  vat?: Resolver<ResolversTypes['NonNegativeFloat'], ParentType, ContextType>;
  vatLocal?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
  vatRate?: Resolver<ResolversTypes['NonNegativeFloat'], ParentType, ContextType>;
  vatType?: Resolver<ResolversTypes['_DOLLAR_defs_VatType'], ParentType, ContextType>;
}>;

export interface NonNegativeFloatScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes['NonNegativeFloat'], any> {
  name: 'NonNegativeFloat';
}

export type _DOLLAR_defs_BusinessResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_Business'] = ResolversParentTypes['_DOLLAR_defs_Business']> = ResolversObject<{
  accountantDocsEmailSettings?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  accountantEmails?: Resolver<Array<Maybe<ResolversTypes['JSON']>>, ParentType, ContextType>;
  accountantReportEmailSettings?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  accountingType?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  active?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
  advanceNationalInsuranceRate?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  advanceTaxRate?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  bankDisplay?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
  bankDisplayEn?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
  deductionRate?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  documentsEmailSettings?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  emailSubjectType?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  exemption?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
  incomeReportEmailSettings?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  incomeReportFormatType?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  reportSendingDay?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  senderEmailSettings?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  type?: Resolver<ResolversTypes['query_getDocument_business_type'], ParentType, ContextType>;
}>;

export interface JSONScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes['JSON'], any> {
  name: 'JSON';
}

export type query_getDocument_clientResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['query_getDocument_client'] = ResolversParentTypes['query_getDocument_client']> = ResolversObject<{
  country?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_Country']>, ParentType, ContextType>;
  emails?: Resolver<Maybe<Array<Maybe<ResolversTypes['EmailAddress']>>>, ParentType, ContextType>;
  id?: Resolver<Maybe<ResolversTypes['UUID']>, ParentType, ContextType>;
  name?: Resolver<Maybe<ResolversTypes['NonEmptyString']>, ParentType, ContextType>;
  phone?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  taxId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  self?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
  address?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  city?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  zip?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  fax?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  mobile?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  add?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
  JSON?: Resolver<Maybe<ResolversTypes['JSON']>, ParentType, ContextType>;
}>;

export interface EmailAddressScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes['EmailAddress'], any> {
  name: 'EmailAddress';
}

export interface UUIDScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes['UUID'], any> {
  name: 'UUID';
}

export interface NonEmptyStringScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes['NonEmptyString'], any> {
  name: 'NonEmptyString';
}

export interface NonNegativeIntScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes['NonNegativeInt'], any> {
  name: 'NonNegativeInt';
}

export type _DOLLAR_defs_DocumentDataResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_DocumentData'] = ResolversParentTypes['_DOLLAR_defs_DocumentData']> = ResolversObject<{
  tags?: Resolver<Maybe<Array<Maybe<ResolversTypes['JSON']>>>, ParentType, ContextType>;
}>;

export interface DateScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes['Date'], any> {
  name: 'Date';
}

export type _DOLLAR_defs_IncomeResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_Income'] = ResolversParentTypes['_DOLLAR_defs_Income']> = ResolversObject<{
  amount?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
  amountTotal?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
  catalogNum?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  currency?: Resolver<ResolversTypes['_DOLLAR_defs_Currency'], ParentType, ContextType>;
  currencyRate?: Resolver<Maybe<ResolversTypes['NonNegativeFloat']>, ParentType, ContextType>;
  description?: Resolver<ResolversTypes['NonEmptyString'], ParentType, ContextType>;
  itemId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  price?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  quantity?: Resolver<ResolversTypes['NonNegativeFloat'], ParentType, ContextType>;
  vat?: Resolver<Maybe<ResolversTypes['NonNegativeFloat']>, ParentType, ContextType>;
  vatRate?: Resolver<Maybe<ResolversTypes['NonNegativeFloat']>, ParentType, ContextType>;
  vatType?: Resolver<ResolversTypes['_DOLLAR_defs_VatType'], ParentType, ContextType>;
}>;

export type _DOLLAR_defs_DocumentLinkedDocumentResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_DocumentLinkedDocument'] = ResolversParentTypes['_DOLLAR_defs_DocumentLinkedDocument']> = ResolversObject<{
  amount?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  currency?: Resolver<ResolversTypes['_DOLLAR_defs_Currency'], ParentType, ContextType>;
  currencyRate?: Resolver<ResolversTypes['NonNegativeFloat'], ParentType, ContextType>;
  documentDate?: Resolver<ResolversTypes['Date'], ParentType, ContextType>;
  id?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
  number?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
  reverseCharge?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
  type?: Resolver<ResolversTypes['_DOLLAR_defs_DocumentType'], ParentType, ContextType>;
}>;

export type _DOLLAR_defs_PaymentDocumentResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_PaymentDocument'] = ResolversParentTypes['_DOLLAR_defs_PaymentDocument']> = ResolversObject<{
  currency?: Resolver<ResolversTypes['_DOLLAR_defs_Currency'], ParentType, ContextType>;
  currencyRate?: Resolver<Maybe<ResolversTypes['NonNegativeFloat']>, ParentType, ContextType>;
  date?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  price?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  type?: Resolver<ResolversTypes['query_getDocument_payment_items_type'], ParentType, ContextType>;
  subType?: Resolver<Maybe<ResolversTypes['query_getDocument_payment_items_subType']>, ParentType, ContextType>;
  bankName?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  bankBranch?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  bankAccount?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  chequeNum?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  accountId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  transactionId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  appType?: Resolver<Maybe<ResolversTypes['query_getDocument_payment_items_appType']>, ParentType, ContextType>;
  cardType?: Resolver<Maybe<ResolversTypes['query_getDocument_payment_items_cardType']>, ParentType, ContextType>;
  cardNum?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  dealType?: Resolver<Maybe<ResolversTypes['query_getDocument_payment_items_dealType']>, ParentType, ContextType>;
  numPayments?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
  firstPayment?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
}>;

export type _DOLLAR_defs_UrlResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_Url'] = ResolversParentTypes['_DOLLAR_defs_Url']> = ResolversObject<{
  he?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
  en?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  origin?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
}>;

export type _DOLLAR_defs_searchDocumentsResponseResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_searchDocumentsResponse'] = ResolversParentTypes['_DOLLAR_defs_searchDocumentsResponse']> = ResolversObject<{
  total?: Resolver<ResolversTypes['NonNegativeFloat'], ParentType, ContextType>;
  page?: Resolver<ResolversTypes['PositiveFloat'], ParentType, ContextType>;
  pageSize?: Resolver<ResolversTypes['PositiveFloat'], ParentType, ContextType>;
  pages?: Resolver<ResolversTypes['NonNegativeFloat'], ParentType, ContextType>;
  from?: Resolver<Maybe<ResolversTypes['NonNegativeFloat']>, ParentType, ContextType>;
  to?: Resolver<Maybe<ResolversTypes['NonNegativeFloat']>, ParentType, ContextType>;
  items?: Resolver<Array<Maybe<ResolversTypes['_DOLLAR_defs_Document']>>, ParentType, ContextType>;
}>;

export interface PositiveFloatScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes['PositiveFloat'], any> {
  name: 'PositiveFloat';
}

export type _DOLLAR_defs_previewDocumentResponseResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_previewDocumentResponse'] = ResolversParentTypes['_DOLLAR_defs_previewDocumentResponse']> = ResolversObject<{
  __resolveType: TypeResolveFn<'query_previewDocument_oneOf_0' | '_DOLLAR_defs_ErrorResponse', ParentType, ContextType>;
}>;

export type query_previewDocument_oneOf_0Resolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['query_previewDocument_oneOf_0'] = ResolversParentTypes['query_previewDocument_oneOf_0']> = ResolversObject<{
  file?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
}>;

export type _DOLLAR_defs_ErrorResponseResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_ErrorResponse'] = ResolversParentTypes['_DOLLAR_defs_ErrorResponse']> = ResolversObject<{
  errorCode?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
  errorMessage?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
}>;

export type _DOLLAR_defs_GetLinkedDocumentsResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_GetLinkedDocuments'] = ResolversParentTypes['_DOLLAR_defs_GetLinkedDocuments']> = ResolversObject<{
  amount?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
  currency?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_Currency']>, ParentType, ContextType>;
  currencyRate?: Resolver<Maybe<ResolversTypes['NonNegativeFloat']>, ParentType, ContextType>;
  documentDate?: Resolver<Maybe<ResolversTypes['Date']>, ParentType, ContextType>;
  id?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  number?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  status?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
  type?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_DocumentType']>, ParentType, ContextType>;
}>;

export type _DOLLAR_defs_GetExpenseResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_GetExpense'] = ResolversParentTypes['_DOLLAR_defs_GetExpense']> = ResolversObject<{
  amountExcludeVat?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
  id?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  businessType?: Resolver<Maybe<ResolversTypes['query_getExpense_businessType']>, ParentType, ContextType>;
  documentType?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_ExpenseDocumentType']>, ParentType, ContextType>;
  status?: Resolver<Maybe<ResolversTypes['query_getExpense_status']>, ParentType, ContextType>;
  paymentType?: Resolver<Maybe<ResolversTypes['query_getExpense_paymentType']>, ParentType, ContextType>;
  currency?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_Currency']>, ParentType, ContextType>;
  currencyRate?: Resolver<Maybe<ResolversTypes['NonNegativeFloat']>, ParentType, ContextType>;
  vat?: Resolver<Maybe<ResolversTypes['NonNegativeFloat']>, ParentType, ContextType>;
  amount?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
  date?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  dueDate?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  number?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  active?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
  description?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  remarks?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  supplier?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_Supplier']>, ParentType, ContextType>;
  thumbnail?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  url?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  cancellable?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
  reportingDate?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  accountingClassification?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_AccountingClassification']>, ParentType, ContextType>;
  amountLocal?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
  amountAccounting?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
  vatAccounting?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
  creationDate?: Resolver<Maybe<ResolversTypes['NonNegativeInt']>, ParentType, ContextType>;
  lastUpdateDate?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
}>;

export type _DOLLAR_defs_SupplierResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_Supplier'] = ResolversParentTypes['_DOLLAR_defs_Supplier']> = ResolversObject<{
  phone?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  mobile?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  emails?: Resolver<Maybe<Array<Maybe<ResolversTypes['EmailAddress']>>>, ParentType, ContextType>;
  fax?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  contactPerson?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  address?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  city?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  zip?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  country?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_Country']>, ParentType, ContextType>;
  bankName?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  bankBranch?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  bankAccount?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  id?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  name?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  active?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
  taxId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  paymentTerms?: Resolver<Maybe<ResolversTypes['query_getExpense_supplier_allOf_3_paymentTerms']>, ParentType, ContextType>;
  labels?: Resolver<Maybe<Array<Maybe<ResolversTypes['String']>>>, ParentType, ContextType>;
  creationDate?: Resolver<Maybe<ResolversTypes['NonNegativeInt']>, ParentType, ContextType>;
  lastUpdateDate?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
  department?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  accountingKey?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  remarks?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  incomeAmount?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
  paymentAmount?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
  balanceAmount?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
}>;

export type _DOLLAR_defs_AccountingClassificationResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_AccountingClassification'] = ResolversParentTypes['_DOLLAR_defs_AccountingClassification']> = ResolversObject<{
  id?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  key?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  code?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  title?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  irsCode?: Resolver<Maybe<ResolversTypes['query_getExpense_accountingClassification_irsCode']>, ParentType, ContextType>;
  income?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
  type?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
  vat?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
}>;

export type _DOLLAR_defs_searchExpensesResponseResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_searchExpensesResponse'] = ResolversParentTypes['_DOLLAR_defs_searchExpensesResponse']> = ResolversObject<{
  total?: Resolver<ResolversTypes['NonNegativeFloat'], ParentType, ContextType>;
  page?: Resolver<ResolversTypes['PositiveFloat'], ParentType, ContextType>;
  pageSize?: Resolver<ResolversTypes['PositiveFloat'], ParentType, ContextType>;
  pages?: Resolver<ResolversTypes['NonNegativeFloat'], ParentType, ContextType>;
  from?: Resolver<Maybe<ResolversTypes['NonNegativeFloat']>, ParentType, ContextType>;
  to?: Resolver<Maybe<ResolversTypes['NonNegativeFloat']>, ParentType, ContextType>;
  items?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_GetExpense']>, ParentType, ContextType>;
}>;

export type searchExpenseDrafts_responseResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['searchExpenseDrafts_response'] = ResolversParentTypes['searchExpenseDrafts_response']> = ResolversObject<{
  __resolveType: TypeResolveFn<'searchExpenseDrafts_200_response' | 'searchExpenseDrafts_404_response', ParentType, ContextType>;
}>;

export type searchExpenseDrafts_200_responseResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['searchExpenseDrafts_200_response'] = ResolversParentTypes['searchExpenseDrafts_200_response']> = ResolversObject<{
  total?: Resolver<ResolversTypes['NonNegativeFloat'], ParentType, ContextType>;
  page?: Resolver<ResolversTypes['PositiveFloat'], ParentType, ContextType>;
  pageSize?: Resolver<ResolversTypes['PositiveFloat'], ParentType, ContextType>;
  pages?: Resolver<ResolversTypes['NonNegativeFloat'], ParentType, ContextType>;
  from?: Resolver<Maybe<ResolversTypes['NonNegativeFloat']>, ParentType, ContextType>;
  to?: Resolver<Maybe<ResolversTypes['NonNegativeFloat']>, ParentType, ContextType>;
  aggregations?: Resolver<ResolversTypes['query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations'], ParentType, ContextType>;
  items?: Resolver<Array<Maybe<ResolversTypes['query_searchExpenseDrafts_oneOf_0_allOf_1_items_items']>>, ParentType, ContextType>;
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
}>;

export type query_searchExpenseDrafts_oneOf_0_allOf_1_aggregationsResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations'] = ResolversParentTypes['query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations']> = ResolversObject<{
  totalAmount?: Resolver<ResolversTypes['query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations_totalAmount'], ParentType, ContextType>;
}>;

export type query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations_totalAmountResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations_totalAmount'] = ResolversParentTypes['query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations_totalAmount']> = ResolversObject<{
  value?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
}>;

export type query_searchExpenseDrafts_oneOf_0_allOf_1_items_itemsResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['query_searchExpenseDrafts_oneOf_0_allOf_1_items_items'] = ResolversParentTypes['query_searchExpenseDrafts_oneOf_0_allOf_1_items_items']> = ResolversObject<{
  id?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
  status?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  creationDate?: Resolver<ResolversTypes['NonNegativeInt'], ParentType, ContextType>;
  lastUpdateDate?: Resolver<ResolversTypes['Float'], ParentType, ContextType>;
  reportingPeriod?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
  hasDefaultValues?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
  url?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
  thumbnail?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
  expense?: Resolver<ResolversTypes['query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense'], ParentType, ContextType>;
}>;

export type query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expenseResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense'] = ResolversParentTypes['query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense']> = ResolversObject<{
  accountingClassification?: Resolver<ResolversTypes['_DOLLAR_defs_AccountingClassification'], ParentType, ContextType>;
  active?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
  addRecipient?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
  amount?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
  confirmFromEdit?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
  currency?: Resolver<ResolversTypes['_DOLLAR_defs_Currency'], ParentType, ContextType>;
  currencyRate?: Resolver<ResolversTypes['NonNegativeFloat'], ParentType, ContextType>;
  date?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  description?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
  documentType?: Resolver<ResolversTypes['_DOLLAR_defs_ExpenseDocumentType'], ParentType, ContextType>;
  fileHash?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
  fileKey?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
  labels?: Resolver<Array<Maybe<ResolversTypes['String']>>, ParentType, ContextType>;
  number?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  paymentType?: Resolver<Maybe<ResolversTypes['query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType']>, ParentType, ContextType>;
  reportingDate?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
  supplier?: Resolver<ResolversTypes['_DOLLAR_defs_Supplier'], ParentType, ContextType>;
  tags?: Resolver<Array<Maybe<ResolversTypes['String']>>, ParentType, ContextType>;
  texts?: Resolver<Array<Maybe<ResolversTypes['String']>>, ParentType, ContextType>;
  vat?: Resolver<ResolversTypes['NonNegativeFloat'], ParentType, ContextType>;
}>;

export type query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentTypeResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType'] = ResolversParentTypes['query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType']> = ResolversObject<{
  __resolveType: TypeResolveFn<'Boolean_container' | 'query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1_container', ParentType, ContextType>;
}>;

export type Boolean_containerResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['Boolean_container'] = ResolversParentTypes['Boolean_container']> = ResolversObject<{
  Boolean?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
}>;

export type query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1_containerResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1_container'] = ResolversParentTypes['query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1_container']> = ResolversObject<{
  query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1?: Resolver<Maybe<ResolversTypes['query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1']>, ParentType, ContextType>;
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
}>;

export type searchExpenseDrafts_404_responseResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['searchExpenseDrafts_404_response'] = ResolversParentTypes['searchExpenseDrafts_404_response']> = ResolversObject<{
  errorCode?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
  errorMessage?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
}>;

export type _DOLLAR_defs_getClientResponseResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_getClientResponse'] = ResolversParentTypes['_DOLLAR_defs_getClientResponse']> = ResolversObject<{
  phone?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  mobile?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  emails?: Resolver<Maybe<Array<Maybe<ResolversTypes['EmailAddress']>>>, ParentType, ContextType>;
  fax?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  contactPerson?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  address?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  city?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  zip?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  country?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_Country']>, ParentType, ContextType>;
  bankName?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  bankBranch?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  bankAccount?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  id?: Resolver<Maybe<ResolversTypes['UUID']>, ParentType, ContextType>;
  name?: Resolver<Maybe<ResolversTypes['NonEmptyString']>, ParentType, ContextType>;
  active?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
  taxId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  paymentTerms?: Resolver<Maybe<ResolversTypes['query_getClient_allOf_3_paymentTerms']>, ParentType, ContextType>;
  labels?: Resolver<Maybe<Array<Maybe<ResolversTypes['String']>>>, ParentType, ContextType>;
  creationDate?: Resolver<Maybe<ResolversTypes['NonNegativeInt']>, ParentType, ContextType>;
  lastUpdateDate?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
  send?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
  department?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  accountingKey?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  category?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
  subCategory?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
  remarks?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  incomeAmount?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
  paymentAmount?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
  balanceAmount?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
}>;

export type _DOLLAR_defs_addDocumentResponseResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_addDocumentResponse'] = ResolversParentTypes['_DOLLAR_defs_addDocumentResponse']> = ResolversObject<{
  __resolveType: TypeResolveFn<'_DOLLAR_defs_AddedDocument' | '_DOLLAR_defs_ErrorResponse', ParentType, ContextType>;
}>;

export type _DOLLAR_defs_AddedDocumentResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_AddedDocument'] = ResolversParentTypes['_DOLLAR_defs_AddedDocument']> = ResolversObject<{
  id?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
  lang?: Resolver<ResolversTypes['_DOLLAR_defs_DocumentLang'], ParentType, ContextType>;
  number?: Resolver<ResolversTypes['PositiveInt'], ParentType, ContextType>;
  signed?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
  url?: Resolver<ResolversTypes['_DOLLAR_defs_Url'], ParentType, ContextType>;
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
}>;

export interface PositiveIntScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes['PositiveInt'], any> {
  name: 'PositiveInt';
}

export type _DOLLAR_defs_addExpenseResponseResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_addExpenseResponse'] = ResolversParentTypes['_DOLLAR_defs_addExpenseResponse']> = ResolversObject<{
  __resolveType: TypeResolveFn<'_DOLLAR_defs_Expense' | '_DOLLAR_defs_ErrorResponse', ParentType, ContextType>;
}>;

export type _DOLLAR_defs_ExpenseResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_Expense'] = ResolversParentTypes['_DOLLAR_defs_Expense']> = ResolversObject<{
  paymentType?: Resolver<Maybe<ResolversTypes['mutation_addExpense_oneOf_0_allOf_0_paymentType']>, ParentType, ContextType>;
  currency?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_Currency']>, ParentType, ContextType>;
  currencyRate?: Resolver<Maybe<ResolversTypes['NonNegativeFloat']>, ParentType, ContextType>;
  vat?: Resolver<Maybe<ResolversTypes['NonNegativeFloat']>, ParentType, ContextType>;
  amount?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
  date?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  dueDate?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  reportingDate?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  documentType?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_ExpenseDocumentType']>, ParentType, ContextType>;
  number?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  description?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  remarks?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  supplier?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_Supplier']>, ParentType, ContextType>;
  accountingClassification?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_AccountingClassification']>, ParentType, ContextType>;
  active?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
  addRecipient?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
  addAccountingClassification?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
  JSON?: Resolver<Maybe<ResolversTypes['JSON']>, ParentType, ContextType>;
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
}>;

export type mutation_addExpense_oneOf_0_allOf_0_paymentTypeResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['mutation_addExpense_oneOf_0_allOf_0_paymentType'] = ResolversParentTypes['mutation_addExpense_oneOf_0_allOf_0_paymentType']> = ResolversObject<{
  __resolveType: TypeResolveFn<'Boolean_container' | 'mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_container', ParentType, ContextType>;
}>;

export type mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_containerResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_container'] = ResolversParentTypes['mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_container']> = ResolversObject<{
  mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1?: Resolver<Maybe<ResolversTypes['mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1']>, ParentType, ContextType>;
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
}>;

export type _DOLLAR_defs_updateExpenseResponseResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_updateExpenseResponse'] = ResolversParentTypes['_DOLLAR_defs_updateExpenseResponse']> = ResolversObject<{
  __resolveType: TypeResolveFn<'_DOLLAR_defs_GetExpense' | '_DOLLAR_defs_ErrorResponse', ParentType, ContextType>;
}>;

export type addExpenseDraftByFile_responseResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['addExpenseDraftByFile_response'] = ResolversParentTypes['addExpenseDraftByFile_response']> = ResolversObject<{
  __resolveType: TypeResolveFn<'addExpenseDraftByFile_200_response' | 'searchExpenseDrafts_404_response', ParentType, ContextType>;
}>;

export type addExpenseDraftByFile_200_responseResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['addExpenseDraftByFile_200_response'] = ResolversParentTypes['addExpenseDraftByFile_200_response']> = ResolversObject<{
  id?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  status?: Resolver<Maybe<ResolversTypes['mutation_addExpenseDraftByFile_oneOf_0_status']>, ParentType, ContextType>;
  creationDate?: Resolver<Maybe<ResolversTypes['NonNegativeInt']>, ParentType, ContextType>;
  lastUpdateDate?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
  expense?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_ExpensePartial']>, ParentType, ContextType>;
  thumbnail?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  url?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
}>;

export type _DOLLAR_defs_ExpensePartialResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_ExpensePartial'] = ResolversParentTypes['_DOLLAR_defs_ExpensePartial']> = ResolversObject<{
  paymentType?: Resolver<Maybe<ResolversTypes['mutation_addExpense_oneOf_0_allOf_0_paymentType']>, ParentType, ContextType>;
  currency?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_Currency']>, ParentType, ContextType>;
  currencyRate?: Resolver<Maybe<ResolversTypes['NonNegativeFloat']>, ParentType, ContextType>;
  vat?: Resolver<Maybe<ResolversTypes['NonNegativeFloat']>, ParentType, ContextType>;
  amount?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
  date?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  dueDate?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  reportingDate?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  documentType?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_ExpenseDocumentType']>, ParentType, ContextType>;
  number?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  description?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  remarks?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  supplier?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_Supplier']>, ParentType, ContextType>;
  accountingClassification?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_AccountingClassification']>, ParentType, ContextType>;
  active?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
  addRecipient?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
  addAccountingClassification?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
}>;

export type _DOLLAR_defs_addClientResponseResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_addClientResponse'] = ResolversParentTypes['_DOLLAR_defs_addClientResponse']> = ResolversObject<{
  __resolveType: TypeResolveFn<'_DOLLAR_defs_getClientResponse' | '_DOLLAR_defs_ErrorResponse', ParentType, ContextType>;
}>;

export type _DOLLAR_defs_updateClientResponseResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_updateClientResponse'] = ResolversParentTypes['_DOLLAR_defs_updateClientResponse']> = ResolversObject<{
  __resolveType: TypeResolveFn<'_DOLLAR_defs_getClientResponse' | '_DOLLAR_defs_ErrorResponse', ParentType, ContextType>;
}>;

export type _DOLLAR_defs_deleteClientResponseResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_deleteClientResponse'] = ResolversParentTypes['_DOLLAR_defs_deleteClientResponse']> = ResolversObject<{
  __resolveType: TypeResolveFn<'_DOLLAR_defs_getClientResponse' | '_DOLLAR_defs_ErrorResponse', ParentType, ContextType>;
}>;

export interface ObjMapScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes['ObjMap'], any> {
  name: 'ObjMap';
}

export type _DOLLAR_defs_getFileUploadUrlResponseResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_getFileUploadUrlResponse'] = ResolversParentTypes['_DOLLAR_defs_getFileUploadUrlResponse']> = ResolversObject<{
  url?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
  fields?: Resolver<ResolversTypes['query_getFileUploadUrl_fields'], ParentType, ContextType>;
}>;

export type query_getFileUploadUrl_fieldsResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['query_getFileUploadUrl_fields'] = ResolversParentTypes['query_getFileUploadUrl_fields']> = ResolversObject<{
  otherField?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  bucket?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  key?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  Policy?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  x_amz_meta_account_id?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  x_amz_meta_user_id?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  x_amz_meta_business_id?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  x_amz_meta_file_context?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  x_amz_meta_file_data?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  X_Amz_Algorithm?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  X_Amz_Credential?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  X_Amz_Date?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  X_Amz_Security_Token?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  X_Amz_Signature?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
}>;

export type _DOLLAR_defs_getBankTransactionsResponseResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_getBankTransactionsResponse'] = ResolversParentTypes['_DOLLAR_defs_getBankTransactionsResponse']> = ResolversObject<{
  size?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
  total?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
  pages?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
  page?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
  from?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
  to?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
  aggregations?: Resolver<Maybe<ResolversTypes['JSON']>, ParentType, ContextType>;
  results?: Resolver<Maybe<Array<Maybe<ResolversTypes['_DOLLAR_defs_BankTransaction']>>>, ParentType, ContextType>;
}>;

export type _DOLLAR_defs_BankTransactionResolvers<ContextType = MeshContext, ParentType extends ResolversParentTypes['_DOLLAR_defs_BankTransaction'] = ResolversParentTypes['_DOLLAR_defs_BankTransaction']> = ResolversObject<{
  id?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  aspspCode?: Resolver<Maybe<ResolversTypes['_12_const']>, ParentType, ContextType>;
  businessId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  createdAt?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
  updatedAt?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
  status?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
  classification?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
  bookingStatus?: Resolver<Maybe<ResolversTypes['booked_const']>, ParentType, ContextType>;
  source?: Resolver<Maybe<ResolversTypes['bank_const']>, ParentType, ContextType>;
  amount?: Resolver<Maybe<ResolversTypes['Float']>, ParentType, ContextType>;
  resourceId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  creditorName?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  creditorAccount?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  currency?: Resolver<Maybe<ResolversTypes['_DOLLAR_defs_Currency']>, ParentType, ContextType>;
  valueDate?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  bookingDate?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  checkId?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  description?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  debtorName?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  debtorAccount?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  type?: Resolver<Maybe<ResolversTypes['query_getBankTransactions_results_items_type']>, ParentType, ContextType>;
  name?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  date?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  iban?: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
}>;

export type Resolvers<ContextType = MeshContext> = ResolversObject<{
  Query?: QueryResolvers<ContextType>;
  Mutation?: MutationResolvers<ContextType>;
  _DOLLAR_defs_Document?: _DOLLAR_defs_DocumentResolvers<ContextType>;
  NonNegativeFloat?: GraphQLScalarType;
  _DOLLAR_defs_Business?: _DOLLAR_defs_BusinessResolvers<ContextType>;
  JSON?: GraphQLScalarType;
  query_getDocument_client?: query_getDocument_clientResolvers<ContextType>;
  EmailAddress?: GraphQLScalarType;
  UUID?: GraphQLScalarType;
  NonEmptyString?: GraphQLScalarType;
  NonNegativeInt?: GraphQLScalarType;
  _DOLLAR_defs_DocumentData?: _DOLLAR_defs_DocumentDataResolvers<ContextType>;
  Date?: GraphQLScalarType;
  _DOLLAR_defs_Income?: _DOLLAR_defs_IncomeResolvers<ContextType>;
  _DOLLAR_defs_DocumentLinkedDocument?: _DOLLAR_defs_DocumentLinkedDocumentResolvers<ContextType>;
  _DOLLAR_defs_PaymentDocument?: _DOLLAR_defs_PaymentDocumentResolvers<ContextType>;
  _DOLLAR_defs_Url?: _DOLLAR_defs_UrlResolvers<ContextType>;
  _DOLLAR_defs_searchDocumentsResponse?: _DOLLAR_defs_searchDocumentsResponseResolvers<ContextType>;
  PositiveFloat?: GraphQLScalarType;
  _DOLLAR_defs_previewDocumentResponse?: _DOLLAR_defs_previewDocumentResponseResolvers<ContextType>;
  query_previewDocument_oneOf_0?: query_previewDocument_oneOf_0Resolvers<ContextType>;
  _DOLLAR_defs_ErrorResponse?: _DOLLAR_defs_ErrorResponseResolvers<ContextType>;
  _DOLLAR_defs_GetLinkedDocuments?: _DOLLAR_defs_GetLinkedDocumentsResolvers<ContextType>;
  _DOLLAR_defs_GetExpense?: _DOLLAR_defs_GetExpenseResolvers<ContextType>;
  _DOLLAR_defs_Supplier?: _DOLLAR_defs_SupplierResolvers<ContextType>;
  _DOLLAR_defs_AccountingClassification?: _DOLLAR_defs_AccountingClassificationResolvers<ContextType>;
  _DOLLAR_defs_searchExpensesResponse?: _DOLLAR_defs_searchExpensesResponseResolvers<ContextType>;
  searchExpenseDrafts_response?: searchExpenseDrafts_responseResolvers<ContextType>;
  searchExpenseDrafts_200_response?: searchExpenseDrafts_200_responseResolvers<ContextType>;
  query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations?: query_searchExpenseDrafts_oneOf_0_allOf_1_aggregationsResolvers<ContextType>;
  query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations_totalAmount?: query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations_totalAmountResolvers<ContextType>;
  query_searchExpenseDrafts_oneOf_0_allOf_1_items_items?: query_searchExpenseDrafts_oneOf_0_allOf_1_items_itemsResolvers<ContextType>;
  query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense?: query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expenseResolvers<ContextType>;
  query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType?: query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentTypeResolvers<ContextType>;
  Boolean_container?: Boolean_containerResolvers<ContextType>;
  query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1_container?: query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1_containerResolvers<ContextType>;
  searchExpenseDrafts_404_response?: searchExpenseDrafts_404_responseResolvers<ContextType>;
  _DOLLAR_defs_getClientResponse?: _DOLLAR_defs_getClientResponseResolvers<ContextType>;
  _DOLLAR_defs_addDocumentResponse?: _DOLLAR_defs_addDocumentResponseResolvers<ContextType>;
  _DOLLAR_defs_AddedDocument?: _DOLLAR_defs_AddedDocumentResolvers<ContextType>;
  PositiveInt?: GraphQLScalarType;
  _DOLLAR_defs_addExpenseResponse?: _DOLLAR_defs_addExpenseResponseResolvers<ContextType>;
  _DOLLAR_defs_Expense?: _DOLLAR_defs_ExpenseResolvers<ContextType>;
  mutation_addExpense_oneOf_0_allOf_0_paymentType?: mutation_addExpense_oneOf_0_allOf_0_paymentTypeResolvers<ContextType>;
  mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_container?: mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_containerResolvers<ContextType>;
  _DOLLAR_defs_updateExpenseResponse?: _DOLLAR_defs_updateExpenseResponseResolvers<ContextType>;
  addExpenseDraftByFile_response?: addExpenseDraftByFile_responseResolvers<ContextType>;
  addExpenseDraftByFile_200_response?: addExpenseDraftByFile_200_responseResolvers<ContextType>;
  _DOLLAR_defs_ExpensePartial?: _DOLLAR_defs_ExpensePartialResolvers<ContextType>;
  _DOLLAR_defs_addClientResponse?: _DOLLAR_defs_addClientResponseResolvers<ContextType>;
  _DOLLAR_defs_updateClientResponse?: _DOLLAR_defs_updateClientResponseResolvers<ContextType>;
  _DOLLAR_defs_deleteClientResponse?: _DOLLAR_defs_deleteClientResponseResolvers<ContextType>;
  ObjMap?: GraphQLScalarType;
  _DOLLAR_defs_getFileUploadUrlResponse?: _DOLLAR_defs_getFileUploadUrlResponseResolvers<ContextType>;
  query_getFileUploadUrl_fields?: query_getFileUploadUrl_fieldsResolvers<ContextType>;
  _DOLLAR_defs_getBankTransactionsResponse?: _DOLLAR_defs_getBankTransactionsResponseResolvers<ContextType>;
  _DOLLAR_defs_BankTransaction?: _DOLLAR_defs_BankTransactionResolvers<ContextType>;
}>;

export type DirectiveResolvers<ContextType = MeshContext> = ResolversObject<{
  enum?: enumDirectiveResolver<any, any, ContextType>;
  resolveRoot?: resolveRootDirectiveResolver<any, any, ContextType>;
  example?: exampleDirectiveResolver<any, any, ContextType>;
  statusCodeTypeName?: statusCodeTypeNameDirectiveResolver<any, any, ContextType>;
  httpOperation?: httpOperationDirectiveResolver<any, any, ContextType>;
  transport?: transportDirectiveResolver<any, any, ContextType>;
  resolveRootField?: resolveRootFieldDirectiveResolver<any, any, ContextType>;
  typescript?: typescriptDirectiveResolver<any, any, ContextType>;
}>;

export type MeshInContextSDK = GreenInvoiceTypes.Context & GreenInvoiceNewTypes.Context;

export type MeshContext = BaseMeshContext & MeshInContextSDK;


const baseDir = pathModule.join(typeof __dirname === 'string' ? __dirname : '/', '..');

const importFn: ImportFn = <T>(moduleId: string) => {
  const relativeModuleId = (pathModule.isAbsolute(moduleId) ? pathModule.relative(baseDir, moduleId) : moduleId).split('\\').join('/').replace(baseDir + '/', '');
  switch(relativeModuleId) {
    case "mesh-artifacts/sources/GreenInvoiceNew/schemaWithAnnotations.js":
      return import("./sources/GreenInvoiceNew/schemaWithAnnotations.js") as T;
    
    case "mesh-artifacts/sources/GreenInvoice/schemaWithAnnotations.js":
      return import("./sources/GreenInvoice/schemaWithAnnotations.js") as T;
    
    default:
      return Promise.reject(new Error(`Cannot find module '${relativeModuleId}'.`));
  }
};

const rootStore = new MeshStore('mesh-artifacts', new FsStoreStorageAdapter({
  cwd: baseDir,
  importFn,
  fileType: "js",
}), {
  readonly: true,
  validate: false
});

export const rawServeConfig: YamlConfig.Config['serve'] = {"browser":false} as any
export async function getMeshOptions(): Promise<GetMeshOptions> {
const pubsub = new PubSub();
const sourcesStore = rootStore.child('sources');
const logger = new DefaultLogger("");
const MeshCache = await import("@graphql-mesh/cache-localforage").then(handleImport);
  const cache = new MeshCache({
      ...{},
      importFn,
      store: rootStore.child('cache'),
      pubsub,
      logger,
    })
const fetchFn = await import('@whatwg-node/fetch').then(m => m?.fetch || m);
const sources: MeshResolvedSource[] = [];
const transforms: MeshTransform[] = [];
const additionalEnvelopPlugins: MeshPlugin<any>[] = [];
const greenInvoiceTransforms = [];
const greenInvoiceNewTransforms = [];
const additionalTypeDefs = [] as any[];
const GreenInvoiceHandler = await import("@graphql-mesh/json-schema").then(handleImport);
const greenInvoiceHandler = new GreenInvoiceHandler({
              name: "GreenInvoice",
              config: {"endpoint":"https://api.greeninvoice.co.il/api/v1","operationHeaders":{"Authorization":"Bearer {context.authToken}","Content-Type":"application/json"},"operations":[{"type":"Query","field":"getDocument","path":"/documents/{args.id}","method":"GET","argTypeMap":{"id":{"type":"string","nullable":false}},"responseSchema":"../json-schemas/greenInvoice.json#/$defs/getDocumentResponse"},{"type":"Query","field":"searchDocuments","path":"/documents/search","method":"POST","requestSchema":"../json-schemas/greenInvoice.json#/$defs/searchDocumentsRequest","responseSchema":"../json-schemas/greenInvoice.json#/$defs/searchDocumentsResponse"},{"type":"Query","field":"previewDocument","path":"/documents/preview","method":"POST","requestSchema":"../json-schemas/greenInvoice.json#/$defs/previewDocumentRequest","responseSchema":"../json-schemas/greenInvoice.json#/$defs/previewDocumentResponse"},{"type":"Query","field":"getLinkedDocuments","path":"/documents/{args.id}/linked","method":"GET","argTypeMap":{"id":{"type":"string","nullable":false}},"responseSchema":"../json-schemas/greenInvoice.json#/$defs/getLinkedDocumentsResponse"},{"type":"Query","field":"getDocumentsDownloadLinks","path":"/documents/{args.id}/download/links","method":"GET","argTypeMap":{"id":{"type":"string","nullable":false}},"responseSchema":"../json-schemas/greenInvoice.json#/$defs/getDocumentsDownloadLinksResponse"},{"type":"Mutation","field":"addDocument","path":"/documents","method":"POST","requestSchema":"../json-schemas/greenInvoice.json#/$defs/addDocumentRequest","responseSchema":"../json-schemas/greenInvoice.json#/$defs/addDocumentResponse"},{"type":"Mutation","field":"closeDocument","path":"/documents/{args.id}/close","method":"POST","argTypeMap":{"id":{"type":"string","nullable":false}},"responseByStatusCode":{"200":{"responseSchema":"../json-schemas/greenInvoice.json#/$defs/closeDocumentResponse"}}},{"type":"Query","field":"getExpense","path":"/expenses/{args.id}","method":"GET","argTypeMap":{"id":{"type":"string","nullable":false}},"responseSchema":"../json-schemas/greenInvoice.json#/$defs/getExpenseResponse"},{"type":"Query","field":"searchExpenses","path":"/expenses/search","method":"POST","requestSchema":"../json-schemas/greenInvoice.json#/$defs/searchExpensesRequest","responseSchema":"../json-schemas/greenInvoice.json#/$defs/searchExpensesResponse"},{"type":"Mutation","field":"addExpense","path":"/expenses","method":"POST","requestSchema":"../json-schemas/greenInvoice.json#/$defs/addExpenseRequest","responseSchema":"../json-schemas/greenInvoice.json#/$defs/addExpenseResponse"},{"type":"Mutation","field":"updateExpense","path":"/expenses/{args.id}","method":"PUT","requestSchema":"../json-schemas/greenInvoice.json#/$defs/updateExpenseRequest","responseSchema":"../json-schemas/greenInvoice.json#/$defs/updateExpenseResponse"},{"type":"Query","field":"searchExpenseDrafts","path":"/expenses/drafts/search","method":"POST","requestSchema":"../json-schemas/greenInvoice.json#/$defs/searchExpenseDraftsRequest","responseByStatusCode":{"200":{"responseSchema":"../json-schemas/greenInvoice.json#/$defs/searchExpenseDraftsResponse"},"201":{"responseSchema":"../json-schemas/greenInvoice.json#/$defs/searchExpenseDraftsResponse"},"404":{"responseSchema":"../json-schemas/greenInvoice.json#/$defs/generalErrorResponse"}}},{"type":"Mutation","field":"addExpenseDraftByFile","path":"/expenses/file","method":"POST","requestSchema":"../json-schemas/greenInvoice.json#/$defs/addExpenseDraftByFileRequest","responseByStatusCode":{"200":{"responseSchema":"../json-schemas/greenInvoice.json#/$defs/addExpenseDraftByFileResponse"},"201":{"responseSchema":"../json-schemas/greenInvoice.json#/$defs/addExpenseDraftByFileResponse"},"400":{"responseSchema":"../json-schemas/greenInvoice.json#/$defs/generalErrorResponse"},"404":{"responseSchema":"../json-schemas/greenInvoice.json#/$defs/generalErrorResponse"},"405":{"responseSchema":"../json-schemas/greenInvoice.json#/$defs/generalErrorResponse"}}},{"type":"Query","field":"getClient","path":"/clients/{args.id}","method":"GET","argTypeMap":{"id":{"type":"string","nullable":false}},"responseSchema":"../json-schemas/greenInvoice.json#/$defs/getClientResponse"},{"type":"Mutation","field":"addClient","path":"/clients","method":"POST","requestSchema":"../json-schemas/greenInvoice.json#/$defs/addClientRequest","responseSchema":"../json-schemas/greenInvoice.json#/$defs/addClientResponse"},{"type":"Mutation","field":"updateClient","path":"/clients/{args.id}","method":"PUT","argTypeMap":{"id":{"type":"string","nullable":false}},"requestSchema":"../json-schemas/greenInvoice.json#/$defs/updateClientRequest","responseSchema":"../json-schemas/greenInvoice.json#/$defs/updateClientResponse"},{"type":"Mutation","field":"deleteClient","path":"/clients/{args.id}","method":"DELETE","argTypeMap":{"id":{"type":"string","nullable":false}},"responseSchema":"../json-schemas/greenInvoice.json#/$defs/deleteClientResponse"}]},
              baseDir,
              cache,
              pubsub,
              store: sourcesStore.child("GreenInvoice"),
              logger: logger.child({ source: "GreenInvoice" }),
              importFn,
            });
const GreenInvoiceNewHandler = await import("@graphql-mesh/json-schema").then(handleImport);
const greenInvoiceNewHandler = new GreenInvoiceNewHandler({
              name: "GreenInvoiceNew",
              config: {"endpoint":"https://apigw.greeninvoice.co.il","operationHeaders":{"Authorization":"Bearer {context.authToken}","Content-Type":"application/json"},"operations":[{"type":"Query","field":"getFileUploadUrl","path":"/file-upload/v1/url","method":"GET","argTypeMap":{"context":{"type":"string"},"data":{"type":"object","properties":{"source":{"type":"integer"},"id":{"type":"string"},"state":{"type":"string"}},"required":["source"]}},"queryStringOptions":{"jsonStringify":true},"queryParamArgMap":{"context":"context","data":"data"},"responseSchema":"../json-schemas/greenInvoice.json#/$defs/getFileUploadUrlResponse"},{"type":"Query","field":"getBankTransactions","path":"/open-banking/v2/transactions","method":"GET","argTypeMap":{"valueDate":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"required":["from","to"]},"from":{"type":"number"},"size":{"type":"number"},"bookingStatus":{"type":"string"}},"queryStringOptions":{"indices":true,"arrayFormat":"brackets"},"queryParamArgMap":{"valueDate":"valueDate","from":"from","size":"size","bookingStatus":"bookingStatus"},"responseSchema":"../json-schemas/greenInvoice.json#/$defs/getBankTransactionsResponse"}]},
              baseDir,
              cache,
              pubsub,
              store: sourcesStore.child("GreenInvoiceNew"),
              logger: logger.child({ source: "GreenInvoiceNew" }),
              importFn,
            });
sources[0] = {
          name: 'GreenInvoice',
          handler: greenInvoiceHandler,
          transforms: greenInvoiceTransforms
        }
sources[1] = {
          name: 'GreenInvoiceNew',
          handler: greenInvoiceNewHandler,
          transforms: greenInvoiceNewTransforms
        }
const additionalResolvers = [] as any[]
const Merger = await import("@graphql-mesh/merger-stitching").then(handleImport);
const merger = new Merger({
        cache,
        pubsub,
        logger: logger.child({ merger: "stitching" }),
        store: rootStore.child("stitching")
      })

  return {
    sources,
    transforms,
    additionalTypeDefs,
    additionalResolvers,
    cache,
    pubsub,
    merger,
    logger,
    additionalEnvelopPlugins,
    get documents() {
      return [
      
    ];
    },
    fetchFn,
  };
}

export function createBuiltMeshHTTPHandler<TServerContext = {}>(): MeshHTTPHandler<TServerContext> {
  return createMeshHTTPHandler<TServerContext>({
    baseDir,
    getBuiltMesh: getBuiltMesh,
    rawServeConfig: {"browser":false},
  })
}


let meshInstance$: Promise<MeshInstance> | undefined;

export const pollingInterval = null;

export function getBuiltMesh(): Promise<MeshInstance> {
  if (meshInstance$ == null) {
    if (pollingInterval) {
      setInterval(() => {
        getMeshOptions()
        .then(meshOptions => getMesh(meshOptions))
        .then(newMesh =>
          meshInstance$.then(oldMesh => {
            oldMesh.destroy()
            meshInstance$ = Promise.resolve(newMesh)
          })
        ).catch(err => {
          console.error("Mesh polling failed so the existing version will be used:", err);
        });
      }, pollingInterval)
    }
    meshInstance$ = getMeshOptions().then(meshOptions => getMesh(meshOptions)).then(mesh => {
      const id = mesh.pubsub.subscribe('destroy', () => {
        meshInstance$ = undefined;
        mesh.pubsub.unsubscribe(id);
      });
      return mesh;
    }).catch((err) => {
      meshInstance$ = undefined;
      return Promise.reject(err);
    });
  }
  return meshInstance$;
}

export const execute: ExecuteMeshFn = (...args) => getBuiltMesh().then(({ execute }) => execute(...args));

export const subscribe: SubscribeMeshFn = (...args) => getBuiltMesh().then(({ subscribe }) => subscribe(...args));
export function getMeshSDK<TGlobalContext = any, TOperationContext = any>(globalContext?: TGlobalContext) {
  const sdkRequester$ = getBuiltMesh().then(({ sdkRequesterFactory }) => sdkRequesterFactory(globalContext));
  return getSdk<TOperationContext, TGlobalContext>((...args) => sdkRequester$.then(sdkRequester => sdkRequester(...args)));
}
export type getDocument_queryQueryVariables = Exact<{
  id: Scalars['String']['input'];
}>;


export type getDocument_queryQuery = { getDocument?: Maybe<(
    Pick<
      _DOLLAR_defs_Document,
      | 'amount'
      | 'amountDueVat'
      | 'amountDueVatLocal'
      | 'amountExcludeVat'
      | 'amountExemptVat'
      | 'amountLocal'
      | 'amountOpened'
      | 'calculatedAmountLocal'
      | 'calculatedAmountOpenedLocal'
      | 'calculatedIncomeAmountExcludeLocal'
      | 'calculatedIncomeAmountLocal'
      | 'calculatedPaymentAmountLocal'
      | 'cancellable'
      | 'cancelType'
      | 'creationDate'
      | 'currency'
      | 'currencyRate'
      | 'description'
      | 'documentDate'
      | 'downloaded'
      | 'footer'
      | 'id'
      | 'lang'
      | 'number'
      | 'ref'
      | 'remarks'
      | 'reverseCharge'
      | 'rounding'
      | 'signed'
      | 'skinId'
      | 'status'
      | 'taxConfirmationEligible'
      | 'templateId'
      | 'type'
      | 'userName'
      | 'vat'
      | 'vatLocal'
      | 'vatRate'
      | 'vatType'
    >
    & {
      business: Pick<
          _DOLLAR_defs_Business,
          | 'accountantDocsEmailSettings'
          | 'accountantEmails'
          | 'accountantReportEmailSettings'
          | 'accountingType'
          | 'active'
          | 'advanceNationalInsuranceRate'
          | 'advanceTaxRate'
          | 'bankDisplay'
          | 'bankDisplayEn'
          | 'deductionRate'
          | 'documentsEmailSettings'
          | 'emailSubjectType'
          | 'exemption'
          | 'incomeReportEmailSettings'
          | 'incomeReportFormatType'
          | 'reportSendingDay'
          | 'senderEmailSettings'
          | 'type'
        >,
      client: Pick<
          query_getDocument_client,
          | 'country'
          | 'emails'
          | 'id'
          | 'name'
          | 'phone'
          | 'taxId'
          | 'self'
          | 'address'
          | 'city'
          | 'zip'
          | 'fax'
          | 'mobile'
          | 'add'
          | 'JSON'
        >,
      data: Pick<_DOLLAR_defs_DocumentData, 'tags'>,
      income: Array<Maybe<Pick<
          _DOLLAR_defs_Income,
          | 'amount'
          | 'amountTotal'
          | 'catalogNum'
          | 'currency'
          | 'currencyRate'
          | 'description'
          | 'itemId'
          | 'price'
          | 'quantity'
          | 'vat'
          | 'vatRate'
          | 'vatType'
        >>>,
      linkedDocuments?: Maybe<Array<Maybe<Pick<
          _DOLLAR_defs_DocumentLinkedDocument,
          | 'amount'
          | 'currency'
          | 'currencyRate'
          | 'documentDate'
          | 'id'
          | 'number'
          | 'reverseCharge'
          | 'type'
        >>>>,
      payment: Array<Maybe<Pick<
          _DOLLAR_defs_PaymentDocument,
          | 'currency'
          | 'currencyRate'
          | 'date'
          | 'price'
          | 'type'
          | 'subType'
          | 'bankName'
          | 'bankBranch'
          | 'bankAccount'
          | 'chequeNum'
          | 'accountId'
          | 'transactionId'
          | 'appType'
          | 'cardType'
          | 'cardNum'
          | 'dealType'
          | 'numPayments'
          | 'firstPayment'
        >>>,
      url: Pick<_DOLLAR_defs_Url, 'he' | 'en' | 'origin'>,
    }
  )> };

export type searchDocuments_queryQueryVariables = Exact<{
  input?: InputMaybe<_DOLLAR_defs_searchDocumentsRequest_Input>;
}>;


export type searchDocuments_queryQuery = { searchDocuments?: Maybe<(
    Pick<
      _DOLLAR_defs_searchDocumentsResponse,
      | 'total'
      | 'page'
      | 'pageSize'
      | 'pages'
      | 'from'
      | 'to'
    >
    & { items: Array<Maybe<(
      Pick<
        _DOLLAR_defs_Document,
        | 'amount'
        | 'amountDueVat'
        | 'amountDueVatLocal'
        | 'amountExcludeVat'
        | 'amountExemptVat'
        | 'amountLocal'
        | 'amountOpened'
        | 'calculatedAmountLocal'
        | 'calculatedAmountOpenedLocal'
        | 'calculatedIncomeAmountExcludeLocal'
        | 'calculatedIncomeAmountLocal'
        | 'calculatedPaymentAmountLocal'
        | 'cancellable'
        | 'cancelType'
        | 'creationDate'
        | 'currency'
        | 'currencyRate'
        | 'description'
        | 'documentDate'
        | 'downloaded'
        | 'footer'
        | 'id'
        | 'lang'
        | 'number'
        | 'ref'
        | 'remarks'
        | 'reverseCharge'
        | 'rounding'
        | 'signed'
        | 'skinId'
        | 'status'
        | 'taxConfirmationEligible'
        | 'templateId'
        | 'type'
        | 'userName'
        | 'vat'
        | 'vatLocal'
        | 'vatRate'
        | 'vatType'
      >
      & {
        business: Pick<
            _DOLLAR_defs_Business,
            | 'accountantDocsEmailSettings'
            | 'accountantEmails'
            | 'accountantReportEmailSettings'
            | 'accountingType'
            | 'active'
            | 'advanceNationalInsuranceRate'
            | 'advanceTaxRate'
            | 'bankDisplay'
            | 'bankDisplayEn'
            | 'deductionRate'
            | 'documentsEmailSettings'
            | 'emailSubjectType'
            | 'exemption'
            | 'incomeReportEmailSettings'
            | 'incomeReportFormatType'
            | 'reportSendingDay'
            | 'senderEmailSettings'
            | 'type'
          >,
        client: Pick<
            query_getDocument_client,
            | 'country'
            | 'emails'
            | 'id'
            | 'name'
            | 'phone'
            | 'taxId'
            | 'self'
            | 'address'
            | 'city'
            | 'zip'
            | 'fax'
            | 'mobile'
            | 'add'
            | 'JSON'
          >,
        data: Pick<_DOLLAR_defs_DocumentData, 'tags'>,
        income: Array<Maybe<Pick<
            _DOLLAR_defs_Income,
            | 'amount'
            | 'amountTotal'
            | 'catalogNum'
            | 'currency'
            | 'currencyRate'
            | 'description'
            | 'itemId'
            | 'price'
            | 'quantity'
            | 'vat'
            | 'vatRate'
            | 'vatType'
          >>>,
        linkedDocuments?: Maybe<Array<Maybe<Pick<
            _DOLLAR_defs_DocumentLinkedDocument,
            | 'amount'
            | 'currency'
            | 'currencyRate'
            | 'documentDate'
            | 'id'
            | 'number'
            | 'reverseCharge'
            | 'type'
          >>>>,
        payment: Array<Maybe<Pick<
            _DOLLAR_defs_PaymentDocument,
            | 'currency'
            | 'currencyRate'
            | 'date'
            | 'price'
            | 'type'
            | 'subType'
            | 'bankName'
            | 'bankBranch'
            | 'bankAccount'
            | 'chequeNum'
            | 'accountId'
            | 'transactionId'
            | 'appType'
            | 'cardType'
            | 'cardNum'
            | 'dealType'
            | 'numPayments'
            | 'firstPayment'
          >>>,
        url: Pick<_DOLLAR_defs_Url, 'he' | 'en' | 'origin'>,
      }
    )>> }
  )> };

export type previewDocument_queryQueryVariables = Exact<{
  input?: InputMaybe<_DOLLAR_defs_DocumentInputNew_Input>;
}>;


export type previewDocument_queryQuery = { previewDocument?: Maybe<
    | Pick<query_previewDocument_oneOf_0, 'file'>
    | Pick<_DOLLAR_defs_ErrorResponse, 'errorCode' | 'errorMessage'>
  > };

export type getLinkedDocuments_queryQueryVariables = Exact<{
  id: Scalars['String']['input'];
}>;


export type getLinkedDocuments_queryQuery = { getLinkedDocuments?: Maybe<Pick<
      _DOLLAR_defs_GetLinkedDocuments,
      | 'amount'
      | 'currency'
      | 'currencyRate'
      | 'documentDate'
      | 'id'
      | 'number'
      | 'status'
      | 'type'
    >> };

export type getDocumentsDownloadLinks_queryQueryVariables = Exact<{
  id: Scalars['String']['input'];
}>;


export type getDocumentsDownloadLinks_queryQuery = { getDocumentsDownloadLinks?: Maybe<Pick<_DOLLAR_defs_Url, 'he' | 'en' | 'origin'>> };

export type getExpense_queryQueryVariables = Exact<{
  id: Scalars['String']['input'];
}>;


export type getExpense_queryQuery = { getExpense?: Maybe<(
    Pick<
      _DOLLAR_defs_GetExpense,
      | 'amountExcludeVat'
      | 'id'
      | 'businessType'
      | 'documentType'
      | 'status'
      | 'paymentType'
      | 'currency'
      | 'currencyRate'
      | 'vat'
      | 'amount'
      | 'date'
      | 'dueDate'
      | 'number'
      | 'active'
      | 'description'
      | 'remarks'
      | 'thumbnail'
      | 'url'
      | 'cancellable'
      | 'reportingDate'
      | 'amountLocal'
      | 'amountAccounting'
      | 'vatAccounting'
      | 'creationDate'
      | 'lastUpdateDate'
    >
    & {
      supplier?: Maybe<Pick<
          _DOLLAR_defs_Supplier,
          | 'phone'
          | 'mobile'
          | 'emails'
          | 'fax'
          | 'contactPerson'
          | 'address'
          | 'city'
          | 'zip'
          | 'country'
          | 'bankName'
          | 'bankBranch'
          | 'bankAccount'
          | 'id'
          | 'name'
          | 'active'
          | 'taxId'
          | 'paymentTerms'
          | 'labels'
          | 'creationDate'
          | 'lastUpdateDate'
          | 'department'
          | 'accountingKey'
          | 'remarks'
          | 'incomeAmount'
          | 'paymentAmount'
          | 'balanceAmount'
        >>,
      accountingClassification?: Maybe<Pick<
          _DOLLAR_defs_AccountingClassification,
          | 'id'
          | 'key'
          | 'code'
          | 'title'
          | 'irsCode'
          | 'income'
          | 'type'
          | 'vat'
        >>,
    }
  )> };

export type searchExpenses_queryQueryVariables = Exact<{
  input?: InputMaybe<_DOLLAR_defs_searchExpensesRequest_Input>;
}>;


export type searchExpenses_queryQuery = { searchExpenses?: Maybe<(
    Pick<
      _DOLLAR_defs_searchExpensesResponse,
      | 'total'
      | 'page'
      | 'pageSize'
      | 'pages'
      | 'from'
      | 'to'
    >
    & { items?: Maybe<(
      Pick<
        _DOLLAR_defs_GetExpense,
        | 'amountExcludeVat'
        | 'id'
        | 'businessType'
        | 'documentType'
        | 'status'
        | 'paymentType'
        | 'currency'
        | 'currencyRate'
        | 'vat'
        | 'amount'
        | 'date'
        | 'dueDate'
        | 'number'
        | 'active'
        | 'description'
        | 'remarks'
        | 'thumbnail'
        | 'url'
        | 'cancellable'
        | 'reportingDate'
        | 'amountLocal'
        | 'amountAccounting'
        | 'vatAccounting'
        | 'creationDate'
        | 'lastUpdateDate'
      >
      & {
        supplier?: Maybe<Pick<
            _DOLLAR_defs_Supplier,
            | 'phone'
            | 'mobile'
            | 'emails'
            | 'fax'
            | 'contactPerson'
            | 'address'
            | 'city'
            | 'zip'
            | 'country'
            | 'bankName'
            | 'bankBranch'
            | 'bankAccount'
            | 'id'
            | 'name'
            | 'active'
            | 'taxId'
            | 'paymentTerms'
            | 'labels'
            | 'creationDate'
            | 'lastUpdateDate'
            | 'department'
            | 'accountingKey'
            | 'remarks'
            | 'incomeAmount'
            | 'paymentAmount'
            | 'balanceAmount'
          >>,
        accountingClassification?: Maybe<Pick<
            _DOLLAR_defs_AccountingClassification,
            | 'id'
            | 'key'
            | 'code'
            | 'title'
            | 'irsCode'
            | 'income'
            | 'type'
            | 'vat'
          >>,
      }
    )> }
  )> };

export type searchExpenseDrafts_queryQueryVariables = Exact<{
  input?: InputMaybe<_DOLLAR_defs_searchExpenseDraftsRequest_Input>;
}>;


export type searchExpenseDrafts_queryQuery = { searchExpenseDrafts?: Maybe<
    | (
      Pick<
        searchExpenseDrafts_200_response,
        | 'total'
        | 'page'
        | 'pageSize'
        | 'pages'
        | 'from'
        | 'to'
      >
      & {
        aggregations: { totalAmount: Pick<query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations_totalAmount, 'value'> },
        items: Array<Maybe<(
          Pick<
            query_searchExpenseDrafts_oneOf_0_allOf_1_items_items,
            | 'id'
            | 'status'
            | 'creationDate'
            | 'lastUpdateDate'
            | 'reportingPeriod'
            | 'hasDefaultValues'
            | 'url'
            | 'thumbnail'
          >
          & { expense: (
            Pick<
              query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense,
              | 'active'
              | 'addRecipient'
              | 'amount'
              | 'confirmFromEdit'
              | 'currency'
              | 'currencyRate'
              | 'date'
              | 'description'
              | 'documentType'
              | 'fileHash'
              | 'fileKey'
              | 'labels'
              | 'number'
              | 'reportingDate'
              | 'tags'
              | 'texts'
              | 'vat'
            >
            & {
              accountingClassification: Pick<
                  _DOLLAR_defs_AccountingClassification,
                  | 'id'
                  | 'key'
                  | 'code'
                  | 'title'
                  | 'irsCode'
                  | 'income'
                  | 'type'
                  | 'vat'
                >,
              paymentType?: Maybe<
                | Pick<Boolean_container, 'Boolean'>
                | Pick<query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1_container, 'query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1'>
              >,
              supplier: Pick<
                  _DOLLAR_defs_Supplier,
                  | 'phone'
                  | 'mobile'
                  | 'emails'
                  | 'fax'
                  | 'contactPerson'
                  | 'address'
                  | 'city'
                  | 'zip'
                  | 'country'
                  | 'bankName'
                  | 'bankBranch'
                  | 'bankAccount'
                  | 'id'
                  | 'name'
                  | 'active'
                  | 'taxId'
                  | 'paymentTerms'
                  | 'labels'
                  | 'creationDate'
                  | 'lastUpdateDate'
                  | 'department'
                  | 'accountingKey'
                  | 'remarks'
                  | 'incomeAmount'
                  | 'paymentAmount'
                  | 'balanceAmount'
                >,
            }
          ) }
        )>>,
      }
    )
    | Pick<searchExpenseDrafts_404_response, 'errorCode' | 'errorMessage'>
  > };

export type getClient_queryQueryVariables = Exact<{
  id: Scalars['String']['input'];
}>;


export type getClient_queryQuery = { getClient?: Maybe<Pick<
      _DOLLAR_defs_getClientResponse,
      | 'phone'
      | 'mobile'
      | 'emails'
      | 'fax'
      | 'contactPerson'
      | 'address'
      | 'city'
      | 'zip'
      | 'country'
      | 'bankName'
      | 'bankBranch'
      | 'bankAccount'
      | 'id'
      | 'name'
      | 'active'
      | 'taxId'
      | 'paymentTerms'
      | 'labels'
      | 'creationDate'
      | 'lastUpdateDate'
      | 'send'
      | 'department'
      | 'accountingKey'
      | 'category'
      | 'subCategory'
      | 'remarks'
      | 'incomeAmount'
      | 'paymentAmount'
      | 'balanceAmount'
    >> };

export type getFileUploadUrl_queryQueryVariables = Exact<{
  context?: InputMaybe<Scalars['String']['input']>;
  data?: InputMaybe<queryInput_getFileUploadUrl_data_Input>;
}>;


export type getFileUploadUrl_queryQuery = { getFileUploadUrl?: Maybe<(
    Pick<_DOLLAR_defs_getFileUploadUrlResponse, 'url'>
    & { fields: Pick<
        query_getFileUploadUrl_fields,
        | 'otherField'
        | 'bucket'
        | 'key'
        | 'Policy'
        | 'x_amz_meta_account_id'
        | 'x_amz_meta_user_id'
        | 'x_amz_meta_business_id'
        | 'x_amz_meta_file_context'
        | 'x_amz_meta_file_data'
        | 'X_Amz_Algorithm'
        | 'X_Amz_Credential'
        | 'X_Amz_Date'
        | 'X_Amz_Security_Token'
        | 'X_Amz_Signature'
      > }
  )> };

export type getBankTransactions_queryQueryVariables = Exact<{
  valueDate?: InputMaybe<queryInput_getBankTransactions_valueDate_Input>;
  from?: InputMaybe<Scalars['Float']['input']>;
  size?: InputMaybe<Scalars['Float']['input']>;
  bookingStatus?: InputMaybe<Scalars['String']['input']>;
}>;


export type getBankTransactions_queryQuery = { getBankTransactions?: Maybe<(
    Pick<
      _DOLLAR_defs_getBankTransactionsResponse,
      | 'size'
      | 'total'
      | 'pages'
      | 'page'
      | 'from'
      | 'to'
      | 'aggregations'
    >
    & { results?: Maybe<Array<Maybe<Pick<
        _DOLLAR_defs_BankTransaction,
        | 'id'
        | 'aspspCode'
        | 'businessId'
        | 'createdAt'
        | 'updatedAt'
        | 'status'
        | 'classification'
        | 'bookingStatus'
        | 'source'
        | 'amount'
        | 'resourceId'
        | 'creditorName'
        | 'creditorAccount'
        | 'currency'
        | 'valueDate'
        | 'bookingDate'
        | 'checkId'
        | 'description'
        | 'debtorName'
        | 'debtorAccount'
        | 'type'
        | 'name'
        | 'date'
        | 'iban'
      >>>> }
  )> };

export type addDocument_mutationMutationVariables = Exact<{
  input?: InputMaybe<_DOLLAR_defs_addDocumentRequest_Input>;
}>;


export type addDocument_mutationMutation = { addDocument?: Maybe<
    | (
      Pick<
        _DOLLAR_defs_AddedDocument,
        | 'id'
        | 'lang'
        | 'number'
        | 'signed'
      >
      & { url: Pick<_DOLLAR_defs_Url, 'he' | 'en' | 'origin'> }
    )
    | Pick<_DOLLAR_defs_ErrorResponse, 'errorCode' | 'errorMessage'>
  > };

export type closeDocument_mutationMutationVariables = Exact<{
  id: Scalars['String']['input'];
}>;


export type closeDocument_mutationMutation = Pick<Mutation, 'closeDocument'>;

export type addExpense_mutationMutationVariables = Exact<{
  input?: InputMaybe<Scalars['JSON']['input']>;
}>;


export type addExpense_mutationMutation = { addExpense?: Maybe<
    | (
      Pick<
        _DOLLAR_defs_Expense,
        | 'currency'
        | 'currencyRate'
        | 'vat'
        | 'amount'
        | 'date'
        | 'dueDate'
        | 'reportingDate'
        | 'documentType'
        | 'number'
        | 'description'
        | 'remarks'
        | 'active'
        | 'addRecipient'
        | 'addAccountingClassification'
        | 'JSON'
      >
      & {
        paymentType?: Maybe<
          | Pick<Boolean_container, 'Boolean'>
          | Pick<mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_container, 'mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1'>
        >,
        supplier?: Maybe<Pick<
            _DOLLAR_defs_Supplier,
            | 'phone'
            | 'mobile'
            | 'emails'
            | 'fax'
            | 'contactPerson'
            | 'address'
            | 'city'
            | 'zip'
            | 'country'
            | 'bankName'
            | 'bankBranch'
            | 'bankAccount'
            | 'id'
            | 'name'
            | 'active'
            | 'taxId'
            | 'paymentTerms'
            | 'labels'
            | 'creationDate'
            | 'lastUpdateDate'
            | 'department'
            | 'accountingKey'
            | 'remarks'
            | 'incomeAmount'
            | 'paymentAmount'
            | 'balanceAmount'
          >>,
        accountingClassification?: Maybe<Pick<
            _DOLLAR_defs_AccountingClassification,
            | 'id'
            | 'key'
            | 'code'
            | 'title'
            | 'irsCode'
            | 'income'
            | 'type'
            | 'vat'
          >>,
      }
    )
    | Pick<_DOLLAR_defs_ErrorResponse, 'errorCode' | 'errorMessage'>
  > };

export type updateExpense_mutationMutationVariables = Exact<{
  id?: InputMaybe<Scalars['String']['input']>;
  input?: InputMaybe<_DOLLAR_defs_updateExpenseRequest_Input>;
}>;


export type updateExpense_mutationMutation = { updateExpense?: Maybe<
    | (
      Pick<
        _DOLLAR_defs_GetExpense,
        | 'amountExcludeVat'
        | 'id'
        | 'businessType'
        | 'documentType'
        | 'status'
        | 'paymentType'
        | 'currency'
        | 'currencyRate'
        | 'vat'
        | 'amount'
        | 'date'
        | 'dueDate'
        | 'number'
        | 'active'
        | 'description'
        | 'remarks'
        | 'thumbnail'
        | 'url'
        | 'cancellable'
        | 'reportingDate'
        | 'amountLocal'
        | 'amountAccounting'
        | 'vatAccounting'
        | 'creationDate'
        | 'lastUpdateDate'
      >
      & {
        supplier?: Maybe<Pick<
            _DOLLAR_defs_Supplier,
            | 'phone'
            | 'mobile'
            | 'emails'
            | 'fax'
            | 'contactPerson'
            | 'address'
            | 'city'
            | 'zip'
            | 'country'
            | 'bankName'
            | 'bankBranch'
            | 'bankAccount'
            | 'id'
            | 'name'
            | 'active'
            | 'taxId'
            | 'paymentTerms'
            | 'labels'
            | 'creationDate'
            | 'lastUpdateDate'
            | 'department'
            | 'accountingKey'
            | 'remarks'
            | 'incomeAmount'
            | 'paymentAmount'
            | 'balanceAmount'
          >>,
        accountingClassification?: Maybe<Pick<
            _DOLLAR_defs_AccountingClassification,
            | 'id'
            | 'key'
            | 'code'
            | 'title'
            | 'irsCode'
            | 'income'
            | 'type'
            | 'vat'
          >>,
      }
    )
    | Pick<_DOLLAR_defs_ErrorResponse, 'errorCode' | 'errorMessage'>
  > };

export type addExpenseDraftByFile_mutationMutationVariables = Exact<{
  input?: InputMaybe<_DOLLAR_defs_addExpenseDraftByFileRequest_Input>;
}>;


export type addExpenseDraftByFile_mutationMutation = { addExpenseDraftByFile?: Maybe<
    | (
      Pick<
        addExpenseDraftByFile_200_response,
        | 'id'
        | 'status'
        | 'creationDate'
        | 'lastUpdateDate'
        | 'thumbnail'
        | 'url'
      >
      & { expense?: Maybe<(
        Pick<
          _DOLLAR_defs_ExpensePartial,
          | 'currency'
          | 'currencyRate'
          | 'vat'
          | 'amount'
          | 'date'
          | 'dueDate'
          | 'reportingDate'
          | 'documentType'
          | 'number'
          | 'description'
          | 'remarks'
          | 'active'
          | 'addRecipient'
          | 'addAccountingClassification'
        >
        & {
          paymentType?: Maybe<
            | Pick<Boolean_container, 'Boolean'>
            | Pick<mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_container, 'mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1'>
          >,
          supplier?: Maybe<Pick<
              _DOLLAR_defs_Supplier,
              | 'phone'
              | 'mobile'
              | 'emails'
              | 'fax'
              | 'contactPerson'
              | 'address'
              | 'city'
              | 'zip'
              | 'country'
              | 'bankName'
              | 'bankBranch'
              | 'bankAccount'
              | 'id'
              | 'name'
              | 'active'
              | 'taxId'
              | 'paymentTerms'
              | 'labels'
              | 'creationDate'
              | 'lastUpdateDate'
              | 'department'
              | 'accountingKey'
              | 'remarks'
              | 'incomeAmount'
              | 'paymentAmount'
              | 'balanceAmount'
            >>,
          accountingClassification?: Maybe<Pick<
              _DOLLAR_defs_AccountingClassification,
              | 'id'
              | 'key'
              | 'code'
              | 'title'
              | 'irsCode'
              | 'income'
              | 'type'
              | 'vat'
            >>,
        }
      )> }
    )
    | Pick<searchExpenseDrafts_404_response, 'errorCode' | 'errorMessage'>
  > };

export type addClient_mutationMutationVariables = Exact<{
  input?: InputMaybe<_DOLLAR_defs_addClientRequest_Input>;
}>;


export type addClient_mutationMutation = { addClient?: Maybe<
    | Pick<
        _DOLLAR_defs_getClientResponse,
        | 'phone'
        | 'mobile'
        | 'emails'
        | 'fax'
        | 'contactPerson'
        | 'address'
        | 'city'
        | 'zip'
        | 'country'
        | 'bankName'
        | 'bankBranch'
        | 'bankAccount'
        | 'id'
        | 'name'
        | 'active'
        | 'taxId'
        | 'paymentTerms'
        | 'labels'
        | 'creationDate'
        | 'lastUpdateDate'
        | 'send'
        | 'department'
        | 'accountingKey'
        | 'category'
        | 'subCategory'
        | 'remarks'
        | 'incomeAmount'
        | 'paymentAmount'
        | 'balanceAmount'
      >
    | Pick<_DOLLAR_defs_ErrorResponse, 'errorCode' | 'errorMessage'>
  > };

export type updateClient_mutationMutationVariables = Exact<{
  id: Scalars['String']['input'];
  input?: InputMaybe<_DOLLAR_defs_updateClientRequest_Input>;
}>;


export type updateClient_mutationMutation = { updateClient?: Maybe<
    | Pick<
        _DOLLAR_defs_getClientResponse,
        | 'phone'
        | 'mobile'
        | 'emails'
        | 'fax'
        | 'contactPerson'
        | 'address'
        | 'city'
        | 'zip'
        | 'country'
        | 'bankName'
        | 'bankBranch'
        | 'bankAccount'
        | 'id'
        | 'name'
        | 'active'
        | 'taxId'
        | 'paymentTerms'
        | 'labels'
        | 'creationDate'
        | 'lastUpdateDate'
        | 'send'
        | 'department'
        | 'accountingKey'
        | 'category'
        | 'subCategory'
        | 'remarks'
        | 'incomeAmount'
        | 'paymentAmount'
        | 'balanceAmount'
      >
    | Pick<_DOLLAR_defs_ErrorResponse, 'errorCode' | 'errorMessage'>
  > };

export type deleteClient_mutationMutationVariables = Exact<{
  id: Scalars['String']['input'];
}>;


export type deleteClient_mutationMutation = { deleteClient?: Maybe<
    | Pick<
        _DOLLAR_defs_getClientResponse,
        | 'phone'
        | 'mobile'
        | 'emails'
        | 'fax'
        | 'contactPerson'
        | 'address'
        | 'city'
        | 'zip'
        | 'country'
        | 'bankName'
        | 'bankBranch'
        | 'bankAccount'
        | 'id'
        | 'name'
        | 'active'
        | 'taxId'
        | 'paymentTerms'
        | 'labels'
        | 'creationDate'
        | 'lastUpdateDate'
        | 'send'
        | 'department'
        | 'accountingKey'
        | 'category'
        | 'subCategory'
        | 'remarks'
        | 'incomeAmount'
        | 'paymentAmount'
        | 'balanceAmount'
      >
    | Pick<_DOLLAR_defs_ErrorResponse, 'errorCode' | 'errorMessage'>
  > };


export const getDocument_queryDocument = gql`
    query getDocument_query($id: String!) {
  getDocument(id: $id) {
    amount
    amountDueVat
    amountDueVatLocal
    amountExcludeVat
    amountExemptVat
    amountLocal
    amountOpened
    business {
      accountantDocsEmailSettings
      accountantEmails
      accountantReportEmailSettings
      accountingType
      active
      advanceNationalInsuranceRate
      advanceTaxRate
      bankDisplay
      bankDisplayEn
      deductionRate
      documentsEmailSettings
      emailSubjectType
      exemption
      incomeReportEmailSettings
      incomeReportFormatType
      reportSendingDay
      senderEmailSettings
      type
    }
    calculatedAmountLocal
    calculatedAmountOpenedLocal
    calculatedIncomeAmountExcludeLocal
    calculatedIncomeAmountLocal
    calculatedPaymentAmountLocal
    cancellable
    cancelType
    client {
      country
      emails
      id
      name
      phone
      taxId
      self
      address
      city
      zip
      fax
      mobile
      add
      JSON
    }
    creationDate
    currency
    currencyRate
    data {
      tags
    }
    description
    documentDate
    downloaded
    footer
    id
    income {
      amount
      amountTotal
      catalogNum
      currency
      currencyRate
      description
      itemId
      price
      quantity
      vat
      vatRate
      vatType
    }
    lang
    linkedDocuments {
      amount
      currency
      currencyRate
      documentDate
      id
      number
      reverseCharge
      type
    }
    number
    payment {
      currency
      currencyRate
      date
      price
      type
      subType
      bankName
      bankBranch
      bankAccount
      chequeNum
      accountId
      transactionId
      appType
      cardType
      cardNum
      dealType
      numPayments
      firstPayment
    }
    ref
    remarks
    reverseCharge
    rounding
    signed
    skinId
    status
    taxConfirmationEligible
    templateId
    type
    url {
      he
      en
      origin
    }
    userName
    vat
    vatLocal
    vatRate
    vatType
  }
}
    ` as unknown as DocumentNode<getDocument_queryQuery, getDocument_queryQueryVariables>;
export const searchDocuments_queryDocument = gql`
    query searchDocuments_query($input: _DOLLAR_defs_searchDocumentsRequest_Input) {
  searchDocuments(input: $input) {
    total
    page
    pageSize
    pages
    from
    to
    items {
      amount
      amountDueVat
      amountDueVatLocal
      amountExcludeVat
      amountExemptVat
      amountLocal
      amountOpened
      business {
        accountantDocsEmailSettings
        accountantEmails
        accountantReportEmailSettings
        accountingType
        active
        advanceNationalInsuranceRate
        advanceTaxRate
        bankDisplay
        bankDisplayEn
        deductionRate
        documentsEmailSettings
        emailSubjectType
        exemption
        incomeReportEmailSettings
        incomeReportFormatType
        reportSendingDay
        senderEmailSettings
        type
      }
      calculatedAmountLocal
      calculatedAmountOpenedLocal
      calculatedIncomeAmountExcludeLocal
      calculatedIncomeAmountLocal
      calculatedPaymentAmountLocal
      cancellable
      cancelType
      client {
        country
        emails
        id
        name
        phone
        taxId
        self
        address
        city
        zip
        fax
        mobile
        add
        JSON
      }
      creationDate
      currency
      currencyRate
      data {
        tags
      }
      description
      documentDate
      downloaded
      footer
      id
      income {
        amount
        amountTotal
        catalogNum
        currency
        currencyRate
        description
        itemId
        price
        quantity
        vat
        vatRate
        vatType
      }
      lang
      linkedDocuments {
        amount
        currency
        currencyRate
        documentDate
        id
        number
        reverseCharge
        type
      }
      number
      payment {
        currency
        currencyRate
        date
        price
        type
        subType
        bankName
        bankBranch
        bankAccount
        chequeNum
        accountId
        transactionId
        appType
        cardType
        cardNum
        dealType
        numPayments
        firstPayment
      }
      ref
      remarks
      reverseCharge
      rounding
      signed
      skinId
      status
      taxConfirmationEligible
      templateId
      type
      url {
        he
        en
        origin
      }
      userName
      vat
      vatLocal
      vatRate
      vatType
    }
  }
}
    ` as unknown as DocumentNode<searchDocuments_queryQuery, searchDocuments_queryQueryVariables>;
export const previewDocument_queryDocument = gql`
    query previewDocument_query($input: _DOLLAR_defs_DocumentInputNew_Input) {
  previewDocument(input: $input) {
    ... on query_previewDocument_oneOf_0 {
      file
    }
    ... on _DOLLAR_defs_ErrorResponse {
      errorCode
      errorMessage
    }
  }
}
    ` as unknown as DocumentNode<previewDocument_queryQuery, previewDocument_queryQueryVariables>;
export const getLinkedDocuments_queryDocument = gql`
    query getLinkedDocuments_query($id: String!) {
  getLinkedDocuments(id: $id) {
    amount
    currency
    currencyRate
    documentDate
    id
    number
    status
    type
  }
}
    ` as unknown as DocumentNode<getLinkedDocuments_queryQuery, getLinkedDocuments_queryQueryVariables>;
export const getDocumentsDownloadLinks_queryDocument = gql`
    query getDocumentsDownloadLinks_query($id: String!) {
  getDocumentsDownloadLinks(id: $id) {
    he
    en
    origin
  }
}
    ` as unknown as DocumentNode<getDocumentsDownloadLinks_queryQuery, getDocumentsDownloadLinks_queryQueryVariables>;
export const getExpense_queryDocument = gql`
    query getExpense_query($id: String!) {
  getExpense(id: $id) {
    amountExcludeVat
    id
    businessType
    documentType
    status
    paymentType
    currency
    currencyRate
    vat
    amount
    date
    dueDate
    number
    active
    description
    remarks
    supplier {
      phone
      mobile
      emails
      fax
      contactPerson
      address
      city
      zip
      country
      bankName
      bankBranch
      bankAccount
      id
      name
      active
      taxId
      paymentTerms
      labels
      creationDate
      lastUpdateDate
      department
      accountingKey
      remarks
      incomeAmount
      paymentAmount
      balanceAmount
    }
    thumbnail
    url
    cancellable
    reportingDate
    accountingClassification {
      id
      key
      code
      title
      irsCode
      income
      type
      vat
    }
    amountLocal
    amountAccounting
    vatAccounting
    creationDate
    lastUpdateDate
  }
}
    ` as unknown as DocumentNode<getExpense_queryQuery, getExpense_queryQueryVariables>;
export const searchExpenses_queryDocument = gql`
    query searchExpenses_query($input: _DOLLAR_defs_searchExpensesRequest_Input) {
  searchExpenses(input: $input) {
    total
    page
    pageSize
    pages
    from
    to
    items {
      amountExcludeVat
      id
      businessType
      documentType
      status
      paymentType
      currency
      currencyRate
      vat
      amount
      date
      dueDate
      number
      active
      description
      remarks
      supplier {
        phone
        mobile
        emails
        fax
        contactPerson
        address
        city
        zip
        country
        bankName
        bankBranch
        bankAccount
        id
        name
        active
        taxId
        paymentTerms
        labels
        creationDate
        lastUpdateDate
        department
        accountingKey
        remarks
        incomeAmount
        paymentAmount
        balanceAmount
      }
      thumbnail
      url
      cancellable
      reportingDate
      accountingClassification {
        id
        key
        code
        title
        irsCode
        income
        type
        vat
      }
      amountLocal
      amountAccounting
      vatAccounting
      creationDate
      lastUpdateDate
    }
  }
}
    ` as unknown as DocumentNode<searchExpenses_queryQuery, searchExpenses_queryQueryVariables>;
export const searchExpenseDrafts_queryDocument = gql`
    query searchExpenseDrafts_query($input: _DOLLAR_defs_searchExpenseDraftsRequest_Input) {
  searchExpenseDrafts(input: $input) {
    ... on searchExpenseDrafts_200_response {
      total
      page
      pageSize
      pages
      from
      to
      aggregations {
        totalAmount {
          value
        }
      }
      items {
        id
        status
        creationDate
        lastUpdateDate
        reportingPeriod
        hasDefaultValues
        url
        thumbnail
        expense {
          accountingClassification {
            id
            key
            code
            title
            irsCode
            income
            type
            vat
          }
          active
          addRecipient
          amount
          confirmFromEdit
          currency
          currencyRate
          date
          description
          documentType
          fileHash
          fileKey
          labels
          number
          paymentType {
            ... on Boolean_container {
              Boolean
            }
            ... on query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1_container {
              query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1
            }
          }
          reportingDate
          supplier {
            phone
            mobile
            emails
            fax
            contactPerson
            address
            city
            zip
            country
            bankName
            bankBranch
            bankAccount
            id
            name
            active
            taxId
            paymentTerms
            labels
            creationDate
            lastUpdateDate
            department
            accountingKey
            remarks
            incomeAmount
            paymentAmount
            balanceAmount
          }
          tags
          texts
          vat
        }
      }
    }
    ... on searchExpenseDrafts_404_response {
      errorCode
      errorMessage
    }
  }
}
    ` as unknown as DocumentNode<searchExpenseDrafts_queryQuery, searchExpenseDrafts_queryQueryVariables>;
export const getClient_queryDocument = gql`
    query getClient_query($id: String!) {
  getClient(id: $id) {
    phone
    mobile
    emails
    fax
    contactPerson
    address
    city
    zip
    country
    bankName
    bankBranch
    bankAccount
    id
    name
    active
    taxId
    paymentTerms
    labels
    creationDate
    lastUpdateDate
    send
    department
    accountingKey
    category
    subCategory
    remarks
    incomeAmount
    paymentAmount
    balanceAmount
  }
}
    ` as unknown as DocumentNode<getClient_queryQuery, getClient_queryQueryVariables>;
export const getFileUploadUrl_queryDocument = gql`
    query getFileUploadUrl_query($context: String, $data: queryInput_getFileUploadUrl_data_Input) {
  getFileUploadUrl(context: $context, data: $data) {
    url
    fields {
      otherField
      bucket
      key
      Policy
      x_amz_meta_account_id
      x_amz_meta_user_id
      x_amz_meta_business_id
      x_amz_meta_file_context
      x_amz_meta_file_data
      X_Amz_Algorithm
      X_Amz_Credential
      X_Amz_Date
      X_Amz_Security_Token
      X_Amz_Signature
    }
  }
}
    ` as unknown as DocumentNode<getFileUploadUrl_queryQuery, getFileUploadUrl_queryQueryVariables>;
export const getBankTransactions_queryDocument = gql`
    query getBankTransactions_query($valueDate: queryInput_getBankTransactions_valueDate_Input, $from: Float, $size: Float, $bookingStatus: String) {
  getBankTransactions(
    valueDate: $valueDate
    from: $from
    size: $size
    bookingStatus: $bookingStatus
  ) {
    size
    total
    pages
    page
    from
    to
    aggregations
    results {
      id
      aspspCode
      businessId
      createdAt
      updatedAt
      status
      classification
      bookingStatus
      source
      amount
      resourceId
      creditorName
      creditorAccount
      currency
      valueDate
      bookingDate
      checkId
      description
      debtorName
      debtorAccount
      type
      name
      date
      iban
    }
  }
}
    ` as unknown as DocumentNode<getBankTransactions_queryQuery, getBankTransactions_queryQueryVariables>;
export const addDocument_mutationDocument = gql`
    mutation addDocument_mutation($input: _DOLLAR_defs_addDocumentRequest_Input) {
  addDocument(input: $input) {
    ... on _DOLLAR_defs_AddedDocument {
      id
      lang
      number
      signed
      url {
        he
        en
        origin
      }
    }
    ... on _DOLLAR_defs_ErrorResponse {
      errorCode
      errorMessage
    }
  }
}
    ` as unknown as DocumentNode<addDocument_mutationMutation, addDocument_mutationMutationVariables>;
export const closeDocument_mutationDocument = gql`
    mutation closeDocument_mutation($id: String!) {
  closeDocument(id: $id)
}
    ` as unknown as DocumentNode<closeDocument_mutationMutation, closeDocument_mutationMutationVariables>;
export const addExpense_mutationDocument = gql`
    mutation addExpense_mutation($input: JSON) {
  addExpense(input: $input) {
    ... on _DOLLAR_defs_Expense {
      paymentType {
        ... on Boolean_container {
          Boolean
        }
        ... on mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_container {
          mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1
        }
      }
      currency
      currencyRate
      vat
      amount
      date
      dueDate
      reportingDate
      documentType
      number
      description
      remarks
      supplier {
        phone
        mobile
        emails
        fax
        contactPerson
        address
        city
        zip
        country
        bankName
        bankBranch
        bankAccount
        id
        name
        active
        taxId
        paymentTerms
        labels
        creationDate
        lastUpdateDate
        department
        accountingKey
        remarks
        incomeAmount
        paymentAmount
        balanceAmount
      }
      accountingClassification {
        id
        key
        code
        title
        irsCode
        income
        type
        vat
      }
      active
      addRecipient
      addAccountingClassification
      JSON
    }
    ... on _DOLLAR_defs_ErrorResponse {
      errorCode
      errorMessage
    }
  }
}
    ` as unknown as DocumentNode<addExpense_mutationMutation, addExpense_mutationMutationVariables>;
export const updateExpense_mutationDocument = gql`
    mutation updateExpense_mutation($id: String, $input: _DOLLAR_defs_updateExpenseRequest_Input) {
  updateExpense(id: $id, input: $input) {
    ... on _DOLLAR_defs_GetExpense {
      amountExcludeVat
      id
      businessType
      documentType
      status
      paymentType
      currency
      currencyRate
      vat
      amount
      date
      dueDate
      number
      active
      description
      remarks
      supplier {
        phone
        mobile
        emails
        fax
        contactPerson
        address
        city
        zip
        country
        bankName
        bankBranch
        bankAccount
        id
        name
        active
        taxId
        paymentTerms
        labels
        creationDate
        lastUpdateDate
        department
        accountingKey
        remarks
        incomeAmount
        paymentAmount
        balanceAmount
      }
      thumbnail
      url
      cancellable
      reportingDate
      accountingClassification {
        id
        key
        code
        title
        irsCode
        income
        type
        vat
      }
      amountLocal
      amountAccounting
      vatAccounting
      creationDate
      lastUpdateDate
    }
    ... on _DOLLAR_defs_ErrorResponse {
      errorCode
      errorMessage
    }
  }
}
    ` as unknown as DocumentNode<updateExpense_mutationMutation, updateExpense_mutationMutationVariables>;
export const addExpenseDraftByFile_mutationDocument = gql`
    mutation addExpenseDraftByFile_mutation($input: _DOLLAR_defs_addExpenseDraftByFileRequest_Input) {
  addExpenseDraftByFile(input: $input) {
    ... on addExpenseDraftByFile_200_response {
      id
      status
      creationDate
      lastUpdateDate
      expense {
        paymentType {
          ... on Boolean_container {
            Boolean
          }
          ... on mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_container {
            mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1
          }
        }
        currency
        currencyRate
        vat
        amount
        date
        dueDate
        reportingDate
        documentType
        number
        description
        remarks
        supplier {
          phone
          mobile
          emails
          fax
          contactPerson
          address
          city
          zip
          country
          bankName
          bankBranch
          bankAccount
          id
          name
          active
          taxId
          paymentTerms
          labels
          creationDate
          lastUpdateDate
          department
          accountingKey
          remarks
          incomeAmount
          paymentAmount
          balanceAmount
        }
        accountingClassification {
          id
          key
          code
          title
          irsCode
          income
          type
          vat
        }
        active
        addRecipient
        addAccountingClassification
      }
      thumbnail
      url
    }
    ... on searchExpenseDrafts_404_response {
      errorCode
      errorMessage
    }
  }
}
    ` as unknown as DocumentNode<addExpenseDraftByFile_mutationMutation, addExpenseDraftByFile_mutationMutationVariables>;
export const addClient_mutationDocument = gql`
    mutation addClient_mutation($input: _DOLLAR_defs_addClientRequest_Input) {
  addClient(input: $input) {
    ... on _DOLLAR_defs_getClientResponse {
      phone
      mobile
      emails
      fax
      contactPerson
      address
      city
      zip
      country
      bankName
      bankBranch
      bankAccount
      id
      name
      active
      taxId
      paymentTerms
      labels
      creationDate
      lastUpdateDate
      send
      department
      accountingKey
      category
      subCategory
      remarks
      incomeAmount
      paymentAmount
      balanceAmount
    }
    ... on _DOLLAR_defs_ErrorResponse {
      errorCode
      errorMessage
    }
  }
}
    ` as unknown as DocumentNode<addClient_mutationMutation, addClient_mutationMutationVariables>;
export const updateClient_mutationDocument = gql`
    mutation updateClient_mutation($id: String!, $input: _DOLLAR_defs_updateClientRequest_Input) {
  updateClient(id: $id, input: $input) {
    ... on _DOLLAR_defs_getClientResponse {
      phone
      mobile
      emails
      fax
      contactPerson
      address
      city
      zip
      country
      bankName
      bankBranch
      bankAccount
      id
      name
      active
      taxId
      paymentTerms
      labels
      creationDate
      lastUpdateDate
      send
      department
      accountingKey
      category
      subCategory
      remarks
      incomeAmount
      paymentAmount
      balanceAmount
    }
    ... on _DOLLAR_defs_ErrorResponse {
      errorCode
      errorMessage
    }
  }
}
    ` as unknown as DocumentNode<updateClient_mutationMutation, updateClient_mutationMutationVariables>;
export const deleteClient_mutationDocument = gql`
    mutation deleteClient_mutation($id: String!) {
  deleteClient(id: $id) {
    ... on _DOLLAR_defs_getClientResponse {
      phone
      mobile
      emails
      fax
      contactPerson
      address
      city
      zip
      country
      bankName
      bankBranch
      bankAccount
      id
      name
      active
      taxId
      paymentTerms
      labels
      creationDate
      lastUpdateDate
      send
      department
      accountingKey
      category
      subCategory
      remarks
      incomeAmount
      paymentAmount
      balanceAmount
    }
    ... on _DOLLAR_defs_ErrorResponse {
      errorCode
      errorMessage
    }
  }
}
    ` as unknown as DocumentNode<deleteClient_mutationMutation, deleteClient_mutationMutationVariables>;




















export type Requester<C = {}> = <R, V>(doc: DocumentNode, vars?: V, options?: C) => Promise<R> | AsyncIterable<R>
export function getSdk<C>(requester: Requester<C>) {
  return {
    getDocument_query(variables: getDocument_queryQueryVariables, options?: C): Promise<getDocument_queryQuery> {
      return requester<getDocument_queryQuery, getDocument_queryQueryVariables>(getDocument_queryDocument, variables, options) as Promise<getDocument_queryQuery>;
    },
    searchDocuments_query(variables?: searchDocuments_queryQueryVariables, options?: C): Promise<searchDocuments_queryQuery> {
      return requester<searchDocuments_queryQuery, searchDocuments_queryQueryVariables>(searchDocuments_queryDocument, variables, options) as Promise<searchDocuments_queryQuery>;
    },
    previewDocument_query(variables?: previewDocument_queryQueryVariables, options?: C): Promise<previewDocument_queryQuery> {
      return requester<previewDocument_queryQuery, previewDocument_queryQueryVariables>(previewDocument_queryDocument, variables, options) as Promise<previewDocument_queryQuery>;
    },
    getLinkedDocuments_query(variables: getLinkedDocuments_queryQueryVariables, options?: C): Promise<getLinkedDocuments_queryQuery> {
      return requester<getLinkedDocuments_queryQuery, getLinkedDocuments_queryQueryVariables>(getLinkedDocuments_queryDocument, variables, options) as Promise<getLinkedDocuments_queryQuery>;
    },
    getDocumentsDownloadLinks_query(variables: getDocumentsDownloadLinks_queryQueryVariables, options?: C): Promise<getDocumentsDownloadLinks_queryQuery> {
      return requester<getDocumentsDownloadLinks_queryQuery, getDocumentsDownloadLinks_queryQueryVariables>(getDocumentsDownloadLinks_queryDocument, variables, options) as Promise<getDocumentsDownloadLinks_queryQuery>;
    },
    getExpense_query(variables: getExpense_queryQueryVariables, options?: C): Promise<getExpense_queryQuery> {
      return requester<getExpense_queryQuery, getExpense_queryQueryVariables>(getExpense_queryDocument, variables, options) as Promise<getExpense_queryQuery>;
    },
    searchExpenses_query(variables?: searchExpenses_queryQueryVariables, options?: C): Promise<searchExpenses_queryQuery> {
      return requester<searchExpenses_queryQuery, searchExpenses_queryQueryVariables>(searchExpenses_queryDocument, variables, options) as Promise<searchExpenses_queryQuery>;
    },
    searchExpenseDrafts_query(variables?: searchExpenseDrafts_queryQueryVariables, options?: C): Promise<searchExpenseDrafts_queryQuery> {
      return requester<searchExpenseDrafts_queryQuery, searchExpenseDrafts_queryQueryVariables>(searchExpenseDrafts_queryDocument, variables, options) as Promise<searchExpenseDrafts_queryQuery>;
    },
    getClient_query(variables: getClient_queryQueryVariables, options?: C): Promise<getClient_queryQuery> {
      return requester<getClient_queryQuery, getClient_queryQueryVariables>(getClient_queryDocument, variables, options) as Promise<getClient_queryQuery>;
    },
    getFileUploadUrl_query(variables?: getFileUploadUrl_queryQueryVariables, options?: C): Promise<getFileUploadUrl_queryQuery> {
      return requester<getFileUploadUrl_queryQuery, getFileUploadUrl_queryQueryVariables>(getFileUploadUrl_queryDocument, variables, options) as Promise<getFileUploadUrl_queryQuery>;
    },
    getBankTransactions_query(variables?: getBankTransactions_queryQueryVariables, options?: C): Promise<getBankTransactions_queryQuery> {
      return requester<getBankTransactions_queryQuery, getBankTransactions_queryQueryVariables>(getBankTransactions_queryDocument, variables, options) as Promise<getBankTransactions_queryQuery>;
    },
    addDocument_mutation(variables?: addDocument_mutationMutationVariables, options?: C): Promise<addDocument_mutationMutation> {
      return requester<addDocument_mutationMutation, addDocument_mutationMutationVariables>(addDocument_mutationDocument, variables, options) as Promise<addDocument_mutationMutation>;
    },
    closeDocument_mutation(variables: closeDocument_mutationMutationVariables, options?: C): Promise<closeDocument_mutationMutation> {
      return requester<closeDocument_mutationMutation, closeDocument_mutationMutationVariables>(closeDocument_mutationDocument, variables, options) as Promise<closeDocument_mutationMutation>;
    },
    addExpense_mutation(variables?: addExpense_mutationMutationVariables, options?: C): Promise<addExpense_mutationMutation> {
      return requester<addExpense_mutationMutation, addExpense_mutationMutationVariables>(addExpense_mutationDocument, variables, options) as Promise<addExpense_mutationMutation>;
    },
    updateExpense_mutation(variables?: updateExpense_mutationMutationVariables, options?: C): Promise<updateExpense_mutationMutation> {
      return requester<updateExpense_mutationMutation, updateExpense_mutationMutationVariables>(updateExpense_mutationDocument, variables, options) as Promise<updateExpense_mutationMutation>;
    },
    addExpenseDraftByFile_mutation(variables?: addExpenseDraftByFile_mutationMutationVariables, options?: C): Promise<addExpenseDraftByFile_mutationMutation> {
      return requester<addExpenseDraftByFile_mutationMutation, addExpenseDraftByFile_mutationMutationVariables>(addExpenseDraftByFile_mutationDocument, variables, options) as Promise<addExpenseDraftByFile_mutationMutation>;
    },
    addClient_mutation(variables?: addClient_mutationMutationVariables, options?: C): Promise<addClient_mutationMutation> {
      return requester<addClient_mutationMutation, addClient_mutationMutationVariables>(addClient_mutationDocument, variables, options) as Promise<addClient_mutationMutation>;
    },
    updateClient_mutation(variables: updateClient_mutationMutationVariables, options?: C): Promise<updateClient_mutationMutation> {
      return requester<updateClient_mutationMutation, updateClient_mutationMutationVariables>(updateClient_mutationDocument, variables, options) as Promise<updateClient_mutationMutation>;
    },
    deleteClient_mutation(variables: deleteClient_mutationMutationVariables, options?: C): Promise<deleteClient_mutationMutation> {
      return requester<deleteClient_mutationMutation, deleteClient_mutationMutationVariables>(deleteClient_mutationDocument, variables, options) as Promise<deleteClient_mutationMutation>;
    }
  };
}
export type Sdk = ReturnType<typeof getSdk>;