@chift/chift-nodejs 1.0.11 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -137,7 +137,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
137
137
  total: number;
138
138
  }[] | undefined;
139
139
  }[]>;
140
- getCustomers(params: {}): import("../types/api").RequestData<{
140
+ getCustomers(params?: {
141
+ search?: string | undefined;
142
+ email?: string | undefined;
143
+ phone?: string | undefined;
144
+ } | undefined): import("../types/api").RequestData<{
141
145
  id: string;
142
146
  first_name?: string | undefined;
143
147
  last_name?: string | undefined;
@@ -262,12 +266,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
262
266
  loyalty?: number | undefined;
263
267
  birthdate?: string | undefined;
264
268
  }>;
265
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
269
+ getPaymentMethods(params?: {
270
+ location_id?: string | undefined;
271
+ } | undefined): import("../types/api").RequestData<{
266
272
  id: string;
267
273
  name: string;
268
274
  extra?: string | undefined;
269
275
  }[]>;
270
- getProductCategories(params: {}): import("../types/api").RequestData<{
276
+ getProductCategories(params?: {
277
+ location_id?: string | undefined;
278
+ only_parents?: "true" | "false" | undefined;
279
+ } | undefined): import("../types/api").RequestData<{
271
280
  id: string;
272
281
  source_ref: {
273
282
  id?: string | undefined;
@@ -276,7 +285,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
276
285
  name: string;
277
286
  parent_id?: string | undefined;
278
287
  }[]>;
279
- getProducts(params: {}): import("../types/api").RequestData<{
288
+ getProducts(params?: {
289
+ location_id?: string | undefined;
290
+ } | undefined): import("../types/api").RequestData<{
280
291
  id: string;
281
292
  categories?: string[] | undefined;
282
293
  name: string;
@@ -300,7 +311,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
300
311
  total: number;
301
312
  }[] | undefined;
302
313
  }>;
303
- getClosure(date: string, params: {
314
+ getClosure(date: string, params?: {
304
315
  location_id?: string | undefined;
305
316
  } | undefined): import("../types/api").RequestData<{
306
317
  date: string;
@@ -369,7 +380,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
369
380
  total: number;
370
381
  }[] | undefined;
371
382
  }>;
372
- getAccountingCategories(params: {}): import("../types/api").RequestData<{
383
+ getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
373
384
  id: string;
374
385
  name: string;
375
386
  id_parent?: string | undefined;
@@ -379,19 +390,15 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
379
390
  }[]>;
380
391
  }>;
381
392
  accounting: import("../types/api").ApiFor<{
382
- getAnalyticPlans(params: {
393
+ getAnalyticPlans(params?: {
383
394
  folder_id?: string | undefined;
384
- page?: number | undefined;
385
- size?: number | undefined;
386
395
  } | undefined): import("../types/api").RequestData<{
387
396
  id: string;
388
397
  name: string;
389
398
  active?: boolean | undefined;
390
399
  }[]>;
391
- getClients(params: {
400
+ getClients(params?: {
392
401
  folder_id?: string | undefined;
393
- page?: number | undefined;
394
- size?: number | undefined;
395
402
  } | undefined): import("../types/api").RequestData<{
396
403
  external_reference?: string | undefined;
397
404
  first_name?: string | undefined;
@@ -461,7 +468,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
461
468
  country: string;
462
469
  }[];
463
470
  account_number?: string | undefined;
464
- }, params: {
471
+ }, params?: {
465
472
  force_merge?: string | undefined;
466
473
  folder_id?: string | undefined;
467
474
  } | undefined): import("../types/api").RequestData<{
@@ -500,7 +507,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
500
507
  company_number?: string | undefined;
501
508
  id?: string | undefined;
502
509
  }>;
503
- getClient(clientId: string, params: {
510
+ getClient(clientId: string, params?: {
504
511
  folder_id?: string | undefined;
505
512
  } | undefined): import("../types/api").RequestData<{
506
513
  external_reference?: string | undefined;
@@ -570,7 +577,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
570
577
  postal_code?: string | undefined;
571
578
  country?: string | undefined;
572
579
  }[] | undefined;
573
- }, params: {
580
+ }, params?: {
574
581
  folder_id?: string | undefined;
575
582
  } | undefined): import("../types/api").RequestData<{
576
583
  external_reference?: string | undefined;
@@ -608,10 +615,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
608
615
  company_number?: string | undefined;
609
616
  id?: string | undefined;
610
617
  }>;
611
- getSuppliers(params: {
618
+ getSuppliers(params?: {
612
619
  folder_id?: string | undefined;
613
- page?: number | undefined;
614
- size?: number | undefined;
615
620
  } | undefined): import("../types/api").RequestData<{
616
621
  external_reference?: string | undefined;
617
622
  first_name?: string | undefined;
@@ -681,7 +686,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
681
686
  country: string;
682
687
  }[];
683
688
  account_number?: string | undefined;
684
- }, params: {
689
+ }, params?: {
685
690
  force_merge?: string | undefined;
686
691
  folder_id?: string | undefined;
687
692
  } | undefined): import("../types/api").RequestData<{
@@ -720,7 +725,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
720
725
  company_number?: string | undefined;
721
726
  id?: string | undefined;
722
727
  }>;
723
- getSupplier(supplierId: string, params: {
728
+ getSupplier(supplierId: string, params?: {
724
729
  folder_id?: string | undefined;
725
730
  } | undefined): import("../types/api").RequestData<{
726
731
  external_reference?: string | undefined;
@@ -790,7 +795,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
790
795
  postal_code?: string | undefined;
791
796
  country?: string | undefined;
792
797
  }[] | undefined;
793
- }, params: {
798
+ }, params?: {
794
799
  folder_id?: string | undefined;
795
800
  } | undefined): import("../types/api").RequestData<{
796
801
  external_reference?: string | undefined;
@@ -875,7 +880,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
875
880
  tax_code: string;
876
881
  analytic_account?: string | undefined;
877
882
  }[];
878
- }, params: {
883
+ }, params?: {
879
884
  force_financial_period?: string | undefined;
880
885
  regroup_lines?: "true" | "false" | undefined;
881
886
  folder_id?: string | undefined;
@@ -977,7 +982,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
977
982
  }[];
978
983
  }[] | undefined;
979
984
  }[];
980
- }, params: {
985
+ }, params?: {
981
986
  force_financial_period?: string | undefined;
982
987
  regroup_lines?: "true" | "false" | undefined;
983
988
  folder_id?: string | undefined;
@@ -1032,7 +1037,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1032
1037
  }[] | undefined;
1033
1038
  }[];
1034
1039
  }>;
1035
- getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
1040
+ getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
1041
+ date_from?: string | undefined;
1042
+ date_to?: string | undefined;
1043
+ folder_id?: string | undefined;
1044
+ journal_ids?: string | undefined;
1045
+ include_payments?: "true" | "false" | undefined;
1046
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
1047
+ } | undefined): import("../types/api").RequestData<{
1036
1048
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1037
1049
  invoice_number?: string | undefined;
1038
1050
  currency: string;
@@ -1077,7 +1089,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1077
1089
  analytic_account?: string | undefined;
1078
1090
  }[];
1079
1091
  }[]>;
1080
- getInvoice(invoiceId: string, params: {
1092
+ getInvoice(invoiceId: string, params?: {
1081
1093
  include_payments?: "true" | "false" | undefined;
1082
1094
  folder_id?: string | undefined;
1083
1095
  } | undefined): import("../types/api").RequestData<{
@@ -1125,7 +1137,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1125
1137
  analytic_account?: string | undefined;
1126
1138
  }[];
1127
1139
  }>;
1128
- getInvoiceWithMultiplePlans(invoiceId: string, params: {
1140
+ getInvoiceWithMultiplePlans(invoiceId: string, params?: {
1129
1141
  include_payments?: "true" | "false" | undefined;
1130
1142
  folder_id?: string | undefined;
1131
1143
  } | undefined): import("../types/api").RequestData<{
@@ -1179,7 +1191,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1179
1191
  }[] | undefined;
1180
1192
  }[];
1181
1193
  }>;
1182
- getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
1194
+ getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
1195
+ date_from?: string | undefined;
1196
+ date_to?: string | undefined;
1197
+ folder_id?: string | undefined;
1198
+ journal_ids?: string | undefined;
1199
+ include_payments?: "true" | "false" | undefined;
1200
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
1201
+ } | undefined): import("../types/api").RequestData<{
1183
1202
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1184
1203
  invoice_number?: string | undefined;
1185
1204
  currency: string;
@@ -1235,7 +1254,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1235
1254
  code: string;
1236
1255
  name: string;
1237
1256
  currency: string;
1238
- }, params: {
1257
+ }, params?: {
1239
1258
  folder_id?: string | undefined;
1240
1259
  } | undefined): import("../types/api").RequestData<{
1241
1260
  id: string;
@@ -1247,10 +1266,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1247
1266
  credit?: number | undefined;
1248
1267
  debit?: number | undefined;
1249
1268
  }>;
1250
- getAnalyticAccounts(params: {
1269
+ getAnalyticAccounts(params?: {
1251
1270
  folder_id?: string | undefined;
1252
- page?: number | undefined;
1253
- size?: number | undefined;
1254
1271
  } | undefined): import("../types/api").RequestData<{
1255
1272
  id: string;
1256
1273
  active: boolean;
@@ -1266,7 +1283,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1266
1283
  code: string;
1267
1284
  name: string;
1268
1285
  currency: string;
1269
- }, params: {
1286
+ }, params?: {
1270
1287
  folder_id?: string | undefined;
1271
1288
  } | undefined): import("../types/api").RequestData<{
1272
1289
  id: string;
@@ -1279,7 +1296,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1279
1296
  debit?: number | undefined;
1280
1297
  analytic_plan: string;
1281
1298
  }>;
1282
- getAnalyticAccount(analytic_account_id: string, params: {
1299
+ getAnalyticAccount(analytic_account_id: string, params?: {
1283
1300
  folder_id?: string | undefined;
1284
1301
  } | undefined): import("../types/api").RequestData<{
1285
1302
  id: string;
@@ -1296,7 +1313,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1296
1313
  code?: string | undefined;
1297
1314
  name?: string | undefined;
1298
1315
  currency?: string | undefined;
1299
- }, params: {
1316
+ }, params?: {
1300
1317
  folder_id?: string | undefined;
1301
1318
  } | undefined): import("../types/api").RequestData<{
1302
1319
  id: string;
@@ -1308,7 +1325,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1308
1325
  credit?: number | undefined;
1309
1326
  debit?: number | undefined;
1310
1327
  }>;
1311
- getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
1328
+ getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
1312
1329
  folder_id?: string | undefined;
1313
1330
  } | undefined): import("../types/api").RequestData<{
1314
1331
  id: string;
@@ -1326,7 +1343,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1326
1343
  code?: string | undefined;
1327
1344
  name?: string | undefined;
1328
1345
  currency?: string | undefined;
1329
- }, params: {
1346
+ }, params?: {
1330
1347
  folder_id?: string | undefined;
1331
1348
  } | undefined): import("../types/api").RequestData<{
1332
1349
  id: string;
@@ -1339,10 +1356,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1339
1356
  debit?: number | undefined;
1340
1357
  analytic_plan: string;
1341
1358
  }>;
1342
- getAnalyticAccountsWithMultiplePlans(params: {
1359
+ getAnalyticAccountsWithMultiplePlans(params?: {
1343
1360
  folder_id?: string | undefined;
1344
- page?: number | undefined;
1345
- size?: number | undefined;
1346
1361
  } | undefined): import("../types/api").RequestData<{
1347
1362
  id: string;
1348
1363
  active: boolean;
@@ -1423,7 +1438,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1423
1438
  }[] | undefined;
1424
1439
  }[] | undefined;
1425
1440
  }[]>;
