@chift/chift-nodejs 1.0.10 → 1.0.13

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.
@@ -908,7 +908,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
908
908
  communication?: string | undefined;
909
909
  matching_number?: string | undefined;
910
910
  }[] | undefined;
911
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
911
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
912
912
  lines: {
913
913
  line_number?: number | undefined;
914
914
  description: string;
@@ -1010,7 +1010,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1010
1010
  communication?: string | undefined;
1011
1011
  matching_number?: string | undefined;
1012
1012
  }[] | undefined;
1013
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
1013
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1014
1014
  lines: {
1015
1015
  line_number?: number | undefined;
1016
1016
  description: string;
@@ -1061,7 +1061,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1061
1061
  communication?: string | undefined;
1062
1062
  matching_number?: string | undefined;
1063
1063
  }[] | undefined;
1064
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
1064
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1065
1065
  lines: {
1066
1066
  line_number?: number | undefined;
1067
1067
  description: string;
@@ -1109,7 +1109,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1109
1109
  communication?: string | undefined;
1110
1110
  matching_number?: string | undefined;
1111
1111
  }[] | undefined;
1112
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
1112
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1113
1113
  lines: {
1114
1114
  line_number?: number | undefined;
1115
1115
  description: string;
@@ -1157,7 +1157,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1157
1157
  communication?: string | undefined;
1158
1158
  matching_number?: string | undefined;
1159
1159
  }[] | undefined;
1160
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
1160
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1161
1161
  lines: {
1162
1162
  line_number?: number | undefined;
1163
1163
  description: string;
@@ -1208,7 +1208,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1208
1208
  communication?: string | undefined;
1209
1209
  matching_number?: string | undefined;
1210
1210
  }[] | undefined;
1211
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
1211
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1212
1212
  lines: {
1213
1213
  line_number?: number | undefined;
1214
1214
  description: string;
@@ -1473,14 +1473,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1473
1473
  line_number?: number | undefined;
1474
1474
  description?: string | undefined;
1475
1475
  amount: number;
1476
- type: "general_account" | "customer_account" | "supplier_account";
1476
+ type: "customer_account" | "supplier_account" | "general_account";
1477
1477
  account_number: string;
1478
1478
  partner_id?: string | undefined;
1479
1479
  analytic_account?: string | undefined;
1480
1480
  }[];
1481
1481
  operation_date?: string | undefined;
1482
1482
  journal_id: string;
1483
- status: "draft" | "posted" | "cancelled" | "matched";
1483
+ status: "cancelled" | "draft" | "posted" | "matched";
1484
1484
  id: string;
1485
1485
  }[]>;
1486
1486
  createMiscOperation(operation: {
@@ -1491,7 +1491,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1491
1491
  line_number?: number | undefined;
1492
1492
  description?: string | undefined;
1493
1493
  amount: number;
1494
- type: "general_account" | "customer_account" | "supplier_account";
1494
+ type: "customer_account" | "supplier_account" | "general_account";
1495
1495
  account_number: string;
1496
1496
  partner_id?: string | undefined;
1497
1497
  analytic_account?: string | undefined;
@@ -1509,14 +1509,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1509
1509
  line_number?: number | undefined;
1510
1510
  description?: string | undefined;
1511
1511
  amount: number;
1512
- type: "general_account" | "customer_account" | "supplier_account";
1512
+ type: "customer_account" | "supplier_account" | "general_account";
1513
1513
  account_number: string;
1514
1514
  partner_id?: string | undefined;
1515
1515
  analytic_account?: string | undefined;
1516
1516
  }[];
1517
1517
  operation_date?: string | undefined;
1518
1518
  journal_id: string;
1519
- status: "draft" | "posted" | "cancelled" | "matched";
1519
+ status: "cancelled" | "draft" | "posted" | "matched";
1520
1520
  id: string;
1521
1521
  }>;
1522
1522
  getMiscOperation(operation_id: string, params: {
@@ -1529,14 +1529,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1529
1529
  line_number?: number | undefined;
1530
1530
  description?: string | undefined;
1531
1531
  amount: number;
1532
- type: "general_account" | "customer_account" | "supplier_account";
1532
+ type: "customer_account" | "supplier_account" | "general_account";
1533
1533
  account_number: string;
1534
1534
  partner_id?: string | undefined;
1535
1535
  analytic_account?: string | undefined;
1536
1536
  }[];
1537
1537
  operation_date?: string | undefined;
1538
1538
  journal_id: string;
1539
- status: "draft" | "posted" | "cancelled" | "matched";
1539
+ status: "cancelled" | "draft" | "posted" | "matched";
1540
1540
  id: string;
1541
1541
  }>;
1542
1542
  attachPDF(invoice_id: string, attachment: {
@@ -1546,7 +1546,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1546
1546
  folder_id?: string | undefined;
1547
1547
  } | undefined): import("../types/api").RequestData<{
1548
1548
  content: {
1549
- 'application/json': unknown;
1549
+ "application/json": unknown;
1550
1550
  };
1551
1551
  }>;
