@gen3/core 0.12.44 → 0.12.46
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 +500 -158
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/server.js +26 -14
- package/dist/cjs/server.js.map +1 -1
- package/dist/dts/features/cart/cartSelectors.d.ts +12 -0
- package/dist/dts/features/cart/cartSelectors.d.ts.map +1 -1
- package/dist/dts/features/cohort/cohortManagerSelector.d.ts +12 -0
- package/dist/dts/features/cohort/cohortManagerSelector.d.ts.map +1 -1
- package/dist/dts/features/cohort/cohortManagerSlice.d.ts +3 -0
- package/dist/dts/features/cohort/cohortManagerSlice.d.ts.map +1 -1
- package/dist/dts/features/fence/fetchFence.d.ts +1 -1
- package/dist/dts/features/fence/fetchFence.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/jwtApi.d.ts +184 -1
- package/dist/dts/features/fence/jwtApi.d.ts.map +1 -1
- package/dist/dts/features/fence/utils.d.ts.map +1 -1
- package/dist/dts/features/gen3/gen3Api.d.ts.map +1 -1
- package/dist/dts/features/notifications/index.d.ts +2 -0
- package/dist/dts/features/notifications/index.d.ts.map +1 -0
- package/dist/dts/features/notifications/notificationService.d.ts +42 -0
- package/dist/dts/features/notifications/notificationService.d.ts.map +1 -0
- package/dist/dts/features/submission/submissionApi.d.ts +186 -1
- package/dist/dts/features/submission/submissionApi.d.ts.map +1 -1
- package/dist/dts/features/user/userSliceRTK.d.ts +9 -0
- package/dist/dts/features/user/userSliceRTK.d.ts.map +1 -1
- package/dist/dts/features/workspace/index.d.ts +7 -3
- package/dist/dts/features/workspace/index.d.ts.map +1 -1
- package/dist/dts/features/workspace/jegKernelSelector.d.ts +162 -0
- package/dist/dts/features/workspace/jegKernelSelector.d.ts.map +1 -0
- package/dist/dts/features/workspace/jegKernelSlice.d.ts +482 -0
- package/dist/dts/features/workspace/jegKernelSlice.d.ts.map +1 -0
- package/dist/dts/features/workspace/jegWorkspaceSlice.d.ts +16 -0
- package/dist/dts/features/workspace/jegWorkspaceSlice.d.ts.map +1 -0
- package/dist/dts/features/workspace/tieredWorkspaceSlice.d.ts +14 -0
- package/dist/dts/features/workspace/tieredWorkspaceSlice.d.ts.map +1 -0
- package/dist/dts/features/workspace/types.d.ts +11 -1
- package/dist/dts/features/workspace/types.d.ts.map +1 -1
- package/dist/dts/features/workspace/workspaceSlice.d.ts +1 -1
- package/dist/dts/features/workspace/workspaceSlice.d.ts.map +1 -1
- package/dist/dts/hooks.d.ts +6 -0
- package/dist/dts/hooks.d.ts.map +1 -1
- package/dist/dts/index.d.ts +1 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/reducers.d.ts +37 -31
- package/dist/dts/reducers.d.ts.map +1 -1
- package/dist/dts/store.d.ts +12 -0
- package/dist/dts/store.d.ts.map +1 -1
- package/dist/dts/utils/index.d.ts +3 -2
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/dts/utils/normalizeRtkError.d.ts +14 -0
- package/dist/dts/utils/normalizeRtkError.d.ts.map +1 -0
- package/dist/dts/utils/time.d.ts +14 -0
- package/dist/dts/utils/time.d.ts.map +1 -1
- package/dist/esm/index.js +473 -159
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/server.js +26 -14
- package/dist/esm/server.js.map +1 -1
- package/dist/index.d.ts +11159 -10453
- package/dist/server.d.ts +1 -1
- package/package.json +3 -3
package/dist/cjs/server.js
CHANGED
|
@@ -60,12 +60,22 @@ const isFetchError = (obj)=>{
|
|
|
60
60
|
* Template for fence error response dict
|
|
61
61
|
* @returns: An error dict response from a RESTFUL API request
|
|
62
62
|
*/ const buildFetchError = async (res, request)=>{
|
|
63
|
+
let text = '';
|
|
64
|
+
if (!res.bodyUsed) {
|
|
65
|
+
try {
|
|
66
|
+
text = await res.text();
|
|
67
|
+
} catch (err) {
|
|
68
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
69
|
+
console.warn('[buildFetchError] Failed to read response body:', err);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
63
73
|
return {
|
|
64
|
-
url: res.url,
|
|
74
|
+
url: res.url || '(unknown)',
|
|
65
75
|
status: res.status,
|
|
66
76
|
statusText: res.statusText,
|
|
67
|
-
text
|
|
68
|
-
request
|
|
77
|
+
text,
|
|
78
|
+
request
|
|
69
79
|
};
|
|
70
80
|
};
|
|
71
81
|
|
|
@@ -83,13 +93,11 @@ const isFetchError = (obj)=>{
|
|
|
83
93
|
* @returns {Promise<Gen3FenceResponse<T>>} A promise that resolves to the parsed data and response status
|
|
84
94
|
* or rejects with an error if the request fails.
|
|
85
95
|
* @throws {Error} Throws an error if the fetch request fails or the response is not successful.
|
|
86
|
-
*/ const fetchFence = async ({ endpoint, headers, body =
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
url = `${GEN3_FENCE_SERVICE}/${endpoint}`;
|
|
90
|
-
}
|
|
96
|
+
*/ const fetchFence = async ({ endpoint, headers, body = undefined, method = 'GET', isJSON = true }, useService = false)=>{
|
|
97
|
+
const base = useService ? GEN3_FENCE_SERVICE : GEN3_FENCE_API;
|
|
98
|
+
const url = `${base.replace(/\/$/, '')}/${endpoint.replace(/^\//, '')}`;
|
|
91
99
|
const res = await fetch(url, {
|
|
92
|
-
method
|
|
100
|
+
method,
|
|
93
101
|
credentials: 'include',
|
|
94
102
|
headers: {
|
|
95
103
|
// Ensure Content-Type is set for JSON POSTs, but allow overrides via 'headers'
|
|
@@ -98,12 +106,16 @@ const isFetchError = (obj)=>{
|
|
|
98
106
|
} : {},
|
|
99
107
|
...headers
|
|
100
108
|
},
|
|
101
|
-
|
|
109
|
+
...method === 'POST' && body ? {
|
|
110
|
+
body: JSON.stringify(body)
|
|
111
|
+
} : {}
|
|
102
112
|
});
|
|
103
|
-
if (res.ok)
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
113
|
+
if (res.ok) {
|
|
114
|
+
return {
|
|
115
|
+
data: isJSON ? await res.json() : await res.text(),
|
|
116
|
+
status: res.status
|
|
117
|
+
};
|
|
118
|
+
}
|
|
107
119
|
throw await buildFetchError(res, {
|
|
108
120
|
endpoint,
|
|
109
121
|
method,
|
package/dist/cjs/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sources":["../../src/constants.ts","../../src/features/authz/fetchAuthz.ts","../../src/features/fence/utils.ts","../../src/features/fence/fetchFence.ts"],"sourcesContent":["export const GEN3_COMMONS_NAME =\n process.env.NEXT_PUBLIC_GEN3_COMMONS_NAME || 'gen3';\nexport const GEN3_API = process.env.NEXT_PUBLIC_GEN3_API || '';\nexport const GEN3_DOMAIN = process.env.NEXT_PUBLIC_GEN3_DOMAIN || '';\nexport const GUID_PREFIX_PATTERN = /^dg.[a-zA-Z0-9]+\\//;\n\n/**\n * Service Specific Constants\n */\nexport const GEN3_GUPPY_API =\n process.env.NEXT_PUBLIC_GEN3_GUPPY_API || `${GEN3_API}/guppy`;\nexport const GEN3_MDS_API =\n process.env.NEXT_PUBLIC_GEN3_MDS_API || `${GEN3_API}/mds`;\nexport const GEN3_DOWNLOADS_ENDPOINT =\n process.env.NEXT_PUBLIC_GEN3_DOWNLOADS_ENDPOINT || 'downloads';\nexport const GEN3_FENCE_API =\n process.env.NEXT_PUBLIC_GEN3_FENCE_API || `${GEN3_API}/user`;\nexport const GEN3_FENCE_SERVICE =\n process.env.GEN3_FENCE_SERVICE || 'http://fence-service';\nexport const GEN3_INDEXD_API =\n process.env.NEXT_PUBLIC_GEN3_INDEXD_API || `${GEN3_API}/index`;\nexport const GEN3_AI_SEARCH_API =\n process.env.NEXT_PUBLIC_GEN3_AI_SEARCH_API || `${GEN3_API}/ai-search`;\nexport const GEN3_AUTHZ_API =\n process.env.NEXT_PUBLIC_GEN3_AUTHZ_API || `${GEN3_API}/authz`;\nexport const GEN3_AUTHZ_SERVICE =\n process.env.GEN3_AUTHZ_SERVICE || 'http://arborist-service';\nexport const GEN3_REDIRECT_URL =\n process.env.NEXT_PUBLIC_GEN3_REDIRECT_URL || GEN3_API;\nexport const GEN3_WORKSPACE_API =\n process.env.NEXT_PUBLIC_GEN3_WORKSPACE_STATUS_API ||\n `${GEN3_API}/lw-workspace`;\nexport const GEN3_SUBMISSION_API =\n process.env.NEXT_PUBLIC_GEN3_SUBMISSION_API ||\n `${GEN3_API}/api/v0/submission`;\nexport const GEN3_WTS_API =\n process.env.NEXT_PUBLIC_GEN3_WTS_API || `${GEN3_API}/wts`;\nexport const GEN3_DATA_LIBRARY_API =\n process.env.NEXT_PUBLIC_GEN3_DATA_LIBRARY_API || `${GEN3_API}/library/lists`;\nexport const GEN3_CROSSWALK_API =\n process.env.NEXT_PUBLIC_GEN3_CROSSWALK_API || `${GEN3_API}/mds`;\nexport const GEN3_SOWER_API =\n process.env.NEXT_PUBLIC_GEN3_SOWER_API || `${GEN3_API}/job`;\nexport const GEN3_MANIFEST_API =\n process.env.NEXT_PUBLIC_GEN3_MANIFEST_API || `${GEN3_API}/manifests`;\nexport const GEN3_REQUESTOR_API =\n process.env.NEXT_PUBLIC_GEN3_REQUESTOR_API || `${GEN3_API}/requestor`;\nexport const GEN3_ANALYSIS_API =\n process.env.NEXT_PUBLIC_GEN3_ANALYSIS_API || `${GEN3_API}/analysis/v0`;\n\nexport enum Accessibility {\n ACCESSIBLE = 'accessible',\n UNACCESSIBLE = 'unaccessible',\n ALL = 'all',\n}\n\nexport const FILE_FORMATS = {\n JSON: 'json',\n TSV: 'tsv',\n CSV: 'csv',\n};\n\nexport const FILE_DELIMITERS = {\n tsv: '\\t',\n csv: ',',\n};\n\nexport const CART_LIMIT = 80000;\n","import { GEN3_AUTHZ_API, GEN3_AUTHZ_SERVICE } from '../../constants';\nimport { AuthzResourceResponse } from './types';\n\n/**\n * Low-level helper to fetch Arborist resources for the current user.\n * Adds an Authorization header when a token is provided and normalizes the response\n * to a simple string[] of resource paths.\n *\n * token { string | null } - access token to use for authorization\n * useService { boolean } - use the arborist service endpoint instead of the public arborist API\n */\nexport async function fetchArboristResources(\n token: string | null,\n useService: boolean = false,\n): Promise<string[]> {\n const headers: Record<string, string> = {};\n\n if (token) {\n headers.Authorization = `Bearer ${token}`;\n }\n\n const url = useService\n ? `${GEN3_AUTHZ_SERVICE}/resource`\n : `${GEN3_AUTHZ_API}/resources`;\n const res = await fetch(url, { headers });\n\n if (!res.ok) {\n console.error(\n '@gen3/core:fetchArboristResources /resource failed:',\n res.status,\n await res.text(),\n );\n return [];\n }\n\n const data = (await res.json()) as AuthzResourceResponse;\n return data.resources ?? [];\n}\n","import { FetchError } from './types';\n\nexport const isFetchError = <T>(obj: unknown): obj is FetchError<T> => {\n if (typeof obj !== 'object' || obj === null) {\n return false;\n }\n\n const { url, status, statusText, text } = obj as Partial<FetchError<T>>;\n\n return (\n typeof url === 'string' &&\n typeof status === 'number' &&\n typeof statusText === 'string' &&\n typeof text === 'string'\n );\n};\n\n/**\n * Template for fence error response dict\n * @returns: An error dict response from a RESTFUL API request\n */\nexport const buildFetchError = async <T>(\n res: Response,\n request?: T,\n): Promise<FetchError<T>> => {\n return {\n url: res.url,\n status: res.status,\n statusText: res.statusText,\n text: await res.text(),\n request: request,\n };\n};\n","import { type FetchRequest, type Gen3FenceResponse } from './types';\nimport { GEN3_FENCE_API, GEN3_FENCE_SERVICE } from '../../constants';\nimport { buildFetchError } from './utils';\n\n/**\n * Performs an asynchronous HTTP request to the Gen3 Fence API and processes the response.\n *\n * @template T The expected type of the response data.\n * @param {FetchRequest} options The options for the fetch request.\n * @param {string} options.endpoint The API endpoint to which the request will be sent.\n * @param {Record<string, string>} options.headers An object representing the HTTP headers to include in the request.\n * @param {Record<string, any>} [options.body={}] The request body to send with the fetch, used if the HTTP method is POST.\n * @param {string} [options.method='GET'] The HTTP method for the request (e.g., 'GET', 'POST').\n * @param {boolean} [options.isJSON=true] Determines if the response should be parsed as JSON or returned as plain text.\n * @param useService { boolean } Uses fence_service instead of public fence API\n * @returns {Promise<Gen3FenceResponse<T>>} A promise that resolves to the parsed data and response status\n * or rejects with an error if the request fails.\n * @throws {Error} Throws an error if the fetch request fails or the response is not successful.\n */\nexport const fetchFence = async <T>(\n { endpoint, headers, body = {}, method = 'GET', isJSON = true }: FetchRequest,\n useService: boolean = false,\n): Promise<Gen3FenceResponse<T>> => {\n let url = `${GEN3_FENCE_API}${endpoint}`;\n if (useService) {\n url = `${GEN3_FENCE_SERVICE}/${endpoint}`;\n }\n\n const res = await fetch(url, {\n method: method,\n credentials: 'include',\n headers: {\n // Ensure Content-Type is set for JSON POSTs, but allow overrides via 'headers'\n ...(method === 'POST' ? { 'Content-Type': 'application/json' } : {}),\n ...headers,\n },\n body: 'POST' === method ? JSON.stringify(body) : null,\n // REMOVED: next: { revalidate: 360 } - Auth requests should not be cached by default\n });\n\n if (res.ok)\n return {\n data: isJSON ? await res.json() : await res.text(),\n status: res.status,\n };\n throw await buildFetchError(res, {\n endpoint,\n method,\n headers,\n body,\n });\n};\n"],"names":["GEN3_COMMONS_NAME","process","env","NEXT_PUBLIC_GEN3_COMMONS_NAME","GEN3_API","NEXT_PUBLIC_GEN3_API","GEN3_DOMAIN","NEXT_PUBLIC_GEN3_DOMAIN","GEN3_GUPPY_API","NEXT_PUBLIC_GEN3_GUPPY_API","GEN3_MDS_API","NEXT_PUBLIC_GEN3_MDS_API","GEN3_DOWNLOADS_ENDPOINT","NEXT_PUBLIC_GEN3_DOWNLOADS_ENDPOINT","GEN3_FENCE_API","NEXT_PUBLIC_GEN3_FENCE_API","GEN3_FENCE_SERVICE","NEXT_PUBLIC_GEN3_INDEXD_API","NEXT_PUBLIC_GEN3_AI_SEARCH_API","GEN3_AUTHZ_API","NEXT_PUBLIC_GEN3_AUTHZ_API","GEN3_AUTHZ_SERVICE","GEN3_REDIRECT_URL","NEXT_PUBLIC_GEN3_REDIRECT_URL","GEN3_WORKSPACE_API","NEXT_PUBLIC_GEN3_WORKSPACE_STATUS_API","GEN3_SUBMISSION_API","NEXT_PUBLIC_GEN3_SUBMISSION_API","NEXT_PUBLIC_GEN3_WTS_API","NEXT_PUBLIC_GEN3_DATA_LIBRARY_API","GEN3_CROSSWALK_API","NEXT_PUBLIC_GEN3_CROSSWALK_API","GEN3_SOWER_API","NEXT_PUBLIC_GEN3_SOWER_API","GEN3_MANIFEST_API","NEXT_PUBLIC_GEN3_MANIFEST_API","NEXT_PUBLIC_GEN3_REQUESTOR_API","NEXT_PUBLIC_GEN3_ANALYSIS_API","fetchArboristResources","token","useService","headers","Authorization","url","res","fetch","ok","console","error","status","text","data","json","resources","isFetchError","obj","statusText","buildFetchError","request","fetchFence","endpoint","body","method","isJSON","credentials","JSON","stringify"],"mappings":";;MAAaA,iBAAAA,GACXC,OAAAA,CAAQC,GAAG,CAACC,6BAA6B,IAAI;MAClCC,QAAAA,GAAWH,OAAAA,CAAQC,GAAG,CAACG,oBAAoB,IAAI;MAC/CC,WAAAA,GAAcL,OAAAA,CAAQC,GAAG,CAACK,uBAAuB,IAAI;AAGlE;;AAEC,IACM,MAAMC,cAAAA,GACXP,OAAAA,CAAQC,GAAG,CAACO,0BAA0B,IAAI,CAAA,EAAGL,QAAAA,CAAS,MAAM;AACvD,MAAMM,YAAAA,GACXT,OAAAA,CAAQC,GAAG,CAACS,wBAAwB,IAAI,CAAA,EAAGP,QAAAA,CAAS,IAAI;MAC7CQ,uBAAAA,GACXX,OAAAA,CAAQC,GAAG,CAACW,mCAAmC,IAAI;AAC9C,MAAMC,cAAAA,GACXb,OAAAA,CAAQC,GAAG,CAACa,0BAA0B,IAAI,CAAA,EAAGX,QAAAA,CAAS,KAAK;MAChDY,kBAAAA,GACXf,OAAAA,CAAQC,GAAG,CAACc,kBAAkB,IAAI;AAElCf,OAAAA,CAAQC,GAAG,CAACe,2BAA2B,IAAI,CAAA,EAAGb,QAAAA,CAAS,MAAM;AAE7DH,OAAAA,CAAQC,GAAG,CAACgB,8BAA8B,IAAI,C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F,KAAA,CAAA;AACF;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"server.js","sources":["../../src/constants.ts","../../src/features/authz/fetchAuthz.ts","../../src/features/fence/utils.ts","../../src/features/fence/fetchFence.ts"],"sourcesContent":["export const GEN3_COMMONS_NAME =\n process.env.NEXT_PUBLIC_GEN3_COMMONS_NAME || 'gen3';\nexport const GEN3_API = process.env.NEXT_PUBLIC_GEN3_API || '';\nexport const GEN3_DOMAIN = process.env.NEXT_PUBLIC_GEN3_DOMAIN || '';\nexport const GUID_PREFIX_PATTERN = /^dg.[a-zA-Z0-9]+\\//;\n\n/**\n * Service Specific Constants\n */\nexport const GEN3_GUPPY_API =\n process.env.NEXT_PUBLIC_GEN3_GUPPY_API || `${GEN3_API}/guppy`;\nexport const GEN3_MDS_API =\n process.env.NEXT_PUBLIC_GEN3_MDS_API || `${GEN3_API}/mds`;\nexport const GEN3_DOWNLOADS_ENDPOINT =\n process.env.NEXT_PUBLIC_GEN3_DOWNLOADS_ENDPOINT || 'downloads';\nexport const GEN3_FENCE_API =\n process.env.NEXT_PUBLIC_GEN3_FENCE_API || `${GEN3_API}/user`;\nexport const GEN3_FENCE_SERVICE =\n process.env.GEN3_FENCE_SERVICE || 'http://fence-service';\nexport const GEN3_INDEXD_API =\n process.env.NEXT_PUBLIC_GEN3_INDEXD_API || `${GEN3_API}/index`;\nexport const GEN3_AI_SEARCH_API =\n process.env.NEXT_PUBLIC_GEN3_AI_SEARCH_API || `${GEN3_API}/ai-search`;\nexport const GEN3_AUTHZ_API =\n process.env.NEXT_PUBLIC_GEN3_AUTHZ_API || `${GEN3_API}/authz`;\nexport const GEN3_AUTHZ_SERVICE =\n process.env.GEN3_AUTHZ_SERVICE || 'http://arborist-service';\nexport const GEN3_REDIRECT_URL =\n process.env.NEXT_PUBLIC_GEN3_REDIRECT_URL || GEN3_API;\nexport const GEN3_WORKSPACE_API =\n process.env.NEXT_PUBLIC_GEN3_WORKSPACE_STATUS_API ||\n `${GEN3_API}/lw-workspace`;\nexport const GEN3_SUBMISSION_API =\n process.env.NEXT_PUBLIC_GEN3_SUBMISSION_API ||\n `${GEN3_API}/api/v0/submission`;\nexport const GEN3_WTS_API =\n process.env.NEXT_PUBLIC_GEN3_WTS_API || `${GEN3_API}/wts`;\nexport const GEN3_DATA_LIBRARY_API =\n process.env.NEXT_PUBLIC_GEN3_DATA_LIBRARY_API || `${GEN3_API}/library/lists`;\nexport const GEN3_CROSSWALK_API =\n process.env.NEXT_PUBLIC_GEN3_CROSSWALK_API || `${GEN3_API}/mds`;\nexport const GEN3_SOWER_API =\n process.env.NEXT_PUBLIC_GEN3_SOWER_API || `${GEN3_API}/job`;\nexport const GEN3_MANIFEST_API =\n process.env.NEXT_PUBLIC_GEN3_MANIFEST_API || `${GEN3_API}/manifests`;\nexport const GEN3_REQUESTOR_API =\n process.env.NEXT_PUBLIC_GEN3_REQUESTOR_API || `${GEN3_API}/requestor`;\nexport const GEN3_ANALYSIS_API =\n process.env.NEXT_PUBLIC_GEN3_ANALYSIS_API || `${GEN3_API}/analysis/v0`;\n\nexport enum Accessibility {\n ACCESSIBLE = 'accessible',\n UNACCESSIBLE = 'unaccessible',\n ALL = 'all',\n}\n\nexport const FILE_FORMATS = {\n JSON: 'json',\n TSV: 'tsv',\n CSV: 'csv',\n};\n\nexport const FILE_DELIMITERS = {\n tsv: '\\t',\n csv: ',',\n};\n\nexport const CART_LIMIT = 80000;\n","import { GEN3_AUTHZ_API, GEN3_AUTHZ_SERVICE } from '../../constants';\nimport { AuthzResourceResponse } from './types';\n\n/**\n * Low-level helper to fetch Arborist resources for the current user.\n * Adds an Authorization header when a token is provided and normalizes the response\n * to a simple string[] of resource paths.\n *\n * token { string | null } - access token to use for authorization\n * useService { boolean } - use the arborist service endpoint instead of the public arborist API\n */\nexport async function fetchArboristResources(\n token: string | null,\n useService: boolean = false,\n): Promise<string[]> {\n const headers: Record<string, string> = {};\n\n if (token) {\n headers.Authorization = `Bearer ${token}`;\n }\n\n const url = useService\n ? `${GEN3_AUTHZ_SERVICE}/resource`\n : `${GEN3_AUTHZ_API}/resources`;\n const res = await fetch(url, { headers });\n\n if (!res.ok) {\n console.error(\n '@gen3/core:fetchArboristResources /resource failed:',\n res.status,\n await res.text(),\n );\n return [];\n }\n\n const data = (await res.json()) as AuthzResourceResponse;\n return data.resources ?? [];\n}\n","import { FetchError } from './types';\n\nexport const isFetchError = <T>(obj: unknown): obj is FetchError<T> => {\n if (typeof obj !== 'object' || obj === null) {\n return false;\n }\n\n const { url, status, statusText, text } = obj as Partial<FetchError<T>>;\n\n return (\n typeof url === 'string' &&\n typeof status === 'number' &&\n typeof statusText === 'string' &&\n typeof text === 'string'\n );\n};\n\n/**\n * Template for fence error response dict\n * @returns: An error dict response from a RESTFUL API request\n */\nexport const buildFetchError = async <T>(\n res: Response,\n request?: T,\n): Promise<FetchError<T>> => {\n let text = '';\n if (!res.bodyUsed) {\n try {\n text = await res.text();\n } catch (err) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('[buildFetchError] Failed to read response body:', err);\n }\n }\n }\n return {\n url: res.url || '(unknown)',\n status: res.status,\n statusText: res.statusText,\n text,\n request,\n };\n};\n","import { type FetchRequest, type Gen3FenceResponse } from './types';\nimport { GEN3_FENCE_API, GEN3_FENCE_SERVICE } from '../../constants';\nimport { buildFetchError } from './utils';\n\n/**\n * Performs an asynchronous HTTP request to the Gen3 Fence API and processes the response.\n *\n * @template T The expected type of the response data.\n * @param {FetchRequest} options The options for the fetch request.\n * @param {string} options.endpoint The API endpoint to which the request will be sent.\n * @param {Record<string, string>} options.headers An object representing the HTTP headers to include in the request.\n * @param {Record<string, any>} [options.body={}] The request body to send with the fetch, used if the HTTP method is POST.\n * @param {string} [options.method='GET'] The HTTP method for the request (e.g., 'GET', 'POST').\n * @param {boolean} [options.isJSON=true] Determines if the response should be parsed as JSON or returned as plain text.\n * @param useService { boolean } Uses fence_service instead of public fence API\n * @returns {Promise<Gen3FenceResponse<T>>} A promise that resolves to the parsed data and response status\n * or rejects with an error if the request fails.\n * @throws {Error} Throws an error if the fetch request fails or the response is not successful.\n */\nexport const fetchFence = async <T>(\n {\n endpoint,\n headers,\n body = undefined,\n method = 'GET',\n isJSON = true,\n }: FetchRequest,\n useService = false,\n): Promise<Gen3FenceResponse<T>> => {\n const base = useService ? GEN3_FENCE_SERVICE : GEN3_FENCE_API;\n const url = `${base.replace(/\\/$/, '')}/${endpoint.replace(/^\\//, '')}`;\n\n const res = await fetch(url, {\n method,\n credentials: 'include',\n headers: {\n // Ensure Content-Type is set for JSON POSTs, but allow overrides via 'headers'\n ...(method === 'POST' ? { 'Content-Type': 'application/json' } : {}),\n ...headers,\n },\n ...(method === 'POST' && body ? { body: JSON.stringify(body) } : {}),\n });\n\n if (res.ok) {\n return {\n data: isJSON ? await res.json() : await res.text(),\n status: res.status,\n };\n }\n\n throw await buildFetchError(res, { endpoint, method, headers, body });\n};\n"],"names":["GEN3_COMMONS_NAME","process","env","NEXT_PUBLIC_GEN3_COMMONS_NAME","GEN3_API","NEXT_PUBLIC_GEN3_API","GEN3_DOMAIN","NEXT_PUBLIC_GEN3_DOMAIN","GEN3_GUPPY_API","NEXT_PUBLIC_GEN3_GUPPY_API","GEN3_MDS_API","NEXT_PUBLIC_GEN3_MDS_API","GEN3_DOWNLOADS_ENDPOINT","NEXT_PUBLIC_GEN3_DOWNLOADS_ENDPOINT","GEN3_FENCE_API","NEXT_PUBLIC_GEN3_FENCE_API","GEN3_FENCE_SERVICE","NEXT_PUBLIC_GEN3_INDEXD_API","NEXT_PUBLIC_GEN3_AI_SEARCH_API","GEN3_AUTHZ_API","NEXT_PUBLIC_GEN3_AUTHZ_API","GEN3_AUTHZ_SERVICE","GEN3_REDIRECT_URL","NEXT_PUBLIC_GEN3_REDIRECT_URL","GEN3_WORKSPACE_API","NEXT_PUBLIC_GEN3_WORKSPACE_STATUS_API","GEN3_SUBMISSION_API","NEXT_PUBLIC_GEN3_SUBMISSION_API","NEXT_PUBLIC_GEN3_WTS_API","NEXT_PUBLIC_GEN3_DATA_LIBRARY_API","GEN3_CROSSWALK_API","NEXT_PUBLIC_GEN3_CROSSWALK_API","GEN3_SOWER_API","NEXT_PUBLIC_GEN3_SOWER_API","GEN3_MANIFEST_API","NEXT_PUBLIC_GEN3_MANIFEST_API","NEXT_PUBLIC_GEN3_REQUESTOR_API","NEXT_PUBLIC_GEN3_ANALYSIS_API","fetchArboristResources","token","useService","headers","Authorization","url","res","fetch","ok","console","error","status","text","data","json","resources","isFetchError","obj","statusText","buildFetchError","request","bodyUsed","err","NODE_ENV","warn","fetchFence","endpoint","body","undefined","method","isJSON","base","replace","credentials","JSON","stringify"],"mappings":";;MAAaA,iBAAAA,GACXC,OAAAA,CAAQC,GAAG,CAACC,6BAA6B,IAAI;MAClCC,QAAAA,GAAWH,OAAAA,CAAQC,GAAG,CAACG,oBAAoB,IAAI;MAC/CC,WAAAA,GAAcL,OAAAA,CAAQC,GAAG,CAACK,uBAAuB,IAAI;AAGlE;;AAEC,IACM,MAAMC,cAAAA,GACXP,OAAAA,CAAQC,GAAG,CAACO,0BAA0B,IAAI,CAAA,EAAGL,QAAAA,CAAS,MAAM;AACvD,MAAMM,YAAAA,GACXT,OAAAA,CAAQC,GAAG,CAACS,wBAAwB,IAAI,CAAA,EAAGP,QAAAA,CAAS,IAAI;MAC7CQ,uBAAAA,GACXX,OAAAA,CAAQC,GAAG,CAACW,mCAAmC,IAAI;AAC9C,MAAMC,cAAAA,GACXb,OAAAA,CAAQC,GAAG,CAACa,0BAA0B,IAAI,CAAA,EAAGX,QAAAA,CAAS,KAAK;MAChDY,kBAAAA,GACXf,OAAAA,CAAQC,GAAG,CAACc,kBAAkB,IAAI;AAElCf,OAAAA,CAAQC,GAAG,CAACe,2BAA2B,IAAI,CAAA,EAAGb,QAAAA,CAAS,MAAM;AAE7DH,OAAAA,CAAQC,GAAG,CAACgB,8BAA8B,IAAI,CAAA,EAAGd,QAAAA,CAAS,UAAU;AAC/D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AA;IAEA,IAAIrB,GAAAA,CAAIE,EAAE,EAAE;QACV,OAAO;AACLK,YAAAA,IAAAA,EAAMiB,SAAS,MAAMxB,GAAAA,CAAIQ,IAAI,EAAA,GAAK,MAAMR,IAAIM,IAAI,EAAA;AAChDD,YAAAA,MAAAA,EAAQL,IAAIK;AACd,SAAA;AACF,IAAA;IAEA,MAAM,MAAMQ,gBAAgBb,GAAAA,EAAK;AAAEoB,QAAAA,QAAAA;AAAUG,QAAAA,MAAAA;AAAQ1B,QAAAA,OAAAA;AAASwB,QAAAA;AAAK,KAAA,CAAA;AACrE;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -16,6 +16,9 @@ export declare const selectCartItem: (state: {
|
|
|
16
16
|
cohortManager: import("@reduxjs/toolkit").EntityState<import("../cohort").Cohort, string> & import("../cohort/cohortManagerSlice").CurrentCohortState;
|
|
17
17
|
};
|
|
18
18
|
activeWorkspace: import("../workspace/workspaceSlice").WorkspaceState;
|
|
19
|
+
tieredWorkspace: import("../workspace/tieredWorkspaceSlice").TieredWorkspaceState;
|
|
20
|
+
workspaceKernels: import("@reduxjs/toolkit").EntityState<import("../workspace").KernelStatus, string> & never[];
|
|
21
|
+
jegActiveWorkspace: import("../workspace/jegWorkspaceSlice").WorkspaceState;
|
|
19
22
|
userAuthApi: import("@reduxjs/toolkit/query").CombinedState<{
|
|
20
23
|
fetchUserDetails: import("@reduxjs/toolkit/query").QueryDefinition<void, ({ endpoint }: any, { getState }: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
|
|
21
24
|
data: {};
|
|
@@ -67,6 +70,9 @@ export declare const selectCartItem: (state: {
|
|
|
67
70
|
cohortManager: import("@reduxjs/toolkit").EntityState<import("../cohort").Cohort, string> & import("../cohort/cohortManagerSlice").CurrentCohortState;
|
|
68
71
|
};
|
|
69
72
|
activeWorkspace: import("../workspace/workspaceSlice").WorkspaceState;
|
|
73
|
+
tieredWorkspace: import("../workspace/tieredWorkspaceSlice").TieredWorkspaceState;
|
|
74
|
+
workspaceKernels: import("@reduxjs/toolkit").EntityState<import("../workspace").KernelStatus, string> & never[];
|
|
75
|
+
jegActiveWorkspace: import("../workspace/jegWorkspaceSlice").WorkspaceState;
|
|
70
76
|
userAuthApi: import("@reduxjs/toolkit/query").CombinedState<{
|
|
71
77
|
fetchUserDetails: import("@reduxjs/toolkit/query").QueryDefinition<void, ({ endpoint }: any, { getState }: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
|
|
72
78
|
data: {};
|
|
@@ -115,6 +121,9 @@ export declare const selectCartItem: (state: {
|
|
|
115
121
|
cohortManager: import("@reduxjs/toolkit").EntityState<import("../cohort").Cohort, string> & import("../cohort/cohortManagerSlice").CurrentCohortState;
|
|
116
122
|
};
|
|
117
123
|
activeWorkspace: import("../workspace/workspaceSlice").WorkspaceState;
|
|
124
|
+
tieredWorkspace: import("../workspace/tieredWorkspaceSlice").TieredWorkspaceState;
|
|
125
|
+
workspaceKernels: import("@reduxjs/toolkit").EntityState<import("../workspace").KernelStatus, string> & never[];
|
|
126
|
+
jegActiveWorkspace: import("../workspace/jegWorkspaceSlice").WorkspaceState;
|
|
118
127
|
userAuthApi: import("@reduxjs/toolkit/query").CombinedState<{
|
|
119
128
|
fetchUserDetails: import("@reduxjs/toolkit/query").QueryDefinition<void, ({ endpoint }: any, { getState }: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
|
|
120
129
|
data: {};
|
|
@@ -163,6 +172,9 @@ export declare const selectCartItem: (state: {
|
|
|
163
172
|
cohortManager: import("@reduxjs/toolkit").EntityState<import("../cohort").Cohort, string> & import("../cohort/cohortManagerSlice").CurrentCohortState;
|
|
164
173
|
};
|
|
165
174
|
activeWorkspace: import("../workspace/workspaceSlice").WorkspaceState;
|
|
175
|
+
tieredWorkspace: import("../workspace/tieredWorkspaceSlice").TieredWorkspaceState;
|
|
176
|
+
workspaceKernels: import("@reduxjs/toolkit").EntityState<import("../workspace").KernelStatus, string> & never[];
|
|
177
|
+
jegActiveWorkspace: import("../workspace/jegWorkspaceSlice").WorkspaceState;
|
|
166
178
|
userAuthApi: import("@reduxjs/toolkit/query").CombinedState<{
|
|
167
179
|
fetchUserDetails: import("@reduxjs/toolkit/query").QueryDefinition<void, ({ endpoint }: any, { getState }: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
|
|
168
180
|
data: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cartSelectors.d.ts","sourceRoot":"","sources":["../../../../src/features/cart/cartSelectors.ts"],"names":[],"mappings":"AAGA,eAAO,MACO,cAAc
|
|
1
|
+
{"version":3,"file":"cartSelectors.d.ts","sourceRoot":"","sources":["../../../../src/features/cart/cartSelectors.ts"],"names":[],"mappings":"AAGA,eAAO,MACO,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GACf,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBACf,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCACR,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YACgC,CAAC"}
|
|
@@ -19,6 +19,9 @@ export declare const selectAllCohorts: (state: {
|
|
|
19
19
|
cohortManager: import("@reduxjs/toolkit").EntityState<Cohort, string> & import("./cohortManagerSlice").CurrentCohortState;
|
|
20
20
|
};
|
|
21
21
|
activeWorkspace: import("../workspace/workspaceSlice").WorkspaceState;
|
|
22
|
+
tieredWorkspace: import("../workspace/tieredWorkspaceSlice").TieredWorkspaceState;
|
|
23
|
+
workspaceKernels: import("@reduxjs/toolkit").EntityState<import("../workspace").KernelStatus, string> & never[];
|
|
24
|
+
jegActiveWorkspace: import("../workspace/jegWorkspaceSlice").WorkspaceState;
|
|
22
25
|
userAuthApi: import("@reduxjs/toolkit/query").CombinedState<{
|
|
23
26
|
fetchUserDetails: import("@reduxjs/toolkit/query").QueryDefinition<void, ({ endpoint }: any, { getState }: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
|
|
24
27
|
data: {};
|
|
@@ -67,6 +70,9 @@ export declare const selectAllCohorts: (state: {
|
|
|
67
70
|
cohortManager: import("@reduxjs/toolkit").EntityState<Cohort, string> & import("./cohortManagerSlice").CurrentCohortState;
|
|
68
71
|
};
|
|
69
72
|
activeWorkspace: import("../workspace/workspaceSlice").WorkspaceState;
|
|
73
|
+
tieredWorkspace: import("../workspace/tieredWorkspaceSlice").TieredWorkspaceState;
|
|
74
|
+
workspaceKernels: import("@reduxjs/toolkit").EntityState<import("../workspace").KernelStatus, string> & never[];
|
|
75
|
+
jegActiveWorkspace: import("../workspace/jegWorkspaceSlice").WorkspaceState;
|
|
70
76
|
userAuthApi: import("@reduxjs/toolkit/query").CombinedState<{
|
|
71
77
|
fetchUserDetails: import("@reduxjs/toolkit/query").QueryDefinition<void, ({ endpoint }: any, { getState }: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
|
|
72
78
|
data: {};
|
|
@@ -115,6 +121,9 @@ export declare const selectAllCohorts: (state: {
|
|
|
115
121
|
cohortManager: import("@reduxjs/toolkit").EntityState<Cohort, string> & import("./cohortManagerSlice").CurrentCohortState;
|
|
116
122
|
};
|
|
117
123
|
activeWorkspace: import("../workspace/workspaceSlice").WorkspaceState;
|
|
124
|
+
tieredWorkspace: import("../workspace/tieredWorkspaceSlice").TieredWorkspaceState;
|
|
125
|
+
workspaceKernels: import("@reduxjs/toolkit").EntityState<import("../workspace").KernelStatus, string> & never[];
|
|
126
|
+
jegActiveWorkspace: import("../workspace/jegWorkspaceSlice").WorkspaceState;
|
|
118
127
|
userAuthApi: import("@reduxjs/toolkit/query").CombinedState<{
|
|
119
128
|
fetchUserDetails: import("@reduxjs/toolkit/query").QueryDefinition<void, ({ endpoint }: any, { getState }: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
|
|
120
129
|
data: {};
|
|
@@ -172,6 +181,9 @@ export declare const selectAllCohorts: (state: {
|
|
|
172
181
|
cohortManager: import("@reduxjs/toolkit").EntityState<Cohort, string> & import("./cohortManagerSlice").CurrentCohortState;
|
|
173
182
|
};
|
|
174
183
|
activeWorkspace: import("../workspace/workspaceSlice").WorkspaceState;
|
|
184
|
+
tieredWorkspace: import("../workspace/tieredWorkspaceSlice").TieredWorkspaceState;
|
|
185
|
+
workspaceKernels: import("@reduxjs/toolkit").EntityState<import("../workspace").KernelStatus, string> & never[];
|
|
186
|
+
jegActiveWorkspace: import("../workspace/jegWorkspaceSlice").WorkspaceState;
|
|
175
187
|
userAuthApi: import("@reduxjs/toolkit/query").CombinedState<{
|
|
176
188
|
fetchUserDetails: import("@reduxjs/toolkit/query").QueryDefinition<void, ({ endpoint }: any, { getState }: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
|
|
177
189
|
data: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cohortManagerSelector.d.ts","sourceRoot":"","sources":["../../../../src/features/cohort/cohortManagerSelector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAEL,SAAS,EACT,gBAAgB,EAChB,SAAS,EACV,MAAM,YAAY,CAAC;AAGpB,eAAO,MACM,gBAAgB
|
|
1
|
+
{"version":3,"file":"cohortManagerSelector.d.ts","sourceRoot":"","sources":["../../../../src/features/cohort/cohortManagerSelector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAEL,SAAS,EACT,gBAAgB,EAChB,SAAS,EACV,MAAM,YAAY,CAAC;AAGpB,eAAO,MACM,gBAAgB;;;;;;;;;;;;;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ACH,eAAO,MAAM,kBAAkB,GAC7B,OAAO,SAAS,EAChB,OAAO,MAAM,KACZ,SASF,CAAC"}
|
|
@@ -71,6 +71,9 @@ export declare const cohortSelectors: import("@reduxjs/toolkit").EntitySelectors
|
|
|
71
71
|
cohortManager: EntityState<Cohort, string> & CurrentCohortState;
|
|
72
72
|
};
|
|
73
73
|
activeWorkspace: import("../workspace/workspaceSlice").WorkspaceState;
|
|
74
|
+
tieredWorkspace: import("../workspace/tieredWorkspaceSlice").TieredWorkspaceState;
|
|
75
|
+
workspaceKernels: EntityState<import("../workspace").KernelStatus, string> & never[];
|
|
76
|
+
jegActiveWorkspace: import("../workspace/jegWorkspaceSlice").WorkspaceState;
|
|
74
77
|
userAuthApi: import("@reduxjs/toolkit/query").CombinedState<{
|
|
75
78
|
fetchUserDetails: import("@reduxjs/toolkit/query").QueryDefinition<void, ({ endpoint }: any, { getState }: import("@reduxjs/toolkit/query").BaseQueryApi) => Promise<{
|
|
76
79
|
data: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cohortManagerSlice.d.ts","sourceRoot":"","sources":["../../../../src/features/cohort/cohortManagerSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,WAAW,EAEjB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACf,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,KAAK,MAAM,EAAiB,MAAM,SAAS,CAAC;AAGrD;;;;GAIG;AAEH,eAAO,MAAM,mBAAmB,WAAW,CAAC;AAC5C,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,MAAM,WAAW,kBAAkB;IACjC,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,SAAS,CAAC;CACnB;AAED,UAAU,eAAe;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,SAAS,CAAC;CACpB;AAED,UAAU,wBAAwB;IAChC,OAAO,EAAE,gBAAgB,CAAC;CAC3B;AAED,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,gBAAgB,GAAI,SAAS,MAAM,KAAG,MAElD,CAAC;AAEF,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,SAAS,GAAI,0BAGvB;IACD,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,KAAG,MAcH,CAAC;AAIF,eAAO,MAAM,cAAc,QAAO,MAAkB,CAAC;AAErD,eAAO,MAAM,cAAc,0DAMzB,CAAC;AAiBH,UAAU,kBAAkB;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,UAAU,sBAAsB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AA2RD;;;;;GAKG;AACH,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"cohortManagerSlice.d.ts","sourceRoot":"","sources":["../../../../src/features/cohort/cohortManagerSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,WAAW,EAEjB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACf,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,KAAK,MAAM,EAAiB,MAAM,SAAS,CAAC;AAGrD;;;;GAIG;AAEH,eAAO,MAAM,mBAAmB,WAAW,CAAC;AAC5C,eAAO,MAAM,c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GAClB,kBAAkB,0GAClB,YAAY;wBAlQc,OAAO;QACvB,MAAM;2BAkQhB,kBAAkB,4FAClB,gBAAgB,0GAChB,kBAAkB,4GAClB,0BAA0B;WAvDb,MAAM;cACH,MAAM;YACR,MAAM;yCAsDpB,aAAa,uFACe,CAAC;AAE/B,eAAO,MAAM,aAAa,2EAA6B,CAAC"}
|
|
@@ -14,5 +14,5 @@ import { type FetchRequest, type Gen3FenceResponse } from './types';
|
|
|
14
14
|
* or rejects with an error if the request fails.
|
|
15
15
|
* @throws {Error} Throws an error if the fetch request fails or the response is not successful.
|
|
16
16
|
*/
|
|
17
|
-
export declare const fetchFence: <T>({ endpoint, headers, body, method, isJSON }: FetchRequest, useService?: boolean) => Promise<Gen3FenceResponse<T>>;
|
|
17
|
+
export declare const fetchFence: <T>({ endpoint, headers, body, method, isJSON, }: FetchRequest, useService?: boolean) => Promise<Gen3FenceResponse<T>>;
|
|
18
18
|
//# sourceMappingURL=fetchFence.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchFence.d.ts","sourceRoot":"","sources":["../../../../src/features/fence/fetchFence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAIpE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,GAAU,CAAC,EAChC,
|
|
1
|
+
{"version":3,"file":"fetchFence.d.ts","sourceRoot":"","sources":["../../../../src/features/fence/fetchFence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAIpE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,GAAU,CAAC,EAChC,8CAMG,YAAY,EACf,oBAAkB,KACjB,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAuB9B,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type Gen3LoginProvider, logoutFence, type NameUrl, type PresignedUrlResponse, useGetDownloadQuery, useGetLoginProvidersQuery, useGetPresignedUrlQuery, useLazyGetDownloadQuery, useLazyGetPresignedUrlQuery } from './fenceApi';
|
|
2
2
|
import { type APIKey, type Gen3FenceCredentials, useAddNewCredentialMutation, useAuthorizeFromCredentialsMutation, useGetCredentialsQuery, useRemoveCredentialMutation } from './credentialsApi';
|
|
3
|
-
import { useGetJWKKeysQuery } from './jwtApi';
|
|
3
|
+
import { useGetJWKKeysQuery, useLazyGetJWKKeysQuery } from './jwtApi';
|
|
4
4
|
import { FetchError, FetchRequest, Gen3FenceResponse } from './types';
|
|
5
5
|
import { isFetchError } from './utils';
|
|
6
6
|
import { fetchFence } from './fetchFence';
|
|
7
|
-
export { type Gen3FenceResponse, type FetchError, type FetchRequest, type APIKey, type Gen3FenceCredentials, type Gen3LoginProvider, type NameUrl, type PresignedUrlResponse, fetchFence, logoutFence, isFetchError, useGetCredentialsQuery, useGetDownloadQuery, useLazyGetDownloadQuery, useAddNewCredentialMutation, useRemoveCredentialMutation, useGetLoginProvidersQuery, useGetJWKKeysQuery, useAuthorizeFromCredentialsMutation, useGetPresignedUrlQuery, useLazyGetPresignedUrlQuery, };
|
|
7
|
+
export { type Gen3FenceResponse, type FetchError, type FetchRequest, type APIKey, type Gen3FenceCredentials, type Gen3LoginProvider, type NameUrl, type PresignedUrlResponse, fetchFence, logoutFence, isFetchError, useGetCredentialsQuery, useGetDownloadQuery, useLazyGetDownloadQuery, useAddNewCredentialMutation, useRemoveCredentialMutation, useGetLoginProvidersQuery, useGetJWKKeysQuery, useLazyGetJWKKeysQuery, useAuthorizeFromCredentialsMutation, useGetPresignedUrlQuery, useLazyGetPresignedUrlQuery, };
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/fence/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iBAAiB,EACtB,WAAW,EACX,KAAK,OAAO,EACZ,KAAK,oBAAoB,EACzB,mBAAmB,EACnB,yBAAyB,EACzB,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,EAC5B,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,KAAK,MAAM,EACX,KAAK,oBAAoB,EACzB,2BAA2B,EAC3B,mCAAmC,EACnC,sBAAsB,EACtB,2BAA2B,EAC5B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/fence/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iBAAiB,EACtB,WAAW,EACX,KAAK,OAAO,EACZ,KAAK,oBAAoB,EACzB,mBAAmB,EACnB,yBAAyB,EACzB,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,EAC5B,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,KAAK,MAAM,EACX,KAAK,oBAAoB,EACzB,2BAA2B,EAC3B,mCAAmC,EACnC,sBAAsB,EACtB,2BAA2B,EAC5B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,MAAM,EACX,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,oBAAoB,EACzB,UAAU,EACV,WAAW,EACX,YAAY,EACZ,sBAAsB,EACtB,mBAAmB,EACnB,uBAAuB,EACvB,2BAA2B,EAC3B,2BAA2B,EAC3B,yBAAyB,EACzB,kBAAkB,EAClB,sBAAsB,EACtB,mCAAmC,EACnC,uBAAuB,EACvB,2BAA2B,GAC5B,CAAC"}
|
|
@@ -193,5 +193,188 @@ export declare const useGetJWKKeysQuery: <R extends Record<string, any> = import
|
|
|
193
193
|
}) => R) | undefined;
|
|
194
194
|
}) | undefined) => R & {
|
|
195
195
|
refetch: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "fenceJWT", readonly JWTKeys[], "gen3Services", unknown>>;
|
|
196
|
-
}
|
|
196
|
+
}, useLazyGetJWKKeysQuery: <R extends Record<string, any> = import("@reduxjs/toolkit/query").TSHelpersId<(Omit<{
|
|
197
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
198
|
+
originalArgs?: undefined | undefined;
|
|
199
|
+
data?: undefined | undefined;
|
|
200
|
+
error?: undefined | undefined;
|
|
201
|
+
requestId?: undefined | undefined;
|
|
202
|
+
endpointName?: string | undefined;
|
|
203
|
+
startedTimeStamp?: undefined | undefined;
|
|
204
|
+
fulfilledTimeStamp?: undefined | undefined;
|
|
205
|
+
} & {
|
|
206
|
+
currentData?: readonly JWTKeys[] | undefined;
|
|
207
|
+
isUninitialized: false;
|
|
208
|
+
isLoading: false;
|
|
209
|
+
isFetching: false;
|
|
210
|
+
isSuccess: false;
|
|
211
|
+
isError: false;
|
|
212
|
+
}, "isUninitialized"> & {
|
|
213
|
+
isUninitialized: true;
|
|
214
|
+
}) | (Omit<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "fenceJWT", readonly JWTKeys[], "gen3Services", unknown>> & {
|
|
215
|
+
currentData?: readonly JWTKeys[] | undefined;
|
|
216
|
+
isUninitialized: false;
|
|
217
|
+
isLoading: false;
|
|
218
|
+
isFetching: false;
|
|
219
|
+
isSuccess: false;
|
|
220
|
+
isError: false;
|
|
221
|
+
}, "data" | "isLoading" | "isFetching"> & {
|
|
222
|
+
isLoading: true;
|
|
223
|
+
isFetching: boolean;
|
|
224
|
+
data: undefined;
|
|
225
|
+
}) | (Omit<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "fenceJWT", readonly JWTKeys[], "gen3Services", unknown>> & {
|
|
226
|
+
currentData?: readonly JWTKeys[] | undefined;
|
|
227
|
+
isUninitialized: false;
|
|
228
|
+
isLoading: false;
|
|
229
|
+
isFetching: false;
|
|
230
|
+
isSuccess: false;
|
|
231
|
+
isError: false;
|
|
232
|
+
}, "data" | "error" | "fulfilledTimeStamp" | "isFetching" | "isSuccess"> & {
|
|
233
|
+
isSuccess: true;
|
|
234
|
+
isFetching: true;
|
|
235
|
+
error: undefined;
|
|
236
|
+
} & {
|
|
237
|
+
data: readonly JWTKeys[];
|
|
238
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "fenceJWT", readonly JWTKeys[], "gen3Services", unknown>> & {
|
|
239
|
+
currentData?: readonly JWTKeys[] | undefined;
|
|
240
|
+
isUninitialized: false;
|
|
241
|
+
isLoading: false;
|
|
242
|
+
isFetching: false;
|
|
243
|
+
isSuccess: false;
|
|
244
|
+
isError: false;
|
|
245
|
+
}, "fulfilledTimeStamp">>) | (Omit<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "fenceJWT", readonly JWTKeys[], "gen3Services", unknown>> & {
|
|
246
|
+
currentData?: readonly JWTKeys[] | undefined;
|
|
247
|
+
isUninitialized: false;
|
|
248
|
+
isLoading: false;
|
|
249
|
+
isFetching: false;
|
|
250
|
+
isSuccess: false;
|
|
251
|
+
isError: false;
|
|
252
|
+
}, "data" | "error" | "fulfilledTimeStamp" | "currentData" | "isFetching" | "isSuccess"> & {
|
|
253
|
+
isSuccess: true;
|
|
254
|
+
isFetching: false;
|
|
255
|
+
error: undefined;
|
|
256
|
+
} & {
|
|
257
|
+
data: readonly JWTKeys[];
|
|
258
|
+
currentData: readonly JWTKeys[];
|
|
259
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "fenceJWT", readonly JWTKeys[], "gen3Services", unknown>> & {
|
|
260
|
+
currentData?: readonly JWTKeys[] | undefined;
|
|
261
|
+
isUninitialized: false;
|
|
262
|
+
isLoading: false;
|
|
263
|
+
isFetching: false;
|
|
264
|
+
isSuccess: false;
|
|
265
|
+
isError: false;
|
|
266
|
+
}, "fulfilledTimeStamp">>) | (Omit<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "fenceJWT", readonly JWTKeys[], "gen3Services", unknown>> & {
|
|
267
|
+
currentData?: readonly JWTKeys[] | undefined;
|
|
268
|
+
isUninitialized: false;
|
|
269
|
+
isLoading: false;
|
|
270
|
+
isFetching: false;
|
|
271
|
+
isSuccess: false;
|
|
272
|
+
isError: false;
|
|
273
|
+
}, "error" | "isError"> & {
|
|
274
|
+
isError: true;
|
|
275
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "fenceJWT", readonly JWTKeys[], "gen3Services", unknown>> & {
|
|
276
|
+
currentData?: readonly JWTKeys[] | undefined;
|
|
277
|
+
isUninitialized: false;
|
|
278
|
+
isLoading: false;
|
|
279
|
+
isFetching: false;
|
|
280
|
+
isSuccess: false;
|
|
281
|
+
isError: false;
|
|
282
|
+
}, "error">>)> & {
|
|
283
|
+
status: import("@reduxjs/toolkit/query").QueryStatus;
|
|
284
|
+
}>(options?: (import("@reduxjs/toolkit/query").SubscriptionOptions & Omit<{
|
|
285
|
+
skip?: boolean;
|
|
286
|
+
selectFromResult?: ((state: import("@reduxjs/toolkit/query").TSHelpersId<(Omit<{
|
|
287
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
288
|
+
originalArgs?: undefined | undefined;
|
|
289
|
+
data?: undefined | undefined;
|
|
290
|
+
error?: undefined | undefined;
|
|
291
|
+
requestId?: undefined | undefined;
|
|
292
|
+
endpointName?: string | undefined;
|
|
293
|
+
startedTimeStamp?: undefined | undefined;
|
|
294
|
+
fulfilledTimeStamp?: undefined | undefined;
|
|
295
|
+
} & {
|
|
296
|
+
currentData?: readonly JWTKeys[] | undefined;
|
|
297
|
+
isUninitialized: false;
|
|
298
|
+
isLoading: false;
|
|
299
|
+
isFetching: false;
|
|
300
|
+
isSuccess: false;
|
|
301
|
+
isError: false;
|
|
302
|
+
}, "isUninitialized"> & {
|
|
303
|
+
isUninitialized: true;
|
|
304
|
+
}) | (Omit<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "fenceJWT", readonly JWTKeys[], "gen3Services", unknown>> & {
|
|
305
|
+
currentData?: readonly JWTKeys[] | undefined;
|
|
306
|
+
isUninitialized: false;
|
|
307
|
+
isLoading: false;
|
|
308
|
+
isFetching: false;
|
|
309
|
+
isSuccess: false;
|
|
310
|
+
isError: false;
|
|
311
|
+
}, "data" | "isLoading" | "isFetching"> & {
|
|
312
|
+
isLoading: true;
|
|
313
|
+
isFetching: boolean;
|
|
314
|
+
data: undefined;
|
|
315
|
+
}) | (Omit<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "fenceJWT", readonly JWTKeys[], "gen3Services", unknown>> & {
|
|
316
|
+
currentData?: readonly JWTKeys[] | undefined;
|
|
317
|
+
isUninitialized: false;
|
|
318
|
+
isLoading: false;
|
|
319
|
+
isFetching: false;
|
|
320
|
+
isSuccess: false;
|
|
321
|
+
isError: false;
|
|
322
|
+
}, "data" | "error" | "fulfilledTimeStamp" | "isFetching" | "isSuccess"> & {
|
|
323
|
+
isSuccess: true;
|
|
324
|
+
isFetching: true;
|
|
325
|
+
error: undefined;
|
|
326
|
+
} & {
|
|
327
|
+
data: readonly JWTKeys[];
|
|
328
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "fenceJWT", readonly JWTKeys[], "gen3Services", unknown>> & {
|
|
329
|
+
currentData?: readonly JWTKeys[] | undefined;
|
|
330
|
+
isUninitialized: false;
|
|
331
|
+
isLoading: false;
|
|
332
|
+
isFetching: false;
|
|
333
|
+
isSuccess: false;
|
|
334
|
+
isError: false;
|
|
335
|
+
}, "fulfilledTimeStamp">>) | (Omit<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "fenceJWT", readonly JWTKeys[], "gen3Services", unknown>> & {
|
|
336
|
+
currentData?: readonly JWTKeys[] | undefined;
|
|
337
|
+
isUninitialized: false;
|
|
338
|
+
isLoading: false;
|
|
339
|
+
isFetching: false;
|
|
340
|
+
isSuccess: false;
|
|
341
|
+
isError: false;
|
|
342
|
+
}, "data" | "error" | "fulfilledTimeStamp" | "currentData" | "isFetching" | "isSuccess"> & {
|
|
343
|
+
isSuccess: true;
|
|
344
|
+
isFetching: false;
|
|
345
|
+
error: undefined;
|
|
346
|
+
} & {
|
|
347
|
+
data: readonly JWTKeys[];
|
|
348
|
+
currentData: readonly JWTKeys[];
|
|
349
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "fenceJWT", readonly JWTKeys[], "gen3Services", unknown>> & {
|
|
350
|
+
currentData?: readonly JWTKeys[] | undefined;
|
|
351
|
+
isUninitialized: false;
|
|
352
|
+
isLoading: false;
|
|
353
|
+
isFetching: false;
|
|
354
|
+
isSuccess: false;
|
|
355
|
+
isError: false;
|
|
356
|
+
}, "fulfilledTimeStamp">>) | (Omit<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "fenceJWT", readonly JWTKeys[], "gen3Services", unknown>> & {
|
|
357
|
+
currentData?: readonly JWTKeys[] | undefined;
|
|
358
|
+
isUninitialized: false;
|
|
359
|
+
isLoading: false;
|
|
360
|
+
isFetching: false;
|
|
361
|
+
isSuccess: false;
|
|
362
|
+
isError: false;
|
|
363
|
+
}, "error" | "isError"> & {
|
|
364
|
+
isError: true;
|
|
365
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "fenceJWT", readonly JWTKeys[], "gen3Services", unknown>> & {
|
|
366
|
+
currentData?: readonly JWTKeys[] | undefined;
|
|
367
|
+
isUninitialized: false;
|
|
368
|
+
isLoading: false;
|
|
369
|
+
isFetching: false;
|
|
370
|
+
isSuccess: false;
|
|
371
|
+
isError: false;
|
|
372
|
+
}, "error">>)> & {
|
|
373
|
+
status: import("@reduxjs/toolkit/query").QueryStatus;
|
|
374
|
+
}) => R) | undefined;
|
|
375
|
+
}, "skip">) | undefined) => [(arg: void, preferCacheValue?: boolean) => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "fenceJWT", readonly JWTKeys[], "gen3Services", unknown>>, R & {
|
|
376
|
+
reset: () => void;
|
|
377
|
+
}, {
|
|
378
|
+
lastArg: void;
|
|
379
|
+
}];
|
|
197
380
|
//# sourceMappingURL=jwtApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jwtApi.d.ts","sourceRoot":"","sources":["../../../../src/features/fence/jwtApi.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"jwtApi.d.ts","sourceRoot":"","sources":["../../../../src/features/fence/jwtApi.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;CAChC;AAOD;;;;GAIG;AACH,eAAO,MAAM,MAAM;;2JAOjB,CAAC;AAEH,eAAO,MAAQ,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/features/fence/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,eAAO,MAAM,YAAY,GAAI,CAAC,EAAE,KAAK,OAAO,KAAG,GAAG,IAAI,UAAU,CAAC,CAAC,CAajE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAU,CAAC,EACrC,KAAK,QAAQ,EACb,UAAU,CAAC,KACV,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/features/fence/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,eAAO,MAAM,YAAY,GAAI,CAAC,EAAE,KAAK,OAAO,KAAG,GAAG,IAAI,UAAU,CAAC,CAAC,CAajE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAU,CAAC,EACrC,KAAK,QAAQ,EACb,UAAU,CAAC,KACV,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAkBvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gen3Api.d.ts","sourceRoot":"","sources":["../../../../src/features/gen3/gen3Api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"gen3Api.d.ts","sourceRoot":"","sources":["../../../../src/features/gen3/gen3Api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAevD;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,yZA6BlB,CAAC;AAEH,eAAO,MAAM,mBAAmB,EAAE,OAAoC,CAAC;AACvE,eAAO,MAAM,6BAA6B,EAAyB,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/notifications/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Types for the notification service
|
|
3
|
+
*/
|
|
4
|
+
export type NotificationType = 'success' | 'error' | 'info' | 'loading';
|
|
5
|
+
export interface NotificationOptions {
|
|
6
|
+
autoClose?: number;
|
|
7
|
+
withCloseButton?: boolean;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Notification handler function signature
|
|
13
|
+
*/
|
|
14
|
+
export type NotificationHandler = (id: string, title: string, message: string, type: NotificationType, options?: NotificationOptions) => void;
|
|
15
|
+
/**
|
|
16
|
+
* Notification service singleton
|
|
17
|
+
*/
|
|
18
|
+
declare class NotificationService {
|
|
19
|
+
private static instance;
|
|
20
|
+
private handler;
|
|
21
|
+
private constructor();
|
|
22
|
+
/**
|
|
23
|
+
* Get the singleton instance
|
|
24
|
+
*/
|
|
25
|
+
static getInstance(): NotificationService;
|
|
26
|
+
/**
|
|
27
|
+
* Register a notification handler
|
|
28
|
+
*/
|
|
29
|
+
registerHandler(handler: NotificationHandler): void;
|
|
30
|
+
/**
|
|
31
|
+
* Unregister the notification handler
|
|
32
|
+
*/
|
|
33
|
+
unregisterHandler(): void;
|
|
34
|
+
/**
|
|
35
|
+
* Show a notification using the registered handler
|
|
36
|
+
*/
|
|
37
|
+
showNotification(id: string, title: string, message: string, type: NotificationType, options?: NotificationOptions): void;
|
|
38
|
+
}
|
|
39
|
+
export declare const notificationService: NotificationService;
|
|
40
|
+
export declare const showNotification: (id: string, title: string, message: string, type: NotificationType, options?: NotificationOptions) => void;
|
|
41
|
+
export default notificationService;
|
|
42
|
+
//# sourceMappingURL=notificationService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notificationService.d.ts","sourceRoot":"","sources":["../../../../src/features/notifications/notificationService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAExE,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAChC,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,mBAAmB,KAC1B,IAAI,CAAC;AAEV;;GAEG;AACH,cAAM,mBAAmB;IACvB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAsB;IAC7C,OAAO,CAAC,OAAO,CAAoC;IAEnD,OAAO;IAEP;;OAEG;WACW,WAAW,IAAI,mBAAmB;IAOhD;;OAEG;IACI,eAAe,CAAC,OAAO,EAAE,mBAAmB,GAAG,IAAI;IAI1D;;OAEG;IACI,iBAAiB,IAAI,IAAI;IAIhC;;OAEG;IACI,gBAAgB,CACrB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,mBAAmB,GAC5B,IAAI;CAQR;AAGD,eAAO,MAAM,mBAAmB,qBAAoC,CAAC;AAGrE,eAAO,MAAM,gBAAgB,GAC3B,IAAI,MAAM,EACV,OAAO,MAAM,EACb,SAAS,MAAM,EACf,MAAM,gBAAgB,EACtB,UAAU,mBAAmB,KAC5B,IAEF,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|