@hiver/connector-admin 0.0.10-beta.8 → 1.0.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.
Files changed (236) 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/api-view/__tests__/connector-config.test.d.ts.map +1 -0
  4. package/app/connectors/pages/api-view/index.d.ts.map +1 -0
  5. package/app/connectors/pages/api-view/style.d.ts.map +1 -0
  6. package/app/connectors/pages/auth-success/index.d.ts.map +1 -1
  7. package/app/connectors/pages/connector-view/agent/styles.d.ts +2 -2
  8. package/app/connectors/pages/connector-view/agent/styles.d.ts.map +1 -1
  9. package/app/connectors/pages/connector-view/dashboard/index.d.ts.map +1 -1
  10. package/app/connectors/pages/connector-view/dashboard/styles.d.ts +1 -16
  11. package/app/connectors/pages/connector-view/dashboard/styles.d.ts.map +1 -1
  12. package/app/connectors/pages/connector-view/index.d.ts.map +1 -1
  13. package/app/connectors/pages/connector-view/style.d.ts +5 -0
  14. package/app/connectors/pages/connector-view/style.d.ts.map +1 -0
  15. package/app/connectors/pages/settings/index.d.ts.map +1 -1
  16. package/app/connectors/pages/settings/styles.d.ts +2 -3
  17. package/app/connectors/pages/settings/styles.d.ts.map +1 -1
  18. package/app/connectors/pages/upgrade-page/index.d.ts +7 -0
  19. package/app/connectors/pages/upgrade-page/index.d.ts.map +1 -0
  20. package/app/connectors/pages/upgrade-page/style.d.ts +16 -0
  21. package/app/connectors/pages/upgrade-page/style.d.ts.map +1 -0
  22. package/app/connectors/provider.d.ts +3 -6
  23. package/app/connectors/provider.d.ts.map +1 -1
  24. package/app/connectors/router.d.ts +3 -2
  25. package/app/connectors/router.d.ts.map +1 -1
  26. package/app/style.d.ts +5 -0
  27. package/app/style.d.ts.map +1 -0
  28. package/components/layouts/sidebar/index.d.ts.map +1 -1
  29. package/components/layouts/sidebar/styles.d.ts.map +1 -1
  30. package/components/ui/bread-crumbs/index.d.ts +6 -2
  31. package/components/ui/bread-crumbs/index.d.ts.map +1 -1
  32. package/components/ui/bread-crumbs/styles.d.ts.map +1 -1
  33. package/components/ui/form/index.d.ts +7 -1
  34. package/components/ui/form/index.d.ts.map +1 -1
  35. package/components/ui/form/styles.d.ts.map +1 -1
  36. package/components/ui/form-fields/index.d.ts +4 -0
  37. package/components/ui/form-fields/index.d.ts.map +1 -1
  38. package/components/ui/form-fields/styles.d.ts.map +1 -1
  39. package/constants/bread-crumbs.d.ts +0 -2
  40. package/constants/bread-crumbs.d.ts.map +1 -1
  41. package/constants/gainsight.d.ts +23 -0
  42. package/constants/gainsight.d.ts.map +1 -0
  43. package/constants/global-constants.d.ts +13 -0
  44. package/constants/global-constants.d.ts.map +1 -0
  45. package/constants/modal.d.ts +1 -1
  46. package/constants/modal.d.ts.map +1 -1
  47. package/constants/router-paths.d.ts +1 -1
  48. package/constants/sidebar.d.ts +3 -0
  49. package/constants/sidebar.d.ts.map +1 -1
  50. package/context/index.d.ts +5 -2
  51. package/context/index.d.ts.map +1 -1
  52. package/context/main-app-provider/index.d.ts +2 -5
  53. package/context/main-app-provider/index.d.ts.map +1 -1
  54. package/features/agent/components/agent-landing/index.d.ts +2 -1
  55. package/features/agent/components/agent-landing/index.d.ts.map +1 -1
  56. package/features/agent/components/agent-landing/styles.d.ts +4 -4
  57. package/features/agent/components/agent-landing/styles.d.ts.map +1 -1
  58. package/features/agent/constants/index.d.ts +2 -0
  59. package/features/agent/constants/index.d.ts.map +1 -1
  60. package/features/api-library/components/api-library/index.d.ts +11 -0
  61. package/features/api-library/components/api-library/index.d.ts.map +1 -0
  62. package/features/api-library/components/api-library/styles.d.ts +5 -0
  63. package/features/api-library/components/api-library/styles.d.ts.map +1 -0
  64. package/features/api-library/components/api-library-skeleton/index.d.ts.map +1 -0
  65. package/features/{connector-library → api-library}/components/api-library-skeleton/styles.d.ts +3 -1
  66. package/features/api-library/components/api-library-skeleton/styles.d.ts.map +1 -0
  67. package/features/api-library/constants/api-library.d.ts +4 -0
  68. package/features/api-library/constants/api-library.d.ts.map +1 -0
  69. package/features/auth/api/index.d.ts +0 -1
  70. package/features/auth/api/index.d.ts.map +1 -1
  71. package/features/auth/components/api-executor/index.d.ts +3 -1
  72. package/features/auth/components/api-executor/index.d.ts.map +1 -1
  73. package/features/auth/components/auth-form/index.d.ts.map +1 -1
  74. package/features/auth/components/auth-form/styles.d.ts +2 -1
  75. package/features/auth/components/auth-form/styles.d.ts.map +1 -1
  76. package/features/auth/components/auth-form-skeleton/index.d.ts +2 -0
  77. package/features/auth/components/auth-form-skeleton/index.d.ts.map +1 -0
  78. package/features/auth/constants/api.d.ts +0 -1
  79. package/features/auth/constants/api.d.ts.map +1 -1
  80. package/features/auth/constants/form-config.d.ts.map +1 -1
  81. package/features/auth/constants/index.d.ts +7 -2
  82. package/features/auth/constants/index.d.ts.map +1 -1
  83. package/features/auth/store/initial-state.d.ts +0 -3
  84. package/features/auth/store/initial-state.d.ts.map +1 -1
  85. package/features/auth/store/selectors.d.ts +0 -3
  86. package/features/auth/store/selectors.d.ts.map +1 -1
  87. package/features/auth/store/slice.d.ts +5 -17
  88. package/features/auth/store/slice.d.ts.map +1 -1
  89. package/features/auth/types/form.d.ts +2 -1
  90. package/features/auth/types/form.d.ts.map +1 -1
  91. package/features/auth/types/request.d.ts +4 -3
  92. package/features/auth/types/request.d.ts.map +1 -1
  93. package/features/auth/utils/index.d.ts.map +1 -1
  94. package/features/connector-library/api/index.d.ts +1 -2
  95. package/features/connector-library/api/index.d.ts.map +1 -1
  96. package/features/connector-library/components/custom-connector-card-item/index.d.ts +11 -0
  97. package/features/connector-library/components/custom-connector-card-item/index.d.ts.map +1 -0
  98. package/features/connector-library/components/custom-connector-card-item/styles.d.ts +11 -0
  99. package/features/connector-library/components/custom-connector-card-item/styles.d.ts.map +1 -0
  100. package/features/connector-library/components/custom-connector-card-list/__tests__/custom-connector-card.test.d.ts.map +1 -0
  101. package/features/connector-library/components/custom-connector-card-list/index.d.ts +3 -0
  102. package/features/connector-library/components/custom-connector-card-list/index.d.ts.map +1 -0
  103. package/features/connector-library/components/custom-connector-card-list/style.d.ts.map +1 -0
  104. package/features/connector-library/components/custom-connector-enabled-modal/index.d.ts +9 -0
  105. package/features/connector-library/components/custom-connector-enabled-modal/index.d.ts.map +1 -0
  106. package/features/connector-library/components/custom-connector-enabled-modal/styles.d.ts +5 -0
  107. package/features/connector-library/components/custom-connector-enabled-modal/styles.d.ts.map +1 -0
  108. package/features/connector-library/constants/api.d.ts +1 -2
  109. package/features/connector-library/constants/api.d.ts.map +1 -1
  110. package/features/connector-library/store/initial-state.d.ts +4 -10
  111. package/features/connector-library/store/initial-state.d.ts.map +1 -1
  112. package/features/connector-library/store/selectors.d.ts +2 -8
  113. package/features/connector-library/store/selectors.d.ts.map +1 -1
  114. package/features/connector-library/store/slice.d.ts +10 -36
  115. package/features/connector-library/store/slice.d.ts.map +1 -1
  116. package/features/request-new-connector/components/request-new-card/index.d.ts.map +1 -1
  117. package/features/request-new-connector/components/request-new-card/styles.d.ts +0 -11
  118. package/features/request-new-connector/components/request-new-card/styles.d.ts.map +1 -1
  119. package/features/request-new-connector/components/request-new-modal/index.d.ts +1 -1
  120. package/features/request-new-connector/components/request-new-modal/index.d.ts.map +1 -1
  121. package/features/request-new-connector/components/request-new-modal/request-panel.d.ts +1 -0
  122. package/features/request-new-connector/components/request-new-modal/request-panel.d.ts.map +1 -1
  123. package/features/request-new-connector/components/request-new-modal/styles.d.ts +3 -1
  124. package/features/request-new-connector/components/request-new-modal/styles.d.ts.map +1 -1
  125. package/features/request-new-connector/components/request-new-modal/submitted-panel.d.ts.map +1 -1
  126. package/features/request-new-connector/constants/index.d.ts +1 -1
  127. package/features/request-new-connector/constants/index.d.ts.map +1 -1
  128. package/features/request-new-connector/types/index.d.ts +2 -2
  129. package/features/request-new-connector/types/index.d.ts.map +1 -1
  130. package/features/template-library/api/index.d.ts +7 -0
  131. package/features/template-library/api/index.d.ts.map +1 -0
  132. package/features/template-library/components/library-card-list/__tests__/library-card-list.test.d.ts.map +1 -0
  133. package/features/template-library/components/library-card-list/index.d.ts.map +1 -0
  134. package/features/{connector-library → template-library}/components/library-card-list/styles.d.ts +0 -2
  135. package/features/template-library/components/library-card-list/styles.d.ts.map +1 -0
  136. package/features/template-library/components/library-card-skeleton/index.d.ts.map +1 -0
  137. package/features/template-library/components/library-card-skeleton/styles.d.ts.map +1 -0
  138. package/features/template-library/components/library-edit-list/index.d.ts.map +1 -0
  139. package/features/template-library/components/library-edit-list/styles.d.ts.map +1 -0
  140. package/features/template-library/constants/api.d.ts +3 -0
  141. package/features/template-library/constants/api.d.ts.map +1 -0
  142. package/features/template-library/constants/content-page.d.ts.map +1 -0
  143. package/features/template-library/store/initial-state.d.ts +15 -0
  144. package/features/template-library/store/initial-state.d.ts.map +1 -0
  145. package/features/template-library/store/selectors.d.ts +9 -0
  146. package/features/template-library/store/selectors.d.ts.map +1 -0
  147. package/features/template-library/store/slice.d.ts +41 -0
  148. package/features/template-library/store/slice.d.ts.map +1 -0
  149. package/features/toast-message/constants/toast.d.ts +2 -0
  150. package/features/toast-message/constants/toast.d.ts.map +1 -1
  151. package/features/toast-message/showMessage.d.ts.map +1 -1
  152. package/gainsight-7AZqfBvZ.js +25 -0
  153. package/hooks-CjAK86gy.js +6 -0
  154. package/index-BAHDqKss.js +29 -0
  155. package/index-BluFU4Qp.js +81 -0
  156. package/{index-m1nx1YPE.js → index-BnVEsSdV.js} +1712 -1532
  157. package/index-BqGsuBlL.js +31966 -0
  158. package/index-DKo2NU-Y.js +104 -0
  159. package/{index-CQYnmtXy.js → index-Dt3uzcNe.js} +1779 -1443
  160. package/index-iNlSCq_d.js +190 -0
  161. package/index.es.js +5 -5
  162. package/index.umd.js +1497 -476
  163. package/main.d.ts +1 -0
  164. package/main.d.ts.map +1 -1
  165. package/package.json +1 -1
  166. package/selectors-BZXXKPzK.js +9 -0
  167. package/showMessage-CQ6TNMXe.js +2648 -0
  168. package/store/hooks.d.ts +2 -0
  169. package/store/hooks.d.ts.map +1 -1
  170. package/store/index.d.ts +4 -0
  171. package/store/index.d.ts.map +1 -1
  172. package/store/request-connector-api/initial-state.d.ts +1 -1
  173. package/store/request-connector-api/slice.d.ts +1 -1
  174. package/testing/mocks/handlers/auth.d.ts.map +1 -1
  175. package/testing/mocks/handlers/connector-template.d.ts +1 -0
  176. package/testing/mocks/handlers/connector-template.d.ts.map +1 -1
  177. package/testing/setup-store.d.ts +2 -0
  178. package/testing/setup-store.d.ts.map +1 -1
  179. package/types/common.d.ts +4 -0
  180. package/types/common.d.ts.map +1 -1
  181. package/types/connector.d.ts +10 -6
  182. package/types/connector.d.ts.map +1 -1
  183. package/types/router.d.ts +18 -0
  184. package/types/router.d.ts.map +1 -1
  185. package/utils/index.d.ts +12 -0
  186. package/utils/index.d.ts.map +1 -1
  187. package/app/connectors/pages/settings/connector-config/__tests__/connector-config.test.d.ts.map +0 -1
  188. package/app/connectors/pages/settings/connector-config/index.d.ts.map +0 -1
  189. package/app/connectors/pages/settings/connector-config/style.d.ts.map +0 -1
  190. package/features/auth/utils/type-guards.d.ts +0 -8
  191. package/features/auth/utils/type-guards.d.ts.map +0 -1
  192. package/features/connector-library/components/api-library/index.d.ts +0 -7
  193. package/features/connector-library/components/api-library/index.d.ts.map +0 -1
  194. package/features/connector-library/components/api-library/styles.d.ts +0 -4
  195. package/features/connector-library/components/api-library/styles.d.ts.map +0 -1
  196. package/features/connector-library/components/api-library-skeleton/index.d.ts.map +0 -1
  197. package/features/connector-library/components/api-library-skeleton/styles.d.ts.map +0 -1
  198. package/features/connector-library/components/connector-enabled-modal/index.d.ts +0 -9
  199. package/features/connector-library/components/connector-enabled-modal/index.d.ts.map +0 -1
  200. package/features/connector-library/components/connector-enabled-modal/styles.d.ts +0 -4
  201. package/features/connector-library/components/connector-enabled-modal/styles.d.ts.map +0 -1
  202. package/features/connector-library/components/library-card-list/__tests__/library-card-list.test.d.ts.map +0 -1
  203. package/features/connector-library/components/library-card-list/index.d.ts.map +0 -1
  204. package/features/connector-library/components/library-card-list/styles.d.ts.map +0 -1
  205. package/features/connector-library/components/library-card-skeleton/index.d.ts.map +0 -1
  206. package/features/connector-library/components/library-card-skeleton/styles.d.ts.map +0 -1
  207. package/features/connector-library/components/library-edit-list/index.d.ts.map +0 -1
  208. package/features/connector-library/components/library-edit-list/styles.d.ts.map +0 -1
  209. package/features/connector-library/constants/api-library.d.ts +0 -3
  210. package/features/connector-library/constants/api-library.d.ts.map +0 -1
  211. package/features/connector-library/constants/content-page.d.ts.map +0 -1
  212. package/features/connector-library/types/connector.d.ts +0 -13
  213. package/features/connector-library/types/connector.d.ts.map +0 -1
  214. package/features/request-new-connector/components/custom-connector-card/__tests__/custom-connector-card.test.d.ts.map +0 -1
  215. package/features/request-new-connector/components/custom-connector-card/index.d.ts +0 -10
  216. package/features/request-new-connector/components/custom-connector-card/index.d.ts.map +0 -1
  217. package/features/request-new-connector/components/custom-connector-card/style.d.ts.map +0 -1
  218. package/index-B4vTJgTz.js +0 -66
  219. package/index-BD6d8j8c.js +0 -68
  220. package/index-EHBDsMzm.js +0 -67
  221. package/index-X3arshLk.js +0 -711
  222. package/index-sfSOXkkP.js +0 -30265
  223. package/styled-ui-components-D4lUYZ75.js +0 -2253
  224. /package/app/connectors/pages/{settings/connector-config → api-view}/__tests__/connector-config.test.d.ts +0 -0
  225. /package/app/connectors/pages/{settings/connector-config → api-view}/index.d.ts +0 -0
  226. /package/app/connectors/pages/{settings/connector-config → api-view}/style.d.ts +0 -0
  227. /package/features/{connector-library → api-library}/components/api-library-skeleton/index.d.ts +0 -0
  228. /package/features/{request-new-connector/components/custom-connector-card → connector-library/components/custom-connector-card-list}/__tests__/custom-connector-card.test.d.ts +0 -0
  229. /package/features/{request-new-connector/components/custom-connector-card → connector-library/components/custom-connector-card-list}/style.d.ts +0 -0
  230. /package/features/{connector-library → template-library}/components/library-card-list/__tests__/library-card-list.test.d.ts +0 -0
  231. /package/features/{connector-library → template-library}/components/library-card-list/index.d.ts +0 -0
  232. /package/features/{connector-library → template-library}/components/library-card-skeleton/index.d.ts +0 -0
  233. /package/features/{connector-library → template-library}/components/library-card-skeleton/styles.d.ts +0 -0
  234. /package/features/{connector-library → template-library}/components/library-edit-list/index.d.ts +0 -0
  235. /package/features/{connector-library → template-library}/components/library-edit-list/styles.d.ts +0 -0
  236. /package/features/{connector-library → template-library}/constants/content-page.d.ts +0 -0
