@gen3/core 0.11.11 → 0.11.13
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/dist/cjs/index.js +17 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/coreCreateApi.d.ts +4 -0
- package/dist/dts/coreCreateApi.d.ts.map +1 -0
- package/dist/dts/features/aiSearch/aiSearchSlice.d.ts +22 -22
- package/dist/dts/features/authz/authzMappingSlice.d.ts +49 -49
- package/dist/dts/features/cohort/cohortSlice.d.ts +4 -3
- package/dist/dts/features/cohort/cohortSlice.d.ts.map +1 -1
- package/dist/dts/features/cohort/index.d.ts +2 -2
- package/dist/dts/features/cohort/index.d.ts.map +1 -1
- package/dist/dts/features/download/downloadStatusApi.d.ts +33 -33
- package/dist/dts/features/fence/credentialsApi.d.ts +16 -16
- package/dist/dts/features/fence/fenceApi.d.ts +48 -48
- package/dist/dts/features/fence/jwtApi.d.ts +10 -10
- package/dist/dts/features/filters/filters.d.ts +11 -0
- package/dist/dts/features/filters/filters.d.ts.map +1 -1
- package/dist/dts/features/filters/index.d.ts +2 -2
- package/dist/dts/features/filters/index.d.ts.map +1 -1
- package/dist/dts/features/filters/types.d.ts +0 -13
- package/dist/dts/features/filters/types.d.ts.map +1 -1
- package/dist/dts/features/graphQL/graphQLSlice.d.ts +10 -10
- package/dist/dts/features/guppy/guppyDownloadSlice.d.ts +2 -2
- package/dist/dts/features/guppy/guppySlice.d.ts +126 -126
- package/dist/dts/features/manifest/manifestApi.d.ts +75 -75
- package/dist/dts/features/metadata/metadataSlice.d.ts +79 -79
- package/dist/dts/features/requestor/requestorSlice.d.ts +51 -51
- package/dist/dts/features/sower/sowerApi.d.ts +51 -51
- package/dist/dts/features/submission/submissionApi.d.ts +68 -68
- package/dist/dts/features/user/externalLoginsSlice.d.ts +38 -38
- package/dist/dts/features/user/userSliceRTK.d.ts +88 -88
- package/dist/dts/features/user/userSliceRTK.d.ts.map +1 -1
- package/dist/dts/features/workspace/workspaceApi.d.ts +102 -102
- package/dist/dts/hooks.d.ts +71 -4
- package/dist/dts/hooks.d.ts.map +1 -1
- package/dist/dts/index.d.ts +1 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/reducers.d.ts +4 -4
- package/dist/dts/store.d.ts +9 -8
- package/dist/dts/store.d.ts.map +1 -1
- package/dist/esm/index.js +16 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +858 -787
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -395,6 +395,7 @@ const { useGetJWKKeysQuery } = jwtApi;
|
|
|
395
395
|
* correct opinionated type.
|
|
396
396
|
*/ const useCoreSelector = reactRedux.useSelector.withTypes();
|
|
397
397
|
const useCoreDispatch = reactRedux.useDispatch.withTypes();
|
|
398
|
+
const useCoreStore = reactRedux.useStore.withTypes();
|
|
398
399
|
|
|
399
400
|
/**
|
|
400
401
|
* Creates an async thunk for fetching user permissions details from fence
|
|
@@ -820,7 +821,7 @@ const guppyApiReducer = guppyApi.reducer;
|
|
|
820
821
|
* Cohorts in Gen3 are defined as a set of filters for each index in the data.
|
|
821
822
|
* This means one cohort id defined for all "tabs" in CohortBuilder (explorer)
|
|
822
823
|
* Switching a cohort is means that all the cohorts for the index changes.
|
|
823
|
-
*/ const UNSAVED_COHORT_NAME = '
|
|
824
|
+
*/ const UNSAVED_COHORT_NAME = 'Cohort';
|
|
824
825
|
const NULL_COHORT_ID = 'null_cohort_id';
|
|
825
826
|
const newCohort = ({ filters = {}, customName })=>{
|
|
826
827
|
const ts = new Date();
|
|
@@ -1066,6 +1067,10 @@ const selectCohortFilters = (state)=>{
|
|
|
1066
1067
|
const currentCohortId = getCurrentCohortFromCoreState(state);
|
|
1067
1068
|
return state.cohorts.cohort.entities[currentCohortId]?.filters;
|
|
1068
1069
|
};
|
|
1070
|
+
const selectCurrentCohortFilters = (state)=>{
|
|
1071
|
+
const currentCohortId = getCurrentCohortFromCoreState(state);
|
|
1072
|
+
return state.cohorts.cohort.entities[currentCohortId]?.filters;
|
|
1073
|
+
};
|
|
1069
1074
|
const selectCurrentCohortId = (state)=>{
|
|
1070
1075
|
return getCurrentCohort(state.cohorts.cohort);
|
|
1071
1076
|
};
|
|
@@ -4876,6 +4881,14 @@ const selectPaymodelStatus = toolkit.createSelector(paymodelStatusSelector, (sta
|
|
|
4876
4881
|
const isWorkspaceActive = (status)=>status === WorkspaceStatus.Running || status === WorkspaceStatus.Launching || status === WorkspaceStatus.Terminating;
|
|
4877
4882
|
const isWorkspaceRunningOrStopping = (status)=>status === WorkspaceStatus.Running || status === WorkspaceStatus.Terminating;
|
|
4878
4883
|
|
|
4884
|
+
const coreCreateApi = react.buildCreateApi(react.coreModule(), react.reactHooksModule({
|
|
4885
|
+
hooks: {
|
|
4886
|
+
useSelector: useCoreSelector,
|
|
4887
|
+
useStore: useCoreStore,
|
|
4888
|
+
useDispatch: useCoreDispatch
|
|
4889
|
+
}
|
|
4890
|
+
}));
|
|
4891
|
+
|
|
4879
4892
|
exports.Accessibility = Accessibility;
|
|
4880
4893
|
exports.CoreProvider = CoreProvider;
|
|
4881
4894
|
exports.DataLibraryStoreMode = DataLibraryStoreMode;
|
|
@@ -4915,6 +4928,7 @@ exports.convertFilterSetToGqlFilter = convertFilterSetToGqlFilter;
|
|
|
4915
4928
|
exports.convertFilterToGqlFilter = convertFilterToGqlFilter;
|
|
4916
4929
|
exports.convertToHistogramDataAsStringKey = convertToHistogramDataAsStringKey;
|
|
4917
4930
|
exports.convertToQueryString = convertToQueryString;
|
|
4931
|
+
exports.coreCreateApi = coreCreateApi;
|
|
4918
4932
|
exports.coreStore = coreStore;
|
|
4919
4933
|
exports.createAppApiForRTKQ = createAppApiForRTKQ;
|
|
4920
4934
|
exports.createAppStore = createAppStore;
|
|
@@ -5024,6 +5038,7 @@ exports.selectCohortFilterCombineMode = selectCohortFilterCombineMode;
|
|
|
5024
5038
|
exports.selectCohortFilterExpanded = selectCohortFilterExpanded;
|
|
5025
5039
|
exports.selectCohortFilters = selectCohortFilters;
|
|
5026
5040
|
exports.selectCurrentCohort = selectCurrentCohort;
|
|
5041
|
+
exports.selectCurrentCohortFilters = selectCurrentCohortFilters;
|
|
5027
5042
|
exports.selectCurrentCohortId = selectCurrentCohortId;
|
|
5028
5043
|
exports.selectCurrentCohortModified = selectCurrentCohortModified;
|
|
5029
5044
|
exports.selectCurrentCohortName = selectCurrentCohortName;
|
|
@@ -5075,6 +5090,7 @@ exports.useAskQuestionMutation = useAskQuestionMutation;
|
|
|
5075
5090
|
exports.useAuthorizeFromCredentialsMutation = useAuthorizeFromCredentialsMutation;
|
|
5076
5091
|
exports.useCoreDispatch = useCoreDispatch;
|
|
5077
5092
|
exports.useCoreSelector = useCoreSelector;
|
|
5093
|
+
exports.useCoreStore = useCoreStore;
|
|
5078
5094
|
exports.useCreateAuthzResourceMutation = useCreateAuthzResourceMutation;
|
|
5079
5095
|
exports.useCreateRequestMutation = useCreateRequestMutation;
|
|
5080
5096
|
exports.useDataLibrary = useDataLibrary;
|