@qlik/api 1.32.0 → 1.34.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 +13 -12
- package/api-keys.js +64 -50
- package/apps.d.ts +56 -56
- package/apps.js +392 -304
- package/assistants.d.ts +34 -34
- package/assistants.js +257 -201
- package/audits.d.ts +10 -10
- package/audits.js +48 -36
- package/{auth-types-DqfMuSRX.d.ts → auth-types-Cj5bM3Yk.d.ts} +29 -9
- package/auth.d.ts +17 -4
- package/auth.js +4 -2
- package/automation-connections.d.ts +12 -12
- package/automation-connections.js +75 -59
- package/automations.d.ts +29 -29
- package/automations.js +159 -123
- package/automl-deployments.d.ts +4 -4
- package/automl-deployments.js +14 -12
- package/automl-predictions.d.ts +13 -13
- package/automl-predictions.js +56 -44
- package/brands.d.ts +18 -18
- package/brands.js +107 -83
- package/chunks/{LY7RP2HA.js → 4V6T7Y4L.js} +26 -8
- package/chunks/{RCLKKVYB.js → 6C6WMV7V.js} +9 -2
- package/chunks/{VVD2DPKQ.js → 6WNP7HZQ.js} +3 -3
- package/chunks/7MMXU6EL.js +86 -0
- package/chunks/{6ZONDHRN.js → EEE42MLS.js} +11 -4
- package/chunks/{FKDGGR2O.js → I2HA7WJB.js} +1362 -1366
- package/chunks/{M64RLKVG.js → M7AINAXZ.js} +7 -5
- package/chunks/{LTNGXTXG.js → QAOVZB27.js} +3 -3
- package/chunks/{YTT2FEVE.js → QZKOA6VR.js} +1 -1
- package/chunks/{UZTIZ4H5.js → VUYZKBT5.js} +74 -74
- package/chunks/{3RGGGGAR.js → ZCTVPXGO.js} +1 -1
- package/collections.d.ts +16 -15
- package/collections.js +98 -76
- package/conditions.d.ts +13 -13
- package/conditions.js +97 -75
- package/consumption.d.ts +4 -4
- package/consumption.js +11 -9
- package/csp-origins.d.ts +9 -9
- package/csp-origins.js +53 -41
- package/csrf-token.d.ts +3 -3
- package/csrf-token.js +10 -8
- package/data-alerts.d.ts +22 -22
- package/data-alerts.js +139 -107
- package/data-assets.d.ts +8 -8
- package/data-assets.js +50 -40
- package/data-connections.d.ts +16 -16
- package/data-connections.js +87 -69
- package/data-credentials.d.ts +11 -11
- package/data-credentials.js +52 -42
- package/data-files.d.ts +18 -18
- package/data-files.js +107 -83
- package/data-qualities.d.ts +6 -6
- package/data-qualities.js +28 -22
- package/data-sets.d.ts +10 -10
- package/data-sets.js +59 -47
- package/data-sources.d.ts +7 -7
- package/data-sources.js +28 -22
- package/data-stores.d.ts +16 -16
- package/data-stores.js +92 -72
- package/dcaas.d.ts +6 -6
- package/dcaas.js +28 -22
- package/di-projects.d.ts +22 -22
- package/di-projects.js +148 -116
- package/direct-access-agents.d.ts +328 -0
- package/direct-access-agents.js +108 -0
- package/encryption.d.ts +12 -12
- package/encryption.js +82 -62
- package/extensions.d.ts +11 -11
- package/extensions.js +61 -47
- package/glossaries.d.ts +33 -33
- package/glossaries.js +221 -173
- package/groups.d.ts +12 -12
- package/groups.js +72 -56
- package/identity-providers.d.ts +11 -11
- package/identity-providers.js +67 -51
- package/index.d.ts +9 -4
- package/index.js +102 -67
- package/interceptors.d.ts +9 -2
- package/interceptors.js +2 -2
- package/invoke-fetch-types-BYCD4pc9.d.ts +98 -0
- package/items.d.ts +14 -13
- package/items.js +71 -55
- package/knowledgebases.d.ts +23 -23
- package/knowledgebases.js +153 -119
- package/licenses.d.ts +16 -14
- package/licenses.js +76 -58
- package/lineage-graphs.d.ts +17 -17
- package/lineage-graphs.js +76 -60
- package/ml.d.ts +238 -60
- package/ml.js +391 -286
- package/notes.d.ts +4 -4
- package/notes.js +19 -15
- package/notifications.d.ts +4 -4
- package/notifications.js +11 -9
- package/oauth-clients.d.ts +14 -14
- package/oauth-clients.js +96 -74
- package/oauth-tokens.d.ts +5 -5
- package/oauth-tokens.js +19 -15
- package/package.json +8 -6
- package/qix.d.ts +145 -4
- package/qix.js +2 -2
- package/questions.d.ts +5 -5
- package/questions.js +22 -18
- package/quotas.d.ts +6 -6
- package/quotas.js +20 -16
- package/reload-tasks.d.ts +8 -8
- package/reload-tasks.js +46 -36
- package/reloads.d.ts +7 -7
- package/reloads.js +36 -28
- package/report-templates.d.ts +10 -10
- package/report-templates.js +64 -50
- package/reports.d.ts +4 -4
- package/reports.js +20 -16
- package/roles.d.ts +8 -8
- package/roles.js +46 -36
- package/sharing-tasks.d.ts +14 -14
- package/sharing-tasks.js +89 -69
- package/spaces.d.ts +27 -23
- package/spaces.js +153 -119
- package/tasks.d.ts +17 -17
- package/tasks.js +90 -70
- package/temp-contents.d.ts +7 -7
- package/temp-contents.js +30 -24
- package/tenants.d.ts +8 -8
- package/tenants.js +57 -45
- package/themes.d.ts +11 -11
- package/themes.js +61 -47
- package/transports.d.ts +8 -8
- package/transports.js +49 -37
- package/ui-config.d.ts +9 -9
- package/ui-config.js +61 -47
- package/users.d.ts +15 -15
- package/users.js +81 -63
- package/web-integrations.d.ts +8 -8
- package/web-integrations.js +46 -36
- package/web-notifications.d.ts +9 -9
- package/web-notifications.js +53 -41
- package/webhooks.d.ts +14 -14
- package/webhooks.js +88 -68
- package/chunks/2ZQ3ZX7F.js +0 -33
- package/invoke-fetch-types-Cq7bjkqn.d.ts +0 -243
package/brands.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as ApiCallOptions, D as DownloadableBlob } from './invoke-fetch-types-
|
|
2
|
-
import './auth-types-
|
|
1
|
+
import { A as ApiCallOptions, D as DownloadableBlob } from './invoke-fetch-types-BYCD4pc9.js';
|
|
2
|
+
import './auth-types-Cj5bM3Yk.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* A brand is a collection of assets for applying custom branding. Only a single brand can be active in a tenant.
|
|
@@ -105,7 +105,7 @@ type NoActiveBrand = unknown;
|
|
|
105
105
|
* @param query an object with query parameters
|
|
106
106
|
* @throws GetBrandsHttpError
|
|
107
107
|
*/
|
|
108
|
-
declare
|
|
108
|
+
declare function getBrands(query: {
|
|
109
109
|
/** Cursor to previous. */
|
|
110
110
|
endingBefore?: string;
|
|
111
111
|
/** Maximum number of brands to retrieve. */
|
|
@@ -114,7 +114,7 @@ declare const getBrands: (query: {
|
|
|
114
114
|
sort?: "id" | "+id" | "-id" | "createdAt" | "+createdAt" | "-createdAt" | "updatedAt" | "+updatedAt" | "-updatedAt";
|
|
115
115
|
/** Cursor to the next page. */
|
|
116
116
|
startingAfter?: string;
|
|
117
|
-
}, options?: ApiCallOptions)
|
|
117
|
+
}, options?: ApiCallOptions): Promise<GetBrandsHttpResponse>;
|
|
118
118
|
type GetBrandsHttpResponse = {
|
|
119
119
|
data: BrandsList;
|
|
120
120
|
headers: Headers;
|
|
@@ -149,7 +149,7 @@ type GetBrands500HttpError = {
|
|
|
149
149
|
* @param body an object with the body content
|
|
150
150
|
* @throws CreateBrandHttpError
|
|
151
151
|
*/
|
|
152
|
-
declare
|
|
152
|
+
declare function createBrand(body: {
|
|
153
153
|
/** Description of the brand. */
|
|
154
154
|
description?: string;
|
|
155
155
|
/** The path and name of a properly formatted ICO file. Maximum size is 100 KB. */
|
|
@@ -160,7 +160,7 @@ declare const createBrand: (body: {
|
|
|
160
160
|
name: string;
|
|
161
161
|
/** The path and name of a JSON file to define brand style settings. Maximum size is 100 KB. This property is not currently operational. */
|
|
162
162
|
styles?: BodyInit;
|
|
163
|
-
}, options?: ApiCallOptions)
|
|
163
|
+
}, options?: ApiCallOptions): Promise<CreateBrandHttpResponse>;
|
|
164
164
|
type CreateBrandHttpResponse = {
|
|
165
165
|
data: Brand;
|
|
166
166
|
headers: Headers;
|
|
@@ -192,7 +192,7 @@ type CreateBrand500HttpError = {
|
|
|
192
192
|
*
|
|
193
193
|
* @throws GetActiveBrandHttpError
|
|
194
194
|
*/
|
|
195
|
-
declare
|
|
195
|
+
declare function getActiveBrand(options?: ApiCallOptions): Promise<GetActiveBrandHttpResponse>;
|
|
196
196
|
type GetActiveBrandHttpResponse = {
|
|
197
197
|
data: Brand | NoActiveBrand;
|
|
198
198
|
headers: Headers;
|
|
@@ -209,7 +209,7 @@ type GetActiveBrandHttpError = {
|
|
|
209
209
|
* @param brandId The brand's unique identifier.
|
|
210
210
|
* @throws DeleteBrandHttpError
|
|
211
211
|
*/
|
|
212
|
-
declare
|
|
212
|
+
declare function deleteBrand(brandId: string, options?: ApiCallOptions): Promise<DeleteBrandHttpResponse>;
|
|
213
213
|
type DeleteBrandHttpResponse = {
|
|
214
214
|
data: void;
|
|
215
215
|
headers: Headers;
|
|
@@ -247,7 +247,7 @@ type DeleteBrand500HttpError = {
|
|
|
247
247
|
* @param brandId The brand's unique identifier.
|
|
248
248
|
* @throws GetBrandHttpError
|
|
249
249
|
*/
|
|
250
|
-
declare
|
|
250
|
+
declare function getBrand(brandId: string, options?: ApiCallOptions): Promise<GetBrandHttpResponse>;
|
|
251
251
|
type GetBrandHttpResponse = {
|
|
252
252
|
data: Brand;
|
|
253
253
|
headers: Headers;
|
|
@@ -286,7 +286,7 @@ type GetBrand500HttpError = {
|
|
|
286
286
|
* @param body an object with the body content
|
|
287
287
|
* @throws PatchBrandHttpError
|
|
288
288
|
*/
|
|
289
|
-
declare
|
|
289
|
+
declare function patchBrand(brandId: string, body: BrandPatch[], options?: ApiCallOptions): Promise<PatchBrandHttpResponse>;
|
|
290
290
|
type PatchBrandHttpResponse = {
|
|
291
291
|
data: void;
|
|
292
292
|
headers: Headers;
|
|
@@ -325,7 +325,7 @@ type PatchBrand500HttpError = {
|
|
|
325
325
|
* @param body an object with the body content
|
|
326
326
|
* @throws ActivateBrandHttpError
|
|
327
327
|
*/
|
|
328
|
-
declare
|
|
328
|
+
declare function activateBrand(brandId: string, body: unknown, options?: ApiCallOptions): Promise<ActivateBrandHttpResponse>;
|
|
329
329
|
type ActivateBrandHttpResponse = {
|
|
330
330
|
data: Brand;
|
|
331
331
|
headers: Headers;
|
|
@@ -364,7 +364,7 @@ type ActivateBrand500HttpError = {
|
|
|
364
364
|
* @param body an object with the body content
|
|
365
365
|
* @throws DeactivateBrandHttpError
|
|
366
366
|
*/
|
|
367
|
-
declare
|
|
367
|
+
declare function deactivateBrand(brandId: string, body: unknown, options?: ApiCallOptions): Promise<DeactivateBrandHttpResponse>;
|
|
368
368
|
type DeactivateBrandHttpResponse = {
|
|
369
369
|
data: Brand;
|
|
370
370
|
headers: Headers;
|
|
@@ -403,7 +403,7 @@ type DeactivateBrand500HttpError = {
|
|
|
403
403
|
* @param brandFileId The unique identifier of a file within a brand.
|
|
404
404
|
* @throws DeleteBrandFileHttpError
|
|
405
405
|
*/
|
|
406
|
-
declare
|
|
406
|
+
declare function deleteBrandFile(brandId: string, brandFileId: string, options?: ApiCallOptions): Promise<DeleteBrandFileHttpResponse>;
|
|
407
407
|
type DeleteBrandFileHttpResponse = {
|
|
408
408
|
data: void;
|
|
409
409
|
headers: Headers;
|
|
@@ -442,7 +442,7 @@ type DeleteBrandFile500HttpError = {
|
|
|
442
442
|
* @param brandFileId The unique identifier of a file within a brand.
|
|
443
443
|
* @throws GetBrandFileHttpError
|
|
444
444
|
*/
|
|
445
|
-
declare
|
|
445
|
+
declare function getBrandFile(brandId: string, brandFileId: string, options?: ApiCallOptions): Promise<GetBrandFileHttpResponse>;
|
|
446
446
|
type GetBrandFileHttpResponse = {
|
|
447
447
|
data: DownloadableBlob;
|
|
448
448
|
headers: Headers;
|
|
@@ -482,10 +482,10 @@ type GetBrandFile500HttpError = {
|
|
|
482
482
|
* @param body an object with the body content
|
|
483
483
|
* @throws CreateBrandFileHttpError
|
|
484
484
|
*/
|
|
485
|
-
declare
|
|
485
|
+
declare function createBrandFile(brandId: string, brandFileId: string, body: {
|
|
486
486
|
/** The path and name of a file to upload. */
|
|
487
487
|
file?: BodyInit;
|
|
488
|
-
}, options?: ApiCallOptions)
|
|
488
|
+
}, options?: ApiCallOptions): Promise<CreateBrandFileHttpResponse>;
|
|
489
489
|
type CreateBrandFileHttpResponse = {
|
|
490
490
|
data: BrandFile;
|
|
491
491
|
headers: Headers;
|
|
@@ -525,10 +525,10 @@ type CreateBrandFile500HttpError = {
|
|
|
525
525
|
* @param body an object with the body content
|
|
526
526
|
* @throws UpdateBrandFileHttpError
|
|
527
527
|
*/
|
|
528
|
-
declare
|
|
528
|
+
declare function updateBrandFile(brandId: string, brandFileId: string, body: {
|
|
529
529
|
/** A file to upload. */
|
|
530
530
|
file?: BodyInit;
|
|
531
|
-
}, options?: ApiCallOptions)
|
|
531
|
+
}, options?: ApiCallOptions): Promise<UpdateBrandFileHttpResponse>;
|
|
532
532
|
type UpdateBrandFileHttpResponse = {
|
|
533
533
|
data: BrandFile;
|
|
534
534
|
headers: Headers;
|
package/brands.js
CHANGED
|
@@ -1,91 +1,115 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearApiCache,
|
|
3
3
|
invokeFetch
|
|
4
|
-
} from "./chunks/
|
|
5
|
-
import "./chunks/
|
|
6
|
-
import "./chunks/
|
|
4
|
+
} from "./chunks/6WNP7HZQ.js";
|
|
5
|
+
import "./chunks/QAOVZB27.js";
|
|
6
|
+
import "./chunks/7MMXU6EL.js";
|
|
7
7
|
|
|
8
8
|
// src/public/rest/brands.ts
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
9
|
+
async function getBrands(query, options) {
|
|
10
|
+
return invokeFetch("brands", {
|
|
11
|
+
method: "get",
|
|
12
|
+
pathTemplate: "/api/v1/brands",
|
|
13
|
+
query,
|
|
14
|
+
options
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
async function createBrand(body, options) {
|
|
18
|
+
return invokeFetch("brands", {
|
|
19
|
+
method: "post",
|
|
20
|
+
pathTemplate: "/api/v1/brands",
|
|
21
|
+
body,
|
|
22
|
+
contentType: "multipart/form-data",
|
|
23
|
+
options
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
async function getActiveBrand(options) {
|
|
27
|
+
return invokeFetch("brands", {
|
|
28
|
+
method: "get",
|
|
29
|
+
pathTemplate: "/api/v1/brands/active",
|
|
30
|
+
options
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
async function deleteBrand(brandId, options) {
|
|
34
|
+
return invokeFetch("brands", {
|
|
35
|
+
method: "delete",
|
|
36
|
+
pathTemplate: "/api/v1/brands/{brand-id}",
|
|
37
|
+
pathVariables: { "brand-id": brandId },
|
|
38
|
+
options
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
async function getBrand(brandId, options) {
|
|
42
|
+
return invokeFetch("brands", {
|
|
43
|
+
method: "get",
|
|
44
|
+
pathTemplate: "/api/v1/brands/{brand-id}",
|
|
45
|
+
pathVariables: { "brand-id": brandId },
|
|
46
|
+
options
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
async function patchBrand(brandId, body, options) {
|
|
50
|
+
return invokeFetch("brands", {
|
|
51
|
+
method: "patch",
|
|
52
|
+
pathTemplate: "/api/v1/brands/{brand-id}",
|
|
53
|
+
pathVariables: { "brand-id": brandId },
|
|
54
|
+
body,
|
|
55
|
+
contentType: "application/json",
|
|
56
|
+
options
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
async function activateBrand(brandId, body, options) {
|
|
60
|
+
return invokeFetch("brands", {
|
|
61
|
+
method: "post",
|
|
62
|
+
pathTemplate: "/api/v1/brands/{brand-id}/actions/activate",
|
|
63
|
+
pathVariables: { "brand-id": brandId },
|
|
64
|
+
body,
|
|
65
|
+
options
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
async function deactivateBrand(brandId, body, options) {
|
|
69
|
+
return invokeFetch("brands", {
|
|
70
|
+
method: "post",
|
|
71
|
+
pathTemplate: "/api/v1/brands/{brand-id}/actions/deactivate",
|
|
72
|
+
pathVariables: { "brand-id": brandId },
|
|
73
|
+
body,
|
|
74
|
+
options
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
async function deleteBrandFile(brandId, brandFileId, options) {
|
|
78
|
+
return invokeFetch("brands", {
|
|
79
|
+
method: "delete",
|
|
80
|
+
pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
|
|
81
|
+
pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
|
|
82
|
+
options
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
async function getBrandFile(brandId, brandFileId, options) {
|
|
86
|
+
return invokeFetch("brands", {
|
|
87
|
+
method: "get",
|
|
88
|
+
pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
|
|
89
|
+
pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
|
|
90
|
+
options
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
async function createBrandFile(brandId, brandFileId, body, options) {
|
|
94
|
+
return invokeFetch("brands", {
|
|
95
|
+
method: "post",
|
|
96
|
+
pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
|
|
97
|
+
pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
|
|
98
|
+
body,
|
|
99
|
+
contentType: "multipart/form-data",
|
|
100
|
+
options
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
async function updateBrandFile(brandId, brandFileId, body, options) {
|
|
104
|
+
return invokeFetch("brands", {
|
|
105
|
+
method: "put",
|
|
106
|
+
pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
|
|
107
|
+
pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
|
|
108
|
+
body,
|
|
109
|
+
contentType: "multipart/form-data",
|
|
110
|
+
options
|
|
111
|
+
});
|
|
112
|
+
}
|
|
89
113
|
function clearCache() {
|
|
90
114
|
return clearApiCache("brands");
|
|
91
115
|
}
|
|
@@ -3,10 +3,8 @@ import {
|
|
|
3
3
|
InvalidAuthTypeError,
|
|
4
4
|
InvalidHostConfigError,
|
|
5
5
|
UnexpectedAuthTypeError,
|
|
6
|
-
auth_default,
|
|
7
|
-
checkForCrossDomainRequest,
|
|
8
6
|
determineAuthType,
|
|
9
|
-
|
|
7
|
+
getDefaultHostConfig,
|
|
10
8
|
getRestCallAuthParams,
|
|
11
9
|
getWebResourceAuthParams,
|
|
12
10
|
getWebSocketAuthParams,
|
|
@@ -21,18 +19,38 @@ import {
|
|
|
21
19
|
toValidLocationUrl,
|
|
22
20
|
toValidWebsocketLocationUrl,
|
|
23
21
|
unregisterHostConfig
|
|
24
|
-
} from "./
|
|
25
|
-
import "./
|
|
26
|
-
import "./
|
|
22
|
+
} from "./I2HA7WJB.js";
|
|
23
|
+
import "./ZCTVPXGO.js";
|
|
24
|
+
import "./7MMXU6EL.js";
|
|
25
|
+
|
|
26
|
+
// src/auth/auth.ts
|
|
27
|
+
var auth = {
|
|
28
|
+
determineAuthType,
|
|
29
|
+
getDefaultHostConfig,
|
|
30
|
+
getRestCallAuthParams,
|
|
31
|
+
getWebResourceAuthParams,
|
|
32
|
+
getWebSocketAuthParams,
|
|
33
|
+
handleAuthenticationError,
|
|
34
|
+
isHostCrossOrigin,
|
|
35
|
+
isWindows,
|
|
36
|
+
logout,
|
|
37
|
+
registerAuthModule,
|
|
38
|
+
registerHostConfig,
|
|
39
|
+
serializeHostConfig,
|
|
40
|
+
setDefaultHostConfig,
|
|
41
|
+
toValidLocationUrl,
|
|
42
|
+
toValidWebsocketLocationUrl,
|
|
43
|
+
unregisterHostConfig
|
|
44
|
+
};
|
|
45
|
+
var auth_default = auth;
|
|
27
46
|
export {
|
|
28
47
|
AuthorizationError,
|
|
29
48
|
InvalidAuthTypeError,
|
|
30
49
|
InvalidHostConfigError,
|
|
31
50
|
UnexpectedAuthTypeError,
|
|
32
|
-
checkForCrossDomainRequest,
|
|
33
51
|
auth_default as default,
|
|
34
52
|
determineAuthType,
|
|
35
|
-
|
|
53
|
+
getDefaultHostConfig,
|
|
36
54
|
getRestCallAuthParams,
|
|
37
55
|
getWebResourceAuthParams,
|
|
38
56
|
getWebSocketAuthParams,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthRuntimeModule
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./QAOVZB27.js";
|
|
4
4
|
|
|
5
5
|
// src/public/auth.ts
|
|
6
6
|
function registerAuthModule(name, authModule) {
|
|
@@ -21,12 +21,18 @@ function unregisterHostConfig(name) {
|
|
|
21
21
|
async function getAccessToken({ hostConfig }) {
|
|
22
22
|
return getAuthRuntimeModule(hostConfig).then((impl) => impl.getAccessToken({ hostConfig }));
|
|
23
23
|
}
|
|
24
|
+
async function getWebResourceAuthParams({
|
|
25
|
+
hostConfig
|
|
26
|
+
}) {
|
|
27
|
+
return getAuthRuntimeModule(hostConfig).then((impl) => impl.getWebResourceAuthParams({ hostConfig }));
|
|
28
|
+
}
|
|
24
29
|
var auth_default = {
|
|
25
30
|
registerAuthModule,
|
|
26
31
|
setDefaultHostConfig,
|
|
27
32
|
registerHostConfig,
|
|
28
33
|
unregisterHostConfig,
|
|
29
|
-
getAccessToken
|
|
34
|
+
getAccessToken,
|
|
35
|
+
getWebResourceAuthParams
|
|
30
36
|
};
|
|
31
37
|
|
|
32
38
|
export {
|
|
@@ -36,5 +42,6 @@ export {
|
|
|
36
42
|
registerHostConfig,
|
|
37
43
|
unregisterHostConfig,
|
|
38
44
|
getAccessToken,
|
|
45
|
+
getWebResourceAuthParams,
|
|
39
46
|
auth_default
|
|
40
47
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getInvokeFetchRuntimeModule
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./QAOVZB27.js";
|
|
4
4
|
import {
|
|
5
5
|
isBrowser
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./7MMXU6EL.js";
|
|
7
7
|
|
|
8
8
|
// src/public/invoke-fetch.ts
|
|
9
|
-
var defaultUserAgent = "qlik-api/1.
|
|
9
|
+
var defaultUserAgent = "qlik-api/1.34.0";
|
|
10
10
|
async function invokeFetch(api, props) {
|
|
11
11
|
const hostConfig = props.options?.hostConfig;
|
|
12
12
|
let userAgent;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// src/utils/utils.ts
|
|
2
|
+
function isBrowser() {
|
|
3
|
+
if (typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.self !== "undefined") {
|
|
4
|
+
return true;
|
|
5
|
+
}
|
|
6
|
+
return false;
|
|
7
|
+
}
|
|
8
|
+
function isNode() {
|
|
9
|
+
if (typeof process !== "undefined" && process.version && process.versions.node) {
|
|
10
|
+
return true;
|
|
11
|
+
}
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
function isPlainObject(value) {
|
|
15
|
+
return typeof value === "object" && value !== null && value.constructor === Object;
|
|
16
|
+
}
|
|
17
|
+
function sortKeys(obj) {
|
|
18
|
+
if (Array.isArray(obj)) {
|
|
19
|
+
return obj.map(sortKeys);
|
|
20
|
+
} else if (isPlainObject(obj)) {
|
|
21
|
+
const sortedObj = {};
|
|
22
|
+
for (const key of Object.keys(obj).sort()) {
|
|
23
|
+
sortedObj[key] = sortKeys(obj[key]);
|
|
24
|
+
}
|
|
25
|
+
return sortedObj;
|
|
26
|
+
}
|
|
27
|
+
return obj;
|
|
28
|
+
}
|
|
29
|
+
function cleanFalsyValues(obj) {
|
|
30
|
+
if (Array.isArray(obj)) {
|
|
31
|
+
return obj.map((item) => typeof item === "object" && item !== null ? cleanFalsyValues(item) : item).filter((item) => {
|
|
32
|
+
if (typeof item === "object" && item !== null) {
|
|
33
|
+
return Object.keys(item).length > 0;
|
|
34
|
+
}
|
|
35
|
+
return item !== null && item !== void 0 && item !== "";
|
|
36
|
+
});
|
|
37
|
+
} else if (typeof obj === "object" && obj !== null) {
|
|
38
|
+
const cleaned = {};
|
|
39
|
+
for (const key of Object.keys(obj)) {
|
|
40
|
+
const value = obj[key];
|
|
41
|
+
switch (typeof value) {
|
|
42
|
+
case "undefined":
|
|
43
|
+
break;
|
|
44
|
+
case "boolean":
|
|
45
|
+
if (value) cleaned[key] = value;
|
|
46
|
+
break;
|
|
47
|
+
case "string": {
|
|
48
|
+
const trimmed = value.trim();
|
|
49
|
+
if (trimmed !== "") cleaned[key] = trimmed;
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
case "object": {
|
|
53
|
+
if (value === null) break;
|
|
54
|
+
const cleanedValue = cleanFalsyValues(value);
|
|
55
|
+
if (cleanedValue) {
|
|
56
|
+
if (Array.isArray(cleanedValue) && cleanedValue.length > 0 || typeof cleanedValue === "object" && Object.keys(cleanedValue).length > 0) {
|
|
57
|
+
cleaned[key] = cleanedValue;
|
|
58
|
+
} else if (!Array.isArray(cleanedValue) && typeof cleanedValue === "object") {
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
case "function":
|
|
64
|
+
case "number":
|
|
65
|
+
cleaned[key] = value;
|
|
66
|
+
break;
|
|
67
|
+
default:
|
|
68
|
+
console.warn(`Unexpected type for key "${key}": ${typeof value}`);
|
|
69
|
+
cleaned[key] = value;
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
if (Object.keys(cleaned).length === 0) {
|
|
74
|
+
return void 0;
|
|
75
|
+
}
|
|
76
|
+
return cleaned;
|
|
77
|
+
}
|
|
78
|
+
return obj;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export {
|
|
82
|
+
isBrowser,
|
|
83
|
+
isNode,
|
|
84
|
+
sortKeys,
|
|
85
|
+
cleanFalsyValues
|
|
86
|
+
};
|
|
@@ -3,11 +3,18 @@ import {
|
|
|
3
3
|
InvokeFetchError,
|
|
4
4
|
clearApiCache,
|
|
5
5
|
invokeFetch,
|
|
6
|
-
invoke_fetch_default,
|
|
7
6
|
parseFetchResponse
|
|
8
|
-
} from "./
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
7
|
+
} from "./I2HA7WJB.js";
|
|
8
|
+
import "./ZCTVPXGO.js";
|
|
9
|
+
import "./7MMXU6EL.js";
|
|
10
|
+
|
|
11
|
+
// src/invoke-fetch/invoke-fetch.ts
|
|
12
|
+
var invokeFetchExp = {
|
|
13
|
+
invokeFetch,
|
|
14
|
+
clearApiCache,
|
|
15
|
+
parseFetchResponse
|
|
16
|
+
};
|
|
17
|
+
var invoke_fetch_default = invokeFetchExp;
|
|
11
18
|
export {
|
|
12
19
|
EncodingError,
|
|
13
20
|
InvokeFetchError,
|