@chift/chift-nodejs 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintcache +1 -0
- package/.github/workflows/ci.yml +2 -1
- package/CHANGELOG.md +4 -0
- package/coverage/clover.xml +1645 -0
- package/coverage/coverage-final.json +19 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +146 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +196 -0
- package/coverage/lcov-report/src/helpers/index.html +131 -0
- package/coverage/lcov-report/src/helpers/openapi.ts.html +151 -0
- package/coverage/lcov-report/src/helpers/settings.ts.html +94 -0
- package/coverage/lcov-report/src/index.html +116 -0
- package/coverage/lcov-report/src/index.ts.html +88 -0
- package/coverage/lcov-report/src/modules/accounting.ts.html +1156 -0
- package/coverage/lcov-report/src/modules/api.ts.html +190 -0
- package/coverage/lcov-report/src/modules/consumer.ts.html +616 -0
- package/coverage/lcov-report/src/modules/consumers.ts.html +331 -0
- package/coverage/lcov-report/src/modules/custom.ts.html +193 -0
- package/coverage/lcov-report/src/modules/datastores.ts.html +142 -0
- package/coverage/lcov-report/src/modules/ecommerce.ts.html +331 -0
- package/coverage/lcov-report/src/modules/flow.ts.html +589 -0
- package/coverage/lcov-report/src/modules/index.html +326 -0
- package/coverage/lcov-report/src/modules/integrations.ts.html +151 -0
- package/coverage/lcov-report/src/modules/internalApi.ts.html +586 -0
- package/coverage/lcov-report/src/modules/invoicing.ts.html +391 -0
- package/coverage/lcov-report/src/modules/pos.ts.html +421 -0
- package/coverage/lcov-report/src/modules/sync.ts.html +316 -0
- package/coverage/lcov-report/src/modules/syncs.ts.html +169 -0
- package/coverage/lcov-report/src/modules/webhooks.ts.html +343 -0
- package/coverage/lcov.info +1976 -0
- package/dist/src/modules/accounting.d.ts +24 -27
- package/dist/src/modules/accounting.js +31 -76
- package/dist/src/modules/api.d.ts +28022 -2110
- package/dist/src/modules/consumer.d.ts +64 -413
- package/dist/src/modules/consumer.js +0 -10
- package/dist/src/modules/consumers.d.ts +332 -2097
- package/dist/src/modules/ecommerce.d.ts +0 -8
- package/dist/src/modules/ecommerce.js +0 -28
- package/dist/src/modules/flow.js +1 -1
- package/dist/src/modules/pos.d.ts +1 -3
- package/dist/src/modules/pos.js +0 -7
- package/dist/src/modules/sync.d.ts +268 -1680
- package/dist/src/modules/syncs.d.ts +27677 -8
- package/dist/src/modules/syncs.js +0 -10
- package/dist/test/modules/accounting.test.js +11 -28
- package/dist/test/modules/ecommerce.test.js +7 -34
- package/dist/test/modules/flow.test.d.ts +1 -0
- package/dist/test/modules/flow.test.js +69 -0
- package/dist/test/modules/pos.test.js +5 -10
- package/package.json +1 -1
- package/src/modules/integrations.ts +4 -2
|
@@ -13,9 +13,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
13
13
|
api: string;
|
|
14
14
|
data?: Record<string, never> | undefined;
|
|
15
15
|
status: "active" | "inactive";
|
|
16
|
-
agent?: {
|
|
17
|
-
status: "up" | "down";
|
|
18
|
-
} | undefined;
|
|
19
16
|
}[]>;
|
|
20
17
|
createConnection: (body?: components['schemas']['PostConnectionItem']) => Promise<{
|
|
21
18
|
url: string;
|
|
@@ -26,7 +23,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
26
23
|
deleteConnection: (connectionId: string) => Promise<{
|
|
27
24
|
content: never;
|
|
28
25
|
}>;
|
|
29
|
-
enableFlow: (syncId: string, flowId: string, body: components['schemas']['EnableFlowConsumer']) => Promise<SimpleResponseModel>;
|
|
30
26
|
getSyncUrl: (body: components['schemas']['CreateConsumerSyncItem']) => Promise<{
|
|
31
27
|
url: string;
|
|
32
28
|
}>;
|
|
@@ -73,13 +69,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
73
69
|
total: number;
|
|
74
70
|
tax_amount: number;
|
|
75
71
|
tax_rate?: number | undefined;
|
|
76
|
-
description
|
|
72
|
+
description: string;
|
|
77
73
|
discounts?: {
|
|
78
74
|
name?: string | undefined;
|
|
79
75
|
total: number;
|
|
80
76
|
}[] | undefined;
|
|
81
77
|
product_id?: string | undefined;
|
|
82
|
-
accounting_category_id?: string | undefined;
|
|
83
78
|
}[];
|
|
84
79
|
payments: {
|
|
85
80
|
id?: string | undefined;
|
|
@@ -121,7 +116,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
121
116
|
country?: string | undefined;
|
|
122
117
|
}[] | undefined;
|
|
123
118
|
loyalty?: number | undefined;
|
|
124
|
-
birthdate?: string | undefined;
|
|
125
119
|
}[]>;
|
|
126
120
|
getOrder(orderId: string): import("../types/api").RequestData<{
|
|
127
121
|
id: string;
|
|
@@ -142,13 +136,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
142
136
|
total: number;
|
|
143
137
|
tax_amount: number;
|
|
144
138
|
tax_rate?: number | undefined;
|
|
145
|
-
description
|
|
139
|
+
description: string;
|
|
146
140
|
discounts?: {
|
|
147
141
|
name?: string | undefined;
|
|
148
142
|
total: number;
|
|
149
143
|
}[] | undefined;
|
|
150
144
|
product_id?: string | undefined;
|
|
151
|
-
accounting_category_id?: string | undefined;
|
|
152
145
|
}[];
|
|
153
146
|
payments: {
|
|
154
147
|
id?: string | undefined;
|
|
@@ -190,7 +183,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
190
183
|
country?: string | undefined;
|
|
191
184
|
}[] | undefined;
|
|
192
185
|
loyalty?: number | undefined;
|
|
193
|
-
birthdate?: string | undefined;
|
|
194
186
|
}>;
|
|
195
187
|
createCustomer(customer: {
|
|
196
188
|
first_name: string;
|
|
@@ -225,7 +217,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
225
217
|
country?: string | undefined;
|
|
226
218
|
}[] | undefined;
|
|
227
219
|
loyalty?: number | undefined;
|
|
228
|
-
birthdate?: string | undefined;
|
|
229
220
|
}>;
|
|
230
221
|
getPaymentMethods(params: {}): import("../types/api").RequestData<{
|
|
231
222
|
id: string;
|
|
@@ -234,12 +225,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
234
225
|
}[]>;
|
|
235
226
|
getProductCategories(params: {}): import("../types/api").RequestData<{
|
|
236
227
|
id: string;
|
|
237
|
-
source_ref: {
|
|
238
|
-
id?: string | undefined;
|
|
239
|
-
model?: string | undefined;
|
|
240
|
-
};
|
|
241
228
|
name: string;
|
|
242
|
-
|
|
229
|
+
description?: string | undefined;
|
|
230
|
+
id_parent?: string | undefined;
|
|
243
231
|
}[]>;
|
|
244
232
|
getProducts(params: {}): import("../types/api").RequestData<{
|
|
245
233
|
id: string;
|
|
@@ -250,7 +238,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
250
238
|
unit_price: number;
|
|
251
239
|
tax_rate: number;
|
|
252
240
|
}[];
|
|
253
|
-
accounting_category_ids?: string[] | undefined;
|
|
254
241
|
}[]>;
|
|
255
242
|
getSales(params: {
|
|
256
243
|
date_from: string;
|
|
@@ -305,13 +292,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
305
292
|
total: number;
|
|
306
293
|
tax_amount: number;
|
|
307
294
|
tax_rate?: number | undefined;
|
|
308
|
-
description
|
|
295
|
+
description: string;
|
|
309
296
|
discounts?: {
|
|
310
297
|
name?: string | undefined;
|
|
311
298
|
total: number;
|
|
312
299
|
}[] | undefined;
|
|
313
300
|
product_id?: string | undefined;
|
|
314
|
-
accounting_category_id?: string | undefined;
|
|
315
301
|
}[];
|
|
316
302
|
payments: {
|
|
317
303
|
id?: string | undefined;
|
|
@@ -334,30 +320,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
334
320
|
total: number;
|
|
335
321
|
}[] | undefined;
|
|
336
322
|
}>;
|
|
337
|
-
getAccountingCategories(params: {}): import("../types/api").RequestData<{
|
|
338
|
-
id: string;
|
|
339
|
-
name: string;
|
|
340
|
-
id_parent?: string | undefined;
|
|
341
|
-
code?: string | undefined;
|
|
342
|
-
ledger_account_code?: string | undefined;
|
|
343
|
-
posting_account_code?: string | undefined;
|
|
344
|
-
}[]>;
|
|
345
323
|
}>;
|
|
346
324
|
accounting: import("../types/api").ApiFor<{
|
|
347
|
-
getAnalyticPlans(
|
|
348
|
-
folder_id?: string | undefined;
|
|
349
|
-
page?: number | undefined;
|
|
350
|
-
size?: number | undefined;
|
|
351
|
-
} | undefined): import("../types/api").RequestData<{
|
|
325
|
+
getAnalyticPlans(): import("../types/api").RequestData<{
|
|
352
326
|
id: string;
|
|
353
327
|
name: string;
|
|
354
328
|
active?: boolean | undefined;
|
|
355
329
|
}[]>;
|
|
356
|
-
getClients(
|
|
357
|
-
folder_id?: string | undefined;
|
|
358
|
-
page?: number | undefined;
|
|
359
|
-
size?: number | undefined;
|
|
360
|
-
} | undefined): import("../types/api").RequestData<{
|
|
330
|
+
getClients(): import("../types/api").RequestData<{
|
|
361
331
|
external_reference?: string | undefined;
|
|
362
332
|
first_name?: string | undefined;
|
|
363
333
|
last_name?: string | undefined;
|
|
@@ -428,7 +398,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
428
398
|
account_number?: string | undefined;
|
|
429
399
|
}, params: {
|
|
430
400
|
force_merge?: string | undefined;
|
|
431
|
-
folder_id?: string | undefined;
|
|
432
401
|
} | undefined): import("../types/api").RequestData<{
|
|
433
402
|
external_reference?: string | undefined;
|
|
434
403
|
first_name?: string | undefined;
|
|
@@ -465,9 +434,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
465
434
|
company_number?: string | undefined;
|
|
466
435
|
id?: string | undefined;
|
|
467
436
|
}>;
|
|
468
|
-
getClient(clientId: string
|
|
469
|
-
folder_id?: string | undefined;
|
|
470
|
-
} | undefined): import("../types/api").RequestData<{
|
|
437
|
+
getClient(clientId: string): import("../types/api").RequestData<{
|
|
471
438
|
external_reference?: string | undefined;
|
|
472
439
|
first_name?: string | undefined;
|
|
473
440
|
last_name?: string | undefined;
|
|
@@ -535,9 +502,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
535
502
|
postal_code?: string | undefined;
|
|
536
503
|
country?: string | undefined;
|
|
537
504
|
}[] | undefined;
|
|
538
|
-
}
|
|
539
|
-
folder_id?: string | undefined;
|
|
540
|
-
} | undefined): import("../types/api").RequestData<{
|
|
505
|
+
}): import("../types/api").RequestData<{
|
|
541
506
|
external_reference?: string | undefined;
|
|
542
507
|
first_name?: string | undefined;
|
|
543
508
|
last_name?: string | undefined;
|
|
@@ -573,11 +538,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
573
538
|
company_number?: string | undefined;
|
|
574
539
|
id?: string | undefined;
|
|
575
540
|
}>;
|
|
576
|
-
getSuppliers(
|
|
577
|
-
folder_id?: string | undefined;
|
|
578
|
-
page?: number | undefined;
|
|
579
|
-
size?: number | undefined;
|
|
580
|
-
} | undefined): import("../types/api").RequestData<{
|
|
541
|
+
getSuppliers(): import("../types/api").RequestData<{
|
|
581
542
|
external_reference?: string | undefined;
|
|
582
543
|
first_name?: string | undefined;
|
|
583
544
|
last_name?: string | undefined;
|
|
@@ -648,7 +609,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
648
609
|
account_number?: string | undefined;
|
|
649
610
|
}, params: {
|
|
650
611
|
force_merge?: string | undefined;
|
|
651
|
-
folder_id?: string | undefined;
|
|
652
612
|
} | undefined): import("../types/api").RequestData<{
|
|
653
613
|
external_reference?: string | undefined;
|
|
654
614
|
first_name?: string | undefined;
|
|
@@ -685,9 +645,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
685
645
|
company_number?: string | undefined;
|
|
686
646
|
id?: string | undefined;
|
|
687
647
|
}>;
|
|
688
|
-
getSupplier(supplierId: string
|
|
689
|
-
folder_id?: string | undefined;
|
|
690
|
-
} | undefined): import("../types/api").RequestData<{
|
|
648
|
+
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
691
649
|
external_reference?: string | undefined;
|
|
692
650
|
first_name?: string | undefined;
|
|
693
651
|
last_name?: string | undefined;
|
|
@@ -755,9 +713,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
755
713
|
postal_code?: string | undefined;
|
|
756
714
|
country?: string | undefined;
|
|
757
715
|
}[] | undefined;
|
|
758
|
-
}
|
|
759
|
-
folder_id?: string | undefined;
|
|
760
|
-
} | undefined): import("../types/api").RequestData<{
|
|
716
|
+
}): import("../types/api").RequestData<{
|
|
761
717
|
external_reference?: string | undefined;
|
|
762
718
|
first_name?: string | undefined;
|
|
763
719
|
last_name?: string | undefined;
|
|
@@ -796,6 +752,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
796
752
|
createInvoice(invoice: {
|
|
797
753
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
798
754
|
invoice_number?: string | undefined;
|
|
755
|
+
invoice_date: string;
|
|
756
|
+
due_date: string;
|
|
799
757
|
currency: string;
|
|
800
758
|
untaxed_amount: number;
|
|
801
759
|
tax_amount: number;
|
|
@@ -803,8 +761,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
803
761
|
reference?: string | undefined;
|
|
804
762
|
payment_communication?: string | undefined;
|
|
805
763
|
customer_memo?: string | undefined;
|
|
806
|
-
invoice_date: string;
|
|
807
|
-
due_date: string;
|
|
808
764
|
partner_id: string;
|
|
809
765
|
journal_id?: string | undefined;
|
|
810
766
|
status?: "draft" | "posted" | undefined;
|
|
@@ -816,16 +772,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
816
772
|
invoice_correction_credit_account_number?: string | undefined;
|
|
817
773
|
invoice_correction_debit_account_number?: string | undefined;
|
|
818
774
|
} | undefined;
|
|
819
|
-
nl_payment_terms_split?: {
|
|
820
|
-
g_account: {
|
|
821
|
-
amount: number;
|
|
822
|
-
iban: string;
|
|
823
|
-
};
|
|
824
|
-
n_account: {
|
|
825
|
-
amount: number;
|
|
826
|
-
iban: string;
|
|
827
|
-
};
|
|
828
|
-
} | undefined;
|
|
829
775
|
lines: {
|
|
830
776
|
line_number?: number | undefined;
|
|
831
777
|
description: string;
|
|
@@ -843,10 +789,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
843
789
|
}, params: {
|
|
844
790
|
force_financial_period?: string | undefined;
|
|
845
791
|
regroup_lines?: "true" | "false" | undefined;
|
|
846
|
-
folder_id?: string | undefined;
|
|
847
792
|
} | undefined): import("../types/api").RequestData<{
|
|
848
793
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
849
794
|
invoice_number?: string | undefined;
|
|
795
|
+
invoice_date: string;
|
|
796
|
+
due_date: string;
|
|
850
797
|
currency: string;
|
|
851
798
|
untaxed_amount: number;
|
|
852
799
|
tax_amount: number;
|
|
@@ -855,8 +802,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
855
802
|
payment_communication?: string | undefined;
|
|
856
803
|
customer_memo?: string | undefined;
|
|
857
804
|
id?: string | undefined;
|
|
858
|
-
invoice_date: string;
|
|
859
|
-
due_date: string;
|
|
860
805
|
partner_id: string;
|
|
861
806
|
journal_id: string;
|
|
862
807
|
payments?: {
|
|
@@ -892,6 +837,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
892
837
|
createInvoiceWithMultiplePlans(invoice: {
|
|
893
838
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
894
839
|
invoice_number?: string | undefined;
|
|
840
|
+
invoice_date: string;
|
|
841
|
+
due_date: string;
|
|
895
842
|
currency: string;
|
|
896
843
|
untaxed_amount: number;
|
|
897
844
|
tax_amount: number;
|
|
@@ -899,8 +846,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
899
846
|
reference?: string | undefined;
|
|
900
847
|
payment_communication?: string | undefined;
|
|
901
848
|
customer_memo?: string | undefined;
|
|
902
|
-
invoice_date: string;
|
|
903
|
-
due_date: string;
|
|
904
849
|
partner_id: string;
|
|
905
850
|
journal_id?: string | undefined;
|
|
906
851
|
status?: "draft" | "posted" | undefined;
|
|
@@ -912,16 +857,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
912
857
|
invoice_correction_credit_account_number?: string | undefined;
|
|
913
858
|
invoice_correction_debit_account_number?: string | undefined;
|
|
914
859
|
} | undefined;
|
|
915
|
-
nl_payment_terms_split?: {
|
|
916
|
-
g_account: {
|
|
917
|
-
amount: number;
|
|
918
|
-
iban: string;
|
|
919
|
-
};
|
|
920
|
-
n_account: {
|
|
921
|
-
amount: number;
|
|
922
|
-
iban: string;
|
|
923
|
-
};
|
|
924
|
-
} | undefined;
|
|
925
860
|
lines: {
|
|
926
861
|
line_number?: number | undefined;
|
|
927
862
|
description: string;
|
|
@@ -945,10 +880,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
945
880
|
}, params: {
|
|
946
881
|
force_financial_period?: string | undefined;
|
|
947
882
|
regroup_lines?: "true" | "false" | undefined;
|
|
948
|
-
folder_id?: string | undefined;
|
|
949
883
|
} | undefined): import("../types/api").RequestData<{
|
|
950
884
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
951
885
|
invoice_number?: string | undefined;
|
|
886
|
+
invoice_date: string;
|
|
887
|
+
due_date: string;
|
|
952
888
|
currency: string;
|
|
953
889
|
untaxed_amount: number;
|
|
954
890
|
tax_amount: number;
|
|
@@ -957,8 +893,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
957
893
|
payment_communication?: string | undefined;
|
|
958
894
|
customer_memo?: string | undefined;
|
|
959
895
|
id?: string | undefined;
|
|
960
|
-
invoice_date: string;
|
|
961
|
-
due_date: string;
|
|
962
896
|
partner_id: string;
|
|
963
897
|
journal_id: string;
|
|
964
898
|
payments?: {
|
|
@@ -1000,6 +934,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1000
934
|
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
|
|
1001
935
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1002
936
|
invoice_number?: string | undefined;
|
|
937
|
+
invoice_date: string;
|
|
938
|
+
due_date: string;
|
|
1003
939
|
currency: string;
|
|
1004
940
|
untaxed_amount: number;
|
|
1005
941
|
tax_amount: number;
|
|
@@ -1008,8 +944,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1008
944
|
payment_communication?: string | undefined;
|
|
1009
945
|
customer_memo?: string | undefined;
|
|
1010
946
|
id?: string | undefined;
|
|
1011
|
-
invoice_date: string;
|
|
1012
|
-
due_date: string;
|
|
1013
947
|
partner_id: string;
|
|
1014
948
|
journal_id: string;
|
|
1015
949
|
payments?: {
|
|
@@ -1044,10 +978,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1044
978
|
}[]>;
|
|
1045
979
|
getInvoice(invoiceId: string, params: {
|
|
1046
980
|
include_payments?: "true" | "false" | undefined;
|
|
1047
|
-
folder_id?: string | undefined;
|
|
1048
981
|
} | undefined): import("../types/api").RequestData<{
|
|
1049
982
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1050
983
|
invoice_number?: string | undefined;
|
|
984
|
+
invoice_date: string;
|
|
985
|
+
due_date: string;
|
|
1051
986
|
currency: string;
|
|
1052
987
|
untaxed_amount: number;
|
|
1053
988
|
tax_amount: number;
|
|
@@ -1056,8 +991,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1056
991
|
payment_communication?: string | undefined;
|
|
1057
992
|
customer_memo?: string | undefined;
|
|
1058
993
|
id?: string | undefined;
|
|
1059
|
-
invoice_date: string;
|
|
1060
|
-
due_date: string;
|
|
1061
994
|
partner_id: string;
|
|
1062
995
|
journal_id: string;
|
|
1063
996
|
payments?: {
|
|
@@ -1092,10 +1025,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1092
1025
|
}>;
|
|
1093
1026
|
getInvoiceWithMultiplePlans(invoiceId: string, params: {
|
|
1094
1027
|
include_payments?: "true" | "false" | undefined;
|
|
1095
|
-
folder_id?: string | undefined;
|
|
1096
1028
|
} | undefined): import("../types/api").RequestData<{
|
|
1097
1029
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1098
1030
|
invoice_number?: string | undefined;
|
|
1031
|
+
invoice_date: string;
|
|
1032
|
+
due_date: string;
|
|
1099
1033
|
currency: string;
|
|
1100
1034
|
untaxed_amount: number;
|
|
1101
1035
|
tax_amount: number;
|
|
@@ -1104,8 +1038,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1104
1038
|
payment_communication?: string | undefined;
|
|
1105
1039
|
customer_memo?: string | undefined;
|
|
1106
1040
|
id?: string | undefined;
|
|
1107
|
-
invoice_date: string;
|
|
1108
|
-
due_date: string;
|
|
1109
1041
|
partner_id: string;
|
|
1110
1042
|
journal_id: string;
|
|
1111
1043
|
payments?: {
|
|
@@ -1147,6 +1079,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1147
1079
|
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
|
|
1148
1080
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1149
1081
|
invoice_number?: string | undefined;
|
|
1082
|
+
invoice_date: string;
|
|
1083
|
+
due_date: string;
|
|
1150
1084
|
currency: string;
|
|
1151
1085
|
untaxed_amount: number;
|
|
1152
1086
|
tax_amount: number;
|
|
@@ -1155,8 +1089,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1155
1089
|
payment_communication?: string | undefined;
|
|
1156
1090
|
customer_memo?: string | undefined;
|
|
1157
1091
|
id?: string | undefined;
|
|
1158
|
-
invoice_date: string;
|
|
1159
|
-
due_date: string;
|
|
1160
1092
|
partner_id: string;
|
|
1161
1093
|
journal_id: string;
|
|
1162
1094
|
payments?: {
|
|
@@ -1200,9 +1132,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1200
1132
|
code: string;
|
|
1201
1133
|
name: string;
|
|
1202
1134
|
currency: string;
|
|
1203
|
-
}
|
|
1204
|
-
folder_id?: string | undefined;
|
|
1205
|
-
} | undefined): import("../types/api").RequestData<{
|
|
1135
|
+
}): import("../types/api").RequestData<{
|
|
1206
1136
|
id: string;
|
|
1207
1137
|
active: boolean;
|
|
1208
1138
|
code?: string | undefined;
|
|
@@ -1212,11 +1142,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1212
1142
|
credit?: number | undefined;
|
|
1213
1143
|
debit?: number | undefined;
|
|
1214
1144
|
}>;
|
|
1215
|
-
getAnalyticAccounts(
|
|
1216
|
-
folder_id?: string | undefined;
|
|
1217
|
-
page?: number | undefined;
|
|
1218
|
-
size?: number | undefined;
|
|
1219
|
-
} | undefined): import("../types/api").RequestData<{
|
|
1145
|
+
getAnalyticAccounts(): import("../types/api").RequestData<{
|
|
1220
1146
|
id: string;
|
|
1221
1147
|
active: boolean;
|
|
1222
1148
|
code?: string | undefined;
|
|
@@ -1231,9 +1157,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1231
1157
|
code: string;
|
|
1232
1158
|
name: string;
|
|
1233
1159
|
currency: string;
|
|
1234
|
-
}
|
|
1235
|
-
folder_id?: string | undefined;
|
|
1236
|
-
} | undefined): import("../types/api").RequestData<{
|
|
1160
|
+
}): import("../types/api").RequestData<{
|
|
1237
1161
|
id: string;
|
|
1238
1162
|
active: boolean;
|
|
1239
1163
|
code?: string | undefined;
|
|
@@ -1244,9 +1168,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1244
1168
|
debit?: number | undefined;
|
|
1245
1169
|
analytic_plan: string;
|
|
1246
1170
|
}>;
|
|
1247
|
-
getAnalyticAccount(analytic_account_id: string
|
|
1248
|
-
folder_id?: string | undefined;
|
|
1249
|
-
} | undefined): import("../types/api").RequestData<{
|
|
1171
|
+
getAnalyticAccount(analytic_account_id: string): import("../types/api").RequestData<{
|
|
1250
1172
|
id: string;
|
|
1251
1173
|
active: boolean;
|
|
1252
1174
|
code?: string | undefined;
|
|
@@ -1261,9 +1183,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1261
1183
|
code?: string | undefined;
|
|
1262
1184
|
name?: string | undefined;
|
|
1263
1185
|
currency?: string | undefined;
|
|
1264
|
-
}
|
|
1265
|
-
folder_id?: string | undefined;
|
|
1266
|
-
} | undefined): import("../types/api").RequestData<{
|
|
1186
|
+
}): import("../types/api").RequestData<{
|
|
1267
1187
|
id: string;
|
|
1268
1188
|
active: boolean;
|
|
1269
1189
|
code?: string | undefined;
|
|
@@ -1273,9 +1193,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1273
1193
|
credit?: number | undefined;
|
|
1274
1194
|
debit?: number | undefined;
|
|
1275
1195
|
}>;
|
|
1276
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string
|
|
1277
|
-
folder_id?: string | undefined;
|
|
1278
|
-
} | undefined): import("../types/api").RequestData<{
|
|
1196
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string): import("../types/api").RequestData<{
|
|
1279
1197
|
id: string;
|
|
1280
1198
|
active: boolean;
|
|
1281
1199
|
code?: string | undefined;
|
|
@@ -1291,9 +1209,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1291
1209
|
code?: string | undefined;
|
|
1292
1210
|
name?: string | undefined;
|
|
1293
1211
|
currency?: string | undefined;
|
|
1294
|
-
}
|
|
1295
|
-
folder_id?: string | undefined;
|
|
1296
|
-
} | undefined): import("../types/api").RequestData<{
|
|
1212
|
+
}): import("../types/api").RequestData<{
|
|
1297
1213
|
id: string;
|
|
1298
1214
|
active: boolean;
|
|
1299
1215
|
code?: string | undefined;
|
|
@@ -1304,11 +1220,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1304
1220
|
debit?: number | undefined;
|
|
1305
1221
|
analytic_plan: string;
|
|
1306
1222
|
}>;
|
|
1307
|
-
getAnalyticAccountsWithMultiplePlans(
|
|
1308
|
-
folder_id?: string | undefined;
|
|
1309
|
-
page?: number | undefined;
|
|
1310
|
-
size?: number | undefined;
|
|
1311
|
-
} | undefined): import("../types/api").RequestData<{
|
|
1223
|
+
getAnalyticAccountsWithMultiplePlans(): import("../types/api").RequestData<{
|
|
1312
1224
|
id: string;
|
|
1313
1225
|
active: boolean;
|
|
1314
1226
|
code?: string | undefined;
|
|
@@ -1319,10 +1231,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1319
1231
|
debit?: number | undefined;
|
|
1320
1232
|
analytic_plan: string;
|
|
1321
1233
|
}[]>;
|
|
1234
|
+
getAnalyticLinesOfAccount(analytic_account_id: string): import("../types/api").RequestData<{
|
|
1235
|
+
account_id: string;
|
|
1236
|
+
description: string;
|
|
1237
|
+
amount: number;
|
|
1238
|
+
date: string;
|
|
1239
|
+
id?: string | undefined;
|
|
1240
|
+
}[]>;
|
|
1322
1241
|
getJournalEntries(params: {
|
|
1323
1242
|
date_from: string;
|
|
1324
1243
|
date_to: string;
|
|
1325
|
-
folder_id?: string | undefined;
|
|
1326
1244
|
unposted_allowed: "true" | "false";
|
|
1327
1245
|
journal_id: string;
|
|
1328
1246
|
partner_id?: string | undefined;
|
|
@@ -1354,7 +1272,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1354
1272
|
getJournalEntriesWithMultiplePlans(params: {
|
|
1355
1273
|
date_from: string;
|
|
1356
1274
|
date_to: string;
|
|
1357
|
-
folder_id?: string | undefined;
|
|
1358
1275
|
unposted_allowed: "true" | "false";
|
|
1359
1276
|
journal_id: string;
|
|
1360
1277
|
partner_id?: string | undefined;
|
|
@@ -1388,11 +1305,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1388
1305
|
}[] | undefined;
|
|
1389
1306
|
}[] | undefined;
|
|
1390
1307
|
}[]>;
|
|
1391
|
-
getPaymentsByInvoiceId(invoice_id: string
|
|
1392
|
-
folder_id?: string | undefined;
|
|
1393
|
-
page?: number | undefined;
|
|
1394
|
-
size?: number | undefined;
|
|
1395
|
-
} | undefined): import("../types/api").RequestData<{
|
|
1308
|
+
getPaymentsByInvoiceId(invoice_id: string): import("../types/api").RequestData<{
|
|
1396
1309
|
id: string;
|
|
1397
1310
|
name: string;
|
|
1398
1311
|
currency: string;
|
|
@@ -1406,32 +1319,23 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1406
1319
|
communication?: string | undefined;
|
|
1407
1320
|
matching_number?: string | undefined;
|
|
1408
1321
|
}[]>;
|
|
1409
|
-
getJournals(
|
|
1410
|
-
folder_id?: string | undefined;
|
|
1411
|
-
page?: number | undefined;
|
|
1412
|
-
size?: number | undefined;
|
|
1413
|
-
} | undefined): import("../types/api").RequestData<{
|
|
1322
|
+
getJournals(): import("../types/api").RequestData<{
|
|
1414
1323
|
id: string;
|
|
1415
|
-
code
|
|
1324
|
+
code: string;
|
|
1416
1325
|
name: string;
|
|
1417
1326
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
1418
1327
|
}[]>;
|
|
1419
|
-
getVatCodes(
|
|
1420
|
-
folder_id?: string | undefined;
|
|
1421
|
-
page?: number | undefined;
|
|
1422
|
-
size?: number | undefined;
|
|
1423
|
-
} | undefined): import("../types/api").RequestData<{
|
|
1328
|
+
getVatCodes(): import("../types/api").RequestData<{
|
|
1424
1329
|
id: string;
|
|
1425
1330
|
code?: string | undefined;
|
|
1426
1331
|
label: string;
|
|
1427
1332
|
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
1428
1333
|
rate: number;
|
|
1429
1334
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
1430
|
-
deductible_account?: string | undefined;
|
|
1431
|
-
payable_account?: string | undefined;
|
|
1432
1335
|
}[]>;
|
|
1433
1336
|
getMiscOperations(params: {}): import("../types/api").RequestData<{
|
|
1434
1337
|
operation_number?: string | undefined;
|
|
1338
|
+
operation_date: string;
|
|
1435
1339
|
currency: string;
|
|
1436
1340
|
currency_exchange_rate?: number | undefined;
|
|
1437
1341
|
lines: {
|
|
@@ -1443,13 +1347,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1443
1347
|
partner_id?: string | undefined;
|
|
1444
1348
|
analytic_account?: string | undefined;
|
|
1445
1349
|
}[];
|
|
1446
|
-
operation_date?: string | undefined;
|
|
1447
1350
|
journal_id: string;
|
|
1448
1351
|
status: "draft" | "posted" | "cancelled" | "matched";
|
|
1449
1352
|
id: string;
|
|
1450
1353
|
}[]>;
|
|
1451
1354
|
createMiscOperation(operation: {
|
|
1452
1355
|
operation_number?: string | undefined;
|
|
1356
|
+
operation_date: string;
|
|
1453
1357
|
currency: string;
|
|
1454
1358
|
currency_exchange_rate?: number | undefined;
|
|
1455
1359
|
lines: {
|
|
@@ -1461,13 +1365,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1461
1365
|
partner_id?: string | undefined;
|
|
1462
1366
|
analytic_account?: string | undefined;
|
|
1463
1367
|
}[];
|
|
1464
|
-
operation_date: string;
|
|
1465
1368
|
journal_id?: string | undefined;
|
|
1466
1369
|
status?: "draft" | "posted" | undefined;
|
|
1467
|
-
}
|
|
1468
|
-
folder_id?: string | undefined;
|
|
1469
|
-
} | undefined): import("../types/api").RequestData<{
|
|
1370
|
+
}): import("../types/api").RequestData<{
|
|
1470
1371
|
operation_number?: string | undefined;
|
|
1372
|
+
operation_date: string;
|
|
1471
1373
|
currency: string;
|
|
1472
1374
|
currency_exchange_rate?: number | undefined;
|
|
1473
1375
|
lines: {
|
|
@@ -1479,15 +1381,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1479
1381
|
partner_id?: string | undefined;
|
|
1480
1382
|
analytic_account?: string | undefined;
|
|
1481
1383
|
}[];
|
|
1482
|
-
operation_date?: string | undefined;
|
|
1483
1384
|
journal_id: string;
|
|
1484
1385
|
status: "draft" | "posted" | "cancelled" | "matched";
|
|
1485
1386
|
id: string;
|
|
1486
1387
|
}>;
|
|
1487
|
-
getMiscOperation(operation_id: string
|
|
1488
|
-
folder_id?: string | undefined;
|
|
1489
|
-
} | undefined): import("../types/api").RequestData<{
|
|
1388
|
+
getMiscOperation(operation_id: string): import("../types/api").RequestData<{
|
|
1490
1389
|
operation_number?: string | undefined;
|
|
1390
|
+
operation_date: string;
|
|
1491
1391
|
currency: string;
|
|
1492
1392
|
currency_exchange_rate?: number | undefined;
|
|
1493
1393
|
lines: {
|
|
@@ -1499,7 +1399,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1499
1399
|
partner_id?: string | undefined;
|
|
1500
1400
|
analytic_account?: string | undefined;
|
|
1501
1401
|
}[];
|
|
1502
|
-
operation_date?: string | undefined;
|
|
1503
1402
|
journal_id: string;
|
|
1504
1403
|
status: "draft" | "posted" | "cancelled" | "matched";
|
|
1505
1404
|
id: string;
|
|
@@ -1508,21 +1407,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1508
1407
|
base64_string: string;
|
|
1509
1408
|
}, params: {
|
|
1510
1409
|
overwrite_existing?: "true" | "false" | undefined;
|
|
1511
|
-
folder_id?: string | undefined;
|
|
1512
1410
|
} | undefined): import("../types/api").RequestData<{
|
|
1513
1411
|
content: {
|
|
1514
1412
|
'application/json': unknown;
|
|
1515
1413
|
};
|
|
1516
1414
|
}>;
|
|
1517
|
-
getAttachments(params: {
|
|
1518
|
-
type: "invoice" | "entry";
|
|
1519
|
-
document_id: string;
|
|
1520
|
-
folder_id?: string | undefined;
|
|
1521
|
-
page?: number | undefined;
|
|
1522
|
-
size?: number | undefined;
|
|
1523
|
-
}): import("../types/api").RequestData<{
|
|
1524
|
-
base64_string: string;
|
|
1525
|
-
}[]>;
|
|
1526
1415
|
getChartOfAccounts(params: {}): import("../types/api").RequestData<{
|
|
1527
1416
|
number: string;
|
|
1528
1417
|
name: string;
|
|
@@ -1533,21 +1422,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1533
1422
|
accounts: string[];
|
|
1534
1423
|
start: string;
|
|
1535
1424
|
end: string;
|
|
1536
|
-
}
|
|
1537
|
-
folder_id?: string | undefined;
|
|
1538
|
-
page?: number | undefined;
|
|
1539
|
-
size?: number | undefined;
|
|
1540
|
-
} | undefined): import("../types/api").RequestData<{
|
|
1425
|
+
}): import("../types/api").RequestData<{
|
|
1541
1426
|
account_number: string;
|
|
1542
1427
|
debit: number;
|
|
1543
1428
|
credit: number;
|
|
1544
1429
|
balance: number;
|
|
1545
1430
|
}[]>;
|
|
1546
|
-
getEmployees(
|
|
1547
|
-
folder_id?: string | undefined;
|
|
1548
|
-
page?: number | undefined;
|
|
1549
|
-
size?: number | undefined;
|
|
1550
|
-
} | undefined): import("../types/api").RequestData<{
|
|
1431
|
+
getEmployees(): import("../types/api").RequestData<{
|
|
1551
1432
|
id: string;
|
|
1552
1433
|
name: string;
|
|
1553
1434
|
first_name?: string | undefined;
|
|
@@ -1561,7 +1442,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1561
1442
|
account_number?: string | undefined;
|
|
1562
1443
|
}[]>;
|
|
1563
1444
|
getOutstandings(params: {
|
|
1564
|
-
folder_id?: string | undefined;
|
|
1565
1445
|
unposted_allowed: "true" | "false";
|
|
1566
1446
|
type: "client" | "supplier";
|
|
1567
1447
|
}): import("../types/api").RequestData<{
|
|
@@ -1578,7 +1458,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1578
1458
|
partner_id: string;
|
|
1579
1459
|
account_number: string;
|
|
1580
1460
|
reference?: string | undefined;
|
|
1581
|
-
payment_communication?: string | undefined;
|
|
1582
1461
|
posted: boolean;
|
|
1583
1462
|
}[]>;
|
|
1584
1463
|
createFinancialEntryOld(financial_entry: {
|
|
@@ -1598,7 +1477,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1598
1477
|
pdf?: string | undefined;
|
|
1599
1478
|
}, params: {
|
|
1600
1479
|
financial_counterpart_account?: string | undefined;
|
|
1601
|
-
folder_id?: string | undefined;
|
|
1602
1480
|
} | undefined): import("../types/api").RequestData<{
|
|
1603
1481
|
date: string;
|
|
1604
1482
|
journal_id: string;
|
|
@@ -1632,7 +1510,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1632
1510
|
pdf?: string | undefined;
|
|
1633
1511
|
}, params: {
|
|
1634
1512
|
financial_counterpart_account?: string | undefined;
|
|
1635
|
-
folder_id?: string | undefined;
|
|
1636
1513
|
} | undefined): import("../types/api").RequestData<{
|
|
1637
1514
|
date: string;
|
|
1638
1515
|
journal_id: string;
|
|
@@ -1649,7 +1526,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1649
1526
|
counterpart_account: string;
|
|
1650
1527
|
}[];
|
|
1651
1528
|
}[]>;
|
|
1652
|
-
|
|
1529
|
+
createJournalEntry(journal_entry: {
|
|
1653
1530
|
reference?: string | undefined;
|
|
1654
1531
|
due_date?: string | undefined;
|
|
1655
1532
|
journal_id: string;
|
|
@@ -1670,8 +1547,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1670
1547
|
percentage: number;
|
|
1671
1548
|
}[];
|
|
1672
1549
|
}[] | undefined;
|
|
1550
|
+
pdf?: string | undefined;
|
|
1673
1551
|
}[];
|
|
1674
|
-
pdf?: string | undefined;
|
|
1675
1552
|
}): import("../types/api").RequestData<{
|
|
1676
1553
|
reference?: string | undefined;
|
|
1677
1554
|
due_date?: string | undefined;
|
|
@@ -1702,79 +1579,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1702
1579
|
}[] | undefined;
|
|
1703
1580
|
}[] | undefined;
|
|
1704
1581
|
}>;
|
|
1705
|
-
createJournalEntry(journal_entry: {
|
|
1706
|
-
reference?: string | undefined;
|
|
1707
|
-
due_date?: string | undefined;
|
|
1708
|
-
journal_id: string;
|
|
1709
|
-
number: string;
|
|
1710
|
-
currency: string;
|
|
1711
|
-
currency_exchange_rate?: number | undefined;
|
|
1712
|
-
date: string;
|
|
1713
|
-
items: {
|
|
1714
|
-
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
1715
|
-
account: string;
|
|
1716
|
-
force_general_account?: string | undefined;
|
|
1717
|
-
prioritise_thirdparty_account?: boolean | undefined;
|
|
1718
|
-
description?: string | undefined;
|
|
1719
|
-
debit: number;
|
|
1720
|
-
credit: number;
|
|
1721
|
-
analytic_distribution?: {
|
|
1722
|
-
analytic_plan: string;
|
|
1723
|
-
analytic_accounts: {
|
|
1724
|
-
analytic_account: string;
|
|
1725
|
-
percentage: number;
|
|
1726
|
-
}[];
|
|
1727
|
-
}[] | undefined;
|
|
1728
|
-
tax_code?: string | undefined;
|
|
1729
|
-
}[];
|
|
1730
|
-
pdf?: string | undefined;
|
|
1731
|
-
posted?: boolean | undefined;
|
|
1732
|
-
}, params: {
|
|
1733
|
-
folder_id?: string | undefined;
|
|
1734
|
-
} | undefined): import("../types/api").RequestData<{
|
|
1735
|
-
reference?: string | undefined;
|
|
1736
|
-
due_date?: string | undefined;
|
|
1737
|
-
journal_id: string;
|
|
1738
|
-
name?: string | undefined;
|
|
1739
|
-
journal_name: string;
|
|
1740
|
-
date?: string | undefined;
|
|
1741
|
-
posted?: boolean | undefined;
|
|
1742
|
-
id: string;
|
|
1743
|
-
items?: {
|
|
1744
|
-
account_number: string;
|
|
1745
|
-
partner_id?: string | undefined;
|
|
1746
|
-
description?: string | undefined;
|
|
1747
|
-
debit: number;
|
|
1748
|
-
credit: number;
|
|
1749
|
-
currency: string;
|
|
1750
|
-
currency_exchange_rate?: number | undefined;
|
|
1751
|
-
id: string;
|
|
1752
|
-
partner_name?: string | undefined;
|
|
1753
|
-
account_name: string;
|
|
1754
|
-
matching_numbers?: string[] | undefined;
|
|
1755
|
-
analytic_distribution?: {
|
|
1756
|
-
analytic_plan: string;
|
|
1757
|
-
analytic_accounts: {
|
|
1758
|
-
analytic_account: string;
|
|
1759
|
-
percentage: number;
|
|
1760
|
-
}[];
|
|
1761
|
-
}[] | undefined;
|
|
1762
|
-
}[] | undefined;
|
|
1763
|
-
}>;
|
|
1764
|
-
matchEntries(body: {
|
|
1765
|
-
entries: string[];
|
|
1766
|
-
partner_id: string;
|
|
1767
|
-
}, params: {
|
|
1768
|
-
folder_id?: string | undefined;
|
|
1769
|
-
} | undefined): import("../types/api").RequestData<{
|
|
1770
|
-
matching_number: string;
|
|
1771
|
-
balance: number;
|
|
1772
|
-
}>;
|
|
1773
|
-
getFolders(): import("../types/api").RequestData<{
|
|
1774
|
-
id: string;
|
|
1775
|
-
name: string;
|
|
1776
|
-
selected?: boolean | undefined;
|
|
1777
|
-
}[]>;
|
|
1778
1582
|
}>;
|
|
1779
1583
|
invoicing: import("../types/api").ApiFor<{
|
|
1780
1584
|
getInvoices(params: {
|
|
@@ -1782,7 +1586,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1782
1586
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1783
1587
|
date_from?: string | undefined;
|
|
1784
1588
|
date_to?: string | undefined;
|
|
1785
|
-
updated_after?: string | undefined;
|
|
1786
1589
|
page?: number | undefined;
|
|
1787
1590
|
size?: number | undefined;
|
|
1788
1591
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -1825,8 +1628,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1825
1628
|
model?: string | undefined;
|
|
1826
1629
|
name?: string | undefined;
|
|
1827
1630
|
} | undefined;
|
|
1828
|
-
outstanding_amount?: number | undefined;
|
|
1829
|
-
last_updated_on?: string | undefined;
|
|
1830
1631
|
}[]>;
|
|
1831
1632
|
getInvoiceById(invoiceId: string, params: {
|
|
1832
1633
|
include_pdf?: "true" | "false" | undefined;
|
|
@@ -1870,8 +1671,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1870
1671
|
model?: string | undefined;
|
|
1871
1672
|
name?: string | undefined;
|
|
1872
1673
|
} | undefined;
|
|
1873
|
-
outstanding_amount?: number | undefined;
|
|
1874
|
-
last_updated_on?: string | undefined;
|
|
1875
1674
|
}>;
|
|
1876
1675
|
createInvoice(invoice: {
|
|
1877
1676
|
currency: string;
|
|
@@ -1908,7 +1707,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1908
1707
|
model?: string | undefined;
|
|
1909
1708
|
name?: string | undefined;
|
|
1910
1709
|
} | undefined;
|
|
1911
|
-
outstanding_amount?: number | undefined;
|
|
1912
1710
|
}): import("../types/api").RequestData<{
|
|
1913
1711
|
id: string;
|
|
1914
1712
|
source_ref: {
|
|
@@ -1949,8 +1747,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1949
1747
|
model?: string | undefined;
|
|
1950
1748
|
name?: string | undefined;
|
|
1951
1749
|
} | undefined;
|
|
1952
|
-
outstanding_amount?: number | undefined;
|
|
1953
|
-
last_updated_on?: string | undefined;
|
|
1954
1750
|
}>;
|
|
1955
1751
|
getProducts(): import("../types/api").RequestData<{
|
|
1956
1752
|
id: string;
|
|
@@ -2263,7 +2059,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2263
2059
|
currency?: string | undefined;
|
|
2264
2060
|
addresses?: {
|
|
2265
2061
|
address_type: "main" | "delivery" | "invoice";
|
|
2266
|
-
company_name?: string | undefined;
|
|
2267
2062
|
first_name?: string | undefined;
|
|
2268
2063
|
last_name?: string | undefined;
|
|
2269
2064
|
street?: string | undefined;
|
|
@@ -2357,7 +2152,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2357
2152
|
currency?: string | undefined;
|
|
2358
2153
|
addresses?: {
|
|
2359
2154
|
address_type: "main" | "delivery" | "invoice";
|
|
2360
|
-
company_name?: string | undefined;
|
|
2361
2155
|
first_name?: string | undefined;
|
|
2362
2156
|
last_name?: string | undefined;
|
|
2363
2157
|
street?: string | undefined;
|
|
@@ -2510,16 +2304,15 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2510
2304
|
};
|
|
2511
2305
|
order_number?: string | undefined;
|
|
2512
2306
|
customer?: {
|
|
2307
|
+
email: string;
|
|
2513
2308
|
first_name?: string | undefined;
|
|
2514
2309
|
last_name?: string | undefined;
|
|
2515
2310
|
phone?: string | undefined;
|
|
2516
2311
|
internal_notes?: string | undefined;
|
|
2517
|
-
email?: string | undefined;
|
|
2518
2312
|
id: string;
|
|
2519
2313
|
} | undefined;
|
|
2520
2314
|
billing_address?: {
|
|
2521
2315
|
address_type: "main" | "delivery" | "invoice";
|
|
2522
|
-
company_name?: string | undefined;
|
|
2523
2316
|
first_name?: string | undefined;
|
|
2524
2317
|
last_name?: string | undefined;
|
|
2525
2318
|
street?: string | undefined;
|
|
@@ -2533,7 +2326,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2533
2326
|
} | undefined;
|
|
2534
2327
|
shipping_address?: {
|
|
2535
2328
|
address_type: "main" | "delivery" | "invoice";
|
|
2536
|
-
company_name?: string | undefined;
|
|
2537
2329
|
first_name?: string | undefined;
|
|
2538
2330
|
last_name?: string | undefined;
|
|
2539
2331
|
street?: string | undefined;
|
|
@@ -2559,11 +2351,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2559
2351
|
total: number;
|
|
2560
2352
|
refunded_amount?: number | undefined;
|
|
2561
2353
|
detailed_refunds?: {
|
|
2562
|
-
id: string;
|
|
2563
|
-
source_ref: {
|
|
2564
|
-
id?: string | undefined;
|
|
2565
|
-
model?: string | undefined;
|
|
2566
|
-
};
|
|
2567
2354
|
created_on?: string | undefined;
|
|
2568
2355
|
total: number;
|
|
2569
2356
|
reason?: string | undefined;
|
|
@@ -2580,11 +2367,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2580
2367
|
total: number;
|
|
2581
2368
|
}[] | undefined;
|
|
2582
2369
|
other?: number | undefined;
|
|
2583
|
-
shipping_refunds?: {
|
|
2584
|
-
untaxed_amount: number;
|
|
2585
|
-
tax_amount: number;
|
|
2586
|
-
total: number;
|
|
2587
|
-
}[] | undefined;
|
|
2588
2370
|
}[] | undefined;
|
|
2589
2371
|
currency: string;
|
|
2590
2372
|
note?: string | undefined;
|
|
@@ -2594,7 +2376,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2594
2376
|
id?: string | undefined;
|
|
2595
2377
|
model?: string | undefined;
|
|
2596
2378
|
};
|
|
2597
|
-
created_on?: string | undefined;
|
|
2598
2379
|
variant?: {
|
|
2599
2380
|
id: string;
|
|
2600
2381
|
sku?: string | undefined;
|
|
@@ -2603,7 +2384,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2603
2384
|
quantity: number;
|
|
2604
2385
|
unit_price: number;
|
|
2605
2386
|
description: string;
|
|
2606
|
-
tax_id?: string | undefined;
|
|
2607
2387
|
tax_rate: number;
|
|
2608
2388
|
untaxed_amount: number;
|
|
2609
2389
|
tax_amount: number;
|
|
@@ -2613,42 +2393,22 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2613
2393
|
description: string;
|
|
2614
2394
|
amount: number;
|
|
2615
2395
|
}[] | undefined;
|
|
2616
|
-
gift_card?: boolean | undefined;
|
|
2617
2396
|
}[];
|
|
2618
2397
|
other_fees?: {
|
|
2619
|
-
created_on?: string | undefined;
|
|
2620
2398
|
type: "other" | "shipping";
|
|
2621
2399
|
tax_rate: number;
|
|
2622
|
-
tax_id?: string | undefined;
|
|
2623
|
-
discounts?: {
|
|
2624
|
-
name: string;
|
|
2625
|
-
description: string;
|
|
2626
|
-
amount: number;
|
|
2627
|
-
}[] | undefined;
|
|
2628
2400
|
untaxed_amount: number;
|
|
2629
2401
|
tax_amount: number;
|
|
2630
2402
|
total: number;
|
|
2631
2403
|
}[] | undefined;
|
|
2632
|
-
payment_method_id?: string | undefined;
|
|
2633
|
-
transactions?: {
|
|
2634
|
-
id: string;
|
|
2635
|
-
payment_method_id?: string | undefined;
|
|
2636
|
-
payment_method_name?: string | undefined;
|
|
2637
|
-
amount: number;
|
|
2638
|
-
status: "failed" | "pending" | "success";
|
|
2639
|
-
}[] | undefined;
|
|
2640
|
-
payment_methods?: {
|
|
2641
|
-
id: string;
|
|
2642
|
-
name?: string | undefined;
|
|
2643
|
-
}[] | undefined;
|
|
2644
2404
|
}[]>;
|
|
2645
2405
|
createOrder(order: {
|
|
2646
2406
|
customer: {
|
|
2407
|
+
email: string;
|
|
2647
2408
|
first_name?: string | undefined;
|
|
2648
2409
|
last_name?: string | undefined;
|
|
2649
2410
|
phone?: string | undefined;
|
|
2650
2411
|
internal_notes?: string | undefined;
|
|
2651
|
-
email: string;
|
|
2652
2412
|
};
|
|
2653
2413
|
billing_address: {
|
|
2654
2414
|
first_name: string;
|
|
@@ -2691,16 +2451,15 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2691
2451
|
};
|
|
2692
2452
|
order_number?: string | undefined;
|
|
2693
2453
|
customer?: {
|
|
2454
|
+
email: string;
|
|
2694
2455
|
first_name?: string | undefined;
|
|
2695
2456
|
last_name?: string | undefined;
|
|
2696
2457
|
phone?: string | undefined;
|
|
2697
2458
|
internal_notes?: string | undefined;
|
|
2698
|
-
email?: string | undefined;
|
|
2699
2459
|
id: string;
|
|
2700
2460
|
} | undefined;
|
|
2701
2461
|
billing_address?: {
|
|
2702
2462
|
address_type: "main" | "delivery" | "invoice";
|
|
2703
|
-
company_name?: string | undefined;
|
|
2704
2463
|
first_name?: string | undefined;
|
|
2705
2464
|
last_name?: string | undefined;
|
|
2706
2465
|
street?: string | undefined;
|
|
@@ -2714,7 +2473,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2714
2473
|
} | undefined;
|
|
2715
2474
|
shipping_address?: {
|
|
2716
2475
|
address_type: "main" | "delivery" | "invoice";
|
|
2717
|
-
company_name?: string | undefined;
|
|
2718
2476
|
first_name?: string | undefined;
|
|
2719
2477
|
last_name?: string | undefined;
|
|
2720
2478
|
street?: string | undefined;
|
|
@@ -2740,11 +2498,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2740
2498
|
total: number;
|
|
2741
2499
|
refunded_amount?: number | undefined;
|
|
2742
2500
|
detailed_refunds?: {
|
|
2743
|
-
id: string;
|
|
2744
|
-
source_ref: {
|
|
2745
|
-
id?: string | undefined;
|
|
2746
|
-
model?: string | undefined;
|
|
2747
|
-
};
|
|
2748
2501
|
created_on?: string | undefined;
|
|
2749
2502
|
total: number;
|
|
2750
2503
|
reason?: string | undefined;
|
|
@@ -2761,11 +2514,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2761
2514
|
total: number;
|
|
2762
2515
|
}[] | undefined;
|
|
2763
2516
|
other?: number | undefined;
|
|
2764
|
-
shipping_refunds?: {
|
|
2765
|
-
untaxed_amount: number;
|
|
2766
|
-
tax_amount: number;
|
|
2767
|
-
total: number;
|
|
2768
|
-
}[] | undefined;
|
|
2769
2517
|
}[] | undefined;
|
|
2770
2518
|
currency: string;
|
|
2771
2519
|
note?: string | undefined;
|
|
@@ -2775,7 +2523,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2775
2523
|
id?: string | undefined;
|
|
2776
2524
|
model?: string | undefined;
|
|
2777
2525
|
};
|
|
2778
|
-
created_on?: string | undefined;
|
|
2779
2526
|
variant?: {
|
|
2780
2527
|
id: string;
|
|
2781
2528
|
sku?: string | undefined;
|
|
@@ -2784,7 +2531,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2784
2531
|
quantity: number;
|
|
2785
2532
|
unit_price: number;
|
|
2786
2533
|
description: string;
|
|
2787
|
-
tax_id?: string | undefined;
|
|
2788
2534
|
tax_rate: number;
|
|
2789
2535
|
untaxed_amount: number;
|
|
2790
2536
|
tax_amount: number;
|
|
@@ -2794,34 +2540,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2794
2540
|
description: string;
|
|
2795
2541
|
amount: number;
|
|
2796
2542
|
}[] | undefined;
|
|
2797
|
-
gift_card?: boolean | undefined;
|
|
2798
2543
|
}[];
|
|
2799
2544
|
other_fees?: {
|
|
2800
|
-
created_on?: string | undefined;
|
|
2801
2545
|
type: "other" | "shipping";
|
|
2802
2546
|
tax_rate: number;
|
|
2803
|
-
tax_id?: string | undefined;
|
|
2804
|
-
discounts?: {
|
|
2805
|
-
name: string;
|
|
2806
|
-
description: string;
|
|
2807
|
-
amount: number;
|
|
2808
|
-
}[] | undefined;
|
|
2809
2547
|
untaxed_amount: number;
|
|
2810
2548
|
tax_amount: number;
|
|
2811
2549
|
total: number;
|
|
2812
2550
|
}[] | undefined;
|
|
2813
|
-
payment_method_id?: string | undefined;
|
|
2814
|
-
transactions?: {
|
|
2815
|
-
id: string;
|
|
2816
|
-
payment_method_id?: string | undefined;
|
|
2817
|
-
payment_method_name?: string | undefined;
|
|
2818
|
-
amount: number;
|
|
2819
|
-
status: "failed" | "pending" | "success";
|
|
2820
|
-
}[] | undefined;
|
|
2821
|
-
payment_methods?: {
|
|
2822
|
-
id: string;
|
|
2823
|
-
name?: string | undefined;
|
|
2824
|
-
}[] | undefined;
|
|
2825
2551
|
}>;
|
|
2826
2552
|
getOrder(orderId: string): import("../types/api").RequestData<{
|
|
2827
2553
|
id: string;
|
|
@@ -2831,16 +2557,15 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2831
2557
|
};
|
|
2832
2558
|
order_number?: string | undefined;
|
|
2833
2559
|
customer?: {
|
|
2560
|
+
email: string;
|
|
2834
2561
|
first_name?: string | undefined;
|
|
2835
2562
|
last_name?: string | undefined;
|
|
2836
2563
|
phone?: string | undefined;
|
|
2837
2564
|
internal_notes?: string | undefined;
|
|
2838
|
-
email?: string | undefined;
|
|
2839
2565
|
id: string;
|
|
2840
2566
|
} | undefined;
|
|
2841
2567
|
billing_address?: {
|
|
2842
2568
|
address_type: "main" | "delivery" | "invoice";
|
|
2843
|
-
company_name?: string | undefined;
|
|
2844
2569
|
first_name?: string | undefined;
|
|
2845
2570
|
last_name?: string | undefined;
|
|
2846
2571
|
street?: string | undefined;
|
|
@@ -2854,7 +2579,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2854
2579
|
} | undefined;
|
|
2855
2580
|
shipping_address?: {
|
|
2856
2581
|
address_type: "main" | "delivery" | "invoice";
|
|
2857
|
-
company_name?: string | undefined;
|
|
2858
2582
|
first_name?: string | undefined;
|
|
2859
2583
|
last_name?: string | undefined;
|
|
2860
2584
|
street?: string | undefined;
|
|
@@ -2880,11 +2604,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2880
2604
|
total: number;
|
|
2881
2605
|
refunded_amount?: number | undefined;
|
|
2882
2606
|
detailed_refunds?: {
|
|
2883
|
-
id: string;
|
|
2884
|
-
source_ref: {
|
|
2885
|
-
id?: string | undefined;
|
|
2886
|
-
model?: string | undefined;
|
|
2887
|
-
};
|
|
2888
2607
|
created_on?: string | undefined;
|
|
2889
2608
|
total: number;
|
|
2890
2609
|
reason?: string | undefined;
|
|
@@ -2901,11 +2620,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2901
2620
|
total: number;
|
|
2902
2621
|
}[] | undefined;
|
|
2903
2622
|
other?: number | undefined;
|
|
2904
|
-
shipping_refunds?: {
|
|
2905
|
-
untaxed_amount: number;
|
|
2906
|
-
tax_amount: number;
|
|
2907
|
-
total: number;
|
|
2908
|
-
}[] | undefined;
|
|
2909
2623
|
}[] | undefined;
|
|
2910
2624
|
currency: string;
|
|
2911
2625
|
note?: string | undefined;
|
|
@@ -2915,7 +2629,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2915
2629
|
id?: string | undefined;
|
|
2916
2630
|
model?: string | undefined;
|
|
2917
2631
|
};
|
|
2918
|
-
created_on?: string | undefined;
|
|
2919
2632
|
variant?: {
|
|
2920
2633
|
id: string;
|
|
2921
2634
|
sku?: string | undefined;
|
|
@@ -2924,7 +2637,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2924
2637
|
quantity: number;
|
|
2925
2638
|
unit_price: number;
|
|
2926
2639
|
description: string;
|
|
2927
|
-
tax_id?: string | undefined;
|
|
2928
2640
|
tax_rate: number;
|
|
2929
2641
|
untaxed_amount: number;
|
|
2930
2642
|
tax_amount: number;
|
|
@@ -2934,67 +2646,15 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2934
2646
|
description: string;
|
|
2935
2647
|
amount: number;
|
|
2936
2648
|
}[] | undefined;
|
|
2937
|
-
gift_card?: boolean | undefined;
|
|
2938
2649
|
}[];
|
|
2939
2650
|
other_fees?: {
|
|
2940
|
-
created_on?: string | undefined;
|
|
2941
2651
|
type: "other" | "shipping";
|
|
2942
2652
|
tax_rate: number;
|
|
2943
|
-
tax_id?: string | undefined;
|
|
2944
|
-
discounts?: {
|
|
2945
|
-
name: string;
|
|
2946
|
-
description: string;
|
|
2947
|
-
amount: number;
|
|
2948
|
-
}[] | undefined;
|
|
2949
2653
|
untaxed_amount: number;
|
|
2950
2654
|
tax_amount: number;
|
|
2951
2655
|
total: number;
|
|
2952
2656
|
}[] | undefined;
|
|
2953
|
-
payment_method_id?: string | undefined;
|
|
2954
|
-
transactions?: {
|
|
2955
|
-
id: string;
|
|
2956
|
-
payment_method_id?: string | undefined;
|
|
2957
|
-
payment_method_name?: string | undefined;
|
|
2958
|
-
amount: number;
|
|
2959
|
-
status: "failed" | "pending" | "success";
|
|
2960
|
-
}[] | undefined;
|
|
2961
|
-
payment_methods?: {
|
|
2962
|
-
id: string;
|
|
2963
|
-
name?: string | undefined;
|
|
2964
|
-
}[] | undefined;
|
|
2965
2657
|
}>;
|
|
2966
|
-
getPaymentMethods(params: {}): import("../types/api").RequestData<{
|
|
2967
|
-
id: string;
|
|
2968
|
-
source_ref: {
|
|
2969
|
-
id?: string | undefined;
|
|
2970
|
-
model?: string | undefined;
|
|
2971
|
-
};
|
|
2972
|
-
name: string;
|
|
2973
|
-
active: boolean;
|
|
2974
|
-
}[]>;
|
|
2975
|
-
getProductCategories(params: {}): import("../types/api").RequestData<{
|
|
2976
|
-
id: string;
|
|
2977
|
-
source_ref: {
|
|
2978
|
-
id?: string | undefined;
|
|
2979
|
-
model?: string | undefined;
|
|
2980
|
-
};
|
|
2981
|
-
name: string;
|
|
2982
|
-
parent_id?: string | undefined;
|
|
2983
|
-
}[]>;
|
|
2984
|
-
getTaxes(params: {}): import("../types/api").RequestData<{
|
|
2985
|
-
id: string;
|
|
2986
|
-
source_ref: {
|
|
2987
|
-
id?: string | undefined;
|
|
2988
|
-
model?: string | undefined;
|
|
2989
|
-
};
|
|
2990
|
-
label: string;
|
|
2991
|
-
rate: number;
|
|
2992
|
-
country?: string | undefined;
|
|
2993
|
-
}[]>;
|
|
2994
|
-
getCountries(params: {}): import("../types/api").RequestData<{
|
|
2995
|
-
code: string;
|
|
2996
|
-
name: string;
|
|
2997
|
-
}[]>;
|
|
2998
2658
|
}>;
|
|
2999
2659
|
custom: import("../types/api").ApiFor<{
|
|
3000
2660
|
get(name: string, resource: string, params?: any): import("../types/api").RequestData<any>;
|
|
@@ -3020,15 +2680,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
3020
2680
|
link_createdon: string;
|
|
3021
2681
|
link_mappings?: {
|
|
3022
2682
|
name: string;
|
|
3023
|
-
description
|
|
3024
|
-
|
|
3025
|
-
challenge_question?: string | undefined;
|
|
2683
|
+
description: string;
|
|
2684
|
+
logic?: Record<string, never> | undefined;
|
|
3026
2685
|
values: {
|
|
3027
2686
|
source_id: string;
|
|
3028
2687
|
target_id: string;
|
|
3029
2688
|
}[];
|
|
3030
|
-
sub_mapping_name: string;
|
|
3031
|
-
sub_mapping_description?: string | undefined;
|
|
3032
2689
|
}[] | undefined;
|
|
3033
2690
|
link_metadata?: Record<string, never> | undefined;
|
|
3034
2691
|
enabled_flows?: {
|
|
@@ -3055,12 +2712,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
3055
2712
|
}[] | undefined;
|
|
3056
2713
|
} | undefined;
|
|
3057
2714
|
values: Record<string, never>;
|
|
3058
|
-
enabled_on
|
|
3059
|
-
trigger: {
|
|
3060
|
-
id: string;
|
|
3061
|
-
type: "timer" | "event";
|
|
3062
|
-
cronschedule?: string | undefined;
|
|
3063
|
-
};
|
|
2715
|
+
enabled_on: string;
|
|
3064
2716
|
}[] | undefined;
|
|
3065
2717
|
}>;
|
|
3066
2718
|
getDataByDataStoreName: (dataStoreName: string, params?: object) => Promise<{
|
|
@@ -3078,7 +2730,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
3078
2730
|
id: string;
|
|
3079
2731
|
created_on: string;
|
|
3080
2732
|
}[]>;
|
|
3081
|
-
deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<SimpleResponseModel>;
|
|
3082
2733
|
logData: (logs: ConsumerLog[]) => Promise<SimpleResponseModel>;
|
|
3083
2734
|
};
|
|
3084
2735
|
export { Consumer };
|