@chift/chift-nodejs 1.0.13 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -126,7 +126,11 @@ export declare class API {
126
126
  total: number;
127
127
  }[] | undefined;
128
128
  }[]>;
129
- getCustomers(params: {}): import("../types/api").RequestData<{
129
+ getCustomers(params?: {
130
+ search?: string | undefined;
131
+ email?: string | undefined;
132
+ phone?: string | undefined;
133
+ } | undefined): import("../types/api").RequestData<{
130
134
  id: string;
131
135
  first_name?: string | undefined;
132
136
  last_name?: string | undefined;
@@ -251,12 +255,17 @@ export declare class API {
251
255
  loyalty?: number | undefined;
252
256
  birthdate?: string | undefined;
253
257
  }>;
254
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
258
+ getPaymentMethods(params?: {
259
+ location_id?: string | undefined;
260
+ } | undefined): import("../types/api").RequestData<{
255
261
  id: string;
256
262
  name: string;
257
263
  extra?: string | undefined;
258
264
  }[]>;
259
- getProductCategories(params: {}): import("../types/api").RequestData<{
265
+ getProductCategories(params?: {
266
+ location_id?: string | undefined;
267
+ only_parents?: "true" | "false" | undefined;
268
+ } | undefined): import("../types/api").RequestData<{
260
269
  id: string;
261
270
  source_ref: {
262
271
  id?: string | undefined;
@@ -265,7 +274,9 @@ export declare class API {
265
274
  name: string;
266
275
  parent_id?: string | undefined;
267
276
  }[]>;
268
- getProducts(params: {}): import("../types/api").RequestData<{
277
+ getProducts(params?: {
278
+ location_id?: string | undefined;
279
+ } | undefined): import("../types/api").RequestData<{
269
280
  id: string;
270
281
  categories?: string[] | undefined;
271
282
  name: string;
@@ -289,7 +300,7 @@ export declare class API {
289
300
  total: number;
290
301
  }[] | undefined;
291
302
  }>;
292
- getClosure(date: string, params: {
303
+ getClosure(date: string, params?: {
293
304
  location_id?: string | undefined;
294
305
  } | undefined): import("../types/api").RequestData<{
295
306
  date: string;
@@ -358,7 +369,7 @@ export declare class API {
358
369
  total: number;
359
370
  }[] | undefined;
360
371
  }>;
361
- getAccountingCategories(params: {}): import("../types/api").RequestData<{
372
+ getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
362
373
  id: string;
363
374
  name: string;
364
375
  id_parent?: string | undefined;
@@ -368,19 +379,15 @@ export declare class API {
368
379
  }[]>;
369
380
  }>;
370
381
  accounting: import("../types/api").ApiFor<{
371
- getAnalyticPlans(params: {
382
+ getAnalyticPlans(params?: {
372
383
  folder_id?: string | undefined;
373
- page?: number | undefined;
374
- size?: number | undefined;
375
384
  } | undefined): import("../types/api").RequestData<{
376
385
  id: string;
377
386
  name: string;
378
387
  active?: boolean | undefined;
379
388
  }[]>;
380
- getClients(params: {
389
+ getClients(params?: {
381
390
  folder_id?: string | undefined;
382
- page?: number | undefined;
383
- size?: number | undefined;
384
391
  } | undefined): import("../types/api").RequestData<{
385
392
  external_reference?: string | undefined;
386
393
  first_name?: string | undefined;
@@ -450,7 +457,7 @@ export declare class API {
450
457
  country: string;
451
458
  }[];
452
459
  account_number?: string | undefined;
453
- }, params: {
460
+ }, params?: {
454
461
  force_merge?: string | undefined;
455
462
  folder_id?: string | undefined;
456
463
  } | undefined): import("../types/api").RequestData<{
@@ -489,7 +496,7 @@ export declare class API {
489
496
  company_number?: string | undefined;
490
497
  id?: string | undefined;
491
498
  }>;
492
- getClient(clientId: string, params: {
499
+ getClient(clientId: string, params?: {
493
500
  folder_id?: string | undefined;
494
501
  } | undefined): import("../types/api").RequestData<{
495
502
  external_reference?: string | undefined;
@@ -559,7 +566,7 @@ export declare class API {
559
566
  postal_code?: string | undefined;
560
567
  country?: string | undefined;
561
568
  }[] | undefined;
562
- }, params: {
569
+ }, params?: {
563
570
  folder_id?: string | undefined;
564
571
  } | undefined): import("../types/api").RequestData<{
565
572
  external_reference?: string | undefined;
@@ -597,10 +604,8 @@ export declare class API {
597
604
  company_number?: string | undefined;
598
605
  id?: string | undefined;
599
606
  }>;
600
- getSuppliers(params: {
607
+ getSuppliers(params?: {
601
608
  folder_id?: string | undefined;
602
- page?: number | undefined;
603
- size?: number | undefined;
604
609
  } | undefined): import("../types/api").RequestData<{
605
610
  external_reference?: string | undefined;
606
611
  first_name?: string | undefined;
@@ -670,7 +675,7 @@ export declare class API {
670
675
  country: string;
671
676
  }[];
672
677
  account_number?: string | undefined;
673
- }, params: {
678
+ }, params?: {
674
679
  force_merge?: string | undefined;
675
680
  folder_id?: string | undefined;
676
681
  } | undefined): import("../types/api").RequestData<{
@@ -709,7 +714,7 @@ export declare class API {
709
714
  company_number?: string | undefined;
710
715
  id?: string | undefined;
711
716
  }>;
712
- getSupplier(supplierId: string, params: {
717
+ getSupplier(supplierId: string, params?: {
713
718
  folder_id?: string | undefined;
714
719
  } | undefined): import("../types/api").RequestData<{
715
720
  external_reference?: string | undefined;
@@ -779,7 +784,7 @@ export declare class API {
779
784
  postal_code?: string | undefined;
780
785
  country?: string | undefined;
781
786
  }[] | undefined;
782
- }, params: {
787
+ }, params?: {
783
788
  folder_id?: string | undefined;
784
789
  } | undefined): import("../types/api").RequestData<{
785
790
  external_reference?: string | undefined;
@@ -864,7 +869,7 @@ export declare class API {
864
869
  tax_code: string;
865
870
  analytic_account?: string | undefined;
866
871
  }[];
867
- }, params: {
872
+ }, params?: {
868
873
  force_financial_period?: string | undefined;
869
874
  regroup_lines?: "true" | "false" | undefined;
870
875
  folder_id?: string | undefined;
@@ -966,7 +971,7 @@ export declare class API {
966
971
  }[];
967
972
  }[] | undefined;
968
973
  }[];
969
- }, params: {
974
+ }, params?: {
970
975
  force_financial_period?: string | undefined;
971
976
  regroup_lines?: "true" | "false" | undefined;
972
977
  folder_id?: string | undefined;
@@ -1021,7 +1026,14 @@ export declare class API {
1021
1026
  }[] | undefined;
1022
1027
  }[];
1023
1028
  }>;
1024
- getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
1029
+ getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
1030
+ date_from?: string | undefined;
1031
+ date_to?: string | undefined;
1032
+ folder_id?: string | undefined;
1033
+ journal_ids?: string | undefined;
1034
+ include_payments?: "true" | "false" | undefined;
1035
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
1036
+ } | undefined): import("../types/api").RequestData<{
1025
1037
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1026
1038
  invoice_number?: string | undefined;
1027
1039
  currency: string;
@@ -1066,7 +1078,7 @@ export declare class API {
1066
1078
  analytic_account?: string | undefined;
1067
1079
  }[];
1068
1080
  }[]>;
1069
- getInvoice(invoiceId: string, params: {
1081
+ getInvoice(invoiceId: string, params?: {
1070
1082
  include_payments?: "true" | "false" | undefined;
1071
1083
  folder_id?: string | undefined;
1072
1084
  } | undefined): import("../types/api").RequestData<{
@@ -1114,7 +1126,7 @@ export declare class API {
1114
1126
  analytic_account?: string | undefined;
1115
1127
  }[];
1116
1128
  }>;
1117
- getInvoiceWithMultiplePlans(invoiceId: string, params: {
1129
+ getInvoiceWithMultiplePlans(invoiceId: string, params?: {
1118
1130
  include_payments?: "true" | "false" | undefined;
1119
1131
  folder_id?: string | undefined;
1120
1132
  } | undefined): import("../types/api").RequestData<{
@@ -1168,7 +1180,14 @@ export declare class API {
1168
1180
  }[] | undefined;
1169
1181
  }[];
1170
1182
  }>;
1171
- getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
1183
+ getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
1184
+ date_from?: string | undefined;
1185
+ date_to?: string | undefined;
1186
+ folder_id?: string | undefined;
1187
+ journal_ids?: string | undefined;
1188
+ include_payments?: "true" | "false" | undefined;
1189
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
1190
+ } | undefined): import("../types/api").RequestData<{
1172
1191
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1173
1192
  invoice_number?: string | undefined;
1174
1193
  currency: string;
@@ -1224,7 +1243,7 @@ export declare class API {
1224
1243
  code: string;
1225
1244
  name: string;
1226
1245
  currency: string;
1227
- }, params: {
1246
+ }, params?: {
1228
1247
  folder_id?: string | undefined;
1229
1248
  } | undefined): import("../types/api").RequestData<{
1230
1249
  id: string;
@@ -1236,10 +1255,8 @@ export declare class API {
1236
1255
  credit?: number | undefined;
1237
1256
  debit?: number | undefined;
1238
1257
  }>;
1239
- getAnalyticAccounts(params: {
1258
+ getAnalyticAccounts(params?: {
1240
1259
  folder_id?: string | undefined;
1241
- page?: number | undefined;
1242
- size?: number | undefined;
1243
1260
  } | undefined): import("../types/api").RequestData<{
1244
1261
  id: string;
1245
1262
  active: boolean;
@@ -1255,7 +1272,7 @@ export declare class API {
1255
1272
  code: string;
1256
1273
  name: string;
1257
1274
  currency: string;
1258
- }, params: {
1275
+ }, params?: {
1259
1276
  folder_id?: string | undefined;
1260
1277
  } | undefined): import("../types/api").RequestData<{
1261
1278
  id: string;
@@ -1268,7 +1285,7 @@ export declare class API {
1268
1285
  debit?: number | undefined;
1269
1286
  analytic_plan: string;
1270
1287
  }>;
1271
- getAnalyticAccount(analytic_account_id: string, params: {
1288
+ getAnalyticAccount(analytic_account_id: string, params?: {
1272
1289
  folder_id?: string | undefined;
1273
1290
  } | undefined): import("../types/api").RequestData<{
1274
1291
  id: string;
@@ -1285,7 +1302,7 @@ export declare class API {
1285
1302
  code?: string | undefined;
1286
1303
  name?: string | undefined;
1287
1304
  currency?: string | undefined;
1288
- }, params: {
1305
+ }, params?: {
1289
1306
  folder_id?: string | undefined;
1290
1307
  } | undefined): import("../types/api").RequestData<{
1291
1308
  id: string;
@@ -1297,7 +1314,7 @@ export declare class API {
1297
1314
  credit?: number | undefined;
1298
1315
  debit?: number | undefined;
1299
1316
  }>;
1300
- getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
1317
+ getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
1301
1318
  folder_id?: string | undefined;
1302
1319
  } | undefined): import("../types/api").RequestData<{
1303
1320
  id: string;
@@ -1315,7 +1332,7 @@ export declare class API {
1315
1332
  code?: string | undefined;
1316
1333
  name?: string | undefined;
1317
1334
  currency?: string | undefined;
1318
- }, params: {
1335
+ }, params?: {
1319
1336
  folder_id?: string | undefined;
1320
1337
  } | undefined): import("../types/api").RequestData<{
1321
1338
  id: string;
@@ -1328,10 +1345,8 @@ export declare class API {
1328
1345
  debit?: number | undefined;
1329
1346
  analytic_plan: string;
1330
1347
  }>;
1331
- getAnalyticAccountsWithMultiplePlans(params: {
1348
+ getAnalyticAccountsWithMultiplePlans(params?: {
1332
1349
  folder_id?: string | undefined;
1333
- page?: number | undefined;
1334
- size?: number | undefined;
1335
1350
  } | undefined): import("../types/api").RequestData<{
1336
1351
  id: string;
1337
1352
  active: boolean;
@@ -1412,7 +1427,7 @@ export declare class API {
1412
1427
  }[] | undefined;
1413
1428
  }[] | undefined;
1414
1429
  }[]>;
1415
- getPaymentsByInvoiceId(invoice_id: string, params: {
1430
+ getPaymentsByInvoiceId(invoice_id: string, params?: {
1416
1431
  folder_id?: string | undefined;
1417
1432
  page?: number | undefined;
1418
1433
  size?: number | undefined;
@@ -1430,20 +1445,16 @@ export declare class API {
1430
1445
  communication?: string | undefined;
1431
1446
  matching_number?: string | undefined;
1432
1447
  }[]>;
1433
- getJournals(params: {
1448
+ getJournals(params?: {
1434
1449
  folder_id?: string | undefined;
1435
- page?: number | undefined;
1436
- size?: number | undefined;
1437
1450
  } | undefined): import("../types/api").RequestData<{
1438
1451
  id: string;
1439
1452
  code?: string | undefined;
1440
1453
  name: string;
1441
1454
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1442
1455
  }[]>;
1443
- getVatCodes(params: {
1456
+ getVatCodes(params?: {
1444
1457
  folder_id?: string | undefined;
1445
- page?: number | undefined;
1446
- size?: number | undefined;
1447
1458
  } | undefined): import("../types/api").RequestData<{
1448
1459
  id: string;
1449
1460
  code?: string | undefined;
@@ -1454,7 +1465,12 @@ export declare class API {
1454
1465
  deductible_account?: string | undefined;
1455
1466
  payable_account?: string | undefined;
1456
1467
  }[]>;
1457
- getMiscOperations(params: {}): import("../types/api").RequestData<{
1468
+ getMiscOperations(params?: {
1469
+ date_from?: string | undefined;
1470
+ date_to?: string | undefined;
1471
+ folder_id?: string | undefined;
1472
+ journal_ids?: string | undefined;
1473
+ } | undefined): import("../types/api").RequestData<{
1458
1474
  operation_number?: string | undefined;
1459
1475
  currency: string;
1460
1476
  currency_exchange_rate?: number | undefined;
@@ -1488,7 +1504,7 @@ export declare class API {
1488
1504
  operation_date: string;
1489
1505
  journal_id?: string | undefined;
1490
1506
  status?: "draft" | "posted" | undefined;
1491
- }, params: {
1507
+ }, params?: {
1492
1508
  folder_id?: string | undefined;
1493
1509
  } | undefined): import("../types/api").RequestData<{
1494
1510
  operation_number?: string | undefined;
@@ -1508,7 +1524,7 @@ export declare class API {
1508
1524
  status: "cancelled" | "draft" | "posted" | "matched";
1509
1525
  id: string;
1510
1526
  }>;
1511
- getMiscOperation(operation_id: string, params: {
1527
+ getMiscOperation(operation_id: string, params?: {
1512
1528
  folder_id?: string | undefined;
1513
1529
  } | undefined): import("../types/api").RequestData<{
1514
1530
  operation_number?: string | undefined;
@@ -1530,24 +1546,25 @@ export declare class API {
1530
1546
  }>;
1531
1547
  attachPDF(invoice_id: string, attachment: {
1532
1548
  base64_string: string;
1533
- }, params: {
1549
+ }, params?: {
1534
1550
  overwrite_existing?: "true" | "false" | undefined;
1535
1551
  folder_id?: string | undefined;
1536
1552
  } | undefined): import("../types/api").RequestData<{
1537
1553
  content: {
1538
- "application/json": unknown;
1554
+ 'application/json': unknown;
1539
1555
  };
1540
1556
  }>;
1541
1557
  getAttachments(params: {
1558
+ folder_id?: string | undefined;
1542
1559
  type: "invoice" | "entry";
1543
1560
  document_id: string;
1544
- folder_id?: string | undefined;
1545
- page?: number | undefined;
1546
- size?: number | undefined;
1547
1561
  }): import("../types/api").RequestData<{
1548
1562
  base64_string: string;
1549
1563
  }[]>;
1550
- getChartOfAccounts(params: {}): import("../types/api").RequestData<{
1564
+ getChartOfAccounts(params?: {
1565
+ classes?: string | undefined;
1566
+ folder_id?: string | undefined;
1567
+ } | undefined): import("../types/api").RequestData<{
1551
1568
  number: string;
1552
1569
  name: string;
1553
1570
  active?: boolean | undefined;
@@ -1557,10 +1574,8 @@ export declare class API {
1557
1574
  accounts: string[];
1558
1575
  start?: string | undefined;
1559
1576
  end: string;
1560
- }, params: {
1577
+ }, params?: {
1561
1578
  folder_id?: string | undefined;
1562
- page?: number | undefined;
1563
- size?: number | undefined;
1564
1579
  } | undefined): import("../types/api").RequestData<{
1565
1580
  account_number: string;
1566
1581
  account_name?: string | undefined;
@@ -1568,10 +1583,8 @@ export declare class API {
1568
1583
  credit: number;
1569
1584
  balance: number;
1570
1585
  }[]>;
1571
- getEmployees(params: {
1586
+ getEmployees(params?: {
1572
1587
  folder_id?: string | undefined;
1573
- page?: number | undefined;
1574
- size?: number | undefined;
1575
1588
  } | undefined): import("../types/api").RequestData<{
1576
1589
  id: string;
1577
1590
  name: string;
@@ -1587,8 +1600,8 @@ export declare class API {
1587
1600
  }[]>;
1588
1601
  getOutstandings(params: {
1589
1602
  folder_id?: string | undefined;
1590
- unposted_allowed: "true" | "false";
1591
1603
  type: "supplier" | "client";
1604
+ unposted_allowed: "true" | "false";
1592
1605
  }): import("../types/api").RequestData<{
1593
1606
  id: string;
1594
1607
  number?: string | undefined;
@@ -1621,7 +1634,7 @@ export declare class API {
1621
1634
  description?: string | undefined;
1622
1635
  }[];
1623
1636
  pdf?: string | undefined;
1624
- }, params: {
1637
+ }, params?: {
1625
1638
  financial_counterpart_account?: string | undefined;
1626
1639
  folder_id?: string | undefined;
1627
1640
  } | undefined): import("../types/api").RequestData<{
@@ -1655,7 +1668,7 @@ export declare class API {
1655
1668
  description?: string | undefined;
1656
1669
  }[];
1657
1670
  pdf?: string | undefined;
1658
- }, params: {
1671
+ }, params?: {
1659
1672
  financial_counterpart_account?: string | undefined;
1660
1673
  folder_id?: string | undefined;
1661
1674
  } | undefined): import("../types/api").RequestData<{
@@ -1754,7 +1767,7 @@ export declare class API {
1754
1767
  }[];
1755
1768
  pdf?: string | undefined;
1756
1769
  posted?: boolean | undefined;
1757
- }, params: {
1770
+ }, params?: {
1758
1771
  folder_id?: string | undefined;
1759
1772
  } | undefined): import("../types/api").RequestData<{
1760
1773
  reference?: string | undefined;
@@ -1789,7 +1802,7 @@ export declare class API {
1789
1802
  matchEntries(body: {
1790
1803
  entries: string[];
1791
1804
  partner_id: string;
1792
- }, params: {
1805
+ }, params?: {
1793
1806
  folder_id?: string | undefined;
1794
1807
  } | undefined): import("../types/api").RequestData<{
1795
1808
  matching_number: string;
@@ -1802,14 +1815,12 @@ export declare class API {
1802
1815
  }[]>;
1803
1816
  }>;
1804
1817
  invoicing: import("../types/api").ApiFor<{
1805
- getInvoices(params: {
1806
- invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
1807
- payment_status?: "all" | "paid" | "unpaid" | undefined;
1818
+ getInvoices(params?: {
1808
1819
  date_from?: string | undefined;
1809
1820
  date_to?: string | undefined;
1821
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
1822
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
1810
1823
  updated_after?: string | undefined;
1811
- page?: number | undefined;
1812
- size?: number | undefined;
1813
1824
  } | undefined): import("../types/api").RequestData<{
1814
1825
  id: string;
1815
1826
  source_ref: {
@@ -1853,7 +1864,7 @@ export declare class API {
1853
1864
  outstanding_amount?: number | undefined;
1854
1865
  last_updated_on?: string | undefined;
1855
1866
  }[]>;
1856
- getInvoiceById(invoiceId: string, params: {
1867
+ getInvoiceById(invoiceId: string, params?: {
1857
1868
  include_pdf?: "true" | "false" | undefined;
1858
1869
  } | undefined): import("../types/api").RequestData<{
1859
1870
  id: string;
@@ -2115,8 +2126,6 @@ export declare class API {
2115
2126
  }>;
2116
2127
  getContacts(params?: {
2117
2128
  contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
2118
- page?: number | undefined;
2119
- size?: number | undefined;
2120
2129
  } | undefined): import("../types/api").RequestData<{
2121
2130
  id: string;
2122
2131
  source_ref: {
@@ -2527,7 +2536,12 @@ export declare class API {
2527
2536
  id: string;
2528
2537
  name: string;
2529
2538
  }[]>;
2530
- getOrders(params: {}): import("../types/api").RequestData<{
2539
+ getOrders(params?: {
2540
+ date_from?: string | undefined;
2541
+ date_to?: string | undefined;
2542
+ updated_after?: string | undefined;
2543
+ include_detailed_refunds?: "true" | "false" | undefined;
2544
+ } | undefined): import("../types/api").RequestData<{
2531
2545
  id: string;
2532
2546
  source_ref: {
2533
2547
  id?: string | undefined;
@@ -3018,7 +3032,7 @@ export declare class API {
3018
3032
  name?: string | undefined;
3019
3033
  }[] | undefined;
3020
3034
  }>;
3021
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
3035
+ getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
3022
3036
  id: string;
3023
3037
  source_ref: {
3024
3038
  id?: string | undefined;
@@ -3027,7 +3041,9 @@ export declare class API {
3027
3041
  name: string;
3028
3042
  active: boolean;
3029
3043
  }[]>;
3030
- getProductCategories(params: {}): import("../types/api").RequestData<{
3044
+ getProductCategories(params?: {
3045
+ only_parents?: "true" | "false" | undefined;
3046
+ } | undefined): import("../types/api").RequestData<{
3031
3047
  id: string;
3032
3048
  source_ref: {
3033
3049
  id?: string | undefined;
@@ -3036,7 +3052,7 @@ export declare class API {
3036
3052
  name: string;
3037
3053
  parent_id?: string | undefined;
3038
3054
  }[]>;
3039
- getTaxes(params: {}): import("../types/api").RequestData<{
3055
+ getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
3040
3056
  id: string;
3041
3057
  source_ref: {
3042
3058
  id?: string | undefined;
@@ -3046,7 +3062,7 @@ export declare class API {
3046
3062
  rate: number;
3047
3063
  country?: string | undefined;
3048
3064
  }[]>;
3049
- getCountries(params: {}): import("../types/api").RequestData<{
3065
+ getCountries(params?: {} | undefined): import("../types/api").RequestData<{
3050
3066
  code: string;
3051
3067
  name: string;
3052
3068
  }[]>;
@@ -3141,6 +3157,8 @@ export declare class API {
3141
3157
  }[]>;
3142
3158
  deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
3143
3159
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
3160
+ setConnectionId: (connectionId: string) => Promise<void>;
3161
+ setIntegrationId: (integrationId: string) => Promise<void>;
3144
3162
  }[]>;
3145
3163
  createConsumer: (body: {
3146
3164
  name: string;
@@ -3267,7 +3285,11 @@ export declare class API {
3267
3285
  total: number;
3268
3286
  }[] | undefined;
3269
3287
  }[]>;
3270
- getCustomers(params: {}): import("../types/api").RequestData<{
3288
+ getCustomers(params?: {
3289
+ search?: string | undefined;
3290
+ email?: string | undefined;
3291
+ phone?: string | undefined;
3292
+ } | undefined): import("../types/api").RequestData<{
3271
3293
  id: string;
3272
3294
  first_name?: string | undefined;
3273
3295
  last_name?: string | undefined;
@@ -3392,12 +3414,17 @@ export declare class API {
3392
3414
  loyalty?: number | undefined;
3393
3415
  birthdate?: string | undefined;
3394
3416
  }>;
3395
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
3417
+ getPaymentMethods(params?: {
3418
+ location_id?: string | undefined;
3419
+ } | undefined): import("../types/api").RequestData<{
3396
3420
  id: string;
3397
3421
  name: string;
3398
3422
  extra?: string | undefined;
3399
3423
  }[]>;
3400
- getProductCategories(params: {}): import("../types/api").RequestData<{
3424
+ getProductCategories(params?: {
3425
+ location_id?: string | undefined;
3426
+ only_parents?: "true" | "false" | undefined;
3427
+ } | undefined): import("../types/api").RequestData<{
3401
3428
  id: string;
3402
3429
  source_ref: {
3403
3430
  id?: string | undefined;
@@ -3406,7 +3433,9 @@ export declare class API {
3406
3433
  name: string;
3407
3434
  parent_id?: string | undefined;
3408
3435
  }[]>;
3409
- getProducts(params: {}): import("../types/api").RequestData<{
3436
+ getProducts(params?: {
3437
+ location_id?: string | undefined;
3438
+ } | undefined): import("../types/api").RequestData<{
3410
3439
  id: string;
3411
3440
  categories?: string[] | undefined;
3412
3441
  name: string;
@@ -3430,7 +3459,7 @@ export declare class API {
3430
3459
  total: number;
3431
3460
  }[] | undefined;
3432
3461
  }>;
3433
- getClosure(date: string, params: {
3462
+ getClosure(date: string, params?: {
3434
3463
  location_id?: string | undefined;
3435
3464
  } | undefined): import("../types/api").RequestData<{
3436
3465
  date: string;
@@ -3499,7 +3528,7 @@ export declare class API {
3499
3528
  total: number;
3500
3529
  }[] | undefined;
3501
3530
  }>;
3502
- getAccountingCategories(params: {}): import("../types/api").RequestData<{
3531
+ getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
3503
3532
  id: string;
3504
3533
  name: string;
3505
3534
  id_parent?: string | undefined;
@@ -3509,19 +3538,15 @@ export declare class API {
3509
3538
  }[]>;
3510
3539
  }>;
3511
3540
  accounting: import("../types/api").ApiFor<{
3512
- getAnalyticPlans(params: {
3541
+ getAnalyticPlans(params?: {
3513
3542
  folder_id?: string | undefined;
3514
- page?: number | undefined;
3515
- size?: number | undefined;
3516
3543
  } | undefined): import("../types/api").RequestData<{
3517
3544
  id: string;
3518
3545
  name: string;
3519
3546
  active?: boolean | undefined;
3520
3547
  }[]>;
3521
- getClients(params: {
3548
+ getClients(params?: {
3522
3549
  folder_id?: string | undefined;
3523
- page?: number | undefined;
3524
- size?: number | undefined;
3525
3550
  } | undefined): import("../types/api").RequestData<{
3526
3551
  external_reference?: string | undefined;
3527
3552
  first_name?: string | undefined;
@@ -3591,7 +3616,7 @@ export declare class API {
3591
3616
  country: string;
3592
3617
  }[];
3593
3618
  account_number?: string | undefined;
3594
- }, params: {
3619
+ }, params?: {
3595
3620
  force_merge?: string | undefined;
3596
3621
  folder_id?: string | undefined;
3597
3622
  } | undefined): import("../types/api").RequestData<{
@@ -3630,7 +3655,7 @@ export declare class API {
3630
3655
  company_number?: string | undefined;
3631
3656
  id?: string | undefined;
3632
3657
  }>;
3633
- getClient(clientId: string, params: {
3658
+ getClient(clientId: string, params?: {
3634
3659
  folder_id?: string | undefined;
3635
3660
  } | undefined): import("../types/api").RequestData<{
3636
3661
  external_reference?: string | undefined;
@@ -3700,7 +3725,7 @@ export declare class API {
3700
3725
  postal_code?: string | undefined;
3701
3726
  country?: string | undefined;
3702
3727
  }[] | undefined;
3703
- }, params: {
3728
+ }, params?: {
3704
3729
  folder_id?: string | undefined;
3705
3730
  } | undefined): import("../types/api").RequestData<{
3706
3731
  external_reference?: string | undefined;
@@ -3738,10 +3763,8 @@ export declare class API {
3738
3763
  company_number?: string | undefined;
3739
3764
  id?: string | undefined;
3740
3765
  }>;
3741
- getSuppliers(params: {
3766
+ getSuppliers(params?: {
3742
3767
  folder_id?: string | undefined;
3743
- page?: number | undefined;
3744
- size?: number | undefined;
3745
3768
  } | undefined): import("../types/api").RequestData<{
3746
3769
  external_reference?: string | undefined;
3747
3770
  first_name?: string | undefined;
@@ -3811,7 +3834,7 @@ export declare class API {
3811
3834
  country: string;
3812
3835
  }[];
3813
3836
  account_number?: string | undefined;
3814
- }, params: {
3837
+ }, params?: {
3815
3838
  force_merge?: string | undefined;
3816
3839
  folder_id?: string | undefined;
3817
3840
  } | undefined): import("../types/api").RequestData<{
@@ -3850,7 +3873,7 @@ export declare class API {
3850
3873
  company_number?: string | undefined;
3851
3874
  id?: string | undefined;
3852
3875
  }>;
3853
- getSupplier(supplierId: string, params: {
3876
+ getSupplier(supplierId: string, params?: {
3854
3877
  folder_id?: string | undefined;
3855
3878
  } | undefined): import("../types/api").RequestData<{
3856
3879
  external_reference?: string | undefined;
@@ -3920,7 +3943,7 @@ export declare class API {
3920
3943
  postal_code?: string | undefined;
3921
3944
  country?: string | undefined;
3922
3945
  }[] | undefined;
3923
- }, params: {
3946
+ }, params?: {
3924
3947
  folder_id?: string | undefined;
3925
3948
  } | undefined): import("../types/api").RequestData<{
3926
3949
  external_reference?: string | undefined;
@@ -4005,7 +4028,7 @@ export declare class API {
4005
4028
  tax_code: string;
4006
4029
  analytic_account?: string | undefined;
4007
4030
  }[];
4008
- }, params: {
4031
+ }, params?: {
4009
4032
  force_financial_period?: string | undefined;
4010
4033
  regroup_lines?: "true" | "false" | undefined;
4011
4034
  folder_id?: string | undefined;
@@ -4107,7 +4130,7 @@ export declare class API {
4107
4130
  }[];
4108
4131
  }[] | undefined;
4109
4132
  }[];
4110
- }, params: {
4133
+ }, params?: {
4111
4134
  force_financial_period?: string | undefined;
4112
4135
  regroup_lines?: "true" | "false" | undefined;
4113
4136
  folder_id?: string | undefined;
@@ -4162,7 +4185,14 @@ export declare class API {
4162
4185
  }[] | undefined;
4163
4186
  }[];
4164
4187
  }>;
4165
- getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
4188
+ getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
4189
+ date_from?: string | undefined;
4190
+ date_to?: string | undefined;
4191
+ folder_id?: string | undefined;
4192
+ journal_ids?: string | undefined;
4193
+ include_payments?: "true" | "false" | undefined;
4194
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
4195
+ } | undefined): import("../types/api").RequestData<{
4166
4196
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4167
4197
  invoice_number?: string | undefined;
4168
4198
  currency: string;
@@ -4207,7 +4237,7 @@ export declare class API {
4207
4237
  analytic_account?: string | undefined;
4208
4238
  }[];
4209
4239
  }[]>;
4210
- getInvoice(invoiceId: string, params: {
4240
+ getInvoice(invoiceId: string, params?: {
4211
4241
  include_payments?: "true" | "false" | undefined;
4212
4242
  folder_id?: string | undefined;
4213
4243
  } | undefined): import("../types/api").RequestData<{
@@ -4255,7 +4285,7 @@ export declare class API {
4255
4285
  analytic_account?: string | undefined;
4256
4286
  }[];
4257
4287
  }>;
4258
- getInvoiceWithMultiplePlans(invoiceId: string, params: {
4288
+ getInvoiceWithMultiplePlans(invoiceId: string, params?: {
4259
4289
  include_payments?: "true" | "false" | undefined;
4260
4290
  folder_id?: string | undefined;
4261
4291
  } | undefined): import("../types/api").RequestData<{
@@ -4309,7 +4339,14 @@ export declare class API {
4309
4339
  }[] | undefined;
4310
4340
  }[];
4311
4341
  }>;
4312
- getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
4342
+ getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
4343
+ date_from?: string | undefined;
4344
+ date_to?: string | undefined;
4345
+ folder_id?: string | undefined;
4346
+ journal_ids?: string | undefined;
4347
+ include_payments?: "true" | "false" | undefined;
4348
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
4349
+ } | undefined): import("../types/api").RequestData<{
4313
4350
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4314
4351
  invoice_number?: string | undefined;
4315
4352
  currency: string;
@@ -4365,7 +4402,7 @@ export declare class API {
4365
4402
  code: string;
4366
4403
  name: string;
4367
4404
  currency: string;
4368
- }, params: {
4405
+ }, params?: {
4369
4406
  folder_id?: string | undefined;
4370
4407
  } | undefined): import("../types/api").RequestData<{
4371
4408
  id: string;
@@ -4377,10 +4414,8 @@ export declare class API {
4377
4414
  credit?: number | undefined;
4378
4415
  debit?: number | undefined;
4379
4416
  }>;
4380
- getAnalyticAccounts(params: {
4417
+ getAnalyticAccounts(params?: {
4381
4418
  folder_id?: string | undefined;
4382
- page?: number | undefined;
4383
- size?: number | undefined;
4384
4419
  } | undefined): import("../types/api").RequestData<{
4385
4420
  id: string;
4386
4421
  active: boolean;
@@ -4396,7 +4431,7 @@ export declare class API {
4396
4431
  code: string;
4397
4432
  name: string;
4398
4433
  currency: string;
4399
- }, params: {
4434
+ }, params?: {
4400
4435
  folder_id?: string | undefined;
4401
4436
  } | undefined): import("../types/api").RequestData<{
4402
4437
  id: string;
@@ -4409,7 +4444,7 @@ export declare class API {
4409
4444
  debit?: number | undefined;
4410
4445
  analytic_plan: string;
4411
4446
  }>;
4412
- getAnalyticAccount(analytic_account_id: string, params: {
4447
+ getAnalyticAccount(analytic_account_id: string, params?: {
4413
4448
  folder_id?: string | undefined;
4414
4449
  } | undefined): import("../types/api").RequestData<{
4415
4450
  id: string;
@@ -4426,7 +4461,7 @@ export declare class API {
4426
4461
  code?: string | undefined;
4427
4462
  name?: string | undefined;
4428
4463
  currency?: string | undefined;
4429
- }, params: {
4464
+ }, params?: {
4430
4465
  folder_id?: string | undefined;
4431
4466
  } | undefined): import("../types/api").RequestData<{
4432
4467
  id: string;
@@ -4438,7 +4473,7 @@ export declare class API {
4438
4473
  credit?: number | undefined;
4439
4474
  debit?: number | undefined;
4440
4475
  }>;
4441
- getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
4476
+ getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
4442
4477
  folder_id?: string | undefined;
4443
4478
  } | undefined): import("../types/api").RequestData<{
4444
4479
  id: string;
@@ -4456,7 +4491,7 @@ export declare class API {
4456
4491
  code?: string | undefined;
4457
4492
  name?: string | undefined;
4458
4493
  currency?: string | undefined;
4459
- }, params: {
4494
+ }, params?: {
4460
4495
  folder_id?: string | undefined;
4461
4496
  } | undefined): import("../types/api").RequestData<{
4462
4497
  id: string;
@@ -4469,10 +4504,8 @@ export declare class API {
4469
4504
  debit?: number | undefined;
4470
4505
  analytic_plan: string;
4471
4506
  }>;
4472
- getAnalyticAccountsWithMultiplePlans(params: {
4507
+ getAnalyticAccountsWithMultiplePlans(params?: {
4473
4508
  folder_id?: string | undefined;
4474
- page?: number | undefined;
4475
- size?: number | undefined;
4476
4509
  } | undefined): import("../types/api").RequestData<{
4477
4510
  id: string;
4478
4511
  active: boolean;
@@ -4553,7 +4586,7 @@ export declare class API {
4553
4586
  }[] | undefined;
4554
4587
  }[] | undefined;
4555
4588
  }[]>;
4556
- getPaymentsByInvoiceId(invoice_id: string, params: {
4589
+ getPaymentsByInvoiceId(invoice_id: string, params?: {
4557
4590
  folder_id?: string | undefined;
4558
4591
  page?: number | undefined;
4559
4592
  size?: number | undefined;
@@ -4571,20 +4604,16 @@ export declare class API {
4571
4604
  communication?: string | undefined;
4572
4605
  matching_number?: string | undefined;
4573
4606
  }[]>;
4574
- getJournals(params: {
4607
+ getJournals(params?: {
4575
4608
  folder_id?: string | undefined;
4576
- page?: number | undefined;
4577
- size?: number | undefined;
4578
4609
  } | undefined): import("../types/api").RequestData<{
4579
4610
  id: string;
4580
4611
  code?: string | undefined;
4581
4612
  name: string;
4582
4613
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
4583
4614
  }[]>;
4584
- getVatCodes(params: {
4615
+ getVatCodes(params?: {
4585
4616
  folder_id?: string | undefined;
4586
- page?: number | undefined;
4587
- size?: number | undefined;
4588
4617
  } | undefined): import("../types/api").RequestData<{
4589
4618
  id: string;
4590
4619
  code?: string | undefined;
@@ -4595,7 +4624,12 @@ export declare class API {
4595
4624
  deductible_account?: string | undefined;
4596
4625
  payable_account?: string | undefined;
4597
4626
  }[]>;
4598
- getMiscOperations(params: {}): import("../types/api").RequestData<{
4627
+ getMiscOperations(params?: {
4628
+ date_from?: string | undefined;
4629
+ date_to?: string | undefined;
4630
+ folder_id?: string | undefined;
4631
+ journal_ids?: string | undefined;
4632
+ } | undefined): import("../types/api").RequestData<{
4599
4633
  operation_number?: string | undefined;
4600
4634
  currency: string;
4601
4635
  currency_exchange_rate?: number | undefined;
@@ -4629,7 +4663,7 @@ export declare class API {
4629
4663
  operation_date: string;
4630
4664
  journal_id?: string | undefined;
4631
4665
  status?: "draft" | "posted" | undefined;
4632
- }, params: {
4666
+ }, params?: {
4633
4667
  folder_id?: string | undefined;
4634
4668
  } | undefined): import("../types/api").RequestData<{
4635
4669
  operation_number?: string | undefined;
@@ -4649,7 +4683,7 @@ export declare class API {
4649
4683
  status: "cancelled" | "draft" | "posted" | "matched";
4650
4684
  id: string;
4651
4685
  }>;
4652
- getMiscOperation(operation_id: string, params: {
4686
+ getMiscOperation(operation_id: string, params?: {
4653
4687
  folder_id?: string | undefined;
4654
4688
  } | undefined): import("../types/api").RequestData<{
4655
4689
  operation_number?: string | undefined;
@@ -4671,24 +4705,25 @@ export declare class API {
4671
4705
  }>;
4672
4706
  attachPDF(invoice_id: string, attachment: {
4673
4707
  base64_string: string;
4674
- }, params: {
4708
+ }, params?: {
4675
4709
  overwrite_existing?: "true" | "false" | undefined;
4676
4710
  folder_id?: string | undefined;
4677
4711
  } | undefined): import("../types/api").RequestData<{
4678
4712
  content: {
4679
- "application/json": unknown;
4713
+ 'application/json': unknown;
4680
4714
  };
4681
4715
  }>;
4682
4716
  getAttachments(params: {
4717
+ folder_id?: string | undefined;
4683
4718
  type: "invoice" | "entry";
4684
4719
  document_id: string;
4685
- folder_id?: string | undefined;
4686
- page?: number | undefined;
4687
- size?: number | undefined;
4688
4720
  }): import("../types/api").RequestData<{
4689
4721
  base64_string: string;
4690
4722
  }[]>;
4691
- getChartOfAccounts(params: {}): import("../types/api").RequestData<{
4723
+ getChartOfAccounts(params?: {
4724
+ classes?: string | undefined;
4725
+ folder_id?: string | undefined;
4726
+ } | undefined): import("../types/api").RequestData<{
4692
4727
  number: string;
4693
4728
  name: string;
4694
4729
  active?: boolean | undefined;
@@ -4698,10 +4733,8 @@ export declare class API {
4698
4733
  accounts: string[];
4699
4734
  start?: string | undefined;
4700
4735
  end: string;
4701
- }, params: {
4736
+ }, params?: {
4702
4737
  folder_id?: string | undefined;
4703
- page?: number | undefined;
4704
- size?: number | undefined;
4705
4738
  } | undefined): import("../types/api").RequestData<{
4706
4739
  account_number: string;
4707
4740
  account_name?: string | undefined;
@@ -4709,10 +4742,8 @@ export declare class API {
4709
4742
  credit: number;
4710
4743
  balance: number;
4711
4744
  }[]>;
4712
- getEmployees(params: {
4745
+ getEmployees(params?: {
4713
4746
  folder_id?: string | undefined;
4714
- page?: number | undefined;
4715
- size?: number | undefined;
4716
4747
  } | undefined): import("../types/api").RequestData<{
4717
4748
  id: string;
4718
4749
  name: string;
@@ -4728,8 +4759,8 @@ export declare class API {
4728
4759
  }[]>;
4729
4760
  getOutstandings(params: {
4730
4761
  folder_id?: string | undefined;
4731
- unposted_allowed: "true" | "false";
4732
4762
  type: "supplier" | "client";
4763
+ unposted_allowed: "true" | "false";
4733
4764
  }): import("../types/api").RequestData<{
4734
4765
  id: string;
4735
4766
  number?: string | undefined;
@@ -4762,7 +4793,7 @@ export declare class API {
4762
4793
  description?: string | undefined;
4763
4794
  }[];
4764
4795
  pdf?: string | undefined;
4765
- }, params: {
4796
+ }, params?: {
4766
4797
  financial_counterpart_account?: string | undefined;
4767
4798
  folder_id?: string | undefined;
4768
4799
  } | undefined): import("../types/api").RequestData<{
@@ -4796,7 +4827,7 @@ export declare class API {
4796
4827
  description?: string | undefined;
4797
4828
  }[];
4798
4829
  pdf?: string | undefined;
4799
- }, params: {
4830
+ }, params?: {
4800
4831
  financial_counterpart_account?: string | undefined;
4801
4832
  folder_id?: string | undefined;
4802
4833
  } | undefined): import("../types/api").RequestData<{
@@ -4895,7 +4926,7 @@ export declare class API {
4895
4926
  }[];
4896
4927
  pdf?: string | undefined;
4897
4928
  posted?: boolean | undefined;
4898
- }, params: {
4929
+ }, params?: {
4899
4930
  folder_id?: string | undefined;
4900
4931
  } | undefined): import("../types/api").RequestData<{
4901
4932
  reference?: string | undefined;
@@ -4930,7 +4961,7 @@ export declare class API {
4930
4961
  matchEntries(body: {
4931
4962
  entries: string[];
4932
4963
  partner_id: string;
4933
- }, params: {
4964
+ }, params?: {
4934
4965
  folder_id?: string | undefined;
4935
4966
  } | undefined): import("../types/api").RequestData<{
4936
4967
  matching_number: string;
@@ -4943,14 +4974,12 @@ export declare class API {
4943
4974
  }[]>;
4944
4975
  }>;
4945
4976
  invoicing: import("../types/api").ApiFor<{
4946
- getInvoices(params: {
4947
- invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
4948
- payment_status?: "all" | "paid" | "unpaid" | undefined;
4977
+ getInvoices(params?: {
4949
4978
  date_from?: string | undefined;
4950
4979
  date_to?: string | undefined;
4980
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
4981
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
4951
4982
  updated_after?: string | undefined;
4952
- page?: number | undefined;
4953
- size?: number | undefined;
4954
4983
  } | undefined): import("../types/api").RequestData<{
4955
4984
  id: string;
4956
4985
  source_ref: {
@@ -4994,7 +5023,7 @@ export declare class API {
4994
5023
  outstanding_amount?: number | undefined;
4995
5024
  last_updated_on?: string | undefined;
4996
5025
  }[]>;
4997
- getInvoiceById(invoiceId: string, params: {
5026
+ getInvoiceById(invoiceId: string, params?: {
4998
5027
  include_pdf?: "true" | "false" | undefined;
4999
5028
  } | undefined): import("../types/api").RequestData<{
5000
5029
  id: string;
@@ -5256,8 +5285,6 @@ export declare class API {
5256
5285
  }>;
5257
5286
  getContacts(params?: {
5258
5287
  contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
5259
- page?: number | undefined;
5260
- size?: number | undefined;
5261
5288
  } | undefined): import("../types/api").RequestData<{
5262
5289
  id: string;
5263
5290
  source_ref: {
@@ -5668,7 +5695,12 @@ export declare class API {
5668
5695
  id: string;
5669
5696
  name: string;
5670
5697
  }[]>;
5671
- getOrders(params: {}): import("../types/api").RequestData<{
5698
+ getOrders(params?: {
5699
+ date_from?: string | undefined;
5700
+ date_to?: string | undefined;
5701
+ updated_after?: string | undefined;
5702
+ include_detailed_refunds?: "true" | "false" | undefined;
5703
+ } | undefined): import("../types/api").RequestData<{
5672
5704
  id: string;
5673
5705
  source_ref: {
5674
5706
  id?: string | undefined;
@@ -6159,7 +6191,7 @@ export declare class API {
6159
6191
  name?: string | undefined;
6160
6192
  }[] | undefined;
6161
6193
  }>;
6162
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
6194
+ getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
6163
6195
  id: string;
6164
6196
  source_ref: {
6165
6197
  id?: string | undefined;
@@ -6168,7 +6200,9 @@ export declare class API {
6168
6200
  name: string;
6169
6201
  active: boolean;
6170
6202
  }[]>;
6171
- getProductCategories(params: {}): import("../types/api").RequestData<{
6203
+ getProductCategories(params?: {
6204
+ only_parents?: "true" | "false" | undefined;
6205
+ } | undefined): import("../types/api").RequestData<{
6172
6206
  id: string;
6173
6207
  source_ref: {
6174
6208
  id?: string | undefined;
@@ -6177,7 +6211,7 @@ export declare class API {
6177
6211
  name: string;
6178
6212
  parent_id?: string | undefined;
6179
6213
  }[]>;
6180
- getTaxes(params: {}): import("../types/api").RequestData<{
6214
+ getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
6181
6215
  id: string;
6182
6216
  source_ref: {
6183
6217
  id?: string | undefined;
@@ -6187,7 +6221,7 @@ export declare class API {
6187
6221
  rate: number;
6188
6222
  country?: string | undefined;
6189
6223
  }[]>;
6190
- getCountries(params: {}): import("../types/api").RequestData<{
6224
+ getCountries(params?: {} | undefined): import("../types/api").RequestData<{
6191
6225
  code: string;
6192
6226
  name: string;
6193
6227
  }[]>;
@@ -6282,6 +6316,8 @@ export declare class API {
6282
6316
  }[]>;
6283
6317
  deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
6284
6318
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
6319
+ setConnectionId: (connectionId: string) => Promise<void>;
6320
+ setIntegrationId: (integrationId: string) => Promise<void>;
6285
6321
  }>;
6286
6322
  getConsumerById: (consumerId: string) => Promise<{
6287
6323
  consumerId: string;
@@ -6404,7 +6440,11 @@ export declare class API {
6404
6440
  total: number;
6405
6441
  }[] | undefined;
6406
6442
  }[]>;
6407
- getCustomers(params: {}): import("../types/api").RequestData<{
6443
+ getCustomers(params?: {
6444
+ search?: string | undefined;
6445
+ email?: string | undefined;
6446
+ phone?: string | undefined;
6447
+ } | undefined): import("../types/api").RequestData<{
6408
6448
  id: string;
6409
6449
  first_name?: string | undefined;
6410
6450
  last_name?: string | undefined;
@@ -6529,12 +6569,17 @@ export declare class API {
6529
6569
  loyalty?: number | undefined;
6530
6570
  birthdate?: string | undefined;
6531
6571
  }>;
6532
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
6572
+ getPaymentMethods(params?: {
6573
+ location_id?: string | undefined;
6574
+ } | undefined): import("../types/api").RequestData<{
6533
6575
  id: string;
6534
6576
  name: string;
6535
6577
  extra?: string | undefined;
6536
6578
  }[]>;
6537
- getProductCategories(params: {}): import("../types/api").RequestData<{
6579
+ getProductCategories(params?: {
6580
+ location_id?: string | undefined;
6581
+ only_parents?: "true" | "false" | undefined;
6582
+ } | undefined): import("../types/api").RequestData<{
6538
6583
  id: string;
6539
6584
  source_ref: {
6540
6585
  id?: string | undefined;
@@ -6543,7 +6588,9 @@ export declare class API {
6543
6588
  name: string;
6544
6589
  parent_id?: string | undefined;
6545
6590
  }[]>;
6546
- getProducts(params: {}): import("../types/api").RequestData<{
6591
+ getProducts(params?: {
6592
+ location_id?: string | undefined;
6593
+ } | undefined): import("../types/api").RequestData<{
6547
6594
  id: string;
6548
6595
  categories?: string[] | undefined;
6549
6596
  name: string;
@@ -6567,7 +6614,7 @@ export declare class API {
6567
6614
  total: number;
6568
6615
  }[] | undefined;
6569
6616
  }>;
6570
- getClosure(date: string, params: {
6617
+ getClosure(date: string, params?: {
6571
6618
  location_id?: string | undefined;
6572
6619
  } | undefined): import("../types/api").RequestData<{
6573
6620
  date: string;
@@ -6636,7 +6683,7 @@ export declare class API {
6636
6683
  total: number;
6637
6684
  }[] | undefined;
6638
6685
  }>;
6639
- getAccountingCategories(params: {}): import("../types/api").RequestData<{
6686
+ getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
6640
6687
  id: string;
6641
6688
  name: string;
6642
6689
  id_parent?: string | undefined;
@@ -6646,19 +6693,15 @@ export declare class API {
6646
6693
  }[]>;
6647
6694
  }>;
6648
6695
  accounting: import("../types/api").ApiFor<{
6649
- getAnalyticPlans(params: {
6696
+ getAnalyticPlans(params?: {
6650
6697
  folder_id?: string | undefined;
6651
- page?: number | undefined;
6652
- size?: number | undefined;
6653
6698
  } | undefined): import("../types/api").RequestData<{
6654
6699
  id: string;
6655
6700
  name: string;
6656
6701
  active?: boolean | undefined;
6657
6702
  }[]>;
6658
- getClients(params: {
6703
+ getClients(params?: {
6659
6704
  folder_id?: string | undefined;
6660
- page?: number | undefined;
6661
- size?: number | undefined;
6662
6705
  } | undefined): import("../types/api").RequestData<{
6663
6706
  external_reference?: string | undefined;
6664
6707
  first_name?: string | undefined;
@@ -6728,7 +6771,7 @@ export declare class API {
6728
6771
  country: string;
6729
6772
  }[];
6730
6773
  account_number?: string | undefined;
6731
- }, params: {
6774
+ }, params?: {
6732
6775
  force_merge?: string | undefined;
6733
6776
  folder_id?: string | undefined;
6734
6777
  } | undefined): import("../types/api").RequestData<{
@@ -6767,7 +6810,7 @@ export declare class API {
6767
6810
  company_number?: string | undefined;
6768
6811
  id?: string | undefined;
6769
6812
  }>;
6770
- getClient(clientId: string, params: {
6813
+ getClient(clientId: string, params?: {
6771
6814
  folder_id?: string | undefined;
6772
6815
  } | undefined): import("../types/api").RequestData<{
6773
6816
  external_reference?: string | undefined;
@@ -6837,7 +6880,7 @@ export declare class API {
6837
6880
  postal_code?: string | undefined;
6838
6881
  country?: string | undefined;
6839
6882
  }[] | undefined;
6840
- }, params: {
6883
+ }, params?: {
6841
6884
  folder_id?: string | undefined;
6842
6885
  } | undefined): import("../types/api").RequestData<{
6843
6886
  external_reference?: string | undefined;
@@ -6875,10 +6918,8 @@ export declare class API {
6875
6918
  company_number?: string | undefined;
6876
6919
  id?: string | undefined;
6877
6920
  }>;
6878
- getSuppliers(params: {
6921
+ getSuppliers(params?: {
6879
6922
  folder_id?: string | undefined;
6880
- page?: number | undefined;
6881
- size?: number | undefined;
6882
6923
  } | undefined): import("../types/api").RequestData<{
6883
6924
  external_reference?: string | undefined;
6884
6925
  first_name?: string | undefined;
@@ -6948,7 +6989,7 @@ export declare class API {
6948
6989
  country: string;
6949
6990
  }[];
6950
6991
  account_number?: string | undefined;
6951
- }, params: {
6992
+ }, params?: {
6952
6993
  force_merge?: string | undefined;
6953
6994
  folder_id?: string | undefined;
6954
6995
  } | undefined): import("../types/api").RequestData<{
@@ -6987,7 +7028,7 @@ export declare class API {
6987
7028
  company_number?: string | undefined;
6988
7029
  id?: string | undefined;
6989
7030
  }>;
6990
- getSupplier(supplierId: string, params: {
7031
+ getSupplier(supplierId: string, params?: {
6991
7032
  folder_id?: string | undefined;
6992
7033
  } | undefined): import("../types/api").RequestData<{
6993
7034
  external_reference?: string | undefined;
@@ -7057,7 +7098,7 @@ export declare class API {
7057
7098
  postal_code?: string | undefined;
7058
7099
  country?: string | undefined;
7059
7100
  }[] | undefined;
7060
- }, params: {
7101
+ }, params?: {
7061
7102
  folder_id?: string | undefined;
7062
7103
  } | undefined): import("../types/api").RequestData<{
7063
7104
  external_reference?: string | undefined;
@@ -7142,7 +7183,7 @@ export declare class API {
7142
7183
  tax_code: string;
7143
7184
  analytic_account?: string | undefined;
7144
7185
  }[];
7145
- }, params: {
7186
+ }, params?: {
7146
7187
  force_financial_period?: string | undefined;
7147
7188
  regroup_lines?: "true" | "false" | undefined;
7148
7189
  folder_id?: string | undefined;
@@ -7244,7 +7285,7 @@ export declare class API {
7244
7285
  }[];
7245
7286
  }[] | undefined;
7246
7287
  }[];
7247
- }, params: {
7288
+ }, params?: {
7248
7289
  force_financial_period?: string | undefined;
7249
7290
  regroup_lines?: "true" | "false" | undefined;
7250
7291
  folder_id?: string | undefined;
@@ -7299,7 +7340,14 @@ export declare class API {
7299
7340
  }[] | undefined;
7300
7341
  }[];
7301
7342
  }>;
7302
- getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
7343
+ getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
7344
+ date_from?: string | undefined;
7345
+ date_to?: string | undefined;
7346
+ folder_id?: string | undefined;
7347
+ journal_ids?: string | undefined;
7348
+ include_payments?: "true" | "false" | undefined;
7349
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
7350
+ } | undefined): import("../types/api").RequestData<{
7303
7351
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
7304
7352
  invoice_number?: string | undefined;
7305
7353
  currency: string;
@@ -7344,7 +7392,7 @@ export declare class API {
7344
7392
  analytic_account?: string | undefined;
7345
7393
  }[];
7346
7394
  }[]>;
7347
- getInvoice(invoiceId: string, params: {
7395
+ getInvoice(invoiceId: string, params?: {
7348
7396
  include_payments?: "true" | "false" | undefined;
7349
7397
  folder_id?: string | undefined;
7350
7398
  } | undefined): import("../types/api").RequestData<{
@@ -7392,7 +7440,7 @@ export declare class API {
7392
7440
  analytic_account?: string | undefined;
7393
7441
  }[];
7394
7442
  }>;
7395
- getInvoiceWithMultiplePlans(invoiceId: string, params: {
7443
+ getInvoiceWithMultiplePlans(invoiceId: string, params?: {
7396
7444
  include_payments?: "true" | "false" | undefined;
7397
7445
  folder_id?: string | undefined;
7398
7446
  } | undefined): import("../types/api").RequestData<{
@@ -7446,7 +7494,14 @@ export declare class API {
7446
7494
  }[] | undefined;
7447
7495
  }[];
7448
7496
  }>;
7449
- getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
7497
+ getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
7498
+ date_from?: string | undefined;
7499
+ date_to?: string | undefined;
7500
+ folder_id?: string | undefined;
7501
+ journal_ids?: string | undefined;
7502
+ include_payments?: "true" | "false" | undefined;
7503
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
7504
+ } | undefined): import("../types/api").RequestData<{
7450
7505
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
7451
7506
  invoice_number?: string | undefined;
7452
7507
  currency: string;
@@ -7502,7 +7557,7 @@ export declare class API {
7502
7557
  code: string;
7503
7558
  name: string;
7504
7559
  currency: string;
7505
- }, params: {
7560
+ }, params?: {
7506
7561
  folder_id?: string | undefined;
7507
7562
  } | undefined): import("../types/api").RequestData<{
7508
7563
  id: string;
@@ -7514,10 +7569,8 @@ export declare class API {
7514
7569
  credit?: number | undefined;
7515
7570
  debit?: number | undefined;
7516
7571
  }>;
7517
- getAnalyticAccounts(params: {
7572
+ getAnalyticAccounts(params?: {
7518
7573
  folder_id?: string | undefined;
7519
- page?: number | undefined;
7520
- size?: number | undefined;
7521
7574
  } | undefined): import("../types/api").RequestData<{
7522
7575
  id: string;
7523
7576
  active: boolean;
@@ -7533,7 +7586,7 @@ export declare class API {
7533
7586
  code: string;
7534
7587
  name: string;
7535
7588
  currency: string;
7536
- }, params: {
7589
+ }, params?: {
7537
7590
  folder_id?: string | undefined;
7538
7591
  } | undefined): import("../types/api").RequestData<{
7539
7592
  id: string;
@@ -7546,7 +7599,7 @@ export declare class API {
7546
7599
  debit?: number | undefined;
7547
7600
  analytic_plan: string;
7548
7601
  }>;
7549
- getAnalyticAccount(analytic_account_id: string, params: {
7602
+ getAnalyticAccount(analytic_account_id: string, params?: {
7550
7603
  folder_id?: string | undefined;
7551
7604
  } | undefined): import("../types/api").RequestData<{
7552
7605
  id: string;
@@ -7563,7 +7616,7 @@ export declare class API {
7563
7616
  code?: string | undefined;
7564
7617
  name?: string | undefined;
7565
7618
  currency?: string | undefined;
7566
- }, params: {
7619
+ }, params?: {
7567
7620
  folder_id?: string | undefined;
7568
7621
  } | undefined): import("../types/api").RequestData<{
7569
7622
  id: string;
@@ -7575,7 +7628,7 @@ export declare class API {
7575
7628
  credit?: number | undefined;
7576
7629
  debit?: number | undefined;
7577
7630
  }>;
7578
- getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
7631
+ getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
7579
7632
  folder_id?: string | undefined;
7580
7633
  } | undefined): import("../types/api").RequestData<{
7581
7634
  id: string;
@@ -7593,7 +7646,7 @@ export declare class API {
7593
7646
  code?: string | undefined;
7594
7647
  name?: string | undefined;
7595
7648
  currency?: string | undefined;
7596
- }, params: {
7649
+ }, params?: {
7597
7650
  folder_id?: string | undefined;
7598
7651
  } | undefined): import("../types/api").RequestData<{
7599
7652
  id: string;
@@ -7606,10 +7659,8 @@ export declare class API {
7606
7659
  debit?: number | undefined;
7607
7660
  analytic_plan: string;
7608
7661
  }>;
7609
- getAnalyticAccountsWithMultiplePlans(params: {
7662
+ getAnalyticAccountsWithMultiplePlans(params?: {
7610
7663
  folder_id?: string | undefined;
7611
- page?: number | undefined;
7612
- size?: number | undefined;
7613
7664
  } | undefined): import("../types/api").RequestData<{
7614
7665
  id: string;
7615
7666
  active: boolean;
@@ -7690,7 +7741,7 @@ export declare class API {
7690
7741
  }[] | undefined;
7691
7742
  }[] | undefined;
7692
7743
  }[]>;
7693
- getPaymentsByInvoiceId(invoice_id: string, params: {
7744
+ getPaymentsByInvoiceId(invoice_id: string, params?: {
7694
7745
  folder_id?: string | undefined;
7695
7746
  page?: number | undefined;
7696
7747
  size?: number | undefined;
@@ -7708,20 +7759,16 @@ export declare class API {
7708
7759
  communication?: string | undefined;
7709
7760
  matching_number?: string | undefined;
7710
7761
  }[]>;
7711
- getJournals(params: {
7762
+ getJournals(params?: {
7712
7763
  folder_id?: string | undefined;
7713
- page?: number | undefined;
7714
- size?: number | undefined;
7715
7764
  } | undefined): import("../types/api").RequestData<{
7716
7765
  id: string;
7717
7766
  code?: string | undefined;
7718
7767
  name: string;
7719
7768
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
7720
7769
  }[]>;
7721
- getVatCodes(params: {
7770
+ getVatCodes(params?: {
7722
7771
  folder_id?: string | undefined;
7723
- page?: number | undefined;
7724
- size?: number | undefined;
7725
7772
  } | undefined): import("../types/api").RequestData<{
7726
7773
  id: string;
7727
7774
  code?: string | undefined;
@@ -7732,7 +7779,12 @@ export declare class API {
7732
7779
  deductible_account?: string | undefined;
7733
7780
  payable_account?: string | undefined;
7734
7781
  }[]>;
7735
- getMiscOperations(params: {}): import("../types/api").RequestData<{
7782
+ getMiscOperations(params?: {
7783
+ date_from?: string | undefined;
7784
+ date_to?: string | undefined;
7785
+ folder_id?: string | undefined;
7786
+ journal_ids?: string | undefined;
7787
+ } | undefined): import("../types/api").RequestData<{
7736
7788
  operation_number?: string | undefined;
7737
7789
  currency: string;
7738
7790
  currency_exchange_rate?: number | undefined;
@@ -7766,7 +7818,7 @@ export declare class API {
7766
7818
  operation_date: string;
7767
7819
  journal_id?: string | undefined;
7768
7820
  status?: "draft" | "posted" | undefined;
7769
- }, params: {
7821
+ }, params?: {
7770
7822
  folder_id?: string | undefined;
7771
7823
  } | undefined): import("../types/api").RequestData<{
7772
7824
  operation_number?: string | undefined;
@@ -7786,7 +7838,7 @@ export declare class API {
7786
7838
  status: "cancelled" | "draft" | "posted" | "matched";
7787
7839
  id: string;
7788
7840
  }>;
7789
- getMiscOperation(operation_id: string, params: {
7841
+ getMiscOperation(operation_id: string, params?: {
7790
7842
  folder_id?: string | undefined;
7791
7843
  } | undefined): import("../types/api").RequestData<{
7792
7844
  operation_number?: string | undefined;
@@ -7808,24 +7860,25 @@ export declare class API {
7808
7860
  }>;
7809
7861
  attachPDF(invoice_id: string, attachment: {
7810
7862
  base64_string: string;
7811
- }, params: {
7863
+ }, params?: {
7812
7864
  overwrite_existing?: "true" | "false" | undefined;
7813
7865
  folder_id?: string | undefined;
7814
7866
  } | undefined): import("../types/api").RequestData<{
7815
7867
  content: {
7816
- "application/json": unknown;
7868
+ 'application/json': unknown;
7817
7869
  };
7818
7870
  }>;
7819
7871
  getAttachments(params: {
7872
+ folder_id?: string | undefined;
7820
7873
  type: "invoice" | "entry";
7821
7874
  document_id: string;
7822
- folder_id?: string | undefined;
7823
- page?: number | undefined;
7824
- size?: number | undefined;
7825
7875
  }): import("../types/api").RequestData<{
7826
7876
  base64_string: string;
7827
7877
  }[]>;
7828
- getChartOfAccounts(params: {}): import("../types/api").RequestData<{
7878
+ getChartOfAccounts(params?: {
7879
+ classes?: string | undefined;
7880
+ folder_id?: string | undefined;
7881
+ } | undefined): import("../types/api").RequestData<{
7829
7882
  number: string;
7830
7883
  name: string;
7831
7884
  active?: boolean | undefined;
@@ -7835,10 +7888,8 @@ export declare class API {
7835
7888
  accounts: string[];
7836
7889
  start?: string | undefined;
7837
7890
  end: string;
7838
- }, params: {
7891
+ }, params?: {
7839
7892
  folder_id?: string | undefined;
7840
- page?: number | undefined;
7841
- size?: number | undefined;
7842
7893
  } | undefined): import("../types/api").RequestData<{
7843
7894
  account_number: string;
7844
7895
  account_name?: string | undefined;
@@ -7846,10 +7897,8 @@ export declare class API {
7846
7897
  credit: number;
7847
7898
  balance: number;
7848
7899
  }[]>;
7849
- getEmployees(params: {
7900
+ getEmployees(params?: {
7850
7901
  folder_id?: string | undefined;
7851
- page?: number | undefined;
7852
- size?: number | undefined;
7853
7902
  } | undefined): import("../types/api").RequestData<{
7854
7903
  id: string;
7855
7904
  name: string;
@@ -7865,8 +7914,8 @@ export declare class API {
7865
7914
  }[]>;
7866
7915
  getOutstandings(params: {
7867
7916
  folder_id?: string | undefined;
7868
- unposted_allowed: "true" | "false";
7869
7917
  type: "supplier" | "client";
7918
+ unposted_allowed: "true" | "false";
7870
7919
  }): import("../types/api").RequestData<{
7871
7920
  id: string;
7872
7921
  number?: string | undefined;
@@ -7899,7 +7948,7 @@ export declare class API {
7899
7948
  description?: string | undefined;
7900
7949
  }[];
7901
7950
  pdf?: string | undefined;
7902
- }, params: {
7951
+ }, params?: {
7903
7952
  financial_counterpart_account?: string | undefined;
7904
7953
  folder_id?: string | undefined;
7905
7954
  } | undefined): import("../types/api").RequestData<{
@@ -7933,7 +7982,7 @@ export declare class API {
7933
7982
  description?: string | undefined;
7934
7983
  }[];
7935
7984
  pdf?: string | undefined;
7936
- }, params: {
7985
+ }, params?: {
7937
7986
  financial_counterpart_account?: string | undefined;
7938
7987
  folder_id?: string | undefined;
7939
7988
  } | undefined): import("../types/api").RequestData<{
@@ -8032,7 +8081,7 @@ export declare class API {
8032
8081
  }[];
8033
8082
  pdf?: string | undefined;
8034
8083
  posted?: boolean | undefined;
8035
- }, params: {
8084
+ }, params?: {
8036
8085
  folder_id?: string | undefined;
8037
8086
  } | undefined): import("../types/api").RequestData<{
8038
8087
  reference?: string | undefined;
@@ -8067,7 +8116,7 @@ export declare class API {
8067
8116
  matchEntries(body: {
8068
8117
  entries: string[];
8069
8118
  partner_id: string;
8070
- }, params: {
8119
+ }, params?: {
8071
8120
  folder_id?: string | undefined;
8072
8121
  } | undefined): import("../types/api").RequestData<{
8073
8122
  matching_number: string;
@@ -8080,14 +8129,12 @@ export declare class API {
8080
8129
  }[]>;
8081
8130
  }>;
8082
8131
  invoicing: import("../types/api").ApiFor<{
8083
- getInvoices(params: {
8084
- invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
8085
- payment_status?: "all" | "paid" | "unpaid" | undefined;
8132
+ getInvoices(params?: {
8086
8133
  date_from?: string | undefined;
8087
8134
  date_to?: string | undefined;
8135
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
8136
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
8088
8137
  updated_after?: string | undefined;
8089
- page?: number | undefined;
8090
- size?: number | undefined;
8091
8138
  } | undefined): import("../types/api").RequestData<{
8092
8139
  id: string;
8093
8140
  source_ref: {
@@ -8131,7 +8178,7 @@ export declare class API {
8131
8178
  outstanding_amount?: number | undefined;
8132
8179
  last_updated_on?: string | undefined;
8133
8180
  }[]>;
8134
- getInvoiceById(invoiceId: string, params: {
8181
+ getInvoiceById(invoiceId: string, params?: {
8135
8182
  include_pdf?: "true" | "false" | undefined;
8136
8183
  } | undefined): import("../types/api").RequestData<{
8137
8184
  id: string;
@@ -8393,8 +8440,6 @@ export declare class API {
8393
8440
  }>;
8394
8441
  getContacts(params?: {
8395
8442
  contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
8396
- page?: number | undefined;
8397
- size?: number | undefined;
8398
8443
  } | undefined): import("../types/api").RequestData<{
8399
8444
  id: string;
8400
8445
  source_ref: {
@@ -8805,7 +8850,12 @@ export declare class API {
8805
8850
  id: string;
8806
8851
  name: string;
8807
8852
  }[]>;
8808
- getOrders(params: {}): import("../types/api").RequestData<{
8853
+ getOrders(params?: {
8854
+ date_from?: string | undefined;
8855
+ date_to?: string | undefined;
8856
+ updated_after?: string | undefined;
8857
+ include_detailed_refunds?: "true" | "false" | undefined;
8858
+ } | undefined): import("../types/api").RequestData<{
8809
8859
  id: string;
8810
8860
  source_ref: {
8811
8861
  id?: string | undefined;
@@ -9296,7 +9346,7 @@ export declare class API {
9296
9346
  name?: string | undefined;
9297
9347
  }[] | undefined;
9298
9348
  }>;
9299
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
9349
+ getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
9300
9350
  id: string;
9301
9351
  source_ref: {
9302
9352
  id?: string | undefined;
@@ -9305,7 +9355,9 @@ export declare class API {
9305
9355
  name: string;
9306
9356
  active: boolean;
9307
9357
  }[]>;
9308
- getProductCategories(params: {}): import("../types/api").RequestData<{
9358
+ getProductCategories(params?: {
9359
+ only_parents?: "true" | "false" | undefined;
9360
+ } | undefined): import("../types/api").RequestData<{
9309
9361
  id: string;
9310
9362
  source_ref: {
9311
9363
  id?: string | undefined;
@@ -9314,7 +9366,7 @@ export declare class API {
9314
9366
  name: string;
9315
9367
  parent_id?: string | undefined;
9316
9368
  }[]>;
9317
- getTaxes(params: {}): import("../types/api").RequestData<{
9369
+ getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
9318
9370
  id: string;
9319
9371
  source_ref: {
9320
9372
  id?: string | undefined;
@@ -9324,7 +9376,7 @@ export declare class API {
9324
9376
  rate: number;
9325
9377
  country?: string | undefined;
9326
9378
  }[]>;
9327
- getCountries(params: {}): import("../types/api").RequestData<{
9379
+ getCountries(params?: {} | undefined): import("../types/api").RequestData<{
9328
9380
  code: string;
9329
9381
  name: string;
9330
9382
  }[]>;
@@ -9419,6 +9471,8 @@ export declare class API {
9419
9471
  }[]>;
9420
9472
  deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
9421
9473
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
9474
+ setConnectionId: (connectionId: string) => Promise<void>;
9475
+ setIntegrationId: (integrationId: string) => Promise<void>;
9422
9476
  }>;
9423
9477
  getConsumersByName: (consumerName: string) => Promise<{
9424
9478
  consumerId: string;
@@ -9541,7 +9595,11 @@ export declare class API {
9541
9595
  total: number;
9542
9596
  }[] | undefined;
9543
9597
  }[]>;
9544
- getCustomers(params: {}): import("../types/api").RequestData<{
9598
+ getCustomers(params?: {
9599
+ search?: string | undefined;
9600
+ email?: string | undefined;
9601
+ phone?: string | undefined;
9602
+ } | undefined): import("../types/api").RequestData<{
9545
9603
  id: string;
9546
9604
  first_name?: string | undefined;
9547
9605
  last_name?: string | undefined;
@@ -9666,12 +9724,17 @@ export declare class API {
9666
9724
  loyalty?: number | undefined;
9667
9725
  birthdate?: string | undefined;
9668
9726
  }>;
9669
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
9727
+ getPaymentMethods(params?: {
9728
+ location_id?: string | undefined;
9729
+ } | undefined): import("../types/api").RequestData<{
9670
9730
  id: string;
9671
9731
  name: string;
9672
9732
  extra?: string | undefined;
9673
9733
  }[]>;
9674
- getProductCategories(params: {}): import("../types/api").RequestData<{
9734
+ getProductCategories(params?: {
9735
+ location_id?: string | undefined;
9736
+ only_parents?: "true" | "false" | undefined;
9737
+ } | undefined): import("../types/api").RequestData<{
9675
9738
  id: string;
9676
9739
  source_ref: {
9677
9740
  id?: string | undefined;
@@ -9680,7 +9743,9 @@ export declare class API {
9680
9743
  name: string;
9681
9744
  parent_id?: string | undefined;
9682
9745
  }[]>;
9683
- getProducts(params: {}): import("../types/api").RequestData<{
9746
+ getProducts(params?: {
9747
+ location_id?: string | undefined;
9748
+ } | undefined): import("../types/api").RequestData<{
9684
9749
  id: string;
9685
9750
  categories?: string[] | undefined;
9686
9751
  name: string;
@@ -9704,7 +9769,7 @@ export declare class API {
9704
9769
  total: number;
9705
9770
  }[] | undefined;
9706
9771
  }>;
9707
- getClosure(date: string, params: {
9772
+ getClosure(date: string, params?: {
9708
9773
  location_id?: string | undefined;
9709
9774
  } | undefined): import("../types/api").RequestData<{
9710
9775
  date: string;
@@ -9773,7 +9838,7 @@ export declare class API {
9773
9838
  total: number;
9774
9839
  }[] | undefined;
9775
9840
  }>;
9776
- getAccountingCategories(params: {}): import("../types/api").RequestData<{
9841
+ getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
9777
9842
  id: string;
9778
9843
  name: string;
9779
9844
  id_parent?: string | undefined;
@@ -9783,19 +9848,15 @@ export declare class API {
9783
9848
  }[]>;
9784
9849
  }>;
9785
9850
  accounting: import("../types/api").ApiFor<{
9786
- getAnalyticPlans(params: {
9851
+ getAnalyticPlans(params?: {
9787
9852
  folder_id?: string | undefined;
9788
- page?: number | undefined;
9789
- size?: number | undefined;
9790
9853
  } | undefined): import("../types/api").RequestData<{
9791
9854
  id: string;
9792
9855
  name: string;
9793
9856
  active?: boolean | undefined;
9794
9857
  }[]>;
9795
- getClients(params: {
9858
+ getClients(params?: {
9796
9859
  folder_id?: string | undefined;
9797
- page?: number | undefined;
9798
- size?: number | undefined;
9799
9860
  } | undefined): import("../types/api").RequestData<{
9800
9861
  external_reference?: string | undefined;
9801
9862
  first_name?: string | undefined;
@@ -9865,7 +9926,7 @@ export declare class API {
9865
9926
  country: string;
9866
9927
  }[];
9867
9928
  account_number?: string | undefined;
9868
- }, params: {
9929
+ }, params?: {
9869
9930
  force_merge?: string | undefined;
9870
9931
  folder_id?: string | undefined;
9871
9932
  } | undefined): import("../types/api").RequestData<{
@@ -9904,7 +9965,7 @@ export declare class API {
9904
9965
  company_number?: string | undefined;
9905
9966
  id?: string | undefined;
9906
9967
  }>;
9907
- getClient(clientId: string, params: {
9968
+ getClient(clientId: string, params?: {
9908
9969
  folder_id?: string | undefined;
9909
9970
  } | undefined): import("../types/api").RequestData<{
9910
9971
  external_reference?: string | undefined;
@@ -9974,7 +10035,7 @@ export declare class API {
9974
10035
  postal_code?: string | undefined;
9975
10036
  country?: string | undefined;
9976
10037
  }[] | undefined;
9977
- }, params: {
10038
+ }, params?: {
9978
10039
  folder_id?: string | undefined;
9979
10040
  } | undefined): import("../types/api").RequestData<{
9980
10041
  external_reference?: string | undefined;
@@ -10012,10 +10073,8 @@ export declare class API {
10012
10073
  company_number?: string | undefined;
10013
10074
  id?: string | undefined;
10014
10075
  }>;
10015
- getSuppliers(params: {
10076
+ getSuppliers(params?: {
10016
10077
  folder_id?: string | undefined;
10017
- page?: number | undefined;
10018
- size?: number | undefined;
10019
10078
  } | undefined): import("../types/api").RequestData<{
10020
10079
  external_reference?: string | undefined;
10021
10080
  first_name?: string | undefined;
@@ -10085,7 +10144,7 @@ export declare class API {
10085
10144
  country: string;
10086
10145
  }[];
10087
10146
  account_number?: string | undefined;
10088
- }, params: {
10147
+ }, params?: {
10089
10148
  force_merge?: string | undefined;
10090
10149
  folder_id?: string | undefined;
10091
10150
  } | undefined): import("../types/api").RequestData<{
@@ -10124,7 +10183,7 @@ export declare class API {
10124
10183
  company_number?: string | undefined;
10125
10184
  id?: string | undefined;
10126
10185
  }>;
10127
- getSupplier(supplierId: string, params: {
10186
+ getSupplier(supplierId: string, params?: {
10128
10187
  folder_id?: string | undefined;
10129
10188
  } | undefined): import("../types/api").RequestData<{
10130
10189
  external_reference?: string | undefined;
@@ -10194,7 +10253,7 @@ export declare class API {
10194
10253
  postal_code?: string | undefined;
10195
10254
  country?: string | undefined;
10196
10255
  }[] | undefined;
10197
- }, params: {
10256
+ }, params?: {
10198
10257
  folder_id?: string | undefined;
10199
10258
  } | undefined): import("../types/api").RequestData<{
10200
10259
  external_reference?: string | undefined;
@@ -10279,7 +10338,7 @@ export declare class API {
10279
10338
  tax_code: string;
10280
10339
  analytic_account?: string | undefined;
10281
10340
  }[];
10282
- }, params: {
10341
+ }, params?: {
10283
10342
  force_financial_period?: string | undefined;
10284
10343
  regroup_lines?: "true" | "false" | undefined;
10285
10344
  folder_id?: string | undefined;
@@ -10381,7 +10440,7 @@ export declare class API {
10381
10440
  }[];
10382
10441
  }[] | undefined;
10383
10442
  }[];
10384
- }, params: {
10443
+ }, params?: {
10385
10444
  force_financial_period?: string | undefined;
10386
10445
  regroup_lines?: "true" | "false" | undefined;
10387
10446
  folder_id?: string | undefined;
@@ -10436,7 +10495,14 @@ export declare class API {
10436
10495
  }[] | undefined;
10437
10496
  }[];
10438
10497
  }>;
10439
- getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
10498
+ getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
10499
+ date_from?: string | undefined;
10500
+ date_to?: string | undefined;
10501
+ folder_id?: string | undefined;
10502
+ journal_ids?: string | undefined;
10503
+ include_payments?: "true" | "false" | undefined;
10504
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
10505
+ } | undefined): import("../types/api").RequestData<{
10440
10506
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10441
10507
  invoice_number?: string | undefined;
10442
10508
  currency: string;
@@ -10481,7 +10547,7 @@ export declare class API {
10481
10547
  analytic_account?: string | undefined;
10482
10548
  }[];
10483
10549
  }[]>;
10484
- getInvoice(invoiceId: string, params: {
10550
+ getInvoice(invoiceId: string, params?: {
10485
10551
  include_payments?: "true" | "false" | undefined;
10486
10552
  folder_id?: string | undefined;
10487
10553
  } | undefined): import("../types/api").RequestData<{
@@ -10529,7 +10595,7 @@ export declare class API {
10529
10595
  analytic_account?: string | undefined;
10530
10596
  }[];
10531
10597
  }>;
10532
- getInvoiceWithMultiplePlans(invoiceId: string, params: {
10598
+ getInvoiceWithMultiplePlans(invoiceId: string, params?: {
10533
10599
  include_payments?: "true" | "false" | undefined;
10534
10600
  folder_id?: string | undefined;
10535
10601
  } | undefined): import("../types/api").RequestData<{
@@ -10583,7 +10649,14 @@ export declare class API {
10583
10649
  }[] | undefined;
10584
10650
  }[];
10585
10651
  }>;
10586
- getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
10652
+ getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
10653
+ date_from?: string | undefined;
10654
+ date_to?: string | undefined;
10655
+ folder_id?: string | undefined;
10656
+ journal_ids?: string | undefined;
10657
+ include_payments?: "true" | "false" | undefined;
10658
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
10659
+ } | undefined): import("../types/api").RequestData<{
10587
10660
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10588
10661
  invoice_number?: string | undefined;
10589
10662
  currency: string;
@@ -10639,7 +10712,7 @@ export declare class API {
10639
10712
  code: string;
10640
10713
  name: string;
10641
10714
  currency: string;
10642
- }, params: {
10715
+ }, params?: {
10643
10716
  folder_id?: string | undefined;
10644
10717
  } | undefined): import("../types/api").RequestData<{
10645
10718
  id: string;
@@ -10651,10 +10724,8 @@ export declare class API {
10651
10724
  credit?: number | undefined;
10652
10725
  debit?: number | undefined;
10653
10726
  }>;
10654
- getAnalyticAccounts(params: {
10727
+ getAnalyticAccounts(params?: {
10655
10728
  folder_id?: string | undefined;
10656
- page?: number | undefined;
10657
- size?: number | undefined;
10658
10729
  } | undefined): import("../types/api").RequestData<{
10659
10730
  id: string;
10660
10731
  active: boolean;
@@ -10670,7 +10741,7 @@ export declare class API {
10670
10741
  code: string;
10671
10742
  name: string;
10672
10743
  currency: string;
10673
- }, params: {
10744
+ }, params?: {
10674
10745
  folder_id?: string | undefined;
10675
10746
  } | undefined): import("../types/api").RequestData<{
10676
10747
  id: string;
@@ -10683,7 +10754,7 @@ export declare class API {
10683
10754
  debit?: number | undefined;
10684
10755
  analytic_plan: string;
10685
10756
  }>;
10686
- getAnalyticAccount(analytic_account_id: string, params: {
10757
+ getAnalyticAccount(analytic_account_id: string, params?: {
10687
10758
  folder_id?: string | undefined;
10688
10759
  } | undefined): import("../types/api").RequestData<{
10689
10760
  id: string;
@@ -10700,7 +10771,7 @@ export declare class API {
10700
10771
  code?: string | undefined;
10701
10772
  name?: string | undefined;
10702
10773
  currency?: string | undefined;
10703
- }, params: {
10774
+ }, params?: {
10704
10775
  folder_id?: string | undefined;
10705
10776
  } | undefined): import("../types/api").RequestData<{
10706
10777
  id: string;
@@ -10712,7 +10783,7 @@ export declare class API {
10712
10783
  credit?: number | undefined;
10713
10784
  debit?: number | undefined;
10714
10785
  }>;
10715
- getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
10786
+ getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
10716
10787
  folder_id?: string | undefined;
10717
10788
  } | undefined): import("../types/api").RequestData<{
10718
10789
  id: string;
@@ -10730,7 +10801,7 @@ export declare class API {
10730
10801
  code?: string | undefined;
10731
10802
  name?: string | undefined;
10732
10803
  currency?: string | undefined;
10733
- }, params: {
10804
+ }, params?: {
10734
10805
  folder_id?: string | undefined;
10735
10806
  } | undefined): import("../types/api").RequestData<{
10736
10807
  id: string;
@@ -10743,10 +10814,8 @@ export declare class API {
10743
10814
  debit?: number | undefined;
10744
10815
  analytic_plan: string;
10745
10816
  }>;
10746
- getAnalyticAccountsWithMultiplePlans(params: {
10817
+ getAnalyticAccountsWithMultiplePlans(params?: {
10747
10818
  folder_id?: string | undefined;
10748
- page?: number | undefined;
10749
- size?: number | undefined;
10750
10819
  } | undefined): import("../types/api").RequestData<{
10751
10820
  id: string;
10752
10821
  active: boolean;
@@ -10827,7 +10896,7 @@ export declare class API {
10827
10896
  }[] | undefined;
10828
10897
  }[] | undefined;
10829
10898
  }[]>;
10830
- getPaymentsByInvoiceId(invoice_id: string, params: {
10899
+ getPaymentsByInvoiceId(invoice_id: string, params?: {
10831
10900
  folder_id?: string | undefined;
10832
10901
  page?: number | undefined;
10833
10902
  size?: number | undefined;
@@ -10845,20 +10914,16 @@ export declare class API {
10845
10914
  communication?: string | undefined;
10846
10915
  matching_number?: string | undefined;
10847
10916
  }[]>;
10848
- getJournals(params: {
10917
+ getJournals(params?: {
10849
10918
  folder_id?: string | undefined;
10850
- page?: number | undefined;
10851
- size?: number | undefined;
10852
10919
  } | undefined): import("../types/api").RequestData<{
10853
10920
  id: string;
10854
10921
  code?: string | undefined;
10855
10922
  name: string;
10856
10923
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
10857
10924
  }[]>;
10858
- getVatCodes(params: {
10925
+ getVatCodes(params?: {
10859
10926
  folder_id?: string | undefined;
10860
- page?: number | undefined;
10861
- size?: number | undefined;
10862
10927
  } | undefined): import("../types/api").RequestData<{
10863
10928
  id: string;
10864
10929
  code?: string | undefined;
@@ -10869,7 +10934,12 @@ export declare class API {
10869
10934
  deductible_account?: string | undefined;
10870
10935
  payable_account?: string | undefined;
10871
10936
  }[]>;
10872
- getMiscOperations(params: {}): import("../types/api").RequestData<{
10937
+ getMiscOperations(params?: {
10938
+ date_from?: string | undefined;
10939
+ date_to?: string | undefined;
10940
+ folder_id?: string | undefined;
10941
+ journal_ids?: string | undefined;
10942
+ } | undefined): import("../types/api").RequestData<{
10873
10943
  operation_number?: string | undefined;
10874
10944
  currency: string;
10875
10945
  currency_exchange_rate?: number | undefined;
@@ -10903,7 +10973,7 @@ export declare class API {
10903
10973
  operation_date: string;
10904
10974
  journal_id?: string | undefined;
10905
10975
  status?: "draft" | "posted" | undefined;
10906
- }, params: {
10976
+ }, params?: {
10907
10977
  folder_id?: string | undefined;
10908
10978
  } | undefined): import("../types/api").RequestData<{
10909
10979
  operation_number?: string | undefined;
@@ -10923,7 +10993,7 @@ export declare class API {
10923
10993
  status: "cancelled" | "draft" | "posted" | "matched";
10924
10994
  id: string;
10925
10995
  }>;
10926
- getMiscOperation(operation_id: string, params: {
10996
+ getMiscOperation(operation_id: string, params?: {
10927
10997
  folder_id?: string | undefined;
10928
10998
  } | undefined): import("../types/api").RequestData<{
10929
10999
  operation_number?: string | undefined;
@@ -10945,24 +11015,25 @@ export declare class API {
10945
11015
  }>;
10946
11016
  attachPDF(invoice_id: string, attachment: {
10947
11017
  base64_string: string;
10948
- }, params: {
11018
+ }, params?: {
10949
11019
  overwrite_existing?: "true" | "false" | undefined;
10950
11020
  folder_id?: string | undefined;
10951
11021
  } | undefined): import("../types/api").RequestData<{
10952
11022
  content: {
10953
- "application/json": unknown;
11023
+ 'application/json': unknown;
10954
11024
  };
10955
11025
  }>;
10956
11026
  getAttachments(params: {
11027
+ folder_id?: string | undefined;
10957
11028
  type: "invoice" | "entry";
10958
11029
  document_id: string;
10959
- folder_id?: string | undefined;
10960
- page?: number | undefined;
10961
- size?: number | undefined;
10962
11030
  }): import("../types/api").RequestData<{
10963
11031
  base64_string: string;
10964
11032
  }[]>;
10965
- getChartOfAccounts(params: {}): import("../types/api").RequestData<{
11033
+ getChartOfAccounts(params?: {
11034
+ classes?: string | undefined;
11035
+ folder_id?: string | undefined;
11036
+ } | undefined): import("../types/api").RequestData<{
10966
11037
  number: string;
10967
11038
  name: string;
10968
11039
  active?: boolean | undefined;
@@ -10972,10 +11043,8 @@ export declare class API {
10972
11043
  accounts: string[];
10973
11044
  start?: string | undefined;
10974
11045
  end: string;
10975
- }, params: {
11046
+ }, params?: {
10976
11047
  folder_id?: string | undefined;
10977
- page?: number | undefined;
10978
- size?: number | undefined;
10979
11048
  } | undefined): import("../types/api").RequestData<{
10980
11049
  account_number: string;
10981
11050
  account_name?: string | undefined;
@@ -10983,10 +11052,8 @@ export declare class API {
10983
11052
  credit: number;
10984
11053
  balance: number;
10985
11054
  }[]>;
10986
- getEmployees(params: {
11055
+ getEmployees(params?: {
10987
11056
  folder_id?: string | undefined;
10988
- page?: number | undefined;
10989
- size?: number | undefined;
10990
11057
  } | undefined): import("../types/api").RequestData<{
10991
11058
  id: string;
10992
11059
  name: string;
@@ -11002,8 +11069,8 @@ export declare class API {
11002
11069
  }[]>;
11003
11070
  getOutstandings(params: {
11004
11071
  folder_id?: string | undefined;
11005
- unposted_allowed: "true" | "false";
11006
11072
  type: "supplier" | "client";
11073
+ unposted_allowed: "true" | "false";
11007
11074
  }): import("../types/api").RequestData<{
11008
11075
  id: string;
11009
11076
  number?: string | undefined;
@@ -11036,7 +11103,7 @@ export declare class API {
11036
11103
  description?: string | undefined;
11037
11104
  }[];
11038
11105
  pdf?: string | undefined;
11039
- }, params: {
11106
+ }, params?: {
11040
11107
  financial_counterpart_account?: string | undefined;
11041
11108
  folder_id?: string | undefined;
11042
11109
  } | undefined): import("../types/api").RequestData<{
@@ -11070,7 +11137,7 @@ export declare class API {
11070
11137
  description?: string | undefined;
11071
11138
  }[];
11072
11139
  pdf?: string | undefined;
11073
- }, params: {
11140
+ }, params?: {
11074
11141
  financial_counterpart_account?: string | undefined;
11075
11142
  folder_id?: string | undefined;
11076
11143
  } | undefined): import("../types/api").RequestData<{
@@ -11169,7 +11236,7 @@ export declare class API {
11169
11236
  }[];
11170
11237
  pdf?: string | undefined;
11171
11238
  posted?: boolean | undefined;
11172
- }, params: {
11239
+ }, params?: {
11173
11240
  folder_id?: string | undefined;
11174
11241
  } | undefined): import("../types/api").RequestData<{
11175
11242
  reference?: string | undefined;
@@ -11204,7 +11271,7 @@ export declare class API {
11204
11271
  matchEntries(body: {
11205
11272
  entries: string[];
11206
11273
  partner_id: string;
11207
- }, params: {
11274
+ }, params?: {
11208
11275
  folder_id?: string | undefined;
11209
11276
  } | undefined): import("../types/api").RequestData<{
11210
11277
  matching_number: string;
@@ -11217,14 +11284,12 @@ export declare class API {
11217
11284
  }[]>;
11218
11285
  }>;
11219
11286
  invoicing: import("../types/api").ApiFor<{
11220
- getInvoices(params: {
11221
- invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
11222
- payment_status?: "all" | "paid" | "unpaid" | undefined;
11287
+ getInvoices(params?: {
11223
11288
  date_from?: string | undefined;
11224
11289
  date_to?: string | undefined;
11290
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
11291
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
11225
11292
  updated_after?: string | undefined;
11226
- page?: number | undefined;
11227
- size?: number | undefined;
11228
11293
  } | undefined): import("../types/api").RequestData<{
11229
11294
  id: string;
11230
11295
  source_ref: {
@@ -11268,7 +11333,7 @@ export declare class API {
11268
11333
  outstanding_amount?: number | undefined;
11269
11334
  last_updated_on?: string | undefined;
11270
11335
  }[]>;
11271
- getInvoiceById(invoiceId: string, params: {
11336
+ getInvoiceById(invoiceId: string, params?: {
11272
11337
  include_pdf?: "true" | "false" | undefined;
11273
11338
  } | undefined): import("../types/api").RequestData<{
11274
11339
  id: string;
@@ -11530,8 +11595,6 @@ export declare class API {
11530
11595
  }>;
11531
11596
  getContacts(params?: {
11532
11597
  contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
11533
- page?: number | undefined;
11534
- size?: number | undefined;
11535
11598
  } | undefined): import("../types/api").RequestData<{
11536
11599
  id: string;
11537
11600
  source_ref: {
@@ -11942,7 +12005,12 @@ export declare class API {
11942
12005
  id: string;
11943
12006
  name: string;
11944
12007
  }[]>;
11945
- getOrders(params: {}): import("../types/api").RequestData<{
12008
+ getOrders(params?: {
12009
+ date_from?: string | undefined;
12010
+ date_to?: string | undefined;
12011
+ updated_after?: string | undefined;
12012
+ include_detailed_refunds?: "true" | "false" | undefined;
12013
+ } | undefined): import("../types/api").RequestData<{
11946
12014
  id: string;
11947
12015
  source_ref: {
11948
12016
  id?: string | undefined;
@@ -12433,7 +12501,7 @@ export declare class API {
12433
12501
  name?: string | undefined;
12434
12502
  }[] | undefined;
12435
12503
  }>;
12436
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
12504
+ getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
12437
12505
  id: string;
12438
12506
  source_ref: {
12439
12507
  id?: string | undefined;
@@ -12442,7 +12510,9 @@ export declare class API {
12442
12510
  name: string;
12443
12511
  active: boolean;
12444
12512
  }[]>;
12445
- getProductCategories(params: {}): import("../types/api").RequestData<{
12513
+ getProductCategories(params?: {
12514
+ only_parents?: "true" | "false" | undefined;
12515
+ } | undefined): import("../types/api").RequestData<{
12446
12516
  id: string;
12447
12517
  source_ref: {
12448
12518
  id?: string | undefined;
@@ -12451,7 +12521,7 @@ export declare class API {
12451
12521
  name: string;
12452
12522
  parent_id?: string | undefined;
12453
12523
  }[]>;
12454
- getTaxes(params: {}): import("../types/api").RequestData<{
12524
+ getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
12455
12525
  id: string;
12456
12526
  source_ref: {
12457
12527
  id?: string | undefined;
@@ -12461,7 +12531,7 @@ export declare class API {
12461
12531
  rate: number;
12462
12532
  country?: string | undefined;
12463
12533
  }[]>;
12464
- getCountries(params: {}): import("../types/api").RequestData<{
12534
+ getCountries(params?: {} | undefined): import("../types/api").RequestData<{
12465
12535
  code: string;
12466
12536
  name: string;
12467
12537
  }[]>;
@@ -12556,6 +12626,8 @@ export declare class API {
12556
12626
  }[]>;
12557
12627
  deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
12558
12628
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
12629
+ setConnectionId: (connectionId: string) => Promise<void>;
12630
+ setIntegrationId: (integrationId: string) => Promise<void>;
12559
12631
  }[]>;
12560
12632
  updateConsumerById: (consumerId: string, body: {
12561
12633
  name?: string | undefined;
@@ -12682,7 +12754,11 @@ export declare class API {
12682
12754
  total: number;
12683
12755
  }[] | undefined;
12684
12756
  }[]>;
12685
- getCustomers(params: {}): import("../types/api").RequestData<{
12757
+ getCustomers(params?: {
12758
+ search?: string | undefined;
12759
+ email?: string | undefined;
12760
+ phone?: string | undefined;
12761
+ } | undefined): import("../types/api").RequestData<{
12686
12762
  id: string;
12687
12763
  first_name?: string | undefined;
12688
12764
  last_name?: string | undefined;
@@ -12807,12 +12883,17 @@ export declare class API {
12807
12883
  loyalty?: number | undefined;
12808
12884
  birthdate?: string | undefined;
12809
12885
  }>;
12810
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
12886
+ getPaymentMethods(params?: {
12887
+ location_id?: string | undefined;
12888
+ } | undefined): import("../types/api").RequestData<{
12811
12889
  id: string;
12812
12890
  name: string;
12813
12891
  extra?: string | undefined;
12814
12892
  }[]>;
12815
- getProductCategories(params: {}): import("../types/api").RequestData<{
12893
+ getProductCategories(params?: {
12894
+ location_id?: string | undefined;
12895
+ only_parents?: "true" | "false" | undefined;
12896
+ } | undefined): import("../types/api").RequestData<{
12816
12897
  id: string;
12817
12898
  source_ref: {
12818
12899
  id?: string | undefined;
@@ -12821,7 +12902,9 @@ export declare class API {
12821
12902
  name: string;
12822
12903
  parent_id?: string | undefined;
12823
12904
  }[]>;
12824
- getProducts(params: {}): import("../types/api").RequestData<{
12905
+ getProducts(params?: {
12906
+ location_id?: string | undefined;
12907
+ } | undefined): import("../types/api").RequestData<{
12825
12908
  id: string;
12826
12909
  categories?: string[] | undefined;
12827
12910
  name: string;
@@ -12845,7 +12928,7 @@ export declare class API {
12845
12928
  total: number;
12846
12929
  }[] | undefined;
12847
12930
  }>;
12848
- getClosure(date: string, params: {
12931
+ getClosure(date: string, params?: {
12849
12932
  location_id?: string | undefined;
12850
12933
  } | undefined): import("../types/api").RequestData<{
12851
12934
  date: string;
@@ -12914,7 +12997,7 @@ export declare class API {
12914
12997
  total: number;
12915
12998
  }[] | undefined;
12916
12999
  }>;
12917
- getAccountingCategories(params: {}): import("../types/api").RequestData<{
13000
+ getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
12918
13001
  id: string;
12919
13002
  name: string;
12920
13003
  id_parent?: string | undefined;
@@ -12924,19 +13007,15 @@ export declare class API {
12924
13007
  }[]>;
12925
13008
  }>;
12926
13009
  accounting: import("../types/api").ApiFor<{
12927
- getAnalyticPlans(params: {
13010
+ getAnalyticPlans(params?: {
12928
13011
  folder_id?: string | undefined;
12929
- page?: number | undefined;
12930
- size?: number | undefined;
12931
13012
  } | undefined): import("../types/api").RequestData<{
12932
13013
  id: string;
12933
13014
  name: string;
12934
13015
  active?: boolean | undefined;
12935
13016
  }[]>;
12936
- getClients(params: {
13017
+ getClients(params?: {
12937
13018
  folder_id?: string | undefined;
12938
- page?: number | undefined;
12939
- size?: number | undefined;
12940
13019
  } | undefined): import("../types/api").RequestData<{
12941
13020
  external_reference?: string | undefined;
12942
13021
  first_name?: string | undefined;
@@ -13006,7 +13085,7 @@ export declare class API {
13006
13085
  country: string;
13007
13086
  }[];
13008
13087
  account_number?: string | undefined;
13009
- }, params: {
13088
+ }, params?: {
13010
13089
  force_merge?: string | undefined;
13011
13090
  folder_id?: string | undefined;
13012
13091
  } | undefined): import("../types/api").RequestData<{
@@ -13045,7 +13124,7 @@ export declare class API {
13045
13124
  company_number?: string | undefined;
13046
13125
  id?: string | undefined;
13047
13126
  }>;
13048
- getClient(clientId: string, params: {
13127
+ getClient(clientId: string, params?: {
13049
13128
  folder_id?: string | undefined;
13050
13129
  } | undefined): import("../types/api").RequestData<{
13051
13130
  external_reference?: string | undefined;
@@ -13115,7 +13194,7 @@ export declare class API {
13115
13194
  postal_code?: string | undefined;
13116
13195
  country?: string | undefined;
13117
13196
  }[] | undefined;
13118
- }, params: {
13197
+ }, params?: {
13119
13198
  folder_id?: string | undefined;
13120
13199
  } | undefined): import("../types/api").RequestData<{
13121
13200
  external_reference?: string | undefined;
@@ -13153,10 +13232,8 @@ export declare class API {
13153
13232
  company_number?: string | undefined;
13154
13233
  id?: string | undefined;
13155
13234
  }>;
13156
- getSuppliers(params: {
13235
+ getSuppliers(params?: {
13157
13236
  folder_id?: string | undefined;
13158
- page?: number | undefined;
13159
- size?: number | undefined;
13160
13237
  } | undefined): import("../types/api").RequestData<{
13161
13238
  external_reference?: string | undefined;
13162
13239
  first_name?: string | undefined;
@@ -13226,7 +13303,7 @@ export declare class API {
13226
13303
  country: string;
13227
13304
  }[];
13228
13305
  account_number?: string | undefined;
13229
- }, params: {
13306
+ }, params?: {
13230
13307
  force_merge?: string | undefined;
13231
13308
  folder_id?: string | undefined;
13232
13309
  } | undefined): import("../types/api").RequestData<{
@@ -13265,7 +13342,7 @@ export declare class API {
13265
13342
  company_number?: string | undefined;
13266
13343
  id?: string | undefined;
13267
13344
  }>;
13268
- getSupplier(supplierId: string, params: {
13345
+ getSupplier(supplierId: string, params?: {
13269
13346
  folder_id?: string | undefined;
13270
13347
  } | undefined): import("../types/api").RequestData<{
13271
13348
  external_reference?: string | undefined;
@@ -13335,7 +13412,7 @@ export declare class API {
13335
13412
  postal_code?: string | undefined;
13336
13413
  country?: string | undefined;
13337
13414
  }[] | undefined;
13338
- }, params: {
13415
+ }, params?: {
13339
13416
  folder_id?: string | undefined;
13340
13417
  } | undefined): import("../types/api").RequestData<{
13341
13418
  external_reference?: string | undefined;
@@ -13420,7 +13497,7 @@ export declare class API {
13420
13497
  tax_code: string;
13421
13498
  analytic_account?: string | undefined;
13422
13499
  }[];
13423
- }, params: {
13500
+ }, params?: {
13424
13501
  force_financial_period?: string | undefined;
13425
13502
  regroup_lines?: "true" | "false" | undefined;
13426
13503
  folder_id?: string | undefined;
@@ -13522,7 +13599,7 @@ export declare class API {
13522
13599
  }[];
13523
13600
  }[] | undefined;
13524
13601
  }[];
13525
- }, params: {
13602
+ }, params?: {
13526
13603
  force_financial_period?: string | undefined;
13527
13604
  regroup_lines?: "true" | "false" | undefined;
13528
13605
  folder_id?: string | undefined;
@@ -13577,7 +13654,14 @@ export declare class API {
13577
13654
  }[] | undefined;
13578
13655
  }[];
13579
13656
  }>;
13580
- getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
13657
+ getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
13658
+ date_from?: string | undefined;
13659
+ date_to?: string | undefined;
13660
+ folder_id?: string | undefined;
13661
+ journal_ids?: string | undefined;
13662
+ include_payments?: "true" | "false" | undefined;
13663
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
13664
+ } | undefined): import("../types/api").RequestData<{
13581
13665
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
13582
13666
  invoice_number?: string | undefined;
13583
13667
  currency: string;
@@ -13622,7 +13706,7 @@ export declare class API {
13622
13706
  analytic_account?: string | undefined;
13623
13707
  }[];
13624
13708
  }[]>;
13625
- getInvoice(invoiceId: string, params: {
13709
+ getInvoice(invoiceId: string, params?: {
13626
13710
  include_payments?: "true" | "false" | undefined;
13627
13711
  folder_id?: string | undefined;
13628
13712
  } | undefined): import("../types/api").RequestData<{
@@ -13670,7 +13754,7 @@ export declare class API {
13670
13754
  analytic_account?: string | undefined;
13671
13755
  }[];
13672
13756
  }>;
13673
- getInvoiceWithMultiplePlans(invoiceId: string, params: {
13757
+ getInvoiceWithMultiplePlans(invoiceId: string, params?: {
13674
13758
  include_payments?: "true" | "false" | undefined;
13675
13759
  folder_id?: string | undefined;
13676
13760
  } | undefined): import("../types/api").RequestData<{
@@ -13724,7 +13808,14 @@ export declare class API {
13724
13808
  }[] | undefined;
13725
13809
  }[];
13726
13810
  }>;
13727
- getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
13811
+ getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
13812
+ date_from?: string | undefined;
13813
+ date_to?: string | undefined;
13814
+ folder_id?: string | undefined;
13815
+ journal_ids?: string | undefined;
13816
+ include_payments?: "true" | "false" | undefined;
13817
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
13818
+ } | undefined): import("../types/api").RequestData<{
13728
13819
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
13729
13820
  invoice_number?: string | undefined;
13730
13821
  currency: string;
@@ -13780,7 +13871,7 @@ export declare class API {
13780
13871
  code: string;
13781
13872
  name: string;
13782
13873
  currency: string;
13783
- }, params: {
13874
+ }, params?: {
13784
13875
  folder_id?: string | undefined;
13785
13876
  } | undefined): import("../types/api").RequestData<{
13786
13877
  id: string;
@@ -13792,10 +13883,8 @@ export declare class API {
13792
13883
  credit?: number | undefined;
13793
13884
  debit?: number | undefined;
13794
13885
  }>;
13795
- getAnalyticAccounts(params: {
13886
+ getAnalyticAccounts(params?: {
13796
13887
  folder_id?: string | undefined;
13797
- page?: number | undefined;
13798
- size?: number | undefined;
13799
13888
  } | undefined): import("../types/api").RequestData<{
13800
13889
  id: string;
13801
13890
  active: boolean;
@@ -13811,7 +13900,7 @@ export declare class API {
13811
13900
  code: string;
13812
13901
  name: string;
13813
13902
  currency: string;
13814
- }, params: {
13903
+ }, params?: {
13815
13904
  folder_id?: string | undefined;
13816
13905
  } | undefined): import("../types/api").RequestData<{
13817
13906
  id: string;
@@ -13824,7 +13913,7 @@ export declare class API {
13824
13913
  debit?: number | undefined;
13825
13914
  analytic_plan: string;
13826
13915
  }>;
13827
- getAnalyticAccount(analytic_account_id: string, params: {
13916
+ getAnalyticAccount(analytic_account_id: string, params?: {
13828
13917
  folder_id?: string | undefined;
13829
13918
  } | undefined): import("../types/api").RequestData<{
13830
13919
  id: string;
@@ -13841,7 +13930,7 @@ export declare class API {
13841
13930
  code?: string | undefined;
13842
13931
  name?: string | undefined;
13843
13932
  currency?: string | undefined;
13844
- }, params: {
13933
+ }, params?: {
13845
13934
  folder_id?: string | undefined;
13846
13935
  } | undefined): import("../types/api").RequestData<{
13847
13936
  id: string;
@@ -13853,7 +13942,7 @@ export declare class API {
13853
13942
  credit?: number | undefined;
13854
13943
  debit?: number | undefined;
13855
13944
  }>;
13856
- getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
13945
+ getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
13857
13946
  folder_id?: string | undefined;
13858
13947
  } | undefined): import("../types/api").RequestData<{
13859
13948
  id: string;
@@ -13871,7 +13960,7 @@ export declare class API {
13871
13960
  code?: string | undefined;
13872
13961
  name?: string | undefined;
13873
13962
  currency?: string | undefined;
13874
- }, params: {
13963
+ }, params?: {
13875
13964
  folder_id?: string | undefined;
13876
13965
  } | undefined): import("../types/api").RequestData<{
13877
13966
  id: string;
@@ -13884,10 +13973,8 @@ export declare class API {
13884
13973
  debit?: number | undefined;
13885
13974
  analytic_plan: string;
13886
13975
  }>;
13887
- getAnalyticAccountsWithMultiplePlans(params: {
13976
+ getAnalyticAccountsWithMultiplePlans(params?: {
13888
13977
  folder_id?: string | undefined;
13889
- page?: number | undefined;
13890
- size?: number | undefined;
13891
13978
  } | undefined): import("../types/api").RequestData<{
13892
13979
  id: string;
13893
13980
  active: boolean;
@@ -13968,7 +14055,7 @@ export declare class API {
13968
14055
  }[] | undefined;
13969
14056
  }[] | undefined;
13970
14057
  }[]>;
13971
- getPaymentsByInvoiceId(invoice_id: string, params: {
14058
+ getPaymentsByInvoiceId(invoice_id: string, params?: {
13972
14059
  folder_id?: string | undefined;
13973
14060
  page?: number | undefined;
13974
14061
  size?: number | undefined;
@@ -13986,20 +14073,16 @@ export declare class API {
13986
14073
  communication?: string | undefined;
13987
14074
  matching_number?: string | undefined;
13988
14075
  }[]>;
13989
- getJournals(params: {
14076
+ getJournals(params?: {
13990
14077
  folder_id?: string | undefined;
13991
- page?: number | undefined;
13992
- size?: number | undefined;
13993
14078
  } | undefined): import("../types/api").RequestData<{
13994
14079
  id: string;
13995
14080
  code?: string | undefined;
13996
14081
  name: string;
13997
14082
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
13998
14083
  }[]>;
13999
- getVatCodes(params: {
14084
+ getVatCodes(params?: {
14000
14085
  folder_id?: string | undefined;
14001
- page?: number | undefined;
14002
- size?: number | undefined;
14003
14086
  } | undefined): import("../types/api").RequestData<{
14004
14087
  id: string;
14005
14088
  code?: string | undefined;
@@ -14010,7 +14093,12 @@ export declare class API {
14010
14093
  deductible_account?: string | undefined;
14011
14094
  payable_account?: string | undefined;
14012
14095
  }[]>;
14013
- getMiscOperations(params: {}): import("../types/api").RequestData<{
14096
+ getMiscOperations(params?: {
14097
+ date_from?: string | undefined;
14098
+ date_to?: string | undefined;
14099
+ folder_id?: string | undefined;
14100
+ journal_ids?: string | undefined;
14101
+ } | undefined): import("../types/api").RequestData<{
14014
14102
  operation_number?: string | undefined;
14015
14103
  currency: string;
14016
14104
  currency_exchange_rate?: number | undefined;
@@ -14044,7 +14132,7 @@ export declare class API {
14044
14132
  operation_date: string;
14045
14133
  journal_id?: string | undefined;
14046
14134
  status?: "draft" | "posted" | undefined;
14047
- }, params: {
14135
+ }, params?: {
14048
14136
  folder_id?: string | undefined;
14049
14137
  } | undefined): import("../types/api").RequestData<{
14050
14138
  operation_number?: string | undefined;
@@ -14064,7 +14152,7 @@ export declare class API {
14064
14152
  status: "cancelled" | "draft" | "posted" | "matched";
14065
14153
  id: string;
14066
14154
  }>;
14067
- getMiscOperation(operation_id: string, params: {
14155
+ getMiscOperation(operation_id: string, params?: {
14068
14156
  folder_id?: string | undefined;
14069
14157
  } | undefined): import("../types/api").RequestData<{
14070
14158
  operation_number?: string | undefined;
@@ -14086,24 +14174,25 @@ export declare class API {
14086
14174
  }>;
14087
14175
  attachPDF(invoice_id: string, attachment: {
14088
14176
  base64_string: string;
14089
- }, params: {
14177
+ }, params?: {
14090
14178
  overwrite_existing?: "true" | "false" | undefined;
14091
14179
  folder_id?: string | undefined;
14092
14180
  } | undefined): import("../types/api").RequestData<{
14093
14181
  content: {
14094
- "application/json": unknown;
14182
+ 'application/json': unknown;
14095
14183
  };
14096
14184
  }>;
14097
14185
  getAttachments(params: {
14186
+ folder_id?: string | undefined;
14098
14187
  type: "invoice" | "entry";
14099
14188
  document_id: string;
14100
- folder_id?: string | undefined;
14101
- page?: number | undefined;
14102
- size?: number | undefined;
14103
14189
  }): import("../types/api").RequestData<{
14104
14190
  base64_string: string;
14105
14191
  }[]>;
14106
- getChartOfAccounts(params: {}): import("../types/api").RequestData<{
14192
+ getChartOfAccounts(params?: {
14193
+ classes?: string | undefined;
14194
+ folder_id?: string | undefined;
14195
+ } | undefined): import("../types/api").RequestData<{
14107
14196
  number: string;
14108
14197
  name: string;
14109
14198
  active?: boolean | undefined;
@@ -14113,10 +14202,8 @@ export declare class API {
14113
14202
  accounts: string[];
14114
14203
  start?: string | undefined;
14115
14204
  end: string;
14116
- }, params: {
14205
+ }, params?: {
14117
14206
  folder_id?: string | undefined;
14118
- page?: number | undefined;
14119
- size?: number | undefined;
14120
14207
  } | undefined): import("../types/api").RequestData<{
14121
14208
  account_number: string;
14122
14209
  account_name?: string | undefined;
@@ -14124,10 +14211,8 @@ export declare class API {
14124
14211
  credit: number;
14125
14212
  balance: number;
14126
14213
  }[]>;
14127
- getEmployees(params: {
14214
+ getEmployees(params?: {
14128
14215
  folder_id?: string | undefined;
14129
- page?: number | undefined;
14130
- size?: number | undefined;
14131
14216
  } | undefined): import("../types/api").RequestData<{
14132
14217
  id: string;
14133
14218
  name: string;
@@ -14143,8 +14228,8 @@ export declare class API {
14143
14228
  }[]>;
14144
14229
  getOutstandings(params: {
14145
14230
  folder_id?: string | undefined;
14146
- unposted_allowed: "true" | "false";
14147
14231
  type: "supplier" | "client";
14232
+ unposted_allowed: "true" | "false";
14148
14233
  }): import("../types/api").RequestData<{
14149
14234
  id: string;
14150
14235
  number?: string | undefined;
@@ -14177,7 +14262,7 @@ export declare class API {
14177
14262
  description?: string | undefined;
14178
14263
  }[];
14179
14264
  pdf?: string | undefined;
14180
- }, params: {
14265
+ }, params?: {
14181
14266
  financial_counterpart_account?: string | undefined;
14182
14267
  folder_id?: string | undefined;
14183
14268
  } | undefined): import("../types/api").RequestData<{
@@ -14211,7 +14296,7 @@ export declare class API {
14211
14296
  description?: string | undefined;
14212
14297
  }[];
14213
14298
  pdf?: string | undefined;
14214
- }, params: {
14299
+ }, params?: {
14215
14300
  financial_counterpart_account?: string | undefined;
14216
14301
  folder_id?: string | undefined;
14217
14302
  } | undefined): import("../types/api").RequestData<{
@@ -14310,7 +14395,7 @@ export declare class API {
14310
14395
  }[];
14311
14396
  pdf?: string | undefined;
14312
14397
  posted?: boolean | undefined;
14313
- }, params: {
14398
+ }, params?: {
14314
14399
  folder_id?: string | undefined;
14315
14400
  } | undefined): import("../types/api").RequestData<{
14316
14401
  reference?: string | undefined;
@@ -14345,7 +14430,7 @@ export declare class API {
14345
14430
  matchEntries(body: {
14346
14431
  entries: string[];
14347
14432
  partner_id: string;
14348
- }, params: {
14433
+ }, params?: {
14349
14434
  folder_id?: string | undefined;
14350
14435
  } | undefined): import("../types/api").RequestData<{
14351
14436
  matching_number: string;
@@ -14358,14 +14443,12 @@ export declare class API {
14358
14443
  }[]>;
14359
14444
  }>;
14360
14445
  invoicing: import("../types/api").ApiFor<{
14361
- getInvoices(params: {
14362
- invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
14363
- payment_status?: "all" | "paid" | "unpaid" | undefined;
14446
+ getInvoices(params?: {
14364
14447
  date_from?: string | undefined;
14365
14448
  date_to?: string | undefined;
14449
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
14450
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
14366
14451
  updated_after?: string | undefined;
14367
- page?: number | undefined;
14368
- size?: number | undefined;
14369
14452
  } | undefined): import("../types/api").RequestData<{
14370
14453
  id: string;
14371
14454
  source_ref: {
@@ -14409,7 +14492,7 @@ export declare class API {
14409
14492
  outstanding_amount?: number | undefined;
14410
14493
  last_updated_on?: string | undefined;
14411
14494
  }[]>;
14412
- getInvoiceById(invoiceId: string, params: {
14495
+ getInvoiceById(invoiceId: string, params?: {
14413
14496
  include_pdf?: "true" | "false" | undefined;
14414
14497
  } | undefined): import("../types/api").RequestData<{
14415
14498
  id: string;
@@ -14671,8 +14754,6 @@ export declare class API {
14671
14754
  }>;
14672
14755
  getContacts(params?: {
14673
14756
  contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
14674
- page?: number | undefined;
14675
- size?: number | undefined;
14676
14757
  } | undefined): import("../types/api").RequestData<{
14677
14758
  id: string;
14678
14759
  source_ref: {
@@ -15083,7 +15164,12 @@ export declare class API {
15083
15164
  id: string;
15084
15165
  name: string;
15085
15166
  }[]>;
15086
- getOrders(params: {}): import("../types/api").RequestData<{
15167
+ getOrders(params?: {
15168
+ date_from?: string | undefined;
15169
+ date_to?: string | undefined;
15170
+ updated_after?: string | undefined;
15171
+ include_detailed_refunds?: "true" | "false" | undefined;
15172
+ } | undefined): import("../types/api").RequestData<{
15087
15173
  id: string;
15088
15174
  source_ref: {
15089
15175
  id?: string | undefined;
@@ -15574,7 +15660,7 @@ export declare class API {
15574
15660
  name?: string | undefined;
15575
15661
  }[] | undefined;
15576
15662
  }>;
15577
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
15663
+ getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
15578
15664
  id: string;
15579
15665
  source_ref: {
15580
15666
  id?: string | undefined;
@@ -15583,7 +15669,9 @@ export declare class API {
15583
15669
  name: string;
15584
15670
  active: boolean;
15585
15671
  }[]>;
15586
- getProductCategories(params: {}): import("../types/api").RequestData<{
15672
+ getProductCategories(params?: {
15673
+ only_parents?: "true" | "false" | undefined;
15674
+ } | undefined): import("../types/api").RequestData<{
15587
15675
  id: string;
15588
15676
  source_ref: {
15589
15677
  id?: string | undefined;
@@ -15592,7 +15680,7 @@ export declare class API {
15592
15680
  name: string;
15593
15681
  parent_id?: string | undefined;
15594
15682
  }[]>;
15595
- getTaxes(params: {}): import("../types/api").RequestData<{
15683
+ getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
15596
15684
  id: string;
15597
15685
  source_ref: {
15598
15686
  id?: string | undefined;
@@ -15602,7 +15690,7 @@ export declare class API {
15602
15690
  rate: number;
15603
15691
  country?: string | undefined;
15604
15692
  }[]>;
15605
- getCountries(params: {}): import("../types/api").RequestData<{
15693
+ getCountries(params?: {} | undefined): import("../types/api").RequestData<{
15606
15694
  code: string;
15607
15695
  name: string;
15608
15696
  }[]>;
@@ -15697,6 +15785,8 @@ export declare class API {
15697
15785
  }[]>;
15698
15786
  deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
15699
15787
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
15788
+ setConnectionId: (connectionId: string) => Promise<void>;
15789
+ setIntegrationId: (integrationId: string) => Promise<void>;
15700
15790
  }>;
15701
15791
  deleteConsumerById: (consumerId: string) => Promise<{
15702
15792
  content: never;