@chift/chift-nodejs 1.0.13 → 1.0.14

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.
@@ -102,7 +102,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
102
102
  total: number;
103
103
  }[] | undefined;
104
104
  }[]>;
105
- getCustomers(params: {}): import("../types/api").RequestData<{
105
+ getCustomers(params?: {
106
+ search?: string | undefined;
107
+ email?: string | undefined;
108
+ phone?: string | undefined;
109
+ } | undefined): import("../types/api").RequestData<{
106
110
  id: string;
107
111
  first_name?: string | undefined;
108
112
  last_name?: string | undefined;
@@ -227,12 +231,17 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
227
231
  loyalty?: number | undefined;
228
232
  birthdate?: string | undefined;
229
233
  }>;
230
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
234
+ getPaymentMethods(params?: {
235
+ location_id?: string | undefined;
236
+ } | undefined): import("../types/api").RequestData<{
231
237
  id: string;
232
238
  name: string;
233
239
  extra?: string | undefined;
234
240
  }[]>;
235
- getProductCategories(params: {}): import("../types/api").RequestData<{
241
+ getProductCategories(params?: {
242
+ location_id?: string | undefined;
243
+ only_parents?: "true" | "false" | undefined;
244
+ } | undefined): import("../types/api").RequestData<{
236
245
  id: string;
237
246
  source_ref: {
238
247
  id?: string | undefined;
@@ -241,7 +250,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
241
250
  name: string;
242
251
  parent_id?: string | undefined;
243
252
  }[]>;
244
- getProducts(params: {}): import("../types/api").RequestData<{
253
+ getProducts(params?: {
254
+ location_id?: string | undefined;
255
+ } | undefined): import("../types/api").RequestData<{
245
256
  id: string;
246
257
  categories?: string[] | undefined;
247
258
  name: string;
@@ -265,7 +276,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
265
276
  total: number;
266
277
  }[] | undefined;
267
278
  }>;
268
- getClosure(date: string, params: {
279
+ getClosure(date: string, params?: {
269
280
  location_id?: string | undefined;
270
281
  } | undefined): import("../types/api").RequestData<{
271
282
  date: string;
@@ -334,7 +345,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
334
345
  total: number;
335
346
  }[] | undefined;
336
347
  }>;
337
- getAccountingCategories(params: {}): import("../types/api").RequestData<{
348
+ getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
338
349
  id: string;
339
350
  name: string;
340
351
  id_parent?: string | undefined;
@@ -344,19 +355,15 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
344
355
  }[]>;
345
356
  }>;
346
357
  accounting: import("../types/api").ApiFor<{
347
- getAnalyticPlans(params: {
358
+ getAnalyticPlans(params?: {
348
359
  folder_id?: string | undefined;
349
- page?: number | undefined;
350
- size?: number | undefined;
351
360
  } | undefined): import("../types/api").RequestData<{
352
361
  id: string;
353
362
  name: string;
354
363
  active?: boolean | undefined;
355
364
  }[]>;
356
- getClients(params: {
365
+ getClients(params?: {
357
366
  folder_id?: string | undefined;
358
- page?: number | undefined;
359
- size?: number | undefined;
360
367
  } | undefined): import("../types/api").RequestData<{
361
368
  external_reference?: string | undefined;
362
369
  first_name?: string | undefined;
@@ -426,7 +433,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
426
433
  country: string;
427
434
  }[];
428
435
  account_number?: string | undefined;
429
- }, params: {
436
+ }, params?: {
430
437
  force_merge?: string | undefined;
431
438
  folder_id?: string | undefined;
432
439
  } | undefined): import("../types/api").RequestData<{
@@ -465,7 +472,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
465
472
  company_number?: string | undefined;
466
473
  id?: string | undefined;
467
474
  }>;
468
- getClient(clientId: string, params: {
475
+ getClient(clientId: string, params?: {
469
476
  folder_id?: string | undefined;
470
477
  } | undefined): import("../types/api").RequestData<{
471
478
  external_reference?: string | undefined;
@@ -535,7 +542,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
535
542
  postal_code?: string | undefined;
536
543
  country?: string | undefined;
537
544
  }[] | undefined;
538
- }, params: {
545
+ }, params?: {
539
546
  folder_id?: string | undefined;
540
547
  } | undefined): import("../types/api").RequestData<{
541
548
  external_reference?: string | undefined;
@@ -573,10 +580,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
573
580
  company_number?: string | undefined;
574
581
  id?: string | undefined;
575
582
  }>;
576
- getSuppliers(params: {
583
+ getSuppliers(params?: {
577
584
  folder_id?: string | undefined;
578
- page?: number | undefined;
579
- size?: number | undefined;
580
585
  } | undefined): import("../types/api").RequestData<{
581
586
  external_reference?: string | undefined;
582
587
  first_name?: string | undefined;
@@ -646,7 +651,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
646
651
  country: string;
647
652
  }[];
648
653
  account_number?: string | undefined;
649
- }, params: {
654
+ }, params?: {
650
655
  force_merge?: string | undefined;
651
656
  folder_id?: string | undefined;
652
657
  } | undefined): import("../types/api").RequestData<{
@@ -685,7 +690,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
685
690
  company_number?: string | undefined;
686
691
  id?: string | undefined;
687
692
  }>;
688
- getSupplier(supplierId: string, params: {
693
+ getSupplier(supplierId: string, params?: {
689
694
  folder_id?: string | undefined;
690
695
  } | undefined): import("../types/api").RequestData<{
691
696
  external_reference?: string | undefined;
@@ -755,7 +760,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
755
760
  postal_code?: string | undefined;
756
761
  country?: string | undefined;
757
762
  }[] | undefined;
758
- }, params: {
763
+ }, params?: {
759
764
  folder_id?: string | undefined;
760
765
  } | undefined): import("../types/api").RequestData<{
761
766
  external_reference?: string | undefined;
@@ -840,7 +845,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
840
845
  tax_code: string;
841
846
  analytic_account?: string | undefined;
842
847
  }[];
843
- }, params: {
848
+ }, params?: {
844
849
  force_financial_period?: string | undefined;
845
850
  regroup_lines?: "true" | "false" | undefined;
846
851
  folder_id?: string | undefined;
@@ -942,7 +947,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
942
947
  }[];
943
948
  }[] | undefined;
944
949
  }[];
945
- }, params: {
950
+ }, params?: {
946
951
  force_financial_period?: string | undefined;
947
952
  regroup_lines?: "true" | "false" | undefined;
948
953
  folder_id?: string | undefined;
@@ -997,7 +1002,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
997
1002
  }[] | undefined;
998
1003
  }[];
999
1004
  }>;
