@chift/chift-nodejs 1.0.1 → 1.0.3

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 +15 -4
  2. package/dist/src/modules/accounting.d.ts +4 -1
  3. package/dist/src/modules/accounting.js +16 -1
  4. package/dist/src/modules/api.d.ts +1494 -262
  5. package/dist/src/modules/consumer.d.ts +95 -13
  6. package/dist/src/modules/consumers.d.ts +475 -65
  7. package/dist/src/modules/integrations.d.ts +2 -0
  8. package/dist/src/modules/sync.d.ts +380 -52
  9. package/dist/src/modules/sync.js +0 -2
  10. package/dist/src/modules/syncs.d.ts +956 -136
  11. package/dist/test/modules/accounting.test.js +104 -15
  12. package/dist/test/modules/consumers.test.js +1 -1
  13. package/dist/test/modules/pos.test.js +4 -4
  14. package/package.json +1 -1
  15. package/src/modules/accounting.ts +12 -1
  16. package/src/types/public-api/schema.d.ts +56 -2
  17. package/test/modules/accounting.test.ts +108 -21
  18. package/test/modules/consumers.test.ts +3 -1
  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,6 +1442,25 @@ declare const Syncs: (internalApi: InternalAPI) => {
1434
1442
  reference?: string | undefined;
1435
1443
  account_number?: string | undefined;
1436
1444
  }[]>;
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
+ }[]>;
1437
1464
  createFinancialEntry(financial_entry: {
1438
1465
  date: string;
1439
1466
  journal_id: string;
@@ -1449,7 +1476,9 @@ declare const Syncs: (internalApi: InternalAPI) => {
1449
1476
  }[];
1450
1477
  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;
@@ -1466,6 +1495,59 @@ declare const Syncs: (internalApi: InternalAPI) => {
1466
1495
  id: string;
1467
1496
  number: string;
1468
1497
  }>;
1498
+ createJournalEntry(journal_entry: {
1499
+ reference?: string | undefined;
1500
+ due_date?: string | undefined;
1501
+ journal_id: string;
1502
+ name: string;
1503
+ date: string;
1504
+ items: {
1505
+ account_number: string;
1506
+ partner_id?: string | undefined;
1507
+ description?: string | undefined;
1508
+ debit: number;
1509
+ credit: number;
1510
+ currency: string;
1511
+ currency_exchange_rate?: number | undefined;
1512
+ analytic_distribution?: {
1513
+ analytic_plan: string;
1514
+ analytic_accounts: {
1515
+ analytic_account: string;
1516
+ percentage: number;
1517
+ }[];
1518
+ }[] | undefined;
1519
+ pdf?: string | undefined;
1520
+ }[];
1521
+ }): import("../types/api").RequestData<{
1522
+ reference?: string | undefined;
1523
+ due_date?: string | undefined;
1524
+ journal_id: string;
1525
+ name?: string | undefined;
1526
+ journal_name: string;
1527
+ date?: string | undefined;
1528
+ posted?: boolean | undefined;
1529
+ id: string;
1530
+ items?: {
1531
+ account_number: string;
1532
+ partner_id?: string | undefined;
1533
+ description?: string | undefined;
1534
+ debit: number;
1535
+ credit: number;
1536
+ currency: string;
1537
+ currency_exchange_rate?: number | undefined;
1538
+ id: string;
1539
+ partner_name?: string | undefined;
1540
+ account_name: string;
1541
+ matching_numbers?: string[] | undefined;
1542
+ analytic_distribution?: {
1543
+ analytic_plan: string;
1544
+ analytic_accounts: {
1545
+ analytic_account: string;
1546
+ percentage: number;
1547
+ }[];
1548
+ }[] | undefined;
1549
+ }[] | undefined;
1550
+ }>;
1469
1551
  }>;
1470
1552
  invoicing: import("../types/api").ApiFor<{
1471
1553
  getInvoices(params: {
@@ -1694,7 +1776,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
1694
1776
  rate: number;
1695
1777
  type: "unknown" | "sale" | "purchase" | "both";
1696
1778
  code?: string | undefined;
1697
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
1779
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
1698
1780
  }[]>;
1699
1781
  getTaxById(taxId: string): import("../types/api").RequestData<{
1700
1782
  id: string;
@@ -1706,7 +1788,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
1706
1788
  rate: number;
1707
1789
  type: "unknown" | "sale" | "purchase" | "both";
1708
1790
  code?: string | undefined;
1709
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
1791
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
1710
1792
  }>;
1711
1793
  getOpportunities(): import("../types/api").RequestData<{
1712
1794
  id: string;
@@ -1761,7 +1843,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
1761
1843
  } | undefined;
1762
1844
  }>;
1763
1845
  getContacts(params?: {
1764
- contact_type?: "all" | "prospect" | "customer" | "supplier" | undefined;
1846
+ contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
1765
1847
  page?: number | undefined;
1766
1848
  size?: number | undefined;
1767
1849
  } | undefined): import("../types/api").RequestData<{
@@ -2978,6 +3060,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
2978
3060
  country?: string | undefined;
2979
3061
  }[] | undefined;
2980
3062
  account_number?: string | undefined;
3063
+ company_number?: string | undefined;
2981
3064
  id?: string | undefined;
2982
3065
  }[]>;
2983
3066
  createClient(client: {
@@ -3048,6 +3131,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3048
3131
  country?: string | undefined;
3049
3132
  }[] | undefined;
3050
3133
  account_number?: string | undefined;
3134
+ company_number?: string | undefined;
3051
3135
  id?: string | undefined;
3052
3136
  }>;
3053
3137
  getClient(clientId: string): import("../types/api").RequestData<{
@@ -3083,6 +3167,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3083
3167
  country?: string | undefined;
3084
3168
  }[] | undefined;
3085
3169
  account_number?: string | undefined;
3170
+ company_number?: string | undefined;
3086
3171
  id?: string | undefined;
3087
3172
  }>;
3088
3173
  updateClient(clientId: string, client: {
@@ -3150,6 +3235,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3150
3235
  country?: string | undefined;
3151
3236
  }[] | undefined;
3152
3237
  account_number?: string | undefined;
3238
+ company_number?: string | undefined;
3153
3239
  id?: string | undefined;
3154
3240
  }>;
3155
3241
  getSuppliers(): import("../types/api").RequestData<{
@@ -3185,6 +3271,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3185
3271
  country?: string | undefined;
3186
3272
  }[] | undefined;
3187
3273
  account_number?: string | undefined;
3274
+ company_number?: string | undefined;
3188
3275
  id?: string | undefined;
3189
3276
  }[]>;
3190
3277
  createSupplier(supplier: {
@@ -3255,6 +3342,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3255
3342
  country?: string | undefined;
3256
3343
  }[] | undefined;
3257
3344
  account_number?: string | undefined;
3345
+ company_number?: string | undefined;
3258
3346
  id?: string | undefined;
3259
3347
  }>;
3260
3348
  getSupplier(supplierId: string): import("../types/api").RequestData<{
@@ -3290,6 +3378,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3290
3378
  country?: string | undefined;
3291
3379
  }[] | undefined;
3292
3380
  account_number?: string | undefined;
3381
+ company_number?: string | undefined;
3293
3382
  id?: string | undefined;
3294
3383
  }>;
3295
3384
  updateSupplier(supplierId: string, supplier: {
@@ -3357,6 +3446,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3357
3446
  country?: string | undefined;
3358
3447
  }[] | undefined;
3359
3448
  account_number?: string | undefined;
3449
+ company_number?: string | undefined;
3360
3450
  id?: string | undefined;
3361
3451
  }>;
3362
3452
  createInvoice(invoice: {
@@ -3421,7 +3511,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3421
3511
  amount: number;
3422
3512
  dedicated_amount?: number | undefined;
3423
3513
  payment_date: string;
3424
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
3514
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
3425
3515
  journal_id: string;
3426
3516
  journal_name: string;
3427
3517
  reconciled?: boolean | undefined;
@@ -3512,7 +3602,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3512
3602
  amount: number;
3513
3603
  dedicated_amount?: number | undefined;
3514
3604
  payment_date: string;
3515
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
3605
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
3516
3606
  journal_id: string;
3517
3607
  journal_name: string;
3518
3608
  reconciled?: boolean | undefined;
@@ -3563,7 +3653,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3563
3653
  amount: number;
3564
3654
  dedicated_amount?: number | undefined;
3565
3655
  payment_date: string;
3566
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
3656
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
3567
3657
  journal_id: string;
3568
3658
  journal_name: string;
3569
3659
  reconciled?: boolean | undefined;
@@ -3610,7 +3700,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3610
3700
  amount: number;
3611
3701
  dedicated_amount?: number | undefined;
3612
3702
  payment_date: string;
3613
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
3703
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
3614
3704
  journal_id: string;
3615
3705
  journal_name: string;
3616
3706
  reconciled?: boolean | undefined;
@@ -3657,7 +3747,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3657
3747
  amount: number;
3658
3748
  dedicated_amount?: number | undefined;
3659
3749
  payment_date: string;
3660
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
3750
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
3661
3751
  journal_id: string;
3662
3752
  journal_name: string;
3663
3753
  reconciled?: boolean | undefined;
@@ -3708,7 +3798,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3708
3798
  amount: number;
3709
3799
  dedicated_amount?: number | undefined;
3710
3800
  payment_date: string;
3711
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
3801
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
3712
3802
  journal_id: string;
3713
3803
  journal_name: string;
3714
3804
  reconciled?: boolean | undefined;
@@ -3922,7 +4012,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
3922
4012
  amount: number;
3923
4013
  dedicated_amount?: number | undefined;
3924
4014
  payment_date: string;
3925
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
4015
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
3926
4016
  journal_id: string;
3927
4017
  journal_name: string;
3928
4018
  reconciled?: boolean | undefined;
@@ -3933,13 +4023,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
3933
4023
  id: string;
3934
4024
  code: string;
3935
4025
  name: string;
3936
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
4026
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
3937
4027
  }[]>;
3938
4028
  getVatCodes(): import("../types/api").RequestData<{
3939
4029
  id: string;
3940
4030
  code?: string | undefined;
3941
4031
  label: string;
3942
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
4032
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
3943
4033
  rate: number;
3944
4034
  type: "unknown" | "sale" | "purchase" | "both";
3945
4035
  }[]>;
@@ -4051,6 +4141,25 @@ declare const Syncs: (internalApi: InternalAPI) => {
4051
4141
  reference?: string | undefined;
4052
4142
  account_number?: string | undefined;
4053
4143
  }[]>;
4144
+ getOutstandings(params: {
4145
+ unposted_allowed: "true" | "false";
4146
+ type: "client" | "supplier";
4147
+ }): import("../types/api").RequestData<{
4148
+ id: string;
4149
+ number?: string | undefined;
4150
+ journal_id: string;
4151
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
4152
+ date: string;
4153
+ due_date?: string | undefined;
4154
+ currency: string;
4155
+ currency_exchange_rate: number;
4156
+ amount: number;
4157
+ open_amount: number;
4158
+ partner_id: string;
4159
+ account_number: string;
4160
+ reference?: string | undefined;
4161
+ posted: boolean;
4162
+ }[]>;
4054
4163
  createFinancialEntry(financial_entry: {
4055
4164
  date: string;
4056
4165
  journal_id: string;
@@ -4066,7 +4175,9 @@ declare const Syncs: (internalApi: InternalAPI) => {
4066
4175
  }[];
4067
4176
  number?: string | undefined;
4068
4177
  pdf?: string | undefined;
4069
- }): import("../types/api").RequestData<{
4178
+ }, params: {
4179
+ financial_counterpart_account?: string | undefined;
4180
+ } | undefined): import("../types/api").RequestData<{
4070
4181
  date: string;
4071
4182
  journal_id: string;
4072
4183
  currency: string;
@@ -4083,6 +4194,59 @@ declare const Syncs: (internalApi: InternalAPI) => {
4083
4194
  id: string;
4084
4195
  number: string;
4085
4196
  }>;
4197
+ createJournalEntry(journal_entry: {
4198
+ reference?: string | undefined;
4199
+ due_date?: string | undefined;
4200
+ journal_id: string;
4201
+ name: string;
4202
+ date: string;
4203
+ items: {
4204
+ account_number: string;
4205
+ partner_id?: string | undefined;
4206
+ description?: string | undefined;
4207
+ debit: number;
4208
+ credit: number;
4209
+ currency: string;
4210
+ currency_exchange_rate?: number | undefined;
4211
+ analytic_distribution?: {
4212
+ analytic_plan: string;
4213
+ analytic_accounts: {
4214
+ analytic_account: string;
4215
+ percentage: number;
4216
+ }[];
4217
+ }[] | undefined;
4218
+ pdf?: string | undefined;
4219
+ }[];
4220
+ }): import("../types/api").RequestData<{
4221
+ reference?: string | undefined;
4222
+ due_date?: string | undefined;
4223
+ journal_id: string;
4224
+ name?: string | undefined;
4225
+ journal_name: string;
4226
+ date?: string | undefined;
4227
+ posted?: boolean | undefined;
4228
+ id: string;
4229
+ items?: {
4230
+ account_number: string;
4231
+ partner_id?: string | undefined;
4232
+ description?: string | undefined;
4233
+ debit: number;
4234
+ credit: number;
4235
+ currency: string;
4236
+ currency_exchange_rate?: number | undefined;
4237
+ id: string;
4238
+ partner_name?: string | undefined;
4239
+ account_name: string;
4240
+ matching_numbers?: string[] | undefined;
4241
+ analytic_distribution?: {
4242
+ analytic_plan: string;
4243
+ analytic_accounts: {
4244
+ analytic_account: string;
4245
+ percentage: number;
4246
+ }[];
4247
+ }[] | undefined;
4248
+ }[] | undefined;
4249
+ }>;
4086
4250
  }>;
