@accounter/green-invoice-graphql 0.8.2-alpha-20251102160658-6d41b0a7bb225382246645badf39a28bcd8102e1 → 0.8.2-alpha-20251102162844-adaba3b25910083f6ebd80bd580629e1c0871260
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/mesh-artifacts/index.js +428 -615
- package/cjs/mesh-artifacts/schema.graphql +799 -943
- package/cjs/mesh-artifacts/sources/GreenInvoice/schema.graphql +795 -937
- package/cjs/mesh-artifacts/sources/GreenInvoice/schemaWithAnnotations.js +9268 -11080
- package/cjs/mesh-artifacts/sources/GreenInvoiceNew/schema.graphql +8 -8
- package/cjs/mesh-artifacts/sources/GreenInvoiceNew/schemaWithAnnotations.js +8 -8
- package/esm/mesh-artifacts/index.js +427 -614
- package/esm/mesh-artifacts/schema.graphql +799 -943
- package/esm/mesh-artifacts/sources/GreenInvoice/schema.graphql +795 -937
- package/esm/mesh-artifacts/sources/GreenInvoice/schemaWithAnnotations.js +9268 -11080
- package/esm/mesh-artifacts/sources/GreenInvoiceNew/schema.graphql +8 -8
- package/esm/mesh-artifacts/sources/GreenInvoiceNew/schemaWithAnnotations.js +8 -8
- package/json-schemas/greenInvoice.json +827 -1035
- package/package.json +2 -2
- package/typings/mesh-artifacts/index.d.cts +1191 -1444
- package/typings/mesh-artifacts/index.d.ts +1191 -1444
- package/typings/mesh-artifacts/sources/GreenInvoice/types.d.cts +639 -776
- package/typings/mesh-artifacts/sources/GreenInvoice/types.d.ts +639 -776
- package/typings/mesh-artifacts/sources/GreenInvoiceNew/types.d.cts +8 -8
- package/typings/mesh-artifacts/sources/GreenInvoiceNew/types.d.ts +8 -8
|
@@ -48,436 +48,164 @@ export declare namespace GreenInvoiceTypes {
|
|
|
48
48
|
input: number;
|
|
49
49
|
output: number;
|
|
50
50
|
};
|
|
51
|
-
/** Floats that will have a value of 0 or more. */
|
|
52
|
-
NonNegativeFloat: {
|
|
53
|
-
input: number;
|
|
54
|
-
output: number;
|
|
55
|
-
};
|
|
56
51
|
/** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
|
|
57
52
|
JSON: {
|
|
58
53
|
input: any;
|
|
59
54
|
output: any;
|
|
60
55
|
};
|
|
61
|
-
/** 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. */
|
|
62
|
-
EmailAddress: {
|
|
63
|
-
input: string;
|
|
64
|
-
output: string;
|
|
65
|
-
};
|
|
66
|
-
/** A field whose value is a generic Universally Unique Identifier: https://en.wikipedia.org/wiki/Universally_unique_identifier. */
|
|
67
|
-
UUID: {
|
|
68
|
-
input: string;
|
|
69
|
-
output: string;
|
|
70
|
-
};
|
|
71
|
-
/** A string that cannot be passed as an empty value */
|
|
72
|
-
NonEmptyString: {
|
|
73
|
-
input: string;
|
|
74
|
-
output: string;
|
|
75
|
-
};
|
|
76
|
-
/** Integers that will have a value of 0 or more. */
|
|
77
|
-
NonNegativeInt: {
|
|
78
|
-
input: number;
|
|
79
|
-
output: number;
|
|
80
|
-
};
|
|
81
|
-
/** Represents date values */
|
|
82
|
-
Date: {
|
|
83
|
-
input: string;
|
|
84
|
-
output: string;
|
|
85
|
-
};
|
|
86
|
-
/** Floats that will have a value greater than 0. */
|
|
87
|
-
PositiveFloat: {
|
|
88
|
-
input: number;
|
|
89
|
-
output: number;
|
|
90
|
-
};
|
|
91
|
-
/** Integers that will have a value greater than 0. */
|
|
92
|
-
PositiveInt: {
|
|
93
|
-
input: number;
|
|
94
|
-
output: number;
|
|
95
|
-
};
|
|
96
56
|
ObjMap: {
|
|
97
57
|
input: any;
|
|
98
58
|
output: any;
|
|
99
59
|
};
|
|
100
60
|
};
|
|
101
61
|
type Query = {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
getExpense?: Maybe<_DOLLAR_defs_GetExpense>;
|
|
107
|
-
searchExpenses?: Maybe<_DOLLAR_defs_searchExpensesResponse>;
|
|
62
|
+
previewDocument?: Maybe<previewDocumentResponse>;
|
|
63
|
+
getExpense?: Maybe<GetExpense>;
|
|
64
|
+
searchExpenses?: Maybe<searchExpensesResponse>;
|
|
65
|
+
searchDocuments?: Maybe<searchDocumentsResponse>;
|
|
108
66
|
searchExpenseDrafts?: Maybe<searchExpenseDrafts_response>;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
id: Scalars['String']['input'];
|
|
113
|
-
};
|
|
114
|
-
type QuerysearchDocumentsArgs = {
|
|
115
|
-
input?: InputMaybe<_DOLLAR_defs_searchDocumentsRequest_Input>;
|
|
67
|
+
getDocument?: Maybe<Document>;
|
|
68
|
+
getLinkedDocuments?: Maybe<GetLinkedDocuments>;
|
|
69
|
+
getClient?: Maybe<getClientResponse>;
|
|
116
70
|
};
|
|
117
71
|
type QuerypreviewDocumentArgs = {
|
|
118
|
-
input?: InputMaybe<
|
|
119
|
-
};
|
|
120
|
-
type QuerygetLinkedDocumentsArgs = {
|
|
121
|
-
id: Scalars['String']['input'];
|
|
72
|
+
input?: InputMaybe<DocumentInputNew_Input>;
|
|
122
73
|
};
|
|
123
74
|
type QuerygetExpenseArgs = {
|
|
124
75
|
id: Scalars['String']['input'];
|
|
125
76
|
};
|
|
126
77
|
type QuerysearchExpensesArgs = {
|
|
127
|
-
input?: InputMaybe<
|
|
78
|
+
input?: InputMaybe<searchExpensesRequest_Input>;
|
|
79
|
+
};
|
|
80
|
+
type QuerysearchDocumentsArgs = {
|
|
81
|
+
input?: InputMaybe<searchDocumentsRequest_Input>;
|
|
128
82
|
};
|
|
129
83
|
type QuerysearchExpenseDraftsArgs = {
|
|
130
|
-
input?: InputMaybe<
|
|
84
|
+
input?: InputMaybe<searchExpenseDraftsRequest_Input>;
|
|
131
85
|
};
|
|
132
|
-
type
|
|
86
|
+
type QuerygetDocumentArgs = {
|
|
133
87
|
id: Scalars['String']['input'];
|
|
134
88
|
};
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
/** Total amount, in requested currency (including the VAT, Discount & Rounding) */
|
|
138
|
-
amount: Scalars['NonNegativeFloat']['output'];
|
|
139
|
-
/** Amount due VAT - Amount before VAT, and before rounding & discount (if requested) */
|
|
140
|
-
amountDueVat: Scalars['NonNegativeFloat']['output'];
|
|
141
|
-
/** Amount due VAT - local currency */
|
|
142
|
-
amountDueVatLocal: Scalars['NonNegativeFloat']['output'];
|
|
143
|
-
/** Amount excluded VAT - Amount that is excluded of VAT */
|
|
144
|
-
amountExcludeVat: Scalars['NonNegativeFloat']['output'];
|
|
145
|
-
/** 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) */
|
|
146
|
-
amountExemptVat: Scalars['NonNegativeFloat']['output'];
|
|
147
|
-
/** Amount in local currency */
|
|
148
|
-
amountLocal: Scalars['NonNegativeFloat']['output'];
|
|
149
|
-
/** Amount that is still left to be paid, exists only in payment request documents */
|
|
150
|
-
amountOpened: Scalars['NonNegativeFloat']['output'];
|
|
151
|
-
business: _DOLLAR_defs_Business;
|
|
152
|
-
calculatedAmountLocal: Scalars['Float']['output'];
|
|
153
|
-
calculatedAmountOpenedLocal: Scalars['Float']['output'];
|
|
154
|
-
calculatedIncomeAmountExcludeLocal: Scalars['Float']['output'];
|
|
155
|
-
calculatedIncomeAmountLocal: Scalars['Float']['output'];
|
|
156
|
-
calculatedPaymentAmountLocal: Scalars['Float']['output'];
|
|
157
|
-
cancellable: Scalars['Boolean']['output'];
|
|
158
|
-
cancelType?: Maybe<Scalars['Float']['output']>;
|
|
159
|
-
client: query_getDocument_client;
|
|
160
|
-
/** The creation date, in UNIX timestamp format */
|
|
161
|
-
creationDate: Scalars['NonNegativeInt']['output'];
|
|
162
|
-
currency: _DOLLAR_defs_Currency;
|
|
163
|
-
/** Currency rate relative to ILS */
|
|
164
|
-
currencyRate: Scalars['NonNegativeFloat']['output'];
|
|
165
|
-
data: _DOLLAR_defs_DocumentData;
|
|
166
|
-
/** Document's description */
|
|
167
|
-
description: Scalars['NonEmptyString']['output'];
|
|
168
|
-
/** Document reference date */
|
|
169
|
-
documentDate: Scalars['Date']['output'];
|
|
170
|
-
downloaded: Scalars['Boolean']['output'];
|
|
171
|
-
/** Texts appearing in footer */
|
|
172
|
-
footer?: Maybe<Scalars['String']['output']>;
|
|
173
|
-
/** Document ID */
|
|
174
|
-
id: Scalars['String']['output'];
|
|
175
|
-
income: Array<Maybe<_DOLLAR_defs_Income>>;
|
|
176
|
-
lang: _DOLLAR_defs_DocumentLang;
|
|
177
|
-
linkedDocuments?: Maybe<Array<Maybe<_DOLLAR_defs_DocumentLinkedDocument>>>;
|
|
178
|
-
/** Document tax number */
|
|
179
|
-
number: Scalars['String']['output'];
|
|
180
|
-
payment: Array<Maybe<_DOLLAR_defs_PaymentDocument>>;
|
|
181
|
-
ref: Array<Maybe<Scalars['Float']['output']>>;
|
|
182
|
-
remarks?: Maybe<Scalars['String']['output']>;
|
|
183
|
-
reverseCharge: Scalars['Boolean']['output'];
|
|
184
|
-
/** Round the amounts */
|
|
185
|
-
rounding: Scalars['Boolean']['output'];
|
|
186
|
-
/** Digital sign the document */
|
|
187
|
-
signed: Scalars['Boolean']['output'];
|
|
188
|
-
skinId: Scalars['Float']['output'];
|
|
189
|
-
/** Document status */
|
|
190
|
-
status: Scalars['Float']['output'];
|
|
191
|
-
taxConfirmationEligible: Scalars['Boolean']['output'];
|
|
192
|
-
templateId: Scalars['Float']['output'];
|
|
193
|
-
type: _DOLLAR_defs_DocumentType;
|
|
194
|
-
url: _DOLLAR_defs_Url;
|
|
195
|
-
userName?: Maybe<Scalars['String']['output']>;
|
|
196
|
-
/** VAT amount */
|
|
197
|
-
vat: Scalars['NonNegativeFloat']['output'];
|
|
198
|
-
vatLocal?: Maybe<Scalars['Float']['output']>;
|
|
199
|
-
/** VAT rate */
|
|
200
|
-
vatRate: Scalars['NonNegativeFloat']['output'];
|
|
201
|
-
vatType: _DOLLAR_defs_VatType;
|
|
202
|
-
};
|
|
203
|
-
type _DOLLAR_defs_Business = {
|
|
204
|
-
accountantDocsEmailSettings: Scalars['Float']['output'];
|
|
205
|
-
accountantEmails: Array<Maybe<Scalars['JSON']['output']>>;
|
|
206
|
-
accountantReportEmailSettings: Scalars['Float']['output'];
|
|
207
|
-
accountingType: Scalars['Float']['output'];
|
|
208
|
-
active: Scalars['Boolean']['output'];
|
|
209
|
-
advanceNationalInsuranceRate: Scalars['Float']['output'];
|
|
210
|
-
advanceTaxRate: Scalars['Float']['output'];
|
|
211
|
-
bankDisplay: Scalars['Boolean']['output'];
|
|
212
|
-
bankDisplayEn: Scalars['Boolean']['output'];
|
|
213
|
-
deductionRate: Scalars['Float']['output'];
|
|
214
|
-
documentsEmailSettings: Scalars['Float']['output'];
|
|
215
|
-
emailSubjectType: Scalars['Float']['output'];
|
|
216
|
-
/** Is the business exemption free or not */
|
|
217
|
-
exemption: Scalars['Boolean']['output'];
|
|
218
|
-
incomeReportEmailSettings: Scalars['Float']['output'];
|
|
219
|
-
incomeReportFormatType: Scalars['Float']['output'];
|
|
220
|
-
reportSendingDay: Scalars['Float']['output'];
|
|
221
|
-
senderEmailSettings: Scalars['Float']['output'];
|
|
222
|
-
type: query_getDocument_business_type;
|
|
223
|
-
};
|
|
224
|
-
/** The business type ID */
|
|
225
|
-
type query_getDocument_business_type = '_1' | '_2' | '_3' | '_4' | '_5' | '_6';
|
|
226
|
-
type query_getDocument_client = {
|
|
227
|
-
country?: Maybe<_DOLLAR_defs_Country>;
|
|
228
|
-
/** List of email addresses */
|
|
229
|
-
emails?: Maybe<Array<Maybe<Scalars['EmailAddress']['output']>>>;
|
|
230
|
-
/** The client ID */
|
|
231
|
-
id?: Maybe<Scalars['UUID']['output']>;
|
|
232
|
-
/** The client name */
|
|
233
|
-
name?: Maybe<Scalars['NonEmptyString']['output']>;
|
|
234
|
-
phone?: Maybe<Scalars['String']['output']>;
|
|
235
|
-
/** The client tax ID */
|
|
236
|
-
taxId?: Maybe<Scalars['String']['output']>;
|
|
237
|
-
/** Whether the client is self */
|
|
238
|
-
self?: Maybe<Scalars['Boolean']['output']>;
|
|
239
|
-
/** Client address */
|
|
240
|
-
address?: Maybe<Scalars['String']['output']>;
|
|
241
|
-
/** Client city */
|
|
242
|
-
city?: Maybe<Scalars['String']['output']>;
|
|
243
|
-
/** Client zip code */
|
|
244
|
-
zip?: Maybe<Scalars['String']['output']>;
|
|
245
|
-
/** Client fax */
|
|
246
|
-
fax?: Maybe<Scalars['String']['output']>;
|
|
247
|
-
/** The client mobile number */
|
|
248
|
-
mobile?: Maybe<Scalars['String']['output']>;
|
|
249
|
-
/** Add a temporary client to the clients' list */
|
|
250
|
-
add?: Maybe<Scalars['Boolean']['output']>;
|
|
251
|
-
JSON?: Maybe<Scalars['JSON']['output']>;
|
|
252
|
-
};
|
|
253
|
-
/** 2-letter ISO supplier country code, default is IL */
|
|
254
|
-
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';
|
|
255
|
-
/** 3-letter ISO item currency code */
|
|
256
|
-
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';
|
|
257
|
-
type _DOLLAR_defs_DocumentData = {
|
|
258
|
-
/** TODO: implement */
|
|
259
|
-
tags?: Maybe<Array<Maybe<Scalars['JSON']['output']>>>;
|
|
260
|
-
};
|
|
261
|
-
type _DOLLAR_defs_Income = {
|
|
262
|
-
/** Amount */
|
|
263
|
-
amount?: Maybe<Scalars['NonNegativeFloat']['output']>;
|
|
264
|
-
/** Total amount */
|
|
265
|
-
amountTotal?: Maybe<Scalars['NonNegativeFloat']['output']>;
|
|
266
|
-
/** Catalog number */
|
|
267
|
-
catalogNum?: Maybe<Scalars['String']['output']>;
|
|
268
|
-
currency: _DOLLAR_defs_Currency;
|
|
269
|
-
/** Currency rate relative to ILS */
|
|
270
|
-
currencyRate?: Maybe<Scalars['NonNegativeFloat']['output']>;
|
|
271
|
-
/** Item description */
|
|
272
|
-
description: Scalars['NonEmptyString']['output'];
|
|
273
|
-
/** The ID of the item to attach as income */
|
|
274
|
-
itemId?: Maybe<Scalars['String']['output']>;
|
|
275
|
-
/** Item price */
|
|
276
|
-
price: Scalars['NonNegativeFloat']['output'];
|
|
277
|
-
/** Quantity */
|
|
278
|
-
quantity: Scalars['NonNegativeFloat']['output'];
|
|
279
|
-
/** VAT amount */
|
|
280
|
-
vat?: Maybe<Scalars['NonNegativeFloat']['output']>;
|
|
281
|
-
/** VAT rate */
|
|
282
|
-
vatRate?: Maybe<Scalars['NonNegativeFloat']['output']>;
|
|
283
|
-
vatType: _DOLLAR_defs_VatType;
|
|
284
|
-
};
|
|
285
|
-
/** VAT type */
|
|
286
|
-
type _DOLLAR_defs_VatType = '_0' | '_1' | '_2';
|
|
287
|
-
/** Document language */
|
|
288
|
-
type _DOLLAR_defs_DocumentLang = 'en' | 'he';
|
|
289
|
-
/** A Linked Document */
|
|
290
|
-
type _DOLLAR_defs_DocumentLinkedDocument = {
|
|
291
|
-
/** Total amount, in requested currency (including the VAT, Discount & Rounding) */
|
|
292
|
-
amount: Scalars['NonNegativeFloat']['output'];
|
|
293
|
-
currency: _DOLLAR_defs_Currency;
|
|
294
|
-
/** Currency rate relative to ILS */
|
|
295
|
-
currencyRate: Scalars['NonNegativeFloat']['output'];
|
|
296
|
-
/** Document reference date */
|
|
297
|
-
documentDate: Scalars['Date']['output'];
|
|
298
|
-
/** Document ID */
|
|
299
|
-
id: Scalars['String']['output'];
|
|
300
|
-
/** Document tax number */
|
|
301
|
-
number: Scalars['String']['output'];
|
|
302
|
-
reverseCharge: Scalars['Boolean']['output'];
|
|
303
|
-
type: _DOLLAR_defs_DocumentType;
|
|
304
|
-
};
|
|
305
|
-
/** Document type */
|
|
306
|
-
type _DOLLAR_defs_DocumentType = '_10' | '_100' | '_200' | '_210' | '_300' | '_305' | '_320' | '_330' | '_400' | '_405' | '_500' | '_600' | '_610';
|
|
307
|
-
type _DOLLAR_defs_PaymentDocument = {
|
|
308
|
-
currency: _DOLLAR_defs_Currency;
|
|
309
|
-
/** Currency rate relative to ILS */
|
|
310
|
-
currencyRate?: Maybe<Scalars['NonNegativeFloat']['output']>;
|
|
311
|
-
date?: Maybe<Scalars['String']['output']>;
|
|
312
|
-
/** Sum paid */
|
|
313
|
-
price: Scalars['Float']['output'];
|
|
314
|
-
type: query_getDocument_payment_items_type;
|
|
315
|
-
subType?: Maybe<query_getDocument_payment_items_subType>;
|
|
316
|
-
/** Bank name (required when using Cheques) */
|
|
317
|
-
bankName?: Maybe<Scalars['String']['output']>;
|
|
318
|
-
/** Bank branch number (required when using Cheques) */
|
|
319
|
-
bankBranch?: Maybe<Scalars['String']['output']>;
|
|
320
|
-
/** Bank account number (required when using Cheques) */
|
|
321
|
-
bankAccount?: Maybe<Scalars['String']['output']>;
|
|
322
|
-
/** Cheque number (required when using Cheques) */
|
|
323
|
-
chequeNum?: Maybe<Scalars['String']['output']>;
|
|
324
|
-
/** Payer account (PayPal / Payment App / Other) */
|
|
325
|
-
accountId?: Maybe<Scalars['String']['output']>;
|
|
326
|
-
/** Transaction ID (PayPal / Payment App / Other) */
|
|
327
|
-
transactionId?: Maybe<Scalars['String']['output']>;
|
|
328
|
-
appType?: Maybe<query_getDocument_payment_items_appType>;
|
|
329
|
-
cardType?: Maybe<query_getDocument_payment_items_cardType>;
|
|
330
|
-
/** Credit card's last 4 digits */
|
|
331
|
-
cardNum?: Maybe<Scalars['String']['output']>;
|
|
332
|
-
dealType?: Maybe<query_getDocument_payment_items_dealType>;
|
|
333
|
-
/** Credit card's payments count (1-36) */
|
|
334
|
-
numPayments?: Maybe<Scalars['Int']['output']>;
|
|
335
|
-
/** Credit card's first payment */
|
|
336
|
-
firstPayment?: Maybe<Scalars['Float']['output']>;
|
|
337
|
-
};
|
|
338
|
-
/** Payment method */
|
|
339
|
-
type query_getDocument_payment_items_type = 'NEGATIVE_1' | '_0' | '_1' | '_2' | '_3' | '_4' | '_5' | '_9' | '_10' | '_11';
|
|
340
|
-
/** Other payment sub type (required when using 'other' as a Payment type) */
|
|
341
|
-
type query_getDocument_payment_items_subType = '_1' | '_2' | '_3' | '_4' | '_5' | '_6' | '_7' | '_8';
|
|
342
|
-
/** Payment app type (required when using 'payment app' as a Payment type) */
|
|
343
|
-
type query_getDocument_payment_items_appType = '_1' | '_2' | '_3' | '_4' | '_5' | '_6';
|
|
344
|
-
/** Credit card type */
|
|
345
|
-
type query_getDocument_payment_items_cardType = '_1' | '_2' | '_3' | '_4' | '_5';
|
|
346
|
-
/** Credit card deal type */
|
|
347
|
-
type query_getDocument_payment_items_dealType = '_1' | '_2' | '_3' | '_4' | '_5' | '_6';
|
|
348
|
-
type _DOLLAR_defs_Url = {
|
|
349
|
-
/** Copy in Hebrew */
|
|
350
|
-
he: Scalars['String']['output'];
|
|
351
|
-
/** Copy in English */
|
|
352
|
-
en?: Maybe<Scalars['String']['output']>;
|
|
353
|
-
/** Origin */
|
|
354
|
-
origin: Scalars['String']['output'];
|
|
89
|
+
type QuerygetLinkedDocumentsArgs = {
|
|
90
|
+
id: Scalars['String']['input'];
|
|
355
91
|
};
|
|
356
|
-
type
|
|
357
|
-
|
|
358
|
-
total: Scalars['NonNegativeFloat']['output'];
|
|
359
|
-
/** Current page number */
|
|
360
|
-
page: Scalars['PositiveFloat']['output'];
|
|
361
|
-
/** Number of items per page */
|
|
362
|
-
pageSize: Scalars['PositiveFloat']['output'];
|
|
363
|
-
/** Total number of pages */
|
|
364
|
-
pages: Scalars['NonNegativeFloat']['output'];
|
|
365
|
-
/** Starting index */
|
|
366
|
-
from?: Maybe<Scalars['NonNegativeFloat']['output']>;
|
|
367
|
-
/** Ending index */
|
|
368
|
-
to?: Maybe<Scalars['NonNegativeFloat']['output']>;
|
|
369
|
-
items: Array<Maybe<_DOLLAR_defs_Document>>;
|
|
370
|
-
};
|
|
371
|
-
type _DOLLAR_defs_searchDocumentsRequest_Input = {
|
|
372
|
-
/** Page requested */
|
|
373
|
-
page?: InputMaybe<Scalars['Float']['input']>;
|
|
374
|
-
/** Results per page */
|
|
375
|
-
pageSize?: InputMaybe<Scalars['Float']['input']>;
|
|
376
|
-
/** Document tax number */
|
|
377
|
-
number?: InputMaybe<Scalars['String']['input']>;
|
|
378
|
-
/** Document type */
|
|
379
|
-
type?: InputMaybe<Array<InputMaybe<_DOLLAR_defs_DocumentType>>>;
|
|
380
|
-
/** Document status */
|
|
381
|
-
status?: InputMaybe<Array<InputMaybe<queryInput_searchDocuments_input_status_items>>>;
|
|
382
|
-
/** Payment types used in this document */
|
|
383
|
-
paymentTypes?: InputMaybe<Array<InputMaybe<queryInput_searchDocuments_input_paymentTypes_items>>>;
|
|
384
|
-
/** Documents that were created after the specified date in the format YYYY-MM-DD */
|
|
385
|
-
fromDate?: InputMaybe<Scalars['Date']['input']>;
|
|
386
|
-
/** Documents that were created until the specified date in the format YYYY-MM-DD */
|
|
387
|
-
toDate?: InputMaybe<Scalars['Date']['input']>;
|
|
388
|
-
/** Client ID */
|
|
389
|
-
clientId?: InputMaybe<Scalars['String']['input']>;
|
|
390
|
-
/** Client name */
|
|
391
|
-
clientName?: InputMaybe<Scalars['String']['input']>;
|
|
392
|
-
/** Document description */
|
|
393
|
-
description?: InputMaybe<Scalars['String']['input']>;
|
|
394
|
-
/** Whether document was downloaded by client */
|
|
395
|
-
download?: InputMaybe<Scalars['Boolean']['input']>;
|
|
396
|
-
sort?: InputMaybe<queryInput_searchDocuments_input_sort>;
|
|
92
|
+
type QuerygetClientArgs = {
|
|
93
|
+
id: Scalars['String']['input'];
|
|
397
94
|
};
|
|
398
|
-
type
|
|
399
|
-
type queryInput_searchDocuments_input_paymentTypes_items = 'NEGATIVE_1' | '_0' | '_1' | '_2' | '_3' | '_4' | '_5' | '_10' | '_11';
|
|
400
|
-
type queryInput_searchDocuments_input_sort = 'documentDate' | 'creationDate';
|
|
401
|
-
type _DOLLAR_defs_previewDocumentResponse = query_previewDocument_oneOf_0 | _DOLLAR_defs_ErrorResponse;
|
|
95
|
+
type previewDocumentResponse = query_previewDocument_oneOf_0 | ErrorResponse;
|
|
402
96
|
type query_previewDocument_oneOf_0 = {
|
|
403
97
|
/** Preview document file in Base64 */
|
|
404
98
|
file: Scalars['String']['output'];
|
|
405
99
|
};
|
|
406
100
|
/** Error */
|
|
407
|
-
type
|
|
101
|
+
type ErrorResponse = {
|
|
408
102
|
errorCode?: Maybe<Scalars['Float']['output']>;
|
|
409
103
|
errorMessage?: Maybe<Scalars['String']['output']>;
|
|
410
104
|
};
|
|
411
|
-
type
|
|
105
|
+
type DocumentInputNew_Input = {
|
|
412
106
|
/** Document's description */
|
|
413
|
-
description?: InputMaybe<Scalars['
|
|
107
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
414
108
|
remarks?: InputMaybe<Scalars['String']['input']>;
|
|
415
109
|
/** Texts appearing in footer */
|
|
416
110
|
footer?: InputMaybe<Scalars['String']['input']>;
|
|
417
|
-
type:
|
|
111
|
+
type: DocumentType;
|
|
418
112
|
/** Document date in the format YYYY-MM-DD */
|
|
419
113
|
date?: InputMaybe<Scalars['String']['input']>;
|
|
420
114
|
/** Document payment due date in the format YYYY-MM-DD */
|
|
421
115
|
dueDate?: InputMaybe<Scalars['String']['input']>;
|
|
422
|
-
lang:
|
|
423
|
-
currency:
|
|
424
|
-
vatType:
|
|
425
|
-
discount?: InputMaybe<
|
|
116
|
+
lang: DocumentLang;
|
|
117
|
+
currency: Currency;
|
|
118
|
+
vatType: VatType;
|
|
119
|
+
discount?: InputMaybe<DocumentDiscount_Input>;
|
|
426
120
|
/** Round the amounts */
|
|
427
121
|
rounding?: InputMaybe<Scalars['Boolean']['input']>;
|
|
428
122
|
/** Digital sign the document */
|
|
429
123
|
signed?: InputMaybe<Scalars['Boolean']['input']>;
|
|
430
124
|
/** Max payments allowed (valid only on supported accounts) */
|
|
431
125
|
maxPayments?: InputMaybe<Scalars['Int']['input']>;
|
|
432
|
-
client?: InputMaybe<
|
|
433
|
-
income?: InputMaybe<Array<InputMaybe<
|
|
434
|
-
payment?: InputMaybe<Array<InputMaybe<
|
|
126
|
+
client?: InputMaybe<mutationInput_addDocument_input_allOf_0_client_Input>;
|
|
127
|
+
income?: InputMaybe<Array<InputMaybe<Income_Input>>>;
|
|
128
|
+
payment?: InputMaybe<Array<InputMaybe<PaymentDocument_Input>>>;
|
|
435
129
|
/** 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. */
|
|
436
130
|
linkedDocumentIds?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
437
131
|
/** 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). */
|
|
438
132
|
linkedPaymentId?: InputMaybe<Scalars['String']['input']>;
|
|
439
|
-
linkType?: InputMaybe<
|
|
133
|
+
linkType?: InputMaybe<mutationInput_addDocument_input_allOf_0_linkType>;
|
|
440
134
|
};
|
|
135
|
+
/** Document type */
|
|
136
|
+
type DocumentType = '_10' | '_100' | '_200' | '_210' | '_300' | '_305' | '_320' | '_330' | '_400' | '_405' | '_500' | '_600' | '_610';
|
|
137
|
+
/** Document language */
|
|
138
|
+
type DocumentLang = 'en' | 'he';
|
|
139
|
+
/** 3-letter ISO item currency code */
|
|
140
|
+
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';
|
|
141
|
+
/** VAT type */
|
|
142
|
+
type VatType = '_0' | '_1' | '_2';
|
|
441
143
|
/** Discount information */
|
|
442
|
-
type
|
|
144
|
+
type DocumentDiscount_Input = {
|
|
443
145
|
amount: Scalars['Float']['input'];
|
|
444
|
-
type:
|
|
146
|
+
type: mutationInput_addDocument_input_allOf_0_discount_type;
|
|
445
147
|
};
|
|
446
148
|
/** Discount amount type */
|
|
447
|
-
type
|
|
448
|
-
type
|
|
149
|
+
type mutationInput_addDocument_input_allOf_0_discount_type = 'sum' | 'percentage';
|
|
150
|
+
type mutationInput_addDocument_input_allOf_0_client_Input = {
|
|
151
|
+
country?: InputMaybe<Country>;
|
|
152
|
+
emails?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
153
|
+
id: Scalars['JSON']['input'];
|
|
154
|
+
/** The client name */
|
|
155
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
156
|
+
phone?: InputMaybe<Scalars['String']['input']>;
|
|
157
|
+
/** The client tax ID */
|
|
158
|
+
taxId?: InputMaybe<Scalars['String']['input']>;
|
|
159
|
+
/** Whether the client is self */
|
|
160
|
+
self?: InputMaybe<Scalars['Boolean']['input']>;
|
|
161
|
+
/** Client address */
|
|
162
|
+
address?: InputMaybe<Scalars['String']['input']>;
|
|
163
|
+
/** Client city */
|
|
164
|
+
city?: InputMaybe<Scalars['String']['input']>;
|
|
165
|
+
/** Client zip code */
|
|
166
|
+
zip?: InputMaybe<Scalars['String']['input']>;
|
|
167
|
+
/** Client fax */
|
|
168
|
+
fax?: InputMaybe<Scalars['String']['input']>;
|
|
169
|
+
/** The client mobile number */
|
|
170
|
+
mobile?: InputMaybe<Scalars['String']['input']>;
|
|
171
|
+
/** Add a temporary client to the clients' list */
|
|
172
|
+
add?: InputMaybe<Scalars['Boolean']['input']>;
|
|
173
|
+
};
|
|
174
|
+
/** 2-letter ISO supplier country code, default is IL */
|
|
175
|
+
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';
|
|
176
|
+
type Income_Input = {
|
|
449
177
|
/** Amount */
|
|
450
|
-
amount?: InputMaybe<Scalars['
|
|
178
|
+
amount?: InputMaybe<Scalars['Float']['input']>;
|
|
451
179
|
/** Total amount */
|
|
452
|
-
amountTotal?: InputMaybe<Scalars['
|
|
180
|
+
amountTotal?: InputMaybe<Scalars['Float']['input']>;
|
|
453
181
|
/** Catalog number */
|
|
454
182
|
catalogNum?: InputMaybe<Scalars['String']['input']>;
|
|
455
|
-
currency:
|
|
183
|
+
currency: Currency;
|
|
456
184
|
/** Currency rate relative to ILS */
|
|
457
|
-
currencyRate?: InputMaybe<Scalars['
|
|
185
|
+
currencyRate?: InputMaybe<Scalars['Float']['input']>;
|
|
458
186
|
/** Item description */
|
|
459
|
-
description: Scalars['
|
|
187
|
+
description: Scalars['String']['input'];
|
|
460
188
|
/** The ID of the item to attach as income */
|
|
461
189
|
itemId?: InputMaybe<Scalars['String']['input']>;
|
|
462
190
|
/** Item price */
|
|
463
|
-
price: Scalars['
|
|
191
|
+
price: Scalars['Float']['input'];
|
|
464
192
|
/** Quantity */
|
|
465
|
-
quantity: Scalars['
|
|
193
|
+
quantity: Scalars['Float']['input'];
|
|
466
194
|
/** VAT amount */
|
|
467
|
-
vat?: InputMaybe<Scalars['
|
|
195
|
+
vat?: InputMaybe<Scalars['Float']['input']>;
|
|
468
196
|
/** VAT rate */
|
|
469
|
-
vatRate?: InputMaybe<Scalars['
|
|
470
|
-
vatType:
|
|
197
|
+
vatRate?: InputMaybe<Scalars['Float']['input']>;
|
|
198
|
+
vatType: VatType;
|
|
471
199
|
};
|
|
472
|
-
type
|
|
473
|
-
currency:
|
|
200
|
+
type PaymentDocument_Input = {
|
|
201
|
+
currency: Currency;
|
|
474
202
|
/** Currency rate relative to ILS */
|
|
475
|
-
currencyRate?: InputMaybe<Scalars['
|
|
203
|
+
currencyRate?: InputMaybe<Scalars['Float']['input']>;
|
|
476
204
|
date?: InputMaybe<Scalars['String']['input']>;
|
|
477
205
|
/** Sum paid */
|
|
478
206
|
price: Scalars['Float']['input'];
|
|
479
|
-
type:
|
|
480
|
-
subType?: InputMaybe<
|
|
207
|
+
type: mutationInput_addDocument_input_allOf_0_payment_items_type;
|
|
208
|
+
subType?: InputMaybe<mutationInput_addDocument_input_allOf_0_payment_items_subType>;
|
|
481
209
|
/** Bank name (required when using Cheques) */
|
|
482
210
|
bankName?: InputMaybe<Scalars['String']['input']>;
|
|
483
211
|
/** Bank branch number (required when using Cheques) */
|
|
@@ -490,49 +218,43 @@ export declare namespace GreenInvoiceTypes {
|
|
|
490
218
|
accountId?: InputMaybe<Scalars['String']['input']>;
|
|
491
219
|
/** Transaction ID (PayPal / Payment App / Other) */
|
|
492
220
|
transactionId?: InputMaybe<Scalars['String']['input']>;
|
|
493
|
-
appType?: InputMaybe<
|
|
494
|
-
cardType?: InputMaybe<
|
|
221
|
+
appType?: InputMaybe<mutationInput_addDocument_input_allOf_0_payment_items_appType>;
|
|
222
|
+
cardType?: InputMaybe<mutationInput_addDocument_input_allOf_0_payment_items_cardType>;
|
|
495
223
|
/** Credit card's last 4 digits */
|
|
496
224
|
cardNum?: InputMaybe<Scalars['String']['input']>;
|
|
497
|
-
dealType?: InputMaybe<
|
|
225
|
+
dealType?: InputMaybe<mutationInput_addDocument_input_allOf_0_payment_items_dealType>;
|
|
498
226
|
/** Credit card's payments count (1-36) */
|
|
499
227
|
numPayments?: InputMaybe<Scalars['Int']['input']>;
|
|
500
228
|
/** Credit card's first payment */
|
|
501
229
|
firstPayment?: InputMaybe<Scalars['Float']['input']>;
|
|
502
230
|
};
|
|
231
|
+
/** Payment method */
|
|
232
|
+
type mutationInput_addDocument_input_allOf_0_payment_items_type = 'NEGATIVE_1' | '_0' | '_1' | '_2' | '_3' | '_4' | '_5' | '_9' | '_10' | '_11';
|
|
233
|
+
/** Other payment sub type (required when using 'other' as a Payment type) */
|
|
234
|
+
type mutationInput_addDocument_input_allOf_0_payment_items_subType = '_1' | '_2' | '_3' | '_4' | '_5' | '_6' | '_7' | '_8';
|
|
235
|
+
/** Payment app type (required when using 'payment app' as a Payment type) */
|
|
236
|
+
type mutationInput_addDocument_input_allOf_0_payment_items_appType = '_1' | '_2' | '_3' | '_4' | '_5' | '_6';
|
|
237
|
+
/** Credit card type */
|
|
238
|
+
type mutationInput_addDocument_input_allOf_0_payment_items_cardType = '_1' | '_2' | '_3' | '_4' | '_5';
|
|
239
|
+
/** Credit card deal type */
|
|
240
|
+
type mutationInput_addDocument_input_allOf_0_payment_items_dealType = '_1' | '_2' | '_3' | '_4' | '_5' | '_6';
|
|
503
241
|
/** Reference type (applicable only when using linkedDocumentIds) */
|
|
504
|
-
type
|
|
505
|
-
type _DOLLAR_defs_GetLinkedDocuments = {
|
|
506
|
-
/** Total amount, in requested currency (including the VAT, Discount & Rounding) */
|
|
507
|
-
amount?: Maybe<Scalars['NonNegativeFloat']['output']>;
|
|
508
|
-
currency?: Maybe<_DOLLAR_defs_Currency>;
|
|
509
|
-
/** Currency rate relative to ILS */
|
|
510
|
-
currencyRate?: Maybe<Scalars['NonNegativeFloat']['output']>;
|
|
511
|
-
/** Document reference date */
|
|
512
|
-
documentDate?: Maybe<Scalars['Date']['output']>;
|
|
513
|
-
/** Document ID */
|
|
514
|
-
id?: Maybe<Scalars['String']['output']>;
|
|
515
|
-
/** Document tax number */
|
|
516
|
-
number?: Maybe<Scalars['String']['output']>;
|
|
517
|
-
/** Document status */
|
|
518
|
-
status?: Maybe<Scalars['Float']['output']>;
|
|
519
|
-
type?: Maybe<_DOLLAR_defs_DocumentType>;
|
|
520
|
-
};
|
|
242
|
+
type mutationInput_addDocument_input_allOf_0_linkType = 'LINK' | 'CANCEL';
|
|
521
243
|
/** A Single Expense */
|
|
522
|
-
type
|
|
244
|
+
type GetExpense = {
|
|
523
245
|
/** The amount excluding the vat */
|
|
524
246
|
amountExcludeVat?: Maybe<Scalars['Float']['output']>;
|
|
525
247
|
/** The expense ID */
|
|
526
248
|
id?: Maybe<Scalars['String']['output']>;
|
|
527
|
-
businessType?: Maybe<
|
|
528
|
-
documentType?: Maybe<
|
|
529
|
-
status?: Maybe<
|
|
530
|
-
paymentType?: Maybe<
|
|
531
|
-
currency?: Maybe<
|
|
249
|
+
businessType?: Maybe<mutation_updateExpense_oneOf_0_businessType>;
|
|
250
|
+
documentType?: Maybe<ExpenseDocumentType>;
|
|
251
|
+
status?: Maybe<mutation_updateExpense_oneOf_0_status>;
|
|
252
|
+
paymentType?: Maybe<mutation_updateExpense_oneOf_0_paymentType>;
|
|
253
|
+
currency?: Maybe<Currency>;
|
|
532
254
|
/** Currency rate relative to ILS */
|
|
533
|
-
currencyRate?: Maybe<Scalars['
|
|
255
|
+
currencyRate?: Maybe<Scalars['Float']['output']>;
|
|
534
256
|
/** VAT amount */
|
|
535
|
-
vat?: Maybe<Scalars['
|
|
257
|
+
vat?: Maybe<Scalars['Float']['output']>;
|
|
536
258
|
/** The total amount of the expense */
|
|
537
259
|
amount?: Maybe<Scalars['Float']['output']>;
|
|
538
260
|
/** Date of the expense */
|
|
@@ -547,7 +269,7 @@ export declare namespace GreenInvoiceTypes {
|
|
|
547
269
|
description?: Maybe<Scalars['String']['output']>;
|
|
548
270
|
/** Remarks for the expense */
|
|
549
271
|
remarks?: Maybe<Scalars['String']['output']>;
|
|
550
|
-
supplier?: Maybe<
|
|
272
|
+
supplier?: Maybe<Supplier>;
|
|
551
273
|
/** URL of expense thumbnail */
|
|
552
274
|
thumbnail?: Maybe<Scalars['String']['output']>;
|
|
553
275
|
/** URL to download the expense thumbnail */
|
|
@@ -556,7 +278,7 @@ export declare namespace GreenInvoiceTypes {
|
|
|
556
278
|
cancellable?: Maybe<Scalars['Boolean']['output']>;
|
|
557
279
|
/** Reporting date of the expense */
|
|
558
280
|
reportingDate?: Maybe<Scalars['String']['output']>;
|
|
559
|
-
accountingClassification?: Maybe<
|
|
281
|
+
accountingClassification?: Maybe<AccountingClassification>;
|
|
560
282
|
/** The local amount of the expense */
|
|
561
283
|
amountLocal?: Maybe<Scalars['Float']['output']>;
|
|
562
284
|
/** The amount of accounting */
|
|
@@ -564,42 +286,20 @@ export declare namespace GreenInvoiceTypes {
|
|
|
564
286
|
/** The vat amount of accounting */
|
|
565
287
|
vatAccounting?: Maybe<Scalars['Float']['output']>;
|
|
566
288
|
/** The creation date, in UNIX timestamp format */
|
|
567
|
-
creationDate?: Maybe<Scalars['
|
|
289
|
+
creationDate?: Maybe<Scalars['Int']['output']>;
|
|
568
290
|
/** The last update date of the expense, in UNIX timestamp format */
|
|
569
291
|
lastUpdateDate?: Maybe<Scalars['Int']['output']>;
|
|
570
292
|
};
|
|
571
293
|
/** The business type ID */
|
|
572
|
-
type
|
|
294
|
+
type mutation_updateExpense_oneOf_0_businessType = '_1' | '_2' | '_3' | '_4' | '_5' | '_6';
|
|
573
295
|
/** Document type */
|
|
574
|
-
type
|
|
296
|
+
type ExpenseDocumentType = '_20' | '_305' | '_320' | '_330' | '_400' | '_405';
|
|
575
297
|
/** The status of the expense */
|
|
576
|
-
type
|
|
298
|
+
type mutation_updateExpense_oneOf_0_status = '_10' | '_20' | '_30' | '_100';
|
|
577
299
|
/** Payment method */
|
|
578
|
-
type
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
phone?: Maybe<Scalars['String']['output']>;
|
|
582
|
-
/** Mobile number */
|
|
583
|
-
mobile?: Maybe<Scalars['String']['output']>;
|
|
584
|
-
/** Email addresses */
|
|
585
|
-
emails?: Maybe<Array<Maybe<Scalars['EmailAddress']['output']>>>;
|
|
586
|
-
/** Fax number */
|
|
587
|
-
fax?: Maybe<Scalars['String']['output']>;
|
|
588
|
-
/** Contact person name */
|
|
589
|
-
contactPerson?: Maybe<Scalars['String']['output']>;
|
|
590
|
-
/** Street address */
|
|
591
|
-
address?: Maybe<Scalars['String']['output']>;
|
|
592
|
-
/** City name */
|
|
593
|
-
city?: Maybe<Scalars['String']['output']>;
|
|
594
|
-
/** Zip/postal code */
|
|
595
|
-
zip?: Maybe<Scalars['String']['output']>;
|
|
596
|
-
country?: Maybe<_DOLLAR_defs_Country>;
|
|
597
|
-
/** Bank name */
|
|
598
|
-
bankName?: Maybe<Scalars['String']['output']>;
|
|
599
|
-
/** Bank branch number */
|
|
600
|
-
bankBranch?: Maybe<Scalars['String']['output']>;
|
|
601
|
-
/** Bank account number */
|
|
602
|
-
bankAccount?: Maybe<Scalars['String']['output']>;
|
|
300
|
+
type mutation_updateExpense_oneOf_0_paymentType = 'NEGATIVE_1' | '_0' | '_1' | '_2' | '_3' | '_4' | '_5' | '_10' | '_11';
|
|
301
|
+
/** Supplier of the expense */
|
|
302
|
+
type Supplier = {
|
|
603
303
|
/** The supplier ID */
|
|
604
304
|
id?: Maybe<Scalars['String']['output']>;
|
|
605
305
|
/** The supplier name */
|
|
@@ -608,16 +308,38 @@ export declare namespace GreenInvoiceTypes {
|
|
|
608
308
|
active?: Maybe<Scalars['Boolean']['output']>;
|
|
609
309
|
/** The supplier tax ID */
|
|
610
310
|
taxId?: Maybe<Scalars['String']['output']>;
|
|
611
|
-
paymentTerms?: Maybe<
|
|
311
|
+
paymentTerms?: Maybe<mutation_addExpense_oneOf_0_allOf_0_supplier_paymentTerms>;
|
|
312
|
+
/** The supplier bank name */
|
|
313
|
+
bankName?: Maybe<Scalars['String']['output']>;
|
|
314
|
+
/** The supplier bank branch number */
|
|
315
|
+
bankBranch?: Maybe<Scalars['String']['output']>;
|
|
316
|
+
/** The supplier bank account number */
|
|
317
|
+
bankAccount?: Maybe<Scalars['String']['output']>;
|
|
318
|
+
country?: Maybe<Country>;
|
|
319
|
+
/** The supplier phone number */
|
|
320
|
+
phone?: Maybe<Scalars['String']['output']>;
|
|
321
|
+
/** The supplier mobile number */
|
|
322
|
+
mobile?: Maybe<Scalars['String']['output']>;
|
|
323
|
+
/** The supplier contact person name */
|
|
324
|
+
contactPerson?: Maybe<Scalars['String']['output']>;
|
|
325
|
+
emails?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
612
326
|
labels?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
613
327
|
/** The creation date, in UNIX timestamp format */
|
|
614
|
-
creationDate?: Maybe<Scalars['
|
|
328
|
+
creationDate?: Maybe<Scalars['Int']['output']>;
|
|
615
329
|
/** The last update date of the supplier, in UNIX timestamp format */
|
|
616
330
|
lastUpdateDate?: Maybe<Scalars['Int']['output']>;
|
|
617
331
|
/** The supplier department */
|
|
618
332
|
department?: Maybe<Scalars['String']['output']>;
|
|
619
333
|
/** The supplier accounting key */
|
|
620
334
|
accountingKey?: Maybe<Scalars['String']['output']>;
|
|
335
|
+
/** The supplier address */
|
|
336
|
+
address?: Maybe<Scalars['String']['output']>;
|
|
337
|
+
/** The supplier city */
|
|
338
|
+
city?: Maybe<Scalars['String']['output']>;
|
|
339
|
+
/** The supplier zip code */
|
|
340
|
+
zip?: Maybe<Scalars['String']['output']>;
|
|
341
|
+
/** The supplier fax number */
|
|
342
|
+
fax?: Maybe<Scalars['String']['output']>;
|
|
621
343
|
/** The Supplier remarks for self use */
|
|
622
344
|
remarks?: Maybe<Scalars['String']['output']>;
|
|
623
345
|
/** The amount of incomes from the customer */
|
|
@@ -627,9 +349,9 @@ export declare namespace GreenInvoiceTypes {
|
|
|
627
349
|
balanceAmount?: Maybe<Scalars['Float']['output']>;
|
|
628
350
|
};
|
|
629
351
|
/** The supplier payment term, default is 0 */
|
|
630
|
-
type
|
|
352
|
+
type mutation_addExpense_oneOf_0_allOf_0_supplier_paymentTerms = 'NEGATIVE_1' | '_0' | '_10' | '_15' | '_30' | '_45' | '_60' | '_75' | '_90' | '_120';
|
|
631
353
|
/** Account classification of the expense */
|
|
632
|
-
type
|
|
354
|
+
type AccountingClassification = {
|
|
633
355
|
/** The classification ID, see 'Get Accounting Classifications' endpoint */
|
|
634
356
|
id?: Maybe<Scalars['String']['output']>;
|
|
635
357
|
/** The classification key */
|
|
@@ -638,7 +360,7 @@ export declare namespace GreenInvoiceTypes {
|
|
|
638
360
|
code?: Maybe<Scalars['String']['output']>;
|
|
639
361
|
/** The classification title */
|
|
640
362
|
title?: Maybe<Scalars['String']['output']>;
|
|
641
|
-
irsCode?: Maybe<
|
|
363
|
+
irsCode?: Maybe<mutation_addExpense_oneOf_0_allOf_0_accountingClassification_irsCode>;
|
|
642
364
|
/** The classification income */
|
|
643
365
|
income?: Maybe<Scalars['Float']['output']>;
|
|
644
366
|
/** The classification type */
|
|
@@ -646,92 +368,314 @@ export declare namespace GreenInvoiceTypes {
|
|
|
646
368
|
/** The classification VAT */
|
|
647
369
|
vat?: Maybe<Scalars['Float']['output']>;
|
|
648
370
|
};
|
|
649
|
-
/** The classification IRS code */
|
|
650
|
-
type
|
|
651
|
-
type
|
|
652
|
-
/**
|
|
653
|
-
total
|
|
654
|
-
/**
|
|
655
|
-
page
|
|
656
|
-
/**
|
|
657
|
-
pageSize
|
|
658
|
-
/**
|
|
659
|
-
pages
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
/**
|
|
371
|
+
/** The classification IRS code */
|
|
372
|
+
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';
|
|
373
|
+
type searchExpensesResponse = {
|
|
374
|
+
/** The total length of the items that were retrieved */
|
|
375
|
+
total?: Maybe<Scalars['Float']['output']>;
|
|
376
|
+
/** The page that was requested to retrieve */
|
|
377
|
+
page?: Maybe<Scalars['Float']['output']>;
|
|
378
|
+
/** The page size that was requested */
|
|
379
|
+
pageSize?: Maybe<Scalars['Float']['output']>;
|
|
380
|
+
/** The amount of pages that exist */
|
|
381
|
+
pages?: Maybe<Scalars['Float']['output']>;
|
|
382
|
+
items?: Maybe<GetExpense>;
|
|
383
|
+
};
|
|
384
|
+
type searchExpensesRequest_Input = {
|
|
385
|
+
/** Expense that were created after the specified date in the format YYYY-MM-DD */
|
|
386
|
+
fromDate?: InputMaybe<Scalars['String']['input']>;
|
|
387
|
+
/** Expense that were created until the specified date in the format YYYY-MM-DD */
|
|
388
|
+
toDate?: InputMaybe<Scalars['String']['input']>;
|
|
389
|
+
/** Due date of the expense, in the format YYYY-MM-DD */
|
|
390
|
+
dueDate?: InputMaybe<Scalars['String']['input']>;
|
|
391
|
+
/** Expense description */
|
|
392
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
393
|
+
/** Supplier's ID */
|
|
394
|
+
supplierId?: InputMaybe<Scalars['String']['input']>;
|
|
395
|
+
/** Supplier's name */
|
|
396
|
+
supplierName?: InputMaybe<Scalars['String']['input']>;
|
|
397
|
+
/** Expense serial number */
|
|
398
|
+
number?: InputMaybe<Scalars['String']['input']>;
|
|
399
|
+
/** Filter expenses that are only paid or unpaid, if not added to the request, will return both */
|
|
400
|
+
paid?: InputMaybe<Scalars['Boolean']['input']>;
|
|
401
|
+
/** Filter expenses that are only reported or unreported, if not added to the request, will return both */
|
|
402
|
+
reported?: InputMaybe<Scalars['Boolean']['input']>;
|
|
403
|
+
/** The field to sort the results by */
|
|
404
|
+
sort?: InputMaybe<Scalars['String']['input']>;
|
|
405
|
+
/** Min amount of the expense */
|
|
406
|
+
minAmount: Scalars['Float']['input'];
|
|
407
|
+
/** Max amount of the expense */
|
|
408
|
+
maxAmount: Scalars['Float']['input'];
|
|
409
|
+
/** Page requested */
|
|
410
|
+
page: Scalars['Float']['input'];
|
|
411
|
+
/** Results per page */
|
|
412
|
+
pageSize: Scalars['Float']['input'];
|
|
413
|
+
};
|
|
414
|
+
type searchDocumentsResponse = {
|
|
415
|
+
/** The total length of the items that were retrieved */
|
|
416
|
+
total: Scalars['Float']['output'];
|
|
417
|
+
/** The page that was requested to retrieve */
|
|
418
|
+
page: Scalars['Float']['output'];
|
|
419
|
+
/** The page size that was requested */
|
|
420
|
+
pageSize: Scalars['Float']['output'];
|
|
421
|
+
/** The amount of pages that exist */
|
|
422
|
+
pages: Scalars['Float']['output'];
|
|
423
|
+
items: Array<Maybe<Document>>;
|
|
424
|
+
};
|
|
425
|
+
/** A Single Document */
|
|
426
|
+
type Document = {
|
|
427
|
+
/** Total amount, in requested currency (including the VAT, Discount & Rounding) */
|
|
428
|
+
amount: Scalars['Float']['output'];
|
|
429
|
+
/** Amount due VAT - Amount before VAT, and before rounding & discount (if requested) */
|
|
430
|
+
amountDueVat: Scalars['Float']['output'];
|
|
431
|
+
/** Amount due VAT - local currency */
|
|
432
|
+
amountDueVatLocal: Scalars['Float']['output'];
|
|
433
|
+
/** Amount excluded VAT - Amount that is excluded of VAT */
|
|
434
|
+
amountExcludeVat: Scalars['Float']['output'];
|
|
435
|
+
/** 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) */
|
|
436
|
+
amountExemptVat: Scalars['Float']['output'];
|
|
437
|
+
/** Amount in local currency */
|
|
438
|
+
amountLocal: Scalars['Float']['output'];
|
|
439
|
+
/** Amount that is still left to be paid, exists only in payment request documents */
|
|
440
|
+
amountOpened: Scalars['Float']['output'];
|
|
441
|
+
business: Business;
|
|
442
|
+
calculatedAmountLocal: Scalars['Float']['output'];
|
|
443
|
+
calculatedAmountOpenedLocal: Scalars['Float']['output'];
|
|
444
|
+
calculatedIncomeAmountExcludeLocal: Scalars['Float']['output'];
|
|
445
|
+
calculatedIncomeAmountLocal: Scalars['Float']['output'];
|
|
446
|
+
calculatedPaymentAmountLocal: Scalars['Float']['output'];
|
|
447
|
+
cancellable: Scalars['Boolean']['output'];
|
|
448
|
+
cancelType?: Maybe<Scalars['Float']['output']>;
|
|
449
|
+
client: Client;
|
|
450
|
+
/** The creation date, in UNIX timestamp format */
|
|
451
|
+
creationDate: Scalars['Int']['output'];
|
|
452
|
+
currency: Currency;
|
|
453
|
+
/** Currency rate relative to ILS */
|
|
454
|
+
currencyRate: Scalars['Float']['output'];
|
|
455
|
+
data: DocumentData;
|
|
456
|
+
/** Document's description */
|
|
457
|
+
description: Scalars['String']['output'];
|
|
458
|
+
/** Document reference date */
|
|
459
|
+
documentDate: Scalars['String']['output'];
|
|
460
|
+
downloaded: Scalars['Boolean']['output'];
|
|
461
|
+
/** Texts appearing in footer */
|
|
462
|
+
footer?: Maybe<Scalars['String']['output']>;
|
|
463
|
+
/** Document ID */
|
|
464
|
+
id: Scalars['String']['output'];
|
|
465
|
+
income: Array<Maybe<Income>>;
|
|
466
|
+
lang: DocumentLang;
|
|
467
|
+
linkedDocuments?: Maybe<Array<Maybe<DocumentLinkedDocument>>>;
|
|
468
|
+
/** Document tax number */
|
|
469
|
+
number: Scalars['String']['output'];
|
|
470
|
+
payment: Array<Maybe<PaymentDocument>>;
|
|
471
|
+
ref: Array<Maybe<Scalars['Float']['output']>>;
|
|
472
|
+
remarks?: Maybe<Scalars['String']['output']>;
|
|
473
|
+
reverseCharge: Scalars['Boolean']['output'];
|
|
474
|
+
/** Round the amounts */
|
|
475
|
+
rounding: Scalars['Boolean']['output'];
|
|
476
|
+
/** Digital sign the document */
|
|
477
|
+
signed: Scalars['Boolean']['output'];
|
|
478
|
+
skinId: Scalars['Float']['output'];
|
|
479
|
+
/** Document status */
|
|
480
|
+
status: Scalars['Float']['output'];
|
|
481
|
+
taxConfirmationEligible: Scalars['Boolean']['output'];
|
|
482
|
+
templateId: Scalars['Float']['output'];
|
|
483
|
+
type: DocumentType;
|
|
484
|
+
url: Url;
|
|
485
|
+
userName?: Maybe<Scalars['String']['output']>;
|
|
486
|
+
/** VAT amount */
|
|
487
|
+
vat: Scalars['Float']['output'];
|
|
488
|
+
vatLocal?: Maybe<Scalars['Float']['output']>;
|
|
489
|
+
/** VAT rate */
|
|
490
|
+
vatRate: Scalars['Float']['output'];
|
|
491
|
+
vatType: VatType;
|
|
492
|
+
};
|
|
493
|
+
type Business = {
|
|
494
|
+
accountantDocsEmailSettings: Scalars['Float']['output'];
|
|
495
|
+
accountantEmails: Array<Maybe<Scalars['JSON']['output']>>;
|
|
496
|
+
accountantReportEmailSettings: Scalars['Float']['output'];
|
|
497
|
+
accountingType: Scalars['Float']['output'];
|
|
498
|
+
active: Scalars['Boolean']['output'];
|
|
499
|
+
advanceNationalInsuranceRate: Scalars['Float']['output'];
|
|
500
|
+
advanceTaxRate: Scalars['Float']['output'];
|
|
501
|
+
bankDisplay: Scalars['Boolean']['output'];
|
|
502
|
+
bankDisplayEn: Scalars['Boolean']['output'];
|
|
503
|
+
deductionRate: Scalars['Float']['output'];
|
|
504
|
+
documentsEmailSettings: Scalars['Float']['output'];
|
|
505
|
+
emailSubjectType: Scalars['Float']['output'];
|
|
506
|
+
/** Is the business exemption free or not */
|
|
507
|
+
exemption: Scalars['Boolean']['output'];
|
|
508
|
+
incomeReportEmailSettings: Scalars['Float']['output'];
|
|
509
|
+
incomeReportFormatType: Scalars['Float']['output'];
|
|
510
|
+
reportSendingDay: Scalars['Float']['output'];
|
|
511
|
+
senderEmailSettings: Scalars['Float']['output'];
|
|
512
|
+
type: query_searchDocuments_items_items_business_type;
|
|
513
|
+
};
|
|
514
|
+
/** The business type ID */
|
|
515
|
+
type query_searchDocuments_items_items_business_type = '_1' | '_2' | '_3' | '_4' | '_5' | '_6';
|
|
516
|
+
type Client = {
|
|
517
|
+
country: Country;
|
|
518
|
+
emails: Array<Maybe<Scalars['String']['output']>>;
|
|
519
|
+
/** The client ID */
|
|
520
|
+
id: Scalars['String']['output'];
|
|
521
|
+
/** The client name */
|
|
522
|
+
name: Scalars['String']['output'];
|
|
523
|
+
phone: Scalars['String']['output'];
|
|
524
|
+
/** The client tax ID */
|
|
525
|
+
taxId?: Maybe<Scalars['String']['output']>;
|
|
526
|
+
/** Whether the client is self */
|
|
527
|
+
self: Scalars['Boolean']['output'];
|
|
528
|
+
};
|
|
529
|
+
type DocumentData = {
|
|
530
|
+
/** TODO: implement */
|
|
531
|
+
tags?: Maybe<Array<Maybe<Scalars['JSON']['output']>>>;
|
|
532
|
+
};
|
|
533
|
+
type Income = {
|
|
534
|
+
/** Amount */
|
|
535
|
+
amount?: Maybe<Scalars['Float']['output']>;
|
|
536
|
+
/** Total amount */
|
|
537
|
+
amountTotal?: Maybe<Scalars['Float']['output']>;
|
|
538
|
+
/** Catalog number */
|
|
539
|
+
catalogNum?: Maybe<Scalars['String']['output']>;
|
|
540
|
+
currency: Currency;
|
|
541
|
+
/** Currency rate relative to ILS */
|
|
542
|
+
currencyRate?: Maybe<Scalars['Float']['output']>;
|
|
543
|
+
/** Item description */
|
|
544
|
+
description: Scalars['String']['output'];
|
|
545
|
+
/** The ID of the item to attach as income */
|
|
546
|
+
itemId?: Maybe<Scalars['String']['output']>;
|
|
547
|
+
/** Item price */
|
|
548
|
+
price: Scalars['Float']['output'];
|
|
549
|
+
/** Quantity */
|
|
550
|
+
quantity: Scalars['Float']['output'];
|
|
551
|
+
/** VAT amount */
|
|
552
|
+
vat?: Maybe<Scalars['Float']['output']>;
|
|
553
|
+
/** VAT rate */
|
|
554
|
+
vatRate?: Maybe<Scalars['Float']['output']>;
|
|
555
|
+
vatType: VatType;
|
|
556
|
+
};
|
|
557
|
+
/** A Linked Document */
|
|
558
|
+
type DocumentLinkedDocument = {
|
|
559
|
+
/** Total amount, in requested currency (including the VAT, Discount & Rounding) */
|
|
560
|
+
amount: Scalars['Float']['output'];
|
|
561
|
+
currency: Currency;
|
|
562
|
+
/** Currency rate relative to ILS */
|
|
563
|
+
currencyRate: Scalars['Float']['output'];
|
|
564
|
+
/** Document reference date */
|
|
565
|
+
documentDate: Scalars['String']['output'];
|
|
566
|
+
/** Document ID */
|
|
567
|
+
id: Scalars['String']['output'];
|
|
568
|
+
/** Document tax number */
|
|
569
|
+
number: Scalars['String']['output'];
|
|
570
|
+
reverseCharge: Scalars['Boolean']['output'];
|
|
571
|
+
type: DocumentType;
|
|
572
|
+
};
|
|
573
|
+
type PaymentDocument = {
|
|
574
|
+
currency: Currency;
|
|
575
|
+
/** Currency rate relative to ILS */
|
|
576
|
+
currencyRate?: Maybe<Scalars['Float']['output']>;
|
|
577
|
+
date?: Maybe<Scalars['String']['output']>;
|
|
578
|
+
/** Sum paid */
|
|
579
|
+
price: Scalars['Float']['output'];
|
|
580
|
+
type: mutationInput_addDocument_input_allOf_0_payment_items_type;
|
|
581
|
+
subType?: Maybe<mutationInput_addDocument_input_allOf_0_payment_items_subType>;
|
|
582
|
+
/** Bank name (required when using Cheques) */
|
|
583
|
+
bankName?: Maybe<Scalars['String']['output']>;
|
|
584
|
+
/** Bank branch number (required when using Cheques) */
|
|
585
|
+
bankBranch?: Maybe<Scalars['String']['output']>;
|
|
586
|
+
/** Bank account number (required when using Cheques) */
|
|
587
|
+
bankAccount?: Maybe<Scalars['String']['output']>;
|
|
588
|
+
/** Cheque number (required when using Cheques) */
|
|
589
|
+
chequeNum?: Maybe<Scalars['String']['output']>;
|
|
590
|
+
/** Payer account (PayPal / Payment App / Other) */
|
|
591
|
+
accountId?: Maybe<Scalars['String']['output']>;
|
|
592
|
+
/** Transaction ID (PayPal / Payment App / Other) */
|
|
593
|
+
transactionId?: Maybe<Scalars['String']['output']>;
|
|
594
|
+
appType?: Maybe<mutationInput_addDocument_input_allOf_0_payment_items_appType>;
|
|
595
|
+
cardType?: Maybe<mutationInput_addDocument_input_allOf_0_payment_items_cardType>;
|
|
596
|
+
/** Credit card's last 4 digits */
|
|
597
|
+
cardNum?: Maybe<Scalars['String']['output']>;
|
|
598
|
+
dealType?: Maybe<mutationInput_addDocument_input_allOf_0_payment_items_dealType>;
|
|
599
|
+
/** Credit card's payments count (1-36) */
|
|
600
|
+
numPayments?: Maybe<Scalars['Int']['output']>;
|
|
601
|
+
/** Credit card's first payment */
|
|
602
|
+
firstPayment?: Maybe<Scalars['Float']['output']>;
|
|
603
|
+
};
|
|
604
|
+
type Url = {
|
|
605
|
+
/** Copy in Hebrew */
|
|
606
|
+
he: Scalars['String']['output'];
|
|
607
|
+
/** Copy in English */
|
|
608
|
+
en?: Maybe<Scalars['String']['output']>;
|
|
609
|
+
/** Origin */
|
|
610
|
+
origin: Scalars['String']['output'];
|
|
611
|
+
};
|
|
612
|
+
type searchDocumentsRequest_Input = {
|
|
613
|
+
/** Page requested */
|
|
614
|
+
page?: InputMaybe<Scalars['Float']['input']>;
|
|
615
|
+
/** Results per page */
|
|
616
|
+
pageSize?: InputMaybe<Scalars['Float']['input']>;
|
|
617
|
+
/** Document tax number */
|
|
618
|
+
number?: InputMaybe<Scalars['String']['input']>;
|
|
619
|
+
/** Document type */
|
|
620
|
+
type?: InputMaybe<Array<InputMaybe<DocumentType>>>;
|
|
621
|
+
/** Document status */
|
|
622
|
+
status?: InputMaybe<Array<InputMaybe<queryInput_searchDocuments_input_status_items>>>;
|
|
623
|
+
/** Payment types used in this document */
|
|
624
|
+
paymentTypes?: InputMaybe<Array<InputMaybe<queryInput_searchDocuments_input_paymentTypes_items>>>;
|
|
625
|
+
/** Documents that were created after the specified date in the format YYYY-MM-DD */
|
|
668
626
|
fromDate?: InputMaybe<Scalars['String']['input']>;
|
|
669
|
-
/**
|
|
627
|
+
/** Documents that were created until the specified date in the format YYYY-MM-DD */
|
|
670
628
|
toDate?: InputMaybe<Scalars['String']['input']>;
|
|
671
|
-
/**
|
|
672
|
-
|
|
673
|
-
/**
|
|
629
|
+
/** Client ID */
|
|
630
|
+
clientId?: InputMaybe<Scalars['String']['input']>;
|
|
631
|
+
/** Client name */
|
|
632
|
+
clientName?: InputMaybe<Scalars['String']['input']>;
|
|
633
|
+
/** Document description */
|
|
674
634
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
675
|
-
/**
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
supplierName?: InputMaybe<Scalars['String']['input']>;
|
|
679
|
-
/** Expense serial number */
|
|
680
|
-
number?: InputMaybe<Scalars['String']['input']>;
|
|
681
|
-
/** Filter expenses that are only paid or unpaid, if not added to the request, will return both */
|
|
682
|
-
paid?: InputMaybe<Scalars['Boolean']['input']>;
|
|
683
|
-
/** Filter expenses that are only reported or unreported, if not added to the request, will return both */
|
|
684
|
-
reported?: InputMaybe<Scalars['Boolean']['input']>;
|
|
685
|
-
/** The field to sort the results by */
|
|
686
|
-
sort?: InputMaybe<Scalars['String']['input']>;
|
|
687
|
-
/** Min amount of the expense */
|
|
688
|
-
minAmount: Scalars['Float']['input'];
|
|
689
|
-
/** Max amount of the expense */
|
|
690
|
-
maxAmount: Scalars['Float']['input'];
|
|
691
|
-
/** Page requested */
|
|
692
|
-
page: Scalars['Float']['input'];
|
|
693
|
-
/** Results per page */
|
|
694
|
-
pageSize: Scalars['Float']['input'];
|
|
635
|
+
/** Whether document was downloaded by client */
|
|
636
|
+
download?: InputMaybe<Scalars['Boolean']['input']>;
|
|
637
|
+
sort?: InputMaybe<queryInput_searchDocuments_input_sort>;
|
|
695
638
|
};
|
|
696
|
-
type
|
|
697
|
-
type
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
639
|
+
type queryInput_searchDocuments_input_status_items = '_0' | '_1' | '_2' | '_3' | '_4';
|
|
640
|
+
type queryInput_searchDocuments_input_paymentTypes_items = 'NEGATIVE_1' | '_0' | '_1' | '_2' | '_3' | '_4' | '_5' | '_10' | '_11';
|
|
641
|
+
type queryInput_searchDocuments_input_sort = 'documentDate' | 'creationDate';
|
|
642
|
+
type searchExpenseDrafts_response = searchExpenseDraftsResponse | generalErrorResponse;
|
|
643
|
+
type searchExpenseDraftsResponse = {
|
|
644
|
+
/** The total length of the items that were retrieved */
|
|
645
|
+
total: Scalars['Float']['output'];
|
|
646
|
+
from?: Maybe<Scalars['Float']['output']>;
|
|
647
|
+
to?: Maybe<Scalars['Float']['output']>;
|
|
648
|
+
/** The page that was requested to retrieve */
|
|
649
|
+
page: Scalars['Float']['output'];
|
|
650
|
+
/** The page size that was requested */
|
|
651
|
+
pageSize: Scalars['Float']['output'];
|
|
652
|
+
/** The amount of pages that exist */
|
|
653
|
+
pages: Scalars['Float']['output'];
|
|
654
|
+
aggregations: query_searchExpenseDrafts_oneOf_0_aggregations;
|
|
711
655
|
/** The expense drafts that were found */
|
|
712
|
-
items: Array<Maybe<
|
|
656
|
+
items: Array<Maybe<query_searchExpenseDrafts_oneOf_0_items_items>>;
|
|
713
657
|
};
|
|
714
|
-
type
|
|
715
|
-
totalAmount:
|
|
658
|
+
type query_searchExpenseDrafts_oneOf_0_aggregations = {
|
|
659
|
+
totalAmount: query_searchExpenseDrafts_oneOf_0_aggregations_totalAmount;
|
|
716
660
|
};
|
|
717
|
-
type
|
|
661
|
+
type query_searchExpenseDrafts_oneOf_0_aggregations_totalAmount = {
|
|
718
662
|
value: Scalars['Float']['output'];
|
|
719
663
|
};
|
|
720
664
|
/** Partial Expense */
|
|
721
|
-
type
|
|
665
|
+
type query_searchExpenseDrafts_oneOf_0_items_items = {
|
|
722
666
|
id: Scalars['String']['output'];
|
|
723
667
|
status: Scalars['Float']['output'];
|
|
724
668
|
/** The creation date, in UNIX timestamp format */
|
|
725
|
-
creationDate: Scalars['
|
|
669
|
+
creationDate: Scalars['Int']['output'];
|
|
726
670
|
lastUpdateDate: Scalars['Float']['output'];
|
|
727
671
|
reportingPeriod: Scalars['String']['output'];
|
|
728
672
|
hasDefaultValues: Scalars['Boolean']['output'];
|
|
729
673
|
url: Scalars['String']['output'];
|
|
730
674
|
thumbnail: Scalars['String']['output'];
|
|
731
|
-
expense:
|
|
675
|
+
expense: query_searchExpenseDrafts_oneOf_0_items_items_expense;
|
|
732
676
|
};
|
|
733
|
-
type
|
|
734
|
-
accountingClassification:
|
|
677
|
+
type query_searchExpenseDrafts_oneOf_0_items_items_expense = {
|
|
678
|
+
accountingClassification: AccountingClassification;
|
|
735
679
|
/** Is the expense active or not */
|
|
736
680
|
active: Scalars['Boolean']['output'];
|
|
737
681
|
/** Should we save the supplier or not (by setting this to true you are required to add a supplier) */
|
|
@@ -739,14 +683,14 @@ export declare namespace GreenInvoiceTypes {
|
|
|
739
683
|
/** The total amount of the expense */
|
|
740
684
|
amount?: Maybe<Scalars['Float']['output']>;
|
|
741
685
|
confirmFromEdit: Scalars['Boolean']['output'];
|
|
742
|
-
currency:
|
|
686
|
+
currency: Currency;
|
|
743
687
|
/** Currency rate relative to ILS */
|
|
744
|
-
currencyRate: Scalars['
|
|
688
|
+
currencyRate: Scalars['Float']['output'];
|
|
745
689
|
/** Date of the expense */
|
|
746
690
|
date?: Maybe<Scalars['String']['output']>;
|
|
747
691
|
/** Description for the expense */
|
|
748
692
|
description: Scalars['String']['output'];
|
|
749
|
-
documentType:
|
|
693
|
+
documentType: ExpenseDocumentType;
|
|
750
694
|
/** File hash */
|
|
751
695
|
fileHash: Scalars['String']['output'];
|
|
752
696
|
/** Key of the file location */
|
|
@@ -754,33 +698,33 @@ export declare namespace GreenInvoiceTypes {
|
|
|
754
698
|
labels: Array<Maybe<Scalars['String']['output']>>;
|
|
755
699
|
/** Number of the expense */
|
|
756
700
|
number?: Maybe<Scalars['String']['output']>;
|
|
757
|
-
paymentType?: Maybe<
|
|
701
|
+
paymentType?: Maybe<query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType>;
|
|
758
702
|
/** Reporting date of the expense */
|
|
759
703
|
reportingDate: Scalars['String']['output'];
|
|
760
|
-
supplier:
|
|
704
|
+
supplier: Supplier;
|
|
761
705
|
tags: Array<Maybe<Scalars['String']['output']>>;
|
|
762
706
|
texts: Array<Maybe<Scalars['String']['output']>>;
|
|
763
707
|
/** VAT amount */
|
|
764
|
-
vat: Scalars['
|
|
708
|
+
vat: Scalars['Float']['output'];
|
|
765
709
|
};
|
|
766
710
|
/** Payment method */
|
|
767
|
-
type
|
|
711
|
+
type query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType = Boolean_container | query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType_oneOf_1_container;
|
|
768
712
|
type Boolean_container = {
|
|
769
713
|
Boolean?: Maybe<Scalars['Boolean']['output']>;
|
|
770
714
|
};
|
|
771
|
-
type
|
|
772
|
-
|
|
715
|
+
type query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType_oneOf_1_container = {
|
|
716
|
+
query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType_oneOf_1?: Maybe<query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType_oneOf_1>;
|
|
773
717
|
};
|
|
774
|
-
type
|
|
775
|
-
type
|
|
776
|
-
|
|
718
|
+
type query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType_oneOf_1 = '_1' | '_2' | '_3' | '_4' | '_5' | '_10' | '_11';
|
|
719
|
+
type generalErrorResponse = {
|
|
720
|
+
errorCode_?: Maybe<Scalars['Int']['output']>;
|
|
777
721
|
errorMessage?: Maybe<Scalars['String']['output']>;
|
|
778
722
|
};
|
|
779
|
-
type
|
|
723
|
+
type searchExpenseDraftsRequest_Input = {
|
|
780
724
|
/** Expense drafts that were created after the specified date in the format YYYY-MM-DD */
|
|
781
|
-
fromDate?: InputMaybe<Scalars['
|
|
725
|
+
fromDate?: InputMaybe<Scalars['String']['input']>;
|
|
782
726
|
/** Expense drafts that were created until the specified date in the format YYYY-MM-DD */
|
|
783
|
-
toDate?: InputMaybe<Scalars['
|
|
727
|
+
toDate?: InputMaybe<Scalars['String']['input']>;
|
|
784
728
|
/** Expense draft description */
|
|
785
729
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
786
730
|
/** Supplier's ID */
|
|
@@ -792,42 +736,48 @@ export declare namespace GreenInvoiceTypes {
|
|
|
792
736
|
/** Results per page */
|
|
793
737
|
pageSize?: InputMaybe<Scalars['Float']['input']>;
|
|
794
738
|
};
|
|
795
|
-
type
|
|
796
|
-
/**
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
country?: Maybe<_DOLLAR_defs_Country>;
|
|
813
|
-
/** Bank name */
|
|
814
|
-
bankName?: Maybe<Scalars['String']['output']>;
|
|
815
|
-
/** Bank branch number */
|
|
816
|
-
bankBranch?: Maybe<Scalars['String']['output']>;
|
|
817
|
-
/** Bank account number */
|
|
818
|
-
bankAccount?: Maybe<Scalars['String']['output']>;
|
|
739
|
+
type GetLinkedDocuments = {
|
|
740
|
+
/** Total amount, in requested currency (including the VAT, Discount & Rounding) */
|
|
741
|
+
amount?: Maybe<Scalars['Float']['output']>;
|
|
742
|
+
currency?: Maybe<Currency>;
|
|
743
|
+
/** Currency rate relative to ILS */
|
|
744
|
+
currencyRate?: Maybe<Scalars['Float']['output']>;
|
|
745
|
+
/** Document reference date */
|
|
746
|
+
documentDate?: Maybe<Scalars['String']['output']>;
|
|
747
|
+
/** Document ID */
|
|
748
|
+
id?: Maybe<Scalars['String']['output']>;
|
|
749
|
+
/** Document tax number */
|
|
750
|
+
number?: Maybe<Scalars['String']['output']>;
|
|
751
|
+
/** Document status */
|
|
752
|
+
status?: Maybe<Scalars['Float']['output']>;
|
|
753
|
+
type?: Maybe<DocumentType>;
|
|
754
|
+
};
|
|
755
|
+
type getClientResponse = {
|
|
819
756
|
/** The client ID */
|
|
820
|
-
id?: Maybe<Scalars['
|
|
757
|
+
id?: Maybe<Scalars['String']['output']>;
|
|
821
758
|
/** The client name */
|
|
822
|
-
name?: Maybe<Scalars['
|
|
759
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
823
760
|
/** Is the client currently active or not */
|
|
824
761
|
active?: Maybe<Scalars['Boolean']['output']>;
|
|
825
762
|
/** The client tax ID */
|
|
826
763
|
taxId?: Maybe<Scalars['String']['output']>;
|
|
827
|
-
paymentTerms?: Maybe<
|
|
764
|
+
paymentTerms?: Maybe<query_getClient_paymentTerms>;
|
|
765
|
+
/** The client bank name */
|
|
766
|
+
bankName?: Maybe<Scalars['String']['output']>;
|
|
767
|
+
/** The client bank branch */
|
|
768
|
+
bankBranch?: Maybe<Scalars['String']['output']>;
|
|
769
|
+
/** The supplier bank account number */
|
|
770
|
+
bankAccount?: Maybe<Scalars['String']['output']>;
|
|
771
|
+
country?: Maybe<Country>;
|
|
772
|
+
phone?: Maybe<Scalars['String']['output']>;
|
|
773
|
+
/** The supplier mobile number */
|
|
774
|
+
mobile?: Maybe<Scalars['String']['output']>;
|
|
775
|
+
/** The supplier contact person name */
|
|
776
|
+
contactPerson?: Maybe<Scalars['String']['output']>;
|
|
777
|
+
emails?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
828
778
|
labels?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
829
779
|
/** The creation date, in UNIX timestamp format */
|
|
830
|
-
creationDate?: Maybe<Scalars['
|
|
780
|
+
creationDate?: Maybe<Scalars['Int']['output']>;
|
|
831
781
|
/** The last update date of the supplier, in UNIX timestamp format */
|
|
832
782
|
lastUpdateDate?: Maybe<Scalars['Int']['output']>;
|
|
833
783
|
/** Whether to send emails to the user automatically when assigning him to an invoice or not */
|
|
@@ -836,10 +786,18 @@ export declare namespace GreenInvoiceTypes {
|
|
|
836
786
|
department?: Maybe<Scalars['String']['output']>;
|
|
837
787
|
/** The supplier accounting key */
|
|
838
788
|
accountingKey?: Maybe<Scalars['String']['output']>;
|
|
789
|
+
/** The supplier address */
|
|
790
|
+
address?: Maybe<Scalars['String']['output']>;
|
|
791
|
+
/** The supplier city */
|
|
792
|
+
city?: Maybe<Scalars['String']['output']>;
|
|
793
|
+
/** The supplier zip code */
|
|
794
|
+
zip?: Maybe<Scalars['String']['output']>;
|
|
839
795
|
/** The category this client is related to */
|
|
840
796
|
category?: Maybe<Scalars['Int']['output']>;
|
|
841
797
|
/** The sub category this client is related to */
|
|
842
798
|
subCategory?: Maybe<Scalars['Int']['output']>;
|
|
799
|
+
/** Client fax */
|
|
800
|
+
fax?: Maybe<Scalars['String']['output']>;
|
|
843
801
|
/** Client remarks for self use */
|
|
844
802
|
remarks?: Maybe<Scalars['String']['output']>;
|
|
845
803
|
/** The amount of incomes from the customer */
|
|
@@ -849,138 +807,150 @@ export declare namespace GreenInvoiceTypes {
|
|
|
849
807
|
balanceAmount?: Maybe<Scalars['Float']['output']>;
|
|
850
808
|
};
|
|
851
809
|
/** The client payment term, default is 0 */
|
|
852
|
-
type
|
|
810
|
+
type query_getClient_paymentTerms = 'NEGATIVE_1' | '_0' | '_10' | '_15' | '_30' | '_45' | '_60' | '_75' | '_90' | '_120';
|
|
853
811
|
type Mutation = {
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
updateExpense?: Maybe<_DOLLAR_defs_updateExpenseResponse>;
|
|
812
|
+
addExpense?: Maybe<addExpenseResponse>;
|
|
813
|
+
addDocument?: Maybe<addDocumentResponse>;
|
|
814
|
+
updateExpense?: Maybe<updateExpenseResponse>;
|
|
858
815
|
addExpenseDraftByFile?: Maybe<addExpenseDraftByFile_response>;
|
|
859
|
-
|
|
860
|
-
updateClient?: Maybe<_DOLLAR_defs_updateClientResponse>;
|
|
861
|
-
deleteClient?: Maybe<_DOLLAR_defs_deleteClientResponse>;
|
|
862
|
-
};
|
|
863
|
-
type MutationaddDocumentArgs = {
|
|
864
|
-
input?: InputMaybe<_DOLLAR_defs_addDocumentRequest_Input>;
|
|
865
|
-
};
|
|
866
|
-
type MutationcloseDocumentArgs = {
|
|
867
|
-
id: Scalars['String']['input'];
|
|
816
|
+
closeDocument?: Maybe<Scalars['JSON']['output']>;
|
|
868
817
|
};
|
|
869
818
|
type MutationaddExpenseArgs = {
|
|
870
|
-
input?: InputMaybe<
|
|
819
|
+
input?: InputMaybe<Expense_Input>;
|
|
820
|
+
};
|
|
821
|
+
type MutationaddDocumentArgs = {
|
|
822
|
+
input?: InputMaybe<addDocumentRequest_Input>;
|
|
871
823
|
};
|
|
872
824
|
type MutationupdateExpenseArgs = {
|
|
873
825
|
id?: InputMaybe<Scalars['String']['input']>;
|
|
874
|
-
input?: InputMaybe<
|
|
826
|
+
input?: InputMaybe<updateExpenseRequest_Input>;
|
|
875
827
|
};
|
|
876
828
|
type MutationaddExpenseDraftByFileArgs = {
|
|
877
|
-
input?: InputMaybe<
|
|
878
|
-
};
|
|
879
|
-
type MutationaddClientArgs = {
|
|
880
|
-
input?: InputMaybe<_DOLLAR_defs_addClientRequest_Input>;
|
|
829
|
+
input?: InputMaybe<addExpenseDraftByFileRequest_Input>;
|
|
881
830
|
};
|
|
882
|
-
type
|
|
831
|
+
type MutationcloseDocumentArgs = {
|
|
883
832
|
id: Scalars['String']['input'];
|
|
884
|
-
input?: InputMaybe<_DOLLAR_defs_updateClientRequest_Input>;
|
|
885
833
|
};
|
|
886
|
-
type
|
|
887
|
-
|
|
834
|
+
type addExpenseResponse = Expense | ErrorResponse;
|
|
835
|
+
type Expense = {
|
|
836
|
+
paymentType?: Maybe<mutation_addExpense_oneOf_0_allOf_0_paymentType>;
|
|
837
|
+
currency: Scalars['JSON']['output'];
|
|
838
|
+
/** Currency rate relative to ILS */
|
|
839
|
+
currencyRate?: Maybe<Scalars['Float']['output']>;
|
|
840
|
+
vat: Scalars['JSON']['output'];
|
|
841
|
+
amount: Scalars['JSON']['output'];
|
|
842
|
+
date: Scalars['JSON']['output'];
|
|
843
|
+
/** Due date of the expense */
|
|
844
|
+
dueDate?: Maybe<Scalars['String']['output']>;
|
|
845
|
+
reportingDate: Scalars['JSON']['output'];
|
|
846
|
+
documentType: Scalars['JSON']['output'];
|
|
847
|
+
number: Scalars['JSON']['output'];
|
|
848
|
+
/** Description for the expense */
|
|
849
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
850
|
+
remarks?: Maybe<Scalars['String']['output']>;
|
|
851
|
+
supplier: Scalars['JSON']['output'];
|
|
852
|
+
accountingClassification: Scalars['JSON']['output'];
|
|
853
|
+
/** Is the expense active or not */
|
|
854
|
+
active?: Maybe<Scalars['Boolean']['output']>;
|
|
855
|
+
/** Should we save the supplier or not (by setting this to true you are required to add a supplier) */
|
|
856
|
+
addRecipient?: Maybe<Scalars['Boolean']['output']>;
|
|
857
|
+
/** Should we save the accounting classification (by setting this to true you are required to add an accounting classification that contains title & irsCode) */
|
|
858
|
+
addAccountingClassification?: Maybe<Scalars['Boolean']['output']>;
|
|
859
|
+
};
|
|
860
|
+
/** Payment method */
|
|
861
|
+
type mutation_addExpense_oneOf_0_allOf_0_paymentType = Boolean_container | mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_container;
|
|
862
|
+
type mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_container = {
|
|
863
|
+
mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1?: Maybe<mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1>;
|
|
864
|
+
};
|
|
865
|
+
type mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1 = '_1' | '_2' | '_3' | '_4' | '_5' | '_10' | '_11';
|
|
866
|
+
type Expense_Input = {
|
|
867
|
+
paymentType?: InputMaybe<mutation_addExpense_oneOf_0_allOf_0_paymentType_Input>;
|
|
868
|
+
currency: Scalars['JSON']['input'];
|
|
869
|
+
/** Currency rate relative to ILS */
|
|
870
|
+
currencyRate?: InputMaybe<Scalars['Float']['input']>;
|
|
871
|
+
vat: Scalars['JSON']['input'];
|
|
872
|
+
amount: Scalars['JSON']['input'];
|
|
873
|
+
date: Scalars['JSON']['input'];
|
|
874
|
+
/** Due date of the expense */
|
|
875
|
+
dueDate?: InputMaybe<Scalars['String']['input']>;
|
|
876
|
+
reportingDate: Scalars['JSON']['input'];
|
|
877
|
+
documentType: Scalars['JSON']['input'];
|
|
878
|
+
number: Scalars['JSON']['input'];
|
|
879
|
+
/** Description for the expense */
|
|
880
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
881
|
+
remarks?: InputMaybe<Scalars['String']['input']>;
|
|
882
|
+
supplier: Scalars['JSON']['input'];
|
|
883
|
+
accountingClassification: Scalars['JSON']['input'];
|
|
884
|
+
/** Is the expense active or not */
|
|
885
|
+
active?: InputMaybe<Scalars['Boolean']['input']>;
|
|
886
|
+
/** Should we save the supplier or not (by setting this to true you are required to add a supplier) */
|
|
887
|
+
addRecipient?: InputMaybe<Scalars['Boolean']['input']>;
|
|
888
|
+
/** Should we save the accounting classification (by setting this to true you are required to add an accounting classification that contains title & irsCode) */
|
|
889
|
+
addAccountingClassification?: InputMaybe<Scalars['Boolean']['input']>;
|
|
890
|
+
};
|
|
891
|
+
type mutation_addExpense_oneOf_0_allOf_0_paymentType_Input = {
|
|
892
|
+
Boolean: Scalars['Boolean']['input'];
|
|
893
|
+
mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1?: never;
|
|
894
|
+
} | {
|
|
895
|
+
Boolean?: never;
|
|
896
|
+
mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1: mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1;
|
|
888
897
|
};
|
|
889
|
-
type
|
|
890
|
-
type
|
|
898
|
+
type addDocumentResponse = AddedDocument | ErrorResponse;
|
|
899
|
+
type AddedDocument = {
|
|
891
900
|
/** Document ID */
|
|
892
901
|
id: Scalars['String']['output'];
|
|
893
|
-
lang:
|
|
902
|
+
lang: DocumentLang;
|
|
894
903
|
/** Document serial number */
|
|
895
|
-
number: Scalars['
|
|
904
|
+
number: Scalars['Int']['output'];
|
|
896
905
|
/** Digital sign the document */
|
|
897
906
|
signed: Scalars['Boolean']['output'];
|
|
898
|
-
url:
|
|
907
|
+
url: Url;
|
|
899
908
|
};
|
|
900
909
|
/** Add a document to the current business */
|
|
901
|
-
type
|
|
910
|
+
type addDocumentRequest_Input = {
|
|
902
911
|
/** Document's description */
|
|
903
|
-
description?: InputMaybe<Scalars['
|
|
912
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
904
913
|
remarks?: InputMaybe<Scalars['String']['input']>;
|
|
905
914
|
/** Texts appearing in footer */
|
|
906
915
|
footer?: InputMaybe<Scalars['String']['input']>;
|
|
907
|
-
type:
|
|
916
|
+
type: DocumentType;
|
|
908
917
|
/** Document date in the format YYYY-MM-DD */
|
|
909
918
|
date?: InputMaybe<Scalars['String']['input']>;
|
|
910
919
|
/** Document payment due date in the format YYYY-MM-DD */
|
|
911
920
|
dueDate?: InputMaybe<Scalars['String']['input']>;
|
|
912
|
-
lang:
|
|
913
|
-
currency:
|
|
914
|
-
vatType:
|
|
915
|
-
discount?: InputMaybe<
|
|
921
|
+
lang: DocumentLang;
|
|
922
|
+
currency: Currency;
|
|
923
|
+
vatType: VatType;
|
|
924
|
+
discount?: InputMaybe<DocumentDiscount_Input>;
|
|
916
925
|
/** Round the amounts */
|
|
917
926
|
rounding?: InputMaybe<Scalars['Boolean']['input']>;
|
|
918
927
|
/** Digital sign the document */
|
|
919
928
|
signed?: InputMaybe<Scalars['Boolean']['input']>;
|
|
920
929
|
/** Max payments allowed (valid only on supported accounts) */
|
|
921
930
|
maxPayments?: InputMaybe<Scalars['Int']['input']>;
|
|
922
|
-
client?: InputMaybe<
|
|
923
|
-
income?: InputMaybe<Array<InputMaybe<
|
|
924
|
-
payment?: InputMaybe<Array<InputMaybe<
|
|
931
|
+
client?: InputMaybe<mutationInput_addDocument_input_allOf_0_client_Input>;
|
|
932
|
+
income?: InputMaybe<Array<InputMaybe<Income_Input>>>;
|
|
933
|
+
payment?: InputMaybe<Array<InputMaybe<PaymentDocument_Input>>>;
|
|
925
934
|
/** 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. */
|
|
926
935
|
linkedDocumentIds?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
927
936
|
/** 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). */
|
|
928
937
|
linkedPaymentId?: InputMaybe<Scalars['String']['input']>;
|
|
929
|
-
linkType?: InputMaybe<
|
|
938
|
+
linkType?: InputMaybe<mutationInput_addDocument_input_allOf_0_linkType>;
|
|
930
939
|
/** Email content to send with the document */
|
|
931
940
|
emailContent?: InputMaybe<Scalars['String']['input']>;
|
|
932
941
|
/** Whether to attach the document to the email */
|
|
933
942
|
attachment?: InputMaybe<Scalars['Boolean']['input']>;
|
|
934
943
|
};
|
|
935
|
-
type
|
|
936
|
-
type
|
|
937
|
-
paymentType?: Maybe<mutation_addExpense_oneOf_0_allOf_0_paymentType>;
|
|
938
|
-
currency?: Maybe<_DOLLAR_defs_Currency>;
|
|
939
|
-
/** Currency rate relative to ILS */
|
|
940
|
-
currencyRate?: Maybe<Scalars['NonNegativeFloat']['output']>;
|
|
941
|
-
/** VAT amount */
|
|
942
|
-
vat?: Maybe<Scalars['NonNegativeFloat']['output']>;
|
|
943
|
-
/** The total amount of the expense */
|
|
944
|
-
amount?: Maybe<Scalars['Float']['output']>;
|
|
945
|
-
/** Date of the expense */
|
|
946
|
-
date?: Maybe<Scalars['String']['output']>;
|
|
947
|
-
/** Due date of the expense */
|
|
948
|
-
dueDate?: Maybe<Scalars['String']['output']>;
|
|
949
|
-
/** Reporting date of the expense */
|
|
950
|
-
reportingDate?: Maybe<Scalars['String']['output']>;
|
|
951
|
-
documentType?: Maybe<_DOLLAR_defs_ExpenseDocumentType>;
|
|
952
|
-
/** Number of the expense */
|
|
953
|
-
number?: Maybe<Scalars['String']['output']>;
|
|
954
|
-
/** Description for the expense */
|
|
955
|
-
description?: Maybe<Scalars['String']['output']>;
|
|
956
|
-
/** Remarks for the expense */
|
|
957
|
-
remarks?: Maybe<Scalars['String']['output']>;
|
|
958
|
-
supplier?: Maybe<_DOLLAR_defs_Supplier>;
|
|
959
|
-
accountingClassification?: Maybe<_DOLLAR_defs_AccountingClassification>;
|
|
960
|
-
/** Is the expense active or not */
|
|
961
|
-
active?: Maybe<Scalars['Boolean']['output']>;
|
|
962
|
-
/** Should we save the supplier or not (by setting this to true you are required to add a supplier) */
|
|
963
|
-
addRecipient?: Maybe<Scalars['Boolean']['output']>;
|
|
964
|
-
/** Should we save the accounting classification (by setting this to true you are required to add an accounting classification that contains title & irsCode) */
|
|
965
|
-
addAccountingClassification?: Maybe<Scalars['Boolean']['output']>;
|
|
966
|
-
JSON?: Maybe<Scalars['JSON']['output']>;
|
|
967
|
-
};
|
|
968
|
-
/** Payment method */
|
|
969
|
-
type mutation_addExpense_oneOf_0_allOf_0_paymentType = Boolean_container | mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_container;
|
|
970
|
-
type mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_container = {
|
|
971
|
-
mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1?: Maybe<mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1>;
|
|
972
|
-
};
|
|
973
|
-
type mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1 = '_1' | '_2' | '_3' | '_4' | '_5' | '_10' | '_11';
|
|
974
|
-
type _DOLLAR_defs_updateExpenseResponse = _DOLLAR_defs_GetExpense | _DOLLAR_defs_ErrorResponse;
|
|
975
|
-
type _DOLLAR_defs_updateExpenseRequest_Input = {
|
|
944
|
+
type updateExpenseResponse = GetExpense | ErrorResponse;
|
|
945
|
+
type updateExpenseRequest_Input = {
|
|
976
946
|
/** The expense ID */
|
|
977
947
|
id: Scalars['String']['input'];
|
|
978
948
|
paymentType?: InputMaybe<mutationInput_updateExpense_input_paymentType_Input>;
|
|
979
|
-
currency?: InputMaybe<
|
|
949
|
+
currency?: InputMaybe<Currency>;
|
|
980
950
|
/** Currency rate relative to ILS */
|
|
981
|
-
currencyRate?: InputMaybe<Scalars['
|
|
951
|
+
currencyRate?: InputMaybe<Scalars['Float']['input']>;
|
|
982
952
|
/** VAT amount */
|
|
983
|
-
vat?: InputMaybe<Scalars['
|
|
953
|
+
vat?: InputMaybe<Scalars['Float']['input']>;
|
|
984
954
|
/** The total amount of the expense */
|
|
985
955
|
amount?: InputMaybe<Scalars['Float']['input']>;
|
|
986
956
|
/** Date of the expense */
|
|
@@ -989,15 +959,14 @@ export declare namespace GreenInvoiceTypes {
|
|
|
989
959
|
dueDate?: InputMaybe<Scalars['String']['input']>;
|
|
990
960
|
/** Reporting date of the expense */
|
|
991
961
|
reportingDate?: InputMaybe<Scalars['String']['input']>;
|
|
992
|
-
documentType?: InputMaybe<
|
|
962
|
+
documentType?: InputMaybe<ExpenseDocumentType>;
|
|
993
963
|
/** Number of the expense */
|
|
994
964
|
number?: InputMaybe<Scalars['String']['input']>;
|
|
995
965
|
/** Description for the expense */
|
|
996
966
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
997
|
-
/** Remarks for the expense */
|
|
998
967
|
remarks?: InputMaybe<Scalars['String']['input']>;
|
|
999
|
-
supplier?: InputMaybe<
|
|
1000
|
-
accountingClassification?: InputMaybe<
|
|
968
|
+
supplier?: InputMaybe<Supplier_Input>;
|
|
969
|
+
accountingClassification?: InputMaybe<AccountingClassification_Input>;
|
|
1001
970
|
/** Is the expense active or not */
|
|
1002
971
|
active?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1003
972
|
};
|
|
@@ -1009,30 +978,8 @@ export declare namespace GreenInvoiceTypes {
|
|
|
1009
978
|
mutationInput_updateExpense_input_paymentType_oneOf_1: mutationInput_updateExpense_input_paymentType_oneOf_1;
|
|
1010
979
|
};
|
|
1011
980
|
type mutationInput_updateExpense_input_paymentType_oneOf_1 = '_1' | '_2' | '_3' | '_4' | '_5' | '_10' | '_11';
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
phone?: InputMaybe<Scalars['String']['input']>;
|
|
1015
|
-
/** Mobile number */
|
|
1016
|
-
mobile?: InputMaybe<Scalars['String']['input']>;
|
|
1017
|
-
/** Email addresses */
|
|
1018
|
-
emails?: InputMaybe<Array<InputMaybe<Scalars['EmailAddress']['input']>>>;
|
|
1019
|
-
/** Fax number */
|
|
1020
|
-
fax?: InputMaybe<Scalars['String']['input']>;
|
|
1021
|
-
/** Contact person name */
|
|
1022
|
-
contactPerson?: InputMaybe<Scalars['String']['input']>;
|
|
1023
|
-
/** Street address */
|
|
1024
|
-
address?: InputMaybe<Scalars['String']['input']>;
|
|
1025
|
-
/** City name */
|
|
1026
|
-
city?: InputMaybe<Scalars['String']['input']>;
|
|
1027
|
-
/** Zip/postal code */
|
|
1028
|
-
zip?: InputMaybe<Scalars['String']['input']>;
|
|
1029
|
-
country?: InputMaybe<_DOLLAR_defs_Country>;
|
|
1030
|
-
/** Bank name */
|
|
1031
|
-
bankName?: InputMaybe<Scalars['String']['input']>;
|
|
1032
|
-
/** Bank branch number */
|
|
1033
|
-
bankBranch?: InputMaybe<Scalars['String']['input']>;
|
|
1034
|
-
/** Bank account number */
|
|
1035
|
-
bankAccount?: InputMaybe<Scalars['String']['input']>;
|
|
981
|
+
/** Supplier of the expense */
|
|
982
|
+
type Supplier_Input = {
|
|
1036
983
|
/** The supplier ID */
|
|
1037
984
|
id?: InputMaybe<Scalars['String']['input']>;
|
|
1038
985
|
/** The supplier name */
|
|
@@ -1041,16 +988,38 @@ export declare namespace GreenInvoiceTypes {
|
|
|
1041
988
|
active?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1042
989
|
/** The supplier tax ID */
|
|
1043
990
|
taxId?: InputMaybe<Scalars['String']['input']>;
|
|
1044
|
-
paymentTerms?: InputMaybe<
|
|
991
|
+
paymentTerms?: InputMaybe<mutation_addExpense_oneOf_0_allOf_0_supplier_paymentTerms>;
|
|
992
|
+
/** The supplier bank name */
|
|
993
|
+
bankName?: InputMaybe<Scalars['String']['input']>;
|
|
994
|
+
/** The supplier bank branch number */
|
|
995
|
+
bankBranch?: InputMaybe<Scalars['String']['input']>;
|
|
996
|
+
/** The supplier bank account number */
|
|
997
|
+
bankAccount?: InputMaybe<Scalars['String']['input']>;
|
|
998
|
+
country?: InputMaybe<Country>;
|
|
999
|
+
/** The supplier phone number */
|
|
1000
|
+
phone?: InputMaybe<Scalars['String']['input']>;
|
|
1001
|
+
/** The supplier mobile number */
|
|
1002
|
+
mobile?: InputMaybe<Scalars['String']['input']>;
|
|
1003
|
+
/** The supplier contact person name */
|
|
1004
|
+
contactPerson?: InputMaybe<Scalars['String']['input']>;
|
|
1005
|
+
emails?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
1045
1006
|
labels?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
1046
1007
|
/** The creation date, in UNIX timestamp format */
|
|
1047
|
-
creationDate?: InputMaybe<Scalars['
|
|
1008
|
+
creationDate?: InputMaybe<Scalars['Int']['input']>;
|
|
1048
1009
|
/** The last update date of the supplier, in UNIX timestamp format */
|
|
1049
1010
|
lastUpdateDate?: InputMaybe<Scalars['Int']['input']>;
|
|
1050
1011
|
/** The supplier department */
|
|
1051
1012
|
department?: InputMaybe<Scalars['String']['input']>;
|
|
1052
1013
|
/** The supplier accounting key */
|
|
1053
1014
|
accountingKey?: InputMaybe<Scalars['String']['input']>;
|
|
1015
|
+
/** The supplier address */
|
|
1016
|
+
address?: InputMaybe<Scalars['String']['input']>;
|
|
1017
|
+
/** The supplier city */
|
|
1018
|
+
city?: InputMaybe<Scalars['String']['input']>;
|
|
1019
|
+
/** The supplier zip code */
|
|
1020
|
+
zip?: InputMaybe<Scalars['String']['input']>;
|
|
1021
|
+
/** The supplier fax number */
|
|
1022
|
+
fax?: InputMaybe<Scalars['String']['input']>;
|
|
1054
1023
|
/** The Supplier remarks for self use */
|
|
1055
1024
|
remarks?: InputMaybe<Scalars['String']['input']>;
|
|
1056
1025
|
/** The amount of incomes from the customer */
|
|
@@ -1060,7 +1029,7 @@ export declare namespace GreenInvoiceTypes {
|
|
|
1060
1029
|
balanceAmount?: InputMaybe<Scalars['Float']['input']>;
|
|
1061
1030
|
};
|
|
1062
1031
|
/** Account classification of the expense */
|
|
1063
|
-
type
|
|
1032
|
+
type AccountingClassification_Input = {
|
|
1064
1033
|
/** The classification ID, see 'Get Accounting Classifications' endpoint */
|
|
1065
1034
|
id?: InputMaybe<Scalars['String']['input']>;
|
|
1066
1035
|
/** The classification key */
|
|
@@ -1069,7 +1038,7 @@ export declare namespace GreenInvoiceTypes {
|
|
|
1069
1038
|
code?: InputMaybe<Scalars['String']['input']>;
|
|
1070
1039
|
/** The classification title */
|
|
1071
1040
|
title?: InputMaybe<Scalars['String']['input']>;
|
|
1072
|
-
irsCode?: InputMaybe<
|
|
1041
|
+
irsCode?: InputMaybe<mutation_addExpense_oneOf_0_allOf_0_accountingClassification_irsCode>;
|
|
1073
1042
|
/** The classification income */
|
|
1074
1043
|
income?: InputMaybe<Scalars['Float']['input']>;
|
|
1075
1044
|
/** The classification type */
|
|
@@ -1077,16 +1046,16 @@ export declare namespace GreenInvoiceTypes {
|
|
|
1077
1046
|
/** The classification VAT */
|
|
1078
1047
|
vat?: InputMaybe<Scalars['Float']['input']>;
|
|
1079
1048
|
};
|
|
1080
|
-
type addExpenseDraftByFile_response =
|
|
1081
|
-
type
|
|
1049
|
+
type addExpenseDraftByFile_response = GetExpenseDraft | generalErrorResponse;
|
|
1050
|
+
type GetExpenseDraft = {
|
|
1082
1051
|
/** The expense draft ID */
|
|
1083
1052
|
id?: Maybe<Scalars['String']['output']>;
|
|
1084
1053
|
status?: Maybe<mutation_addExpenseDraftByFile_oneOf_0_status>;
|
|
1085
1054
|
/** The creation date, in UNIX timestamp format */
|
|
1086
|
-
creationDate?: Maybe<Scalars['
|
|
1055
|
+
creationDate?: Maybe<Scalars['Int']['output']>;
|
|
1087
1056
|
/** The last update date of the expense draft, in UNIX timestamp format */
|
|
1088
1057
|
lastUpdateDate?: Maybe<Scalars['Int']['output']>;
|
|
1089
|
-
expense?: Maybe<
|
|
1058
|
+
expense?: Maybe<ExpensePartial>;
|
|
1090
1059
|
/** URL of expense thumbnail */
|
|
1091
1060
|
thumbnail?: Maybe<Scalars['String']['output']>;
|
|
1092
1061
|
/** URL to download the expense thumbnail */
|
|
@@ -1095,13 +1064,13 @@ export declare namespace GreenInvoiceTypes {
|
|
|
1095
1064
|
/** The status of the expense draft */
|
|
1096
1065
|
type mutation_addExpenseDraftByFile_oneOf_0_status = '_10' | '_50';
|
|
1097
1066
|
/** A Single Expense */
|
|
1098
|
-
type
|
|
1067
|
+
type ExpensePartial = {
|
|
1099
1068
|
paymentType?: Maybe<mutation_addExpense_oneOf_0_allOf_0_paymentType>;
|
|
1100
|
-
currency?: Maybe<
|
|
1069
|
+
currency?: Maybe<Currency>;
|
|
1101
1070
|
/** Currency rate relative to ILS */
|
|
1102
|
-
currencyRate?: Maybe<Scalars['
|
|
1071
|
+
currencyRate?: Maybe<Scalars['Float']['output']>;
|
|
1103
1072
|
/** VAT amount */
|
|
1104
|
-
vat?: Maybe<Scalars['
|
|
1073
|
+
vat?: Maybe<Scalars['Float']['output']>;
|
|
1105
1074
|
/** The total amount of the expense */
|
|
1106
1075
|
amount?: Maybe<Scalars['Float']['output']>;
|
|
1107
1076
|
/** Date of the expense */
|
|
@@ -1110,15 +1079,14 @@ export declare namespace GreenInvoiceTypes {
|
|
|
1110
1079
|
dueDate?: Maybe<Scalars['String']['output']>;
|
|
1111
1080
|
/** Reporting date of the expense */
|
|
1112
1081
|
reportingDate?: Maybe<Scalars['String']['output']>;
|
|
1113
|
-
documentType?: Maybe<
|
|
1082
|
+
documentType?: Maybe<ExpenseDocumentType>;
|
|
1114
1083
|
/** Number of the expense */
|
|
1115
1084
|
number?: Maybe<Scalars['String']['output']>;
|
|
1116
1085
|
/** Description for the expense */
|
|
1117
1086
|
description?: Maybe<Scalars['String']['output']>;
|
|
1118
|
-
/** Remarks for the expense */
|
|
1119
1087
|
remarks?: Maybe<Scalars['String']['output']>;
|
|
1120
|
-
supplier?: Maybe<
|
|
1121
|
-
accountingClassification?: Maybe<
|
|
1088
|
+
supplier?: Maybe<Supplier>;
|
|
1089
|
+
accountingClassification?: Maybe<AccountingClassification>;
|
|
1122
1090
|
/** Is the expense active or not */
|
|
1123
1091
|
active?: Maybe<Scalars['Boolean']['output']>;
|
|
1124
1092
|
/** Should we save the supplier or not (by setting this to true you are required to add a supplier) */
|
|
@@ -1126,145 +1094,40 @@ export declare namespace GreenInvoiceTypes {
|
|
|
1126
1094
|
/** Should we save the accounting classification (by setting this to true you are required to add an accounting classification that contains title & irsCode) */
|
|
1127
1095
|
addAccountingClassification?: Maybe<Scalars['Boolean']['output']>;
|
|
1128
1096
|
};
|
|
1129
|
-
type
|
|
1097
|
+
type addExpenseDraftByFileRequest_Input = {
|
|
1130
1098
|
/** The file, in Base64, allowed types: GIF, PNG, JPG, SVG, PDF */
|
|
1131
1099
|
file?: InputMaybe<Scalars['String']['input']>;
|
|
1132
1100
|
};
|
|
1133
|
-
type _DOLLAR_defs_addClientResponse = _DOLLAR_defs_getClientResponse | _DOLLAR_defs_ErrorResponse;
|
|
1134
|
-
/** Add a new client to the current business */
|
|
1135
|
-
type _DOLLAR_defs_addClientRequest_Input = {
|
|
1136
|
-
/** Phone number */
|
|
1137
|
-
phone?: InputMaybe<Scalars['String']['input']>;
|
|
1138
|
-
/** Mobile number */
|
|
1139
|
-
mobile?: InputMaybe<Scalars['String']['input']>;
|
|
1140
|
-
/** Email addresses */
|
|
1141
|
-
emails?: InputMaybe<Array<InputMaybe<Scalars['EmailAddress']['input']>>>;
|
|
1142
|
-
/** Fax number */
|
|
1143
|
-
fax?: InputMaybe<Scalars['String']['input']>;
|
|
1144
|
-
/** Contact person name */
|
|
1145
|
-
contactPerson?: InputMaybe<Scalars['String']['input']>;
|
|
1146
|
-
/** Street address */
|
|
1147
|
-
address?: InputMaybe<Scalars['String']['input']>;
|
|
1148
|
-
/** City name */
|
|
1149
|
-
city?: InputMaybe<Scalars['String']['input']>;
|
|
1150
|
-
/** Zip/postal code */
|
|
1151
|
-
zip?: InputMaybe<Scalars['String']['input']>;
|
|
1152
|
-
country?: InputMaybe<_DOLLAR_defs_Country>;
|
|
1153
|
-
/** Bank name */
|
|
1154
|
-
bankName?: InputMaybe<Scalars['String']['input']>;
|
|
1155
|
-
/** Bank branch number */
|
|
1156
|
-
bankBranch?: InputMaybe<Scalars['String']['input']>;
|
|
1157
|
-
/** Bank account number */
|
|
1158
|
-
bankAccount?: InputMaybe<Scalars['String']['input']>;
|
|
1159
|
-
/** The client name */
|
|
1160
|
-
name: Scalars['NonEmptyString']['input'];
|
|
1161
|
-
/** Is the client currently active or not */
|
|
1162
|
-
active?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1163
|
-
/** The client tax ID */
|
|
1164
|
-
taxId?: InputMaybe<Scalars['String']['input']>;
|
|
1165
|
-
paymentTerms?: InputMaybe<mutationInput_addClient_input_allOf_3_paymentTerms>;
|
|
1166
|
-
labels?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
1167
|
-
/** Whether to send emails to the user automatically when assigning him to an invoice or not */
|
|
1168
|
-
send?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1169
|
-
/** The client department */
|
|
1170
|
-
department?: InputMaybe<Scalars['String']['input']>;
|
|
1171
|
-
/** The client accounting key */
|
|
1172
|
-
accountingKey?: InputMaybe<Scalars['String']['input']>;
|
|
1173
|
-
/** The category this client is related to */
|
|
1174
|
-
category?: InputMaybe<Scalars['Int']['input']>;
|
|
1175
|
-
/** The sub category this client is related to */
|
|
1176
|
-
subCategory?: InputMaybe<Scalars['Int']['input']>;
|
|
1177
|
-
/** Client remarks for self use */
|
|
1178
|
-
remarks?: InputMaybe<Scalars['String']['input']>;
|
|
1179
|
-
};
|
|
1180
|
-
/** The client payment term, default is 0 */
|
|
1181
|
-
type mutationInput_addClient_input_allOf_3_paymentTerms = 'NEGATIVE_1' | '_0' | '_10' | '_15' | '_30' | '_45' | '_60' | '_75' | '_90' | '_120';
|
|
1182
|
-
type _DOLLAR_defs_updateClientResponse = _DOLLAR_defs_getClientResponse | _DOLLAR_defs_ErrorResponse;
|
|
1183
|
-
/** Update an existing client */
|
|
1184
|
-
type _DOLLAR_defs_updateClientRequest_Input = {
|
|
1185
|
-
/** The client name */
|
|
1186
|
-
name: Scalars['NonEmptyString']['input'];
|
|
1187
|
-
/** Is the client currently active or not */
|
|
1188
|
-
active?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1189
|
-
/** The client tax ID */
|
|
1190
|
-
taxId?: InputMaybe<Scalars['String']['input']>;
|
|
1191
|
-
paymentTerms?: InputMaybe<mutationInput_updateClient_input_paymentTerms>;
|
|
1192
|
-
labels?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
1193
|
-
/** Whether to send emails to the user automatically when assigning him to an invoice or not */
|
|
1194
|
-
send?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1195
|
-
/** The client department */
|
|
1196
|
-
department?: InputMaybe<Scalars['String']['input']>;
|
|
1197
|
-
/** The client accounting key */
|
|
1198
|
-
accountingKey?: InputMaybe<Scalars['String']['input']>;
|
|
1199
|
-
/** The category this client is related to */
|
|
1200
|
-
category?: InputMaybe<Scalars['Int']['input']>;
|
|
1201
|
-
/** The sub category this client is related to */
|
|
1202
|
-
subCategory?: InputMaybe<Scalars['Int']['input']>;
|
|
1203
|
-
/** Client remarks for self use */
|
|
1204
|
-
remarks?: InputMaybe<Scalars['String']['input']>;
|
|
1205
|
-
/** Phone number */
|
|
1206
|
-
phone?: InputMaybe<Scalars['String']['input']>;
|
|
1207
|
-
/** Mobile number */
|
|
1208
|
-
mobile?: InputMaybe<Scalars['String']['input']>;
|
|
1209
|
-
/** Email addresses */
|
|
1210
|
-
emails?: InputMaybe<Array<InputMaybe<Scalars['EmailAddress']['input']>>>;
|
|
1211
|
-
/** Fax number */
|
|
1212
|
-
fax?: InputMaybe<Scalars['String']['input']>;
|
|
1213
|
-
/** Contact person name */
|
|
1214
|
-
contactPerson?: InputMaybe<Scalars['String']['input']>;
|
|
1215
|
-
/** Street address */
|
|
1216
|
-
address?: InputMaybe<Scalars['String']['input']>;
|
|
1217
|
-
/** City name */
|
|
1218
|
-
city?: InputMaybe<Scalars['String']['input']>;
|
|
1219
|
-
/** Zip/postal code */
|
|
1220
|
-
zip?: InputMaybe<Scalars['String']['input']>;
|
|
1221
|
-
country?: InputMaybe<_DOLLAR_defs_Country>;
|
|
1222
|
-
/** Bank name */
|
|
1223
|
-
bankName?: InputMaybe<Scalars['String']['input']>;
|
|
1224
|
-
/** Bank branch number */
|
|
1225
|
-
bankBranch?: InputMaybe<Scalars['String']['input']>;
|
|
1226
|
-
/** Bank account number */
|
|
1227
|
-
bankAccount?: InputMaybe<Scalars['String']['input']>;
|
|
1228
|
-
};
|
|
1229
|
-
/** The client payment term, default is 0 */
|
|
1230
|
-
type mutationInput_updateClient_input_paymentTerms = 'NEGATIVE_1' | '_0' | '_10' | '_15' | '_30' | '_45' | '_60' | '_75' | '_90' | '_120';
|
|
1231
|
-
type _DOLLAR_defs_deleteClientResponse = _DOLLAR_defs_getClientResponse | _DOLLAR_defs_ErrorResponse;
|
|
1232
1101
|
type HTTPMethod = 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH';
|
|
1233
1102
|
type QuerySdk = {
|
|
1234
1103
|
/** undefined **/
|
|
1235
|
-
|
|
1104
|
+
previewDocument: InContextSdkMethod<query_previewDocument_oneOf_0 | ErrorResponse, QuerypreviewDocumentArgs, MeshContext>;
|
|
1236
1105
|
/** undefined **/
|
|
1237
|
-
|
|
1106
|
+
getExpense: InContextSdkMethod<Query['getExpense'], QuerygetExpenseArgs, MeshContext>;
|
|
1238
1107
|
/** undefined **/
|
|
1239
|
-
|
|
1108
|
+
searchExpenses: InContextSdkMethod<Query['searchExpenses'], QuerysearchExpensesArgs, MeshContext>;
|
|
1240
1109
|
/** undefined **/
|
|
1241
|
-
|
|
1110
|
+
searchDocuments: InContextSdkMethod<Query['searchDocuments'], QuerysearchDocumentsArgs, MeshContext>;
|
|
1242
1111
|
/** undefined **/
|
|
1243
|
-
|
|
1112
|
+
searchExpenseDrafts: InContextSdkMethod<searchExpenseDraftsResponse | generalErrorResponse, QuerysearchExpenseDraftsArgs, MeshContext>;
|
|
1244
1113
|
/** undefined **/
|
|
1245
|
-
|
|
1114
|
+
getDocument: InContextSdkMethod<Query['getDocument'], QuerygetDocumentArgs, MeshContext>;
|
|
1246
1115
|
/** undefined **/
|
|
1247
|
-
|
|
1116
|
+
getLinkedDocuments: InContextSdkMethod<Query['getLinkedDocuments'], QuerygetLinkedDocumentsArgs, MeshContext>;
|
|
1248
1117
|
/** undefined **/
|
|
1249
1118
|
getClient: InContextSdkMethod<Query['getClient'], QuerygetClientArgs, MeshContext>;
|
|
1250
1119
|
};
|
|
1251
1120
|
type MutationSdk = {
|
|
1252
1121
|
/** undefined **/
|
|
1253
|
-
|
|
1254
|
-
/** undefined **/
|
|
1255
|
-
closeDocument: InContextSdkMethod<Mutation['closeDocument'], MutationcloseDocumentArgs, MeshContext>;
|
|
1256
|
-
/** undefined **/
|
|
1257
|
-
addExpense: InContextSdkMethod<_DOLLAR_defs_Expense | _DOLLAR_defs_ErrorResponse, MutationaddExpenseArgs, MeshContext>;
|
|
1122
|
+
addExpense: InContextSdkMethod<Expense | ErrorResponse, MutationaddExpenseArgs, MeshContext>;
|
|
1258
1123
|
/** undefined **/
|
|
1259
|
-
|
|
1124
|
+
addDocument: InContextSdkMethod<AddedDocument | ErrorResponse, MutationaddDocumentArgs, MeshContext>;
|
|
1260
1125
|
/** undefined **/
|
|
1261
|
-
|
|
1126
|
+
updateExpense: InContextSdkMethod<GetExpense | ErrorResponse, MutationupdateExpenseArgs, MeshContext>;
|
|
1262
1127
|
/** undefined **/
|
|
1263
|
-
|
|
1128
|
+
addExpenseDraftByFile: InContextSdkMethod<GetExpenseDraft | generalErrorResponse, MutationaddExpenseDraftByFileArgs, MeshContext>;
|
|
1264
1129
|
/** undefined **/
|
|
1265
|
-
|
|
1266
|
-
/** undefined **/
|
|
1267
|
-
deleteClient: InContextSdkMethod<_DOLLAR_defs_getClientResponse | _DOLLAR_defs_ErrorResponse, MutationdeleteClientArgs, MeshContext>;
|
|
1130
|
+
closeDocument: InContextSdkMethod<Mutation['closeDocument'], MutationcloseDocumentArgs, MeshContext>;
|
|
1268
1131
|
};
|
|
1269
1132
|
type SubscriptionSdk = {};
|
|
1270
1133
|
type Context = {
|