@gen3/core 0.10.44

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 (86) hide show
  1. package/dist/cjs/index.js +2243 -0
  2. package/dist/cjs/index.js.map +1 -0
  3. package/dist/dts/api.d.ts +8 -0
  4. package/dist/dts/constants.d.ts +32 -0
  5. package/dist/dts/dataAccess.d.ts +35 -0
  6. package/dist/dts/features/aiSearch/aiSearchSlice.d.ts +38 -0
  7. package/dist/dts/features/aiSearch/index.d.ts +2 -0
  8. package/dist/dts/features/app/store.d.ts +6 -0
  9. package/dist/dts/features/authz/authzMappingSlice.d.ts +141 -0
  10. package/dist/dts/features/authz/index.d.ts +3 -0
  11. package/dist/dts/features/authz/types.d.ts +5 -0
  12. package/dist/dts/features/cohort/cohortBuilderConfigSlice.d.ts +0 -0
  13. package/dist/dts/features/cohort/cohortSlice.d.ts +95 -0
  14. package/dist/dts/features/cohort/index.d.ts +2 -0
  15. package/dist/dts/features/cohort/types.d.ts +0 -0
  16. package/dist/dts/features/download/constants.d.ts +14 -0
  17. package/dist/dts/features/download/downloadStatusApi.d.ts +19 -0
  18. package/dist/dts/features/download/index.d.ts +2 -0
  19. package/dist/dts/features/download/types.d.ts +20 -0
  20. package/dist/dts/features/drsResolver/drsHostnameSlice.d.ts +5 -0
  21. package/dist/dts/features/drsResolver/index.d.ts +2 -0
  22. package/dist/dts/features/drsResolver/resolvers/cachedDRSResolver.d.ts +1 -0
  23. package/dist/dts/features/drsResolver/resolvers/dataGUIDSDotOrg.d.ts +6 -0
  24. package/dist/dts/features/drsResolver/resolvers/tests/dataGUIDSDotOrg.unit.test.d.ts +1 -0
  25. package/dist/dts/features/drsResolver/types.d.ts +0 -0
  26. package/dist/dts/features/drsResolver/utils.d.ts +6 -0
  27. package/dist/dts/features/fence/credentialsApi.d.ts +35 -0
  28. package/dist/dts/features/fence/fenceApi.d.ts +37 -0
  29. package/dist/dts/features/fence/index.d.ts +6 -0
  30. package/dist/dts/features/fence/jwtApi.d.ts +12 -0
  31. package/dist/dts/features/fence/types.d.ts +12 -0
  32. package/dist/dts/features/fence/utils.d.ts +12 -0
  33. package/dist/dts/features/filters/filters.d.ts +122 -0
  34. package/dist/dts/features/filters/index.d.ts +4 -0
  35. package/dist/dts/features/filters/tests/utils.unit.test.d.ts +1 -0
  36. package/dist/dts/features/filters/types.d.ts +113 -0
  37. package/dist/dts/features/filters/utils.d.ts +26 -0
  38. package/dist/dts/features/gen3/gen3Api.d.ts +11 -0
  39. package/dist/dts/features/gen3/index.d.ts +2 -0
  40. package/dist/dts/features/gen3Apps/Gen3App.d.ts +48 -0
  41. package/dist/dts/features/gen3Apps/gen3AppRegistry.d.ts +7 -0
  42. package/dist/dts/features/gen3Apps/gen3AppsSlice.d.ts +19 -0
  43. package/dist/dts/features/gen3Apps/index.d.ts +3 -0
  44. package/dist/dts/features/graphQL/graphQLSlice.d.ts +12 -0
  45. package/dist/dts/features/graphQL/index.d.ts +1 -0
  46. package/dist/dts/features/guppy/conversion.d.ts +23 -0
  47. package/dist/dts/features/guppy/guppyApi.d.ts +41 -0
  48. package/dist/dts/features/guppy/guppyDownloadSlice.d.ts +21 -0
  49. package/dist/dts/features/guppy/guppySlice.d.ts +120 -0
  50. package/dist/dts/features/guppy/index.d.ts +6 -0
  51. package/dist/dts/features/guppy/tests/downloadFromGuppy.unit.test.d.ts +1 -0
  52. package/dist/dts/features/guppy/types.d.ts +33 -0
  53. package/dist/dts/features/guppy/utils.d.ts +28 -0
  54. package/dist/dts/features/metadata/index.d.ts +3 -0
  55. package/dist/dts/features/metadata/metadataSlice.d.ts +56 -0
  56. package/dist/dts/features/metadata/types.d.ts +12 -0
  57. package/dist/dts/features/modals/index.d.ts +2 -0
  58. package/dist/dts/features/modals/modalsSlice.d.ts +26 -0
  59. package/dist/dts/features/submission/authMappingUtils.d.ts +15 -0
  60. package/dist/dts/features/submission/index.d.ts +3 -0
  61. package/dist/dts/features/submission/submissionApi.d.ts +43 -0
  62. package/dist/dts/features/submission/types.d.ts +46 -0
  63. package/dist/dts/features/user/externalLoginsSlice.d.ts +14 -0
  64. package/dist/dts/features/user/hooks.d.ts +18 -0
  65. package/dist/dts/features/user/index.d.ts +5 -0
  66. package/dist/dts/features/user/test/useGetExternalLoginsQuery.unit.test.d.ts +1 -0
  67. package/dist/dts/features/user/types.d.ts +50 -0
  68. package/dist/dts/features/user/userSlice.d.ts +53 -0
  69. package/dist/dts/features/user/userSliceRTK.d.ts +484 -0
  70. package/dist/dts/features/workspace/index.d.ts +2 -0
  71. package/dist/dts/features/workspace/types.d.ts +0 -0
  72. package/dist/dts/features/workspace/workspacesSlice.d.ts +6 -0
  73. package/dist/dts/hooks.d.ts +36 -0
  74. package/dist/dts/index.d.ts +23 -0
  75. package/dist/dts/provider.d.ts +2 -0
  76. package/dist/dts/reducers.d.ts +22 -0
  77. package/dist/dts/store.d.ts +53 -0
  78. package/dist/dts/store.unit.test.d.ts +2 -0
  79. package/dist/dts/types/index.d.ts +51 -0
  80. package/dist/dts/utils/extractvalues.d.ts +9 -0
  81. package/dist/dts/utils/index.d.ts +2 -0
  82. package/dist/dts/utils/ts-utils.d.ts +4 -0
  83. package/dist/esm/index.js +2083 -0
  84. package/dist/esm/index.js.map +1 -0
  85. package/dist/index.d.ts +1604 -0
  86. package/package.json +70 -0
