@inno_user/inno_clouds_lib 9.1.12 → 9.2.1
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/dist/@inno_user/inno_clouds_lib.css +1 -1
- package/dist/@inno_user/inno_clouds_lib.es.js +4943 -3601
- package/dist/@inno_user/inno_clouds_lib.umd.js +11 -6
- package/dist/assets/iconsDynamic/qr_phone.vue.d.ts +3 -0
- package/dist/assets/iconsDynamic/qr_scanner_tutor.vue.d.ts +3 -0
- package/dist/components/cardReader/CardReader.vue.d.ts +0 -1
- package/dist/components/cartPayment/CartPayment.vue.d.ts +23 -0
- package/dist/composables/useCreateOrder.d.ts +18 -0
- package/dist/payment/PaymentMethodRegistry.d.ts +19 -0
- package/dist/payment/handlers/basePaymentHandler.d.ts +48 -0
- package/dist/payment/handlers/sbpHandler.d.ts +2 -0
- package/dist/payment/handlers/terminalHandler.d.ts +2 -0
- package/dist/payment/handlers/youkassaHandler.d.ts +2 -0
- package/dist/payment/services/CartCleanupService.d.ts +3 -0
- package/dist/payment/services/PaymentErrorHandler.d.ts +2 -0
- package/dist/payment/services/PaymentNavigationService.d.ts +3 -0
- package/dist/requests.d.ts +1 -1
- package/dist/semantics/paymentBoxes/PaymentBoxes.vue.d.ts +28 -0
- package/dist/store/card.d.ts +90 -0
- package/dist/store/cart.d.ts +45 -14
- package/dist/store/main.d.ts +24 -0
- package/dist/store/theme.d.ts +27 -0
- package/dist/types/iCardProduct.d.ts +3 -0
- package/dist/types/iTheme.d.ts +3 -0
- package/dist/types/payment.d.ts +134 -0
- package/dist/ui/cartComplete/completedQRCode/CompletedQRCode.vue.d.ts +3 -0
- package/package.json +2 -1
package/dist/store/main.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
|
|
|
51
51
|
price?: number | undefined;
|
|
52
52
|
} | null | undefined;
|
|
53
53
|
is_fake?: boolean | undefined;
|
|
54
|
+
is_od_united_product?: boolean | undefined;
|
|
54
55
|
}[];
|
|
55
56
|
group_modifiers: {
|
|
56
57
|
id: string;
|
|
@@ -90,8 +91,10 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
|
|
|
90
91
|
price?: number | undefined;
|
|
91
92
|
} | null | undefined;
|
|
92
93
|
is_fake?: boolean | undefined;
|
|
94
|
+
is_od_united_product?: boolean | undefined;
|
|
93
95
|
}[];
|
|
94
96
|
is_fake?: boolean | undefined;
|
|
97
|
+
is_od_united_product?: boolean | undefined;
|
|
95
98
|
}[];
|
|
96
99
|
energy_amount?: number | undefined;
|
|
97
100
|
proteins_amount?: number | undefined;
|
|
@@ -108,6 +111,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
|
|
|
108
111
|
show_recommendations: boolean;
|
|
109
112
|
adult?: boolean | undefined;
|
|
110
113
|
is_fake?: boolean | undefined;
|
|
114
|
+
is_od_united_product?: boolean | undefined;
|
|
111
115
|
}[], IProduct[] | {
|
|
112
116
|
id: string;
|
|
113
117
|
idSystem: string;
|
|
@@ -157,6 +161,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
|
|
|
157
161
|
price?: number | undefined;
|
|
158
162
|
} | null | undefined;
|
|
159
163
|
is_fake?: boolean | undefined;
|
|
164
|
+
is_od_united_product?: boolean | undefined;
|
|
160
165
|
}[];
|
|
161
166
|
group_modifiers: {
|
|
162
167
|
id: string;
|
|
@@ -196,8 +201,10 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
|
|
|
196
201
|
price?: number | undefined;
|
|
197
202
|
} | null | undefined;
|
|
198
203
|
is_fake?: boolean | undefined;
|
|
204
|
+
is_od_united_product?: boolean | undefined;
|
|
199
205
|
}[];
|
|
200
206
|
is_fake?: boolean | undefined;
|
|
207
|
+
is_od_united_product?: boolean | undefined;
|
|
201
208
|
}[];
|
|
202
209
|
energy_amount?: number | undefined;
|
|
203
210
|
proteins_amount?: number | undefined;
|
|
@@ -214,6 +221,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
|
|
|
214
221
|
show_recommendations: boolean;
|
|
215
222
|
adult?: boolean | undefined;
|
|
216
223
|
is_fake?: boolean | undefined;
|
|
224
|
+
is_od_united_product?: boolean | undefined;
|
|
217
225
|
}[]>;
|
|
218
226
|
activeScrolling_lib: Ref<HTMLElement[], HTMLElement[]>;
|
|
219
227
|
config_lib: Ref<any, any>;
|
|
@@ -308,6 +316,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
|
|
|
308
316
|
price?: number | undefined;
|
|
309
317
|
} | null | undefined;
|
|
310
318
|
is_fake?: boolean | undefined;
|
|
319
|
+
is_od_united_product?: boolean | undefined;
|
|
311
320
|
}[];
|
|
312
321
|
group_modifiers: {
|
|
313
322
|
id: string;
|
|
@@ -347,8 +356,10 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
|
|
|
347
356
|
price?: number | undefined;
|
|
348
357
|
} | null | undefined;
|
|
349
358
|
is_fake?: boolean | undefined;
|
|
359
|
+
is_od_united_product?: boolean | undefined;
|
|
350
360
|
}[];
|
|
351
361
|
is_fake?: boolean | undefined;
|
|
362
|
+
is_od_united_product?: boolean | undefined;
|
|
352
363
|
}[];
|
|
353
364
|
energy_amount?: number | undefined;
|
|
354
365
|
proteins_amount?: number | undefined;
|
|
@@ -365,6 +376,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
|
|
|
365
376
|
show_recommendations: boolean;
|
|
366
377
|
adult?: boolean | undefined;
|
|
367
378
|
is_fake?: boolean | undefined;
|
|
379
|
+
is_od_united_product?: boolean | undefined;
|
|
368
380
|
}[], IProduct[] | {
|
|
369
381
|
id: string;
|
|
370
382
|
idSystem: string;
|
|
@@ -414,6 +426,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
|
|
|
414
426
|
price?: number | undefined;
|
|
415
427
|
} | null | undefined;
|
|
416
428
|
is_fake?: boolean | undefined;
|
|
429
|
+
is_od_united_product?: boolean | undefined;
|
|
417
430
|
}[];
|
|
418
431
|
group_modifiers: {
|
|
419
432
|
id: string;
|
|
@@ -453,8 +466,10 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
|
|
|
453
466
|
price?: number | undefined;
|
|
454
467
|
} | null | undefined;
|
|
455
468
|
is_fake?: boolean | undefined;
|
|
469
|
+
is_od_united_product?: boolean | undefined;
|
|
456
470
|
}[];
|
|
457
471
|
is_fake?: boolean | undefined;
|
|
472
|
+
is_od_united_product?: boolean | undefined;
|
|
458
473
|
}[];
|
|
459
474
|
energy_amount?: number | undefined;
|
|
460
475
|
proteins_amount?: number | undefined;
|
|
@@ -471,6 +486,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
|
|
|
471
486
|
show_recommendations: boolean;
|
|
472
487
|
adult?: boolean | undefined;
|
|
473
488
|
is_fake?: boolean | undefined;
|
|
489
|
+
is_od_united_product?: boolean | undefined;
|
|
474
490
|
}[]>;
|
|
475
491
|
activeScrolling_lib: Ref<HTMLElement[], HTMLElement[]>;
|
|
476
492
|
config_lib: Ref<any, any>;
|
|
@@ -565,6 +581,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
|
|
|
565
581
|
price?: number | undefined;
|
|
566
582
|
} | null | undefined;
|
|
567
583
|
is_fake?: boolean | undefined;
|
|
584
|
+
is_od_united_product?: boolean | undefined;
|
|
568
585
|
}[];
|
|
569
586
|
group_modifiers: {
|
|
570
587
|
id: string;
|
|
@@ -604,8 +621,10 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
|
|
|
604
621
|
price?: number | undefined;
|
|
605
622
|
} | null | undefined;
|
|
606
623
|
is_fake?: boolean | undefined;
|
|
624
|
+
is_od_united_product?: boolean | undefined;
|
|
607
625
|
}[];
|
|
608
626
|
is_fake?: boolean | undefined;
|
|
627
|
+
is_od_united_product?: boolean | undefined;
|
|
609
628
|
}[];
|
|
610
629
|
energy_amount?: number | undefined;
|
|
611
630
|
proteins_amount?: number | undefined;
|
|
@@ -622,6 +641,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
|
|
|
622
641
|
show_recommendations: boolean;
|
|
623
642
|
adult?: boolean | undefined;
|
|
624
643
|
is_fake?: boolean | undefined;
|
|
644
|
+
is_od_united_product?: boolean | undefined;
|
|
625
645
|
}[], IProduct[] | {
|
|
626
646
|
id: string;
|
|
627
647
|
idSystem: string;
|
|
@@ -671,6 +691,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
|
|
|
671
691
|
price?: number | undefined;
|
|
672
692
|
} | null | undefined;
|
|
673
693
|
is_fake?: boolean | undefined;
|
|
694
|
+
is_od_united_product?: boolean | undefined;
|
|
674
695
|
}[];
|
|
675
696
|
group_modifiers: {
|
|
676
697
|
id: string;
|
|
@@ -710,8 +731,10 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
|
|
|
710
731
|
price?: number | undefined;
|
|
711
732
|
} | null | undefined;
|
|
712
733
|
is_fake?: boolean | undefined;
|
|
734
|
+
is_od_united_product?: boolean | undefined;
|
|
713
735
|
}[];
|
|
714
736
|
is_fake?: boolean | undefined;
|
|
737
|
+
is_od_united_product?: boolean | undefined;
|
|
715
738
|
}[];
|
|
716
739
|
energy_amount?: number | undefined;
|
|
717
740
|
proteins_amount?: number | undefined;
|
|
@@ -728,6 +751,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
|
|
|
728
751
|
show_recommendations: boolean;
|
|
729
752
|
adult?: boolean | undefined;
|
|
730
753
|
is_fake?: boolean | undefined;
|
|
754
|
+
is_od_united_product?: boolean | undefined;
|
|
731
755
|
}[]>;
|
|
732
756
|
activeScrolling_lib: Ref<HTMLElement[], HTMLElement[]>;
|
|
733
757
|
config_lib: Ref<any, any>;
|
package/dist/store/theme.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
11
11
|
accent_light_color: string | null;
|
|
12
12
|
accent_dark_color: string | null;
|
|
13
13
|
bg_button_color: string | null;
|
|
14
|
+
bonuses_button_name?: string | undefined;
|
|
14
15
|
inactive_button_color: string | null;
|
|
15
16
|
cards_color: string | null;
|
|
16
17
|
text_color: string | null;
|
|
@@ -19,6 +20,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
19
20
|
splash_image_url: string | null;
|
|
20
21
|
splash_video: string | null;
|
|
21
22
|
splash_duration: 0;
|
|
23
|
+
kiosk_qr_payment_timeout: number | null;
|
|
22
24
|
splash_type: string | null;
|
|
23
25
|
fallback_image: string | null;
|
|
24
26
|
adult_disclaimer_text: string | null;
|
|
@@ -50,6 +52,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
50
52
|
qr_comment_field_placeholder?: string | undefined;
|
|
51
53
|
qr_show_order_comment?: boolean | undefined;
|
|
52
54
|
} | null;
|
|
55
|
+
kiosk_hide_manual_input_loyalty_card: null;
|
|
53
56
|
}, ITheme | {
|
|
54
57
|
id: string;
|
|
55
58
|
created_at: string | null;
|
|
@@ -59,6 +62,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
59
62
|
accent_light_color: string | null;
|
|
60
63
|
accent_dark_color: string | null;
|
|
61
64
|
bg_button_color: string | null;
|
|
65
|
+
bonuses_button_name?: string | undefined;
|
|
62
66
|
inactive_button_color: string | null;
|
|
63
67
|
cards_color: string | null;
|
|
64
68
|
text_color: string | null;
|
|
@@ -67,6 +71,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
67
71
|
splash_image_url: string | null;
|
|
68
72
|
splash_video: string | null;
|
|
69
73
|
splash_duration: 0;
|
|
74
|
+
kiosk_qr_payment_timeout: number | null;
|
|
70
75
|
splash_type: string | null;
|
|
71
76
|
fallback_image: string | null;
|
|
72
77
|
adult_disclaimer_text: string | null;
|
|
@@ -98,6 +103,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
98
103
|
qr_comment_field_placeholder?: string | undefined;
|
|
99
104
|
qr_show_order_comment?: boolean | undefined;
|
|
100
105
|
} | null;
|
|
106
|
+
kiosk_hide_manual_input_loyalty_card: null;
|
|
101
107
|
}>;
|
|
102
108
|
updateColor: (data: ITheme) => Promise<{
|
|
103
109
|
id: string;
|
|
@@ -108,6 +114,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
108
114
|
accent_light_color: string | null;
|
|
109
115
|
accent_dark_color: string | null;
|
|
110
116
|
bg_button_color: string | null;
|
|
117
|
+
bonuses_button_name?: string | undefined;
|
|
111
118
|
inactive_button_color: string | null;
|
|
112
119
|
cards_color: string | null;
|
|
113
120
|
text_color: string | null;
|
|
@@ -116,6 +123,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
116
123
|
splash_image_url: string | null;
|
|
117
124
|
splash_video: string | null;
|
|
118
125
|
splash_duration: 0;
|
|
126
|
+
kiosk_qr_payment_timeout: number | null;
|
|
119
127
|
splash_type: string | null;
|
|
120
128
|
fallback_image: string | null;
|
|
121
129
|
adult_disclaimer_text: string | null;
|
|
@@ -147,6 +155,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
147
155
|
qr_comment_field_placeholder?: string | undefined;
|
|
148
156
|
qr_show_order_comment?: boolean | undefined;
|
|
149
157
|
} | null;
|
|
158
|
+
kiosk_hide_manual_input_loyalty_card: null;
|
|
150
159
|
} | undefined>;
|
|
151
160
|
}, "itemThemes">, Pick<{
|
|
152
161
|
itemThemes: Ref<{
|
|
@@ -158,6 +167,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
158
167
|
accent_light_color: string | null;
|
|
159
168
|
accent_dark_color: string | null;
|
|
160
169
|
bg_button_color: string | null;
|
|
170
|
+
bonuses_button_name?: string | undefined;
|
|
161
171
|
inactive_button_color: string | null;
|
|
162
172
|
cards_color: string | null;
|
|
163
173
|
text_color: string | null;
|
|
@@ -166,6 +176,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
166
176
|
splash_image_url: string | null;
|
|
167
177
|
splash_video: string | null;
|
|
168
178
|
splash_duration: 0;
|
|
179
|
+
kiosk_qr_payment_timeout: number | null;
|
|
169
180
|
splash_type: string | null;
|
|
170
181
|
fallback_image: string | null;
|
|
171
182
|
adult_disclaimer_text: string | null;
|
|
@@ -197,6 +208,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
197
208
|
qr_comment_field_placeholder?: string | undefined;
|
|
198
209
|
qr_show_order_comment?: boolean | undefined;
|
|
199
210
|
} | null;
|
|
211
|
+
kiosk_hide_manual_input_loyalty_card: null;
|
|
200
212
|
}, ITheme | {
|
|
201
213
|
id: string;
|
|
202
214
|
created_at: string | null;
|
|
@@ -206,6 +218,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
206
218
|
accent_light_color: string | null;
|
|
207
219
|
accent_dark_color: string | null;
|
|
208
220
|
bg_button_color: string | null;
|
|
221
|
+
bonuses_button_name?: string | undefined;
|
|
209
222
|
inactive_button_color: string | null;
|
|
210
223
|
cards_color: string | null;
|
|
211
224
|
text_color: string | null;
|
|
@@ -214,6 +227,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
214
227
|
splash_image_url: string | null;
|
|
215
228
|
splash_video: string | null;
|
|
216
229
|
splash_duration: 0;
|
|
230
|
+
kiosk_qr_payment_timeout: number | null;
|
|
217
231
|
splash_type: string | null;
|
|
218
232
|
fallback_image: string | null;
|
|
219
233
|
adult_disclaimer_text: string | null;
|
|
@@ -245,6 +259,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
245
259
|
qr_comment_field_placeholder?: string | undefined;
|
|
246
260
|
qr_show_order_comment?: boolean | undefined;
|
|
247
261
|
} | null;
|
|
262
|
+
kiosk_hide_manual_input_loyalty_card: null;
|
|
248
263
|
}>;
|
|
249
264
|
updateColor: (data: ITheme) => Promise<{
|
|
250
265
|
id: string;
|
|
@@ -255,6 +270,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
255
270
|
accent_light_color: string | null;
|
|
256
271
|
accent_dark_color: string | null;
|
|
257
272
|
bg_button_color: string | null;
|
|
273
|
+
bonuses_button_name?: string | undefined;
|
|
258
274
|
inactive_button_color: string | null;
|
|
259
275
|
cards_color: string | null;
|
|
260
276
|
text_color: string | null;
|
|
@@ -263,6 +279,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
263
279
|
splash_image_url: string | null;
|
|
264
280
|
splash_video: string | null;
|
|
265
281
|
splash_duration: 0;
|
|
282
|
+
kiosk_qr_payment_timeout: number | null;
|
|
266
283
|
splash_type: string | null;
|
|
267
284
|
fallback_image: string | null;
|
|
268
285
|
adult_disclaimer_text: string | null;
|
|
@@ -294,6 +311,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
294
311
|
qr_comment_field_placeholder?: string | undefined;
|
|
295
312
|
qr_show_order_comment?: boolean | undefined;
|
|
296
313
|
} | null;
|
|
314
|
+
kiosk_hide_manual_input_loyalty_card: null;
|
|
297
315
|
} | undefined>;
|
|
298
316
|
}, never>, Pick<{
|
|
299
317
|
itemThemes: Ref<{
|
|
@@ -305,6 +323,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
305
323
|
accent_light_color: string | null;
|
|
306
324
|
accent_dark_color: string | null;
|
|
307
325
|
bg_button_color: string | null;
|
|
326
|
+
bonuses_button_name?: string | undefined;
|
|
308
327
|
inactive_button_color: string | null;
|
|
309
328
|
cards_color: string | null;
|
|
310
329
|
text_color: string | null;
|
|
@@ -313,6 +332,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
313
332
|
splash_image_url: string | null;
|
|
314
333
|
splash_video: string | null;
|
|
315
334
|
splash_duration: 0;
|
|
335
|
+
kiosk_qr_payment_timeout: number | null;
|
|
316
336
|
splash_type: string | null;
|
|
317
337
|
fallback_image: string | null;
|
|
318
338
|
adult_disclaimer_text: string | null;
|
|
@@ -344,6 +364,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
344
364
|
qr_comment_field_placeholder?: string | undefined;
|
|
345
365
|
qr_show_order_comment?: boolean | undefined;
|
|
346
366
|
} | null;
|
|
367
|
+
kiosk_hide_manual_input_loyalty_card: null;
|
|
347
368
|
}, ITheme | {
|
|
348
369
|
id: string;
|
|
349
370
|
created_at: string | null;
|
|
@@ -353,6 +374,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
353
374
|
accent_light_color: string | null;
|
|
354
375
|
accent_dark_color: string | null;
|
|
355
376
|
bg_button_color: string | null;
|
|
377
|
+
bonuses_button_name?: string | undefined;
|
|
356
378
|
inactive_button_color: string | null;
|
|
357
379
|
cards_color: string | null;
|
|
358
380
|
text_color: string | null;
|
|
@@ -361,6 +383,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
361
383
|
splash_image_url: string | null;
|
|
362
384
|
splash_video: string | null;
|
|
363
385
|
splash_duration: 0;
|
|
386
|
+
kiosk_qr_payment_timeout: number | null;
|
|
364
387
|
splash_type: string | null;
|
|
365
388
|
fallback_image: string | null;
|
|
366
389
|
adult_disclaimer_text: string | null;
|
|
@@ -392,6 +415,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
392
415
|
qr_comment_field_placeholder?: string | undefined;
|
|
393
416
|
qr_show_order_comment?: boolean | undefined;
|
|
394
417
|
} | null;
|
|
418
|
+
kiosk_hide_manual_input_loyalty_card: null;
|
|
395
419
|
}>;
|
|
396
420
|
updateColor: (data: ITheme) => Promise<{
|
|
397
421
|
id: string;
|
|
@@ -402,6 +426,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
402
426
|
accent_light_color: string | null;
|
|
403
427
|
accent_dark_color: string | null;
|
|
404
428
|
bg_button_color: string | null;
|
|
429
|
+
bonuses_button_name?: string | undefined;
|
|
405
430
|
inactive_button_color: string | null;
|
|
406
431
|
cards_color: string | null;
|
|
407
432
|
text_color: string | null;
|
|
@@ -410,6 +435,7 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
410
435
|
splash_image_url: string | null;
|
|
411
436
|
splash_video: string | null;
|
|
412
437
|
splash_duration: 0;
|
|
438
|
+
kiosk_qr_payment_timeout: number | null;
|
|
413
439
|
splash_type: string | null;
|
|
414
440
|
fallback_image: string | null;
|
|
415
441
|
adult_disclaimer_text: string | null;
|
|
@@ -441,5 +467,6 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
|
|
|
441
467
|
qr_comment_field_placeholder?: string | undefined;
|
|
442
468
|
qr_show_order_comment?: boolean | undefined;
|
|
443
469
|
} | null;
|
|
470
|
+
kiosk_hide_manual_input_loyalty_card: null;
|
|
444
471
|
} | undefined>;
|
|
445
472
|
}, "updateColor">>;
|
|
@@ -27,6 +27,7 @@ export interface IProduct {
|
|
|
27
27
|
show_recommendations: boolean;
|
|
28
28
|
adult?: boolean;
|
|
29
29
|
is_fake?: boolean;
|
|
30
|
+
is_od_united_product?: boolean;
|
|
30
31
|
}
|
|
31
32
|
export interface ISizes {
|
|
32
33
|
id: string;
|
|
@@ -76,6 +77,7 @@ export interface ISelectModifiers {
|
|
|
76
77
|
sizes: ISizes[];
|
|
77
78
|
size?: ISizes | null;
|
|
78
79
|
is_fake?: boolean;
|
|
80
|
+
is_od_united_product?: boolean;
|
|
79
81
|
}
|
|
80
82
|
export interface IGroupModifiers {
|
|
81
83
|
id: string;
|
|
@@ -88,6 +90,7 @@ export interface IGroupModifiers {
|
|
|
88
90
|
image_link: null | string;
|
|
89
91
|
group_modifiers: ISelectModifiers[];
|
|
90
92
|
is_fake?: boolean;
|
|
93
|
+
is_od_united_product?: boolean;
|
|
91
94
|
}
|
|
92
95
|
export interface IGroupSelect extends IGroupModifiers {
|
|
93
96
|
index: number;
|
package/dist/types/iTheme.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export interface ITheme {
|
|
|
7
7
|
accent_light_color: string | null;
|
|
8
8
|
accent_dark_color: string | null;
|
|
9
9
|
bg_button_color: string | null;
|
|
10
|
+
bonuses_button_name?: string;
|
|
10
11
|
inactive_button_color: string | null;
|
|
11
12
|
cards_color: string | null;
|
|
12
13
|
text_color: string | null;
|
|
@@ -15,6 +16,7 @@ export interface ITheme {
|
|
|
15
16
|
splash_image_url: string | null;
|
|
16
17
|
splash_video: string | null;
|
|
17
18
|
splash_duration: 0;
|
|
19
|
+
kiosk_qr_payment_timeout: number | null;
|
|
18
20
|
splash_type: string | null;
|
|
19
21
|
fallback_image: string | null;
|
|
20
22
|
adult_disclaimer_text: string | null;
|
|
@@ -33,6 +35,7 @@ export interface ITheme {
|
|
|
33
35
|
size_picker_selected_font_size: number | null;
|
|
34
36
|
hide_discounts_calculate_button: boolean;
|
|
35
37
|
comments: IComment | null;
|
|
38
|
+
kiosk_hide_manual_input_loyalty_card: null;
|
|
36
39
|
}
|
|
37
40
|
interface IComment {
|
|
38
41
|
kiosk_comment_field_name?: string;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Типы методов оплаты
|
|
3
|
+
*/
|
|
4
|
+
export type PaymentMethod = 'SBP' | 'YOOKASSA' | 'TERMINAL';
|
|
5
|
+
/**
|
|
6
|
+
* Типы контекстов (режимов работы)
|
|
7
|
+
*/
|
|
8
|
+
export type PaymentContext = 'kiosk' | 'qr' | 'tableservice';
|
|
9
|
+
export interface PaymentHandler {
|
|
10
|
+
/**
|
|
11
|
+
* Обработка статусов WebSocket для конкретного метода оплаты
|
|
12
|
+
* @param data - Данные из WebSocket
|
|
13
|
+
* @param config - Конфигурация платежа
|
|
14
|
+
*/
|
|
15
|
+
handleWebSocketStatus(data: any, config: PaymentConfig): void;
|
|
16
|
+
}
|
|
17
|
+
export interface PaymentMethodConfig {
|
|
18
|
+
id: string;
|
|
19
|
+
method: PaymentMethod;
|
|
20
|
+
availableContexts: PaymentContext[];
|
|
21
|
+
handlerFactory: () => PaymentHandler;
|
|
22
|
+
}
|
|
23
|
+
/** Интерфейс оплаты */
|
|
24
|
+
export interface PaymentConfig {
|
|
25
|
+
context: PaymentContext;
|
|
26
|
+
method: PaymentMethod;
|
|
27
|
+
is_requestKiosk: boolean;
|
|
28
|
+
is_tableservice: boolean;
|
|
29
|
+
showNotification: (message: string) => void;
|
|
30
|
+
deleteCart: (path: string | null, clearTokens: boolean) => void;
|
|
31
|
+
resetStores: () => void;
|
|
32
|
+
redirect?: (path: string) => void;
|
|
33
|
+
updateOrderStatus?: (status: number | null) => void;
|
|
34
|
+
setOrderNumber?: (number: number) => void;
|
|
35
|
+
loadCart?: () => void;
|
|
36
|
+
resetBonuses?: () => void;
|
|
37
|
+
ws?: any;
|
|
38
|
+
router?: any;
|
|
39
|
+
route?: any;
|
|
40
|
+
orderErrors?: string[];
|
|
41
|
+
errorHandler?: PaymentErrorHandler;
|
|
42
|
+
cartCleanup: CartCleanupService;
|
|
43
|
+
navigation?: PaymentNavigationService;
|
|
44
|
+
closeWebSocket?: () => void;
|
|
45
|
+
area?: string;
|
|
46
|
+
has_rms_discount?: boolean;
|
|
47
|
+
totalPrice?: any;
|
|
48
|
+
initialCartPrice?: any;
|
|
49
|
+
signal?: AbortSignal;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Конфигурация для создания заказа и открытия WebSocket.
|
|
53
|
+
* Заказ создаётся в basePaymentHandler, сокет открывается только внутри handler.processPayment.
|
|
54
|
+
*/
|
|
55
|
+
export interface CreateOrderAndOpenSocketConfig extends PaymentConfig {
|
|
56
|
+
route: {
|
|
57
|
+
params: {
|
|
58
|
+
orgId: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
handler: PaymentHandler;
|
|
62
|
+
setButtonDisabled: (value: boolean) => void;
|
|
63
|
+
/** Вызывается при 403 в режиме киоска (очистка apiKey, показ экрана ввода ключа) */
|
|
64
|
+
on403Kiosk?: () => void;
|
|
65
|
+
}
|
|
66
|
+
/** Интерфейс ошибки */
|
|
67
|
+
export interface PaymentErrorHandler {
|
|
68
|
+
/**
|
|
69
|
+
* Обработка ошибки платежа
|
|
70
|
+
* @param error - Ошибка
|
|
71
|
+
* @param config - Конфигурация платежа
|
|
72
|
+
*/
|
|
73
|
+
handlePaymentError(error: any, config: PaymentConfig): void;
|
|
74
|
+
/**
|
|
75
|
+
* Обработка ошибки оплаты заказа
|
|
76
|
+
* @param error - Ошибка
|
|
77
|
+
* @param config - Конфигурация платежа
|
|
78
|
+
*/
|
|
79
|
+
handleOrderPayError(error: any, config: PaymentConfig): void;
|
|
80
|
+
/**
|
|
81
|
+
* Обработка ошибки заказа
|
|
82
|
+
* @param status - Статус ошибки
|
|
83
|
+
* @param config - Конфигурация платежа
|
|
84
|
+
*/
|
|
85
|
+
handleOrderError(config: PaymentConfig): void;
|
|
86
|
+
/**
|
|
87
|
+
* Обработка ошибки создания заказа: редиректы, уведомления, очистка корзины
|
|
88
|
+
* @param error - Ошибка
|
|
89
|
+
* @param config - Конфигурация создания заказа
|
|
90
|
+
*/
|
|
91
|
+
handleCreateOrderError(error: any, config: CreateOrderAndOpenSocketConfig): void;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Интерфейс для сервиса очистки корзины
|
|
95
|
+
*/
|
|
96
|
+
export interface CartCleanupService {
|
|
97
|
+
/**
|
|
98
|
+
* Очистка корзины и навигация
|
|
99
|
+
* @param path - Путь для навигации (null для отсутствия навигации)
|
|
100
|
+
* @param clearTokens - Очищать ли токены авторизации
|
|
101
|
+
*/
|
|
102
|
+
cleanupAndNavigate(path: string | null, clearTokens: boolean): void;
|
|
103
|
+
/**
|
|
104
|
+
* Очистка корзины без навигации
|
|
105
|
+
* @param clearTokens - Очищать ли токены авторизации
|
|
106
|
+
*/
|
|
107
|
+
cleanup(clearTokens: boolean): void;
|
|
108
|
+
/** Очистка токенов авторизации */
|
|
109
|
+
clearTokens(): void;
|
|
110
|
+
/** Сброс состояния сторов */
|
|
111
|
+
resetStores(): void;
|
|
112
|
+
}
|
|
113
|
+
/** Интерфейс для сервиса навигации */
|
|
114
|
+
export interface PaymentNavigationService {
|
|
115
|
+
redirectToError(): void;
|
|
116
|
+
/**
|
|
117
|
+
* Редирект на страницу успеха
|
|
118
|
+
* @param path - Дополнительный путь
|
|
119
|
+
*/
|
|
120
|
+
redirectToSuccess(path?: string): void;
|
|
121
|
+
/**
|
|
122
|
+
* Редирект на указанный путь
|
|
123
|
+
* @param path - Путь для редиректа
|
|
124
|
+
*/
|
|
125
|
+
redirect(path: string): void;
|
|
126
|
+
/**
|
|
127
|
+
* Получение пути для страницы ошибки
|
|
128
|
+
*/
|
|
129
|
+
getErrorPath(): string;
|
|
130
|
+
/**
|
|
131
|
+
* Получение пути для страницы успеха
|
|
132
|
+
*/
|
|
133
|
+
getSuccessPath(): string;
|
|
134
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
3
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inno_user/inno_clouds_lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "9.1
|
|
4
|
+
"version": "9.2.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"jwt-decode": "^4.0.0",
|
|
61
61
|
"p-limit": "^7.2.0",
|
|
62
62
|
"pinia": "^3.0.3",
|
|
63
|
+
"qrcode.vue": "^3.6.0",
|
|
63
64
|
"qrious": "^4.0.2",
|
|
64
65
|
"tinycolor2": "^1.6.0",
|
|
65
66
|
"virtua": "^0.48.2",
|