package/store/hooks.d.ts CHANGED
@@ -1,12 +1,14 @@
1
1
  export declare const useAppDispatch: import('react-redux').UseDispatch<import('redux-thunk').ThunkDispatch<{
2
2
  counter: import('./counter/initial-state').CounterState;
3
3
  connectorLirary: import('../features/connector-library/store/initial-state').ConnectorState;
4
+ templateLibrary: import('../features/template-library/store/initial-state').ConnectorState;
4
5
  auth: import('../features/auth/store/initial-state').AuthState;
5
6
  requestConnectorApi: import('./request-connector-api/initial-state').RequestState;
6
7
  }, undefined, import('redux').UnknownAction> & import('redux').Dispatch<import('redux').UnknownAction>>;
7
8
  export declare const useAppSelector: import('react-redux').UseSelector<{
8
9
  counter: import('./counter/initial-state').CounterState;
9
10
  connectorLirary: import('../features/connector-library/store/initial-state').ConnectorState;
11
+ templateLibrary: import('../features/template-library/store/initial-state').ConnectorState;
10
12
  auth: import('../features/auth/store/initial-state').AuthState;
11
13
  requestConnectorApi: import('./request-connector-api/initial-state').RequestState;
12
14
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/store/hooks.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,cAAc;;;;;uGAAuC,CAAC;AACnE,eAAO,MAAM,cAAc;;;;;EAAqC,CAAC"}
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/store/hooks.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,cAAc;;;;;;uGAAuC,CAAC;AACnE,eAAO,MAAM,cAAc;;;;;;EAAqC,CAAC"}
package/store/index.d.ts CHANGED
@@ -2,23 +2,27 @@ import { Action, ThunkAction } from '@reduxjs/toolkit';
2
2
  export declare const rootReducer: import('redux').Reducer<{
3
3
  counter: import('./counter/initial-state').CounterState;
4
4
  connectorLirary: import('../features/connector-library/store/initial-state').ConnectorState;
5
+ templateLibrary: import('../features/template-library/store/initial-state').ConnectorState;
5
6
  auth: import('../features/auth/store/initial-state').AuthState;
6
7
  requestConnectorApi: import('./request-connector-api/initial-state').RequestState;
7
8
  }, import('redux').UnknownAction, Partial<{
8
9
  counter: import('./counter/initial-state').CounterState | undefined;
9
10
  connectorLirary: import('../features/connector-library/store/initial-state').ConnectorState | undefined;
11
+ templateLibrary: import('../features/template-library/store/initial-state').ConnectorState | undefined;
10
12
  auth: import('../features/auth/store/initial-state').AuthState | undefined;
11
13
  requestConnectorApi: import('./request-connector-api/initial-state').RequestState | undefined;
12
14
  }>>;
13
15
  export declare const store: import('@reduxjs/toolkit').EnhancedStore<{
14
16
  counter: import('./counter/initial-state').CounterState;
15
17
  connectorLirary: import('../features/connector-library/store/initial-state').ConnectorState;
18
+ templateLibrary: import('../features/template-library/store/initial-state').ConnectorState;
16
19
  auth: import('../features/auth/store/initial-state').AuthState;
17
20
  requestConnectorApi: import('./request-connector-api/initial-state').RequestState;
18
21
  }, import('redux').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
19
22
  dispatch: import('redux-thunk').ThunkDispatch<{
20
23
  counter: import('./counter/initial-state').CounterState;
21
24
  connectorLirary: import('../features/connector-library/store/initial-state').ConnectorState;
25
+ templateLibrary: import('../features/template-library/store/initial-state').ConnectorState;
22
26
  auth: import('../features/auth/store/initial-state').AuthState;
23
27
  requestConnectorApi: import('./request-connector-api/initial-state').RequestState;
24
28
  }, undefined, import('redux').UnknownAction>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE5D,eAAO,MAAM,WAAW;;;;;;;;;;GAKtB,CAAC;AAEH,eAAO,MAAM,KAAK;;;;;;;;;;;;oCAGhB,CAAC;AAGH,MAAM,MAAM,QAAQ,GAAG,OAAO,KAAK,CAAC;AACpC,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;AAEzD,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;AAE/C,MAAM,MAAM,QAAQ,CAAC,eAAe,GAAG,IAAI,IAAI,WAAW,CAAC,eAAe,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE5D,eAAO,MAAM,WAAW;;;;;;;;;;;;GAMtB,CAAC;AAEH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;oCAGhB,CAAC;AAGH,MAAM,MAAM,QAAQ,GAAG,OAAO,KAAK,CAAC;AACpC,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;AAEzD,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;AAE/C,MAAM,MAAM,QAAQ,CAAC,eAAe,GAAG,IAAI,IAAI,WAAW,CAAC,eAAe,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC"}
@@ -3,7 +3,7 @@ import { ApiStatus } from '../../types/api';
3
3
  export interface RequestState {
4
4
  connectorRequestsApiStatus: ApiStatus;
5
5
  requestableConnectors: Array<IRequestableConnector> | null;
6
- requestableAPIs: Array<IRequestableAPI> | null;
6
+ requestableApis: Array<IRequestableAPI> | null;
7
7
  }
8
8
  export declare const initialState: RequestState;
9
9
  //# sourceMappingURL=initial-state.d.ts.map
@@ -1,7 +1,7 @@
1
1
  export declare const requestConnectorApiSlice: import('@reduxjs/toolkit').Slice<import('./initial-state').RequestState, {}, "connectorLibrary", "connectorLibrary", import('@reduxjs/toolkit').SliceSelectors<import('./initial-state').RequestState>>;
2
2
  declare const fetchConnectorRequests: import('@reduxjs/toolkit').AsyncThunk<{
3
3
  requestableConnectors: import('../../features/request-new-connector/types').IRequestableConnector[];
4
- requestableAPIs: import('../../features/request-new-connector/types').IRequestableAPI[];
4
+ requestableApis: any;
5
5
  }, void, {
6
6
  state?: unknown;
7
7
  dispatch?: import('redux-thunk').ThunkDispatch<unknown, unknown, import('redux').UnknownAction>;
@@ -1 +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
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/auth.ts"],"names":[],"mappings":"AAgEA,eAAO,MAAM,QAAQ,6BAA6D,CAAC"}
@@ -5,6 +5,7 @@ export declare const connectorsList: {
5
5
  name: string;
6
6
  isAuthenticated: boolean;
7
7
  isEnabled: boolean;
8
+ type: string;
8
9
  }[];
9
10
  export declare const handlers: import('msw').HttpHandler[];
10
11
  //# 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,cAAc;;;;;;;GAAyB,CAAC;AA0BrD,eAAO,MAAM,QAAQ,6BAAwF,CAAC"}
1
+ {"version":3,"file":"connector-template.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/connector-template.ts"],"names":[],"mappings":"AA6FA,eAAO,MAAM,cAAc;;;;;;;;GAAyB,CAAC;AA2BrD,eAAO,MAAM,QAAQ,6BAAwF,CAAC"}
@@ -2,12 +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
+ templateLibrary: import('../features/template-library/store/initial-state').ConnectorState;
5
6
  auth: import('../features/auth/store/initial-state').AuthState;
6
7
  requestConnectorApi: import('../store/request-connector-api/initial-state').RequestState;
7
8
  }, import('redux').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
