@chift/chift-nodejs 1.0.2 → 1.0.4

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 (53) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/src/modules/accounting.d.ts +8 -1
  3. package/dist/src/modules/accounting.js +27 -1
  4. package/dist/src/modules/api.d.ts +2699 -912
  5. package/dist/src/modules/consumer.d.ts +146 -27
  6. package/dist/src/modules/consumers.d.ts +731 -136
  7. package/dist/src/modules/datastores.d.ts +1 -1
  8. package/dist/src/modules/integrations.d.ts +2 -0
  9. package/dist/src/modules/sync.d.ts +584 -108
  10. package/dist/src/modules/sync.js +0 -2
  11. package/dist/src/modules/syncs.d.ts +1464 -274
  12. package/dist/test/modules/accounting.test.js +127 -15
  13. package/dist/test/modules/consumers.test.js +1 -1
  14. package/dist/test/modules/pos.test.js +4 -4
  15. package/package.json +1 -1
  16. package/src/modules/accounting.ts +17 -3
  17. package/src/types/public-api/schema.d.ts +343 -33
  18. package/test/modules/accounting.test.ts +27 -0
  19. package/.eslintcache +0 -1
  20. package/coverage/clover.xml +0 -1645
  21. package/coverage/coverage-final.json +0 -19
  22. package/coverage/lcov-report/base.css +0 -224
  23. package/coverage/lcov-report/block-navigation.js +0 -87
  24. package/coverage/lcov-report/favicon.png +0 -0
  25. package/coverage/lcov-report/index.html +0 -146
  26. package/coverage/lcov-report/prettify.css +0 -1
  27. package/coverage/lcov-report/prettify.js +0 -2
  28. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  29. package/coverage/lcov-report/sorter.js +0 -196
  30. package/coverage/lcov-report/src/helpers/index.html +0 -131
  31. package/coverage/lcov-report/src/helpers/openapi.ts.html +0 -151
  32. package/coverage/lcov-report/src/helpers/settings.ts.html +0 -94
  33. package/coverage/lcov-report/src/index.html +0 -116
  34. package/coverage/lcov-report/src/index.ts.html +0 -88
  35. package/coverage/lcov-report/src/modules/accounting.ts.html +0 -1156
  36. package/coverage/lcov-report/src/modules/api.ts.html +0 -190
  37. package/coverage/lcov-report/src/modules/consumer.ts.html +0 -616
  38. package/coverage/lcov-report/src/modules/consumers.ts.html +0 -331
  39. package/coverage/lcov-report/src/modules/custom.ts.html +0 -193
  40. package/coverage/lcov-report/src/modules/datastores.ts.html +0 -142
  41. package/coverage/lcov-report/src/modules/ecommerce.ts.html +0 -331
  42. package/coverage/lcov-report/src/modules/flow.ts.html +0 -589
  43. package/coverage/lcov-report/src/modules/index.html +0 -326
  44. package/coverage/lcov-report/src/modules/integrations.ts.html +0 -151
  45. package/coverage/lcov-report/src/modules/internalApi.ts.html +0 -586
  46. package/coverage/lcov-report/src/modules/invoicing.ts.html +0 -391
  47. package/coverage/lcov-report/src/modules/pos.ts.html +0 -421
  48. package/coverage/lcov-report/src/modules/sync.ts.html +0 -316
  49. package/coverage/lcov-report/src/modules/syncs.ts.html +0 -169
  50. package/coverage/lcov-report/src/modules/webhooks.ts.html +0 -343
  51. package/coverage/lcov.info +0 -1976
  52. package/dist/test/modules/flow.test.d.ts +0 -1
  53. package/dist/test/modules/flow.test.js +0 -69
@@ -341,6 +341,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
341
341
  country?: string | undefined;
342
342
  }[] | undefined;
343
343
  account_number?: string | undefined;
344
+ company_number?: string | undefined;
344
345
  id?: string | undefined;
