@chift/chift-nodejs 1.0.16 → 1.0.18

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 (145) hide show
  1. package/README.md +3 -3
  2. package/package.json +5 -2
  3. package/src/types/public-api/schema.d.ts +4071 -850
  4. package/src/types/sync.ts +20 -5
  5. package/.eslintcache +0 -1
  6. package/.eslintignore +0 -1
  7. package/.eslintrc.json +0 -25
  8. package/.github/workflows/ci.yml +0 -75
  9. package/.husky/pre-commit +0 -4
  10. package/.prettierignore +0 -1
  11. package/.prettierrc.json +0 -7
  12. package/CHANGELOG.md +0 -98
  13. package/coverage/clover.xml +0 -1645
  14. package/coverage/coverage-final.json +0 -19
  15. package/coverage/lcov-report/base.css +0 -224
  16. package/coverage/lcov-report/block-navigation.js +0 -87
  17. package/coverage/lcov-report/favicon.png +0 -0
  18. package/coverage/lcov-report/index.html +0 -146
  19. package/coverage/lcov-report/prettify.css +0 -1
  20. package/coverage/lcov-report/prettify.js +0 -2
  21. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  22. package/coverage/lcov-report/sorter.js +0 -196
  23. package/coverage/lcov-report/src/helpers/index.html +0 -131
  24. package/coverage/lcov-report/src/helpers/openapi.ts.html +0 -151
  25. package/coverage/lcov-report/src/helpers/settings.ts.html +0 -94
  26. package/coverage/lcov-report/src/index.html +0 -116
  27. package/coverage/lcov-report/src/index.ts.html +0 -88
  28. package/coverage/lcov-report/src/modules/accounting.ts.html +0 -1156
  29. package/coverage/lcov-report/src/modules/api.ts.html +0 -190
  30. package/coverage/lcov-report/src/modules/consumer.ts.html +0 -616
  31. package/coverage/lcov-report/src/modules/consumers.ts.html +0 -331
  32. package/coverage/lcov-report/src/modules/custom.ts.html +0 -193
  33. package/coverage/lcov-report/src/modules/datastores.ts.html +0 -142
  34. package/coverage/lcov-report/src/modules/ecommerce.ts.html +0 -331
  35. package/coverage/lcov-report/src/modules/flow.ts.html +0 -589
  36. package/coverage/lcov-report/src/modules/index.html +0 -326
  37. package/coverage/lcov-report/src/modules/integrations.ts.html +0 -151
  38. package/coverage/lcov-report/src/modules/internalApi.ts.html +0 -586
  39. package/coverage/lcov-report/src/modules/invoicing.ts.html +0 -391
  40. package/coverage/lcov-report/src/modules/pos.ts.html +0 -421
  41. package/coverage/lcov-report/src/modules/sync.ts.html +0 -316
  42. package/coverage/lcov-report/src/modules/syncs.ts.html +0 -169
  43. package/coverage/lcov-report/src/modules/webhooks.ts.html +0 -343
  44. package/coverage/lcov.info +0 -1976
  45. package/dist/src/helpers/openapi.d.ts +0 -3
  46. package/dist/src/helpers/openapi.js +0 -18
  47. package/dist/src/helpers/settings.d.ts +0 -4
  48. package/dist/src/helpers/settings.js +0 -5
  49. package/dist/src/index.d.ts +0 -1
  50. package/dist/src/modules/accounting.d.ts +0 -68
  51. package/dist/src/modules/accounting.js +0 -326
  52. package/dist/src/modules/api.d.ts +0 -16795
  53. package/dist/src/modules/api.js +0 -36
  54. package/dist/src/modules/consumer.d.ts +0 -3313
  55. package/dist/src/modules/consumer.js +0 -139
  56. package/dist/src/modules/consumers.d.ts +0 -16684
  57. package/dist/src/modules/consumers.js +0 -51
  58. package/dist/src/modules/custom.d.ts +0 -8
  59. package/dist/src/modules/custom.js +0 -36
  60. package/dist/src/modules/datastores.d.ts +0 -18
  61. package/dist/src/modules/datastores.js +0 -23
  62. package/dist/src/modules/ecommerce.d.ts +0 -24
  63. package/dist/src/modules/ecommerce.js +0 -97
  64. package/dist/src/modules/flow.d.ts +0 -15
  65. package/dist/src/modules/flow.js +0 -156
  66. package/dist/src/modules/integrations.d.ts +0 -23
  67. package/dist/src/modules/integrations.js +0 -23
  68. package/dist/src/modules/internalApi.d.ts +0 -24
  69. package/dist/src/modules/internalApi.js +0 -175
  70. package/dist/src/modules/invoicing.d.ts +0 -20
  71. package/dist/src/modules/invoicing.js +0 -90
  72. package/dist/src/modules/pms.d.ts +0 -15
  73. package/dist/src/modules/pms.js +0 -47
  74. package/dist/src/modules/pos.d.ts +0 -26
  75. package/dist/src/modules/pos.js +0 -101
  76. package/dist/src/modules/sync.d.ts +0 -13414
  77. package/dist/src/modules/sync.js +0 -73
  78. package/dist/src/modules/syncs.d.ts +0 -11
  79. package/dist/src/modules/syncs.js +0 -39
  80. package/dist/src/modules/webhooks.d.ts +0 -55
  81. package/dist/src/modules/webhooks.js +0 -53
  82. package/dist/src/types/api.d.ts +0 -29
  83. package/dist/src/types/api.js +0 -2
  84. package/dist/src/types/consumers.d.ts +0 -8
  85. package/dist/src/types/consumers.js +0 -2
  86. package/dist/src/types/public-api/mappings.d.ts +0 -21
  87. package/dist/src/types/public-api/mappings.js +0 -2
  88. package/dist/src/types/public-api/schema.d.ts +0 -12003
  89. package/dist/src/types/public-api/schema.js +0 -6
  90. package/dist/src/types/sync.d.ts +0 -20
  91. package/dist/src/types/sync.js +0 -2
  92. package/dist/test/modules/accounting.test.d.ts +0 -1
  93. package/dist/test/modules/accounting.test.js +0 -582
  94. package/dist/test/modules/consumer.test.d.ts +0 -1
  95. package/dist/test/modules/consumer.test.js +0 -89
  96. package/dist/test/modules/consumers.test.d.ts +0 -1
  97. package/dist/test/modules/consumers.test.js +0 -109
  98. package/dist/test/modules/ecommerce.test.d.ts +0 -1
  99. package/dist/test/modules/ecommerce.test.js +0 -220
  100. package/dist/test/modules/integrations.test.d.ts +0 -1
  101. package/dist/test/modules/integrations.test.js +0 -54
  102. package/dist/test/modules/invoicing.test.d.ts +0 -1
  103. package/dist/test/modules/invoicing.test.js +0 -108
  104. package/dist/test/modules/pos.test.d.ts +0 -1
  105. package/dist/test/modules/pos.test.js +0 -182
  106. package/dist/test/modules/sync.test.d.ts +0 -1
  107. package/dist/test/modules/sync.test.js +0 -81
  108. package/dist/test/modules/syncs.test.d.ts +0 -1
  109. package/dist/test/modules/syncs.test.js +0 -53
  110. package/dist/test/modules/webhooks.test.d.ts +0 -1
  111. package/dist/test/modules/webhooks.test.js +0 -120
  112. package/jest.config.ts +0 -195
  113. package/src/helpers/openapi.ts +0 -22
  114. package/src/helpers/settings.ts +0 -3
  115. package/src/index.ts +0 -1
  116. package/src/modules/accounting.ts +0 -510
  117. package/src/modules/api.ts +0 -35
  118. package/src/modules/consumer.ts +0 -213
  119. package/src/modules/consumers.ts +0 -82
  120. package/src/modules/custom.ts +0 -36
  121. package/src/modules/datastores.ts +0 -19
  122. package/src/modules/ecommerce.ts +0 -127
  123. package/src/modules/flow.ts +0 -168
  124. package/src/modules/integrations.ts +0 -24
  125. package/src/modules/internalApi.ts +0 -182
  126. package/src/modules/invoicing.ts +0 -114
  127. package/src/modules/pms.ts +0 -67
  128. package/src/modules/pos.ts +0 -144
  129. package/src/modules/sync.ts +0 -77
  130. package/src/modules/syncs.ts +0 -59
  131. package/src/modules/webhooks.ts +0 -86
  132. package/src/types/public-api/schema.ts +0 -12073
  133. package/test/data/accounting_invoice.pdf +0 -0
  134. package/test/modules/accounting.test.ts +0 -628
  135. package/test/modules/consumer.test.ts +0 -68
  136. package/test/modules/consumers.test.ts +0 -85
  137. package/test/modules/ecommerce.test.ts +0 -208
  138. package/test/modules/integrations.test.ts +0 -22
  139. package/test/modules/invoicing.test.ts +0 -88
  140. package/test/modules/pos.test.ts +0 -166
  141. package/test/modules/sync.test.ts +0 -60
  142. package/test/modules/syncs.test.ts +0 -23
  143. package/test/modules/webhooks.test.ts +0 -92
  144. package/test/set_envs.sh +0 -14
  145. package/tsconfig.json +0 -107