8
9
  dispatch: import('redux-thunk').ThunkDispatch<{
9
10
  counter: import('../store/counter/initial-state').CounterState;
10
11
  connectorLirary: import('../features/connector-library/store/initial-state').ConnectorState;
12
+ templateLibrary: import('../features/template-library/store/initial-state').ConnectorState;
11
13
  auth: import('../features/auth/store/initial-state').AuthState;
12
14
  requestConnectorApi: import('../store/request-connector-api/initial-state').RequestState;
13
15
  }, undefined, import('redux').UnknownAction>;
@@ -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"}
package/types/common.d.ts CHANGED
@@ -1,2 +1,6 @@
1
1
  export type AllKeys<T> = T extends any ? keyof T : never;
2
+ export interface IBreadCrumbItem {
3
+ name: string;
4
+ route?: string;
5
+ }
2
6
  //# sourceMappingURL=common.d.ts.map
@@ -1 +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"}
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;AACzD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -43,18 +43,22 @@ export interface IIntegrationPanel {
43
43
  position: string;
44
44
  cards: Array<ICard>;
45
45
  }
46
+ export interface IConnectorVariable {
47
+ baseUrl?: string;
48
+ }
46
49
  export interface IConnectorDetails {
47
50
  id: string;
48
51
  type: string;
49
- authDetails: IAuthDetails;
50
- authenticated: boolean;
51
- enabled: boolean;
52
+ authDetails?: IAuthDetails;
53
+ isAuthenticated?: boolean;
54
+ isEnabled?: boolean;
52
55
  name: string;
53
56
  description: string;
54
- feature_key: string;
55
- apiList: Array<IAPI>;
56
- integrationPanel: IIntegrationPanel;
57
+ apiList?: Array<IAPI>;
58
+ integrationPanel?: IIntegrationPanel;
57
59
  variables?: IConnectorVariable;
58
60
  redirectUrl?: string;
61
+ baseUrlRequired?: boolean;
62
+ logo: string | null;
59
63
  }
