@chift/chift-nodejs 1.0.15 → 1.0.17

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.
Files changed (90) hide show
  1. package/.github/workflows/ci.yml +10 -10
  2. package/CHANGELOG.md +15 -2
  3. package/README.md +3 -3
  4. package/dist/src/modules/accounting.d.ts +3 -3
  5. package/dist/src/modules/api.d.ts +4374 -2758
  6. package/dist/src/modules/consumer.d.ts +829 -509
  7. package/dist/src/modules/consumer.js +3 -0
  8. package/dist/src/modules/consumers.d.ts +4395 -2787
  9. package/dist/src/modules/datastores.d.ts +2 -2
  10. package/dist/src/modules/ecommerce.d.ts +2 -2
  11. package/dist/src/modules/integrations.d.ts +9 -4
  12. package/dist/src/modules/invoicing.d.ts +3 -3
  13. package/dist/src/modules/payment.d.ts +14 -0
  14. package/dist/src/modules/payment.js +41 -0
  15. package/dist/src/modules/sync.d.ts +3507 -2223
  16. package/dist/src/modules/sync.js +1 -1
  17. package/dist/src/modules/webhooks.d.ts +4 -1
  18. package/dist/src/types/sync.d.ts +22 -5
  19. package/dist/test/modules/accounting.test.js +58 -50
  20. package/dist/test/modules/consumer.test.js +4 -4
  21. package/dist/test/modules/consumers.test.js +4 -4
  22. package/dist/test/modules/ecommerce.test.js +23 -19
  23. package/dist/test/modules/integrations.test.js +4 -4
  24. package/dist/test/modules/invoicing.test.js +16 -9
  25. package/dist/test/modules/payment.test.d.ts +1 -0
  26. package/dist/test/modules/payment.test.js +88 -0
  27. package/dist/test/modules/pms.test.d.ts +1 -0
  28. package/dist/test/modules/pms.test.js +90 -0
  29. package/dist/test/modules/pos.test.js +31 -34
  30. package/dist/test/modules/sync.test.js +31 -19
  31. package/dist/test/modules/syncs.test.js +4 -4
  32. package/dist/test/modules/webhooks.test.js +4 -4
  33. package/package.json +1 -1
  34. package/src/modules/accounting.ts +3 -3
  35. package/src/modules/consumer.ts +6 -1
  36. package/src/modules/ecommerce.ts +4 -2
  37. package/src/modules/invoicing.ts +7 -3
  38. package/src/modules/payment.ts +59 -0
  39. package/src/modules/sync.ts +1 -1
  40. package/src/types/public-api/schema.d.ts +4165 -900
  41. package/src/types/sync.ts +20 -5
  42. package/test/modules/accounting.test.ts +69 -50
  43. package/test/modules/consumer.test.ts +5 -5
  44. package/test/modules/consumers.test.ts +4 -4
  45. package/test/modules/ecommerce.test.ts +25 -20
  46. package/test/modules/integrations.test.ts +4 -4
  47. package/test/modules/invoicing.test.ts +20 -10
  48. package/test/modules/payment.test.ts +65 -0
  49. package/test/modules/pms.test.ts +69 -0
  50. package/test/modules/pos.test.ts +32 -34
  51. package/test/modules/sync.test.ts +33 -19
  52. package/test/modules/syncs.test.ts +4 -4
  53. package/test/modules/webhooks.test.ts +4 -4
  54. package/.eslintcache +0 -1
  55. package/coverage/clover.xml +0 -1645
  56. package/coverage/coverage-final.json +0 -19
  57. package/coverage/lcov-report/base.css +0 -224
  58. package/coverage/lcov-report/block-navigation.js +0 -87
  59. package/coverage/lcov-report/favicon.png +0 -0
  60. package/coverage/lcov-report/index.html +0 -146
  61. package/coverage/lcov-report/prettify.css +0 -1
  62. package/coverage/lcov-report/prettify.js +0 -2
  63. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  64. package/coverage/lcov-report/sorter.js +0 -196
  65. package/coverage/lcov-report/src/helpers/index.html +0 -131
  66. package/coverage/lcov-report/src/helpers/openapi.ts.html +0 -151
  67. package/coverage/lcov-report/src/helpers/settings.ts.html +0 -94
  68. package/coverage/lcov-report/src/index.html +0 -116
  69. package/coverage/lcov-report/src/index.ts.html +0 -88
  70. package/coverage/lcov-report/src/modules/accounting.ts.html +0 -1156
  71. package/coverage/lcov-report/src/modules/api.ts.html +0 -190
  72. package/coverage/lcov-report/src/modules/consumer.ts.html +0 -616
  73. package/coverage/lcov-report/src/modules/consumers.ts.html +0 -331
  74. package/coverage/lcov-report/src/modules/custom.ts.html +0 -193
  75. package/coverage/lcov-report/src/modules/datastores.ts.html +0 -142
  76. package/coverage/lcov-report/src/modules/ecommerce.ts.html +0 -331
  77. package/coverage/lcov-report/src/modules/flow.ts.html +0 -589
  78. package/coverage/lcov-report/src/modules/index.html +0 -326
  79. package/coverage/lcov-report/src/modules/integrations.ts.html +0 -151
  80. package/coverage/lcov-report/src/modules/internalApi.ts.html +0 -586
  81. package/coverage/lcov-report/src/modules/invoicing.ts.html +0 -391
  82. package/coverage/lcov-report/src/modules/pos.ts.html +0 -421
  83. package/coverage/lcov-report/src/modules/sync.ts.html +0 -316
  84. package/coverage/lcov-report/src/modules/syncs.ts.html +0 -169
  85. package/coverage/lcov-report/src/modules/webhooks.ts.html +0 -343
  86. package/coverage/lcov.info +0 -1976
  87. package/dist/src/types/public-api/schema.d.ts +0 -11959
  88. package/dist/src/types/public-api/schema.js +0 -6
  89. package/src/types/public-api/schema.ts +0 -12029
  90. package/test/set_envs.sh +0 -14
@@ -17,14 +17,17 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
17
17
  status: "up" | "down";
18
18
  } | undefined;
19
19
  }[]>;
20
- createConnection: (body?: components['schemas']['PostConnectionItem']) => Promise<{
20
+ createConnection: (body?: components['schemas']['backbone_api__app__routers__connections__PostConnectionItem']) => Promise<{
21
21
  url: string;
22
22
  }>;
23
23
  updateConnection: (connectionId: string, body?: components['schemas']['PatchConnectionItem']) => Promise<{
24
24
  url: string;
25
25
  }>;
26
26
  deleteConnection: (connectionId: string) => Promise<{
27
- content: never;
27
+ headers: {
28
+ [name: string]: unknown;
29
+ };
30
+ content?: undefined;
28
31
  }>;
29
32
  enableFlow: (syncId: string, flowId: string, body: components['schemas']['EnableFlowConsumer']) => Promise<SimpleResponseModel>;
30
33
  getSyncUrl: (body: components['schemas']['CreateConsumerSyncItem']) => Promise<{
@@ -63,9 +66,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
63
66
  device_id?: string | undefined;
64
67
  total: number;
65
68
  tax_amount: number;
66
- total_discount?: number | undefined;
67
- total_refund?: number | undefined;
68
- total_tip?: number | undefined;
69
+ total_discount: number;
70
+ total_refund: number;
71
+ total_tip: number;
72
+ delivery_fee: number;
69
73
  currency?: string | undefined;
70
74
  country?: string | undefined;
71
75
  loyalty?: number | undefined;
@@ -76,13 +80,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
76
80
  tax_amount: number;
77
81
  total: number;
78
82
  }[] | undefined;
83
+ guests?: number | undefined;
79
84
  payments: {
80
85
  id?: string | undefined;
81
86
  payment_method_id?: string | undefined;
82
87
  payment_method_name?: string | undefined;
83
88
  total: number;
84
- tip?: number | undefined;
85
- status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
89
+ tip: number;
90
+ status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
86
91
  currency?: string | undefined;
87
92
  date?: string | undefined;
88
93
  }[];
@@ -94,10 +99,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
94
99
  tax_amount: number;
95
100
  tax_rate?: number | undefined;
96
101
  description?: string | undefined;
97
- discounts?: {
102
+ discounts: {
98
103
  name?: string | undefined;
99
104
  total: number;
100
- }[] | undefined;
105
+ }[];
101
106
  product_id?: string | undefined;
102
107
  accounting_category_id?: string | undefined;
103
108
  }[];
@@ -136,9 +141,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
136
141
  device_id?: string | undefined;
137
142
  total: number;
138
143
  tax_amount: number;
139
- total_discount?: number | undefined;
140
- total_refund?: number | undefined;
141
- total_tip?: number | undefined;
144
+ total_discount: number;
145
+ total_refund: number;
146
+ total_tip: number;
147
+ delivery_fee: number;
142
148
  currency?: string | undefined;
143
149
  country?: string | undefined;
144
150
  loyalty?: number | undefined;
@@ -149,13 +155,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
149
155
  tax_amount: number;
150
156
  total: number;
151
157
  }[] | undefined;
158
+ guests?: number | undefined;
152
159
  payments: {
153
160
  id?: string | undefined;
154
161
  payment_method_id?: string | undefined;
155
162
  payment_method_name?: string | undefined;
156
163
  total: number;
157
- tip?: number | undefined;
158
- status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
164
+ tip: number;
165
+ status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
159
166
  currency?: string | undefined;
160
167
  date?: string | undefined;
161
168
  }[];
@@ -167,10 +174,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
167
174
  tax_amount: number;
168
175
  tax_rate?: number | undefined;
169
176
  description?: string | undefined;
170
- discounts?: {
177
+ discounts: {
171
178
  name?: string | undefined;
172
179
  total: number;
173
- }[] | undefined;
180
+ }[];
174
181
  product_id?: string | undefined;
175
182
  accounting_category_id?: string | undefined;
176
183
  }[];
@@ -254,12 +261,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
254
261
  location_id?: string | undefined;
255
262
  } | undefined): import("../types/api").RequestData<{
256
263
  id: string;
257
- categories?: string[] | undefined;
264
+ categories: string[];
258
265
  name: string;
259
266
  description?: string | undefined;
260
267
  prices: {
261
268
  unit_price: number;
262
- tax_rate: number;
269
+ tax_rate?: number | undefined;
263
270
  }[];
264
271
  accounting_category_ids?: string[] | undefined;
265
272
  }[]>;
@@ -290,8 +297,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
290
297
  payment_method_id?: string | undefined;
291
298
  payment_method_name?: string | undefined;
292
299
  total: number;
293
- tip?: number | undefined;
294
- status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
300
+ tip: number;
301
+ status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
295
302
  currency?: string | undefined;
296
303
  date?: string | undefined;
297
304
  }[]>;
@@ -306,9 +313,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
306
313
  device_id?: string | undefined;
307
314
  total: number;
308
315
  tax_amount: number;
309
- total_discount?: number | undefined;
310
- total_refund?: number | undefined;
311
- total_tip?: number | undefined;
316
+ total_discount: number;
317
+ total_refund: number;
318
+ total_tip: number;
319
+ delivery_fee: number;
312
320
  currency?: string | undefined;
313
321
  country?: string | undefined;
314
322
  loyalty?: number | undefined;
@@ -319,13 +327,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
319
327
  tax_amount: number;
320
328
  total: number;
321
329
  }[] | undefined;
330
+ guests?: number | undefined;
322
331
  payments: {
323
332
  id?: string | undefined;
324
333
  payment_method_id?: string | undefined;
325
334
  payment_method_name?: string | undefined;
326
335
  total: number;
327
- tip?: number | undefined;
328
- status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
336
+ tip: number;
337
+ status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
329
338
  currency?: string | undefined;
330
339
  date?: string | undefined;
331
340
  }[];
@@ -337,15 +346,17 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
337
346
  tax_amount: number;
338
347
  tax_rate?: number | undefined;
339
348
  description?: string | undefined;
340
- discounts?: {
349
+ discounts: {
341
350
  name?: string | undefined;
342
351
  total: number;
343
- }[] | undefined;
352
+ }[];
344
353
  product_id?: string | undefined;
345
354
  accounting_category_id?: string | undefined;
346
355
  }[];
347
356
  }>;
348
- getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
357
+ getAccountingCategories(params?: {
358
+ location_id?: string | undefined;
359
+ } | undefined): import("../types/api").RequestData<{
349
360
  id: string;
350
361
  name: string;
351
362
  id_parent?: string | undefined;
@@ -388,9 +399,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
388
399
  device_id?: string | undefined;
389
400
  total: number;
390
401
  tax_amount: number;
391
- total_discount?: number | undefined;
392
- total_refund?: number | undefined;
393
- total_tip?: number | undefined;
402
+ total_discount: number;
403
+ total_refund: number;
404
+ total_tip: number;
405
+ delivery_fee: number;
394
406
  currency?: string | undefined;
395
407
  country?: string | undefined;
396
408
  loyalty?: number | undefined;
@@ -401,6 +413,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
401
413
  tax_amount: number;
402
414
  total: number;
403
415
  }[] | undefined;
416
+ guests?: number | undefined;
404
417
  items: {
405
418
  id: string;
406
419
  source_ref: {
@@ -413,10 +426,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
413
426
  tax_amount: number;
414
427
  tax_rate?: number | undefined;
415
428
  description?: string | undefined;
416
- discounts?: {
429
+ discounts: {
417
430
  name?: string | undefined;
418
431
  total: number;
419
- }[] | undefined;
432
+ }[];
420
433
  product_id?: string | undefined;
421
434
  accounting_category_id?: string | undefined;
422
435
  }[];
@@ -452,8 +465,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
452
465
  payment_method_id?: string | undefined;
453
466
  payment_method_name?: string | undefined;
454
467
  total: number;
455
- tip?: number | undefined;
456
- status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
468
+ tip: number;
469
+ status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
457
470
  currency?: string | undefined;
458
471
  date?: string | undefined;
459
472
  }[]>;