345
346
  }[]>;
346
347
  createClient(client: {
@@ -411,6 +412,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
411
412
  country?: string | undefined;
412
413
  }[] | undefined;
413
414
  account_number?: string | undefined;
415
+ company_number?: string | undefined;
414
416
  id?: string | undefined;
415
417
  }>;
416
418
  getClient(clientId: string): import("../types/api").RequestData<{
@@ -446,6 +448,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
446
448
  country?: string | undefined;
447
449
  }[] | undefined;
448
450
  account_number?: string | undefined;
451
+ company_number?: string | undefined;
449
452
  id?: string | undefined;
450
453
  }>;
451
454
  updateClient(clientId: string, client: {
@@ -513,6 +516,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
513
516
  country?: string | undefined;
514
517
  }[] | undefined;
515
518
  account_number?: string | undefined;
519
+ company_number?: string | undefined;
516
520
  id?: string | undefined;
517
521
  }>;
518
522
  getSuppliers(): import("../types/api").RequestData<{
@@ -548,6 +552,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
548
552
  country?: string | undefined;
549
553
  }[] | undefined;
550
554
  account_number?: string | undefined;
555
+ company_number?: string | undefined;
551
556
  id?: string | undefined;
552
557
  }[]>;
553
558
  createSupplier(supplier: {
@@ -618,6 +623,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
618
623
  country?: string | undefined;
619
624
  }[] | undefined;
620
625
  account_number?: string | undefined;
626
+ company_number?: string | undefined;
621
627
  id?: string | undefined;
622
628
  }>;
623
629
  getSupplier(supplierId: string): import("../types/api").RequestData<{
@@ -653,6 +659,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
653
659
  country?: string | undefined;
654
660
  }[] | undefined;
655
661
  account_number?: string | undefined;
662
+ company_number?: string | undefined;
656
663
  id?: string | undefined;
657
664
  }>;
658
665
  updateSupplier(supplierId: string, supplier: {
@@ -720,6 +727,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
720
727
  country?: string | undefined;
721
728
  }[] | undefined;
722
729
  account_number?: string | undefined;
730
+ company_number?: string | undefined;
723
731
  id?: string | undefined;
724
732
  }>;
725
733
  createInvoice(invoice: {
@@ -784,7 +792,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
784
792
  amount: number;
785
793
  dedicated_amount?: number | undefined;
786
794
  payment_date: string;
787
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
795
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
788
796
  journal_id: string;
789
797
  journal_name: string;
790
798
  reconciled?: boolean | undefined;
@@ -875,7 +883,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
875
883
  amount: number;
876
884
  dedicated_amount?: number | undefined;
877
885
  payment_date: string;
878
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
886
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
879
887
  journal_id: string;
880
888
  journal_name: string;
881
889
  reconciled?: boolean | undefined;
@@ -926,7 +934,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
926
934
  amount: number;
927
935
  dedicated_amount?: number | undefined;
928
936
  payment_date: string;
929
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
937
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
930
938
  journal_id: string;
931
939
  journal_name: string;
932
940
  reconciled?: boolean | undefined;
@@ -973,7 +981,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
973
981
  amount: number;
974
982
  dedicated_amount?: number | undefined;
975
983
  payment_date: string;
976
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
984
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
977
985
  journal_id: string;
978
986
  journal_name: string;
979
987
  reconciled?: boolean | undefined;
@@ -1020,7 +1028,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1020
1028
  amount: number;
1021
1029
  dedicated_amount?: number | undefined;
1022
1030
  payment_date: string;
1023
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
1031
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1024
1032
  journal_id: string;
1025
1033
  journal_name: string;
1026
1034
  reconciled?: boolean | undefined;
@@ -1071,7 +1079,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1071
1079
  amount: number;
1072
1080
  dedicated_amount?: number | undefined;
1073
1081
  payment_date: string;
1074
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
1082
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1075
1083
  journal_id: string;
1076
1084
  journal_name: string;
1077
1085
  reconciled?: boolean | undefined;
@@ -1285,7 +1293,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1285
1293
  amount: number;
1286
1294
  dedicated_amount?: number | undefined;
1287
1295
  payment_date: string;
1288
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
1296
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1289
1297
  journal_id: string;
1290
1298
  journal_name: string;
1291
1299
  reconciled?: boolean | undefined;
@@ -1296,13 +1304,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1296
1304
  id: string;
1297
1305
  code: string;
1298
1306
  name: string;
1299
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
1307
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1300
1308
  }[]>;
1301
1309
  getVatCodes(): import("../types/api").RequestData<{
1302
1310
  id: string;
1303
1311
  code?: string | undefined;
1304
1312
  label: string;
1305
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
1313
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
1306
1314
  rate: number;
1307
1315
  type: "unknown" | "sale" | "purchase" | "both";
1308
1316
  }[]>;
@@ -1414,12 +1422,32 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1414
1422
  reference?: string | undefined;
1415
1423
  account_number?: string | undefined;
1416
1424
  }[]>;
