@chift/chift-nodejs 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/.github/workflows/ci.yml +38 -38
  2. package/CHANGELOG.md +18 -0
  3. package/dist/src/modules/accounting.d.ts +6 -6
  4. package/dist/src/modules/accounting.js +17 -11
  5. package/dist/src/modules/api.d.ts +1673 -27960
  6. package/dist/src/modules/consumer.d.ts +320 -46
  7. package/dist/src/modules/consumer.js +10 -0
  8. package/dist/src/modules/consumers.d.ts +1650 -260
  9. package/dist/src/modules/ecommerce.d.ts +8 -0
  10. package/dist/src/modules/ecommerce.js +28 -0
  11. package/dist/src/modules/flow.js +1 -1
  12. package/dist/src/modules/pos.d.ts +3 -1
  13. package/dist/src/modules/pos.js +7 -0
  14. package/dist/src/modules/sync.d.ts +1321 -209
  15. package/dist/src/modules/syncs.d.ts +8 -27677
  16. package/dist/src/modules/syncs.js +10 -0
  17. package/dist/test/modules/accounting.test.js +0 -11
  18. package/dist/test/modules/ecommerce.test.js +34 -7
  19. package/dist/test/modules/pos.test.js +10 -5
  20. package/package.json +2 -2
  21. package/src/modules/accounting.ts +25 -13
  22. package/src/modules/api.ts +2 -2
  23. package/src/modules/consumer.ts +21 -0
  24. package/src/modules/ecommerce.ts +52 -0
  25. package/src/modules/flow.ts +1 -1
  26. package/src/modules/pos.ts +15 -1
  27. package/src/modules/syncs.ts +32 -1
  28. package/src/types/public-api/schema.d.ts +3624 -2621
  29. package/test/modules/accounting.test.ts +0 -14
  30. package/test/modules/ecommerce.test.ts +34 -3
  31. package/test/modules/pos.test.ts +11 -5
  32. package/.eslintcache +0 -1
  33. package/coverage/clover.xml +0 -1645
  34. package/coverage/coverage-final.json +0 -19
  35. package/coverage/lcov-report/base.css +0 -224
  36. package/coverage/lcov-report/block-navigation.js +0 -87
  37. package/coverage/lcov-report/favicon.png +0 -0
  38. package/coverage/lcov-report/index.html +0 -146
  39. package/coverage/lcov-report/prettify.css +0 -1
  40. package/coverage/lcov-report/prettify.js +0 -2
  41. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  42. package/coverage/lcov-report/sorter.js +0 -196
  43. package/coverage/lcov-report/src/helpers/index.html +0 -131
  44. package/coverage/lcov-report/src/helpers/openapi.ts.html +0 -151
  45. package/coverage/lcov-report/src/helpers/settings.ts.html +0 -94
  46. package/coverage/lcov-report/src/index.html +0 -116
  47. package/coverage/lcov-report/src/index.ts.html +0 -88
  48. package/coverage/lcov-report/src/modules/accounting.ts.html +0 -1156
  49. package/coverage/lcov-report/src/modules/api.ts.html +0 -190
  50. package/coverage/lcov-report/src/modules/consumer.ts.html +0 -616
  51. package/coverage/lcov-report/src/modules/consumers.ts.html +0 -331
  52. package/coverage/lcov-report/src/modules/custom.ts.html +0 -193
  53. package/coverage/lcov-report/src/modules/datastores.ts.html +0 -142
  54. package/coverage/lcov-report/src/modules/ecommerce.ts.html +0 -331
  55. package/coverage/lcov-report/src/modules/flow.ts.html +0 -589
  56. package/coverage/lcov-report/src/modules/index.html +0 -326
  57. package/coverage/lcov-report/src/modules/integrations.ts.html +0 -151
  58. package/coverage/lcov-report/src/modules/internalApi.ts.html +0 -586
  59. package/coverage/lcov-report/src/modules/invoicing.ts.html +0 -391
  60. package/coverage/lcov-report/src/modules/pos.ts.html +0 -421
  61. package/coverage/lcov-report/src/modules/sync.ts.html +0 -316
  62. package/coverage/lcov-report/src/modules/syncs.ts.html +0 -169
  63. package/coverage/lcov-report/src/modules/webhooks.ts.html +0 -343
  64. package/coverage/lcov.info +0 -1976
  65. package/dist/test/modules/flow.test.d.ts +0 -1
  66. package/dist/test/modules/flow.test.js +0 -69
@@ -26,6 +26,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
26
26
  api: string;
27
27
  data?: Record<string, never> | undefined;
28
28
  status: "active" | "inactive";
29
+ agent?: {
30
+ status: "up" | "down";
31
+ } | undefined;
29
32
  }[]>;
30
33
  createConnection: (body?: {
31
34
  integrationid?: number | undefined;
@@ -50,6 +53,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
50
53
  deleteConnection: (connectionId: string) => Promise<{
51
54
  content: never;
52
55
  }>;
56
+ enableFlow: (syncId: string, flowId: string, body: {
57
+ integrationids?: string[] | undefined;
58
+ triggerid?: string | undefined;
59
+ cronschedule?: string | undefined;
60
+ }) => Promise<import("../types/sync").SimpleResponseModel>;
53
61
  getSyncUrl: (body: {
54
62
  syncid: string;
55
63
  integrationids?: string[] | undefined;
@@ -100,12 +108,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
100
108
  total: number;
101
109
  tax_amount: number;
102
110
  tax_rate?: number | undefined;
103
- description: string;
111
+ description?: string | undefined;
104
112
  discounts?: {
105
113
  name?: string | undefined;
106
114
  total: number;
107
115
  }[] | undefined;
108
116
  product_id?: string | undefined;
117
+ accounting_category_id?: string | undefined;
109
118
  }[];
110
119
  payments: {
111
120
  id?: string | undefined;
@@ -147,6 +156,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
147
156
  country?: string | undefined;
148
157
  }[] | undefined;
149
158
  loyalty?: number | undefined;
159
+ birthdate?: string | undefined;
150
160
  }[]>;
151
161
  getOrder(orderId: string): import("../types/api").RequestData<{
152
162
  id: string;
@@ -167,12 +177,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
167
177
  total: number;
168
178
  tax_amount: number;
169
179
  tax_rate?: number | undefined;
170
- description: string;
180
+ description?: string | undefined;
171
181
  discounts?: {
172
182
  name?: string | undefined;
173
183
  total: number;
174
184
  }[] | undefined;
175
185
  product_id?: string | undefined;
186
+ accounting_category_id?: string | undefined;
176
187
  }[];
177
188
  payments: {
178
189
  id?: string | undefined;
@@ -214,6 +225,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
214
225
  country?: string | undefined;
215
226
  }[] | undefined;
216
227
  loyalty?: number | undefined;
228
+ birthdate?: string | undefined;
217
229
  }>;
218
230
  createCustomer(customer: {
219
231
  first_name: string;
@@ -248,6 +260,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
248
260
  country?: string | undefined;
249
261
  }[] | undefined;
250
262
  loyalty?: number | undefined;
263
+ birthdate?: string | undefined;
251
264
  }>;
252
265
  getPaymentMethods(params: {}): import("../types/api").RequestData<{
253
266
  id: string;
@@ -256,9 +269,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
256
269
  }[]>;
257
270
  getProductCategories(params: {}): import("../types/api").RequestData<{
258
271
  id: string;
272
+ source_ref: {
273
+ id?: string | undefined;
274
+ model?: string | undefined;
275
+ };
259
276
  name: string;
260
- description?: string | undefined;
261
- id_parent?: string | undefined;
277
+ parent_id?: string | undefined;
262
278
  }[]>;
263
279
  getProducts(params: {}): import("../types/api").RequestData<{
264
280
  id: string;
@@ -269,6 +285,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
269
285
  unit_price: number;
270
286
  tax_rate: number;
271
287
  }[];
288
+ accounting_category_ids?: string[] | undefined;
272
289
  }[]>;
273
290
  getSales(params: {
274
291
  date_from: string;
@@ -323,12 +340,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
323
340
  total: number;
324
341
  tax_amount: number;
325
342
  tax_rate?: number | undefined;
326
- description: string;
343
+ description?: string | undefined;
327
344
  discounts?: {
328
345
  name?: string | undefined;
329
346
  total: number;
330
347
  }[] | undefined;
331
348
  product_id?: string | undefined;
349
+ accounting_category_id?: string | undefined;
332
350
  }[];
333
351
  payments: {
334
352
  id?: string | undefined;
@@ -351,6 +369,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
351
369
  total: number;
352
370
  }[] | undefined;
353
371
  }>;
372
+ getAccountingCategories(params: {}): import("../types/api").RequestData<{
373
+ id: string;
374
+ name: string;
375
+ id_parent?: string | undefined;
376
+ code?: string | undefined;
377
+ ledger_account_code?: string | undefined;
378
+ posting_account_code?: string | undefined;
379
+ }[]>;
354
380
  }>;
