@unsource/ui 2.9.31 → 2.9.32
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/module.json
CHANGED
|
@@ -27,6 +27,7 @@ export declare const useUserId: () => import("#app").CookieRef<string | null | u
|
|
|
27
27
|
export declare const useToken: () => import("#app").CookieRef<string | null | undefined>;
|
|
28
28
|
export declare const useProviderId: () => import("#app").CookieRef<string | null | undefined>;
|
|
29
29
|
export declare const useUserType: () => import("#app").CookieRef<string | null | undefined>;
|
|
30
|
+
export declare const useClient: () => import("#app").CookieRef<string | null | undefined>;
|
|
30
31
|
export declare const SettingToType: (setting: ServiceSetting) => ServiceSettingType;
|
|
31
32
|
export declare const NotInProcessBooking: (e: Booking["status"]) => boolean;
|
|
32
33
|
export declare const MinPrice: (bookingSetting: BookingSetting) => number | object | null | undefined;
|
|
@@ -27,6 +27,9 @@ export const useProviderId = () => useCookie("providerId", {
|
|
|
27
27
|
export const useUserType = () => useCookie("userType", {
|
|
28
28
|
maxAge: 365 * 24 * 60 * 60 * 1e3
|
|
29
29
|
});
|
|
30
|
+
export const useClient = () => useCookie("client", {
|
|
31
|
+
maxAge: 365 * 24 * 60 * 60 * 1e3
|
|
32
|
+
});
|
|
30
33
|
export const SettingToType = (setting) => ({
|
|
31
34
|
..._pick(setting, ["id", "price", "discount", "duration", "subCategoryKey", "description"]),
|
|
32
35
|
title: setting.subCategory?.title || "",
|