@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,2 @@
1
+ export declare const handlers: import('msw').HttpHandler[];
2
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/auth.ts"],"names":[],"mappings":"AA0DA,eAAO,MAAM,QAAQ,6BAA6D,CAAC"}
@@ -1,2 +1,10 @@
1
+ export declare const connectorsList: {
2
+ id: string;
3
+ description: string;
4
+ logo: string | null;
5
+ name: string;
6
+ isAuthenticated: boolean;
7
+ isEnabled: boolean;
8
+ }[];
1
9
  export declare const handlers: import('msw').HttpHandler[];
2
10
  //# sourceMappingURL=connector-template.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"connector-template.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/connector-template.ts"],"names":[],"mappings":"AA0FA,eAAO,MAAM,QAAQ,6BAAsE,CAAC"}
1
+ {"version":3,"file":"connector-template.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/connector-template.ts"],"names":[],"mappings":"AA0FA,eAAO,MAAM,cAAc;;;;;;;GAAyB,CAAC;AA0BrD,eAAO,MAAM,QAAQ,6BAAwF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const handlers: import('msw').HttpHandler[];
2
+ //# sourceMappingURL=request-connector-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request-connector-api.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/request-connector-api.ts"],"names":[],"mappings":"AAmDA,eAAO,MAAM,QAAQ,6BAAgC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"update-connector.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/update-connector.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,QAAQ,6BAAyB,CAAC"}
1
+ {"version":3,"file":"update-connector.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/update-connector.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,QAAQ,6BAAyB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../src/testing/mocks/handlers.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ,6BAA+E,CAAC"}
1
+ {"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../src/testing/mocks/handlers.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,QAAQ,6BAMpB,CAAC"}
@@ -2,10 +2,14 @@ import { RootState } from '../store';
2
2
  export declare const setupStore: (preloadedState?: Partial<RootState>) => import('@reduxjs/toolkit').EnhancedStore<{
3
3
  counter: import('../store/counter/initial-state').CounterState;
4
4
  connectorLirary: import('../features/connector-library/store/initial-state').ConnectorState;
5
+ auth: import('../features/auth/store/initial-state').AuthState;
6
+ requestConnectorApi: import('../store/request-connector-api/initial-state').RequestState;
5
7
  }, import('redux').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
6
8
  dispatch: import('redux-thunk').ThunkDispatch<{
7
9
  counter: import('../store/counter/initial-state').CounterState;
8
10
  connectorLirary: import('../features/connector-library/store/initial-state').ConnectorState;
11
+ auth: import('../features/auth/store/initial-state').AuthState;
12
+ requestConnectorApi: import('../store/request-connector-api/initial-state').RequestState;
9
13
  }, undefined, import('redux').UnknownAction>;
10
14
  }>, import('redux').StoreEnhancer]>>;
11
15
  //# sourceMappingURL=setup-store.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"setup-store.d.ts","sourceRoot":"","sources":["../../src/testing/setup-store.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAe,MAAM,SAAS,CAAC;AAEjD,eAAO,MAAM,UAAU,oBAAqB,OAAO,CAAC,SAAS,CAAC;;;;;;;;oCAK7D,CAAC"}