@@ -470,13 +483,96 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
470
483
  posting_account_code?: string | undefined;
471
484
  }[]>;
472
485
  }>;
486
+ payment: import("../types/api").ApiFor<{
487
+ getPayments(params: {
488
+ date_from?: string | undefined;
489
+ date_to?: string | undefined;
490
+ }): import("../types/api").RequestData<{
491
+ id: string;
492
+ source_ref: {
493
+ id?: string | undefined;
494
+ model?: string | undefined;
495
+ };
496
+ status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
497
+ description: string;
498
+ amount: number;
499
+ currency: string;
500
+ payment_date: string;
501
+ partner_id: string;
502
+ }[]>;
503
+ getBalances(params: {}): import("../types/api").RequestData<{
504
+ id: string;
505
+ source_ref: {
506
+ id?: string | undefined;
507
+ model?: string | undefined;
508
+ };
509
+ available_amount: number;
510
+ currency: string;
511
+ create_date: string;
512
+ }[]>;
513
+ getTransactions(params: {
514
+ date_from?: string | undefined;
515
+ date_to?: string | undefined;
516
+ accounting_category?: "unknown" | "all" | "payout" | "payout_cancel" | "payment" | "payment_cancel" | "fee" | "fee_cancel" | undefined;
517
+ starting_from?: string | undefined;
518
+ balance_id?: string | undefined;
519
+ }): import("../types/api").RequestData<{
520
+ id: string;
521
+ source_ref: {
522
+ id?: string | undefined;
523
+ model?: string | undefined;
524
+ };
525
+ total: number;
526
+ fee: number;
527
+ currency: string;
528
+ exchange_rate: number;
529
+ create_date: string;
530
+ application_type: string;
531
+ accounting_category: "unknown" | "all" | "payout" | "payout_cancel" | "payment" | "payment_cancel" | "fee" | "fee_cancel";
532
+ refund_id?: string | undefined;
533
+ payment_id?: string | undefined;
534
+ }[]>;
535
+ getPayment(params: {
536
+ payment_id: string;
537
+ consumer_id: string;
538
+ }): import("../types/api").RequestData<{
539
+ id: string;
540
+ source_ref: {
541
+ id?: string | undefined;
542
+ model?: string | undefined;
543
+ };
544
+ status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
545
+ description: string;
546
+ amount: number;
547
+ currency: string;
548
+ payment_date: string;
549
+ partner_id: string;
550
+ }>;
551
+ getRefunds(params: {
552
+ date_from?: string | undefined;
553
+ date_to?: string | undefined;
554
+ payment_id?: string | undefined;
555
+ }): import("../types/api").RequestData<{
556
+ id: string;
557
+ source_ref: {
558
+ id?: string | undefined;
559
+ model?: string | undefined;
560
+ };
561
+ status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
562
+ description: string;
563
+ amount: number;
564
+ currency: string;
565
+ refund_date: string;
566
+ payment_id?: string | undefined;
567
+ }[]>;
568
+ }>;
473
569
  accounting: import("../types/api").ApiFor<{
474
570
  getAnalyticPlans(params?: {
475
571
  folder_id?: string | undefined;
476
572
  } | undefined): import("../types/api").RequestData<{
477
573
  id: string;
478
574
  name: string;
479
- active?: boolean | undefined;
575
+ active: boolean;
480
576
  }[]>;
481
577
  getClients(params?: {
482
578
  folder_id?: string | undefined;
@@ -486,7 +582,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
486
582
  last_name?: string | undefined;
487
583
  name?: string | undefined;
488
584
  function?: string | undefined;
489
- is_company?: boolean | undefined;
585
+ is_company: boolean;
490
586
  company_id?: string | undefined;
491
587
  phone?: string | undefined;
492
588
  mobile?: string | undefined;
@@ -498,8 +594,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
498
594
  iban?: string | undefined;
499
595
  bank_account?: string | undefined;
500
596
  currency?: string | undefined;
501
- active?: boolean | undefined;
502
- addresses?: {
597
+ active: boolean;
598
+ addresses: {
503
599
  address_type: "main" | "delivery" | "invoice";
504
600
  name?: string | undefined;
505
601
  number?: string | undefined;
@@ -511,7 +607,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
511
607
  city?: string | undefined;
512
608
  postal_code?: string | undefined;
513
609
  country?: string | undefined;
514
- }[] | undefined;
610
+ }[];
515
611
  account_number?: string | undefined;
516
612
  company_number?: string | undefined;
517
613
  id?: string | undefined;
@@ -522,7 +618,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
522
618
  last_name?: string | undefined;
523
619
  name: string;
524
620
  function?: string | undefined;
525
- is_company?: boolean | undefined;
621
+ is_company: boolean;
526
622
  company_id?: string | undefined;
527
623
  phone?: string | undefined;
528
624
  mobile?: string | undefined;
@@ -534,7 +630,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
534
630
  iban?: string | undefined;
535
631
  bank_account?: string | undefined;
536
632
  currency?: string | undefined;
537
- active?: boolean | undefined;
633
+ active: boolean;
538
634
  addresses: {
539
635
  address_type: "main" | "delivery" | "invoice";
540
636
  name?: string | undefined;
@@ -558,7 +654,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
558
654
  last_name?: string | undefined;
559
655
  name?: string | undefined;
560
656
  function?: string | undefined;
561
- is_company?: boolean | undefined;
657
+ is_company: boolean;
562
658
  company_id?: string | undefined;
563
659
  phone?: string | undefined;
564
660
  mobile?: string | undefined;
@@ -570,8 +666,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
570
666
  iban?: string | undefined;
571
667
  bank_account?: string | undefined;
572
668
  currency?: string | undefined;
573
- active?: boolean | undefined;
574
- addresses?: {
669
+ active: boolean;
670
+ addresses: {
575
671
  address_type: "main" | "delivery" | "invoice";
576
672
  name?: string | undefined;
577
673
  number?: string | undefined;
@@ -583,7 +679,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
583
679
  city?: string | undefined;
584
680
  postal_code?: string | undefined;
585
681
  country?: string | undefined;
586
- }[] | undefined;
682
+ }[];
587
683
  account_number?: string | undefined;
588
684
  company_number?: string | undefined;
589
685
  id?: string | undefined;
@@ -596,7 +692,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
596
692
  last_name?: string | undefined;
597
693
  name?: string | undefined;
598
694
  function?: string | undefined;
599
- is_company?: boolean | undefined;
695
+ is_company: boolean;
600
696
  company_id?: string | undefined;
601
697
  phone?: string | undefined;
602
698
  mobile?: string | undefined;
@@ -608,8 +704,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
608
704
  iban?: string | undefined;
609
705
  bank_account?: string | undefined;
610
706
  currency?: string | undefined;
611
- active?: boolean | undefined;
612
- addresses?: {
707
+ active: boolean;
708
+ addresses: {
613
709
  address_type: "main" | "delivery" | "invoice";
614
710
  name?: string | undefined;
615
711
  number?: string | undefined;
@@ -621,7 +717,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
621
717
  city?: string | undefined;
622
718
  postal_code?: string | undefined;
623
719
  country?: string | undefined;
624
- }[] | undefined;
720
+ }[];
625
721
  account_number?: string | undefined;
626
722
  company_number?: string | undefined;
627
723
  id?: string | undefined;
@@ -632,7 +728,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
632
728
  last_name?: string | undefined;
633
729
  name?: string | undefined;
634
730
  function?: string | undefined;
635
- is_company?: boolean | undefined;
731
+ is_company: boolean;
636
732
  company_id?: string | undefined;
637
733
  phone?: string | undefined;
638
734
  mobile?: string | undefined;
@@ -644,8 +740,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
644
740
  iban?: string | undefined;
645
741
  bank_account?: string | undefined;
646
742
  currency?: string | undefined;
647
- active?: boolean | undefined;
648
- addresses?: {
743
+ active: boolean;
744
+ addresses: {
649
745
  address_type: "main" | "delivery" | "invoice";
650
746
  name?: string | undefined;
651
747
  number?: string | undefined;
@@ -657,7 +753,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
657
753
  city?: string | undefined;
658
754
  postal_code?: string | undefined;
659
755
  country?: string | undefined;
660
- }[] | undefined;
756
+ }[];
661
757
  }, params?: {
662
758
  folder_id?: string | undefined;
663
759
  } | undefined): import("../types/api").RequestData<{
@@ -666,7 +762,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
666
762
  last_name?: string | undefined;
667
763
  name?: string | undefined;
668
764
  function?: string | undefined;
669
- is_company?: boolean | undefined;
765
+ is_company: boolean;
670
766
  company_id?: string | undefined;
671
767
  phone?: string | undefined;
672
768
  mobile?: string | undefined;
@@ -678,8 +774,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
678
774
  iban?: string | undefined;
679
775
  bank_account?: string | undefined;
680
776
  currency?: string | undefined;
681
- active?: boolean | undefined;
682
- addresses?: {
777
+ active: boolean;
778
+ addresses: {
683
779
  address_type: "main" | "delivery" | "invoice";
684
780
  name?: string | undefined;
685
781
  number?: string | undefined;
@@ -691,7 +787,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
691
787
  city?: string | undefined;
692
788
  postal_code?: string | undefined;
693
789
  country?: string | undefined;
694
- }[] | undefined;
790
+ }[];
695
791
  account_number?: string | undefined;
696
792
  company_number?: string | undefined;
697
793
  id?: string | undefined;
@@ -704,7 +800,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
704
800
  last_name?: string | undefined;
705
801
  name?: string | undefined;
706
802
  function?: string | undefined;
707
- is_company?: boolean | undefined;
803
+ is_company: boolean;
708
804
  company_id?: string | undefined;
709
805
  phone?: string | undefined;
710
806
  mobile?: string | undefined;
@@ -716,8 +812,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
716
812
  iban?: string | undefined;
717
813
  bank_account?: string | undefined;
718
814
  currency?: string | undefined;
719
- active?: boolean | undefined;
720
- addresses?: {
815
+ active: boolean;
816
+ addresses: {
721
817
  address_type: "main" | "delivery" | "invoice";
722
818
  name?: string | undefined;
723
819
  number?: string | undefined;
@@ -729,7 +825,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
729
825
  city?: string | undefined;
730
826
  postal_code?: string | undefined;
731
827
  country?: string | undefined;
732
- }[] | undefined;
828
+ }[];
733
829
  account_number?: string | undefined;
734
830
  company_number?: string | undefined;
735
831
  id?: string | undefined;
@@ -740,7 +836,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
740
836
  last_name?: string | undefined;
741
837
  name: string;
742
838
  function?: string | undefined;
743
- is_company?: boolean | undefined;
839
+ is_company: boolean;
744
840
  company_id?: string | undefined;
745
841
  phone?: string | undefined;
746
842
  mobile?: string | undefined;
@@ -752,7 +848,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
752
848
  iban?: string | undefined;
753
849
  bank_account?: string | undefined;
754
850
  currency?: string | undefined;
755
- active?: boolean | undefined;
851
+ active: boolean;
756
852
  addresses: {
757
853
  address_type: "main" | "delivery" | "invoice";
758
854
  name?: string | undefined;
@@ -776,7 +872,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
776
872
  last_name?: string | undefined;
777
873
  name?: string | undefined;
778
874
  function?: string | undefined;
779
- is_company?: boolean | undefined;
875
+ is_company: boolean;
780
876
  company_id?: string | undefined;
781
877
  phone?: string | undefined;
782
878
  mobile?: string | undefined;
@@ -788,8 +884,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
788
884
  iban?: string | undefined;
789
885
  bank_account?: string | undefined;
790
886
  currency?: string | undefined;
791
- active?: boolean | undefined;
792
- addresses?: {
887
+ active: boolean;
888
+ addresses: {
793
889
  address_type: "main" | "delivery" | "invoice";
794
890
  name?: string | undefined;
795
891
  number?: string | undefined;
@@ -801,7 +897,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
801
897
  city?: string | undefined;
802
898
  postal_code?: string | undefined;
803
899
  country?: string | undefined;
804
- }[] | undefined;
900
+ }[];
805
901
  account_number?: string | undefined;
806
902
  company_number?: string | undefined;
807
903
  id?: string | undefined;
@@ -814,7 +910,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
814
910
  last_name?: string | undefined;
815
911
  name?: string | undefined;
816
912
  function?: string | undefined;
817
- is_company?: boolean | undefined;
913
+ is_company: boolean;
818
914
  company_id?: string | undefined;
819
915
  phone?: string | undefined;
820
916
  mobile?: string | undefined;
@@ -826,8 +922,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
826
922
  iban?: string | undefined;
827
923
  bank_account?: string | undefined;
828
924
  currency?: string | undefined;
829
- active?: boolean | undefined;
830
- addresses?: {
925
+ active: boolean;
926
+ addresses: {
831
927
  address_type: "main" | "delivery" | "invoice";
832
928
  name?: string | undefined;
833
929
  number?: string | undefined;
@@ -839,7 +935,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
839
935
  city?: string | undefined;
840
936
  postal_code?: string | undefined;
841
937
  country?: string | undefined;
842
- }[] | undefined;
938
+ }[];
843
939
  account_number?: string | undefined;
844
940
  company_number?: string | undefined;
845
941
  id?: string | undefined;
@@ -850,7 +946,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
850
946
  last_name?: string | undefined;
851
947
  name?: string | undefined;
852
948
  function?: string | undefined;
853
- is_company?: boolean | undefined;
949
+ is_company: boolean;
854
950
  company_id?: string | undefined;
855
951
  phone?: string | undefined;
856
952
  mobile?: string | undefined;
@@ -862,8 +958,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
862
958
  iban?: string | undefined;
863
959
  bank_account?: string | undefined;
864
960
  currency?: string | undefined;
865
- active?: boolean | undefined;
866
- addresses?: {
961
+ active: boolean;
962
+ addresses: {
867
963
  address_type: "main" | "delivery" | "invoice";
868
964
  name?: string | undefined;
869
965
  number?: string | undefined;
@@ -875,7 +971,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
875
971
  city?: string | undefined;
876
972
  postal_code?: string | undefined;
877
973
  country?: string | undefined;
878
- }[] | undefined;
974
+ }[];
879
975
  }, params?: {
880
976
  folder_id?: string | undefined;
881
977
  } | undefined): import("../types/api").RequestData<{
@@ -884,7 +980,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
884
980
  last_name?: string | undefined;
885
981
  name?: string | undefined;
886
982
  function?: string | undefined;
887
- is_company?: boolean | undefined;
983
+ is_company: boolean;
888
984
  company_id?: string | undefined;
889
985
  phone?: string | undefined;
890
986
  mobile?: string | undefined;
@@ -896,8 +992,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
896
992
  iban?: string | undefined;
897
993
  bank_account?: string | undefined;
898
994
  currency?: string | undefined;
899
- active?: boolean | undefined;
900
- addresses?: {
995
+ active: boolean;
996
+ addresses: {
901
997
  address_type: "main" | "delivery" | "invoice";
902
998
  name?: string | undefined;
903
999
  number?: string | undefined;
@@ -909,7 +1005,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
909
1005
  city?: string | undefined;
910
1006
  postal_code?: string | undefined;
911
1007
  country?: string | undefined;
912
- }[] | undefined;
1008
+ }[];
913
1009
  account_number?: string | undefined;
914
1010
  company_number?: string | undefined;
915
1011
  id?: string | undefined;
@@ -928,9 +1024,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
928
1024
  due_date: string;
929
1025
  partner_id: string;
930
1026
  journal_id?: string | undefined;
931
- status?: "draft" | "posted" | undefined;
1027
+ status: "draft" | "posted";
932
1028
  pdf?: string | undefined;
933
- currency_exchange_rate?: number | undefined;
1029
+ currency_exchange_rate: number;
934
1030
  invoice_correction?: {
935
1031
  sale_invoice_correction_tax_code?: string | undefined;
936
1032
  purchase_invoice_correction_tax_code?: string | undefined;
@@ -949,7 +1045,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
949
1045
  } | undefined;
950
1046
  shipping_country?: string | undefined;
951
1047
  lines: {
952
- line_number?: number | undefined;
1048
+ line_number: number;
953
1049
  description: string;
954
1050
  unit_price: number;
955
1051
  unit_of_measure?: string | undefined;
@@ -986,18 +1082,18 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
986
1082
  name: string;
987
1083
  currency: string;
988
1084
  amount: number;
989
- dedicated_amount?: number | undefined;
1085
+ dedicated_amount: number;
990
1086
  payment_date: string;
991
1087
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
992
1088
  journal_id: string;
993
1089
  journal_name: string;
994
- reconciled?: boolean | undefined;
1090
+ reconciled: boolean;
995
1091
  communication?: string | undefined;
996
1092
  matching_number?: string | undefined;
997
1093
  }[] | undefined;
998
- status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1094
+ status: "draft" | "posted" | "cancelled" | "paid";
999
1095
  lines: {
1000
- line_number?: number | undefined;
1096
+ line_number: number;
1001
1097
  description: string;
1002
1098
  unit_price: number;
1003
1099
  unit_of_measure?: string | undefined;
@@ -1025,9 +1121,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1025
1121
  due_date: string;
1026
1122
  partner_id: string;
1027
1123
  journal_id?: string | undefined;
1028
- status?: "draft" | "posted" | undefined;
1124
+ status: "draft" | "posted";
1029
1125
  pdf?: string | undefined;
1030
- currency_exchange_rate?: number | undefined;
1126
+ currency_exchange_rate: number;
1031
1127
  invoice_correction?: {
1032
1128
  sale_invoice_correction_tax_code?: string | undefined;
1033
1129
  purchase_invoice_correction_tax_code?: string | undefined;
@@ -1046,7 +1142,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1046
1142
  } | undefined;
1047
1143
  shipping_country?: string | undefined;
1048
1144
  lines: {
1049
- line_number?: number | undefined;
1145
+ line_number: number;
1050
1146
  description: string;
1051
1147
  unit_price: number;
1052
1148
  unit_of_measure?: string | undefined;
@@ -1057,13 +1153,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1057
1153
  total: number;
1058
1154
  account_number: string;
1059
1155
  tax_code: string;
1060
- analytic_distribution?: {
1156
+ analytic_distribution: {
1061
1157
  analytic_plan: string;
1062
1158
  analytic_accounts: {
1063
1159
  analytic_account: string;
1064
1160
  percentage: number;
1065
1161
  }[];
1066
- }[] | undefined;
1162
+ }[];
1067
1163
  }[];
1068
1164
  }, params?: {
1069
1165
  force_financial_period?: string | undefined;
@@ -1089,18 +1185,18 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1089
1185
  name: string;
1090
1186
  currency: string;
1091
1187
  amount: number;
1092
- dedicated_amount?: number | undefined;
1188
+ dedicated_amount: number;
1093
1189
  payment_date: string;
1094
1190
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1095
1191
  journal_id: string;
1096
1192
  journal_name: string;
1097
- reconciled?: boolean | undefined;
1193
+ reconciled: boolean;
1098
1194
  communication?: string | undefined;
1099
1195
  matching_number?: string | undefined;
1100
1196
  }[] | undefined;
1101
- status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1197
+ status: "draft" | "posted" | "cancelled" | "paid";
1102
1198
  lines: {
1103
- line_number?: number | undefined;
1199
+ line_number: number;
1104
1200
  description: string;
1105
1201
  unit_price: number;
1106
1202
  unit_of_measure?: string | undefined;
@@ -1111,13 +1207,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1111
1207
  total: number;
1112
1208
  account_number: string;
1113
1209
  tax_code?: string | undefined;
1114
- analytic_distribution?: {
1210
+ analytic_distribution: {
1115
1211
  analytic_plan: string;
1116
1212
  analytic_accounts: {
1117
1213
  analytic_account: string;
1118
1214
  percentage: number;
1119
1215
  }[];
1120
- }[] | undefined;
1216
+ }[];
1121
1217
  }[];
1122
1218
  }>;
1123
1219
  getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
@@ -1147,18 +1243,18 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1147
1243
  name: string;
1148
1244
  currency: string;
1149
1245
  amount: number;
1150
- dedicated_amount?: number | undefined;
1246
+ dedicated_amount: number;
1151
1247
  payment_date: string;
1152
1248
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1153
1249
  journal_id: string;
1154
1250
  journal_name: string;
1155
- reconciled?: boolean | undefined;
1251
+ reconciled: boolean;
1156
1252
  communication?: string | undefined;
1157
1253
  matching_number?: string | undefined;
1158
1254
  }[] | undefined;
1159
- status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1255
+ status: "draft" | "posted" | "cancelled" | "paid";
1160
1256
  lines: {
1161
- line_number?: number | undefined;
1257
+ line_number: number;
1162
1258
  description: string;
1163
1259
  unit_price: number;
1164
1260
  unit_of_measure?: string | undefined;
@@ -1195,18 +1291,18 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1195
1291
  name: string;
1196
1292
  currency: string;
1197
1293
  amount: number;
1198
- dedicated_amount?: number | undefined;
1294
+ dedicated_amount: number;
1199
1295
  payment_date: string;
1200
1296
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1201
1297
  journal_id: string;
1202
1298
  journal_name: string;
1203
- reconciled?: boolean | undefined;
1299
+ reconciled: boolean;
1204
1300
  communication?: string | undefined;
1205
1301
  matching_number?: string | undefined;
1206
1302
  }[] | undefined;
1207
- status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1303
+ status: "draft" | "posted" | "cancelled" | "paid";
1208
1304
  lines: {
1209
- line_number?: number | undefined;
1305
+ line_number: number;
1210
1306
  description: string;
1211
1307
  unit_price: number;
1212
1308
  unit_of_measure?: string | undefined;
@@ -1243,18 +1339,18 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1243
1339
  name: string;
1244
1340
  currency: string;
1245
1341
  amount: number;
1246
- dedicated_amount?: number | undefined;
1342
+ dedicated_amount: number;
1247
1343
  payment_date: string;
1248
1344
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1249
1345
  journal_id: string;
1250
1346
  journal_name: string;
1251
- reconciled?: boolean | undefined;
1347
+ reconciled: boolean;
1252
1348
  communication?: string | undefined;
1253
1349
  matching_number?: string | undefined;
1254
1350
  }[] | undefined;
1255
- status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1351
+ status: "draft" | "posted" | "cancelled" | "paid";
1256
1352
  lines: {
1257
- line_number?: number | undefined;
1353
+ line_number: number;
1258
1354
  description: string;
1259
1355
  unit_price: number;
1260
1356
  unit_of_measure?: string | undefined;
@@ -1265,13 +1361,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1265
1361
  total: number;
1266
1362
  account_number: string;
1267
1363
  tax_code?: string | undefined;
1268
- analytic_distribution?: {
1364
+ analytic_distribution: {
1269
1365
  analytic_plan: string;
1270
1366
  analytic_accounts: {
1271
1367
  analytic_account: string;
1272
1368
  percentage: number;
1273
1369
  }[];
1274
- }[] | undefined;
1370
+ }[];
1275
1371
  }[];
1276
1372
  }>;
