@accounter/green-invoice-graphql 0.8.2-alpha-20251102160658-6d41b0a7bb225382246645badf39a28bcd8102e1 → 0.8.2-alpha-20251102162844-adaba3b25910083f6ebd80bd580629e1c0871260
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/mesh-artifacts/index.js +428 -615
- package/cjs/mesh-artifacts/schema.graphql +799 -943
- package/cjs/mesh-artifacts/sources/GreenInvoice/schema.graphql +795 -937
- package/cjs/mesh-artifacts/sources/GreenInvoice/schemaWithAnnotations.js +9268 -11080
- package/cjs/mesh-artifacts/sources/GreenInvoiceNew/schema.graphql +8 -8
- package/cjs/mesh-artifacts/sources/GreenInvoiceNew/schemaWithAnnotations.js +8 -8
- package/esm/mesh-artifacts/index.js +427 -614
- package/esm/mesh-artifacts/schema.graphql +799 -943
- package/esm/mesh-artifacts/sources/GreenInvoice/schema.graphql +795 -937
- package/esm/mesh-artifacts/sources/GreenInvoice/schemaWithAnnotations.js +9268 -11080
- package/esm/mesh-artifacts/sources/GreenInvoiceNew/schema.graphql +8 -8
- package/esm/mesh-artifacts/sources/GreenInvoiceNew/schemaWithAnnotations.js +8 -8
- package/json-schemas/greenInvoice.json +827 -1035
- package/package.json +2 -2
- package/typings/mesh-artifacts/index.d.cts +1191 -1444
- package/typings/mesh-artifacts/index.d.ts +1191 -1444
- package/typings/mesh-artifacts/sources/GreenInvoice/types.d.cts +639 -776
- package/typings/mesh-artifacts/sources/GreenInvoice/types.d.ts +639 -776
- package/typings/mesh-artifacts/sources/GreenInvoiceNew/types.d.cts +8 -8
- package/typings/mesh-artifacts/sources/GreenInvoiceNew/types.d.ts +8 -8
|
@@ -49,7 +49,7 @@ export async function getMeshOptions() {
|
|
|
49
49
|
const GreenInvoiceHandler = await import("@graphql-mesh/json-schema").then(handleImport);
|
|
50
50
|
const greenInvoiceHandler = new GreenInvoiceHandler({
|
|
51
51
|
name: "GreenInvoice",
|
|
52
|
-
config: { "endpoint": "https://api.greeninvoice.co.il/api/v1", "operationHeaders": { "Authorization": "Bearer {context.authToken}", "Content-Type": "application/json" }, "operations": [{ "type": "
|
|
52
|
+
config: { "endpoint": "https://api.greeninvoice.co.il/api/v1", "operationHeaders": { "Authorization": "Bearer {context.authToken}", "Content-Type": "application/json" }, "operations": [{ "type": "Mutation", "field": "addExpense", "path": "/expenses", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/definitions/addExpenseRequest", "responseSchema": "../json-schemas/greenInvoice.json#/definitions/addExpenseResponse" }, { "type": "Mutation", "field": "addDocument", "path": "/documents", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/definitions/addDocumentRequest", "responseSchema": "../json-schemas/greenInvoice.json#/definitions/addDocumentResponse" }, { "type": "Query", "field": "previewDocument", "path": "/documents/preview", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/definitions/previewDocumentRequest", "responseSchema": "../json-schemas/greenInvoice.json#/definitions/previewDocumentResponse" }, { "type": "Query", "field": "getExpense", "path": "/expenses/{args.id}", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/definitions/getExpenseResponse" }, { "type": "Mutation", "field": "updateExpense", "path": "/expenses/{args.id}", "method": "PUT", "requestSchema": "../json-schemas/greenInvoice.json#/definitions/updateExpenseRequest", "responseSchema": "../json-schemas/greenInvoice.json#/definitions/updateExpenseResponse" }, { "type": "Query", "field": "searchExpenses", "path": "/expenses/search", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/definitions/searchExpensesRequest", "responseSchema": "../json-schemas/greenInvoice.json#/definitions/searchExpensesResponse" }, { "type": "Query", "field": "searchDocuments", "path": "/documents/search", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/definitions/searchDocumentsRequest", "responseSchema": "../json-schemas/greenInvoice.json#/definitions/searchDocumentsResponse" }, { "type": "Mutation", "field": "addExpenseDraftByFile", "path": "/expenses/file", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/definitions/addExpenseDraftByFileRequest", "responseByStatusCode": { "200": { "responseSchema": "../json-schemas/greenInvoice.json#/definitions/addExpenseDraftByFileResponse" }, "201": { "responseSchema": "../json-schemas/greenInvoice.json#/definitions/addExpenseDraftByFileResponse" }, "400": { "responseSchema": "../json-schemas/greenInvoice.json#/definitions/generalErrorResponse" }, "404": { "responseSchema": "../json-schemas/greenInvoice.json#/definitions/generalErrorResponse" }, "405": { "responseSchema": "../json-schemas/greenInvoice.json#/definitions/generalErrorResponse" } } }, { "type": "Query", "field": "searchExpenseDrafts", "path": "/expenses/drafts/search", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/definitions/searchExpenseDraftsRequest", "responseByStatusCode": { "200": { "responseSchema": "../json-schemas/greenInvoice.json#/definitions/searchExpenseDraftsResponse" }, "201": { "responseSchema": "../json-schemas/greenInvoice.json#/definitions/searchExpenseDraftsResponse" }, "404": { "responseSchema": "../json-schemas/greenInvoice.json#/definitions/generalErrorResponse" } } }, { "type": "Query", "field": "getDocument", "path": "/documents/{args.id}", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/definitions/getDocumentResponse" }, { "type": "Query", "field": "getLinkedDocuments", "path": "/documents/{args.id}/linked", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/definitions/getLinkedDocumentsResponse" }, { "type": "Mutation", "field": "closeDocument", "path": "/documents/{args.id}/close", "method": "POST", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseByStatusCode": { "200": { "responseSchema": "../json-schemas/greenInvoice.json#/definitions/closeDocumentResponse" } } }, { "type": "Query", "field": "getClient", "path": "/clients/{args.id}", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/definitions/getClientResponse" }] },
|
|
53
53
|
baseDir,
|
|
54
54
|
cache,
|
|
55
55
|
pubsub,
|
|
@@ -60,7 +60,7 @@ export async function getMeshOptions() {
|
|
|
60
60
|
const GreenInvoiceNewHandler = await import("@graphql-mesh/json-schema").then(handleImport);
|
|
61
61
|
const greenInvoiceNewHandler = new GreenInvoiceNewHandler({
|
|
62
62
|
name: "GreenInvoiceNew",
|
|
63
|
-
config: { "endpoint": "https://apigw.greeninvoice.co.il", "operationHeaders": { "Authorization": "Bearer {context.authToken}", "Content-Type": "application/json" }, "operations": [{ "type": "Query", "field": "getFileUploadUrl", "path": "/file-upload/v1/url", "method": "GET", "argTypeMap": { "context": { "type": "string" }, "data": { "type": "object", "properties": { "source": { "type": "integer" }, "id": { "type": "string" }, "state": { "type": "string" } }, "required": ["source"] } }, "queryStringOptions": { "jsonStringify": true }, "queryParamArgMap": { "context": "context", "data": "data" }, "responseSchema": "../json-schemas/greenInvoice.json
|
|
63
|
+
config: { "endpoint": "https://apigw.greeninvoice.co.il", "operationHeaders": { "Authorization": "Bearer {context.authToken}", "Content-Type": "application/json" }, "operations": [{ "type": "Query", "field": "getFileUploadUrl", "path": "/file-upload/v1/url", "method": "GET", "argTypeMap": { "context": { "type": "string" }, "data": { "type": "object", "properties": { "source": { "type": "integer" }, "id": { "type": "string" }, "state": { "type": "string" } }, "required": ["source"] } }, "queryStringOptions": { "jsonStringify": true }, "queryParamArgMap": { "context": "context", "data": "data" }, "responseSchema": "../json-schemas/greenInvoice.json#/definitions/getFileUploadUrlResponse" }, { "type": "Query", "field": "getBankTransactions", "path": "/open-banking/v2/transactions", "method": "GET", "argTypeMap": { "valueDate": { "type": "object", "properties": { "from": { "type": "string" }, "to": { "type": "string" } }, "required": ["from", "to"] }, "from": { "type": "number" }, "size": { "type": "number" }, "bookingStatus": { "type": "string" } }, "queryStringOptions": { "indices": true, "arrayFormat": "brackets" }, "queryParamArgMap": { "valueDate": "valueDate", "from": "from", "size": "size", "bookingStatus": "bookingStatus" }, "responseSchema": "../json-schemas/greenInvoice.json#/definitions/getBankTransactionsResponse" }] },
|
|
64
64
|
baseDir,
|
|
65
65
|
cache,
|
|
66
66
|
pubsub,
|
|
@@ -141,307 +141,19 @@ export function getMeshSDK(globalContext) {
|
|
|
141
141
|
const sdkRequester$ = getBuiltMesh().then(({ sdkRequesterFactory }) => sdkRequesterFactory(globalContext));
|
|
142
142
|
return getSdk((...args) => sdkRequester$.then(sdkRequester => sdkRequester(...args)));
|
|
143
143
|
}
|
|
144
|
-
export const getDocument_queryDocument = gql `
|
|
145
|
-
query getDocument_query($id: String!) {
|
|
146
|
-
getDocument(id: $id) {
|
|
147
|
-
amount
|
|
148
|
-
amountDueVat
|
|
149
|
-
amountDueVatLocal
|
|
150
|
-
amountExcludeVat
|
|
151
|
-
amountExemptVat
|
|
152
|
-
amountLocal
|
|
153
|
-
amountOpened
|
|
154
|
-
business {
|
|
155
|
-
accountantDocsEmailSettings
|
|
156
|
-
accountantEmails
|
|
157
|
-
accountantReportEmailSettings
|
|
158
|
-
accountingType
|
|
159
|
-
active
|
|
160
|
-
advanceNationalInsuranceRate
|
|
161
|
-
advanceTaxRate
|
|
162
|
-
bankDisplay
|
|
163
|
-
bankDisplayEn
|
|
164
|
-
deductionRate
|
|
165
|
-
documentsEmailSettings
|
|
166
|
-
emailSubjectType
|
|
167
|
-
exemption
|
|
168
|
-
incomeReportEmailSettings
|
|
169
|
-
incomeReportFormatType
|
|
170
|
-
reportSendingDay
|
|
171
|
-
senderEmailSettings
|
|
172
|
-
type
|
|
173
|
-
}
|
|
174
|
-
calculatedAmountLocal
|
|
175
|
-
calculatedAmountOpenedLocal
|
|
176
|
-
calculatedIncomeAmountExcludeLocal
|
|
177
|
-
calculatedIncomeAmountLocal
|
|
178
|
-
calculatedPaymentAmountLocal
|
|
179
|
-
cancellable
|
|
180
|
-
cancelType
|
|
181
|
-
client {
|
|
182
|
-
country
|
|
183
|
-
emails
|
|
184
|
-
id
|
|
185
|
-
name
|
|
186
|
-
phone
|
|
187
|
-
taxId
|
|
188
|
-
self
|
|
189
|
-
address
|
|
190
|
-
city
|
|
191
|
-
zip
|
|
192
|
-
fax
|
|
193
|
-
mobile
|
|
194
|
-
add
|
|
195
|
-
JSON
|
|
196
|
-
}
|
|
197
|
-
creationDate
|
|
198
|
-
currency
|
|
199
|
-
currencyRate
|
|
200
|
-
data {
|
|
201
|
-
tags
|
|
202
|
-
}
|
|
203
|
-
description
|
|
204
|
-
documentDate
|
|
205
|
-
downloaded
|
|
206
|
-
footer
|
|
207
|
-
id
|
|
208
|
-
income {
|
|
209
|
-
amount
|
|
210
|
-
amountTotal
|
|
211
|
-
catalogNum
|
|
212
|
-
currency
|
|
213
|
-
currencyRate
|
|
214
|
-
description
|
|
215
|
-
itemId
|
|
216
|
-
price
|
|
217
|
-
quantity
|
|
218
|
-
vat
|
|
219
|
-
vatRate
|
|
220
|
-
vatType
|
|
221
|
-
}
|
|
222
|
-
lang
|
|
223
|
-
linkedDocuments {
|
|
224
|
-
amount
|
|
225
|
-
currency
|
|
226
|
-
currencyRate
|
|
227
|
-
documentDate
|
|
228
|
-
id
|
|
229
|
-
number
|
|
230
|
-
reverseCharge
|
|
231
|
-
type
|
|
232
|
-
}
|
|
233
|
-
number
|
|
234
|
-
payment {
|
|
235
|
-
currency
|
|
236
|
-
currencyRate
|
|
237
|
-
date
|
|
238
|
-
price
|
|
239
|
-
type
|
|
240
|
-
subType
|
|
241
|
-
bankName
|
|
242
|
-
bankBranch
|
|
243
|
-
bankAccount
|
|
244
|
-
chequeNum
|
|
245
|
-
accountId
|
|
246
|
-
transactionId
|
|
247
|
-
appType
|
|
248
|
-
cardType
|
|
249
|
-
cardNum
|
|
250
|
-
dealType
|
|
251
|
-
numPayments
|
|
252
|
-
firstPayment
|
|
253
|
-
}
|
|
254
|
-
ref
|
|
255
|
-
remarks
|
|
256
|
-
reverseCharge
|
|
257
|
-
rounding
|
|
258
|
-
signed
|
|
259
|
-
skinId
|
|
260
|
-
status
|
|
261
|
-
taxConfirmationEligible
|
|
262
|
-
templateId
|
|
263
|
-
type
|
|
264
|
-
url {
|
|
265
|
-
he
|
|
266
|
-
en
|
|
267
|
-
origin
|
|
268
|
-
}
|
|
269
|
-
userName
|
|
270
|
-
vat
|
|
271
|
-
vatLocal
|
|
272
|
-
vatRate
|
|
273
|
-
vatType
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
`;
|
|
277
|
-
export const searchDocuments_queryDocument = gql `
|
|
278
|
-
query searchDocuments_query($input: _DOLLAR_defs_searchDocumentsRequest_Input) {
|
|
279
|
-
searchDocuments(input: $input) {
|
|
280
|
-
total
|
|
281
|
-
page
|
|
282
|
-
pageSize
|
|
283
|
-
pages
|
|
284
|
-
from
|
|
285
|
-
to
|
|
286
|
-
items {
|
|
287
|
-
amount
|
|
288
|
-
amountDueVat
|
|
289
|
-
amountDueVatLocal
|
|
290
|
-
amountExcludeVat
|
|
291
|
-
amountExemptVat
|
|
292
|
-
amountLocal
|
|
293
|
-
amountOpened
|
|
294
|
-
business {
|
|
295
|
-
accountantDocsEmailSettings
|
|
296
|
-
accountantEmails
|
|
297
|
-
accountantReportEmailSettings
|
|
298
|
-
accountingType
|
|
299
|
-
active
|
|
300
|
-
advanceNationalInsuranceRate
|
|
301
|
-
advanceTaxRate
|
|
302
|
-
bankDisplay
|
|
303
|
-
bankDisplayEn
|
|
304
|
-
deductionRate
|
|
305
|
-
documentsEmailSettings
|
|
306
|
-
emailSubjectType
|
|
307
|
-
exemption
|
|
308
|
-
incomeReportEmailSettings
|
|
309
|
-
incomeReportFormatType
|
|
310
|
-
reportSendingDay
|
|
311
|
-
senderEmailSettings
|
|
312
|
-
type
|
|
313
|
-
}
|
|
314
|
-
calculatedAmountLocal
|
|
315
|
-
calculatedAmountOpenedLocal
|
|
316
|
-
calculatedIncomeAmountExcludeLocal
|
|
317
|
-
calculatedIncomeAmountLocal
|
|
318
|
-
calculatedPaymentAmountLocal
|
|
319
|
-
cancellable
|
|
320
|
-
cancelType
|
|
321
|
-
client {
|
|
322
|
-
country
|
|
323
|
-
emails
|
|
324
|
-
id
|
|
325
|
-
name
|
|
326
|
-
phone
|
|
327
|
-
taxId
|
|
328
|
-
self
|
|
329
|
-
address
|
|
330
|
-
city
|
|
331
|
-
zip
|
|
332
|
-
fax
|
|
333
|
-
mobile
|
|
334
|
-
add
|
|
335
|
-
JSON
|
|
336
|
-
}
|
|
337
|
-
creationDate
|
|
338
|
-
currency
|
|
339
|
-
currencyRate
|
|
340
|
-
data {
|
|
341
|
-
tags
|
|
342
|
-
}
|
|
343
|
-
description
|
|
344
|
-
documentDate
|
|
345
|
-
downloaded
|
|
346
|
-
footer
|
|
347
|
-
id
|
|
348
|
-
income {
|
|
349
|
-
amount
|
|
350
|
-
amountTotal
|
|
351
|
-
catalogNum
|
|
352
|
-
currency
|
|
353
|
-
currencyRate
|
|
354
|
-
description
|
|
355
|
-
itemId
|
|
356
|
-
price
|
|
357
|
-
quantity
|
|
358
|
-
vat
|
|
359
|
-
vatRate
|
|
360
|
-
vatType
|
|
361
|
-
}
|
|
362
|
-
lang
|
|
363
|
-
linkedDocuments {
|
|
364
|
-
amount
|
|
365
|
-
currency
|
|
366
|
-
currencyRate
|
|
367
|
-
documentDate
|
|
368
|
-
id
|
|
369
|
-
number
|
|
370
|
-
reverseCharge
|
|
371
|
-
type
|
|
372
|
-
}
|
|
373
|
-
number
|
|
374
|
-
payment {
|
|
375
|
-
currency
|
|
376
|
-
currencyRate
|
|
377
|
-
date
|
|
378
|
-
price
|
|
379
|
-
type
|
|
380
|
-
subType
|
|
381
|
-
bankName
|
|
382
|
-
bankBranch
|
|
383
|
-
bankAccount
|
|
384
|
-
chequeNum
|
|
385
|
-
accountId
|
|
386
|
-
transactionId
|
|
387
|
-
appType
|
|
388
|
-
cardType
|
|
389
|
-
cardNum
|
|
390
|
-
dealType
|
|
391
|
-
numPayments
|
|
392
|
-
firstPayment
|
|
393
|
-
}
|
|
394
|
-
ref
|
|
395
|
-
remarks
|
|
396
|
-
reverseCharge
|
|
397
|
-
rounding
|
|
398
|
-
signed
|
|
399
|
-
skinId
|
|
400
|
-
status
|
|
401
|
-
taxConfirmationEligible
|
|
402
|
-
templateId
|
|
403
|
-
type
|
|
404
|
-
url {
|
|
405
|
-
he
|
|
406
|
-
en
|
|
407
|
-
origin
|
|
408
|
-
}
|
|
409
|
-
userName
|
|
410
|
-
vat
|
|
411
|
-
vatLocal
|
|
412
|
-
vatRate
|
|
413
|
-
vatType
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
`;
|
|
418
144
|
export const previewDocument_queryDocument = gql `
|
|
419
|
-
query previewDocument_query($input:
|
|
145
|
+
query previewDocument_query($input: DocumentInputNew_Input) {
|
|
420
146
|
previewDocument(input: $input) {
|
|
421
147
|
... on query_previewDocument_oneOf_0 {
|
|
422
148
|
file
|
|
423
149
|
}
|
|
424
|
-
... on
|
|
150
|
+
... on ErrorResponse {
|
|
425
151
|
errorCode
|
|
426
152
|
errorMessage
|
|
427
153
|
}
|
|
428
154
|
}
|
|
429
155
|
}
|
|
430
156
|
`;
|
|
431
|
-
export const getLinkedDocuments_queryDocument = gql `
|
|
432
|
-
query getLinkedDocuments_query($id: String!) {
|
|
433
|
-
getLinkedDocuments(id: $id) {
|
|
434
|
-
amount
|
|
435
|
-
currency
|
|
436
|
-
currencyRate
|
|
437
|
-
documentDate
|
|
438
|
-
id
|
|
439
|
-
number
|
|
440
|
-
status
|
|
441
|
-
type
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
`;
|
|
445
157
|
export const getExpense_queryDocument = gql `
|
|
446
158
|
query getExpense_query($id: String!) {
|
|
447
159
|
getExpense(id: $id) {
|
|
@@ -462,28 +174,28 @@ export const getExpense_queryDocument = gql `
|
|
|
462
174
|
description
|
|
463
175
|
remarks
|
|
464
176
|
supplier {
|
|
465
|
-
phone
|
|
466
|
-
mobile
|
|
467
|
-
emails
|
|
468
|
-
fax
|
|
469
|
-
contactPerson
|
|
470
|
-
address
|
|
471
|
-
city
|
|
472
|
-
zip
|
|
473
|
-
country
|
|
474
|
-
bankName
|
|
475
|
-
bankBranch
|
|
476
|
-
bankAccount
|
|
477
177
|
id
|
|
478
178
|
name
|
|
479
179
|
active
|
|
480
180
|
taxId
|
|
481
181
|
paymentTerms
|
|
182
|
+
bankName
|
|
183
|
+
bankBranch
|
|
184
|
+
bankAccount
|
|
185
|
+
country
|
|
186
|
+
phone
|
|
187
|
+
mobile
|
|
188
|
+
contactPerson
|
|
189
|
+
emails
|
|
482
190
|
labels
|
|
483
191
|
creationDate
|
|
484
192
|
lastUpdateDate
|
|
485
193
|
department
|
|
486
194
|
accountingKey
|
|
195
|
+
address
|
|
196
|
+
city
|
|
197
|
+
zip
|
|
198
|
+
fax
|
|
487
199
|
remarks
|
|
488
200
|
incomeAmount
|
|
489
201
|
paymentAmount
|
|
@@ -512,14 +224,12 @@ export const getExpense_queryDocument = gql `
|
|
|
512
224
|
}
|
|
513
225
|
`;
|
|
514
226
|
export const searchExpenses_queryDocument = gql `
|
|
515
|
-
query searchExpenses_query($input:
|
|
227
|
+
query searchExpenses_query($input: searchExpensesRequest_Input) {
|
|
516
228
|
searchExpenses(input: $input) {
|
|
517
229
|
total
|
|
518
230
|
page
|
|
519
231
|
pageSize
|
|
520
232
|
pages
|
|
521
|
-
from
|
|
522
|
-
to
|
|
523
233
|
items {
|
|
524
234
|
amountExcludeVat
|
|
525
235
|
id
|
|
@@ -538,28 +248,28 @@ export const searchExpenses_queryDocument = gql `
|
|
|
538
248
|
description
|
|
539
249
|
remarks
|
|
540
250
|
supplier {
|
|
541
|
-
phone
|
|
542
|
-
mobile
|
|
543
|
-
emails
|
|
544
|
-
fax
|
|
545
|
-
contactPerson
|
|
546
|
-
address
|
|
547
|
-
city
|
|
548
|
-
zip
|
|
549
|
-
country
|
|
550
|
-
bankName
|
|
551
|
-
bankBranch
|
|
552
|
-
bankAccount
|
|
553
251
|
id
|
|
554
252
|
name
|
|
555
253
|
active
|
|
556
254
|
taxId
|
|
557
255
|
paymentTerms
|
|
256
|
+
bankName
|
|
257
|
+
bankBranch
|
|
258
|
+
bankAccount
|
|
259
|
+
country
|
|
260
|
+
phone
|
|
261
|
+
mobile
|
|
262
|
+
contactPerson
|
|
263
|
+
emails
|
|
558
264
|
labels
|
|
559
265
|
creationDate
|
|
560
266
|
lastUpdateDate
|
|
561
267
|
department
|
|
562
268
|
accountingKey
|
|
269
|
+
address
|
|
270
|
+
city
|
|
271
|
+
zip
|
|
272
|
+
fax
|
|
563
273
|
remarks
|
|
564
274
|
incomeAmount
|
|
565
275
|
paymentAmount
|
|
@@ -579,25 +289,157 @@ export const searchExpenses_queryDocument = gql `
|
|
|
579
289
|
type
|
|
580
290
|
vat
|
|
581
291
|
}
|
|
582
|
-
amountLocal
|
|
583
|
-
amountAccounting
|
|
584
|
-
vatAccounting
|
|
585
|
-
creationDate
|
|
586
|
-
lastUpdateDate
|
|
292
|
+
amountLocal
|
|
293
|
+
amountAccounting
|
|
294
|
+
vatAccounting
|
|
295
|
+
creationDate
|
|
296
|
+
lastUpdateDate
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
`;
|
|
301
|
+
export const searchDocuments_queryDocument = gql `
|
|
302
|
+
query searchDocuments_query($input: searchDocumentsRequest_Input) {
|
|
303
|
+
searchDocuments(input: $input) {
|
|
304
|
+
total
|
|
305
|
+
page
|
|
306
|
+
pageSize
|
|
307
|
+
pages
|
|
308
|
+
items {
|
|
309
|
+
amount
|
|
310
|
+
amountDueVat
|
|
311
|
+
amountDueVatLocal
|
|
312
|
+
amountExcludeVat
|
|
313
|
+
amountExemptVat
|
|
314
|
+
amountLocal
|
|
315
|
+
amountOpened
|
|
316
|
+
business {
|
|
317
|
+
accountantDocsEmailSettings
|
|
318
|
+
accountantEmails
|
|
319
|
+
accountantReportEmailSettings
|
|
320
|
+
accountingType
|
|
321
|
+
active
|
|
322
|
+
advanceNationalInsuranceRate
|
|
323
|
+
advanceTaxRate
|
|
324
|
+
bankDisplay
|
|
325
|
+
bankDisplayEn
|
|
326
|
+
deductionRate
|
|
327
|
+
documentsEmailSettings
|
|
328
|
+
emailSubjectType
|
|
329
|
+
exemption
|
|
330
|
+
incomeReportEmailSettings
|
|
331
|
+
incomeReportFormatType
|
|
332
|
+
reportSendingDay
|
|
333
|
+
senderEmailSettings
|
|
334
|
+
type
|
|
335
|
+
}
|
|
336
|
+
calculatedAmountLocal
|
|
337
|
+
calculatedAmountOpenedLocal
|
|
338
|
+
calculatedIncomeAmountExcludeLocal
|
|
339
|
+
calculatedIncomeAmountLocal
|
|
340
|
+
calculatedPaymentAmountLocal
|
|
341
|
+
cancellable
|
|
342
|
+
cancelType
|
|
343
|
+
client {
|
|
344
|
+
country
|
|
345
|
+
emails
|
|
346
|
+
id
|
|
347
|
+
name
|
|
348
|
+
phone
|
|
349
|
+
taxId
|
|
350
|
+
self
|
|
351
|
+
}
|
|
352
|
+
creationDate
|
|
353
|
+
currency
|
|
354
|
+
currencyRate
|
|
355
|
+
data {
|
|
356
|
+
tags
|
|
357
|
+
}
|
|
358
|
+
description
|
|
359
|
+
documentDate
|
|
360
|
+
downloaded
|
|
361
|
+
footer
|
|
362
|
+
id
|
|
363
|
+
income {
|
|
364
|
+
amount
|
|
365
|
+
amountTotal
|
|
366
|
+
catalogNum
|
|
367
|
+
currency
|
|
368
|
+
currencyRate
|
|
369
|
+
description
|
|
370
|
+
itemId
|
|
371
|
+
price
|
|
372
|
+
quantity
|
|
373
|
+
vat
|
|
374
|
+
vatRate
|
|
375
|
+
vatType
|
|
376
|
+
}
|
|
377
|
+
lang
|
|
378
|
+
linkedDocuments {
|
|
379
|
+
amount
|
|
380
|
+
currency
|
|
381
|
+
currencyRate
|
|
382
|
+
documentDate
|
|
383
|
+
id
|
|
384
|
+
number
|
|
385
|
+
reverseCharge
|
|
386
|
+
type
|
|
387
|
+
}
|
|
388
|
+
number
|
|
389
|
+
payment {
|
|
390
|
+
currency
|
|
391
|
+
currencyRate
|
|
392
|
+
date
|
|
393
|
+
price
|
|
394
|
+
type
|
|
395
|
+
subType
|
|
396
|
+
bankName
|
|
397
|
+
bankBranch
|
|
398
|
+
bankAccount
|
|
399
|
+
chequeNum
|
|
400
|
+
accountId
|
|
401
|
+
transactionId
|
|
402
|
+
appType
|
|
403
|
+
cardType
|
|
404
|
+
cardNum
|
|
405
|
+
dealType
|
|
406
|
+
numPayments
|
|
407
|
+
firstPayment
|
|
408
|
+
}
|
|
409
|
+
ref
|
|
410
|
+
remarks
|
|
411
|
+
reverseCharge
|
|
412
|
+
rounding
|
|
413
|
+
signed
|
|
414
|
+
skinId
|
|
415
|
+
status
|
|
416
|
+
taxConfirmationEligible
|
|
417
|
+
templateId
|
|
418
|
+
type
|
|
419
|
+
url {
|
|
420
|
+
he
|
|
421
|
+
en
|
|
422
|
+
origin
|
|
423
|
+
}
|
|
424
|
+
userName
|
|
425
|
+
vat
|
|
426
|
+
vatLocal
|
|
427
|
+
vatRate
|
|
428
|
+
vatType
|
|
587
429
|
}
|
|
588
430
|
}
|
|
589
431
|
}
|
|
590
432
|
`;
|
|
591
433
|
export const searchExpenseDrafts_queryDocument = gql `
|
|
592
|
-
query searchExpenseDrafts_query($input:
|
|
434
|
+
query searchExpenseDrafts_query($input: searchExpenseDraftsRequest_Input) {
|
|
593
435
|
searchExpenseDrafts(input: $input) {
|
|
594
|
-
... on
|
|
436
|
+
... on searchExpenseDraftsResponse {
|
|
595
437
|
total
|
|
438
|
+
from
|
|
439
|
+
to
|
|
596
440
|
page
|
|
597
441
|
pageSize
|
|
598
442
|
pages
|
|
599
|
-
from
|
|
600
|
-
to
|
|
601
443
|
aggregations {
|
|
602
444
|
totalAmount {
|
|
603
445
|
value
|
|
@@ -640,34 +482,34 @@ export const searchExpenseDrafts_queryDocument = gql `
|
|
|
640
482
|
... on Boolean_container {
|
|
641
483
|
Boolean
|
|
642
484
|
}
|
|
643
|
-
... on
|
|
644
|
-
|
|
485
|
+
... on query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType_oneOf_1_container {
|
|
486
|
+
query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType_oneOf_1
|
|
645
487
|
}
|
|
646
488
|
}
|
|
647
489
|
reportingDate
|
|
648
490
|
supplier {
|
|
649
|
-
phone
|
|
650
|
-
mobile
|
|
651
|
-
emails
|
|
652
|
-
fax
|
|
653
|
-
contactPerson
|
|
654
|
-
address
|
|
655
|
-
city
|
|
656
|
-
zip
|
|
657
|
-
country
|
|
658
|
-
bankName
|
|
659
|
-
bankBranch
|
|
660
|
-
bankAccount
|
|
661
491
|
id
|
|
662
492
|
name
|
|
663
493
|
active
|
|
664
494
|
taxId
|
|
665
495
|
paymentTerms
|
|
496
|
+
bankName
|
|
497
|
+
bankBranch
|
|
498
|
+
bankAccount
|
|
499
|
+
country
|
|
500
|
+
phone
|
|
501
|
+
mobile
|
|
502
|
+
contactPerson
|
|
503
|
+
emails
|
|
666
504
|
labels
|
|
667
505
|
creationDate
|
|
668
506
|
lastUpdateDate
|
|
669
507
|
department
|
|
670
508
|
accountingKey
|
|
509
|
+
address
|
|
510
|
+
city
|
|
511
|
+
zip
|
|
512
|
+
fax
|
|
671
513
|
remarks
|
|
672
514
|
incomeAmount
|
|
673
515
|
paymentAmount
|
|
@@ -679,41 +521,181 @@ export const searchExpenseDrafts_queryDocument = gql `
|
|
|
679
521
|
}
|
|
680
522
|
}
|
|
681
523
|
}
|
|
682
|
-
... on
|
|
683
|
-
|
|
524
|
+
... on generalErrorResponse {
|
|
525
|
+
errorCode_
|
|
684
526
|
errorMessage
|
|
685
527
|
}
|
|
686
528
|
}
|
|
687
529
|
}
|
|
688
530
|
`;
|
|
531
|
+
export const getDocument_queryDocument = gql `
|
|
532
|
+
query getDocument_query($id: String!) {
|
|
533
|
+
getDocument(id: $id) {
|
|
534
|
+
amount
|
|
535
|
+
amountDueVat
|
|
536
|
+
amountDueVatLocal
|
|
537
|
+
amountExcludeVat
|
|
538
|
+
amountExemptVat
|
|
539
|
+
amountLocal
|
|
540
|
+
amountOpened
|
|
541
|
+
business {
|
|
542
|
+
accountantDocsEmailSettings
|
|
543
|
+
accountantEmails
|
|
544
|
+
accountantReportEmailSettings
|
|
545
|
+
accountingType
|
|
546
|
+
active
|
|
547
|
+
advanceNationalInsuranceRate
|
|
548
|
+
advanceTaxRate
|
|
549
|
+
bankDisplay
|
|
550
|
+
bankDisplayEn
|
|
551
|
+
deductionRate
|
|
552
|
+
documentsEmailSettings
|
|
553
|
+
emailSubjectType
|
|
554
|
+
exemption
|
|
555
|
+
incomeReportEmailSettings
|
|
556
|
+
incomeReportFormatType
|
|
557
|
+
reportSendingDay
|
|
558
|
+
senderEmailSettings
|
|
559
|
+
type
|
|
560
|
+
}
|
|
561
|
+
calculatedAmountLocal
|
|
562
|
+
calculatedAmountOpenedLocal
|
|
563
|
+
calculatedIncomeAmountExcludeLocal
|
|
564
|
+
calculatedIncomeAmountLocal
|
|
565
|
+
calculatedPaymentAmountLocal
|
|
566
|
+
cancellable
|
|
567
|
+
cancelType
|
|
568
|
+
client {
|
|
569
|
+
country
|
|
570
|
+
emails
|
|
571
|
+
id
|
|
572
|
+
name
|
|
573
|
+
phone
|
|
574
|
+
taxId
|
|
575
|
+
self
|
|
576
|
+
}
|
|
577
|
+
creationDate
|
|
578
|
+
currency
|
|
579
|
+
currencyRate
|
|
580
|
+
data {
|
|
581
|
+
tags
|
|
582
|
+
}
|
|
583
|
+
description
|
|
584
|
+
documentDate
|
|
585
|
+
downloaded
|
|
586
|
+
footer
|
|
587
|
+
id
|
|
588
|
+
income {
|
|
589
|
+
amount
|
|
590
|
+
amountTotal
|
|
591
|
+
catalogNum
|
|
592
|
+
currency
|
|
593
|
+
currencyRate
|
|
594
|
+
description
|
|
595
|
+
itemId
|
|
596
|
+
price
|
|
597
|
+
quantity
|
|
598
|
+
vat
|
|
599
|
+
vatRate
|
|
600
|
+
vatType
|
|
601
|
+
}
|
|
602
|
+
lang
|
|
603
|
+
linkedDocuments {
|
|
604
|
+
amount
|
|
605
|
+
currency
|
|
606
|
+
currencyRate
|
|
607
|
+
documentDate
|
|
608
|
+
id
|
|
609
|
+
number
|
|
610
|
+
reverseCharge
|
|
611
|
+
type
|
|
612
|
+
}
|
|
613
|
+
number
|
|
614
|
+
payment {
|
|
615
|
+
currency
|
|
616
|
+
currencyRate
|
|
617
|
+
date
|
|
618
|
+
price
|
|
619
|
+
type
|
|
620
|
+
subType
|
|
621
|
+
bankName
|
|
622
|
+
bankBranch
|
|
623
|
+
bankAccount
|
|
624
|
+
chequeNum
|
|
625
|
+
accountId
|
|
626
|
+
transactionId
|
|
627
|
+
appType
|
|
628
|
+
cardType
|
|
629
|
+
cardNum
|
|
630
|
+
dealType
|
|
631
|
+
numPayments
|
|
632
|
+
firstPayment
|
|
633
|
+
}
|
|
634
|
+
ref
|
|
635
|
+
remarks
|
|
636
|
+
reverseCharge
|
|
637
|
+
rounding
|
|
638
|
+
signed
|
|
639
|
+
skinId
|
|
640
|
+
status
|
|
641
|
+
taxConfirmationEligible
|
|
642
|
+
templateId
|
|
643
|
+
type
|
|
644
|
+
url {
|
|
645
|
+
he
|
|
646
|
+
en
|
|
647
|
+
origin
|
|
648
|
+
}
|
|
649
|
+
userName
|
|
650
|
+
vat
|
|
651
|
+
vatLocal
|
|
652
|
+
vatRate
|
|
653
|
+
vatType
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
`;
|
|
657
|
+
export const getLinkedDocuments_queryDocument = gql `
|
|
658
|
+
query getLinkedDocuments_query($id: String!) {
|
|
659
|
+
getLinkedDocuments(id: $id) {
|
|
660
|
+
amount
|
|
661
|
+
currency
|
|
662
|
+
currencyRate
|
|
663
|
+
documentDate
|
|
664
|
+
id
|
|
665
|
+
number
|
|
666
|
+
status
|
|
667
|
+
type
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
`;
|
|
689
671
|
export const getClient_queryDocument = gql `
|
|
690
672
|
query getClient_query($id: String!) {
|
|
691
673
|
getClient(id: $id) {
|
|
692
|
-
phone
|
|
693
|
-
mobile
|
|
694
|
-
emails
|
|
695
|
-
fax
|
|
696
|
-
contactPerson
|
|
697
|
-
address
|
|
698
|
-
city
|
|
699
|
-
zip
|
|
700
|
-
country
|
|
701
|
-
bankName
|
|
702
|
-
bankBranch
|
|
703
|
-
bankAccount
|
|
704
674
|
id
|
|
705
675
|
name
|
|
706
676
|
active
|
|
707
677
|
taxId
|
|
708
678
|
paymentTerms
|
|
679
|
+
bankName
|
|
680
|
+
bankBranch
|
|
681
|
+
bankAccount
|
|
682
|
+
country
|
|
683
|
+
phone
|
|
684
|
+
mobile
|
|
685
|
+
contactPerson
|
|
686
|
+
emails
|
|
709
687
|
labels
|
|
710
688
|
creationDate
|
|
711
689
|
lastUpdateDate
|
|
712
690
|
send
|
|
713
691
|
department
|
|
714
692
|
accountingKey
|
|
693
|
+
address
|
|
694
|
+
city
|
|
695
|
+
zip
|
|
715
696
|
category
|
|
716
697
|
subCategory
|
|
698
|
+
fax
|
|
717
699
|
remarks
|
|
718
700
|
incomeAmount
|
|
719
701
|
paymentAmount
|
|
@@ -769,55 +751,29 @@ export const getBankTransactions_queryDocument = gql `
|
|
|
769
751
|
classification
|
|
770
752
|
bookingStatus
|
|
771
753
|
source
|
|
772
|
-
amount
|
|
773
|
-
resourceId
|
|
774
|
-
creditorName
|
|
775
|
-
creditorAccount
|
|
776
|
-
currency
|
|
777
|
-
valueDate
|
|
778
|
-
bookingDate
|
|
779
|
-
checkId
|
|
780
|
-
description
|
|
781
|
-
debtorName
|
|
782
|
-
debtorAccount
|
|
783
|
-
type
|
|
784
|
-
name
|
|
785
|
-
date
|
|
786
|
-
iban
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
`;
|
|
791
|
-
export const addDocument_mutationDocument = gql `
|
|
792
|
-
mutation addDocument_mutation($input: _DOLLAR_defs_addDocumentRequest_Input) {
|
|
793
|
-
addDocument(input: $input) {
|
|
794
|
-
... on _DOLLAR_defs_AddedDocument {
|
|
795
|
-
id
|
|
796
|
-
lang
|
|
797
|
-
number
|
|
798
|
-
signed
|
|
799
|
-
url {
|
|
800
|
-
he
|
|
801
|
-
en
|
|
802
|
-
origin
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
... on _DOLLAR_defs_ErrorResponse {
|
|
806
|
-
errorCode
|
|
807
|
-
errorMessage
|
|
754
|
+
amount
|
|
755
|
+
resourceId
|
|
756
|
+
creditorName
|
|
757
|
+
creditorAccount
|
|
758
|
+
currency
|
|
759
|
+
valueDate
|
|
760
|
+
bookingDate
|
|
761
|
+
checkId
|
|
762
|
+
description
|
|
763
|
+
debtorName
|
|
764
|
+
debtorAccount
|
|
765
|
+
type
|
|
766
|
+
name
|
|
767
|
+
date
|
|
768
|
+
iban
|
|
808
769
|
}
|
|
809
770
|
}
|
|
810
771
|
}
|
|
811
772
|
`;
|
|
812
|
-
export const closeDocument_mutationDocument = gql `
|
|
813
|
-
mutation closeDocument_mutation($id: String!) {
|
|
814
|
-
closeDocument(id: $id)
|
|
815
|
-
}
|
|
816
|
-
`;
|
|
817
773
|
export const addExpense_mutationDocument = gql `
|
|
818
|
-
mutation addExpense_mutation($input:
|
|
774
|
+
mutation addExpense_mutation($input: Expense_Input) {
|
|
819
775
|
addExpense(input: $input) {
|
|
820
|
-
... on
|
|
776
|
+
... on Expense {
|
|
821
777
|
paymentType {
|
|
822
778
|
... on Boolean_container {
|
|
823
779
|
Boolean
|
|
@@ -837,50 +793,34 @@ export const addExpense_mutationDocument = gql `
|
|
|
837
793
|
number
|
|
838
794
|
description
|
|
839
795
|
remarks
|
|
840
|
-
supplier
|
|
841
|
-
|
|
842
|
-
mobile
|
|
843
|
-
emails
|
|
844
|
-
fax
|
|
845
|
-
contactPerson
|
|
846
|
-
address
|
|
847
|
-
city
|
|
848
|
-
zip
|
|
849
|
-
country
|
|
850
|
-
bankName
|
|
851
|
-
bankBranch
|
|
852
|
-
bankAccount
|
|
853
|
-
id
|
|
854
|
-
name
|
|
855
|
-
active
|
|
856
|
-
taxId
|
|
857
|
-
paymentTerms
|
|
858
|
-
labels
|
|
859
|
-
creationDate
|
|
860
|
-
lastUpdateDate
|
|
861
|
-
department
|
|
862
|
-
accountingKey
|
|
863
|
-
remarks
|
|
864
|
-
incomeAmount
|
|
865
|
-
paymentAmount
|
|
866
|
-
balanceAmount
|
|
867
|
-
}
|
|
868
|
-
accountingClassification {
|
|
869
|
-
id
|
|
870
|
-
key
|
|
871
|
-
code
|
|
872
|
-
title
|
|
873
|
-
irsCode
|
|
874
|
-
income
|
|
875
|
-
type
|
|
876
|
-
vat
|
|
877
|
-
}
|
|
796
|
+
supplier
|
|
797
|
+
accountingClassification
|
|
878
798
|
active
|
|
879
799
|
addRecipient
|
|
880
800
|
addAccountingClassification
|
|
881
|
-
JSON
|
|
882
801
|
}
|
|
883
|
-
... on
|
|
802
|
+
... on ErrorResponse {
|
|
803
|
+
errorCode
|
|
804
|
+
errorMessage
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
`;
|
|
809
|
+
export const addDocument_mutationDocument = gql `
|
|
810
|
+
mutation addDocument_mutation($input: addDocumentRequest_Input) {
|
|
811
|
+
addDocument(input: $input) {
|
|
812
|
+
... on AddedDocument {
|
|
813
|
+
id
|
|
814
|
+
lang
|
|
815
|
+
number
|
|
816
|
+
signed
|
|
817
|
+
url {
|
|
818
|
+
he
|
|
819
|
+
en
|
|
820
|
+
origin
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
... on ErrorResponse {
|
|
884
824
|
errorCode
|
|
885
825
|
errorMessage
|
|
886
826
|
}
|
|
@@ -888,9 +828,9 @@ export const addExpense_mutationDocument = gql `
|
|
|
888
828
|
}
|
|
889
829
|
`;
|
|
890
830
|
export const updateExpense_mutationDocument = gql `
|
|
891
|
-
mutation updateExpense_mutation($id: String, $input:
|
|
831
|
+
mutation updateExpense_mutation($id: String, $input: updateExpenseRequest_Input) {
|
|
892
832
|
updateExpense(id: $id, input: $input) {
|
|
893
|
-
... on
|
|
833
|
+
... on GetExpense {
|
|
894
834
|
amountExcludeVat
|
|
895
835
|
id
|
|
896
836
|
businessType
|
|
@@ -908,28 +848,28 @@ export const updateExpense_mutationDocument = gql `
|
|
|
908
848
|
description
|
|
909
849
|
remarks
|
|
910
850
|
supplier {
|
|
911
|
-
phone
|
|
912
|
-
mobile
|
|
913
|
-
emails
|
|
914
|
-
fax
|
|
915
|
-
contactPerson
|
|
916
|
-
address
|
|
917
|
-
city
|
|
918
|
-
zip
|
|
919
|
-
country
|
|
920
|
-
bankName
|
|
921
|
-
bankBranch
|
|
922
|
-
bankAccount
|
|
923
851
|
id
|
|
924
852
|
name
|
|
925
853
|
active
|
|
926
854
|
taxId
|
|
927
855
|
paymentTerms
|
|
856
|
+
bankName
|
|
857
|
+
bankBranch
|
|
858
|
+
bankAccount
|
|
859
|
+
country
|
|
860
|
+
phone
|
|
861
|
+
mobile
|
|
862
|
+
contactPerson
|
|
863
|
+
emails
|
|
928
864
|
labels
|
|
929
865
|
creationDate
|
|
930
866
|
lastUpdateDate
|
|
931
867
|
department
|
|
932
868
|
accountingKey
|
|
869
|
+
address
|
|
870
|
+
city
|
|
871
|
+
zip
|
|
872
|
+
fax
|
|
933
873
|
remarks
|
|
934
874
|
incomeAmount
|
|
935
875
|
paymentAmount
|
|
@@ -955,7 +895,7 @@ export const updateExpense_mutationDocument = gql `
|
|
|
955
895
|
creationDate
|
|
956
896
|
lastUpdateDate
|
|
957
897
|
}
|
|
958
|
-
... on
|
|
898
|
+
... on ErrorResponse {
|
|
959
899
|
errorCode
|
|
960
900
|
errorMessage
|
|
961
901
|
}
|
|
@@ -963,9 +903,9 @@ export const updateExpense_mutationDocument = gql `
|
|
|
963
903
|
}
|
|
964
904
|
`;
|
|
965
905
|
export const addExpenseDraftByFile_mutationDocument = gql `
|
|
966
|
-
mutation addExpenseDraftByFile_mutation($input:
|
|
906
|
+
mutation addExpenseDraftByFile_mutation($input: addExpenseDraftByFileRequest_Input) {
|
|
967
907
|
addExpenseDraftByFile(input: $input) {
|
|
968
|
-
... on
|
|
908
|
+
... on GetExpenseDraft {
|
|
969
909
|
id
|
|
970
910
|
status
|
|
971
911
|
creationDate
|
|
@@ -991,28 +931,28 @@ export const addExpenseDraftByFile_mutationDocument = gql `
|
|
|
991
931
|
description
|
|
992
932
|
remarks
|
|
993
933
|
supplier {
|
|
994
|
-
phone
|
|
995
|
-
mobile
|
|
996
|
-
emails
|
|
997
|
-
fax
|
|
998
|
-
contactPerson
|
|
999
|
-
address
|
|
1000
|
-
city
|
|
1001
|
-
zip
|
|
1002
|
-
country
|
|
1003
|
-
bankName
|
|
1004
|
-
bankBranch
|
|
1005
|
-
bankAccount
|
|
1006
934
|
id
|
|
1007
935
|
name
|
|
1008
936
|
active
|
|
1009
937
|
taxId
|
|
1010
938
|
paymentTerms
|
|
939
|
+
bankName
|
|
940
|
+
bankBranch
|
|
941
|
+
bankAccount
|
|
942
|
+
country
|
|
943
|
+
phone
|
|
944
|
+
mobile
|
|
945
|
+
contactPerson
|
|
946
|
+
emails
|
|
1011
947
|
labels
|
|
1012
948
|
creationDate
|
|
1013
949
|
lastUpdateDate
|
|
1014
950
|
department
|
|
1015
951
|
accountingKey
|
|
952
|
+
address
|
|
953
|
+
city
|
|
954
|
+
zip
|
|
955
|
+
fax
|
|
1016
956
|
remarks
|
|
1017
957
|
incomeAmount
|
|
1018
958
|
paymentAmount
|
|
@@ -1035,159 +975,41 @@ export const addExpenseDraftByFile_mutationDocument = gql `
|
|
|
1035
975
|
thumbnail
|
|
1036
976
|
url
|
|
1037
977
|
}
|
|
1038
|
-
... on
|
|
1039
|
-
|
|
1040
|
-
errorMessage
|
|
1041
|
-
}
|
|
1042
|
-
}
|
|
1043
|
-
}
|
|
1044
|
-
`;
|
|
1045
|
-
export const addClient_mutationDocument = gql `
|
|
1046
|
-
mutation addClient_mutation($input: _DOLLAR_defs_addClientRequest_Input) {
|
|
1047
|
-
addClient(input: $input) {
|
|
1048
|
-
... on _DOLLAR_defs_getClientResponse {
|
|
1049
|
-
phone
|
|
1050
|
-
mobile
|
|
1051
|
-
emails
|
|
1052
|
-
fax
|
|
1053
|
-
contactPerson
|
|
1054
|
-
address
|
|
1055
|
-
city
|
|
1056
|
-
zip
|
|
1057
|
-
country
|
|
1058
|
-
bankName
|
|
1059
|
-
bankBranch
|
|
1060
|
-
bankAccount
|
|
1061
|
-
id
|
|
1062
|
-
name
|
|
1063
|
-
active
|
|
1064
|
-
taxId
|
|
1065
|
-
paymentTerms
|
|
1066
|
-
labels
|
|
1067
|
-
creationDate
|
|
1068
|
-
lastUpdateDate
|
|
1069
|
-
send
|
|
1070
|
-
department
|
|
1071
|
-
accountingKey
|
|
1072
|
-
category
|
|
1073
|
-
subCategory
|
|
1074
|
-
remarks
|
|
1075
|
-
incomeAmount
|
|
1076
|
-
paymentAmount
|
|
1077
|
-
balanceAmount
|
|
1078
|
-
}
|
|
1079
|
-
... on _DOLLAR_defs_ErrorResponse {
|
|
1080
|
-
errorCode
|
|
1081
|
-
errorMessage
|
|
1082
|
-
}
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
`;
|
|
1086
|
-
export const updateClient_mutationDocument = gql `
|
|
1087
|
-
mutation updateClient_mutation($id: String!, $input: _DOLLAR_defs_updateClientRequest_Input) {
|
|
1088
|
-
updateClient(id: $id, input: $input) {
|
|
1089
|
-
... on _DOLLAR_defs_getClientResponse {
|
|
1090
|
-
phone
|
|
1091
|
-
mobile
|
|
1092
|
-
emails
|
|
1093
|
-
fax
|
|
1094
|
-
contactPerson
|
|
1095
|
-
address
|
|
1096
|
-
city
|
|
1097
|
-
zip
|
|
1098
|
-
country
|
|
1099
|
-
bankName
|
|
1100
|
-
bankBranch
|
|
1101
|
-
bankAccount
|
|
1102
|
-
id
|
|
1103
|
-
name
|
|
1104
|
-
active
|
|
1105
|
-
taxId
|
|
1106
|
-
paymentTerms
|
|
1107
|
-
labels
|
|
1108
|
-
creationDate
|
|
1109
|
-
lastUpdateDate
|
|
1110
|
-
send
|
|
1111
|
-
department
|
|
1112
|
-
accountingKey
|
|
1113
|
-
category
|
|
1114
|
-
subCategory
|
|
1115
|
-
remarks
|
|
1116
|
-
incomeAmount
|
|
1117
|
-
paymentAmount
|
|
1118
|
-
balanceAmount
|
|
1119
|
-
}
|
|
1120
|
-
... on _DOLLAR_defs_ErrorResponse {
|
|
1121
|
-
errorCode
|
|
978
|
+
... on generalErrorResponse {
|
|
979
|
+
errorCode_
|
|
1122
980
|
errorMessage
|
|
1123
981
|
}
|
|
1124
982
|
}
|
|
1125
983
|
}
|
|
1126
984
|
`;
|
|
1127
|
-
export const
|
|
1128
|
-
mutation
|
|
1129
|
-
|
|
1130
|
-
... on _DOLLAR_defs_getClientResponse {
|
|
1131
|
-
phone
|
|
1132
|
-
mobile
|
|
1133
|
-
emails
|
|
1134
|
-
fax
|
|
1135
|
-
contactPerson
|
|
1136
|
-
address
|
|
1137
|
-
city
|
|
1138
|
-
zip
|
|
1139
|
-
country
|
|
1140
|
-
bankName
|
|
1141
|
-
bankBranch
|
|
1142
|
-
bankAccount
|
|
1143
|
-
id
|
|
1144
|
-
name
|
|
1145
|
-
active
|
|
1146
|
-
taxId
|
|
1147
|
-
paymentTerms
|
|
1148
|
-
labels
|
|
1149
|
-
creationDate
|
|
1150
|
-
lastUpdateDate
|
|
1151
|
-
send
|
|
1152
|
-
department
|
|
1153
|
-
accountingKey
|
|
1154
|
-
category
|
|
1155
|
-
subCategory
|
|
1156
|
-
remarks
|
|
1157
|
-
incomeAmount
|
|
1158
|
-
paymentAmount
|
|
1159
|
-
balanceAmount
|
|
1160
|
-
}
|
|
1161
|
-
... on _DOLLAR_defs_ErrorResponse {
|
|
1162
|
-
errorCode
|
|
1163
|
-
errorMessage
|
|
1164
|
-
}
|
|
1165
|
-
}
|
|
985
|
+
export const closeDocument_mutationDocument = gql `
|
|
986
|
+
mutation closeDocument_mutation($id: String!) {
|
|
987
|
+
closeDocument(id: $id)
|
|
1166
988
|
}
|
|
1167
989
|
`;
|
|
1168
990
|
export function getSdk(requester) {
|
|
1169
991
|
return {
|
|
1170
|
-
getDocument_query(variables, options) {
|
|
1171
|
-
return requester(getDocument_queryDocument, variables, options);
|
|
1172
|
-
},
|
|
1173
|
-
searchDocuments_query(variables, options) {
|
|
1174
|
-
return requester(searchDocuments_queryDocument, variables, options);
|
|
1175
|
-
},
|
|
1176
992
|
previewDocument_query(variables, options) {
|
|
1177
993
|
return requester(previewDocument_queryDocument, variables, options);
|
|
1178
994
|
},
|
|
1179
|
-
getLinkedDocuments_query(variables, options) {
|
|
1180
|
-
return requester(getLinkedDocuments_queryDocument, variables, options);
|
|
1181
|
-
},
|
|
1182
995
|
getExpense_query(variables, options) {
|
|
1183
996
|
return requester(getExpense_queryDocument, variables, options);
|
|
1184
997
|
},
|
|
1185
998
|
searchExpenses_query(variables, options) {
|
|
1186
999
|
return requester(searchExpenses_queryDocument, variables, options);
|
|
1187
1000
|
},
|
|
1001
|
+
searchDocuments_query(variables, options) {
|
|
1002
|
+
return requester(searchDocuments_queryDocument, variables, options);
|
|
1003
|
+
},
|
|
1188
1004
|
searchExpenseDrafts_query(variables, options) {
|
|
1189
1005
|
return requester(searchExpenseDrafts_queryDocument, variables, options);
|
|
1190
1006
|
},
|
|
1007
|
+
getDocument_query(variables, options) {
|
|
1008
|
+
return requester(getDocument_queryDocument, variables, options);
|
|
1009
|
+
},
|
|
1010
|
+
getLinkedDocuments_query(variables, options) {
|
|
1011
|
+
return requester(getLinkedDocuments_queryDocument, variables, options);
|
|
1012
|
+
},
|
|
1191
1013
|
getClient_query(variables, options) {
|
|
1192
1014
|
return requester(getClient_queryDocument, variables, options);
|
|
1193
1015
|
},
|
|
@@ -1197,29 +1019,20 @@ export function getSdk(requester) {
|
|
|
1197
1019
|
getBankTransactions_query(variables, options) {
|
|
1198
1020
|
return requester(getBankTransactions_queryDocument, variables, options);
|
|
1199
1021
|
},
|
|
1200
|
-
addDocument_mutation(variables, options) {
|
|
1201
|
-
return requester(addDocument_mutationDocument, variables, options);
|
|
1202
|
-
},
|
|
1203
|
-
closeDocument_mutation(variables, options) {
|
|
1204
|
-
return requester(closeDocument_mutationDocument, variables, options);
|
|
1205
|
-
},
|
|
1206
1022
|
addExpense_mutation(variables, options) {
|
|
1207
1023
|
return requester(addExpense_mutationDocument, variables, options);
|
|
1208
1024
|
},
|
|
1025
|
+
addDocument_mutation(variables, options) {
|
|
1026
|
+
return requester(addDocument_mutationDocument, variables, options);
|
|
1027
|
+
},
|
|
1209
1028
|
updateExpense_mutation(variables, options) {
|
|
1210
1029
|
return requester(updateExpense_mutationDocument, variables, options);
|
|
1211
1030
|
},
|
|
1212
1031
|
addExpenseDraftByFile_mutation(variables, options) {
|
|
1213
1032
|
return requester(addExpenseDraftByFile_mutationDocument, variables, options);
|
|
1214
1033
|
},
|
|
1215
|
-
|
|
1216
|
-
return requester(
|
|
1217
|
-
},
|
|
1218
|
-
updateClient_mutation(variables, options) {
|
|
1219
|
-
return requester(updateClient_mutationDocument, variables, options);
|
|
1220
|
-
},
|
|
1221
|
-
deleteClient_mutation(variables, options) {
|
|
1222
|
-
return requester(deleteClient_mutationDocument, variables, options);
|
|
1034
|
+
closeDocument_mutation(variables, options) {
|
|
1035
|
+
return requester(closeDocument_mutationDocument, variables, options);
|
|
1223
1036
|
}
|
|
1224
1037
|
};
|
|
1225
1038
|
}
|