4087
4251
  invoicing: import("../types/api").ApiFor<{
4088
4252
  getInvoices(params: {
@@ -4311,7 +4475,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
4311
4475
  rate: number;
4312
4476
  type: "unknown" | "sale" | "purchase" | "both";
4313
4477
  code?: string | undefined;
4314
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
4478
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
4315
4479
  }[]>;
4316
4480
  getTaxById(taxId: string): import("../types/api").RequestData<{
4317
4481
  id: string;
@@ -4323,7 +4487,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
4323
4487
  rate: number;
4324
4488
  type: "unknown" | "sale" | "purchase" | "both";
4325
4489
  code?: string | undefined;
4326
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
4490
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
4327
4491
  }>;
4328
4492
  getOpportunities(): import("../types/api").RequestData<{
4329
4493
  id: string;
@@ -4378,7 +4542,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
4378
4542
  } | undefined;
4379
4543
  }>;
4380
4544
  getContacts(params?: {
4381
- contact_type?: "all" | "prospect" | "customer" | "supplier" | undefined;
4545
+ contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
4382
4546
  page?: number | undefined;
4383
4547
  size?: number | undefined;
4384
4548
  } | undefined): import("../types/api").RequestData<{
@@ -5599,6 +5763,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
5599
5763
  country?: string | undefined;
5600
5764
  }[] | undefined;
5601
5765
  account_number?: string | undefined;
5766
+ company_number?: string | undefined;
5602
5767
  id?: string | undefined;
5603
5768
  }[]>;
5604
5769
  createClient(client: {
@@ -5669,6 +5834,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
5669
5834
  country?: string | undefined;
5670
5835
  }[] | undefined;
5671
5836
  account_number?: string | undefined;
5837
+ company_number?: string | undefined;
5672
5838
  id?: string | undefined;
5673
5839
  }>;
5674
5840
  getClient(clientId: string): import("../types/api").RequestData<{
@@ -5704,6 +5870,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
5704
5870
  country?: string | undefined;
5705
5871
  }[] | undefined;
5706
5872
  account_number?: string | undefined;
5873
+ company_number?: string | undefined;
5707
5874
  id?: string | undefined;
5708
5875
  }>;
5709
5876
  updateClient(clientId: string, client: {
@@ -5771,6 +5938,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
5771
5938
  country?: string | undefined;
5772
5939
  }[] | undefined;
5773
5940
  account_number?: string | undefined;
5941
+ company_number?: string | undefined;
5774
5942
  id?: string | undefined;
5775
5943
  }>;
5776
5944
  getSuppliers(): import("../types/api").RequestData<{
@@ -5806,6 +5974,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
5806
5974
  country?: string | undefined;
5807
5975
  }[] | undefined;
5808
5976
  account_number?: string | undefined;
5977
+ company_number?: string | undefined;
5809
5978
  id?: string | undefined;
5810
5979
  }[]>;
5811
5980
  createSupplier(supplier: {
@@ -5876,6 +6045,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
5876
6045
  country?: string | undefined;
5877
6046
  }[] | undefined;
5878
6047
  account_number?: string | undefined;
6048
+ company_number?: string | undefined;
5879
6049
  id?: string | undefined;
5880
6050
  }>;
5881
6051
  getSupplier(supplierId: string): import("../types/api").RequestData<{
@@ -5911,6 +6081,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
5911
6081
  country?: string | undefined;
5912
6082
  }[] | undefined;
5913
6083
  account_number?: string | undefined;
6084
+ company_number?: string | undefined;
5914
6085
  id?: string | undefined;
5915
6086
  }>;
5916
6087
  updateSupplier(supplierId: string, supplier: {
@@ -5978,6 +6149,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
5978
6149
  country?: string | undefined;
5979
6150
  }[] | undefined;
5980
6151
  account_number?: string | undefined;
6152
+ company_number?: string | undefined;
5981
6153
  id?: string | undefined;
5982
6154
  }>;
5983
6155
  createInvoice(invoice: {
@@ -6042,7 +6214,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
6042
6214
  amount: number;
6043
6215
  dedicated_amount?: number | undefined;
6044
6216
  payment_date: string;
6045
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
6217
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
6046
6218
  journal_id: string;
6047
6219
  journal_name: string;
6048
6220
  reconciled?: boolean | undefined;
@@ -6133,7 +6305,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
6133
6305
  amount: number;
6134
6306
  dedicated_amount?: number | undefined;
6135
6307
  payment_date: string;
6136
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
6308
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
6137
6309
  journal_id: string;
6138
6310
  journal_name: string;
6139
6311
  reconciled?: boolean | undefined;
@@ -6184,7 +6356,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
6184
6356
  amount: number;
6185
6357
  dedicated_amount?: number | undefined;
6186
6358
  payment_date: string;
6187
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
6359
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
6188
6360
  journal_id: string;
6189
6361
  journal_name: string;
6190
6362
  reconciled?: boolean | undefined;
@@ -6231,7 +6403,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
6231
6403
  amount: number;
6232
6404
  dedicated_amount?: number | undefined;
6233
6405
  payment_date: string;
6234
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
6406
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
6235
6407
  journal_id: string;
6236
6408
  journal_name: string;
6237
6409
  reconciled?: boolean | undefined;
@@ -6278,7 +6450,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
6278
6450
  amount: number;
6279
6451
  dedicated_amount?: number | undefined;
6280
6452
  payment_date: string;
6281
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
6453
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
6282
6454
  journal_id: string;
6283
6455
  journal_name: string;
6284
6456
  reconciled?: boolean | undefined;
@@ -6329,7 +6501,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
6329
6501
  amount: number;
6330
6502
  dedicated_amount?: number | undefined;
6331
6503
  payment_date: string;
6332
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
6504
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
6333
6505
  journal_id: string;
6334
6506
  journal_name: string;
6335
6507
  reconciled?: boolean | undefined;
@@ -6543,7 +6715,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
6543
6715
  amount: number;
6544
6716
  dedicated_amount?: number | undefined;
6545
6717
  payment_date: string;
6546
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
6718
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
6547
6719
  journal_id: string;
6548
6720
  journal_name: string;
6549
6721
  reconciled?: boolean | undefined;
@@ -6554,13 +6726,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
6554
6726
  id: string;
6555
6727
  code: string;
6556
6728
  name: string;
6557
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
6729
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
6558
6730
  }[]>;
6559
6731
  getVatCodes(): import("../types/api").RequestData<{
6560
6732
  id: string;
6561
6733
  code?: string | undefined;
6562
6734
  label: string;
6563
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
6735
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
6564
6736
  rate: number;
6565
6737
  type: "unknown" | "sale" | "purchase" | "both";
6566
6738
  }[]>;
@@ -6672,6 +6844,25 @@ declare const Syncs: (internalApi: InternalAPI) => {
6672
6844
  reference?: string | undefined;
6673
6845
  account_number?: string | undefined;
6674
6846
  }[]>;
6847
+ getOutstandings(params: {
6848
+ unposted_allowed: "true" | "false";
6849
+ type: "client" | "supplier";
6850
+ }): import("../types/api").RequestData<{
6851
+ id: string;
6852
+ number?: string | undefined;
6853
+ journal_id: string;
6854
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
6855
+ date: string;
6856
+ due_date?: string | undefined;
6857
+ currency: string;
6858
+ currency_exchange_rate: number;
6859
+ amount: number;
6860
+ open_amount: number;
6861
+ partner_id: string;
6862
+ account_number: string;
6863
+ reference?: string | undefined;
6864
+ posted: boolean;
6865
+ }[]>;
6675
6866
  createFinancialEntry(financial_entry: {
6676
6867
  date: string;
6677
6868
  journal_id: string;
@@ -6687,7 +6878,9 @@ declare const Syncs: (internalApi: InternalAPI) => {
6687
6878
  }[];
6688
6879
  number?: string | undefined;
6689
6880
  pdf?: string | undefined;
6690
- }): import("../types/api").RequestData<{
6881
+ }, params: {
6882
+ financial_counterpart_account?: string | undefined;
6883
+ } | undefined): import("../types/api").RequestData<{
6691
6884
  date: string;
6692
6885
  journal_id: string;
6693
6886
  currency: string;
@@ -6704,6 +6897,59 @@ declare const Syncs: (internalApi: InternalAPI) => {
6704
6897
  id: string;
6705
6898
  number: string;
6706
6899
  }>;
6900
+ createJournalEntry(journal_entry: {
6901
+ reference?: string | undefined;
6902
+ due_date?: string | undefined;
6903
+ journal_id: string;
6904
+ name: string;
6905
+ date: string;
6906
+ items: {
6907
+ account_number: string;
6908
+ partner_id?: string | undefined;
6909
+ description?: string | undefined;
6910
+ debit: number;
6911
+ credit: number;
6912
+ currency: string;
6913
+ currency_exchange_rate?: number | undefined;
6914
+ analytic_distribution?: {
6915
+ analytic_plan: string;
6916
+ analytic_accounts: {
6917
+ analytic_account: string;
6918
+ percentage: number;
6919
+ }[];
6920
+ }[] | undefined;
6921
+ pdf?: string | undefined;
6922
+ }[];
6923
+ }): import("../types/api").RequestData<{
6924
+ reference?: string | undefined;
6925
+ due_date?: string | undefined;
6926
+ journal_id: string;
6927
+ name?: string | undefined;
6928
+ journal_name: string;
6929
+ date?: string | undefined;
6930
+ posted?: boolean | undefined;
6931
+ id: string;
6932
+ items?: {
6933
+ account_number: string;
6934
+ partner_id?: string | undefined;
6935
+ description?: string | undefined;
6936
+ debit: number;
6937
+ credit: number;
6938
+ currency: string;
6939
+ currency_exchange_rate?: number | undefined;
6940
+ id: string;
6941
+ partner_name?: string | undefined;
6942
+ account_name: string;
6943
+ matching_numbers?: string[] | undefined;
6944
+ analytic_distribution?: {
6945
+ analytic_plan: string;
6946
+ analytic_accounts: {
6947
+ analytic_account: string;
6948
+ percentage: number;
6949
+ }[];
6950
+ }[] | undefined;
6951
+ }[] | undefined;
6952
+ }>;
6707
6953
  }>;
