@inno_user/inno_clouds_lib 9.3.3 → 9.3.4

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.
@@ -10,8 +10,6 @@ type __VLS_Props = {
10
10
  comment: string;
11
11
  cartItems: any[];
12
12
  isAuthorized: boolean;
13
- hasRmsDiscount?: boolean;
14
- hideDiscountsButton?: boolean;
15
13
  orderId?: string | null;
16
14
  signal?: AbortSignal;
17
15
  };
@@ -10,7 +10,6 @@ interface ConnectionConfig {
10
10
  default_language: string;
11
11
  has_loyalty_default_user: string;
12
12
  loyalty: string;
13
- has_rms_discount?: boolean;
14
13
  name: string;
15
14
  quick_add_simple: string;
16
15
  supported_languages: string;
@@ -82,7 +81,11 @@ declare class InitConnection {
82
81
  organization?: string;
83
82
  }, options?: AxiosRequestConfig): Promise< AxiosResponse<any, any, {}>>;
84
83
  calculateDiscount(payload: any, is_requestKiosk?: boolean, is_authorized?: boolean, signal?: AbortSignal): Promise<any>;
85
- maxPayByBonuses(price: number, is_requestKiosk?: boolean, is_authorized?: boolean, signal?: AbortSignal): Promise<any>;
84
+ maxPayByBonuses(order_id: string, is_requestKiosk?: boolean, is_authorized?: boolean, signal?: AbortSignal): Promise<{
85
+ by_bonuses: number;
86
+ balance?: number;
87
+ non_integers_allowed: boolean;
88
+ } | undefined>;
86
89
  getDeviceInfo(): Promise<any>;
87
90
  validateApiKey(apiKey: string, options?: AxiosRequestConfig): Promise<boolean>;
88
91
  productUpsale(idProduct: string): Promise<void>;
@@ -10,8 +10,6 @@ type __VLS_Props = {
10
10
  comment: string;
11
11
  cartItems: any[];
12
12
  isAuthorized: boolean;
13
- hasRmsDiscount?: boolean;
14
- hideDiscountsButton?: boolean;
15
13
  orderId?: string | null;
16
14
  signal?: AbortSignal;
17
15
  provider: any;
@@ -21,8 +19,6 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
21
19
  }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
22
20
  onSelect?: ((providerId: string) => any) | undefined;