355
381
  accounting: import("../types/api").ApiFor<{
356
382
  getAnalyticPlans(): import("../types/api").RequestData<{
@@ -429,6 +455,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
429
455
  account_number?: string | undefined;
430
456
  }, params: {
431
457
  force_merge?: string | undefined;
458
+ folder_id?: string | undefined;
432
459
  } | undefined): import("../types/api").RequestData<{
433
460
  external_reference?: string | undefined;
434
461
  first_name?: string | undefined;
@@ -640,6 +667,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
640
667
  account_number?: string | undefined;
641
668
  }, params: {
642
669
  force_merge?: string | undefined;
670
+ folder_id?: string | undefined;
643
671
  } | undefined): import("../types/api").RequestData<{
644
672
  external_reference?: string | undefined;
645
673
  first_name?: string | undefined;
@@ -783,8 +811,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
783
811
  createInvoice(invoice: {
784
812
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
785
813
  invoice_number?: string | undefined;
786
- invoice_date: string;
787
- due_date: string;
788
814
  currency: string;
789
815
  untaxed_amount: number;
790
816
  tax_amount: number;
@@ -792,6 +818,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
792
818
  reference?: string | undefined;
793
819
  payment_communication?: string | undefined;
794
820
  customer_memo?: string | undefined;
821
+ invoice_date: string;
822
+ due_date: string;
795
823
  partner_id: string;
796
824
  journal_id?: string | undefined;
797
825
  status?: "draft" | "posted" | undefined;
@@ -803,6 +831,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
803
831
  invoice_correction_credit_account_number?: string | undefined;
804
832
  invoice_correction_debit_account_number?: string | undefined;
805
833
  } | undefined;
834
+ nl_payment_terms_split?: {
835
+ g_account: {
836
+ amount: number;
837
+ iban: string;
838
+ };
839
+ n_account: {
840
+ amount: number;
841
+ iban: string;
842
+ };
843
+ } | undefined;
806
844
  lines: {
807
845
  line_number?: number | undefined;
808
846
  description: string;
@@ -820,11 +858,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
820
858
  }, params: {
821
859
  force_financial_period?: string | undefined;
822
860
  regroup_lines?: "true" | "false" | undefined;
861
+ folder_id?: string | undefined;
823
862
  } | undefined): import("../types/api").RequestData<{
824
863
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
825
864
  invoice_number?: string | undefined;
826
- invoice_date: string;
827
- due_date: string;
828
865
  currency: string;
829
866
  untaxed_amount: number;
830
867
  tax_amount: number;
@@ -833,6 +870,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
833
870
  payment_communication?: string | undefined;
834
871
  customer_memo?: string | undefined;
835
872
  id?: string | undefined;
873
+ invoice_date: string;
874
+ due_date: string;
836
875
  partner_id: string;
837
876
  journal_id: string;
838
877
  payments?: {
@@ -868,8 +907,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
868
907
  createInvoiceWithMultiplePlans(invoice: {
869
908
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
870
909
  invoice_number?: string | undefined;
871
- invoice_date: string;
872
- due_date: string;
873
910
  currency: string;
874
911
  untaxed_amount: number;
875
912
  tax_amount: number;
@@ -877,6 +914,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
877
914
  reference?: string | undefined;
878
915
  payment_communication?: string | undefined;
879
916
  customer_memo?: string | undefined;
917
+ invoice_date: string;
918
+ due_date: string;
880
919
  partner_id: string;
881
920
  journal_id?: string | undefined;
882
921
  status?: "draft" | "posted" | undefined;
@@ -888,6 +927,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
888
927
  invoice_correction_credit_account_number?: string | undefined;
889
928
  invoice_correction_debit_account_number?: string | undefined;
890
929
  } | undefined;
930
+ nl_payment_terms_split?: {
931
+ g_account: {
932
+ amount: number;
933
+ iban: string;
934
+ };
935
+ n_account: {
936
+ amount: number;
937
+ iban: string;
938
+ };
939
+ } | undefined;
891
940
  lines: {
892
941
  line_number?: number | undefined;
893
942
  description: string;
@@ -911,11 +960,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
911
960
  }, params: {
912
961
  force_financial_period?: string | undefined;
913
962
  regroup_lines?: "true" | "false" | undefined;
963
+ folder_id?: string | undefined;
914
964
  } | undefined): import("../types/api").RequestData<{
915
965
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
916
966
  invoice_number?: string | undefined;
917
- invoice_date: string;
918
- due_date: string;
919
967
  currency: string;
920
968
  untaxed_amount: number;
921
969
  tax_amount: number;
@@ -924,6 +972,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
924
972
  payment_communication?: string | undefined;
925
973
  customer_memo?: string | undefined;
926
974
  id?: string | undefined;
975
+ invoice_date: string;
976
+ due_date: string;
927
977
  partner_id: string;
928
978
  journal_id: string;
929
979
  payments?: {
@@ -965,8 +1015,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
965
1015
  getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
966
1016
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
967
1017
  invoice_number?: string | undefined;
968
- invoice_date: string;
969
- due_date: string;
970
1018
  currency: string;
971
1019
  untaxed_amount: number;
972
1020
  tax_amount: number;
@@ -975,6 +1023,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
975
1023
  payment_communication?: string | undefined;
976
1024
  customer_memo?: string | undefined;
977
1025
  id?: string | undefined;
1026
+ invoice_date: string;
1027
+ due_date: string;
978
1028
  partner_id: string;
979
1029
  journal_id: string;
980
1030
  payments?: {
@@ -1009,11 +1059,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1009
1059
  }[]>;
1010
1060
  getInvoice(invoiceId: string, params: {
1011
1061
  include_payments?: "true" | "false" | undefined;
1062
+ folder_id?: string | undefined;
1012
1063
  } | undefined): import("../types/api").RequestData<{
1013
1064
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1014
1065
  invoice_number?: string | undefined;
1015
- invoice_date: string;
1016
- due_date: string;
1017
1066
  currency: string;
1018
1067
  untaxed_amount: number;
1019
1068
  tax_amount: number;
@@ -1022,6 +1071,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1022
1071
  payment_communication?: string | undefined;
1023
1072
  customer_memo?: string | undefined;
1024
1073
  id?: string | undefined;
1074
+ invoice_date: string;
1075
+ due_date: string;
1025
1076
  partner_id: string;
1026
1077
  journal_id: string;
1027
1078
  payments?: {
@@ -1056,11 +1107,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1056
1107
  }>;
1057
1108
  getInvoiceWithMultiplePlans(invoiceId: string, params: {
1058
1109
  include_payments?: "true" | "false" | undefined;
1110
+ folder_id?: string | undefined;
1059
1111
  } | undefined): import("../types/api").RequestData<{
1060
1112
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1061
1113
  invoice_number?: string | undefined;
1062
- invoice_date: string;
1063
- due_date: string;
1064
1114
  currency: string;
1065
1115
  untaxed_amount: number;
1066
1116
  tax_amount: number;
@@ -1069,6 +1119,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1069
1119
  payment_communication?: string | undefined;
1070
1120
  customer_memo?: string | undefined;
1071
1121
  id?: string | undefined;
1122
+ invoice_date: string;
1123
+ due_date: string;
1072
1124
  partner_id: string;
1073
1125
  journal_id: string;
1074
1126
  payments?: {
@@ -1110,8 +1162,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1110
1162
  getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
1111
1163
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1112
1164
  invoice_number?: string | undefined;
1113
- invoice_date: string;
1114
- due_date: string;
1115
1165
  currency: string;
1116
1166
  untaxed_amount: number;
1117
1167
  tax_amount: number;
@@ -1120,6 +1170,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1120
1170
  payment_communication?: string | undefined;
1121
1171
  customer_memo?: string | undefined;
1122
1172
  id?: string | undefined;
1173
+ invoice_date: string;
1174
+ due_date: string;
1123
1175
  partner_id: string;
1124
1176
  journal_id: string;
1125
1177
  payments?: {
@@ -1262,16 +1314,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1262
1314
  debit?: number | undefined;
1263
1315
  analytic_plan: string;
1264
1316
  }[]>;
1265
- getAnalyticLinesOfAccount(analytic_account_id: string): import("../types/api").RequestData<{
1266
- account_id: string;
1267
- description: string;
1268
- amount: number;
1269
- date: string;
1270
- id?: string | undefined;
1271
- }[]>;
1272
1317
  getJournalEntries(params: {
1273
1318
  date_from: string;
1274
1319
  date_to: string;
1320
+ folder_id?: string | undefined;
1275
1321
  unposted_allowed: "true" | "false";
1276
1322
  journal_id: string;
1277
1323
  partner_id?: string | undefined;
@@ -1303,6 +1349,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1303
1349
  getJournalEntriesWithMultiplePlans(params: {
1304
1350
  date_from: string;
1305
1351
  date_to: string;
1352
+ folder_id?: string | undefined;
1306
1353
  unposted_allowed: "true" | "false";
1307
1354
  journal_id: string;
1308
1355
  partner_id?: string | undefined;
@@ -1352,7 +1399,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1352
1399
  }[]>;
1353
1400
  getJournals(): import("../types/api").RequestData<{
1354
1401
  id: string;
1355
- code: string;
1402
+ code?: string | undefined;
1356
1403
  name: string;
1357
1404
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1358
1405
  }[]>;
@@ -1363,10 +1410,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1363
1410
  scope?: "unknown" | "nat" | "eu" | "int" | undefined;
1364
1411
  rate: number;
1365
1412
  type: "unknown" | "sale" | "purchase" | "both";
1413
+ deductible_account?: string | undefined;
1414
+ payable_account?: string | undefined;
1366
1415
  }[]>;
1367
1416
  getMiscOperations(params: {}): import("../types/api").RequestData<{
1368
1417
  operation_number?: string | undefined;
1369
- operation_date: string;
1370
1418
  currency: string;
1371
1419
  currency_exchange_rate?: number | undefined;
1372
1420
  lines: {
@@ -1378,13 +1426,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1378
1426
  partner_id?: string | undefined;
1379
1427
  analytic_account?: string | undefined;
1380
1428
  }[];
1429
+ operation_date?: string | undefined;
1381
1430
  journal_id: string;
1382
1431
  status: "draft" | "posted" | "cancelled" | "matched";
1383
1432
  id: string;
1384
1433
  }[]>;
1385
1434
  createMiscOperation(operation: {
1386
1435
  operation_number?: string | undefined;
1387
- operation_date: string;
1388
1436
  currency: string;
1389
1437
  currency_exchange_rate?: number | undefined;
1390
1438
  lines: {
@@ -1396,11 +1444,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1396
1444
  partner_id?: string | undefined;
1397
1445
  analytic_account?: string | undefined;
1398
1446
  }[];
1447
+ operation_date: string;
1399
1448
  journal_id?: string | undefined;
1400
1449
  status?: "draft" | "posted" | undefined;
1401
- }): import("../types/api").RequestData<{
1450
+ }, params: {
1451
+ folder_id?: string | undefined;
1452
+ } | undefined): import("../types/api").RequestData<{
1402
1453
  operation_number?: string | undefined;
1403
- operation_date: string;
1404
1454
  currency: string;
1405
1455
  currency_exchange_rate?: number | undefined;
1406
1456
  lines: {
@@ -1412,13 +1462,15 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1412
1462
  partner_id?: string | undefined;
1413
1463
  analytic_account?: string | undefined;
1414
1464
  }[];
1465
+ operation_date?: string | undefined;
1415
1466
  journal_id: string;
1416
1467
  status: "draft" | "posted" | "cancelled" | "matched";
1417
1468
  id: string;
1418
1469
  }>;
1419
- getMiscOperation(operation_id: string): import("../types/api").RequestData<{
1470
+ getMiscOperation(operation_id: string, params: {
1471
+ folder_id?: string | undefined;
1472
+ } | undefined): import("../types/api").RequestData<{
1420
1473
  operation_number?: string | undefined;
1421
- operation_date: string;
1422
1474
  currency: string;
1423
1475
  currency_exchange_rate?: number | undefined;
1424
1476
  lines: {
@@ -1430,6 +1482,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1430
1482
  partner_id?: string | undefined;
1431
1483
  analytic_account?: string | undefined;
1432
1484
  }[];
1485
+ operation_date?: string | undefined;
1433
1486
  journal_id: string;
1434
1487
  status: "draft" | "posted" | "cancelled" | "matched";
1435
1488
  id: string;
@@ -1438,6 +1491,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1438
1491
  base64_string: string;
1439
1492
  }, params: {
1440
1493
  overwrite_existing?: "true" | "false" | undefined;
1494
+ folder_id?: string | undefined;
1441
1495
  } | undefined): import("../types/api").RequestData<{
1442
1496
  content: {
1443
1497
  'application/json': unknown;
@@ -1453,13 +1507,21 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1453
1507
  accounts: string[];
1454
1508
  start: string;
1455
1509
  end: string;
1456
- }): import("../types/api").RequestData<{
1510
+ }, params: {
1511
+ folder_id?: string | undefined;
1512
+ page?: number | undefined;
1513
+ size?: number | undefined;
1514
+ } | undefined): import("../types/api").RequestData<{
1457
1515
  account_number: string;
1458
1516
  debit: number;
1459
1517
  credit: number;
1460
1518
  balance: number;
1461
1519
  }[]>;
1462
- getEmployees(): import("../types/api").RequestData<{
1520
+ getEmployees(params: {
1521
+ folder_id?: string | undefined;
1522
+ page?: number | undefined;
1523
+ size?: number | undefined;
1524
+ } | undefined): import("../types/api").RequestData<{
1463
1525
  id: string;
1464
1526
  name: string;
1465
1527
  first_name?: string | undefined;
@@ -1473,6 +1535,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1473
1535
  account_number?: string | undefined;
1474
1536
  }[]>;
1475
1537
  getOutstandings(params: {
1538
+ folder_id?: string | undefined;
1476
1539
  unposted_allowed: "true" | "false";
1477
1540
  type: "client" | "supplier";
1478
1541
  }): import("../types/api").RequestData<{
@@ -1489,6 +1552,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1489
1552
  partner_id: string;
1490
1553
  account_number: string;
1491
1554
  reference?: string | undefined;
1555
+ payment_communication?: string | undefined;
1492
1556
  posted: boolean;
1493
1557
  }[]>;
1494
1558
  createFinancialEntryOld(financial_entry: {
@@ -1508,6 +1572,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1508
1572
  pdf?: string | undefined;
1509
1573
  }, params: {
1510
1574
  financial_counterpart_account?: string | undefined;
1575
+ folder_id?: string | undefined;
1511
1576
  } | undefined): import("../types/api").RequestData<{
1512
1577
  date: string;
1513
1578
  journal_id: string;
@@ -1541,6 +1606,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1541
1606
  pdf?: string | undefined;
1542
1607
  }, params: {
1543
1608
  financial_counterpart_account?: string | undefined;
1609
+ folder_id?: string | undefined;
1544
1610
  } | undefined): import("../types/api").RequestData<{
1545
1611
  date: string;
1546
1612
  journal_id: string;
@@ -1557,7 +1623,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1557
1623
  counterpart_account: string;
1558
1624
  }[];
1559
1625
  }[]>;
1560
- createJournalEntry(journal_entry: {
1626
+ createJournalEntryOld(journal_entry: {
1561
1627
  reference?: string | undefined;
1562
1628
  due_date?: string | undefined;
1563
1629
  journal_id: string;
@@ -1578,8 +1644,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1578
1644
  percentage: number;
1579
1645
  }[];
1580
1646
  }[] | undefined;
1581
- pdf?: string | undefined;
1582
1647
  }[];
1648
+ pdf?: string | undefined;
1583
1649
  }): import("../types/api").RequestData<{
1584
1650
  reference?: string | undefined;
1585
1651
  due_date?: string | undefined;
@@ -1610,6 +1676,65 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1610
1676
  }[] | undefined;
1611
1677
  }[] | undefined;
1612
1678
  }>;
1679
+ createJournalEntry(journal_entry: {
1680
+ reference?: string | undefined;
1681
+ due_date?: string | undefined;
1682
+ journal_id: string;
1683
+ number: string;
1684
+ currency: string;
1685
+ currency_exchange_rate?: number | undefined;
1686
+ date: string;
1687
+ items: {
1688
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1689
+ account: string;
1690
+ force_general_account?: string | undefined;
1691
+ prioritise_thirdparty_account?: boolean | undefined;
1692
+ description?: string | undefined;
1693
+ debit: number;
1694
+ credit: number;
1695
+ analytic_distribution?: {
1696
+ analytic_plan: string;
1697
+ analytic_accounts: {
1698
+ analytic_account: string;
1699
+ percentage: number;
1700
+ }[];
1701
+ }[] | undefined;
1702
+ tax_code?: string | undefined;
1703
+ }[];
1704
+ pdf?: string | undefined;
1705
+ posted?: boolean | undefined;
1706
+ }, params: {
1707
+ folder_id?: string | undefined;
1708
+ } | undefined): import("../types/api").RequestData<{
1709
+ reference?: string | undefined;
1710
+ due_date?: string | undefined;
1711
+ journal_id: string;
1712
+ name?: string | undefined;
1713
+ journal_name: string;
1714
+ date?: string | undefined;
1715
+ posted?: boolean | undefined;
1716
+ id: string;
1717
+ items?: {
1718
+ account_number: string;
1719
+ partner_id?: string | undefined;
1720
+ description?: string | undefined;
1721
+ debit: number;
1722
+ credit: number;
1723
+ currency: string;
1724
+ currency_exchange_rate?: number | undefined;
1725
+ id: string;
1726
+ partner_name?: string | undefined;
1727
+ account_name: string;
1728
+ matching_numbers?: string[] | undefined;
1729
+ analytic_distribution?: {
1730
+ analytic_plan: string;
1731
+ analytic_accounts: {
1732
+ analytic_account: string;
1733
+ percentage: number;
1734
+ }[];
1735
+ }[] | undefined;
1736
+ }[] | undefined;
1737
+ }>;
1613
1738
  }>;
1614
1739
  invoicing: import("../types/api").ApiFor<{
1615
1740
  getInvoices(params: {
@@ -1617,6 +1742,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1617
1742
  payment_status?: "all" | "paid" | "unpaid" | undefined;
1618
1743
  date_from?: string | undefined;
1619
1744
  date_to?: string | undefined;
1745
+ updated_after?: string | undefined;
1620
1746
  page?: number | undefined;
1621
1747
  size?: number | undefined;
1622
1748
  } | undefined): import("../types/api").RequestData<{
@@ -1659,6 +1785,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1659
1785
  model?: string | undefined;
1660
1786
  name?: string | undefined;
1661
1787
  } | undefined;
1788
+ outstanding_amount?: number | undefined;
1789
+ last_updated_on?: string | undefined;
1662
1790
  }[]>;
1663
1791
  getInvoiceById(invoiceId: string, params: {
1664
1792
  include_pdf?: "true" | "false" | undefined;
@@ -1702,6 +1830,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1702
1830
  model?: string | undefined;
1703
1831
  name?: string | undefined;
1704
1832
  } | undefined;
1833
+ outstanding_amount?: number | undefined;
1834
+ last_updated_on?: string | undefined;
1705
1835
  }>;
1706
1836
  createInvoice(invoice: {
1707
1837
  currency: string;
@@ -1738,6 +1868,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1738
1868
  model?: string | undefined;
1739
1869
  name?: string | undefined;
1740
1870
  } | undefined;
1871
+ outstanding_amount?: number | undefined;
1741
1872
  }): import("../types/api").RequestData<{
1742
1873
  id: string;
1743
1874
  source_ref: {
@@ -1778,6 +1909,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1778
1909
  model?: string | undefined;
1779
1910
  name?: string | undefined;
1780
1911
  } | undefined;
1912
+ outstanding_amount?: number | undefined;
1913
+ last_updated_on?: string | undefined;
1781
1914
  }>;
1782
1915
  getProducts(): import("../types/api").RequestData<{
1783
1916
  id: string;
@@ -2090,6 +2223,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2090
2223
  currency?: string | undefined;
2091
2224
  addresses?: {
2092
2225
  address_type: "main" | "delivery" | "invoice";
2226
+ company_name?: string | undefined;
2093
2227
  first_name?: string | undefined;
2094
2228
  last_name?: string | undefined;
2095
2229
  street?: string | undefined;
@@ -2183,6 +2317,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2183
2317
  currency?: string | undefined;
2184
2318
  addresses?: {
2185
2319
  address_type: "main" | "delivery" | "invoice";
2320
+ company_name?: string | undefined;
2186
2321
  first_name?: string | undefined;
2187
2322
  last_name?: string | undefined;
2188
2323
  street?: string | undefined;
@@ -2335,15 +2470,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2335
2470
  };
2336
2471
  order_number?: string | undefined;
2337
2472
  customer?: {
2338
- email: string;
2339
2473
  first_name?: string | undefined;
2340
2474
  last_name?: string | undefined;
2341
2475
  phone?: string | undefined;
2342
2476
  internal_notes?: string | undefined;
2477
+ email?: string | undefined;
2343
2478
  id: string;
2344
2479
  } | undefined;
2345
2480
  billing_address?: {
2346
2481
  address_type: "main" | "delivery" | "invoice";
2482
+ company_name?: string | undefined;
2347
2483
  first_name?: string | undefined;
2348
2484
  last_name?: string | undefined;
2349
2485
  street?: string | undefined;
@@ -2357,6 +2493,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2357
2493
  } | undefined;
2358
2494
  shipping_address?: {
2359
2495
  address_type: "main" | "delivery" | "invoice";
2496
+ company_name?: string | undefined;
2360
2497
  first_name?: string | undefined;
2361
2498
  last_name?: string | undefined;
2362
2499
  street?: string | undefined;
@@ -2382,6 +2519,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2382
2519
  total: number;
2383
2520
  refunded_amount?: number | undefined;
2384
2521
  detailed_refunds?: {
2522
+ id: string;
2523
+ source_ref: {
2524
+ id?: string | undefined;
2525
+ model?: string | undefined;
2526
+ };
2385
2527
  created_on?: string | undefined;
2386
2528
  total: number;
2387
2529
  reason?: string | undefined;
@@ -2398,6 +2540,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2398
2540
  total: number;
2399
2541
  }[] | undefined;
2400
2542
  other?: number | undefined;
2543
+ shipping_refunds?: {
2544
+ untaxed_amount: number;
2545
+ tax_amount: number;
2546
+ total: number;
2547
+ }[] | undefined;
2401
2548
  }[] | undefined;
2402
2549
  currency: string;
2403
2550
  note?: string | undefined;
@@ -2407,6 +2554,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2407
2554
  id?: string | undefined;
2408
2555
  model?: string | undefined;
2409
2556
  };
2557
+ created_on?: string | undefined;
2410
2558
  variant?: {
2411
2559
  id: string;
2412
2560
  sku?: string | undefined;
@@ -2415,6 +2563,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2415
2563
  quantity: number;
2416
2564
  unit_price: number;
2417
2565
  description: string;
2566
+ tax_id?: string | undefined;
2418
2567
  tax_rate: number;
2419
2568
  untaxed_amount: number;
2420
2569
  tax_amount: number;
@@ -2424,22 +2573,42 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2424
2573
  description: string;
2425
2574
  amount: number;
2426
2575
  }[] | undefined;
2576
+ gift_card?: boolean | undefined;
2427
2577
  }[];
2428
2578
  other_fees?: {
2579
+ created_on?: string | undefined;
2429
2580
  type: "other" | "shipping";
2430
2581
  tax_rate: number;
2582
+ tax_id?: string | undefined;
2583
+ discounts?: {
2584
+ name: string;
2585
+ description: string;
2586
+ amount: number;
2587
+ }[] | undefined;
2431
2588
  untaxed_amount: number;
2432
2589
  tax_amount: number;
2433
2590
  total: number;
2434
2591
  }[] | undefined;
2592
+ payment_method_id?: string | undefined;
2593
+ transactions?: {
2594
+ id: string;
2595
+ payment_method_id?: string | undefined;
2596
+ payment_method_name?: string | undefined;
2597
+ amount: number;
2598
+ status: "failed" | "pending" | "success";
2599
+ }[] | undefined;
2600
+ payment_methods?: {
2601
+ id: string;
2602
+ name?: string | undefined;
2603
+ }[] | undefined;
2435
2604
  }[]>;
2436
2605
  createOrder(order: {
2437
2606
  customer: {
2438
- email: string;
2439
2607
  first_name?: string | undefined;
2440
2608
  last_name?: string | undefined;
2441
2609
  phone?: string | undefined;
2442
2610
  internal_notes?: string | undefined;
2611
+ email: string;
2443
2612
  };
2444
2613
  billing_address: {
2445
2614
  first_name: string;
@@ -2482,15 +2651,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2482
2651
  };
2483
2652
  order_number?: string | undefined;
2484
2653
  customer?: {
2485
- email: string;
2486
2654
  first_name?: string | undefined;
2487
2655
  last_name?: string | undefined;
2488
2656
  phone?: string | undefined;
2489
2657
  internal_notes?: string | undefined;
2658
+ email?: string | undefined;
2490
2659
  id: string;
2491
2660
  } | undefined;
2492
2661
  billing_address?: {
2493
2662
  address_type: "main" | "delivery" | "invoice";
2663
+ company_name?: string | undefined;
2494
2664
  first_name?: string | undefined;
2495
2665
  last_name?: string | undefined;
2496
2666
  street?: string | undefined;
@@ -2504,6 +2674,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2504
2674
  } | undefined;
2505
2675
  shipping_address?: {
2506
2676
  address_type: "main" | "delivery" | "invoice";
2677
+ company_name?: string | undefined;
2507
2678
  first_name?: string | undefined;
2508
2679
  last_name?: string | undefined;
2509
2680
  street?: string | undefined;
@@ -2529,6 +2700,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2529
2700
  total: number;
2530
2701
  refunded_amount?: number | undefined;
2531
2702
  detailed_refunds?: {
2703
+ id: string;
2704
+ source_ref: {
2705
+ id?: string | undefined;
2706
+ model?: string | undefined;
2707
+ };
2532
2708
  created_on?: string | undefined;
2533
2709
  total: number;
2534
2710
  reason?: string | undefined;
@@ -2545,6 +2721,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2545
2721
  total: number;
2546
2722
  }[] | undefined;
2547
2723
  other?: number | undefined;
2724
+ shipping_refunds?: {
2725
+ untaxed_amount: number;
2726
+ tax_amount: number;
2727
+ total: number;
2728
+ }[] | undefined;
2548
2729
  }[] | undefined;
2549
2730
  currency: string;
2550
2731
  note?: string | undefined;
@@ -2554,6 +2735,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2554
2735
  id?: string | undefined;
2555
2736
  model?: string | undefined;
2556
2737
  };
2738
+ created_on?: string | undefined;
2557
2739
  variant?: {
2558
2740
  id: string;
2559
2741
  sku?: string | undefined;
@@ -2562,6 +2744,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2562
2744
  quantity: number;
2563
2745
  unit_price: number;
2564
2746
  description: string;
2747
+ tax_id?: string | undefined;
2565
2748
  tax_rate: number;
2566
2749
  untaxed_amount: number;
2567
2750
  tax_amount: number;
@@ -2571,14 +2754,34 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2571
2754
  description: string;
2572
2755
  amount: number;
2573
2756
  }[] | undefined;
2757
+ gift_card?: boolean | undefined;
2574
2758
  }[];
2575
2759
  other_fees?: {
2760
+ created_on?: string | undefined;
2576
2761
  type: "other" | "shipping";
2577
2762
  tax_rate: number;
2763
+ tax_id?: string | undefined;
2764
+ discounts?: {
2765
+ name: string;
2766
+ description: string;
2767
+ amount: number;
2768
+ }[] | undefined;
2578
2769
  untaxed_amount: number;
2579
2770
  tax_amount: number;
2580
2771
  total: number;
2581
2772
  }[] | undefined;
2773
+ payment_method_id?: string | undefined;
2774
+ transactions?: {
2775
+ id: string;
2776
+ payment_method_id?: string | undefined;
2777
+ payment_method_name?: string | undefined;
2778
+ amount: number;
2779
+ status: "failed" | "pending" | "success";
2780
+ }[] | undefined;
2781
+ payment_methods?: {
2782
+ id: string;
2783
+ name?: string | undefined;
2784
+ }[] | undefined;
2582
2785
  }>;
2583
2786
  getOrder(orderId: string): import("../types/api").RequestData<{
2584
2787
  id: string;
@@ -2588,15 +2791,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2588
2791
  };
2589
2792
  order_number?: string | undefined;
2590
2793
  customer?: {
2591
- email: string;
2592
2794
  first_name?: string | undefined;
2593
2795
  last_name?: string | undefined;
2594
2796
  phone?: string | undefined;
2595
2797
  internal_notes?: string | undefined;
2798
+ email?: string | undefined;
2596
2799
  id: string;
2597
2800
  } | undefined;
2598
2801
  billing_address?: {
2599
2802
  address_type: "main" | "delivery" | "invoice";
2803
+ company_name?: string | undefined;
2600
2804
  first_name?: string | undefined;
2601
2805
  last_name?: string | undefined;
2602
2806
  street?: string | undefined;
@@ -2610,6 +2814,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2610
2814
  } | undefined;
2611
2815
  shipping_address?: {
2612
2816
  address_type: "main" | "delivery" | "invoice";
2817
+ company_name?: string | undefined;
2613
2818
  first_name?: string | undefined;
2614
2819
  last_name?: string | undefined;
2615
2820
  street?: string | undefined;
@@ -2635,6 +2840,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2635
2840
  total: number;
2636
2841
  refunded_amount?: number | undefined;
2637
2842
  detailed_refunds?: {
2843
+ id: string;
2844
+ source_ref: {
2845
+ id?: string | undefined;
2846
+ model?: string | undefined;
2847
+ };
2638
2848
  created_on?: string | undefined;
2639
2849
  total: number;
2640
2850
  reason?: string | undefined;
@@ -2651,6 +2861,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2651
2861
  total: number;
2652
2862
  }[] | undefined;
2653
2863
  other?: number | undefined;
2864
+ shipping_refunds?: {
2865
+ untaxed_amount: number;
2866
+ tax_amount: number;
2867
+ total: number;
2868
+ }[] | undefined;
2654
2869
  }[] | undefined;
2655
2870
  currency: string;
2656
2871
  note?: string | undefined;
@@ -2660,6 +2875,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2660
2875
  id?: string | undefined;
2661
2876
  model?: string | undefined;
2662
2877
  };
2878
+ created_on?: string | undefined;
2663
2879
  variant?: {
2664
2880
  id: string;
2665
2881
  sku?: string | undefined;
@@ -2668,6 +2884,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2668
2884
  quantity: number;
2669
2885
  unit_price: number;
2670
2886
  description: string;
2887
+ tax_id?: string | undefined;
2671
2888
  tax_rate: number;
2672
2889
  untaxed_amount: number;
2673
2890
  tax_amount: number;
@@ -2677,34 +2894,86 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2677
2894
  description: string;
2678
2895
  amount: number;
2679
2896
  }[] | undefined;
2897
+ gift_card?: boolean | undefined;
2680
2898
  }[];
2681
2899
  other_fees?: {
2900
+ created_on?: string | undefined;
2682
2901
  type: "other" | "shipping";
2683
2902
  tax_rate: number;
2903
+ tax_id?: string | undefined;
2904
+ discounts?: {
2905
+ name: string;
2906
+ description: string;
2907
+ amount: number;
2908
+ }[] | undefined;
2684
2909
  untaxed_amount: number;
2685
2910
  tax_amount: number;
2686
2911
  total: number;
2687
2912
  }[] | undefined;
2913
+ payment_method_id?: string | undefined;
2914
+ transactions?: {
2915
+ id: string;
2916
+ payment_method_id?: string | undefined;
2917
+ payment_method_name?: string | undefined;
2918
+ amount: number;
2919
+ status: "failed" | "pending" | "success";
2920
+ }[] | undefined;
2921
+ payment_methods?: {
2922
+ id: string;
2923
+ name?: string | undefined;
2924
+ }[] | undefined;
2688
2925
  }>;
