@zimyo/manage 0.2.21 → 0.2.22
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 +1 -1
- package/dist/main.js +1 -1
- package/dist/shared/constants/endpoints.d.ts +1 -1
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -64,7 +64,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
64
64
|
*
|
|
65
65
|
* This source code is licensed under the MIT license found in the
|
|
66
66
|
* LICENSE file in the root directory of this source tree.
|
|
67
|
-
*/var AV;function dbe(){return AV||(AV=1,process.env.NODE_ENV!=="production"&&function(){function e(c,d){return c===d&&(c!==0||1/c===1/d)||c!==c&&d!==d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=U,t=sQ(),r=typeof Object.is=="function"?Object.is:e,o=t.useSyncExternalStore,i=n.useRef,a=n.useEffect,s=n.useMemo,l=n.useDebugValue;CP.useSyncExternalStoreWithSelector=function(c,d,p,f,g){var h=i(null);if(h.current===null){var m={hasValue:!1,value:null};h.current=m}else m=h.current;h=s(function(){function b(E){if(!w){if(w=!0,C=E,E=f(E),g!==void 0&&m.hasValue){var M=m.value;if(g(M,E))return O=M}return O=E}if(M=O,r(C,E))return M;var R=f(E);return g!==void 0&&g(M,R)?(C=E,M):(C=E,O=R)}var w=!1,C,O,x=p===void 0?null:p;return[function(){return b(d())},x===null?void 0:function(){return b(x())}]},[d,p,f,g]);var v=o(c,h[0],h[1]);return a(function(){m.hasValue=!0,m.value=v},[v]),l(v),v},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),CP}process.env.NODE_ENV==="production"?PD.exports=ube():PD.exports=dbe();var pbe=PD.exports;const fbe=tf(pbe),lQ={},{useDebugValue:hbe}=U,{useSyncExternalStoreWithSelector:mbe}=fbe;let DV=!1;const gbe=e=>e;function vbe(e,n=gbe,t){(lQ?"production":void 0)!=="production"&&t&&!DV&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),DV=!0);const r=mbe(e.subscribe,e.getState,e.getServerState||e.getInitialState,n,t);return hbe(r),r}const _V=e=>{(lQ?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const n=typeof e=="function"?sbe(e):e,t=(r,o)=>vbe(n,r,o);return Object.assign(t,n),t},cQ=e=>e?_V(e):_V,Wh=cQ(e=>({session:{user:void 0,token:void 0,apiURL:void 0},setSession:n=>e(()=>({session:n})),clearSession:()=>e(()=>({session:{user:void 0,apiURL:void 0,token:void 0}}))})),uQ={SUCCESS:"success",ERROR:"error"},NE=cQ(e=>({alert:{isLoading:!1,type:void 0,message:void 0},pushAlert:n=>e(({alert:t})=>({alert:un(pt({},t),{message:n.message,type:n.type})})),setLoading:({isLoading:n})=>e(({alert:t})=>({alert:un(pt({},t),{isLoading:n})})),clearAlert:()=>e(({alert:n})=>({alert:un(pt({},n),{message:void 0,type:void 0})}))})),Rb=()=>{const{pushAlert:e}=NE();return t=>{e({type:uQ.ERROR,message:t!=null?t:"Error"})}},Gu=(e,n,t,r)=>{var h,m;const o=Rb(),{session:{token:i,API_BASE_URL:a}}=Wh(),g=n,{url:s,isNativeEndpoint:l=!0}=g,c=bd(g,["url","isNativeEndpoint"]);let d=un(pt({},c),{url:`${a}${s}`});l||(d=un(pt({},d),{url:s})),d!=null&&d.token||(d=un(pt({},d),{token:i||localStorage.getItem("token")||""}));let p=Ive([t,d],({signal:v})=>e(d,v),pt({enabled:!!d.token,keepPreviousData:!0,cacheTime:15*60*1e3,staleTime:15*60*1e3,refetchOnWindowFocus:!1,refetchInterval:!1,retry:3,retryDelay:2e3,onSuccess:v=>{var b,w,C;(b=v==null?void 0:v.data)!=null&&b.error&&o((C=(w=v==null?void 0:v.data)==null?void 0:w.message)!=null?C:"Something Went Wrong")},onError:({response:v})=>{var b,w;o((w=(b=v==null?void 0:v.data)==null?void 0:b.message)!=null?w:"Something Went Wrong")}},r));const f=p==null?void 0:p.data;return p.data=(m=(h=p==null?void 0:p.data)==null?void 0:h.data)==null?void 0:m.data,pt({rq_data:f},p)},ybe="/user",bbe="helper/country_list",xbe="helper/state_list",dQ="subscription/overview",wbe="subscription/customer-subscription",Cbe="subscription/transaction-history",Sbe="subscription/add-money-wallet-customer",Obe="subscription/customer-invoice",Tbe="subscription/client-consumption",kbe="subscription/customer-modify-subscription",Ebe="secure/subscribe-payment-status",pQ="subscription/renew-subscription",Mbe="subscription/update-org-details",fQ="subscription/invoice",Ibe="subscription/addonclient_list",Pbe="customer/communication_email-list";function rf(e,n){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||n(...r)}}function Kv(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function hQ(e){if(F.isValidElement(e)||!Kv(e))return e;const n={};return Object.keys(e).forEach(t=>{n[t]=hQ(e[t])}),n}function $p(e,n,t={clone:!0}){const r=t.clone?ne({},e):e;return Kv(e)&&Kv(n)&&Object.keys(n).forEach(o=>{F.isValidElement(n[o])?r[o]=n[o]:Kv(n[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Kv(e[o])?r[o]=$p(e[o],n[o],t):t.clone?r[o]=Kv(n[o])?hQ(n[o]):n[o]:r[o]=n[o]}),r}var RD={exports:{}},jO={exports:{}},ao={};/** @license React v16.13.1
|
|
67
|
+
*/var AV;function dbe(){return AV||(AV=1,process.env.NODE_ENV!=="production"&&function(){function e(c,d){return c===d&&(c!==0||1/c===1/d)||c!==c&&d!==d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=U,t=sQ(),r=typeof Object.is=="function"?Object.is:e,o=t.useSyncExternalStore,i=n.useRef,a=n.useEffect,s=n.useMemo,l=n.useDebugValue;CP.useSyncExternalStoreWithSelector=function(c,d,p,f,g){var h=i(null);if(h.current===null){var m={hasValue:!1,value:null};h.current=m}else m=h.current;h=s(function(){function b(E){if(!w){if(w=!0,C=E,E=f(E),g!==void 0&&m.hasValue){var M=m.value;if(g(M,E))return O=M}return O=E}if(M=O,r(C,E))return M;var R=f(E);return g!==void 0&&g(M,R)?(C=E,M):(C=E,O=R)}var w=!1,C,O,x=p===void 0?null:p;return[function(){return b(d())},x===null?void 0:function(){return b(x())}]},[d,p,f,g]);var v=o(c,h[0],h[1]);return a(function(){m.hasValue=!0,m.value=v},[v]),l(v),v},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),CP}process.env.NODE_ENV==="production"?PD.exports=ube():PD.exports=dbe();var pbe=PD.exports;const fbe=tf(pbe),lQ={},{useDebugValue:hbe}=U,{useSyncExternalStoreWithSelector:mbe}=fbe;let DV=!1;const gbe=e=>e;function vbe(e,n=gbe,t){(lQ?"production":void 0)!=="production"&&t&&!DV&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),DV=!0);const r=mbe(e.subscribe,e.getState,e.getServerState||e.getInitialState,n,t);return hbe(r),r}const _V=e=>{(lQ?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const n=typeof e=="function"?sbe(e):e,t=(r,o)=>vbe(n,r,o);return Object.assign(t,n),t},cQ=e=>e?_V(e):_V,Wh=cQ(e=>({session:{user:void 0,token:void 0,apiURL:void 0},setSession:n=>e(()=>({session:n})),clearSession:()=>e(()=>({session:{user:void 0,apiURL:void 0,token:void 0}}))})),uQ={SUCCESS:"success",ERROR:"error"},NE=cQ(e=>({alert:{isLoading:!1,type:void 0,message:void 0},pushAlert:n=>e(({alert:t})=>({alert:un(pt({},t),{message:n.message,type:n.type})})),setLoading:({isLoading:n})=>e(({alert:t})=>({alert:un(pt({},t),{isLoading:n})})),clearAlert:()=>e(({alert:n})=>({alert:un(pt({},n),{message:void 0,type:void 0})}))})),Rb=()=>{const{pushAlert:e}=NE();return t=>{e({type:uQ.ERROR,message:t!=null?t:"Error"})}},Gu=(e,n,t,r)=>{var h,m;const o=Rb(),{session:{token:i,API_BASE_URL:a}}=Wh(),g=n,{url:s,isNativeEndpoint:l=!0}=g,c=bd(g,["url","isNativeEndpoint"]);let d=un(pt({},c),{url:`${a}${s}`});l||(d=un(pt({},d),{url:s})),d!=null&&d.token||(d=un(pt({},d),{token:i||localStorage.getItem("token")||""}));let p=Ive([t,d],({signal:v})=>e(d,v),pt({enabled:!!d.token,keepPreviousData:!0,cacheTime:15*60*1e3,staleTime:15*60*1e3,refetchOnWindowFocus:!1,refetchInterval:!1,retry:3,retryDelay:2e3,onSuccess:v=>{var b,w,C;(b=v==null?void 0:v.data)!=null&&b.error&&o((C=(w=v==null?void 0:v.data)==null?void 0:w.message)!=null?C:"Something Went Wrong")},onError:({response:v})=>{var b,w;o((w=(b=v==null?void 0:v.data)==null?void 0:b.message)!=null?w:"Something Went Wrong")}},r));const f=p==null?void 0:p.data;return p.data=(m=(h=p==null?void 0:p.data)==null?void 0:h.data)==null?void 0:m.data,pt({rq_data:f},p)},ybe="/user",bbe="helper/country_list",xbe="helper/state_list",dQ="subscription/overview",wbe="subscription/customer-subscription",Cbe="subscription/transaction-history",Sbe="subscription/add-money-wallet-customer",Obe="subscription/customer-invoice",Tbe="subscription/client-consumption",kbe="subscription/customer-modify-subscription",Ebe="secure/subscribe-payment-status",pQ="subscription/renew-subscription",Mbe="subscription/update-org-details",fQ="subscription/account-invoice",Ibe="subscription/addonclient_list",Pbe="customer/communication_email-list";function rf(e,n){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||n(...r)}}function Kv(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function hQ(e){if(F.isValidElement(e)||!Kv(e))return e;const n={};return Object.keys(e).forEach(t=>{n[t]=hQ(e[t])}),n}function $p(e,n,t={clone:!0}){const r=t.clone?ne({},e):e;return Kv(e)&&Kv(n)&&Object.keys(n).forEach(o=>{F.isValidElement(n[o])?r[o]=n[o]:Kv(n[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Kv(e[o])?r[o]=$p(e[o],n[o],t):t.clone?r[o]=Kv(n[o])?hQ(n[o]):n[o]:r[o]=n[o]}),r}var RD={exports:{}},jO={exports:{}},ao={};/** @license React v16.13.1
|
|
68
68
|
* react-is.production.min.js
|
|
69
69
|
*
|
|
70
70
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
package/dist/main.js
CHANGED
|
@@ -3376,7 +3376,7 @@ const XV = (e) => {
|
|
|
3376
3376
|
}, r));
|
|
3377
3377
|
const f = p == null ? void 0 : p.data;
|
|
3378
3378
|
return p.data = (m = (h = p == null ? void 0 : p.data) == null ? void 0 : h.data) == null ? void 0 : m.data, pt({ rq_data: f }, p);
|
|
3379
|
-
}, Fbe = "/user", Lbe = "helper/country_list", Bbe = "helper/state_list", EQ = "subscription/overview", Vbe = "subscription/customer-subscription", $be = "subscription/transaction-history", zbe = "subscription/add-money-wallet-customer", Wbe = "subscription/customer-invoice", Hbe = "subscription/client-consumption", Gbe = "subscription/customer-modify-subscription", Ybe = "secure/subscribe-payment-status", IQ = "subscription/renew-subscription", Ube = "subscription/update-org-details", PQ = "subscription/invoice", Xbe = "subscription/addonclient_list", qbe = "customer/communication_email-list";
|
|
3379
|
+
}, Fbe = "/user", Lbe = "helper/country_list", Bbe = "helper/state_list", EQ = "subscription/overview", Vbe = "subscription/customer-subscription", $be = "subscription/transaction-history", zbe = "subscription/add-money-wallet-customer", Wbe = "subscription/customer-invoice", Hbe = "subscription/client-consumption", Gbe = "subscription/customer-modify-subscription", Ybe = "secure/subscribe-payment-status", IQ = "subscription/renew-subscription", Ube = "subscription/update-org-details", PQ = "subscription/account-invoice", Xbe = "subscription/addonclient_list", qbe = "customer/communication_email-list";
|
|
3380
3380
|
function ff(e, n) {
|
|
3381
3381
|
return process.env.NODE_ENV === "production" ? () => null : function(...r) {
|
|
3382
3382
|
return e(...r) || n(...r);
|
|
@@ -14,7 +14,7 @@ export declare const MODIFY_SUBSCRIPTION = "subscription/customer-modify-subscri
|
|
|
14
14
|
export declare const CHECK_CASHFREE_PAYMENT_SUCCESS = "secure/subscribe-payment-status";
|
|
15
15
|
export declare const RENEW_SUBSCRIPTION = "subscription/renew-subscription";
|
|
16
16
|
export declare const UPDATE_ORG_DETAILS = "subscription/update-org-details";
|
|
17
|
-
export declare const BILLING_INVOICE = "subscription/invoice";
|
|
17
|
+
export declare const BILLING_INVOICE = "subscription/account-invoice";
|
|
18
18
|
export declare const ADDON_CLIENT_LIST = "subscription/addonclient_list";
|
|
19
19
|
export declare const SUBSCRIPTION_UPDATE_STATUS = "subscription/update-subscription-status";
|
|
20
20
|
export declare const CUSTOMER_MAILS = "customer/communication_email-list";
|