@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.
Files changed (84) hide show
  1. package/api-keys.d.ts +6 -2
  2. package/api-keys.js +2 -2
  3. package/apps.d.ts +1 -1
  4. package/apps.js +2 -2
  5. package/audits.d.ts +4 -16
  6. package/audits.js +2 -2
  7. package/auth.js +2 -2
  8. package/automations.d.ts +2 -59
  9. package/automations.js +3 -19
  10. package/brands.d.ts +1 -1
  11. package/brands.js +2 -2
  12. package/chunks/{E5TLRYTH.js → 3DYV7KOJ.js} +2 -2
  13. package/chunks/{CUC5USM5.js → 6DEESTGF.js} +2 -2
  14. package/chunks/{3REGOC54.js → 6QRR5VUM.js} +2 -2
  15. package/chunks/7BDAXGID.js +116 -0
  16. package/chunks/{3W4PFUMC.js → BL5PJM4B.js} +1 -1
  17. package/chunks/{3KD5W26Z.js → CZC7KEJN.js} +3 -3
  18. package/chunks/{OCV75U5H.js → I5UOE4ZZ.js} +81 -77
  19. package/chunks/{UJV2QU2J.js → N3ZFICDU.js} +3 -3
  20. package/chunks/{VXEOAWM6.js → OIQ5ELGS.js} +1 -1
  21. package/chunks/{SMQGR3VM.js → UA6BE3VB.js} +2 -2
  22. package/chunks/{EUWNVVK5.js → VX3MQBE7.js} +1 -1
  23. package/collections.d.ts +1 -1
  24. package/collections.js +2 -2
  25. package/csp-origins.d.ts +1 -1
  26. package/csp-origins.js +2 -2
  27. package/data-assets.d.ts +1 -1
  28. package/data-assets.js +2 -2
  29. package/data-connections.d.ts +1 -1
  30. package/data-connections.js +2 -2
  31. package/data-credentials.d.ts +1 -1
  32. package/data-credentials.js +2 -2
  33. package/data-files.d.ts +1 -1
  34. package/data-files.js +2 -2
  35. package/docs/rest.md +47 -0
  36. package/extensions.d.ts +1 -1
  37. package/extensions.js +2 -2
  38. package/glossaries.d.ts +3 -4
  39. package/glossaries.js +2 -2
  40. package/groups.d.ts +3 -3
  41. package/groups.js +2 -2
  42. package/identity-providers.d.ts +1 -1
  43. package/identity-providers.js +2 -2
  44. package/index.d.ts +11 -4
  45. package/index.js +89 -79
  46. package/interceptors.d.ts +51 -0
  47. package/interceptors.js +17 -0
  48. package/{global.types-qsBNouXJ.d.ts → invoke-fetch-types-BLrpeZOL.d.ts} +81 -48
  49. package/items.d.ts +3 -3
  50. package/items.js +2 -2
  51. package/licenses.d.ts +3 -1
  52. package/licenses.js +2 -2
  53. package/package.json +2 -2
  54. package/qix.d.ts +35 -2
  55. package/qix.js +2 -2
  56. package/quotas.d.ts +1 -1
  57. package/quotas.js +2 -2
  58. package/reload-tasks.d.ts +1 -1
  59. package/reload-tasks.js +2 -2
  60. package/reloads.d.ts +1 -1
  61. package/reloads.js +2 -2
  62. package/reports.d.ts +5 -3
  63. package/reports.js +2 -2
  64. package/roles.d.ts +98 -4
  65. package/roles.js +28 -4
  66. package/spaces.d.ts +23 -23
  67. package/spaces.js +2 -2
  68. package/temp-contents.d.ts +5 -5
  69. package/temp-contents.js +2 -2
  70. package/tenants.d.ts +1 -1
  71. package/tenants.js +2 -2
  72. package/themes.d.ts +1 -1
  73. package/themes.js +2 -2
  74. package/transports.d.ts +1 -1
  75. package/transports.js +2 -2
  76. package/users.d.ts +37 -61
  77. package/users.js +2 -9
  78. package/web-integrations.d.ts +1 -1
  79. package/web-integrations.js +2 -2
  80. package/web-notifications.d.ts +1 -1
  81. package/web-notifications.js +2 -2
  82. package/webhooks.d.ts +1 -1
  83. package/webhooks.js +2 -2
  84. package/chunks/7RHSSS4W.js +0 -0