2689
- }>;
2690
- custom: import("../types/api").ApiFor<{
2691
- get(name: string, resource: string, params?: any): import("../types/api").RequestData<any>;
2692
- post(name: string, resource: string, body: any, params?: any): import("../types/api").RequestData<any>;
2693
- patch(name: string, resource: string, body: any, params?: any): import("../types/api").RequestData<any>;
2694
- delete(name: string, resource: string, params?: any): import("../types/api").RequestData<any>;
2695
- }>;
2696
- getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
2697
- data: Record<string, never>;
2698
- id: string;
2699
- created_on: string;
2700
- }[]>;
2701
- addDataByDataStoreId: (dataStoreId: string, data: {
2702
- data: Record<string, never>;
2703
- }[]) => Promise<{
2704
- data: Record<string, never>;
2705
- id: string;
2706
- created_on: string;
2707
- }[]>;
2926
+ getPaymentMethods(params: {}): import("../types/api").RequestData<{
2927
+ id: string;
2928
+ source_ref: {
2929
+ id?: string | undefined;
2930
+ model?: string | undefined;
2931
+ };
2932
+ name: string;
2933
+ active: boolean;
2934
+ }[]>;
2935
+ getProductCategories(params: {}): import("../types/api").RequestData<{
2936
+ id: string;
2937
+ source_ref: {
2938
+ id?: string | undefined;
2939
+ model?: string | undefined;
2940
+ };
2941
+ name: string;
2942
+ parent_id?: string | undefined;
2943
+ }[]>;
2944
+ getTaxes(params: {}): import("../types/api").RequestData<{
2945
+ id: string;
2946
+ source_ref: {
2947
+ id?: string | undefined;
2948
+ model?: string | undefined;
2949
+ };
2950
+ label: string;
2951
+ rate: number;
2952
+ country?: string | undefined;
2953
+ }[]>;
2954
+ getCountries(params: {}): import("../types/api").RequestData<{
2955
+ code: string;
2956
+ name: string;
2957
+ }[]>;
2958
+ }>;
2959
+ custom: import("../types/api").ApiFor<{
2960
+ get(name: string, resource: string, params?: any): import("../types/api").RequestData<any>;
2961
+ post(name: string, resource: string, body: any, params?: any): import("../types/api").RequestData<any>;
2962
+ patch(name: string, resource: string, body: any, params?: any): import("../types/api").RequestData<any>;
2963
+ delete(name: string, resource: string, params?: any): import("../types/api").RequestData<any>;
2964
+ }>;
2965
+ getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
2966
+ data: Record<string, never>;
2967
+ id: string;
2968
+ created_on: string;
2969
+ }[]>;
2970
+ addDataByDataStoreId: (dataStoreId: string, data: {
2971
+ data: Record<string, never>;
2972
+ }[]) => Promise<{
2973
+ data: Record<string, never>;
2974
+ id: string;
2975
+ created_on: string;
2976
+ }[]>;
2708
2977
  getSyncData: (syncId: string) => Promise<{
2709
2978
  syncid: string;
2710
2979
  sync_name: string;
@@ -2713,12 +2982,15 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2713
2982
  link_createdon: string;
2714
2983
  link_mappings?: {
2715
2984
  name: string;
2716
- description: string;
2717
- logic?: Record<string, never> | undefined;
2985
+ description?: string | undefined;
2986
+ display_order?: number | undefined;
2987
+ challenge_question?: string | undefined;
2718
2988
  values: {
2719
2989
  source_id: string;
2720
2990
  target_id: string;
2721
2991
  }[];
2992
+ sub_mapping_name: string;
2993
+ sub_mapping_description?: string | undefined;
2722
2994
  }[] | undefined;
2723
2995
  link_metadata?: Record<string, never> | undefined;
2724
2996
  enabled_flows?: {
@@ -2745,7 +3017,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2745
3017
  }[] | undefined;
2746
3018
  } | undefined;
2747
3019
  values: Record<string, never>;
2748
- enabled_on: string;
3020
+ enabled_on?: string | undefined;
3021
+ trigger: {
3022
+ id: string;
3023
+ type: "timer" | "event";
3024
+ cronschedule?: string | undefined;
3025
+ };
2749
3026
  }[] | undefined;
2750
3027
  }>;
2751
3028
  getDataByDataStoreName: (dataStoreName: string, params?: object | undefined) => Promise<{
@@ -2767,6 +3044,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2767
3044
  id: string;
2768
3045
  created_on: string;
2769
3046
  }[]>;
3047
+ deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
2770
3048
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
2771
3049
  }, context: any) => any, log?: boolean) => Promise<void>;
2772
3050
  flowId: string;
@@ -2795,6 +3073,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2795
3073
  api: string;
2796
3074
  data?: Record<string, never> | undefined;
2797
3075
  status: "active" | "inactive";
3076
+ agent?: {
3077
+ status: "up" | "down";
3078
+ } | undefined;
2798
3079
  }[]>;
2799
3080
  createConnection: (body?: {
2800
3081
  integrationid?: number | undefined;
@@ -2819,6 +3100,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2819
3100
  deleteConnection: (connectionId: string) => Promise<{
2820
3101
  content: never;
2821
3102
  }>;
3103
+ enableFlow: (syncId: string, flowId: string, body: {
3104
+ integrationids?: string[] | undefined;
3105
+ triggerid?: string | undefined;
3106
+ cronschedule?: string | undefined;
3107
+ }) => Promise<import("../types/sync").SimpleResponseModel>;
2822
3108
  getSyncUrl: (body: {
2823
3109
  syncid: string;
2824
3110
  integrationids?: string[] | undefined;
@@ -2869,12 +3155,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2869
3155
  total: number;
2870
3156
  tax_amount: number;
2871
3157
  tax_rate?: number | undefined;
2872
- description: string;
3158
+ description?: string | undefined;
2873
3159
  discounts?: {
2874
3160
  name?: string | undefined;
2875
3161
  total: number;
2876
3162
  }[] | undefined;
2877
3163
  product_id?: string | undefined;
3164
+ accounting_category_id?: string | undefined;
2878
3165
  }[];
2879
3166
  payments: {
2880
3167
  id?: string | undefined;
@@ -2916,6 +3203,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2916
3203
  country?: string | undefined;
2917
3204
  }[] | undefined;
2918
3205
  loyalty?: number | undefined;
3206
+ birthdate?: string | undefined;
2919
3207
  }[]>;
2920
3208
  getOrder(orderId: string): import("../types/api").RequestData<{
2921
3209
  id: string;
@@ -2936,12 +3224,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2936
3224
  total: number;
2937
3225
  tax_amount: number;
2938
3226
  tax_rate?: number | undefined;
2939
- description: string;
3227
+ description?: string | undefined;
2940
3228
  discounts?: {
2941
3229
  name?: string | undefined;
2942
3230
  total: number;
2943
3231
  }[] | undefined;
2944
3232
  product_id?: string | undefined;
3233
+ accounting_category_id?: string | undefined;
2945
3234
  }[];
2946
3235
  payments: {
2947
3236
  id?: string | undefined;
@@ -2983,6 +3272,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2983
3272
  country?: string | undefined;
2984
3273
  }[] | undefined;
2985
3274
  loyalty?: number | undefined;
3275
+ birthdate?: string | undefined;
2986
3276
  }>;
2987
3277
  createCustomer(customer: {
2988
3278
  first_name: string;
@@ -3017,6 +3307,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3017
3307
  country?: string | undefined;
3018
3308
  }[] | undefined;
3019
3309
  loyalty?: number | undefined;
3310
+ birthdate?: string | undefined;
3020
3311
  }>;
3021
3312
  getPaymentMethods(params: {}): import("../types/api").RequestData<{
3022
3313
  id: string;
@@ -3025,9 +3316,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3025
3316
  }[]>;
3026
3317
  getProductCategories(params: {}): import("../types/api").RequestData<{
3027
3318
  id: string;
3319
+ source_ref: {
3320
+ id?: string | undefined;
3321
+ model?: string | undefined;
3322
+ };
3028
3323
  name: string;
3029
- description?: string | undefined;
3030
- id_parent?: string | undefined;
3324
+ parent_id?: string | undefined;
3031
3325
  }[]>;
3032
3326
  getProducts(params: {}): import("../types/api").RequestData<{
3033
3327
  id: string;
@@ -3038,6 +3332,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3038
3332
  unit_price: number;
3039
3333
  tax_rate: number;
3040
3334
  }[];
3335
+ accounting_category_ids?: string[] | undefined;
3041
3336
  }[]>;
3042
3337
  getSales(params: {
3043
3338
  date_from: string;
@@ -3092,12 +3387,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3092
3387
  total: number;
3093
3388
  tax_amount: number;
3094
3389
  tax_rate?: number | undefined;
3095
- description: string;
3390
+ description?: string | undefined;
3096
3391
  discounts?: {
3097
3392
  name?: string | undefined;
3098
3393
  total: number;
3099
3394
  }[] | undefined;
3100
3395
  product_id?: string | undefined;
3396
+ accounting_category_id?: string | undefined;
3101
3397
  }[];
3102
3398
  payments: {
3103
3399
  id?: string | undefined;
@@ -3120,6 +3416,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3120
3416
  total: number;
3121
3417
  }[] | undefined;
3122
3418
  }>;
3419
+ getAccountingCategories(params: {}): import("../types/api").RequestData<{
3420
+ id: string;
3421
+ name: string;
3422
+ id_parent?: string | undefined;
3423
+ code?: string | undefined;
3424
+ ledger_account_code?: string | undefined;
3425
+ posting_account_code?: string | undefined;
3426
+ }[]>;
3123
3427
  }>;