1
+ {"version":3,"file":"setup-store.d.ts","sourceRoot":"","sources":["../../src/testing/setup-store.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAe,MAAM,SAAS,CAAC;AAEjD,eAAO,MAAM,UAAU,oBAAqB,OAAO,CAAC,SAAS,CAAC;;;;;;;;;;;;oCAK7D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type AllKeys<T> = T extends any ? keyof T : never;
2
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,GAAG,MAAM,CAAC,GAAG,KAAK,CAAC"}
@@ -0,0 +1,60 @@
1
+ export type ConnectorId = string;
2
+ export interface IAPI {
3
+ name: string;
4
+ keyName: string;
5
+ description: string;
6
+ }
7
+ export interface IOAuthDetails {
8
+ authType: 'Oauth2';
9
+ authEndpointUrl: string;
10
+ tokenEndpointUrl: string;
11
+ scopes?: Array<string>;
12
+ grantType?: string;
13
+ keyName: string;
14
+ prefix?: string;
15
+ clientId: string;
16
+ clientSecret: string;
17
+ }
18
+ export interface IAuthAPIKeyDetails {
19
+ authType: 'ApiKey';
20
+ location: string;
21
+ keyName: string;
22
+ keyValue: string;
23
+ prefix?: string;
24
+ }
25
+ export interface IConnectorVariable {
26
+ baseUrl?: string;
27
+ }
28
+ export type IAuthDetails = IOAuthDetails | IAuthAPIKeyDetails;
29
+ export interface IAPIKey {
30
+ label: string;
31
+ placeholderValue: string;
32
+ priority: number;
33
+ }
34
+ export interface ICard {
35
+ title: string;
36
+ priority: number;
37
+ type: 'flat' | 'flat_with_list' | 'create_resource';
38
+ output_map: {
39
+ [key: string]: IAPIKey;
40
+ };
41
+ }
42
+ export interface IIntegrationPanel {
43
+ position: string;
44
+ cards: Array<ICard>;
45
+ }
46
+ export interface IConnectorDetails {
47
+ id: string;
48
+ type: string;
49
+ authDetails: IAuthDetails;
50
+ authenticated: boolean;
51
+ enabled: boolean;
52
+ name: string;
53
+ description: string;
54
+ feature_key: string;
55
+ apiList: Array<IAPI>;
56
+ integrationPanel: IIntegrationPanel;
57
+ variables?: IConnectorVariable;
58
+ redirectUrl?: string;
59
+ }
60
+ //# sourceMappingURL=connector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../src/types/connector.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AACjC,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,QAAQ,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,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,kBAAkB;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,YAAY,GAAG,aAAa,GAAG,kBAAkB,CAAC;AAE9D,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,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,YAAY,CAAC;IAC1B,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,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;IACpC,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,7 @@
1
+ export type JSONPrimitive = string | number | boolean | null;
2
+ export type JSONObject = {
3
+ [k: string]: JSONValue;
4
+ };
5
+ export type JSONArray = JSONValue[];
6
+ export type JSONValue = JSONArray | JSONObject | JSONPrimitive;
7
+ //# sourceMappingURL=json.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../src/types/json.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AAC7D,MAAM,MAAM,UAAU,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AACpD,MAAM,MAAM,SAAS,GAAG,SAAS,EAAE,CAAC;AACpC,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,aAAa,CAAC"}
package/types/router.d.ts CHANGED
@@ -1,4 +1,10 @@
1
+ import { IBaseUrls } from '../context';
2
+ export interface IAvailableFtr {
3
+ [key: string]: boolean;
4
+ }
1
5
  export interface IAppRouter {
2
6
  basename?: string;
7
+ baseUrls?: IBaseUrls;
8
+ availableFeatures?: IAvailableFtr;
3
9
  }
4
10
  //# sourceMappingURL=router.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/types/router.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
1
+ {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/types/router.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,WAAW,aAAa;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,iBAAiB,CAAC,EAAE,aAAa,CAAC;CACnC"}
package/utils/index.d.ts CHANGED
@@ -1,5 +1,18 @@
1
+ import { FormFieldProps, IFormConfig } from '../types/form';
2
+ import { IAvailableFtr } from '../types/router';
1
3
  export declare function listToDict<T>(list: T[], idGen: (arg: T) => string): {
2
4
  [k: string]: T;
3
5
  };
4
6
  export declare function getIdList<T>(list: T[], idGen: (arg: T) => string): string[];
7
+ export declare function getFlatFormFields<T extends string>(formConfig: IFormConfig[]): Partial<Record<T, FormFieldProps>>;
8
+ /**
9
+ * Function to check whether the specified feature(featureName) is availabe or not.
10
+ * @param {Object} availableFeatures
11
+ * @param {String} featureName
12
+ */
13
+ export declare const isFeatureAvailable: (availableFeatures: IAvailableFtr, featureName: string) => boolean;
14
+ export declare const isUpgradeFlow: (availableFeatures: IAvailableFtr) => boolean;
15
+ export declare const openChatWindow: (email?: string, firstname?: string, extraParams?: {
16
+ referrer?: string;
17
+ }) => void;
5
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,CAAA;CAAE,CAStF;AAED,wBAAgB,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,YAEhE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,CAAA;CAAE,CAStF;AAED,wBAAgB,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,YAEhE;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC,CAQjH;AACD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,sBAAuB,aAAa,eAAe,MAAM,YAEvF,CAAC;AAEF,eAAO,MAAM,aAAa,sBAAuB,aAAa,YAK7D,CAAC;AAEF,eAAO,MAAM,cAAc,WAAY,MAAM,cAAc,MAAM,gBAAe;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,SAepG,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { AllKeys } from '../types/common';
2
+ export declare function isKeyOf<T extends object>(key: string | number | symbol, obj: T): key is AllKeys<T>;
3
+ //# sourceMappingURL=type-guards.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-guards.d.ts","sourceRoot":"","sources":["../../src/utils/type-guards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,GAAG,IAAI,OAAO,CAAC,CAAC,CAAC,CAElG"}
@@ -1,174 +0,0 @@
1
- import { g as B, f as W, s as j, h as f, _ as p, i as C, am as M, k as O, j as P, l as R, P as t, m as N } from "./index-g_hNAZie.js";
2
- import * as _ from "react";
3
- function U(a) {
4
- return B("MuiTypography", a);
5
- }
6
- W("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
7
- const D = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], E = (a) => {
8
- const {
9
- align: o,
10
- gutterBottom: r,
11
- noWrap: e,
12
- paragraph: i,
13
- variant: n,
14
- classes: h
15
- } = a, s = {
16
- root: ["root", n, a.align !== "inherit" && `align${f(o)}`, r && "gutterBottom", e && "noWrap", i && "paragraph"]
17
- };
18
- return N(s, U, h);
19
- }, L = j("span", {
20
- name: "MuiTypography",
21
- slot: "Root",
22
- overridesResolver: (a, o) => {
23
- const {
24
- ownerState: r
25
- } = a;
26
- return [o.root, r.variant && o[r.variant], r.align !== "inherit" && o[`align${f(r.align)}`], r.noWrap && o.noWrap, r.gutterBottom && o.gutterBottom, r.paragraph && o.paragraph];
27
- }
28
- })(({
29
- theme: a,
30
- ownerState: o
31
- }) => p({
32
- margin: 0
33
- }, o.variant === "inherit" && {
34
- // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
35
- font: "inherit"
36
- }, o.variant !== "inherit" && a.typography[o.variant], o.align !== "inherit" && {
37
- textAlign: o.align
38
- }, o.noWrap && {
39
- overflow: "hidden",
40
- textOverflow: "ellipsis",
41
- whiteSpace: "nowrap"
42
- }, o.gutterBottom && {
43
- marginBottom: "0.35em"
44
- }, o.paragraph && {
45
- marginBottom: 16
46
- })), u = {
47
- h1: "h1",
48
- h2: "h2",
49
- h3: "h3",
50
- h4: "h4",
51
- h5: "h5",
52
- h6: "h6",
53
- subtitle1: "h6",
54
- subtitle2: "h6",
55
- body1: "p",
56
- body2: "p",
57
- inherit: "p"
58
- }, V = {
59
- primary: "primary.main",
60
- textPrimary: "text.primary",
61
- secondary: "secondary.main",
62
- textSecondary: "text.secondary",
63
- error: "error.main"
64
- }, $ = (a) => V[a] || a, k = /* @__PURE__ */ _.forwardRef(function(o, r) {
65
- const e = C({
66
- props: o,
67
- name: "MuiTypography"
68
- }), i = $(e.color), n = M(p({}, e, {
69
- color: i
70
- })), {
71
- align: h = "inherit",
72
- className: s,
73
- component: g,
74
- gutterBottom: d = !1,
75
- noWrap: b = !1,
76
- paragraph: c = !1,
77
- variant: l = "body1",
78
- variantMapping: m = u
79
- } = n, v = O(n, D), y = p({}, n, {
80
- align: h,
81
- color: i,
82
- className: s,
83
- component: g,
84
- gutterBottom: d,
85
- noWrap: b,
86
- paragraph: c,
87
- variant: l,
88
- variantMapping: m
89
- }), x = g || (c ? "p" : m[l] || u[l]) || "span", T = E(y);
90
- return /* @__PURE__ */ P.jsx(L, p({
91
- as: x,
92
- ref: r,
93
- ownerState: y,
94
- className: R(T.root, s)
95
- }, v));
96
- });
97
- process.env.NODE_ENV !== "production" && (k.propTypes = {
98
- // ┌────────────────────────────── Warning ──────────────────────────────┐
99
- // │ These PropTypes are generated from the TypeScript type definitions. │
100
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
101
- // └─────────────────────────────────────────────────────────────────────┘
102
- /**
103
- * Set the text-align on the component.
104
- * @default 'inherit'
105
- */
106
- align: t.oneOf(["center", "inherit", "justify", "left", "right"]),
107
- /**
108
- * The content of the component.
109
- */
110
- children: t.node,
111
- /**
112
- * Override or extend the styles applied to the component.
113
- */
114
- classes: t.object,
115
- /**
116
- * @ignore
117
- */
118
- className: t.string,
119
- /**
120
- * The component used for the root node.
121
- * Either a string to use a HTML element or a component.
122
- */
123
- component: t.elementType,
124
- /**
125
- * If `true`, the text will have a bottom margin.
126
- * @default false
127
- */
128
- gutterBottom: t.bool,
129
- /**
130
- * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
131
- *
132
- * Note that text overflow can only happen with block or inline-block level elements
133
- * (the element needs to have a width in order to overflow).
134
- * @default false
135
- */
136
- noWrap: t.bool,
137
- /**
138
- * If `true`, the element will be a paragraph element.
139
- * @default false
140
- */
141
- paragraph: t.bool,
142
- /**
143
- * The system prop that allows defining system overrides as well as additional CSS styles.
144
- */
145
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
146
- /**
147
- * Applies the theme typography styles.
148
- * @default 'body1'
149
- */
150
- variant: t.oneOfType([t.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), t.string]),
151
- /**
152
- * The component maps the variant prop to a range of different HTML element types.
153
- * For instance, subtitle1 to `<h6>`.
154
- * If you wish to change that mapping, you can provide your own.
155
- * Alternatively, you can use the `component` prop.
156
- * @default {
157
- * h1: 'h1',
158
- * h2: 'h2',
159
- * h3: 'h3',
160
- * h4: 'h4',
161
- * h5: 'h5',
162
- * h6: 'h6',
163
- * subtitle1: 'h6',
164
- * subtitle2: 'h6',
165
- * body1: 'p',
166
- * body2: 'p',
167
- * inherit: 'p',
168
- * }
169
- */
170
- variantMapping: t.object
171
- });
172
- export {
173
- k as T
174
- };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=auth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/features/auth/components/auth.tsx"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- import { IConnectorTemplate, IConnectorStruct, IConnectorTemplateDetails } from '../types/connector';
2
- export declare function assertIsConnectorTemplateLike(valueToTest: unknown): asserts valueToTest is IConnectorTemplate;
3
- export declare function assertIsConnectorTemplateArrayLike(valueToTest: unknown[]): asserts valueToTest is IConnectorTemplate[];
4
- export declare function assertIsConnectorLike(valueToTest: unknown): asserts valueToTest is IConnectorStruct;
5
- export declare function assertIsConnectorArrayLike(valueToTest: unknown[]): asserts valueToTest is IConnectorStruct[];
6
- export declare function assertIsTemplateDetailsLike(valueToTest: unknown): asserts valueToTest is IConnectorTemplateDetails;
7
- //# sourceMappingURL=type-guards.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type-guards.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/utils/type-guards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAGpH,wBAAgB,6BAA6B,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,IAAI,kBAAkB,CAiB7G;AAED,wBAAgB,kCAAkC,CAChD,WAAW,EAAE,OAAO,EAAE,GACrB,OAAO,CAAC,WAAW,IAAI,kBAAkB,EAAE,CAO7C;AAED,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,IAAI,gBAAgB,CAoBnG;AAED,wBAAgB,0BAA0B,CAAC,WAAW,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,WAAW,IAAI,gBAAgB,EAAE,CAO5G;AAED,wBAAgB,2BAA2B,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,IAAI,yBAAyB,CA2BlH"}
@@ -1,2 +0,0 @@
1
- export declare const Auth: () => import("react/jsx-runtime").JSX.Element;
2
- //# sourceMappingURL=auth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../src/features/settings/components/auth/auth.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,+CAEhB,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const AUTH_COMP = "auth component";
2
- //# sourceMappingURL=auth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/features/settings/constants/auth.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,mBAAmB,CAAC"}