@gen3/core 0.10.80 → 0.10.81

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 (85) hide show
  1. package/dist/cjs/index.js +677 -444
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/dts/constants.d.ts.map +1 -1
  4. package/dist/dts/dataAccess.d.ts.map +1 -1
  5. package/dist/dts/features/cohort/cohortSlice.d.ts.map +1 -1
  6. package/dist/dts/features/cohort/filterCombineModeSlice.d.ts +12 -0
  7. package/dist/dts/features/cohort/filterCombineModeSlice.d.ts.map +1 -0
  8. package/dist/dts/features/cohort/filterExpandSlice.d.ts +15 -0
  9. package/dist/dts/features/cohort/filterExpandSlice.d.ts.map +1 -0
  10. package/dist/dts/features/cohort/index.d.ts +6 -2
  11. package/dist/dts/features/cohort/index.d.ts.map +1 -1
  12. package/dist/dts/features/cohort/reducers.d.ts +20 -0
  13. package/dist/dts/features/cohort/reducers.d.ts.map +1 -0
  14. package/dist/dts/features/cohort/sharedFiltersSlice.d.ts +17 -0
  15. package/dist/dts/features/cohort/sharedFiltersSlice.d.ts.map +1 -0
  16. package/dist/dts/features/cohort/types.d.ts +1 -0
  17. package/dist/dts/features/cohort/types.d.ts.map +1 -1
  18. package/dist/dts/features/dataLibrary/dataLibraryIndexDB.d.ts.map +1 -1
  19. package/dist/dts/features/dataLibrary/dataLibrarySelectionSlice.d.ts.map +1 -1
  20. package/dist/dts/features/dataLibrary/types.d.ts.map +1 -1
  21. package/dist/dts/features/dataLibrary/useDataLibrary.d.ts.map +1 -1
  22. package/dist/dts/features/dataLibrary/utils.d.ts.map +1 -1
  23. package/dist/dts/features/drsResolver/drsHostnameSlice.d.ts.map +1 -1
  24. package/dist/dts/features/drsResolver/resolvers/cachedDRSResolver.d.ts.map +1 -1
  25. package/dist/dts/features/drsResolver/resolvers/dataGUIDSDotOrg.d.ts.map +1 -1
  26. package/dist/dts/features/drsResolver/utils.d.ts.map +1 -1
  27. package/dist/dts/features/fence/credentialsApi.d.ts.map +1 -1
  28. package/dist/dts/features/fence/fenceApi.d.ts.map +1 -1
  29. package/dist/dts/features/fence/index.d.ts +2 -2
  30. package/dist/dts/features/fence/index.d.ts.map +1 -1
  31. package/dist/dts/features/fence/utils.d.ts +1 -0
  32. package/dist/dts/features/fence/utils.d.ts.map +1 -1
  33. package/dist/dts/features/filters/filters.d.ts +2 -0
  34. package/dist/dts/features/filters/filters.d.ts.map +1 -1
  35. package/dist/dts/features/filters/index.d.ts +2 -2
  36. package/dist/dts/features/filters/index.d.ts.map +1 -1
  37. package/dist/dts/features/filters/types.d.ts +4 -0
  38. package/dist/dts/features/filters/types.d.ts.map +1 -1
  39. package/dist/dts/features/filters/utils.d.ts.map +1 -1
  40. package/dist/dts/features/gen3/index.d.ts.map +1 -1
  41. package/dist/dts/features/gen3Apps/Gen3App.d.ts.map +1 -1
  42. package/dist/dts/features/gen3Apps/Gen3AppRTKQ.d.ts.map +1 -1
  43. package/dist/dts/features/gen3Apps/gen3AppRegistry.d.ts.map +1 -1
  44. package/dist/dts/features/gen3Apps/gen3AppsSlice.d.ts.map +1 -1
  45. package/dist/dts/features/guppy/guppySlice.d.ts +373 -0
  46. package/dist/dts/features/guppy/guppySlice.d.ts.map +1 -1
  47. package/dist/dts/features/guppy/index.d.ts +2 -2
  48. package/dist/dts/features/guppy/index.d.ts.map +1 -1
  49. package/dist/dts/features/guppy/tests/grouping.unit.test.d.ts +2 -0
  50. package/dist/dts/features/guppy/tests/grouping.unit.test.d.ts.map +1 -0
  51. package/dist/dts/features/guppy/types.d.ts +6 -0
  52. package/dist/dts/features/guppy/types.d.ts.map +1 -1
  53. package/dist/dts/features/guppy/utils.d.ts +2 -1
  54. package/dist/dts/features/guppy/utils.d.ts.map +1 -1
  55. package/dist/dts/features/modals/modalsSlice.d.ts.map +1 -1
  56. package/dist/dts/features/submission/authMappingUtils.d.ts.map +1 -1
  57. package/dist/dts/features/user/hooks.d.ts.map +1 -1
  58. package/dist/dts/features/user/userSlice.d.ts.map +1 -1
  59. package/dist/dts/features/user/userSliceRTK.d.ts +30 -3
  60. package/dist/dts/features/user/userSliceRTK.d.ts.map +1 -1
  61. package/dist/dts/features/user/utils.d.ts.map +1 -1
  62. package/dist/dts/features/workspace/utils.d.ts.map +1 -1
  63. package/dist/dts/features/workspace/workspaceSlice.d.ts.map +1 -1
  64. package/dist/dts/hooks.d.ts +20 -2
  65. package/dist/dts/hooks.d.ts.map +1 -1
  66. package/dist/dts/reducers.d.ts +29 -2
  67. package/dist/dts/reducers.d.ts.map +1 -1
  68. package/dist/dts/store.d.ts +40 -4
  69. package/dist/dts/store.d.ts.map +1 -1
  70. package/dist/dts/types/index.d.ts.map +1 -1
  71. package/dist/dts/utils/extractvalues.d.ts.map +1 -1
  72. package/dist/dts/utils/fetch.d.ts +21 -2
  73. package/dist/dts/utils/fetch.d.ts.map +1 -1
  74. package/dist/dts/utils/index.d.ts +2 -2
  75. package/dist/dts/utils/index.d.ts.map +1 -1
  76. package/dist/dts/utils/time.d.ts.map +1 -1
  77. package/dist/dts/utils/ts-utils.d.ts.map +1 -1
  78. package/dist/dts/utils/url.d.ts.map +1 -1
  79. package/dist/esm/index.js +660 -444
  80. package/dist/esm/index.js.map +1 -1
  81. package/dist/index.d.ts +5200 -4656
  82. package/package.json +2 -3
  83. package/LICENSE +0 -201
  84. package/dist/dts/features/cohort/cohortBuilderConfigSlice.d.ts +0 -1
  85. package/dist/dts/features/cohort/cohortBuilderConfigSlice.d.ts.map +0 -1