3124
3428
  accounting: import("../types/api").ApiFor<{
3125
3429
  getAnalyticPlans(): import("../types/api").RequestData<{
@@ -3198,6 +3502,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3198
3502
  account_number?: string | undefined;
3199
3503
  }, params: {
3200
3504
  force_merge?: string | undefined;
3505
+ folder_id?: string | undefined;
3201
3506
  } | undefined): import("../types/api").RequestData<{
3202
3507
  external_reference?: string | undefined;
3203
3508
  first_name?: string | undefined;
@@ -3409,6 +3714,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3409
3714
  account_number?: string | undefined;
3410
3715
  }, params: {
3411
3716
  force_merge?: string | undefined;
3717
+ folder_id?: string | undefined;
3412
3718
  } | undefined): import("../types/api").RequestData<{
3413
3719
  external_reference?: string | undefined;
3414
3720
  first_name?: string | undefined;
@@ -3552,8 +3858,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3552
3858
  createInvoice(invoice: {
3553
3859
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
3554
3860
  invoice_number?: string | undefined;
3555
- invoice_date: string;
3556
- due_date: string;
3557
3861
  currency: string;
3558
3862
  untaxed_amount: number;
3559
3863
  tax_amount: number;
@@ -3561,6 +3865,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3561
3865
  reference?: string | undefined;
3562
3866
  payment_communication?: string | undefined;
3563
3867
  customer_memo?: string | undefined;
3868
+ invoice_date: string;
3869
+ due_date: string;
3564
3870
  partner_id: string;
3565
3871
  journal_id?: string | undefined;
3566
3872
  status?: "draft" | "posted" | undefined;
@@ -3572,6 +3878,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3572
3878
  invoice_correction_credit_account_number?: string | undefined;
3573
3879
  invoice_correction_debit_account_number?: string | undefined;
3574
3880
  } | undefined;
3881
+ nl_payment_terms_split?: {
3882
+ g_account: {
3883
+ amount: number;
3884
+ iban: string;
3885
+ };
3886
+ n_account: {
3887
+ amount: number;
3888
+ iban: string;
3889
+ };
3890
+ } | undefined;
3575
3891
  lines: {
3576
3892
  line_number?: number | undefined;
3577
3893
  description: string;
@@ -3589,11 +3905,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3589
3905
  }, params: {
3590
3906
  force_financial_period?: string | undefined;
3591
3907
  regroup_lines?: "true" | "false" | undefined;
3908
+ folder_id?: string | undefined;
3592
3909
  } | undefined): import("../types/api").RequestData<{
3593
3910
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
3594
3911
  invoice_number?: string | undefined;
3595
- invoice_date: string;
3596
- due_date: string;
3597
3912
  currency: string;
3598
3913
  untaxed_amount: number;
3599
3914
  tax_amount: number;
@@ -3602,6 +3917,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3602
3917
  payment_communication?: string | undefined;
3603
3918
  customer_memo?: string | undefined;
3604
3919
  id?: string | undefined;
3920
+ invoice_date: string;
3921
+ due_date: string;
3605
3922
  partner_id: string;
3606
3923
  journal_id: string;
3607
3924
  payments?: {
@@ -3637,8 +3954,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3637
3954
  createInvoiceWithMultiplePlans(invoice: {
3638
3955
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
3639
3956
  invoice_number?: string | undefined;
3640
- invoice_date: string;
3641
- due_date: string;
3642
3957
  currency: string;
3643
3958
  untaxed_amount: number;
3644
3959
  tax_amount: number;
@@ -3646,6 +3961,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3646
3961
  reference?: string | undefined;
3647
3962
  payment_communication?: string | undefined;
3648
3963
  customer_memo?: string | undefined;
3964
+ invoice_date: string;
3965
+ due_date: string;
3649
3966
  partner_id: string;
3650
3967
  journal_id?: string | undefined;
3651
3968
  status?: "draft" | "posted" | undefined;
@@ -3657,6 +3974,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3657
3974
  invoice_correction_credit_account_number?: string | undefined;
3658
3975
  invoice_correction_debit_account_number?: string | undefined;
3659
3976
  } | undefined;
3977
+ nl_payment_terms_split?: {
3978
+ g_account: {
3979
+ amount: number;
3980
+ iban: string;
3981
+ };
3982
+ n_account: {
3983
+ amount: number;
3984
+ iban: string;
3985
+ };
3986
+ } | undefined;
3660
3987
  lines: {
3661
3988
  line_number?: number | undefined;
3662
3989
  description: string;
@@ -3680,11 +4007,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3680
4007
  }, params: {
3681
4008
  force_financial_period?: string | undefined;
3682
4009
  regroup_lines?: "true" | "false" | undefined;
4010
+ folder_id?: string | undefined;
3683
4011
  } | undefined): import("../types/api").RequestData<{
3684
4012
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
3685
4013
  invoice_number?: string | undefined;
3686
- invoice_date: string;
3687
- due_date: string;
3688
4014
  currency: string;
3689
4015
  untaxed_amount: number;
3690
4016
  tax_amount: number;
@@ -3693,6 +4019,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3693
4019
  payment_communication?: string | undefined;
3694
4020
  customer_memo?: string | undefined;
3695
4021
  id?: string | undefined;
4022
+ invoice_date: string;
4023
+ due_date: string;
3696
4024
  partner_id: string;
3697
4025
  journal_id: string;
3698
4026
  payments?: {
@@ -3734,8 +4062,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3734
4062
  getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
3735
4063
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
3736
4064
  invoice_number?: string | undefined;
3737
- invoice_date: string;
3738
- due_date: string;
3739
4065
  currency: string;
3740
4066
  untaxed_amount: number;
3741
4067
  tax_amount: number;
@@ -3744,6 +4070,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3744
4070
  payment_communication?: string | undefined;
3745
4071
  customer_memo?: string | undefined;
3746
4072
  id?: string | undefined;
4073
+ invoice_date: string;
4074
+ due_date: string;
3747
4075
  partner_id: string;
3748
4076
  journal_id: string;
3749
4077
  payments?: {
@@ -3778,11 +4106,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3778
4106
  }[]>;
3779
4107
  getInvoice(invoiceId: string, params: {
3780
4108
  include_payments?: "true" | "false" | undefined;
4109
+ folder_id?: string | undefined;
3781
4110
  } | undefined): import("../types/api").RequestData<{
3782
4111
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
3783
4112
  invoice_number?: string | undefined;
3784
- invoice_date: string;
3785
- due_date: string;
3786
4113
  currency: string;
3787
4114
  untaxed_amount: number;
3788
4115
  tax_amount: number;
@@ -3791,6 +4118,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3791
4118
  payment_communication?: string | undefined;
3792
4119
  customer_memo?: string | undefined;
3793
4120
  id?: string | undefined;
4121
+ invoice_date: string;
4122
+ due_date: string;
3794
4123
  partner_id: string;
3795
4124
  journal_id: string;
3796
4125
  payments?: {
@@ -3825,11 +4154,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3825
4154
  }>;
3826
4155
  getInvoiceWithMultiplePlans(invoiceId: string, params: {
3827
4156
  include_payments?: "true" | "false" | undefined;
4157
+ folder_id?: string | undefined;
3828
4158
  } | undefined): import("../types/api").RequestData<{
3829
4159
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
3830
4160
  invoice_number?: string | undefined;
3831
- invoice_date: string;
3832
- due_date: string;
3833
4161
  currency: string;
3834
4162
  untaxed_amount: number;
3835
4163
  tax_amount: number;
@@ -3838,6 +4166,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3838
4166
  payment_communication?: string | undefined;
3839
4167
  customer_memo?: string | undefined;
3840
4168
  id?: string | undefined;
4169
+ invoice_date: string;
4170
+ due_date: string;
3841
4171
  partner_id: string;
3842
4172
  journal_id: string;
3843
4173
  payments?: {
@@ -3879,8 +4209,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3879
4209
  getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
3880
4210
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
3881
4211
  invoice_number?: string | undefined;
3882
- invoice_date: string;
3883
- due_date: string;
3884
4212
  currency: string;
3885
4213
  untaxed_amount: number;
3886
4214
  tax_amount: number;
@@ -3889,6 +4217,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3889
4217
  payment_communication?: string | undefined;
3890
4218
  customer_memo?: string | undefined;
3891
4219
  id?: string | undefined;
4220
+ invoice_date: string;
4221
+ due_date: string;
3892
4222
  partner_id: string;
3893
4223
  journal_id: string;
3894
4224
  payments?: {
@@ -4031,16 +4361,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4031
4361
  debit?: number | undefined;
4032
4362
  analytic_plan: string;
4033
4363
  }[]>;
4034
- getAnalyticLinesOfAccount(analytic_account_id: string): import("../types/api").RequestData<{
4035
- account_id: string;
4036
- description: string;
4037
- amount: number;
4038
- date: string;
4039
- id?: string | undefined;
4040
- }[]>;
4041
4364
  getJournalEntries(params: {
4042
4365
  date_from: string;
4043
4366
  date_to: string;
4367
+ folder_id?: string | undefined;
4044
4368
  unposted_allowed: "true" | "false";
4045
4369
  journal_id: string;
4046
4370
  partner_id?: string | undefined;
@@ -4072,6 +4396,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4072
4396
  getJournalEntriesWithMultiplePlans(params: {
4073
4397
  date_from: string;
4074
4398
  date_to: string;
4399
+ folder_id?: string | undefined;
4075
4400
  unposted_allowed: "true" | "false";
4076
4401
  journal_id: string;
4077
4402
  partner_id?: string | undefined;
@@ -4121,7 +4446,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4121
4446
  }[]>;
4122
4447
  getJournals(): import("../types/api").RequestData<{
4123
4448
  id: string;
4124
- code: string;
4449
+ code?: string | undefined;
4125
4450
  name: string;
4126
4451
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
4127
4452
  }[]>;
@@ -4132,10 +4457,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4132
4457
  scope?: "unknown" | "nat" | "eu" | "int" | undefined;
4133
4458
  rate: number;
4134
4459
  type: "unknown" | "sale" | "purchase" | "both";
4460
+ deductible_account?: string | undefined;
4461
+ payable_account?: string | undefined;
4135
4462
  }[]>;
4136
4463
  getMiscOperations(params: {}): import("../types/api").RequestData<{
4137
4464
  operation_number?: string | undefined;
4138
- operation_date: string;
4139
4465
  currency: string;
4140
4466
  currency_exchange_rate?: number | undefined;
4141
4467
  lines: {
@@ -4147,13 +4473,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4147
4473
  partner_id?: string | undefined;
4148
4474
  analytic_account?: string | undefined;
4149
4475
  }[];
4476
+ operation_date?: string | undefined;
4150
4477
  journal_id: string;
4151
4478
  status: "draft" | "posted" | "cancelled" | "matched";
4152
4479
  id: string;
4153
4480
  }[]>;
4154
4481
  createMiscOperation(operation: {
4155
4482
  operation_number?: string | undefined;
4156
- operation_date: string;
4157
4483
  currency: string;
4158
4484
  currency_exchange_rate?: number | undefined;
4159
4485
  lines: {
@@ -4165,11 +4491,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4165
4491
  partner_id?: string | undefined;
4166
4492
  analytic_account?: string | undefined;
4167
4493
  }[];
4494
+ operation_date: string;
4168
4495
  journal_id?: string | undefined;
4169
4496
  status?: "draft" | "posted" | undefined;
4170
- }): import("../types/api").RequestData<{
4497
+ }, params: {
4498
+ folder_id?: string | undefined;
4499
+ } | undefined): import("../types/api").RequestData<{
4171
4500
  operation_number?: string | undefined;
4172
- operation_date: string;
4173
4501
  currency: string;
4174
4502
  currency_exchange_rate?: number | undefined;
4175
4503
  lines: {
@@ -4181,13 +4509,15 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4181
4509
  partner_id?: string | undefined;
4182
4510
  analytic_account?: string | undefined;
4183
4511
  }[];
4512
+ operation_date?: string | undefined;
4184
4513
  journal_id: string;
4185
4514
  status: "draft" | "posted" | "cancelled" | "matched";
4186
4515
  id: string;
4187
4516
  }>;
4188
- getMiscOperation(operation_id: string): import("../types/api").RequestData<{
4517
+ getMiscOperation(operation_id: string, params: {
4518
+ folder_id?: string | undefined;
4519
+ } | undefined): import("../types/api").RequestData<{
4189
4520
  operation_number?: string | undefined;
4190
- operation_date: string;
4191
4521
  currency: string;
4192
4522
  currency_exchange_rate?: number | undefined;
4193
4523
  lines: {
@@ -4199,6 +4529,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4199
4529
  partner_id?: string | undefined;
4200
4530
  analytic_account?: string | undefined;
4201
4531
  }[];
4532
+ operation_date?: string | undefined;
4202
4533
  journal_id: string;
4203
4534
  status: "draft" | "posted" | "cancelled" | "matched";
4204
4535
  id: string;
@@ -4207,6 +4538,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4207
4538
  base64_string: string;
4208
4539
  }, params: {
4209
4540
  overwrite_existing?: "true" | "false" | undefined;
4541
+ folder_id?: string | undefined;
4210
4542
  } | undefined): import("../types/api").RequestData<{
4211
4543
  content: {
4212
4544
  'application/json': unknown;
@@ -4222,13 +4554,21 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4222
4554
  accounts: string[];
4223
4555
  start: string;
4224
4556
  end: string;
4225
- }): import("../types/api").RequestData<{
4557
+ }, params: {
4558
+ folder_id?: string | undefined;
4559
+ page?: number | undefined;
4560
+ size?: number | undefined;
4561
+ } | undefined): import("../types/api").RequestData<{
4226
4562
  account_number: string;
4227
4563
  debit: number;
4228
4564
  credit: number;
4229
4565
  balance: number;
4230
4566
  }[]>;
4231
- getEmployees(): import("../types/api").RequestData<{
4567
+ getEmployees(params: {
4568
+ folder_id?: string | undefined;
4569
+ page?: number | undefined;
4570
+ size?: number | undefined;
4571
+ } | undefined): import("../types/api").RequestData<{
4232
4572
  id: string;
4233
4573
  name: string;
4234
4574
  first_name?: string | undefined;
@@ -4242,6 +4582,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4242
4582
  account_number?: string | undefined;
4243
4583
  }[]>;
4244
4584
  getOutstandings(params: {
4585
+ folder_id?: string | undefined;
4245
4586
  unposted_allowed: "true" | "false";
4246
4587
  type: "client" | "supplier";
4247
4588
  }): import("../types/api").RequestData<{
@@ -4258,6 +4599,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4258
4599
  partner_id: string;
4259
4600
  account_number: string;
4260
4601
  reference?: string | undefined;
4602
+ payment_communication?: string | undefined;
4261
4603
  posted: boolean;
4262
4604
  }[]>;
4263
4605
  createFinancialEntryOld(financial_entry: {
@@ -4277,6 +4619,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4277
4619
  pdf?: string | undefined;
4278
4620
  }, params: {
4279
4621
  financial_counterpart_account?: string | undefined;
4622
+ folder_id?: string | undefined;
4280
4623
  } | undefined): import("../types/api").RequestData<{
4281
4624
  date: string;
4282
4625
  journal_id: string;
@@ -4310,6 +4653,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4310
4653
  pdf?: string | undefined;
4311
4654
  }, params: {
4312
4655
  financial_counterpart_account?: string | undefined;
4656
+ folder_id?: string | undefined;
4313
4657
  } | undefined): import("../types/api").RequestData<{
4314
4658
  date: string;
4315
4659
  journal_id: string;
@@ -4326,7 +4670,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4326
4670
  counterpart_account: string;
4327
4671
  }[];
4328
4672
  }[]>;
4329
- createJournalEntry(journal_entry: {
4673
+ createJournalEntryOld(journal_entry: {
4330
4674
  reference?: string | undefined;
4331
4675
  due_date?: string | undefined;
4332
4676
  journal_id: string;
@@ -4347,8 +4691,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4347
4691
  percentage: number;
4348
4692
  }[];
4349
4693
  }[] | undefined;
4350
- pdf?: string | undefined;
4351
4694
  }[];
4695
+ pdf?: string | undefined;
4352
4696
  }): import("../types/api").RequestData<{
4353
4697
  reference?: string | undefined;
4354
4698
  due_date?: string | undefined;
@@ -4379,6 +4723,65 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4379
4723
  }[] | undefined;
4380
4724
  }[] | undefined;
4381
4725
  }>;
4726
+ createJournalEntry(journal_entry: {
4727
+ reference?: string | undefined;
4728
+ due_date?: string | undefined;
4729
+ journal_id: string;
4730
+ number: string;
4731
+ currency: string;
4732
+ currency_exchange_rate?: number | undefined;
4733
+ date: string;
4734
+ items: {
4735
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
4736
+ account: string;
4737
+ force_general_account?: string | undefined;
4738
+ prioritise_thirdparty_account?: boolean | undefined;
4739
+ description?: string | undefined;
4740
+ debit: number;
4741
+ credit: number;
4742
+ analytic_distribution?: {
4743
+ analytic_plan: string;
4744
+ analytic_accounts: {
4745
+ analytic_account: string;
4746
+ percentage: number;
4747
+ }[];
4748
+ }[] | undefined;
4749
+ tax_code?: string | undefined;
4750
+ }[];
4751
+ pdf?: string | undefined;
4752
+ posted?: boolean | undefined;
4753
+ }, params: {
4754
+ folder_id?: string | undefined;
4755
+ } | undefined): import("../types/api").RequestData<{
4756
+ reference?: string | undefined;
4757
+ due_date?: string | undefined;
4758
+ journal_id: string;
4759
+ name?: string | undefined;
4760
+ journal_name: string;
4761
+ date?: string | undefined;
4762
+ posted?: boolean | undefined;
4763
+ id: string;
4764
+ items?: {
4765
+ account_number: string;
4766
+ partner_id?: string | undefined;
4767
+ description?: string | undefined;
4768
+ debit: number;
4769
+ credit: number;
4770
+ currency: string;
4771
+ currency_exchange_rate?: number | undefined;
4772
+ id: string;
4773
+ partner_name?: string | undefined;
4774
+ account_name: string;
4775
+ matching_numbers?: string[] | undefined;
4776
+ analytic_distribution?: {
4777
+ analytic_plan: string;
4778
+ analytic_accounts: {
4779
+ analytic_account: string;
4780
+ percentage: number;
4781
+ }[];
4782
+ }[] | undefined;
4783
+ }[] | undefined;
4784
+ }>;
4382
4785
  }>;
4383
4786
  invoicing: import("../types/api").ApiFor<{
4384
4787
  getInvoices(params: {
@@ -4386,6 +4789,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4386
4789
  payment_status?: "all" | "paid" | "unpaid" | undefined;
4387
4790
  date_from?: string | undefined;
4388
4791
  date_to?: string | undefined;
4792
+ updated_after?: string | undefined;
4389
4793
  page?: number | undefined;
4390
4794
  size?: number | undefined;
4391
4795
  } | undefined): import("../types/api").RequestData<{
@@ -4428,6 +4832,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4428
4832
  model?: string | undefined;
4429
4833
  name?: string | undefined;
4430
4834
  } | undefined;
4835
+ outstanding_amount?: number | undefined;
4836
+ last_updated_on?: string | undefined;
4431
4837
  }[]>;
4432
4838
  getInvoiceById(invoiceId: string, params: {
4433
4839
  include_pdf?: "true" | "false" | undefined;
@@ -4471,6 +4877,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4471
4877
  model?: string | undefined;
4472
4878
  name?: string | undefined;
4473
4879
  } | undefined;
4880
+ outstanding_amount?: number | undefined;
4881
+ last_updated_on?: string | undefined;
4474
4882
  }>;
4475
4883
  createInvoice(invoice: {
4476
4884
  currency: string;
@@ -4507,6 +4915,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4507
4915
  model?: string | undefined;
4508
4916
  name?: string | undefined;
4509
4917
  } | undefined;
4918
+ outstanding_amount?: number | undefined;
4510
4919
  }): import("../types/api").RequestData<{
4511
4920
  id: string;
4512
4921
  source_ref: {
@@ -4547,6 +4956,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4547
4956
  model?: string | undefined;
4548
4957
  name?: string | undefined;
4549
4958
  } | undefined;
4959
+ outstanding_amount?: number | undefined;
4960
+ last_updated_on?: string | undefined;
4550
4961
  }>;
4551
4962
  getProducts(): import("../types/api").RequestData<{
4552
4963
  id: string;
@@ -4859,6 +5270,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4859
5270
  currency?: string | undefined;
4860
5271
  addresses?: {
4861
5272
  address_type: "main" | "delivery" | "invoice";
5273
+ company_name?: string | undefined;
4862
5274
  first_name?: string | undefined;
4863
5275
  last_name?: string | undefined;
4864
5276
  street?: string | undefined;
@@ -4952,6 +5364,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4952
5364
  currency?: string | undefined;
4953
5365
  addresses?: {
4954
5366
  address_type: "main" | "delivery" | "invoice";
5367
+ company_name?: string | undefined;
4955
5368
  first_name?: string | undefined;
4956
5369
  last_name?: string | undefined;
4957
5370
  street?: string | undefined;
@@ -5104,15 +5517,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5104
5517
  };
5105
5518
  order_number?: string | undefined;
5106
5519
  customer?: {
5107
- email: string;
5108
5520
  first_name?: string | undefined;
5109
5521
  last_name?: string | undefined;
5110
5522
  phone?: string | undefined;
5111
5523
  internal_notes?: string | undefined;
5524
+ email?: string | undefined;
5112
5525
  id: string;
5113
5526
  } | undefined;
5114
5527
  billing_address?: {
5115
5528
  address_type: "main" | "delivery" | "invoice";
5529
+ company_name?: string | undefined;
5116
5530
  first_name?: string | undefined;
5117
5531
  last_name?: string | undefined;
5118
5532
  street?: string | undefined;
@@ -5126,6 +5540,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5126
5540
  } | undefined;
5127
5541
  shipping_address?: {
5128
5542
  address_type: "main" | "delivery" | "invoice";
5543
+ company_name?: string | undefined;
5129
5544
  first_name?: string | undefined;
5130
5545
  last_name?: string | undefined;
5131
5546
  street?: string | undefined;
@@ -5151,6 +5566,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5151
5566
  total: number;
5152
5567
  refunded_amount?: number | undefined;
5153
5568
  detailed_refunds?: {
5569
+ id: string;
5570
+ source_ref: {
5571
+ id?: string | undefined;
5572
+ model?: string | undefined;
5573
+ };
5154
5574
  created_on?: string | undefined;
5155
5575
  total: number;
5156
5576
  reason?: string | undefined;
@@ -5167,6 +5587,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5167
5587
  total: number;
5168
5588
  }[] | undefined;
5169
5589
  other?: number | undefined;
5590
+ shipping_refunds?: {
5591
+ untaxed_amount: number;
5592
+ tax_amount: number;
5593
+ total: number;
5594
+ }[] | undefined;
5170
5595
  }[] | undefined;
5171
5596
  currency: string;
5172
5597
  note?: string | undefined;
@@ -5176,6 +5601,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5176
5601
  id?: string | undefined;
5177
5602
  model?: string | undefined;
5178
5603
  };
5604
+ created_on?: string | undefined;
5179
5605
  variant?: {
5180
5606
  id: string;
5181
5607
  sku?: string | undefined;
@@ -5184,6 +5610,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5184
5610
  quantity: number;
5185
5611
  unit_price: number;
5186
5612
  description: string;
5613
+ tax_id?: string | undefined;
5187
5614
  tax_rate: number;
5188
5615
  untaxed_amount: number;
5189
5616
  tax_amount: number;
@@ -5193,22 +5620,42 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5193
5620
  description: string;
5194
5621
  amount: number;
5195
5622
  }[] | undefined;
5623
+ gift_card?: boolean | undefined;
5196
5624
  }[];
5197
5625
  other_fees?: {
5626
+ created_on?: string | undefined;
5198
5627
  type: "other" | "shipping";
5199
5628
  tax_rate: number;
5629
+ tax_id?: string | undefined;
5630
+ discounts?: {
5631
+ name: string;
5632
+ description: string;
5633
+ amount: number;
5634
+ }[] | undefined;
5200
5635
  untaxed_amount: number;
5201
5636
  tax_amount: number;
5202
5637
  total: number;
5203
5638
  }[] | undefined;
5639
+ payment_method_id?: string | undefined;
5640
+ transactions?: {
5641
+ id: string;
5642
+ payment_method_id?: string | undefined;
5643
+ payment_method_name?: string | undefined;
5644
+ amount: number;
5645
+ status: "failed" | "pending" | "success";
5646
+ }[] | undefined;
5647
+ payment_methods?: {
5648
+ id: string;
5649
+ name?: string | undefined;
5650
+ }[] | undefined;
5204
5651
  }[]>;
5205
5652
  createOrder(order: {
5206
5653
  customer: {
5207
- email: string;
5208
5654
  first_name?: string | undefined;
5209
5655
  last_name?: string | undefined;
5210
5656
  phone?: string | undefined;
5211
5657
  internal_notes?: string | undefined;
5658
+ email: string;
5212
5659
  };
5213
5660
  billing_address: {
5214
5661
  first_name: string;
@@ -5251,15 +5698,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5251
5698
  };
5252
5699
  order_number?: string | undefined;
5253
5700
  customer?: {
5254
- email: string;
5255
5701
  first_name?: string | undefined;
5256
5702
  last_name?: string | undefined;
5257
5703
  phone?: string | undefined;
5258
5704
  internal_notes?: string | undefined;
5705
+ email?: string | undefined;
5259
5706
  id: string;
5260
5707
  } | undefined;
5261
5708
  billing_address?: {
5262
5709
  address_type: "main" | "delivery" | "invoice";
5710
+ company_name?: string | undefined;
5263
5711
  first_name?: string | undefined;
5264
5712
  last_name?: string | undefined;
5265
5713
  street?: string | undefined;
@@ -5273,6 +5721,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5273
5721
  } | undefined;
5274
5722
  shipping_address?: {
5275
5723
  address_type: "main" | "delivery" | "invoice";
5724
+ company_name?: string | undefined;
5276
5725
  first_name?: string | undefined;
5277
5726
  last_name?: string | undefined;
5278
5727
  street?: string | undefined;
@@ -5298,6 +5747,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5298
5747
  total: number;
5299
5748
  refunded_amount?: number | undefined;
5300
5749
  detailed_refunds?: {
5750
+ id: string;
5751
+ source_ref: {
5752
+ id?: string | undefined;
5753
+ model?: string | undefined;
5754
+ };
5301
5755
  created_on?: string | undefined;
5302
5756
  total: number;
5303
5757
  reason?: string | undefined;
@@ -5314,6 +5768,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5314
5768
  total: number;
5315
5769
  }[] | undefined;
5316
5770
  other?: number | undefined;
5771
+ shipping_refunds?: {
5772
+ untaxed_amount: number;
5773
+ tax_amount: number;
5774
+ total: number;
5775
+ }[] | undefined;
5317
5776
  }[] | undefined;
5318
5777
  currency: string;
5319
5778
  note?: string | undefined;
@@ -5323,6 +5782,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5323
5782
  id?: string | undefined;
5324
5783
  model?: string | undefined;
5325
5784
  };
5785
+ created_on?: string | undefined;
5326
5786
  variant?: {
5327
5787
  id: string;
5328
5788
  sku?: string | undefined;
@@ -5331,6 +5791,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5331
5791
  quantity: number;
5332
5792
  unit_price: number;
5333
5793
  description: string;
5794
+ tax_id?: string | undefined;
5334
5795
  tax_rate: number;
5335
5796
  untaxed_amount: number;
5336
5797
  tax_amount: number;
@@ -5340,32 +5801,53 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5340
5801
  description: string;
5341
5802
  amount: number;
5342
5803
  }[] | undefined;
5804
+ gift_card?: boolean | undefined;
5343
5805
  }[];
5344
5806
  other_fees?: {
5807
+ created_on?: string | undefined;
5345
5808
  type: "other" | "shipping";
5346
5809
  tax_rate: number;
5810
+ tax_id?: string | undefined;
5811
+ discounts?: {
5812
+ name: string;
5813
+ description: string;
5814
+ amount: number;
5815
+ }[] | undefined;
5347
5816
  untaxed_amount: number;
5348
5817
  tax_amount: number;
5349
5818
  total: number;
5350
5819
  }[] | undefined;
5351
- }>;
5352
- getOrder(orderId: string): import("../types/api").RequestData<{
5353
- id: string;
5354
- source_ref: {
5355
- id?: string | undefined;
5356
- model?: string | undefined;
5820
+ payment_method_id?: string | undefined;
5821
+ transactions?: {
5822
+ id: string;
5823
+ payment_method_id?: string | undefined;
5824
+ payment_method_name?: string | undefined;
5825
+ amount: number;
5826
+ status: "failed" | "pending" | "success";
5827
+ }[] | undefined;
5828
+ payment_methods?: {
5829
+ id: string;
5830
+ name?: string | undefined;
5831
+ }[] | undefined;
5832
+ }>;
5833
+ getOrder(orderId: string): import("../types/api").RequestData<{
5834
+ id: string;
5835
+ source_ref: {
5836
+ id?: string | undefined;
5837
+ model?: string | undefined;
5357
5838
  };
5358
5839
  order_number?: string | undefined;
5359
5840
  customer?: {
5360
- email: string;
5361
5841
  first_name?: string | undefined;
5362
5842
  last_name?: string | undefined;
5363
5843
  phone?: string | undefined;
5364
5844
  internal_notes?: string | undefined;
5845
+ email?: string | undefined;
5365
5846
  id: string;
5366
5847
  } | undefined;
5367
5848
  billing_address?: {
5368
5849
  address_type: "main" | "delivery" | "invoice";
5850
+ company_name?: string | undefined;
5369
5851
  first_name?: string | undefined;
5370
5852
  last_name?: string | undefined;
5371
5853
  street?: string | undefined;
@@ -5379,6 +5861,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5379
5861
  } | undefined;
5380
5862
  shipping_address?: {
5381
5863
  address_type: "main" | "delivery" | "invoice";
5864
+ company_name?: string | undefined;
5382
5865
  first_name?: string | undefined;
5383
5866
  last_name?: string | undefined;
5384
5867
  street?: string | undefined;
@@ -5404,6 +5887,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5404
5887
  total: number;
5405
5888
  refunded_amount?: number | undefined;
5406
5889
  detailed_refunds?: {
5890
+ id: string;
5891
+ source_ref: {
5892
+ id?: string | undefined;
5893
+ model?: string | undefined;
5894
+ };
5407
5895
  created_on?: string | undefined;
5408
5896
  total: number;
5409
5897
  reason?: string | undefined;
@@ -5420,6 +5908,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5420
5908
  total: number;
5421
5909
  }[] | undefined;
5422
5910
  other?: number | undefined;
5911
+ shipping_refunds?: {
5912
+ untaxed_amount: number;
5913
+ tax_amount: number;
5914
+ total: number;
5915
+ }[] | undefined;
5423
5916
  }[] | undefined;
5424
5917
  currency: string;
5425
5918
  note?: string | undefined;
@@ -5429,6 +5922,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5429
5922
  id?: string | undefined;
5430
5923
  model?: string | undefined;
5431
5924
  };
5925
+ created_on?: string | undefined;
5432
5926
  variant?: {
5433
5927
  id: string;
5434
5928
  sku?: string | undefined;
@@ -5437,6 +5931,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5437
5931
  quantity: number;
5438
5932
  unit_price: number;
5439
5933
  description: string;
5934
+ tax_id?: string | undefined;
5440
5935
  tax_rate: number;
5441
5936
  untaxed_amount: number;
5442
5937
  tax_amount: number;
@@ -5446,15 +5941,67 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5446
5941
  description: string;
5447
5942
  amount: number;
5448
5943
  }[] | undefined;
5944
+ gift_card?: boolean | undefined;
5449
5945
  }[];
5450
5946
  other_fees?: {
5947
+ created_on?: string | undefined;
5451
5948
  type: "other" | "shipping";
5452
5949
  tax_rate: number;
5950
+ tax_id?: string | undefined;
5951
+ discounts?: {
5952
+ name: string;
5953
+ description: string;
5954
+ amount: number;
5955
+ }[] | undefined;
5453
5956
  untaxed_amount: number;
5454
5957
  tax_amount: number;
5455
5958
  total: number;
5456
5959
  }[] | undefined;
5960
+ payment_method_id?: string | undefined;
5961
+ transactions?: {
5962
+ id: string;
5963
+ payment_method_id?: string | undefined;
5964
+ payment_method_name?: string | undefined;
5965
+ amount: number;
5966
+ status: "failed" | "pending" | "success";
5967
+ }[] | undefined;
5968
+ payment_methods?: {
5969
+ id: string;
5970
+ name?: string | undefined;
5971
+ }[] | undefined;
5457
5972
  }>;