60
64
  //# sourceMappingURL=connector.d.ts.map
@@ -1 +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"}
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,kBAAkB;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IACtB,gBAAgB,CAAC,EAAE,iBAAiB,CAAC;IACrC,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB"}
package/types/router.d.ts CHANGED
@@ -1,6 +1,24 @@
1
+ import { ReactNode } from 'react';
1
2
  import { IBaseUrls } from '../context';
3
+ export interface IAvailableFtr {
4
+ [key: string]: boolean;
5
+ }
6
+ export interface ISendTrackingEventData {
7
+ [key: string]: any;
8
+ }
9
+ export interface IExtraParams {
10
+ sendTrackingEvent?: (event: string, data?: ISendTrackingEventData) => void;
11
+ }
12
+ export interface IAppProviderProps {
13
+ children: ReactNode;
14
+ baseUrls?: IBaseUrls;
15
+ availableFeatures?: IAvailableFtr;
16
+ extraParams?: IExtraParams;
17
+ }
2
18
  export interface IAppRouter {
3
19
  basename?: string;
4
20
  baseUrls?: IBaseUrls;
21
+ availableFeatures?: IAvailableFtr;
22
+ extraParams?: IExtraParams;
5
23
  }
6
24
  //# sourceMappingURL=router.d.ts.map
