@zimyo/engage 0.3.5-hrms → 0.3.6-hrms

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 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 kV;function J4e(){return kV||(kV=1,process.env.NODE_ENV!=="production"&&function(){function e(u,p){return u===p&&(u!==0||1/u===1/p)||u!==u&&p!==p}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=V,n=Yte(),r=typeof Object.is=="function"?Object.is:e,o=n.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,l=t.useDebugValue;yA.useSyncExternalStoreWithSelector=function(u,p,g,h,m){var c=i(null);if(c.current===null){var f={hasValue:!1,value:null};c.current=f}else f=c.current;c=s(function(){function b(C){if(!y){if(y=!0,_=C,C=h(C),m!==void 0&&f.hasValue){var S=f.value;if(m(S,C))return w=S}return w=C}if(S=w,r(_,C))return S;var k=h(C);return m!==void 0&&m(S,k)?(_=C,S):(_=C,w=k)}var y=!1,_,w,x=g===void 0?null:g;return[function(){return b(p())},x===null?void 0:function(){return b(x())}]},[p,g,h,m]);var v=o(u,c[0],c[1]);return a(function(){f.hasValue=!0,f.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())}()),yA}process.env.NODE_ENV==="production"?r9.exports=Z4e():r9.exports=J4e();var K4e=r9.exports;const Q4e=Ea(K4e),Ute={},{useDebugValue:eTe}=V,{useSyncExternalStoreWithSelector:tTe}=Q4e;let IV=!1;const nTe=e=>e;function rTe(e,t=nTe,n){(Ute?"production":void 0)!=="production"&&n&&!IV&&(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"),IV=!0);const r=tTe(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return eTe(r),r}const AV=e=>{(Ute?"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 t=typeof e=="function"?U4e(e):e,n=(r,o)=>rTe(t,r,o);return Object.assign(n,t),n},qte=e=>e?AV(e):AV,hi=qte(e=>({session:{user:void 0,token:void 0,apiURL:void 0},setSession:t=>e(()=>({session:t})),clearSession:()=>e(()=>({session:{user:void 0,apiURL:void 0,token:void 0}}))})),Ni=qte(e=>({alert:{isLoading:!1,type:void 0,message:void 0},pushAlert:t=>e(({alert:n})=>({alert:Pe(ie({},n),{message:t.message,type:t.type})})),setLoading:({isLoading:t})=>e(({alert:n})=>({alert:Pe(ie({},n),{isLoading:t})})),clearAlert:()=>e(({alert:t})=>({alert:Pe(ie({},t),{message:void 0,type:void 0})}))})),ki=(e,t,n,r)=>{var c,f;const{pushAlert:o}=Ni(),{session:{token:i,API_BASE_URL:a}}=hi(),m=t,{url:s,isNativeEndpoint:l=!0}=m,u=Wr(m,["url","isNativeEndpoint"]);let p=Pe(ie({},u),{url:`${a}${s}`});l||(p=Pe(ie({},p),{url:s})),p!=null&&p.token||(p=Pe(ie({},p),{token:i}));const g=hSe([n,p],({signal:v})=>e(p,v),ie({enabled:!!p.token,keepPreviousData:!0,cacheTime:15*60*1e3,staleTime:15*60*1e3,refetchOnWindowFocus:!1,refetchInterval:!1,retry:3,retryDelay:2e3,onSuccess:v=>{var b,y;(b=v==null?void 0:v.data)!=null&&b.error&&o({message:((y=v==null?void 0:v.data)==null?void 0:y.message)||"Something Went Wrong",type:"error"})},onError:({response:v})=>{var b;o({message:((b=v==null?void 0:v.data)==null?void 0:b.message)||"Something Went Wrong",type:"error"})}},r)),h=g==null?void 0:g.data;return g.data=(f=(c=g==null?void 0:g.data)==null?void 0:c.data)==null?void 0:f.data,ie({rq_data:h},g)},dn={COMMON:{FETCH_HRADMIN_EMAIL_LIST:"auth/getSubuserlistForOnboarding",UPLOAD_FILE_TO_S3:"auth/hrms/upload/file"},AUTH:{LOGIN:"guest/user/login",USER:"/user"},EMPLOYEE:{SEARCH:"admin/employee/search"},ORG_SETTING:{FETCH:"admin/org-settings",UPDATE:"admin/org-settings/update"},DASHBOARD:{FEEDBACK:{ANALYTICS:"admin/dashboard/feedback-analytics",MEETING:"admin/dashboard/meeting-list"}},BADGE:{FETCH:"admin/badge-master/list",CREATE:"admin/badge-master/create",UPDATE:"admin/badge-master/update",DELETE:"admin/badge-master/delete"},APPRECIATION:{FETCH:"admin/appreciation/list",CREATE:"admin/appreciation/create"},CONTINUOUS_FEEDBACK:{FETCH:"admin/feedback/list",CREATE:"admin/feedback/create",RATING_SKILL:{FETCH:"admin/org-rating-skill/list",CREATE:"admin/org-rating-skill/create",UPDATE:"admin/org-rating-skill/update",DELETE:"admin/org-rating-skill/delete"},FORM_FIELDS:{GET:"common/get-form-field",SEARCH:"common/get-form-master"}},PIP:{GET_LIST:"auth/hrms/pip-list",FETCH_PIP_FEEDBACK:"auth/hrms/pip-feedback",GET_EDIT_PIP_DETAILS:"auth/hrms/get-emp-details",SUBMIT_ACTION_ON_PIP:"auth/hrms/EditPipEmployee",GET_EMPLOYEE_PIP_DETAIL:"auth/hrms/pip-detail",INITIATE_PIP:"auth/hrms/pipemployee",EDIT_EMPLOYEE_PIP:"auth/hrms/EditPipEmployee",SEARCH_EMP:"auth/hrms/pip-emp-search",AKNOWLEDGE:"auth//hrms/pip-acknowledge",NOTIFICATIONS:"admin/get-review-notification",GET_MAIL_TEMPLATE:"admin/email_template/getMailTemplate",SAVE_MAIL_TEMPLATE:"admin/email_template/savetemplate",UPDATE_NOTIFICATIONS:"admin/notification/updateNotification",SAPMLE_PIP_DOWNLOAD:"auth/hrms/pip-bulk-sample-excel",UPLOAD_PIP_EMPLOYEES:"auth/hrms/pip-bulk-submit-excel"},ONE_TO_ONE:{FETCH:"admin/meeting/list",FETCH_ONE:"admin/meeting/",CREATE:"admin/meeting/create",UPDATE:"admin/meeting/update",RESCHEDULE:"admin/meeting/reschedule",GOOGLE_MEET:{CREATE:"admin/meeting/create/google-meet",CANCEL:"admin/meeting/virtual/cancel"},MS_TEAMS:{CREATE:"admin/meeting/create/ms-teams"},REMARK:{CREATE:"admin/meeting/remark/create"}}};function is(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function yd(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Xte(e){if(W.isValidElement(e)||!yd(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Xte(e[n])}),t}function Ca(e,t,n={clone:!0}){const r=n.clone?z({},e):e;return yd(e)&&yd(t)&&Object.keys(t).forEach(o=>{W.isValidElement(t[o])?r[o]=t[o]:yd(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&yd(e[o])?r[o]=Ca(e[o],t[o],n):n.clone?r[o]=yd(t[o])?Xte(t[o]):t[o]:r[o]=t[o]}),r}const oTe=Object.freeze(Object.defineProperty({__proto__:null,default:Ca,isPlainObject:yd},Symbol.toStringTag,{value:"Module"}));var o9={exports:{}},NC={exports:{}},Gr={};/** @license React v16.13.1
67
+ */var kV;function J4e(){return kV||(kV=1,process.env.NODE_ENV!=="production"&&function(){function e(u,p){return u===p&&(u!==0||1/u===1/p)||u!==u&&p!==p}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=V,n=Yte(),r=typeof Object.is=="function"?Object.is:e,o=n.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,l=t.useDebugValue;yA.useSyncExternalStoreWithSelector=function(u,p,g,h,m){var c=i(null);if(c.current===null){var f={hasValue:!1,value:null};c.current=f}else f=c.current;c=s(function(){function b(C){if(!y){if(y=!0,_=C,C=h(C),m!==void 0&&f.hasValue){var S=f.value;if(m(S,C))return w=S}return w=C}if(S=w,r(_,C))return S;var k=h(C);return m!==void 0&&m(S,k)?(_=C,S):(_=C,w=k)}var y=!1,_,w,x=g===void 0?null:g;return[function(){return b(p())},x===null?void 0:function(){return b(x())}]},[p,g,h,m]);var v=o(u,c[0],c[1]);return a(function(){f.hasValue=!0,f.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())}()),yA}process.env.NODE_ENV==="production"?r9.exports=Z4e():r9.exports=J4e();var K4e=r9.exports;const Q4e=Ea(K4e),Ute={},{useDebugValue:eTe}=V,{useSyncExternalStoreWithSelector:tTe}=Q4e;let IV=!1;const nTe=e=>e;function rTe(e,t=nTe,n){(Ute?"production":void 0)!=="production"&&n&&!IV&&(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"),IV=!0);const r=tTe(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return eTe(r),r}const AV=e=>{(Ute?"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 t=typeof e=="function"?U4e(e):e,n=(r,o)=>rTe(t,r,o);return Object.assign(n,t),n},qte=e=>e?AV(e):AV,hi=qte(e=>({session:{user:void 0,token:void 0,apiURL:void 0},setSession:t=>e(()=>({session:t})),clearSession:()=>e(()=>({session:{user:void 0,apiURL:void 0,token:void 0}}))})),Ni=qte(e=>({alert:{isLoading:!1,type:void 0,message:void 0},pushAlert:t=>e(({alert:n})=>({alert:Pe(ie({},n),{message:t.message,type:t.type})})),setLoading:({isLoading:t})=>e(({alert:n})=>({alert:Pe(ie({},n),{isLoading:t})})),clearAlert:()=>e(({alert:t})=>({alert:Pe(ie({},t),{message:void 0,type:void 0})}))})),ki=(e,t,n,r)=>{var c,f;const{pushAlert:o}=Ni(),{session:{token:i,API_BASE_URL:a}}=hi(),m=t,{url:s,isNativeEndpoint:l=!0}=m,u=Wr(m,["url","isNativeEndpoint"]);let p=Pe(ie({},u),{url:`${a}${s}`});l||(p=Pe(ie({},p),{url:s})),p!=null&&p.token||(p=Pe(ie({},p),{token:i}));const g=hSe([n,p],({signal:v})=>e(p,v),ie({enabled:!!p.token,keepPreviousData:!0,cacheTime:15*60*1e3,staleTime:15*60*1e3,refetchOnWindowFocus:!1,refetchInterval:!1,retry:3,retryDelay:2e3,onSuccess:v=>{var b,y;(b=v==null?void 0:v.data)!=null&&b.error&&o({message:((y=v==null?void 0:v.data)==null?void 0:y.message)||"Something Went Wrong",type:"error"})},onError:({response:v})=>{var b;o({message:((b=v==null?void 0:v.data)==null?void 0:b.message)||"Something Went Wrong",type:"error"})}},r)),h=g==null?void 0:g.data;return g.data=(f=(c=g==null?void 0:g.data)==null?void 0:c.data)==null?void 0:f.data,ie({rq_data:h},g)},dn={COMMON:{FETCH_HRADMIN_EMAIL_LIST:"apiv2/auth/getSubuserlistForOnboarding",UPLOAD_FILE_TO_S3:"apiv2/auth/hrms/upload/file"},AUTH:{LOGIN:"guest/user/login",USER:"/user"},EMPLOYEE:{SEARCH:"admin/employee/search"},ORG_SETTING:{FETCH:"admin/org-settings",UPDATE:"admin/org-settings/update"},DASHBOARD:{FEEDBACK:{ANALYTICS:"admin/dashboard/feedback-analytics",MEETING:"admin/dashboard/meeting-list"}},BADGE:{FETCH:"admin/badge-master/list",CREATE:"admin/badge-master/create",UPDATE:"admin/badge-master/update",DELETE:"admin/badge-master/delete"},APPRECIATION:{FETCH:"admin/appreciation/list",CREATE:"admin/appreciation/create"},CONTINUOUS_FEEDBACK:{FETCH:"admin/feedback/list",CREATE:"admin/feedback/create",RATING_SKILL:{FETCH:"admin/org-rating-skill/list",CREATE:"admin/org-rating-skill/create",UPDATE:"admin/org-rating-skill/update",DELETE:"admin/org-rating-skill/delete"},FORM_FIELDS:{GET:"common/get-form-field",SEARCH:"common/get-form-master"}},PIP:{GET_LIST:"apiv2/auth/hrms/pip-list",FETCH_PIP_FEEDBACK:"apiv2/auth/hrms/pip-feedback",GET_EDIT_PIP_DETAILS:"apiv2/auth/hrms/get-emp-details",SUBMIT_ACTION_ON_PIP:"apiv2/auth/hrms/EditPipEmployee",GET_EMPLOYEE_PIP_DETAIL:"apiv2/auth/hrms/pip-detail",INITIATE_PIP:"apiv2/auth/hrms/pipemployee",EDIT_EMPLOYEE_PIP:"apiv2/auth/hrms/EditPipEmployee",SEARCH_EMP:"apiv2/auth/hrms/pip-emp-search",AKNOWLEDGE:"apiv2/auth//hrms/pip-acknowledge",NOTIFICATIONS:"admin/get-review-notification",GET_MAIL_TEMPLATE:"admin/email_template/getMailTemplate",SAVE_MAIL_TEMPLATE:"admin/email_template/savetemplate",UPDATE_NOTIFICATIONS:"admin/notification/updateNotification",SAPMLE_PIP_DOWNLOAD:"apiv2/auth/hrms/pip-bulk-sample-excel",UPLOAD_PIP_EMPLOYEES:"apiv2/auth/hrms/pip-bulk-submit-excel"},ONE_TO_ONE:{FETCH:"admin/meeting/list",FETCH_ONE:"admin/meeting/",CREATE:"admin/meeting/create",UPDATE:"admin/meeting/update",RESCHEDULE:"admin/meeting/reschedule",GOOGLE_MEET:{CREATE:"admin/meeting/create/google-meet",CANCEL:"admin/meeting/virtual/cancel"},MS_TEAMS:{CREATE:"admin/meeting/create/ms-teams"},REMARK:{CREATE:"admin/meeting/remark/create"}}};function is(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function yd(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Xte(e){if(W.isValidElement(e)||!yd(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Xte(e[n])}),t}function Ca(e,t,n={clone:!0}){const r=n.clone?z({},e):e;return yd(e)&&yd(t)&&Object.keys(t).forEach(o=>{W.isValidElement(t[o])?r[o]=t[o]:yd(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&yd(e[o])?r[o]=Ca(e[o],t[o],n):n.clone?r[o]=yd(t[o])?Xte(t[o]):t[o]:r[o]=t[o]}),r}const oTe=Object.freeze(Object.defineProperty({__proto__:null,default:Ca,isPlainObject:yd},Symbol.toStringTag,{value:"Module"}));var o9={exports:{}},NC={exports:{}},Gr={};/** @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
@@ -3468,8 +3468,8 @@ const UV = (e) => {
3468
3468
  return g.data = (f = (c = g == null ? void 0 : g.data) == null ? void 0 : c.data) == null ? void 0 : f.data, ie({ rq_data: h }, g);
3469
3469
  }, gn = {
3470
3470
  COMMON: {
3471
- FETCH_HRADMIN_EMAIL_LIST: "auth/getSubuserlistForOnboarding",
3472
- UPLOAD_FILE_TO_S3: "auth/hrms/upload/file"
3471
+ FETCH_HRADMIN_EMAIL_LIST: "apiv2/auth/getSubuserlistForOnboarding",
3472
+ UPLOAD_FILE_TO_S3: "apiv2/auth/hrms/upload/file"
3473
3473
  },
3474
3474
  AUTH: {
3475
3475
  LOGIN: "guest/user/login",
@@ -3513,21 +3513,21 @@ const UV = (e) => {
3513
3513
  }
3514
3514
  },
3515
3515
  PIP: {
3516
- GET_LIST: "auth/hrms/pip-list",
3517
- FETCH_PIP_FEEDBACK: "auth/hrms/pip-feedback",
3518
- GET_EDIT_PIP_DETAILS: "auth/hrms/get-emp-details",
3519
- SUBMIT_ACTION_ON_PIP: "auth/hrms/EditPipEmployee",
3520
- GET_EMPLOYEE_PIP_DETAIL: "auth/hrms/pip-detail",
3521
- INITIATE_PIP: "auth/hrms/pipemployee",
3522
- EDIT_EMPLOYEE_PIP: "auth/hrms/EditPipEmployee",
3523
- SEARCH_EMP: "auth/hrms/pip-emp-search",
3524
- AKNOWLEDGE: "auth//hrms/pip-acknowledge",
3516
+ GET_LIST: "apiv2/auth/hrms/pip-list",
3517
+ FETCH_PIP_FEEDBACK: "apiv2/auth/hrms/pip-feedback",
3518
+ GET_EDIT_PIP_DETAILS: "apiv2/auth/hrms/get-emp-details",
3519
+ SUBMIT_ACTION_ON_PIP: "apiv2/auth/hrms/EditPipEmployee",
3520
+ GET_EMPLOYEE_PIP_DETAIL: "apiv2/auth/hrms/pip-detail",
3521
+ INITIATE_PIP: "apiv2/auth/hrms/pipemployee",
3522
+ EDIT_EMPLOYEE_PIP: "apiv2/auth/hrms/EditPipEmployee",
3523
+ SEARCH_EMP: "apiv2/auth/hrms/pip-emp-search",
3524
+ AKNOWLEDGE: "apiv2/auth//hrms/pip-acknowledge",
3525
3525
  NOTIFICATIONS: "admin/get-review-notification",
3526
3526
  GET_MAIL_TEMPLATE: "admin/email_template/getMailTemplate",
3527
3527
  SAVE_MAIL_TEMPLATE: "admin/email_template/savetemplate",
3528
3528
  UPDATE_NOTIFICATIONS: "admin/notification/updateNotification",
3529
- SAPMLE_PIP_DOWNLOAD: "auth/hrms/pip-bulk-sample-excel",
3530
- UPLOAD_PIP_EMPLOYEES: "auth/hrms/pip-bulk-submit-excel"
3529
+ SAPMLE_PIP_DOWNLOAD: "apiv2/auth/hrms/pip-bulk-sample-excel",
3530
+ UPLOAD_PIP_EMPLOYEES: "apiv2/auth/hrms/pip-bulk-submit-excel"
3531
3531
  },
3532
3532
  ONE_TO_ONE: {
3533
3533
  FETCH: "admin/meeting/list",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zimyo/engage",
3
3
  "private": false,
4
- "version": "0.3.5-hrms",
4
+ "version": "0.3.6-hrms",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },