@gen3/core 0.10.80 → 0.10.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +679 -445
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/constants.d.ts.map +1 -1
- package/dist/dts/dataAccess.d.ts.map +1 -1
- package/dist/dts/features/cohort/cohortSlice.d.ts.map +1 -1
- package/dist/dts/features/cohort/filterCombineModeSlice.d.ts +12 -0
- package/dist/dts/features/cohort/filterCombineModeSlice.d.ts.map +1 -0
- package/dist/dts/features/cohort/filterExpandSlice.d.ts +15 -0
- package/dist/dts/features/cohort/filterExpandSlice.d.ts.map +1 -0
- package/dist/dts/features/cohort/index.d.ts +6 -2
- package/dist/dts/features/cohort/index.d.ts.map +1 -1
- package/dist/dts/features/cohort/reducers.d.ts +20 -0
- package/dist/dts/features/cohort/reducers.d.ts.map +1 -0
- package/dist/dts/features/cohort/sharedFiltersSlice.d.ts +17 -0
- package/dist/dts/features/cohort/sharedFiltersSlice.d.ts.map +1 -0
- package/dist/dts/features/cohort/types.d.ts +1 -0
- package/dist/dts/features/cohort/types.d.ts.map +1 -1
- package/dist/dts/features/dataLibrary/dataLibraryIndexDB.d.ts.map +1 -1
- package/dist/dts/features/dataLibrary/dataLibrarySelectionSlice.d.ts.map +1 -1
- package/dist/dts/features/dataLibrary/types.d.ts.map +1 -1
- package/dist/dts/features/dataLibrary/useDataLibrary.d.ts.map +1 -1
- package/dist/dts/features/dataLibrary/utils.d.ts.map +1 -1
- package/dist/dts/features/drsResolver/drsHostnameSlice.d.ts.map +1 -1
- package/dist/dts/features/drsResolver/resolvers/cachedDRSResolver.d.ts.map +1 -1
- package/dist/dts/features/drsResolver/resolvers/dataGUIDSDotOrg.d.ts.map +1 -1
- package/dist/dts/features/drsResolver/utils.d.ts.map +1 -1
- package/dist/dts/features/fence/credentialsApi.d.ts.map +1 -1
- package/dist/dts/features/fence/fenceApi.d.ts.map +1 -1
- package/dist/dts/features/fence/index.d.ts +2 -2
- package/dist/dts/features/fence/index.d.ts.map +1 -1
- package/dist/dts/features/fence/utils.d.ts +1 -0
- package/dist/dts/features/fence/utils.d.ts.map +1 -1
- package/dist/dts/features/filters/filters.d.ts +2 -0
- package/dist/dts/features/filters/filters.d.ts.map +1 -1
- package/dist/dts/features/filters/index.d.ts +2 -2
- package/dist/dts/features/filters/index.d.ts.map +1 -1
- package/dist/dts/features/filters/types.d.ts +4 -0
- package/dist/dts/features/filters/types.d.ts.map +1 -1
- package/dist/dts/features/filters/utils.d.ts.map +1 -1
- package/dist/dts/features/gen3/index.d.ts.map +1 -1
- package/dist/dts/features/gen3Apps/Gen3App.d.ts.map +1 -1
- package/dist/dts/features/gen3Apps/Gen3AppRTKQ.d.ts.map +1 -1
- package/dist/dts/features/gen3Apps/gen3AppRegistry.d.ts.map +1 -1
- package/dist/dts/features/gen3Apps/gen3AppsSlice.d.ts.map +1 -1
- package/dist/dts/features/guppy/guppySlice.d.ts +373 -0
- package/dist/dts/features/guppy/guppySlice.d.ts.map +1 -1
- package/dist/dts/features/guppy/index.d.ts +2 -2
- package/dist/dts/features/guppy/index.d.ts.map +1 -1
- package/dist/dts/features/guppy/tests/grouping.unit.test.d.ts +2 -0
- package/dist/dts/features/guppy/tests/grouping.unit.test.d.ts.map +1 -0
- package/dist/dts/features/guppy/types.d.ts +6 -0
- package/dist/dts/features/guppy/types.d.ts.map +1 -1
- package/dist/dts/features/guppy/utils.d.ts +2 -1
- package/dist/dts/features/guppy/utils.d.ts.map +1 -1
- package/dist/dts/features/modals/modalsSlice.d.ts.map +1 -1
- package/dist/dts/features/submission/authMappingUtils.d.ts.map +1 -1
- package/dist/dts/features/user/hooks.d.ts.map +1 -1
- package/dist/dts/features/user/userSlice.d.ts.map +1 -1
- package/dist/dts/features/user/userSliceRTK.d.ts +30 -3
- package/dist/dts/features/user/userSliceRTK.d.ts.map +1 -1
- package/dist/dts/features/user/utils.d.ts.map +1 -1
- package/dist/dts/features/workspace/utils.d.ts.map +1 -1
- package/dist/dts/features/workspace/workspaceSlice.d.ts.map +1 -1
- package/dist/dts/hooks.d.ts +20 -2
- package/dist/dts/hooks.d.ts.map +1 -1
- package/dist/dts/reducers.d.ts +29 -2
- package/dist/dts/reducers.d.ts.map +1 -1
- package/dist/dts/store.d.ts +40 -4
- package/dist/dts/store.d.ts.map +1 -1
- package/dist/dts/types/index.d.ts.map +1 -1
- package/dist/dts/utils/extractvalues.d.ts.map +1 -1
- package/dist/dts/utils/fetch.d.ts +21 -2
- package/dist/dts/utils/fetch.d.ts.map +1 -1
- package/dist/dts/utils/index.d.ts +2 -2
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/dts/utils/time.d.ts.map +1 -1
- package/dist/dts/utils/ts-utils.d.ts.map +1 -1
- package/dist/dts/utils/url.d.ts.map +1 -1
- package/dist/esm/index.js +662 -445
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +5200 -4656
- package/package.json +2 -3
- package/LICENSE +0 -201
- package/dist/dts/features/cohort/cohortBuilderConfigSlice.d.ts +0 -1
- package/dist/dts/features/cohort/cohortBuilderConfigSlice.d.ts.map +0 -1
package/dist/dts/hooks.d.ts
CHANGED
|
@@ -12,7 +12,16 @@ export declare const useCoreSelector: import("react-redux").UseSelector<{
|
|
|
12
12
|
gen3Apps: import("./features/gen3Apps/gen3AppsSlice").Gen3AppsState;
|
|
13
13
|
drsHostnames: Record<string, string>;
|
|
14
14
|
modals: import("./features/modals/modalsSlice").ModalState;
|
|
15
|
-
cohorts:
|
|
15
|
+
cohorts: {
|
|
16
|
+
filtersExpanded: {
|
|
17
|
+
[x: string]: Record<string, boolean>;
|
|
18
|
+
};
|
|
19
|
+
filtersCombineMode: {
|
|
20
|
+
[x: string]: Record<string, import(".").CombineMode>;
|
|
21
|
+
};
|
|
22
|
+
sharedFilters: import("./features/cohort/sharedFiltersSlice").SharedFiltersState;
|
|
23
|
+
cohort: import("./features/cohort/cohortSlice").CohortState;
|
|
24
|
+
};
|
|
16
25
|
activeWorkspace: import("./features/workspace/workspaceSlice").WorkspaceState;
|
|
17
26
|
dataLibrarySelection: {};
|
|
18
27
|
userAuthApi: import("@reduxjs/toolkit/query").CombinedState<{
|
|
@@ -35,7 +44,16 @@ export declare const useCoreDispatch: import("react-redux").UseDispatch<import("
|
|
|
35
44
|
gen3Apps: import("./features/gen3Apps/gen3AppsSlice").Gen3AppsState;
|
|
36
45
|
drsHostnames: Record<string, string>;
|
|
37
46
|
modals: import("./features/modals/modalsSlice").ModalState;
|
|
38
|
-
cohorts:
|
|
47
|
+
cohorts: {
|
|
48
|
+
filtersExpanded: {
|
|
49
|
+
[x: string]: Record<string, boolean>;
|
|
50
|
+
};
|
|
51
|
+
filtersCombineMode: {
|
|
52
|
+
[x: string]: Record<string, import(".").CombineMode>;
|
|
53
|
+
};
|
|
54
|
+
sharedFilters: import("./features/cohort/sharedFiltersSlice").SharedFiltersState;
|
|
55
|
+
cohort: import("./features/cohort/cohortSlice").CohortState;
|
|
56
|
+
};
|
|
39
57
|
activeWorkspace: import("./features/workspace/workspaceSlice").WorkspaceState;
|
|
40
58
|
dataLibrarySelection: {};
|
|
41
59
|
userAuthApi: import("@reduxjs/toolkit/query").CombinedState<{
|
package/dist/dts/hooks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/hooks.ts"],"names":[],"mappings":"AAQA;;;;;;GAMG;AAEH,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/hooks.ts"],"names":[],"mappings":"AAQA;;;;;;GAMG;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAqC,CAAC;AAClE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uGAAwC,CAAC"}
|
package/dist/dts/reducers.d.ts
CHANGED
|
@@ -5,7 +5,16 @@ export declare const rootReducer: import("redux").Reducer<{
|
|
|
5
5
|
gen3Apps: import("./features/gen3Apps/gen3AppsSlice").Gen3AppsState;
|
|
6
6
|
drsHostnames: Record<string, string>;
|
|
7
7
|
modals: import("./features/modals/modalsSlice").ModalState;
|
|
8
|
-
cohorts:
|
|
8
|
+
cohorts: {
|
|
9
|
+
filtersExpanded: {
|
|
10
|
+
[x: string]: Record<string, boolean>;
|
|
11
|
+
};
|
|
12
|
+
filtersCombineMode: {
|
|
13
|
+
[x: string]: Record<string, import(".").CombineMode>;
|
|
14
|
+
};
|
|
15
|
+
sharedFilters: import("./features/cohort/sharedFiltersSlice").SharedFiltersState;
|
|
16
|
+
cohort: import("./features/cohort/cohortSlice").CohortState;
|
|
17
|
+
};
|
|
9
18
|
activeWorkspace: import("./features/workspace/workspaceSlice").WorkspaceState;
|
|
10
19
|
dataLibrarySelection: {};
|
|
11
20
|
userAuthApi: import("@reduxjs/toolkit/query").CombinedState<{
|
|
@@ -27,7 +36,25 @@ export declare const rootReducer: import("redux").Reducer<{
|
|
|
27
36
|
gen3Apps: import("./features/gen3Apps/gen3AppsSlice").Gen3AppsState | undefined;
|
|
28
37
|
drsHostnames: Record<string, string> | undefined;
|
|
29
38
|
modals: import("./features/modals/modalsSlice").ModalState | undefined;
|
|
30
|
-
cohorts:
|
|
39
|
+
cohorts: {
|
|
40
|
+
filtersExpanded: {
|
|
41
|
+
[x: string]: Record<string, boolean>;
|
|
42
|
+
};
|
|
43
|
+
filtersCombineMode: {
|
|
44
|
+
[x: string]: Record<string, import(".").CombineMode>;
|
|
45
|
+
};
|
|
46
|
+
sharedFilters: import("./features/cohort/sharedFiltersSlice").SharedFiltersState;
|
|
47
|
+
cohort: import("./features/cohort/cohortSlice").CohortState;
|
|
48
|
+
} | Partial<{
|
|
49
|
+
filtersExpanded: {
|
|
50
|
+
[x: string]: Record<string, boolean>;
|
|
51
|
+
} | undefined;
|
|
52
|
+
filtersCombineMode: {
|
|
53
|
+
[x: string]: Record<string, import(".").CombineMode>;
|
|
54
|
+
} | undefined;
|
|
55
|
+
sharedFilters: import("./features/cohort/sharedFiltersSlice").SharedFiltersState | undefined;
|
|
56
|
+
cohort: import("./features/cohort/cohortSlice").CohortState | undefined;
|
|
57
|
+
}> | undefined;
|
|
31
58
|
activeWorkspace: import("./features/workspace/workspaceSlice").WorkspaceState | undefined;
|
|
32
59
|
dataLibrarySelection: {} | undefined;
|
|
33
60
|
userAuthApi: import("@reduxjs/toolkit/query").CombinedState<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reducers.d.ts","sourceRoot":"","sources":["../../src/reducers.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"reducers.d.ts","sourceRoot":"","sources":["../../src/reducers.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAWtB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
package/dist/dts/store.d.ts
CHANGED
|
@@ -18,7 +18,16 @@ export declare const setupCoreStore: (preloadedState?: Partial<CoreState>) => im
|
|
|
18
18
|
gen3Apps: import("./features/gen3Apps/gen3AppsSlice").Gen3AppsState;
|
|
19
19
|
drsHostnames: Record<string, string>;
|
|
20
20
|
modals: import("./features/modals/modalsSlice").ModalState;
|
|
21
|
-
cohorts:
|
|
21
|
+
cohorts: {
|
|
22
|
+
filtersExpanded: {
|
|
23
|
+
[x: string]: Record<string, boolean>;
|
|
24
|
+
};
|
|
25
|
+
filtersCombineMode: {
|
|
26
|
+
[x: string]: Record<string, import(".").CombineMode>;
|
|
27
|
+
};
|
|
28
|
+
sharedFilters: import("./features/cohort/sharedFiltersSlice").SharedFiltersState;
|
|
29
|
+
cohort: import("./features/cohort/cohortSlice").CohortState;
|
|
30
|
+
};
|
|
22
31
|
activeWorkspace: import("./features/workspace/workspaceSlice").WorkspaceState;
|
|
23
32
|
dataLibrarySelection: {};
|
|
24
33
|
userAuthApi: import("@reduxjs/toolkit/query").CombinedState<{
|
|
@@ -43,7 +52,16 @@ export declare const setupCoreStore: (preloadedState?: Partial<CoreState>) => im
|
|
|
43
52
|
gen3Apps: import("./features/gen3Apps/gen3AppsSlice").Gen3AppsState;
|
|
44
53
|
drsHostnames: Record<string, string>;
|
|
45
54
|
modals: import("./features/modals/modalsSlice").ModalState;
|
|
46
|
-
cohorts:
|
|
55
|
+
cohorts: {
|
|
56
|
+
filtersExpanded: {
|
|
57
|
+
[x: string]: Record<string, boolean>;
|
|
58
|
+
};
|
|
59
|
+
filtersCombineMode: {
|
|
60
|
+
[x: string]: Record<string, import(".").CombineMode>;
|
|
61
|
+
};
|
|
62
|
+
sharedFilters: import("./features/cohort/sharedFiltersSlice").SharedFiltersState;
|
|
63
|
+
cohort: import("./features/cohort/cohortSlice").CohortState;
|
|
64
|
+
};
|
|
47
65
|
activeWorkspace: import("./features/workspace/workspaceSlice").WorkspaceState;
|
|
48
66
|
dataLibrarySelection: {};
|
|
49
67
|
userAuthApi: import("@reduxjs/toolkit/query").CombinedState<{
|
|
@@ -69,7 +87,16 @@ export declare const coreStore: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
69
87
|
gen3Apps: import("./features/gen3Apps/gen3AppsSlice").Gen3AppsState;
|
|
70
88
|
drsHostnames: Record<string, string>;
|
|
71
89
|
modals: import("./features/modals/modalsSlice").ModalState;
|
|
72
|
-
cohorts:
|
|
90
|
+
cohorts: {
|
|
91
|
+
filtersExpanded: {
|
|
92
|
+
[x: string]: Record<string, boolean>;
|
|
93
|
+
};
|
|
94
|
+
filtersCombineMode: {
|
|
95
|
+
[x: string]: Record<string, import(".").CombineMode>;
|
|
96
|
+
};
|
|
97
|
+
sharedFilters: import("./features/cohort/sharedFiltersSlice").SharedFiltersState;
|
|
98
|
+
cohort: import("./features/cohort/cohortSlice").CohortState;
|
|
99
|
+
};
|
|
73
100
|
activeWorkspace: import("./features/workspace/workspaceSlice").WorkspaceState;
|
|
74
101
|
dataLibrarySelection: {};
|
|
75
102
|
userAuthApi: import("@reduxjs/toolkit/query").CombinedState<{
|
|
@@ -94,7 +121,16 @@ export declare const coreStore: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
94
121
|
gen3Apps: import("./features/gen3Apps/gen3AppsSlice").Gen3AppsState;
|
|
95
122
|
drsHostnames: Record<string, string>;
|
|
96
123
|
modals: import("./features/modals/modalsSlice").ModalState;
|
|
97
|
-
cohorts:
|
|
124
|
+
cohorts: {
|
|
125
|
+
filtersExpanded: {
|
|
126
|
+
[x: string]: Record<string, boolean>;
|
|
127
|
+
};
|
|
128
|
+
filtersCombineMode: {
|
|
129
|
+
[x: string]: Record<string, import(".").CombineMode>;
|
|
130
|
+
};
|
|
131
|
+
sharedFilters: import("./features/cohort/sharedFiltersSlice").SharedFiltersState;
|
|
132
|
+
cohort: import("./features/cohort/cohortSlice").CohortState;
|
|
133
|
+
};
|
|
98
134
|
activeWorkspace: import("./features/workspace/workspaceSlice").WorkspaceState;
|
|
99
135
|
dataLibrarySelection: {};
|
|
100
136
|
userAuthApi: import("@reduxjs/toolkit/query").CombinedState<{
|
package/dist/dts/store.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/store.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAe,MAAM,YAAY,CAAC;AAcpD,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEjE;;GAEG;AACH,OAAO,QAAQ,eAAe,CAAC;IAC7B,SAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,CAAC,GAAG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;;;;;;;;;;;;;;;;;;;;;kBAAZ,YAAY;;oCAiCS,CAAC;AAI1C,MAAM,MAAM,YAAY,GAAG,OAAO,SAAS,CAAC,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,EAAE,GAAG,UAAU,CAAC;AAE7E,MAAM,MAAM,UAAU,GAAG;IACvB,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxB,CAAC;AACF,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;AAGzC,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,EAAE,GAAG,UAAU,CAAC;AAE7E,MAAM,MAAM,UAAU,GAAG;IACvB,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxB,CAAC;AACF,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;AAGzC,eAAO,MAAM,oBAAoB,GAAI,KAAK,GAAG,KAAG,GAAG,IAAI,CAAC,MAAM,EAAE,MAAM,CAMrE,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,MAAM,GAAG,KAAG,IAAI,IAAI,UAEhD,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,MAAM,GAAG,KAAG,IAAI,IAAI,SAQ/C,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,MAAM,SAAS,KAAG,IAAI,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AAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,SAAS;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;CACf;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,SAAS,CAOpE;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,YAAY,CAQvE;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractvalues.d.ts","sourceRoot":"","sources":["../../../src/utils/extractvalues.ts"],"names":[],"mappings":"AAAA,KAAK,eAAe,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAEjD,MAAM,WAAW,UAAU;IACzB,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxB;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,EAAE,GAAG,UAAU,CAAC;AAI7E,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"extractvalues.d.ts","sourceRoot":"","sources":["../../../src/utils/extractvalues.ts"],"names":[],"mappings":"AAAA,KAAK,eAAe,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAEjD,MAAM,WAAW,UAAU;IACzB,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxB;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,EAAE,GAAG,UAAU,CAAC;AAI7E,eAAO,MAAM,uBAAuB,GAClC,kBAAkB,eAAe,EACjC,KAAK,UAAU,KACd,UAmBF,CAAC"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
export declare const HTTPErrorMessages: Record<number, string>;
|
|
2
|
+
/**
|
|
3
|
+
* Represents an error that occurs during an HTTP request.
|
|
4
|
+
* Extends the built-in `Error` class to provide additional information
|
|
5
|
+
* about the HTTP status code and optional response data.
|
|
6
|
+
*/
|
|
2
7
|
export declare class HTTPError extends Error {
|
|
3
8
|
status: number;
|
|
4
9
|
responseData?: any | undefined;
|
|
5
10
|
constructor(status: number, message: string, responseData?: any | undefined);
|
|
6
11
|
}
|
|
7
|
-
interface
|
|
12
|
+
interface FetchFencePresignedURLParameters {
|
|
8
13
|
guid: string;
|
|
9
14
|
method?: 'GET' | 'POST';
|
|
10
15
|
onStart?: () => void;
|
|
@@ -13,6 +18,20 @@ interface DownloadFromFenceParameters {
|
|
|
13
18
|
onAbort?: () => void;
|
|
14
19
|
signal?: AbortSignal;
|
|
15
20
|
}
|
|
16
|
-
export declare const fetchFencePresignedURL: ({ guid, method, onAbort, signal, }:
|
|
21
|
+
export declare const fetchFencePresignedURL: ({ guid, method, onAbort, signal, }: FetchFencePresignedURLParameters) => Promise<any>;
|
|
22
|
+
/**
|
|
23
|
+
* Fetches JSON data from a specified URL using the Fetch API.
|
|
24
|
+
*
|
|
25
|
+
* @param {string} url - The URL to fetch the JSON data from.
|
|
26
|
+
* @param {boolean} [requiresCSRF=false] - Indicates whether a CSRF token is required for the request.
|
|
27
|
+
* If true, the CSRF token will be added to the request headers.
|
|
28
|
+
* @param {string} [method=DEFAULT_METHOD] - The HTTP method to use for the request (e.g., 'GET', 'POST').
|
|
29
|
+
* @param {unknown} [body=undefined] - The request body to send, applicable when using methods like 'POST'.
|
|
30
|
+
*
|
|
31
|
+
* @returns {Promise<any>} A promise that resolves to the parsed JSON data from the response.
|
|
32
|
+
*
|
|
33
|
+
* @throws {HTTPError} Throws an error if the HTTP response status indicates a failure.
|
|
34
|
+
*/
|
|
35
|
+
export declare const fetchJSONDataFromURL: (url: string, requiresCSRF?: boolean, method?: string, body?: unknown) => Promise<any>;
|
|
17
36
|
export {};
|
|
18
37
|
//# sourceMappingURL=fetch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../../src/utils/fetch.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../../src/utils/fetch.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA4CpD,CAAC;AAEF;;;;GAIG;AACH,qBAAa,SAAU,SAAQ,KAAK;IAEzB,MAAM,EAAE,MAAM;IAEd,YAAY,CAAC,EAAE,GAAG;gBAFlB,MAAM,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACR,YAAY,CAAC,EAAE,GAAG,YAAA;CAK5B;AAED,UAAU,gCAAgC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC9B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,KAAK,IAAI,CAAC;IAC7C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,eAAO,MAAM,sBAAsB,GAAU,oCAK1C,gCAAgC,iBAgDlC,CAAC;AA6BF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,oBAAoB,GAC/B,KAAK,MAAM,EACX,eAAc,OAAe,EAC7B,SAAQ,MAAuB,EAC/B,OAAM,OAAmB,KACxB,OAAO,CAAC,GAAG,CA8Bb,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isObject, isString, isNotDefined, isArray } from './ts-utils';
|
|
2
2
|
import { prepareUrl } from './url';
|
|
3
|
-
import { HTTPErrorMessages, HTTPError, fetchFencePresignedURL } from './fetch';
|
|
3
|
+
import { type HTTPErrorMessages, HTTPError, fetchFencePresignedURL, fetchJSONDataFromURL } from './fetch';
|
|
4
4
|
import { getCurrentTimestamp, isTimeGreaterThan } from './time';
|
|
5
|
-
export { isObject, isString, isNotDefined, isArray, prepareUrl, fetchFencePresignedURL, HTTPError, HTTPErrorMessages, getCurrentTimestamp, isTimeGreaterThan, };
|
|
5
|
+
export { isObject, isString, isNotDefined, isArray, prepareUrl, fetchFencePresignedURL, fetchJSONDataFromURL, HTTPError, type HTTPErrorMessages, getCurrentTimestamp, isTimeGreaterThan, };
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EACL,KAAK,iBAAiB,EACtB,SAAS,EACT,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAEhE,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,UAAU,EACV,sBAAsB,EACtB,oBAAoB,EACpB,SAAS,EACT,KAAK,iBAAiB,EACtB,mBAAmB,EACnB,iBAAiB,GAClB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../../src/utils/time.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,mBAAmB,QAAO,MAEtC,CAAC;AAGF,eAAO,MAAM,qBAAqB,QAAO,MAExC,CAAC;AAGF,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../../src/utils/time.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,mBAAmB,QAAO,MAEtC,CAAC;AAGF,eAAO,MAAM,qBAAqB,QAAO,MAExC,CAAC;AAGF,eAAO,MAAM,mBAAmB,GAC9B,WAAW,MAAM,EACjB,UAAS,MAAmB,KAC3B,MAEF,CAAC;AAGF,eAAO,MAAM,iBAAiB,GAC5B,WAAW,MAAM,EACjB,SAAS,MAAM,KACd,OAIF,CAAC;AAGF,eAAO,MAAM,mBAAmB,GAAI,cAAc,MAAM,KAAG,MAY1D,CAAC;AAGF,eAAO,MAAM,oBAAoB,GAAU,MAAM,MAAM,OAAO,CAAC,GAAG,CAAC,oBAKlE,CAAC;AAGF,eAAO,MAAM,0BAA0B,QAAO,MAE7C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts-utils.d.ts","sourceRoot":"","sources":["../../../src/utils/ts-utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"ts-utils.d.ts","sourceRoot":"","sources":["../../../src/utils/ts-utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,GAAI,GAAG,OAAO,KAAG,CAAC,IAAI,SAE9C,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,GAAG,OAAO,KAAG,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAEhE,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,GAAG,OAAO,KAAG,CAAC,IAAI,aAAa,CAAC,OAAO,CAE9D,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,GAAG,OAAO,KAAG,CAAC,IAAI,MAE1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../src/utils/url.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../src/utils/url.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GAAI,QAAQ,MAAM,QAAkC,CAAC"}
|