@inno_user/inno_clouds_lib 9.1.5 → 9.1.7

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.
@@ -1,5 +1,5 @@
1
1
  import { ICallStaffRequest } from './types/iRequests';
2
- import { AxiosInstance, AxiosResponse } from 'axios';
2
+ import { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
3
3
  interface ConnectionConfig {
4
4
  domain: string;
5
5
  area: string;
@@ -58,7 +58,7 @@ declare class InitConnection {
58
58
  authorizeByCard(cardNumber: string): Promise<any>;
59
59
  getLoyalSmsCode(phoneNumber: any): Promise<any>;
60
60
  sendSmsCodeForAuth(code: number, phone: number): Promise<any>;
61
- callStaff(tableId: string, reason: ICallStaffRequest['reason']): Promise<string | undefined>;
61
+ callStaff(tableId: string, payload: ICallStaffRequest, options?: AxiosRequestConfig): Promise<string | undefined>;
62
62
  createOrder(clearCartProducts_lib: any, tableTitle: any, is_requestKiosk: boolean | undefined, comment: string, is_authorized?: boolean, is_tableservice?: boolean, signal?: AbortSignal): Promise<any>;
63
63
  initPaymentLink(order: string, is_requestKiosk?: boolean): Promise<any>;
64
64
  orderPay(id: string): Promise< AxiosResponse<any, any, {}> | undefined>;
@@ -36,12 +36,19 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
36
36
  cart_loyalty_button_sticker?: string | null | undefined;
37
37
  cart_loyalty_button_text?: string | null | undefined;
38
38
  } | undefined;
39
- show_order_comment: boolean | null;
40
39
  show_nutrition_in_cart: boolean | null;
41
40
  apply_custom_size_picker_fonts: boolean | null;
42
41
  size_picker_unselected_font_size: number | null;
43
42
  size_picker_selected_font_size: number | null;
44
43
  hide_discounts_calculate_button: boolean;
44
+ comments: {
45
+ kiosk_comment_field_name?: string | undefined;
46
+ kiosk_comment_field_placeholder?: string | undefined;
47
+ kiosk_show_order_comment?: boolean | undefined;
48
+ qr_comment_field_name?: string | undefined;
49
+ qr_comment_field_placeholder?: string | undefined;
50
+ qr_show_order_comment?: boolean | undefined;
51
+ } | null;
45
52
  }, ITheme | {
46
53
  id: string;
47
54
  created_at: string | null;
@@ -76,12 +83,19 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
76
83
  cart_loyalty_button_sticker?: string | null | undefined;
77
84
  cart_loyalty_button_text?: string | null | undefined;
78
85
  } | undefined;
79
- show_order_comment: boolean | null;
80
86
  show_nutrition_in_cart: boolean | null;
81
87
  apply_custom_size_picker_fonts: boolean | null;
82
88
  size_picker_unselected_font_size: number | null;
83
89
  size_picker_selected_font_size: number | null;
84
90
  hide_discounts_calculate_button: boolean;
91
+ comments: {
92
+ kiosk_comment_field_name?: string | undefined;
93
+ kiosk_comment_field_placeholder?: string | undefined;
94
+ kiosk_show_order_comment?: boolean | undefined;
95
+ qr_comment_field_name?: string | undefined;
96
+ qr_comment_field_placeholder?: string | undefined;
97
+ qr_show_order_comment?: boolean | undefined;
98
+ } | null;
85
99
  }>;
86
100
  updateColor: (data: ITheme) => Promise<{
87
101
  id: string;
@@ -117,12 +131,19 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
117
131
  cart_loyalty_button_sticker?: string | null | undefined;
118
132
  cart_loyalty_button_text?: string | null | undefined;
119
133
  } | undefined;
120
- show_order_comment: boolean | null;
121
134
  show_nutrition_in_cart: boolean | null;
122
135
  apply_custom_size_picker_fonts: boolean | null;
123
136
  size_picker_unselected_font_size: number | null;
124
137
  size_picker_selected_font_size: number | null;
125
138
  hide_discounts_calculate_button: boolean;
