@chift/chift-nodejs 1.0.11 → 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.
@@ -123,7 +123,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
123
123
  total: number;
124
124
  }[] | undefined;
125
125
  }[]>;
126
- getCustomers(params: {}): import("../types/api").RequestData<{
126
+ getCustomers(params?: {
127
+ search?: string | undefined;
128
+ email?: string | undefined;
129
+ phone?: string | undefined;
130
+ } | undefined): import("../types/api").RequestData<{
127
131
  id: string;
128
132
  first_name?: string | undefined;
129
133
  last_name?: string | undefined;
@@ -248,12 +252,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
248
252
  loyalty?: number | undefined;
249
253
  birthdate?: string | undefined;
250
254
  }>;
251
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
255
+ getPaymentMethods(params?: {
256
+ location_id?: string | undefined;
257
+ } | undefined): import("../types/api").RequestData<{
252
258
  id: string;
253
259
  name: string;
254
260
  extra?: string | undefined;
255
261
  }[]>;
256
- getProductCategories(params: {}): import("../types/api").RequestData<{
262
+ getProductCategories(params?: {
263
+ location_id?: string | undefined;
264
+ only_parents?: "true" | "false" | undefined;
265
+ } | undefined): import("../types/api").RequestData<{
257
266
  id: string;
258
267
  source_ref: {
259
268
  id?: string | undefined;
@@ -262,7 +271,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
262
271
  name: string;
263
272
  parent_id?: string | undefined;
264
273
  }[]>;
265
- getProducts(params: {}): import("../types/api").RequestData<{
274
+ getProducts(params?: {
275
+ location_id?: string | undefined;
276
+ } | undefined): import("../types/api").RequestData<{
266
277
  id: string;
267
278
  categories?: string[] | undefined;
268
279
  name: string;
@@ -286,7 +297,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
286
297
  total: number;
287
298
  }[] | undefined;
288
299
  }>;
289
- getClosure(date: string, params: {
300
+ getClosure(date: string, params?: {
290
301
  location_id?: string | undefined;
291
302
  } | undefined): import("../types/api").RequestData<{
292
303
  date: string;
@@ -355,7 +366,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
355
366
  total: number;
356
367
  }[] | undefined;
357
368
  }>;
358
- getAccountingCategories(params: {}): import("../types/api").RequestData<{
369
+ getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
359
370
  id: string;
360
371
  name: string;
361
372
  id_parent?: string | undefined;
@@ -365,19 +376,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
365
376
  }[]>;
366
377
  }>;
367
378
  accounting: import("../types/api").ApiFor<{
368
- getAnalyticPlans(params: {
379
+ getAnalyticPlans(params?: {
369
380
  folder_id?: string | undefined;
370
- page?: number | undefined;
371
- size?: number | undefined;
372
381
  } | undefined): import("../types/api").RequestData<{
373
382
  id: string;
374
383
  name: string;
375
384
  active?: boolean | undefined;
376
385
  }[]>;
377
- getClients(params: {
386
+ getClients(params?: {
378
387
  folder_id?: string | undefined;
379
- page?: number | undefined;
380
- size?: number | undefined;
381
388
  } | undefined): import("../types/api").RequestData<{
382
389
  external_reference?: string | undefined;
383
390
  first_name?: string | undefined;
@@ -447,7 +454,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
447
454
  country: string;
448
455
  }[];
449
456
  account_number?: string | undefined;
450
- }, params: {
457
+ }, params?: {
451
458
  force_merge?: string | undefined;
452
459
  folder_id?: string | undefined;
453
460
  } | undefined): import("../types/api").RequestData<{
@@ -486,7 +493,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
486
493
  company_number?: string | undefined;
487
494
  id?: string | undefined;
488
495
  }>;
489
- getClient(clientId: string, params: {
496
+ getClient(clientId: string, params?: {
490
497
  folder_id?: string | undefined;
491
498
  } | undefined): import("../types/api").RequestData<{
492
499
  external_reference?: string | undefined;
@@ -556,7 +563,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
556
563
  postal_code?: string | undefined;
557
564
  country?: string | undefined;
558
565
  }[] | undefined;
559
- }, params: {
566
+ }, params?: {
560
567
  folder_id?: string | undefined;
561
568
  } | undefined): import("../types/api").RequestData<{
562
569
  external_reference?: string | undefined;
@@ -594,10 +601,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
594
601
  company_number?: string | undefined;
595
602
  id?: string | undefined;
596
603
  }>;
597
- getSuppliers(params: {
604
+ getSuppliers(params?: {
598
605
  folder_id?: string | undefined;
599
- page?: number | undefined;
600
- size?: number | undefined;
601
606
  } | undefined): import("../types/api").RequestData<{
602
607
  external_reference?: string | undefined;
603
608
  first_name?: string | undefined;
@@ -667,7 +672,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
667
672
  country: string;
668
673
  }[];
669
674
  account_number?: string | undefined;
670
- }, params: {
675
+ }, params?: {
671
676
  force_merge?: string | undefined;
672
677
  folder_id?: string | undefined;
673
678
  } | undefined): import("../types/api").RequestData<{
@@ -706,7 +711,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
706
711
  company_number?: string | undefined;
707
712
  id?: string | undefined;
708
713
  }>;
709
- getSupplier(supplierId: string, params: {
714
+ getSupplier(supplierId: string, params?: {
710
715
  folder_id?: string | undefined;
711
716
  } | undefined): import("../types/api").RequestData<{
712
717
  external_reference?: string | undefined;
@@ -776,7 +781,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
776
781
  postal_code?: string | undefined;
777
782
  country?: string | undefined;
778
783
  }[] | undefined;
779
- }, params: {
784
+ }, params?: {
780
785
  folder_id?: string | undefined;
781
786
  } | undefined): import("../types/api").RequestData<{
782
787
  external_reference?: string | undefined;
@@ -861,7 +866,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
861
866
  tax_code: string;
862
867
  analytic_account?: string | undefined;
863
868
  }[];
864
- }, params: {
869
+ }, params?: {
865
870
  force_financial_period?: string | undefined;
866
871
  regroup_lines?: "true" | "false" | undefined;
867
872
  folder_id?: string | undefined;
@@ -963,7 +968,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
963
968
  }[];
964
969
  }[] | undefined;
965
970
  }[];
966
- }, params: {
971
+ }, params?: {
967
972
  force_financial_period?: string | undefined;
968
973
  regroup_lines?: "true" | "false" | undefined;
969
974
  folder_id?: string | undefined;
@@ -1018,7 +1023,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
1018
1023
  }[] | undefined;
1019
1024
  }[];
1020
1025
  }>;
1021
- getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
1026
+ getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
1027
+ date_from?: string | undefined;
1028
+ date_to?: string | undefined;
1029
+ folder_id?: string | undefined;
1030
+ journal_ids?: string | undefined;
1031
+ include_payments?: "true" | "false" | undefined;
1032
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
1033
+ } | undefined): import("../types/api").RequestData<{
1022
1034
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1023
1035
  invoice_number?: string | undefined;
1024
1036
  currency: string;
@@ -1063,7 +1075,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1063
1075
  analytic_account?: string | undefined;
1064
1076
  }[];
1065
1077
  }[]>;
1066
- getInvoice(invoiceId: string, params: {
1078
+ getInvoice(invoiceId: string, params?: {
1067
1079
  include_payments?: "true" | "false" | undefined;
1068
1080
  folder_id?: string | undefined;
1069
1081
  } | undefined): import("../types/api").RequestData<{
@@ -1111,7 +1123,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1111
1123
  analytic_account?: string | undefined;
1112
1124
  }[];
1113
1125
  }>;
1114
- getInvoiceWithMultiplePlans(invoiceId: string, params: {
1126
+ getInvoiceWithMultiplePlans(invoiceId: string, params?: {
1115
1127
  include_payments?: "true" | "false" | undefined;
1116
1128
  folder_id?: string | undefined;
1117
1129
  } | undefined): import("../types/api").RequestData<{
@@ -1165,7 +1177,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
1165
1177
  }[] | undefined;
1166
1178
  }[];
1167
1179
  }>;
1168
- getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
1180
+ getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
1181
+ date_from?: string | undefined;
1182
+ date_to?: string | undefined;
1183
+ folder_id?: string | undefined;
1184
+ journal_ids?: string | undefined;
1185
+ include_payments?: "true" | "false" | undefined;
1186
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
1187
+ } | undefined): import("../types/api").RequestData<{
1169
1188
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1170
1189
  invoice_number?: string | undefined;
1171
1190
  currency: string;
@@ -1221,7 +1240,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1221
1240
  code: string;
1222
1241
  name: string;
1223
1242
  currency: string;
1224
- }, params: {
1243
+ }, params?: {
1225
1244
  folder_id?: string | undefined;
1226
1245
  } | undefined): import("../types/api").RequestData<{
1227
1246
  id: string;
@@ -1233,10 +1252,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
1233
1252
  credit?: number | undefined;
1234
1253
  debit?: number | undefined;
1235
1254
  }>;
1236
- getAnalyticAccounts(params: {
1255
+ getAnalyticAccounts(params?: {
1237
1256
  folder_id?: string | undefined;
1238
- page?: number | undefined;
1239
- size?: number | undefined;
1240
1257
  } | undefined): import("../types/api").RequestData<{
1241
1258
  id: string;
1242
1259
  active: boolean;
@@ -1252,7 +1269,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1252
1269
  code: string;
1253
1270
  name: string;
1254
1271
  currency: string;
1255
- }, params: {
1272
+ }, params?: {
1256
1273
  folder_id?: string | undefined;
1257
1274
  } | undefined): import("../types/api").RequestData<{
1258
1275
  id: string;
@@ -1265,7 +1282,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1265
1282
  debit?: number | undefined;
1266
1283
  analytic_plan: string;
1267
1284
  }>;
1268
- getAnalyticAccount(analytic_account_id: string, params: {
1285
+ getAnalyticAccount(analytic_account_id: string, params?: {
1269
1286
  folder_id?: string | undefined;
1270
1287
  } | undefined): import("../types/api").RequestData<{
1271
1288
  id: string;
@@ -1282,7 +1299,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1282
1299
  code?: string | undefined;
1283
1300
  name?: string | undefined;
1284
1301
  currency?: string | undefined;
1285
- }, params: {
1302
+ }, params?: {
1286
1303
  folder_id?: string | undefined;
1287
1304
  } | undefined): import("../types/api").RequestData<{
1288
1305
  id: string;
@@ -1294,7 +1311,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1294
1311
  credit?: number | undefined;
1295
1312
  debit?: number | undefined;
1296
1313
  }>;
1297
- getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
1314
+ getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
1298
1315
  folder_id?: string | undefined;
1299
1316
  } | undefined): import("../types/api").RequestData<{
1300
1317
  id: string;
@@ -1312,7 +1329,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1312
1329
  code?: string | undefined;
1313
1330
  name?: string | undefined;
1314
1331
  currency?: string | undefined;
1315
- }, params: {
1332
+ }, params?: {
1316
1333
  folder_id?: string | undefined;
1317
1334
  } | undefined): import("../types/api").RequestData<{
1318
1335
  id: string;
@@ -1325,10 +1342,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
1325
1342
  debit?: number | undefined;
1326
1343
  analytic_plan: string;
1327
1344
  }>;
1328
- getAnalyticAccountsWithMultiplePlans(params: {
1345
+ getAnalyticAccountsWithMultiplePlans(params?: {
1329
1346
  folder_id?: string | undefined;
1330
- page?: number | undefined;
1331
- size?: number | undefined;
1332
1347
  } | undefined): import("../types/api").RequestData<{
1333
1348
  id: string;
1334
1349
  active: boolean;
@@ -1409,7 +1424,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1409
1424
  }[] | undefined;
1410
1425
  }[] | undefined;
1411
1426
  }[]>;
