@zimyo/manage 0.3.2 → 0.3.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/App.d.ts +2 -2
- package/dist/components/customComponents/CustomCard/index.d.ts +2 -1
- package/dist/components/customComponents/CustomFilter/index.d.ts +2 -1
- package/dist/components/customComponents/CustomSearch/index.d.ts +2 -1
- package/dist/components/customComponents/PageHeading/index.d.ts +3 -2
- package/dist/components/manage/Subscription/PaymentRecords/PaymentRecords.d.ts +1 -1
- package/dist/components/manage/Subscription/SubscriptionPricing/CardView/CardView.d.ts +1 -1
- package/dist/components/manage/Subscription/SubscriptionPricing/ComparePlans/ComparePlans.d.ts +1 -1
- package/dist/components/manage/Subscription/SubscriptionPricing/SubscriptionPricing.d.ts +1 -1
- package/dist/components/ui/Alert/Alert.d.ts +2 -1
- package/dist/components/ui/DatePicker/DatePicker.d.ts +1 -0
- package/dist/components/ui/Loader/Loader.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/main.cjs +326 -302
- package/dist/main.d.ts +16 -16
- package/dist/main.js +38346 -34596
- package/dist/node_modules/html-dom-parser/esm/types.d.ts +3 -0
- package/dist/shared/hooks/useFetch.d.ts +9 -8
- package/dist/shared/providers/AppProvider.d.ts +3 -2
- package/dist/shared/providers/AuthProvider.d.ts +2 -1
- package/dist/shared/services/http.d.ts +4 -4
- package/dist/shared/types/backend.types.d.ts +2 -1
- package/dist/shared/zustand/alert.store.d.ts +2 -1
- package/dist/shared/zustand/session.store.d.ts +1 -1
- package/dist/src/App.d.ts +4 -0
- package/dist/src/components/customComponents/CustomCard/index.d.ts +13 -0
- package/dist/src/components/customComponents/CustomFilter/index.d.ts +24 -0
- package/dist/src/components/customComponents/CustomSearch/index.d.ts +10 -0
- package/dist/src/components/customComponents/CustomTooltip/index.d.ts +10 -0
- package/dist/src/components/customComponents/PageHeading/index.d.ts +23 -0
- package/dist/src/components/manage/Subscription/BillingSubscription/BillingSubscription.d.ts +1 -0
- package/dist/src/components/manage/Subscription/Consumption/Consumption.d.ts +1 -0
- package/dist/src/components/manage/Subscription/Invoices/Invoices.d.ts +1 -0
- package/dist/src/components/manage/Subscription/Invoices/constant.d.ts +4 -0
- package/dist/src/components/manage/Subscription/Ledger/Ledger.d.ts +1 -0
- package/dist/src/components/manage/Subscription/Mail/Mail.d.ts +1 -0
- package/dist/src/components/manage/Subscription/NewOverview/NewOverview.d.ts +5 -0
- package/dist/src/components/manage/Subscription/Overview/Overview.d.ts +5 -0
- package/dist/src/components/manage/Subscription/PaymentMethod/PaymentMethod.d.ts +1 -0
- package/dist/src/components/manage/Subscription/PaymentRecords/PaymentRecords.d.ts +6 -0
- package/dist/src/components/manage/Subscription/PaymentRecords/TableView/Table.d.ts +1 -0
- package/dist/src/components/manage/Subscription/PlansOverview/PlansOverview.d.ts +50 -0
- package/dist/src/components/manage/Subscription/PlansOverview/constant.d.ts +4 -0
- package/dist/src/components/manage/Subscription/ProductUpdates/ProductUpdates.d.ts +1 -0
- package/dist/src/components/manage/Subscription/ServiceDeskLogs/ServiceDeskLogs.d.ts +1 -0
- package/dist/src/components/manage/Subscription/SubscribedPlan/SubscribedPlan.d.ts +5 -0
- package/dist/src/components/manage/Subscription/SubscriptionPricing/CardView/CardView.d.ts +3 -0
- package/dist/src/components/manage/Subscription/SubscriptionPricing/ComparePlans/ComparePlans.d.ts +3 -0
- package/dist/src/components/manage/Subscription/SubscriptionPricing/SubscriptionPricing.d.ts +6 -0
- package/dist/src/components/manage/Subscription/TempPayment/TempPayment.d.ts +1 -0
- package/dist/src/components/manage/Subscription/TempPayment/constant.d.ts +5 -0
- package/dist/src/components/manage/Subscription/UpcomingSubscription/UpcomingSubscription.d.ts +1 -0
- package/dist/src/components/manage/Subscription/UpcomingSubscription/constant.d.ts +4 -0
- package/dist/src/components/manage/Subscription/Wallet/Wallet.d.ts +1 -0
- package/dist/src/components/manage/Subscription/Wallet/constant.d.ts +8 -0
- package/dist/src/components/ui/Alert/Alert.d.ts +6 -0
- package/dist/src/components/ui/DatePicker/DatePicker.d.ts +4 -0
- package/dist/src/components/ui/Loader/Loader.d.ts +7 -0
- package/dist/src/components/ui/NoDataFound/NoDataFound.d.ts +5 -0
- package/dist/src/components/ui/OrgDetailsCard/OrgDetailsCard.d.ts +20 -0
- package/dist/src/components/ui/OverviewCard/OverviewCard.d.ts +4 -0
- package/dist/src/components/ui/TextReducingTooltipComponent/TextReducingTooltipComponent.d.ts +10 -0
- package/dist/src/components/ui/TopUpWalletModal/TopUpWalletModal.d.ts +6 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/main.d.ts +16 -0
- package/dist/src/shared/constants/constant.d.ts +41 -0
- package/dist/src/shared/constants/endpoints.d.ts +24 -0
- package/dist/src/shared/constants/form-types.d.ts +44 -0
- package/dist/src/shared/constants/status.d.ts +4 -0
- package/dist/src/shared/constants/time.d.ts +53 -0
- package/dist/src/shared/hooks/useConstants.d.ts +1 -0
- package/dist/src/shared/hooks/useDownloadBufferFile.d.ts +7 -0
- package/dist/src/shared/hooks/useErrorAlert.d.ts +1 -0
- package/dist/src/shared/hooks/useFetch.d.ts +124 -0
- package/dist/src/shared/hooks/useFilterParsedValue.d.ts +6 -0
- package/dist/src/shared/hooks/useLoading.d.ts +1 -0
- package/dist/src/shared/hooks/useMutation.d.ts +18 -0
- package/dist/src/shared/hooks/useSuccessAlert.d.ts +1 -0
- package/dist/src/shared/providers/AppProvider.d.ts +14 -0
- package/dist/src/shared/providers/AuthProvider.d.ts +11 -0
- package/dist/src/shared/services/cashfree-payments.d.ts +1 -0
- package/dist/src/shared/services/http.d.ts +11 -0
- package/dist/src/shared/types/backend.types.d.ts +20 -0
- package/dist/src/shared/utils/utils.d.ts +25 -0
- package/dist/src/shared/zustand/alert.store.d.ts +20 -0
- package/dist/src/shared/zustand/session.store.d.ts +22 -0
- package/package.json +2 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare const WEEK_DAY: string[];
|
|
2
|
+
export declare const WEEK_FULL_DAY: string[];
|
|
3
|
+
export declare const DAY_SUFFIX: {
|
|
4
|
+
1: string;
|
|
5
|
+
2: string;
|
|
6
|
+
3: string;
|
|
7
|
+
21: string;
|
|
8
|
+
22: string;
|
|
9
|
+
23: string;
|
|
10
|
+
31: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const MONTHS: {
|
|
13
|
+
1: string;
|
|
14
|
+
2: string;
|
|
15
|
+
3: string;
|
|
16
|
+
4: string;
|
|
17
|
+
5: string;
|
|
18
|
+
6: string;
|
|
19
|
+
7: string;
|
|
20
|
+
8: string;
|
|
21
|
+
9: string;
|
|
22
|
+
10: string;
|
|
23
|
+
11: string;
|
|
24
|
+
12: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const MONTHS_FULL: {
|
|
27
|
+
1: string;
|
|
28
|
+
2: string;
|
|
29
|
+
3: string;
|
|
30
|
+
4: string;
|
|
31
|
+
5: string;
|
|
32
|
+
6: string;
|
|
33
|
+
7: string;
|
|
34
|
+
8: string;
|
|
35
|
+
9: string;
|
|
36
|
+
10: string;
|
|
37
|
+
11: string;
|
|
38
|
+
12: string;
|
|
39
|
+
};
|
|
40
|
+
export declare const DATE_FORMATS: {
|
|
41
|
+
"d-M-Y": string;
|
|
42
|
+
"Y-m-d": string;
|
|
43
|
+
"m-d-Y": string;
|
|
44
|
+
"Y-d-m": string;
|
|
45
|
+
"d M y": string;
|
|
46
|
+
"F dS Y": string;
|
|
47
|
+
"F d Y": string;
|
|
48
|
+
"M d Y": string;
|
|
49
|
+
"d/m/y": string;
|
|
50
|
+
"d M Y h:i:s": string;
|
|
51
|
+
"d-M-y": string;
|
|
52
|
+
"h:i A": string;
|
|
53
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useGlobalContants: (locale: string) => {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useErrorAlert: () => (message: string) => void;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { AxiosResponse } from "axios";
|
|
2
|
+
import { UseQueryOptions } from "react-query";
|
|
3
|
+
import { HttpServiceType } from "@services/http";
|
|
4
|
+
export declare const useFetch: (apiPromise: (options: HttpServiceType, signal: AbortSignal | undefined) => Promise<AxiosResponse<any, any>>, apiPromiseArgs: HttpServiceType, key: any, queryOptions?: Omit<UseQueryOptions<any, any, any, any>, "queryKey" | "queryFn">) => {
|
|
5
|
+
data: undefined;
|
|
6
|
+
error: null;
|
|
7
|
+
isError: false;
|
|
8
|
+
isIdle: true;
|
|
9
|
+
isLoading: false;
|
|
10
|
+
isLoadingError: false;
|
|
11
|
+
isRefetchError: false;
|
|
12
|
+
isSuccess: false;
|
|
13
|
+
status: "idle";
|
|
14
|
+
dataUpdatedAt: number;
|
|
15
|
+
errorUpdatedAt: number;
|
|
16
|
+
failureCount: number;
|
|
17
|
+
errorUpdateCount: number;
|
|
18
|
+
isFetched: boolean;
|
|
19
|
+
isFetchedAfterMount: boolean;
|
|
20
|
+
isFetching: boolean;
|
|
21
|
+
isPlaceholderData: boolean;
|
|
22
|
+
isPreviousData: boolean;
|
|
23
|
+
isRefetching: boolean;
|
|
24
|
+
isStale: boolean;
|
|
25
|
+
refetch: <TPageData>(options?: import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) => Promise<import("react-query").QueryObserverResult<any, any>>;
|
|
26
|
+
remove: () => void;
|
|
27
|
+
rq_data: any;
|
|
28
|
+
} | {
|
|
29
|
+
data: undefined;
|
|
30
|
+
error: any;
|
|
31
|
+
isError: true;
|
|
32
|
+
isIdle: false;
|
|
33
|
+
isLoading: false;
|
|
34
|
+
isLoadingError: true;
|
|
35
|
+
isRefetchError: false;
|
|
36
|
+
isSuccess: false;
|
|
37
|
+
status: "error";
|
|
38
|
+
dataUpdatedAt: number;
|
|
39
|
+
errorUpdatedAt: number;
|
|
40
|
+
failureCount: number;
|
|
41
|
+
errorUpdateCount: number;
|
|
42
|
+
isFetched: boolean;
|
|
43
|
+
isFetchedAfterMount: boolean;
|
|
44
|
+
isFetching: boolean;
|
|
45
|
+
isPlaceholderData: boolean;
|
|
46
|
+
isPreviousData: boolean;
|
|
47
|
+
isRefetching: boolean;
|
|
48
|
+
isStale: boolean;
|
|
49
|
+
refetch: <TPageData>(options?: import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) => Promise<import("react-query").QueryObserverResult<any, any>>;
|
|
50
|
+
remove: () => void;
|
|
51
|
+
rq_data: any;
|
|
52
|
+
} | {
|
|
53
|
+
data: undefined;
|
|
54
|
+
error: null;
|
|
55
|
+
isError: false;
|
|
56
|
+
isIdle: false;
|
|
57
|
+
isLoading: true;
|
|
58
|
+
isLoadingError: false;
|
|
59
|
+
isRefetchError: false;
|
|
60
|
+
isSuccess: false;
|
|
61
|
+
status: "loading";
|
|
62
|
+
dataUpdatedAt: number;
|
|
63
|
+
errorUpdatedAt: number;
|
|
64
|
+
failureCount: number;
|
|
65
|
+
errorUpdateCount: number;
|
|
66
|
+
isFetched: boolean;
|
|
67
|
+
isFetchedAfterMount: boolean;
|
|
68
|
+
isFetching: boolean;
|
|
69
|
+
isPlaceholderData: boolean;
|
|
70
|
+
isPreviousData: boolean;
|
|
71
|
+
isRefetching: boolean;
|
|
72
|
+
isStale: boolean;
|
|
73
|
+
refetch: <TPageData>(options?: import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) => Promise<import("react-query").QueryObserverResult<any, any>>;
|
|
74
|
+
remove: () => void;
|
|
75
|
+
rq_data: any;
|
|
76
|
+
} | {
|
|
77
|
+
data: any;
|
|
78
|
+
error: any;
|
|
79
|
+
isError: true;
|
|
80
|
+
isIdle: false;
|
|
81
|
+
isLoading: false;
|
|
82
|
+
isLoadingError: false;
|
|
83
|
+
isRefetchError: true;
|
|
84
|
+
isSuccess: false;
|
|
85
|
+
status: "error";
|
|
86
|
+
dataUpdatedAt: number;
|
|
87
|
+
errorUpdatedAt: number;
|
|
88
|
+
failureCount: number;
|
|
89
|
+
errorUpdateCount: number;
|
|
90
|
+
isFetched: boolean;
|
|
91
|
+
isFetchedAfterMount: boolean;
|
|
92
|
+
isFetching: boolean;
|
|
93
|
+
isPlaceholderData: boolean;
|
|
94
|
+
isPreviousData: boolean;
|
|
95
|
+
isRefetching: boolean;
|
|
96
|
+
isStale: boolean;
|
|
97
|
+
refetch: <TPageData>(options?: import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) => Promise<import("react-query").QueryObserverResult<any, any>>;
|
|
98
|
+
remove: () => void;
|
|
99
|
+
rq_data: any;
|
|
100
|
+
} | {
|
|
101
|
+
data: any;
|
|
102
|
+
error: null;
|
|
103
|
+
isError: false;
|
|
104
|
+
isIdle: false;
|
|
105
|
+
isLoading: false;
|
|
106
|
+
isLoadingError: false;
|
|
107
|
+
isRefetchError: false;
|
|
108
|
+
isSuccess: true;
|
|
109
|
+
status: "success";
|
|
110
|
+
dataUpdatedAt: number;
|
|
111
|
+
errorUpdatedAt: number;
|
|
112
|
+
failureCount: number;
|
|
113
|
+
errorUpdateCount: number;
|
|
114
|
+
isFetched: boolean;
|
|
115
|
+
isFetchedAfterMount: boolean;
|
|
116
|
+
isFetching: boolean;
|
|
117
|
+
isPlaceholderData: boolean;
|
|
118
|
+
isPreviousData: boolean;
|
|
119
|
+
isRefetching: boolean;
|
|
120
|
+
isStale: boolean;
|
|
121
|
+
refetch: <TPageData>(options?: import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) => Promise<import("react-query").QueryObserverResult<any, any>>;
|
|
122
|
+
remove: () => void;
|
|
123
|
+
rq_data: any;
|
|
124
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useLoading: (isLoading: boolean) => void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type messageFormatterFn = (props: any) => string;
|
|
2
|
+
export declare const useConfigurableSubmit: ({ url, token, method, baseURL, successCallback, errorCallback, onSettledCallback, debounceTime, errorMessageFormatter, successMessageFormatter, }: {
|
|
3
|
+
url: string;
|
|
4
|
+
token?: string;
|
|
5
|
+
method?: string;
|
|
6
|
+
baseURL?: string;
|
|
7
|
+
successCallback?: (props: any) => void;
|
|
8
|
+
errorCallback?: (props: any) => void;
|
|
9
|
+
onSettledCallback?: () => void;
|
|
10
|
+
debounceTime?: number;
|
|
11
|
+
errorMessageFormatter?: messageFormatterFn;
|
|
12
|
+
successMessageFormatter?: messageFormatterFn;
|
|
13
|
+
}) => {
|
|
14
|
+
handleSubmit: (data: any, extraCallbackForError?: any, extraCallbackForSuccess?: any, extraCallbackForSettled?: any) => void;
|
|
15
|
+
isDisabled: boolean;
|
|
16
|
+
isLoading: boolean;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useSuccessAlert: () => (message: string) => void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { QueryClient } from "react-query";
|
|
3
|
+
interface AuthProviderProps {
|
|
4
|
+
queryClient: QueryClient;
|
|
5
|
+
token: string;
|
|
6
|
+
LOGIN_BASE_URL?: string;
|
|
7
|
+
API_BASE_URL: string;
|
|
8
|
+
ASSETS_BASE_URL: string;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
HRMS_BASE_URL: string;
|
|
11
|
+
mode: string;
|
|
12
|
+
}
|
|
13
|
+
declare const ManageProvider: ({ queryClient, token, LOGIN_BASE_URL, API_BASE_URL, ASSETS_BASE_URL, HRMS_BASE_URL, children, mode }: AuthProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default ManageProvider;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
declare const AuthProvider: ({ children, token, LOGIN_BASE_URL, API_BASE_URL, ASSETS_BASE_URL, HRMS_BASE_URL, mode, }: {
|
|
3
|
+
token: string;
|
|
4
|
+
LOGIN_BASE_URL: string;
|
|
5
|
+
API_BASE_URL: string;
|
|
6
|
+
ASSETS_BASE_URL: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
HRMS_BASE_URL: string;
|
|
9
|
+
mode: string;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default AuthProvider;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/**@ts-ignore */
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type HttpServiceType = {
|
|
2
|
+
url: string;
|
|
3
|
+
token?: string;
|
|
4
|
+
data?: any;
|
|
5
|
+
params?: any;
|
|
6
|
+
isNativeEndpoint?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const getService: ({ url, token, params }: HttpServiceType) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
9
|
+
export declare const postService: ({ url, token, data, params }: HttpServiceType) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
10
|
+
export declare const patchService: ({ url, token, data, params }: HttpServiceType) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
11
|
+
export declare const deleteService: ({ url, token, data, params }: HttpServiceType) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AxiosError, AxiosResponse } from "axios";
|
|
2
|
+
export type UserType = any;
|
|
3
|
+
export type BackendResponseType<T> = AxiosResponse<{
|
|
4
|
+
error: boolean;
|
|
5
|
+
code: number;
|
|
6
|
+
message: string;
|
|
7
|
+
timestamp: string;
|
|
8
|
+
data: T;
|
|
9
|
+
}>;
|
|
10
|
+
export type BackendErrorType = AxiosError<{
|
|
11
|
+
error: boolean;
|
|
12
|
+
code: number;
|
|
13
|
+
message: string;
|
|
14
|
+
timestamp: string;
|
|
15
|
+
data: null;
|
|
16
|
+
}, any>;
|
|
17
|
+
export type CustomSelectOption = {
|
|
18
|
+
label: string;
|
|
19
|
+
value: any;
|
|
20
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare class util {
|
|
2
|
+
static toTitleCase: (toTransform: string) => string;
|
|
3
|
+
static dateFormatList: (object: {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}, value: string) => any;
|
|
6
|
+
static getFullDateVar: (ip: any) => any;
|
|
7
|
+
static isDateValid(date: Date): boolean;
|
|
8
|
+
static getFormatedDate: (timestamp?: any, format?: string, checkFormatList?: boolean) => string;
|
|
9
|
+
static validateDataType(value: unknown, type: string): boolean;
|
|
10
|
+
static convertFormMasterTypeToDynamicFormType: (type: string) => any;
|
|
11
|
+
static convertToFormData(data: any): FormData;
|
|
12
|
+
static convertTime: (timeString: string) => {
|
|
13
|
+
hours: string;
|
|
14
|
+
minutes: string;
|
|
15
|
+
seconds: string;
|
|
16
|
+
};
|
|
17
|
+
static convertToMinutes: (timeString: string) => number;
|
|
18
|
+
static getDarkenColor: (color: string, factor?: number) => string;
|
|
19
|
+
static cashfreePayment: (sessionId: string, BASE_URL: string | undefined, suceesCallback: () => void, errorCallback: (value: string) => void, mode?: string) => Promise<void>;
|
|
20
|
+
static downloadFileFromBuffer: (payload: {
|
|
21
|
+
buffer64: string;
|
|
22
|
+
file: string;
|
|
23
|
+
contentType: string;
|
|
24
|
+
}) => void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AlertColor } from '@mui/material';
|
|
2
|
+
type State = {
|
|
3
|
+
alert: {
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
type?: AlertColor | string;
|
|
6
|
+
message?: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
type Actions = {
|
|
10
|
+
pushAlert: (payload: {
|
|
11
|
+
message?: string;
|
|
12
|
+
type: AlertColor | string;
|
|
13
|
+
}) => void;
|
|
14
|
+
setLoading: (payload: {
|
|
15
|
+
isLoading: boolean;
|
|
16
|
+
}) => void;
|
|
17
|
+
clearAlert: () => void;
|
|
18
|
+
};
|
|
19
|
+
export declare const useAlertStore: import("zustand").UseBoundStore<import("zustand").StoreApi<State & Actions>>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type State = {
|
|
2
|
+
session: {
|
|
3
|
+
user: any;
|
|
4
|
+
token?: string;
|
|
5
|
+
API_BASE_URL?: string;
|
|
6
|
+
ASSETS_BASE_URL?: string;
|
|
7
|
+
mode?: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
type Actions = {
|
|
11
|
+
setSession: (payload: {
|
|
12
|
+
user: any;
|
|
13
|
+
token: string;
|
|
14
|
+
API_BASE_URL: string;
|
|
15
|
+
ASSETS_BASE_URL: string;
|
|
16
|
+
HRMS_BASE_URL: string;
|
|
17
|
+
mode?: string;
|
|
18
|
+
}) => void;
|
|
19
|
+
clearSession: () => void;
|
|
20
|
+
};
|
|
21
|
+
export declare const useSessionStore: import("zustand").UseBoundStore<import("zustand").StoreApi<State & Actions>>;
|
|
22
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zimyo/manage",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"@zimyo/ui": "^1.11.6",
|
|
40
40
|
"axios": "^1.7.2",
|
|
41
41
|
"dayjs": "^1.11.11",
|
|
42
|
+
"html-react-parser": "^5.2.7",
|
|
42
43
|
"lodash": "^4.17.21",
|
|
43
44
|
"react": "^18.3.1",
|
|
44
45
|
"react-dom": "^18.3.1",
|