1417
- createFinancialEntry(financial_entry: {
1425
+ getOutstandings(params: {
1426
+ unposted_allowed: "true" | "false";
1427
+ type: "client" | "supplier";
1428
+ }): import("../types/api").RequestData<{
1429
+ id: string;
1430
+ number?: string | undefined;
1431
+ journal_id: string;
1432
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1433
+ date: string;
1434
+ due_date?: string | undefined;
1435
+ currency: string;
1436
+ currency_exchange_rate: number;
1437
+ amount: number;
1438
+ open_amount: number;
1439
+ partner_id: string;
1440
+ account_number: string;
1441
+ reference?: string | undefined;
1442
+ posted: boolean;
1443
+ }[]>;
1444
+ createFinancialEntryOld(financial_entry: {
1418
1445
  date: string;
1419
1446
  journal_id: string;
1420
1447
  currency: string;
1421
1448
  currency_exchange_rate?: number | undefined;
1422
1449
  reference?: string | undefined;
1450
+ number?: string | undefined;
1423
1451
  items: {
1424
1452
  type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1425
1453
  account_number: string;
@@ -1427,14 +1455,17 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1427
1455
  amount: number;
1428
1456
  description?: string | undefined;
1429
1457
  }[];
1430
- number?: string | undefined;
1431
1458
  pdf?: string | undefined;
1432
- }): import("../types/api").RequestData<{
1459
+ }, params: {
1460
+ financial_counterpart_account?: string | undefined;
1461
+ } | undefined): import("../types/api").RequestData<{
1433
1462
  date: string;
1434
1463
  journal_id: string;
1435
1464
  currency: string;
1436
1465
  currency_exchange_rate?: number | undefined;
1437
1466
  reference?: string | undefined;
1467
+ id: string;
1468
+ number: string;
1438
1469
  items: {
1439
1470
  type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1440
1471
  account_number: string;
@@ -1443,13 +1474,97 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1443
1474
  description?: string | undefined;
1444
1475
  counterpart_account: string;
1445
1476
  }[];
1477
+ }>;
1478
+ createFinancialEntry(financial_entry: {
1479
+ date: string;
1480
+ journal_id: string;
1481
+ currency: string;
1482
+ currency_exchange_rate?: number | undefined;
1483
+ reference?: string | undefined;
1484
+ number?: string | undefined;
1485
+ items: {
1486
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1487
+ account: string;
1488
+ amount: number;
1489
+ description?: string | undefined;
1490
+ }[];
1491
+ pdf?: string | undefined;
1492
+ }, params: {
1493
+ financial_counterpart_account?: string | undefined;
1494
+ } | undefined): import("../types/api").RequestData<{
1495
+ date: string;
1496
+ journal_id: string;
1497
+ currency: string;
1498
+ currency_exchange_rate?: number | undefined;
1499
+ reference?: string | undefined;
1446
1500
  id: string;
1447
1501
  number: string;
1502
+ items: {
1503
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1504
+ account: string;
1505
+ amount: number;
1506
+ description?: string | undefined;
1507
+ counterpart_account: string;
1508
+ }[];
1509
+ }[]>;
1510
+ createJournalEntry(journal_entry: {
1511
+ reference?: string | undefined;
1512
+ due_date?: string | undefined;
1513
+ journal_id: string;
1514
+ name: string;
1515
+ date: string;
1516
+ items: {
1517
+ account_number: string;
1518
+ partner_id?: string | undefined;
1519
+ description?: string | undefined;
1520
+ debit: number;
1521
+ credit: number;
1522
+ currency: string;
1523
+ currency_exchange_rate?: number | undefined;
1524
+ analytic_distribution?: {
1525
+ analytic_plan: string;
1526
+ analytic_accounts: {
1527
+ analytic_account: string;
1528
+ percentage: number;
1529
+ }[];
1530
+ }[] | undefined;
1531
+ pdf?: string | undefined;
1532
+ }[];
1533
+ }): import("../types/api").RequestData<{
1534
+ reference?: string | undefined;
1535
+ due_date?: string | undefined;
1536
+ journal_id: string;
1537
+ name?: string | undefined;
1538
+ journal_name: string;
1539
+ date?: string | undefined;
1540
+ posted?: boolean | undefined;
1541
+ id: string;
1542
+ items?: {
1543
+ account_number: string;
1544
+ partner_id?: string | undefined;
1545
+ description?: string | undefined;
1546
+ debit: number;
1547
+ credit: number;
1548
+ currency: string;
1549
+ currency_exchange_rate?: number | undefined;
1550
+ id: string;
1551
+ partner_name?: string | undefined;
1552
+ account_name: string;
1553
+ matching_numbers?: string[] | undefined;
1554
+ analytic_distribution?: {
1555
+ analytic_plan: string;
1556
+ analytic_accounts: {
1557
+ analytic_account: string;
1558
+ percentage: number;
1559
+ }[];
1560
+ }[] | undefined;
1561
+ }[] | undefined;
1448
1562
  }>;
1449
1563
  }>;