1412
- getPaymentsByInvoiceId(invoice_id: string, params: {
1427
+ getPaymentsByInvoiceId(invoice_id: string, params?: {
1413
1428
  folder_id?: string | undefined;
1414
1429
  page?: number | undefined;
1415
1430
  size?: number | undefined;
@@ -1427,20 +1442,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
1427
1442
  communication?: string | undefined;
1428
1443
  matching_number?: string | undefined;
1429
1444
  }[]>;
1430
- getJournals(params: {
1445
+ getJournals(params?: {
1431
1446
  folder_id?: string | undefined;
1432
- page?: number | undefined;
1433
- size?: number | undefined;
1434
1447
  } | undefined): import("../types/api").RequestData<{
1435
1448
  id: string;
1436
1449
  code?: string | undefined;
1437
1450
  name: string;
1438
1451
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1439
1452
  }[]>;
1440
- getVatCodes(params: {
1453
+ getVatCodes(params?: {
1441
1454
  folder_id?: string | undefined;
1442
- page?: number | undefined;
1443
- size?: number | undefined;
1444
1455
  } | undefined): import("../types/api").RequestData<{
1445
1456
  id: string;
1446
1457
  code?: string | undefined;
@@ -1451,7 +1462,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
1451
1462
  deductible_account?: string | undefined;
1452
1463
  payable_account?: string | undefined;
1453
1464
  }[]>;
1454
- getMiscOperations(params: {}): import("../types/api").RequestData<{
1465
+ getMiscOperations(params?: {
1466
+ date_from?: string | undefined;
1467
+ date_to?: string | undefined;
1468
+ folder_id?: string | undefined;
1469
+ journal_ids?: string | undefined;
1470
+ } | undefined): import("../types/api").RequestData<{
1455
1471
  operation_number?: string | undefined;
1456
1472
  currency: string;
1457
1473
  currency_exchange_rate?: number | undefined;
@@ -1485,7 +1501,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1485
1501
  operation_date: string;
1486
1502
  journal_id?: string | undefined;
1487
1503
  status?: "draft" | "posted" | undefined;
1488
- }, params: {
1504
+ }, params?: {
1489
1505
  folder_id?: string | undefined;
1490
1506
  } | undefined): import("../types/api").RequestData<{
1491
1507
  operation_number?: string | undefined;
@@ -1505,7 +1521,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1505
1521
  status: "cancelled" | "draft" | "posted" | "matched";
1506
1522
  id: string;
1507
1523
  }>;
1508
- getMiscOperation(operation_id: string, params: {
1524
+ getMiscOperation(operation_id: string, params?: {
1509
1525
  folder_id?: string | undefined;
1510
1526
  } | undefined): import("../types/api").RequestData<{
1511
1527
  operation_number?: string | undefined;
@@ -1527,24 +1543,25 @@ declare const Consumers: (internalApi: InternalAPI) => {
1527
1543
  }>;
1528
1544
  attachPDF(invoice_id: string, attachment: {
1529
1545
  base64_string: string;
1530
- }, params: {
1546
+ }, params?: {
1531
1547
  overwrite_existing?: "true" | "false" | undefined;
1532
1548
  folder_id?: string | undefined;
1533
1549
  } | undefined): import("../types/api").RequestData<{
1534
1550
  content: {
1535
- "application/json": unknown;
1551
+ 'application/json': unknown;
1536
1552
  };
1537
1553
  }>;
1538
1554
  getAttachments(params: {
1555
+ folder_id?: string | undefined;
1539
1556
  type: "invoice" | "entry";
1540
1557
  document_id: string;
1541
- folder_id?: string | undefined;
1542
- page?: number | undefined;
1543
- size?: number | undefined;
1544
1558
  }): import("../types/api").RequestData<{
1545
1559
  base64_string: string;
1546
1560
  }[]>;
1547
- getChartOfAccounts(params: {}): import("../types/api").RequestData<{
1561
+ getChartOfAccounts(params?: {
1562
+ classes?: string | undefined;
1563
+ folder_id?: string | undefined;
1564
+ } | undefined): import("../types/api").RequestData<{
1548
1565
  number: string;
1549
1566
  name: string;
1550
1567
  active?: boolean | undefined;
@@ -1554,10 +1571,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
1554
1571
  accounts: string[];
1555
1572
  start?: string | undefined;
1556
1573
  end: string;
1557
- }, params: {
1574
+ }, params?: {
1558
1575
  folder_id?: string | undefined;
1559
- page?: number | undefined;
1560
- size?: number | undefined;
1561
1576
  } | undefined): import("../types/api").RequestData<{
1562
1577
  account_number: string;
1563
1578
  account_name?: string | undefined;
@@ -1565,10 +1580,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
1565
1580
  credit: number;
1566
1581
  balance: number;
1567
1582
  }[]>;
1568
- getEmployees(params: {
1583
+ getEmployees(params?: {
1569
1584
  folder_id?: string | undefined;
1570
- page?: number | undefined;
1571
- size?: number | undefined;
1572
1585
  } | undefined): import("../types/api").RequestData<{
1573
1586
  id: string;
1574
1587
  name: string;
@@ -1584,8 +1597,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
1584
1597
  }[]>;
1585
1598
  getOutstandings(params: {
1586
1599
  folder_id?: string | undefined;
1587
- unposted_allowed: "true" | "false";
1588
1600
  type: "supplier" | "client";
1601
+ unposted_allowed: "true" | "false";
1589
1602
  }): import("../types/api").RequestData<{
1590
1603
  id: string;
1591
1604
  number?: string | undefined;
@@ -1618,7 +1631,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1618
1631
  description?: string | undefined;
1619
1632
  }[];
1620
1633
  pdf?: string | undefined;
1621
- }, params: {
1634
+ }, params?: {
1622
1635
  financial_counterpart_account?: string | undefined;
1623
1636
  folder_id?: string | undefined;
1624
1637
  } | undefined): import("../types/api").RequestData<{
@@ -1652,7 +1665,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1652
1665
  description?: string | undefined;
1653
1666
  }[];
1654
1667
  pdf?: string | undefined;
1655
- }, params: {
1668
+ }, params?: {
1656
1669
  financial_counterpart_account?: string | undefined;
1657
1670
  folder_id?: string | undefined;
1658
1671
  } | undefined): import("../types/api").RequestData<{
@@ -1751,7 +1764,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1751
1764
  }[];
1752
1765
  pdf?: string | undefined;
1753
1766
  posted?: boolean | undefined;
1754
- }, params: {
1767
+ }, params?: {
1755
1768
  folder_id?: string | undefined;
1756
1769
  } | undefined): import("../types/api").RequestData<{
1757
1770
  reference?: string | undefined;
@@ -1786,7 +1799,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1786
1799
  matchEntries(body: {
1787
1800
  entries: string[];
1788
1801
  partner_id: string;
1789
- }, params: {
1802
+ }, params?: {
1790
1803
  folder_id?: string | undefined;
1791
1804
  } | undefined): import("../types/api").RequestData<{
1792
1805
  matching_number: string;
@@ -1799,14 +1812,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
1799
1812
  }[]>;
1800
1813
  }>;
1801
1814
  invoicing: import("../types/api").ApiFor<{
1802
- getInvoices(params: {
1803
- invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
1804
- payment_status?: "all" | "paid" | "unpaid" | undefined;
1815
+ getInvoices(params?: {
1805
1816
  date_from?: string | undefined;
1806
1817
  date_to?: string | undefined;
1818
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
1819
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
1807
1820
  updated_after?: string | undefined;
1808
- page?: number | undefined;
1809
- size?: number | undefined;
1810
1821
  } | undefined): import("../types/api").RequestData<{
1811
1822
  id: string;
1812
1823
  source_ref: {
@@ -1850,7 +1861,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1850
1861
  outstanding_amount?: number | undefined;
1851
1862
  last_updated_on?: string | undefined;
1852
1863
  }[]>;
1853
- getInvoiceById(invoiceId: string, params: {
1864
+ getInvoiceById(invoiceId: string, params?: {
1854
1865
  include_pdf?: "true" | "false" | undefined;
1855
1866
  } | undefined): import("../types/api").RequestData<{
1856
1867
  id: string;
@@ -2112,8 +2123,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
2112
2123
  }>;
2113
2124
  getContacts(params?: {
2114
2125
  contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
2115
- page?: number | undefined;
2116
- size?: number | undefined;
2117
2126
  } | undefined): import("../types/api").RequestData<{
2118
2127
  id: string;
2119
2128
  source_ref: {
@@ -2524,7 +2533,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
2524
2533
  id: string;
2525
2534
  name: string;
2526
2535
  }[]>;
2527
- getOrders(params: {}): import("../types/api").RequestData<{
2536
+ getOrders(params?: {
2537
+ date_from?: string | undefined;
2538
+ date_to?: string | undefined;
2539
+ updated_after?: string | undefined;
2540
+ include_detailed_refunds?: "true" | "false" | undefined;
2541
+ } | undefined): import("../types/api").RequestData<{
2528
2542
  id: string;
2529
2543
  source_ref: {
2530
2544
  id?: string | undefined;
@@ -3015,7 +3029,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
3015
3029
  name?: string | undefined;
3016
3030
  }[] | undefined;
3017
3031
  }>;
3018
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
3032
+ getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
3019
3033
  id: string;
3020
3034
  source_ref: {
3021
3035
  id?: string | undefined;
@@ -3024,7 +3038,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
3024
3038
  name: string;
3025
3039
  active: boolean;
3026
3040
  }[]>;
3027
- getProductCategories(params: {}): import("../types/api").RequestData<{
3041
+ getProductCategories(params?: {
3042
+ only_parents?: "true" | "false" | undefined;
3043
+ } | undefined): import("../types/api").RequestData<{
3028
3044
  id: string;
3029
3045
  source_ref: {
3030
3046
  id?: string | undefined;
@@ -3033,7 +3049,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
3033
3049
  name: string;
3034
3050
  parent_id?: string | undefined;
3035
3051
  }[]>;
3036
- getTaxes(params: {}): import("../types/api").RequestData<{
3052
+ getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
3037
3053
  id: string;
3038
3054
  source_ref: {
3039
3055
  id?: string | undefined;
@@ -3043,7 +3059,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
3043
3059
  rate: number;
3044
3060
  country?: string | undefined;
3045
3061
  }[]>;
3046
- getCountries(params: {}): import("../types/api").RequestData<{
3062
+ getCountries(params?: {} | undefined): import("../types/api").RequestData<{
3047
3063
  code: string;
3048
3064
  name: string;
3049
3065
  }[]>;
@@ -3138,6 +3154,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
3138
3154
  }[]>;
3139
3155
  deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
3140
3156
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
3157
+ setConnectionId: (connectionId: string) => Promise<void>;
3158
+ setIntegrationId: (integrationId: string) => Promise<void>;
3141
3159
  }[]>;
3142
3160
  createConsumer: (body: operations[chiftOperations['createConsumer']]['requestBody']['content']['application/json']) => Promise<{
3143
3161
  consumerId: string;
@@ -3260,7 +3278,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
3260
3278
  total: number;
3261
3279
  }[] | undefined;
3262
3280
  }[]>;
3263
- getCustomers(params: {}): import("../types/api").RequestData<{
3281
+ getCustomers(params?: {
3282
+ search?: string | undefined;
3283
+ email?: string | undefined;
3284
+ phone?: string | undefined;
3285
+ } | undefined): import("../types/api").RequestData<{
3264
3286
  id: string;
3265
3287
  first_name?: string | undefined;
3266
3288
  last_name?: string | undefined;
@@ -3385,12 +3407,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
3385
3407
  loyalty?: number | undefined;
3386
3408
  birthdate?: string | undefined;
3387
3409
  }>;
3388
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
3410
+ getPaymentMethods(params?: {
3411
+ location_id?: string | undefined;
3412
+ } | undefined): import("../types/api").RequestData<{
3389
3413
  id: string;
3390
3414
  name: string;
3391
3415
  extra?: string | undefined;
3392
3416
  }[]>;
3393
- getProductCategories(params: {}): import("../types/api").RequestData<{
3417
+ getProductCategories(params?: {
3418
+ location_id?: string | undefined;
3419
+ only_parents?: "true" | "false" | undefined;
3420
+ } | undefined): import("../types/api").RequestData<{
3394
3421
  id: string;
3395
3422
  source_ref: {
3396
3423
  id?: string | undefined;
@@ -3399,7 +3426,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
3399
3426
  name: string;
3400
3427
  parent_id?: string | undefined;
3401
3428
  }[]>;
3402
- getProducts(params: {}): import("../types/api").RequestData<{
3429
+ getProducts(params?: {
3430
+ location_id?: string | undefined;
3431
+ } | undefined): import("../types/api").RequestData<{
3403
3432
  id: string;
3404
3433
  categories?: string[] | undefined;
3405
3434
  name: string;
@@ -3423,7 +3452,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
3423
3452
  total: number;
3424
3453
  }[] | undefined;
3425
3454
  }>;
3426
- getClosure(date: string, params: {
3455
+ getClosure(date: string, params?: {
3427
3456
  location_id?: string | undefined;
3428
3457
  } | undefined): import("../types/api").RequestData<{
3429
3458
  date: string;
@@ -3492,7 +3521,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
3492
3521
  total: number;
3493
3522
  }[] | undefined;
3494
3523
  }>;
3495
- getAccountingCategories(params: {}): import("../types/api").RequestData<{
3524
+ getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
3496
3525
  id: string;
3497
3526
  name: string;
3498
3527
  id_parent?: string | undefined;
@@ -3502,19 +3531,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
3502
3531
  }[]>;
3503
3532
  }>;
3504
3533
  accounting: import("../types/api").ApiFor<{
3505
- getAnalyticPlans(params: {
3534
+ getAnalyticPlans(params?: {
3506
3535
  folder_id?: string | undefined;
3507
- page?: number | undefined;
3508
- size?: number | undefined;
3509
3536
  } | undefined): import("../types/api").RequestData<{
3510
3537
  id: string;
3511
3538
  name: string;
3512
3539
  active?: boolean | undefined;
3513
3540
  }[]>;
3514
- getClients(params: {
3541
+ getClients(params?: {
3515
3542
  folder_id?: string | undefined;
3516
- page?: number | undefined;
3517
- size?: number | undefined;
3518
3543
  } | undefined): import("../types/api").RequestData<{
3519
3544
  external_reference?: string | undefined;
3520
3545
  first_name?: string | undefined;
@@ -3584,7 +3609,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
3584
3609
  country: string;
3585
3610
  }[];
3586
3611
  account_number?: string | undefined;
3587
- }, params: {
3612
+ }, params?: {
3588
3613
  force_merge?: string | undefined;
3589
3614
  folder_id?: string | undefined;
3590
3615
  } | undefined): import("../types/api").RequestData<{
@@ -3623,7 +3648,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
3623
3648
  company_number?: string | undefined;
3624
3649
  id?: string | undefined;
3625
3650
  }>;
3626
- getClient(clientId: string, params: {
3651
+ getClient(clientId: string, params?: {
3627
3652
  folder_id?: string | undefined;
3628
3653
  } | undefined): import("../types/api").RequestData<{
3629
3654
  external_reference?: string | undefined;
@@ -3693,7 +3718,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
3693
3718
  postal_code?: string | undefined;
3694
3719
  country?: string | undefined;
3695
3720
  }[] | undefined;
3696
- }, params: {
3721
+ }, params?: {
3697
3722
  folder_id?: string | undefined;
3698
3723
  } | undefined): import("../types/api").RequestData<{
3699
3724
  external_reference?: string | undefined;
@@ -3731,10 +3756,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
3731
3756
  company_number?: string | undefined;
3732
3757
  id?: string | undefined;
3733
3758
  }>;
3734
- getSuppliers(params: {
3759
+ getSuppliers(params?: {
3735
3760
  folder_id?: string | undefined;
3736
- page?: number | undefined;
3737
- size?: number | undefined;
3738
3761
  } | undefined): import("../types/api").RequestData<{
3739
3762
  external_reference?: string | undefined;
3740
3763
  first_name?: string | undefined;
@@ -3804,7 +3827,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
3804
3827
  country: string;
3805
3828
  }[];
3806
3829
  account_number?: string | undefined;
3807
- }, params: {
3830
+ }, params?: {
3808
3831
  force_merge?: string | undefined;
3809
3832
  folder_id?: string | undefined;
3810
3833
  } | undefined): import("../types/api").RequestData<{
@@ -3843,7 +3866,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
3843
3866
  company_number?: string | undefined;
3844
3867
  id?: string | undefined;
3845
3868
  }>;
3846
- getSupplier(supplierId: string, params: {
3869
+ getSupplier(supplierId: string, params?: {
3847
3870
  folder_id?: string | undefined;
3848
3871
  } | undefined): import("../types/api").RequestData<{
3849
3872
  external_reference?: string | undefined;
@@ -3913,7 +3936,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
3913
3936
  postal_code?: string | undefined;
3914
3937
  country?: string | undefined;
3915
3938
  }[] | undefined;
3916
- }, params: {
3939
+ }, params?: {
3917
3940
  folder_id?: string | undefined;
3918
3941
  } | undefined): import("../types/api").RequestData<{
3919
3942
  external_reference?: string | undefined;
@@ -3998,7 +4021,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
3998
4021
  tax_code: string;
3999
4022
  analytic_account?: string | undefined;
4000
4023
  }[];
4001
- }, params: {
4024
+ }, params?: {
4002
4025
  force_financial_period?: string | undefined;
4003
4026
  regroup_lines?: "true" | "false" | undefined;
4004
4027
  folder_id?: string | undefined;
@@ -4100,7 +4123,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4100
4123
  }[];
4101
4124
  }[] | undefined;
4102
4125
  }[];
4103
- }, params: {
4126
+ }, params?: {
4104
4127
  force_financial_period?: string | undefined;
4105
4128
  regroup_lines?: "true" | "false" | undefined;
4106
4129
  folder_id?: string | undefined;
@@ -4155,7 +4178,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
4155
4178
  }[] | undefined;
4156
4179
  }[];
4157
4180
  }>;
4158
- getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
4181
+ getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
4182
+ date_from?: string | undefined;
4183
+ date_to?: string | undefined;
4184
+ folder_id?: string | undefined;
4185
+ journal_ids?: string | undefined;
4186
+ include_payments?: "true" | "false" | undefined;
4187
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
4188
+ } | undefined): import("../types/api").RequestData<{
4159
4189
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4160
4190
  invoice_number?: string | undefined;
4161
4191
  currency: string;
@@ -4200,7 +4230,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4200
4230
  analytic_account?: string | undefined;
4201
4231
  }[];
4202
4232
  }[]>;
4203
- getInvoice(invoiceId: string, params: {
4233
+ getInvoice(invoiceId: string, params?: {
4204
4234
  include_payments?: "true" | "false" | undefined;
4205
4235
  folder_id?: string | undefined;
4206
4236
  } | undefined): import("../types/api").RequestData<{
@@ -4248,7 +4278,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4248
4278
  analytic_account?: string | undefined;
4249
4279
  }[];
4250
4280
  }>;
4251
- getInvoiceWithMultiplePlans(invoiceId: string, params: {
4281
+ getInvoiceWithMultiplePlans(invoiceId: string, params?: {
4252
4282
  include_payments?: "true" | "false" | undefined;
4253
4283
  folder_id?: string | undefined;
4254
4284
  } | undefined): import("../types/api").RequestData<{
@@ -4302,7 +4332,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
4302
4332
  }[] | undefined;
4303
4333
  }[];
4304
4334
  }>;
4305
- getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
4335
+ getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
4336
+ date_from?: string | undefined;
4337
+ date_to?: string | undefined;
4338
+ folder_id?: string | undefined;
4339
+ journal_ids?: string | undefined;
4340
+ include_payments?: "true" | "false" | undefined;
4341
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
4342
+ } | undefined): import("../types/api").RequestData<{
4306
4343
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4307
4344
  invoice_number?: string | undefined;
4308
4345
  currency: string;
@@ -4358,7 +4395,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4358
4395
  code: string;
4359
4396
  name: string;
4360
4397
  currency: string;
4361
- }, params: {
4398
+ }, params?: {
4362
4399
  folder_id?: string | undefined;
4363
4400
  } | undefined): import("../types/api").RequestData<{
4364
4401
  id: string;
@@ -4370,10 +4407,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
4370
4407
  credit?: number | undefined;
4371
4408
  debit?: number | undefined;
4372
4409
  }>;
4373
- getAnalyticAccounts(params: {
4410
+ getAnalyticAccounts(params?: {
4374
4411
  folder_id?: string | undefined;
4375
- page?: number | undefined;
4376
- size?: number | undefined;
4377
4412
  } | undefined): import("../types/api").RequestData<{
4378
4413
  id: string;
4379
4414
  active: boolean;
@@ -4389,7 +4424,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4389
4424
  code: string;
4390
4425
  name: string;
4391
4426
  currency: string;
4392
- }, params: {
4427
+ }, params?: {
4393
4428
  folder_id?: string | undefined;
4394
4429
  } | undefined): import("../types/api").RequestData<{
4395
4430
  id: string;
@@ -4402,7 +4437,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4402
4437
  debit?: number | undefined;
4403
4438
  analytic_plan: string;
4404
4439
  }>;
4405
- getAnalyticAccount(analytic_account_id: string, params: {
4440
+ getAnalyticAccount(analytic_account_id: string, params?: {
4406
4441
  folder_id?: string | undefined;
4407
4442
  } | undefined): import("../types/api").RequestData<{
4408
4443
  id: string;
@@ -4419,7 +4454,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4419
4454
  code?: string | undefined;
4420
4455
  name?: string | undefined;
4421
4456
  currency?: string | undefined;
4422
- }, params: {
4457
+ }, params?: {
4423
4458
  folder_id?: string | undefined;
4424
4459
  } | undefined): import("../types/api").RequestData<{
4425
4460
  id: string;
@@ -4431,7 +4466,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4431
4466
  credit?: number | undefined;
4432
4467
  debit?: number | undefined;
4433
4468
  }>;
4434
- getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
4469
+ getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
4435
4470
  folder_id?: string | undefined;
4436
4471
  } | undefined): import("../types/api").RequestData<{
4437
4472
  id: string;
@@ -4449,7 +4484,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4449
4484
  code?: string | undefined;
4450
4485
  name?: string | undefined;
4451
4486
  currency?: string | undefined;
4452
- }, params: {
4487
+ }, params?: {
4453
4488
  folder_id?: string | undefined;
4454
4489
  } | undefined): import("../types/api").RequestData<{
4455
4490
  id: string;
@@ -4462,10 +4497,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
4462
4497
  debit?: number | undefined;
4463
4498
  analytic_plan: string;
4464
4499
  }>;
4465
- getAnalyticAccountsWithMultiplePlans(params: {
4500
+ getAnalyticAccountsWithMultiplePlans(params?: {
4466
4501
  folder_id?: string | undefined;
4467
- page?: number | undefined;
4468
- size?: number | undefined;
4469
4502
  } | undefined): import("../types/api").RequestData<{
4470
4503
  id: string;
4471
4504
  active: boolean;
@@ -4546,7 +4579,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4546
4579
  }[] | undefined;
4547
4580
  }[] | undefined;
4548
4581
  }[]>;
4549
- getPaymentsByInvoiceId(invoice_id: string, params: {
4582
+ getPaymentsByInvoiceId(invoice_id: string, params?: {
4550
4583
  folder_id?: string | undefined;
4551
4584
  page?: number | undefined;
4552
4585
  size?: number | undefined;
@@ -4564,20 +4597,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
4564
4597
  communication?: string | undefined;
4565
4598
  matching_number?: string | undefined;
4566
4599
  }[]>;
4567
- getJournals(params: {
4600
+ getJournals(params?: {
4568
4601
  folder_id?: string | undefined;
4569
- page?: number | undefined;
4570
- size?: number | undefined;
4571
4602
  } | undefined): import("../types/api").RequestData<{
4572
4603
  id: string;
4573
4604
  code?: string | undefined;
4574
4605
  name: string;
4575
4606
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
4576
4607
  }[]>;
4577
- getVatCodes(params: {
4608
+ getVatCodes(params?: {
4578
4609
  folder_id?: string | undefined;
4579
- page?: number | undefined;
4580
- size?: number | undefined;
4581
4610
  } | undefined): import("../types/api").RequestData<{
4582
4611
  id: string;
4583
4612
  code?: string | undefined;
@@ -4588,7 +4617,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
4588
4617
  deductible_account?: string | undefined;
4589
4618
  payable_account?: string | undefined;
4590
4619
  }[]>;
4591
- getMiscOperations(params: {}): import("../types/api").RequestData<{
4620
+ getMiscOperations(params?: {
4621
+ date_from?: string | undefined;
4622
+ date_to?: string | undefined;
4623
+ folder_id?: string | undefined;
4624
+ journal_ids?: string | undefined;
4625
+ } | undefined): import("../types/api").RequestData<{
4592
4626
  operation_number?: string | undefined;
4593
4627
  currency: string;
4594
4628
  currency_exchange_rate?: number | undefined;
@@ -4622,7 +4656,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4622
4656
  operation_date: string;
4623
4657
  journal_id?: string | undefined;
4624
4658
  status?: "draft" | "posted" | undefined;
4625
- }, params: {
4659
+ }, params?: {
4626
4660
  folder_id?: string | undefined;
4627
4661
  } | undefined): import("../types/api").RequestData<{
4628
4662
  operation_number?: string | undefined;
@@ -4642,7 +4676,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4642
4676
  status: "cancelled" | "draft" | "posted" | "matched";
4643
4677
  id: string;
4644
4678
  }>;
4645
- getMiscOperation(operation_id: string, params: {
4679
+ getMiscOperation(operation_id: string, params?: {
4646
4680
  folder_id?: string | undefined;
4647
4681
  } | undefined): import("../types/api").RequestData<{
4648
4682
  operation_number?: string | undefined;
@@ -4664,24 +4698,25 @@ declare const Consumers: (internalApi: InternalAPI) => {
4664
4698
  }>;
4665
4699
  attachPDF(invoice_id: string, attachment: {
4666
4700
  base64_string: string;
4667
- }, params: {
4701
+ }, params?: {
4668
4702
  overwrite_existing?: "true" | "false" | undefined;
4669
4703
  folder_id?: string | undefined;
4670
4704
  } | undefined): import("../types/api").RequestData<{
4671
4705
  content: {
4672
- "application/json": unknown;
4706
+ 'application/json': unknown;
4673
4707
  };
4674
4708
  }>;
4675
4709
  getAttachments(params: {
4710
+ folder_id?: string | undefined;
4676
4711
  type: "invoice" | "entry";
4677
4712
  document_id: string;
4678
- folder_id?: string | undefined;
4679
- page?: number | undefined;
4680
- size?: number | undefined;
4681
4713
  }): import("../types/api").RequestData<{
4682
4714
  base64_string: string;
4683
4715
  }[]>;
4684
- getChartOfAccounts(params: {}): import("../types/api").RequestData<{
4716
+ getChartOfAccounts(params?: {
4717
+ classes?: string | undefined;
4718
+ folder_id?: string | undefined;
4719
+ } | undefined): import("../types/api").RequestData<{
4685
4720
  number: string;
4686
4721
  name: string;
4687
4722
  active?: boolean | undefined;
@@ -4691,10 +4726,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
4691
4726
  accounts: string[];
4692
4727
  start?: string | undefined;
4693
4728
  end: string;
4694
- }, params: {
4729
+ }, params?: {
4695
4730
  folder_id?: string | undefined;
4696
- page?: number | undefined;
4697
- size?: number | undefined;
4698
4731
  } | undefined): import("../types/api").RequestData<{
4699
4732
  account_number: string;
4700
4733
  account_name?: string | undefined;
@@ -4702,10 +4735,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
4702
4735
  credit: number;
4703
4736
  balance: number;
4704
4737
  }[]>;
4705
- getEmployees(params: {
4738
+ getEmployees(params?: {
4706
4739
  folder_id?: string | undefined;
4707
- page?: number | undefined;
4708
- size?: number | undefined;
4709
4740
  } | undefined): import("../types/api").RequestData<{
4710
4741
  id: string;
4711
4742
  name: string;
@@ -4721,8 +4752,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
4721
4752
  }[]>;
4722
4753
  getOutstandings(params: {
4723
4754
  folder_id?: string | undefined;
4724
- unposted_allowed: "true" | "false";
4725
4755
  type: "supplier" | "client";
4756
+ unposted_allowed: "true" | "false";
4726
4757
  }): import("../types/api").RequestData<{
4727
4758
  id: string;
4728
4759
  number?: string | undefined;
@@ -4755,7 +4786,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4755
4786
  description?: string | undefined;
4756
4787
  }[];
4757
4788
  pdf?: string | undefined;
4758
- }, params: {
4789
+ }, params?: {
4759
4790
  financial_counterpart_account?: string | undefined;
4760
4791
  folder_id?: string | undefined;
4761
4792
  } | undefined): import("../types/api").RequestData<{
@@ -4789,7 +4820,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4789
4820
  description?: string | undefined;
4790
4821
  }[];
4791
4822
  pdf?: string | undefined;
4792
- }, params: {
4823
+ }, params?: {
4793
4824
  financial_counterpart_account?: string | undefined;
4794
4825
  folder_id?: string | undefined;
4795
4826
  } | undefined): import("../types/api").RequestData<{
@@ -4888,7 +4919,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4888
4919
  }[];
4889
4920
  pdf?: string | undefined;
4890
4921
  posted?: boolean | undefined;
4891
- }, params: {
4922
+ }, params?: {
4892
4923
  folder_id?: string | undefined;
4893
4924
  } | undefined): import("../types/api").RequestData<{
4894
4925
  reference?: string | undefined;
@@ -4923,7 +4954,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4923
4954
  matchEntries(body: {
4924
4955
  entries: string[];
4925
4956
  partner_id: string;
4926
- }, params: {
4957
+ }, params?: {
4927
4958
  folder_id?: string | undefined;
4928
4959
  } | undefined): import("../types/api").RequestData<{
4929
4960
  matching_number: string;
@@ -4936,14 +4967,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
4936
4967
  }[]>;
4937
4968
  }>;
4938
4969
  invoicing: import("../types/api").ApiFor<{
4939
- getInvoices(params: {
4940
- invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
4941
- payment_status?: "all" | "paid" | "unpaid" | undefined;
4970
+ getInvoices(params?: {
4942
4971
  date_from?: string | undefined;
4943
4972
  date_to?: string | undefined;
4973
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
4974
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
4944
4975
  updated_after?: string | undefined;
4945
- page?: number | undefined;
4946
- size?: number | undefined;
4947
4976
  } | undefined): import("../types/api").RequestData<{
4948
4977
  id: string;
4949
4978
  source_ref: {
@@ -4987,7 +5016,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4987
5016
  outstanding_amount?: number | undefined;
4988
5017
  last_updated_on?: string | undefined;
4989
5018
  }[]>;
4990
- getInvoiceById(invoiceId: string, params: {
5019
+ getInvoiceById(invoiceId: string, params?: {
4991
5020
  include_pdf?: "true" | "false" | undefined;
4992
5021
  } | undefined): import("../types/api").RequestData<{
4993
5022
  id: string;
@@ -5249,8 +5278,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
5249
5278
  }>;
5250
5279
  getContacts(params?: {
5251
5280
  contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
5252
- page?: number | undefined;
5253
- size?: number | undefined;
5254
5281
  } | undefined): import("../types/api").RequestData<{
5255
5282
  id: string;
5256
5283
  source_ref: {
@@ -5661,7 +5688,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
5661
5688
  id: string;
5662
5689
  name: string;
5663
5690
  }[]>;
5664
- getOrders(params: {}): import("../types/api").RequestData<{
5691
+ getOrders(params?: {
5692
+ date_from?: string | undefined;
5693
+ date_to?: string | undefined;
5694
+ updated_after?: string | undefined;
5695
+ include_detailed_refunds?: "true" | "false" | undefined;
5696
+ } | undefined): import("../types/api").RequestData<{
5665
5697
  id: string;
5666
5698
  source_ref: {
5667
5699
  id?: string | undefined;
@@ -6152,7 +6184,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
6152
6184
  name?: string | undefined;
6153
6185
  }[] | undefined;
6154
6186
  }>;
6155
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
6187
+ getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
6156
6188
  id: string;
6157
6189
  source_ref: {
6158
6190
  id?: string | undefined;
@@ -6161,7 +6193,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
6161
6193
  name: string;
6162
6194
  active: boolean;
6163
6195
  }[]>;
6164
- getProductCategories(params: {}): import("../types/api").RequestData<{
6196
+ getProductCategories(params?: {
6197
+ only_parents?: "true" | "false" | undefined;
6198
+ } | undefined): import("../types/api").RequestData<{
6165
6199
  id: string;
6166
6200
  source_ref: {
6167
6201
  id?: string | undefined;
@@ -6170,7 +6204,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
6170
6204
  name: string;
6171
6205
  parent_id?: string | undefined;
6172
6206
  }[]>;
6173
- getTaxes(params: {}): import("../types/api").RequestData<{
6207
+ getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
6174
6208
  id: string;
6175
6209
  source_ref: {
6176
6210
  id?: string | undefined;
@@ -6180,7 +6214,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
6180
6214
  rate: number;
6181
6215
  country?: string | undefined;
6182
6216
  }[]>;
6183
- getCountries(params: {}): import("../types/api").RequestData<{
6217
+ getCountries(params?: {} | undefined): import("../types/api").RequestData<{
6184
6218
  code: string;
6185
6219
  name: string;
6186
6220
  }[]>;
@@ -6275,6 +6309,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
6275
6309
  }[]>;
6276
6310
  deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
6277
6311
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
6312
+ setConnectionId: (connectionId: string) => Promise<void>;
6313
+ setIntegrationId: (integrationId: string) => Promise<void>;
6278
6314
  }>;
6279
6315
  getConsumerById: (consumerId: string) => Promise<{
6280
6316
  consumerId: string;
@@ -6397,7 +6433,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
6397
6433
  total: number;
6398
6434
  }[] | undefined;
6399
6435
  }[]>;
6400
- getCustomers(params: {}): import("../types/api").RequestData<{
6436
+ getCustomers(params?: {
6437
+ search?: string | undefined;
6438
+ email?: string | undefined;
6439
+ phone?: string | undefined;
6440
+ } | undefined): import("../types/api").RequestData<{
6401
6441
  id: string;
6402
6442
  first_name?: string | undefined;
6403
6443
  last_name?: string | undefined;
@@ -6522,12 +6562,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
6522
6562
  loyalty?: number | undefined;
6523
6563
  birthdate?: string | undefined;
6524
6564
  }>;
6525
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
6565
+ getPaymentMethods(params?: {
6566
+ location_id?: string | undefined;
6567
+ } | undefined): import("../types/api").RequestData<{
6526
6568
  id: string;
6527
6569
  name: string;
6528
6570
  extra?: string | undefined;
6529
6571
  }[]>;
6530
- getProductCategories(params: {}): import("../types/api").RequestData<{
6572
+ getProductCategories(params?: {
6573
+ location_id?: string | undefined;
6574
+ only_parents?: "true" | "false" | undefined;
6575
+ } | undefined): import("../types/api").RequestData<{
6531
6576
  id: string;
6532
6577
  source_ref: {
6533
6578
  id?: string | undefined;
@@ -6536,7 +6581,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
6536
6581
  name: string;
6537
6582
  parent_id?: string | undefined;
6538
6583
  }[]>;
6539
- getProducts(params: {}): import("../types/api").RequestData<{
6584
+ getProducts(params?: {
6585
+ location_id?: string | undefined;
6586
+ } | undefined): import("../types/api").RequestData<{
6540
6587
  id: string;
6541
6588
  categories?: string[] | undefined;
6542
6589
  name: string;
@@ -6560,7 +6607,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
6560
6607
  total: number;
6561
6608
  }[] | undefined;
6562
6609
  }>;
6563
- getClosure(date: string, params: {
6610
+ getClosure(date: string, params?: {
6564
6611
  location_id?: string | undefined;
6565
6612
  } | undefined): import("../types/api").RequestData<{
6566
6613
  date: string;
@@ -6629,7 +6676,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
6629
6676
  total: number;
6630
6677
  }[] | undefined;
6631
6678
  }>;
6632
- getAccountingCategories(params: {}): import("../types/api").RequestData<{
6679
+ getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
6633
6680
  id: string;
6634
6681
  name: string;
6635
6682
  id_parent?: string | undefined;
@@ -6639,19 +6686,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
6639
6686
  }[]>;
6640
6687
  }>;
6641
6688
  accounting: import("../types/api").ApiFor<{
6642
- getAnalyticPlans(params: {
6689
+ getAnalyticPlans(params?: {
6643
6690
  folder_id?: string | undefined;
6644
- page?: number | undefined;
6645
- size?: number | undefined;
6646
6691
  } | undefined): import("../types/api").RequestData<{
6647
6692
  id: string;
6648
6693
  name: string;
6649
6694
  active?: boolean | undefined;
6650
6695
  }[]>;
6651
- getClients(params: {
6696
+ getClients(params?: {
6652
6697
  folder_id?: string | undefined;
6653
- page?: number | undefined;
6654
- size?: number | undefined;
6655
6698
  } | undefined): import("../types/api").RequestData<{
6656
6699
  external_reference?: string | undefined;
6657
6700
  first_name?: string | undefined;
@@ -6721,7 +6764,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
6721
6764
  country: string;
6722
6765
  }[];
6723
6766
  account_number?: string | undefined;
6724
- }, params: {
6767
+ }, params?: {
6725
6768
  force_merge?: string | undefined;
6726
6769
  folder_id?: string | undefined;
6727
6770
  } | undefined): import("../types/api").RequestData<{
@@ -6760,7 +6803,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
6760
6803
  company_number?: string | undefined;
6761
6804
  id?: string | undefined;
6762
6805
  }>;
6763
- getClient(clientId: string, params: {
6806
+ getClient(clientId: string, params?: {
6764
6807
  folder_id?: string | undefined;
6765
6808
  } | undefined): import("../types/api").RequestData<{
6766
6809
  external_reference?: string | undefined;
@@ -6830,7 +6873,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
6830
6873
  postal_code?: string | undefined;
6831
6874
  country?: string | undefined;
6832
6875
  }[] | undefined;
6833
- }, params: {
6876
+ }, params?: {
6834
6877
  folder_id?: string | undefined;
6835
6878
  } | undefined): import("../types/api").RequestData<{
6836
6879
  external_reference?: string | undefined;
@@ -6868,10 +6911,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
6868
6911
  company_number?: string | undefined;
6869
6912
  id?: string | undefined;
6870
6913
  }>;
6871
- getSuppliers(params: {
6914
+ getSuppliers(params?: {
6872
6915
  folder_id?: string | undefined;
6873
- page?: number | undefined;
6874
- size?: number | undefined;
6875
6916
  } | undefined): import("../types/api").RequestData<{
6876
6917
  external_reference?: string | undefined;
6877
6918
  first_name?: string | undefined;
@@ -6941,7 +6982,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
6941
6982
  country: string;
6942
6983
  }[];
6943
6984
  account_number?: string | undefined;
6944
- }, params: {
6985
+ }, params?: {
6945
6986
  force_merge?: string | undefined;
6946
6987
  folder_id?: string | undefined;
6947
6988
  } | undefined): import("../types/api").RequestData<{
@@ -6980,7 +7021,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
6980
7021
  company_number?: string | undefined;
6981
7022
  id?: string | undefined;
6982
7023
  }>;
6983
- getSupplier(supplierId: string, params: {
7024
+ getSupplier(supplierId: string, params?: {
6984
7025
  folder_id?: string | undefined;
6985
7026
  } | undefined): import("../types/api").RequestData<{
6986
7027
  external_reference?: string | undefined;
@@ -7050,7 +7091,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7050
7091
  postal_code?: string | undefined;
7051
7092
  country?: string | undefined;
7052
7093
  }[] | undefined;
7053
- }, params: {
7094
+ }, params?: {
7054
7095
  folder_id?: string | undefined;
7055
7096
  } | undefined): import("../types/api").RequestData<{
7056
7097
  external_reference?: string | undefined;
@@ -7135,7 +7176,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7135
7176
  tax_code: string;
7136
7177
  analytic_account?: string | undefined;
7137
7178
  }[];
7138
- }, params: {
7179
+ }, params?: {
7139
7180
  force_financial_period?: string | undefined;
7140
7181
  regroup_lines?: "true" | "false" | undefined;
7141
7182
  folder_id?: string | undefined;
@@ -7237,7 +7278,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7237
7278
  }[];
7238
7279
  }[] | undefined;
7239
7280
  }[];
7240
- }, params: {
7281
+ }, params?: {
7241
7282
  force_financial_period?: string | undefined;
7242
7283
  regroup_lines?: "true" | "false" | undefined;
7243
7284
  folder_id?: string | undefined;
@@ -7292,7 +7333,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
7292
7333
  }[] | undefined;
7293
7334
  }[];
7294
7335
  }>;
7295
- getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
7336
+ getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
7337
+ date_from?: string | undefined;
7338
+ date_to?: string | undefined;
7339
+ folder_id?: string | undefined;
7340
+ journal_ids?: string | undefined;
7341
+ include_payments?: "true" | "false" | undefined;
7342
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
7343
+ } | undefined): import("../types/api").RequestData<{
7296
7344
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
7297
7345
  invoice_number?: string | undefined;
7298
7346
  currency: string;
@@ -7337,7 +7385,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7337
7385
  analytic_account?: string | undefined;
7338
7386
  }[];
7339
7387
  }[]>;
7340
- getInvoice(invoiceId: string, params: {
7388
+ getInvoice(invoiceId: string, params?: {
7341
7389
  include_payments?: "true" | "false" | undefined;
7342
7390
  folder_id?: string | undefined;
7343
7391
  } | undefined): import("../types/api").RequestData<{
@@ -7385,7 +7433,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7385
7433
  analytic_account?: string | undefined;
7386
7434
  }[];
7387
7435
  }>;
7388
- getInvoiceWithMultiplePlans(invoiceId: string, params: {
7436
+ getInvoiceWithMultiplePlans(invoiceId: string, params?: {
7389
7437
  include_payments?: "true" | "false" | undefined;
7390
7438
  folder_id?: string | undefined;
7391
7439
  } | undefined): import("../types/api").RequestData<{
@@ -7439,7 +7487,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
7439
7487
  }[] | undefined;
7440
7488
  }[];
7441
7489
  }>;
7442
- getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
7490
+ getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
7491
+ date_from?: string | undefined;
7492
+ date_to?: string | undefined;
7493
+ folder_id?: string | undefined;
7494
+ journal_ids?: string | undefined;
7495
+ include_payments?: "true" | "false" | undefined;
7496
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
7497
+ } | undefined): import("../types/api").RequestData<{
7443
7498
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
7444
7499
  invoice_number?: string | undefined;
7445
7500
  currency: string;
@@ -7495,7 +7550,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7495
7550
  code: string;
7496
7551
  name: string;
7497
7552
  currency: string;
7498
- }, params: {
7553
+ }, params?: {
7499
7554
  folder_id?: string | undefined;
7500
7555
  } | undefined): import("../types/api").RequestData<{
7501
7556
  id: string;
@@ -7507,10 +7562,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
7507
7562
  credit?: number | undefined;
7508
7563
  debit?: number | undefined;
7509
7564
  }>;
7510
- getAnalyticAccounts(params: {
7565
+ getAnalyticAccounts(params?: {
7511
7566
  folder_id?: string | undefined;
7512
- page?: number | undefined;
7513
- size?: number | undefined;
7514
7567
  } | undefined): import("../types/api").RequestData<{
7515
7568
  id: string;
7516
7569
  active: boolean;
@@ -7526,7 +7579,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7526
7579
  code: string;
7527
7580
  name: string;
7528
7581
  currency: string;
7529
- }, params: {
7582
+ }, params?: {
7530
7583
  folder_id?: string | undefined;
7531
7584
  } | undefined): import("../types/api").RequestData<{
7532
7585
  id: string;
@@ -7539,7 +7592,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7539
7592
  debit?: number | undefined;
7540
7593
  analytic_plan: string;
7541
7594
  }>;
7542
- getAnalyticAccount(analytic_account_id: string, params: {
7595
+ getAnalyticAccount(analytic_account_id: string, params?: {
7543
7596
  folder_id?: string | undefined;
7544
7597
  } | undefined): import("../types/api").RequestData<{
7545
7598
  id: string;
@@ -7556,7 +7609,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7556
7609
  code?: string | undefined;
7557
7610
  name?: string | undefined;
7558
7611
  currency?: string | undefined;
7559
- }, params: {
7612
+ }, params?: {
7560
7613
  folder_id?: string | undefined;
7561
7614
  } | undefined): import("../types/api").RequestData<{
7562
7615
  id: string;
@@ -7568,7 +7621,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7568
7621
  credit?: number | undefined;
7569
7622
  debit?: number | undefined;
7570
7623
  }>;
7571
- getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
7624
+ getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
7572
7625
  folder_id?: string | undefined;
7573
7626
  } | undefined): import("../types/api").RequestData<{
7574
7627
  id: string;
@@ -7586,7 +7639,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7586
7639
  code?: string | undefined;
7587
7640
  name?: string | undefined;
7588
7641
  currency?: string | undefined;
7589
- }, params: {
7642
+ }, params?: {
7590
7643
  folder_id?: string | undefined;
7591
7644
  } | undefined): import("../types/api").RequestData<{
7592
7645
  id: string;
@@ -7599,10 +7652,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
7599
7652
  debit?: number | undefined;
7600
7653
  analytic_plan: string;
7601
7654
  }>;
7602
- getAnalyticAccountsWithMultiplePlans(params: {
7655
+ getAnalyticAccountsWithMultiplePlans(params?: {
7603
7656
  folder_id?: string | undefined;
7604
- page?: number | undefined;
7605
- size?: number | undefined;
7606
7657
  } | undefined): import("../types/api").RequestData<{
7607
7658
  id: string;
7608
7659
  active: boolean;
@@ -7683,7 +7734,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7683
7734
  }[] | undefined;
7684
7735
  }[] | undefined;
7685
7736
  }[]>;
7686
- getPaymentsByInvoiceId(invoice_id: string, params: {
7737
+ getPaymentsByInvoiceId(invoice_id: string, params?: {
7687
7738
  folder_id?: string | undefined;
7688
7739
  page?: number | undefined;
7689
7740
  size?: number | undefined;
@@ -7701,20 +7752,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
7701
7752
  communication?: string | undefined;
7702
7753
  matching_number?: string | undefined;
7703
7754
  }[]>;
7704
- getJournals(params: {
7755
+ getJournals(params?: {
7705
7756
  folder_id?: string | undefined;
7706
- page?: number | undefined;
7707
- size?: number | undefined;
7708
7757
  } | undefined): import("../types/api").RequestData<{
7709
7758
  id: string;
7710
7759
  code?: string | undefined;
7711
7760
  name: string;
7712
7761
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
7713
7762
  }[]>;
7714
- getVatCodes(params: {
7763
+ getVatCodes(params?: {
7715
7764
  folder_id?: string | undefined;
7716
- page?: number | undefined;
7717
- size?: number | undefined;
7718
7765
  } | undefined): import("../types/api").RequestData<{
7719
7766
  id: string;
7720
7767
  code?: string | undefined;
@@ -7725,7 +7772,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
7725
7772
  deductible_account?: string | undefined;
7726
7773
  payable_account?: string | undefined;
7727
7774
  }[]>;
7728
- getMiscOperations(params: {}): import("../types/api").RequestData<{
7775
+ getMiscOperations(params?: {
7776
+ date_from?: string | undefined;
7777
+ date_to?: string | undefined;
7778
+ folder_id?: string | undefined;
7779
+ journal_ids?: string | undefined;
7780
+ } | undefined): import("../types/api").RequestData<{
7729
7781
  operation_number?: string | undefined;
7730
7782
  currency: string;
7731
7783
  currency_exchange_rate?: number | undefined;
@@ -7759,7 +7811,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7759
7811
  operation_date: string;
7760
7812
  journal_id?: string | undefined;
7761
7813
  status?: "draft" | "posted" | undefined;
7762
- }, params: {
7814
+ }, params?: {
7763
7815
  folder_id?: string | undefined;
7764
7816
  } | undefined): import("../types/api").RequestData<{
7765
7817
  operation_number?: string | undefined;
@@ -7779,7 +7831,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7779
7831
  status: "cancelled" | "draft" | "posted" | "matched";
7780
7832
  id: string;
7781
7833
  }>;
7782
- getMiscOperation(operation_id: string, params: {
7834
+ getMiscOperation(operation_id: string, params?: {
7783
7835
  folder_id?: string | undefined;
7784
7836
  } | undefined): import("../types/api").RequestData<{
7785
7837
  operation_number?: string | undefined;
@@ -7801,24 +7853,25 @@ declare const Consumers: (internalApi: InternalAPI) => {
7801
7853
  }>;
7802
7854
  attachPDF(invoice_id: string, attachment: {
7803
7855
  base64_string: string;
7804
- }, params: {
7856
+ }, params?: {
7805
7857
  overwrite_existing?: "true" | "false" | undefined;
7806
7858
  folder_id?: string | undefined;
7807
7859
  } | undefined): import("../types/api").RequestData<{
7808
7860
  content: {
7809
- "application/json": unknown;
7861
+ 'application/json': unknown;
7810
7862
  };
7811
7863
  }>;
7812
7864
  getAttachments(params: {
7865
+ folder_id?: string | undefined;
7813
7866
  type: "invoice" | "entry";
7814
7867
  document_id: string;
7815
- folder_id?: string | undefined;
7816
- page?: number | undefined;
7817
- size?: number | undefined;
7818
7868
  }): import("../types/api").RequestData<{
7819
7869
  base64_string: string;
7820
7870
  }[]>;
7821
- getChartOfAccounts(params: {}): import("../types/api").RequestData<{
7871
+ getChartOfAccounts(params?: {
7872
+ classes?: string | undefined;
7873
+ folder_id?: string | undefined;
7874
+ } | undefined): import("../types/api").RequestData<{
7822
7875
  number: string;
7823
7876
  name: string;
7824
7877
  active?: boolean | undefined;
@@ -7828,10 +7881,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
7828
7881
  accounts: string[];
7829
7882
  start?: string | undefined;
7830
7883
  end: string;
7831
- }, params: {
7884
+ }, params?: {
7832
7885
  folder_id?: string | undefined;
7833
- page?: number | undefined;
7834
- size?: number | undefined;
7835
7886
  } | undefined): import("../types/api").RequestData<{
7836
7887
  account_number: string;
7837
7888
  account_name?: string | undefined;
@@ -7839,10 +7890,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
7839
7890
  credit: number;
7840
7891
  balance: number;
7841
7892
  }[]>;
7842
- getEmployees(params: {
7893
+ getEmployees(params?: {
7843
7894
  folder_id?: string | undefined;
7844
- page?: number | undefined;
7845
- size?: number | undefined;
7846
7895
  } | undefined): import("../types/api").RequestData<{
7847
7896
  id: string;
7848
7897
  name: string;
@@ -7858,8 +7907,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
7858
7907
  }[]>;
7859
7908
  getOutstandings(params: {
7860
7909
  folder_id?: string | undefined;
7861
- unposted_allowed: "true" | "false";
7862
7910
  type: "supplier" | "client";
7911
+ unposted_allowed: "true" | "false";
7863
7912
  }): import("../types/api").RequestData<{
7864
7913
  id: string;
7865
7914
  number?: string | undefined;
@@ -7892,7 +7941,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7892
7941
  description?: string | undefined;
7893
7942
  }[];
7894
7943
  pdf?: string | undefined;
7895
- }, params: {
7944
+ }, params?: {
7896
7945
  financial_counterpart_account?: string | undefined;
7897
7946
  folder_id?: string | undefined;
7898
7947
  } | undefined): import("../types/api").RequestData<{
@@ -7926,7 +7975,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7926
7975
  description?: string | undefined;
7927
7976
  }[];
7928
7977
  pdf?: string | undefined;
7929
- }, params: {
7978
+ }, params?: {
7930
7979
  financial_counterpart_account?: string | undefined;
7931
7980
  folder_id?: string | undefined;
7932
7981
  } | undefined): import("../types/api").RequestData<{
@@ -8025,7 +8074,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8025
8074
  }[];
8026
8075
  pdf?: string | undefined;
8027
8076
  posted?: boolean | undefined;
8028
- }, params: {
8077
+ }, params?: {
8029
8078
  folder_id?: string | undefined;
8030
8079
  } | undefined): import("../types/api").RequestData<{
8031
8080
  reference?: string | undefined;
@@ -8060,7 +8109,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8060
8109
  matchEntries(body: {
8061
8110
  entries: string[];
8062
8111
  partner_id: string;
8063
- }, params: {
8112
+ }, params?: {
8064
8113
  folder_id?: string | undefined;
8065
8114
  } | undefined): import("../types/api").RequestData<{
8066
8115
  matching_number: string;
@@ -8073,14 +8122,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
8073
8122
  }[]>;
8074
8123
  }>;
8075
8124
  invoicing: import("../types/api").ApiFor<{
8076
- getInvoices(params: {
8077
- invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
8078
- payment_status?: "all" | "paid" | "unpaid" | undefined;
8125
+ getInvoices(params?: {
8079
8126
  date_from?: string | undefined;
8080
8127
  date_to?: string | undefined;
8128
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
8129
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
8081
8130
  updated_after?: string | undefined;
8082
- page?: number | undefined;
8083
- size?: number | undefined;
8084
8131
  } | undefined): import("../types/api").RequestData<{
8085
8132
  id: string;
8086
8133
  source_ref: {
@@ -8124,7 +8171,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8124
8171
  outstanding_amount?: number | undefined;
8125
8172
  last_updated_on?: string | undefined;
8126
8173
  }[]>;
8127
- getInvoiceById(invoiceId: string, params: {
8174
+ getInvoiceById(invoiceId: string, params?: {
8128
8175
  include_pdf?: "true" | "false" | undefined;
8129
8176
  } | undefined): import("../types/api").RequestData<{
8130
8177
  id: string;
@@ -8386,8 +8433,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
8386
8433
  }>;
8387
8434
  getContacts(params?: {
8388
8435
  contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
8389
- page?: number | undefined;
8390
- size?: number | undefined;
8391
8436
  } | undefined): import("../types/api").RequestData<{
8392
8437
  id: string;
8393
8438
  source_ref: {
@@ -8798,7 +8843,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
8798
8843
  id: string;
8799
8844
  name: string;
8800
8845
  }[]>;
8801
- getOrders(params: {}): import("../types/api").RequestData<{
8846
+ getOrders(params?: {
8847
+ date_from?: string | undefined;
8848
+ date_to?: string | undefined;
8849
+ updated_after?: string | undefined;
8850
+ include_detailed_refunds?: "true" | "false" | undefined;
8851
+ } | undefined): import("../types/api").RequestData<{
8802
8852
  id: string;
8803
8853
  source_ref: {
8804
8854
  id?: string | undefined;
@@ -9289,7 +9339,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9289
9339
  name?: string | undefined;
9290
9340
  }[] | undefined;
9291
9341
  }>;
9292
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
9342
+ getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
9293
9343
  id: string;
9294
9344
  source_ref: {
9295
9345
  id?: string | undefined;
@@ -9298,7 +9348,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
9298
9348
  name: string;
9299
9349
  active: boolean;
9300
9350
  }[]>;
9301
- getProductCategories(params: {}): import("../types/api").RequestData<{
9351
+ getProductCategories(params?: {
9352
+ only_parents?: "true" | "false" | undefined;
9353
+ } | undefined): import("../types/api").RequestData<{
9302
9354
  id: string;
9303
9355
  source_ref: {
9304
9356
  id?: string | undefined;
@@ -9307,7 +9359,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9307
9359
  name: string;
9308
9360
  parent_id?: string | undefined;
9309
9361
  }[]>;
9310
- getTaxes(params: {}): import("../types/api").RequestData<{
9362
+ getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
9311
9363
  id: string;
9312
9364
  source_ref: {
9313
9365
  id?: string | undefined;
@@ -9317,7 +9369,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9317
9369
  rate: number;
9318
9370
  country?: string | undefined;
9319
9371
  }[]>;
9320
- getCountries(params: {}): import("../types/api").RequestData<{
9372
+ getCountries(params?: {} | undefined): import("../types/api").RequestData<{
9321
9373
  code: string;
9322
9374
  name: string;
9323
9375
  }[]>;
@@ -9412,6 +9464,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
9412
9464
  }[]>;
9413
9465
  deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
9414
9466
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
9467
+ setConnectionId: (connectionId: string) => Promise<void>;
9468
+ setIntegrationId: (integrationId: string) => Promise<void>;
9415
9469
  }>;
9416
9470
  getConsumersByName: (consumerName: string) => Promise<{
9417
9471
  consumerId: string;
@@ -9534,7 +9588,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
9534
9588
  total: number;
9535
9589
  }[] | undefined;
9536
9590
  }[]>;
9537
- getCustomers(params: {}): import("../types/api").RequestData<{
9591
+ getCustomers(params?: {
9592
+ search?: string | undefined;
9593
+ email?: string | undefined;
9594
+ phone?: string | undefined;
9595
+ } | undefined): import("../types/api").RequestData<{
9538
9596
  id: string;
9539
9597
  first_name?: string | undefined;
9540
9598
  last_name?: string | undefined;
@@ -9659,12 +9717,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
9659
9717
  loyalty?: number | undefined;
9660
9718
  birthdate?: string | undefined;
9661
9719
  }>;
9662
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
9720
+ getPaymentMethods(params?: {
9721
+ location_id?: string | undefined;
9722
+ } | undefined): import("../types/api").RequestData<{
9663
9723
  id: string;
9664
9724
  name: string;
9665
9725
  extra?: string | undefined;
9666
9726
  }[]>;
9667
- getProductCategories(params: {}): import("../types/api").RequestData<{
9727
+ getProductCategories(params?: {
9728
+ location_id?: string | undefined;
9729
+ only_parents?: "true" | "false" | undefined;
9730
+ } | undefined): import("../types/api").RequestData<{
9668
9731
  id: string;
9669
9732
  source_ref: {
9670
9733
  id?: string | undefined;
@@ -9673,7 +9736,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
9673
9736
  name: string;
9674
9737
  parent_id?: string | undefined;
9675
9738
  }[]>;
9676
- getProducts(params: {}): import("../types/api").RequestData<{
9739
+ getProducts(params?: {
9740
+ location_id?: string | undefined;
9741
+ } | undefined): import("../types/api").RequestData<{
9677
9742
  id: string;
9678
9743
  categories?: string[] | undefined;
9679
9744
  name: string;
@@ -9697,7 +9762,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9697
9762
  total: number;
9698
9763
  }[] | undefined;
9699
9764
  }>;
9700
- getClosure(date: string, params: {
9765
+ getClosure(date: string, params?: {
9701
9766
  location_id?: string | undefined;
9702
9767
  } | undefined): import("../types/api").RequestData<{
9703
9768
  date: string;
@@ -9766,7 +9831,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9766
9831
  total: number;
9767
9832
  }[] | undefined;
9768
9833
  }>;
9769
- getAccountingCategories(params: {}): import("../types/api").RequestData<{
9834
+ getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
9770
9835
  id: string;
9771
9836
  name: string;
9772
9837
  id_parent?: string | undefined;
@@ -9776,19 +9841,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
9776
9841
  }[]>;
9777
9842
  }>;
9778
9843
  accounting: import("../types/api").ApiFor<{
9779
- getAnalyticPlans(params: {
9844
+ getAnalyticPlans(params?: {
9780
9845
  folder_id?: string | undefined;
9781
- page?: number | undefined;
9782
- size?: number | undefined;
9783
9846
  } | undefined): import("../types/api").RequestData<{
9784
9847
  id: string;
9785
9848
  name: string;
9786
9849
  active?: boolean | undefined;
9787
9850
  }[]>;
9788
- getClients(params: {
9851
+ getClients(params?: {
9789
9852
  folder_id?: string | undefined;
9790
- page?: number | undefined;
9791
- size?: number | undefined;
9792
9853
  } | undefined): import("../types/api").RequestData<{
9793
9854
  external_reference?: string | undefined;
9794
9855
  first_name?: string | undefined;
@@ -9858,7 +9919,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9858
9919
  country: string;
9859
9920
  }[];
9860
9921
  account_number?: string | undefined;
9861
- }, params: {
9922
+ }, params?: {
9862
9923
  force_merge?: string | undefined;
9863
9924
  folder_id?: string | undefined;
9864
9925
  } | undefined): import("../types/api").RequestData<{
@@ -9897,7 +9958,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9897
9958
  company_number?: string | undefined;
9898
9959
  id?: string | undefined;
9899
9960
  }>;
9900
- getClient(clientId: string, params: {
9961
+ getClient(clientId: string, params?: {
9901
9962
  folder_id?: string | undefined;
9902
9963
  } | undefined): import("../types/api").RequestData<{
9903
9964
  external_reference?: string | undefined;
@@ -9967,7 +10028,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9967
10028
  postal_code?: string | undefined;
9968
10029
  country?: string | undefined;
9969
10030
  }[] | undefined;
9970
- }, params: {
10031
+ }, params?: {
9971
10032
  folder_id?: string | undefined;
9972
10033
  } | undefined): import("../types/api").RequestData<{
9973
10034
  external_reference?: string | undefined;
@@ -10005,10 +10066,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
10005
10066
  company_number?: string | undefined;
10006
10067
  id?: string | undefined;
10007
10068
  }>;
10008
- getSuppliers(params: {
10069
+ getSuppliers(params?: {
10009
10070
  folder_id?: string | undefined;
10010
- page?: number | undefined;
10011
- size?: number | undefined;
10012
10071
  } | undefined): import("../types/api").RequestData<{
10013
10072
  external_reference?: string | undefined;
10014
10073
  first_name?: string | undefined;
@@ -10078,7 +10137,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10078
10137
  country: string;
10079
10138
  }[];
10080
10139
  account_number?: string | undefined;
10081
- }, params: {
10140
+ }, params?: {
10082
10141
  force_merge?: string | undefined;
10083
10142
  folder_id?: string | undefined;
10084
10143
  } | undefined): import("../types/api").RequestData<{
@@ -10117,7 +10176,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10117
10176
  company_number?: string | undefined;
10118
10177
  id?: string | undefined;
10119
10178
  }>;
10120
- getSupplier(supplierId: string, params: {
10179
+ getSupplier(supplierId: string, params?: {
10121
10180
  folder_id?: string | undefined;
10122
10181
  } | undefined): import("../types/api").RequestData<{
10123
10182
  external_reference?: string | undefined;
@@ -10187,7 +10246,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10187
10246
  postal_code?: string | undefined;
10188
10247
  country?: string | undefined;
10189
10248
  }[] | undefined;
10190
- }, params: {
10249
+ }, params?: {
10191
10250
  folder_id?: string | undefined;
10192
10251
  } | undefined): import("../types/api").RequestData<{
10193
10252
  external_reference?: string | undefined;
@@ -10272,7 +10331,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10272
10331
  tax_code: string;
10273
10332
  analytic_account?: string | undefined;
10274
10333
  }[];
10275
- }, params: {
10334
+ }, params?: {
10276
10335
  force_financial_period?: string | undefined;
10277
10336
  regroup_lines?: "true" | "false" | undefined;
10278
10337
  folder_id?: string | undefined;
@@ -10374,7 +10433,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10374
10433
  }[];
10375
10434
  }[] | undefined;
10376
10435
  }[];
10377
- }, params: {
10436
+ }, params?: {
10378
10437
  force_financial_period?: string | undefined;
10379
10438
  regroup_lines?: "true" | "false" | undefined;
10380
10439
  folder_id?: string | undefined;
@@ -10429,7 +10488,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
10429
10488
  }[] | undefined;
10430
10489
  }[];
10431
10490
  }>;
10432
- getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
10491
+ getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
10492
+ date_from?: string | undefined;
10493
+ date_to?: string | undefined;
10494
+ folder_id?: string | undefined;
10495
+ journal_ids?: string | undefined;
10496
+ include_payments?: "true" | "false" | undefined;
10497
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
10498
+ } | undefined): import("../types/api").RequestData<{
10433
10499
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10434
10500
  invoice_number?: string | undefined;
10435
10501
  currency: string;
@@ -10474,7 +10540,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10474
10540
  analytic_account?: string | undefined;
10475
10541
  }[];
10476
10542
  }[]>;
10477
- getInvoice(invoiceId: string, params: {
10543
+ getInvoice(invoiceId: string, params?: {
10478
10544
  include_payments?: "true" | "false" | undefined;
10479
10545
  folder_id?: string | undefined;
10480
10546
  } | undefined): import("../types/api").RequestData<{
@@ -10522,7 +10588,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10522
10588
  analytic_account?: string | undefined;
10523
10589
  }[];
10524
10590
  }>;
10525
- getInvoiceWithMultiplePlans(invoiceId: string, params: {
10591
+ getInvoiceWithMultiplePlans(invoiceId: string, params?: {
10526
10592
  include_payments?: "true" | "false" | undefined;
10527
10593
  folder_id?: string | undefined;
10528
10594
  } | undefined): import("../types/api").RequestData<{
@@ -10576,7 +10642,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
10576
10642
  }[] | undefined;
10577
10643
  }[];
10578
10644
  }>;
10579
- getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
10645
+ getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
10646
+ date_from?: string | undefined;
10647
+ date_to?: string | undefined;
10648
+ folder_id?: string | undefined;
10649
+ journal_ids?: string | undefined;
10650
+ include_payments?: "true" | "false" | undefined;
10651
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
10652
+ } | undefined): import("../types/api").RequestData<{
10580
10653
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10581
10654
  invoice_number?: string | undefined;
10582
10655
  currency: string;
@@ -10632,7 +10705,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10632
10705
  code: string;
10633
10706
  name: string;
10634
10707
  currency: string;
10635
- }, params: {
10708
+ }, params?: {
10636
10709
  folder_id?: string | undefined;
10637
10710
  } | undefined): import("../types/api").RequestData<{
10638
10711
  id: string;
@@ -10644,10 +10717,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
10644
10717
  credit?: number | undefined;
10645
10718
  debit?: number | undefined;
10646
10719
  }>;
10647
- getAnalyticAccounts(params: {
10720
+ getAnalyticAccounts(params?: {
10648
10721
  folder_id?: string | undefined;
10649
- page?: number | undefined;
10650
- size?: number | undefined;
10651
10722
  } | undefined): import("../types/api").RequestData<{
10652
10723
  id: string;
10653
10724
  active: boolean;
@@ -10663,7 +10734,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10663
10734
  code: string;
10664
10735
  name: string;
10665
10736
  currency: string;
10666
- }, params: {
10737
+ }, params?: {
10667
10738
  folder_id?: string | undefined;
10668
10739
  } | undefined): import("../types/api").RequestData<{
10669
10740
  id: string;
@@ -10676,7 +10747,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10676
10747
  debit?: number | undefined;
10677
10748
  analytic_plan: string;
10678
10749
  }>;
10679
- getAnalyticAccount(analytic_account_id: string, params: {
10750
+ getAnalyticAccount(analytic_account_id: string, params?: {
10680
10751
  folder_id?: string | undefined;
10681
10752
  } | undefined): import("../types/api").RequestData<{
10682
10753
  id: string;
@@ -10693,7 +10764,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10693
10764
  code?: string | undefined;
10694
10765
  name?: string | undefined;
10695
10766
  currency?: string | undefined;
10696
- }, params: {
10767
+ }, params?: {
10697
10768
  folder_id?: string | undefined;
10698
10769
  } | undefined): import("../types/api").RequestData<{
10699
10770
  id: string;
@@ -10705,7 +10776,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10705
10776
  credit?: number | undefined;
10706
10777
  debit?: number | undefined;
10707
10778
  }>;
10708
- getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
10779
+ getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
10709
10780
  folder_id?: string | undefined;
10710
10781
  } | undefined): import("../types/api").RequestData<{
10711
10782
  id: string;
@@ -10723,7 +10794,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10723
10794
  code?: string | undefined;
10724
10795
  name?: string | undefined;
10725
10796
  currency?: string | undefined;
10726
- }, params: {
10797
+ }, params?: {
10727
10798
  folder_id?: string | undefined;
10728
10799
  } | undefined): import("../types/api").RequestData<{
10729
10800
  id: string;
@@ -10736,10 +10807,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
10736
10807
  debit?: number | undefined;
10737
10808
  analytic_plan: string;
10738
10809
  }>;
10739
- getAnalyticAccountsWithMultiplePlans(params: {
10810
+ getAnalyticAccountsWithMultiplePlans(params?: {
10740
10811
  folder_id?: string | undefined;
10741
- page?: number | undefined;
10742
- size?: number | undefined;
10743
10812
  } | undefined): import("../types/api").RequestData<{
10744
10813
  id: string;
10745
10814
  active: boolean;
@@ -10820,7 +10889,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10820
10889
  }[] | undefined;
10821
10890
  }[] | undefined;
10822
10891
  }[]>;
10823
- getPaymentsByInvoiceId(invoice_id: string, params: {
10892
+ getPaymentsByInvoiceId(invoice_id: string, params?: {
10824
10893
  folder_id?: string | undefined;
10825
10894
  page?: number | undefined;
10826
10895
  size?: number | undefined;
@@ -10838,20 +10907,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
10838
10907
  communication?: string | undefined;
10839
10908
  matching_number?: string | undefined;
10840
10909
  }[]>;
10841
- getJournals(params: {
10910
+ getJournals(params?: {
10842
10911
  folder_id?: string | undefined;
10843
- page?: number | undefined;
10844
- size?: number | undefined;
10845
10912
  } | undefined): import("../types/api").RequestData<{
10846
10913
  id: string;
10847
10914
  code?: string | undefined;
10848
10915
  name: string;
10849
10916
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
10850
10917
  }[]>;
10851
- getVatCodes(params: {
10918
+ getVatCodes(params?: {
10852
10919
  folder_id?: string | undefined;
10853
- page?: number | undefined;
10854
- size?: number | undefined;
10855
10920
  } | undefined): import("../types/api").RequestData<{
10856
10921
  id: string;
10857
10922
  code?: string | undefined;
@@ -10862,7 +10927,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
10862
10927
  deductible_account?: string | undefined;
10863
10928
  payable_account?: string | undefined;
10864
10929
  }[]>;
10865
- getMiscOperations(params: {}): import("../types/api").RequestData<{
10930
+ getMiscOperations(params?: {
10931
+ date_from?: string | undefined;
10932
+ date_to?: string | undefined;
10933
+ folder_id?: string | undefined;
10934
+ journal_ids?: string | undefined;
10935
+ } | undefined): import("../types/api").RequestData<{
10866
10936
  operation_number?: string | undefined;
10867
10937
  currency: string;
10868
10938
  currency_exchange_rate?: number | undefined;
@@ -10896,7 +10966,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10896
10966
  operation_date: string;
10897
10967
  journal_id?: string | undefined;
10898
10968
  status?: "draft" | "posted" | undefined;
10899
- }, params: {
10969
+ }, params?: {
10900
10970
  folder_id?: string | undefined;
10901
10971
  } | undefined): import("../types/api").RequestData<{
10902
10972
  operation_number?: string | undefined;
@@ -10916,7 +10986,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10916
10986
  status: "cancelled" | "draft" | "posted" | "matched";
10917
10987
  id: string;
10918
10988
  }>;
10919
- getMiscOperation(operation_id: string, params: {
10989
+ getMiscOperation(operation_id: string, params?: {
10920
10990
  folder_id?: string | undefined;
10921
10991
  } | undefined): import("../types/api").RequestData<{
10922
10992
  operation_number?: string | undefined;
@@ -10938,24 +11008,25 @@ declare const Consumers: (internalApi: InternalAPI) => {
10938
11008
  }>;
10939
11009
  attachPDF(invoice_id: string, attachment: {
10940
11010
  base64_string: string;
10941
- }, params: {
11011
+ }, params?: {
10942
11012
  overwrite_existing?: "true" | "false" | undefined;
10943
11013
  folder_id?: string | undefined;
10944
11014
  } | undefined): import("../types/api").RequestData<{
10945
11015
  content: {
10946
- "application/json": unknown;
11016
+ 'application/json': unknown;
10947
11017
  };
10948
11018
  }>;
10949
11019
  getAttachments(params: {
11020
+ folder_id?: string | undefined;
10950
11021
  type: "invoice" | "entry";
10951
11022
  document_id: string;
10952
- folder_id?: string | undefined;
10953
- page?: number | undefined;
10954
- size?: number | undefined;
10955
11023
  }): import("../types/api").RequestData<{
10956
11024
  base64_string: string;
10957
11025
  }[]>;
10958
- getChartOfAccounts(params: {}): import("../types/api").RequestData<{
11026
+ getChartOfAccounts(params?: {
11027
+ classes?: string | undefined;
11028
+ folder_id?: string | undefined;
11029
+ } | undefined): import("../types/api").RequestData<{
10959
11030
  number: string;
10960
11031
  name: string;
10961
11032
  active?: boolean | undefined;
@@ -10965,10 +11036,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
10965
11036
  accounts: string[];
10966
11037
  start?: string | undefined;
10967
11038
  end: string;
10968
- }, params: {
11039
+ }, params?: {
10969
11040
  folder_id?: string | undefined;
10970
- page?: number | undefined;
10971
- size?: number | undefined;
10972
11041
  } | undefined): import("../types/api").RequestData<{
10973
11042
  account_number: string;
10974
11043
  account_name?: string | undefined;
@@ -10976,10 +11045,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
10976
11045
  credit: number;
10977
11046
  balance: number;
10978
11047
  }[]>;
10979
- getEmployees(params: {
11048
+ getEmployees(params?: {
10980
11049
  folder_id?: string | undefined;
10981
- page?: number | undefined;
10982
- size?: number | undefined;
10983
11050
  } | undefined): import("../types/api").RequestData<{
10984
11051
  id: string;
10985
11052
  name: string;
@@ -10995,8 +11062,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
10995
11062
  }[]>;
10996
11063
  getOutstandings(params: {
10997
11064
  folder_id?: string | undefined;
10998
- unposted_allowed: "true" | "false";
10999
11065
  type: "supplier" | "client";
11066
+ unposted_allowed: "true" | "false";
11000
11067
  }): import("../types/api").RequestData<{
11001
11068
  id: string;
11002
11069
  number?: string | undefined;
@@ -11029,7 +11096,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
11029
11096
  description?: string | undefined;
11030
11097
  }[];
11031
11098
  pdf?: string | undefined;
11032
- }, params: {
11099
+ }, params?: {
11033
11100
  financial_counterpart_account?: string | undefined;
11034
11101
  folder_id?: string | undefined;
11035
11102
  } | undefined): import("../types/api").RequestData<{
@@ -11063,7 +11130,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
11063
11130
  description?: string | undefined;
11064
11131
  }[];
11065
11132
  pdf?: string | undefined;
11066
- }, params: {
11133
+ }, params?: {
11067
11134
  financial_counterpart_account?: string | undefined;
11068
11135
  folder_id?: string | undefined;
11069
11136
  } | undefined): import("../types/api").RequestData<{
@@ -11162,7 +11229,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
11162
11229
  }[];
11163
11230
  pdf?: string | undefined;
11164
11231
  posted?: boolean | undefined;
11165
- }, params: {
11232
+ }, params?: {
11166
11233
  folder_id?: string | undefined;
11167
11234
  } | undefined): import("../types/api").RequestData<{
11168
11235
  reference?: string | undefined;
@@ -11197,7 +11264,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
11197
11264
  matchEntries(body: {
11198
11265
  entries: string[];
11199
11266
  partner_id: string;
11200
- }, params: {
11267
+ }, params?: {
11201
11268
  folder_id?: string | undefined;
11202
11269
  } | undefined): import("../types/api").RequestData<{
11203
11270
  matching_number: string;
@@ -11210,14 +11277,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
11210
11277
  }[]>;
11211
11278
  }>;
11212
11279
  invoicing: import("../types/api").ApiFor<{
11213
- getInvoices(params: {
11214
- invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
11215
- payment_status?: "all" | "paid" | "unpaid" | undefined;
11280
+ getInvoices(params?: {
11216
11281
  date_from?: string | undefined;
11217
11282
  date_to?: string | undefined;
11283
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
11284
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
11218
11285
  updated_after?: string | undefined;
11219
- page?: number | undefined;
11220
- size?: number | undefined;
11221
11286
  } | undefined): import("../types/api").RequestData<{
11222
11287
  id: string;
11223
11288
  source_ref: {
@@ -11261,7 +11326,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
11261
11326
  outstanding_amount?: number | undefined;
11262
11327
  last_updated_on?: string | undefined;
11263
11328
  }[]>;
11264
- getInvoiceById(invoiceId: string, params: {
11329
+ getInvoiceById(invoiceId: string, params?: {
11265
11330
  include_pdf?: "true" | "false" | undefined;
11266
11331
  } | undefined): import("../types/api").RequestData<{
11267
11332
  id: string;
@@ -11523,8 +11588,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
11523
11588
  }>;
11524
11589
  getContacts(params?: {
11525
11590
  contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
11526
- page?: number | undefined;
11527
- size?: number | undefined;
11528
11591
  } | undefined): import("../types/api").RequestData<{
11529
11592
  id: string;
11530
11593
  source_ref: {
@@ -11935,7 +11998,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
11935
11998
  id: string;
11936
11999
  name: string;
11937
12000
  }[]>;
11938
- getOrders(params: {}): import("../types/api").RequestData<{
12001
+ getOrders(params?: {
12002
+ date_from?: string | undefined;
12003
+ date_to?: string | undefined;
12004
+ updated_after?: string | undefined;
12005
+ include_detailed_refunds?: "true" | "false" | undefined;
12006
+ } | undefined): import("../types/api").RequestData<{
11939
12007
  id: string;
11940
12008
  source_ref: {
11941
12009
  id?: string | undefined;
@@ -12426,7 +12494,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
12426
12494
  name?: string | undefined;
12427
12495
  }[] | undefined;
12428
12496
  }>;
12429
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
12497
+ getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
12430
12498
  id: string;
12431
12499
  source_ref: {
12432
12500
  id?: string | undefined;
@@ -12435,7 +12503,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
12435
12503
  name: string;
12436
12504
  active: boolean;
12437
12505
  }[]>;
12438
- getProductCategories(params: {}): import("../types/api").RequestData<{
12506
+ getProductCategories(params?: {
12507
+ only_parents?: "true" | "false" | undefined;
12508
+ } | undefined): import("../types/api").RequestData<{
12439
12509
  id: string;
12440
12510
  source_ref: {
12441
12511
  id?: string | undefined;
@@ -12444,7 +12514,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
12444
12514
  name: string;
12445
12515
  parent_id?: string | undefined;
12446
12516
  }[]>;
12447
- getTaxes(params: {}): import("../types/api").RequestData<{
12517
+ getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
12448
12518
  id: string;
12449
12519
  source_ref: {
12450
12520
  id?: string | undefined;
@@ -12454,7 +12524,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
12454
12524
  rate: number;
12455
12525
  country?: string | undefined;
12456
12526
  }[]>;
12457
- getCountries(params: {}): import("../types/api").RequestData<{
12527
+ getCountries(params?: {} | undefined): import("../types/api").RequestData<{
12458
12528
  code: string;
12459
12529
  name: string;
12460
12530
  }[]>;
@@ -12549,6 +12619,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
12549
12619
  }[]>;
12550
12620
  deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
12551
12621
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
12622
+ setConnectionId: (connectionId: string) => Promise<void>;
12623
+ setIntegrationId: (integrationId: string) => Promise<void>;
12552
12624
  }[]>;
12553
12625
  updateConsumerById: (consumerId: string, body: operations[chiftOperations['updateConsumer']]['requestBody']['content']['application/json']) => Promise<{
12554
12626
  consumerId: string;
@@ -12671,7 +12743,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
12671
12743
  total: number;
12672
12744
  }[] | undefined;
12673
12745
  }[]>;
12674
- getCustomers(params: {}): import("../types/api").RequestData<{
12746
+ getCustomers(params?: {
12747
+ search?: string | undefined;
12748
+ email?: string | undefined;
12749
+ phone?: string | undefined;
12750
+ } | undefined): import("../types/api").RequestData<{
12675
12751
  id: string;
12676
12752
  first_name?: string | undefined;
12677
12753
  last_name?: string | undefined;
@@ -12796,12 +12872,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
12796
12872
  loyalty?: number | undefined;
12797
12873
  birthdate?: string | undefined;
12798
12874
  }>;
12799
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
12875
+ getPaymentMethods(params?: {
12876
+ location_id?: string | undefined;
12877
+ } | undefined): import("../types/api").RequestData<{
12800
12878
  id: string;
12801
12879
  name: string;
12802
12880
  extra?: string | undefined;
12803
12881
  }[]>;
12804
- getProductCategories(params: {}): import("../types/api").RequestData<{
12882
+ getProductCategories(params?: {
12883
+ location_id?: string | undefined;
12884
+ only_parents?: "true" | "false" | undefined;
12885
+ } | undefined): import("../types/api").RequestData<{
12805
12886
  id: string;
12806
12887
  source_ref: {
12807
12888
  id?: string | undefined;
@@ -12810,7 +12891,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
12810
12891
  name: string;
12811
12892
  parent_id?: string | undefined;
12812
12893
  }[]>;
12813
- getProducts(params: {}): import("../types/api").RequestData<{
12894
+ getProducts(params?: {
12895
+ location_id?: string | undefined;
12896
+ } | undefined): import("../types/api").RequestData<{
12814
12897
  id: string;
12815
12898
  categories?: string[] | undefined;
12816
12899
  name: string;
@@ -12834,7 +12917,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
12834
12917
  total: number;
12835
12918
  }[] | undefined;
12836
12919
  }>;
12837
- getClosure(date: string, params: {
12920
+ getClosure(date: string, params?: {
12838
12921
  location_id?: string | undefined;
12839
12922
  } | undefined): import("../types/api").RequestData<{
12840
12923
  date: string;
@@ -12903,7 +12986,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
12903
12986
  total: number;
12904
12987
  }[] | undefined;
12905
12988
  }>;
12906
- getAccountingCategories(params: {}): import("../types/api").RequestData<{
12989
+ getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
12907
12990
  id: string;
12908
12991
  name: string;
12909
12992
  id_parent?: string | undefined;
@@ -12913,19 +12996,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
12913
12996
  }[]>;
12914
12997
  }>;
12915
12998
  accounting: import("../types/api").ApiFor<{
12916
- getAnalyticPlans(params: {
12999
+ getAnalyticPlans(params?: {
12917
13000
  folder_id?: string | undefined;
12918
- page?: number | undefined;
12919
- size?: number | undefined;
12920
13001
  } | undefined): import("../types/api").RequestData<{
12921
13002
  id: string;
12922
13003
  name: string;
12923
13004
  active?: boolean | undefined;
12924
13005
  }[]>;
12925
- getClients(params: {
13006
+ getClients(params?: {
12926
13007
  folder_id?: string | undefined;
12927
- page?: number | undefined;
12928
- size?: number | undefined;
12929
13008
  } | undefined): import("../types/api").RequestData<{
12930
13009
  external_reference?: string | undefined;
12931
13010
  first_name?: string | undefined;
@@ -12995,7 +13074,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
12995
13074
  country: string;
12996
13075
  }[];
12997
13076
  account_number?: string | undefined;
12998
- }, params: {
13077
+ }, params?: {
12999
13078
  force_merge?: string | undefined;
13000
13079
  folder_id?: string | undefined;
13001
13080
  } | undefined): import("../types/api").RequestData<{
@@ -13034,7 +13113,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13034
13113
  company_number?: string | undefined;
13035
13114
  id?: string | undefined;
13036
13115
  }>;
13037
- getClient(clientId: string, params: {
13116
+ getClient(clientId: string, params?: {
13038
13117
  folder_id?: string | undefined;
13039
13118
  } | undefined): import("../types/api").RequestData<{
13040
13119
  external_reference?: string | undefined;
@@ -13104,7 +13183,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13104
13183
  postal_code?: string | undefined;
13105
13184
  country?: string | undefined;
13106
13185
  }[] | undefined;
13107
- }, params: {
13186
+ }, params?: {
13108
13187
  folder_id?: string | undefined;
13109
13188
  } | undefined): import("../types/api").RequestData<{
13110
13189
  external_reference?: string | undefined;
@@ -13142,10 +13221,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
13142
13221
  company_number?: string | undefined;
13143
13222
  id?: string | undefined;
13144
13223
  }>;
13145
- getSuppliers(params: {
13224
+ getSuppliers(params?: {
13146
13225
  folder_id?: string | undefined;
13147
- page?: number | undefined;
13148
- size?: number | undefined;
13149
13226
  } | undefined): import("../types/api").RequestData<{
13150
13227
  external_reference?: string | undefined;
13151
13228
  first_name?: string | undefined;
@@ -13215,7 +13292,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13215
13292
  country: string;
13216
13293
  }[];
13217
13294
  account_number?: string | undefined;
13218
- }, params: {
13295
+ }, params?: {
13219
13296
  force_merge?: string | undefined;
13220
13297
  folder_id?: string | undefined;
13221
13298
  } | undefined): import("../types/api").RequestData<{
@@ -13254,7 +13331,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13254
13331
  company_number?: string | undefined;
13255
13332
  id?: string | undefined;
13256
13333
  }>;
13257
- getSupplier(supplierId: string, params: {
13334
+ getSupplier(supplierId: string, params?: {
13258
13335
  folder_id?: string | undefined;
13259
13336
  } | undefined): import("../types/api").RequestData<{
13260
13337
  external_reference?: string | undefined;
@@ -13324,7 +13401,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13324
13401
  postal_code?: string | undefined;
13325
13402
  country?: string | undefined;
13326
13403
  }[] | undefined;
13327
- }, params: {
13404
+ }, params?: {
13328
13405
  folder_id?: string | undefined;
13329
13406
  } | undefined): import("../types/api").RequestData<{
13330
13407
  external_reference?: string | undefined;
@@ -13409,7 +13486,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13409
13486
  tax_code: string;
13410
13487
  analytic_account?: string | undefined;
13411
13488
  }[];
13412
- }, params: {
13489
+ }, params?: {
13413
13490
  force_financial_period?: string | undefined;
13414
13491
  regroup_lines?: "true" | "false" | undefined;
13415
13492
  folder_id?: string | undefined;
@@ -13511,7 +13588,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13511
13588
  }[];
13512
13589
  }[] | undefined;
13513
13590
  }[];
13514
- }, params: {
13591
+ }, params?: {
13515
13592
  force_financial_period?: string | undefined;
13516
13593
  regroup_lines?: "true" | "false" | undefined;
13517
13594
  folder_id?: string | undefined;
@@ -13566,7 +13643,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
13566
13643
  }[] | undefined;
13567
13644
  }[];
13568
13645
  }>;
13569
- getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
13646
+ getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
13647
+ date_from?: string | undefined;
13648
+ date_to?: string | undefined;
13649
+ folder_id?: string | undefined;
13650
+ journal_ids?: string | undefined;
13651
+ include_payments?: "true" | "false" | undefined;
13652
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
13653
+ } | undefined): import("../types/api").RequestData<{
13570
13654
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
13571
13655
  invoice_number?: string | undefined;
13572
13656
  currency: string;
@@ -13611,7 +13695,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13611
13695
  analytic_account?: string | undefined;
13612
13696
  }[];
13613
13697
  }[]>;
13614
- getInvoice(invoiceId: string, params: {
13698
+ getInvoice(invoiceId: string, params?: {
13615
13699
  include_payments?: "true" | "false" | undefined;
13616
13700
  folder_id?: string | undefined;
13617
13701
  } | undefined): import("../types/api").RequestData<{
@@ -13659,7 +13743,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13659
13743
  analytic_account?: string | undefined;
13660
13744
  }[];
13661
13745
  }>;
13662
- getInvoiceWithMultiplePlans(invoiceId: string, params: {
13746
+ getInvoiceWithMultiplePlans(invoiceId: string, params?: {
13663
13747
  include_payments?: "true" | "false" | undefined;
13664
13748
  folder_id?: string | undefined;
13665
13749
  } | undefined): import("../types/api").RequestData<{
@@ -13713,7 +13797,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
13713
13797
  }[] | undefined;
13714
13798
  }[];
13715
13799
  }>;
13716
- getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
13800
+ getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
13801
+ date_from?: string | undefined;
13802
+ date_to?: string | undefined;
13803
+ folder_id?: string | undefined;
13804
+ journal_ids?: string | undefined;
13805
+ include_payments?: "true" | "false" | undefined;
13806
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
13807
+ } | undefined): import("../types/api").RequestData<{
13717
13808
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
13718
13809
  invoice_number?: string | undefined;
13719
13810
  currency: string;
@@ -13769,7 +13860,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13769
13860
  code: string;
13770
13861
  name: string;
13771
13862
  currency: string;
13772
- }, params: {
13863
+ }, params?: {
13773
13864
  folder_id?: string | undefined;
13774
13865
  } | undefined): import("../types/api").RequestData<{
13775
13866
  id: string;
@@ -13781,10 +13872,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
13781
13872
  credit?: number | undefined;
13782
13873
  debit?: number | undefined;
13783
13874
  }>;
13784
- getAnalyticAccounts(params: {
13875
+ getAnalyticAccounts(params?: {
13785
13876
  folder_id?: string | undefined;
13786
- page?: number | undefined;
13787
- size?: number | undefined;
13788
13877
  } | undefined): import("../types/api").RequestData<{
13789
13878
  id: string;
13790
13879
  active: boolean;
@@ -13800,7 +13889,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13800
13889
  code: string;
13801
13890
  name: string;
13802
13891
  currency: string;
13803
- }, params: {
13892
+ }, params?: {
13804
13893
  folder_id?: string | undefined;
13805
13894
  } | undefined): import("../types/api").RequestData<{
13806
13895
  id: string;
@@ -13813,7 +13902,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13813
13902
  debit?: number | undefined;
13814
13903
  analytic_plan: string;
13815
13904
  }>;
13816
- getAnalyticAccount(analytic_account_id: string, params: {
13905
+ getAnalyticAccount(analytic_account_id: string, params?: {
13817
13906
  folder_id?: string | undefined;
13818
13907
  } | undefined): import("../types/api").RequestData<{
13819
13908
  id: string;
@@ -13830,7 +13919,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13830
13919
  code?: string | undefined;
13831
13920
  name?: string | undefined;
13832
13921
  currency?: string | undefined;
13833
- }, params: {
13922
+ }, params?: {
13834
13923
  folder_id?: string | undefined;
13835
13924
  } | undefined): import("../types/api").RequestData<{
13836
13925
  id: string;
@@ -13842,7 +13931,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13842
13931
  credit?: number | undefined;
13843
13932
  debit?: number | undefined;
13844
13933
  }>;
13845
- getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
13934
+ getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
13846
13935
  folder_id?: string | undefined;
13847
13936
  } | undefined): import("../types/api").RequestData<{
13848
13937
  id: string;
@@ -13860,7 +13949,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13860
13949
  code?: string | undefined;
13861
13950
  name?: string | undefined;
13862
13951
  currency?: string | undefined;
13863
- }, params: {
13952
+ }, params?: {
13864
13953
  folder_id?: string | undefined;
13865
13954
  } | undefined): import("../types/api").RequestData<{
13866
13955
  id: string;
@@ -13873,10 +13962,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
13873
13962
  debit?: number | undefined;
13874
13963
  analytic_plan: string;
13875
13964
  }>;
13876
- getAnalyticAccountsWithMultiplePlans(params: {
13965
+ getAnalyticAccountsWithMultiplePlans(params?: {
13877
13966
  folder_id?: string | undefined;
13878
- page?: number | undefined;
13879
- size?: number | undefined;
13880
13967
  } | undefined): import("../types/api").RequestData<{
13881
13968
  id: string;
13882
13969
  active: boolean;
@@ -13957,7 +14044,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13957
14044
  }[] | undefined;
13958
14045
  }[] | undefined;
13959
14046
  }[]>;
13960
- getPaymentsByInvoiceId(invoice_id: string, params: {
14047
+ getPaymentsByInvoiceId(invoice_id: string, params?: {
13961
14048
  folder_id?: string | undefined;
13962
14049
  page?: number | undefined;
13963
14050
  size?: number | undefined;
@@ -13975,20 +14062,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
13975
14062
  communication?: string | undefined;
13976
14063
  matching_number?: string | undefined;
13977
14064
  }[]>;
13978
- getJournals(params: {
14065
+ getJournals(params?: {
13979
14066
  folder_id?: string | undefined;
13980
- page?: number | undefined;
13981
- size?: number | undefined;
13982
14067
  } | undefined): import("../types/api").RequestData<{
13983
14068
  id: string;
13984
14069
  code?: string | undefined;
13985
14070
  name: string;
13986
14071
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
13987
14072
  }[]>;
13988
- getVatCodes(params: {
14073
+ getVatCodes(params?: {
13989
14074
  folder_id?: string | undefined;
13990
- page?: number | undefined;
13991
- size?: number | undefined;
13992
14075
  } | undefined): import("../types/api").RequestData<{
13993
14076
  id: string;
13994
14077
  code?: string | undefined;
@@ -13999,7 +14082,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
13999
14082
  deductible_account?: string | undefined;
14000
14083
  payable_account?: string | undefined;
14001
14084
  }[]>;
14002
- getMiscOperations(params: {}): import("../types/api").RequestData<{
14085
+ getMiscOperations(params?: {
14086
+ date_from?: string | undefined;
14087
+ date_to?: string | undefined;
14088
+ folder_id?: string | undefined;
14089
+ journal_ids?: string | undefined;
14090
+ } | undefined): import("../types/api").RequestData<{
14003
14091
  operation_number?: string | undefined;
14004
14092
  currency: string;
14005
14093
  currency_exchange_rate?: number | undefined;
@@ -14033,7 +14121,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14033
14121
  operation_date: string;
14034
14122
  journal_id?: string | undefined;
14035
14123
  status?: "draft" | "posted" | undefined;
14036
- }, params: {
14124
+ }, params?: {
14037
14125
  folder_id?: string | undefined;
14038
14126
  } | undefined): import("../types/api").RequestData<{
14039
14127
  operation_number?: string | undefined;
@@ -14053,7 +14141,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14053
14141
  status: "cancelled" | "draft" | "posted" | "matched";
14054
14142
  id: string;
14055
14143
  }>;
14056
- getMiscOperation(operation_id: string, params: {
14144
+ getMiscOperation(operation_id: string, params?: {
14057
14145
  folder_id?: string | undefined;
14058
14146
  } | undefined): import("../types/api").RequestData<{
14059
14147
  operation_number?: string | undefined;
@@ -14075,24 +14163,25 @@ declare const Consumers: (internalApi: InternalAPI) => {
14075
14163
  }>;
14076
14164
  attachPDF(invoice_id: string, attachment: {
14077
14165
  base64_string: string;
14078
- }, params: {
14166
+ }, params?: {
14079
14167
  overwrite_existing?: "true" | "false" | undefined;
14080
14168
  folder_id?: string | undefined;
14081
14169
  } | undefined): import("../types/api").RequestData<{
14082
14170
  content: {
14083
- "application/json": unknown;
14171
+ 'application/json': unknown;
14084
14172
  };
14085
14173
  }>;
14086
14174
  getAttachments(params: {
14175
+ folder_id?: string | undefined;
14087
14176
  type: "invoice" | "entry";
14088
14177
  document_id: string;
14089
- folder_id?: string | undefined;
14090
- page?: number | undefined;
14091
- size?: number | undefined;
14092
14178
  }): import("../types/api").RequestData<{
14093
14179
  base64_string: string;
14094
14180
  }[]>;
14095
- getChartOfAccounts(params: {}): import("../types/api").RequestData<{
14181
+ getChartOfAccounts(params?: {
14182
+ classes?: string | undefined;
14183
+ folder_id?: string | undefined;
14184
+ } | undefined): import("../types/api").RequestData<{
14096
14185
  number: string;
14097
14186
  name: string;
14098
14187
  active?: boolean | undefined;
@@ -14102,10 +14191,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
14102
14191
  accounts: string[];
14103
14192
  start?: string | undefined;
14104
14193
  end: string;
14105
- }, params: {
14194
+ }, params?: {
14106
14195
  folder_id?: string | undefined;
14107
- page?: number | undefined;
14108
- size?: number | undefined;
14109
14196
  } | undefined): import("../types/api").RequestData<{
14110
14197
  account_number: string;
14111
14198
  account_name?: string | undefined;
@@ -14113,10 +14200,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
14113
14200
  credit: number;
14114
14201
  balance: number;
14115
14202
  }[]>;
14116
- getEmployees(params: {
14203
+ getEmployees(params?: {
14117
14204
  folder_id?: string | undefined;
14118
- page?: number | undefined;
14119
- size?: number | undefined;
14120
14205
  } | undefined): import("../types/api").RequestData<{
14121
14206
  id: string;
14122
14207
  name: string;
@@ -14132,8 +14217,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
14132
14217
  }[]>;
14133
14218
  getOutstandings(params: {
14134
14219
  folder_id?: string | undefined;
14135
- unposted_allowed: "true" | "false";
14136
14220
  type: "supplier" | "client";
14221
+ unposted_allowed: "true" | "false";
14137
14222
  }): import("../types/api").RequestData<{
14138
14223
  id: string;
14139
14224
  number?: string | undefined;
@@ -14166,7 +14251,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14166
14251
  description?: string | undefined;
14167
14252
  }[];
14168
14253
  pdf?: string | undefined;
14169
- }, params: {
14254
+ }, params?: {
14170
14255
  financial_counterpart_account?: string | undefined;
14171
14256
  folder_id?: string | undefined;
14172
14257
  } | undefined): import("../types/api").RequestData<{
@@ -14200,7 +14285,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14200
14285
  description?: string | undefined;
14201
14286
  }[];
14202
14287
  pdf?: string | undefined;
14203
- }, params: {
14288
+ }, params?: {
14204
14289
  financial_counterpart_account?: string | undefined;
14205
14290
  folder_id?: string | undefined;
14206
14291
  } | undefined): import("../types/api").RequestData<{
@@ -14299,7 +14384,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14299
14384
  }[];
14300
14385
  pdf?: string | undefined;
14301
14386
  posted?: boolean | undefined;
14302
- }, params: {
14387
+ }, params?: {
14303
14388
  folder_id?: string | undefined;
14304
14389
  } | undefined): import("../types/api").RequestData<{
14305
14390
  reference?: string | undefined;
@@ -14334,7 +14419,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14334
14419
  matchEntries(body: {
14335
14420
  entries: string[];
14336
14421
  partner_id: string;
14337
- }, params: {
14422
+ }, params?: {
14338
14423
  folder_id?: string | undefined;
14339
14424
  } | undefined): import("../types/api").RequestData<{
14340
14425
  matching_number: string;
@@ -14347,14 +14432,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
14347
14432
  }[]>;
14348
14433
  }>;
14349
14434
  invoicing: import("../types/api").ApiFor<{
14350
- getInvoices(params: {
14351
- invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
14352
- payment_status?: "all" | "paid" | "unpaid" | undefined;
14435
+ getInvoices(params?: {
14353
14436
  date_from?: string | undefined;
14354
14437
  date_to?: string | undefined;
14438
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
14439
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
14355
14440
  updated_after?: string | undefined;
14356
- page?: number | undefined;
14357
- size?: number | undefined;
14358
14441
  } | undefined): import("../types/api").RequestData<{
14359
14442
  id: string;
14360
14443
  source_ref: {
@@ -14398,7 +14481,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14398
14481
  outstanding_amount?: number | undefined;
14399
14482
  last_updated_on?: string | undefined;
14400
14483
  }[]>;
14401
- getInvoiceById(invoiceId: string, params: {
14484
+ getInvoiceById(invoiceId: string, params?: {
14402
14485
  include_pdf?: "true" | "false" | undefined;
14403
14486
  } | undefined): import("../types/api").RequestData<{
14404
14487
  id: string;
@@ -14660,8 +14743,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
14660
14743
  }>;
14661
14744
  getContacts(params?: {
14662
14745
  contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
14663
- page?: number | undefined;
14664
- size?: number | undefined;
14665
14746
  } | undefined): import("../types/api").RequestData<{
14666
14747
  id: string;
14667
14748
  source_ref: {
@@ -15072,7 +15153,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
15072
15153
  id: string;
15073
15154
  name: string;
15074
15155
  }[]>;
15075
- getOrders(params: {}): import("../types/api").RequestData<{
15156
+ getOrders(params?: {
15157
+ date_from?: string | undefined;
15158
+ date_to?: string | undefined;
15159
+ updated_after?: string | undefined;
15160
+ include_detailed_refunds?: "true" | "false" | undefined;
15161
+ } | undefined): import("../types/api").RequestData<{
15076
15162
  id: string;
15077
15163
  source_ref: {
15078
15164
  id?: string | undefined;
@@ -15563,7 +15649,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
15563
15649
  name?: string | undefined;
15564
15650
  }[] | undefined;
15565
15651
  }>;
15566
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
15652
+ getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
15567
15653
  id: string;
15568
15654
  source_ref: {
15569
15655
  id?: string | undefined;
@@ -15572,7 +15658,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
15572
15658
  name: string;
15573
15659
  active: boolean;
15574
15660
  }[]>;
15575
- getProductCategories(params: {}): import("../types/api").RequestData<{
15661
+ getProductCategories(params?: {
15662
+ only_parents?: "true" | "false" | undefined;
15663
+ } | undefined): import("../types/api").RequestData<{
15576
15664
  id: string;
15577
15665
  source_ref: {
15578
15666
  id?: string | undefined;
@@ -15581,7 +15669,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
15581
15669
  name: string;
15582
15670
  parent_id?: string | undefined;
15583
15671
  }[]>;
15584
- getTaxes(params: {}): import("../types/api").RequestData<{
15672
+ getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
15585
15673
  id: string;
15586
15674
  source_ref: {
15587
15675
  id?: string | undefined;
@@ -15591,7 +15679,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
15591
15679
  rate: number;
15592
15680
  country?: string | undefined;
15593
15681
  }[]>;
15594
- getCountries(params: {}): import("../types/api").RequestData<{
15682
+ getCountries(params?: {} | undefined): import("../types/api").RequestData<{
15595
15683
  code: string;
15596
15684
  name: string;
15597
15685
  }[]>;
@@ -15686,6 +15774,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
15686
15774
  }[]>;
15687
15775
  deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
15688
15776
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
15777
+ setConnectionId: (connectionId: string) => Promise<void>;
15778
+ setIntegrationId: (integrationId: string) => Promise<void>;
15689
15779
  }>;
15690
15780
  deleteConsumerById: (consumerId: string) => Promise<{
15691
15781
  content: never;