5973
+ getPaymentMethods(params: {}): import("../types/api").RequestData<{
5974
+ id: string;
5975
+ source_ref: {
5976
+ id?: string | undefined;
5977
+ model?: string | undefined;
5978
+ };
5979
+ name: string;
5980
+ active: boolean;
5981
+ }[]>;
5982
+ getProductCategories(params: {}): import("../types/api").RequestData<{
5983
+ id: string;
5984
+ source_ref: {
5985
+ id?: string | undefined;
5986
+ model?: string | undefined;
5987
+ };
5988
+ name: string;
5989
+ parent_id?: string | undefined;
5990
+ }[]>;
5991
+ getTaxes(params: {}): import("../types/api").RequestData<{
5992
+ id: string;
5993
+ source_ref: {
5994
+ id?: string | undefined;
5995
+ model?: string | undefined;
5996
+ };
5997
+ label: string;
5998
+ rate: number;
5999
+ country?: string | undefined;
6000
+ }[]>;
6001
+ getCountries(params: {}): import("../types/api").RequestData<{
6002
+ code: string;
6003
+ name: string;
6004
+ }[]>;
5458
6005
  }>;
5459
6006
  custom: import("../types/api").ApiFor<{
5460
6007
  get(name: string, resource: string, params?: any): import("../types/api").RequestData<any>;
@@ -5482,12 +6029,15 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5482
6029
  link_createdon: string;
5483
6030
  link_mappings?: {
5484
6031
  name: string;
5485
- description: string;
5486
- logic?: Record<string, never> | undefined;
6032
+ description?: string | undefined;
6033
+ display_order?: number | undefined;
6034
+ challenge_question?: string | undefined;
5487
6035
  values: {
5488
6036
  source_id: string;
5489
6037
  target_id: string;
5490
6038
  }[];
6039
+ sub_mapping_name: string;
6040
+ sub_mapping_description?: string | undefined;
5491
6041
  }[] | undefined;
5492
6042
  link_metadata?: Record<string, never> | undefined;
5493
6043
  enabled_flows?: {
@@ -5514,7 +6064,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5514
6064
  }[] | undefined;
5515
6065
  } | undefined;
5516
6066
  values: Record<string, never>;
5517
- enabled_on: string;
6067
+ enabled_on?: string | undefined;
6068
+ trigger: {
6069
+ id: string;
6070
+ type: "timer" | "event";
6071
+ cronschedule?: string | undefined;
6072
+ };
5518
6073
  }[] | undefined;
5519
6074
  }>;
5520
6075
  getDataByDataStoreName: (dataStoreName: string, params?: object | undefined) => Promise<{
@@ -5536,6 +6091,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5536
6091
  id: string;
5537
6092
  created_on: string;
5538
6093
  }[]>;
6094
+ deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
5539
6095
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
5540
6096
  }, context: any) => any, log?: boolean) => Promise<void>;
5541
6097
  flowId: string;
@@ -5564,6 +6120,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5564
6120
  api: string;
5565
6121
  data?: Record<string, never> | undefined;
5566
6122
  status: "active" | "inactive";
6123
+ agent?: {
6124
+ status: "up" | "down";
6125
+ } | undefined;
5567
6126
  }[]>;
5568
6127
  createConnection: (body?: {
5569
6128
  integrationid?: number | undefined;
@@ -5588,6 +6147,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5588
6147
  deleteConnection: (connectionId: string) => Promise<{
5589
6148
  content: never;
5590
6149
  }>;
6150
+ enableFlow: (syncId: string, flowId: string, body: {
6151
+ integrationids?: string[] | undefined;
6152
+ triggerid?: string | undefined;
6153
+ cronschedule?: string | undefined;
6154
+ }) => Promise<import("../types/sync").SimpleResponseModel>;
5591
6155
  getSyncUrl: (body: {
5592
6156
  syncid: string;
5593
6157
  integrationids?: string[] | undefined;
@@ -5638,12 +6202,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5638
6202
  total: number;
5639
6203
  tax_amount: number;
5640
6204
  tax_rate?: number | undefined;
5641
- description: string;
6205
+ description?: string | undefined;
5642
6206
  discounts?: {
5643
6207
  name?: string | undefined;
5644
6208
  total: number;
5645
6209
  }[] | undefined;
5646
6210
  product_id?: string | undefined;
6211
+ accounting_category_id?: string | undefined;
5647
6212
  }[];
5648
6213
  payments: {
5649
6214
  id?: string | undefined;
@@ -5685,6 +6250,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5685
6250
  country?: string | undefined;
5686
6251
  }[] | undefined;
5687
6252
  loyalty?: number | undefined;
6253
+ birthdate?: string | undefined;
5688
6254
  }[]>;
5689
6255
  getOrder(orderId: string): import("../types/api").RequestData<{
5690
6256
  id: string;
@@ -5705,12 +6271,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5705
6271
  total: number;
5706
6272
  tax_amount: number;
5707
6273
  tax_rate?: number | undefined;
5708
- description: string;
6274
+ description?: string | undefined;
5709
6275
  discounts?: {
5710
6276
  name?: string | undefined;
5711
6277
  total: number;
5712
6278
  }[] | undefined;
5713
6279
  product_id?: string | undefined;
6280
+ accounting_category_id?: string | undefined;
5714
6281
  }[];
5715
6282
  payments: {
5716
6283
  id?: string | undefined;
@@ -5752,6 +6319,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5752
6319
  country?: string | undefined;
5753
6320
  }[] | undefined;
5754
6321
  loyalty?: number | undefined;
6322
+ birthdate?: string | undefined;
5755
6323
  }>;
5756
6324
  createCustomer(customer: {
5757
6325
  first_name: string;
@@ -5786,6 +6354,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5786
6354
  country?: string | undefined;
5787
6355
  }[] | undefined;
5788
6356
  loyalty?: number | undefined;
6357
+ birthdate?: string | undefined;
5789
6358
  }>;
5790
6359
  getPaymentMethods(params: {}): import("../types/api").RequestData<{
5791
6360
  id: string;
@@ -5794,9 +6363,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5794
6363
  }[]>;
5795
6364
  getProductCategories(params: {}): import("../types/api").RequestData<{
5796
6365
  id: string;
6366
+ source_ref: {
6367
+ id?: string | undefined;
6368
+ model?: string | undefined;
6369
+ };
5797
6370
  name: string;
5798
- description?: string | undefined;
5799
- id_parent?: string | undefined;
6371
+ parent_id?: string | undefined;
5800
6372
  }[]>;
5801
6373
  getProducts(params: {}): import("../types/api").RequestData<{
5802
6374
  id: string;
@@ -5807,6 +6379,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5807
6379
  unit_price: number;
5808
6380
  tax_rate: number;
5809
6381
  }[];
6382
+ accounting_category_ids?: string[] | undefined;
5810
6383
  }[]>;
5811
6384
  getSales(params: {
5812
6385
  date_from: string;
@@ -5861,12 +6434,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5861
6434
  total: number;
5862
6435
  tax_amount: number;
5863
6436
  tax_rate?: number | undefined;
5864
- description: string;
6437
+ description?: string | undefined;
5865
6438
  discounts?: {
5866
6439
  name?: string | undefined;
5867
6440
  total: number;
5868
6441
  }[] | undefined;
5869
6442
  product_id?: string | undefined;
6443
+ accounting_category_id?: string | undefined;
5870
6444
  }[];
5871
6445
  payments: {
5872
6446
  id?: string | undefined;
@@ -5889,6 +6463,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5889
6463
  total: number;
5890
6464
  }[] | undefined;
5891
6465
  }>;
6466
+ getAccountingCategories(params: {}): import("../types/api").RequestData<{
6467
+ id: string;
6468
+ name: string;
6469
+ id_parent?: string | undefined;
6470
+ code?: string | undefined;
6471
+ ledger_account_code?: string | undefined;
6472
+ posting_account_code?: string | undefined;
6473
+ }[]>;
5892
6474
  }>;
