@qlik/api 2.3.1 → 2.4.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 (167) hide show
  1. package/analytics/change-stores.d.ts +40 -76
  2. package/analytics/change-stores.js +9 -10
  3. package/analytics.d.ts +1 -2
  4. package/analytics.js +5 -6
  5. package/api-keys.d.ts +46 -100
  6. package/api-keys.js +3 -4
  7. package/apps.d.ts +334 -461
  8. package/apps.js +74 -6
  9. package/assistants.d.ts +172 -337
  10. package/assistants.js +3 -4
  11. package/audits.d.ts +41 -85
  12. package/audits.js +3 -4
  13. package/auth-types.d.ts +110 -1
  14. package/auth-types.js +22 -1
  15. package/auth.d.ts +1 -2
  16. package/auth.js +1 -1
  17. package/automation-connections.d.ts +44 -95
  18. package/automation-connections.js +3 -4
  19. package/automation-connectors.d.ts +10 -20
  20. package/automation-connectors.js +3 -4
  21. package/automations.d.ts +54 -112
  22. package/automations.js +3 -4
  23. package/automl-deployments.d.ts +17 -36
  24. package/automl-deployments.js +3 -4
  25. package/automl-predictions.d.ts +12 -24
  26. package/automl-predictions.js +3 -4
  27. package/banners.d.ts +8 -14
  28. package/banners.js +3 -4
  29. package/brands.d.ts +19 -39
  30. package/brands.js +3 -4
  31. package/chunks/auth-B8lJw7rm.js +31 -0
  32. package/chunks/{interceptors-2VSXImC9.js → boot-interceptors-DqRxTczb.js} +50 -150
  33. package/chunks/{chunk-D3vHIbds.js → chunk-BdHzlgOL.js} +3 -3
  34. package/chunks/{invoke-fetch-CckTK7bh.js → invoke-fetch-DMAi6Fg3.js} +3 -3
  35. package/chunks/{invoke-fetch-D9lpiAb-.js → invoke-fetch-pMN6iqup.js} +2 -3
  36. package/chunks/platform-types-CECrZkOF.d.ts +29 -0
  37. package/chunks/{public-runtime-modules-BqxAMJ9M.js → public-runtime-modules-2KfyI2qM.js} +5 -5
  38. package/chunks/{qix-DpvHvpx7.js → qix-BdNrIA4s.js} +19 -20
  39. package/chunks/{qix-chunk-entrypoint-BXZPnE6J.js → qix-chunk-entrypoint-L9RpWwLK.js} +52 -58
  40. package/chunks/{qix-CrqXv44x.d.ts → qix-types-y_di0roE.d.ts} +33 -115
  41. package/collections.d.ts +67 -144
  42. package/collections.js +3 -4
  43. package/conditions.d.ts +87 -190
  44. package/conditions.js +3 -4
  45. package/consumption.d.ts +35 -72
  46. package/consumption.js +3 -4
  47. package/core/ip-policies.d.ts +43 -93
  48. package/core/ip-policies.js +5 -6
  49. package/core.d.ts +1 -2
  50. package/core.js +5 -6
  51. package/csp-origins.d.ts +42 -85
  52. package/csp-origins.js +3 -4
  53. package/csrf-token.d.ts +6 -11
  54. package/csrf-token.js +3 -4
  55. package/data-alerts.d.ts +152 -325
  56. package/data-alerts.js +3 -4
  57. package/data-assets.d.ts +16 -31
  58. package/data-assets.js +3 -4
  59. package/data-connections.d.ts +123 -257
  60. package/data-connections.js +3 -4
  61. package/data-credentials.d.ts +36 -76
  62. package/data-credentials.js +3 -4
  63. package/data-files.d.ts +60 -121
  64. package/data-files.js +3 -4
  65. package/data-governance/data-products.d.ts +429 -0
  66. package/data-governance/data-products.js +212 -0
  67. package/data-governance.d.ts +13 -0
  68. package/data-governance.js +12 -0
  69. package/data-qualities.d.ts +11 -25
  70. package/data-qualities.js +3 -4
  71. package/data-sets.d.ts +28 -57
  72. package/data-sets.js +3 -4
  73. package/data-sources.d.ts +45 -97
  74. package/data-sources.js +3 -4
  75. package/data-stores.d.ts +53 -107
  76. package/data-stores.js +3 -4
  77. package/dcaas.d.ts +32 -67
  78. package/dcaas.js +3 -4
  79. package/di-projects.d.ts +111 -136
  80. package/di-projects.js +25 -4
  81. package/direct-access-agents.d.ts +29 -63
  82. package/direct-access-agents.js +3 -4
  83. package/encryption.d.ts +28 -59
  84. package/encryption.js +3 -4
  85. package/extensions.d.ts +35 -73
  86. package/extensions.js +3 -4
  87. package/global-types.d.ts +139 -1
  88. package/glossaries.d.ts +75 -158
  89. package/glossaries.js +3 -4
  90. package/groups.d.ts +58 -125
  91. package/groups.js +3 -4
  92. package/identity-providers.d.ts +148 -324
  93. package/identity-providers.js +3 -4
  94. package/index.d.ts +18 -4
  95. package/index.js +64 -19
  96. package/interceptors.d.ts +2 -3
  97. package/interceptors.js +104 -2
  98. package/invoke-fetch-types.d.ts +97 -1
  99. package/items.d.ts +85 -181
  100. package/items.js +3 -4
  101. package/knowledgebases.d.ts +137 -270
  102. package/knowledgebases.js +3 -4
  103. package/licenses.d.ts +71 -153
  104. package/licenses.js +3 -4
  105. package/lineage-graphs.d.ts +39 -85
  106. package/lineage-graphs.js +3 -4
  107. package/ml.d.ts +290 -621
  108. package/ml.js +3 -4
  109. package/notes.d.ts +9 -18
  110. package/notes.js +3 -4
  111. package/notifications.d.ts +14 -30
  112. package/notifications.js +3 -4
  113. package/oauth-clients.d.ts +98 -159
  114. package/oauth-clients.js +4 -5
  115. package/oauth-tokens.d.ts +16 -33
  116. package/oauth-tokens.js +3 -4
  117. package/package.json +6 -3
  118. package/qix.d.ts +46 -2
  119. package/qix.js +2 -3
  120. package/questions.d.ts +53 -110
  121. package/questions.js +3 -4
  122. package/quotas.d.ts +13 -26
  123. package/quotas.js +3 -4
  124. package/reload-tasks.d.ts +23 -46
  125. package/reload-tasks.js +3 -4
  126. package/reloads.d.ts +26 -52
  127. package/reloads.js +3 -4
  128. package/report-templates.d.ts +30 -63
  129. package/report-templates.js +3 -4
  130. package/reports.d.ts +111 -238
  131. package/reports.js +3 -4
  132. package/roles.d.ts +36 -77
  133. package/roles.js +3 -4
  134. package/sharing-tasks.d.ts +201 -427
  135. package/sharing-tasks.js +3 -4
  136. package/spaces.d.ts +71 -157
  137. package/spaces.js +3 -4
  138. package/tasks.d.ts +76 -164
  139. package/tasks.js +3 -4
  140. package/temp-contents.d.ts +17 -35
  141. package/temp-contents.js +3 -4
  142. package/tenant-settings.d.ts +298 -0
  143. package/tenant-settings.js +107 -0
  144. package/tenants.d.ts +31 -67
  145. package/tenants.js +3 -4
  146. package/themes.d.ts +27 -55
  147. package/themes.js +3 -4
  148. package/transports.d.ts +46 -106
  149. package/transports.js +3 -4
  150. package/ui-config.d.ts +8 -17
  151. package/ui-config.js +3 -4
  152. package/users.d.ts +80 -170
  153. package/users.js +3 -4
  154. package/web-integrations.d.ts +38 -83
  155. package/web-integrations.js +3 -4
  156. package/web-notifications.d.ts +14 -29
  157. package/web-notifications.js +3 -4
  158. package/webhooks.d.ts +77 -162
  159. package/webhooks.js +3 -4
  160. package/chunks/auth-XusKk8IA.js +0 -32
  161. package/chunks/auth-types-YrlH_R9f.d.ts +0 -416
  162. package/chunks/auth-types-h43TVDpB.js +0 -24
  163. package/chunks/global-types-CEVAJebk.js +0 -1
  164. /package/chunks/{dist-n3iOVn1W.js → dist-DR758NU5.js} +0 -0
  165. /package/chunks/{invoke-fetch-C1Z0RJYU.d.ts → invoke-fetch-DFc3yzaj.d.ts} +0 -0
  166. /package/chunks/{utils-vv-xFm06.js → utils-jkpLuYZR.js} +0 -0
  167. /package/chunks/{websocket-errors-CRTDTtBL.js → websocket-errors-C5U1tba-.js} +0 -0
