@qlik/api 1.19.0 → 1.20.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.js +2 -2
- package/apps.js +2 -2
- package/audits.js +2 -2
- package/auth.d.ts +24 -1
- package/auth.js +2 -2
- package/automations.js +2 -2
- package/brands.js +2 -2
- package/chunks/{GLS4DAZ4.js → 4VH5O5UL.js} +1 -1
- package/chunks/{ILZFMC3L.js → 4XKAFB25.js} +19 -3
- package/chunks/{AKBUFQRX.js → DT5F6REC.js} +1 -1
- package/chunks/{VISO65GO.js → IMLCMV4X.js} +3 -3
- package/chunks/{J6G5ZOKI.js → MP5FOM4F.js} +1 -1
- package/chunks/{KKAWWYOT.js → MX5NVZPW.js} +11 -2
- package/chunks/{63L3IUY2.js → OQWY73NC.js} +29 -5
- package/chunks/{BOJLTXK6.js → T6AQ34ZJ.js} +2 -2
- package/chunks/{64RJJHEL.js → TEGSUED7.js} +3 -1
- package/chunks/{P5AG7AME.js → Z37XXMYQ.js} +1 -1
- package/collections.js +2 -2
- package/csp-origins.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/docs/authentication.md +30 -1
- package/extensions.js +2 -2
- package/glossaries.js +2 -2
- package/groups.d.ts +16 -4
- package/groups.js +2 -2
- package/identity-providers.js +2 -2
- package/index.d.ts +47 -40
- package/index.js +189 -84
- package/items.js +2 -2
- package/licenses.d.ts +1 -1
- package/licenses.js +2 -2
- package/package.json +2 -2
- package/qix.d.ts +19 -8
- package/qix.js +6 -4
- package/quotas.js +2 -2
- package/reload-tasks.js +2 -2
- package/reloads.d.ts +1 -1
- package/reloads.js +2 -2
- package/reports.d.ts +2 -0
- package/reports.js +2 -2
- package/roles.js +2 -2
- package/spaces.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/users.d.ts +2 -0
- package/users.js +2 -2
- package/web-integrations.js +2 -2
- package/web-notifications.js +2 -2
- package/webhooks.js +2 -2
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { registerAuthModule, setDefaultHostConfig, getAccessToken, AuthAPI } from './auth.js';
|
|
2
|
+
import { QixAPI } from './qix.js';
|
|
3
3
|
import { ApiKeysAPI } from './api-keys.js';
|
|
4
4
|
import { AppsAPI } from './apps.js';
|
|
5
5
|
import { AuditsAPI } from './audits.js';
|
|
@@ -31,8 +31,8 @@ import { UsersAPI } from './users.js';
|
|
|
31
31
|
import { WebIntegrationsAPI } from './web-integrations.js';
|
|
32
32
|
import { WebNotificationsAPI } from './web-notifications.js';
|
|
33
33
|
import { WebhooksAPI } from './webhooks.js';
|
|
34
|
+
import { H as HostConfig } from './auth-types-PkN9CAF_.js';
|
|
34
35
|
import './global.types--37uwGji.js';
|
|
35
|
-
import './auth-types-PkN9CAF_.js';
|
|
36
36
|
|
|
37
37
|
declare const apiKeys: ApiKeysAPI;
|
|
38
38
|
declare const apps: AppsAPI;
|
|
@@ -56,8 +56,8 @@ declare const groups: GroupsAPI;
|
|
|
56
56
|
declare const identityProviders: IdentityProvidersAPI;
|
|
57
57
|
declare const items: ItemsAPI;
|
|
58
58
|
declare const licenses: LicensesAPI;
|
|
59
|
-
declare const qix: {
|
|
60
|
-
|
|
59
|
+
declare const qix: QixAPI & {
|
|
60
|
+
withHostConfig: (hostConfig: HostConfig | undefined) => QixAPI;
|
|
61
61
|
};
|
|
62
62
|
declare const quotas: QuotasAPI;
|
|
63
63
|
declare const reloadTasks: ReloadTasksAPI;
|
|
@@ -75,73 +75,80 @@ declare const webNotifications: WebNotificationsAPI;
|
|
|
75
75
|
declare const webhooks: WebhooksAPI;
|
|
76
76
|
interface QlikAPI {
|
|
77
77
|
/** Functions for the apiKeys api */
|
|
78
|
-
apiKeys:
|
|
78
|
+
apiKeys: ApiKeysAPI;
|
|
79
79
|
/** Functions for the apps api */
|
|
80
|
-
apps:
|
|
80
|
+
apps: AppsAPI;
|
|
81
81
|
/** Functions for the audits api */
|
|
82
|
-
audits:
|
|
82
|
+
audits: AuditsAPI;
|
|
83
83
|
/** Functions for the auth api */
|
|
84
|
-
auth:
|
|
84
|
+
auth: AuthAPI;
|
|
85
85
|
/** Functions for the automations api */
|
|
86
|
-
automations:
|
|
86
|
+
automations: AutomationsAPI;
|
|
87
87
|
/** Functions for the brands api */
|
|
88
|
-
brands:
|
|
88
|
+
brands: BrandsAPI;
|
|
89
89
|
/** Functions for the collections api */
|
|
90
|
-
collections:
|
|
90
|
+
collections: CollectionsAPI;
|
|
91
91
|
/** Functions for the cspOrigins api */
|
|
92
|
-
cspOrigins:
|
|
92
|
+
cspOrigins: CspOriginsAPI;
|
|
93
93
|
/** Functions for the dataAssets api */
|
|
94
|
-
dataAssets:
|
|
94
|
+
dataAssets: DataAssetsAPI;
|
|
95
95
|
/** Functions for the dataConnections api */
|
|
96
|
-
dataConnections:
|
|
96
|
+
dataConnections: DataConnectionsAPI;
|
|
97
97
|
/** Functions for the dataCredentials api */
|
|
98
|
-
dataCredentials:
|
|
98
|
+
dataCredentials: DataCredentialsAPI;
|
|
99
99
|
/** Functions for the dataFiles api */
|
|
100
|
-
dataFiles:
|
|
100
|
+
dataFiles: DataFilesAPI;
|
|
101
101
|
/** Functions for the extensions api */
|
|
102
|
-
extensions:
|
|
102
|
+
extensions: ExtensionsAPI;
|
|
103
103
|
/** Functions for the glossaries api */
|
|
104
|
-
glossaries:
|
|
104
|
+
glossaries: GlossariesAPI;
|
|
105
105
|
/** Functions for the groups api */
|
|
106
|
-
groups:
|
|
106
|
+
groups: GroupsAPI;
|
|
107
107
|
/** Functions for the identityProviders api */
|
|
108
|
-
identityProviders:
|
|
108
|
+
identityProviders: IdentityProvidersAPI;
|
|
109
109
|
/** Functions for the items api */
|
|
110
|
-
items:
|
|
110
|
+
items: ItemsAPI;
|
|
111
111
|
/** Functions for the licenses api */
|
|
112
|
-
licenses:
|
|
112
|
+
licenses: LicensesAPI;
|
|
113
113
|
/** Functions for the qix api */
|
|
114
|
-
qix:
|
|
114
|
+
qix: QixAPI;
|
|
115
115
|
/** Functions for the quotas api */
|
|
116
|
-
quotas:
|
|
116
|
+
quotas: QuotasAPI;
|
|
117
117
|
/** Functions for the reloadTasks api */
|
|
118
|
-
reloadTasks:
|
|
118
|
+
reloadTasks: ReloadTasksAPI;
|
|
119
119
|
/** Functions for the reloads api */
|
|
120
|
-
reloads:
|
|
120
|
+
reloads: ReloadsAPI;
|
|
121
121
|
/** Functions for the reports api */
|
|
122
|
-
reports:
|
|
122
|
+
reports: ReportsAPI;
|
|
123
123
|
/** Functions for the roles api */
|
|
124
|
-
roles:
|
|
124
|
+
roles: RolesAPI;
|
|
125
125
|
/** Functions for the spaces api */
|
|
126
|
-
spaces:
|
|
126
|
+
spaces: SpacesAPI;
|
|
127
127
|
/** Functions for the tempContents api */
|
|
128
|
-
tempContents:
|
|
128
|
+
tempContents: TempContentsAPI;
|
|
129
129
|
/** Functions for the tenants api */
|
|
130
|
-
tenants:
|
|
130
|
+
tenants: TenantsAPI;
|
|
131
131
|
/** Functions for the themes api */
|
|
132
|
-
themes:
|
|
132
|
+
themes: ThemesAPI;
|
|
133
133
|
/** Functions for the transports api */
|
|
134
|
-
transports:
|
|
134
|
+
transports: TransportsAPI;
|
|
135
135
|
/** Functions for the users api */
|
|
136
|
-
users:
|
|
136
|
+
users: UsersAPI;
|
|
137
137
|
/** Functions for the webIntegrations api */
|
|
138
|
-
webIntegrations:
|
|
138
|
+
webIntegrations: WebIntegrationsAPI;
|
|
139
139
|
/** Functions for the webNotifications api */
|
|
140
|
-
webNotifications:
|
|
140
|
+
webNotifications: WebNotificationsAPI;
|
|
141
141
|
/** Functions for the webhooks api */
|
|
142
|
-
webhooks:
|
|
142
|
+
webhooks: WebhooksAPI;
|
|
143
143
|
}
|
|
144
|
+
declare const createQlikApi: (props?: {
|
|
145
|
+
hostConfig?: HostConfig;
|
|
146
|
+
}) => QlikAPI;
|
|
144
147
|
/** Javascript/Typescript bindings to Qlik's platform API's */
|
|
145
|
-
declare const api: QlikAPI
|
|
148
|
+
declare const api: QlikAPI & {
|
|
149
|
+
createQlikApi: (props?: {
|
|
150
|
+
hostConfig?: HostConfig;
|
|
151
|
+
}) => QlikAPI;
|
|
152
|
+
};
|
|
146
153
|
|
|
147
|
-
export { type QlikAPI, apiKeys, apps, audits, auth, automations, brands, collections, cspOrigins, dataAssets, dataConnections, dataCredentials, dataFiles, api as default, extensions, glossaries, groups, identityProviders, items, licenses, qix, quotas, reloadTasks, reloads, reports, roles, spaces, tempContents, tenants, themes, transports, users, webIntegrations, webNotifications, webhooks };
|
|
154
|
+
export { type QlikAPI, apiKeys, apps, audits, auth, automations, brands, collections, createQlikApi, cspOrigins, dataAssets, dataConnections, dataCredentials, dataFiles, api as default, extensions, glossaries, groups, identityProviders, items, licenses, qix, quotas, reloadTasks, reloads, reports, roles, spaces, tempContents, tenants, themes, transports, users, webIntegrations, webNotifications, webhooks };
|
package/index.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
qix_default
|
|
3
|
-
} from "./chunks/
|
|
3
|
+
} from "./chunks/MX5NVZPW.js";
|
|
4
4
|
import {
|
|
5
5
|
auth_default
|
|
6
|
-
} from "./chunks/
|
|
6
|
+
} from "./chunks/MP5FOM4F.js";
|
|
7
|
+
import "./chunks/OQWY73NC.js";
|
|
7
8
|
import {
|
|
8
9
|
clearApiCache,
|
|
9
10
|
invokeFetch
|
|
10
|
-
} from "./chunks/
|
|
11
|
-
import "./chunks/
|
|
11
|
+
} from "./chunks/T6AQ34ZJ.js";
|
|
12
|
+
import "./chunks/IMLCMV4X.js";
|
|
12
13
|
import "./chunks/2ZQ3ZX7F.js";
|
|
13
14
|
|
|
14
|
-
// src/
|
|
15
|
+
// src/runtime-api-generator/runtime-api-generator-common.ts
|
|
15
16
|
var methodAbbreviations = {
|
|
16
17
|
G: "GET",
|
|
17
18
|
P: "POST",
|
|
@@ -45,18 +46,18 @@ function contentTypeCharToContentType(typeChar) {
|
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
48
|
var ignoredProps = /* @__PURE__ */ new Set(["$$typeof", "then", "__esmodule"]);
|
|
48
|
-
function
|
|
49
|
-
const
|
|
49
|
+
function createLazyApiProxy(api2, initFunc) {
|
|
50
|
+
const handler = {
|
|
50
51
|
initiated: false,
|
|
51
52
|
init: () => {
|
|
52
|
-
if (!
|
|
53
|
+
if (!handler.initiated) {
|
|
53
54
|
initFunc();
|
|
54
|
-
|
|
55
|
+
handler.initiated = true;
|
|
55
56
|
}
|
|
56
57
|
},
|
|
57
58
|
ownKeys(target) {
|
|
58
|
-
if (!
|
|
59
|
-
|
|
59
|
+
if (!handler.initiated) {
|
|
60
|
+
handler.init();
|
|
60
61
|
}
|
|
61
62
|
return Object.keys(target);
|
|
62
63
|
},
|
|
@@ -64,36 +65,29 @@ function createLazyApi(api2, initFunc) {
|
|
|
64
65
|
if (ignoredProps.has(key)) {
|
|
65
66
|
return false;
|
|
66
67
|
}
|
|
67
|
-
if (!
|
|
68
|
-
|
|
68
|
+
if (!handler.initiated) {
|
|
69
|
+
handler.init();
|
|
69
70
|
}
|
|
70
71
|
return !!target[key];
|
|
71
72
|
},
|
|
72
73
|
get(target, key) {
|
|
73
|
-
if (!ignoredProps.has(key) && !
|
|
74
|
-
|
|
74
|
+
if (!ignoredProps.has(key) && !handler.initiated) {
|
|
75
|
+
handler.init();
|
|
75
76
|
}
|
|
76
77
|
return target[key];
|
|
77
78
|
}
|
|
78
79
|
};
|
|
79
|
-
return new Proxy(api2,
|
|
80
|
+
return new Proxy(api2, handler);
|
|
80
81
|
}
|
|
81
|
-
|
|
82
|
-
function apiDefToApi(namespace, def) {
|
|
83
|
-
if (namespace in runtimeApiCache) {
|
|
84
|
-
return runtimeApiCache[namespace];
|
|
85
|
-
}
|
|
82
|
+
function parseMiniApi(namespace, def) {
|
|
86
83
|
const api2 = {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
const initFunc = () => {
|
|
90
|
-
traverse(namespace, "", def, api2);
|
|
84
|
+
interceptors: {},
|
|
85
|
+
operations: {}
|
|
91
86
|
};
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
return lazyApi;
|
|
87
|
+
traverse(namespace, "", def, api2.operations);
|
|
88
|
+
return api2;
|
|
95
89
|
}
|
|
96
|
-
function traverse(namespace, parentPath, node,
|
|
90
|
+
function traverse(namespace, parentPath, node, operations) {
|
|
97
91
|
Object.entries(node).forEach(([key, value]) => {
|
|
98
92
|
const pathTemplate = key ? `${parentPath}/${key}` : parentPath;
|
|
99
93
|
if (Array.isArray(value)) {
|
|
@@ -111,7 +105,7 @@ function traverse(namespace, parentPath, node, resultingApi) {
|
|
|
111
105
|
contentType = contentTypeCharToContentType(options[bodyIndex + 1]);
|
|
112
106
|
}
|
|
113
107
|
}
|
|
114
|
-
|
|
108
|
+
operations[operationName] = {
|
|
115
109
|
namespace,
|
|
116
110
|
operationName,
|
|
117
111
|
pathTemplate,
|
|
@@ -120,19 +114,26 @@ function traverse(namespace, parentPath, node, resultingApi) {
|
|
|
120
114
|
hasQuery,
|
|
121
115
|
hasBody,
|
|
122
116
|
contentType,
|
|
123
|
-
useInstead
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
oldOperationNames.forEach((oldOperationName) => {
|
|
127
|
-
resultingApi[oldOperationName] = resultingApi[operationName];
|
|
128
|
-
});
|
|
117
|
+
useInstead,
|
|
118
|
+
oldOperationNames
|
|
119
|
+
};
|
|
129
120
|
});
|
|
130
121
|
} else {
|
|
131
|
-
traverse(namespace, pathTemplate, value,
|
|
122
|
+
traverse(namespace, pathTemplate, value, operations);
|
|
132
123
|
}
|
|
133
124
|
});
|
|
134
125
|
}
|
|
135
|
-
function createClassicApiFn(
|
|
126
|
+
function createClassicApiFn({
|
|
127
|
+
namespace,
|
|
128
|
+
operationName,
|
|
129
|
+
pathTemplate,
|
|
130
|
+
method,
|
|
131
|
+
argNames,
|
|
132
|
+
hasQuery,
|
|
133
|
+
hasBody,
|
|
134
|
+
contentType,
|
|
135
|
+
useInstead
|
|
136
|
+
}, operationInterceptors, hostConfig, enableConsoleWarnings, invokeFetchFnGetter) {
|
|
136
137
|
return (...args) => {
|
|
137
138
|
const pathVariables = {};
|
|
138
139
|
argNames.forEach((argName, index) => {
|
|
@@ -150,23 +151,59 @@ function createClassicApiFn(namespace, operationName, pathTemplate, method, argN
|
|
|
150
151
|
argPos++;
|
|
151
152
|
}
|
|
152
153
|
const options = args.length > argPos ? args[argPos] : void 0;
|
|
153
|
-
if (useInstead) {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
154
|
+
if (enableConsoleWarnings && useInstead) {
|
|
155
|
+
let fullUseInstead;
|
|
156
|
+
if (useInstead.includes(".")) {
|
|
157
|
+
fullUseInstead = useInstead;
|
|
158
|
+
} else {
|
|
159
|
+
fullUseInstead = `${useInstead}.${operationName}`;
|
|
160
|
+
}
|
|
161
|
+
console.warn(`${namespace}.${operationName} is deprecated, use ${fullUseInstead} instead`);
|
|
162
|
+
}
|
|
163
|
+
const optionsIncludingDefaultHostConfig = hostConfig ? {
|
|
164
|
+
hostConfig,
|
|
165
|
+
...options
|
|
166
|
+
} : options;
|
|
167
|
+
return invokeFetchFnGetter()(
|
|
168
|
+
namespace,
|
|
169
|
+
{
|
|
170
|
+
method,
|
|
171
|
+
pathTemplate,
|
|
172
|
+
pathVariables,
|
|
173
|
+
query,
|
|
174
|
+
body,
|
|
175
|
+
...contentType ? { contentType } : {},
|
|
176
|
+
options: optionsIncludingDefaultHostConfig
|
|
177
|
+
},
|
|
178
|
+
operationInterceptors
|
|
179
|
+
);
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// src/runtime-api-generator/runtime-api-generator-public.ts
|
|
184
|
+
var parsedMiniApis = {};
|
|
185
|
+
function apiDefToApiPublic(namespace, def) {
|
|
186
|
+
parsedMiniApis[namespace] = parsedMiniApis[namespace] || parseMiniApi(namespace, def);
|
|
187
|
+
const parsedMiniApi = parsedMiniApis[namespace];
|
|
188
|
+
return (hostConfig) => {
|
|
189
|
+
const lazyApi = {
|
|
190
|
+
clearCache: () => clearApiCache(namespace)
|
|
191
|
+
};
|
|
192
|
+
const initFunc = () => {
|
|
193
|
+
Object.entries(parsedMiniApi.operations).forEach(([operationName, operation]) => {
|
|
194
|
+
lazyApi[operationName] = createClassicApiFn(operation, void 0, hostConfig, true, () => invokeFetch);
|
|
195
|
+
operation.oldOperationNames.forEach((oldOperationName) => {
|
|
196
|
+
lazyApi[oldOperationName] = lazyApi[operationName];
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
};
|
|
200
|
+
const proxy = createLazyApiProxy(lazyApi, initFunc);
|
|
201
|
+
return proxy;
|
|
165
202
|
};
|
|
166
203
|
}
|
|
167
204
|
|
|
168
205
|
// src/public/index.ts
|
|
169
|
-
var
|
|
206
|
+
var apiKeysMiniModule = apiDefToApiPublic("api-keys", {
|
|
170
207
|
api: {
|
|
171
208
|
v1: {
|
|
172
209
|
"api-keys": {
|
|
@@ -177,7 +214,7 @@ var apiKeys = apiDefToApi("api-keys", {
|
|
|
177
214
|
}
|
|
178
215
|
}
|
|
179
216
|
});
|
|
180
|
-
var
|
|
217
|
+
var appsMiniModule = apiDefToApiPublic("apps", {
|
|
181
218
|
api: {
|
|
182
219
|
v1: {
|
|
183
220
|
apps: {
|
|
@@ -235,7 +272,7 @@ var apps = apiDefToApi("apps", {
|
|
|
235
272
|
}
|
|
236
273
|
}
|
|
237
274
|
});
|
|
238
|
-
var
|
|
275
|
+
var auditsMiniModule = apiDefToApiPublic("audits", {
|
|
239
276
|
api: {
|
|
240
277
|
v1: {
|
|
241
278
|
audits: {
|
|
@@ -249,8 +286,7 @@ var audits = apiDefToApi("audits", {
|
|
|
249
286
|
}
|
|
250
287
|
}
|
|
251
288
|
});
|
|
252
|
-
var
|
|
253
|
-
var automations = apiDefToApi("automations", {
|
|
289
|
+
var automationsMiniModule = apiDefToApiPublic("automations", {
|
|
254
290
|
api: {
|
|
255
291
|
v1: {
|
|
256
292
|
automations: {
|
|
@@ -281,7 +317,7 @@ var automations = apiDefToApi("automations", {
|
|
|
281
317
|
}
|
|
282
318
|
}
|
|
283
319
|
});
|
|
284
|
-
var
|
|
320
|
+
var brandsMiniModule = apiDefToApiPublic("brands", {
|
|
285
321
|
api: {
|
|
286
322
|
v1: {
|
|
287
323
|
brands: {
|
|
@@ -303,7 +339,7 @@ var brands = apiDefToApi("brands", {
|
|
|
303
339
|
}
|
|
304
340
|
}
|
|
305
341
|
});
|
|
306
|
-
var
|
|
342
|
+
var collectionsMiniModule = apiDefToApiPublic("collections", {
|
|
307
343
|
api: {
|
|
308
344
|
v1: {
|
|
309
345
|
collections: {
|
|
@@ -320,7 +356,7 @@ var collections = apiDefToApi("collections", {
|
|
|
320
356
|
}
|
|
321
357
|
}
|
|
322
358
|
});
|
|
323
|
-
var
|
|
359
|
+
var cspOriginsMiniModule = apiDefToApiPublic("csp-origins", {
|
|
324
360
|
api: {
|
|
325
361
|
v1: {
|
|
326
362
|
"csp-origins": {
|
|
@@ -331,7 +367,7 @@ var cspOrigins = apiDefToApi("csp-origins", {
|
|
|
331
367
|
}
|
|
332
368
|
}
|
|
333
369
|
});
|
|
334
|
-
var
|
|
370
|
+
var dataAssetsMiniModule = apiDefToApiPublic("data-assets", {
|
|
335
371
|
api: {
|
|
336
372
|
v1: {
|
|
337
373
|
"data-assets": {
|
|
@@ -341,7 +377,7 @@ var dataAssets = apiDefToApi("data-assets", {
|
|
|
341
377
|
}
|
|
342
378
|
}
|
|
343
379
|
});
|
|
344
|
-
var
|
|
380
|
+
var dataConnectionsMiniModule = apiDefToApiPublic("data-connections", {
|
|
345
381
|
api: {
|
|
346
382
|
v1: {
|
|
347
383
|
"data-connections": {
|
|
@@ -361,7 +397,7 @@ var dataConnections = apiDefToApi("data-connections", {
|
|
|
361
397
|
}
|
|
362
398
|
}
|
|
363
399
|
});
|
|
364
|
-
var
|
|
400
|
+
var dataCredentialsMiniModule = apiDefToApiPublic("data-credentials", {
|
|
365
401
|
api: {
|
|
366
402
|
v1: {
|
|
367
403
|
"data-credentials": {
|
|
@@ -375,7 +411,7 @@ var dataCredentials = apiDefToApi("data-credentials", {
|
|
|
375
411
|
}
|
|
376
412
|
}
|
|
377
413
|
});
|
|
378
|
-
var
|
|
414
|
+
var dataFilesMiniModule = apiDefToApiPublic("data-files", {
|
|
379
415
|
api: {
|
|
380
416
|
v1: {
|
|
381
417
|
"data-files": {
|
|
@@ -391,7 +427,7 @@ var dataFiles = apiDefToApi("data-files", {
|
|
|
391
427
|
}
|
|
392
428
|
}
|
|
393
429
|
});
|
|
394
|
-
var
|
|
430
|
+
var extensionsMiniModule = apiDefToApiPublic("extensions", {
|
|
395
431
|
api: {
|
|
396
432
|
v1: {
|
|
397
433
|
extensions: {
|
|
@@ -404,7 +440,7 @@ var extensions = apiDefToApi("extensions", {
|
|
|
404
440
|
}
|
|
405
441
|
}
|
|
406
442
|
});
|
|
407
|
-
var
|
|
443
|
+
var glossariesMiniModule = apiDefToApiPublic("glossaries", {
|
|
408
444
|
api: {
|
|
409
445
|
v1: {
|
|
410
446
|
glossaries: {
|
|
@@ -436,7 +472,7 @@ var glossaries = apiDefToApi("glossaries", {
|
|
|
436
472
|
}
|
|
437
473
|
}
|
|
438
474
|
});
|
|
439
|
-
var
|
|
475
|
+
var groupsMiniModule = apiDefToApiPublic("groups", {
|
|
440
476
|
api: {
|
|
441
477
|
v1: {
|
|
442
478
|
groups: {
|
|
@@ -448,7 +484,7 @@ var groups = apiDefToApi("groups", {
|
|
|
448
484
|
}
|
|
449
485
|
}
|
|
450
486
|
});
|
|
451
|
-
var
|
|
487
|
+
var identityProvidersMiniModule = apiDefToApiPublic("identity-providers", {
|
|
452
488
|
api: {
|
|
453
489
|
v1: {
|
|
454
490
|
"identity-providers": {
|
|
@@ -461,7 +497,7 @@ var identityProviders = apiDefToApi("identity-providers", {
|
|
|
461
497
|
}
|
|
462
498
|
}
|
|
463
499
|
});
|
|
464
|
-
var
|
|
500
|
+
var itemsMiniModule = apiDefToApiPublic("items", {
|
|
465
501
|
api: {
|
|
466
502
|
v1: {
|
|
467
503
|
items: {
|
|
@@ -476,7 +512,7 @@ var items = apiDefToApi("items", {
|
|
|
476
512
|
}
|
|
477
513
|
}
|
|
478
514
|
});
|
|
479
|
-
var
|
|
515
|
+
var licensesMiniModule = apiDefToApiPublic("licenses", {
|
|
480
516
|
api: {
|
|
481
517
|
v1: {
|
|
482
518
|
licenses: {
|
|
@@ -496,11 +532,10 @@ var licenses = apiDefToApi("licenses", {
|
|
|
496
532
|
}
|
|
497
533
|
}
|
|
498
534
|
});
|
|
499
|
-
var
|
|
500
|
-
var quotas = apiDefToApi("quotas", {
|
|
535
|
+
var quotasMiniModule = apiDefToApiPublic("quotas", {
|
|
501
536
|
api: { v1: { quotas: { "": ["getQuotas:GQ:"], "{id}": ["getQuota:GQ:"] } } }
|
|
502
537
|
});
|
|
503
|
-
var
|
|
538
|
+
var reloadTasksMiniModule = apiDefToApiPublic("reload-tasks", {
|
|
504
539
|
api: {
|
|
505
540
|
v1: {
|
|
506
541
|
"reload-tasks": {
|
|
@@ -510,7 +545,7 @@ var reloadTasks = apiDefToApi("reload-tasks", {
|
|
|
510
545
|
}
|
|
511
546
|
}
|
|
512
547
|
});
|
|
513
|
-
var
|
|
548
|
+
var reloadsMiniModule = apiDefToApiPublic("reloads", {
|
|
514
549
|
api: {
|
|
515
550
|
v1: {
|
|
516
551
|
reloads: {
|
|
@@ -520,13 +555,13 @@ var reloads = apiDefToApi("reloads", {
|
|
|
520
555
|
}
|
|
521
556
|
}
|
|
522
557
|
});
|
|
523
|
-
var
|
|
558
|
+
var reportsMiniModule = apiDefToApiPublic("reports", {
|
|
524
559
|
api: { v1: { reports: { "": ["createReport:PBJ:"], "{id}": { status: ["getReportStatus:G:"] } } } }
|
|
525
560
|
});
|
|
526
|
-
var
|
|
561
|
+
var rolesMiniModule = apiDefToApiPublic("roles", {
|
|
527
562
|
api: { v1: { roles: { "": ["getRoles:GQ:"], "{id}": ["getRole:G:"] } } }
|
|
528
563
|
});
|
|
529
|
-
var
|
|
564
|
+
var spacesMiniModule = apiDefToApiPublic("spaces", {
|
|
530
565
|
api: {
|
|
531
566
|
v1: {
|
|
532
567
|
spaces: {
|
|
@@ -543,7 +578,7 @@ var spaces = apiDefToApi("spaces", {
|
|
|
543
578
|
}
|
|
544
579
|
}
|
|
545
580
|
});
|
|
546
|
-
var
|
|
581
|
+
var tempContentsMiniModule = apiDefToApiPublic("temp-contents", {
|
|
547
582
|
api: {
|
|
548
583
|
v1: {
|
|
549
584
|
"temp-contents": {
|
|
@@ -553,7 +588,7 @@ var tempContents = apiDefToApi("temp-contents", {
|
|
|
553
588
|
}
|
|
554
589
|
}
|
|
555
590
|
});
|
|
556
|
-
var
|
|
591
|
+
var tenantsMiniModule = apiDefToApiPublic("tenants", {
|
|
557
592
|
api: {
|
|
558
593
|
v1: {
|
|
559
594
|
tenants: {
|
|
@@ -567,7 +602,7 @@ var tenants = apiDefToApi("tenants", {
|
|
|
567
602
|
}
|
|
568
603
|
}
|
|
569
604
|
});
|
|
570
|
-
var
|
|
605
|
+
var themesMiniModule = apiDefToApiPublic("themes", {
|
|
571
606
|
api: {
|
|
572
607
|
v1: {
|
|
573
608
|
themes: {
|
|
@@ -580,7 +615,7 @@ var themes = apiDefToApi("themes", {
|
|
|
580
615
|
}
|
|
581
616
|
}
|
|
582
617
|
});
|
|
583
|
-
var
|
|
618
|
+
var transportsMiniModule = apiDefToApiPublic("transports", {
|
|
584
619
|
api: {
|
|
585
620
|
v1: {
|
|
586
621
|
transports: {
|
|
@@ -596,7 +631,7 @@ var transports = apiDefToApi("transports", {
|
|
|
596
631
|
}
|
|
597
632
|
}
|
|
598
633
|
});
|
|
599
|
-
var
|
|
634
|
+
var usersMiniModule = apiDefToApiPublic("users", {
|
|
600
635
|
api: {
|
|
601
636
|
v1: {
|
|
602
637
|
users: {
|
|
@@ -609,7 +644,7 @@ var users = apiDefToApi("users", {
|
|
|
609
644
|
}
|
|
610
645
|
}
|
|
611
646
|
});
|
|
612
|
-
var
|
|
647
|
+
var webIntegrationsMiniModule = apiDefToApiPublic("web-integrations", {
|
|
613
648
|
api: {
|
|
614
649
|
v1: {
|
|
615
650
|
"web-integrations": {
|
|
@@ -619,7 +654,7 @@ var webIntegrations = apiDefToApi("web-integrations", {
|
|
|
619
654
|
}
|
|
620
655
|
}
|
|
621
656
|
});
|
|
622
|
-
var
|
|
657
|
+
var webNotificationsMiniModule = apiDefToApiPublic("web-notifications", {
|
|
623
658
|
api: {
|
|
624
659
|
v1: {
|
|
625
660
|
"web-notifications": {
|
|
@@ -630,7 +665,7 @@ var webNotifications = apiDefToApi("web-notifications", {
|
|
|
630
665
|
}
|
|
631
666
|
}
|
|
632
667
|
});
|
|
633
|
-
var
|
|
668
|
+
var webhooksMiniModule = apiDefToApiPublic("webhooks", {
|
|
634
669
|
api: {
|
|
635
670
|
v1: {
|
|
636
671
|
webhooks: {
|
|
@@ -647,6 +682,74 @@ var webhooks = apiDefToApi("webhooks", {
|
|
|
647
682
|
}
|
|
648
683
|
}
|
|
649
684
|
});
|
|
685
|
+
var apiKeys = apiKeysMiniModule();
|
|
686
|
+
var apps = appsMiniModule();
|
|
687
|
+
var audits = auditsMiniModule();
|
|
688
|
+
var auth = auth_default;
|
|
689
|
+
var automations = automationsMiniModule();
|
|
690
|
+
var brands = brandsMiniModule();
|
|
691
|
+
var collections = collectionsMiniModule();
|
|
692
|
+
var cspOrigins = cspOriginsMiniModule();
|
|
693
|
+
var dataAssets = dataAssetsMiniModule();
|
|
694
|
+
var dataConnections = dataConnectionsMiniModule();
|
|
695
|
+
var dataCredentials = dataCredentialsMiniModule();
|
|
696
|
+
var dataFiles = dataFilesMiniModule();
|
|
697
|
+
var extensions = extensionsMiniModule();
|
|
698
|
+
var glossaries = glossariesMiniModule();
|
|
699
|
+
var groups = groupsMiniModule();
|
|
700
|
+
var identityProviders = identityProvidersMiniModule();
|
|
701
|
+
var items = itemsMiniModule();
|
|
702
|
+
var licenses = licensesMiniModule();
|
|
703
|
+
var qix = qix_default;
|
|
704
|
+
var quotas = quotasMiniModule();
|
|
705
|
+
var reloadTasks = reloadTasksMiniModule();
|
|
706
|
+
var reloads = reloadsMiniModule();
|
|
707
|
+
var reports = reportsMiniModule();
|
|
708
|
+
var roles = rolesMiniModule();
|
|
709
|
+
var spaces = spacesMiniModule();
|
|
710
|
+
var tempContents = tempContentsMiniModule();
|
|
711
|
+
var tenants = tenantsMiniModule();
|
|
712
|
+
var themes = themesMiniModule();
|
|
713
|
+
var transports = transportsMiniModule();
|
|
714
|
+
var users = usersMiniModule();
|
|
715
|
+
var webIntegrations = webIntegrationsMiniModule();
|
|
716
|
+
var webNotifications = webNotificationsMiniModule();
|
|
717
|
+
var webhooks = webhooksMiniModule();
|
|
718
|
+
var createQlikApi = (props) => ({
|
|
719
|
+
apiKeys: apiKeysMiniModule(props?.hostConfig),
|
|
720
|
+
apps: appsMiniModule(props?.hostConfig),
|
|
721
|
+
audits: auditsMiniModule(props?.hostConfig),
|
|
722
|
+
auth: auth_default,
|
|
723
|
+
automations: automationsMiniModule(props?.hostConfig),
|
|
724
|
+
brands: brandsMiniModule(props?.hostConfig),
|
|
725
|
+
collections: collectionsMiniModule(props?.hostConfig),
|
|
726
|
+
cspOrigins: cspOriginsMiniModule(props?.hostConfig),
|
|
727
|
+
dataAssets: dataAssetsMiniModule(props?.hostConfig),
|
|
728
|
+
dataConnections: dataConnectionsMiniModule(props?.hostConfig),
|
|
729
|
+
dataCredentials: dataCredentialsMiniModule(props?.hostConfig),
|
|
730
|
+
dataFiles: dataFilesMiniModule(props?.hostConfig),
|
|
731
|
+
extensions: extensionsMiniModule(props?.hostConfig),
|
|
732
|
+
glossaries: glossariesMiniModule(props?.hostConfig),
|
|
733
|
+
groups: groupsMiniModule(props?.hostConfig),
|
|
734
|
+
identityProviders: identityProvidersMiniModule(props?.hostConfig),
|
|
735
|
+
items: itemsMiniModule(props?.hostConfig),
|
|
736
|
+
licenses: licensesMiniModule(props?.hostConfig),
|
|
737
|
+
qix: qix_default.withHostConfig(props?.hostConfig),
|
|
738
|
+
quotas: quotasMiniModule(props?.hostConfig),
|
|
739
|
+
reloadTasks: reloadTasksMiniModule(props?.hostConfig),
|
|
740
|
+
reloads: reloadsMiniModule(props?.hostConfig),
|
|
741
|
+
reports: reportsMiniModule(props?.hostConfig),
|
|
742
|
+
roles: rolesMiniModule(props?.hostConfig),
|
|
743
|
+
spaces: spacesMiniModule(props?.hostConfig),
|
|
744
|
+
tempContents: tempContentsMiniModule(props?.hostConfig),
|
|
745
|
+
tenants: tenantsMiniModule(props?.hostConfig),
|
|
746
|
+
themes: themesMiniModule(props?.hostConfig),
|
|
747
|
+
transports: transportsMiniModule(props?.hostConfig),
|
|
748
|
+
users: usersMiniModule(props?.hostConfig),
|
|
749
|
+
webIntegrations: webIntegrationsMiniModule(props?.hostConfig),
|
|
750
|
+
webNotifications: webNotificationsMiniModule(props?.hostConfig),
|
|
751
|
+
webhooks: webhooksMiniModule(props?.hostConfig)
|
|
752
|
+
});
|
|
650
753
|
var api = {
|
|
651
754
|
apiKeys,
|
|
652
755
|
apps,
|
|
@@ -680,7 +783,8 @@ var api = {
|
|
|
680
783
|
users,
|
|
681
784
|
webIntegrations,
|
|
682
785
|
webNotifications,
|
|
683
|
-
webhooks
|
|
786
|
+
webhooks,
|
|
787
|
+
createQlikApi
|
|
684
788
|
};
|
|
685
789
|
var public_default = api;
|
|
686
790
|
export {
|
|
@@ -691,6 +795,7 @@ export {
|
|
|
691
795
|
automations,
|
|
692
796
|
brands,
|
|
693
797
|
collections,
|
|
798
|
+
createQlikApi,
|
|
694
799
|
cspOrigins,
|
|
695
800
|
dataAssets,
|
|
696
801
|
dataConnections,
|