1000
- getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
1005
+ getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
1006
+ date_from?: string | undefined;
1007
+ date_to?: string | undefined;
1008
+ folder_id?: string | undefined;
1009
+ journal_ids?: string | undefined;
1010
+ include_payments?: "true" | "false" | undefined;
1011
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
1012
+ } | undefined): import("../types/api").RequestData<{
1001
1013
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1002
1014
  invoice_number?: string | undefined;
1003
1015
  currency: string;
@@ -1042,7 +1054,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1042
1054
  analytic_account?: string | undefined;
1043
1055
  }[];
1044
1056
  }[]>;
1045
- getInvoice(invoiceId: string, params: {
1057
+ getInvoice(invoiceId: string, params?: {
1046
1058
  include_payments?: "true" | "false" | undefined;
1047
1059
  folder_id?: string | undefined;
1048
1060
  } | undefined): import("../types/api").RequestData<{
@@ -1090,7 +1102,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1090
1102
  analytic_account?: string | undefined;
1091
1103
  }[];
1092
1104
  }>;
1093
- getInvoiceWithMultiplePlans(invoiceId: string, params: {
1105
+ getInvoiceWithMultiplePlans(invoiceId: string, params?: {
1094
1106
  include_payments?: "true" | "false" | undefined;
1095
1107
  folder_id?: string | undefined;
1096
1108
  } | undefined): import("../types/api").RequestData<{
@@ -1144,7 +1156,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1144
1156
  }[] | undefined;
1145
1157
  }[];
1146
1158
  }>;
1147
- getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
1159
+ getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
1160
+ date_from?: string | undefined;
1161
+ date_to?: string | undefined;
1162
+ folder_id?: string | undefined;
1163
+ journal_ids?: string | undefined;
1164
+ include_payments?: "true" | "false" | undefined;
1165
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
1166
+ } | undefined): import("../types/api").RequestData<{
1148
1167
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1149
1168
  invoice_number?: string | undefined;
1150
1169
  currency: string;
@@ -1200,7 +1219,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1200
1219
  code: string;
1201
1220
  name: string;
1202
1221
  currency: string;
1203
- }, params: {
1222
+ }, params?: {
1204
1223
  folder_id?: string | undefined;
1205
1224
  } | undefined): import("../types/api").RequestData<{
1206
1225
  id: string;
@@ -1212,10 +1231,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1212
1231
  credit?: number | undefined;
1213
1232
  debit?: number | undefined;
1214
1233
  }>;
