@zimyo/manage 0.2.6 → 0.2.8
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/main.cjs.js +74 -0
- package/dist/main.es.js +18831 -0
- package/dist/{App.d.ts → types/App.d.ts} +1 -1
- package/dist/{components → types/components}/ui/Alert/Alert.d.ts +2 -1
- package/dist/{components → types/components}/ui/DatePicker/DatePicker.d.ts +1 -0
- package/dist/{components → types/components}/ui/Loader/Loader.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/main.d.ts +9 -0
- package/dist/{shared → types/shared}/hooks/useFetch.d.ts +9 -8
- package/dist/{shared → types/shared}/providers/AppProvider.d.ts +3 -2
- package/dist/{shared → types/shared}/providers/AuthProvider.d.ts +2 -1
- package/dist/{shared → types/shared}/services/http.d.ts +4 -4
- package/dist/{shared → types/shared}/types/backend.types.d.ts +2 -1
- package/dist/{shared → types/shared}/zustand/alert.store.d.ts +2 -1
- package/dist/{shared → types/shared}/zustand/session.store.d.ts +1 -1
- package/package.json +26 -33
- package/dist/.vite/manifest.json +0 -12
- package/dist/index.d.ts +0 -1
- package/dist/main.cjs +0 -273
- package/dist/main.d.ts +0 -9
- package/dist/main.js +0 -35098
- /package/dist/{components → types/components}/manage/Subscription/Consumption/Consumption.d.ts +0 -0
- /package/dist/{components → types/components}/manage/Subscription/Invoices/Invoices.d.ts +0 -0
- /package/dist/{components → types/components}/manage/Subscription/Invoices/constant.d.ts +0 -0
- /package/dist/{components → types/components}/manage/Subscription/Overview/Overview.d.ts +0 -0
- /package/dist/{components → types/components}/manage/Subscription/PaymentMethod/PaymentMethod.d.ts +0 -0
- /package/dist/{components → types/components}/manage/Subscription/PlansOverview/PlansOverview.d.ts +0 -0
- /package/dist/{components → types/components}/manage/Subscription/PlansOverview/constant.d.ts +0 -0
- /package/dist/{components → types/components}/manage/Subscription/SubscribedPlan/SubscribedPlan.d.ts +0 -0
- /package/dist/{components → types/components}/manage/Subscription/Wallet/Wallet.d.ts +0 -0
- /package/dist/{components → types/components}/manage/Subscription/Wallet/constant.d.ts +0 -0
- /package/dist/{components → types/components}/ui/NoDataFound/NoDataFound.d.ts +0 -0
- /package/dist/{components → types/components}/ui/OrgDetailsCard/OrgDetailsCard.d.ts +0 -0
- /package/dist/{components → types/components}/ui/OverviewCard/OverviewCard.d.ts +0 -0
- /package/dist/{components → types/components}/ui/TextReducingTooltipComponent/TextReducingTooltipComponent.d.ts +0 -0
- /package/dist/{components → types/components}/ui/TopUpWalletModal/TopUpWalletModal.d.ts +0 -0
- /package/dist/{shared → types/shared}/constants/constant.d.ts +0 -0
- /package/dist/{shared → types/shared}/constants/endpoints.d.ts +0 -0
- /package/dist/{shared → types/shared}/constants/form-types.d.ts +0 -0
- /package/dist/{shared → types/shared}/constants/status.d.ts +0 -0
- /package/dist/{shared → types/shared}/constants/time.d.ts +0 -0
- /package/dist/{shared → types/shared}/hooks/useConstants.d.ts +0 -0
- /package/dist/{shared → types/shared}/hooks/useErrorAlert.d.ts +0 -0
- /package/dist/{shared → types/shared}/hooks/useLoading.d.ts +0 -0
- /package/dist/{shared → types/shared}/hooks/useMutation.d.ts +0 -0
- /package/dist/{shared → types/shared}/hooks/useSuccessAlert.d.ts +0 -0
- /package/dist/{shared → types/shared}/services/cashfree-payments.d.ts +0 -0
- /package/dist/{shared → types/shared}/utils/utils.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
export { default as ManageProvider } from './shared/providers/AppProvider';
|
|
3
|
+
export { SubscriptionConsumption } from './components/manage/Subscription/Consumption/Consumption';
|
|
4
|
+
export { CustomerInvoices } from './components/manage/Subscription/Invoices/Invoices';
|
|
5
|
+
export { SubscriptionOverview } from './components/manage/Subscription/Overview/Overview';
|
|
6
|
+
export { SubscriptionPaymentMethod } from './components/manage/Subscription/PaymentMethod/PaymentMethod';
|
|
7
|
+
export { PlansOverview } from './components/manage/Subscription/PlansOverview/PlansOverview';
|
|
8
|
+
export { SubscriptionPlans } from './components/manage/Subscription/SubscribedPlan/SubscribedPlan';
|
|
9
|
+
export { SubscriptionWallet } from './components/manage/Subscription/Wallet/Wallet';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { AxiosResponse } from
|
|
2
|
-
import { UseQueryOptions } from
|
|
3
|
-
import { HttpServiceType } from
|
|
1
|
+
import { AxiosResponse } from 'axios';
|
|
2
|
+
import { UseQueryOptions } from 'react-query';
|
|
3
|
+
import { HttpServiceType } from '../services/http';
|
|
4
|
+
|
|
4
5
|
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
6
|
data: undefined;
|
|
6
7
|
error: null;
|
|
@@ -22,7 +23,7 @@ export declare const useFetch: (apiPromise: (options: HttpServiceType, signal: A
|
|
|
22
23
|
isPreviousData: boolean;
|
|
23
24
|
isRefetching: boolean;
|
|
24
25
|
isStale: boolean;
|
|
25
|
-
refetch: <TPageData>(options?: (import(
|
|
26
|
+
refetch: <TPageData>(options?: (import('react-query').RefetchOptions & import('react-query').RefetchQueryFilters<TPageData>) | undefined) => Promise<import('react-query').QueryObserverResult<any, any>>;
|
|
26
27
|
remove: () => void;
|
|
27
28
|
rq_data: any;
|
|
28
29
|
} | {
|
|
@@ -46,7 +47,7 @@ export declare const useFetch: (apiPromise: (options: HttpServiceType, signal: A
|
|
|
46
47
|
isPreviousData: boolean;
|
|
47
48
|
isRefetching: boolean;
|
|
48
49
|
isStale: boolean;
|
|
49
|
-
refetch: <TPageData>(options?: (import(
|
|
50
|
+
refetch: <TPageData>(options?: (import('react-query').RefetchOptions & import('react-query').RefetchQueryFilters<TPageData>) | undefined) => Promise<import('react-query').QueryObserverResult<any, any>>;
|
|
50
51
|
remove: () => void;
|
|
51
52
|
rq_data: any;
|
|
52
53
|
} | {
|
|
@@ -70,7 +71,7 @@ export declare const useFetch: (apiPromise: (options: HttpServiceType, signal: A
|
|
|
70
71
|
isPreviousData: boolean;
|
|
71
72
|
isRefetching: boolean;
|
|
72
73
|
isStale: boolean;
|
|
73
|
-
refetch: <TPageData>(options?: (import(
|
|
74
|
+
refetch: <TPageData>(options?: (import('react-query').RefetchOptions & import('react-query').RefetchQueryFilters<TPageData>) | undefined) => Promise<import('react-query').QueryObserverResult<any, any>>;
|
|
74
75
|
remove: () => void;
|
|
75
76
|
rq_data: any;
|
|
76
77
|
} | {
|
|
@@ -94,7 +95,7 @@ export declare const useFetch: (apiPromise: (options: HttpServiceType, signal: A
|
|
|
94
95
|
isPreviousData: boolean;
|
|
95
96
|
isRefetching: boolean;
|
|
96
97
|
isStale: boolean;
|
|
97
|
-
refetch: <TPageData>(options?: (import(
|
|
98
|
+
refetch: <TPageData>(options?: (import('react-query').RefetchOptions & import('react-query').RefetchQueryFilters<TPageData>) | undefined) => Promise<import('react-query').QueryObserverResult<any, any>>;
|
|
98
99
|
remove: () => void;
|
|
99
100
|
rq_data: any;
|
|
100
101
|
} | {
|
|
@@ -118,7 +119,7 @@ export declare const useFetch: (apiPromise: (options: HttpServiceType, signal: A
|
|
|
118
119
|
isPreviousData: boolean;
|
|
119
120
|
isRefetching: boolean;
|
|
120
121
|
isStale: boolean;
|
|
121
|
-
refetch: <TPageData>(options?: (import(
|
|
122
|
+
refetch: <TPageData>(options?: (import('react-query').RefetchOptions & import('react-query').RefetchQueryFilters<TPageData>) | undefined) => Promise<import('react-query').QueryObserverResult<any, any>>;
|
|
122
123
|
remove: () => void;
|
|
123
124
|
rq_data: any;
|
|
124
125
|
};
|
|
@@ -5,7 +5,7 @@ export type HttpServiceType = {
|
|
|
5
5
|
params?: any;
|
|
6
6
|
isNativeEndpoint?: boolean;
|
|
7
7
|
};
|
|
8
|
-
export declare const getService: ({ url, token, params }: HttpServiceType) => Promise<import(
|
|
9
|
-
export declare const postService: ({ url, token, data, params }: HttpServiceType) => Promise<import(
|
|
10
|
-
export declare const patchService: ({ url, token, data, params }: HttpServiceType) => Promise<import(
|
|
11
|
-
export declare const deleteService: ({ url, token, data, params }: HttpServiceType) => Promise<import(
|
|
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>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AlertColor } from '@mui/material';
|
|
2
|
+
|
|
2
3
|
type State = {
|
|
3
4
|
alert: {
|
|
4
5
|
isLoading: boolean;
|
|
@@ -16,5 +17,5 @@ type Actions = {
|
|
|
16
17
|
}) => void;
|
|
17
18
|
clearAlert: () => void;
|
|
18
19
|
};
|
|
19
|
-
export declare const useAlertStore: import(
|
|
20
|
+
export declare const useAlertStore: import('zustand').UseBoundStore<import('zustand').StoreApi<State & Actions>>;
|
|
20
21
|
export {};
|
|
@@ -18,5 +18,5 @@ type Actions = {
|
|
|
18
18
|
}) => void;
|
|
19
19
|
clearSession: () => void;
|
|
20
20
|
};
|
|
21
|
-
export declare const useSessionStore: import(
|
|
21
|
+
export declare const useSessionStore: import('zustand').UseBoundStore<import('zustand').StoreApi<State & Actions>>;
|
|
22
22
|
export {};
|
package/package.json
CHANGED
|
@@ -1,58 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zimyo/manage",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.8",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
9
|
+
"main": "dist/main.cjs.js",
|
|
10
|
+
"module": "dist/main.es.js",
|
|
11
|
+
"types": "dist/types/main.d.ts",
|
|
12
|
+
"style": "dist/style.css",
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
9
16
|
"scripts": {
|
|
10
17
|
"dev": "vite",
|
|
11
|
-
"build": "
|
|
18
|
+
"build": "vite build --mode production",
|
|
12
19
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
13
20
|
"preview": "vite preview"
|
|
14
21
|
},
|
|
15
|
-
"exports": {
|
|
16
|
-
".": {
|
|
17
|
-
"import": "./dist/main.js",
|
|
18
|
-
"require": "./dist/main.cjs",
|
|
19
|
-
"types": "./dist/index.d.ts"
|
|
20
|
-
},
|
|
21
|
-
"./style.css": {
|
|
22
|
-
"import": "./dist/style.css",
|
|
23
|
-
"require": "./dist/style.css"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"main": "./dist/main.cjs",
|
|
27
|
-
"style": "./dist/style.css",
|
|
28
|
-
"module": "./dist/main.js",
|
|
29
|
-
"typings": "./dist/main.d.ts",
|
|
30
|
-
"files": [
|
|
31
|
-
"dist"
|
|
32
|
-
],
|
|
33
22
|
"dependencies": {
|
|
34
23
|
"@cashfreepayments/cashfree-js": "^1.0.5",
|
|
35
|
-
"@mui/icons-material": "^5.16.5",
|
|
36
|
-
"@mui/x-date-pickers": "^7.9.0",
|
|
37
|
-
"@zimyo/design-system": "^4.0.0",
|
|
38
24
|
"axios": "^1.7.2",
|
|
39
25
|
"dayjs": "^1.11.11",
|
|
40
|
-
"lodash": "^4.17.21",
|
|
41
|
-
"react-icons": "^5.2.1",
|
|
42
|
-
"react-if": "^4.1.5",
|
|
43
26
|
"react-query": "^3.39.3",
|
|
44
27
|
"tinycolor2": "^1.6.0",
|
|
45
|
-
"zustand": "^4.5.4"
|
|
28
|
+
"zustand": "^4.5.4",
|
|
29
|
+
"lodash-es": "^4.17.21",
|
|
30
|
+
"@mui/x-date-pickers": "^7.9.0",
|
|
31
|
+
"@mui/icons-material": "^5.16.5",
|
|
32
|
+
"react-icons": "^5.5.0"
|
|
46
33
|
},
|
|
47
34
|
"peerDependencies": {
|
|
48
|
-
"@mui/material": "^5.
|
|
49
|
-
"react": "
|
|
50
|
-
"react-dom": "
|
|
35
|
+
"@mui/material": "^5.0.0",
|
|
36
|
+
"react": ">=17.0.0 <19.0.0",
|
|
37
|
+
"react-dom": ">=17.0.0 <19.0.0",
|
|
51
38
|
"@zimyo/components": "^4.2.5"
|
|
52
39
|
},
|
|
53
40
|
"devDependencies": {
|
|
54
|
-
"
|
|
55
|
-
"
|
|
41
|
+
"react": "^17.0.1",
|
|
42
|
+
"react-dom": "^17.0.1",
|
|
43
|
+
"@types/lodash-es": "^4.17.12",
|
|
56
44
|
"@types/node": "^20.14.9",
|
|
57
45
|
"@types/react": "^18.3.3",
|
|
58
46
|
"@types/react-dom": "^18.3.0",
|
|
@@ -60,12 +48,17 @@
|
|
|
60
48
|
"@typescript-eslint/eslint-plugin": "^7.13.1",
|
|
61
49
|
"@typescript-eslint/parser": "^7.13.1",
|
|
62
50
|
"@vitejs/plugin-react": "^4.3.1",
|
|
51
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
63
52
|
"eslint": "^8.57.0",
|
|
64
53
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
65
54
|
"eslint-plugin-react-refresh": "^0.4.7",
|
|
66
55
|
"rollup-plugin-typescript-paths": "^1.5.0",
|
|
56
|
+
"terser": "^5.39.2",
|
|
67
57
|
"typescript": "^5.2.2",
|
|
68
58
|
"vite": "^5.3.1",
|
|
69
|
-
"vite-
|
|
59
|
+
"vite-bundle-analyzer": "^0.21.0",
|
|
60
|
+
"vite-plugin-dts": "^3.9.1",
|
|
61
|
+
"@mui/material": "^5.16.5",
|
|
62
|
+
"@zimyo/components": "^4.2.5"
|
|
70
63
|
}
|
|
71
64
|
}
|
package/dist/.vite/manifest.json
DELETED
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './index.css';
|