@@ -1 +1 @@
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,UAAU;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
1
+ {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/types/router.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,WAAW,aAAa;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IAErC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,sBAAsB,KAAK,IAAI,CAAC;CAC5E;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,iBAAiB,CAAC,EAAE,aAAa,CAAC;IAClC,WAAW,CAAC,EAAE,YAAY,CAAC;CAC5B;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,iBAAiB,CAAC,EAAE,aAAa,CAAC;IAClC,WAAW,CAAC,EAAE,YAAY,CAAC;CAC5B"}
package/utils/index.d.ts CHANGED
@@ -1,7 +1,19 @@
1
1
  import { FormFieldProps, IFormConfig } from '../types/form';
2
+ import { IAvailableFtr } from '../types/router';
2
3
  export declare function listToDict<T>(list: T[], idGen: (arg: T) => string): {
3
4
  [k: string]: T;
4
5
  };
5
6
  export declare function getIdList<T>(list: T[], idGen: (arg: T) => string): string[];
6
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;
18
+ export declare const copyText: (copyText: string, callback?: (isFailed: boolean) => void) => Promise<void>;
7
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3D,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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAO3D,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;AAoBF,eAAO,MAAM,QAAQ,aAAoB,MAAM,aAAa,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,kBAWtF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"connector-config.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/app/connectors/pages/settings/connector-config/__tests__/connector-config.test.tsx"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/app/connectors/pages/settings/connector-config/index.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,eAAe,+CAoB3B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../../src/app/connectors/pages/settings/connector-config/style.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEvE,eAAO,MAAM,qBAAqB,EAAE,eAAe,CAAC,UAAU,CAG7D,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,eAAe,CAAC,eAAe,CAQ3D,CAAC"}
@@ -1,8 +0,0 @@
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
@@ -1 +0,0 @@
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,7 +0,0 @@
1
- interface IProps {
2
- isConfigSettingsPage?: boolean;
3
- currentConnector?: string | null | undefined;
4
- }
5
- export declare const APILibrary: ({ isConfigSettingsPage, currentConnector }: IProps) => import("react/jsx-runtime").JSX.Element | null;
6
- export {};
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-library/components/api-library/index.tsx"],"names":[],"mappings":"AAiBA,UAAU,MAAM;IACd,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC9C;AAED,eAAO,MAAM,UAAU,+CAAgD,MAAM,mDAmD5E,CAAC"}
@@ -1,4 +0,0 @@
1
- import { StackProps } from '@hiver/hiver-ui-kit';
2
- import { StyledComponent } from '@emotion/styled';
3
- export declare const APILibraryWrapper: StyledComponent<StackProps>;
4
- //# sourceMappingURL=styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-library/components/api-library/styles.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAU,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,eAAO,MAAM,iBAAiB,EAAE,eAAe,CAAC,UAAU,CAEzD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-library/components/api-library-skeleton/index.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,+CAe9B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-library/components/api-library-skeleton/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,UAAU,CAQvD,CAAC"}
@@ -1,9 +0,0 @@
1
- import { default as React } from 'react';
2
- interface IConnectorEnabledModalProps {
3
- shown: boolean;
4
- connectorName: string;
5
- setShown: (value: boolean) => void;
6
- }
7
- export declare const ConnectorEnabledModal: React.FC<IConnectorEnabledModalProps>;
8
- export {};
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-library/components/connector-enabled-modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,UAAU,2BAA2B;IACnC,KAAK,EAAE,OAAO,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACpC;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAmCvE,CAAC"}
@@ -1,4 +0,0 @@
1
- import { BoxProps } from '@hiver/hiver-ui-kit';
2
- import { StyledComponent } from '@emotion/styled';
3
- export declare const ImgWrapper: StyledComponent<BoxProps>;
4
- //# sourceMappingURL=styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-library/components/connector-enabled-modal/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,QAAQ,EAAU,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,QAAQ,CAKhD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"library-card-list.test.d.ts","sourceRoot":"","sources":["../../../../../../src/features/connector-library/components/library-card-list/__tests__/library-card-list.test.tsx"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-library/components/library-card-list/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAyB,MAAM,OAAO,CAAC;AAkBlD,eAAO,MAAM,eAAe,EAAE,EA4C7B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-library/components/library-card-list/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhF,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,eAAe,CAGxD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,eAAe,CAExD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,eAAe,CAAC,eAAe,CAE/D,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,eAAe,CAAC,QAAQ,CAMxD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,QAAQ,CAWjD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,SAAS,CAUtD,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,eAAe,CAAC,eAAe,CASnE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-library/components/library-card-skeleton/index.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,+CAsB/B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-library/components/library-card-skeleton/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,aAAa,CAO1D,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-library/components/library-edit-list/index.tsx"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-library/components/library-edit-list/styles.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- export declare const API_LIB_TITLE = "APIs in {{connector}} connector";
2
- export declare const API_LIB_DESCRIPTION = "Following are the list of APIs that you will find in this connector";
3
- //# sourceMappingURL=api-library.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-library.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/constants/api-library.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,oCAAoC,CAAC;AAC/D,eAAO,MAAM,mBAAmB,wEAAwE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"content-page.d.ts","sourceRoot":"","sources":["../../../../src/features/connector-library/constants/content-page.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,EAAE,MAA4B,CAAC;AAC7D,eAAO,MAAM,sBAAsB,EAAE,MACsD,CAAC;AAC5F,eAAO,MAAM,OAAO,EAAE,MAAkB,CAAC;AACzC,eAAO,MAAM,mBAAmB,EAAE,MAC+F,CAAC"}
@@ -1,13 +0,0 @@
1
- import { ConnectorId } from '../../../types/connector';
2
- export interface IConnectorTemplate {
3
- id: ConnectorId;
4
- description: string;
5
- logo: string | null;
6
- name: string;
7
- authType?: string;
8
- }
9
- export interface IConnectorStruct extends Omit<IConnectorTemplate, 'authType'> {
10
- isEnabled: boolean;
11
- isAuthenticated: boolean;
12
- }
13
- //# sourceMappingURL=connector.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"custom-connector-card.test.d.ts","sourceRoot":"","sources":["../../../../../../src/features/request-new-connector/components/custom-connector-card/__tests__/custom-connector-card.test.tsx"],"names":[],"mappings":""}
@@ -1,10 +0,0 @@
1
- import { FC } from 'react';
2
- interface Iprops {
3
- setModal?: (val: boolean) => void;
4
- setConnectorId?: (val: string) => void;
5
- isConfigSettingsPage?: boolean;
6
- currentConnector?: string | null | undefined;
7
- }
8
- export declare const CustomConnectorCard: FC<Iprops>;
9
- export {};
10
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../../src/features/request-new-connector/components/custom-connector-card/style.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAE3G,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,QAAQ,CA8CjD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,eAAe,CAAC,eAAe,CAI1D,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,eAAe,CAAC,UAAU,CAGtD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,eAAe,CAAC,WAAW,CAErD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,eAAe,CAAC,UAAU,CAQrD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,eAAe,CAAC,QAAQ,CA0BhD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,WAAW,CAIxD,CAAC"}
package/index-B4vTJgTz.js DELETED
@@ -1,66 +0,0 @@
1
- import { s as o, B as n, T as g, M as f, u, j as t, C as b, S as m, a as C, O as j } from "./index-sfSOXkkP.js";
2
- import { useContext as S } from "react";
3
- const B = o(n)`
4
- box-sizing: border-box;
5
- background-color: #ffffff;
6
- position: fixed;
7
- height: 100%;
8
- z-index: 2;
9
- `, O = o(n)`
10
- padding-top: 17px;
11
- box-sizing: border-box;
12
- width: 178px;
13
- border-right: 1px solid rgba(214, 221, 232, 1);
14
- height: 100%;
15
- `, v = o(g)`
16
- font-size: 14px;
17
- line-height: 24px;
18
- `, k = o(n)`
19
- display: flex;
20
- flex-direction: column;
21
- gap: 8px;
22
- margin-top: 29px;
23
- & div {
24
- display: block;
25
- height: 32px;
26
- width: 162px;
27
- padding: 4px 12px;
28
- text-decoration: none;
29
- color: #6f7c90;
30
- font-size: 13px;
31
- line-height: 24px;
32
- cursor: pointer;
33
- &.active {
34
- font-size: 14px;
35
- background-color: rgba(246, 248, 252, 1);
36
- border-radius: 4px;
37
- color: #343c45;
38
- }
39
- }
40
- `, z = ({ sidebarOptions: s = [] }) => {
41
- const { currentSideBar: a, setCurrentSideBar: c } = S(f), d = u(), p = (i, e, r) => {
42
- i.stopPropagation(), c(r), d(e);
43
- }, x = () => /* @__PURE__ */ t.jsx(k, { children: s.map(({ id: i, value: e, route: r }) => {
44
- const h = a === e;
45
- return /* @__PURE__ */ t.jsx(
46
- "div",
47
- {
48
- "data-testid": i,
49
- className: h ? "active" : "",
50
- onClick: (l) => p(l, r, e),
51
- children: e
52
- },
53
- i
54
- );
55
- }) });
56
- return /* @__PURE__ */ t.jsx(B, { "data-testid": "sideBarParent", children: /* @__PURE__ */ t.jsxs(O, { children: [
57
- /* @__PURE__ */ t.jsx(v, { variant: "h3", "data-testid": "custom-connector-heading", children: b }),
58
- x()
59
- ] }) });
60
- }, y = () => /* @__PURE__ */ t.jsxs(m, { direction: "row", alignItems: "stretch", sx: { minHeight: "100vh" }, children: [
61
- /* @__PURE__ */ t.jsx(z, { sidebarOptions: C }),
62
- /* @__PURE__ */ t.jsx(j, {})
63
- ] });
64
- export {
65
- y as ConnectorView
66
- };
package/index-BD6d8j8c.js DELETED
@@ -1,68 +0,0 @@
1
- import { s as c, S as e, I as f, L as A, j as t, a3 as I, Q as r, T as p, U as S, W as m, u as b } from "./index-sfSOXkkP.js";
2
- import { m as v } from "./index-X3arshLk.js";
3
- import { C as h, d as w, a as y, e as T, f as P, g as k, T as B } from "./styled-ui-components-D4lUYZ75.js";
4
- import { useRef as E } from "react";
5
- const M = c(e)`
6
- margin: 43px 0 0 229px;
7
- position: relative;
8
- `, Z = c(f)`
9
- position: absolute;
10
- left: -30px;
11
- img {
12
- width: 15px;
13
- height: 15px;
14
- margin: 3.5px 2.5px;
15
- }
16
- `, _ = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.86421%2015.9708C9.20287%2016.3941%209.13423%2017.0118%208.71091%2017.3505C8.28758%2017.6891%207.66987%2017.6205%207.33121%2017.1972L8.86421%2015.9708ZM2.94434%2010.1423L2.17784%2010.7555C1.89104%2010.397%201.89104%209.88757%202.17784%209.52907L2.94434%2010.1423ZM7.33121%203.08735C7.66987%202.66403%208.28758%202.59539%208.71091%202.93405C9.13423%203.27271%209.20287%203.89042%208.86421%204.31375L7.33121%203.08735ZM3.31243%2011.1852C2.77031%2011.1852%202.33084%2010.7457%202.33084%2010.2036C2.33084%209.66149%202.77031%209.22201%203.31243%209.22201L3.31243%2011.1852ZM17.0548%209.22201C17.5969%209.22201%2018.0364%209.66149%2018.0364%2010.2036C18.0364%2010.7457%2017.5969%2011.1852%2017.0548%2011.1852V9.22201ZM7.33121%2017.1972L2.17784%2010.7555L3.71083%209.52907L8.86421%2015.9708L7.33121%2017.1972ZM2.17784%209.52907L7.33121%203.08735L8.86421%204.31375L3.71083%2010.7555L2.17784%209.52907ZM3.31243%209.22201L17.0548%209.22201V11.1852L3.31243%2011.1852L3.31243%209.22201Z'%20fill='%236F7C90'/%3e%3c/svg%3e", R = c(e)`
17
- margin-left: 32px;
18
- `, N = "APIs in {{connector}} connector", W = "Following are the list of APIs that you will find in this connector", D = c(e)`
19
- width: 100%;
20
- height: 72px;
21
- gap: 12px;
22
- padding: 16px;
23
- border: 1px solid ${A.palette.gray.gray6};
24
- border-radius: 8px;
25
- box-sizing: border-box;
26
- `, O = () => /* @__PURE__ */ t.jsx(e, { gap: "12px", children: Array(3).fill(0).map((n, s) => /* @__PURE__ */ t.jsxs(D, { children: [
27
- /* @__PURE__ */ t.jsx(h, { variant: "rounded", width: "40%", height: "10px", animation: "wave" }),
28
- /* @__PURE__ */ t.jsx(h, { variant: "rounded", width: "80%", height: "10px", animation: "wave" })
29
- ] }, s)) }), U = ({ isConfigSettingsPage: n, currentConnector: s }) => {
30
- var g;
31
- const { pathname: l } = I(), i = r(w), L = l === m.CARD_SETTINGS, a = r(y), o = E(), x = r(T), u = r(P);
32
- if (!n)
33
- return null;
34
- n && s && (o.current = L && (a != null && a[s]) ? a == null ? void 0 : a[s] : i == null ? void 0 : i[s]);
35
- const C = (x == null ? void 0 : x.apiList) ?? [], j = N.replace("{{connector}}", ((g = o == null ? void 0 : o.current) == null ? void 0 : g.name) ?? "");
36
- return /* @__PURE__ */ t.jsxs(R, { children: [
37
- /* @__PURE__ */ t.jsx(p, { variant: "h2", children: j }),
38
- /* @__PURE__ */ t.jsx(p, { variant: "body1", marginBottom: "20px", children: W }),
39
- u === S.LOADING ? /* @__PURE__ */ t.jsx(O, {}) : /* @__PURE__ */ t.jsx(e, { gap: "12px", children: C.map((d) => /* @__PURE__ */ t.jsxs(
40
- e,
41
- {
42
- width: "100%",
43
- height: "72px",
44
- border: "1px solid #E0E0E0",
45
- borderRadius: "5px",
46
- padding: "12px",
47
- gap: "10px",
48
- children: [
49
- /* @__PURE__ */ t.jsx(p, { variant: "body1_medium", children: d.name }),
50
- /* @__PURE__ */ t.jsx(p, { variant: "body2", children: d.description })
51
- ]
52
- },
53
- d.keyName
54
- )) })
55
- ] });
56
- }, H = () => {
57
- const n = b(), s = r(k), l = (i) => {
58
- i == null || i.stopPropagation(), n(m.BASEPATH);
59
- };
60
- return /* @__PURE__ */ t.jsxs(M, { children: [
61
- /* @__PURE__ */ t.jsx(B, { title: "Back", placement: "bottom", children: /* @__PURE__ */ t.jsx(Z, { onClick: l, children: /* @__PURE__ */ t.jsx("img", { src: _ }) }) }),
62
- /* @__PURE__ */ t.jsx(v, { isConfigSettingsPage: !0, currentConnector: s }),
63
- /* @__PURE__ */ t.jsx(U, { isConfigSettingsPage: !0, currentConnector: s })
64
- ] });
65
- };
66
- export {
67
- H as ConnectorConfig
68
- };