@@ -1,416 +0,0 @@
1
- //#region src/invoke-fetch/invoke-fetch-types.d.ts
2
- /** The typical base return type of a fetch call */
3
- type InvokeFetchResponse = {
4
- status: number;
5
- headers: Headers;
6
- data: unknown;
7
- prev?: () => Promise<InvokeFetchResponse>;
8
- next?: () => Promise<InvokeFetchResponse>;
9
- };
10
- /** An entry in the cache for one specific cacheKey */
11
- type CacheEntry = {
12
- lastPulled: number;
13
- /** last time the cache was accessed and prevented an api call */
14
- lastHit: Date | null;
15
- /** number of times the cache has been hit by a client */
16
- hitCount: number;
17
- /** the url path of the cache hit. Useful to determine how many different qmfes are accessing the cache key */
18
- accessedPaths: Set<string>;
19
- value: Promise<unknown>;
20
- };
21
- /** Part of the ApiOptions type that includes caching-related properties */
22
- type CacheOptions = {
23
- noCache?: boolean;
24
- maxCacheAge?: number;
25
- useCacheIfAfter?: Date;
26
- };
27
- /** Additional options for an api call done with invoke-fetch */
28
- type ApiCallOptions = {
29
- /** Additional headers to pass on to the request. */
30
- headers?: Record<string, string>;
31
- /** if set to true the call will not use a cached result */
32
- noCache?: boolean;
33
- /**
34
- * Only used cached results whose age in milliseconds are less than that or equal to `maxCacheAge`.
35
- */
36
- maxCacheAge?: number | undefined;
37
- /**
38
- * Only results cached on or after the `ifCachedSince` timestamp are used.
39
- */
40
- useCacheIfAfter?: Date;
41
- /**
42
- * Specify the host config if the api call is a cross-domain request. Typically used in embedding and mashups
43
- */
44
- hostConfig?: HostConfig;
45
- /**
46
- * Set the amount of time to wait for a response.
47
- * If the timeout is exceeded the request is aborted.
48
- * If both timeoutMs and signal is present, timeoutMs will have no effect, as
49
- * there is already an abort-signal specified.
50
- */
51
- timeoutMs?: number;
52
- /**
53
- * An abort-signal lets you abort an ongoing fetch request. The abort-signal is created
54
- * by taking the .signal property of an AbortController.
55
- */
56
- signal?: AbortSignal;
57
- /**
58
- * Ensure that the request is kept alive even if the page that initiated it is unloaded
59
- * before the request is completed.
60
- */
61
- keepalive?: boolean;
62
- /**
63
- * Options for progress-reporting. Specify any combination of the callbacks `onUpload`
64
- * and `onDownload`. Progress will be reported continuously.
65
- */
66
- progress?: ProgressOptions;
67
- };
68
- type InvokeFetchProperties = {
69
- /** http method */
70
- method: string;
71
- /** data passed to api call */
72
- body?: unknown;
73
- /** additional api call options */
74
- options?: ApiCallOptions;
75
- /** override default RequestInit options */
76
- requestInitOverrides?: RequestInit;
77
- /** path to api endpoint, can be in a template format e.g. /api/v1/space/{spaceId} */
78
- pathTemplate: string;
79
- /** path variables to be used in the path template */
80
- pathVariables?: Record<string, string>;
81
- /** additional query to url */
82
- query?: Record<string, unknown>;
83
- /** specify what content-type to send, if omitted "application/json" is assumed */
84
- contentType?: string;
85
- /** override the default user-agent with this value. This will also override any browser's UA. */
86
- userAgent?: string;
87
- };
88
- type DownloadableBlob = Blob & {
89
- /** download the blob in a using the specified filename */
90
- download: (filename: string) => Promise<void>;
91
- };
92
- /** The callback options for reporting progress. */
93
- type ProgressOptions = {
94
- /** upload callback, called repeatedly when upload-progress is available */
95
- onUpload?: (event: PartialProgressEvent) => void;
96
- /** download callback, called repeatedly when upload-progress is available */
97
- onDownload?: (event: PartialProgressEvent) => void;
98
- };
99
- /** Represents the current upload or download progress a API-call.
100
- *
101
- * It contains the number of loaded bytes and, if computable, the total payload size.
102
- * If the total size cannot be determined, `total` will be undefined.
103
- *
104
- *
105
- * See MDN: {@link https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent}
106
- */
107
- type PartialProgressEvent = {
108
- /** Number of bytes currently loaded. */
109
- loaded: ProgressEvent["loaded"];
110
- /** The total size of the payload, if computable. */
111
- total?: ProgressEvent["total"];
112
- };
113
- declare const _default: {};
114
- //#endregion
115
- //#region src/platform/platform-types.d.ts
116
-
117
- /** Data is accessible on `/resources/autogenerated/product-info.json` on any deployment */
118
- type ProductInfo = {
119
- composition?: {
120
- contentHash?: string;
121
- senseId: string;
122
- releaseLabel?: string;
123
- originalClassName?: string;
124
- productName?: string;
125
- version?: string;
126
- copyrightYearRange?: string;
127
- deploymentEnvironment?: string;
128
- deploymentType?: "qliksenseserver" | "qliksensedesktop" | "QlikSenseMobile" | "qlikcloudservices" | "cloud-console";
129
- provider?: string;
130
- };
131
- externalUrls: {
132
- contentHash?: string;
133
- originalClassName?: string;
134
- personalUpgradeBase: string;
135
- cloudUploadUrl: string;
136
- serverHelpBaseUrl: string;
137
- personalHelpBaseUrl: string;
138
- personalUpgradeUrl: string;
139
- qlikWebPageUrl: string;
140
- cloudBaseUrl: string;
141
- };
142
- };
143
- //#endregion
144
- //#region src/global-types.d.ts
145
- /** ApiKey Auth Configuration for a HostConfig */
146
- type ApiKeyAuthConfig = {
147
- /** api key created by a developer role on a tenant */
148
- apiKey: string;
149
- };
150
- /** Cookie Auth Configuration for a HostConfig */
151
- type CookieAuthConfig = {
152
- /** Web Integration Id created by tenant admin */
153
- webIntegrationId?: string;
154
- /** If set to false the `credentials` property will be set to same-origin */
155
- crossSiteCookies?: boolean;
156
- /** Set to true if browser is running in anonymous mode, which is detected if there's a eac token in the url */
157
- anonymousMode?: boolean;
158
- };
159
- /** WindowsCookie Auth Configuration for a HostConfig */
160
- type WindowsCookieAuthConfig = {
161
- /** location of the login page, auth module will redirect to this page when an unauthenticated api call is made. Not applicable in Node.js environments. */
162
- loginUri?: string;
163
- /** If set to false the `credentials` property will be set to same-origin. Not applicable in Node.js environments. */
164
- crossSiteCookies?: boolean;
165
- /**
166
- * A custom function that can be used to fetch a windows auth jwt.
167
- * The jwt will be exchanged for a session cookie.
168
- * In the browser this should typically fetch the jwt from a custom backend service.
169
- * Mandatory in Node.js environments.
170
- */
171
- getAccessToken?: string | (() => Promise<string>);
172
- };
173
- type PerformInteractiveLoginFn = (props: {
174
- /**
175
- * Returns the url to the login page. The redirectUri parameter property is used to tell the login page where to redirect the browser after the login has succeeded.
176
- * Note that the redirectUri needs to be registered in the oauth configuration.
177
- */
178
- getLoginUrl: (props: {
179
- redirectUri: string;
180
- }) => Promise<string>;
181
- }) => Promise<{
182
- code: string;
183
- state: string;
184
- } | string>;
185
- /** OAuth2 Auth Configuration for a HostConfig */
186
- type Oauth2AuthConfig = {
187
- /** client id of oauth client created by tenant admin */
188
- clientId: string;
189
- /** client id of oauth client created by tenant admin */
190
- clientSecret?: string;
191
- /** location of where the client should be redirected after getting hold of the access token */
192
- redirectUri?: string;
193
- /** If set, store the access token in either local or session storage, otherwise not stored */
194
- accessTokenStorage?: "session" | "local";
195
- /** A string with comma separated values of oauth2 scopes https://oauth.net/2/scope defaults to "user_default" */
196
- scope?: string;
197
- /**
198
- * A custom function that can be used on the client side to fetch an oauth access token from a custom backend.
199
- * Typically used in oauth impersonation.
200
- */
201
- getAccessToken?: string | (() => Promise<string>);
202
- /**
203
- * If set to true no caching or storing of the access token is done.
204
- * This is typically used on the serverside with impersonation so that a client always gets a fresh token.
205
- * Caching is in that case handled on the client side.
206
- */
207
- noCache?: boolean;
208
- /**
209
- * Can be used on the serverside to impersonate a specific user when authenticating using a client secret.
210
- * Typically used together with the `noCache` since caching is done on the browser side.
211
- */
212
- subject?: string;
213
- /**
214
- * Can be used on the serverside to impersonate a specific user when authenticating using a client secret.
215
- * Typically used together with the `noCache` since caching is done on the browser side.
216
- */
217
- userId?: string;
218
- /**
219
- * Can be used to customize the login flow, for instance if the login page should be shown in another browser tab/window.
220
- * The function is asynchronous and when the loging flow is finished it should return the code and state provided in the
221
- * query of the oauth redirect callback. The code and state can either be provided as an object or as the entire callback url.
222
- */
223
- performInteractiveLogin?: PerformInteractiveLoginFn;
224
- };
225
- /** Anonymous Auth Configuration for a HostConfig - used when embedding UI's linked to an anonymous tenant/app */
226
- type AnonymousAuthConfig = {
227
- /**
228
- * Experimental and unsupported
229
- */
230
- accessCode: string;
231
- /** client id of oauth client created by tenant admin */
232
- clientId: string;
233
- };
234
- /** Used to reference a registered host config as a single string */
235
- type ReferenceConfig = {
236
- /** The name of the registered host config to reference */
237
- reference: string;
238
- };
239
- declare global {
240
- /**
241
- * QlikAuthModules is a global interface that can be extended to add custom auth modules.
242
- */
243
- interface QlikAuthModules {
244
- apikey: {
245
- config: ApiKeyAuthConfig;
246
- };
247
- oauth2: {
248
- config: Oauth2AuthConfig;
249
- };
250
- cookie: {
251
- config: CookieAuthConfig;
252
- };
253
- anonymous: {
254
- config: AnonymousAuthConfig;
255
- };
256
- windowscookie: {
257
- config: WindowsCookieAuthConfig;
258
- };
259
- reference: {
260
- config: ReferenceConfig;
261
- };
262
- none: {
263
- config: object;
264
- };
265
- noauth: {
266
- config: object;
267
- };
268
- }
269
- /**
270
- * Property set on the window when the user is logging out.
271
- * This prevents unnecessary redirect calls when pending requests
272
- * resolved.
273
- */
274
- var loggingOut: boolean;
275
- /**
276
- * Attaching cache to the window so it can be viewed from the devtool.
277
- * Do not use this for anything!
278
- */
279
- var __API_CACHE__DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Record<string, Record<string, CacheEntry> | undefined>;
280
- /**
281
- * QlikMain object
282
- */
283
- var QlikMain: {
284
- resourceNeedsCredentials: (resourcesUrl: string) => boolean;
285
- applyFeatureOverrides: (featureFlags: Record<string, boolean>) => Promise<void>;
286
- PRODUCT_INFO?: ProductInfo;
287
- REGION?: string;
288
- ENVIRONMENT?: string;
289
- INTERNAL__DO_NOT_USE: Record<string, unknown>;
290
- } | undefined;
291
- }
292
- //#endregion
293
- //#region src/auth/auth-types.d.ts
294
- /** Credentials setting for http requests */
295
- type Credentials = "include" | "same-origin" | "omit";
296
- /** Props for function getRestCallAuthParams */
297
- type GetRestCallAuthParamsProps<A extends AuthType = AuthType> = {
298
- hostConfig: HostConfig<A>;
299
- /** The HTTP method in the outgoing REST call */
300
- method: string;
301
- };
302
- /** Http request parameters for auth to use when making a rest call based on a host config */
303
- type RestCallAuthParams = {
304
- headers: Record<string, string>;
305
- queryParams: Record<string, string>;
306
- credentials: Credentials;
307
- };
308
- /** Props for function getWebsocketAuthParams */
309
- type GetWebSocketAuthParamsProps<A extends AuthType = AuthType> = {
310
- hostConfig: HostConfig<A>;
311
- };
312
- /** Websocket auth parameters to use when setting up a websocket based on a host config */
313
- type WebSocketAuthParams = {
314
- /** Note that headers are only applied in NodeJS environments and NOT in the browser */
315
- headers?: Record<string, string>;
316
- queryParams?: Record<string, string>;
317
- };
318
- /** Props for function getWebResourceAuthParams */
319
- type GetWebResourceAuthParamsProps<A extends AuthType = AuthType> = {
320
- hostConfig: HostConfig<A>;
321
- };
322
- /** Web resource auth parameters to use when fetching a web resource with a host config */
323
- type WebResourceAuthParams = {
324
- queryParams: Record<string, string>;
325
- };
326
- type GetRemoteAuthDataProps<A extends AuthType = AuthType> = {
327
- hostConfig: HostConfig<A>;
328
- queryParams?: Record<string, string>;
329
- };
330
- /** Props for function handleAuthenticationError */
331
- type HandleAuthenticationErrorProps<A extends AuthType = AuthType> = {
332
- /** host config for connecting to a host */
333
- hostConfig: HostConfig<A>;
334
- /** HTTP status of the response */
335
- status: number;
336
- /** Body of the error response */
337
- errorBody?: Record<string, unknown>;
338
- /** HTTP response headers */
339
- headers: Headers;
340
- /** Set to true if it is possible to perform a retry. This will be true for the first call, and false if the call is actually a retry */
341
- canRetry: boolean;
342
- };
343
- /** Action to take when error occurs during authentication */
344
- type AuthenticationErrorAction = {
345
- /**
346
- * If set to true the request will be retried and its AuthParams will be fetched again
347
- */
348
- retry?: boolean;
349
- /**
350
- * Set to true to prevent the api call result promise from ever resolving.
351
- * Typically used when redirecting the window to a login page to prevent
352
- * transient errors from happening in the page while the browser is loading the login page.
353
- */
354
- preventDefault?: boolean;
355
- };
356
- /** A typed string array with extracted required properties from a type */
357
- type RequiredKeys<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? never : K }[keyof T];
358
- /** A typed string array with extracted optional properties from a type */
359
- type OptionalKeys<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? K : never }[keyof T];
360
- /** An authentication module for a specific authentication format, like oauth, cookies etc */
361
- type AuthModule<A extends AuthType = AuthType> = {
362
- /** Properties required for this auth module */
363
- requiredProps?: RequiredKeys<HostConfig<A>>[];
364
- /** Properties that are optional for this auth module */
365
- optionalProps?: OptionalKeys<HostConfig<A>>[];
366
- /** Get auth params for rest api calls */
367
- getRestCallAuthParams: (props: GetRestCallAuthParamsProps<A>) => Promise<RestCallAuthParams>;
368
- /** Get auth params for websocket api calls */
369
- getWebSocketAuthParams: (props: GetWebSocketAuthParamsProps<A>) => Promise<WebSocketAuthParams>;
370
- /** Get auth params for web resource request */
371
- getWebResourceAuthParams?: (props: GetWebResourceAuthParamsProps<A>) => Promise<WebResourceAuthParams>;
372
- /** Callback for when auth error happens */
373
- handleAuthenticationError: (props: HandleAuthenticationErrorProps<A>) => Promise<AuthenticationErrorAction>;
374
- /** Runtime check for validating host config */
375
- validateHostConfig?: (hostConfig: Record<string, unknown>) => boolean;
376
- };
377
- /** Valid strings for known authentication types */
378
- type AuthType = keyof QlikAuthModules;
379
- /** Configuration object for connecting and authenticating with Qlik platform(s) */
380
- type HostConfig<A extends AuthType = AuthType> = { [K in keyof QlikAuthModules]: QlikAuthModuleConfigUnion<K> & HostConfigCommon }[A];
381
- type QlikAuthModuleConfigUnion<K$1 extends keyof QlikAuthModules> = (K$1 extends keyof ImplicitQlikAuthModules ? {
382
- authType?: K$1;
383
- } : {
384
- authType: K$1;
385
- }) & QlikAuthModules[K$1]["config"];
386
- type HostConfigCommon = {
387
- /** The URL to the cloud tenant or windows server. If scheme is excluded https is used. May include a virtual proxy prefix on windows. Any trailing slashes are stripped. */
388
- host?: string;
389
- autoRedirect?: boolean;
390
- authRedirectUserConfirmation?: () => Promise<void>;
391
- /**
392
- * Optional parameter that can be used to point to a Qlik Cloud tenant domain from which the embed runtime should be loaded. If omitted the host parameter will be used.
393
- */
394
- embedRuntimeUrl?: string;
395
- onAuthFailed?: (props: {
396
- message: string;
397
- }) => unknown;
398
- };
399
- /**
400
- * These properties are always allowed in the host config, even if they are not defined in the HostConfig interface
401
- * for the specific auth module.
402
- */
403
- declare const hostConfigCommonProperties: (keyof HostConfig)[];
404
- /** The keys in this interface are used to determine what auth types that are allowed to be set to undefined */
405
- interface ImplicitQlikAuthModules {
406
- apikey: object;
407
- oauth2: object;
408
- cookie: object;
409
- windowscookie: object;
410
- reference: object;
411
- anonymous: object;
412
- }
413
- type AuthTypeThatCanBeOmitted = keyof ImplicitQlikAuthModules;
414
- declare const authTypesThatCanBeOmitted: AuthTypeThatCanBeOmitted[];
415
- //#endregion
416
- export { InvokeFetchProperties as C, _default as D, ProgressOptions as E, DownloadableBlob as S, PartialProgressEvent as T, hostConfigCommonProperties as _, Credentials as a, CacheEntry as b, GetWebResourceAuthParamsProps as c, HostConfig as d, HostConfigCommon as f, authTypesThatCanBeOmitted as g, WebSocketAuthParams as h, AuthenticationErrorAction as i, GetWebSocketAuthParamsProps as l, WebResourceAuthParams as m, AuthType as n, GetRemoteAuthDataProps as o, RestCallAuthParams as p, AuthTypeThatCanBeOmitted as r, GetRestCallAuthParamsProps as s, AuthModule as t, HandleAuthenticationErrorProps as u, PerformInteractiveLoginFn as v, InvokeFetchResponse as w, CacheOptions as x, ApiCallOptions as y };
@@ -1,24 +0,0 @@
1
- //#region src/auth/auth-types.ts
2
- /**
3
- * These properties are always allowed in the host config, even if they are not defined in the HostConfig interface
4
- * for the specific auth module.
5
- */
6
- const hostConfigCommonProperties = [
7
- "authType",
8
- "autoRedirect",
9
- "authRedirectUserConfirmation",
10
- "embedRuntimeUrl",
11
- "host",
12
- "onAuthFailed"
13
- ];
14
- const authTypesThatCanBeOmitted = [
15
- "apikey",
16
- "oauth2",
17
- "cookie",
18
- "windowscookie",
19
- "reference",
20
- "anonymous"
21
- ];
22
-
23
- //#endregion
24
- export { hostConfigCommonProperties as n, authTypesThatCanBeOmitted as t };
@@ -1 +0,0 @@
1
- export { };
File without changes
File without changes