@qlik/api 1.33.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 +3 -2
- package/api-keys.js +2 -2
- package/apps.js +2 -2
- package/assistants.js +2 -2
- package/audits.js +2 -2
- package/auth.js +2 -2
- package/automation-connections.js +2 -2
- package/automations.d.ts +2 -2
- package/automations.js +2 -2
- package/automl-deployments.js +2 -2
- package/automl-predictions.js +2 -2
- package/brands.js +2 -2
- package/chunks/{XF3TPZKZ.js → 4V6T7Y4L.js} +4 -1
- package/chunks/{SPATCXXU.js → 6C6WMV7V.js} +1 -1
- package/chunks/{LIEZG7IM.js → 6WNP7HZQ.js} +2 -2
- package/chunks/{YYZCS5PW.js → EEE42MLS.js} +1 -1
- package/chunks/{OTIO4SEJ.js → I2HA7WJB.js} +37 -31
- package/chunks/{62DXIH3S.js → M7AINAXZ.js} +1 -1
- package/chunks/{GPRUNZV4.js → QAOVZB27.js} +3 -3
- package/chunks/{33GQY7N7.js → QZKOA6VR.js} +1 -1
- package/chunks/{RP3EJGHG.js → VUYZKBT5.js} +3 -3
- package/collections.js +2 -2
- package/conditions.js +2 -2
- package/consumption.js +2 -2
- package/csp-origins.js +2 -2
- package/csrf-token.js +2 -2
- package/data-alerts.js +2 -2
- package/data-assets.js +2 -2
- package/data-connections.js +2 -2
- package/data-credentials.js +2 -2
- package/data-files.js +2 -2
- package/data-qualities.js +2 -2
- package/data-sets.js +2 -2
- package/data-sources.js +2 -2
- package/data-stores.js +2 -2
- package/dcaas.js +2 -2
- package/di-projects.js +2 -2
- package/direct-access-agents.d.ts +22 -22
- package/direct-access-agents.js +2 -2
- package/encryption.js +2 -2
- package/extensions.js +2 -2
- package/glossaries.js +2 -2
- package/groups.js +2 -2
- package/identity-providers.js +2 -2
- package/index.js +5 -4
- package/items.js +2 -2
- package/knowledgebases.js +2 -2
- package/licenses.d.ts +3 -1
- package/licenses.js +2 -2
- package/lineage-graphs.js +2 -2
- package/ml.d.ts +139 -9
- package/ml.js +14 -2
- package/notes.js +2 -2
- package/notifications.js +2 -2
- package/oauth-clients.js +2 -2
- package/oauth-tokens.js +2 -2
- package/package.json +1 -1
- package/qix.d.ts +1 -1
- package/qix.js +2 -2
- package/questions.js +2 -2
- package/quotas.js +2 -2
- package/reload-tasks.js +2 -2
- package/reloads.js +2 -2
- package/report-templates.js +2 -2
- package/reports.js +2 -2
- package/roles.js +2 -2
- package/sharing-tasks.js +2 -2
- package/spaces.d.ts +5 -1
- package/spaces.js +2 -2
- package/tasks.js +2 -2
- package/temp-contents.js +2 -2
- package/tenants.js +2 -2
- package/themes.js +2 -2
- package/transports.js +2 -2
- package/ui-config.js +2 -2
- package/users.js +2 -2
- package/web-integrations.js +2 -2
- package/web-notifications.js +2 -2
- package/webhooks.js +2 -2
package/api-keys.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ type ApiKeyBody = {
|
|
|
39
39
|
type ApiKeyConfigPatch = {
|
|
40
40
|
/** The operation to be performed. */
|
|
41
41
|
op: "replace";
|
|
42
|
-
/** The path for the given resource field to patch. */
|
|
42
|
+
/** The path for the given resource field to patch. The '/api_keys_enabled' option is deprecated and will be removed in a future release. */
|
|
43
43
|
path: "/api_keys_enabled" | "/max_api_key_expiry" | "/max_keys_per_user" | "/scim_externalClient_expiry";
|
|
44
44
|
/** The value to be used for this operation. */
|
|
45
45
|
value: unknown;
|
|
@@ -80,7 +80,8 @@ type ApiKeyWithToken = {
|
|
|
80
80
|
token: string;
|
|
81
81
|
};
|
|
82
82
|
type ApiKeysConfig = {
|
|
83
|
-
/**
|
|
83
|
+
/** @deprecated
|
|
84
|
+
* Enables or disables user API key functionality for the specified tenant. */
|
|
84
85
|
api_keys_enabled?: boolean;
|
|
85
86
|
/** The maximum lifetime, in ISO8601 duration format, for which an API key can be issued for the specified tenant, e.g. `P7D` for 7 days. */
|
|
86
87
|
max_api_key_expiry?: string;
|
package/api-keys.js
CHANGED
package/apps.js
CHANGED
package/assistants.js
CHANGED
package/audits.js
CHANGED
package/auth.js
CHANGED
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
registerHostConfig,
|
|
8
8
|
setDefaultHostConfig,
|
|
9
9
|
unregisterHostConfig
|
|
10
|
-
} from "./chunks/
|
|
11
|
-
import "./chunks/
|
|
10
|
+
} from "./chunks/6C6WMV7V.js";
|
|
11
|
+
import "./chunks/QAOVZB27.js";
|
|
12
12
|
export {
|
|
13
13
|
auth_default as default,
|
|
14
14
|
getAccessToken,
|
package/automations.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ type AutomationDetailRequestObject = {
|
|
|
6
6
|
name?: string;
|
|
7
7
|
schedules?: ScheduleRequestObject[];
|
|
8
8
|
state?: "available" | "unavailable" | "disabled";
|
|
9
|
-
/** The workspace generated by the Qlik
|
|
9
|
+
/** The workspace generated by the Qlik Automate editor. */
|
|
10
10
|
workspace?: unknown;
|
|
11
11
|
};
|
|
12
12
|
type AutomationDetailResponseObject = {
|
|
@@ -29,7 +29,7 @@ type AutomationDetailResponseObject = {
|
|
|
29
29
|
readonly snippetIds?: string[];
|
|
30
30
|
state?: "available" | "unavailable" | "disabled";
|
|
31
31
|
readonly updatedAt?: string;
|
|
32
|
-
/** The workspace generated by the Qlik
|
|
32
|
+
/** The workspace generated by the Qlik Automate editor. */
|
|
33
33
|
workspace?: unknown;
|
|
34
34
|
};
|
|
35
35
|
type AutomationList = {
|
package/automations.js
CHANGED
package/automl-deployments.js
CHANGED
package/automl-predictions.js
CHANGED
package/brands.js
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
InvalidHostConfigError,
|
|
5
5
|
UnexpectedAuthTypeError,
|
|
6
6
|
determineAuthType,
|
|
7
|
+
getDefaultHostConfig,
|
|
7
8
|
getRestCallAuthParams,
|
|
8
9
|
getWebResourceAuthParams,
|
|
9
10
|
getWebSocketAuthParams,
|
|
@@ -18,13 +19,14 @@ import {
|
|
|
18
19
|
toValidLocationUrl,
|
|
19
20
|
toValidWebsocketLocationUrl,
|
|
20
21
|
unregisterHostConfig
|
|
21
|
-
} from "./
|
|
22
|
+
} from "./I2HA7WJB.js";
|
|
22
23
|
import "./ZCTVPXGO.js";
|
|
23
24
|
import "./7MMXU6EL.js";
|
|
24
25
|
|
|
25
26
|
// src/auth/auth.ts
|
|
26
27
|
var auth = {
|
|
27
28
|
determineAuthType,
|
|
29
|
+
getDefaultHostConfig,
|
|
28
30
|
getRestCallAuthParams,
|
|
29
31
|
getWebResourceAuthParams,
|
|
30
32
|
getWebSocketAuthParams,
|
|
@@ -48,6 +50,7 @@ export {
|
|
|
48
50
|
UnexpectedAuthTypeError,
|
|
49
51
|
auth_default as default,
|
|
50
52
|
determineAuthType,
|
|
53
|
+
getDefaultHostConfig,
|
|
51
54
|
getRestCallAuthParams,
|
|
52
55
|
getWebResourceAuthParams,
|
|
53
56
|
getWebSocketAuthParams,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getInvokeFetchRuntimeModule
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./QAOVZB27.js";
|
|
4
4
|
import {
|
|
5
5
|
isBrowser
|
|
6
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;
|
|
@@ -1421,13 +1421,6 @@ var AuthorizationError = class extends Error {
|
|
|
1421
1421
|
};
|
|
1422
1422
|
|
|
1423
1423
|
// src/auth/internal/host-config-functions.ts
|
|
1424
|
-
var defaultHostConfig = {};
|
|
1425
|
-
function setDefaultHostConfigInternal(hostConfig) {
|
|
1426
|
-
defaultHostConfig = hostConfig || {};
|
|
1427
|
-
}
|
|
1428
|
-
function getDefaultHostConfigInternal() {
|
|
1429
|
-
return defaultHostConfig;
|
|
1430
|
-
}
|
|
1431
1424
|
function removeDefaults(hostConfig) {
|
|
1432
1425
|
const cleanedHostConfig = cleanFalsyValues(hostConfig) || {};
|
|
1433
1426
|
if (cleanedHostConfig.host) {
|
|
@@ -1449,13 +1442,13 @@ function globalReplacer(key, value) {
|
|
|
1449
1442
|
}
|
|
1450
1443
|
return value;
|
|
1451
1444
|
}
|
|
1452
|
-
function
|
|
1445
|
+
function serializeHostConfig(hostConfig) {
|
|
1453
1446
|
const hostConfigToUse = removeDefaults(withResolvedHostConfig(hostConfig));
|
|
1454
1447
|
const sorted = sortKeys(hostConfigToUse);
|
|
1455
1448
|
return JSON.stringify(sorted, globalReplacer);
|
|
1456
1449
|
}
|
|
1457
1450
|
var registeredHostConfigs = /* @__PURE__ */ new Map();
|
|
1458
|
-
function
|
|
1451
|
+
function registerHostConfig(name, hostConfig) {
|
|
1459
1452
|
if (hostConfig?.reference) {
|
|
1460
1453
|
throw new InvalidHostConfigError("Cannot register a host config with a reference");
|
|
1461
1454
|
}
|
|
@@ -1464,19 +1457,22 @@ function registerHostConfigInternal(name, hostConfig) {
|
|
|
1464
1457
|
}
|
|
1465
1458
|
registeredHostConfigs.set(name, hostConfig);
|
|
1466
1459
|
}
|
|
1467
|
-
function
|
|
1460
|
+
function unregisterHostConfig(name) {
|
|
1468
1461
|
if (registeredHostConfigs.has(name)) {
|
|
1469
1462
|
registeredHostConfigs.delete(name);
|
|
1470
1463
|
} else {
|
|
1471
1464
|
console.warn(`unregisterHostConfig: Host config with name "${name}" not found.`);
|
|
1472
1465
|
}
|
|
1473
1466
|
}
|
|
1474
|
-
function
|
|
1475
|
-
if (!registeredHostConfigs.has(name)) {
|
|
1476
|
-
throw new Error(`Host config with name "${name}" not found.`);
|
|
1477
|
-
}
|
|
1467
|
+
function getRegisteredHostConfig(name) {
|
|
1478
1468
|
return registeredHostConfigs.get(name);
|
|
1479
1469
|
}
|
|
1470
|
+
function setDefaultHostConfig(hostConfig) {
|
|
1471
|
+
registerHostConfig("default", hostConfig || {});
|
|
1472
|
+
}
|
|
1473
|
+
function getDefaultHostConfig() {
|
|
1474
|
+
return getRegisteredHostConfig("default") || {};
|
|
1475
|
+
}
|
|
1480
1476
|
|
|
1481
1477
|
// src/auth/auth-functions.ts
|
|
1482
1478
|
globalThis.loggingOut = false;
|
|
@@ -1605,17 +1601,17 @@ async function getRestCallAuthParams8(props) {
|
|
|
1605
1601
|
function registerAuthModule2(name, authModule) {
|
|
1606
1602
|
registerAuthModule(name, authModule);
|
|
1607
1603
|
}
|
|
1608
|
-
function
|
|
1609
|
-
|
|
1604
|
+
function setDefaultHostConfig2(hostConfig) {
|
|
1605
|
+
setDefaultHostConfig(hostConfig);
|
|
1610
1606
|
}
|
|
1611
|
-
function
|
|
1612
|
-
|
|
1607
|
+
function registerHostConfig2(name, hostConfig) {
|
|
1608
|
+
registerHostConfig(name, hostConfig);
|
|
1613
1609
|
}
|
|
1614
|
-
function
|
|
1615
|
-
|
|
1610
|
+
function unregisterHostConfig2(name) {
|
|
1611
|
+
unregisterHostConfig(name);
|
|
1616
1612
|
}
|
|
1617
|
-
function
|
|
1618
|
-
return
|
|
1613
|
+
function serializeHostConfig2(hostConfig) {
|
|
1614
|
+
return serializeHostConfig(hostConfig);
|
|
1619
1615
|
}
|
|
1620
1616
|
function checkForCrossDomainRequest(hostConfig) {
|
|
1621
1617
|
const hostConfigToUse = withResolvedHostConfig(hostConfig);
|
|
@@ -1648,12 +1644,21 @@ function normalizeAuthModuleError(err) {
|
|
|
1648
1644
|
}
|
|
1649
1645
|
function withResolvedHostConfig(hostConfig) {
|
|
1650
1646
|
if (hostConfig?.reference) {
|
|
1651
|
-
|
|
1647
|
+
const refConfig = getRegisteredHostConfig(hostConfig.reference);
|
|
1648
|
+
if (!refConfig) {
|
|
1649
|
+
throw new InvalidHostConfigError(
|
|
1650
|
+
`Host config with name "${hostConfig.reference}" not found.`
|
|
1651
|
+
);
|
|
1652
|
+
}
|
|
1653
|
+
return refConfig;
|
|
1652
1654
|
}
|
|
1653
1655
|
if (hostConfig && Object.keys(hostConfig).length > 0) {
|
|
1654
1656
|
return hostConfig;
|
|
1655
1657
|
}
|
|
1656
|
-
return
|
|
1658
|
+
return getDefaultHostConfig();
|
|
1659
|
+
}
|
|
1660
|
+
function getDefaultHostConfig2() {
|
|
1661
|
+
return getDefaultHostConfig();
|
|
1657
1662
|
}
|
|
1658
1663
|
|
|
1659
1664
|
// src/invoke-fetch/internal/invoke-fetch-helpers.ts
|
|
@@ -2034,7 +2039,7 @@ async function getInvokeFetchUrlParams({
|
|
|
2034
2039
|
const url = locationUrl + applyPathVariables(pathTemplate, pathVariables);
|
|
2035
2040
|
const queryString = encodeQueryParams({ ...query, ...authQueryParams });
|
|
2036
2041
|
const completeUrl = toCompleteUrl(url, queryString);
|
|
2037
|
-
const cacheKey = toCacheKey(url, queryString,
|
|
2042
|
+
const cacheKey = toCacheKey(url, queryString, serializeHostConfig2(options?.hostConfig), options?.headers);
|
|
2038
2043
|
return { completeUrl, cacheKey, authHeaders, credentials };
|
|
2039
2044
|
}
|
|
2040
2045
|
function invokeFetchWithUrl(api, props) {
|
|
@@ -2113,7 +2118,7 @@ function invokeFetchWithUrlAndRetry(api, {
|
|
|
2113
2118
|
return cloneResultPromise(resultPromiseAfterCacheClearing);
|
|
2114
2119
|
}
|
|
2115
2120
|
function addPagingFunctions(api, value, method, body, options, authHeaders, credentials) {
|
|
2116
|
-
const serializedHostConfig =
|
|
2121
|
+
const serializedHostConfig = serializeHostConfig2(options?.hostConfig);
|
|
2117
2122
|
return value.then((resp) => {
|
|
2118
2123
|
const dataWithPotentialLinks = resp.data;
|
|
2119
2124
|
if (!dataWithPotentialLinks) {
|
|
@@ -2326,9 +2331,10 @@ export {
|
|
|
2326
2331
|
handleAuthenticationError8 as handleAuthenticationError,
|
|
2327
2332
|
getRestCallAuthParams8 as getRestCallAuthParams,
|
|
2328
2333
|
registerAuthModule2 as registerAuthModule,
|
|
2329
|
-
setDefaultHostConfig,
|
|
2330
|
-
registerHostConfig,
|
|
2331
|
-
unregisterHostConfig,
|
|
2332
|
-
serializeHostConfig,
|
|
2333
|
-
logout
|
|
2334
|
+
setDefaultHostConfig2 as setDefaultHostConfig,
|
|
2335
|
+
registerHostConfig2 as registerHostConfig,
|
|
2336
|
+
unregisterHostConfig2 as unregisterHostConfig,
|
|
2337
|
+
serializeHostConfig2 as serializeHostConfig,
|
|
2338
|
+
logout,
|
|
2339
|
+
getDefaultHostConfig2 as getDefaultHostConfig
|
|
2334
2340
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
// src/public/public-runtime-modules.ts
|
|
2
2
|
function getAuthRuntimeModule(hostConfig) {
|
|
3
3
|
const isNode = !!globalThis.process?.argv;
|
|
4
|
-
return isNode ? import("./
|
|
4
|
+
return isNode ? import("./4V6T7Y4L.js") : import("./PLVPW5IR.js").then(
|
|
5
5
|
(mod) => mod.importRuntimeModule("auth@v1", hostConfig)
|
|
6
6
|
);
|
|
7
7
|
}
|
|
8
8
|
async function getQixRuntimeModule(hostConfig) {
|
|
9
9
|
await getAuthRuntimeModule(hostConfig);
|
|
10
10
|
const isNode = !!globalThis.process?.argv;
|
|
11
|
-
return isNode ? import("./
|
|
11
|
+
return isNode ? import("./VUYZKBT5.js") : import("./PLVPW5IR.js").then(
|
|
12
12
|
(mod) => mod.importRuntimeModule("qix@v1", hostConfig)
|
|
13
13
|
);
|
|
14
14
|
}
|
|
15
15
|
async function getInvokeFetchRuntimeModule(hostConfig) {
|
|
16
16
|
await getAuthRuntimeModule(hostConfig);
|
|
17
17
|
const isNode = !!globalThis.process?.argv;
|
|
18
|
-
return isNode ? import("./
|
|
18
|
+
return isNode ? import("./EEE42MLS.js") : import("./PLVPW5IR.js").then(
|
|
19
19
|
(mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig)
|
|
20
20
|
);
|
|
21
21
|
}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
invokeFetch,
|
|
8
8
|
isWindows,
|
|
9
9
|
toValidWebsocketLocationUrl
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./I2HA7WJB.js";
|
|
11
11
|
import "./ZCTVPXGO.js";
|
|
12
12
|
import {
|
|
13
13
|
isBrowser
|
|
@@ -247,7 +247,7 @@ function listenForWindowsAuthenticationInformation(session) {
|
|
|
247
247
|
return authSuggestedInWebsocket;
|
|
248
248
|
}
|
|
249
249
|
async function createAndSetupEnigmaSession(props, canRetry, onWebSocketEvent2) {
|
|
250
|
-
const { createEnigmaSessionEntrypoint } = await import("./
|
|
250
|
+
const { createEnigmaSessionEntrypoint } = await import("./M7AINAXZ.js");
|
|
251
251
|
const session = await createEnigmaSessionEntrypoint(props);
|
|
252
252
|
setupSessionListeners(session, props, onWebSocketEvent2);
|
|
253
253
|
let global;
|
|
@@ -541,7 +541,7 @@ function createSharedPhoenixSession(props, { onClose, onWebSocketEvent: onWebSoc
|
|
|
541
541
|
client.onWebSocketEvent(event);
|
|
542
542
|
}
|
|
543
543
|
};
|
|
544
|
-
const phoenixConnectionPromise = import("./
|
|
544
|
+
const phoenixConnectionPromise = import("./M7AINAXZ.js").then((module) => {
|
|
545
545
|
return module.createPhoenixConnectionEntrypoint(props, {
|
|
546
546
|
onWebSocketEvent: onWebSocketEvent2,
|
|
547
547
|
getInitialAppActions
|
package/collections.js
CHANGED
package/conditions.js
CHANGED
package/consumption.js
CHANGED
package/csp-origins.js
CHANGED
package/csrf-token.js
CHANGED
package/data-alerts.js
CHANGED
package/data-assets.js
CHANGED
package/data-connections.js
CHANGED
package/data-credentials.js
CHANGED
package/data-files.js
CHANGED
package/data-qualities.js
CHANGED
package/data-sets.js
CHANGED
package/data-sources.js
CHANGED
package/data-stores.js
CHANGED
package/dcaas.js
CHANGED
package/di-projects.js
CHANGED