@accounter/green-invoice-graphql 0.8.2-alpha-20251102162844-adaba3b25910083f6ebd80bd580629e1c0871260 → 0.8.2-alpha-20251102182927-b70d33f11d467ddc5a8d6b2869e72653ec08249b
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 +603 -416
- package/cjs/mesh-artifacts/schema.graphql +892 -748
- package/cjs/mesh-artifacts/sources/GreenInvoice/schema.graphql +885 -743
- package/cjs/mesh-artifacts/sources/GreenInvoice/schemaWithAnnotations.js +12447 -10635
- 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 +602 -415
- package/esm/mesh-artifacts/schema.graphql +892 -748
- package/esm/mesh-artifacts/sources/GreenInvoice/schema.graphql +885 -743
- package/esm/mesh-artifacts/sources/GreenInvoice/schemaWithAnnotations.js +12447 -10635
- 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 +1031 -823
- package/package.json +2 -2
- package/typings/mesh-artifacts/index.d.cts +1455 -1202
- package/typings/mesh-artifacts/index.d.ts +1455 -1202
- package/typings/mesh-artifacts/sources/GreenInvoice/types.d.cts +780 -643
- package/typings/mesh-artifacts/sources/GreenInvoice/types.d.ts +780 -643
- package/typings/mesh-artifacts/sources/GreenInvoiceNew/types.d.cts +8 -8
- package/typings/mesh-artifacts/sources/GreenInvoiceNew/types.d.ts +8 -8
|
@@ -48,164 +48,436 @@ 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
|
+
};
|
|
51
56
|
/** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
|
|
52
57
|
JSON: {
|
|
53
58
|
input: any;
|
|
54
59
|
output: any;
|
|
55
60
|
};
|
|
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
|
+
};
|
|
56
96
|
ObjMap: {
|
|
57
97
|
input: any;
|
|
58
98
|
output: any;
|
|
59
99
|
};
|
|
60
100
|
};
|
|
61
101
|
type Query = {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
102
|
+
getDocument?: Maybe<_DOLLAR_defs_Document>;
|
|
103
|
+
searchDocuments?: Maybe<_DOLLAR_defs_searchDocumentsResponse>;
|
|
104
|
+
previewDocument?: Maybe<_DOLLAR_defs_previewDocumentResponse>;
|
|
105
|
+
getLinkedDocuments?: Maybe<_DOLLAR_defs_GetLinkedDocuments>;
|
|
106
|
+
getExpense?: Maybe<_DOLLAR_defs_GetExpense>;
|
|
107
|
+
searchExpenses?: Maybe<_DOLLAR_defs_searchExpensesResponse>;
|
|
66
108
|
searchExpenseDrafts?: Maybe<searchExpenseDrafts_response>;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
109
|
+
getClient?: Maybe<_DOLLAR_defs_getClientResponse>;
|
|
110
|
+
};
|
|
111
|
+
type QuerygetDocumentArgs = {
|
|
112
|
+
id: Scalars['String']['input'];
|
|
113
|
+
};
|
|
114
|
+
type QuerysearchDocumentsArgs = {
|
|
115
|
+
input?: InputMaybe<_DOLLAR_defs_searchDocumentsRequest_Input>;
|
|
70
116
|
};
|
|
71
117
|
type QuerypreviewDocumentArgs = {
|
|
72
|
-
input?: InputMaybe<
|
|
118
|
+
input?: InputMaybe<_DOLLAR_defs_DocumentInputNew_Input>;
|
|
119
|
+
};
|
|
120
|
+
type QuerygetLinkedDocumentsArgs = {
|
|
121
|
+
id: Scalars['String']['input'];
|
|
73
122
|
};
|
|
74
123
|
type QuerygetExpenseArgs = {
|
|
75
124
|
id: Scalars['String']['input'];
|
|
76
125
|
};
|
|
77
126
|
type QuerysearchExpensesArgs = {
|
|
78
|
-
input?: InputMaybe<
|
|
79
|
-
};
|
|
80
|
-
type QuerysearchDocumentsArgs = {
|
|
81
|
-
input?: InputMaybe<searchDocumentsRequest_Input>;
|
|
127
|
+
input?: InputMaybe<_DOLLAR_defs_searchExpensesRequest_Input>;
|
|
82
128
|
};
|
|
83
129
|
type QuerysearchExpenseDraftsArgs = {
|
|
84
|
-
input?: InputMaybe<
|
|
130
|
+
input?: InputMaybe<_DOLLAR_defs_searchExpenseDraftsRequest_Input>;
|
|
85
131
|
};
|
|
86
|
-
type
|
|
132
|
+
type QuerygetClientArgs = {
|
|
87
133
|
id: Scalars['String']['input'];
|
|
88
134
|
};
|
|
89
|
-
|
|
90
|
-
|
|
135
|
+
/** A Single Document */
|
|
136
|
+
type _DOLLAR_defs_Document = {
|
|
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;
|
|
91
202
|
};
|
|
92
|
-
type
|
|
93
|
-
|
|
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'];
|
|
94
355
|
};
|
|
95
|
-
type
|
|
356
|
+
type _DOLLAR_defs_searchDocumentsResponse = {
|
|
357
|
+
/** Total number of items */
|
|
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>;
|
|
397
|
+
};
|
|
398
|
+
type queryInput_searchDocuments_input_status_items = '_0' | '_1' | '_2' | '_3' | '_4';
|
|
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;
|
|
96
402
|
type query_previewDocument_oneOf_0 = {
|
|
97
403
|
/** Preview document file in Base64 */
|
|
98
404
|
file: Scalars['String']['output'];
|
|
99
405
|
};
|
|
100
406
|
/** Error */
|
|
101
|
-
type
|
|
407
|
+
type _DOLLAR_defs_ErrorResponse = {
|
|
102
408
|
errorCode?: Maybe<Scalars['Float']['output']>;
|
|
103
409
|
errorMessage?: Maybe<Scalars['String']['output']>;
|
|
104
410
|
};
|
|
105
|
-
type
|
|
411
|
+
type _DOLLAR_defs_DocumentInputNew_Input = {
|
|
106
412
|
/** Document's description */
|
|
107
|
-
description?: InputMaybe<Scalars['
|
|
413
|
+
description?: InputMaybe<Scalars['NonEmptyString']['input']>;
|
|
108
414
|
remarks?: InputMaybe<Scalars['String']['input']>;
|
|
109
415
|
/** Texts appearing in footer */
|
|
110
416
|
footer?: InputMaybe<Scalars['String']['input']>;
|
|
111
|
-
type:
|
|
417
|
+
type: _DOLLAR_defs_DocumentType;
|
|
112
418
|
/** Document date in the format YYYY-MM-DD */
|
|
113
419
|
date?: InputMaybe<Scalars['String']['input']>;
|
|
114
420
|
/** Document payment due date in the format YYYY-MM-DD */
|
|
115
421
|
dueDate?: InputMaybe<Scalars['String']['input']>;
|
|
116
|
-
lang:
|
|
117
|
-
currency:
|
|
118
|
-
vatType:
|
|
119
|
-
discount?: InputMaybe<
|
|
422
|
+
lang: _DOLLAR_defs_DocumentLang;
|
|
423
|
+
currency: _DOLLAR_defs_Currency;
|
|
424
|
+
vatType: _DOLLAR_defs_VatType;
|
|
425
|
+
discount?: InputMaybe<_DOLLAR_defs_DocumentDiscount_Input>;
|
|
120
426
|
/** Round the amounts */
|
|
121
427
|
rounding?: InputMaybe<Scalars['Boolean']['input']>;
|
|
122
428
|
/** Digital sign the document */
|
|
123
429
|
signed?: InputMaybe<Scalars['Boolean']['input']>;
|
|
124
430
|
/** Max payments allowed (valid only on supported accounts) */
|
|
125
431
|
maxPayments?: InputMaybe<Scalars['Int']['input']>;
|
|
126
|
-
client?: InputMaybe<
|
|
127
|
-
income?: InputMaybe<Array<InputMaybe<
|
|
128
|
-
payment?: InputMaybe<Array<InputMaybe<
|
|
432
|
+
client?: InputMaybe<Scalars['JSON']['input']>;
|
|
433
|
+
income?: InputMaybe<Array<InputMaybe<_DOLLAR_defs_Income_Input>>>;
|
|
434
|
+
payment?: InputMaybe<Array<InputMaybe<_DOLLAR_defs_PaymentDocument_Input>>>;
|
|
129
435
|
/** 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. */
|
|
130
436
|
linkedDocumentIds?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
131
437
|
/** 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). */
|
|
132
438
|
linkedPaymentId?: InputMaybe<Scalars['String']['input']>;
|
|
133
|
-
linkType?: InputMaybe<
|
|
439
|
+
linkType?: InputMaybe<queryInput_previewDocument_input_linkType>;
|
|
134
440
|
};
|
|
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';
|
|
143
441
|
/** Discount information */
|
|
144
|
-
type
|
|
442
|
+
type _DOLLAR_defs_DocumentDiscount_Input = {
|
|
145
443
|
amount: Scalars['Float']['input'];
|
|
146
|
-
type:
|
|
444
|
+
type: queryInput_previewDocument_input_discount_type;
|
|
147
445
|
};
|
|
148
446
|
/** Discount amount type */
|
|
149
|
-
type
|
|
150
|
-
type
|
|
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 = {
|
|
447
|
+
type queryInput_previewDocument_input_discount_type = 'sum' | 'percentage';
|
|
448
|
+
type _DOLLAR_defs_Income_Input = {
|
|
177
449
|
/** Amount */
|
|
178
|
-
amount?: InputMaybe<Scalars['
|
|
450
|
+
amount?: InputMaybe<Scalars['NonNegativeFloat']['input']>;
|
|
179
451
|
/** Total amount */
|
|
180
|
-
amountTotal?: InputMaybe<Scalars['
|
|
452
|
+
amountTotal?: InputMaybe<Scalars['NonNegativeFloat']['input']>;
|
|
181
453
|
/** Catalog number */
|
|
182
454
|
catalogNum?: InputMaybe<Scalars['String']['input']>;
|
|
183
|
-
currency:
|
|
455
|
+
currency: _DOLLAR_defs_Currency;
|
|
184
456
|
/** Currency rate relative to ILS */
|
|
185
|
-
currencyRate?: InputMaybe<Scalars['
|
|
457
|
+
currencyRate?: InputMaybe<Scalars['NonNegativeFloat']['input']>;
|
|
186
458
|
/** Item description */
|
|
187
|
-
description: Scalars['
|
|
459
|
+
description: Scalars['NonEmptyString']['input'];
|
|
188
460
|
/** The ID of the item to attach as income */
|
|
189
461
|
itemId?: InputMaybe<Scalars['String']['input']>;
|
|
190
462
|
/** Item price */
|
|
191
|
-
price: Scalars['
|
|
463
|
+
price: Scalars['NonNegativeFloat']['input'];
|
|
192
464
|
/** Quantity */
|
|
193
|
-
quantity: Scalars['
|
|
465
|
+
quantity: Scalars['NonNegativeFloat']['input'];
|
|
194
466
|
/** VAT amount */
|
|
195
|
-
vat?: InputMaybe<Scalars['
|
|
467
|
+
vat?: InputMaybe<Scalars['NonNegativeFloat']['input']>;
|
|
196
468
|
/** VAT rate */
|
|
197
|
-
vatRate?: InputMaybe<Scalars['
|
|
198
|
-
vatType:
|
|
469
|
+
vatRate?: InputMaybe<Scalars['NonNegativeFloat']['input']>;
|
|
470
|
+
vatType: _DOLLAR_defs_VatType;
|
|
199
471
|
};
|
|
200
|
-
type
|
|
201
|
-
currency:
|
|
472
|
+
type _DOLLAR_defs_PaymentDocument_Input = {
|
|
473
|
+
currency: _DOLLAR_defs_Currency;
|
|
202
474
|
/** Currency rate relative to ILS */
|
|
203
|
-
currencyRate?: InputMaybe<Scalars['
|
|
475
|
+
currencyRate?: InputMaybe<Scalars['NonNegativeFloat']['input']>;
|
|
204
476
|
date?: InputMaybe<Scalars['String']['input']>;
|
|
205
477
|
/** Sum paid */
|
|
206
478
|
price: Scalars['Float']['input'];
|
|
207
|
-
type:
|
|
208
|
-
subType?: InputMaybe<
|
|
479
|
+
type: query_getDocument_payment_items_type;
|
|
480
|
+
subType?: InputMaybe<query_getDocument_payment_items_subType>;
|
|
209
481
|
/** Bank name (required when using Cheques) */
|
|
210
482
|
bankName?: InputMaybe<Scalars['String']['input']>;
|
|
211
483
|
/** Bank branch number (required when using Cheques) */
|
|
@@ -218,43 +490,49 @@ export declare namespace GreenInvoiceTypes {
|
|
|
218
490
|
accountId?: InputMaybe<Scalars['String']['input']>;
|
|
219
491
|
/** Transaction ID (PayPal / Payment App / Other) */
|
|
220
492
|
transactionId?: InputMaybe<Scalars['String']['input']>;
|
|
221
|
-
appType?: InputMaybe<
|
|
222
|
-
cardType?: InputMaybe<
|
|
493
|
+
appType?: InputMaybe<query_getDocument_payment_items_appType>;
|
|
494
|
+
cardType?: InputMaybe<query_getDocument_payment_items_cardType>;
|
|
223
495
|
/** Credit card's last 4 digits */
|
|
224
496
|
cardNum?: InputMaybe<Scalars['String']['input']>;
|
|
225
|
-
dealType?: InputMaybe<
|
|
497
|
+
dealType?: InputMaybe<query_getDocument_payment_items_dealType>;
|
|
226
498
|
/** Credit card's payments count (1-36) */
|
|
227
499
|
numPayments?: InputMaybe<Scalars['Int']['input']>;
|
|
228
500
|
/** Credit card's first payment */
|
|
229
501
|
firstPayment?: InputMaybe<Scalars['Float']['input']>;
|
|
230
502
|
};
|
|
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';
|
|
241
503
|
/** Reference type (applicable only when using linkedDocumentIds) */
|
|
242
|
-
type
|
|
504
|
+
type queryInput_previewDocument_input_linkType = 'LINK' | 'CANCEL';
|
|
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
|
+
};
|
|
243
521
|
/** A Single Expense */
|
|
244
|
-
type
|
|
522
|
+
type _DOLLAR_defs_GetExpense = {
|
|
245
523
|
/** The amount excluding the vat */
|
|
246
524
|
amountExcludeVat?: Maybe<Scalars['Float']['output']>;
|
|
247
525
|
/** The expense ID */
|
|
248
526
|
id?: Maybe<Scalars['String']['output']>;
|
|
249
|
-
businessType?: Maybe<
|
|
250
|
-
documentType?: Maybe<
|
|
251
|
-
status?: Maybe<
|
|
252
|
-
paymentType?: Maybe<
|
|
253
|
-
currency?: Maybe<
|
|
527
|
+
businessType?: Maybe<query_getExpense_businessType>;
|
|
528
|
+
documentType?: Maybe<_DOLLAR_defs_ExpenseDocumentType>;
|
|
529
|
+
status?: Maybe<query_getExpense_status>;
|
|
530
|
+
paymentType?: Maybe<query_getExpense_paymentType>;
|
|
531
|
+
currency?: Maybe<_DOLLAR_defs_Currency>;
|
|
254
532
|
/** Currency rate relative to ILS */
|
|
255
|
-
currencyRate?: Maybe<Scalars['
|
|
533
|
+
currencyRate?: Maybe<Scalars['NonNegativeFloat']['output']>;
|
|
256
534
|
/** VAT amount */
|
|
257
|
-
vat?: Maybe<Scalars['
|
|
535
|
+
vat?: Maybe<Scalars['NonNegativeFloat']['output']>;
|
|
258
536
|
/** The total amount of the expense */
|
|
259
537
|
amount?: Maybe<Scalars['Float']['output']>;
|
|
260
538
|
/** Date of the expense */
|
|
@@ -269,7 +547,7 @@ export declare namespace GreenInvoiceTypes {
|
|
|
269
547
|
description?: Maybe<Scalars['String']['output']>;
|
|
270
548
|
/** Remarks for the expense */
|
|
271
549
|
remarks?: Maybe<Scalars['String']['output']>;
|
|
272
|
-
supplier?: Maybe<
|
|
550
|
+
supplier?: Maybe<_DOLLAR_defs_Supplier>;
|
|
273
551
|
/** URL of expense thumbnail */
|
|
274
552
|
thumbnail?: Maybe<Scalars['String']['output']>;
|
|
275
553
|
/** URL to download the expense thumbnail */
|
|
@@ -278,7 +556,7 @@ export declare namespace GreenInvoiceTypes {
|
|
|
278
556
|
cancellable?: Maybe<Scalars['Boolean']['output']>;
|
|
279
557
|
/** Reporting date of the expense */
|
|
280
558
|
reportingDate?: Maybe<Scalars['String']['output']>;
|
|
281
|
-
accountingClassification?: Maybe<
|
|
559
|
+
accountingClassification?: Maybe<_DOLLAR_defs_AccountingClassification>;
|
|
282
560
|
/** The local amount of the expense */
|
|
283
561
|
amountLocal?: Maybe<Scalars['Float']['output']>;
|
|
284
562
|
/** The amount of accounting */
|
|
@@ -286,20 +564,42 @@ export declare namespace GreenInvoiceTypes {
|
|
|
286
564
|
/** The vat amount of accounting */
|
|
287
565
|
vatAccounting?: Maybe<Scalars['Float']['output']>;
|
|
288
566
|
/** The creation date, in UNIX timestamp format */
|
|
289
|
-
creationDate?: Maybe<Scalars['
|
|
567
|
+
creationDate?: Maybe<Scalars['NonNegativeInt']['output']>;
|
|
290
568
|
/** The last update date of the expense, in UNIX timestamp format */
|
|
291
569
|
lastUpdateDate?: Maybe<Scalars['Int']['output']>;
|
|
292
570
|
};
|
|
293
571
|
/** The business type ID */
|
|
294
|
-
type
|
|
572
|
+
type query_getExpense_businessType = '_1' | '_2' | '_3' | '_4' | '_5' | '_6';
|
|
295
573
|
/** Document type */
|
|
296
|
-
type
|
|
574
|
+
type _DOLLAR_defs_ExpenseDocumentType = '_20' | '_305' | '_320' | '_330' | '_400' | '_405';
|
|
297
575
|
/** The status of the expense */
|
|
298
|
-
type
|
|
576
|
+
type query_getExpense_status = '_10' | '_20' | '_30' | '_100';
|
|
299
577
|
/** Payment method */
|
|
300
|
-
type
|
|
301
|
-
|
|
302
|
-
|
|
578
|
+
type query_getExpense_paymentType = 'NEGATIVE_1' | '_0' | '_1' | '_2' | '_3' | '_4' | '_5' | '_10' | '_11';
|
|
579
|
+
type _DOLLAR_defs_Supplier = {
|
|
580
|
+
/** Phone number */
|
|
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']>;
|
|
303
603
|
/** The supplier ID */
|
|
304
604
|
id?: Maybe<Scalars['String']['output']>;
|
|
305
605
|
/** The supplier name */
|
|
@@ -308,38 +608,16 @@ export declare namespace GreenInvoiceTypes {
|
|
|
308
608
|
active?: Maybe<Scalars['Boolean']['output']>;
|
|
309
609
|
/** The supplier tax ID */
|
|
310
610
|
taxId?: Maybe<Scalars['String']['output']>;
|
|
311
|
-
paymentTerms?: Maybe<
|
|
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']>>>;
|
|
611
|
+
paymentTerms?: Maybe<query_getExpense_supplier_allOf_3_paymentTerms>;
|
|
326
612
|
labels?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
327
613
|
/** The creation date, in UNIX timestamp format */
|
|
328
|
-
creationDate?: Maybe<Scalars['
|
|
614
|
+
creationDate?: Maybe<Scalars['NonNegativeInt']['output']>;
|
|
329
615
|
/** The last update date of the supplier, in UNIX timestamp format */
|
|
330
616
|
lastUpdateDate?: Maybe<Scalars['Int']['output']>;
|
|
331
617
|
/** The supplier department */
|
|
332
618
|
department?: Maybe<Scalars['String']['output']>;
|
|
333
619
|
/** The supplier accounting key */
|
|
334
620
|
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']>;
|
|
343
621
|
/** The Supplier remarks for self use */
|
|
344
622
|
remarks?: Maybe<Scalars['String']['output']>;
|
|
345
623
|
/** The amount of incomes from the customer */
|
|
@@ -349,9 +627,9 @@ export declare namespace GreenInvoiceTypes {
|
|
|
349
627
|
balanceAmount?: Maybe<Scalars['Float']['output']>;
|
|
350
628
|
};
|
|
351
629
|
/** The supplier payment term, default is 0 */
|
|
352
|
-
type
|
|
630
|
+
type query_getExpense_supplier_allOf_3_paymentTerms = 'NEGATIVE_1' | '_0' | '_10' | '_15' | '_30' | '_45' | '_60' | '_75' | '_90' | '_120';
|
|
353
631
|
/** Account classification of the expense */
|
|
354
|
-
type
|
|
632
|
+
type _DOLLAR_defs_AccountingClassification = {
|
|
355
633
|
/** The classification ID, see 'Get Accounting Classifications' endpoint */
|
|
356
634
|
id?: Maybe<Scalars['String']['output']>;
|
|
357
635
|
/** The classification key */
|
|
@@ -360,322 +638,100 @@ export declare namespace GreenInvoiceTypes {
|
|
|
360
638
|
code?: Maybe<Scalars['String']['output']>;
|
|
361
639
|
/** The classification title */
|
|
362
640
|
title?: Maybe<Scalars['String']['output']>;
|
|
363
|
-
irsCode?: Maybe<
|
|
641
|
+
irsCode?: Maybe<query_getExpense_accountingClassification_irsCode>;
|
|
364
642
|
/** The classification income */
|
|
365
643
|
income?: Maybe<Scalars['Float']['output']>;
|
|
366
|
-
/** The classification type */
|
|
367
|
-
type?: Maybe<Scalars['Float']['output']>;
|
|
368
|
-
/** The classification VAT */
|
|
369
|
-
vat?: Maybe<Scalars['Float']['output']>;
|
|
370
|
-
};
|
|
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'];
|
|
644
|
+
/** The classification type */
|
|
645
|
+
type?: Maybe<Scalars['Float']['output']>;
|
|
646
|
+
/** The classification VAT */
|
|
647
|
+
vat?: Maybe<Scalars['Float']['output']>;
|
|
611
648
|
};
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
/**
|
|
616
|
-
|
|
617
|
-
/**
|
|
618
|
-
|
|
619
|
-
/**
|
|
620
|
-
|
|
621
|
-
/**
|
|
622
|
-
|
|
623
|
-
/**
|
|
624
|
-
|
|
625
|
-
/**
|
|
649
|
+
/** The classification IRS code */
|
|
650
|
+
type query_getExpense_accountingClassification_irsCode = '_1306' | '_1307' | '_1310' | '_1320' | '_1330' | '_1340' | '_1390' | '_3011' | '_3012' | '_3015' | '_3055' | '_3060' | '_3066' | '_3067' | '_3068' | '_3070' | '_3075' | '_3080' | '_3085' | '_3090' | '_3100' | '_3120' | '_3511' | '_3512' | '_3515' | '_3520' | '_3535' | '_3540' | '_3545' | '_3550' | '_3555' | '_3560' | '_3566' | '_3567' | '_3568' | '_3570' | '_3575' | '_3580' | '_3590' | '_3595' | '_3600' | '_3620' | '_3625' | '_3640' | '_3650' | '_3660' | '_3665' | '_3680' | '_5010' | '_5090' | '_8040' | '_8050' | '_8060' | '_8080' | '_8090';
|
|
651
|
+
type _DOLLAR_defs_searchExpensesResponse = {
|
|
652
|
+
/** Total number of items */
|
|
653
|
+
total: Scalars['NonNegativeFloat']['output'];
|
|
654
|
+
/** Current page number */
|
|
655
|
+
page: Scalars['PositiveFloat']['output'];
|
|
656
|
+
/** Number of items per page */
|
|
657
|
+
pageSize: Scalars['PositiveFloat']['output'];
|
|
658
|
+
/** Total number of pages */
|
|
659
|
+
pages: Scalars['NonNegativeFloat']['output'];
|
|
660
|
+
/** Starting index */
|
|
661
|
+
from?: Maybe<Scalars['NonNegativeFloat']['output']>;
|
|
662
|
+
/** Ending index */
|
|
663
|
+
to?: Maybe<Scalars['NonNegativeFloat']['output']>;
|
|
664
|
+
items?: Maybe<_DOLLAR_defs_GetExpense>;
|
|
665
|
+
};
|
|
666
|
+
type _DOLLAR_defs_searchExpensesRequest_Input = {
|
|
667
|
+
/** Expense that were created after the specified date in the format YYYY-MM-DD */
|
|
626
668
|
fromDate?: InputMaybe<Scalars['String']['input']>;
|
|
627
|
-
/**
|
|
669
|
+
/** Expense that were created until the specified date in the format YYYY-MM-DD */
|
|
628
670
|
toDate?: InputMaybe<Scalars['String']['input']>;
|
|
629
|
-
/**
|
|
630
|
-
|
|
631
|
-
/**
|
|
632
|
-
clientName?: InputMaybe<Scalars['String']['input']>;
|
|
633
|
-
/** Document description */
|
|
671
|
+
/** Due date of the expense, in the format YYYY-MM-DD */
|
|
672
|
+
dueDate?: InputMaybe<Scalars['String']['input']>;
|
|
673
|
+
/** Expense description */
|
|
634
674
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
635
|
-
/**
|
|
636
|
-
|
|
637
|
-
|
|
675
|
+
/** Supplier's ID */
|
|
676
|
+
supplierId?: InputMaybe<Scalars['String']['input']>;
|
|
677
|
+
/** Supplier's name */
|
|
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'];
|
|
638
695
|
};
|
|
639
|
-
type
|
|
640
|
-
type
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
aggregations: query_searchExpenseDrafts_oneOf_0_aggregations;
|
|
696
|
+
type searchExpenseDrafts_response = searchExpenseDrafts_200_response | searchExpenseDrafts_404_response;
|
|
697
|
+
type searchExpenseDrafts_200_response = {
|
|
698
|
+
/** Total number of items */
|
|
699
|
+
total: Scalars['NonNegativeFloat']['output'];
|
|
700
|
+
/** Current page number */
|
|
701
|
+
page: Scalars['PositiveFloat']['output'];
|
|
702
|
+
/** Number of items per page */
|
|
703
|
+
pageSize: Scalars['PositiveFloat']['output'];
|
|
704
|
+
/** Total number of pages */
|
|
705
|
+
pages: Scalars['NonNegativeFloat']['output'];
|
|
706
|
+
/** Starting index */
|
|
707
|
+
from?: Maybe<Scalars['NonNegativeFloat']['output']>;
|
|
708
|
+
/** Ending index */
|
|
709
|
+
to?: Maybe<Scalars['NonNegativeFloat']['output']>;
|
|
710
|
+
aggregations: query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations;
|
|
655
711
|
/** The expense drafts that were found */
|
|
656
|
-
items: Array<Maybe<
|
|
712
|
+
items: Array<Maybe<query_searchExpenseDrafts_oneOf_0_allOf_1_items_items>>;
|
|
657
713
|
};
|
|
658
|
-
type
|
|
659
|
-
totalAmount:
|
|
714
|
+
type query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations = {
|
|
715
|
+
totalAmount: query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations_totalAmount;
|
|
660
716
|
};
|
|
661
|
-
type
|
|
717
|
+
type query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations_totalAmount = {
|
|
662
718
|
value: Scalars['Float']['output'];
|
|
663
719
|
};
|
|
664
720
|
/** Partial Expense */
|
|
665
|
-
type
|
|
721
|
+
type query_searchExpenseDrafts_oneOf_0_allOf_1_items_items = {
|
|
666
722
|
id: Scalars['String']['output'];
|
|
667
723
|
status: Scalars['Float']['output'];
|
|
668
724
|
/** The creation date, in UNIX timestamp format */
|
|
669
|
-
creationDate: Scalars['
|
|
725
|
+
creationDate: Scalars['NonNegativeInt']['output'];
|
|
670
726
|
lastUpdateDate: Scalars['Float']['output'];
|
|
671
727
|
reportingPeriod: Scalars['String']['output'];
|
|
672
728
|
hasDefaultValues: Scalars['Boolean']['output'];
|
|
673
729
|
url: Scalars['String']['output'];
|
|
674
730
|
thumbnail: Scalars['String']['output'];
|
|
675
|
-
expense:
|
|
731
|
+
expense: query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense;
|
|
676
732
|
};
|
|
677
|
-
type
|
|
678
|
-
accountingClassification:
|
|
733
|
+
type query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense = {
|
|
734
|
+
accountingClassification: _DOLLAR_defs_AccountingClassification;
|
|
679
735
|
/** Is the expense active or not */
|
|
680
736
|
active: Scalars['Boolean']['output'];
|
|
681
737
|
/** Should we save the supplier or not (by setting this to true you are required to add a supplier) */
|
|
@@ -683,14 +739,14 @@ export declare namespace GreenInvoiceTypes {
|
|
|
683
739
|
/** The total amount of the expense */
|
|
684
740
|
amount?: Maybe<Scalars['Float']['output']>;
|
|
685
741
|
confirmFromEdit: Scalars['Boolean']['output'];
|
|
686
|
-
currency:
|
|
742
|
+
currency: _DOLLAR_defs_Currency;
|
|
687
743
|
/** Currency rate relative to ILS */
|
|
688
|
-
currencyRate: Scalars['
|
|
744
|
+
currencyRate: Scalars['NonNegativeFloat']['output'];
|
|
689
745
|
/** Date of the expense */
|
|
690
746
|
date?: Maybe<Scalars['String']['output']>;
|
|
691
747
|
/** Description for the expense */
|
|
692
748
|
description: Scalars['String']['output'];
|
|
693
|
-
documentType:
|
|
749
|
+
documentType: _DOLLAR_defs_ExpenseDocumentType;
|
|
694
750
|
/** File hash */
|
|
695
751
|
fileHash: Scalars['String']['output'];
|
|
696
752
|
/** Key of the file location */
|
|
@@ -698,33 +754,33 @@ export declare namespace GreenInvoiceTypes {
|
|
|
698
754
|
labels: Array<Maybe<Scalars['String']['output']>>;
|
|
699
755
|
/** Number of the expense */
|
|
700
756
|
number?: Maybe<Scalars['String']['output']>;
|
|
701
|
-
paymentType?: Maybe<
|
|
757
|
+
paymentType?: Maybe<query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType>;
|
|
702
758
|
/** Reporting date of the expense */
|
|
703
759
|
reportingDate: Scalars['String']['output'];
|
|
704
|
-
supplier:
|
|
760
|
+
supplier: _DOLLAR_defs_Supplier;
|
|
705
761
|
tags: Array<Maybe<Scalars['String']['output']>>;
|
|
706
762
|
texts: Array<Maybe<Scalars['String']['output']>>;
|
|
707
763
|
/** VAT amount */
|
|
708
|
-
vat: Scalars['
|
|
764
|
+
vat: Scalars['NonNegativeFloat']['output'];
|
|
709
765
|
};
|
|
710
766
|
/** Payment method */
|
|
711
|
-
type
|
|
767
|
+
type query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType = Boolean_container | query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1_container;
|
|
712
768
|
type Boolean_container = {
|
|
713
769
|
Boolean?: Maybe<Scalars['Boolean']['output']>;
|
|
714
770
|
};
|
|
715
|
-
type
|
|
716
|
-
|
|
771
|
+
type query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1_container = {
|
|
772
|
+
query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1?: Maybe<query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1>;
|
|
717
773
|
};
|
|
718
|
-
type
|
|
719
|
-
type
|
|
720
|
-
|
|
774
|
+
type query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1 = '_1' | '_2' | '_3' | '_4' | '_5' | '_10' | '_11';
|
|
775
|
+
type searchExpenseDrafts_404_response = {
|
|
776
|
+
errorCode?: Maybe<Scalars['Int']['output']>;
|
|
721
777
|
errorMessage?: Maybe<Scalars['String']['output']>;
|
|
722
778
|
};
|
|
723
|
-
type
|
|
779
|
+
type _DOLLAR_defs_searchExpenseDraftsRequest_Input = {
|
|
724
780
|
/** Expense drafts that were created after the specified date in the format YYYY-MM-DD */
|
|
725
|
-
fromDate?: InputMaybe<Scalars['
|
|
781
|
+
fromDate?: InputMaybe<Scalars['Date']['input']>;
|
|
726
782
|
/** Expense drafts that were created until the specified date in the format YYYY-MM-DD */
|
|
727
|
-
toDate?: InputMaybe<Scalars['
|
|
783
|
+
toDate?: InputMaybe<Scalars['Date']['input']>;
|
|
728
784
|
/** Expense draft description */
|
|
729
785
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
730
786
|
/** Supplier's ID */
|
|
@@ -736,48 +792,42 @@ export declare namespace GreenInvoiceTypes {
|
|
|
736
792
|
/** Results per page */
|
|
737
793
|
pageSize?: InputMaybe<Scalars['Float']['input']>;
|
|
738
794
|
};
|
|
739
|
-
type
|
|
740
|
-
/**
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
795
|
+
type _DOLLAR_defs_getClientResponse = {
|
|
796
|
+
/** Phone number */
|
|
797
|
+
phone?: Maybe<Scalars['String']['output']>;
|
|
798
|
+
/** Mobile number */
|
|
799
|
+
mobile?: Maybe<Scalars['String']['output']>;
|
|
800
|
+
/** Email addresses */
|
|
801
|
+
emails?: Maybe<Array<Maybe<Scalars['EmailAddress']['output']>>>;
|
|
802
|
+
/** Fax number */
|
|
803
|
+
fax?: Maybe<Scalars['String']['output']>;
|
|
804
|
+
/** Contact person name */
|
|
805
|
+
contactPerson?: Maybe<Scalars['String']['output']>;
|
|
806
|
+
/** Street address */
|
|
807
|
+
address?: Maybe<Scalars['String']['output']>;
|
|
808
|
+
/** City name */
|
|
809
|
+
city?: Maybe<Scalars['String']['output']>;
|
|
810
|
+
/** Zip/postal code */
|
|
811
|
+
zip?: Maybe<Scalars['String']['output']>;
|
|
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']>;
|
|
756
819
|
/** The client ID */
|
|
757
|
-
id?: Maybe<Scalars['
|
|
820
|
+
id?: Maybe<Scalars['UUID']['output']>;
|
|
758
821
|
/** The client name */
|
|
759
|
-
name?: Maybe<Scalars['
|
|
822
|
+
name?: Maybe<Scalars['NonEmptyString']['output']>;
|
|
760
823
|
/** Is the client currently active or not */
|
|
761
824
|
active?: Maybe<Scalars['Boolean']['output']>;
|
|
762
825
|
/** The client tax ID */
|
|
763
826
|
taxId?: Maybe<Scalars['String']['output']>;
|
|
764
|
-
paymentTerms?: Maybe<
|
|
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']>>>;
|
|
827
|
+
paymentTerms?: Maybe<query_getClient_allOf_3_paymentTerms>;
|
|
778
828
|
labels?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
779
829
|
/** The creation date, in UNIX timestamp format */
|
|
780
|
-
creationDate?: Maybe<Scalars['
|
|
830
|
+
creationDate?: Maybe<Scalars['NonNegativeInt']['output']>;
|
|
781
831
|
/** The last update date of the supplier, in UNIX timestamp format */
|
|
782
832
|
lastUpdateDate?: Maybe<Scalars['Int']['output']>;
|
|
783
833
|
/** Whether to send emails to the user automatically when assigning him to an invoice or not */
|
|
@@ -786,18 +836,10 @@ export declare namespace GreenInvoiceTypes {
|
|
|
786
836
|
department?: Maybe<Scalars['String']['output']>;
|
|
787
837
|
/** The supplier accounting key */
|
|
788
838
|
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']>;
|
|
795
839
|
/** The category this client is related to */
|
|
796
840
|
category?: Maybe<Scalars['Int']['output']>;
|
|
797
841
|
/** The sub category this client is related to */
|
|
798
842
|
subCategory?: Maybe<Scalars['Int']['output']>;
|
|
799
|
-
/** Client fax */
|
|
800
|
-
fax?: Maybe<Scalars['String']['output']>;
|
|
801
843
|
/** Client remarks for self use */
|
|
802
844
|
remarks?: Maybe<Scalars['String']['output']>;
|
|
803
845
|
/** The amount of incomes from the customer */
|
|
@@ -807,150 +849,138 @@ export declare namespace GreenInvoiceTypes {
|
|
|
807
849
|
balanceAmount?: Maybe<Scalars['Float']['output']>;
|
|
808
850
|
};
|
|
809
851
|
/** The client payment term, default is 0 */
|
|
810
|
-
type
|
|
852
|
+
type query_getClient_allOf_3_paymentTerms = 'NEGATIVE_1' | '_0' | '_10' | '_15' | '_30' | '_45' | '_60' | '_75' | '_90' | '_120';
|
|
811
853
|
type Mutation = {
|
|
812
|
-
|
|
813
|
-
addDocument?: Maybe<addDocumentResponse>;
|
|
814
|
-
updateExpense?: Maybe<updateExpenseResponse>;
|
|
815
|
-
addExpenseDraftByFile?: Maybe<addExpenseDraftByFile_response>;
|
|
854
|
+
addDocument?: Maybe<_DOLLAR_defs_addDocumentResponse>;
|
|
816
855
|
closeDocument?: Maybe<Scalars['JSON']['output']>;
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
856
|
+
addExpense?: Maybe<_DOLLAR_defs_addExpenseResponse>;
|
|
857
|
+
updateExpense?: Maybe<_DOLLAR_defs_updateExpenseResponse>;
|
|
858
|
+
addExpenseDraftByFile?: Maybe<addExpenseDraftByFile_response>;
|
|
859
|
+
addClient?: Maybe<_DOLLAR_defs_addClientResponse>;
|
|
860
|
+
updateClient?: Maybe<_DOLLAR_defs_updateClientResponse>;
|
|
861
|
+
deleteClient?: Maybe<_DOLLAR_defs_deleteClientResponse>;
|
|
820
862
|
};
|
|
821
863
|
type MutationaddDocumentArgs = {
|
|
822
|
-
input?: InputMaybe<
|
|
864
|
+
input?: InputMaybe<_DOLLAR_defs_addDocumentRequest_Input>;
|
|
865
|
+
};
|
|
866
|
+
type MutationcloseDocumentArgs = {
|
|
867
|
+
id: Scalars['String']['input'];
|
|
868
|
+
};
|
|
869
|
+
type MutationaddExpenseArgs = {
|
|
870
|
+
input?: InputMaybe<Scalars['JSON']['input']>;
|
|
823
871
|
};
|
|
824
872
|
type MutationupdateExpenseArgs = {
|
|
825
873
|
id?: InputMaybe<Scalars['String']['input']>;
|
|
826
|
-
input?: InputMaybe<
|
|
874
|
+
input?: InputMaybe<_DOLLAR_defs_updateExpenseRequest_Input>;
|
|
827
875
|
};
|
|
828
876
|
type MutationaddExpenseDraftByFileArgs = {
|
|
829
|
-
input?: InputMaybe<
|
|
830
|
-
};
|
|
831
|
-
type MutationcloseDocumentArgs = {
|
|
832
|
-
id: Scalars['String']['input'];
|
|
833
|
-
};
|
|
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']>;
|
|
877
|
+
input?: InputMaybe<_DOLLAR_defs_addExpenseDraftByFileRequest_Input>;
|
|
859
878
|
};
|
|
860
|
-
|
|
861
|
-
|
|
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>;
|
|
879
|
+
type MutationaddClientArgs = {
|
|
880
|
+
input?: InputMaybe<_DOLLAR_defs_addClientRequest_Input>;
|
|
864
881
|
};
|
|
865
|
-
type
|
|
866
|
-
|
|
867
|
-
|
|
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']>;
|
|
882
|
+
type MutationupdateClientArgs = {
|
|
883
|
+
id: Scalars['String']['input'];
|
|
884
|
+
input?: InputMaybe<_DOLLAR_defs_updateClientRequest_Input>;
|
|
890
885
|
};
|
|
891
|
-
type
|
|
892
|
-
|
|
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;
|
|
886
|
+
type MutationdeleteClientArgs = {
|
|
887
|
+
id: Scalars['String']['input'];
|
|
897
888
|
};
|
|
898
|
-
type
|
|
899
|
-
type
|
|
889
|
+
type _DOLLAR_defs_addDocumentResponse = _DOLLAR_defs_AddedDocument | _DOLLAR_defs_ErrorResponse;
|
|
890
|
+
type _DOLLAR_defs_AddedDocument = {
|
|
900
891
|
/** Document ID */
|
|
901
892
|
id: Scalars['String']['output'];
|
|
902
|
-
lang:
|
|
893
|
+
lang: _DOLLAR_defs_DocumentLang;
|
|
903
894
|
/** Document serial number */
|
|
904
|
-
number: Scalars['
|
|
895
|
+
number: Scalars['PositiveInt']['output'];
|
|
905
896
|
/** Digital sign the document */
|
|
906
897
|
signed: Scalars['Boolean']['output'];
|
|
907
|
-
url:
|
|
898
|
+
url: _DOLLAR_defs_Url;
|
|
908
899
|
};
|
|
909
900
|
/** Add a document to the current business */
|
|
910
|
-
type
|
|
901
|
+
type _DOLLAR_defs_addDocumentRequest_Input = {
|
|
911
902
|
/** Document's description */
|
|
912
|
-
description?: InputMaybe<Scalars['
|
|
903
|
+
description?: InputMaybe<Scalars['NonEmptyString']['input']>;
|
|
913
904
|
remarks?: InputMaybe<Scalars['String']['input']>;
|
|
914
905
|
/** Texts appearing in footer */
|
|
915
906
|
footer?: InputMaybe<Scalars['String']['input']>;
|
|
916
|
-
type:
|
|
907
|
+
type: _DOLLAR_defs_DocumentType;
|
|
917
908
|
/** Document date in the format YYYY-MM-DD */
|
|
918
909
|
date?: InputMaybe<Scalars['String']['input']>;
|
|
919
910
|
/** Document payment due date in the format YYYY-MM-DD */
|
|
920
911
|
dueDate?: InputMaybe<Scalars['String']['input']>;
|
|
921
|
-
lang:
|
|
922
|
-
currency:
|
|
923
|
-
vatType:
|
|
924
|
-
discount?: InputMaybe<
|
|
912
|
+
lang: _DOLLAR_defs_DocumentLang;
|
|
913
|
+
currency: _DOLLAR_defs_Currency;
|
|
914
|
+
vatType: _DOLLAR_defs_VatType;
|
|
915
|
+
discount?: InputMaybe<_DOLLAR_defs_DocumentDiscount_Input>;
|
|
925
916
|
/** Round the amounts */
|
|
926
917
|
rounding?: InputMaybe<Scalars['Boolean']['input']>;
|
|
927
918
|
/** Digital sign the document */
|
|
928
919
|
signed?: InputMaybe<Scalars['Boolean']['input']>;
|
|
929
920
|
/** Max payments allowed (valid only on supported accounts) */
|
|
930
921
|
maxPayments?: InputMaybe<Scalars['Int']['input']>;
|
|
931
|
-
client?: InputMaybe<
|
|
932
|
-
income?: InputMaybe<Array<InputMaybe<
|
|
933
|
-
payment?: InputMaybe<Array<InputMaybe<
|
|
922
|
+
client?: InputMaybe<Scalars['JSON']['input']>;
|
|
923
|
+
income?: InputMaybe<Array<InputMaybe<_DOLLAR_defs_Income_Input>>>;
|
|
924
|
+
payment?: InputMaybe<Array<InputMaybe<_DOLLAR_defs_PaymentDocument_Input>>>;
|
|
934
925
|
/** 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. */
|
|
935
926
|
linkedDocumentIds?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
936
927
|
/** 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). */
|
|
937
928
|
linkedPaymentId?: InputMaybe<Scalars['String']['input']>;
|
|
938
|
-
linkType?: InputMaybe<
|
|
929
|
+
linkType?: InputMaybe<queryInput_previewDocument_input_linkType>;
|
|
939
930
|
/** Email content to send with the document */
|
|
940
931
|
emailContent?: InputMaybe<Scalars['String']['input']>;
|
|
941
932
|
/** Whether to attach the document to the email */
|
|
942
933
|
attachment?: InputMaybe<Scalars['Boolean']['input']>;
|
|
943
934
|
};
|
|
944
|
-
type
|
|
945
|
-
type
|
|
935
|
+
type _DOLLAR_defs_addExpenseResponse = _DOLLAR_defs_Expense | _DOLLAR_defs_ErrorResponse;
|
|
936
|
+
type _DOLLAR_defs_Expense = {
|
|
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 = {
|
|
946
976
|
/** The expense ID */
|
|
947
977
|
id: Scalars['String']['input'];
|
|
948
978
|
paymentType?: InputMaybe<mutationInput_updateExpense_input_paymentType_Input>;
|
|
949
|
-
currency?: InputMaybe<
|
|
979
|
+
currency?: InputMaybe<_DOLLAR_defs_Currency>;
|
|
950
980
|
/** Currency rate relative to ILS */
|
|
951
|
-
currencyRate?: InputMaybe<Scalars['
|
|
981
|
+
currencyRate?: InputMaybe<Scalars['NonNegativeFloat']['input']>;
|
|
952
982
|
/** VAT amount */
|
|
953
|
-
vat?: InputMaybe<Scalars['
|
|
983
|
+
vat?: InputMaybe<Scalars['NonNegativeFloat']['input']>;
|
|
954
984
|
/** The total amount of the expense */
|
|
955
985
|
amount?: InputMaybe<Scalars['Float']['input']>;
|
|
956
986
|
/** Date of the expense */
|
|
@@ -959,14 +989,15 @@ export declare namespace GreenInvoiceTypes {
|
|
|
959
989
|
dueDate?: InputMaybe<Scalars['String']['input']>;
|
|
960
990
|
/** Reporting date of the expense */
|
|
961
991
|
reportingDate?: InputMaybe<Scalars['String']['input']>;
|
|
962
|
-
documentType?: InputMaybe<
|
|
992
|
+
documentType?: InputMaybe<_DOLLAR_defs_ExpenseDocumentType>;
|
|
963
993
|
/** Number of the expense */
|
|
964
994
|
number?: InputMaybe<Scalars['String']['input']>;
|
|
965
995
|
/** Description for the expense */
|
|
966
996
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
997
|
+
/** Remarks for the expense */
|
|
967
998
|
remarks?: InputMaybe<Scalars['String']['input']>;
|
|
968
|
-
supplier?: InputMaybe<
|
|
969
|
-
accountingClassification?: InputMaybe<
|
|
999
|
+
supplier?: InputMaybe<_DOLLAR_defs_Supplier_Input>;
|
|
1000
|
+
accountingClassification?: InputMaybe<_DOLLAR_defs_AccountingClassification_Input>;
|
|
970
1001
|
/** Is the expense active or not */
|
|
971
1002
|
active?: InputMaybe<Scalars['Boolean']['input']>;
|
|
972
1003
|
};
|
|
@@ -978,8 +1009,30 @@ export declare namespace GreenInvoiceTypes {
|
|
|
978
1009
|
mutationInput_updateExpense_input_paymentType_oneOf_1: mutationInput_updateExpense_input_paymentType_oneOf_1;
|
|
979
1010
|
};
|
|
980
1011
|
type mutationInput_updateExpense_input_paymentType_oneOf_1 = '_1' | '_2' | '_3' | '_4' | '_5' | '_10' | '_11';
|
|
981
|
-
|
|
982
|
-
|
|
1012
|
+
type _DOLLAR_defs_Supplier_Input = {
|
|
1013
|
+
/** Phone number */
|
|
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']>;
|
|
983
1036
|
/** The supplier ID */
|
|
984
1037
|
id?: InputMaybe<Scalars['String']['input']>;
|
|
985
1038
|
/** The supplier name */
|
|
@@ -988,38 +1041,16 @@ export declare namespace GreenInvoiceTypes {
|
|
|
988
1041
|
active?: InputMaybe<Scalars['Boolean']['input']>;
|
|
989
1042
|
/** The supplier tax ID */
|
|
990
1043
|
taxId?: InputMaybe<Scalars['String']['input']>;
|
|
991
|
-
paymentTerms?: InputMaybe<
|
|
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']>>>;
|
|
1044
|
+
paymentTerms?: InputMaybe<query_getExpense_supplier_allOf_3_paymentTerms>;
|
|
1006
1045
|
labels?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
1007
1046
|
/** The creation date, in UNIX timestamp format */
|
|
1008
|
-
creationDate?: InputMaybe<Scalars['
|
|
1047
|
+
creationDate?: InputMaybe<Scalars['NonNegativeInt']['input']>;
|
|
1009
1048
|
/** The last update date of the supplier, in UNIX timestamp format */
|
|
1010
1049
|
lastUpdateDate?: InputMaybe<Scalars['Int']['input']>;
|
|
1011
1050
|
/** The supplier department */
|
|
1012
1051
|
department?: InputMaybe<Scalars['String']['input']>;
|
|
1013
1052
|
/** The supplier accounting key */
|
|
1014
1053
|
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']>;
|
|
1023
1054
|
/** The Supplier remarks for self use */
|
|
1024
1055
|
remarks?: InputMaybe<Scalars['String']['input']>;
|
|
1025
1056
|
/** The amount of incomes from the customer */
|
|
@@ -1029,7 +1060,7 @@ export declare namespace GreenInvoiceTypes {
|
|
|
1029
1060
|
balanceAmount?: InputMaybe<Scalars['Float']['input']>;
|
|
1030
1061
|
};
|
|
1031
1062
|
/** Account classification of the expense */
|
|
1032
|
-
type
|
|
1063
|
+
type _DOLLAR_defs_AccountingClassification_Input = {
|
|
1033
1064
|
/** The classification ID, see 'Get Accounting Classifications' endpoint */
|
|
1034
1065
|
id?: InputMaybe<Scalars['String']['input']>;
|
|
1035
1066
|
/** The classification key */
|
|
@@ -1038,7 +1069,7 @@ export declare namespace GreenInvoiceTypes {
|
|
|
1038
1069
|
code?: InputMaybe<Scalars['String']['input']>;
|
|
1039
1070
|
/** The classification title */
|
|
1040
1071
|
title?: InputMaybe<Scalars['String']['input']>;
|
|
1041
|
-
irsCode?: InputMaybe<
|
|
1072
|
+
irsCode?: InputMaybe<query_getExpense_accountingClassification_irsCode>;
|
|
1042
1073
|
/** The classification income */
|
|
1043
1074
|
income?: InputMaybe<Scalars['Float']['input']>;
|
|
1044
1075
|
/** The classification type */
|
|
@@ -1046,16 +1077,16 @@ export declare namespace GreenInvoiceTypes {
|
|
|
1046
1077
|
/** The classification VAT */
|
|
1047
1078
|
vat?: InputMaybe<Scalars['Float']['input']>;
|
|
1048
1079
|
};
|
|
1049
|
-
type addExpenseDraftByFile_response =
|
|
1050
|
-
type
|
|
1080
|
+
type addExpenseDraftByFile_response = addExpenseDraftByFile_200_response | searchExpenseDrafts_404_response;
|
|
1081
|
+
type addExpenseDraftByFile_200_response = {
|
|
1051
1082
|
/** The expense draft ID */
|
|
1052
1083
|
id?: Maybe<Scalars['String']['output']>;
|
|
1053
1084
|
status?: Maybe<mutation_addExpenseDraftByFile_oneOf_0_status>;
|
|
1054
1085
|
/** The creation date, in UNIX timestamp format */
|
|
1055
|
-
creationDate?: Maybe<Scalars['
|
|
1086
|
+
creationDate?: Maybe<Scalars['NonNegativeInt']['output']>;
|
|
1056
1087
|
/** The last update date of the expense draft, in UNIX timestamp format */
|
|
1057
1088
|
lastUpdateDate?: Maybe<Scalars['Int']['output']>;
|
|
1058
|
-
expense?: Maybe<
|
|
1089
|
+
expense?: Maybe<_DOLLAR_defs_ExpensePartial>;
|
|
1059
1090
|
/** URL of expense thumbnail */
|
|
1060
1091
|
thumbnail?: Maybe<Scalars['String']['output']>;
|
|
1061
1092
|
/** URL to download the expense thumbnail */
|
|
@@ -1064,13 +1095,13 @@ export declare namespace GreenInvoiceTypes {
|
|
|
1064
1095
|
/** The status of the expense draft */
|
|
1065
1096
|
type mutation_addExpenseDraftByFile_oneOf_0_status = '_10' | '_50';
|
|
1066
1097
|
/** A Single Expense */
|
|
1067
|
-
type
|
|
1098
|
+
type _DOLLAR_defs_ExpensePartial = {
|
|
1068
1099
|
paymentType?: Maybe<mutation_addExpense_oneOf_0_allOf_0_paymentType>;
|
|
1069
|
-
currency?: Maybe<
|
|
1100
|
+
currency?: Maybe<_DOLLAR_defs_Currency>;
|
|
1070
1101
|
/** Currency rate relative to ILS */
|
|
1071
|
-
currencyRate?: Maybe<Scalars['
|
|
1102
|
+
currencyRate?: Maybe<Scalars['NonNegativeFloat']['output']>;
|
|
1072
1103
|
/** VAT amount */
|
|
1073
|
-
vat?: Maybe<Scalars['
|
|
1104
|
+
vat?: Maybe<Scalars['NonNegativeFloat']['output']>;
|
|
1074
1105
|
/** The total amount of the expense */
|
|
1075
1106
|
amount?: Maybe<Scalars['Float']['output']>;
|
|
1076
1107
|
/** Date of the expense */
|
|
@@ -1079,14 +1110,15 @@ export declare namespace GreenInvoiceTypes {
|
|
|
1079
1110
|
dueDate?: Maybe<Scalars['String']['output']>;
|
|
1080
1111
|
/** Reporting date of the expense */
|
|
1081
1112
|
reportingDate?: Maybe<Scalars['String']['output']>;
|
|
1082
|
-
documentType?: Maybe<
|
|
1113
|
+
documentType?: Maybe<_DOLLAR_defs_ExpenseDocumentType>;
|
|
1083
1114
|
/** Number of the expense */
|
|
1084
1115
|
number?: Maybe<Scalars['String']['output']>;
|
|
1085
1116
|
/** Description for the expense */
|
|
1086
1117
|
description?: Maybe<Scalars['String']['output']>;
|
|
1118
|
+
/** Remarks for the expense */
|
|
1087
1119
|
remarks?: Maybe<Scalars['String']['output']>;
|
|
1088
|
-
supplier?: Maybe<
|
|
1089
|
-
accountingClassification?: Maybe<
|
|
1120
|
+
supplier?: Maybe<_DOLLAR_defs_Supplier>;
|
|
1121
|
+
accountingClassification?: Maybe<_DOLLAR_defs_AccountingClassification>;
|
|
1090
1122
|
/** Is the expense active or not */
|
|
1091
1123
|
active?: Maybe<Scalars['Boolean']['output']>;
|
|
1092
1124
|
/** Should we save the supplier or not (by setting this to true you are required to add a supplier) */
|
|
@@ -1094,40 +1126,145 @@ export declare namespace GreenInvoiceTypes {
|
|
|
1094
1126
|
/** Should we save the accounting classification (by setting this to true you are required to add an accounting classification that contains title & irsCode) */
|
|
1095
1127
|
addAccountingClassification?: Maybe<Scalars['Boolean']['output']>;
|
|
1096
1128
|
};
|
|
1097
|
-
type
|
|
1129
|
+
type _DOLLAR_defs_addExpenseDraftByFileRequest_Input = {
|
|
1098
1130
|
/** The file, in Base64, allowed types: GIF, PNG, JPG, SVG, PDF */
|
|
1099
1131
|
file?: InputMaybe<Scalars['String']['input']>;
|
|
1100
1132
|
};
|
|
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;
|
|
1101
1232
|
type HTTPMethod = 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH';
|
|
1102
1233
|
type QuerySdk = {
|
|
1103
1234
|
/** undefined **/
|
|
1104
|
-
|
|
1235
|
+
getDocument: InContextSdkMethod<Query['getDocument'], QuerygetDocumentArgs, MeshContext>;
|
|
1105
1236
|
/** undefined **/
|
|
1106
|
-
|
|
1237
|
+
searchDocuments: InContextSdkMethod<Query['searchDocuments'], QuerysearchDocumentsArgs, MeshContext>;
|
|
1107
1238
|
/** undefined **/
|
|
1108
|
-
|
|
1239
|
+
previewDocument: InContextSdkMethod<query_previewDocument_oneOf_0 | _DOLLAR_defs_ErrorResponse, QuerypreviewDocumentArgs, MeshContext>;
|
|
1109
1240
|
/** undefined **/
|
|
1110
|
-
|
|
1241
|
+
getLinkedDocuments: InContextSdkMethod<Query['getLinkedDocuments'], QuerygetLinkedDocumentsArgs, MeshContext>;
|
|
1111
1242
|
/** undefined **/
|
|
1112
|
-
|
|
1243
|
+
getExpense: InContextSdkMethod<Query['getExpense'], QuerygetExpenseArgs, MeshContext>;
|
|
1113
1244
|
/** undefined **/
|
|
1114
|
-
|
|
1245
|
+
searchExpenses: InContextSdkMethod<Query['searchExpenses'], QuerysearchExpensesArgs, MeshContext>;
|
|
1115
1246
|
/** undefined **/
|
|
1116
|
-
|
|
1247
|
+
searchExpenseDrafts: InContextSdkMethod<searchExpenseDrafts_200_response | searchExpenseDrafts_404_response, QuerysearchExpenseDraftsArgs, MeshContext>;
|
|
1117
1248
|
/** undefined **/
|
|
1118
1249
|
getClient: InContextSdkMethod<Query['getClient'], QuerygetClientArgs, MeshContext>;
|
|
1119
1250
|
};
|
|
1120
1251
|
type MutationSdk = {
|
|
1121
1252
|
/** undefined **/
|
|
1122
|
-
|
|
1253
|
+
addDocument: InContextSdkMethod<_DOLLAR_defs_AddedDocument | _DOLLAR_defs_ErrorResponse, MutationaddDocumentArgs, MeshContext>;
|
|
1254
|
+
/** undefined **/
|
|
1255
|
+
closeDocument: InContextSdkMethod<Mutation['closeDocument'], MutationcloseDocumentArgs, MeshContext>;
|
|
1123
1256
|
/** undefined **/
|
|
1124
|
-
|
|
1257
|
+
addExpense: InContextSdkMethod<_DOLLAR_defs_Expense | _DOLLAR_defs_ErrorResponse, MutationaddExpenseArgs, MeshContext>;
|
|
1125
1258
|
/** undefined **/
|
|
1126
|
-
updateExpense: InContextSdkMethod<
|
|
1259
|
+
updateExpense: InContextSdkMethod<_DOLLAR_defs_GetExpense | _DOLLAR_defs_ErrorResponse, MutationupdateExpenseArgs, MeshContext>;
|
|
1127
1260
|
/** undefined **/
|
|
1128
|
-
addExpenseDraftByFile: InContextSdkMethod<
|
|
1261
|
+
addExpenseDraftByFile: InContextSdkMethod<addExpenseDraftByFile_200_response | searchExpenseDrafts_404_response, MutationaddExpenseDraftByFileArgs, MeshContext>;
|
|
1129
1262
|
/** undefined **/
|
|
1130
|
-
|
|
1263
|
+
addClient: InContextSdkMethod<_DOLLAR_defs_getClientResponse | _DOLLAR_defs_ErrorResponse, MutationaddClientArgs, MeshContext>;
|
|
1264
|
+
/** undefined **/
|
|
1265
|
+
updateClient: InContextSdkMethod<_DOLLAR_defs_getClientResponse | _DOLLAR_defs_ErrorResponse, MutationupdateClientArgs, MeshContext>;
|
|
1266
|
+
/** undefined **/
|
|
1267
|
+
deleteClient: InContextSdkMethod<_DOLLAR_defs_getClientResponse | _DOLLAR_defs_ErrorResponse, MutationdeleteClientArgs, MeshContext>;
|
|
1131
1268
|
};
|
|
1132
1269
|
type SubscriptionSdk = {};
|
|
1133
1270
|
type Context = {
|