@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
|
@@ -365,12 +365,20 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
365
365
|
}[]>;
|
|
366
366
|
}>;
|
|
367
367
|
accounting: import("../types/api").ApiFor<{
|
|
368
|
-
getAnalyticPlans(
|
|
368
|
+
getAnalyticPlans(params: {
|
|
369
|
+
folder_id?: string | undefined;
|
|
370
|
+
page?: number | undefined;
|
|
371
|
+
size?: number | undefined;
|
|
372
|
+
} | undefined): import("../types/api").RequestData<{
|
|
369
373
|
id: string;
|
|
370
374
|
name: string;
|
|
371
375
|
active?: boolean | undefined;
|
|
372
376
|
}[]>;
|
|
373
|
-
getClients(
|
|
377
|
+
getClients(params: {
|
|
378
|
+
folder_id?: string | undefined;
|
|
379
|
+
page?: number | undefined;
|
|
380
|
+
size?: number | undefined;
|
|
381
|
+
} | undefined): import("../types/api").RequestData<{
|
|
374
382
|
external_reference?: string | undefined;
|
|
375
383
|
first_name?: string | undefined;
|
|
376
384
|
last_name?: string | undefined;
|
|
@@ -478,7 +486,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
478
486
|
company_number?: string | undefined;
|
|
479
487
|
id?: string | undefined;
|
|
480
488
|
}>;
|
|
481
|
-
getClient(clientId: string
|
|
489
|
+
getClient(clientId: string, params: {
|
|
490
|
+
folder_id?: string | undefined;
|
|
491
|
+
} | undefined): import("../types/api").RequestData<{
|
|
482
492
|
external_reference?: string | undefined;
|
|
483
493
|
first_name?: string | undefined;
|
|
484
494
|
last_name?: string | undefined;
|
|
@@ -546,7 +556,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
546
556
|
postal_code?: string | undefined;
|
|
547
557
|
country?: string | undefined;
|
|
548
558
|
}[] | undefined;
|
|
549
|
-
}
|
|
559
|
+
}, params: {
|
|
560
|
+
folder_id?: string | undefined;
|
|
561
|
+
} | undefined): import("../types/api").RequestData<{
|
|
550
562
|
external_reference?: string | undefined;
|
|
551
563
|
first_name?: string | undefined;
|
|
552
564
|
last_name?: string | undefined;
|
|
@@ -582,7 +594,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
582
594
|
company_number?: string | undefined;
|
|
583
595
|
id?: string | undefined;
|
|
584
596
|
}>;
|
|
585
|
-
getSuppliers(
|
|
597
|
+
getSuppliers(params: {
|
|
598
|
+
folder_id?: string | undefined;
|
|
599
|
+
page?: number | undefined;
|
|
600
|
+
size?: number | undefined;
|
|
601
|
+
} | undefined): import("../types/api").RequestData<{
|
|
586
602
|
external_reference?: string | undefined;
|
|
587
603
|
first_name?: string | undefined;
|
|
588
604
|
last_name?: string | undefined;
|
|
@@ -690,7 +706,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
690
706
|
company_number?: string | undefined;
|
|
691
707
|
id?: string | undefined;
|
|
692
708
|
}>;
|
|
693
|
-
getSupplier(supplierId: string
|
|
709
|
+
getSupplier(supplierId: string, params: {
|
|
710
|
+
folder_id?: string | undefined;
|
|
711
|
+
} | undefined): import("../types/api").RequestData<{
|
|
694
712
|
external_reference?: string | undefined;
|
|
695
713
|
first_name?: string | undefined;
|
|
696
714
|
last_name?: string | undefined;
|
|
@@ -758,7 +776,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
758
776
|
postal_code?: string | undefined;
|
|
759
777
|
country?: string | undefined;
|
|
760
778
|
}[] | undefined;
|
|
761
|
-
}
|
|
779
|
+
}, params: {
|
|
780
|
+
folder_id?: string | undefined;
|
|
781
|
+
} | undefined): import("../types/api").RequestData<{
|
|
762
782
|
external_reference?: string | undefined;
|
|
763
783
|
first_name?: string | undefined;
|
|
764
784
|
last_name?: string | undefined;
|
|
@@ -1201,7 +1221,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1201
1221
|
code: string;
|
|
1202
1222
|
name: string;
|
|
1203
1223
|
currency: string;
|
|
1204
|
-
}
|
|
1224
|
+
}, params: {
|
|
1225
|
+
folder_id?: string | undefined;
|
|
1226
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1205
1227
|
id: string;
|
|
1206
1228
|
active: boolean;
|
|
1207
1229
|
code?: string | undefined;
|
|
@@ -1211,7 +1233,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1211
1233
|
credit?: number | undefined;
|
|
1212
1234
|
debit?: number | undefined;
|
|
1213
1235
|
}>;
|
|
1214
|
-
getAnalyticAccounts(
|
|
1236
|
+
getAnalyticAccounts(params: {
|
|
1237
|
+
folder_id?: string | undefined;
|
|
1238
|
+
page?: number | undefined;
|
|
1239
|
+
size?: number | undefined;
|
|
1240
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1215
1241
|
id: string;
|
|
1216
1242
|
active: boolean;
|
|
1217
1243
|
code?: string | undefined;
|
|
@@ -1226,7 +1252,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1226
1252
|
code: string;
|
|
1227
1253
|
name: string;
|
|
1228
1254
|
currency: string;
|
|
1229
|
-
}
|
|
1255
|
+
}, params: {
|
|
1256
|
+
folder_id?: string | undefined;
|
|
1257
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1230
1258
|
id: string;
|
|
1231
1259
|
active: boolean;
|
|
1232
1260
|
code?: string | undefined;
|
|
@@ -1237,7 +1265,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1237
1265
|
debit?: number | undefined;
|
|
1238
1266
|
analytic_plan: string;
|
|
1239
1267
|
}>;
|
|
1240
|
-
getAnalyticAccount(analytic_account_id: string
|
|
1268
|
+
getAnalyticAccount(analytic_account_id: string, params: {
|
|
1269
|
+
folder_id?: string | undefined;
|
|
1270
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1241
1271
|
id: string;
|
|
1242
1272
|
active: boolean;
|
|
1243
1273
|
code?: string | undefined;
|
|
@@ -1252,7 +1282,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1252
1282
|
code?: string | undefined;
|
|
1253
1283
|
name?: string | undefined;
|
|
1254
1284
|
currency?: string | undefined;
|
|
1255
|
-
}
|
|
1285
|
+
}, params: {
|
|
1286
|
+
folder_id?: string | undefined;
|
|
1287
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1256
1288
|
id: string;
|
|
1257
1289
|
active: boolean;
|
|
1258
1290
|
code?: string | undefined;
|
|
@@ -1262,7 +1294,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1262
1294
|
credit?: number | undefined;
|
|
1263
1295
|
debit?: number | undefined;
|
|
1264
1296
|
}>;
|
|
1265
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string
|
|
1297
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
|
|
1298
|
+
folder_id?: string | undefined;
|
|
1299
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1266
1300
|
id: string;
|
|
1267
1301
|
active: boolean;
|
|
1268
1302
|
code?: string | undefined;
|
|
@@ -1278,7 +1312,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1278
1312
|
code?: string | undefined;
|
|
1279
1313
|
name?: string | undefined;
|
|
1280
1314
|
currency?: string | undefined;
|
|
1281
|
-
}
|
|
1315
|
+
}, params: {
|
|
1316
|
+
folder_id?: string | undefined;
|
|
1317
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1282
1318
|
id: string;
|
|
1283
1319
|
active: boolean;
|
|
1284
1320
|
code?: string | undefined;
|
|
@@ -1289,7 +1325,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1289
1325
|
debit?: number | undefined;
|
|
1290
1326
|
analytic_plan: string;
|
|
1291
1327
|
}>;
|
|
1292
|
-
getAnalyticAccountsWithMultiplePlans(
|
|
1328
|
+
getAnalyticAccountsWithMultiplePlans(params: {
|
|
1329
|
+
folder_id?: string | undefined;
|
|
1330
|
+
page?: number | undefined;
|
|
1331
|
+
size?: number | undefined;
|
|
1332
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1293
1333
|
id: string;
|
|
1294
1334
|
active: boolean;
|
|
1295
1335
|
code?: string | undefined;
|
|
@@ -1369,7 +1409,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1369
1409
|
}[] | undefined;
|
|
1370
1410
|
}[] | undefined;
|
|
1371
1411
|
}[]>;
|
|
1372
|
-
getPaymentsByInvoiceId(invoice_id: string
|
|
1412
|
+
getPaymentsByInvoiceId(invoice_id: string, params: {
|
|
1413
|
+
folder_id?: string | undefined;
|
|
1414
|
+
page?: number | undefined;
|
|
1415
|
+
size?: number | undefined;
|
|
1416
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1373
1417
|
id: string;
|
|
1374
1418
|
name: string;
|
|
1375
1419
|
currency: string;
|
|
@@ -1383,13 +1427,21 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1383
1427
|
communication?: string | undefined;
|
|
1384
1428
|
matching_number?: string | undefined;
|
|
1385
1429
|
}[]>;
|
|
1386
|
-
getJournals(
|
|
1430
|
+
getJournals(params: {
|
|
1431
|
+
folder_id?: string | undefined;
|
|
1432
|
+
page?: number | undefined;
|
|
1433
|
+
size?: number | undefined;
|
|
1434
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1387
1435
|
id: string;
|
|
1388
1436
|
code?: string | undefined;
|
|
1389
1437
|
name: string;
|
|
1390
1438
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
1391
1439
|
}[]>;
|
|
1392
|
-
getVatCodes(
|
|
1440
|
+
getVatCodes(params: {
|
|
1441
|
+
folder_id?: string | undefined;
|
|
1442
|
+
page?: number | undefined;
|
|
1443
|
+
size?: number | undefined;
|
|
1444
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1393
1445
|
id: string;
|
|
1394
1446
|
code?: string | undefined;
|
|
1395
1447
|
label: string;
|
|
@@ -1483,6 +1535,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1483
1535
|
'application/json': unknown;
|
|
1484
1536
|
};
|
|
1485
1537
|
}>;
|
|
1538
|
+
getAttachments(params: {
|
|
1539
|
+
type: "invoice" | "entry";
|
|
1540
|
+
document_id: string;
|
|
1541
|
+
folder_id?: string | undefined;
|
|
1542
|
+
page?: number | undefined;
|
|
1543
|
+
size?: number | undefined;
|
|
1544
|
+
}): import("../types/api").RequestData<{
|
|
1545
|
+
base64_string: string;
|
|
1546
|
+
}[]>;
|
|
1486
1547
|
getChartOfAccounts(params: {}): import("../types/api").RequestData<{
|
|
1487
1548
|
number: string;
|
|
1488
1549
|
name: string;
|
|
@@ -1721,6 +1782,20 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1721
1782
|
}[] | undefined;
|
|
1722
1783
|
}[] | undefined;
|
|
1723
1784
|
}>;
|
|
1785
|
+
matchEntries(body: {
|
|
1786
|
+
entries: string[];
|
|
1787
|
+
partner_id: string;
|
|
1788
|
+
}, params: {
|
|
1789
|
+
folder_id?: string | undefined;
|
|
1790
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1791
|
+
matching_number: string;
|
|
1792
|
+
balance: number;
|
|
1793
|
+
}>;
|
|
1794
|
+
getFolders(): import("../types/api").RequestData<{
|
|
1795
|
+
id: string;
|
|
1796
|
+
name: string;
|
|
1797
|
+
selected?: boolean | undefined;
|
|
1798
|
+
}[]>;
|
|
1724
1799
|
}>;
|
|
1725
1800
|
invoicing: import("../types/api").ApiFor<{
|
|
1726
1801
|
getInvoices(params: {
|
|
@@ -3396,12 +3471,20 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3396
3471
|
}[]>;
|
|
3397
3472
|
}>;
|
|
3398
3473
|
accounting: import("../types/api").ApiFor<{
|
|
3399
|
-
getAnalyticPlans(
|
|
3474
|
+
getAnalyticPlans(params: {
|
|
3475
|
+
folder_id?: string | undefined;
|
|
3476
|
+
page?: number | undefined;
|
|
3477
|
+
size?: number | undefined;
|
|
3478
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3400
3479
|
id: string;
|
|
3401
3480
|
name: string;
|
|
3402
3481
|
active?: boolean | undefined;
|
|
3403
3482
|
}[]>;
|
|
3404
|
-
getClients(
|
|
3483
|
+
getClients(params: {
|
|
3484
|
+
folder_id?: string | undefined;
|
|
3485
|
+
page?: number | undefined;
|
|
3486
|
+
size?: number | undefined;
|
|
3487
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3405
3488
|
external_reference?: string | undefined;
|
|
3406
3489
|
first_name?: string | undefined;
|
|
3407
3490
|
last_name?: string | undefined;
|
|
@@ -3509,7 +3592,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3509
3592
|
company_number?: string | undefined;
|
|
3510
3593
|
id?: string | undefined;
|
|
3511
3594
|
}>;
|
|
3512
|
-
getClient(clientId: string
|
|
3595
|
+
getClient(clientId: string, params: {
|
|
3596
|
+
folder_id?: string | undefined;
|
|
3597
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3513
3598
|
external_reference?: string | undefined;
|
|
3514
3599
|
first_name?: string | undefined;
|
|
3515
3600
|
last_name?: string | undefined;
|
|
@@ -3577,7 +3662,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3577
3662
|
postal_code?: string | undefined;
|
|
3578
3663
|
country?: string | undefined;
|
|
3579
3664
|
}[] | undefined;
|
|
3580
|
-
}
|
|
3665
|
+
}, params: {
|
|
3666
|
+
folder_id?: string | undefined;
|
|
3667
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3581
3668
|
external_reference?: string | undefined;
|
|
3582
3669
|
first_name?: string | undefined;
|
|
3583
3670
|
last_name?: string | undefined;
|
|
@@ -3613,7 +3700,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3613
3700
|
company_number?: string | undefined;
|
|
3614
3701
|
id?: string | undefined;
|
|
3615
3702
|
}>;
|
|
3616
|
-
getSuppliers(
|
|
3703
|
+
getSuppliers(params: {
|
|
3704
|
+
folder_id?: string | undefined;
|
|
3705
|
+
page?: number | undefined;
|
|
3706
|
+
size?: number | undefined;
|
|
3707
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3617
3708
|
external_reference?: string | undefined;
|
|
3618
3709
|
first_name?: string | undefined;
|
|
3619
3710
|
last_name?: string | undefined;
|
|
@@ -3721,7 +3812,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3721
3812
|
company_number?: string | undefined;
|
|
3722
3813
|
id?: string | undefined;
|
|
3723
3814
|
}>;
|
|
3724
|
-
getSupplier(supplierId: string
|
|
3815
|
+
getSupplier(supplierId: string, params: {
|
|
3816
|
+
folder_id?: string | undefined;
|
|
3817
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3725
3818
|
external_reference?: string | undefined;
|
|
3726
3819
|
first_name?: string | undefined;
|
|
3727
3820
|
last_name?: string | undefined;
|
|
@@ -3789,7 +3882,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3789
3882
|
postal_code?: string | undefined;
|
|
3790
3883
|
country?: string | undefined;
|
|
3791
3884
|
}[] | undefined;
|
|
3792
|
-
}
|
|
3885
|
+
}, params: {
|
|
3886
|
+
folder_id?: string | undefined;
|
|
3887
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3793
3888
|
external_reference?: string | undefined;
|
|
3794
3889
|
first_name?: string | undefined;
|
|
3795
3890
|
last_name?: string | undefined;
|
|
@@ -4232,7 +4327,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4232
4327
|
code: string;
|
|
4233
4328
|
name: string;
|
|
4234
4329
|
currency: string;
|
|
4235
|
-
}
|
|
4330
|
+
}, params: {
|
|
4331
|
+
folder_id?: string | undefined;
|
|
4332
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4236
4333
|
id: string;
|
|
4237
4334
|
active: boolean;
|
|
4238
4335
|
code?: string | undefined;
|
|
@@ -4242,7 +4339,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4242
4339
|
credit?: number | undefined;
|
|
4243
4340
|
debit?: number | undefined;
|
|
4244
4341
|
}>;
|
|
4245
|
-
getAnalyticAccounts(
|
|
4342
|
+
getAnalyticAccounts(params: {
|
|
4343
|
+
folder_id?: string | undefined;
|
|
4344
|
+
page?: number | undefined;
|
|
4345
|
+
size?: number | undefined;
|
|
4346
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4246
4347
|
id: string;
|
|
4247
4348
|
active: boolean;
|
|
4248
4349
|
code?: string | undefined;
|
|
@@ -4257,7 +4358,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4257
4358
|
code: string;
|
|
4258
4359
|
name: string;
|
|
4259
4360
|
currency: string;
|
|
4260
|
-
}
|
|
4361
|
+
}, params: {
|
|
4362
|
+
folder_id?: string | undefined;
|
|
4363
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4261
4364
|
id: string;
|
|
4262
4365
|
active: boolean;
|
|
4263
4366
|
code?: string | undefined;
|
|
@@ -4268,7 +4371,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4268
4371
|
debit?: number | undefined;
|
|
4269
4372
|
analytic_plan: string;
|
|
4270
4373
|
}>;
|
|
4271
|
-
getAnalyticAccount(analytic_account_id: string
|
|
4374
|
+
getAnalyticAccount(analytic_account_id: string, params: {
|
|
4375
|
+
folder_id?: string | undefined;
|
|
4376
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4272
4377
|
id: string;
|
|
4273
4378
|
active: boolean;
|
|
4274
4379
|
code?: string | undefined;
|
|
@@ -4283,7 +4388,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4283
4388
|
code?: string | undefined;
|
|
4284
4389
|
name?: string | undefined;
|
|
4285
4390
|
currency?: string | undefined;
|
|
4286
|
-
}
|
|
4391
|
+
}, params: {
|
|
4392
|
+
folder_id?: string | undefined;
|
|
4393
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4287
4394
|
id: string;
|
|
4288
4395
|
active: boolean;
|
|
4289
4396
|
code?: string | undefined;
|
|
@@ -4293,7 +4400,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4293
4400
|
credit?: number | undefined;
|
|
4294
4401
|
debit?: number | undefined;
|
|
4295
4402
|
}>;
|
|
4296
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string
|
|
4403
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
|
|
4404
|
+
folder_id?: string | undefined;
|
|
4405
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4297
4406
|
id: string;
|
|
4298
4407
|
active: boolean;
|
|
4299
4408
|
code?: string | undefined;
|
|
@@ -4309,7 +4418,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4309
4418
|
code?: string | undefined;
|
|
4310
4419
|
name?: string | undefined;
|
|
4311
4420
|
currency?: string | undefined;
|
|
4312
|
-
}
|
|
4421
|
+
}, params: {
|
|
4422
|
+
folder_id?: string | undefined;
|
|
4423
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4313
4424
|
id: string;
|
|
4314
4425
|
active: boolean;
|
|
4315
4426
|
code?: string | undefined;
|
|
@@ -4320,7 +4431,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4320
4431
|
debit?: number | undefined;
|
|
4321
4432
|
analytic_plan: string;
|
|
4322
4433
|
}>;
|
|
4323
|
-
getAnalyticAccountsWithMultiplePlans(
|
|
4434
|
+
getAnalyticAccountsWithMultiplePlans(params: {
|
|
4435
|
+
folder_id?: string | undefined;
|
|
4436
|
+
page?: number | undefined;
|
|
4437
|
+
size?: number | undefined;
|
|
4438
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4324
4439
|
id: string;
|
|
4325
4440
|
active: boolean;
|
|
4326
4441
|
code?: string | undefined;
|
|
@@ -4400,7 +4515,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4400
4515
|
}[] | undefined;
|
|
4401
4516
|
}[] | undefined;
|
|
4402
4517
|
}[]>;
|
|
4403
|
-
getPaymentsByInvoiceId(invoice_id: string
|
|
4518
|
+
getPaymentsByInvoiceId(invoice_id: string, params: {
|
|
4519
|
+
folder_id?: string | undefined;
|
|
4520
|
+
page?: number | undefined;
|
|
4521
|
+
size?: number | undefined;
|
|
4522
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4404
4523
|
id: string;
|
|
4405
4524
|
name: string;
|
|
4406
4525
|
currency: string;
|
|
@@ -4414,13 +4533,21 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4414
4533
|
communication?: string | undefined;
|
|
4415
4534
|
matching_number?: string | undefined;
|
|
4416
4535
|
}[]>;
|
|
4417
|
-
getJournals(
|
|
4536
|
+
getJournals(params: {
|
|
4537
|
+
folder_id?: string | undefined;
|
|
4538
|
+
page?: number | undefined;
|
|
4539
|
+
size?: number | undefined;
|
|
4540
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4418
4541
|
id: string;
|
|
4419
4542
|
code?: string | undefined;
|
|
4420
4543
|
name: string;
|
|
4421
4544
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
4422
4545
|
}[]>;
|
|
4423
|
-
getVatCodes(
|
|
4546
|
+
getVatCodes(params: {
|
|
4547
|
+
folder_id?: string | undefined;
|
|
4548
|
+
page?: number | undefined;
|
|
4549
|
+
size?: number | undefined;
|
|
4550
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4424
4551
|
id: string;
|
|
4425
4552
|
code?: string | undefined;
|
|
4426
4553
|
label: string;
|
|
@@ -4514,6 +4641,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4514
4641
|
'application/json': unknown;
|
|
4515
4642
|
};
|
|
4516
4643
|
}>;
|
|
4644
|
+
getAttachments(params: {
|
|
4645
|
+
type: "invoice" | "entry";
|
|
4646
|
+
document_id: string;
|
|
4647
|
+
folder_id?: string | undefined;
|
|
4648
|
+
page?: number | undefined;
|
|
4649
|
+
size?: number | undefined;
|
|
4650
|
+
}): import("../types/api").RequestData<{
|
|
4651
|
+
base64_string: string;
|
|
4652
|
+
}[]>;
|
|
4517
4653
|
getChartOfAccounts(params: {}): import("../types/api").RequestData<{
|
|
4518
4654
|
number: string;
|
|
4519
4655
|
name: string;
|
|
@@ -4752,6 +4888,20 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4752
4888
|
}[] | undefined;
|
|
4753
4889
|
}[] | undefined;
|
|
4754
4890
|
}>;
|
|
4891
|
+
matchEntries(body: {
|
|
4892
|
+
entries: string[];
|
|
4893
|
+
partner_id: string;
|
|
4894
|
+
}, params: {
|
|
4895
|
+
folder_id?: string | undefined;
|
|
4896
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4897
|
+
matching_number: string;
|
|
4898
|
+
balance: number;
|
|
4899
|
+
}>;
|
|
4900
|
+
getFolders(): import("../types/api").RequestData<{
|
|
4901
|
+
id: string;
|
|
4902
|
+
name: string;
|
|
4903
|
+
selected?: boolean | undefined;
|
|
4904
|
+
}[]>;
|
|
4755
4905
|
}>;
|
|
4756
4906
|
invoicing: import("../types/api").ApiFor<{
|
|
4757
4907
|
getInvoices(params: {
|
|
@@ -6427,12 +6577,20 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6427
6577
|
}[]>;
|
|
6428
6578
|
}>;
|
|
6429
6579
|
accounting: import("../types/api").ApiFor<{
|
|
6430
|
-
getAnalyticPlans(
|
|
6580
|
+
getAnalyticPlans(params: {
|
|
6581
|
+
folder_id?: string | undefined;
|
|
6582
|
+
page?: number | undefined;
|
|
6583
|
+
size?: number | undefined;
|
|
6584
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6431
6585
|
id: string;
|
|
6432
6586
|
name: string;
|
|
6433
6587
|
active?: boolean | undefined;
|
|
6434
6588
|
}[]>;
|
|
6435
|
-
getClients(
|
|
6589
|
+
getClients(params: {
|
|
6590
|
+
folder_id?: string | undefined;
|
|
6591
|
+
page?: number | undefined;
|
|
6592
|
+
size?: number | undefined;
|
|
6593
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6436
6594
|
external_reference?: string | undefined;
|
|
6437
6595
|
first_name?: string | undefined;
|
|
6438
6596
|
last_name?: string | undefined;
|
|
@@ -6540,7 +6698,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6540
6698
|
company_number?: string | undefined;
|
|
6541
6699
|
id?: string | undefined;
|
|
6542
6700
|
}>;
|
|
6543
|
-
getClient(clientId: string
|
|
6701
|
+
getClient(clientId: string, params: {
|
|
6702
|
+
folder_id?: string | undefined;
|
|
6703
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6544
6704
|
external_reference?: string | undefined;
|
|
6545
6705
|
first_name?: string | undefined;
|
|
6546
6706
|
last_name?: string | undefined;
|
|
@@ -6608,7 +6768,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6608
6768
|
postal_code?: string | undefined;
|
|
6609
6769
|
country?: string | undefined;
|
|
6610
6770
|
}[] | undefined;
|
|
6611
|
-
}
|
|
6771
|
+
}, params: {
|
|
6772
|
+
folder_id?: string | undefined;
|
|
6773
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6612
6774
|
external_reference?: string | undefined;
|
|
6613
6775
|
first_name?: string | undefined;
|
|
6614
6776
|
last_name?: string | undefined;
|
|
@@ -6644,7 +6806,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6644
6806
|
company_number?: string | undefined;
|
|
6645
6807
|
id?: string | undefined;
|
|
6646
6808
|
}>;
|
|
6647
|
-
getSuppliers(
|
|
6809
|
+
getSuppliers(params: {
|
|
6810
|
+
folder_id?: string | undefined;
|
|
6811
|
+
page?: number | undefined;
|
|
6812
|
+
size?: number | undefined;
|
|
6813
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6648
6814
|
external_reference?: string | undefined;
|
|
6649
6815
|
first_name?: string | undefined;
|
|
6650
6816
|
last_name?: string | undefined;
|
|
@@ -6752,7 +6918,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6752
6918
|
company_number?: string | undefined;
|
|
6753
6919
|
id?: string | undefined;
|
|
6754
6920
|
}>;
|
|
6755
|
-
getSupplier(supplierId: string
|
|
6921
|
+
getSupplier(supplierId: string, params: {
|
|
6922
|
+
folder_id?: string | undefined;
|
|
6923
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6756
6924
|
external_reference?: string | undefined;
|
|
6757
6925
|
first_name?: string | undefined;
|
|
6758
6926
|
last_name?: string | undefined;
|
|
@@ -6820,7 +6988,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6820
6988
|
postal_code?: string | undefined;
|
|
6821
6989
|
country?: string | undefined;
|
|
6822
6990
|
}[] | undefined;
|
|
6823
|
-
}
|
|
6991
|
+
}, params: {
|
|
6992
|
+
folder_id?: string | undefined;
|
|
6993
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6824
6994
|
external_reference?: string | undefined;
|
|
6825
6995
|
first_name?: string | undefined;
|
|
6826
6996
|
last_name?: string | undefined;
|
|
@@ -7263,7 +7433,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7263
7433
|
code: string;
|
|
7264
7434
|
name: string;
|
|
7265
7435
|
currency: string;
|
|
7266
|
-
}
|
|
7436
|
+
}, params: {
|
|
7437
|
+
folder_id?: string | undefined;
|
|
7438
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7267
7439
|
id: string;
|
|
7268
7440
|
active: boolean;
|
|
7269
7441
|
code?: string | undefined;
|
|
@@ -7273,7 +7445,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7273
7445
|
credit?: number | undefined;
|
|
7274
7446
|
debit?: number | undefined;
|
|
7275
7447
|
}>;
|
|
7276
|
-
getAnalyticAccounts(
|
|
7448
|
+
getAnalyticAccounts(params: {
|
|
7449
|
+
folder_id?: string | undefined;
|
|
7450
|
+
page?: number | undefined;
|
|
7451
|
+
size?: number | undefined;
|
|
7452
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7277
7453
|
id: string;
|
|
7278
7454
|
active: boolean;
|
|
7279
7455
|
code?: string | undefined;
|
|
@@ -7288,7 +7464,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7288
7464
|
code: string;
|
|
7289
7465
|
name: string;
|
|
7290
7466
|
currency: string;
|
|
7291
|
-
}
|
|
7467
|
+
}, params: {
|
|
7468
|
+
folder_id?: string | undefined;
|
|
7469
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7292
7470
|
id: string;
|
|
7293
7471
|
active: boolean;
|
|
7294
7472
|
code?: string | undefined;
|
|
@@ -7299,7 +7477,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7299
7477
|
debit?: number | undefined;
|
|
7300
7478
|
analytic_plan: string;
|
|
7301
7479
|
}>;
|
|
7302
|
-
getAnalyticAccount(analytic_account_id: string
|
|
7480
|
+
getAnalyticAccount(analytic_account_id: string, params: {
|
|
7481
|
+
folder_id?: string | undefined;
|
|
7482
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7303
7483
|
id: string;
|
|
7304
7484
|
active: boolean;
|
|
7305
7485
|
code?: string | undefined;
|
|
@@ -7314,7 +7494,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7314
7494
|
code?: string | undefined;
|
|
7315
7495
|
name?: string | undefined;
|
|
7316
7496
|
currency?: string | undefined;
|
|
7317
|
-
}
|
|
7497
|
+
}, params: {
|
|
7498
|
+
folder_id?: string | undefined;
|
|
7499
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7318
7500
|
id: string;
|
|
7319
7501
|
active: boolean;
|
|
7320
7502
|
code?: string | undefined;
|
|
@@ -7324,7 +7506,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7324
7506
|
credit?: number | undefined;
|
|
7325
7507
|
debit?: number | undefined;
|
|
7326
7508
|
}>;
|
|
7327
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string
|
|
7509
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
|
|
7510
|
+
folder_id?: string | undefined;
|
|
7511
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7328
7512
|
id: string;
|
|
7329
7513
|
active: boolean;
|
|
7330
7514
|
code?: string | undefined;
|
|
@@ -7340,7 +7524,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7340
7524
|
code?: string | undefined;
|
|
7341
7525
|
name?: string | undefined;
|
|
7342
7526
|
currency?: string | undefined;
|
|
7343
|
-
}
|
|
7527
|
+
}, params: {
|
|
7528
|
+
folder_id?: string | undefined;
|
|
7529
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7344
7530
|
id: string;
|
|
7345
7531
|
active: boolean;
|
|
7346
7532
|
code?: string | undefined;
|
|
@@ -7351,7 +7537,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7351
7537
|
debit?: number | undefined;
|
|
7352
7538
|
analytic_plan: string;
|
|
7353
7539
|
}>;
|
|
7354
|
-
getAnalyticAccountsWithMultiplePlans(
|
|
7540
|
+
getAnalyticAccountsWithMultiplePlans(params: {
|
|
7541
|
+
folder_id?: string | undefined;
|
|
7542
|
+
page?: number | undefined;
|
|
7543
|
+
size?: number | undefined;
|
|
7544
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7355
7545
|
id: string;
|
|
7356
7546
|
active: boolean;
|
|
7357
7547
|
code?: string | undefined;
|
|
@@ -7431,7 +7621,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7431
7621
|
}[] | undefined;
|
|
7432
7622
|
}[] | undefined;
|
|
7433
7623
|
}[]>;
|
|
7434
|
-
getPaymentsByInvoiceId(invoice_id: string
|
|
7624
|
+
getPaymentsByInvoiceId(invoice_id: string, params: {
|
|
7625
|
+
folder_id?: string | undefined;
|
|
7626
|
+
page?: number | undefined;
|
|
7627
|
+
size?: number | undefined;
|
|
7628
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7435
7629
|
id: string;
|
|
7436
7630
|
name: string;
|
|
7437
7631
|
currency: string;
|
|
@@ -7445,13 +7639,21 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7445
7639
|
communication?: string | undefined;
|
|
7446
7640
|
matching_number?: string | undefined;
|
|
7447
7641
|
}[]>;
|
|
7448
|
-
getJournals(
|
|
7642
|
+
getJournals(params: {
|
|
7643
|
+
folder_id?: string | undefined;
|
|
7644
|
+
page?: number | undefined;
|
|
7645
|
+
size?: number | undefined;
|
|
7646
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7449
7647
|
id: string;
|
|
7450
7648
|
code?: string | undefined;
|
|
7451
7649
|
name: string;
|
|
7452
7650
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
7453
7651
|
}[]>;
|
|
7454
|
-
getVatCodes(
|
|
7652
|
+
getVatCodes(params: {
|
|
7653
|
+
folder_id?: string | undefined;
|
|
7654
|
+
page?: number | undefined;
|
|
7655
|
+
size?: number | undefined;
|
|
7656
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7455
7657
|
id: string;
|
|
7456
7658
|
code?: string | undefined;
|
|
7457
7659
|
label: string;
|
|
@@ -7545,6 +7747,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7545
7747
|
'application/json': unknown;
|
|
7546
7748
|
};
|
|
7547
7749
|
}>;
|
|
7750
|
+
getAttachments(params: {
|
|
7751
|
+
type: "invoice" | "entry";
|
|
7752
|
+
document_id: string;
|
|
7753
|
+
folder_id?: string | undefined;
|
|
7754
|
+
page?: number | undefined;
|
|
7755
|
+
size?: number | undefined;
|
|
7756
|
+
}): import("../types/api").RequestData<{
|
|
7757
|
+
base64_string: string;
|
|
7758
|
+
}[]>;
|
|
7548
7759
|
getChartOfAccounts(params: {}): import("../types/api").RequestData<{
|
|
7549
7760
|
number: string;
|
|
7550
7761
|
name: string;
|
|
@@ -7783,6 +7994,20 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7783
7994
|
}[] | undefined;
|
|
7784
7995
|
}[] | undefined;
|
|
7785
7996
|
}>;
|
|
7997
|
+
matchEntries(body: {
|
|
7998
|
+
entries: string[];
|
|
7999
|
+
partner_id: string;
|
|
8000
|
+
}, params: {
|
|
8001
|
+
folder_id?: string | undefined;
|
|
8002
|
+
} | undefined): import("../types/api").RequestData<{
|
|
8003
|
+
matching_number: string;
|
|
8004
|
+
balance: number;
|
|
8005
|
+
}>;
|
|
8006
|
+
getFolders(): import("../types/api").RequestData<{
|
|
8007
|
+
id: string;
|
|
8008
|
+
name: string;
|
|
8009
|
+
selected?: boolean | undefined;
|
|
8010
|
+
}[]>;
|
|
7786
8011
|
}>;
|
|
7787
8012
|
invoicing: import("../types/api").ApiFor<{
|
|
7788
8013
|
getInvoices(params: {
|
|
@@ -9458,12 +9683,20 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9458
9683
|
}[]>;
|
|
9459
9684
|
}>;
|
|
9460
9685
|
accounting: import("../types/api").ApiFor<{
|
|
9461
|
-
getAnalyticPlans(
|
|
9686
|
+
getAnalyticPlans(params: {
|
|
9687
|
+
folder_id?: string | undefined;
|
|
9688
|
+
page?: number | undefined;
|
|
9689
|
+
size?: number | undefined;
|
|
9690
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9462
9691
|
id: string;
|
|
9463
9692
|
name: string;
|
|
9464
9693
|
active?: boolean | undefined;
|
|
9465
9694
|
}[]>;
|
|
9466
|
-
getClients(
|
|
9695
|
+
getClients(params: {
|
|
9696
|
+
folder_id?: string | undefined;
|
|
9697
|
+
page?: number | undefined;
|
|
9698
|
+
size?: number | undefined;
|
|
9699
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9467
9700
|
external_reference?: string | undefined;
|
|
9468
9701
|
first_name?: string | undefined;
|
|
9469
9702
|
last_name?: string | undefined;
|
|
@@ -9571,7 +9804,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9571
9804
|
company_number?: string | undefined;
|
|
9572
9805
|
id?: string | undefined;
|
|
9573
9806
|
}>;
|
|
9574
|
-
getClient(clientId: string
|
|
9807
|
+
getClient(clientId: string, params: {
|
|
9808
|
+
folder_id?: string | undefined;
|
|
9809
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9575
9810
|
external_reference?: string | undefined;
|
|
9576
9811
|
first_name?: string | undefined;
|
|
9577
9812
|
last_name?: string | undefined;
|
|
@@ -9639,7 +9874,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9639
9874
|
postal_code?: string | undefined;
|
|
9640
9875
|
country?: string | undefined;
|
|
9641
9876
|
}[] | undefined;
|
|
9642
|
-
}
|
|
9877
|
+
}, params: {
|
|
9878
|
+
folder_id?: string | undefined;
|
|
9879
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9643
9880
|
external_reference?: string | undefined;
|
|
9644
9881
|
first_name?: string | undefined;
|
|
9645
9882
|
last_name?: string | undefined;
|
|
@@ -9675,7 +9912,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9675
9912
|
company_number?: string | undefined;
|
|
9676
9913
|
id?: string | undefined;
|
|
9677
9914
|
}>;
|
|
9678
|
-
getSuppliers(
|
|
9915
|
+
getSuppliers(params: {
|
|
9916
|
+
folder_id?: string | undefined;
|
|
9917
|
+
page?: number | undefined;
|
|
9918
|
+
size?: number | undefined;
|
|
9919
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9679
9920
|
external_reference?: string | undefined;
|
|
9680
9921
|
first_name?: string | undefined;
|
|
9681
9922
|
last_name?: string | undefined;
|
|
@@ -9783,7 +10024,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9783
10024
|
company_number?: string | undefined;
|
|
9784
10025
|
id?: string | undefined;
|
|
9785
10026
|
}>;
|
|
9786
|
-
getSupplier(supplierId: string
|
|
10027
|
+
getSupplier(supplierId: string, params: {
|
|
10028
|
+
folder_id?: string | undefined;
|
|
10029
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9787
10030
|
external_reference?: string | undefined;
|
|
9788
10031
|
first_name?: string | undefined;
|
|
9789
10032
|
last_name?: string | undefined;
|
|
@@ -9851,7 +10094,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9851
10094
|
postal_code?: string | undefined;
|
|
9852
10095
|
country?: string | undefined;
|
|
9853
10096
|
}[] | undefined;
|
|
9854
|
-
}
|
|
10097
|
+
}, params: {
|
|
10098
|
+
folder_id?: string | undefined;
|
|
10099
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9855
10100
|
external_reference?: string | undefined;
|
|
9856
10101
|
first_name?: string | undefined;
|
|
9857
10102
|
last_name?: string | undefined;
|
|
@@ -10294,7 +10539,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10294
10539
|
code: string;
|
|
10295
10540
|
name: string;
|
|
10296
10541
|
currency: string;
|
|
10297
|
-
}
|
|
10542
|
+
}, params: {
|
|
10543
|
+
folder_id?: string | undefined;
|
|
10544
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10298
10545
|
id: string;
|
|
10299
10546
|
active: boolean;
|
|
10300
10547
|
code?: string | undefined;
|
|
@@ -10304,7 +10551,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10304
10551
|
credit?: number | undefined;
|
|
10305
10552
|
debit?: number | undefined;
|
|
10306
10553
|
}>;
|
|
10307
|
-
getAnalyticAccounts(
|
|
10554
|
+
getAnalyticAccounts(params: {
|
|
10555
|
+
folder_id?: string | undefined;
|
|
10556
|
+
page?: number | undefined;
|
|
10557
|
+
size?: number | undefined;
|
|
10558
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10308
10559
|
id: string;
|
|
10309
10560
|
active: boolean;
|
|
10310
10561
|
code?: string | undefined;
|
|
@@ -10319,7 +10570,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10319
10570
|
code: string;
|
|
10320
10571
|
name: string;
|
|
10321
10572
|
currency: string;
|
|
10322
|
-
}
|
|
10573
|
+
}, params: {
|
|
10574
|
+
folder_id?: string | undefined;
|
|
10575
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10323
10576
|
id: string;
|
|
10324
10577
|
active: boolean;
|
|
10325
10578
|
code?: string | undefined;
|
|
@@ -10330,7 +10583,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10330
10583
|
debit?: number | undefined;
|
|
10331
10584
|
analytic_plan: string;
|
|
10332
10585
|
}>;
|
|
10333
|
-
getAnalyticAccount(analytic_account_id: string
|
|
10586
|
+
getAnalyticAccount(analytic_account_id: string, params: {
|
|
10587
|
+
folder_id?: string | undefined;
|
|
10588
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10334
10589
|
id: string;
|
|
10335
10590
|
active: boolean;
|
|
10336
10591
|
code?: string | undefined;
|
|
@@ -10345,7 +10600,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10345
10600
|
code?: string | undefined;
|
|
10346
10601
|
name?: string | undefined;
|
|
10347
10602
|
currency?: string | undefined;
|
|
10348
|
-
}
|
|
10603
|
+
}, params: {
|
|
10604
|
+
folder_id?: string | undefined;
|
|
10605
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10349
10606
|
id: string;
|
|
10350
10607
|
active: boolean;
|
|
10351
10608
|
code?: string | undefined;
|
|
@@ -10355,7 +10612,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10355
10612
|
credit?: number | undefined;
|
|
10356
10613
|
debit?: number | undefined;
|
|
10357
10614
|
}>;
|
|
10358
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string
|
|
10615
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
|
|
10616
|
+
folder_id?: string | undefined;
|
|
10617
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10359
10618
|
id: string;
|
|
10360
10619
|
active: boolean;
|
|
10361
10620
|
code?: string | undefined;
|
|
@@ -10371,7 +10630,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10371
10630
|
code?: string | undefined;
|
|
10372
10631
|
name?: string | undefined;
|
|
10373
10632
|
currency?: string | undefined;
|
|
10374
|
-
}
|
|
10633
|
+
}, params: {
|
|
10634
|
+
folder_id?: string | undefined;
|
|
10635
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10375
10636
|
id: string;
|
|
10376
10637
|
active: boolean;
|
|
10377
10638
|
code?: string | undefined;
|
|
@@ -10382,7 +10643,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10382
10643
|
debit?: number | undefined;
|
|
10383
10644
|
analytic_plan: string;
|
|
10384
10645
|
}>;
|
|
10385
|
-
getAnalyticAccountsWithMultiplePlans(
|
|
10646
|
+
getAnalyticAccountsWithMultiplePlans(params: {
|
|
10647
|
+
folder_id?: string | undefined;
|
|
10648
|
+
page?: number | undefined;
|
|
10649
|
+
size?: number | undefined;
|
|
10650
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10386
10651
|
id: string;
|
|
10387
10652
|
active: boolean;
|
|
10388
10653
|
code?: string | undefined;
|
|
@@ -10462,7 +10727,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10462
10727
|
}[] | undefined;
|
|
10463
10728
|
}[] | undefined;
|
|
10464
10729
|
}[]>;
|
|
10465
|
-
getPaymentsByInvoiceId(invoice_id: string
|
|
10730
|
+
getPaymentsByInvoiceId(invoice_id: string, params: {
|
|
10731
|
+
folder_id?: string | undefined;
|
|
10732
|
+
page?: number | undefined;
|
|
10733
|
+
size?: number | undefined;
|
|
10734
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10466
10735
|
id: string;
|
|
10467
10736
|
name: string;
|
|
10468
10737
|
currency: string;
|
|
@@ -10476,13 +10745,21 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10476
10745
|
communication?: string | undefined;
|
|
10477
10746
|
matching_number?: string | undefined;
|
|
10478
10747
|
}[]>;
|
|
10479
|
-
getJournals(
|
|
10748
|
+
getJournals(params: {
|
|
10749
|
+
folder_id?: string | undefined;
|
|
10750
|
+
page?: number | undefined;
|
|
10751
|
+
size?: number | undefined;
|
|
10752
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10480
10753
|
id: string;
|
|
10481
10754
|
code?: string | undefined;
|
|
10482
10755
|
name: string;
|
|
10483
10756
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
10484
10757
|
}[]>;
|
|
10485
|
-
getVatCodes(
|
|
10758
|
+
getVatCodes(params: {
|
|
10759
|
+
folder_id?: string | undefined;
|
|
10760
|
+
page?: number | undefined;
|
|
10761
|
+
size?: number | undefined;
|
|
10762
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10486
10763
|
id: string;
|
|
10487
10764
|
code?: string | undefined;
|
|
10488
10765
|
label: string;
|
|
@@ -10576,6 +10853,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10576
10853
|
'application/json': unknown;
|
|
10577
10854
|
};
|
|
10578
10855
|
}>;
|
|
10856
|
+
getAttachments(params: {
|
|
10857
|
+
type: "invoice" | "entry";
|
|
10858
|
+
document_id: string;
|
|
10859
|
+
folder_id?: string | undefined;
|
|
10860
|
+
page?: number | undefined;
|
|
10861
|
+
size?: number | undefined;
|
|
10862
|
+
}): import("../types/api").RequestData<{
|
|
10863
|
+
base64_string: string;
|
|
10864
|
+
}[]>;
|
|
10579
10865
|
getChartOfAccounts(params: {}): import("../types/api").RequestData<{
|
|
10580
10866
|
number: string;
|
|
10581
10867
|
name: string;
|
|
@@ -10814,6 +11100,20 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10814
11100
|
}[] | undefined;
|
|
10815
11101
|
}[] | undefined;
|
|
10816
11102
|
}>;
|
|
11103
|
+
matchEntries(body: {
|
|
11104
|
+
entries: string[];
|
|
11105
|
+
partner_id: string;
|
|
11106
|
+
}, params: {
|
|
11107
|
+
folder_id?: string | undefined;
|
|
11108
|
+
} | undefined): import("../types/api").RequestData<{
|
|
11109
|
+
matching_number: string;
|
|
11110
|
+
balance: number;
|
|
11111
|
+
}>;
|
|
11112
|
+
getFolders(): import("../types/api").RequestData<{
|
|
11113
|
+
id: string;
|
|
11114
|
+
name: string;
|
|
11115
|
+
selected?: boolean | undefined;
|
|
11116
|
+
}[]>;
|
|
10817
11117
|
}>;
|
|
10818
11118
|
invoicing: import("../types/api").ApiFor<{
|
|
10819
11119
|
getInvoices(params: {
|
|
@@ -12489,12 +12789,20 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12489
12789
|
}[]>;
|
|
12490
12790
|
}>;
|
|
12491
12791
|
accounting: import("../types/api").ApiFor<{
|
|
12492
|
-
getAnalyticPlans(
|
|
12792
|
+
getAnalyticPlans(params: {
|
|
12793
|
+
folder_id?: string | undefined;
|
|
12794
|
+
page?: number | undefined;
|
|
12795
|
+
size?: number | undefined;
|
|
12796
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12493
12797
|
id: string;
|
|
12494
12798
|
name: string;
|
|
12495
12799
|
active?: boolean | undefined;
|
|
12496
12800
|
}[]>;
|
|
12497
|
-
getClients(
|
|
12801
|
+
getClients(params: {
|
|
12802
|
+
folder_id?: string | undefined;
|
|
12803
|
+
page?: number | undefined;
|
|
12804
|
+
size?: number | undefined;
|
|
12805
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12498
12806
|
external_reference?: string | undefined;
|
|
12499
12807
|
first_name?: string | undefined;
|
|
12500
12808
|
last_name?: string | undefined;
|
|
@@ -12602,7 +12910,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12602
12910
|
company_number?: string | undefined;
|
|
12603
12911
|
id?: string | undefined;
|
|
12604
12912
|
}>;
|
|
12605
|
-
getClient(clientId: string
|
|
12913
|
+
getClient(clientId: string, params: {
|
|
12914
|
+
folder_id?: string | undefined;
|
|
12915
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12606
12916
|
external_reference?: string | undefined;
|
|
12607
12917
|
first_name?: string | undefined;
|
|
12608
12918
|
last_name?: string | undefined;
|
|
@@ -12670,7 +12980,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12670
12980
|
postal_code?: string | undefined;
|
|
12671
12981
|
country?: string | undefined;
|
|
12672
12982
|
}[] | undefined;
|
|
12673
|
-
}
|
|
12983
|
+
}, params: {
|
|
12984
|
+
folder_id?: string | undefined;
|
|
12985
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12674
12986
|
external_reference?: string | undefined;
|
|
12675
12987
|
first_name?: string | undefined;
|
|
12676
12988
|
last_name?: string | undefined;
|
|
@@ -12706,7 +13018,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12706
13018
|
company_number?: string | undefined;
|
|
12707
13019
|
id?: string | undefined;
|
|
12708
13020
|
}>;
|
|
12709
|
-
getSuppliers(
|
|
13021
|
+
getSuppliers(params: {
|
|
13022
|
+
folder_id?: string | undefined;
|
|
13023
|
+
page?: number | undefined;
|
|
13024
|
+
size?: number | undefined;
|
|
13025
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12710
13026
|
external_reference?: string | undefined;
|
|
12711
13027
|
first_name?: string | undefined;
|
|
12712
13028
|
last_name?: string | undefined;
|
|
@@ -12814,7 +13130,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12814
13130
|
company_number?: string | undefined;
|
|
12815
13131
|
id?: string | undefined;
|
|
12816
13132
|
}>;
|
|
12817
|
-
getSupplier(supplierId: string
|
|
13133
|
+
getSupplier(supplierId: string, params: {
|
|
13134
|
+
folder_id?: string | undefined;
|
|
13135
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12818
13136
|
external_reference?: string | undefined;
|
|
12819
13137
|
first_name?: string | undefined;
|
|
12820
13138
|
last_name?: string | undefined;
|
|
@@ -12882,7 +13200,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12882
13200
|
postal_code?: string | undefined;
|
|
12883
13201
|
country?: string | undefined;
|
|
12884
13202
|
}[] | undefined;
|
|
12885
|
-
}
|
|
13203
|
+
}, params: {
|
|
13204
|
+
folder_id?: string | undefined;
|
|
13205
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12886
13206
|
external_reference?: string | undefined;
|
|
12887
13207
|
first_name?: string | undefined;
|
|
12888
13208
|
last_name?: string | undefined;
|
|
@@ -13325,7 +13645,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13325
13645
|
code: string;
|
|
13326
13646
|
name: string;
|
|
13327
13647
|
currency: string;
|
|
13328
|
-
}
|
|
13648
|
+
}, params: {
|
|
13649
|
+
folder_id?: string | undefined;
|
|
13650
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13329
13651
|
id: string;
|
|
13330
13652
|
active: boolean;
|
|
13331
13653
|
code?: string | undefined;
|
|
@@ -13335,7 +13657,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13335
13657
|
credit?: number | undefined;
|
|
13336
13658
|
debit?: number | undefined;
|
|
13337
13659
|
}>;
|
|
13338
|
-
getAnalyticAccounts(
|
|
13660
|
+
getAnalyticAccounts(params: {
|
|
13661
|
+
folder_id?: string | undefined;
|
|
13662
|
+
page?: number | undefined;
|
|
13663
|
+
size?: number | undefined;
|
|
13664
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13339
13665
|
id: string;
|
|
13340
13666
|
active: boolean;
|
|
13341
13667
|
code?: string | undefined;
|
|
@@ -13350,7 +13676,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13350
13676
|
code: string;
|
|
13351
13677
|
name: string;
|
|
13352
13678
|
currency: string;
|
|
13353
|
-
}
|
|
13679
|
+
}, params: {
|
|
13680
|
+
folder_id?: string | undefined;
|
|
13681
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13354
13682
|
id: string;
|
|
13355
13683
|
active: boolean;
|
|
13356
13684
|
code?: string | undefined;
|
|
@@ -13361,7 +13689,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13361
13689
|
debit?: number | undefined;
|
|
13362
13690
|
analytic_plan: string;
|
|
13363
13691
|
}>;
|
|
13364
|
-
getAnalyticAccount(analytic_account_id: string
|
|
13692
|
+
getAnalyticAccount(analytic_account_id: string, params: {
|
|
13693
|
+
folder_id?: string | undefined;
|
|
13694
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13365
13695
|
id: string;
|
|
13366
13696
|
active: boolean;
|
|
13367
13697
|
code?: string | undefined;
|
|
@@ -13376,7 +13706,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13376
13706
|
code?: string | undefined;
|
|
13377
13707
|
name?: string | undefined;
|
|
13378
13708
|
currency?: string | undefined;
|
|
13379
|
-
}
|
|
13709
|
+
}, params: {
|
|
13710
|
+
folder_id?: string | undefined;
|
|
13711
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13380
13712
|
id: string;
|
|
13381
13713
|
active: boolean;
|
|
13382
13714
|
code?: string | undefined;
|
|
@@ -13386,7 +13718,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13386
13718
|
credit?: number | undefined;
|
|
13387
13719
|
debit?: number | undefined;
|
|
13388
13720
|
}>;
|
|
13389
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string
|
|
13721
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
|
|
13722
|
+
folder_id?: string | undefined;
|
|
13723
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13390
13724
|
id: string;
|
|
13391
13725
|
active: boolean;
|
|
13392
13726
|
code?: string | undefined;
|
|
@@ -13402,7 +13736,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13402
13736
|
code?: string | undefined;
|
|
13403
13737
|
name?: string | undefined;
|
|
13404
13738
|
currency?: string | undefined;
|
|
13405
|
-
}
|
|
13739
|
+
}, params: {
|
|
13740
|
+
folder_id?: string | undefined;
|
|
13741
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13406
13742
|
id: string;
|
|
13407
13743
|
active: boolean;
|
|
13408
13744
|
code?: string | undefined;
|
|
@@ -13413,7 +13749,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13413
13749
|
debit?: number | undefined;
|
|
13414
13750
|
analytic_plan: string;
|
|
13415
13751
|
}>;
|
|
13416
|
-
getAnalyticAccountsWithMultiplePlans(
|
|
13752
|
+
getAnalyticAccountsWithMultiplePlans(params: {
|
|
13753
|
+
folder_id?: string | undefined;
|
|
13754
|
+
page?: number | undefined;
|
|
13755
|
+
size?: number | undefined;
|
|
13756
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13417
13757
|
id: string;
|
|
13418
13758
|
active: boolean;
|
|
13419
13759
|
code?: string | undefined;
|
|
@@ -13493,7 +13833,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13493
13833
|
}[] | undefined;
|
|
13494
13834
|
}[] | undefined;
|
|
13495
13835
|
}[]>;
|
|
13496
|
-
getPaymentsByInvoiceId(invoice_id: string
|
|
13836
|
+
getPaymentsByInvoiceId(invoice_id: string, params: {
|
|
13837
|
+
folder_id?: string | undefined;
|
|
13838
|
+
page?: number | undefined;
|
|
13839
|
+
size?: number | undefined;
|
|
13840
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13497
13841
|
id: string;
|
|
13498
13842
|
name: string;
|
|
13499
13843
|
currency: string;
|
|
@@ -13507,13 +13851,21 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13507
13851
|
communication?: string | undefined;
|
|
13508
13852
|
matching_number?: string | undefined;
|
|
13509
13853
|
}[]>;
|
|
13510
|
-
getJournals(
|
|
13854
|
+
getJournals(params: {
|
|
13855
|
+
folder_id?: string | undefined;
|
|
13856
|
+
page?: number | undefined;
|
|
13857
|
+
size?: number | undefined;
|
|
13858
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13511
13859
|
id: string;
|
|
13512
13860
|
code?: string | undefined;
|
|
13513
13861
|
name: string;
|
|
13514
13862
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
13515
13863
|
}[]>;
|
|
13516
|
-
getVatCodes(
|
|
13864
|
+
getVatCodes(params: {
|
|
13865
|
+
folder_id?: string | undefined;
|
|
13866
|
+
page?: number | undefined;
|
|
13867
|
+
size?: number | undefined;
|
|
13868
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13517
13869
|
id: string;
|
|
13518
13870
|
code?: string | undefined;
|
|
13519
13871
|
label: string;
|
|
@@ -13607,6 +13959,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13607
13959
|
'application/json': unknown;
|
|
13608
13960
|
};
|
|
13609
13961
|
}>;
|
|
13962
|
+
getAttachments(params: {
|
|
13963
|
+
type: "invoice" | "entry";
|
|
13964
|
+
document_id: string;
|
|
13965
|
+
folder_id?: string | undefined;
|
|
13966
|
+
page?: number | undefined;
|
|
13967
|
+
size?: number | undefined;
|
|
13968
|
+
}): import("../types/api").RequestData<{
|
|
13969
|
+
base64_string: string;
|
|
13970
|
+
}[]>;
|
|
13610
13971
|
getChartOfAccounts(params: {}): import("../types/api").RequestData<{
|
|
13611
13972
|
number: string;
|
|
13612
13973
|
name: string;
|
|
@@ -13845,6 +14206,20 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13845
14206
|
}[] | undefined;
|
|
13846
14207
|
}[] | undefined;
|
|
13847
14208
|
}>;
|
|
14209
|
+
matchEntries(body: {
|
|
14210
|
+
entries: string[];
|
|
14211
|
+
partner_id: string;
|
|
14212
|
+
}, params: {
|
|
14213
|
+
folder_id?: string | undefined;
|
|
14214
|
+
} | undefined): import("../types/api").RequestData<{
|
|
14215
|
+
matching_number: string;
|
|
14216
|
+
balance: number;
|
|
14217
|
+
}>;
|
|
14218
|
+
getFolders(): import("../types/api").RequestData<{
|
|
14219
|
+
id: string;
|
|
14220
|
+
name: string;
|
|
14221
|
+
selected?: boolean | undefined;
|
|
14222
|
+
}[]>;
|
|
13848
14223
|
}>;
|
|
13849
14224
|
invoicing: import("../types/api").ApiFor<{
|
|
13850
14225
|
getInvoices(params: {
|