@gen3/core 0.10.94 → 0.10.95
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 +386 -122
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/constants.d.ts +1 -0
- package/dist/dts/constants.d.ts.map +1 -1
- package/dist/dts/features/cohort/cohortSlice.d.ts +152 -77
- 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/cohort/reducers.d.ts +2 -2
- package/dist/dts/features/cohort/utils.d.ts +2 -0
- package/dist/dts/features/cohort/utils.d.ts.map +1 -0
- package/dist/dts/features/filters/filters.d.ts +17 -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/tests/filters.unit.test.d.ts +2 -0
- package/dist/dts/features/filters/tests/filters.unit.test.d.ts.map +1 -0
- package/dist/dts/features/gen3Apps/Gen3AppRTKQ.d.ts +4 -8
- package/dist/dts/features/gen3Apps/Gen3AppRTKQ.d.ts.map +1 -1
- package/dist/dts/features/guppy/guppySlice.d.ts +3 -1
- package/dist/dts/features/guppy/guppySlice.d.ts.map +1 -1
- package/dist/dts/features/guppy/index.d.ts +2 -0
- package/dist/dts/features/guppy/index.d.ts.map +1 -1
- package/dist/dts/features/guppy/processing.d.ts +20 -0
- package/dist/dts/features/guppy/processing.d.ts.map +1 -0
- package/dist/dts/features/guppy/tests/processing.unit.test.d.ts +2 -0
- package/dist/dts/features/guppy/tests/processing.unit.test.d.ts.map +1 -0
- package/dist/dts/features/requestor/index.d.ts +2 -0
- package/dist/dts/features/requestor/index.d.ts.map +1 -0
- package/dist/dts/features/requestor/requestorSlice.d.ts +298 -0
- package/dist/dts/features/requestor/requestorSlice.d.ts.map +1 -0
- package/dist/dts/features/user/index.d.ts +2 -2
- package/dist/dts/features/user/index.d.ts.map +1 -1
- package/dist/dts/features/user/userSliceRTK.d.ts +171 -4
- package/dist/dts/features/user/userSliceRTK.d.ts.map +1 -1
- package/dist/dts/hooks.d.ts +2 -2
- package/dist/dts/index.d.ts +1 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/reducers.d.ts +3 -3
- package/dist/dts/store.d.ts +4 -4
- package/dist/dts/types/index.d.ts +12 -6
- package/dist/dts/types/index.d.ts.map +1 -1
- package/dist/dts/utils/extractvalues.d.ts +1 -4
- package/dist/dts/utils/extractvalues.d.ts.map +1 -1
- package/dist/dts/utils/fetch.d.ts +1 -1
- package/dist/dts/utils/fetch.d.ts.map +1 -1
- package/dist/esm/index.js +371 -124
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +5459 -4916
- package/package.json +2 -2
package/dist/dts/constants.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export declare const GEN3_DATA_LIBRARY_API: string;
|
|
|
19
19
|
export declare const GEN3_CROSSWALK_API: string;
|
|
20
20
|
export declare const GEN3_SOWER_API: string;
|
|
21
21
|
export declare const GEN3_MANIFEST_API: string;
|
|
22
|
+
export declare const GEN3_REQUESTOR_API: string;
|
|
22
23
|
export declare enum Accessibility {
|
|
23
24
|
ACCESSIBLE = "accessible",
|
|
24
25
|
UNACCESSIBLE = "unaccessible",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,QACuB,CAAC;AACtD,eAAO,MAAM,QAAQ,QAAyC,CAAC;AAC/D,eAAO,MAAM,WAAW,QAA4C,CAAC;AACrE,eAAO,MAAM,mBAAmB,QAAuB,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,cAAc,QACoC,CAAC;AAChE,eAAO,MAAM,YAAY,QACkC,CAAC;AAC5D,eAAO,MAAM,uBAA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M,kBAAkB,QAC0C,CAAC;AAE1E,oBAAY,aAAa;IACvB,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,GAAG,QAAQ;CACZ;AAED,eAAO,MAAM,YAAY;;;;CAIxB,CAAC;AAEF,eAAO,MAAM,eAAe;;;CAG3B,CAAC"}
|
|
@@ -1,17 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type
|
|
1
|
+
import { EntityState, type PayloadAction, ThunkAction, UnknownAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { type CoreState } from '../../reducers';
|
|
3
3
|
import { Operation, FilterSet, IndexedFilterSet } from '../filters';
|
|
4
|
+
/**
|
|
5
|
+
* Cohorts in Gen3 are defined as a set of filters for each index in the data.
|
|
6
|
+
* This means one cohort id defined for all "tabs" in CohortBuilder (explorer)
|
|
7
|
+
* Switching a cohort is means that all the cohorts for the index changes.
|
|
8
|
+
*/
|
|
9
|
+
export declare const UNSAVED_COHORT_NAME = "Unsaved_Cohort";
|
|
10
|
+
export declare const NULL_COHORT_ID = "null_cohort_id";
|
|
11
|
+
type CohortId = string;
|
|
12
|
+
/**
|
|
13
|
+
* A Cohort is a collection of filters that can be used to query the GDC API.
|
|
14
|
+
* The cohort interface is used to manage the cohort state in the redux-toolkit entity adapter.
|
|
15
|
+
* @see https://redux-toolkit.js.org/api/createEntityAdapter
|
|
16
|
+
*
|
|
17
|
+
* @property id - the id of the cohort
|
|
18
|
+
* @property name - the name of the cohort
|
|
19
|
+
* @property filters - the filters for the cohort
|
|
20
|
+
* @property modified - flag indicating if the cohort has been modified
|
|
21
|
+
* @property modified_datetime - the last time the cohort was modified
|
|
22
|
+
* @property saved - flag indicating if the cohort has been saved
|
|
23
|
+
* @category Cohort
|
|
24
|
+
*/
|
|
4
25
|
export interface Cohort {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
26
|
+
id: CohortId;
|
|
27
|
+
name: string;
|
|
28
|
+
filters: IndexedFilterSet;
|
|
29
|
+
modified?: boolean;
|
|
30
|
+
modified_datetime: string;
|
|
31
|
+
saved?: boolean;
|
|
10
32
|
}
|
|
11
|
-
export interface
|
|
12
|
-
|
|
33
|
+
export interface CurrentCohortState {
|
|
34
|
+
currentCohort?: string;
|
|
35
|
+
message?: string[];
|
|
13
36
|
}
|
|
14
|
-
export declare const EmptyCohort: Cohort;
|
|
15
37
|
interface UpdateFilterParams {
|
|
16
38
|
index: string;
|
|
17
39
|
field: string;
|
|
@@ -28,82 +50,89 @@ interface RemoveFilterParams {
|
|
|
28
50
|
index: string;
|
|
29
51
|
field: string;
|
|
30
52
|
}
|
|
53
|
+
export declare const createCohortName: (postfix: string) => string;
|
|
31
54
|
interface ClearAllFilterParams {
|
|
32
55
|
index: string;
|
|
33
56
|
}
|
|
57
|
+
export declare const createCohortId: () => string;
|
|
34
58
|
/**
|
|
35
59
|
* Redux slice for cohort filters
|
|
36
60
|
*/
|
|
37
|
-
export declare const cohortSlice: import("@reduxjs/toolkit").Slice<
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
removeCohortFilter: (state: Draft<CohortState>, action: PayloadAction<RemoveFilterParams>) => {
|
|
77
|
-
cohort: {
|
|
78
|
-
filters: {
|
|
79
|
-
[x: string]: import("immer").WritableDraft<FilterSet> | {
|
|
80
|
-
mode: "and" | "or";
|
|
81
|
-
root: {
|
|
82
|
-
[x: string]: import("immer").WritableDraft<import("../filters").Intersection> | import("immer").WritableDraft<import("../filters").Union> | import("immer").WritableDraft<import("../filters").Includes> | import("immer").WritableDraft<import("../filters").Equals> | import("immer").WritableDraft<import("../filters").NotEquals> | import("immer").WritableDraft<import("../filters").LessThan> | import("immer").WritableDraft<import("../filters").LessThanOrEquals> | import("immer").WritableDraft<import("../filters").GreaterThan> | import("immer").WritableDraft<import("../filters").GreaterThanOrEquals> | import("immer").WritableDraft<import("../filters").NestedFilter> | import("immer").WritableDraft<import("../filters").ExcludeIfAny> | import("immer").WritableDraft<import("../filters").Excludes>;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
id: string;
|
|
87
|
-
name: string;
|
|
88
|
-
modified?: boolean | undefined;
|
|
89
|
-
modified_datetime: string;
|
|
61
|
+
export declare const cohortSlice: import("@reduxjs/toolkit").Slice<EntityState<Cohort, string> & CurrentCohortState, {
|
|
62
|
+
addNewDefaultUnsavedCohort: (state: import("immer").WritableDraft<EntityState<Cohort, string> & CurrentCohortState>) => void;
|
|
63
|
+
updateCohortName: (state: import("immer").WritableDraft<EntityState<Cohort, string> & CurrentCohortState>, action: PayloadAction<string>) => void;
|
|
64
|
+
removeCohort: (state: import("immer").WritableDraft<EntityState<Cohort, string> & CurrentCohortState>, action: PayloadAction<{
|
|
65
|
+
shouldShowMessage?: boolean;
|
|
66
|
+
id?: string;
|
|
67
|
+
}>) => void;
|
|
68
|
+
updateCohortFilter: (state: import("immer").WritableDraft<EntityState<Cohort, string> & CurrentCohortState>, action: PayloadAction<UpdateFilterParams>) => void;
|
|
69
|
+
setCohortFilter: (state: import("immer").WritableDraft<EntityState<Cohort, string> & CurrentCohortState>, action: PayloadAction<SetFilterParams>) => void;
|
|
70
|
+
setCohortIndexFilters: (state: import("immer").WritableDraft<EntityState<Cohort, string> & CurrentCohortState>, action: PayloadAction<SetAllIndexFiltersParams>) => void;
|
|
71
|
+
removeCohortFilter: (state: import("immer").WritableDraft<EntityState<Cohort, string> & CurrentCohortState>, action: PayloadAction<RemoveFilterParams>) => void;
|
|
72
|
+
clearCohortFilters: (state: import("immer").WritableDraft<EntityState<Cohort, string> & CurrentCohortState>, action: PayloadAction<ClearAllFilterParams>) => void;
|
|
73
|
+
discardCohortChanges: (state: import("immer").WritableDraft<EntityState<Cohort, string> & CurrentCohortState>, action: PayloadAction<{
|
|
74
|
+
filters: FilterSet | undefined;
|
|
75
|
+
index: string;
|
|
76
|
+
id?: string;
|
|
77
|
+
}>) => void;
|
|
78
|
+
setCurrentCohortId: (state: import("immer").WritableDraft<EntityState<Cohort, string> & CurrentCohortState>, action: PayloadAction<string>) => void;
|
|
79
|
+
/** @hidden */
|
|
80
|
+
setCohortList: (state: import("immer").WritableDraft<EntityState<Cohort, string> & CurrentCohortState>, action: PayloadAction<Cohort[]>) => void;
|
|
81
|
+
}, "cohort", "cohort", import("@reduxjs/toolkit").SliceSelectors<EntityState<Cohort, string> & CurrentCohortState>>;
|
|
82
|
+
/**
|
|
83
|
+
* Returns the selectors for the cohorts EntityAdapter
|
|
84
|
+
* @param state - the CoreState
|
|
85
|
+
*
|
|
86
|
+
* @hidden
|
|
87
|
+
*/
|
|
88
|
+
export declare const cohortSelectors: import("@reduxjs/toolkit").EntitySelectors<Cohort, {
|
|
89
|
+
[x: string]: any;
|
|
90
|
+
gen3Services: any;
|
|
91
|
+
user: import("../user/userSlice").Gen3UserState;
|
|
92
|
+
gen3Apps: import("../gen3Apps/gen3AppsSlice").Gen3AppsState;
|
|
93
|
+
drsHostnames: Record<string, string>;
|
|
94
|
+
modals: import("../modals/modalsSlice").ModalState;
|
|
95
|
+
cohorts: {
|
|
96
|
+
filtersExpanded: {
|
|
97
|
+
[x: string]: Record<string, boolean>;
|
|
90
98
|
};
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
cohort: {
|
|
94
|
-
filters: {
|
|
95
|
-
[x: string]: FilterSet | import("immer").WritableDraft<FilterSet>;
|
|
96
|
-
};
|
|
97
|
-
id: string;
|
|
98
|
-
name: string;
|
|
99
|
-
modified?: boolean | undefined;
|
|
100
|
-
modified_datetime: string;
|
|
99
|
+
filtersCombineMode: {
|
|
100
|
+
[x: string]: Record<string, import("./types").CombineMode>;
|
|
101
101
|
};
|
|
102
|
+
sharedFilters: import("./sharedFiltersSlice").SharedFiltersState;
|
|
103
|
+
cohort: EntityState<Cohort, string> & CurrentCohortState;
|
|
102
104
|
};
|
|
103
|
-
|
|
104
|
-
|
|
105
|
+
activeWorkspace: import("../workspace/workspaceSlice").WorkspaceState;
|
|
106
|
+
userAuthApi: import("@reduxjs/toolkit/query").CombinedState<{
|
|
107
|
+
fetchUserDetails: import("@reduxjs/toolkit/query").QueryDefinition<void, ({ endpoint }: any, { getState }: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
|
|
108
|
+
data: {};
|
|
109
|
+
} | {
|
|
110
|
+
data: import("../fence").Gen3FenceResponse<unknown>;
|
|
111
|
+
}>, never, import("../user/userSliceRTK").UserAuthResponse, "userAuthApi">;
|
|
112
|
+
getCSRF: import("@reduxjs/toolkit/query").QueryDefinition<void, ({ endpoint }: any, { getState }: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
|
|
113
|
+
data: {};
|
|
114
|
+
} | {
|
|
115
|
+
data: import("../fence").Gen3FenceResponse<unknown>;
|
|
116
|
+
}>, never, import("../user").CSRFToken, "userAuthApi">;
|
|
117
|
+
}, never, "userAuthApi">;
|
|
118
|
+
}, string>;
|
|
119
|
+
/**
|
|
120
|
+
* Returns an array of all the cohorts
|
|
121
|
+
* @param state - the CoreState
|
|
122
|
+
* @category Cohort
|
|
123
|
+
* @category Selectors
|
|
124
|
+
*/
|
|
125
|
+
export declare const selectAllCohorts: (state: CoreState) => Record<CohortId, Cohort>;
|
|
126
|
+
export declare const updateCohortFilter: import("@reduxjs/toolkit").ActionCreatorWithPayload<UpdateFilterParams, "cohort/updateCohortFilter">, setCohortFilter: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetFilterParams, "cohort/setCohortFilter">, setCohortIndexFilters: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetAllIndexFiltersParams, "cohort/setCohortIndexFilters">, removeCohortFilter: import("@reduxjs/toolkit").ActionCreatorWithPayload<RemoveFilterParams, "cohort/removeCohortFilter">, clearCohortFilters: import("@reduxjs/toolkit").ActionCreatorWithPayload<ClearAllFilterParams, "cohort/clearCohortFilters">, removeCohort: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
127
|
+
shouldShowMessage?: boolean;
|
|
128
|
+
id?: string;
|
|
129
|
+
}, "cohort/removeCohort">, discardCohortChanges: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
130
|
+
filters: FilterSet | undefined;
|
|
131
|
+
index: string;
|
|
132
|
+
id?: string;
|
|
133
|
+
}, "cohort/discardCohortChanges">, addNewDefaultUnsavedCohort: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"cohort/addNewDefaultUnsavedCohort">, setCurrentCohortId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "cohort/setCurrentCohortId">, setCohortList: import("@reduxjs/toolkit").ActionCreatorWithPayload<Cohort[], "cohort/setCohortList">;
|
|
105
134
|
export declare const selectCohortFilters: (state: CoreState) => IndexedFilterSet;
|
|
106
|
-
export declare const selectCurrentCohortId: (state: CoreState) =>
|
|
135
|
+
export declare const selectCurrentCohortId: (state: CoreState) => CohortId;
|
|
107
136
|
export declare const selectCurrentCohort: (state: CoreState) => Cohort;
|
|
108
137
|
export declare const selectCurrentCohortName: (state: CoreState) => string;
|
|
109
138
|
/**
|
|
@@ -114,6 +143,50 @@ export declare const selectCurrentCohortName: (state: CoreState) => string;
|
|
|
114
143
|
* @param name name of the filter to select
|
|
115
144
|
*/
|
|
116
145
|
export declare const selectIndexedFilterByName: (state: CoreState, index: string, name: string) => Operation | undefined;
|
|
146
|
+
/**
|
|
147
|
+
* Returns the cohort's name given the id
|
|
148
|
+
* @param state - the CoreState
|
|
149
|
+
* @param cohortId - the cohort id
|
|
150
|
+
* @category Cohort
|
|
151
|
+
* @category Selectors
|
|
152
|
+
*/
|
|
153
|
+
export declare const selectCohortNameById: (state: CoreState, cohortId: string) => string | undefined;
|
|
154
|
+
/**
|
|
155
|
+
* a thunk to optionally create a caseSet when switching cohorts.
|
|
156
|
+
* Note the assumption if the caseset member has ids then the caseset has previously been created.
|
|
157
|
+
*/
|
|
158
|
+
export declare const setActiveCohort: (cohortId: string) => ThunkAction<void, CoreState, undefined, UnknownAction>;
|
|
159
|
+
/**
|
|
160
|
+
* Returns all the cohorts in the state
|
|
161
|
+
* @param state - the CoreState
|
|
162
|
+
*
|
|
163
|
+
* @category Cohort
|
|
164
|
+
* @category Selectors
|
|
165
|
+
*/
|
|
166
|
+
export declare const selectAvailableCohorts: (state: CoreState) => Cohort[];
|
|
167
|
+
/**
|
|
168
|
+
* Returns if the current cohort is modified
|
|
169
|
+
* @param state - the CoreState
|
|
170
|
+
* @category Cohort
|
|
171
|
+
* @category Selectors
|
|
172
|
+
* @hidden
|
|
173
|
+
*/
|
|
174
|
+
export declare const selectCurrentCohortModified: (state: CoreState) => boolean | undefined;
|
|
175
|
+
/**
|
|
176
|
+
* Returns if the current cohort has been saved
|
|
177
|
+
* @param state - the CoreState
|
|
178
|
+
* @category Cohort
|
|
179
|
+
* @category Selectors
|
|
180
|
+
* @hidden
|
|
181
|
+
*/
|
|
182
|
+
export declare const selectCurrentCohortSaved: (state: CoreState) => boolean | undefined;
|
|
183
|
+
/**
|
|
184
|
+
* Select a filter by its name from the current cohort. If the filter is not found
|
|
185
|
+
* returns undefined.
|
|
186
|
+
* @param state - Core
|
|
187
|
+
* @param name name of the filter to select
|
|
188
|
+
*/
|
|
189
|
+
export declare const selectAvailableCohortByName: (state: CoreState, name: string) => Cohort | undefined;
|
|
117
190
|
/**
|
|
118
191
|
* Select a filter from the index.
|
|
119
192
|
* returns undefined.
|
|
@@ -121,6 +194,8 @@ export declare const selectIndexedFilterByName: (state: CoreState, index: string
|
|
|
121
194
|
* @param index which cohort index to select from
|
|
122
195
|
*/
|
|
123
196
|
export declare const selectIndexFilters: (state: CoreState, index: string) => FilterSet;
|
|
124
|
-
export declare const
|
|
197
|
+
export declare const setActiveCohortList: (cohorts?: Cohort[]) => ThunkAction<void, CoreState, undefined, UnknownAction>;
|
|
198
|
+
export declare const discardActiveCohortChanges: (index: string, filters: FilterSet) => ThunkAction<void, CoreState, undefined, UnknownAction>;
|
|
199
|
+
export declare const cohortReducer: import("redux").Reducer<EntityState<Cohort, string> & CurrentCohortState>;
|
|
125
200
|
export {};
|
|
126
201
|
//# sourceMappingURL=cohortSlice.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cohortSlice.d.ts","sourceRoot":"","sources":["../../../../src/features/cohort/cohortSlice.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"cohortSlice.d.ts","sourceRoot":"","sources":["../../../../src/features/cohort/cohortSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,WAAW,EACX,KAAK,aAAa,EAElB,WAAW,EACX,aAAa,EACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAGpE;;;;GAIG;AAEH,eAAO,MAAM,mBAAmB,mBAAmB,CAAC;AACpD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,KAAK,QAAQ,GAAG,MAAM,CAAC;AAEvB;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,QAAQ,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,gBAAgB,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;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AAO,MAAM,2BAA2B,GACtC,OAAO,SAAS,KACf,OAAO,GAAG,SAMZ,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,GACnC,OAAO,SAAS,KACf,OAAO,GAAG,SAMZ,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,GACtC,OAAO,SAAS,EAChB,MAAM,MAAM,KACX,MAAM,GAAG,SAGuC,CAAC;AAIpD;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAC7B,OAAO,SAAS,EAChB,OAAO,MAAM,KACZ,SASF,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAE5B,UAAU,MAAM,EAAE,KACjB,WAAW,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,CAYvD,CAAC;AAEJ,eAAO,MAAM,0BAA0B,GAEnC,OAAO,MAAM,EACb,SAAS,SAAS,KACjB,WAAW,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,CAGvD,CAAC;AAEJ,eAAO,MAAM,aAAa,2EAAsB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { selectCohortFilters, selectIndexFilters, selectIndexedFilterByName, selectCurrentCohortId, selectCurrentCohortName, selectCurrentCohort, updateCohortFilter, setCohortFilter, setCohortIndexFilters, removeCohortFilter, clearCohortFilters } from './cohortSlice';
|
|
1
|
+
import { type Cohort, cohortReducer, selectCohortFilters, selectIndexFilters, selectIndexedFilterByName, selectCurrentCohortId, selectCurrentCohortName, selectCurrentCohort, selectAvailableCohorts, selectCurrentCohortModified, selectCurrentCohortSaved, updateCohortFilter, setCohortFilter, setCohortIndexFilters, removeCohortFilter, clearCohortFilters, addNewDefaultUnsavedCohort, removeCohort, setActiveCohort, setActiveCohortList } from './cohortSlice';
|
|
2
2
|
import { toggleCohortBuilderCategoryFilter, toggleCohortBuilderAllFilters, selectCohortFilterExpanded, selectAllCohortFiltersCollapsed } from './filterExpandSlice';
|
|
3
3
|
import { setSharedFilters, setShouldShareFilters, selectShouldShareFilters, selectSharedFilters, selectSharedFiltersForFields } from './sharedFiltersSlice';
|
|
4
4
|
import { type CombineMode } from './types';
|
|
5
5
|
import { setCohortFilterCombineMode, selectCohortFilterCombineMode } from './filterCombineModeSlice';
|
|
6
|
-
export { selectCohortFilters, selectIndexFilters, selectIndexedFilterByName, selectCurrentCohortId, selectCurrentCohortName, selectCurrentCohort, selectCohortFilterExpanded, selectAllCohortFiltersCollapsed, selectCohortFilterCombineMode, selectShouldShareFilters, selectSharedFilters, selectSharedFiltersForFields, updateCohortFilter, setCohortFilter, setCohortIndexFilters, removeCohortFilter, clearCohortFilters, toggleCohortBuilderCategoryFilter, toggleCohortBuilderAllFilters, setCohortFilterCombineMode, setSharedFilters, setShouldShareFilters,
|
|
6
|
+
export { type Cohort, type CombineMode, selectCohortFilters, selectIndexFilters, selectIndexedFilterByName, selectCurrentCohortId, selectCurrentCohortName, selectCurrentCohort, selectAvailableCohorts, selectCurrentCohortModified, selectCurrentCohortSaved, cohortReducer, selectCohortFilterExpanded, selectAllCohortFiltersCollapsed, selectCohortFilterCombineMode, selectShouldShareFilters, selectSharedFilters, selectSharedFiltersForFields, updateCohortFilter, setCohortFilter, setCohortIndexFilters, removeCohortFilter, clearCohortFilters, addNewDefaultUnsavedCohort, removeCohort, setActiveCohort, setActiveCohortList, toggleCohortBuilderCategoryFilter, toggleCohortBuilderAllFilters, setCohortFilterCombineMode, setSharedFilters, setShouldShareFilters, };
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/cohort/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,yBAAyB,EACzB,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/cohort/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,MAAM,EACX,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,yBAAyB,EACzB,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,EACtB,2BAA2B,EAC3B,wBAAwB,EACxB,kBAAkB,EAClB,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,0BAA0B,EAC1B,YAAY,EACZ,eAAe,EACf,mBAAmB,EACpB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,iCAAiC,EACjC,6BAA6B,EAC7B,0BAA0B,EAC1B,+BAA+B,EAChC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,wBAAwB,EACxB,mBAAmB,EACnB,4BAA4B,EAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,OAAO,EACL,0BAA0B,EAC1B,6BAA6B,EAC9B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,KAAK,MAAM,EACX,KAAK,WAAW,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,yBAAyB,EACzB,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,EACtB,2BAA2B,EAC3B,wBAAwB,EACxB,aAAa,EACb,0BAA0B,EAC1B,+BAA+B,EAC/B,6BAA6B,EAC7B,wBAAwB,EACxB,mBAAmB,EACnB,4BAA4B,EAC5B,kBAAkB,EAClB,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,0BAA0B,EAC1B,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,iCAAiC,EACjC,6BAA6B,EAC7B,0BAA0B,EAC1B,gBAAgB,EAChB,qBAAqB,GACtB,CAAC"}
|
|
@@ -6,7 +6,7 @@ export declare const cohortReducers: import("redux").Reducer<{
|
|
|
6
6
|
[x: string]: Record<string, import("./types").CombineMode>;
|
|
7
7
|
};
|
|
8
8
|
sharedFilters: import("./sharedFiltersSlice").SharedFiltersState;
|
|
9
|
-
cohort: import("./cohortSlice").
|
|
9
|
+
cohort: import("@reduxjs/toolkit").EntityState<import("./cohortSlice").Cohort, string> & import("./cohortSlice").CurrentCohortState;
|
|
10
10
|
}, import("redux").UnknownAction, Partial<{
|
|
11
11
|
filtersExpanded: {
|
|
12
12
|
[x: string]: Record<string, boolean>;
|
|
@@ -15,6 +15,6 @@ export declare const cohortReducers: import("redux").Reducer<{
|
|
|
15
15
|
[x: string]: Record<string, import("./types").CombineMode>;
|
|
16
16
|
} | undefined;
|
|
17
17
|
sharedFilters: import("./sharedFiltersSlice").SharedFiltersState | undefined;
|
|
18
|
-
cohort: import("./cohortSlice").
|
|
18
|
+
cohort: (import("@reduxjs/toolkit").EntityState<import("./cohortSlice").Cohort, string> & import("./cohortSlice").CurrentCohortState) | undefined;
|
|
19
19
|
}>>;
|
|
20
20
|
//# sourceMappingURL=reducers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/features/cohort/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,QAAO,MAMvB,CAAC"}
|
|
@@ -86,7 +86,24 @@ export declare class ToGqlHandler implements OperationHandler<GQLFilter> {
|
|
|
86
86
|
handleUnion: (op: Union) => GQLUnion;
|
|
87
87
|
handleNestedFilter: (op: NestedFilter) => GQLNestedFilter;
|
|
88
88
|
}
|
|
89
|
+
export declare const convertFilterToGqlFilter: (filter: Operation) => GQLFilter;
|
|
89
90
|
export declare const convertFilterSetToGqlFilter: (fs: FilterSet, toplevelOp?: "and" | "or") => GQLFilter;
|
|
91
|
+
export interface GqlOperationHandler<T> {
|
|
92
|
+
handleEquals: (op: GQLEqual) => T;
|
|
93
|
+
handleNotEquals: (op: GQLNotEqual) => T;
|
|
94
|
+
handleLessThan: (op: GQLLessThan) => T;
|
|
95
|
+
handleLessThanOrEquals: (op: GQLLessThanOrEquals) => T;
|
|
96
|
+
handleGreaterThan: (op: GQLGreaterThan) => T;
|
|
97
|
+
handleGreaterThanOrEquals: (op: GQLGreaterThanOrEquals) => T;
|
|
98
|
+
handleIncludes: (op: GQLIncludes) => T;
|
|
99
|
+
handleExcludes: (op: GQLExcludes) => T;
|
|
100
|
+
handleExcludeIfAny: (op: GQLExcludeIfAny) => T;
|
|
101
|
+
handleIntersection: (op: GQLIntersection) => T;
|
|
102
|
+
handleUnion: (op: GQLUnion) => T;
|
|
103
|
+
handleNestedFilter: (op: GQLNestedFilter) => T;
|
|
104
|
+
}
|
|
105
|
+
export declare const handleGqlOperation: <T>(handler: GqlOperationHandler<T>, op: GQLFilter) => T;
|
|
106
|
+
export declare const convertGqlFilterToFilter: (gqlFilter: GQLFilter) => Operation;
|
|
90
107
|
/**
|
|
91
108
|
* Extract the operand values, if operands themselves have values, otherwise undefined.
|
|
92
109
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../../src/features/filters/filters.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACZ,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,EACN,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,mCAAmC,GAC3C,QAAQ,GACR,QAAQ,GACR,YAAY,CAAC;AAEjB,eAAO,MAAM,oBAAoB,GAC/B,WAAW,kBAAkB,GAAG,SAAS,KACxC,SAAS,IAAI,kBAEf,CAAC;AAEF,eAAO,MAAM,qCAAqC,GAChD,WAA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AAE,CAAC,CAAC,EAAE,mBAAmB,KAAK,SAAS,CAEjD;IACf,iBAAiB,EAAE,CAAC,CAAC,EAAE,WAAW,KAAK,SAAS,CACpC;IACZ,cAAc,EAAE,CAAC,EAAE,EAAE,QAAQ,KAAK,SAAS,CAA8B;IACzE,sBAAsB,EAAE,CAAC,EAAE,EAAE,gBAAgB,KAAK,SAAS,CAE5C;IACf,kBAAkB,EAAE,CAAC,EAAE,EAAE,YAAY,KAAK,SAAS,CACvC;IACZ,WAAW,EAAE,CAAC,EAAE,EAAE,KAAK,KAAK,SAAS,CAA2B;IAChE,kBAAkB,EAAE,CAAC,EAAE,EAAE,YAAY,KAAK,eAAe,GAAG,SAAS,CAInE;CACH"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isFilterEmpty, isOperationWithField, convertFilterSetToGqlFilter, isOperatorWithFieldAndArrayOfOperands, handleOperation, extractEnumFilterValue, extractFilterValue, type OperatorWithFieldAndArrayOfOperands, type GQLFilter } from './filters';
|
|
1
|
+
import { isFilterEmpty, isOperationWithField, convertFilterToGqlFilter, convertFilterSetToGqlFilter, isOperatorWithFieldAndArrayOfOperands, handleOperation, extractEnumFilterValue, extractFilterValue, type OperatorWithFieldAndArrayOfOperands, type GQLFilter } from './filters';
|
|
2
2
|
export * from './types';
|
|
3
3
|
export * from './utils';
|
|
4
|
-
export { handleOperation, isFilterEmpty, isOperationWithField, isOperatorWithFieldAndArrayOfOperands, convertFilterSetToGqlFilter, extractFilterValue, extractEnumFilterValue, type OperatorWithFieldAndArrayOfOperands, type GQLFilter, };
|
|
4
|
+
export { handleOperation, isFilterEmpty, isOperationWithField, isOperatorWithFieldAndArrayOfOperands, convertFilterToGqlFilter, convertFilterSetToGqlFilter, extractFilterValue, extractEnumFilterValue, type OperatorWithFieldAndArrayOfOperands, type GQLFilter, };
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/filters/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,2BAA2B,EAC3B,qCAAqC,EACrC,eAAe,EACf,sBAAsB,EACtB,kBAAkB,EAClB,KAAK,mCAAmC,EACxC,KAAK,SAAS,EACf,MAAM,WAAW,CAAC;AAEnB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AAExB,OAAO,EACL,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,qCAAqC,EACrC,2BAA2B,EAC3B,kBAAkB,EAClB,sBAAsB,EACtB,KAAK,mCAAmC,EACxC,KAAK,SAAS,GACf,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/filters/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,wBAAwB,EACxB,2BAA2B,EAC3B,qCAAqC,EACrC,eAAe,EACf,sBAAsB,EACtB,kBAAkB,EAClB,KAAK,mCAAmC,EACxC,KAAK,SAAS,EACf,MAAM,WAAW,CAAC;AAEnB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AAExB,OAAO,EACL,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,qCAAqC,EACrC,wBAAwB,EACxB,2BAA2B,EAC3B,kBAAkB,EAClB,sBAAsB,EACtB,KAAK,mCAAmC,EACxC,KAAK,SAAS,GACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filters.unit.test.d.ts","sourceRoot":"","sources":["../../../../../src/features/filters/tests/filters.unit.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ReactReduxContextValue } from 'react-redux';
|
|
3
3
|
import { ApiModules, BaseQueryFn } from '@reduxjs/toolkit/query/react';
|
|
4
|
-
export declare const createAppApiForRTKQ: (reducerPath: string, baseQuery?: BaseQueryFn) => {
|
|
5
|
-
useAppSelector: import("react-redux").UseSelector<
|
|
4
|
+
export declare const createAppApiForRTKQ: (reducerPath: string, name: string, version: string, additionalReducers?: (...args: any) => any, baseQuery?: BaseQueryFn) => {
|
|
5
|
+
useAppSelector: import("react-redux").UseSelector<unknown>;
|
|
6
6
|
useAppDispatch: import("react-redux").UseDispatch<import("redux").Dispatch<import("redux").UnknownAction>>;
|
|
7
7
|
useAppStore: import("react-redux").UseStore<import("redux").Store<any, import("redux").UnknownAction, unknown>>;
|
|
8
8
|
AppContext: React.Context<ReactReduxContextValue<any, import("redux").UnknownAction> | null>;
|
|
9
9
|
appApi: import("@reduxjs/toolkit/query").Api<BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta> | BaseQueryFn, {}, string, never, keyof ApiModules<any, any, any, any>>;
|
|
10
10
|
appContext: React.Context<ReactReduxContextValue<any, import("redux").UnknownAction> | null>;
|
|
11
|
-
appStore: import("@reduxjs/toolkit").EnhancedStore<{
|
|
12
|
-
|
|
13
|
-
}, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
14
|
-
dispatch: import("redux-thunk").ThunkDispatch<{
|
|
15
|
-
[x: string]: /*elided*/ any;
|
|
16
|
-
}, undefined, import("redux").UnknownAction>;
|
|
11
|
+
appStore: import("@reduxjs/toolkit").EnhancedStore<any, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
12
|
+
dispatch: import("redux-thunk").ThunkDispatch<any, undefined, import("redux").UnknownAction>;
|
|
17
13
|
}>, import("redux").StoreEnhancer]>>;
|
|
18
14
|
};
|
|
19
15
|
//# sourceMappingURL=Gen3AppRTKQ.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Gen3AppRTKQ.d.ts","sourceRoot":"","sources":["../../../../src/features/gen3Apps/Gen3AppRTKQ.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,
|
|
1
|
+
{"version":3,"file":"Gen3AppRTKQ.d.ts","sourceRoot":"","sources":["../../../../src/features/gen3Apps/Gen3AppRTKQ.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAIL,sBAAsB,EACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,UAAU,EAKV,WAAW,EAEZ,MAAM,8BAA8B,CAAC;AAetC,eAAO,MAAM,mBAAmB,GAC9B,aAAa,MAAM,EACnB,MAAM,MAAM,EACZ,SAAS,MAAM,EACf,qBAAqB,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,EAC1C,YAAY,WAAW;;;;;;;;;;CAsExB,CAAC"}
|
|
@@ -4,7 +4,6 @@ import { Accessibility } from '../../constants';
|
|
|
4
4
|
import { FilterSet } from '../filters';
|
|
5
5
|
import { guppyApiSliceRequest } from './guppyApi';
|
|
6
6
|
import { SharedFieldMapping } from './types';
|
|
7
|
-
export declare const processHistogramResponse: (data: Record<string, any>) => AggregationsData;
|
|
8
7
|
export interface GraphQLQuery {
|
|
9
8
|
query: string;
|
|
10
9
|
variables?: Record<string, unknown>;
|
|
@@ -53,9 +52,12 @@ interface QueryForFileCountSummaryParams {
|
|
|
53
52
|
filters: FilterSet;
|
|
54
53
|
accessibility?: Accessibility;
|
|
55
54
|
}
|
|
55
|
+
export declare const histogramQueryStrForEachField: (field: string) => string;
|
|
56
|
+
export declare const nestedHistogramQueryStrForEachField: (mainField: string, numericAggAsText: boolean) => string;
|
|
56
57
|
export declare const rawDataQueryStrForEachField: (field: string) => string;
|
|
57
58
|
export declare const useGetArrayTypes: () => import("../..").JSONValue;
|
|
58
59
|
export declare const useGetIndexFields: (index: string) => any;
|
|
60
|
+
export declare const buildGetAggregationQuery: (type: string, fields: ReadonlyArray<string>, filters: FilterSet, accessibility?: Accessibility, filterSelf?: boolean) => GraphQLQuery;
|
|
59
61
|
export declare const useGetRawDataAndTotalCountsQuery: <R extends Record<string, any> = import("@reduxjs/toolkit/query").TSHelpersId<(Omit<{
|
|
60
62
|
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
61
63
|
originalArgs?: undefined | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guppySlice.d.ts","sourceRoot":"","sources":["../../../../src/features/guppy/guppySlice.ts"],"names":[],"mappings":"AAAA,OAAe,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAkB,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"guppySlice.d.ts","sourceRoot":"","sources":["../../../../src/features/guppy/guppySlice.ts"],"names":[],"mappings":"AAAA,OAAe,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAkB,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAEL,SAAS,EAEV,MAAM,YAAY,CAAC;AACpB,OAAO,EAAY,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAO7C,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC;AAED,eAAO,MAAM,SAAS,EAAE,OAAO,CAAC,UAAU,EAAE,MAAM,CAOjD,CAAC;AAEF,eAAO,MAAM,YAAY,QAAO,WAAW,CAAC,UAAU,EAAE,KAAK,CAG5D,CAAC;AAEF,MAAM,MAAM,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EACT,CAAC"}
|
|
@@ -3,5 +3,7 @@ export * from './guppySlice';
|
|
|
3
3
|
import { downloadFromGuppyToBlob, downloadJSONDataFromGuppy, groupSharedFields } from './utils';
|
|
4
4
|
import { useDownloadFromGuppyMutation } from './guppyDownloadSlice';
|
|
5
5
|
export * from './types';
|
|
6
|
+
export * from './processing';
|
|
6
7
|
export { downloadFromGuppyToBlob, downloadJSONDataFromGuppy, useDownloadFromGuppyMutation, groupSharedFields, };
|
|
8
|
+
export { processHistogramResponse } from './processing';
|
|
7
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/guppy/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,iBAAiB,EAClB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AACpE,cAAc,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/guppy/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,iBAAiB,EAClB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AACpE,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAE7B,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,4BAA4B,EAC5B,iBAAiB,GAClB,CAAC;AACF,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AggregationsData } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Processes the histogram data from the given input object and returns an aggregated data object.
|
|
4
|
+
*
|
|
5
|
+
* @param {Record<string, unknown>} data - The input data object containing histogram information.
|
|
6
|
+
* @returns {AggregationsData} An object containing the processed histogram data, structured as key-value pairs.
|
|
7
|
+
*/
|
|
8
|
+
export declare const processHistogramResponse: (data: Record<string, unknown>) => AggregationsData;
|
|
9
|
+
/**
|
|
10
|
+
* Adjusts histogram data in the provided object by rounding counts below a specified minimum value.
|
|
11
|
+
*
|
|
12
|
+
* This function traverses the input object for histogram data and updates it such that all count values
|
|
13
|
+
* falling below the defined `minValue` are set to `-1`. By default, the `minValue` is set to `100`.
|
|
14
|
+
*
|
|
15
|
+
* @param {Record<string, unknown>} origData - The original input data containing histogram structures to modify.
|
|
16
|
+
* @param {number} [minValue=100] - The minimum value of histogram counts. Counts below this value are replaced with `-1`.
|
|
17
|
+
* @returns {Record<string, unknown>} - A new object containing the modified histogram data while preserving other properties.
|
|
18
|
+
*/
|
|
19
|
+
export declare const roundHistogramResponse: (origData: Record<string, unknown>, minValue?: number) => Record<string, unknown>;
|
|
20
|
+
//# sourceMappingURL=processing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processing.d.ts","sourceRoot":"","sources":["../../../../src/features/guppy/processing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG/C;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,GACnC,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC5B,gBA2BF,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,GACjC,UAAU,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,WAAU,MAAY,KACrB,MAAM,CAAC,MAAM,EAAE,OAAO,CA0BxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processing.unit.test.d.ts","sourceRoot":"","sources":["../../../../../src/features/guppy/tests/processing.unit.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/requestor/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|