1450
1564
  invoicing: import("../types/api").ApiFor<{
1451
1565
  getInvoices(params: {
1452
1566
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
1567
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
1453
1568
  date_from?: string | undefined;
1454
1569
  date_to?: string | undefined;
1455
1570
  page?: number | undefined;
@@ -1468,12 +1583,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1468
1583
  untaxed_amount: number;
1469
1584
  total: number;
1470
1585
  lines?: {
1471
- description: string;
1586
+ description?: string | undefined;
1472
1587
  unit_price: number;
1473
1588
  quantity: number;
1589
+ discount_amount?: number | undefined;
1474
1590
  tax_amount: number;
1475
- total: number;
1476
1591
  untaxed_amount: number;
1592
+ total: number;
1477
1593
  tax_rate?: number | undefined;
1478
1594
  account_number?: string | undefined;
1479
1595
  tax_id?: string | undefined;
@@ -1510,12 +1626,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1510
1626
  untaxed_amount: number;
1511
1627
  total: number;
1512
1628
  lines?: {
1513
- description: string;
1629
+ description?: string | undefined;
1514
1630
  unit_price: number;
1515
1631
  quantity: number;
1632
+ discount_amount?: number | undefined;
1516
1633
  tax_amount: number;
1517
- total: number;
1518
1634
  untaxed_amount: number;
1635
+ total: number;
1519
1636
  tax_rate?: number | undefined;
1520
1637
  account_number?: string | undefined;
1521
1638
  tax_id?: string | undefined;
@@ -1545,12 +1662,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1545
1662
  untaxed_amount: number;
1546
1663
  total: number;
1547
1664
  lines?: {
1548
- description: string;
1665
+ description?: string | undefined;
1549
1666
  unit_price: number;
1550
1667
  quantity: number;
1668
+ discount_amount?: number | undefined;
1551
1669
  tax_amount: number;
1552
- total: number;
1553
1670
  untaxed_amount: number;
1671
+ total: number;
1554
1672
  tax_rate?: number | undefined;
1555
1673
  account_number?: string | undefined;
1556
1674
  tax_id?: string | undefined;
@@ -1584,12 +1702,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1584
1702
  untaxed_amount: number;
1585
1703
  total: number;
1586
1704
  lines?: {
1587
- description: string;
1705
+ description?: string | undefined;
1588
1706
  unit_price: number;
1589
1707
  quantity: number;
1708
+ discount_amount?: number | undefined;
1590
1709
  tax_amount: number;
1591
- total: number;
1592
1710
  untaxed_amount: number;
1711
+ total: number;
1593
1712
  tax_rate?: number | undefined;
1594
1713
  account_number?: string | undefined;
1595
1714
  tax_id?: string | undefined;
@@ -1674,7 +1793,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1674
1793
  rate: number;
1675
1794
  type: "unknown" | "sale" | "purchase" | "both";
1676
1795
  code?: string | undefined;
1677
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
1796
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
1678
1797
  }[]>;
1679
1798
  getTaxById(taxId: string): import("../types/api").RequestData<{
1680
1799
  id: string;
@@ -1686,7 +1805,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1686
1805
  rate: number;
1687
1806
  type: "unknown" | "sale" | "purchase" | "both";
1688
1807
  code?: string | undefined;
1689
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
1808
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
1690
1809
  }>;
1691
1810
  getOpportunities(): import("../types/api").RequestData<{
1692
1811
  id: string;
@@ -1741,7 +1860,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1741
1860
  } | undefined;
1742
1861
  }>;
1743
1862
  getContacts(params?: {
1744
- contact_type?: "all" | "prospect" | "customer" | "supplier" | undefined;
1863
+ contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
1745
1864
  page?: number | undefined;
1746
1865
  size?: number | undefined;
1747
1866
  } | undefined): import("../types/api").RequestData<{
@@ -2197,7 +2316,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2197
2316
  last_updated_on?: string | undefined;
2198
2317
  confirmed_on?: string | undefined;
2199
2318
  cancelled_on?: string | undefined;
2200
- status: "draft" | "cancelled" | "confirmed";
2319
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
2201
2320
  discount_amount: number;
2202
2321
  untaxed_amount_without_fees: number;
2203
2322
  tax_amount_without_fees: number;
@@ -2344,7 +2463,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2344
2463
  last_updated_on?: string | undefined;
2345
2464
  confirmed_on?: string | undefined;
2346
2465
  cancelled_on?: string | undefined;
2347
- status: "draft" | "cancelled" | "confirmed";
2466
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
2348
2467
  discount_amount: number;
2349
2468
  untaxed_amount_without_fees: number;
2350
2469
  tax_amount_without_fees: number;
@@ -2450,7 +2569,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2450
2569
  last_updated_on?: string | undefined;
2451
2570
  confirmed_on?: string | undefined;
2452
2571
  cancelled_on?: string | undefined;
2453
- status: "draft" | "cancelled" | "confirmed";
2572
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
2454
2573
  discount_amount: number;
2455
2574
  untaxed_amount_without_fees: number;
2456
2575
  tax_amount_without_fees: number;
@@ -2559,7 +2678,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2559
2678
  name: string;
2560
2679
  title: string;
2561
2680
  type: string;
2562
- Optional?: boolean | undefined;
2681
+ optional?: boolean | undefined;
2563
2682
  }[];
2564
2683
  search_column?: string | undefined;
2565
2684
  };