@@ -0,0 +1,1604 @@
1
+ import * as redux from 'redux';
2
+ import * as _reduxjs_toolkit_dist_query_core_apiState from '@reduxjs/toolkit/dist/query/core/apiState';
3
+ import * as _reduxjs_toolkit from '@reduxjs/toolkit';
4
+ import { Store, Middleware, Reducer } from '@reduxjs/toolkit';
5
+ import React, { ComponentType } from 'react';
6
+ import * as _reduxjs_toolkit_query from '@reduxjs/toolkit/query';
7
+ import { FetchBaseQueryError, QueryStatus } from '@reduxjs/toolkit/query';
8
+ import * as _reduxjs_toolkit_dist_configureStore from '@reduxjs/toolkit/dist/configureStore';
9
+ import * as reselect from 'reselect';
10
+ import * as _reduxjs_toolkit_dist_query_react_buildHooks from '@reduxjs/toolkit/dist/query/react/buildHooks';
11
+ import * as _reduxjs_toolkit_dist_query from '@reduxjs/toolkit/dist/query';
12
+ import { ReactReduxContextValue, TypedUseSelectorHook } from 'react-redux';
13
+ import * as _reduxjs_toolkit_dist_query_endpointDefinitions from '@reduxjs/toolkit/dist/query/endpointDefinitions';
14
+ import * as _reduxjs_toolkit_dist_query_apiTypes from '@reduxjs/toolkit/dist/query/apiTypes';
15
+ import * as _reduxjs_toolkit_dist_query_baseQueryTypes from '@reduxjs/toolkit/dist/query/baseQueryTypes';
16
+ import * as _reduxjs_toolkit_dist_query_fetchBaseQuery from '@reduxjs/toolkit/dist/query/fetchBaseQuery';
17
+ import { Fetcher, SWRResponse } from 'swr';
18
+
19
+ declare const GEN3_COMMONS_NAME: string;
20
+ declare const GEN3_API: string;
21
+ declare const GEN3_DOMAIN: string;
22
+ /**
23
+ * Service Specific Constants
24
+ */
25
+ declare const GEN3_GUPPY_API: string;
26
+ declare const GEN3_MDS_API: string;
27
+ declare const GEN3_DOWNLOADS_ENDPOINT: string;
28
+ declare const GEN3_FENCE_API: string;
29
+ declare const GEN3_AUTHZ_API: string;
30
+ declare const GEN3_REDIRECT_URL: string;
31
+ declare const GEN3_WORKSPACE_STATUS_API: string;
32
+ declare const GEN3_SUBMISSION_API: string;
33
+ declare const GEN3_CROSSWALK_API: string;
34
+ declare enum Accessibility {
35
+ ACCESSIBLE = "accessible",
36
+ UNACCESSIBLE = "unaccessible",
37
+ ALL = "all"
38
+ }
39
+
40
+ interface Intersection {
41
+ operator: 'and';
42
+ operands: ReadonlyArray<Operation>;
43
+ }
44
+ interface Union {
45
+ operator: 'or';
46
+ operands: ReadonlyArray<Operation>;
47
+ }
48
+ interface Equals {
49
+ operator: '=';
50
+ field: string;
51
+ operand: number | string;
52
+ }
53
+ interface NotEquals {
54
+ operator: '!=';
55
+ field: string;
56
+ operand: number | string;
57
+ }
58
+ interface Includes {
59
+ operator: 'in';
60
+ field: string;
61
+ operands: ReadonlyArray<string | number>;
62
+ }
63
+ interface Comparison {
64
+ field: string;
65
+ operand: string | number;
66
+ }
67
+ interface LessThan extends Comparison {
68
+ operator: '<';
69
+ }
70
+ interface LessThanOrEquals extends Comparison {
71
+ operator: '<=';
72
+ }
73
+ interface GreaterThan extends Comparison {
74
+ operator: '>';
75
+ }
76
+ interface GreaterThanOrEquals extends Comparison {
77
+ operator: '>=';
78
+ }
79
+ interface Exists {
80
+ readonly operator: 'exists';
81
+ readonly field: string;
82
+ }
83
+ interface Missing {
84
+ readonly operator: 'missing';
85
+ readonly field: string;
86
+ }
87
+ interface ExcludeIfAny {
88
+ readonly operator: 'excludeifany';
89
+ readonly field: string;
90
+ readonly operands: ReadonlyArray<string | number>;
91
+ }
92
+ interface Excludes {
93
+ readonly operator: 'excludes';
94
+ readonly field: string;
95
+ readonly operands: ReadonlyArray<string | number>;
96
+ }
97
+ interface NestedFilter {
98
+ operator: 'nested';
99
+ path: string;
100
+ operand: Operation;
101
+ }
102
+ type Operation = Intersection | Union | Includes | Equals | NotEquals | LessThan | LessThanOrEquals | GreaterThan | GreaterThanOrEquals | NestedFilter | ExcludeIfAny | Excludes;
103
+ type OperationWithField = Includes | Equals | NotEquals | LessThan | LessThanOrEquals | GreaterThan | GreaterThanOrEquals | ExcludeIfAny | Excludes;
104
+ interface FilterSet {
105
+ readonly root: Record<string, Operation>;
106
+ readonly mode: 'and' | 'or';
107
+ }
108
+ interface OperationHandler<T> {
109
+ handleEquals: (op: Equals) => T;
110
+ handleNotEquals: (op: NotEquals) => T;
111
+ handleLessThan: (op: LessThan) => T;
112
+ handleLessThanOrEquals: (op: LessThanOrEquals) => T;
113
+ handleGreaterThan: (op: GreaterThan) => T;
114
+ handleGreaterThanOrEquals: (op: GreaterThanOrEquals) => T;
115
+ handleIncludes: (op: Includes) => T;
116
+ handleExcludes: (op: Excludes) => T;
117
+ handleExcludeIfAny: (op: ExcludeIfAny) => T;
118
+ handleIntersection: (op: Intersection) => T;
119
+ handleUnion: (op: Union) => T;
120
+ handleNestedFilter: (op: NestedFilter) => T;
121
+ }
122
+ /**
123
+ * Operand types for filter operations
124
+ */
125
+ type EnumFilterValue = ReadonlyArray<string | number>;
126
+ type RangeFilterValue = string | number;
127
+ type SetFilterValue = ReadonlyArray<Operation>;
128
+ type FilterValue = EnumFilterValue | RangeFilterValue | SetFilterValue | undefined;
129
+ type FacetBucket = {
130
+ key: string;
131
+ doc_count: number;
132
+ };
133
+ type HistogramBucket = {
134
+ key: string | [number, number];
135
+ count: number;
136
+ };
137
+ type FacetType = 'enum' | 'exact' | 'range' | 'age' | 'year' | 'years' | 'days' | 'percent' | 'datetime' | 'toggle' | 'multiselect';
138
+ interface AllowableRange {
139
+ readonly minimum?: number;
140
+ readonly maximum?: number;
141
+ }
142
+ interface FacetDefinition {
143
+ readonly description?: string;
144
+ readonly field: string;
145
+ readonly dataField: string;
146
+ readonly index: string;
147
+ readonly type: FacetType;
148
+ readonly range?: AllowableRange;
149
+ readonly hasData?: boolean;
150
+ readonly label?: string;
151
+ }
152
+ type IndexedFilterSet = Record<string, FilterSet>;
153
+
154
+ declare const isOperationWithField: (operation: OperationWithField | Operation) => operation is OperationWithField;
155
+ declare const extractFilterValue: (op: Operation) => FilterValue;
156
+ declare const extractEnumFilterValue: (op: Operation) => EnumFilterValue;
157
+ declare const handleOperation: <T>(handler: OperationHandler<T>, op: Operation) => T;
158
+ /**
159
+ * Return true if a FilterSet's root value is an empty object
160
+ * @param fs - FilterSet to test
161
+ */
162
+ declare const isFilterEmpty: (fs: FilterSet) => boolean;
163
+ interface GQLEqual {
164
+ '=': {
165
+ [key: string]: string | number;
166
+ };
167
+ }
168
+ interface GQLNotEqual {
169
+ '!=': {
170
+ [key: string]: string | number;
171
+ };
172
+ }
173
+ interface GQLLessThan {
174
+ '<': {
175
+ [key: string]: string | number;
176
+ };
177
+ }
178
+ interface GQLLessThanOrEquals {
179
+ '<=': {
180
+ [key: string]: string | number;
181
+ };
182
+ }
183
+ interface GQLGreaterThan {
184
+ '>': {
185
+ [key: string]: string | number;
186
+ };
187
+ }
188
+ interface GQLGreaterThanOrEquals {
189
+ '>=': {
190
+ [key: string]: string | number;
191
+ };
192
+ }
193
+ interface GQLIncludes {
194
+ in: {
195
+ [key: string]: ReadonlyArray<string | number>;
196
+ };
197
+ }
198
+ interface GQLExcludes {
199
+ exclude: {
200
+ [key: string]: ReadonlyArray<string | number>;
201
+ };
202
+ }
203
+ interface GQLExcludeIfAny {
204
+ excludeifany: {
205
+ [key: string]: ReadonlyArray<string | number>;
206
+ };
207
+ }
208
+ interface GQLIntersection {
209
+ and: ReadonlyArray<GQLFilter>;
210
+ }
211
+ interface GQLUnion {
212
+ or: ReadonlyArray<GQLFilter>;
213
+ }
214
+ type NestedContents = GQLFilter & {
215
+ path: string;
216
+ };
217
+ interface GQLNestedFilter {
218
+ nested: NestedContents;
219
+ }
220
+ type GQLFilter = GQLEqual | GQLNotEqual | GQLLessThan | GQLLessThanOrEquals | GQLGreaterThan | GQLGreaterThanOrEquals | GQLIncludes | GQLExcludes | GQLExcludeIfAny | GQLIntersection | GQLUnion | GQLNestedFilter;
221
+ declare const convertFilterSetToGqlFilter: (fs: FilterSet, toplevelOp?: "and" | "or") => GQLFilter;
222
+
223
+ declare const trimFirstFieldNameToTitle: (fieldName: string, trim?: boolean) => string;
224
+ /**
225
+ * Converts a filter name to a title,
226
+ * For example files.input.experimental_strategy will get converted to Experimental Strategy
227
+ * if sections == 2 then the output would be Input Experimental Strategy
228
+ * @param fieldName input filter expected to be: string.firstpart_secondpart
229
+ * @param sections number of "sections" string.string.string to got back from the end of the field
230
+ */
231
+ declare const fieldNameToTitle: (fieldName: string, sections?: number) => string;
232
+ /**
233
+ * Extracts the index name from the field name
234
+ * @param fieldName
235
+ */
236
+ declare const extractIndexFromFullFieldName: (fieldName: string) => string;
237
+ /**
238
+ * prepend the index name to the field name
239
+ */
240
+ declare const prependIndexToFieldName: (fieldName: string, index: string) => string;
241
+ /**
242
+ * extract the field name from the index.field name
243
+ */
244
+ declare const extractFieldNameFromFullFieldName: (fieldName: string) => string;
245
+ /**
246
+ * extract the field name and the index from the index.field name returning as a tuple
247
+ */
248
+ declare const extractIndexAndFieldNameFromFullFieldName: (fieldName: string) => [string, string];
249
+
250
+ interface Cohort {
251
+ readonly id: string;
252
+ readonly name: string;
253
+ readonly filters: IndexedFilterSet;
254
+ readonly modified?: boolean;
255
+ readonly modified_datetime: string;
256
+ }
257
+ interface CohortState {
258
+ cohort: Cohort;
259
+ }
260
+ interface UpdateFilterParams {
261
+ index: string;
262
+ field: string;
263
+ filter: Operation;
264
+ }
265
+ interface RemoveFilterParams {
266
+ index: string;
267
+ field: string;
268
+ }
269
+ interface ClearAllFilterParams {
270
+ index: string;
271
+ }
272
+ declare const updateCohortFilter: _reduxjs_toolkit.ActionCreatorWithPayload<UpdateFilterParams, "cohort/updateCohortFilter">;
273
+ declare const removeCohortFilter: _reduxjs_toolkit.ActionCreatorWithPayload<RemoveFilterParams, "cohort/removeCohortFilter">;
274
+ declare const clearCohortFilters: _reduxjs_toolkit.ActionCreatorWithPayload<ClearAllFilterParams, "cohort/clearCohortFilters">;
275
+ declare const selectCohortFilters: (state: CoreState) => IndexedFilterSet;
276
+ declare const selectCurrentCohortId: (state: CoreState) => string;
277
+ declare const selectCurrentCohort: (state: CoreState) => Cohort;
278
+ declare const selectCurrentCohortName: (state: CoreState) => string;
279
+ /**
280
+ * Select a filter by its name from the current cohort. If the filter is not found
281
+ * returns undefined.
282
+ * @param state - Core
283
+ * @param index which cohort index to select from
284
+ * @param name name of the filter to select
285
+ */
286
+ declare const selectIndexedFilterByName: (state: CoreState, index: string, name: string) => Operation | undefined;
287
+ /**
288
+ * Select a filter from the index.
289
+ * returns undefined.
290
+ * @param state - Core
291
+ * @param index which cohort index to select from
292
+ */
293
+ declare const selectIndexFilters: (state: CoreState, index: string) => FilterSet;
294
+ declare const cohortReducer: redux.Reducer<CohortState>;
295
+
296
+ /**
297
+ * Defines the modals slice of the Redux store.
298
+ * This slice is used to control the display of standard Gen3 modals.
299
+ * and can be extended to add custom modals by representing them as strings.
300
+ */
301
+ declare enum Modals {
302
+ 'FirstTimeModal' = "FirstTimeModal",
303
+ 'SessionExpireModal' = "SessionExpireModal",
304
+ 'NoAccessModal' = "NoAccessModal",
305
+ 'CreateCredentialsAPIKeyModal' = "CreateCredentialsAPIKeyModal",
306
+ 'GeneralErrorModal' = "GeneralErrorModal"
307
+ }
308
+ type CurrentModal = Modals | string | null;
309
+ interface ModalState {
310
+ currentModal: CurrentModal;
311
+ message?: string;
312
+ }
313
+ declare const showModal: _reduxjs_toolkit.ActionCreatorWithPayload<{
314
+ modal: Modals;
315
+ message?: string;
316
+ }, "modals/showModal">;
317
+ declare const hideModal: _reduxjs_toolkit.ActionCreatorWithoutPayload<"modals/hideModal">;
318
+ declare const selectCurrentModal: (state: CoreState) => CurrentModal;
319
+ declare const selectCurrentMessage: (state: CoreState) => string | undefined;
320
+
321
+ interface Gen3AppsState {
322
+ readonly gen3Apps: Readonly<Record<string, Gen3AppMetadata>>;
323
+ readonly currentAppId?: string;
324
+ }
325
+ interface Gen3AppMetadata {
326
+ readonly id: string;
327
+ readonly name: string;
328
+ readonly version: string;
329
+ readonly requiredEntityTypes: ReadonlyArray<EntityType>;
330
+ }
331
+ type EntityType = 'case' | 'gene' | 'ssm' | 'cnv' | 'file';
332
+ declare const selectGen3AppMetadataById: (state: CoreState, appId: string) => Gen3AppMetadata;
333
+ declare const selectGen3AppById: (appId: string) => React.ReactNode;
334
+
335
+ type UnknownJson = Record<string, unknown>;
336
+ type DataStatus = 'uninitialized' | 'pending' | 'fulfilled' | 'rejected';
337
+ interface Gen3Response<H = UnknownJson> {
338
+ readonly data: H;
339
+ readonly warnings?: Record<string, string>;
340
+ readonly errors?: Record<string, string>;
341
+ }
342
+ interface UseCoreDataResponse<T> {
343
+ readonly data?: T;
344
+ readonly error?: string;
345
+ readonly isUninitialized: boolean;
346
+ readonly isFetching: boolean;
347
+ readonly isSuccess: boolean;
348
+ readonly isError: boolean;
349
+ }
350
+ interface CoreDataSelectorResponse<T, S = DataStatus> {
351
+ readonly data?: T;
352
+ readonly status: S;
353
+ readonly error?: string;
354
+ }
355
+ interface CoreDataSelector<T> {
356
+ (state: CoreState): CoreDataSelectorResponse<T>;
357
+ }
358
+ interface FetchDataActionCreator<P, A> {
359
+ (...params: P[]): A;
360
+ }
361
+ interface UseCoreDataHook<P, T> {
362
+ (...params: P[]): UseCoreDataResponse<T>;
363
+ }
364
+ declare const usePrevious: <T>(value: T) => T | undefined;
365
+ declare const createUseCoreDataHook: <P, A, T>(fetchDataActionCreator: FetchDataActionCreator<P, A>, dataSelector: CoreDataSelector<T>) => UseCoreDataHook<P, T>;
366
+ interface CoreDataValueSelector<T> {
367
+ (state: CoreState): T;
368
+ }
369
+
370
+ interface ServiceAndMethod {
371
+ method: string;
372
+ service: string;
373
+ }
374
+ type AuthzMapping = Record<string, ServiceAndMethod[]>;
375
+
376
+ declare const useGetAuthzMappingsQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<void, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, never, AuthzMapping, "gen3Services">>;
377
+ declare const selectAuthzMappingData: ((state: _reduxjs_toolkit_dist_query_core_apiState.RootState<{
378
+ getAuthzMappings: _reduxjs_toolkit_dist_query.QueryDefinition<void, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, never, AuthzMapping, "gen3Services">;
379
+ }, never, "gen3Services">) => AuthzMapping) & reselect.OutputSelectorFields<(args_0: ({
380
+ status: _reduxjs_toolkit_dist_query.QueryStatus.uninitialized;
381
+ originalArgs?: undefined;
382
+ data?: undefined;
383
+ error?: undefined;
384
+ requestId?: undefined;
385
+ endpointName?: string | undefined;
386
+ startedTimeStamp?: undefined;
387
+ fulfilledTimeStamp?: undefined;
388
+ } & {
389
+ status: _reduxjs_toolkit_dist_query.QueryStatus.uninitialized;
390
+ isUninitialized: true;
391
+ isLoading: false;
392
+ isSuccess: false;
393
+ isError: false;
394
+ }) | ({
395
+ status: _reduxjs_toolkit_dist_query.QueryStatus.fulfilled;
396
+ error: undefined;
397
+ requestId: string;
398
+ originalArgs: void;
399
+ endpointName: string;
400
+ startedTimeStamp: number;
401
+ data: AuthzMapping;
402
+ fulfilledTimeStamp: number;
403
+ } & {
404
+ status: _reduxjs_toolkit_dist_query.QueryStatus.fulfilled;
405
+ isUninitialized: false;
406
+ isLoading: false;
407
+ isSuccess: true;
408
+ isError: false;
409
+ }) | ({
410
+ status: _reduxjs_toolkit_dist_query.QueryStatus.pending;
411
+ originalArgs: void;
412
+ requestId: string;
413
+ data?: AuthzMapping | undefined;
414
+ error?: _reduxjs_toolkit.SerializedError | _reduxjs_toolkit_dist_query.FetchBaseQueryError | undefined;
415
+ endpointName: string;
416
+ startedTimeStamp: number;
417
+ fulfilledTimeStamp?: number | undefined;
418
+ } & {
419
+ status: _reduxjs_toolkit_dist_query.QueryStatus.pending;
420
+ isUninitialized: false;
421
+ isLoading: true;
422
+ isSuccess: false;
423
+ isError: false;
424
+ }) | ({
425
+ status: _reduxjs_toolkit_dist_query.QueryStatus.rejected;
426
+ data?: AuthzMapping | undefined;
427
+ requestId: string;
428
+ fulfilledTimeStamp?: number | undefined;
429
+ originalArgs: void;
430
+ endpointName: string;
431
+ startedTimeStamp: number;
432
+ error: _reduxjs_toolkit.SerializedError | _reduxjs_toolkit_dist_query.FetchBaseQueryError;
433
+ } & {
434
+ status: _reduxjs_toolkit_dist_query.QueryStatus.rejected;
435
+ isUninitialized: false;
436
+ isLoading: false;
437
+ isSuccess: false;
438
+ isError: true;
439
+ })) => AuthzMapping, {
440
+ clearCache: () => void;
441
+ }> & {
442
+ clearCache: () => void;
443
+ };
444
+
445
+ interface NamedURL {
446
+ name: string;
447
+ url: string;
448
+ }
449
+ interface ExternalProvider {
450
+ base_url: string;
451
+ idp: string;
452
+ name: string;
453
+ refresh_token_expiration: string;
454
+ urls: NamedURL[];
455
+ }
456
+ /**
457
+ * Data model for a Gen3 User obtained from the /user/user endpoint
458
+ */
459
+ interface UserProfile {
460
+ authz: AuthzMapping;
461
+ id: number;
462
+ user_id: number;
463
+ username: string;
464
+ email: string;
465
+ role: string;
466
+ is_admin: boolean;
467
+ project_access: {
468
+ [key: string]: string[];
469
+ };
470
+ phone_number: string;
471
+ display_name: string;
472
+ preferred_username: string;
473
+ ga4gh_passport_v1: Record<string, string>[];
474
+ certificates_uploaded: Record<string, string>[];
475
+ primary_google_service_account: null;
476
+ resources_granted: Record<string, string>[];
477
+ groups: string[];
478
+ message: string;
479
+ sub: string;
480
+ idp: string;
481
+ azp: string[] | null;
482
+ }
483
+ type Gen3User = Partial<UserProfile>;
484
+ type LoginStatus = 'authenticated' | 'unauthenticated' | 'pending' | 'not present';
485
+ type JWTSessionStatus = 'not present' | 'issued' | 'expired' | 'invalid' | 'error';
486
+
487
+ type JSONValue = string | number | boolean | JSONValue[] | JSONObject;
488
+ type JSONObject = {
489
+ [k: string]: JSONValue;
490
+ };
491
+ type JSONArray = Array<JSONValue>;
492
+ declare const isHistogramRangeData: (key: any) => key is [number, number];
493
+ declare const isJSONObject: (data: any) => data is JSONObject;
494
+ declare const isJSONValue: (data: any) => data is JSONValue;
495
+ declare const isJSONValueArray: (data: JSONValue) => data is JSONArray;
496
+ interface HistogramData {
497
+ key: string | [number, number];
498
+ count: number;
499
+ }
500
+ type HistogramDataArray = Array<HistogramData>;
501
+ declare const isHistogramData: (data: any) => data is HistogramData;
502
+ declare const isHistogramDataArray: (input: any) => input is HistogramData[];
503
+ interface HistogramDataCollection {
504
+ histogram: HistogramDataArray;
505
+ }
506
+ declare const isHistogramDataCollection: (obj: any) => obj is HistogramDataCollection;
507
+ interface GuppyAggregationData {
508
+ [key: string]: HistogramDataCollection;
509
+ }
510
+ declare const isGuppyAggregationData: (obj: any) => obj is GuppyAggregationData;
511
+ declare const isHistogramDataAnEnum: (data: unknown) => data is HistogramData;
512
+ declare const isHistogramDataAArray: (data: any) => data is HistogramDataArray;
513
+ declare const isHistogramDataArrayAnEnum: (data: any) => boolean;
514
+ declare const isHistogramDataArrayARange: (data: any) => boolean;
515
+ /**
516
+ * Type predicate to narrow an unknown error to `FetchBaseQueryError`
517
+ */
518
+ declare function isFetchBaseQueryError(error: unknown): error is FetchBaseQueryError;
519
+ /**
520
+ * Type predicate to narrow an unknown error to an object with a string 'message' property
521
+ */
522
+ declare function isErrorWithMessage(error: unknown): error is {
523
+ message: string;
524
+ };
525
+ interface ParsingError {
526
+ status: 'PARSING_ERROR';
527
+ originalStatus: number;
528
+ data: string;
529
+ error: string;
530
+ }
531
+ /**
532
+ * Type predicate to narrow an unknown error to an object with a string 'message' property
533
+ */
534
+ declare function isFetchParseError(error: unknown): error is ParsingError;
535
+ type AggregationsData = Record<string, HistogramDataArray>;
536
+
537
+ interface FetchError<T> {
538
+ readonly url: string;
539
+ readonly status: number;
540
+ readonly statusText: string;
541
+ readonly text: string;
542
+ readonly request?: T;
543
+ }
544
+ interface Gen3FenceResponse<H = JSONObject | string> {
545
+ readonly data: H;
546
+ readonly status: number;
547
+ }
548
+
549
+ interface NameUrl {
550
+ readonly name: string;
551
+ readonly url: string;
552
+ }
553
+ interface Gen3LoginProvider {
554
+ readonly desc?: string;
555
+ readonly id: string;
556
+ readonly idp: string;
557
+ readonly name: string;
558
+ readonly secondary: boolean;
559
+ readonly url: string;
560
+ readonly urls: Array<NameUrl>;
561
+ }
562
+ interface Gen3FenceLoginProviders {
563
+ readonly default_provider: Gen3LoginProvider;
564
+ readonly providers: Array<Gen3LoginProvider>;
565
+ }
566
+ declare const useGetLoginProvidersQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<void, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, never, Gen3FenceLoginProviders, "gen3Services">>;
567
+ interface FetchRequest {
568
+ readonly endpoint: string;
569
+ readonly method?: 'GET' | 'POST';
570
+ readonly body?: object;
571
+ readonly headers?: Record<string, string>;
572
+ readonly isJSON?: boolean;
573
+ }
574
+ /**
575
+ * Logout from fence
576
+ */
577
+ declare const logoutFence: (redirect?: string) => Promise<Gen3FenceResponse<unknown>>;
578
+
579
+ interface APIKey {
580
+ readonly jti: string;
581
+ readonly exp: number;
582
+ }
583
+ interface Gen3FenceCredentials {
584
+ readonly jtis: ReadonlyArray<APIKey>;
585
+ }
586
+ interface DeleteCredentialParams {
587
+ readonly csrfToken?: string;
588
+ readonly id: string;
589
+ }
590
+ interface AuthorizeFromCredentialsParams {
591
+ api_key: string;
592
+ key_id: string;
593
+ }
594
+ interface AuthTokenResponse {
595
+ access_token: string;
596
+ }
597
+ declare const useGetCredentialsQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<void, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, "Credentials", readonly APIKey[], "gen3Services">>;
598
+ declare const useAddNewCredentialMutation: _reduxjs_toolkit_dist_query_react_buildHooks.UseMutation<_reduxjs_toolkit_dist_query.MutationDefinition<string, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, "Credentials", any, "gen3Services">>;
599
+ declare const useRemoveCredentialMutation: _reduxjs_toolkit_dist_query_react_buildHooks.UseMutation<_reduxjs_toolkit_dist_query.MutationDefinition<DeleteCredentialParams, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, "Credentials", void, "gen3Services">>;
600
+ declare const useAuthorizeFromCredentialsMutation: _reduxjs_toolkit_dist_query_react_buildHooks.UseMutation<_reduxjs_toolkit_dist_query.MutationDefinition<AuthorizeFromCredentialsParams, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, "Credentials", AuthTokenResponse, "gen3Services">>;
601
+
602
+ interface JWTKeys {
603
+ keys: ReadonlyArray<string[2]>;
604
+ }
605
+ declare const useGetJWKKeysQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<void, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, "fenceJWT", readonly JWTKeys[], "gen3Services">>;
606
+
607
+ /**
608
+ * Template for a standard fence request
609
+ * @returns: response data
610
+ */
611
+ declare const fetchFence: <T>({ endpoint, headers, body, method, isJSON, }: FetchRequest) => Promise<Gen3FenceResponse<T>>;
612
+
613
+ declare const coreStore: _reduxjs_toolkit_dist_configureStore.ToolkitStore<redux.EmptyObject & {
614
+ [x: string]: any;
615
+ gen3Services: any;
616
+ user: Gen3UserState;
617
+ gen3Apps: Gen3AppsState;
618
+ drsHostnames: Record<string, string>;
619
+ modals: ModalState;
620
+ cohorts: CohortState;
621
+ userAuthApi: _reduxjs_toolkit_dist_query_core_apiState.CombinedState<{
622
+ fetchUserDetails: _reduxjs_toolkit_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_query.BaseQueryApi) => Promise<{
623
+ data: {};
624
+ } | {
625
+ data: Gen3FenceResponse<unknown>;
626
+ }>, never, UserAuthResponse, "userAuthApi">;
627
+ getCSRF: _reduxjs_toolkit_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_query.BaseQueryApi) => Promise<{
628
+ data: {};
629
+ } | {
630
+ data: Gen3FenceResponse<unknown>;
631
+ }>, never, CSRFToken, "userAuthApi">;
632
+ }, never, "userAuthApi">;
633
+ }, redux.AnyAction, _reduxjs_toolkit.MiddlewareArray<[_reduxjs_toolkit.ThunkMiddleware<redux.CombinedState<{
634
+ [x: string]: any;
635
+ gen3Services: any;
636
+ user: Gen3UserState;
637
+ gen3Apps: Gen3AppsState;
638
+ drsHostnames: Record<string, string>;
639
+ modals: ModalState;
640
+ cohorts: CohortState;
641
+ userAuthApi: _reduxjs_toolkit_dist_query_core_apiState.CombinedState<{
642
+ fetchUserDetails: _reduxjs_toolkit_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_query.BaseQueryApi) => Promise<{
643
+ data: {};
644
+ } | {
645
+ data: Gen3FenceResponse<unknown>;
646
+ }>, never, UserAuthResponse, "userAuthApi">;
647
+ getCSRF: _reduxjs_toolkit_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_query.BaseQueryApi) => Promise<{
648
+ data: {};
649
+ } | {
650
+ data: Gen3FenceResponse<unknown>;
651
+ }>, never, CSRFToken, "userAuthApi">;
652
+ }, never, "userAuthApi">;
653
+ }>, redux.AnyAction>, redux.Middleware<{}, any, redux.Dispatch<redux.AnyAction>>, redux.Middleware<{}, any, redux.Dispatch<redux.AnyAction>>, redux.Middleware<{}, _reduxjs_toolkit_dist_query_core_apiState.RootState<{
654
+ fetchUserDetails: _reduxjs_toolkit_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_query.BaseQueryApi) => Promise<{
655
+ data: {};
656
+ } | {
657
+ data: Gen3FenceResponse<unknown>;
658
+ }>, never, UserAuthResponse, "userAuthApi">;
659
+ getCSRF: _reduxjs_toolkit_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_query.BaseQueryApi) => Promise<{
660
+ data: {};
661
+ } | {
662
+ data: Gen3FenceResponse<unknown>;
663
+ }>, never, CSRFToken, "userAuthApi">;
664
+ }, string, "userAuthApi">, _reduxjs_toolkit.ThunkDispatch<any, any, redux.AnyAction>>]>>;
665
+ type CoreDispatch = typeof coreStore.dispatch;
666
+
667
+ interface Gen3UserLoginResponse<T> {
668
+ readonly data?: T;
669
+ readonly error?: string;
670
+ readonly loginStatus: LoginStatus;
671
+ readonly isUninitialized: boolean;
672
+ readonly isFetching: boolean;
673
+ readonly isSuccess: boolean;
674
+ readonly isError: boolean;
675
+ }
676
+ /**
677
+ * Creates an async thunk for fetching user permissions details from fence
678
+ * @see https://redux-toolkit.js.org/api/createAsyncThunk
679
+ * @returns: A fence response dict containing user details
680
+ */
681
+ declare const fetchUserState: _reduxjs_toolkit.AsyncThunk<Gen3FenceResponse<Partial<UserProfile>>, void, {
682
+ dispatch: CoreDispatch;
683
+ state: CoreState;
684
+ extra?: unknown;
685
+ rejectValue?: unknown;
686
+ serializedErrorType?: unknown;
687
+ pendingMeta?: unknown;
688
+ fulfilledMeta?: unknown;
689
+ rejectedMeta?: unknown;
690
+ }>;
691
+ declare const isAuthenticated: (loginStatus: LoginStatus) => boolean;
692
+ declare const isPending: (loginStatus: LoginStatus) => boolean;
693
+ interface Gen3UserState {
694
+ readonly data?: Gen3User;
695
+ readonly status: DataStatus;
696
+ readonly loginStatus: LoginStatus;
697
+ readonly error?: string;
698
+ }
699
+ declare const resetUserState: _reduxjs_toolkit.ActionCreatorWithoutPayload<"fence/user/resetUserState">;
700
+ interface Gen3UserSelectorResponse<T> extends CoreDataSelectorResponse<T> {
701
+ readonly loginStatus: LoginStatus;
702
+ }
703
+ declare const selectUserData: (state: CoreState) => Gen3UserSelectorResponse<Gen3User>;
704
+ declare const selectUser: (state: CoreState) => Gen3UserState;
705
+ declare const selectUserLoginStatus: (state: CoreState) => LoginStatus;
706
+ declare const useUser: UseCoreDataHook<never, Partial<UserProfile>>;
707
+ declare const useIsUserLoggedIn: () => boolean;
708
+ /**
709
+ * Hook to return get the authenticated state of the user and if logged in,
710
+ * the user's profile and access api.
711
+ * Note that if fetchUserState gets called, the user's session is renewed.
712
+ */
713
+ declare const useUserAuth: (renew?: boolean) => Gen3UserLoginResponse<Gen3User>;
714
+
715
+ interface CSRFToken {
716
+ readonly csrfToken: string;
717
+ }
718
+ interface UserAuthResponse {
719
+ readonly data: Gen3User;
720
+ readonly loginStatus: LoginStatus;
721
+ }
722
+ declare const useFetchUserDetailsQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_query.BaseQueryApi) => Promise<{
723
+ data: {};
724
+ } | {
725
+ data: Gen3FenceResponse<unknown>;
726
+ }>, never, UserAuthResponse, "userAuthApi">>;
727
+ declare const useLazyFetchUserDetailsQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseLazyQuery<_reduxjs_toolkit_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_query.BaseQueryApi) => Promise<{
728
+ data: {};
729
+ } | {
730
+ data: Gen3FenceResponse<unknown>;
731
+ }>, never, UserAuthResponse, "userAuthApi">>;
732
+ declare const useGetCSRFQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_query.BaseQueryApi) => Promise<{
733
+ data: {};
734
+ } | {
735
+ data: Gen3FenceResponse<unknown>;
736
+ }>, never, CSRFToken, "userAuthApi">>;
737
+ declare const selectUserDetails: ((state: _reduxjs_toolkit_dist_query_core_apiState.RootState<{
738
+ fetchUserDetails: _reduxjs_toolkit_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_query.BaseQueryApi) => Promise<{
739
+ data: {};
740
+ } | {
741
+ data: Gen3FenceResponse<unknown>;
742
+ }>, never, UserAuthResponse, "userAuthApi">;
743
+ getCSRF: _reduxjs_toolkit_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_query.BaseQueryApi) => Promise<{
744
+ data: {};
745
+ } | {
746
+ data: Gen3FenceResponse<unknown>;
747
+ }>, never, CSRFToken, "userAuthApi">;
748
+ }, never, "userAuthApi">) => Partial<UserProfile>) & reselect.OutputSelectorFields<(args_0: ({
749
+ status: QueryStatus.uninitialized;
750
+ originalArgs?: undefined;
751
+ data?: undefined;
752
+ error?: undefined;
753
+ requestId?: undefined;
754
+ endpointName?: string | undefined;
755
+ startedTimeStamp?: undefined;
756
+ fulfilledTimeStamp?: undefined;
757
+ } & {
758
+ status: QueryStatus.uninitialized;
759
+ isUninitialized: true;
760
+ isLoading: false;
761
+ isSuccess: false;
762
+ isError: false;
763
+ }) | ({
764
+ status: QueryStatus.fulfilled;
765
+ error: undefined;
766
+ requestId: string;
767
+ originalArgs: void;
768
+ endpointName: string;
769
+ startedTimeStamp: number;
770
+ data: UserAuthResponse;
771
+ fulfilledTimeStamp: number;
772
+ } & {
773
+ status: QueryStatus.fulfilled;
774
+ isUninitialized: false;
775
+ isLoading: false;
776
+ isSuccess: true;
777
+ isError: false;
778
+ }) | ({
779
+ status: QueryStatus.pending;
780
+ originalArgs: void;
781
+ requestId: string;
782
+ data?: UserAuthResponse | undefined;
783
+ error?: unknown;
784
+ endpointName: string;
785
+ startedTimeStamp: number;
786
+ fulfilledTimeStamp?: number | undefined;
787
+ } & {
788
+ status: QueryStatus.pending;
789
+ isUninitialized: false;
790
+ isLoading: true;
791
+ isSuccess: false;
792
+ isError: false;
793
+ }) | ({
794
+ status: QueryStatus.rejected;
795
+ data?: UserAuthResponse | undefined;
796
+ requestId: string;
797
+ fulfilledTimeStamp?: number | undefined;
798
+ originalArgs: void;
799
+ endpointName: string;
800
+ startedTimeStamp: number;
801
+ error: unknown;
802
+ } & {
803
+ status: QueryStatus.rejected;
804
+ isUninitialized: false;
805
+ isLoading: false;
806
+ isSuccess: false;
807
+ isError: true;
808
+ })) => Partial<UserProfile>, {
809
+ clearCache: () => void;
810
+ }> & {
811
+ clearCache: () => void;
812
+ };
813
+ declare const selectUserAuthStatus: ((state: _reduxjs_toolkit_dist_query_core_apiState.RootState<{
814
+ fetchUserDetails: _reduxjs_toolkit_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_query.BaseQueryApi) => Promise<{
815
+ data: {};
816
+ } | {
817
+ data: Gen3FenceResponse<unknown>;
818
+ }>, never, UserAuthResponse, "userAuthApi">;
819
+ getCSRF: _reduxjs_toolkit_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_query.BaseQueryApi) => Promise<{
820
+ data: {};
821
+ } | {
822
+ data: Gen3FenceResponse<unknown>;
823
+ }>, never, CSRFToken, "userAuthApi">;
824
+ }, never, "userAuthApi">) => LoginStatus) & reselect.OutputSelectorFields<(args_0: ({
825
+ status: QueryStatus.uninitialized;
826
+ originalArgs?: undefined;
827
+ data?: undefined;
828
+ error?: undefined;
829
+ requestId?: undefined;
830
+ endpointName?: string | undefined;
831
+ startedTimeStamp?: undefined;
832
+ fulfilledTimeStamp?: undefined;
833
+ } & {
834
+ status: QueryStatus.uninitialized;
835
+ isUninitialized: true;
836
+ isLoading: false;
837
+ isSuccess: false;
838
+ isError: false;
839
+ }) | ({
840
+ status: QueryStatus.fulfilled;
841
+ error: undefined;
842
+ requestId: string;
843
+ originalArgs: void;
844
+ endpointName: string;
845
+ startedTimeStamp: number;
846
+ data: UserAuthResponse;
847
+ fulfilledTimeStamp: number;
848
+ } & {
849
+ status: QueryStatus.fulfilled;
850
+ isUninitialized: false;
851
+ isLoading: false;
852
+ isSuccess: true;
853
+ isError: false;
854
+ }) | ({
855
+ status: QueryStatus.pending;
856
+ originalArgs: void;
857
+ requestId: string;
858
+ data?: UserAuthResponse | undefined;
859
+ error?: unknown;
860
+ endpointName: string;
861
+ startedTimeStamp: number;
862
+ fulfilledTimeStamp?: number | undefined;
863
+ } & {
864
+ status: QueryStatus.pending;
865
+ isUninitialized: false;
866
+ isLoading: true;
867
+ isSuccess: false;
868
+ isError: false;
869
+ }) | ({
870
+ status: QueryStatus.rejected;
871
+ data?: UserAuthResponse | undefined;
872
+ requestId: string;
873
+ fulfilledTimeStamp?: number | undefined;
874
+ originalArgs: void;
875
+ endpointName: string;
876
+ startedTimeStamp: number;
877
+ error: unknown;
878
+ } & {
879
+ status: QueryStatus.rejected;
880
+ isUninitialized: false;
881
+ isLoading: false;
882
+ isSuccess: false;
883
+ isError: true;
884
+ })) => LoginStatus, {
885
+ clearCache: () => void;
886
+ }> & {
887
+ clearCache: () => void;
888
+ };
889
+ declare const selectCSRFTokenData: (state: _reduxjs_toolkit_dist_query_core_apiState.RootState<{
890
+ fetchUserDetails: _reduxjs_toolkit_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_query.BaseQueryApi) => Promise<{
891
+ data: {};
892
+ } | {
893
+ data: Gen3FenceResponse<unknown>;
894
+ }>, never, UserAuthResponse, "userAuthApi">;
895
+ getCSRF: _reduxjs_toolkit_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_query.BaseQueryApi) => Promise<{
896
+ data: {};
897
+ } | {
898
+ data: Gen3FenceResponse<unknown>;
899
+ }>, never, CSRFToken, "userAuthApi">;
900
+ }, never, "userAuthApi">) => ({
901
+ status: QueryStatus.uninitialized;
902
+ originalArgs?: undefined;
903
+ data?: undefined;
904
+ error?: undefined;
905
+ requestId?: undefined;
906
+ endpointName?: string | undefined;
907
+ startedTimeStamp?: undefined;
908
+ fulfilledTimeStamp?: undefined;
909
+ } & {
910
+ status: QueryStatus.uninitialized;
911
+ isUninitialized: true;
912
+ isLoading: false;
913
+ isSuccess: false;
914
+ isError: false;
915
+ }) | ({
916
+ status: QueryStatus.fulfilled;
917
+ error: undefined;
918
+ requestId: string;
919
+ originalArgs: void;
920
+ endpointName: string;
921
+ startedTimeStamp: number;
922
+ data: CSRFToken;
923
+ fulfilledTimeStamp: number;
924
+ } & {
925
+ status: QueryStatus.fulfilled;
926
+ isUninitialized: false;
927
+ isLoading: false;
928
+ isSuccess: true;
929
+ isError: false;
930
+ }) | ({
931
+ status: QueryStatus.pending;
932
+ originalArgs: void;
933
+ requestId: string;
934
+ data?: CSRFToken | undefined;
935
+ error?: unknown;
936
+ endpointName: string;
937
+ startedTimeStamp: number;
938
+ fulfilledTimeStamp?: number | undefined;
939
+ } & {
940
+ status: QueryStatus.pending;
941
+ isUninitialized: false;
942
+ isLoading: true;
943
+ isSuccess: false;
944
+ isError: false;
945
+ }) | ({
946
+ status: QueryStatus.rejected;
947
+ data?: CSRFToken | undefined;
948
+ requestId: string;
949
+ fulfilledTimeStamp?: number | undefined;
950
+ originalArgs: void;
951
+ endpointName: string;
952
+ startedTimeStamp: number;
953
+ error: unknown;
954
+ } & {
955
+ status: QueryStatus.rejected;
956
+ isUninitialized: false;
957
+ isLoading: false;
958
+ isSuccess: false;
959
+ isError: true;
960
+ });
961
+ declare const selectCSRFToken: ((state: _reduxjs_toolkit_dist_query_core_apiState.RootState<{
962
+ fetchUserDetails: _reduxjs_toolkit_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_query.BaseQueryApi) => Promise<{
963
+ data: {};
964
+ } | {
965
+ data: Gen3FenceResponse<unknown>;
966
+ }>, never, UserAuthResponse, "userAuthApi">;
967
+ getCSRF: _reduxjs_toolkit_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_query.BaseQueryApi) => Promise<{
968
+ data: {};
969
+ } | {
970
+ data: Gen3FenceResponse<unknown>;
971
+ }>, never, CSRFToken, "userAuthApi">;
972
+ }, never, "userAuthApi"> & redux.EmptyObject & {
973
+ [x: string]: any;
974
+ gen3Services: any;
975
+ user: Gen3UserState;
976
+ gen3Apps: Gen3AppsState;
977
+ drsHostnames: Record<string, string>;
978
+ modals: ModalState;
979
+ cohorts: CohortState;
980
+ userAuthApi: _reduxjs_toolkit_dist_query_core_apiState.CombinedState<{
981
+ fetchUserDetails: _reduxjs_toolkit_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_query.BaseQueryApi) => Promise<{
982
+ data: {};
983
+ } | {
984
+ data: Gen3FenceResponse<unknown>;
985
+ }>, never, UserAuthResponse, "userAuthApi">;
986
+ getCSRF: _reduxjs_toolkit_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_query.BaseQueryApi) => Promise<{
987
+ data: {};
988
+ } | {
989
+ data: Gen3FenceResponse<unknown>;
990
+ }>, never, CSRFToken, "userAuthApi">;
991
+ }, never, "userAuthApi">;
992
+ }) => string | undefined) & reselect.OutputSelectorFields<(args_0: ({
993
+ status: QueryStatus.uninitialized;
994
+ originalArgs?: undefined;
995
+ data?: undefined;
996
+ error?: undefined;
997
+ requestId?: undefined;
998
+ endpointName?: string | undefined;
999
+ startedTimeStamp?: undefined;
1000
+ fulfilledTimeStamp?: undefined;
1001
+ } & {
1002
+ status: QueryStatus.uninitialized;
1003
+ isUninitialized: true;
1004
+ isLoading: false;
1005
+ isSuccess: false;
1006
+ isError: false;
1007
+ }) | ({
1008
+ status: QueryStatus.fulfilled;
1009
+ error: undefined;
1010
+ requestId: string;
1011
+ originalArgs: void;
1012
+ endpointName: string;
1013
+ startedTimeStamp: number;
1014
+ data: CSRFToken;
1015
+ fulfilledTimeStamp: number;
1016
+ } & {
1017
+ status: QueryStatus.fulfilled;
1018
+ isUninitialized: false;
1019
+ isLoading: false;
1020
+ isSuccess: true;
1021
+ isError: false;
1022
+ }) | ({
1023
+ status: QueryStatus.pending;
1024
+ originalArgs: void;
1025
+ requestId: string;
1026
+ data?: CSRFToken | undefined;
1027
+ error?: unknown;
1028
+ endpointName: string;
1029
+ startedTimeStamp: number;
1030
+ fulfilledTimeStamp?: number | undefined;
1031
+ } & {
1032
+ status: QueryStatus.pending;
1033
+ isUninitialized: false;
1034
+ isLoading: true;
1035
+ isSuccess: false;
1036
+ isError: false;
1037
+ }) | ({
1038
+ status: QueryStatus.rejected;
1039
+ data?: CSRFToken | undefined;
1040
+ requestId: string;
1041
+ fulfilledTimeStamp?: number | undefined;
1042
+ originalArgs: void;
1043
+ endpointName: string;
1044
+ startedTimeStamp: number;
1045
+ error: unknown;
1046
+ } & {
1047
+ status: QueryStatus.rejected;
1048
+ isUninitialized: false;
1049
+ isLoading: false;
1050
+ isSuccess: false;
1051
+ isError: true;
1052
+ }), args_1: any) => string | undefined, {
1053
+ clearCache: () => void;
1054
+ }> & {
1055
+ clearCache: () => void;
1056
+ };
1057
+ declare const selectHeadersWithCSRFToken: ((state: _reduxjs_toolkit_dist_query_core_apiState.RootState<{
1058
+ fetchUserDetails: _reduxjs_toolkit_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_query.BaseQueryApi) => Promise<{
1059
+ data: {};
1060
+ } | {
1061
+ data: Gen3FenceResponse<unknown>;
1062
+ }>, never, UserAuthResponse, "userAuthApi">;
1063
+ getCSRF: _reduxjs_toolkit_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_query.BaseQueryApi) => Promise<{
1064
+ data: {};
1065
+ } | {
1066
+ data: Gen3FenceResponse<unknown>;
1067
+ }>, never, CSRFToken, "userAuthApi">;
1068
+ }, never, "userAuthApi"> & redux.EmptyObject & {
1069
+ [x: string]: any;
1070
+ gen3Services: any;
1071
+ user: Gen3UserState;
1072
+ gen3Apps: Gen3AppsState;
1073
+ drsHostnames: Record<string, string>;
1074
+ modals: ModalState;
1075
+ cohorts: CohortState;
1076
+ userAuthApi: _reduxjs_toolkit_dist_query_core_apiState.CombinedState<{
1077
+ fetchUserDetails: _reduxjs_toolkit_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_query.BaseQueryApi) => Promise<{
1078
+ data: {};
1079
+ } | {
1080
+ data: Gen3FenceResponse<unknown>;
1081
+ }>, never, UserAuthResponse, "userAuthApi">;
1082
+ getCSRF: _reduxjs_toolkit_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_query.BaseQueryApi) => Promise<{
1083
+ data: {};
1084
+ } | {
1085
+ data: Gen3FenceResponse<unknown>;
1086
+ }>, never, CSRFToken, "userAuthApi">;
1087
+ }, never, "userAuthApi">;
1088
+ }) => {
1089
+ 'X-CSRF-Token'?: string | undefined;
1090
+ Accept: string;
1091
+ 'Content-Type': string;
1092
+ }) & reselect.OutputSelectorFields<(args_0: string | undefined, args_1: any) => {
1093
+ 'X-CSRF-Token'?: string | undefined;
1094
+ Accept: string;
1095
+ 'Content-Type': string;
1096
+ }, {
1097
+ clearCache: () => void;
1098
+ }> & {
1099
+ clearCache: () => void;
1100
+ };
1101
+
1102
+ declare const rootReducer: redux.Reducer<redux.CombinedState<{
1103
+ [x: string]: any;
1104
+ gen3Services: any;
1105
+ user: Gen3UserState;
1106
+ gen3Apps: Gen3AppsState;
1107
+ drsHostnames: Record<string, string>;
1108
+ modals: ModalState;
1109
+ cohorts: CohortState;
1110
+ userAuthApi: _reduxjs_toolkit_dist_query_core_apiState.CombinedState<{
1111
+ fetchUserDetails: _reduxjs_toolkit_dist_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_dist_query.BaseQueryApi) => Promise<{
1112
+ data: {};
1113
+ } | {
1114
+ data: Gen3FenceResponse<unknown>;
1115
+ }>, never, UserAuthResponse, "userAuthApi">;
1116
+ getCSRF: _reduxjs_toolkit_dist_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_dist_query.BaseQueryApi) => Promise<{
1117
+ data: {};
1118
+ } | {
1119
+ data: Gen3FenceResponse<unknown>;
1120
+ }>, never, CSRFToken, "userAuthApi">;
1121
+ }, never, "userAuthApi">;
1122
+ }>, redux.AnyAction>;
1123
+ type CoreState = ReturnType<typeof rootReducer>;
1124
+
1125
+ interface ExternalProviderResponse {
1126
+ providers: ExternalProvider[];
1127
+ }
1128
+ declare const useGetExternalLoginsQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<void, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, never, ExternalProviderResponse, "gen3Services">>;
1129
+ declare const useLazyGetExternalLoginsQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseLazyQuery<_reduxjs_toolkit_dist_query.QueryDefinition<void, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, never, ExternalProviderResponse, "gen3Services">>;
1130
+ declare const useLazyIsExternalConnectedQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseLazyQuery<_reduxjs_toolkit_dist_query.QueryDefinition<string, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, never, boolean, "gen3Services">>;
1131
+ declare const useIsExternalConnectedQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<string, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, never, boolean, "gen3Services">>;
1132
+
1133
+ /**
1134
+ * The initial context is never used in practice. A little casting voodoo to satisfy TS.
1135
+ *
1136
+ * Note: Should the action type be AnyAction (from redux) or PayloadAction (from redux-toolkit)?
1137
+ * If we are creating all of our actions through RTK, then PayloadAction might be the
1138
+ * correct opinionated type.
1139
+ */
1140
+ declare const CoreContext: React.Context<ReactReduxContextValue<redux.CombinedState<{
1141
+ [x: string]: any;
1142
+ gen3Services: any;
1143
+ user: Gen3UserState;
1144
+ gen3Apps: Gen3AppsState;
1145
+ drsHostnames: Record<string, string>;
1146
+ modals: ModalState;
1147
+ cohorts: CohortState;
1148
+ userAuthApi: _reduxjs_toolkit_dist_query_core_apiState.CombinedState<{
1149
+ fetchUserDetails: _reduxjs_toolkit_dist_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_dist_query.BaseQueryApi) => Promise<{
1150
+ data: {};
1151
+ } | {
1152
+ data: Gen3FenceResponse<unknown>;
1153
+ }>, never, UserAuthResponse, "userAuthApi">;
1154
+ getCSRF: _reduxjs_toolkit_dist_query.QueryDefinition<void, ({ endpoint }: any, { getState }: _reduxjs_toolkit_dist_query.BaseQueryApi) => Promise<{
1155
+ data: {};
1156
+ } | {
1157
+ data: Gen3FenceResponse<unknown>;
1158
+ }>, never, CSRFToken, "userAuthApi">;
1159
+ }, never, "userAuthApi">;
1160
+ }>, redux.AnyAction>>;
1161
+ declare const useCoreSelector: TypedUseSelectorHook<CoreState>;
1162
+ declare const useCoreDispatch: () => CoreDispatch;
1163
+ declare const useCoreStore: () => Store;
1164
+
1165
+ declare const CoreProvider: React.FC<Record<string, unknown>>;
1166
+
1167
+ interface CrosswalkEntry {
1168
+ fromId: string;
1169
+ matches: Record<string, string | undefined>;
1170
+ }
1171
+ interface IndexedMetadataFilters {
1172
+ limit: number;
1173
+ keys: string[];
1174
+ }
1175
+ interface CrosswalkInfo {
1176
+ readonly from: string;
1177
+ readonly to: Record<string, string>;
1178
+ }
1179
+
1180
+ interface Metadata {
1181
+ readonly entries: Array<Record<string, unknown>>;
1182
+ }
1183
+ type CrosswalkArray = Array<CrosswalkInfo>;
1184
+ interface ToMapping {
1185
+ id: string;
1186
+ dataPath: string[];
1187
+ }
1188
+ interface CrossWalkParams {
1189
+ readonly ids: string[];
1190
+ readonly toPaths: Array<ToMapping>;
1191
+ }
1192
+ interface MetadataResponse {
1193
+ data: Array<JSONObject>;
1194
+ hits: number;
1195
+ }
1196
+ interface MetadataPaginationParams {
1197
+ pageSize: number;
1198
+ offset: number;
1199
+ }
1200
+ interface MetadataRequestParams extends MetadataPaginationParams {
1201
+ guidType: string;
1202
+ studyField: string;
1203
+ }
1204
+ interface IndexedMetadataRequestParams extends MetadataRequestParams {
1205
+ indexKeys: Array<string>;
1206
+ filterEmpty?: IndexedMetadataFilters;
1207
+ }
1208
+ declare const useGetAggMDSQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<MetadataRequestParams, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, never, MetadataResponse, "gen3Services">>;
1209
+ declare const useGetMDSQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<MetadataRequestParams, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, never, MetadataResponse, "gen3Services">>;
1210
+ declare const useGetTagsQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<string, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, never, Metadata, "gen3Services">>;
1211
+ declare const useGetDataQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<string, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, never, Metadata, "gen3Services">>;
1212
+ declare const useGetCrosswalkDataQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<CrossWalkParams, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, never, CrosswalkArray, "gen3Services">>;
1213
+ declare const useLazyGetCrosswalkDataQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseLazyQuery<_reduxjs_toolkit_dist_query.QueryDefinition<CrossWalkParams, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, never, CrosswalkArray, "gen3Services">>;
1214
+ declare const useGetIndexAggMDSQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<IndexedMetadataRequestParams, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, never, MetadataResponse, "gen3Services">>;
1215
+
1216
+ interface CreateGen3AppOptions {
1217
+ readonly App: ComponentType;
1218
+ readonly name: string;
1219
+ readonly version: string;
1220
+ readonly requiredEntityTypes: ReadonlyArray<EntityType>;
1221
+ }
1222
+ declare const getGen3AppId: (name: string, version: string) => string;
1223
+ /**
1224
+ * TODO: can't tell what anything in this directory is doing.
1225
+ */
1226
+ declare const createGen3App: ({ App, name, version, requiredEntityTypes, }: CreateGen3AppOptions) => React.FC;
1227
+
1228
+ declare const graphQLWithTags: _reduxjs_toolkit_dist_query.Api<_reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, _reduxjs_toolkit_dist_query_endpointDefinitions.UpdateDefinitions<{}, "graphQL", never>, "gen3Services", "graphQL", keyof _reduxjs_toolkit_dist_query.ApiModules<any, any, any, any>>;
1229
+ /**
1230
+ * Creates a graphQLAPI for graphql queries to elasticsearch indices via guppy
1231
+ * @see https://github.com/uc-cdis/guppy/blob/master/doc/queries.md
1232
+ * @param query - Resolver function which configures the graphql query with graphQLParams argument
1233
+ * @returns: A guppy search API for fetching metadata
1234
+ */
1235
+ declare const graphQLAPI: _reduxjs_toolkit_dist_query.Api<_reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, _reduxjs_toolkit_dist_query_endpointDefinitions.UpdateDefinitions<{}, "graphQL", never> & {
1236
+ graphQL: _reduxjs_toolkit_dist_query.QueryDefinition<JSONObject, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, "graphQL", JSONObject, "gen3Services">;
1237
+ }, "gen3Services", "graphQL", keyof _reduxjs_toolkit_dist_query.ApiModules<any, any, any, any>>;
1238
+ declare const useGraphQLQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<JSONObject, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, "graphQL", JSONObject, "gen3Services">>;
1239
+
1240
+ /**
1241
+ * Creates a base class core API for building other API endpoints on top of.
1242
+ * @param reducerPath - The root key name that the other slices will be derived from
1243
+ * @param baseQuery: - The template query which the slices will addon to
1244
+ * @param endpoints - Base API endpoints that should exist in every slice
1245
+ * @returns: The generated base API
1246
+ */
1247
+ declare const gen3Api: _reduxjs_toolkit_dist_query_apiTypes.Api<_reduxjs_toolkit_dist_query_baseQueryTypes.BaseQueryFn<string | _reduxjs_toolkit_dist_query_fetchBaseQuery.FetchArgs, unknown, _reduxjs_toolkit_dist_query_fetchBaseQuery.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query_fetchBaseQuery.FetchBaseQueryMeta>, {}, "gen3Services", never, keyof _reduxjs_toolkit_dist_query_apiTypes.ApiModules<any, any, any, any>>;
1248
+
1249
+ type DRSHostnameMap = Record<string, string>;
1250
+ declare const drsHostnamesReducer: redux.Reducer<Record<string, string>>;
1251
+ declare const setDRSHostnames: _reduxjs_toolkit.ActionCreatorWithPayload<DRSHostnameMap, "drsResolver/setDRSHostnames">;
1252
+
1253
+ interface guppyFetchError {
1254
+ readonly url: string;
1255
+ readonly status: number;
1256
+ readonly statusText: string;
1257
+ readonly text: string;
1258
+ readonly variables?: Record<string, any>;
1259
+ }
1260
+ interface guppyApiSliceRequest {
1261
+ readonly query: string;
1262
+ readonly variables?: Record<string, unknown>;
1263
+ }
1264
+ interface guppyApiResponse<H = JSONObject> {
1265
+ readonly data: H;
1266
+ readonly errors: Record<string, string>;
1267
+ }
1268
+ interface SortOption {
1269
+ field: string;
1270
+ order: string;
1271
+ }
1272
+ interface TablePageOffsetProps {
1273
+ readonly pageSize?: number;
1274
+ readonly offset?: number;
1275
+ readonly sorts?: Array<SortOption>;
1276
+ readonly searchTerm?: string;
1277
+ }
1278
+ /**
1279
+ * Creates a base class core API for guppy API calls.
1280
+ * @returns: guppy core API with guppyAPIFetch base query
1281
+ */
1282
+ declare const guppyApi: _reduxjs_toolkit_dist_query.Api<(query: guppyApiSliceRequest, api: _reduxjs_toolkit_dist_query.BaseQueryApi) => Promise<{
1283
+ data: any;
1284
+ error?: undefined;
1285
+ } | {
1286
+ error: unknown;
1287
+ data?: undefined;
1288
+ }>, {}, "guppy", never, keyof _reduxjs_toolkit_dist_query.ApiModules<any, any, any, any>>;
1289
+ declare const guppyAPISliceMiddleware: Middleware;
1290
+ declare const guppyApiSliceReducerPath: string;
1291
+ declare const guppyApiReducer: Reducer;
1292
+
1293
+ interface GraphQLQuery {
1294
+ query: string;
1295
+ variables?: Record<string, unknown>;
1296
+ }
1297
+ declare const fetchJson: Fetcher<JSONObject, string>;
1298
+ declare const useGetStatus: () => SWRResponse<JSONObject, Error>;
1299
+ type AggregationResponse = Record<string, JSONObject>;
1300
+ interface RawDataAndTotalCountsParams {
1301
+ type: string;
1302
+ fields: string[];
1303
+ filters: FilterSet;
1304
+ sort?: ReadonlyArray<Record<string, 'asc' | 'desc'>>;
1305
+ offset?: number;
1306
+ size?: number;
1307
+ accessibility?: Accessibility;
1308
+ format?: string;
1309
+ }
1310
+ interface AccessibleDataSliceParams {
1311
+ type: string;
1312
+ fields: ReadonlyArray<string>;
1313
+ accessType: Accessibility;
1314
+ }
1315
+ interface QueryAggsParams {
1316
+ type: string;
1317
+ fields: ReadonlyArray<string>;
1318
+ filters: FilterSet;
1319
+ accessibility?: Accessibility;
1320
+ }
1321
+ interface QueryForSubAggsParams {
1322
+ type: string;
1323
+ mainField: string;
1324
+ numericAggAsText: boolean;
1325
+ termsFields?: ReadonlyArray<string>;
1326
+ missingFields?: ReadonlyArray<string>;
1327
+ gqlFilter?: FilterSet;
1328
+ accessibility?: Accessibility;
1329
+ }
1330
+ interface QueryCountsParams {
1331
+ type: string;
1332
+ filters: FilterSet;
1333
+ accessibility?: Accessibility;
1334
+ }
1335
+ interface QueryForFileCountSummaryParams {
1336
+ type: string;
1337
+ field: string;
1338
+ filters: FilterSet;
1339
+ }
1340
+ declare const rawDataQueryStrForEachField: (field: string) => string;
1341
+ declare const useGetArrayTypes: () => JSONValue;
1342
+ declare const useGetRawDataAndTotalCountsQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<RawDataAndTotalCountsParams, (query: guppyApiSliceRequest, api: _reduxjs_toolkit_dist_query.BaseQueryApi) => Promise<{
1343
+ data: any;
1344
+ error?: undefined;
1345
+ } | {
1346
+ error: unknown;
1347
+ data?: undefined;
1348
+ }>, never, any, "guppy">>;
1349
+ declare const useGetAccessibleDataQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<AccessibleDataSliceParams, (query: guppyApiSliceRequest, api: _reduxjs_toolkit_dist_query.BaseQueryApi) => Promise<{
1350
+ data: any;
1351
+ error?: undefined;
1352
+ } | {
1353
+ error: unknown;
1354
+ data?: undefined;
1355
+ }>, never, any, "guppy">>;
1356
+ declare const useGetAllFieldsForTypeQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<{
1357
+ type: string;
1358
+ }, (query: guppyApiSliceRequest, api: _reduxjs_toolkit_dist_query.BaseQueryApi) => Promise<{
1359
+ data: any;
1360
+ error?: undefined;
1361
+ } | {
1362
+ error: unknown;
1363
+ data?: undefined;
1364
+ }>, never, any, "guppy">>;
1365
+ declare const useGetAggsQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<QueryAggsParams, (query: guppyApiSliceRequest, api: _reduxjs_toolkit_dist_query.BaseQueryApi) => Promise<{
1366
+ data: any;
1367
+ error?: undefined;
1368
+ } | {
1369
+ error: unknown;
1370
+ data?: undefined;
1371
+ }>, never, AggregationsData, "guppy">>;
1372
+ declare const useGetSubAggsQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<QueryForSubAggsParams, (query: guppyApiSliceRequest, api: _reduxjs_toolkit_dist_query.BaseQueryApi) => Promise<{
1373
+ data: any;
1374
+ error?: undefined;
1375
+ } | {
1376
+ error: unknown;
1377
+ data?: undefined;
1378
+ }>, never, AggregationsData, "guppy">>;
1379
+ declare const useGetCountsQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<QueryCountsParams, (query: guppyApiSliceRequest, api: _reduxjs_toolkit_dist_query.BaseQueryApi) => Promise<{
1380
+ data: any;
1381
+ error?: undefined;
1382
+ } | {
1383
+ error: unknown;
1384
+ data?: undefined;
1385
+ }>, never, number, "guppy">>;
1386
+ declare const useGetFieldCountSummaryQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<QueryForFileCountSummaryParams, (query: guppyApiSliceRequest, api: _reduxjs_toolkit_dist_query.BaseQueryApi) => Promise<{
1387
+ data: any;
1388
+ error?: undefined;
1389
+ } | {
1390
+ error: unknown;
1391
+ data?: undefined;
1392
+ }>, never, Record<string, any>, "guppy">>;
1393
+ declare const useGetFieldsForIndexQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<string, (query: guppyApiSliceRequest, api: _reduxjs_toolkit_dist_query.BaseQueryApi) => Promise<{
1394
+ data: any;
1395
+ error?: undefined;
1396
+ } | {
1397
+ error: unknown;
1398
+ data?: undefined;
1399
+ }>, never, any, "guppy">>;
1400
+ declare const useGeneralGQLQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<guppyApiSliceRequest, (query: guppyApiSliceRequest, api: _reduxjs_toolkit_dist_query.BaseQueryApi) => Promise<{
1401
+ data: any;
1402
+ error?: undefined;
1403
+ } | {
1404
+ error: unknown;
1405
+ data?: undefined;
1406
+ }>, never, Record<string, unknown>, "guppy">>;
1407
+ declare const useLazyGeneralGQLQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseLazyQuery<_reduxjs_toolkit_dist_query.QueryDefinition<guppyApiSliceRequest, (query: guppyApiSliceRequest, api: _reduxjs_toolkit_dist_query.BaseQueryApi) => Promise<{
1408
+ data: any;
1409
+ error?: undefined;
1410
+ } | {
1411
+ error: unknown;
1412
+ data?: undefined;
1413
+ }>, never, Record<string, unknown>, "guppy">>;
1414
+ declare const selectAggDataForIndex: (state: CoreState, index: string, field: string) => any;
1415
+
1416
+ interface BaseGuppyDataRequest {
1417
+ type: string;
1418
+ accessibility?: Accessibility;
1419
+ fields: string[];
1420
+ sort?: string[];
1421
+ }
1422
+ interface GuppyDownloadDataParams extends BaseGuppyDataRequest {
1423
+ filter: FilterSet;
1424
+ format: 'json' | 'csv' | 'tsv';
1425
+ rootPath?: string;
1426
+ }
1427
+ interface GuppyActionFunctionParams extends Record<string, any> {
1428
+ type: string;
1429
+ accessibility?: Accessibility;
1430
+ fields: string[];
1431
+ sort?: string[];
1432
+ filter: FilterSet;
1433
+ }
1434
+ interface GuppyActionParams<T extends Record<string, any>> {
1435
+ parameters: T;
1436
+ onStart?: () => void;
1437
+ onDone?: (blob: Blob) => void;
1438
+ onError?: (error: Error) => void;
1439
+ onAbort?: () => void;
1440
+ signal?: AbortSignal;
1441
+ }
1442
+ interface GuppyDownloadActionFunctionParams extends GuppyDownloadDataParams {
1443
+ filename: string;
1444
+ }
1445
+ type GuppyActionFunction<T extends Record<string, any>> = (args: GuppyActionParams<T>) => void;
1446
+ type DownloadFromGuppyParams = GuppyActionParams<GuppyDownloadDataParams>;
1447
+
1448
+ /**
1449
+ * Downloads a file from Guppy using the provided parameters.
1450
+ * It will optionally convert the data to the specified format.
1451
+ *
1452
+ * @param {DownloadFromGuppyParams} parameters - The parameters to use for the download request.
1453
+ * @param onStart - The function to call when the download starts.
1454
+ * @param onDone - The function to call when the download is done.
1455
+ * @param onError - The function to call when the download fails.
1456
+ * @param onAbort - The function to call when the download is aborted.
1457
+ * @param signal - AbortSignal to use for the request.
1458
+ */
1459
+ declare const downloadFromGuppyToBlob: ({ parameters, onStart, onDone, onError, onAbort, signal, }: DownloadFromGuppyParams) => Promise<void>;
1460
+ declare const downloadJSONDataFromGuppy: ({ parameters, onAbort, signal, }: DownloadFromGuppyParams) => Promise<any>;
1461
+ declare const useGetIndexFields: (index: string) => any;
1462
+
1463
+ interface DownloadRequestStatus {
1464
+ readonly status: string;
1465
+ readonly message: string;
1466
+ }
1467
+ declare const useDownloadFromGuppyMutation: _reduxjs_toolkit_dist_query_react_buildHooks.UseMutation<_reduxjs_toolkit_dist_query.MutationDefinition<GuppyDownloadDataParams, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, never, DownloadRequestStatus, "gen3Services">>;
1468
+
1469
+ interface AiSearchParams {
1470
+ readonly query: string;
1471
+ }
1472
+ interface AiSearchRequestParams extends AiSearchParams {
1473
+ readonly topic?: string;
1474
+ readonly conversationId?: string;
1475
+ }
1476
+ interface AiSearchResponse extends AiSearchParams {
1477
+ readonly topic: string;
1478
+ readonly conversationId: string;
1479
+ readonly response: string;
1480
+ readonly documents: {
1481
+ readonly page_content: string;
1482
+ readonly metadata: {
1483
+ readonly row: number;
1484
+ readonly source: string;
1485
+ };
1486
+ }[];
1487
+ }
1488
+ declare const useAskQuestionMutation: _reduxjs_toolkit_dist_query_react_buildHooks.UseMutation<_reduxjs_toolkit_dist_query.MutationDefinition<AiSearchRequestParams, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, never, AiSearchResponse, "gen3Services">>;
1489
+ declare const useGetAISearchStatusQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<void, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, never, AiSearchResponse, "gen3Services">>;
1490
+ declare const useGetAISearchVersionQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<void, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, never, AiSearchResponse, "gen3Services">>;
1491
+
1492
+ declare const useGetWorkspaceOptionsQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<void, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, never, any, "gen3Services">>;
1493
+ declare const useGetWorkspacePayModelsQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<void, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, never, any, "gen3Services">>;
1494
+ declare const useGetWorkspaceStatusQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_dist_query.QueryDefinition<void, _reduxjs_toolkit_dist_query.BaseQueryFn<string | _reduxjs_toolkit_dist_query.FetchArgs, unknown, _reduxjs_toolkit_dist_query.FetchBaseQueryError, {}, _reduxjs_toolkit_dist_query.FetchBaseQueryMeta>, never, any, "gen3Services">>;
1495
+
1496
+ declare const resourcePathFromProjectID: (projectID: string) => string;
1497
+ declare const isRootUrl: (urlFragment: string) => boolean;
1498
+ declare const isProgramUrl: (urlFragment: string) => boolean;
1499
+ declare const userHasSheepdogProgramAdmin: (userAuthMapping?: Record<string, any>) => boolean;
1500
+ declare const userHasSheepdogProjectAdmin: (userAuthMapping?: Record<string, any>) => boolean;
1501
+ declare const projectCodeFromResourcePath: (resourcePath: string) => string;
1502
+ declare const listifyMethodsFromMapping: (actions: {
1503
+ service: string;
1504
+ method: string;
1505
+ }[]) => string[];
1506
+ declare const userHasDataUpload: (userAuthMapping?: Record<string, any>) => boolean;
1507
+ declare const userHasMethodForServiceOnResource: (method: string, service: string, resourcePath: string, userAuthMapping?: Record<string, any>) => boolean;
1508
+ declare const userHasMethodForServiceOnProject: (method: string, service: string, projectID: string, userAuthMapping?: Record<string, any>) => boolean;
1509
+ declare const userHasMethodOnAnyProject: (method: string, userAuthMapping?: Record<string, any>) => boolean;
1510
+ declare const userHasCreateOrUpdateOnAnyProject: (userAuthMapping?: Record<string, any>) => boolean;
1511
+
1512
+ interface Project {
1513
+ availability_type: string;
1514
+ code: string;
1515
+ project_id: string;
1516
+ }
1517
+ interface SubmissionGraphqlParams {
1518
+ query: string;
1519
+ variables: Record<string, JSONValue>;
1520
+ mapping?: {
1521
+ [key: string]: string;
1522
+ };
1523
+ }
1524
+ interface SubmissionGraphqlResponse {
1525
+ data: JSONObject;
1526
+ }
1527
+ interface ProjectDetailsParams {
1528
+ ids: Array<string>;
1529
+ }
1530
+ interface ProjectDetailsResponse {
1531
+ data: JSONObject[];
1532
+ }
1533
+ interface ProjectsListRequestParams {
1534
+ size: number;
1535
+ projectQuery: JSONObject;
1536
+ projectDetailsQuery: JSONObject;
1537
+ mapping?: {
1538
+ [key: string]: string;
1539
+ };
1540
+ }
1541
+ interface ProjectResponse {
1542
+ projects: Array<Project>;
1543
+ }
1544
+ interface SubmissionDocument {
1545
+ doc_size: number;
1546
+ doc?: string;
1547
+ id: string;
1548
+ }
1549
+ interface SubmissionInfo {
1550
+ id: string;
1551
+ submitter: string;
1552
+ project_id: string;
1553
+ created_datetime: string;
1554
+ documents: Array<SubmissionDocument>;
1555
+ state: string;
1556
+ }
1557
+
1558
+ /**
1559
+ * Project details from the project query
1560
+ */
1561
+ interface ProjectInfoFromProjectDetails {
1562
+ name: string;
1563
+ id: string;
1564
+ code: string;
1565
+ }
1566
+ /**
1567
+ * Project details results a list of project details
1568
+ * and the project information
1569
+ */
1570
+ interface ProjectDetailsResults {
1571
+ [key: string]: string | number | ProjectInfoFromProjectDetails;
1572
+ project: ProjectInfoFromProjectDetails;
1573
+ }
1574
+ interface ProjectDetailsQueryResponse {
1575
+ details: ProjectDetailsResults[];
1576
+ hits: number;
1577
+ }
1578
+ interface SubmissionQueryResponse {
1579
+ transactionList: SubmissionInfo[];
1580
+ }
1581
+ /**
1582
+ * Defines submissionApi service using a base URL and expected endpoints. Derived from gen3Api core API.
1583
+ * @param endpoints - Defines endpoints used in submission page
1584
+ * @param getProjects - Queries the list of projects
1585
+ * @param getProjectsDetails - Queries the list of projects and their details
1586
+ * @param getSubmissionGraphQL - Queries the submission graphql with a query and variables
1587
+ * @returns: A submission API for fetching project details
1588
+ */
1589
+ declare const submissionApi: _reduxjs_toolkit_query.Api<_reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, {
1590
+ getProjects: _reduxjs_toolkit_query.QueryDefinition<JSONObject, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, never, ProjectResponse, "gen3Services">;
1591
+ getSubmissions: _reduxjs_toolkit_query.QueryDefinition<void, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, never, SubmissionQueryResponse, "gen3Services">;
1592
+ getProjectsDetails: _reduxjs_toolkit_query.QueryDefinition<ProjectsListRequestParams, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, never, ProjectDetailsQueryResponse, "gen3Services">;
1593
+ getSubmissionGraphQL: _reduxjs_toolkit_query.QueryDefinition<SubmissionGraphqlParams, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, never, SubmissionGraphqlResponse, "gen3Services">;
1594
+ getDictionary: _reduxjs_toolkit_query.QueryDefinition<void, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, never, SubmissionGraphqlResponse, "gen3Services">;
1595
+ }, "gen3Services", never, keyof _reduxjs_toolkit_query.ApiModules<any, any, any, any>>;
1596
+ declare const useGetProjectsQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_query.QueryDefinition<JSONObject, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, never, ProjectResponse, "gen3Services">>;
1597
+ declare const useGetSubmissionGraphQLQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_query.QueryDefinition<SubmissionGraphqlParams, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, never, SubmissionGraphqlResponse, "gen3Services">>;
1598
+ declare const useGetProjectsDetailsQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_query.QueryDefinition<ProjectsListRequestParams, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, never, ProjectDetailsQueryResponse, "gen3Services">>;
1599
+ declare const useLazyGetProjectsQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseLazyQuery<_reduxjs_toolkit_query.QueryDefinition<JSONObject, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, never, ProjectResponse, "gen3Services">>;
1600
+ declare const useLazyGetSubmissionGraphQLQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseLazyQuery<_reduxjs_toolkit_query.QueryDefinition<SubmissionGraphqlParams, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, never, SubmissionGraphqlResponse, "gen3Services">>;
1601
+ declare const useGetSubmissionsQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_query.QueryDefinition<void, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, never, SubmissionQueryResponse, "gen3Services">>;
1602
+ declare const useGetDictionaryQuery: _reduxjs_toolkit_dist_query_react_buildHooks.UseQuery<_reduxjs_toolkit_query.QueryDefinition<void, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, never, SubmissionGraphqlResponse, "gen3Services">>;
1603
+
1604
+ export { APIKey, Accessibility, AggregationResponse, AggregationsData, AiSearchResponse, AllowableRange, AuthzMapping, BaseGuppyDataRequest, CSRFToken, Comparison, CoreContext, CoreDataSelector, CoreDataSelectorResponse, CoreDataValueSelector, CoreDispatch, CoreProvider, CoreState, CrosswalkEntry, CrosswalkInfo, DataStatus, DownloadFromGuppyParams, EnumFilterValue, Equals, ExcludeIfAny, Excludes, Exists, ExternalProvider, FacetBucket, FacetDefinition, FacetType, FetchDataActionCreator, FetchError, FetchRequest, FilterSet, FilterValue, GEN3_API, GEN3_AUTHZ_API, GEN3_COMMONS_NAME, GEN3_CROSSWALK_API, GEN3_DOMAIN, GEN3_DOWNLOADS_ENDPOINT, GEN3_FENCE_API, GEN3_GUPPY_API, GEN3_MDS_API, GEN3_REDIRECT_URL, GEN3_SUBMISSION_API, GEN3_WORKSPACE_STATUS_API, GQLFilter, Gen3FenceCredentials, Gen3FenceResponse, Gen3LoginProvider, Gen3Response, Gen3User, GraphQLQuery, GreaterThan, GreaterThanOrEquals, GuppyActionFunction, GuppyActionFunctionParams, GuppyActionParams, GuppyAggregationData, GuppyDownloadActionFunctionParams, GuppyDownloadDataParams, HistogramBucket, HistogramData, HistogramDataArray, HistogramDataCollection, Includes, IndexedFilterSet, IndexedMetadataFilters, Intersection, JSONArray, JSONObject, JSONValue, JWTSessionStatus, LessThan, LessThanOrEquals, LoginStatus, MetadataPaginationParams, MetadataRequestParams, MetadataResponse, Missing, Modals, NameUrl, NamedURL, NestedFilter, NotEquals, Operation, OperationHandler, OperationWithField, Project, ProjectDetailsParams, ProjectDetailsQueryResponse, ProjectDetailsResponse, ProjectResponse, ProjectsListRequestParams, RangeFilterValue, RawDataAndTotalCountsParams, ServiceAndMethod, SetFilterValue, SortOption, SubmissionDocument, SubmissionGraphqlParams, SubmissionGraphqlResponse, SubmissionInfo, TablePageOffsetProps, Union, UnknownJson, UseCoreDataHook, UseCoreDataResponse, UserProfile, clearCohortFilters, cohortReducer, convertFilterSetToGqlFilter, coreStore, createGen3App, createUseCoreDataHook, downloadFromGuppyToBlob, downloadJSONDataFromGuppy, drsHostnamesReducer, extractEnumFilterValue, extractFieldNameFromFullFieldName, extractFilterValue, extractIndexAndFieldNameFromFullFieldName, extractIndexFromFullFieldName, fetchFence, fetchJson, fetchUserState, fieldNameToTitle, gen3Api, getGen3AppId, graphQLAPI, graphQLWithTags, guppyAPISliceMiddleware, guppyApi, guppyApiReducer, guppyApiResponse, guppyApiSliceReducerPath, guppyApiSliceRequest, guppyFetchError, handleOperation, hideModal, isAuthenticated, isErrorWithMessage, isFetchBaseQueryError, isFetchParseError, isFilterEmpty, isGuppyAggregationData, isHistogramData, isHistogramDataAArray, isHistogramDataAnEnum, isHistogramDataArray, isHistogramDataArrayARange, isHistogramDataArrayAnEnum, isHistogramDataCollection, isHistogramRangeData, isJSONObject, isJSONValue, isJSONValueArray, isOperationWithField, isPending, isProgramUrl, isRootUrl, listifyMethodsFromMapping, logoutFence, prependIndexToFieldName, projectCodeFromResourcePath, rawDataQueryStrForEachField, removeCohortFilter, resetUserState, resourcePathFromProjectID, selectAggDataForIndex, selectAuthzMappingData, selectCSRFToken, selectCSRFTokenData, selectCohortFilters, selectCurrentCohort, selectCurrentCohortId, selectCurrentCohortName, selectCurrentMessage, selectCurrentModal, selectGen3AppById, selectGen3AppMetadataById, selectHeadersWithCSRFToken, selectIndexFilters, selectIndexedFilterByName, selectUser, selectUserAuthStatus, selectUserData, selectUserDetails, selectUserLoginStatus, setDRSHostnames, showModal, submissionApi, trimFirstFieldNameToTitle, updateCohortFilter, useAddNewCredentialMutation, useAskQuestionMutation, useAuthorizeFromCredentialsMutation, useCoreDispatch, useCoreSelector, useCoreStore, useDownloadFromGuppyMutation, useFetchUserDetailsQuery, useGeneralGQLQuery, useGetAISearchStatusQuery, useGetAISearchVersionQuery, useGetAccessibleDataQuery, useGetAggMDSQuery, useGetAggsQuery, useGetAllFieldsForTypeQuery, useGetArrayTypes, useGetAuthzMappingsQuery, useGetCSRFQuery, useGetCountsQuery, useGetCredentialsQuery, useGetCrosswalkDataQuery, useGetDataQuery, useGetDictionaryQuery, useGetExternalLoginsQuery, useGetFieldCountSummaryQuery, useGetFieldsForIndexQuery, useGetIndexAggMDSQuery, useGetIndexFields, useGetJWKKeysQuery, useGetLoginProvidersQuery, useGetMDSQuery, useGetProjectsDetailsQuery, useGetProjectsQuery, useGetRawDataAndTotalCountsQuery, useGetStatus, useGetSubAggsQuery, useGetSubmissionGraphQLQuery, useGetSubmissionsQuery, useGetTagsQuery, useGetWorkspaceOptionsQuery, useGetWorkspacePayModelsQuery, useGetWorkspaceStatusQuery, useGraphQLQuery, useIsExternalConnectedQuery, useIsUserLoggedIn, useLazyFetchUserDetailsQuery, useLazyGeneralGQLQuery, useLazyGetCrosswalkDataQuery, useLazyGetExternalLoginsQuery, useLazyGetProjectsQuery, useLazyGetSubmissionGraphQLQuery, useLazyIsExternalConnectedQuery, usePrevious, useRemoveCredentialMutation, useUser, useUserAuth, userHasCreateOrUpdateOnAnyProject, userHasDataUpload, userHasMethodForServiceOnProject, userHasMethodForServiceOnResource, userHasMethodOnAnyProject, userHasSheepdogProgramAdmin, userHasSheepdogProjectAdmin };