@accounter/green-invoice-graphql
Version:
Graphql proxy for Green Invoice API
1,019 lines • 52.7 kB
text/typescript
import { InContextSdkMethod } from '@graphql-mesh/types';
import { MeshContext } from '@graphql-mesh/runtime';
export declare namespace GreenInvoiceTypes {
type Maybe<T> = T | null;
type InputMaybe<T> = Maybe<T>;
type Exact<T extends {
[key: string]: unknown;
}> = {
[K in keyof T]: T[K];
};
type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
[SubKey in K]?: Maybe<T[SubKey]>;
};
type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
[SubKey in K]: Maybe<T[SubKey]>;
};
type MakeEmpty<T extends {
[key: string]: unknown;
}, K extends keyof T> = {
[_ in K]?: never;
};
type Incremental<T> = T | {
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
};
/** 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;
};
/** 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;
};
/** Represents date values */
Date: {
input: string;
output: string;
};
ObjMap: {
input: any;
output: any;
};
};
type Query = {
previewDocument?: Maybe<previewDocumentResponse>;
getExpense?: Maybe<GetExpense>;
searchExpenses?: Maybe<searchExpensesResponse>;
searchDocuments?: Maybe<searchDocumentsResponse>;
searchExpenseDrafts?: Maybe<searchExpenseDrafts_response>;
};
type QuerypreviewDocumentArgs = {
input?: InputMaybe<DocumentInput_Input>;
};
type QuerygetExpenseArgs = {
id: Scalars['String']['input'];
};
type QuerysearchExpensesArgs = {
input?: InputMaybe<searchExpensesRequest_Input>;
};
type QuerysearchDocumentsArgs = {
input?: InputMaybe<searchDocumentsRequest_Input>;
};
type QuerysearchExpenseDraftsArgs = {
input?: InputMaybe<searchExpenseDraftsRequest_Input>;
};
type previewDocumentResponse = query_previewDocument_oneOf_0 | ErrorResponse;
type query_previewDocument_oneOf_0 = {
/** Preview document file in Base64 */
file: Scalars['String']['output'];
};
/** Error */
type ErrorResponse = {
errorCode?: Maybe<Scalars['Float']['output']>;
errorMessage?: Maybe<Scalars['String']['output']>;
};
/** A New Document */
type DocumentInput_Input = {
/** Total amount, in requested currency (including the VAT, Discount & Rounding) */
amount?: InputMaybe<Scalars['Float']['input']>;
/** Amount due VAT - Amount before VAT, and before rounding & discount (if requested) */
amountDueVat?: InputMaybe<Scalars['Float']['input']>;
/** Amount excluded VAT - Amount that is excluded of VAT */
amountExcludedVat?: InputMaybe<Scalars['Float']['input']>;
/** 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?: InputMaybe<Scalars['Float']['input']>;
/** Amount in local currency */
amountLocal?: InputMaybe<Scalars['Float']['input']>;
/** Amount that is still left to be paid, exists only in payment request documents */
amountOpened?: InputMaybe<Scalars['Float']['input']>;
business?: InputMaybe<Business_Input>;
calculatedAmountLocal?: InputMaybe<Scalars['Float']['input']>;
calculatedAmountOpenedLocal?: InputMaybe<Scalars['Float']['input']>;
calculatedIncomeAmountExcludeLocal?: InputMaybe<Scalars['Float']['input']>;
calculatedIncomeAmountLocal?: InputMaybe<Scalars['Float']['input']>;
calculatedPaymentAmountLocal?: InputMaybe<Scalars['Float']['input']>;
cancellable?: InputMaybe<Scalars['Boolean']['input']>;
cancelType?: InputMaybe<Scalars['Float']['input']>;
client?: InputMaybe<ClientCore_Input>;
/** The creation date, in UNIX timestamp format */
creationDate?: InputMaybe<Scalars['Int']['input']>;
currency: Currency;
/** Currency rate relative to ILS */
currencyRate?: InputMaybe<Scalars['Float']['input']>;
data?: InputMaybe<DocumentData_Input>;
/** Document's description */
description?: InputMaybe<Scalars['String']['input']>;
/** Document reference date */
documentDate?: InputMaybe<Scalars['String']['input']>;
downloaded?: InputMaybe<Scalars['Boolean']['input']>;
/** Document ID */
id?: InputMaybe<Scalars['String']['input']>;
income?: InputMaybe<Array<InputMaybe<Income_Input>>>;
lang: DocumentLang;
/** Document tax number */
number?: InputMaybe<Scalars['String']['input']>;
payment?: InputMaybe<Array<InputMaybe<Payment_Input>>>;
ref?: InputMaybe<Array<InputMaybe<Scalars['Float']['input']>>>;
remarks?: InputMaybe<Scalars['String']['input']>;
reverseCharge?: InputMaybe<Scalars['Boolean']['input']>;
/** Round the amounts */
rounding?: InputMaybe<Scalars['Boolean']['input']>;
/** Digital sign the document */
signed?: InputMaybe<Scalars['Boolean']['input']>;
skinId?: InputMaybe<Scalars['Float']['input']>;
/** Document status */
status?: InputMaybe<Scalars['Float']['input']>;
templateId?: InputMaybe<Scalars['Float']['input']>;
type: DocumentType;
url?: InputMaybe<Url_Input>;
/** VAT amount */
vat?: InputMaybe<Scalars['Float']['input']>;
/** VAT rate */
vatRate?: InputMaybe<Scalars['Float']['input']>;
/** VAT type */
vatType: Scalars['Float']['input'];
/** Texts appearing in footer */
footer?: InputMaybe<Scalars['String']['input']>;
/** Custom extra text appearing in email sent to customer */
emailContent?: InputMaybe<Scalars['String']['input']>;
/** 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']>;
discount?: InputMaybe<Scalars['JSON']['input']>;
/** Attach the document in the email sent to recipient? */
attachment?: InputMaybe<Scalars['Boolean']['input']>;
paymentRequestData?: InputMaybe<Scalars['JSON']['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<mutationInput_addDocument_input_linkType>;
};
type Business_Input = {
accountantDocsEmailSettings: Scalars['Float']['input'];
accountantEmails: Array<InputMaybe<Scalars['JSON']['input']>>;
accountantReportEmailSettings: Scalars['Float']['input'];
accountingType: Scalars['Float']['input'];
active: Scalars['Boolean']['input'];
advanceNationalInsuranceRate: Scalars['Float']['input'];
advanceTaxRate: Scalars['Float']['input'];
bankDisplay: Scalars['Boolean']['input'];
bankDisplayEn: Scalars['Boolean']['input'];
deductionRate: Scalars['Float']['input'];
documentsEmailSettings: Scalars['Float']['input'];
emailSubjectType: Scalars['Float']['input'];
/** Is the business exemption free or not */
exemption: Scalars['Boolean']['input'];
incomeReportEmailSettings: Scalars['Float']['input'];
incomeReportFormatType: Scalars['Float']['input'];
reportSendingDay: Scalars['Float']['input'];
senderEmailSettings: Scalars['Float']['input'];
type: mutationInput_addDocument_input_allOf_0_business_type;
};
/** The business type ID */
type mutationInput_addDocument_input_allOf_0_business_type = '_1' | '_2' | '_3' | '_4' | '_5' | '_6';
type ClientCore_Input = {
country?: InputMaybe<Country>;
emails?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
/** The client ID */
id?: InputMaybe<Scalars['String']['input']>;
/** The client name */
name?: InputMaybe<Scalars['String']['input']>;
phone?: InputMaybe<Scalars['String']['input']>;
/** The client tax ID */
taxId?: InputMaybe<Scalars['String']['input']>;
/** Whether the client is self */
self?: InputMaybe<Scalars['Boolean']['input']>;
};
/** 2-letter ISO supplier country code, default is IL */
type 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 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 DocumentData_Input = {
/** TODO: implement */
tags?: InputMaybe<Array<InputMaybe<Scalars['JSON']['input']>>>;
};
type Income_Input = {
/** Amount */
amount?: InputMaybe<Scalars['Float']['input']>;
/** Total amount */
amountTotal?: InputMaybe<Scalars['Float']['input']>;
/** Catalog number */
catalogNum?: InputMaybe<Scalars['String']['input']>;
currency: Currency;
/** Currency rate relative to ILS */
currencyRate?: InputMaybe<Scalars['Float']['input']>;
/** Item description */
description: Scalars['String']['input'];
/** The ID of the item to attach as income */
itemId?: InputMaybe<Scalars['String']['input']>;
/** Item price */
price: Scalars['Float']['input'];
/** Quantity */
quantity: Scalars['Float']['input'];
/** VAT amount */
vat?: InputMaybe<Scalars['Float']['input']>;
/** VAT rate */
vatRate?: InputMaybe<Scalars['Float']['input']>;
/** VAT type */
vatType: Scalars['Float']['input'];
};
/** Document language */
type DocumentLang = 'en' | 'he';
type Payment_Input = {
amount?: InputMaybe<Scalars['Float']['input']>;
/** Is this document a cancellable document */
cancellable?: InputMaybe<Scalars['Boolean']['input']>;
currency?: InputMaybe<Currency>;
/** Currency rate relative to ILS */
currencyRate?: InputMaybe<Scalars['Float']['input']>;
date?: InputMaybe<Scalars['Date']['input']>;
description?: InputMaybe<Scalars['String']['input']>;
name?: InputMaybe<Scalars['String']['input']>;
/** Sum paid */
price: Scalars['Float']['input'];
/** The referred documents types */
ref?: InputMaybe<Array<InputMaybe<DocumentType>>>;
type: mutationInput_addDocument_input_allOf_0_payment_items_type;
subType?: InputMaybe<mutationInput_addDocument_input_allOf_0_payment_items_subType>;
};
/** Document type */
type DocumentType = '_10' | '_100' | '_200' | '_210' | '_300' | '_305' | '_320' | '_330' | '_400' | '_405' | '_500' | '_600' | '_610';
/** Payment method */
type mutationInput_addDocument_input_allOf_0_payment_items_type = 'NEGATIVE_1' | '_0' | '_1' | '_2' | '_3' | '_4' | '_5' | '_10' | '_11';
/** Other payment sub type */
type mutationInput_addDocument_input_allOf_0_payment_items_subType = '_1' | '_2' | '_3' | '_4';
type Url_Input = {
/** Copy in Hebrew */
he: Scalars['String']['input'];
/** Copy in English */
en?: InputMaybe<Scalars['String']['input']>;
/** Origin */
origin: Scalars['String']['input'];
};
/** Reference type (applicable only when using linkedDocumentIds) */
type mutationInput_addDocument_input_linkType = 'link' | 'cancel';
/** A Single Expense */
type GetExpense = {
/** The expense ID */
id?: Maybe<Scalars['String']['output']>;
businessType?: Maybe<mutation_updateExpense_oneOf_0_businessType>;
documentType?: Maybe<ExpenseDocumentType>;
status?: Maybe<mutation_updateExpense_oneOf_0_status>;
paymentType?: Maybe<mutation_updateExpense_oneOf_0_paymentType>;
currency?: Maybe<Currency>;
/** Currency rate relative to ILS */
currencyRate?: Maybe<Scalars['Float']['output']>;
/** The amount excluding the vat */
amountExcludeVat?: Maybe<Scalars['Float']['output']>;
/** VAT amount */
vat?: Maybe<Scalars['Float']['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<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<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['Int']['output']>;
/** The last update date of the expense, in UNIX timestamp format */
lastUpdateDate?: Maybe<Scalars['Int']['output']>;
};
/** The business type ID */
type mutation_updateExpense_oneOf_0_businessType = '_1' | '_2' | '_3' | '_4' | '_5' | '_6';
/** Document type */
type ExpenseDocumentType = '_20' | '_305' | '_320' | '_330' | '_400' | '_405';
/** The status of the expense */
type mutation_updateExpense_oneOf_0_status = '_10' | '_20' | '_30' | '_100';
/** Payment method */
type mutation_updateExpense_oneOf_0_paymentType = 'NEGATIVE_1' | '_0' | '_1' | '_2' | '_3' | '_4' | '_5' | '_10' | '_11';
/** Supplier of the expense */
type Supplier = {
/** 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<mutation_addExpense_oneOf_0_allOf_0_supplier_paymentTerms>;
/** The supplier bank name */
bankName?: Maybe<Scalars['String']['output']>;
/** The supplier bank branch number */
bankBranch?: Maybe<Scalars['String']['output']>;
/** The supplier bank account number */
bankAccount?: Maybe<Scalars['String']['output']>;
country?: Maybe<Country>;
/** The supplier phone number */
phone?: Maybe<Scalars['String']['output']>;
/** The supplier mobile number */
mobile?: Maybe<Scalars['String']['output']>;
/** The supplier contact person name */
contactPerson?: Maybe<Scalars['String']['output']>;
emails?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
labels?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
/** The creation date, in UNIX timestamp format */
creationDate?: Maybe<Scalars['Int']['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 address */
address?: Maybe<Scalars['String']['output']>;
/** The supplier city */
city?: Maybe<Scalars['String']['output']>;
/** The supplier zip code */
zip?: Maybe<Scalars['String']['output']>;
/** The supplier fax number */
fax?: 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 mutation_addExpense_oneOf_0_allOf_0_supplier_paymentTerms = 'NEGATIVE_1' | '_0' | '_10' | '_15' | '_30' | '_45' | '_60' | '_75' | '_90' | '_120';
/** Account classification of the expense */
type 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<mutation_addExpense_oneOf_0_allOf_0_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 mutation_addExpense_oneOf_0_allOf_0_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 searchExpensesResponse = {
/** The total length of the items that were retrieved */
total?: Maybe<Scalars['Float']['output']>;
/** The page that was requested to retrieve */
page?: Maybe<Scalars['Float']['output']>;
/** The page size that was requested */
pageSize?: Maybe<Scalars['Float']['output']>;
/** The amount of pages that exist */
pages?: Maybe<Scalars['Float']['output']>;
items?: Maybe<GetExpense>;
};
type 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 searchDocumentsResponse = {
/** The total length of the items that were retrieved */
total: Scalars['Float']['output'];
/** The page that was requested to retrieve */
page: Scalars['Float']['output'];
/** The page size that was requested */
pageSize: Scalars['Float']['output'];
/** The amount of pages that exist */
pages: Scalars['Float']['output'];
items: Array<Maybe<Document>>;
};
/** A Single Document */
type 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['Float']['output'];
/** Amount excluded VAT - Amount that is excluded of VAT */
amountExcludedVat?: Maybe<Scalars['Float']['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['Float']['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: 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: Client;
/** The creation date, in UNIX timestamp format */
creationDate: Scalars['Int']['output'];
currency: Currency;
/** Currency rate relative to ILS */
currencyRate: Scalars['Float']['output'];
data: DocumentData;
/** Document's description */
description: Scalars['String']['output'];
/** Document reference date */
documentDate: Scalars['String']['output'];
downloaded: Scalars['Boolean']['output'];
/** Document ID */
id: Scalars['String']['output'];
income: Array<Maybe<Income>>;
lang: DocumentLang;
/** Document tax number */
number: Scalars['String']['output'];
payment: Array<Maybe<Payment>>;
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'];
templateId: Scalars['Float']['output'];
type: DocumentType;
url: Url;
/** VAT amount */
vat: Scalars['Float']['output'];
/** VAT rate */
vatRate: Scalars['Float']['output'];
/** VAT type */
vatType: Scalars['Float']['output'];
};
type 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: mutationInput_addDocument_input_allOf_0_business_type;
};
type Client = {
country: Country;
emails: Array<Maybe<Scalars['String']['output']>>;
/** The client ID */
id: Scalars['String']['output'];
/** The client name */
name: Scalars['String']['output'];
phone: Scalars['String']['output'];
/** Whether the client is self */
self: Scalars['Boolean']['output'];
};
type DocumentData = {
/** TODO: implement */
tags?: Maybe<Array<Maybe<Scalars['JSON']['output']>>>;
};
type Income = {
/** Amount */
amount?: Maybe<Scalars['Float']['output']>;
/** Total amount */
amountTotal?: Maybe<Scalars['Float']['output']>;
/** Catalog number */
catalogNum?: Maybe<Scalars['String']['output']>;
currency: Currency;
/** Currency rate relative to ILS */
currencyRate?: Maybe<Scalars['Float']['output']>;
/** Item description */
description: Scalars['String']['output'];
/** The ID of the item to attach as income */
itemId?: Maybe<Scalars['String']['output']>;
/** Item price */
price: Scalars['Float']['output'];
/** Quantity */
quantity: Scalars['Float']['output'];
/** VAT amount */
vat?: Maybe<Scalars['Float']['output']>;
/** VAT rate */
vatRate?: Maybe<Scalars['Float']['output']>;
/** VAT type */
vatType: Scalars['Float']['output'];
};
type Payment = {
amount?: Maybe<Scalars['Float']['output']>;
/** Is this document a cancellable document */
cancellable?: Maybe<Scalars['Boolean']['output']>;
currency?: Maybe<Currency>;
/** Currency rate relative to ILS */
currencyRate?: Maybe<Scalars['Float']['output']>;
date?: Maybe<Scalars['Date']['output']>;
description?: Maybe<Scalars['String']['output']>;
name?: Maybe<Scalars['String']['output']>;
/** Sum paid */
price: Scalars['Float']['output'];
/** The referred documents types */
ref?: Maybe<Array<Maybe<DocumentType>>>;
type: mutationInput_addDocument_input_allOf_0_payment_items_type;
subType?: Maybe<mutationInput_addDocument_input_allOf_0_payment_items_subType>;
};
type Url = {
/** Copy in Hebrew */
he: Scalars['String']['output'];
/** Copy in English */
en?: Maybe<Scalars['String']['output']>;
/** Origin */
origin: Scalars['String']['output'];
};
type 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<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['String']['input']>;
/** Documents that were created until the specified date in the format YYYY-MM-DD */
toDate?: InputMaybe<Scalars['String']['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 searchExpenseDrafts_response = searchExpenseDraftsResponse | generalErrorResponse;
type searchExpenseDraftsResponse = {
/** The total length of the items that were retrieved */
total: Scalars['Float']['output'];
from?: Maybe<Scalars['Float']['output']>;
to?: Maybe<Scalars['Float']['output']>;
/** The page that was requested to retrieve */
page: Scalars['Float']['output'];
/** The page size that was requested */
pageSize: Scalars['Float']['output'];
/** The amount of pages that exist */
pages: Scalars['Float']['output'];
aggregations: query_searchExpenseDrafts_oneOf_0_aggregations;
/** The expense drafts that were found */
items: Array<Maybe<query_searchExpenseDrafts_oneOf_0_items_items>>;
};
type query_searchExpenseDrafts_oneOf_0_aggregations = {
totalAmount: query_searchExpenseDrafts_oneOf_0_aggregations_totalAmount;
};
type query_searchExpenseDrafts_oneOf_0_aggregations_totalAmount = {
value: Scalars['Float']['output'];
};
/** Partial Expense */
type query_searchExpenseDrafts_oneOf_0_items_items = {
id: Scalars['String']['output'];
status: Scalars['Float']['output'];
/** The creation date, in UNIX timestamp format */
creationDate: Scalars['Int']['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_items_items_expense;
};
type query_searchExpenseDrafts_oneOf_0_items_items_expense = {
accountingClassification: 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: Currency;
/** Currency rate relative to ILS */
currencyRate: Scalars['Float']['output'];
/** Date of the expense */
date?: Maybe<Scalars['String']['output']>;
/** Description for the expense */
description: Scalars['String']['output'];
documentType: 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_items_items_expense_paymentType>;
/** Reporting date of the expense */
reportingDate: Scalars['String']['output'];
supplier: Supplier;
tags: Array<Maybe<Scalars['String']['output']>>;
texts: Array<Maybe<Scalars['String']['output']>>;
/** VAT amount */
vat: Scalars['Float']['output'];
};
/** Payment method */
type query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType = Boolean_container | query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType_oneOf_1_container;
type Boolean_container = {
Boolean?: Maybe<Scalars['Boolean']['output']>;
};
type query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType_oneOf_1_container = {
query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType_oneOf_1?: Maybe<query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType_oneOf_1>;
};
type query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType_oneOf_1 = '_1' | '_2' | '_3' | '_4' | '_5' | '_10' | '_11';
type generalErrorResponse = {
errorCode_?: Maybe<Scalars['Int']['output']>;
errorMessage?: Maybe<Scalars['String']['output']>;
};
type searchExpenseDraftsRequest_Input = {
/** Expense drafts that were created after the specified date in the format YYYY-MM-DD */
fromDate?: InputMaybe<Scalars['String']['input']>;
/** Expense drafts that were created until the specified date in the format YYYY-MM-DD */
toDate?: InputMaybe<Scalars['String']['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 Mutation = {
addExpense?: Maybe<addExpenseResponse>;
addDocument?: Maybe<addDocumentResponse>;
updateExpense?: Maybe<updateExpenseResponse>;
addExpenseDraftByFile?: Maybe<addExpenseDraftByFile_response>;
};
type MutationaddExpenseArgs = {
input?: InputMaybe<Expense_Input>;
};
type MutationaddDocumentArgs = {
input?: InputMaybe<DocumentInput_Input>;
};
type MutationupdateExpenseArgs = {
id?: InputMaybe<Scalars['String']['input']>;
input?: InputMaybe<updateExpenseRequest_Input>;
};
type MutationaddExpenseDraftByFileArgs = {
input?: InputMaybe<addExpenseDraftByFileRequest_Input>;
};
type addExpenseResponse = Expense | ErrorResponse;
type Expense = {
paymentType?: Maybe<mutation_addExpense_oneOf_0_allOf_0_paymentType>;
currency: Scalars['JSON']['output'];
/** Currency rate relative to ILS */
currencyRate?: Maybe<Scalars['Float']['output']>;
vat: Scalars['JSON']['output'];
amount: Scalars['JSON']['output'];
date: Scalars['JSON']['output'];
/** Due date of the expense */
dueDate?: Maybe<Scalars['String']['output']>;
reportingDate: Scalars['JSON']['output'];
documentType: Scalars['JSON']['output'];
number: Scalars['JSON']['output'];
/** Description for the expense */
description?: Maybe<Scalars['String']['output']>;
remarks?: Maybe<Scalars['String']['output']>;
supplier: Scalars['JSON']['output'];
accountingClassification: Scalars['JSON']['output'];
/** 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']>;
};
/** 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 Expense_Input = {
paymentType?: InputMaybe<mutation_addExpense_oneOf_0_allOf_0_paymentType_Input>;
currency: Scalars['JSON']['input'];
/** Currency rate relative to ILS */
currencyRate?: InputMaybe<Scalars['Float']['input']>;
vat: Scalars['JSON']['input'];
amount: Scalars['JSON']['input'];
date: Scalars['JSON']['input'];
/** Due date of the expense */
dueDate?: InputMaybe<Scalars['String']['input']>;
reportingDate: Scalars['JSON']['input'];
documentType: Scalars['JSON']['input'];
number: Scalars['JSON']['input'];
/** Description for the expense */
description?: InputMaybe<Scalars['String']['input']>;
remarks?: InputMaybe<Scalars['String']['input']>;
supplier: Scalars['JSON']['input'];
accountingClassification: Scalars['JSON']['input'];
/** Is the expense active or not */
active?: InputMaybe<Scalars['Boolean']['input']>;
/** Should we save the supplier or not (by setting this to true you are required to add a supplier) */
addRecipient?: InputMaybe<Scalars['Boolean']['input']>;
/** Should we save the accounting classification (by setting this to true you are required to add an accounting classification that contains title & irsCode) */
addAccountingClassification?: InputMaybe<Scalars['Boolean']['input']>;
};
type mutation_addExpense_oneOf_0_allOf_0_paymentType_Input = {
Boolean: Scalars['Boolean']['input'];
mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1?: never;
} | {
Boolean?: never;
mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1: mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1;
};
type addDocumentResponse = AddedDocument | ErrorResponse;
type AddedDocument = {
/** Document ID */
id: Scalars['String']['output'];
lang: DocumentLang;
/** Document tax number */
number: Scalars['String']['output'];
/** Digital sign the document */
signed: Scalars['Boolean']['output'];
url: Url;
};
type updateExpenseResponse = GetExpense | ErrorResponse;
type updateExpenseRequest_Input = {
/** The expense ID */
id: Scalars['String']['input'];
paymentType?: InputMaybe<mutationInput_updateExpense_input_paymentType_Input>;
currency?: InputMaybe<Currency>;
/** Currency rate relative to ILS */
currencyRate?: InputMaybe<Scalars['Float']['input']>;
/** VAT amount */
vat?: InputMaybe<Scalars['Float']['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<ExpenseDocumentType>;
/** Number of the expense */
number?: InputMaybe<Scalars['String']['input']>;
/** Description for the expense */
description?: InputMaybe<Scalars['String']['input']>;
remarks?: InputMaybe<Scalars['String']['input']>;
supplier?: InputMaybe<Supplier_Input>;
accountingClassification?: InputMaybe<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';
/** Supplier of the expense */
type Supplier_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<mutation_addExpense_oneOf_0_allOf_0_supplier_paymentTerms>;
/** The supplier bank name */
bankName?: InputMaybe<Scalars['String']['input']>;
/** The supplier bank branch number */
bankBranch?: InputMaybe<Scalars['String']['input']>;
/** The supplier bank account number */
bankAccount?: InputMaybe<Scalars['String']['input']>;
country?: InputMaybe<Country>;
/** The supplier phone number */
phone?: InputMaybe<Scalars['String']['input']>;
/** The supplier mobile number */
mobile?: InputMaybe<Scalars['String']['input']>;
/** The supplier contact person name */
contactPerson?: InputMaybe<Scalars['String']['input']>;
emails?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
labels?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
/** The creation date, in UNIX timestamp format */
creationDate?: InputMaybe<Scalars['Int']['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 address */
address?: InputMaybe<Scalars['String']['input']>;
/** The supplier city */
city?: InputMaybe<Scalars['String']['input']>;
/** The supplier zip code */
zip?: InputMaybe<Scalars['String']['input']>;
/** The supplier fax number */
fax?: 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 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<mutation_addExpense_oneOf_0_allOf_0_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 = GetExpenseDraft | generalErrorResponse;
type GetExpenseDraft = {
/** 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['Int']['output']>;
/** The last update date of the expense draft, in UNIX timestamp format */
lastUpdateDate?: Maybe<Scalars['Int']['output']>;
expense?: Maybe<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 ExpensePartial = {
paymentType?: Maybe<mutation_addExpense_oneOf_0_allOf_0_paymentType>;
currency?: Maybe<Currency>;
/** Currency rate relative to ILS */
currencyRate?: Maybe<Scalars['Float']['output']>;
/** VAT amount */
vat?: Maybe<Scalars['Float']['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<ExpenseDocumentType>;
/** Number of the expense */
number?: Maybe<Scalars['String']['output']>;
/** Description for the expense */
description?: Maybe<Scalars['String']['output']>;
remarks?: Maybe<Scalars['String']['output']>;
supplier?: Maybe<Supplier>;
accountingClassification?: Maybe<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 addExpenseDraftByFileRequest_Input = {
/** The file, in Base64, allowed types: GIF, PNG, JPG, SVG, PDF */
file?: InputMaybe<Scalars['String']['input']>;
};
type HTTPMethod = 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH';
type QuerySdk = {
/** undefined **/
previewDocument: InContextSdkMethod<query_previewDocument_oneOf_0 | ErrorResponse, QuerypreviewDocumentArgs, MeshContext>;
/** undefined **/
getExpense: InContextSdkMethod<Query['getExpense'], QuerygetExpenseArgs, MeshContext>;
/** undefined **/
searchExpenses: InContextSdkMethod<Query['searchExpenses'], QuerysearchExpensesArgs, MeshContext>;
/** undefined **/
searchDocuments: InContextSdkMethod<Query['searchDocuments'], QuerysearchDocumentsArgs, MeshContext>;
/** undefined **/
searchExpenseDrafts: InContextSdkMethod<searchExpenseDraftsResponse | generalErrorResponse, QuerysearchExpenseDraftsArgs, MeshContext>;
};
type MutationSdk = {
/** undefined **/
addExpense: InContextSdkMethod<Expense | ErrorResponse, MutationaddExpenseArgs, MeshContext>;
/** undefined **/
addDocument: InContextSdkMethod<AddedDocument | ErrorResponse, MutationaddDocumentArgs, MeshContext>;
/** undefined **/
updateExpense: InContextSdkMethod<GetExpense | ErrorResponse, MutationupdateExpenseArgs, MeshContext>;
/** undefined **/
addExpenseDraftByFile: InContextSdkMethod<GetExpenseDraft | generalErrorResponse, MutationaddExpenseDraftByFileArgs, MeshContext>;
};
type SubscriptionSdk = {};
type Context = {
["GreenInvoice"]: {
Query: QuerySdk;
Mutation: MutationSdk;
Subscription: SubscriptionSdk;
};
};
}