6708
6954
  invoicing: import("../types/api").ApiFor<{
6709
6955
  getInvoices(params: {
@@ -6932,7 +7178,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
6932
7178
  rate: number;
6933
7179
  type: "unknown" | "sale" | "purchase" | "both";
6934
7180
  code?: string | undefined;
6935
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
7181
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
6936
7182
  }[]>;
6937
7183
  getTaxById(taxId: string): import("../types/api").RequestData<{
6938
7184
  id: string;
@@ -6944,7 +7190,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
6944
7190
  rate: number;
6945
7191
  type: "unknown" | "sale" | "purchase" | "both";
6946
7192
  code?: string | undefined;
6947
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
7193
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
6948
7194
  }>;
6949
7195
  getOpportunities(): import("../types/api").RequestData<{
6950
7196
  id: string;
@@ -6999,7 +7245,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
6999
7245
  } | undefined;
7000
7246
  }>;
7001
7247
  getContacts(params?: {
7002
- contact_type?: "all" | "prospect" | "customer" | "supplier" | undefined;
7248
+ contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
7003
7249
  page?: number | undefined;
7004
7250
  size?: number | undefined;
7005
7251
  } | undefined): import("../types/api").RequestData<{
@@ -8220,6 +8466,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8220
8466
  country?: string | undefined;
8221
8467
  }[] | undefined;
8222
8468
  account_number?: string | undefined;
8469
+ company_number?: string | undefined;
8223
8470
  id?: string | undefined;
8224
8471
  }[]>;
8225
8472
  createClient(client: {
@@ -8290,6 +8537,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8290
8537
  country?: string | undefined;
8291
8538
  }[] | undefined;
8292
8539
  account_number?: string | undefined;
8540
+ company_number?: string | undefined;
8293
8541
  id?: string | undefined;
8294
8542
  }>;
8295
8543
  getClient(clientId: string): import("../types/api").RequestData<{
@@ -8325,6 +8573,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8325
8573
  country?: string | undefined;
8326
8574
  }[] | undefined;
8327
8575
  account_number?: string | undefined;
8576
+ company_number?: string | undefined;
8328
8577
  id?: string | undefined;
8329
8578
  }>;
8330
8579
  updateClient(clientId: string, client: {
@@ -8392,6 +8641,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8392
8641
  country?: string | undefined;
8393
8642
  }[] | undefined;
8394
8643
  account_number?: string | undefined;
8644
+ company_number?: string | undefined;
8395
8645
  id?: string | undefined;
8396
8646
  }>;
8397
8647
  getSuppliers(): import("../types/api").RequestData<{
@@ -8427,6 +8677,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8427
8677
  country?: string | undefined;
8428
8678
  }[] | undefined;
8429
8679
  account_number?: string | undefined;
8680
+ company_number?: string | undefined;
8430
8681
  id?: string | undefined;
8431
8682
  }[]>;
8432
8683
  createSupplier(supplier: {
@@ -8497,6 +8748,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8497
8748
  country?: string | undefined;
8498
8749
  }[] | undefined;
8499
8750
  account_number?: string | undefined;
8751
+ company_number?: string | undefined;
8500
8752
  id?: string | undefined;
8501
8753
  }>;
8502
8754
  getSupplier(supplierId: string): import("../types/api").RequestData<{
@@ -8532,6 +8784,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8532
8784
  country?: string | undefined;
8533
8785
  }[] | undefined;
8534
8786
  account_number?: string | undefined;
8787
+ company_number?: string | undefined;
8535
8788
  id?: string | undefined;
8536
8789
  }>;
8537
8790
  updateSupplier(supplierId: string, supplier: {
@@ -8599,6 +8852,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8599
8852
  country?: string | undefined;
8600
8853
  }[] | undefined;
8601
8854
  account_number?: string | undefined;
8855
+ company_number?: string | undefined;
8602
8856
  id?: string | undefined;
8603
8857
  }>;
8604
8858
  createInvoice(invoice: {
@@ -8663,7 +8917,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8663
8917
  amount: number;
8664
8918
  dedicated_amount?: number | undefined;
8665
8919
  payment_date: string;
8666
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
8920
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
8667
8921
  journal_id: string;
8668
8922
  journal_name: string;
8669
8923
  reconciled?: boolean | undefined;
@@ -8754,7 +9008,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8754
9008
  amount: number;
8755
9009
  dedicated_amount?: number | undefined;
8756
9010
  payment_date: string;
8757
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
9011
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
8758
9012
  journal_id: string;
8759
9013
  journal_name: string;
8760
9014
  reconciled?: boolean | undefined;
@@ -8805,7 +9059,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8805
9059
  amount: number;
8806
9060
  dedicated_amount?: number | undefined;
8807
9061
  payment_date: string;
8808
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
9062
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
8809
9063
  journal_id: string;
8810
9064
  journal_name: string;
8811
9065
  reconciled?: boolean | undefined;
@@ -8852,7 +9106,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8852
9106
  amount: number;
8853
9107
  dedicated_amount?: number | undefined;
8854
9108
  payment_date: string;
8855
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
9109
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
8856
9110
  journal_id: string;
8857
9111
  journal_name: string;
8858
9112
  reconciled?: boolean | undefined;
@@ -8899,7 +9153,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8899
9153
  amount: number;
8900
9154
  dedicated_amount?: number | undefined;
8901
9155
  payment_date: string;
8902
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
9156
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
8903
9157
  journal_id: string;
8904
9158
  journal_name: string;
8905
9159
  reconciled?: boolean | undefined;
@@ -8950,7 +9204,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
8950
9204
  amount: number;
8951
9205
  dedicated_amount?: number | undefined;
8952
9206
  payment_date: string;
8953
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
9207
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
8954
9208
  journal_id: string;
8955
9209
  journal_name: string;
8956
9210
  reconciled?: boolean | undefined;
@@ -9164,7 +9418,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
9164
9418
  amount: number;
9165
9419
  dedicated_amount?: number | undefined;
9166
9420
  payment_date: string;
9167
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
9421
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
9168
9422
  journal_id: string;
9169
9423
  journal_name: string;
9170
9424
  reconciled?: boolean | undefined;
@@ -9175,13 +9429,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
9175
9429
  id: string;
9176
9430
  code: string;
9177
9431
  name: string;
9178
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
9432
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
9179
9433
  }[]>;
9180
9434
  getVatCodes(): import("../types/api").RequestData<{
9181
9435
  id: string;
9182
9436
  code?: string | undefined;
9183
9437
  label: string;
9184
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
9438
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
9185
9439
  rate: number;
9186
9440
  type: "unknown" | "sale" | "purchase" | "both";
9187
9441
  }[]>;
@@ -9293,6 +9547,25 @@ declare const Syncs: (internalApi: InternalAPI) => {
9293
9547
  reference?: string | undefined;
9294
9548
  account_number?: string | undefined;
9295
9549
  }[]>;
9550
+ getOutstandings(params: {
9551
+ unposted_allowed: "true" | "false";
9552
+ type: "client" | "supplier";
9553
+ }): import("../types/api").RequestData<{
9554
+ id: string;
9555
+ number?: string | undefined;
9556
+ journal_id: string;
9557
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
9558
+ date: string;
9559
+ due_date?: string | undefined;
9560
+ currency: string;
9561
+ currency_exchange_rate: number;
9562
+ amount: number;
9563
+ open_amount: number;
9564
+ partner_id: string;
9565
+ account_number: string;
9566
+ reference?: string | undefined;
9567
+ posted: boolean;
9568
+ }[]>;
9296
9569
  createFinancialEntry(financial_entry: {
9297
9570
  date: string;
9298
9571
  journal_id: string;
@@ -9308,7 +9581,9 @@ declare const Syncs: (internalApi: InternalAPI) => {
9308
9581
  }[];
9309
9582
  number?: string | undefined;
9310
9583
  pdf?: string | undefined;
9311
- }): import("../types/api").RequestData<{
9584
+ }, params: {
9585
+ financial_counterpart_account?: string | undefined;
9586
+ } | undefined): import("../types/api").RequestData<{
9312
9587
  date: string;
9313
9588
  journal_id: string;
9314
9589
  currency: string;
@@ -9325,12 +9600,65 @@ declare const Syncs: (internalApi: InternalAPI) => {
9325
9600
  id: string;
9326
9601
  number: string;
9327
9602
  }>;
9328
- }>;
9329
- invoicing: import("../types/api").ApiFor<{
9330
- getInvoices(params: {
9331
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
9332
- date_from?: string | undefined;
9333
- date_to?: string | undefined;
9603
+ createJournalEntry(journal_entry: {
9604
+ reference?: string | undefined;
9605
+ due_date?: string | undefined;
9606
+ journal_id: string;
9607
+ name: string;
9608
+ date: string;
9609
+ items: {
9610
+ account_number: string;
9611
+ partner_id?: string | undefined;
9612
+ description?: string | undefined;
9613
+ debit: number;
9614
+ credit: number;
9615
+ currency: string;
9616
+ currency_exchange_rate?: number | undefined;
9617
+ analytic_distribution?: {
9618
+ analytic_plan: string;
9619
+ analytic_accounts: {
9620
+ analytic_account: string;
9621
+ percentage: number;
9622
+ }[];
9623
+ }[] | undefined;
9624
+ pdf?: string | undefined;
9625
+ }[];
9626
+ }): import("../types/api").RequestData<{
9627
+ reference?: string | undefined;
9628
+ due_date?: string | undefined;
9629
+ journal_id: string;
9630
+ name?: string | undefined;
9631
+ journal_name: string;
9632
+ date?: string | undefined;
9633
+ posted?: boolean | undefined;
9634
+ id: string;
9635
+ items?: {
9636
+ account_number: string;
9637
+ partner_id?: string | undefined;
9638
+ description?: string | undefined;
9639
+ debit: number;
9640
+ credit: number;
9641
+ currency: string;
9642
+ currency_exchange_rate?: number | undefined;
9643
+ id: string;
9644
+ partner_name?: string | undefined;
9645
+ account_name: string;
9646
+ matching_numbers?: string[] | undefined;
9647
+ analytic_distribution?: {
9648
+ analytic_plan: string;
9649
+ analytic_accounts: {
9650
+ analytic_account: string;
9651
+ percentage: number;
9652
+ }[];
9653
+ }[] | undefined;
9654
+ }[] | undefined;
9655
+ }>;
9656
+ }>;
9657
+ invoicing: import("../types/api").ApiFor<{
9658
+ getInvoices(params: {
9659
+ invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
9660
+ date_from?: string | undefined;
9661
+ date_to?: string | undefined;
9334
9662
  page?: number | undefined;
9335
9663
  size?: number | undefined;
9336
9664
  } | undefined): import("../types/api").RequestData<{
@@ -9553,7 +9881,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
9553
9881
  rate: number;
9554
9882
  type: "unknown" | "sale" | "purchase" | "both";
9555
9883
  code?: string | undefined;
9556
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
9884
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
9557
9885
  }[]>;
9558
9886
  getTaxById(taxId: string): import("../types/api").RequestData<{
9559
9887
  id: string;
@@ -9565,7 +9893,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
9565
9893
  rate: number;
9566
9894
  type: "unknown" | "sale" | "purchase" | "both";
9567
9895
  code?: string | undefined;
9568
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
9896
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
9569
9897
  }>;
9570
9898
  getOpportunities(): import("../types/api").RequestData<{
9571
9899
  id: string;
@@ -9620,7 +9948,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
9620
9948
  } | undefined;
9621
9949
  }>;
9622
9950
  getContacts(params?: {
9623
- contact_type?: "all" | "prospect" | "customer" | "supplier" | undefined;
9951
+ contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
9624
9952
  page?: number | undefined;
9625
9953
  size?: number | undefined;
9626
9954
  } | undefined): import("../types/api").RequestData<{
@@ -10841,6 +11169,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
10841
11169
  country?: string | undefined;
10842
11170
  }[] | undefined;
10843
11171
  account_number?: string | undefined;
11172
+ company_number?: string | undefined;
10844
11173
  id?: string | undefined;
10845
11174
  }[]>;
10846
11175
  createClient(client: {
@@ -10911,6 +11240,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
10911
11240
  country?: string | undefined;
10912
11241
  }[] | undefined;
10913
11242
  account_number?: string | undefined;
11243
+ company_number?: string | undefined;
10914
11244
  id?: string | undefined;
10915
11245
  }>;
10916
11246
  getClient(clientId: string): import("../types/api").RequestData<{
@@ -10946,6 +11276,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
10946
11276
  country?: string | undefined;
10947
11277
  }[] | undefined;
10948
11278
  account_number?: string | undefined;
11279
+ company_number?: string | undefined;
10949
11280
  id?: string | undefined;
10950
11281
  }>;
