andoncloud-sdk 1.7.24 → 1.7.26
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/index.d.ts +14 -3
- package/dist/index.js +4372 -0
- package/dist/index.js.map +1 -0
- package/package.json +10 -22
- package/dist/andoncloud-sdk.css +0 -2
- package/dist/andoncloud-sdk.css.map +0 -1
- package/dist/andoncloud-sdk.js +0 -173
- package/dist/andoncloud-sdk.js.map +0 -1
- package/dist/app/__tests__/loginWithPassword.d.ts +0 -1
- package/dist/app/components/Header/Header.d.ts +0 -3
- package/dist/app/components/Header/Header.test.d.ts +0 -1
- package/dist/app/components/Header/index.d.ts +0 -1
- package/dist/app/components/Header/styles.d.ts +0 -11
- package/dist/app/components/Header/types.d.ts +0 -53
- package/dist/app/components/access/AccessBlocker.d.ts +0 -12
- package/dist/app/components/access/AccessBlocker.styles.d.ts +0 -34
- package/dist/app/components/access/AccessBlocker.test.d.ts +0 -1
- package/dist/app/components/access/AccessGuard.d.ts +0 -9
- package/dist/app/components/access/AccessGuard.test.d.ts +0 -1
- package/dist/app/components/access/AccessRequestModal.d.ts +0 -8
- package/dist/app/components/access/AccessRequestModal.styles.d.ts +0 -31
- package/dist/app/components/access/AccessRequestModal.test.d.ts +0 -1
- package/dist/app/components/access/CooldownModal.d.ts +0 -7
- package/dist/app/components/access/CooldownModal.styles.d.ts +0 -30
- package/dist/app/components/access/CooldownModal.test.d.ts +0 -1
- package/dist/app/components/access/InternalProcedureScreen.d.ts +0 -7
- package/dist/app/components/access/InternalProcedureScreen.styles.d.ts +0 -26
- package/dist/app/components/access/InternalProcedureScreen.test.d.ts +0 -1
- package/dist/app/components/access/index.d.ts +0 -3
- package/dist/app/components/access/withAccessGuard.d.ts +0 -6
- package/dist/app/components/access/withAccessGuard.test.d.ts +0 -1
- package/dist/app/components/app.d.ts +0 -3
- package/dist/app/components/authRedirect.d.ts +0 -3
- package/dist/app/components/container.d.ts +0 -44
- package/dist/app/components/container.styles.d.ts +0 -20
- package/dist/app/components/container.test.d.ts +0 -1
- package/dist/app/components/externalContent.d.ts +0 -5
- package/dist/app/components/footer.d.ts +0 -6
- package/dist/app/components/header.d.ts +0 -46
- package/dist/app/components/header.styles.d.ts +0 -50
- package/dist/app/components/header.test.d.ts +0 -1
- package/dist/app/components/iframeNavigation.d.ts +0 -2
- package/dist/app/components/loader.d.ts +0 -6
- package/dist/app/components/loginForm.d.ts +0 -29
- package/dist/app/components/loginForm.test.d.ts +0 -1
- package/dist/app/components/loginModal.d.ts +0 -31
- package/dist/app/components/loginModal.test.d.ts +0 -1
- package/dist/app/components/loginRedirect.d.ts +0 -3
- package/dist/app/components/messageNavigator.d.ts +0 -2
- package/dist/app/components/networkError.d.ts +0 -4
- package/dist/app/components/router.d.ts +0 -5
- package/dist/app/components/sidePanel.d.ts +0 -66
- package/dist/app/components/sidePanel.styles.d.ts +0 -15
- package/dist/app/components/sidebarMenu.d.ts +0 -32
- package/dist/app/components/sidebarMenu.styles.d.ts +0 -32
- package/dist/app/components/version.d.ts +0 -6
- package/dist/app/core/ui/Checkbox/Checkbox.d.ts +0 -7
- package/dist/app/core/ui/Checkbox/index.d.ts +0 -1
- package/dist/app/core/ui/Checkbox/styled.d.ts +0 -20
- package/dist/app/core/ui/Radio/Radio.d.ts +0 -7
- package/dist/app/core/ui/Radio/index.d.ts +0 -1
- package/dist/app/core/ui/Radio/styled.d.ts +0 -20
- package/dist/app/core/ui/RadioGroup/RadioGroup.d.ts +0 -7
- package/dist/app/core/ui/RadioGroup/index.d.ts +0 -1
- package/dist/app/core/ui/RadioGroup/styled.d.ts +0 -7
- package/dist/app/hooks/useAccess/accessState.d.ts +0 -7
- package/dist/app/hooks/useAccess/deriveButtons.d.ts +0 -5
- package/dist/app/hooks/useAccess/index.d.ts +0 -11
- package/dist/app/hooks/useAccess.d.ts +0 -10
- package/dist/app/hooks/useAccess.test.d.ts +0 -1
- package/dist/app/hooks/useFeatures.d.ts +0 -6
- package/dist/app/hooks/useFeatures.test.d.ts +0 -1
- package/dist/app/hooks/useFetch.d.ts +0 -2
- package/dist/app/hooks/useHeaderContentEvent.d.ts +0 -3
- package/dist/app/hooks/useHeaderContentEvent.test.d.ts +0 -1
- package/dist/app/hooks/useLogin.d.ts +0 -2
- package/dist/app/hooks/useLoginStatus.d.ts +0 -4
- package/dist/app/hooks/useModalHook/ModalContext.d.ts +0 -7
- package/dist/app/hooks/useModalHook/ModalProvider.d.ts +0 -5
- package/dist/app/hooks/useModalHook/index.d.ts +0 -3
- package/dist/app/hooks/useModalHook/useModal.d.ts +0 -8
- package/dist/app/hooks/usePackages.d.ts +0 -6
- package/dist/app/hooks/usePackages.test.d.ts +0 -1
- package/dist/app/hooks/usePermissions.d.ts +0 -13
- package/dist/app/hooks/usePermissions.test.d.ts +0 -1
- package/dist/app/hooks/useQueryParams.d.ts +0 -2
- package/dist/app/i18n.d.ts +0 -2
- package/dist/app/pages/ErrorPage.d.ts +0 -14
- package/dist/app/pages/ExternalPage.d.ts +0 -5
- package/dist/app/pages/LoaderPage.d.ts +0 -7
- package/dist/app/pages/LoginPage.d.ts +0 -15
- package/dist/app/providers/authConfig.d.ts +0 -6
- package/dist/app/providers/display.d.ts +0 -5
- package/dist/app/providers/displayMode.d.ts +0 -5
- package/dist/app/providers/metaInfo.d.ts +0 -6
- package/dist/app/providers/store.d.ts +0 -171
- package/dist/app/stores/appStore.d.ts +0 -10
- package/dist/app/stores/sessionStore.d.ts +0 -83
- package/dist/app/stores/userStore.d.ts +0 -14
- package/dist/app/testing/index.d.ts +0 -2
- package/dist/app/theme.d.ts +0 -2
- package/dist/app/utils/cookies-manager.d.ts +0 -7
- package/dist/app/utils/display.d.ts +0 -13
- package/dist/app/utils/fetch.d.ts +0 -9
- package/dist/app/utils/service-worker.d.ts +0 -1
- package/dist/app/utils/stores.d.ts +0 -22
- package/dist/app/utils/text.d.ts +0 -1
- package/dist/app/utils/window.d.ts +0 -1
- package/dist/assets/index.d.ts +0 -1
- package/dist/assets/logo.svg.d.ts +0 -2
- package/dist/cypress/support/component.d.ts +0 -9
- package/dist/cypress.config.d.ts +0 -2
- package/dist/locales/i18n.d.ts +0 -22
- package/dist/locales/index.d.ts +0 -2
- package/dist/serviceWorkerRegistration.d.ts +0 -2
- package/dist/setupTests.d.ts +0 -1
- package/dist/src/__tests__/loginWithPassword.cy.d.ts +0 -1
- package/dist/src/app/__tests__/loginWithPassword.cy.d.ts +0 -1
- package/dist/src/app/__tests__/loginWithPassword.d.ts +0 -1
- package/dist/src/app/components/Header/Header.cy.d.ts +0 -1
- package/dist/src/app/components/Header/Header.d.ts +0 -3
- package/dist/src/app/components/Header/Header.test.d.ts +0 -1
- package/dist/src/app/components/Header/index.d.ts +0 -1
- package/dist/src/app/components/Header/styles.d.ts +0 -11
- package/dist/src/app/components/Header/types.d.ts +0 -53
- package/dist/src/app/components/access/AccessBlocker.cy.d.ts +0 -1
- package/dist/src/app/components/access/AccessBlocker.d.ts +0 -12
- package/dist/src/app/components/access/AccessBlocker.styles.d.ts +0 -34
- package/dist/src/app/components/access/AccessBlocker.test.d.ts +0 -1
- package/dist/src/app/components/access/AccessGuard.cy.d.ts +0 -1
- package/dist/src/app/components/access/AccessGuard.d.ts +0 -9
- package/dist/src/app/components/access/AccessGuard.test.d.ts +0 -1
- package/dist/src/app/components/access/AccessRequestModal.cy.d.ts +0 -1
- package/dist/src/app/components/access/AccessRequestModal.d.ts +0 -8
- package/dist/src/app/components/access/AccessRequestModal.styles.d.ts +0 -31
- package/dist/src/app/components/access/AccessRequestModal.test.d.ts +0 -1
- package/dist/src/app/components/access/CooldownModal.cy.d.ts +0 -1
- package/dist/src/app/components/access/CooldownModal.d.ts +0 -7
- package/dist/src/app/components/access/CooldownModal.styles.d.ts +0 -30
- package/dist/src/app/components/access/CooldownModal.test.d.ts +0 -1
- package/dist/src/app/components/access/index.d.ts +0 -3
- package/dist/src/app/components/access/withAccessGuard.cy.d.ts +0 -1
- package/dist/src/app/components/access/withAccessGuard.d.ts +0 -6
- package/dist/src/app/components/access/withAccessGuard.test.d.ts +0 -1
- package/dist/src/app/components/app.d.ts +0 -3
- package/dist/src/app/components/authRedirect.d.ts +0 -3
- package/dist/src/app/components/container.cy.d.ts +0 -1
- package/dist/src/app/components/container.d.ts +0 -44
- package/dist/src/app/components/container.styles.d.ts +0 -20
- package/dist/src/app/components/container.test.d.ts +0 -1
- package/dist/src/app/components/externalContent.d.ts +0 -5
- package/dist/src/app/components/footer.d.ts +0 -6
- package/dist/src/app/components/iframeNavigation.d.ts +0 -2
- package/dist/src/app/components/loader.d.ts +0 -6
- package/dist/src/app/components/loginForm.cy.d.ts +0 -1
- package/dist/src/app/components/loginForm.d.ts +0 -29
- package/dist/src/app/components/loginForm.test.d.ts +0 -1
- package/dist/src/app/components/loginModal.cy.d.ts +0 -1
- package/dist/src/app/components/loginModal.d.ts +0 -31
- package/dist/src/app/components/loginModal.test.d.ts +0 -1
- package/dist/src/app/components/loginRedirect.d.ts +0 -3
- package/dist/src/app/components/networkError.d.ts +0 -4
- package/dist/src/app/components/router.d.ts +0 -5
- package/dist/src/app/components/sidePanel.d.ts +0 -66
- package/dist/src/app/components/sidePanel.styles.d.ts +0 -15
- package/dist/src/app/components/sidebarMenu.d.ts +0 -32
- package/dist/src/app/components/sidebarMenu.styles.d.ts +0 -32
- package/dist/src/app/core/ui/Checkbox/Checkbox.d.ts +0 -6
- package/dist/src/app/core/ui/Checkbox/index.d.ts +0 -1
- package/dist/src/app/core/ui/Checkbox/styled.d.ts +0 -7
- package/dist/src/app/core/ui/Radio/Radio.d.ts +0 -6
- package/dist/src/app/core/ui/Radio/index.d.ts +0 -1
- package/dist/src/app/core/ui/Radio/styled.d.ts +0 -7
- package/dist/src/app/core/ui/RadioGroup/RadioGroup.d.ts +0 -6
- package/dist/src/app/core/ui/RadioGroup/index.d.ts +0 -1
- package/dist/src/app/core/ui/RadioGroup/styled.d.ts +0 -4
- package/dist/src/app/hooks/useAccess/accessState.d.ts +0 -7
- package/dist/src/app/hooks/useAccess/deriveButtons.d.ts +0 -5
- package/dist/src/app/hooks/useAccess/index.d.ts +0 -11
- package/dist/src/app/hooks/useAccess.cy.d.ts +0 -1
- package/dist/src/app/hooks/useAccess.test.d.ts +0 -1
- package/dist/src/app/hooks/useFeatures.cy.d.ts +0 -1
- package/dist/src/app/hooks/useFeatures.d.ts +0 -6
- package/dist/src/app/hooks/useFeatures.test.d.ts +0 -1
- package/dist/src/app/hooks/useHeaderContentEvent.cy.d.ts +0 -1
- package/dist/src/app/hooks/useHeaderContentEvent.d.ts +0 -3
- package/dist/src/app/hooks/useHeaderContentEvent.test.d.ts +0 -1
- package/dist/src/app/hooks/useLogin.d.ts +0 -2
- package/dist/src/app/hooks/useLoginStatus.d.ts +0 -4
- package/dist/src/app/hooks/useModalHook/ModalContext.d.ts +0 -7
- package/dist/src/app/hooks/useModalHook/ModalProvider.d.ts +0 -5
- package/dist/src/app/hooks/useModalHook/index.d.ts +0 -3
- package/dist/src/app/hooks/useModalHook/useModal.d.ts +0 -8
- package/dist/src/app/hooks/usePermissions.cy.d.ts +0 -1
- package/dist/src/app/hooks/usePermissions.d.ts +0 -13
- package/dist/src/app/hooks/usePermissions.test.d.ts +0 -1
- package/dist/src/app/hooks/useQueryParams.d.ts +0 -2
- package/dist/src/app/i18n.d.ts +0 -3
- package/dist/src/app/pages/ErrorPage.d.ts +0 -14
- package/dist/src/app/pages/LoaderPage.d.ts +0 -7
- package/dist/src/app/pages/LoginPage.d.ts +0 -15
- package/dist/src/app/providers/authConfig.d.ts +0 -6
- package/dist/src/app/providers/display.d.ts +0 -5
- package/dist/src/app/providers/metaInfo.d.ts +0 -6
- package/dist/src/app/providers/store.d.ts +0 -171
- package/dist/src/app/stores/appStore.d.ts +0 -10
- package/dist/src/app/stores/sessionStore.d.ts +0 -83
- package/dist/src/app/stores/userStore.d.ts +0 -14
- package/dist/src/app/testing/index.d.ts +0 -2
- package/dist/src/app/theme.d.ts +0 -2
- package/dist/src/app/utils/cookies-manager.d.ts +0 -7
- package/dist/src/app/utils/display.d.ts +0 -13
- package/dist/src/app/utils/fetch.d.ts +0 -9
- package/dist/src/app/utils/service-worker.d.ts +0 -1
- package/dist/src/app/utils/stores.d.ts +0 -22
- package/dist/src/app/utils/text.d.ts +0 -1
- package/dist/src/assets/index.d.ts +0 -1
- package/dist/src/components/Header/Header.cy.d.ts +0 -1
- package/dist/src/components/Header/Header.d.ts +0 -3
- package/dist/src/components/Header/index.d.ts +0 -1
- package/dist/src/components/Header/styles.d.ts +0 -11
- package/dist/src/components/Header/types.d.ts +0 -52
- package/dist/src/components/access/AccessBlocker.cy.d.ts +0 -1
- package/dist/src/components/access/AccessBlocker.d.ts +0 -13
- package/dist/src/components/access/AccessBlocker.styles.d.ts +0 -43
- package/dist/src/components/access/AccessGuard.cy.d.ts +0 -1
- package/dist/src/components/access/AccessGuard.d.ts +0 -10
- package/dist/src/components/access/AccessRequestModal.cy.d.ts +0 -1
- package/dist/src/components/access/AccessRequestModal.d.ts +0 -8
- package/dist/src/components/access/AccessRequestModal.styles.d.ts +0 -31
- package/dist/src/components/access/CooldownModal.cy.d.ts +0 -1
- package/dist/src/components/access/CooldownModal.d.ts +0 -7
- package/dist/src/components/access/CooldownModal.styles.d.ts +0 -30
- package/dist/src/components/access/index.d.ts +0 -3
- package/dist/src/components/access/withAccessGuard.cy.d.ts +0 -1
- package/dist/src/components/access/withAccessGuard.d.ts +0 -6
- package/dist/src/components/app.d.ts +0 -3
- package/dist/src/components/authRedirect.cy.d.ts +0 -1
- package/dist/src/components/authRedirect.d.ts +0 -3
- package/dist/src/components/container.cy.d.ts +0 -1
- package/dist/src/components/container.d.ts +0 -44
- package/dist/src/components/container.styles.d.ts +0 -20
- package/dist/src/components/externalContent.d.ts +0 -5
- package/dist/src/components/footer.d.ts +0 -6
- package/dist/src/components/iframeNavigation.d.ts +0 -2
- package/dist/src/components/loader.d.ts +0 -6
- package/dist/src/components/loginForm.cy.d.ts +0 -1
- package/dist/src/components/loginForm.d.ts +0 -29
- package/dist/src/components/loginModal.cy.d.ts +0 -1
- package/dist/src/components/loginModal.d.ts +0 -16
- package/dist/src/components/loginRedirect.d.ts +0 -3
- package/dist/src/components/networkError.d.ts +0 -4
- package/dist/src/components/router.d.ts +0 -5
- package/dist/src/components/sidePanel.d.ts +0 -66
- package/dist/src/components/sidePanel.styles.d.ts +0 -15
- package/dist/src/components/sidebarMenu.d.ts +0 -32
- package/dist/src/components/sidebarMenu.styles.d.ts +0 -32
- package/dist/src/core/ui/Checkbox/Checkbox.d.ts +0 -6
- package/dist/src/core/ui/Checkbox/index.d.ts +0 -1
- package/dist/src/core/ui/Checkbox/styled.d.ts +0 -6
- package/dist/src/core/ui/Radio/Radio.d.ts +0 -6
- package/dist/src/core/ui/Radio/index.d.ts +0 -1
- package/dist/src/core/ui/Radio/styled.d.ts +0 -6
- package/dist/src/core/ui/RadioGroup/RadioGroup.d.ts +0 -6
- package/dist/src/core/ui/RadioGroup/index.d.ts +0 -1
- package/dist/src/core/ui/RadioGroup/styled.d.ts +0 -4
- package/dist/src/hooks/useAccess/accessState.d.ts +0 -7
- package/dist/src/hooks/useAccess/deriveButtons.d.ts +0 -5
- package/dist/src/hooks/useAccess/index.d.ts +0 -11
- package/dist/src/hooks/useAccess.cy.d.ts +0 -1
- package/dist/src/hooks/useFeatures.cy.d.ts +0 -1
- package/dist/src/hooks/useFeatures.d.ts +0 -6
- package/dist/src/hooks/useHeaderContentEvent.cy.d.ts +0 -1
- package/dist/src/hooks/useHeaderContentEvent.d.ts +0 -3
- package/dist/src/hooks/useLogin.d.ts +0 -2
- package/dist/src/hooks/useLoginStatus.d.ts +0 -3
- package/dist/src/hooks/useModalHook/ModalContext.d.ts +0 -7
- package/dist/src/hooks/useModalHook/ModalProvider.d.ts +0 -5
- package/dist/src/hooks/useModalHook/index.d.ts +0 -3
- package/dist/src/hooks/useModalHook/useModal.d.ts +0 -8
- package/dist/src/hooks/usePermissions.cy.d.ts +0 -1
- package/dist/src/hooks/usePermissions.d.ts +0 -13
- package/dist/src/hooks/useQueryParams.d.ts +0 -2
- package/dist/src/i18n.d.ts +0 -9
- package/dist/src/index.d.ts +0 -36
- package/dist/src/pages/ErrorPage.d.ts +0 -14
- package/dist/src/pages/LoaderPage.d.ts +0 -7
- package/dist/src/pages/LoginPage.d.ts +0 -15
- package/dist/src/providers/authConfig.d.ts +0 -6
- package/dist/src/providers/display.d.ts +0 -5
- package/dist/src/providers/metaInfo.d.ts +0 -6
- package/dist/src/providers/store.d.ts +0 -171
- package/dist/src/serviceWorkerRegistration.d.ts +0 -2
- package/dist/src/setupTests.d.ts +0 -1
- package/dist/src/stores/SessionStore/CookiesManager.cy.d.ts +0 -1
- package/dist/src/stores/SessionStore/CookiesManager.d.ts +0 -15
- package/dist/src/stores/SessionStore/SessionStore.cy.d.ts +0 -1
- package/dist/src/stores/SessionStore/SessionStore.d.ts +0 -92
- package/dist/src/stores/SessionStore/TokenCoordinator.cy.d.ts +0 -1
- package/dist/src/stores/SessionStore/TokenCoordinator.d.ts +0 -46
- package/dist/src/stores/SessionStore/index.d.ts +0 -3
- package/dist/src/stores/SessionStore/types.d.ts +0 -94
- package/dist/src/stores/appStore.d.ts +0 -10
- package/dist/src/stores/sessionStore.d.ts +0 -83
- package/dist/src/stores/userStore.d.ts +0 -14
- package/dist/src/theme.d.ts +0 -2
- package/dist/src/utils/authFetch.d.ts +0 -10
- package/dist/src/utils/cookies-manager.d.ts +0 -9
- package/dist/src/utils/display.d.ts +0 -14
- package/dist/src/utils/fetch.d.ts +0 -9
- package/dist/src/utils/service-worker.d.ts +0 -1
- package/dist/src/utils/stores.d.ts +0 -15
- package/dist/src/utils/text.d.ts +0 -1
- package/dist/src/utils/validateRedirect.cy.d.ts +0 -1
- package/dist/src/utils/validateRedirect.d.ts +0 -1
- package/dist/src/version.d.ts +0 -1
- package/dist/version.d.ts +0 -1
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
export namespace rootStore {
|
|
2
|
-
export { sessionStore };
|
|
3
|
-
}
|
|
4
|
-
export const StoreContext: React.Context<{
|
|
5
|
-
sessionStore: {
|
|
6
|
-
loading: boolean;
|
|
7
|
-
loginStatus: {
|
|
8
|
-
status: string;
|
|
9
|
-
};
|
|
10
|
-
refreshTokenPromise: null;
|
|
11
|
-
api: {
|
|
12
|
-
setAuthConfig({ baseUrl, clientId, redirectUri }: {
|
|
13
|
-
baseUrl: any;
|
|
14
|
-
clientId: any;
|
|
15
|
-
redirectUri: any;
|
|
16
|
-
}): void;
|
|
17
|
-
baseUrl: any;
|
|
18
|
-
clientId: any;
|
|
19
|
-
redirectUri: any;
|
|
20
|
-
authorize(credentials: any): Promise<undefined>;
|
|
21
|
-
getUserData(authData: any): Promise<{
|
|
22
|
-
id: any;
|
|
23
|
-
companyId: any;
|
|
24
|
-
roleId: any;
|
|
25
|
-
username: any;
|
|
26
|
-
email: any;
|
|
27
|
-
name: any;
|
|
28
|
-
permissionsMap: any;
|
|
29
|
-
featuresMap: {
|
|
30
|
-
[k: string]: {
|
|
31
|
-
status: any;
|
|
32
|
-
entitlementType: any;
|
|
33
|
-
expiresAt: any;
|
|
34
|
-
daysSinceExpiry: any;
|
|
35
|
-
permissions: any;
|
|
36
|
-
} | null;
|
|
37
|
-
} | null;
|
|
38
|
-
featuresRequestsMap: {} | null;
|
|
39
|
-
} | null>;
|
|
40
|
-
signOut(token: any): Promise<void>;
|
|
41
|
-
};
|
|
42
|
-
networkError: any;
|
|
43
|
-
setLoading(value: any): void;
|
|
44
|
-
setConnectedLoginStatus(): void;
|
|
45
|
-
setNotAuthorizedLoginStatus(): void;
|
|
46
|
-
setAuthConfig(config: any): void;
|
|
47
|
-
setNetworkError(value: any): void;
|
|
48
|
-
isLoggedIn(): boolean;
|
|
49
|
-
requestHeaders(): {
|
|
50
|
-
'Accept-Language': string;
|
|
51
|
-
} | {
|
|
52
|
-
Authorization: string;
|
|
53
|
-
'Accept-Language': string;
|
|
54
|
-
};
|
|
55
|
-
authorize(credentials: any, storeSession?: boolean): Promise<null>;
|
|
56
|
-
session: any;
|
|
57
|
-
refresh(): Promise<null>;
|
|
58
|
-
recover(): Promise<void>;
|
|
59
|
-
logout(): Promise<void>;
|
|
60
|
-
refreshUserData(): Promise<{
|
|
61
|
-
id: any;
|
|
62
|
-
companyId: any;
|
|
63
|
-
roleId: any;
|
|
64
|
-
username: any;
|
|
65
|
-
email: any;
|
|
66
|
-
name: any;
|
|
67
|
-
permissionsMap: any;
|
|
68
|
-
featuresMap: {
|
|
69
|
-
[k: string]: {
|
|
70
|
-
status: any;
|
|
71
|
-
entitlementType: any;
|
|
72
|
-
expiresAt: any;
|
|
73
|
-
daysSinceExpiry: any;
|
|
74
|
-
permissions: any;
|
|
75
|
-
} | null;
|
|
76
|
-
} | null;
|
|
77
|
-
featuresRequestsMap: {} | null;
|
|
78
|
-
} | null>;
|
|
79
|
-
storeSession(): Promise<void>;
|
|
80
|
-
restoreSession(): Promise<void>;
|
|
81
|
-
removeSession(): void;
|
|
82
|
-
setCurrentUser(user: any): void;
|
|
83
|
-
removeCurrentUser(): void;
|
|
84
|
-
};
|
|
85
|
-
}>;
|
|
86
|
-
export const StoreProvider: React.FunctionComponent<object>;
|
|
87
|
-
export function useStore(): {
|
|
88
|
-
sessionStore: {
|
|
89
|
-
loading: boolean;
|
|
90
|
-
loginStatus: {
|
|
91
|
-
status: string;
|
|
92
|
-
};
|
|
93
|
-
refreshTokenPromise: null;
|
|
94
|
-
api: {
|
|
95
|
-
setAuthConfig({ baseUrl, clientId, redirectUri }: {
|
|
96
|
-
baseUrl: any;
|
|
97
|
-
clientId: any;
|
|
98
|
-
redirectUri: any;
|
|
99
|
-
}): void;
|
|
100
|
-
baseUrl: any;
|
|
101
|
-
clientId: any;
|
|
102
|
-
redirectUri: any;
|
|
103
|
-
authorize(credentials: any): Promise<undefined>;
|
|
104
|
-
getUserData(authData: any): Promise<{
|
|
105
|
-
id: any;
|
|
106
|
-
companyId: any;
|
|
107
|
-
roleId: any;
|
|
108
|
-
username: any;
|
|
109
|
-
email: any;
|
|
110
|
-
name: any;
|
|
111
|
-
permissionsMap: any;
|
|
112
|
-
featuresMap: {
|
|
113
|
-
[k: string]: {
|
|
114
|
-
status: any;
|
|
115
|
-
entitlementType: any;
|
|
116
|
-
expiresAt: any;
|
|
117
|
-
daysSinceExpiry: any;
|
|
118
|
-
permissions: any;
|
|
119
|
-
} | null;
|
|
120
|
-
} | null;
|
|
121
|
-
featuresRequestsMap: {} | null;
|
|
122
|
-
} | null>;
|
|
123
|
-
signOut(token: any): Promise<void>;
|
|
124
|
-
};
|
|
125
|
-
networkError: any;
|
|
126
|
-
setLoading(value: any): void;
|
|
127
|
-
setConnectedLoginStatus(): void;
|
|
128
|
-
setNotAuthorizedLoginStatus(): void;
|
|
129
|
-
setAuthConfig(config: any): void;
|
|
130
|
-
setNetworkError(value: any): void;
|
|
131
|
-
isLoggedIn(): boolean;
|
|
132
|
-
requestHeaders(): {
|
|
133
|
-
'Accept-Language': string;
|
|
134
|
-
} | {
|
|
135
|
-
Authorization: string;
|
|
136
|
-
'Accept-Language': string;
|
|
137
|
-
};
|
|
138
|
-
authorize(credentials: any, storeSession?: boolean): Promise<null>;
|
|
139
|
-
session: any;
|
|
140
|
-
refresh(): Promise<null>;
|
|
141
|
-
recover(): Promise<void>;
|
|
142
|
-
logout(): Promise<void>;
|
|
143
|
-
refreshUserData(): Promise<{
|
|
144
|
-
id: any;
|
|
145
|
-
companyId: any;
|
|
146
|
-
roleId: any;
|
|
147
|
-
username: any;
|
|
148
|
-
email: any;
|
|
149
|
-
name: any;
|
|
150
|
-
permissionsMap: any;
|
|
151
|
-
featuresMap: {
|
|
152
|
-
[k: string]: {
|
|
153
|
-
status: any;
|
|
154
|
-
entitlementType: any;
|
|
155
|
-
expiresAt: any;
|
|
156
|
-
daysSinceExpiry: any;
|
|
157
|
-
permissions: any;
|
|
158
|
-
} | null;
|
|
159
|
-
} | null;
|
|
160
|
-
featuresRequestsMap: {} | null;
|
|
161
|
-
} | null>;
|
|
162
|
-
storeSession(): Promise<void>;
|
|
163
|
-
restoreSession(): Promise<void>;
|
|
164
|
-
removeSession(): void;
|
|
165
|
-
setCurrentUser(user: any): void;
|
|
166
|
-
removeCurrentUser(): void;
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
export default rootStore;
|
|
170
|
-
import sessionStore from '../stores/sessionStore';
|
|
171
|
-
import React from 'react';
|
package/dist/src/setupTests.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { CookieData } from './types';
|
|
2
|
-
export declare const extractEnvironment: (hostname: string) => string | null;
|
|
3
|
-
export declare const resolveAuthCookieName: (hostname: string) => string;
|
|
4
|
-
export declare class CookiesManager {
|
|
5
|
-
private static rootDomain;
|
|
6
|
-
private static authCookieName;
|
|
7
|
-
static recognizeRootDomain(): string;
|
|
8
|
-
static getAuthCookieName(): string;
|
|
9
|
-
static get(key: string): string | undefined;
|
|
10
|
-
static set(key: string, value: string): void;
|
|
11
|
-
static remove(key: string): void;
|
|
12
|
-
static getAuthData(): CookieData | null;
|
|
13
|
-
static setAuthData(data: CookieData): void;
|
|
14
|
-
static removeAuthData(): void;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { LoginStatus, Session, UserData } from './types';
|
|
2
|
-
interface AuthConfig {
|
|
3
|
-
baseUrl: string;
|
|
4
|
-
clientId: string;
|
|
5
|
-
redirectUri: string;
|
|
6
|
-
}
|
|
7
|
-
interface Credentials {
|
|
8
|
-
scope?: string;
|
|
9
|
-
refresh?: string;
|
|
10
|
-
code?: string;
|
|
11
|
-
username?: string;
|
|
12
|
-
password?: string;
|
|
13
|
-
signal?: AbortSignal;
|
|
14
|
-
}
|
|
15
|
-
declare function createSessionStore(): {
|
|
16
|
-
loading: boolean;
|
|
17
|
-
loginStatus: LoginStatus;
|
|
18
|
-
session: Session | null;
|
|
19
|
-
networkError: {
|
|
20
|
-
title: string;
|
|
21
|
-
details: string;
|
|
22
|
-
} | null;
|
|
23
|
-
refreshTokenPromise: Promise<Session | null> | null;
|
|
24
|
-
api: {
|
|
25
|
-
setAuthConfig(config: AuthConfig): void;
|
|
26
|
-
authorize(credentials: Credentials): Promise<Session | null>;
|
|
27
|
-
getUserData(authData?: {
|
|
28
|
-
token_type: string;
|
|
29
|
-
access_token: string;
|
|
30
|
-
}): Promise<UserData | null>;
|
|
31
|
-
signOut(token: string): Promise<void>;
|
|
32
|
-
};
|
|
33
|
-
readonly isLoggedIn: boolean;
|
|
34
|
-
readonly requestHeaders: Record<string, string>;
|
|
35
|
-
setLoading(value: boolean): void;
|
|
36
|
-
setAuthConfig(config: AuthConfig): void;
|
|
37
|
-
setConnectedLoginStatus(): void;
|
|
38
|
-
setNotAuthorizedLoginStatus(): void;
|
|
39
|
-
setNetworkError(value: {
|
|
40
|
-
title: string;
|
|
41
|
-
details: string;
|
|
42
|
-
} | null): void;
|
|
43
|
-
storeSession(): void;
|
|
44
|
-
removeSession(): void;
|
|
45
|
-
setCurrentUser(user: UserData | null): void;
|
|
46
|
-
removeCurrentUser(): void;
|
|
47
|
-
authorize(credentials: Credentials, storeSession?: boolean): Promise<Session | null>;
|
|
48
|
-
refresh(): Promise<Session | null>;
|
|
49
|
-
recover(): Promise<void>;
|
|
50
|
-
logout(): Promise<void>;
|
|
51
|
-
refreshUserData(): Promise<UserData | null>;
|
|
52
|
-
};
|
|
53
|
-
type SessionStore = ReturnType<typeof createSessionStore>;
|
|
54
|
-
declare const sessionStore: {
|
|
55
|
-
loading: boolean;
|
|
56
|
-
loginStatus: LoginStatus;
|
|
57
|
-
session: Session | null;
|
|
58
|
-
networkError: {
|
|
59
|
-
title: string;
|
|
60
|
-
details: string;
|
|
61
|
-
} | null;
|
|
62
|
-
refreshTokenPromise: Promise<Session | null> | null;
|
|
63
|
-
api: {
|
|
64
|
-
setAuthConfig(config: AuthConfig): void;
|
|
65
|
-
authorize(credentials: Credentials): Promise<Session | null>;
|
|
66
|
-
getUserData(authData?: {
|
|
67
|
-
token_type: string;
|
|
68
|
-
access_token: string;
|
|
69
|
-
}): Promise<UserData | null>;
|
|
70
|
-
signOut(token: string): Promise<void>;
|
|
71
|
-
};
|
|
72
|
-
readonly isLoggedIn: boolean;
|
|
73
|
-
readonly requestHeaders: Record<string, string>;
|
|
74
|
-
setLoading(value: boolean): void;
|
|
75
|
-
setAuthConfig(config: AuthConfig): void;
|
|
76
|
-
setConnectedLoginStatus(): void;
|
|
77
|
-
setNotAuthorizedLoginStatus(): void;
|
|
78
|
-
setNetworkError(value: {
|
|
79
|
-
title: string;
|
|
80
|
-
details: string;
|
|
81
|
-
} | null): void;
|
|
82
|
-
storeSession(): void;
|
|
83
|
-
removeSession(): void;
|
|
84
|
-
setCurrentUser(user: UserData | null): void;
|
|
85
|
-
removeCurrentUser(): void;
|
|
86
|
-
authorize(credentials: Credentials, storeSession?: boolean): Promise<Session | null>;
|
|
87
|
-
refresh(): Promise<Session | null>;
|
|
88
|
-
recover(): Promise<void>;
|
|
89
|
-
logout(): Promise<void>;
|
|
90
|
-
refreshUserData(): Promise<UserData | null>;
|
|
91
|
-
};
|
|
92
|
-
export { sessionStore, type SessionStore };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Session } from './types';
|
|
2
|
-
interface SessionStoreRef {
|
|
3
|
-
session: Session | null;
|
|
4
|
-
api: {
|
|
5
|
-
authorize: (credentials: Record<string, unknown>) => Promise<Session | null>;
|
|
6
|
-
};
|
|
7
|
-
storeSession: () => void;
|
|
8
|
-
setConnectedLoginStatus: () => void;
|
|
9
|
-
removeSession: () => void;
|
|
10
|
-
removeCurrentUser: () => void;
|
|
11
|
-
setNotAuthorizedLoginStatus: () => void;
|
|
12
|
-
}
|
|
13
|
-
export declare class TokenCoordinator {
|
|
14
|
-
private refreshPromise;
|
|
15
|
-
private refreshTimer;
|
|
16
|
-
private broadcastChannel;
|
|
17
|
-
private store;
|
|
18
|
-
private onLogout;
|
|
19
|
-
private requestQueue;
|
|
20
|
-
private authFetchFn;
|
|
21
|
-
init(store: SessionStoreRef, onLogout: () => void): void;
|
|
22
|
-
setAuthFetch(fn: (url: string, options: RequestInit) => Promise<Response>): void;
|
|
23
|
-
private initBroadcastChannel;
|
|
24
|
-
private handleBroadcast;
|
|
25
|
-
private handleTokenRefreshedBroadcast;
|
|
26
|
-
private handleLogoutBroadcast;
|
|
27
|
-
private initVisibilityListener;
|
|
28
|
-
refresh(): Promise<Session | null>;
|
|
29
|
-
isRefreshing(): boolean;
|
|
30
|
-
private doRefresh;
|
|
31
|
-
private refreshWithLock;
|
|
32
|
-
private executeRefresh;
|
|
33
|
-
private refreshWithRetry;
|
|
34
|
-
handleUnauthorized(url: string, options: RequestInit): Promise<Response>;
|
|
35
|
-
private enqueue;
|
|
36
|
-
private replayQueue;
|
|
37
|
-
private rejectQueue;
|
|
38
|
-
scheduleProactiveRefresh(): void;
|
|
39
|
-
private clearRefreshTimer;
|
|
40
|
-
private broadcast;
|
|
41
|
-
broadcastLogout(): void;
|
|
42
|
-
private triggerLogout;
|
|
43
|
-
dispose(): void;
|
|
44
|
-
}
|
|
45
|
-
export declare const tokenCoordinator: TokenCoordinator;
|
|
46
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { sessionStore, type SessionStore } from './SessionStore';
|
|
2
|
-
export { TokenCoordinator, tokenCoordinator } from './TokenCoordinator';
|
|
3
|
-
export type { AuthEvent, AuthEventType, CookieData, LoginFormValidation, LoginStatus, QueuedRequest, Session, UserData, } from './types';
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
export interface Session {
|
|
2
|
-
user: UserData | null;
|
|
3
|
-
accessToken: string;
|
|
4
|
-
refreshToken: string;
|
|
5
|
-
tokenType: string;
|
|
6
|
-
createdAt: number;
|
|
7
|
-
expiresIn: number;
|
|
8
|
-
}
|
|
9
|
-
export interface UserData {
|
|
10
|
-
id: number;
|
|
11
|
-
companyId: number;
|
|
12
|
-
roleId: number;
|
|
13
|
-
username: string;
|
|
14
|
-
email: string;
|
|
15
|
-
name: string;
|
|
16
|
-
permissionsMap: Record<string, string> | null;
|
|
17
|
-
featuresMap: Record<string, FeatureInfo | null> | null;
|
|
18
|
-
featuresRequestsMap: Record<string, unknown> | null;
|
|
19
|
-
[key: string]: unknown;
|
|
20
|
-
}
|
|
21
|
-
export interface FeatureInfo {
|
|
22
|
-
status: string;
|
|
23
|
-
entitlementType: string;
|
|
24
|
-
expiresAt: string | null;
|
|
25
|
-
daysSinceExpiry: number | null;
|
|
26
|
-
permissions: string[];
|
|
27
|
-
}
|
|
28
|
-
export interface QueuedRequest {
|
|
29
|
-
resolve: (value: Response) => void;
|
|
30
|
-
reject: (reason: Error) => void;
|
|
31
|
-
url: string;
|
|
32
|
-
options: RequestInit;
|
|
33
|
-
}
|
|
34
|
-
export type AuthEventType = 'TOKEN_REFRESHED' | 'LOGOUT';
|
|
35
|
-
export interface AuthEvent {
|
|
36
|
-
type: AuthEventType;
|
|
37
|
-
}
|
|
38
|
-
export interface CookieOptions {
|
|
39
|
-
domain: string;
|
|
40
|
-
secure: boolean;
|
|
41
|
-
sameSite: 'lax';
|
|
42
|
-
expires: number;
|
|
43
|
-
}
|
|
44
|
-
export interface CookieData {
|
|
45
|
-
'access-token': string;
|
|
46
|
-
'refresh-token': string;
|
|
47
|
-
'token-type': string;
|
|
48
|
-
'created-at': number;
|
|
49
|
-
'expires-in': number;
|
|
50
|
-
}
|
|
51
|
-
export interface OAuthTokenResponse {
|
|
52
|
-
access_token: string;
|
|
53
|
-
refresh_token: string;
|
|
54
|
-
token_type: string;
|
|
55
|
-
created_at: number;
|
|
56
|
-
expires_in: number;
|
|
57
|
-
error_description?: string;
|
|
58
|
-
}
|
|
59
|
-
export interface MeResponse {
|
|
60
|
-
user: {
|
|
61
|
-
id: number;
|
|
62
|
-
company_id: number;
|
|
63
|
-
role_id: number;
|
|
64
|
-
username: string;
|
|
65
|
-
email: string;
|
|
66
|
-
name: string;
|
|
67
|
-
permissions_map: Record<string, string> | null;
|
|
68
|
-
features_map: Record<string, RawFeatureInfo> | null;
|
|
69
|
-
features_requests_map: Record<string, Record<string, Record<string, RawRequestInfo>>> | null;
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
export interface RawFeatureInfo {
|
|
73
|
-
status: string;
|
|
74
|
-
entitlement_type: string;
|
|
75
|
-
expires_at: string | null;
|
|
76
|
-
days_since_expiry: number | null;
|
|
77
|
-
permissions: string[];
|
|
78
|
-
}
|
|
79
|
-
export interface RawRequestInfo {
|
|
80
|
-
last_requested_at: string;
|
|
81
|
-
days_remaining: number;
|
|
82
|
-
}
|
|
83
|
-
export interface LoginFormValidation {
|
|
84
|
-
usernameError: string | null;
|
|
85
|
-
passwordError: string | null;
|
|
86
|
-
}
|
|
87
|
-
export interface LoginStatus {
|
|
88
|
-
status: 'connected' | 'not_authorized' | 'unknown';
|
|
89
|
-
authResponse?: {
|
|
90
|
-
accessToken: string;
|
|
91
|
-
tokenType: string;
|
|
92
|
-
user: UserData;
|
|
93
|
-
};
|
|
94
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
export default sessionStore;
|
|
2
|
-
declare const sessionStore: SessionStore;
|
|
3
|
-
declare class SessionStore {
|
|
4
|
-
loading: boolean;
|
|
5
|
-
loginStatus: {
|
|
6
|
-
status: string;
|
|
7
|
-
};
|
|
8
|
-
refreshTokenPromise: null;
|
|
9
|
-
api: SessionAPI;
|
|
10
|
-
networkError: any;
|
|
11
|
-
setLoading(value: any): void;
|
|
12
|
-
setConnectedLoginStatus(): void;
|
|
13
|
-
setNotAuthorizedLoginStatus(): void;
|
|
14
|
-
setAuthConfig(config: any): void;
|
|
15
|
-
setNetworkError(value: any): void;
|
|
16
|
-
isLoggedIn(): boolean;
|
|
17
|
-
requestHeaders(): {
|
|
18
|
-
'Accept-Language': string;
|
|
19
|
-
} | {
|
|
20
|
-
Authorization: string;
|
|
21
|
-
'Accept-Language': string;
|
|
22
|
-
};
|
|
23
|
-
authorize(credentials: any, storeSession?: boolean): Promise<null>;
|
|
24
|
-
session: any;
|
|
25
|
-
refresh(): Promise<null>;
|
|
26
|
-
recover(): Promise<void>;
|
|
27
|
-
logout(): Promise<void>;
|
|
28
|
-
refreshUserData(): Promise<{
|
|
29
|
-
id: any;
|
|
30
|
-
companyId: any;
|
|
31
|
-
roleId: any;
|
|
32
|
-
username: any;
|
|
33
|
-
email: any;
|
|
34
|
-
name: any;
|
|
35
|
-
permissionsMap: any;
|
|
36
|
-
featuresMap: {
|
|
37
|
-
[k: string]: {
|
|
38
|
-
status: any;
|
|
39
|
-
entitlementType: any;
|
|
40
|
-
expiresAt: any;
|
|
41
|
-
daysSinceExpiry: any;
|
|
42
|
-
permissions: any;
|
|
43
|
-
} | null;
|
|
44
|
-
} | null;
|
|
45
|
-
featuresRequestsMap: {} | null;
|
|
46
|
-
} | null>;
|
|
47
|
-
storeSession(): Promise<void>;
|
|
48
|
-
restoreSession(): Promise<void>;
|
|
49
|
-
removeSession(): void;
|
|
50
|
-
setCurrentUser(user: any): void;
|
|
51
|
-
removeCurrentUser(): void;
|
|
52
|
-
}
|
|
53
|
-
declare class SessionAPI {
|
|
54
|
-
setAuthConfig({ baseUrl, clientId, redirectUri }: {
|
|
55
|
-
baseUrl: any;
|
|
56
|
-
clientId: any;
|
|
57
|
-
redirectUri: any;
|
|
58
|
-
}): void;
|
|
59
|
-
baseUrl: any;
|
|
60
|
-
clientId: any;
|
|
61
|
-
redirectUri: any;
|
|
62
|
-
authorize(credentials: any): Promise<undefined>;
|
|
63
|
-
getUserData(authData: any): Promise<{
|
|
64
|
-
id: any;
|
|
65
|
-
companyId: any;
|
|
66
|
-
roleId: any;
|
|
67
|
-
username: any;
|
|
68
|
-
email: any;
|
|
69
|
-
name: any;
|
|
70
|
-
permissionsMap: any;
|
|
71
|
-
featuresMap: {
|
|
72
|
-
[k: string]: {
|
|
73
|
-
status: any;
|
|
74
|
-
entitlementType: any;
|
|
75
|
-
expiresAt: any;
|
|
76
|
-
daysSinceExpiry: any;
|
|
77
|
-
permissions: any;
|
|
78
|
-
} | null;
|
|
79
|
-
} | null;
|
|
80
|
-
featuresRequestsMap: {} | null;
|
|
81
|
-
} | null>;
|
|
82
|
-
signOut(token: any): Promise<void>;
|
|
83
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: UserStore;
|
|
2
|
-
export default _default;
|
|
3
|
-
declare class UserStore {
|
|
4
|
-
currentUser: null;
|
|
5
|
-
permissionsMap: null;
|
|
6
|
-
featuresMap: null;
|
|
7
|
-
featuresRequestsMap: null;
|
|
8
|
-
setCurrentUser(currentUser: any): void;
|
|
9
|
-
removeCurrentUser(): void;
|
|
10
|
-
setPermissionsMap(permissionsMap: any): void;
|
|
11
|
-
setFeaturesMap(featuresMap: any): void;
|
|
12
|
-
setFeaturesRequestsMap(featuresRequestsMap: any): void;
|
|
13
|
-
get getCurrentUserJS(): null;
|
|
14
|
-
}
|
package/dist/src/theme.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare class AuthFetch {
|
|
2
|
-
callback: () => void;
|
|
3
|
-
constructor();
|
|
4
|
-
setCallback(callback: () => void): void;
|
|
5
|
-
removeCallback(): void;
|
|
6
|
-
}
|
|
7
|
-
declare const authFetchInstance: AuthFetch;
|
|
8
|
-
declare function authFetch(url: string, options?: Record<string, unknown>): Promise<Response | undefined>;
|
|
9
|
-
export default authFetchInstance;
|
|
10
|
-
export { authFetch as fetch };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export function isTrustedOrigin(origin: any): boolean;
|
|
2
|
-
export function getDisplayMode(): "standalone" | "iframe";
|
|
3
|
-
export function postToParent(message: any): void;
|
|
4
|
-
export function updateParentHeaderLeadingText(text: any): void;
|
|
5
|
-
export function resetParentHeaderLeadingText(): void;
|
|
6
|
-
export function updateParentHeaderTitle(title: any): void;
|
|
7
|
-
export function resetParentHeaderTitle(): void;
|
|
8
|
-
export function updateParentHeaderStyles({ target, styles }: {
|
|
9
|
-
target: any;
|
|
10
|
-
styles: any;
|
|
11
|
-
}): void;
|
|
12
|
-
export function resetParentHeaderStyles(target: any): void;
|
|
13
|
-
export function updateParentHeaderContent(descriptor: any): void;
|
|
14
|
-
export function resetParentHeaderContent(): void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export default andoncloudFetch;
|
|
2
|
-
export { acFetch as fetch };
|
|
3
|
-
declare const andoncloudFetch: AndoncloudFetch;
|
|
4
|
-
declare function acFetch(url: any, options?: {}): Promise<void | Response>;
|
|
5
|
-
declare class AndoncloudFetch {
|
|
6
|
-
callback: () => void;
|
|
7
|
-
setCallback(callback: any): void;
|
|
8
|
-
removeCallback(): void;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function registerServiceWorker(config: any): void;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FeatureInfo, RawFeatureInfo, RawRequestInfo } from '../stores/SessionStore/types';
|
|
2
|
-
interface CooldownStatus {
|
|
3
|
-
isInCooldown: boolean;
|
|
4
|
-
daysRemaining: number;
|
|
5
|
-
}
|
|
6
|
-
interface AccessButton {
|
|
7
|
-
requestType?: string;
|
|
8
|
-
}
|
|
9
|
-
type FeaturesRequestsMap = Record<string, Record<string, Record<string, CooldownStatus>>>;
|
|
10
|
-
export declare const convertFeatureInfoToCamelCase: (featureInfo: RawFeatureInfo | null) => FeatureInfo | null;
|
|
11
|
-
export declare const convertFeaturesMapToCamelCase: (featuresMap: Record<string, RawFeatureInfo> | null) => Record<string, FeatureInfo | null> | null;
|
|
12
|
-
export declare const convertFeaturesRequestsMapToCamelCase: (featuresRequestsMap: Record<string, Record<string, Record<string, RawRequestInfo>>> | null) => FeaturesRequestsMap | null;
|
|
13
|
-
export declare const getCooldownStatus: (featuresRequestsMap: FeaturesRequestsMap | null, featureKey: string, requestType: string, workplaceId?: string) => CooldownStatus;
|
|
14
|
-
export declare const getCooldownInfo: (featuresRequestsMap: FeaturesRequestsMap | null, featureKey: string, buttons: AccessButton[], workplaceId?: string) => Record<string, CooldownStatus>;
|
|
15
|
-
export {};
|
package/dist/src/utils/text.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function toCamelCase(str: any): any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function validateRedirectUrl(url: string): string;
|
package/dist/src/version.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const LIBRARY_VERSION = "1.7.24";
|
package/dist/version.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const LIBRARY_VERSION = "1.7.8";
|