@qlik/api 1.23.0 → 1.25.0
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/api-keys.d.ts +6 -2
- package/api-keys.js +2 -2
- package/apps.d.ts +1 -1
- package/apps.js +2 -2
- package/audits.d.ts +4 -16
- package/audits.js +2 -2
- package/auth.js +2 -2
- package/automations.d.ts +2 -59
- package/automations.js +3 -19
- package/brands.d.ts +1 -1
- package/brands.js +2 -2
- package/chunks/{E5TLRYTH.js → 3DYV7KOJ.js} +2 -2
- package/chunks/{CUC5USM5.js → 6DEESTGF.js} +2 -2
- package/chunks/{3REGOC54.js → 6QRR5VUM.js} +2 -2
- package/chunks/7BDAXGID.js +116 -0
- package/chunks/{3W4PFUMC.js → BL5PJM4B.js} +1 -1
- package/chunks/{3KD5W26Z.js → CZC7KEJN.js} +3 -3
- package/chunks/{OCV75U5H.js → I5UOE4ZZ.js} +81 -77
- package/chunks/{UJV2QU2J.js → N3ZFICDU.js} +3 -3
- package/chunks/{VXEOAWM6.js → OIQ5ELGS.js} +1 -1
- package/chunks/{SMQGR3VM.js → UA6BE3VB.js} +2 -2
- package/chunks/{EUWNVVK5.js → VX3MQBE7.js} +1 -1
- package/collections.d.ts +1 -1
- package/collections.js +2 -2
- package/csp-origins.d.ts +1 -1
- package/csp-origins.js +2 -2
- package/data-assets.d.ts +1 -1
- package/data-assets.js +2 -2
- package/data-connections.d.ts +1 -1
- package/data-connections.js +2 -2
- package/data-credentials.d.ts +1 -1
- package/data-credentials.js +2 -2
- package/data-files.d.ts +1 -1
- package/data-files.js +2 -2
- package/docs/rest.md +47 -0
- package/extensions.d.ts +1 -1
- package/extensions.js +2 -2
- package/glossaries.d.ts +3 -4
- package/glossaries.js +2 -2
- package/groups.d.ts +3 -3
- package/groups.js +2 -2
- package/identity-providers.d.ts +1 -1
- package/identity-providers.js +2 -2
- package/index.d.ts +11 -4
- package/index.js +89 -79
- package/interceptors.d.ts +51 -0
- package/interceptors.js +17 -0
- package/{global.types-qsBNouXJ.d.ts → invoke-fetch-types-BLrpeZOL.d.ts} +81 -48
- package/items.d.ts +3 -3
- package/items.js +2 -2
- package/licenses.d.ts +3 -1
- package/licenses.js +2 -2
- package/package.json +2 -2
- package/qix.d.ts +35 -2
- package/qix.js +2 -2
- package/quotas.d.ts +1 -1
- package/quotas.js +2 -2
- package/reload-tasks.d.ts +1 -1
- package/reload-tasks.js +2 -2
- package/reloads.d.ts +1 -1
- package/reloads.js +2 -2
- package/reports.d.ts +5 -3
- package/reports.js +2 -2
- package/roles.d.ts +98 -4
- package/roles.js +28 -4
- package/spaces.d.ts +23 -23
- package/spaces.js +2 -2
- package/temp-contents.d.ts +5 -5
- package/temp-contents.js +2 -2
- package/tenants.d.ts +1 -1
- package/tenants.js +2 -2
- package/themes.d.ts +1 -1
- package/themes.js +2 -2
- package/transports.d.ts +1 -1
- package/transports.js +2 -2
- package/users.d.ts +37 -61
- package/users.js +2 -9
- package/web-integrations.d.ts +1 -1
- package/web-integrations.js +2 -2
- package/web-notifications.d.ts +1 -1
- package/web-notifications.js +2 -2
- package/webhooks.d.ts +1 -1
- package/webhooks.js +2 -2
- package/chunks/7RHSSS4W.js +0 -0
package/api-keys.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ApiCallOptions } from './
|
|
1
|
+
import { A as ApiCallOptions } from './invoke-fetch-types-BLrpeZOL.js';
|
|
2
2
|
import './auth-types-PkN9CAF_.js';
|
|
3
3
|
|
|
4
4
|
type ApiKey = {
|
|
@@ -121,6 +121,10 @@ type Link = {
|
|
|
121
121
|
/** The URL for the link. */
|
|
122
122
|
href: string;
|
|
123
123
|
};
|
|
124
|
+
type RetryAfterHeader = {
|
|
125
|
+
/** The amount of seconds to wait before retrying the request. */
|
|
126
|
+
"retry-after"?: number;
|
|
127
|
+
};
|
|
124
128
|
type ApiKeyPage = {
|
|
125
129
|
/** Properties of API keys in a given tenant. */
|
|
126
130
|
data: ApiKey[];
|
|
@@ -337,4 +341,4 @@ interface ApiKeysAPI {
|
|
|
337
341
|
*/
|
|
338
342
|
declare const apiKeysExport: ApiKeysAPI;
|
|
339
343
|
|
|
340
|
-
export { type ApiKey, type ApiKeyBody, type ApiKeyConfigPatch, type ApiKeyPage, type ApiKeyPatch, type ApiKeyWithToken, type ApiKeysAPI, type ApiKeysConfig, type ApiKeysConfigPatchSchema, type ApiKeysPatchSchema, type CreateApiKeyHttpError, type CreateApiKeyHttpResponse, type DeleteApiKeyHttpError, type DeleteApiKeyHttpResponse, type Error, type Errors, type GetApiKeyHttpError, type GetApiKeyHttpResponse, type GetApiKeysConfigHttpError, type GetApiKeysConfigHttpResponse, type GetApiKeysHttpError, type GetApiKeysHttpResponse, type Link, type PatchApiKeyHttpError, type PatchApiKeyHttpResponse, type PatchApiKeysConfigHttpError, type PatchApiKeysConfigHttpResponse, clearCache, createApiKey, apiKeysExport as default, deleteApiKey, getApiKey, getApiKeys, getApiKeysConfig, patchApiKey, patchApiKeysConfig };
|
|
344
|
+
export { type ApiKey, type ApiKeyBody, type ApiKeyConfigPatch, type ApiKeyPage, type ApiKeyPatch, type ApiKeyWithToken, type ApiKeysAPI, type ApiKeysConfig, type ApiKeysConfigPatchSchema, type ApiKeysPatchSchema, type CreateApiKeyHttpError, type CreateApiKeyHttpResponse, type DeleteApiKeyHttpError, type DeleteApiKeyHttpResponse, type Error, type Errors, type GetApiKeyHttpError, type GetApiKeyHttpResponse, type GetApiKeysConfigHttpError, type GetApiKeysConfigHttpResponse, type GetApiKeysHttpError, type GetApiKeysHttpResponse, type Link, type PatchApiKeyHttpError, type PatchApiKeyHttpResponse, type PatchApiKeysConfigHttpError, type PatchApiKeysConfigHttpResponse, type RetryAfterHeader, clearCache, createApiKey, apiKeysExport as default, deleteApiKey, getApiKey, getApiKeys, getApiKeysConfig, patchApiKey, patchApiKeysConfig };
|
package/api-keys.js
CHANGED
package/apps.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ApiCallOptions, D as DownloadableBlob } from './
|
|
1
|
+
import { A as ApiCallOptions, D as DownloadableBlob } from './invoke-fetch-types-BLrpeZOL.js';
|
|
2
2
|
import './auth-types-PkN9CAF_.js';
|
|
3
3
|
|
|
4
4
|
type Analysis = "breakdown" | "changePoint" | "comparison" | "contribution" | "correlation" | "fact" | "mutualInfo" | "rank" | "spike" | "trend" | "values";
|
package/apps.js
CHANGED
package/audits.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ApiCallOptions } from './
|
|
1
|
+
import { A as ApiCallOptions } from './invoke-fetch-types-BLrpeZOL.js';
|
|
2
2
|
import './auth-types-PkN9CAF_.js';
|
|
3
3
|
|
|
4
4
|
type ErrorResponse = {
|
|
@@ -59,8 +59,6 @@ type GetByIDResult = {
|
|
|
59
59
|
userId?: string;
|
|
60
60
|
};
|
|
61
61
|
type GetLinks = {
|
|
62
|
-
/** @deprecated */
|
|
63
|
-
Self?: Href;
|
|
64
62
|
self?: Href;
|
|
65
63
|
};
|
|
66
64
|
type GetObjectsResult = {
|
|
@@ -82,24 +80,14 @@ type GetSettingsResult = {
|
|
|
82
80
|
EventTTL?: number;
|
|
83
81
|
};
|
|
84
82
|
};
|
|
85
|
-
/**
|
|
86
|
-
* @deprecated
|
|
87
|
-
*/
|
|
88
|
-
type Href = {
|
|
89
|
-
/** @deprecated */
|
|
90
|
-
Href?: string;
|
|
91
|
-
};
|
|
92
83
|
type ListLinks = {
|
|
93
|
-
/** @deprecated */
|
|
94
|
-
Next?: Href;
|
|
95
|
-
/** @deprecated */
|
|
96
|
-
Prev?: Href;
|
|
97
|
-
/** @deprecated */
|
|
98
|
-
Self?: Href;
|
|
99
84
|
next?: Href;
|
|
100
85
|
prev?: Href;
|
|
101
86
|
self?: Href;
|
|
102
87
|
};
|
|
88
|
+
type Href = {
|
|
89
|
+
href?: string;
|
|
90
|
+
};
|
|
103
91
|
/**
|
|
104
92
|
* Retrieves list of events for subscribed services for your tenant. Stores events for 90 days, after which they can be accessed via `/v1/audits/archive`.
|
|
105
93
|
*
|
package/audits.js
CHANGED
package/auth.js
CHANGED
package/automations.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ApiCallOptions } from './
|
|
1
|
+
import { A as ApiCallOptions } from './invoke-fetch-types-BLrpeZOL.js';
|
|
2
2
|
import './auth-types-PkN9CAF_.js';
|
|
3
3
|
|
|
4
4
|
type AutomationDetailRequestObject = {
|
|
@@ -174,9 +174,6 @@ type ScheduleResponseObject = {
|
|
|
174
174
|
stopAt?: string;
|
|
175
175
|
timezone?: string;
|
|
176
176
|
};
|
|
177
|
-
type SettingsObject = {
|
|
178
|
-
automationsEnabled?: boolean;
|
|
179
|
-
};
|
|
180
177
|
type UsageList = {
|
|
181
178
|
data?: UsageObject[];
|
|
182
179
|
links?: Links;
|
|
@@ -235,43 +232,6 @@ type CreateAutomationHttpError = {
|
|
|
235
232
|
headers: Headers;
|
|
236
233
|
status: number;
|
|
237
234
|
};
|
|
238
|
-
/**
|
|
239
|
-
* @deprecated
|
|
240
|
-
*
|
|
241
|
-
* Retrieves the automation settings.
|
|
242
|
-
*
|
|
243
|
-
* @throws GetAutomationsSettingsHttpError
|
|
244
|
-
*/
|
|
245
|
-
declare const getAutomationsSettings: (options?: ApiCallOptions) => Promise<GetAutomationsSettingsHttpResponse>;
|
|
246
|
-
type GetAutomationsSettingsHttpResponse = {
|
|
247
|
-
data: SettingsObject;
|
|
248
|
-
headers: Headers;
|
|
249
|
-
status: number;
|
|
250
|
-
};
|
|
251
|
-
type GetAutomationsSettingsHttpError = {
|
|
252
|
-
data: ErrorResponse;
|
|
253
|
-
headers: Headers;
|
|
254
|
-
status: number;
|
|
255
|
-
};
|
|
256
|
-
/**
|
|
257
|
-
* @deprecated
|
|
258
|
-
*
|
|
259
|
-
* Update the automation settings.
|
|
260
|
-
*
|
|
261
|
-
* @param body an object with the body content
|
|
262
|
-
* @throws UpdateAutomationsSettingsHttpError
|
|
263
|
-
*/
|
|
264
|
-
declare const updateAutomationsSettings: (body: SettingsObject, options?: ApiCallOptions) => Promise<UpdateAutomationsSettingsHttpResponse>;
|
|
265
|
-
type UpdateAutomationsSettingsHttpResponse = {
|
|
266
|
-
data: SettingsObject;
|
|
267
|
-
headers: Headers;
|
|
268
|
-
status: number;
|
|
269
|
-
};
|
|
270
|
-
type UpdateAutomationsSettingsHttpError = {
|
|
271
|
-
data: ErrorResponse;
|
|
272
|
-
headers: Headers;
|
|
273
|
-
status: number;
|
|
274
|
-
};
|
|
275
235
|
/**
|
|
276
236
|
* Retrieves all automation usage for a tenant
|
|
277
237
|
*
|
|
@@ -609,23 +569,6 @@ interface AutomationsAPI {
|
|
|
609
569
|
* @throws CreateAutomationHttpError
|
|
610
570
|
*/
|
|
611
571
|
createAutomation: typeof createAutomation;
|
|
612
|
-
/**
|
|
613
|
-
* @deprecated
|
|
614
|
-
*
|
|
615
|
-
* Retrieves the automation settings.
|
|
616
|
-
*
|
|
617
|
-
* @throws GetAutomationsSettingsHttpError
|
|
618
|
-
*/
|
|
619
|
-
getAutomationsSettings: typeof getAutomationsSettings;
|
|
620
|
-
/**
|
|
621
|
-
* @deprecated
|
|
622
|
-
*
|
|
623
|
-
* Update the automation settings.
|
|
624
|
-
*
|
|
625
|
-
* @param body an object with the body content
|
|
626
|
-
* @throws UpdateAutomationsSettingsHttpError
|
|
627
|
-
*/
|
|
628
|
-
updateAutomationsSettings: typeof updateAutomationsSettings;
|
|
629
572
|
/**
|
|
630
573
|
* Retrieves all automation usage for a tenant
|
|
631
574
|
*
|
|
@@ -760,4 +703,4 @@ interface AutomationsAPI {
|
|
|
760
703
|
*/
|
|
761
704
|
declare const automationsExport: AutomationsAPI;
|
|
762
705
|
|
|
763
|
-
export { type AutomationDetailRequestObject, type AutomationDetailResponseObject, type AutomationList, type AutomationListObject, type AutomationUsageObject, type AutomationsAPI, type CopyAutomationHttpError, type CopyAutomationHttpResponse, type CreateAutomationHttpError, type CreateAutomationHttpResponse, type DeleteAutomationHttpError, type DeleteAutomationHttpResponse, type DisableAutomationHttpError, type DisableAutomationHttpResponse, type EnableAutomationHttpError, type EnableAutomationHttpResponse, type Error, type ErrorResponse, type GetAutomationHttpError, type GetAutomationHttpResponse, type GetAutomationRunDetailsHttpError, type GetAutomationRunDetailsHttpResponse, type GetAutomationRunHttpError, type GetAutomationRunHttpResponse, type GetAutomationRunWithQueryHttpError, type GetAutomationRunWithQueryHttpResponse, type GetAutomationRunsHttpError, type GetAutomationRunsHttpResponse, type GetAutomationWithQueryHttpError, type GetAutomationWithQueryHttpResponse, type GetAutomationsHttpError, type GetAutomationsHttpResponse, type
|
|
706
|
+
export { type AutomationDetailRequestObject, type AutomationDetailResponseObject, type AutomationList, type AutomationListObject, type AutomationUsageObject, type AutomationsAPI, type CopyAutomationHttpError, type CopyAutomationHttpResponse, type CreateAutomationHttpError, type CreateAutomationHttpResponse, type DeleteAutomationHttpError, type DeleteAutomationHttpResponse, type DisableAutomationHttpError, type DisableAutomationHttpResponse, type EnableAutomationHttpError, type EnableAutomationHttpResponse, type Error, type ErrorResponse, type GetAutomationHttpError, type GetAutomationHttpResponse, type GetAutomationRunDetailsHttpError, type GetAutomationRunDetailsHttpResponse, type GetAutomationRunHttpError, type GetAutomationRunHttpResponse, type GetAutomationRunWithQueryHttpError, type GetAutomationRunWithQueryHttpResponse, type GetAutomationRunsHttpError, type GetAutomationRunsHttpResponse, type GetAutomationWithQueryHttpError, type GetAutomationWithQueryHttpResponse, type GetAutomationsHttpError, type GetAutomationsHttpResponse, type GetAutomationsUsageMetricsHttpError, type GetAutomationsUsageMetricsHttpResponse, type Links, type MoveAutomationHttpError, type MoveAutomationHttpResponse, type PaginationLink, type QueueAutomationRunHttpError, type QueueAutomationRunHttpResponse, type RetryAutomationRunHttpError, type RetryAutomationRunHttpResponse, type RunDetailRequestObject, type RunDetailResponseObject, type RunList, type RunListObject, type ScheduleRequestObject, type ScheduleResponseObject, type StopAutomationRunHttpError, type StopAutomationRunHttpResponse, type UpdateAutomationHttpError, type UpdateAutomationHttpResponse, type UsageList, type UsageObject, clearCache, copyAutomation, createAutomation, automationsExport as default, deleteAutomation, disableAutomation, enableAutomation, getAutomation, getAutomationRun, getAutomationRunDetails, getAutomationRunWithQuery, getAutomationRuns, getAutomationWithQuery, getAutomations, getAutomationsUsageMetrics, moveAutomation, queueAutomationRun, retryAutomationRun, stopAutomationRun, updateAutomation };
|
package/automations.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearApiCache,
|
|
3
3
|
invokeFetch
|
|
4
|
-
} from "./chunks/
|
|
5
|
-
import "./chunks/
|
|
4
|
+
} from "./chunks/UA6BE3VB.js";
|
|
5
|
+
import "./chunks/CZC7KEJN.js";
|
|
6
6
|
import "./chunks/2ZQ3ZX7F.js";
|
|
7
7
|
|
|
8
8
|
// src/public/rest/automations.ts
|
|
@@ -19,18 +19,6 @@ var createAutomation = async (body, options) => invokeFetch("automations", {
|
|
|
19
19
|
contentType: "application/json",
|
|
20
20
|
options
|
|
21
21
|
});
|
|
22
|
-
var getAutomationsSettings = async (options) => invokeFetch("automations", {
|
|
23
|
-
method: "get",
|
|
24
|
-
pathTemplate: "/api/v1/automations/settings",
|
|
25
|
-
options
|
|
26
|
-
});
|
|
27
|
-
var updateAutomationsSettings = async (body, options) => invokeFetch("automations", {
|
|
28
|
-
method: "put",
|
|
29
|
-
pathTemplate: "/api/v1/automations/settings",
|
|
30
|
-
body,
|
|
31
|
-
contentType: "application/json",
|
|
32
|
-
options
|
|
33
|
-
});
|
|
34
22
|
var getAutomationsUsageMetrics = async (query, options) => invokeFetch("automations", {
|
|
35
23
|
method: "get",
|
|
36
24
|
pathTemplate: "/api/v1/automations/usage",
|
|
@@ -144,8 +132,6 @@ function clearCache() {
|
|
|
144
132
|
var automationsExport = {
|
|
145
133
|
getAutomations,
|
|
146
134
|
createAutomation,
|
|
147
|
-
getAutomationsSettings,
|
|
148
|
-
updateAutomationsSettings,
|
|
149
135
|
getAutomationsUsageMetrics,
|
|
150
136
|
deleteAutomation,
|
|
151
137
|
getAutomationWithQuery,
|
|
@@ -180,12 +166,10 @@ export {
|
|
|
180
166
|
getAutomationRuns,
|
|
181
167
|
getAutomationWithQuery,
|
|
182
168
|
getAutomations,
|
|
183
|
-
getAutomationsSettings,
|
|
184
169
|
getAutomationsUsageMetrics,
|
|
185
170
|
moveAutomation,
|
|
186
171
|
queueAutomationRun,
|
|
187
172
|
retryAutomationRun,
|
|
188
173
|
stopAutomationRun,
|
|
189
|
-
updateAutomation
|
|
190
|
-
updateAutomationsSettings
|
|
174
|
+
updateAutomation
|
|
191
175
|
};
|
package/brands.d.ts
CHANGED
package/brands.js
CHANGED
|
@@ -19,8 +19,8 @@ import {
|
|
|
19
19
|
toValidEnigmaLocationUrl,
|
|
20
20
|
toValidLocationUrl,
|
|
21
21
|
toValidWebsocketLocationUrl
|
|
22
|
-
} from "./
|
|
23
|
-
import "./
|
|
22
|
+
} from "./I5UOE4ZZ.js";
|
|
23
|
+
import "./7BDAXGID.js";
|
|
24
24
|
import "./2ZQ3ZX7F.js";
|
|
25
25
|
export {
|
|
26
26
|
AuthorizationError,
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isBrowser
|
|
3
|
+
} from "./2ZQ3ZX7F.js";
|
|
4
|
+
|
|
5
|
+
// src/interceptors/interceptors.ts
|
|
6
|
+
var GLOBAL_INTERCEPTORS;
|
|
7
|
+
function createInterceptors() {
|
|
8
|
+
const startingInterceptors = GLOBAL_INTERCEPTORS?.getInterceptors() || [];
|
|
9
|
+
const interceptors2 = [...startingInterceptors];
|
|
10
|
+
return {
|
|
11
|
+
/**
|
|
12
|
+
* Adds an interceptor to the global interceptor stack
|
|
13
|
+
* Returns the newly added interceptor
|
|
14
|
+
* @param interceptor the interceptor to add
|
|
15
|
+
* @returns the newly added interceptor
|
|
16
|
+
*/
|
|
17
|
+
addInterceptor: (interceptor) => {
|
|
18
|
+
interceptors2.push(interceptor);
|
|
19
|
+
return interceptor;
|
|
20
|
+
},
|
|
21
|
+
/**
|
|
22
|
+
* Removes an interceptor from the global interceptor stack
|
|
23
|
+
* Returns null if the interceptor was not found
|
|
24
|
+
* @param interceptor the interceptor remove
|
|
25
|
+
* @returns the removed interceptor or null if not found
|
|
26
|
+
*/
|
|
27
|
+
removeInterceptor: (interceptor) => {
|
|
28
|
+
const index = interceptors2.indexOf(interceptor);
|
|
29
|
+
let removed;
|
|
30
|
+
if (index !== -1) {
|
|
31
|
+
removed = interceptors2.splice(index, 1)[0];
|
|
32
|
+
}
|
|
33
|
+
return removed || null;
|
|
34
|
+
},
|
|
35
|
+
/**
|
|
36
|
+
* Gets all registered interceptors
|
|
37
|
+
*/
|
|
38
|
+
getInterceptors: () => interceptors2
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
var addDefaultInterceptorsRun = false;
|
|
42
|
+
function addDefaultInterceptors() {
|
|
43
|
+
if (addDefaultInterceptorsRun) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
if (isBrowser()) {
|
|
47
|
+
const readFlagsFromUrlQuery = () => {
|
|
48
|
+
const params = new URLSearchParams(window.location.search);
|
|
49
|
+
const featuresParam = params.get("features");
|
|
50
|
+
if (!featuresParam) {
|
|
51
|
+
return {};
|
|
52
|
+
}
|
|
53
|
+
const features = featuresParam.split(",").map((item) => item.trim());
|
|
54
|
+
const urlFeatures = features.reduce(
|
|
55
|
+
(map, obj) => {
|
|
56
|
+
const value = !obj.startsWith("!");
|
|
57
|
+
const key = value ? obj : obj.substring(1);
|
|
58
|
+
map[key] = value;
|
|
59
|
+
return map;
|
|
60
|
+
},
|
|
61
|
+
{}
|
|
62
|
+
);
|
|
63
|
+
return urlFeatures;
|
|
64
|
+
};
|
|
65
|
+
const readFlagsFromLocalStorage = () => {
|
|
66
|
+
try {
|
|
67
|
+
const featuresParam = localStorage.getItem("qcs-features");
|
|
68
|
+
if (featuresParam) {
|
|
69
|
+
return JSON.parse(featuresParam);
|
|
70
|
+
}
|
|
71
|
+
return {};
|
|
72
|
+
} catch {
|
|
73
|
+
return {};
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
const flagsFromUrl = readFlagsFromUrlQuery();
|
|
77
|
+
const flagsFromLocalStorage = readFlagsFromLocalStorage();
|
|
78
|
+
const interceptor = async (request, proceed) => {
|
|
79
|
+
let resultPromise;
|
|
80
|
+
if (request.pathTemplate === "/api/v1/features") {
|
|
81
|
+
resultPromise = proceed(request);
|
|
82
|
+
const result = await resultPromise;
|
|
83
|
+
return { ...result, data: { ...result.data || {}, ...flagsFromLocalStorage, ...flagsFromUrl } };
|
|
84
|
+
}
|
|
85
|
+
return proceed(request);
|
|
86
|
+
};
|
|
87
|
+
GLOBAL_INTERCEPTORS.addInterceptor(interceptor);
|
|
88
|
+
}
|
|
89
|
+
addDefaultInterceptorsRun = true;
|
|
90
|
+
}
|
|
91
|
+
GLOBAL_INTERCEPTORS = createInterceptors();
|
|
92
|
+
function addInterceptor(interceptor) {
|
|
93
|
+
return GLOBAL_INTERCEPTORS.addInterceptor(interceptor);
|
|
94
|
+
}
|
|
95
|
+
function removeInterceptor(interceptor) {
|
|
96
|
+
return GLOBAL_INTERCEPTORS.removeInterceptor(interceptor);
|
|
97
|
+
}
|
|
98
|
+
function getInterceptors() {
|
|
99
|
+
return GLOBAL_INTERCEPTORS.getInterceptors();
|
|
100
|
+
}
|
|
101
|
+
var interceptors = {
|
|
102
|
+
addInterceptor,
|
|
103
|
+
removeInterceptor,
|
|
104
|
+
getInterceptors,
|
|
105
|
+
createInterceptors
|
|
106
|
+
};
|
|
107
|
+
var interceptors_default = interceptors;
|
|
108
|
+
|
|
109
|
+
export {
|
|
110
|
+
createInterceptors,
|
|
111
|
+
addDefaultInterceptors,
|
|
112
|
+
addInterceptor,
|
|
113
|
+
removeInterceptor,
|
|
114
|
+
getInterceptors,
|
|
115
|
+
interceptors_default
|
|
116
|
+
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
// src/public/public-runtime-modules.ts
|
|
2
2
|
function getAuthRuntimeModule(hostConfig) {
|
|
3
3
|
const isNode = !!globalThis.process?.argv;
|
|
4
|
-
return isNode ? import("./
|
|
4
|
+
return isNode ? import("./6DEESTGF.js") : import("./VX3MQBE7.js").then(
|
|
5
5
|
(mod) => mod.importRuntimeModule("auth@v1", hostConfig)
|
|
6
6
|
);
|
|
7
7
|
}
|
|
8
8
|
async function getQixRuntimeModule(hostConfig) {
|
|
9
9
|
await getAuthRuntimeModule(hostConfig);
|
|
10
10
|
const isNode = !!globalThis.process?.argv;
|
|
11
|
-
return isNode ? import("./
|
|
11
|
+
return isNode ? import("./N3ZFICDU.js") : import("./VX3MQBE7.js").then(
|
|
12
12
|
(mod) => mod.importRuntimeModule("qix@v1", hostConfig)
|
|
13
13
|
);
|
|
14
14
|
}
|
|
15
15
|
async function getInvokeFetchRuntimeModule(hostConfig) {
|
|
16
16
|
await getAuthRuntimeModule(hostConfig);
|
|
17
17
|
const isNode = !!globalThis.process?.argv;
|
|
18
|
-
return isNode ? import("./
|
|
18
|
+
return isNode ? import("./3DYV7KOJ.js") : import("./VX3MQBE7.js").then(
|
|
19
19
|
(mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig)
|
|
20
20
|
);
|
|
21
21
|
}
|