@chift/chift-nodejs 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/src/modules/accounting.d.ts +8 -1
- package/dist/src/modules/accounting.js +27 -1
- package/dist/src/modules/api.d.ts +2699 -912
- package/dist/src/modules/consumer.d.ts +146 -27
- package/dist/src/modules/consumers.d.ts +731 -136
- package/dist/src/modules/datastores.d.ts +1 -1
- package/dist/src/modules/integrations.d.ts +2 -0
- package/dist/src/modules/sync.d.ts +584 -108
- package/dist/src/modules/sync.js +0 -2
- package/dist/src/modules/syncs.d.ts +1464 -274
- package/dist/test/modules/accounting.test.js +127 -15
- package/dist/test/modules/consumers.test.js +1 -1
- package/dist/test/modules/pos.test.js +4 -4
- package/package.json +1 -1
- package/src/modules/accounting.ts +17 -3
- package/src/types/public-api/schema.d.ts +343 -33
- package/test/modules/accounting.test.ts +27 -0
- package/.eslintcache +0 -1
- package/coverage/clover.xml +0 -1645
- package/coverage/coverage-final.json +0 -19
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -146
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov-report/src/helpers/index.html +0 -131
- package/coverage/lcov-report/src/helpers/openapi.ts.html +0 -151
- package/coverage/lcov-report/src/helpers/settings.ts.html +0 -94
- package/coverage/lcov-report/src/index.html +0 -116
- package/coverage/lcov-report/src/index.ts.html +0 -88
- package/coverage/lcov-report/src/modules/accounting.ts.html +0 -1156
- package/coverage/lcov-report/src/modules/api.ts.html +0 -190
- package/coverage/lcov-report/src/modules/consumer.ts.html +0 -616
- package/coverage/lcov-report/src/modules/consumers.ts.html +0 -331
- package/coverage/lcov-report/src/modules/custom.ts.html +0 -193
- package/coverage/lcov-report/src/modules/datastores.ts.html +0 -142
- package/coverage/lcov-report/src/modules/ecommerce.ts.html +0 -331
- package/coverage/lcov-report/src/modules/flow.ts.html +0 -589
- package/coverage/lcov-report/src/modules/index.html +0 -326
- package/coverage/lcov-report/src/modules/integrations.ts.html +0 -151
- package/coverage/lcov-report/src/modules/internalApi.ts.html +0 -586
- package/coverage/lcov-report/src/modules/invoicing.ts.html +0 -391
- package/coverage/lcov-report/src/modules/pos.ts.html +0 -421
- package/coverage/lcov-report/src/modules/sync.ts.html +0 -316
- package/coverage/lcov-report/src/modules/syncs.ts.html +0 -169
- package/coverage/lcov-report/src/modules/webhooks.ts.html +0 -343
- package/coverage/lcov.info +0 -1976
- package/dist/test/modules/flow.test.d.ts +0 -1
- package/dist/test/modules/flow.test.js +0 -69
|
@@ -371,6 +371,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
371
371
|
country?: string | undefined;
|
|
372
372
|
}[] | undefined;
|
|
373
373
|
account_number?: string | undefined;
|
|
374
|
+
company_number?: string | undefined;
|
|
374
375
|
id?: string | undefined;
|
|
375
376
|
}[]>;
|
|
376
377
|
createClient(client: {
|
|
@@ -441,6 +442,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
441
442
|
country?: string | undefined;
|
|
442
443
|
}[] | undefined;
|
|
443
444
|
account_number?: string | undefined;
|
|
445
|
+
company_number?: string | undefined;
|
|
444
446
|
id?: string | undefined;
|
|
445
447
|
}>;
|
|
446
448
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -476,6 +478,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
476
478
|
country?: string | undefined;
|
|
477
479
|
}[] | undefined;
|
|
478
480
|
account_number?: string | undefined;
|
|
481
|
+
company_number?: string | undefined;
|
|
479
482
|
id?: string | undefined;
|
|
480
483
|
}>;
|
|
481
484
|
updateClient(clientId: string, client: {
|
|
@@ -543,6 +546,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
543
546
|
country?: string | undefined;
|
|
544
547
|
}[] | undefined;
|
|
545
548
|
account_number?: string | undefined;
|
|
549
|
+
company_number?: string | undefined;
|
|
546
550
|
id?: string | undefined;
|
|
547
551
|
}>;
|
|
548
552
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -578,6 +582,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
578
582
|
country?: string | undefined;
|
|
579
583
|
}[] | undefined;
|
|
580
584
|
account_number?: string | undefined;
|
|
585
|
+
company_number?: string | undefined;
|
|
581
586
|
id?: string | undefined;
|
|
582
587
|
}[]>;
|
|
583
588
|
createSupplier(supplier: {
|
|
@@ -648,6 +653,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
648
653
|
country?: string | undefined;
|
|
649
654
|
}[] | undefined;
|
|
650
655
|
account_number?: string | undefined;
|
|
656
|
+
company_number?: string | undefined;
|
|
651
657
|
id?: string | undefined;
|
|
652
658
|
}>;
|
|
653
659
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -683,6 +689,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
683
689
|
country?: string | undefined;
|
|
684
690
|
}[] | undefined;
|
|
685
691
|
account_number?: string | undefined;
|
|
692
|
+
company_number?: string | undefined;
|
|
686
693
|
id?: string | undefined;
|
|
687
694
|
}>;
|
|
688
695
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -750,6 +757,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
750
757
|
country?: string | undefined;
|
|
751
758
|
}[] | undefined;
|
|
752
759
|
account_number?: string | undefined;
|
|
760
|
+
company_number?: string | undefined;
|
|
753
761
|
id?: string | undefined;
|
|
754
762
|
}>;
|
|
755
763
|
createInvoice(invoice: {
|
|
@@ -814,7 +822,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
814
822
|
amount: number;
|
|
815
823
|
dedicated_amount?: number | undefined;
|
|
816
824
|
payment_date: string;
|
|
817
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
825
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
818
826
|
journal_id: string;
|
|
819
827
|
journal_name: string;
|
|
820
828
|
reconciled?: boolean | undefined;
|
|
@@ -905,7 +913,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
905
913
|
amount: number;
|
|
906
914
|
dedicated_amount?: number | undefined;
|
|
907
915
|
payment_date: string;
|
|
908
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
916
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
909
917
|
journal_id: string;
|
|
910
918
|
journal_name: string;
|
|
911
919
|
reconciled?: boolean | undefined;
|
|
@@ -956,7 +964,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
956
964
|
amount: number;
|
|
957
965
|
dedicated_amount?: number | undefined;
|
|
958
966
|
payment_date: string;
|
|
959
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
967
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
960
968
|
journal_id: string;
|
|
961
969
|
journal_name: string;
|
|
962
970
|
reconciled?: boolean | undefined;
|
|
@@ -1003,7 +1011,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
1003
1011
|
amount: number;
|
|
1004
1012
|
dedicated_amount?: number | undefined;
|
|
1005
1013
|
payment_date: string;
|
|
1006
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
1014
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
1007
1015
|
journal_id: string;
|
|
1008
1016
|
journal_name: string;
|
|
1009
1017
|
reconciled?: boolean | undefined;
|
|
@@ -1050,7 +1058,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
1050
1058
|
amount: number;
|
|
1051
1059
|
dedicated_amount?: number | undefined;
|
|
1052
1060
|
payment_date: string;
|
|
1053
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
1061
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
1054
1062
|
journal_id: string;
|
|
1055
1063
|
journal_name: string;
|
|
1056
1064
|
reconciled?: boolean | undefined;
|
|
@@ -1101,7 +1109,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
1101
1109
|
amount: number;
|
|
1102
1110
|
dedicated_amount?: number | undefined;
|
|
1103
1111
|
payment_date: string;
|
|
1104
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
1112
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
1105
1113
|
journal_id: string;
|
|
1106
1114
|
journal_name: string;
|
|
1107
1115
|
reconciled?: boolean | undefined;
|
|
@@ -1315,7 +1323,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
1315
1323
|
amount: number;
|
|
1316
1324
|
dedicated_amount?: number | undefined;
|
|
1317
1325
|
payment_date: string;
|
|
1318
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
1326
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
1319
1327
|
journal_id: string;
|
|
1320
1328
|
journal_name: string;
|
|
1321
1329
|
reconciled?: boolean | undefined;
|
|
@@ -1326,13 +1334,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
1326
1334
|
id: string;
|
|
1327
1335
|
code: string;
|
|
1328
1336
|
name: string;
|
|
1329
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
1337
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
1330
1338
|
}[]>;
|
|
1331
1339
|
getVatCodes(): import("../types/api").RequestData<{
|
|
1332
1340
|
id: string;
|
|
1333
1341
|
code?: string | undefined;
|
|
1334
1342
|
label: string;
|
|
1335
|
-
scope?: "
|
|
1343
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
1336
1344
|
rate: number;
|
|
1337
1345
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
1338
1346
|
}[]>;
|
|
@@ -1444,12 +1452,32 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
1444
1452
|
reference?: string | undefined;
|
|
1445
1453
|
account_number?: string | undefined;
|
|
1446
1454
|
}[]>;
|
|
1447
|
-
|
|
1455
|
+
getOutstandings(params: {
|
|
1456
|
+
unposted_allowed: "true" | "false";
|
|
1457
|
+
type: "client" | "supplier";
|
|
1458
|
+
}): import("../types/api").RequestData<{
|
|
1459
|
+
id: string;
|
|
1460
|
+
number?: string | undefined;
|
|
1461
|
+
journal_id: string;
|
|
1462
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
1463
|
+
date: string;
|
|
1464
|
+
due_date?: string | undefined;
|
|
1465
|
+
currency: string;
|
|
1466
|
+
currency_exchange_rate: number;
|
|
1467
|
+
amount: number;
|
|
1468
|
+
open_amount: number;
|
|
1469
|
+
partner_id: string;
|
|
1470
|
+
account_number: string;
|
|
1471
|
+
reference?: string | undefined;
|
|
1472
|
+
posted: boolean;
|
|
1473
|
+
}[]>;
|
|
1474
|
+
createFinancialEntryOld(financial_entry: {
|
|
1448
1475
|
date: string;
|
|
1449
1476
|
journal_id: string;
|
|
1450
1477
|
currency: string;
|
|
1451
1478
|
currency_exchange_rate?: number | undefined;
|
|
1452
1479
|
reference?: string | undefined;
|
|
1480
|
+
number?: string | undefined;
|
|
1453
1481
|
items: {
|
|
1454
1482
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
1455
1483
|
account_number: string;
|
|
@@ -1457,14 +1485,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
1457
1485
|
amount: number;
|
|
1458
1486
|
description?: string | undefined;
|
|
1459
1487
|
}[];
|
|
1460
|
-
number?: string | undefined;
|
|
1461
1488
|
pdf?: string | undefined;
|
|
1462
|
-
}
|
|
1489
|
+
}, params: {
|
|
1490
|
+
financial_counterpart_account?: string | undefined;
|
|
1491
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1463
1492
|
date: string;
|
|
1464
1493
|
journal_id: string;
|
|
1465
1494
|
currency: string;
|
|
1466
1495
|
currency_exchange_rate?: number | undefined;
|
|
1467
1496
|
reference?: string | undefined;
|
|
1497
|
+
id: string;
|
|
1498
|
+
number: string;
|
|
1468
1499
|
items: {
|
|
1469
1500
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
1470
1501
|
account_number: string;
|
|
@@ -1473,13 +1504,97 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
1473
1504
|
description?: string | undefined;
|
|
1474
1505
|
counterpart_account: string;
|
|
1475
1506
|
}[];
|
|
1507
|
+
}>;
|
|
1508
|
+
createFinancialEntry(financial_entry: {
|
|
1509
|
+
date: string;
|
|
1510
|
+
journal_id: string;
|
|
1511
|
+
currency: string;
|
|
1512
|
+
currency_exchange_rate?: number | undefined;
|
|
1513
|
+
reference?: string | undefined;
|
|
1514
|
+
number?: string | undefined;
|
|
1515
|
+
items: {
|
|
1516
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
1517
|
+
account: string;
|
|
1518
|
+
amount: number;
|
|
1519
|
+
description?: string | undefined;
|
|
1520
|
+
}[];
|
|
1521
|
+
pdf?: string | undefined;
|
|
1522
|
+
}, params: {
|
|
1523
|
+
financial_counterpart_account?: string | undefined;
|
|
1524
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1525
|
+
date: string;
|
|
1526
|
+
journal_id: string;
|
|
1527
|
+
currency: string;
|
|
1528
|
+
currency_exchange_rate?: number | undefined;
|
|
1529
|
+
reference?: string | undefined;
|
|
1476
1530
|
id: string;
|
|
1477
1531
|
number: string;
|
|
1532
|
+
items: {
|
|
1533
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
1534
|
+
account: string;
|
|
1535
|
+
amount: number;
|
|
1536
|
+
description?: string | undefined;
|
|
1537
|
+
counterpart_account: string;
|
|
1538
|
+
}[];
|
|
1539
|
+
}[]>;
|
|
1540
|
+
createJournalEntry(journal_entry: {
|
|
1541
|
+
reference?: string | undefined;
|
|
1542
|
+
due_date?: string | undefined;
|
|
1543
|
+
journal_id: string;
|
|
1544
|
+
name: string;
|
|
1545
|
+
date: string;
|
|
1546
|
+
items: {
|
|
1547
|
+
account_number: string;
|
|
1548
|
+
partner_id?: string | undefined;
|
|
1549
|
+
description?: string | undefined;
|
|
1550
|
+
debit: number;
|
|
1551
|
+
credit: number;
|
|
1552
|
+
currency: string;
|
|
1553
|
+
currency_exchange_rate?: number | undefined;
|
|
1554
|
+
analytic_distribution?: {
|
|
1555
|
+
analytic_plan: string;
|
|
1556
|
+
analytic_accounts: {
|
|
1557
|
+
analytic_account: string;
|
|
1558
|
+
percentage: number;
|
|
1559
|
+
}[];
|
|
1560
|
+
}[] | undefined;
|
|
1561
|
+
pdf?: string | undefined;
|
|
1562
|
+
}[];
|
|
1563
|
+
}): import("../types/api").RequestData<{
|
|
1564
|
+
reference?: string | undefined;
|
|
1565
|
+
due_date?: string | undefined;
|
|
1566
|
+
journal_id: string;
|
|
1567
|
+
name?: string | undefined;
|
|
1568
|
+
journal_name: string;
|
|
1569
|
+
date?: string | undefined;
|
|
1570
|
+
posted?: boolean | undefined;
|
|
1571
|
+
id: string;
|
|
1572
|
+
items?: {
|
|
1573
|
+
account_number: string;
|
|
1574
|
+
partner_id?: string | undefined;
|
|
1575
|
+
description?: string | undefined;
|
|
1576
|
+
debit: number;
|
|
1577
|
+
credit: number;
|
|
1578
|
+
currency: string;
|
|
1579
|
+
currency_exchange_rate?: number | undefined;
|
|
1580
|
+
id: string;
|
|
1581
|
+
partner_name?: string | undefined;
|
|
1582
|
+
account_name: string;
|
|
1583
|
+
matching_numbers?: string[] | undefined;
|
|
1584
|
+
analytic_distribution?: {
|
|
1585
|
+
analytic_plan: string;
|
|
1586
|
+
analytic_accounts: {
|
|
1587
|
+
analytic_account: string;
|
|
1588
|
+
percentage: number;
|
|
1589
|
+
}[];
|
|
1590
|
+
}[] | undefined;
|
|
1591
|
+
}[] | undefined;
|
|
1478
1592
|
}>;
|
|
1479
1593
|
}>;
|
|
1480
1594
|
invoicing: import("../types/api").ApiFor<{
|
|
1481
1595
|
getInvoices(params: {
|
|
1482
1596
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
1597
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1483
1598
|
date_from?: string | undefined;
|
|
1484
1599
|
date_to?: string | undefined;
|
|
1485
1600
|
page?: number | undefined;
|
|
@@ -1498,12 +1613,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
1498
1613
|
untaxed_amount: number;
|
|
1499
1614
|
total: number;
|
|
1500
1615
|
lines?: {
|
|
1501
|
-
description
|
|
1616
|
+
description?: string | undefined;
|
|
1502
1617
|
unit_price: number;
|
|
1503
1618
|
quantity: number;
|
|
1619
|
+
discount_amount?: number | undefined;
|
|
1504
1620
|
tax_amount: number;
|
|
1505
|
-
total: number;
|
|
1506
1621
|
untaxed_amount: number;
|
|
1622
|
+
total: number;
|
|
1507
1623
|
tax_rate?: number | undefined;
|
|
1508
1624
|
account_number?: string | undefined;
|
|
1509
1625
|
tax_id?: string | undefined;
|
|
@@ -1540,12 +1656,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
1540
1656
|
untaxed_amount: number;
|
|
1541
1657
|
total: number;
|
|
1542
1658
|
lines?: {
|
|
1543
|
-
description
|
|
1659
|
+
description?: string | undefined;
|
|
1544
1660
|
unit_price: number;
|
|
1545
1661
|
quantity: number;
|
|
1662
|
+
discount_amount?: number | undefined;
|
|
1546
1663
|
tax_amount: number;
|
|
1547
|
-
total: number;
|
|
1548
1664
|
untaxed_amount: number;
|
|
1665
|
+
total: number;
|
|
1549
1666
|
tax_rate?: number | undefined;
|
|
1550
1667
|
account_number?: string | undefined;
|
|
1551
1668
|
tax_id?: string | undefined;
|
|
@@ -1575,12 +1692,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
1575
1692
|
untaxed_amount: number;
|
|
1576
1693
|
total: number;
|
|
1577
1694
|
lines?: {
|
|
1578
|
-
description
|
|
1695
|
+
description?: string | undefined;
|
|
1579
1696
|
unit_price: number;
|
|
1580
1697
|
quantity: number;
|
|
1698
|
+
discount_amount?: number | undefined;
|
|
1581
1699
|
tax_amount: number;
|
|
1582
|
-
total: number;
|
|
1583
1700
|
untaxed_amount: number;
|
|
1701
|
+
total: number;
|
|
1584
1702
|
tax_rate?: number | undefined;
|
|
1585
1703
|
account_number?: string | undefined;
|
|
1586
1704
|
tax_id?: string | undefined;
|
|
@@ -1614,12 +1732,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
1614
1732
|
untaxed_amount: number;
|
|
1615
1733
|
total: number;
|
|
1616
1734
|
lines?: {
|
|
1617
|
-
description
|
|
1735
|
+
description?: string | undefined;
|
|
1618
1736
|
unit_price: number;
|
|
1619
1737
|
quantity: number;
|
|
1738
|
+
discount_amount?: number | undefined;
|
|
1620
1739
|
tax_amount: number;
|
|
1621
|
-
total: number;
|
|
1622
1740
|
untaxed_amount: number;
|
|
1741
|
+
total: number;
|
|
1623
1742
|
tax_rate?: number | undefined;
|
|
1624
1743
|
account_number?: string | undefined;
|
|
1625
1744
|
tax_id?: string | undefined;
|
|
@@ -1704,7 +1823,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
1704
1823
|
rate: number;
|
|
1705
1824
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
1706
1825
|
code?: string | undefined;
|
|
1707
|
-
scope?: "
|
|
1826
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
1708
1827
|
}[]>;
|
|
1709
1828
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
1710
1829
|
id: string;
|
|
@@ -1716,7 +1835,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
1716
1835
|
rate: number;
|
|
1717
1836
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
1718
1837
|
code?: string | undefined;
|
|
1719
|
-
scope?: "
|
|
1838
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
1720
1839
|
}>;
|
|
1721
1840
|
getOpportunities(): import("../types/api").RequestData<{
|
|
1722
1841
|
id: string;
|
|
@@ -1771,7 +1890,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
1771
1890
|
} | undefined;
|
|
1772
1891
|
}>;
|
|
1773
1892
|
getContacts(params?: {
|
|
1774
|
-
contact_type?: "all" | "
|
|
1893
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
1775
1894
|
page?: number | undefined;
|
|
1776
1895
|
size?: number | undefined;
|
|
1777
1896
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -2227,7 +2346,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
2227
2346
|
last_updated_on?: string | undefined;
|
|
2228
2347
|
confirmed_on?: string | undefined;
|
|
2229
2348
|
cancelled_on?: string | undefined;
|
|
2230
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
2349
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
2231
2350
|
discount_amount: number;
|
|
2232
2351
|
untaxed_amount_without_fees: number;
|
|
2233
2352
|
tax_amount_without_fees: number;
|
|
@@ -2374,7 +2493,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
2374
2493
|
last_updated_on?: string | undefined;
|
|
2375
2494
|
confirmed_on?: string | undefined;
|
|
2376
2495
|
cancelled_on?: string | undefined;
|
|
2377
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
2496
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
2378
2497
|
discount_amount: number;
|
|
2379
2498
|
untaxed_amount_without_fees: number;
|
|
2380
2499
|
tax_amount_without_fees: number;
|
|
@@ -2480,7 +2599,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
2480
2599
|
last_updated_on?: string | undefined;
|
|
2481
2600
|
confirmed_on?: string | undefined;
|
|
2482
2601
|
cancelled_on?: string | undefined;
|
|
2483
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
2602
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
2484
2603
|
discount_amount: number;
|
|
2485
2604
|
untaxed_amount_without_fees: number;
|
|
2486
2605
|
tax_amount_without_fees: number;
|
|
@@ -2591,7 +2710,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
2591
2710
|
name: string;
|
|
2592
2711
|
title: string;
|
|
2593
2712
|
type: string;
|
|
2594
|
-
|
|
2713
|
+
optional?: boolean | undefined;
|
|
2595
2714
|
}[];
|
|
2596
2715
|
search_column?: string | undefined;
|
|
2597
2716
|
};
|
|
@@ -2992,6 +3111,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
2992
3111
|
country?: string | undefined;
|
|
2993
3112
|
}[] | undefined;
|
|
2994
3113
|
account_number?: string | undefined;
|
|
3114
|
+
company_number?: string | undefined;
|
|
2995
3115
|
id?: string | undefined;
|
|
2996
3116
|
}[]>;
|
|
2997
3117
|
createClient(client: {
|
|
@@ -3062,6 +3182,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
3062
3182
|
country?: string | undefined;
|
|
3063
3183
|
}[] | undefined;
|
|
3064
3184
|
account_number?: string | undefined;
|
|
3185
|
+
company_number?: string | undefined;
|
|
3065
3186
|
id?: string | undefined;
|
|
3066
3187
|
}>;
|
|
3067
3188
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -3097,6 +3218,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
3097
3218
|
country?: string | undefined;
|
|
3098
3219
|
}[] | undefined;
|
|
3099
3220
|
account_number?: string | undefined;
|
|
3221
|
+
company_number?: string | undefined;
|
|
3100
3222
|
id?: string | undefined;
|
|
3101
3223
|
}>;
|
|
3102
3224
|
updateClient(clientId: string, client: {
|
|
@@ -3164,6 +3286,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
3164
3286
|
country?: string | undefined;
|
|
3165
3287
|
}[] | undefined;
|
|
3166
3288
|
account_number?: string | undefined;
|
|
3289
|
+
company_number?: string | undefined;
|
|
3167
3290
|
id?: string | undefined;
|
|
3168
3291
|
}>;
|
|
3169
3292
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -3199,6 +3322,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
3199
3322
|
country?: string | undefined;
|
|
3200
3323
|
}[] | undefined;
|
|
3201
3324
|
account_number?: string | undefined;
|
|
3325
|
+
company_number?: string | undefined;
|
|
3202
3326
|
id?: string | undefined;
|
|
3203
3327
|
}[]>;
|
|
3204
3328
|
createSupplier(supplier: {
|
|
@@ -3269,6 +3393,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
3269
3393
|
country?: string | undefined;
|
|
3270
3394
|
}[] | undefined;
|
|
3271
3395
|
account_number?: string | undefined;
|
|
3396
|
+
company_number?: string | undefined;
|
|
3272
3397
|
id?: string | undefined;
|
|
3273
3398
|
}>;
|
|
3274
3399
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -3304,6 +3429,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
3304
3429
|
country?: string | undefined;
|
|
3305
3430
|
}[] | undefined;
|
|
3306
3431
|
account_number?: string | undefined;
|
|
3432
|
+
company_number?: string | undefined;
|
|
3307
3433
|
id?: string | undefined;
|
|
3308
3434
|
}>;
|
|
3309
3435
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -3371,6 +3497,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
3371
3497
|
country?: string | undefined;
|
|
3372
3498
|
}[] | undefined;
|
|
3373
3499
|
account_number?: string | undefined;
|
|
3500
|
+
company_number?: string | undefined;
|
|
3374
3501
|
id?: string | undefined;
|
|
3375
3502
|
}>;
|
|
3376
3503
|
createInvoice(invoice: {
|
|
@@ -3435,7 +3562,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
3435
3562
|
amount: number;
|
|
3436
3563
|
dedicated_amount?: number | undefined;
|
|
3437
3564
|
payment_date: string;
|
|
3438
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
3565
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3439
3566
|
journal_id: string;
|
|
3440
3567
|
journal_name: string;
|
|
3441
3568
|
reconciled?: boolean | undefined;
|
|
@@ -3526,7 +3653,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
3526
3653
|
amount: number;
|
|
3527
3654
|
dedicated_amount?: number | undefined;
|
|
3528
3655
|
payment_date: string;
|
|
3529
|
-
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";
|
|
3530
3657
|
journal_id: string;
|
|
3531
3658
|
journal_name: string;
|
|
3532
3659
|
reconciled?: boolean | undefined;
|
|
@@ -3577,7 +3704,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
3577
3704
|
amount: number;
|
|
3578
3705
|
dedicated_amount?: number | undefined;
|
|
3579
3706
|
payment_date: string;
|
|
3580
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
3707
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3581
3708
|
journal_id: string;
|
|
3582
3709
|
journal_name: string;
|
|
3583
3710
|
reconciled?: boolean | undefined;
|
|
@@ -3624,7 +3751,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
3624
3751
|
amount: number;
|
|
3625
3752
|
dedicated_amount?: number | undefined;
|
|
3626
3753
|
payment_date: string;
|
|
3627
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
3754
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3628
3755
|
journal_id: string;
|
|
3629
3756
|
journal_name: string;
|
|
3630
3757
|
reconciled?: boolean | undefined;
|
|
@@ -3671,7 +3798,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
3671
3798
|
amount: number;
|
|
3672
3799
|
dedicated_amount?: number | undefined;
|
|
3673
3800
|
payment_date: string;
|
|
3674
|
-
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";
|
|
3675
3802
|
journal_id: string;
|
|
3676
3803
|
journal_name: string;
|
|
3677
3804
|
reconciled?: boolean | undefined;
|
|
@@ -3722,7 +3849,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
3722
3849
|
amount: number;
|
|
3723
3850
|
dedicated_amount?: number | undefined;
|
|
3724
3851
|
payment_date: string;
|
|
3725
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
3852
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3726
3853
|
journal_id: string;
|
|
3727
3854
|
journal_name: string;
|
|
3728
3855
|
reconciled?: boolean | undefined;
|
|
@@ -3936,7 +4063,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
3936
4063
|
amount: number;
|
|
3937
4064
|
dedicated_amount?: number | undefined;
|
|
3938
4065
|
payment_date: string;
|
|
3939
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
4066
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3940
4067
|
journal_id: string;
|
|
3941
4068
|
journal_name: string;
|
|
3942
4069
|
reconciled?: boolean | undefined;
|
|
@@ -3947,13 +4074,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
3947
4074
|
id: string;
|
|
3948
4075
|
code: string;
|
|
3949
4076
|
name: string;
|
|
3950
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
4077
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3951
4078
|
}[]>;
|
|
3952
4079
|
getVatCodes(): import("../types/api").RequestData<{
|
|
3953
4080
|
id: string;
|
|
3954
4081
|
code?: string | undefined;
|
|
3955
4082
|
label: string;
|
|
3956
|
-
scope?: "
|
|
4083
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
3957
4084
|
rate: number;
|
|
3958
4085
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
3959
4086
|
}[]>;
|
|
@@ -4065,12 +4192,32 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
4065
4192
|
reference?: string | undefined;
|
|
4066
4193
|
account_number?: string | undefined;
|
|
4067
4194
|
}[]>;
|
|
4068
|
-
|
|
4195
|
+
getOutstandings(params: {
|
|
4196
|
+
unposted_allowed: "true" | "false";
|
|
4197
|
+
type: "client" | "supplier";
|
|
4198
|
+
}): import("../types/api").RequestData<{
|
|
4199
|
+
id: string;
|
|
4200
|
+
number?: string | undefined;
|
|
4201
|
+
journal_id: string;
|
|
4202
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
4203
|
+
date: string;
|
|
4204
|
+
due_date?: string | undefined;
|
|
4205
|
+
currency: string;
|
|
4206
|
+
currency_exchange_rate: number;
|
|
4207
|
+
amount: number;
|
|
4208
|
+
open_amount: number;
|
|
4209
|
+
partner_id: string;
|
|
4210
|
+
account_number: string;
|
|
4211
|
+
reference?: string | undefined;
|
|
4212
|
+
posted: boolean;
|
|
4213
|
+
}[]>;
|
|
4214
|
+
createFinancialEntryOld(financial_entry: {
|
|
4069
4215
|
date: string;
|
|
4070
4216
|
journal_id: string;
|
|
4071
4217
|
currency: string;
|
|
4072
4218
|
currency_exchange_rate?: number | undefined;
|
|
4073
4219
|
reference?: string | undefined;
|
|
4220
|
+
number?: string | undefined;
|
|
4074
4221
|
items: {
|
|
4075
4222
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
4076
4223
|
account_number: string;
|
|
@@ -4078,14 +4225,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
4078
4225
|
amount: number;
|
|
4079
4226
|
description?: string | undefined;
|
|
4080
4227
|
}[];
|
|
4081
|
-
number?: string | undefined;
|
|
4082
4228
|
pdf?: string | undefined;
|
|
4083
|
-
}
|
|
4229
|
+
}, params: {
|
|
4230
|
+
financial_counterpart_account?: string | undefined;
|
|
4231
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4084
4232
|
date: string;
|
|
4085
4233
|
journal_id: string;
|
|
4086
4234
|
currency: string;
|
|
4087
4235
|
currency_exchange_rate?: number | undefined;
|
|
4088
4236
|
reference?: string | undefined;
|
|
4237
|
+
id: string;
|
|
4238
|
+
number: string;
|
|
4089
4239
|
items: {
|
|
4090
4240
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
4091
4241
|
account_number: string;
|
|
@@ -4094,13 +4244,97 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
4094
4244
|
description?: string | undefined;
|
|
4095
4245
|
counterpart_account: string;
|
|
4096
4246
|
}[];
|
|
4247
|
+
}>;
|
|
4248
|
+
createFinancialEntry(financial_entry: {
|
|
4249
|
+
date: string;
|
|
4250
|
+
journal_id: string;
|
|
4251
|
+
currency: string;
|
|
4252
|
+
currency_exchange_rate?: number | undefined;
|
|
4253
|
+
reference?: string | undefined;
|
|
4254
|
+
number?: string | undefined;
|
|
4255
|
+
items: {
|
|
4256
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
4257
|
+
account: string;
|
|
4258
|
+
amount: number;
|
|
4259
|
+
description?: string | undefined;
|
|
4260
|
+
}[];
|
|
4261
|
+
pdf?: string | undefined;
|
|
4262
|
+
}, params: {
|
|
4263
|
+
financial_counterpart_account?: string | undefined;
|
|
4264
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4265
|
+
date: string;
|
|
4266
|
+
journal_id: string;
|
|
4267
|
+
currency: string;
|
|
4268
|
+
currency_exchange_rate?: number | undefined;
|
|
4269
|
+
reference?: string | undefined;
|
|
4097
4270
|
id: string;
|
|
4098
4271
|
number: string;
|
|
4272
|
+
items: {
|
|
4273
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
4274
|
+
account: string;
|
|
4275
|
+
amount: number;
|
|
4276
|
+
description?: string | undefined;
|
|
4277
|
+
counterpart_account: string;
|
|
4278
|
+
}[];
|
|
4279
|
+
}[]>;
|
|
4280
|
+
createJournalEntry(journal_entry: {
|
|
4281
|
+
reference?: string | undefined;
|
|
4282
|
+
due_date?: string | undefined;
|
|
4283
|
+
journal_id: string;
|
|
4284
|
+
name: string;
|
|
4285
|
+
date: string;
|
|
4286
|
+
items: {
|
|
4287
|
+
account_number: string;
|
|
4288
|
+
partner_id?: string | undefined;
|
|
4289
|
+
description?: string | undefined;
|
|
4290
|
+
debit: number;
|
|
4291
|
+
credit: number;
|
|
4292
|
+
currency: string;
|
|
4293
|
+
currency_exchange_rate?: number | undefined;
|
|
4294
|
+
analytic_distribution?: {
|
|
4295
|
+
analytic_plan: string;
|
|
4296
|
+
analytic_accounts: {
|
|
4297
|
+
analytic_account: string;
|
|
4298
|
+
percentage: number;
|
|
4299
|
+
}[];
|
|
4300
|
+
}[] | undefined;
|
|
4301
|
+
pdf?: string | undefined;
|
|
4302
|
+
}[];
|
|
4303
|
+
}): import("../types/api").RequestData<{
|
|
4304
|
+
reference?: string | undefined;
|
|
4305
|
+
due_date?: string | undefined;
|
|
4306
|
+
journal_id: string;
|
|
4307
|
+
name?: string | undefined;
|
|
4308
|
+
journal_name: string;
|
|
4309
|
+
date?: string | undefined;
|
|
4310
|
+
posted?: boolean | undefined;
|
|
4311
|
+
id: string;
|
|
4312
|
+
items?: {
|
|
4313
|
+
account_number: string;
|
|
4314
|
+
partner_id?: string | undefined;
|
|
4315
|
+
description?: string | undefined;
|
|
4316
|
+
debit: number;
|
|
4317
|
+
credit: number;
|
|
4318
|
+
currency: string;
|
|
4319
|
+
currency_exchange_rate?: number | undefined;
|
|
4320
|
+
id: string;
|
|
4321
|
+
partner_name?: string | undefined;
|
|
4322
|
+
account_name: string;
|
|
4323
|
+
matching_numbers?: string[] | undefined;
|
|
4324
|
+
analytic_distribution?: {
|
|
4325
|
+
analytic_plan: string;
|
|
4326
|
+
analytic_accounts: {
|
|
4327
|
+
analytic_account: string;
|
|
4328
|
+
percentage: number;
|
|
4329
|
+
}[];
|
|
4330
|
+
}[] | undefined;
|
|
4331
|
+
}[] | undefined;
|
|
4099
4332
|
}>;
|
|
4100
4333
|
}>;
|
|
4101
4334
|
invoicing: import("../types/api").ApiFor<{
|
|
4102
4335
|
getInvoices(params: {
|
|
4103
4336
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
4337
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
4104
4338
|
date_from?: string | undefined;
|
|
4105
4339
|
date_to?: string | undefined;
|
|
4106
4340
|
page?: number | undefined;
|
|
@@ -4119,12 +4353,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
4119
4353
|
untaxed_amount: number;
|
|
4120
4354
|
total: number;
|
|
4121
4355
|
lines?: {
|
|
4122
|
-
description
|
|
4356
|
+
description?: string | undefined;
|
|
4123
4357
|
unit_price: number;
|
|
4124
4358
|
quantity: number;
|
|
4359
|
+
discount_amount?: number | undefined;
|
|
4125
4360
|
tax_amount: number;
|
|
4126
|
-
total: number;
|
|
4127
4361
|
untaxed_amount: number;
|
|
4362
|
+
total: number;
|
|
4128
4363
|
tax_rate?: number | undefined;
|
|
4129
4364
|
account_number?: string | undefined;
|
|
4130
4365
|
tax_id?: string | undefined;
|
|
@@ -4161,12 +4396,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
4161
4396
|
untaxed_amount: number;
|
|
4162
4397
|
total: number;
|
|
4163
4398
|
lines?: {
|
|
4164
|
-
description
|
|
4399
|
+
description?: string | undefined;
|
|
4165
4400
|
unit_price: number;
|
|
4166
4401
|
quantity: number;
|
|
4402
|
+
discount_amount?: number | undefined;
|
|
4167
4403
|
tax_amount: number;
|
|
4168
|
-
total: number;
|
|
4169
4404
|
untaxed_amount: number;
|
|
4405
|
+
total: number;
|
|
4170
4406
|
tax_rate?: number | undefined;
|
|
4171
4407
|
account_number?: string | undefined;
|
|
4172
4408
|
tax_id?: string | undefined;
|
|
@@ -4196,12 +4432,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
4196
4432
|
untaxed_amount: number;
|
|
4197
4433
|
total: number;
|
|
4198
4434
|
lines?: {
|
|
4199
|
-
description
|
|
4435
|
+
description?: string | undefined;
|
|
4200
4436
|
unit_price: number;
|
|
4201
4437
|
quantity: number;
|
|
4438
|
+
discount_amount?: number | undefined;
|
|
4202
4439
|
tax_amount: number;
|
|
4203
|
-
total: number;
|
|
4204
4440
|
untaxed_amount: number;
|
|
4441
|
+
total: number;
|
|
4205
4442
|
tax_rate?: number | undefined;
|
|
4206
4443
|
account_number?: string | undefined;
|
|
4207
4444
|
tax_id?: string | undefined;
|
|
@@ -4235,12 +4472,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
4235
4472
|
untaxed_amount: number;
|
|
4236
4473
|
total: number;
|
|
4237
4474
|
lines?: {
|
|
4238
|
-
description
|
|
4475
|
+
description?: string | undefined;
|
|
4239
4476
|
unit_price: number;
|
|
4240
4477
|
quantity: number;
|
|
4478
|
+
discount_amount?: number | undefined;
|
|
4241
4479
|
tax_amount: number;
|
|
4242
|
-
total: number;
|
|
4243
4480
|
untaxed_amount: number;
|
|
4481
|
+
total: number;
|
|
4244
4482
|
tax_rate?: number | undefined;
|
|
4245
4483
|
account_number?: string | undefined;
|
|
4246
4484
|
tax_id?: string | undefined;
|
|
@@ -4325,7 +4563,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
4325
4563
|
rate: number;
|
|
4326
4564
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
4327
4565
|
code?: string | undefined;
|
|
4328
|
-
scope?: "
|
|
4566
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
4329
4567
|
}[]>;
|
|
4330
4568
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
4331
4569
|
id: string;
|
|
@@ -4337,7 +4575,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
4337
4575
|
rate: number;
|
|
4338
4576
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
4339
4577
|
code?: string | undefined;
|
|
4340
|
-
scope?: "
|
|
4578
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
4341
4579
|
}>;
|
|
4342
4580
|
getOpportunities(): import("../types/api").RequestData<{
|
|
4343
4581
|
id: string;
|
|
@@ -4392,7 +4630,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
4392
4630
|
} | undefined;
|
|
4393
4631
|
}>;
|
|
4394
4632
|
getContacts(params?: {
|
|
4395
|
-
contact_type?: "all" | "
|
|
4633
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
4396
4634
|
page?: number | undefined;
|
|
4397
4635
|
size?: number | undefined;
|
|
4398
4636
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -4848,7 +5086,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
4848
5086
|
last_updated_on?: string | undefined;
|
|
4849
5087
|
confirmed_on?: string | undefined;
|
|
4850
5088
|
cancelled_on?: string | undefined;
|
|
4851
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
5089
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
4852
5090
|
discount_amount: number;
|
|
4853
5091
|
untaxed_amount_without_fees: number;
|
|
4854
5092
|
tax_amount_without_fees: number;
|
|
@@ -4995,7 +5233,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
4995
5233
|
last_updated_on?: string | undefined;
|
|
4996
5234
|
confirmed_on?: string | undefined;
|
|
4997
5235
|
cancelled_on?: string | undefined;
|
|
4998
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
5236
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
4999
5237
|
discount_amount: number;
|
|
5000
5238
|
untaxed_amount_without_fees: number;
|
|
5001
5239
|
tax_amount_without_fees: number;
|
|
@@ -5101,7 +5339,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
5101
5339
|
last_updated_on?: string | undefined;
|
|
5102
5340
|
confirmed_on?: string | undefined;
|
|
5103
5341
|
cancelled_on?: string | undefined;
|
|
5104
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
5342
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
5105
5343
|
discount_amount: number;
|
|
5106
5344
|
untaxed_amount_without_fees: number;
|
|
5107
5345
|
tax_amount_without_fees: number;
|
|
@@ -5212,7 +5450,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
5212
5450
|
name: string;
|
|
5213
5451
|
title: string;
|
|
5214
5452
|
type: string;
|
|
5215
|
-
|
|
5453
|
+
optional?: boolean | undefined;
|
|
5216
5454
|
}[];
|
|
5217
5455
|
search_column?: string | undefined;
|
|
5218
5456
|
};
|
|
@@ -5613,6 +5851,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
5613
5851
|
country?: string | undefined;
|
|
5614
5852
|
}[] | undefined;
|
|
5615
5853
|
account_number?: string | undefined;
|
|
5854
|
+
company_number?: string | undefined;
|
|
5616
5855
|
id?: string | undefined;
|
|
5617
5856
|
}[]>;
|
|
5618
5857
|
createClient(client: {
|
|
@@ -5683,6 +5922,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
5683
5922
|
country?: string | undefined;
|
|
5684
5923
|
}[] | undefined;
|
|
5685
5924
|
account_number?: string | undefined;
|
|
5925
|
+
company_number?: string | undefined;
|
|
5686
5926
|
id?: string | undefined;
|
|
5687
5927
|
}>;
|
|
5688
5928
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -5718,6 +5958,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
5718
5958
|
country?: string | undefined;
|
|
5719
5959
|
}[] | undefined;
|
|
5720
5960
|
account_number?: string | undefined;
|
|
5961
|
+
company_number?: string | undefined;
|
|
5721
5962
|
id?: string | undefined;
|
|
5722
5963
|
}>;
|
|
5723
5964
|
updateClient(clientId: string, client: {
|
|
@@ -5785,6 +6026,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
5785
6026
|
country?: string | undefined;
|
|
5786
6027
|
}[] | undefined;
|
|
5787
6028
|
account_number?: string | undefined;
|
|
6029
|
+
company_number?: string | undefined;
|
|
5788
6030
|
id?: string | undefined;
|
|
5789
6031
|
}>;
|
|
5790
6032
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -5820,6 +6062,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
5820
6062
|
country?: string | undefined;
|
|
5821
6063
|
}[] | undefined;
|
|
5822
6064
|
account_number?: string | undefined;
|
|
6065
|
+
company_number?: string | undefined;
|
|
5823
6066
|
id?: string | undefined;
|
|
5824
6067
|
}[]>;
|
|
5825
6068
|
createSupplier(supplier: {
|
|
@@ -5890,6 +6133,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
5890
6133
|
country?: string | undefined;
|
|
5891
6134
|
}[] | undefined;
|
|
5892
6135
|
account_number?: string | undefined;
|
|
6136
|
+
company_number?: string | undefined;
|
|
5893
6137
|
id?: string | undefined;
|
|
5894
6138
|
}>;
|
|
5895
6139
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -5925,6 +6169,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
5925
6169
|
country?: string | undefined;
|
|
5926
6170
|
}[] | undefined;
|
|
5927
6171
|
account_number?: string | undefined;
|
|
6172
|
+
company_number?: string | undefined;
|
|
5928
6173
|
id?: string | undefined;
|
|
5929
6174
|
}>;
|
|
5930
6175
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -5992,6 +6237,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
5992
6237
|
country?: string | undefined;
|
|
5993
6238
|
}[] | undefined;
|
|
5994
6239
|
account_number?: string | undefined;
|
|
6240
|
+
company_number?: string | undefined;
|
|
5995
6241
|
id?: string | undefined;
|
|
5996
6242
|
}>;
|
|
5997
6243
|
createInvoice(invoice: {
|
|
@@ -6056,7 +6302,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
6056
6302
|
amount: number;
|
|
6057
6303
|
dedicated_amount?: number | undefined;
|
|
6058
6304
|
payment_date: string;
|
|
6059
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6305
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6060
6306
|
journal_id: string;
|
|
6061
6307
|
journal_name: string;
|
|
6062
6308
|
reconciled?: boolean | undefined;
|
|
@@ -6147,7 +6393,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
6147
6393
|
amount: number;
|
|
6148
6394
|
dedicated_amount?: number | undefined;
|
|
6149
6395
|
payment_date: string;
|
|
6150
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6396
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6151
6397
|
journal_id: string;
|
|
6152
6398
|
journal_name: string;
|
|
6153
6399
|
reconciled?: boolean | undefined;
|
|
@@ -6198,7 +6444,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
6198
6444
|
amount: number;
|
|
6199
6445
|
dedicated_amount?: number | undefined;
|
|
6200
6446
|
payment_date: string;
|
|
6201
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6447
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6202
6448
|
journal_id: string;
|
|
6203
6449
|
journal_name: string;
|
|
6204
6450
|
reconciled?: boolean | undefined;
|
|
@@ -6245,7 +6491,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
6245
6491
|
amount: number;
|
|
6246
6492
|
dedicated_amount?: number | undefined;
|
|
6247
6493
|
payment_date: string;
|
|
6248
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6494
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6249
6495
|
journal_id: string;
|
|
6250
6496
|
journal_name: string;
|
|
6251
6497
|
reconciled?: boolean | undefined;
|
|
@@ -6292,7 +6538,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
6292
6538
|
amount: number;
|
|
6293
6539
|
dedicated_amount?: number | undefined;
|
|
6294
6540
|
payment_date: string;
|
|
6295
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6541
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6296
6542
|
journal_id: string;
|
|
6297
6543
|
journal_name: string;
|
|
6298
6544
|
reconciled?: boolean | undefined;
|
|
@@ -6343,7 +6589,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
6343
6589
|
amount: number;
|
|
6344
6590
|
dedicated_amount?: number | undefined;
|
|
6345
6591
|
payment_date: string;
|
|
6346
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6592
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6347
6593
|
journal_id: string;
|
|
6348
6594
|
journal_name: string;
|
|
6349
6595
|
reconciled?: boolean | undefined;
|
|
@@ -6557,7 +6803,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
6557
6803
|
amount: number;
|
|
6558
6804
|
dedicated_amount?: number | undefined;
|
|
6559
6805
|
payment_date: string;
|
|
6560
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6806
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6561
6807
|
journal_id: string;
|
|
6562
6808
|
journal_name: string;
|
|
6563
6809
|
reconciled?: boolean | undefined;
|
|
@@ -6568,13 +6814,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
6568
6814
|
id: string;
|
|
6569
6815
|
code: string;
|
|
6570
6816
|
name: string;
|
|
6571
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6817
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6572
6818
|
}[]>;
|
|
6573
6819
|
getVatCodes(): import("../types/api").RequestData<{
|
|
6574
6820
|
id: string;
|
|
6575
6821
|
code?: string | undefined;
|
|
6576
6822
|
label: string;
|
|
6577
|
-
scope?: "
|
|
6823
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
6578
6824
|
rate: number;
|
|
6579
6825
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
6580
6826
|
}[]>;
|
|
@@ -6686,12 +6932,32 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
6686
6932
|
reference?: string | undefined;
|
|
6687
6933
|
account_number?: string | undefined;
|
|
6688
6934
|
}[]>;
|
|
6689
|
-
|
|
6935
|
+
getOutstandings(params: {
|
|
6936
|
+
unposted_allowed: "true" | "false";
|
|
6937
|
+
type: "client" | "supplier";
|
|
6938
|
+
}): import("../types/api").RequestData<{
|
|
6939
|
+
id: string;
|
|
6940
|
+
number?: string | undefined;
|
|
6941
|
+
journal_id: string;
|
|
6942
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6943
|
+
date: string;
|
|
6944
|
+
due_date?: string | undefined;
|
|
6945
|
+
currency: string;
|
|
6946
|
+
currency_exchange_rate: number;
|
|
6947
|
+
amount: number;
|
|
6948
|
+
open_amount: number;
|
|
6949
|
+
partner_id: string;
|
|
6950
|
+
account_number: string;
|
|
6951
|
+
reference?: string | undefined;
|
|
6952
|
+
posted: boolean;
|
|
6953
|
+
}[]>;
|
|
6954
|
+
createFinancialEntryOld(financial_entry: {
|
|
6690
6955
|
date: string;
|
|
6691
6956
|
journal_id: string;
|
|
6692
6957
|
currency: string;
|
|
6693
6958
|
currency_exchange_rate?: number | undefined;
|
|
6694
6959
|
reference?: string | undefined;
|
|
6960
|
+
number?: string | undefined;
|
|
6695
6961
|
items: {
|
|
6696
6962
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
6697
6963
|
account_number: string;
|
|
@@ -6699,14 +6965,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
6699
6965
|
amount: number;
|
|
6700
6966
|
description?: string | undefined;
|
|
6701
6967
|
}[];
|
|
6702
|
-
number?: string | undefined;
|
|
6703
6968
|
pdf?: string | undefined;
|
|
6704
|
-
}
|
|
6969
|
+
}, params: {
|
|
6970
|
+
financial_counterpart_account?: string | undefined;
|
|
6971
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6705
6972
|
date: string;
|
|
6706
6973
|
journal_id: string;
|
|
6707
6974
|
currency: string;
|
|
6708
6975
|
currency_exchange_rate?: number | undefined;
|
|
6709
6976
|
reference?: string | undefined;
|
|
6977
|
+
id: string;
|
|
6978
|
+
number: string;
|
|
6710
6979
|
items: {
|
|
6711
6980
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
6712
6981
|
account_number: string;
|
|
@@ -6715,13 +6984,97 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
6715
6984
|
description?: string | undefined;
|
|
6716
6985
|
counterpart_account: string;
|
|
6717
6986
|
}[];
|
|
6987
|
+
}>;
|
|
6988
|
+
createFinancialEntry(financial_entry: {
|
|
6989
|
+
date: string;
|
|
6990
|
+
journal_id: string;
|
|
6991
|
+
currency: string;
|
|
6992
|
+
currency_exchange_rate?: number | undefined;
|
|
6993
|
+
reference?: string | undefined;
|
|
6994
|
+
number?: string | undefined;
|
|
6995
|
+
items: {
|
|
6996
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
6997
|
+
account: string;
|
|
6998
|
+
amount: number;
|
|
6999
|
+
description?: string | undefined;
|
|
7000
|
+
}[];
|
|
7001
|
+
pdf?: string | undefined;
|
|
7002
|
+
}, params: {
|
|
7003
|
+
financial_counterpart_account?: string | undefined;
|
|
7004
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7005
|
+
date: string;
|
|
7006
|
+
journal_id: string;
|
|
7007
|
+
currency: string;
|
|
7008
|
+
currency_exchange_rate?: number | undefined;
|
|
7009
|
+
reference?: string | undefined;
|
|
6718
7010
|
id: string;
|
|
6719
7011
|
number: string;
|
|
7012
|
+
items: {
|
|
7013
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
7014
|
+
account: string;
|
|
7015
|
+
amount: number;
|
|
7016
|
+
description?: string | undefined;
|
|
7017
|
+
counterpart_account: string;
|
|
7018
|
+
}[];
|
|
7019
|
+
}[]>;
|
|
7020
|
+
createJournalEntry(journal_entry: {
|
|
7021
|
+
reference?: string | undefined;
|
|
7022
|
+
due_date?: string | undefined;
|
|
7023
|
+
journal_id: string;
|
|
7024
|
+
name: string;
|
|
7025
|
+
date: string;
|
|
7026
|
+
items: {
|
|
7027
|
+
account_number: string;
|
|
7028
|
+
partner_id?: string | undefined;
|
|
7029
|
+
description?: string | undefined;
|
|
7030
|
+
debit: number;
|
|
7031
|
+
credit: number;
|
|
7032
|
+
currency: string;
|
|
7033
|
+
currency_exchange_rate?: number | undefined;
|
|
7034
|
+
analytic_distribution?: {
|
|
7035
|
+
analytic_plan: string;
|
|
7036
|
+
analytic_accounts: {
|
|
7037
|
+
analytic_account: string;
|
|
7038
|
+
percentage: number;
|
|
7039
|
+
}[];
|
|
7040
|
+
}[] | undefined;
|
|
7041
|
+
pdf?: string | undefined;
|
|
7042
|
+
}[];
|
|
7043
|
+
}): import("../types/api").RequestData<{
|
|
7044
|
+
reference?: string | undefined;
|
|
7045
|
+
due_date?: string | undefined;
|
|
7046
|
+
journal_id: string;
|
|
7047
|
+
name?: string | undefined;
|
|
7048
|
+
journal_name: string;
|
|
7049
|
+
date?: string | undefined;
|
|
7050
|
+
posted?: boolean | undefined;
|
|
7051
|
+
id: string;
|
|
7052
|
+
items?: {
|
|
7053
|
+
account_number: string;
|
|
7054
|
+
partner_id?: string | undefined;
|
|
7055
|
+
description?: string | undefined;
|
|
7056
|
+
debit: number;
|
|
7057
|
+
credit: number;
|
|
7058
|
+
currency: string;
|
|
7059
|
+
currency_exchange_rate?: number | undefined;
|
|
7060
|
+
id: string;
|
|
7061
|
+
partner_name?: string | undefined;
|
|
7062
|
+
account_name: string;
|
|
7063
|
+
matching_numbers?: string[] | undefined;
|
|
7064
|
+
analytic_distribution?: {
|
|
7065
|
+
analytic_plan: string;
|
|
7066
|
+
analytic_accounts: {
|
|
7067
|
+
analytic_account: string;
|
|
7068
|
+
percentage: number;
|
|
7069
|
+
}[];
|
|
7070
|
+
}[] | undefined;
|
|
7071
|
+
}[] | undefined;
|
|
6720
7072
|
}>;
|
|
6721
7073
|
}>;
|
|
6722
7074
|
invoicing: import("../types/api").ApiFor<{
|
|
6723
7075
|
getInvoices(params: {
|
|
6724
7076
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
7077
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
6725
7078
|
date_from?: string | undefined;
|
|
6726
7079
|
date_to?: string | undefined;
|
|
6727
7080
|
page?: number | undefined;
|
|
@@ -6740,12 +7093,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
6740
7093
|
untaxed_amount: number;
|
|
6741
7094
|
total: number;
|
|
6742
7095
|
lines?: {
|
|
6743
|
-
description
|
|
7096
|
+
description?: string | undefined;
|
|
6744
7097
|
unit_price: number;
|
|
6745
7098
|
quantity: number;
|
|
7099
|
+
discount_amount?: number | undefined;
|
|
6746
7100
|
tax_amount: number;
|
|
6747
|
-
total: number;
|
|
6748
7101
|
untaxed_amount: number;
|
|
7102
|
+
total: number;
|
|
6749
7103
|
tax_rate?: number | undefined;
|
|
6750
7104
|
account_number?: string | undefined;
|
|
6751
7105
|
tax_id?: string | undefined;
|
|
@@ -6782,12 +7136,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
6782
7136
|
untaxed_amount: number;
|
|
6783
7137
|
total: number;
|
|
6784
7138
|
lines?: {
|
|
6785
|
-
description
|
|
7139
|
+
description?: string | undefined;
|
|
6786
7140
|
unit_price: number;
|
|
6787
7141
|
quantity: number;
|
|
7142
|
+
discount_amount?: number | undefined;
|
|
6788
7143
|
tax_amount: number;
|
|
6789
|
-
total: number;
|
|
6790
7144
|
untaxed_amount: number;
|
|
7145
|
+
total: number;
|
|
6791
7146
|
tax_rate?: number | undefined;
|
|
6792
7147
|
account_number?: string | undefined;
|
|
6793
7148
|
tax_id?: string | undefined;
|
|
@@ -6817,12 +7172,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
6817
7172
|
untaxed_amount: number;
|
|
6818
7173
|
total: number;
|
|
6819
7174
|
lines?: {
|
|
6820
|
-
description
|
|
7175
|
+
description?: string | undefined;
|
|
6821
7176
|
unit_price: number;
|
|
6822
7177
|
quantity: number;
|
|
7178
|
+
discount_amount?: number | undefined;
|
|
6823
7179
|
tax_amount: number;
|
|
6824
|
-
total: number;
|
|
6825
7180
|
untaxed_amount: number;
|
|
7181
|
+
total: number;
|
|
6826
7182
|
tax_rate?: number | undefined;
|
|
6827
7183
|
account_number?: string | undefined;
|
|
6828
7184
|
tax_id?: string | undefined;
|
|
@@ -6856,12 +7212,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
6856
7212
|
untaxed_amount: number;
|
|
6857
7213
|
total: number;
|
|
6858
7214
|
lines?: {
|
|
6859
|
-
description
|
|
7215
|
+
description?: string | undefined;
|
|
6860
7216
|
unit_price: number;
|
|
6861
7217
|
quantity: number;
|
|
7218
|
+
discount_amount?: number | undefined;
|
|
6862
7219
|
tax_amount: number;
|
|
6863
|
-
total: number;
|
|
6864
7220
|
untaxed_amount: number;
|
|
7221
|
+
total: number;
|
|
6865
7222
|
tax_rate?: number | undefined;
|
|
6866
7223
|
account_number?: string | undefined;
|
|
6867
7224
|
tax_id?: string | undefined;
|
|
@@ -6946,7 +7303,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
6946
7303
|
rate: number;
|
|
6947
7304
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
6948
7305
|
code?: string | undefined;
|
|
6949
|
-
scope?: "
|
|
7306
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
6950
7307
|
}[]>;
|
|
6951
7308
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
6952
7309
|
id: string;
|
|
@@ -6958,7 +7315,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
6958
7315
|
rate: number;
|
|
6959
7316
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
6960
7317
|
code?: string | undefined;
|
|
6961
|
-
scope?: "
|
|
7318
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
6962
7319
|
}>;
|
|
6963
7320
|
getOpportunities(): import("../types/api").RequestData<{
|
|
6964
7321
|
id: string;
|
|
@@ -7013,7 +7370,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
7013
7370
|
} | undefined;
|
|
7014
7371
|
}>;
|
|
7015
7372
|
getContacts(params?: {
|
|
7016
|
-
contact_type?: "all" | "
|
|
7373
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
7017
7374
|
page?: number | undefined;
|
|
7018
7375
|
size?: number | undefined;
|
|
7019
7376
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -7469,7 +7826,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
7469
7826
|
last_updated_on?: string | undefined;
|
|
7470
7827
|
confirmed_on?: string | undefined;
|
|
7471
7828
|
cancelled_on?: string | undefined;
|
|
7472
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
7829
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
7473
7830
|
discount_amount: number;
|
|
7474
7831
|
untaxed_amount_without_fees: number;
|
|
7475
7832
|
tax_amount_without_fees: number;
|
|
@@ -7616,7 +7973,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
7616
7973
|
last_updated_on?: string | undefined;
|
|
7617
7974
|
confirmed_on?: string | undefined;
|
|
7618
7975
|
cancelled_on?: string | undefined;
|
|
7619
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
7976
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
7620
7977
|
discount_amount: number;
|
|
7621
7978
|
untaxed_amount_without_fees: number;
|
|
7622
7979
|
tax_amount_without_fees: number;
|
|
@@ -7722,7 +8079,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
7722
8079
|
last_updated_on?: string | undefined;
|
|
7723
8080
|
confirmed_on?: string | undefined;
|
|
7724
8081
|
cancelled_on?: string | undefined;
|
|
7725
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
8082
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
7726
8083
|
discount_amount: number;
|
|
7727
8084
|
untaxed_amount_without_fees: number;
|
|
7728
8085
|
tax_amount_without_fees: number;
|
|
@@ -7833,7 +8190,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
7833
8190
|
name: string;
|
|
7834
8191
|
title: string;
|
|
7835
8192
|
type: string;
|
|
7836
|
-
|
|
8193
|
+
optional?: boolean | undefined;
|
|
7837
8194
|
}[];
|
|
7838
8195
|
search_column?: string | undefined;
|
|
7839
8196
|
};
|
|
@@ -8234,6 +8591,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
8234
8591
|
country?: string | undefined;
|
|
8235
8592
|
}[] | undefined;
|
|
8236
8593
|
account_number?: string | undefined;
|
|
8594
|
+
company_number?: string | undefined;
|
|
8237
8595
|
id?: string | undefined;
|
|
8238
8596
|
}[]>;
|
|
8239
8597
|
createClient(client: {
|
|
@@ -8304,6 +8662,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
8304
8662
|
country?: string | undefined;
|
|
8305
8663
|
}[] | undefined;
|
|
8306
8664
|
account_number?: string | undefined;
|
|
8665
|
+
company_number?: string | undefined;
|
|
8307
8666
|
id?: string | undefined;
|
|
8308
8667
|
}>;
|
|
8309
8668
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -8339,6 +8698,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
8339
8698
|
country?: string | undefined;
|
|
8340
8699
|
}[] | undefined;
|
|
8341
8700
|
account_number?: string | undefined;
|
|
8701
|
+
company_number?: string | undefined;
|
|
8342
8702
|
id?: string | undefined;
|
|
8343
8703
|
}>;
|
|
8344
8704
|
updateClient(clientId: string, client: {
|
|
@@ -8406,6 +8766,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
8406
8766
|
country?: string | undefined;
|
|
8407
8767
|
}[] | undefined;
|
|
8408
8768
|
account_number?: string | undefined;
|
|
8769
|
+
company_number?: string | undefined;
|
|
8409
8770
|
id?: string | undefined;
|
|
8410
8771
|
}>;
|
|
8411
8772
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -8441,6 +8802,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
8441
8802
|
country?: string | undefined;
|
|
8442
8803
|
}[] | undefined;
|
|
8443
8804
|
account_number?: string | undefined;
|
|
8805
|
+
company_number?: string | undefined;
|
|
8444
8806
|
id?: string | undefined;
|
|
8445
8807
|
}[]>;
|
|
8446
8808
|
createSupplier(supplier: {
|
|
@@ -8511,6 +8873,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
8511
8873
|
country?: string | undefined;
|
|
8512
8874
|
}[] | undefined;
|
|
8513
8875
|
account_number?: string | undefined;
|
|
8876
|
+
company_number?: string | undefined;
|
|
8514
8877
|
id?: string | undefined;
|
|
8515
8878
|
}>;
|
|
8516
8879
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -8546,6 +8909,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
8546
8909
|
country?: string | undefined;
|
|
8547
8910
|
}[] | undefined;
|
|
8548
8911
|
account_number?: string | undefined;
|
|
8912
|
+
company_number?: string | undefined;
|
|
8549
8913
|
id?: string | undefined;
|
|
8550
8914
|
}>;
|
|
8551
8915
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -8613,6 +8977,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
8613
8977
|
country?: string | undefined;
|
|
8614
8978
|
}[] | undefined;
|
|
8615
8979
|
account_number?: string | undefined;
|
|
8980
|
+
company_number?: string | undefined;
|
|
8616
8981
|
id?: string | undefined;
|
|
8617
8982
|
}>;
|
|
8618
8983
|
createInvoice(invoice: {
|
|
@@ -8677,7 +9042,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
8677
9042
|
amount: number;
|
|
8678
9043
|
dedicated_amount?: number | undefined;
|
|
8679
9044
|
payment_date: string;
|
|
8680
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9045
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
8681
9046
|
journal_id: string;
|
|
8682
9047
|
journal_name: string;
|
|
8683
9048
|
reconciled?: boolean | undefined;
|
|
@@ -8768,7 +9133,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
8768
9133
|
amount: number;
|
|
8769
9134
|
dedicated_amount?: number | undefined;
|
|
8770
9135
|
payment_date: string;
|
|
8771
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9136
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
8772
9137
|
journal_id: string;
|
|
8773
9138
|
journal_name: string;
|
|
8774
9139
|
reconciled?: boolean | undefined;
|
|
@@ -8819,7 +9184,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
8819
9184
|
amount: number;
|
|
8820
9185
|
dedicated_amount?: number | undefined;
|
|
8821
9186
|
payment_date: string;
|
|
8822
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9187
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
8823
9188
|
journal_id: string;
|
|
8824
9189
|
journal_name: string;
|
|
8825
9190
|
reconciled?: boolean | undefined;
|
|
@@ -8866,7 +9231,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
8866
9231
|
amount: number;
|
|
8867
9232
|
dedicated_amount?: number | undefined;
|
|
8868
9233
|
payment_date: string;
|
|
8869
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9234
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
8870
9235
|
journal_id: string;
|
|
8871
9236
|
journal_name: string;
|
|
8872
9237
|
reconciled?: boolean | undefined;
|
|
@@ -8913,7 +9278,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
8913
9278
|
amount: number;
|
|
8914
9279
|
dedicated_amount?: number | undefined;
|
|
8915
9280
|
payment_date: string;
|
|
8916
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9281
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
8917
9282
|
journal_id: string;
|
|
8918
9283
|
journal_name: string;
|
|
8919
9284
|
reconciled?: boolean | undefined;
|
|
@@ -8964,7 +9329,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
8964
9329
|
amount: number;
|
|
8965
9330
|
dedicated_amount?: number | undefined;
|
|
8966
9331
|
payment_date: string;
|
|
8967
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9332
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
8968
9333
|
journal_id: string;
|
|
8969
9334
|
journal_name: string;
|
|
8970
9335
|
reconciled?: boolean | undefined;
|
|
@@ -9178,7 +9543,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
9178
9543
|
amount: number;
|
|
9179
9544
|
dedicated_amount?: number | undefined;
|
|
9180
9545
|
payment_date: string;
|
|
9181
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9546
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
9182
9547
|
journal_id: string;
|
|
9183
9548
|
journal_name: string;
|
|
9184
9549
|
reconciled?: boolean | undefined;
|
|
@@ -9189,13 +9554,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
9189
9554
|
id: string;
|
|
9190
9555
|
code: string;
|
|
9191
9556
|
name: string;
|
|
9192
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9557
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
9193
9558
|
}[]>;
|
|
9194
9559
|
getVatCodes(): import("../types/api").RequestData<{
|
|
9195
9560
|
id: string;
|
|
9196
9561
|
code?: string | undefined;
|
|
9197
9562
|
label: string;
|
|
9198
|
-
scope?: "
|
|
9563
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
9199
9564
|
rate: number;
|
|
9200
9565
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
9201
9566
|
}[]>;
|
|
@@ -9307,12 +9672,32 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
9307
9672
|
reference?: string | undefined;
|
|
9308
9673
|
account_number?: string | undefined;
|
|
9309
9674
|
}[]>;
|
|
9310
|
-
|
|
9675
|
+
getOutstandings(params: {
|
|
9676
|
+
unposted_allowed: "true" | "false";
|
|
9677
|
+
type: "client" | "supplier";
|
|
9678
|
+
}): import("../types/api").RequestData<{
|
|
9679
|
+
id: string;
|
|
9680
|
+
number?: string | undefined;
|
|
9681
|
+
journal_id: string;
|
|
9682
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
9683
|
+
date: string;
|
|
9684
|
+
due_date?: string | undefined;
|
|
9685
|
+
currency: string;
|
|
9686
|
+
currency_exchange_rate: number;
|
|
9687
|
+
amount: number;
|
|
9688
|
+
open_amount: number;
|
|
9689
|
+
partner_id: string;
|
|
9690
|
+
account_number: string;
|
|
9691
|
+
reference?: string | undefined;
|
|
9692
|
+
posted: boolean;
|
|
9693
|
+
}[]>;
|
|
9694
|
+
createFinancialEntryOld(financial_entry: {
|
|
9311
9695
|
date: string;
|
|
9312
9696
|
journal_id: string;
|
|
9313
9697
|
currency: string;
|
|
9314
9698
|
currency_exchange_rate?: number | undefined;
|
|
9315
9699
|
reference?: string | undefined;
|
|
9700
|
+
number?: string | undefined;
|
|
9316
9701
|
items: {
|
|
9317
9702
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
9318
9703
|
account_number: string;
|
|
@@ -9320,14 +9705,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
9320
9705
|
amount: number;
|
|
9321
9706
|
description?: string | undefined;
|
|
9322
9707
|
}[];
|
|
9323
|
-
number?: string | undefined;
|
|
9324
9708
|
pdf?: string | undefined;
|
|
9325
|
-
}
|
|
9709
|
+
}, params: {
|
|
9710
|
+
financial_counterpart_account?: string | undefined;
|
|
9711
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9326
9712
|
date: string;
|
|
9327
9713
|
journal_id: string;
|
|
9328
9714
|
currency: string;
|
|
9329
9715
|
currency_exchange_rate?: number | undefined;
|
|
9330
9716
|
reference?: string | undefined;
|
|
9717
|
+
id: string;
|
|
9718
|
+
number: string;
|
|
9331
9719
|
items: {
|
|
9332
9720
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
9333
9721
|
account_number: string;
|
|
@@ -9336,13 +9724,97 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
9336
9724
|
description?: string | undefined;
|
|
9337
9725
|
counterpart_account: string;
|
|
9338
9726
|
}[];
|
|
9727
|
+
}>;
|
|
9728
|
+
createFinancialEntry(financial_entry: {
|
|
9729
|
+
date: string;
|
|
9730
|
+
journal_id: string;
|
|
9731
|
+
currency: string;
|
|
9732
|
+
currency_exchange_rate?: number | undefined;
|
|
9733
|
+
reference?: string | undefined;
|
|
9734
|
+
number?: string | undefined;
|
|
9735
|
+
items: {
|
|
9736
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
9737
|
+
account: string;
|
|
9738
|
+
amount: number;
|
|
9739
|
+
description?: string | undefined;
|
|
9740
|
+
}[];
|
|
9741
|
+
pdf?: string | undefined;
|
|
9742
|
+
}, params: {
|
|
9743
|
+
financial_counterpart_account?: string | undefined;
|
|
9744
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9745
|
+
date: string;
|
|
9746
|
+
journal_id: string;
|
|
9747
|
+
currency: string;
|
|
9748
|
+
currency_exchange_rate?: number | undefined;
|
|
9749
|
+
reference?: string | undefined;
|
|
9339
9750
|
id: string;
|
|
9340
9751
|
number: string;
|
|
9752
|
+
items: {
|
|
9753
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
9754
|
+
account: string;
|
|
9755
|
+
amount: number;
|
|
9756
|
+
description?: string | undefined;
|
|
9757
|
+
counterpart_account: string;
|
|
9758
|
+
}[];
|
|
9759
|
+
}[]>;
|
|
9760
|
+
createJournalEntry(journal_entry: {
|
|
9761
|
+
reference?: string | undefined;
|
|
9762
|
+
due_date?: string | undefined;
|
|
9763
|
+
journal_id: string;
|
|
9764
|
+
name: string;
|
|
9765
|
+
date: string;
|
|
9766
|
+
items: {
|
|
9767
|
+
account_number: string;
|
|
9768
|
+
partner_id?: string | undefined;
|
|
9769
|
+
description?: string | undefined;
|
|
9770
|
+
debit: number;
|
|
9771
|
+
credit: number;
|
|
9772
|
+
currency: string;
|
|
9773
|
+
currency_exchange_rate?: number | undefined;
|
|
9774
|
+
analytic_distribution?: {
|
|
9775
|
+
analytic_plan: string;
|
|
9776
|
+
analytic_accounts: {
|
|
9777
|
+
analytic_account: string;
|
|
9778
|
+
percentage: number;
|
|
9779
|
+
}[];
|
|
9780
|
+
}[] | undefined;
|
|
9781
|
+
pdf?: string | undefined;
|
|
9782
|
+
}[];
|
|
9783
|
+
}): import("../types/api").RequestData<{
|
|
9784
|
+
reference?: string | undefined;
|
|
9785
|
+
due_date?: string | undefined;
|
|
9786
|
+
journal_id: string;
|
|
9787
|
+
name?: string | undefined;
|
|
9788
|
+
journal_name: string;
|
|
9789
|
+
date?: string | undefined;
|
|
9790
|
+
posted?: boolean | undefined;
|
|
9791
|
+
id: string;
|
|
9792
|
+
items?: {
|
|
9793
|
+
account_number: string;
|
|
9794
|
+
partner_id?: string | undefined;
|
|
9795
|
+
description?: string | undefined;
|
|
9796
|
+
debit: number;
|
|
9797
|
+
credit: number;
|
|
9798
|
+
currency: string;
|
|
9799
|
+
currency_exchange_rate?: number | undefined;
|
|
9800
|
+
id: string;
|
|
9801
|
+
partner_name?: string | undefined;
|
|
9802
|
+
account_name: string;
|
|
9803
|
+
matching_numbers?: string[] | undefined;
|
|
9804
|
+
analytic_distribution?: {
|
|
9805
|
+
analytic_plan: string;
|
|
9806
|
+
analytic_accounts: {
|
|
9807
|
+
analytic_account: string;
|
|
9808
|
+
percentage: number;
|
|
9809
|
+
}[];
|
|
9810
|
+
}[] | undefined;
|
|
9811
|
+
}[] | undefined;
|
|
9341
9812
|
}>;
|
|
9342
9813
|
}>;
|
|
9343
9814
|
invoicing: import("../types/api").ApiFor<{
|
|
9344
9815
|
getInvoices(params: {
|
|
9345
9816
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
9817
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
9346
9818
|
date_from?: string | undefined;
|
|
9347
9819
|
date_to?: string | undefined;
|
|
9348
9820
|
page?: number | undefined;
|
|
@@ -9361,12 +9833,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
9361
9833
|
untaxed_amount: number;
|
|
9362
9834
|
total: number;
|
|
9363
9835
|
lines?: {
|
|
9364
|
-
description
|
|
9836
|
+
description?: string | undefined;
|
|
9365
9837
|
unit_price: number;
|
|
9366
9838
|
quantity: number;
|
|
9839
|
+
discount_amount?: number | undefined;
|
|
9367
9840
|
tax_amount: number;
|
|
9368
|
-
total: number;
|
|
9369
9841
|
untaxed_amount: number;
|
|
9842
|
+
total: number;
|
|
9370
9843
|
tax_rate?: number | undefined;
|
|
9371
9844
|
account_number?: string | undefined;
|
|
9372
9845
|
tax_id?: string | undefined;
|
|
@@ -9403,12 +9876,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
9403
9876
|
untaxed_amount: number;
|
|
9404
9877
|
total: number;
|
|
9405
9878
|
lines?: {
|
|
9406
|
-
description
|
|
9879
|
+
description?: string | undefined;
|
|
9407
9880
|
unit_price: number;
|
|
9408
9881
|
quantity: number;
|
|
9882
|
+
discount_amount?: number | undefined;
|
|
9409
9883
|
tax_amount: number;
|
|
9410
|
-
total: number;
|
|
9411
9884
|
untaxed_amount: number;
|
|
9885
|
+
total: number;
|
|
9412
9886
|
tax_rate?: number | undefined;
|
|
9413
9887
|
account_number?: string | undefined;
|
|
9414
9888
|
tax_id?: string | undefined;
|
|
@@ -9438,12 +9912,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
9438
9912
|
untaxed_amount: number;
|
|
9439
9913
|
total: number;
|
|
9440
9914
|
lines?: {
|
|
9441
|
-
description
|
|
9915
|
+
description?: string | undefined;
|
|
9442
9916
|
unit_price: number;
|
|
9443
9917
|
quantity: number;
|
|
9918
|
+
discount_amount?: number | undefined;
|
|
9444
9919
|
tax_amount: number;
|
|
9445
|
-
total: number;
|
|
9446
9920
|
untaxed_amount: number;
|
|
9921
|
+
total: number;
|
|
9447
9922
|
tax_rate?: number | undefined;
|
|
9448
9923
|
account_number?: string | undefined;
|
|
9449
9924
|
tax_id?: string | undefined;
|
|
@@ -9477,12 +9952,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
9477
9952
|
untaxed_amount: number;
|
|
9478
9953
|
total: number;
|
|
9479
9954
|
lines?: {
|
|
9480
|
-
description
|
|
9955
|
+
description?: string | undefined;
|
|
9481
9956
|
unit_price: number;
|
|
9482
9957
|
quantity: number;
|
|
9958
|
+
discount_amount?: number | undefined;
|
|
9483
9959
|
tax_amount: number;
|
|
9484
|
-
total: number;
|
|
9485
9960
|
untaxed_amount: number;
|
|
9961
|
+
total: number;
|
|
9486
9962
|
tax_rate?: number | undefined;
|
|
9487
9963
|
account_number?: string | undefined;
|
|
9488
9964
|
tax_id?: string | undefined;
|
|
@@ -9567,7 +10043,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
9567
10043
|
rate: number;
|
|
9568
10044
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
9569
10045
|
code?: string | undefined;
|
|
9570
|
-
scope?: "
|
|
10046
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
9571
10047
|
}[]>;
|
|
9572
10048
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
9573
10049
|
id: string;
|
|
@@ -9579,7 +10055,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
9579
10055
|
rate: number;
|
|
9580
10056
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
9581
10057
|
code?: string | undefined;
|
|
9582
|
-
scope?: "
|
|
10058
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
9583
10059
|
}>;
|
|
9584
10060
|
getOpportunities(): import("../types/api").RequestData<{
|
|
9585
10061
|
id: string;
|
|
@@ -9634,7 +10110,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
9634
10110
|
} | undefined;
|
|
9635
10111
|
}>;
|
|
9636
10112
|
getContacts(params?: {
|
|
9637
|
-
contact_type?: "all" | "
|
|
10113
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
9638
10114
|
page?: number | undefined;
|
|
9639
10115
|
size?: number | undefined;
|
|
9640
10116
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -10090,7 +10566,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
10090
10566
|
last_updated_on?: string | undefined;
|
|
10091
10567
|
confirmed_on?: string | undefined;
|
|
10092
10568
|
cancelled_on?: string | undefined;
|
|
10093
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
10569
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
10094
10570
|
discount_amount: number;
|
|
10095
10571
|
untaxed_amount_without_fees: number;
|
|
10096
10572
|
tax_amount_without_fees: number;
|
|
@@ -10237,7 +10713,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
10237
10713
|
last_updated_on?: string | undefined;
|
|
10238
10714
|
confirmed_on?: string | undefined;
|
|
10239
10715
|
cancelled_on?: string | undefined;
|
|
10240
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
10716
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
10241
10717
|
discount_amount: number;
|
|
10242
10718
|
untaxed_amount_without_fees: number;
|
|
10243
10719
|
tax_amount_without_fees: number;
|
|
@@ -10343,7 +10819,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
10343
10819
|
last_updated_on?: string | undefined;
|
|
10344
10820
|
confirmed_on?: string | undefined;
|
|
10345
10821
|
cancelled_on?: string | undefined;
|
|
10346
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
10822
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
10347
10823
|
discount_amount: number;
|
|
10348
10824
|
untaxed_amount_without_fees: number;
|
|
10349
10825
|
tax_amount_without_fees: number;
|
|
@@ -10454,7 +10930,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Sync
|
|
|
10454
10930
|
name: string;
|
|
10455
10931
|
title: string;
|
|
10456
10932
|
type: string;
|
|
10457
|
-
|
|
10933
|
+
optional?: boolean | undefined;
|
|
10458
10934
|
}[];
|
|
10459
10935
|
search_column?: string | undefined;
|
|
10460
10936
|
};
|