1426
- getPaymentsByInvoiceId(invoice_id: string, params: {
1441
+ getPaymentsByInvoiceId(invoice_id: string, params?: {
1427
1442
  folder_id?: string | undefined;
1428
1443
  page?: number | undefined;
1429
1444
  size?: number | undefined;
@@ -1441,20 +1456,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1441
1456
  communication?: string | undefined;
1442
1457
  matching_number?: string | undefined;
1443
1458
  }[]>;
1444
- getJournals(params: {
1459
+ getJournals(params?: {
1445
1460
  folder_id?: string | undefined;
1446
- page?: number | undefined;
1447
- size?: number | undefined;
1448
1461
  } | undefined): import("../types/api").RequestData<{
1449
1462
  id: string;
1450
1463
  code?: string | undefined;
1451
1464
  name: string;
1452
1465
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1453
1466
  }[]>;
1454
- getVatCodes(params: {
1467
+ getVatCodes(params?: {
1455
1468
  folder_id?: string | undefined;
1456
- page?: number | undefined;
1457
- size?: number | undefined;
1458
1469
  } | undefined): import("../types/api").RequestData<{
1459
1470
  id: string;
1460
1471
  code?: string | undefined;
@@ -1465,7 +1476,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1465
1476
  deductible_account?: string | undefined;
1466
1477
  payable_account?: string | undefined;
1467
1478
  }[]>;
1468
- getMiscOperations(params: {}): import("../types/api").RequestData<{
1479
+ getMiscOperations(params?: {
1480
+ date_from?: string | undefined;
1481
+ date_to?: string | undefined;
1482
+ folder_id?: string | undefined;
1483
+ journal_ids?: string | undefined;
1484
+ } | undefined): import("../types/api").RequestData<{
1469
1485
  operation_number?: string | undefined;
1470
1486
  currency: string;
1471
1487
  currency_exchange_rate?: number | undefined;
@@ -1499,7 +1515,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1499
1515
  operation_date: string;
1500
1516
  journal_id?: string | undefined;
1501
1517
  status?: "draft" | "posted" | undefined;
1502
- }, params: {
1518
+ }, params?: {
1503
1519
  folder_id?: string | undefined;
1504
1520
  } | undefined): import("../types/api").RequestData<{
1505
1521
  operation_number?: string | undefined;
@@ -1519,7 +1535,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1519
1535
  status: "cancelled" | "draft" | "posted" | "matched";
1520
1536
  id: string;
1521
1537
  }>;
1522
- getMiscOperation(operation_id: string, params: {
1538
+ getMiscOperation(operation_id: string, params?: {
1523
1539
  folder_id?: string | undefined;
1524
1540
  } | undefined): import("../types/api").RequestData<{
1525
1541
  operation_number?: string | undefined;
@@ -1541,24 +1557,25 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1541
1557
  }>;
1542
1558
  attachPDF(invoice_id: string, attachment: {
1543
1559
  base64_string: string;
1544
- }, params: {
1560
+ }, params?: {
1545
1561
  overwrite_existing?: "true" | "false" | undefined;
1546
1562
  folder_id?: string | undefined;
1547
1563
  } | undefined): import("../types/api").RequestData<{
1548
1564
  content: {
1549
- "application/json": unknown;
1565
+ 'application/json': unknown;
1550
1566
  };
1551
1567
  }>;
1552
1568
  getAttachments(params: {
1569
+ folder_id?: string | undefined;
1553
1570
  type: "invoice" | "entry";
1554
1571
  document_id: string;
1555
- folder_id?: string | undefined;
1556
- page?: number | undefined;
1557
- size?: number | undefined;
1558
1572
  }): import("../types/api").RequestData<{
1559
1573
  base64_string: string;
1560
1574
  }[]>;
1561
- getChartOfAccounts(params: {}): import("../types/api").RequestData<{
1575
+ getChartOfAccounts(params?: {
1576
+ classes?: string | undefined;
1577
+ folder_id?: string | undefined;
1578
+ } | undefined): import("../types/api").RequestData<{
1562
1579
  number: string;
1563
1580
  name: string;
1564
1581
  active?: boolean | undefined;
@@ -1568,10 +1585,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1568
1585
  accounts: string[];
1569
1586
  start?: string | undefined;
1570
1587
  end: string;
1571
- }, params: {
1588
+ }, params?: {
1572
1589
  folder_id?: string | undefined;
1573
- page?: number | undefined;
1574
- size?: number | undefined;
1575
1590
  } | undefined): import("../types/api").RequestData<{
1576
1591
  account_number: string;
1577
1592
  account_name?: string | undefined;
@@ -1579,10 +1594,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1579
1594
  credit: number;
1580
1595
  balance: number;
1581
1596
  }[]>;
1582
- getEmployees(params: {
1597
+ getEmployees(params?: {
1583
1598
  folder_id?: string | undefined;
1584
- page?: number | undefined;
1585
- size?: number | undefined;
1586
1599
  } | undefined): import("../types/api").RequestData<{
1587
1600
  id: string;
1588
1601
  name: string;
@@ -1598,8 +1611,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1598
1611
  }[]>;
1599
1612
  getOutstandings(params: {
1600
1613
  folder_id?: string | undefined;
1601
- unposted_allowed: "true" | "false";
1602
1614
  type: "supplier" | "client";
1615
+ unposted_allowed: "true" | "false";
1603
1616
  }): import("../types/api").RequestData<{
1604
1617
  id: string;
1605
1618
  number?: string | undefined;
@@ -1632,7 +1645,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1632
1645
  description?: string | undefined;
1633
1646
  }[];
1634
1647
  pdf?: string | undefined;
1635
- }, params: {
1648
+ }, params?: {
1636
1649
  financial_counterpart_account?: string | undefined;
1637
1650
  folder_id?: string | undefined;
1638
1651
  } | undefined): import("../types/api").RequestData<{
@@ -1666,7 +1679,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1666
1679
  description?: string | undefined;
1667
1680
  }[];
1668
1681
  pdf?: string | undefined;
1669
- }, params: {
1682
+ }, params?: {
1670
1683
  financial_counterpart_account?: string | undefined;
1671
1684
  folder_id?: string | undefined;
1672
1685
  } | undefined): import("../types/api").RequestData<{
@@ -1765,7 +1778,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1765
1778
  }[];
1766
1779
  pdf?: string | undefined;
1767
1780
  posted?: boolean | undefined;
1768
- }, params: {
1781
+ }, params?: {
1769
1782
  folder_id?: string | undefined;
1770
1783
  } | undefined): import("../types/api").RequestData<{
1771
1784
  reference?: string | undefined;
@@ -1800,7 +1813,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1800
1813
  matchEntries(body: {
1801
1814
  entries: string[];
1802
1815
  partner_id: string;
1803
- }, params: {
1816
+ }, params?: {
1804
1817
  folder_id?: string | undefined;
1805
1818
  } | undefined): import("../types/api").RequestData<{
1806
1819
  matching_number: string;
@@ -1813,14 +1826,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1813
1826
  }[]>;
1814
1827
  }>;
1815
1828
  invoicing: import("../types/api").ApiFor<{
1816
- getInvoices(params: {
1817
- invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
1818
- payment_status?: "all" | "paid" | "unpaid" | undefined;
1829
+ getInvoices(params?: {
1819
1830
  date_from?: string | undefined;
1820
1831
  date_to?: string | undefined;
1832
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
1833
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
1821
1834
  updated_after?: string | undefined;
1822
- page?: number | undefined;
1823
- size?: number | undefined;
1824
1835
  } | undefined): import("../types/api").RequestData<{
1825
1836
  id: string;
1826
1837
  source_ref: {
@@ -1864,7 +1875,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1864
1875
  outstanding_amount?: number | undefined;
1865
1876
  last_updated_on?: string | undefined;
1866
1877
  }[]>;
1867
- getInvoiceById(invoiceId: string, params: {
1878
+ getInvoiceById(invoiceId: string, params?: {
1868
1879
  include_pdf?: "true" | "false" | undefined;
1869
1880
  } | undefined): import("../types/api").RequestData<{
1870
1881
  id: string;
@@ -2126,8 +2137,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2126
2137
  }>;
2127
2138
  getContacts(params?: {
2128
2139
  contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
2129
- page?: number | undefined;
2130
- size?: number | undefined;
2131
2140
  } | undefined): import("../types/api").RequestData<{
2132
2141
  id: string;
2133
2142
  source_ref: {
@@ -2538,7 +2547,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2538
2547
  id: string;
2539
2548
  name: string;
2540
2549
  }[]>;
2541
- getOrders(params: {}): import("../types/api").RequestData<{
2550
+ getOrders(params?: {
2551
+ date_from?: string | undefined;
2552
+ date_to?: string | undefined;
2553
+ updated_after?: string | undefined;
2554
+ include_detailed_refunds?: "true" | "false" | undefined;
2555
+ } | undefined): import("../types/api").RequestData<{
2542
2556
  id: string;
2543
2557
  source_ref: {
2544
2558
  id?: string | undefined;
@@ -3029,7 +3043,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3029
3043
  name?: string | undefined;
3030
3044
  }[] | undefined;
3031
3045
  }>;
3032
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
3046
+ getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
3033
3047
  id: string;
3034
3048
  source_ref: {
3035
3049
  id?: string | undefined;
@@ -3038,7 +3052,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3038
3052
  name: string;
3039
3053
  active: boolean;
3040
3054
  }[]>;
3041
- getProductCategories(params: {}): import("../types/api").RequestData<{
3055
+ getProductCategories(params?: {
3056
+ only_parents?: "true" | "false" | undefined;
3057
+ } | undefined): import("../types/api").RequestData<{
3042
3058
  id: string;
3043
3059
  source_ref: {
3044
3060
  id?: string | undefined;
@@ -3047,7 +3063,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3047
3063
  name: string;
3048
3064
  parent_id?: string | undefined;
3049
3065
  }[]>;
3050
- getTaxes(params: {}): import("../types/api").RequestData<{
3066
+ getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
3051
3067
  id: string;
3052
3068
  source_ref: {
3053
3069
  id?: string | undefined;
@@ -3057,7 +3073,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3057
3073
  rate: number;
3058
3074
  country?: string | undefined;
3059
3075
  }[]>;
3060
- getCountries(params: {}): import("../types/api").RequestData<{
3076
+ getCountries(params?: {} | undefined): import("../types/api").RequestData<{
3061
3077
  code: string;
3062
3078
  name: string;
3063
3079
  }[]>;
@@ -3152,6 +3168,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3152
3168
  }[]>;
3153
3169
  deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
3154
3170
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
3171
+ setConnectionId: (connectionId: string) => Promise<void>;
3172
+ setIntegrationId: (integrationId: string) => Promise<void>;
3155
3173
  }, context: any) => any, log?: boolean) => Promise<void>;
3156
3174
  flowId: string;
3157
3175
  name: string;
@@ -3290,7 +3308,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3290
3308
  total: number;
3291
3309
  }[] | undefined;
3292
3310
  }[]>;
3293
- getCustomers(params: {}): import("../types/api").RequestData<{
3311
+ getCustomers(params?: {
3312
+ search?: string | undefined;
3313
+ email?: string | undefined;
3314
+ phone?: string | undefined;
3315
+ } | undefined): import("../types/api").RequestData<{
3294
3316
  id: string;
3295
3317
  first_name?: string | undefined;
3296
3318
  last_name?: string | undefined;
@@ -3415,12 +3437,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3415
3437
  loyalty?: number | undefined;
3416
3438
  birthdate?: string | undefined;
3417
3439
  }>;
3418
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
3440
+ getPaymentMethods(params?: {
3441
+ location_id?: string | undefined;
3442
+ } | undefined): import("../types/api").RequestData<{
3419
3443
  id: string;
3420
3444
  name: string;
3421
3445
  extra?: string | undefined;
3422
3446
  }[]>;
3423
- getProductCategories(params: {}): import("../types/api").RequestData<{
3447
+ getProductCategories(params?: {
3448
+ location_id?: string | undefined;
3449
+ only_parents?: "true" | "false" | undefined;
3450
+ } | undefined): import("../types/api").RequestData<{
3424
3451
  id: string;
3425
3452
  source_ref: {
3426
3453
  id?: string | undefined;
@@ -3429,7 +3456,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3429
3456
  name: string;
3430
3457
  parent_id?: string | undefined;
3431
3458
  }[]>;
3432
- getProducts(params: {}): import("../types/api").RequestData<{
3459
+ getProducts(params?: {
3460
+ location_id?: string | undefined;
3461
+ } | undefined): import("../types/api").RequestData<{
3433
3462
  id: string;
3434
3463
  categories?: string[] | undefined;
3435
3464
  name: string;
@@ -3453,7 +3482,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3453
3482
  total: number;
3454
3483
  }[] | undefined;
3455
3484
  }>;
3456
- getClosure(date: string, params: {
3485
+ getClosure(date: string, params?: {
3457
3486
  location_id?: string | undefined;
3458
3487
  } | undefined): import("../types/api").RequestData<{
3459
3488
  date: string;
@@ -3522,7 +3551,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3522
3551
  total: number;
3523
3552
  }[] | undefined;
3524
3553
  }>;
3525
- getAccountingCategories(params: {}): import("../types/api").RequestData<{
3554
+ getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
3526
3555
  id: string;
3527
3556
  name: string;
3528
3557
  id_parent?: string | undefined;
@@ -3532,19 +3561,15 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3532
3561
  }[]>;
3533
3562
  }>;
3534
3563
  accounting: import("../types/api").ApiFor<{
3535
- getAnalyticPlans(params: {
3564
+ getAnalyticPlans(params?: {
3536
3565
  folder_id?: string | undefined;
3537
- page?: number | undefined;
3538
- size?: number | undefined;
3539
3566
  } | undefined): import("../types/api").RequestData<{
3540
3567
  id: string;
3541
3568
  name: string;
3542
3569
  active?: boolean | undefined;
3543
3570
  }[]>;
3544
- getClients(params: {
3571
+ getClients(params?: {
3545
3572
  folder_id?: string | undefined;
3546
- page?: number | undefined;
3547
- size?: number | undefined;
3548
3573
  } | undefined): import("../types/api").RequestData<{
3549
3574
  external_reference?: string | undefined;
3550
3575
  first_name?: string | undefined;
@@ -3614,7 +3639,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3614
3639
  country: string;
3615
3640
  }[];
3616
3641
  account_number?: string | undefined;
3617
- }, params: {
3642
+ }, params?: {
3618
3643
  force_merge?: string | undefined;
3619
3644
  folder_id?: string | undefined;
3620
3645
  } | undefined): import("../types/api").RequestData<{
@@ -3653,7 +3678,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3653
3678
  company_number?: string | undefined;
3654
3679
  id?: string | undefined;
3655
3680
  }>;
3656
- getClient(clientId: string, params: {
3681
+ getClient(clientId: string, params?: {
3657
3682
  folder_id?: string | undefined;
3658
3683
  } | undefined): import("../types/api").RequestData<{
3659
3684
  external_reference?: string | undefined;
@@ -3723,7 +3748,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3723
3748
  postal_code?: string | undefined;
3724
3749
  country?: string | undefined;
3725
3750
  }[] | undefined;
3726
- }, params: {
3751
+ }, params?: {
3727
3752
  folder_id?: string | undefined;
3728
3753
  } | undefined): import("../types/api").RequestData<{
3729
3754
  external_reference?: string | undefined;
@@ -3761,10 +3786,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3761
3786
  company_number?: string | undefined;
3762
3787
  id?: string | undefined;
3763
3788
  }>;
3764
- getSuppliers(params: {
3789
+ getSuppliers(params?: {
3765
3790
  folder_id?: string | undefined;
3766
- page?: number | undefined;
3767
- size?: number | undefined;
3768
3791
  } | undefined): import("../types/api").RequestData<{
3769
3792
  external_reference?: string | undefined;
3770
3793
  first_name?: string | undefined;
@@ -3834,7 +3857,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3834
3857
  country: string;
3835
3858
  }[];
3836
3859
  account_number?: string | undefined;
3837
- }, params: {
3860
+ }, params?: {
3838
3861
  force_merge?: string | undefined;
3839
3862
  folder_id?: string | undefined;
3840
3863
  } | undefined): import("../types/api").RequestData<{
@@ -3873,7 +3896,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3873
3896
  company_number?: string | undefined;
3874
3897
  id?: string | undefined;
3875
3898
  }>;
3876
- getSupplier(supplierId: string, params: {
3899
+ getSupplier(supplierId: string, params?: {
3877
3900
  folder_id?: string | undefined;
3878
3901
  } | undefined): import("../types/api").RequestData<{
3879
3902
  external_reference?: string | undefined;
@@ -3943,7 +3966,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3943
3966
  postal_code?: string | undefined;
3944
3967
  country?: string | undefined;
3945
3968
  }[] | undefined;
3946
- }, params: {
3969
+ }, params?: {
3947
3970
  folder_id?: string | undefined;
3948
3971
  } | undefined): import("../types/api").RequestData<{
3949
3972
  external_reference?: string | undefined;
@@ -4028,7 +4051,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4028
4051
  tax_code: string;
4029
4052
  analytic_account?: string | undefined;
4030
4053
  }[];
4031
- }, params: {
4054
+ }, params?: {
4032
4055
  force_financial_period?: string | undefined;
4033
4056
  regroup_lines?: "true" | "false" | undefined;
4034
4057
  folder_id?: string | undefined;
@@ -4130,7 +4153,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4130
4153
  }[];
4131
4154
  }[] | undefined;
4132
4155
  }[];
4133
- }, params: {
4156
+ }, params?: {
4134
4157
  force_financial_period?: string | undefined;
4135
4158
  regroup_lines?: "true" | "false" | undefined;
4136
4159
  folder_id?: string | undefined;
@@ -4185,7 +4208,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4185
4208
  }[] | undefined;
4186
4209
  }[];
4187
4210
  }>;
4188
- getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
4211
+ getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
4212
+ date_from?: string | undefined;
4213
+ date_to?: string | undefined;
4214
+ folder_id?: string | undefined;
4215
+ journal_ids?: string | undefined;
4216
+ include_payments?: "true" | "false" | undefined;
4217
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
4218
+ } | undefined): import("../types/api").RequestData<{
4189
4219
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4190
4220
  invoice_number?: string | undefined;
4191
4221
  currency: string;
@@ -4230,7 +4260,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4230
4260
  analytic_account?: string | undefined;
4231
4261
  }[];
4232
4262
  }[]>;
4233
- getInvoice(invoiceId: string, params: {
4263
+ getInvoice(invoiceId: string, params?: {
4234
4264
  include_payments?: "true" | "false" | undefined;
4235
4265
  folder_id?: string | undefined;
4236
4266
  } | undefined): import("../types/api").RequestData<{
@@ -4278,7 +4308,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4278
4308
  analytic_account?: string | undefined;
4279
4309
  }[];
4280
4310
  }>;
4281
- getInvoiceWithMultiplePlans(invoiceId: string, params: {
4311
+ getInvoiceWithMultiplePlans(invoiceId: string, params?: {
4282
4312
  include_payments?: "true" | "false" | undefined;
4283
4313
  folder_id?: string | undefined;
4284
4314
  } | undefined): import("../types/api").RequestData<{
@@ -4332,7 +4362,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4332
4362
  }[] | undefined;
4333
4363
  }[];
4334
4364
  }>;
4335
- getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
4365
+ getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
4366
+ date_from?: string | undefined;
4367
+ date_to?: string | undefined;
4368
+ folder_id?: string | undefined;
4369
+ journal_ids?: string | undefined;
4370
+ include_payments?: "true" | "false" | undefined;
4371
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
4372
+ } | undefined): import("../types/api").RequestData<{
4336
4373
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4337
4374
  invoice_number?: string | undefined;
4338
4375
  currency: string;
@@ -4388,7 +4425,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4388
4425
  code: string;
4389
4426
  name: string;
4390
4427
  currency: string;
4391
- }, params: {
4428
+ }, params?: {
4392
4429
  folder_id?: string | undefined;
4393
4430
  } | undefined): import("../types/api").RequestData<{
4394
4431
  id: string;
@@ -4400,10 +4437,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4400
4437
  credit?: number | undefined;
4401
4438
  debit?: number | undefined;
4402
4439
  }>;
4403
- getAnalyticAccounts(params: {
4440
+ getAnalyticAccounts(params?: {
4404
4441
  folder_id?: string | undefined;
4405
- page?: number | undefined;
4406
- size?: number | undefined;
4407
4442
  } | undefined): import("../types/api").RequestData<{
4408
4443
  id: string;
4409
4444
  active: boolean;
@@ -4419,7 +4454,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4419
4454
  code: string;
4420
4455
  name: string;
4421
4456
  currency: string;
4422
- }, params: {
4457
+ }, params?: {
4423
4458
  folder_id?: string | undefined;
4424
4459
  } | undefined): import("../types/api").RequestData<{
4425
4460
  id: string;
@@ -4432,7 +4467,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4432
4467
  debit?: number | undefined;
4433
4468
  analytic_plan: string;
4434
4469
  }>;
4435
- getAnalyticAccount(analytic_account_id: string, params: {
4470
+ getAnalyticAccount(analytic_account_id: string, params?: {
4436
4471
  folder_id?: string | undefined;
4437
4472
  } | undefined): import("../types/api").RequestData<{
4438
4473
  id: string;
@@ -4449,7 +4484,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4449
4484
  code?: string | undefined;
4450
4485
  name?: string | undefined;
4451
4486
  currency?: string | undefined;
4452
- }, params: {
4487
+ }, params?: {
4453
4488
  folder_id?: string | undefined;
4454
4489
  } | undefined): import("../types/api").RequestData<{
4455
4490
  id: string;
@@ -4461,7 +4496,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4461
4496
  credit?: number | undefined;
4462
4497
  debit?: number | undefined;
4463
4498
  }>;
4464
- getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
4499
+ getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
4465
4500
  folder_id?: string | undefined;
4466
4501
  } | undefined): import("../types/api").RequestData<{
4467
4502
  id: string;
@@ -4479,7 +4514,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4479
4514
  code?: string | undefined;
4480
4515
  name?: string | undefined;
4481
4516
  currency?: string | undefined;
4482
- }, params: {
4517
+ }, params?: {
4483
4518
  folder_id?: string | undefined;
4484
4519
  } | undefined): import("../types/api").RequestData<{
4485
4520
  id: string;
@@ -4492,10 +4527,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4492
4527
  debit?: number | undefined;
4493
4528
  analytic_plan: string;
4494
4529
  }>;
4495
- getAnalyticAccountsWithMultiplePlans(params: {
4530
+ getAnalyticAccountsWithMultiplePlans(params?: {
4496
4531
  folder_id?: string | undefined;
4497
- page?: number | undefined;
4498
- size?: number | undefined;
4499
4532
  } | undefined): import("../types/api").RequestData<{
4500
4533
  id: string;
4501
4534
  active: boolean;
@@ -4576,7 +4609,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4576
4609
  }[] | undefined;
4577
4610
  }[] | undefined;
4578
4611
  }[]>;
4579
- getPaymentsByInvoiceId(invoice_id: string, params: {
4612
+ getPaymentsByInvoiceId(invoice_id: string, params?: {
4580
4613
  folder_id?: string | undefined;
4581
4614
  page?: number | undefined;
4582
4615
  size?: number | undefined;
@@ -4594,20 +4627,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4594
4627
  communication?: string | undefined;
4595
4628
  matching_number?: string | undefined;
4596
4629
  }[]>;
4597
- getJournals(params: {
4630
+ getJournals(params?: {
4598
4631
  folder_id?: string | undefined;
4599
- page?: number | undefined;
4600
- size?: number | undefined;
4601
4632
  } | undefined): import("../types/api").RequestData<{
4602
4633
  id: string;
4603
4634
  code?: string | undefined;
4604
4635
  name: string;
4605
4636
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
4606
4637
  }[]>;
4607
- getVatCodes(params: {
4638
+ getVatCodes(params?: {
4608
4639
  folder_id?: string | undefined;
4609
- page?: number | undefined;
4610
- size?: number | undefined;
4611
4640
  } | undefined): import("../types/api").RequestData<{
4612
4641
  id: string;
4613
4642
  code?: string | undefined;
@@ -4618,7 +4647,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4618
4647
  deductible_account?: string | undefined;
4619
4648
  payable_account?: string | undefined;
4620
4649
  }[]>;
4621
- getMiscOperations(params: {}): import("../types/api").RequestData<{
4650
+ getMiscOperations(params?: {
4651
+ date_from?: string | undefined;
4652
+ date_to?: string | undefined;
4653
+ folder_id?: string | undefined;
4654
+ journal_ids?: string | undefined;
4655
+ } | undefined): import("../types/api").RequestData<{
4622
4656
  operation_number?: string | undefined;
4623
4657
  currency: string;
4624
4658
  currency_exchange_rate?: number | undefined;
@@ -4652,7 +4686,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4652
4686
  operation_date: string;
4653
4687
  journal_id?: string | undefined;
4654
4688
  status?: "draft" | "posted" | undefined;
4655
- }, params: {
4689
+ }, params?: {
4656
4690
  folder_id?: string | undefined;
4657
4691
  } | undefined): import("../types/api").RequestData<{
4658
4692
  operation_number?: string | undefined;
@@ -4672,7 +4706,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4672
4706
  status: "cancelled" | "draft" | "posted" | "matched";
4673
4707
  id: string;
4674
4708
  }>;
4675
- getMiscOperation(operation_id: string, params: {
4709
+ getMiscOperation(operation_id: string, params?: {
4676
4710
  folder_id?: string | undefined;
4677
4711
  } | undefined): import("../types/api").RequestData<{
4678
4712
  operation_number?: string | undefined;
@@ -4694,24 +4728,25 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4694
4728
  }>;
4695
4729
  attachPDF(invoice_id: string, attachment: {
4696
4730
  base64_string: string;
4697
- }, params: {
4731
+ }, params?: {
4698
4732
  overwrite_existing?: "true" | "false" | undefined;
4699
4733
  folder_id?: string | undefined;
4700
4734
  } | undefined): import("../types/api").RequestData<{
4701
4735
  content: {
4702
- "application/json": unknown;
4736
+ 'application/json': unknown;
4703
4737
  };
4704
4738
  }>;
4705
4739
  getAttachments(params: {
4740
+ folder_id?: string | undefined;
4706
4741
  type: "invoice" | "entry";
4707
4742
  document_id: string;
4708
- folder_id?: string | undefined;
4709
- page?: number | undefined;
4710
- size?: number | undefined;
4711
4743
  }): import("../types/api").RequestData<{
4712
4744
  base64_string: string;
4713
4745
  }[]>;
4714
- getChartOfAccounts(params: {}): import("../types/api").RequestData<{
4746
+ getChartOfAccounts(params?: {
4747
+ classes?: string | undefined;
4748
+ folder_id?: string | undefined;
4749
+ } | undefined): import("../types/api").RequestData<{
4715
4750
  number: string;
4716
4751
  name: string;
4717
4752
  active?: boolean | undefined;
@@ -4721,10 +4756,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4721
4756
  accounts: string[];
4722
4757
  start?: string | undefined;
4723
4758
  end: string;
4724
- }, params: {
4759
+ }, params?: {
4725
4760
  folder_id?: string | undefined;
4726
- page?: number | undefined;
4727
- size?: number | undefined;
4728
4761
  } | undefined): import("../types/api").RequestData<{
4729
4762
  account_number: string;
4730
4763
  account_name?: string | undefined;
@@ -4732,10 +4765,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4732
4765
  credit: number;
4733
4766
  balance: number;
4734
4767
  }[]>;
4735
- getEmployees(params: {
4768
+ getEmployees(params?: {
4736
4769
  folder_id?: string | undefined;
4737
- page?: number | undefined;
4738
- size?: number | undefined;
4739
4770
  } | undefined): import("../types/api").RequestData<{
4740
4771
  id: string;
4741
4772
  name: string;
@@ -4751,8 +4782,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4751
4782
  }[]>;
4752
4783
  getOutstandings(params: {
4753
4784
  folder_id?: string | undefined;
4754
- unposted_allowed: "true" | "false";
4755
4785
  type: "supplier" | "client";
4786
+ unposted_allowed: "true" | "false";
4756
4787
  }): import("../types/api").RequestData<{
4757
4788
  id: string;
4758
4789
  number?: string | undefined;
@@ -4785,7 +4816,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4785
4816
  description?: string | undefined;
4786
4817
  }[];
4787
4818
  pdf?: string | undefined;
4788
- }, params: {
4819
+ }, params?: {
4789
4820
  financial_counterpart_account?: string | undefined;
4790
4821
  folder_id?: string | undefined;
4791
4822
  } | undefined): import("../types/api").RequestData<{
@@ -4819,7 +4850,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4819
4850
  description?: string | undefined;
4820
4851
  }[];
4821
4852
  pdf?: string | undefined;
4822
- }, params: {
4853
+ }, params?: {
4823
4854
  financial_counterpart_account?: string | undefined;
4824
4855
  folder_id?: string | undefined;
4825
4856
  } | undefined): import("../types/api").RequestData<{
@@ -4918,7 +4949,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4918
4949
  }[];
4919
4950
  pdf?: string | undefined;
4920
4951
  posted?: boolean | undefined;
4921
- }, params: {
4952
+ }, params?: {
4922
4953
  folder_id?: string | undefined;
4923
4954
  } | undefined): import("../types/api").RequestData<{
4924
4955
  reference?: string | undefined;
@@ -4953,7 +4984,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4953
4984
  matchEntries(body: {
4954
4985
  entries: string[];
4955
4986
  partner_id: string;
4956
- }, params: {
4987
+ }, params?: {
4957
4988
  folder_id?: string | undefined;
4958
4989
  } | undefined): import("../types/api").RequestData<{
4959
4990
  matching_number: string;
@@ -4966,14 +4997,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4966
4997
  }[]>;
4967
4998
  }>;
4968
4999
  invoicing: import("../types/api").ApiFor<{
4969
- getInvoices(params: {
4970
- invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
4971
- payment_status?: "all" | "paid" | "unpaid" | undefined;
5000
+ getInvoices(params?: {
4972
5001
  date_from?: string | undefined;
4973
5002
  date_to?: string | undefined;
5003
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
5004
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
4974
5005
  updated_after?: string | undefined;
4975
- page?: number | undefined;
4976
- size?: number | undefined;
4977
5006
  } | undefined): import("../types/api").RequestData<{
4978
5007
  id: string;
4979
5008
  source_ref: {
@@ -5017,7 +5046,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5017
5046
  outstanding_amount?: number | undefined;
5018
5047
  last_updated_on?: string | undefined;
5019
5048
  }[]>;
5020
- getInvoiceById(invoiceId: string, params: {
5049
+ getInvoiceById(invoiceId: string, params?: {
5021
5050
  include_pdf?: "true" | "false" | undefined;
5022
5051
  } | undefined): import("../types/api").RequestData<{
5023
5052
  id: string;
@@ -5279,8 +5308,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5279
5308
  }>;
5280
5309
  getContacts(params?: {
5281
5310
  contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
5282
- page?: number | undefined;
5283
- size?: number | undefined;
5284
5311
  } | undefined): import("../types/api").RequestData<{
5285
5312
  id: string;
5286
5313
  source_ref: {
@@ -5691,7 +5718,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5691
5718
  id: string;
5692
5719
  name: string;
5693
5720
  }[]>;
5694
- getOrders(params: {}): import("../types/api").RequestData<{
5721
+ getOrders(params?: {
5722
+ date_from?: string | undefined;
5723
+ date_to?: string | undefined;
5724
+ updated_after?: string | undefined;
5725
+ include_detailed_refunds?: "true" | "false" | undefined;
5726
+ } | undefined): import("../types/api").RequestData<{
5695
5727
  id: string;
5696
5728
  source_ref: {
5697
5729
  id?: string | undefined;
@@ -6182,7 +6214,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6182
6214
  name?: string | undefined;
6183
6215
  }[] | undefined;
6184
6216
  }>;
6185
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
6217
+ getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
6186
6218
  id: string;
6187
6219
  source_ref: {
6188
6220
  id?: string | undefined;
@@ -6191,7 +6223,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6191
6223
  name: string;
6192
6224
  active: boolean;
6193
6225
  }[]>;
6194
- getProductCategories(params: {}): import("../types/api").RequestData<{
6226
+ getProductCategories(params?: {
6227
+ only_parents?: "true" | "false" | undefined;
6228
+ } | undefined): import("../types/api").RequestData<{
6195
6229
  id: string;
6196
6230
  source_ref: {
6197
6231
  id?: string | undefined;
@@ -6200,7 +6234,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6200
6234
  name: string;
6201
6235
  parent_id?: string | undefined;
6202
6236
  }[]>;
6203
- getTaxes(params: {}): import("../types/api").RequestData<{
6237
+ getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
6204
6238
  id: string;
6205
6239
  source_ref: {
6206
6240
  id?: string | undefined;
@@ -6210,7 +6244,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6210
6244
  rate: number;
6211
6245
  country?: string | undefined;
6212
6246
  }[]>;
6213
- getCountries(params: {}): import("../types/api").RequestData<{
6247
+ getCountries(params?: {} | undefined): import("../types/api").RequestData<{
6214
6248
  code: string;
6215
6249
  name: string;
6216
6250
  }[]>;
@@ -6305,6 +6339,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6305
6339
  }[]>;
6306
6340
  deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
6307
6341
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
6342
+ setConnectionId: (connectionId: string) => Promise<void>;
6343
+ setIntegrationId: (integrationId: string) => Promise<void>;
6308
6344
  }, context: any) => any, log?: boolean) => Promise<void>;
6309
6345
  flowId: string;
6310
6346
  name: string;
@@ -6443,7 +6479,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6443
6479
  total: number;
6444
6480
  }[] | undefined;
6445
6481
  }[]>;
6446
- getCustomers(params: {}): import("../types/api").RequestData<{
6482
+ getCustomers(params?: {
6483
+ search?: string | undefined;
6484
+ email?: string | undefined;
6485
+ phone?: string | undefined;
6486
+ } | undefined): import("../types/api").RequestData<{
6447
6487
  id: string;
6448
6488
  first_name?: string | undefined;
6449
6489
  last_name?: string | undefined;
@@ -6568,12 +6608,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6568
6608
  loyalty?: number | undefined;
6569
6609
  birthdate?: string | undefined;
6570
6610
  }>;
6571
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
6611
+ getPaymentMethods(params?: {
6612
+ location_id?: string | undefined;
6613
+ } | undefined): import("../types/api").RequestData<{
6572
6614
  id: string;
6573
6615
  name: string;
6574
6616
  extra?: string | undefined;
6575
6617
  }[]>;
6576
- getProductCategories(params: {}): import("../types/api").RequestData<{
6618
+ getProductCategories(params?: {
6619
+ location_id?: string | undefined;
6620
+ only_parents?: "true" | "false" | undefined;
6621
+ } | undefined): import("../types/api").RequestData<{
6577
6622
  id: string;
6578
6623
  source_ref: {
6579
6624
  id?: string | undefined;
@@ -6582,7 +6627,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6582
6627
  name: string;
6583
6628
  parent_id?: string | undefined;
6584
6629
  }[]>;
6585
- getProducts(params: {}): import("../types/api").RequestData<{
6630
+ getProducts(params?: {
6631
+ location_id?: string | undefined;
6632
+ } | undefined): import("../types/api").RequestData<{
6586
6633
  id: string;
6587
6634
  categories?: string[] | undefined;
6588
6635
  name: string;
@@ -6606,7 +6653,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6606
6653
  total: number;
6607
6654
  }[] | undefined;
6608
6655
  }>;
6609
- getClosure(date: string, params: {
6656
+ getClosure(date: string, params?: {
6610
6657
  location_id?: string | undefined;
6611
6658
  } | undefined): import("../types/api").RequestData<{
6612
6659
  date: string;
@@ -6675,7 +6722,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6675
6722
  total: number;
6676
6723
  }[] | undefined;
6677
6724
  }>;
6678
- getAccountingCategories(params: {}): import("../types/api").RequestData<{
6725
+ getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
6679
6726
  id: string;
6680
6727
  name: string;
6681
6728
  id_parent?: string | undefined;
@@ -6685,19 +6732,15 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6685
6732
  }[]>;
6686
6733
  }>;
6687
6734
  accounting: import("../types/api").ApiFor<{
6688
- getAnalyticPlans(params: {
6735
+ getAnalyticPlans(params?: {
6689
6736
  folder_id?: string | undefined;
6690
- page?: number | undefined;
6691
- size?: number | undefined;
6692
6737
  } | undefined): import("../types/api").RequestData<{
6693
6738
  id: string;
6694
6739
  name: string;
6695
6740
  active?: boolean | undefined;
6696
6741
  }[]>;
6697
- getClients(params: {
6742
+ getClients(params?: {
6698
6743
  folder_id?: string | undefined;
6699
- page?: number | undefined;
6700
- size?: number | undefined;
6701
6744
  } | undefined): import("../types/api").RequestData<{
6702
6745
  external_reference?: string | undefined;
6703
6746
  first_name?: string | undefined;
@@ -6767,7 +6810,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6767
6810
  country: string;
6768
6811
  }[];
6769
6812
  account_number?: string | undefined;
6770
- }, params: {
6813
+ }, params?: {
6771
6814
  force_merge?: string | undefined;
6772
6815
  folder_id?: string | undefined;
6773
6816
  } | undefined): import("../types/api").RequestData<{
@@ -6806,7 +6849,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6806
6849
  company_number?: string | undefined;
6807
6850
  id?: string | undefined;
6808
6851
  }>;
6809
- getClient(clientId: string, params: {
6852
+ getClient(clientId: string, params?: {
6810
6853
  folder_id?: string | undefined;
6811
6854
  } | undefined): import("../types/api").RequestData<{
6812
6855
  external_reference?: string | undefined;
@@ -6876,7 +6919,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6876
6919
  postal_code?: string | undefined;
6877
6920
  country?: string | undefined;
6878
6921
  }[] | undefined;
6879
- }, params: {
6922
+ }, params?: {
6880
6923
  folder_id?: string | undefined;
6881
6924
  } | undefined): import("../types/api").RequestData<{
6882
6925
  external_reference?: string | undefined;
@@ -6914,10 +6957,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6914
6957
  company_number?: string | undefined;
6915
6958
  id?: string | undefined;
6916
6959
  }>;
6917
- getSuppliers(params: {
6960
+ getSuppliers(params?: {
6918
6961
  folder_id?: string | undefined;
6919
- page?: number | undefined;
6920
- size?: number | undefined;
6921
6962
  } | undefined): import("../types/api").RequestData<{
6922
6963
  external_reference?: string | undefined;
6923
6964
  first_name?: string | undefined;
@@ -6987,7 +7028,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6987
7028
  country: string;
6988
7029
  }[];
6989
7030
  account_number?: string | undefined;
6990
- }, params: {
7031
+ }, params?: {
6991
7032
  force_merge?: string | undefined;
6992
7033
  folder_id?: string | undefined;
6993
7034
  } | undefined): import("../types/api").RequestData<{
@@ -7026,7 +7067,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7026
7067
  company_number?: string | undefined;
7027
7068
  id?: string | undefined;
7028
7069
  }>;
7029
- getSupplier(supplierId: string, params: {
7070
+ getSupplier(supplierId: string, params?: {
7030
7071
  folder_id?: string | undefined;
7031
7072
  } | undefined): import("../types/api").RequestData<{
7032
7073
  external_reference?: string | undefined;
@@ -7096,7 +7137,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7096
7137
  postal_code?: string | undefined;
7097
7138
  country?: string | undefined;
7098
7139
  }[] | undefined;
7099
- }, params: {
7140
+ }, params?: {
7100
7141
  folder_id?: string | undefined;
7101
7142
  } | undefined): import("../types/api").RequestData<{
7102
7143
  external_reference?: string | undefined;
@@ -7181,7 +7222,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7181
7222
  tax_code: string;
7182
7223
  analytic_account?: string | undefined;
7183
7224
  }[];
7184
- }, params: {
7225
+ }, params?: {
7185
7226
  force_financial_period?: string | undefined;
7186
7227
  regroup_lines?: "true" | "false" | undefined;
7187
7228
  folder_id?: string | undefined;
@@ -7283,7 +7324,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7283
7324
  }[];
7284
7325
  }[] | undefined;
7285
7326
  }[];
7286
- }, params: {
7327
+ }, params?: {
7287
7328
  force_financial_period?: string | undefined;
7288
7329
  regroup_lines?: "true" | "false" | undefined;
7289
7330
  folder_id?: string | undefined;
@@ -7338,7 +7379,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7338
7379
  }[] | undefined;
7339
7380
  }[];
7340
7381
  }>;
7341
- getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
7382
+ getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
7383
+ date_from?: string | undefined;
7384
+ date_to?: string | undefined;
7385
+ folder_id?: string | undefined;
7386
+ journal_ids?: string | undefined;
7387
+ include_payments?: "true" | "false" | undefined;
7388
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
7389
+ } | undefined): import("../types/api").RequestData<{
7342
7390
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
7343
7391
  invoice_number?: string | undefined;
7344
7392
  currency: string;
@@ -7383,7 +7431,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7383
7431
  analytic_account?: string | undefined;
7384
7432
  }[];
7385
7433
  }[]>;
7386
- getInvoice(invoiceId: string, params: {
7434
+ getInvoice(invoiceId: string, params?: {
7387
7435
  include_payments?: "true" | "false" | undefined;
7388
7436
  folder_id?: string | undefined;
7389
7437
  } | undefined): import("../types/api").RequestData<{
@@ -7431,7 +7479,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7431
7479
  analytic_account?: string | undefined;
7432
7480
  }[];
7433
7481
  }>;
7434
- getInvoiceWithMultiplePlans(invoiceId: string, params: {
7482
+ getInvoiceWithMultiplePlans(invoiceId: string, params?: {
7435
7483
  include_payments?: "true" | "false" | undefined;
7436
7484
  folder_id?: string | undefined;
7437
7485
  } | undefined): import("../types/api").RequestData<{
@@ -7485,7 +7533,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7485
7533
  }[] | undefined;
7486
7534
  }[];
7487
7535
  }>;
7488
- getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
7536
+ getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
7537
+ date_from?: string | undefined;
7538
+ date_to?: string | undefined;
7539
+ folder_id?: string | undefined;
7540
+ journal_ids?: string | undefined;
7541
+ include_payments?: "true" | "false" | undefined;
7542
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
7543
+ } | undefined): import("../types/api").RequestData<{
7489
7544
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
7490
7545
  invoice_number?: string | undefined;
7491
7546
  currency: string;
@@ -7541,7 +7596,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7541
7596
  code: string;
7542
7597
  name: string;
7543
7598
  currency: string;
7544
- }, params: {
7599
+ }, params?: {
7545
7600
  folder_id?: string | undefined;
7546
7601
  } | undefined): import("../types/api").RequestData<{
7547
7602
  id: string;
@@ -7553,10 +7608,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7553
7608
  credit?: number | undefined;
7554
7609
  debit?: number | undefined;
7555
7610
  }>;
7556
- getAnalyticAccounts(params: {
7611
+ getAnalyticAccounts(params?: {
7557
7612
  folder_id?: string | undefined;
7558
- page?: number | undefined;
7559
- size?: number | undefined;
7560
7613
  } | undefined): import("../types/api").RequestData<{
7561
7614
  id: string;
7562
7615
  active: boolean;
@@ -7572,7 +7625,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7572
7625
  code: string;
7573
7626
  name: string;
7574
7627
  currency: string;
7575
- }, params: {
7628
+ }, params?: {
7576
7629
  folder_id?: string | undefined;
7577
7630
  } | undefined): import("../types/api").RequestData<{
7578
7631
  id: string;
@@ -7585,7 +7638,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7585
7638
  debit?: number | undefined;
7586
7639
  analytic_plan: string;
7587
7640
  }>;
7588
- getAnalyticAccount(analytic_account_id: string, params: {
7641
+ getAnalyticAccount(analytic_account_id: string, params?: {
7589
7642
  folder_id?: string | undefined;
7590
7643
  } | undefined): import("../types/api").RequestData<{
7591
7644
  id: string;
@@ -7602,7 +7655,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7602
7655
  code?: string | undefined;
7603
7656
  name?: string | undefined;
7604
7657
  currency?: string | undefined;
7605
- }, params: {
7658
+ }, params?: {
7606
7659
  folder_id?: string | undefined;
7607
7660
  } | undefined): import("../types/api").RequestData<{
7608
7661
  id: string;
@@ -7614,7 +7667,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7614
7667
  credit?: number | undefined;
7615
7668
  debit?: number | undefined;
7616
7669
  }>;
7617
- getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
7670
+ getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
7618
7671
  folder_id?: string | undefined;
7619
7672
  } | undefined): import("../types/api").RequestData<{
7620
7673
  id: string;
@@ -7632,7 +7685,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7632
7685
  code?: string | undefined;
7633
7686
  name?: string | undefined;
7634
7687
  currency?: string | undefined;
7635
- }, params: {
7688
+ }, params?: {
7636
7689
  folder_id?: string | undefined;
7637
7690
  } | undefined): import("../types/api").RequestData<{
7638
7691
  id: string;
@@ -7645,10 +7698,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7645
7698
  debit?: number | undefined;
7646
7699
  analytic_plan: string;
7647
7700
  }>;
7648
- getAnalyticAccountsWithMultiplePlans(params: {
7701
+ getAnalyticAccountsWithMultiplePlans(params?: {
7649
7702
  folder_id?: string | undefined;
7650
- page?: number | undefined;
7651
- size?: number | undefined;
7652
7703
  } | undefined): import("../types/api").RequestData<{
7653
7704
  id: string;
7654
7705
  active: boolean;
@@ -7729,7 +7780,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7729
7780
  }[] | undefined;
7730
7781
  }[] | undefined;
7731
7782
  }[]>;
7732
- getPaymentsByInvoiceId(invoice_id: string, params: {
7783
+ getPaymentsByInvoiceId(invoice_id: string, params?: {
7733
7784
  folder_id?: string | undefined;
7734
7785
  page?: number | undefined;
7735
7786
  size?: number | undefined;
@@ -7747,20 +7798,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7747
7798
  communication?: string | undefined;
7748
7799
  matching_number?: string | undefined;
7749
7800
  }[]>;
7750
- getJournals(params: {
7801
+ getJournals(params?: {
7751
7802
  folder_id?: string | undefined;
7752
- page?: number | undefined;
7753
- size?: number | undefined;
7754
7803
  } | undefined): import("../types/api").RequestData<{
7755
7804
  id: string;
7756
7805
  code?: string | undefined;
7757
7806
  name: string;
7758
7807
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
7759
7808
  }[]>;
7760
- getVatCodes(params: {
7809
+ getVatCodes(params?: {
7761
7810
  folder_id?: string | undefined;
7762
- page?: number | undefined;
7763
- size?: number | undefined;
7764
7811
  } | undefined): import("../types/api").RequestData<{
7765
7812
  id: string;
7766
7813
  code?: string | undefined;
@@ -7771,7 +7818,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7771
7818
  deductible_account?: string | undefined;
7772
7819
  payable_account?: string | undefined;
7773
7820
  }[]>;
7774
- getMiscOperations(params: {}): import("../types/api").RequestData<{
7821
+ getMiscOperations(params?: {
7822
+ date_from?: string | undefined;
7823
+ date_to?: string | undefined;
7824
+ folder_id?: string | undefined;
7825
+ journal_ids?: string | undefined;
7826
+ } | undefined): import("../types/api").RequestData<{
7775
7827
  operation_number?: string | undefined;
7776
7828
  currency: string;
7777
7829
  currency_exchange_rate?: number | undefined;
@@ -7805,7 +7857,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7805
7857
  operation_date: string;
7806
7858
  journal_id?: string | undefined;
7807
7859
  status?: "draft" | "posted" | undefined;
7808
- }, params: {
7860
+ }, params?: {
7809
7861
  folder_id?: string | undefined;
7810
7862
  } | undefined): import("../types/api").RequestData<{
7811
7863
  operation_number?: string | undefined;
@@ -7825,7 +7877,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7825
7877
  status: "cancelled" | "draft" | "posted" | "matched";
7826
7878
  id: string;
7827
7879
  }>;
7828
- getMiscOperation(operation_id: string, params: {
7880
+ getMiscOperation(operation_id: string, params?: {
7829
7881
  folder_id?: string | undefined;
7830
7882
  } | undefined): import("../types/api").RequestData<{
7831
7883
  operation_number?: string | undefined;
@@ -7847,24 +7899,25 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7847
7899
  }>;
7848
7900
  attachPDF(invoice_id: string, attachment: {
7849
7901
  base64_string: string;
7850
- }, params: {
7902
+ }, params?: {
7851
7903
  overwrite_existing?: "true" | "false" | undefined;
7852
7904
  folder_id?: string | undefined;
7853
7905
  } | undefined): import("../types/api").RequestData<{
7854
7906
  content: {
7855
- "application/json": unknown;
7907
+ 'application/json': unknown;
7856
7908
  };
7857
7909
  }>;
7858
7910
  getAttachments(params: {
7911
+ folder_id?: string | undefined;
7859
7912
  type: "invoice" | "entry";
7860
7913
  document_id: string;
7861
- folder_id?: string | undefined;
7862
- page?: number | undefined;
7863
- size?: number | undefined;
7864
7914
  }): import("../types/api").RequestData<{
7865
7915
  base64_string: string;
7866
7916
  }[]>;
7867
- getChartOfAccounts(params: {}): import("../types/api").RequestData<{
7917
+ getChartOfAccounts(params?: {
7918
+ classes?: string | undefined;
7919
+ folder_id?: string | undefined;
7920
+ } | undefined): import("../types/api").RequestData<{
7868
7921
  number: string;
7869
7922
  name: string;
7870
7923
  active?: boolean | undefined;
@@ -7874,10 +7927,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7874
7927
  accounts: string[];
7875
7928
  start?: string | undefined;
7876
7929
  end: string;
7877
- }, params: {
7930
+ }, params?: {
7878
7931
  folder_id?: string | undefined;
7879
- page?: number | undefined;
7880
- size?: number | undefined;
7881
7932
  } | undefined): import("../types/api").RequestData<{
7882
7933
  account_number: string;
7883
7934
  account_name?: string | undefined;
@@ -7885,10 +7936,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7885
7936
  credit: number;
7886
7937
  balance: number;
7887
7938
  }[]>;
7888
- getEmployees(params: {
7939
+ getEmployees(params?: {
7889
7940
  folder_id?: string | undefined;
7890
- page?: number | undefined;
7891
- size?: number | undefined;
7892
7941
  } | undefined): import("../types/api").RequestData<{
7893
7942
  id: string;
7894
7943
  name: string;
@@ -7904,8 +7953,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7904
7953
  }[]>;
7905
7954
  getOutstandings(params: {
7906
7955
  folder_id?: string | undefined;
7907
- unposted_allowed: "true" | "false";
7908
7956
  type: "supplier" | "client";
7957
+ unposted_allowed: "true" | "false";
7909
7958
  }): import("../types/api").RequestData<{
7910
7959
  id: string;
7911
7960
  number?: string | undefined;
@@ -7938,7 +7987,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7938
7987
  description?: string | undefined;
7939
7988
  }[];
7940
7989
  pdf?: string | undefined;
7941
- }, params: {
7990
+ }, params?: {
7942
7991
  financial_counterpart_account?: string | undefined;
7943
7992
  folder_id?: string | undefined;
7944
7993
  } | undefined): import("../types/api").RequestData<{
@@ -7972,7 +8021,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7972
8021
  description?: string | undefined;
7973
8022
  }[];
7974
8023
  pdf?: string | undefined;
7975
- }, params: {
8024
+ }, params?: {
7976
8025
  financial_counterpart_account?: string | undefined;
7977
8026
  folder_id?: string | undefined;
7978
8027
  } | undefined): import("../types/api").RequestData<{
@@ -8071,7 +8120,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8071
8120
  }[];
8072
8121
  pdf?: string | undefined;
8073
8122
  posted?: boolean | undefined;
8074
- }, params: {
8123
+ }, params?: {
8075
8124
  folder_id?: string | undefined;
8076
8125
  } | undefined): import("../types/api").RequestData<{
8077
8126
  reference?: string | undefined;
@@ -8106,7 +8155,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8106
8155
  matchEntries(body: {
8107
8156
  entries: string[];
8108
8157
  partner_id: string;
8109
- }, params: {
8158
+ }, params?: {
8110
8159
  folder_id?: string | undefined;
8111
8160
  } | undefined): import("../types/api").RequestData<{
8112
8161
  matching_number: string;
@@ -8119,14 +8168,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8119
8168
  }[]>;
8120
8169
  }>;
8121
8170
  invoicing: import("../types/api").ApiFor<{
8122
- getInvoices(params: {
8123
- invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
8124
- payment_status?: "all" | "paid" | "unpaid" | undefined;
8171
+ getInvoices(params?: {
8125
8172
  date_from?: string | undefined;
8126
8173
  date_to?: string | undefined;
8174
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
8175
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
8127
8176
  updated_after?: string | undefined;
8128
- page?: number | undefined;
8129
- size?: number | undefined;
8130
8177
  } | undefined): import("../types/api").RequestData<{
8131
8178
  id: string;
8132
8179
  source_ref: {
@@ -8170,7 +8217,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8170
8217
  outstanding_amount?: number | undefined;
8171
8218
  last_updated_on?: string | undefined;
8172
8219
  }[]>;
8173
- getInvoiceById(invoiceId: string, params: {
8220
+ getInvoiceById(invoiceId: string, params?: {
8174
8221
  include_pdf?: "true" | "false" | undefined;
8175
8222
  } | undefined): import("../types/api").RequestData<{
8176
8223
  id: string;
@@ -8432,8 +8479,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8432
8479
  }>;
8433
8480
  getContacts(params?: {
8434
8481
  contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
8435
- page?: number | undefined;
8436
- size?: number | undefined;
8437
8482
  } | undefined): import("../types/api").RequestData<{
8438
8483
  id: string;
8439
8484
  source_ref: {
@@ -8844,7 +8889,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8844
8889
  id: string;
8845
8890
  name: string;
8846
8891
  }[]>;
8847
- getOrders(params: {}): import("../types/api").RequestData<{
8892
+ getOrders(params?: {
8893
+ date_from?: string | undefined;
8894
+ date_to?: string | undefined;
8895
+ updated_after?: string | undefined;
8896
+ include_detailed_refunds?: "true" | "false" | undefined;
8897
+ } | undefined): import("../types/api").RequestData<{
8848
8898
  id: string;
8849
8899
  source_ref: {
8850
8900
  id?: string | undefined;
@@ -9335,7 +9385,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9335
9385
  name?: string | undefined;
9336
9386
  }[] | undefined;
9337
9387
  }>;
9338
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
9388
+ getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
9339
9389
  id: string;
9340
9390
  source_ref: {
9341
9391
  id?: string | undefined;
@@ -9344,7 +9394,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9344
9394
  name: string;
9345
9395
  active: boolean;
9346
9396
  }[]>;
9347
- getProductCategories(params: {}): import("../types/api").RequestData<{
9397
+ getProductCategories(params?: {
9398
+ only_parents?: "true" | "false" | undefined;
9399
+ } | undefined): import("../types/api").RequestData<{
9348
9400
  id: string;
9349
9401
  source_ref: {
9350
9402
  id?: string | undefined;
@@ -9353,7 +9405,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9353
9405
  name: string;
9354
9406
  parent_id?: string | undefined;
9355
9407
  }[]>;
9356
- getTaxes(params: {}): import("../types/api").RequestData<{
9408
+ getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
9357
9409
  id: string;
9358
9410
  source_ref: {
9359
9411
  id?: string | undefined;
@@ -9363,7 +9415,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9363
9415
  rate: number;
9364
9416
  country?: string | undefined;
9365
9417
  }[]>;
9366
- getCountries(params: {}): import("../types/api").RequestData<{
9418
+ getCountries(params?: {} | undefined): import("../types/api").RequestData<{
9367
9419
  code: string;
9368
9420
  name: string;
9369
9421
  }[]>;
@@ -9458,6 +9510,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9458
9510
  }[]>;
9459
9511
  deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
9460
9512
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
9513
+ setConnectionId: (connectionId: string) => Promise<void>;
9514
+ setIntegrationId: (integrationId: string) => Promise<void>;
9461
9515
  }, context: any) => any, log?: boolean) => Promise<void>;
9462
9516
  flowId: string;
9463
9517
  name: string;
@@ -9596,7 +9650,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9596
9650
  total: number;
9597
9651
  }[] | undefined;
9598
9652
  }[]>;
9599
- getCustomers(params: {}): import("../types/api").RequestData<{
9653
+ getCustomers(params?: {
9654
+ search?: string | undefined;
9655
+ email?: string | undefined;
9656
+ phone?: string | undefined;
9657
+ } | undefined): import("../types/api").RequestData<{
9600
9658
  id: string;
9601
9659
  first_name?: string | undefined;
9602
9660
  last_name?: string | undefined;
@@ -9721,12 +9779,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9721
9779
  loyalty?: number | undefined;
9722
9780
  birthdate?: string | undefined;
9723
9781
  }>;
9724
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
9782
+ getPaymentMethods(params?: {
9783
+ location_id?: string | undefined;
9784
+ } | undefined): import("../types/api").RequestData<{
9725
9785
  id: string;
9726
9786
  name: string;
9727
9787
  extra?: string | undefined;
9728
9788
  }[]>;
9729
- getProductCategories(params: {}): import("../types/api").RequestData<{
9789
+ getProductCategories(params?: {
9790
+ location_id?: string | undefined;
9791
+ only_parents?: "true" | "false" | undefined;
9792
+ } | undefined): import("../types/api").RequestData<{
9730
9793
  id: string;
9731
9794
  source_ref: {
9732
9795
  id?: string | undefined;
@@ -9735,7 +9798,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9735
9798
  name: string;
9736
9799
  parent_id?: string | undefined;
9737
9800
  }[]>;
9738
- getProducts(params: {}): import("../types/api").RequestData<{
9801
+ getProducts(params?: {
9802
+ location_id?: string | undefined;
9803
+ } | undefined): import("../types/api").RequestData<{
9739
9804
  id: string;
9740
9805
  categories?: string[] | undefined;
9741
9806
  name: string;
@@ -9759,7 +9824,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9759
9824
  total: number;
9760
9825
  }[] | undefined;
9761
9826
  }>;
9762
- getClosure(date: string, params: {
9827
+ getClosure(date: string, params?: {
9763
9828
  location_id?: string | undefined;
9764
9829
  } | undefined): import("../types/api").RequestData<{
9765
9830
  date: string;
@@ -9828,7 +9893,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9828
9893
  total: number;
9829
9894
  }[] | undefined;
9830
9895
  }>;
9831
- getAccountingCategories(params: {}): import("../types/api").RequestData<{
9896
+ getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
9832
9897
  id: string;
9833
9898
  name: string;
9834
9899
  id_parent?: string | undefined;
@@ -9838,19 +9903,15 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9838
9903
  }[]>;
9839
9904
  }>;
9840
9905
  accounting: import("../types/api").ApiFor<{
9841
- getAnalyticPlans(params: {
9906
+ getAnalyticPlans(params?: {
9842
9907
  folder_id?: string | undefined;
9843
- page?: number | undefined;
9844
- size?: number | undefined;
9845
9908
  } | undefined): import("../types/api").RequestData<{
9846
9909
  id: string;
9847
9910
  name: string;
9848
9911
  active?: boolean | undefined;
9849
9912
  }[]>;
9850
- getClients(params: {
9913
+ getClients(params?: {
9851
9914
  folder_id?: string | undefined;
9852
- page?: number | undefined;
9853
- size?: number | undefined;
9854
9915
  } | undefined): import("../types/api").RequestData<{
9855
9916
  external_reference?: string | undefined;
9856
9917
  first_name?: string | undefined;
@@ -9920,7 +9981,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9920
9981
  country: string;
9921
9982
  }[];
9922
9983
  account_number?: string | undefined;
9923
- }, params: {
9984
+ }, params?: {
9924
9985
  force_merge?: string | undefined;
9925
9986
  folder_id?: string | undefined;
9926
9987
  } | undefined): import("../types/api").RequestData<{
@@ -9959,7 +10020,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9959
10020
  company_number?: string | undefined;
9960
10021
  id?: string | undefined;
9961
10022
  }>;
9962
- getClient(clientId: string, params: {
10023
+ getClient(clientId: string, params?: {
9963
10024
  folder_id?: string | undefined;
9964
10025
  } | undefined): import("../types/api").RequestData<{
9965
10026
  external_reference?: string | undefined;
@@ -10029,7 +10090,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10029
10090
  postal_code?: string | undefined;
10030
10091
  country?: string | undefined;
10031
10092
  }[] | undefined;
10032
- }, params: {
10093
+ }, params?: {
10033
10094
  folder_id?: string | undefined;
10034
10095
  } | undefined): import("../types/api").RequestData<{
10035
10096
  external_reference?: string | undefined;
@@ -10067,10 +10128,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10067
10128
  company_number?: string | undefined;
10068
10129
  id?: string | undefined;
10069
10130
  }>;
10070
- getSuppliers(params: {
10131
+ getSuppliers(params?: {
10071
10132
  folder_id?: string | undefined;
10072
- page?: number | undefined;
10073
- size?: number | undefined;
10074
10133
  } | undefined): import("../types/api").RequestData<{
10075
10134
  external_reference?: string | undefined;
10076
10135
  first_name?: string | undefined;
@@ -10140,7 +10199,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10140
10199
  country: string;
10141
10200
  }[];
10142
10201
  account_number?: string | undefined;
10143
- }, params: {
10202
+ }, params?: {
10144
10203
  force_merge?: string | undefined;
10145
10204
  folder_id?: string | undefined;
10146
10205
  } | undefined): import("../types/api").RequestData<{
@@ -10179,7 +10238,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10179
10238
  company_number?: string | undefined;
10180
10239
  id?: string | undefined;
10181
10240
  }>;
10182
- getSupplier(supplierId: string, params: {
10241
+ getSupplier(supplierId: string, params?: {
10183
10242
  folder_id?: string | undefined;
10184
10243
  } | undefined): import("../types/api").RequestData<{
10185
10244
  external_reference?: string | undefined;
@@ -10249,7 +10308,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10249
10308
  postal_code?: string | undefined;
10250
10309
  country?: string | undefined;
10251
10310
  }[] | undefined;
10252
- }, params: {
10311
+ }, params?: {
10253
10312
  folder_id?: string | undefined;
10254
10313
  } | undefined): import("../types/api").RequestData<{
10255
10314
  external_reference?: string | undefined;
@@ -10334,7 +10393,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10334
10393
  tax_code: string;
10335
10394
  analytic_account?: string | undefined;
10336
10395
  }[];
10337
- }, params: {
10396
+ }, params?: {
10338
10397
  force_financial_period?: string | undefined;
10339
10398
  regroup_lines?: "true" | "false" | undefined;
10340
10399
  folder_id?: string | undefined;
@@ -10436,7 +10495,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10436
10495
  }[];
10437
10496
  }[] | undefined;
10438
10497
  }[];
10439
- }, params: {
10498
+ }, params?: {
10440
10499
  force_financial_period?: string | undefined;
10441
10500
  regroup_lines?: "true" | "false" | undefined;
10442
10501
  folder_id?: string | undefined;
@@ -10491,7 +10550,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10491
10550
  }[] | undefined;
10492
10551
  }[];
10493
10552
  }>;
10494
- getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
10553
+ getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
10554
+ date_from?: string | undefined;
10555
+ date_to?: string | undefined;
10556
+ folder_id?: string | undefined;
10557
+ journal_ids?: string | undefined;
10558
+ include_payments?: "true" | "false" | undefined;
10559
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
10560
+ } | undefined): import("../types/api").RequestData<{
10495
10561
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10496
10562
  invoice_number?: string | undefined;
10497
10563
  currency: string;
@@ -10536,7 +10602,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10536
10602
  analytic_account?: string | undefined;
10537
10603
  }[];
10538
10604
  }[]>;
10539
- getInvoice(invoiceId: string, params: {
10605
+ getInvoice(invoiceId: string, params?: {
10540
10606
  include_payments?: "true" | "false" | undefined;
10541
10607
  folder_id?: string | undefined;
10542
10608
  } | undefined): import("../types/api").RequestData<{
@@ -10584,7 +10650,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10584
10650
  analytic_account?: string | undefined;
10585
10651
  }[];
10586
10652
  }>;
10587
- getInvoiceWithMultiplePlans(invoiceId: string, params: {
10653
+ getInvoiceWithMultiplePlans(invoiceId: string, params?: {
10588
10654
  include_payments?: "true" | "false" | undefined;
10589
10655
  folder_id?: string | undefined;
10590
10656
  } | undefined): import("../types/api").RequestData<{
@@ -10638,7 +10704,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10638
10704
  }[] | undefined;
10639
10705
  }[];
10640
10706
  }>;
10641
- getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
10707
+ getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
10708
+ date_from?: string | undefined;
10709
+ date_to?: string | undefined;
10710
+ folder_id?: string | undefined;
10711
+ journal_ids?: string | undefined;
10712
+ include_payments?: "true" | "false" | undefined;
10713
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
10714
+ } | undefined): import("../types/api").RequestData<{
10642
10715
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10643
10716
  invoice_number?: string | undefined;
10644
10717
  currency: string;
@@ -10694,7 +10767,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10694
10767
  code: string;
10695
10768
  name: string;
10696
10769
  currency: string;
10697
- }, params: {
10770
+ }, params?: {
10698
10771
  folder_id?: string | undefined;
10699
10772
  } | undefined): import("../types/api").RequestData<{
10700
10773
  id: string;
@@ -10706,10 +10779,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10706
10779
  credit?: number | undefined;
10707
10780
  debit?: number | undefined;
10708
10781
  }>;
10709
- getAnalyticAccounts(params: {
10782
+ getAnalyticAccounts(params?: {
10710
10783
  folder_id?: string | undefined;
10711
- page?: number | undefined;
10712
- size?: number | undefined;
10713
10784
  } | undefined): import("../types/api").RequestData<{
10714
10785
  id: string;
10715
10786
  active: boolean;
@@ -10725,7 +10796,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10725
10796
  code: string;
10726
10797
  name: string;
10727
10798
  currency: string;
10728
- }, params: {
10799
+ }, params?: {
10729
10800
  folder_id?: string | undefined;
10730
10801
  } | undefined): import("../types/api").RequestData<{
10731
10802
  id: string;
@@ -10738,7 +10809,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10738
10809
  debit?: number | undefined;
10739
10810
  analytic_plan: string;
10740
10811
  }>;
10741
- getAnalyticAccount(analytic_account_id: string, params: {
10812
+ getAnalyticAccount(analytic_account_id: string, params?: {
10742
10813
  folder_id?: string | undefined;
10743
10814
  } | undefined): import("../types/api").RequestData<{
10744
10815
  id: string;
@@ -10755,7 +10826,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10755
10826
  code?: string | undefined;
10756
10827
  name?: string | undefined;
10757
10828
  currency?: string | undefined;
10758
- }, params: {
10829
+ }, params?: {
10759
10830
  folder_id?: string | undefined;
10760
10831
  } | undefined): import("../types/api").RequestData<{
10761
10832
  id: string;
@@ -10767,7 +10838,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10767
10838
  credit?: number | undefined;
10768
10839
  debit?: number | undefined;
10769
10840
  }>;
10770
- getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
10841
+ getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
10771
10842
  folder_id?: string | undefined;
10772
10843
  } | undefined): import("../types/api").RequestData<{
10773
10844
  id: string;
@@ -10785,7 +10856,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10785
10856
  code?: string | undefined;
10786
10857
  name?: string | undefined;
10787
10858
  currency?: string | undefined;
10788
- }, params: {
10859
+ }, params?: {
10789
10860
  folder_id?: string | undefined;
10790
10861
  } | undefined): import("../types/api").RequestData<{
10791
10862
  id: string;
@@ -10798,10 +10869,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10798
10869
  debit?: number | undefined;
10799
10870
  analytic_plan: string;
10800
10871
  }>;
10801
- getAnalyticAccountsWithMultiplePlans(params: {
10872
+ getAnalyticAccountsWithMultiplePlans(params?: {
10802
10873
  folder_id?: string | undefined;
10803
- page?: number | undefined;
10804
- size?: number | undefined;
10805
10874
  } | undefined): import("../types/api").RequestData<{
10806
10875
  id: string;
10807
10876
  active: boolean;
@@ -10882,7 +10951,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10882
10951
  }[] | undefined;
10883
10952
  }[] | undefined;
10884
10953
  }[]>;
10885
- getPaymentsByInvoiceId(invoice_id: string, params: {
10954
+ getPaymentsByInvoiceId(invoice_id: string, params?: {
10886
10955
  folder_id?: string | undefined;
10887
10956
  page?: number | undefined;
10888
10957
  size?: number | undefined;
@@ -10900,20 +10969,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10900
10969
  communication?: string | undefined;
10901
10970
  matching_number?: string | undefined;
10902
10971
  }[]>;
10903
- getJournals(params: {
10972
+ getJournals(params?: {
10904
10973
  folder_id?: string | undefined;
10905
- page?: number | undefined;
10906
- size?: number | undefined;
10907
10974
  } | undefined): import("../types/api").RequestData<{
10908
10975
  id: string;
10909
10976
  code?: string | undefined;
10910
10977
  name: string;
10911
10978
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
10912
10979
  }[]>;
10913
- getVatCodes(params: {
10980
+ getVatCodes(params?: {
10914
10981
  folder_id?: string | undefined;
10915
- page?: number | undefined;
10916
- size?: number | undefined;
10917
10982
  } | undefined): import("../types/api").RequestData<{
10918
10983
  id: string;
10919
10984
  code?: string | undefined;
@@ -10924,7 +10989,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10924
10989
  deductible_account?: string | undefined;
10925
10990
  payable_account?: string | undefined;
10926
10991
  }[]>;
10927
- getMiscOperations(params: {}): import("../types/api").RequestData<{
10992
+ getMiscOperations(params?: {
10993
+ date_from?: string | undefined;
10994
+ date_to?: string | undefined;
10995
+ folder_id?: string | undefined;
10996
+ journal_ids?: string | undefined;
10997
+ } | undefined): import("../types/api").RequestData<{
10928
10998
  operation_number?: string | undefined;
10929
10999
  currency: string;
10930
11000
  currency_exchange_rate?: number | undefined;
@@ -10958,7 +11028,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10958
11028
  operation_date: string;
10959
11029
  journal_id?: string | undefined;
10960
11030
  status?: "draft" | "posted" | undefined;
10961
- }, params: {
11031
+ }, params?: {
10962
11032
  folder_id?: string | undefined;
10963
11033
  } | undefined): import("../types/api").RequestData<{
10964
11034
  operation_number?: string | undefined;
@@ -10978,7 +11048,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10978
11048
  status: "cancelled" | "draft" | "posted" | "matched";
10979
11049
  id: string;
10980
11050
  }>;
10981
- getMiscOperation(operation_id: string, params: {
11051
+ getMiscOperation(operation_id: string, params?: {
10982
11052
  folder_id?: string | undefined;
10983
11053
  } | undefined): import("../types/api").RequestData<{
10984
11054
  operation_number?: string | undefined;
@@ -11000,24 +11070,25 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11000
11070
  }>;
11001
11071
  attachPDF(invoice_id: string, attachment: {
11002
11072
  base64_string: string;
11003
- }, params: {
11073
+ }, params?: {
11004
11074
  overwrite_existing?: "true" | "false" | undefined;
11005
11075
  folder_id?: string | undefined;
11006
11076
  } | undefined): import("../types/api").RequestData<{
11007
11077
  content: {
11008
- "application/json": unknown;
11078
+ 'application/json': unknown;
11009
11079
  };
11010
11080
  }>;
11011
11081
  getAttachments(params: {
11082
+ folder_id?: string | undefined;
11012
11083
  type: "invoice" | "entry";
11013
11084
  document_id: string;
11014
- folder_id?: string | undefined;
11015
- page?: number | undefined;
11016
- size?: number | undefined;
11017
11085
  }): import("../types/api").RequestData<{
11018
11086
  base64_string: string;
11019
11087
  }[]>;
11020
- getChartOfAccounts(params: {}): import("../types/api").RequestData<{
11088
+ getChartOfAccounts(params?: {
11089
+ classes?: string | undefined;
11090
+ folder_id?: string | undefined;
11091
+ } | undefined): import("../types/api").RequestData<{
11021
11092
  number: string;
11022
11093
  name: string;
11023
11094
  active?: boolean | undefined;
@@ -11027,10 +11098,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11027
11098
  accounts: string[];
11028
11099
  start?: string | undefined;
11029
11100
  end: string;
11030
- }, params: {
11101
+ }, params?: {
11031
11102
  folder_id?: string | undefined;
11032
- page?: number | undefined;
11033
- size?: number | undefined;
11034
11103
  } | undefined): import("../types/api").RequestData<{
11035
11104
  account_number: string;
11036
11105
  account_name?: string | undefined;
@@ -11038,10 +11107,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11038
11107
  credit: number;
11039
11108
  balance: number;
11040
11109
  }[]>;
11041
- getEmployees(params: {
11110
+ getEmployees(params?: {
11042
11111
  folder_id?: string | undefined;
11043
- page?: number | undefined;
11044
- size?: number | undefined;
11045
11112
  } | undefined): import("../types/api").RequestData<{
11046
11113
  id: string;
11047
11114
  name: string;
@@ -11057,8 +11124,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11057
11124
  }[]>;
11058
11125
  getOutstandings(params: {
11059
11126
  folder_id?: string | undefined;
11060
- unposted_allowed: "true" | "false";
11061
11127
  type: "supplier" | "client";
11128
+ unposted_allowed: "true" | "false";
11062
11129
  }): import("../types/api").RequestData<{
11063
11130
  id: string;
11064
11131
  number?: string | undefined;
@@ -11091,7 +11158,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11091
11158
  description?: string | undefined;
11092
11159
  }[];
11093
11160
  pdf?: string | undefined;
11094
- }, params: {
11161
+ }, params?: {
11095
11162
  financial_counterpart_account?: string | undefined;
11096
11163
  folder_id?: string | undefined;
11097
11164
  } | undefined): import("../types/api").RequestData<{
@@ -11125,7 +11192,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11125
11192
  description?: string | undefined;
11126
11193
  }[];
11127
11194
  pdf?: string | undefined;
11128
- }, params: {
11195
+ }, params?: {
11129
11196
  financial_counterpart_account?: string | undefined;
11130
11197
  folder_id?: string | undefined;
11131
11198
  } | undefined): import("../types/api").RequestData<{
@@ -11224,7 +11291,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11224
11291
  }[];
11225
11292
  pdf?: string | undefined;
11226
11293
  posted?: boolean | undefined;
11227
- }, params: {
11294
+ }, params?: {
11228
11295
  folder_id?: string | undefined;
11229
11296
  } | undefined): import("../types/api").RequestData<{
11230
11297
  reference?: string | undefined;
@@ -11259,7 +11326,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11259
11326
  matchEntries(body: {
11260
11327
  entries: string[];
11261
11328
  partner_id: string;
11262
- }, params: {
11329
+ }, params?: {
11263
11330
  folder_id?: string | undefined;
11264
11331
  } | undefined): import("../types/api").RequestData<{
11265
11332
  matching_number: string;
@@ -11272,14 +11339,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11272
11339
  }[]>;
11273
11340
  }>;
11274
11341
  invoicing: import("../types/api").ApiFor<{
11275
- getInvoices(params: {
11276
- invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
11277
- payment_status?: "all" | "paid" | "unpaid" | undefined;
11342
+ getInvoices(params?: {
11278
11343
  date_from?: string | undefined;
11279
11344
  date_to?: string | undefined;
11345
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
11346
+ invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
11280
11347
  updated_after?: string | undefined;
11281
- page?: number | undefined;
11282
- size?: number | undefined;
11283
11348
  } | undefined): import("../types/api").RequestData<{
11284
11349
  id: string;
11285
11350
  source_ref: {
@@ -11323,7 +11388,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11323
11388
  outstanding_amount?: number | undefined;
11324
11389
  last_updated_on?: string | undefined;
11325
11390
  }[]>;
11326
- getInvoiceById(invoiceId: string, params: {
11391
+ getInvoiceById(invoiceId: string, params?: {
11327
11392
  include_pdf?: "true" | "false" | undefined;
11328
11393
  } | undefined): import("../types/api").RequestData<{
11329
11394
  id: string;
@@ -11585,8 +11650,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11585
11650
  }>;
11586
11651
  getContacts(params?: {
11587
11652
  contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
11588
- page?: number | undefined;
11589
- size?: number | undefined;
11590
11653
  } | undefined): import("../types/api").RequestData<{
11591
11654
  id: string;
11592
11655
  source_ref: {
@@ -11997,7 +12060,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11997
12060
  id: string;
11998
12061
  name: string;
11999
12062
  }[]>;
12000
- getOrders(params: {}): import("../types/api").RequestData<{
12063
+ getOrders(params?: {
12064
+ date_from?: string | undefined;
12065
+ date_to?: string | undefined;
12066
+ updated_after?: string | undefined;
12067
+ include_detailed_refunds?: "true" | "false" | undefined;
12068
+ } | undefined): import("../types/api").RequestData<{
12001
12069
  id: string;
12002
12070
  source_ref: {
12003
12071
  id?: string | undefined;
@@ -12488,7 +12556,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12488
12556
  name?: string | undefined;
12489
12557
  }[] | undefined;
12490
12558
  }>;
12491
- getPaymentMethods(params: {}): import("../types/api").RequestData<{
12559
+ getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
12492
12560
  id: string;
12493
12561
  source_ref: {
12494
12562
  id?: string | undefined;
@@ -12497,7 +12565,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12497
12565
  name: string;
12498
12566
  active: boolean;
12499
12567
  }[]>;
12500
- getProductCategories(params: {}): import("../types/api").RequestData<{
12568
+ getProductCategories(params?: {
12569
+ only_parents?: "true" | "false" | undefined;
12570
+ } | undefined): import("../types/api").RequestData<{
12501
12571
  id: string;
12502
12572
  source_ref: {
12503
12573
  id?: string | undefined;
@@ -12506,7 +12576,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12506
12576
  name: string;
12507
12577
  parent_id?: string | undefined;
12508
12578
  }[]>;
12509
- getTaxes(params: {}): import("../types/api").RequestData<{
12579
+ getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
12510
12580
  id: string;
12511
12581
  source_ref: {
12512
12582
  id?: string | undefined;
@@ -12516,7 +12586,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12516
12586
  rate: number;
12517
12587
  country?: string | undefined;
12518
12588
  }[]>;
12519
- getCountries(params: {}): import("../types/api").RequestData<{
12589
+ getCountries(params?: {} | undefined): import("../types/api").RequestData<{
12520
12590
  code: string;
12521
12591
  name: string;
12522
12592
  }[]>;
@@ -12611,6 +12681,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12611
12681
  }[]>;
12612
12682
  deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
12613
12683
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
12684
+ setConnectionId: (connectionId: string) => Promise<void>;
12685
+ setIntegrationId: (integrationId: string) => Promise<void>;
12614
12686
  }, context: any) => any, log?: boolean) => Promise<void>;
12615
12687
  flowId: string;
12616
12688
  name: string;