@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.
@@ -344,12 +344,20 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
344
344
  }[]>;
345
345
  }>;
346
346
  accounting: import("../types/api").ApiFor<{
347
- getAnalyticPlans(): import("../types/api").RequestData<{
347
+ getAnalyticPlans(params: {
348
+ folder_id?: string | undefined;
349
+ page?: number | undefined;
350
+ size?: number | undefined;
351
+ } | undefined): import("../types/api").RequestData<{
348
352
  id: string;
349
353
  name: string;
350
354
  active?: boolean | undefined;
351
355
  }[]>;
352
- getClients(): import("../types/api").RequestData<{
356
+ getClients(params: {
357
+ folder_id?: string | undefined;
358
+ page?: number | undefined;
359
+ size?: number | undefined;
360
+ } | undefined): import("../types/api").RequestData<{
353
361
  external_reference?: string | undefined;
354
362
  first_name?: string | undefined;
355
363
  last_name?: string | undefined;
@@ -457,7 +465,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
457
465
  company_number?: string | undefined;
458
466
  id?: string | undefined;
459
467
  }>;
460
- getClient(clientId: string): import("../types/api").RequestData<{
468
+ getClient(clientId: string, params: {
469
+ folder_id?: string | undefined;
470
+ } | undefined): import("../types/api").RequestData<{
461
471
  external_reference?: string | undefined;
462
472
  first_name?: string | undefined;
463
473
  last_name?: string | undefined;
@@ -525,7 +535,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
525
535
  postal_code?: string | undefined;
526
536
  country?: string | undefined;
527
537
  }[] | undefined;
528
- }): import("../types/api").RequestData<{
538
+ }, params: {
539
+ folder_id?: string | undefined;
540
+ } | undefined): import("../types/api").RequestData<{
529
541
  external_reference?: string | undefined;
530
542
  first_name?: string | undefined;
531
543
  last_name?: string | undefined;
@@ -561,7 +573,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
561
573
  company_number?: string | undefined;
562
574
  id?: string | undefined;
563
575
  }>;
564
- getSuppliers(): import("../types/api").RequestData<{
576
+ getSuppliers(params: {
577
+ folder_id?: string | undefined;
578
+ page?: number | undefined;
579
+ size?: number | undefined;
580
+ } | undefined): import("../types/api").RequestData<{
565
581
  external_reference?: string | undefined;
566
582
  first_name?: string | undefined;
567
583
  last_name?: string | undefined;
@@ -669,7 +685,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
669
685
  company_number?: string | undefined;
670
686
  id?: string | undefined;
671
687
  }>;
672
- getSupplier(supplierId: string): import("../types/api").RequestData<{
688
+ getSupplier(supplierId: string, params: {
689
+ folder_id?: string | undefined;
690
+ } | undefined): import("../types/api").RequestData<{
673
691
  external_reference?: string | undefined;
674
692
  first_name?: string | undefined;
675
693
  last_name?: string | undefined;
@@ -737,7 +755,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
737
755
  postal_code?: string | undefined;
738
756
  country?: string | undefined;
739
757
  }[] | undefined;
740
- }): import("../types/api").RequestData<{
758
+ }, params: {
759
+ folder_id?: string | undefined;
760
+ } | undefined): import("../types/api").RequestData<{
741
761
  external_reference?: string | undefined;
742
762
  first_name?: string | undefined;
743
763
  last_name?: string | undefined;
@@ -1180,7 +1200,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1180
1200
  code: string;
1181
1201
  name: string;
1182
1202
  currency: string;
1183
- }): import("../types/api").RequestData<{
1203
+ }, params: {
1204
+ folder_id?: string | undefined;
1205
+ } | undefined): import("../types/api").RequestData<{
1184
1206
  id: string;
1185
1207
  active: boolean;
1186
1208
  code?: string | undefined;
@@ -1190,7 +1212,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1190
1212
  credit?: number | undefined;
1191
1213
  debit?: number | undefined;
1192
1214
  }>;
1193
- getAnalyticAccounts(): import("../types/api").RequestData<{
1215
+ getAnalyticAccounts(params: {
1216
+ folder_id?: string | undefined;
1217
+ page?: number | undefined;
1218
+ size?: number | undefined;
1219
+ } | undefined): import("../types/api").RequestData<{
1194
1220
  id: string;
1195
1221
  active: boolean;
1196
1222
  code?: string | undefined;
@@ -1205,7 +1231,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1205
1231
  code: string;
1206
1232
  name: string;
1207
1233
  currency: string;
1208
- }): import("../types/api").RequestData<{
1234
+ }, params: {
1235
+ folder_id?: string | undefined;
1236
+ } | undefined): import("../types/api").RequestData<{
1209
1237
  id: string;
1210
1238
  active: boolean;
1211
1239
  code?: string | undefined;
@@ -1216,7 +1244,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1216
1244
  debit?: number | undefined;
1217
1245
  analytic_plan: string;
1218
1246
  }>;