1215
- getAnalyticAccounts(params: {
1234
+ getAnalyticAccounts(params?: {
1216
1235
  folder_id?: string | undefined;
1217
- page?: number | undefined;
1218
- size?: number | undefined;
1219
1236
  } | undefined): import("../types/api").RequestData<{
1220
1237
  id: string;
1221
1238
  active: boolean;
@@ -1231,7 +1248,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1231
1248
  code: string;
1232
1249
  name: string;
1233
1250
  currency: string;
1234
- }, params: {
1251
+ }, params?: {
1235
1252
  folder_id?: string | undefined;
1236
1253
  } | undefined): import("../types/api").RequestData<{
1237
1254
  id: string;
@@ -1244,7 +1261,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1244
1261
  debit?: number | undefined;
1245
1262
  analytic_plan: string;
1246
1263
  }>;
1247
- getAnalyticAccount(analytic_account_id: string, params: {
1264
+ getAnalyticAccount(analytic_account_id: string, params?: {
1248
1265
  folder_id?: string | undefined;
1249
1266
  } | undefined): import("../types/api").RequestData<{
1250
1267
  id: string;
@@ -1261,7 +1278,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1261
1278
  code?: string | undefined;
1262
1279
  name?: string | undefined;
1263
1280
  currency?: string | undefined;
1264
- }, params: {
1281
+ }, params?: {
1265
1282
  folder_id?: string | undefined;
1266
1283
  } | undefined): import("../types/api").RequestData<{
1267
1284
  id: string;
@@ -1273,7 +1290,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1273
1290
  credit?: number | undefined;
1274
1291
  debit?: number | undefined;
1275
1292
  }>;
1276
- getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
1293
+ getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
1277
1294
  folder_id?: string | undefined;
1278
1295
  } | undefined): import("../types/api").RequestData<{
1279
1296
  id: string;
@@ -1291,7 +1308,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1291
1308
  code?: string | undefined;
1292
1309
  name?: string | undefined;
1293
1310
  currency?: string | undefined;
1294
- }, params: {
1311
+ }, params?: {
1295
1312
  folder_id?: string | undefined;
1296
1313
  } | undefined): import("../types/api").RequestData<{
1297
1314
  id: string;
@@ -1304,10 +1321,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1304
1321
  debit?: number | undefined;
1305
1322
  analytic_plan: string;
1306
1323
  }>;
1307
- getAnalyticAccountsWithMultiplePlans(params: {
1324
+ getAnalyticAccountsWithMultiplePlans(params?: {
1308
1325
  folder_id?: string | undefined;
1309
- page?: number | undefined;
1310
- size?: number | undefined;
1311
1326
  } | undefined): import("../types/api").RequestData<{
1312
1327
  id: string;
1313
1328
  active: boolean;
@@ -1388,7 +1403,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1388
1403
  }[] | undefined;
1389
1404
  }[] | undefined;
1390
1405
  }[]>;
