@chift/chift-nodejs 1.0.14 → 1.0.15
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 -1
- package/CHANGELOG.md +7 -1
- package/dist/src/modules/api.d.ts +1110 -265
- package/dist/src/modules/consumer.d.ts +221 -52
- package/dist/src/modules/consumer.js +3 -0
- package/dist/src/modules/consumers.d.ts +1109 -264
- package/dist/src/modules/integrations.d.ts +1 -1
- package/dist/src/modules/pms.d.ts +15 -0
- package/dist/src/modules/pms.js +47 -0
- package/dist/src/modules/pos.d.ts +4 -4
- package/dist/src/modules/sync.d.ts +884 -208
- package/dist/src/types/public-api/schema.d.ts +984 -292
- package/package.json +1 -1
- package/src/modules/consumer.ts +3 -0
- package/src/modules/pms.ts +67 -0
- package/src/modules/pos.ts +4 -4
- package/src/types/public-api/schema.d.ts +12029 -0
- package/src/types/public-api/schema.ts +987 -288
- package/test/modules/pos.test.ts +1 -1
|
@@ -66,6 +66,26 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
66
66
|
total_discount?: number | undefined;
|
|
67
67
|
total_refund?: number | undefined;
|
|
68
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
|
+
payments: {
|
|
80
|
+
id?: string | undefined;
|
|
81
|
+
payment_method_id?: string | undefined;
|
|
82
|
+
payment_method_name?: string | undefined;
|
|
83
|
+
total: number;
|
|
84
|
+
tip?: number | undefined;
|
|
85
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
86
|
+
currency?: string | undefined;
|
|
87
|
+
date?: string | undefined;
|
|
88
|
+
}[];
|
|
69
89
|
items: {
|
|
70
90
|
id: string;
|
|
71
91
|
quantity: number;
|
|
@@ -81,26 +101,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
81
101
|
product_id?: string | undefined;
|
|
82
102
|
accounting_category_id?: string | undefined;
|
|
83
103
|
}[];
|
|
84
|
-
payments: {
|
|
85
|
-
id?: string | undefined;
|
|
86
|
-
payment_method_id?: string | undefined;
|
|
87
|
-
payment_method_name?: string | undefined;
|
|
88
|
-
total: number;
|
|
89
|
-
tip?: number | undefined;
|
|
90
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
91
|
-
currency?: string | undefined;
|
|
92
|
-
date?: string | undefined;
|
|
93
|
-
}[];
|
|
94
|
-
currency?: string | undefined;
|
|
95
|
-
country?: string | undefined;
|
|
96
|
-
loyalty?: number | undefined;
|
|
97
|
-
customer_id?: string | undefined;
|
|
98
|
-
location_id?: string | undefined;
|
|
99
|
-
taxes?: {
|
|
100
|
-
tax_rate: number;
|
|
101
|
-
tax_amount: number;
|
|
102
|
-
total: number;
|
|
103
|
-
}[] | undefined;
|
|
104
104
|
}[]>;
|
|
105
105
|
getCustomers(params?: {
|
|
106
106
|
search?: string | undefined;
|
|
@@ -139,6 +139,26 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
139
139
|
total_discount?: number | undefined;
|
|
140
140
|
total_refund?: number | undefined;
|
|
141
141
|
total_tip?: number | undefined;
|
|
142
|
+
currency?: string | undefined;
|
|
143
|
+
country?: string | undefined;
|
|
144
|
+
loyalty?: number | undefined;
|
|
145
|
+
customer_id?: string | undefined;
|
|
146
|
+
location_id?: string | undefined;
|
|
147
|
+
taxes?: {
|
|
148
|
+
tax_rate: number;
|
|
149
|
+
tax_amount: number;
|
|
150
|
+
total: number;
|
|
151
|
+
}[] | undefined;
|
|
152
|
+
payments: {
|
|
153
|
+
id?: string | undefined;
|
|
154
|
+
payment_method_id?: string | undefined;
|
|
155
|
+
payment_method_name?: string | undefined;
|
|
156
|
+
total: number;
|
|
157
|
+
tip?: number | undefined;
|
|
158
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
159
|
+
currency?: string | undefined;
|
|
160
|
+
date?: string | undefined;
|
|
161
|
+
}[];
|
|
142
162
|
items: {
|
|
143
163
|
id: string;
|
|
144
164
|
quantity: number;
|
|
@@ -154,26 +174,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
154
174
|
product_id?: string | undefined;
|
|
155
175
|
accounting_category_id?: string | undefined;
|
|
156
176
|
}[];
|
|
157
|
-
payments: {
|
|
158
|
-
id?: string | undefined;
|
|
159
|
-
payment_method_id?: string | undefined;
|
|
160
|
-
payment_method_name?: string | undefined;
|
|
161
|
-
total: number;
|
|
162
|
-
tip?: number | undefined;
|
|
163
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
164
|
-
currency?: string | undefined;
|
|
165
|
-
date?: string | undefined;
|
|
166
|
-
}[];
|
|
167
|
-
currency?: string | undefined;
|
|
168
|
-
country?: string | undefined;
|
|
169
|
-
loyalty?: number | undefined;
|
|
170
|
-
customer_id?: string | undefined;
|
|
171
|
-
location_id?: string | undefined;
|
|
172
|
-
taxes?: {
|
|
173
|
-
tax_rate: number;
|
|
174
|
-
tax_amount: number;
|
|
175
|
-
total: number;
|
|
176
|
-
}[] | undefined;
|
|
177
177
|
}>;
|
|
178
178
|
getCustomer(customerId: string): import("../types/api").RequestData<{
|
|
179
179
|
id: string;
|
|
@@ -309,6 +309,26 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
309
309
|
total_discount?: number | undefined;
|
|
310
310
|
total_refund?: number | undefined;
|
|
311
311
|
total_tip?: number | undefined;
|
|
312
|
+
currency?: string | undefined;
|
|
313
|
+
country?: string | undefined;
|
|
314
|
+
loyalty?: number | undefined;
|
|
315
|
+
customer_id?: string | undefined;
|
|
316
|
+
location_id?: string | undefined;
|
|
317
|
+
taxes?: {
|
|
318
|
+
tax_rate: number;
|
|
319
|
+
tax_amount: number;
|
|
320
|
+
total: number;
|
|
321
|
+
}[] | undefined;
|
|
322
|
+
payments: {
|
|
323
|
+
id?: string | undefined;
|
|
324
|
+
payment_method_id?: string | undefined;
|
|
325
|
+
payment_method_name?: string | undefined;
|
|
326
|
+
total: number;
|
|
327
|
+
tip?: number | undefined;
|
|
328
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
329
|
+
currency?: string | undefined;
|
|
330
|
+
date?: string | undefined;
|
|
331
|
+
}[];
|
|
312
332
|
items: {
|
|
313
333
|
id: string;
|
|
314
334
|
quantity: number;
|
|
@@ -324,16 +344,53 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
324
344
|
product_id?: string | undefined;
|
|
325
345
|
accounting_category_id?: string | undefined;
|
|
326
346
|
}[];
|
|
327
|
-
|
|
347
|
+
}>;
|
|
348
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
349
|
+
id: string;
|
|
350
|
+
name: string;
|
|
351
|
+
id_parent?: string | undefined;
|
|
352
|
+
code?: string | undefined;
|
|
353
|
+
ledger_account_code?: string | undefined;
|
|
354
|
+
posting_account_code?: string | undefined;
|
|
355
|
+
}[]>;
|
|
356
|
+
}>;
|
|
357
|
+
pms: import("../types/api").ApiFor<{
|
|
358
|
+
getLocations(): import("../types/api").RequestData<{
|
|
359
|
+
id: string;
|
|
360
|
+
name: string;
|
|
361
|
+
timezone?: string | undefined;
|
|
362
|
+
address?: {
|
|
363
|
+
address_type?: string | undefined;
|
|
364
|
+
name?: string | undefined;
|
|
365
|
+
street?: string | undefined;
|
|
366
|
+
number?: string | undefined;
|
|
367
|
+
box?: string | undefined;
|
|
368
|
+
city?: string | undefined;
|
|
369
|
+
postal_code?: string | undefined;
|
|
370
|
+
country?: string | undefined;
|
|
371
|
+
} | undefined;
|
|
372
|
+
}[]>;
|
|
373
|
+
getOrders(params: {
|
|
374
|
+
date_from: string;
|
|
375
|
+
date_to: string;
|
|
376
|
+
location_id?: string | undefined;
|
|
377
|
+
state?: "closed" | "consumed" | undefined;
|
|
378
|
+
}): import("../types/api").RequestData<{
|
|
379
|
+
id: string;
|
|
380
|
+
source_ref: {
|
|
328
381
|
id?: string | undefined;
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
382
|
+
model?: string | undefined;
|
|
383
|
+
};
|
|
384
|
+
order_number?: string | undefined;
|
|
385
|
+
creation_date: string;
|
|
386
|
+
closing_date?: string | undefined;
|
|
387
|
+
service_date?: string | undefined;
|
|
388
|
+
device_id?: string | undefined;
|
|
389
|
+
total: number;
|
|
390
|
+
tax_amount: number;
|
|
391
|
+
total_discount?: number | undefined;
|
|
392
|
+
total_refund?: number | undefined;
|
|
393
|
+
total_tip?: number | undefined;
|
|
337
394
|
currency?: string | undefined;
|
|
338
395
|
country?: string | undefined;
|
|
339
396
|
loyalty?: number | undefined;
|
|
@@ -344,9 +401,68 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
344
401
|
tax_amount: number;
|
|
345
402
|
total: number;
|
|
346
403
|
}[] | undefined;
|
|
404
|
+
items: {
|
|
405
|
+
id: string;
|
|
406
|
+
source_ref: {
|
|
407
|
+
id?: string | undefined;
|
|
408
|
+
model?: string | undefined;
|
|
409
|
+
};
|
|
410
|
+
quantity: number;
|
|
411
|
+
unit_price: number;
|
|
412
|
+
total: number;
|
|
413
|
+
tax_amount: number;
|
|
414
|
+
tax_rate?: number | undefined;
|
|
415
|
+
description?: string | undefined;
|
|
416
|
+
discounts?: {
|
|
417
|
+
name?: string | undefined;
|
|
418
|
+
total: number;
|
|
419
|
+
}[] | undefined;
|
|
420
|
+
product_id?: string | undefined;
|
|
421
|
+
accounting_category_id?: string | undefined;
|
|
422
|
+
}[];
|
|
423
|
+
service_id?: string | undefined;
|
|
424
|
+
}[]>;
|
|
425
|
+
getPaymentMethods(params?: {
|
|
426
|
+
location_id?: string | undefined;
|
|
427
|
+
} | undefined): import("../types/api").RequestData<{
|
|
428
|
+
id: string;
|
|
429
|
+
source_ref: {
|
|
430
|
+
id?: string | undefined;
|
|
431
|
+
model?: string | undefined;
|
|
432
|
+
};
|
|
433
|
+
name: string;
|
|
434
|
+
extra?: string | undefined;
|
|
435
|
+
ledger_account_code?: string | undefined;
|
|
436
|
+
}[]>;
|
|
437
|
+
getClosure(date: string, params?: {
|
|
438
|
+
location_id?: string | undefined;
|
|
439
|
+
} | undefined): import("../types/api").RequestData<{
|
|
440
|
+
date: string;
|
|
441
|
+
status: "open" | "closed";
|
|
347
442
|
}>;
|
|
443
|
+
getPayments(params: {
|
|
444
|
+
date_from: string;
|
|
445
|
+
date_to: string;
|
|
446
|
+
}): import("../types/api").RequestData<{
|
|
447
|
+
id?: string | undefined;
|
|
448
|
+
source_ref: {
|
|
449
|
+
id?: string | undefined;
|
|
450
|
+
model?: string | undefined;
|
|
451
|
+
};
|
|
452
|
+
payment_method_id?: string | undefined;
|
|
453
|
+
payment_method_name?: string | undefined;
|
|
454
|
+
total: number;
|
|
455
|
+
tip?: number | undefined;
|
|
456
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
457
|
+
currency?: string | undefined;
|
|
458
|
+
date?: string | undefined;
|
|
459
|
+
}[]>;
|
|
348
460
|
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
349
461
|
id: string;
|
|
462
|
+
source_ref: {
|
|
463
|
+
id?: string | undefined;
|
|
464
|
+
model?: string | undefined;
|
|
465
|
+
};
|
|
350
466
|
name: string;
|
|
351
467
|
id_parent?: string | undefined;
|
|
352
468
|
code?: string | undefined;
|
|
@@ -831,6 +947,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
831
947
|
iban: string;
|
|
832
948
|
};
|
|
833
949
|
} | undefined;
|
|
950
|
+
shipping_country?: string | undefined;
|
|
834
951
|
lines: {
|
|
835
952
|
line_number?: number | undefined;
|
|
836
953
|
description: string;
|
|
@@ -927,6 +1044,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
927
1044
|
iban: string;
|
|
928
1045
|
};
|
|
929
1046
|
} | undefined;
|
|
1047
|
+
shipping_country?: string | undefined;
|
|
930
1048
|
lines: {
|
|
931
1049
|
line_number?: number | undefined;
|
|
932
1050
|
description: string;
|
|
@@ -1788,6 +1906,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1788
1906
|
id: string;
|
|
1789
1907
|
name: string;
|
|
1790
1908
|
selected?: boolean | undefined;
|
|
1909
|
+
vat?: string | undefined;
|
|
1910
|
+
company_number?: string | undefined;
|
|
1791
1911
|
}[]>;
|
|
1792
1912
|
}>;
|
|
1793
1913
|
invoicing: import("../types/api").ApiFor<{
|
|
@@ -2517,6 +2637,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2517
2637
|
date_to?: string | undefined;
|
|
2518
2638
|
updated_after?: string | undefined;
|
|
2519
2639
|
include_detailed_refunds?: "true" | "false" | undefined;
|
|
2640
|
+
include_product_categories?: "true" | "false" | undefined;
|
|
2520
2641
|
} | undefined): import("../types/api").RequestData<{
|
|
2521
2642
|
id: string;
|
|
2522
2643
|
source_ref: {
|
|
@@ -2563,8 +2684,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2563
2684
|
created_on?: string | undefined;
|
|
2564
2685
|
last_updated_on?: string | undefined;
|
|
2565
2686
|
confirmed_on?: string | undefined;
|
|
2687
|
+
delivery_date?: string | undefined;
|
|
2566
2688
|
cancelled_on?: string | undefined;
|
|
2567
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
2689
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
2568
2690
|
discount_amount: number;
|
|
2569
2691
|
untaxed_amount_without_fees: number;
|
|
2570
2692
|
tax_amount_without_fees: number;
|
|
@@ -2588,6 +2710,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2588
2710
|
id: string;
|
|
2589
2711
|
sku?: string | undefined;
|
|
2590
2712
|
name: string;
|
|
2713
|
+
categories?: {
|
|
2714
|
+
id: string;
|
|
2715
|
+
name: string;
|
|
2716
|
+
}[] | undefined;
|
|
2591
2717
|
} | undefined;
|
|
2592
2718
|
quantity: number;
|
|
2593
2719
|
untaxed_amount: number;
|
|
@@ -2605,6 +2731,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2605
2731
|
tax_amount: number;
|
|
2606
2732
|
total: number;
|
|
2607
2733
|
}[] | undefined;
|
|
2734
|
+
transactions?: {
|
|
2735
|
+
id: string;
|
|
2736
|
+
payment_method_id?: string | undefined;
|
|
2737
|
+
payment_method_name?: string | undefined;
|
|
2738
|
+
amount: number;
|
|
2739
|
+
status: "failed" | "pending" | "success";
|
|
2740
|
+
}[] | undefined;
|
|
2608
2741
|
}[] | undefined;
|
|
2609
2742
|
currency: string;
|
|
2610
2743
|
note?: string | undefined;
|
|
@@ -2619,6 +2752,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2619
2752
|
id: string;
|
|
2620
2753
|
sku?: string | undefined;
|
|
2621
2754
|
name: string;
|
|
2755
|
+
categories?: {
|
|
2756
|
+
id: string;
|
|
2757
|
+
name: string;
|
|
2758
|
+
}[] | undefined;
|
|
2622
2759
|
} | undefined;
|
|
2623
2760
|
quantity: number;
|
|
2624
2761
|
unit_price: number;
|
|
@@ -2754,8 +2891,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2754
2891
|
created_on?: string | undefined;
|
|
2755
2892
|
last_updated_on?: string | undefined;
|
|
2756
2893
|
confirmed_on?: string | undefined;
|
|
2894
|
+
delivery_date?: string | undefined;
|
|
2757
2895
|
cancelled_on?: string | undefined;
|
|
2758
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
2896
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
2759
2897
|
discount_amount: number;
|
|
2760
2898
|
untaxed_amount_without_fees: number;
|
|
2761
2899
|
tax_amount_without_fees: number;
|
|
@@ -2779,6 +2917,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2779
2917
|
id: string;
|
|
2780
2918
|
sku?: string | undefined;
|
|
2781
2919
|
name: string;
|
|
2920
|
+
categories?: {
|
|
2921
|
+
id: string;
|
|
2922
|
+
name: string;
|
|
2923
|
+
}[] | undefined;
|
|
2782
2924
|
} | undefined;
|
|
2783
2925
|
quantity: number;
|
|
2784
2926
|
untaxed_amount: number;
|
|
@@ -2796,6 +2938,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2796
2938
|
tax_amount: number;
|
|
2797
2939
|
total: number;
|
|
2798
2940
|
}[] | undefined;
|
|
2941
|
+
transactions?: {
|
|
2942
|
+
id: string;
|
|
2943
|
+
payment_method_id?: string | undefined;
|
|
2944
|
+
payment_method_name?: string | undefined;
|
|
2945
|
+
amount: number;
|
|
2946
|
+
status: "failed" | "pending" | "success";
|
|
2947
|
+
}[] | undefined;
|
|
2799
2948
|
}[] | undefined;
|
|
2800
2949
|
currency: string;
|
|
2801
2950
|
note?: string | undefined;
|
|
@@ -2810,6 +2959,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2810
2959
|
id: string;
|
|
2811
2960
|
sku?: string | undefined;
|
|
2812
2961
|
name: string;
|
|
2962
|
+
categories?: {
|
|
2963
|
+
id: string;
|
|
2964
|
+
name: string;
|
|
2965
|
+
}[] | undefined;
|
|
2813
2966
|
} | undefined;
|
|
2814
2967
|
quantity: number;
|
|
2815
2968
|
unit_price: number;
|
|
@@ -2904,8 +3057,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2904
3057
|
created_on?: string | undefined;
|
|
2905
3058
|
last_updated_on?: string | undefined;
|
|
2906
3059
|
confirmed_on?: string | undefined;
|
|
3060
|
+
delivery_date?: string | undefined;
|
|
2907
3061
|
cancelled_on?: string | undefined;
|
|
2908
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
3062
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
2909
3063
|
discount_amount: number;
|
|
2910
3064
|
untaxed_amount_without_fees: number;
|
|
2911
3065
|
tax_amount_without_fees: number;
|
|
@@ -2929,6 +3083,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2929
3083
|
id: string;
|
|
2930
3084
|
sku?: string | undefined;
|
|
2931
3085
|
name: string;
|
|
3086
|
+
categories?: {
|
|
3087
|
+
id: string;
|
|
3088
|
+
name: string;
|
|
3089
|
+
}[] | undefined;
|
|
2932
3090
|
} | undefined;
|
|
2933
3091
|
quantity: number;
|
|
2934
3092
|
untaxed_amount: number;
|
|
@@ -2946,6 +3104,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2946
3104
|
tax_amount: number;
|
|
2947
3105
|
total: number;
|
|
2948
3106
|
}[] | undefined;
|
|
3107
|
+
transactions?: {
|
|
3108
|
+
id: string;
|
|
3109
|
+
payment_method_id?: string | undefined;
|
|
3110
|
+
payment_method_name?: string | undefined;
|
|
3111
|
+
amount: number;
|
|
3112
|
+
status: "failed" | "pending" | "success";
|
|
3113
|
+
}[] | undefined;
|
|
2949
3114
|
}[] | undefined;
|
|
2950
3115
|
currency: string;
|
|
2951
3116
|
note?: string | undefined;
|
|
@@ -2960,6 +3125,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2960
3125
|
id: string;
|
|
2961
3126
|
sku?: string | undefined;
|
|
2962
3127
|
name: string;
|
|
3128
|
+
categories?: {
|
|
3129
|
+
id: string;
|
|
3130
|
+
name: string;
|
|
3131
|
+
}[] | undefined;
|
|
2963
3132
|
} | undefined;
|
|
2964
3133
|
quantity: number;
|
|
2965
3134
|
unit_price: number;
|
|
@@ -11,6 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Consumer = void 0;
|
|
13
13
|
const pos_1 = require("./pos");
|
|
14
|
+
const pms_1 = require("./pms");
|
|
14
15
|
const openapi_1 = require("../helpers/openapi");
|
|
15
16
|
const accounting_1 = require("./accounting");
|
|
16
17
|
const invoicing_1 = require("./invoicing");
|
|
@@ -24,6 +25,7 @@ const Consumer = (internalApi, body) => {
|
|
|
24
25
|
const redirect_url = data.redirect_url;
|
|
25
26
|
const email = data.email;
|
|
26
27
|
const pos = (0, openapi_1.createApiFor)(pos_1.posFactory, _internalApi, data.name, consumerId);
|
|
28
|
+
const pms = (0, openapi_1.createApiFor)(pms_1.pmsFactory, _internalApi, data.name, consumerId);
|
|
27
29
|
const accounting = (0, openapi_1.createApiFor)(accounting_1.accountingFactory, _internalApi, data.name, consumerId);
|
|
28
30
|
const invoicing = (0, openapi_1.createApiFor)(invoicing_1.invoicingFactory, _internalApi, data.name, consumerId);
|
|
29
31
|
const ecommerce = (0, openapi_1.createApiFor)(ecommerce_1.ecommerceFactory, _internalApi, data.name, consumerId);
|
|
@@ -117,6 +119,7 @@ const Consumer = (internalApi, body) => {
|
|
|
117
119
|
redirect_url,
|
|
118
120
|
email,
|
|
119
121
|
pos,
|
|
122
|
+
pms,
|
|
120
123
|
accounting,
|
|
121
124
|
invoicing,
|
|
122
125
|
ecommerce,
|