@chift/chift-nodejs 1.0.7 → 1.0.9

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