10951
11282
  updateClient(clientId: string, client: {
@@ -11013,6 +11344,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
11013
11344
  country?: string | undefined;
11014
11345
  }[] | undefined;
11015
11346
  account_number?: string | undefined;
11347
+ company_number?: string | undefined;
11016
11348
  id?: string | undefined;
11017
11349
  }>;
11018
11350
  getSuppliers(): import("../types/api").RequestData<{
@@ -11048,6 +11380,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
11048
11380
  country?: string | undefined;
11049
11381
  }[] | undefined;
11050
11382
  account_number?: string | undefined;
11383
+ company_number?: string | undefined;
11051
11384
  id?: string | undefined;
11052
11385
  }[]>;
11053
11386
  createSupplier(supplier: {
@@ -11118,6 +11451,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
11118
11451
  country?: string | undefined;
11119
11452
  }[] | undefined;
11120
11453
  account_number?: string | undefined;
11454
+ company_number?: string | undefined;
11121
11455
  id?: string | undefined;
11122
11456
  }>;
11123
11457
  getSupplier(supplierId: string): import("../types/api").RequestData<{
@@ -11153,6 +11487,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
11153
11487
  country?: string | undefined;
11154
11488
  }[] | undefined;
11155
11489
  account_number?: string | undefined;
11490
+ company_number?: string | undefined;
11156
11491
  id?: string | undefined;
11157
11492
  }>;
11158
11493
  updateSupplier(supplierId: string, supplier: {
@@ -11220,6 +11555,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
11220
11555
  country?: string | undefined;
11221
11556
  }[] | undefined;
11222
11557
  account_number?: string | undefined;
11558
+ company_number?: string | undefined;
11223
11559
  id?: string | undefined;
11224
11560
  }>;
11225
11561
  createInvoice(invoice: {
@@ -11284,7 +11620,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
11284
11620
  amount: number;
11285
11621
  dedicated_amount?: number | undefined;
11286
11622
  payment_date: string;
11287
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
11623
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
11288
11624
  journal_id: string;
11289
11625
  journal_name: string;
11290
11626
  reconciled?: boolean | undefined;
@@ -11375,7 +11711,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
11375
11711
  amount: number;
11376
11712
  dedicated_amount?: number | undefined;
11377
11713
  payment_date: string;
11378
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
11714
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
11379
11715
  journal_id: string;
11380
11716
  journal_name: string;
11381
11717
  reconciled?: boolean | undefined;
@@ -11426,7 +11762,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
11426
11762
  amount: number;
11427
11763
  dedicated_amount?: number | undefined;
11428
11764
  payment_date: string;
11429
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
11765
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
11430
11766
  journal_id: string;
11431
11767
  journal_name: string;
11432
11768
  reconciled?: boolean | undefined;
@@ -11473,7 +11809,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
11473
11809
  amount: number;
11474
11810
  dedicated_amount?: number | undefined;
11475
11811
  payment_date: string;
11476
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
11812
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
11477
11813
  journal_id: string;
11478
11814
  journal_name: string;
11479
11815
  reconciled?: boolean | undefined;
@@ -11520,7 +11856,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
11520
11856
  amount: number;
11521
11857
  dedicated_amount?: number | undefined;
11522
11858
  payment_date: string;
11523
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
11859
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
11524
11860
  journal_id: string;
11525
11861
  journal_name: string;
11526
11862
  reconciled?: boolean | undefined;
@@ -11571,7 +11907,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
11571
11907
  amount: number;
11572
11908
  dedicated_amount?: number | undefined;
11573
11909
  payment_date: string;
11574
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
11910
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
11575
11911
  journal_id: string;
11576
11912
  journal_name: string;
11577
11913
  reconciled?: boolean | undefined;
@@ -11785,7 +12121,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
11785
12121
  amount: number;
11786
12122
  dedicated_amount?: number | undefined;
11787
12123
  payment_date: string;
11788
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
12124
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
11789
12125
  journal_id: string;
11790
12126
  journal_name: string;
11791
12127
  reconciled?: boolean | undefined;
@@ -11796,13 +12132,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
11796
12132
  id: string;
11797
12133
  code: string;
11798
12134
  name: string;
11799
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
12135
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
11800
12136
  }[]>;
11801
12137
  getVatCodes(): import("../types/api").RequestData<{
11802
12138
  id: string;
11803
12139
  code?: string | undefined;
11804
12140
  label: string;
11805
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
12141
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
11806
12142
  rate: number;
11807
12143
  type: "unknown" | "sale" | "purchase" | "both";
11808
12144
  }[]>;
@@ -11914,6 +12250,25 @@ declare const Syncs: (internalApi: InternalAPI) => {
11914
12250
  reference?: string | undefined;
11915
12251
  account_number?: string | undefined;
11916
12252
  }[]>;
12253
+ getOutstandings(params: {
12254
+ unposted_allowed: "true" | "false";
12255
+ type: "client" | "supplier";
12256
+ }): import("../types/api").RequestData<{
12257
+ id: string;
12258
+ number?: string | undefined;
12259
+ journal_id: string;
12260
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
12261
+ date: string;
12262
+ due_date?: string | undefined;
12263
+ currency: string;
12264
+ currency_exchange_rate: number;
12265
+ amount: number;
12266
+ open_amount: number;
12267
+ partner_id: string;
12268
+ account_number: string;
12269
+ reference?: string | undefined;
12270
+ posted: boolean;
12271
+ }[]>;
11917
12272
  createFinancialEntry(financial_entry: {
11918
12273
  date: string;
11919
12274
  journal_id: string;
@@ -11929,7 +12284,9 @@ declare const Syncs: (internalApi: InternalAPI) => {
11929
12284
  }[];
11930
12285
  number?: string | undefined;
11931
12286
  pdf?: string | undefined;
11932
- }): import("../types/api").RequestData<{
12287
+ }, params: {
12288
+ financial_counterpart_account?: string | undefined;
12289
+ } | undefined): import("../types/api").RequestData<{
11933
12290
  date: string;
11934
12291
  journal_id: string;
11935
12292
  currency: string;
@@ -11946,6 +12303,59 @@ declare const Syncs: (internalApi: InternalAPI) => {
11946
12303
  id: string;
11947
12304
  number: string;
11948
12305
  }>;
12306
+ createJournalEntry(journal_entry: {
12307
+ reference?: string | undefined;
12308
+ due_date?: string | undefined;
12309
+ journal_id: string;
12310
+ name: string;
12311
+ date: string;
12312
+ items: {
12313
+ account_number: string;
12314
+ partner_id?: string | undefined;
12315
+ description?: string | undefined;
12316
+ debit: number;
12317
+ credit: number;
12318
+ currency: string;
12319
+ currency_exchange_rate?: number | undefined;
12320
+ analytic_distribution?: {
12321
+ analytic_plan: string;
12322
+ analytic_accounts: {
12323
+ analytic_account: string;
12324
+ percentage: number;
12325
+ }[];
12326
+ }[] | undefined;
12327
+ pdf?: string | undefined;
12328
+ }[];
12329
+ }): import("../types/api").RequestData<{
12330
+ reference?: string | undefined;
12331
+ due_date?: string | undefined;
12332
+ journal_id: string;
12333
+ name?: string | undefined;
12334
+ journal_name: string;
12335
+ date?: string | undefined;
12336
+ posted?: boolean | undefined;
12337
+ id: string;
12338
+ items?: {
12339
+ account_number: string;
12340
+ partner_id?: string | undefined;
12341
+ description?: string | undefined;
12342
+ debit: number;
12343
+ credit: number;
12344
+ currency: string;
12345
+ currency_exchange_rate?: number | undefined;
12346
+ id: string;
12347
+ partner_name?: string | undefined;
12348
+ account_name: string;
12349
+ matching_numbers?: string[] | undefined;
12350
+ analytic_distribution?: {
12351
+ analytic_plan: string;
12352
+ analytic_accounts: {
12353
+ analytic_account: string;
12354
+ percentage: number;
12355
+ }[];
12356
+ }[] | undefined;
12357
+ }[] | undefined;
12358
+ }>;
11949
12359
  }>;
11950
12360
  invoicing: import("../types/api").ApiFor<{
11951
12361
  getInvoices(params: {
@@ -12174,7 +12584,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
12174
12584
  rate: number;
12175
12585
  type: "unknown" | "sale" | "purchase" | "both";
12176
12586
  code?: string | undefined;
12177
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
12587
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
12178
12588
  }[]>;
12179
12589
  getTaxById(taxId: string): import("../types/api").RequestData<{
12180
12590
  id: string;
@@ -12186,7 +12596,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
12186
12596
  rate: number;
12187
12597
  type: "unknown" | "sale" | "purchase" | "both";
12188
12598
  code?: string | undefined;
12189
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
12599
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
12190
12600
  }>;
12191
12601
  getOpportunities(): import("../types/api").RequestData<{
12192
12602
  id: string;
@@ -12241,7 +12651,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
12241
12651
  } | undefined;
12242
12652
  }>;
12243
12653
  getContacts(params?: {
12244
- contact_type?: "all" | "prospect" | "customer" | "supplier" | undefined;
12654
+ contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
12245
12655
  page?: number | undefined;
12246
12656
  size?: number | undefined;
12247
12657
  } | undefined): import("../types/api").RequestData<{
@@ -13459,6 +13869,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
13459
13869
  country?: string | undefined;
13460
13870
  }[] | undefined;
13461
13871
  account_number?: string | undefined;
13872
+ company_number?: string | undefined;
13462
13873
  id?: string | undefined;
13463
13874
  }[]>;
13464
13875
  createClient(client: {
@@ -13529,6 +13940,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
13529
13940
  country?: string | undefined;
13530
13941
  }[] | undefined;
13531
13942
  account_number?: string | undefined;
13943
+ company_number?: string | undefined;
13532
13944
  id?: string | undefined;
13533
13945
  }>;
13534
13946
  getClient(clientId: string): import("../types/api").RequestData<{
@@ -13564,6 +13976,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
13564
13976
  country?: string | undefined;
13565
13977
  }[] | undefined;
13566
13978
  account_number?: string | undefined;
13979
+ company_number?: string | undefined;
13567
13980
  id?: string | undefined;
13568
13981
  }>;
13569
13982
  updateClient(clientId: string, client: {
@@ -13631,6 +14044,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
13631
14044
  country?: string | undefined;
13632
14045
  }[] | undefined;
13633
14046
  account_number?: string | undefined;
14047
+ company_number?: string | undefined;
13634
14048
  id?: string | undefined;
13635
14049
  }>;
13636
14050
  getSuppliers(): import("../types/api").RequestData<{
@@ -13666,6 +14080,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
13666
14080
  country?: string | undefined;
13667
14081
  }[] | undefined;
13668
14082
  account_number?: string | undefined;
14083
+ company_number?: string | undefined;
13669
14084
  id?: string | undefined;
13670
14085
  }[]>;
13671
14086
  createSupplier(supplier: {
@@ -13736,6 +14151,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
13736
14151
  country?: string | undefined;
13737
14152
  }[] | undefined;
13738
14153
  account_number?: string | undefined;
14154
+ company_number?: string | undefined;
13739
14155
  id?: string | undefined;
13740
14156
  }>;
13741
14157
  getSupplier(supplierId: string): import("../types/api").RequestData<{
@@ -13771,6 +14187,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
13771
14187
  country?: string | undefined;
13772
14188
  }[] | undefined;
13773
14189
  account_number?: string | undefined;
14190
+ company_number?: string | undefined;
13774
14191
  id?: string | undefined;
13775
14192
  }>;
13776
14193
  updateSupplier(supplierId: string, supplier: {
@@ -13838,6 +14255,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
13838
14255
  country?: string | undefined;
13839
14256
  }[] | undefined;
13840
14257
  account_number?: string | undefined;
14258
+ company_number?: string | undefined;
13841
14259
  id?: string | undefined;
13842
14260
  }>;
