@hiver/connector-admin 0.0.9 → 0.0.10-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/connectors/pages/auth-success/index.d.ts +2 -0
- package/app/connectors/pages/auth-success/index.d.ts.map +1 -0
- package/app/connectors/pages/auth-success/styles.d.ts +4 -0
- package/app/connectors/pages/auth-success/styles.d.ts.map +1 -0
- package/app/connectors/pages/connector-view/dashboard/index.d.ts.map +1 -1
- package/app/connectors/pages/settings/index.d.ts.map +1 -1
- package/app/connectors/pages/settings/styles.d.ts +1 -0
- package/app/connectors/pages/settings/styles.d.ts.map +1 -1
- package/app/connectors/router.d.ts.map +1 -1
- package/components/ui/form/index.d.ts +19 -0
- package/components/ui/form/index.d.ts.map +1 -0
- package/components/ui/form/styles.d.ts +4 -0
- package/components/ui/form/styles.d.ts.map +1 -0
- package/components/ui/form-fields/index.d.ts.map +1 -1
- package/components/ui/select/style.d.ts +2 -0
- package/components/ui/select/style.d.ts.map +1 -0
- package/constants/api.d.ts +1 -0
- package/constants/api.d.ts.map +1 -1
- package/constants/app-constants.d.ts +2 -0
- package/constants/app-constants.d.ts.map +1 -1
- package/constants/router-paths.d.ts +1 -0
- package/constants/router-paths.d.ts.map +1 -1
- package/context/index.d.ts +7 -0
- package/context/index.d.ts.map +1 -1
- package/context/main-app-provider/index.d.ts.map +1 -1
- package/features/auth/api/index.d.ts +8 -0
- package/features/auth/api/index.d.ts.map +1 -0
- package/features/auth/components/api-executor/index.d.ts +8 -0
- package/features/auth/components/api-executor/index.d.ts.map +1 -0
- package/features/auth/components/api-executor/styles.d.ts +12 -0
- package/features/auth/components/api-executor/styles.d.ts.map +1 -0
- package/features/auth/components/auth-form/index.d.ts +10 -0
- package/features/auth/components/auth-form/index.d.ts.map +1 -0
- package/features/auth/components/auth-form/reducer.d.ts +11 -0
- package/features/auth/components/auth-form/reducer.d.ts.map +1 -0
- package/features/auth/components/auth-form/styles.d.ts +8 -0
- package/features/auth/components/auth-form/styles.d.ts.map +1 -0
- package/features/auth/components/auth-header-skeleton/index.d.ts +2 -0
- package/features/auth/components/auth-header-skeleton/index.d.ts.map +1 -0
- package/features/auth/constants/api.d.ts +6 -0
- package/features/auth/constants/api.d.ts.map +1 -0
- package/features/auth/constants/form-config.d.ts +71 -0
- package/features/auth/constants/form-config.d.ts.map +1 -0
- package/features/auth/constants/index.d.ts +4 -1
- package/features/auth/constants/index.d.ts.map +1 -1
- package/features/auth/store/initial-state.d.ts +19 -0
- package/features/auth/store/initial-state.d.ts.map +1 -0
- package/features/auth/store/selectors.d.ts +12 -0
- package/features/auth/store/selectors.d.ts.map +1 -0
- package/features/auth/store/slice.d.ts +75 -0
- package/features/auth/store/slice.d.ts.map +1 -0
- package/features/auth/types/connector.d.ts +2 -0
- package/features/auth/types/connector.d.ts.map +1 -0
- package/features/auth/types/form.d.ts +24 -0
- package/features/auth/types/form.d.ts.map +1 -0
- package/features/auth/types/request.d.ts +33 -0
- package/features/auth/types/request.d.ts.map +1 -0
- package/features/auth/utils/index.d.ts +13 -0
- package/features/auth/utils/index.d.ts.map +1 -0
- package/features/auth/utils/type-guards.d.ts +8 -0
- package/features/auth/utils/type-guards.d.ts.map +1 -0
- package/features/connector-library/constants/api.d.ts.map +1 -1
- package/features/connector-library/store/initial-state.d.ts +3 -2
- package/features/connector-library/store/initial-state.d.ts.map +1 -1
- package/features/connector-library/store/selectors.d.ts +1 -1
- package/features/connector-library/store/selectors.d.ts.map +1 -1
- package/features/connector-library/store/slice.d.ts +3 -1
- package/features/connector-library/store/slice.d.ts.map +1 -1
- package/features/connector-library/types/connector.d.ts +1 -42
- package/features/connector-library/types/connector.d.ts.map +1 -1
- package/features/connector-library/utils/type-guards.d.ts +3 -2
- package/features/connector-library/utils/type-guards.d.ts.map +1 -1
- package/features/request-new-connector/api/index.d.ts +8 -0
- package/features/request-new-connector/api/index.d.ts.map +1 -0
- package/features/request-new-connector/components/custom-connector-card/index.d.ts +1 -0
- package/features/request-new-connector/components/custom-connector-card/index.d.ts.map +1 -1
- package/features/request-new-connector/components/request-new-modal/index.d.ts +1 -0
- package/features/request-new-connector/components/request-new-modal/index.d.ts.map +1 -1
- package/features/request-new-connector/components/request-new-modal/request-panel.d.ts.map +1 -1
- package/features/request-new-connector/constants/api.d.ts +2 -0
- package/features/request-new-connector/constants/api.d.ts.map +1 -0
- package/features/request-new-connector/constants/index.d.ts +4 -0
- package/features/request-new-connector/constants/index.d.ts.map +1 -1
- package/features/request-new-connector/types/index.d.ts +16 -1
- package/features/request-new-connector/types/index.d.ts.map +1 -1
- package/features/request-new-connector/utils/type-guards.d.ts +3 -0
- package/features/request-new-connector/utils/type-guards.d.ts.map +1 -0
- package/features/toast-message/CloseButton.d.ts +4 -0
- package/features/toast-message/CloseButton.d.ts.map +1 -0
- package/features/toast-message/HiverIconToast.d.ts +7 -0
- package/features/toast-message/HiverIconToast.d.ts.map +1 -0
- package/features/toast-message/__tests__/toastMessage.test.d.ts +2 -0
- package/features/toast-message/__tests__/toastMessage.test.d.ts.map +1 -0
- package/features/toast-message/constants/toast.d.ts +4 -0
- package/features/toast-message/constants/toast.d.ts.map +1 -0
- package/features/toast-message/showMessage.d.ts +13 -0
- package/features/toast-message/showMessage.d.ts.map +1 -0
- package/features/toast-message/style.d.ts +7 -0
- package/features/toast-message/style.d.ts.map +1 -0
- package/{index-CWnqz_7p.js → index-3QhF4nPL.js} +13 -14
- package/index-BG0JDAxl.js +711 -0
- package/{index-CihMwBsW.js → index-BTijOkJN.js} +1 -1
- package/{index-D5knnyWw.js → index-CTf_uj1d.js} +25 -25
- package/{index-0ckwA6Bt.js → index-DHQTzZga.js} +1063 -1028
- package/{index-g_hNAZie.js → index-DwS53blc.js} +10386 -9235
- package/index-MhhY7aRi.js +3772 -0
- package/index.es.js +1 -1
- package/index.umd.js +373 -194
- package/package.json +1 -1
- package/store/hooks.d.ts +4 -0
- package/store/hooks.d.ts.map +1 -1
- package/store/index.d.ts +8 -0
- package/store/index.d.ts.map +1 -1
- package/store/request-connector-api/initial-state.d.ts +9 -0
- package/store/request-connector-api/initial-state.d.ts.map +1 -0
- package/store/request-connector-api/selectors.d.ts +5 -0
- package/store/request-connector-api/selectors.d.ts.map +1 -0
- package/store/request-connector-api/slice.d.ts +39 -0
- package/store/request-connector-api/slice.d.ts.map +1 -0
- package/styled-ui-components-BiFtpk_x.js +2253 -0
- package/testing/mocks/handlers/auth.d.ts +2 -0
- package/testing/mocks/handlers/auth.d.ts.map +1 -0
- package/testing/mocks/handlers/connector-template.d.ts +8 -0
- package/testing/mocks/handlers/connector-template.d.ts.map +1 -1
- package/testing/mocks/handlers/request-connector-api.d.ts +2 -0
- package/testing/mocks/handlers/request-connector-api.d.ts.map +1 -0
- package/testing/mocks/handlers/update-connector.d.ts.map +1 -1
- package/testing/mocks/handlers.d.ts.map +1 -1
- package/testing/setup-store.d.ts +4 -0
- package/testing/setup-store.d.ts.map +1 -1
- package/types/common.d.ts +2 -0
- package/types/common.d.ts.map +1 -0
- package/types/connector.d.ts +60 -0
- package/types/connector.d.ts.map +1 -0
- package/types/json.d.ts +7 -0
- package/types/json.d.ts.map +1 -0
- package/types/router.d.ts +2 -0
- package/types/router.d.ts.map +1 -1
- package/utils/index.d.ts +2 -0
- package/utils/index.d.ts.map +1 -1
- package/utils/type-guards.d.ts +3 -0
- package/utils/type-guards.d.ts.map +1 -0
- package/Typography-BvoDUPsi.js +0 -174
- package/features/auth/components/auth.d.ts +0 -2
- package/features/auth/components/auth.d.ts.map +0 -1
- package/index-CPqWySPe.js +0 -2954
- package/index-xau7jZsj.js +0 -40
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IAppRouter } from '../../types/router';
|
|
2
|
-
export declare const ConnectorsApp: ({ basename }: IAppRouter) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const ConnectorsApp: ({ basename, baseUrls }: IAppRouter) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/app/connectors/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/app/connectors/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,eAAO,MAAM,aAAa,2BAA4B,UAAU,4CAgB/D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/app/connectors/pages/auth-success/index.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,WAAW,+CAiCvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/app/connectors/pages/auth-success/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD,eAAO,MAAM,oBAAoB,EAAE,eAAe,CAAC,QAAQ,CAO1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/app/connectors/pages/connector-view/dashboard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAuB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/app/connectors/pages/connector-view/dashboard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAuB,MAAM,OAAO,CAAC;AA6BhD,eAAO,MAAM,SAAS,EAAE,EAwDvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/app/connectors/pages/settings/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/app/connectors/pages/settings/index.tsx"],"names":[],"mappings":"AAwBA,eAAO,MAAM,QAAQ,+CAmFpB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { StyledComponent } from '@emotion/styled';
|
|
2
2
|
import { BoxProps } from '@hiver/hiver-ui-kit';
|
|
3
3
|
export declare const SideBarCrumbWrapper: StyledComponent<BoxProps>;
|
|
4
|
+
export declare const ContentWrapper: StyledComponent<BoxProps>;
|
|
4
5
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/app/connectors/pages/settings/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD,eAAO,MAAM,mBAAmB,EAAE,eAAe,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/app/connectors/pages/settings/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD,eAAO,MAAM,mBAAmB,EAAE,eAAe,CAAC,QAAQ,CAQzD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,eAAe,CAAC,QAAQ,CAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../../src/app/connectors/router.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../../src/app/connectors/router.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AA2EjD,eAAO,MAAM,SAAS,iBAAwB,UAAU,4CAGvD,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { FormValidation, IFormConfig } from '../../../types/form';
|
|
3
|
+
import { ActionMeta } from 'react-select';
|
|
4
|
+
interface IForm {
|
|
5
|
+
formConfig: IFormConfig[];
|
|
6
|
+
predicates?: {
|
|
7
|
+
[key: string]: boolean;
|
|
8
|
+
};
|
|
9
|
+
values?: {
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
};
|
|
12
|
+
inputChangeHandler?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
13
|
+
selectChangeHandler?: (event: unknown, action: ActionMeta<unknown>) => void;
|
|
14
|
+
onValidationError?: (name: string, error: string | boolean) => void;
|
|
15
|
+
validations?: FormValidation;
|
|
16
|
+
}
|
|
17
|
+
export declare const Form: ({ formConfig, inputChangeHandler, selectChangeHandler, predicates, values, validations, onValidationError }: IForm) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/form/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,UAAU,KAAK;IACb,UAAU,EAAE,WAAW,EAAE,CAAC;IAC1B,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IACxC,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IACpC,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC1E,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IAC5E,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,KAAK,IAAI,CAAC;IACpE,WAAW,CAAC,EAAE,cAAc,CAAC;CAC9B;AAED,eAAO,MAAM,IAAI,gHAQd,KAAK,4CAuCP,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/form/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,UAAU,CAMnD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/form-fields/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtE,KAAK,SAAS,GAAG,cAAc,GAAG;IAChC,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IAC5E,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC1E,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,KAAK,IAAI,CAAC;CACrE,CAAC;AAEF,eAAO,MAAM,UAAU,UAAW,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/form-fields/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtE,KAAK,SAAS,GAAG,cAAc,GAAG;IAChC,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IAC5E,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC1E,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,KAAK,IAAI,CAAC;CACrE,CAAC;AAEF,eAAO,MAAM,UAAU,UAAW,SAAS,4CAoI1C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/select/style.tsx"],"names":[],"mappings":""}
|
package/constants/api.d.ts
CHANGED
package/constants/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/constants/api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,eAAO,MAAM,WAAW;;;;;;CAMvB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAIlD,CAAC"}
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/constants/api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,eAAO,MAAM,WAAW;;;;;;CAMvB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAIlD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-constants.d.ts","sourceRoot":"","sources":["../../src/constants/app-constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,iBAAiB,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"app-constants.d.ts","sourceRoot":"","sources":["../../src/constants/app-constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AACrD,eAAO,MAAM,OAAO,WAAW,CAAC;AAChC,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router-paths.d.ts","sourceRoot":"","sources":["../../src/constants/router-paths.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"router-paths.d.ts","sourceRoot":"","sources":["../../src/constants/router-paths.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;CAQlB,CAAC"}
|
package/context/index.d.ts
CHANGED
|
@@ -3,11 +3,16 @@ export interface IConnectorType {
|
|
|
3
3
|
name: string;
|
|
4
4
|
isEnabled: boolean;
|
|
5
5
|
}
|
|
6
|
+
export interface IBaseUrls {
|
|
7
|
+
[key: string]: string;
|
|
8
|
+
}
|
|
6
9
|
interface IMainAppContext {
|
|
7
10
|
currentSideBar: string;
|
|
8
11
|
currentConnector: string;
|
|
9
12
|
setCurrentConnector: (str: string) => void;
|
|
10
13
|
setCurrentSideBar: (str: string) => void;
|
|
14
|
+
baseUrls: IBaseUrls;
|
|
15
|
+
setBaseUrls: (obj: IBaseUrls) => void;
|
|
11
16
|
currentAvailableConnectors: Array<IConnectorType>;
|
|
12
17
|
setCurrentAvailableConnectors: (arr: Array<IConnectorType>) => void;
|
|
13
18
|
}
|
|
@@ -18,6 +23,8 @@ export declare const defaultMainAppvalues: {
|
|
|
18
23
|
setCurrentConnector: () => void;
|
|
19
24
|
currentAvailableConnectors: never[];
|
|
20
25
|
setCurrentAvailableConnectors: () => void;
|
|
26
|
+
baseUrls: {};
|
|
27
|
+
setBaseUrls: () => void;
|
|
21
28
|
};
|
|
22
29
|
export declare const MainAppContext: import('react').Context<IMainAppContext>;
|
|
23
30
|
export {};
|
package/context/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/context/index.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,eAAe;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,iBAAiB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,0BAA0B,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAClD,6BAA6B,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CACrE;AAGD,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/context/index.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,SAAS;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,UAAU,eAAe;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,iBAAiB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,QAAQ,EAAE,SAAS,CAAC;IACpB,WAAW,EAAE,CAAC,GAAG,EAAE,SAAS,KAAK,IAAI,CAAC;IACtC,0BAA0B,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAClD,6BAA6B,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CACrE;AAGD,eAAO,MAAM,oBAAoB;;;;;;;;;CAShC,CAAC;AAEF,eAAO,MAAM,cAAc,0CAAuD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/context/main-app-provider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAC;AAK5C,UAAU,MAAM;IACd,QAAQ,EAAE,SAAS,CAAC;CACrB;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/context/main-app-provider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAC;AAK5C,UAAU,MAAM;IACd,QAAQ,EAAE,SAAS,CAAC;CACrB;AAMD,QAAA,MAAM,eAAe,iBAAkB,MAAM,4CAqB5C,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { JSONValue } from '../../../types/json';
|
|
2
|
+
import { AuthRequest, EditAuthRequest } from '../types/request';
|
|
3
|
+
export declare const postAuthDetailsApi: (data: AuthRequest) => Promise<import('axios').AxiosResponse<any, any> | undefined>;
|
|
4
|
+
export declare const patchAuthDetailsApi: (data: EditAuthRequest, connectorId: string) => Promise<import('axios').AxiosResponse<any, any> | undefined>;
|
|
5
|
+
export declare const testAuthApi: (data: JSONValue, connectorId: string) => Promise<import('axios').AxiosResponse<any, any> | undefined>;
|
|
6
|
+
export declare const getConnectorDetail: (connectorId: string) => Promise<import('axios').AxiosResponse<any, any> | undefined>;
|
|
7
|
+
export declare const postVerifyToken: (data: JSONValue, connectorId: string) => Promise<import('axios').AxiosResponse<any, any> | undefined>;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/auth/api/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEhE,eAAO,MAAM,kBAAkB,SAAU,WAAW,iEAMnD,CAAC;AAEF,eAAO,MAAM,mBAAmB,SAAU,eAAe,eAAe,MAAM,iEAO7E,CAAC;AAEF,eAAO,MAAM,WAAW,SAAU,SAAS,eAAe,MAAM,iEAO/D,CAAC;AAEF,eAAO,MAAM,kBAAkB,gBAAiB,MAAM,iEAMrD,CAAC;AAEF,eAAO,MAAM,eAAe,SAAU,SAAS,eAAe,MAAM,iEAOnE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface IAPiExecutorProp {
|
|
2
|
+
url?: string;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
connectorId: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const ApiExecutor: ({ url, disabled, connectorId }: IAPiExecutorProp) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/auth/components/api-executor/index.tsx"],"names":[],"mappings":"AAWA,UAAU,gBAAgB;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB;AACD,eAAO,MAAM,WAAW,mCAA4C,gBAAgB,4CA8CnF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StyledComponent } from '@emotion/styled';
|
|
2
|
+
import { BoxProps, ButtonProps } from '@hiver/hiver-ui-kit';
|
|
3
|
+
export declare const ExecutorWrapper: StyledComponent<BoxProps>;
|
|
4
|
+
export declare const ApiWrapper: StyledComponent<BoxProps>;
|
|
5
|
+
export declare const MethodBox: StyledComponent<BoxProps>;
|
|
6
|
+
export declare const ResultWrapper: StyledComponent<BoxProps>;
|
|
7
|
+
export declare const StatusCode: StyledComponent<BoxProps & {
|
|
8
|
+
textColor?: string;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const Result: StyledComponent<BoxProps>;
|
|
11
|
+
export declare const TestRequestBtn: StyledComponent<ButtonProps>;
|
|
12
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/features/auth/components/api-executor/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEjE,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,QAAQ,CAMrD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,QAAQ,CAWhD,CAAC;AACF,eAAO,MAAM,SAAS,EAAE,eAAe,CAAC,QAAQ,CAQ/C,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,eAAe,CAAC,QAAQ,CAQnD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,QAAQ,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAUzE,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,eAAe,CAAC,QAAQ,CAW5C,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,eAAe,CAAC,WAAW,CAGvD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IConnectorDetails } from '../../../../types/connector';
|
|
2
|
+
interface IAuthForm {
|
|
3
|
+
isEdit?: boolean;
|
|
4
|
+
connectorId: string;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
connectorData?: IConnectorDetails | null;
|
|
7
|
+
}
|
|
8
|
+
export declare const AuthForm: ({ isEdit, connectorId, isLoading, connectorData }: IAuthForm) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/auth/components/auth-form/index.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAI3D,UAAU,SAAS;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;CAC1C;AAED,eAAO,MAAM,QAAQ,sDAAuE,SAAS,4CA+IpG,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AuthFormState, FormActionValue } from '../../types/form';
|
|
2
|
+
export declare const intialState: AuthFormState;
|
|
3
|
+
export declare const ACTIONS: {
|
|
4
|
+
SET_FIELD_VALUE: string;
|
|
5
|
+
CLEAR_FIELD_VALUE: string;
|
|
6
|
+
SET_FIELD_ERROR: string;
|
|
7
|
+
SET_FIELDS: string;
|
|
8
|
+
CLEAR_FIELDS: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const reducer: (state: AuthFormState, action: FormActionValue) => AuthFormState;
|
|
11
|
+
//# sourceMappingURL=reducer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../../src/features/auth/components/auth-form/reducer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEvE,eAAO,MAAM,WAAW,EAAE,aAGzB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;CAMnB,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,aAAa,UAAU,eAAe,KAAG,aAmDvE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StyledComponent } from '@emotion/styled';
|
|
2
|
+
import { TypographyProps, StackProps, BoxProps } from '@hiver/hiver-ui-kit';
|
|
3
|
+
export declare const PageTitle: StyledComponent<TypographyProps>;
|
|
4
|
+
export declare const Description: StyledComponent<TypographyProps>;
|
|
5
|
+
export declare const FormWrapper: StyledComponent<StackProps>;
|
|
6
|
+
export declare const AuthWrapper: StyledComponent<BoxProps>;
|
|
7
|
+
export declare const ButtonWrapper: StyledComponent<BoxProps>;
|
|
8
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/features/auth/components/auth-form/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEjF,eAAO,MAAM,SAAS,EAAE,eAAe,CAAC,eAAe,CAGtD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,eAAe,CAExD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,UAAU,CAQnD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,QAAQ,CAEjD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,eAAe,CAAC,QAAQ,CAInD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/auth/components/auth-header-skeleton/index.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,+CAO9B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const POST_AUTH_DETAILS: string;
|
|
2
|
+
export declare const TEST_AUTH: string;
|
|
3
|
+
export declare const PATCH_AUTH_DETAILS: string;
|
|
4
|
+
export declare const CONNECTOR_DETAIL: string;
|
|
5
|
+
export declare const VERIFY_TOKEN: string;
|
|
6
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/features/auth/constants/api.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,QAAiC,CAAC;AAChE,eAAO,MAAM,SAAS,QAA6C,CAAC;AACpE,eAAO,MAAM,kBAAkB,QAAwC,CAAC;AACxE,eAAO,MAAM,gBAAgB,QAAoC,CAAC;AAClE,eAAO,MAAM,YAAY,QAAwD,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { FormValidation, IFormConfig } from '../../../types/form';
|
|
2
|
+
import { oAuthRequest, ApiKeyRequest } from '../types/request';
|
|
3
|
+
export declare const COMMON_FIELD_NAMES: {
|
|
4
|
+
readonly baseUrl: "baseUrl";
|
|
5
|
+
readonly authType: "authType";
|
|
6
|
+
};
|
|
7
|
+
export declare const API_KEY_AUTH_FIELDS_NAMES: {
|
|
8
|
+
readonly apiKey: "apiKey";
|
|
9
|
+
readonly apiAddTo: "apiAddTo";
|
|
10
|
+
readonly apiHeaderPrefix: "apiHeaderPrefix";
|
|
11
|
+
readonly apiHeaderName: "apiHeaderName";
|
|
12
|
+
readonly apiParamName: "apiParamName";
|
|
13
|
+
};
|
|
14
|
+
export declare const OAuth_FIELDS_NAMES: {
|
|
15
|
+
readonly oAuthClientId: "oAuthClientId";
|
|
16
|
+
readonly oAuthClientSecret: "oAuthClientSecret";
|
|
17
|
+
readonly oAuthEndUrl: "oAuthEndUrl";
|
|
18
|
+
readonly oAuthTokenUrl: "oAuthTokenUrl";
|
|
19
|
+
readonly oAuthRefreshTokenUrl: "oAuthRefreshTokenUrl";
|
|
20
|
+
readonly oAuthRedirectUrl: "oAuthRedirectUrl";
|
|
21
|
+
readonly oAuthHeaderName: "oAuthHeaderName";
|
|
22
|
+
readonly oAuthHeaderPrefix: "oAuthHeaderPrefix";
|
|
23
|
+
readonly oAuthScopes: "oAuthScopes";
|
|
24
|
+
};
|
|
25
|
+
export declare const AUTH_FIELDS_NAMES: {
|
|
26
|
+
readonly oAuthClientId: "oAuthClientId";
|
|
27
|
+
readonly oAuthClientSecret: "oAuthClientSecret";
|
|
28
|
+
readonly oAuthEndUrl: "oAuthEndUrl";
|
|
29
|
+
readonly oAuthTokenUrl: "oAuthTokenUrl";
|
|
30
|
+
readonly oAuthRefreshTokenUrl: "oAuthRefreshTokenUrl";
|
|
31
|
+
readonly oAuthRedirectUrl: "oAuthRedirectUrl";
|
|
32
|
+
readonly oAuthHeaderName: "oAuthHeaderName";
|
|
33
|
+
readonly oAuthHeaderPrefix: "oAuthHeaderPrefix";
|
|
34
|
+
readonly oAuthScopes: "oAuthScopes";
|
|
35
|
+
readonly apiKey: "apiKey";
|
|
36
|
+
readonly apiAddTo: "apiAddTo";
|
|
37
|
+
readonly apiHeaderPrefix: "apiHeaderPrefix";
|
|
38
|
+
readonly apiHeaderName: "apiHeaderName";
|
|
39
|
+
readonly apiParamName: "apiParamName";
|
|
40
|
+
readonly baseUrl: "baseUrl";
|
|
41
|
+
readonly authType: "authType";
|
|
42
|
+
};
|
|
43
|
+
export declare const AUTH_TYPE_OPTIONS: {
|
|
44
|
+
readonly apiToken: {
|
|
45
|
+
readonly label: "API Token";
|
|
46
|
+
readonly value: "ApiKey";
|
|
47
|
+
};
|
|
48
|
+
readonly oAuth: {
|
|
49
|
+
readonly label: "OAuth2.0";
|
|
50
|
+
readonly value: "Oauth2";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
export declare const ADD_TO_OPTIONS: {
|
|
54
|
+
readonly header: {
|
|
55
|
+
readonly label: "Header";
|
|
56
|
+
readonly value: "header";
|
|
57
|
+
};
|
|
58
|
+
readonly queryParam: {
|
|
59
|
+
readonly label: "Query Param";
|
|
60
|
+
readonly value: "queryParam";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export declare const BASE_AUTH_FORM: IFormConfig[];
|
|
64
|
+
export declare const API_KEY_AUTH_FORM: IFormConfig[];
|
|
65
|
+
export declare const OAUTH_FORM: IFormConfig[];
|
|
66
|
+
export declare const VALIDATIONS: FormValidation;
|
|
67
|
+
export type oAuthKeyMapType = keyof Omit<typeof COMMON_FIELD_NAMES, 'baseUrl'> | keyof Omit<typeof OAuth_FIELDS_NAMES, 'oAuthRedirectUrl'>;
|
|
68
|
+
export declare const oAuthRequestKeyMap: Record<oAuthKeyMapType, keyof oAuthRequest>;
|
|
69
|
+
export type ApiKeyMapType = keyof Omit<typeof COMMON_FIELD_NAMES, 'baseUrl'> | keyof typeof API_KEY_AUTH_FIELDS_NAMES;
|
|
70
|
+
export declare const apiKeyRequestKeyMap: Record<ApiKeyMapType, keyof ApiKeyRequest>;
|
|
71
|
+
//# sourceMappingURL=form-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-config.d.ts","sourceRoot":"","sources":["../../../../src/features/auth/constants/form-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAG/D,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AAEX,eAAO,MAAM,yBAAyB;;;;;;CAM5B,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;;;CAUrB,CAAC;AAEX,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;CAIpB,CAAC;AAEX,eAAO,MAAM,iBAAiB;;;;;;;;;CAGpB,CAAC;AAEX,eAAO,MAAM,cAAc;;;;;;;;;CAGjB,CAAC;AAEX,eAAO,MAAM,cAAc,EAAE,WAAW,EAqBvC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,WAAW,EA0C1C,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,WAAW,EA4EnC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,cAqCzB,CAAC;AAEF,MAAM,MAAM,eAAe,GACvB,MAAM,IAAI,CAAC,OAAO,kBAAkB,EAAE,SAAS,CAAC,GAChD,MAAM,IAAI,CAAC,OAAO,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,YAAY,CAU1E,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,OAAO,kBAAkB,EAAE,SAAS,CAAC,GAAG,MAAM,OAAO,yBAAyB,CAAC;AAEtH,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,aAAa,CAOjE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/auth/constants/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/auth/constants/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,kBAAkB,CAAC;AAChD,eAAO,MAAM,eAAe,eAAe,CAAC;AAC5C,eAAO,MAAM,YAAY,uBAAuB,CAAC;AACjD,eAAO,MAAM,IAAI,SAAS,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ApiStatus } from '../../../types/api';
|
|
2
|
+
import { IConnectorDetails } from '../../../types/connector';
|
|
3
|
+
import { ITestUrlData } from '../types/request';
|
|
4
|
+
export interface AuthState {
|
|
5
|
+
authSubmitApiStatus: ApiStatus;
|
|
6
|
+
testApiStatus: ApiStatus;
|
|
7
|
+
connectorDetailApiStatus: ApiStatus;
|
|
8
|
+
connectorDetails: IConnectorDetails | null;
|
|
9
|
+
isAuthenticated: {
|
|
10
|
+
[key: string]: boolean;
|
|
11
|
+
};
|
|
12
|
+
authUrl: string;
|
|
13
|
+
verifyTokenApiStatus: ApiStatus;
|
|
14
|
+
authVerificationDone: boolean;
|
|
15
|
+
authSucceeded: boolean;
|
|
16
|
+
testApiData: ITestUrlData | null;
|
|
17
|
+
}
|
|
18
|
+
export declare const initialState: AuthState;
|
|
19
|
+
//# sourceMappingURL=initial-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initial-state.d.ts","sourceRoot":"","sources":["../../../../src/features/auth/store/initial-state.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,MAAM,WAAW,SAAS;IACxB,mBAAmB,EAAE,SAAS,CAAC;IAC/B,aAAa,EAAE,SAAS,CAAC;IACzB,wBAAwB,EAAE,SAAS,CAAC;IACpC,gBAAgB,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC3C,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,oBAAoB,EAAE,SAAS,CAAC;IAChC,oBAAoB,EAAE,OAAO,CAAC;IAC9B,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,YAAY,GAAG,IAAI,CAAC;CAClC;AAGD,eAAO,MAAM,YAAY,EAAE,SAW1B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RootState } from '../../../store';
|
|
2
|
+
export declare const selectConnectorDetail: (state: RootState) => import('../../../types/connector').IConnectorDetails | null;
|
|
3
|
+
export declare const selectConnectorDetailApiStatus: (state: RootState) => import('../../../types/api').ApiStatus;
|
|
4
|
+
export declare const selectorConnectorDetailApiStatus: (state: RootState) => import('../../../types/api').ApiStatus;
|
|
5
|
+
export declare const selectorAuthSubmitApiStatus: (state: RootState) => import('../../../types/api').ApiStatus;
|
|
6
|
+
export declare const selectAuthUrl: (state: RootState) => string;
|
|
7
|
+
export declare const selectVerifyTokenApiStatus: (state: RootState) => import('../../../types/api').ApiStatus;
|
|
8
|
+
export declare const selectIsAuthVerificationDone: (state: RootState) => boolean;
|
|
9
|
+
export declare const selectAuthSucceeded: (state: RootState) => boolean;
|
|
10
|
+
export declare const selectTestApiStatus: (state: RootState) => import('../../../types/api').ApiStatus;
|
|
11
|
+
export declare const selectTestApiData: (state: RootState) => import('../types/request').ITestUrlData | null;
|
|
12
|
+
//# sourceMappingURL=selectors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../../src/features/auth/store/selectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,qBAAqB,UAAW,SAAS,gEAAgC,CAAC;AACvF,eAAO,MAAM,8BAA8B,UAAW,SAAS,2CAAwC,CAAC;AACxG,eAAO,MAAM,gCAAgC,UAAW,SAAS,2CAAwC,CAAC;AAC1G,eAAO,MAAM,2BAA2B,UAAW,SAAS,2CAAmC,CAAC;AAChG,eAAO,MAAM,aAAa,UAAW,SAAS,WAAuB,CAAC;AACtE,eAAO,MAAM,0BAA0B,UAAW,SAAS,2CAAoC,CAAC;AAChG,eAAO,MAAM,4BAA4B,UAAW,SAAS,YAAoC,CAAC;AAClG,eAAO,MAAM,mBAAmB,UAAW,SAAS,YAA6B,CAAC;AAClF,eAAO,MAAM,mBAAmB,UAAW,SAAS,2CAA6B,CAAC;AAClF,eAAO,MAAM,iBAAiB,UAAW,SAAS,mDAA2B,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { JSONValue } from '../../../types/json';
|
|
3
|
+
import { AuthRequest, EditAuthRequest } from '../types/request';
|
|
4
|
+
export declare const authSlice: import('@reduxjs/toolkit').Slice<import('./initial-state').AuthState, {
|
|
5
|
+
authDone: (state: import('immer').WritableDraft<import('./initial-state').AuthState>, action: PayloadAction<boolean>) => void;
|
|
6
|
+
resetState: () => import('./initial-state').AuthState;
|
|
7
|
+
}, "auth", "auth", import('@reduxjs/toolkit').SliceSelectors<import('./initial-state').AuthState>>;
|
|
8
|
+
declare const submitAuthDetails: import('@reduxjs/toolkit').AsyncThunk<{
|
|
9
|
+
authUrl: any;
|
|
10
|
+
authSucceeded: boolean;
|
|
11
|
+
}, {
|
|
12
|
+
data: AuthRequest;
|
|
13
|
+
} | {
|
|
14
|
+
data: EditAuthRequest;
|
|
15
|
+
connectorId: string;
|
|
16
|
+
}, {
|
|
17
|
+
state?: unknown;
|
|
18
|
+
dispatch?: import('redux-thunk').ThunkDispatch<unknown, unknown, import('redux').UnknownAction>;
|
|
19
|
+
extra?: unknown;
|
|
20
|
+
rejectValue?: unknown;
|
|
21
|
+
serializedErrorType?: unknown;
|
|
22
|
+
pendingMeta?: unknown;
|
|
23
|
+
fulfilledMeta?: unknown;
|
|
24
|
+
rejectedMeta?: unknown;
|
|
25
|
+
}>;
|
|
26
|
+
declare const testAuth: import('@reduxjs/toolkit').AsyncThunk<{
|
|
27
|
+
testUrlResponse: JSONValue;
|
|
28
|
+
statusCode: string;
|
|
29
|
+
}, {
|
|
30
|
+
data: {
|
|
31
|
+
testUrl: string;
|
|
32
|
+
};
|
|
33
|
+
connectorId: string;
|
|
34
|
+
}, {
|
|
35
|
+
state?: unknown;
|
|
36
|
+
dispatch?: import('redux-thunk').ThunkDispatch<unknown, unknown, import('redux').UnknownAction>;
|
|
37
|
+
extra?: unknown;
|
|
38
|
+
rejectValue?: unknown;
|
|
39
|
+
serializedErrorType?: unknown;
|
|
40
|
+
pendingMeta?: unknown;
|
|
41
|
+
fulfilledMeta?: unknown;
|
|
42
|
+
rejectedMeta?: unknown;
|
|
43
|
+
}>;
|
|
44
|
+
declare const fetchConnectorDetails: import('@reduxjs/toolkit').AsyncThunk<{
|
|
45
|
+
connector: null;
|
|
46
|
+
} | {
|
|
47
|
+
connector: import('../../../types/connector').IConnectorDetails;
|
|
48
|
+
}, string, {
|
|
49
|
+
state?: unknown;
|
|
50
|
+
dispatch?: import('redux-thunk').ThunkDispatch<unknown, unknown, import('redux').UnknownAction>;
|
|
51
|
+
extra?: unknown;
|
|
52
|
+
rejectValue?: unknown;
|
|
53
|
+
serializedErrorType?: unknown;
|
|
54
|
+
pendingMeta?: unknown;
|
|
55
|
+
fulfilledMeta?: unknown;
|
|
56
|
+
rejectedMeta?: unknown;
|
|
57
|
+
}>;
|
|
58
|
+
declare const verifyToken: import('@reduxjs/toolkit').AsyncThunk<void, {
|
|
59
|
+
data: JSONValue;
|
|
60
|
+
connectorId: string;
|
|
61
|
+
}, {
|
|
62
|
+
state?: unknown;
|
|
63
|
+
dispatch?: import('redux-thunk').ThunkDispatch<unknown, unknown, import('redux').UnknownAction>;
|
|
64
|
+
extra?: unknown;
|
|
65
|
+
rejectValue?: unknown;
|
|
66
|
+
serializedErrorType?: unknown;
|
|
67
|
+
pendingMeta?: unknown;
|
|
68
|
+
fulfilledMeta?: unknown;
|
|
69
|
+
rejectedMeta?: unknown;
|
|
70
|
+
}>;
|
|
71
|
+
declare const authDone: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "auth/authDone">, resetState: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"auth/resetState">;
|
|
72
|
+
declare const _default: import('redux').Reducer<import('./initial-state').AuthState>;
|
|
73
|
+
export default _default;
|
|
74
|
+
export { testAuth, fetchConnectorDetails, submitAuthDetails, verifyToken, authDone, resetState };
|
|
75
|
+
//# sourceMappingURL=slice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../../src/features/auth/store/slice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKhF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAIhE,eAAO,MAAM,SAAS;kGAIQ,aAAa,CAAC,OAAO,CAAC;;kGA8DlD,CAAC;AAEH,QAAA,MAAM,iBAAiB;;;;UAEG,WAAW;;UAAa,eAAe;iBAAe,MAAM;;;;;;;;;;EA0BrF,CAAC;AAEF,QAAA,MAAM,QAAQ;;;;UAE0B;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE;iBAAe,MAAM;;;;;;;;;;EAgB/E,CAAC;AAEF,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;EAazB,CAAC;AAEH,QAAA,MAAM,WAAW;UAEuB,SAAS;iBAAe,MAAM;;;;;;;;;;EAGrE,CAAC;AAEF,QAAA,MAAQ,QAAQ,iFAAE,UAAU,2EAAsB,CAAC;;AACnD,wBAAiC;AACjC,OAAO,EAAE,QAAQ,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../../../src/features/auth/types/connector.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AUTH_FIELDS_NAMES } from '../constants/form-config';
|
|
2
|
+
export type FieldValue = string | {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
};
|
|
6
|
+
export type AuthFieldKeys = keyof typeof AUTH_FIELDS_NAMES;
|
|
7
|
+
export interface AuthFormState {
|
|
8
|
+
values: Partial<Record<AuthFieldKeys, FieldValue>>;
|
|
9
|
+
errors: Partial<Record<AuthFieldKeys, 'string | boolean'>>;
|
|
10
|
+
}
|
|
11
|
+
export declare const intialState: AuthFormState;
|
|
12
|
+
export interface AllValues {
|
|
13
|
+
values: Partial<Record<AuthFieldKeys, FieldValue>>;
|
|
14
|
+
}
|
|
15
|
+
export interface Value {
|
|
16
|
+
value?: FieldValue | boolean;
|
|
17
|
+
name: string;
|
|
18
|
+
}
|
|
19
|
+
export interface FormActionValue {
|
|
20
|
+
type: string;
|
|
21
|
+
payload?: AllValues | Value;
|
|
22
|
+
}
|
|
23
|
+
export type Predicates = Partial<Record<AuthFieldKeys, boolean>>;
|
|
24
|
+
//# sourceMappingURL=form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../src/features/auth/types/form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,iBAAiB,EAAqB,MAAM,0BAA0B,CAAC;AAEhG,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnE,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAC3D,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC,CAAC;IACnD,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAAC,CAAC;CAC5D;AAED,eAAO,MAAM,WAAW,EAAE,aAGzB,CAAC;AAEF,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC,CAAC;CACpD;AAED,MAAM,WAAW,KAAK;IACpB,KAAK,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,SAAS,GAAG,KAAK,CAAC;CAC7B;AAED,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { JSONValue } from '../../../types/json';
|
|
2
|
+
export type AuthType = 'Oauth2' | 'ApiKey';
|
|
3
|
+
export interface oAuthRequest {
|
|
4
|
+
clientId: string;
|
|
5
|
+
clientSecret: string;
|
|
6
|
+
authType: 'Oauth2';
|
|
7
|
+
authEndpointUrl: string;
|
|
8
|
+
tokenEndpointUrl: string;
|
|
9
|
+
refreshTokenUrl: string;
|
|
10
|
+
scopes?: string;
|
|
11
|
+
grantType?: string;
|
|
12
|
+
keyName?: string;
|
|
13
|
+
prefix?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ApiKeyRequest {
|
|
16
|
+
authType: 'ApiKey';
|
|
17
|
+
location: string;
|
|
18
|
+
keyName: string;
|
|
19
|
+
keyValue: string;
|
|
20
|
+
prefix?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface EditAuthRequest {
|
|
23
|
+
authDetails: oAuthRequest | ApiKeyRequest;
|
|
24
|
+
baseUrl: string;
|
|
25
|
+
}
|
|
26
|
+
export interface AuthRequest extends EditAuthRequest {
|
|
27
|
+
templateId: string;
|
|
28
|
+
}
|
|
29
|
+
export interface ITestUrlData {
|
|
30
|
+
testUrlResponse: JSONValue;
|
|
31
|
+
statusCode: string;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../src/features/auth/types/request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE3C,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,YAAY,GAAG,aAAa,CAAC;IAC1C,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAY,SAAQ,eAAe;IAClD,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,eAAe,EAAE,SAAS,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FormFieldProps } from '../../../types/form';
|
|
2
|
+
import { AuthFieldKeys, AuthFormState, FieldValue, Predicates } from '../types/form';
|
|
3
|
+
import { AuthRequest, EditAuthRequest } from '../types/request';
|
|
4
|
+
import { IAuthDetails } from '../../../types/connector';
|
|
5
|
+
export declare const getAuthRequestBody: ({ isEdit, templateId, values, formFields, predicates }: {
|
|
6
|
+
isEdit: boolean;
|
|
7
|
+
templateId?: string;
|
|
8
|
+
values: AuthFormState["values"];
|
|
9
|
+
formFields: Partial<Record<AuthFieldKeys, FormFieldProps>>;
|
|
10
|
+
predicates: Predicates;
|
|
11
|
+
}) => AuthRequest | EditAuthRequest;
|
|
12
|
+
export declare function mapAuthApiDataToStateData(authData: IAuthDetails): Partial<Record<AuthFieldKeys, FieldValue>>;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/auth/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAM9C,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC1F,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAA+B,MAAM,kBAAkB,CAAC;AAElG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,kBAAkB,2DAM5B;IACD,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAChC,UAAU,EAAE,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC,CAAC;IAC3D,UAAU,EAAE,UAAU,CAAC;CACxB,KAAG,WAAW,GAAG,eA6CjB,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC,CA+B5G"}
|