@chift/chift-nodejs 1.0.2 → 1.0.4

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.
Files changed (53) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/src/modules/accounting.d.ts +8 -1
  3. package/dist/src/modules/accounting.js +27 -1
  4. package/dist/src/modules/api.d.ts +2699 -912
  5. package/dist/src/modules/consumer.d.ts +146 -27
  6. package/dist/src/modules/consumers.d.ts +731 -136
  7. package/dist/src/modules/datastores.d.ts +1 -1
  8. package/dist/src/modules/integrations.d.ts +2 -0
  9. package/dist/src/modules/sync.d.ts +584 -108
  10. package/dist/src/modules/sync.js +0 -2
  11. package/dist/src/modules/syncs.d.ts +1464 -274
  12. package/dist/test/modules/accounting.test.js +127 -15
  13. package/dist/test/modules/consumers.test.js +1 -1
  14. package/dist/test/modules/pos.test.js +4 -4
  15. package/package.json +1 -1
  16. package/src/modules/accounting.ts +17 -3
  17. package/src/types/public-api/schema.d.ts +343 -33
  18. package/test/modules/accounting.test.ts +27 -0
  19. package/.eslintcache +0 -1
  20. package/coverage/clover.xml +0 -1645
  21. package/coverage/coverage-final.json +0 -19
  22. package/coverage/lcov-report/base.css +0 -224
  23. package/coverage/lcov-report/block-navigation.js +0 -87
  24. package/coverage/lcov-report/favicon.png +0 -0
  25. package/coverage/lcov-report/index.html +0 -146
  26. package/coverage/lcov-report/prettify.css +0 -1
  27. package/coverage/lcov-report/prettify.js +0 -2
  28. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  29. package/coverage/lcov-report/sorter.js +0 -196
  30. package/coverage/lcov-report/src/helpers/index.html +0 -131
  31. package/coverage/lcov-report/src/helpers/openapi.ts.html +0 -151
  32. package/coverage/lcov-report/src/helpers/settings.ts.html +0 -94
  33. package/coverage/lcov-report/src/index.html +0 -116
  34. package/coverage/lcov-report/src/index.ts.html +0 -88
  35. package/coverage/lcov-report/src/modules/accounting.ts.html +0 -1156
  36. package/coverage/lcov-report/src/modules/api.ts.html +0 -190
  37. package/coverage/lcov-report/src/modules/consumer.ts.html +0 -616
  38. package/coverage/lcov-report/src/modules/consumers.ts.html +0 -331
  39. package/coverage/lcov-report/src/modules/custom.ts.html +0 -193
  40. package/coverage/lcov-report/src/modules/datastores.ts.html +0 -142
  41. package/coverage/lcov-report/src/modules/ecommerce.ts.html +0 -331
  42. package/coverage/lcov-report/src/modules/flow.ts.html +0 -589
  43. package/coverage/lcov-report/src/modules/index.html +0 -326
  44. package/coverage/lcov-report/src/modules/integrations.ts.html +0 -151
  45. package/coverage/lcov-report/src/modules/internalApi.ts.html +0 -586
  46. package/coverage/lcov-report/src/modules/invoicing.ts.html +0 -391
  47. package/coverage/lcov-report/src/modules/pos.ts.html +0 -421
  48. package/coverage/lcov-report/src/modules/sync.ts.html +0 -316
  49. package/coverage/lcov-report/src/modules/syncs.ts.html +0 -169
  50. package/coverage/lcov-report/src/modules/webhooks.ts.html +0 -343
  51. package/coverage/lcov.info +0 -1976
  52. package/dist/test/modules/flow.test.d.ts +0 -1
  53. package/dist/test/modules/flow.test.js +0 -69
@@ -361,6 +361,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
361
361
  country?: string | undefined;
362
362
  }[] | undefined;
363
363
  account_number?: string | undefined;
364
+ company_number?: string | undefined;
364
365
  id?: string | undefined;
365
366
  }[]>;
366
367
  createClient(client: {
@@ -431,6 +432,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
431
432
  country?: string | undefined;
432
433
  }[] | undefined;
433
434
  account_number?: string | undefined;
435
+ company_number?: string | undefined;
434
436
  id?: string | undefined;
435
437
  }>;
436
438
  getClient(clientId: string): import("../types/api").RequestData<{
@@ -466,6 +468,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
466
468
  country?: string | undefined;
467
469
  }[] | undefined;
468
470
  account_number?: string | undefined;
471
+ company_number?: string | undefined;
469
472
  id?: string | undefined;
470
473
  }>;
471
474
  updateClient(clientId: string, client: {
@@ -533,6 +536,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
533
536
  country?: string | undefined;
534
537
  }[] | undefined;
535
538
  account_number?: string | undefined;
539
+ company_number?: string | undefined;
536
540
  id?: string | undefined;
537
541
  }>;
538
542
  getSuppliers(): import("../types/api").RequestData<{
@@ -568,6 +572,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
568
572
  country?: string | undefined;
569
573
  }[] | undefined;
570
574
  account_number?: string | undefined;
575
+ company_number?: string | undefined;
571
576
  id?: string | undefined;
572
577
  }[]>;
573
578
  createSupplier(supplier: {
@@ -638,6 +643,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
638
643
  country?: string | undefined;
639
644
  }[] | undefined;
640
645
  account_number?: string | undefined;
646
+ company_number?: string | undefined;
641
647
  id?: string | undefined;
642
648
  }>;
643
649
  getSupplier(supplierId: string): import("../types/api").RequestData<{
@@ -673,6 +679,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
673
679
  country?: string | undefined;
674
680
  }[] | undefined;
675
681
  account_number?: string | undefined;
682
+ company_number?: string | undefined;
676
683
  id?: string | undefined;
677
684
  }>;
678
685
  updateSupplier(supplierId: string, supplier: {
@@ -740,6 +747,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
740
747
  country?: string | undefined;
741
748
  }[] | undefined;
742
749
  account_number?: string | undefined;
750
+ company_number?: string | undefined;
743
751
  id?: string | undefined;
744
752
  }>;
