@hiver/connector-admin 3.0.2 → 3.0.3-unifiedView-beta.0
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/app/connectors/index.d.ts +1 -1
- package/app/connectors/index.d.ts.map +1 -1
- package/app/index.d.ts +1 -1
- package/app/index.d.ts.map +1 -1
- package/bootstrap.d.ts +4 -0
- package/bootstrap.d.ts.map +1 -0
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.es.js +17544 -12979
- package/index.umd.js +1927 -252
- package/main.d.ts +0 -1
- package/main.d.ts.map +1 -1
- package/package.json +1 -1
- package/style.css +1 -0
- package/testing/mocks/handlers/connector-template.d.ts +1 -1
- package/testing/mocks/handlers/connector-template.d.ts.map +1 -1
- package/types/router.d.ts +1 -0
- package/types/router.d.ts.map +1 -1
- package/v2/app/connectors/index.d.ts +3 -0
- package/v2/app/connectors/index.d.ts.map +1 -0
- package/v2/app/connectors/pages/Dashboard/index.d.ts +3 -0
- package/v2/app/connectors/pages/Dashboard/index.d.ts.map +1 -0
- package/v2/app/connectors/pages/Dashboard/style.d.ts +8 -0
- package/v2/app/connectors/pages/Dashboard/style.d.ts.map +1 -0
- package/v2/app/connectors/pages/api-view/__tests__/connector-config.test.d.ts +2 -0
- package/v2/app/connectors/pages/api-view/__tests__/connector-config.test.d.ts.map +1 -0
- package/v2/app/connectors/pages/api-view/index.d.ts +2 -0
- package/v2/app/connectors/pages/api-view/index.d.ts.map +1 -0
- package/v2/app/connectors/pages/api-view/style.d.ts +5 -0
- package/v2/app/connectors/pages/api-view/style.d.ts.map +1 -0
- package/v2/app/connectors/pages/auth-success/index.d.ts +2 -0
- package/v2/app/connectors/pages/auth-success/index.d.ts.map +1 -0
- package/v2/app/connectors/pages/auth-success/styles.d.ts +4 -0
- package/v2/app/connectors/pages/auth-success/styles.d.ts.map +1 -0
- package/v2/app/connectors/pages/connector-edit/index.d.ts +2 -0
- package/v2/app/connectors/pages/connector-edit/index.d.ts.map +1 -0
- package/v2/app/connectors/pages/settings/components/upgrade-guide/index.d.ts +7 -0
- package/v2/app/connectors/pages/settings/components/upgrade-guide/index.d.ts.map +1 -0
- package/v2/app/connectors/pages/settings/components/upgrade-guide/styles.d.ts +8 -0
- package/v2/app/connectors/pages/settings/components/upgrade-guide/styles.d.ts.map +1 -0
- package/v2/app/connectors/pages/settings/index.d.ts +6 -0
- package/v2/app/connectors/pages/settings/index.d.ts.map +1 -0
- package/v2/app/connectors/pages/settings/styles.d.ts +5 -0
- package/v2/app/connectors/pages/settings/styles.d.ts.map +1 -0
- package/v2/app/connectors/pages/upgrade-page/index.d.ts +7 -0
- package/v2/app/connectors/pages/upgrade-page/index.d.ts.map +1 -0
- package/v2/app/connectors/pages/upgrade-page/style.d.ts +16 -0
- package/v2/app/connectors/pages/upgrade-page/style.d.ts.map +1 -0
- package/v2/app/connectors/provider.d.ts +4 -0
- package/v2/app/connectors/provider.d.ts.map +1 -0
- package/v2/app/connectors/router.d.ts +7 -0
- package/v2/app/connectors/router.d.ts.map +1 -0
- package/v2/app/index.d.ts +2 -0
- package/v2/app/index.d.ts.map +1 -0
- package/v2/app/style.d.ts +4 -0
- package/v2/app/style.d.ts.map +1 -0
- package/v2/components/ui/auto-complete/index.d.ts +14 -0
- package/v2/components/ui/auto-complete/index.d.ts.map +1 -0
- package/v2/components/ui/auto-complete/style.d.ts +5 -0
- package/v2/components/ui/auto-complete/style.d.ts.map +1 -0
- package/v2/components/ui/bread-crumbs/__tests__/bread-crumb.test.d.ts +2 -0
- package/v2/components/ui/bread-crumbs/__tests__/bread-crumb.test.d.ts.map +1 -0
- package/v2/components/ui/bread-crumbs/index.d.ts +7 -0
- package/v2/components/ui/bread-crumbs/index.d.ts.map +1 -0
- package/v2/components/ui/bread-crumbs/styles.d.ts +6 -0
- package/v2/components/ui/bread-crumbs/styles.d.ts.map +1 -0
- package/v2/components/ui/connector-alert/index.d.ts +10 -0
- package/v2/components/ui/connector-alert/index.d.ts.map +1 -0
- package/v2/components/ui/connector-item/index.d.ts +15 -0
- package/v2/components/ui/connector-item/index.d.ts.map +1 -0
- package/v2/components/ui/connector-item-skeleton/index.d.ts +2 -0
- package/v2/components/ui/connector-item-skeleton/index.d.ts.map +1 -0
- package/v2/components/ui/connector-item-skeleton/styles.d.ts +7 -0
- package/v2/components/ui/connector-item-skeleton/styles.d.ts.map +1 -0
- package/v2/components/ui/details/index.d.ts +9 -0
- package/v2/components/ui/details/index.d.ts.map +1 -0
- package/v2/components/ui/details/styles.d.ts +11 -0
- package/v2/components/ui/details/styles.d.ts.map +1 -0
- package/v2/components/ui/modal/__tests__/modal.test.d.ts +2 -0
- package/v2/components/ui/modal/__tests__/modal.test.d.ts.map +1 -0
- package/v2/components/ui/modal/index.d.ts +13 -0
- package/v2/components/ui/modal/index.d.ts.map +1 -0
- package/v2/components/ui/styled-ui-components.d.ts +6 -0
- package/v2/components/ui/styled-ui-components.d.ts.map +1 -0
- package/v2/components/ui/text-field/index.d.ts +3 -0
- package/v2/components/ui/text-field/index.d.ts.map +1 -0
- package/v2/constants/api.d.ts +14 -0
- package/v2/constants/api.d.ts.map +1 -0
- package/v2/constants/app-constants.d.ts +14 -0
- package/v2/constants/app-constants.d.ts.map +1 -0
- package/v2/constants/bread-crumbs.d.ts +3 -0
- package/v2/constants/bread-crumbs.d.ts.map +1 -0
- package/v2/constants/gainsight.d.ts +37 -0
- package/v2/constants/gainsight.d.ts.map +1 -0
- package/v2/constants/global-constants.d.ts +27 -0
- package/v2/constants/global-constants.d.ts.map +1 -0
- package/v2/constants/modal.d.ts +4 -0
- package/v2/constants/modal.d.ts.map +1 -0
- package/v2/constants/react-image-viewer.d.ts +3 -0
- package/v2/constants/react-image-viewer.d.ts.map +1 -0
- package/v2/constants/remote-assets.d.ts +5 -0
- package/v2/constants/remote-assets.d.ts.map +1 -0
- package/v2/constants/router-paths.d.ts +11 -0
- package/v2/constants/router-paths.d.ts.map +1 -0
- package/v2/constants/sidebar.d.ts +10 -0
- package/v2/constants/sidebar.d.ts.map +1 -0
- package/v2/context/index.d.ts +37 -0
- package/v2/context/index.d.ts.map +1 -0
- package/v2/context/main-app-provider/index.d.ts +4 -0
- package/v2/context/main-app-provider/index.d.ts.map +1 -0
- package/v2/context/react-query-client-provider/index.d.ts +6 -0
- package/v2/context/react-query-client-provider/index.d.ts.map +1 -0
- package/v2/features/agent/components/agent-landing/index.d.ts +3 -0
- package/v2/features/agent/components/agent-landing/index.d.ts.map +1 -0
- package/v2/features/agent/components/agent-landing/styles.d.ts +8 -0
- package/v2/features/agent/components/agent-landing/styles.d.ts.map +1 -0
- package/v2/features/agent/constants/index.d.ts +6 -0
- package/v2/features/agent/constants/index.d.ts.map +1 -0
- package/v2/features/api-library/components/api-library/index.d.ts +11 -0
- package/v2/features/api-library/components/api-library/index.d.ts.map +1 -0
- package/v2/features/api-library/components/api-library/styles.d.ts +5 -0
- package/v2/features/api-library/components/api-library/styles.d.ts.map +1 -0
- package/v2/features/api-library/components/api-library-skeleton/index.d.ts +2 -0
- package/v2/features/api-library/components/api-library-skeleton/index.d.ts.map +1 -0
- package/v2/features/api-library/components/api-library-skeleton/styles.d.ts +9 -0
- package/v2/features/api-library/components/api-library-skeleton/styles.d.ts.map +1 -0
- package/v2/features/api-library/constants/api-library.d.ts +4 -0
- package/v2/features/api-library/constants/api-library.d.ts.map +1 -0
- package/v2/features/auth/api/authDetailsMutation.d.ts +25 -0
- package/v2/features/auth/api/authDetailsMutation.d.ts.map +1 -0
- package/v2/features/auth/api/authSuccessQuery.d.ts +9 -0
- package/v2/features/auth/api/authSuccessQuery.d.ts.map +1 -0
- package/v2/features/auth/api/index.d.ts +4 -0
- package/v2/features/auth/api/index.d.ts.map +1 -0
- package/v2/features/auth/components/api-executor/index.d.ts +10 -0
- package/v2/features/auth/components/api-executor/index.d.ts.map +1 -0
- package/v2/features/auth/components/api-executor/styles.d.ts +12 -0
- package/v2/features/auth/components/api-executor/styles.d.ts.map +1 -0
- package/v2/features/auth/components/auth-form/index.d.ts +15 -0
- package/v2/features/auth/components/auth-form/index.d.ts.map +1 -0
- package/v2/features/auth/components/auth-form/reducer.d.ts +11 -0
- package/v2/features/auth/components/auth-form/reducer.d.ts.map +1 -0
- package/v2/features/auth/components/auth-form/styles.d.ts +9 -0
- package/v2/features/auth/components/auth-form/styles.d.ts.map +1 -0
- package/v2/features/auth/components/auth-form-skeleton/index.d.ts +2 -0
- package/v2/features/auth/components/auth-form-skeleton/index.d.ts.map +1 -0
- package/v2/features/auth/components/auth-header-skeleton/index.d.ts +2 -0
- package/v2/features/auth/components/auth-header-skeleton/index.d.ts.map +1 -0
- package/v2/features/auth/constants/api.d.ts +6 -0
- package/v2/features/auth/constants/api.d.ts.map +1 -0
- package/v2/features/auth/constants/form-config.d.ts +96 -0
- package/v2/features/auth/constants/form-config.d.ts.map +1 -0
- package/v2/features/auth/constants/index.d.ts +27 -0
- package/v2/features/auth/constants/index.d.ts.map +1 -0
- package/v2/features/auth/store/initial-state.d.ts +13 -0
- package/v2/features/auth/store/initial-state.d.ts.map +1 -0
- package/v2/features/auth/store/selectors.d.ts +6 -0
- package/v2/features/auth/store/selectors.d.ts.map +1 -0
- package/v2/features/auth/store/slice.d.ts +43 -0
- package/v2/features/auth/store/slice.d.ts.map +1 -0
- package/v2/features/auth/types/connector.d.ts +2 -0
- package/v2/features/auth/types/connector.d.ts.map +1 -0
- package/v2/features/auth/types/form.d.ts +25 -0
- package/v2/features/auth/types/form.d.ts.map +1 -0
- package/v2/features/auth/types/request.d.ts +51 -0
- package/v2/features/auth/types/request.d.ts.map +1 -0
- package/v2/features/auth/utils/index.d.ts +33 -0
- package/v2/features/auth/utils/index.d.ts.map +1 -0
- package/v2/features/connector-library/api/index.d.ts +14 -0
- package/v2/features/connector-library/api/index.d.ts.map +1 -0
- package/v2/features/connector-library/components/connector-info-card/index.d.ts +9 -0
- package/v2/features/connector-library/components/connector-info-card/index.d.ts.map +1 -0
- package/v2/features/connector-library/components/connector-info-card/styles.d.ts +8 -0
- package/v2/features/connector-library/components/connector-info-card/styles.d.ts.map +1 -0
- package/v2/features/connector-library/components/connector-info-card-list/index.d.ts +9 -0
- package/v2/features/connector-library/components/connector-info-card-list/index.d.ts.map +1 -0
- package/v2/features/connector-library/components/custom-connector-card-item/index.d.ts +11 -0
- package/v2/features/connector-library/components/custom-connector-card-item/index.d.ts.map +1 -0
- package/v2/features/connector-library/components/custom-connector-card-item/styles.d.ts +12 -0
- package/v2/features/connector-library/components/custom-connector-card-item/styles.d.ts.map +1 -0
- package/v2/features/connector-library/components/custom-connector-card-list/index.d.ts +3 -0
- package/v2/features/connector-library/components/custom-connector-card-list/index.d.ts.map +1 -0
- package/v2/features/connector-library/components/custom-connector-enabled-modal/index.d.ts +9 -0
- package/v2/features/connector-library/components/custom-connector-enabled-modal/index.d.ts.map +1 -0
- package/v2/features/connector-library/components/custom-connector-enabled-modal/styles.d.ts +5 -0
- package/v2/features/connector-library/components/custom-connector-enabled-modal/styles.d.ts.map +1 -0
- package/v2/features/connector-library/components/custom-connector-upgrades-tooltip/index.d.ts +7 -0
- package/v2/features/connector-library/components/custom-connector-upgrades-tooltip/index.d.ts.map +1 -0
- package/v2/features/connector-library/components/custom-connector-upgrades-tooltip/styled.d.ts +4 -0
- package/v2/features/connector-library/components/custom-connector-upgrades-tooltip/styled.d.ts.map +1 -0
- package/v2/features/connector-library/components/singleton-popover-tooltip/index.d.ts +7 -0
- package/v2/features/connector-library/components/singleton-popover-tooltip/index.d.ts.map +1 -0
- package/v2/features/connector-library/components/singleton-popover-tooltip/popover-title.d.ts +2 -0
- package/v2/features/connector-library/components/singleton-popover-tooltip/popover-title.d.ts.map +1 -0
- package/v2/features/connector-library/components/singleton-popover-tooltip/popover-tooltip.d.ts +7 -0
- package/v2/features/connector-library/components/singleton-popover-tooltip/popover-tooltip.d.ts.map +1 -0
- package/v2/features/connector-library/components/singleton-popover-tooltip/styles.d.ts +6 -0
- package/v2/features/connector-library/components/singleton-popover-tooltip/styles.d.ts.map +1 -0
- package/v2/features/connector-library/components/visibility-modal/card-visibility/index.d.ts +10 -0
- package/v2/features/connector-library/components/visibility-modal/card-visibility/index.d.ts.map +1 -0
- package/v2/features/connector-library/components/visibility-modal/constants.d.ts +4 -0
- package/v2/features/connector-library/components/visibility-modal/constants.d.ts.map +1 -0
- package/v2/features/connector-library/components/visibility-modal/field-visibility/index.d.ts +9 -0
- package/v2/features/connector-library/components/visibility-modal/field-visibility/index.d.ts.map +1 -0
- package/v2/features/connector-library/components/visibility-modal/field-visibility/sortable-field.d.ts +9 -0
- package/v2/features/connector-library/components/visibility-modal/field-visibility/sortable-field.d.ts.map +1 -0
- package/v2/features/connector-library/components/visibility-modal/field-visibility/style.d.ts +5 -0
- package/v2/features/connector-library/components/visibility-modal/field-visibility/style.d.ts.map +1 -0
- package/v2/features/connector-library/components/visibility-modal/index.d.ts +4 -0
- package/v2/features/connector-library/components/visibility-modal/index.d.ts.map +1 -0
- package/v2/features/connector-library/components/visibility-modal/style.d.ts +14 -0
- package/v2/features/connector-library/components/visibility-modal/style.d.ts.map +1 -0
- package/v2/features/connector-library/constants/api.d.ts +15 -0
- package/v2/features/connector-library/constants/api.d.ts.map +1 -0
- package/v2/features/connector-library/constants/index.d.ts +30 -0
- package/v2/features/connector-library/constants/index.d.ts.map +1 -0
- package/v2/features/connector-library/context/singleton-context/hooks.d.ts +5 -0
- package/v2/features/connector-library/context/singleton-context/hooks.d.ts.map +1 -0
- package/v2/features/connector-library/context/singleton-context/index.d.ts +9 -0
- package/v2/features/connector-library/context/singleton-context/index.d.ts.map +1 -0
- package/v2/features/connector-library/store/initial-state.d.ts +33 -0
- package/v2/features/connector-library/store/initial-state.d.ts.map +1 -0
- package/v2/features/connector-library/store/selectors.d.ts +26 -0
- package/v2/features/connector-library/store/selectors.d.ts.map +1 -0
- package/v2/features/connector-library/store/slice.d.ts +126 -0
- package/v2/features/connector-library/store/slice.d.ts.map +1 -0
- package/v2/features/connector-library/utils/index.d.ts +3 -0
- package/v2/features/connector-library/utils/index.d.ts.map +1 -0
- package/v2/features/connector-preview/components/connector-preview/index.d.ts +14 -0
- package/v2/features/connector-preview/components/connector-preview/index.d.ts.map +1 -0
- package/v2/features/connector-preview/components/connector-preview/styles.d.ts +5 -0
- package/v2/features/connector-preview/components/connector-preview/styles.d.ts.map +1 -0
- package/v2/features/connector-preview/components/connector-preview-skeleton/index.d.ts +2 -0
- package/v2/features/connector-preview/components/connector-preview-skeleton/index.d.ts.map +1 -0
- package/v2/features/connector-preview/components/connector-preview-skeleton/styles.d.ts +7 -0
- package/v2/features/connector-preview/components/connector-preview-skeleton/styles.d.ts.map +1 -0
- package/v2/features/connector-preview/components/footer/index.d.ts +7 -0
- package/v2/features/connector-preview/components/footer/index.d.ts.map +1 -0
- package/v2/features/connector-preview/components/footer/styles.d.ts +6 -0
- package/v2/features/connector-preview/components/footer/styles.d.ts.map +1 -0
- package/v2/features/connector-preview/components/image-preview-list/index.d.ts +6 -0
- package/v2/features/connector-preview/components/image-preview-list/index.d.ts.map +1 -0
- package/v2/features/connector-preview/components/image-preview-list/styles.d.ts +5 -0
- package/v2/features/connector-preview/components/image-preview-list/styles.d.ts.map +1 -0
- package/v2/features/connector-preview/constants/index.d.ts +4 -0
- package/v2/features/connector-preview/constants/index.d.ts.map +1 -0
- package/v2/features/connector-preview/utils/index.d.ts +2 -0
- package/v2/features/connector-preview/utils/index.d.ts.map +1 -0
- package/v2/features/connector-setup-guide/components/guide-links/index.d.ts +7 -0
- package/v2/features/connector-setup-guide/components/guide-links/index.d.ts.map +1 -0
- package/v2/features/connector-setup-guide/components/guide-links/styles.d.ts +9 -0
- package/v2/features/connector-setup-guide/components/guide-links/styles.d.ts.map +1 -0
- package/v2/features/connector-setup-guide/components/schedule-call/index.d.ts +7 -0
- package/v2/features/connector-setup-guide/components/schedule-call/index.d.ts.map +1 -0
- package/v2/features/connector-setup-guide/components/schedule-call/styles.d.ts +8 -0
- package/v2/features/connector-setup-guide/components/schedule-call/styles.d.ts.map +1 -0
- package/v2/features/connector-setup-guide/constants/index.d.ts +13 -0
- package/v2/features/connector-setup-guide/constants/index.d.ts.map +1 -0
- package/v2/features/connector-setup-guide/types/index.d.ts +16 -0
- package/v2/features/connector-setup-guide/types/index.d.ts.map +1 -0
- package/v2/features/request-new-connector/api/index.d.ts +8 -0
- package/v2/features/request-new-connector/api/index.d.ts.map +1 -0
- package/v2/features/request-new-connector/components/request-new-card/index.d.ts +7 -0
- package/v2/features/request-new-connector/components/request-new-card/index.d.ts.map +1 -0
- package/v2/features/request-new-connector/components/request-new-card/styles.d.ts +11 -0
- package/v2/features/request-new-connector/components/request-new-card/styles.d.ts.map +1 -0
- package/v2/features/request-new-connector/components/request-new-modal/__tests__/request-new-modal.test.d.ts +2 -0
- package/v2/features/request-new-connector/components/request-new-modal/__tests__/request-new-modal.test.d.ts.map +1 -0
- package/v2/features/request-new-connector/components/request-new-modal/index.d.ts +9 -0
- package/v2/features/request-new-connector/components/request-new-modal/index.d.ts.map +1 -0
- package/v2/features/request-new-connector/components/request-new-modal/request-panel.d.ts +14 -0
- package/v2/features/request-new-connector/components/request-new-modal/request-panel.d.ts.map +1 -0
- package/v2/features/request-new-connector/components/request-new-modal/styles.d.ts +6 -0
- package/v2/features/request-new-connector/components/request-new-modal/styles.d.ts.map +1 -0
- package/v2/features/request-new-connector/components/request-new-modal/submitted-panel.d.ts +7 -0
- package/v2/features/request-new-connector/components/request-new-modal/submitted-panel.d.ts.map +1 -0
- package/v2/features/request-new-connector/constants/api.d.ts +2 -0
- package/v2/features/request-new-connector/constants/api.d.ts.map +1 -0
- package/v2/features/request-new-connector/constants/index.d.ts +25 -0
- package/v2/features/request-new-connector/constants/index.d.ts.map +1 -0
- package/v2/features/request-new-connector/types/index.d.ts +20 -0
- package/v2/features/request-new-connector/types/index.d.ts.map +1 -0
- package/v2/features/template-library/api/index.d.ts +7 -0
- package/v2/features/template-library/api/index.d.ts.map +1 -0
- package/v2/features/template-library/components/library-card-list/index.d.ts +3 -0
- package/v2/features/template-library/components/library-card-list/index.d.ts.map +1 -0
- package/v2/features/template-library/components/library-card-list/styles.d.ts +8 -0
- package/v2/features/template-library/components/library-card-list/styles.d.ts.map +1 -0
- package/v2/features/template-library/components/library-edit-list/index.d.ts +2 -0
- package/v2/features/template-library/components/library-edit-list/index.d.ts.map +1 -0
- package/v2/features/template-library/components/library-edit-list/styles.d.ts +2 -0
- package/v2/features/template-library/components/library-edit-list/styles.d.ts.map +1 -0
- package/v2/features/template-library/constants/api.d.ts +3 -0
- package/v2/features/template-library/constants/api.d.ts.map +1 -0
- package/v2/features/template-library/store/initial-state.d.ts +15 -0
- package/v2/features/template-library/store/initial-state.d.ts.map +1 -0
- package/v2/features/template-library/store/selectors.d.ts +8 -0
- package/v2/features/template-library/store/selectors.d.ts.map +1 -0
- package/v2/features/template-library/store/slice.d.ts +39 -0
- package/v2/features/template-library/store/slice.d.ts.map +1 -0
- package/v2/features/toast-message/CloseButton.d.ts +4 -0
- package/v2/features/toast-message/CloseButton.d.ts.map +1 -0
- package/v2/features/toast-message/HiverIconToast.d.ts +7 -0
- package/v2/features/toast-message/HiverIconToast.d.ts.map +1 -0
- package/v2/features/toast-message/__tests__/toastMessage.test.d.ts +2 -0
- package/v2/features/toast-message/__tests__/toastMessage.test.d.ts.map +1 -0
- package/v2/features/toast-message/constants/toast.d.ts +6 -0
- package/v2/features/toast-message/constants/toast.d.ts.map +1 -0
- package/v2/features/toast-message/showMessage.d.ts +13 -0
- package/v2/features/toast-message/showMessage.d.ts.map +1 -0
- package/v2/features/toast-message/style.d.ts +7 -0
- package/v2/features/toast-message/style.d.ts.map +1 -0
- package/v2/store/counter/initial-state.d.ts +6 -0
- package/v2/store/counter/initial-state.d.ts.map +1 -0
- package/v2/store/counter/selectors.d.ts +4 -0
- package/v2/store/counter/selectors.d.ts.map +1 -0
- package/v2/store/counter/slice.d.ts +23 -0
- package/v2/store/counter/slice.d.ts.map +1 -0
- package/v2/store/hooks.d.ts +15 -0
- package/v2/store/hooks.d.ts.map +1 -0
- package/v2/store/index.d.ts +34 -0
- package/v2/store/index.d.ts.map +1 -0
- package/v2/store/request-connector-api/initial-state.d.ts +9 -0
- package/v2/store/request-connector-api/initial-state.d.ts.map +1 -0
- package/v2/store/request-connector-api/selectors.d.ts +5 -0
- package/v2/store/request-connector-api/selectors.d.ts.map +1 -0
- package/v2/store/request-connector-api/slice.d.ts +39 -0
- package/v2/store/request-connector-api/slice.d.ts.map +1 -0
- package/v2/testing/mocks/browser.d.ts +2 -0
- package/v2/testing/mocks/browser.d.ts.map +1 -0
- package/v2/testing/mocks/handlers/auth.d.ts +2 -0
- package/v2/testing/mocks/handlers/auth.d.ts.map +1 -0
- package/v2/testing/mocks/handlers/bifrost-token.d.ts +2 -0
- package/v2/testing/mocks/handlers/bifrost-token.d.ts.map +1 -0
- package/v2/testing/mocks/handlers/connector-template.d.ts +33 -0
- package/v2/testing/mocks/handlers/connector-template.d.ts.map +1 -0
- package/v2/testing/mocks/handlers/request-connector-api.d.ts +2 -0
- package/v2/testing/mocks/handlers/request-connector-api.d.ts.map +1 -0
- package/v2/testing/mocks/handlers/update-connector.d.ts +2 -0
- package/v2/testing/mocks/handlers/update-connector.d.ts.map +1 -0
- package/v2/testing/mocks/handlers/v2Api.d.ts +2 -0
- package/v2/testing/mocks/handlers/v2Api.d.ts.map +1 -0
- package/v2/testing/mocks/handlers.d.ts +2 -0
- package/v2/testing/mocks/handlers.d.ts.map +1 -0
- package/v2/testing/mocks/server.d.ts +2 -0
- package/v2/testing/mocks/server.d.ts.map +1 -0
- package/v2/testing/setup-store.d.ts +17 -0
- package/v2/testing/setup-store.d.ts.map +1 -0
- package/v2/testing/setup-test.d.ts +1 -0
- package/v2/testing/setup-test.d.ts.map +1 -0
- package/v2/testing/test-utils.d.ts +69 -0
- package/v2/testing/test-utils.d.ts.map +1 -0
- package/v2/types/api.d.ts +2 -0
- package/v2/types/api.d.ts.map +1 -0
- package/v2/types/app.d.ts +38 -0
- package/v2/types/app.d.ts.map +1 -0
- package/v2/types/common.d.ts +6 -0
- package/v2/types/common.d.ts.map +1 -0
- package/v2/types/connector.d.ts +113 -0
- package/v2/types/connector.d.ts.map +1 -0
- package/v2/types/exposedTypes.d.ts +23 -0
- package/v2/types/exposedTypes.d.ts.map +1 -0
- package/v2/types/form.d.ts +39 -0
- package/v2/types/form.d.ts.map +1 -0
- package/v2/types/json.d.ts +7 -0
- package/v2/types/json.d.ts.map +1 -0
- package/v2/types/sidebar.d.ts +8 -0
- package/v2/types/sidebar.d.ts.map +1 -0
- package/v2/types/visibility.d.ts +35 -0
- package/v2/types/visibility.d.ts.map +1 -0
- package/v2/utils/index.d.ts +28 -0
- package/v2/utils/index.d.ts.map +1 -0
- package/v2/utils/localstorage.d.ts +22 -0
- package/v2/utils/localstorage.d.ts.map +1 -0
- package/v2/utils/type-guards.d.ts +3 -0
- package/v2/utils/type-guards.d.ts.map +1 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { IBaseUrls } from '../context';
|
|
3
|
+
import { IMetaData } from '@connector/utils';
|
|
4
|
+
import { ConnectorsAdminFunctions } from './exposedTypes';
|
|
5
|
+
export interface IAvailableFtr {
|
|
6
|
+
[key: string]: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface ISendTrackingEventData {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
11
|
+
export interface IExtraParams {
|
|
12
|
+
sendTrackingEvent?: (event: string, data?: ISendTrackingEventData) => void;
|
|
13
|
+
userPermissions?: string[];
|
|
14
|
+
metaData?: IMetaData;
|
|
15
|
+
}
|
|
16
|
+
export interface IAppProviderProps {
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
baseUrls?: IBaseUrls;
|
|
19
|
+
availableFeatures?: IAvailableFtr;
|
|
20
|
+
extraParams?: IExtraParams;
|
|
21
|
+
connectorFunctions: ConnectorsAdminFunctions;
|
|
22
|
+
}
|
|
23
|
+
export interface NativeIntegrations {
|
|
24
|
+
name: string;
|
|
25
|
+
id: string;
|
|
26
|
+
Component: React.Component | React.FunctionComponent;
|
|
27
|
+
logo: string;
|
|
28
|
+
}
|
|
29
|
+
export interface IConnectorApp {
|
|
30
|
+
isUnifiedView: true;
|
|
31
|
+
basename?: string;
|
|
32
|
+
baseUrls?: IBaseUrls;
|
|
33
|
+
availableFeatures?: IAvailableFtr;
|
|
34
|
+
extraParams?: IExtraParams;
|
|
35
|
+
connectorFunctions: ConnectorsAdminFunctions;
|
|
36
|
+
nativeIntegrations?: NativeIntegrations;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=app.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/v2/types/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,MAAM,WAAW,aAAa;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IAErC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,sBAAsB,KAAK,IAAI,CAAC;IAC3E,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,iBAAiB,CAAC,EAAE,aAAa,CAAC;IAClC,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,kBAAkB,EAAE,wBAAwB,CAAC;CAC9C;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,iBAAiB,CAAC;IACrD,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,iBAAiB,CAAC,EAAE,aAAa,CAAC;IAClC,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,kBAAkB,EAAE,wBAAwB,CAAC;IAC7C,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/v2/types/common.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,GAAG,MAAM,CAAC,GAAG,KAAK,CAAC;AACzD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { TextFieldBaseProps } from './form';
|
|
2
|
+
import { IField } from './visibility';
|
|
3
|
+
export type ConnectorId = string;
|
|
4
|
+
export interface IAPI {
|
|
5
|
+
name: string;
|
|
6
|
+
keyName: string;
|
|
7
|
+
description: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IOAuthDetails {
|
|
10
|
+
authType: 'Oauth2';
|
|
11
|
+
authEndpointUrl: string;
|
|
12
|
+
tokenEndpointUrl: string;
|
|
13
|
+
scopes?: Array<string>;
|
|
14
|
+
grantType?: string;
|
|
15
|
+
keyName: string;
|
|
16
|
+
prefix?: string;
|
|
17
|
+
clientId: string;
|
|
18
|
+
clientSecret: string;
|
|
19
|
+
}
|
|
20
|
+
export interface IAuthAPIKeyDetails {
|
|
21
|
+
authType: 'ApiKey';
|
|
22
|
+
location: string;
|
|
23
|
+
keyName: string;
|
|
24
|
+
keyValue: string;
|
|
25
|
+
prefix?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface IBasicAuthDetails {
|
|
28
|
+
authType: 'BasicAuth';
|
|
29
|
+
location: string;
|
|
30
|
+
keyName: string;
|
|
31
|
+
keyValue: string;
|
|
32
|
+
secretValue: string;
|
|
33
|
+
prefix: string;
|
|
34
|
+
}
|
|
35
|
+
export interface IConnectorVariable {
|
|
36
|
+
[key: string]: string;
|
|
37
|
+
}
|
|
38
|
+
export type IAuthDetails = IOAuthDetails | IAuthAPIKeyDetails | IBasicAuthDetails;
|
|
39
|
+
export interface IAPIKey {
|
|
40
|
+
label: string;
|
|
41
|
+
placeholderValue: string;
|
|
42
|
+
priority: number;
|
|
43
|
+
}
|
|
44
|
+
export interface ICard {
|
|
45
|
+
title: string;
|
|
46
|
+
priority: number;
|
|
47
|
+
type: 'flat' | 'flat_with_list' | 'create_resource';
|
|
48
|
+
output_map: {
|
|
49
|
+
[key: string]: IAPIKey;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export interface IIntegrationPanel {
|
|
53
|
+
position: string;
|
|
54
|
+
cards: Array<ICard>;
|
|
55
|
+
}
|
|
56
|
+
export interface InfoCard {
|
|
57
|
+
title: string;
|
|
58
|
+
id: string;
|
|
59
|
+
inboxes: {
|
|
60
|
+
email?: (string | number)[];
|
|
61
|
+
chat?: (string | number)[];
|
|
62
|
+
};
|
|
63
|
+
roles?: string[];
|
|
64
|
+
fields?: IField[];
|
|
65
|
+
isCardNew: boolean;
|
|
66
|
+
priority: number;
|
|
67
|
+
}
|
|
68
|
+
export type SupportLinks = {
|
|
69
|
+
setupGuideVideoLink?: string;
|
|
70
|
+
setupGuideVideoPreviewImage?: string;
|
|
71
|
+
helpArticleLink?: string;
|
|
72
|
+
};
|
|
73
|
+
export type CarouselData = {
|
|
74
|
+
url: string;
|
|
75
|
+
};
|
|
76
|
+
export interface IConnectorDetails {
|
|
77
|
+
id: string;
|
|
78
|
+
type: string;
|
|
79
|
+
authDetails?: IAuthDetails;
|
|
80
|
+
isAuthenticated?: boolean;
|
|
81
|
+
isEnabled?: boolean;
|
|
82
|
+
name: string;
|
|
83
|
+
description: string;
|
|
84
|
+
apiList?: Array<IAPI>;
|
|
85
|
+
integrationPanel?: IIntegrationPanel;
|
|
86
|
+
variables?: IConnectorVariable;
|
|
87
|
+
redirectUrl?: string;
|
|
88
|
+
baseUrlRequired?: boolean;
|
|
89
|
+
logo: string | null;
|
|
90
|
+
variablesConfig?: TextFieldBaseProps[];
|
|
91
|
+
cardList?: InfoCard[];
|
|
92
|
+
showUpgradeButton?: boolean;
|
|
93
|
+
isTemplateNew?: boolean;
|
|
94
|
+
updates?: TrustedHTML;
|
|
95
|
+
upgradeGuideLink?: string;
|
|
96
|
+
upgradeGuideContent?: TrustedHTML;
|
|
97
|
+
advancedSettingsFields?: string[];
|
|
98
|
+
supportLinks?: SupportLinks;
|
|
99
|
+
interpolationFields?: Record<string, string>;
|
|
100
|
+
carouselImages?: CarouselData[];
|
|
101
|
+
templateDescription?: string;
|
|
102
|
+
isDeprecated?: boolean;
|
|
103
|
+
}
|
|
104
|
+
export interface IEnableConnectorParam {
|
|
105
|
+
roles: string[];
|
|
106
|
+
inboxes: {
|
|
107
|
+
email: string[];
|
|
108
|
+
chat: string[];
|
|
109
|
+
};
|
|
110
|
+
fields: IField[];
|
|
111
|
+
}
|
|
112
|
+
export type ConnectorAlertStatus = 'notAuthenticated' | 'upgrade';
|
|
113
|
+
//# sourceMappingURL=connector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../../src/v2/types/connector.ts"],"names":[],"mappings":"AAAA,OAAO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
export interface IRolesData {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ConnectorsAdminFunctions {
|
|
12
|
+
getInboxDetails: () => Promise<{
|
|
13
|
+
chatInboxes: IInboxData[];
|
|
14
|
+
emailInboxes: IInboxData[];
|
|
15
|
+
} | {
|
|
16
|
+
chatInboxes: null;
|
|
17
|
+
emailInboxes: null;
|
|
18
|
+
}>;
|
|
19
|
+
getRoles: () => Promise<{
|
|
20
|
+
roles: IRolesData[] | null;
|
|
21
|
+
}>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=exposedTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exposedTypes.d.ts","sourceRoot":"","sources":["../../../src/v2/types/exposedTypes.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,wBAAwB;IACvC,eAAe,EAAE,MAAM,OAAO,CAC5B;QAAE,WAAW,EAAE,UAAU,EAAE,CAAC;QAAC,YAAY,EAAE,UAAU,EAAE,CAAA;KAAE,GAAG;QAAE,WAAW,EAAE,IAAI,CAAC;QAAC,YAAY,EAAE,IAAI,CAAA;KAAE,CACtG,CAAC;IACF,QAAQ,EAAE,MAAM,OAAO,CAAC;QAAE,KAAK,EAAE,UAAU,EAAE,GAAG,IAAI,CAAA;KAAE,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { OutlinedInputProps } from '@hiver/hiver-ui-kit';
|
|
3
|
+
import { Props as SelectProps } from 'react-select';
|
|
4
|
+
export interface BaseFormFieldProps {
|
|
5
|
+
helperText?: string;
|
|
6
|
+
error?: boolean;
|
|
7
|
+
name: string;
|
|
8
|
+
toolTipTitle?: string;
|
|
9
|
+
isRequired?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface TextFieldBaseProps extends BaseFormFieldProps {
|
|
12
|
+
type: 'text' | 'number' | 'password';
|
|
13
|
+
label?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export interface TextFieldProps extends TextFieldBaseProps, Omit<OutlinedInputProps, 'label' | 'name' | 'type'> {
|
|
16
|
+
}
|
|
17
|
+
export interface SelectFieldProps extends BaseFormFieldProps, Omit<SelectProps, 'name'> {
|
|
18
|
+
type: 'select';
|
|
19
|
+
label?: string;
|
|
20
|
+
}
|
|
21
|
+
export type FormFieldProps = TextFieldProps | SelectFieldProps;
|
|
22
|
+
export interface IFormConfig {
|
|
23
|
+
id: string | number;
|
|
24
|
+
title?: string;
|
|
25
|
+
formFields: FormFieldProps[];
|
|
26
|
+
}
|
|
27
|
+
export interface IValidateConfig {
|
|
28
|
+
id?: string;
|
|
29
|
+
name: string;
|
|
30
|
+
label?: React.ReactNode | string;
|
|
31
|
+
}
|
|
32
|
+
export interface ElementValidation {
|
|
33
|
+
isRequired?: boolean;
|
|
34
|
+
validate?: (values: unknown, appConfigs: IValidateConfig) => boolean | string;
|
|
35
|
+
}
|
|
36
|
+
export interface FormValidation {
|
|
37
|
+
[x: string]: ElementValidation;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/v2/types/form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE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AAC,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAAC;CAChC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../src/v2/types/json.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AAC7D,MAAM,MAAM,UAAU,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AACpD,MAAM,MAAM,SAAS,GAAG,SAAS,EAAE,CAAC;AACpC,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../src/v2/types/sidebar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAE3C,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,EAAE,CAAC;CACX;AAED,MAAM,MAAM,WAAW,GAAG,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface IVisibilityModal {
|
|
2
|
+
emailSMs?: string[];
|
|
3
|
+
roles?: string[];
|
|
4
|
+
fields?: IField[];
|
|
5
|
+
id: string;
|
|
6
|
+
handleClose: () => void;
|
|
7
|
+
currentConnectorId: string;
|
|
8
|
+
setShowEnabledModal: (T: boolean) => void;
|
|
9
|
+
title: string;
|
|
10
|
+
setVisitedFieldVisTab: (value: React.SetStateAction<boolean>) => void;
|
|
11
|
+
}
|
|
12
|
+
export interface IOptions {
|
|
13
|
+
[T: string]: string;
|
|
14
|
+
}
|
|
15
|
+
export interface IField {
|
|
16
|
+
key: string;
|
|
17
|
+
label: string;
|
|
18
|
+
enabled: boolean;
|
|
19
|
+
priority: number;
|
|
20
|
+
isFieldNew: boolean;
|
|
21
|
+
isFieldCustom: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface IDDMapping {
|
|
24
|
+
type: string;
|
|
25
|
+
options: IOptions[];
|
|
26
|
+
label: string;
|
|
27
|
+
isSingleSelect: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface ITabsMap {
|
|
30
|
+
[T: string]: {
|
|
31
|
+
ID: number;
|
|
32
|
+
LABEL: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=visibility.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visibility.d.ts","sourceRoot":"","sources":["../../../src/v2/types/visibility.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,qBAAqB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;CACvE;AAED,MAAM,WAAW,QAAQ;IACvB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,MAAM;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,QAAQ;IACvB,CAAC,CAAC,EAAE,MAAM,GAAG;QACX,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { FormFieldProps, IFormConfig } from '@connector/ui';
|
|
2
|
+
import { IAvailableFtr } from '../types/app';
|
|
3
|
+
export declare function listToDict<T>(list: T[], idGen: (arg: T) => string): {
|
|
4
|
+
[k: string]: T;
|
|
5
|
+
};
|
|
6
|
+
export declare function getIdList<T>(list: T[], idGen: (arg: T) => string): string[];
|
|
7
|
+
export declare function getFlatFormFields<T extends string>(formConfig: IFormConfig[]): Partial<Record<T, FormFieldProps>>;
|
|
8
|
+
/**
|
|
9
|
+
* Function to check whether the specified feature(featureName) is availabe or not.
|
|
10
|
+
* @param {Object} availableFeatures
|
|
11
|
+
* @param {String} featureName
|
|
12
|
+
*/
|
|
13
|
+
export declare const isFeatureAvailable: (availableFeatures: IAvailableFtr | undefined, featureName: string) => boolean;
|
|
14
|
+
export declare const isUpgradeFlow: (availableFeatures: IAvailableFtr) => boolean;
|
|
15
|
+
export declare const showNewChips: (availableFeatures: IAvailableFtr) => boolean;
|
|
16
|
+
export declare const showConnectorsEnhancements: (availableFeatures: IAvailableFtr) => boolean;
|
|
17
|
+
export declare const openChatWindow: (email?: string, name?: string, referrer?: string) => void;
|
|
18
|
+
export declare const copyText: (copyText: string, callback?: (isFailed: boolean) => void) => Promise<void>;
|
|
19
|
+
export declare const checkIsAdminOrMailBoxAdmin: (userPermissions: string[]) => boolean;
|
|
20
|
+
export declare const checkIsAdmin: (userPermissions: string[]) => boolean;
|
|
21
|
+
export declare const getClassNames: (classObj: {
|
|
22
|
+
[key: string]: boolean;
|
|
23
|
+
}) => string;
|
|
24
|
+
export declare const mapToArray: <T>(count: number, callbackFn: (index: number) => T) => T[];
|
|
25
|
+
export declare const replacePlaceholders: (template: string, values: {
|
|
26
|
+
[key: string]: string | number;
|
|
27
|
+
}) => string;
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v2/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAU5D,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,CAAA;CAAE,CAStF;AAED,wBAAgB,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,YAEhE;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC,CAQjH;AACD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,sBAAuB,aAAa,2BAAoB,MAAM,YAM5F,CAAC;AAEF,eAAO,MAAM,aAAa,sBAAuB,aAAa,YAK7D,CAAC;AAEF,eAAO,MAAM,YAAY,sBAAuB,aAAa,YACG,CAAC;AAEjE,eAAO,MAAM,0BAA0B,sBAAuB,aAAa,YACP,CAAC;AAErE,eAAO,MAAM,cAAc,WAAY,MAAM,SAAS,MAAM,aAAa,MAAM,SAe9E,CAAC;AAoBF,eAAO,MAAM,QAAQ,aAAoB,MAAM,aAAa,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,kBAWtF,CAAC;AAEF,eAAO,MAAM,0BAA0B,oBAAqB,MAAM,EAAE,YAGnE,CAAC;AAEF,eAAO,MAAM,YAAY,oBAAqB,MAAM,EAAE,YAGrD,CAAC;AAEF,eAAO,MAAM,aAAa,aAAc;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,WAIjE,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,MAAM,cAAc,CAAC,KAAK,EAAE,MAAM,KAAK,CAAC,KAAG,CAAC,EAEhF,CAAC;AAEF,eAAO,MAAM,mBAAmB,aAAc,MAAM,UAAU;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE,KAAG,MAElG,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
interface VersionData {
|
|
2
|
+
isExtensionNew: string[];
|
|
3
|
+
sidePanel: string[];
|
|
4
|
+
cards: Record<string, string[]>;
|
|
5
|
+
fieldVisibility: {
|
|
6
|
+
cards: Record<string, string[]>;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
interface LocalStorageData {
|
|
10
|
+
[version: string]: VersionData;
|
|
11
|
+
}
|
|
12
|
+
export declare const getCurrentData: () => LocalStorageData;
|
|
13
|
+
export declare const getCurrentVersion: () => string | undefined;
|
|
14
|
+
export declare const getCurrentVersionData: (version: string) => VersionData;
|
|
15
|
+
export declare const setLSCurrentVersion: (version: string) => void;
|
|
16
|
+
export declare const setLSFieldVisibility: (cardId: string, userId: string) => void;
|
|
17
|
+
export declare const hasVisitedFieldVisibility: (cardId: string, userId: string) => boolean;
|
|
18
|
+
export declare const setLSCard: (cardId: string, userId: string) => void;
|
|
19
|
+
export declare const hasConfiguredVisibility: (cardId: string, userId: string) => boolean;
|
|
20
|
+
export declare const setLSSidePanel: (userId: string) => void;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=localstorage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"localstorage.d.ts","sourceRoot":"","sources":["../../../src/v2/utils/localstorage.ts"],"names":[],"mappings":"AAEA,UAAU,WAAW;IACnB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAChC,eAAe,EAAE;QACf,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;KACjC,CAAC;CACH;AAED,UAAU,gBAAgB;IACxB,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAAC;CAChC;AAaD,eAAO,MAAM,cAAc,QAAO,gBAMjC,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAO,MAAM,GAAG,SAG7C,CAAC;AAEF,eAAO,MAAM,qBAAqB,YAAa,MAAM,KAAG,WAEvD,CAAC;AAEF,eAAO,MAAM,mBAAmB,YAAa,MAAM,KAAG,IASrD,CAAC;AAEF,eAAO,MAAM,oBAAoB,WAAY,MAAM,UAAU,MAAM,KAAG,IAyBrE,CAAC;AAEF,eAAO,MAAM,yBAAyB,WAAY,MAAM,UAAU,MAAM,KAAG,OAM1E,CAAC;AAEF,eAAO,MAAM,SAAS,WAAY,MAAM,UAAU,MAAM,SAuBvD,CAAC;AAEF,eAAO,MAAM,uBAAuB,WAAY,MAAM,UAAU,MAAM,YAMrE,CAAC;AAEF,eAAO,MAAM,cAAc,WAAY,MAAM,SAmB5C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-guards.d.ts","sourceRoot":"","sources":["../../../src/v2/utils/type-guards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAA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