@hiver/connector-admin 0.0.9 → 0.0.10-beta.10

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.
Files changed (171) hide show
  1. package/app/connectors/index.d.ts +1 -1
  2. package/app/connectors/index.d.ts.map +1 -1
  3. package/app/connectors/pages/auth-success/index.d.ts +2 -0
  4. package/app/connectors/pages/auth-success/index.d.ts.map +1 -0
  5. package/app/connectors/pages/auth-success/styles.d.ts +4 -0
  6. package/app/connectors/pages/auth-success/styles.d.ts.map +1 -0
  7. package/app/connectors/pages/connector-view/agent/index.d.ts.map +1 -1
  8. package/app/connectors/pages/connector-view/agent/styles.d.ts +4 -0
  9. package/app/connectors/pages/connector-view/agent/styles.d.ts.map +1 -0
  10. package/app/connectors/pages/connector-view/dashboard/index.d.ts.map +1 -1
  11. package/app/connectors/pages/settings/index.d.ts.map +1 -1
  12. package/app/connectors/pages/settings/styles.d.ts +1 -0
  13. package/app/connectors/pages/settings/styles.d.ts.map +1 -1
  14. package/app/connectors/pages/upgrade-page/index.d.ts +3 -0
  15. package/app/connectors/pages/upgrade-page/index.d.ts.map +1 -0
  16. package/app/connectors/pages/upgrade-page/style.d.ts +16 -0
  17. package/app/connectors/pages/upgrade-page/style.d.ts.map +1 -0
  18. package/app/connectors/router.d.ts +1 -1
  19. package/app/connectors/router.d.ts.map +1 -1
  20. package/components/layouts/sidebar/index.d.ts.map +1 -1
  21. package/components/layouts/sidebar/styles.d.ts.map +1 -1
  22. package/components/ui/form/index.d.ts +19 -0
  23. package/components/ui/form/index.d.ts.map +1 -0
  24. package/components/ui/form/styles.d.ts +4 -0
  25. package/components/ui/form/styles.d.ts.map +1 -0
  26. package/components/ui/form-fields/index.d.ts.map +1 -1
  27. package/components/ui/select/style.d.ts +2 -0
  28. package/components/ui/select/style.d.ts.map +1 -0
  29. package/constants/api.d.ts +1 -0
  30. package/constants/api.d.ts.map +1 -1
  31. package/constants/app-constants.d.ts +2 -0
  32. package/constants/app-constants.d.ts.map +1 -1
  33. package/constants/global-constants.d.ts +11 -0
  34. package/constants/global-constants.d.ts.map +1 -0
  35. package/constants/router-paths.d.ts +1 -0
  36. package/constants/router-paths.d.ts.map +1 -1
  37. package/context/index.d.ts +12 -0
  38. package/context/index.d.ts.map +1 -1
  39. package/context/main-app-provider/index.d.ts.map +1 -1
  40. package/features/agent/components/agent-landing/index.d.ts +3 -0
  41. package/features/agent/components/agent-landing/index.d.ts.map +1 -0
  42. package/features/agent/components/agent-landing/styles.d.ts +8 -0
  43. package/features/agent/components/agent-landing/styles.d.ts.map +1 -0
  44. package/features/agent/constants/index.d.ts +6 -0
  45. package/features/agent/constants/index.d.ts.map +1 -0
  46. package/features/auth/api/index.d.ts +8 -0
  47. package/features/auth/api/index.d.ts.map +1 -0
  48. package/features/auth/components/api-executor/index.d.ts +8 -0
  49. package/features/auth/components/api-executor/index.d.ts.map +1 -0
  50. package/features/auth/components/api-executor/styles.d.ts +12 -0
  51. package/features/auth/components/api-executor/styles.d.ts.map +1 -0
  52. package/features/auth/components/auth-form/index.d.ts +12 -0
  53. package/features/auth/components/auth-form/index.d.ts.map +1 -0
  54. package/features/auth/components/auth-form/reducer.d.ts +11 -0
  55. package/features/auth/components/auth-form/reducer.d.ts.map +1 -0
  56. package/features/auth/components/auth-form/styles.d.ts +8 -0
  57. package/features/auth/components/auth-form/styles.d.ts.map +1 -0
  58. package/features/auth/components/auth-header-skeleton/index.d.ts +2 -0
  59. package/features/auth/components/auth-header-skeleton/index.d.ts.map +1 -0
  60. package/features/auth/constants/api.d.ts +6 -0
  61. package/features/auth/constants/api.d.ts.map +1 -0
  62. package/features/auth/constants/form-config.d.ts +71 -0
  63. package/features/auth/constants/form-config.d.ts.map +1 -0
  64. package/features/auth/constants/index.d.ts +8 -1
  65. package/features/auth/constants/index.d.ts.map +1 -1
  66. package/features/auth/store/initial-state.d.ts +19 -0
  67. package/features/auth/store/initial-state.d.ts.map +1 -0
  68. package/features/auth/store/selectors.d.ts +12 -0
  69. package/features/auth/store/selectors.d.ts.map +1 -0
  70. package/features/auth/store/slice.d.ts +76 -0
  71. package/features/auth/store/slice.d.ts.map +1 -0
  72. package/features/auth/types/connector.d.ts +2 -0
  73. package/features/auth/types/connector.d.ts.map +1 -0
  74. package/features/auth/types/form.d.ts +24 -0
  75. package/features/auth/types/form.d.ts.map +1 -0
  76. package/features/auth/types/request.d.ts +34 -0
  77. package/features/auth/types/request.d.ts.map +1 -0
  78. package/features/auth/utils/index.d.ts +13 -0
  79. package/features/auth/utils/index.d.ts.map +1 -0
  80. package/features/auth/utils/type-guards.d.ts +8 -0
  81. package/features/auth/utils/type-guards.d.ts.map +1 -0
  82. package/features/connector-library/constants/api.d.ts.map +1 -1
  83. package/features/connector-library/store/initial-state.d.ts +3 -2
  84. package/features/connector-library/store/initial-state.d.ts.map +1 -1
  85. package/features/connector-library/store/selectors.d.ts +1 -1
  86. package/features/connector-library/store/selectors.d.ts.map +1 -1
  87. package/features/connector-library/store/slice.d.ts +7 -3
  88. package/features/connector-library/store/slice.d.ts.map +1 -1
  89. package/features/connector-library/types/connector.d.ts +2 -43
  90. package/features/connector-library/types/connector.d.ts.map +1 -1
  91. package/features/request-new-connector/api/index.d.ts +8 -0
  92. package/features/request-new-connector/api/index.d.ts.map +1 -0
  93. package/features/request-new-connector/components/custom-connector-card/index.d.ts +1 -0
  94. package/features/request-new-connector/components/custom-connector-card/index.d.ts.map +1 -1
  95. package/features/request-new-connector/components/request-new-modal/index.d.ts +1 -0
  96. package/features/request-new-connector/components/request-new-modal/index.d.ts.map +1 -1
  97. package/features/request-new-connector/components/request-new-modal/request-panel.d.ts.map +1 -1
  98. package/features/request-new-connector/constants/api.d.ts +2 -0
  99. package/features/request-new-connector/constants/api.d.ts.map +1 -0
  100. package/features/request-new-connector/constants/index.d.ts +4 -0
  101. package/features/request-new-connector/constants/index.d.ts.map +1 -1
  102. package/features/request-new-connector/types/index.d.ts +16 -1
  103. package/features/request-new-connector/types/index.d.ts.map +1 -1
  104. package/features/toast-message/CloseButton.d.ts +4 -0
  105. package/features/toast-message/CloseButton.d.ts.map +1 -0
  106. package/features/toast-message/HiverIconToast.d.ts +7 -0
  107. package/features/toast-message/HiverIconToast.d.ts.map +1 -0
  108. package/features/toast-message/__tests__/toastMessage.test.d.ts +2 -0
  109. package/features/toast-message/__tests__/toastMessage.test.d.ts.map +1 -0
  110. package/features/toast-message/constants/toast.d.ts +4 -0
  111. package/features/toast-message/constants/toast.d.ts.map +1 -0
  112. package/features/toast-message/showMessage.d.ts +13 -0
  113. package/features/toast-message/showMessage.d.ts.map +1 -0
  114. package/features/toast-message/style.d.ts +7 -0
  115. package/features/toast-message/style.d.ts.map +1 -0
  116. package/{index-D5knnyWw.js → index-4Ya8UV6m.js} +25 -25
  117. package/{index-g_hNAZie.js → index-B0FKVOr3.js} +11936 -10514
  118. package/{index-0ckwA6Bt.js → index-BrMDvXFi.js} +972 -1115
  119. package/index-CJ9BUeJ0.js +71 -0
  120. package/index-DpmW8med.js +3784 -0
  121. package/index-Dt_sSW5G.js +711 -0
  122. package/index-HS7-EA71.js +66 -0
  123. package/index.es.js +1 -1
  124. package/index.umd.js +541 -228
  125. package/package.json +1 -1
  126. package/store/hooks.d.ts +4 -0
  127. package/store/hooks.d.ts.map +1 -1
  128. package/store/index.d.ts +8 -0
  129. package/store/index.d.ts.map +1 -1
  130. package/store/request-connector-api/initial-state.d.ts +9 -0
  131. package/store/request-connector-api/initial-state.d.ts.map +1 -0
  132. package/store/request-connector-api/selectors.d.ts +5 -0
  133. package/store/request-connector-api/selectors.d.ts.map +1 -0
  134. package/store/request-connector-api/slice.d.ts +39 -0
  135. package/store/request-connector-api/slice.d.ts.map +1 -0
  136. package/styled-ui-components-CGjzlsAh.js +2253 -0
  137. package/testing/mocks/handlers/auth.d.ts +2 -0
  138. package/testing/mocks/handlers/auth.d.ts.map +1 -0
  139. package/testing/mocks/handlers/connector-template.d.ts +8 -0
  140. package/testing/mocks/handlers/connector-template.d.ts.map +1 -1
  141. package/testing/mocks/handlers/request-connector-api.d.ts +2 -0
  142. package/testing/mocks/handlers/request-connector-api.d.ts.map +1 -0
  143. package/testing/mocks/handlers/update-connector.d.ts.map +1 -1
  144. package/testing/mocks/handlers.d.ts.map +1 -1
  145. package/testing/setup-store.d.ts +4 -0
  146. package/testing/setup-store.d.ts.map +1 -1
  147. package/types/common.d.ts +2 -0
  148. package/types/common.d.ts.map +1 -0
  149. package/types/connector.d.ts +60 -0
  150. package/types/connector.d.ts.map +1 -0
  151. package/types/json.d.ts +7 -0
  152. package/types/json.d.ts.map +1 -0
  153. package/types/router.d.ts +6 -0
  154. package/types/router.d.ts.map +1 -1
  155. package/utils/index.d.ts +13 -0
  156. package/utils/index.d.ts.map +1 -1
  157. package/utils/type-guards.d.ts +3 -0
  158. package/utils/type-guards.d.ts.map +1 -0
  159. package/Typography-BvoDUPsi.js +0 -174
  160. package/features/auth/components/auth.d.ts +0 -2
  161. package/features/auth/components/auth.d.ts.map +0 -1
  162. package/features/connector-library/utils/type-guards.d.ts +0 -7
  163. package/features/connector-library/utils/type-guards.d.ts.map +0 -1
  164. package/features/settings/components/auth/auth.d.ts +0 -2
  165. package/features/settings/components/auth/auth.d.ts.map +0 -1
  166. package/features/settings/constants/auth.d.ts +0 -2
  167. package/features/settings/constants/auth.d.ts.map +0 -1
  168. package/index-CPqWySPe.js +0 -2954
  169. package/index-CWnqz_7p.js +0 -55
  170. package/index-CihMwBsW.js +0 -5
  171. package/index-xau7jZsj.js +0 -40