1277
1373
  getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
@@ -1301,18 +1397,18 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1301
1397
  name: string;
1302
1398
  currency: string;
1303
1399
  amount: number;
1304
- dedicated_amount?: number | undefined;
1400
+ dedicated_amount: number;
1305
1401
  payment_date: string;
1306
1402
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1307
1403
  journal_id: string;
1308
1404
  journal_name: string;
1309
- reconciled?: boolean | undefined;
1405
+ reconciled: boolean;
1310
1406
  communication?: string | undefined;
1311
1407
  matching_number?: string | undefined;
1312
1408
  }[] | undefined;
1313
- status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1409
+ status: "draft" | "posted" | "cancelled" | "paid";
1314
1410
  lines: {
1315
- line_number?: number | undefined;
1411
+ line_number: number;
1316
1412
  description: string;
1317
1413
  unit_price: number;
1318
1414
  unit_of_measure?: string | undefined;
@@ -1323,17 +1419,17 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1323
1419
  total: number;
1324
1420
  account_number: string;
1325
1421
  tax_code?: string | undefined;
1326
- analytic_distribution?: {
1422
+ analytic_distribution: {
1327
1423
  analytic_plan: string;
1328
1424
  analytic_accounts: {
1329
1425
  analytic_account: string;
1330
1426
  percentage: number;
1331
1427
  }[];
1332
- }[] | undefined;
1428
+ }[];
1333
1429
  }[];
1334
1430
  }[]>;