5893
6475
  accounting: import("../types/api").ApiFor<{
5894
6476
  getAnalyticPlans(): import("../types/api").RequestData<{
@@ -5967,6 +6549,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5967
6549
  account_number?: string | undefined;
5968
6550
  }, params: {
5969
6551
  force_merge?: string | undefined;
6552
+ folder_id?: string | undefined;
5970
6553
  } | undefined): import("../types/api").RequestData<{
5971
6554
  external_reference?: string | undefined;
5972
6555
  first_name?: string | undefined;
@@ -6178,6 +6761,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6178
6761
  account_number?: string | undefined;
6179
6762
  }, params: {
6180
6763
  force_merge?: string | undefined;
6764
+ folder_id?: string | undefined;
6181
6765
  } | undefined): import("../types/api").RequestData<{
6182
6766
  external_reference?: string | undefined;
6183
6767
  first_name?: string | undefined;
@@ -6321,8 +6905,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6321
6905
  createInvoice(invoice: {
6322
6906
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6323
6907
  invoice_number?: string | undefined;
6324
- invoice_date: string;
6325
- due_date: string;
6326
6908
  currency: string;
6327
6909
  untaxed_amount: number;
6328
6910
  tax_amount: number;
@@ -6330,6 +6912,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6330
6912
  reference?: string | undefined;
6331
6913
  payment_communication?: string | undefined;
6332
6914
  customer_memo?: string | undefined;
6915
+ invoice_date: string;
6916
+ due_date: string;
6333
6917
  partner_id: string;
6334
6918
  journal_id?: string | undefined;
6335
6919
  status?: "draft" | "posted" | undefined;
@@ -6341,6 +6925,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6341
6925
  invoice_correction_credit_account_number?: string | undefined;
6342
6926
  invoice_correction_debit_account_number?: string | undefined;
6343
6927
  } | undefined;
6928
+ nl_payment_terms_split?: {
6929
+ g_account: {
6930
+ amount: number;
6931
+ iban: string;
6932
+ };
6933
+ n_account: {
6934
+ amount: number;
6935
+ iban: string;
6936
+ };
6937
+ } | undefined;
6344
6938
  lines: {
6345
6939
  line_number?: number | undefined;
6346
6940
  description: string;
@@ -6358,11 +6952,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6358
6952
  }, params: {
6359
6953
  force_financial_period?: string | undefined;
6360
6954
  regroup_lines?: "true" | "false" | undefined;
6955
+ folder_id?: string | undefined;
6361
6956
  } | undefined): import("../types/api").RequestData<{
6362
6957
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6363
6958
  invoice_number?: string | undefined;
6364
- invoice_date: string;
6365
- due_date: string;
6366
6959
  currency: string;
6367
6960
  untaxed_amount: number;
6368
6961
  tax_amount: number;
@@ -6371,6 +6964,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6371
6964
  payment_communication?: string | undefined;
6372
6965
  customer_memo?: string | undefined;
6373
6966
  id?: string | undefined;
6967
+ invoice_date: string;
6968
+ due_date: string;
6374
6969
  partner_id: string;
6375
6970
  journal_id: string;
6376
6971
  payments?: {
@@ -6406,8 +7001,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6406
7001
  createInvoiceWithMultiplePlans(invoice: {
6407
7002
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6408
7003
  invoice_number?: string | undefined;
6409
- invoice_date: string;
6410
- due_date: string;
6411
7004
  currency: string;
6412
7005
  untaxed_amount: number;
6413
7006
  tax_amount: number;
@@ -6415,6 +7008,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6415
7008
  reference?: string | undefined;
6416
7009
  payment_communication?: string | undefined;
6417
7010
  customer_memo?: string | undefined;
7011
+ invoice_date: string;
7012
+ due_date: string;
6418
7013
  partner_id: string;
6419
7014
  journal_id?: string | undefined;
6420
7015
  status?: "draft" | "posted" | undefined;
@@ -6426,6 +7021,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6426
7021
  invoice_correction_credit_account_number?: string | undefined;
6427
7022
  invoice_correction_debit_account_number?: string | undefined;
6428
7023
  } | undefined;
7024
+ nl_payment_terms_split?: {
7025
+ g_account: {
7026
+ amount: number;
7027
+ iban: string;
7028
+ };
7029
+ n_account: {
7030
+ amount: number;
7031
+ iban: string;
7032
+ };
7033
+ } | undefined;
6429
7034
  lines: {
6430
7035
  line_number?: number | undefined;
6431
7036
  description: string;
@@ -6449,11 +7054,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6449
7054
  }, params: {
6450
7055
  force_financial_period?: string | undefined;
6451
7056
  regroup_lines?: "true" | "false" | undefined;
7057
+ folder_id?: string | undefined;
6452
7058
  } | undefined): import("../types/api").RequestData<{
6453
7059
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6454
7060
  invoice_number?: string | undefined;
6455
- invoice_date: string;
6456
- due_date: string;
6457
7061
  currency: string;
6458
7062
  untaxed_amount: number;
6459
7063
  tax_amount: number;
@@ -6462,6 +7066,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6462
7066
  payment_communication?: string | undefined;
6463
7067
  customer_memo?: string | undefined;
6464
7068
  id?: string | undefined;
7069
+ invoice_date: string;
7070
+ due_date: string;
6465
7071
  partner_id: string;
6466
7072
  journal_id: string;
6467
7073
  payments?: {
@@ -6503,8 +7109,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6503
7109
  getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
6504
7110
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6505
7111
  invoice_number?: string | undefined;
6506
- invoice_date: string;
6507
- due_date: string;
6508
7112
  currency: string;
6509
7113
  untaxed_amount: number;
6510
7114
  tax_amount: number;
@@ -6513,6 +7117,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6513
7117
  payment_communication?: string | undefined;
6514
7118
  customer_memo?: string | undefined;
6515
7119
  id?: string | undefined;
7120
+ invoice_date: string;
7121
+ due_date: string;
6516
7122
  partner_id: string;
6517
7123
  journal_id: string;
6518
7124
  payments?: {
@@ -6547,11 +7153,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6547
7153
  }[]>;
6548
7154
  getInvoice(invoiceId: string, params: {
6549
7155
  include_payments?: "true" | "false" | undefined;
7156
+ folder_id?: string | undefined;
6550
7157
  } | undefined): import("../types/api").RequestData<{
6551
7158
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6552
7159
  invoice_number?: string | undefined;
6553
- invoice_date: string;
6554
- due_date: string;
6555
7160
  currency: string;
6556
7161
  untaxed_amount: number;
6557
7162
  tax_amount: number;
@@ -6560,6 +7165,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6560
7165
  payment_communication?: string | undefined;
6561
7166
  customer_memo?: string | undefined;
6562
7167
  id?: string | undefined;
7168
+ invoice_date: string;
7169
+ due_date: string;
6563
7170
  partner_id: string;
6564
7171
  journal_id: string;
6565
7172
  payments?: {
@@ -6594,11 +7201,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6594
7201
  }>;
6595
7202
  getInvoiceWithMultiplePlans(invoiceId: string, params: {
6596
7203
  include_payments?: "true" | "false" | undefined;
7204
+ folder_id?: string | undefined;
6597
7205
  } | undefined): import("../types/api").RequestData<{
6598
7206
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6599
7207
  invoice_number?: string | undefined;
6600
- invoice_date: string;
6601
- due_date: string;
6602
7208
  currency: string;
6603
7209
  untaxed_amount: number;
6604
7210
  tax_amount: number;
@@ -6607,6 +7213,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6607
7213
  payment_communication?: string | undefined;
6608
7214
  customer_memo?: string | undefined;
6609
7215
  id?: string | undefined;
7216
+ invoice_date: string;
7217
+ due_date: string;
6610
7218
  partner_id: string;
6611
7219
  journal_id: string;
6612
7220
  payments?: {
@@ -6648,8 +7256,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6648
7256
  getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
6649
7257
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6650
7258
  invoice_number?: string | undefined;
6651
- invoice_date: string;
6652
- due_date: string;
6653
7259
  currency: string;
6654
7260
  untaxed_amount: number;
6655
7261
  tax_amount: number;
@@ -6658,6 +7264,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6658
7264
  payment_communication?: string | undefined;
6659
7265
  customer_memo?: string | undefined;
6660
7266
  id?: string | undefined;
7267
+ invoice_date: string;
7268
+ due_date: string;
6661
7269
  partner_id: string;
6662
7270
  journal_id: string;
6663
7271
  payments?: {
@@ -6800,16 +7408,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6800
7408
  debit?: number | undefined;
6801
7409
  analytic_plan: string;
6802
7410
  }[]>;
6803
- getAnalyticLinesOfAccount(analytic_account_id: string): import("../types/api").RequestData<{
6804
- account_id: string;
6805
- description: string;
6806
- amount: number;
6807
- date: string;
6808
- id?: string | undefined;
6809
- }[]>;
6810
7411
  getJournalEntries(params: {
6811
7412
  date_from: string;
6812
7413
  date_to: string;
7414
+ folder_id?: string | undefined;
6813
7415
  unposted_allowed: "true" | "false";
6814
7416
  journal_id: string;
6815
7417
  partner_id?: string | undefined;
@@ -6841,6 +7443,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6841
7443
  getJournalEntriesWithMultiplePlans(params: {
6842
7444
  date_from: string;
6843
7445
  date_to: string;
7446
+ folder_id?: string | undefined;
6844
7447
  unposted_allowed: "true" | "false";
6845
7448
  journal_id: string;
6846
7449
  partner_id?: string | undefined;
@@ -6890,7 +7493,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6890
7493
  }[]>;
6891
7494
  getJournals(): import("../types/api").RequestData<{
6892
7495
  id: string;
6893
- code: string;
7496
+ code?: string | undefined;
6894
7497
  name: string;
6895
7498
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
6896
7499
  }[]>;
@@ -6901,10 +7504,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6901
7504
  scope?: "unknown" | "nat" | "eu" | "int" | undefined;
6902
7505
  rate: number;
6903
7506
  type: "unknown" | "sale" | "purchase" | "both";
7507
+ deductible_account?: string | undefined;
7508
+ payable_account?: string | undefined;
6904
7509
  }[]>;
6905
7510
  getMiscOperations(params: {}): import("../types/api").RequestData<{
6906
7511
  operation_number?: string | undefined;
6907
- operation_date: string;
6908
7512
  currency: string;
6909
7513
  currency_exchange_rate?: number | undefined;
6910
7514
  lines: {
@@ -6916,13 +7520,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6916
7520
  partner_id?: string | undefined;
6917
7521
  analytic_account?: string | undefined;
6918
7522
  }[];
7523
+ operation_date?: string | undefined;
6919
7524
  journal_id: string;
6920
7525
  status: "draft" | "posted" | "cancelled" | "matched";
6921
7526
  id: string;
6922
7527
  }[]>;
6923
7528
  createMiscOperation(operation: {
6924
7529
  operation_number?: string | undefined;
6925
- operation_date: string;
6926
7530
  currency: string;
6927
7531
  currency_exchange_rate?: number | undefined;
6928
7532
  lines: {
@@ -6934,11 +7538,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6934
7538
  partner_id?: string | undefined;
6935
7539
  analytic_account?: string | undefined;
6936
7540
  }[];
7541
+ operation_date: string;
6937
7542
  journal_id?: string | undefined;
6938
7543
  status?: "draft" | "posted" | undefined;
6939
- }): import("../types/api").RequestData<{
7544
+ }, params: {
7545
+ folder_id?: string | undefined;
7546
+ } | undefined): import("../types/api").RequestData<{
6940
7547
  operation_number?: string | undefined;
6941
- operation_date: string;
6942
7548
  currency: string;
6943
7549
  currency_exchange_rate?: number | undefined;
6944
7550
  lines: {
@@ -6950,13 +7556,15 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6950
7556
  partner_id?: string | undefined;
6951
7557
  analytic_account?: string | undefined;
6952
7558
  }[];
7559
+ operation_date?: string | undefined;
6953
7560
  journal_id: string;
6954
7561
  status: "draft" | "posted" | "cancelled" | "matched";
6955
7562
  id: string;
6956
7563
  }>;
6957
- getMiscOperation(operation_id: string): import("../types/api").RequestData<{
7564
+ getMiscOperation(operation_id: string, params: {
7565
+ folder_id?: string | undefined;
7566
+ } | undefined): import("../types/api").RequestData<{
6958
7567
  operation_number?: string | undefined;
6959
- operation_date: string;
6960
7568
  currency: string;
6961
7569
  currency_exchange_rate?: number | undefined;
6962
7570
  lines: {
@@ -6968,6 +7576,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6968
7576
  partner_id?: string | undefined;
6969
7577
  analytic_account?: string | undefined;
6970
7578
  }[];
7579
+ operation_date?: string | undefined;
6971
7580
  journal_id: string;
6972
7581
  status: "draft" | "posted" | "cancelled" | "matched";
6973
7582
  id: string;
@@ -6976,6 +7585,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6976
7585
  base64_string: string;
6977
7586
  }, params: {
6978
7587
  overwrite_existing?: "true" | "false" | undefined;
7588
+ folder_id?: string | undefined;
6979
7589
  } | undefined): import("../types/api").RequestData<{
6980
7590
  content: {
6981
7591
  'application/json': unknown;
@@ -6991,13 +7601,21 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6991
7601
  accounts: string[];
6992
7602
  start: string;
6993
7603
  end: string;
6994
- }): import("../types/api").RequestData<{
7604
+ }, params: {
7605
+ folder_id?: string | undefined;
7606
+ page?: number | undefined;
7607
+ size?: number | undefined;
7608
+ } | undefined): import("../types/api").RequestData<{
6995
7609
  account_number: string;
6996
7610
  debit: number;
6997
7611
  credit: number;
6998
7612
  balance: number;
6999
7613
  }[]>;
7000
- getEmployees(): import("../types/api").RequestData<{
7614
+ getEmployees(params: {
7615
+ folder_id?: string | undefined;
7616
+ page?: number | undefined;
7617
+ size?: number | undefined;
7618
+ } | undefined): import("../types/api").RequestData<{
7001
7619
  id: string;
7002
7620
  name: string;
7003
7621
  first_name?: string | undefined;
@@ -7011,6 +7629,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7011
7629
  account_number?: string | undefined;
7012
7630
  }[]>;
7013
7631
  getOutstandings(params: {
7632
+ folder_id?: string | undefined;
7014
7633
  unposted_allowed: "true" | "false";
7015
7634
  type: "client" | "supplier";
7016
7635
  }): import("../types/api").RequestData<{
@@ -7027,6 +7646,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7027
7646
  partner_id: string;
7028
7647
  account_number: string;
7029
7648
  reference?: string | undefined;
7649
+ payment_communication?: string | undefined;
7030
7650
  posted: boolean;
7031
7651
  }[]>;
7032
7652
  createFinancialEntryOld(financial_entry: {
@@ -7046,6 +7666,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7046
7666
  pdf?: string | undefined;
7047
7667
  }, params: {
7048
7668
  financial_counterpart_account?: string | undefined;
7669
+ folder_id?: string | undefined;
7049
7670
  } | undefined): import("../types/api").RequestData<{
7050
7671
  date: string;
7051
7672
  journal_id: string;
@@ -7079,6 +7700,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7079
7700
  pdf?: string | undefined;
7080
7701
  }, params: {
7081
7702
  financial_counterpart_account?: string | undefined;
7703
+ folder_id?: string | undefined;
7082
7704
  } | undefined): import("../types/api").RequestData<{
7083
7705
  date: string;
7084
7706
  journal_id: string;
@@ -7095,7 +7717,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7095
7717
  counterpart_account: string;
7096
7718
  }[];
7097
7719
  }[]>;
7098
- createJournalEntry(journal_entry: {
7720
+ createJournalEntryOld(journal_entry: {
7099
7721
  reference?: string | undefined;
7100
7722
  due_date?: string | undefined;
7101
7723
  journal_id: string;
@@ -7116,8 +7738,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7116
7738
  percentage: number;
7117
7739
  }[];
7118
7740
  }[] | undefined;
7119
- pdf?: string | undefined;
7120
7741
  }[];
7742
+ pdf?: string | undefined;
7121
7743
  }): import("../types/api").RequestData<{
7122
7744
  reference?: string | undefined;
7123
7745
  due_date?: string | undefined;
@@ -7148,6 +7770,65 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7148
7770
  }[] | undefined;
7149
7771
  }[] | undefined;
7150
7772
  }>;
7773
+ createJournalEntry(journal_entry: {
7774
+ reference?: string | undefined;
7775
+ due_date?: string | undefined;
7776
+ journal_id: string;
7777
+ number: string;
7778
+ currency: string;
7779
+ currency_exchange_rate?: number | undefined;
7780
+ date: string;
7781
+ items: {
7782
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
7783
+ account: string;
7784
+ force_general_account?: string | undefined;
7785
+ prioritise_thirdparty_account?: boolean | undefined;
7786
+ description?: string | undefined;
7787
+ debit: number;
7788
+ credit: number;
7789
+ analytic_distribution?: {
7790
+ analytic_plan: string;
7791
+ analytic_accounts: {
7792
+ analytic_account: string;
7793
+ percentage: number;
7794
+ }[];
7795
+ }[] | undefined;
7796
+ tax_code?: string | undefined;
7797
+ }[];
7798
+ pdf?: string | undefined;
7799
+ posted?: boolean | undefined;
7800
+ }, params: {
7801
+ folder_id?: string | undefined;
7802
+ } | undefined): import("../types/api").RequestData<{
7803
+ reference?: string | undefined;
7804
+ due_date?: string | undefined;
7805
+ journal_id: string;
7806
+ name?: string | undefined;
7807
+ journal_name: string;
7808
+ date?: string | undefined;
7809
+ posted?: boolean | undefined;
7810
+ id: string;
7811
+ items?: {
7812
+ account_number: string;
7813
+ partner_id?: string | undefined;
7814
+ description?: string | undefined;
7815
+ debit: number;
7816
+ credit: number;
7817
+ currency: string;
7818
+ currency_exchange_rate?: number | undefined;
7819
+ id: string;
7820
+ partner_name?: string | undefined;
7821
+ account_name: string;
7822
+ matching_numbers?: string[] | undefined;
7823
+ analytic_distribution?: {
7824
+ analytic_plan: string;
7825
+ analytic_accounts: {
7826
+ analytic_account: string;
7827
+ percentage: number;
7828
+ }[];
7829
+ }[] | undefined;
7830
+ }[] | undefined;
7831
+ }>;
7151
7832
  }>;
7152
7833
  invoicing: import("../types/api").ApiFor<{
7153
7834
  getInvoices(params: {
@@ -7155,6 +7836,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7155
7836
  payment_status?: "all" | "paid" | "unpaid" | undefined;
7156
7837
  date_from?: string | undefined;
7157
7838
  date_to?: string | undefined;
7839
+ updated_after?: string | undefined;
7158
7840
  page?: number | undefined;
7159
7841
  size?: number | undefined;
7160
7842
  } | undefined): import("../types/api").RequestData<{
@@ -7197,6 +7879,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7197
7879
  model?: string | undefined;
7198
7880
  name?: string | undefined;
7199
7881
  } | undefined;
7882
+ outstanding_amount?: number | undefined;
7883
+ last_updated_on?: string | undefined;
7200
7884
  }[]>;
7201
7885
  getInvoiceById(invoiceId: string, params: {
7202
7886
  include_pdf?: "true" | "false" | undefined;
@@ -7240,6 +7924,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7240
7924
  model?: string | undefined;
7241
7925
  name?: string | undefined;
7242
7926
  } | undefined;
7927
+ outstanding_amount?: number | undefined;
7928
+ last_updated_on?: string | undefined;
7243
7929
  }>;
7244
7930
  createInvoice(invoice: {
7245
7931
  currency: string;
@@ -7276,6 +7962,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7276
7962
  model?: string | undefined;
7277
7963
  name?: string | undefined;
7278
7964
  } | undefined;
7965
+ outstanding_amount?: number | undefined;
7279
7966
  }): import("../types/api").RequestData<{
7280
7967
  id: string;
7281
7968
  source_ref: {
@@ -7316,6 +8003,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7316
8003
  model?: string | undefined;
7317
8004
  name?: string | undefined;
7318
8005
  } | undefined;
8006
+ outstanding_amount?: number | undefined;
8007
+ last_updated_on?: string | undefined;
7319
8008
  }>;
7320
8009
  getProducts(): import("../types/api").RequestData<{
7321
8010
  id: string;
@@ -7628,6 +8317,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7628
8317
  currency?: string | undefined;
7629
8318
  addresses?: {
7630
8319
  address_type: "main" | "delivery" | "invoice";
8320
+ company_name?: string | undefined;
7631
8321
  first_name?: string | undefined;
7632
8322
  last_name?: string | undefined;
7633
8323
  street?: string | undefined;
@@ -7721,6 +8411,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7721
8411
  currency?: string | undefined;
7722
8412
  addresses?: {
7723
8413
  address_type: "main" | "delivery" | "invoice";
8414
+ company_name?: string | undefined;
7724
8415
  first_name?: string | undefined;
7725
8416
  last_name?: string | undefined;
7726
8417
  street?: string | undefined;
@@ -7873,15 +8564,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7873
8564
  };
7874
8565
  order_number?: string | undefined;
7875
8566
  customer?: {
7876
- email: string;
7877
8567
  first_name?: string | undefined;
7878
8568
  last_name?: string | undefined;
7879
8569
  phone?: string | undefined;
7880
8570
  internal_notes?: string | undefined;
8571
+ email?: string | undefined;
7881
8572
  id: string;
7882
8573
  } | undefined;
7883
8574
  billing_address?: {
7884
8575
  address_type: "main" | "delivery" | "invoice";
8576
+ company_name?: string | undefined;
7885
8577
  first_name?: string | undefined;
7886
8578
  last_name?: string | undefined;
7887
8579
  street?: string | undefined;
@@ -7895,6 +8587,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7895
8587
  } | undefined;
7896
8588
  shipping_address?: {
7897
8589
  address_type: "main" | "delivery" | "invoice";
8590
+ company_name?: string | undefined;
7898
8591
  first_name?: string | undefined;
7899
8592
  last_name?: string | undefined;
7900
8593
  street?: string | undefined;
@@ -7920,6 +8613,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7920
8613
  total: number;
7921
8614
  refunded_amount?: number | undefined;
7922
8615
  detailed_refunds?: {
8616
+ id: string;
8617
+ source_ref: {
8618
+ id?: string | undefined;
8619
+ model?: string | undefined;
8620
+ };
7923
8621
  created_on?: string | undefined;
7924
8622
  total: number;
7925
8623
  reason?: string | undefined;
@@ -7936,6 +8634,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7936
8634
  total: number;
7937
8635
  }[] | undefined;
7938
8636
  other?: number | undefined;
8637
+ shipping_refunds?: {
8638
+ untaxed_amount: number;
8639
+ tax_amount: number;
8640
+ total: number;
8641
+ }[] | undefined;
7939
8642
  }[] | undefined;
7940
8643
  currency: string;
7941
8644
  note?: string | undefined;
@@ -7945,6 +8648,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7945
8648
  id?: string | undefined;
7946
8649
  model?: string | undefined;
7947
8650
  };
8651
+ created_on?: string | undefined;
7948
8652
  variant?: {
7949
8653
  id: string;
7950
8654
  sku?: string | undefined;
@@ -7953,6 +8657,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7953
8657
  quantity: number;
7954
8658
  unit_price: number;
7955
8659
  description: string;
8660
+ tax_id?: string | undefined;
7956
8661
  tax_rate: number;
7957
8662
  untaxed_amount: number;
7958
8663
  tax_amount: number;
@@ -7962,22 +8667,42 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7962
8667
  description: string;
7963
8668
  amount: number;
7964
8669
  }[] | undefined;
8670
+ gift_card?: boolean | undefined;
7965
8671
  }[];
7966
8672
  other_fees?: {
8673
+ created_on?: string | undefined;
7967
8674
  type: "other" | "shipping";
7968
8675
  tax_rate: number;
8676
+ tax_id?: string | undefined;
8677
+ discounts?: {
8678
+ name: string;
8679
+ description: string;
8680
+ amount: number;
8681
+ }[] | undefined;
7969
8682
  untaxed_amount: number;
7970
8683
  tax_amount: number;
7971
8684
  total: number;
7972
8685
  }[] | undefined;
8686
+ payment_method_id?: string | undefined;
8687
+ transactions?: {
8688
+ id: string;
8689
+ payment_method_id?: string | undefined;
8690
+ payment_method_name?: string | undefined;
8691
+ amount: number;
8692
+ status: "failed" | "pending" | "success";
8693
+ }[] | undefined;
8694
+ payment_methods?: {
8695
+ id: string;
8696
+ name?: string | undefined;
8697
+ }[] | undefined;
7973
8698
  }[]>;
7974
8699
  createOrder(order: {
7975
8700
  customer: {
7976
- email: string;
7977
8701
  first_name?: string | undefined;
7978
8702
  last_name?: string | undefined;
7979
8703
  phone?: string | undefined;
7980
8704
  internal_notes?: string | undefined;
8705
+ email: string;
7981
8706
  };
7982
8707
  billing_address: {
7983
8708
  first_name: string;
@@ -8020,15 +8745,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8020
8745
  };
8021
8746
  order_number?: string | undefined;
8022
8747
  customer?: {
8023
- email: string;
8024
8748
  first_name?: string | undefined;
8025
8749
  last_name?: string | undefined;
8026
8750
  phone?: string | undefined;
8027
8751
  internal_notes?: string | undefined;
8752
+ email?: string | undefined;
8028
8753
  id: string;
8029
8754
  } | undefined;
8030
8755
  billing_address?: {
8031
8756
  address_type: "main" | "delivery" | "invoice";
8757
+ company_name?: string | undefined;
8032
8758
  first_name?: string | undefined;
8033
8759
  last_name?: string | undefined;
8034
8760
  street?: string | undefined;
@@ -8042,6 +8768,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8042
8768
  } | undefined;
8043
8769
  shipping_address?: {
8044
8770
  address_type: "main" | "delivery" | "invoice";
8771
+ company_name?: string | undefined;
8045
8772
  first_name?: string | undefined;
8046
8773
  last_name?: string | undefined;
8047
8774
  street?: string | undefined;
@@ -8067,6 +8794,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8067
8794
  total: number;
8068
8795
  refunded_amount?: number | undefined;
8069
8796
  detailed_refunds?: {
8797
+ id: string;
8798
+ source_ref: {
8799
+ id?: string | undefined;
8800
+ model?: string | undefined;
8801
+ };
8070
8802
  created_on?: string | undefined;
8071
8803
  total: number;
8072
8804
  reason?: string | undefined;
@@ -8083,6 +8815,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8083
8815
  total: number;
8084
8816
  }[] | undefined;
8085
8817
  other?: number | undefined;
8818
+ shipping_refunds?: {
8819
+ untaxed_amount: number;
8820
+ tax_amount: number;
8821
+ total: number;
8822
+ }[] | undefined;
8086
8823
  }[] | undefined;
8087
8824
  currency: string;
8088
8825
  note?: string | undefined;
@@ -8092,6 +8829,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8092
8829
  id?: string | undefined;
8093
8830
  model?: string | undefined;
8094
8831
  };
8832
+ created_on?: string | undefined;
8095
8833
  variant?: {
8096
8834
  id: string;
8097
8835
  sku?: string | undefined;
@@ -8100,6 +8838,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8100
8838
  quantity: number;
8101
8839
  unit_price: number;
8102
8840
  description: string;
8841
+ tax_id?: string | undefined;
8103
8842
  tax_rate: number;
8104
8843
  untaxed_amount: number;
8105
8844
  tax_amount: number;
@@ -8109,14 +8848,34 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8109
8848
  description: string;
8110
8849
  amount: number;
8111
8850
  }[] | undefined;
8851
+ gift_card?: boolean | undefined;
8112
8852
  }[];
8113
8853
  other_fees?: {
8854
+ created_on?: string | undefined;
8114
8855
  type: "other" | "shipping";
8115
8856
  tax_rate: number;
8857
+ tax_id?: string | undefined;
8858
+ discounts?: {
8859
+ name: string;
8860
+ description: string;
8861
+ amount: number;
8862
+ }[] | undefined;
8116
8863
  untaxed_amount: number;
8117
8864
  tax_amount: number;
8118
8865
  total: number;
8119
8866
  }[] | undefined;
8867
+ payment_method_id?: string | undefined;
8868
+ transactions?: {
8869
+ id: string;
8870
+ payment_method_id?: string | undefined;
8871
+ payment_method_name?: string | undefined;
8872
+ amount: number;
8873
+ status: "failed" | "pending" | "success";
8874
+ }[] | undefined;
8875
+ payment_methods?: {
8876
+ id: string;
8877
+ name?: string | undefined;
8878
+ }[] | undefined;
8120
8879
  }>;
8121
8880
  getOrder(orderId: string): import("../types/api").RequestData<{
8122
8881
  id: string;
@@ -8126,15 +8885,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8126
8885
  };
8127
8886
  order_number?: string | undefined;
8128
8887
  customer?: {
8129
- email: string;
8130
8888
  first_name?: string | undefined;
8131
8889
  last_name?: string | undefined;
8132
8890
  phone?: string | undefined;
8133
8891
  internal_notes?: string | undefined;
8892
+ email?: string | undefined;
8134
8893
  id: string;
8135
8894
  } | undefined;
8136
8895
  billing_address?: {
8137
8896
  address_type: "main" | "delivery" | "invoice";
8897
+ company_name?: string | undefined;
8138
8898
  first_name?: string | undefined;
8139
8899
  last_name?: string | undefined;
8140
8900
  street?: string | undefined;
@@ -8148,6 +8908,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8148
8908
  } | undefined;
8149
8909
  shipping_address?: {
8150
8910
  address_type: "main" | "delivery" | "invoice";
8911
+ company_name?: string | undefined;
8151
8912
  first_name?: string | undefined;
8152
8913
  last_name?: string | undefined;
8153
8914
  street?: string | undefined;
@@ -8173,6 +8934,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8173
8934
  total: number;
8174
8935
  refunded_amount?: number | undefined;
8175
8936
  detailed_refunds?: {
8937
+ id: string;
8938
+ source_ref: {
8939
+ id?: string | undefined;
8940
+ model?: string | undefined;
8941
+ };
8176
8942
  created_on?: string | undefined;
8177
8943
  total: number;
8178
8944
  reason?: string | undefined;
@@ -8189,6 +8955,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8189
8955
  total: number;
8190
8956
  }[] | undefined;
8191
8957
  other?: number | undefined;
8958
+ shipping_refunds?: {
8959
+ untaxed_amount: number;
8960
+ tax_amount: number;
8961
+ total: number;
8962
+ }[] | undefined;
8192
8963
  }[] | undefined;
8193
8964
  currency: string;
8194
8965
  note?: string | undefined;
@@ -8198,6 +8969,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8198
8969
  id?: string | undefined;
8199
8970
  model?: string | undefined;
8200
8971
  };
8972
+ created_on?: string | undefined;
8201
8973
  variant?: {
8202
8974
  id: string;
8203
8975
  sku?: string | undefined;
@@ -8206,6 +8978,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8206
8978
  quantity: number;
8207
8979
  unit_price: number;
8208
8980
  description: string;
8981
+ tax_id?: string | undefined;
8209
8982
  tax_rate: number;
8210
8983
  untaxed_amount: number;
8211
8984
  tax_amount: number;
@@ -8215,15 +8988,67 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8215
8988
  description: string;
8216
8989
  amount: number;
8217
8990
  }[] | undefined;
8991
+ gift_card?: boolean | undefined;
8218
8992
  }[];
8219
8993
  other_fees?: {
8994
+ created_on?: string | undefined;
8220
8995
  type: "other" | "shipping";
8221
8996
  tax_rate: number;
8997
+ tax_id?: string | undefined;
8998
+ discounts?: {
8999
+ name: string;
9000
+ description: string;
9001
+ amount: number;
9002
+ }[] | undefined;
8222
9003
  untaxed_amount: number;
8223
9004
  tax_amount: number;
8224
9005
  total: number;
8225
9006
  }[] | undefined;
9007
+ payment_method_id?: string | undefined;
9008
+ transactions?: {
9009
+ id: string;
9010
+ payment_method_id?: string | undefined;
9011
+ payment_method_name?: string | undefined;
9012
+ amount: number;
9013
+ status: "failed" | "pending" | "success";
9014
+ }[] | undefined;
9015
+ payment_methods?: {
9016
+ id: string;
9017
+ name?: string | undefined;
9018
+ }[] | undefined;
8226
9019
  }>;
9020
+ getPaymentMethods(params: {}): import("../types/api").RequestData<{
9021
+ id: string;
9022
+ source_ref: {
9023
+ id?: string | undefined;
9024
+ model?: string | undefined;
9025
+ };
9026
+ name: string;
9027
+ active: boolean;
9028
+ }[]>;
9029
+ getProductCategories(params: {}): import("../types/api").RequestData<{
9030
+ id: string;
9031
+ source_ref: {
9032
+ id?: string | undefined;
9033
+ model?: string | undefined;
9034
+ };
9035
+ name: string;
9036
+ parent_id?: string | undefined;
9037
+ }[]>;
9038
+ getTaxes(params: {}): import("../types/api").RequestData<{
9039
+ id: string;
9040
+ source_ref: {
9041
+ id?: string | undefined;
9042
+ model?: string | undefined;
9043
+ };
9044
+ label: string;
9045
+ rate: number;
9046
+ country?: string | undefined;
9047
+ }[]>;
9048
+ getCountries(params: {}): import("../types/api").RequestData<{
9049
+ code: string;
9050
+ name: string;
9051
+ }[]>;
8227
9052
  }>;
