@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
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
36
|
+
exports.closeDocument_mutationDocument = exports.addExpenseDraftByFile_mutationDocument = exports.updateExpense_mutationDocument = exports.addDocument_mutationDocument = exports.addExpense_mutationDocument = exports.getBankTransactions_queryDocument = exports.getFileUploadUrl_queryDocument = exports.getClient_queryDocument = exports.getLinkedDocuments_queryDocument = exports.getDocument_queryDocument = exports.searchExpenseDrafts_queryDocument = exports.searchDocuments_queryDocument = exports.searchExpenses_queryDocument = exports.getExpense_queryDocument = exports.previewDocument_queryDocument = exports.subscribe = exports.execute = exports.pollingInterval = exports.rawServeConfig = void 0;
|
|
37
37
|
exports.getMeshOptions = getMeshOptions;
|
|
38
38
|
exports.createBuiltMeshHTTPHandler = createBuiltMeshHTTPHandler;
|
|
39
39
|
exports.getBuiltMesh = getBuiltMesh;
|
|
@@ -90,7 +90,7 @@ async function getMeshOptions() {
|
|
|
90
90
|
const GreenInvoiceHandler = await Promise.resolve().then(() => __importStar(require("@graphql-mesh/json-schema"))).then(utils_2.handleImport);
|
|
91
91
|
const greenInvoiceHandler = new GreenInvoiceHandler({
|
|
92
92
|
name: "GreenInvoice",
|
|
93
|
-
config: { "endpoint": "https://api.greeninvoice.co.il/api/v1", "operationHeaders": { "Authorization": "Bearer {context.authToken}", "Content-Type": "application/json" }, "operations": [{ "type": "
|
|
93
|
+
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" }] },
|
|
94
94
|
baseDir,
|
|
95
95
|
cache,
|
|
96
96
|
pubsub,
|
|
@@ -101,7 +101,7 @@ async function getMeshOptions() {
|
|
|
101
101
|
const GreenInvoiceNewHandler = await Promise.resolve().then(() => __importStar(require("@graphql-mesh/json-schema"))).then(utils_2.handleImport);
|
|
102
102
|
const greenInvoiceNewHandler = new GreenInvoiceNewHandler({
|
|
103
103
|
name: "GreenInvoiceNew",
|
|
104
|
-
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
|
|
104
|
+
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" }] },
|
|
105
105
|
baseDir,
|
|
106
106
|
cache,
|
|
107
107
|
pubsub,
|
|
@@ -184,307 +184,19 @@ function getMeshSDK(globalContext) {
|
|
|
184
184
|
const sdkRequester$ = getBuiltMesh().then(({ sdkRequesterFactory }) => sdkRequesterFactory(globalContext));
|
|
185
185
|
return getSdk((...args) => sdkRequester$.then(sdkRequester => sdkRequester(...args)));
|
|
186
186
|
}
|
|
187
|
-
exports.getDocument_queryDocument = (0, utils_1.gql) `
|
|
188
|
-
query getDocument_query($id: String!) {
|
|
189
|
-
getDocument(id: $id) {
|
|
190
|
-
amount
|
|
191
|
-
amountDueVat
|
|
192
|
-
amountDueVatLocal
|
|
193
|
-
amountExcludeVat
|
|
194
|
-
amountExemptVat
|
|
195
|
-
amountLocal
|
|
196
|
-
amountOpened
|
|
197
|
-
business {
|
|
198
|
-
accountantDocsEmailSettings
|
|
199
|
-
accountantEmails
|
|
200
|
-
accountantReportEmailSettings
|
|
201
|
-
accountingType
|
|
202
|
-
active
|
|
203
|
-
advanceNationalInsuranceRate
|
|
204
|
-
advanceTaxRate
|
|
205
|
-
bankDisplay
|
|
206
|
-
bankDisplayEn
|
|
207
|
-
deductionRate
|
|
208
|
-
documentsEmailSettings
|
|
209
|
-
emailSubjectType
|
|
210
|
-
exemption
|
|
211
|
-
incomeReportEmailSettings
|
|
212
|
-
incomeReportFormatType
|
|
213
|
-
reportSendingDay
|
|
214
|
-
senderEmailSettings
|
|
215
|
-
type
|
|
216
|
-
}
|
|
217
|
-
calculatedAmountLocal
|
|
218
|
-
calculatedAmountOpenedLocal
|
|
219
|
-
calculatedIncomeAmountExcludeLocal
|
|
220
|
-
calculatedIncomeAmountLocal
|
|
221
|
-
calculatedPaymentAmountLocal
|
|
222
|
-
cancellable
|
|
223
|
-
cancelType
|
|
224
|
-
client {
|
|
225
|
-
country
|
|
226
|
-
emails
|
|
227
|
-
id
|
|
228
|
-
name
|
|
229
|
-
phone
|
|
230
|
-
taxId
|
|
231
|
-
self
|
|
232
|
-
address
|
|
233
|
-
city
|
|
234
|
-
zip
|
|
235
|
-
fax
|
|
236
|
-
mobile
|
|
237
|
-
add
|
|
238
|
-
JSON
|
|
239
|
-
}
|
|
240
|
-
creationDate
|
|
241
|
-
currency
|
|
242
|
-
currencyRate
|
|
243
|
-
data {
|
|
244
|
-
tags
|
|
245
|
-
}
|
|
246
|
-
description
|
|
247
|
-
documentDate
|
|
248
|
-
downloaded
|
|
249
|
-
footer
|
|
250
|
-
id
|
|
251
|
-
income {
|
|
252
|
-
amount
|
|
253
|
-
amountTotal
|
|
254
|
-
catalogNum
|
|
255
|
-
currency
|
|
256
|
-
currencyRate
|
|
257
|
-
description
|
|
258
|
-
itemId
|
|
259
|
-
price
|
|
260
|
-
quantity
|
|
261
|
-
vat
|
|
262
|
-
vatRate
|
|
263
|
-
vatType
|
|
264
|
-
}
|
|
265
|
-
lang
|
|
266
|
-
linkedDocuments {
|
|
267
|
-
amount
|
|
268
|
-
currency
|
|
269
|
-
currencyRate
|
|
270
|
-
documentDate
|
|
271
|
-
id
|
|
272
|
-
number
|
|
273
|
-
reverseCharge
|
|
274
|
-
type
|
|
275
|
-
}
|
|
276
|
-
number
|
|
277
|
-
payment {
|
|
278
|
-
currency
|
|
279
|
-
currencyRate
|
|
280
|
-
date
|
|
281
|
-
price
|
|
282
|
-
type
|
|
283
|
-
subType
|
|
284
|
-
bankName
|
|
285
|
-
bankBranch
|
|
286
|
-
bankAccount
|
|
287
|
-
chequeNum
|
|
288
|
-
accountId
|
|
289
|
-
transactionId
|
|
290
|
-
appType
|
|
291
|
-
cardType
|
|
292
|
-
cardNum
|
|
293
|
-
dealType
|
|
294
|
-
numPayments
|
|
295
|
-
firstPayment
|
|
296
|
-
}
|
|
297
|
-
ref
|
|
298
|
-
remarks
|
|
299
|
-
reverseCharge
|
|
300
|
-
rounding
|
|
301
|
-
signed
|
|
302
|
-
skinId
|
|
303
|
-
status
|
|
304
|
-
taxConfirmationEligible
|
|
305
|
-
templateId
|
|
306
|
-
type
|
|
307
|
-
url {
|
|
308
|
-
he
|
|
309
|
-
en
|
|
310
|
-
origin
|
|
311
|
-
}
|
|
312
|
-
userName
|
|
313
|
-
vat
|
|
314
|
-
vatLocal
|
|
315
|
-
vatRate
|
|
316
|
-
vatType
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
`;
|
|
320
|
-
exports.searchDocuments_queryDocument = (0, utils_1.gql) `
|
|
321
|
-
query searchDocuments_query($input: _DOLLAR_defs_searchDocumentsRequest_Input) {
|
|
322
|
-
searchDocuments(input: $input) {
|
|
323
|
-
total
|
|
324
|
-
page
|
|
325
|
-
pageSize
|
|
326
|
-
pages
|
|
327
|
-
from
|
|
328
|
-
to
|
|
329
|
-
items {
|
|
330
|
-
amount
|
|
331
|
-
amountDueVat
|
|
332
|
-
amountDueVatLocal
|
|
333
|
-
amountExcludeVat
|
|
334
|
-
amountExemptVat
|
|
335
|
-
amountLocal
|
|
336
|
-
amountOpened
|
|
337
|
-
business {
|
|
338
|
-
accountantDocsEmailSettings
|
|
339
|
-
accountantEmails
|
|
340
|
-
accountantReportEmailSettings
|
|
341
|
-
accountingType
|
|
342
|
-
active
|
|
343
|
-
advanceNationalInsuranceRate
|
|
344
|
-
advanceTaxRate
|
|
345
|
-
bankDisplay
|
|
346
|
-
bankDisplayEn
|
|
347
|
-
deductionRate
|
|
348
|
-
documentsEmailSettings
|
|
349
|
-
emailSubjectType
|
|
350
|
-
exemption
|
|
351
|
-
incomeReportEmailSettings
|
|
352
|
-
incomeReportFormatType
|
|
353
|
-
reportSendingDay
|
|
354
|
-
senderEmailSettings
|
|
355
|
-
type
|
|
356
|
-
}
|
|
357
|
-
calculatedAmountLocal
|
|
358
|
-
calculatedAmountOpenedLocal
|
|
359
|
-
calculatedIncomeAmountExcludeLocal
|
|
360
|
-
calculatedIncomeAmountLocal
|
|
361
|
-
calculatedPaymentAmountLocal
|
|
362
|
-
cancellable
|
|
363
|
-
cancelType
|
|
364
|
-
client {
|
|
365
|
-
country
|
|
366
|
-
emails
|
|
367
|
-
id
|
|
368
|
-
name
|
|
369
|
-
phone
|
|
370
|
-
taxId
|
|
371
|
-
self
|
|
372
|
-
address
|
|
373
|
-
city
|
|
374
|
-
zip
|
|
375
|
-
fax
|
|
376
|
-
mobile
|
|
377
|
-
add
|
|
378
|
-
JSON
|
|
379
|
-
}
|
|
380
|
-
creationDate
|
|
381
|
-
currency
|
|
382
|
-
currencyRate
|
|
383
|
-
data {
|
|
384
|
-
tags
|
|
385
|
-
}
|
|
386
|
-
description
|
|
387
|
-
documentDate
|
|
388
|
-
downloaded
|
|
389
|
-
footer
|
|
390
|
-
id
|
|
391
|
-
income {
|
|
392
|
-
amount
|
|
393
|
-
amountTotal
|
|
394
|
-
catalogNum
|
|
395
|
-
currency
|
|
396
|
-
currencyRate
|
|
397
|
-
description
|
|
398
|
-
itemId
|
|
399
|
-
price
|
|
400
|
-
quantity
|
|
401
|
-
vat
|
|
402
|
-
vatRate
|
|
403
|
-
vatType
|
|
404
|
-
}
|
|
405
|
-
lang
|
|
406
|
-
linkedDocuments {
|
|
407
|
-
amount
|
|
408
|
-
currency
|
|
409
|
-
currencyRate
|
|
410
|
-
documentDate
|
|
411
|
-
id
|
|
412
|
-
number
|
|
413
|
-
reverseCharge
|
|
414
|
-
type
|
|
415
|
-
}
|
|
416
|
-
number
|
|
417
|
-
payment {
|
|
418
|
-
currency
|
|
419
|
-
currencyRate
|
|
420
|
-
date
|
|
421
|
-
price
|
|
422
|
-
type
|
|
423
|
-
subType
|
|
424
|
-
bankName
|
|
425
|
-
bankBranch
|
|
426
|
-
bankAccount
|
|
427
|
-
chequeNum
|
|
428
|
-
accountId
|
|
429
|
-
transactionId
|
|
430
|
-
appType
|
|
431
|
-
cardType
|
|
432
|
-
cardNum
|
|
433
|
-
dealType
|
|
434
|
-
numPayments
|
|
435
|
-
firstPayment
|
|
436
|
-
}
|
|
437
|
-
ref
|
|
438
|
-
remarks
|
|
439
|
-
reverseCharge
|
|
440
|
-
rounding
|
|
441
|
-
signed
|
|
442
|
-
skinId
|
|
443
|
-
status
|
|
444
|
-
taxConfirmationEligible
|
|
445
|
-
templateId
|
|
446
|
-
type
|
|
447
|
-
url {
|
|
448
|
-
he
|
|
449
|
-
en
|
|
450
|
-
origin
|
|
451
|
-
}
|
|
452
|
-
userName
|
|
453
|
-
vat
|
|
454
|
-
vatLocal
|
|
455
|
-
vatRate
|
|
456
|
-
vatType
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
`;
|
|
461
187
|
exports.previewDocument_queryDocument = (0, utils_1.gql) `
|
|
462
|
-
query previewDocument_query($input:
|
|
188
|
+
query previewDocument_query($input: DocumentInputNew_Input) {
|
|
463
189
|
previewDocument(input: $input) {
|
|
464
190
|
... on query_previewDocument_oneOf_0 {
|
|
465
191
|
file
|
|
466
192
|
}
|
|
467
|
-
... on
|
|
193
|
+
... on ErrorResponse {
|
|
468
194
|
errorCode
|
|
469
195
|
errorMessage
|
|
470
196
|
}
|
|
471
197
|
}
|
|
472
198
|
}
|
|
473
199
|
`;
|
|
474
|
-
exports.getLinkedDocuments_queryDocument = (0, utils_1.gql) `
|
|
475
|
-
query getLinkedDocuments_query($id: String!) {
|
|
476
|
-
getLinkedDocuments(id: $id) {
|
|
477
|
-
amount
|
|
478
|
-
currency
|
|
479
|
-
currencyRate
|
|
480
|
-
documentDate
|
|
481
|
-
id
|
|
482
|
-
number
|
|
483
|
-
status
|
|
484
|
-
type
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
`;
|
|
488
200
|
exports.getExpense_queryDocument = (0, utils_1.gql) `
|
|
489
201
|
query getExpense_query($id: String!) {
|
|
490
202
|
getExpense(id: $id) {
|
|
@@ -505,28 +217,28 @@ exports.getExpense_queryDocument = (0, utils_1.gql) `
|
|
|
505
217
|
description
|
|
506
218
|
remarks
|
|
507
219
|
supplier {
|
|
508
|
-
phone
|
|
509
|
-
mobile
|
|
510
|
-
emails
|
|
511
|
-
fax
|
|
512
|
-
contactPerson
|
|
513
|
-
address
|
|
514
|
-
city
|
|
515
|
-
zip
|
|
516
|
-
country
|
|
517
|
-
bankName
|
|
518
|
-
bankBranch
|
|
519
|
-
bankAccount
|
|
520
220
|
id
|
|
521
221
|
name
|
|
522
222
|
active
|
|
523
223
|
taxId
|
|
524
224
|
paymentTerms
|
|
225
|
+
bankName
|
|
226
|
+
bankBranch
|
|
227
|
+
bankAccount
|
|
228
|
+
country
|
|
229
|
+
phone
|
|
230
|
+
mobile
|
|
231
|
+
contactPerson
|
|
232
|
+
emails
|
|
525
233
|
labels
|
|
526
234
|
creationDate
|
|
527
235
|
lastUpdateDate
|
|
528
236
|
department
|
|
529
237
|
accountingKey
|
|
238
|
+
address
|
|
239
|
+
city
|
|
240
|
+
zip
|
|
241
|
+
fax
|
|
530
242
|
remarks
|
|
531
243
|
incomeAmount
|
|
532
244
|
paymentAmount
|
|
@@ -555,14 +267,12 @@ exports.getExpense_queryDocument = (0, utils_1.gql) `
|
|
|
555
267
|
}
|
|
556
268
|
`;
|
|
557
269
|
exports.searchExpenses_queryDocument = (0, utils_1.gql) `
|
|
558
|
-
query searchExpenses_query($input:
|
|
270
|
+
query searchExpenses_query($input: searchExpensesRequest_Input) {
|
|
559
271
|
searchExpenses(input: $input) {
|
|
560
272
|
total
|
|
561
273
|
page
|
|
562
274
|
pageSize
|
|
563
275
|
pages
|
|
564
|
-
from
|
|
565
|
-
to
|
|
566
276
|
items {
|
|
567
277
|
amountExcludeVat
|
|
568
278
|
id
|
|
@@ -581,28 +291,28 @@ exports.searchExpenses_queryDocument = (0, utils_1.gql) `
|
|
|
581
291
|
description
|
|
582
292
|
remarks
|
|
583
293
|
supplier {
|
|
584
|
-
phone
|
|
585
|
-
mobile
|
|
586
|
-
emails
|
|
587
|
-
fax
|
|
588
|
-
contactPerson
|
|
589
|
-
address
|
|
590
|
-
city
|
|
591
|
-
zip
|
|
592
|
-
country
|
|
593
|
-
bankName
|
|
594
|
-
bankBranch
|
|
595
|
-
bankAccount
|
|
596
294
|
id
|
|
597
295
|
name
|
|
598
296
|
active
|
|
599
297
|
taxId
|
|
600
298
|
paymentTerms
|
|
299
|
+
bankName
|
|
300
|
+
bankBranch
|
|
301
|
+
bankAccount
|
|
302
|
+
country
|
|
303
|
+
phone
|
|
304
|
+
mobile
|
|
305
|
+
contactPerson
|
|
306
|
+
emails
|
|
601
307
|
labels
|
|
602
308
|
creationDate
|
|
603
309
|
lastUpdateDate
|
|
604
310
|
department
|
|
605
311
|
accountingKey
|
|
312
|
+
address
|
|
313
|
+
city
|
|
314
|
+
zip
|
|
315
|
+
fax
|
|
606
316
|
remarks
|
|
607
317
|
incomeAmount
|
|
608
318
|
paymentAmount
|
|
@@ -622,25 +332,157 @@ exports.searchExpenses_queryDocument = (0, utils_1.gql) `
|
|
|
622
332
|
type
|
|
623
333
|
vat
|
|
624
334
|
}
|
|
625
|
-
amountLocal
|
|
626
|
-
amountAccounting
|
|
627
|
-
vatAccounting
|
|
628
|
-
creationDate
|
|
629
|
-
lastUpdateDate
|
|
335
|
+
amountLocal
|
|
336
|
+
amountAccounting
|
|
337
|
+
vatAccounting
|
|
338
|
+
creationDate
|
|
339
|
+
lastUpdateDate
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
`;
|
|
344
|
+
exports.searchDocuments_queryDocument = (0, utils_1.gql) `
|
|
345
|
+
query searchDocuments_query($input: searchDocumentsRequest_Input) {
|
|
346
|
+
searchDocuments(input: $input) {
|
|
347
|
+
total
|
|
348
|
+
page
|
|
349
|
+
pageSize
|
|
350
|
+
pages
|
|
351
|
+
items {
|
|
352
|
+
amount
|
|
353
|
+
amountDueVat
|
|
354
|
+
amountDueVatLocal
|
|
355
|
+
amountExcludeVat
|
|
356
|
+
amountExemptVat
|
|
357
|
+
amountLocal
|
|
358
|
+
amountOpened
|
|
359
|
+
business {
|
|
360
|
+
accountantDocsEmailSettings
|
|
361
|
+
accountantEmails
|
|
362
|
+
accountantReportEmailSettings
|
|
363
|
+
accountingType
|
|
364
|
+
active
|
|
365
|
+
advanceNationalInsuranceRate
|
|
366
|
+
advanceTaxRate
|
|
367
|
+
bankDisplay
|
|
368
|
+
bankDisplayEn
|
|
369
|
+
deductionRate
|
|
370
|
+
documentsEmailSettings
|
|
371
|
+
emailSubjectType
|
|
372
|
+
exemption
|
|
373
|
+
incomeReportEmailSettings
|
|
374
|
+
incomeReportFormatType
|
|
375
|
+
reportSendingDay
|
|
376
|
+
senderEmailSettings
|
|
377
|
+
type
|
|
378
|
+
}
|
|
379
|
+
calculatedAmountLocal
|
|
380
|
+
calculatedAmountOpenedLocal
|
|
381
|
+
calculatedIncomeAmountExcludeLocal
|
|
382
|
+
calculatedIncomeAmountLocal
|
|
383
|
+
calculatedPaymentAmountLocal
|
|
384
|
+
cancellable
|
|
385
|
+
cancelType
|
|
386
|
+
client {
|
|
387
|
+
country
|
|
388
|
+
emails
|
|
389
|
+
id
|
|
390
|
+
name
|
|
391
|
+
phone
|
|
392
|
+
taxId
|
|
393
|
+
self
|
|
394
|
+
}
|
|
395
|
+
creationDate
|
|
396
|
+
currency
|
|
397
|
+
currencyRate
|
|
398
|
+
data {
|
|
399
|
+
tags
|
|
400
|
+
}
|
|
401
|
+
description
|
|
402
|
+
documentDate
|
|
403
|
+
downloaded
|
|
404
|
+
footer
|
|
405
|
+
id
|
|
406
|
+
income {
|
|
407
|
+
amount
|
|
408
|
+
amountTotal
|
|
409
|
+
catalogNum
|
|
410
|
+
currency
|
|
411
|
+
currencyRate
|
|
412
|
+
description
|
|
413
|
+
itemId
|
|
414
|
+
price
|
|
415
|
+
quantity
|
|
416
|
+
vat
|
|
417
|
+
vatRate
|
|
418
|
+
vatType
|
|
419
|
+
}
|
|
420
|
+
lang
|
|
421
|
+
linkedDocuments {
|
|
422
|
+
amount
|
|
423
|
+
currency
|
|
424
|
+
currencyRate
|
|
425
|
+
documentDate
|
|
426
|
+
id
|
|
427
|
+
number
|
|
428
|
+
reverseCharge
|
|
429
|
+
type
|
|
430
|
+
}
|
|
431
|
+
number
|
|
432
|
+
payment {
|
|
433
|
+
currency
|
|
434
|
+
currencyRate
|
|
435
|
+
date
|
|
436
|
+
price
|
|
437
|
+
type
|
|
438
|
+
subType
|
|
439
|
+
bankName
|
|
440
|
+
bankBranch
|
|
441
|
+
bankAccount
|
|
442
|
+
chequeNum
|
|
443
|
+
accountId
|
|
444
|
+
transactionId
|
|
445
|
+
appType
|
|
446
|
+
cardType
|
|
447
|
+
cardNum
|
|
448
|
+
dealType
|
|
449
|
+
numPayments
|
|
450
|
+
firstPayment
|
|
451
|
+
}
|
|
452
|
+
ref
|
|
453
|
+
remarks
|
|
454
|
+
reverseCharge
|
|
455
|
+
rounding
|
|
456
|
+
signed
|
|
457
|
+
skinId
|
|
458
|
+
status
|
|
459
|
+
taxConfirmationEligible
|
|
460
|
+
templateId
|
|
461
|
+
type
|
|
462
|
+
url {
|
|
463
|
+
he
|
|
464
|
+
en
|
|
465
|
+
origin
|
|
466
|
+
}
|
|
467
|
+
userName
|
|
468
|
+
vat
|
|
469
|
+
vatLocal
|
|
470
|
+
vatRate
|
|
471
|
+
vatType
|
|
630
472
|
}
|
|
631
473
|
}
|
|
632
474
|
}
|
|
633
475
|
`;
|
|
634
476
|
exports.searchExpenseDrafts_queryDocument = (0, utils_1.gql) `
|
|
635
|
-
query searchExpenseDrafts_query($input:
|
|
477
|
+
query searchExpenseDrafts_query($input: searchExpenseDraftsRequest_Input) {
|
|
636
478
|
searchExpenseDrafts(input: $input) {
|
|
637
|
-
... on
|
|
479
|
+
... on searchExpenseDraftsResponse {
|
|
638
480
|
total
|
|
481
|
+
from
|
|
482
|
+
to
|
|
639
483
|
page
|
|
640
484
|
pageSize
|
|
641
485
|
pages
|
|
642
|
-
from
|
|
643
|
-
to
|
|
644
486
|
aggregations {
|
|
645
487
|
totalAmount {
|
|
646
488
|
value
|
|
@@ -683,34 +525,34 @@ exports.searchExpenseDrafts_queryDocument = (0, utils_1.gql) `
|
|
|
683
525
|
... on Boolean_container {
|
|
684
526
|
Boolean
|
|
685
527
|
}
|
|
686
|
-
... on
|
|
687
|
-
|
|
528
|
+
... on query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType_oneOf_1_container {
|
|
529
|
+
query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType_oneOf_1
|
|
688
530
|
}
|
|
689
531
|
}
|
|
690
532
|
reportingDate
|
|
691
533
|
supplier {
|
|
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
534
|
id
|
|
705
535
|
name
|
|
706
536
|
active
|
|
707
537
|
taxId
|
|
708
538
|
paymentTerms
|
|
539
|
+
bankName
|
|
540
|
+
bankBranch
|
|
541
|
+
bankAccount
|
|
542
|
+
country
|
|
543
|
+
phone
|
|
544
|
+
mobile
|
|
545
|
+
contactPerson
|
|
546
|
+
emails
|
|
709
547
|
labels
|
|
710
548
|
creationDate
|
|
711
549
|
lastUpdateDate
|
|
712
550
|
department
|
|
713
551
|
accountingKey
|
|
552
|
+
address
|
|
553
|
+
city
|
|
554
|
+
zip
|
|
555
|
+
fax
|
|
714
556
|
remarks
|
|
715
557
|
incomeAmount
|
|
716
558
|
paymentAmount
|
|
@@ -722,41 +564,181 @@ exports.searchExpenseDrafts_queryDocument = (0, utils_1.gql) `
|
|
|
722
564
|
}
|
|
723
565
|
}
|
|
724
566
|
}
|
|
725
|
-
... on
|
|
726
|
-
|
|
567
|
+
... on generalErrorResponse {
|
|
568
|
+
errorCode_
|
|
727
569
|
errorMessage
|
|
728
570
|
}
|
|
729
571
|
}
|
|
730
572
|
}
|
|
731
573
|
`;
|
|
574
|
+
exports.getDocument_queryDocument = (0, utils_1.gql) `
|
|
575
|
+
query getDocument_query($id: String!) {
|
|
576
|
+
getDocument(id: $id) {
|
|
577
|
+
amount
|
|
578
|
+
amountDueVat
|
|
579
|
+
amountDueVatLocal
|
|
580
|
+
amountExcludeVat
|
|
581
|
+
amountExemptVat
|
|
582
|
+
amountLocal
|
|
583
|
+
amountOpened
|
|
584
|
+
business {
|
|
585
|
+
accountantDocsEmailSettings
|
|
586
|
+
accountantEmails
|
|
587
|
+
accountantReportEmailSettings
|
|
588
|
+
accountingType
|
|
589
|
+
active
|
|
590
|
+
advanceNationalInsuranceRate
|
|
591
|
+
advanceTaxRate
|
|
592
|
+
bankDisplay
|
|
593
|
+
bankDisplayEn
|
|
594
|
+
deductionRate
|
|
595
|
+
documentsEmailSettings
|
|
596
|
+
emailSubjectType
|
|
597
|
+
exemption
|
|
598
|
+
incomeReportEmailSettings
|
|
599
|
+
incomeReportFormatType
|
|
600
|
+
reportSendingDay
|
|
601
|
+
senderEmailSettings
|
|
602
|
+
type
|
|
603
|
+
}
|
|
604
|
+
calculatedAmountLocal
|
|
605
|
+
calculatedAmountOpenedLocal
|
|
606
|
+
calculatedIncomeAmountExcludeLocal
|
|
607
|
+
calculatedIncomeAmountLocal
|
|
608
|
+
calculatedPaymentAmountLocal
|
|
609
|
+
cancellable
|
|
610
|
+
cancelType
|
|
611
|
+
client {
|
|
612
|
+
country
|
|
613
|
+
emails
|
|
614
|
+
id
|
|
615
|
+
name
|
|
616
|
+
phone
|
|
617
|
+
taxId
|
|
618
|
+
self
|
|
619
|
+
}
|
|
620
|
+
creationDate
|
|
621
|
+
currency
|
|
622
|
+
currencyRate
|
|
623
|
+
data {
|
|
624
|
+
tags
|
|
625
|
+
}
|
|
626
|
+
description
|
|
627
|
+
documentDate
|
|
628
|
+
downloaded
|
|
629
|
+
footer
|
|
630
|
+
id
|
|
631
|
+
income {
|
|
632
|
+
amount
|
|
633
|
+
amountTotal
|
|
634
|
+
catalogNum
|
|
635
|
+
currency
|
|
636
|
+
currencyRate
|
|
637
|
+
description
|
|
638
|
+
itemId
|
|
639
|
+
price
|
|
640
|
+
quantity
|
|
641
|
+
vat
|
|
642
|
+
vatRate
|
|
643
|
+
vatType
|
|
644
|
+
}
|
|
645
|
+
lang
|
|
646
|
+
linkedDocuments {
|
|
647
|
+
amount
|
|
648
|
+
currency
|
|
649
|
+
currencyRate
|
|
650
|
+
documentDate
|
|
651
|
+
id
|
|
652
|
+
number
|
|
653
|
+
reverseCharge
|
|
654
|
+
type
|
|
655
|
+
}
|
|
656
|
+
number
|
|
657
|
+
payment {
|
|
658
|
+
currency
|
|
659
|
+
currencyRate
|
|
660
|
+
date
|
|
661
|
+
price
|
|
662
|
+
type
|
|
663
|
+
subType
|
|
664
|
+
bankName
|
|
665
|
+
bankBranch
|
|
666
|
+
bankAccount
|
|
667
|
+
chequeNum
|
|
668
|
+
accountId
|
|
669
|
+
transactionId
|
|
670
|
+
appType
|
|
671
|
+
cardType
|
|
672
|
+
cardNum
|
|
673
|
+
dealType
|
|
674
|
+
numPayments
|
|
675
|
+
firstPayment
|
|
676
|
+
}
|
|
677
|
+
ref
|
|
678
|
+
remarks
|
|
679
|
+
reverseCharge
|
|
680
|
+
rounding
|
|
681
|
+
signed
|
|
682
|
+
skinId
|
|
683
|
+
status
|
|
684
|
+
taxConfirmationEligible
|
|
685
|
+
templateId
|
|
686
|
+
type
|
|
687
|
+
url {
|
|
688
|
+
he
|
|
689
|
+
en
|
|
690
|
+
origin
|
|
691
|
+
}
|
|
692
|
+
userName
|
|
693
|
+
vat
|
|
694
|
+
vatLocal
|
|
695
|
+
vatRate
|
|
696
|
+
vatType
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
`;
|
|
700
|
+
exports.getLinkedDocuments_queryDocument = (0, utils_1.gql) `
|
|
701
|
+
query getLinkedDocuments_query($id: String!) {
|
|
702
|
+
getLinkedDocuments(id: $id) {
|
|
703
|
+
amount
|
|
704
|
+
currency
|
|
705
|
+
currencyRate
|
|
706
|
+
documentDate
|
|
707
|
+
id
|
|
708
|
+
number
|
|
709
|
+
status
|
|
710
|
+
type
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
`;
|
|
732
714
|
exports.getClient_queryDocument = (0, utils_1.gql) `
|
|
733
715
|
query getClient_query($id: String!) {
|
|
734
716
|
getClient(id: $id) {
|
|
735
|
-
phone
|
|
736
|
-
mobile
|
|
737
|
-
emails
|
|
738
|
-
fax
|
|
739
|
-
contactPerson
|
|
740
|
-
address
|
|
741
|
-
city
|
|
742
|
-
zip
|
|
743
|
-
country
|
|
744
|
-
bankName
|
|
745
|
-
bankBranch
|
|
746
|
-
bankAccount
|
|
747
717
|
id
|
|
748
718
|
name
|
|
749
719
|
active
|
|
750
720
|
taxId
|
|
751
721
|
paymentTerms
|
|
722
|
+
bankName
|
|
723
|
+
bankBranch
|
|
724
|
+
bankAccount
|
|
725
|
+
country
|
|
726
|
+
phone
|
|
727
|
+
mobile
|
|
728
|
+
contactPerson
|
|
729
|
+
emails
|
|
752
730
|
labels
|
|
753
731
|
creationDate
|
|
754
732
|
lastUpdateDate
|
|
755
733
|
send
|
|
756
734
|
department
|
|
757
735
|
accountingKey
|
|
736
|
+
address
|
|
737
|
+
city
|
|
738
|
+
zip
|
|
758
739
|
category
|
|
759
740
|
subCategory
|
|
741
|
+
fax
|
|
760
742
|
remarks
|
|
761
743
|
incomeAmount
|
|
762
744
|
paymentAmount
|
|
@@ -812,55 +794,29 @@ exports.getBankTransactions_queryDocument = (0, utils_1.gql) `
|
|
|
812
794
|
classification
|
|
813
795
|
bookingStatus
|
|
814
796
|
source
|
|
815
|
-
amount
|
|
816
|
-
resourceId
|
|
817
|
-
creditorName
|
|
818
|
-
creditorAccount
|
|
819
|
-
currency
|
|
820
|
-
valueDate
|
|
821
|
-
bookingDate
|
|
822
|
-
checkId
|
|
823
|
-
description
|
|
824
|
-
debtorName
|
|
825
|
-
debtorAccount
|
|
826
|
-
type
|
|
827
|
-
name
|
|
828
|
-
date
|
|
829
|
-
iban
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
`;
|
|
834
|
-
exports.addDocument_mutationDocument = (0, utils_1.gql) `
|
|
835
|
-
mutation addDocument_mutation($input: _DOLLAR_defs_addDocumentRequest_Input) {
|
|
836
|
-
addDocument(input: $input) {
|
|
837
|
-
... on _DOLLAR_defs_AddedDocument {
|
|
838
|
-
id
|
|
839
|
-
lang
|
|
840
|
-
number
|
|
841
|
-
signed
|
|
842
|
-
url {
|
|
843
|
-
he
|
|
844
|
-
en
|
|
845
|
-
origin
|
|
846
|
-
}
|
|
847
|
-
}
|
|
848
|
-
... on _DOLLAR_defs_ErrorResponse {
|
|
849
|
-
errorCode
|
|
850
|
-
errorMessage
|
|
797
|
+
amount
|
|
798
|
+
resourceId
|
|
799
|
+
creditorName
|
|
800
|
+
creditorAccount
|
|
801
|
+
currency
|
|
802
|
+
valueDate
|
|
803
|
+
bookingDate
|
|
804
|
+
checkId
|
|
805
|
+
description
|
|
806
|
+
debtorName
|
|
807
|
+
debtorAccount
|
|
808
|
+
type
|
|
809
|
+
name
|
|
810
|
+
date
|
|
811
|
+
iban
|
|
851
812
|
}
|
|
852
813
|
}
|
|
853
814
|
}
|
|
854
815
|
`;
|
|
855
|
-
exports.closeDocument_mutationDocument = (0, utils_1.gql) `
|
|
856
|
-
mutation closeDocument_mutation($id: String!) {
|
|
857
|
-
closeDocument(id: $id)
|
|
858
|
-
}
|
|
859
|
-
`;
|
|
860
816
|
exports.addExpense_mutationDocument = (0, utils_1.gql) `
|
|
861
|
-
mutation addExpense_mutation($input:
|
|
817
|
+
mutation addExpense_mutation($input: Expense_Input) {
|
|
862
818
|
addExpense(input: $input) {
|
|
863
|
-
... on
|
|
819
|
+
... on Expense {
|
|
864
820
|
paymentType {
|
|
865
821
|
... on Boolean_container {
|
|
866
822
|
Boolean
|
|
@@ -880,50 +836,34 @@ exports.addExpense_mutationDocument = (0, utils_1.gql) `
|
|
|
880
836
|
number
|
|
881
837
|
description
|
|
882
838
|
remarks
|
|
883
|
-
supplier
|
|
884
|
-
|
|
885
|
-
mobile
|
|
886
|
-
emails
|
|
887
|
-
fax
|
|
888
|
-
contactPerson
|
|
889
|
-
address
|
|
890
|
-
city
|
|
891
|
-
zip
|
|
892
|
-
country
|
|
893
|
-
bankName
|
|
894
|
-
bankBranch
|
|
895
|
-
bankAccount
|
|
896
|
-
id
|
|
897
|
-
name
|
|
898
|
-
active
|
|
899
|
-
taxId
|
|
900
|
-
paymentTerms
|
|
901
|
-
labels
|
|
902
|
-
creationDate
|
|
903
|
-
lastUpdateDate
|
|
904
|
-
department
|
|
905
|
-
accountingKey
|
|
906
|
-
remarks
|
|
907
|
-
incomeAmount
|
|
908
|
-
paymentAmount
|
|
909
|
-
balanceAmount
|
|
910
|
-
}
|
|
911
|
-
accountingClassification {
|
|
912
|
-
id
|
|
913
|
-
key
|
|
914
|
-
code
|
|
915
|
-
title
|
|
916
|
-
irsCode
|
|
917
|
-
income
|
|
918
|
-
type
|
|
919
|
-
vat
|
|
920
|
-
}
|
|
839
|
+
supplier
|
|
840
|
+
accountingClassification
|
|
921
841
|
active
|
|
922
842
|
addRecipient
|
|
923
843
|
addAccountingClassification
|
|
924
|
-
JSON
|
|
925
844
|
}
|
|
926
|
-
... on
|
|
845
|
+
... on ErrorResponse {
|
|
846
|
+
errorCode
|
|
847
|
+
errorMessage
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
`;
|
|
852
|
+
exports.addDocument_mutationDocument = (0, utils_1.gql) `
|
|
853
|
+
mutation addDocument_mutation($input: addDocumentRequest_Input) {
|
|
854
|
+
addDocument(input: $input) {
|
|
855
|
+
... on AddedDocument {
|
|
856
|
+
id
|
|
857
|
+
lang
|
|
858
|
+
number
|
|
859
|
+
signed
|
|
860
|
+
url {
|
|
861
|
+
he
|
|
862
|
+
en
|
|
863
|
+
origin
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
... on ErrorResponse {
|
|
927
867
|
errorCode
|
|
928
868
|
errorMessage
|
|
929
869
|
}
|
|
@@ -931,9 +871,9 @@ exports.addExpense_mutationDocument = (0, utils_1.gql) `
|
|
|
931
871
|
}
|
|
932
872
|
`;
|
|
933
873
|
exports.updateExpense_mutationDocument = (0, utils_1.gql) `
|
|
934
|
-
mutation updateExpense_mutation($id: String, $input:
|
|
874
|
+
mutation updateExpense_mutation($id: String, $input: updateExpenseRequest_Input) {
|
|
935
875
|
updateExpense(id: $id, input: $input) {
|
|
936
|
-
... on
|
|
876
|
+
... on GetExpense {
|
|
937
877
|
amountExcludeVat
|
|
938
878
|
id
|
|
939
879
|
businessType
|
|
@@ -951,28 +891,28 @@ exports.updateExpense_mutationDocument = (0, utils_1.gql) `
|
|
|
951
891
|
description
|
|
952
892
|
remarks
|
|
953
893
|
supplier {
|
|
954
|
-
phone
|
|
955
|
-
mobile
|
|
956
|
-
emails
|
|
957
|
-
fax
|
|
958
|
-
contactPerson
|
|
959
|
-
address
|
|
960
|
-
city
|
|
961
|
-
zip
|
|
962
|
-
country
|
|
963
|
-
bankName
|
|
964
|
-
bankBranch
|
|
965
|
-
bankAccount
|
|
966
894
|
id
|
|
967
895
|
name
|
|
968
896
|
active
|
|
969
897
|
taxId
|
|
970
898
|
paymentTerms
|
|
899
|
+
bankName
|
|
900
|
+
bankBranch
|
|
901
|
+
bankAccount
|
|
902
|
+
country
|
|
903
|
+
phone
|
|
904
|
+
mobile
|
|
905
|
+
contactPerson
|
|
906
|
+
emails
|
|
971
907
|
labels
|
|
972
908
|
creationDate
|
|
973
909
|
lastUpdateDate
|
|
974
910
|
department
|
|
975
911
|
accountingKey
|
|
912
|
+
address
|
|
913
|
+
city
|
|
914
|
+
zip
|
|
915
|
+
fax
|
|
976
916
|
remarks
|
|
977
917
|
incomeAmount
|
|
978
918
|
paymentAmount
|
|
@@ -998,7 +938,7 @@ exports.updateExpense_mutationDocument = (0, utils_1.gql) `
|
|
|
998
938
|
creationDate
|
|
999
939
|
lastUpdateDate
|
|
1000
940
|
}
|
|
1001
|
-
... on
|
|
941
|
+
... on ErrorResponse {
|
|
1002
942
|
errorCode
|
|
1003
943
|
errorMessage
|
|
1004
944
|
}
|
|
@@ -1006,9 +946,9 @@ exports.updateExpense_mutationDocument = (0, utils_1.gql) `
|
|
|
1006
946
|
}
|
|
1007
947
|
`;
|
|
1008
948
|
exports.addExpenseDraftByFile_mutationDocument = (0, utils_1.gql) `
|
|
1009
|
-
mutation addExpenseDraftByFile_mutation($input:
|
|
949
|
+
mutation addExpenseDraftByFile_mutation($input: addExpenseDraftByFileRequest_Input) {
|
|
1010
950
|
addExpenseDraftByFile(input: $input) {
|
|
1011
|
-
... on
|
|
951
|
+
... on GetExpenseDraft {
|
|
1012
952
|
id
|
|
1013
953
|
status
|
|
1014
954
|
creationDate
|
|
@@ -1034,28 +974,28 @@ exports.addExpenseDraftByFile_mutationDocument = (0, utils_1.gql) `
|
|
|
1034
974
|
description
|
|
1035
975
|
remarks
|
|
1036
976
|
supplier {
|
|
1037
|
-
phone
|
|
1038
|
-
mobile
|
|
1039
|
-
emails
|
|
1040
|
-
fax
|
|
1041
|
-
contactPerson
|
|
1042
|
-
address
|
|
1043
|
-
city
|
|
1044
|
-
zip
|
|
1045
|
-
country
|
|
1046
|
-
bankName
|
|
1047
|
-
bankBranch
|
|
1048
|
-
bankAccount
|
|
1049
977
|
id
|
|
1050
978
|
name
|
|
1051
979
|
active
|
|
1052
980
|
taxId
|
|
1053
981
|
paymentTerms
|
|
982
|
+
bankName
|
|
983
|
+
bankBranch
|
|
984
|
+
bankAccount
|
|
985
|
+
country
|
|
986
|
+
phone
|
|
987
|
+
mobile
|
|
988
|
+
contactPerson
|
|
989
|
+
emails
|
|
1054
990
|
labels
|
|
1055
991
|
creationDate
|
|
1056
992
|
lastUpdateDate
|
|
1057
993
|
department
|
|
1058
994
|
accountingKey
|
|
995
|
+
address
|
|
996
|
+
city
|
|
997
|
+
zip
|
|
998
|
+
fax
|
|
1059
999
|
remarks
|
|
1060
1000
|
incomeAmount
|
|
1061
1001
|
paymentAmount
|
|
@@ -1078,159 +1018,41 @@ exports.addExpenseDraftByFile_mutationDocument = (0, utils_1.gql) `
|
|
|
1078
1018
|
thumbnail
|
|
1079
1019
|
url
|
|
1080
1020
|
}
|
|
1081
|
-
... on
|
|
1082
|
-
|
|
1083
|
-
errorMessage
|
|
1084
|
-
}
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
`;
|
|
1088
|
-
exports.addClient_mutationDocument = (0, utils_1.gql) `
|
|
1089
|
-
mutation addClient_mutation($input: _DOLLAR_defs_addClientRequest_Input) {
|
|
1090
|
-
addClient(input: $input) {
|
|
1091
|
-
... on _DOLLAR_defs_getClientResponse {
|
|
1092
|
-
phone
|
|
1093
|
-
mobile
|
|
1094
|
-
emails
|
|
1095
|
-
fax
|
|
1096
|
-
contactPerson
|
|
1097
|
-
address
|
|
1098
|
-
city
|
|
1099
|
-
zip
|
|
1100
|
-
country
|
|
1101
|
-
bankName
|
|
1102
|
-
bankBranch
|
|
1103
|
-
bankAccount
|
|
1104
|
-
id
|
|
1105
|
-
name
|
|
1106
|
-
active
|
|
1107
|
-
taxId
|
|
1108
|
-
paymentTerms
|
|
1109
|
-
labels
|
|
1110
|
-
creationDate
|
|
1111
|
-
lastUpdateDate
|
|
1112
|
-
send
|
|
1113
|
-
department
|
|
1114
|
-
accountingKey
|
|
1115
|
-
category
|
|
1116
|
-
subCategory
|
|
1117
|
-
remarks
|
|
1118
|
-
incomeAmount
|
|
1119
|
-
paymentAmount
|
|
1120
|
-
balanceAmount
|
|
1121
|
-
}
|
|
1122
|
-
... on _DOLLAR_defs_ErrorResponse {
|
|
1123
|
-
errorCode
|
|
1124
|
-
errorMessage
|
|
1125
|
-
}
|
|
1126
|
-
}
|
|
1127
|
-
}
|
|
1128
|
-
`;
|
|
1129
|
-
exports.updateClient_mutationDocument = (0, utils_1.gql) `
|
|
1130
|
-
mutation updateClient_mutation($id: String!, $input: _DOLLAR_defs_updateClientRequest_Input) {
|
|
1131
|
-
updateClient(id: $id, input: $input) {
|
|
1132
|
-
... on _DOLLAR_defs_getClientResponse {
|
|
1133
|
-
phone
|
|
1134
|
-
mobile
|
|
1135
|
-
emails
|
|
1136
|
-
fax
|
|
1137
|
-
contactPerson
|
|
1138
|
-
address
|
|
1139
|
-
city
|
|
1140
|
-
zip
|
|
1141
|
-
country
|
|
1142
|
-
bankName
|
|
1143
|
-
bankBranch
|
|
1144
|
-
bankAccount
|
|
1145
|
-
id
|
|
1146
|
-
name
|
|
1147
|
-
active
|
|
1148
|
-
taxId
|
|
1149
|
-
paymentTerms
|
|
1150
|
-
labels
|
|
1151
|
-
creationDate
|
|
1152
|
-
lastUpdateDate
|
|
1153
|
-
send
|
|
1154
|
-
department
|
|
1155
|
-
accountingKey
|
|
1156
|
-
category
|
|
1157
|
-
subCategory
|
|
1158
|
-
remarks
|
|
1159
|
-
incomeAmount
|
|
1160
|
-
paymentAmount
|
|
1161
|
-
balanceAmount
|
|
1162
|
-
}
|
|
1163
|
-
... on _DOLLAR_defs_ErrorResponse {
|
|
1164
|
-
errorCode
|
|
1021
|
+
... on generalErrorResponse {
|
|
1022
|
+
errorCode_
|
|
1165
1023
|
errorMessage
|
|
1166
1024
|
}
|
|
1167
1025
|
}
|
|
1168
1026
|
}
|
|
1169
1027
|
`;
|
|
1170
|
-
exports.
|
|
1171
|
-
mutation
|
|
1172
|
-
|
|
1173
|
-
... on _DOLLAR_defs_getClientResponse {
|
|
1174
|
-
phone
|
|
1175
|
-
mobile
|
|
1176
|
-
emails
|
|
1177
|
-
fax
|
|
1178
|
-
contactPerson
|
|
1179
|
-
address
|
|
1180
|
-
city
|
|
1181
|
-
zip
|
|
1182
|
-
country
|
|
1183
|
-
bankName
|
|
1184
|
-
bankBranch
|
|
1185
|
-
bankAccount
|
|
1186
|
-
id
|
|
1187
|
-
name
|
|
1188
|
-
active
|
|
1189
|
-
taxId
|
|
1190
|
-
paymentTerms
|
|
1191
|
-
labels
|
|
1192
|
-
creationDate
|
|
1193
|
-
lastUpdateDate
|
|
1194
|
-
send
|
|
1195
|
-
department
|
|
1196
|
-
accountingKey
|
|
1197
|
-
category
|
|
1198
|
-
subCategory
|
|
1199
|
-
remarks
|
|
1200
|
-
incomeAmount
|
|
1201
|
-
paymentAmount
|
|
1202
|
-
balanceAmount
|
|
1203
|
-
}
|
|
1204
|
-
... on _DOLLAR_defs_ErrorResponse {
|
|
1205
|
-
errorCode
|
|
1206
|
-
errorMessage
|
|
1207
|
-
}
|
|
1208
|
-
}
|
|
1028
|
+
exports.closeDocument_mutationDocument = (0, utils_1.gql) `
|
|
1029
|
+
mutation closeDocument_mutation($id: String!) {
|
|
1030
|
+
closeDocument(id: $id)
|
|
1209
1031
|
}
|
|
1210
1032
|
`;
|
|
1211
1033
|
function getSdk(requester) {
|
|
1212
1034
|
return {
|
|
1213
|
-
getDocument_query(variables, options) {
|
|
1214
|
-
return requester(exports.getDocument_queryDocument, variables, options);
|
|
1215
|
-
},
|
|
1216
|
-
searchDocuments_query(variables, options) {
|
|
1217
|
-
return requester(exports.searchDocuments_queryDocument, variables, options);
|
|
1218
|
-
},
|
|
1219
1035
|
previewDocument_query(variables, options) {
|
|
1220
1036
|
return requester(exports.previewDocument_queryDocument, variables, options);
|
|
1221
1037
|
},
|
|
1222
|
-
getLinkedDocuments_query(variables, options) {
|
|
1223
|
-
return requester(exports.getLinkedDocuments_queryDocument, variables, options);
|
|
1224
|
-
},
|
|
1225
1038
|
getExpense_query(variables, options) {
|
|
1226
1039
|
return requester(exports.getExpense_queryDocument, variables, options);
|
|
1227
1040
|
},
|
|
1228
1041
|
searchExpenses_query(variables, options) {
|
|
1229
1042
|
return requester(exports.searchExpenses_queryDocument, variables, options);
|
|
1230
1043
|
},
|
|
1044
|
+
searchDocuments_query(variables, options) {
|
|
1045
|
+
return requester(exports.searchDocuments_queryDocument, variables, options);
|
|
1046
|
+
},
|
|
1231
1047
|
searchExpenseDrafts_query(variables, options) {
|
|
1232
1048
|
return requester(exports.searchExpenseDrafts_queryDocument, variables, options);
|
|
1233
1049
|
},
|
|
1050
|
+
getDocument_query(variables, options) {
|
|
1051
|
+
return requester(exports.getDocument_queryDocument, variables, options);
|
|
1052
|
+
},
|
|
1053
|
+
getLinkedDocuments_query(variables, options) {
|
|
1054
|
+
return requester(exports.getLinkedDocuments_queryDocument, variables, options);
|
|
1055
|
+
},
|
|
1234
1056
|
getClient_query(variables, options) {
|
|
1235
1057
|
return requester(exports.getClient_queryDocument, variables, options);
|
|
1236
1058
|
},
|
|
@@ -1240,29 +1062,20 @@ function getSdk(requester) {
|
|
|
1240
1062
|
getBankTransactions_query(variables, options) {
|
|
1241
1063
|
return requester(exports.getBankTransactions_queryDocument, variables, options);
|
|
1242
1064
|
},
|
|
1243
|
-
addDocument_mutation(variables, options) {
|
|
1244
|
-
return requester(exports.addDocument_mutationDocument, variables, options);
|
|
1245
|
-
},
|
|
1246
|
-
closeDocument_mutation(variables, options) {
|
|
1247
|
-
return requester(exports.closeDocument_mutationDocument, variables, options);
|
|
1248
|
-
},
|
|
1249
1065
|
addExpense_mutation(variables, options) {
|
|
1250
1066
|
return requester(exports.addExpense_mutationDocument, variables, options);
|
|
1251
1067
|
},
|
|
1068
|
+
addDocument_mutation(variables, options) {
|
|
1069
|
+
return requester(exports.addDocument_mutationDocument, variables, options);
|
|
1070
|
+
},
|
|
1252
1071
|
updateExpense_mutation(variables, options) {
|
|
1253
1072
|
return requester(exports.updateExpense_mutationDocument, variables, options);
|
|
1254
1073
|
},
|
|
1255
1074
|
addExpenseDraftByFile_mutation(variables, options) {
|
|
1256
1075
|
return requester(exports.addExpenseDraftByFile_mutationDocument, variables, options);
|
|
1257
1076
|
},
|
|
1258
|
-
|
|
1259
|
-
return requester(exports.
|
|
1260
|
-
},
|
|
1261
|
-
updateClient_mutation(variables, options) {
|
|
1262
|
-
return requester(exports.updateClient_mutationDocument, variables, options);
|
|
1263
|
-
},
|
|
1264
|
-
deleteClient_mutation(variables, options) {
|
|
1265
|
-
return requester(exports.deleteClient_mutationDocument, variables, options);
|
|
1077
|
+
closeDocument_mutation(variables, options) {
|
|
1078
|
+
return requester(exports.closeDocument_mutationDocument, variables, options);
|
|
1266
1079
|
}
|
|
1267
1080
|
};
|
|
1268
1081
|
}
|