@accounter/green-invoice-graphql 0.8.2-alpha-20251102090006-19af6733a3520f285296a817bc4c06801e8a37b4 → 0.8.2-alpha-20251102160658-6d41b0a7bb225382246645badf39a28bcd8102e1

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.
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
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;
36
+ exports.deleteClient_mutationDocument = exports.updateClient_mutationDocument = exports.addClient_mutationDocument = exports.addExpenseDraftByFile_mutationDocument = exports.updateExpense_mutationDocument = exports.addExpense_mutationDocument = exports.closeDocument_mutationDocument = exports.addDocument_mutationDocument = exports.getBankTransactions_queryDocument = exports.getFileUploadUrl_queryDocument = exports.getClient_queryDocument = exports.searchExpenseDrafts_queryDocument = exports.searchExpenses_queryDocument = exports.getExpense_queryDocument = exports.getLinkedDocuments_queryDocument = exports.previewDocument_queryDocument = exports.searchDocuments_queryDocument = exports.getDocument_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": "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" }] },
93
+ config: { "endpoint": "https://api.greeninvoice.co.il/api/v1", "operationHeaders": { "Authorization": "Bearer {context.authToken}", "Content-Type": "application/json" }, "operations": [{ "type": "Query", "field": "getDocument", "path": "/documents/{args.id}", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/getDocumentResponse" }, { "type": "Query", "field": "searchDocuments", "path": "/documents/search", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/searchDocumentsRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/searchDocumentsResponse" }, { "type": "Query", "field": "previewDocument", "path": "/documents/preview", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/previewDocumentRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/previewDocumentResponse" }, { "type": "Query", "field": "getLinkedDocuments", "path": "/documents/{args.id}/linked", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/getLinkedDocumentsResponse" }, { "type": "Mutation", "field": "addDocument", "path": "/documents", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/addDocumentRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/addDocumentResponse" }, { "type": "Mutation", "field": "closeDocument", "path": "/documents/{args.id}/close", "method": "POST", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseByStatusCode": { "200": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/closeDocumentResponse" } } }, { "type": "Query", "field": "getExpense", "path": "/expenses/{args.id}", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/getExpenseResponse" }, { "type": "Query", "field": "searchExpenses", "path": "/expenses/search", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/searchExpensesRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/searchExpensesResponse" }, { "type": "Mutation", "field": "addExpense", "path": "/expenses", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/addExpenseRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/addExpenseResponse" }, { "type": "Mutation", "field": "updateExpense", "path": "/expenses/{args.id}", "method": "PUT", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/updateExpenseRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/updateExpenseResponse" }, { "type": "Query", "field": "searchExpenseDrafts", "path": "/expenses/drafts/search", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/searchExpenseDraftsRequest", "responseByStatusCode": { "200": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/searchExpenseDraftsResponse" }, "201": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/searchExpenseDraftsResponse" }, "404": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/generalErrorResponse" } } }, { "type": "Mutation", "field": "addExpenseDraftByFile", "path": "/expenses/file", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/addExpenseDraftByFileRequest", "responseByStatusCode": { "200": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/addExpenseDraftByFileResponse" }, "201": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/addExpenseDraftByFileResponse" }, "400": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/generalErrorResponse" }, "404": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/generalErrorResponse" }, "405": { "responseSchema": "../json-schemas/greenInvoice.json#/$defs/generalErrorResponse" } } }, { "type": "Query", "field": "getClient", "path": "/clients/{args.id}", "method": "GET", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/getClientResponse" }, { "type": "Mutation", "field": "addClient", "path": "/clients", "method": "POST", "requestSchema": "../json-schemas/greenInvoice.json#/$defs/addClientRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/addClientResponse" }, { "type": "Mutation", "field": "updateClient", "path": "/clients/{args.id}", "method": "PUT", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "requestSchema": "../json-schemas/greenInvoice.json#/$defs/updateClientRequest", "responseSchema": "../json-schemas/greenInvoice.json#/$defs/updateClientResponse" }, { "type": "Mutation", "field": "deleteClient", "path": "/clients/{args.id}", "method": "DELETE", "argTypeMap": { "id": { "type": "string", "nullable": false } }, "responseSchema": "../json-schemas/greenInvoice.json#/$defs/deleteClientResponse" }] },
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#/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" }] },
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#/$defs/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#/$defs/getBankTransactionsResponse" }] },
105
105
  baseDir,
106
106
  cache,
107
107
  pubsub,
@@ -184,170 +184,148 @@ 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.previewDocument_queryDocument = (0, utils_1.gql) `
188
- query previewDocument_query($input: DocumentInputNew_Input) {
189
- previewDocument(input: $input) {
190
- ... on query_previewDocument_oneOf_0 {
191
- file
192
- }
193
- ... on ErrorResponse {
194
- errorCode
195
- errorMessage
196
- }
197
- }
198
- }
199
- `;
200
- exports.getExpense_queryDocument = (0, utils_1.gql) `
201
- query getExpense_query($id: String!) {
202
- getExpense(id: $id) {
203
- amountExcludeVat
204
- id
205
- businessType
206
- documentType
207
- status
208
- paymentType
209
- currency
210
- currencyRate
211
- vat
187
+ exports.getDocument_queryDocument = (0, utils_1.gql) `
188
+ query getDocument_query($id: String!) {
189
+ getDocument(id: $id) {
212
190
  amount
213
- date
214
- dueDate
215
- number
216
- active
217
- description
218
- remarks
219
- supplier {
220
- id
221
- name
191
+ amountDueVat
192
+ amountDueVatLocal
193
+ amountExcludeVat
194
+ amountExemptVat
195
+ amountLocal
196
+ amountOpened
197
+ business {
198
+ accountantDocsEmailSettings
199
+ accountantEmails
200
+ accountantReportEmailSettings
201
+ accountingType
222
202
  active
223
- taxId
224
- paymentTerms
225
- bankName
226
- bankBranch
227
- bankAccount
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 {
228
225
  country
229
- phone
230
- mobile
231
- contactPerson
232
226
  emails
233
- labels
234
- creationDate
235
- lastUpdateDate
236
- department
237
- accountingKey
227
+ id
228
+ name
229
+ phone
230
+ taxId
231
+ self
238
232
  address
239
233
  city
240
234
  zip
241
235
  fax
242
- remarks
243
- incomeAmount
244
- paymentAmount
245
- balanceAmount
246
- }
247
- thumbnail
248
- url
249
- cancellable
250
- reportingDate
251
- accountingClassification {
252
- id
253
- key
254
- code
255
- title
256
- irsCode
257
- income
258
- type
259
- vat
236
+ mobile
237
+ add
238
+ JSON
260
239
  }
261
- amountLocal
262
- amountAccounting
263
- vatAccounting
264
240
  creationDate
265
- lastUpdateDate
266
- }
267
- }
268
- `;
269
- exports.searchExpenses_queryDocument = (0, utils_1.gql) `
270
- query searchExpenses_query($input: searchExpensesRequest_Input) {
271
- searchExpenses(input: $input) {
272
- total
273
- page
274
- pageSize
275
- pages
276
- items {
277
- amountExcludeVat
278
- id
279
- businessType
280
- documentType
281
- status
282
- paymentType
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
283
255
  currency
284
256
  currencyRate
257
+ description
258
+ itemId
259
+ price
260
+ quantity
285
261
  vat
262
+ vatRate
263
+ vatType
264
+ }
265
+ lang
266
+ linkedDocuments {
286
267
  amount
287
- date
288
- dueDate
268
+ currency
269
+ currencyRate
270
+ documentDate
271
+ id
289
272
  number
290
- active
291
- description
292
- remarks
293
- supplier {
294
- id
295
- name
296
- active
297
- taxId
298
- paymentTerms
299
- bankName
300
- bankBranch
301
- bankAccount
302
- country
303
- phone
304
- mobile
305
- contactPerson
306
- emails
307
- labels
308
- creationDate
309
- lastUpdateDate
310
- department
311
- accountingKey
312
- address
313
- city
314
- zip
315
- fax
316
- remarks
317
- incomeAmount
318
- paymentAmount
319
- balanceAmount
320
- }
321
- thumbnail
322
- url
323
- cancellable
324
- reportingDate
325
- accountingClassification {
326
- id
327
- key
328
- code
329
- title
330
- irsCode
331
- income
332
- type
333
- vat
334
- }
335
- amountLocal
336
- amountAccounting
337
- vatAccounting
338
- creationDate
339
- lastUpdateDate
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
340
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
341
317
  }
342
318
  }
343
319
  `;
344
320
  exports.searchDocuments_queryDocument = (0, utils_1.gql) `
345
- query searchDocuments_query($input: searchDocumentsRequest_Input) {
321
+ query searchDocuments_query($input: _DOLLAR_defs_searchDocumentsRequest_Input) {
346
322
  searchDocuments(input: $input) {
347
323
  total
348
324
  page
349
325
  pageSize
350
326
  pages
327
+ from
328
+ to
351
329
  items {
352
330
  amount
353
331
  amountDueVat
@@ -391,6 +369,13 @@ exports.searchDocuments_queryDocument = (0, utils_1.gql) `
391
369
  phone
392
370
  taxId
393
371
  self
372
+ address
373
+ city
374
+ zip
375
+ fax
376
+ mobile
377
+ add
378
+ JSON
394
379
  }
395
380
  creationDate
396
381
  currency
@@ -439,50 +424,223 @@ exports.searchDocuments_queryDocument = (0, utils_1.gql) `
439
424
  bankName
440
425
  bankBranch
441
426
  bankAccount
442
- chequeNum
443
- accountId
444
- transactionId
445
- appType
446
- cardType
447
- cardNum
448
- dealType
449
- numPayments
450
- firstPayment
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
+ exports.previewDocument_queryDocument = (0, utils_1.gql) `
462
+ query previewDocument_query($input: _DOLLAR_defs_DocumentInputNew_Input) {
463
+ previewDocument(input: $input) {
464
+ ... on query_previewDocument_oneOf_0 {
465
+ file
466
+ }
467
+ ... on _DOLLAR_defs_ErrorResponse {
468
+ errorCode
469
+ errorMessage
470
+ }
471
+ }
472
+ }
473
+ `;
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
+ exports.getExpense_queryDocument = (0, utils_1.gql) `
489
+ query getExpense_query($id: String!) {
490
+ getExpense(id: $id) {
491
+ amountExcludeVat
492
+ id
493
+ businessType
494
+ documentType
495
+ status
496
+ paymentType
497
+ currency
498
+ currencyRate
499
+ vat
500
+ amount
501
+ date
502
+ dueDate
503
+ number
504
+ active
505
+ description
506
+ remarks
507
+ 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
+ id
521
+ name
522
+ active
523
+ taxId
524
+ paymentTerms
525
+ labels
526
+ creationDate
527
+ lastUpdateDate
528
+ department
529
+ accountingKey
530
+ remarks
531
+ incomeAmount
532
+ paymentAmount
533
+ balanceAmount
534
+ }
535
+ thumbnail
536
+ url
537
+ cancellable
538
+ reportingDate
539
+ accountingClassification {
540
+ id
541
+ key
542
+ code
543
+ title
544
+ irsCode
545
+ income
546
+ type
547
+ vat
548
+ }
549
+ amountLocal
550
+ amountAccounting
551
+ vatAccounting
552
+ creationDate
553
+ lastUpdateDate
554
+ }
555
+ }
556
+ `;
557
+ exports.searchExpenses_queryDocument = (0, utils_1.gql) `
558
+ query searchExpenses_query($input: _DOLLAR_defs_searchExpensesRequest_Input) {
559
+ searchExpenses(input: $input) {
560
+ total
561
+ page
562
+ pageSize
563
+ pages
564
+ from
565
+ to
566
+ items {
567
+ amountExcludeVat
568
+ id
569
+ businessType
570
+ documentType
571
+ status
572
+ paymentType
573
+ currency
574
+ currencyRate
575
+ vat
576
+ amount
577
+ date
578
+ dueDate
579
+ number
580
+ active
581
+ description
582
+ remarks
583
+ 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
+ id
597
+ name
598
+ active
599
+ taxId
600
+ paymentTerms
601
+ labels
602
+ creationDate
603
+ lastUpdateDate
604
+ department
605
+ accountingKey
606
+ remarks
607
+ incomeAmount
608
+ paymentAmount
609
+ balanceAmount
451
610
  }
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
611
+ thumbnail
612
+ url
613
+ cancellable
614
+ reportingDate
615
+ accountingClassification {
616
+ id
617
+ key
618
+ code
619
+ title
620
+ irsCode
621
+ income
622
+ type
623
+ vat
466
624
  }
467
- userName
468
- vat
469
- vatLocal
470
- vatRate
471
- vatType
625
+ amountLocal
626
+ amountAccounting
627
+ vatAccounting
628
+ creationDate
629
+ lastUpdateDate
472
630
  }
473
631
  }
474
632
  }
475
633
  `;
476
634
  exports.searchExpenseDrafts_queryDocument = (0, utils_1.gql) `
477
- query searchExpenseDrafts_query($input: searchExpenseDraftsRequest_Input) {
635
+ query searchExpenseDrafts_query($input: _DOLLAR_defs_searchExpenseDraftsRequest_Input) {
478
636
  searchExpenseDrafts(input: $input) {
479
- ... on searchExpenseDraftsResponse {
637
+ ... on searchExpenseDrafts_200_response {
480
638
  total
481
- from
482
- to
483
639
  page
484
640
  pageSize
485
641
  pages
642
+ from
643
+ to
486
644
  aggregations {
487
645
  totalAmount {
488
646
  value
@@ -525,34 +683,34 @@ exports.searchExpenseDrafts_queryDocument = (0, utils_1.gql) `
525
683
  ... on Boolean_container {
526
684
  Boolean
527
685
  }
528
- ... on query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType_oneOf_1_container {
529
- query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType_oneOf_1
686
+ ... on query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1_container {
687
+ query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1
530
688
  }
531
689
  }
532
690
  reportingDate
533
691
  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
534
704
  id
535
705
  name
536
706
  active
537
707
  taxId
538
708
  paymentTerms
539
- bankName
540
- bankBranch
541
- bankAccount
542
- country
543
- phone
544
- mobile
545
- contactPerson
546
- emails
547
709
  labels
548
710
  creationDate
549
711
  lastUpdateDate
550
712
  department
551
713
  accountingKey
552
- address
553
- city
554
- zip
555
- fax
556
714
  remarks
557
715
  incomeAmount
558
716
  paymentAmount
@@ -564,181 +722,41 @@ exports.searchExpenseDrafts_queryDocument = (0, utils_1.gql) `
564
722
  }
565
723
  }
566
724
  }
567
- ... on generalErrorResponse {
568
- errorCode_
725
+ ... on searchExpenseDrafts_404_response {
726
+ errorCode
569
727
  errorMessage
570
728
  }
571
729
  }
572
730
  }
573
731
  `;
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
- `;
714
732
  exports.getClient_queryDocument = (0, utils_1.gql) `
715
733
  query getClient_query($id: String!) {
716
734
  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
717
747
  id
718
748
  name
719
749
  active
720
750
  taxId
721
751
  paymentTerms
722
- bankName
723
- bankBranch
724
- bankAccount
725
- country
726
- phone
727
- mobile
728
- contactPerson
729
- emails
730
752
  labels
731
753
  creationDate
732
754
  lastUpdateDate
733
755
  send
734
756
  department
735
757
  accountingKey
736
- address
737
- city
738
- zip
739
758
  category
740
759
  subCategory
741
- fax
742
760
  remarks
743
761
  incomeAmount
744
762
  paymentAmount
@@ -813,10 +831,36 @@ exports.getBankTransactions_queryDocument = (0, utils_1.gql) `
813
831
  }
814
832
  }
815
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
851
+ }
852
+ }
853
+ }
854
+ `;
855
+ exports.closeDocument_mutationDocument = (0, utils_1.gql) `
856
+ mutation closeDocument_mutation($id: String!) {
857
+ closeDocument(id: $id)
858
+ }
859
+ `;
816
860
  exports.addExpense_mutationDocument = (0, utils_1.gql) `
817
- mutation addExpense_mutation($input: Expense_Input) {
861
+ mutation addExpense_mutation($input: JSON) {
818
862
  addExpense(input: $input) {
819
- ... on Expense {
863
+ ... on _DOLLAR_defs_Expense {
820
864
  paymentType {
821
865
  ... on Boolean_container {
822
866
  Boolean
@@ -836,34 +880,50 @@ exports.addExpense_mutationDocument = (0, utils_1.gql) `
836
880
  number
837
881
  description
838
882
  remarks
839
- supplier
840
- accountingClassification
883
+ supplier {
884
+ phone
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
+ }
841
921
  active
842
922
  addRecipient
843
923
  addAccountingClassification
924
+ JSON
844
925
  }
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 {
926
+ ... on _DOLLAR_defs_ErrorResponse {
867
927
  errorCode
868
928
  errorMessage
869
929
  }
@@ -871,9 +931,9 @@ exports.addDocument_mutationDocument = (0, utils_1.gql) `
871
931
  }
872
932
  `;
873
933
  exports.updateExpense_mutationDocument = (0, utils_1.gql) `
874
- mutation updateExpense_mutation($id: String, $input: updateExpenseRequest_Input) {
934
+ mutation updateExpense_mutation($id: String, $input: _DOLLAR_defs_updateExpenseRequest_Input) {
875
935
  updateExpense(id: $id, input: $input) {
876
- ... on GetExpense {
936
+ ... on _DOLLAR_defs_GetExpense {
877
937
  amountExcludeVat
878
938
  id
879
939
  businessType
@@ -891,28 +951,28 @@ exports.updateExpense_mutationDocument = (0, utils_1.gql) `
891
951
  description
892
952
  remarks
893
953
  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
894
966
  id
895
967
  name
896
968
  active
897
969
  taxId
898
970
  paymentTerms
899
- bankName
900
- bankBranch
901
- bankAccount
902
- country
903
- phone
904
- mobile
905
- contactPerson
906
- emails
907
971
  labels
908
972
  creationDate
909
973
  lastUpdateDate
910
974
  department
911
975
  accountingKey
912
- address
913
- city
914
- zip
915
- fax
916
976
  remarks
917
977
  incomeAmount
918
978
  paymentAmount
@@ -938,7 +998,7 @@ exports.updateExpense_mutationDocument = (0, utils_1.gql) `
938
998
  creationDate
939
999
  lastUpdateDate
940
1000
  }
941
- ... on ErrorResponse {
1001
+ ... on _DOLLAR_defs_ErrorResponse {
942
1002
  errorCode
943
1003
  errorMessage
944
1004
  }
@@ -946,9 +1006,9 @@ exports.updateExpense_mutationDocument = (0, utils_1.gql) `
946
1006
  }
947
1007
  `;
948
1008
  exports.addExpenseDraftByFile_mutationDocument = (0, utils_1.gql) `
949
- mutation addExpenseDraftByFile_mutation($input: addExpenseDraftByFileRequest_Input) {
1009
+ mutation addExpenseDraftByFile_mutation($input: _DOLLAR_defs_addExpenseDraftByFileRequest_Input) {
950
1010
  addExpenseDraftByFile(input: $input) {
951
- ... on GetExpenseDraft {
1011
+ ... on addExpenseDraftByFile_200_response {
952
1012
  id
953
1013
  status
954
1014
  creationDate
@@ -974,28 +1034,28 @@ exports.addExpenseDraftByFile_mutationDocument = (0, utils_1.gql) `
974
1034
  description
975
1035
  remarks
976
1036
  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
977
1049
  id
978
1050
  name
979
1051
  active
980
1052
  taxId
981
1053
  paymentTerms
982
- bankName
983
- bankBranch
984
- bankAccount
985
- country
986
- phone
987
- mobile
988
- contactPerson
989
- emails
990
1054
  labels
991
1055
  creationDate
992
1056
  lastUpdateDate
993
1057
  department
994
1058
  accountingKey
995
- address
996
- city
997
- zip
998
- fax
999
1059
  remarks
1000
1060
  incomeAmount
1001
1061
  paymentAmount
@@ -1018,41 +1078,159 @@ exports.addExpenseDraftByFile_mutationDocument = (0, utils_1.gql) `
1018
1078
  thumbnail
1019
1079
  url
1020
1080
  }
1021
- ... on generalErrorResponse {
1022
- errorCode_
1081
+ ... on searchExpenseDrafts_404_response {
1082
+ errorCode
1023
1083
  errorMessage
1024
1084
  }
1025
1085
  }
1026
1086
  }
1027
1087
  `;
1028
- exports.closeDocument_mutationDocument = (0, utils_1.gql) `
1029
- mutation closeDocument_mutation($id: String!) {
1030
- closeDocument(id: $id)
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
1165
+ errorMessage
1166
+ }
1167
+ }
1168
+ }
1169
+ `;
1170
+ exports.deleteClient_mutationDocument = (0, utils_1.gql) `
1171
+ mutation deleteClient_mutation($id: String!) {
1172
+ deleteClient(id: $id) {
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
+ }
1031
1209
  }
1032
1210
  `;
1033
1211
  function getSdk(requester) {
1034
1212
  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
+ },
1035
1219
  previewDocument_query(variables, options) {
1036
1220
  return requester(exports.previewDocument_queryDocument, variables, options);
1037
1221
  },
1222
+ getLinkedDocuments_query(variables, options) {
1223
+ return requester(exports.getLinkedDocuments_queryDocument, variables, options);
1224
+ },
1038
1225
  getExpense_query(variables, options) {
1039
1226
  return requester(exports.getExpense_queryDocument, variables, options);
1040
1227
  },
1041
1228
  searchExpenses_query(variables, options) {
1042
1229
  return requester(exports.searchExpenses_queryDocument, variables, options);
1043
1230
  },
1044
- searchDocuments_query(variables, options) {
1045
- return requester(exports.searchDocuments_queryDocument, variables, options);
1046
- },
1047
1231
  searchExpenseDrafts_query(variables, options) {
1048
1232
  return requester(exports.searchExpenseDrafts_queryDocument, variables, options);
1049
1233
  },
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
- },
1056
1234
  getClient_query(variables, options) {
1057
1235
  return requester(exports.getClient_queryDocument, variables, options);
1058
1236
  },
@@ -1062,20 +1240,29 @@ function getSdk(requester) {
1062
1240
  getBankTransactions_query(variables, options) {
1063
1241
  return requester(exports.getBankTransactions_queryDocument, variables, options);
1064
1242
  },
1065
- addExpense_mutation(variables, options) {
1066
- return requester(exports.addExpense_mutationDocument, variables, options);
1067
- },
1068
1243
  addDocument_mutation(variables, options) {
1069
1244
  return requester(exports.addDocument_mutationDocument, variables, options);
1070
1245
  },
1246
+ closeDocument_mutation(variables, options) {
1247
+ return requester(exports.closeDocument_mutationDocument, variables, options);
1248
+ },
1249
+ addExpense_mutation(variables, options) {
1250
+ return requester(exports.addExpense_mutationDocument, variables, options);
1251
+ },
1071
1252
  updateExpense_mutation(variables, options) {
1072
1253
  return requester(exports.updateExpense_mutationDocument, variables, options);
1073
1254
  },
1074
1255
  addExpenseDraftByFile_mutation(variables, options) {
1075
1256
  return requester(exports.addExpenseDraftByFile_mutationDocument, variables, options);
1076
1257
  },
1077
- closeDocument_mutation(variables, options) {
1078
- return requester(exports.closeDocument_mutationDocument, variables, options);
1258
+ addClient_mutation(variables, options) {
1259
+ return requester(exports.addClient_mutationDocument, variables, options);
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);
1079
1266
  }
1080
1267
  };
1081
1268
  }