13843
14261
  createInvoice(invoice: {
@@ -13902,7 +14320,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
13902
14320
  amount: number;
13903
14321
  dedicated_amount?: number | undefined;
13904
14322
  payment_date: string;
13905
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
14323
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
13906
14324
  journal_id: string;
13907
14325
  journal_name: string;
13908
14326
  reconciled?: boolean | undefined;
@@ -13993,7 +14411,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
13993
14411
  amount: number;
13994
14412
  dedicated_amount?: number | undefined;
13995
14413
  payment_date: string;
13996
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
14414
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
13997
14415
  journal_id: string;
13998
14416
  journal_name: string;
13999
14417
  reconciled?: boolean | undefined;
@@ -14044,7 +14462,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
14044
14462
  amount: number;
14045
14463
  dedicated_amount?: number | undefined;
14046
14464
  payment_date: string;
14047
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
14465
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
14048
14466
  journal_id: string;
14049
14467
  journal_name: string;
14050
14468
  reconciled?: boolean | undefined;
@@ -14091,7 +14509,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
14091
14509
  amount: number;
14092
14510
  dedicated_amount?: number | undefined;
14093
14511
  payment_date: string;
14094
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
14512
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
14095
14513
  journal_id: string;
14096
14514
  journal_name: string;
14097
14515
  reconciled?: boolean | undefined;
@@ -14138,7 +14556,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
14138
14556
  amount: number;
14139
14557
  dedicated_amount?: number | undefined;
14140
14558
  payment_date: string;
14141
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
14559
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
14142
14560
  journal_id: string;
14143
14561
  journal_name: string;
14144
14562
  reconciled?: boolean | undefined;
@@ -14189,7 +14607,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
14189
14607
  amount: number;
14190
14608
  dedicated_amount?: number | undefined;
14191
14609
  payment_date: string;
14192
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
14610
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
14193
14611
  journal_id: string;
14194
14612
  journal_name: string;
14195
14613
  reconciled?: boolean | undefined;
@@ -14403,7 +14821,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
14403
14821
  amount: number;
14404
14822
  dedicated_amount?: number | undefined;
14405
14823
  payment_date: string;
14406
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
14824
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
14407
14825
  journal_id: string;
14408
14826
  journal_name: string;
14409
14827
  reconciled?: boolean | undefined;
@@ -14414,13 +14832,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
14414
14832
  id: string;
14415
14833
  code: string;
14416
14834
  name: string;
14417
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
14835
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
14418
14836
  }[]>;
14419
14837
  getVatCodes(): import("../types/api").RequestData<{
14420
14838
  id: string;
14421
14839
  code?: string | undefined;
14422
14840
  label: string;
14423
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
14841
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
14424
14842
  rate: number;
14425
14843
  type: "unknown" | "sale" | "purchase" | "both";
14426
14844
  }[]>;
@@ -14532,6 +14950,25 @@ declare const Syncs: (internalApi: InternalAPI) => {
14532
14950
  reference?: string | undefined;
14533
14951
  account_number?: string | undefined;
14534
14952
  }[]>;
14953
+ getOutstandings(params: {
14954
+ unposted_allowed: "true" | "false";
14955
+ type: "client" | "supplier";
14956
+ }): import("../types/api").RequestData<{
14957
+ id: string;
14958
+ number?: string | undefined;
14959
+ journal_id: string;
14960
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
14961
+ date: string;
14962
+ due_date?: string | undefined;
14963
+ currency: string;
14964
+ currency_exchange_rate: number;
14965
+ amount: number;
14966
+ open_amount: number;
14967
+ partner_id: string;
14968
+ account_number: string;
14969
+ reference?: string | undefined;
14970
+ posted: boolean;
14971
+ }[]>;
14535
14972
  createFinancialEntry(financial_entry: {
14536
14973
  date: string;
14537
14974
  journal_id: string;
@@ -14547,7 +14984,9 @@ declare const Syncs: (internalApi: InternalAPI) => {
14547
14984
  }[];
14548
14985
  number?: string | undefined;
14549
14986
  pdf?: string | undefined;
14550
- }): import("../types/api").RequestData<{
14987
+ }, params: {
14988
+ financial_counterpart_account?: string | undefined;
14989
+ } | undefined): import("../types/api").RequestData<{
14551
14990
  date: string;
14552
14991
  journal_id: string;
14553
14992
  currency: string;
@@ -14564,6 +15003,59 @@ declare const Syncs: (internalApi: InternalAPI) => {
14564
15003
  id: string;
14565
15004
  number: string;
14566
15005
  }>;
15006
+ createJournalEntry(journal_entry: {
15007
+ reference?: string | undefined;
15008
+ due_date?: string | undefined;
15009
+ journal_id: string;
15010
+ name: string;
15011
+ date: string;
15012
+ items: {
15013
+ account_number: string;
15014
+ partner_id?: string | undefined;
15015
+ description?: string | undefined;
15016
+ debit: number;
15017
+ credit: number;
15018
+ currency: string;
15019
+ currency_exchange_rate?: number | undefined;
15020
+ analytic_distribution?: {
15021
+ analytic_plan: string;
15022
+ analytic_accounts: {
15023
+ analytic_account: string;
15024
+ percentage: number;
15025
+ }[];
15026
+ }[] | undefined;
15027
+ pdf?: string | undefined;
15028
+ }[];
15029
+ }): import("../types/api").RequestData<{
15030
+ reference?: string | undefined;
15031
+ due_date?: string | undefined;
15032
+ journal_id: string;
15033
+ name?: string | undefined;
15034
+ journal_name: string;
15035
+ date?: string | undefined;
15036
+ posted?: boolean | undefined;
15037
+ id: string;
15038
+ items?: {
15039
+ account_number: string;
15040
+ partner_id?: string | undefined;
15041
+ description?: string | undefined;
15042
+ debit: number;
15043
+ credit: number;
15044
+ currency: string;
15045
+ currency_exchange_rate?: number | undefined;
15046
+ id: string;
15047
+ partner_name?: string | undefined;
15048
+ account_name: string;
15049
+ matching_numbers?: string[] | undefined;
15050
+ analytic_distribution?: {
15051
+ analytic_plan: string;
15052
+ analytic_accounts: {
15053
+ analytic_account: string;
15054
+ percentage: number;
15055
+ }[];
15056
+ }[] | undefined;
15057
+ }[] | undefined;
15058
+ }>;
14567
15059
  }>;
14568
15060
  invoicing: import("../types/api").ApiFor<{
14569
15061
  getInvoices(params: {
@@ -14792,7 +15284,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
14792
15284
  rate: number;
14793
15285
  type: "unknown" | "sale" | "purchase" | "both";
14794
15286
  code?: string | undefined;
14795
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
15287
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
14796
15288
  }[]>;
14797
15289
  getTaxById(taxId: string): import("../types/api").RequestData<{
14798
15290
  id: string;
@@ -14804,7 +15296,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
14804
15296
  rate: number;
14805
15297
  type: "unknown" | "sale" | "purchase" | "both";
14806
15298
  code?: string | undefined;
14807
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
15299
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
14808
15300
  }>;
14809
15301
  getOpportunities(): import("../types/api").RequestData<{
14810
15302
  id: string;
@@ -14859,7 +15351,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
14859
15351
  } | undefined;
14860
15352
  }>;
14861
15353
  getContacts(params?: {
14862
- contact_type?: "all" | "prospect" | "customer" | "supplier" | undefined;
15354
+ contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
14863
15355
  page?: number | undefined;
14864
15356
  size?: number | undefined;
14865
15357
  } | undefined): import("../types/api").RequestData<{
@@ -16076,6 +16568,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16076
16568
  country?: string | undefined;
16077
16569
  }[] | undefined;
16078
16570
  account_number?: string | undefined;
16571
+ company_number?: string | undefined;
16079
16572
  id?: string | undefined;
16080
16573
  }[]>;
16081
16574
  createClient(client: {
@@ -16146,6 +16639,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16146
16639
  country?: string | undefined;
16147
16640
  }[] | undefined;
16148
16641
  account_number?: string | undefined;
16642
+ company_number?: string | undefined;
16149
16643
  id?: string | undefined;
16150
16644
  }>;
16151
16645
  getClient(clientId: string): import("../types/api").RequestData<{
@@ -16181,6 +16675,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16181
16675
  country?: string | undefined;
16182
16676
  }[] | undefined;
16183
16677
  account_number?: string | undefined;
16678
+ company_number?: string | undefined;
16184
16679
  id?: string | undefined;
16185
16680
  }>;
16186
16681
  updateClient(clientId: string, client: {
@@ -16248,6 +16743,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16248
16743
  country?: string | undefined;
16249
16744
  }[] | undefined;
16250
16745
  account_number?: string | undefined;
16746
+ company_number?: string | undefined;
16251
16747
  id?: string | undefined;
16252
16748
  }>;
16253
16749
  getSuppliers(): import("../types/api").RequestData<{
@@ -16283,6 +16779,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16283
16779
  country?: string | undefined;
16284
16780
  }[] | undefined;
16285
16781
  account_number?: string | undefined;
16782
+ company_number?: string | undefined;
16286
16783
  id?: string | undefined;
16287
16784
  }[]>;
16288
16785
  createSupplier(supplier: {
@@ -16353,6 +16850,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16353
16850
  country?: string | undefined;
16354
16851
  }[] | undefined;
16355
16852
  account_number?: string | undefined;
16853
+ company_number?: string | undefined;
16356
16854
  id?: string | undefined;
16357
16855
  }>;
16358
16856
  getSupplier(supplierId: string): import("../types/api").RequestData<{
@@ -16388,6 +16886,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16388
16886
  country?: string | undefined;
16389
16887
  }[] | undefined;
16390
16888
  account_number?: string | undefined;
16889
+ company_number?: string | undefined;
16391
16890
  id?: string | undefined;
16392
16891
  }>;
16393
16892
  updateSupplier(supplierId: string, supplier: {
@@ -16455,6 +16954,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16455
16954
  country?: string | undefined;
16456
16955
  }[] | undefined;
16457
16956
  account_number?: string | undefined;
16957
+ company_number?: string | undefined;
16458
16958
  id?: string | undefined;
16459
16959
  }>;
