@gen3/frontend 0.10.91 → 0.10.92

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 (194) hide show
  1. package/dist/cjs/index.js +383 -84
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/dts/components/CountButton/CountButton.d.ts +19 -0
  4. package/dist/dts/components/CountButton/CountButton.d.ts.map +1 -0
  5. package/dist/dts/components/CountButton/CountButton.js +18 -0
  6. package/dist/dts/components/CountButton/CountButton.js.map +1 -0
  7. package/dist/dts/components/Login/LoginPanel.d.ts.map +1 -1
  8. package/dist/dts/components/Login/LoginPanel.js +2 -1
  9. package/dist/dts/components/Login/LoginPanel.js.map +1 -1
  10. package/dist/dts/components/Login/test/utils.test.d.ts +2 -0
  11. package/dist/dts/components/Login/test/utils.test.d.ts.map +1 -0
  12. package/dist/dts/components/Login/test/utils.test.js +39 -0
  13. package/dist/dts/components/Login/test/utils.test.js.map +1 -0
  14. package/dist/dts/components/Login/utils.d.ts +15 -0
  15. package/dist/dts/components/Login/utils.d.ts.map +1 -0
  16. package/dist/dts/components/Login/utils.js +31 -0
  17. package/dist/dts/components/Login/utils.js.map +1 -0
  18. package/dist/dts/features/CohortBuilder/cohortUtils.d.ts +4 -0
  19. package/dist/dts/features/CohortBuilder/cohortUtils.d.ts.map +1 -0
  20. package/dist/dts/features/CohortBuilder/cohortUtils.js +23 -0
  21. package/dist/dts/features/CohortBuilder/cohortUtils.js.map +1 -0
  22. package/dist/dts/features/CohortDiscovery/ActionButtons/ActionButtonGroup.d.ts +5 -0
  23. package/dist/dts/features/CohortDiscovery/ActionButtons/ActionButtonGroup.d.ts.map +1 -0
  24. package/dist/dts/features/CohortDiscovery/ActionButtons/ActionButtonGroup.js +13 -0
  25. package/dist/dts/features/CohortDiscovery/ActionButtons/ActionButtonGroup.js.map +1 -0
  26. package/dist/dts/features/CohortDiscovery/ActionButtons/SaveActionButton.d.ts +5 -0
  27. package/dist/dts/features/CohortDiscovery/ActionButtons/SaveActionButton.d.ts.map +1 -0
  28. package/dist/dts/features/CohortDiscovery/ActionButtons/SaveActionButton.js +28 -0
  29. package/dist/dts/features/CohortDiscovery/ActionButtons/SaveActionButton.js.map +1 -0
  30. package/dist/dts/features/CohortDiscovery/CohortManager.d.ts +6 -0
  31. package/dist/dts/features/CohortDiscovery/CohortManager.d.ts.map +1 -0
  32. package/dist/dts/features/CohortDiscovery/CohortManager.js +55 -0
  33. package/dist/dts/features/CohortDiscovery/CohortManager.js.map +1 -0
  34. package/dist/dts/features/CohortDiscovery/CohortManagerSlice.d.ts +135 -0
  35. package/dist/dts/features/CohortDiscovery/CohortManagerSlice.d.ts.map +1 -0
  36. package/dist/dts/features/CohortDiscovery/CohortManagerSlice.js +40 -0
  37. package/dist/dts/features/CohortDiscovery/CohortManagerSlice.js.map +1 -0
  38. package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts +23 -0
  39. package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts.map +1 -0
  40. package/dist/dts/features/CohortDiscovery/CohortSelectors.js +35 -0
  41. package/dist/dts/features/CohortDiscovery/CohortSelectors.js.map +1 -0
  42. package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts +91 -0
  43. package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts.map +1 -0
  44. package/dist/dts/features/CohortDiscovery/CohortSlice.js +93 -0
  45. package/dist/dts/features/CohortDiscovery/CohortSlice.js.map +1 -0
  46. package/dist/dts/features/CohortDiscovery/FacetDefinitionsSlice.d.ts +15 -0
  47. package/dist/dts/features/CohortDiscovery/FacetDefinitionsSlice.d.ts.map +1 -0
  48. package/dist/dts/features/CohortDiscovery/FacetDefinitionsSlice.js +38 -0
  49. package/dist/dts/features/CohortDiscovery/FacetDefinitionsSlice.js.map +1 -0
  50. package/dist/dts/features/CohortDiscovery/RequestManagerSlice.d.ts +162 -0
  51. package/dist/dts/features/CohortDiscovery/RequestManagerSlice.d.ts.map +1 -0
  52. package/dist/dts/features/CohortDiscovery/RequestManagerSlice.js +53 -0
  53. package/dist/dts/features/CohortDiscovery/RequestManagerSlice.js.map +1 -0
  54. package/dist/dts/features/CohortDiscovery/Requests/DataAccessRequestForm.d.ts +10 -0
  55. package/dist/dts/features/CohortDiscovery/Requests/DataAccessRequestForm.d.ts.map +1 -0
  56. package/dist/dts/features/CohortDiscovery/Requests/DataAccessRequestForm.js +85 -0
  57. package/dist/dts/features/CohortDiscovery/Requests/DataAccessRequestForm.js.map +1 -0
  58. package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.d.ts +3 -0
  59. package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.d.ts.map +1 -0
  60. package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.js +8 -0
  61. package/dist/dts/features/CohortDiscovery/Requests/RequestsPanel.js.map +1 -0
  62. package/dist/dts/features/CohortDiscovery/Requests/RequestsTable.d.ts +3 -0
  63. package/dist/dts/features/CohortDiscovery/Requests/RequestsTable.d.ts.map +1 -0
  64. package/dist/dts/features/CohortDiscovery/Requests/RequestsTable.js +67 -0
  65. package/dist/dts/features/CohortDiscovery/Requests/RequestsTable.js.map +1 -0
  66. package/dist/dts/features/CohortDiscovery/SaveCohorts/SavedCohortsPanel.d.ts +3 -0
  67. package/dist/dts/features/CohortDiscovery/SaveCohorts/SavedCohortsPanel.d.ts.map +1 -0
  68. package/dist/dts/features/CohortDiscovery/SaveCohorts/SavedCohortsPanel.js +9 -0
  69. package/dist/dts/features/CohortDiscovery/SaveCohorts/SavedCohortsPanel.js.map +1 -0
  70. package/dist/dts/features/CohortDiscovery/SaveCohorts/SavedCohortsTable.d.ts +7 -0
  71. package/dist/dts/features/CohortDiscovery/SaveCohorts/SavedCohortsTable.d.ts.map +1 -0
  72. package/dist/dts/features/CohortDiscovery/SaveCohorts/SavedCohortsTable.js +101 -0
  73. package/dist/dts/features/CohortDiscovery/SaveCohorts/SavedCohortsTable.js.map +1 -0
  74. package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.d.ts +3 -0
  75. package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.d.ts.map +1 -0
  76. package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.js +82 -0
  77. package/dist/dts/features/CohortDiscovery/api/analysisApiCohortDiscovery.js.map +1 -0
  78. package/dist/dts/features/CohortDiscovery/appApi.d.ts +10 -1
  79. package/dist/dts/features/CohortDiscovery/appApi.d.ts.map +1 -1
  80. package/dist/dts/features/CohortDiscovery/appApi.js.map +1 -1
  81. package/dist/dts/features/CohortDiscovery/appApiRTKQ.d.ts +1 -0
  82. package/dist/dts/features/CohortDiscovery/appApiRTKQ.d.ts.map +1 -0
  83. package/dist/dts/features/CohortDiscovery/appApiRTKQ.js +101 -0
  84. package/dist/dts/features/CohortDiscovery/appApiRTKQ.js.map +1 -0
  85. package/dist/dts/features/CohortDiscovery/queryApi.d.ts +32 -0
  86. package/dist/dts/features/CohortDiscovery/queryApi.d.ts.map +1 -0
  87. package/dist/dts/features/CohortDiscovery/queryApi.js +498 -0
  88. package/dist/dts/features/CohortDiscovery/queryApi.js.map +1 -0
  89. package/dist/dts/features/CohortDiscovery/tableSettings.d.ts +3 -0
  90. package/dist/dts/features/CohortDiscovery/tableSettings.d.ts.map +1 -0
  91. package/dist/dts/features/CohortDiscovery/tableSettings.js +68 -0
  92. package/dist/dts/features/CohortDiscovery/tableSettings.js.map +1 -0
  93. package/dist/dts/features/DataLibrary/DataLibrary.d.ts.map +1 -1
  94. package/dist/dts/features/DataLibrary/DataLibrary.js +1 -0
  95. package/dist/dts/features/DataLibrary/DataLibrary.js.map +1 -1
  96. package/dist/dts/features/DataLibrary/DataLibraryLists.d.ts.map +1 -1
  97. package/dist/dts/features/DataLibrary/DataLibraryLists.js +19 -15
  98. package/dist/dts/features/DataLibrary/DataLibraryLists.js.map +1 -1
  99. package/dist/dts/features/DataLibrary/DatalistAccordionItem.d.ts +3 -3
  100. package/dist/dts/features/DataLibrary/DatalistAccordionItem.d.ts.map +1 -1
  101. package/dist/dts/features/DataLibrary/DatalistAccordionItem.js +1 -3
  102. package/dist/dts/features/DataLibrary/DatalistAccordionItem.js.map +1 -1
  103. package/dist/dts/features/DataLibrary/DatasetAccordionControl.d.ts +3 -2
  104. package/dist/dts/features/DataLibrary/DatasetAccordionControl.d.ts.map +1 -1
  105. package/dist/dts/features/DataLibrary/DatasetAccordionControl.js.map +1 -1
  106. package/dist/dts/features/DataLibrary/SearchAndActions.d.ts +2 -2
  107. package/dist/dts/features/DataLibrary/SearchAndActions.d.ts.map +1 -1
  108. package/dist/dts/features/DataLibrary/SearchAndActions.js.map +1 -1
  109. package/dist/dts/features/DataLibrary/selection/actions/exportDatasetsToWorkspace/exportMetadataToWorkspace.d.ts +3 -0
  110. package/dist/dts/features/DataLibrary/selection/actions/exportDatasetsToWorkspace/exportMetadataToWorkspace.d.ts.map +1 -0
  111. package/dist/dts/features/DataLibrary/selection/actions/exportDatasetsToWorkspace/exportMetadataToWorkspace.js +178 -0
  112. package/dist/dts/features/DataLibrary/selection/actions/exportDatasetsToWorkspace/exportMetadataToWorkspace.js.map +1 -0
  113. package/dist/dts/features/DataLibrary/selection/actions/exportDatasetsToWorkspace/providerErrorNotification.d.ts +9 -0
  114. package/dist/dts/features/DataLibrary/selection/actions/exportDatasetsToWorkspace/providerErrorNotification.d.ts.map +1 -0
  115. package/dist/dts/features/DataLibrary/selection/actions/exportDatasetsToWorkspace/providerErrorNotification.js +7 -0
  116. package/dist/dts/features/DataLibrary/selection/actions/exportDatasetsToWorkspace/providerErrorNotification.js.map +1 -0
  117. package/dist/dts/features/DataLibrary/selection/actions/exportToManifest.d.ts +3 -0
  118. package/dist/dts/features/DataLibrary/selection/actions/exportToManifest.d.ts.map +1 -0
  119. package/dist/dts/features/DataLibrary/selection/actions/exportToManifest.js +80 -0
  120. package/dist/dts/features/DataLibrary/selection/actions/exportToManifest.js.map +1 -0
  121. package/dist/dts/features/DataLibrary/selection/exportActions.d.ts.map +1 -1
  122. package/dist/dts/features/DataLibrary/selection/exportActions.js +14 -9
  123. package/dist/dts/features/DataLibrary/selection/exportActions.js.map +1 -1
  124. package/dist/dts/features/DataLibrary/selection/registeredActions.d.ts.map +1 -1
  125. package/dist/dts/features/DataLibrary/selection/registeredActions.js +8 -0
  126. package/dist/dts/features/DataLibrary/selection/registeredActions.js.map +1 -1
  127. package/dist/dts/features/DataLibrary/selection/selectedItemActions.d.ts.map +1 -1
  128. package/dist/dts/features/DataLibrary/selection/selectedItemActions.js +4 -0
  129. package/dist/dts/features/DataLibrary/selection/selectedItemActions.js.map +1 -1
  130. package/dist/dts/features/DataLibrary/selection/tests/utils.unit.test.js +71 -1
  131. package/dist/dts/features/DataLibrary/selection/tests/utils.unit.test.js.map +1 -1
  132. package/dist/dts/features/DataLibrary/selection/types.d.ts +2 -2
  133. package/dist/dts/features/DataLibrary/selection/types.d.ts.map +1 -1
  134. package/dist/dts/features/DataLibrary/selection/utils.d.ts +4 -2
  135. package/dist/dts/features/DataLibrary/selection/utils.d.ts.map +1 -1
  136. package/dist/dts/features/DataLibrary/selection/utils.js +18 -0
  137. package/dist/dts/features/DataLibrary/selection/utils.js.map +1 -1
  138. package/dist/dts/features/DataLibrary/types.d.ts +7 -2
  139. package/dist/dts/features/DataLibrary/types.d.ts.map +1 -1
  140. package/dist/dts/features/DataLibrary/types.js +18 -0
  141. package/dist/dts/features/DataLibrary/types.js.map +1 -1
  142. package/dist/dts/features/Discovery/ActionBar/ActionBar.d.ts.map +1 -1
  143. package/dist/dts/features/Discovery/ActionBar/ActionBar.js +6 -3
  144. package/dist/dts/features/Discovery/ActionBar/ActionBar.js.map +1 -1
  145. package/dist/dts/features/Discovery/ActionBar/AddToDataLibrary.d.ts +1 -1
  146. package/dist/dts/features/Discovery/ActionBar/AddToDataLibrary.d.ts.map +1 -1
  147. package/dist/dts/features/Discovery/ActionBar/AddToDataLibrary.js +70 -53
  148. package/dist/dts/features/Discovery/ActionBar/AddToDataLibrary.js.map +1 -1
  149. package/dist/dts/features/Discovery/ActionBar/AddToDataLibrary.stories.d.ts +1 -1
  150. package/dist/dts/features/Discovery/ActionBar/DownloadManifestButton.js +1 -1
  151. package/dist/dts/features/Discovery/ActionBar/DownloadManifestButton.js.map +1 -1
  152. package/dist/dts/features/Discovery/ActionBar/types.d.ts +3 -1
  153. package/dist/dts/features/Discovery/ActionBar/types.d.ts.map +1 -1
  154. package/dist/dts/features/Discovery/Discovery.d.ts.map +1 -1
  155. package/dist/dts/features/Discovery/Discovery.js +1 -0
  156. package/dist/dts/features/Discovery/Discovery.js.map +1 -1
  157. package/dist/dts/features/Discovery/DiscoveryIndexPanel.d.ts.map +1 -1
  158. package/dist/dts/features/Discovery/DiscoveryIndexPanel.js +3 -2
  159. package/dist/dts/features/Discovery/DiscoveryIndexPanel.js.map +1 -1
  160. package/dist/dts/features/Discovery/DiscoveryTable.d.ts.map +1 -1
  161. package/dist/dts/features/Discovery/DiscoveryTable.js.map +1 -1
  162. package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.d.ts.map +1 -1
  163. package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.js +13 -3
  164. package/dist/dts/features/Discovery/TableRenderers/DataAccessCellRenderers.js.map +1 -1
  165. package/dist/dts/features/Discovery/types.d.ts +2 -1
  166. package/dist/dts/features/Discovery/types.d.ts.map +1 -1
  167. package/dist/dts/features/Discovery/types.js.map +1 -1
  168. package/dist/dts/features/Workspace/PaymentPanel/PaymentPanel.d.ts.map +1 -1
  169. package/dist/dts/features/Workspace/PaymentPanel/PaymentPanel.js +3 -1
  170. package/dist/dts/features/Workspace/PaymentPanel/PaymentPanel.js.map +1 -1
  171. package/dist/dts/lib/session/session.d.ts.map +1 -1
  172. package/dist/dts/lib/session/session.js +3 -1
  173. package/dist/dts/lib/session/session.js.map +1 -1
  174. package/dist/dts/pages/DataLibrary/DataLibrary.d.ts.map +1 -1
  175. package/dist/dts/pages/DataLibrary/DataLibrary.js +1 -0
  176. package/dist/dts/pages/DataLibrary/DataLibrary.js.map +1 -1
  177. package/dist/dts/pages/DataLibrary/data.js +2 -2
  178. package/dist/dts/pages/DataLibrary/data.js.map +1 -1
  179. package/dist/dts/pages/Discovery/data.d.ts.map +1 -1
  180. package/dist/dts/pages/Discovery/data.js +22 -11
  181. package/dist/dts/pages/Discovery/data.js.map +1 -1
  182. package/dist/dts/types/constants.d.ts +2 -0
  183. package/dist/dts/types/constants.d.ts.map +1 -0
  184. package/dist/dts/types/constants.js +2 -0
  185. package/dist/dts/types/constants.js.map +1 -0
  186. package/dist/dts/utils/sizes.d.ts +4 -0
  187. package/dist/dts/utils/sizes.d.ts.map +1 -0
  188. package/dist/dts/utils/sizes.js +25 -0
  189. package/dist/dts/utils/sizes.js.map +1 -0
  190. package/dist/esm/index.js +385 -86
  191. package/dist/esm/index.js.map +1 -1
  192. package/dist/index.d.ts +4 -3
  193. package/dist/tsconfig.tsbuildinfo +1 -1
  194. package/package.json +3 -3
