@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/identity-providers.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/identity-providers.ts
|
|
5
5
|
/**
|
|
@@ -132,7 +132,6 @@ const identityProvidersExport = {
|
|
|
132
132
|
patchIdp,
|
|
133
133
|
clearCache
|
|
134
134
|
};
|
|
135
|
-
var identity_providers_default = identityProvidersExport;
|
|
136
135
|
|
|
137
136
|
//#endregion
|
|
138
|
-
export { clearCache, createIdp,
|
|
137
|
+
export { clearCache, createIdp, identityProvidersExport as default, deleteIdp, getIdp, getIdpStatuses, getIdpWellKnownMetaData, getIdps, getMyIdpMeta, patchIdp };
|
package/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./chunks/invoke-fetch-
|
|
1
|
+
import { HostConfig } from "./auth-types.js";
|
|
2
|
+
import "./chunks/invoke-fetch-DFc3yzaj.js";
|
|
3
3
|
import { InterceptorsAPI, createInterceptors } from "./interceptors.js";
|
|
4
4
|
import { AuthAPI, getAccessToken, getWebResourceAuthParams, registerAuthModule, registerHostConfig, setDefaultHostConfig, unregisterHostConfig } from "./auth.js";
|
|
5
|
-
import
|
|
5
|
+
import "./chunks/qix-types-y_di0roE.js";
|
|
6
|
+
import { QixAPI } from "./qix.js";
|
|
6
7
|
import { ChangeStoresAPI } from "./analytics/change-stores.js";
|
|
7
8
|
import { AnalyticsAPI } from "./analytics.js";
|
|
8
9
|
import { ApiKeysAPI } from "./api-keys.js";
|
|
@@ -28,6 +29,8 @@ import { DataAssetsAPI } from "./data-assets.js";
|
|
|
28
29
|
import { DataConnectionsAPI } from "./data-connections.js";
|
|
29
30
|
import { DataCredentialsAPI } from "./data-credentials.js";
|
|
30
31
|
import { DataFilesAPI } from "./data-files.js";
|
|
32
|
+
import { DataProductsAPI } from "./data-governance/data-products.js";
|
|
33
|
+
import { DataGovernanceAPI } from "./data-governance.js";
|
|
31
34
|
import { DataQualitiesAPI } from "./data-qualities.js";
|
|
32
35
|
import { DataSetsAPI } from "./data-sets.js";
|
|
33
36
|
import { DataSourcesAPI } from "./data-sources.js";
|
|
@@ -60,6 +63,7 @@ import { SharingTasksAPI } from "./sharing-tasks.js";
|
|
|
60
63
|
import { SpacesAPI } from "./spaces.js";
|
|
61
64
|
import { TasksAPI } from "./tasks.js";
|
|
62
65
|
import { TempContentsAPI } from "./temp-contents.js";
|
|
66
|
+
import { TenantSettingsAPI } from "./tenant-settings.js";
|
|
63
67
|
import { TenantsAPI } from "./tenants.js";
|
|
64
68
|
import { ThemesAPI } from "./themes.js";
|
|
65
69
|
import { TransportsAPI } from "./transports.js";
|
|
@@ -111,6 +115,9 @@ declare const dataAssets: DataAssetsAPI;
|
|
|
111
115
|
declare const dataConnections: DataConnectionsAPI;
|
|
112
116
|
declare const dataCredentials: DataCredentialsAPI;
|
|
113
117
|
declare const dataFiles: DataFilesAPI;
|
|
118
|
+
declare const dataGovernance: {
|
|
119
|
+
dataProducts: DataProductsAPI;
|
|
120
|
+
};
|
|
114
121
|
declare const dataQualities: DataQualitiesAPI;
|
|
115
122
|
declare const dataSets: DataSetsAPI;
|
|
116
123
|
declare const dataSources: DataSourcesAPI;
|
|
@@ -143,6 +150,7 @@ declare const sharingTasks: SharingTasksAPI;
|
|
|
143
150
|
declare const spaces: SpacesAPI;
|
|
144
151
|
declare const tasks: TasksAPI;
|
|
145
152
|
declare const tempContents: TempContentsAPI;
|
|
153
|
+
declare const tenantSettings: TenantSettingsAPI;
|
|
146
154
|
declare const tenants: TenantsAPI;
|
|
147
155
|
declare const themes: ThemesAPI;
|
|
148
156
|
declare const transports: TransportsAPI;
|
|
@@ -208,6 +216,10 @@ interface QlikAPI {
|
|
|
208
216
|
dataCredentials: DataCredentialsAPI;
|
|
209
217
|
/** Functions for the dataFiles api */
|
|
210
218
|
dataFiles: DataFilesAPI;
|
|
219
|
+
/** Functions for the dataGovernance api */
|
|
220
|
+
dataGovernance: DataGovernanceAPI & {
|
|
221
|
+
dataProducts: DataProductsAPI;
|
|
222
|
+
};
|
|
211
223
|
/** Functions for the dataQualities api */
|
|
212
224
|
dataQualities: DataQualitiesAPI;
|
|
213
225
|
/** Functions for the dataSets api */
|
|
@@ -272,6 +284,8 @@ interface QlikAPI {
|
|
|
272
284
|
tasks: TasksAPI;
|
|
273
285
|
/** Functions for the tempContents api */
|
|
274
286
|
tempContents: TempContentsAPI;
|
|
287
|
+
/** Functions for the tenantSettings api */
|
|
288
|
+
tenantSettings: TenantSettingsAPI;
|
|
275
289
|
/** Functions for the tenants api */
|
|
276
290
|
tenants: TenantsAPI;
|
|
277
291
|
/** Functions for the themes api */
|
|
@@ -300,4 +314,4 @@ declare const api: QlikAPI & {
|
|
|
300
314
|
}) => QlikAPI;
|
|
301
315
|
};
|
|
302
316
|
//#endregion
|
|
303
|
-
export { CreateQlikApiProps, QlikAPI, analytics, apiKeys, apps, assistants, audits, auth, automationConnections, automationConnectors, automations, automlDeployments, automlPredictions, banners, brands, collections, conditions, consumption, core, createQlikApi, cspOrigins, csrfToken, dataAlerts, dataAssets, dataConnections, dataCredentials, dataFiles, dataQualities, dataSets, dataSources, dataStores, dcaas, api as default, diProjects, directAccessAgents, encryption, extensions, glossaries, groups, identityProviders, interceptors, items, knowledgebases, licenses, lineageGraphs, ml, notes, notifications, oauthClients, oauthTokens, qix, questions, quotas, reloadTasks, reloads, reportTemplates, reports, roles, sharingTasks, spaces, tasks, tempContents, tenants, themes, transports, uiConfig, users, webIntegrations, webNotifications, webhooks };
|
|
317
|
+
export { CreateQlikApiProps, QlikAPI, analytics, apiKeys, apps, assistants, audits, auth, automationConnections, automationConnectors, automations, automlDeployments, automlPredictions, banners, brands, collections, conditions, consumption, core, createQlikApi, cspOrigins, csrfToken, dataAlerts, dataAssets, dataConnections, dataCredentials, dataFiles, dataGovernance, dataQualities, dataSets, dataSources, dataStores, dcaas, api as default, diProjects, directAccessAgents, encryption, extensions, glossaries, groups, identityProviders, interceptors, items, knowledgebases, licenses, lineageGraphs, ml, notes, notifications, oauthClients, oauthTokens, qix, questions, quotas, reloadTasks, reloads, reportTemplates, reports, roles, sharingTasks, spaces, tasks, tempContents, tenantSettings, tenants, themes, transports, uiConfig, users, webIntegrations, webNotifications, webhooks };
|
package/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
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
|
import auth_default from "./auth.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import "./chunks/boot-interceptors-DqRxTczb.js";
|
|
5
|
+
import interceptors$1 from "./interceptors.js";
|
|
6
|
+
import qix$1 from "./qix.js";
|
|
6
7
|
|
|
7
8
|
//#region src/runtime-api-generator/runtime-api-generator-common.ts
|
|
8
9
|
const methodAbbreviations = {
|
|
@@ -49,7 +50,7 @@ const ignoredProps = new Set([
|
|
|
49
50
|
* in the list of ignored-props (see 'ignoredProps' in this file) or calling the
|
|
50
51
|
* 'ownKeys' function (e.g. through Object.keys).
|
|
51
52
|
*/
|
|
52
|
-
function createLazyApiProxy(api
|
|
53
|
+
function createLazyApiProxy(api, initFunc) {
|
|
53
54
|
const handler = {
|
|
54
55
|
initiated: false,
|
|
55
56
|
init: () => {
|
|
@@ -72,12 +73,12 @@ function createLazyApiProxy(api$1, initFunc) {
|
|
|
72
73
|
return target[key];
|
|
73
74
|
}
|
|
74
75
|
};
|
|
75
|
-
return new Proxy(api
|
|
76
|
+
return new Proxy(api, handler);
|
|
76
77
|
}
|
|
77
78
|
function parseMiniApi(namespace, def) {
|
|
78
|
-
const api
|
|
79
|
-
traverse(namespace, "", def, api
|
|
80
|
-
return api
|
|
79
|
+
const api = { operations: {} };
|
|
80
|
+
traverse(namespace, "", def, api.operations);
|
|
81
|
+
return api;
|
|
81
82
|
}
|
|
82
83
|
/**
|
|
83
84
|
* traverse visits each node in the "URL-segment tree".
|
|
@@ -122,7 +123,7 @@ function traverse(namespace, parentPath, node, operations) {
|
|
|
122
123
|
* invokeFetch with the correct arguments.
|
|
123
124
|
* Query and body, if present, will be sent as arguments.
|
|
124
125
|
*/
|
|
125
|
-
function createClassicApiFn({ namespace, operationName, pathTemplate, method, argNames, hasQuery, hasBody, contentType, useInstead }, hostConfig, interceptors
|
|
126
|
+
function createClassicApiFn({ namespace, operationName, pathTemplate, method, argNames, hasQuery, hasBody, contentType, useInstead }, hostConfig, interceptors, enableConsoleWarnings, invokeFetchFnGetter) {
|
|
126
127
|
return (...args) => {
|
|
127
128
|
const pathVariables = {};
|
|
128
129
|
argNames.forEach((argName, index) => {
|
|
@@ -158,7 +159,7 @@ function createClassicApiFn({ namespace, operationName, pathTemplate, method, ar
|
|
|
158
159
|
body,
|
|
159
160
|
...contentType ? { contentType } : {},
|
|
160
161
|
options: optionsIncludingDefaultHostConfig
|
|
161
|
-
}, interceptors
|
|
162
|
+
}, interceptors?.getInterceptors());
|
|
162
163
|
};
|
|
163
164
|
}
|
|
164
165
|
|
|
@@ -175,17 +176,17 @@ const parsedMiniApis = {};
|
|
|
175
176
|
function apiDefToApiPublic(namespace, def, subApis) {
|
|
176
177
|
parsedMiniApis[namespace] = parsedMiniApis[namespace] || parseMiniApi(namespace, def);
|
|
177
178
|
const parsedMiniApi = parsedMiniApis[namespace];
|
|
178
|
-
return (hostConfig, interceptors
|
|
179
|
+
return (hostConfig, interceptors) => {
|
|
179
180
|
const lazyApi = { clearCache: () => clearApiCache(namespace) };
|
|
180
181
|
const initFunc = () => {
|
|
181
182
|
Object.entries(parsedMiniApi.operations).forEach(([operationName, operation]) => {
|
|
182
|
-
lazyApi[operationName] = createClassicApiFn(operation, hostConfig, interceptors
|
|
183
|
+
lazyApi[operationName] = createClassicApiFn(operation, hostConfig, interceptors, true, () => invokeFetch);
|
|
183
184
|
operation.oldOperationNames.forEach((oldOperationName) => {
|
|
184
185
|
lazyApi[oldOperationName] = lazyApi[operationName];
|
|
185
186
|
});
|
|
186
187
|
});
|
|
187
188
|
if (subApis) Object.entries(subApis).forEach(([apiName, apiBuilder]) => {
|
|
188
|
-
lazyApi[apiName] = apiBuilder(hostConfig, interceptors
|
|
189
|
+
lazyApi[apiName] = apiBuilder(hostConfig, interceptors);
|
|
189
190
|
});
|
|
190
191
|
};
|
|
191
192
|
return createLazyApiProxy(lazyApi, initFunc);
|
|
@@ -194,7 +195,7 @@ function apiDefToApiPublic(namespace, def, subApis) {
|
|
|
194
195
|
|
|
195
196
|
//#endregion
|
|
196
197
|
//#region src/public/interceptors.ts
|
|
197
|
-
var interceptors_default =
|
|
198
|
+
var interceptors_default = interceptors$1;
|
|
198
199
|
|
|
199
200
|
//#endregion
|
|
200
201
|
//#region src/public/index.ts
|
|
@@ -264,6 +265,11 @@ const createAppsRuntimeAPI = apiDefToApiPublic("apps", { api: { v1: { apps: {
|
|
|
264
265
|
},
|
|
265
266
|
objects: { "{objectId}": { actions: { "change-owner": ["updateAppObjectOwner:PBJ:"] } } },
|
|
266
267
|
owner: ["updateAppOwner:UBJ:"],
|
|
268
|
+
placement: [
|
|
269
|
+
"deleteAppPlacement:D:",
|
|
270
|
+
"getAppPlacement:G:",
|
|
271
|
+
"replaceAppPlacement:UBJ:"
|
|
272
|
+
],
|
|
267
273
|
publish: ["publishApp:PBJ:", "republishApp:UBJ:"],
|
|
268
274
|
reloads: {
|
|
269
275
|
logs: {
|
|
@@ -277,6 +283,7 @@ const createAppsRuntimeAPI = apiDefToApiPublic("apps", { api: { v1: { apps: {
|
|
|
277
283
|
actions: { count: ["countAppReportFilters:GQ:"] },
|
|
278
284
|
"{id}": [
|
|
279
285
|
"deleteAppReportFilter:D:",
|
|
286
|
+
"getAppReportFilterWithQuery:GQ:",
|
|
280
287
|
"getAppReportFilter:G:",
|
|
281
288
|
"patchAppReportFilter:ABJ:"
|
|
282
289
|
]
|
|
@@ -567,6 +574,28 @@ const createDataFilesRuntimeAPI = apiDefToApiPublic("data-files", { api: { v1: {
|
|
|
567
574
|
}
|
|
568
575
|
}
|
|
569
576
|
} } } });
|
|
577
|
+
const createDataGovernanceDataProductsRuntimeAPI = apiDefToApiPublic("data-governance/data-products", { api: { "data-governance": { "data-products": {
|
|
578
|
+
"": ["createDataProduct:PBJ:"],
|
|
579
|
+
actions: { "generate-provider-url": ["generateProviderUrlDataProducts:PQ:"] },
|
|
580
|
+
"{dataProductId}": {
|
|
581
|
+
"": [
|
|
582
|
+
"deleteDataProduct:D:",
|
|
583
|
+
"getDataProduct:G:",
|
|
584
|
+
"patchDataProduct:ABJ:"
|
|
585
|
+
],
|
|
586
|
+
actions: {
|
|
587
|
+
activate: ["activateDataProduct:PBJ:"],
|
|
588
|
+
deactivate: ["deactivateDataProduct:P:"],
|
|
589
|
+
"export-documentation": ["exportDocumentationDataProduct:G:"],
|
|
590
|
+
move: ["moveDataProduct:PBJ:"]
|
|
591
|
+
},
|
|
592
|
+
changelogs: ["getDataProductChangelogs:GQ:"]
|
|
593
|
+
}
|
|
594
|
+
} } } });
|
|
595
|
+
const createDataGovernanceRuntimeAPI = apiDefToApiPublic("data-governance", {}, {
|
|
596
|
+
"data-products": createDataGovernanceDataProductsRuntimeAPI,
|
|
597
|
+
dataProducts: createDataGovernanceDataProductsRuntimeAPI
|
|
598
|
+
});
|
|
570
599
|
const createDataQualitiesRuntimeAPI = apiDefToApiPublic("data-qualities", { api: { v1: { "data-qualities": {
|
|
571
600
|
computations: {
|
|
572
601
|
"": ["triggerDataQualitiesComputation:PBJ:"],
|
|
@@ -631,6 +660,7 @@ const createDiProjectsRuntimeAPI = apiDefToApiPublic("di-projects", { api: { v1:
|
|
|
631
660
|
"": ["getDiProjectDiTask:G:"],
|
|
632
661
|
actions: {
|
|
633
662
|
prepare: ["prepareDiProjectDiTask:PBJ:"],
|
|
663
|
+
"recreate-datasets": ["recreateDatasetsDiProjectDiTask:PBJ:"],
|
|
634
664
|
"request-reload": ["requestReloadDiProjectDiTask:PBJ:"],
|
|
635
665
|
validate: ["validateDiProjectDiTask:PBJ:"]
|
|
636
666
|
},
|
|
@@ -1066,6 +1096,16 @@ const createTempContentsRuntimeAPI = apiDefToApiPublic("temp-contents", { api: {
|
|
|
1066
1096
|
details: ["getTempFileDetails:G:"]
|
|
1067
1097
|
}
|
|
1068
1098
|
} } } });
|
|
1099
|
+
const createTenantSettingsRuntimeAPI = apiDefToApiPublic("tenant-settings", { api: { v1: { "tenant-settings": {
|
|
1100
|
+
"": [
|
|
1101
|
+
"deleteTenantSettings:D:",
|
|
1102
|
+
"getTenantSettings:G:",
|
|
1103
|
+
"updateTenantSettings:ABJ:",
|
|
1104
|
+
"createTenantSettings:PBJ:"
|
|
1105
|
+
],
|
|
1106
|
+
actions: { "toggle-cross-region-data-processing": ["toggleCrossRegionDataProcessingTenantSettings:PBJ:"] },
|
|
1107
|
+
"start-pages": ["getStartPages:G:"]
|
|
1108
|
+
} } } });
|
|
1069
1109
|
const createTenantsRuntimeAPI = apiDefToApiPublic("tenants", { api: { v1: { tenants: {
|
|
1070
1110
|
"": ["createTenant:PBJ:"],
|
|
1071
1111
|
me: ["getMyTenant:G:"],
|
|
@@ -1168,7 +1208,7 @@ const createWebhooksRuntimeAPI = apiDefToApiPublic("webhooks", { api: { v1: { we
|
|
|
1168
1208
|
} } } });
|
|
1169
1209
|
const auth = auth_default;
|
|
1170
1210
|
const interceptors = interceptors_default;
|
|
1171
|
-
const qix =
|
|
1211
|
+
const qix = qix$1;
|
|
1172
1212
|
const analytics = createAnalyticsRuntimeAPI(void 0, interceptors_default);
|
|
1173
1213
|
const apiKeys = createApiKeysRuntimeAPI(void 0, interceptors_default);
|
|
1174
1214
|
const apps = createAppsRuntimeAPI(void 0, interceptors_default);
|
|
@@ -1192,6 +1232,7 @@ const dataAssets = createDataAssetsRuntimeAPI(void 0, interceptors_default);
|
|
|
1192
1232
|
const dataConnections = createDataConnectionsRuntimeAPI(void 0, interceptors_default);
|
|
1193
1233
|
const dataCredentials = createDataCredentialsRuntimeAPI(void 0, interceptors_default);
|
|
1194
1234
|
const dataFiles = createDataFilesRuntimeAPI(void 0, interceptors_default);
|
|
1235
|
+
const dataGovernance = createDataGovernanceRuntimeAPI(void 0, interceptors_default);
|
|
1195
1236
|
const dataQualities = createDataQualitiesRuntimeAPI(void 0, interceptors_default);
|
|
1196
1237
|
const dataSets = createDataSetsRuntimeAPI(void 0, interceptors_default);
|
|
1197
1238
|
const dataSources = createDataSourcesRuntimeAPI(void 0, interceptors_default);
|
|
@@ -1224,6 +1265,7 @@ const sharingTasks = createSharingTasksRuntimeAPI(void 0, interceptors_default);
|
|
|
1224
1265
|
const spaces = createSpacesRuntimeAPI(void 0, interceptors_default);
|
|
1225
1266
|
const tasks = createTasksRuntimeAPI(void 0, interceptors_default);
|
|
1226
1267
|
const tempContents = createTempContentsRuntimeAPI(void 0, interceptors_default);
|
|
1268
|
+
const tenantSettings = createTenantSettingsRuntimeAPI(void 0, interceptors_default);
|
|
1227
1269
|
const tenants = createTenantsRuntimeAPI(void 0, interceptors_default);
|
|
1228
1270
|
const themes = createThemesRuntimeAPI(void 0, interceptors_default);
|
|
1229
1271
|
const transports = createTransportsRuntimeAPI(void 0, interceptors_default);
|
|
@@ -1237,7 +1279,7 @@ const createQlikApi = (props) => {
|
|
|
1237
1279
|
return {
|
|
1238
1280
|
auth: auth_default,
|
|
1239
1281
|
interceptors: scopedInterceptors,
|
|
1240
|
-
qix:
|
|
1282
|
+
qix: qix$1.withHostConfig(props?.hostConfig),
|
|
1241
1283
|
analytics: createAnalyticsRuntimeAPI(props?.hostConfig, scopedInterceptors),
|
|
1242
1284
|
apiKeys: createApiKeysRuntimeAPI(props?.hostConfig, scopedInterceptors),
|
|
1243
1285
|
apps: createAppsRuntimeAPI(props?.hostConfig, scopedInterceptors),
|
|
@@ -1261,6 +1303,7 @@ const createQlikApi = (props) => {
|
|
|
1261
1303
|
dataConnections: createDataConnectionsRuntimeAPI(props?.hostConfig, scopedInterceptors),
|
|
1262
1304
|
dataCredentials: createDataCredentialsRuntimeAPI(props?.hostConfig, scopedInterceptors),
|
|
1263
1305
|
dataFiles: createDataFilesRuntimeAPI(props?.hostConfig, scopedInterceptors),
|
|
1306
|
+
dataGovernance: createDataGovernanceRuntimeAPI(props?.hostConfig, scopedInterceptors),
|
|
1264
1307
|
dataQualities: createDataQualitiesRuntimeAPI(props?.hostConfig, scopedInterceptors),
|
|
1265
1308
|
dataSets: createDataSetsRuntimeAPI(props?.hostConfig, scopedInterceptors),
|
|
1266
1309
|
dataSources: createDataSourcesRuntimeAPI(props?.hostConfig, scopedInterceptors),
|
|
@@ -1293,6 +1336,7 @@ const createQlikApi = (props) => {
|
|
|
1293
1336
|
spaces: createSpacesRuntimeAPI(props?.hostConfig, scopedInterceptors),
|
|
1294
1337
|
tasks: createTasksRuntimeAPI(props?.hostConfig, scopedInterceptors),
|
|
1295
1338
|
tempContents: createTempContentsRuntimeAPI(props?.hostConfig, scopedInterceptors),
|
|
1339
|
+
tenantSettings: createTenantSettingsRuntimeAPI(props?.hostConfig, scopedInterceptors),
|
|
1296
1340
|
tenants: createTenantsRuntimeAPI(props?.hostConfig, scopedInterceptors),
|
|
1297
1341
|
themes: createThemesRuntimeAPI(props?.hostConfig, scopedInterceptors),
|
|
1298
1342
|
transports: createTransportsRuntimeAPI(props?.hostConfig, scopedInterceptors),
|
|
@@ -1331,6 +1375,7 @@ const api = {
|
|
|
1331
1375
|
dataConnections,
|
|
1332
1376
|
dataCredentials,
|
|
1333
1377
|
dataFiles,
|
|
1378
|
+
dataGovernance,
|
|
1334
1379
|
dataQualities,
|
|
1335
1380
|
dataSets,
|
|
1336
1381
|
dataSources,
|
|
@@ -1363,6 +1408,7 @@ const api = {
|
|
|
1363
1408
|
spaces,
|
|
1364
1409
|
tasks,
|
|
1365
1410
|
tempContents,
|
|
1411
|
+
tenantSettings,
|
|
1366
1412
|
tenants,
|
|
1367
1413
|
themes,
|
|
1368
1414
|
transports,
|
|
@@ -1373,7 +1419,6 @@ const api = {
|
|
|
1373
1419
|
webhooks,
|
|
1374
1420
|
createQlikApi
|
|
1375
1421
|
};
|
|
1376
|
-
var public_default = api;
|
|
1377
1422
|
|
|
1378
1423
|
//#endregion
|
|
1379
|
-
export { analytics, apiKeys, apps, assistants, audits, auth, automationConnections, automationConnectors, automations, automlDeployments, automlPredictions, banners, brands, collections, conditions, consumption, core, createQlikApi, cspOrigins, csrfToken, dataAlerts, dataAssets, dataConnections, dataCredentials, dataFiles, dataQualities, dataSets, dataSources, dataStores, dcaas,
|
|
1424
|
+
export { analytics, apiKeys, apps, assistants, audits, auth, automationConnections, automationConnectors, automations, automlDeployments, automlPredictions, banners, brands, collections, conditions, consumption, core, createQlikApi, cspOrigins, csrfToken, dataAlerts, dataAssets, dataConnections, dataCredentials, dataFiles, dataGovernance, dataQualities, dataSets, dataSources, dataStores, dcaas, api as default, diProjects, directAccessAgents, encryption, extensions, glossaries, groups, identityProviders, interceptors, items, knowledgebases, licenses, lineageGraphs, ml, notes, notifications, oauthClients, oauthTokens, qix, questions, quotas, reloadTasks, reloads, reportTemplates, reports, roles, sharingTasks, spaces, tasks, tempContents, tenantSettings, tenants, themes, transports, uiConfig, users, webIntegrations, webNotifications, webhooks };
|
package/interceptors.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./chunks/invoke-fetch-
|
|
1
|
+
import { InvokeFetchProperties, InvokeFetchResponse } from "./invoke-fetch-types.js";
|
|
2
|
+
import "./chunks/invoke-fetch-DFc3yzaj.js";
|
|
3
3
|
|
|
4
4
|
//#region src/interceptors/interceptors.d.ts
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* The RestInterceptor type is a function that can be used to intercept requests and responses
|
|
8
7
|
*/
|
package/interceptors.js
CHANGED
|
@@ -1,3 +1,105 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as isBrowser } from "./chunks/utils-jkpLuYZR.js";
|
|
2
|
+
import { t as coreBootInterceptor } from "./chunks/boot-interceptors-DqRxTczb.js";
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
//#region src/interceptors/interceptors.ts
|
|
5
|
+
let GLOBAL_INTERCEPTORS;
|
|
6
|
+
function createInterceptors() {
|
|
7
|
+
const interceptors = [...GLOBAL_INTERCEPTORS?.getInterceptors() || []];
|
|
8
|
+
return {
|
|
9
|
+
addInterceptor: (interceptor) => {
|
|
10
|
+
interceptors.push(interceptor);
|
|
11
|
+
return interceptor;
|
|
12
|
+
},
|
|
13
|
+
removeInterceptor: (interceptor) => {
|
|
14
|
+
const index = interceptors.indexOf(interceptor);
|
|
15
|
+
let removed;
|
|
16
|
+
if (index !== -1) removed = interceptors.splice(index, 1)[0];
|
|
17
|
+
return removed || null;
|
|
18
|
+
},
|
|
19
|
+
getInterceptors: () => interceptors
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
let addDefaultInterceptorsRun = false;
|
|
23
|
+
function addDefaultInterceptors() {
|
|
24
|
+
if (addDefaultInterceptorsRun) return;
|
|
25
|
+
if (isBrowser()) {
|
|
26
|
+
const readFlagsFromUrlQuery = () => {
|
|
27
|
+
const featuresParam = new URLSearchParams(window.location.search).get("features");
|
|
28
|
+
if (!featuresParam) return {};
|
|
29
|
+
return featuresParam.split(",").map((item) => item.trim()).reduce((map, obj) => {
|
|
30
|
+
const value = !obj.startsWith("!");
|
|
31
|
+
const key = value ? obj : obj.substring(1);
|
|
32
|
+
map[key] = value;
|
|
33
|
+
return map;
|
|
34
|
+
}, {});
|
|
35
|
+
};
|
|
36
|
+
const readFlagsFromLocalStorage = () => {
|
|
37
|
+
try {
|
|
38
|
+
const featuresParam = localStorage.getItem("qcs-features");
|
|
39
|
+
if (featuresParam) return JSON.parse(featuresParam);
|
|
40
|
+
return {};
|
|
41
|
+
} catch {
|
|
42
|
+
return {};
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
const flagsFromUrl = readFlagsFromUrlQuery();
|
|
46
|
+
const flagsFromLocalStorage = readFlagsFromLocalStorage();
|
|
47
|
+
const featuresInterceptor = async (request, proceed) => {
|
|
48
|
+
let resultPromise;
|
|
49
|
+
if (request.pathTemplate === "/api/v1/features") {
|
|
50
|
+
resultPromise = proceed(request);
|
|
51
|
+
const result = await resultPromise;
|
|
52
|
+
return {
|
|
53
|
+
...result,
|
|
54
|
+
data: {
|
|
55
|
+
...result.data || {},
|
|
56
|
+
...flagsFromLocalStorage,
|
|
57
|
+
...flagsFromUrl
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
return proceed(request);
|
|
62
|
+
};
|
|
63
|
+
GLOBAL_INTERCEPTORS.addInterceptor(featuresInterceptor);
|
|
64
|
+
GLOBAL_INTERCEPTORS.addInterceptor(coreBootInterceptor);
|
|
65
|
+
}
|
|
66
|
+
addDefaultInterceptorsRun = true;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* The global interceptor stack
|
|
70
|
+
*/
|
|
71
|
+
GLOBAL_INTERCEPTORS = createInterceptors();
|
|
72
|
+
/**
|
|
73
|
+
* Adds an interceptor to the global interceptor stack
|
|
74
|
+
* Returns the newly added interceptor
|
|
75
|
+
* @param interceptor the interceptor to add
|
|
76
|
+
* @returns the newly added interceptor
|
|
77
|
+
*/
|
|
78
|
+
function addInterceptor(interceptor) {
|
|
79
|
+
return GLOBAL_INTERCEPTORS.addInterceptor(interceptor);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Removes an interceptor from the global interceptor stack
|
|
83
|
+
* @param interceptor the interceptor remove
|
|
84
|
+
*/
|
|
85
|
+
function removeInterceptor(interceptor) {
|
|
86
|
+
return GLOBAL_INTERCEPTORS.removeInterceptor(interceptor);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Gets all registered interceptors
|
|
90
|
+
*/
|
|
91
|
+
function getInterceptors() {
|
|
92
|
+
return GLOBAL_INTERCEPTORS.getInterceptors();
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* The interceptors API
|
|
96
|
+
*/
|
|
97
|
+
const interceptors = {
|
|
98
|
+
addInterceptor,
|
|
99
|
+
removeInterceptor,
|
|
100
|
+
getInterceptors,
|
|
101
|
+
createInterceptors
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
//#endregion
|
|
105
|
+
export { addDefaultInterceptors, addInterceptor, createInterceptors, interceptors as default, getInterceptors, removeInterceptor };
|
package/invoke-fetch-types.d.ts
CHANGED
|
@@ -1,2 +1,98 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HostConfig } from "./auth-types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/invoke-fetch/invoke-fetch-types.d.ts
|
|
4
|
+
/** The typical base return type of a fetch call */
|
|
5
|
+
type InvokeFetchResponse = {
|
|
6
|
+
status: number;
|
|
7
|
+
headers: Headers;
|
|
8
|
+
data: unknown;
|
|
9
|
+
prev?: () => Promise<InvokeFetchResponse>;
|
|
10
|
+
next?: () => Promise<InvokeFetchResponse>;
|
|
11
|
+
};
|
|
12
|
+
/** An entry in the cache for one specific cacheKey */
|
|
13
|
+
type CacheEntry = {
|
|
14
|
+
lastPulled: number; /** last time the cache was accessed and prevented an api call */
|
|
15
|
+
lastHit: Date | null; /** number of times the cache has been hit by a client */
|
|
16
|
+
hitCount: number; /** the url path of the cache hit. Useful to determine how many different qmfes are accessing the cache key */
|
|
17
|
+
accessedPaths: Set<string>;
|
|
18
|
+
value: Promise<unknown>;
|
|
19
|
+
};
|
|
20
|
+
/** Part of the ApiOptions type that includes caching-related properties */
|
|
21
|
+
type CacheOptions = {
|
|
22
|
+
noCache?: boolean;
|
|
23
|
+
maxCacheAge?: number;
|
|
24
|
+
useCacheIfAfter?: Date;
|
|
25
|
+
};
|
|
26
|
+
/** Additional options for an api call done with invoke-fetch */
|
|
27
|
+
type ApiCallOptions = {
|
|
28
|
+
/** Additional headers to pass on to the request. */headers?: Record<string, string>; /** if set to true the call will not use a cached result */
|
|
29
|
+
noCache?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Only used cached results whose age in milliseconds are less than that or equal to `maxCacheAge`.
|
|
32
|
+
*/
|
|
33
|
+
maxCacheAge?: number | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Only results cached on or after the `ifCachedSince` timestamp are used.
|
|
36
|
+
*/
|
|
37
|
+
useCacheIfAfter?: Date;
|
|
38
|
+
/**
|
|
39
|
+
* Specify the host config if the api call is a cross-domain request. Typically used in embedding and mashups
|
|
40
|
+
*/
|
|
41
|
+
hostConfig?: HostConfig;
|
|
42
|
+
/**
|
|
43
|
+
* Set the amount of time to wait for a response.
|
|
44
|
+
* If the timeout is exceeded the request is aborted.
|
|
45
|
+
* If both timeoutMs and signal is present, timeoutMs will have no effect, as
|
|
46
|
+
* there is already an abort-signal specified.
|
|
47
|
+
*/
|
|
48
|
+
timeoutMs?: number;
|
|
49
|
+
/**
|
|
50
|
+
* An abort-signal lets you abort an ongoing fetch request. The abort-signal is created
|
|
51
|
+
* by taking the .signal property of an AbortController.
|
|
52
|
+
*/
|
|
53
|
+
signal?: AbortSignal;
|
|
54
|
+
/**
|
|
55
|
+
* Ensure that the request is kept alive even if the page that initiated it is unloaded
|
|
56
|
+
* before the request is completed.
|
|
57
|
+
*/
|
|
58
|
+
keepalive?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Options for progress-reporting. Specify any combination of the callbacks `onUpload`
|
|
61
|
+
* and `onDownload`. Progress will be reported continuously.
|
|
62
|
+
*/
|
|
63
|
+
progress?: ProgressOptions;
|
|
64
|
+
};
|
|
65
|
+
type InvokeFetchProperties = {
|
|
66
|
+
/** http method */method: string; /** data passed to api call */
|
|
67
|
+
body?: unknown; /** additional api call options */
|
|
68
|
+
options?: ApiCallOptions; /** override default RequestInit options */
|
|
69
|
+
requestInitOverrides?: RequestInit; /** path to api endpoint, can be in a template format e.g. /api/v1/space/{spaceId} */
|
|
70
|
+
pathTemplate: string; /** path variables to be used in the path template */
|
|
71
|
+
pathVariables?: Record<string, string>; /** additional query to url */
|
|
72
|
+
query?: Record<string, unknown>; /** specify what content-type to send, if omitted "application/json" is assumed */
|
|
73
|
+
contentType?: string; /** override the default user-agent with this value. This will also override any browser's UA. */
|
|
74
|
+
userAgent?: string;
|
|
75
|
+
};
|
|
76
|
+
type DownloadableBlob = Blob & {
|
|
77
|
+
/** download the blob in a using the specified filename */download: (filename: string) => Promise<void>;
|
|
78
|
+
};
|
|
79
|
+
/** The callback options for reporting progress. */
|
|
80
|
+
type ProgressOptions = {
|
|
81
|
+
/** upload callback, called repeatedly when upload-progress is available */onUpload?: (event: PartialProgressEvent) => void; /** download callback, called repeatedly when upload-progress is available */
|
|
82
|
+
onDownload?: (event: PartialProgressEvent) => void;
|
|
83
|
+
};
|
|
84
|
+
/** Represents the current upload or download progress a API-call.
|
|
85
|
+
*
|
|
86
|
+
* It contains the number of loaded bytes and, if computable, the total payload size.
|
|
87
|
+
* If the total size cannot be determined, `total` will be undefined.
|
|
88
|
+
*
|
|
89
|
+
*
|
|
90
|
+
* See MDN: {@link https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent}
|
|
91
|
+
*/
|
|
92
|
+
type PartialProgressEvent = {
|
|
93
|
+
/** Number of bytes currently loaded. */loaded: ProgressEvent["loaded"]; /** The total size of the payload, if computable. */
|
|
94
|
+
total?: ProgressEvent["total"];
|
|
95
|
+
};
|
|
96
|
+
declare const _default: {};
|
|
97
|
+
//#endregion
|
|
2
98
|
export { ApiCallOptions, CacheEntry, CacheOptions, DownloadableBlob, InvokeFetchProperties, InvokeFetchResponse, PartialProgressEvent, ProgressOptions, _default as default };
|