16460
16960
  createInvoice(invoice: {
@@ -16519,7 +17019,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16519
17019
  amount: number;
16520
17020
  dedicated_amount?: number | undefined;
16521
17021
  payment_date: string;
16522
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
17022
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
16523
17023
  journal_id: string;
16524
17024
  journal_name: string;
16525
17025
  reconciled?: boolean | undefined;
@@ -16610,7 +17110,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16610
17110
  amount: number;
16611
17111
  dedicated_amount?: number | undefined;
16612
17112
  payment_date: string;
16613
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
17113
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
16614
17114
  journal_id: string;
16615
17115
  journal_name: string;
16616
17116
  reconciled?: boolean | undefined;
@@ -16661,7 +17161,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16661
17161
  amount: number;
16662
17162
  dedicated_amount?: number | undefined;
16663
17163
  payment_date: string;
16664
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
17164
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
16665
17165
  journal_id: string;
16666
17166
  journal_name: string;
16667
17167
  reconciled?: boolean | undefined;
@@ -16708,7 +17208,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16708
17208
  amount: number;
16709
17209
  dedicated_amount?: number | undefined;
16710
17210
  payment_date: string;
16711
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
17211
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
16712
17212
  journal_id: string;
16713
17213
  journal_name: string;
16714
17214
  reconciled?: boolean | undefined;
@@ -16755,7 +17255,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16755
17255
  amount: number;
16756
17256
  dedicated_amount?: number | undefined;
16757
17257
  payment_date: string;
16758
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
17258
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
16759
17259
  journal_id: string;
16760
17260
  journal_name: string;
16761
17261
  reconciled?: boolean | undefined;
@@ -16806,7 +17306,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
16806
17306
  amount: number;
16807
17307
  dedicated_amount?: number | undefined;
16808
17308
  payment_date: string;
16809
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
17309
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
16810
17310
  journal_id: string;
16811
17311
  journal_name: string;
16812
17312
  reconciled?: boolean | undefined;
@@ -17020,7 +17520,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
17020
17520
  amount: number;
17021
17521
  dedicated_amount?: number | undefined;
17022
17522
  payment_date: string;
17023
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
17523
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
17024
17524
  journal_id: string;
17025
17525
  journal_name: string;
17026
17526
  reconciled?: boolean | undefined;
@@ -17031,13 +17531,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
17031
17531
  id: string;
17032
17532
  code: string;
17033
17533
  name: string;
17034
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
17534
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
17035
17535
  }[]>;
17036
17536
  getVatCodes(): import("../types/api").RequestData<{
17037
17537
  id: string;
17038
17538
  code?: string | undefined;
17039
17539
  label: string;
17040
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
17540
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
17041
17541
  rate: number;
17042
17542
  type: "unknown" | "sale" | "purchase" | "both";
17043
17543
  }[]>;
@@ -17149,6 +17649,25 @@ declare const Syncs: (internalApi: InternalAPI) => {
17149
17649
  reference?: string | undefined;
17150
17650
  account_number?: string | undefined;
17151
17651
  }[]>;
17652
+ getOutstandings(params: {
17653
+ unposted_allowed: "true" | "false";
17654
+ type: "client" | "supplier";
17655
+ }): import("../types/api").RequestData<{
17656
+ id: string;
17657
+ number?: string | undefined;
17658
+ journal_id: string;
17659
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
17660
+ date: string;
17661
+ due_date?: string | undefined;
17662
+ currency: string;
17663
+ currency_exchange_rate: number;
17664
+ amount: number;
17665
+ open_amount: number;
17666
+ partner_id: string;
17667
+ account_number: string;
17668
+ reference?: string | undefined;
17669
+ posted: boolean;
17670
+ }[]>;
17152
17671
  createFinancialEntry(financial_entry: {
17153
17672
  date: string;
17154
17673
  journal_id: string;
@@ -17164,7 +17683,9 @@ declare const Syncs: (internalApi: InternalAPI) => {
17164
17683
  }[];
17165
17684
  number?: string | undefined;
17166
17685
  pdf?: string | undefined;
17167
- }): import("../types/api").RequestData<{
17686
+ }, params: {
17687
+ financial_counterpart_account?: string | undefined;
17688
+ } | undefined): import("../types/api").RequestData<{
17168
17689
  date: string;
17169
17690
  journal_id: string;
17170
17691
  currency: string;
@@ -17181,6 +17702,59 @@ declare const Syncs: (internalApi: InternalAPI) => {
17181
17702
  id: string;
17182
17703
  number: string;
17183
17704
  }>;
17705
+ createJournalEntry(journal_entry: {
17706
+ reference?: string | undefined;
17707
+ due_date?: string | undefined;
17708
+ journal_id: string;
17709
+ name: string;
17710
+ date: string;
17711
+ items: {
17712
+ account_number: string;
17713
+ partner_id?: string | undefined;
17714
+ description?: string | undefined;
17715
+ debit: number;
17716
+ credit: number;
17717
+ currency: string;
17718
+ currency_exchange_rate?: number | undefined;
17719
+ analytic_distribution?: {
17720
+ analytic_plan: string;
17721
+ analytic_accounts: {
17722
+ analytic_account: string;
17723
+ percentage: number;
17724
+ }[];
17725
+ }[] | undefined;
17726
+ pdf?: string | undefined;
17727
+ }[];
17728
+ }): import("../types/api").RequestData<{
17729
+ reference?: string | undefined;
17730
+ due_date?: string | undefined;
17731
+ journal_id: string;
17732
+ name?: string | undefined;
17733
+ journal_name: string;
17734
+ date?: string | undefined;
17735
+ posted?: boolean | undefined;
17736
+ id: string;
17737
+ items?: {
17738
+ account_number: string;
17739
+ partner_id?: string | undefined;
17740
+ description?: string | undefined;
17741
+ debit: number;
17742
+ credit: number;
17743
+ currency: string;
17744
+ currency_exchange_rate?: number | undefined;
17745
+ id: string;
17746
+ partner_name?: string | undefined;
17747
+ account_name: string;
17748
+ matching_numbers?: string[] | undefined;
17749
+ analytic_distribution?: {
17750
+ analytic_plan: string;
17751
+ analytic_accounts: {
17752
+ analytic_account: string;
17753
+ percentage: number;
17754
+ }[];
17755
+ }[] | undefined;
17756
+ }[] | undefined;
17757
+ }>;
17184
17758
  }>;
17185
17759
  invoicing: import("../types/api").ApiFor<{
17186
17760
  getInvoices(params: {
@@ -17409,7 +17983,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
17409
17983
  rate: number;
17410
17984
  type: "unknown" | "sale" | "purchase" | "both";
17411
17985
  code?: string | undefined;
17412
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
17986
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
17413
17987
  }[]>;
17414
17988
  getTaxById(taxId: string): import("../types/api").RequestData<{
17415
17989
  id: string;
@@ -17421,7 +17995,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
17421
17995
  rate: number;
17422
17996
  type: "unknown" | "sale" | "purchase" | "both";
17423
17997
  code?: string | undefined;
17424
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
17998
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
17425
17999
  }>;
17426
18000
  getOpportunities(): import("../types/api").RequestData<{
17427
18001
  id: string;
@@ -17476,7 +18050,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
17476
18050
  } | undefined;
17477
18051
  }>;
17478
18052
  getContacts(params?: {
17479
- contact_type?: "all" | "prospect" | "customer" | "supplier" | undefined;
18053
+ contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
17480
18054
  page?: number | undefined;
17481
18055
  size?: number | undefined;
17482
18056
  } | undefined): import("../types/api").RequestData<{
@@ -18697,6 +19271,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
18697
19271
  country?: string | undefined;
18698
19272
  }[] | undefined;
18699
19273
  account_number?: string | undefined;
19274
+ company_number?: string | undefined;
18700
19275
  id?: string | undefined;
18701
19276
  }[]>;
18702
19277
  createClient(client: {
@@ -18767,6 +19342,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
18767
19342
  country?: string | undefined;
18768
19343
  }[] | undefined;
18769
19344
  account_number?: string | undefined;
19345
+ company_number?: string | undefined;
18770
19346
  id?: string | undefined;
18771
19347
  }>;
18772
19348
  getClient(clientId: string): import("../types/api").RequestData<{
@@ -18802,6 +19378,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
18802
19378
  country?: string | undefined;
18803
19379
  }[] | undefined;
18804
19380
  account_number?: string | undefined;
19381
+ company_number?: string | undefined;
18805
19382
  id?: string | undefined;
18806
19383
  }>;
18807
19384
  updateClient(clientId: string, client: {
@@ -18869,6 +19446,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
18869
19446
  country?: string | undefined;
18870
19447
  }[] | undefined;
18871
19448
  account_number?: string | undefined;
19449
+ company_number?: string | undefined;
18872
19450
  id?: string | undefined;
18873
19451
  }>;
18874
19452
  getSuppliers(): import("../types/api").RequestData<{
@@ -18904,6 +19482,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
18904
19482
  country?: string | undefined;
18905
19483
  }[] | undefined;
18906
19484
  account_number?: string | undefined;
19485
+ company_number?: string | undefined;
18907
19486
  id?: string | undefined;
18908
19487
  }[]>;
18909
19488
  createSupplier(supplier: {
@@ -18974,6 +19553,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
18974
19553
  country?: string | undefined;
18975
19554
  }[] | undefined;
18976
19555
  account_number?: string | undefined;
19556
+ company_number?: string | undefined;
18977
19557
  id?: string | undefined;
18978
19558
  }>;
18979
19559
  getSupplier(supplierId: string): import("../types/api").RequestData<{
@@ -19009,6 +19589,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
19009
19589
  country?: string | undefined;
19010
19590
  }[] | undefined;
19011
19591
  account_number?: string | undefined;
19592
+ company_number?: string | undefined;
19012
19593
  id?: string | undefined;
19013
19594
  }>;
19014
19595
  updateSupplier(supplierId: string, supplier: {
@@ -19076,6 +19657,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
19076
19657
  country?: string | undefined;
19077
19658
  }[] | undefined;
19078
19659
  account_number?: string | undefined;
19660
+ company_number?: string | undefined;
19079
19661
  id?: string | undefined;
19080
19662
  }>;
19081
19663
  createInvoice(invoice: {
@@ -19140,7 +19722,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
19140
19722
  amount: number;
19141
19723
  dedicated_amount?: number | undefined;
19142
19724
  payment_date: string;
19143
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
19725
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
19144
19726
  journal_id: string;
19145
19727
  journal_name: string;
19146
19728
  reconciled?: boolean | undefined;
@@ -19231,7 +19813,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
19231
19813
  amount: number;
19232
19814
  dedicated_amount?: number | undefined;
19233
19815
  payment_date: string;
19234
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
19816
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
19235
19817
  journal_id: string;
19236
19818
  journal_name: string;
19237
19819
  reconciled?: boolean | undefined;
@@ -19282,7 +19864,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
19282
19864
  amount: number;
19283
19865
  dedicated_amount?: number | undefined;
19284
19866
  payment_date: string;
19285
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
19867
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
19286
19868
  journal_id: string;
19287
19869
  journal_name: string;
19288
19870
  reconciled?: boolean | undefined;
@@ -19329,7 +19911,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
19329
19911
  amount: number;
19330
19912
  dedicated_amount?: number | undefined;
19331
19913
  payment_date: string;
19332
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
19914
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
19333
19915
  journal_id: string;
19334
19916
  journal_name: string;
19335
19917
  reconciled?: boolean | undefined;
@@ -19376,7 +19958,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
19376
19958
  amount: number;
19377
19959
  dedicated_amount?: number | undefined;
19378
19960
  payment_date: string;
19379
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
19961
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
19380
19962
  journal_id: string;
19381
19963
  journal_name: string;
19382
19964
  reconciled?: boolean | undefined;
@@ -19427,7 +20009,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
19427
20009
  amount: number;
19428
20010
  dedicated_amount?: number | undefined;
19429
20011
  payment_date: string;
19430
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
20012
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
19431
20013
  journal_id: string;
19432
20014
  journal_name: string;
19433
20015
  reconciled?: boolean | undefined;
@@ -19641,7 +20223,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
19641
20223
  amount: number;
19642
20224
  dedicated_amount?: number | undefined;
19643
20225
  payment_date: string;
19644
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
20226
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
19645
20227
  journal_id: string;
19646
20228
  journal_name: string;
19647
20229
  reconciled?: boolean | undefined;
@@ -19652,13 +20234,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
19652
20234
  id: string;
19653
20235
  code: string;
19654
20236
  name: string;
19655
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
20237
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
19656
20238
  }[]>;
19657
20239
  getVatCodes(): import("../types/api").RequestData<{
19658
20240
  id: string;
19659
20241
  code?: string | undefined;
19660
20242
  label: string;
19661
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
20243
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
19662
20244
  rate: number;
19663
20245
  type: "unknown" | "sale" | "purchase" | "both";
19664
20246
  }[]>;
@@ -19770,6 +20352,25 @@ declare const Syncs: (internalApi: InternalAPI) => {
19770
20352
  reference?: string | undefined;
19771
20353
  account_number?: string | undefined;
19772
20354
  }[]>;
20355
+ getOutstandings(params: {
20356
+ unposted_allowed: "true" | "false";
20357
+ type: "client" | "supplier";
20358
+ }): import("../types/api").RequestData<{
20359
+ id: string;
20360
+ number?: string | undefined;
20361
+ journal_id: string;
20362
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
20363
+ date: string;
20364
+ due_date?: string | undefined;
20365
+ currency: string;
20366
+ currency_exchange_rate: number;
20367
+ amount: number;
20368
+ open_amount: number;
20369
+ partner_id: string;
20370
+ account_number: string;
20371
+ reference?: string | undefined;
20372
+ posted: boolean;
20373
+ }[]>;
19773
20374
  createFinancialEntry(financial_entry: {
19774
20375
  date: string;
19775
20376
  journal_id: string;
@@ -19785,7 +20386,9 @@ declare const Syncs: (internalApi: InternalAPI) => {
19785
20386
  }[];
19786
20387
  number?: string | undefined;
19787
20388
  pdf?: string | undefined;
19788
- }): import("../types/api").RequestData<{
20389
+ }, params: {
20390
+ financial_counterpart_account?: string | undefined;
20391
+ } | undefined): import("../types/api").RequestData<{
19789
20392
  date: string;
19790
20393
  journal_id: string;
19791
20394
  currency: string;
@@ -19802,6 +20405,59 @@ declare const Syncs: (internalApi: InternalAPI) => {
19802
20405
  id: string;
19803
20406
  number: string;
19804
20407
  }>;
20408
+ createJournalEntry(journal_entry: {
20409
+ reference?: string | undefined;
20410
+ due_date?: string | undefined;
20411
+ journal_id: string;
20412
+ name: string;
20413
+ date: string;
20414
+ items: {
20415
+ account_number: string;
20416
+ partner_id?: string | undefined;
20417
+ description?: string | undefined;
20418
+ debit: number;
20419
+ credit: number;
20420
+ currency: string;
20421
+ currency_exchange_rate?: number | undefined;
20422
+ analytic_distribution?: {
20423
+ analytic_plan: string;
20424
+ analytic_accounts: {
20425
+ analytic_account: string;
20426
+ percentage: number;
20427
+ }[];
20428
+ }[] | undefined;
20429
+ pdf?: string | undefined;
20430
+ }[];
20431
+ }): import("../types/api").RequestData<{
20432
+ reference?: string | undefined;
20433
+ due_date?: string | undefined;
20434
+ journal_id: string;
20435
+ name?: string | undefined;
20436
+ journal_name: string;
20437
+ date?: string | undefined;
20438
+ posted?: boolean | undefined;
20439
+ id: string;
20440
+ items?: {
20441
+ account_number: string;
20442
+ partner_id?: string | undefined;
20443
+ description?: string | undefined;
20444
+ debit: number;
20445
+ credit: number;
20446
+ currency: string;
20447
+ currency_exchange_rate?: number | undefined;
20448
+ id: string;
20449
+ partner_name?: string | undefined;
20450
+ account_name: string;
20451
+ matching_numbers?: string[] | undefined;
20452
+ analytic_distribution?: {
20453
+ analytic_plan: string;
20454
+ analytic_accounts: {
20455
+ analytic_account: string;
20456
+ percentage: number;
20457
+ }[];
20458
+ }[] | undefined;
20459
+ }[] | undefined;
20460
+ }>;
19805
20461
  }>;
