@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,51 @@
1
+ import { FetchBaseQueryError } from '@reduxjs/toolkit/query';
2
+ export type JSONValue = string | number | boolean | JSONValue[] | JSONObject;
3
+ export type JSONObject = {
4
+ [k: string]: JSONValue;
5
+ };
6
+ export type JSONArray = Array<JSONValue>;
7
+ export declare const isHistogramRangeData: (key: any) => key is [number, number];
8
+ export declare const isJSONObject: (data: any) => data is JSONObject;
9
+ export declare const isJSONValue: (data: any) => data is JSONValue;
10
+ export declare const isJSONValueArray: (data: JSONValue) => data is JSONArray;
11
+ export interface HistogramData {
12
+ key: string | [number, number];
13
+ count: number;
14
+ }
15
+ export type HistogramDataArray = Array<HistogramData>;
16
+ export declare const isHistogramData: (data: any) => data is HistogramData;
17
+ export declare const isHistogramDataArray: (input: any) => input is HistogramData[];
18
+ export interface HistogramDataCollection {
19
+ histogram: HistogramDataArray;
20
+ }
21
+ export declare const isHistogramDataCollection: (obj: any) => obj is HistogramDataCollection;
22
+ export interface GuppyAggregationData {
23
+ [key: string]: HistogramDataCollection;
24
+ }
25
+ export declare const isGuppyAggregationData: (obj: any) => obj is GuppyAggregationData;
26
+ export declare const isHistogramDataAnEnum: (data: unknown) => data is HistogramData;
27
+ export declare const isHistogramDataAArray: (data: any) => data is HistogramDataArray;
28
+ export declare const isHistogramDataArrayAnEnum: (data: any) => boolean;
29
+ export declare const isHistogramDataArrayARange: (data: any) => boolean;
30
+ /**
31
+ * Type predicate to narrow an unknown error to `FetchBaseQueryError`
32
+ */
33
+ export declare function isFetchBaseQueryError(error: unknown): error is FetchBaseQueryError;
34
+ /**
35
+ * Type predicate to narrow an unknown error to an object with a string 'message' property
36
+ */
37
+ export declare function isErrorWithMessage(error: unknown): error is {
38
+ message: string;
39
+ };
40
+ interface ParsingError {
41
+ status: 'PARSING_ERROR';
42
+ originalStatus: number;
43
+ data: string;
44
+ error: string;
45
+ }
46
+ /**
47
+ * Type predicate to narrow an unknown error to an object with a string 'message' property
48
+ */
49
+ export declare function isFetchParseError(error: unknown): error is ParsingError;
50
+ export type AggregationsData = Record<string, HistogramDataArray>;
51
+ export {};
@@ -0,0 +1,9 @@
1
+ type JsonPathMapping = {
2
+ [key: string]: string;
3
+ };
4
+ export interface JSONObject {
5
+ [k: string]: JSONValue;
6
+ }
7
+ export type JSONValue = string | number | boolean | JSONValue[] | JSONObject;
8
+ export declare const extractValuesFromObject: (jsonPathMappings: JsonPathMapping, obj: JSONObject) => JSONObject;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ import { isObject, isString, isNotDefined, isArray } from './ts-utils';
2
+ export { isObject, isString, isNotDefined, isArray };
@@ -0,0 +1,4 @@
1
+ export declare const isNotDefined: (x: unknown) => x is undefined;
2
+ export declare const isObject: (x: unknown) => x is Record<string, unknown>;
3
+ export declare const isArray: (x: unknown) => x is ReadonlyArray<unknown>;
4
+ export declare const isString: (x: unknown) => x is string;