@@ -0,0 +1,3 @@
1
+ declare const RequestsPanel: () => import("react/jsx-runtime").JSX.Element;
2
+ export default RequestsPanel;
3
+ //# sourceMappingURL=RequestsPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestsPanel.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/Requests/RequestsPanel.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,aAAa,+CAQlB,CAAC;AACF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Group, Stack } from '@mantine/core';
3
+ import RequestsTable from '../Requests/RequestsTable';
4
+ var RequestsPanel = function () {
5
+ return (_jsx(Stack, { className: "w-100 m-2", children: _jsx(Group, { className: "w-100 bg-base-light p-4", children: _jsx(RequestsTable, {}) }) }));
6
+ };
7
+ export default RequestsPanel;
8
+ //# sourceMappingURL=RequestsPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestsPanel.js","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/Requests/RequestsPanel.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,aAAa,MAAM,2BAA2B,CAAC;AAEtD,IAAM,aAAa,GAAG;IACpB,OAAO,CACL,KAAC,KAAK,IAAC,SAAS,EAAC,WAAW,YAC1B,KAAC,KAAK,IAAC,SAAS,EAAC,yBAAyB,YACxC,KAAC,aAAa,KAAG,GACX,GACF,CACT,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const RequestsTable: () => import("react/jsx-runtime").JSX.Element;
2
+ export default RequestsTable;
3
+ //# sourceMappingURL=RequestsTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestsTable.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/Requests/RequestsTable.tsx"],"names":[],"mappings":"AAwBA,QAAA,MAAM,aAAa,+CA8DlB,CAAC;AACF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,67 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
13
+ import { useMemo } from 'react';
14
+ import { MantineReactTable, useMantineReactTable, } from 'mantine-react-table';
15
+ import { selectCohortIdToNameMap } from '../CohortManagerSlice';
16
+ import { selectAllDataAccessRequests } from '../RequestManagerSlice';
17
+ import { useAppSelector } from '../appApi';
18
+ import { useDeepCompareMemo } from 'use-deep-compare';
19
+ import { Text } from '@mantine/core';
20
+ import { formatDate } from '../../../utils/date';
21
+ import { commonTableSettings } from '../tableSettings';
22
+ var RequestsTable = function () {
23
+ var requests = useAppSelector(selectAllDataAccessRequests);
24
+ var columns = useMemo(function () { return [
25
+ {
26
+ accessorKey: 'cohortName',
27
+ header: 'Cohort',
28
+ Cell: function (_a) {
29
+ var cell = _a.cell;
30
+ return (_jsxs(Text, { children: [cell.getValue(), " "] }));
31
+ },
32
+ },
33
+ {
34
+ accessorKey: 'request_datetime',
35
+ header: 'Request Date',
36
+ Cell: function (_a) {
37
+ var cell = _a.cell;
38
+ return (_jsxs(Text, { children: [formatDate(cell.getValue()), " "] }));
39
+ },
40
+ },
41
+ {
42
+ accessorKey: 'status', //normal accessorKey
43
+ header: 'Status',
44
+ Cell: function (_a) {
45
+ var cell = _a.cell;
46
+ return (_jsxs(Text, { children: [cell.getValue(), " "] }));
47
+ },
48
+ cellProps: {
49
+ style: {
50
+ textTransform: 'uppercase',
51
+ },
52
+ },
53
+ },
54
+ ]; }, []);
55
+ var cohortIdToNameMap = useAppSelector(selectCohortIdToNameMap);
56
+ var requestsWithCohorts = useDeepCompareMemo(function () {
57
+ return requests.map(function (request) {
58
+ return __assign(__assign({}, request), { cohortName: (cohortIdToNameMap[request.cohortId] ||
59
+ 'Unknown') });
60
+ });
61
+ }, [requests, cohortIdToNameMap]);
62
+ var size = 'sm';
63
+ var table = useMantineReactTable(__assign({ columns: columns, data: requestsWithCohorts }, commonTableSettings()));
64
+ return (_jsx("div", { className: "inline-block overflow-x-scroll w-full", children: _jsx(MantineReactTable, { table: table }) }));
65
+ };
66
+ export default RequestsTable;
67
+ //# sourceMappingURL=RequestsTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestsTable.js","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/Requests/RequestsTable.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EACL,iBAAiB,EACjB,oBAAoB,GAGrB,MAAM,qBAAqB,CA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CACH,CAAC;IAEF,IAAM,iBAAiB,GAAG,cAAc,CAAC,uBAAuB,CAAC,CAAC;IAElE,IAAM,mBAAmB,GAAG,kBAAkB,CAC5C;QACE,OAAA,QAAQ,CAAC,GAAG,CAAC,UAAC,OAAO;YACnB,6BACK,OAAO,KACV,UAAU,EAAE,CAAC,iBAAiB,CAAC,OAAO,CAAC,QAAQ,CAAC;oBAC9C,SAAS,CAAW,IACtB;QACJ,CAAC,CAAC;IANF,CAME,EACJ,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAC9B,CAAC;IAEF,IAAM,IAAI,GAAG,IAAI,CAAC;IAClB,IAAM,KAAK,GAAG,oBAAoB,YAChC,OAAO,SAAA,EACP,IAAI,EAAE,mBAAmB,IACtB,mBAAmB,EAAqB,EAC3C,CAAC;IAEH,OAAO,CACL,cAAK,SAAS,EAAC,uCAAuC,YACpD,KAAC,iBAAiB,IAAC,KAAK,EAAE,KAAK,GAAI,GAC/B,CACP,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const SavedCohortsPanel: () => import("react/jsx-runtime").JSX.Element;
2
+ export default SavedCohortsPanel;
3
+ //# sourceMappingURL=SavedCohortsPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SavedCohortsPanel.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/SaveCohorts/SavedCohortsPanel.tsx"],"names":[],"mappings":"AASA,QAAA,MAAM,iBAAiB,+CAYtB,CAAC;AACF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { Group, Stack } from '@mantine/core';
3
+ import SavedCohortsTable from './SavedCohortsTable';
4
+ var SavedCohortsPanel = function () {
5
+ var openModal = function (id) { };
6
+ return (_jsx(_Fragment, { children: _jsx(Stack, { className: "w-100 m-2", children: _jsx(Group, { className: "w-100 bg-base-light p-4", children: _jsx(SavedCohortsTable, {}) }) }) }));
7
+ };
8
+ export default SavedCohortsPanel;
9
+ //# sourceMappingURL=SavedCohortsPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SavedCohortsPanel.js","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/SaveCohorts/SavedCohortsPanel.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAS,KAAK,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAOpD,IAAM,iBAAiB,GAAG;IACxB,IAAM,SAAS,GAAG,UAAC,EAAU,IAAM,CAAC,CAAC;IAErC,OAAO,CACL,4BACE,KAAC,KAAK,IAAC,SAAS,EAAC,WAAW,YAC1B,KAAC,KAAK,IAAC,SAAS,EAAC,yBAAyB,YACxC,KAAC,iBAAiB,KAAG,GACf,GACF,GACP,CACJ,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface SavedCohortsTableProps {
3
+ size?: string;
4
+ }
5
+ declare const SavedCohortsTable: React.FC<SavedCohortsTableProps>;
6
+ export default SavedCohortsTable;
7
+ //# sourceMappingURL=SavedCohortsTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SavedCohortsTable.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/SaveCohorts/SavedCohortsTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAmCvC,UAAU,sBAAsB;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AACD,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAwJvD,CAAC;AACF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,101 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
13
+ import { useMemo } from 'react';
14
+ import { useAppDispatch } from '../appApi';
15
+ import { MantineReactTable, useMantineReactTable, } from 'mantine-react-table';
16
+ import { useDeepCompareMemo } from 'use-deep-compare';
17
+ import { ActionIcon, Group, Text, Tooltip, useMantineTheme, } from '@mantine/core';
18
+ import { modals } from '@mantine/modals';
19
+ import { Icon } from '@iconify/react';
20
+ import { IconSize } from '../../../utils/sizes';
21
+ import { selectAllCohorts, removeCohort } from '../CohortManagerSlice';
22
+ import { useAppSelector } from '../appApi';
23
+ import { addDataAccessRequest, selectCohortToRequestId, } from '../RequestManagerSlice';
24
+ import DataAccessRequestForm from '../Requests/DataAccessRequestForm';
25
+ import { formatDate } from '../../../utils/date';
26
+ import { commonTableSettings } from '../tableSettings';
27
+ var SavedCohortsTable = function (_a) {
28
+ var _b = _a.size, size = _b === void 0 ? 'md' : _b;
29
+ var appDispatch = useAppDispatch();
30
+ var columns = useMemo(function () { return [
31
+ {
32
+ accessorKey: 'name', //access nested data with dot notation
33
+ header: 'Name',
34
+ Cell: function (_a) {
35
+ var cell = _a.cell;
36
+ return _jsxs(Text, { children: [cell.getValue(), " "] });
37
+ },
38
+ },
39
+ {
40
+ accessorKey: 'created_datetime',
41
+ header: 'Modified Date',
42
+ Cell: function (_a) {
43
+ var cell = _a.cell;
44
+ return _jsxs(Text, { children: [formatDate(cell.getValue()), " "] });
45
+ },
46
+ },
47
+ {
48
+ accessorKey: 'modified_datetime', //normal accessorKey
49
+ header: 'Created Date',
50
+ Cell: function (_a) {
51
+ var cell = _a.cell;
52
+ return _jsxs(Text, { children: [formatDate(cell.getValue()), " "] });
53
+ },
54
+ },
55
+ {
56
+ accessorKey: 'requested', //normal accessorKey
57
+ header: 'Requested',
58
+ Cell: function (_a) {
59
+ var cell = _a.cell;
60
+ return cell.getValue() === 'true' && (_jsx(Icon, { icon: "gen3:check", height: "2em", width: "2em", color: "green" }));
61
+ },
62
+ },
63
+ ]; }, []);
64
+ var iconSize = IconSize[size] || IconSize['sm'];
65
+ var theme = useMantineTheme();
66
+ var data = useAppSelector(selectAllCohorts);
67
+ var requestByCohortId = useAppSelector(selectCohortToRequestId);
68
+ var tData = useDeepCompareMemo(function () {
69
+ return data.map(function (cohort) { return (__assign(__assign({}, cohort), { requested: (requestByCohortId[cohort.id] ? 'true' : 'false') })); });
70
+ }, [data, requestByCohortId]);
71
+ var handleSubmission = function (cohortId, values) {
72
+ if (cohortId && values) {
73
+ appDispatch(addDataAccessRequest({ cohortId: cohortId, userAccessInformation: values }));
74
+ // Close the modal after successful dispatch
75
+ close();
76
+ }
77
+ };
78
+ var table = useMantineReactTable(__assign(__assign({ columns: columns, data: tData, getRowId: function (originalRow) { return originalRow.id; } }, commonTableSettings()), { positionActionsColumn: 'last', renderRowActions: function (_a) {
79
+ var row = _a.row;
80
+ return (_jsxs(Group, { wrap: "nowrap", gap: "xs", children: [_jsx(Tooltip, { label: "Submit Data Access Request", withArrow: true, children: _jsx(ActionIcon, { color: "accent.4", variant: "transparent", "aria-label": "Submit Data Access Request", onClick: function () {
81
+ var modelId = modals.open({
82
+ title: 'DATA ACCESS REQUEST',
83
+ children: (_jsx(DataAccessRequestForm, { cohortId: row.id, submitFunction: handleSubmission, close: function () { return modals.close(modelId); } })),
84
+ });
85
+ }, children: _jsx(Icon, { icon: "gen3:request", height: iconSize, width: iconSize, color: theme.colors.secondary[4] }) }) }), _jsx(Tooltip, { label: "Select Cohort", withArrow: true, children: _jsx(ActionIcon, { color: "accent.4", variant: "transparent", "aria-label": "Select cohort", onClick: function () { }, children: _jsx(Icon, { icon: "gen3:cohort", height: iconSize, width: iconSize, color: theme.colors.secondary[4] }) }) }), _jsx(Tooltip, { label: "Delete Cohort", withArrow: true, children: _jsx(ActionIcon, { color: "accent.4", variant: "transparent", "aria-label": "Delete saved cohort", onClick: function () {
86
+ modals.openConfirmModal({
87
+ title: 'Delete Cohort',
88
+ centered: true,
89
+ children: (_jsx(Text, { size: "sm", children: "Are you sure you want to delete your cohort? Deleted cohorts cannot be restored." })),
90
+ labels: { confirm: 'Delete Cohort', cancel: 'Cancel' },
91
+ confirmProps: { color: theme.colors.utility[2] },
92
+ onConfirm: function () {
93
+ appDispatch(removeCohort(row.id));
94
+ },
95
+ });
96
+ }, children: _jsx(Icon, { icon: "gen3:delete", height: iconSize, width: iconSize, color: theme.colors.secondary[4] }) }) })] }));
97
+ } }));
98
+ return (_jsx(_Fragment, { children: _jsx("div", { className: "inline-block overflow-x-scroll w-full", children: _jsx(MantineReactTable, { table: table }) }) }));
99
+ };
100
+ export default SavedCohortsTable;
101
+ //# sourceMappingURL=SavedCohortsTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SavedCohortsTable.js","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/SaveCohorts/SavedCohortsTable.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EACL,iBAAiB,EACjB,oBAAoB,GAErB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,EACL,UAAU,EAEV,KAAK,EACL,IAAI,EACJ,OAAO,EACP,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,uB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EAAE;gCACP,MAAM,CAAC,gBAAgB,CAAC;oCACtB,KAAK,EAAE,eAAe;oCACtB,QAAQ,EAAE,IAAI;oCACd,QAAQ,EAAE,CACR,KAAC,IAAI,IAAC,IAAI,EAAC,IAAI,iGAGR,CACR;oCACD,MAAM,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE;oCACtD,YAAY,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;oCAChD,SAAS,EAAE;wCACT,WAAW,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;oCACpC,CAAC;iCACF,CAAC,CAAC;4BACL,CAAC,YAED,KAAC,IAAI,IACH,IAAI,EAAC,aAAa,EAClB,MAAM,EAAE,QAAQ,EAChB,KAAK,EAAE,QAAQ,EACf,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,GAChC,GACS,GACL,IACJ,CACT;QA3E8B,CA2E9B,IACD,CAAC;IAEH,OAAO,CACL,4BACE,cAAK,SAAS,EAAC,uCAAuC,YACpD,KAAC,iBAAiB,IAAC,KAAK,EAAE,KAAK,GAAI,GAC/B,GACL,CACJ,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { NextApiRequest, NextApiResponse } from 'next';
2
+ export default function (req: NextApiRequest, res: NextApiResponse): Promise<void>;
3
+ //# sourceMappingURL=analysisApiCohortDiscovery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analysisApiCohortDiscovery.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/api/analysisApiCohortDiscovery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAQ5D,yBAA+B,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,eAAe,iBAyCvE"}
@@ -0,0 +1,82 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ var __generator = (this && this.__generator) || function (thisArg, body) {
11
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
12
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ function verb(n) { return function (v) { return step([n, v]); }; }
14
+ function step(op) {
15
+ if (f) throw new TypeError("Generator is already executing.");
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
+ if (y = 0, t) op = [op[0] & 2, t.value];
19
+ switch (op[0]) {
20
+ case 0: case 1: t = op; break;
21
+ case 4: _.label++; return { value: op[1], done: false };
22
+ case 5: _.label++; y = op[1]; op = [0]; continue;
23
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
+ default:
25
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
+ if (t[2]) _.ops.pop();
30
+ _.trys.pop(); continue;
31
+ }
32
+ op = body.call(thisArg, _);
33
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
+ }
36
+ };
37
+ import { fetchJSONDataFromURL, GEN3_GUPPY_API, HTTPError, HttpMethod, } from '@gen3/core';
38
+ export default function (req, res) {
39
+ return __awaiter(this, void 0, void 0, function () {
40
+ var _a, query, variables, response, data, error_1;
41
+ return __generator(this, function (_b) {
42
+ switch (_b.label) {
43
+ case 0:
44
+ // Ensure this API route only accepts POST requests
45
+ if (req.method !== 'POST') {
46
+ return [2 /*return*/, res.status(405).json({ error: 'Only POST requests are allowed' })];
47
+ }
48
+ _a = req.body, query = _a.query, variables = _a.variables;
49
+ if (!query) {
50
+ return [2 /*return*/, res.status(400).json({ error: 'GraphQL query is required' })];
51
+ }
52
+ _b.label = 1;
53
+ case 1:
54
+ _b.trys.push([1, 3, , 4]);
55
+ return [4 /*yield*/, fetchJSONDataFromURL("".concat(GEN3_GUPPY_API, "/graphql"), true, HttpMethod.POST, JSON.stringify({ query: query, variables: variables }))];
56
+ case 2:
57
+ response = _b.sent();
58
+ data = response;
59
+ res.status(200).json(data);
60
+ return [3 /*break*/, 4];
61
+ case 3:
62
+ error_1 = _b.sent();
63
+ if (error_1 instanceof HTTPError)
64
+ res
65
+ .status(error_1.status)
66
+ .json({ error: 'HTTP Error', details: error_1.message });
67
+ // Handle any network or unexpected errors
68
+ else if (error_1 instanceof Error)
69
+ res
70
+ .status(500)
71
+ .json({ error: 'Internal Server Error', details: error_1.message });
72
+ else
73
+ res
74
+ .status(500)
75
+ .json({ error: 'Internal Server Error', details: 'Unknown error' });
76
+ return [3 /*break*/, 4];
77
+ case 4: return [2 /*return*/];
78
+ }
79
+ });
80
+ });
81
+ }
82
+ //# sourceMappingURL=analysisApiCohortDiscovery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analysisApiCohortDiscovery.js","sourceRoot":"","sources":["../../../../../src/features/CohortDiscovery/api/analysisApiCohortDiscovery.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EACL,oBAAoB,EACpB,cAAc,EACd,SAAS,EACT,UAAU,GACX,MAAM,YAAY,CAAC;AAEpB,MAAM,CAAC,OAAO,WAAiB,GAAmB,EAAE,GAAoB;;;;;;oBACtE,mDAAmD;oBAEnD,IAAI,GAAG,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;wBAC1B,sBAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,gCAAgC,EAAE,CAAC,EAAC;oBAC3E,CAAC;oBAGK,KAAuB,GAAG,CAAC,IAAI,EAA7B,KAAK,WAAA,EAAE,SAAS,eAAA,CAAc;oBAEtC,IAAI,CAAC,KAAK,EAAE,CAAC;wBACX,sBAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,2BAA2B,EAAE,CAAC,EAAC;oBACtE,CAAC;;;;oBAIkB,qBAAM,oBAAoB,CACzC,UAAG,cAAc,aAAU,EAC3B,IAAI,EACJ,UAAU,CAAC,IAAI,EACf,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,OAAA,EAAE,SAAS,WAAA,EAAE,CAAC,CACrC,EAAA;;oBALK,QAAQ,GAAG,SAKhB;oBAEK,IAAI,GAAG,QAAQ,CAAC;oBAEtB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;oBAE3B,IAAI,OAAK,YAAY,SAAS;wBAC5B,GAAG;6BACA,MAAM,CAAC,OAAK,CAAC,MAAM,CAAC;6BACpB,IAAI,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,OAAK,CAAC,OAAO,EAAE,CAAC,CAAC;oBAC3D,0CAA0C;yBACrC,IAAI,OAAK,YAAY,KAAK;wBAC7B,GAAG;6BACA,MAAM,CAAC,GAAG,CAAC;6BACX,IAAI,CAAC,EAAE,KAAK,EAAE,uBAAuB,EAAE,OAAO,EAAE,OAAK,CAAC,OAAO,EAAE,CAAC,CAAC;;wBAEpE,GAAG;6BACA,MAAM,CAAC,GAAG,CAAC;6BACX,IAAI,CAAC,EAAE,KAAK,EAAE,uBAAuB,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,CAAC;;;;;;CAE3E"}
@@ -1,4 +1,13 @@
1
- declare const reducers: import("redux").Reducer<{
1
+ import type { Action, Reducer } from 'redux';
2
+ import type { PersistConfig, PersistState } from 'redux-persist';
3
+ declare module 'redux-persist' {
4
+ function persistReducer<S, A extends Action = Action, P = S>(config: PersistConfig<S>, baseReducer: Reducer<S, A, P>): Reducer<S & {
5
+ _persist: PersistState;
6
+ }, A, P & {
7
+ _persist?: PersistState;
8
+ }>;
9
+ }
10
+ declare const reducers: Reducer<{
2
11
  selectedIndexFacets: {
3
12
  [x: string]: string[];
4
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"appApi.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortDiscovery/appApi.ts"],"names":[],"mappings":"AAoBA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;GAGZ,CAAC;AAEH,eAAO,MAAQ,EAAE,OAAE,QAAQ,OAAE,UAAU,OAAE,cAAc,OAAE,cAAc,KAKnE,CAAC;AAEL,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"appApi.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortDiscovery/appApi.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,YAA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AS;IACf,OAAO,EAAE,OAAO;CACjB,CAAC,QALa,EAAE,QAAQ,cAAA,EAAE,UAAU,gBAAA,EAAE,cAAc,oBAAA,EAAE,cAAc,oBAAA,CAKlE"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=appApiRTKQ.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appApiRTKQ.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortDiscovery/appApiRTKQ.ts"],"names":[],"mappings":""}
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+ // import { createAppApiForRTKQ } from '@gen3/core';
3
+ // import { filtersExpandedReducer } from './FilterExpandSlice';
4
+ // import { selectedFacetsReducer } from './SelectedFacetsSlice';
5
+ // import { cohortReducer } from './CohortSlice';
6
+ // import { getCookie } from 'cookies-next';
7
+ // import { persistReducer } from 'redux-persist';
8
+ //
9
+ // // import type { PersistConfig, PersistState } from 'redux-persist';
10
+ // // import type { Action, Reducer } from 'redux';
11
+ // // /**
12
+ // // * Update declaration of persistReducer to support redux v5
13
+ // // */
14
+ // // declare module 'redux-persist' {
15
+ // // export function persistReducer<S, A extends Action = Action, P = S>(
16
+ // // config: PersistConfig<S>,
17
+ // // baseReducer: Reducer<S, A, P>,
18
+ // // ): Reducer<
19
+ // // S & { _persist: PersistState },
20
+ // // A,
21
+ // // P & { _persist?: PersistState }
22
+ // // >;
23
+ // // }
24
+ //
25
+ // import storage from './storage-persist';
26
+ //
27
+ // export const _APP_NAME = 'CohortDiscovery'; // This wil be the route name of the app
28
+ // export const _APP_VERSION = '1.0.0';
29
+ //
30
+ // const persistConfig = {
31
+ // key: _APP_NAME,
32
+ // version: 1,
33
+ // storage,
34
+ // // whitelist: ['selectedIndexFacets', 'filtersExpandedState', 'cohorts'],
35
+ // };
36
+ //
37
+ // export interface GraphQLRequest {
38
+ // readonly query: string;
39
+ // readonly variables?: Record<string, unknown>;
40
+ // }
41
+ //
42
+ // // const reducers = combineReducers({
43
+ // // selectedIndexFacets: persistReducer(persistConfig, selectedFacetsReducer),
44
+ // // filtersExpandedState: filtersExpandedReducer,
45
+ // // cohorts: cohortReducer,
46
+ // // });
47
+ //
48
+ // const reducers = {
49
+ // selectedIndexFacets: selectedFacetsReducer,
50
+ // filtersExpandedState: filtersExpandedReducer,
51
+ // cohorts: cohortReducer,
52
+ // };
53
+ //
54
+ // const persistedReducers = persistReducer(persistConfig, reducers);
55
+ //
56
+ // // create the store, context and selector for the Cohort Discovery app
57
+ // // Note the project app has a local store and context which isolates
58
+ // // the filters and other store/cache values
59
+ // export const {
60
+ // appApi: cohortDiscoveryApi,
61
+ // useAppSelector: useAppSelector,
62
+ // useAppDispatch: useAppDispatch,
63
+ // useAppStore: useAppStore,
64
+ // appStore: AppStore,
65
+ // appContext: AppContext,
66
+ // } = createAppApiForRTKQ(
67
+ // 'cohortDiscovery/api',
68
+ // _APP_NAME,
69
+ // _APP_VERSION,
70
+ // reducers,
71
+ // async (query: GraphQLRequest) => {
72
+ // let accessToken = undefined;
73
+ // if (process.env.NODE_ENV === 'development') {
74
+ // // NOTE: This cookie can only be accessed from the client side
75
+ // // in development mode. Otherwise, the cookie is set as httpOnly
76
+ // accessToken = getCookie('credentials_token');
77
+ // }
78
+ //
79
+ // const headers = {
80
+ // Accept: 'application/json',
81
+ // 'Content-Type': 'application/json',
82
+ // 'Access-Control-Allow-Origin': '*',
83
+ // ...(accessToken && { Authorization: `Bearer ${accessToken}` }),
84
+ // };
85
+ //
86
+ // try {
87
+ // const response = await fetch(`/api/analysis/cohortDiscovery`, {
88
+ // headers: headers,
89
+ // method: 'POST',
90
+ // body: JSON.stringify(query),
91
+ // });
92
+ // return { data: await response.json() };
93
+ // } catch (e: unknown) {
94
+ // if (e instanceof Error) return { error: e.message };
95
+ // return { error: e };
96
+ // }
97
+ // },
98
+ // );
99
+ //
100
+ // export type AppState = ReturnType<typeof AppStore.getState>;
101
+ //# sourceMappingURL=appApiRTKQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appApiRTKQ.js","sourceRoot":"","sources":["../../../../src/features/CohortDiscovery/appApiRTKQ.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,gEAAgE;AAChE,iEAAiE;AACjE,iDAAiD;AACjD,4CAA4C;AAC5C,kDAAkD;AAClD,EAAE;AACF,uEAAuE;AACvE,mDAAmD;AACnD,SAAS;AACT,iEAAiE;AACjE,SAAS;AACT,sCAAsC;AACtC,4EAA4E;AAC5E,mCAAmC;AACnC,wCAAwC;AACxC,mBAAmB;AACnB,yCAAyC;AACzC,YAAY;AACZ,yCAAyC;AACzC,UAAU;AACV,OAAO;AACP,EAAE;AACF,2CAA2C;AAC3C,EAAE;AACF,uFAAuF;AACvF,uCAAuC;AACvC,EAAE;AACF,0BAA0B;AAC1B,oBAAoB;AACpB,gBAAgB;AAChB,aAAa;AACb,8EAA8E;AAC9E,KAAK;AACL,EAAE;AACF,oCAAoC;AACpC,4BAA4B;AAC5B,kDAAkD;AAClD,IAAI;AACJ,EAAE;AACF,wCAAwC;AACxC,kFAAkF;AAClF,qDAAqD;AACrD,+BAA+B;AAC/B,SAAS;AACT,EAAE;AACF,qBAAqB;AACrB,gDAAgD;AAChD,kDAAkD;AAClD,4BAA4B;AAC5B,KAAK;AACL,EAAE;AACF,qEAAqE;AACrE,EAAE;AACF,yEAAyE;AACzE,uEAAuE;AACvE,8CAA8C;AAC9C,iBAAiB;AACjB,gCAAgC;AAChC,oCAAoC;AACpC,oCAAoC;AACpC,8BAA8B;AAC9B,wBAAwB;AACxB,4BAA4B;AAC5B,2BAA2B;AAC3B,2BAA2B;AAC3B,eAAe;AACf,kBAAkB;AAClB,cAAc;AACd,uCAAuC;AACvC,mCAAmC;AACnC,oDAAoD;AACpD,uEAAuE;AACvE,yEAAyE;AACzE,sDAAsD;AACtD,QAAQ;AACR,EAAE;AACF,wBAAwB;AACxB,oCAAoC;AACpC,4CAA4C;AAC5C,4CAA4C;AAC5C,wEAAwE;AACxE,SAAS;AACT,EAAE;AACF,YAAY;AACZ,wEAAwE;AACxE,4BAA4B;AAC5B,0BAA0B;AAC1B,uCAAuC;AACvC,YAAY;AACZ,gDAAgD;AAChD,6BAA6B;AAC7B,6DAA6D;AAC7D,6BAA6B;AAC7B,QAAQ;AACR,OAAO;AACP,KAAK;AACL,EAAE;AACF,+DAA+D"}
@@ -0,0 +1,32 @@
1
+ import { Accessibility, GuppyAggregationsResponse, FilterSet } from '@gen3/core';
2
+ interface ErrorDetails {
3
+ status: string;
4
+ message: string;
5
+ error: ErrorDetails | null;
6
+ }
7
+ export declare const useGraphQLData: <TResponse = unknown, TBody = unknown>(url: string, body: TBody) => {
8
+ data: TResponse | undefined;
9
+ isLoading: boolean;
10
+ isSuccess: boolean;
11
+ isError: boolean;
12
+ error: ErrorDetails | null;
13
+ mutate: import("swr").KeyedMutator<TResponse>;
14
+ };
15
+ interface QueryAggsParams {
16
+ type: string;
17
+ fields: ReadonlyArray<string>;
18
+ filters: FilterSet;
19
+ accessibility?: Accessibility;
20
+ }
21
+ export declare const useRoundedAggsQuery: ({ type, fields, filters, accessibility, }: QueryAggsParams) => {
22
+ data: import("@gen3/core").AggregationsData | undefined;
23
+ isLoading: boolean;
24
+ isSuccess: boolean;
25
+ isError: boolean;
26
+ error: ErrorDetails | null;
27
+ mutate: import("swr").KeyedMutator<{
28
+ data: GuppyAggregationsResponse;
29
+ }>;
30
+ };
31
+ export {};
32
+ //# sourceMappingURL=queryApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queryApi.d.ts","sourceRoot":"","sources":["../../../../src/features/CohortDiscovery/queryApi.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,yBAAyB,EAEzB,SAAS,EAGV,MAAM,YAAY,CAAC;AAGpB,UAAU,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,YAAY,GAAG,IAAI,CAAC;CAC5B;AAED,eAAO,MAAM,cAAc,GAAI,SAAS,GAAG,OAAO,EAAE,KAAK,GAAG,OAAO,EACjE,KAAK,MAAM,EACX,MAAM,KAAK;;;;;;;CAyDZ,CAAC;AAEF,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC9B,OAAO,EAAE,SAAS,CAAC;IACnB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B;AAED,eAAO,MAAM,mBAAmB,GAAI,2CAKjC,eAAe;;;;;;;cAEN,yBAAyB;;CAcpC,CAAC"}