19806
20462
  invoicing: import("../types/api").ApiFor<{
19807
20463
  getInvoices(params: {
@@ -20030,7 +20686,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
20030
20686
  rate: number;
20031
20687
  type: "unknown" | "sale" | "purchase" | "both";
20032
20688
  code?: string | undefined;
20033
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
20689
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
20034
20690
  }[]>;
20035
20691
  getTaxById(taxId: string): import("../types/api").RequestData<{
20036
20692
  id: string;
@@ -20042,7 +20698,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
20042
20698
  rate: number;
20043
20699
  type: "unknown" | "sale" | "purchase" | "both";
20044
20700
  code?: string | undefined;
20045
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
20701
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
20046
20702
  }>;
20047
20703
  getOpportunities(): import("../types/api").RequestData<{
20048
20704
  id: string;
@@ -20097,7 +20753,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
20097
20753
  } | undefined;
20098
20754
  }>;
20099
20755
  getContacts(params?: {
20100
- contact_type?: "all" | "prospect" | "customer" | "supplier" | undefined;
20756
+ contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
20101
20757
  page?: number | undefined;
20102
20758
  size?: number | undefined;
20103
20759
  } | undefined): import("../types/api").RequestData<{
@@ -21318,6 +21974,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21318
21974
  country?: string | undefined;
21319
21975
  }[] | undefined;
21320
21976
  account_number?: string | undefined;
21977
+ company_number?: string | undefined;
21321
21978
  id?: string | undefined;
21322
21979
  }[]>;
21323
21980
  createClient(client: {
@@ -21388,6 +22045,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21388
22045
  country?: string | undefined;
21389
22046
  }[] | undefined;
21390
22047
  account_number?: string | undefined;
22048
+ company_number?: string | undefined;
21391
22049
  id?: string | undefined;
21392
22050
  }>;
21393
22051
  getClient(clientId: string): import("../types/api").RequestData<{
@@ -21423,6 +22081,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21423
22081
  country?: string | undefined;
21424
22082
  }[] | undefined;
21425
22083
  account_number?: string | undefined;
22084
+ company_number?: string | undefined;
21426
22085
  id?: string | undefined;
21427
22086
  }>;
21428
22087
  updateClient(clientId: string, client: {
@@ -21490,6 +22149,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21490
22149
  country?: string | undefined;
21491
22150
  }[] | undefined;
21492
22151
  account_number?: string | undefined;
22152
+ company_number?: string | undefined;
21493
22153
  id?: string | undefined;
21494
22154
  }>;
21495
22155
  getSuppliers(): import("../types/api").RequestData<{
@@ -21525,6 +22185,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21525
22185
  country?: string | undefined;
21526
22186
  }[] | undefined;
21527
22187
  account_number?: string | undefined;
22188
+ company_number?: string | undefined;
21528
22189
  id?: string | undefined;
21529
22190
  }[]>;
21530
22191
  createSupplier(supplier: {
@@ -21595,6 +22256,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21595
22256
  country?: string | undefined;
21596
22257
  }[] | undefined;
21597
22258
  account_number?: string | undefined;
22259
+ company_number?: string | undefined;
21598
22260
  id?: string | undefined;
21599
22261
  }>;
21600
22262
  getSupplier(supplierId: string): import("../types/api").RequestData<{
@@ -21630,6 +22292,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21630
22292
  country?: string | undefined;
21631
22293
  }[] | undefined;
21632
22294
  account_number?: string | undefined;
22295
+ company_number?: string | undefined;
21633
22296
  id?: string | undefined;
21634
22297
  }>;
21635
22298
  updateSupplier(supplierId: string, supplier: {
@@ -21697,6 +22360,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21697
22360
  country?: string | undefined;
21698
22361
  }[] | undefined;
21699
22362
  account_number?: string | undefined;
22363
+ company_number?: string | undefined;
21700
22364
  id?: string | undefined;
21701
22365
  }>;
21702
22366
  createInvoice(invoice: {
@@ -21761,7 +22425,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21761
22425
  amount: number;
21762
22426
  dedicated_amount?: number | undefined;
21763
22427
  payment_date: string;
21764
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
22428
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
21765
22429
  journal_id: string;
21766
22430
  journal_name: string;
21767
22431
  reconciled?: boolean | undefined;
@@ -21852,7 +22516,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21852
22516
  amount: number;
21853
22517
  dedicated_amount?: number | undefined;
21854
22518
  payment_date: string;
21855
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
22519
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
21856
22520
  journal_id: string;
21857
22521
  journal_name: string;
21858
22522
  reconciled?: boolean | undefined;
@@ -21903,7 +22567,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21903
22567
  amount: number;
21904
22568
  dedicated_amount?: number | undefined;
21905
22569
  payment_date: string;
21906
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
22570
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
21907
22571
  journal_id: string;
21908
22572
  journal_name: string;
21909
22573
  reconciled?: boolean | undefined;
@@ -21950,7 +22614,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21950
22614
  amount: number;
21951
22615
  dedicated_amount?: number | undefined;
21952
22616
  payment_date: string;
21953
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
22617
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
21954
22618
  journal_id: string;
21955
22619
  journal_name: string;
21956
22620
  reconciled?: boolean | undefined;
@@ -21997,7 +22661,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
21997
22661
  amount: number;
21998
22662
  dedicated_amount?: number | undefined;
21999
22663
  payment_date: string;
22000
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
22664
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
22001
22665
  journal_id: string;
22002
22666
  journal_name: string;
22003
22667
  reconciled?: boolean | undefined;
@@ -22048,7 +22712,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
22048
22712
  amount: number;
22049
22713
  dedicated_amount?: number | undefined;
22050
22714
  payment_date: string;
22051
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
22715
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
22052
22716
  journal_id: string;
22053
22717
  journal_name: string;
22054
22718
  reconciled?: boolean | undefined;
@@ -22262,7 +22926,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
22262
22926
  amount: number;
22263
22927
  dedicated_amount?: number | undefined;
22264
22928
  payment_date: string;
22265
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
22929
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
22266
22930
  journal_id: string;
22267
22931
  journal_name: string;
22268
22932
  reconciled?: boolean | undefined;
@@ -22273,13 +22937,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
22273
22937
  id: string;
22274
22938
  code: string;
22275
22939
  name: string;
22276
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
22940
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
22277
22941
  }[]>;
22278
22942
  getVatCodes(): import("../types/api").RequestData<{
22279
22943
  id: string;
22280
22944
  code?: string | undefined;
22281
22945
  label: string;
22282
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
22946
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
22283
22947
  rate: number;
22284
22948
  type: "unknown" | "sale" | "purchase" | "both";
22285
22949
  }[]>;
@@ -22391,6 +23055,25 @@ declare const Syncs: (internalApi: InternalAPI) => {
22391
23055
  reference?: string | undefined;
22392
23056
  account_number?: string | undefined;
22393
23057
  }[]>;
23058
+ getOutstandings(params: {
23059
+ unposted_allowed: "true" | "false";
23060
+ type: "client" | "supplier";
23061
+ }): import("../types/api").RequestData<{
23062
+ id: string;
23063
+ number?: string | undefined;
23064
+ journal_id: string;
23065
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
23066
+ date: string;
23067
+ due_date?: string | undefined;
23068
+ currency: string;
23069
+ currency_exchange_rate: number;
23070
+ amount: number;
23071
+ open_amount: number;
23072
+ partner_id: string;
23073
+ account_number: string;
23074
+ reference?: string | undefined;
23075
+ posted: boolean;
23076
+ }[]>;
22394
23077
  createFinancialEntry(financial_entry: {
22395
23078
  date: string;
22396
23079
  journal_id: string;
@@ -22406,7 +23089,9 @@ declare const Syncs: (internalApi: InternalAPI) => {
22406
23089
  }[];
22407
23090
  number?: string | undefined;
22408
23091
  pdf?: string | undefined;
22409
- }): import("../types/api").RequestData<{
23092
+ }, params: {
23093
+ financial_counterpart_account?: string | undefined;
23094
+ } | undefined): import("../types/api").RequestData<{
22410
23095
  date: string;
22411
23096
  journal_id: string;
22412
23097
  currency: string;
@@ -22423,6 +23108,59 @@ declare const Syncs: (internalApi: InternalAPI) => {
22423
23108
  id: string;
22424
23109
  number: string;
22425
23110
  }>;
23111
+ createJournalEntry(journal_entry: {
23112
+ reference?: string | undefined;
23113
+ due_date?: string | undefined;
23114
+ journal_id: string;
23115
+ name: string;
23116
+ date: string;
23117
+ items: {
23118
+ account_number: string;
23119
+ partner_id?: string | undefined;
23120
+ description?: string | undefined;
23121
+ debit: number;
23122
+ credit: number;
23123
+ currency: string;
23124
+ currency_exchange_rate?: number | undefined;
23125
+ analytic_distribution?: {
23126
+ analytic_plan: string;
23127
+ analytic_accounts: {
23128
+ analytic_account: string;
23129
+ percentage: number;
23130
+ }[];
23131
+ }[] | undefined;
23132
+ pdf?: string | undefined;
23133
+ }[];
23134
+ }): import("../types/api").RequestData<{
23135
+ reference?: string | undefined;
23136
+ due_date?: string | undefined;
23137
+ journal_id: string;
23138
+ name?: string | undefined;
23139
+ journal_name: string;
23140
+ date?: string | undefined;
23141
+ posted?: boolean | undefined;
23142
+ id: string;
23143
+ items?: {
23144
+ account_number: string;
23145
+ partner_id?: string | undefined;
23146
+ description?: string | undefined;
23147
+ debit: number;
23148
+ credit: number;
23149
+ currency: string;
23150
+ currency_exchange_rate?: number | undefined;
23151
+ id: string;
23152
+ partner_name?: string | undefined;
23153
+ account_name: string;
23154
+ matching_numbers?: string[] | undefined;
23155
+ analytic_distribution?: {
23156
+ analytic_plan: string;
23157
+ analytic_accounts: {
23158
+ analytic_account: string;
23159
+ percentage: number;
23160
+ }[];
23161
+ }[] | undefined;
23162
+ }[] | undefined;
23163
+ }>;
22426
23164
  }>;