1219
- getAnalyticAccount(analytic_account_id: string): import("../types/api").RequestData<{
1247
+ getAnalyticAccount(analytic_account_id: string, params: {
1248
+ folder_id?: string | undefined;
1249
+ } | undefined): import("../types/api").RequestData<{
1220
1250
  id: string;
1221
1251
  active: boolean;
1222
1252
  code?: string | undefined;
@@ -1231,7 +1261,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1231
1261
  code?: string | undefined;
1232
1262
  name?: string | undefined;
1233
1263
  currency?: string | undefined;
1234
- }): import("../types/api").RequestData<{
1264
+ }, params: {
1265
+ folder_id?: string | undefined;
1266
+ } | undefined): import("../types/api").RequestData<{
1235
1267
  id: string;
1236
1268
  active: boolean;
1237
1269
  code?: string | undefined;
@@ -1241,7 +1273,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1241
1273
  credit?: number | undefined;
1242
1274
  debit?: number | undefined;
1243
1275
  }>;
1244
- getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string): import("../types/api").RequestData<{
1276
+ getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
1277
+ folder_id?: string | undefined;
1278
+ } | undefined): import("../types/api").RequestData<{
1245
1279
  id: string;
1246
1280
  active: boolean;
1247
1281
  code?: string | undefined;
@@ -1257,7 +1291,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1257
1291
  code?: string | undefined;
1258
1292
  name?: string | undefined;
1259
1293
  currency?: string | undefined;
1260
- }): import("../types/api").RequestData<{
1294
+ }, params: {
1295
+ folder_id?: string | undefined;
1296
+ } | undefined): import("../types/api").RequestData<{
1261
1297
  id: string;
1262
1298
  active: boolean;
1263
1299
  code?: string | undefined;
@@ -1268,7 +1304,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1268
1304
  debit?: number | undefined;
1269
1305
  analytic_plan: string;
1270
1306
  }>;
1271
- getAnalyticAccountsWithMultiplePlans(): import("../types/api").RequestData<{
1307
+ getAnalyticAccountsWithMultiplePlans(params: {
1308
+ folder_id?: string | undefined;
1309
+ page?: number | undefined;
1310
+ size?: number | undefined;
1311
+ } | undefined): import("../types/api").RequestData<{
1272
1312
  id: string;
1273
1313
  active: boolean;
1274
1314
  code?: string | undefined;
@@ -1348,7 +1388,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1348
1388
  }[] | undefined;
1349
1389
  }[] | undefined;
1350
1390
  }[]>;
1351
- getPaymentsByInvoiceId(invoice_id: string): import("../types/api").RequestData<{
1391
+ getPaymentsByInvoiceId(invoice_id: string, params: {
1392
+ folder_id?: string | undefined;
1393
+ page?: number | undefined;
1394
+ size?: number | undefined;
1395
+ } | undefined): import("../types/api").RequestData<{
1352
1396
  id: string;
1353
1397
  name: string;
1354
1398
  currency: string;
@@ -1362,13 +1406,21 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1362
1406
  communication?: string | undefined;
1363
1407
  matching_number?: string | undefined;
1364
1408
  }[]>;
1365
- getJournals(): import("../types/api").RequestData<{
1409
+ getJournals(params: {
1410
+ folder_id?: string | undefined;
1411
+ page?: number | undefined;
1412
+ size?: number | undefined;
1413
+ } | undefined): import("../types/api").RequestData<{
1366
1414
  id: string;
1367
1415
  code?: string | undefined;
1368
1416
  name: string;
1369
1417
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1370
1418
  }[]>;
1371
- getVatCodes(): import("../types/api").RequestData<{
1419
+ getVatCodes(params: {
1420
+ folder_id?: string | undefined;
1421
+ page?: number | undefined;
1422
+ size?: number | undefined;
1423
+ } | undefined): import("../types/api").RequestData<{
1372
1424
  id: string;
1373
1425
  code?: string | undefined;
1374
1426
  label: string;
@@ -1462,6 +1514,15 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1462
1514
  'application/json': unknown;
1463
1515
  };
1464
1516
  }>;
1517
+ getAttachments(params: {
1518
+ type: "invoice" | "entry";
1519
+ document_id: string;
1520
+ folder_id?: string | undefined;
1521
+ page?: number | undefined;
1522
+ size?: number | undefined;
1523
+ }): import("../types/api").RequestData<{
1524
+ base64_string: string;
1525
+ }[]>;
1465
1526
  getChartOfAccounts(params: {}): import("../types/api").RequestData<{
1466
1527
  number: string;
1467
1528
  name: string;
@@ -1700,6 +1761,20 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1700
1761
  }[] | undefined;
1701
1762
  }[] | undefined;
1702
1763
  }>;
1764
+ matchEntries(body: {
1765
+ entries: string[];
1766
+ partner_id: string;
1767
+ }, params: {
1768
+ folder_id?: string | undefined;
1769
+ } | undefined): import("../types/api").RequestData<{
1770
+ matching_number: string;
1771
+ balance: number;
1772
+ }>;
1773
+ getFolders(): import("../types/api").RequestData<{
1774
+ id: string;
1775
+ name: string;
1776
+ selected?: boolean | undefined;
1777
+ }[]>;
1703
1778
  }>;
1704
1779
  invoicing: import("../types/api").ApiFor<{
1705
1780
  getInvoices(params: {