@@ -1,3313 +0,0 @@
1
- import { operations, components } from '../types/public-api/schema';
2
- import { InternalAPI } from './internalApi';
3
- import { chiftOperations } from '../types/public-api/mappings';
4
- import { SimpleResponseModel } from '../types/sync';
5
- import { ConsumerLog } from '../types/consumers';
6
- declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperations['getConsumerById']]['responses'][200]['content']['application/json']) => {
7
- consumerId: string;
8
- getConnections: () => Promise<{
9
- connectionid: string;
10
- name: string;
11
- integration: string;
12
- integrationid: number;
13
- api: string;
14
- data?: Record<string, never> | undefined;
15
- status: "active" | "inactive";
16
- agent?: {
17
- status: "up" | "down";
18
- } | undefined;
19
- }[]>;
20
- createConnection: (body?: components['schemas']['app__routers__connections__PostConnectionItem']) => Promise<{
21
- url: string;
22
- }>;
23
- updateConnection: (connectionId: string, body?: components['schemas']['PatchConnectionItem']) => Promise<{
24
- url: string;
25
- }>;
26
- deleteConnection: (connectionId: string) => Promise<{
27
- content: never;
28
- }>;
29
- enableFlow: (syncId: string, flowId: string, body: components['schemas']['EnableFlowConsumer']) => Promise<SimpleResponseModel>;
30
- getSyncUrl: (body: components['schemas']['CreateConsumerSyncItem']) => Promise<{
31
- url: string;
32
- }>;
33
- name: string;
34
- redirect_url: string | undefined;
35
- email: string | undefined;
36
- pos: import("../types/api").ApiFor<{
37
- getLocations(): import("../types/api").RequestData<{
38
- id: string;
39
- name: string;
40
- timezone?: string | undefined;
41
- address?: {
42
- address_type?: string | undefined;
43
- name?: string | undefined;
44
- street?: string | undefined;
45
- number?: string | undefined;
46
- box?: string | undefined;
47
- city?: string | undefined;
48
- postal_code?: string | undefined;
49
- country?: string | undefined;
50
- } | undefined;
51
- }[]>;
52
- getOrders(params: {
53
- date_from: string;
54
- date_to: string;
55
- location_id?: string | undefined;
56
- state?: "open" | "closed" | "all" | undefined;
57
- }): import("../types/api").RequestData<{
58
- id: string;
59
- order_number?: string | undefined;
60
- creation_date: string;
61
- closing_date?: string | undefined;
62
- service_date?: string | undefined;
63
- device_id?: string | undefined;
64
- total: number;
65
- tax_amount: number;
66
- total_discount?: number | undefined;
67
- total_refund?: number | undefined;
68
- total_tip?: number | undefined;
69
- currency?: string | undefined;
70
- country?: string | undefined;
71
- loyalty?: number | undefined;
72
- customer_id?: string | undefined;
73
- location_id?: string | undefined;
74
- taxes?: {
75
- tax_rate: number;
76
- tax_amount: number;
77
- total: number;
78
- }[] | undefined;
79
- guests?: number | undefined;
80
- payments: {
81
- id?: string | undefined;
82
- payment_method_id?: string | undefined;
83
- payment_method_name?: string | undefined;
84
- total: number;
85
- tip?: number | undefined;
86
- status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
87
- currency?: string | undefined;
88
- date?: string | undefined;
89
- }[];
90
- items: {
91
- id: string;
92
- quantity: number;
93
- unit_price: number;
94
- total: number;
95
- tax_amount: number;
96
- tax_rate?: number | undefined;
97
- description?: string | undefined;
98
- discounts?: {
99
- name?: string | undefined;
100
- total: number;
101
- }[] | undefined;
102
- product_id?: string | undefined;
103
- accounting_category_id?: string | undefined;
104
- }[];
105
- }[]>;
106
- getCustomers(params?: {
107
- search?: string | undefined;
108
- email?: string | undefined;
109
- phone?: string | undefined;
110
- } | undefined): import("../types/api").RequestData<{
111
- id: string;
112
- first_name?: string | undefined;
113
- last_name?: string | undefined;
114
- name: string;
115
- phone?: string | undefined;
116
- email?: string | undefined;
117
- created_on?: string | undefined;
118
- addresses?: {
119
- address_type?: string | undefined;
120
- name?: string | undefined;
121
- street?: string | undefined;
122
- number?: string | undefined;
123
- box?: string | undefined;
124
- city?: string | undefined;
125
- postal_code?: string | undefined;
126
- country?: string | undefined;
127
- }[] | undefined;
128
- loyalty?: number | undefined;
129
- birthdate?: string | undefined;
130
- }[]>;
131
- getOrder(orderId: string): import("../types/api").RequestData<{
132
- id: string;
133
- order_number?: string | undefined;
134
- creation_date: string;
135
- closing_date?: string | undefined;
136
- service_date?: string | undefined;
137
- device_id?: string | undefined;
138
- total: number;
139
- tax_amount: number;
140
- total_discount?: number | undefined;
141
- total_refund?: number | undefined;
142
- total_tip?: number | undefined;
143
- currency?: string | undefined;
144
- country?: string | undefined;
145
- loyalty?: number | undefined;
146
- customer_id?: string | undefined;
147
- location_id?: string | undefined;
148
- taxes?: {
149
- tax_rate: number;
150
- tax_amount: number;
151
- total: number;
152
- }[] | undefined;
153
- guests?: number | undefined;
154
- payments: {
155
- id?: string | undefined;
156
- payment_method_id?: string | undefined;
157
- payment_method_name?: string | undefined;
158
- total: number;
159
- tip?: number | undefined;
160
- status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
161
- currency?: string | undefined;
162
- date?: string | undefined;
163
- }[];
164
- items: {
165
- id: string;
166
- quantity: number;
167
- unit_price: number;
168
- total: number;
169
- tax_amount: number;
170
- tax_rate?: number | undefined;
171
- description?: string | undefined;
172
- discounts?: {
173
- name?: string | undefined;
174
- total: number;
175
- }[] | undefined;
176
- product_id?: string | undefined;
177
- accounting_category_id?: string | undefined;
178
- }[];
179
- }>;
180
- getCustomer(customerId: string): import("../types/api").RequestData<{
181
- id: string;
182
- first_name?: string | undefined;
183
- last_name?: string | undefined;
184
- name: string;
185
- phone?: string | undefined;
186
- email?: string | undefined;
187
- created_on?: string | undefined;
188
- addresses?: {
189
- address_type?: string | undefined;
190
- name?: string | undefined;
191
- street?: string | undefined;
192
- number?: string | undefined;
193
- box?: string | undefined;
194
- city?: string | undefined;
195
- postal_code?: string | undefined;
196
- country?: string | undefined;
197
- }[] | undefined;
198
- loyalty?: number | undefined;
199
- birthdate?: string | undefined;
200
- }>;
201
- createCustomer(customer: {
202
- first_name: string;
203
- last_name: string;
204
- phone?: string | undefined;
205
- email?: string | undefined;
206
- address?: {
207
- name: string;
208
- street?: string | undefined;
209
- number?: string | undefined;
210
- box?: string | undefined;
211
- city: string;
212
- postal_code: string;
213
- country?: string | undefined;
214
- } | undefined;
215
- }): import("../types/api").RequestData<{
216
- id: string;
217
- first_name?: string | undefined;
218
- last_name?: string | undefined;
219
- name: string;
220
- phone?: string | undefined;
221
- email?: string | undefined;
222
- created_on?: string | undefined;
223
- addresses?: {
224
- address_type?: string | undefined;
225
- name?: string | undefined;
226
- street?: string | undefined;
227
- number?: string | undefined;
228
- box?: string | undefined;
229
- city?: string | undefined;
230
- postal_code?: string | undefined;
231
- country?: string | undefined;
232
- }[] | undefined;
233
- loyalty?: number | undefined;
234
- birthdate?: string | undefined;
235
- }>;
236
- getPaymentMethods(params?: {
237
- location_id?: string | undefined;
238
- } | undefined): import("../types/api").RequestData<{
239
- id: string;
240
- name: string;
241
- extra?: string | undefined;
242
- }[]>;
243
- getProductCategories(params?: {
244
- location_id?: string | undefined;
245
- only_parents?: "true" | "false" | undefined;
246
- } | undefined): import("../types/api").RequestData<{
247
- id: string;
248
- source_ref: {
249
- id?: string | undefined;
250
- model?: string | undefined;
251
- };
252
- name: string;
253
- parent_id?: string | undefined;
254
- }[]>;
255
- getProducts(params?: {
256
- location_id?: string | undefined;
257
- } | undefined): import("../types/api").RequestData<{
258
- id: string;
259
- categories?: string[] | undefined;
260
- name: string;
261
- description?: string | undefined;
262
- prices: {
263
- unit_price: number;
264
- tax_rate: number;
265
- }[];
266
- accounting_category_ids?: string[] | undefined;
267
- }[]>;
268
- getSales(params: {
269
- date_from: string;
270
- date_to: string;
271
- location_id?: string | undefined;
272
- }): import("../types/api").RequestData<{
273
- total: number;
274
- tax_amount: number;
275
- taxes?: {
276
- tax_rate: number;
277
- tax_amount: number;
278
- total: number;
279
- }[] | undefined;
280
- }>;
281
- getClosure(date: string, params?: {
282
- location_id?: string | undefined;
283
- } | undefined): import("../types/api").RequestData<{
284
- date: string;
285
- status: "open" | "closed";
286
- }>;
287
- getPayments(params: {
288
- date_from: string;
289
- date_to: string;
290
- }): import("../types/api").RequestData<{
291
- id?: string | undefined;
292
- payment_method_id?: string | undefined;
293
- payment_method_name?: string | undefined;
294
- total: number;
295
- tip?: number | undefined;
296
- status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
297
- currency?: string | undefined;
298
- date?: string | undefined;
299
- }[]>;
300
- updateOrder(orderId: string, order: {
301
- customer_id?: string | undefined;
302
- }): import("../types/api").RequestData<{
303
- id: string;
304
- order_number?: string | undefined;
305
- creation_date: string;
306
- closing_date?: string | undefined;
307
- service_date?: string | undefined;
308
- device_id?: string | undefined;
309
- total: number;
310
- tax_amount: number;
311
- total_discount?: number | undefined;
312
- total_refund?: number | undefined;
313
- total_tip?: number | undefined;
314
- currency?: string | undefined;
315
- country?: string | undefined;
316
- loyalty?: number | undefined;
317
- customer_id?: string | undefined;
318
- location_id?: string | undefined;
319
- taxes?: {
320
- tax_rate: number;
321
- tax_amount: number;
322
- total: number;
323
- }[] | undefined;
324
- guests?: number | undefined;
325
- payments: {
326
- id?: string | undefined;
327
- payment_method_id?: string | undefined;
328
- payment_method_name?: string | undefined;
329
- total: number;
330
- tip?: number | undefined;
331
- status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
332
- currency?: string | undefined;
333
- date?: string | undefined;
334
- }[];
335
- items: {
336
- id: string;
337
- quantity: number;
338
- unit_price: number;
339
- total: number;
340
- tax_amount: number;
341
- tax_rate?: number | undefined;
342
- description?: string | undefined;
343
- discounts?: {
344
- name?: string | undefined;
345
- total: number;
346
- }[] | undefined;
347
- product_id?: string | undefined;
348
- accounting_category_id?: string | undefined;
349
- }[];
350
- }>;
351
- getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
352
- id: string;
353
- name: string;
354
- id_parent?: string | undefined;
355
- code?: string | undefined;
356
- ledger_account_code?: string | undefined;
357
- posting_account_code?: string | undefined;
358
- }[]>;
359
- }>;
360
- pms: import("../types/api").ApiFor<{
361
- getLocations(): import("../types/api").RequestData<{
362
- id: string;
363
- name: string;
364
- timezone?: string | undefined;
365
- address?: {
366
- address_type?: string | undefined;
367
- name?: string | undefined;
368
- street?: string | undefined;
369
- number?: string | undefined;
370
- box?: string | undefined;
371
- city?: string | undefined;
372
- postal_code?: string | undefined;
373
- country?: string | undefined;
374
- } | undefined;
375
- }[]>;
376
- getOrders(params: {
377
- date_from: string;
378
- date_to: string;
379
- location_id?: string | undefined;
380
- state?: "closed" | "consumed" | undefined;
381
- }): import("../types/api").RequestData<{
382
- id: string;
383
- source_ref: {
384
- id?: string | undefined;
385
- model?: string | undefined;
386
- };
387
- order_number?: string | undefined;
388
- creation_date: string;
389
- closing_date?: string | undefined;
390
- service_date?: string | undefined;
391
- device_id?: string | undefined;
392
- total: number;
393
- tax_amount: number;
394
- total_discount?: number | undefined;
395
- total_refund?: number | undefined;
396
- total_tip?: number | undefined;
397
- currency?: string | undefined;
398
- country?: string | undefined;
399
- loyalty?: number | undefined;
400
- customer_id?: string | undefined;
401
- location_id?: string | undefined;
402
- taxes?: {
403
- tax_rate: number;
404
- tax_amount: number;
405
- total: number;
406
- }[] | undefined;
407
- guests?: number | undefined;
408
- items: {
409
- id: string;
410
- source_ref: {
411
- id?: string | undefined;
412
- model?: string | undefined;
413
- };
414
- quantity: number;
415
- unit_price: number;
416
- total: number;
417
- tax_amount: number;
418
- tax_rate?: number | undefined;
419
- description?: string | undefined;
420
- discounts?: {
421
- name?: string | undefined;
422
- total: number;
423
- }[] | undefined;
424
- product_id?: string | undefined;
425
- accounting_category_id?: string | undefined;
426
- }[];
427
- service_id?: string | undefined;
428
- }[]>;
429
- getPaymentMethods(params?: {
430
- location_id?: string | undefined;
431
- } | undefined): import("../types/api").RequestData<{
432
- id: string;
433
- source_ref: {
434
- id?: string | undefined;
435
- model?: string | undefined;
436
- };
437
- name: string;
438
- extra?: string | undefined;
439
- ledger_account_code?: string | undefined;
440
- }[]>;
441
- getClosure(date: string, params?: {
442
- location_id?: string | undefined;
443
- } | undefined): import("../types/api").RequestData<{
444
- date: string;
445
- status: "open" | "closed";
446
- }>;
447
- getPayments(params: {
448
- date_from: string;
449
- date_to: string;
450
- }): import("../types/api").RequestData<{
451
- id?: string | undefined;
452
- source_ref: {
453
- id?: string | undefined;
454
- model?: string | undefined;
455
- };
456
- payment_method_id?: string | undefined;
457
- payment_method_name?: string | undefined;
458
- total: number;
459
- tip?: number | undefined;
460
- status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
461
- currency?: string | undefined;
462
- date?: string | undefined;
463
- }[]>;
464
- getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
465
- id: string;
466
- source_ref: {
467
- id?: string | undefined;
468
- model?: string | undefined;
469
- };
470
- name: string;
471
- id_parent?: string | undefined;
472
- code?: string | undefined;
473
- ledger_account_code?: string | undefined;
474
- posting_account_code?: string | undefined;
475
- }[]>;
476
- }>;
477
- accounting: import("../types/api").ApiFor<{
478
- getAnalyticPlans(params?: {
479
- folder_id?: string | undefined;
480
- } | undefined): import("../types/api").RequestData<{
481
- id: string;
482
- name: string;
483
- active?: boolean | undefined;
484
- }[]>;
485
- getClients(params?: {
486
- folder_id?: string | undefined;
487
- } | undefined): import("../types/api").RequestData<{
488
- external_reference?: string | undefined;
489
- first_name?: string | undefined;
490
- last_name?: string | undefined;
491
- name?: string | undefined;
492
- function?: string | undefined;
493
- is_company?: boolean | undefined;
494
- company_id?: string | undefined;
495
- phone?: string | undefined;
496
- mobile?: string | undefined;
497
- email?: string | undefined;
498
- language?: string | undefined;
499
- internal_notes?: string | undefined;
500
- website?: string | undefined;
501
- vat?: string | undefined;
502
- iban?: string | undefined;
503
- bank_account?: string | undefined;
504
- currency?: string | undefined;
505
- active?: boolean | undefined;
506
- addresses?: {
507
- address_type: "main" | "delivery" | "invoice";
508
- name?: string | undefined;
509
- number?: string | undefined;
510
- box?: string | undefined;
511
- phone?: string | undefined;
512
- mobile?: string | undefined;
513
- email?: string | undefined;
514
- street?: string | undefined;
515
- city?: string | undefined;
516
- postal_code?: string | undefined;
517
- country?: string | undefined;
518
- }[] | undefined;
519
- account_number?: string | undefined;
520
- company_number?: string | undefined;
521
- id?: string | undefined;
522
- }[]>;
523
- createClient(client: {
524
- external_reference?: string | undefined;
525
- first_name?: string | undefined;
526
- last_name?: string | undefined;
527
- name: string;
528
- function?: string | undefined;
529
- is_company?: boolean | undefined;
530
- company_id?: string | undefined;
531
- phone?: string | undefined;
532
- mobile?: string | undefined;
533
- email?: string | undefined;
534
- language?: string | undefined;
535
- internal_notes?: string | undefined;
536
- website?: string | undefined;
537
- vat?: string | undefined;
538
- iban?: string | undefined;
539
- bank_account?: string | undefined;
540
- currency?: string | undefined;
541
- active?: boolean | undefined;
542
- addresses: {
543
- address_type: "main" | "delivery" | "invoice";
544
- name?: string | undefined;
545
- number?: string | undefined;
546
- box?: string | undefined;
547
- phone?: string | undefined;
548
- mobile?: string | undefined;
549
- email?: string | undefined;
550
- street: string;
551
- city: string;
552
- postal_code: string;
553
- country: string;
554
- }[];
555
- account_number?: string | undefined;
556
- }, params?: {
557
- force_merge?: string | undefined;
558
- folder_id?: string | undefined;
559
- } | undefined): import("../types/api").RequestData<{
560
- external_reference?: string | undefined;
561
- first_name?: string | undefined;
562
- last_name?: string | undefined;
563
- name?: string | undefined;
564
- function?: string | undefined;
565
- is_company?: boolean | undefined;
566
- company_id?: string | undefined;
567
- phone?: string | undefined;
568
- mobile?: string | undefined;
569
- email?: string | undefined;
570
- language?: string | undefined;
571
- internal_notes?: string | undefined;
572
- website?: string | undefined;
573
- vat?: string | undefined;
574
- iban?: string | undefined;
575
- bank_account?: string | undefined;
576
- currency?: string | undefined;
577
- active?: boolean | undefined;
578
- addresses?: {
579
- address_type: "main" | "delivery" | "invoice";
580
- name?: string | undefined;
581
- number?: string | undefined;
582
- box?: string | undefined;
583
- phone?: string | undefined;
584
- mobile?: string | undefined;
585
- email?: string | undefined;
586
- street?: string | undefined;
587
- city?: string | undefined;
588
- postal_code?: string | undefined;
589
- country?: string | undefined;
590
- }[] | undefined;
591
- account_number?: string | undefined;
592
- company_number?: string | undefined;
593
- id?: string | undefined;
594
- }>;
595
- getClient(clientId: string, params?: {
596
- folder_id?: string | undefined;
597
- } | undefined): import("../types/api").RequestData<{
598
- external_reference?: string | undefined;
599
- first_name?: string | undefined;
600
- last_name?: string | undefined;
601
- name?: string | undefined;
602
- function?: string | undefined;
603
- is_company?: boolean | undefined;
604
- company_id?: string | undefined;
605
- phone?: string | undefined;
606
- mobile?: string | undefined;
607
- email?: string | undefined;
608
- language?: string | undefined;
609
- internal_notes?: string | undefined;
610
- website?: string | undefined;
611
- vat?: string | undefined;
612
- iban?: string | undefined;
613
- bank_account?: string | undefined;
614
- currency?: string | undefined;
615
- active?: boolean | undefined;
616
- addresses?: {
617
- address_type: "main" | "delivery" | "invoice";
618
- name?: string | undefined;
619
- number?: string | undefined;
620
- box?: string | undefined;
621
- phone?: string | undefined;
622
- mobile?: string | undefined;
623
- email?: string | undefined;
624
- street?: string | undefined;
625
- city?: string | undefined;
626
- postal_code?: string | undefined;
627
- country?: string | undefined;
628
- }[] | undefined;
629
- account_number?: string | undefined;
630
- company_number?: string | undefined;
631
- id?: string | undefined;
632
- }>;
633
- updateClient(clientId: string, client: {
634
- external_reference?: string | undefined;
635
- first_name?: string | undefined;
636
- last_name?: string | undefined;
637
- name?: string | undefined;
638
- function?: string | undefined;
639
- is_company?: boolean | undefined;
640
- company_id?: string | undefined;
641
- phone?: string | undefined;
642
- mobile?: string | undefined;
643
- email?: string | undefined;
644
- language?: string | undefined;
645
- internal_notes?: string | undefined;
646
- website?: string | undefined;
647
- vat?: string | undefined;
648
- iban?: string | undefined;
649
- bank_account?: string | undefined;
650
- currency?: string | undefined;
651
- active?: boolean | undefined;
652
- addresses?: {
653
- address_type: "main" | "delivery" | "invoice";
654
- name?: string | undefined;
655
- number?: string | undefined;
656
- box?: string | undefined;
657
- phone?: string | undefined;
658
- mobile?: string | undefined;
659
- email?: string | undefined;
660
- street?: string | undefined;
661
- city?: string | undefined;
662
- postal_code?: string | undefined;
663
- country?: string | undefined;
664
- }[] | undefined;
665
- }, params?: {
666
- folder_id?: string | undefined;
667
- } | undefined): import("../types/api").RequestData<{
668
- external_reference?: string | undefined;
669
- first_name?: string | undefined;
670
- last_name?: string | undefined;
671
- name?: string | undefined;
672
- function?: string | undefined;
673
- is_company?: boolean | undefined;
674
- company_id?: string | undefined;
675
- phone?: string | undefined;
676
- mobile?: string | undefined;
677
- email?: string | undefined;
678
- language?: string | undefined;
679
- internal_notes?: string | undefined;
680
- website?: string | undefined;
681
- vat?: string | undefined;
682
- iban?: string | undefined;
683
- bank_account?: string | undefined;
684
- currency?: string | undefined;
685
- active?: boolean | undefined;
686
- addresses?: {
687
- address_type: "main" | "delivery" | "invoice";
688
- name?: string | undefined;
689
- number?: string | undefined;
690
- box?: string | undefined;
691
- phone?: string | undefined;
692
- mobile?: string | undefined;
693
- email?: string | undefined;
694
- street?: string | undefined;
695
- city?: string | undefined;
696
- postal_code?: string | undefined;
697
- country?: string | undefined;
698
- }[] | undefined;
699
- account_number?: string | undefined;
700
- company_number?: string | undefined;
701
- id?: string | undefined;
702
- }>;
703
- getSuppliers(params?: {
704
- folder_id?: string | undefined;
705
- } | undefined): import("../types/api").RequestData<{
706
- external_reference?: string | undefined;
707
- first_name?: string | undefined;
708
- last_name?: string | undefined;
709
- name?: string | undefined;
710
- function?: string | undefined;
711
- is_company?: boolean | undefined;
712
- company_id?: string | undefined;
713
- phone?: string | undefined;
714
- mobile?: string | undefined;
715
- email?: string | undefined;
716
- language?: string | undefined;
717
- internal_notes?: string | undefined;
718
- website?: string | undefined;
719
- vat?: string | undefined;
720
- iban?: string | undefined;
721
- bank_account?: string | undefined;
722
- currency?: string | undefined;
723
- active?: boolean | undefined;
724
- addresses?: {
725
- address_type: "main" | "delivery" | "invoice";
726
- name?: string | undefined;
727
- number?: string | undefined;
728
- box?: string | undefined;
729
- phone?: string | undefined;
730
- mobile?: string | undefined;
731
- email?: string | undefined;
732
- street?: string | undefined;
733
- city?: string | undefined;
734
- postal_code?: string | undefined;
735
- country?: string | undefined;
736
- }[] | undefined;
737
- account_number?: string | undefined;
738
- company_number?: string | undefined;
739
- id?: string | undefined;
740
- }[]>;
741
- createSupplier(supplier: {
742
- external_reference?: string | undefined;
743
- first_name?: string | undefined;
744
- last_name?: string | undefined;
745
- name: string;
746
- function?: string | undefined;
747
- is_company?: boolean | undefined;
748
- company_id?: string | undefined;
749
- phone?: string | undefined;
750
- mobile?: string | undefined;
751
- email?: string | undefined;
752
- language?: string | undefined;
753
- internal_notes?: string | undefined;
754
- website?: string | undefined;
755
- vat?: string | undefined;
756
- iban?: string | undefined;
757
- bank_account?: string | undefined;
758
- currency?: string | undefined;
759
- active?: boolean | undefined;
760
- addresses: {
761
- address_type: "main" | "delivery" | "invoice";
762
- name?: string | undefined;
763
- number?: string | undefined;
764
- box?: string | undefined;
765
- phone?: string | undefined;
766
- mobile?: string | undefined;
767
- email?: string | undefined;
768
- street: string;
769
- city: string;
770
- postal_code: string;
771
- country: string;
772
- }[];
773
- account_number?: string | undefined;
774
- }, params?: {
775
- force_merge?: string | undefined;
776
- folder_id?: string | undefined;
777
- } | undefined): import("../types/api").RequestData<{
778
- external_reference?: string | undefined;
779
- first_name?: string | undefined;
780
- last_name?: string | undefined;
781
- name?: string | undefined;
782
- function?: string | undefined;
783
- is_company?: boolean | undefined;
784
- company_id?: string | undefined;
785
- phone?: string | undefined;
786
- mobile?: string | undefined;
787
- email?: string | undefined;
788
- language?: string | undefined;
789
- internal_notes?: string | undefined;
790
- website?: string | undefined;
791
- vat?: string | undefined;
792
- iban?: string | undefined;
793
- bank_account?: string | undefined;
794
- currency?: string | undefined;
795
- active?: boolean | undefined;
796
- addresses?: {
797
- address_type: "main" | "delivery" | "invoice";
798
- name?: string | undefined;
799
- number?: string | undefined;
800
- box?: string | undefined;
801
- phone?: string | undefined;
802
- mobile?: string | undefined;
803
- email?: string | undefined;
804
- street?: string | undefined;
805
- city?: string | undefined;
806
- postal_code?: string | undefined;
807
- country?: string | undefined;
808
- }[] | undefined;
809
- account_number?: string | undefined;
810
- company_number?: string | undefined;
811
- id?: string | undefined;
812
- }>;
813
- getSupplier(supplierId: string, params?: {
814
- folder_id?: string | undefined;
815
- } | undefined): import("../types/api").RequestData<{
816
- external_reference?: string | undefined;
817
- first_name?: string | undefined;
818
- last_name?: string | undefined;
819
- name?: string | undefined;
820
- function?: string | undefined;
821
- is_company?: boolean | undefined;
822
- company_id?: string | undefined;
823
- phone?: string | undefined;
824
- mobile?: string | undefined;
825
- email?: string | undefined;
826
- language?: string | undefined;
827
- internal_notes?: string | undefined;
828
- website?: string | undefined;
829
- vat?: string | undefined;
830
- iban?: string | undefined;
831
- bank_account?: string | undefined;
832
- currency?: string | undefined;
833
- active?: boolean | undefined;
834
- addresses?: {
835
- address_type: "main" | "delivery" | "invoice";
836
- name?: string | undefined;
837
- number?: string | undefined;
838
- box?: string | undefined;
839
- phone?: string | undefined;
840
- mobile?: string | undefined;
841
- email?: string | undefined;
842
- street?: string | undefined;
843
- city?: string | undefined;
844
- postal_code?: string | undefined;
845
- country?: string | undefined;
846
- }[] | undefined;
847
- account_number?: string | undefined;
848
- company_number?: string | undefined;
849
- id?: string | undefined;
850
- }>;
851
- updateSupplier(supplierId: string, supplier: {
852
- external_reference?: string | undefined;
853
- first_name?: string | undefined;
854
- last_name?: string | undefined;
855
- name?: string | undefined;
856
- function?: string | undefined;
857
- is_company?: boolean | undefined;
858
- company_id?: string | undefined;
859
- phone?: string | undefined;
860
- mobile?: string | undefined;
861
- email?: string | undefined;
862
- language?: string | undefined;
863
- internal_notes?: string | undefined;
864
- website?: string | undefined;
865
- vat?: string | undefined;
866
- iban?: string | undefined;
867
- bank_account?: string | undefined;
868
- currency?: string | undefined;
869
- active?: boolean | undefined;
870
- addresses?: {
871
- address_type: "main" | "delivery" | "invoice";
872
- name?: string | undefined;
873
- number?: string | undefined;
874
- box?: string | undefined;
875
- phone?: string | undefined;
876
- mobile?: string | undefined;
877
- email?: string | undefined;
878
- street?: string | undefined;
879
- city?: string | undefined;
880
- postal_code?: string | undefined;
881
- country?: string | undefined;
882
- }[] | undefined;
883
- }, params?: {
884
- folder_id?: string | undefined;
885
- } | undefined): import("../types/api").RequestData<{
886
- external_reference?: string | undefined;
887
- first_name?: string | undefined;
888
- last_name?: string | undefined;
889
- name?: string | undefined;
890
- function?: string | undefined;
891
- is_company?: boolean | undefined;
892
- company_id?: string | undefined;
893
- phone?: string | undefined;
894
- mobile?: string | undefined;
895
- email?: string | undefined;
896
- language?: string | undefined;
897
- internal_notes?: string | undefined;
898
- website?: string | undefined;
899
- vat?: string | undefined;
900
- iban?: string | undefined;
901
- bank_account?: string | undefined;
902
- currency?: string | undefined;
903
- active?: boolean | undefined;
904
- addresses?: {
905
- address_type: "main" | "delivery" | "invoice";
906
- name?: string | undefined;
907
- number?: string | undefined;
908
- box?: string | undefined;
909
- phone?: string | undefined;
910
- mobile?: string | undefined;
911
- email?: string | undefined;
912
- street?: string | undefined;
913
- city?: string | undefined;
914
- postal_code?: string | undefined;
915
- country?: string | undefined;
916
- }[] | undefined;
917
- account_number?: string | undefined;
918
- company_number?: string | undefined;
919
- id?: string | undefined;
920
- }>;
921
- createInvoice(invoice: {
922
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
923
- invoice_number?: string | undefined;
924
- currency: string;
925
- untaxed_amount: number;
926
- tax_amount: number;
927
- total: number;
928
- reference?: string | undefined;
929
- payment_communication?: string | undefined;
930
- customer_memo?: string | undefined;
931
- invoice_date: string;
932
- due_date: string;
933
- partner_id: string;
934
- journal_id?: string | undefined;
935
- status?: "draft" | "posted" | undefined;
936
- pdf?: string | undefined;
937
- currency_exchange_rate?: number | undefined;
938
- invoice_correction?: {
939
- sale_invoice_correction_tax_code?: string | undefined;
940
- purchase_invoice_correction_tax_code?: string | undefined;
941
- invoice_correction_credit_account_number?: string | undefined;
942
- invoice_correction_debit_account_number?: string | undefined;
943
- } | undefined;
944
- nl_payment_terms_split?: {
945
- g_account: {
946
- amount: number;
947
- iban: string;
948
- };
949
- n_account: {
950
- amount: number;
951
- iban: string;
952
- };
953
- } | undefined;
954
- shipping_country?: string | undefined;
955
- lines: {
956
- line_number?: number | undefined;
957
- description: string;
958
- unit_price: number;
959
- unit_of_measure?: string | undefined;
960
- quantity: number;
961
- untaxed_amount: number;
962
- tax_rate: number;
963
- tax_amount: number;
964
- total: number;
965
- account_number: string;
966
- tax_code: string;
967
- analytic_account?: string | undefined;
968
- }[];
969
- }, params?: {
970
- force_financial_period?: string | undefined;
971
- regroup_lines?: "true" | "false" | undefined;
972
- folder_id?: string | undefined;
973
- } | undefined): import("../types/api").RequestData<{
974
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
975
- invoice_number?: string | undefined;
976
- currency: string;
977
- untaxed_amount: number;
978
- tax_amount: number;
979
- total: number;
980
- reference?: string | undefined;
981
- payment_communication?: string | undefined;
982
- customer_memo?: string | undefined;
983
- id?: string | undefined;
984
- invoice_date: string;
985
- due_date: string;
986
- partner_id: string;
987
- journal_id: string;
988
- payments?: {
989
- id: string;
990
- name: string;
991
- currency: string;
992
- amount: number;
993
- dedicated_amount?: number | undefined;
994
- payment_date: string;
995
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
996
- journal_id: string;
997
- journal_name: string;
998
- reconciled?: boolean | undefined;
999
- communication?: string | undefined;
1000
- matching_number?: string | undefined;
1001
- }[] | undefined;
1002
- status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1003
- lines: {
1004
- line_number?: number | undefined;
1005
- description: string;
1006
- unit_price: number;
1007
- unit_of_measure?: string | undefined;
1008
- quantity: number;
1009
- untaxed_amount: number;
1010
- tax_rate: number;
1011
- tax_amount: number;
1012
- total: number;
1013
- account_number: string;
1014
- tax_code?: string | undefined;
1015
- analytic_account?: string | undefined;
1016
- }[];
1017
- }>;
1018
- createInvoiceWithMultiplePlans(invoice: {
1019
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1020
- invoice_number?: string | undefined;
1021
- currency: string;
1022
- untaxed_amount: number;
1023
- tax_amount: number;
1024
- total: number;
1025
- reference?: string | undefined;
1026
- payment_communication?: string | undefined;
1027
- customer_memo?: string | undefined;
1028
- invoice_date: string;
1029
- due_date: string;
1030
- partner_id: string;
1031
- journal_id?: string | undefined;
1032
- status?: "draft" | "posted" | undefined;
1033
- pdf?: string | undefined;
1034
- currency_exchange_rate?: number | undefined;
1035
- invoice_correction?: {
1036
- sale_invoice_correction_tax_code?: string | undefined;
1037
- purchase_invoice_correction_tax_code?: string | undefined;
1038
- invoice_correction_credit_account_number?: string | undefined;
1039
- invoice_correction_debit_account_number?: string | undefined;
1040
- } | undefined;
1041
- nl_payment_terms_split?: {
1042
- g_account: {
1043
- amount: number;
1044
- iban: string;
1045
- };
1046
- n_account: {
1047
- amount: number;
1048
- iban: string;
1049
- };
1050
- } | undefined;
1051
- shipping_country?: string | undefined;
1052
- lines: {
1053
- line_number?: number | undefined;
1054
- description: string;
1055
- unit_price: number;
1056
- unit_of_measure?: string | undefined;
1057
- quantity: number;
1058
- untaxed_amount: number;
1059
- tax_rate: number;
1060
- tax_amount: number;
1061
- total: number;
1062
- account_number: string;
1063
- tax_code: string;
1064
- analytic_distribution?: {
1065
- analytic_plan: string;
1066
- analytic_accounts: {
1067
- analytic_account: string;
1068
- percentage: number;
1069
- }[];
1070
- }[] | undefined;
1071
- }[];
1072
- }, params?: {
1073
- force_financial_period?: string | undefined;
1074
- regroup_lines?: "true" | "false" | undefined;
1075
- folder_id?: string | undefined;
1076
- } | undefined): import("../types/api").RequestData<{
1077
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1078
- invoice_number?: string | undefined;
1079
- currency: string;
1080
- untaxed_amount: number;
1081
- tax_amount: number;
1082
- total: number;
1083
- reference?: string | undefined;
1084
- payment_communication?: string | undefined;
1085
- customer_memo?: string | undefined;
1086
- id?: string | undefined;
1087
- invoice_date: string;
1088
- due_date: string;
1089
- partner_id: string;
1090
- journal_id: string;
1091
- payments?: {
1092
- id: string;
1093
- name: string;
1094
- currency: string;
1095
- amount: number;
1096
- dedicated_amount?: number | undefined;
1097
- payment_date: string;
1098
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1099
- journal_id: string;
1100
- journal_name: string;
1101
- reconciled?: boolean | undefined;
1102
- communication?: string | undefined;
1103
- matching_number?: string | undefined;
1104
- }[] | undefined;
1105
- status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1106
- lines: {
1107
- line_number?: number | undefined;
1108
- description: string;
1109
- unit_price: number;
1110
- unit_of_measure?: string | undefined;
1111
- quantity: number;
1112
- untaxed_amount: number;
1113
- tax_rate: number;
1114
- tax_amount: number;
1115
- total: number;
1116
- account_number: string;
1117
- tax_code?: string | undefined;
1118
- analytic_distribution?: {
1119
- analytic_plan: string;
1120
- analytic_accounts: {
1121
- analytic_account: string;
1122
- percentage: number;
1123
- }[];
1124
- }[] | undefined;
1125
- }[];
1126
- }>;
1127
- getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
1128
- date_from?: string | undefined;
1129
- date_to?: string | undefined;
1130
- folder_id?: string | undefined;
1131
- journal_ids?: string | undefined;
1132
- include_payments?: "true" | "false" | undefined;
1133
- payment_status?: "all" | "paid" | "unpaid" | undefined;
1134
- } | undefined): import("../types/api").RequestData<{
1135
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1136
- invoice_number?: string | undefined;
1137
- currency: string;
1138
- untaxed_amount: number;
1139
- tax_amount: number;
1140
- total: number;
1141
- reference?: string | undefined;
1142
- payment_communication?: string | undefined;
1143
- customer_memo?: string | undefined;
1144
- id?: string | undefined;
1145
- invoice_date: string;
1146
- due_date: string;
1147
- partner_id: string;
1148
- journal_id: string;
1149
- payments?: {
1150
- id: string;
1151
- name: string;
1152
- currency: string;
1153
- amount: number;
1154
- dedicated_amount?: number | undefined;
1155
- payment_date: string;
1156
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1157
- journal_id: string;
1158
- journal_name: string;
1159
- reconciled?: boolean | undefined;
1160
- communication?: string | undefined;
1161
- matching_number?: string | undefined;
1162
- }[] | undefined;
1163
- status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1164
- lines: {
1165
- line_number?: number | undefined;
1166
- description: string;
1167
- unit_price: number;
1168
- unit_of_measure?: string | undefined;
1169
- quantity: number;
1170
- untaxed_amount: number;
1171
- tax_rate: number;
1172
- tax_amount: number;
1173
- total: number;
1174
- account_number: string;
1175
- tax_code?: string | undefined;
1176
- analytic_account?: string | undefined;
1177
- }[];
1178
- }[]>;
1179
- getInvoice(invoiceId: string, params?: {
1180
- include_payments?: "true" | "false" | undefined;
1181
- folder_id?: string | undefined;
1182
- } | undefined): import("../types/api").RequestData<{
1183
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1184
- invoice_number?: string | undefined;
1185
- currency: string;
1186
- untaxed_amount: number;
1187
- tax_amount: number;
1188
- total: number;
1189
- reference?: string | undefined;
1190
- payment_communication?: string | undefined;
1191
- customer_memo?: string | undefined;
1192
- id?: string | undefined;
1193
- invoice_date: string;
1194
- due_date: string;
1195
- partner_id: string;
1196
- journal_id: string;
1197
- payments?: {
1198
- id: string;
1199
- name: string;
1200
- currency: string;
1201
- amount: number;
1202
- dedicated_amount?: number | undefined;
1203
- payment_date: string;
1204
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1205
- journal_id: string;
1206
- journal_name: string;
1207
- reconciled?: boolean | undefined;
1208
- communication?: string | undefined;
1209
- matching_number?: string | undefined;
1210
- }[] | undefined;
1211
- status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1212
- lines: {
1213
- line_number?: number | undefined;
1214
- description: string;
1215
- unit_price: number;
1216
- unit_of_measure?: string | undefined;
1217
- quantity: number;
1218
- untaxed_amount: number;
1219
- tax_rate: number;
1220
- tax_amount: number;
1221
- total: number;
1222
- account_number: string;
1223
- tax_code?: string | undefined;
1224
- analytic_account?: string | undefined;
1225
- }[];
1226
- }>;
1227
- getInvoiceWithMultiplePlans(invoiceId: string, params?: {
1228
- include_payments?: "true" | "false" | undefined;
1229
- folder_id?: string | undefined;
1230
- } | undefined): import("../types/api").RequestData<{
1231
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1232
- invoice_number?: string | undefined;
1233
- currency: string;
1234
- untaxed_amount: number;
1235
- tax_amount: number;
1236
- total: number;
1237
- reference?: string | undefined;
1238
- payment_communication?: string | undefined;
1239
- customer_memo?: string | undefined;
1240
- id?: string | undefined;
1241
- invoice_date: string;
1242
- due_date: string;
1243
- partner_id: string;
1244
- journal_id: string;
1245
- payments?: {
1246
- id: string;
1247
- name: string;
1248
- currency: string;
1249
- amount: number;
1250
- dedicated_amount?: number | undefined;
1251
- payment_date: string;
1252
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1253
- journal_id: string;
1254
- journal_name: string;
1255
- reconciled?: boolean | undefined;
1256
- communication?: string | undefined;
1257
- matching_number?: string | undefined;
1258
- }[] | undefined;
1259
- status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1260
- lines: {
1261
- line_number?: number | undefined;
1262
- description: string;
1263
- unit_price: number;
1264
- unit_of_measure?: string | undefined;
1265
- quantity: number;
1266
- untaxed_amount: number;
1267
- tax_rate: number;
1268
- tax_amount: number;
1269
- total: number;
1270
- account_number: string;
1271
- tax_code?: string | undefined;
1272
- analytic_distribution?: {
1273
- analytic_plan: string;
1274
- analytic_accounts: {
1275
- analytic_account: string;
1276
- percentage: number;
1277
- }[];
1278
- }[] | undefined;
1279
- }[];
1280
- }>;
1281
- getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params?: {
1282
- date_from?: string | undefined;
1283
- date_to?: string | undefined;
1284
- folder_id?: string | undefined;
1285
- journal_ids?: string | undefined;
1286
- include_payments?: "true" | "false" | undefined;
1287
- payment_status?: "all" | "paid" | "unpaid" | undefined;
1288
- } | undefined): import("../types/api").RequestData<{
1289
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1290
- invoice_number?: string | undefined;
1291
- currency: string;
1292
- untaxed_amount: number;
1293
- tax_amount: number;
1294
- total: number;
1295
- reference?: string | undefined;
1296
- payment_communication?: string | undefined;
1297
- customer_memo?: string | undefined;
1298
- id?: string | undefined;
1299
- invoice_date: string;
1300
- due_date: string;
1301
- partner_id: string;
1302
- journal_id: string;
1303
- payments?: {
1304
- id: string;
1305
- name: string;
1306
- currency: string;
1307
- amount: number;
1308
- dedicated_amount?: number | undefined;
1309
- payment_date: string;
1310
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1311
- journal_id: string;
1312
- journal_name: string;
1313
- reconciled?: boolean | undefined;
1314
- communication?: string | undefined;
1315
- matching_number?: string | undefined;
1316
- }[] | undefined;
1317
- status?: "cancelled" | "draft" | "posted" | "paid" | undefined;
1318
- lines: {
1319
- line_number?: number | undefined;
1320
- description: string;
1321
- unit_price: number;
1322
- unit_of_measure?: string | undefined;
1323
- quantity: number;
1324
- untaxed_amount: number;
1325
- tax_rate: number;
1326
- tax_amount: number;
1327
- total: number;
1328
- account_number: string;
1329
- tax_code?: string | undefined;
1330
- analytic_distribution?: {
1331
- analytic_plan: string;
1332
- analytic_accounts: {
1333
- analytic_account: string;
1334
- percentage: number;
1335
- }[];
1336
- }[] | undefined;
1337
- }[];
1338
- }[]>;
1339
- createAnalyticAccount(analyticAccount: {
1340
- active?: boolean | undefined;
1341
- code: string;
1342
- name: string;
1343
- currency: string;
1344
- }, params?: {
1345
- folder_id?: string | undefined;
1346
- } | undefined): import("../types/api").RequestData<{
1347
- id: string;
1348
- active: boolean;
1349
- code?: string | undefined;
1350
- name: string;
1351
- currency?: string | undefined;
1352
- balance?: number | undefined;
1353
- credit?: number | undefined;
1354
- debit?: number | undefined;
1355
- }>;
1356
- getAnalyticAccounts(params?: {
1357
- folder_id?: string | undefined;
1358
- } | undefined): import("../types/api").RequestData<{
1359
- id: string;
1360
- active: boolean;
1361
- code?: string | undefined;
1362
- name: string;
1363
- currency?: string | undefined;
1364
- balance?: number | undefined;
1365
- credit?: number | undefined;
1366
- debit?: number | undefined;
1367
- }[]>;
1368
- createAnalyticAccountWithMultiplePlans(analytic_plan: string, analyticAccount: {
1369
- active?: boolean | undefined;
1370
- code: string;
1371
- name: string;
1372
- currency: string;
1373
- }, params?: {
1374
- folder_id?: string | undefined;
1375
- } | undefined): import("../types/api").RequestData<{
1376
- id: string;
1377
- active: boolean;
1378
- code?: string | undefined;
1379
- name: string;
1380
- currency?: string | undefined;
1381
- balance?: number | undefined;
1382
- credit?: number | undefined;
1383
- debit?: number | undefined;
1384
- analytic_plan: string;
1385
- }>;
1386
- getAnalyticAccount(analytic_account_id: string, params?: {
1387
- folder_id?: string | undefined;
1388
- } | undefined): import("../types/api").RequestData<{
1389
- id: string;
1390
- active: boolean;
1391
- code?: string | undefined;
1392
- name: string;
1393
- currency?: string | undefined;
1394
- balance?: number | undefined;
1395
- credit?: number | undefined;
1396
- debit?: number | undefined;
1397
- }>;
1398
- updateAnalyticAccount(analytic_account_id: string, analyticAccount: {
1399
- active?: boolean | undefined;
1400
- code?: string | undefined;
1401
- name?: string | undefined;
1402
- currency?: string | undefined;
1403
- }, params?: {
1404
- folder_id?: string | undefined;
1405
- } | undefined): import("../types/api").RequestData<{
1406
- id: string;
1407
- active: boolean;
1408
- code?: string | undefined;
1409
- name: string;
1410
- currency?: string | undefined;
1411
- balance?: number | undefined;
1412
- credit?: number | undefined;
1413
- debit?: number | undefined;
1414
- }>;
1415
- getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: {
1416
- folder_id?: string | undefined;
1417
- } | undefined): import("../types/api").RequestData<{
1418
- id: string;
1419
- active: boolean;
1420
- code?: string | undefined;
1421
- name: string;
1422
- currency?: string | undefined;
1423
- balance?: number | undefined;
1424
- credit?: number | undefined;
1425
- debit?: number | undefined;
1426
- analytic_plan: string;
1427
- }>;
1428
- updateAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, analyticAccount: {
1429
- active?: boolean | undefined;
1430
- code?: string | undefined;
1431
- name?: string | undefined;
1432
- currency?: string | undefined;
1433
- }, params?: {
1434
- folder_id?: string | undefined;
1435
- } | undefined): import("../types/api").RequestData<{
1436
- id: string;
1437
- active: boolean;
1438
- code?: string | undefined;
1439
- name: string;
1440
- currency?: string | undefined;
1441
- balance?: number | undefined;
1442
- credit?: number | undefined;
1443
- debit?: number | undefined;
1444
- analytic_plan: string;
1445
- }>;
1446
- getAnalyticAccountsWithMultiplePlans(params?: {
1447
- folder_id?: string | undefined;
1448
- } | undefined): import("../types/api").RequestData<{
1449
- id: string;
1450
- active: boolean;
1451
- code?: string | undefined;
1452
- name: string;
1453
- currency?: string | undefined;
1454
- balance?: number | undefined;
1455
- credit?: number | undefined;
1456
- debit?: number | undefined;
1457
- analytic_plan: string;
1458
- }[]>;
1459
- getJournalEntries(params: {
1460
- date_from: string;
1461
- date_to: string;
1462
- folder_id?: string | undefined;
1463
- unposted_allowed: "true" | "false";
1464
- journal_id: string;
1465
- partner_id?: string | undefined;
1466
- }): import("../types/api").RequestData<{
1467
- reference?: string | undefined;
1468
- due_date?: string | undefined;
1469
- journal_id: string;
1470
- name?: string | undefined;
1471
- journal_name: string;
1472
- date?: string | undefined;
1473
- posted?: boolean | undefined;
1474
- id: string;
1475
- items?: {
1476
- account_number: string;
1477
- partner_id?: string | undefined;
1478
- description?: string | undefined;
1479
- debit: number;
1480
- credit: number;
1481
- currency: string;
1482
- currency_exchange_rate?: number | undefined;
1483
- id: string;
1484
- partner_name?: string | undefined;
1485
- account_name: string;
1486
- matching_numbers?: string[] | undefined;
1487
- analytic_account?: string | undefined;
1488
- analytic_account_name?: string | undefined;
1489
- }[] | undefined;
1490
- }[]>;
1491
- getJournalEntriesWithMultiplePlans(params: {
1492
- date_from: string;
1493
- date_to: string;
1494
- folder_id?: string | undefined;
1495
- unposted_allowed: "true" | "false";
1496
- journal_id: string;
1497
- partner_id?: string | undefined;
1498
- }): import("../types/api").RequestData<{
1499
- reference?: string | undefined;
1500
- due_date?: string | undefined;
1501
- journal_id: string;
1502
- name?: string | undefined;
1503
- journal_name: string;
1504
- date?: string | undefined;
1505
- posted?: boolean | undefined;
1506
- id: string;
1507
- items?: {
1508
- account_number: string;
1509
- partner_id?: string | undefined;
1510
- description?: string | undefined;
1511
- debit: number;
1512
- credit: number;
1513
- currency: string;
1514
- currency_exchange_rate?: number | undefined;
1515
- id: string;
1516
- partner_name?: string | undefined;
1517
- account_name: string;
1518
- matching_numbers?: string[] | undefined;
1519
- analytic_distribution?: {
1520
- analytic_plan: string;
1521
- analytic_accounts: {
1522
- analytic_account: string;
1523
- percentage: number;
1524
- }[];
1525
- }[] | undefined;
1526
- }[] | undefined;
1527
- }[]>;
1528
- getPaymentsByInvoiceId(invoice_id: string, params?: {
1529
- folder_id?: string | undefined;
1530
- page?: number | undefined;
1531
- size?: number | undefined;
1532
- } | undefined): import("../types/api").RequestData<{
1533
- id: string;
1534
- name: string;
1535
- currency: string;
1536
- amount: number;
1537
- dedicated_amount?: number | undefined;
1538
- payment_date: string;
1539
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1540
- journal_id: string;
1541
- journal_name: string;
1542
- reconciled?: boolean | undefined;
1543
- communication?: string | undefined;
1544
- matching_number?: string | undefined;
1545
- }[]>;
1546
- getJournals(params?: {
1547
- folder_id?: string | undefined;
1548
- } | undefined): import("../types/api").RequestData<{
1549
- id: string;
1550
- code?: string | undefined;
1551
- name: string;
1552
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1553
- }[]>;
1554
- getVatCodes(params?: {
1555
- folder_id?: string | undefined;
1556
- } | undefined): import("../types/api").RequestData<{
1557
- id: string;
1558
- code?: string | undefined;
1559
- label: string;
1560
- scope?: "unknown" | "nat" | "eu" | "int" | undefined;
1561
- rate: number;
1562
- type: "unknown" | "sale" | "purchase" | "both";
1563
- deductible_account?: string | undefined;
1564
- payable_account?: string | undefined;
1565
- }[]>;
1566
- getMiscOperations(params?: {
1567
- date_from?: string | undefined;
1568
- date_to?: string | undefined;
1569
- folder_id?: string | undefined;
1570
- journal_ids?: string | undefined;
1571
- } | undefined): import("../types/api").RequestData<{
1572
- operation_number?: string | undefined;
1573
- currency: string;
1574
- currency_exchange_rate?: number | undefined;
1575
- lines: {
1576
- line_number?: number | undefined;
1577
- description?: string | undefined;
1578
- amount: number;
1579
- type: "customer_account" | "supplier_account" | "general_account";
1580
- account_number: string;
1581
- partner_id?: string | undefined;
1582
- analytic_account?: string | undefined;
1583
- }[];
1584
- operation_date?: string | undefined;
1585
- journal_id: string;
1586
- status: "cancelled" | "draft" | "posted" | "matched";
1587
- id: string;
1588
- }[]>;
1589
- createMiscOperation(operation: {
1590
- operation_number?: string | undefined;
1591
- currency: string;
1592
- currency_exchange_rate?: number | undefined;
1593
- lines: {
1594
- line_number?: number | undefined;
1595
- description?: string | undefined;
1596
- amount: number;
1597
- type: "customer_account" | "supplier_account" | "general_account";
1598
- account_number: string;
1599
- partner_id?: string | undefined;
1600
- analytic_account?: string | undefined;
1601
- }[];
1602
- operation_date: string;
1603
- journal_id?: string | undefined;
1604
- status?: "draft" | "posted" | undefined;
1605
- }, params?: {
1606
- folder_id?: string | undefined;
1607
- } | undefined): import("../types/api").RequestData<{
1608
- operation_number?: string | undefined;
1609
- currency: string;
1610
- currency_exchange_rate?: number | undefined;
1611
- lines: {
1612
- line_number?: number | undefined;
1613
- description?: string | undefined;
1614
- amount: number;
1615
- type: "customer_account" | "supplier_account" | "general_account";
1616
- account_number: string;
1617
- partner_id?: string | undefined;
1618
- analytic_account?: string | undefined;
1619
- }[];
1620
- operation_date?: string | undefined;
1621
- journal_id: string;
1622
- status: "cancelled" | "draft" | "posted" | "matched";
1623
- id: string;
1624
- }>;
1625
- getMiscOperation(operation_id: string, params?: {
1626
- folder_id?: string | undefined;
1627
- } | undefined): import("../types/api").RequestData<{
1628
- operation_number?: string | undefined;
1629
- currency: string;
1630
- currency_exchange_rate?: number | undefined;
1631
- lines: {
1632
- line_number?: number | undefined;
1633
- description?: string | undefined;
1634
- amount: number;
1635
- type: "customer_account" | "supplier_account" | "general_account";
1636
- account_number: string;
1637
- partner_id?: string | undefined;
1638
- analytic_account?: string | undefined;
1639
- }[];
1640
- operation_date?: string | undefined;
1641
- journal_id: string;
1642
- status: "cancelled" | "draft" | "posted" | "matched";
1643
- id: string;
1644
- }>;
1645
- attachPDF(invoice_id: string, attachment: {
1646
- base64_string: string;
1647
- }, params?: {
1648
- overwrite_existing?: "true" | "false" | undefined;
1649
- folder_id?: string | undefined;
1650
- } | undefined): import("../types/api").RequestData<{
1651
- content: {
1652
- 'application/json': unknown;
1653
- };
1654
- }>;
1655
- getAttachments(params: {
1656
- folder_id?: string | undefined;
1657
- type: "invoice" | "entry";
1658
- document_id: string;
1659
- }): import("../types/api").RequestData<{
1660
- base64_string: string;
1661
- }[]>;
1662
- getChartOfAccounts(params?: {
1663
- classes?: string | undefined;
1664
- folder_id?: string | undefined;
1665
- } | undefined): import("../types/api").RequestData<{
1666
- number: string;
1667
- name: string;
1668
- active?: boolean | undefined;
1669
- type?: "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "vat" | "other" | undefined;
1670
- }[]>;
1671
- getBalanceOfAccounts(filter: {
1672
- accounts: string[];
1673
- start?: string | undefined;
1674
- end: string;
1675
- }, params?: {
1676
- folder_id?: string | undefined;
1677
- } | undefined): import("../types/api").RequestData<{
1678
- account_number: string;
1679
- account_name?: string | undefined;
1680
- debit: number;
1681
- credit: number;
1682
- balance: number;
1683
- }[]>;
1684
- getEmployees(params?: {
1685
- folder_id?: string | undefined;
1686
- } | undefined): import("../types/api").RequestData<{
1687
- id: string;
1688
- name: string;
1689
- first_name?: string | undefined;
1690
- last_name?: string | undefined;
1691
- function?: string | undefined;
1692
- phone?: string | undefined;
1693
- mobile?: string | undefined;
1694
- email?: string | undefined;
1695
- active?: boolean | undefined;
1696
- reference?: string | undefined;
1697
- account_number?: string | undefined;
1698
- }[]>;
1699
- getOutstandings(params: {
1700
- folder_id?: string | undefined;
1701
- type: "supplier" | "client";
1702
- unposted_allowed: "true" | "false";
1703
- }): import("../types/api").RequestData<{
1704
- id: string;
1705
- number?: string | undefined;
1706
- journal_id: string;
1707
- journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1708
- date: string;
1709
- due_date?: string | undefined;
1710
- currency: string;
1711
- currency_exchange_rate: number;
1712
- amount: number;
1713
- open_amount: number;
1714
- partner_id: string;
1715
- account_number: string;
1716
- reference?: string | undefined;
1717
- payment_communication?: string | undefined;
1718
- posted: boolean;
1719
- }[]>;
1720
- createFinancialEntryOld(financial_entry: {
1721
- date: string;
1722
- journal_id: string;
1723
- currency: string;
1724
- currency_exchange_rate?: number | undefined;
1725
- reference?: string | undefined;
1726
- number?: string | undefined;
1727
- items: {
1728
- type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1729
- account_number: string;
1730
- partner_id?: string | undefined;
1731
- amount: number;
1732
- description?: string | undefined;
1733
- }[];
1734
- pdf?: string | undefined;
1735
- }, params?: {
1736
- financial_counterpart_account?: string | undefined;
1737
- folder_id?: string | undefined;
1738
- } | undefined): import("../types/api").RequestData<{
1739
- date: string;
1740
- journal_id: string;
1741
- currency: string;
1742
- currency_exchange_rate?: number | undefined;
1743
- reference?: string | undefined;
1744
- id: string;
1745
- number: string;
1746
- items: {
1747
- type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1748
- account_number: string;
1749
- partner_id?: string | undefined;
1750
- amount: number;
1751
- description?: string | undefined;
1752
- counterpart_account: string;
1753
- }[];
1754
- }>;
1755
- createFinancialEntry(financial_entry: {
1756
- date: string;
1757
- journal_id: string;
1758
- currency: string;
1759
- currency_exchange_rate?: number | undefined;
1760
- reference?: string | undefined;
1761
- number?: string | undefined;
1762
- items: {
1763
- account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1764
- account: string;
1765
- amount: number;
1766
- description?: string | undefined;
1767
- }[];
1768
- pdf?: string | undefined;
1769
- }, params?: {
1770
- financial_counterpart_account?: string | undefined;
1771
- folder_id?: string | undefined;
1772
- } | undefined): import("../types/api").RequestData<{
1773
- date: string;
1774
- journal_id: string;
1775
- currency: string;
1776
- currency_exchange_rate?: number | undefined;
1777
- reference?: string | undefined;
1778
- id: string;
1779
- number: string;
1780
- items: {
1781
- account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1782
- account: string;
1783
- amount: number;
1784
- description?: string | undefined;
1785
- counterpart_account: string;
1786
- }[];
1787
- }[]>;
1788
- createJournalEntryOld(journal_entry: {
1789
- reference?: string | undefined;
1790
- due_date?: string | undefined;
1791
- journal_id: string;
1792
- name: string;
1793
- date: string;
1794
- items: {
1795
- account_number: string;
1796
- partner_id?: string | undefined;
1797
- description?: string | undefined;
1798
- debit: number;
1799
- credit: number;
1800
- currency: string;
1801
- currency_exchange_rate?: number | undefined;
1802
- analytic_distribution?: {
1803
- analytic_plan: string;
1804
- analytic_accounts: {
1805
- analytic_account: string;
1806
- percentage: number;
1807
- }[];
1808
- }[] | undefined;
1809
- }[];
1810
- pdf?: string | undefined;
1811
- }): import("../types/api").RequestData<{
1812
- reference?: string | undefined;
1813
- due_date?: string | undefined;
1814
- journal_id: string;
1815
- name?: string | undefined;
1816
- journal_name: string;
1817
- date?: string | undefined;
1818
- posted?: boolean | undefined;
1819
- id: string;
1820
- items?: {
1821
- account_number: string;
1822
- partner_id?: string | undefined;
1823
- description?: string | undefined;
1824
- debit: number;
1825
- credit: number;
1826
- currency: string;
1827
- currency_exchange_rate?: number | undefined;
1828
- id: string;
1829
- partner_name?: string | undefined;
1830
- account_name: string;
1831
- matching_numbers?: string[] | undefined;
1832
- analytic_distribution?: {
1833
- analytic_plan: string;
1834
- analytic_accounts: {
1835
- analytic_account: string;
1836
- percentage: number;
1837
- }[];
1838
- }[] | undefined;
1839
- }[] | undefined;
1840
- }>;
1841
- createJournalEntry(journal_entry: {
1842
- reference?: string | undefined;
1843
- due_date?: string | undefined;
1844
- journal_id: string;
1845
- number: string;
1846
- currency: string;
1847
- currency_exchange_rate?: number | undefined;
1848
- date: string;
1849
- items: {
1850
- account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
1851
- account: string;
1852
- force_general_account?: string | undefined;
1853
- prioritise_thirdparty_account?: boolean | undefined;
1854
- description?: string | undefined;
1855
- debit: number;
1856
- credit: number;
1857
- analytic_distribution?: {
1858
- analytic_plan: string;
1859
- analytic_accounts: {
1860
- analytic_account: string;
1861
- percentage: number;
1862
- }[];
1863
- }[] | undefined;
1864
- tax_code?: string | undefined;
1865
- }[];
1866
- pdf?: string | undefined;
1867
- posted?: boolean | undefined;
1868
- }, params?: {
1869
- folder_id?: string | undefined;
1870
- } | undefined): import("../types/api").RequestData<{
1871
- reference?: string | undefined;
1872
- due_date?: string | undefined;
1873
- journal_id: string;
1874
- name?: string | undefined;
1875
- journal_name: string;
1876
- date?: string | undefined;
1877
- posted?: boolean | undefined;
1878
- id: string;
1879
- items?: {
1880
- account_number: string;
1881
- partner_id?: string | undefined;
1882
- description?: string | undefined;
1883
- debit: number;
1884
- credit: number;
1885
- currency: string;
1886
- currency_exchange_rate?: number | undefined;
1887
- id: string;
1888
- partner_name?: string | undefined;
1889
- account_name: string;
1890
- matching_numbers?: string[] | undefined;
1891
- analytic_distribution?: {
1892
- analytic_plan: string;
1893
- analytic_accounts: {
1894
- analytic_account: string;
1895
- percentage: number;
1896
- }[];
1897
- }[] | undefined;
1898
- }[] | undefined;
1899
- }>;
1900
- matchEntries(body: {
1901
- entries: string[];
1902
- partner_id: string;
1903
- }, params?: {
1904
- folder_id?: string | undefined;
1905
- } | undefined): import("../types/api").RequestData<{
1906
- matching_number: string;
1907
- balance: number;
1908
- }>;
1909
- getFolders(): import("../types/api").RequestData<{
1910
- id: string;
1911
- name: string;
1912
- selected?: boolean | undefined;
1913
- vat?: string | undefined;
1914
- company_number?: string | undefined;
1915
- }[]>;
1916
- }>;
1917
- invoicing: import("../types/api").ApiFor<{
1918
- getInvoices(params?: {
1919
- date_from?: string | undefined;
1920
- date_to?: string | undefined;
1921
- payment_status?: "all" | "paid" | "unpaid" | undefined;
1922
- invoice_type?: "all" | "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | undefined;
1923
- updated_after?: string | undefined;
1924
- } | undefined): import("../types/api").RequestData<{
1925
- id: string;
1926
- source_ref: {
1927
- id?: string | undefined;
1928
- model?: string | undefined;
1929
- };
1930
- currency: string;
1931
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1932
- status: "cancelled" | "draft" | "posted" | "paid";
1933
- invoice_date: string;
1934
- tax_amount: number;
1935
- untaxed_amount: number;
1936
- total: number;
1937
- lines?: {
1938
- description?: string | undefined;
1939
- unit_price: number;
1940
- quantity: number;
1941
- discount_amount?: number | undefined;
1942
- tax_amount: number;
1943
- untaxed_amount: number;
1944
- total: number;
1945
- tax_rate?: number | undefined;
1946
- account_number?: string | undefined;
1947
- tax_id?: string | undefined;
1948
- unit_of_measure?: string | undefined;
1949
- product_id?: string | undefined;
1950
- product_code?: string | undefined;
1951
- product_name?: string | undefined;
1952
- }[] | undefined;
1953
- partner_id?: string | undefined;
1954
- invoice_number?: string | undefined;
1955
- due_date?: string | undefined;
1956
- reference?: string | undefined;
1957
- payment_communication?: string | undefined;
1958
- customer_memo?: string | undefined;
1959
- journal_ref?: {
1960
- id?: string | undefined;
1961
- model?: string | undefined;
1962
- name?: string | undefined;
1963
- } | undefined;
1964
- outstanding_amount?: number | undefined;
1965
- last_updated_on?: string | undefined;
1966
- }[]>;
1967
- getInvoiceById(invoiceId: string, params?: {
1968
- include_pdf?: "true" | "false" | undefined;
1969
- } | undefined): import("../types/api").RequestData<{
1970
- id: string;
1971
- source_ref: {
1972
- id?: string | undefined;
1973
- model?: string | undefined;
1974
- };
1975
- currency: string;
1976
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1977
- status: "cancelled" | "draft" | "posted" | "paid";
1978
- invoice_date: string;
1979
- tax_amount: number;
1980
- untaxed_amount: number;
1981
- total: number;
1982
- lines?: {
1983
- description?: string | undefined;
1984
- unit_price: number;
1985
- quantity: number;
1986
- discount_amount?: number | undefined;
1987
- tax_amount: number;
1988
- untaxed_amount: number;
1989
- total: number;
1990
- tax_rate?: number | undefined;
1991
- account_number?: string | undefined;
1992
- tax_id?: string | undefined;
1993
- unit_of_measure?: string | undefined;
1994
- product_id?: string | undefined;
1995
- product_code?: string | undefined;
1996
- product_name?: string | undefined;
1997
- }[] | undefined;
1998
- partner_id?: string | undefined;
1999
- invoice_number?: string | undefined;
2000
- due_date?: string | undefined;
2001
- reference?: string | undefined;
2002
- payment_communication?: string | undefined;
2003
- customer_memo?: string | undefined;
2004
- journal_ref?: {
2005
- id?: string | undefined;
2006
- model?: string | undefined;
2007
- name?: string | undefined;
2008
- } | undefined;
2009
- outstanding_amount?: number | undefined;
2010
- last_updated_on?: string | undefined;
2011
- }>;
2012
- createInvoice(invoice: {
2013
- currency: string;
2014
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
2015
- status: "cancelled" | "draft" | "posted" | "paid";
2016
- invoice_date: string;
2017
- tax_amount: number;
2018
- untaxed_amount: number;
2019
- total: number;
2020
- lines?: {
2021
- description?: string | undefined;
2022
- unit_price: number;
2023
- quantity: number;
2024
- discount_amount?: number | undefined;
2025
- tax_amount: number;
2026
- untaxed_amount: number;
2027
- total: number;
2028
- tax_rate?: number | undefined;
2029
- account_number?: string | undefined;
2030
- tax_id?: string | undefined;
2031
- unit_of_measure?: string | undefined;
2032
- product_id?: string | undefined;
2033
- product_code?: string | undefined;
2034
- product_name?: string | undefined;
2035
- }[] | undefined;
2036
- partner_id?: string | undefined;
2037
- invoice_number?: string | undefined;
2038
- due_date?: string | undefined;
2039
- reference?: string | undefined;
2040
- payment_communication?: string | undefined;
2041
- customer_memo?: string | undefined;
2042
- journal_ref?: {
2043
- id?: string | undefined;
2044
- model?: string | undefined;
2045
- name?: string | undefined;
2046
- } | undefined;
2047
- outstanding_amount?: number | undefined;
2048
- }): import("../types/api").RequestData<{
2049
- id: string;
2050
- source_ref: {
2051
- id?: string | undefined;
2052
- model?: string | undefined;
2053
- };
2054
- currency: string;
2055
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
2056
- status: "cancelled" | "draft" | "posted" | "paid";
2057
- invoice_date: string;
2058
- tax_amount: number;
2059
- untaxed_amount: number;
2060
- total: number;
2061
- lines?: {
2062
- description?: string | undefined;
2063
- unit_price: number;
2064
- quantity: number;
2065
- discount_amount?: number | undefined;
2066
- tax_amount: number;
2067
- untaxed_amount: number;
2068
- total: number;
2069
- tax_rate?: number | undefined;
2070
- account_number?: string | undefined;
2071
- tax_id?: string | undefined;
2072
- unit_of_measure?: string | undefined;
2073
- product_id?: string | undefined;
2074
- product_code?: string | undefined;
2075
- product_name?: string | undefined;
2076
- }[] | undefined;
2077
- partner_id?: string | undefined;
2078
- invoice_number?: string | undefined;
2079
- due_date?: string | undefined;
2080
- reference?: string | undefined;
2081
- payment_communication?: string | undefined;
2082
- customer_memo?: string | undefined;
2083
- journal_ref?: {
2084
- id?: string | undefined;
2085
- model?: string | undefined;
2086
- name?: string | undefined;
2087
- } | undefined;
2088
- outstanding_amount?: number | undefined;
2089
- last_updated_on?: string | undefined;
2090
- }>;
2091
- getProducts(): import("../types/api").RequestData<{
2092
- id: string;
2093
- source_ref: {
2094
- id?: string | undefined;
2095
- model?: string | undefined;
2096
- };
2097
- name: string;
2098
- unit_price?: number | undefined;
2099
- tax_id?: string | undefined;
2100
- code?: string | undefined;
2101
- unit?: string | undefined;
2102
- category?: string | undefined;
2103
- currency?: string | undefined;
2104
- description?: string | undefined;
2105
- available_quantity?: number | undefined;
2106
- cost?: number | undefined;
2107
- }[]>;
2108
- getProductById(productId: string): import("../types/api").RequestData<{
2109
- id: string;
2110
- source_ref: {
2111
- id?: string | undefined;
2112
- model?: string | undefined;
2113
- };
2114
- name: string;
2115
- unit_price?: number | undefined;
2116
- tax_id?: string | undefined;
2117
- code?: string | undefined;
2118
- unit?: string | undefined;
2119
- category?: string | undefined;
2120
- currency?: string | undefined;
2121
- description?: string | undefined;
2122
- available_quantity?: number | undefined;
2123
- cost?: number | undefined;
2124
- }>;
2125
- createProduct(product: {
2126
- name: string;
2127
- unit_price?: number | undefined;
2128
- tax_id?: string | undefined;
2129
- code?: string | undefined;
2130
- unit?: string | undefined;
2131
- category?: string | undefined;
2132
- currency?: string | undefined;
2133
- description?: string | undefined;
2134
- }): import("../types/api").RequestData<{
2135
- id: string;
2136
- source_ref: {
2137
- id?: string | undefined;
2138
- model?: string | undefined;
2139
- };
2140
- name: string;
2141
- unit_price?: number | undefined;
2142
- tax_id?: string | undefined;
2143
- code?: string | undefined;
2144
- unit?: string | undefined;
2145
- category?: string | undefined;
2146
- currency?: string | undefined;
2147
- description?: string | undefined;
2148
- available_quantity?: number | undefined;
2149
- cost?: number | undefined;
2150
- }>;
2151
- getTaxes(): import("../types/api").RequestData<{
2152
- id: string;
2153
- source_ref: {
2154
- id?: string | undefined;
2155
- model?: string | undefined;
2156
- };
2157
- label: string;
2158
- rate: number;
2159
- type: "unknown" | "sale" | "purchase" | "both";
2160
- code?: string | undefined;
2161
- scope?: "unknown" | "nat" | "eu" | "int" | undefined;
2162
- }[]>;
2163
- getTaxById(taxId: string): import("../types/api").RequestData<{
2164
- id: string;
2165
- source_ref: {
2166
- id?: string | undefined;
2167
- model?: string | undefined;
2168
- };
2169
- label: string;
2170
- rate: number;
2171
- type: "unknown" | "sale" | "purchase" | "both";
2172
- code?: string | undefined;
2173
- scope?: "unknown" | "nat" | "eu" | "int" | undefined;
2174
- }>;
2175
- getOpportunities(): import("../types/api").RequestData<{
2176
- id: string;
2177
- source_ref: {
2178
- id?: string | undefined;
2179
- model?: string | undefined;
2180
- };
2181
- name: string;
2182
- total: number;
2183
- probability: number;
2184
- status: "open" | "closed" | "cancelled" | "won" | "lost";
2185
- partner_id?: string | undefined;
2186
- comment?: string | undefined;
2187
- currency?: string | undefined;
2188
- description?: string | undefined;
2189
- pipe_status?: string | undefined;
2190
- pipe_name?: string | undefined;
2191
- created_date?: string | undefined;
2192
- due_date?: string | undefined;
2193
- end_date?: string | undefined;
2194
- is_won?: boolean | undefined;
2195
- owner_ref?: {
2196
- id?: string | undefined;
2197
- model?: string | undefined;
2198
- name?: string | undefined;
2199
- } | undefined;
2200
- }[]>;
2201
- getOpportunitiesById(opportunityId: string): import("../types/api").RequestData<{
2202
- id: string;
2203
- source_ref: {
2204
- id?: string | undefined;
2205
- model?: string | undefined;
2206
- };
2207
- name: string;
2208
- total: number;
2209
- probability: number;
2210
- status: "open" | "closed" | "cancelled" | "won" | "lost";
2211
- partner_id?: string | undefined;
2212
- comment?: string | undefined;
2213
- currency?: string | undefined;
2214
- description?: string | undefined;
2215
- pipe_status?: string | undefined;
2216
- pipe_name?: string | undefined;
2217
- created_date?: string | undefined;
2218
- due_date?: string | undefined;
2219
- end_date?: string | undefined;
2220
- is_won?: boolean | undefined;
2221
- owner_ref?: {
2222
- id?: string | undefined;
2223
- model?: string | undefined;
2224
- name?: string | undefined;
2225
- } | undefined;
2226
- }>;
2227
- getContacts(params?: {
2228
- contact_type?: "prospect" | "customer" | "supplier" | "all" | undefined;
2229
- } | undefined): import("../types/api").RequestData<{
2230
- id: string;
2231
- source_ref: {
2232
- id?: string | undefined;
2233
- model?: string | undefined;
2234
- };
2235
- is_prospect?: boolean | undefined;
2236
- is_customer?: boolean | undefined;
2237
- is_supplier?: boolean | undefined;
2238
- is_company?: boolean | undefined;
2239
- company_name?: string | undefined;
2240
- first_name?: string | undefined;
2241
- last_name?: string | undefined;
2242
- email?: string | undefined;
2243
- phone?: string | undefined;
2244
- mobile?: string | undefined;
2245
- company_id?: string | undefined;
2246
- vat?: string | undefined;
2247
- company_number?: string | undefined;
2248
- currency?: string | undefined;
2249
- language?: string | undefined;
2250
- comment?: string | undefined;
2251
- customer_account_number?: string | undefined;
2252
- supplier_account_number?: string | undefined;
2253
- birthdate?: string | undefined;
2254
- gender?: "H" | "F" | "N/A" | undefined;
2255
- addresses?: {
2256
- address_type: "other" | "main" | "delivery" | "invoice";
2257
- name?: string | undefined;
2258
- number?: string | undefined;
2259
- box?: string | undefined;
2260
- phone?: string | undefined;
2261
- mobile?: string | undefined;
2262
- email?: string | undefined;
2263
- street?: string | undefined;
2264
- city?: string | undefined;
2265
- postal_code?: string | undefined;
2266
- country?: string | undefined;
2267
- }[] | undefined;
2268
- }[]>;
2269
- getContactById(contactId: string): import("../types/api").RequestData<{
2270
- id: string;
2271
- source_ref: {
2272
- id?: string | undefined;
2273
- model?: string | undefined;
2274
- };
2275
- is_prospect?: boolean | undefined;
2276
- is_customer?: boolean | undefined;
2277
- is_supplier?: boolean | undefined;
2278
- is_company?: boolean | undefined;
2279
- company_name?: string | undefined;
2280
- first_name?: string | undefined;
2281
- last_name?: string | undefined;
2282
- email?: string | undefined;
2283
- phone?: string | undefined;
2284
- mobile?: string | undefined;
2285
- company_id?: string | undefined;
2286
- vat?: string | undefined;
2287
- company_number?: string | undefined;
2288
- currency?: string | undefined;
2289
- language?: string | undefined;
2290
- comment?: string | undefined;
2291
- customer_account_number?: string | undefined;
2292
- supplier_account_number?: string | undefined;
2293
- birthdate?: string | undefined;
2294
- gender?: "H" | "F" | "N/A" | undefined;
2295
- addresses?: {
2296
- address_type: "other" | "main" | "delivery" | "invoice";
2297
- name?: string | undefined;
2298
- number?: string | undefined;
2299
- box?: string | undefined;
2300
- phone?: string | undefined;
2301
- mobile?: string | undefined;
2302
- email?: string | undefined;
2303
- street?: string | undefined;
2304
- city?: string | undefined;
2305
- postal_code?: string | undefined;
2306
- country?: string | undefined;
2307
- }[] | undefined;
2308
- }>;
2309
- createContact(contact: {
2310
- is_prospect?: boolean | undefined;
2311
- is_customer?: boolean | undefined;
2312
- is_supplier?: boolean | undefined;
2313
- is_company?: boolean | undefined;
2314
- company_name?: string | undefined;
2315
- first_name?: string | undefined;
2316
- last_name?: string | undefined;
2317
- email?: string | undefined;
2318
- phone?: string | undefined;
2319
- mobile?: string | undefined;
2320
- company_id?: string | undefined;
2321
- vat?: string | undefined;
2322
- company_number?: string | undefined;
2323
- currency?: string | undefined;
2324
- language?: string | undefined;
2325
- comment?: string | undefined;
2326
- customer_account_number?: string | undefined;
2327
- supplier_account_number?: string | undefined;
2328
- birthdate?: string | undefined;
2329
- gender?: "H" | "F" | "N/A" | undefined;
2330
- addresses?: {
2331
- address_type: "other" | "main" | "delivery" | "invoice";
2332
- name?: string | undefined;
2333
- number?: string | undefined;
2334
- box?: string | undefined;
2335
- phone?: string | undefined;
2336
- mobile?: string | undefined;
2337
- email?: string | undefined;
2338
- street: string;
2339
- city: string;
2340
- postal_code: string;
2341
- country: string;
2342
- }[] | undefined;
2343
- }): import("../types/api").RequestData<{
2344
- id: string;
2345
- source_ref: {
2346
- id?: string | undefined;
2347
- model?: string | undefined;
2348
- };
2349
- is_prospect?: boolean | undefined;
2350
- is_customer?: boolean | undefined;
2351
- is_supplier?: boolean | undefined;
2352
- is_company?: boolean | undefined;
2353
- company_name?: string | undefined;
2354
- first_name?: string | undefined;
2355
- last_name?: string | undefined;
2356
- email?: string | undefined;
2357
- phone?: string | undefined;
2358
- mobile?: string | undefined;
2359
- company_id?: string | undefined;
2360
- vat?: string | undefined;
2361
- company_number?: string | undefined;
2362
- currency?: string | undefined;
2363
- language?: string | undefined;
2364
- comment?: string | undefined;
2365
- customer_account_number?: string | undefined;
2366
- supplier_account_number?: string | undefined;
2367
- birthdate?: string | undefined;
2368
- gender?: "H" | "F" | "N/A" | undefined;
2369
- addresses?: {
2370
- address_type: "other" | "main" | "delivery" | "invoice";
2371
- name?: string | undefined;
2372
- number?: string | undefined;
2373
- box?: string | undefined;
2374
- phone?: string | undefined;
2375
- mobile?: string | undefined;
2376
- email?: string | undefined;
2377
- street?: string | undefined;
2378
- city?: string | undefined;
2379
- postal_code?: string | undefined;
2380
- country?: string | undefined;
2381
- }[] | undefined;
2382
- }>;
2383
- }>;
2384
- ecommerce: import("../types/api").ApiFor<{
2385
- getCustomers(): import("../types/api").RequestData<{
2386
- id: string;
2387
- source_ref: {
2388
- id?: string | undefined;
2389
- model?: string | undefined;
2390
- };
2391
- first_name?: string | undefined;
2392
- last_name?: string | undefined;
2393
- phone?: string | undefined;
2394
- email?: string | undefined;
2395
- language?: string | undefined;
2396
- internal_notes?: string | undefined;
2397
- currency?: string | undefined;
2398
- addresses?: {
2399
- address_type: "main" | "delivery" | "invoice";
2400
- company_name?: string | undefined;
2401
- first_name?: string | undefined;
2402
- last_name?: string | undefined;
2403
- street?: string | undefined;
2404
- number?: string | undefined;
2405
- box?: string | undefined;
2406
- city?: string | undefined;
2407
- postal_code?: string | undefined;
2408
- country?: string | undefined;
2409
- phone?: string | undefined;
2410
- email?: string | undefined;
2411
- }[] | undefined;
2412
- created_on?: string | undefined;
2413
- }[]>;
2414
- getProducts(): import("../types/api").RequestData<{
2415
- id: string;
2416
- source_ref: {
2417
- id?: string | undefined;
2418
- model?: string | undefined;
2419
- };
2420
- name: string;
2421
- description?: string | undefined;
2422
- description_html?: string | undefined;
2423
- categories?: {
2424
- id: string;
2425
- name: string;
2426
- }[] | undefined;
2427
- created_on?: string | undefined;
2428
- variants?: {
2429
- id: string;
2430
- source_ref: {
2431
- id?: string | undefined;
2432
- model?: string | undefined;
2433
- };
2434
- parent_id: string;
2435
- name: string;
2436
- description?: string | undefined;
2437
- description_html?: string | undefined;
2438
- categories?: {
2439
- id: string;
2440
- name: string;
2441
- }[] | undefined;
2442
- created_on?: string | undefined;
2443
- sku?: string | undefined;
2444
- barcode?: string | undefined;
2445
- available_quantity?: number | undefined;
2446
- prices?: {
2447
- currency: string;
2448
- price?: number | undefined;
2449
- }[] | undefined;
2450
- unit_of_measure?: string | undefined;
2451
- weight?: number | undefined;
2452
- weight_unit?: string | undefined;
2453
- status?: "unknown" | "archived" | "unpublished" | "published" | undefined;
2454
- variant_attributes?: {
2455
- name: string;
2456
- value: string;
2457
- }[] | undefined;
2458
- variant_images?: {
2459
- id: string;
2460
- main_image: boolean;
2461
- url: string;
2462
- }[] | undefined;
2463
- }[] | undefined;
2464
- status?: "unknown" | "archived" | "unpublished" | "published" | undefined;
2465
- common_attributes?: {
2466
- name: string;
2467
- values: string[];
2468
- }[] | undefined;
2469
- variant_attributes_options?: {
2470
- name: string;
2471
- values: string[];
2472
- }[] | undefined;
2473
- common_images?: {
2474
- id: string;
2475
- main_image: boolean;
2476
- url: string;
2477
- }[] | undefined;
2478
- }[]>;
2479
- getCustomer(customerId: string): import("../types/api").RequestData<{
2480
- id: string;
2481
- source_ref: {
2482
- id?: string | undefined;
2483
- model?: string | undefined;
2484
- };
2485
- first_name?: string | undefined;
2486
- last_name?: string | undefined;
2487
- phone?: string | undefined;
2488
- email?: string | undefined;
2489
- language?: string | undefined;
2490
- internal_notes?: string | undefined;
2491
- currency?: string | undefined;
2492
- addresses?: {
2493
- address_type: "main" | "delivery" | "invoice";
2494
- company_name?: string | undefined;
2495
- first_name?: string | undefined;
2496
- last_name?: string | undefined;
2497
- street?: string | undefined;
2498
- number?: string | undefined;
2499
- box?: string | undefined;
2500
- city?: string | undefined;
2501
- postal_code?: string | undefined;
2502
- country?: string | undefined;
2503
- phone?: string | undefined;
2504
- email?: string | undefined;
2505
- }[] | undefined;
2506
- created_on?: string | undefined;
2507
- }>;
2508
- getProduct(productId: string): import("../types/api").RequestData<{
2509
- id: string;
2510
- source_ref: {
2511
- id?: string | undefined;
2512
- model?: string | undefined;
2513
- };
2514
- name: string;
2515
- description?: string | undefined;
2516
- description_html?: string | undefined;
2517
- categories?: {
2518
- id: string;
2519
- name: string;
2520
- }[] | undefined;
2521
- created_on?: string | undefined;
2522
- variants?: {
2523
- id: string;
2524
- source_ref: {
2525
- id?: string | undefined;
2526
- model?: string | undefined;
2527
- };
2528
- parent_id: string;
2529
- name: string;
2530
- description?: string | undefined;
2531
- description_html?: string | undefined;
2532
- categories?: {
2533
- id: string;
2534
- name: string;
2535
- }[] | undefined;
2536
- created_on?: string | undefined;
2537
- sku?: string | undefined;
2538
- barcode?: string | undefined;
2539
- available_quantity?: number | undefined;
2540
- prices?: {
2541
- currency: string;
2542
- price?: number | undefined;
2543
- }[] | undefined;
2544
- unit_of_measure?: string | undefined;
2545
- weight?: number | undefined;
2546
- weight_unit?: string | undefined;
2547
- status?: "unknown" | "archived" | "unpublished" | "published" | undefined;
2548
- variant_attributes?: {
2549
- name: string;
2550
- value: string;
2551
- }[] | undefined;
2552
- variant_images?: {
2553
- id: string;
2554
- main_image: boolean;
2555
- url: string;
2556
- }[] | undefined;
2557
- }[] | undefined;
2558
- status?: "unknown" | "archived" | "unpublished" | "published" | undefined;
2559
- common_attributes?: {
2560
- name: string;
2561
- values: string[];
2562
- }[] | undefined;
2563
- variant_attributes_options?: {
2564
- name: string;
2565
- values: string[];
2566
- }[] | undefined;
2567
- common_images?: {
2568
- id: string;
2569
- main_image: boolean;
2570
- url: string;
2571
- }[] | undefined;
2572
- }>;
2573
- getProductVariantById(variantId: string): import("../types/api").RequestData<{
2574
- id: string;
2575
- source_ref: {
2576
- id?: string | undefined;
2577
- model?: string | undefined;
2578
- };
2579
- parent_id: string;
2580
- name: string;
2581
- description?: string | undefined;
2582
- description_html?: string | undefined;
2583
- categories?: {
2584
- id: string;
2585
- name: string;
2586
- }[] | undefined;
2587
- created_on?: string | undefined;
2588
- sku?: string | undefined;
2589
- barcode?: string | undefined;
2590
- available_quantity?: number | undefined;
2591
- prices?: {
2592
- currency: string;
2593
- price?: number | undefined;
2594
- }[] | undefined;
2595
- unit_of_measure?: string | undefined;
2596
- weight?: number | undefined;
2597
- weight_unit?: string | undefined;
2598
- status?: "unknown" | "archived" | "unpublished" | "published" | undefined;
2599
- inventory_details?: {
2600
- location: {
2601
- id: string;
2602
- name: string;
2603
- };
2604
- available_quantity: number;
2605
- }[] | undefined;
2606
- common_attributes?: {
2607
- name: string;
2608
- values: string[];
2609
- }[] | undefined;
2610
- variant_attributes?: {
2611
- name: string;
2612
- value: string;
2613
- }[] | undefined;
2614
- common_images?: {
2615
- id: string;
2616
- main_image: boolean;
2617
- url: string;
2618
- }[] | undefined;
2619
- variant_images?: {
2620
- id: string;
2621
- main_image: boolean;
2622
- url: string;
2623
- }[] | undefined;
2624
- }>;
2625
- updateAvailableQuantity(variantId: string, inventoryDetails: {
2626
- location_id: string;
2627
- available_quantity: number;
2628
- }): import("../types/api").RequestData<{
2629
- location: {
2630
- id: string;
2631
- name: string;
2632
- };
2633
- available_quantity: number;
2634
- }>;
2635
- getLocations(): import("../types/api").RequestData<{
2636
- id: string;
2637
- name: string;
2638
- }[]>;
2639
- getOrders(params?: {
2640
- date_from?: string | undefined;
2641
- date_to?: string | undefined;
2642
- updated_after?: string | undefined;
2643
- include_detailed_refunds?: "true" | "false" | undefined;
2644
- include_product_categories?: "true" | "false" | undefined;
2645
- include_customer_details?: "true" | "false" | undefined;
2646
- } | undefined): import("../types/api").RequestData<{
2647
- id: string;
2648
- source_ref: {
2649
- id?: string | undefined;
2650
- model?: string | undefined;
2651
- };
2652
- order_number?: string | undefined;
2653
- customer?: {
2654
- first_name?: string | undefined;
2655
- last_name?: string | undefined;
2656
- phone?: string | undefined;
2657
- internal_notes?: string | undefined;
2658
- email?: string | undefined;
2659
- id: string;
2660
- } | undefined;
2661
- billing_address?: {
2662
- address_type: "main" | "delivery" | "invoice";
2663
- company_name?: string | undefined;
2664
- first_name?: string | undefined;
2665
- last_name?: string | undefined;
2666
- street?: string | undefined;
2667
- number?: string | undefined;
2668
- box?: string | undefined;
2669
- city?: string | undefined;
2670
- postal_code?: string | undefined;
2671
- country?: string | undefined;
2672
- phone?: string | undefined;
2673
- email?: string | undefined;
2674
- } | undefined;
2675
- shipping_address?: {
2676
- address_type: "main" | "delivery" | "invoice";
2677
- company_name?: string | undefined;
2678
- first_name?: string | undefined;
2679
- last_name?: string | undefined;
2680
- street?: string | undefined;
2681
- number?: string | undefined;
2682
- box?: string | undefined;
2683
- city?: string | undefined;
2684
- postal_code?: string | undefined;
2685
- country?: string | undefined;
2686
- phone?: string | undefined;
2687
- email?: string | undefined;
2688
- } | undefined;
2689
- created_on?: string | undefined;
2690
- last_updated_on?: string | undefined;
2691
- confirmed_on?: string | undefined;
2692
- delivery_date?: string | undefined;
2693
- cancelled_on?: string | undefined;
2694
- status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
2695
- discount_amount: number;
2696
- untaxed_amount_without_fees: number;
2697
- tax_amount_without_fees: number;
2698
- total_without_fees: number;
2699
- untaxed_amount: number;
2700
- tax_amount: number;
2701
- total: number;
2702
- refunded_amount?: number | undefined;
2703
- detailed_refunds?: {
2704
- id: string;
2705
- source_ref: {
2706
- id?: string | undefined;
2707
- model?: string | undefined;
2708
- };
2709
- created_on?: string | undefined;
2710
- total: number;
2711
- reason?: string | undefined;
2712
- order_lines?: {
2713
- id: string;
2714
- variant?: {
2715
- id: string;
2716
- sku?: string | undefined;
2717
- name: string;
2718
- categories?: {
2719
- id: string;
2720
- name: string;
2721
- }[] | undefined;
2722
- } | undefined;
2723
- quantity: number;
2724
- untaxed_amount: number;
2725
- tax_amount: number;
2726
- total: number;
2727
- }[] | undefined;
2728
- other?: number | undefined;
2729
- shipping_refunds?: {
2730
- id: string;
2731
- source_ref: {
2732
- id?: string | undefined;
2733
- model?: string | undefined;
2734
- };
2735
- untaxed_amount: number;
2736
- tax_amount: number;
2737
- total: number;
2738
- }[] | undefined;
2739
- transactions?: {
2740
- id: string;
2741
- created_on?: string | undefined;
2742
- payment_method_id?: string | undefined;
2743
- payment_method_name?: string | undefined;
2744
- amount: number;
2745
- status: "failed" | "pending" | "success";
2746
- }[] | undefined;
2747
- }[] | undefined;
2748
- currency: string;
2749
- note?: string | undefined;
2750
- lines: {
2751
- id: string;
2752
- source_ref: {
2753
- id?: string | undefined;
2754
- model?: string | undefined;
2755
- };
2756
- created_on?: string | undefined;
2757
- variant?: {
2758
- id: string;
2759
- sku?: string | undefined;
2760
- name: string;
2761
- categories?: {
2762
- id: string;
2763
- name: string;
2764
- }[] | undefined;
2765
- } | undefined;
2766
- quantity: number;
2767
- unit_price: number;
2768
- description: string;
2769
- tax_id?: string | undefined;
2770
- tax_rate: number;
2771
- untaxed_amount: number;
2772
- tax_amount: number;
2773
- total: number;
2774
- discounts?: {
2775
- name: string;
2776
- description: string;
2777
- amount: number;
2778
- }[] | undefined;
2779
- gift_card?: boolean | undefined;
2780
- }[];
2781
- other_fees?: {
2782
- id: string;
2783
- source_ref: {
2784
- id?: string | undefined;
2785
- model?: string | undefined;
2786
- };
2787
- created_on?: string | undefined;
2788
- type: "other" | "shipping";
2789
- tax_rate: number;
2790
- tax_id?: string | undefined;
2791
- discounts?: {
2792
- name: string;
2793
- description: string;
2794
- amount: number;
2795
- }[] | undefined;
2796
- untaxed_amount: number;
2797
- tax_amount: number;
2798
- total: number;
2799
- }[] | undefined;
2800
- payment_method_id?: string | undefined;
2801
- transactions?: {
2802
- id: string;
2803
- created_on?: string | undefined;
2804
- payment_method_id?: string | undefined;
2805
- payment_method_name?: string | undefined;
2806
- amount: number;
2807
- status: "failed" | "pending" | "success";
2808
- }[] | undefined;
2809
- payment_methods?: {
2810
- id: string;
2811
- name?: string | undefined;
2812
- }[] | undefined;
2813
- }[]>;
2814
- createOrder(order: {
2815
- customer: {
2816
- first_name?: string | undefined;
2817
- last_name?: string | undefined;
2818
- phone?: string | undefined;
2819
- internal_notes?: string | undefined;
2820
- email: string;
2821
- };
2822
- billing_address: {
2823
- first_name: string;
2824
- last_name: string;
2825
- street: string;
2826
- number: string;
2827
- box?: string | undefined;
2828
- city: string;
2829
- postal_code?: string | undefined;
2830
- country: string;
2831
- phone?: string | undefined;
2832
- email?: string | undefined;
2833
- };
2834
- shipping_address: {
2835
- first_name: string;
2836
- last_name: string;
2837
- street: string;
2838
- number: string;
2839
- box?: string | undefined;
2840
- city: string;
2841
- postal_code?: string | undefined;
2842
- country: string;
2843
- phone?: string | undefined;
2844
- email?: string | undefined;
2845
- };
2846
- currency: string;
2847
- note?: string | undefined;
2848
- lines: {
2849
- variant_id: string;
2850
- quantity: number;
2851
- tax_rate: number;
2852
- unit_price: number;
2853
- }[];
2854
- payment_method?: string | undefined;
2855
- }): import("../types/api").RequestData<{
2856
- id: string;
2857
- source_ref: {
2858
- id?: string | undefined;
2859
- model?: string | undefined;
2860
- };
2861
- order_number?: string | undefined;
2862
- customer?: {
2863
- first_name?: string | undefined;
2864
- last_name?: string | undefined;
2865
- phone?: string | undefined;
2866
- internal_notes?: string | undefined;
2867
- email?: string | undefined;
2868
- id: string;
2869
- } | undefined;
2870
- billing_address?: {
2871
- address_type: "main" | "delivery" | "invoice";
2872
- company_name?: string | undefined;
2873
- first_name?: string | undefined;
2874
- last_name?: string | undefined;
2875
- street?: string | undefined;
2876
- number?: string | undefined;
2877
- box?: string | undefined;
2878
- city?: string | undefined;
2879
- postal_code?: string | undefined;
2880
- country?: string | undefined;
2881
- phone?: string | undefined;
2882
- email?: string | undefined;
2883
- } | undefined;
2884
- shipping_address?: {
2885
- address_type: "main" | "delivery" | "invoice";
2886
- company_name?: string | undefined;
2887
- first_name?: string | undefined;
2888
- last_name?: string | undefined;
2889
- street?: string | undefined;
2890
- number?: string | undefined;
2891
- box?: string | undefined;
2892
- city?: string | undefined;
2893
- postal_code?: string | undefined;
2894
- country?: string | undefined;
2895
- phone?: string | undefined;
2896
- email?: string | undefined;
2897
- } | undefined;
2898
- created_on?: string | undefined;
2899
- last_updated_on?: string | undefined;
2900
- confirmed_on?: string | undefined;
2901
- delivery_date?: string | undefined;
2902
- cancelled_on?: string | undefined;
2903
- status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
2904
- discount_amount: number;
2905
- untaxed_amount_without_fees: number;
2906
- tax_amount_without_fees: number;
2907
- total_without_fees: number;
2908
- untaxed_amount: number;
2909
- tax_amount: number;
2910
- total: number;
2911
- refunded_amount?: number | undefined;
2912
- detailed_refunds?: {
2913
- id: string;
2914
- source_ref: {
2915
- id?: string | undefined;
2916
- model?: string | undefined;
2917
- };
2918
- created_on?: string | undefined;
2919
- total: number;
2920
- reason?: string | undefined;
2921
- order_lines?: {
2922
- id: string;
2923
- variant?: {
2924
- id: string;
2925
- sku?: string | undefined;
2926
- name: string;
2927
- categories?: {
2928
- id: string;
2929
- name: string;
2930
- }[] | undefined;
2931
- } | undefined;
2932
- quantity: number;
2933
- untaxed_amount: number;
2934
- tax_amount: number;
2935
- total: number;
2936
- }[] | undefined;
2937
- other?: number | undefined;
2938
- shipping_refunds?: {
2939
- id: string;
2940
- source_ref: {
2941
- id?: string | undefined;
2942
- model?: string | undefined;
2943
- };
2944
- untaxed_amount: number;
2945
- tax_amount: number;
2946
- total: number;
2947
- }[] | undefined;
2948
- transactions?: {
2949
- id: string;
2950
- created_on?: string | undefined;
2951
- payment_method_id?: string | undefined;
2952
- payment_method_name?: string | undefined;
2953
- amount: number;
2954
- status: "failed" | "pending" | "success";
2955
- }[] | undefined;
2956
- }[] | undefined;
2957
- currency: string;
2958
- note?: string | undefined;
2959
- lines: {
2960
- id: string;
2961
- source_ref: {
2962
- id?: string | undefined;
2963
- model?: string | undefined;
2964
- };
2965
- created_on?: string | undefined;
2966
- variant?: {
2967
- id: string;
2968
- sku?: string | undefined;
2969
- name: string;
2970
- categories?: {
2971
- id: string;
2972
- name: string;
2973
- }[] | undefined;
2974
- } | undefined;
2975
- quantity: number;
2976
- unit_price: number;
2977
- description: string;
2978
- tax_id?: string | undefined;
2979
- tax_rate: number;
2980
- untaxed_amount: number;
2981
- tax_amount: number;
2982
- total: number;
2983
- discounts?: {
2984
- name: string;
2985
- description: string;
2986
- amount: number;
2987
- }[] | undefined;
2988
- gift_card?: boolean | undefined;
2989
- }[];
2990
- other_fees?: {
2991
- id: string;
2992
- source_ref: {
2993
- id?: string | undefined;
2994
- model?: string | undefined;
2995
- };
2996
- created_on?: string | undefined;
2997
- type: "other" | "shipping";
2998
- tax_rate: number;
2999
- tax_id?: string | undefined;
3000
- discounts?: {
3001
- name: string;
3002
- description: string;
3003
- amount: number;
3004
- }[] | undefined;
3005
- untaxed_amount: number;
3006
- tax_amount: number;
3007
- total: number;
3008
- }[] | undefined;
3009
- payment_method_id?: string | undefined;
3010
- transactions?: {
3011
- id: string;
3012
- created_on?: string | undefined;
3013
- payment_method_id?: string | undefined;
3014
- payment_method_name?: string | undefined;
3015
- amount: number;
3016
- status: "failed" | "pending" | "success";
3017
- }[] | undefined;
3018
- payment_methods?: {
3019
- id: string;
3020
- name?: string | undefined;
3021
- }[] | undefined;
3022
- }>;
3023
- getOrder(orderId: string): import("../types/api").RequestData<{
3024
- id: string;
3025
- source_ref: {
3026
- id?: string | undefined;
3027
- model?: string | undefined;
3028
- };
3029
- order_number?: string | undefined;
3030
- customer?: {
3031
- first_name?: string | undefined;
3032
- last_name?: string | undefined;
3033
- phone?: string | undefined;
3034
- internal_notes?: string | undefined;
3035
- email?: string | undefined;
3036
- id: string;
3037
- } | undefined;
3038
- billing_address?: {
3039
- address_type: "main" | "delivery" | "invoice";
3040
- company_name?: string | undefined;
3041
- first_name?: string | undefined;
3042
- last_name?: string | undefined;
3043
- street?: string | undefined;
3044
- number?: string | undefined;
3045
- box?: string | undefined;
3046
- city?: string | undefined;
3047
- postal_code?: string | undefined;
3048
- country?: string | undefined;
3049
- phone?: string | undefined;
3050
- email?: string | undefined;
3051
- } | undefined;
3052
- shipping_address?: {
3053
- address_type: "main" | "delivery" | "invoice";
3054
- company_name?: string | undefined;
3055
- first_name?: string | undefined;
3056
- last_name?: string | undefined;
3057
- street?: string | undefined;
3058
- number?: string | undefined;
3059
- box?: string | undefined;
3060
- city?: string | undefined;
3061
- postal_code?: string | undefined;
3062
- country?: string | undefined;
3063
- phone?: string | undefined;
3064
- email?: string | undefined;
3065
- } | undefined;
3066
- created_on?: string | undefined;
3067
- last_updated_on?: string | undefined;
3068
- confirmed_on?: string | undefined;
3069
- delivery_date?: string | undefined;
3070
- cancelled_on?: string | undefined;
3071
- status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
3072
- discount_amount: number;
3073
- untaxed_amount_without_fees: number;
3074
- tax_amount_without_fees: number;
3075
- total_without_fees: number;
3076
- untaxed_amount: number;
3077
- tax_amount: number;
3078
- total: number;
3079
- refunded_amount?: number | undefined;
3080
- detailed_refunds?: {
3081
- id: string;
3082
- source_ref: {
3083
- id?: string | undefined;
3084
- model?: string | undefined;
3085
- };
3086
- created_on?: string | undefined;
3087
- total: number;
3088
- reason?: string | undefined;
3089
- order_lines?: {
3090
- id: string;
3091
- variant?: {
3092
- id: string;
3093
- sku?: string | undefined;
3094
- name: string;
3095
- categories?: {
3096
- id: string;
3097
- name: string;
3098
- }[] | undefined;
3099
- } | undefined;
3100
- quantity: number;
3101
- untaxed_amount: number;
3102
- tax_amount: number;
3103
- total: number;
3104
- }[] | undefined;
3105
- other?: number | undefined;
3106
- shipping_refunds?: {
3107
- id: string;
3108
- source_ref: {
3109
- id?: string | undefined;
3110
- model?: string | undefined;
3111
- };
3112
- untaxed_amount: number;
3113
- tax_amount: number;
3114
- total: number;
3115
- }[] | undefined;
3116
- transactions?: {
3117
- id: string;
3118
- created_on?: string | undefined;
3119
- payment_method_id?: string | undefined;
3120
- payment_method_name?: string | undefined;
3121
- amount: number;
3122
- status: "failed" | "pending" | "success";
3123
- }[] | undefined;
3124
- }[] | undefined;
3125
- currency: string;
3126
- note?: string | undefined;
3127
- lines: {
3128
- id: string;
3129
- source_ref: {
3130
- id?: string | undefined;
3131
- model?: string | undefined;
3132
- };
3133
- created_on?: string | undefined;
3134
- variant?: {
3135
- id: string;
3136
- sku?: string | undefined;
3137
- name: string;
3138
- categories?: {
3139
- id: string;
3140
- name: string;
3141
- }[] | undefined;
3142
- } | undefined;
3143
- quantity: number;
3144
- unit_price: number;
3145
- description: string;
3146
- tax_id?: string | undefined;
3147
- tax_rate: number;
3148
- untaxed_amount: number;
3149
- tax_amount: number;
3150
- total: number;
3151
- discounts?: {
3152
- name: string;
3153
- description: string;
3154
- amount: number;
3155
- }[] | undefined;
3156
- gift_card?: boolean | undefined;
3157
- }[];
3158
- other_fees?: {
3159
- id: string;
3160
- source_ref: {
3161
- id?: string | undefined;
3162
- model?: string | undefined;
3163
- };
3164
- created_on?: string | undefined;
3165
- type: "other" | "shipping";
3166
- tax_rate: number;
3167
- tax_id?: string | undefined;
3168
- discounts?: {
3169
- name: string;
3170
- description: string;
3171
- amount: number;
3172
- }[] | undefined;
3173
- untaxed_amount: number;
3174
- tax_amount: number;
3175
- total: number;
3176
- }[] | undefined;
3177
- payment_method_id?: string | undefined;
3178
- transactions?: {
3179
- id: string;
3180
- created_on?: string | undefined;
3181
- payment_method_id?: string | undefined;
3182
- payment_method_name?: string | undefined;
3183
- amount: number;
3184
- status: "failed" | "pending" | "success";
3185
- }[] | undefined;
3186
- payment_methods?: {
3187
- id: string;
3188
- name?: string | undefined;
3189
- }[] | undefined;
3190
- }>;
3191
- getPaymentMethods(params?: {} | undefined): import("../types/api").RequestData<{
3192
- id: string;
3193
- source_ref: {
3194
- id?: string | undefined;
3195
- model?: string | undefined;
3196
- };
3197
- name: string;
3198
- active: boolean;
3199
- }[]>;
3200
- getProductCategories(params?: {
3201
- only_parents?: "true" | "false" | undefined;
3202
- } | undefined): import("../types/api").RequestData<{
3203
- id: string;
3204
- source_ref: {
3205
- id?: string | undefined;
3206
- model?: string | undefined;
3207
- };
3208
- name: string;
3209
- parent_id?: string | undefined;
3210
- }[]>;
3211
- getTaxes(params?: {} | undefined): import("../types/api").RequestData<{
3212
- id: string;
3213
- source_ref: {
3214
- id?: string | undefined;
3215
- model?: string | undefined;
3216
- };
3217
- label: string;
3218
- rate: number;
3219
- country?: string | undefined;
3220
- }[]>;
3221
- getCountries(params?: {} | undefined): import("../types/api").RequestData<{
3222
- code: string;
3223
- name: string;
3224
- }[]>;
3225
- }>;
3226
- custom: import("../types/api").ApiFor<{
3227
- get(name: string, resource: string, params?: any): import("../types/api").RequestData<any>;
3228
- post(name: string, resource: string, body: any, params?: any): import("../types/api").RequestData<any>;
3229
- patch(name: string, resource: string, body: any, params?: any): import("../types/api").RequestData<any>;
3230
- delete(name: string, resource: string, params?: any): import("../types/api").RequestData<any>;
3231
- }>;
3232
- getDataByDataStoreId: (dataStoreId: string, params?: object) => Promise<{
3233
- data: Record<string, never>;
3234
- id: string;
3235
- created_on: string;
3236
- }[]>;
3237
- addDataByDataStoreId: (dataStoreId: string, data: components['schemas']['DataItem'][]) => Promise<{
3238
- data: Record<string, never>;
3239
- id: string;
3240
- created_on: string;
3241
- }[]>;
3242
- getSyncData: (syncId: string) => Promise<{
3243
- syncid: string;
3244
- sync_name: string;
3245
- status?: "active" | "inactive" | undefined;
3246
- status_details?: string | undefined;
3247
- link_createdon: string;
3248
- link_mappings?: {
3249
- name: string;
3250
- description?: string | undefined;
3251
- display_order?: number | undefined;
3252
- challenge_question?: string | undefined;
3253
- values: {
3254
- source_id: string;
3255
- target_id: string;
3256
- }[];
3257
- sub_mapping_name: string;
3258
- sub_mapping_description?: string | undefined;
3259
- }[] | undefined;
3260
- link_metadata?: Record<string, never> | undefined;
3261
- enabled_flows?: {
3262
- name: string;
3263
- description?: string | undefined;
3264
- id: string;
3265
- config?: {
3266
- definitionFields?: Record<string, never>[] | undefined;
3267
- doorkeyFields?: Record<string, never>[] | undefined;
3268
- customFields?: Record<string, never>[] | undefined;
3269
- datastores?: {
3270
- id?: string | undefined;
3271
- name: string;
3272
- status?: "active" | "inactive" | undefined;
3273
- definition: {
3274
- columns: {
3275
- name: string;
3276
- title: string;
3277
- type: string;
3278
- optional?: boolean | undefined;
3279
- }[];
3280
- search_column?: string | undefined;
3281
- };
3282
- }[] | undefined;
3283
- } | undefined;
3284
- values: Record<string, never>;
3285
- enabled_on?: string | undefined;
3286
- trigger: {
3287
- id: string;
3288
- type: "timer" | "event";
3289
- cronschedule?: string | undefined;
3290
- };
3291
- }[] | undefined;
3292
- }>;
3293
- getDataByDataStoreName: (dataStoreName: string, params?: object) => Promise<{
3294
- data: Record<string, never>;
3295
- id: string;
3296
- created_on: string;
3297
- }[]>;
3298
- addDataByDataStoreName: (dataStoreName: string, data: components['schemas']['DataItem'][]) => Promise<{
3299
- data: Record<string, never>;
3300
- id: string;
3301
- created_on: string;
3302
- }[] | undefined>;
3303
- updateDataStoreData: (dataStoreId: string, dataStoreDataId: string, data: components['schemas']['DataItem']) => Promise<{
3304
- data: Record<string, never>;
3305
- id: string;
3306
- created_on: string;
3307
- }[]>;
3308
- deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<SimpleResponseModel>;
3309
- logData: (logs: ConsumerLog[]) => Promise<SimpleResponseModel>;
3310
- setConnectionId: (connectionId: string) => Promise<void>;
3311
- setIntegrationId: (integrationId: string) => Promise<void>;
3312
- };
3313
- export { Consumer };