745
753
  createInvoice(invoice: {
@@ -804,7 +812,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
804
812
  amount: number;
805
813
  dedicated_amount?: number | undefined;
806
814
  payment_date: string;
807
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
815
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
808
816
  journal_id: string;
809
817
  journal_name: string;
810
818
  reconciled?: boolean | undefined;
@@ -895,7 +903,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
895
903
  amount: number;
896
904
  dedicated_amount?: number | undefined;
897
905
  payment_date: string;
898
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
906
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
899
907
  journal_id: string;
900
908
  journal_name: string;
901
909
  reconciled?: boolean | undefined;
@@ -946,7 +954,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
946
954
  amount: number;
947
955
  dedicated_amount?: number | undefined;
948
956
  payment_date: string;
949
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
957
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
950
958
  journal_id: string;
951
959
  journal_name: string;
952
960
  reconciled?: boolean | undefined;
@@ -993,7 +1001,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
993
1001
  amount: number;
994
1002
  dedicated_amount?: number | undefined;
995
1003
  payment_date: string;
996
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
1004
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
997
1005
  journal_id: string;
998
1006
  journal_name: string;
999
1007
  reconciled?: boolean | undefined;
@@ -1040,7 +1048,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
1040
1048
  amount: number;
1041
1049
  dedicated_amount?: number | undefined;
1042
1050
  payment_date: string;
1043
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
1051
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1044
1052
  journal_id: string;
1045
1053
  journal_name: string;
1046
1054
  reconciled?: boolean | undefined;
@@ -1091,7 +1099,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
1091
1099
  amount: number;
1092
1100
  dedicated_amount?: number | undefined;
1093
1101
  payment_date: string;
1094
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
1102
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1095
1103
  journal_id: string;
1096
1104
  journal_name: string;
1097
1105
  reconciled?: boolean | undefined;
@@ -1305,7 +1313,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
1305
1313
  amount: number;
1306
1314
  dedicated_amount?: number | undefined;
1307
1315
  payment_date: string;
1308
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
1316
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1309
1317
  journal_id: string;
1310
1318
  journal_name: string;
1311
1319
  reconciled?: boolean | undefined;
@@ -1316,13 +1324,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
1316
1324
  id: string;
1317
1325
  code: string;
1318
1326
  name: string;
1319
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
1327
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1320
1328
  }[]>;
1321
1329
  getVatCodes(): import("../types/api").RequestData<{
1322
1330
  id: string;
1323
1331
  code?: string | undefined;
1324
1332
  label: string;
1325
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
1333
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
1326
1334
  rate: number;
1327
1335
  type: "unknown" | "sale" | "purchase" | "both";
1328
1336
  }[]>;
@@ -1434,12 +1442,32 @@ declare const Syncs: (internalApi: InternalAPI) => {
1434
1442
  reference?: string | undefined;
1435
1443
  account_number?: string | undefined;
1436
1444
  }[]>;
1437
- createFinancialEntry(financial_entry: {
1445
+ getOutstandings(params: {
1446
+ unposted_allowed: "true" | "false";
1447
+ type: "client" | "supplier";
1448
+ }): import("../types/api").RequestData<{
1449
+ id: string;
1450
+ number?: string | undefined;
1451
+ journal_id: string;
1452
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1453
+ date: string;
1454
+ due_date?: string | undefined;
1455
+ currency: string;
1456
+ currency_exchange_rate: number;
1457
+ amount: number;
1458
+ open_amount: number;
1459
+ partner_id: string;
1460
+ account_number: string;
1461
+ reference?: string | undefined;
1462
+ posted: boolean;
1463
+ }[]>;
1464
+ createFinancialEntryOld(financial_entry: {
1438
1465
  date: string;
1439
1466
  journal_id: string;
1440
1467
  currency: string;
1441
1468
  currency_exchange_rate?: number | undefined;
1442
1469
  reference?: string | undefined;
1470
+ number?: string | undefined;
1443
1471
  items: {
1444
1472
  type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1445
1473
  account_number: string;
@@ -1447,14 +1475,17 @@ declare const Syncs: (internalApi: InternalAPI) => {
1447
1475
  amount: number;
1448
1476
  description?: string | undefined;
1449
1477
  }[];
1450
- number?: string | undefined;
1451
1478
  pdf?: string | undefined;
1452
- }): import("../types/api").RequestData<{
1479
+ }, params: {
1480
+ financial_counterpart_account?: string | undefined;
1481
+ } | undefined): import("../types/api").RequestData<{
1453
1482
  date: string;
1454
1483
  journal_id: string;
1455
1484
  currency: string;
1456
1485
  currency_exchange_rate?: number | undefined;
1457
1486
  reference?: string | undefined;
1487
+ id: string;
1488
+ number: string;
1458
1489
  items: {
1459
1490
  type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1460
1491
  account_number: string;
@@ -1463,13 +1494,97 @@ declare const Syncs: (internalApi: InternalAPI) => {
1463
1494
  description?: string | undefined;
1464
1495
  counterpart_account: string;
1465
1496
  }[];
1497
+ }>;
1498
+ createFinancialEntry(financial_entry: {
1499
+ date: string;
1500
+ journal_id: string;
1501
+ currency: string;
1502
+ currency_exchange_rate?: number | undefined;
1503
+ reference?: string | undefined;
1504
+ number?: string | undefined;
1505
+ items: {
1506
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1507
+ account: string;
1508
+ amount: number;
1509
+ description?: string | undefined;
1510
+ }[];
1511
+ pdf?: string | undefined;
1512
+ }, params: {
1513
+ financial_counterpart_account?: string | undefined;
1514
+ } | undefined): import("../types/api").RequestData<{
1515
+ date: string;
1516
+ journal_id: string;
1517
+ currency: string;
1518
+ currency_exchange_rate?: number | undefined;
1519
+ reference?: string | undefined;
1466
1520
  id: string;
1467
1521
  number: string;
1522
+ items: {
1523
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1524
+ account: string;
1525
+ amount: number;
1526
+ description?: string | undefined;
1527
+ counterpart_account: string;
1528
+ }[];
1529
+ }[]>;
1530
+ createJournalEntry(journal_entry: {
1531
+ reference?: string | undefined;
1532
+ due_date?: string | undefined;
1533
+ journal_id: string;
1534
+ name: string;
1535
+ date: string;
1536
+ items: {
1537
+ account_number: string;
1538
+ partner_id?: string | undefined;
1539
+ description?: string | undefined;
1540
+ debit: number;
1541
+ credit: number;
1542
+ currency: string;
1543
+ currency_exchange_rate?: number | undefined;
1544
+ analytic_distribution?: {
1545
+ analytic_plan: string;
1546
+ analytic_accounts: {
1547
+ analytic_account: string;
1548
+ percentage: number;
1549
+ }[];
1550
+ }[] | undefined;
1551
+ pdf?: string | undefined;
1552
+ }[];
1553
+ }): import("../types/api").RequestData<{
1554
+ reference?: string | undefined;
1555
+ due_date?: string | undefined;
1556
+ journal_id: string;
1557
+ name?: string | undefined;
1558
+ journal_name: string;
1559
+ date?: string | undefined;
1560
+ posted?: boolean | undefined;
1561
+ id: string;
1562
+ items?: {
1563
+ account_number: string;
1564
+ partner_id?: string | undefined;
1565
+ description?: string | undefined;
1566
+ debit: number;
1567
+ credit: number;
1568
+ currency: string;
1569
+ currency_exchange_rate?: number | undefined;
1570
+ id: string;
1571
+ partner_name?: string | undefined;
1572
+ account_name: string;
1573
+ matching_numbers?: string[] | undefined;
1574
+ analytic_distribution?: {
1575
+ analytic_plan: string;
1576
+ analytic_accounts: {
1577
+ analytic_account: string;
1578
+ percentage: number;
1579
+ }[];
1580
+ }[] | undefined;
1581
+ }[] | undefined;
1468
1582
  }>;
1469
1583
  }>;
1470
1584
  invoicing: import("../types/api").ApiFor<{
1471
1585
  getInvoices(params: {
1472
1586
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
1587
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
1473
1588
  date_from?: string | undefined;
1474
1589
  date_to?: string | undefined;
1475
1590
  page?: number | undefined;
@@ -1488,12 +1603,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
1488
1603
  untaxed_amount: number;
1489
1604
  total: number;
1490
1605
  lines?: {
1491
- description: string;
1606
+ description?: string | undefined;
1492
1607
  unit_price: number;
1493
1608
  quantity: number;
1609
+ discount_amount?: number | undefined;
1494
1610
  tax_amount: number;
1495
- total: number;
1496
1611
  untaxed_amount: number;
1612
+ total: number;
1497
1613
  tax_rate?: number | undefined;
1498
1614
  account_number?: string | undefined;
1499
1615
  tax_id?: string | undefined;
@@ -1530,12 +1646,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
1530
1646
  untaxed_amount: number;
1531
1647
  total: number;
1532
1648
  lines?: {
1533
- description: string;
1649
+ description?: string | undefined;
1534
1650
  unit_price: number;
1535
1651
  quantity: number;
1652
+ discount_amount?: number | undefined;
1536
1653
  tax_amount: number;
1537
- total: number;
1538
1654
  untaxed_amount: number;
1655
+ total: number;
1539
1656
  tax_rate?: number | undefined;
1540
1657
  account_number?: string | undefined;
1541
1658
  tax_id?: string | undefined;
@@ -1565,12 +1682,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
1565
1682
  untaxed_amount: number;
1566
1683
  total: number;
1567
1684
  lines?: {
1568
- description: string;
1685
+ description?: string | undefined;
1569
1686
  unit_price: number;
1570
1687
  quantity: number;
1688
+ discount_amount?: number | undefined;
1571
1689
  tax_amount: number;
1572
- total: number;
1573
1690
  untaxed_amount: number;
1691
+ total: number;
1574
1692
  tax_rate?: number | undefined;
1575
1693
  account_number?: string | undefined;
1576
1694
  tax_id?: string | undefined;
@@ -1604,12 +1722,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
1604
1722
  untaxed_amount: number;
1605
1723
  total: number;
1606
1724
  lines?: {
1607
- description: string;
1725
+ description?: string | undefined;
1608
1726
  unit_price: number;
1609
1727
  quantity: number;
1728
+ discount_amount?: number | undefined;
1610
1729
  tax_amount: number;
1611
- total: number;
1612
1730
  untaxed_amount: number;
1731
+ total: number;
1613
1732
  tax_rate?: number | undefined;
1614
1733
  account_number?: string | undefined;
1615
1734
  tax_id?: string | undefined;
@@ -1694,7 +1813,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
1694
1813
  rate: number;
1695
1814
  type: "unknown" | "sale" | "purchase" | "both";
1696
1815
  code?: string | undefined;
1697
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
1816
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
1698
1817
  }[]>;
1699
1818
  getTaxById(taxId: string): import("../types/api").RequestData<{
1700
1819
  id: string;
@@ -1706,7 +1825,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
1706
1825
  rate: number;
1707
1826
  type: "unknown" | "sale" | "purchase" | "both";
1708
1827
  code?: string | undefined;
1709
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
1828
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
1710
1829
  }>;
1711
1830
  getOpportunities(): import("../types/api").RequestData<{
1712
1831
  id: string;
@@ -1761,7 +1880,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
1761
1880
  } | undefined;
1762
1881
  }>;
1763
1882
  getContacts(params?: {
1764
- contact_type?: "all" | "prospect" | "customer" | "supplier" | undefined;
1883
+ contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
1765
1884
  page?: number | undefined;
1766
1885
  size?: number | undefined;
1767
1886
  } | undefined): import("../types/api").RequestData<{
@@ -2217,7 +2336,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
2217
2336
  last_updated_on?: string | undefined;
2218
2337
  confirmed_on?: string | undefined;
2219
2338
  cancelled_on?: string | undefined;
2220
- status: "draft" | "cancelled" | "confirmed";
2339
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
2221
2340
  discount_amount: number;
2222
2341
  untaxed_amount_without_fees: number;
2223
2342
  tax_amount_without_fees: number;
@@ -2364,7 +2483,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
2364
2483
  last_updated_on?: string | undefined;
2365
2484
  confirmed_on?: string | undefined;
2366
2485
  cancelled_on?: string | undefined;
2367
- status: "draft" | "cancelled" | "confirmed";
2486
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
2368
2487
  discount_amount: number;
2369
2488
  untaxed_amount_without_fees: number;
2370
2489
  tax_amount_without_fees: number;
@@ -2470,7 +2589,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
2470
2589
  last_updated_on?: string | undefined;
2471
2590
  confirmed_on?: string | undefined;
2472
2591
  cancelled_on?: string | undefined;
2473
- status: "draft" | "cancelled" | "confirmed";
2592
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
2474
2593
  discount_amount: number;
2475
2594
  untaxed_amount_without_fees: number;
2476
2595
  tax_amount_without_fees: number;
@@ -2581,7 +2700,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
2581
2700
  name: string;
2582
2701
  title: string;
2583
2702
  type: string;
2584
- Optional?: boolean | undefined;
2703
+ optional?: boolean | undefined;
2585
2704
  }[];
2586
2705
  search_column?: string | undefined;
2587
2706
  };
@@ -2978,6 +3097,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
2978
3097
  country?: string | undefined;
2979
3098
  }[] | undefined;
2980
3099
  account_number?: string | undefined;
3100
+ company_number?: string | undefined;
2981
3101
  id?: string | undefined;
2982
3102
  }[]>;
2983
3103
  createClient(client: {
@@ -3048,6 +3168,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3048
3168
  country?: string | undefined;
3049
3169
  }[] | undefined;
3050
3170
  account_number?: string | undefined;
3171
+ company_number?: string | undefined;
3051
3172
  id?: string | undefined;
3052
3173
  }>;
3053
3174
  getClient(clientId: string): import("../types/api").RequestData<{
@@ -3083,6 +3204,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3083
3204
  country?: string | undefined;
3084
3205
  }[] | undefined;
3085
3206
  account_number?: string | undefined;
3207
+ company_number?: string | undefined;
3086
3208
  id?: string | undefined;
3087
3209
  }>;
3088
3210
  updateClient(clientId: string, client: {
@@ -3150,6 +3272,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3150
3272
  country?: string | undefined;
3151
3273
  }[] | undefined;
3152
3274
  account_number?: string | undefined;
3275
+ company_number?: string | undefined;
3153
3276
  id?: string | undefined;
3154
3277
  }>;
3155
3278
  getSuppliers(): import("../types/api").RequestData<{
@@ -3185,6 +3308,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3185
3308
  country?: string | undefined;
3186
3309
  }[] | undefined;
3187
3310
  account_number?: string | undefined;
3311
+ company_number?: string | undefined;
3188
3312
  id?: string | undefined;
3189
3313
  }[]>;
3190
3314
  createSupplier(supplier: {
@@ -3255,6 +3379,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3255
3379
  country?: string | undefined;
3256
3380
  }[] | undefined;
3257
3381
  account_number?: string | undefined;
3382
+ company_number?: string | undefined;
3258
3383
  id?: string | undefined;
3259
3384
  }>;
3260
3385
  getSupplier(supplierId: string): import("../types/api").RequestData<{
@@ -3290,6 +3415,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3290
3415
  country?: string | undefined;
3291
3416
  }[] | undefined;
3292
3417
  account_number?: string | undefined;
3418
+ company_number?: string | undefined;
3293
3419
  id?: string | undefined;
3294
3420
  }>;
3295
3421
  updateSupplier(supplierId: string, supplier: {
@@ -3357,6 +3483,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3357
3483
  country?: string | undefined;
3358
3484
  }[] | undefined;
3359
3485
  account_number?: string | undefined;
3486
+ company_number?: string | undefined;
3360
3487
  id?: string | undefined;
3361
3488
  }>;
3362
3489
  createInvoice(invoice: {
@@ -3421,7 +3548,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3421
3548
  amount: number;
3422
3549
  dedicated_amount?: number | undefined;
3423
3550
  payment_date: string;
3424
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
3551
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
3425
3552
  journal_id: string;
3426
3553
  journal_name: string;
3427
3554
  reconciled?: boolean | undefined;
@@ -3512,7 +3639,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3512
3639
  amount: number;
3513
3640
  dedicated_amount?: number | undefined;
3514
3641
  payment_date: string;
3515
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
3642
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
3516
3643
  journal_id: string;
3517
3644
  journal_name: string;
3518
3645
  reconciled?: boolean | undefined;
@@ -3563,7 +3690,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3563
3690
  amount: number;
3564
3691
  dedicated_amount?: number | undefined;
3565
3692
  payment_date: string;
3566
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
3693
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
3567
3694
  journal_id: string;
3568
3695
  journal_name: string;
3569
3696
  reconciled?: boolean | undefined;
@@ -3610,7 +3737,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3610
3737
  amount: number;
3611
3738
  dedicated_amount?: number | undefined;
3612
3739
  payment_date: string;
3613
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
3740
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
3614
3741
  journal_id: string;
3615
3742
  journal_name: string;
3616
3743
  reconciled?: boolean | undefined;
@@ -3657,7 +3784,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3657
3784
  amount: number;
3658
3785
  dedicated_amount?: number | undefined;
3659
3786
  payment_date: string;
3660
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
3787
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
3661
3788
  journal_id: string;
3662
3789
  journal_name: string;
3663
3790
  reconciled?: boolean | undefined;
@@ -3708,7 +3835,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3708
3835
  amount: number;
3709
3836
  dedicated_amount?: number | undefined;
3710
3837
  payment_date: string;
3711
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
3838
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
3712
3839
  journal_id: string;
3713
3840
  journal_name: string;
3714
3841
  reconciled?: boolean | undefined;
@@ -3922,7 +4049,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3922
4049
  amount: number;
3923
4050
  dedicated_amount?: number | undefined;
3924
4051
  payment_date: string;
3925
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
4052
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
3926
4053
  journal_id: string;
3927
4054
  journal_name: string;
3928
4055
  reconciled?: boolean | undefined;
@@ -3933,13 +4060,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
3933
4060
  id: string;
3934
4061
  code: string;
3935
4062
  name: string;
3936
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
4063
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
3937
4064
  }[]>;
3938
4065
  getVatCodes(): import("../types/api").RequestData<{
3939
4066
  id: string;
3940
4067
  code?: string | undefined;
3941
4068
  label: string;
3942
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
4069
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
3943
4070
  rate: number;
3944
4071
  type: "unknown" | "sale" | "purchase" | "both";
3945
4072
  }[]>;
@@ -4051,12 +4178,32 @@ declare const Syncs: (internalApi: InternalAPI) => {
4051
4178
  reference?: string | undefined;
4052
4179
  account_number?: string | undefined;
4053
4180
  }[]>;
4054
- createFinancialEntry(financial_entry: {
4181
+ getOutstandings(params: {
4182
+ unposted_allowed: "true" | "false";
4183
+ type: "client" | "supplier";
4184
+ }): import("../types/api").RequestData<{
4185
+ id: string;
4186
+ number?: string | undefined;
4187
+ journal_id: string;
4188
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
4189
+ date: string;
4190
+ due_date?: string | undefined;
4191
+ currency: string;
4192
+ currency_exchange_rate: number;
4193
+ amount: number;
4194
+ open_amount: number;
4195
+ partner_id: string;
4196
+ account_number: string;
4197
+ reference?: string | undefined;
4198
+ posted: boolean;
4199
+ }[]>;
4200
+ createFinancialEntryOld(financial_entry: {
4055
4201
  date: string;
4056
4202
  journal_id: string;
4057
4203
  currency: string;
4058
4204
  currency_exchange_rate?: number | undefined;
4059
4205
  reference?: string | undefined;
4206
+ number?: string | undefined;
4060
4207
  items: {
4061
4208
  type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
4062
4209
  account_number: string;
@@ -4064,14 +4211,17 @@ declare const Syncs: (internalApi: InternalAPI) => {
4064
4211
  amount: number;
4065
4212
  description?: string | undefined;
4066
4213
  }[];
4067
- number?: string | undefined;
4068
4214
  pdf?: string | undefined;
4069
- }): import("../types/api").RequestData<{
4215
+ }, params: {
4216
+ financial_counterpart_account?: string | undefined;
4217
+ } | undefined): import("../types/api").RequestData<{
4070
4218
  date: string;
4071
4219
  journal_id: string;
4072
4220
  currency: string;
4073
4221
  currency_exchange_rate?: number | undefined;
4074
4222
  reference?: string | undefined;
4223
+ id: string;
4224
+ number: string;
4075
4225
  items: {
4076
4226
  type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
4077
4227
  account_number: string;
@@ -4080,13 +4230,97 @@ declare const Syncs: (internalApi: InternalAPI) => {
4080
4230
  description?: string | undefined;
4081
4231
  counterpart_account: string;
4082
4232
  }[];
4233
+ }>;
4234
+ createFinancialEntry(financial_entry: {
4235
+ date: string;
4236
+ journal_id: string;
4237
+ currency: string;
4238
+ currency_exchange_rate?: number | undefined;
4239
+ reference?: string | undefined;
4240
+ number?: string | undefined;
4241
+ items: {
4242
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
4243
+ account: string;
4244
+ amount: number;
4245
+ description?: string | undefined;
4246
+ }[];
4247
+ pdf?: string | undefined;
4248
+ }, params: {
4249
+ financial_counterpart_account?: string | undefined;
4250
+ } | undefined): import("../types/api").RequestData<{
4251
+ date: string;
4252
+ journal_id: string;
4253
+ currency: string;
4254
+ currency_exchange_rate?: number | undefined;
4255
+ reference?: string | undefined;
4083
4256
  id: string;
4084
4257
  number: string;
4258
+ items: {
4259
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
4260
+ account: string;
4261
+ amount: number;
4262
+ description?: string | undefined;
4263
+ counterpart_account: string;
4264
+ }[];
4265
+ }[]>;
4266
+ createJournalEntry(journal_entry: {
4267
+ reference?: string | undefined;
4268
+ due_date?: string | undefined;
4269
+ journal_id: string;
4270
+ name: string;
4271
+ date: string;
4272
+ items: {
4273
+ account_number: string;
4274
+ partner_id?: string | undefined;
4275
+ description?: string | undefined;
4276
+ debit: number;
4277
+ credit: number;
4278
+ currency: string;
4279
+ currency_exchange_rate?: number | undefined;
4280
+ analytic_distribution?: {
4281
+ analytic_plan: string;
4282
+ analytic_accounts: {
4283
+ analytic_account: string;
4284
+ percentage: number;
4285
+ }[];
4286
+ }[] | undefined;
4287
+ pdf?: string | undefined;
4288
+ }[];
4289
+ }): import("../types/api").RequestData<{
4290
+ reference?: string | undefined;
4291
+ due_date?: string | undefined;
4292
+ journal_id: string;
4293
+ name?: string | undefined;
4294
+ journal_name: string;
4295
+ date?: string | undefined;
4296
+ posted?: boolean | undefined;
4297
+ id: string;
4298
+ items?: {
4299
+ account_number: string;
4300
+ partner_id?: string | undefined;
4301
+ description?: string | undefined;
4302
+ debit: number;
4303
+ credit: number;
4304
+ currency: string;
4305
+ currency_exchange_rate?: number | undefined;
4306
+ id: string;
4307
+ partner_name?: string | undefined;
4308
+ account_name: string;
4309
+ matching_numbers?: string[] | undefined;
4310
+ analytic_distribution?: {
4311
+ analytic_plan: string;
4312
+ analytic_accounts: {
4313
+ analytic_account: string;
4314
+ percentage: number;
4315
+ }[];
4316
+ }[] | undefined;
4317
+ }[] | undefined;
4085
4318
  }>;
4086
4319
  }>;
4087
4320
  invoicing: import("../types/api").ApiFor<{
4088
4321
  getInvoices(params: {
4089
4322
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
4323
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
4090
4324
  date_from?: string | undefined;
4091
4325
  date_to?: string | undefined;
4092
4326
  page?: number | undefined;
@@ -4105,12 +4339,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
4105
4339
  untaxed_amount: number;
4106
4340
  total: number;
4107
4341
  lines?: {
4108
- description: string;
4342
+ description?: string | undefined;
4109
4343
  unit_price: number;
4110
4344
  quantity: number;
4345
+ discount_amount?: number | undefined;
4111
4346
  tax_amount: number;
4112
- total: number;
4113
4347
  untaxed_amount: number;
4348
+ total: number;
4114
4349
  tax_rate?: number | undefined;
4115
4350
  account_number?: string | undefined;
4116
4351
  tax_id?: string | undefined;
@@ -4147,12 +4382,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
4147
4382
  untaxed_amount: number;
4148
4383
  total: number;
4149
4384
  lines?: {
4150
- description: string;
4385
+ description?: string | undefined;
4151
4386
  unit_price: number;
4152
4387
  quantity: number;
4388
+ discount_amount?: number | undefined;
4153
4389
  tax_amount: number;
4154
- total: number;
4155
4390
  untaxed_amount: number;
4391
+ total: number;
4156
4392
  tax_rate?: number | undefined;
4157
4393
  account_number?: string | undefined;
4158
4394
  tax_id?: string | undefined;
@@ -4182,12 +4418,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
4182
4418
  untaxed_amount: number;
4183
4419
  total: number;
4184
4420
  lines?: {
4185
- description: string;
4421
+ description?: string | undefined;
4186
4422
  unit_price: number;
4187
4423
  quantity: number;
4424
+ discount_amount?: number | undefined;
4188
4425
  tax_amount: number;
4189
- total: number;
4190
4426
  untaxed_amount: number;
4427
+ total: number;
4191
4428
  tax_rate?: number | undefined;
4192
4429
  account_number?: string | undefined;
4193
4430
  tax_id?: string | undefined;
@@ -4221,12 +4458,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
4221
4458
  untaxed_amount: number;
4222
4459
  total: number;
4223
4460
  lines?: {
4224
- description: string;
4461
+ description?: string | undefined;
4225
4462
  unit_price: number;
4226
4463
  quantity: number;
4464
+ discount_amount?: number | undefined;
4227
4465
  tax_amount: number;
4228
- total: number;
4229
4466
  untaxed_amount: number;
4467
+ total: number;
4230
4468
  tax_rate?: number | undefined;
4231
4469
  account_number?: string | undefined;
4232
4470
  tax_id?: string | undefined;
@@ -4311,7 +4549,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
4311
4549
  rate: number;
4312
4550
  type: "unknown" | "sale" | "purchase" | "both";
4313
4551
  code?: string | undefined;
4314
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
4552
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
4315
4553
  }[]>;
4316
4554
  getTaxById(taxId: string): import("../types/api").RequestData<{
4317
4555
  id: string;
@@ -4323,7 +4561,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
4323
4561
  rate: number;
4324
4562
  type: "unknown" | "sale" | "purchase" | "both";
4325
4563
  code?: string | undefined;
4326
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
4564
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
4327
4565
  }>;
4328
4566
  getOpportunities(): import("../types/api").RequestData<{
4329
4567
  id: string;
@@ -4378,7 +4616,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
4378
4616
  } | undefined;
4379
4617
  }>;
4380
4618
  getContacts(params?: {
4381
- contact_type?: "all" | "prospect" | "customer" | "supplier" | undefined;
4619
+ contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
4382
4620
  page?: number | undefined;
4383
4621
  size?: number | undefined;
4384
4622
  } | undefined): import("../types/api").RequestData<{
@@ -4834,7 +5072,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
4834
5072
  last_updated_on?: string | undefined;
4835
5073
  confirmed_on?: string | undefined;
4836
5074
  cancelled_on?: string | undefined;
4837
- status: "draft" | "cancelled" | "confirmed";
5075
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
4838
5076
  discount_amount: number;
4839
5077
  untaxed_amount_without_fees: number;
4840
5078
  tax_amount_without_fees: number;
@@ -4981,7 +5219,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
4981
5219
  last_updated_on?: string | undefined;
4982
5220
  confirmed_on?: string | undefined;
4983
5221
  cancelled_on?: string | undefined;
4984
- status: "draft" | "cancelled" | "confirmed";
5222
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
4985
5223
  discount_amount: number;
4986
5224
  untaxed_amount_without_fees: number;
4987
5225
  tax_amount_without_fees: number;
@@ -5087,7 +5325,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
5087
5325
  last_updated_on?: string | undefined;
5088
5326
  confirmed_on?: string | undefined;
5089
5327
  cancelled_on?: string | undefined;
5090
- status: "draft" | "cancelled" | "confirmed";
5328
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
5091
5329
  discount_amount: number;
5092
5330
  untaxed_amount_without_fees: number;
5093
5331
  tax_amount_without_fees: number;
@@ -5198,7 +5436,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
5198
5436
  name: string;
5199
5437
  title: string;
5200
5438
  type: string;
5201
- Optional?: boolean | undefined;
5439
+ optional?: boolean | undefined;
5202
5440
  }[];
5203
5441
  search_column?: string | undefined;
5204
5442
  };
@@ -5599,6 +5837,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
5599
5837
  country?: string | undefined;
5600
5838
  }[] | undefined;
5601
5839
  account_number?: string | undefined;
5840
+ company_number?: string | undefined;
5602
5841
  id?: string | undefined;
5603
5842
  }[]>;
5604
5843
  createClient(client: {
@@ -5669,6 +5908,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
5669
5908
  country?: string | undefined;
5670
5909
  }[] | undefined;
5671
5910
  account_number?: string | undefined;
5911
+ company_number?: string | undefined;
5672
5912
  id?: string | undefined;
5673
5913
  }>;
5674
5914
  getClient(clientId: string): import("../types/api").RequestData<{
@@ -5704,6 +5944,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
5704
5944
  country?: string | undefined;
5705
5945
  }[] | undefined;
5706
5946
  account_number?: string | undefined;
5947
+ company_number?: string | undefined;
5707
5948
  id?: string | undefined;
5708
5949
  }>;
5709
5950
  updateClient(clientId: string, client: {
@@ -5771,6 +6012,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
5771
6012
  country?: string | undefined;
5772
6013
  }[] | undefined;
5773
6014
  account_number?: string | undefined;
6015
+ company_number?: string | undefined;
5774
6016
  id?: string | undefined;
5775
6017
  }>;
5776
6018
  getSuppliers(): import("../types/api").RequestData<{
@@ -5806,6 +6048,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
5806
6048
  country?: string | undefined;
5807
6049
  }[] | undefined;
5808
6050
  account_number?: string | undefined;
6051
+ company_number?: string | undefined;
5809
6052
  id?: string | undefined;
5810
6053
  }[]>;
5811
6054
  createSupplier(supplier: {
@@ -5876,6 +6119,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
5876
6119
  country?: string | undefined;
5877
6120
  }[] | undefined;
5878
6121
  account_number?: string | undefined;
6122
+ company_number?: string | undefined;
5879
6123
  id?: string | undefined;
5880
6124
  }>;
5881
6125
  getSupplier(supplierId: string): import("../types/api").RequestData<{
@@ -5911,6 +6155,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
5911
6155
  country?: string | undefined;
5912
6156
  }[] | undefined;
5913
6157
  account_number?: string | undefined;
6158
+ company_number?: string | undefined;
5914
6159
  id?: string | undefined;
5915
6160
  }>;
5916
6161
  updateSupplier(supplierId: string, supplier: {
@@ -5978,6 +6223,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
5978
6223
  country?: string | undefined;
5979
6224
  }[] | undefined;
5980
6225
  account_number?: string | undefined;
6226
+ company_number?: string | undefined;
5981
6227
  id?: string | undefined;
5982
6228
  }>;
5983
6229
  createInvoice(invoice: {
@@ -6042,7 +6288,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
6042
6288
  amount: number;
6043
6289
  dedicated_amount?: number | undefined;
6044
6290
  payment_date: string;
6045
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
6291
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
6046
6292
  journal_id: string;
6047
6293
  journal_name: string;
6048
6294
  reconciled?: boolean | undefined;
@@ -6133,7 +6379,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
6133
6379
  amount: number;
6134
6380
  dedicated_amount?: number | undefined;
6135
6381
  payment_date: string;
6136
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
6382
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
6137
6383
  journal_id: string;
6138
6384
  journal_name: string;
6139
6385
  reconciled?: boolean | undefined;
@@ -6184,7 +6430,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
6184
6430
  amount: number;
6185
6431
  dedicated_amount?: number | undefined;
6186
6432
  payment_date: string;
6187
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
6433
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
6188
6434
  journal_id: string;
6189
6435
  journal_name: string;
6190
6436
  reconciled?: boolean | undefined;
@@ -6231,7 +6477,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
6231
6477
  amount: number;
6232
6478
  dedicated_amount?: number | undefined;
6233
6479
  payment_date: string;
6234
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
6480
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
6235
6481
  journal_id: string;
6236
6482
  journal_name: string;
6237
6483
  reconciled?: boolean | undefined;
@@ -6278,7 +6524,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
6278
6524
  amount: number;
6279
6525
  dedicated_amount?: number | undefined;
6280
6526
  payment_date: string;
6281
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
6527
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
6282
6528
  journal_id: string;
6283
6529
  journal_name: string;
6284
6530
  reconciled?: boolean | undefined;
@@ -6329,7 +6575,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
6329
6575
  amount: number;
6330
6576
  dedicated_amount?: number | undefined;
6331
6577
  payment_date: string;
6332
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
6578
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
6333
6579
  journal_id: string;
6334
6580
  journal_name: string;
6335
6581
  reconciled?: boolean | undefined;
@@ -6543,7 +6789,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
6543
6789
  amount: number;
6544
6790
  dedicated_amount?: number | undefined;
6545
6791
  payment_date: string;
6546
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
6792
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
6547
6793
  journal_id: string;
6548
6794
  journal_name: string;
6549
6795
  reconciled?: boolean | undefined;
@@ -6554,13 +6800,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
6554
6800
  id: string;
6555
6801
  code: string;
6556
6802
  name: string;
6557
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
6803
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
6558
6804
  }[]>;
6559
6805
  getVatCodes(): import("../types/api").RequestData<{
6560
6806
  id: string;
6561
6807
  code?: string | undefined;
6562
6808
  label: string;
6563
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
6809
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
6564
6810
  rate: number;
6565
6811
  type: "unknown" | "sale" | "purchase" | "both";
6566
6812
  }[]>;
@@ -6672,12 +6918,32 @@ declare const Syncs: (internalApi: InternalAPI) => {
6672
6918
  reference?: string | undefined;
6673
6919
  account_number?: string | undefined;
6674
6920
  }[]>;
6675
- createFinancialEntry(financial_entry: {
6676
- date: string;
6677
- journal_id: string;
6678
- currency: string;
6679
- currency_exchange_rate?: number | undefined;
6921
+ getOutstandings(params: {
6922
+ unposted_allowed: "true" | "false";
6923
+ type: "client" | "supplier";
6924
+ }): import("../types/api").RequestData<{
6925
+ id: string;
6926
+ number?: string | undefined;
6927
+ journal_id: string;
6928
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
6929
+ date: string;
6930
+ due_date?: string | undefined;
6931
+ currency: string;
6932
+ currency_exchange_rate: number;
6933
+ amount: number;
6934
+ open_amount: number;
6935
+ partner_id: string;
6936
+ account_number: string;
6680
6937
  reference?: string | undefined;
6938
+ posted: boolean;
6939
+ }[]>;
6940
+ createFinancialEntryOld(financial_entry: {
6941
+ date: string;
6942
+ journal_id: string;
6943
+ currency: string;
6944
+ currency_exchange_rate?: number | undefined;
6945
+ reference?: string | undefined;
6946
+ number?: string | undefined;
6681
6947
  items: {
6682
6948
  type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
6683
6949
  account_number: string;
@@ -6685,14 +6951,17 @@ declare const Syncs: (internalApi: InternalAPI) => {
6685
6951
  amount: number;
6686
6952
  description?: string | undefined;
6687
6953
  }[];
6688
- number?: string | undefined;
6689
6954
  pdf?: string | undefined;
6690
- }): import("../types/api").RequestData<{
6955
+ }, params: {
6956
+ financial_counterpart_account?: string | undefined;
6957
+ } | undefined): import("../types/api").RequestData<{
6691
6958
  date: string;
6692
6959
  journal_id: string;
6693
6960
  currency: string;
6694
6961
  currency_exchange_rate?: number | undefined;
6695
6962
  reference?: string | undefined;
6963
+ id: string;
6964
+ number: string;
6696
6965
  items: {
6697
6966
  type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
6698
6967
  account_number: string;
@@ -6701,13 +6970,97 @@ declare const Syncs: (internalApi: InternalAPI) => {
6701
6970
  description?: string | undefined;
6702
6971
  counterpart_account: string;
6703
6972
  }[];
6973
+ }>;
6974
+ createFinancialEntry(financial_entry: {
6975
+ date: string;
6976
+ journal_id: string;
6977
+ currency: string;
6978
+ currency_exchange_rate?: number | undefined;
6979
+ reference?: string | undefined;
6980
+ number?: string | undefined;
6981
+ items: {
6982
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
6983
+ account: string;
6984
+ amount: number;
6985
+ description?: string | undefined;
6986
+ }[];
6987
+ pdf?: string | undefined;
6988
+ }, params: {
6989
+ financial_counterpart_account?: string | undefined;
6990
+ } | undefined): import("../types/api").RequestData<{
6991
+ date: string;
6992
+ journal_id: string;
6993
+ currency: string;
6994
+ currency_exchange_rate?: number | undefined;
6995
+ reference?: string | undefined;
6704
6996
  id: string;
6705
6997
  number: string;
6998
+ items: {
6999
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
7000
+ account: string;
7001
+ amount: number;
7002
+ description?: string | undefined;
7003
+ counterpart_account: string;
7004
+ }[];
7005
+ }[]>;
7006
+ createJournalEntry(journal_entry: {
7007
+ reference?: string | undefined;
7008
+ due_date?: string | undefined;
7009
+ journal_id: string;
7010
+ name: string;
7011
+ date: string;
7012
+ items: {
7013
+ account_number: string;
7014
+ partner_id?: string | undefined;
7015
+ description?: string | undefined;
7016
+ debit: number;
7017
+ credit: number;
7018
+ currency: string;
7019
+ currency_exchange_rate?: number | undefined;
7020
+ analytic_distribution?: {
7021
+ analytic_plan: string;
7022
+ analytic_accounts: {
7023
+ analytic_account: string;
7024
+ percentage: number;
7025
+ }[];
7026
+ }[] | undefined;
7027
+ pdf?: string | undefined;
7028
+ }[];
7029
+ }): import("../types/api").RequestData<{
7030
+ reference?: string | undefined;
7031
+ due_date?: string | undefined;
7032
+ journal_id: string;
7033
+ name?: string | undefined;
7034
+ journal_name: string;
7035
+ date?: string | undefined;
7036
+ posted?: boolean | undefined;
7037
+ id: string;
7038
+ items?: {
7039
+ account_number: string;
7040
+ partner_id?: string | undefined;
7041
+ description?: string | undefined;
7042
+ debit: number;
7043
+ credit: number;
7044
+ currency: string;
7045
+ currency_exchange_rate?: number | undefined;
7046
+ id: string;
7047
+ partner_name?: string | undefined;
7048
+ account_name: string;
7049
+ matching_numbers?: string[] | undefined;
7050
+ analytic_distribution?: {
7051
+ analytic_plan: string;
7052
+ analytic_accounts: {
7053
+ analytic_account: string;
7054
+ percentage: number;
7055
+ }[];
7056
+ }[] | undefined;
7057
+ }[] | undefined;
6706
7058
  }>;
6707
7059
  }>;
6708
7060
  invoicing: import("../types/api").ApiFor<{
6709
7061
  getInvoices(params: {
6710
7062
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
7063
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
6711
7064
  date_from?: string | undefined;
6712
7065
  date_to?: string | undefined;
6713
7066
  page?: number | undefined;
@@ -6726,12 +7079,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
6726
7079
  untaxed_amount: number;
6727
7080
  total: number;
6728
7081
  lines?: {
6729
- description: string;
7082
+ description?: string | undefined;
6730
7083
  unit_price: number;
6731
7084
  quantity: number;
7085
+ discount_amount?: number | undefined;
6732
7086
  tax_amount: number;
6733
- total: number;
6734
7087
  untaxed_amount: number;
7088
+ total: number;
6735
7089
  tax_rate?: number | undefined;
6736
7090
  account_number?: string | undefined;
6737
7091
  tax_id?: string | undefined;
@@ -6768,12 +7122,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
6768
7122
  untaxed_amount: number;
6769
7123
  total: number;
6770
7124
  lines?: {
6771
- description: string;
7125
+ description?: string | undefined;
6772
7126
  unit_price: number;
6773
7127
  quantity: number;
7128
+ discount_amount?: number | undefined;
6774
7129
  tax_amount: number;
6775
- total: number;
6776
7130
  untaxed_amount: number;
7131
+ total: number;
6777
7132
  tax_rate?: number | undefined;
6778
7133
  account_number?: string | undefined;
6779
7134
  tax_id?: string | undefined;
@@ -6803,12 +7158,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
6803
7158
  untaxed_amount: number;
6804
7159
  total: number;
6805
7160
  lines?: {
6806
- description: string;
7161
+ description?: string | undefined;
6807
7162
  unit_price: number;
6808
7163
  quantity: number;
7164
+ discount_amount?: number | undefined;
6809
7165
  tax_amount: number;
6810
- total: number;
6811
7166
  untaxed_amount: number;
7167
+ total: number;
6812
7168
  tax_rate?: number | undefined;
6813
7169
  account_number?: string | undefined;
6814
7170
  tax_id?: string | undefined;
@@ -6842,12 +7198,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
6842
7198
  untaxed_amount: number;
6843
7199
  total: number;
6844
7200
  lines?: {
6845
- description: string;
7201
+ description?: string | undefined;
6846
7202
  unit_price: number;
6847
7203
  quantity: number;
7204
+ discount_amount?: number | undefined;
6848
7205
  tax_amount: number;
6849
- total: number;
6850
7206
  untaxed_amount: number;
7207
+ total: number;
6851
7208
  tax_rate?: number | undefined;
6852
7209
  account_number?: string | undefined;
6853
7210
  tax_id?: string | undefined;
@@ -6932,7 +7289,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
6932
7289
  rate: number;
6933
7290
  type: "unknown" | "sale" | "purchase" | "both";
6934
7291
  code?: string | undefined;
6935
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
7292
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
6936
7293
  }[]>;
6937
7294
  getTaxById(taxId: string): import("../types/api").RequestData<{
6938
7295
  id: string;
@@ -6944,7 +7301,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
6944
7301
  rate: number;
6945
7302
  type: "unknown" | "sale" | "purchase" | "both";
6946
7303
  code?: string | undefined;
6947
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
7304
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
6948
7305
  }>;
6949
7306
  getOpportunities(): import("../types/api").RequestData<{
6950
7307
  id: string;
@@ -6999,7 +7356,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
6999
7356
  } | undefined;
7000
7357
  }>;
7001
7358
  getContacts(params?: {
7002
- contact_type?: "all" | "prospect" | "customer" | "supplier" | undefined;
7359
+ contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
7003
7360
  page?: number | undefined;
7004
7361
  size?: number | undefined;
7005
7362
  } | undefined): import("../types/api").RequestData<{
@@ -7455,7 +7812,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
7455
7812
  last_updated_on?: string | undefined;
7456
7813
  confirmed_on?: string | undefined;
7457
7814
  cancelled_on?: string | undefined;
7458
- status: "draft" | "cancelled" | "confirmed";
7815
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
7459
7816
  discount_amount: number;
7460
7817
  untaxed_amount_without_fees: number;
7461
7818
  tax_amount_without_fees: number;
@@ -7602,7 +7959,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
7602
7959
  last_updated_on?: string | undefined;
7603
7960
  confirmed_on?: string | undefined;
7604
7961
  cancelled_on?: string | undefined;
7605
- status: "draft" | "cancelled" | "confirmed";
7962
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
7606
7963
  discount_amount: number;
7607
7964
  untaxed_amount_without_fees: number;
7608
7965
  tax_amount_without_fees: number;
@@ -7708,7 +8065,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
7708
8065
  last_updated_on?: string | undefined;
7709
8066
  confirmed_on?: string | undefined;
7710
8067
  cancelled_on?: string | undefined;
7711
- status: "draft" | "cancelled" | "confirmed";
8068
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
7712
8069
  discount_amount: number;
7713
8070
  untaxed_amount_without_fees: number;
7714
8071
  tax_amount_without_fees: number;
@@ -7819,7 +8176,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
7819
8176
  name: string;
7820
8177
  title: string;
7821
8178
  type: string;
7822
- Optional?: boolean | undefined;
8179
+ optional?: boolean | undefined;
7823
8180
  }[];
7824
8181
  search_column?: string | undefined;
7825
8182
  };
@@ -8220,6 +8577,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8220
8577
  country?: string | undefined;
8221
8578
  }[] | undefined;
8222
8579
  account_number?: string | undefined;
8580
+ company_number?: string | undefined;
8223
8581
  id?: string | undefined;
8224
8582
  }[]>;
8225
8583
  createClient(client: {
@@ -8290,6 +8648,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8290
8648
  country?: string | undefined;
8291
8649
  }[] | undefined;
8292
8650
  account_number?: string | undefined;
8651
+ company_number?: string | undefined;
8293
8652
  id?: string | undefined;
8294
8653
  }>;
8295
8654
  getClient(clientId: string): import("../types/api").RequestData<{
@@ -8325,6 +8684,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8325
8684
  country?: string | undefined;
8326
8685
  }[] | undefined;
8327
8686
  account_number?: string | undefined;
8687
+ company_number?: string | undefined;
8328
8688
  id?: string | undefined;
8329
8689
  }>;
8330
8690
  updateClient(clientId: string, client: {
@@ -8392,6 +8752,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8392
8752
  country?: string | undefined;
8393
8753
  }[] | undefined;
8394
8754
  account_number?: string | undefined;
8755
+ company_number?: string | undefined;
8395
8756
  id?: string | undefined;
8396
8757
  }>;
8397
8758
  getSuppliers(): import("../types/api").RequestData<{
@@ -8427,6 +8788,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8427
8788
  country?: string | undefined;
8428
8789
  }[] | undefined;
8429
8790
  account_number?: string | undefined;
8791
+ company_number?: string | undefined;
8430
8792
  id?: string | undefined;
8431
8793
  }[]>;
8432
8794
  createSupplier(supplier: {
@@ -8497,6 +8859,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8497
8859
  country?: string | undefined;
8498
8860
  }[] | undefined;
8499
8861
  account_number?: string | undefined;
8862
+ company_number?: string | undefined;
8500
8863
  id?: string | undefined;
8501
8864
  }>;
8502
8865
  getSupplier(supplierId: string): import("../types/api").RequestData<{
@@ -8532,6 +8895,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8532
8895
  country?: string | undefined;
8533
8896
  }[] | undefined;
8534
8897
  account_number?: string | undefined;
8898
+ company_number?: string | undefined;
8535
8899
  id?: string | undefined;
8536
8900
  }>;
8537
8901
  updateSupplier(supplierId: string, supplier: {
@@ -8599,6 +8963,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8599
8963
  country?: string | undefined;
8600
8964
  }[] | undefined;
8601
8965
  account_number?: string | undefined;
8966
+ company_number?: string | undefined;
8602
8967
  id?: string | undefined;
8603
8968
  }>;
8604
8969
  createInvoice(invoice: {
@@ -8663,7 +9028,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8663
9028
  amount: number;
8664
9029
  dedicated_amount?: number | undefined;
8665
9030
  payment_date: string;
8666
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
9031
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
8667
9032
  journal_id: string;
8668
9033
  journal_name: string;
8669
9034
  reconciled?: boolean | undefined;
@@ -8754,7 +9119,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8754
9119
  amount: number;
8755
9120
  dedicated_amount?: number | undefined;
8756
9121
  payment_date: string;
8757
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
9122
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
8758
9123
  journal_id: string;
8759
9124
  journal_name: string;
8760
9125
  reconciled?: boolean | undefined;
@@ -8805,7 +9170,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8805
9170
  amount: number;
8806
9171
  dedicated_amount?: number | undefined;
8807
9172
  payment_date: string;
8808
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
9173
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
8809
9174
  journal_id: string;
8810
9175
  journal_name: string;
8811
9176
  reconciled?: boolean | undefined;
@@ -8852,7 +9217,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8852
9217
  amount: number;
8853
9218
  dedicated_amount?: number | undefined;
8854
9219
  payment_date: string;
8855
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
9220
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
8856
9221
  journal_id: string;
8857
9222
  journal_name: string;
8858
9223
  reconciled?: boolean | undefined;
@@ -8899,7 +9264,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8899
9264
  amount: number;
8900
9265
  dedicated_amount?: number | undefined;
8901
9266
  payment_date: string;
8902
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
9267
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
8903
9268
  journal_id: string;
8904
9269
  journal_name: string;
8905
9270
  reconciled?: boolean | undefined;
@@ -8950,7 +9315,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8950
9315
  amount: number;
8951
9316
  dedicated_amount?: number | undefined;
8952
9317
  payment_date: string;
8953
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
9318
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
8954
9319
  journal_id: string;
8955
9320
  journal_name: string;
8956
9321
  reconciled?: boolean | undefined;
@@ -9164,7 +9529,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
9164
9529
  amount: number;
9165
9530
  dedicated_amount?: number | undefined;
9166
9531
  payment_date: string;
9167
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
9532
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
9168
9533
  journal_id: string;
9169
9534
  journal_name: string;
9170
9535
  reconciled?: boolean | undefined;
@@ -9175,13 +9540,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
9175
9540
  id: string;
9176
9541
  code: string;
9177
9542
  name: string;
9178
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
9543
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
9179
9544
  }[]>;
9180
9545
  getVatCodes(): import("../types/api").RequestData<{
9181
9546
  id: string;
9182
9547
  code?: string | undefined;
9183
9548
  label: string;
9184
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
9549
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
9185
9550
  rate: number;
9186
9551
  type: "unknown" | "sale" | "purchase" | "both";
9187
9552
  }[]>;
@@ -9293,12 +9658,32 @@ declare const Syncs: (internalApi: InternalAPI) => {
9293
9658
  reference?: string | undefined;
9294
9659
  account_number?: string | undefined;
9295
9660
  }[]>;
9296
- createFinancialEntry(financial_entry: {
9661
+ getOutstandings(params: {
9662
+ unposted_allowed: "true" | "false";
9663
+ type: "client" | "supplier";
9664
+ }): import("../types/api").RequestData<{
9665
+ id: string;
9666
+ number?: string | undefined;
9667
+ journal_id: string;
9668
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
9669
+ date: string;
9670
+ due_date?: string | undefined;
9671
+ currency: string;
9672
+ currency_exchange_rate: number;
9673
+ amount: number;
9674
+ open_amount: number;
9675
+ partner_id: string;
9676
+ account_number: string;
9677
+ reference?: string | undefined;
9678
+ posted: boolean;
9679
+ }[]>;
9680
+ createFinancialEntryOld(financial_entry: {
9297
9681
  date: string;
9298
9682
  journal_id: string;
9299
9683
  currency: string;
9300
9684
  currency_exchange_rate?: number | undefined;
9301
9685
  reference?: string | undefined;
9686
+ number?: string | undefined;
9302
9687
  items: {
9303
9688
  type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
9304
9689
  account_number: string;
@@ -9306,14 +9691,17 @@ declare const Syncs: (internalApi: InternalAPI) => {
9306
9691
  amount: number;
9307
9692
  description?: string | undefined;
9308
9693
  }[];
9309
- number?: string | undefined;
9310
9694
  pdf?: string | undefined;
9311
- }): import("../types/api").RequestData<{
9695
+ }, params: {
9696
+ financial_counterpart_account?: string | undefined;
9697
+ } | undefined): import("../types/api").RequestData<{
9312
9698
  date: string;
9313
9699
  journal_id: string;
9314
9700
  currency: string;
9315
9701
  currency_exchange_rate?: number | undefined;
9316
9702
  reference?: string | undefined;
9703
+ id: string;
9704
+ number: string;
9317
9705
  items: {
9318
9706
  type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
9319
9707
  account_number: string;
@@ -9322,13 +9710,97 @@ declare const Syncs: (internalApi: InternalAPI) => {
9322
9710
  description?: string | undefined;
9323
9711
  counterpart_account: string;
9324
9712
  }[];
9713
+ }>;
9714
+ createFinancialEntry(financial_entry: {
9715
+ date: string;
9716
+ journal_id: string;
9717
+ currency: string;
9718
+ currency_exchange_rate?: number | undefined;
9719
+ reference?: string | undefined;
9720
+ number?: string | undefined;
9721
+ items: {
9722
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
9723
+ account: string;
9724
+ amount: number;
9725
+ description?: string | undefined;
9726
+ }[];
9727
+ pdf?: string | undefined;
9728
+ }, params: {
9729
+ financial_counterpart_account?: string | undefined;
9730
+ } | undefined): import("../types/api").RequestData<{
9731
+ date: string;
9732
+ journal_id: string;
9733
+ currency: string;
9734
+ currency_exchange_rate?: number | undefined;
9735
+ reference?: string | undefined;
9325
9736
  id: string;
9326
9737
  number: string;
9738
+ items: {
9739
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
9740
+ account: string;
9741
+ amount: number;
9742
+ description?: string | undefined;
9743
+ counterpart_account: string;
9744
+ }[];
9745
+ }[]>;
9746
+ createJournalEntry(journal_entry: {
9747
+ reference?: string | undefined;
9748
+ due_date?: string | undefined;
9749
+ journal_id: string;
9750
+ name: string;
9751
+ date: string;
9752
+ items: {
9753
+ account_number: string;
9754
+ partner_id?: string | undefined;
9755
+ description?: string | undefined;
9756
+ debit: number;
9757
+ credit: number;
9758
+ currency: string;
9759
+ currency_exchange_rate?: number | undefined;
9760
+ analytic_distribution?: {
9761
+ analytic_plan: string;
9762
+ analytic_accounts: {
9763
+ analytic_account: string;
9764
+ percentage: number;
9765
+ }[];
9766
+ }[] | undefined;
9767
+ pdf?: string | undefined;
9768
+ }[];
9769
+ }): import("../types/api").RequestData<{
9770
+ reference?: string | undefined;
9771
+ due_date?: string | undefined;
9772
+ journal_id: string;
9773
+ name?: string | undefined;
9774
+ journal_name: string;
9775
+ date?: string | undefined;
9776
+ posted?: boolean | undefined;
9777
+ id: string;
9778
+ items?: {
9779
+ account_number: string;
9780
+ partner_id?: string | undefined;
9781
+ description?: string | undefined;
9782
+ debit: number;
9783
+ credit: number;
9784
+ currency: string;
9785
+ currency_exchange_rate?: number | undefined;
9786
+ id: string;
9787
+ partner_name?: string | undefined;
9788
+ account_name: string;
9789
+ matching_numbers?: string[] | undefined;
9790
+ analytic_distribution?: {
9791
+ analytic_plan: string;
9792
+ analytic_accounts: {
9793
+ analytic_account: string;
9794
+ percentage: number;
9795
+ }[];
9796
+ }[] | undefined;
9797
+ }[] | undefined;
9327
9798
  }>;
9328
9799
  }>;
9329
9800
  invoicing: import("../types/api").ApiFor<{
9330
9801
  getInvoices(params: {
9331
9802
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
9803
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
9332
9804
  date_from?: string | undefined;
9333
9805
  date_to?: string | undefined;
9334
9806
  page?: number | undefined;
@@ -9347,12 +9819,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
9347
9819
  untaxed_amount: number;
9348
9820
  total: number;
9349
9821
  lines?: {
9350
- description: string;
9822
+ description?: string | undefined;
9351
9823
  unit_price: number;
9352
9824
  quantity: number;
9825
+ discount_amount?: number | undefined;
9353
9826
  tax_amount: number;
9354
- total: number;
9355
9827
  untaxed_amount: number;
9828
+ total: number;
9356
9829
  tax_rate?: number | undefined;
9357
9830
  account_number?: string | undefined;
9358
9831
  tax_id?: string | undefined;
@@ -9389,12 +9862,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
9389
9862
  untaxed_amount: number;
9390
9863
  total: number;
9391
9864
  lines?: {
9392
- description: string;
9865
+ description?: string | undefined;
9393
9866
  unit_price: number;
9394
9867
  quantity: number;
9868
+ discount_amount?: number | undefined;
9395
9869
  tax_amount: number;
9396
- total: number;
9397
9870
  untaxed_amount: number;
9871
+ total: number;
9398
9872
  tax_rate?: number | undefined;
9399
9873
  account_number?: string | undefined;
9400
9874
  tax_id?: string | undefined;
@@ -9424,12 +9898,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
9424
9898
  untaxed_amount: number;
9425
9899
  total: number;
9426
9900
  lines?: {
9427
- description: string;
9901
+ description?: string | undefined;
9428
9902
  unit_price: number;
9429
9903
  quantity: number;
9904
+ discount_amount?: number | undefined;
9430
9905
  tax_amount: number;
9431
- total: number;
9432
9906
  untaxed_amount: number;
9907
+ total: number;
9433
9908
  tax_rate?: number | undefined;
9434
9909
  account_number?: string | undefined;
9435
9910
  tax_id?: string | undefined;
@@ -9463,12 +9938,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
9463
9938
  untaxed_amount: number;
9464
9939
  total: number;
9465
9940
  lines?: {
9466
- description: string;
9941
+ description?: string | undefined;
9467
9942
  unit_price: number;
9468
9943
  quantity: number;
9944
+ discount_amount?: number | undefined;
9469
9945
  tax_amount: number;
9470
- total: number;
9471
9946
  untaxed_amount: number;
9947
+ total: number;
9472
9948
  tax_rate?: number | undefined;
9473
9949
  account_number?: string | undefined;
9474
9950
  tax_id?: string | undefined;
@@ -9553,7 +10029,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
9553
10029
  rate: number;
9554
10030
  type: "unknown" | "sale" | "purchase" | "both";
9555
10031
  code?: string | undefined;
9556
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
10032
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
9557
10033
  }[]>;
9558
10034
  getTaxById(taxId: string): import("../types/api").RequestData<{
9559
10035
  id: string;
@@ -9565,7 +10041,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
9565
10041
  rate: number;
9566
10042
  type: "unknown" | "sale" | "purchase" | "both";
9567
10043
  code?: string | undefined;
9568
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
10044
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
9569
10045
  }>;
9570
10046
  getOpportunities(): import("../types/api").RequestData<{
9571
10047
  id: string;
@@ -9620,7 +10096,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
9620
10096
  } | undefined;
9621
10097
  }>;
9622
10098
  getContacts(params?: {
9623
- contact_type?: "all" | "prospect" | "customer" | "supplier" | undefined;
10099
+ contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
9624
10100
  page?: number | undefined;
9625
10101
  size?: number | undefined;
9626
10102
  } | undefined): import("../types/api").RequestData<{
@@ -10076,7 +10552,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
10076
10552
  last_updated_on?: string | undefined;
10077
10553
  confirmed_on?: string | undefined;
10078
10554
  cancelled_on?: string | undefined;
10079
- status: "draft" | "cancelled" | "confirmed";
10555
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
10080
10556
  discount_amount: number;
10081
10557
  untaxed_amount_without_fees: number;
10082
10558
  tax_amount_without_fees: number;
@@ -10223,7 +10699,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
10223
10699
  last_updated_on?: string | undefined;
10224
10700
  confirmed_on?: string | undefined;
10225
10701
  cancelled_on?: string | undefined;
10226
- status: "draft" | "cancelled" | "confirmed";
10702
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
10227
10703
  discount_amount: number;
10228
10704
  untaxed_amount_without_fees: number;
10229
10705
  tax_amount_without_fees: number;
@@ -10329,7 +10805,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
10329
10805
  last_updated_on?: string | undefined;
10330
10806
  confirmed_on?: string | undefined;
10331
10807
  cancelled_on?: string | undefined;
10332
- status: "draft" | "cancelled" | "confirmed";
10808
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
10333
10809
  discount_amount: number;
10334
10810
  untaxed_amount_without_fees: number;
10335
10811
  tax_amount_without_fees: number;
@@ -10440,7 +10916,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
10440
10916
  name: string;
10441
10917
  title: string;
10442
10918
  type: string;
10443
- Optional?: boolean | undefined;
10919
+ optional?: boolean | undefined;
10444
10920
  }[];
10445
10921
  search_column?: string | undefined;
10446
10922
  };
@@ -10841,6 +11317,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
10841
11317
  country?: string | undefined;
10842
11318
  }[] | undefined;
10843
11319
  account_number?: string | undefined;
11320
+ company_number?: string | undefined;
10844
11321
  id?: string | undefined;
10845
11322
  }[]>;
10846
11323
  createClient(client: {
@@ -10911,6 +11388,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
10911
11388
  country?: string | undefined;
10912
11389
  }[] | undefined;
10913
11390
  account_number?: string | undefined;
11391
+ company_number?: string | undefined;
10914
11392
  id?: string | undefined;
10915
11393
  }>;
10916
11394
  getClient(clientId: string): import("../types/api").RequestData<{
@@ -10946,6 +11424,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
10946
11424
  country?: string | undefined;
10947
11425
  }[] | undefined;
10948
11426
  account_number?: string | undefined;
11427
+ company_number?: string | undefined;
10949
11428
  id?: string | undefined;
10950
11429
  }>;
10951
11430
  updateClient(clientId: string, client: {
@@ -11013,6 +11492,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
11013
11492
  country?: string | undefined;
11014
11493
  }[] | undefined;
11015
11494
  account_number?: string | undefined;
11495
+ company_number?: string | undefined;
11016
11496
  id?: string | undefined;
11017
11497
  }>;
11018
11498
  getSuppliers(): import("../types/api").RequestData<{
@@ -11048,6 +11528,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
11048
11528
  country?: string | undefined;
11049
11529
  }[] | undefined;
11050
11530
  account_number?: string | undefined;
11531
+ company_number?: string | undefined;
11051
11532
  id?: string | undefined;
11052
11533
  }[]>;
11053
11534
  createSupplier(supplier: {
@@ -11118,6 +11599,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
11118
11599
  country?: string | undefined;
11119
11600
  }[] | undefined;
11120
11601
  account_number?: string | undefined;
11602
+ company_number?: string | undefined;
11121
11603
  id?: string | undefined;
11122
11604
  }>;
11123
11605
  getSupplier(supplierId: string): import("../types/api").RequestData<{
@@ -11153,6 +11635,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
11153
11635
  country?: string | undefined;
11154
11636
  }[] | undefined;
11155
11637
  account_number?: string | undefined;
11638
+ company_number?: string | undefined;
11156
11639
  id?: string | undefined;
11157
11640
  }>;
11158
11641
  updateSupplier(supplierId: string, supplier: {
@@ -11220,6 +11703,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
11220
11703
  country?: string | undefined;
11221
11704
  }[] | undefined;
11222
11705
  account_number?: string | undefined;
11706
+ company_number?: string | undefined;
11223
11707
  id?: string | undefined;
11224
11708
  }>;
11225
11709
  createInvoice(invoice: {
@@ -11284,7 +11768,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
11284
11768
  amount: number;
11285
11769
  dedicated_amount?: number | undefined;
11286
11770
  payment_date: string;
11287
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
11771
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
11288
11772
  journal_id: string;
11289
11773
  journal_name: string;
11290
11774
  reconciled?: boolean | undefined;
@@ -11375,7 +11859,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
11375
11859
  amount: number;
11376
11860
  dedicated_amount?: number | undefined;
11377
11861
  payment_date: string;
11378
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
11862
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
11379
11863
  journal_id: string;
11380
11864
  journal_name: string;
11381
11865
  reconciled?: boolean | undefined;
@@ -11426,7 +11910,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
11426
11910
  amount: number;
11427
11911
  dedicated_amount?: number | undefined;
11428
11912
  payment_date: string;
11429
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
11913
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
11430
11914
  journal_id: string;
11431
11915
  journal_name: string;
11432
11916
  reconciled?: boolean | undefined;
@@ -11473,7 +11957,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
11473
11957
  amount: number;
11474
11958
  dedicated_amount?: number | undefined;
11475
11959
  payment_date: string;
11476
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
11960
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
11477
11961
  journal_id: string;
11478
11962
  journal_name: string;
11479
11963
  reconciled?: boolean | undefined;
@@ -11520,7 +12004,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
11520
12004
  amount: number;
11521
12005
  dedicated_amount?: number | undefined;
11522
12006
  payment_date: string;
11523
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
12007
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
11524
12008
  journal_id: string;
11525
12009
  journal_name: string;
11526
12010
  reconciled?: boolean | undefined;
@@ -11571,7 +12055,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
11571
12055
  amount: number;
11572
12056
  dedicated_amount?: number | undefined;
11573
12057
  payment_date: string;
11574
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
12058
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
11575
12059
  journal_id: string;
11576
12060
  journal_name: string;
11577
12061
  reconciled?: boolean | undefined;
@@ -11785,7 +12269,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
11785
12269
  amount: number;
11786
12270
  dedicated_amount?: number | undefined;
11787
12271
  payment_date: string;
11788
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
12272
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
11789
12273
  journal_id: string;
11790
12274
  journal_name: string;
11791
12275
  reconciled?: boolean | undefined;
@@ -11796,13 +12280,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
11796
12280
  id: string;
11797
12281
  code: string;
11798
12282
  name: string;
11799
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
12283
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
11800
12284
  }[]>;
11801
12285
  getVatCodes(): import("../types/api").RequestData<{
11802
12286
  id: string;
11803
12287
  code?: string | undefined;
11804
12288
  label: string;
11805
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
12289
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
11806
12290
  rate: number;
11807
12291
  type: "unknown" | "sale" | "purchase" | "both";
11808
12292
  }[]>;
@@ -11914,12 +12398,32 @@ declare const Syncs: (internalApi: InternalAPI) => {
11914
12398
  reference?: string | undefined;
11915
12399
  account_number?: string | undefined;
11916
12400
  }[]>;
11917
- createFinancialEntry(financial_entry: {
12401
+ getOutstandings(params: {
12402
+ unposted_allowed: "true" | "false";
12403
+ type: "client" | "supplier";
12404
+ }): import("../types/api").RequestData<{
12405
+ id: string;
12406
+ number?: string | undefined;
12407
+ journal_id: string;
12408
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
12409
+ date: string;
12410
+ due_date?: string | undefined;
12411
+ currency: string;
12412
+ currency_exchange_rate: number;
12413
+ amount: number;
12414
+ open_amount: number;
12415
+ partner_id: string;
12416
+ account_number: string;
12417
+ reference?: string | undefined;
12418
+ posted: boolean;
12419
+ }[]>;
12420
+ createFinancialEntryOld(financial_entry: {
11918
12421
  date: string;
11919
12422
  journal_id: string;
11920
12423
  currency: string;
11921
12424
  currency_exchange_rate?: number | undefined;
11922
12425
  reference?: string | undefined;
12426
+ number?: string | undefined;
11923
12427
  items: {
11924
12428
  type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
11925
12429
  account_number: string;
@@ -11927,14 +12431,17 @@ declare const Syncs: (internalApi: InternalAPI) => {
11927
12431
  amount: number;
11928
12432
  description?: string | undefined;
11929
12433
  }[];
11930
- number?: string | undefined;
11931
12434
  pdf?: string | undefined;
11932
- }): import("../types/api").RequestData<{
12435
+ }, params: {
12436
+ financial_counterpart_account?: string | undefined;
12437
+ } | undefined): import("../types/api").RequestData<{
11933
12438
  date: string;
11934
12439
  journal_id: string;
11935
12440
  currency: string;
11936
12441
  currency_exchange_rate?: number | undefined;
11937
12442
  reference?: string | undefined;
12443
+ id: string;
12444
+ number: string;
11938
12445
  items: {
11939
12446
  type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
11940
12447
  account_number: string;
@@ -11943,13 +12450,97 @@ declare const Syncs: (internalApi: InternalAPI) => {
11943
12450
  description?: string | undefined;
11944
12451
  counterpart_account: string;
11945
12452
  }[];
12453
+ }>;
12454
+ createFinancialEntry(financial_entry: {
12455
+ date: string;
12456
+ journal_id: string;
12457
+ currency: string;
12458
+ currency_exchange_rate?: number | undefined;
12459
+ reference?: string | undefined;
12460
+ number?: string | undefined;
12461
+ items: {
12462
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
12463
+ account: string;
12464
+ amount: number;
12465
+ description?: string | undefined;
12466
+ }[];
12467
+ pdf?: string | undefined;
12468
+ }, params: {
12469
+ financial_counterpart_account?: string | undefined;
12470
+ } | undefined): import("../types/api").RequestData<{
12471
+ date: string;
12472
+ journal_id: string;
12473
+ currency: string;
12474
+ currency_exchange_rate?: number | undefined;
12475
+ reference?: string | undefined;
11946
12476
  id: string;
11947
12477
  number: string;
12478
+ items: {
12479
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
12480
+ account: string;
12481
+ amount: number;
12482
+ description?: string | undefined;
12483
+ counterpart_account: string;
12484
+ }[];
12485
+ }[]>;
12486
+ createJournalEntry(journal_entry: {
12487
+ reference?: string | undefined;
12488
+ due_date?: string | undefined;
12489
+ journal_id: string;
12490
+ name: string;
12491
+ date: string;
12492
+ items: {
12493
+ account_number: string;
12494
+ partner_id?: string | undefined;
12495
+ description?: string | undefined;
12496
+ debit: number;
12497
+ credit: number;
12498
+ currency: string;
12499
+ currency_exchange_rate?: number | undefined;
12500
+ analytic_distribution?: {
12501
+ analytic_plan: string;
12502
+ analytic_accounts: {
12503
+ analytic_account: string;
12504
+ percentage: number;
12505
+ }[];
12506
+ }[] | undefined;
12507
+ pdf?: string | undefined;
12508
+ }[];
12509
+ }): import("../types/api").RequestData<{
12510
+ reference?: string | undefined;
12511
+ due_date?: string | undefined;
12512
+ journal_id: string;
12513
+ name?: string | undefined;
12514
+ journal_name: string;
12515
+ date?: string | undefined;
12516
+ posted?: boolean | undefined;
12517
+ id: string;
12518
+ items?: {
12519
+ account_number: string;
12520
+ partner_id?: string | undefined;
12521
+ description?: string | undefined;
12522
+ debit: number;
12523
+ credit: number;
12524
+ currency: string;
12525
+ currency_exchange_rate?: number | undefined;
12526
+ id: string;
12527
+ partner_name?: string | undefined;
12528
+ account_name: string;
12529
+ matching_numbers?: string[] | undefined;
12530
+ analytic_distribution?: {
12531
+ analytic_plan: string;
12532
+ analytic_accounts: {
12533
+ analytic_account: string;
12534
+ percentage: number;
12535
+ }[];
12536
+ }[] | undefined;
12537
+ }[] | undefined;
11948
12538
  }>;
11949
12539
  }>;
11950
12540
  invoicing: import("../types/api").ApiFor<{
11951
12541
  getInvoices(params: {
11952
12542
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
12543
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
11953
12544
  date_from?: string | undefined;
11954
12545
  date_to?: string | undefined;
11955
12546
  page?: number | undefined;
@@ -11968,12 +12559,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
11968
12559
  untaxed_amount: number;
11969
12560
  total: number;
11970
12561
  lines?: {
11971
- description: string;
12562
+ description?: string | undefined;
11972
12563
  unit_price: number;
11973
12564
  quantity: number;
12565
+ discount_amount?: number | undefined;
11974
12566
  tax_amount: number;
11975
- total: number;
11976
12567
  untaxed_amount: number;
12568
+ total: number;
11977
12569
  tax_rate?: number | undefined;
11978
12570
  account_number?: string | undefined;
11979
12571
  tax_id?: string | undefined;
@@ -12010,12 +12602,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
12010
12602
  untaxed_amount: number;
12011
12603
  total: number;
12012
12604
  lines?: {
12013
- description: string;
12605
+ description?: string | undefined;
12014
12606
  unit_price: number;
12015
12607
  quantity: number;
12608
+ discount_amount?: number | undefined;
12016
12609
  tax_amount: number;
12017
- total: number;
12018
12610
  untaxed_amount: number;
12611
+ total: number;
12019
12612
  tax_rate?: number | undefined;
12020
12613
  account_number?: string | undefined;
12021
12614
  tax_id?: string | undefined;
@@ -12045,12 +12638,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
12045
12638
  untaxed_amount: number;
12046
12639
  total: number;
12047
12640
  lines?: {
12048
- description: string;
12641
+ description?: string | undefined;
12049
12642
  unit_price: number;
12050
12643
  quantity: number;
12644
+ discount_amount?: number | undefined;
12051
12645
  tax_amount: number;
12052
- total: number;
12053
12646
  untaxed_amount: number;
12647
+ total: number;
12054
12648
  tax_rate?: number | undefined;
12055
12649
  account_number?: string | undefined;
12056
12650
  tax_id?: string | undefined;
@@ -12084,12 +12678,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
12084
12678
  untaxed_amount: number;
12085
12679
  total: number;
12086
12680
  lines?: {
12087
- description: string;
12681
+ description?: string | undefined;
12088
12682
  unit_price: number;
12089
12683
  quantity: number;
12684
+ discount_amount?: number | undefined;
12090
12685
  tax_amount: number;
12091
- total: number;
12092
12686
  untaxed_amount: number;
12687
+ total: number;
12093
12688
  tax_rate?: number | undefined;
12094
12689
  account_number?: string | undefined;
12095
12690
  tax_id?: string | undefined;
@@ -12174,7 +12769,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
12174
12769
  rate: number;
12175
12770
  type: "unknown" | "sale" | "purchase" | "both";
12176
12771
  code?: string | undefined;
12177
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
12772
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
12178
12773
  }[]>;
12179
12774
  getTaxById(taxId: string): import("../types/api").RequestData<{
12180
12775
  id: string;
@@ -12186,7 +12781,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
12186
12781
  rate: number;
12187
12782
  type: "unknown" | "sale" | "purchase" | "both";
12188
12783
  code?: string | undefined;
12189
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
12784
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
12190
12785
  }>;
12191
12786
  getOpportunities(): import("../types/api").RequestData<{
12192
12787
  id: string;
@@ -12241,7 +12836,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
12241
12836
  } | undefined;
12242
12837
  }>;
12243
12838
  getContacts(params?: {
12244
- contact_type?: "all" | "prospect" | "customer" | "supplier" | undefined;
12839
+ contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
12245
12840
  page?: number | undefined;
12246
12841
  size?: number | undefined;
12247
12842
  } | undefined): import("../types/api").RequestData<{
@@ -12697,7 +13292,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
12697
13292
  last_updated_on?: string | undefined;
12698
13293
  confirmed_on?: string | undefined;
12699
13294
  cancelled_on?: string | undefined;
12700
- status: "draft" | "cancelled" | "confirmed";
13295
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
12701
13296
  discount_amount: number;
12702
13297
  untaxed_amount_without_fees: number;
12703
13298
  tax_amount_without_fees: number;
@@ -12844,7 +13439,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
12844
13439
  last_updated_on?: string | undefined;
12845
13440
  confirmed_on?: string | undefined;
12846
13441
  cancelled_on?: string | undefined;
12847
- status: "draft" | "cancelled" | "confirmed";
13442
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
12848
13443
  discount_amount: number;
12849
13444
  untaxed_amount_without_fees: number;
12850
13445
  tax_amount_without_fees: number;
@@ -12950,7 +13545,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
12950
13545
  last_updated_on?: string | undefined;
12951
13546
  confirmed_on?: string | undefined;
12952
13547
  cancelled_on?: string | undefined;
12953
- status: "draft" | "cancelled" | "confirmed";
13548
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
12954
13549
  discount_amount: number;
12955
13550
  untaxed_amount_without_fees: number;
12956
13551
  tax_amount_without_fees: number;
@@ -13061,7 +13656,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
13061
13656
  name: string;
13062
13657
  title: string;
13063
13658
  type: string;
13064
- Optional?: boolean | undefined;
13659
+ optional?: boolean | undefined;
13065
13660
  }[];
13066
13661
  search_column?: string | undefined;
13067
13662
  };
@@ -13459,6 +14054,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
13459
14054
  country?: string | undefined;
13460
14055
  }[] | undefined;
13461
14056
  account_number?: string | undefined;
14057
+ company_number?: string | undefined;
13462
14058
  id?: string | undefined;
13463
14059
  }[]>;
13464
14060
  createClient(client: {
@@ -13529,6 +14125,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
13529
14125
  country?: string | undefined;
13530
14126
  }[] | undefined;
13531
14127
  account_number?: string | undefined;
14128
+ company_number?: string | undefined;
13532
14129
  id?: string | undefined;
13533
14130
  }>;
13534
14131
  getClient(clientId: string): import("../types/api").RequestData<{
@@ -13564,6 +14161,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
13564
14161
  country?: string | undefined;
13565
14162
  }[] | undefined;
13566
14163
  account_number?: string | undefined;
14164
+ company_number?: string | undefined;
13567
14165
  id?: string | undefined;
13568
14166
  }>;
13569
14167
  updateClient(clientId: string, client: {
@@ -13631,6 +14229,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
13631
14229
  country?: string | undefined;
13632
14230
  }[] | undefined;
13633
14231
  account_number?: string | undefined;
14232
+ company_number?: string | undefined;
13634
14233
  id?: string | undefined;
13635
14234
  }>;
13636
14235
  getSuppliers(): import("../types/api").RequestData<{
@@ -13666,6 +14265,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
13666
14265
  country?: string | undefined;
13667
14266
  }[] | undefined;
13668
14267
  account_number?: string | undefined;
14268
+ company_number?: string | undefined;
13669
14269
  id?: string | undefined;
13670
14270
  }[]>;
13671
14271
  createSupplier(supplier: {
@@ -13736,6 +14336,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
13736
14336
  country?: string | undefined;
13737
14337
  }[] | undefined;
13738
14338
  account_number?: string | undefined;
14339
+ company_number?: string | undefined;
13739
14340
  id?: string | undefined;
13740
14341
  }>;
13741
14342
  getSupplier(supplierId: string): import("../types/api").RequestData<{
@@ -13771,6 +14372,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
13771
14372
  country?: string | undefined;
13772
14373
  }[] | undefined;
13773
14374
  account_number?: string | undefined;
14375
+ company_number?: string | undefined;
13774
14376
  id?: string | undefined;
13775
14377
  }>;
13776
14378
  updateSupplier(supplierId: string, supplier: {
@@ -13838,6 +14440,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
13838
14440
  country?: string | undefined;
13839
14441
  }[] | undefined;
13840
14442
  account_number?: string | undefined;
14443
+ company_number?: string | undefined;
13841
14444
  id?: string | undefined;
13842
14445
  }>;
13843
14446
  createInvoice(invoice: {
@@ -13902,7 +14505,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
13902
14505
  amount: number;
13903
14506
  dedicated_amount?: number | undefined;
13904
14507
  payment_date: string;
13905
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
14508
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
13906
14509
  journal_id: string;
13907
14510
  journal_name: string;
13908
14511
  reconciled?: boolean | undefined;
@@ -13993,7 +14596,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
13993
14596
  amount: number;
13994
14597
  dedicated_amount?: number | undefined;
13995
14598
  payment_date: string;
13996
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
14599
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
13997
14600
  journal_id: string;
13998
14601
  journal_name: string;
13999
14602
  reconciled?: boolean | undefined;
@@ -14044,7 +14647,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
14044
14647
  amount: number;
14045
14648
  dedicated_amount?: number | undefined;
14046
14649
  payment_date: string;
14047
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
14650
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
14048
14651
  journal_id: string;
14049
14652
  journal_name: string;
14050
14653
  reconciled?: boolean | undefined;
@@ -14091,7 +14694,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
14091
14694
  amount: number;
14092
14695
  dedicated_amount?: number | undefined;
14093
14696
  payment_date: string;
14094
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
14697
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
14095
14698
  journal_id: string;
14096
14699
  journal_name: string;
14097
14700
  reconciled?: boolean | undefined;
@@ -14138,7 +14741,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
14138
14741
  amount: number;
14139
14742
  dedicated_amount?: number | undefined;
14140
14743
  payment_date: string;
14141
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
14744
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
14142
14745
  journal_id: string;
14143
14746
  journal_name: string;
14144
14747
  reconciled?: boolean | undefined;
@@ -14189,7 +14792,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
14189
14792
  amount: number;
14190
14793
  dedicated_amount?: number | undefined;
14191
14794
  payment_date: string;
14192
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
14795
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
14193
14796
  journal_id: string;
14194
14797
  journal_name: string;
14195
14798
  reconciled?: boolean | undefined;
@@ -14403,7 +15006,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
14403
15006
  amount: number;
14404
15007
  dedicated_amount?: number | undefined;
14405
15008
  payment_date: string;
14406
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
15009
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
14407
15010
  journal_id: string;
14408
15011
  journal_name: string;
14409
15012
  reconciled?: boolean | undefined;
@@ -14414,13 +15017,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
14414
15017
  id: string;
14415
15018
  code: string;
14416
15019
  name: string;
14417
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
15020
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
14418
15021
  }[]>;
14419
15022
  getVatCodes(): import("../types/api").RequestData<{
14420
15023
  id: string;
14421
15024
  code?: string | undefined;
14422
15025
  label: string;
14423
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
15026
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
14424
15027
  rate: number;
14425
15028
  type: "unknown" | "sale" | "purchase" | "both";
14426
15029
  }[]>;
@@ -14532,12 +15135,32 @@ declare const Syncs: (internalApi: InternalAPI) => {
14532
15135
  reference?: string | undefined;
14533
15136
  account_number?: string | undefined;
14534
15137
  }[]>;
14535
- createFinancialEntry(financial_entry: {
15138
+ getOutstandings(params: {
15139
+ unposted_allowed: "true" | "false";
15140
+ type: "client" | "supplier";
15141
+ }): import("../types/api").RequestData<{
15142
+ id: string;
15143
+ number?: string | undefined;
15144
+ journal_id: string;
15145
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
15146
+ date: string;
15147
+ due_date?: string | undefined;
15148
+ currency: string;
15149
+ currency_exchange_rate: number;
15150
+ amount: number;
15151
+ open_amount: number;
15152
+ partner_id: string;
15153
+ account_number: string;
15154
+ reference?: string | undefined;
15155
+ posted: boolean;
15156
+ }[]>;
15157
+ createFinancialEntryOld(financial_entry: {
14536
15158
  date: string;
14537
15159
  journal_id: string;
14538
15160
  currency: string;
14539
15161
  currency_exchange_rate?: number | undefined;
14540
15162
  reference?: string | undefined;
15163
+ number?: string | undefined;
14541
15164
  items: {
14542
15165
  type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
14543
15166
  account_number: string;
@@ -14545,14 +15168,17 @@ declare const Syncs: (internalApi: InternalAPI) => {
14545
15168
  amount: number;
14546
15169
  description?: string | undefined;
14547
15170
  }[];
14548
- number?: string | undefined;
14549
15171
  pdf?: string | undefined;
14550
- }): import("../types/api").RequestData<{
15172
+ }, params: {
15173
+ financial_counterpart_account?: string | undefined;
15174
+ } | undefined): import("../types/api").RequestData<{
14551
15175
  date: string;
14552
15176
  journal_id: string;
14553
15177
  currency: string;
14554
15178
  currency_exchange_rate?: number | undefined;
14555
15179
  reference?: string | undefined;
15180
+ id: string;
15181
+ number: string;
14556
15182
  items: {
14557
15183
  type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
14558
15184
  account_number: string;
@@ -14561,13 +15187,97 @@ declare const Syncs: (internalApi: InternalAPI) => {
14561
15187
  description?: string | undefined;
14562
15188
  counterpart_account: string;
14563
15189
  }[];
15190
+ }>;
15191
+ createFinancialEntry(financial_entry: {
15192
+ date: string;
15193
+ journal_id: string;
15194
+ currency: string;
15195
+ currency_exchange_rate?: number | undefined;
15196
+ reference?: string | undefined;
15197
+ number?: string | undefined;
15198
+ items: {
15199
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
15200
+ account: string;
15201
+ amount: number;
15202
+ description?: string | undefined;
15203
+ }[];
15204
+ pdf?: string | undefined;
15205
+ }, params: {
15206
+ financial_counterpart_account?: string | undefined;
15207
+ } | undefined): import("../types/api").RequestData<{
15208
+ date: string;
15209
+ journal_id: string;
15210
+ currency: string;
15211
+ currency_exchange_rate?: number | undefined;
15212
+ reference?: string | undefined;
14564
15213
  id: string;
14565
15214
  number: string;
15215
+ items: {
15216
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
15217
+ account: string;
15218
+ amount: number;
15219
+ description?: string | undefined;
15220
+ counterpart_account: string;
15221
+ }[];
15222
+ }[]>;
15223
+ createJournalEntry(journal_entry: {
15224
+ reference?: string | undefined;
15225
+ due_date?: string | undefined;
15226
+ journal_id: string;
15227
+ name: string;
15228
+ date: string;
15229
+ items: {
15230
+ account_number: string;
15231
+ partner_id?: string | undefined;
15232
+ description?: string | undefined;
15233
+ debit: number;
15234
+ credit: number;
15235
+ currency: string;
15236
+ currency_exchange_rate?: number | undefined;
15237
+ analytic_distribution?: {
15238
+ analytic_plan: string;
15239
+ analytic_accounts: {
15240
+ analytic_account: string;
15241
+ percentage: number;
15242
+ }[];
15243
+ }[] | undefined;
15244
+ pdf?: string | undefined;
15245
+ }[];
15246
+ }): import("../types/api").RequestData<{
15247
+ reference?: string | undefined;
15248
+ due_date?: string | undefined;
15249
+ journal_id: string;
15250
+ name?: string | undefined;
15251
+ journal_name: string;
15252
+ date?: string | undefined;
15253
+ posted?: boolean | undefined;
15254
+ id: string;
15255
+ items?: {
15256
+ account_number: string;
15257
+ partner_id?: string | undefined;
15258
+ description?: string | undefined;
15259
+ debit: number;
15260
+ credit: number;
15261
+ currency: string;
15262
+ currency_exchange_rate?: number | undefined;
15263
+ id: string;
15264
+ partner_name?: string | undefined;
15265
+ account_name: string;
15266
+ matching_numbers?: string[] | undefined;
15267
+ analytic_distribution?: {
15268
+ analytic_plan: string;
15269
+ analytic_accounts: {
15270
+ analytic_account: string;
15271
+ percentage: number;
15272
+ }[];
15273
+ }[] | undefined;
15274
+ }[] | undefined;
14566
15275
  }>;
14567
15276
  }>;
14568
15277
  invoicing: import("../types/api").ApiFor<{
14569
15278
  getInvoices(params: {
14570
15279
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
15280
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
14571
15281
  date_from?: string | undefined;
14572
15282
  date_to?: string | undefined;
14573
15283
  page?: number | undefined;
@@ -14586,12 +15296,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
14586
15296
  untaxed_amount: number;
14587
15297
  total: number;
14588
15298
  lines?: {
14589
- description: string;
15299
+ description?: string | undefined;
14590
15300
  unit_price: number;
14591
15301
  quantity: number;
15302
+ discount_amount?: number | undefined;
14592
15303
  tax_amount: number;
14593
- total: number;
14594
15304
  untaxed_amount: number;
15305
+ total: number;
14595
15306
  tax_rate?: number | undefined;
14596
15307
  account_number?: string | undefined;
14597
15308
  tax_id?: string | undefined;
@@ -14628,12 +15339,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
14628
15339
  untaxed_amount: number;
14629
15340
  total: number;
14630
15341
  lines?: {
14631
- description: string;
15342
+ description?: string | undefined;
14632
15343
  unit_price: number;
14633
15344
  quantity: number;
15345
+ discount_amount?: number | undefined;
14634
15346
  tax_amount: number;
14635
- total: number;
14636
15347
  untaxed_amount: number;
15348
+ total: number;
14637
15349
  tax_rate?: number | undefined;
14638
15350
  account_number?: string | undefined;
14639
15351
  tax_id?: string | undefined;
@@ -14663,12 +15375,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
14663
15375
  untaxed_amount: number;
14664
15376
  total: number;
14665
15377
  lines?: {
14666
- description: string;
15378
+ description?: string | undefined;
14667
15379
  unit_price: number;
14668
15380
  quantity: number;
15381
+ discount_amount?: number | undefined;
14669
15382
  tax_amount: number;
14670
- total: number;
14671
15383
  untaxed_amount: number;
15384
+ total: number;
14672
15385
  tax_rate?: number | undefined;
14673
15386
  account_number?: string | undefined;
14674
15387
  tax_id?: string | undefined;
@@ -14702,12 +15415,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
14702
15415
  untaxed_amount: number;
14703
15416
  total: number;
14704
15417
  lines?: {
14705
- description: string;
15418
+ description?: string | undefined;
14706
15419
  unit_price: number;
14707
15420
  quantity: number;
15421
+ discount_amount?: number | undefined;
14708
15422
  tax_amount: number;
14709
- total: number;
14710
15423
  untaxed_amount: number;
15424
+ total: number;
14711
15425
  tax_rate?: number | undefined;
14712
15426
  account_number?: string | undefined;
14713
15427
  tax_id?: string | undefined;
@@ -14792,7 +15506,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
14792
15506
  rate: number;
14793
15507
  type: "unknown" | "sale" | "purchase" | "both";
14794
15508
  code?: string | undefined;
14795
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
15509
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
14796
15510
  }[]>;
14797
15511
  getTaxById(taxId: string): import("../types/api").RequestData<{
14798
15512
  id: string;
@@ -14804,7 +15518,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
14804
15518
  rate: number;
14805
15519
  type: "unknown" | "sale" | "purchase" | "both";
14806
15520
  code?: string | undefined;
14807
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
15521
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
14808
15522
  }>;
14809
15523
  getOpportunities(): import("../types/api").RequestData<{
14810
15524
  id: string;
@@ -14859,7 +15573,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
14859
15573
  } | undefined;
14860
15574
  }>;
14861
15575
  getContacts(params?: {
14862
- contact_type?: "all" | "prospect" | "customer" | "supplier" | undefined;
15576
+ contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
14863
15577
  page?: number | undefined;
14864
15578
  size?: number | undefined;
14865
15579
  } | undefined): import("../types/api").RequestData<{
@@ -15315,7 +16029,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
15315
16029
  last_updated_on?: string | undefined;
15316
16030
  confirmed_on?: string | undefined;
15317
16031
  cancelled_on?: string | undefined;
15318
- status: "draft" | "cancelled" | "confirmed";
16032
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
15319
16033
  discount_amount: number;
15320
16034
  untaxed_amount_without_fees: number;
15321
16035
  tax_amount_without_fees: number;
@@ -15462,7 +16176,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
15462
16176
  last_updated_on?: string | undefined;
15463
16177
  confirmed_on?: string | undefined;
15464
16178
  cancelled_on?: string | undefined;
15465
- status: "draft" | "cancelled" | "confirmed";
16179
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
15466
16180
  discount_amount: number;
15467
16181
  untaxed_amount_without_fees: number;
15468
16182
  tax_amount_without_fees: number;
@@ -15568,7 +16282,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
15568
16282
  last_updated_on?: string | undefined;
15569
16283
  confirmed_on?: string | undefined;
15570
16284
  cancelled_on?: string | undefined;
15571
- status: "draft" | "cancelled" | "confirmed";
16285
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
15572
16286
  discount_amount: number;
15573
16287
  untaxed_amount_without_fees: number;
15574
16288
  tax_amount_without_fees: number;
@@ -15679,7 +16393,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
15679
16393
  name: string;
15680
16394
  title: string;
15681
16395
  type: string;
15682
- Optional?: boolean | undefined;
16396
+ optional?: boolean | undefined;
15683
16397
  }[];
15684
16398
  search_column?: string | undefined;
15685
16399
  };
@@ -16076,6 +16790,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16076
16790
  country?: string | undefined;
16077
16791
  }[] | undefined;
16078
16792
  account_number?: string | undefined;
16793
+ company_number?: string | undefined;
16079
16794
  id?: string | undefined;
16080
16795
  }[]>;
16081
16796
  createClient(client: {
@@ -16146,6 +16861,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16146
16861
  country?: string | undefined;
16147
16862
  }[] | undefined;
16148
16863
  account_number?: string | undefined;
16864
+ company_number?: string | undefined;
16149
16865
  id?: string | undefined;
16150
16866
  }>;
16151
16867
  getClient(clientId: string): import("../types/api").RequestData<{
@@ -16181,6 +16897,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16181
16897
  country?: string | undefined;
16182
16898
  }[] | undefined;
16183
16899
  account_number?: string | undefined;
16900
+ company_number?: string | undefined;
16184
16901
  id?: string | undefined;
16185
16902
  }>;
16186
16903
  updateClient(clientId: string, client: {
@@ -16248,6 +16965,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16248
16965
  country?: string | undefined;
16249
16966
  }[] | undefined;
16250
16967
  account_number?: string | undefined;
16968
+ company_number?: string | undefined;
16251
16969
  id?: string | undefined;
16252
16970
  }>;
16253
16971
  getSuppliers(): import("../types/api").RequestData<{
@@ -16283,6 +17001,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16283
17001
  country?: string | undefined;
16284
17002
  }[] | undefined;
16285
17003
  account_number?: string | undefined;
17004
+ company_number?: string | undefined;
16286
17005
  id?: string | undefined;
16287
17006
  }[]>;
16288
17007
  createSupplier(supplier: {
@@ -16353,6 +17072,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16353
17072
  country?: string | undefined;
16354
17073
  }[] | undefined;
16355
17074
  account_number?: string | undefined;
17075
+ company_number?: string | undefined;
16356
17076
  id?: string | undefined;
16357
17077
  }>;
16358
17078
  getSupplier(supplierId: string): import("../types/api").RequestData<{
@@ -16388,6 +17108,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16388
17108
  country?: string | undefined;
16389
17109
  }[] | undefined;
16390
17110
  account_number?: string | undefined;
17111
+ company_number?: string | undefined;
16391
17112
  id?: string | undefined;
16392
17113
  }>;
16393
17114
  updateSupplier(supplierId: string, supplier: {
@@ -16455,6 +17176,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16455
17176
  country?: string | undefined;
16456
17177
  }[] | undefined;
16457
17178
  account_number?: string | undefined;
17179
+ company_number?: string | undefined;
16458
17180
  id?: string | undefined;
16459
17181
  }>;
16460
17182
  createInvoice(invoice: {
@@ -16519,7 +17241,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16519
17241
  amount: number;
16520
17242
  dedicated_amount?: number | undefined;
16521
17243
  payment_date: string;
16522
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
17244
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
16523
17245
  journal_id: string;
16524
17246
  journal_name: string;
16525
17247
  reconciled?: boolean | undefined;
@@ -16610,7 +17332,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16610
17332
  amount: number;
16611
17333
  dedicated_amount?: number | undefined;
16612
17334
  payment_date: string;
16613
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
17335
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
16614
17336
  journal_id: string;
16615
17337
  journal_name: string;
16616
17338
  reconciled?: boolean | undefined;
@@ -16661,7 +17383,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16661
17383
  amount: number;
16662
17384
  dedicated_amount?: number | undefined;
16663
17385
  payment_date: string;
16664
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
17386
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
16665
17387
  journal_id: string;
16666
17388
  journal_name: string;
16667
17389
  reconciled?: boolean | undefined;
@@ -16708,7 +17430,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16708
17430
  amount: number;
16709
17431
  dedicated_amount?: number | undefined;
16710
17432
  payment_date: string;
16711
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
17433
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
16712
17434
  journal_id: string;
16713
17435
  journal_name: string;
16714
17436
  reconciled?: boolean | undefined;
@@ -16755,7 +17477,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16755
17477
  amount: number;
16756
17478
  dedicated_amount?: number | undefined;
16757
17479
  payment_date: string;
16758
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
17480
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
16759
17481
  journal_id: string;
16760
17482
  journal_name: string;
16761
17483
  reconciled?: boolean | undefined;
@@ -16806,7 +17528,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16806
17528
  amount: number;
16807
17529
  dedicated_amount?: number | undefined;
16808
17530
  payment_date: string;
16809
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
17531
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
16810
17532
  journal_id: string;
16811
17533
  journal_name: string;
16812
17534
  reconciled?: boolean | undefined;
@@ -17020,7 +17742,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
17020
17742
  amount: number;
17021
17743
  dedicated_amount?: number | undefined;
17022
17744
  payment_date: string;
17023
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
17745
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
17024
17746
  journal_id: string;
17025
17747
  journal_name: string;
17026
17748
  reconciled?: boolean | undefined;
@@ -17031,13 +17753,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
17031
17753
  id: string;
17032
17754
  code: string;
17033
17755
  name: string;
17034
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
17756
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
17035
17757
  }[]>;
17036
17758
  getVatCodes(): import("../types/api").RequestData<{
17037
17759
  id: string;
17038
17760
  code?: string | undefined;
17039
17761
  label: string;
17040
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
17762
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
17041
17763
  rate: number;
17042
17764
  type: "unknown" | "sale" | "purchase" | "both";
17043
17765
  }[]>;
@@ -17149,12 +17871,32 @@ declare const Syncs: (internalApi: InternalAPI) => {
17149
17871
  reference?: string | undefined;
17150
17872
  account_number?: string | undefined;
17151
17873
  }[]>;
17152
- createFinancialEntry(financial_entry: {
17874
+ getOutstandings(params: {
17875
+ unposted_allowed: "true" | "false";
17876
+ type: "client" | "supplier";
17877
+ }): import("../types/api").RequestData<{
17878
+ id: string;
17879
+ number?: string | undefined;
17880
+ journal_id: string;
17881
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
17882
+ date: string;
17883
+ due_date?: string | undefined;
17884
+ currency: string;
17885
+ currency_exchange_rate: number;
17886
+ amount: number;
17887
+ open_amount: number;
17888
+ partner_id: string;
17889
+ account_number: string;
17890
+ reference?: string | undefined;
17891
+ posted: boolean;
17892
+ }[]>;
17893
+ createFinancialEntryOld(financial_entry: {
17153
17894
  date: string;
17154
17895
  journal_id: string;
17155
17896
  currency: string;
17156
17897
  currency_exchange_rate?: number | undefined;
17157
17898
  reference?: string | undefined;
17899
+ number?: string | undefined;
17158
17900
  items: {
17159
17901
  type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
17160
17902
  account_number: string;
@@ -17162,14 +17904,17 @@ declare const Syncs: (internalApi: InternalAPI) => {
17162
17904
  amount: number;
17163
17905
  description?: string | undefined;
17164
17906
  }[];
17165
- number?: string | undefined;
17166
17907
  pdf?: string | undefined;
17167
- }): import("../types/api").RequestData<{
17908
+ }, params: {
17909
+ financial_counterpart_account?: string | undefined;
17910
+ } | undefined): import("../types/api").RequestData<{
17168
17911
  date: string;
17169
17912
  journal_id: string;
17170
17913
  currency: string;
17171
17914
  currency_exchange_rate?: number | undefined;
17172
17915
  reference?: string | undefined;
17916
+ id: string;
17917
+ number: string;
17173
17918
  items: {
17174
17919
  type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
17175
17920
  account_number: string;
@@ -17178,13 +17923,97 @@ declare const Syncs: (internalApi: InternalAPI) => {
17178
17923
  description?: string | undefined;
17179
17924
  counterpart_account: string;
17180
17925
  }[];
17926
+ }>;
17927
+ createFinancialEntry(financial_entry: {
17928
+ date: string;
17929
+ journal_id: string;
17930
+ currency: string;
17931
+ currency_exchange_rate?: number | undefined;
17932
+ reference?: string | undefined;
17933
+ number?: string | undefined;
17934
+ items: {
17935
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
17936
+ account: string;
17937
+ amount: number;
17938
+ description?: string | undefined;
17939
+ }[];
17940
+ pdf?: string | undefined;
17941
+ }, params: {
17942
+ financial_counterpart_account?: string | undefined;
17943
+ } | undefined): import("../types/api").RequestData<{
17944
+ date: string;
17945
+ journal_id: string;
17946
+ currency: string;
17947
+ currency_exchange_rate?: number | undefined;
17948
+ reference?: string | undefined;
17181
17949
  id: string;
17182
17950
  number: string;
17951
+ items: {
17952
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
17953
+ account: string;
17954
+ amount: number;
17955
+ description?: string | undefined;
17956
+ counterpart_account: string;
17957
+ }[];
17958
+ }[]>;
17959
+ createJournalEntry(journal_entry: {
17960
+ reference?: string | undefined;
17961
+ due_date?: string | undefined;
17962
+ journal_id: string;
17963
+ name: string;
17964
+ date: string;
17965
+ items: {
17966
+ account_number: string;
17967
+ partner_id?: string | undefined;
17968
+ description?: string | undefined;
17969
+ debit: number;
17970
+ credit: number;
17971
+ currency: string;
17972
+ currency_exchange_rate?: number | undefined;
17973
+ analytic_distribution?: {
17974
+ analytic_plan: string;
17975
+ analytic_accounts: {
17976
+ analytic_account: string;
17977
+ percentage: number;
17978
+ }[];
17979
+ }[] | undefined;
17980
+ pdf?: string | undefined;
17981
+ }[];
17982
+ }): import("../types/api").RequestData<{
17983
+ reference?: string | undefined;
17984
+ due_date?: string | undefined;
17985
+ journal_id: string;
17986
+ name?: string | undefined;
17987
+ journal_name: string;
17988
+ date?: string | undefined;
17989
+ posted?: boolean | undefined;
17990
+ id: string;
17991
+ items?: {
17992
+ account_number: string;
17993
+ partner_id?: string | undefined;
17994
+ description?: string | undefined;
17995
+ debit: number;
17996
+ credit: number;
17997
+ currency: string;
17998
+ currency_exchange_rate?: number | undefined;
17999
+ id: string;
18000
+ partner_name?: string | undefined;
18001
+ account_name: string;
18002
+ matching_numbers?: string[] | undefined;
18003
+ analytic_distribution?: {
18004
+ analytic_plan: string;
18005
+ analytic_accounts: {
18006
+ analytic_account: string;
18007
+ percentage: number;
18008
+ }[];
18009
+ }[] | undefined;
18010
+ }[] | undefined;
17183
18011
  }>;
17184
18012
  }>;
17185
18013
  invoicing: import("../types/api").ApiFor<{
17186
18014
  getInvoices(params: {
17187
18015
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
18016
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
17188
18017
  date_from?: string | undefined;
17189
18018
  date_to?: string | undefined;
17190
18019
  page?: number | undefined;
@@ -17203,12 +18032,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
17203
18032
  untaxed_amount: number;
17204
18033
  total: number;
17205
18034
  lines?: {
17206
- description: string;
18035
+ description?: string | undefined;
17207
18036
  unit_price: number;
17208
18037
  quantity: number;
18038
+ discount_amount?: number | undefined;
17209
18039
  tax_amount: number;
17210
- total: number;
17211
18040
  untaxed_amount: number;
18041
+ total: number;
17212
18042
  tax_rate?: number | undefined;
17213
18043
  account_number?: string | undefined;
17214
18044
  tax_id?: string | undefined;
@@ -17245,12 +18075,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
17245
18075
  untaxed_amount: number;
17246
18076
  total: number;
17247
18077
  lines?: {
17248
- description: string;
18078
+ description?: string | undefined;
17249
18079
  unit_price: number;
17250
18080
  quantity: number;
18081
+ discount_amount?: number | undefined;
17251
18082
  tax_amount: number;
17252
- total: number;
17253
18083
  untaxed_amount: number;
18084
+ total: number;
17254
18085
  tax_rate?: number | undefined;
17255
18086
  account_number?: string | undefined;
17256
18087
  tax_id?: string | undefined;
@@ -17280,12 +18111,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
17280
18111
  untaxed_amount: number;
17281
18112
  total: number;
17282
18113
  lines?: {
17283
- description: string;
18114
+ description?: string | undefined;
17284
18115
  unit_price: number;
17285
18116
  quantity: number;
18117
+ discount_amount?: number | undefined;
17286
18118
  tax_amount: number;
17287
- total: number;
17288
18119
  untaxed_amount: number;
18120
+ total: number;
17289
18121
  tax_rate?: number | undefined;
17290
18122
  account_number?: string | undefined;
17291
18123
  tax_id?: string | undefined;
@@ -17319,12 +18151,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
17319
18151
  untaxed_amount: number;
17320
18152
  total: number;
17321
18153
  lines?: {
17322
- description: string;
18154
+ description?: string | undefined;
17323
18155
  unit_price: number;
17324
18156
  quantity: number;
18157
+ discount_amount?: number | undefined;
17325
18158
  tax_amount: number;
17326
- total: number;
17327
18159
  untaxed_amount: number;
18160
+ total: number;
17328
18161
  tax_rate?: number | undefined;
17329
18162
  account_number?: string | undefined;
17330
18163
  tax_id?: string | undefined;
@@ -17409,7 +18242,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
17409
18242
  rate: number;
17410
18243
  type: "unknown" | "sale" | "purchase" | "both";
17411
18244
  code?: string | undefined;
17412
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
18245
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
17413
18246
  }[]>;
17414
18247
  getTaxById(taxId: string): import("../types/api").RequestData<{
17415
18248
  id: string;
@@ -17421,7 +18254,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
17421
18254
  rate: number;
17422
18255
  type: "unknown" | "sale" | "purchase" | "both";
17423
18256
  code?: string | undefined;
17424
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
18257
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
17425
18258
  }>;
17426
18259
  getOpportunities(): import("../types/api").RequestData<{
17427
18260
  id: string;
@@ -17476,7 +18309,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
17476
18309
  } | undefined;
17477
18310
  }>;
17478
18311
  getContacts(params?: {
17479
- contact_type?: "all" | "prospect" | "customer" | "supplier" | undefined;
18312
+ contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
17480
18313
  page?: number | undefined;
17481
18314
  size?: number | undefined;
17482
18315
  } | undefined): import("../types/api").RequestData<{
@@ -17932,7 +18765,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
17932
18765
  last_updated_on?: string | undefined;
17933
18766
  confirmed_on?: string | undefined;
17934
18767
  cancelled_on?: string | undefined;
17935
- status: "draft" | "cancelled" | "confirmed";
18768
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
17936
18769
  discount_amount: number;
17937
18770
  untaxed_amount_without_fees: number;
17938
18771
  tax_amount_without_fees: number;
@@ -18079,7 +18912,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
18079
18912
  last_updated_on?: string | undefined;
18080
18913
  confirmed_on?: string | undefined;
18081
18914
  cancelled_on?: string | undefined;
18082
- status: "draft" | "cancelled" | "confirmed";
18915
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
18083
18916
  discount_amount: number;
18084
18917
  untaxed_amount_without_fees: number;
18085
18918
  tax_amount_without_fees: number;
@@ -18185,7 +19018,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
18185
19018
  last_updated_on?: string | undefined;
18186
19019
  confirmed_on?: string | undefined;
18187
19020
  cancelled_on?: string | undefined;
18188
- status: "draft" | "cancelled" | "confirmed";
19021
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
18189
19022
  discount_amount: number;
18190
19023
  untaxed_amount_without_fees: number;
18191
19024
  tax_amount_without_fees: number;
@@ -18296,7 +19129,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
18296
19129
  name: string;
18297
19130
  title: string;
18298
19131
  type: string;
18299
- Optional?: boolean | undefined;
19132
+ optional?: boolean | undefined;
18300
19133
  }[];
18301
19134
  search_column?: string | undefined;
18302
19135
  };
@@ -18697,6 +19530,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
18697
19530
  country?: string | undefined;
18698
19531
  }[] | undefined;
18699
19532
  account_number?: string | undefined;
19533
+ company_number?: string | undefined;
18700
19534
  id?: string | undefined;
18701
19535
  }[]>;
18702
19536
  createClient(client: {
@@ -18767,6 +19601,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
18767
19601
  country?: string | undefined;
18768
19602
  }[] | undefined;
18769
19603
  account_number?: string | undefined;
19604
+ company_number?: string | undefined;
18770
19605
  id?: string | undefined;
18771
19606
  }>;
18772
19607
  getClient(clientId: string): import("../types/api").RequestData<{
@@ -18802,6 +19637,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
18802
19637
  country?: string | undefined;
18803
19638
  }[] | undefined;
18804
19639
  account_number?: string | undefined;
19640
+ company_number?: string | undefined;
18805
19641
  id?: string | undefined;
18806
19642
  }>;
18807
19643
  updateClient(clientId: string, client: {
@@ -18869,6 +19705,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
18869
19705
  country?: string | undefined;
18870
19706
  }[] | undefined;
18871
19707
  account_number?: string | undefined;
19708
+ company_number?: string | undefined;
18872
19709
  id?: string | undefined;
18873
19710
  }>;
18874
19711
  getSuppliers(): import("../types/api").RequestData<{
@@ -18904,6 +19741,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
18904
19741
  country?: string | undefined;
18905
19742
  }[] | undefined;
18906
19743
  account_number?: string | undefined;
19744
+ company_number?: string | undefined;
18907
19745
  id?: string | undefined;
18908
19746
  }[]>;
18909
19747
  createSupplier(supplier: {
@@ -18974,6 +19812,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
18974
19812
  country?: string | undefined;
18975
19813
  }[] | undefined;
18976
19814
  account_number?: string | undefined;
19815
+ company_number?: string | undefined;
18977
19816
  id?: string | undefined;
18978
19817
  }>;
18979
19818
  getSupplier(supplierId: string): import("../types/api").RequestData<{
@@ -19009,6 +19848,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
19009
19848
  country?: string | undefined;
19010
19849
  }[] | undefined;
19011
19850
  account_number?: string | undefined;
19851
+ company_number?: string | undefined;
19012
19852
  id?: string | undefined;
19013
19853
  }>;
19014
19854
  updateSupplier(supplierId: string, supplier: {
@@ -19076,6 +19916,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
19076
19916
  country?: string | undefined;
19077
19917
  }[] | undefined;
19078
19918
  account_number?: string | undefined;
19919
+ company_number?: string | undefined;
19079
19920
  id?: string | undefined;
19080
19921
  }>;
19081
19922
  createInvoice(invoice: {
@@ -19140,7 +19981,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
19140
19981
  amount: number;
19141
19982
  dedicated_amount?: number | undefined;
19142
19983
  payment_date: string;
19143
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
19984
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
19144
19985
  journal_id: string;
19145
19986
  journal_name: string;
19146
19987
  reconciled?: boolean | undefined;
@@ -19231,7 +20072,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
19231
20072
  amount: number;
19232
20073
  dedicated_amount?: number | undefined;
19233
20074
  payment_date: string;
19234
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
20075
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
19235
20076
  journal_id: string;
19236
20077
  journal_name: string;
19237
20078
  reconciled?: boolean | undefined;
@@ -19282,7 +20123,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
19282
20123
  amount: number;
19283
20124
  dedicated_amount?: number | undefined;
19284
20125
  payment_date: string;
19285
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
20126
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
19286
20127
  journal_id: string;
19287
20128
  journal_name: string;
19288
20129
  reconciled?: boolean | undefined;
@@ -19329,7 +20170,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
19329
20170
  amount: number;
19330
20171
  dedicated_amount?: number | undefined;
19331
20172
  payment_date: string;
19332
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
20173
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
19333
20174
  journal_id: string;
19334
20175
  journal_name: string;
19335
20176
  reconciled?: boolean | undefined;
@@ -19376,7 +20217,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
19376
20217
  amount: number;
19377
20218
  dedicated_amount?: number | undefined;
19378
20219
  payment_date: string;
19379
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
20220
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
19380
20221
  journal_id: string;
19381
20222
  journal_name: string;
19382
20223
  reconciled?: boolean | undefined;
@@ -19427,7 +20268,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
19427
20268
  amount: number;
19428
20269
  dedicated_amount?: number | undefined;
19429
20270
  payment_date: string;
19430
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
20271
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
19431
20272
  journal_id: string;
19432
20273
  journal_name: string;
19433
20274
  reconciled?: boolean | undefined;
@@ -19641,7 +20482,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
19641
20482
  amount: number;
19642
20483
  dedicated_amount?: number | undefined;
19643
20484
  payment_date: string;
19644
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
20485
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
19645
20486
  journal_id: string;
19646
20487
  journal_name: string;
19647
20488
  reconciled?: boolean | undefined;
@@ -19652,13 +20493,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
19652
20493
  id: string;
19653
20494
  code: string;
19654
20495
  name: string;
19655
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
20496
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
19656
20497
  }[]>;
19657
20498
  getVatCodes(): import("../types/api").RequestData<{
19658
20499
  id: string;
19659
20500
  code?: string | undefined;
19660
20501
  label: string;
19661
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
20502
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
19662
20503
  rate: number;
19663
20504
  type: "unknown" | "sale" | "purchase" | "both";
19664
20505
  }[]>;
@@ -19770,12 +20611,32 @@ declare const Syncs: (internalApi: InternalAPI) => {
19770
20611
  reference?: string | undefined;
19771
20612
  account_number?: string | undefined;
19772
20613
  }[]>;
19773
- createFinancialEntry(financial_entry: {
20614
+ getOutstandings(params: {
20615
+ unposted_allowed: "true" | "false";
20616
+ type: "client" | "supplier";
20617
+ }): import("../types/api").RequestData<{
20618
+ id: string;
20619
+ number?: string | undefined;
20620
+ journal_id: string;
20621
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
20622
+ date: string;
20623
+ due_date?: string | undefined;
20624
+ currency: string;
20625
+ currency_exchange_rate: number;
20626
+ amount: number;
20627
+ open_amount: number;
20628
+ partner_id: string;
20629
+ account_number: string;
20630
+ reference?: string | undefined;
20631
+ posted: boolean;
20632
+ }[]>;
20633
+ createFinancialEntryOld(financial_entry: {
19774
20634
  date: string;
19775
20635
  journal_id: string;
19776
20636
  currency: string;
19777
20637
  currency_exchange_rate?: number | undefined;
19778
20638
  reference?: string | undefined;
20639
+ number?: string | undefined;
19779
20640
  items: {
19780
20641
  type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
19781
20642
  account_number: string;
@@ -19783,14 +20644,17 @@ declare const Syncs: (internalApi: InternalAPI) => {
19783
20644
  amount: number;
19784
20645
  description?: string | undefined;
19785
20646
  }[];
19786
- number?: string | undefined;
19787
20647
  pdf?: string | undefined;
19788
- }): import("../types/api").RequestData<{
20648
+ }, params: {
20649
+ financial_counterpart_account?: string | undefined;
20650
+ } | undefined): import("../types/api").RequestData<{
19789
20651
  date: string;
19790
20652
  journal_id: string;
19791
20653
  currency: string;
19792
20654
  currency_exchange_rate?: number | undefined;
19793
20655
  reference?: string | undefined;
20656
+ id: string;
20657
+ number: string;
19794
20658
  items: {
19795
20659
  type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
19796
20660
  account_number: string;
@@ -19799,13 +20663,97 @@ declare const Syncs: (internalApi: InternalAPI) => {
19799
20663
  description?: string | undefined;
19800
20664
  counterpart_account: string;
19801
20665
  }[];
20666
+ }>;
20667
+ createFinancialEntry(financial_entry: {
20668
+ date: string;
20669
+ journal_id: string;
20670
+ currency: string;
20671
+ currency_exchange_rate?: number | undefined;
20672
+ reference?: string | undefined;
20673
+ number?: string | undefined;
20674
+ items: {
20675
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
20676
+ account: string;
20677
+ amount: number;
20678
+ description?: string | undefined;
20679
+ }[];
20680
+ pdf?: string | undefined;
20681
+ }, params: {
20682
+ financial_counterpart_account?: string | undefined;
20683
+ } | undefined): import("../types/api").RequestData<{
20684
+ date: string;
20685
+ journal_id: string;
20686
+ currency: string;
20687
+ currency_exchange_rate?: number | undefined;
20688
+ reference?: string | undefined;
19802
20689
  id: string;
19803
20690
  number: string;
20691
+ items: {
20692
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
20693
+ account: string;
20694
+ amount: number;
20695
+ description?: string | undefined;
20696
+ counterpart_account: string;
20697
+ }[];
20698
+ }[]>;
20699
+ createJournalEntry(journal_entry: {
20700
+ reference?: string | undefined;
20701
+ due_date?: string | undefined;
20702
+ journal_id: string;
20703
+ name: string;
20704
+ date: string;
20705
+ items: {
20706
+ account_number: string;
20707
+ partner_id?: string | undefined;
20708
+ description?: string | undefined;
20709
+ debit: number;
20710
+ credit: number;
20711
+ currency: string;
20712
+ currency_exchange_rate?: number | undefined;
20713
+ analytic_distribution?: {
20714
+ analytic_plan: string;
20715
+ analytic_accounts: {
20716
+ analytic_account: string;
20717
+ percentage: number;
20718
+ }[];
20719
+ }[] | undefined;
20720
+ pdf?: string | undefined;
20721
+ }[];
20722
+ }): import("../types/api").RequestData<{
20723
+ reference?: string | undefined;
20724
+ due_date?: string | undefined;
20725
+ journal_id: string;
20726
+ name?: string | undefined;
20727
+ journal_name: string;
20728
+ date?: string | undefined;
20729
+ posted?: boolean | undefined;
20730
+ id: string;
20731
+ items?: {
20732
+ account_number: string;
20733
+ partner_id?: string | undefined;
20734
+ description?: string | undefined;
20735
+ debit: number;
20736
+ credit: number;
20737
+ currency: string;
20738
+ currency_exchange_rate?: number | undefined;
20739
+ id: string;
20740
+ partner_name?: string | undefined;
20741
+ account_name: string;
20742
+ matching_numbers?: string[] | undefined;
20743
+ analytic_distribution?: {
20744
+ analytic_plan: string;
20745
+ analytic_accounts: {
20746
+ analytic_account: string;
20747
+ percentage: number;
20748
+ }[];
20749
+ }[] | undefined;
20750
+ }[] | undefined;
19804
20751
  }>;
19805
20752
  }>;
19806
20753
  invoicing: import("../types/api").ApiFor<{
19807
20754
  getInvoices(params: {
19808
20755
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
20756
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
19809
20757
  date_from?: string | undefined;
19810
20758
  date_to?: string | undefined;
19811
20759
  page?: number | undefined;
@@ -19824,12 +20772,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
19824
20772
  untaxed_amount: number;
19825
20773
  total: number;
19826
20774
  lines?: {
19827
- description: string;
20775
+ description?: string | undefined;
19828
20776
  unit_price: number;
19829
20777
  quantity: number;
20778
+ discount_amount?: number | undefined;
19830
20779
  tax_amount: number;
19831
- total: number;
19832
20780
  untaxed_amount: number;
20781
+ total: number;
19833
20782
  tax_rate?: number | undefined;
19834
20783
  account_number?: string | undefined;
19835
20784
  tax_id?: string | undefined;
@@ -19866,12 +20815,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
19866
20815
  untaxed_amount: number;
19867
20816
  total: number;
19868
20817
  lines?: {
19869
- description: string;
20818
+ description?: string | undefined;
19870
20819
  unit_price: number;
19871
20820
  quantity: number;
20821
+ discount_amount?: number | undefined;
19872
20822
  tax_amount: number;
19873
- total: number;
19874
20823
  untaxed_amount: number;
20824
+ total: number;
19875
20825
  tax_rate?: number | undefined;
19876
20826
  account_number?: string | undefined;
19877
20827
  tax_id?: string | undefined;
@@ -19901,12 +20851,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
19901
20851
  untaxed_amount: number;
19902
20852
  total: number;
19903
20853
  lines?: {
19904
- description: string;
20854
+ description?: string | undefined;
19905
20855
  unit_price: number;
19906
20856
  quantity: number;
20857
+ discount_amount?: number | undefined;
19907
20858
  tax_amount: number;
19908
- total: number;
19909
20859
  untaxed_amount: number;
20860
+ total: number;
19910
20861
  tax_rate?: number | undefined;
19911
20862
  account_number?: string | undefined;
19912
20863
  tax_id?: string | undefined;
@@ -19940,12 +20891,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
19940
20891
  untaxed_amount: number;
19941
20892
  total: number;
19942
20893
  lines?: {
19943
- description: string;
20894
+ description?: string | undefined;
19944
20895
  unit_price: number;
19945
20896
  quantity: number;
20897
+ discount_amount?: number | undefined;
19946
20898
  tax_amount: number;
19947
- total: number;
19948
20899
  untaxed_amount: number;
20900
+ total: number;
19949
20901
  tax_rate?: number | undefined;
19950
20902
  account_number?: string | undefined;
19951
20903
  tax_id?: string | undefined;
@@ -20030,7 +20982,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
20030
20982
  rate: number;
20031
20983
  type: "unknown" | "sale" | "purchase" | "both";
20032
20984
  code?: string | undefined;
20033
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
20985
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
20034
20986
  }[]>;
20035
20987
  getTaxById(taxId: string): import("../types/api").RequestData<{
20036
20988
  id: string;
@@ -20042,7 +20994,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
20042
20994
  rate: number;
20043
20995
  type: "unknown" | "sale" | "purchase" | "both";
20044
20996
  code?: string | undefined;
20045
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
20997
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
20046
20998
  }>;
20047
20999
  getOpportunities(): import("../types/api").RequestData<{
20048
21000
  id: string;
@@ -20097,7 +21049,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
20097
21049
  } | undefined;
20098
21050
  }>;
20099
21051
  getContacts(params?: {
20100
- contact_type?: "all" | "prospect" | "customer" | "supplier" | undefined;
21052
+ contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
20101
21053
  page?: number | undefined;
20102
21054
  size?: number | undefined;
20103
21055
  } | undefined): import("../types/api").RequestData<{
@@ -20553,7 +21505,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
20553
21505
  last_updated_on?: string | undefined;
20554
21506
  confirmed_on?: string | undefined;
20555
21507
  cancelled_on?: string | undefined;
20556
- status: "draft" | "cancelled" | "confirmed";
21508
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
20557
21509
  discount_amount: number;
20558
21510
  untaxed_amount_without_fees: number;
20559
21511
  tax_amount_without_fees: number;
@@ -20700,7 +21652,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
20700
21652
  last_updated_on?: string | undefined;
20701
21653
  confirmed_on?: string | undefined;
20702
21654
  cancelled_on?: string | undefined;
20703
- status: "draft" | "cancelled" | "confirmed";
21655
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
20704
21656
  discount_amount: number;
20705
21657
  untaxed_amount_without_fees: number;
20706
21658
  tax_amount_without_fees: number;
@@ -20806,7 +21758,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
20806
21758
  last_updated_on?: string | undefined;
20807
21759
  confirmed_on?: string | undefined;
20808
21760
  cancelled_on?: string | undefined;
20809
- status: "draft" | "cancelled" | "confirmed";
21761
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
20810
21762
  discount_amount: number;
20811
21763
  untaxed_amount_without_fees: number;
20812
21764
  tax_amount_without_fees: number;
@@ -20917,7 +21869,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
20917
21869
  name: string;
20918
21870
  title: string;
20919
21871
  type: string;
20920
- Optional?: boolean | undefined;
21872
+ optional?: boolean | undefined;
20921
21873
  }[];
20922
21874
  search_column?: string | undefined;
20923
21875
  };
@@ -21318,6 +22270,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21318
22270
  country?: string | undefined;
21319
22271
  }[] | undefined;
21320
22272
  account_number?: string | undefined;
22273
+ company_number?: string | undefined;
21321
22274
  id?: string | undefined;
21322
22275
  }[]>;
21323
22276
  createClient(client: {
@@ -21388,6 +22341,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21388
22341
  country?: string | undefined;
21389
22342
  }[] | undefined;
21390
22343
  account_number?: string | undefined;
22344
+ company_number?: string | undefined;
21391
22345
  id?: string | undefined;
21392
22346
  }>;
21393
22347
  getClient(clientId: string): import("../types/api").RequestData<{
@@ -21423,6 +22377,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21423
22377
  country?: string | undefined;
21424
22378
  }[] | undefined;
21425
22379
  account_number?: string | undefined;
22380
+ company_number?: string | undefined;
21426
22381
  id?: string | undefined;
21427
22382
  }>;
21428
22383
  updateClient(clientId: string, client: {
@@ -21490,6 +22445,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21490
22445
  country?: string | undefined;
21491
22446
  }[] | undefined;
21492
22447
  account_number?: string | undefined;
22448
+ company_number?: string | undefined;
21493
22449
  id?: string | undefined;
21494
22450
  }>;
21495
22451
  getSuppliers(): import("../types/api").RequestData<{
@@ -21525,6 +22481,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21525
22481
  country?: string | undefined;
21526
22482
  }[] | undefined;
21527
22483
  account_number?: string | undefined;
22484
+ company_number?: string | undefined;
21528
22485
  id?: string | undefined;
21529
22486
  }[]>;
21530
22487
  createSupplier(supplier: {
@@ -21595,6 +22552,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21595
22552
  country?: string | undefined;
21596
22553
  }[] | undefined;
21597
22554
  account_number?: string | undefined;
22555
+ company_number?: string | undefined;
21598
22556
  id?: string | undefined;
21599
22557
  }>;
21600
22558
  getSupplier(supplierId: string): import("../types/api").RequestData<{
@@ -21630,6 +22588,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21630
22588
  country?: string | undefined;
21631
22589
  }[] | undefined;
21632
22590
  account_number?: string | undefined;
22591
+ company_number?: string | undefined;
21633
22592
  id?: string | undefined;
21634
22593
  }>;
21635
22594
  updateSupplier(supplierId: string, supplier: {
@@ -21697,6 +22656,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21697
22656
  country?: string | undefined;
21698
22657
  }[] | undefined;
21699
22658
  account_number?: string | undefined;
22659
+ company_number?: string | undefined;
21700
22660
  id?: string | undefined;
21701
22661
  }>;
21702
22662
  createInvoice(invoice: {
@@ -21761,7 +22721,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21761
22721
  amount: number;
21762
22722
  dedicated_amount?: number | undefined;
21763
22723
  payment_date: string;
21764
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
22724
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
21765
22725
  journal_id: string;
21766
22726
  journal_name: string;
21767
22727
  reconciled?: boolean | undefined;
@@ -21852,7 +22812,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21852
22812
  amount: number;
21853
22813
  dedicated_amount?: number | undefined;
21854
22814
  payment_date: string;
21855
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
22815
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
21856
22816
  journal_id: string;
21857
22817
  journal_name: string;
21858
22818
  reconciled?: boolean | undefined;
@@ -21903,7 +22863,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21903
22863
  amount: number;
21904
22864
  dedicated_amount?: number | undefined;
21905
22865
  payment_date: string;
21906
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
22866
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
21907
22867
  journal_id: string;
21908
22868
  journal_name: string;
21909
22869
  reconciled?: boolean | undefined;
@@ -21950,7 +22910,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21950
22910
  amount: number;
21951
22911
  dedicated_amount?: number | undefined;
21952
22912
  payment_date: string;
21953
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
22913
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
21954
22914
  journal_id: string;
21955
22915
  journal_name: string;
21956
22916
  reconciled?: boolean | undefined;
@@ -21997,7 +22957,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21997
22957
  amount: number;
21998
22958
  dedicated_amount?: number | undefined;
21999
22959
  payment_date: string;
22000
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
22960
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
22001
22961
  journal_id: string;
22002
22962
  journal_name: string;
22003
22963
  reconciled?: boolean | undefined;
@@ -22048,7 +23008,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
22048
23008
  amount: number;
22049
23009
  dedicated_amount?: number | undefined;
22050
23010
  payment_date: string;
22051
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
23011
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
22052
23012
  journal_id: string;
22053
23013
  journal_name: string;
22054
23014
  reconciled?: boolean | undefined;
@@ -22262,7 +23222,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
22262
23222
  amount: number;
22263
23223
  dedicated_amount?: number | undefined;
22264
23224
  payment_date: string;
22265
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
23225
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
22266
23226
  journal_id: string;
22267
23227
  journal_name: string;
22268
23228
  reconciled?: boolean | undefined;
@@ -22273,13 +23233,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
22273
23233
  id: string;
22274
23234
  code: string;
22275
23235
  name: string;
22276
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
23236
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
22277
23237
  }[]>;
22278
23238
  getVatCodes(): import("../types/api").RequestData<{
22279
23239
  id: string;
22280
23240
  code?: string | undefined;
22281
23241
  label: string;
22282
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
23242
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
22283
23243
  rate: number;
22284
23244
  type: "unknown" | "sale" | "purchase" | "both";
22285
23245
  }[]>;
@@ -22391,12 +23351,32 @@ declare const Syncs: (internalApi: InternalAPI) => {
22391
23351
  reference?: string | undefined;
22392
23352
  account_number?: string | undefined;
22393
23353
  }[]>;
22394
- createFinancialEntry(financial_entry: {
23354
+ getOutstandings(params: {
23355
+ unposted_allowed: "true" | "false";
23356
+ type: "client" | "supplier";
23357
+ }): import("../types/api").RequestData<{
23358
+ id: string;
23359
+ number?: string | undefined;
23360
+ journal_id: string;
23361
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
23362
+ date: string;
23363
+ due_date?: string | undefined;
23364
+ currency: string;
23365
+ currency_exchange_rate: number;
23366
+ amount: number;
23367
+ open_amount: number;
23368
+ partner_id: string;
23369
+ account_number: string;
23370
+ reference?: string | undefined;
23371
+ posted: boolean;
23372
+ }[]>;
23373
+ createFinancialEntryOld(financial_entry: {
22395
23374
  date: string;
22396
23375
  journal_id: string;
22397
23376
  currency: string;
22398
23377
  currency_exchange_rate?: number | undefined;
22399
23378
  reference?: string | undefined;
23379
+ number?: string | undefined;
22400
23380
  items: {
22401
23381
  type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
22402
23382
  account_number: string;
@@ -22404,14 +23384,17 @@ declare const Syncs: (internalApi: InternalAPI) => {
22404
23384
  amount: number;
22405
23385
  description?: string | undefined;
22406
23386
  }[];
22407
- number?: string | undefined;
22408
23387
  pdf?: string | undefined;
22409
- }): import("../types/api").RequestData<{
23388
+ }, params: {
23389
+ financial_counterpart_account?: string | undefined;
23390
+ } | undefined): import("../types/api").RequestData<{
22410
23391
  date: string;
22411
23392
  journal_id: string;
22412
23393
  currency: string;
22413
23394
  currency_exchange_rate?: number | undefined;
22414
23395
  reference?: string | undefined;
23396
+ id: string;
23397
+ number: string;
22415
23398
  items: {
22416
23399
  type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
22417
23400
  account_number: string;
@@ -22420,13 +23403,97 @@ declare const Syncs: (internalApi: InternalAPI) => {
22420
23403
  description?: string | undefined;
22421
23404
  counterpart_account: string;
22422
23405
  }[];
23406
+ }>;
23407
+ createFinancialEntry(financial_entry: {
23408
+ date: string;
23409
+ journal_id: string;
23410
+ currency: string;
23411
+ currency_exchange_rate?: number | undefined;
23412
+ reference?: string | undefined;
23413
+ number?: string | undefined;
23414
+ items: {
23415
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
23416
+ account: string;
23417
+ amount: number;
23418
+ description?: string | undefined;
23419
+ }[];
23420
+ pdf?: string | undefined;
23421
+ }, params: {
23422
+ financial_counterpart_account?: string | undefined;
23423
+ } | undefined): import("../types/api").RequestData<{
23424
+ date: string;
23425
+ journal_id: string;
23426
+ currency: string;
23427
+ currency_exchange_rate?: number | undefined;
23428
+ reference?: string | undefined;
22423
23429
  id: string;
22424
23430
  number: string;
23431
+ items: {
23432
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
23433
+ account: string;
23434
+ amount: number;
23435
+ description?: string | undefined;
23436
+ counterpart_account: string;
23437
+ }[];
23438
+ }[]>;
23439
+ createJournalEntry(journal_entry: {
23440
+ reference?: string | undefined;
23441
+ due_date?: string | undefined;
23442
+ journal_id: string;
23443
+ name: string;
23444
+ date: string;
23445
+ items: {
23446
+ account_number: string;
23447
+ partner_id?: string | undefined;
23448
+ description?: string | undefined;
23449
+ debit: number;
23450
+ credit: number;
23451
+ currency: string;
23452
+ currency_exchange_rate?: number | undefined;
23453
+ analytic_distribution?: {
23454
+ analytic_plan: string;
23455
+ analytic_accounts: {
23456
+ analytic_account: string;
23457
+ percentage: number;
23458
+ }[];
23459
+ }[] | undefined;
23460
+ pdf?: string | undefined;
23461
+ }[];
23462
+ }): import("../types/api").RequestData<{
23463
+ reference?: string | undefined;
23464
+ due_date?: string | undefined;
23465
+ journal_id: string;
23466
+ name?: string | undefined;
23467
+ journal_name: string;
23468
+ date?: string | undefined;
23469
+ posted?: boolean | undefined;
23470
+ id: string;
23471
+ items?: {
23472
+ account_number: string;
23473
+ partner_id?: string | undefined;
23474
+ description?: string | undefined;
23475
+ debit: number;
23476
+ credit: number;
23477
+ currency: string;
23478
+ currency_exchange_rate?: number | undefined;
23479
+ id: string;
23480
+ partner_name?: string | undefined;
23481
+ account_name: string;
23482
+ matching_numbers?: string[] | undefined;
23483
+ analytic_distribution?: {
23484
+ analytic_plan: string;
23485
+ analytic_accounts: {
23486
+ analytic_account: string;
23487
+ percentage: number;
23488
+ }[];
23489
+ }[] | undefined;
23490
+ }[] | undefined;
22425
23491
  }>;
22426
23492
  }>;
22427
23493
  invoicing: import("../types/api").ApiFor<{
22428
23494
  getInvoices(params: {
22429
23495
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
23496
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
22430
23497
  date_from?: string | undefined;
22431
23498
  date_to?: string | undefined;
22432
23499
  page?: number | undefined;
@@ -22445,12 +23512,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
22445
23512
  untaxed_amount: number;
22446
23513
  total: number;
22447
23514
  lines?: {
22448
- description: string;
23515
+ description?: string | undefined;
22449
23516
  unit_price: number;
22450
23517
  quantity: number;
23518
+ discount_amount?: number | undefined;
22451
23519
  tax_amount: number;
22452
- total: number;
22453
23520
  untaxed_amount: number;
23521
+ total: number;
22454
23522
  tax_rate?: number | undefined;
22455
23523
  account_number?: string | undefined;
22456
23524
  tax_id?: string | undefined;
@@ -22487,12 +23555,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
22487
23555
  untaxed_amount: number;
22488
23556
  total: number;
22489
23557
  lines?: {
22490
- description: string;
23558
+ description?: string | undefined;
22491
23559
  unit_price: number;
22492
23560
  quantity: number;
23561
+ discount_amount?: number | undefined;
22493
23562
  tax_amount: number;
22494
- total: number;
22495
23563
  untaxed_amount: number;
23564
+ total: number;
22496
23565
  tax_rate?: number | undefined;
22497
23566
  account_number?: string | undefined;
22498
23567
  tax_id?: string | undefined;
@@ -22522,12 +23591,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
22522
23591
  untaxed_amount: number;
22523
23592
  total: number;
22524
23593
  lines?: {
22525
- description: string;
23594
+ description?: string | undefined;
22526
23595
  unit_price: number;
22527
23596
  quantity: number;
23597
+ discount_amount?: number | undefined;
22528
23598
  tax_amount: number;
22529
- total: number;
22530
23599
  untaxed_amount: number;
23600
+ total: number;
22531
23601
  tax_rate?: number | undefined;
22532
23602
  account_number?: string | undefined;
22533
23603
  tax_id?: string | undefined;
@@ -22561,12 +23631,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
22561
23631
  untaxed_amount: number;
22562
23632
  total: number;
22563
23633
  lines?: {
22564
- description: string;
23634
+ description?: string | undefined;
22565
23635
  unit_price: number;
22566
23636
  quantity: number;
23637
+ discount_amount?: number | undefined;
22567
23638
  tax_amount: number;
22568
- total: number;
22569
23639
  untaxed_amount: number;
23640
+ total: number;
22570
23641
  tax_rate?: number | undefined;
22571
23642
  account_number?: string | undefined;
22572
23643
  tax_id?: string | undefined;
@@ -22651,7 +23722,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
22651
23722
  rate: number;
22652
23723
  type: "unknown" | "sale" | "purchase" | "both";
22653
23724
  code?: string | undefined;
22654
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
23725
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
22655
23726
  }[]>;
22656
23727
  getTaxById(taxId: string): import("../types/api").RequestData<{
22657
23728
  id: string;
@@ -22663,7 +23734,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
22663
23734
  rate: number;
22664
23735
  type: "unknown" | "sale" | "purchase" | "both";
22665
23736
  code?: string | undefined;
22666
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
23737
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
22667
23738
  }>;
22668
23739
  getOpportunities(): import("../types/api").RequestData<{
22669
23740
  id: string;
@@ -22718,7 +23789,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
22718
23789
  } | undefined;
22719
23790
  }>;
22720
23791
  getContacts(params?: {
22721
- contact_type?: "all" | "prospect" | "customer" | "supplier" | undefined;
23792
+ contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
22722
23793
  page?: number | undefined;
22723
23794
  size?: number | undefined;
22724
23795
  } | undefined): import("../types/api").RequestData<{
@@ -23174,7 +24245,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
23174
24245
  last_updated_on?: string | undefined;
23175
24246
  confirmed_on?: string | undefined;
23176
24247
  cancelled_on?: string | undefined;
23177
- status: "draft" | "cancelled" | "confirmed";
24248
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
23178
24249
  discount_amount: number;
23179
24250
  untaxed_amount_without_fees: number;
23180
24251
  tax_amount_without_fees: number;
@@ -23321,7 +24392,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
23321
24392
  last_updated_on?: string | undefined;
23322
24393
  confirmed_on?: string | undefined;
23323
24394
  cancelled_on?: string | undefined;
23324
- status: "draft" | "cancelled" | "confirmed";
24395
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
23325
24396
  discount_amount: number;
23326
24397
  untaxed_amount_without_fees: number;
23327
24398
  tax_amount_without_fees: number;
@@ -23427,7 +24498,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
23427
24498
  last_updated_on?: string | undefined;
23428
24499
  confirmed_on?: string | undefined;
23429
24500
  cancelled_on?: string | undefined;
23430
- status: "draft" | "cancelled" | "confirmed";
24501
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
23431
24502
  discount_amount: number;
23432
24503
  untaxed_amount_without_fees: number;
23433
24504
  tax_amount_without_fees: number;
@@ -23538,7 +24609,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
23538
24609
  name: string;
23539
24610
  title: string;
23540
24611
  type: string;
23541
- Optional?: boolean | undefined;
24612
+ optional?: boolean | undefined;
23542
24613
  }[];
23543
24614
  search_column?: string | undefined;
23544
24615
  };
@@ -23939,6 +25010,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
23939
25010
  country?: string | undefined;
23940
25011
  }[] | undefined;
23941
25012
  account_number?: string | undefined;
25013
+ company_number?: string | undefined;
23942
25014
  id?: string | undefined;
23943
25015
  }[]>;
23944
25016
  createClient(client: {
@@ -24009,6 +25081,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24009
25081
  country?: string | undefined;
24010
25082
  }[] | undefined;
24011
25083
  account_number?: string | undefined;
25084
+ company_number?: string | undefined;
24012
25085
  id?: string | undefined;
24013
25086
  }>;
24014
25087
  getClient(clientId: string): import("../types/api").RequestData<{
@@ -24044,6 +25117,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24044
25117
  country?: string | undefined;
24045
25118
  }[] | undefined;
24046
25119
  account_number?: string | undefined;
25120
+ company_number?: string | undefined;
24047
25121
  id?: string | undefined;
24048
25122
  }>;
24049
25123
  updateClient(clientId: string, client: {
@@ -24111,6 +25185,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24111
25185
  country?: string | undefined;
24112
25186
  }[] | undefined;
24113
25187
  account_number?: string | undefined;
25188
+ company_number?: string | undefined;
24114
25189
  id?: string | undefined;
24115
25190
  }>;
24116
25191
  getSuppliers(): import("../types/api").RequestData<{
@@ -24146,6 +25221,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24146
25221
  country?: string | undefined;
24147
25222
  }[] | undefined;
24148
25223
  account_number?: string | undefined;
25224
+ company_number?: string | undefined;
24149
25225
  id?: string | undefined;
24150
25226
  }[]>;
24151
25227
  createSupplier(supplier: {
@@ -24216,6 +25292,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24216
25292
  country?: string | undefined;
24217
25293
  }[] | undefined;
24218
25294
  account_number?: string | undefined;
25295
+ company_number?: string | undefined;
24219
25296
  id?: string | undefined;
24220
25297
  }>;
24221
25298
  getSupplier(supplierId: string): import("../types/api").RequestData<{
@@ -24251,6 +25328,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24251
25328
  country?: string | undefined;
24252
25329
  }[] | undefined;
24253
25330
  account_number?: string | undefined;
25331
+ company_number?: string | undefined;
24254
25332
  id?: string | undefined;
24255
25333
  }>;
24256
25334
  updateSupplier(supplierId: string, supplier: {
@@ -24318,6 +25396,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24318
25396
  country?: string | undefined;
24319
25397
  }[] | undefined;
24320
25398
  account_number?: string | undefined;
25399
+ company_number?: string | undefined;
24321
25400
  id?: string | undefined;
24322
25401
  }>;
24323
25402
  createInvoice(invoice: {
@@ -24382,7 +25461,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24382
25461
  amount: number;
24383
25462
  dedicated_amount?: number | undefined;
24384
25463
  payment_date: string;
24385
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
25464
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
24386
25465
  journal_id: string;
24387
25466
  journal_name: string;
24388
25467
  reconciled?: boolean | undefined;
@@ -24473,7 +25552,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24473
25552
  amount: number;
24474
25553
  dedicated_amount?: number | undefined;
24475
25554
  payment_date: string;
24476
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
25555
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
24477
25556
  journal_id: string;
24478
25557
  journal_name: string;
24479
25558
  reconciled?: boolean | undefined;
@@ -24524,7 +25603,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24524
25603
  amount: number;
24525
25604
  dedicated_amount?: number | undefined;
24526
25605
  payment_date: string;
24527
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
25606
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
24528
25607
  journal_id: string;
24529
25608
  journal_name: string;
24530
25609
  reconciled?: boolean | undefined;
@@ -24571,7 +25650,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24571
25650
  amount: number;
24572
25651
  dedicated_amount?: number | undefined;
24573
25652
  payment_date: string;
24574
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
25653
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
24575
25654
  journal_id: string;
24576
25655
  journal_name: string;
24577
25656
  reconciled?: boolean | undefined;
@@ -24618,7 +25697,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24618
25697
  amount: number;
24619
25698
  dedicated_amount?: number | undefined;
24620
25699
  payment_date: string;
24621
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
25700
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
24622
25701
  journal_id: string;
24623
25702
  journal_name: string;
24624
25703
  reconciled?: boolean | undefined;
@@ -24669,7 +25748,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24669
25748
  amount: number;
24670
25749
  dedicated_amount?: number | undefined;
24671
25750
  payment_date: string;
24672
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
25751
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
24673
25752
  journal_id: string;
24674
25753
  journal_name: string;
24675
25754
  reconciled?: boolean | undefined;
@@ -24883,7 +25962,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24883
25962
  amount: number;
24884
25963
  dedicated_amount?: number | undefined;
24885
25964
  payment_date: string;
24886
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
25965
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
24887
25966
  journal_id: string;
24888
25967
  journal_name: string;
24889
25968
  reconciled?: boolean | undefined;
@@ -24894,13 +25973,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
24894
25973
  id: string;
24895
25974
  code: string;
24896
25975
  name: string;
24897
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
25976
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
24898
25977
  }[]>;
24899
25978
  getVatCodes(): import("../types/api").RequestData<{
24900
25979
  id: string;
24901
25980
  code?: string | undefined;
24902
25981
  label: string;
24903
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
25982
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
24904
25983
  rate: number;
24905
25984
  type: "unknown" | "sale" | "purchase" | "both";
24906
25985
  }[]>;
@@ -25012,12 +26091,32 @@ declare const Syncs: (internalApi: InternalAPI) => {
25012
26091
  reference?: string | undefined;
25013
26092
  account_number?: string | undefined;
25014
26093
  }[]>;
25015
- createFinancialEntry(financial_entry: {
26094
+ getOutstandings(params: {
26095
+ unposted_allowed: "true" | "false";
26096
+ type: "client" | "supplier";
26097
+ }): import("../types/api").RequestData<{
26098
+ id: string;
26099
+ number?: string | undefined;
26100
+ journal_id: string;
26101
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
26102
+ date: string;
26103
+ due_date?: string | undefined;
26104
+ currency: string;
26105
+ currency_exchange_rate: number;
26106
+ amount: number;
26107
+ open_amount: number;
26108
+ partner_id: string;
26109
+ account_number: string;
26110
+ reference?: string | undefined;
26111
+ posted: boolean;
26112
+ }[]>;
26113
+ createFinancialEntryOld(financial_entry: {
25016
26114
  date: string;
25017
26115
  journal_id: string;
25018
26116
  currency: string;
25019
26117
  currency_exchange_rate?: number | undefined;
25020
26118
  reference?: string | undefined;
26119
+ number?: string | undefined;
25021
26120
  items: {
25022
26121
  type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
25023
26122
  account_number: string;
@@ -25025,14 +26124,17 @@ declare const Syncs: (internalApi: InternalAPI) => {
25025
26124
  amount: number;
25026
26125
  description?: string | undefined;
25027
26126
  }[];
25028
- number?: string | undefined;
25029
26127
  pdf?: string | undefined;
25030
- }): import("../types/api").RequestData<{
26128
+ }, params: {
26129
+ financial_counterpart_account?: string | undefined;
26130
+ } | undefined): import("../types/api").RequestData<{
25031
26131
  date: string;
25032
26132
  journal_id: string;
25033
26133
  currency: string;
25034
26134
  currency_exchange_rate?: number | undefined;
25035
26135
  reference?: string | undefined;
26136
+ id: string;
26137
+ number: string;
25036
26138
  items: {
25037
26139
  type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
25038
26140
  account_number: string;
@@ -25041,13 +26143,97 @@ declare const Syncs: (internalApi: InternalAPI) => {
25041
26143
  description?: string | undefined;
25042
26144
  counterpart_account: string;
25043
26145
  }[];
26146
+ }>;
26147
+ createFinancialEntry(financial_entry: {
26148
+ date: string;
26149
+ journal_id: string;
26150
+ currency: string;
26151
+ currency_exchange_rate?: number | undefined;
26152
+ reference?: string | undefined;
26153
+ number?: string | undefined;
26154
+ items: {
26155
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
26156
+ account: string;
26157
+ amount: number;
26158
+ description?: string | undefined;
26159
+ }[];
26160
+ pdf?: string | undefined;
26161
+ }, params: {
26162
+ financial_counterpart_account?: string | undefined;
26163
+ } | undefined): import("../types/api").RequestData<{
26164
+ date: string;
26165
+ journal_id: string;
26166
+ currency: string;
26167
+ currency_exchange_rate?: number | undefined;
26168
+ reference?: string | undefined;
25044
26169
  id: string;
25045
26170
  number: string;
26171
+ items: {
26172
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
26173
+ account: string;
26174
+ amount: number;
26175
+ description?: string | undefined;
26176
+ counterpart_account: string;
26177
+ }[];
26178
+ }[]>;
26179
+ createJournalEntry(journal_entry: {
26180
+ reference?: string | undefined;
26181
+ due_date?: string | undefined;
26182
+ journal_id: string;
26183
+ name: string;
26184
+ date: string;
26185
+ items: {
26186
+ account_number: string;
26187
+ partner_id?: string | undefined;
26188
+ description?: string | undefined;
26189
+ debit: number;
26190
+ credit: number;
26191
+ currency: string;
26192
+ currency_exchange_rate?: number | undefined;
26193
+ analytic_distribution?: {
26194
+ analytic_plan: string;
26195
+ analytic_accounts: {
26196
+ analytic_account: string;
26197
+ percentage: number;
26198
+ }[];
26199
+ }[] | undefined;
26200
+ pdf?: string | undefined;
26201
+ }[];
26202
+ }): import("../types/api").RequestData<{
26203
+ reference?: string | undefined;
26204
+ due_date?: string | undefined;
26205
+ journal_id: string;
26206
+ name?: string | undefined;
26207
+ journal_name: string;
26208
+ date?: string | undefined;
26209
+ posted?: boolean | undefined;
26210
+ id: string;
26211
+ items?: {
26212
+ account_number: string;
26213
+ partner_id?: string | undefined;
26214
+ description?: string | undefined;
26215
+ debit: number;
26216
+ credit: number;
26217
+ currency: string;
26218
+ currency_exchange_rate?: number | undefined;
26219
+ id: string;
26220
+ partner_name?: string | undefined;
26221
+ account_name: string;
26222
+ matching_numbers?: string[] | undefined;
26223
+ analytic_distribution?: {
26224
+ analytic_plan: string;
26225
+ analytic_accounts: {
26226
+ analytic_account: string;
26227
+ percentage: number;
26228
+ }[];
26229
+ }[] | undefined;
26230
+ }[] | undefined;
25046
26231
  }>;
25047
26232
  }>;
25048
26233
  invoicing: import("../types/api").ApiFor<{
25049
26234
  getInvoices(params: {
25050
26235
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
26236
+ payment_status?: "all" | "paid" | "unpaid" | undefined;
25051
26237
  date_from?: string | undefined;
25052
26238
  date_to?: string | undefined;
25053
26239
  page?: number | undefined;
@@ -25066,12 +26252,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
25066
26252
  untaxed_amount: number;
25067
26253
  total: number;
25068
26254
  lines?: {
25069
- description: string;
26255
+ description?: string | undefined;
25070
26256
  unit_price: number;
25071
26257
  quantity: number;
26258
+ discount_amount?: number | undefined;
25072
26259
  tax_amount: number;
25073
- total: number;
25074
26260
  untaxed_amount: number;
26261
+ total: number;
25075
26262
  tax_rate?: number | undefined;
25076
26263
  account_number?: string | undefined;
25077
26264
  tax_id?: string | undefined;
@@ -25108,12 +26295,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
25108
26295
  untaxed_amount: number;
25109
26296
  total: number;
25110
26297
  lines?: {
25111
- description: string;
26298
+ description?: string | undefined;
25112
26299
  unit_price: number;
25113
26300
  quantity: number;
26301
+ discount_amount?: number | undefined;
25114
26302
  tax_amount: number;
25115
- total: number;
25116
26303
  untaxed_amount: number;
26304
+ total: number;
25117
26305
  tax_rate?: number | undefined;
25118
26306
  account_number?: string | undefined;
25119
26307
  tax_id?: string | undefined;
@@ -25143,12 +26331,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
25143
26331
  untaxed_amount: number;
25144
26332
  total: number;
25145
26333
  lines?: {
25146
- description: string;
26334
+ description?: string | undefined;
25147
26335
  unit_price: number;
25148
26336
  quantity: number;
26337
+ discount_amount?: number | undefined;
25149
26338
  tax_amount: number;
25150
- total: number;
25151
26339
  untaxed_amount: number;
26340
+ total: number;
25152
26341
  tax_rate?: number | undefined;
25153
26342
  account_number?: string | undefined;
25154
26343
  tax_id?: string | undefined;
@@ -25182,12 +26371,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
25182
26371
  untaxed_amount: number;
25183
26372
  total: number;
25184
26373
  lines?: {
25185
- description: string;
26374
+ description?: string | undefined;
25186
26375
  unit_price: number;
25187
26376
  quantity: number;
26377
+ discount_amount?: number | undefined;
25188
26378
  tax_amount: number;
25189
- total: number;
25190
26379
  untaxed_amount: number;
26380
+ total: number;
25191
26381
  tax_rate?: number | undefined;
25192
26382
  account_number?: string | undefined;
25193
26383
  tax_id?: string | undefined;
@@ -25272,7 +26462,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
25272
26462
  rate: number;
25273
26463
  type: "unknown" | "sale" | "purchase" | "both";
25274
26464
  code?: string | undefined;
25275
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
26465
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
25276
26466
  }[]>;
25277
26467
  getTaxById(taxId: string): import("../types/api").RequestData<{
25278
26468
  id: string;
@@ -25284,7 +26474,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
25284
26474
  rate: number;
25285
26475
  type: "unknown" | "sale" | "purchase" | "both";
25286
26476
  code?: string | undefined;
25287
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
26477
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
25288
26478
  }>;
25289
26479
  getOpportunities(): import("../types/api").RequestData<{
25290
26480
  id: string;
@@ -25339,7 +26529,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
25339
26529
  } | undefined;
25340
26530
  }>;
25341
26531
  getContacts(params?: {
25342
- contact_type?: "all" | "prospect" | "customer" | "supplier" | undefined;
26532
+ contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
25343
26533
  page?: number | undefined;
25344
26534
  size?: number | undefined;
25345
26535
  } | undefined): import("../types/api").RequestData<{
@@ -25795,7 +26985,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
25795
26985
  last_updated_on?: string | undefined;
25796
26986
  confirmed_on?: string | undefined;
25797
26987
  cancelled_on?: string | undefined;
25798
- status: "draft" | "cancelled" | "confirmed";
26988
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
25799
26989
  discount_amount: number;
25800
26990
  untaxed_amount_without_fees: number;
25801
26991
  tax_amount_without_fees: number;
@@ -25942,7 +27132,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
25942
27132
  last_updated_on?: string | undefined;
25943
27133
  confirmed_on?: string | undefined;
25944
27134
  cancelled_on?: string | undefined;
25945
- status: "draft" | "cancelled" | "confirmed";
27135
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
25946
27136
  discount_amount: number;
25947
27137
  untaxed_amount_without_fees: number;
25948
27138
  tax_amount_without_fees: number;
@@ -26048,7 +27238,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
26048
27238
  last_updated_on?: string | undefined;
26049
27239
  confirmed_on?: string | undefined;
26050
27240
  cancelled_on?: string | undefined;
26051
- status: "draft" | "cancelled" | "confirmed";
27241
+ status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
26052
27242
  discount_amount: number;
26053
27243
  untaxed_amount_without_fees: number;
26054
27244
  tax_amount_without_fees: number;
@@ -26159,7 +27349,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
26159
27349
  name: string;
26160
27350
  title: string;
26161
27351
  type: string;
26162
- Optional?: boolean | undefined;
27352
+ optional?: boolean | undefined;
26163
27353
  }[];
26164
27354
  search_column?: string | undefined;
26165
27355
  };