@northern.tech/store 0.46.0 → 0.46.1
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/auth.cjs +1 -0
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.js +2 -1
- package/dist/auth.js.map +1 -1
- package/dist/organizationSlice/thunks.d.cts +12 -12
- package/dist/organizationSlice/thunks.d.ts +12 -12
- package/dist/usersSlice/thunks.d.cts +36 -36
- package/package.json +1 -1
package/dist/auth.cjs
CHANGED
|
@@ -48,6 +48,7 @@ const cleanUp = () => {
|
|
|
48
48
|
cookies.remove("JWT", { path: "/" });
|
|
49
49
|
window.localStorage.removeItem("JWT");
|
|
50
50
|
window.localStorage.removeItem("oauth");
|
|
51
|
+
window.localStorage.removeItem(require_constants.settingsKeys.colorScheme);
|
|
51
52
|
};
|
|
52
53
|
const updateMaxAge = ({ expiresAt, token }) => {
|
|
53
54
|
const oAuthExpiration = Number(window.localStorage.getItem("oauth"));
|
package/dist/auth.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.cjs","names":["Cookies","maxSessionAge","TIMEOUTS"],"sources":["../src/auth.ts"],"sourcesContent":["// Copyright 2016 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport Cookies from 'universal-cookie';\n\nimport { TIMEOUTS, maxSessionAge } from './constants';\nimport type { UserSession } from './usersSlice';\n\nconst cookies = new Cookies();\n\nconst emptySession = Object.freeze({ token: '', expiresAt: undefined }) as Readonly<UserSession>;\n\nlet tokenCache = '';\n\nexport const getSessionInfo = (): UserSession => {\n let sessionInfo = { ...emptySession } as UserSession;\n try {\n sessionInfo = JSON.parse(window.localStorage.getItem('JWT') ?? '');\n } catch {\n // most likely not logged in - nothing to do here\n }\n\n // check for cookie first to handles sso login while an old/expired token may still exist in cache/ localStorage\n const jwtTokenFromCookie = cookies.get('JWT', { doNotParse: true }) ?? '';\n if (jwtTokenFromCookie) {\n setSessionInfo({ token: jwtTokenFromCookie });\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n return { token: jwtTokenFromCookie, expiresAt: undefined };\n }\n if (sessionInfo.expiresAt && new Date(sessionInfo.expiresAt) < new Date()) {\n cleanUp();\n return { ...emptySession };\n }\n sessionInfo.token = sessionInfo.token || '';\n tokenCache = sessionInfo.token;\n return sessionInfo;\n};\n\nexport const getToken = () => (tokenCache ? tokenCache : getSessionInfo().token);\n\nexport const setSessionInfo = ({ token, expiresAt }: UserSession) => {\n tokenCache = token;\n window.localStorage.setItem('JWT', JSON.stringify({ token, expiresAt }));\n};\n\nexport const cleanUp = () => {\n tokenCache = '';\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n window.localStorage.removeItem('JWT');\n window.localStorage.removeItem('oauth');\n};\n\nexport const updateMaxAge = ({ expiresAt, token }) => {\n const oAuthExpiration = Number(window.localStorage.getItem('oauth'));\n let updateWithOAuth = false;\n if (oAuthExpiration) {\n const soon = Date.now() + maxSessionAge * TIMEOUTS.oneSecond;\n updateWithOAuth = oAuthExpiration <= soon;\n if (updateWithOAuth) {\n window.localStorage.removeItem('oauth');\n }\n }\n if (token && expiresAt && (!oAuthExpiration || updateWithOAuth)) {\n const expiration = new Date();\n expiration.setSeconds(expiration.getSeconds() + maxSessionAge);\n setSessionInfo({ token, expiresAt: expiration.toISOString() });\n }\n};\n"],"mappings":";;;;;;;AAkBA,MAAM,UAAU,IAAIA,iBAAAA,QAAQ;AAE5B,MAAM,eAAe,OAAO,OAAO;CAAE,OAAO;CAAI,WAAW,KAAA;AAAU,CAAC;AAEtE,IAAI,aAAa;AAEjB,MAAa,uBAAoC;CAC/C,IAAI,cAAc,EAAE,GAAG,aAAa;CACpC,IAAI;EACF,cAAc,KAAK,MAAM,OAAO,aAAa,QAAQ,KAAK,KAAK,EAAE;CACnE,QAAQ,CAER;CAGA,MAAM,qBAAqB,QAAQ,IAAI,OAAO,EAAE,YAAY,KAAK,CAAC,KAAK;CACvE,IAAI,oBAAoB;EACtB,eAAe,EAAE,OAAO,mBAAmB,CAAC;EAC5C,QAAQ,OAAO,KAAK;EACpB,QAAQ,OAAO,OAAO,EAAE,MAAM,IAAI,CAAC;EACnC,OAAO;GAAE,OAAO;GAAoB,WAAW,KAAA;EAAU;CAC3D;CACA,IAAI,YAAY,aAAa,IAAI,KAAK,YAAY,SAAS,oBAAI,IAAI,KAAK,GAAG;EACzE,QAAQ;EACR,OAAO,EAAE,GAAG,aAAa;CAC3B;CACA,YAAY,QAAQ,YAAY,SAAS;CACzC,aAAa,YAAY;CACzB,OAAO;AACT;AAEA,MAAa,iBAAkB,aAAa,aAAa,eAAe,CAAC,CAAC;AAE1E,MAAa,kBAAkB,EAAE,OAAO,gBAA6B;CACnE,aAAa;CACb,OAAO,aAAa,QAAQ,OAAO,KAAK,UAAU;EAAE;EAAO;CAAU,CAAC,CAAC;AACzE;AAEA,MAAa,gBAAgB;CAC3B,aAAa;CACb,QAAQ,OAAO,KAAK;CACpB,QAAQ,OAAO,OAAO,EAAE,MAAM,IAAI,CAAC;CACnC,OAAO,aAAa,WAAW,KAAK;CACpC,OAAO,aAAa,WAAW,OAAO;
|
|
1
|
+
{"version":3,"file":"auth.cjs","names":["Cookies","settingsKeys","maxSessionAge","TIMEOUTS"],"sources":["../src/auth.ts"],"sourcesContent":["// Copyright 2016 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport Cookies from 'universal-cookie';\n\nimport { TIMEOUTS, maxSessionAge, settingsKeys } from './constants';\nimport type { UserSession } from './usersSlice';\n\nconst cookies = new Cookies();\n\nconst emptySession = Object.freeze({ token: '', expiresAt: undefined }) as Readonly<UserSession>;\n\nlet tokenCache = '';\n\nexport const getSessionInfo = (): UserSession => {\n let sessionInfo = { ...emptySession } as UserSession;\n try {\n sessionInfo = JSON.parse(window.localStorage.getItem('JWT') ?? '');\n } catch {\n // most likely not logged in - nothing to do here\n }\n\n // check for cookie first to handles sso login while an old/expired token may still exist in cache/ localStorage\n const jwtTokenFromCookie = cookies.get('JWT', { doNotParse: true }) ?? '';\n if (jwtTokenFromCookie) {\n setSessionInfo({ token: jwtTokenFromCookie });\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n return { token: jwtTokenFromCookie, expiresAt: undefined };\n }\n if (sessionInfo.expiresAt && new Date(sessionInfo.expiresAt) < new Date()) {\n cleanUp();\n return { ...emptySession };\n }\n sessionInfo.token = sessionInfo.token || '';\n tokenCache = sessionInfo.token;\n return sessionInfo;\n};\n\nexport const getToken = () => (tokenCache ? tokenCache : getSessionInfo().token);\n\nexport const setSessionInfo = ({ token, expiresAt }: UserSession) => {\n tokenCache = token;\n window.localStorage.setItem('JWT', JSON.stringify({ token, expiresAt }));\n};\n\nexport const cleanUp = () => {\n tokenCache = '';\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n window.localStorage.removeItem('JWT');\n window.localStorage.removeItem('oauth');\n window.localStorage.removeItem(settingsKeys.colorScheme);\n};\n\nexport const updateMaxAge = ({ expiresAt, token }) => {\n const oAuthExpiration = Number(window.localStorage.getItem('oauth'));\n let updateWithOAuth = false;\n if (oAuthExpiration) {\n const soon = Date.now() + maxSessionAge * TIMEOUTS.oneSecond;\n updateWithOAuth = oAuthExpiration <= soon;\n if (updateWithOAuth) {\n window.localStorage.removeItem('oauth');\n }\n }\n if (token && expiresAt && (!oAuthExpiration || updateWithOAuth)) {\n const expiration = new Date();\n expiration.setSeconds(expiration.getSeconds() + maxSessionAge);\n setSessionInfo({ token, expiresAt: expiration.toISOString() });\n }\n};\n"],"mappings":";;;;;;;AAkBA,MAAM,UAAU,IAAIA,iBAAAA,QAAQ;AAE5B,MAAM,eAAe,OAAO,OAAO;CAAE,OAAO;CAAI,WAAW,KAAA;AAAU,CAAC;AAEtE,IAAI,aAAa;AAEjB,MAAa,uBAAoC;CAC/C,IAAI,cAAc,EAAE,GAAG,aAAa;CACpC,IAAI;EACF,cAAc,KAAK,MAAM,OAAO,aAAa,QAAQ,KAAK,KAAK,EAAE;CACnE,QAAQ,CAER;CAGA,MAAM,qBAAqB,QAAQ,IAAI,OAAO,EAAE,YAAY,KAAK,CAAC,KAAK;CACvE,IAAI,oBAAoB;EACtB,eAAe,EAAE,OAAO,mBAAmB,CAAC;EAC5C,QAAQ,OAAO,KAAK;EACpB,QAAQ,OAAO,OAAO,EAAE,MAAM,IAAI,CAAC;EACnC,OAAO;GAAE,OAAO;GAAoB,WAAW,KAAA;EAAU;CAC3D;CACA,IAAI,YAAY,aAAa,IAAI,KAAK,YAAY,SAAS,oBAAI,IAAI,KAAK,GAAG;EACzE,QAAQ;EACR,OAAO,EAAE,GAAG,aAAa;CAC3B;CACA,YAAY,QAAQ,YAAY,SAAS;CACzC,aAAa,YAAY;CACzB,OAAO;AACT;AAEA,MAAa,iBAAkB,aAAa,aAAa,eAAe,CAAC,CAAC;AAE1E,MAAa,kBAAkB,EAAE,OAAO,gBAA6B;CACnE,aAAa;CACb,OAAO,aAAa,QAAQ,OAAO,KAAK,UAAU;EAAE;EAAO;CAAU,CAAC,CAAC;AACzE;AAEA,MAAa,gBAAgB;CAC3B,aAAa;CACb,QAAQ,OAAO,KAAK;CACpB,QAAQ,OAAO,OAAO,EAAE,MAAM,IAAI,CAAC;CACnC,OAAO,aAAa,WAAW,KAAK;CACpC,OAAO,aAAa,WAAW,OAAO;CACtC,OAAO,aAAa,WAAWC,kBAAAA,aAAa,WAAW;AACzD;AAEA,MAAa,gBAAgB,EAAE,WAAW,YAAY;CACpD,MAAM,kBAAkB,OAAO,OAAO,aAAa,QAAQ,OAAO,CAAC;CACnE,IAAI,kBAAkB;CACtB,IAAI,iBAAiB;EAEnB,kBAAkB,mBADL,KAAK,IAAI,IAAIC,+BAAAA,gBAAgBC,kBAAAA,SAAS;EAEnD,IAAI,iBACF,OAAO,aAAa,WAAW,OAAO;CAE1C;CACA,IAAI,SAAS,cAAc,CAAC,mBAAmB,kBAAkB;EAC/D,MAAM,6BAAa,IAAI,KAAK;EAC5B,WAAW,WAAW,WAAW,WAAW,IAAID,+BAAAA,aAAa;EAC7D,eAAe;GAAE;GAAO,WAAW,WAAW,YAAY;EAAE,CAAC;CAC/D;AACF"}
|
package/dist/auth.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as maxSessionAge, Pt as TIMEOUTS } from "./constants-eWaA3HCq.js";
|
|
1
|
+
import { M as maxSessionAge, Pt as TIMEOUTS, Q as settingsKeys } from "./constants-eWaA3HCq.js";
|
|
2
2
|
import Cookies from "universal-cookie";
|
|
3
3
|
//#region src/auth.ts
|
|
4
4
|
const cookies = new Cookies();
|
|
@@ -44,6 +44,7 @@ const cleanUp = () => {
|
|
|
44
44
|
cookies.remove("JWT", { path: "/" });
|
|
45
45
|
window.localStorage.removeItem("JWT");
|
|
46
46
|
window.localStorage.removeItem("oauth");
|
|
47
|
+
window.localStorage.removeItem(settingsKeys.colorScheme);
|
|
47
48
|
};
|
|
48
49
|
const updateMaxAge = ({ expiresAt, token }) => {
|
|
49
50
|
const oAuthExpiration = Number(window.localStorage.getItem("oauth"));
|
package/dist/auth.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","names":[],"sources":["../src/auth.ts"],"sourcesContent":["// Copyright 2016 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport Cookies from 'universal-cookie';\n\nimport { TIMEOUTS, maxSessionAge } from './constants';\nimport type { UserSession } from './usersSlice';\n\nconst cookies = new Cookies();\n\nconst emptySession = Object.freeze({ token: '', expiresAt: undefined }) as Readonly<UserSession>;\n\nlet tokenCache = '';\n\nexport const getSessionInfo = (): UserSession => {\n let sessionInfo = { ...emptySession } as UserSession;\n try {\n sessionInfo = JSON.parse(window.localStorage.getItem('JWT') ?? '');\n } catch {\n // most likely not logged in - nothing to do here\n }\n\n // check for cookie first to handles sso login while an old/expired token may still exist in cache/ localStorage\n const jwtTokenFromCookie = cookies.get('JWT', { doNotParse: true }) ?? '';\n if (jwtTokenFromCookie) {\n setSessionInfo({ token: jwtTokenFromCookie });\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n return { token: jwtTokenFromCookie, expiresAt: undefined };\n }\n if (sessionInfo.expiresAt && new Date(sessionInfo.expiresAt) < new Date()) {\n cleanUp();\n return { ...emptySession };\n }\n sessionInfo.token = sessionInfo.token || '';\n tokenCache = sessionInfo.token;\n return sessionInfo;\n};\n\nexport const getToken = () => (tokenCache ? tokenCache : getSessionInfo().token);\n\nexport const setSessionInfo = ({ token, expiresAt }: UserSession) => {\n tokenCache = token;\n window.localStorage.setItem('JWT', JSON.stringify({ token, expiresAt }));\n};\n\nexport const cleanUp = () => {\n tokenCache = '';\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n window.localStorage.removeItem('JWT');\n window.localStorage.removeItem('oauth');\n};\n\nexport const updateMaxAge = ({ expiresAt, token }) => {\n const oAuthExpiration = Number(window.localStorage.getItem('oauth'));\n let updateWithOAuth = false;\n if (oAuthExpiration) {\n const soon = Date.now() + maxSessionAge * TIMEOUTS.oneSecond;\n updateWithOAuth = oAuthExpiration <= soon;\n if (updateWithOAuth) {\n window.localStorage.removeItem('oauth');\n }\n }\n if (token && expiresAt && (!oAuthExpiration || updateWithOAuth)) {\n const expiration = new Date();\n expiration.setSeconds(expiration.getSeconds() + maxSessionAge);\n setSessionInfo({ token, expiresAt: expiration.toISOString() });\n }\n};\n"],"mappings":";;;AAkBA,MAAM,UAAU,IAAI,QAAQ;AAE5B,MAAM,eAAe,OAAO,OAAO;CAAE,OAAO;CAAI,WAAW,KAAA;AAAU,CAAC;AAEtE,IAAI,aAAa;AAEjB,MAAa,uBAAoC;CAC/C,IAAI,cAAc,EAAE,GAAG,aAAa;CACpC,IAAI;EACF,cAAc,KAAK,MAAM,OAAO,aAAa,QAAQ,KAAK,KAAK,EAAE;CACnE,QAAQ,CAER;CAGA,MAAM,qBAAqB,QAAQ,IAAI,OAAO,EAAE,YAAY,KAAK,CAAC,KAAK;CACvE,IAAI,oBAAoB;EACtB,eAAe,EAAE,OAAO,mBAAmB,CAAC;EAC5C,QAAQ,OAAO,KAAK;EACpB,QAAQ,OAAO,OAAO,EAAE,MAAM,IAAI,CAAC;EACnC,OAAO;GAAE,OAAO;GAAoB,WAAW,KAAA;EAAU;CAC3D;CACA,IAAI,YAAY,aAAa,IAAI,KAAK,YAAY,SAAS,oBAAI,IAAI,KAAK,GAAG;EACzE,QAAQ;EACR,OAAO,EAAE,GAAG,aAAa;CAC3B;CACA,YAAY,QAAQ,YAAY,SAAS;CACzC,aAAa,YAAY;CACzB,OAAO;AACT;AAEA,MAAa,iBAAkB,aAAa,aAAa,eAAe,CAAC,CAAC;AAE1E,MAAa,kBAAkB,EAAE,OAAO,gBAA6B;CACnE,aAAa;CACb,OAAO,aAAa,QAAQ,OAAO,KAAK,UAAU;EAAE;EAAO;CAAU,CAAC,CAAC;AACzE;AAEA,MAAa,gBAAgB;CAC3B,aAAa;CACb,QAAQ,OAAO,KAAK;CACpB,QAAQ,OAAO,OAAO,EAAE,MAAM,IAAI,CAAC;CACnC,OAAO,aAAa,WAAW,KAAK;CACpC,OAAO,aAAa,WAAW,OAAO;
|
|
1
|
+
{"version":3,"file":"auth.js","names":[],"sources":["../src/auth.ts"],"sourcesContent":["// Copyright 2016 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport Cookies from 'universal-cookie';\n\nimport { TIMEOUTS, maxSessionAge, settingsKeys } from './constants';\nimport type { UserSession } from './usersSlice';\n\nconst cookies = new Cookies();\n\nconst emptySession = Object.freeze({ token: '', expiresAt: undefined }) as Readonly<UserSession>;\n\nlet tokenCache = '';\n\nexport const getSessionInfo = (): UserSession => {\n let sessionInfo = { ...emptySession } as UserSession;\n try {\n sessionInfo = JSON.parse(window.localStorage.getItem('JWT') ?? '');\n } catch {\n // most likely not logged in - nothing to do here\n }\n\n // check for cookie first to handles sso login while an old/expired token may still exist in cache/ localStorage\n const jwtTokenFromCookie = cookies.get('JWT', { doNotParse: true }) ?? '';\n if (jwtTokenFromCookie) {\n setSessionInfo({ token: jwtTokenFromCookie });\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n return { token: jwtTokenFromCookie, expiresAt: undefined };\n }\n if (sessionInfo.expiresAt && new Date(sessionInfo.expiresAt) < new Date()) {\n cleanUp();\n return { ...emptySession };\n }\n sessionInfo.token = sessionInfo.token || '';\n tokenCache = sessionInfo.token;\n return sessionInfo;\n};\n\nexport const getToken = () => (tokenCache ? tokenCache : getSessionInfo().token);\n\nexport const setSessionInfo = ({ token, expiresAt }: UserSession) => {\n tokenCache = token;\n window.localStorage.setItem('JWT', JSON.stringify({ token, expiresAt }));\n};\n\nexport const cleanUp = () => {\n tokenCache = '';\n cookies.remove('JWT');\n cookies.remove('JWT', { path: '/' });\n window.localStorage.removeItem('JWT');\n window.localStorage.removeItem('oauth');\n window.localStorage.removeItem(settingsKeys.colorScheme);\n};\n\nexport const updateMaxAge = ({ expiresAt, token }) => {\n const oAuthExpiration = Number(window.localStorage.getItem('oauth'));\n let updateWithOAuth = false;\n if (oAuthExpiration) {\n const soon = Date.now() + maxSessionAge * TIMEOUTS.oneSecond;\n updateWithOAuth = oAuthExpiration <= soon;\n if (updateWithOAuth) {\n window.localStorage.removeItem('oauth');\n }\n }\n if (token && expiresAt && (!oAuthExpiration || updateWithOAuth)) {\n const expiration = new Date();\n expiration.setSeconds(expiration.getSeconds() + maxSessionAge);\n setSessionInfo({ token, expiresAt: expiration.toISOString() });\n }\n};\n"],"mappings":";;;AAkBA,MAAM,UAAU,IAAI,QAAQ;AAE5B,MAAM,eAAe,OAAO,OAAO;CAAE,OAAO;CAAI,WAAW,KAAA;AAAU,CAAC;AAEtE,IAAI,aAAa;AAEjB,MAAa,uBAAoC;CAC/C,IAAI,cAAc,EAAE,GAAG,aAAa;CACpC,IAAI;EACF,cAAc,KAAK,MAAM,OAAO,aAAa,QAAQ,KAAK,KAAK,EAAE;CACnE,QAAQ,CAER;CAGA,MAAM,qBAAqB,QAAQ,IAAI,OAAO,EAAE,YAAY,KAAK,CAAC,KAAK;CACvE,IAAI,oBAAoB;EACtB,eAAe,EAAE,OAAO,mBAAmB,CAAC;EAC5C,QAAQ,OAAO,KAAK;EACpB,QAAQ,OAAO,OAAO,EAAE,MAAM,IAAI,CAAC;EACnC,OAAO;GAAE,OAAO;GAAoB,WAAW,KAAA;EAAU;CAC3D;CACA,IAAI,YAAY,aAAa,IAAI,KAAK,YAAY,SAAS,oBAAI,IAAI,KAAK,GAAG;EACzE,QAAQ;EACR,OAAO,EAAE,GAAG,aAAa;CAC3B;CACA,YAAY,QAAQ,YAAY,SAAS;CACzC,aAAa,YAAY;CACzB,OAAO;AACT;AAEA,MAAa,iBAAkB,aAAa,aAAa,eAAe,CAAC,CAAC;AAE1E,MAAa,kBAAkB,EAAE,OAAO,gBAA6B;CACnE,aAAa;CACb,OAAO,aAAa,QAAQ,OAAO,KAAK,UAAU;EAAE;EAAO;CAAU,CAAC,CAAC;AACzE;AAEA,MAAa,gBAAgB;CAC3B,aAAa;CACb,QAAQ,OAAO,KAAK;CACpB,QAAQ,OAAO,OAAO,EAAE,MAAM,IAAI,CAAC;CACnC,OAAO,aAAa,WAAW,KAAK;CACpC,OAAO,aAAa,WAAW,OAAO;CACtC,OAAO,aAAa,WAAW,aAAa,WAAW;AACzD;AAEA,MAAa,gBAAgB,EAAE,WAAW,YAAY;CACpD,MAAM,kBAAkB,OAAO,OAAO,aAAa,QAAQ,OAAO,CAAC;CACnE,IAAI,kBAAkB;CACtB,IAAI,iBAAiB;EAEnB,kBAAkB,mBADL,KAAK,IAAI,IAAI,gBAAgB,SAAS;EAEnD,IAAI,iBACF,OAAO,aAAa,WAAW,OAAO;CAE1C;CACA,IAAI,SAAS,cAAc,CAAC,mBAAmB,kBAAkB;EAC/D,MAAM,6BAAa,IAAI,KAAK;EAC5B,WAAW,WAAW,WAAW,WAAW,IAAI,aAAa;EAC7D,eAAe;GAAE;GAAO,WAAW,WAAW,YAAY;EAAE,CAAC;CAC/D;AACF"}
|
|
@@ -123,7 +123,11 @@ declare const completeUpgrade: import("@reduxjs/toolkit").AsyncThunk<[import("@r
|
|
|
123
123
|
arg: void;
|
|
124
124
|
requestId: string;
|
|
125
125
|
requestStatus: "fulfilled";
|
|
126
|
-
}, never>, import("@reduxjs/toolkit").PayloadAction<
|
|
126
|
+
}, never>, import("@reduxjs/toolkit").PayloadAction<import("redux").UnknownAction[], string, {
|
|
127
|
+
arg: void;
|
|
128
|
+
requestId: string;
|
|
129
|
+
requestStatus: "fulfilled";
|
|
130
|
+
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
127
131
|
arg: void;
|
|
128
132
|
requestId: string;
|
|
129
133
|
requestStatus: "rejected";
|
|
@@ -133,11 +137,7 @@ declare const completeUpgrade: import("@reduxjs/toolkit").AsyncThunk<[import("@r
|
|
|
133
137
|
rejectedWithValue: true;
|
|
134
138
|
} | ({
|
|
135
139
|
rejectedWithValue: false;
|
|
136
|
-
} & {})), import("@reduxjs/toolkit").SerializedError>
|
|
137
|
-
arg: void;
|
|
138
|
-
requestId: string;
|
|
139
|
-
requestStatus: "fulfilled";
|
|
140
|
-
}, never>], completeUpgradePayload, {
|
|
140
|
+
} & {})), import("@reduxjs/toolkit").SerializedError>], completeUpgradePayload, {
|
|
141
141
|
dispatch: AppDispatch;
|
|
142
142
|
state: RootState;
|
|
143
143
|
extra?: unknown;
|
|
@@ -426,7 +426,11 @@ declare const requestPlanUpgrade: import("@reduxjs/toolkit").AsyncThunk<[import(
|
|
|
426
426
|
arg: void;
|
|
427
427
|
requestId: string;
|
|
428
428
|
requestStatus: "fulfilled";
|
|
429
|
-
}, never>, import("@reduxjs/toolkit").PayloadAction<
|
|
429
|
+
}, never>, import("@reduxjs/toolkit").PayloadAction<import("redux").UnknownAction[], string, {
|
|
430
|
+
arg: void;
|
|
431
|
+
requestId: string;
|
|
432
|
+
requestStatus: "fulfilled";
|
|
433
|
+
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
430
434
|
arg: void;
|
|
431
435
|
requestId: string;
|
|
432
436
|
requestStatus: "rejected";
|
|
@@ -436,11 +440,7 @@ declare const requestPlanUpgrade: import("@reduxjs/toolkit").AsyncThunk<[import(
|
|
|
436
440
|
rejectedWithValue: true;
|
|
437
441
|
} | ({
|
|
438
442
|
rejectedWithValue: false;
|
|
439
|
-
} & {})), import("@reduxjs/toolkit").SerializedError>
|
|
440
|
-
arg: void;
|
|
441
|
-
requestId: string;
|
|
442
|
-
requestStatus: "fulfilled";
|
|
443
|
-
}, never>], {
|
|
443
|
+
} & {})), import("@reduxjs/toolkit").SerializedError>], {
|
|
444
444
|
plan: string;
|
|
445
445
|
products: Product[];
|
|
446
446
|
}, {
|
|
@@ -123,7 +123,11 @@ declare const completeUpgrade: import("@reduxjs/toolkit").AsyncThunk<[import("@r
|
|
|
123
123
|
arg: void;
|
|
124
124
|
requestId: string;
|
|
125
125
|
requestStatus: "fulfilled";
|
|
126
|
-
}, never>, import("@reduxjs/toolkit").PayloadAction<
|
|
126
|
+
}, never>, import("@reduxjs/toolkit").PayloadAction<import("redux").UnknownAction[], string, {
|
|
127
|
+
arg: void;
|
|
128
|
+
requestId: string;
|
|
129
|
+
requestStatus: "fulfilled";
|
|
130
|
+
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
127
131
|
arg: void;
|
|
128
132
|
requestId: string;
|
|
129
133
|
requestStatus: "rejected";
|
|
@@ -133,11 +137,7 @@ declare const completeUpgrade: import("@reduxjs/toolkit").AsyncThunk<[import("@r
|
|
|
133
137
|
rejectedWithValue: true;
|
|
134
138
|
} | ({
|
|
135
139
|
rejectedWithValue: false;
|
|
136
|
-
} & {})), import("@reduxjs/toolkit").SerializedError>
|
|
137
|
-
arg: void;
|
|
138
|
-
requestId: string;
|
|
139
|
-
requestStatus: "fulfilled";
|
|
140
|
-
}, never>], completeUpgradePayload, {
|
|
140
|
+
} & {})), import("@reduxjs/toolkit").SerializedError>], completeUpgradePayload, {
|
|
141
141
|
dispatch: AppDispatch;
|
|
142
142
|
state: RootState;
|
|
143
143
|
extra?: unknown;
|
|
@@ -426,7 +426,11 @@ declare const requestPlanUpgrade: import("@reduxjs/toolkit").AsyncThunk<[import(
|
|
|
426
426
|
arg: void;
|
|
427
427
|
requestId: string;
|
|
428
428
|
requestStatus: "fulfilled";
|
|
429
|
-
}, never>, import("@reduxjs/toolkit").PayloadAction<
|
|
429
|
+
}, never>, import("@reduxjs/toolkit").PayloadAction<import("redux").UnknownAction[], string, {
|
|
430
|
+
arg: void;
|
|
431
|
+
requestId: string;
|
|
432
|
+
requestStatus: "fulfilled";
|
|
433
|
+
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
430
434
|
arg: void;
|
|
431
435
|
requestId: string;
|
|
432
436
|
requestStatus: "rejected";
|
|
@@ -436,11 +440,7 @@ declare const requestPlanUpgrade: import("@reduxjs/toolkit").AsyncThunk<[import(
|
|
|
436
440
|
rejectedWithValue: true;
|
|
437
441
|
} | ({
|
|
438
442
|
rejectedWithValue: false;
|
|
439
|
-
} & {})), import("@reduxjs/toolkit").SerializedError>
|
|
440
|
-
arg: void;
|
|
441
|
-
requestId: string;
|
|
442
|
-
requestStatus: "fulfilled";
|
|
443
|
-
}, never>], {
|
|
443
|
+
} & {})), import("@reduxjs/toolkit").SerializedError>], {
|
|
444
444
|
plan: string;
|
|
445
445
|
products: Product[];
|
|
446
446
|
}, {
|
|
@@ -383,14 +383,7 @@ interface CreateUserPayload {
|
|
|
383
383
|
shouldResetPassword?: boolean;
|
|
384
384
|
sso?: boolean;
|
|
385
385
|
}
|
|
386
|
-
declare const createUser: import("@reduxjs/toolkit").AsyncThunk<[import("@reduxjs/toolkit").PayloadAction<{
|
|
387
|
-
payload: Record<string, User$1>;
|
|
388
|
-
type: "users/receivedUserList";
|
|
389
|
-
}, string, {
|
|
390
|
-
arg: void;
|
|
391
|
-
requestId: string;
|
|
392
|
-
requestStatus: "fulfilled";
|
|
393
|
-
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
386
|
+
declare const createUser: import("@reduxjs/toolkit").AsyncThunk<[import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
394
387
|
arg: void;
|
|
395
388
|
requestId: string;
|
|
396
389
|
requestStatus: "rejected";
|
|
@@ -400,7 +393,14 @@ declare const createUser: import("@reduxjs/toolkit").AsyncThunk<[import("@reduxj
|
|
|
400
393
|
rejectedWithValue: true;
|
|
401
394
|
} | ({
|
|
402
395
|
rejectedWithValue: false;
|
|
403
|
-
} & {})), import("@reduxjs/toolkit").SerializedError
|
|
396
|
+
} & {})), import("@reduxjs/toolkit").SerializedError> | import("@reduxjs/toolkit").PayloadAction<{
|
|
397
|
+
payload: Record<string, User$1>;
|
|
398
|
+
type: "users/receivedUserList";
|
|
399
|
+
}, string, {
|
|
400
|
+
arg: void;
|
|
401
|
+
requestId: string;
|
|
402
|
+
requestStatus: "fulfilled";
|
|
403
|
+
}, never>, {
|
|
404
404
|
payload: string | SnackbarContent;
|
|
405
405
|
type: "app/setSnackbar";
|
|
406
406
|
}], CreateUserPayload, {
|
|
@@ -417,14 +417,7 @@ type CreateUserV2Payload = {
|
|
|
417
417
|
email: string;
|
|
418
418
|
roles?: string[];
|
|
419
419
|
};
|
|
420
|
-
declare const createUserV2: import("@reduxjs/toolkit").AsyncThunk<[import("@reduxjs/toolkit").PayloadAction<{
|
|
421
|
-
payload: Record<string, User$1>;
|
|
422
|
-
type: "users/receivedUserList";
|
|
423
|
-
}, string, {
|
|
424
|
-
arg: void;
|
|
425
|
-
requestId: string;
|
|
426
|
-
requestStatus: "fulfilled";
|
|
427
|
-
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
420
|
+
declare const createUserV2: import("@reduxjs/toolkit").AsyncThunk<[import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
428
421
|
arg: void;
|
|
429
422
|
requestId: string;
|
|
430
423
|
requestStatus: "rejected";
|
|
@@ -434,7 +427,14 @@ declare const createUserV2: import("@reduxjs/toolkit").AsyncThunk<[import("@redu
|
|
|
434
427
|
rejectedWithValue: true;
|
|
435
428
|
} | ({
|
|
436
429
|
rejectedWithValue: false;
|
|
437
|
-
} & {})), import("@reduxjs/toolkit").SerializedError
|
|
430
|
+
} & {})), import("@reduxjs/toolkit").SerializedError> | import("@reduxjs/toolkit").PayloadAction<{
|
|
431
|
+
payload: Record<string, User$1>;
|
|
432
|
+
type: "users/receivedUserList";
|
|
433
|
+
}, string, {
|
|
434
|
+
arg: void;
|
|
435
|
+
requestId: string;
|
|
436
|
+
requestStatus: "fulfilled";
|
|
437
|
+
}, never>, {
|
|
438
438
|
payload: string | SnackbarContent;
|
|
439
439
|
type: "app/setSnackbar";
|
|
440
440
|
}], CreateUserV2Payload, {
|
|
@@ -450,14 +450,7 @@ declare const createUserV2: import("@reduxjs/toolkit").AsyncThunk<[import("@redu
|
|
|
450
450
|
declare const removeUser: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
451
451
|
payload: string;
|
|
452
452
|
type: "users/removedUser";
|
|
453
|
-
}, import("@reduxjs/toolkit").PayloadAction<{
|
|
454
|
-
payload: Record<string, User$1>;
|
|
455
|
-
type: "users/receivedUserList";
|
|
456
|
-
}, string, {
|
|
457
|
-
arg: void;
|
|
458
|
-
requestId: string;
|
|
459
|
-
requestStatus: "fulfilled";
|
|
460
|
-
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
453
|
+
}, import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
461
454
|
arg: void;
|
|
462
455
|
requestId: string;
|
|
463
456
|
requestStatus: "rejected";
|
|
@@ -467,7 +460,14 @@ declare const removeUser: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
|
467
460
|
rejectedWithValue: true;
|
|
468
461
|
} | ({
|
|
469
462
|
rejectedWithValue: false;
|
|
470
|
-
} & {})), import("@reduxjs/toolkit").SerializedError
|
|
463
|
+
} & {})), import("@reduxjs/toolkit").SerializedError> | import("@reduxjs/toolkit").PayloadAction<{
|
|
464
|
+
payload: Record<string, User$1>;
|
|
465
|
+
type: "users/receivedUserList";
|
|
466
|
+
}, string, {
|
|
467
|
+
arg: void;
|
|
468
|
+
requestId: string;
|
|
469
|
+
requestStatus: "fulfilled";
|
|
470
|
+
}, never>, {
|
|
471
471
|
payload: string | SnackbarContent;
|
|
472
472
|
type: "app/setSnackbar";
|
|
473
473
|
}], string, {
|
|
@@ -518,14 +518,7 @@ declare const checkEmailExists: import("@reduxjs/toolkit").AsyncThunk<boolean |
|
|
|
518
518
|
declare const addUserToCurrentTenant: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
519
519
|
payload: string | SnackbarContent;
|
|
520
520
|
type: "app/setSnackbar";
|
|
521
|
-
}, import("@reduxjs/toolkit").PayloadAction<{
|
|
522
|
-
payload: Record<string, User$1>;
|
|
523
|
-
type: "users/receivedUserList";
|
|
524
|
-
}, string, {
|
|
525
|
-
arg: void;
|
|
526
|
-
requestId: string;
|
|
527
|
-
requestStatus: "fulfilled";
|
|
528
|
-
}, never> | import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
521
|
+
}, import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
529
522
|
arg: void;
|
|
530
523
|
requestId: string;
|
|
531
524
|
requestStatus: "rejected";
|
|
@@ -535,7 +528,14 @@ declare const addUserToCurrentTenant: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
|
535
528
|
rejectedWithValue: true;
|
|
536
529
|
} | ({
|
|
537
530
|
rejectedWithValue: false;
|
|
538
|
-
} & {})), import("@reduxjs/toolkit").SerializedError>
|
|
531
|
+
} & {})), import("@reduxjs/toolkit").SerializedError> | import("@reduxjs/toolkit").PayloadAction<{
|
|
532
|
+
payload: Record<string, User$1>;
|
|
533
|
+
type: "users/receivedUserList";
|
|
534
|
+
}, string, {
|
|
535
|
+
arg: void;
|
|
536
|
+
requestId: string;
|
|
537
|
+
requestStatus: "fulfilled";
|
|
538
|
+
}, never>], string, {
|
|
539
539
|
dispatch: AppDispatch;
|
|
540
540
|
state: RootState;
|
|
541
541
|
extra?: unknown;
|