package/api-keys.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions } from './global.types-qsBNouXJ.js';
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
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/SMQGR3VM.js";
5
- import "./chunks/3KD5W26Z.js";
4
+ } from "./chunks/UA6BE3VB.js";
5
+ import "./chunks/CZC7KEJN.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/api-keys.ts
package/apps.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions, D as DownloadableBlob } from './global.types-qsBNouXJ.js';
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
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/SMQGR3VM.js";
5
- import "./chunks/3KD5W26Z.js";
4
+ } from "./chunks/UA6BE3VB.js";
5
+ import "./chunks/CZC7KEJN.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/apps.ts
package/audits.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions } from './global.types-qsBNouXJ.js';
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
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/SMQGR3VM.js";
5
- import "./chunks/3KD5W26Z.js";
4
+ } from "./chunks/UA6BE3VB.js";
5
+ import "./chunks/CZC7KEJN.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/audits.ts
package/auth.js CHANGED
@@ -4,8 +4,8 @@ import {
4
4
  logout,
5
5
  registerAuthModule,
6
6
  setDefaultHostConfig
7
- } from "./chunks/3W4PFUMC.js";
8
- import "./chunks/3KD5W26Z.js";
7
+ } from "./chunks/BL5PJM4B.js";
8
+ import "./chunks/CZC7KEJN.js";
9
9
  export {
10
10
  auth_default as default,
11
11
  getAccessToken,
package/automations.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions } from './global.types-qsBNouXJ.js';
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 GetAutomationsSettingsHttpError, type GetAutomationsSettingsHttpResponse, 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 SettingsObject, type StopAutomationRunHttpError, type StopAutomationRunHttpResponse, type UpdateAutomationHttpError, type UpdateAutomationHttpResponse, type UpdateAutomationsSettingsHttpError, type UpdateAutomationsSettingsHttpResponse, type UsageList, type UsageObject, clearCache, copyAutomation, createAutomation, automationsExport as default, deleteAutomation, disableAutomation, enableAutomation, getAutomation, getAutomationRun, getAutomationRunDetails, getAutomationRunWithQuery, getAutomationRuns, getAutomationWithQuery, getAutomations, getAutomationsSettings, getAutomationsUsageMetrics, moveAutomation, queueAutomationRun, retryAutomationRun, stopAutomationRun, updateAutomation, updateAutomationsSettings };
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/SMQGR3VM.js";
5
- import "./chunks/3KD5W26Z.js";
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
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions, D as DownloadableBlob } from './global.types-qsBNouXJ.js';
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
  /**
package/brands.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/SMQGR3VM.js";
5
- import "./chunks/3KD5W26Z.js";
4
+ } from "./chunks/UA6BE3VB.js";
5
+ import "./chunks/CZC7KEJN.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/brands.ts
@@ -5,8 +5,8 @@ import {
5
5
  invokeFetch,
6
6
  invoke_fetch_default,
7
7
  parseFetchResponse
8
- } from "./OCV75U5H.js";
9
- import "./7RHSSS4W.js";
8
+ } from "./I5UOE4ZZ.js";
9
+ import "./7BDAXGID.js";
10
10
  import "./2ZQ3ZX7F.js";
11
11
  export {
12
12
  EncodingError,
@@ -19,8 +19,8 @@ import {
19
19
  toValidEnigmaLocationUrl,
20
20
  toValidLocationUrl,
21
21
  toValidWebsocketLocationUrl
22
- } from "./OCV75U5H.js";
23
- import "./7RHSSS4W.js";
22
+ } from "./I5UOE4ZZ.js";
23
+ import "./7BDAXGID.js";
24
24
  import "./2ZQ3ZX7F.js";
25
25
  export {
26
26
  AuthorizationError,
@@ -3,8 +3,8 @@ import {
3
3
  getRestCallAuthParams,
4
4
  getWebSocketAuthParams,
5
5
  toValidWebsocketLocationUrl
6
- } from "./OCV75U5H.js";
7
- import "./7RHSSS4W.js";
6
+ } from "./I5UOE4ZZ.js";
7
+ import "./7BDAXGID.js";
8
8
  import {
9
9
  isNode
10
10
  } from "./2ZQ3ZX7F.js";
@@ -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,6 +1,6 @@
1
1
  import {
2
2
  getAuthRuntimeModule
3
- } from "./3KD5W26Z.js";
3
+ } from "./CZC7KEJN.js";
4
4
 
5
5
  // src/public/auth.ts
6
6
  function registerAuthModule(name, authModule) {
@@ -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("./CUC5USM5.js") : import("./EUWNVVK5.js").then(
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("./UJV2QU2J.js") : import("./EUWNVVK5.js").then(
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("./E5TLRYTH.js") : import("./EUWNVVK5.js").then(
18
+ return isNode ? import("./3DYV7KOJ.js") : import("./VX3MQBE7.js").then(
19
19
  (mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig)
20
20
  );
21
21
  }