@chift/chift-nodejs 1.0.7 → 1.0.8
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/.github/workflows/ci.yml +1 -1
- package/CHANGELOG.md +24 -0
- package/dist/src/modules/accounting.d.ts +21 -18
- package/dist/src/modules/accounting.js +59 -20
- package/dist/src/modules/api.d.ts +465 -90
- package/dist/src/modules/consumer.d.ts +93 -18
- package/dist/src/modules/consumers.d.ts +465 -90
- package/dist/src/modules/sync.d.ts +372 -72
- package/dist/test/modules/accounting.test.js +28 -0
- package/package.json +1 -1
- package/src/modules/accounting.ts +95 -22
- package/test/modules/accounting.test.ts +31 -0
|
@@ -368,12 +368,20 @@ export declare class API {
|
|
|
368
368
|
}[]>;
|
|
369
369
|
}>;
|
|
370
370
|
accounting: import("../types/api").ApiFor<{
|
|
371
|
-
getAnalyticPlans(
|
|
371
|
+
getAnalyticPlans(params: {
|
|
372
|
+
folder_id?: string | undefined;
|
|
373
|
+
page?: number | undefined;
|
|
374
|
+
size?: number | undefined;
|
|
375
|
+
} | undefined): import("../types/api").RequestData<{
|
|
372
376
|
id: string;
|
|
373
377
|
name: string;
|
|
374
378
|
active?: boolean | undefined;
|
|
375
379
|
}[]>;
|
|
376
|
-
getClients(
|
|
380
|
+
getClients(params: {
|
|
381
|
+
folder_id?: string | undefined;
|
|
382
|
+
page?: number | undefined;
|
|
383
|
+
size?: number | undefined;
|
|
384
|
+
} | undefined): import("../types/api").RequestData<{
|
|
377
385
|
external_reference?: string | undefined;
|
|
378
386
|
first_name?: string | undefined;
|
|
379
387
|
last_name?: string | undefined;
|
|
@@ -481,7 +489,9 @@ export declare class API {
|
|
|
481
489
|
company_number?: string | undefined;
|
|
482
490
|
id?: string | undefined;
|
|
483
491
|
}>;
|
|
484
|
-
getClient(clientId: string
|
|
492
|
+
getClient(clientId: string, params: {
|
|
493
|
+
folder_id?: string | undefined;
|
|
494
|
+
} | undefined): import("../types/api").RequestData<{
|
|
485
495
|
external_reference?: string | undefined;
|
|
486
496
|
first_name?: string | undefined;
|
|
487
497
|
last_name?: string | undefined;
|
|
@@ -549,7 +559,9 @@ export declare class API {
|
|
|
549
559
|
postal_code?: string | undefined;
|
|
550
560
|
country?: string | undefined;
|
|
551
561
|
}[] | undefined;
|
|
552
|
-
}
|
|
562
|
+
}, params: {
|
|
563
|
+
folder_id?: string | undefined;
|
|
564
|
+
} | undefined): import("../types/api").RequestData<{
|
|
553
565
|
external_reference?: string | undefined;
|
|
554
566
|
first_name?: string | undefined;
|
|
555
567
|
last_name?: string | undefined;
|
|
@@ -585,7 +597,11 @@ export declare class API {
|
|
|
585
597
|
company_number?: string | undefined;
|
|
586
598
|
id?: string | undefined;
|
|
587
599
|
}>;
|
|
588
|
-
getSuppliers(
|
|
600
|
+
getSuppliers(params: {
|
|
601
|
+
folder_id?: string | undefined;
|
|
602
|
+
page?: number | undefined;
|
|
603
|
+
size?: number | undefined;
|
|
604
|
+
} | undefined): import("../types/api").RequestData<{
|
|
589
605
|
external_reference?: string | undefined;
|
|
590
606
|
first_name?: string | undefined;
|
|
591
607
|
last_name?: string | undefined;
|
|
@@ -693,7 +709,9 @@ export declare class API {
|
|
|
693
709
|
company_number?: string | undefined;
|
|
694
710
|
id?: string | undefined;
|
|
695
711
|
}>;
|
|
696
|
-
getSupplier(supplierId: string
|
|
712
|
+
getSupplier(supplierId: string, params: {
|
|
713
|
+
folder_id?: string | undefined;
|
|
714
|
+
} | undefined): import("../types/api").RequestData<{
|
|
697
715
|
external_reference?: string | undefined;
|
|
698
716
|
first_name?: string | undefined;
|
|
699
717
|
last_name?: string | undefined;
|
|
@@ -761,7 +779,9 @@ export declare class API {
|
|
|
761
779
|
postal_code?: string | undefined;
|
|
762
780
|
country?: string | undefined;
|
|
763
781
|
}[] | undefined;
|
|
764
|
-
}
|
|
782
|
+
}, params: {
|
|
783
|
+
folder_id?: string | undefined;
|
|
784
|
+
} | undefined): import("../types/api").RequestData<{
|
|
765
785
|
external_reference?: string | undefined;
|
|
766
786
|
first_name?: string | undefined;
|
|
767
787
|
last_name?: string | undefined;
|
|
@@ -1204,7 +1224,9 @@ export declare class API {
|
|
|
1204
1224
|
code: string;
|
|
1205
1225
|
name: string;
|
|
1206
1226
|
currency: string;
|
|
1207
|
-
}
|
|
1227
|
+
}, params: {
|
|
1228
|
+
folder_id?: string | undefined;
|
|
1229
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1208
1230
|
id: string;
|
|
1209
1231
|
active: boolean;
|
|
1210
1232
|
code?: string | undefined;
|
|
@@ -1214,7 +1236,11 @@ export declare class API {
|
|
|
1214
1236
|
credit?: number | undefined;
|
|
1215
1237
|
debit?: number | undefined;
|
|
1216
1238
|
}>;
|
|
1217
|
-
getAnalyticAccounts(
|
|
1239
|
+
getAnalyticAccounts(params: {
|
|
1240
|
+
folder_id?: string | undefined;
|
|
1241
|
+
page?: number | undefined;
|
|
1242
|
+
size?: number | undefined;
|
|
1243
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1218
1244
|
id: string;
|
|
1219
1245
|
active: boolean;
|
|
1220
1246
|
code?: string | undefined;
|
|
@@ -1229,7 +1255,9 @@ export declare class API {
|
|
|
1229
1255
|
code: string;
|
|
1230
1256
|
name: string;
|
|
1231
1257
|
currency: string;
|
|
1232
|
-
}
|
|
1258
|
+
}, params: {
|
|
1259
|
+
folder_id?: string | undefined;
|
|
1260
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1233
1261
|
id: string;
|
|
1234
1262
|
active: boolean;
|
|
1235
1263
|
code?: string | undefined;
|
|
@@ -1240,7 +1268,9 @@ export declare class API {
|
|
|
1240
1268
|
debit?: number | undefined;
|
|
1241
1269
|
analytic_plan: string;
|
|
1242
1270
|
}>;
|
|
1243
|
-
getAnalyticAccount(analytic_account_id: string
|
|
1271
|
+
getAnalyticAccount(analytic_account_id: string, params: {
|
|
1272
|
+
folder_id?: string | undefined;
|
|
1273
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1244
1274
|
id: string;
|
|
1245
1275
|
active: boolean;
|
|
1246
1276
|
code?: string | undefined;
|
|
@@ -1255,7 +1285,9 @@ export declare class API {
|
|
|
1255
1285
|
code?: string | undefined;
|
|
1256
1286
|
name?: string | undefined;
|
|
1257
1287
|
currency?: string | undefined;
|
|
1258
|
-
}
|
|
1288
|
+
}, params: {
|
|
1289
|
+
folder_id?: string | undefined;
|
|
1290
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1259
1291
|
id: string;
|
|
1260
1292
|
active: boolean;
|
|
1261
1293
|
code?: string | undefined;
|
|
@@ -1265,7 +1297,9 @@ export declare class API {
|
|
|
1265
1297
|
credit?: number | undefined;
|
|
1266
1298
|
debit?: number | undefined;
|
|
1267
1299
|
}>;
|
|
1268
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string
|
|
1300
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
|
|
1301
|
+
folder_id?: string | undefined;
|
|
1302
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1269
1303
|
id: string;
|
|
1270
1304
|
active: boolean;
|
|
1271
1305
|
code?: string | undefined;
|
|
@@ -1281,7 +1315,9 @@ export declare class API {
|
|
|
1281
1315
|
code?: string | undefined;
|
|
1282
1316
|
name?: string | undefined;
|
|
1283
1317
|
currency?: string | undefined;
|
|
1284
|
-
}
|
|
1318
|
+
}, params: {
|
|
1319
|
+
folder_id?: string | undefined;
|
|
1320
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1285
1321
|
id: string;
|
|
1286
1322
|
active: boolean;
|
|
1287
1323
|
code?: string | undefined;
|
|
@@ -1292,7 +1328,11 @@ export declare class API {
|
|
|
1292
1328
|
debit?: number | undefined;
|
|
1293
1329
|
analytic_plan: string;
|
|
1294
1330
|
}>;
|
|
1295
|
-
getAnalyticAccountsWithMultiplePlans(
|
|
1331
|
+
getAnalyticAccountsWithMultiplePlans(params: {
|
|
1332
|
+
folder_id?: string | undefined;
|
|
1333
|
+
page?: number | undefined;
|
|
1334
|
+
size?: number | undefined;
|
|
1335
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1296
1336
|
id: string;
|
|
1297
1337
|
active: boolean;
|
|
1298
1338
|
code?: string | undefined;
|
|
@@ -1372,7 +1412,11 @@ export declare class API {
|
|
|
1372
1412
|
}[] | undefined;
|
|
1373
1413
|
}[] | undefined;
|
|
1374
1414
|
}[]>;
|
|
1375
|
-
getPaymentsByInvoiceId(invoice_id: string
|
|
1415
|
+
getPaymentsByInvoiceId(invoice_id: string, params: {
|
|
1416
|
+
folder_id?: string | undefined;
|
|
1417
|
+
page?: number | undefined;
|
|
1418
|
+
size?: number | undefined;
|
|
1419
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1376
1420
|
id: string;
|
|
1377
1421
|
name: string;
|
|
1378
1422
|
currency: string;
|
|
@@ -1386,13 +1430,21 @@ export declare class API {
|
|
|
1386
1430
|
communication?: string | undefined;
|
|
1387
1431
|
matching_number?: string | undefined;
|
|
1388
1432
|
}[]>;
|
|
1389
|
-
getJournals(
|
|
1433
|
+
getJournals(params: {
|
|
1434
|
+
folder_id?: string | undefined;
|
|
1435
|
+
page?: number | undefined;
|
|
1436
|
+
size?: number | undefined;
|
|
1437
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1390
1438
|
id: string;
|
|
1391
1439
|
code?: string | undefined;
|
|
1392
1440
|
name: string;
|
|
1393
1441
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
1394
1442
|
}[]>;
|
|
1395
|
-
getVatCodes(
|
|
1443
|
+
getVatCodes(params: {
|
|
1444
|
+
folder_id?: string | undefined;
|
|
1445
|
+
page?: number | undefined;
|
|
1446
|
+
size?: number | undefined;
|
|
1447
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1396
1448
|
id: string;
|
|
1397
1449
|
code?: string | undefined;
|
|
1398
1450
|
label: string;
|
|
@@ -1486,6 +1538,15 @@ export declare class API {
|
|
|
1486
1538
|
'application/json': unknown;
|
|
1487
1539
|
};
|
|
1488
1540
|
}>;
|
|
1541
|
+
getAttachments(params: {
|
|
1542
|
+
type: "invoice" | "entry";
|
|
1543
|
+
document_id: string;
|
|
1544
|
+
folder_id?: string | undefined;
|
|
1545
|
+
page?: number | undefined;
|
|
1546
|
+
size?: number | undefined;
|
|
1547
|
+
}): import("../types/api").RequestData<{
|
|
1548
|
+
base64_string: string;
|
|
1549
|
+
}[]>;
|
|
1489
1550
|
getChartOfAccounts(params: {}): import("../types/api").RequestData<{
|
|
1490
1551
|
number: string;
|
|
1491
1552
|
name: string;
|
|
@@ -1724,6 +1785,20 @@ export declare class API {
|
|
|
1724
1785
|
}[] | undefined;
|
|
1725
1786
|
}[] | undefined;
|
|
1726
1787
|
}>;
|
|
1788
|
+
matchEntries(body: {
|
|
1789
|
+
entries: string[];
|
|
1790
|
+
partner_id: string;
|
|
1791
|
+
}, params: {
|
|
1792
|
+
folder_id?: string | undefined;
|
|
1793
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1794
|
+
matching_number: string;
|
|
1795
|
+
balance: number;
|
|
1796
|
+
}>;
|
|
1797
|
+
getFolders(): import("../types/api").RequestData<{
|
|
1798
|
+
id: string;
|
|
1799
|
+
name: string;
|
|
1800
|
+
selected?: boolean | undefined;
|
|
1801
|
+
}[]>;
|
|
1727
1802
|
}>;
|
|
1728
1803
|
invoicing: import("../types/api").ApiFor<{
|
|
1729
1804
|
getInvoices(params: {
|
|
@@ -3403,12 +3478,20 @@ export declare class API {
|
|
|
3403
3478
|
}[]>;
|
|
3404
3479
|
}>;
|
|
3405
3480
|
accounting: import("../types/api").ApiFor<{
|
|
3406
|
-
getAnalyticPlans(
|
|
3481
|
+
getAnalyticPlans(params: {
|
|
3482
|
+
folder_id?: string | undefined;
|
|
3483
|
+
page?: number | undefined;
|
|
3484
|
+
size?: number | undefined;
|
|
3485
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3407
3486
|
id: string;
|
|
3408
3487
|
name: string;
|
|
3409
3488
|
active?: boolean | undefined;
|
|
3410
3489
|
}[]>;
|
|
3411
|
-
getClients(
|
|
3490
|
+
getClients(params: {
|
|
3491
|
+
folder_id?: string | undefined;
|
|
3492
|
+
page?: number | undefined;
|
|
3493
|
+
size?: number | undefined;
|
|
3494
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3412
3495
|
external_reference?: string | undefined;
|
|
3413
3496
|
first_name?: string | undefined;
|
|
3414
3497
|
last_name?: string | undefined;
|
|
@@ -3516,7 +3599,9 @@ export declare class API {
|
|
|
3516
3599
|
company_number?: string | undefined;
|
|
3517
3600
|
id?: string | undefined;
|
|
3518
3601
|
}>;
|
|
3519
|
-
getClient(clientId: string
|
|
3602
|
+
getClient(clientId: string, params: {
|
|
3603
|
+
folder_id?: string | undefined;
|
|
3604
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3520
3605
|
external_reference?: string | undefined;
|
|
3521
3606
|
first_name?: string | undefined;
|
|
3522
3607
|
last_name?: string | undefined;
|
|
@@ -3584,7 +3669,9 @@ export declare class API {
|
|
|
3584
3669
|
postal_code?: string | undefined;
|
|
3585
3670
|
country?: string | undefined;
|
|
3586
3671
|
}[] | undefined;
|
|
3587
|
-
}
|
|
3672
|
+
}, params: {
|
|
3673
|
+
folder_id?: string | undefined;
|
|
3674
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3588
3675
|
external_reference?: string | undefined;
|
|
3589
3676
|
first_name?: string | undefined;
|
|
3590
3677
|
last_name?: string | undefined;
|
|
@@ -3620,7 +3707,11 @@ export declare class API {
|
|
|
3620
3707
|
company_number?: string | undefined;
|
|
3621
3708
|
id?: string | undefined;
|
|
3622
3709
|
}>;
|
|
3623
|
-
getSuppliers(
|
|
3710
|
+
getSuppliers(params: {
|
|
3711
|
+
folder_id?: string | undefined;
|
|
3712
|
+
page?: number | undefined;
|
|
3713
|
+
size?: number | undefined;
|
|
3714
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3624
3715
|
external_reference?: string | undefined;
|
|
3625
3716
|
first_name?: string | undefined;
|
|
3626
3717
|
last_name?: string | undefined;
|
|
@@ -3728,7 +3819,9 @@ export declare class API {
|
|
|
3728
3819
|
company_number?: string | undefined;
|
|
3729
3820
|
id?: string | undefined;
|
|
3730
3821
|
}>;
|
|
3731
|
-
getSupplier(supplierId: string
|
|
3822
|
+
getSupplier(supplierId: string, params: {
|
|
3823
|
+
folder_id?: string | undefined;
|
|
3824
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3732
3825
|
external_reference?: string | undefined;
|
|
3733
3826
|
first_name?: string | undefined;
|
|
3734
3827
|
last_name?: string | undefined;
|
|
@@ -3796,7 +3889,9 @@ export declare class API {
|
|
|
3796
3889
|
postal_code?: string | undefined;
|
|
3797
3890
|
country?: string | undefined;
|
|
3798
3891
|
}[] | undefined;
|
|
3799
|
-
}
|
|
3892
|
+
}, params: {
|
|
3893
|
+
folder_id?: string | undefined;
|
|
3894
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3800
3895
|
external_reference?: string | undefined;
|
|
3801
3896
|
first_name?: string | undefined;
|
|
3802
3897
|
last_name?: string | undefined;
|
|
@@ -4239,7 +4334,9 @@ export declare class API {
|
|
|
4239
4334
|
code: string;
|
|
4240
4335
|
name: string;
|
|
4241
4336
|
currency: string;
|
|
4242
|
-
}
|
|
4337
|
+
}, params: {
|
|
4338
|
+
folder_id?: string | undefined;
|
|
4339
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4243
4340
|
id: string;
|
|
4244
4341
|
active: boolean;
|
|
4245
4342
|
code?: string | undefined;
|
|
@@ -4249,7 +4346,11 @@ export declare class API {
|
|
|
4249
4346
|
credit?: number | undefined;
|
|
4250
4347
|
debit?: number | undefined;
|
|
4251
4348
|
}>;
|
|
4252
|
-
getAnalyticAccounts(
|
|
4349
|
+
getAnalyticAccounts(params: {
|
|
4350
|
+
folder_id?: string | undefined;
|
|
4351
|
+
page?: number | undefined;
|
|
4352
|
+
size?: number | undefined;
|
|
4353
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4253
4354
|
id: string;
|
|
4254
4355
|
active: boolean;
|
|
4255
4356
|
code?: string | undefined;
|
|
@@ -4264,7 +4365,9 @@ export declare class API {
|
|
|
4264
4365
|
code: string;
|
|
4265
4366
|
name: string;
|
|
4266
4367
|
currency: string;
|
|
4267
|
-
}
|
|
4368
|
+
}, params: {
|
|
4369
|
+
folder_id?: string | undefined;
|
|
4370
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4268
4371
|
id: string;
|
|
4269
4372
|
active: boolean;
|
|
4270
4373
|
code?: string | undefined;
|
|
@@ -4275,7 +4378,9 @@ export declare class API {
|
|
|
4275
4378
|
debit?: number | undefined;
|
|
4276
4379
|
analytic_plan: string;
|
|
4277
4380
|
}>;
|
|
4278
|
-
getAnalyticAccount(analytic_account_id: string
|
|
4381
|
+
getAnalyticAccount(analytic_account_id: string, params: {
|
|
4382
|
+
folder_id?: string | undefined;
|
|
4383
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4279
4384
|
id: string;
|
|
4280
4385
|
active: boolean;
|
|
4281
4386
|
code?: string | undefined;
|
|
@@ -4290,7 +4395,9 @@ export declare class API {
|
|
|
4290
4395
|
code?: string | undefined;
|
|
4291
4396
|
name?: string | undefined;
|
|
4292
4397
|
currency?: string | undefined;
|
|
4293
|
-
}
|
|
4398
|
+
}, params: {
|
|
4399
|
+
folder_id?: string | undefined;
|
|
4400
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4294
4401
|
id: string;
|
|
4295
4402
|
active: boolean;
|
|
4296
4403
|
code?: string | undefined;
|
|
@@ -4300,7 +4407,9 @@ export declare class API {
|
|
|
4300
4407
|
credit?: number | undefined;
|
|
4301
4408
|
debit?: number | undefined;
|
|
4302
4409
|
}>;
|
|
4303
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string
|
|
4410
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
|
|
4411
|
+
folder_id?: string | undefined;
|
|
4412
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4304
4413
|
id: string;
|
|
4305
4414
|
active: boolean;
|
|
4306
4415
|
code?: string | undefined;
|
|
@@ -4316,7 +4425,9 @@ export declare class API {
|
|
|
4316
4425
|
code?: string | undefined;
|
|
4317
4426
|
name?: string | undefined;
|
|
4318
4427
|
currency?: string | undefined;
|
|
4319
|
-
}
|
|
4428
|
+
}, params: {
|
|
4429
|
+
folder_id?: string | undefined;
|
|
4430
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4320
4431
|
id: string;
|
|
4321
4432
|
active: boolean;
|
|
4322
4433
|
code?: string | undefined;
|
|
@@ -4327,7 +4438,11 @@ export declare class API {
|
|
|
4327
4438
|
debit?: number | undefined;
|
|
4328
4439
|
analytic_plan: string;
|
|
4329
4440
|
}>;
|
|
4330
|
-
getAnalyticAccountsWithMultiplePlans(
|
|
4441
|
+
getAnalyticAccountsWithMultiplePlans(params: {
|
|
4442
|
+
folder_id?: string | undefined;
|
|
4443
|
+
page?: number | undefined;
|
|
4444
|
+
size?: number | undefined;
|
|
4445
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4331
4446
|
id: string;
|
|
4332
4447
|
active: boolean;
|
|
4333
4448
|
code?: string | undefined;
|
|
@@ -4407,7 +4522,11 @@ export declare class API {
|
|
|
4407
4522
|
}[] | undefined;
|
|
4408
4523
|
}[] | undefined;
|
|
4409
4524
|
}[]>;
|
|
4410
|
-
getPaymentsByInvoiceId(invoice_id: string
|
|
4525
|
+
getPaymentsByInvoiceId(invoice_id: string, params: {
|
|
4526
|
+
folder_id?: string | undefined;
|
|
4527
|
+
page?: number | undefined;
|
|
4528
|
+
size?: number | undefined;
|
|
4529
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4411
4530
|
id: string;
|
|
4412
4531
|
name: string;
|
|
4413
4532
|
currency: string;
|
|
@@ -4421,13 +4540,21 @@ export declare class API {
|
|
|
4421
4540
|
communication?: string | undefined;
|
|
4422
4541
|
matching_number?: string | undefined;
|
|
4423
4542
|
}[]>;
|
|
4424
|
-
getJournals(
|
|
4543
|
+
getJournals(params: {
|
|
4544
|
+
folder_id?: string | undefined;
|
|
4545
|
+
page?: number | undefined;
|
|
4546
|
+
size?: number | undefined;
|
|
4547
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4425
4548
|
id: string;
|
|
4426
4549
|
code?: string | undefined;
|
|
4427
4550
|
name: string;
|
|
4428
4551
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
4429
4552
|
}[]>;
|
|
4430
|
-
getVatCodes(
|
|
4553
|
+
getVatCodes(params: {
|
|
4554
|
+
folder_id?: string | undefined;
|
|
4555
|
+
page?: number | undefined;
|
|
4556
|
+
size?: number | undefined;
|
|
4557
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4431
4558
|
id: string;
|
|
4432
4559
|
code?: string | undefined;
|
|
4433
4560
|
label: string;
|
|
@@ -4521,6 +4648,15 @@ export declare class API {
|
|
|
4521
4648
|
'application/json': unknown;
|
|
4522
4649
|
};
|
|
4523
4650
|
}>;
|
|
4651
|
+
getAttachments(params: {
|
|
4652
|
+
type: "invoice" | "entry";
|
|
4653
|
+
document_id: string;
|
|
4654
|
+
folder_id?: string | undefined;
|
|
4655
|
+
page?: number | undefined;
|
|
4656
|
+
size?: number | undefined;
|
|
4657
|
+
}): import("../types/api").RequestData<{
|
|
4658
|
+
base64_string: string;
|
|
4659
|
+
}[]>;
|
|
4524
4660
|
getChartOfAccounts(params: {}): import("../types/api").RequestData<{
|
|
4525
4661
|
number: string;
|
|
4526
4662
|
name: string;
|
|
@@ -4759,6 +4895,20 @@ export declare class API {
|
|
|
4759
4895
|
}[] | undefined;
|
|
4760
4896
|
}[] | undefined;
|
|
4761
4897
|
}>;
|
|
4898
|
+
matchEntries(body: {
|
|
4899
|
+
entries: string[];
|
|
4900
|
+
partner_id: string;
|
|
4901
|
+
}, params: {
|
|
4902
|
+
folder_id?: string | undefined;
|
|
4903
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4904
|
+
matching_number: string;
|
|
4905
|
+
balance: number;
|
|
4906
|
+
}>;
|
|
4907
|
+
getFolders(): import("../types/api").RequestData<{
|
|
4908
|
+
id: string;
|
|
4909
|
+
name: string;
|
|
4910
|
+
selected?: boolean | undefined;
|
|
4911
|
+
}[]>;
|
|
4762
4912
|
}>;
|
|
4763
4913
|
invoicing: import("../types/api").ApiFor<{
|
|
4764
4914
|
getInvoices(params: {
|
|
@@ -6434,12 +6584,20 @@ export declare class API {
|
|
|
6434
6584
|
}[]>;
|
|
6435
6585
|
}>;
|
|
6436
6586
|
accounting: import("../types/api").ApiFor<{
|
|
6437
|
-
getAnalyticPlans(
|
|
6587
|
+
getAnalyticPlans(params: {
|
|
6588
|
+
folder_id?: string | undefined;
|
|
6589
|
+
page?: number | undefined;
|
|
6590
|
+
size?: number | undefined;
|
|
6591
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6438
6592
|
id: string;
|
|
6439
6593
|
name: string;
|
|
6440
6594
|
active?: boolean | undefined;
|
|
6441
6595
|
}[]>;
|
|
6442
|
-
getClients(
|
|
6596
|
+
getClients(params: {
|
|
6597
|
+
folder_id?: string | undefined;
|
|
6598
|
+
page?: number | undefined;
|
|
6599
|
+
size?: number | undefined;
|
|
6600
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6443
6601
|
external_reference?: string | undefined;
|
|
6444
6602
|
first_name?: string | undefined;
|
|
6445
6603
|
last_name?: string | undefined;
|
|
@@ -6547,7 +6705,9 @@ export declare class API {
|
|
|
6547
6705
|
company_number?: string | undefined;
|
|
6548
6706
|
id?: string | undefined;
|
|
6549
6707
|
}>;
|
|
6550
|
-
getClient(clientId: string
|
|
6708
|
+
getClient(clientId: string, params: {
|
|
6709
|
+
folder_id?: string | undefined;
|
|
6710
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6551
6711
|
external_reference?: string | undefined;
|
|
6552
6712
|
first_name?: string | undefined;
|
|
6553
6713
|
last_name?: string | undefined;
|
|
@@ -6615,7 +6775,9 @@ export declare class API {
|
|
|
6615
6775
|
postal_code?: string | undefined;
|
|
6616
6776
|
country?: string | undefined;
|
|
6617
6777
|
}[] | undefined;
|
|
6618
|
-
}
|
|
6778
|
+
}, params: {
|
|
6779
|
+
folder_id?: string | undefined;
|
|
6780
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6619
6781
|
external_reference?: string | undefined;
|
|
6620
6782
|
first_name?: string | undefined;
|
|
6621
6783
|
last_name?: string | undefined;
|
|
@@ -6651,7 +6813,11 @@ export declare class API {
|
|
|
6651
6813
|
company_number?: string | undefined;
|
|
6652
6814
|
id?: string | undefined;
|
|
6653
6815
|
}>;
|
|
6654
|
-
getSuppliers(
|
|
6816
|
+
getSuppliers(params: {
|
|
6817
|
+
folder_id?: string | undefined;
|
|
6818
|
+
page?: number | undefined;
|
|
6819
|
+
size?: number | undefined;
|
|
6820
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6655
6821
|
external_reference?: string | undefined;
|
|
6656
6822
|
first_name?: string | undefined;
|
|
6657
6823
|
last_name?: string | undefined;
|
|
@@ -6759,7 +6925,9 @@ export declare class API {
|
|
|
6759
6925
|
company_number?: string | undefined;
|
|
6760
6926
|
id?: string | undefined;
|
|
6761
6927
|
}>;
|
|
6762
|
-
getSupplier(supplierId: string
|
|
6928
|
+
getSupplier(supplierId: string, params: {
|
|
6929
|
+
folder_id?: string | undefined;
|
|
6930
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6763
6931
|
external_reference?: string | undefined;
|
|
6764
6932
|
first_name?: string | undefined;
|
|
6765
6933
|
last_name?: string | undefined;
|
|
@@ -6827,7 +6995,9 @@ export declare class API {
|
|
|
6827
6995
|
postal_code?: string | undefined;
|
|
6828
6996
|
country?: string | undefined;
|
|
6829
6997
|
}[] | undefined;
|
|
6830
|
-
}
|
|
6998
|
+
}, params: {
|
|
6999
|
+
folder_id?: string | undefined;
|
|
7000
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6831
7001
|
external_reference?: string | undefined;
|
|
6832
7002
|
first_name?: string | undefined;
|
|
6833
7003
|
last_name?: string | undefined;
|
|
@@ -7270,7 +7440,9 @@ export declare class API {
|
|
|
7270
7440
|
code: string;
|
|
7271
7441
|
name: string;
|
|
7272
7442
|
currency: string;
|
|
7273
|
-
}
|
|
7443
|
+
}, params: {
|
|
7444
|
+
folder_id?: string | undefined;
|
|
7445
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7274
7446
|
id: string;
|
|
7275
7447
|
active: boolean;
|
|
7276
7448
|
code?: string | undefined;
|
|
@@ -7280,7 +7452,11 @@ export declare class API {
|
|
|
7280
7452
|
credit?: number | undefined;
|
|
7281
7453
|
debit?: number | undefined;
|
|
7282
7454
|
}>;
|
|
7283
|
-
getAnalyticAccounts(
|
|
7455
|
+
getAnalyticAccounts(params: {
|
|
7456
|
+
folder_id?: string | undefined;
|
|
7457
|
+
page?: number | undefined;
|
|
7458
|
+
size?: number | undefined;
|
|
7459
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7284
7460
|
id: string;
|
|
7285
7461
|
active: boolean;
|
|
7286
7462
|
code?: string | undefined;
|
|
@@ -7295,7 +7471,9 @@ export declare class API {
|
|
|
7295
7471
|
code: string;
|
|
7296
7472
|
name: string;
|
|
7297
7473
|
currency: string;
|
|
7298
|
-
}
|
|
7474
|
+
}, params: {
|
|
7475
|
+
folder_id?: string | undefined;
|
|
7476
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7299
7477
|
id: string;
|
|
7300
7478
|
active: boolean;
|
|
7301
7479
|
code?: string | undefined;
|
|
@@ -7306,7 +7484,9 @@ export declare class API {
|
|
|
7306
7484
|
debit?: number | undefined;
|
|
7307
7485
|
analytic_plan: string;
|
|
7308
7486
|
}>;
|
|
7309
|
-
getAnalyticAccount(analytic_account_id: string
|
|
7487
|
+
getAnalyticAccount(analytic_account_id: string, params: {
|
|
7488
|
+
folder_id?: string | undefined;
|
|
7489
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7310
7490
|
id: string;
|
|
7311
7491
|
active: boolean;
|
|
7312
7492
|
code?: string | undefined;
|
|
@@ -7321,7 +7501,9 @@ export declare class API {
|
|
|
7321
7501
|
code?: string | undefined;
|
|
7322
7502
|
name?: string | undefined;
|
|
7323
7503
|
currency?: string | undefined;
|
|
7324
|
-
}
|
|
7504
|
+
}, params: {
|
|
7505
|
+
folder_id?: string | undefined;
|
|
7506
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7325
7507
|
id: string;
|
|
7326
7508
|
active: boolean;
|
|
7327
7509
|
code?: string | undefined;
|
|
@@ -7331,7 +7513,9 @@ export declare class API {
|
|
|
7331
7513
|
credit?: number | undefined;
|
|
7332
7514
|
debit?: number | undefined;
|
|
7333
7515
|
}>;
|
|
7334
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string
|
|
7516
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
|
|
7517
|
+
folder_id?: string | undefined;
|
|
7518
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7335
7519
|
id: string;
|
|
7336
7520
|
active: boolean;
|
|
7337
7521
|
code?: string | undefined;
|
|
@@ -7347,7 +7531,9 @@ export declare class API {
|
|
|
7347
7531
|
code?: string | undefined;
|
|
7348
7532
|
name?: string | undefined;
|
|
7349
7533
|
currency?: string | undefined;
|
|
7350
|
-
}
|
|
7534
|
+
}, params: {
|
|
7535
|
+
folder_id?: string | undefined;
|
|
7536
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7351
7537
|
id: string;
|
|
7352
7538
|
active: boolean;
|
|
7353
7539
|
code?: string | undefined;
|
|
@@ -7358,7 +7544,11 @@ export declare class API {
|
|
|
7358
7544
|
debit?: number | undefined;
|
|
7359
7545
|
analytic_plan: string;
|
|
7360
7546
|
}>;
|
|
7361
|
-
getAnalyticAccountsWithMultiplePlans(
|
|
7547
|
+
getAnalyticAccountsWithMultiplePlans(params: {
|
|
7548
|
+
folder_id?: string | undefined;
|
|
7549
|
+
page?: number | undefined;
|
|
7550
|
+
size?: number | undefined;
|
|
7551
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7362
7552
|
id: string;
|
|
7363
7553
|
active: boolean;
|
|
7364
7554
|
code?: string | undefined;
|
|
@@ -7438,7 +7628,11 @@ export declare class API {
|
|
|
7438
7628
|
}[] | undefined;
|
|
7439
7629
|
}[] | undefined;
|
|
7440
7630
|
}[]>;
|
|
7441
|
-
getPaymentsByInvoiceId(invoice_id: string
|
|
7631
|
+
getPaymentsByInvoiceId(invoice_id: string, params: {
|
|
7632
|
+
folder_id?: string | undefined;
|
|
7633
|
+
page?: number | undefined;
|
|
7634
|
+
size?: number | undefined;
|
|
7635
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7442
7636
|
id: string;
|
|
7443
7637
|
name: string;
|
|
7444
7638
|
currency: string;
|
|
@@ -7452,13 +7646,21 @@ export declare class API {
|
|
|
7452
7646
|
communication?: string | undefined;
|
|
7453
7647
|
matching_number?: string | undefined;
|
|
7454
7648
|
}[]>;
|
|
7455
|
-
getJournals(
|
|
7649
|
+
getJournals(params: {
|
|
7650
|
+
folder_id?: string | undefined;
|
|
7651
|
+
page?: number | undefined;
|
|
7652
|
+
size?: number | undefined;
|
|
7653
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7456
7654
|
id: string;
|
|
7457
7655
|
code?: string | undefined;
|
|
7458
7656
|
name: string;
|
|
7459
7657
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
7460
7658
|
}[]>;
|
|
7461
|
-
getVatCodes(
|
|
7659
|
+
getVatCodes(params: {
|
|
7660
|
+
folder_id?: string | undefined;
|
|
7661
|
+
page?: number | undefined;
|
|
7662
|
+
size?: number | undefined;
|
|
7663
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7462
7664
|
id: string;
|
|
7463
7665
|
code?: string | undefined;
|
|
7464
7666
|
label: string;
|
|
@@ -7552,6 +7754,15 @@ export declare class API {
|
|
|
7552
7754
|
'application/json': unknown;
|
|
7553
7755
|
};
|
|
7554
7756
|
}>;
|
|
7757
|
+
getAttachments(params: {
|
|
7758
|
+
type: "invoice" | "entry";
|
|
7759
|
+
document_id: string;
|
|
7760
|
+
folder_id?: string | undefined;
|
|
7761
|
+
page?: number | undefined;
|
|
7762
|
+
size?: number | undefined;
|
|
7763
|
+
}): import("../types/api").RequestData<{
|
|
7764
|
+
base64_string: string;
|
|
7765
|
+
}[]>;
|
|
7555
7766
|
getChartOfAccounts(params: {}): import("../types/api").RequestData<{
|
|
7556
7767
|
number: string;
|
|
7557
7768
|
name: string;
|
|
@@ -7790,6 +8001,20 @@ export declare class API {
|
|
|
7790
8001
|
}[] | undefined;
|
|
7791
8002
|
}[] | undefined;
|
|
7792
8003
|
}>;
|
|
8004
|
+
matchEntries(body: {
|
|
8005
|
+
entries: string[];
|
|
8006
|
+
partner_id: string;
|
|
8007
|
+
}, params: {
|
|
8008
|
+
folder_id?: string | undefined;
|
|
8009
|
+
} | undefined): import("../types/api").RequestData<{
|
|
8010
|
+
matching_number: string;
|
|
8011
|
+
balance: number;
|
|
8012
|
+
}>;
|
|
8013
|
+
getFolders(): import("../types/api").RequestData<{
|
|
8014
|
+
id: string;
|
|
8015
|
+
name: string;
|
|
8016
|
+
selected?: boolean | undefined;
|
|
8017
|
+
}[]>;
|
|
7793
8018
|
}>;
|
|
7794
8019
|
invoicing: import("../types/api").ApiFor<{
|
|
7795
8020
|
getInvoices(params: {
|
|
@@ -9465,12 +9690,20 @@ export declare class API {
|
|
|
9465
9690
|
}[]>;
|
|
9466
9691
|
}>;
|
|
9467
9692
|
accounting: import("../types/api").ApiFor<{
|
|
9468
|
-
getAnalyticPlans(
|
|
9693
|
+
getAnalyticPlans(params: {
|
|
9694
|
+
folder_id?: string | undefined;
|
|
9695
|
+
page?: number | undefined;
|
|
9696
|
+
size?: number | undefined;
|
|
9697
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9469
9698
|
id: string;
|
|
9470
9699
|
name: string;
|
|
9471
9700
|
active?: boolean | undefined;
|
|
9472
9701
|
}[]>;
|
|
9473
|
-
getClients(
|
|
9702
|
+
getClients(params: {
|
|
9703
|
+
folder_id?: string | undefined;
|
|
9704
|
+
page?: number | undefined;
|
|
9705
|
+
size?: number | undefined;
|
|
9706
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9474
9707
|
external_reference?: string | undefined;
|
|
9475
9708
|
first_name?: string | undefined;
|
|
9476
9709
|
last_name?: string | undefined;
|
|
@@ -9578,7 +9811,9 @@ export declare class API {
|
|
|
9578
9811
|
company_number?: string | undefined;
|
|
9579
9812
|
id?: string | undefined;
|
|
9580
9813
|
}>;
|
|
9581
|
-
getClient(clientId: string
|
|
9814
|
+
getClient(clientId: string, params: {
|
|
9815
|
+
folder_id?: string | undefined;
|
|
9816
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9582
9817
|
external_reference?: string | undefined;
|
|
9583
9818
|
first_name?: string | undefined;
|
|
9584
9819
|
last_name?: string | undefined;
|
|
@@ -9646,7 +9881,9 @@ export declare class API {
|
|
|
9646
9881
|
postal_code?: string | undefined;
|
|
9647
9882
|
country?: string | undefined;
|
|
9648
9883
|
}[] | undefined;
|
|
9649
|
-
}
|
|
9884
|
+
}, params: {
|
|
9885
|
+
folder_id?: string | undefined;
|
|
9886
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9650
9887
|
external_reference?: string | undefined;
|
|
9651
9888
|
first_name?: string | undefined;
|
|
9652
9889
|
last_name?: string | undefined;
|
|
@@ -9682,7 +9919,11 @@ export declare class API {
|
|
|
9682
9919
|
company_number?: string | undefined;
|
|
9683
9920
|
id?: string | undefined;
|
|
9684
9921
|
}>;
|
|
9685
|
-
getSuppliers(
|
|
9922
|
+
getSuppliers(params: {
|
|
9923
|
+
folder_id?: string | undefined;
|
|
9924
|
+
page?: number | undefined;
|
|
9925
|
+
size?: number | undefined;
|
|
9926
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9686
9927
|
external_reference?: string | undefined;
|
|
9687
9928
|
first_name?: string | undefined;
|
|
9688
9929
|
last_name?: string | undefined;
|
|
@@ -9790,7 +10031,9 @@ export declare class API {
|
|
|
9790
10031
|
company_number?: string | undefined;
|
|
9791
10032
|
id?: string | undefined;
|
|
9792
10033
|
}>;
|
|
9793
|
-
getSupplier(supplierId: string
|
|
10034
|
+
getSupplier(supplierId: string, params: {
|
|
10035
|
+
folder_id?: string | undefined;
|
|
10036
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9794
10037
|
external_reference?: string | undefined;
|
|
9795
10038
|
first_name?: string | undefined;
|
|
9796
10039
|
last_name?: string | undefined;
|
|
@@ -9858,7 +10101,9 @@ export declare class API {
|
|
|
9858
10101
|
postal_code?: string | undefined;
|
|
9859
10102
|
country?: string | undefined;
|
|
9860
10103
|
}[] | undefined;
|
|
9861
|
-
}
|
|
10104
|
+
}, params: {
|
|
10105
|
+
folder_id?: string | undefined;
|
|
10106
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9862
10107
|
external_reference?: string | undefined;
|
|
9863
10108
|
first_name?: string | undefined;
|
|
9864
10109
|
last_name?: string | undefined;
|
|
@@ -10301,7 +10546,9 @@ export declare class API {
|
|
|
10301
10546
|
code: string;
|
|
10302
10547
|
name: string;
|
|
10303
10548
|
currency: string;
|
|
10304
|
-
}
|
|
10549
|
+
}, params: {
|
|
10550
|
+
folder_id?: string | undefined;
|
|
10551
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10305
10552
|
id: string;
|
|
10306
10553
|
active: boolean;
|
|
10307
10554
|
code?: string | undefined;
|
|
@@ -10311,7 +10558,11 @@ export declare class API {
|
|
|
10311
10558
|
credit?: number | undefined;
|
|
10312
10559
|
debit?: number | undefined;
|
|
10313
10560
|
}>;
|
|
10314
|
-
getAnalyticAccounts(
|
|
10561
|
+
getAnalyticAccounts(params: {
|
|
10562
|
+
folder_id?: string | undefined;
|
|
10563
|
+
page?: number | undefined;
|
|
10564
|
+
size?: number | undefined;
|
|
10565
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10315
10566
|
id: string;
|
|
10316
10567
|
active: boolean;
|
|
10317
10568
|
code?: string | undefined;
|
|
@@ -10326,7 +10577,9 @@ export declare class API {
|
|
|
10326
10577
|
code: string;
|
|
10327
10578
|
name: string;
|
|
10328
10579
|
currency: string;
|
|
10329
|
-
}
|
|
10580
|
+
}, params: {
|
|
10581
|
+
folder_id?: string | undefined;
|
|
10582
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10330
10583
|
id: string;
|
|
10331
10584
|
active: boolean;
|
|
10332
10585
|
code?: string | undefined;
|
|
@@ -10337,7 +10590,9 @@ export declare class API {
|
|
|
10337
10590
|
debit?: number | undefined;
|
|
10338
10591
|
analytic_plan: string;
|
|
10339
10592
|
}>;
|
|
10340
|
-
getAnalyticAccount(analytic_account_id: string
|
|
10593
|
+
getAnalyticAccount(analytic_account_id: string, params: {
|
|
10594
|
+
folder_id?: string | undefined;
|
|
10595
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10341
10596
|
id: string;
|
|
10342
10597
|
active: boolean;
|
|
10343
10598
|
code?: string | undefined;
|
|
@@ -10352,7 +10607,9 @@ export declare class API {
|
|
|
10352
10607
|
code?: string | undefined;
|
|
10353
10608
|
name?: string | undefined;
|
|
10354
10609
|
currency?: string | undefined;
|
|
10355
|
-
}
|
|
10610
|
+
}, params: {
|
|
10611
|
+
folder_id?: string | undefined;
|
|
10612
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10356
10613
|
id: string;
|
|
10357
10614
|
active: boolean;
|
|
10358
10615
|
code?: string | undefined;
|
|
@@ -10362,7 +10619,9 @@ export declare class API {
|
|
|
10362
10619
|
credit?: number | undefined;
|
|
10363
10620
|
debit?: number | undefined;
|
|
10364
10621
|
}>;
|
|
10365
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string
|
|
10622
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
|
|
10623
|
+
folder_id?: string | undefined;
|
|
10624
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10366
10625
|
id: string;
|
|
10367
10626
|
active: boolean;
|
|
10368
10627
|
code?: string | undefined;
|
|
@@ -10378,7 +10637,9 @@ export declare class API {
|
|
|
10378
10637
|
code?: string | undefined;
|
|
10379
10638
|
name?: string | undefined;
|
|
10380
10639
|
currency?: string | undefined;
|
|
10381
|
-
}
|
|
10640
|
+
}, params: {
|
|
10641
|
+
folder_id?: string | undefined;
|
|
10642
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10382
10643
|
id: string;
|
|
10383
10644
|
active: boolean;
|
|
10384
10645
|
code?: string | undefined;
|
|
@@ -10389,7 +10650,11 @@ export declare class API {
|
|
|
10389
10650
|
debit?: number | undefined;
|
|
10390
10651
|
analytic_plan: string;
|
|
10391
10652
|
}>;
|
|
10392
|
-
getAnalyticAccountsWithMultiplePlans(
|
|
10653
|
+
getAnalyticAccountsWithMultiplePlans(params: {
|
|
10654
|
+
folder_id?: string | undefined;
|
|
10655
|
+
page?: number | undefined;
|
|
10656
|
+
size?: number | undefined;
|
|
10657
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10393
10658
|
id: string;
|
|
10394
10659
|
active: boolean;
|
|
10395
10660
|
code?: string | undefined;
|
|
@@ -10469,7 +10734,11 @@ export declare class API {
|
|
|
10469
10734
|
}[] | undefined;
|
|
10470
10735
|
}[] | undefined;
|
|
10471
10736
|
}[]>;
|
|
10472
|
-
getPaymentsByInvoiceId(invoice_id: string
|
|
10737
|
+
getPaymentsByInvoiceId(invoice_id: string, params: {
|
|
10738
|
+
folder_id?: string | undefined;
|
|
10739
|
+
page?: number | undefined;
|
|
10740
|
+
size?: number | undefined;
|
|
10741
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10473
10742
|
id: string;
|
|
10474
10743
|
name: string;
|
|
10475
10744
|
currency: string;
|
|
@@ -10483,13 +10752,21 @@ export declare class API {
|
|
|
10483
10752
|
communication?: string | undefined;
|
|
10484
10753
|
matching_number?: string | undefined;
|
|
10485
10754
|
}[]>;
|
|
10486
|
-
getJournals(
|
|
10755
|
+
getJournals(params: {
|
|
10756
|
+
folder_id?: string | undefined;
|
|
10757
|
+
page?: number | undefined;
|
|
10758
|
+
size?: number | undefined;
|
|
10759
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10487
10760
|
id: string;
|
|
10488
10761
|
code?: string | undefined;
|
|
10489
10762
|
name: string;
|
|
10490
10763
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
10491
10764
|
}[]>;
|
|
10492
|
-
getVatCodes(
|
|
10765
|
+
getVatCodes(params: {
|
|
10766
|
+
folder_id?: string | undefined;
|
|
10767
|
+
page?: number | undefined;
|
|
10768
|
+
size?: number | undefined;
|
|
10769
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10493
10770
|
id: string;
|
|
10494
10771
|
code?: string | undefined;
|
|
10495
10772
|
label: string;
|
|
@@ -10583,6 +10860,15 @@ export declare class API {
|
|
|
10583
10860
|
'application/json': unknown;
|
|
10584
10861
|
};
|
|
10585
10862
|
}>;
|
|
10863
|
+
getAttachments(params: {
|
|
10864
|
+
type: "invoice" | "entry";
|
|
10865
|
+
document_id: string;
|
|
10866
|
+
folder_id?: string | undefined;
|
|
10867
|
+
page?: number | undefined;
|
|
10868
|
+
size?: number | undefined;
|
|
10869
|
+
}): import("../types/api").RequestData<{
|
|
10870
|
+
base64_string: string;
|
|
10871
|
+
}[]>;
|
|
10586
10872
|
getChartOfAccounts(params: {}): import("../types/api").RequestData<{
|
|
10587
10873
|
number: string;
|
|
10588
10874
|
name: string;
|
|
@@ -10821,6 +11107,20 @@ export declare class API {
|
|
|
10821
11107
|
}[] | undefined;
|
|
10822
11108
|
}[] | undefined;
|
|
10823
11109
|
}>;
|
|
11110
|
+
matchEntries(body: {
|
|
11111
|
+
entries: string[];
|
|
11112
|
+
partner_id: string;
|
|
11113
|
+
}, params: {
|
|
11114
|
+
folder_id?: string | undefined;
|
|
11115
|
+
} | undefined): import("../types/api").RequestData<{
|
|
11116
|
+
matching_number: string;
|
|
11117
|
+
balance: number;
|
|
11118
|
+
}>;
|
|
11119
|
+
getFolders(): import("../types/api").RequestData<{
|
|
11120
|
+
id: string;
|
|
11121
|
+
name: string;
|
|
11122
|
+
selected?: boolean | undefined;
|
|
11123
|
+
}[]>;
|
|
10824
11124
|
}>;
|
|
10825
11125
|
invoicing: import("../types/api").ApiFor<{
|
|
10826
11126
|
getInvoices(params: {
|
|
@@ -12500,12 +12800,20 @@ export declare class API {
|
|
|
12500
12800
|
}[]>;
|
|
12501
12801
|
}>;
|
|
12502
12802
|
accounting: import("../types/api").ApiFor<{
|
|
12503
|
-
getAnalyticPlans(
|
|
12803
|
+
getAnalyticPlans(params: {
|
|
12804
|
+
folder_id?: string | undefined;
|
|
12805
|
+
page?: number | undefined;
|
|
12806
|
+
size?: number | undefined;
|
|
12807
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12504
12808
|
id: string;
|
|
12505
12809
|
name: string;
|
|
12506
12810
|
active?: boolean | undefined;
|
|
12507
12811
|
}[]>;
|
|
12508
|
-
getClients(
|
|
12812
|
+
getClients(params: {
|
|
12813
|
+
folder_id?: string | undefined;
|
|
12814
|
+
page?: number | undefined;
|
|
12815
|
+
size?: number | undefined;
|
|
12816
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12509
12817
|
external_reference?: string | undefined;
|
|
12510
12818
|
first_name?: string | undefined;
|
|
12511
12819
|
last_name?: string | undefined;
|
|
@@ -12613,7 +12921,9 @@ export declare class API {
|
|
|
12613
12921
|
company_number?: string | undefined;
|
|
12614
12922
|
id?: string | undefined;
|
|
12615
12923
|
}>;
|
|
12616
|
-
getClient(clientId: string
|
|
12924
|
+
getClient(clientId: string, params: {
|
|
12925
|
+
folder_id?: string | undefined;
|
|
12926
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12617
12927
|
external_reference?: string | undefined;
|
|
12618
12928
|
first_name?: string | undefined;
|
|
12619
12929
|
last_name?: string | undefined;
|
|
@@ -12681,7 +12991,9 @@ export declare class API {
|
|
|
12681
12991
|
postal_code?: string | undefined;
|
|
12682
12992
|
country?: string | undefined;
|
|
12683
12993
|
}[] | undefined;
|
|
12684
|
-
}
|
|
12994
|
+
}, params: {
|
|
12995
|
+
folder_id?: string | undefined;
|
|
12996
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12685
12997
|
external_reference?: string | undefined;
|
|
12686
12998
|
first_name?: string | undefined;
|
|
12687
12999
|
last_name?: string | undefined;
|
|
@@ -12717,7 +13029,11 @@ export declare class API {
|
|
|
12717
13029
|
company_number?: string | undefined;
|
|
12718
13030
|
id?: string | undefined;
|
|
12719
13031
|
}>;
|
|
12720
|
-
getSuppliers(
|
|
13032
|
+
getSuppliers(params: {
|
|
13033
|
+
folder_id?: string | undefined;
|
|
13034
|
+
page?: number | undefined;
|
|
13035
|
+
size?: number | undefined;
|
|
13036
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12721
13037
|
external_reference?: string | undefined;
|
|
12722
13038
|
first_name?: string | undefined;
|
|
12723
13039
|
last_name?: string | undefined;
|
|
@@ -12825,7 +13141,9 @@ export declare class API {
|
|
|
12825
13141
|
company_number?: string | undefined;
|
|
12826
13142
|
id?: string | undefined;
|
|
12827
13143
|
}>;
|
|
12828
|
-
getSupplier(supplierId: string
|
|
13144
|
+
getSupplier(supplierId: string, params: {
|
|
13145
|
+
folder_id?: string | undefined;
|
|
13146
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12829
13147
|
external_reference?: string | undefined;
|
|
12830
13148
|
first_name?: string | undefined;
|
|
12831
13149
|
last_name?: string | undefined;
|
|
@@ -12893,7 +13211,9 @@ export declare class API {
|
|
|
12893
13211
|
postal_code?: string | undefined;
|
|
12894
13212
|
country?: string | undefined;
|
|
12895
13213
|
}[] | undefined;
|
|
12896
|
-
}
|
|
13214
|
+
}, params: {
|
|
13215
|
+
folder_id?: string | undefined;
|
|
13216
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12897
13217
|
external_reference?: string | undefined;
|
|
12898
13218
|
first_name?: string | undefined;
|
|
12899
13219
|
last_name?: string | undefined;
|
|
@@ -13336,7 +13656,9 @@ export declare class API {
|
|
|
13336
13656
|
code: string;
|
|
13337
13657
|
name: string;
|
|
13338
13658
|
currency: string;
|
|
13339
|
-
}
|
|
13659
|
+
}, params: {
|
|
13660
|
+
folder_id?: string | undefined;
|
|
13661
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13340
13662
|
id: string;
|
|
13341
13663
|
active: boolean;
|
|
13342
13664
|
code?: string | undefined;
|
|
@@ -13346,7 +13668,11 @@ export declare class API {
|
|
|
13346
13668
|
credit?: number | undefined;
|
|
13347
13669
|
debit?: number | undefined;
|
|
13348
13670
|
}>;
|
|
13349
|
-
getAnalyticAccounts(
|
|
13671
|
+
getAnalyticAccounts(params: {
|
|
13672
|
+
folder_id?: string | undefined;
|
|
13673
|
+
page?: number | undefined;
|
|
13674
|
+
size?: number | undefined;
|
|
13675
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13350
13676
|
id: string;
|
|
13351
13677
|
active: boolean;
|
|
13352
13678
|
code?: string | undefined;
|
|
@@ -13361,7 +13687,9 @@ export declare class API {
|
|
|
13361
13687
|
code: string;
|
|
13362
13688
|
name: string;
|
|
13363
13689
|
currency: string;
|
|
13364
|
-
}
|
|
13690
|
+
}, params: {
|
|
13691
|
+
folder_id?: string | undefined;
|
|
13692
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13365
13693
|
id: string;
|
|
13366
13694
|
active: boolean;
|
|
13367
13695
|
code?: string | undefined;
|
|
@@ -13372,7 +13700,9 @@ export declare class API {
|
|
|
13372
13700
|
debit?: number | undefined;
|
|
13373
13701
|
analytic_plan: string;
|
|
13374
13702
|
}>;
|
|
13375
|
-
getAnalyticAccount(analytic_account_id: string
|
|
13703
|
+
getAnalyticAccount(analytic_account_id: string, params: {
|
|
13704
|
+
folder_id?: string | undefined;
|
|
13705
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13376
13706
|
id: string;
|
|
13377
13707
|
active: boolean;
|
|
13378
13708
|
code?: string | undefined;
|
|
@@ -13387,7 +13717,9 @@ export declare class API {
|
|
|
13387
13717
|
code?: string | undefined;
|
|
13388
13718
|
name?: string | undefined;
|
|
13389
13719
|
currency?: string | undefined;
|
|
13390
|
-
}
|
|
13720
|
+
}, params: {
|
|
13721
|
+
folder_id?: string | undefined;
|
|
13722
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13391
13723
|
id: string;
|
|
13392
13724
|
active: boolean;
|
|
13393
13725
|
code?: string | undefined;
|
|
@@ -13397,7 +13729,9 @@ export declare class API {
|
|
|
13397
13729
|
credit?: number | undefined;
|
|
13398
13730
|
debit?: number | undefined;
|
|
13399
13731
|
}>;
|
|
13400
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string
|
|
13732
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
|
|
13733
|
+
folder_id?: string | undefined;
|
|
13734
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13401
13735
|
id: string;
|
|
13402
13736
|
active: boolean;
|
|
13403
13737
|
code?: string | undefined;
|
|
@@ -13413,7 +13747,9 @@ export declare class API {
|
|
|
13413
13747
|
code?: string | undefined;
|
|
13414
13748
|
name?: string | undefined;
|
|
13415
13749
|
currency?: string | undefined;
|
|
13416
|
-
}
|
|
13750
|
+
}, params: {
|
|
13751
|
+
folder_id?: string | undefined;
|
|
13752
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13417
13753
|
id: string;
|
|
13418
13754
|
active: boolean;
|
|
13419
13755
|
code?: string | undefined;
|
|
@@ -13424,7 +13760,11 @@ export declare class API {
|
|
|
13424
13760
|
debit?: number | undefined;
|
|
13425
13761
|
analytic_plan: string;
|
|
13426
13762
|
}>;
|
|
13427
|
-
getAnalyticAccountsWithMultiplePlans(
|
|
13763
|
+
getAnalyticAccountsWithMultiplePlans(params: {
|
|
13764
|
+
folder_id?: string | undefined;
|
|
13765
|
+
page?: number | undefined;
|
|
13766
|
+
size?: number | undefined;
|
|
13767
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13428
13768
|
id: string;
|
|
13429
13769
|
active: boolean;
|
|
13430
13770
|
code?: string | undefined;
|
|
@@ -13504,7 +13844,11 @@ export declare class API {
|
|
|
13504
13844
|
}[] | undefined;
|
|
13505
13845
|
}[] | undefined;
|
|
13506
13846
|
}[]>;
|
|
13507
|
-
getPaymentsByInvoiceId(invoice_id: string
|
|
13847
|
+
getPaymentsByInvoiceId(invoice_id: string, params: {
|
|
13848
|
+
folder_id?: string | undefined;
|
|
13849
|
+
page?: number | undefined;
|
|
13850
|
+
size?: number | undefined;
|
|
13851
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13508
13852
|
id: string;
|
|
13509
13853
|
name: string;
|
|
13510
13854
|
currency: string;
|
|
@@ -13518,13 +13862,21 @@ export declare class API {
|
|
|
13518
13862
|
communication?: string | undefined;
|
|
13519
13863
|
matching_number?: string | undefined;
|
|
13520
13864
|
}[]>;
|
|
13521
|
-
getJournals(
|
|
13865
|
+
getJournals(params: {
|
|
13866
|
+
folder_id?: string | undefined;
|
|
13867
|
+
page?: number | undefined;
|
|
13868
|
+
size?: number | undefined;
|
|
13869
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13522
13870
|
id: string;
|
|
13523
13871
|
code?: string | undefined;
|
|
13524
13872
|
name: string;
|
|
13525
13873
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
13526
13874
|
}[]>;
|
|
13527
|
-
getVatCodes(
|
|
13875
|
+
getVatCodes(params: {
|
|
13876
|
+
folder_id?: string | undefined;
|
|
13877
|
+
page?: number | undefined;
|
|
13878
|
+
size?: number | undefined;
|
|
13879
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13528
13880
|
id: string;
|
|
13529
13881
|
code?: string | undefined;
|
|
13530
13882
|
label: string;
|
|
@@ -13618,6 +13970,15 @@ export declare class API {
|
|
|
13618
13970
|
'application/json': unknown;
|
|
13619
13971
|
};
|
|
13620
13972
|
}>;
|
|
13973
|
+
getAttachments(params: {
|
|
13974
|
+
type: "invoice" | "entry";
|
|
13975
|
+
document_id: string;
|
|
13976
|
+
folder_id?: string | undefined;
|
|
13977
|
+
page?: number | undefined;
|
|
13978
|
+
size?: number | undefined;
|
|
13979
|
+
}): import("../types/api").RequestData<{
|
|
13980
|
+
base64_string: string;
|
|
13981
|
+
}[]>;
|
|
13621
13982
|
getChartOfAccounts(params: {}): import("../types/api").RequestData<{
|
|
13622
13983
|
number: string;
|
|
13623
13984
|
name: string;
|
|
@@ -13856,6 +14217,20 @@ export declare class API {
|
|
|
13856
14217
|
}[] | undefined;
|
|
13857
14218
|
}[] | undefined;
|
|
13858
14219
|
}>;
|
|
14220
|
+
matchEntries(body: {
|
|
14221
|
+
entries: string[];
|
|
14222
|
+
partner_id: string;
|
|
14223
|
+
}, params: {
|
|
14224
|
+
folder_id?: string | undefined;
|
|
14225
|
+
} | undefined): import("../types/api").RequestData<{
|
|
14226
|
+
matching_number: string;
|
|
14227
|
+
balance: number;
|
|
14228
|
+
}>;
|
|
14229
|
+
getFolders(): import("../types/api").RequestData<{
|
|
14230
|
+
id: string;
|
|
14231
|
+
name: string;
|
|
14232
|
+
selected?: boolean | undefined;
|
|
14233
|
+
}[]>;
|
|
13859
14234
|
}>;
|
|
13860
14235
|
invoicing: import("../types/api").ApiFor<{
|
|
13861
14236
|
getInvoices(params: {
|