23
21
  }>, {
24
- hasRmsDiscount: boolean;
25
- hideDiscountsButton: boolean;
26
22
  orderId: string | null;
27
23
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
28
24
  export default _default;
@@ -21,7 +21,7 @@ export declare const useCartStore: StoreDefinition<"cartLib", Pick<{
21
21
  isDrawerOpen: Ref<boolean, boolean>;
22
22
  currentState: Ref<"wait" | "success" | "not_found", "wait" | "success" | "not_found">;
23
23
  isAuthorized: ComputedRef<boolean>;
24
- discountBtn: Ref<boolean, boolean>;
24
+ isCreateButtonVisible: Ref<boolean, boolean>;
25
25
  linkQR: Ref<string, string>;
26
26
  orderTypes: WritableComputedRef<{
27
27
  id: string;
@@ -53,7 +53,7 @@ export declare const useCartStore: StoreDefinition<"cartLib", Pick<{
53
53
  } | null;
54
54
  getCurrentPaymentMethodId: () => string | null;
55
55
  getAvailablePaymentMethods: (context: PaymentContext) => string[];
56
- }, "error" | "count" | "is_notification_lib" | "notificationData_lib" | "isButtonDisabled" | "orderCompleted_lib" | "extraDiscount" | "orderNumber" | "textPaymentBtn_lib" | "guestInfo" | "isDrawerOpen" | "currentState" | "discountBtn" | "linkQR" | "providerTypes" | "is_paymentCart" | "selectedOrderType" | "selectedProvider" | "configPayment" | "paymentCostQR">, Pick<{
56
+ }, "error" | "count" | "is_notification_lib" | "notificationData_lib" | "isButtonDisabled" | "orderCompleted_lib" | "extraDiscount" | "orderNumber" | "textPaymentBtn_lib" | "guestInfo" | "isDrawerOpen" | "currentState" | "isCreateButtonVisible" | "linkQR" | "providerTypes" | "is_paymentCart" | "selectedOrderType" | "selectedProvider" | "configPayment" | "paymentCostQR">, Pick<{
57
57
  isButtonDisabled: Ref<boolean, boolean>;
58
58
  orderCompleted_lib: Ref<number | null, number | null>;
59
59
  extraDiscount: Ref<number, number>;
@@ -73,7 +73,7 @@ export declare const useCartStore: StoreDefinition<"cartLib", Pick<{
73
73
  isDrawerOpen: Ref<boolean, boolean>;
74
74
  currentState: Ref<"wait" | "success" | "not_found", "wait" | "success" | "not_found">;
75
75
  isAuthorized: ComputedRef<boolean>;
76
- discountBtn: Ref<boolean, boolean>;
76
+ isCreateButtonVisible: Ref<boolean, boolean>;
77
77
  linkQR: Ref<string, string>;
78
78
  orderTypes: WritableComputedRef<{
79
79
  id: string;
@@ -125,7 +125,7 @@ export declare const useCartStore: StoreDefinition<"cartLib", Pick<{
125
125
  isDrawerOpen: Ref<boolean, boolean>;
126
126
  currentState: Ref<"wait" | "success" | "not_found", "wait" | "success" | "not_found">;
127
127
  isAuthorized: ComputedRef<boolean>;
128
- discountBtn: Ref<boolean, boolean>;
128
+ isCreateButtonVisible: Ref<boolean, boolean>;
129
129
  linkQR: Ref<string, string>;
130
130
  orderTypes: WritableComputedRef<{
131
131
  id: string;
@@ -47,7 +47,6 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
47
47
  apply_custom_size_picker_fonts: boolean | null;
48
48
  size_picker_unselected_font_size: number | null;
49
49
  size_picker_selected_font_size: number | null;
50
- hide_discounts_calculate_button: boolean;
51
50
  comments: {
52
51
  kiosk_comment_field_name?: string | undefined;
53
52
  kiosk_comment_field_placeholder?: string | undefined;
@@ -107,7 +106,6 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
107
106
  apply_custom_size_picker_fonts: boolean | null;
108
107
  size_picker_unselected_font_size: number | null;
109
108
  size_picker_selected_font_size: number | null;
110
- hide_discounts_calculate_button: boolean;
111
109
  comments: {
112
110
  kiosk_comment_field_name?: string | undefined;
113
111
  kiosk_comment_field_placeholder?: string | undefined;
@@ -168,7 +166,6 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
168
166
  apply_custom_size_picker_fonts: boolean | null;
169
167
  size_picker_unselected_font_size: number | null;
170
168
  size_picker_selected_font_size: number | null;
171
- hide_discounts_calculate_button: boolean;
172
169
  comments: {
173
170
  kiosk_comment_field_name?: string | undefined;
174
171
  kiosk_comment_field_placeholder?: string | undefined;
@@ -230,7 +227,6 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
230
227
  apply_custom_size_picker_fonts: boolean | null;
231
228
  size_picker_unselected_font_size: number | null;
232
229
  size_picker_selected_font_size: number | null;
233
- hide_discounts_calculate_button: boolean;
234
230
  comments: {
235
231
  kiosk_comment_field_name?: string | undefined;
236
232
  kiosk_comment_field_placeholder?: string | undefined;
@@ -290,7 +286,6 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
290
286
  apply_custom_size_picker_fonts: boolean | null;
291
287
  size_picker_unselected_font_size: number | null;
292
288
  size_picker_selected_font_size: number | null;
293
- hide_discounts_calculate_button: boolean;
294
289
  comments: {
295
290
  kiosk_comment_field_name?: string | undefined;
296
291
  kiosk_comment_field_placeholder?: string | undefined;
@@ -351,7 +346,6 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
351
346
  apply_custom_size_picker_fonts: boolean | null;
352
347
  size_picker_unselected_font_size: number | null;
353
348
  size_picker_selected_font_size: number | null;
354
- hide_discounts_calculate_button: boolean;
355
349
  comments: {
356
350
  kiosk_comment_field_name?: string | undefined;
357
351
  kiosk_comment_field_placeholder?: string | undefined;
@@ -413,7 +407,6 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
413
407
  apply_custom_size_picker_fonts: boolean | null;
414
408
  size_picker_unselected_font_size: number | null;
415
409
  size_picker_selected_font_size: number | null;
416
- hide_discounts_calculate_button: boolean;
417
410
  comments: {
418
411
  kiosk_comment_field_name?: string | undefined;
419
412
  kiosk_comment_field_placeholder?: string | undefined;
@@ -473,7 +466,6 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
473
466
  apply_custom_size_picker_fonts: boolean | null;
474
467
  size_picker_unselected_font_size: number | null;
475
468
  size_picker_selected_font_size: number | null;
476
- hide_discounts_calculate_button: boolean;
477
469
  comments: {
478
470
  kiosk_comment_field_name?: string | undefined;
479
471
  kiosk_comment_field_placeholder?: string | undefined;
@@ -534,7 +526,6 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
534
526
  apply_custom_size_picker_fonts: boolean | null;
535
527
  size_picker_unselected_font_size: number | null;
536
528
  size_picker_selected_font_size: number | null;
537
- hide_discounts_calculate_button: boolean;
538
529
  comments: {
539
530
  kiosk_comment_field_name?: string | undefined;
540
531
  kiosk_comment_field_placeholder?: string | undefined;
@@ -37,7 +37,6 @@ export interface ITheme {
37
37
  apply_custom_size_picker_fonts: boolean | null;
38
38
  size_picker_unselected_font_size: number | null;
39
39
  size_picker_selected_font_size: number | null;
40
- hide_discounts_calculate_button: boolean;
41
40
  comments: IComment | null;
42
41
  pdf_return_url: boolean | null;
43
42
  kiosk_hide_manual_input_loyalty_card: null;
@@ -43,7 +43,6 @@ export interface PaymentConfig {
43
43
  navigation?: PaymentNavigationService;
44
44
  closeWebSocket?: () => void;
45
45
  area?: string;
46
- has_rms_discount?: boolean;
47
46
  totalPrice?: any;
48
47
  initialCartPrice?: any;
49
48
  signal?: AbortSignal;
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.3.3",
4
+ "version": "9.3.4",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"