1552
1552
  getAttachments(params: {
@@ -1562,11 +1562,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1562
1562
  number: string;
1563
1563
  name: string;
1564
1564
  active?: boolean | undefined;
1565
- type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
1565
+ type?: "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "vat" | "other" | undefined;
1566
1566
  }[]>;
1567
1567
  getBalanceOfAccounts(filter: {
1568
1568
  accounts: string[];
1569
- start: string;
1569
+ start?: string | undefined;
1570
1570
  end: string;
1571
1571
  }, params: {
1572
1572
  folder_id?: string | undefined;
@@ -1574,6 +1574,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1574
1574
  size?: number | undefined;
1575
1575
  } | undefined): import("../types/api").RequestData<{
1576
1576
  account_number: string;
1577
+ account_name?: string | undefined;
1577
1578
  debit: number;
1578
1579
  credit: number;
1579
1580
  balance: number;
@@ -1598,7 +1599,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1598
1599
  getOutstandings(params: {
1599
1600
  folder_id?: string | undefined;
1600
1601
  unposted_allowed: "true" | "false";
1601
- type: "client" | "supplier";
1602
+ type: "supplier" | "client";
1602
1603
  }): import("../types/api").RequestData<{
1603
1604
  id: string;
1604
1605
  number?: string | undefined;
@@ -1624,7 +1625,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1624
1625
  reference?: string | undefined;
1625
1626
  number?: string | undefined;
1626
1627
  items: {
1627
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1628
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1628
1629
  account_number: string;
1629
1630
  partner_id?: string | undefined;
1630
1631
  amount: number;
@@ -1643,7 +1644,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1643
1644
  id: string;
1644
1645
  number: string;
1645
1646
  items: {
1646
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1647
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1647
1648
  account_number: string;
1648
1649
  partner_id?: string | undefined;
1649
1650
  amount: number;
@@ -1659,7 +1660,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1659
1660
  reference?: string | undefined;
1660
1661
  number?: string | undefined;
1661
1662
  items: {
1662
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1663
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1663
1664
  account: string;
1664
1665
  amount: number;
1665
1666
  description?: string | undefined;
@@ -1677,7 +1678,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1677
1678
  id: string;
1678
1679
  number: string;
1679
1680
  items: {
1680
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1681
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1681
1682
  account: string;
1682
1683
  amount: number;
1683
1684
  description?: string | undefined;
@@ -1746,7 +1747,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1746
1747
  currency_exchange_rate?: number | undefined;
1747
1748
  date: string;
1748
1749
  items: {
1749
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1750
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1750
1751
  account: string;
1751
1752
  force_general_account?: string | undefined;
1752
1753
  prioritise_thirdparty_account?: boolean | undefined;
@@ -1813,7 +1814,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1813
1814
  }>;
1814
1815
  invoicing: import("../types/api").ApiFor<{
1815
1816
  getInvoices(params: {
1816
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
1817
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
1817
1818
  payment_status?: "all" | "paid" | "unpaid" | undefined;
1818
1819
  date_from?: string | undefined;
1819
1820
  date_to?: string | undefined;
@@ -1828,7 +1829,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1828
1829
  };
1829
1830
  currency: string;
1830
1831
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1831
- status: "draft" | "posted" | "cancelled" | "paid";
1832
+ status: "cancelled" | "draft" | "posted" | "paid";
1832
1833
  invoice_date: string;
1833
1834
  tax_amount: number;
1834
1835
  untaxed_amount: number;
@@ -1873,7 +1874,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1873
1874
  };
1874
1875
  currency: string;
1875
1876
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1876
- status: "draft" | "posted" | "cancelled" | "paid";
1877
+ status: "cancelled" | "draft" | "posted" | "paid";
1877
1878
  invoice_date: string;
1878
1879
  tax_amount: number;
1879
1880
  untaxed_amount: number;
@@ -1911,7 +1912,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1911
1912
  createInvoice(invoice: {
1912
1913
  currency: string;
1913
1914
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1914
- status: "draft" | "posted" | "cancelled" | "paid";
1915
+ status: "cancelled" | "draft" | "posted" | "paid";
1915
1916
  invoice_date: string;
1916
1917
  tax_amount: number;
1917
1918
  untaxed_amount: number;
@@ -1952,7 +1953,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1952
1953
  };
1953
1954
  currency: string;
1954
1955
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1955
- status: "draft" | "posted" | "cancelled" | "paid";
1956
+ status: "cancelled" | "draft" | "posted" | "paid";
1956
1957
  invoice_date: string;
1957
1958
  tax_amount: number;
1958
1959
  untaxed_amount: number;
@@ -2124,7 +2125,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2124
2125
  } | undefined;
2125
2126
  }>;
2126
2127
  getContacts(params?: {
2127
- contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
2128
+ contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
2128
2129
  page?: number | undefined;
2129
2130
  size?: number | undefined;
2130
2131
  } | undefined): import("../types/api").RequestData<{
@@ -2154,7 +2155,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2154
2155
  birthdate?: string | undefined;
2155
2156
  gender?: "H" | "F" | "N/A" | undefined;
2156
2157
  addresses?: {
2157
- address_type: "main" | "delivery" | "invoice" | "other";
2158
+ address_type: "other" | "main" | "delivery" | "invoice";
2158
2159
  name?: string | undefined;
2159
2160
  number?: string | undefined;
2160
2161
  box?: string | undefined;
@@ -2194,7 +2195,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2194
2195
  birthdate?: string | undefined;
2195
2196
  gender?: "H" | "F" | "N/A" | undefined;
2196
2197
  addresses?: {
2197
- address_type: "main" | "delivery" | "invoice" | "other";
2198
+ address_type: "other" | "main" | "delivery" | "invoice";
2198
2199
  name?: string | undefined;
2199
2200
  number?: string | undefined;
2200
2201
  box?: string | undefined;
@@ -2229,7 +2230,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2229
2230
  birthdate?: string | undefined;
2230
2231
  gender?: "H" | "F" | "N/A" | undefined;
2231
2232
  addresses?: {
2232
- address_type: "main" | "delivery" | "invoice" | "other";
2233
+ address_type: "other" | "main" | "delivery" | "invoice";
2233
2234
  name?: string | undefined;
2234
2235
  number?: string | undefined;
2235
2236
  box?: string | undefined;
@@ -2268,7 +2269,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2268
2269
  birthdate?: string | undefined;
2269
2270
  gender?: "H" | "F" | "N/A" | undefined;
2270
2271
  addresses?: {
2271
- address_type: "main" | "delivery" | "invoice" | "other";
2272
+ address_type: "other" | "main" | "delivery" | "invoice";
2272
2273
  name?: string | undefined;
2273
2274
  number?: string | undefined;
2274
2275
  box?: string | undefined;
@@ -2584,7 +2585,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2584
2585
  last_updated_on?: string | undefined;
2585
2586
  confirmed_on?: string | undefined;
2586
2587
  cancelled_on?: string | undefined;
2587
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
2588
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
2588
2589
  discount_amount: number;
2589
2590
  untaxed_amount_without_fees: number;
2590
2591
  tax_amount_without_fees: number;
@@ -2616,6 +2617,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2616
2617
  }[] | undefined;
2617
2618
  other?: number | undefined;
2618
2619
  shipping_refunds?: {
2620
+ id: string;
2621
+ source_ref: {
2622
+ id?: string | undefined;
2623
+ model?: string | undefined;
2624
+ };
2619
2625
  untaxed_amount: number;
2620
2626
  tax_amount: number;
2621
2627
  total: number;
@@ -2651,6 +2657,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2651
2657
  gift_card?: boolean | undefined;
2652
2658
  }[];
2653
2659
  other_fees?: {
2660
+ id: string;
2661
+ source_ref: {
2662
+ id?: string | undefined;
2663
+ model?: string | undefined;
2664
+ };
2654
2665
  created_on?: string | undefined;
2655
2666
  type: "other" | "shipping";
2656
2667
  tax_rate: number;
@@ -2765,7 +2776,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2765
2776
  last_updated_on?: string | undefined;
2766
2777
  confirmed_on?: string | undefined;
2767
2778
  cancelled_on?: string | undefined;
2768
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
2779
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
2769
2780
  discount_amount: number;
2770
2781
  untaxed_amount_without_fees: number;
2771
2782
  tax_amount_without_fees: number;
@@ -2797,6 +2808,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2797
2808
  }[] | undefined;
2798
2809
  other?: number | undefined;
2799
2810
  shipping_refunds?: {
2811
+ id: string;
2812
+ source_ref: {
2813
+ id?: string | undefined;
2814
+ model?: string | undefined;
2815
+ };
2800
2816
  untaxed_amount: number;
2801
2817
  tax_amount: number;
2802
2818
  total: number;
@@ -2832,6 +2848,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2832
2848
  gift_card?: boolean | undefined;
2833
2849
  }[];
2834
2850
  other_fees?: {
2851
+ id: string;
2852
+ source_ref: {
2853
+ id?: string | undefined;
2854
+ model?: string | undefined;
2855
+ };
2835
2856
  created_on?: string | undefined;
2836
2857
  type: "other" | "shipping";
2837
2858
  tax_rate: number;
@@ -2905,7 +2926,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2905
2926
  last_updated_on?: string | undefined;
2906
2927
  confirmed_on?: string | undefined;
2907
2928
  cancelled_on?: string | undefined;
2908
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
2929
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
2909
2930
  discount_amount: number;
2910
2931
  untaxed_amount_without_fees: number;
2911
2932
  tax_amount_without_fees: number;
@@ -2937,6 +2958,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2937
2958
  }[] | undefined;
2938
2959
  other?: number | undefined;
2939
2960
  shipping_refunds?: {
2961
+ id: string;
2962
+ source_ref: {
2963
+ id?: string | undefined;
2964
+ model?: string | undefined;
2965
+ };
2940
2966
  untaxed_amount: number;
2941
2967
  tax_amount: number;
2942
2968
  total: number;
@@ -2972,6 +2998,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2972
2998
  gift_card?: boolean | undefined;
2973
2999
  }[];
2974
3000
  other_fees?: {
3001
+ id: string;
3002
+ source_ref: {
3003
+ id?: string | undefined;
3004
+ model?: string | undefined;
3005
+ };
2975
3006
  created_on?: string | undefined;
2976
3007
  type: "other" | "shipping";
2977
3008
  tax_rate: number;
@@ -4030,7 +4061,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4030
4061
  communication?: string | undefined;
4031
4062
  matching_number?: string | undefined;
4032
4063
  }[] | undefined;
4033
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
4064
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
4034
4065
  lines: {
4035
4066
  line_number?: number | undefined;
4036
4067
  description: string;
@@ -4132,7 +4163,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4132
4163
  communication?: string | undefined;
4133
4164
  matching_number?: string | undefined;
4134
4165
  }[] | undefined;
4135
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
4166
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
4136
4167
  lines: {
4137
4168
  line_number?: number | undefined;
4138
4169
  description: string;
@@ -4183,7 +4214,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4183
4214
  communication?: string | undefined;
4184
4215
  matching_number?: string | undefined;
4185
4216
  }[] | undefined;
4186
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
4217
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
4187
4218
  lines: {
4188
4219
  line_number?: number | undefined;
4189
4220
  description: string;
@@ -4231,7 +4262,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4231
4262
  communication?: string | undefined;
4232
4263
  matching_number?: string | undefined;
4233
4264
  }[] | undefined;
4234
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
4265
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
4235
4266
  lines: {
4236
4267
  line_number?: number | undefined;
4237
4268
  description: string;
@@ -4279,7 +4310,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4279
4310
  communication?: string | undefined;
4280
4311
  matching_number?: string | undefined;
4281
4312
  }[] | undefined;
4282
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
4313
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
4283
4314
  lines: {
4284
4315
  line_number?: number | undefined;
4285
4316
  description: string;
@@ -4330,7 +4361,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4330
4361
  communication?: string | undefined;
4331
4362
  matching_number?: string | undefined;
4332
4363
  }[] | undefined;
4333
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
4364
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
4334
4365
  lines: {
4335
4366
  line_number?: number | undefined;
4336
4367
  description: string;
@@ -4595,14 +4626,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4595
4626
  line_number?: number | undefined;
4596
4627
  description?: string | undefined;
4597
4628
  amount: number;
4598
- type: "general_account" | "customer_account" | "supplier_account";
4629
+ type: "customer_account" | "supplier_account" | "general_account";
4599
4630
  account_number: string;
4600
4631
  partner_id?: string | undefined;
4601
4632
  analytic_account?: string | undefined;
4602
4633
  }[];
4603
4634
  operation_date?: string | undefined;
4604
4635
  journal_id: string;
4605
- status: "draft" | "posted" | "cancelled" | "matched";
4636
+ status: "cancelled" | "draft" | "posted" | "matched";
4606
4637
  id: string;
4607
4638
  }[]>;
4608
4639
  createMiscOperation(operation: {
@@ -4613,7 +4644,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4613
4644
  line_number?: number | undefined;
4614
4645
  description?: string | undefined;
4615
4646
  amount: number;
4616
- type: "general_account" | "customer_account" | "supplier_account";
4647
+ type: "customer_account" | "supplier_account" | "general_account";
4617
4648
  account_number: string;
4618
4649
  partner_id?: string | undefined;
4619
4650
  analytic_account?: string | undefined;
@@ -4631,14 +4662,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4631
4662
  line_number?: number | undefined;
4632
4663
  description?: string | undefined;
4633
4664
  amount: number;
4634
- type: "general_account" | "customer_account" | "supplier_account";
4665
+ type: "customer_account" | "supplier_account" | "general_account";
4635
4666
  account_number: string;
4636
4667
  partner_id?: string | undefined;
4637
4668
  analytic_account?: string | undefined;
4638
4669
  }[];
4639
4670
  operation_date?: string | undefined;
4640
4671
  journal_id: string;
4641
- status: "draft" | "posted" | "cancelled" | "matched";
4672
+ status: "cancelled" | "draft" | "posted" | "matched";
4642
4673
  id: string;
4643
4674
  }>;
4644
4675
  getMiscOperation(operation_id: string, params: {
@@ -4651,14 +4682,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4651
4682
  line_number?: number | undefined;
4652
4683
  description?: string | undefined;
4653
4684
  amount: number;
4654
- type: "general_account" | "customer_account" | "supplier_account";
4685
+ type: "customer_account" | "supplier_account" | "general_account";
4655
4686
  account_number: string;
4656
4687
  partner_id?: string | undefined;
4657
4688
  analytic_account?: string | undefined;
4658
4689
  }[];
4659
4690
  operation_date?: string | undefined;
4660
4691
  journal_id: string;
4661
- status: "draft" | "posted" | "cancelled" | "matched";
4692
+ status: "cancelled" | "draft" | "posted" | "matched";
4662
4693
  id: string;
4663
4694
  }>;
4664
4695
  attachPDF(invoice_id: string, attachment: {
@@ -4668,7 +4699,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4668
4699
  folder_id?: string | undefined;
4669
4700
  } | undefined): import("../types/api").RequestData<{
4670
4701
  content: {
4671
- 'application/json': unknown;
4702
+ "application/json": unknown;
4672
4703
  };
4673
4704
  }>;
4674
4705
  getAttachments(params: {
@@ -4684,11 +4715,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4684
4715
  number: string;
4685
4716
  name: string;
4686
4717
  active?: boolean | undefined;
4687
- type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
4718
+ type?: "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "vat" | "other" | undefined;
4688
4719
  }[]>;
4689
4720
  getBalanceOfAccounts(filter: {
4690
4721
  accounts: string[];
4691
- start: string;
4722
+ start?: string | undefined;
4692
4723
  end: string;
4693
4724
  }, params: {
4694
4725
  folder_id?: string | undefined;
@@ -4696,6 +4727,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4696
4727
  size?: number | undefined;
4697
4728
  } | undefined): import("../types/api").RequestData<{
4698
4729
  account_number: string;
4730
+ account_name?: string | undefined;
4699
4731
  debit: number;
4700
4732
  credit: number;
4701
4733
  balance: number;
@@ -4720,7 +4752,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4720
4752
  getOutstandings(params: {
4721
4753
  folder_id?: string | undefined;
4722
4754
  unposted_allowed: "true" | "false";
4723
- type: "client" | "supplier";
4755
+ type: "supplier" | "client";
4724
4756
  }): import("../types/api").RequestData<{
4725
4757
  id: string;
4726
4758
  number?: string | undefined;
@@ -4746,7 +4778,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4746
4778
  reference?: string | undefined;
4747
4779
  number?: string | undefined;
4748
4780
  items: {
4749
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
4781
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
4750
4782
  account_number: string;
4751
4783
  partner_id?: string | undefined;
4752
4784
  amount: number;
@@ -4765,7 +4797,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4765
4797
  id: string;
4766
4798
  number: string;
4767
4799
  items: {
4768
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
4800
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
4769
4801
  account_number: string;
4770
4802
  partner_id?: string | undefined;
4771
4803
  amount: number;
@@ -4781,7 +4813,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4781
4813
  reference?: string | undefined;
4782
4814
  number?: string | undefined;
4783
4815
  items: {
4784
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
4816
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
4785
4817
  account: string;
4786
4818
  amount: number;
4787
4819
  description?: string | undefined;
@@ -4799,7 +4831,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4799
4831
  id: string;
4800
4832
  number: string;
4801
4833
  items: {
4802
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
4834
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
4803
4835
  account: string;
4804
4836
  amount: number;
4805
4837
  description?: string | undefined;
@@ -4868,7 +4900,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4868
4900
  currency_exchange_rate?: number | undefined;
4869
4901
  date: string;
4870
4902
  items: {
4871
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
4903
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
4872
4904
  account: string;
4873
4905
  force_general_account?: string | undefined;
4874
4906
  prioritise_thirdparty_account?: boolean | undefined;
@@ -4935,7 +4967,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4935
4967
  }>;
4936
4968
  invoicing: import("../types/api").ApiFor<{
4937
4969
  getInvoices(params: {
4938
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
4970
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
4939
4971
  payment_status?: "all" | "paid" | "unpaid" | undefined;
4940
4972
  date_from?: string | undefined;
4941
4973
  date_to?: string | undefined;
@@ -4950,7 +4982,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4950
4982
  };
4951
4983
  currency: string;
4952
4984
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4953
- status: "draft" | "posted" | "cancelled" | "paid";
4985
+ status: "cancelled" | "draft" | "posted" | "paid";
4954
4986
  invoice_date: string;
4955
4987
  tax_amount: number;
4956
4988
  untaxed_amount: number;
@@ -4995,7 +5027,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4995
5027
  };
4996
5028
  currency: string;
4997
5029
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4998
- status: "draft" | "posted" | "cancelled" | "paid";
5030
+ status: "cancelled" | "draft" | "posted" | "paid";
4999
5031
  invoice_date: string;
5000
5032
  tax_amount: number;
5001
5033
  untaxed_amount: number;
@@ -5033,7 +5065,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5033
5065
  createInvoice(invoice: {
5034
5066
  currency: string;
5035
5067
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
5036
- status: "draft" | "posted" | "cancelled" | "paid";
5068
+ status: "cancelled" | "draft" | "posted" | "paid";
5037
5069
  invoice_date: string;
5038
5070
  tax_amount: number;
5039
5071
  untaxed_amount: number;
@@ -5074,7 +5106,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5074
5106
  };
5075
5107
  currency: string;
5076
5108
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
5077
- status: "draft" | "posted" | "cancelled" | "paid";
5109
+ status: "cancelled" | "draft" | "posted" | "paid";
5078
5110
  invoice_date: string;
5079
5111
  tax_amount: number;
5080
5112
  untaxed_amount: number;
@@ -5246,7 +5278,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5246
5278
  } | undefined;
5247
5279
  }>;
5248
5280
  getContacts(params?: {
5249
- contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
5281
+ contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
5250
5282
  page?: number | undefined;
5251
5283
  size?: number | undefined;
5252
5284
  } | undefined): import("../types/api").RequestData<{
@@ -5276,7 +5308,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5276
5308
  birthdate?: string | undefined;
5277
5309
  gender?: "H" | "F" | "N/A" | undefined;
5278
5310
  addresses?: {
5279
- address_type: "main" | "delivery" | "invoice" | "other";
5311
+ address_type: "other" | "main" | "delivery" | "invoice";
5280
5312
  name?: string | undefined;
5281
5313
  number?: string | undefined;
5282
5314
  box?: string | undefined;
@@ -5316,7 +5348,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5316
5348
  birthdate?: string | undefined;
5317
5349
  gender?: "H" | "F" | "N/A" | undefined;
5318
5350
  addresses?: {
5319
- address_type: "main" | "delivery" | "invoice" | "other";
5351
+ address_type: "other" | "main" | "delivery" | "invoice";
5320
5352
  name?: string | undefined;
5321
5353
  number?: string | undefined;
5322
5354
  box?: string | undefined;
@@ -5351,7 +5383,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5351
5383
  birthdate?: string | undefined;
5352
5384
  gender?: "H" | "F" | "N/A" | undefined;
5353
5385
  addresses?: {
5354
- address_type: "main" | "delivery" | "invoice" | "other";
5386
+ address_type: "other" | "main" | "delivery" | "invoice";
5355
5387
  name?: string | undefined;
5356
5388
  number?: string | undefined;
5357
5389
  box?: string | undefined;
@@ -5390,7 +5422,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5390
5422
  birthdate?: string | undefined;
5391
5423
  gender?: "H" | "F" | "N/A" | undefined;
5392
5424
  addresses?: {
5393
- address_type: "main" | "delivery" | "invoice" | "other";
5425
+ address_type: "other" | "main" | "delivery" | "invoice";
5394
5426
  name?: string | undefined;
5395
5427
  number?: string | undefined;
5396
5428
  box?: string | undefined;
@@ -5706,7 +5738,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5706
5738
  last_updated_on?: string | undefined;
5707
5739
  confirmed_on?: string | undefined;
5708
5740
  cancelled_on?: string | undefined;
5709
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
5741
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
5710
5742
  discount_amount: number;
5711
5743
  untaxed_amount_without_fees: number;
5712
5744
  tax_amount_without_fees: number;
@@ -5738,6 +5770,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5738
5770
  }[] | undefined;
5739
5771
  other?: number | undefined;
5740
5772
  shipping_refunds?: {
5773
+ id: string;
5774
+ source_ref: {
5775
+ id?: string | undefined;
5776
+ model?: string | undefined;
5777
+ };
5741
5778
  untaxed_amount: number;
5742
5779
  tax_amount: number;
5743
5780
  total: number;
@@ -5773,6 +5810,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5773
5810
  gift_card?: boolean | undefined;
5774
5811
  }[];
5775
5812
  other_fees?: {
5813
+ id: string;
5814
+ source_ref: {
5815
+ id?: string | undefined;
5816
+ model?: string | undefined;
5817
+ };
5776
5818
  created_on?: string | undefined;
5777
5819
  type: "other" | "shipping";
5778
5820
  tax_rate: number;
@@ -5887,7 +5929,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5887
5929
  last_updated_on?: string | undefined;
5888
5930
  confirmed_on?: string | undefined;
5889
5931
  cancelled_on?: string | undefined;
5890
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
5932
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
5891
5933
  discount_amount: number;
5892
5934
  untaxed_amount_without_fees: number;
5893
5935
  tax_amount_without_fees: number;
@@ -5919,6 +5961,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5919
5961
  }[] | undefined;
5920
5962
  other?: number | undefined;
5921
5963
  shipping_refunds?: {
5964
+ id: string;
5965
+ source_ref: {
5966
+ id?: string | undefined;
5967
+ model?: string | undefined;
5968
+ };
5922
5969
  untaxed_amount: number;
5923
5970
  tax_amount: number;
5924
5971
  total: number;
@@ -5954,6 +6001,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5954
6001
  gift_card?: boolean | undefined;
5955
6002
  }[];
5956
6003
  other_fees?: {
6004
+ id: string;
6005
+ source_ref: {
6006
+ id?: string | undefined;
6007
+ model?: string | undefined;
6008
+ };
5957
6009
  created_on?: string | undefined;
5958
6010
  type: "other" | "shipping";
5959
6011
  tax_rate: number;
@@ -6027,7 +6079,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6027
6079
  last_updated_on?: string | undefined;
6028
6080
  confirmed_on?: string | undefined;
6029
6081
  cancelled_on?: string | undefined;
6030
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
6082
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
6031
6083
  discount_amount: number;
6032
6084
  untaxed_amount_without_fees: number;
6033
6085
  tax_amount_without_fees: number;
@@ -6059,6 +6111,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6059
6111
  }[] | undefined;
6060
6112
  other?: number | undefined;
6061
6113
  shipping_refunds?: {
6114
+ id: string;
6115
+ source_ref: {
6116
+ id?: string | undefined;
6117
+ model?: string | undefined;
6118
+ };
6062
6119
  untaxed_amount: number;
6063
6120
  tax_amount: number;
6064
6121
  total: number;
@@ -6094,6 +6151,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6094
6151
  gift_card?: boolean | undefined;
6095
6152
  }[];
6096
6153
  other_fees?: {
6154
+ id: string;
6155
+ source_ref: {
6156
+ id?: string | undefined;
6157
+ model?: string | undefined;
6158
+ };
6097
6159
  created_on?: string | undefined;
6098
6160
  type: "other" | "shipping";
6099
6161
  tax_rate: number;
@@ -7152,7 +7214,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7152
7214
  communication?: string | undefined;
7153
7215
  matching_number?: string | undefined;
7154
7216
  }[] | undefined;
7155
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
7217
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
7156
7218
  lines: {
7157
7219
  line_number?: number | undefined;
7158
7220
  description: string;
@@ -7254,7 +7316,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7254
7316
  communication?: string | undefined;
7255
7317
  matching_number?: string | undefined;
7256
7318
  }[] | undefined;
7257
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
7319
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
7258
7320
  lines: {
7259
7321
  line_number?: number | undefined;
7260
7322
  description: string;
@@ -7305,7 +7367,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7305
7367
  communication?: string | undefined;
7306
7368
  matching_number?: string | undefined;
7307
7369
  }[] | undefined;
7308
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
7370
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
7309
7371
  lines: {
7310
7372
  line_number?: number | undefined;
7311
7373
  description: string;
@@ -7353,7 +7415,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7353
7415
  communication?: string | undefined;
7354
7416
  matching_number?: string | undefined;
7355
7417
  }[] | undefined;
7356
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
7418
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
7357
7419
  lines: {
7358
7420
  line_number?: number | undefined;
7359
7421
  description: string;
@@ -7401,7 +7463,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7401
7463
  communication?: string | undefined;
7402
7464
  matching_number?: string | undefined;
7403
7465
  }[] | undefined;
7404
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
7466
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
7405
7467
  lines: {
7406
7468
  line_number?: number | undefined;
7407
7469
  description: string;
@@ -7452,7 +7514,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7452
7514
  communication?: string | undefined;
7453
7515
  matching_number?: string | undefined;
7454
7516
  }[] | undefined;
7455
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
7517
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
7456
7518
  lines: {
7457
7519
  line_number?: number | undefined;
7458
7520
  description: string;
@@ -7717,14 +7779,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7717
7779
  line_number?: number | undefined;
7718
7780
  description?: string | undefined;
7719
7781
  amount: number;
7720
- type: "general_account" | "customer_account" | "supplier_account";
7782
+ type: "customer_account" | "supplier_account" | "general_account";
7721
7783
  account_number: string;
7722
7784
  partner_id?: string | undefined;
7723
7785
  analytic_account?: string | undefined;
7724
7786
  }[];
7725
7787
  operation_date?: string | undefined;
7726
7788
  journal_id: string;
7727
- status: "draft" | "posted" | "cancelled" | "matched";
7789
+ status: "cancelled" | "draft" | "posted" | "matched";
7728
7790
  id: string;
7729
7791
  }[]>;
7730
7792
  createMiscOperation(operation: {
@@ -7735,7 +7797,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7735
7797
  line_number?: number | undefined;
7736
7798
  description?: string | undefined;
7737
7799
  amount: number;
7738
- type: "general_account" | "customer_account" | "supplier_account";
7800
+ type: "customer_account" | "supplier_account" | "general_account";
7739
7801
  account_number: string;
7740
7802
  partner_id?: string | undefined;
7741
7803
  analytic_account?: string | undefined;
@@ -7753,14 +7815,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7753
7815
  line_number?: number | undefined;
7754
7816
  description?: string | undefined;
7755
7817
  amount: number;
7756
- type: "general_account" | "customer_account" | "supplier_account";
7818
+ type: "customer_account" | "supplier_account" | "general_account";
7757
7819
  account_number: string;
7758
7820
  partner_id?: string | undefined;
7759
7821
  analytic_account?: string | undefined;
7760
7822
  }[];
7761
7823
  operation_date?: string | undefined;
7762
7824
  journal_id: string;
7763
- status: "draft" | "posted" | "cancelled" | "matched";
7825
+ status: "cancelled" | "draft" | "posted" | "matched";
7764
7826
  id: string;
7765
7827
  }>;
7766
7828
  getMiscOperation(operation_id: string, params: {
@@ -7773,14 +7835,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7773
7835
  line_number?: number | undefined;
7774
7836
  description?: string | undefined;
7775
7837
  amount: number;
7776
- type: "general_account" | "customer_account" | "supplier_account";
7838
+ type: "customer_account" | "supplier_account" | "general_account";
7777
7839
  account_number: string;
7778
7840
  partner_id?: string | undefined;
7779
7841
  analytic_account?: string | undefined;
7780
7842
  }[];
7781
7843
  operation_date?: string | undefined;
7782
7844
  journal_id: string;
7783
- status: "draft" | "posted" | "cancelled" | "matched";
7845
+ status: "cancelled" | "draft" | "posted" | "matched";
7784
7846
  id: string;
7785
7847
  }>;
7786
7848
  attachPDF(invoice_id: string, attachment: {
@@ -7790,7 +7852,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7790
7852
  folder_id?: string | undefined;
7791
7853
  } | undefined): import("../types/api").RequestData<{
7792
7854
  content: {
7793
- 'application/json': unknown;
7855
+ "application/json": unknown;
7794
7856
  };
7795
7857
  }>;
7796
7858
  getAttachments(params: {
@@ -7806,11 +7868,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7806
7868
  number: string;
7807
7869
  name: string;
7808
7870
  active?: boolean | undefined;
7809
- type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
7871
+ type?: "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "vat" | "other" | undefined;
7810
7872
  }[]>;
7811
7873
  getBalanceOfAccounts(filter: {
7812
7874
  accounts: string[];
7813
- start: string;
7875
+ start?: string | undefined;
7814
7876
  end: string;
7815
7877
  }, params: {
7816
7878
  folder_id?: string | undefined;
@@ -7818,6 +7880,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7818
7880
  size?: number | undefined;
7819
7881
  } | undefined): import("../types/api").RequestData<{
7820
7882
  account_number: string;
7883
+ account_name?: string | undefined;
7821
7884
  debit: number;
7822
7885
  credit: number;
7823
7886
  balance: number;
@@ -7842,7 +7905,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7842
7905
  getOutstandings(params: {
7843
7906
  folder_id?: string | undefined;
7844
7907
  unposted_allowed: "true" | "false";
7845
- type: "client" | "supplier";
7908
+ type: "supplier" | "client";
7846
7909
  }): import("../types/api").RequestData<{
7847
7910
  id: string;
7848
7911
  number?: string | undefined;
@@ -7868,7 +7931,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7868
7931
  reference?: string | undefined;
7869
7932
  number?: string | undefined;
7870
7933
  items: {
7871
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
7934
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
7872
7935
  account_number: string;
7873
7936
  partner_id?: string | undefined;
7874
7937
  amount: number;
@@ -7887,7 +7950,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7887
7950
  id: string;
7888
7951
  number: string;
7889
7952
  items: {
7890
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
7953
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
7891
7954
  account_number: string;
7892
7955
  partner_id?: string | undefined;
7893
7956
  amount: number;
@@ -7903,7 +7966,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7903
7966
  reference?: string | undefined;
7904
7967
  number?: string | undefined;
7905
7968
  items: {
7906
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
7969
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
7907
7970
  account: string;
7908
7971
  amount: number;
7909
7972
  description?: string | undefined;
@@ -7921,7 +7984,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7921
7984
  id: string;
7922
7985
  number: string;
7923
7986
  items: {
7924
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
7987
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
7925
7988
  account: string;
7926
7989
  amount: number;
7927
7990
  description?: string | undefined;
@@ -7990,7 +8053,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7990
8053
  currency_exchange_rate?: number | undefined;
7991
8054
  date: string;
7992
8055
  items: {
7993
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
8056
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
7994
8057
  account: string;
7995
8058
  force_general_account?: string | undefined;
7996
8059
  prioritise_thirdparty_account?: boolean | undefined;
@@ -8057,7 +8120,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8057
8120
  }>;
8058
8121
  invoicing: import("../types/api").ApiFor<{
8059
8122
  getInvoices(params: {
8060
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
8123
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
8061
8124
  payment_status?: "all" | "paid" | "unpaid" | undefined;
8062
8125
  date_from?: string | undefined;
8063
8126
  date_to?: string | undefined;
@@ -8072,7 +8135,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8072
8135
  };
8073
8136
  currency: string;
8074
8137
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8075
- status: "draft" | "posted" | "cancelled" | "paid";
8138
+ status: "cancelled" | "draft" | "posted" | "paid";
8076
8139
  invoice_date: string;
8077
8140
  tax_amount: number;
8078
8141
  untaxed_amount: number;
@@ -8117,7 +8180,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8117
8180
  };
8118
8181
  currency: string;
8119
8182
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8120
- status: "draft" | "posted" | "cancelled" | "paid";
8183
+ status: "cancelled" | "draft" | "posted" | "paid";
8121
8184
  invoice_date: string;
8122
8185
  tax_amount: number;
8123
8186
  untaxed_amount: number;
@@ -8155,7 +8218,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8155
8218
  createInvoice(invoice: {
8156
8219
  currency: string;
8157
8220
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8158
- status: "draft" | "posted" | "cancelled" | "paid";
8221
+ status: "cancelled" | "draft" | "posted" | "paid";
8159
8222
  invoice_date: string;
8160
8223
  tax_amount: number;
8161
8224
  untaxed_amount: number;
@@ -8196,7 +8259,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8196
8259
  };
8197
8260
  currency: string;
8198
8261
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8199
- status: "draft" | "posted" | "cancelled" | "paid";
8262
+ status: "cancelled" | "draft" | "posted" | "paid";
8200
8263
  invoice_date: string;
8201
8264
  tax_amount: number;
8202
8265
  untaxed_amount: number;
@@ -8368,7 +8431,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8368
8431
  } | undefined;
8369
8432
  }>;
8370
8433
  getContacts(params?: {
8371
- contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
8434
+ contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
8372
8435
  page?: number | undefined;
8373
8436
  size?: number | undefined;
8374
8437
  } | undefined): import("../types/api").RequestData<{
@@ -8398,7 +8461,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8398
8461
  birthdate?: string | undefined;
8399
8462
  gender?: "H" | "F" | "N/A" | undefined;
8400
8463
  addresses?: {
8401
- address_type: "main" | "delivery" | "invoice" | "other";
8464
+ address_type: "other" | "main" | "delivery" | "invoice";
8402
8465
  name?: string | undefined;
8403
8466
  number?: string | undefined;
8404
8467
  box?: string | undefined;
@@ -8438,7 +8501,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8438
8501
  birthdate?: string | undefined;
8439
8502
  gender?: "H" | "F" | "N/A" | undefined;
8440
8503
  addresses?: {
8441
- address_type: "main" | "delivery" | "invoice" | "other";
8504
+ address_type: "other" | "main" | "delivery" | "invoice";
8442
8505
  name?: string | undefined;
8443
8506
  number?: string | undefined;
8444
8507
  box?: string | undefined;
@@ -8473,7 +8536,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8473
8536
  birthdate?: string | undefined;
8474
8537
  gender?: "H" | "F" | "N/A" | undefined;
8475
8538
  addresses?: {
8476
- address_type: "main" | "delivery" | "invoice" | "other";
8539
+ address_type: "other" | "main" | "delivery" | "invoice";
8477
8540
  name?: string | undefined;
8478
8541
  number?: string | undefined;
8479
8542
  box?: string | undefined;
@@ -8512,7 +8575,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8512
8575
  birthdate?: string | undefined;
8513
8576
  gender?: "H" | "F" | "N/A" | undefined;
8514
8577
  addresses?: {
8515
- address_type: "main" | "delivery" | "invoice" | "other";
8578
+ address_type: "other" | "main" | "delivery" | "invoice";
8516
8579
  name?: string | undefined;
8517
8580
  number?: string | undefined;
8518
8581
  box?: string | undefined;
@@ -8828,7 +8891,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8828
8891
  last_updated_on?: string | undefined;
8829
8892
  confirmed_on?: string | undefined;
8830
8893
  cancelled_on?: string | undefined;
8831
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
8894
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
8832
8895
  discount_amount: number;
8833
8896
  untaxed_amount_without_fees: number;
8834
8897
  tax_amount_without_fees: number;
@@ -8860,6 +8923,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8860
8923
  }[] | undefined;
8861
8924
  other?: number | undefined;
8862
8925
  shipping_refunds?: {
8926
+ id: string;
8927
+ source_ref: {
8928
+ id?: string | undefined;
8929
+ model?: string | undefined;
8930
+ };
8863
8931
  untaxed_amount: number;
8864
8932
  tax_amount: number;
8865
8933
  total: number;
@@ -8895,6 +8963,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8895
8963
  gift_card?: boolean | undefined;
8896
8964
  }[];
8897
8965
  other_fees?: {
8966
+ id: string;
8967
+ source_ref: {
8968
+ id?: string | undefined;
8969
+ model?: string | undefined;
8970
+ };
8898
8971
  created_on?: string | undefined;
8899
8972
  type: "other" | "shipping";
8900
8973
  tax_rate: number;
@@ -9009,7 +9082,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9009
9082
  last_updated_on?: string | undefined;
9010
9083
  confirmed_on?: string | undefined;
9011
9084
  cancelled_on?: string | undefined;
9012
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
9085
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
9013
9086
  discount_amount: number;
9014
9087
  untaxed_amount_without_fees: number;
9015
9088
  tax_amount_without_fees: number;
@@ -9041,6 +9114,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9041
9114
  }[] | undefined;
9042
9115
  other?: number | undefined;
9043
9116
  shipping_refunds?: {
9117
+ id: string;
9118
+ source_ref: {
9119
+ id?: string | undefined;
9120
+ model?: string | undefined;
9121
+ };
9044
9122
  untaxed_amount: number;
9045
9123
  tax_amount: number;
9046
9124
  total: number;
@@ -9076,6 +9154,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9076
9154
  gift_card?: boolean | undefined;
9077
9155
  }[];
9078
9156
  other_fees?: {
9157
+ id: string;
9158
+ source_ref: {
9159
+ id?: string | undefined;
9160
+ model?: string | undefined;
9161
+ };
9079
9162
  created_on?: string | undefined;
9080
9163
  type: "other" | "shipping";
9081
9164
  tax_rate: number;
@@ -9149,7 +9232,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9149
9232
  last_updated_on?: string | undefined;
9150
9233
  confirmed_on?: string | undefined;
9151
9234
  cancelled_on?: string | undefined;
9152
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
9235
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
9153
9236
  discount_amount: number;
9154
9237
  untaxed_amount_without_fees: number;
9155
9238
  tax_amount_without_fees: number;
@@ -9181,6 +9264,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9181
9264
  }[] | undefined;
9182
9265
  other?: number | undefined;
9183
9266
  shipping_refunds?: {
9267
+ id: string;
9268
+ source_ref: {
9269
+ id?: string | undefined;
9270
+ model?: string | undefined;
9271
+ };
9184
9272
  untaxed_amount: number;
9185
9273
  tax_amount: number;
9186
9274
  total: number;
@@ -9216,6 +9304,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9216
9304
  gift_card?: boolean | undefined;
9217
9305
  }[];
9218
9306
  other_fees?: {
9307
+ id: string;
9308
+ source_ref: {
9309
+ id?: string | undefined;
9310
+ model?: string | undefined;
9311
+ };
9219
9312
  created_on?: string | undefined;
9220
9313
  type: "other" | "shipping";
9221
9314
  tax_rate: number;
@@ -10274,7 +10367,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10274
10367
  communication?: string | undefined;
10275
10368
  matching_number?: string | undefined;
10276
10369
  }[] | undefined;
10277
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
10370
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
10278
10371
  lines: {
10279
10372
  line_number?: number | undefined;
10280
10373
  description: string;
@@ -10376,7 +10469,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10376
10469
  communication?: string | undefined;
10377
10470
  matching_number?: string | undefined;
10378
10471
  }[] | undefined;
10379
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
10472
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
10380
10473
  lines: {
10381
10474
  line_number?: number | undefined;
10382
10475
  description: string;
@@ -10427,7 +10520,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10427
10520
  communication?: string | undefined;
10428
10521
  matching_number?: string | undefined;
10429
10522
  }[] | undefined;
10430
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
10523
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
10431
10524
  lines: {
10432
10525
  line_number?: number | undefined;
10433
10526
  description: string;
@@ -10475,7 +10568,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10475
10568
  communication?: string | undefined;
10476
10569
  matching_number?: string | undefined;
10477
10570
  }[] | undefined;
10478
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
10571
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
10479
10572
  lines: {
10480
10573
  line_number?: number | undefined;
10481
10574
  description: string;
@@ -10523,7 +10616,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10523
10616
  communication?: string | undefined;
10524
10617
  matching_number?: string | undefined;
10525
10618
  }[] | undefined;
10526
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
10619
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
10527
10620
  lines: {
10528
10621
  line_number?: number | undefined;
10529
10622
  description: string;
@@ -10574,7 +10667,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10574
10667
  communication?: string | undefined;
10575
10668
  matching_number?: string | undefined;
10576
10669
  }[] | undefined;
10577
- status?: "draft" | "posted" | "cancelled" | "paid" | undefined;
10670
+ status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
10578
10671
  lines: {
10579
10672
  line_number?: number | undefined;
10580
10673
  description: string;
@@ -10839,14 +10932,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10839
10932
  line_number?: number | undefined;
10840
10933
  description?: string | undefined;
10841
10934
  amount: number;
10842
- type: "general_account" | "customer_account" | "supplier_account";
10935
+ type: "customer_account" | "supplier_account" | "general_account";
10843
10936
  account_number: string;
10844
10937
  partner_id?: string | undefined;
10845
10938
  analytic_account?: string | undefined;
10846
10939
  }[];
10847
10940
  operation_date?: string | undefined;
10848
10941
  journal_id: string;
10849
- status: "draft" | "posted" | "cancelled" | "matched";
10942
+ status: "cancelled" | "draft" | "posted" | "matched";
10850
10943
  id: string;
10851
10944
  }[]>;
10852
10945
  createMiscOperation(operation: {
@@ -10857,7 +10950,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10857
10950
  line_number?: number | undefined;
10858
10951
  description?: string | undefined;
10859
10952
  amount: number;
10860
- type: "general_account" | "customer_account" | "supplier_account";
10953
+ type: "customer_account" | "supplier_account" | "general_account";
10861
10954
  account_number: string;
10862
10955
  partner_id?: string | undefined;
10863
10956
  analytic_account?: string | undefined;
@@ -10875,14 +10968,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10875
10968
  line_number?: number | undefined;
10876
10969
  description?: string | undefined;
10877
10970
  amount: number;
10878
- type: "general_account" | "customer_account" | "supplier_account";
10971
+ type: "customer_account" | "supplier_account" | "general_account";
10879
10972
  account_number: string;
10880
10973
  partner_id?: string | undefined;
10881
10974
  analytic_account?: string | undefined;
10882
10975
  }[];
10883
10976
  operation_date?: string | undefined;
10884
10977
  journal_id: string;
10885
- status: "draft" | "posted" | "cancelled" | "matched";
10978
+ status: "cancelled" | "draft" | "posted" | "matched";
10886
10979
  id: string;
10887
10980
  }>;
10888
10981
  getMiscOperation(operation_id: string, params: {
@@ -10895,14 +10988,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10895
10988
  line_number?: number | undefined;
10896
10989
  description?: string | undefined;
10897
10990
  amount: number;
10898
- type: "general_account" | "customer_account" | "supplier_account";
10991
+ type: "customer_account" | "supplier_account" | "general_account";
10899
10992
  account_number: string;
10900
10993
  partner_id?: string | undefined;
10901
10994
  analytic_account?: string | undefined;
10902
10995
  }[];
10903
10996
  operation_date?: string | undefined;
10904
10997
  journal_id: string;
10905
- status: "draft" | "posted" | "cancelled" | "matched";
10998
+ status: "cancelled" | "draft" | "posted" | "matched";
10906
10999
  id: string;
10907
11000
  }>;
10908
11001
  attachPDF(invoice_id: string, attachment: {
@@ -10912,7 +11005,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10912
11005
  folder_id?: string | undefined;
10913
11006
  } | undefined): import("../types/api").RequestData<{
10914
11007
  content: {
10915
- 'application/json': unknown;
11008
+ "application/json": unknown;
10916
11009
  };
10917
11010
  }>;
10918
11011
  getAttachments(params: {
@@ -10928,11 +11021,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10928
11021
  number: string;
10929
11022
  name: string;
10930
11023
  active?: boolean | undefined;
10931
- type?: "vat" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other" | undefined;
11024
+ type?: "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "vat" | "other" | undefined;
10932
11025
  }[]>;
10933
11026
  getBalanceOfAccounts(filter: {
10934
11027
  accounts: string[];
10935
- start: string;
11028
+ start?: string | undefined;
10936
11029
  end: string;
10937
11030
  }, params: {
10938
11031
  folder_id?: string | undefined;
@@ -10940,6 +11033,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10940
11033
  size?: number | undefined;
10941
11034
  } | undefined): import("../types/api").RequestData<{
10942
11035
  account_number: string;
11036
+ account_name?: string | undefined;
10943
11037
  debit: number;
10944
11038
  credit: number;
10945
11039
  balance: number;
@@ -10964,7 +11058,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10964
11058
  getOutstandings(params: {
10965
11059
  folder_id?: string | undefined;
10966
11060
  unposted_allowed: "true" | "false";
10967
- type: "client" | "supplier";
11061
+ type: "supplier" | "client";
10968
11062
  }): import("../types/api").RequestData<{
10969
11063
  id: string;
10970
11064
  number?: string | undefined;
@@ -10990,7 +11084,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10990
11084
  reference?: string | undefined;
10991
11085
  number?: string | undefined;
10992
11086
  items: {
10993
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
11087
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
10994
11088
  account_number: string;
10995
11089
  partner_id?: string | undefined;
10996
11090
  amount: number;
@@ -11009,7 +11103,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11009
11103
  id: string;
11010
11104
  number: string;
11011
11105
  items: {
11012
- type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
11106
+ type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
11013
11107
  account_number: string;
11014
11108
  partner_id?: string | undefined;
11015
11109
  amount: number;
@@ -11025,7 +11119,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11025
11119
  reference?: string | undefined;
11026
11120
  number?: string | undefined;
11027
11121
  items: {
11028
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
11122
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
11029
11123
  account: string;
11030
11124
  amount: number;
11031
11125
  description?: string | undefined;
@@ -11043,7 +11137,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11043
11137
  id: string;
11044
11138
  number: string;
11045
11139
  items: {
11046
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
11140
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
11047
11141
  account: string;
11048
11142
  amount: number;
11049
11143
  description?: string | undefined;
@@ -11112,7 +11206,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11112
11206
  currency_exchange_rate?: number | undefined;
11113
11207
  date: string;
11114
11208
  items: {
11115
- account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
11209
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
11116
11210
  account: string;
11117
11211
  force_general_account?: string | undefined;
11118
11212
  prioritise_thirdparty_account?: boolean | undefined;
@@ -11179,7 +11273,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11179
11273
  }>;
11180
11274
  invoicing: import("../types/api").ApiFor<{
11181
11275
  getInvoices(params: {
11182
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
11276
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
11183
11277
  payment_status?: "all" | "paid" | "unpaid" | undefined;
11184
11278
  date_from?: string | undefined;
11185
11279
  date_to?: string | undefined;
@@ -11194,7 +11288,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11194
11288
  };
11195
11289
  currency: string;
11196
11290
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
11197
- status: "draft" | "posted" | "cancelled" | "paid";
11291
+ status: "cancelled" | "draft" | "posted" | "paid";
11198
11292
  invoice_date: string;
11199
11293
  tax_amount: number;
11200
11294
  untaxed_amount: number;
@@ -11239,7 +11333,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11239
11333
  };
11240
11334
  currency: string;
11241
11335
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
11242
- status: "draft" | "posted" | "cancelled" | "paid";
11336
+ status: "cancelled" | "draft" | "posted" | "paid";
11243
11337
  invoice_date: string;
11244
11338
  tax_amount: number;
11245
11339
  untaxed_amount: number;
@@ -11277,7 +11371,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11277
11371
  createInvoice(invoice: {
11278
11372
  currency: string;
11279
11373
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
11280
- status: "draft" | "posted" | "cancelled" | "paid";
11374
+ status: "cancelled" | "draft" | "posted" | "paid";
11281
11375
  invoice_date: string;
11282
11376
  tax_amount: number;
11283
11377
  untaxed_amount: number;
@@ -11318,7 +11412,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11318
11412
  };
11319
11413
  currency: string;
11320
11414
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
11321
- status: "draft" | "posted" | "cancelled" | "paid";
11415
+ status: "cancelled" | "draft" | "posted" | "paid";
11322
11416
  invoice_date: string;
11323
11417
  tax_amount: number;
11324
11418
  untaxed_amount: number;
@@ -11490,7 +11584,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11490
11584
  } | undefined;
11491
11585
  }>;
11492
11586
  getContacts(params?: {
11493
- contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
11587
+ contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
11494
11588
  page?: number | undefined;
11495
11589
  size?: number | undefined;
11496
11590
  } | undefined): import("../types/api").RequestData<{
@@ -11520,7 +11614,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11520
11614
  birthdate?: string | undefined;
11521
11615
  gender?: "H" | "F" | "N/A" | undefined;
11522
11616
  addresses?: {
11523
- address_type: "main" | "delivery" | "invoice" | "other";
11617
+ address_type: "other" | "main" | "delivery" | "invoice";
11524
11618
  name?: string | undefined;
11525
11619
  number?: string | undefined;
11526
11620
  box?: string | undefined;
@@ -11560,7 +11654,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11560
11654
  birthdate?: string | undefined;
11561
11655
  gender?: "H" | "F" | "N/A" | undefined;
11562
11656
  addresses?: {
11563
- address_type: "main" | "delivery" | "invoice" | "other";
11657
+ address_type: "other" | "main" | "delivery" | "invoice";
11564
11658
  name?: string | undefined;
11565
11659
  number?: string | undefined;
11566
11660
  box?: string | undefined;
@@ -11595,7 +11689,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11595
11689
  birthdate?: string | undefined;
11596
11690
  gender?: "H" | "F" | "N/A" | undefined;
11597
11691
  addresses?: {
11598
- address_type: "main" | "delivery" | "invoice" | "other";
11692
+ address_type: "other" | "main" | "delivery" | "invoice";
11599
11693
  name?: string | undefined;
11600
11694
  number?: string | undefined;
11601
11695
  box?: string | undefined;
@@ -11634,7 +11728,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11634
11728
  birthdate?: string | undefined;
11635
11729
  gender?: "H" | "F" | "N/A" | undefined;
11636
11730
  addresses?: {
11637
- address_type: "main" | "delivery" | "invoice" | "other";
11731
+ address_type: "other" | "main" | "delivery" | "invoice";
11638
11732
  name?: string | undefined;
11639
11733
  number?: string | undefined;
11640
11734
  box?: string | undefined;
@@ -11950,7 +12044,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11950
12044
  last_updated_on?: string | undefined;
11951
12045
  confirmed_on?: string | undefined;
11952
12046
  cancelled_on?: string | undefined;
11953
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
12047
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
11954
12048
  discount_amount: number;
11955
12049
  untaxed_amount_without_fees: number;
11956
12050
  tax_amount_without_fees: number;
@@ -11982,6 +12076,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11982
12076
  }[] | undefined;
11983
12077
  other?: number | undefined;
11984
12078
  shipping_refunds?: {
12079
+ id: string;
12080
+ source_ref: {
12081
+ id?: string | undefined;
12082
+ model?: string | undefined;
12083
+ };
11985
12084
  untaxed_amount: number;
11986
12085
  tax_amount: number;
11987
12086
  total: number;
@@ -12017,6 +12116,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12017
12116
  gift_card?: boolean | undefined;
12018
12117
  }[];
12019
12118
  other_fees?: {
12119
+ id: string;
12120
+ source_ref: {
12121
+ id?: string | undefined;
12122
+ model?: string | undefined;
12123
+ };
12020
12124
  created_on?: string | undefined;
12021
12125
  type: "other" | "shipping";
12022
12126
  tax_rate: number;
@@ -12131,7 +12235,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12131
12235
  last_updated_on?: string | undefined;
12132
12236
  confirmed_on?: string | undefined;
12133
12237
  cancelled_on?: string | undefined;
12134
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
12238
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
12135
12239
  discount_amount: number;
12136
12240
  untaxed_amount_without_fees: number;
12137
12241
  tax_amount_without_fees: number;
@@ -12163,6 +12267,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12163
12267
  }[] | undefined;
12164
12268
  other?: number | undefined;
12165
12269
  shipping_refunds?: {
12270
+ id: string;
12271
+ source_ref: {
12272
+ id?: string | undefined;
12273
+ model?: string | undefined;
12274
+ };
12166
12275
  untaxed_amount: number;
12167
12276
  tax_amount: number;
12168
12277
  total: number;
@@ -12198,6 +12307,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12198
12307
  gift_card?: boolean | undefined;
12199
12308
  }[];
12200
12309
  other_fees?: {
12310
+ id: string;
12311
+ source_ref: {
12312
+ id?: string | undefined;
12313
+ model?: string | undefined;
12314
+ };
12201
12315
  created_on?: string | undefined;
12202
12316
  type: "other" | "shipping";
12203
12317
  tax_rate: number;
@@ -12271,7 +12385,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12271
12385
  last_updated_on?: string | undefined;
12272
12386
  confirmed_on?: string | undefined;
12273
12387
  cancelled_on?: string | undefined;
12274
- status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
12388
+ status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
12275
12389
  discount_amount: number;
12276
12390
  untaxed_amount_without_fees: number;
12277
12391
  tax_amount_without_fees: number;
@@ -12303,6 +12417,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12303
12417
  }[] | undefined;
12304
12418
  other?: number | undefined;
12305
12419
  shipping_refunds?: {
12420
+ id: string;
12421
+ source_ref: {
12422
+ id?: string | undefined;
12423
+ model?: string | undefined;
12424
+ };
12306
12425
  untaxed_amount: number;
12307
12426
  tax_amount: number;
12308
12427
  total: number;
@@ -12338,6 +12457,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12338
12457
  gift_card?: boolean | undefined;
12339
12458
  }[];
12340
12459
  other_fees?: {
12460
+ id: string;
12461
+ source_ref: {
12462
+ id?: string | undefined;
12463
+ model?: string | undefined;
12464
+ };
12341
12465
  created_on?: string | undefined;
12342
12466
  type: "other" | "shipping";
12343
12467
  tax_rate: number;