import type { InContextSdkMethod } from '@graphql-mesh/types';
export declare namespace GreenInvoiceTypes {
    type Maybe<T> = T | null;
    type InputMaybe<T> = Maybe<T>;
    /** All built-in and custom scalars, mapped to their actual values */
    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;
        };
    };
    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>;
    };
    type QuerygetDocumentArgs = {
        id: Scalars['String']['input'];
    };
    type QuerysearchDocumentsArgs = {
        input?: InputMaybe<_DOLLAR_defs_searchDocumentsRequest_Input>;
    };
    type QuerypreviewDocumentArgs = {
        input?: InputMaybe<_DOLLAR_defs_DocumentInputNew_Input>;
    };
    type QuerygetLinkedDocumentsArgs = {
        id: Scalars['String']['input'];
    };
    type QuerygetDocumentsDownloadLinksArgs = {
        id: Scalars['String']['input'];
    };
    type QuerygetExpenseArgs = {
        id: Scalars['String']['input'];
    };
    type QuerysearchExpensesArgs = {
        input?: InputMaybe<_DOLLAR_defs_searchExpensesRequest_Input>;
    };
    type QuerysearchExpenseDraftsArgs = {
        input?: InputMaybe<_DOLLAR_defs_searchExpenseDraftsRequest_Input>;
    };
    type QuerygetClientArgs = {
        id: Scalars['String']['input'];
    };
    /** A Single Document */
    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;
    };
    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 */
    type query_getDocument_business_type = '_1' | '_2' | '_3' | '_4' | '_5' | '_6';
    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 */
    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 */
    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';
    type _DOLLAR_defs_DocumentData = {
        /** TODO: implement */
        tags?: Maybe<Array<Maybe<Scalars['JSON']['output']>>>;
    };
    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 */
    type _DOLLAR_defs_VatType = '_0' | '_1' | '_2';
    /** Document language */
    type _DOLLAR_defs_DocumentLang = 'en' | 'he';
    /** A Linked Document */
    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 */
    type _DOLLAR_defs_DocumentType = '_10' | '_100' | '_200' | '_210' | '_300' | '_305' | '_320' | '_330' | '_400' | '_405' | '_500' | '_600' | '_610';
    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 */
    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) */
    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) */
    type query_getDocument_payment_items_appType = '_1' | '_2' | '_3' | '_4' | '_5' | '_6';
    /** Credit card type */
    type query_getDocument_payment_items_cardType = '_1' | '_2' | '_3' | '_4' | '_5';
    /** Credit card deal type */
    type query_getDocument_payment_items_dealType = '_1' | '_2' | '_3' | '_4' | '_5' | '_6';
    type _DOLLAR_defs_Url = {
        /** Copy in Hebrew */
        he: Scalars['String']['output'];
        /** Copy in English */
        en?: Maybe<Scalars['String']['output']>;
        /** Origin */
        origin: Scalars['String']['output'];
    };
    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>>;
    };
    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>;
    };
    type queryInput_searchDocuments_input_status_items = '_0' | '_1' | '_2' | '_3' | '_4';
    type queryInput_searchDocuments_input_paymentTypes_items = 'NEGATIVE_1' | '_0' | '_1' | '_2' | '_3' | '_4' | '_5' | '_10' | '_11';
    type queryInput_searchDocuments_input_sort = 'documentDate' | 'creationDate';
    type _DOLLAR_defs_previewDocumentResponse = query_previewDocument_oneOf_0 | _DOLLAR_defs_ErrorResponse;
    type query_previewDocument_oneOf_0 = {
        /** Preview document file in Base64 */
        file: Scalars['String']['output'];
    };
    /** Error */
    type _DOLLAR_defs_ErrorResponse = {
        errorCode?: Maybe<Scalars['Float']['output']>;
        errorMessage?: Maybe<Scalars['String']['output']>;
    };
    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 */
    type _DOLLAR_defs_DocumentDiscount_Input = {
        amount: Scalars['Float']['input'];
        type: queryInput_previewDocument_input_discount_type;
    };
    /** Discount amount type */
    type queryInput_previewDocument_input_discount_type = 'sum' | 'percentage';
    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;
    };
    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) */
    type queryInput_previewDocument_input_linkType = 'LINK' | 'CANCEL';
    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 */
    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 */
    type query_getExpense_businessType = '_1' | '_2' | '_3' | '_4' | '_5' | '_6';
    /** Document type */
    type _DOLLAR_defs_ExpenseDocumentType = '_20' | '_305' | '_320' | '_330' | '_400' | '_405';
    /** The status of the expense */
    type query_getExpense_status = '_10' | '_20' | '_30' | '_100';
    /** Payment method */
    type query_getExpense_paymentType = 'NEGATIVE_1' | '_0' | '_1' | '_2' | '_3' | '_4' | '_5' | '_10' | '_11';
    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 */
    type query_getExpense_supplier_allOf_3_paymentTerms = 'NEGATIVE_1' | '_0' | '_10' | '_15' | '_30' | '_45' | '_60' | '_75' | '_90' | '_120';
    /** Account classification of the expense */
    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 */
    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';
    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>;
    };
    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'];
    };
    type searchExpenseDrafts_response = searchExpenseDrafts_200_response | searchExpenseDrafts_404_response;
    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>>;
    };
    type query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations = {
        totalAmount: query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations_totalAmount;
    };
    type query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations_totalAmount = {
        value: Scalars['Float']['output'];
    };
    /** Partial Expense */
    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;
    };
    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 */
    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;
    type Boolean_container = {
        Boolean?: Maybe<Scalars['Boolean']['output']>;
    };
    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>;
    };
    type query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1 = '_1' | '_2' | '_3' | '_4' | '_5' | '_10' | '_11';
    type searchExpenseDrafts_404_response = {
        errorCode?: Maybe<Scalars['Int']['output']>;
        errorMessage?: Maybe<Scalars['String']['output']>;
    };
    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']>;
    };
    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 */
    type query_getClient_allOf_3_paymentTerms = 'NEGATIVE_1' | '_0' | '_10' | '_15' | '_30' | '_45' | '_60' | '_75' | '_90' | '_120';
    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>;
    };
    type MutationaddDocumentArgs = {
        input?: InputMaybe<_DOLLAR_defs_addDocumentRequest_Input>;
    };
    type MutationcloseDocumentArgs = {
        id: Scalars['String']['input'];
    };
    type MutationaddExpenseArgs = {
        input?: InputMaybe<Scalars['JSON']['input']>;
    };
    type MutationupdateExpenseArgs = {
        id?: InputMaybe<Scalars['String']['input']>;
        input?: InputMaybe<_DOLLAR_defs_updateExpenseRequest_Input>;
    };
    type MutationaddExpenseDraftByFileArgs = {
        input?: InputMaybe<_DOLLAR_defs_addExpenseDraftByFileRequest_Input>;
    };
    type MutationaddClientArgs = {
        input?: InputMaybe<_DOLLAR_defs_addClientRequest_Input>;
    };
    type MutationupdateClientArgs = {
        id: Scalars['String']['input'];
        input?: InputMaybe<_DOLLAR_defs_updateClientRequest_Input>;
    };
    type MutationdeleteClientArgs = {
        id: Scalars['String']['input'];
    };
    type _DOLLAR_defs_addDocumentResponse = _DOLLAR_defs_AddedDocument | _DOLLAR_defs_ErrorResponse;
    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 */
    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']>;
    };
    type _DOLLAR_defs_addExpenseResponse = _DOLLAR_defs_Expense | _DOLLAR_defs_ErrorResponse;
    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 */
    type mutation_addExpense_oneOf_0_allOf_0_paymentType = Boolean_container | mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_container;
    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>;
    };
    type mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1 = '_1' | '_2' | '_3' | '_4' | '_5' | '_10' | '_11';
    type _DOLLAR_defs_updateExpenseResponse = _DOLLAR_defs_GetExpense | _DOLLAR_defs_ErrorResponse;
    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']>;
    };
    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;
    };
    type mutationInput_updateExpense_input_paymentType_oneOf_1 = '_1' | '_2' | '_3' | '_4' | '_5' | '_10' | '_11';
    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 */
    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']>;
    };
    type addExpenseDraftByFile_response = addExpenseDraftByFile_200_response | searchExpenseDrafts_404_response;
    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 */
    type mutation_addExpenseDraftByFile_oneOf_0_status = '_10' | '_50';
    /** A Single Expense */
    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']>;
    };
    type _DOLLAR_defs_addExpenseDraftByFileRequest_Input = {
        /** The file, in Base64, allowed types: GIF, PNG, JPG, SVG, PDF */
        file?: InputMaybe<Scalars['String']['input']>;
    };
    type _DOLLAR_defs_addClientResponse = _DOLLAR_defs_getClientResponse | _DOLLAR_defs_ErrorResponse;
    /** Add a new client to the current business */
    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 */
    type mutationInput_addClient_input_allOf_3_paymentTerms = 'NEGATIVE_1' | '_0' | '_10' | '_15' | '_30' | '_45' | '_60' | '_75' | '_90' | '_120';
    type _DOLLAR_defs_updateClientResponse = _DOLLAR_defs_getClientResponse | _DOLLAR_defs_ErrorResponse;
    /** Update an existing client */
    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 */
    type mutationInput_updateClient_input_paymentTerms = 'NEGATIVE_1' | '_0' | '_10' | '_15' | '_30' | '_45' | '_60' | '_75' | '_90' | '_120';
    type _DOLLAR_defs_deleteClientResponse = _DOLLAR_defs_getClientResponse | _DOLLAR_defs_ErrorResponse;
    type HTTPMethod = 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH';
    type QuerySdk = {
        getDocument: InContextSdkMethod<Query['getDocument'], QuerygetDocumentArgs, BaseMeshContext>;
        searchDocuments: InContextSdkMethod<Query['searchDocuments'], QuerysearchDocumentsArgs, BaseMeshContext>;
        previewDocument: InContextSdkMethod<query_previewDocument_oneOf_0 | _DOLLAR_defs_ErrorResponse, QuerypreviewDocumentArgs, BaseMeshContext>;
        getLinkedDocuments: InContextSdkMethod<Query['getLinkedDocuments'], QuerygetLinkedDocumentsArgs, BaseMeshContext>;
        getDocumentsDownloadLinks: InContextSdkMethod<Query['getDocumentsDownloadLinks'], QuerygetDocumentsDownloadLinksArgs, BaseMeshContext>;
        getExpense: InContextSdkMethod<Query['getExpense'], QuerygetExpenseArgs, BaseMeshContext>;
        searchExpenses: InContextSdkMethod<Query['searchExpenses'], QuerysearchExpensesArgs, BaseMeshContext>;
        searchExpenseDrafts: InContextSdkMethod<searchExpenseDrafts_200_response | searchExpenseDrafts_404_response, QuerysearchExpenseDraftsArgs, BaseMeshContext>;
        getClient: InContextSdkMethod<Query['getClient'], QuerygetClientArgs, BaseMeshContext>;
    };
    type MutationSdk = {
        addDocument: InContextSdkMethod<_DOLLAR_defs_AddedDocument | _DOLLAR_defs_ErrorResponse, MutationaddDocumentArgs, BaseMeshContext>;
        closeDocument: InContextSdkMethod<Mutation['closeDocument'], MutationcloseDocumentArgs, BaseMeshContext>;
        addExpense: InContextSdkMethod<_DOLLAR_defs_Expense | _DOLLAR_defs_ErrorResponse, MutationaddExpenseArgs, BaseMeshContext>;
        updateExpense: InContextSdkMethod<_DOLLAR_defs_GetExpense | _DOLLAR_defs_ErrorResponse, MutationupdateExpenseArgs, BaseMeshContext>;
        addExpenseDraftByFile: InContextSdkMethod<addExpenseDraftByFile_200_response | searchExpenseDrafts_404_response, MutationaddExpenseDraftByFileArgs, BaseMeshContext>;
        addClient: InContextSdkMethod<_DOLLAR_defs_getClientResponse | _DOLLAR_defs_ErrorResponse, MutationaddClientArgs, BaseMeshContext>;
        updateClient: InContextSdkMethod<_DOLLAR_defs_getClientResponse | _DOLLAR_defs_ErrorResponse, MutationupdateClientArgs, BaseMeshContext>;
        deleteClient: InContextSdkMethod<_DOLLAR_defs_getClientResponse | _DOLLAR_defs_ErrorResponse, MutationdeleteClientArgs, BaseMeshContext>;
    };
    type SubscriptionSdk = {};
    type Context = {
        ["GreenInvoice"]: {
            Query: QuerySdk;
            Mutation: MutationSdk;
            Subscription: SubscriptionSdk;
        };
    };
}