8228
9053
  custom: import("../types/api").ApiFor<{
8229
9054
  get(name: string, resource: string, params?: any): import("../types/api").RequestData<any>;
@@ -8251,12 +9076,15 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8251
9076
  link_createdon: string;
8252
9077
  link_mappings?: {
8253
9078
  name: string;
8254
- description: string;
8255
- logic?: Record<string, never> | undefined;
9079
+ description?: string | undefined;
9080
+ display_order?: number | undefined;
9081
+ challenge_question?: string | undefined;
8256
9082
  values: {
8257
9083
  source_id: string;
8258
9084
  target_id: string;
8259
9085
  }[];
9086
+ sub_mapping_name: string;
9087
+ sub_mapping_description?: string | undefined;
8260
9088
  }[] | undefined;
8261
9089
  link_metadata?: Record<string, never> | undefined;
8262
9090
  enabled_flows?: {
@@ -8283,7 +9111,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8283
9111
  }[] | undefined;
8284
9112
  } | undefined;
8285
9113
  values: Record<string, never>;
8286
- enabled_on: string;
9114
+ enabled_on?: string | undefined;
9115
+ trigger: {
9116
+ id: string;
9117
+ type: "timer" | "event";
9118
+ cronschedule?: string | undefined;
9119
+ };
8287
9120
  }[] | undefined;
8288
9121
  }>;
8289
9122
  getDataByDataStoreName: (dataStoreName: string, params?: object | undefined) => Promise<{
@@ -8305,6 +9138,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8305
9138
  id: string;
8306
9139
  created_on: string;
8307
9140
  }[]>;
9141
+ deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
8308
9142
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
8309
9143
  }, context: any) => any, log?: boolean) => Promise<void>;
8310
9144
  flowId: string;
@@ -8333,6 +9167,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8333
9167
  api: string;
8334
9168
  data?: Record<string, never> | undefined;
8335
9169
  status: "active" | "inactive";
9170
+ agent?: {
9171
+ status: "up" | "down";
9172
+ } | undefined;
8336
9173
  }[]>;
8337
9174
  createConnection: (body?: {
8338
9175
  integrationid?: number | undefined;
@@ -8357,6 +9194,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8357
9194
  deleteConnection: (connectionId: string) => Promise<{
8358
9195
  content: never;
8359
9196
  }>;
9197
+ enableFlow: (syncId: string, flowId: string, body: {
9198
+ integrationids?: string[] | undefined;
9199
+ triggerid?: string | undefined;
9200
+ cronschedule?: string | undefined;
9201
+ }) => Promise<import("../types/sync").SimpleResponseModel>;
8360
9202
  getSyncUrl: (body: {
8361
9203
  syncid: string;
8362
9204
  integrationids?: string[] | undefined;
@@ -8407,12 +9249,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8407
9249
  total: number;
8408
9250
  tax_amount: number;
8409
9251
  tax_rate?: number | undefined;
8410
- description: string;
9252
+ description?: string | undefined;
8411
9253
  discounts?: {
8412
9254
  name?: string | undefined;
8413
9255
  total: number;
8414
9256
  }[] | undefined;
8415
9257
  product_id?: string | undefined;
9258
+ accounting_category_id?: string | undefined;
8416
9259
  }[];
8417
9260
  payments: {
8418
9261
  id?: string | undefined;
@@ -8454,6 +9297,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8454
9297
  country?: string | undefined;
8455
9298
  }[] | undefined;
8456
9299
  loyalty?: number | undefined;
9300
+ birthdate?: string | undefined;
8457
9301
  }[]>;
8458
9302
  getOrder(orderId: string): import("../types/api").RequestData<{
8459
9303
  id: string;
@@ -8474,12 +9318,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8474
9318
  total: number;
8475
9319
  tax_amount: number;
8476
9320
  tax_rate?: number | undefined;
8477
- description: string;
9321
+ description?: string | undefined;
8478
9322
  discounts?: {
8479
9323
  name?: string | undefined;
8480
9324
  total: number;
8481
9325
  }[] | undefined;
8482
9326
  product_id?: string | undefined;
9327
+ accounting_category_id?: string | undefined;
8483
9328
  }[];
8484
9329
  payments: {
8485
9330
  id?: string | undefined;
@@ -8521,6 +9366,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8521
9366
  country?: string | undefined;
8522
9367
  }[] | undefined;
8523
9368
  loyalty?: number | undefined;
9369
+ birthdate?: string | undefined;
8524
9370
  }>;
8525
9371
  createCustomer(customer: {
8526
9372
  first_name: string;
@@ -8555,6 +9401,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8555
9401
  country?: string | undefined;
8556
9402
  }[] | undefined;
8557
9403
  loyalty?: number | undefined;
9404
+ birthdate?: string | undefined;
8558
9405
  }>;
8559
9406
  getPaymentMethods(params: {}): import("../types/api").RequestData<{
8560
9407
  id: string;
@@ -8563,9 +9410,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8563
9410
  }[]>;
8564
9411
  getProductCategories(params: {}): import("../types/api").RequestData<{
8565
9412
  id: string;
9413
+ source_ref: {
9414
+ id?: string | undefined;
9415
+ model?: string | undefined;
9416
+ };
8566
9417
  name: string;
8567
- description?: string | undefined;
8568
- id_parent?: string | undefined;
9418
+ parent_id?: string | undefined;
8569
9419
  }[]>;
8570
9420
  getProducts(params: {}): import("../types/api").RequestData<{
8571
9421
  id: string;
@@ -8576,6 +9426,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8576
9426
  unit_price: number;
8577
9427
  tax_rate: number;
8578
9428
  }[];
9429
+ accounting_category_ids?: string[] | undefined;
8579
9430
  }[]>;
8580
9431
  getSales(params: {
8581
9432
  date_from: string;
@@ -8630,12 +9481,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8630
9481
  total: number;
8631
9482
  tax_amount: number;
8632
9483
  tax_rate?: number | undefined;
8633
- description: string;
9484
+ description?: string | undefined;
8634
9485
  discounts?: {
8635
9486
  name?: string | undefined;
8636
9487
  total: number;
8637
9488
  }[] | undefined;
8638
9489
  product_id?: string | undefined;
9490
+ accounting_category_id?: string | undefined;
8639
9491
  }[];
8640
9492
  payments: {
8641
9493
  id?: string | undefined;
@@ -8658,6 +9510,14 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8658
9510
  total: number;
8659
9511
  }[] | undefined;
8660
9512
  }>;
9513
+ getAccountingCategories(params: {}): import("../types/api").RequestData<{
9514
+ id: string;
9515
+ name: string;
9516
+ id_parent?: string | undefined;
9517
+ code?: string | undefined;
9518
+ ledger_account_code?: string | undefined;
9519
+ posting_account_code?: string | undefined;
9520
+ }[]>;
8661
9521
  }>;
8662
9522
  accounting: import("../types/api").ApiFor<{
8663
9523
  getAnalyticPlans(): import("../types/api").RequestData<{
@@ -8736,6 +9596,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8736
9596
  account_number?: string | undefined;
8737
9597
  }, params: {
8738
9598
  force_merge?: string | undefined;
9599
+ folder_id?: string | undefined;
8739
9600
  } | undefined): import("../types/api").RequestData<{
8740
9601
  external_reference?: string | undefined;
8741
9602
  first_name?: string | undefined;
@@ -8947,6 +9808,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8947
9808
  account_number?: string | undefined;
8948
9809
  }, params: {
8949
9810
  force_merge?: string | undefined;
9811
+ folder_id?: string | undefined;
8950
9812
  } | undefined): import("../types/api").RequestData<{
8951
9813
  external_reference?: string | undefined;
8952
9814
  first_name?: string | undefined;
@@ -9090,8 +9952,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9090
9952
  createInvoice(invoice: {
9091
9953
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
9092
9954
  invoice_number?: string | undefined;
9093
- invoice_date: string;
9094
- due_date: string;
9095
9955
  currency: string;
9096
9956
  untaxed_amount: number;
9097
9957
  tax_amount: number;
@@ -9099,6 +9959,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9099
9959
  reference?: string | undefined;
9100
9960
  payment_communication?: string | undefined;
9101
9961
  customer_memo?: string | undefined;
9962
+ invoice_date: string;
9963
+ due_date: string;
9102
9964
  partner_id: string;
9103
9965
  journal_id?: string | undefined;
9104
9966
  status?: "draft" | "posted" | undefined;
@@ -9110,6 +9972,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9110
9972
  invoice_correction_credit_account_number?: string | undefined;
9111
9973
  invoice_correction_debit_account_number?: string | undefined;
9112
9974
  } | undefined;
9975
+ nl_payment_terms_split?: {
9976
+ g_account: {
9977
+ amount: number;
9978
+ iban: string;
9979
+ };
9980
+ n_account: {
9981
+ amount: number;
9982
+ iban: string;
9983
+ };
9984
+ } | undefined;
9113
9985
  lines: {
9114
9986
  line_number?: number | undefined;
9115
9987
  description: string;
@@ -9127,11 +9999,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9127
9999
  }, params: {
9128
10000
  force_financial_period?: string | undefined;
9129
10001
  regroup_lines?: "true" | "false" | undefined;
10002
+ folder_id?: string | undefined;
9130
10003
  } | undefined): import("../types/api").RequestData<{
9131
10004
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
9132
10005
  invoice_number?: string | undefined;
9133
- invoice_date: string;
9134
- due_date: string;
9135
10006
  currency: string;
9136
10007
  untaxed_amount: number;
9137
10008
  tax_amount: number;
@@ -9140,6 +10011,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9140
10011
  payment_communication?: string | undefined;
9141
10012
  customer_memo?: string | undefined;
9142
10013
  id?: string | undefined;
10014
+ invoice_date: string;
10015
+ due_date: string;
9143
10016
  partner_id: string;
9144
10017
  journal_id: string;
9145
10018
  payments?: {
@@ -9175,8 +10048,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9175
10048
  createInvoiceWithMultiplePlans(invoice: {
9176
10049
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
9177
10050
  invoice_number?: string | undefined;
9178
- invoice_date: string;
9179
- due_date: string;
9180
10051
  currency: string;
9181
10052
  untaxed_amount: number;
9182
10053
  tax_amount: number;
@@ -9184,6 +10055,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9184
10055
  reference?: string | undefined;
9185
10056
  payment_communication?: string | undefined;
9186
10057
  customer_memo?: string | undefined;
10058
+ invoice_date: string;
10059
+ due_date: string;
9187
10060
  partner_id: string;
9188
10061
  journal_id?: string | undefined;
9189
10062
  status?: "draft" | "posted" | undefined;
@@ -9195,6 +10068,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9195
10068
  invoice_correction_credit_account_number?: string | undefined;
9196
10069
  invoice_correction_debit_account_number?: string | undefined;
9197
10070
  } | undefined;
10071
+ nl_payment_terms_split?: {
10072
+ g_account: {
10073
+ amount: number;
10074
+ iban: string;
10075
+ };
10076
+ n_account: {
10077
+ amount: number;
10078
+ iban: string;
10079
+ };
10080
+ } | undefined;
9198
10081
  lines: {
9199
10082
  line_number?: number | undefined;
9200
10083
  description: string;
@@ -9218,11 +10101,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9218
10101
  }, params: {
9219
10102
  force_financial_period?: string | undefined;
9220
10103
  regroup_lines?: "true" | "false" | undefined;
10104
+ folder_id?: string | undefined;
9221
10105
  } | undefined): import("../types/api").RequestData<{
9222
10106
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
9223
10107
  invoice_number?: string | undefined;
9224
- invoice_date: string;
9225
- due_date: string;
9226
10108
  currency: string;
9227
10109
  untaxed_amount: number;
9228
10110
  tax_amount: number;
@@ -9231,6 +10113,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9231
10113
  payment_communication?: string | undefined;
9232
10114
  customer_memo?: string | undefined;
9233
10115
  id?: string | undefined;
10116
+ invoice_date: string;
10117
+ due_date: string;
9234
10118
  partner_id: string;
9235
10119
  journal_id: string;
9236
10120
  payments?: {
@@ -9272,8 +10156,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9272
10156
  getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
9273
10157
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
9274
10158
  invoice_number?: string | undefined;
9275
- invoice_date: string;
9276
- due_date: string;
9277
10159
  currency: string;
9278
10160
  untaxed_amount: number;
9279
10161
  tax_amount: number;
@@ -9282,6 +10164,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9282
10164
  payment_communication?: string | undefined;
9283
10165
  customer_memo?: string | undefined;
9284
10166
  id?: string | undefined;
10167
+ invoice_date: string;
10168
+ due_date: string;
9285
10169
  partner_id: string;
9286
10170
  journal_id: string;
9287
10171
  payments?: {
@@ -9316,11 +10200,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9316
10200
  }[]>;
9317
10201
  getInvoice(invoiceId: string, params: {
9318
10202
  include_payments?: "true" | "false" | undefined;
10203
+ folder_id?: string | undefined;
9319
10204
  } | undefined): import("../types/api").RequestData<{
9320
10205
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
9321
10206
  invoice_number?: string | undefined;
9322
- invoice_date: string;
9323
- due_date: string;
9324
10207
  currency: string;
9325
10208
  untaxed_amount: number;
9326
10209
  tax_amount: number;
@@ -9329,6 +10212,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9329
10212
  payment_communication?: string | undefined;
9330
10213
  customer_memo?: string | undefined;
9331
10214
  id?: string | undefined;
10215
+ invoice_date: string;
10216
+ due_date: string;
9332
10217
  partner_id: string;
9333
10218
  journal_id: string;
9334
10219
  payments?: {
@@ -9363,11 +10248,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9363
10248
  }>;
9364
10249
  getInvoiceWithMultiplePlans(invoiceId: string, params: {
9365
10250
  include_payments?: "true" | "false" | undefined;
10251
+ folder_id?: string | undefined;
9366
10252
  } | undefined): import("../types/api").RequestData<{
9367
10253
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
9368
10254
  invoice_number?: string | undefined;
9369
- invoice_date: string;
9370
- due_date: string;
9371
10255
  currency: string;
9372
10256
  untaxed_amount: number;
9373
10257
  tax_amount: number;
@@ -9376,6 +10260,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9376
10260
  payment_communication?: string | undefined;
9377
10261
  customer_memo?: string | undefined;
9378
10262
  id?: string | undefined;
10263
+ invoice_date: string;
10264
+ due_date: string;
9379
10265
  partner_id: string;
9380
10266
  journal_id: string;
9381
10267
  payments?: {
@@ -9417,8 +10303,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9417
10303
  getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
9418
10304
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
9419
10305
  invoice_number?: string | undefined;
9420
- invoice_date: string;
9421
- due_date: string;
9422
10306
  currency: string;
9423
10307
  untaxed_amount: number;
9424
10308
  tax_amount: number;
@@ -9427,6 +10311,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9427
10311
  payment_communication?: string | undefined;
9428
10312
  customer_memo?: string | undefined;
9429
10313
  id?: string | undefined;
10314
+ invoice_date: string;
10315
+ due_date: string;
9430
10316
  partner_id: string;
9431
10317
  journal_id: string;
9432
10318
  payments?: {
@@ -9569,16 +10455,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9569
10455
  debit?: number | undefined;
9570
10456
  analytic_plan: string;
9571
10457
  }[]>;
9572
- getAnalyticLinesOfAccount(analytic_account_id: string): import("../types/api").RequestData<{
9573
- account_id: string;
9574
- description: string;
9575
- amount: number;
9576
- date: string;
9577
- id?: string | undefined;
9578
- }[]>;
9579
10458
  getJournalEntries(params: {
9580
10459
  date_from: string;
9581
10460
  date_to: string;
10461
+ folder_id?: string | undefined;
9582
10462
  unposted_allowed: "true" | "false";
9583
10463
  journal_id: string;
9584
10464
  partner_id?: string | undefined;
@@ -9610,6 +10490,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9610
10490
  getJournalEntriesWithMultiplePlans(params: {
9611
10491
  date_from: string;
9612
10492
  date_to: string;
10493
+ folder_id?: string | undefined;
9613
10494
  unposted_allowed: "true" | "false";
9614
10495
  journal_id: string;
9615
10496
  partner_id?: string | undefined;
@@ -9659,7 +10540,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9659
10540
  }[]>;
9660
10541
  getJournals(): import("../types/api").RequestData<{
9661
10542
  id: string;
9662
- code: string;
10543
+ code?: string | undefined;
9663
10544
  name: string;
9664
10545
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
9665
10546
  }[]>;
@@ -9670,10 +10551,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9670
10551
  scope?: "unknown" | "nat" | "eu" | "int" | undefined;
9671
10552
  rate: number;
9672
10553
  type: "unknown" | "sale" | "purchase" | "both";
10554
+ deductible_account?: string | undefined;
10555
+ payable_account?: string | undefined;
9673
10556
  }[]>;
9674
10557
  getMiscOperations(params: {}): import("../types/api").RequestData<{
9675
10558
  operation_number?: string | undefined;
9676
- operation_date: string;
9677
10559
  currency: string;
9678
10560
  currency_exchange_rate?: number | undefined;
9679
10561
  lines: {
@@ -9685,13 +10567,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9685
10567
  partner_id?: string | undefined;
9686
10568
  analytic_account?: string | undefined;
9687
10569
  }[];
10570
+ operation_date?: string | undefined;
9688
10571
  journal_id: string;
9689
10572
  status: "draft" | "posted" | "cancelled" | "matched";
9690
10573
  id: string;
9691
10574
  }[]>;
9692
10575
  createMiscOperation(operation: {
9693
10576
  operation_number?: string | undefined;
9694
- operation_date: string;
9695
10577
  currency: string;
9696
10578
  currency_exchange_rate?: number | undefined;
9697
10579
  lines: {
@@ -9703,11 +10585,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9703
10585
  partner_id?: string | undefined;
9704
10586
  analytic_account?: string | undefined;
9705
10587
  }[];
10588
+ operation_date: string;
9706
10589
  journal_id?: string | undefined;
9707
10590
  status?: "draft" | "posted" | undefined;
9708
- }): import("../types/api").RequestData<{
10591
+ }, params: {
10592
+ folder_id?: string | undefined;
10593
+ } | undefined): import("../types/api").RequestData<{
9709
10594
  operation_number?: string | undefined;
9710
- operation_date: string;
9711
10595
  currency: string;
9712
10596
  currency_exchange_rate?: number | undefined;
9713
10597
  lines: {
@@ -9719,13 +10603,15 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9719
10603
  partner_id?: string | undefined;
9720
10604
  analytic_account?: string | undefined;
9721
10605
  }[];
10606
+ operation_date?: string | undefined;
9722
10607
  journal_id: string;
9723
10608
  status: "draft" | "posted" | "cancelled" | "matched";
9724
10609
  id: string;
9725
10610
  }>;
9726
- getMiscOperation(operation_id: string): import("../types/api").RequestData<{
10611
+ getMiscOperation(operation_id: string, params: {
10612
+ folder_id?: string | undefined;
10613
+ } | undefined): import("../types/api").RequestData<{
9727
10614
  operation_number?: string | undefined;
9728
- operation_date: string;
9729
10615
  currency: string;
9730
10616
  currency_exchange_rate?: number | undefined;
9731
10617
  lines: {
@@ -9737,6 +10623,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9737
10623
  partner_id?: string | undefined;
9738
10624
  analytic_account?: string | undefined;
9739
10625
  }[];
10626
+ operation_date?: string | undefined;
9740
10627
  journal_id: string;
9741
10628
  status: "draft" | "posted" | "cancelled" | "matched";
9742
10629
  id: string;
@@ -9745,6 +10632,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9745
10632
  base64_string: string;
9746
10633
  }, params: {
9747
10634
  overwrite_existing?: "true" | "false" | undefined;
10635
+ folder_id?: string | undefined;
9748
10636
  } | undefined): import("../types/api").RequestData<{
9749
10637
  content: {
9750
10638
  'application/json': unknown;
@@ -9760,13 +10648,21 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9760
10648
  accounts: string[];
9761
10649
  start: string;
9762
10650
  end: string;
9763
- }): import("../types/api").RequestData<{
10651
+ }, params: {
10652
+ folder_id?: string | undefined;
10653
+ page?: number | undefined;
10654
+ size?: number | undefined;
10655
+ } | undefined): import("../types/api").RequestData<{
9764
10656
  account_number: string;
9765
10657
  debit: number;
9766
10658
  credit: number;
9767
10659
  balance: number;
9768
10660
  }[]>;
9769
- getEmployees(): import("../types/api").RequestData<{
10661
+ getEmployees(params: {
10662
+ folder_id?: string | undefined;
10663
+ page?: number | undefined;
10664
+ size?: number | undefined;
10665
+ } | undefined): import("../types/api").RequestData<{
9770
10666
  id: string;
9771
10667
  name: string;
9772
10668
  first_name?: string | undefined;
@@ -9780,6 +10676,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9780
10676
  account_number?: string | undefined;
9781
10677
  }[]>;
9782
10678
  getOutstandings(params: {
10679
+ folder_id?: string | undefined;
9783
10680
  unposted_allowed: "true" | "false";
9784
10681
  type: "client" | "supplier";
9785
10682
  }): import("../types/api").RequestData<{
@@ -9796,6 +10693,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9796
10693
  partner_id: string;
9797
10694
  account_number: string;
9798
10695
  reference?: string | undefined;
10696
+ payment_communication?: string | undefined;
9799
10697
  posted: boolean;
9800
10698
  }[]>;
9801
10699
  createFinancialEntryOld(financial_entry: {
@@ -9815,6 +10713,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9815
10713
  pdf?: string | undefined;
9816
10714
  }, params: {
9817
10715
  financial_counterpart_account?: string | undefined;
10716
+ folder_id?: string | undefined;
9818
10717
  } | undefined): import("../types/api").RequestData<{
9819
10718
  date: string;
9820
10719
  journal_id: string;
@@ -9848,6 +10747,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9848
10747
  pdf?: string | undefined;
9849
10748
  }, params: {
9850
10749
  financial_counterpart_account?: string | undefined;
10750
+ folder_id?: string | undefined;
9851
10751
  } | undefined): import("../types/api").RequestData<{
9852
10752
  date: string;
9853
10753
  journal_id: string;
@@ -9864,7 +10764,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9864
10764
  counterpart_account: string;
9865
10765
  }[];
9866
10766
  }[]>;
9867
- createJournalEntry(journal_entry: {
10767
+ createJournalEntryOld(journal_entry: {
9868
10768
  reference?: string | undefined;
9869
10769
  due_date?: string | undefined;
9870
10770
  journal_id: string;
@@ -9885,8 +10785,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9885
10785
  percentage: number;
9886
10786
  }[];
9887
10787
  }[] | undefined;
9888
- pdf?: string | undefined;
9889
10788
  }[];
10789
+ pdf?: string | undefined;
9890
10790
  }): import("../types/api").RequestData<{
9891
10791
  reference?: string | undefined;
9892
10792
  due_date?: string | undefined;
@@ -9917,6 +10817,65 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9917
10817
  }[] | undefined;
9918
10818
  }[] | undefined;
9919
10819
  }>;
10820
+ createJournalEntry(journal_entry: {
10821
+ reference?: string | undefined;
10822
+ due_date?: string | undefined;
10823
+ journal_id: string;
10824
+ number: string;
10825
+ currency: string;
10826
+ currency_exchange_rate?: number | undefined;
10827
+ date: string;
10828
+ items: {
10829
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
10830
+ account: string;
10831
+ force_general_account?: string | undefined;
10832
+ prioritise_thirdparty_account?: boolean | undefined;
10833
+ description?: string | undefined;
10834
+ debit: number;
10835
+ credit: number;
10836
+ analytic_distribution?: {
10837
+ analytic_plan: string;
10838
+ analytic_accounts: {
10839
+ analytic_account: string;
10840
+ percentage: number;
10841
+ }[];
10842
+ }[] | undefined;
10843
+ tax_code?: string | undefined;
10844
+ }[];
10845
+ pdf?: string | undefined;
10846
+ posted?: boolean | undefined;
10847
+ }, params: {
10848
+ folder_id?: string | undefined;
10849
+ } | undefined): import("../types/api").RequestData<{
10850
+ reference?: string | undefined;
10851
+ due_date?: string | undefined;
10852
+ journal_id: string;
10853
+ name?: string | undefined;
10854
+ journal_name: string;
10855
+ date?: string | undefined;
10856
+ posted?: boolean | undefined;
10857
+ id: string;
10858
+ items?: {
10859
+ account_number: string;
10860
+ partner_id?: string | undefined;
10861
+ description?: string | undefined;
10862
+ debit: number;
10863
+ credit: number;
10864
+ currency: string;
10865
+ currency_exchange_rate?: number | undefined;
10866
+ id: string;
10867
+ partner_name?: string | undefined;
10868
+ account_name: string;
10869
+ matching_numbers?: string[] | undefined;
10870
+ analytic_distribution?: {
10871
+ analytic_plan: string;
10872
+ analytic_accounts: {
10873
+ analytic_account: string;
10874
+ percentage: number;
10875
+ }[];
10876
+ }[] | undefined;
10877
+ }[] | undefined;
10878
+ }>;
9920
10879
  }>;
9921
10880
  invoicing: import("../types/api").ApiFor<{
9922
10881
  getInvoices(params: {
@@ -9924,6 +10883,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9924
10883
  payment_status?: "all" | "paid" | "unpaid" | undefined;
9925
10884
  date_from?: string | undefined;
9926
10885
  date_to?: string | undefined;
10886
+ updated_after?: string | undefined;
9927
10887
  page?: number | undefined;
9928
10888
  size?: number | undefined;
9929
10889
  } | undefined): import("../types/api").RequestData<{
@@ -9966,6 +10926,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9966
10926
  model?: string | undefined;
9967
10927
  name?: string | undefined;
9968
10928
  } | undefined;
10929
+ outstanding_amount?: number | undefined;
10930
+ last_updated_on?: string | undefined;
9969
10931
  }[]>;
9970
10932
  getInvoiceById(invoiceId: string, params: {
9971
10933
  include_pdf?: "true" | "false" | undefined;
@@ -10009,6 +10971,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10009
10971
  model?: string | undefined;
10010
10972
  name?: string | undefined;
10011
10973
  } | undefined;
10974
+ outstanding_amount?: number | undefined;
10975
+ last_updated_on?: string | undefined;
10012
10976
  }>;
10013
10977
  createInvoice(invoice: {
10014
10978
  currency: string;
@@ -10045,6 +11009,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10045
11009
  model?: string | undefined;
10046
11010
  name?: string | undefined;
10047
11011
  } | undefined;
11012
+ outstanding_amount?: number | undefined;
10048
11013
  }): import("../types/api").RequestData<{
10049
11014
  id: string;
10050
11015
  source_ref: {
@@ -10085,6 +11050,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10085
11050
  model?: string | undefined;
10086
11051
  name?: string | undefined;
10087
11052
  } | undefined;
11053
+ outstanding_amount?: number | undefined;
11054
+ last_updated_on?: string | undefined;
10088
11055
  }>;
10089
11056
  getProducts(): import("../types/api").RequestData<{
10090
11057
  id: string;
@@ -10397,6 +11364,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10397
11364
  currency?: string | undefined;
10398
11365
  addresses?: {
10399
11366
  address_type: "main" | "delivery" | "invoice";
11367
+ company_name?: string | undefined;
10400
11368
  first_name?: string | undefined;
10401
11369
  last_name?: string | undefined;
10402
11370
  street?: string | undefined;
@@ -10490,6 +11458,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10490
11458
  currency?: string | undefined;
10491
11459
  addresses?: {
10492
11460
  address_type: "main" | "delivery" | "invoice";
11461
+ company_name?: string | undefined;
10493
11462
  first_name?: string | undefined;
10494
11463
  last_name?: string | undefined;
10495
11464
  street?: string | undefined;
@@ -10642,15 +11611,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10642
11611
  };
10643
11612
  order_number?: string | undefined;
10644
11613
  customer?: {
10645
- email: string;
10646
11614
  first_name?: string | undefined;
10647
11615
  last_name?: string | undefined;
10648
11616
  phone?: string | undefined;
10649
11617
  internal_notes?: string | undefined;
11618
+ email?: string | undefined;
10650
11619
  id: string;
10651
11620
  } | undefined;
10652
11621
  billing_address?: {
10653
11622
  address_type: "main" | "delivery" | "invoice";
11623
+ company_name?: string | undefined;
10654
11624
  first_name?: string | undefined;
10655
11625
  last_name?: string | undefined;
10656
11626
  street?: string | undefined;
@@ -10664,6 +11634,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10664
11634
  } | undefined;
10665
11635
  shipping_address?: {
10666
11636
  address_type: "main" | "delivery" | "invoice";
11637
+ company_name?: string | undefined;
10667
11638
  first_name?: string | undefined;
10668
11639
  last_name?: string | undefined;
10669
11640
  street?: string | undefined;
@@ -10689,6 +11660,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10689
11660
  total: number;
10690
11661
  refunded_amount?: number | undefined;
10691
11662
  detailed_refunds?: {
11663
+ id: string;
11664
+ source_ref: {
11665
+ id?: string | undefined;
11666
+ model?: string | undefined;
11667
+ };
10692
11668
  created_on?: string | undefined;
10693
11669
  total: number;
10694
11670
  reason?: string | undefined;
@@ -10705,6 +11681,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10705
11681
  total: number;
10706
11682
  }[] | undefined;
10707
11683
  other?: number | undefined;
11684
+ shipping_refunds?: {
11685
+ untaxed_amount: number;
11686
+ tax_amount: number;
11687
+ total: number;
11688
+ }[] | undefined;
10708
11689
  }[] | undefined;
10709
11690
  currency: string;
10710
11691
  note?: string | undefined;
@@ -10714,6 +11695,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10714
11695
  id?: string | undefined;
10715
11696
  model?: string | undefined;
10716
11697
  };
11698
+ created_on?: string | undefined;
10717
11699
  variant?: {
10718
11700
  id: string;
10719
11701
  sku?: string | undefined;
@@ -10722,6 +11704,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10722
11704
  quantity: number;
10723
11705
  unit_price: number;
10724
11706
  description: string;
11707
+ tax_id?: string | undefined;
10725
11708
  tax_rate: number;
10726
11709
  untaxed_amount: number;
10727
11710
  tax_amount: number;
@@ -10731,22 +11714,42 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10731
11714
  description: string;
10732
11715
  amount: number;
10733
11716
  }[] | undefined;
11717
+ gift_card?: boolean | undefined;
10734
11718
  }[];
10735
11719
  other_fees?: {
11720
+ created_on?: string | undefined;
10736
11721
  type: "other" | "shipping";
10737
11722
  tax_rate: number;
11723
+ tax_id?: string | undefined;
11724
+ discounts?: {
11725
+ name: string;
11726
+ description: string;
11727
+ amount: number;
11728
+ }[] | undefined;
10738
11729
  untaxed_amount: number;
10739
11730
  tax_amount: number;
10740
11731
  total: number;
10741
11732
  }[] | undefined;
11733
+ payment_method_id?: string | undefined;
11734
+ transactions?: {
11735
+ id: string;
11736
+ payment_method_id?: string | undefined;
11737
+ payment_method_name?: string | undefined;
11738
+ amount: number;
11739
+ status: "failed" | "pending" | "success";
11740
+ }[] | undefined;
11741
+ payment_methods?: {
11742
+ id: string;
11743
+ name?: string | undefined;
11744
+ }[] | undefined;
10742
11745
  }[]>;
10743
11746
  createOrder(order: {
10744
11747
  customer: {
10745
- email: string;
10746
11748
  first_name?: string | undefined;
10747
11749
  last_name?: string | undefined;
10748
11750
  phone?: string | undefined;
10749
11751
  internal_notes?: string | undefined;
11752
+ email: string;
10750
11753
  };
10751
11754
  billing_address: {
10752
11755
  first_name: string;
@@ -10789,15 +11792,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10789
11792
  };
10790
11793
  order_number?: string | undefined;
10791
11794
  customer?: {
10792
- email: string;
10793
11795
  first_name?: string | undefined;
10794
11796
  last_name?: string | undefined;
10795
11797
  phone?: string | undefined;
10796
11798
  internal_notes?: string | undefined;
11799
+ email?: string | undefined;
10797
11800
  id: string;
10798
11801
  } | undefined;
10799
11802
  billing_address?: {
10800
11803
  address_type: "main" | "delivery" | "invoice";
11804
+ company_name?: string | undefined;
10801
11805
  first_name?: string | undefined;
10802
11806
  last_name?: string | undefined;
10803
11807
  street?: string | undefined;
@@ -10811,6 +11815,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10811
11815
  } | undefined;
10812
11816
  shipping_address?: {
10813
11817
  address_type: "main" | "delivery" | "invoice";
11818
+ company_name?: string | undefined;
10814
11819
  first_name?: string | undefined;
10815
11820
  last_name?: string | undefined;
10816
11821
  street?: string | undefined;
@@ -10836,6 +11841,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10836
11841
  total: number;
10837
11842
  refunded_amount?: number | undefined;
10838
11843
  detailed_refunds?: {
11844
+ id: string;
11845
+ source_ref: {
11846
+ id?: string | undefined;
11847
+ model?: string | undefined;
11848
+ };
10839
11849
  created_on?: string | undefined;
10840
11850
  total: number;
10841
11851
  reason?: string | undefined;
@@ -10852,6 +11862,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10852
11862
  total: number;
10853
11863
  }[] | undefined;
10854
11864
  other?: number | undefined;
11865
+ shipping_refunds?: {
11866
+ untaxed_amount: number;
11867
+ tax_amount: number;
11868
+ total: number;
11869
+ }[] | undefined;
10855
11870
  }[] | undefined;
10856
11871
  currency: string;
10857
11872
  note?: string | undefined;
@@ -10861,6 +11876,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10861
11876
  id?: string | undefined;
10862
11877
  model?: string | undefined;
10863
11878
  };
11879
+ created_on?: string | undefined;
10864
11880
  variant?: {
10865
11881
  id: string;
10866
11882
  sku?: string | undefined;
@@ -10869,6 +11885,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10869
11885
  quantity: number;
10870
11886
  unit_price: number;
10871
11887
  description: string;
11888
+ tax_id?: string | undefined;
10872
11889
  tax_rate: number;
10873
11890
  untaxed_amount: number;
10874
11891
  tax_amount: number;
@@ -10878,14 +11895,34 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10878
11895
  description: string;
10879
11896
  amount: number;
10880
11897
  }[] | undefined;
11898
+ gift_card?: boolean | undefined;
10881
11899
  }[];
10882
11900
  other_fees?: {
11901
+ created_on?: string | undefined;
10883
11902
  type: "other" | "shipping";
10884
11903
  tax_rate: number;
11904
+ tax_id?: string | undefined;
11905
+ discounts?: {
11906
+ name: string;
11907
+ description: string;
11908
+ amount: number;
11909
+ }[] | undefined;
10885
11910
  untaxed_amount: number;
10886
11911
  tax_amount: number;
10887
11912
  total: number;
10888
11913
  }[] | undefined;
11914
+ payment_method_id?: string | undefined;
11915
+ transactions?: {
11916
+ id: string;
11917
+ payment_method_id?: string | undefined;
11918
+ payment_method_name?: string | undefined;
11919
+ amount: number;
11920
+ status: "failed" | "pending" | "success";
11921
+ }[] | undefined;
11922
+ payment_methods?: {
11923
+ id: string;
11924
+ name?: string | undefined;
11925
+ }[] | undefined;
10889
11926
  }>;
