@finos/legend-application-marketplace 0.0.19 → 0.0.21

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 (248) hide show
  1. package/lib/__lib__/LegendMarketplaceNavigation.d.ts +3 -0
  2. package/lib/__lib__/LegendMarketplaceNavigation.d.ts.map +1 -1
  3. package/lib/__lib__/LegendMarketplaceNavigation.js +11 -1
  4. package/lib/__lib__/LegendMarketplaceNavigation.js.map +1 -1
  5. package/lib/app.css +2 -2
  6. package/lib/app.css.map +1 -1
  7. package/lib/application/LegendMarketplaceApplicationConfig.d.ts +10 -0
  8. package/lib/application/LegendMarketplaceApplicationConfig.d.ts.map +1 -1
  9. package/lib/application/LegendMarketplaceApplicationConfig.js +10 -0
  10. package/lib/application/LegendMarketplaceApplicationConfig.js.map +1 -1
  11. package/lib/application/LegendMarketplaceFrameworkProvider.d.ts.map +1 -1
  12. package/lib/application/LegendMarketplaceFrameworkProvider.js +2 -2
  13. package/lib/application/LegendMarketplaceFrameworkProvider.js.map +1 -1
  14. package/lib/application/LegendMarketplaceWebApplication.d.ts.map +1 -1
  15. package/lib/application/LegendMarketplaceWebApplication.js +18 -8
  16. package/lib/application/LegendMarketplaceWebApplication.js.map +1 -1
  17. package/lib/components/DataProductCard/LegendMarketplaceDataProductSearchCard.d.ts.map +1 -1
  18. package/lib/components/DataProductCard/LegendMarketplaceDataProductSearchCard.js +6 -3
  19. package/lib/components/DataProductCard/LegendMarketplaceDataProductSearchCard.js.map +1 -1
  20. package/lib/components/DataProductCard/LegendMarketplaceLightDataProductCard.d.ts.map +1 -1
  21. package/lib/components/DataProductCard/LegendMarketplaceLightDataProductCard.js +9 -6
  22. package/lib/components/DataProductCard/LegendMarketplaceLightDataProductCard.js.map +1 -1
  23. package/lib/components/{Lakehouse/LakehouseHeader.d.ts → Header/MarketplaceLakehouseHeader.d.ts} +2 -2
  24. package/lib/components/Header/MarketplaceLakehouseHeader.d.ts.map +1 -0
  25. package/lib/components/{Lakehouse/LakehouseHeader.js → Header/MarketplaceLakehouseHeader.js} +8 -4
  26. package/lib/components/Header/MarketplaceLakehouseHeader.js.map +1 -0
  27. package/lib/components/MarketplaceCard/LegendMarketplaceCard.d.ts +25 -0
  28. package/lib/components/MarketplaceCard/LegendMarketplaceCard.d.ts.map +1 -0
  29. package/lib/components/MarketplaceCard/LegendMarketplaceCard.js +32 -0
  30. package/lib/components/MarketplaceCard/LegendMarketplaceCard.js.map +1 -0
  31. package/lib/components/ProviderCard/LegendMarketplaceProviderCard.d.ts.map +1 -1
  32. package/lib/components/ProviderCard/LegendMarketplaceProviderCard.js +6 -3
  33. package/lib/components/ProviderCard/LegendMarketplaceProviderCard.js.map +1 -1
  34. package/lib/components/__test-utils__/LegendMarketplaceStoreTestUtils.d.ts.map +1 -1
  35. package/lib/components/__test-utils__/LegendMarketplaceStoreTestUtils.js +3 -6
  36. package/lib/components/__test-utils__/LegendMarketplaceStoreTestUtils.js.map +1 -1
  37. package/lib/index.css +2 -2
  38. package/lib/index.css.map +1 -1
  39. package/lib/package.json +2 -1
  40. package/lib/pages/Home/LegendMarketplaceHome.d.ts.map +1 -1
  41. package/lib/pages/Home/LegendMarketplaceHome.js +4 -4
  42. package/lib/pages/Home/LegendMarketplaceHome.js.map +1 -1
  43. package/lib/pages/Lakehouse/DataProductDataAccess.d.ts.map +1 -0
  44. package/lib/{components → pages}/Lakehouse/DataProductDataAccess.js +41 -9
  45. package/lib/pages/Lakehouse/DataProductDataAccess.js.map +1 -0
  46. package/lib/pages/Lakehouse/DataProductHolder.d.ts.map +1 -0
  47. package/lib/pages/Lakehouse/DataProductHolder.js.map +1 -0
  48. package/lib/pages/Lakehouse/DataProductViewer.d.ts.map +1 -0
  49. package/lib/pages/Lakehouse/DataProductViewer.js.map +1 -0
  50. package/lib/pages/Lakehouse/DataProductViewerActivityBar.d.ts.map +1 -0
  51. package/lib/pages/Lakehouse/DataProductViewerActivityBar.js.map +1 -0
  52. package/lib/pages/Lakehouse/DataProductWiki.d.ts.map +1 -0
  53. package/lib/pages/Lakehouse/DataProductWiki.js.map +1 -0
  54. package/lib/pages/Lakehouse/LakehouseDataProduct.d.ts.map +1 -0
  55. package/lib/{components → pages}/Lakehouse/LakehouseDataProduct.js +3 -3
  56. package/lib/pages/Lakehouse/LakehouseDataProduct.js.map +1 -0
  57. package/lib/{components/Lakehouse/LakehouseMarketplace.d.ts → pages/Lakehouse/MarketplaceLakehouseHome.d.ts} +2 -2
  58. package/lib/pages/Lakehouse/MarketplaceLakehouseHome.d.ts.map +1 -0
  59. package/lib/pages/Lakehouse/MarketplaceLakehouseHome.js +54 -0
  60. package/lib/pages/Lakehouse/MarketplaceLakehouseHome.js.map +1 -0
  61. package/lib/{components/Lakehouse/MarketLakehouseStoreProvider.d.ts → pages/Lakehouse/MarketplaceLakehouseStoreProvider.d.ts} +1 -1
  62. package/lib/pages/Lakehouse/MarketplaceLakehouseStoreProvider.d.ts.map +1 -0
  63. package/lib/{components/Lakehouse/MarketLakehouseStoreProvider.js → pages/Lakehouse/MarketplaceLakehouseStoreProvider.js} +1 -1
  64. package/lib/pages/Lakehouse/MarketplaceLakehouseStoreProvider.js.map +1 -0
  65. package/lib/{components/Lakehouse/entitlements/LakehouseEntitlements.d.ts → pages/Lakehouse/entitlements/EntitlementsDashboard.d.ts} +6 -5
  66. package/lib/pages/Lakehouse/entitlements/EntitlementsDashboard.d.ts.map +1 -0
  67. package/lib/pages/Lakehouse/entitlements/EntitlementsDashboard.js +194 -0
  68. package/lib/pages/Lakehouse/entitlements/EntitlementsDashboard.js.map +1 -0
  69. package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractCreator.d.ts +24 -0
  70. package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractCreator.d.ts.map +1 -0
  71. package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractCreator.js +38 -0
  72. package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractCreator.js.map +1 -0
  73. package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractViewer.d.ts +22 -0
  74. package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractViewer.d.ts.map +1 -0
  75. package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractViewer.js +23 -0
  76. package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractViewer.js.map +1 -0
  77. package/lib/pages/Lakehouse/entitlements/EntitlementsTaskViewer.d.ts +21 -0
  78. package/lib/pages/Lakehouse/entitlements/EntitlementsTaskViewer.d.ts.map +1 -0
  79. package/lib/pages/Lakehouse/entitlements/EntitlementsTaskViewer.js +32 -0
  80. package/lib/pages/Lakehouse/entitlements/EntitlementsTaskViewer.js.map +1 -0
  81. package/lib/pages/Lakehouse/entitlements/LakehouseEntitlements.d.ts +17 -0
  82. package/lib/pages/Lakehouse/entitlements/LakehouseEntitlements.d.ts.map +1 -0
  83. package/lib/pages/Lakehouse/entitlements/LakehouseEntitlements.js +55 -0
  84. package/lib/pages/Lakehouse/entitlements/LakehouseEntitlements.js.map +1 -0
  85. package/lib/pages/Lakehouse/entitlements/LakehouseEntitlementsStoreProvider.d.ts.map +1 -0
  86. package/lib/pages/Lakehouse/entitlements/LakehouseEntitlementsStoreProvider.js.map +1 -0
  87. package/lib/pages/Lakehouse/shared/GridItemViewer.d.ts +21 -0
  88. package/lib/pages/Lakehouse/shared/GridItemViewer.d.ts.map +1 -0
  89. package/lib/pages/Lakehouse/shared/GridItemViewer.js +46 -0
  90. package/lib/pages/Lakehouse/shared/GridItemViewer.js.map +1 -0
  91. package/lib/pages/Lakehouse/subscriptions/LakehouseSubscriptions.d.ts +29 -0
  92. package/lib/pages/Lakehouse/subscriptions/LakehouseSubscriptions.d.ts.map +1 -0
  93. package/lib/pages/Lakehouse/subscriptions/LakehouseSubscriptions.js +152 -0
  94. package/lib/pages/Lakehouse/subscriptions/LakehouseSubscriptions.js.map +1 -0
  95. package/lib/pages/Lakehouse/subscriptions/LakehouseSubscriptionsStoreProvider.d.ts +22 -0
  96. package/lib/pages/Lakehouse/subscriptions/LakehouseSubscriptionsStoreProvider.d.ts.map +1 -0
  97. package/lib/pages/Lakehouse/subscriptions/LakehouseSubscriptionsStoreProvider.js +34 -0
  98. package/lib/pages/Lakehouse/subscriptions/LakehouseSubscriptionsStoreProvider.js.map +1 -0
  99. package/lib/pages/LegendMarketplacePage.d.ts +23 -0
  100. package/lib/pages/LegendMarketplacePage.d.ts.map +1 -0
  101. package/lib/pages/LegendMarketplacePage.js +23 -0
  102. package/lib/pages/LegendMarketplacePage.js.map +1 -0
  103. package/lib/pages/SearchResults/LegendMarketplaceSearchResults.d.ts.map +1 -1
  104. package/lib/pages/SearchResults/LegendMarketplaceSearchResults.js +13 -13
  105. package/lib/pages/SearchResults/LegendMarketplaceSearchResults.js.map +1 -1
  106. package/lib/pages/VendorData/LegendMarketplaceVendorData.d.ts.map +1 -1
  107. package/lib/pages/VendorData/LegendMarketplaceVendorData.js +6 -6
  108. package/lib/pages/VendorData/LegendMarketplaceVendorData.js.map +1 -1
  109. package/lib/stores/LakehouseContractServerClient.d.ts +11 -4
  110. package/lib/stores/LakehouseContractServerClient.d.ts.map +1 -1
  111. package/lib/stores/LakehouseContractServerClient.js +21 -3
  112. package/lib/stores/LakehouseContractServerClient.js.map +1 -1
  113. package/lib/stores/LegendMarketplaceBaseStore.d.ts +3 -0
  114. package/lib/stores/LegendMarketplaceBaseStore.d.ts.map +1 -1
  115. package/lib/stores/LegendMarketplaceBaseStore.js +8 -1
  116. package/lib/stores/LegendMarketplaceBaseStore.js.map +1 -1
  117. package/lib/stores/lakehouse/DataProductDataAccessState.d.ts +6 -7
  118. package/lib/stores/lakehouse/DataProductDataAccessState.d.ts.map +1 -1
  119. package/lib/stores/lakehouse/DataProductDataAccessState.js +47 -48
  120. package/lib/stores/lakehouse/DataProductDataAccessState.js.map +1 -1
  121. package/lib/stores/lakehouse/DataProductViewerState.d.ts +7 -3
  122. package/lib/stores/lakehouse/DataProductViewerState.d.ts.map +1 -1
  123. package/lib/stores/lakehouse/DataProductViewerState.js +51 -22
  124. package/lib/stores/lakehouse/DataProductViewerState.js.map +1 -1
  125. package/lib/stores/lakehouse/LakehouseUtils.d.ts +50 -0
  126. package/lib/stores/lakehouse/LakehouseUtils.d.ts.map +1 -0
  127. package/lib/stores/lakehouse/LakehouseUtils.js +267 -0
  128. package/lib/stores/lakehouse/LakehouseUtils.js.map +1 -0
  129. package/lib/stores/lakehouse/MarketplaceLakehouseStore.d.ts.map +1 -1
  130. package/lib/stores/lakehouse/MarketplaceLakehouseStore.js +9 -4
  131. package/lib/stores/lakehouse/MarketplaceLakehouseStore.js.map +1 -1
  132. package/lib/stores/lakehouse/entitlements/EntitlementsDashboardState.d.ts +31 -0
  133. package/lib/stores/lakehouse/entitlements/EntitlementsDashboardState.d.ts.map +1 -0
  134. package/lib/stores/lakehouse/entitlements/EntitlementsDashboardState.js +110 -0
  135. package/lib/stores/lakehouse/entitlements/EntitlementsDashboardState.js.map +1 -0
  136. package/lib/stores/lakehouse/entitlements/EntitlementsDataContractViewerState.d.ts +30 -0
  137. package/lib/stores/lakehouse/entitlements/EntitlementsDataContractViewerState.d.ts.map +1 -0
  138. package/lib/stores/lakehouse/entitlements/EntitlementsDataContractViewerState.js +65 -0
  139. package/lib/stores/lakehouse/entitlements/EntitlementsDataContractViewerState.js.map +1 -0
  140. package/lib/stores/lakehouse/entitlements/EntitlementsTaskViewerState.d.ts +41 -0
  141. package/lib/stores/lakehouse/entitlements/EntitlementsTaskViewerState.d.ts.map +1 -0
  142. package/lib/stores/lakehouse/entitlements/EntitlementsTaskViewerState.js +146 -0
  143. package/lib/stores/lakehouse/entitlements/EntitlementsTaskViewerState.js.map +1 -0
  144. package/lib/stores/lakehouse/entitlements/LakehouseEntitlementsStore.d.ts +10 -32
  145. package/lib/stores/lakehouse/entitlements/LakehouseEntitlementsStore.d.ts.map +1 -1
  146. package/lib/stores/lakehouse/entitlements/LakehouseEntitlementsStore.js +49 -163
  147. package/lib/stores/lakehouse/entitlements/LakehouseEntitlementsStore.js.map +1 -1
  148. package/lib/stores/lakehouse/entitlements/LakehouseViewerState.d.ts +23 -0
  149. package/lib/stores/lakehouse/entitlements/LakehouseViewerState.d.ts.map +1 -0
  150. package/lib/stores/lakehouse/entitlements/LakehouseViewerState.js +24 -0
  151. package/lib/stores/lakehouse/entitlements/LakehouseViewerState.js.map +1 -0
  152. package/lib/stores/lakehouse/subscriptions/LakehouseSubscriptionsStore.d.ts +30 -0
  153. package/lib/stores/lakehouse/subscriptions/LakehouseSubscriptionsStore.d.ts.map +1 -0
  154. package/lib/stores/lakehouse/subscriptions/LakehouseSubscriptionsStore.js +63 -0
  155. package/lib/stores/lakehouse/subscriptions/LakehouseSubscriptionsStore.js.map +1 -0
  156. package/package.json +5 -4
  157. package/src/__lib__/LegendMarketplaceNavigation.ts +16 -1
  158. package/src/application/LegendMarketplaceApplicationConfig.ts +25 -0
  159. package/src/application/LegendMarketplaceFrameworkProvider.tsx +2 -0
  160. package/src/application/LegendMarketplaceWebApplication.tsx +50 -12
  161. package/src/components/DataProductCard/LegendMarketplaceDataProductSearchCard.tsx +41 -33
  162. package/src/components/DataProductCard/LegendMarketplaceLightDataProductCard.tsx +33 -36
  163. package/src/components/{Lakehouse/LakehouseHeader.tsx → Header/MarketplaceLakehouseHeader.tsx} +7 -3
  164. package/src/components/MarketplaceCard/LegendMarketplaceCard.tsx +98 -0
  165. package/src/components/ProviderCard/LegendMarketplaceProviderCard.tsx +47 -39
  166. package/src/components/__test-utils__/LegendMarketplaceStoreTestUtils.tsx +2 -14
  167. package/src/pages/Home/LegendMarketplaceHome.tsx +42 -51
  168. package/src/{components → pages}/Lakehouse/DataProductDataAccess.tsx +91 -12
  169. package/src/{components → pages}/Lakehouse/LakehouseDataProduct.tsx +14 -23
  170. package/src/pages/Lakehouse/MarketplaceLakehouseHome.tsx +167 -0
  171. package/src/pages/Lakehouse/entitlements/EntitlementsDashboard.tsx +390 -0
  172. package/src/pages/Lakehouse/entitlements/EntitlementsDataContractCreator.tsx +99 -0
  173. package/src/pages/Lakehouse/entitlements/EntitlementsDataContractViewer.tsx +33 -0
  174. package/src/pages/Lakehouse/entitlements/EntitlementsTaskViewer.tsx +73 -0
  175. package/src/pages/Lakehouse/entitlements/LakehouseEntitlements.tsx +82 -0
  176. package/src/pages/Lakehouse/shared/GridItemViewer.tsx +105 -0
  177. package/src/pages/Lakehouse/subscriptions/LakehouseSubscriptions.tsx +358 -0
  178. package/src/pages/Lakehouse/subscriptions/LakehouseSubscriptionsStoreProvider.tsx +65 -0
  179. package/src/pages/LegendMarketplacePage.tsx +26 -0
  180. package/src/pages/SearchResults/LegendMarketplaceSearchResults.tsx +58 -65
  181. package/src/pages/VendorData/LegendMarketplaceVendorData.tsx +44 -42
  182. package/src/stores/LakehouseContractServerClient.ts +78 -10
  183. package/src/stores/LegendMarketplaceBaseStore.ts +16 -1
  184. package/src/stores/lakehouse/DataProductDataAccessState.ts +67 -63
  185. package/src/stores/lakehouse/DataProductViewerState.ts +86 -29
  186. package/src/stores/lakehouse/LakehouseUtils.ts +345 -0
  187. package/src/stores/lakehouse/MarketplaceLakehouseStore.ts +10 -6
  188. package/src/stores/lakehouse/entitlements/EntitlementsDashboardState.ts +167 -0
  189. package/src/stores/lakehouse/entitlements/EntitlementsDataContractViewerState.ts +101 -0
  190. package/src/stores/lakehouse/entitlements/EntitlementsTaskViewerState.ts +227 -0
  191. package/src/stores/lakehouse/entitlements/LakehouseEntitlementsStore.ts +69 -231
  192. package/src/stores/lakehouse/entitlements/LakehouseViewerState.ts +27 -0
  193. package/src/stores/lakehouse/subscriptions/LakehouseSubscriptionsStore.ts +100 -0
  194. package/tsconfig.json +26 -13
  195. package/lib/components/Lakehouse/DataProductDataAccess.d.ts.map +0 -1
  196. package/lib/components/Lakehouse/DataProductDataAccess.js.map +0 -1
  197. package/lib/components/Lakehouse/DataProductHolder.d.ts.map +0 -1
  198. package/lib/components/Lakehouse/DataProductHolder.js.map +0 -1
  199. package/lib/components/Lakehouse/DataProductViewer.d.ts.map +0 -1
  200. package/lib/components/Lakehouse/DataProductViewer.js.map +0 -1
  201. package/lib/components/Lakehouse/DataProductViewerActivityBar.d.ts.map +0 -1
  202. package/lib/components/Lakehouse/DataProductViewerActivityBar.js.map +0 -1
  203. package/lib/components/Lakehouse/DataProductWiki.d.ts.map +0 -1
  204. package/lib/components/Lakehouse/DataProductWiki.js.map +0 -1
  205. package/lib/components/Lakehouse/LakehouseDataProduct.d.ts.map +0 -1
  206. package/lib/components/Lakehouse/LakehouseDataProduct.js.map +0 -1
  207. package/lib/components/Lakehouse/LakehouseHeader.d.ts.map +0 -1
  208. package/lib/components/Lakehouse/LakehouseHeader.js.map +0 -1
  209. package/lib/components/Lakehouse/LakehouseMarketplace.d.ts.map +0 -1
  210. package/lib/components/Lakehouse/LakehouseMarketplace.js +0 -57
  211. package/lib/components/Lakehouse/LakehouseMarketplace.js.map +0 -1
  212. package/lib/components/Lakehouse/MarketLakehouseStoreProvider.d.ts.map +0 -1
  213. package/lib/components/Lakehouse/MarketLakehouseStoreProvider.js.map +0 -1
  214. package/lib/components/Lakehouse/entitlements/LakehouseEntitlements.d.ts.map +0 -1
  215. package/lib/components/Lakehouse/entitlements/LakehouseEntitlements.js +0 -147
  216. package/lib/components/Lakehouse/entitlements/LakehouseEntitlements.js.map +0 -1
  217. package/lib/components/Lakehouse/entitlements/LakehouseEntitlementsStoreProvider.d.ts.map +0 -1
  218. package/lib/components/Lakehouse/entitlements/LakehouseEntitlementsStoreProvider.js.map +0 -1
  219. package/lib/stores/MarketplaceLakehouseServerClient.d.ts +0 -25
  220. package/lib/stores/MarketplaceLakehouseServerClient.d.ts.map +0 -1
  221. package/lib/stores/MarketplaceLakehouseServerClient.js +0 -27
  222. package/lib/stores/MarketplaceLakehouseServerClient.js.map +0 -1
  223. package/lib/stores/lakehouse/entitlements/DataContractState.d.ts +0 -27
  224. package/lib/stores/lakehouse/entitlements/DataContractState.d.ts.map +0 -1
  225. package/lib/stores/lakehouse/entitlements/DataContractState.js +0 -115
  226. package/lib/stores/lakehouse/entitlements/DataContractState.js.map +0 -1
  227. package/src/components/Lakehouse/LakehouseMarketplace.tsx +0 -193
  228. package/src/components/Lakehouse/entitlements/LakehouseEntitlements.tsx +0 -332
  229. package/src/stores/MarketplaceLakehouseServerClient.ts +0 -40
  230. package/src/stores/lakehouse/entitlements/DataContractState.ts +0 -131
  231. /package/lib/{components → pages}/Lakehouse/DataProductDataAccess.d.ts +0 -0
  232. /package/lib/{components → pages}/Lakehouse/DataProductHolder.d.ts +0 -0
  233. /package/lib/{components → pages}/Lakehouse/DataProductHolder.js +0 -0
  234. /package/lib/{components → pages}/Lakehouse/DataProductViewer.d.ts +0 -0
  235. /package/lib/{components → pages}/Lakehouse/DataProductViewer.js +0 -0
  236. /package/lib/{components → pages}/Lakehouse/DataProductViewerActivityBar.d.ts +0 -0
  237. /package/lib/{components → pages}/Lakehouse/DataProductViewerActivityBar.js +0 -0
  238. /package/lib/{components → pages}/Lakehouse/DataProductWiki.d.ts +0 -0
  239. /package/lib/{components → pages}/Lakehouse/DataProductWiki.js +0 -0
  240. /package/lib/{components → pages}/Lakehouse/LakehouseDataProduct.d.ts +0 -0
  241. /package/lib/{components → pages}/Lakehouse/entitlements/LakehouseEntitlementsStoreProvider.d.ts +0 -0
  242. /package/lib/{components → pages}/Lakehouse/entitlements/LakehouseEntitlementsStoreProvider.js +0 -0
  243. /package/src/{components → pages}/Lakehouse/DataProductHolder.tsx +0 -0
  244. /package/src/{components → pages}/Lakehouse/DataProductViewer.tsx +0 -0
  245. /package/src/{components → pages}/Lakehouse/DataProductViewerActivityBar.tsx +0 -0
  246. /package/src/{components → pages}/Lakehouse/DataProductWiki.tsx +0 -0
  247. /package/src/{components/Lakehouse/MarketLakehouseStoreProvider.tsx → pages/Lakehouse/MarketplaceLakehouseStoreProvider.tsx} +0 -0
  248. /package/src/{components → pages}/Lakehouse/entitlements/LakehouseEntitlementsStoreProvider.tsx +0 -0
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { V1_AccessPointGroup } from '@finos/legend-graph';
17
+ import type { DataProductViewerState } from '../../../stores/lakehouse/DataProductViewerState.js';
18
+ import { type AuthContextProps } from 'react-oidc-context';
19
+ export declare const DataContractCreator: import("react").ComponentType<Omit<{
20
+ onClose: () => void;
21
+ accessGroupPoint: V1_AccessPointGroup;
22
+ viewerState: DataProductViewerState;
23
+ }, keyof AuthContextProps>>;
24
+ //# sourceMappingURL=EntitlementsDataContractCreator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntitlementsDataContractCreator.d.ts","sourceRoot":"","sources":["../../../../src/pages/Lakehouse/entitlements/EntitlementsDataContractCreator.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAaH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAG/D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAClG,OAAO,EAAY,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGrE,eAAO,MAAM,mBAAmB;aAGjB,MAAM,IAAI;sBACD,mBAAmB;iBACxB,sBAAsB;2BA2DxC,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { ModalBody, ModalFooter, ModalHeader, Dialog, Modal, PanelForm, PanelFormValidatedTextField, ModalFooterButton, PanelLoadingIndicator, } from '@finos/legend-art';
18
+ import { observer } from 'mobx-react-lite';
19
+ import { useRef, useState } from 'react';
20
+ import { withAuth } from 'react-oidc-context';
21
+ import { flowResult } from 'mobx';
22
+ export const DataContractCreator = withAuth(observer((props) => {
23
+ const { onClose, viewerState, accessGroupPoint } = props;
24
+ const [description, setDescription] = useState(undefined);
25
+ const auth = props.auth;
26
+ const onCreate = () => {
27
+ if (description) {
28
+ flowResult(props.viewerState.create(description, accessGroupPoint, auth.user?.access_token)).catch(viewerState.applicationStore.alertUnhandledError);
29
+ }
30
+ };
31
+ const patternRef = useRef(null);
32
+ return (_jsx(Dialog, { open: true, onClose: onClose, classes: { container: 'dataContract-creator-modal__container' }, PaperProps: {
33
+ classes: { root: 'dataContract-creator-modal__inner-container' },
34
+ }, children: _jsxs(Modal, { children: [_jsx(PanelLoadingIndicator, { isLoading: viewerState.creatingContractState.isInProgress }), _jsx(ModalHeader, { children: "Create Data Contract" }), _jsx(ModalBody, { children: _jsx(PanelForm, { children: _jsx(PanelFormValidatedTextField, { ref: patternRef, name: "Description", className: "service-editor__pattern__input", errorMessageClassName: "service-editor__pattern__input", prompt: 'Description for the data contract', update: (value) => {
35
+ setDescription(value ?? '');
36
+ }, validate: undefined, value: description }) }) }), _jsx(ModalFooter, { children: _jsx(ModalFooterButton, { onClick: onCreate, children: "Create" }) })] }) }));
37
+ }));
38
+ //# sourceMappingURL=EntitlementsDataContractCreator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntitlementsDataContractCreator.js","sourceRoot":"","sources":["../../../../src/pages/Lakehouse/entitlements/EntitlementsDataContractCreator.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,SAAS,EACT,WAAW,EACX,WAAW,EACX,MAAM,EACN,KAAK,EACL,SAAS,EACT,2BAA2B,EAC3B,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAyB,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CACzC,QAAQ,CACN,CAAC,KAIA,EAAE,EAAE;IACH,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,GAAG,KAAK,CAAC;IACzD,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAC5C,SAAS,CACV,CAAC;IACF,MAAM,IAAI,GAAI,KAA+C,CAAC,IAAI,CAAC;IACnE,MAAM,QAAQ,GAAG,GAAS,EAAE;QAC1B,IAAI,WAAW,EAAE,CAAC;YAChB,UAAU,CACR,KAAK,CAAC,WAAW,CAAC,MAAM,CACtB,WAAW,EACX,gBAAgB,EAChB,IAAI,CAAC,IAAI,EAAE,YAAY,CACxB,CACF,CAAC,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;QAC5D,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,UAAU,GAAG,MAAM,CAAmB,IAAI,CAAC,CAAC;IAClD,OAAO,CACL,KAAC,MAAM,IACL,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,EAAE,SAAS,EAAE,uCAAuC,EAAE,EAC/D,UAAU,EAAE;YACV,OAAO,EAAE,EAAE,IAAI,EAAE,6CAA6C,EAAE;SACjE,YAED,MAAC,KAAK,eACJ,KAAC,qBAAqB,IACpB,SAAS,EAAE,WAAW,CAAC,qBAAqB,CAAC,YAAY,GACzD,EACF,KAAC,WAAW,uCAAmC,EAC/C,KAAC,SAAS,cACR,KAAC,SAAS,cACR,KAAC,2BAA2B,IAC1B,GAAG,EAAE,UAAU,EACf,IAAI,EAAC,aAAa,EAClB,SAAS,EAAC,gCAAgC,EAC1C,qBAAqB,EAAC,gCAAgC,EACtD,MAAM,EAAE,mCAAmC,EAC3C,MAAM,EAAE,CAAC,KAAyB,EAAQ,EAAE;gCAC1C,cAAc,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;4BAC9B,CAAC,EACD,QAAQ,EAAE,SAAS,EACnB,KAAK,EAAE,WAAW,GAClB,GACQ,GACF,EAEZ,KAAC,WAAW,cACV,KAAC,iBAAiB,IAAC,OAAO,EAAE,QAAQ,uBAA4B,GACpD,IACR,GACD,CACV,CAAC;AACJ,CAAC,CACF,CACF,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { EntitlementsDataContractViewerState } from '../../../stores/lakehouse/entitlements/EntitlementsDataContractViewerState.js';
17
+ export declare const EntitlementsDataContractViewer: ((props: {
18
+ currentViewer: EntitlementsDataContractViewerState;
19
+ }) => import("react/jsx-runtime").JSX.Element) & {
20
+ displayName: string;
21
+ };
22
+ //# sourceMappingURL=EntitlementsDataContractViewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntitlementsDataContractViewer.d.ts","sourceRoot":"","sources":["../../../../src/pages/Lakehouse/entitlements/EntitlementsDataContractViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,+EAA+E,CAAC;AAEzI,eAAO,MAAM,8BAA8B,WACjC;IAAE,aAAa,EAAE,mCAAmC,CAAA;CAAE;;CAW/D,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { observer } from 'mobx-react-lite';
18
+ import { GridItemsViewer } from '../shared/GridItemViewer.js';
19
+ export const EntitlementsDataContractViewer = observer((props) => {
20
+ const { currentViewer } = props;
21
+ return (_jsx("div", { className: "entitlements-grid-viewer", children: _jsx(GridItemsViewer, { details: currentViewer.contractDetails, title: "Contract Metadata" }) }));
22
+ });
23
+ //# sourceMappingURL=EntitlementsDataContractViewer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntitlementsDataContractViewer.js","sourceRoot":"","sources":["../../../../src/pages/Lakehouse/entitlements/EntitlementsDataContractViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAG9D,MAAM,CAAC,MAAM,8BAA8B,GAAG,QAAQ,CACpD,CAAC,KAA6D,EAAE,EAAE;IAChE,MAAM,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IAChC,OAAO,CACL,cAAK,SAAS,EAAC,0BAA0B,YACvC,KAAC,eAAe,IACd,OAAO,EAAE,aAAa,CAAC,eAAe,EACtC,KAAK,EAAC,mBAAmB,GACzB,GACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { type AuthContextProps } from 'react-oidc-context';
17
+ import type { EntitlementsTaskViewerState } from '../../../stores/lakehouse/entitlements/EntitlementsTaskViewerState.js';
18
+ export declare const EntitlementsTaskViewer: import("react").ComponentType<Omit<{
19
+ currentViewer: EntitlementsTaskViewerState;
20
+ }, keyof AuthContextProps>>;
21
+ //# sourceMappingURL=EntitlementsTaskViewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntitlementsTaskViewer.d.ts","sourceRoot":"","sources":["../../../../src/pages/Lakehouse/entitlements/EntitlementsTaskViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAY,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uEAAuE,CAAC;AAKzH,eAAO,MAAM,sBAAsB;mBACC,2BAA2B;2BAiD9D,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { withAuth } from 'react-oidc-context';
18
+ import { observer } from 'mobx-react-lite';
19
+ import { GridItemsViewer } from '../shared/GridItemViewer.js';
20
+ import { Button, Divider, Stack } from '@mui/material';
21
+ export const EntitlementsTaskViewer = withAuth(observer((props) => {
22
+ const auth = props.auth;
23
+ const { currentViewer } = props;
24
+ const handleApprove = () => {
25
+ currentViewer.approve(auth.user?.access_token);
26
+ };
27
+ const handleDeny = () => {
28
+ currentViewer.deny(auth.user?.access_token);
29
+ };
30
+ return (_jsxs("div", { className: "entitlements-grid-viewer", children: [currentViewer.canApprove && (_jsxs("div", { className: "entitlements-grid-viewer__action-header", children: [_jsxs(Stack, { className: "entitlements-grid-viewer__action", direction: 'row', spacing: 1, children: [_jsx(Button, { variant: "contained", size: "small", onClick: handleApprove, color: "success", sx: { fontSize: '10px' }, children: "Approve" }), _jsx(Button, { color: "error", variant: "contained", size: "small", onClick: handleDeny, sx: { fontSize: '10px' }, children: "Deny" })] }), _jsx(Divider, {})] })), _jsx(GridItemsViewer, { details: currentViewer.taskDetails, title: "Task Metadata" })] }));
31
+ }));
32
+ //# sourceMappingURL=EntitlementsTaskViewer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"E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nB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,qBAGjB,IACH,EACR,KAAC,OAAO,KAAG,IACP,CACP,EACD,KAAC,eAAe,IACd,OAAO,EAAE,aAAa,CAAC,WAAW,EAClC,KAAK,EAAC,eAAe,GACrB,IACE,CACP,CAAC;AACJ,CAAC,CAAC,CACH,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export declare const LakehouseEntitlements: import("react").FC<{}>;
17
+ //# sourceMappingURL=LakehouseEntitlements.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LakehouseEntitlements.d.ts","sourceRoot":"","sources":["../../../../src/pages/Lakehouse/entitlements/LakehouseEntitlements.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA2BH,eAAO,MAAM,qBAAqB,wBAwCjC,CAAC"}
@@ -0,0 +1,55 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { observer } from 'mobx-react-lite';
18
+ import { useLakehouseEntitlementsStore, withLakehouseEntitlementsStore, } from './LakehouseEntitlementsStoreProvider.js';
19
+ import { useAuth } from 'react-oidc-context';
20
+ import { useEffect } from 'react';
21
+ import { CubesLoadingIndicator, CubesLoadingIndicatorIcon, } from '@finos/legend-art';
22
+ import {} from '@finos/legend-lego/data-grid';
23
+ import { useParams } from '@finos/legend-application/browser';
24
+ import { LEGEND_MARKETPLACE_ROUTE_PATTERN_TOKEN, } from '../../../__lib__/LegendMarketplaceNavigation.js';
25
+ import { EntitlementsDashboardState } from '../../../stores/lakehouse/entitlements/EntitlementsDashboardState.js';
26
+ import { EntitlementsTaskViewerState } from '../../../stores/lakehouse/entitlements/EntitlementsTaskViewerState.js';
27
+ import { LegendMarketplacePage } from '../../LegendMarketplacePage.js';
28
+ import { EntitlementsDataContractViewer } from './EntitlementsDataContractViewer.js';
29
+ import { EntitlementsTaskViewer } from './EntitlementsTaskViewer.js';
30
+ import { EntitlementsDashboard } from './EntitlementsDashboard.js';
31
+ import { EntitlementsDataContractViewerState } from '../../../stores/lakehouse/entitlements/EntitlementsDataContractViewerState.js';
32
+ export const LakehouseEntitlements = withLakehouseEntitlementsStore(observer(() => {
33
+ const entitlementsStore = useLakehouseEntitlementsStore();
34
+ const auth = useAuth();
35
+ const params = useParams();
36
+ useEffect(() => {
37
+ entitlementsStore.init(params[LEGEND_MARKETPLACE_ROUTE_PATTERN_TOKEN.TASK_ID], params[LEGEND_MARKETPLACE_ROUTE_PATTERN_TOKEN.CONTRACT_ID], auth.user?.access_token);
38
+ }, [auth.user?.access_token, entitlementsStore, params]);
39
+ const renderCurrentViewer = () => {
40
+ const currentViewer = entitlementsStore.currentViewer;
41
+ if (currentViewer instanceof EntitlementsDashboardState) {
42
+ return _jsx(EntitlementsDashboard, { currentViewer: currentViewer });
43
+ }
44
+ else if (currentViewer instanceof EntitlementsTaskViewerState) {
45
+ return _jsx(EntitlementsTaskViewer, { currentViewer: currentViewer });
46
+ }
47
+ else if (currentViewer instanceof EntitlementsDataContractViewerState) {
48
+ return _jsx(EntitlementsDataContractViewer, { currentViewer: currentViewer });
49
+ }
50
+ return null;
51
+ };
52
+ return (_jsxs(LegendMarketplacePage, { className: "legend-marketplace-lakehouse-entitlements", children: [_jsx(CubesLoadingIndicator, { isLoading: Boolean(entitlementsStore.initializationState.isInProgress ||
53
+ entitlementsStore.currentViewer?.initializationState.isInProgress), children: _jsx(CubesLoadingIndicatorIcon, {}) }), renderCurrentViewer()] }));
54
+ }));
55
+ //# sourceMappingURL=LakehouseEntitlements.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LakehouseEntitlements.js","sourceRoot":"","sources":["../../../../src/pages/Lakehouse/entitlements/LakehouseEntitlements.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,6BAA6B,EAC7B,8BAA8B,GAC/B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EACL,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EACL,sCAAsC,GAEvC,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,0BAA0B,EAAE,MAAM,sEAAsE,CAAC;AAClH,OAAO,EAAE,2BAA2B,EAAE,MAAM,uEAAuE,CAAC;AACpH,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,8BAA8B,EAAE,MA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C1E,KAAC,qBAAqB,IACpB,SAAS,EAAE,OAAO,CAChB,iBAAiB,CAAC,mBAAmB,CAAC,YAAY;oBAChD,iBAAiB,CAAC,aAAa,EAAE,mBAAmB,CAAC,YAAY,CACpE,YAED,KAAC,yBAAyB,KAAG,GACP,EACvB,mBAAmB,EAAE,IACA,CACzB,CAAC;AACJ,CAAC,CAAC,CACH,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LakehouseEntitlementsStoreProvider.d.ts","sourceRoot":"","sources":["../../../../src/pages/Lakehouse/entitlements/LakehouseEntitlementsStoreProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,EAAE,0BAA0B,EAAE,MAAM,sEAAsE,CAAC;AAMlH,eAAO,MAAM,kCAAkC,EAAE,KAAK,CAAC,EAAE,CAAC;IACxD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAgBA,CAAC;AAEF,eAAO,MAAM,6BAA6B,QAAO,0BAI9C,CAAC;AAEJ,eAAO,MAAM,8BAA8B,GACzC,kBAAkB,KAAK,CAAC,EAAE,KACzB,KAAK,CAAC,EAON,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LakehouseEntitlementsStoreProvider.js","sourceRoot":"","sources":["../../../../src/pages/Lakehouse/entitlements/LakehouseEntitlementsStoreProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EACL,oCAAoC,EACpC,6BAA6B,GAC9B,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,sEAAsE,CAAC;AAElH,MAAM,iCAAiC,GAAG,aAAa,CAErD,SAAS,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,kCAAkC,GAE1C,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpB,MAAM,gBAAgB,GAAG,oCAAoC,EAAE,CAAC;IAChE,MAAM,SAAS,GAAG,6BAA6B,EAAE,CAAC;IAClD,MAAM,qBAAqB,GAAG,oBAAoB,CAChD,SAAS,CAAC,qBAAqB,EAC/B,4CAA4C,CAC7C,CAAC;IACF,MAAM,KAAK,GAAG,kBAAkB,CAC9B,GAAG,EAAE,CACH,IAAI,0BAA0B,CAAC,gBAAgB,EAAE,qBAAqB,CAAC,CAC1E,CAAC;IACF,OAAO,CACL,KAAC,iCAAiC,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YACrD,QAAQ,GACkC,CAC9C,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAA+B,EAAE,CAC5E,oBAAoB,CAClB,UAAU,CAAC,iCAAiC,CAAC,EAC7C,oCAAoC,CACrC,CAAC;AAEJ,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAC5C,gBAA0B,EAChB,EAAE,CACZ,SAAS,8BAA8B;IACrC,OAAO,CACL,KAAC,kCAAkC,cACjC,KAAC,gBAAgB,KAAG,GACe,CACtC,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { type GridItemDetail } from '../../../stores/lakehouse/LakehouseUtils.js';
17
+ export declare const GridItemsViewer: (props: {
18
+ details: GridItemDetail[];
19
+ title: string;
20
+ }) => import("react/jsx-runtime").JSX.Element;
21
+ //# sourceMappingURL=GridItemViewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GridItemViewer.d.ts","sourceRoot":"","sources":["../../../../src/pages/Lakehouse/shared/GridItemViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,6CAA6C,CAAC;AAGrD,eAAO,MAAM,eAAe,GAAI,OAAO;IACrC,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf,4CA8EA,CAAC"}
@@ -0,0 +1,46 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { Grid2, Typography } from '@mui/material';
18
+ import { GridTiemStatus, } from '../../../stores/lakehouse/LakehouseUtils.js';
19
+ import { clsx } from '@finos/legend-art';
20
+ export const GridItemsViewer = (props) => {
21
+ const gridDetails = props.details;
22
+ const title = props.title;
23
+ return (_jsxs(_Fragment, { children: [_jsx(Typography, { className: "entitlements-grid-viewer__header", variant: "h6", sx: { marginBottom: '0.5rem' }, children: title }), _jsx(Grid2, { container: true, spacing: 0, sx: {
24
+ '--Grid-borderWidth': '1px',
25
+ borderTop: 'var(--Grid-borderWidth) solid',
26
+ borderLeft: 'var(--Grid-borderWidth) solid',
27
+ borderColor: 'divider',
28
+ '& > div': {
29
+ borderRight: 'var(--Grid-borderWidth) solid',
30
+ borderBottom: 'var(--Grid-borderWidth) solid',
31
+ borderColor: 'divider',
32
+ },
33
+ }, children: gridDetails.map((gridItem, index) => (_jsxs(_Fragment, { children: [_jsx(Grid2, { container: false, size: 4, sx: {
34
+ alignContent: 'center',
35
+ backgroundColor: index % 2 === 0 ? '#f5f5f5' : 'white',
36
+ }, children: _jsx(Typography, { variant: "button", fontWeight: 'bold', sx: { fontSize: '14px', padding: '6px' }, children: gridItem.name }) }, gridItem.name), _jsx(Grid2, { container: false, size: 8, sx: {
37
+ alignContent: 'center',
38
+ backgroundColor: index % 2 === 0 ? '#f5f5f5' : 'white',
39
+ }, children: _jsx(Typography, { variant: "subtitle1", sx: { fontSize: '14px', padding: '6px' }, className: clsx({
40
+ 'entitlements-grid-viewer__item-clickable-text': Boolean(gridItem.onClick),
41
+ 'entitlements-grid-viewer__status--success': gridItem.status === GridTiemStatus.SUCCESS,
42
+ 'entitlements-grid-viewer__status--error': gridItem.status === GridTiemStatus.ERROR,
43
+ 'entitlements-grid-viewer__status--in-progress': gridItem.status === GridTiemStatus.INFO,
44
+ }), onClick: () => gridItem.onClick?.(), children: gridItem.value }) })] }))) })] }));
45
+ };
46
+ //# sourceMappingURL=GridItemViewer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GridItemViewer.js","sourceRoot":"","sources":["../../../../src/pages/Lakehouse/shared/GridItemViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EACL,cAAc,GAEf,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAG/B,EAAE,EAAE;IACH,MAAM,WAAW,GAAG,KAAK,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,YAED,KAAC,UAAU,IACT,OAAO,EAAC,WAAW,EACnB,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EACxC,SAAS,EAAE,IAAI,CAAC;oCACd,+CAA+C,EAAE,OAAO,CACtD,QAAQ,CAAC,OAAO,CACjB;oCACD,2CAA2C,EACzC,QAAQ,CAAC,MAAM,KAAK,cAAc,CAAC,OAAO;oCAC5C,yCAAyC,EACvC,QAAQ,CAAC,MAAM,KAAK,cAAc,CAAC,KAAK;oCAC1C,+CAA+C,EAC7C,QAAQ,CAAC,MAAM,KAAK,cAAc,CAAC,IAAI;iCAC1C,CAAC,EACF,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,OAAO,EAAE,EAAE,YAElC,QAAQ,CAAC,KAAK,GACJ,GACP,IACP,CACJ,CAAC,GACI,IACP,CACJ,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { type V1_DataSubscriptionTarget } from '@finos/legend-graph';
17
+ import type { LakehouseSubscriptionsStore } from '../../../stores/lakehouse/subscriptions/LakehouseSubscriptionsStore.js';
18
+ export declare const LakehouseSubscriptionsCreateDialog: (props: {
19
+ open: boolean;
20
+ onClose: () => void;
21
+ onSubmit: (contractId: string, target: V1_DataSubscriptionTarget) => Promise<void>;
22
+ }) => import("react/jsx-runtime").JSX.Element;
23
+ export declare const LakehouseSubscriptionsMainView: ((props: {
24
+ subscriptionsStore: LakehouseSubscriptionsStore;
25
+ }) => import("react/jsx-runtime").JSX.Element) & {
26
+ displayName: string;
27
+ };
28
+ export declare const LakehouseSubscriptions: import("react").FC<{}>;
29
+ //# sourceMappingURL=LakehouseSubscriptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LakehouseSubscriptions.d.ts","sourceRoot":"","sources":["../../../../src/pages/Lakehouse/subscriptions/LakehouseSubscriptions.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAyBH,OAAO,EACL,KAAK,yBAAyB,EAK/B,MAAM,qBAAqB,CAAC;AAO7B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wEAAwE,CAAC;AAG1H,eAAO,MAAM,kCAAkC,GAAI,OAAO;IACxD,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CACR,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,yBAAyB,KAC9B,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB,4CAkIA,CAAC;AAEF,eAAO,MAAM,8BAA8B,WACjC;IAAE,kBAAkB,EAAE,2BAA2B,CAAA;CAAE;;CAwI5D,CAAC;AAEF,eAAO,MAAM,sBAAsB,wBAwBlC,CAAC"}
@@ -0,0 +1,152 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { observer } from 'mobx-react-lite';
18
+ import { useAuth } from 'react-oidc-context';
19
+ import { useEffect, useState } from 'react';
20
+ import { clsx, CubesLoadingIndicator, CubesLoadingIndicatorIcon, } from '@finos/legend-art';
21
+ import { DataGrid } from '@finos/legend-lego/data-grid';
22
+ import { Box, Button, Dialog, DialogActions, DialogContent, DialogTitle, FormControl, InputLabel, MenuItem, Select, TextField, Typography, } from '@mui/material';
23
+ import { V1_DataSubscriptionTargetType, V1_SnowflakeNetwork, V1_SnowflakeRegion, V1_SnowflakeTarget, } from '@finos/legend-graph';
24
+ import { useLakehouseSubscriptionsStore, withLakehouseSubscriptionsStore, } from './LakehouseSubscriptionsStoreProvider.js';
25
+ import { assertErrorThrown } from '@finos/legend-shared';
26
+ import { flowResult } from 'mobx';
27
+ import { LegendMarketplacePage } from '../../LegendMarketplacePage.js';
28
+ export const LakehouseSubscriptionsCreateDialog = (props) => {
29
+ const { open, onClose, onSubmit } = props;
30
+ const [contractId, setContractId] = useState('');
31
+ const [targetType] = useState(V1_DataSubscriptionTargetType.Snowflake);
32
+ const [snowflakeAccountId, setSnowflakeAccountId] = useState('');
33
+ const [snowflakeRegion] = useState(V1_SnowflakeRegion.AWS_US_EAST_1);
34
+ const [snowflakeNetwork] = useState(V1_SnowflakeNetwork.GOLDMAN);
35
+ return (_jsxs(Dialog, { open: open, onClose: onClose, slotProps: {
36
+ paper: {
37
+ component: 'form',
38
+ onSubmit: (event) => {
39
+ event.preventDefault();
40
+ if (targetType === V1_DataSubscriptionTargetType.Snowflake) {
41
+ const snowflakeTarget = new V1_SnowflakeTarget();
42
+ snowflakeTarget.snowflakeAccountId = snowflakeAccountId;
43
+ snowflakeTarget.snowflakeRegion = snowflakeRegion;
44
+ snowflakeTarget.snowflakeNetwork = snowflakeNetwork;
45
+ // eslint-disable-next-line no-void
46
+ void onSubmit(contractId, snowflakeTarget);
47
+ onClose();
48
+ }
49
+ else {
50
+ onClose();
51
+ throw new Error(`Unsupported target type: ${targetType}`);
52
+ }
53
+ },
54
+ },
55
+ }, children: [_jsx(DialogTitle, { children: "Create New Subscription" }), _jsxs(DialogContent, { children: [_jsx(TextField, { required: true, margin: "dense", id: "contractId", name: "contractId", label: "Contract ID", fullWidth: true, variant: "outlined", value: contractId, onChange: (event) => setContractId(event.target.value) }), _jsxs(FormControl, { fullWidth: true, margin: "dense", children: [_jsx(InputLabel, { id: "target-type-select-label", children: "Target Type" }), _jsx(Select, { required: true, labelId: "target-type-select-label", id: "target-type-select", value: targetType, label: "Target Type", disabled: true, children: Object.values(V1_DataSubscriptionTargetType).map((_targetType) => (_jsx(MenuItem, { value: _targetType, children: _targetType }, _targetType))) })] }), _jsx(TextField, { required: true, margin: "dense", id: "snowflakeAccountId", name: "snowflakeAccountId", label: "Snowflake Account ID", fullWidth: true, variant: "outlined", value: snowflakeAccountId, onChange: (event) => setSnowflakeAccountId(event.target.value) }), _jsxs(FormControl, { fullWidth: true, margin: "dense", children: [_jsx(InputLabel, { id: "snowflake-region-select-label", children: "Snowflake Region" }), _jsx(Select, { required: true, labelId: "snowflake-region-select-label", id: "snowflake-region-select", value: snowflakeRegion, label: "Snowflake Region", disabled: true, children: Object.values(V1_SnowflakeRegion).map((region) => (_jsx(MenuItem, { value: region, children: region }, region))) })] }), _jsxs(FormControl, { fullWidth: true, margin: "dense", children: [_jsx(InputLabel, { id: "snowflake-network-select-label", children: "Snowflake Network" }), _jsx(Select, { required: true, labelId: "snowflake-network-select-label", id: "snowflake-network-select", value: snowflakeNetwork, label: "Snowflake Network", disabled: true, children: Object.values(V1_SnowflakeNetwork).map((_snowflakeNetwork) => (_jsx(MenuItem, { value: _snowflakeNetwork, children: _snowflakeNetwork }, _snowflakeNetwork))) })] })] }), _jsxs(DialogActions, { children: [_jsx(Button, { onClick: onClose, variant: "outlined", children: "Cancel" }), _jsx(Button, { type: "submit", variant: "contained", children: "Create Subsciption" })] })] }));
56
+ };
57
+ export const LakehouseSubscriptionsMainView = observer((props) => {
58
+ const { subscriptionsStore } = props;
59
+ const auth = useAuth();
60
+ const [isCreateDialogOpen, setIsCreateDialogOpen] = useState(false);
61
+ const subscriptions = subscriptionsStore.subscriptions;
62
+ const createDialogHandleSubmit = async (contractId, target) => {
63
+ try {
64
+ const createdSubscription = await subscriptionsStore.createSubscription(contractId, target, auth.user?.access_token);
65
+ subscriptionsStore.applicationStore.notificationService.notifySuccess(`Created subscription ${createdSubscription.guid}`);
66
+ flowResult(subscriptionsStore.init(auth.user?.access_token)).catch(subscriptionsStore.applicationStore.alertUnhandledError);
67
+ }
68
+ catch (error) {
69
+ assertErrorThrown(error);
70
+ subscriptionsStore.applicationStore.alertUnhandledError(error);
71
+ }
72
+ };
73
+ return (_jsxs(_Fragment, { children: [_jsxs(Box, { className: "subscriptions", children: [_jsxs(Box, { className: "subscriptions__header", children: [_jsx(Typography, { variant: "h4", children: "ALL SUBSCRIPTIONS" }), _jsx(Button, { onClick: () => setIsCreateDialogOpen(true), variant: "contained", children: "Create New Subscription" })] }), _jsx("div", { className: clsx('subscriptions__grid', {
74
+ 'ag-theme-balham': true,
75
+ }), children: _jsx(DataGrid, { rowData: subscriptions, onRowDataUpdated: (params) => {
76
+ params.api.refreshCells({ force: true });
77
+ }, suppressFieldDotNotation: true, suppressContextMenu: false, columnDefs: [
78
+ {
79
+ minWidth: 50,
80
+ sortable: true,
81
+ resizable: true,
82
+ headerName: 'Subscription Id',
83
+ valueGetter: (p) => p.data?.guid,
84
+ flex: 1,
85
+ },
86
+ {
87
+ minWidth: 50,
88
+ sortable: true,
89
+ resizable: true,
90
+ headerName: 'Contract ID',
91
+ valueGetter: (p) => p.data?.dataContractId,
92
+ flex: 1,
93
+ },
94
+ {
95
+ minWidth: 50,
96
+ sortable: true,
97
+ resizable: true,
98
+ headerName: 'Target Type',
99
+ valueGetter: (p) => p.data?.target instanceof V1_SnowflakeTarget
100
+ ? 'Snowflake'
101
+ : 'Unknown',
102
+ flex: 1,
103
+ },
104
+ {
105
+ minWidth: 50,
106
+ sortable: true,
107
+ resizable: true,
108
+ headerName: 'Snowflake Account ID',
109
+ valueGetter: (p) => p.data?.target instanceof V1_SnowflakeTarget
110
+ ? p.data.target.snowflakeAccountId
111
+ : 'Unknown',
112
+ flex: 1,
113
+ },
114
+ {
115
+ minWidth: 50,
116
+ sortable: true,
117
+ resizable: true,
118
+ headerName: 'Snowflake Region',
119
+ valueGetter: (p) => p.data?.target instanceof V1_SnowflakeTarget
120
+ ? p.data.target.snowflakeRegion
121
+ : 'Unknown',
122
+ flex: 1,
123
+ },
124
+ {
125
+ minWidth: 50,
126
+ sortable: true,
127
+ resizable: true,
128
+ headerName: 'Snowflake Network',
129
+ valueGetter: (p) => p.data?.target instanceof V1_SnowflakeTarget
130
+ ? p.data.target.snowflakeNetwork
131
+ : 'Unknown',
132
+ flex: 1,
133
+ },
134
+ {
135
+ minWidth: 50,
136
+ sortable: true,
137
+ resizable: true,
138
+ headerName: 'Created By',
139
+ valueGetter: (p) => p.data?.createdBy,
140
+ flex: 1,
141
+ },
142
+ ] }) })] }), _jsx(LakehouseSubscriptionsCreateDialog, { open: isCreateDialogOpen, onClose: () => setIsCreateDialogOpen(false), onSubmit: createDialogHandleSubmit })] }));
143
+ });
144
+ export const LakehouseSubscriptions = withLakehouseSubscriptionsStore(observer(() => {
145
+ const subscriptionsStore = useLakehouseSubscriptionsStore();
146
+ const auth = useAuth();
147
+ useEffect(() => {
148
+ subscriptionsStore.init(auth.user?.access_token);
149
+ }, [auth.user?.access_token, subscriptionsStore]);
150
+ return (_jsxs(LegendMarketplacePage, { className: "legend-marketplace-lakehouse-subscriptions", children: [_jsx(CubesLoadingIndicator, { isLoading: Boolean(subscriptionsStore.initializationState.isInProgress), children: _jsx(CubesLoadingIndicatorIcon, {}) }), _jsx(LakehouseSubscriptionsMainView, { subscriptionsStore: subscriptionsStore })] }));
151
+ }));
152
+ //# sourceMappingURL=LakehouseSubscriptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LakehouseSubscriptions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AE,OAAO,CAChB,kBAAkB,CAAC,mBAAmB,CAAC,YAAY,CACpD,YAED,KAAC,yBAAyB,KAAG,GACP,EACxB,KAAC,8BAA8B,IAC7B,kBAAkB,EAAE,kBAAkB,GACtC,IACoB,CACzB,CAAC;AACJ,CAAC,CAAC,CACH,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { LakehouseSubscriptionsStore } from '../../../stores/lakehouse/subscriptions/LakehouseSubscriptionsStore.js';
17
+ export declare const LakehouseSubscriptionsStoreProvider: React.FC<{
18
+ children: React.ReactNode;
19
+ }>;
20
+ export declare const useLakehouseSubscriptionsStore: () => LakehouseSubscriptionsStore;
21
+ export declare const withLakehouseSubscriptionsStore: (WrappedComponent: React.FC) => React.FC;
22
+ //# sourceMappingURL=LakehouseSubscriptionsStoreProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LakehouseSubscriptionsStoreProvider.d.ts","sourceRoot":"","sources":["../../../../src/pages/Lakehouse/subscriptions/LakehouseSubscriptionsStoreProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,EAAE,2BAA2B,EAAE,MAAM,wEAAwE,CAAC;AAMrH,eAAO,MAAM,mCAAmC,EAAE,KAAK,CAAC,EAAE,CAAC;IACzD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAgBA,CAAC;AAEF,eAAO,MAAM,8BAA8B,QAAO,2BAI/C,CAAC;AAEJ,eAAO,MAAM,+BAA+B,GAC1C,kBAAkB,KAAK,CAAC,EAAE,KACzB,KAAK,CAAC,EAON,CAAC"}