@@ -0,0 +1,76 @@
1
+ import { PayloadAction } from '@reduxjs/toolkit';
2
+ import { JSONValue } from '../../../types/json';
3
+ import { AuthRequest, EditAuthRequest, IAUTH_STATUS } from '../types/request';
4
+ import { IConnectorDetails } from '../../../types/connector';
5
+ export declare const authSlice: import('@reduxjs/toolkit').Slice<import('./initial-state').AuthState, {
6
+ authDone: (state: import('immer').WritableDraft<import('./initial-state').AuthState>, action: PayloadAction<IAUTH_STATUS>) => void;
7
+ resetState: () => import('./initial-state').AuthState;
8
+ }, "auth", "auth", import('@reduxjs/toolkit').SliceSelectors<import('./initial-state').AuthState>>;
9
+ declare const submitAuthDetails: import('@reduxjs/toolkit').AsyncThunk<{
10
+ authUrl: any;
11
+ authStatus: IAUTH_STATUS;
12
+ }, {
13
+ data: AuthRequest;
14
+ } | {
15
+ data: EditAuthRequest;
16
+ connectorId: string;
17
+ }, {
18
+ state?: unknown;
19
+ dispatch?: import('redux-thunk').ThunkDispatch<unknown, unknown, import('redux').UnknownAction>;
20
+ extra?: unknown;
21
+ rejectValue?: unknown;
22
+ serializedErrorType?: unknown;
23
+ pendingMeta?: unknown;
24
+ fulfilledMeta?: unknown;
25
+ rejectedMeta?: unknown;
26
+ }>;
27
+ declare const testAuth: import('@reduxjs/toolkit').AsyncThunk<{
28
+ testUrlResponse: JSONValue;
29
+ statusCode: string;
30
+ }, {
31
+ data: {
32
+ testUrl: string;
33
+ };
34
+ connectorId: string;
35
+ }, {
36
+ state?: unknown;
37
+ dispatch?: import('redux-thunk').ThunkDispatch<unknown, unknown, import('redux').UnknownAction>;
38
+ extra?: unknown;
39
+ rejectValue?: unknown;
40
+ serializedErrorType?: unknown;
41
+ pendingMeta?: unknown;
42
+ fulfilledMeta?: unknown;
43
+ rejectedMeta?: unknown;
44
+ }>;
45
+ declare const fetchConnectorDetails: import('@reduxjs/toolkit').AsyncThunk<{
46
+ connector: null;
47
+ } | {
48
+ connector: IConnectorDetails;
49
+ }, string, {
50
+ state?: unknown;
51
+ dispatch?: import('redux-thunk').ThunkDispatch<unknown, unknown, import('redux').UnknownAction>;
52
+ extra?: unknown;
53
+ rejectValue?: unknown;
54
+ serializedErrorType?: unknown;
55
+ pendingMeta?: unknown;
56
+ fulfilledMeta?: unknown;
57
+ rejectedMeta?: unknown;
58
+ }>;
59
+ declare const verifyToken: import('@reduxjs/toolkit').AsyncThunk<void, {
60
+ data: JSONValue;
61
+ connectorId: string;
62
+ }, {
63
+ state?: unknown;
64
+ dispatch?: import('redux-thunk').ThunkDispatch<unknown, unknown, import('redux').UnknownAction>;
65
+ extra?: unknown;
66
+ rejectValue?: unknown;
67
+ serializedErrorType?: unknown;
68
+ pendingMeta?: unknown;
69
+ fulfilledMeta?: unknown;
70
+ rejectedMeta?: unknown;
71
+ }>;
72
+ declare const authDone: import('@reduxjs/toolkit').ActionCreatorWithPayload<IAUTH_STATUS, "auth/authDone">, resetState: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"auth/resetState">;
73
+ declare const _default: import('redux').Reducer<import('./initial-state').AuthState>;
74
+ export default _default;
75
+ export { testAuth, fetchConnectorDetails, submitAuthDetails, verifyToken, authDone, resetState };
76
+ //# 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,YAAY,EAAgB,MAAM,kBAAkB,CAAC;AAG5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,SAAS;kGAIQ,aAAa,CAAC,YAAY,CAAC;;kGAgEvD,CAAC;AAEH,QAAA,MAAM,iBAAiB;;;;UAEG,WAAW;;UAAa,eAAe;iBAAe,MAAM;;;;;;;;;;EA+BrF,CAAC;AAEF,QAAA,MAAM,QAAQ;;;;UAE0B;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE;iBAAe,MAAM;;;;;;;;;;EAgB/E,CAAC;AAEF,QAAA,MAAM,qBAAqB;;;eASK,iBAAiB;;;;;;;;;;EAE/C,CAAC;AAEH,QAAA,MAAM,WAAW;UAEuB,SAAS;iBAAe,MAAM;;;;;;;;;;EAGrE,CAAC;AAEF,QAAA,MAAQ,QAAQ,sFAAE,UAAU,2EAAsB,CAAC;;AACnD,wBAAiC;AACjC,OAAO,EAAE,QAAQ,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=connector.d.ts.map
@@ -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,34 @@
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
+ export type IAUTH_STATUS = 'idle' | 'pending' | 'failed' | 'success';
34
+ //# 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;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC"}
@@ -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;AAa9C,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,eA+CjB,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC,CA+B5G"}
@@ -0,0 +1,8 @@
1
+ import { IConnectorDetails, IAuthDetails, IOAuthDetails, IAuthAPIKeyDetails } from '../../../types/connector';
2
+ import { ITestUrlData } from '../types/request';
3
+ export declare function isOauthDetails(valueToTest: unknown): valueToTest is IOAuthDetails;
4
+ export declare function isApiKeyAuthDetails(valueToTest: unknown): valueToTest is IAuthAPIKeyDetails;
5
+ export declare function isAuthDetails(valueToTest: unknown): valueToTest is IAuthDetails;
6
+ export declare function assertIsConnectorDetailsLike(valueToTest: unknown): asserts valueToTest is IConnectorDetails;
7
+ export declare function assertIsTestUrlDataLike(valueToTest: unknown): asserts valueToTest is ITestUrlData;
8
+ //# sourceMappingURL=type-guards.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-guards.d.ts","sourceRoot":"","sources":["../../../../src/features/auth/utils/type-guards.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvG,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,wBAAgB,cAAc,CAAC,WAAW,EAAE,OAAO,GAAG,WAAW,IAAI,aAAa,CAgBjF;AAED,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,OAAO,GAAG,WAAW,IAAI,kBAAkB,CAgB3F;AACD,wBAAgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,WAAW,IAAI,YAAY,CAK/E;AAED,wBAAgB,4BAA4B,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,IAAI,iBAAiB,CA0B3G;AAED,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,IAAI,YAAY,CAajG"}
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/constants/api.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,EAAE,MAAyB,CAAC;AACrD,eAAO,MAAM,cAAc,EAAE,MAAyB,CAAC;AACvD,eAAO,MAAM,oBAAoB,EAAE,MAAmC,CAAC;AACvE,eAAO,MAAM,qBAAqB,EAAE,MAA6B,CAAC"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/constants/api.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,EAAE,MAAsC,CAAC;AAClE,eAAO,MAAM,cAAc,EAAE,MAAsC,CAAC;AACpE,eAAO,MAAM,oBAAoB,EAAE,MAAgD,CAAC;AACpF,eAAO,MAAM,qBAAqB,EAAE,MAA0C,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { ApiStatus } from '../../../types/api';
2
- import { ConnectorId, IConnectorStruct, IConnectorTemplate, IConnectorTemplateDetails } from '../types/connector';
2
+ import { IConnectorStruct, IConnectorTemplate } from '../types/connector';
3
+ import { IConnectorDetails, ConnectorId } from '../../../types/connector';
3
4
  export interface ConnectorState {
4
5
  connectorTemplates: {
5
6
  [key: ConnectorId]: IConnectorTemplate;
@@ -13,7 +14,7 @@ export interface ConnectorState {
13
14
  connectorsApiStatus: ApiStatus;
14
15
  templateDetailsApiStatus: ApiStatus;
15
16
  selectedConnector?: string | null;
16
- selectedConnectorData?: IConnectorTemplateDetails | null;
17
+ selectedConnectorData?: IConnectorDetails | null;
17
18
  currentUpdatingConnectors: {
18
19
  [key: string]: string;
19
20
  };
@@ -1 +1 @@
1
- {"version":3,"file":"initial-state.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/store/initial-state.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAEvH,MAAM,WAAW,cAAc;IAC7B,kBAAkB,EAAE;QAAE,CAAC,GAAG,EAAE,WAAW,GAAG,kBAAkB,CAAA;KAAE,GAAG,IAAI,CAAC;IACtE,qBAAqB,EAAE,WAAW,EAAE,CAAC;IACrC,UAAU,EAAE;QAAE,CAAC,EAAE,EAAE,WAAW,GAAG,gBAAgB,CAAA;KAAE,GAAG,IAAI,CAAC;IAC3D,aAAa,EAAE,WAAW,EAAE,CAAC;IAC7B,qBAAqB,EAAE,SAAS,CAAC;IACjC,mBAAmB,EAAE,SAAS,CAAC;IAC/B,wBAAwB,EAAE,SAAS,CAAC;IACpC,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,qBAAqB,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAC;IACzD,yBAAyB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACtD;AAGD,eAAO,MAAM,YAAY,EAAE,cAW1B,CAAC"}
1
+ {"version":3,"file":"initial-state.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/store/initial-state.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAExE,MAAM,WAAW,cAAc;IAC7B,kBAAkB,EAAE;QAAE,CAAC,GAAG,EAAE,WAAW,GAAG,kBAAkB,CAAA;KAAE,GAAG,IAAI,CAAC;IACtE,qBAAqB,EAAE,WAAW,EAAE,CAAC;IACrC,UAAU,EAAE;QAAE,CAAC,EAAE,EAAE,WAAW,GAAG,gBAAgB,CAAA;KAAE,GAAG,IAAI,CAAC;IAC3D,aAAa,EAAE,WAAW,EAAE,CAAC;IAC7B,qBAAqB,EAAE,SAAS,CAAC;IACjC,mBAAmB,EAAE,SAAS,CAAC;IAC/B,wBAAwB,EAAE,SAAS,CAAC;IACpC,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,qBAAqB,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACjD,yBAAyB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACtD;AAGD,eAAO,MAAM,YAAY,EAAE,cAW1B,CAAC"}
@@ -3,7 +3,7 @@ export declare const selectConnectorTemplateList: (state: RootState) => string[]
3
3
  export declare const selectConnectorTemplates: (state: RootState) => {
4
4
  [key: string]: import('../types/connector').IConnectorTemplate;
5
5
  } | null;
6
- export declare const selectCurrentTemplateData: (state: RootState) => import('../types/connector').IConnectorTemplateDetails | null | undefined;
6
+ export declare const selectCurrentTemplateData: (state: RootState) => import('../../../types/connector').IConnectorDetails | null | undefined;
7
7
  export declare const selectTemplateListApiStatus: (state: RootState) => import('../../../types/api').ApiStatus;
8
8
  export declare const selectConnectorList: (state: RootState) => string[];
9
9
  export declare const selectConnectors: (state: RootState) => {
@@ -1 +1 @@
1
- {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/store/selectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,2BAA2B,UAAW,SAAS,aAAgD,CAAC;AAC7G,eAAO,MAAM,wBAAwB,UAAW,SAAS;;QAA6C,CAAC;AACvG,eAAO,MAAM,yBAAyB,UAAW,SAAS,8EAAgD,CAAC;AAC3G,eAAO,MAAM,2BAA2B,UAAW,SAAS,2CAAgD,CAAC;AAC7G,eAAO,MAAM,mBAAmB,UAAW,SAAS,aAAwC,CAAC;AAC7F,eAAO,MAAM,gBAAgB,UAAW,SAAS;;QAAqC,CAAC;AACvF,eAAO,MAAM,4BAA4B,UAAW,SAAS,2CAA8C,CAAC;AAC5G,eAAO,MAAM,sBAAsB,UAAW,SAAS,8BAA4C,CAAC;AACpG,eAAO,MAAM,8BAA8B,UAAW,SAAS,2CAAmD,CAAC;AACnH,eAAO,MAAM,2BAA2B,UAAW,SAAS;;CAAoD,CAAC"}
1
+ {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/store/selectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,2BAA2B,UAAW,SAAS,aAAgD,CAAC;AAC7G,eAAO,MAAM,wBAAwB,UAAW,SAAS;;QAA6C,CAAC;AACvG,eAAO,MAAM,yBAAyB,UAAW,SAAS,4EAAgD,CAAC;AAC3G,eAAO,MAAM,2BAA2B,UAAW,SAAS,2CAAgD,CAAC;AAC7G,eAAO,MAAM,mBAAmB,UAAW,SAAS,aAAwC,CAAC;AAC7F,eAAO,MAAM,gBAAgB,UAAW,SAAS;;QAAqC,CAAC;AACvF,eAAO,MAAM,4BAA4B,UAAW,SAAS,2CAA8C,CAAC;AAC5G,eAAO,MAAM,sBAAsB,UAAW,SAAS,8BAA4C,CAAC;AACpG,eAAO,MAAM,8BAA8B,UAAW,SAAS,2CAAmD,CAAC;AACnH,eAAO,MAAM,2BAA2B,UAAW,SAAS;;CAAoD,CAAC"}
@@ -1,15 +1,18 @@
1
1
  import { PayloadAction } from '@reduxjs/toolkit';
2
2
  import { ConnectorState } from './initial-state';
3
+ import { IConnectorDetails } from '../../../types/connector';
3
4
  import { selectConnectorTemplateList, selectConnectorTemplates, selectCurrentTemplateData } from './selectors';
5
+ import { IConnectorStruct, IConnectorTemplate } from '../types/connector';
4
6
  interface ICurrentDashboard {
5
7
  currentDashboard: string;
6
8
  }
7
9
  export declare const connectorLibrarySlice: import('@reduxjs/toolkit').Slice<ConnectorState, {
8
10
  updateCurrentSelectedConnector: (state: ConnectorState, action: PayloadAction<ICurrentDashboard>) => void;
11
+ clearSelectedConnector: (state: import('immer').WritableDraft<ConnectorState>) => void;
9
12
  }, "connectorLibrary", "connectorLibrary", import('@reduxjs/toolkit').SliceSelectors<ConnectorState>>;
10
13
  declare const fetchConnectorTemplates: import('@reduxjs/toolkit').AsyncThunk<{
11
14
  connectors: {
12
- [k: string]: import('../types/connector').IConnectorTemplate;
15
+ [k: string]: IConnectorTemplate;
13
16
  };
14
17
  connectorList: string[];
15
18
  }, void, {
@@ -42,7 +45,7 @@ declare const updateConnectorDetailsApi: import('@reduxjs/toolkit').AsyncThunk<{
42
45
  }>;
43
46
  declare const fetchConnectors: import('@reduxjs/toolkit').AsyncThunk<{
44
47
  connectors: {
45
- [k: string]: import('../types/connector').IConnectorStruct;
48
+ [k: string]: IConnectorStruct;
46
49
  };
47
50
  connectorList: string[];
48
51
  }, void, {
@@ -58,7 +61,7 @@ declare const fetchConnectors: import('@reduxjs/toolkit').AsyncThunk<{
58
61
  declare const fetchTemplateDetails: import('@reduxjs/toolkit').AsyncThunk<{
59
62
  selectedConnectorData: null;
60
63
  } | {
61
- selectedConnectorData: import('../types/connector').IConnectorTemplateDetails;
64
+ selectedConnectorData: IConnectorDetails;
62
65
  }, string, {
63
66
  state?: unknown;
64
67
  dispatch?: import('redux-thunk').ThunkDispatch<unknown, unknown, import('redux').UnknownAction>;
@@ -73,6 +76,7 @@ declare const _default: import('redux').Reducer<ConnectorState>;
73
76
  export default _default;
74
77
  export declare const actions: import('@reduxjs/toolkit').CaseReducerActions<{
75
78
  updateCurrentSelectedConnector: (state: ConnectorState, action: PayloadAction<ICurrentDashboard>) => void;
79
+ clearSelectedConnector: (state: import('immer').WritableDraft<ConnectorState>) => void;
76
80
  }, "connectorLibrary">;
77
81
  export { fetchConnectorTemplates, fetchConnectors, fetchTemplateDetails, selectConnectorTemplateList, selectConnectorTemplates, selectCurrentTemplateData, updateConnectorDetailsApi };
78
82
  //# sourceMappingURL=slice.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/store/slice.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAItD,OAAO,EAAE,cAAc,EAAgB,MAAM,iBAAiB,CAAC;AAO/D,OAAO,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAE/G,UAAU,iBAAiB;IACzB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,qBAAqB;4CAIU,cAAc,UAAU,aAAa,CAAC,iBAAiB,CAAC;qGAwDlG,CAAC;AAIH,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;EAkB3B,CAAC;AAEH,QAAA,MAAM,yBAAyB;;YAER,MAAM;iBAAW,OAAO;;;QAAxB,MAAM;aAAW,OAAO;;;;;;;;;;EAI9C,CAAC;AAEF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;EAkBnB,CAAC;AAEH,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;EAaxB,CAAC;;AAEH,wBAA6C;AAC7C,eAAO,MAAM,OAAO;4CA5HwB,cAAc,UAAU,aAAa,CAAC,iBAAiB,CAAC;sBA4HhD,CAAC;AACrD,OAAO,EACL,uBAAuB,EACvB,eAAe,EACf,oBAAoB,EACpB,2BAA2B,EAC3B,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EAC1B,CAAC"}
1
+ {"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/store/slice.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAItD,OAAO,EAAE,cAAc,EAAgB,MAAM,iBAAiB,CAAC;AAG/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAC/G,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE1E,UAAU,iBAAiB;IACzB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,qBAAqB;4CAIU,cAAc,UAAU,aAAa,CAAC,iBAAiB,CAAC;;qGA+DlG,CAAC;AAIH,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;EAiB3B,CAAC;AAEH,QAAA,MAAM,yBAAyB;;YAER,MAAM;iBAAW,OAAO;;;QAAxB,MAAM;aAAW,OAAO;;;;;;;;;;EAI9C,CAAC;AAEF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;EAkBnB,CAAC;AAEH,QAAA,MAAM,oBAAoB;;;2BASkB,iBAAiB;;;;;;;;;;EAE3D,CAAC;;AAEH,wBAA6C;AAC7C,eAAO,MAAM,OAAO;4CAhIwB,cAAc,UAAU,aAAa,CAAC,iBAAiB,CAAC;;sBAgIhD,CAAC;AACrD,OAAO,EACL,uBAAuB,EACvB,eAAe,EACf,oBAAoB,EACpB,2BAA2B,EAC3B,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EAC1B,CAAC"}
@@ -1,8 +1,8 @@
1
- export type ConnectorId = string;
1
+ import { ConnectorId } from '../../../types/connector';
2
2
  export interface IConnectorTemplate {
3
3
  id: ConnectorId;
4
4
  description: string;
5
- logo: string;
5
+ logo: string | null;
6
6
  name: string;
7
7
  authType?: string;
8
8
  }
@@ -10,45 +10,4 @@ export interface IConnectorStruct extends Omit<IConnectorTemplate, 'authType'> {
10
10
  isEnabled: boolean;
11
11
  isAuthenticated: boolean;
12
12
  }
13
- export interface IAPI {
14
- name: string;
15
- keyName: string;
16
- description: string;
17
- }
18
- export interface IAuthDetails {
19
- authType: string;
20
- authEndpointUrl: string;
21
- tokenEndpointUrl: string;
22
- scopes: Array<string>;
23
- grantType: string;
24
- keyName: string;
25
- prefix: string;
26
- }
27
- export interface IAPIKey {
28
- label: string;
29
- placeholderValue: string;
30
- priority: number;
31
- }
32
- export interface ICard {
33
- title: string;
34
- priority: number;
35
- type: 'flat' | 'flat_with_list' | 'create_resource';
36
- output_map: {
37
- [key: string]: IAPIKey;
38
- };
39
- }
40
- export interface IIntegrationPanel {
41
- position: string;
42
- cards: Array<ICard>;
43
- }
44
- export interface IConnectorTemplateDetails {
45
- id: string;
46
- type: string;
47
- authDetails: IAuthDetails;
48
- name: string;
49
- description: string;
50
- feature_key: string;
51
- apiList: Array<IAPI>;
52
- integrationPanel: IIntegrationPanel;
53
- }
54
13
  //# sourceMappingURL=connector.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/types/connector.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,WAAW,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC;IAC5E,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,KAAK;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,GAAG,gBAAgB,GAAG,iBAAiB,CAAC;IACpD,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACxC;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;CACrB;AAED,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,YAAY,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IACrB,gBAAgB,EAAE,iBAAiB,CAAC;CACrC"}
1
+ {"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/types/connector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,WAAW,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC;IAC5E,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,OAAO,CAAC;CAC1B"}
@@ -0,0 +1,8 @@
1
+ export interface ISubmitConnectorRequest {
2
+ type: string;
3
+ values: Array<string>;
4
+ description: string;
5
+ }
6
+ export declare const getConnectorRequests: () => Promise<import('axios').AxiosResponse<any, any> | undefined>;
7
+ export declare const submitConnectorRequestApi: ({ type, values, description }: ISubmitConnectorRequest) => 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/request-new-connector/api/index.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,oBAAoB,oEAKhC,CAAC;AAEF,eAAO,MAAM,yBAAyB,kCAAmC,uBAAuB,iEAM/F,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { FC } from 'react';
2
2
  interface Iprops {
3
3
  setModal?: (val: boolean) => void;
4
+ setConnectorId?: (val: string) => void;
4
5
  isConfigSettingsPage?: boolean;
5
6
  currentConnector?: string | null | undefined;
6
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/request-new-connector/components/custom-connector-card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAA8C,MAAM,OAAO,CAAC;AAsCvE,UAAU,MAAM;IACd,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC9C;AAED,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,MAAM,CAkI1C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/request-new-connector/components/custom-connector-card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAA8C,MAAM,OAAO,CAAC;AAsCvE,UAAU,MAAM;IACd,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC9C;AAED,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,MAAM,CAuI1C,CAAC"}
@@ -3,6 +3,7 @@ export interface IRequestNewModalProps {
3
3
  shown: boolean;
4
4
  setShown: (value: boolean) => void;
5
5
  isApi?: boolean;
6
+ connectorId?: string;
6
7
  }
7
8
  export declare const RequestNewModal: React.FC<IRequestNewModalProps>;
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/request-new-connector/components/request-new-modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAQnD,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAqD3D,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/request-new-connector/components/request-new-modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAiBnD,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAmF3D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"request-panel.d.ts","sourceRoot":"","sources":["../../../../../src/features/request-new-connector/components/request-new-modal/request-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAY9C,UAAU,iBAAiB;IACzB,UAAU,EAAE,eAAe,EAAE,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAC;IACnB,qBAAqB,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,KAAK,IAAI,CAAC;IAC1D,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAmEpD,CAAC"}
1
+ {"version":3,"file":"request-panel.d.ts","sourceRoot":"","sources":["../../../../../src/features/request-new-connector/components/request-new-modal/request-panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAY9C,UAAU,iBAAiB;IACzB,UAAU,EAAE,eAAe,EAAE,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAC;IACnB,qBAAqB,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,KAAK,IAAI,CAAC;IAC1D,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAmFpD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const REQUEST_URL: string;
2
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/features/request-new-connector/constants/api.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,EAAE,MAAwD,CAAC"}
@@ -18,4 +18,8 @@ export declare const ADD_CONNECTOR: string;
18
18
  export declare const EDIT_CONNECTOR: string;
19
19
  export declare const ENABLE: string;
20
20
  export declare const DISABLE: string;
21
+ export declare const REQUEST_TYPE: {
22
+ CONNECTOR: string;
23
+ API: string;
24
+ };
21
25
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/request-new-connector/constants/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,EAAE,MAAyC,CAAC;AACrE,eAAO,MAAM,wBAAwB,EAAE,MAAqI,CAAC;AAC7K,eAAO,MAAM,WAAW,EAAE,MAAgC,CAAC;AAC3D,eAAO,MAAM,eAAe,EAAE,MAAwC,CAAC;AACvE,eAAO,MAAM,eAAe,EAAE,MAA0B,CAAC;AACzD,eAAO,MAAM,uBAAuB,EAAE,MAAkC,CAAC;AACzE,eAAO,MAAM,aAAa,EAAE,MACyD,CAAC;AACtF,eAAO,MAAM,6BAA6B,EAAE,MAAwH,CAAC;AACrK,eAAO,MAAM,uBAAuB,EAAE,MAAwB,CAAC;AAC/D,eAAO,MAAM,sCAAsC,EAAE,MAA6B,CAAC;AACnF,eAAO,MAAM,uCAAuC,EAAE,MAAuD,CAAC;AAC9G,eAAO,MAAM,6BAA6B,EAAE,MAAyB,CAAC;AACtE,eAAO,MAAM,iCAAiC,EAAE,MAA4B,CAAC;AAC7E,eAAO,MAAM,uCAAuC,EAAE,MAC2C,CAAC;AAClG,eAAO,MAAM,uCAAuC,EAAE,MAAe,CAAC;AACtE,eAAO,MAAM,gBAAgB,EAAE,MAA2B,CAAC;AAC3D,eAAO,MAAM,aAAa,EAAE,MAAwB,CAAC;AACrD,eAAO,MAAM,cAAc,EAAE,MAAyB,CAAC;AACvD,eAAO,MAAM,MAAM,EAAE,MAAiB,CAAC;AACvC,eAAO,MAAM,OAAO,EAAE,MAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/request-new-connector/constants/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,EAAE,MAAyC,CAAC;AACrE,eAAO,MAAM,wBAAwB,EAAE,MAAqI,CAAC;AAC7K,eAAO,MAAM,WAAW,EAAE,MAAgC,CAAC;AAC3D,eAAO,MAAM,eAAe,EAAE,MAAwC,CAAC;AACvE,eAAO,MAAM,eAAe,EAAE,MAA0B,CAAC;AACzD,eAAO,MAAM,uBAAuB,EAAE,MAAkC,CAAC;AACzE,eAAO,MAAM,aAAa,EAAE,MACyD,CAAC;AACtF,eAAO,MAAM,6BAA6B,EAAE,MAAwH,CAAC;AACrK,eAAO,MAAM,uBAAuB,EAAE,MAAwB,CAAC;AAC/D,eAAO,MAAM,sCAAsC,EAAE,MAA6B,CAAC;AACnF,eAAO,MAAM,uCAAuC,EAAE,MAAuD,CAAC;AAC9G,eAAO,MAAM,6BAA6B,EAAE,MAAyB,CAAC;AACtE,eAAO,MAAM,iCAAiC,EAAE,MAA4B,CAAC;AAC7E,eAAO,MAAM,uCAAuC,EAAE,MAC2C,CAAC;AAClG,eAAO,MAAM,uCAAuC,EAAE,MAAe,CAAC;AACtE,eAAO,MAAM,gBAAgB,EAAE,MAA2B,CAAC;AAC3D,eAAO,MAAM,aAAa,EAAE,MAAwB,CAAC;AACrD,eAAO,MAAM,cAAc,EAAE,MAAyB,CAAC;AACvD,eAAO,MAAM,MAAM,EAAE,MAAiB,CAAC;AACvC,eAAO,MAAM,OAAO,EAAE,MAAkB,CAAC;AACzC,eAAO,MAAM,YAAY;;;CAGxB,CAAC"}
@@ -1,5 +1,20 @@
1
1
  export interface IDropdownOption {
2
2
  label: string;
3
- id: number;
3
+ id: string;
4
+ }
5
+ export interface IRequestableConnector {
6
+ key: string;
7
+ name: string;
8
+ }
9
+ export interface IRequestableAPI {
10
+ connector: string;
11
+ apis: Array<{
12
+ key: string;
13
+ name: string;
14
+ }>;
15
+ }
16
+ export interface IRequests {
17
+ requestableConnectors: Array<IRequestableConnector>;
18
+ requestableApis: Array<IRequestableAPI>;
4
19
  }
5
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/request-new-connector/types/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;CACZ"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/request-new-connector/types/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,qBAAqB;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC5C;AAED,MAAM,WAAW,SAAS;IACxB,qBAAqB,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACpD,eAAe,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;CACzC"}
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ declare const CloseButton: FC;
3
+ export default CloseButton;
4
+ //# sourceMappingURL=CloseButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloseButton.d.ts","sourceRoot":"","sources":["../../../src/features/toast-message/CloseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAM3B,QAAA,MAAM,WAAW,EAAE,EAIlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ interface IHiverIconToast {
3
+ message: string;
4
+ }
5
+ declare const HiverIconToast: FC<IHiverIconToast>;
6
+ export default HiverIconToast;
7
+ //# sourceMappingURL=HiverIconToast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HiverIconToast.d.ts","sourceRoot":"","sources":["../../../src/features/toast-message/HiverIconToast.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAI3B,UAAU,eAAe;IACvB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,eAAe,CAKvC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=toastMessage.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toastMessage.test.d.ts","sourceRoot":"","sources":["../../../../src/features/toast-message/__tests__/toastMessage.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export declare const SUCCESS_TOAST: "success";
2
+ export declare const ERROR_TOAST: "error";
3
+ export declare const INFO_DARK: "info-dark";
4
+ //# sourceMappingURL=toast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../../src/features/toast-message/constants/toast.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,WAAqB,CAAC;AAChD,eAAO,MAAM,WAAW,SAAmB,CAAC;AAC5C,eAAO,MAAM,SAAS,aAAuB,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Dispatches action to show message
3
+ * @param {Object} message Message object of format { type, message }
4
+ */
5
+ export interface IShowMessage {
6
+ message: string;
7
+ type?: 'success' | 'error' | 'info-dark' | undefined;
8
+ autoClose?: number | false | undefined;
9
+ }
10
+ declare function showMessage(messageObject: IShowMessage): import('react-toastify').Id;
11
+ declare function removeToast(toastId: string | number): void;
12
+ export { showMessage, removeToast };
13
+ //# sourceMappingURL=showMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"showMessage.d.ts","sourceRoot":"","sources":["../../../src/features/toast-message/showMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,uCAAuC,CAAC;AAC/C,OAAO,gBAAgB,CAAC;AAQxB;;;GAGG;AAEH,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,WAAW,GAAG,SAAS,CAAC;IACrD,SAAS,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAAC;CACxC;AAED,iBAAS,WAAW,CAAC,aAAa,EAAE,YAAY,+BAoC/C;AAED,iBAAS,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,QAE5C;AAED,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { StyledComponent } from '@emotion/styled';
2
+ import { BoxProps, StackProps, SvgIconOwnProps } from '@hiver/hiver-ui-kit';
3
+ export declare const Wrapper: StyledComponent<BoxProps>;
4
+ export declare const Message: StyledComponent<BoxProps>;
5
+ export declare const Logo: StyledComponent<SvgIconOwnProps>;
6
+ export declare const ImgWrapper: StyledComponent<StackProps>;
7
+ //# sourceMappingURL=style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../src/features/toast-message/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEjF,eAAO,MAAM,OAAO,EAAE,eAAe,CAAC,QAAQ,CAI7C,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,eAAe,CAAC,QAAQ,CAG7C,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,eAAe,CAAC,eAAe,CAK/C,CAAC;AAEJ,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,UAAU,CAUlD,CAAC"}