@@ -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: import("./features/cohort/cohortSlice").CohortState;
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: import("./features/cohort/cohortSlice").CohortState;
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<{
@@ -1 +1 @@
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"}
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"}
@@ -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: import("./features/cohort/cohortSlice").CohortState;
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: import("./features/cohort/cohortSlice").CohortState | undefined;
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAWtB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC"}
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"}
@@ -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: import("./features/cohort/cohortSlice").CohortState;
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: import("./features/cohort/cohortSlice").CohortState;
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: import("./features/cohort/cohortSlice").CohortState;
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: import("./features/cohort/cohortSlice").CohortState;
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<{
@@ -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,CAAC,EAChE,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,EACxB,WAAW,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAC5B,OAAO,CACR,CAAC,GAAG;QAAE,QAAQ,EAAE,YAAY,CAAA;KAAE,EAC9B,CAAC,EACD,CAAC,GAAG;QAAE,QAAQ,CAAC,EAAE,YAAY,CAAA;KAAE,CAChC,CAAC;CACH;AAaD,eAAO,MAAM,cAAc,oBAAqB,OAAO,CAAC,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;cAjB9C,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;kBAAZ,YAAY;;oCA+B5B,CAAC;AAEL,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;cAjCF,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;kBAAZ,YAAY;;oCAiCS,CAAC;AAI1C,MAAM,MAAM,YAAY,GAAG,OAAO,SAAS,CAAC,QAAQ,CAAC"}
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,CAAC,EAChE,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,EACxB,WAAW,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAC5B,OAAO,CACR,CAAC,GAAG;QAAE,QAAQ,EAAE,YAAY,CAAA;KAAE,EAC9B,CAAC,EACD,CAAC,GAAG;QAAE,QAAQ,CAAC,EAAE,YAAY,CAAA;KAAE,CAChC,CAAC;CACH;AAaD,eAAO,MAAM,cAAc,GAAI,iBAAiB,OAAO,CAAC,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAjB9C,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAZ,YAAY;;oCA+B5B,CAAC;AAEL,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAjCF,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,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EF;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,mBAAmB,CAE9B;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,OAAO,GACb,KAAK,IAAI;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAO9B;AAED,UAAU,YAAY;IACpB,MAAM,EAAE,eAAe,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,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,qBAChB,eAAe,OAC5B,UAAU,KACd,UAmBF,CAAC"}
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 DownloadFromFenceParameters {
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, }: DownloadFromFenceParameters) => Promise<any>;
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":"AAKA,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA4CpD,CAAC;AAEF,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,2BAA2B;IACnC,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,uCAKhC,2BAA2B,iBAgD7B,CAAC"}
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,EAAE,iBAAiB,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAEhE,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,UAAU,EACV,sBAAsB,EACtB,SAAS,EACT,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,GAClB,CAAC"}
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,cACnB,MAAM,YACR,MAAM,KACd,MAEF,CAAC;AAGF,eAAO,MAAM,iBAAiB,cACjB,MAAM,WACR,MAAM,KACd,OAIF,CAAC;AAGF,eAAO,MAAM,mBAAmB,iBAAkB,MAAM,KAAG,MAY1D,CAAC;AAGF,eAAO,MAAM,oBAAoB,SAAgB,MAAM,OAAO,CAAC,GAAG,CAAC,oBAKlE,CAAC;AAGF,eAAO,MAAM,0BAA0B,QAAO,MAE7C,CAAC"}
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,MAAO,OAAO,KAAG,CAAC,IAAI,SAE9C,CAAC;AAEF,eAAO,MAAM,QAAQ,MAAO,OAAO,KAAG,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAEhE,CAAC;AAEF,eAAO,MAAM,OAAO,MAAO,OAAO,KAAG,CAAC,IAAI,aAAa,CAAC,OAAO,CAE9D,CAAC;AAEF,eAAO,MAAM,QAAQ,MAAO,OAAO,KAAG,CAAC,IAAI,MAE1C,CAAC"}
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,WAAY,MAAM,QAAkC,CAAC"}
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"}