139
+ comments: {
140
+ kiosk_comment_field_name?: string | undefined;
141
+ kiosk_comment_field_placeholder?: string | undefined;
142
+ kiosk_show_order_comment?: boolean | undefined;
143
+ qr_comment_field_name?: string | undefined;
144
+ qr_comment_field_placeholder?: string | undefined;
145
+ qr_show_order_comment?: boolean | undefined;
146
+ } | null;
126
147
  } | undefined>;
127
148
  }, "itemThemes">, Pick<{
128
149
  itemThemes: Ref<{
@@ -159,12 +180,19 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
159
180
  cart_loyalty_button_sticker?: string | null | undefined;
160
181
  cart_loyalty_button_text?: string | null | undefined;
161
182
  } | undefined;
162
- show_order_comment: boolean | null;
163
183
  show_nutrition_in_cart: boolean | null;
164
184
  apply_custom_size_picker_fonts: boolean | null;
165
185
  size_picker_unselected_font_size: number | null;
166
186
  size_picker_selected_font_size: number | null;
167
187
  hide_discounts_calculate_button: boolean;
188
+ comments: {
189
+ kiosk_comment_field_name?: string | undefined;
190
+ kiosk_comment_field_placeholder?: string | undefined;
191
+ kiosk_show_order_comment?: boolean | undefined;
192
+ qr_comment_field_name?: string | undefined;
193
+ qr_comment_field_placeholder?: string | undefined;
194
+ qr_show_order_comment?: boolean | undefined;
195
+ } | null;
168
196
  }, ITheme | {
169
197
  id: string;
170
198
  created_at: string | null;
@@ -199,12 +227,19 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
199
227
  cart_loyalty_button_sticker?: string | null | undefined;
200
228
  cart_loyalty_button_text?: string | null | undefined;
201
229
  } | undefined;
202
- show_order_comment: boolean | null;
203
230
  show_nutrition_in_cart: boolean | null;
204
231
  apply_custom_size_picker_fonts: boolean | null;
205
232
  size_picker_unselected_font_size: number | null;
206
233
  size_picker_selected_font_size: number | null;
207
234
  hide_discounts_calculate_button: boolean;
235
+ comments: {
236
+ kiosk_comment_field_name?: string | undefined;
237
+ kiosk_comment_field_placeholder?: string | undefined;
238
+ kiosk_show_order_comment?: boolean | undefined;
239
+ qr_comment_field_name?: string | undefined;
240
+ qr_comment_field_placeholder?: string | undefined;
241
+ qr_show_order_comment?: boolean | undefined;
242
+ } | null;
208
243
  }>;
209
244
  updateColor: (data: ITheme) => Promise<{
210
245
  id: string;
@@ -240,12 +275,19 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
240
275
  cart_loyalty_button_sticker?: string | null | undefined;
241
276
  cart_loyalty_button_text?: string | null | undefined;
242
277
  } | undefined;
243
- show_order_comment: boolean | null;
244
278
  show_nutrition_in_cart: boolean | null;
245
279
  apply_custom_size_picker_fonts: boolean | null;
246
280
  size_picker_unselected_font_size: number | null;
247
281
  size_picker_selected_font_size: number | null;
248
282
  hide_discounts_calculate_button: boolean;
283
+ comments: {
284
+ kiosk_comment_field_name?: string | undefined;
285
+ kiosk_comment_field_placeholder?: string | undefined;
286
+ kiosk_show_order_comment?: boolean | undefined;
287
+ qr_comment_field_name?: string | undefined;
288
+ qr_comment_field_placeholder?: string | undefined;
289
+ qr_show_order_comment?: boolean | undefined;
290
+ } | null;
249
291
  } | undefined>;