10890
11927
  getOrder(orderId: string): import("../types/api").RequestData<{
10891
11928
  id: string;
@@ -10895,15 +11932,16 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10895
11932
  };
10896
11933
  order_number?: string | undefined;
10897
11934
  customer?: {
10898
- email: string;
10899
11935
  first_name?: string | undefined;
10900
11936
  last_name?: string | undefined;
10901
11937
  phone?: string | undefined;
10902
11938
  internal_notes?: string | undefined;
11939
+ email?: string | undefined;
10903
11940
  id: string;
10904
11941
  } | undefined;
10905
11942
  billing_address?: {
10906
11943
  address_type: "main" | "delivery" | "invoice";
11944
+ company_name?: string | undefined;
10907
11945
  first_name?: string | undefined;
10908
11946
  last_name?: string | undefined;
10909
11947
  street?: string | undefined;
@@ -10917,6 +11955,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10917
11955
  } | undefined;
10918
11956
  shipping_address?: {
10919
11957
  address_type: "main" | "delivery" | "invoice";
11958
+ company_name?: string | undefined;
10920
11959
  first_name?: string | undefined;
10921
11960
  last_name?: string | undefined;
10922
11961
  street?: string | undefined;
@@ -10942,6 +11981,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10942
11981
  total: number;
10943
11982
  refunded_amount?: number | undefined;
10944
11983
  detailed_refunds?: {
11984
+ id: string;
11985
+ source_ref: {
11986
+ id?: string | undefined;
11987
+ model?: string | undefined;
11988
+ };
10945
11989
  created_on?: string | undefined;
10946
11990
  total: number;
10947
11991
  reason?: string | undefined;
@@ -10958,6 +12002,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10958
12002
  total: number;
10959
12003
  }[] | undefined;
10960
12004
  other?: number | undefined;
12005
+ shipping_refunds?: {
12006
+ untaxed_amount: number;
12007
+ tax_amount: number;
12008
+ total: number;
12009
+ }[] | undefined;
10961
12010
  }[] | undefined;
10962
12011
  currency: string;
10963
12012
  note?: string | undefined;
@@ -10967,6 +12016,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10967
12016
  id?: string | undefined;
10968
12017
  model?: string | undefined;
10969
12018
  };
12019
+ created_on?: string | undefined;
10970
12020
  variant?: {
10971
12021
  id: string;
10972
12022
  sku?: string | undefined;
@@ -10975,6 +12025,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10975
12025
  quantity: number;
10976
12026
  unit_price: number;
10977
12027
  description: string;
12028
+ tax_id?: string | undefined;
10978
12029
  tax_rate: number;
10979
12030
  untaxed_amount: number;
10980
12031
  tax_amount: number;
@@ -10984,15 +12035,67 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10984
12035
  description: string;
10985
12036
  amount: number;
10986
12037
  }[] | undefined;
12038
+ gift_card?: boolean | undefined;
10987
12039
  }[];
10988
12040
  other_fees?: {
12041
+ created_on?: string | undefined;
10989
12042
  type: "other" | "shipping";
10990
12043
  tax_rate: number;
12044
+ tax_id?: string | undefined;
12045
+ discounts?: {
12046
+ name: string;
12047
+ description: string;
12048
+ amount: number;
12049
+ }[] | undefined;
10991
12050
  untaxed_amount: number;
10992
12051
  tax_amount: number;
10993
12052
  total: number;
10994
12053
  }[] | undefined;
12054
+ payment_method_id?: string | undefined;
12055
+ transactions?: {
12056
+ id: string;
12057
+ payment_method_id?: string | undefined;
12058
+ payment_method_name?: string | undefined;
12059
+ amount: number;
12060
+ status: "failed" | "pending" | "success";
12061
+ }[] | undefined;
12062
+ payment_methods?: {
12063
+ id: string;
12064
+ name?: string | undefined;
12065
+ }[] | undefined;
10995
12066
  }>;
12067
+ getPaymentMethods(params: {}): import("../types/api").RequestData<{
12068
+ id: string;
12069
+ source_ref: {
12070
+ id?: string | undefined;
12071
+ model?: string | undefined;
12072
+ };
12073
+ name: string;
12074
+ active: boolean;
12075
+ }[]>;
12076
+ getProductCategories(params: {}): import("../types/api").RequestData<{
12077
+ id: string;
12078
+ source_ref: {
12079
+ id?: string | undefined;
12080
+ model?: string | undefined;
12081
+ };
12082
+ name: string;
12083
+ parent_id?: string | undefined;
12084
+ }[]>;
12085
+ getTaxes(params: {}): import("../types/api").RequestData<{
12086
+ id: string;
12087
+ source_ref: {
12088
+ id?: string | undefined;
12089
+ model?: string | undefined;
12090
+ };
12091
+ label: string;
12092
+ rate: number;
12093
+ country?: string | undefined;
12094
+ }[]>;
12095
+ getCountries(params: {}): import("../types/api").RequestData<{
12096
+ code: string;
12097
+ name: string;
12098
+ }[]>;
10996
12099
  }>;
10997
12100
  custom: import("../types/api").ApiFor<{
10998
12101
  get(name: string, resource: string, params?: any): import("../types/api").RequestData<any>;
@@ -11020,12 +12123,15 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11020
12123
  link_createdon: string;
11021
12124
  link_mappings?: {
11022
12125
  name: string;
11023
- description: string;
11024
- logic?: Record<string, never> | undefined;
12126
+ description?: string | undefined;
12127
+ display_order?: number | undefined;
12128
+ challenge_question?: string | undefined;
11025
12129
  values: {
11026
12130
  source_id: string;
11027
12131
  target_id: string;
11028
12132
  }[];
12133
+ sub_mapping_name: string;
12134
+ sub_mapping_description?: string | undefined;
11029
12135
  }[] | undefined;
11030
12136
  link_metadata?: Record<string, never> | undefined;
11031
12137
  enabled_flows?: {
@@ -11052,7 +12158,12 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11052
12158
  }[] | undefined;
11053
12159
  } | undefined;
11054
12160
  values: Record<string, never>;
11055
- enabled_on: string;
12161
+ enabled_on?: string | undefined;
12162
+ trigger: {
12163
+ id: string;
12164
+ type: "timer" | "event";
12165
+ cronschedule?: string | undefined;
12166
+ };
11056
12167
  }[] | undefined;
11057
12168
  }>;
11058
12169
  getDataByDataStoreName: (dataStoreName: string, params?: object | undefined) => Promise<{
@@ -11074,6 +12185,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11074
12185
  id: string;
11075
12186
  created_on: string;
11076
12187
  }[]>;
12188
+ deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<import("../types/sync").SimpleResponseModel>;
11077
12189
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
11078
12190
  }, context: any) => any, log?: boolean) => Promise<void>;
11079
12191
  flowId: string;