@inno_user/inno_clouds_lib 9.1.1 → 9.1.3
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 +5145 -4239
- package/dist/@inno_user/inno_clouds_lib.umd.js +6 -6
- package/dist/requests.d.ts +3 -2
- package/dist/store/cart.d.ts +3 -3
- package/dist/utils/WebSocketService.d.ts +7 -3
- package/package.json +5 -4
package/dist/requests.d.ts
CHANGED
|
@@ -59,11 +59,12 @@ declare class InitConnection {
|
|
|
59
59
|
getLoyalSmsCode(phoneNumber: any): Promise<any>;
|
|
60
60
|
sendSmsCodeForAuth(code: number, phone: number): Promise<any>;
|
|
61
61
|
callStaff(tableId: string, reason: ICallStaffRequest['reason']): Promise<string | undefined>;
|
|
62
|
-
createOrder(clearCartProducts_lib: any, tableTitle: any, is_requestKiosk: boolean | undefined, comment: string, is_authorized?: boolean, is_tableservice?: boolean): Promise<any>;
|
|
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>;
|
|
65
65
|
getProfile(): Promise<any>;
|
|
66
|
-
calculateDiscount(payload: any, is_requestKiosk?: boolean, is_authorized?: boolean): Promise<any>;
|
|
66
|
+
calculateDiscount(payload: any, is_requestKiosk?: boolean, is_authorized?: boolean, signal?: AbortSignal): Promise<any>;
|
|
67
|
+
maxPayByBonuses(price: number, is_requestKiosk?: boolean, is_authorized?: boolean, signal?: AbortSignal): Promise<any>;
|
|
67
68
|
getDeviceInfo(): Promise<any>;
|
|
68
69
|
productUpsale(idProduct: string): Promise<void>;
|
|
69
70
|
}
|
package/dist/store/cart.d.ts
CHANGED
|
@@ -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
|
-
orderSocket: (orderId: string, is_requestKiosk: boolean, is_tableservice?: boolean) => void;
|
|
24
|
+
orderSocket: (orderId: string, is_requestKiosk: boolean, is_tableservice?: boolean, signal?: AbortSignal) => void;
|
|
25
25
|
deleteCart: (path?: string | null, clearTokens?: boolean) => void;
|
|
26
26
|
setGuestInfo: (info: any) => any;
|
|
27
27
|
setState: (state: "wait" | "success" | "not_found") => void;
|
|
@@ -51,7 +51,7 @@ export declare const useCartStore: StoreDefinition<"cartLib", Pick<{
|
|
|
51
51
|
isDrawerOpen: Ref<boolean, boolean>;
|
|
52
52
|
currentState: Ref<"wait" | "success" | "not_found", "wait" | "success" | "not_found">;
|
|
53
53
|
isAuthorized: ComputedRef<boolean>;
|
|
54
|
-
orderSocket: (orderId: string, is_requestKiosk: boolean, is_tableservice?: boolean) => void;
|
|
54
|
+
orderSocket: (orderId: string, is_requestKiosk: boolean, is_tableservice?: boolean, signal?: AbortSignal) => void;
|
|
55
55
|
deleteCart: (path?: string | null, clearTokens?: boolean) => void;
|
|
56
56
|
setGuestInfo: (info: any) => any;
|
|
57
57
|
setState: (state: "wait" | "success" | "not_found") => void;
|
|
@@ -81,7 +81,7 @@ export declare const useCartStore: StoreDefinition<"cartLib", Pick<{
|
|
|
81
81
|
isDrawerOpen: Ref<boolean, boolean>;
|
|
82
82
|
currentState: Ref<"wait" | "success" | "not_found", "wait" | "success" | "not_found">;
|
|
83
83
|
isAuthorized: ComputedRef<boolean>;
|
|
84
|
-
orderSocket: (orderId: string, is_requestKiosk: boolean, is_tableservice?: boolean) => void;
|
|
84
|
+
orderSocket: (orderId: string, is_requestKiosk: boolean, is_tableservice?: boolean, signal?: AbortSignal) => void;
|
|
85
85
|
deleteCart: (path?: string | null, clearTokens?: boolean) => void;
|
|
86
86
|
setGuestInfo: (info: any) => any;
|
|
87
87
|
setState: (state: "wait" | "success" | "not_found") => void;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
+
export interface WebSocketServiceOptions {
|
|
3
|
+
signal?: AbortSignal;
|
|
4
|
+
}
|
|
2
5
|
export declare class WebSocketService {
|
|
3
6
|
url: string;
|
|
4
|
-
options:
|
|
7
|
+
options: WebSocketServiceOptions;
|
|
5
8
|
ws: WebSocket | null;
|
|
6
9
|
reconnectInterval: number;
|
|
7
10
|
listeners: Map<string, Array<(data: any) => void>>;
|
|
@@ -9,8 +12,9 @@ export declare class WebSocketService {
|
|
|
9
12
|
heartbeat: any;
|
|
10
13
|
pingTimeout: any;
|
|
11
14
|
pingResponseTimeout: number;
|
|
15
|
+
signal?: AbortSignal;
|
|
12
16
|
private _shouldReconnect;
|
|
13
|
-
constructor(url: string, options?:
|
|
17
|
+
constructor(url: string, options?: WebSocketServiceOptions);
|
|
14
18
|
connect(): void;
|
|
15
19
|
sendPing(): void;
|
|
16
20
|
send(data: any): void;
|
|
@@ -20,4 +24,4 @@ export declare class WebSocketService {
|
|
|
20
24
|
emit(event: string, data?: any): void;
|
|
21
25
|
getConnectionStatus(): Ref<boolean, boolean>;
|
|
22
26
|
}
|
|
23
|
-
export declare function getWebSocketInstance(url: string, options?:
|
|
27
|
+
export declare function getWebSocketInstance(url: string, options?: WebSocketServiceOptions): WebSocketService;
|
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.1.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"preview": "vite preview"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"vue": "^3.5.12",
|
|
34
33
|
"@vueuse/core": "^14.1.0",
|
|
35
|
-
"motion-v": "^1.7.4"
|
|
34
|
+
"motion-v": "^1.7.4",
|
|
35
|
+
"vue": "^3.5.12"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/tinycolor2": "^1.4.6",
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"qrious": "^4.0.2",
|
|
64
64
|
"tinycolor2": "^1.6.0",
|
|
65
65
|
"virtua": "^0.48.2",
|
|
66
|
-
"vue-router": "^4.5.1"
|
|
66
|
+
"vue-router": "^4.5.1",
|
|
67
|
+
"vue-sonner": "^2.0.9"
|
|
67
68
|
}
|
|
68
69
|
}
|