250
292
  }, never>, Pick<{
251
293
  itemThemes: Ref<{
@@ -282,12 +324,19 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
282
324
  cart_loyalty_button_sticker?: string | null | undefined;
283
325
  cart_loyalty_button_text?: string | null | undefined;
284
326
  } | undefined;
285
- show_order_comment: boolean | null;
286
327
  show_nutrition_in_cart: boolean | null;
287
328
  apply_custom_size_picker_fonts: boolean | null;
288
329
  size_picker_unselected_font_size: number | null;
289
330
  size_picker_selected_font_size: number | null;
290
331
  hide_discounts_calculate_button: boolean;
332
+ comments: {
333
+ kiosk_comment_field_name?: string | undefined;
334
+ kiosk_comment_field_placeholder?: string | undefined;
335
+ kiosk_show_order_comment?: boolean | undefined;
336
+ qr_comment_field_name?: string | undefined;
337
+ qr_comment_field_placeholder?: string | undefined;
338
+ qr_show_order_comment?: boolean | undefined;
339
+ } | null;
291
340
  }, ITheme | {
292
341
  id: string;
293
342
  created_at: string | null;
@@ -322,12 +371,19 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
322
371
  cart_loyalty_button_sticker?: string | null | undefined;
323
372
  cart_loyalty_button_text?: string | null | undefined;
324
373
  } | undefined;
325
- show_order_comment: boolean | null;
326
374
  show_nutrition_in_cart: boolean | null;
327
375
  apply_custom_size_picker_fonts: boolean | null;
328
376
  size_picker_unselected_font_size: number | null;
329
377
  size_picker_selected_font_size: number | null;
330
378
  hide_discounts_calculate_button: boolean;
379
+ comments: {
380
+ kiosk_comment_field_name?: string | undefined;
381
+ kiosk_comment_field_placeholder?: string | undefined;
382
+ kiosk_show_order_comment?: boolean | undefined;
383
+ qr_comment_field_name?: string | undefined;
384
+ qr_comment_field_placeholder?: string | undefined;
385
+ qr_show_order_comment?: boolean | undefined;
386
+ } | null;
331
387
  }>;
332
388
  updateColor: (data: ITheme) => Promise<{
333
389
  id: string;
@@ -363,11 +419,18 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
363
419
  cart_loyalty_button_sticker?: string | null | undefined;
364
420
  cart_loyalty_button_text?: string | null | undefined;
365
421
  } | undefined;
366
- show_order_comment: boolean | null;
367
422
  show_nutrition_in_cart: boolean | null;
368
423
  apply_custom_size_picker_fonts: boolean | null;
369
424
  size_picker_unselected_font_size: number | null;
370
425
  size_picker_selected_font_size: number | null;
371
426
  hide_discounts_calculate_button: boolean;
427
+ comments: {
428
+ kiosk_comment_field_name?: string | undefined;
429
+ kiosk_comment_field_placeholder?: string | undefined;
430
+ kiosk_show_order_comment?: boolean | undefined;
431
+ qr_comment_field_name?: string | undefined;
432
+ qr_comment_field_placeholder?: string | undefined;
433
+ qr_show_order_comment?: boolean | undefined;
434
+ } | null;
372
435
  } | undefined>;
373
436
  }, "updateColor">>;
@@ -1,6 +1,8 @@
1
- export interface ICallStaffRequest {
1
+ export type ICallStaffRequest = {
2
2
  reason: 'request_waiter' | 'request_bill' | 'request_hookah';
3
- }
3
+ } | {
4
+ button_id: string;
5
+ };
4
6
  export interface ICallStaffResponse {
5
7
  response_text: string;
6
8
  }
@@ -26,12 +26,20 @@ export interface ITheme {
26
26
  kiosk_show_loyalty_card_button: boolean | null;
27
27
  kiosk_show_loyalty_phone_input_button: boolean | null;
28
28
  cart_loyalty_button?: CardLoyalityButton;
29
- show_order_comment: boolean | null;
30
29
  show_nutrition_in_cart: boolean | null;
31
30
  apply_custom_size_picker_fonts: boolean | null;
32
31
  size_picker_unselected_font_size: number | null;
33
32
  size_picker_selected_font_size: number | null;
34
33
  hide_discounts_calculate_button: boolean;
34
+ comments: IComment | null;
35
+ }
36
+ interface IComment {
37
+ kiosk_comment_field_name?: string;
38
+ kiosk_comment_field_placeholder?: string;
39
+ kiosk_show_order_comment?: boolean;
40
+ qr_comment_field_name?: string;
41
+ qr_comment_field_placeholder?: string;
42
+ qr_show_order_comment?: boolean;
35
43
  }
36
44
  interface IGradient {
37
45
  background: string;
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.5",
4
+ "version": "9.1.7",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"