1335
1431
  createAnalyticAccount(analyticAccount: {
1336
- active?: boolean | undefined;
1432
+ active: boolean;
1337
1433
  code: string;
1338
1434
  name: string;
1339
1435
  currency: string;
@@ -1345,9 +1441,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1345
1441
  code?: string | undefined;
1346
1442
  name: string;
1347
1443
  currency?: string | undefined;
1348
- balance?: number | undefined;
1349
- credit?: number | undefined;
1350
- debit?: number | undefined;
1444
+ balance: number;
1445
+ credit: number;
1446
+ debit: number;
1351
1447
  }>;
1352
1448
  getAnalyticAccounts(params?: {
1353
1449
  folder_id?: string | undefined;
@@ -1357,12 +1453,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1357
1453
  code?: string | undefined;
1358
1454
  name: string;
1359
1455
  currency?: string | undefined;
1360
- balance?: number | undefined;
1361
- credit?: number | undefined;
1362
- debit?: number | undefined;
1456
+ balance: number;
1457
+ credit: number;
1458
+ debit: number;
1363
1459
  }[]>;
1364
1460
  createAnalyticAccountWithMultiplePlans(analytic_plan: string, analyticAccount: {
1365
- active?: boolean | undefined;
1461
+ active: boolean;
1366
1462
  code: string;
1367
1463
  name: string;
1368
1464
  currency: string;
@@ -1374,9 +1470,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1374
1470
  code?: string | undefined;
1375
1471
  name: string;
1376
1472
  currency?: string | undefined;
1377
- balance?: number | undefined;
1378
- credit?: number | undefined;
1379
- debit?: number | undefined;
1473
+ balance: number;
1474
+ credit: number;
1475
+ debit: number;
1380
1476
  analytic_plan: string;
1381
1477
  }>;
1382
1478
  getAnalyticAccount(analytic_account_id: string, params?: {
@@ -1387,12 +1483,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1387
1483
  code?: string | undefined;
1388
1484
  name: string;
1389
1485
  currency?: string | undefined;
1390
- balance?: number | undefined;
1391
- credit?: number | undefined;
1392
- debit?: number | undefined;
1486
+ balance: number;
1487
+ credit: number;
1488
+ debit: number;
1393
1489
  }>;
1394
1490
  updateAnalyticAccount(analytic_account_id: string, analyticAccount: {
1395
- active?: boolean | undefined;
1491
+ active: boolean;
1396
1492
  code?: string | undefined;
1397
1493
  name?: string | undefined;
1398
1494
  currency?: string | undefined;
@@ -1404,9 +1500,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1404
1500
  code?: string | undefined;
1405
1501
  name: string;
1406
1502
  currency?: string | undefined;
1407
- balance?: number | undefined;
1408
- credit?: number | undefined;
1409
- debit?: number | undefined;
1503
+ balance: number;
1504
+ credit: number;
1505
+ debit: number;
1410
1506
  }>;
1411
1507
  getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
1412
1508
  folder_id?: string | undefined;
@@ -1416,13 +1512,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1416
1512
  code?: string | undefined;
1417
1513
  name: string;
1418
1514
  currency?: string | undefined;
1419
- balance?: number | undefined;
1420
- credit?: number | undefined;
1421
- debit?: number | undefined;
1515
+ balance: number;
1516
+ credit: number;
1517
+ debit: number;
1422
1518
  analytic_plan: string;
1423
1519
  }>;
1424
1520
  updateAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, analyticAccount: {
1425
- active?: boolean | undefined;
1521
+ active: boolean;
1426
1522
  code?: string | undefined;
1427
1523
  name?: string | undefined;
1428
1524
  currency?: string | undefined;
@@ -1434,9 +1530,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1434
1530
  code?: string | undefined;
1435
1531
  name: string;
1436
1532
  currency?: string | undefined;
1437
- balance?: number | undefined;
1438
- credit?: number | undefined;
1439
- debit?: number | undefined;
1533
+ balance: number;
1534
+ credit: number;
1535
+ debit: number;
1440
1536
  analytic_plan: string;
1441
1537
  }>;
1442
1538
  getAnalyticAccountsWithMultiplePlans(params?: {
@@ -1447,9 +1543,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1447
1543
  code?: string | undefined;
1448
1544
  name: string;
1449
1545
  currency?: string | undefined;
1450
- balance?: number | undefined;
1451
- credit?: number | undefined;
1452
- debit?: number | undefined;
1546
+ balance: number;
1547
+ credit: number;
1548
+ debit: number;
1453
1549
  analytic_plan: string;
1454
1550
  }[]>;
1455
1551
  getJournalEntries(params: {
@@ -1465,24 +1561,24 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1465
1561
  journal_id: string;
1466
1562
  name?: string | undefined;
1467
1563
  journal_name: string;
1468
- date?: string | undefined;
1469
- posted?: boolean | undefined;
1564
+ date: string;
1565
+ posted: boolean;
1470
1566
  id: string;
1471
- items?: {
1567
+ items: {
1472
1568
  account_number: string;
1473
1569
  partner_id?: string | undefined;
1474
1570
  description?: string | undefined;
1475
1571
  debit: number;
1476
1572
  credit: number;
1477
1573
  currency: string;
1478
- currency_exchange_rate?: number | undefined;
1574
+ currency_exchange_rate: number;
1479
1575
  id: string;
1480
1576
  partner_name?: string | undefined;
1481
1577
  account_name: string;
1482
- matching_numbers?: string[] | undefined;
1578
+ matching_numbers: string[];
1483
1579
  analytic_account?: string | undefined;
1484
1580
  analytic_account_name?: string | undefined;
1485
- }[] | undefined;
1581
+ }[];
1486
1582
  }[]>;
1487
1583
  getJournalEntriesWithMultiplePlans(params: {
1488
1584
  date_from: string;
@@ -1497,29 +1593,29 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1497
1593
  journal_id: string;
1498
1594
  name?: string | undefined;
1499
1595
  journal_name: string;
1500
- date?: string | undefined;
1501
- posted?: boolean | undefined;
1596
+ date: string;
1597
+ posted: boolean;
1502
1598
  id: string;
1503
- items?: {
1599
+ items: {
1504
1600
  account_number: string;
1505
1601
  partner_id?: string | undefined;
1506
1602
  description?: string | undefined;
1507
1603
  debit: number;
1508
1604
  credit: number;
1509
1605
  currency: string;
1510
- currency_exchange_rate?: number | undefined;
1606
+ currency_exchange_rate: number;
1511
1607
  id: string;
1512
1608
  partner_name?: string | undefined;
1513
1609
  account_name: string;
1514
- matching_numbers?: string[] | undefined;
1515
- analytic_distribution?: {
1610
+ matching_numbers: string[];
1611
+ analytic_distribution: {
1516
1612
  analytic_plan: string;
1517
1613
  analytic_accounts: {
1518
1614
  analytic_account: string;
1519
1615
  percentage: number;
1520
1616
  }[];
1521
- }[] | undefined;
1522
- }[] | undefined;
1617
+ }[];
1618
+ }[];
1523
1619
  }[]>;
1524
1620
  getPaymentsByInvoiceId(invoice_id: string, params?: {
1525
1621
  folder_id?: string | undefined;
@@ -1530,12 +1626,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1530
1626
  name: string;
1531
1627
  currency: string;
1532
1628
  amount: number;
1533
- dedicated_amount?: number | undefined;
1629
+ dedicated_amount: number;
1534
1630
  payment_date: string;
1535
1631
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1536
1632
  journal_id: string;
1537
1633
  journal_name: string;
1538
- reconciled?: boolean | undefined;
1634
+ reconciled: boolean;
1539
1635
  communication?: string | undefined;
1540
1636
  matching_number?: string | undefined;
1541
1637
  }[]>;
@@ -1546,6 +1642,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1546
1642
  code?: string | undefined;
1547
1643
  name: string;
1548
1644
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1645
+ counterpart_account?: string | undefined;
1646
+ next_document_numbers: {
1647
+ bookyear_name?: string | undefined;
1648
+ next_document_number?: string | undefined;
1649
+ start_date?: string | undefined;
1650
+ end_date?: string | undefined;
1651
+ }[];
1549
1652
  }[]>;
1550
1653
  getVatCodes(params?: {
1551
1654
  folder_id?: string | undefined;
@@ -1553,7 +1656,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1553
1656
  id: string;
1554
1657
  code?: string | undefined;
1555
1658
  label: string;
1556
- scope?: "unknown" | "nat" | "eu" | "int" | undefined;
1659
+ scope: "unknown" | "nat" | "eu" | "int";
1557
1660
  rate: number;
1558
1661
  type: "unknown" | "sale" | "purchase" | "both";
1559
1662
  deductible_account?: string | undefined;
@@ -1567,55 +1670,55 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1567
1670
  } | undefined): import("../types/api").RequestData<{
1568
1671
  operation_number?: string | undefined;
1569
1672
  currency: string;
1570
- currency_exchange_rate?: number | undefined;
1673
+ currency_exchange_rate: number;
1571
1674
  lines: {
1572
- line_number?: number | undefined;
1675
+ line_number: number;
1573
1676
  description?: string | undefined;
1574
1677
  amount: number;
1575
- type: "customer_account" | "supplier_account" | "general_account";
1678
+ type: "customer_account" | "general_account" | "supplier_account";
1576
1679
  account_number: string;
1577
1680
  partner_id?: string | undefined;
1578
1681
  analytic_account?: string | undefined;
1579
1682
  }[];
1580
- operation_date?: string | undefined;
1683
+ operation_date: string;
1581
1684
  journal_id: string;
1582
- status: "cancelled" | "draft" | "posted" | "matched";
1685
+ status: "draft" | "posted" | "cancelled" | "matched";
1583
1686
  id: string;
1584
1687
  }[]>;
1585
1688
  createMiscOperation(operation: {
1586
1689
  operation_number?: string | undefined;
1587
1690
  currency: string;
1588
- currency_exchange_rate?: number | undefined;
1691
+ currency_exchange_rate: number;
1589
1692
  lines: {
1590
- line_number?: number | undefined;
1693
+ line_number: number;
1591
1694
  description?: string | undefined;
1592
1695
  amount: number;
1593
- type: "customer_account" | "supplier_account" | "general_account";
1696
+ type: "customer_account" | "general_account" | "supplier_account";
1594
1697
  account_number: string;
1595
1698
  partner_id?: string | undefined;
1596
1699
  analytic_account?: string | undefined;
1597
1700
  }[];
1598
1701
  operation_date: string;
1599
1702
  journal_id?: string | undefined;
1600
- status?: "draft" | "posted" | undefined;
1703
+ status: "draft" | "posted";
1601
1704
  }, params?: {
1602
1705
  folder_id?: string | undefined;
1603
1706
  } | undefined): import("../types/api").RequestData<{
1604
1707
  operation_number?: string | undefined;
1605
1708
  currency: string;
1606
- currency_exchange_rate?: number | undefined;
1709
+ currency_exchange_rate: number;
1607
1710
  lines: {
1608
- line_number?: number | undefined;
1711
+ line_number: number;
1609
1712
  description?: string | undefined;
1610
1713
  amount: number;
1611
- type: "customer_account" | "supplier_account" | "general_account";
1714
+ type: "customer_account" | "general_account" | "supplier_account";
1612
1715
  account_number: string;
1613
1716
  partner_id?: string | undefined;
1614
1717
  analytic_account?: string | undefined;
1615
1718
  }[];
1616
- operation_date?: string | undefined;
1719
+ operation_date: string;
1617
1720
  journal_id: string;
1618
- status: "cancelled" | "draft" | "posted" | "matched";
1721
+ status: "draft" | "posted" | "cancelled" | "matched";
1619
1722
  id: string;
1620
1723
  }>;
1621
1724
  getMiscOperation(operation_id: string, params?: {
@@ -1623,19 +1726,19 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1623
1726
  } | undefined): import("../types/api").RequestData<{
1624
1727
  operation_number?: string | undefined;
1625
1728
  currency: string;
1626
- currency_exchange_rate?: number | undefined;
1729
+ currency_exchange_rate: number;
1627
1730
  lines: {
1628
- line_number?: number | undefined;
1731
+ line_number: number;
1629
1732
  description?: string | undefined;
1630
1733
  amount: number;
1631
- type: "customer_account" | "supplier_account" | "general_account";
1734
+ type: "customer_account" | "general_account" | "supplier_account";
1632
1735
  account_number: string;
1633
1736
  partner_id?: string | undefined;
1634
1737
  analytic_account?: string | undefined;
1635
1738
  }[];
1636
- operation_date?: string | undefined;
1739
+ operation_date: string;
1637
1740
  journal_id: string;
1638
- status: "cancelled" | "draft" | "posted" | "matched";
1741
+ status: "draft" | "posted" | "cancelled" | "matched";
1639
1742
  id: string;
1640
1743
  }>;
1641
1744
  attachPDF(invoice_id: string, attachment: {
@@ -1644,6 +1747,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1644
1747
  overwrite_existing?: "true" | "false" | undefined;
1645
1748
  folder_id?: string | undefined;
1646
1749
  } | undefined): import("../types/api").RequestData<{
1750
+ headers: {
1751
+ [name: string]: unknown;
1752
+ };
1647
1753
  content: {
1648
1754
  'application/json': unknown;
1649
1755
  };
@@ -1661,8 +1767,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1661
1767
  } | undefined): import("../types/api").RequestData<{
1662
1768
  number: string;
1663
1769
  name: string;
1664
- active?: boolean | undefined;
1665
- type?: "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "vat" | "other" | undefined;
1770
+ active: boolean;
1771
+ type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
1666
1772
  }[]>;
1667
1773
  getBalanceOfAccounts(filter: {
1668
1774
  accounts: string[];
@@ -1676,6 +1782,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1676
1782
  debit: number;
1677
1783
  credit: number;
1678
1784
  balance: number;
1785
+ period_debit: number;
1786
+ period_credit: number;
1787
+ period_balance: number;
1679
1788
  }[]>;
1680
1789
  getEmployees(params?: {
1681
1790
  folder_id?: string | undefined;
@@ -1688,13 +1797,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1688
1797
  phone?: string | undefined;
1689
1798
  mobile?: string | undefined;
1690
1799
  email?: string | undefined;
1691
- active?: boolean | undefined;
1800
+ active: boolean;
1692
1801
  reference?: string | undefined;
1693
1802
  account_number?: string | undefined;
1694
1803
  }[]>;
1695
1804
  getOutstandings(params: {
1696
1805
  folder_id?: string | undefined;
1697
- type: "supplier" | "client";
1806
+ type: "client" | "supplier";
1698
1807
  unposted_allowed: "true" | "false";
1699
1808
  }): import("../types/api").RequestData<{
1700
1809
  id: string;
@@ -1717,11 +1826,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1717
1826
  date: string;
1718
1827
  journal_id: string;
1719
1828
  currency: string;
1720
- currency_exchange_rate?: number | undefined;
1829
+ currency_exchange_rate: number;
1721
1830
  reference?: string | undefined;
1722
1831
  number?: string | undefined;
1723
1832
  items: {
1724
- type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1833
+ type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
1725
1834
  account_number: string;
1726
1835
  partner_id?: string | undefined;
1727
1836
  amount: number;
@@ -1735,12 +1844,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1735
1844
  date: string;
1736
1845
  journal_id: string;
1737
1846
  currency: string;
1738
- currency_exchange_rate?: number | undefined;
1847
+ currency_exchange_rate: number;
1739
1848
  reference?: string | undefined;
1740
1849
  id: string;
1741
1850
  number: string;
1742
1851
  items: {
1743
- type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1852
+ type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
1744
1853
  account_number: string;
1745
1854
  partner_id?: string | undefined;
1746
1855
  amount: number;
@@ -1752,11 +1861,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1752
1861
  date: string;
1753
1862
  journal_id: string;
1754
1863
  currency: string;
1755
- currency_exchange_rate?: number | undefined;
1864
+ currency_exchange_rate: number;
1756
1865
  reference?: string | undefined;
1757
1866
  number?: string | undefined;
1758
1867
  items: {
1759
- account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1868
+ account_type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
1760
1869
  account: string;
1761
1870
  amount: number;
1762
1871
  description?: string | undefined;
@@ -1769,12 +1878,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1769
1878
  date: string;
1770
1879
  journal_id: string;
1771
1880
  currency: string;
1772
- currency_exchange_rate?: number | undefined;
1881
+ currency_exchange_rate: number;
1773
1882
  reference?: string | undefined;
1774
1883
  id: string;
1775
1884
  number: string;
1776
1885
  items: {
1777
- account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1886
+ account_type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
1778
1887
  account: string;
1779
1888
  amount: number;
1780
1889
  description?: string | undefined;
@@ -1794,14 +1903,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1794
1903
  debit: number;
1795
1904
  credit: number;
1796
1905
  currency: string;
1797
- currency_exchange_rate?: number | undefined;
1798
- analytic_distribution?: {
1906
+ currency_exchange_rate: number;
1907
+ analytic_distribution: {
1799
1908
  analytic_plan: string;
1800
1909
  analytic_accounts: {
1801
1910
  analytic_account: string;
1802
1911
  percentage: number;
1803
1912
  }[];
1804
- }[] | undefined;
1913
+ }[];
1805
1914
  }[];
1806
1915
  pdf?: string | undefined;
1807
1916
  }): import("../types/api").RequestData<{
@@ -1810,29 +1919,29 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1810
1919
  journal_id: string;
1811
1920
  name?: string | undefined;
1812
1921
  journal_name: string;
1813
- date?: string | undefined;
1814
- posted?: boolean | undefined;
1922
+ date: string;
1923
+ posted: boolean;
1815
1924
  id: string;
1816
- items?: {
1925
+ items: {
1817
1926
  account_number: string;
1818
1927
  partner_id?: string | undefined;
1819
1928
  description?: string | undefined;
1820
1929
  debit: number;
1821
1930
  credit: number;
1822
1931
  currency: string;
1823
- currency_exchange_rate?: number | undefined;
1932
+ currency_exchange_rate: number;
1824
1933
  id: string;
1825
1934
  partner_name?: string | undefined;
1826
1935
  account_name: string;
1827
- matching_numbers?: string[] | undefined;
1828
- analytic_distribution?: {
1936
+ matching_numbers: string[];
1937
+ analytic_distribution: {
1829
1938
  analytic_plan: string;
1830
1939
  analytic_accounts: {
1831
1940
  analytic_account: string;
1832
1941
  percentage: number;
1833
1942
  }[];
1834
- }[] | undefined;
1835
- }[] | undefined;
1943
+ }[];
1944
+ }[];
1836
1945
  }>;
1837
1946
  createJournalEntry(journal_entry: {
1838
1947
  reference?: string | undefined;
@@ -1840,28 +1949,29 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1840
1949
  journal_id: string;
1841
1950
  number: string;
1842
1951
  currency: string;
1843
- currency_exchange_rate?: number | undefined;
1952
+ currency_exchange_rate: number;
1844
1953
  date: string;
1845
1954
  items: {
1846
- account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1955
+ account_type: "customer_account" | "general_account" | "supplier_account" | "employee_account";
1847
1956
  account: string;
1848
1957
  force_general_account?: string | undefined;
1849
- prioritise_thirdparty_account?: boolean | undefined;
1958
+ prioritise_thirdparty_account: boolean;
1850
1959
  description?: string | undefined;
1851
1960
  debit: number;
1852
1961
  credit: number;
1853
- analytic_distribution?: {
1962
+ analytic_distribution: {
1854
1963
  analytic_plan: string;
1855
1964
  analytic_accounts: {
1856
1965
  analytic_account: string;
1857
1966
  percentage: number;
1858
1967
  }[];
1859
- }[] | undefined;
1968
+ }[];
1860
1969
  tax_code?: string | undefined;
1861
1970
  }[];
1862
1971
  pdf?: string | undefined;
1863
- posted?: boolean | undefined;
1972
+ posted: boolean;
1864
1973
  }, params?: {
1974
+ force_currency_exchange?: "true" | "false" | undefined;
1865
1975
  folder_id?: string | undefined;
1866
1976
  } | undefined): import("../types/api").RequestData<{
1867
1977
  reference?: string | undefined;
@@ -1869,29 +1979,29 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1869
1979
  journal_id: string;
1870
1980
  name?: string | undefined;
1871
1981
  journal_name: string;
1872
- date?: string | undefined;
1873
- posted?: boolean | undefined;
1982
+ date: string;
1983
+ posted: boolean;
1874
1984
  id: string;
1875
- items?: {
1985
+ items: {
1876
1986
  account_number: string;
1877
1987
  partner_id?: string | undefined;
1878
1988
  description?: string | undefined;
1879
1989
  debit: number;
1880
1990
  credit: number;
1881
1991
  currency: string;
1882
- currency_exchange_rate?: number | undefined;
1992
+ currency_exchange_rate: number;
1883
1993
  id: string;
1884
1994
  partner_name?: string | undefined;
1885
1995
  account_name: string;
1886
- matching_numbers?: string[] | undefined;
1887
- analytic_distribution?: {
1996
+ matching_numbers: string[];
1997
+ analytic_distribution: {
1888
1998
  analytic_plan: string;
1889
1999
  analytic_accounts: {
1890
2000
  analytic_account: string;
1891
2001
  percentage: number;
1892
2002
  }[];
1893
- }[] | undefined;
1894
- }[] | undefined;
2003
+ }[];
2004
+ }[];
1895
2005
  }>;
1896
2006
  matchEntries(body: {
1897
2007
  entries: string[];
@@ -1905,7 +2015,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1905
2015
  getFolders(): import("../types/api").RequestData<{
1906
2016
  id: string;
1907
2017
  name: string;
1908
- selected?: boolean | undefined;
2018
+ selected: boolean;
1909
2019
  vat?: string | undefined;
1910
2020
  company_number?: string | undefined;
1911
2021
  }[]>;
@@ -1915,7 +2025,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1915
2025
  date_from?: string | undefined;
1916
2026
  date_to?: string | undefined;
1917
2027
  payment_status?: "all" | "paid" | "unpaid" | undefined;
1918
- invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
2028
+ invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
1919
2029
  updated_after?: string | undefined;
1920
2030
  } | undefined): import("../types/api").RequestData<{
1921
2031
  id: string;
@@ -1925,16 +2035,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1925
2035
  };
1926
2036
  currency: string;
1927
2037
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1928
- status: "cancelled" | "draft" | "posted" | "paid";
2038
+ status: "draft" | "posted" | "cancelled" | "paid";
1929
2039
  invoice_date: string;
1930
2040
  tax_amount: number;
1931
2041
  untaxed_amount: number;
1932
2042
  total: number;
1933
- lines?: {
2043
+ lines: {
1934
2044
  description?: string | undefined;
1935
2045
  unit_price: number;
1936
2046
  quantity: number;
1937
- discount_amount?: number | undefined;
2047
+ discount_amount: number;
1938
2048
  tax_amount: number;
1939
2049
  untaxed_amount: number;
1940
2050
  total: number;
@@ -1945,7 +2055,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1945
2055
  product_id?: string | undefined;
1946
2056
  product_code?: string | undefined;
1947
2057
  product_name?: string | undefined;
1948
- }[] | undefined;
2058
+ }[];
1949
2059
  partner_id?: string | undefined;
1950
2060
  invoice_number?: string | undefined;
1951
2061
  due_date?: string | undefined;
@@ -1957,8 +2067,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1957
2067
  model?: string | undefined;
1958
2068
  name?: string | undefined;
1959
2069
  } | undefined;
1960
- outstanding_amount?: number | undefined;
1961
2070
  last_updated_on?: string | undefined;
2071
+ outstanding_amount?: number | undefined;
1962
2072
  }[]>;
1963
2073
  getInvoiceById(invoiceId: string, params?: {
1964
2074
  include_pdf?: "true" | "false" | undefined;
@@ -1970,16 +2080,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1970
2080
  };
1971
2081
  currency: string;
1972
2082
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1973
- status: "cancelled" | "draft" | "posted" | "paid";
2083
+ status: "draft" | "posted" | "cancelled" | "paid";
1974
2084
  invoice_date: string;
1975
2085
  tax_amount: number;
1976
2086
  untaxed_amount: number;
1977
2087
  total: number;
1978
- lines?: {
2088
+ lines: {
1979
2089
  description?: string | undefined;
1980
2090
  unit_price: number;
1981
2091
  quantity: number;
1982
- discount_amount?: number | undefined;
2092
+ discount_amount: number;
1983
2093
  tax_amount: number;
1984
2094
  untaxed_amount: number;
1985
2095
  total: number;
@@ -1990,7 +2100,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1990
2100
  product_id?: string | undefined;
1991
2101
  product_code?: string | undefined;
1992
2102
  product_name?: string | undefined;
1993
- }[] | undefined;
2103
+ }[];
1994
2104
  partner_id?: string | undefined;
1995
2105
  invoice_number?: string | undefined;
1996
2106
  due_date?: string | undefined;
@@ -2002,22 +2112,22 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2002
2112
  model?: string | undefined;
2003
2113
  name?: string | undefined;
2004
2114
  } | undefined;
2005
- outstanding_amount?: number | undefined;
2006
2115
  last_updated_on?: string | undefined;
2116
+ outstanding_amount?: number | undefined;
2007
2117
  }>;
2008
2118
  createInvoice(invoice: {
2009
2119
  currency: string;
2010
2120
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
2011
- status: "cancelled" | "draft" | "posted" | "paid";
2121
+ status: "draft" | "posted" | "cancelled" | "paid";
2012
2122
  invoice_date: string;
2013
2123
  tax_amount: number;
2014
2124
  untaxed_amount: number;
2015
2125
  total: number;
2016
- lines?: {
2126
+ lines: {
2017
2127
  description?: string | undefined;
2018
2128
  unit_price: number;
2019
2129
  quantity: number;
2020
- discount_amount?: number | undefined;
2130
+ discount_amount: number;
2021
2131
  tax_amount: number;
2022
2132
  untaxed_amount: number;
2023
2133
  total: number;
@@ -2028,7 +2138,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2028
2138
  product_id?: string | undefined;
2029
2139
  product_code?: string | undefined;
2030
2140
  product_name?: string | undefined;
2031
- }[] | undefined;
2141
+ }[];
2032
2142
  partner_id?: string | undefined;
2033
2143
  invoice_number?: string | undefined;
2034
2144
  due_date?: string | undefined;
@@ -2040,7 +2150,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2040
2150
  model?: string | undefined;
2041
2151
  name?: string | undefined;
2042
2152
  } | undefined;
2043
- outstanding_amount?: number | undefined;
2044
2153
  }): import("../types/api").RequestData<{
2045
2154
  id: string;
2046
2155
  source_ref: {
@@ -2049,16 +2158,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2049
2158
  };
2050
2159
  currency: string;
2051
2160
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
2052
- status: "cancelled" | "draft" | "posted" | "paid";
2161
+ status: "draft" | "posted" | "cancelled" | "paid";
2053
2162
  invoice_date: string;
2054
2163
  tax_amount: number;
2055
2164
  untaxed_amount: number;
2056
2165
  total: number;
2057
- lines?: {
2166
+ lines: {
2058
2167
  description?: string | undefined;
2059
2168
  unit_price: number;
2060
2169
  quantity: number;
2061
- discount_amount?: number | undefined;
2170
+ discount_amount: number;
2062
2171
  tax_amount: number;
2063
2172
  untaxed_amount: number;
2064
2173
  total: number;
@@ -2069,7 +2178,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2069
2178
  product_id?: string | undefined;
2070
2179
  product_code?: string | undefined;
2071
2180
  product_name?: string | undefined;
2072
- }[] | undefined;
2181
+ }[];
2073
2182
  partner_id?: string | undefined;
2074
2183
  invoice_number?: string | undefined;
2075
2184
  due_date?: string | undefined;
@@ -2081,8 +2190,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2081
2190
  model?: string | undefined;
2082
2191
  name?: string | undefined;
2083
2192
  } | undefined;
2084
- outstanding_amount?: number | undefined;
2085
2193
  last_updated_on?: string | undefined;
2194
+ outstanding_amount?: number | undefined;
2086
2195
  }>;
2087
2196
  getProducts(): import("../types/api").RequestData<{
2088
2197
  id: string;
@@ -2098,8 +2207,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2098
2207
  category?: string | undefined;
2099
2208
  currency?: string | undefined;
2100
2209
  description?: string | undefined;
2101
- available_quantity?: number | undefined;
2102
- cost?: number | undefined;
2210
+ available_quantity: number;
2211
+ cost: number;
2103
2212
  }[]>;
2104
2213
  getProductById(productId: string): import("../types/api").RequestData<{
2105
2214
  id: string;
@@ -2115,8 +2224,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2115
2224
  category?: string | undefined;
2116
2225
  currency?: string | undefined;
2117
2226
  description?: string | undefined;
2118
- available_quantity?: number | undefined;
2119
- cost?: number | undefined;
2227
+ available_quantity: number;
2228
+ cost: number;
2120
2229
  }>;
2121
2230
  createProduct(product: {
2122
2231
  name: string;
@@ -2141,8 +2250,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2141
2250
  category?: string | undefined;
2142
2251
  currency?: string | undefined;
2143
2252
  description?: string | undefined;
2144
- available_quantity?: number | undefined;
2145
- cost?: number | undefined;
2253
+ available_quantity: number;
2254
+ cost: number;
2146
2255
  }>;
2147
2256
  getTaxes(): import("../types/api").RequestData<{
2148
2257
  id: string;
@@ -2154,7 +2263,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2154
2263
  rate: number;
2155
2264
  type: "unknown" | "sale" | "purchase" | "both";
2156
2265
  code?: string | undefined;
2157
- scope?: "unknown" | "nat" | "eu" | "int" | undefined;
2266
+ scope: "unknown" | "nat" | "eu" | "int";
2158
2267
  }[]>;
2159
2268
  getTaxById(taxId: string): import("../types/api").RequestData<{
2160
2269
  id: string;
@@ -2166,7 +2275,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2166
2275
  rate: number;
2167
2276
  type: "unknown" | "sale" | "purchase" | "both";
2168
2277
  code?: string | undefined;
2169
- scope?: "unknown" | "nat" | "eu" | "int" | undefined;
2278
+ scope: "unknown" | "nat" | "eu" | "int";
2170
2279
  }>;
2171
2280
  getOpportunities(): import("../types/api").RequestData<{
2172
2281
  id: string;
@@ -2221,7 +2330,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2221
2330
  } | undefined;
2222
2331
  }>;
2223
2332
  getContacts(params?: {
2224
- contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
2333
+ contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
2225
2334
  } | undefined): import("../types/api").RequestData<{
2226
2335
  id: string;
2227
2336
  source_ref: {
@@ -2248,8 +2357,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2248
2357
  supplier_account_number?: string | undefined;
2249
2358
  birthdate?: string | undefined;
2250
2359
  gender?: "H" | "F" | "N/A" | undefined;
2251
- addresses?: {
2252
- address_type: "other" | "main" | "delivery" | "invoice";
2360
+ addresses: {
2361
+ address_type: "main" | "delivery" | "invoice" | "other";
2253
2362
  name?: string | undefined;
2254
2363
  number?: string | undefined;
2255
2364
  box?: string | undefined;
@@ -2260,7 +2369,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2260
2369
  city?: string | undefined;
2261
2370
  postal_code?: string | undefined;
2262
2371
  country?: string | undefined;
2263
- }[] | undefined;
2372
+ }[];
2373
+ external_reference?: string | undefined;
2264
2374
  }[]>;
2265
2375
  getContactById(contactId: string): import("../types/api").RequestData<{
2266
2376
  id: string;
@@ -2288,8 +2398,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2288
2398
  supplier_account_number?: string | undefined;
2289
2399
  birthdate?: string | undefined;
2290
2400
  gender?: "H" | "F" | "N/A" | undefined;
2291
- addresses?: {
2292
- address_type: "other" | "main" | "delivery" | "invoice";
2401
+ addresses: {
2402
+ address_type: "main" | "delivery" | "invoice" | "other";
2293
2403
  name?: string | undefined;
2294
2404
  number?: string | undefined;
2295
2405
  box?: string | undefined;
@@ -2300,7 +2410,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2300
2410
  city?: string | undefined;
2301
2411
  postal_code?: string | undefined;
2302
2412
  country?: string | undefined;
2303
- }[] | undefined;
2413
+ }[];
2414
+ external_reference?: string | undefined;
2304
2415
  }>;
2305
2416
  createContact(contact: {
2306
2417
  is_prospect?: boolean | undefined;
@@ -2323,8 +2434,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2323
2434
  supplier_account_number?: string | undefined;
2324
2435
  birthdate?: string | undefined;
2325
2436
  gender?: "H" | "F" | "N/A" | undefined;
2326
- addresses?: {
2327
- address_type: "other" | "main" | "delivery" | "invoice";
2437
+ addresses: {
2438
+ address_type: "main" | "delivery" | "invoice" | "other";
2328
2439
  name?: string | undefined;
2329
2440
  number?: string | undefined;
2330
2441
  box?: string | undefined;
@@ -2335,7 +2446,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2335
2446
  city: string;
2336
2447
  postal_code: string;
2337
2448
  country: string;
2338
- }[] | undefined;
2449
+ }[];
2339
2450
  }): import("../types/api").RequestData<{
2340
2451
  id: string;
2341
2452
  source_ref: {
@@ -2362,8 +2473,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2362
2473
  supplier_account_number?: string | undefined;
2363
2474
  birthdate?: string | undefined;
2364
2475
  gender?: "H" | "F" | "N/A" | undefined;
2365
- addresses?: {
2366
- address_type: "other" | "main" | "delivery" | "invoice";
2476
+ addresses: {
2477
+ address_type: "main" | "delivery" | "invoice" | "other";
2367
2478
  name?: string | undefined;
2368
2479
  number?: string | undefined;
2369
2480
  box?: string | undefined;
@@ -2374,7 +2485,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2374
2485
  city?: string | undefined;
2375
2486
  postal_code?: string | undefined;
2376
2487
  country?: string | undefined;
2377
- }[] | undefined;
2488
+ }[];
2489
+ external_reference?: string | undefined;
2378
2490
  }>;
2379
2491
  }>;
2380
2492
  ecommerce: import("../types/api").ApiFor<{
@@ -2391,7 +2503,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2391
2503
  language?: string | undefined;
2392
2504
  internal_notes?: string | undefined;
2393
2505
  currency?: string | undefined;
2394
- addresses?: {
2506
+ addresses: {
2395
2507
  address_type: "main" | "delivery" | "invoice";
2396
2508
  company_name?: string | undefined;
2397
2509
  first_name?: string | undefined;
@@ -2404,7 +2516,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2404
2516
  country?: string | undefined;
2405
2517
  phone?: string | undefined;
2406
2518
  email?: string | undefined;
2407
- }[] | undefined;
2519
+ }[];
2408
2520
  created_on?: string | undefined;
2409
2521
  }[]>;
2410
2522
  getProducts(): import("../types/api").RequestData<{
@@ -2416,12 +2528,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2416
2528
  name: string;
2417
2529
  description?: string | undefined;
2418
2530
  description_html?: string | undefined;
2419
- categories?: {
2531
+ categories: {
2420
2532
  id: string;
2421
2533
  name: string;
2422
- }[] | undefined;
2534
+ }[];
2423
2535
  created_on?: string | undefined;
2424
- variants?: {
2536
+ variants: {
2425
2537
  id: string;
2426
2538
  source_ref: {
2427
2539
  id?: string | undefined;
@@ -2431,46 +2543,46 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2431
2543
  name: string;
2432
2544
  description?: string | undefined;
2433
2545
  description_html?: string | undefined;
2434
- categories?: {
2546
+ categories: {
2435
2547
  id: string;
2436
2548
  name: string;
2437
- }[] | undefined;
2549
+ }[];
2438
2550
  created_on?: string | undefined;
2439
2551
  sku?: string | undefined;
2440
2552
  barcode?: string | undefined;
2441
- available_quantity?: number | undefined;
2442
- prices?: {
2553
+ available_quantity: number;
2554
+ prices: {
2443
2555
  currency: string;
2444
- price?: number | undefined;
2445
- }[] | undefined;
2556
+ price: number;
2557
+ }[];
2446
2558
  unit_of_measure?: string | undefined;
2447
- weight?: number | undefined;
2559
+ weight: number;
2448
2560
  weight_unit?: string | undefined;
2449
2561
  status?: "unknown" | "archived" | "unpublished" | "published" | undefined;
2450
- variant_attributes?: {
2562
+ variant_attributes: {
2451
2563
  name: string;
2452
2564
  value: string;
2453
- }[] | undefined;
2454
- variant_images?: {
2565
+ }[];
2566
+ variant_images: {
2455
2567
  id: string;
2456
2568
  main_image: boolean;
2457
2569
  url: string;
2458
- }[] | undefined;
2459
- }[] | undefined;
2570
+ }[];
2571
+ }[];
2460
2572
  status?: "unknown" | "archived" | "unpublished" | "published" | undefined;
2461
- common_attributes?: {
2573
+ common_attributes: {
2462
2574
  name: string;
2463
2575
  values: string[];
2464
- }[] | undefined;
2465
- variant_attributes_options?: {
2576
+ }[];
2577
+ variant_attributes_options: {
2466
2578
  name: string;
2467
2579
  values: string[];
2468
- }[] | undefined;
2469
- common_images?: {
2580
+ }[];
2581
+ common_images: {
2470
2582
  id: string;
2471
2583
  main_image: boolean;
2472
2584
  url: string;
2473
- }[] | undefined;
2585
+ }[];
2474
2586
  }[]>;
2475
2587
  getCustomer(customerId: string): import("../types/api").RequestData<{
2476
2588
  id: string;
@@ -2485,7 +2597,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2485
2597
  language?: string | undefined;
2486
2598
  internal_notes?: string | undefined;
2487
2599
  currency?: string | undefined;
2488
- addresses?: {
2600
+ addresses: {
2489
2601
  address_type: "main" | "delivery" | "invoice";
2490
2602
  company_name?: string | undefined;
2491
2603
  first_name?: string | undefined;
@@ -2498,7 +2610,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2498
2610
  country?: string | undefined;
2499
2611
  phone?: string | undefined;
2500
2612
  email?: string | undefined;
2501
- }[] | undefined;
2613
+ }[];
2502
2614
  created_on?: string | undefined;
2503
2615
  }>;
2504
2616
  getProduct(productId: string): import("../types/api").RequestData<{
@@ -2510,12 +2622,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2510
2622
  name: string;
2511
2623
  description?: string | undefined;
2512
2624
  description_html?: string | undefined;
2513
- categories?: {
2625
+ categories: {
2514
2626
  id: string;
2515
2627
  name: string;
2516
- }[] | undefined;
2628
+ }[];
2517
2629
  created_on?: string | undefined;
2518
- variants?: {
2630
+ variants: {
2519
2631
  id: string;
2520
2632
  source_ref: {
2521
2633
  id?: string | undefined;
@@ -2525,46 +2637,46 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2525
2637
  name: string;
2526
2638
  description?: string | undefined;
2527
2639
  description_html?: string | undefined;
2528
- categories?: {
2640
+ categories: {
2529
2641
  id: string;
2530
2642
  name: string;
2531
- }[] | undefined;
2643
+ }[];
2532
2644
  created_on?: string | undefined;
2533
2645
  sku?: string | undefined;
2534
2646
  barcode?: string | undefined;
2535
- available_quantity?: number | undefined;
2536
- prices?: {
2647
+ available_quantity: number;
2648
+ prices: {
2537
2649
  currency: string;
2538
- price?: number | undefined;
2539
- }[] | undefined;
2650
+ price: number;
2651
+ }[];
2540
2652
  unit_of_measure?: string | undefined;
2541
- weight?: number | undefined;
2653
+ weight: number;
2542
2654
  weight_unit?: string | undefined;
2543
2655
  status?: "unknown" | "archived" | "unpublished" | "published" | undefined;
2544
- variant_attributes?: {
2656
+ variant_attributes: {
2545
2657
  name: string;
2546
2658
  value: string;
2547
- }[] | undefined;
2548
- variant_images?: {
2659
+ }[];
2660
+ variant_images: {
2549
2661
  id: string;
2550
2662
  main_image: boolean;
2551
2663
  url: string;
2552
- }[] | undefined;
2553
- }[] | undefined;
2664
+ }[];
2665
+ }[];
2554
2666
  status?: "unknown" | "archived" | "unpublished" | "published" | undefined;
2555
- common_attributes?: {
2667
+ common_attributes: {
2556
2668
  name: string;
2557
2669
  values: string[];
2558
- }[] | undefined;
2559
- variant_attributes_options?: {
2670
+ }[];
2671
+ variant_attributes_options: {
2560
2672
  name: string;
2561
2673
  values: string[];
2562
- }[] | undefined;
2563
- common_images?: {
2674
+ }[];
2675
+ common_images: {
2564
2676
  id: string;
2565
2677
  main_image: boolean;
2566
2678
  url: string;
2567
- }[] | undefined;
2679
+ }[];
2568
2680
  }>;
2569
2681
  getProductVariantById(variantId: string): import("../types/api").RequestData<{
2570
2682
  id: string;
@@ -2576,47 +2688,47 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2576
2688
  name: string;
2577
2689
  description?: string | undefined;
2578
2690
  description_html?: string | undefined;
2579
- categories?: {
2691
+ categories: {
2580
2692
  id: string;
2581
2693
  name: string;
2582
- }[] | undefined;
2694
+ }[];
2583
2695
  created_on?: string | undefined;
2584
2696
  sku?: string | undefined;
2585
2697
  barcode?: string | undefined;
2586
- available_quantity?: number | undefined;
2587
- prices?: {
2698
+ available_quantity: number;
2699
+ prices: {
2588
2700
  currency: string;
2589
- price?: number | undefined;
2590
- }[] | undefined;
2701
+ price: number;
2702
+ }[];
2591
2703
  unit_of_measure?: string | undefined;
2592
- weight?: number | undefined;
2704
+ weight: number;
2593
2705
  weight_unit?: string | undefined;
2594
2706
  status?: "unknown" | "archived" | "unpublished" | "published" | undefined;
2595
- inventory_details?: {
2707
+ inventory_details: {
2596
2708
  location: {
2597
2709
  id: string;
2598
2710
  name: string;
2599
2711
  };
2600
2712
  available_quantity: number;
2601
- }[] | undefined;
2602
- common_attributes?: {
2713
+ }[];
2714
+ common_attributes: {
2603
2715
  name: string;
2604
2716
  values: string[];
2605
- }[] | undefined;
2606
- variant_attributes?: {
2717
+ }[];
2718
+ variant_attributes: {
2607
2719
  name: string;
2608
2720
  value: string;
2609
- }[] | undefined;
2610
- common_images?: {
2721
+ }[];
2722
+ common_images: {
2611
2723
  id: string;
2612
2724
  main_image: boolean;
2613
2725
  url: string;
2614
- }[] | undefined;
2615
- variant_images?: {
2726
+ }[];
2727
+ variant_images: {
2616
2728
  id: string;
2617
2729
  main_image: boolean;
2618
2730
  url: string;
2619
- }[] | undefined;
2731
+ }[];
2620
2732
  }>;
2621
2733
  updateAvailableQuantity(variantId: string, inventoryDetails: {
2622
2734
  location_id: string;
@@ -2638,6 +2750,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2638
2750
  updated_after?: string | undefined;
2639
2751
  include_detailed_refunds?: "true" | "false" | undefined;
2640
2752
  include_product_categories?: "true" | "false" | undefined;
2753
+ include_customer_details?: "true" | "false" | undefined;
2641
2754
  } | undefined): import("../types/api").RequestData<{
2642
2755
  id: string;
2643
2756
  source_ref: {
@@ -2686,59 +2799,18 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2686
2799
  confirmed_on?: string | undefined;
2687
2800
  delivery_date?: string | undefined;
2688
2801
  cancelled_on?: string | undefined;
2689
- status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
2802
+ status: "draft" | "cancelled" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
2690
2803
  discount_amount: number;
2691
2804
  untaxed_amount_without_fees: number;
2692
2805
  tax_amount_without_fees: number;
2693
2806
  total_without_fees: number;
2807
+ current_untaxed_amount: number;
2808
+ current_tax_amount: number;
2809
+ current_total: number;
2694
2810
  untaxed_amount: number;
2695
2811
  tax_amount: number;
2696
2812
  total: number;
2697
- refunded_amount?: number | undefined;
2698
- detailed_refunds?: {
2699
- id: string;
2700
- source_ref: {
2701
- id?: string | undefined;
2702
- model?: string | undefined;
2703
- };
2704
- created_on?: string | undefined;
2705
- total: number;
2706
- reason?: string | undefined;
2707
- order_lines?: {
2708
- id: string;
2709
- variant?: {
2710
- id: string;
2711
- sku?: string | undefined;
2712
- name: string;
2713
- categories?: {
2714
- id: string;
2715
- name: string;
2716
- }[] | undefined;
2717
- } | undefined;
2718
- quantity: number;
2719
- untaxed_amount: number;
2720
- tax_amount: number;
2721
- total: number;
2722
- }[] | undefined;
2723
- other?: number | undefined;
2724
- shipping_refunds?: {
2725
- id: string;
2726
- source_ref: {
2727
- id?: string | undefined;
2728
- model?: string | undefined;
2729
- };
2730
- untaxed_amount: number;
2731
- tax_amount: number;
2732
- total: number;
2733
- }[] | undefined;
2734
- transactions?: {
2735
- id: string;
2736
- payment_method_id?: string | undefined;
2737
- payment_method_name?: string | undefined;
2738
- amount: number;
2739
- status: "failed" | "pending" | "success";
2740
- }[] | undefined;
2741
- }[] | undefined;
2813
+ refunded_amount: number;
2742
2814
  currency: string;
2743
2815
  note?: string | undefined;
2744
2816
  lines: {
@@ -2752,12 +2824,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2752
2824
  id: string;
2753
2825
  sku?: string | undefined;
2754
2826
  name: string;
2755
- categories?: {
2827
+ categories: {
2756
2828
  id: string;
2757
2829
  name: string;
2758
- }[] | undefined;
2830
+ }[];
2759
2831
  } | undefined;
2760
2832
  quantity: number;
2833
+ current_quantity: number;
2761
2834
  unit_price: number;
2762
2835
  description: string;
2763
2836
  tax_id?: string | undefined;
@@ -2765,14 +2838,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2765
2838
  untaxed_amount: number;
2766
2839
  tax_amount: number;
2767
2840
  total: number;
2768
- discounts?: {
2841
+ discounts: {
2769
2842
  name: string;
2770
2843
  description: string;
2771
2844
  amount: number;
2772
- }[] | undefined;
2773
- gift_card?: boolean | undefined;
2845
+ }[];
2846
+ gift_card: boolean;
2774
2847
  }[];
2775
- other_fees?: {
2848
+ other_fees: {
2776
2849
  id: string;
2777
2850
  source_ref: {
2778
2851
  id?: string | undefined;
@@ -2780,29 +2853,138 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2780
2853
  };
2781
2854
  created_on?: string | undefined;
2782
2855
  type: "other" | "shipping";
2856
+ removed: boolean;
2783
2857
  tax_rate: number;
2784
2858
  tax_id?: string | undefined;
2785
- discounts?: {
2859
+ discounts: {
2786
2860
  name: string;
2787
2861
  description: string;
2788
2862
  amount: number;
2789
- }[] | undefined;
2863
+ }[];
2790
2864
  untaxed_amount: number;
2791
2865
  tax_amount: number;
2792
2866
  total: number;
2793
- }[] | undefined;
2867
+ }[];
2794
2868
  payment_method_id?: string | undefined;
2795
- transactions?: {
2869
+ transactions: {
2796
2870
  id: string;
2871
+ created_on?: string | undefined;
2797
2872
  payment_method_id?: string | undefined;
2798
2873
  payment_method_name?: string | undefined;
2799
2874
  amount: number;
2800
- status: "failed" | "pending" | "success";
2801
- }[] | undefined;
2802
- payment_methods?: {
2875
+ status: "pending" | "failed" | "success";
2876
+ }[];
2877
+ payment_methods: {
2803
2878
  id: string;
2804
2879
  name?: string | undefined;
2880
+ }[];
2881
+ detailed_refunds?: {
2882
+ id: string;
2883
+ source_ref: {
2884
+ id?: string | undefined;
2885
+ model?: string | undefined;
2886
+ };
2887
+ created_on?: string | undefined;
2888
+ total: number;
2889
+ reason?: string | undefined;
2890
+ order_lines: {
2891
+ id: string;
2892
+ variant?: {
2893
+ id: string;
2894
+ sku?: string | undefined;
2895
+ name: string;
2896
+ categories: {
2897
+ id: string;
2898
+ name: string;
2899
+ }[];
2900
+ } | undefined;
2901
+ quantity: number;
2902
+ untaxed_amount: number;
2903
+ tax_amount: number;
2904
+ total: number;
2905
+ }[];
2906
+ other: number;
2907
+ shipping_refunds: {
2908
+ id: string;
2909
+ source_ref: {
2910
+ id?: string | undefined;
2911
+ model?: string | undefined;
2912
+ };
2913
+ untaxed_amount: number;
2914
+ tax_amount: number;
2915
+ total: number;
2916
+ }[];
2917
+ other_fees: {
2918
+ id: string;
2919
+ source_ref: {
2920
+ id?: string | undefined;
2921
+ model?: string | undefined;
2922
+ };
2923
+ type: "other" | "shipping";
2924
+ untaxed_amount: number;
2925
+ tax_amount: number;
2926
+ total: number;
2927
+ }[];
2928
+ transactions: {
2929
+ id: string;
2930
+ created_on?: string | undefined;
2931
+ payment_method_id?: string | undefined;
2932
+ payment_method_name?: string | undefined;
2933
+ amount: number;
2934
+ status: "pending" | "failed" | "success";
2935
+ }[];
2805
2936
  }[] | undefined;
2937
+ returns: {
2938
+ id: string;
2939
+ source_ref: {
2940
+ id?: string | undefined;
2941
+ model?: string | undefined;
2942
+ };
2943
+ created_on?: string | undefined;
2944
+ order_lines: {
2945
+ id: string;
2946
+ variant?: {
2947
+ id: string;
2948
+ sku?: string | undefined;
2949
+ name: string;
2950
+ categories: {
2951
+ id: string;
2952
+ name: string;
2953
+ }[];
2954
+ } | undefined;
2955
+ quantity: number;
2956
+ untaxed_amount: number;
2957
+ tax_amount: number;
2958
+ total: number;
2959
+ }[];
2960
+ new_lines: {
2961
+ id: string;
2962
+ variant?: {
2963
+ id: string;
2964
+ sku?: string | undefined;
2965
+ name: string;
2966
+ categories: {
2967
+ id: string;
2968
+ name: string;
2969
+ }[];
2970
+ } | undefined;
2971
+ quantity: number;
2972
+ untaxed_amount: number;
2973
+ tax_amount: number;
2974
+ total: number;
2975
+ }[];
2976
+ linked_fees: {
2977
+ id: string;
2978
+ source_ref: {
2979
+ id?: string | undefined;
2980
+ model?: string | undefined;
2981
+ };
2982
+ type: "other" | "shipping";
2983
+ untaxed_amount: number;
2984
+ tax_amount: number;
2985
+ total: number;
2986
+ }[];
2987
+ }[];
2806
2988
  }[]>;
2807
2989
  createOrder(order: {
2808
2990
  customer: {
@@ -2893,59 +3075,18 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2893
3075
  confirmed_on?: string | undefined;
2894
3076
  delivery_date?: string | undefined;
2895
3077
  cancelled_on?: string | undefined;
2896
- status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
3078
+ status: "draft" | "cancelled" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
2897
3079
  discount_amount: number;
2898
3080
  untaxed_amount_without_fees: number;
2899
3081
  tax_amount_without_fees: number;
2900
3082
  total_without_fees: number;
3083
+ current_untaxed_amount: number;
3084
+ current_tax_amount: number;
3085
+ current_total: number;
2901
3086
  untaxed_amount: number;
2902
3087
  tax_amount: number;
2903
3088
  total: number;
2904
- refunded_amount?: number | undefined;
2905
- detailed_refunds?: {
2906
- id: string;
2907
- source_ref: {
2908
- id?: string | undefined;
2909
- model?: string | undefined;
2910
- };
2911
- created_on?: string | undefined;
2912
- total: number;
2913
- reason?: string | undefined;
2914
- order_lines?: {
2915
- id: string;
2916
- variant?: {
2917
- id: string;
2918
- sku?: string | undefined;
2919
- name: string;
2920
- categories?: {
2921
- id: string;
2922
- name: string;
2923
- }[] | undefined;
2924
- } | undefined;
2925
- quantity: number;
2926
- untaxed_amount: number;
2927
- tax_amount: number;
2928
- total: number;
2929
- }[] | undefined;
2930
- other?: number | undefined;
2931
- shipping_refunds?: {
2932
- id: string;
2933
- source_ref: {
2934
- id?: string | undefined;
2935
- model?: string | undefined;
2936
- };
2937
- untaxed_amount: number;
2938
- tax_amount: number;
2939
- total: number;
2940
- }[] | undefined;
2941
- transactions?: {
2942
- id: string;
2943
- payment_method_id?: string | undefined;
2944
- payment_method_name?: string | undefined;
2945
- amount: number;
2946
- status: "failed" | "pending" | "success";
2947
- }[] | undefined;
2948
- }[] | undefined;
3089
+ refunded_amount: number;
2949
3090
  currency: string;
2950
3091
  note?: string | undefined;
2951
3092
  lines: {
@@ -2959,12 +3100,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2959
3100
  id: string;
2960
3101
  sku?: string | undefined;
2961
3102
  name: string;
2962
- categories?: {
3103
+ categories: {
2963
3104
  id: string;
2964
3105
  name: string;
2965
- }[] | undefined;
3106
+ }[];
2966
3107
  } | undefined;
2967
3108
  quantity: number;
3109
+ current_quantity: number;
2968
3110
  unit_price: number;
2969
3111
  description: string;
2970
3112
  tax_id?: string | undefined;
@@ -2972,14 +3114,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2972
3114
  untaxed_amount: number;
2973
3115
  tax_amount: number;
2974
3116
  total: number;
2975
- discounts?: {
3117
+ discounts: {
2976
3118
  name: string;
2977
3119
  description: string;
2978
3120
  amount: number;
2979
- }[] | undefined;
2980
- gift_card?: boolean | undefined;
3121
+ }[];
3122
+ gift_card: boolean;
2981
3123
  }[];
2982
- other_fees?: {
3124
+ other_fees: {
2983
3125
  id: string;
2984
3126
  source_ref: {
2985
3127
  id?: string | undefined;
@@ -2987,29 +3129,138 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2987
3129
  };
2988
3130
  created_on?: string | undefined;
2989
3131
  type: "other" | "shipping";
3132
+ removed: boolean;
2990
3133
  tax_rate: number;
2991
3134
  tax_id?: string | undefined;
2992
- discounts?: {
3135
+ discounts: {
2993
3136
  name: string;
2994
3137
  description: string;
2995
3138
  amount: number;
2996
- }[] | undefined;
3139
+ }[];
2997
3140
  untaxed_amount: number;
2998
3141
  tax_amount: number;
2999
3142
  total: number;
3000
- }[] | undefined;
3143
+ }[];
3001
3144
  payment_method_id?: string | undefined;
3002
- transactions?: {
3145
+ transactions: {
3003
3146
  id: string;
3147
+ created_on?: string | undefined;
3004
3148
  payment_method_id?: string | undefined;
3005
3149
  payment_method_name?: string | undefined;
3006
3150
  amount: number;
3007
- status: "failed" | "pending" | "success";
3008
- }[] | undefined;
3009
- payment_methods?: {
3151
+ status: "pending" | "failed" | "success";
3152
+ }[];
3153
+ payment_methods: {
3010
3154
  id: string;
3011
3155
  name?: string | undefined;
3156
+ }[];
3157
+ detailed_refunds?: {
3158
+ id: string;
3159
+ source_ref: {
3160
+ id?: string | undefined;
3161
+ model?: string | undefined;
3162
+ };
3163
+ created_on?: string | undefined;
3164
+ total: number;
3165
+ reason?: string | undefined;
3166
+ order_lines: {
3167
+ id: string;
3168
+ variant?: {
3169
+ id: string;
3170
+ sku?: string | undefined;
3171
+ name: string;
3172
+ categories: {
3173
+ id: string;
3174
+ name: string;
3175
+ }[];
3176
+ } | undefined;
3177
+ quantity: number;
3178
+ untaxed_amount: number;
3179
+ tax_amount: number;
3180
+ total: number;
3181
+ }[];
3182
+ other: number;
3183
+ shipping_refunds: {
3184
+ id: string;
3185
+ source_ref: {
3186
+ id?: string | undefined;
3187
+ model?: string | undefined;
3188
+ };
3189
+ untaxed_amount: number;
3190
+ tax_amount: number;
3191
+ total: number;
3192
+ }[];
3193
+ other_fees: {
3194
+ id: string;
3195
+ source_ref: {
3196
+ id?: string | undefined;
3197
+ model?: string | undefined;
3198
+ };
3199
+ type: "other" | "shipping";
3200
+ untaxed_amount: number;
3201
+ tax_amount: number;
3202
+ total: number;
3203
+ }[];
3204
+ transactions: {
3205
+ id: string;
3206
+ created_on?: string | undefined;
3207
+ payment_method_id?: string | undefined;
3208
+ payment_method_name?: string | undefined;
3209
+ amount: number;
3210
+ status: "pending" | "failed" | "success";
3211
+ }[];
3012
3212
  }[] | undefined;
3213
+ returns: {
3214
+ id: string;
3215
+ source_ref: {
3216
+ id?: string | undefined;
3217
+ model?: string | undefined;
3218
+ };
3219
+ created_on?: string | undefined;
3220
+ order_lines: {
3221
+ id: string;
3222
+ variant?: {
3223
+ id: string;
3224
+ sku?: string | undefined;
3225
+ name: string;
3226
+ categories: {
3227
+ id: string;
3228
+ name: string;
3229
+ }[];
3230
+ } | undefined;
3231
+ quantity: number;
3232
+ untaxed_amount: number;
3233
+ tax_amount: number;
3234
+ total: number;
3235
+ }[];
3236
+ new_lines: {
3237
+ id: string;
3238
+ variant?: {
3239
+ id: string;
3240
+ sku?: string | undefined;
3241
+ name: string;
3242
+ categories: {
3243
+ id: string;
3244
+ name: string;
3245
+ }[];
3246
+ } | undefined;
3247
+ quantity: number;
3248
+ untaxed_amount: number;
3249
+ tax_amount: number;
3250
+ total: number;
3251
+ }[];
3252
+ linked_fees: {
3253
+ id: string;
3254
+ source_ref: {
3255
+ id?: string | undefined;
3256
+ model?: string | undefined;
3257
+ };
3258
+ type: "other" | "shipping";
3259
+ untaxed_amount: number;
3260
+ tax_amount: number;
3261
+ total: number;
3262
+ }[];
3263
+ }[];
3013
3264
  }>;
3014
3265
  getOrder(orderId: string): import("../types/api").RequestData<{
3015
3266
  id: string;
@@ -3059,59 +3310,18 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
3059
3310
  confirmed_on?: string | undefined;
3060
3311
  delivery_date?: string | undefined;
3061
3312
  cancelled_on?: string | undefined;
3062
- status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
3313
+ status: "draft" | "cancelled" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
3063
3314
  discount_amount: number;
3064
3315
  untaxed_amount_without_fees: number;
3065
3316
  tax_amount_without_fees: number;
3066
3317
  total_without_fees: number;
3318
+ current_untaxed_amount: number;
3319
+ current_tax_amount: number;
3320
+ current_total: number;
3067
3321
  untaxed_amount: number;
3068
3322
  tax_amount: number;
3069
3323
  total: number;
3070
- refunded_amount?: number | undefined;
3071
- detailed_refunds?: {
3072
- id: string;
3073
- source_ref: {
3074
- id?: string | undefined;
3075
- model?: string | undefined;
3076
- };
3077
- created_on?: string | undefined;
3078
- total: number;
3079
- reason?: string | undefined;
3080
- order_lines?: {
3081
- id: string;
3082
- variant?: {
3083
- id: string;
3084
- sku?: string | undefined;
3085
- name: string;
3086
- categories?: {
3087
- id: string;
3088
- name: string;
3089
- }[] | undefined;
3090
- } | undefined;
3091
- quantity: number;
3092
- untaxed_amount: number;
3093
- tax_amount: number;
3094
- total: number;
3095
- }[] | undefined;
3096
- other?: number | undefined;
3097
- shipping_refunds?: {
3098
- id: string;
3099
- source_ref: {
3100
- id?: string | undefined;
3101
- model?: string | undefined;
3102
- };
3103
- untaxed_amount: number;
3104
- tax_amount: number;
3105
- total: number;
3106
- }[] | undefined;
3107
- transactions?: {
3108
- id: string;
3109
- payment_method_id?: string | undefined;
3110
- payment_method_name?: string | undefined;
3111
- amount: number;
3112
- status: "failed" | "pending" | "success";
3113
- }[] | undefined;
3114
- }[] | undefined;
3324
+ refunded_amount: number;
3115
3325
  currency: string;
3116
3326
  note?: string | undefined;
3117
3327
  lines: {
@@ -3125,12 +3335,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
3125
3335
  id: string;
3126
3336
  sku?: string | undefined;
3127
3337
  name: string;
3128
- categories?: {
3338
+ categories: {
3129
3339
  id: string;
3130
3340
  name: string;
3131
- }[] | undefined;
3341
+ }[];
3132
3342
  } | undefined;
3133
3343
  quantity: number;
3344
+ current_quantity: number;
3134
3345
  unit_price: number;
3135
3346
  description: string;
3136
3347
  tax_id?: string | undefined;
@@ -3138,14 +3349,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
3138
3349
  untaxed_amount: number;
3139
3350
  tax_amount: number;
3140
3351
  total: number;
3141
- discounts?: {
3352
+ discounts: {
3142
3353
  name: string;
3143
3354
  description: string;
3144
3355
  amount: number;
3145
- }[] | undefined;
3146
- gift_card?: boolean | undefined;
3356
+ }[];
3357
+ gift_card: boolean;
3147
3358
  }[];
3148
- other_fees?: {
3359
+ other_fees: {
3149
3360
  id: string;
3150
3361
  source_ref: {
3151
3362
  id?: string | undefined;
@@ -3153,29 +3364,138 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
3153
3364
  };
3154
3365
  created_on?: string | undefined;
3155
3366
  type: "other" | "shipping";
3367
+ removed: boolean;
3156
3368
  tax_rate: number;
3157
3369
  tax_id?: string | undefined;
3158
- discounts?: {
3370
+ discounts: {
3159
3371
  name: string;
3160
3372
  description: string;
3161
3373
  amount: number;
3162
- }[] | undefined;
3374
+ }[];
3163
3375
  untaxed_amount: number;
3164
3376
  tax_amount: number;
3165
3377
  total: number;
3166
- }[] | undefined;
3378
+ }[];
3167
3379
  payment_method_id?: string | undefined;
3168
- transactions?: {
3380
+ transactions: {
3169
3381
  id: string;
3382
+ created_on?: string | undefined;
3170
3383
  payment_method_id?: string | undefined;
3171
3384
  payment_method_name?: string | undefined;
3172
3385
  amount: number;
3173
- status: "failed" | "pending" | "success";
3174
- }[] | undefined;
3175
- payment_methods?: {
3386
+ status: "pending" | "failed" | "success";
3387
+ }[];
3388
+ payment_methods: {
3176
3389
  id: string;
3177
3390
  name?: string | undefined;
3391
+ }[];
3392
+ detailed_refunds?: {
3393
+ id: string;
3394
+ source_ref: {
3395
+ id?: string | undefined;
3396
+ model?: string | undefined;
3397
+ };
3398
+ created_on?: string | undefined;
3399
+ total: number;
3400
+ reason?: string | undefined;
3401
+ order_lines: {
3402
+ id: string;
3403
+ variant?: {
3404
+ id: string;
3405
+ sku?: string | undefined;
3406
+ name: string;
3407
+ categories: {
3408
+ id: string;
3409
+ name: string;
3410
+ }[];
3411
+ } | undefined;
3412
+ quantity: number;
3413
+ untaxed_amount: number;
3414
+ tax_amount: number;
3415
+ total: number;
3416
+ }[];
3417
+ other: number;
3418
+ shipping_refunds: {
3419
+ id: string;
3420
+ source_ref: {
3421
+ id?: string | undefined;
3422
+ model?: string | undefined;
3423
+ };
3424
+ untaxed_amount: number;
3425
+ tax_amount: number;
3426
+ total: number;
3427
+ }[];
3428
+ other_fees: {
3429
+ id: string;
3430
+ source_ref: {
3431
+ id?: string | undefined;
3432
+ model?: string | undefined;
3433
+ };
3434
+ type: "other" | "shipping";
3435
+ untaxed_amount: number;
3436
+ tax_amount: number;
3437
+ total: number;
3438
+ }[];
3439
+ transactions: {
3440
+ id: string;
3441
+ created_on?: string | undefined;
3442
+ payment_method_id?: string | undefined;
3443
+ payment_method_name?: string | undefined;
3444
+ amount: number;
3445
+ status: "pending" | "failed" | "success";
3446
+ }[];
3178
3447
  }[] | undefined;
3448
+ returns: {
3449
+ id: string;
3450
+ source_ref: {
3451
+ id?: string | undefined;
3452
+ model?: string | undefined;
3453
+ };
3454
+ created_on?: string | undefined;
3455
+ order_lines: {
3456
+ id: string;
3457
+ variant?: {
3458
+ id: string;
3459
+ sku?: string | undefined;
3460
+ name: string;
3461
+ categories: {
3462
+ id: string;
3463
+ name: string;
3464
+ }[];
3465
+ } | undefined;
3466
+ quantity: number;
3467
+ untaxed_amount: number;
3468
+ tax_amount: number;
3469
+ total: number;
3470
+ }[];
3471
+ new_lines: {
3472
+ id: string;
3473
+ variant?: {
3474
+ id: string;
3475
+ sku?: string | undefined;
3476
+ name: string;
3477
+ categories: {
3478
+ id: string;
3479
+ name: string;
3480
+ }[];
3481
+ } | undefined;
3482
+ quantity: number;
3483
+ untaxed_amount: number;
3484
+ tax_amount: number;
3485
+ total: number;
3486
+ }[];
3487
+ linked_fees: {
3488
+ id: string;
3489
+ source_ref: {
3490
+ id?: string | undefined;
3491
+ model?: string | undefined;
3492
+ };
3493
+ type: "other" | "shipping";
3494
+ untaxed_amount: number;
3495
+ tax_amount: number;
3496
+ total: number;
3497
+ }[];
3498
+ }[];
3179
3499
  }>;
3180
3500
  getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
3181
3501
  id: string;
@@ -3231,13 +3551,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
3231
3551
  getSyncData: (syncId: string) => Promise<{
3232
3552
  syncid: string;
3233
3553
  sync_name: string;
3234
- status?: "active" | "inactive" | undefined;
3554
+ status: "active" | "inactive";
3235
3555
  status_details?: string | undefined;
3236
3556
  link_createdon: string;
3237
3557
  link_mappings?: {
3238
3558
  name: string;
3239
3559
  description?: string | undefined;
3240
- display_order?: number | undefined;
3560
+ display_order: number;
3241
3561
  challenge_question?: string | undefined;
3242
3562
  values: {
3243
3563
  source_id: string;
@@ -3255,26 +3575,26 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
3255
3575
  definitionFields?: Record<string, never>[] | undefined;
3256
3576
  doorkeyFields?: Record<string, never>[] | undefined;
3257
3577
  customFields?: Record<string, never>[] | undefined;
3258
- datastores?: {
3578
+ datastores: {
3259
3579
  id?: string | undefined;
3260
3580
  name: string;
3261
- status?: "active" | "inactive" | undefined;
3581
+ status: "active" | "inactive";
3262
3582
  definition: {
3263
3583
  columns: {
3264
3584
  name: string;
3265
3585
  title: string;
3266
3586
  type: string;
3267
- optional?: boolean | undefined;
3587
+ optional: boolean;
3268
3588
  }[];
3269
3589
  search_column?: string | undefined;
3270
3590
  };
3271
- }[] | undefined;
3591
+ }[];
3272
3592
  } | undefined;
3273
3593
  values: Record<string, never>;
3274
3594
  enabled_on?: string | undefined;
3275
3595
  trigger: {
3276
3596
  id: string;
3277
- type: "timer" | "event";
3597
+ type: "event" | "timer";
3278
3598
  cronschedule?: string | undefined;
3279
3599
  };
3280
3600
  }[] | undefined;