1391
- getPaymentsByInvoiceId(invoice_id: string, params: {
1406
+ getPaymentsByInvoiceId(invoice_id: string, params?: {
1392
1407
  folder_id?: string | undefined;
1393
1408
  page?: number | undefined;
1394
1409
  size?: number | undefined;
@@ -1406,20 +1421,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1406
1421
  communication?: string | undefined;
1407
1422
  matching_number?: string | undefined;
1408
1423
  }[]>;
1409
- getJournals(params: {
1424
+ getJournals(params?: {
1410
1425
  folder_id?: string | undefined;
1411
- page?: number | undefined;
1412
- size?: number | undefined;
1413
1426
  } | undefined): import("../types/api").RequestData<{
1414
1427
  id: string;
1415
1428
  code?: string | undefined;
1416
1429
  name: string;
1417
1430
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1418
1431
  }[]>;
1419
- getVatCodes(params: {
1432
+ getVatCodes(params?: {
1420
1433
  folder_id?: string | undefined;
1421
- page?: number | undefined;
1422
- size?: number | undefined;
1423
1434
  } | undefined): import("../types/api").RequestData<{
1424
1435
  id: string;
1425
1436
  code?: string | undefined;
@@ -1430,7 +1441,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1430
1441
  deductible_account?: string | undefined;
1431
1442
  payable_account?: string | undefined;
1432
1443
  }[]>;
1433
- getMiscOperations(params: {}): import("../types/api").RequestData<{
1444
+ getMiscOperations(params?: {
1445
+ date_from?: string | undefined;
1446
+ date_to?: string | undefined;
1447
+ folder_id?: string | undefined;
1448
+ journal_ids?: string | undefined;
1449
+ } | undefined): import("../types/api").RequestData<{
1434
1450
  operation_number?: string | undefined;
1435
1451
  currency: string;
1436
1452
  currency_exchange_rate?: number | undefined;
@@ -1464,7 +1480,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1464
1480
  operation_date: string;
1465
1481
  journal_id?: string | undefined;
1466
1482
  status?: "draft" | "posted" | undefined;
1467
- }, params: {
1483
+ }, params?: {
1468
1484
  folder_id?: string | undefined;
1469
1485
  } | undefined): import("../types/api").RequestData<{
1470
1486
  operation_number?: string | undefined;
@@ -1484,7 +1500,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1484
1500
  status: "cancelled" | "draft" | "posted" | "matched";
1485
1501
  id: string;
1486
1502
  }>;
1487
- getMiscOperation(operation_id: string, params: {
1503
+ getMiscOperation(operation_id: string, params?: {
1488
1504
  folder_id?: string | undefined;
1489
1505
  } | undefined): import("../types/api").RequestData<{
1490
1506
  operation_number?: string | undefined;
@@ -1506,24 +1522,25 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1506
1522
  }>;
1507
1523
  attachPDF(invoice_id: string, attachment: {
1508
1524
  base64_string: string;
1509
- }, params: {
1525
+ }, params?: {
1510
1526
  overwrite_existing?: "true" | "false" | undefined;
1511
1527
  folder_id?: string | undefined;
1512
1528
  } | undefined): import("../types/api").RequestData<{
1513
1529
  content: {
1514
- "application/json": unknown;
1530
+ 'application/json': unknown;
1515
1531
  };
1516
1532
  }>;
1517
1533
  getAttachments(params: {
1534
+ folder_id?: string | undefined;
1518
1535
  type: "invoice" | "entry";
1519
1536
  document_id: string;
1520
- folder_id?: string | undefined;
1521
- page?: number | undefined;
1522
- size?: number | undefined;
1523
1537
  }): import("../types/api").RequestData<{
1524
1538
  base64_string: string;
1525
1539
  }[]>;
1526
- getChartOfAccounts(params: {}): import("../types/api").RequestData<{
1540
+ getChartOfAccounts(params?: {
1541
+ classes?: string | undefined;
1542
+ folder_id?: string | undefined;
1543
+ } | undefined): import("../types/api").RequestData<{
1527
1544
  number: string;
1528
1545
  name: string;
1529
1546
  active?: boolean | undefined;
@@ -1533,10 +1550,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1533
1550
  accounts: string[];
1534
1551
  start?: string | undefined;
1535
1552
  end: string;
1536
- }, params: {
1553
+ }, params?: {
1537
1554
  folder_id?: string | undefined;
1538
- page?: number | undefined;
1539
- size?: number | undefined;
1540
1555
  } | undefined): import("../types/api").RequestData<{
1541
1556
  account_number: string;
1542
1557
  account_name?: string | undefined;
@@ -1544,10 +1559,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1544
1559
  credit: number;
1545
1560
  balance: number;
1546
1561
  }[]>;
1547
- getEmployees(params: {
1562
+ getEmployees(params?: {
1548
1563
  folder_id?: string | undefined;
1549
- page?: number | undefined;
1550
- size?: number | undefined;
1551
1564
  } | undefined): import("../types/api").RequestData<{
1552
1565
  id: string;
1553
1566
  name: string;
@@ -1563,8 +1576,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1563
1576
  }[]>;
1564
1577
  getOutstandings(params: {
1565
1578
  folder_id?: string | undefined;
1566
- unposted_allowed: "true" | "false";
1567
1579
  type: "supplier" | "client";
1580
+ unposted_allowed: "true" | "false";
1568
1581
  }): import("../types/api").RequestData<{
1569
1582
  id: string;
1570
1583
  number?: string | undefined;
@@ -1597,7 +1610,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1597
1610
  description?: string | undefined;
1598
1611
  }[];
1599
1612
  pdf?: string | undefined;
1600
- }, params: {
1613
+ }, params?: {
1601
1614
  financial_counterpart_account?: string | undefined;
1602
1615
  folder_id?: string | undefined;
1603
1616
  } | undefined): import("../types/api").RequestData<{
@@ -1631,7 +1644,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1631
1644
  description?: string | undefined;
1632
1645
  }[];
1633
1646
  pdf?: string | undefined;
1634
- }, params: {
1647
+ }, params?: {
1635
1648
  financial_counterpart_account?: string | undefined;
1636
1649
  folder_id?: string | undefined;
1637
1650
  } | undefined): import("../types/api").RequestData<{
@@ -1730,7 +1743,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1730
1743
  }[];
1731
1744
  pdf?: string | undefined;
1732
1745
  posted?: boolean | undefined;
1733
- }, params: {
1746
+ }, params?: {
1734
1747
  folder_id?: string | undefined;
1735
1748
  } | undefined): import("../types/api").RequestData<{
1736
1749
  reference?: string | undefined;
@@ -1765,7 +1778,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1765
1778
  matchEntries(body: {
1766
1779
  entries: string[];
1767
1780
  partner_id: string;
1768
- }, params: {
1781
+ }, params?: {
1769
1782
  folder_id?: string | undefined;
1770
1783
  } | undefined): import("../types/api").RequestData<{
1771
1784
  matching_number: string;
@@ -1778,14 +1791,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1778
1791
  }[]>;
1779
1792
  }>;
1780
1793
  invoicing: import("../types/api").ApiFor<{
1781
- getInvoices(params: {
1782
- invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
1783
- payment_status?: "all" | "paid" | "unpaid" | undefined;
1794
+ getInvoices(params?: {
1784
1795
  date_from?: string | undefined;
1785
1796
  date_to?: string | undefined;
1797
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
1798
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
1786
1799
  updated_after?: string | undefined;
1787
- page?: number | undefined;
1788
- size?: number | undefined;
1789
1800
  } | undefined): import("../types/api").RequestData<{
1790
1801
  id: string;
1791
1802
  source_ref: {
@@ -1829,7 +1840,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1829
1840
  outstanding_amount?: number | undefined;
1830
1841
  last_updated_on?: string | undefined;
1831
1842
  }[]>;
1832
- getInvoiceById(invoiceId: string, params: {
1843
+ getInvoiceById(invoiceId: string, params?: {
1833
1844
  include_pdf?: "true" | "false" | undefined;
1834
1845
  } | undefined): import("../types/api").RequestData<{
1835
1846
  id: string;
@@ -2091,8 +2102,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2091
2102
  }>;
2092
2103
  getContacts(params?: {
2093
2104
  contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
2094
- page?: number | undefined;
2095
- size?: number | undefined;
2096
2105
  } | undefined): import("../types/api").RequestData<{
2097
2106
  id: string;
2098
2107
  source_ref: {
@@ -2503,7 +2512,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2503
2512
  id: string;
2504
2513
  name: string;
2505
2514
  }[]>;
2506
- getOrders(params: {}): import("../types/api").RequestData<{
2515
+ getOrders(params?: {
2516
+ date_from?: string | undefined;
2517
+ date_to?: string | undefined;
2518
+ updated_after?: string | undefined;
2519
+ include_detailed_refunds?: "true" | "false" | undefined;
2520
+ } | undefined): import("../types/api").RequestData<{
2507
2521
  id: string;
2508
2522
  source_ref: {
2509
2523
  id?: string | undefined;
@@ -2994,7 +3008,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2994
3008
  name?: string | undefined;
2995
3009
  }[] | undefined;
2996
3010
  }>;
2997
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
3011
+ getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
2998
3012
  id: string;
2999
3013
  source_ref: {
3000
3014
  id?: string | undefined;
@@ -3003,7 +3017,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
3003
3017
  name: string;
3004
3018
  active: boolean;
3005
3019
  }[]>;
3006
- getProductCategories(params: {}): import("../types/api").RequestData<{
3020
+ getProductCategories(params?: {
3021
+ only_parents?: "true" | "false" | undefined;
3022
+ } | undefined): import("../types/api").RequestData<{
3007
3023
  id: string;
3008
3024
  source_ref: {
3009
3025
  id?: string | undefined;
@@ -3012,7 +3028,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
3012
3028
  name: string;
3013
3029
  parent_id?: string | undefined;
3014
3030
  }[]>;
3015
- getTaxes(params: {}): import("../types/api").RequestData<{
3031
+ getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
3016
3032
  id: string;
3017
3033
  source_ref: {
3018
3034
  id?: string | undefined;
@@ -3022,7 +3038,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
3022
3038
  rate: number;
3023
3039
  country?: string | undefined;
3024
3040
  }[]>;
3025
- getCountries(params: {}): import("../types/api").RequestData<{
3041
+ getCountries(params?: {} | undefined): import("../types/api").RequestData<{
3026
3042
  code: string;
3027
3043
  name: string;
3028
3044
  }[]>;
@@ -3111,5 +3127,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
3111
3127
  }[]>;
3112
3128
  deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<SimpleResponseModel>;
3113
3129
  logData: (logs: ConsumerLog[]) => Promise<SimpleResponseModel>;
3130
+ setConnectionId: (connectionId: string) => Promise<void>;
3131
+ setIntegrationId: (integrationId: string) => Promise<void>;
3114
3132
  };
3115
3133
  export { Consumer };
@@ -28,6 +28,12 @@ const Consumer = (internalApi, body) => {
28
28
  const invoicing = (0, openapi_1.createApiFor)(invoicing_1.invoicingFactory, _internalApi, data.name, consumerId);
29
29
  const ecommerce = (0, openapi_1.createApiFor)(ecommerce_1.ecommerceFactory, _internalApi, data.name, consumerId);
30
30
  const custom = (0, openapi_1.createApiFor)(custom_1.customFactory, _internalApi, data.name, consumerId);
31
+ const setConnectionId = (connectionId) => __awaiter(void 0, void 0, void 0, function* () {
32
+ _internalApi.connectionId = connectionId;
33
+ });
34
+ const setIntegrationId = (integrationId) => __awaiter(void 0, void 0, void 0, function* () {
35
+ _internalApi.integrationId = integrationId;
36
+ });
31
37
  const getConnections = () => __awaiter(void 0, void 0, void 0, function* () {
32
38
  const { data, } = yield _internalApi.get(`/consumers/${consumerId}/connections`);
33
39
  return data;
@@ -123,6 +129,8 @@ const Consumer = (internalApi, body) => {
123
129
  updateDataStoreData,
124
130
  deleteDataStoreData,
125
131
  logData,
132
+ setConnectionId,
133
+ setIntegrationId,
126
134
  };
127
135
  };
128
136
  exports.Consumer = Consumer;