@qlik/api 2.3.0 → 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.
- package/analytics/change-stores.d.ts +40 -76
- package/analytics/change-stores.js +9 -10
- package/analytics.d.ts +1 -2
- package/analytics.js +5 -6
- package/api-keys.d.ts +46 -100
- package/api-keys.js +3 -4
- package/apps.d.ts +334 -461
- package/apps.js +74 -6
- package/assistants.d.ts +172 -337
- package/assistants.js +3 -4
- package/audits.d.ts +41 -85
- package/audits.js +3 -4
- package/auth-types.d.ts +110 -1
- package/auth-types.js +22 -1
- package/auth.d.ts +1 -2
- package/auth.js +1 -1
- package/automation-connections.d.ts +44 -95
- package/automation-connections.js +3 -4
- package/automation-connectors.d.ts +10 -20
- package/automation-connectors.js +3 -4
- package/automations.d.ts +54 -112
- package/automations.js +3 -4
- package/automl-deployments.d.ts +17 -36
- package/automl-deployments.js +3 -4
- package/automl-predictions.d.ts +12 -24
- package/automl-predictions.js +3 -4
- package/banners.d.ts +8 -14
- package/banners.js +3 -4
- package/brands.d.ts +19 -39
- package/brands.js +3 -4
- package/chunks/auth-B8lJw7rm.js +31 -0
- package/chunks/{interceptors-DipDBQQ5.js → boot-interceptors-DqRxTczb.js} +296 -248
- package/chunks/{chunk-D3vHIbds.js → chunk-BdHzlgOL.js} +3 -3
- package/chunks/{invoke-fetch-B7lGscuQ.js → invoke-fetch-DMAi6Fg3.js} +3 -3
- package/chunks/{invoke-fetch-DhdyFZ0F.js → invoke-fetch-pMN6iqup.js} +2 -3
- package/chunks/platform-types-CECrZkOF.d.ts +29 -0
- package/chunks/{public-runtime-modules-QhLPeQr5.js → public-runtime-modules-2KfyI2qM.js} +5 -5
- package/chunks/{qix-RCUslia8.js → qix-BdNrIA4s.js} +19 -20
- package/chunks/{qix-chunk-entrypoint-WAS4NVTf.js → qix-chunk-entrypoint-L9RpWwLK.js} +52 -58
- package/chunks/{qix-CrqXv44x.d.ts → qix-types-y_di0roE.d.ts} +33 -115
- package/collections.d.ts +67 -144
- package/collections.js +3 -4
- package/conditions.d.ts +87 -190
- package/conditions.js +3 -4
- package/consumption.d.ts +35 -72
- package/consumption.js +3 -4
- package/core/ip-policies.d.ts +43 -93
- package/core/ip-policies.js +5 -6
- package/core.d.ts +1 -2
- package/core.js +5 -6
- package/csp-origins.d.ts +42 -85
- package/csp-origins.js +3 -4
- package/csrf-token.d.ts +6 -11
- package/csrf-token.js +3 -4
- package/data-alerts.d.ts +152 -325
- package/data-alerts.js +3 -4
- package/data-assets.d.ts +16 -31
- package/data-assets.js +3 -4
- package/data-connections.d.ts +123 -257
- package/data-connections.js +3 -4
- package/data-credentials.d.ts +36 -76
- package/data-credentials.js +3 -4
- package/data-files.d.ts +60 -121
- package/data-files.js +3 -4
- package/data-governance/data-products.d.ts +429 -0
- package/data-governance/data-products.js +212 -0
- package/data-governance.d.ts +13 -0
- package/data-governance.js +12 -0
- package/data-qualities.d.ts +11 -25
- package/data-qualities.js +3 -4
- package/data-sets.d.ts +28 -57
- package/data-sets.js +3 -4
- package/data-sources.d.ts +45 -97
- package/data-sources.js +3 -4
- package/data-stores.d.ts +53 -107
- package/data-stores.js +3 -4
- package/dcaas.d.ts +32 -67
- package/dcaas.js +3 -4
- package/di-projects.d.ts +111 -136
- package/di-projects.js +25 -4
- package/direct-access-agents.d.ts +29 -63
- package/direct-access-agents.js +3 -4
- package/encryption.d.ts +28 -59
- package/encryption.js +3 -4
- package/extensions.d.ts +35 -73
- package/extensions.js +3 -4
- package/global-types.d.ts +139 -1
- package/glossaries.d.ts +75 -158
- package/glossaries.js +3 -4
- package/groups.d.ts +58 -125
- package/groups.js +3 -4
- package/identity-providers.d.ts +148 -324
- package/identity-providers.js +3 -4
- package/index.d.ts +18 -4
- package/index.js +64 -19
- package/interceptors.d.ts +2 -3
- package/interceptors.js +104 -2
- package/invoke-fetch-types.d.ts +97 -1
- package/items.d.ts +85 -181
- package/items.js +3 -4
- package/knowledgebases.d.ts +137 -270
- package/knowledgebases.js +3 -4
- package/licenses.d.ts +71 -153
- package/licenses.js +3 -4
- package/lineage-graphs.d.ts +39 -85
- package/lineage-graphs.js +3 -4
- package/ml.d.ts +290 -621
- package/ml.js +3 -4
- package/notes.d.ts +9 -18
- package/notes.js +3 -4
- package/notifications.d.ts +14 -30
- package/notifications.js +3 -4
- package/oauth-clients.d.ts +98 -159
- package/oauth-clients.js +4 -5
- package/oauth-tokens.d.ts +16 -33
- package/oauth-tokens.js +3 -4
- package/package.json +6 -4
- package/qix.d.ts +46 -2
- package/qix.js +2 -3
- package/questions.d.ts +53 -110
- package/questions.js +3 -4
- package/quotas.d.ts +13 -26
- package/quotas.js +3 -4
- package/reload-tasks.d.ts +23 -46
- package/reload-tasks.js +3 -4
- package/reloads.d.ts +26 -52
- package/reloads.js +3 -4
- package/report-templates.d.ts +30 -63
- package/report-templates.js +3 -4
- package/reports.d.ts +111 -238
- package/reports.js +3 -4
- package/roles.d.ts +36 -77
- package/roles.js +3 -4
- package/sharing-tasks.d.ts +201 -427
- package/sharing-tasks.js +3 -4
- package/spaces.d.ts +71 -157
- package/spaces.js +3 -4
- package/tasks.d.ts +76 -164
- package/tasks.js +3 -4
- package/temp-contents.d.ts +17 -35
- package/temp-contents.js +3 -4
- package/tenant-settings.d.ts +298 -0
- package/tenant-settings.js +107 -0
- package/tenants.d.ts +31 -67
- package/tenants.js +3 -4
- package/themes.d.ts +27 -55
- package/themes.js +3 -4
- package/transports.d.ts +46 -106
- package/transports.js +3 -4
- package/ui-config.d.ts +8 -17
- package/ui-config.js +3 -4
- package/users.d.ts +80 -170
- package/users.js +3 -4
- package/web-integrations.d.ts +38 -83
- package/web-integrations.js +3 -4
- package/web-notifications.d.ts +14 -29
- package/web-notifications.js +3 -4
- package/webhooks.d.ts +77 -162
- package/webhooks.js +3 -4
- package/chunks/auth-BowS4SUR.js +0 -28
- package/chunks/auth-types-YrlH_R9f.d.ts +0 -416
- package/chunks/auth-types-h43TVDpB.js +0 -24
- package/chunks/global-types-CEVAJebk.js +0 -1
- /package/chunks/{dist-n3iOVn1W.js → dist-DR758NU5.js} +0 -0
- /package/chunks/{invoke-fetch-C1Z0RJYU.d.ts → invoke-fetch-DFc3yzaj.d.ts} +0 -0
- /package/chunks/{utils-vv-xFm06.js → utils-jkpLuYZR.js} +0 -0
- /package/chunks/{websocket-errors-CRTDTtBL.js → websocket-errors-C5U1tba-.js} +0 -0
package/direct-access-agents.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./chunks/public-runtime-modules-
|
|
2
|
-
import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-
|
|
1
|
+
import "./chunks/public-runtime-modules-2KfyI2qM.js";
|
|
2
|
+
import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DMAi6Fg3.js";
|
|
3
3
|
|
|
4
4
|
//#region src/public/rest/direct-access-agents.ts
|
|
5
5
|
/**
|
|
@@ -333,7 +333,6 @@ const directAccessAgentsExport = {
|
|
|
333
333
|
setDirectAccessAgentToolsMetricsCollectorConfiguration,
|
|
334
334
|
clearCache
|
|
335
335
|
};
|
|
336
|
-
var direct_access_agents_default = directAccessAgentsExport;
|
|
337
336
|
|
|
338
337
|
//#endregion
|
|
339
|
-
export { clearCache, createDirectAccessAgentBenchmark, createDirectAccessAgentBenchmarkCancel,
|
|
338
|
+
export { clearCache, createDirectAccessAgentBenchmark, createDirectAccessAgentBenchmarkCancel, directAccessAgentsExport as default, getDirectAccessAgentBenchmark, getDirectAccessAgentConfiguration, getDirectAccessAgentConnectorFile, getDirectAccessAgentConnectorFiles, getDirectAccessAgentConnectorFilesWithoutQuery, getDirectAccessAgentConnectorsFileConnectorFilesAllowedPaths, getDirectAccessAgentConnectorsOdbcConnectorFilesCustomDataTypeMappings, getDirectAccessAgentToolsMetricsCollectorConfiguration, patchDirectAccessAgentConfiguration, putDirectAccessAgentConnectorsFileConnectorFilesAllowedPaths, putDirectAccessAgentConnectorsOdbcConnectorFilesCustomDataTypeMappings, restartDirectAccessAgent, setDirectAccessAgentToolsMetricsCollectorConfiguration, updateDirectAccessAgentConnectorFile, updateDirectAccessAgentConnectorFileWithoutQuery };
|
package/encryption.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./chunks/invoke-fetch-
|
|
1
|
+
import { ApiCallOptions } from "./invoke-fetch-types.js";
|
|
2
|
+
import "./chunks/invoke-fetch-DFc3yzaj.js";
|
|
3
3
|
|
|
4
4
|
//#region src/public/rest/encryption.d.ts
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* @example
|
|
8
7
|
* {
|
|
@@ -21,33 +20,20 @@ import "./chunks/invoke-fetch-C1Z0RJYU.js";
|
|
|
21
20
|
* }
|
|
22
21
|
*/
|
|
23
22
|
type KeyProvider = {
|
|
24
|
-
/** The provider resource notation for the key. */
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
readonly
|
|
28
|
-
/**
|
|
29
|
-
|
|
30
|
-
/** Indicates whether the key
|
|
31
|
-
readonly
|
|
32
|
-
/** When the key was
|
|
33
|
-
readonly demotedFromCurrentAt?: string;
|
|
34
|
-
/** Description of key provider entry. */
|
|
35
|
-
description?: string;
|
|
36
|
-
/** Key Provider type. */
|
|
37
|
-
keyprovider: "AWS-KMS";
|
|
38
|
-
/** Indicates whether the key has multi-region configurations and has replica key in qcs secondary region. */
|
|
39
|
-
readonly multiRegion?: boolean;
|
|
40
|
-
/** Name of key provider entry. */
|
|
41
|
-
name: string;
|
|
42
|
-
/** When the key was promoted to being the current active one. */
|
|
23
|
+
/** The provider resource notation for the key. */arn: string; /** The ARN fingerprint. */
|
|
24
|
+
readonly arnFingerPrint?: string; /** When key entry was created. */
|
|
25
|
+
readonly createdAt?: string; /** Indicates whether the key is being used to encrypt/decrypt secrets. */
|
|
26
|
+
readonly current?: boolean; /** When the key was demoted from being current to non active. */
|
|
27
|
+
readonly demotedFromCurrentAt?: string; /** Description of key provider entry. */
|
|
28
|
+
description?: string; /** Key Provider type. */
|
|
29
|
+
keyprovider: "AWS-KMS"; /** Indicates whether the key has multi-region configurations and has replica key in qcs secondary region. */
|
|
30
|
+
readonly multiRegion?: boolean; /** Name of key provider entry. */
|
|
31
|
+
name: string; /** When the key was promoted to being the current active one. */
|
|
43
32
|
readonly promotedToCurrentAt?: string;
|
|
44
33
|
readonly replicaKeys?: {
|
|
45
|
-
/** Replica key keeps list of backup keys from the supported qcs secondary region. */
|
|
46
|
-
arn?: string;
|
|
47
|
-
/** Region indicates the backup qcs-region link to the primary region. */
|
|
34
|
+
/** Replica key keeps list of backup keys from the supported qcs secondary region. */arn?: string; /** Region indicates the backup qcs-region link to the primary region. */
|
|
48
35
|
region?: string;
|
|
49
|
-
}[];
|
|
50
|
-
/** Tenant ID. */
|
|
36
|
+
}[]; /** Tenant ID. */
|
|
51
37
|
readonly tenantId?: string;
|
|
52
38
|
};
|
|
53
39
|
/**
|
|
@@ -60,11 +46,8 @@ type KeyProvider = {
|
|
|
60
46
|
* }
|
|
61
47
|
*/
|
|
62
48
|
type KeyProviderPatchBase = {
|
|
63
|
-
/** The operation to be performed. */
|
|
64
|
-
|
|
65
|
-
/** The property path. */
|
|
66
|
-
path: string;
|
|
67
|
-
/** The value to be used for this operation. */
|
|
49
|
+
/** The operation to be performed. */op: "replace"; /** The property path. */
|
|
50
|
+
path: string; /** The value to be used for this operation. */
|
|
68
51
|
value: string;
|
|
69
52
|
};
|
|
70
53
|
type KeyProviderPatchSchema = KeyProviderPatchBase[];
|
|
@@ -72,47 +55,33 @@ type KeyProviders = {
|
|
|
72
55
|
errors?: KeyProvider[];
|
|
73
56
|
};
|
|
74
57
|
type KeyProvidersDeleteResponseBody = {
|
|
75
|
-
/** Successful response message. */
|
|
76
|
-
response?: string;
|
|
58
|
+
/** Successful response message. */response?: string;
|
|
77
59
|
};
|
|
78
60
|
type ListKeyProviders = {
|
|
79
61
|
errors?: KeyProvider[];
|
|
80
62
|
};
|
|
81
63
|
type MigrationInformation = {
|
|
82
|
-
completedAt?: string;
|
|
83
|
-
/** Migration operation ID. */
|
|
64
|
+
completedAt?: string; /** Migration operation ID. */
|
|
84
65
|
id?: string;
|
|
85
|
-
initiatedAt?: string;
|
|
86
|
-
/** The key ARN
|
|
87
|
-
|
|
88
|
-
/** The new key
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
/** The new key prefix (to help services know which prefix should NOT be migrated). */
|
|
93
|
-
migratingToPrefix?: string;
|
|
94
|
-
/** Progress in percentage. */
|
|
95
|
-
progress?: number;
|
|
96
|
-
/** Migration operation state. */
|
|
97
|
-
state?: "New" | "InProgress" | "Completed";
|
|
98
|
-
/** Tenant ID. */
|
|
66
|
+
initiatedAt?: string; /** The key ARN being migrated from (in case of QlikVault, could be a short name only). */
|
|
67
|
+
migratingFrom?: string; /** The new key ARN that keys should be migrated to. */
|
|
68
|
+
migratingTo?: string; /** The new key ARN fingerprint. */
|
|
69
|
+
migratingToFingerprint?: string; /** The new key prefix (to help services know which prefix should NOT be migrated). */
|
|
70
|
+
migratingToPrefix?: string; /** Progress in percentage. */
|
|
71
|
+
progress?: number; /** Migration operation state. */
|
|
72
|
+
state?: "New" | "InProgress" | "Completed"; /** Tenant ID. */
|
|
99
73
|
tenantId?: string;
|
|
100
74
|
};
|
|
101
75
|
type ResetMigrationNotNeeded = {
|
|
102
|
-
/** Tenant is already using Qlik KMS, no migration is required. */
|
|
103
|
-
message?: string;
|
|
76
|
+
/** Tenant is already using Qlik KMS, no migration is required. */message?: string;
|
|
104
77
|
};
|
|
105
78
|
type StandardError = {
|
|
106
79
|
errors: StandardErrorItem[];
|
|
107
80
|
};
|
|
108
81
|
type StandardErrorItem = {
|
|
109
|
-
/** The error code. */
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
detail?: string;
|
|
113
|
-
/** Additional error object metadata. */
|
|
114
|
-
meta?: unknown;
|
|
115
|
-
/** Description of the error. */
|
|
82
|
+
/** The error code. */code: string; /** Extra information about the error. */
|
|
83
|
+
detail?: string; /** Additional error object metadata. */
|
|
84
|
+
meta?: unknown; /** Description of the error. */
|
|
116
85
|
title: string;
|
|
117
86
|
};
|
|
118
87
|
/**
|
package/encryption.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./chunks/public-runtime-modules-
|
|
2
|
-
import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-
|
|
1
|
+
import "./chunks/public-runtime-modules-2KfyI2qM.js";
|
|
2
|
+
import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DMAi6Fg3.js";
|
|
3
3
|
|
|
4
4
|
//#region src/public/rest/encryption.ts
|
|
5
5
|
/**
|
|
@@ -160,7 +160,6 @@ const encryptionExport = {
|
|
|
160
160
|
testEncryptionKeyprovider,
|
|
161
161
|
clearCache
|
|
162
162
|
};
|
|
163
|
-
var encryption_default = encryptionExport;
|
|
164
163
|
|
|
165
164
|
//#endregion
|
|
166
|
-
export { clearCache, createEncryptionKeyprovider,
|
|
165
|
+
export { clearCache, createEncryptionKeyprovider, encryptionExport as default, deleteEncryptionKeyprovider, getEncryptionKeyprovider, getEncryptionKeyproviders, getEncryptionKeyprovidersMigrationDetails, listEncryptionKeyproviders, migrateEncryptionKeyprovider, patchEncryptionKeyprovider, resetEncryptionKeyproviders, testEncryptionKeyprovider };
|
package/extensions.d.ts
CHANGED
|
@@ -1,87 +1,56 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./chunks/invoke-fetch-
|
|
1
|
+
import { ApiCallOptions, DownloadableBlob } from "./invoke-fetch-types.js";
|
|
2
|
+
import "./chunks/invoke-fetch-DFc3yzaj.js";
|
|
3
3
|
|
|
4
4
|
//#region src/public/rest/extensions.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Object containing meta data regarding the bundle the extension belongs to. If it does not belong to a bundle, this object is not defined.
|
|
7
7
|
*/
|
|
8
8
|
type BundleMeta = {
|
|
9
|
-
/** Description of the bundle. */
|
|
10
|
-
|
|
11
|
-
/** Unique identifier of the bundle. */
|
|
12
|
-
id?: string;
|
|
13
|
-
/** Name of the bundle. */
|
|
9
|
+
/** Description of the bundle. */description?: string; /** Unique identifier of the bundle. */
|
|
10
|
+
id?: string; /** Name of the bundle. */
|
|
14
11
|
name?: string;
|
|
15
12
|
};
|
|
16
13
|
/**
|
|
17
14
|
* An error object.
|
|
18
15
|
*/
|
|
19
16
|
type Error = {
|
|
20
|
-
/** Object containing meta data regarding an error. It does not necessarily contain all the properties. */
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
/** The HTTP status code. */
|
|
25
|
-
status?: number;
|
|
26
|
-
/** Title of the HTTP status code. */
|
|
27
|
-
title: string;
|
|
28
|
-
/** The active traceId. */
|
|
17
|
+
/** Object containing meta data regarding an error. It does not necessarily contain all the properties. */meta?: Meta; /** Optional JSON patch object pointing to an invalid property. */
|
|
18
|
+
source?: unknown; /** The HTTP status code. */
|
|
19
|
+
status?: number; /** Title of the HTTP status code. */
|
|
20
|
+
title: string; /** The active traceId. */
|
|
29
21
|
traceId?: string;
|
|
30
22
|
};
|
|
31
23
|
/**
|
|
32
24
|
* The extension model.
|
|
33
25
|
*/
|
|
34
26
|
type Extension = {
|
|
35
|
-
/** Author of the extension. */
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
bundle?: BundleMeta;
|
|
39
|
-
/** If the extension is part of an extension bundle. */
|
|
40
|
-
bundled?: boolean;
|
|
41
|
-
/** Checksum of the extension contents. */
|
|
27
|
+
/** Author of the extension. */author?: string; /** Object containing meta data regarding the bundle the extension belongs to. If it does not belong to a bundle, this object is not defined. */
|
|
28
|
+
bundle?: BundleMeta; /** If the extension is part of an extension bundle. */
|
|
29
|
+
bundled?: boolean; /** Checksum of the extension contents. */
|
|
42
30
|
checksum?: string;
|
|
43
|
-
readonly createdAt?: string;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
description?: string;
|
|
50
|
-
/** The file that was uploaded with the extension. */
|
|
51
|
-
file?: unknown;
|
|
52
|
-
/** Home page of the extension. */
|
|
53
|
-
homepage?: string;
|
|
54
|
-
/** Icon to show in the client. */
|
|
31
|
+
readonly createdAt?: string; /** Map of dependencies describing version of the component it requires. */
|
|
32
|
+
dependencies?: unknown; /** A date noting when the extension was deprecated. */
|
|
33
|
+
deprecated?: string; /** Description of the extension. */
|
|
34
|
+
description?: string; /** The file that was uploaded with the extension. */
|
|
35
|
+
file?: unknown; /** Home page of the extension. */
|
|
36
|
+
homepage?: string; /** Icon to show in the client. */
|
|
55
37
|
icon?: string;
|
|
56
|
-
readonly id?: string;
|
|
57
|
-
/**
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
/** The name of the qext file that was uploaded with this extension. */
|
|
68
|
-
qextFilename?: string;
|
|
69
|
-
/** The version from the qext file that was uploaded with this extension. */
|
|
70
|
-
qextVersion?: string;
|
|
71
|
-
/** Link to the extension source code. */
|
|
72
|
-
repository?: string;
|
|
73
|
-
/** If the extension is a supernova extension or not. */
|
|
74
|
-
supernova?: boolean;
|
|
75
|
-
/** Supplier of the extension. */
|
|
76
|
-
supplier?: string;
|
|
77
|
-
/** List of tags. */
|
|
38
|
+
readonly id?: string; /** Keywords for the extension. */
|
|
39
|
+
keywords?: string; /** Under which license this extension is published. */
|
|
40
|
+
license?: string; /** Relative path to the extension's entry file, defaults to `filename` from the qext file. */
|
|
41
|
+
loadpath?: string; /** The display name of this extension. */
|
|
42
|
+
name?: string; /** Path to an image that enables users to preview the extension. */
|
|
43
|
+
preview?: string; /** The name of the qext file that was uploaded with this extension. */
|
|
44
|
+
qextFilename?: string; /** The version from the qext file that was uploaded with this extension. */
|
|
45
|
+
qextVersion?: string; /** Link to the extension source code. */
|
|
46
|
+
repository?: string; /** If the extension is a supernova extension or not. */
|
|
47
|
+
supernova?: boolean; /** Supplier of the extension. */
|
|
48
|
+
supplier?: string; /** List of tags. */
|
|
78
49
|
tags?: string[];
|
|
79
|
-
readonly tenantId?: string;
|
|
80
|
-
/** The type of this extension (visualization, etc.). */
|
|
50
|
+
readonly tenantId?: string; /** The type of this extension (visualization, etc.). */
|
|
81
51
|
type?: string;
|
|
82
52
|
readonly updateAt?: string;
|
|
83
|
-
readonly userId?: string;
|
|
84
|
-
/** Version of the extension. */
|
|
53
|
+
readonly userId?: string; /** Version of the extension. */
|
|
85
54
|
version?: string;
|
|
86
55
|
};
|
|
87
56
|
type Extensions = {
|
|
@@ -91,11 +60,8 @@ type Extensions = {
|
|
|
91
60
|
* Object containing meta data regarding an error. It does not necessarily contain all the properties.
|
|
92
61
|
*/
|
|
93
62
|
type Meta = {
|
|
94
|
-
/** A more detailed message explaining the error. */
|
|
95
|
-
|
|
96
|
-
/** Name of the resource related to the error. If there is a conflict, it is the name of the model attempting to be created. */
|
|
97
|
-
resourceName?: string;
|
|
98
|
-
/** Full stack trace of the error that was raised. */
|
|
63
|
+
/** A more detailed message explaining the error. */message?: string; /** Name of the resource related to the error. If there is a conflict, it is the name of the model attempting to be created. */
|
|
64
|
+
resourceName?: string; /** Full stack trace of the error that was raised. */
|
|
99
65
|
stack?: string;
|
|
100
66
|
};
|
|
101
67
|
/**
|
|
@@ -121,9 +87,7 @@ type GetExtensionsHttpError = {
|
|
|
121
87
|
* @throws UploadExtensionHttpError
|
|
122
88
|
*/
|
|
123
89
|
declare function uploadExtension(body: {
|
|
124
|
-
/** The extension model. */
|
|
125
|
-
data?: Extension;
|
|
126
|
-
/** Extension archive. */
|
|
90
|
+
/** The extension model. */data?: Extension; /** Extension archive. */
|
|
127
91
|
file?: BodyInit;
|
|
128
92
|
}, options?: ApiCallOptions): Promise<UploadExtensionHttpResponse>;
|
|
129
93
|
type UploadExtensionHttpResponse = {
|
|
@@ -178,9 +142,7 @@ type GetExtensionHttpError = {
|
|
|
178
142
|
* @throws PatchExtensionHttpError
|
|
179
143
|
*/
|
|
180
144
|
declare function patchExtension(id: string, body: {
|
|
181
|
-
/** The extension model. */
|
|
182
|
-
data?: Extension;
|
|
183
|
-
/** Extension archive. */
|
|
145
|
+
/** The extension model. */data?: Extension; /** Extension archive. */
|
|
184
146
|
file?: BodyInit;
|
|
185
147
|
}, options?: ApiCallOptions): Promise<PatchExtensionHttpResponse>;
|
|
186
148
|
type PatchExtensionHttpResponse = {
|
|
@@ -201,7 +163,7 @@ type PatchExtensionHttpError = {
|
|
|
201
163
|
*/
|
|
202
164
|
declare function downloadExtension(id: string, options?: ApiCallOptions): Promise<DownloadExtensionHttpResponse>;
|
|
203
165
|
type DownloadExtensionHttpResponse = {
|
|
204
|
-
data:
|
|
166
|
+
data: DownloadableBlob;
|
|
205
167
|
headers: Headers;
|
|
206
168
|
status: 200;
|
|
207
169
|
};
|
package/extensions.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./chunks/public-runtime-modules-
|
|
2
|
-
import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-
|
|
1
|
+
import "./chunks/public-runtime-modules-2KfyI2qM.js";
|
|
2
|
+
import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DMAi6Fg3.js";
|
|
3
3
|
|
|
4
4
|
//#region src/public/rest/extensions.ts
|
|
5
5
|
/**
|
|
@@ -125,7 +125,6 @@ const extensionsExport = {
|
|
|
125
125
|
downloadFileFromExtension,
|
|
126
126
|
clearCache
|
|
127
127
|
};
|
|
128
|
-
var extensions_default = extensionsExport;
|
|
129
128
|
|
|
130
129
|
//#endregion
|
|
131
|
-
export { clearCache,
|
|
130
|
+
export { clearCache, extensionsExport as default, deleteExtension, downloadExtension, downloadFileFromExtension, getExtension, getExtensions, patchExtension, uploadExtension };
|
package/global-types.d.ts
CHANGED
|
@@ -1,2 +1,140 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CacheEntry } from "./invoke-fetch-types.js";
|
|
2
|
+
import { t as ProductInfo } from "./chunks/platform-types-CECrZkOF.js";
|
|
3
|
+
|
|
4
|
+
//#region src/global-types.d.ts
|
|
5
|
+
/** ApiKey Auth Configuration for a HostConfig */
|
|
6
|
+
type ApiKeyAuthConfig = {
|
|
7
|
+
/** api key created by a developer role on a tenant */apiKey: string;
|
|
8
|
+
};
|
|
9
|
+
/** Cookie Auth Configuration for a HostConfig */
|
|
10
|
+
type CookieAuthConfig = {
|
|
11
|
+
/** Web Integration Id created by tenant admin */webIntegrationId?: string; /** If set to false the `credentials` property will be set to same-origin */
|
|
12
|
+
crossSiteCookies?: boolean; /** Set to true if browser is running in anonymous mode, which is detected if there's a eac token in the url */
|
|
13
|
+
anonymousMode?: boolean;
|
|
14
|
+
};
|
|
15
|
+
/** WindowsCookie Auth Configuration for a HostConfig */
|
|
16
|
+
type WindowsCookieAuthConfig = {
|
|
17
|
+
/** 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. */loginUri?: string; /** If set to false the `credentials` property will be set to same-origin. Not applicable in Node.js environments. */
|
|
18
|
+
crossSiteCookies?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* A custom function that can be used to fetch a windows auth jwt.
|
|
21
|
+
* The jwt will be exchanged for a session cookie.
|
|
22
|
+
* In the browser this should typically fetch the jwt from a custom backend service.
|
|
23
|
+
* Mandatory in Node.js environments.
|
|
24
|
+
*/
|
|
25
|
+
getAccessToken?: string | (() => Promise<string>);
|
|
26
|
+
};
|
|
27
|
+
type PerformInteractiveLoginFn = (props: {
|
|
28
|
+
/**
|
|
29
|
+
* 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.
|
|
30
|
+
* Note that the redirectUri needs to be registered in the oauth configuration.
|
|
31
|
+
*/
|
|
32
|
+
getLoginUrl: (props: {
|
|
33
|
+
redirectUri: string;
|
|
34
|
+
}) => Promise<string>;
|
|
35
|
+
}) => Promise<{
|
|
36
|
+
code: string;
|
|
37
|
+
state: string;
|
|
38
|
+
} | string>;
|
|
39
|
+
/** OAuth2 Auth Configuration for a HostConfig */
|
|
40
|
+
type Oauth2AuthConfig = {
|
|
41
|
+
/** client id of oauth client created by tenant admin */clientId: string; /** client id of oauth client created by tenant admin */
|
|
42
|
+
clientSecret?: string; /** location of where the client should be redirected after getting hold of the access token */
|
|
43
|
+
redirectUri?: string; /** If set, store the access token in either local or session storage, otherwise not stored */
|
|
44
|
+
accessTokenStorage?: "session" | "local"; /** A string with comma separated values of oauth2 scopes https://oauth.net/2/scope defaults to "user_default" */
|
|
45
|
+
scope?: string;
|
|
46
|
+
/**
|
|
47
|
+
* A custom function that can be used on the client side to fetch an oauth access token from a custom backend.
|
|
48
|
+
* Typically used in oauth impersonation.
|
|
49
|
+
*/
|
|
50
|
+
getAccessToken?: string | (() => Promise<string>);
|
|
51
|
+
/**
|
|
52
|
+
* If set to true no caching or storing of the access token is done.
|
|
53
|
+
* This is typically used on the serverside with impersonation so that a client always gets a fresh token.
|
|
54
|
+
* Caching is in that case handled on the client side.
|
|
55
|
+
*/
|
|
56
|
+
noCache?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Can be used on the serverside to impersonate a specific user when authenticating using a client secret.
|
|
59
|
+
* Typically used together with the `noCache` since caching is done on the browser side.
|
|
60
|
+
*/
|
|
61
|
+
subject?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Can be used on the serverside to impersonate a specific user when authenticating using a client secret.
|
|
64
|
+
* Typically used together with the `noCache` since caching is done on the browser side.
|
|
65
|
+
*/
|
|
66
|
+
userId?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Can be used to customize the login flow, for instance if the login page should be shown in another browser tab/window.
|
|
69
|
+
* The function is asynchronous and when the loging flow is finished it should return the code and state provided in the
|
|
70
|
+
* query of the oauth redirect callback. The code and state can either be provided as an object or as the entire callback url.
|
|
71
|
+
*/
|
|
72
|
+
performInteractiveLogin?: PerformInteractiveLoginFn;
|
|
73
|
+
};
|
|
74
|
+
/** Anonymous Auth Configuration for a HostConfig - used when embedding UI's linked to an anonymous tenant/app */
|
|
75
|
+
type AnonymousAuthConfig = {
|
|
76
|
+
/**
|
|
77
|
+
* Experimental and unsupported
|
|
78
|
+
*/
|
|
79
|
+
accessCode: string; /** client id of oauth client created by tenant admin */
|
|
80
|
+
clientId: string;
|
|
81
|
+
};
|
|
82
|
+
/** Used to reference a registered host config as a single string */
|
|
83
|
+
type ReferenceConfig = {
|
|
84
|
+
/** The name of the registered host config to reference */reference: string;
|
|
85
|
+
};
|
|
86
|
+
declare global {
|
|
87
|
+
/**
|
|
88
|
+
* QlikAuthModules is a global interface that can be extended to add custom auth modules.
|
|
89
|
+
*/
|
|
90
|
+
interface QlikAuthModules {
|
|
91
|
+
apikey: {
|
|
92
|
+
config: ApiKeyAuthConfig;
|
|
93
|
+
};
|
|
94
|
+
oauth2: {
|
|
95
|
+
config: Oauth2AuthConfig;
|
|
96
|
+
};
|
|
97
|
+
cookie: {
|
|
98
|
+
config: CookieAuthConfig;
|
|
99
|
+
};
|
|
100
|
+
anonymous: {
|
|
101
|
+
config: AnonymousAuthConfig;
|
|
102
|
+
};
|
|
103
|
+
windowscookie: {
|
|
104
|
+
config: WindowsCookieAuthConfig;
|
|
105
|
+
};
|
|
106
|
+
reference: {
|
|
107
|
+
config: ReferenceConfig;
|
|
108
|
+
};
|
|
109
|
+
none: {
|
|
110
|
+
config: object;
|
|
111
|
+
};
|
|
112
|
+
noauth: {
|
|
113
|
+
config: object;
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Property set on the window when the user is logging out.
|
|
118
|
+
* This prevents unnecessary redirect calls when pending requests
|
|
119
|
+
* resolved.
|
|
120
|
+
*/
|
|
121
|
+
var loggingOut: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Attaching cache to the window so it can be viewed from the devtool.
|
|
124
|
+
* Do not use this for anything!
|
|
125
|
+
*/
|
|
126
|
+
var __API_CACHE__DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Record<string, Record<string, CacheEntry> | undefined>;
|
|
127
|
+
/**
|
|
128
|
+
* QlikMain object
|
|
129
|
+
*/
|
|
130
|
+
var QlikMain: {
|
|
131
|
+
resourceNeedsCredentials: (resourcesUrl: string) => boolean;
|
|
132
|
+
applyFeatureOverrides: (featureFlags: Record<string, boolean>) => Promise<void>;
|
|
133
|
+
PRODUCT_INFO?: ProductInfo;
|
|
134
|
+
REGION?: string;
|
|
135
|
+
ENVIRONMENT?: string;
|
|
136
|
+
INTERNAL__DO_NOT_USE: Record<string, unknown>;
|
|
137
|
+
} | undefined;
|
|
138
|
+
}
|
|
139
|
+
//#endregion
|
|
2
140
|
export { PerformInteractiveLoginFn };
|