22427
23165
  invoicing: import("../types/api").ApiFor<{
22428
23166
  getInvoices(params: {
@@ -22651,7 +23389,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
22651
23389
  rate: number;
22652
23390
  type: "unknown" | "sale" | "purchase" | "both";
22653
23391
  code?: string | undefined;
22654
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
23392
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
22655
23393
  }[]>;
22656
23394
  getTaxById(taxId: string): import("../types/api").RequestData<{
22657
23395
  id: string;
@@ -22663,7 +23401,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
22663
23401
  rate: number;
22664
23402
  type: "unknown" | "sale" | "purchase" | "both";
22665
23403
  code?: string | undefined;
22666
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
23404
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
22667
23405
  }>;
22668
23406
  getOpportunities(): import("../types/api").RequestData<{
22669
23407
  id: string;
@@ -22718,7 +23456,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
22718
23456
  } | undefined;
22719
23457
  }>;
22720
23458
  getContacts(params?: {
22721
- contact_type?: "all" | "prospect" | "customer" | "supplier" | undefined;
23459
+ contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
22722
23460
  page?: number | undefined;
22723
23461
  size?: number | undefined;
22724
23462
  } | undefined): import("../types/api").RequestData<{
@@ -23939,6 +24677,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
23939
24677
  country?: string | undefined;
23940
24678
  }[] | undefined;
23941
24679
  account_number?: string | undefined;
24680
+ company_number?: string | undefined;
23942
24681
  id?: string | undefined;
23943
24682
  }[]>;
23944
24683
  createClient(client: {
@@ -24009,6 +24748,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24009
24748
  country?: string | undefined;
24010
24749
  }[] | undefined;
24011
24750
  account_number?: string | undefined;
24751
+ company_number?: string | undefined;
24012
24752
  id?: string | undefined;
24013
24753
  }>;
24014
24754
  getClient(clientId: string): import("../types/api").RequestData<{
@@ -24044,6 +24784,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24044
24784
  country?: string | undefined;
24045
24785
  }[] | undefined;
24046
24786
  account_number?: string | undefined;
24787
+ company_number?: string | undefined;
24047
24788
  id?: string | undefined;
24048
24789
  }>;
24049
24790
  updateClient(clientId: string, client: {
@@ -24111,6 +24852,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24111
24852
  country?: string | undefined;
24112
24853
  }[] | undefined;
24113
24854
  account_number?: string | undefined;
24855
+ company_number?: string | undefined;
24114
24856
  id?: string | undefined;
24115
24857
  }>;
24116
24858
  getSuppliers(): import("../types/api").RequestData<{
@@ -24146,6 +24888,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24146
24888
  country?: string | undefined;
24147
24889
  }[] | undefined;
24148
24890
  account_number?: string | undefined;
24891
+ company_number?: string | undefined;
24149
24892
  id?: string | undefined;
24150
24893
  }[]>;
24151
24894
  createSupplier(supplier: {
@@ -24216,6 +24959,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24216
24959
  country?: string | undefined;
24217
24960
  }[] | undefined;
24218
24961
  account_number?: string | undefined;
24962
+ company_number?: string | undefined;
24219
24963
  id?: string | undefined;
24220
24964
  }>;
24221
24965
  getSupplier(supplierId: string): import("../types/api").RequestData<{
@@ -24251,6 +24995,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24251
24995
  country?: string | undefined;
24252
24996
  }[] | undefined;
24253
24997
  account_number?: string | undefined;
24998
+ company_number?: string | undefined;
24254
24999
  id?: string | undefined;
24255
25000
  }>;
24256
25001
  updateSupplier(supplierId: string, supplier: {
@@ -24318,6 +25063,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24318
25063
  country?: string | undefined;
24319
25064
  }[] | undefined;
24320
25065
  account_number?: string | undefined;
25066
+ company_number?: string | undefined;
24321
25067
  id?: string | undefined;
24322
25068
  }>;
24323
25069
  createInvoice(invoice: {
@@ -24382,7 +25128,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24382
25128
  amount: number;
24383
25129
  dedicated_amount?: number | undefined;
24384
25130
  payment_date: string;
24385
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
25131
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
24386
25132
  journal_id: string;
24387
25133
  journal_name: string;
24388
25134
  reconciled?: boolean | undefined;
@@ -24473,7 +25219,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24473
25219
  amount: number;
24474
25220
  dedicated_amount?: number | undefined;
24475
25221
  payment_date: string;
24476
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
25222
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
24477
25223
  journal_id: string;
24478
25224
  journal_name: string;
24479
25225
  reconciled?: boolean | undefined;
@@ -24524,7 +25270,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24524
25270
  amount: number;
24525
25271
  dedicated_amount?: number | undefined;
24526
25272
  payment_date: string;
24527
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
25273
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
24528
25274
  journal_id: string;
24529
25275
  journal_name: string;
24530
25276
  reconciled?: boolean | undefined;
@@ -24571,7 +25317,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24571
25317
  amount: number;
24572
25318
  dedicated_amount?: number | undefined;
24573
25319
  payment_date: string;
24574
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
25320
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
24575
25321
  journal_id: string;
24576
25322
  journal_name: string;
24577
25323
  reconciled?: boolean | undefined;
@@ -24618,7 +25364,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24618
25364
  amount: number;
24619
25365
  dedicated_amount?: number | undefined;
24620
25366
  payment_date: string;
24621
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
25367
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
24622
25368
  journal_id: string;
24623
25369
  journal_name: string;
24624
25370
  reconciled?: boolean | undefined;
@@ -24669,7 +25415,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24669
25415
  amount: number;
24670
25416
  dedicated_amount?: number | undefined;
24671
25417
  payment_date: string;
24672
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
25418
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
24673
25419
  journal_id: string;
24674
25420
  journal_name: string;
24675
25421
  reconciled?: boolean | undefined;
@@ -24883,7 +25629,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
24883
25629
  amount: number;
24884
25630
  dedicated_amount?: number | undefined;
24885
25631
  payment_date: string;
24886
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
25632
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
24887
25633
  journal_id: string;
24888
25634
  journal_name: string;
24889
25635
  reconciled?: boolean | undefined;
@@ -24894,13 +25640,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
24894
25640
  id: string;
24895
25641
  code: string;
24896
25642
  name: string;
24897
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
25643
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
24898
25644
  }[]>;
24899
25645
  getVatCodes(): import("../types/api").RequestData<{
24900
25646
  id: string;
24901
25647
  code?: string | undefined;
24902
25648
  label: string;
24903
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
25649
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
24904
25650
  rate: number;
24905
25651
  type: "unknown" | "sale" | "purchase" | "both";
24906
25652
  }[]>;
@@ -25012,6 +25758,25 @@ declare const Syncs: (internalApi: InternalAPI) => {
25012
25758
  reference?: string | undefined;
25013
25759
  account_number?: string | undefined;
25014
25760
  }[]>;
25761
+ getOutstandings(params: {
25762
+ unposted_allowed: "true" | "false";
25763
+ type: "client" | "supplier";
25764
+ }): import("../types/api").RequestData<{
25765
+ id: string;
25766
+ number?: string | undefined;
25767
+ journal_id: string;
25768
+ journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
25769
+ date: string;
25770
+ due_date?: string | undefined;
25771
+ currency: string;
25772
+ currency_exchange_rate: number;
25773
+ amount: number;
25774
+ open_amount: number;
25775
+ partner_id: string;
25776
+ account_number: string;
25777
+ reference?: string | undefined;
25778
+ posted: boolean;
25779
+ }[]>;
25015
25780
  createFinancialEntry(financial_entry: {
25016
25781
  date: string;
25017
25782
  journal_id: string;
@@ -25027,7 +25792,9 @@ declare const Syncs: (internalApi: InternalAPI) => {
25027
25792
  }[];
25028
25793
  number?: string | undefined;
25029
25794
  pdf?: string | undefined;
25030
- }): import("../types/api").RequestData<{
25795
+ }, params: {
25796
+ financial_counterpart_account?: string | undefined;
25797
+ } | undefined): import("../types/api").RequestData<{
25031
25798
  date: string;
25032
25799
  journal_id: string;
25033
25800
  currency: string;
@@ -25044,6 +25811,59 @@ declare const Syncs: (internalApi: InternalAPI) => {
25044
25811
  id: string;
25045
25812
  number: string;
25046
25813
  }>;
25814
+ createJournalEntry(journal_entry: {
25815
+ reference?: string | undefined;
25816
+ due_date?: string | undefined;
25817
+ journal_id: string;
25818
+ name: string;
25819
+ date: string;
25820
+ items: {
25821
+ account_number: string;
25822
+ partner_id?: string | undefined;
25823
+ description?: string | undefined;
25824
+ debit: number;
25825
+ credit: number;
25826
+ currency: string;
25827
+ currency_exchange_rate?: number | undefined;
25828
+ analytic_distribution?: {
25829
+ analytic_plan: string;
25830
+ analytic_accounts: {
25831
+ analytic_account: string;
25832
+ percentage: number;
25833
+ }[];
25834
+ }[] | undefined;
25835
+ pdf?: string | undefined;
25836
+ }[];
25837
+ }): import("../types/api").RequestData<{
25838
+ reference?: string | undefined;
25839
+ due_date?: string | undefined;
25840
+ journal_id: string;
25841
+ name?: string | undefined;
25842
+ journal_name: string;
25843
+ date?: string | undefined;
25844
+ posted?: boolean | undefined;
25845
+ id: string;
25846
+ items?: {
25847
+ account_number: string;
25848
+ partner_id?: string | undefined;
25849
+ description?: string | undefined;
25850
+ debit: number;
25851
+ credit: number;
25852
+ currency: string;
25853
+ currency_exchange_rate?: number | undefined;
25854
+ id: string;
25855
+ partner_name?: string | undefined;
25856
+ account_name: string;
25857
+ matching_numbers?: string[] | undefined;
25858
+ analytic_distribution?: {
25859
+ analytic_plan: string;
25860
+ analytic_accounts: {
25861
+ analytic_account: string;
25862
+ percentage: number;
25863
+ }[];
25864
+ }[] | undefined;
25865
+ }[] | undefined;
25866
+ }>;
25047
25867
  }>;
25048
25868
  invoicing: import("../types/api").ApiFor<{
25049
25869
  getInvoices(params: {
@@ -25272,7 +26092,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
25272
26092
  rate: number;
25273
26093
  type: "unknown" | "sale" | "purchase" | "both";
25274
26094
  code?: string | undefined;
25275
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
26095
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
25276
26096
  }[]>;
25277
26097
  getTaxById(taxId: string): import("../types/api").RequestData<{
25278
26098
  id: string;
@@ -25284,7 +26104,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
25284
26104
  rate: number;
25285
26105
  type: "unknown" | "sale" | "purchase" | "both";
25286
26106
  code?: string | undefined;
25287
- scope?: "nat" | "eu" | "int" | "unknown" | undefined;
26107
+ scope?: "unknown" | "nat" | "eu" | "int" | undefined;
25288
26108
  }>;
25289
26109
  getOpportunities(): import("../types/api").RequestData<{
25290
26110
  id: string;
@@ -25339,7 +26159,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
25339
26159
  } | undefined;
25340
26160
  }>;
25341
26161
  getContacts(params?: {
25342
- contact_type?: "all" | "prospect" | "customer" | "supplier" | undefined;
26162
+ contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
25343
26163
  page?: number | undefined;
25344
26164
  size?: number | undefined;
25345
26165
  } | undefined): import("../types/api").RequestData<{