@gen3/core 0.10.67 → 0.10.69
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.
- package/LICENSE +201 -0
- package/dist/cjs/index.js +131 -38
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/constants.d.ts +1 -0
- package/dist/dts/constants.d.ts.map +1 -0
- package/dist/dts/dataAccess.d.ts +1 -0
- package/dist/dts/dataAccess.d.ts.map +1 -0
- package/dist/dts/features/aiSearch/aiSearchSlice.d.ts +25 -24
- package/dist/dts/features/aiSearch/aiSearchSlice.d.ts.map +1 -0
- package/dist/dts/features/aiSearch/index.d.ts +1 -0
- package/dist/dts/features/aiSearch/index.d.ts.map +1 -0
- package/dist/dts/features/app/store.d.ts +1 -0
- package/dist/dts/features/app/store.d.ts.map +1 -0
- package/dist/dts/features/authz/authzMappingSlice.d.ts +37 -36
- package/dist/dts/features/authz/authzMappingSlice.d.ts.map +1 -0
- package/dist/dts/features/authz/index.d.ts +1 -0
- package/dist/dts/features/authz/index.d.ts.map +1 -0
- package/dist/dts/features/authz/types.d.ts +1 -0
- package/dist/dts/features/authz/types.d.ts.map +1 -0
- package/dist/dts/features/cohort/cohortBuilderConfigSlice.d.ts +1 -0
- package/dist/dts/features/cohort/cohortBuilderConfigSlice.d.ts.map +1 -0
- package/dist/dts/features/cohort/cohortSlice.d.ts +1 -0
- package/dist/dts/features/cohort/cohortSlice.d.ts.map +1 -0
- package/dist/dts/features/cohort/index.d.ts +1 -0
- package/dist/dts/features/cohort/index.d.ts.map +1 -0
- package/dist/dts/features/cohort/types.d.ts +1 -0
- package/dist/dts/features/cohort/types.d.ts.map +1 -0
- package/dist/dts/features/dataLibrary/dataLibraryApi.d.ts +25 -24
- package/dist/dts/features/dataLibrary/dataLibraryApi.d.ts.map +1 -0
- package/dist/dts/features/dataLibrary/dataLibraryIndexDB.d.ts +1 -0
- package/dist/dts/features/dataLibrary/dataLibraryIndexDB.d.ts.map +1 -0
- package/dist/dts/features/dataLibrary/dataLibrarySelectionSlice.d.ts +1 -0
- package/dist/dts/features/dataLibrary/dataLibrarySelectionSlice.d.ts.map +1 -0
- package/dist/dts/features/dataLibrary/index.d.ts +1 -0
- package/dist/dts/features/dataLibrary/index.d.ts.map +1 -0
- package/dist/dts/features/dataLibrary/types.d.ts +1 -0
- package/dist/dts/features/dataLibrary/types.d.ts.map +1 -0
- package/dist/dts/features/dataLibrary/useDataLibrary.d.ts +1 -0
- package/dist/dts/features/dataLibrary/useDataLibrary.d.ts.map +1 -0
- package/dist/dts/features/dataLibrary/utils.d.ts +1 -0
- package/dist/dts/features/dataLibrary/utils.d.ts.map +1 -0
- package/dist/dts/features/download/constants.d.ts +1 -0
- package/dist/dts/features/download/constants.d.ts.map +1 -0
- package/dist/dts/features/download/downloadStatusApi.d.ts +40 -37
- package/dist/dts/features/download/downloadStatusApi.d.ts.map +1 -0
- package/dist/dts/features/download/index.d.ts +1 -0
- package/dist/dts/features/download/index.d.ts.map +1 -0
- package/dist/dts/features/download/types.d.ts +1 -0
- package/dist/dts/features/download/types.d.ts.map +1 -0
- package/dist/dts/features/drsResolver/drsHostnameSlice.d.ts +1 -0
- package/dist/dts/features/drsResolver/drsHostnameSlice.d.ts.map +1 -0
- package/dist/dts/features/drsResolver/index.d.ts +1 -0
- package/dist/dts/features/drsResolver/index.d.ts.map +1 -0
- package/dist/dts/features/drsResolver/resolvers/cachedDRSResolver.d.ts +1 -0
- package/dist/dts/features/drsResolver/resolvers/cachedDRSResolver.d.ts.map +1 -0
- package/dist/dts/features/drsResolver/resolvers/dataGUIDSDotOrg.d.ts +1 -0
- package/dist/dts/features/drsResolver/resolvers/dataGUIDSDotOrg.d.ts.map +1 -0
- package/dist/dts/features/drsResolver/resolvers/tests/dataGUIDSDotOrg.unit.test.d.ts +1 -0
- package/dist/dts/features/drsResolver/resolvers/tests/dataGUIDSDotOrg.unit.test.d.ts.map +1 -0
- package/dist/dts/features/drsResolver/types.d.ts +1 -0
- package/dist/dts/features/drsResolver/types.d.ts.map +1 -0
- package/dist/dts/features/drsResolver/utils.d.ts +1 -0
- package/dist/dts/features/drsResolver/utils.d.ts.map +1 -0
- package/dist/dts/features/fence/credentialsApi.d.ts +13 -12
- package/dist/dts/features/fence/credentialsApi.d.ts.map +1 -0
- package/dist/dts/features/fence/fenceApi.d.ts +40 -37
- package/dist/dts/features/fence/fenceApi.d.ts.map +1 -0
- package/dist/dts/features/fence/index.d.ts +1 -0
- package/dist/dts/features/fence/index.d.ts.map +1 -0
- package/dist/dts/features/fence/jwtApi.d.ts +13 -12
- package/dist/dts/features/fence/jwtApi.d.ts.map +1 -0
- package/dist/dts/features/fence/types.d.ts +1 -0
- package/dist/dts/features/fence/types.d.ts.map +1 -0
- package/dist/dts/features/fence/utils.d.ts +1 -0
- package/dist/dts/features/fence/utils.d.ts.map +1 -0
- package/dist/dts/features/filters/filters.d.ts +1 -0
- package/dist/dts/features/filters/filters.d.ts.map +1 -0
- package/dist/dts/features/filters/index.d.ts +1 -0
- package/dist/dts/features/filters/index.d.ts.map +1 -0
- package/dist/dts/features/filters/tests/utils.unit.test.d.ts +1 -0
- package/dist/dts/features/filters/tests/utils.unit.test.d.ts.map +1 -0
- package/dist/dts/features/filters/types.d.ts +1 -0
- package/dist/dts/features/filters/types.d.ts.map +1 -0
- package/dist/dts/features/filters/utils.d.ts +1 -0
- package/dist/dts/features/filters/utils.d.ts.map +1 -0
- package/dist/dts/features/gen3/gen3Api.d.ts +1 -0
- package/dist/dts/features/gen3/gen3Api.d.ts.map +1 -0
- package/dist/dts/features/gen3/index.d.ts +1 -0
- package/dist/dts/features/gen3/index.d.ts.map +1 -0
- package/dist/dts/features/gen3Apps/Gen3App.d.ts +1 -0
- package/dist/dts/features/gen3Apps/Gen3App.d.ts.map +1 -0
- package/dist/dts/features/gen3Apps/Gen3AppRTKQ.d.ts +4 -3
- package/dist/dts/features/gen3Apps/Gen3AppRTKQ.d.ts.map +1 -0
- package/dist/dts/features/gen3Apps/constants.d.ts +1 -0
- package/dist/dts/features/gen3Apps/constants.d.ts.map +1 -0
- package/dist/dts/features/gen3Apps/gen3AppRegistry.d.ts +1 -0
- package/dist/dts/features/gen3Apps/gen3AppRegistry.d.ts.map +1 -0
- package/dist/dts/features/gen3Apps/gen3AppsSlice.d.ts +1 -0
- package/dist/dts/features/gen3Apps/gen3AppsSlice.d.ts.map +1 -0
- package/dist/dts/features/gen3Apps/index.d.ts +1 -0
- package/dist/dts/features/gen3Apps/index.d.ts.map +1 -0
- package/dist/dts/features/graphQL/graphQLSlice.d.ts +13 -12
- package/dist/dts/features/graphQL/graphQLSlice.d.ts.map +1 -0
- package/dist/dts/features/graphQL/index.d.ts +1 -0
- package/dist/dts/features/graphQL/index.d.ts.map +1 -0
- package/dist/dts/features/guppy/conversion.d.ts +1 -0
- package/dist/dts/features/guppy/conversion.d.ts.map +1 -0
- package/dist/dts/features/guppy/guppyApi.d.ts +1 -0
- package/dist/dts/features/guppy/guppyApi.d.ts.map +1 -0
- package/dist/dts/features/guppy/guppyDownloadSlice.d.ts +1 -0
- package/dist/dts/features/guppy/guppyDownloadSlice.d.ts.map +1 -0
- package/dist/dts/features/guppy/guppySlice.d.ts +139 -134
- package/dist/dts/features/guppy/guppySlice.d.ts.map +1 -0
- package/dist/dts/features/guppy/index.d.ts +1 -0
- package/dist/dts/features/guppy/index.d.ts.map +1 -0
- package/dist/dts/features/guppy/tests/conversion.unit.test.d.ts +1 -0
- package/dist/dts/features/guppy/tests/conversion.unit.test.d.ts.map +1 -0
- package/dist/dts/features/guppy/tests/downloadFromGuppy.unit.test.d.ts +1 -0
- package/dist/dts/features/guppy/tests/downloadFromGuppy.unit.test.d.ts.map +1 -0
- package/dist/dts/features/guppy/tests/guppySlice.unit.test.d.ts +1 -0
- package/dist/dts/features/guppy/tests/guppySlice.unit.test.d.ts.map +1 -0
- package/dist/dts/features/guppy/tests/jsonpath.unit.test.d.ts +1 -0
- package/dist/dts/features/guppy/tests/jsonpath.unit.test.d.ts.map +1 -0
- package/dist/dts/features/guppy/types.d.ts +1 -0
- package/dist/dts/features/guppy/types.d.ts.map +1 -0
- package/dist/dts/features/guppy/utils.d.ts +1 -0
- package/dist/dts/features/guppy/utils.d.ts.map +1 -0
- package/dist/dts/features/metadata/index.d.ts +3 -2
- package/dist/dts/features/metadata/index.d.ts.map +1 -0
- package/dist/dts/features/metadata/metadataSlice.d.ts +221 -85
- package/dist/dts/features/metadata/metadataSlice.d.ts.map +1 -0
- package/dist/dts/features/metadata/types.d.ts +1 -0
- package/dist/dts/features/metadata/types.d.ts.map +1 -0
- package/dist/dts/features/modals/index.d.ts +1 -0
- package/dist/dts/features/modals/index.d.ts.map +1 -0
- package/dist/dts/features/modals/modalsSlice.d.ts +1 -0
- package/dist/dts/features/modals/modalsSlice.d.ts.map +1 -0
- package/dist/dts/features/sower/index.d.ts +1 -0
- package/dist/dts/features/sower/index.d.ts.map +1 -0
- package/dist/dts/features/sower/sowerApi.d.ts +64 -61
- package/dist/dts/features/sower/sowerApi.d.ts.map +1 -0
- package/dist/dts/features/sower/types.d.ts +1 -0
- package/dist/dts/features/sower/types.d.ts.map +1 -0
- package/dist/dts/features/submission/authMappingUtils.d.ts +1 -0
- package/dist/dts/features/submission/authMappingUtils.d.ts.map +1 -0
- package/dist/dts/features/submission/index.d.ts +1 -0
- package/dist/dts/features/submission/index.d.ts.map +1 -0
- package/dist/dts/features/submission/submissionApi.d.ts +91 -86
- package/dist/dts/features/submission/submissionApi.d.ts.map +1 -0
- package/dist/dts/features/submission/types.d.ts +1 -0
- package/dist/dts/features/submission/types.d.ts.map +1 -0
- package/dist/dts/features/user/externalLoginsSlice.d.ts +55 -50
- package/dist/dts/features/user/externalLoginsSlice.d.ts.map +1 -0
- package/dist/dts/features/user/hooks.d.ts +1 -0
- package/dist/dts/features/user/hooks.d.ts.map +1 -0
- package/dist/dts/features/user/index.d.ts +1 -0
- package/dist/dts/features/user/index.d.ts.map +1 -0
- package/dist/dts/features/user/test/useGetExternalLoginsQuery.unit.test.d.ts +1 -0
- package/dist/dts/features/user/test/useGetExternalLoginsQuery.unit.test.d.ts.map +1 -0
- package/dist/dts/features/user/types.d.ts +1 -0
- package/dist/dts/features/user/types.d.ts.map +1 -0
- package/dist/dts/features/user/userSlice.d.ts +1 -0
- package/dist/dts/features/user/userSlice.d.ts.map +1 -0
- package/dist/dts/features/user/userSliceRTK.d.ts +124 -121
- package/dist/dts/features/user/userSliceRTK.d.ts.map +1 -0
- package/dist/dts/features/user/utils.d.ts +1 -0
- package/dist/dts/features/user/utils.d.ts.map +1 -0
- package/dist/dts/features/workspace/index.d.ts +4 -3
- package/dist/dts/features/workspace/index.d.ts.map +1 -0
- package/dist/dts/features/workspace/types.d.ts +12 -0
- package/dist/dts/features/workspace/types.d.ts.map +1 -0
- package/dist/dts/features/workspace/utils.d.ts +1 -0
- package/dist/dts/features/workspace/utils.d.ts.map +1 -0
- package/dist/dts/features/workspace/workspaceApi.d.ts +617 -90
- package/dist/dts/features/workspace/workspaceApi.d.ts.map +1 -0
- package/dist/dts/features/workspace/workspaceSlice.d.ts +4 -2
- package/dist/dts/features/workspace/workspaceSlice.d.ts.map +1 -0
- package/dist/dts/hooks.d.ts +2 -23
- package/dist/dts/hooks.d.ts.map +1 -0
- package/dist/dts/index.d.ts +1 -0
- package/dist/dts/index.d.ts.map +1 -0
- package/dist/dts/provider.d.ts +1 -0
- package/dist/dts/provider.d.ts.map +1 -0
- package/dist/dts/reducers.d.ts +1 -0
- package/dist/dts/reducers.d.ts.map +1 -0
- package/dist/dts/storage-persist.d.ts +12 -0
- package/dist/dts/storage-persist.d.ts.map +1 -0
- package/dist/dts/store.d.ts +3 -46
- package/dist/dts/store.d.ts.map +1 -0
- package/dist/dts/store.unit.test.d.ts +1 -0
- package/dist/dts/store.unit.test.d.ts.map +1 -0
- package/dist/dts/types/index.d.ts +1 -0
- package/dist/dts/types/index.d.ts.map +1 -0
- package/dist/dts/utils/extractvalues.d.ts +1 -0
- package/dist/dts/utils/extractvalues.d.ts.map +1 -0
- package/dist/dts/utils/fetch.d.ts +3 -2
- package/dist/dts/utils/fetch.d.ts.map +1 -0
- package/dist/dts/utils/index.d.ts +3 -1
- package/dist/dts/utils/index.d.ts.map +1 -0
- package/dist/dts/utils/time.d.ts +8 -0
- package/dist/dts/utils/time.d.ts.map +1 -0
- package/dist/dts/utils/ts-utils.d.ts +1 -0
- package/dist/dts/utils/ts-utils.d.ts.map +1 -0
- package/dist/dts/utils/url.d.ts +1 -0
- package/dist/dts/utils/url.d.ts.map +1 -0
- package/dist/esm/index.js +108 -26
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +1467 -908
- package/package.json +9 -8
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/dist/cjs/index.js
CHANGED
|
@@ -12,9 +12,11 @@ var useSWR = require('swr');
|
|
|
12
12
|
var jsonpathPlus = require('jsonpath-plus');
|
|
13
13
|
var flat = require('flat');
|
|
14
14
|
var Papa = require('papaparse');
|
|
15
|
+
var reduxPersist = require('redux-persist');
|
|
16
|
+
var createWebStorage = require('redux-persist/lib/storage/createWebStorage');
|
|
17
|
+
var react$1 = require('redux-persist/integration/react');
|
|
15
18
|
var Queue = require('queue');
|
|
16
19
|
var uuid = require('uuid');
|
|
17
|
-
var reduxPersist = require('redux-persist');
|
|
18
20
|
var reactCookie = require('react-cookie');
|
|
19
21
|
|
|
20
22
|
function _interopNamespaceDefault(e) {
|
|
@@ -54,12 +56,12 @@ const GEN3_WTS_API = process.env.NEXT_PUBLIC_GEN3_WTS_API || `${GEN3_API}/wts`;
|
|
|
54
56
|
const GEN3_DATA_LIBRARY_API = process.env.NEXT_PUBLIC_GEN3_DATA_LIBRARY_API || `${GEN3_API}/library/lists`;
|
|
55
57
|
const GEN3_CROSSWALK_API = process.env.NEXT_PUBLIC_GEN3_CROSSWALK_API || `${GEN3_API}/mds`;
|
|
56
58
|
const GEN3_SOWER_API = process.env.NEXT_PUBLIC_GEN3_SOWER_API || `${GEN3_API}/jobs`;
|
|
57
|
-
|
|
58
|
-
(function(Accessibility) {
|
|
59
|
+
var Accessibility = /*#__PURE__*/ function(Accessibility) {
|
|
59
60
|
Accessibility["ACCESSIBLE"] = "accessible";
|
|
60
61
|
Accessibility["UNACCESSIBLE"] = "unaccessible";
|
|
61
62
|
Accessibility["ALL"] = "all";
|
|
62
|
-
|
|
63
|
+
return Accessibility;
|
|
64
|
+
}({});
|
|
63
65
|
const FILE_DELIMITERS = {
|
|
64
66
|
tsv: '\t',
|
|
65
67
|
csv: ','
|
|
@@ -637,14 +639,18 @@ const slice$2 = toolkit.createSlice({
|
|
|
637
639
|
const drsHostnamesReducer = slice$2.reducer;
|
|
638
640
|
const { setDRSHostnames } = slice$2.actions;
|
|
639
641
|
|
|
640
|
-
|
|
641
|
-
|
|
642
|
+
/**
|
|
643
|
+
* Defines the modals slice of the Redux store.
|
|
644
|
+
* This slice is used to control the display of standard Gen3 modals.
|
|
645
|
+
* and can be extended to add custom modals by representing them as strings.
|
|
646
|
+
*/ var Modals = /*#__PURE__*/ function(Modals) {
|
|
642
647
|
Modals["FirstTimeModal"] = "FirstTimeModal";
|
|
643
648
|
Modals["SessionExpireModal"] = "SessionExpireModal";
|
|
644
649
|
Modals["NoAccessModal"] = "NoAccessModal";
|
|
645
650
|
Modals["CreateCredentialsAPIKeyModal"] = "CreateCredentialsAPIKeyModal";
|
|
646
651
|
Modals["GeneralErrorModal"] = "GeneralErrorModal";
|
|
647
|
-
|
|
652
|
+
return Modals;
|
|
653
|
+
}({});
|
|
648
654
|
const initialState$2 = {
|
|
649
655
|
currentModal: null
|
|
650
656
|
};
|
|
@@ -1372,8 +1378,9 @@ toolkit.createSelector([
|
|
|
1372
1378
|
(_, rootObjectId)=>rootObjectId
|
|
1373
1379
|
], (dataLibrary, rootObjectId)=>dataLibrary[rootObjectId] || []);
|
|
1374
1380
|
|
|
1375
|
-
|
|
1376
|
-
|
|
1381
|
+
/**
|
|
1382
|
+
* Workspace Pod status
|
|
1383
|
+
*/ var WorkspaceStatus = /*#__PURE__*/ function(WorkspaceStatus) {
|
|
1377
1384
|
WorkspaceStatus["Launching"] = "Launching";
|
|
1378
1385
|
WorkspaceStatus["Running"] = "Running";
|
|
1379
1386
|
WorkspaceStatus["Terminating"] = "Terminating";
|
|
@@ -1381,28 +1388,53 @@ exports.WorkspaceStatus = void 0;
|
|
|
1381
1388
|
WorkspaceStatus["NotFound"] = "Not Found";
|
|
1382
1389
|
WorkspaceStatus["Errored"] = "Errored";
|
|
1383
1390
|
WorkspaceStatus["StatusError"] = "Status Error";
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1391
|
+
return WorkspaceStatus;
|
|
1392
|
+
}({});
|
|
1393
|
+
/**
|
|
1394
|
+
* requested state of pod, either by user or workspace monitor
|
|
1395
|
+
*/ var RequestedWorkspaceStatus = /*#__PURE__*/ function(RequestedWorkspaceStatus) {
|
|
1396
|
+
RequestedWorkspaceStatus["Launch"] = "Launch";
|
|
1397
|
+
RequestedWorkspaceStatus["Terminate"] = "Terminate";
|
|
1398
|
+
RequestedWorkspaceStatus["Unset"] = "Unset";
|
|
1399
|
+
return RequestedWorkspaceStatus;
|
|
1400
|
+
}({});
|
|
1401
|
+
var PodConditionType = /*#__PURE__*/ function(PodConditionType) {
|
|
1387
1402
|
PodConditionType["PodScheduled"] = "PodScheduled";
|
|
1388
1403
|
PodConditionType["Initialized"] = "Initialized";
|
|
1389
1404
|
PodConditionType["ContainersReady"] = "ContainersReady";
|
|
1390
1405
|
PodConditionType["PodReadyToStartContainers"] = "PodReadyToStartContainers";
|
|
1391
1406
|
PodConditionType["ProxyConnected"] = "ProxyConnected";
|
|
1392
1407
|
PodConditionType["Ready"] = "Ready";
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1408
|
+
return PodConditionType;
|
|
1409
|
+
}({});
|
|
1410
|
+
var PodStatus = /*#__PURE__*/ function(PodStatus) {
|
|
1396
1411
|
PodStatus["True"] = "True";
|
|
1397
1412
|
PodStatus["False"] = "False";
|
|
1398
1413
|
PodStatus["Unknown"] = "Unknown";
|
|
1399
|
-
|
|
1414
|
+
return PodStatus;
|
|
1415
|
+
}({});
|
|
1416
|
+
|
|
1417
|
+
// Using the built-in Date object
|
|
1418
|
+
const getCurrentTimestamp = ()=>{
|
|
1419
|
+
return Date.now(); // Returns milliseconds since Unix epoch
|
|
1420
|
+
};
|
|
1421
|
+
// Compare two timestamps and get difference in milliseconds
|
|
1422
|
+
const getTimeDifferenceMs = (startTime, endTime = Date.now())=>{
|
|
1423
|
+
return endTime - startTime;
|
|
1424
|
+
};
|
|
1425
|
+
// Check if time difference is greater than specified minutes
|
|
1426
|
+
const isTimeGreaterThan = (startTime, minutes)=>{
|
|
1427
|
+
const diffMs = getTimeDifferenceMs(startTime);
|
|
1428
|
+
const diffMinutes = diffMs / (1000 * 60);
|
|
1429
|
+
return diffMinutes > minutes;
|
|
1430
|
+
};
|
|
1400
1431
|
|
|
1401
1432
|
const NO_WORKSPACE_ID = 'none';
|
|
1402
1433
|
const initialState = {
|
|
1403
1434
|
id: NO_WORKSPACE_ID,
|
|
1404
|
-
status:
|
|
1405
|
-
requestedStatus:
|
|
1435
|
+
status: WorkspaceStatus.NotFound,
|
|
1436
|
+
requestedStatus: RequestedWorkspaceStatus.Unset,
|
|
1437
|
+
requestedStatusTimestamp: getCurrentTimestamp()
|
|
1406
1438
|
};
|
|
1407
1439
|
const slice = toolkit.createSlice({
|
|
1408
1440
|
name: 'ActiveWorkspace',
|
|
@@ -1430,7 +1462,8 @@ const slice = toolkit.createSlice({
|
|
|
1430
1462
|
setRequestedWorkspaceStatus: (state, action)=>{
|
|
1431
1463
|
return {
|
|
1432
1464
|
...state,
|
|
1433
|
-
requestedStatus: action.payload
|
|
1465
|
+
requestedStatus: action.payload,
|
|
1466
|
+
requestedStatusTimestamp: getCurrentTimestamp()
|
|
1434
1467
|
};
|
|
1435
1468
|
},
|
|
1436
1469
|
setActiveWorkspace: (_state, action)=>{
|
|
@@ -1445,6 +1478,7 @@ const { setActiveWorkspaceId, clearActiveWorkspaceId, setActiveWorkspaceStatus,
|
|
|
1445
1478
|
const selectActiveWorkspaceId = (state)=>state.activeWorkspace.id;
|
|
1446
1479
|
const selectActiveWorkspaceStatus = (state)=>state.activeWorkspace.status;
|
|
1447
1480
|
const selectRequestedWorkspaceStatus = (state)=>state.activeWorkspace.requestedStatus;
|
|
1481
|
+
const selectRequestedWorkspaceStatusTimestamp = (state)=>state.activeWorkspace.requestedStatusTimestamp;
|
|
1448
1482
|
|
|
1449
1483
|
/**
|
|
1450
1484
|
* Creates a base class core API for guppy API calls.
|
|
@@ -1818,7 +1852,7 @@ const useGetStatus = ()=>{
|
|
|
1818
1852
|
}
|
|
1819
1853
|
}),
|
|
1820
1854
|
getRawDataAndTotalCounts: builder.query({
|
|
1821
|
-
query: ({ type, fields, filters, sort, offset = 0, size = 20, accessibility =
|
|
1855
|
+
query: ({ type, fields, filters, sort, offset = 0, size = 20, accessibility = Accessibility.ALL, format = undefined })=>{
|
|
1822
1856
|
const gqlFilter = convertFilterSetToGqlFilter(filters);
|
|
1823
1857
|
const params = [
|
|
1824
1858
|
...sort ? [
|
|
@@ -1875,7 +1909,7 @@ const useGetStatus = ()=>{
|
|
|
1875
1909
|
}
|
|
1876
1910
|
}),
|
|
1877
1911
|
getAggs: builder.query({
|
|
1878
|
-
query: ({ type, fields, filters, accessibility =
|
|
1912
|
+
query: ({ type, fields, filters, accessibility = Accessibility.ALL })=>{
|
|
1879
1913
|
const queryStart = isFilterEmpty(filters) ? `
|
|
1880
1914
|
query getAggs {
|
|
1881
1915
|
_aggregation {
|
|
@@ -1900,7 +1934,7 @@ const useGetStatus = ()=>{
|
|
|
1900
1934
|
}
|
|
1901
1935
|
}),
|
|
1902
1936
|
getSubAggs: builder.query({
|
|
1903
|
-
query: ({ type, mainField, termsFields = undefined, missingFields = undefined, numericAggAsText = false, gqlFilter = undefined, accessibility =
|
|
1937
|
+
query: ({ type, mainField, termsFields = undefined, missingFields = undefined, numericAggAsText = false, gqlFilter = undefined, accessibility = Accessibility.ALL })=>{
|
|
1904
1938
|
const nestedAggFields = {
|
|
1905
1939
|
termsFields: termsFields,
|
|
1906
1940
|
missingFields: missingFields
|
|
@@ -1925,7 +1959,7 @@ const useGetStatus = ()=>{
|
|
|
1925
1959
|
}
|
|
1926
1960
|
}),
|
|
1927
1961
|
getCounts: builder.query({
|
|
1928
|
-
query: ({ type, filters, accessibility =
|
|
1962
|
+
query: ({ type, filters, accessibility = Accessibility.ALL })=>{
|
|
1929
1963
|
const gqlFilters = convertFilterSetToGqlFilter(filters);
|
|
1930
1964
|
const queryLine = `query totalCounts ${gqlFilters ? '($filter: JSON)' : ''}{`;
|
|
1931
1965
|
const typeAggsLine = `${type} ${gqlFilters ? '(filter: $filter, ' : '('} accessibility: ${accessibility}) {`;
|
|
@@ -1949,7 +1983,7 @@ const useGetStatus = ()=>{
|
|
|
1949
1983
|
}
|
|
1950
1984
|
}),
|
|
1951
1985
|
getFieldCountSummary: builder.query({
|
|
1952
|
-
query: ({ type, field, filters, accessibility =
|
|
1986
|
+
query: ({ type, field, filters, accessibility = Accessibility.ALL })=>{
|
|
1953
1987
|
const gqlFilters = convertFilterSetToGqlFilter(filters);
|
|
1954
1988
|
const query = `query summary ($filter: JSON) {
|
|
1955
1989
|
_aggregation {
|
|
@@ -2265,9 +2299,46 @@ const rootReducer = toolkit.combineReducers({
|
|
|
2265
2299
|
[userAuthApiReducerPath]: userAuthApiReducer
|
|
2266
2300
|
});
|
|
2267
2301
|
|
|
2302
|
+
/* eslint @typescript-eslint/no-unused-vars: 0 */ // Credit to: https://github.com/vercel/next.js/discussions/15687
|
|
2303
|
+
const createNoopStorage = ()=>{
|
|
2304
|
+
return {
|
|
2305
|
+
getItem (_key) {
|
|
2306
|
+
return Promise.resolve(null);
|
|
2307
|
+
},
|
|
2308
|
+
setItem (_key, value) {
|
|
2309
|
+
return Promise.resolve(value);
|
|
2310
|
+
},
|
|
2311
|
+
removeItem (_key) {
|
|
2312
|
+
return Promise.resolve();
|
|
2313
|
+
}
|
|
2314
|
+
};
|
|
2315
|
+
};
|
|
2316
|
+
const storage = typeof window !== 'undefined' ? createWebStorage('local') : createNoopStorage();
|
|
2317
|
+
typeof window !== 'undefined' ? createWebStorage('session') : createNoopStorage();
|
|
2318
|
+
|
|
2319
|
+
const persistConfig = {
|
|
2320
|
+
key: 'root',
|
|
2321
|
+
version: 1,
|
|
2322
|
+
storage,
|
|
2323
|
+
whitelist: [
|
|
2324
|
+
'cohorts',
|
|
2325
|
+
'activeWorkspace'
|
|
2326
|
+
]
|
|
2327
|
+
};
|
|
2268
2328
|
const coreStore = toolkit.configureStore({
|
|
2269
|
-
reducer: rootReducer,
|
|
2270
|
-
middleware: (getDefaultMiddleware)=>getDefaultMiddleware(
|
|
2329
|
+
reducer: reduxPersist.persistReducer(persistConfig, rootReducer),
|
|
2330
|
+
middleware: (getDefaultMiddleware)=>getDefaultMiddleware({
|
|
2331
|
+
serializableCheck: {
|
|
2332
|
+
ignoredActions: [
|
|
2333
|
+
reduxPersist.FLUSH,
|
|
2334
|
+
reduxPersist.REHYDRATE,
|
|
2335
|
+
reduxPersist.PAUSE,
|
|
2336
|
+
reduxPersist.PERSIST,
|
|
2337
|
+
reduxPersist.PURGE,
|
|
2338
|
+
reduxPersist.REGISTER
|
|
2339
|
+
]
|
|
2340
|
+
}
|
|
2341
|
+
}).concat(gen3ServicesReducerMiddleware, guppyAPISliceMiddleware, userAuthApiMiddleware)
|
|
2271
2342
|
});
|
|
2272
2343
|
query.setupListeners(coreStore.dispatch);
|
|
2273
2344
|
|
|
@@ -2376,7 +2447,7 @@ const fetchFencePresignedURL = async ({ guid, method = 'GET', onAbort = ()=>null
|
|
|
2376
2447
|
}
|
|
2377
2448
|
throw new HTTPError(response.status, errorMessage, errorData);
|
|
2378
2449
|
}
|
|
2379
|
-
return await response.json();
|
|
2450
|
+
return (await response.json())['url'];
|
|
2380
2451
|
} catch (error) {
|
|
2381
2452
|
if (error instanceof Error) {
|
|
2382
2453
|
if (error.name === 'AbortError') {
|
|
@@ -2387,10 +2458,14 @@ const fetchFencePresignedURL = async ({ guid, method = 'GET', onAbort = ()=>null
|
|
|
2387
2458
|
}
|
|
2388
2459
|
};
|
|
2389
2460
|
|
|
2461
|
+
const persistor = reduxPersist.persistStore(coreStore);
|
|
2390
2462
|
const CoreProvider = ({ children })=>{
|
|
2391
2463
|
return /*#__PURE__*/ React.createElement(reactRedux.Provider, {
|
|
2392
2464
|
store: coreStore
|
|
2393
|
-
},
|
|
2465
|
+
}, /*#__PURE__*/ React.createElement(react$1.PersistGate, {
|
|
2466
|
+
loading: null,
|
|
2467
|
+
persistor: persistor
|
|
2468
|
+
}, children));
|
|
2394
2469
|
};
|
|
2395
2470
|
|
|
2396
2471
|
/**
|
|
@@ -2495,6 +2570,11 @@ const HasEnoughData = (data, keys, limit)=>{
|
|
|
2495
2570
|
url: `metadata?${params}`
|
|
2496
2571
|
})
|
|
2497
2572
|
}),
|
|
2573
|
+
getMetadataById: builder.query({
|
|
2574
|
+
query: (params)=>({
|
|
2575
|
+
url: `${GEN3_MDS_API}/metadata/${params}`
|
|
2576
|
+
})
|
|
2577
|
+
}),
|
|
2498
2578
|
// TODO: Move this to own slice
|
|
2499
2579
|
getCrosswalkData: builder.query({
|
|
2500
2580
|
queryFn: async (arg, _queryApi, _extraOptions, fetchWithBQ)=>{
|
|
@@ -2550,7 +2630,7 @@ const HasEnoughData = (data, keys, limit)=>{
|
|
|
2550
2630
|
})
|
|
2551
2631
|
})
|
|
2552
2632
|
});
|
|
2553
|
-
const { useGetAggMDSQuery, useGetMDSQuery, useGetTagsQuery, useGetDataQuery, useGetCrosswalkDataQuery, useLazyGetCrosswalkDataQuery, useGetIndexAggMDSQuery } = metadataApi;
|
|
2633
|
+
const { useGetAggMDSQuery, useGetMDSQuery, useGetTagsQuery, useGetDataQuery, useGetMetadataByIdQuery, useGetCrosswalkDataQuery, useLazyGetCrosswalkDataQuery, useGetIndexAggMDSQuery } = metadataApi;
|
|
2554
2634
|
|
|
2555
2635
|
// using a random uuid v4 as the namespace
|
|
2556
2636
|
const GEN3_APP_NAMESPACE = '7bfaa818-c69c-457e-8d87-413cf60c25f0';
|
|
@@ -2581,7 +2661,7 @@ const getGen3AppId = (name, version)=>{
|
|
|
2581
2661
|
// });
|
|
2582
2662
|
const Gen3AppWrapper = (props)=>{
|
|
2583
2663
|
React.useEffect(()=>{
|
|
2584
|
-
document.title =
|
|
2664
|
+
document.title = `${name}`;
|
|
2585
2665
|
});
|
|
2586
2666
|
return /*#__PURE__*/ React.createElement(App, props);
|
|
2587
2667
|
};
|
|
@@ -2815,7 +2895,7 @@ const WorkspaceWithTags = gen3Api.enhanceEndpoints({
|
|
|
2815
2895
|
]
|
|
2816
2896
|
});
|
|
2817
2897
|
const EmptyWorkspaceStatusResponse = {
|
|
2818
|
-
status:
|
|
2898
|
+
status: WorkspaceStatus.NotFound,
|
|
2819
2899
|
conditions: [],
|
|
2820
2900
|
containerStates: [],
|
|
2821
2901
|
idleTimeLimit: 0,
|
|
@@ -2874,9 +2954,9 @@ const workspacesApi = WorkspaceWithTags.injectEndpoints({
|
|
|
2874
2954
|
if (workspaceStatus.error) {
|
|
2875
2955
|
return workspaceStatus;
|
|
2876
2956
|
}
|
|
2877
|
-
// TODO:
|
|
2957
|
+
// TODO: Find out IF this is code is required
|
|
2878
2958
|
const workspaceStatusData = workspaceStatus.data;
|
|
2879
|
-
if (workspaceStatusData.status ===
|
|
2959
|
+
if (workspaceStatusData.status === WorkspaceStatus.Running && (currentWorkspaceStatus === 'Not Found' || currentWorkspaceStatus === 'Launching')) {
|
|
2880
2960
|
const proxyStatus = await fetchWithBQ(`${GEN3_WORKSPACE_API}/proxy/`);
|
|
2881
2961
|
let statusError = undefined;
|
|
2882
2962
|
if (isFetchParseError(proxyStatus.error)) {
|
|
@@ -2889,11 +2969,11 @@ const workspacesApi = WorkspaceWithTags.injectEndpoints({
|
|
|
2889
2969
|
return {
|
|
2890
2970
|
data: {
|
|
2891
2971
|
...workspaceStatusData,
|
|
2892
|
-
status:
|
|
2972
|
+
status: WorkspaceStatus.Launching,
|
|
2893
2973
|
conditions: [
|
|
2894
2974
|
{
|
|
2895
2975
|
type: 'ProxyConnected',
|
|
2896
|
-
status:
|
|
2976
|
+
status: PodStatus.False
|
|
2897
2977
|
}
|
|
2898
2978
|
]
|
|
2899
2979
|
}
|
|
@@ -2940,10 +3020,12 @@ const workspaceStatusSelector = workspacesApi.endpoints.getWorkspaceStatus.selec
|
|
|
2940
3020
|
const selectWorkspaceStatusFromService = toolkit.createSelector(workspaceStatusSelector, (status)=>status.data ?? {
|
|
2941
3021
|
...EmptyWorkspaceStatusResponse
|
|
2942
3022
|
});
|
|
2943
|
-
const selectWorkspaceStatus = toolkit.createSelector(workspaceStatusSelector, (status)=>status?.data?.status ??
|
|
3023
|
+
const selectWorkspaceStatus = toolkit.createSelector(workspaceStatusSelector, (status)=>status?.data?.status ?? WorkspaceStatus.NotFound);
|
|
3024
|
+
const paymodelStatusSelector = workspacesApi.endpoints.getWorkspacePayModels.select();
|
|
3025
|
+
const selectPaymodelStatus = toolkit.createSelector(paymodelStatusSelector, (status)=>status);
|
|
2944
3026
|
|
|
2945
|
-
const isWorkspaceActive = (status)=>status ===
|
|
2946
|
-
const isWorkspaceRunningOrStopping = (status)=>status ===
|
|
3027
|
+
const isWorkspaceActive = (status)=>status === WorkspaceStatus.Running || status === WorkspaceStatus.Launching || status === WorkspaceStatus.Terminating;
|
|
3028
|
+
const isWorkspaceRunningOrStopping = (status)=>status === WorkspaceStatus.Running || status === WorkspaceStatus.Terminating;
|
|
2947
3029
|
|
|
2948
3030
|
const resourcePathFromProjectID = (projectID)=>{
|
|
2949
3031
|
const split = projectID.split('-');
|
|
@@ -3184,6 +3266,7 @@ const { useGetProjectsQuery, useGetSubmissionGraphQLQuery, useGetProjectsDetails
|
|
|
3184
3266
|
});
|
|
3185
3267
|
const { useGetSowerJobListQuery, useLazyGetSowerJobListQuery, useSubmitSowerJobMutation, useGetSowerJobStatusQuery, useGetSowerOutputQuery, useGetSowerServiceStatusQuery } = loadingStatusApi;
|
|
3186
3268
|
|
|
3269
|
+
exports.Accessibility = Accessibility;
|
|
3187
3270
|
exports.CoreProvider = CoreProvider;
|
|
3188
3271
|
exports.EmptyWorkspaceStatusResponse = EmptyWorkspaceStatusResponse;
|
|
3189
3272
|
exports.GEN3_API = GEN3_API;
|
|
@@ -3201,6 +3284,11 @@ exports.GEN3_SUBMISSION_API = GEN3_SUBMISSION_API;
|
|
|
3201
3284
|
exports.GEN3_WORKSPACE_API = GEN3_WORKSPACE_API;
|
|
3202
3285
|
exports.HTTPError = HTTPError;
|
|
3203
3286
|
exports.HTTPErrorMessages = HTTPErrorMessages;
|
|
3287
|
+
exports.Modals = Modals;
|
|
3288
|
+
exports.PodConditionType = PodConditionType;
|
|
3289
|
+
exports.PodStatus = PodStatus;
|
|
3290
|
+
exports.RequestedWorkspaceStatus = RequestedWorkspaceStatus;
|
|
3291
|
+
exports.WorkspaceStatus = WorkspaceStatus;
|
|
3204
3292
|
exports.clearActiveWorkspaceId = clearActiveWorkspaceId;
|
|
3205
3293
|
exports.clearCohortFilters = clearCohortFilters;
|
|
3206
3294
|
exports.clearDataLibrarySelection = clearDataLibrarySelection;
|
|
@@ -3227,6 +3315,7 @@ exports.fetchJson = fetchJson;
|
|
|
3227
3315
|
exports.fetchUserState = fetchUserState;
|
|
3228
3316
|
exports.fieldNameToTitle = fieldNameToTitle;
|
|
3229
3317
|
exports.gen3Api = gen3Api;
|
|
3318
|
+
exports.getCurrentTimestamp = getCurrentTimestamp;
|
|
3230
3319
|
exports.getGen3AppId = getGen3AppId;
|
|
3231
3320
|
exports.getNumberOfItemsInDatalist = getNumberOfItemsInDatalist;
|
|
3232
3321
|
exports.getTimestamp = getTimestamp;
|
|
@@ -3268,6 +3357,7 @@ exports.isPending = isPending;
|
|
|
3268
3357
|
exports.isProgramUrl = isProgramUrl;
|
|
3269
3358
|
exports.isRootUrl = isRootUrl;
|
|
3270
3359
|
exports.isString = isString;
|
|
3360
|
+
exports.isTimeGreaterThan = isTimeGreaterThan;
|
|
3271
3361
|
exports.isWorkspaceActive = isWorkspaceActive;
|
|
3272
3362
|
exports.isWorkspaceRunningOrStopping = isWorkspaceRunningOrStopping;
|
|
3273
3363
|
exports.listifyMethodsFromMapping = listifyMethodsFromMapping;
|
|
@@ -3296,7 +3386,9 @@ exports.selectGen3AppMetadataByName = selectGen3AppMetadataByName;
|
|
|
3296
3386
|
exports.selectHeadersWithCSRFToken = selectHeadersWithCSRFToken;
|
|
3297
3387
|
exports.selectIndexFilters = selectIndexFilters;
|
|
3298
3388
|
exports.selectIndexedFilterByName = selectIndexedFilterByName;
|
|
3389
|
+
exports.selectPaymodelStatus = selectPaymodelStatus;
|
|
3299
3390
|
exports.selectRequestedWorkspaceStatus = selectRequestedWorkspaceStatus;
|
|
3391
|
+
exports.selectRequestedWorkspaceStatusTimestamp = selectRequestedWorkspaceStatusTimestamp;
|
|
3300
3392
|
exports.selectUser = selectUser;
|
|
3301
3393
|
exports.selectUserAuthStatus = selectUserAuthStatus;
|
|
3302
3394
|
exports.selectUserData = selectUserData;
|
|
@@ -3352,6 +3444,7 @@ exports.useGetIndexFields = useGetIndexFields;
|
|
|
3352
3444
|
exports.useGetJWKKeysQuery = useGetJWKKeysQuery;
|
|
3353
3445
|
exports.useGetLoginProvidersQuery = useGetLoginProvidersQuery;
|
|
3354
3446
|
exports.useGetMDSQuery = useGetMDSQuery;
|
|
3447
|
+
exports.useGetMetadataByIdQuery = useGetMetadataByIdQuery;
|
|
3355
3448
|
exports.useGetProjectsDetailsQuery = useGetProjectsDetailsQuery;
|
|
3356
3449
|
exports.useGetProjectsQuery = useGetProjectsQuery;
|
|
3357
3450
|
exports.useGetRawDataAndTotalCountsQuery = useGetRawDataAndTotalCountsQuery;
|