@qlik/api 0.0.2 → 0.0.3
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.mts +14 -0
- package/api-keys.d.ts +14 -0
- package/api-keys.js +14 -10
- package/api-keys.mjs +6 -2
- package/apps.d.mts +478 -148
- package/apps.d.ts +478 -148
- package/apps.js +100 -42
- package/apps.mjs +60 -2
- package/audits.d.mts +12 -0
- package/audits.d.ts +12 -0
- package/audits.js +10 -9
- package/audits.mjs +3 -2
- package/auth-AWZV4DPP.js +41 -0
- package/{auth-RTFXVSSK.mjs → auth-CPBNNC7S.mjs} +4 -1
- package/auth.js +4 -3
- package/auth.mjs +3 -2
- package/automations.d.mts +36 -0
- package/automations.d.ts +36 -0
- package/automations.js +28 -21
- package/automations.mjs +9 -2
- package/brands.d.mts +45 -4
- package/brands.d.ts +45 -4
- package/brands.js +20 -15
- package/brands.mjs +7 -2
- package/{chunk-ZT4C7KCQ.js → chunk-2STFUQKQ.js} +3 -3
- package/{chunk-7REWEWCX.mjs → chunk-3SVRHJII.mjs} +3 -3
- package/{chunk-CKPJE4IA.mjs → chunk-67GJTTPV.mjs} +1 -1
- package/{chunk-M7F4JFOB.js → chunk-7RY3NO6N.js} +2 -2
- package/{chunk-NALKLKZS.mjs → chunk-CYRLVHU3.mjs} +316 -53
- package/{chunk-RMKP2BDX.js → chunk-D52VW5UN.js} +318 -55
- package/{chunk-GUQBHY3H.mjs → chunk-GNWU6SP2.mjs} +1 -1
- package/{chunk-QN23TPIE.js → chunk-GV5SRHY2.js} +4 -4
- package/{chunk-OULT3V2U.js → chunk-JNGURO23.js} +3 -3
- package/chunk-P57PW2II.js +11 -0
- package/{chunk-3YE7EI7I.mjs → chunk-TE7XMBT5.mjs} +1 -1
- package/chunk-ZFXKCRJC.mjs +11 -0
- package/collections.d.mts +51 -17
- package/collections.d.ts +51 -17
- package/collections.js +28 -14
- package/collections.mjs +16 -2
- package/csp-origins.d.mts +12 -0
- package/csp-origins.d.ts +12 -0
- package/csp-origins.js +12 -9
- package/csp-origins.mjs +5 -2
- package/data-assets.d.mts +10 -0
- package/data-assets.d.ts +10 -0
- package/data-assets.js +13 -8
- package/data-assets.mjs +7 -2
- package/data-connections.d.mts +18 -0
- package/data-connections.d.ts +18 -0
- package/data-connections.js +19 -12
- package/data-connections.mjs +9 -2
- package/data-credentials.d.mts +8 -0
- package/data-credentials.d.ts +8 -0
- package/data-credentials.js +10 -7
- package/data-credentials.mjs +5 -2
- package/data-files.d.mts +98 -13
- package/data-files.d.ts +98 -13
- package/data-files.js +22 -15
- package/data-files.mjs +9 -2
- package/{enigma-session-VPPJMBEM.js → enigma-session-XPXDQAIV.js} +5 -4
- package/{enigma-session-HGXKZJVO.mjs → enigma-session-ZH6MYA54.mjs} +2 -1
- package/{esm-RX7B2TUN.js → esm-3VXX2GKL.js} +3 -1
- package/{esm-M5ZBFTVD.mjs → esm-OY4XVIJB.mjs} +3 -1
- package/extensions.d.mts +26 -2
- package/extensions.d.ts +26 -2
- package/extensions.js +13 -10
- package/extensions.mjs +5 -2
- package/glossaries.d.mts +55 -20
- package/glossaries.d.ts +55 -20
- package/glossaries.js +39 -27
- package/glossaries.mjs +14 -2
- package/groups.d.mts +16 -0
- package/groups.d.ts +16 -0
- package/groups.js +16 -11
- package/groups.mjs +7 -2
- package/identity-providers.d.mts +16 -0
- package/identity-providers.d.ts +16 -0
- package/identity-providers.js +14 -11
- package/identity-providers.mjs +5 -2
- package/index.js +135 -101
- package/index.mjs +131 -97
- package/{invoke-fetch-IMO4AMA3.mjs → invoke-fetch-3WZWAAZH.mjs} +4 -1
- package/invoke-fetch-UNTAUR7O.js +17 -0
- package/items.d.mts +6 -6
- package/items.d.ts +6 -6
- package/items.js +14 -11
- package/items.mjs +5 -2
- package/licenses.d.mts +18 -0
- package/licenses.d.ts +18 -0
- package/licenses.js +17 -12
- package/licenses.mjs +7 -2
- package/package.json +4 -4
- package/{qix-K22VHZRH.js → qix-UNWXPGMA.js} +9 -8
- package/{qix-57WD2ZE6.mjs → qix-ZSJ4PIK3.mjs} +3 -2
- package/qix.d.mts +1 -1
- package/qix.d.ts +1 -1
- package/qix.js +4 -3
- package/qix.mjs +3 -2
- package/quotas.d.mts +4 -0
- package/quotas.d.ts +4 -0
- package/quotas.js +6 -5
- package/quotas.mjs +3 -2
- package/reload-tasks.js +11 -8
- package/reload-tasks.mjs +5 -2
- package/reloads.d.mts +17 -10
- package/reloads.d.ts +17 -10
- package/reloads.js +9 -7
- package/reloads.mjs +4 -2
- package/roles.d.mts +4 -0
- package/roles.d.ts +4 -0
- package/roles.js +6 -5
- package/roles.mjs +3 -2
- package/spaces.d.mts +27 -4
- package/spaces.d.ts +27 -4
- package/spaces.js +21 -15
- package/spaces.mjs +8 -2
- package/temp-contents.d.mts +8 -3
- package/temp-contents.d.ts +8 -3
- package/temp-contents.js +8 -6
- package/temp-contents.mjs +4 -2
- package/tenants.d.mts +12 -0
- package/tenants.d.ts +12 -0
- package/tenants.js +14 -9
- package/tenants.mjs +7 -2
- package/themes.d.mts +26 -2
- package/themes.d.ts +26 -2
- package/themes.js +13 -10
- package/themes.mjs +5 -2
- package/transports.d.mts +12 -0
- package/transports.d.ts +12 -0
- package/transports.js +12 -9
- package/transports.mjs +5 -2
- package/users.d.mts +48 -29
- package/users.d.ts +48 -29
- package/users.js +18 -13
- package/users.mjs +7 -2
- package/web-integrations.d.mts +10 -0
- package/web-integrations.d.ts +10 -0
- package/web-integrations.js +11 -8
- package/web-integrations.mjs +5 -2
- package/web-notifications.d.mts +12 -0
- package/web-notifications.d.ts +12 -0
- package/web-notifications.js +12 -9
- package/web-notifications.mjs +5 -2
- package/webhooks.d.mts +25 -5
- package/webhooks.d.ts +25 -5
- package/webhooks.js +17 -13
- package/webhooks.mjs +6 -2
- package/auth-CSVTXOZX.js +0 -36
- package/auth-OU7OTB7Y.js +0 -38
- package/auth-TE272Q34.mjs +0 -36
- package/chunk-4ES65KO3.js +0 -57
- package/chunk-4FLMND6T.js +0 -25
- package/chunk-4OMEH5SW.mjs +0 -1337
- package/chunk-6JERR27K.js +0 -17
- package/chunk-E42WUFCK.mjs +0 -57
- package/chunk-H7SAZYEE.js +0 -21
- package/chunk-KMMWJZHM.mjs +0 -25
- package/chunk-W4J34XGA.mjs +0 -17
- package/chunk-WM7FQU2U.mjs +0 -21
- package/chunk-XASXL2NC.js +0 -1337
- package/enigma-session-4L373ALV.mjs +0 -10196
- package/enigma-session-TEB53FAF.js +0 -10196
- package/esm-4X3DKK5D.js +0 -63
- package/esm-SOWVJKOQ.mjs +0 -63
- package/invoke-fetch-7PKPQ3FD.js +0 -14
- package/invoke-fetch-MSSJAZ7K.mjs +0 -14
- package/invoke-fetch-PEI54KZO.js +0 -14
- package/qix-EU7PXRZ6.mjs +0 -573
- package/qix-RLTISYTB.js +0 -573
package/items.d.ts
CHANGED
|
@@ -18,8 +18,7 @@ type ItemsSettingsPatch = {
|
|
|
18
18
|
op: "replace";
|
|
19
19
|
/** Field of Settings to be patched (updated). */
|
|
20
20
|
path: "/usageMetricsEnabled";
|
|
21
|
-
/** The value to be used within the operations.
|
|
22
|
-
// */
|
|
21
|
+
/** The value to be used within the operations. */
|
|
23
22
|
value: boolean;
|
|
24
23
|
}[];
|
|
25
24
|
type ItemsSettingsResponseBody = {
|
|
@@ -235,8 +234,7 @@ declare const getItems: (query: {
|
|
|
235
234
|
name?: string | undefined;
|
|
236
235
|
/** The cursor to the next page of resources. Provide either the next or prev cursor, but not both. */
|
|
237
236
|
next?: string | undefined;
|
|
238
|
-
/** If set to true, the user's available actions for each item will not be evaluated meaning the actions-array will be omitted from the response (reduces response time).
|
|
239
|
-
// */
|
|
237
|
+
/** If set to true, the user's available actions for each item will not be evaluated meaning the actions-array will be omitted from the response (reduces response time). */
|
|
240
238
|
noActions?: boolean | undefined;
|
|
241
239
|
/** User's unique identifier. */
|
|
242
240
|
notCreatedByUserId?: string | undefined;
|
|
@@ -261,7 +259,7 @@ declare const getItems: (query: {
|
|
|
261
259
|
/** Whether or not to return items in a shared space. */
|
|
262
260
|
shared?: boolean | undefined;
|
|
263
261
|
/** The property of a resource to sort on (default sort is +createdAt). The supported properties are createdAt, updatedAt, and name. A property must be prefixed by + or - to indicate ascending or descending sort order respectively. */
|
|
264
|
-
sort?: "
|
|
262
|
+
sort?: "-name" | "+name" | "+createdAt" | "-createdAt" | "+updatedAt" | "-updatedAt" | undefined;
|
|
265
263
|
/** The space's unique identifier (supports \'personal\' as spaceId). */
|
|
266
264
|
spaceId?: string | undefined;
|
|
267
265
|
/** The case-sensitive string used to filter items on space type(s). For example '?spaceType=shared,personal'. */
|
|
@@ -297,6 +295,7 @@ type GetItemsSettingsHttpError = {
|
|
|
297
295
|
};
|
|
298
296
|
/**
|
|
299
297
|
* Updates the settings provided in the patch body.
|
|
298
|
+
*
|
|
300
299
|
* @param body an object with the body content
|
|
301
300
|
* @throws PatchItemsSettingsHttpError
|
|
302
301
|
*/
|
|
@@ -382,7 +381,7 @@ declare const getItemCollections: (itemId: string, query: {
|
|
|
382
381
|
/** The case-insensitive string used to search for a resource by name or description. */
|
|
383
382
|
query?: string | undefined;
|
|
384
383
|
/** The property of a resource to sort on (default sort is +createdAt). The supported properties are createdAt, updatedAt, and name. A property must be prefixed by + or - to indicate ascending or descending sort order respectively. */
|
|
385
|
-
sort?: "
|
|
384
|
+
sort?: "-name" | "+name" | "+createdAt" | "-createdAt" | "+updatedAt" | "-updatedAt" | undefined;
|
|
386
385
|
/** The case-sensitive string used to search for a collection by type. */
|
|
387
386
|
type?: CollectionTypes | undefined;
|
|
388
387
|
}, options?: ApiCallOptions) => Promise<GetItemCollectionsHttpResponse>;
|
|
@@ -449,6 +448,7 @@ interface ItemsAPI {
|
|
|
449
448
|
getItemsSettings: typeof getItemsSettings;
|
|
450
449
|
/**
|
|
451
450
|
* Updates the settings provided in the patch body.
|
|
451
|
+
*
|
|
452
452
|
* @param body an object with the body content
|
|
453
453
|
* @throws PatchItemsSettingsHttpError
|
|
454
454
|
*/
|
package/items.js
CHANGED
|
@@ -1,54 +1,57 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkJNGURO23js = require('./chunk-JNGURO23.js');
|
|
5
|
+
require('./chunk-2STFUQKQ.js');
|
|
6
|
+
require('./chunk-P57PW2II.js');
|
|
6
7
|
|
|
7
8
|
// src/public/rest/items.ts
|
|
8
|
-
var getItems = async (query, options) =>
|
|
9
|
+
var getItems = async (query, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "items", {
|
|
9
10
|
method: "get",
|
|
10
11
|
pathTemplate: "/api/v1/items",
|
|
11
12
|
query,
|
|
12
13
|
options
|
|
13
14
|
});
|
|
14
|
-
var getItemsSettings = async (options) =>
|
|
15
|
+
var getItemsSettings = async (options) => _chunkJNGURO23js.invokeFetch.call(void 0, "items", {
|
|
15
16
|
method: "get",
|
|
16
17
|
pathTemplate: "/api/v1/items/settings",
|
|
17
18
|
options
|
|
18
19
|
});
|
|
19
|
-
var patchItemsSettings = async (body, options) =>
|
|
20
|
+
var patchItemsSettings = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "items", {
|
|
20
21
|
method: "patch",
|
|
21
22
|
pathTemplate: "/api/v1/items/settings",
|
|
22
23
|
body,
|
|
24
|
+
contentType: "application/json",
|
|
23
25
|
options
|
|
24
26
|
});
|
|
25
|
-
var deleteItem = async (itemId, options) =>
|
|
27
|
+
var deleteItem = async (itemId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "items", {
|
|
26
28
|
method: "delete",
|
|
27
29
|
pathTemplate: "/api/v1/items/{itemId}",
|
|
28
30
|
pathVariables: { itemId },
|
|
29
31
|
options
|
|
30
32
|
});
|
|
31
|
-
var getItem = async (itemId, options) =>
|
|
33
|
+
var getItem = async (itemId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "items", {
|
|
32
34
|
method: "get",
|
|
33
35
|
pathTemplate: "/api/v1/items/{itemId}",
|
|
34
36
|
pathVariables: { itemId },
|
|
35
37
|
options
|
|
36
38
|
});
|
|
37
|
-
var updateItem = async (itemId, body, options) =>
|
|
39
|
+
var updateItem = async (itemId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "items", {
|
|
38
40
|
method: "put",
|
|
39
41
|
pathTemplate: "/api/v1/items/{itemId}",
|
|
40
42
|
pathVariables: { itemId },
|
|
41
43
|
body,
|
|
44
|
+
contentType: "application/json",
|
|
42
45
|
options
|
|
43
46
|
});
|
|
44
|
-
var getItemCollections = async (itemId, query, options) =>
|
|
47
|
+
var getItemCollections = async (itemId, query, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "items", {
|
|
45
48
|
method: "get",
|
|
46
49
|
pathTemplate: "/api/v1/items/{itemId}/collections",
|
|
47
50
|
pathVariables: { itemId },
|
|
48
51
|
query,
|
|
49
52
|
options
|
|
50
53
|
});
|
|
51
|
-
var getPublishedItems = async (itemId, query, options) =>
|
|
54
|
+
var getPublishedItems = async (itemId, query, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "items", {
|
|
52
55
|
method: "get",
|
|
53
56
|
pathTemplate: "/api/v1/items/{itemId}/publisheditems",
|
|
54
57
|
pathVariables: { itemId },
|
|
@@ -56,7 +59,7 @@ var getPublishedItems = async (itemId, query, options) => _chunk6JERR27Kjs.invok
|
|
|
56
59
|
options
|
|
57
60
|
});
|
|
58
61
|
function clearCache() {
|
|
59
|
-
return
|
|
62
|
+
return _chunkJNGURO23js.clearApiCache.call(void 0, "items");
|
|
60
63
|
}
|
|
61
64
|
var itemsExport = {
|
|
62
65
|
getItems,
|
package/items.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearApiCache,
|
|
3
3
|
invokeFetch
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-TE7XMBT5.mjs";
|
|
5
|
+
import "./chunk-3SVRHJII.mjs";
|
|
6
|
+
import "./chunk-ZFXKCRJC.mjs";
|
|
6
7
|
|
|
7
8
|
// src/public/rest/items.ts
|
|
8
9
|
var getItems = async (query, options) => invokeFetch("items", {
|
|
@@ -20,6 +21,7 @@ var patchItemsSettings = async (body, options) => invokeFetch("items", {
|
|
|
20
21
|
method: "patch",
|
|
21
22
|
pathTemplate: "/api/v1/items/settings",
|
|
22
23
|
body,
|
|
24
|
+
contentType: "application/json",
|
|
23
25
|
options
|
|
24
26
|
});
|
|
25
27
|
var deleteItem = async (itemId, options) => invokeFetch("items", {
|
|
@@ -39,6 +41,7 @@ var updateItem = async (itemId, body, options) => invokeFetch("items", {
|
|
|
39
41
|
pathTemplate: "/api/v1/items/{itemId}",
|
|
40
42
|
pathVariables: { itemId },
|
|
41
43
|
body,
|
|
44
|
+
contentType: "application/json",
|
|
42
45
|
options
|
|
43
46
|
});
|
|
44
47
|
var getItemCollections = async (itemId, query, options) => invokeFetch("items", {
|
package/licenses.d.mts
CHANGED
|
@@ -206,6 +206,7 @@ type SettingsBody = {
|
|
|
206
206
|
};
|
|
207
207
|
/**
|
|
208
208
|
* Retrieves assignments for the current tenant
|
|
209
|
+
*
|
|
209
210
|
* @param query an object with query parameters
|
|
210
211
|
* @throws GetLicenseAssignmentsHttpError
|
|
211
212
|
*/
|
|
@@ -235,6 +236,7 @@ type GetLicenseAssignmentsHttpError = {
|
|
|
235
236
|
};
|
|
236
237
|
/**
|
|
237
238
|
* Assigns license access to the given users
|
|
239
|
+
*
|
|
238
240
|
* @param body an object with the body content
|
|
239
241
|
* @throws AddLicenseAssignmentsHttpError
|
|
240
242
|
*/
|
|
@@ -251,6 +253,7 @@ type AddLicenseAssignmentsHttpError = {
|
|
|
251
253
|
};
|
|
252
254
|
/**
|
|
253
255
|
* Removes license access for the given users
|
|
256
|
+
*
|
|
254
257
|
* @param body an object with the body content
|
|
255
258
|
* @throws DeleteLicenseAssignmentsHttpError
|
|
256
259
|
*/
|
|
@@ -267,6 +270,7 @@ type DeleteLicenseAssignmentsHttpError = {
|
|
|
267
270
|
};
|
|
268
271
|
/**
|
|
269
272
|
* Updates license access for the given users
|
|
273
|
+
*
|
|
270
274
|
* @param body an object with the body content
|
|
271
275
|
* @throws UpdateLicenseAssignmentsHttpError
|
|
272
276
|
*/
|
|
@@ -283,6 +287,7 @@ type UpdateLicenseAssignmentsHttpError = {
|
|
|
283
287
|
};
|
|
284
288
|
/**
|
|
285
289
|
* Retrieves license consumption for the current tenant
|
|
290
|
+
*
|
|
286
291
|
* @param query an object with query parameters
|
|
287
292
|
* @throws GetLicenseConsumptionHttpError
|
|
288
293
|
*/
|
|
@@ -310,6 +315,7 @@ type GetLicenseConsumptionHttpError = {
|
|
|
310
315
|
};
|
|
311
316
|
/**
|
|
312
317
|
* Gets the general information of the license applied to the current tenant
|
|
318
|
+
*
|
|
313
319
|
* @throws GetLicenseOverviewHttpError
|
|
314
320
|
*/
|
|
315
321
|
declare const getLicenseOverview: (options?: ApiCallOptions) => Promise<GetLicenseOverviewHttpResponse>;
|
|
@@ -325,6 +331,7 @@ type GetLicenseOverviewHttpError = {
|
|
|
325
331
|
};
|
|
326
332
|
/**
|
|
327
333
|
* Get auto assign settings for tenant.
|
|
334
|
+
*
|
|
328
335
|
* @throws GetLicenseSettingsHttpError
|
|
329
336
|
*/
|
|
330
337
|
declare const getLicenseSettings: (options?: ApiCallOptions) => Promise<GetLicenseSettingsHttpResponse>;
|
|
@@ -340,6 +347,7 @@ type GetLicenseSettingsHttpError = {
|
|
|
340
347
|
};
|
|
341
348
|
/**
|
|
342
349
|
* Set auto assign settings for tenant
|
|
350
|
+
*
|
|
343
351
|
* @param body an object with the body content
|
|
344
352
|
* @throws UpdateLicenseSettingsHttpError
|
|
345
353
|
*/
|
|
@@ -356,6 +364,7 @@ type UpdateLicenseSettingsHttpError = {
|
|
|
356
364
|
};
|
|
357
365
|
/**
|
|
358
366
|
* Gets the license status information of the current tenant
|
|
367
|
+
*
|
|
359
368
|
* @throws GetLicenseStatusHttpError
|
|
360
369
|
*/
|
|
361
370
|
declare const getLicenseStatus: (options?: ApiCallOptions) => Promise<GetLicenseStatusHttpResponse>;
|
|
@@ -376,52 +385,61 @@ declare function clearCache(): void;
|
|
|
376
385
|
interface LicensesAPI {
|
|
377
386
|
/**
|
|
378
387
|
* Retrieves assignments for the current tenant
|
|
388
|
+
*
|
|
379
389
|
* @param query an object with query parameters
|
|
380
390
|
* @throws GetLicenseAssignmentsHttpError
|
|
381
391
|
*/
|
|
382
392
|
getLicenseAssignments: typeof getLicenseAssignments;
|
|
383
393
|
/**
|
|
384
394
|
* Assigns license access to the given users
|
|
395
|
+
*
|
|
385
396
|
* @param body an object with the body content
|
|
386
397
|
* @throws AddLicenseAssignmentsHttpError
|
|
387
398
|
*/
|
|
388
399
|
addLicenseAssignments: typeof addLicenseAssignments;
|
|
389
400
|
/**
|
|
390
401
|
* Removes license access for the given users
|
|
402
|
+
*
|
|
391
403
|
* @param body an object with the body content
|
|
392
404
|
* @throws DeleteLicenseAssignmentsHttpError
|
|
393
405
|
*/
|
|
394
406
|
deleteLicenseAssignments: typeof deleteLicenseAssignments;
|
|
395
407
|
/**
|
|
396
408
|
* Updates license access for the given users
|
|
409
|
+
*
|
|
397
410
|
* @param body an object with the body content
|
|
398
411
|
* @throws UpdateLicenseAssignmentsHttpError
|
|
399
412
|
*/
|
|
400
413
|
updateLicenseAssignments: typeof updateLicenseAssignments;
|
|
401
414
|
/**
|
|
402
415
|
* Retrieves license consumption for the current tenant
|
|
416
|
+
*
|
|
403
417
|
* @param query an object with query parameters
|
|
404
418
|
* @throws GetLicenseConsumptionHttpError
|
|
405
419
|
*/
|
|
406
420
|
getLicenseConsumption: typeof getLicenseConsumption;
|
|
407
421
|
/**
|
|
408
422
|
* Gets the general information of the license applied to the current tenant
|
|
423
|
+
*
|
|
409
424
|
* @throws GetLicenseOverviewHttpError
|
|
410
425
|
*/
|
|
411
426
|
getLicenseOverview: typeof getLicenseOverview;
|
|
412
427
|
/**
|
|
413
428
|
* Get auto assign settings for tenant.
|
|
429
|
+
*
|
|
414
430
|
* @throws GetLicenseSettingsHttpError
|
|
415
431
|
*/
|
|
416
432
|
getLicenseSettings: typeof getLicenseSettings;
|
|
417
433
|
/**
|
|
418
434
|
* Set auto assign settings for tenant
|
|
435
|
+
*
|
|
419
436
|
* @param body an object with the body content
|
|
420
437
|
* @throws UpdateLicenseSettingsHttpError
|
|
421
438
|
*/
|
|
422
439
|
updateLicenseSettings: typeof updateLicenseSettings;
|
|
423
440
|
/**
|
|
424
441
|
* Gets the license status information of the current tenant
|
|
442
|
+
*
|
|
425
443
|
* @throws GetLicenseStatusHttpError
|
|
426
444
|
*/
|
|
427
445
|
getLicenseStatus: typeof getLicenseStatus;
|
package/licenses.d.ts
CHANGED
|
@@ -206,6 +206,7 @@ type SettingsBody = {
|
|
|
206
206
|
};
|
|
207
207
|
/**
|
|
208
208
|
* Retrieves assignments for the current tenant
|
|
209
|
+
*
|
|
209
210
|
* @param query an object with query parameters
|
|
210
211
|
* @throws GetLicenseAssignmentsHttpError
|
|
211
212
|
*/
|
|
@@ -235,6 +236,7 @@ type GetLicenseAssignmentsHttpError = {
|
|
|
235
236
|
};
|
|
236
237
|
/**
|
|
237
238
|
* Assigns license access to the given users
|
|
239
|
+
*
|
|
238
240
|
* @param body an object with the body content
|
|
239
241
|
* @throws AddLicenseAssignmentsHttpError
|
|
240
242
|
*/
|
|
@@ -251,6 +253,7 @@ type AddLicenseAssignmentsHttpError = {
|
|
|
251
253
|
};
|
|
252
254
|
/**
|
|
253
255
|
* Removes license access for the given users
|
|
256
|
+
*
|
|
254
257
|
* @param body an object with the body content
|
|
255
258
|
* @throws DeleteLicenseAssignmentsHttpError
|
|
256
259
|
*/
|
|
@@ -267,6 +270,7 @@ type DeleteLicenseAssignmentsHttpError = {
|
|
|
267
270
|
};
|
|
268
271
|
/**
|
|
269
272
|
* Updates license access for the given users
|
|
273
|
+
*
|
|
270
274
|
* @param body an object with the body content
|
|
271
275
|
* @throws UpdateLicenseAssignmentsHttpError
|
|
272
276
|
*/
|
|
@@ -283,6 +287,7 @@ type UpdateLicenseAssignmentsHttpError = {
|
|
|
283
287
|
};
|
|
284
288
|
/**
|
|
285
289
|
* Retrieves license consumption for the current tenant
|
|
290
|
+
*
|
|
286
291
|
* @param query an object with query parameters
|
|
287
292
|
* @throws GetLicenseConsumptionHttpError
|
|
288
293
|
*/
|
|
@@ -310,6 +315,7 @@ type GetLicenseConsumptionHttpError = {
|
|
|
310
315
|
};
|
|
311
316
|
/**
|
|
312
317
|
* Gets the general information of the license applied to the current tenant
|
|
318
|
+
*
|
|
313
319
|
* @throws GetLicenseOverviewHttpError
|
|
314
320
|
*/
|
|
315
321
|
declare const getLicenseOverview: (options?: ApiCallOptions) => Promise<GetLicenseOverviewHttpResponse>;
|
|
@@ -325,6 +331,7 @@ type GetLicenseOverviewHttpError = {
|
|
|
325
331
|
};
|
|
326
332
|
/**
|
|
327
333
|
* Get auto assign settings for tenant.
|
|
334
|
+
*
|
|
328
335
|
* @throws GetLicenseSettingsHttpError
|
|
329
336
|
*/
|
|
330
337
|
declare const getLicenseSettings: (options?: ApiCallOptions) => Promise<GetLicenseSettingsHttpResponse>;
|
|
@@ -340,6 +347,7 @@ type GetLicenseSettingsHttpError = {
|
|
|
340
347
|
};
|
|
341
348
|
/**
|
|
342
349
|
* Set auto assign settings for tenant
|
|
350
|
+
*
|
|
343
351
|
* @param body an object with the body content
|
|
344
352
|
* @throws UpdateLicenseSettingsHttpError
|
|
345
353
|
*/
|
|
@@ -356,6 +364,7 @@ type UpdateLicenseSettingsHttpError = {
|
|
|
356
364
|
};
|
|
357
365
|
/**
|
|
358
366
|
* Gets the license status information of the current tenant
|
|
367
|
+
*
|
|
359
368
|
* @throws GetLicenseStatusHttpError
|
|
360
369
|
*/
|
|
361
370
|
declare const getLicenseStatus: (options?: ApiCallOptions) => Promise<GetLicenseStatusHttpResponse>;
|
|
@@ -376,52 +385,61 @@ declare function clearCache(): void;
|
|
|
376
385
|
interface LicensesAPI {
|
|
377
386
|
/**
|
|
378
387
|
* Retrieves assignments for the current tenant
|
|
388
|
+
*
|
|
379
389
|
* @param query an object with query parameters
|
|
380
390
|
* @throws GetLicenseAssignmentsHttpError
|
|
381
391
|
*/
|
|
382
392
|
getLicenseAssignments: typeof getLicenseAssignments;
|
|
383
393
|
/**
|
|
384
394
|
* Assigns license access to the given users
|
|
395
|
+
*
|
|
385
396
|
* @param body an object with the body content
|
|
386
397
|
* @throws AddLicenseAssignmentsHttpError
|
|
387
398
|
*/
|
|
388
399
|
addLicenseAssignments: typeof addLicenseAssignments;
|
|
389
400
|
/**
|
|
390
401
|
* Removes license access for the given users
|
|
402
|
+
*
|
|
391
403
|
* @param body an object with the body content
|
|
392
404
|
* @throws DeleteLicenseAssignmentsHttpError
|
|
393
405
|
*/
|
|
394
406
|
deleteLicenseAssignments: typeof deleteLicenseAssignments;
|
|
395
407
|
/**
|
|
396
408
|
* Updates license access for the given users
|
|
409
|
+
*
|
|
397
410
|
* @param body an object with the body content
|
|
398
411
|
* @throws UpdateLicenseAssignmentsHttpError
|
|
399
412
|
*/
|
|
400
413
|
updateLicenseAssignments: typeof updateLicenseAssignments;
|
|
401
414
|
/**
|
|
402
415
|
* Retrieves license consumption for the current tenant
|
|
416
|
+
*
|
|
403
417
|
* @param query an object with query parameters
|
|
404
418
|
* @throws GetLicenseConsumptionHttpError
|
|
405
419
|
*/
|
|
406
420
|
getLicenseConsumption: typeof getLicenseConsumption;
|
|
407
421
|
/**
|
|
408
422
|
* Gets the general information of the license applied to the current tenant
|
|
423
|
+
*
|
|
409
424
|
* @throws GetLicenseOverviewHttpError
|
|
410
425
|
*/
|
|
411
426
|
getLicenseOverview: typeof getLicenseOverview;
|
|
412
427
|
/**
|
|
413
428
|
* Get auto assign settings for tenant.
|
|
429
|
+
*
|
|
414
430
|
* @throws GetLicenseSettingsHttpError
|
|
415
431
|
*/
|
|
416
432
|
getLicenseSettings: typeof getLicenseSettings;
|
|
417
433
|
/**
|
|
418
434
|
* Set auto assign settings for tenant
|
|
435
|
+
*
|
|
419
436
|
* @param body an object with the body content
|
|
420
437
|
* @throws UpdateLicenseSettingsHttpError
|
|
421
438
|
*/
|
|
422
439
|
updateLicenseSettings: typeof updateLicenseSettings;
|
|
423
440
|
/**
|
|
424
441
|
* Gets the license status information of the current tenant
|
|
442
|
+
*
|
|
425
443
|
* @throws GetLicenseStatusHttpError
|
|
426
444
|
*/
|
|
427
445
|
getLicenseStatus: typeof getLicenseStatus;
|
package/licenses.js
CHANGED
|
@@ -1,63 +1,68 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkJNGURO23js = require('./chunk-JNGURO23.js');
|
|
5
|
+
require('./chunk-2STFUQKQ.js');
|
|
6
|
+
require('./chunk-P57PW2II.js');
|
|
6
7
|
|
|
7
8
|
// src/public/rest/licenses.ts
|
|
8
|
-
var getLicenseAssignments = async (query, options) =>
|
|
9
|
+
var getLicenseAssignments = async (query, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "licenses", {
|
|
9
10
|
method: "get",
|
|
10
11
|
pathTemplate: "/api/v1/licenses/assignments",
|
|
11
12
|
query,
|
|
12
13
|
options
|
|
13
14
|
});
|
|
14
|
-
var addLicenseAssignments = async (body, options) =>
|
|
15
|
+
var addLicenseAssignments = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "licenses", {
|
|
15
16
|
method: "post",
|
|
16
17
|
pathTemplate: "/api/v1/licenses/assignments/actions/add",
|
|
17
18
|
body,
|
|
19
|
+
contentType: "application/json",
|
|
18
20
|
options
|
|
19
21
|
});
|
|
20
|
-
var deleteLicenseAssignments = async (body, options) =>
|
|
22
|
+
var deleteLicenseAssignments = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "licenses", {
|
|
21
23
|
method: "post",
|
|
22
24
|
pathTemplate: "/api/v1/licenses/assignments/actions/delete",
|
|
23
25
|
body,
|
|
26
|
+
contentType: "application/json",
|
|
24
27
|
options
|
|
25
28
|
});
|
|
26
|
-
var updateLicenseAssignments = async (body, options) =>
|
|
29
|
+
var updateLicenseAssignments = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "licenses", {
|
|
27
30
|
method: "post",
|
|
28
31
|
pathTemplate: "/api/v1/licenses/assignments/actions/update",
|
|
29
32
|
body,
|
|
33
|
+
contentType: "application/json",
|
|
30
34
|
options
|
|
31
35
|
});
|
|
32
|
-
var getLicenseConsumption = async (query, options) =>
|
|
36
|
+
var getLicenseConsumption = async (query, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "licenses", {
|
|
33
37
|
method: "get",
|
|
34
38
|
pathTemplate: "/api/v1/licenses/consumption",
|
|
35
39
|
query,
|
|
36
40
|
options
|
|
37
41
|
});
|
|
38
|
-
var getLicenseOverview = async (options) =>
|
|
42
|
+
var getLicenseOverview = async (options) => _chunkJNGURO23js.invokeFetch.call(void 0, "licenses", {
|
|
39
43
|
method: "get",
|
|
40
44
|
pathTemplate: "/api/v1/licenses/overview",
|
|
41
45
|
options
|
|
42
46
|
});
|
|
43
|
-
var getLicenseSettings = async (options) =>
|
|
47
|
+
var getLicenseSettings = async (options) => _chunkJNGURO23js.invokeFetch.call(void 0, "licenses", {
|
|
44
48
|
method: "get",
|
|
45
49
|
pathTemplate: "/api/v1/licenses/settings",
|
|
46
50
|
options
|
|
47
51
|
});
|
|
48
|
-
var updateLicenseSettings = async (body, options) =>
|
|
52
|
+
var updateLicenseSettings = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "licenses", {
|
|
49
53
|
method: "put",
|
|
50
54
|
pathTemplate: "/api/v1/licenses/settings",
|
|
51
55
|
body,
|
|
56
|
+
contentType: "application/json",
|
|
52
57
|
options
|
|
53
58
|
});
|
|
54
|
-
var getLicenseStatus = async (options) =>
|
|
59
|
+
var getLicenseStatus = async (options) => _chunkJNGURO23js.invokeFetch.call(void 0, "licenses", {
|
|
55
60
|
method: "get",
|
|
56
61
|
pathTemplate: "/api/v1/licenses/status",
|
|
57
62
|
options
|
|
58
63
|
});
|
|
59
64
|
function clearCache() {
|
|
60
|
-
return
|
|
65
|
+
return _chunkJNGURO23js.clearApiCache.call(void 0, "licenses");
|
|
61
66
|
}
|
|
62
67
|
var licensesExport = {
|
|
63
68
|
getLicenseAssignments,
|
package/licenses.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearApiCache,
|
|
3
3
|
invokeFetch
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-TE7XMBT5.mjs";
|
|
5
|
+
import "./chunk-3SVRHJII.mjs";
|
|
6
|
+
import "./chunk-ZFXKCRJC.mjs";
|
|
6
7
|
|
|
7
8
|
// src/public/rest/licenses.ts
|
|
8
9
|
var getLicenseAssignments = async (query, options) => invokeFetch("licenses", {
|
|
@@ -15,18 +16,21 @@ var addLicenseAssignments = async (body, options) => invokeFetch("licenses", {
|
|
|
15
16
|
method: "post",
|
|
16
17
|
pathTemplate: "/api/v1/licenses/assignments/actions/add",
|
|
17
18
|
body,
|
|
19
|
+
contentType: "application/json",
|
|
18
20
|
options
|
|
19
21
|
});
|
|
20
22
|
var deleteLicenseAssignments = async (body, options) => invokeFetch("licenses", {
|
|
21
23
|
method: "post",
|
|
22
24
|
pathTemplate: "/api/v1/licenses/assignments/actions/delete",
|
|
23
25
|
body,
|
|
26
|
+
contentType: "application/json",
|
|
24
27
|
options
|
|
25
28
|
});
|
|
26
29
|
var updateLicenseAssignments = async (body, options) => invokeFetch("licenses", {
|
|
27
30
|
method: "post",
|
|
28
31
|
pathTemplate: "/api/v1/licenses/assignments/actions/update",
|
|
29
32
|
body,
|
|
33
|
+
contentType: "application/json",
|
|
30
34
|
options
|
|
31
35
|
});
|
|
32
36
|
var getLicenseConsumption = async (query, options) => invokeFetch("licenses", {
|
|
@@ -49,6 +53,7 @@ var updateLicenseSettings = async (body, options) => invokeFetch("licenses", {
|
|
|
49
53
|
method: "put",
|
|
50
54
|
pathTemplate: "/api/v1/licenses/settings",
|
|
51
55
|
body,
|
|
56
|
+
contentType: "application/json",
|
|
52
57
|
options
|
|
53
58
|
});
|
|
54
59
|
var getLicenseStatus = async (options) => invokeFetch("licenses", {
|
package/package.json
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
},
|
|
8
8
|
"license": "ISC",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@qlik/embed-runtime": "^0.6.
|
|
11
|
-
"@qlik/runtime-module-loader": "^0.2.
|
|
10
|
+
"@qlik/embed-runtime": "^0.6.2",
|
|
11
|
+
"@qlik/runtime-module-loader": "^0.2.3",
|
|
12
12
|
"bufferutil": "^4.0.8",
|
|
13
13
|
"enigma.js": "^2.12.0",
|
|
14
14
|
"lodash": "^4.17.21",
|
|
15
|
-
"ws": "^8.
|
|
15
|
+
"ws": "^8.15.1"
|
|
16
16
|
},
|
|
17
17
|
"engines": {
|
|
18
18
|
"node": ">=16"
|
|
@@ -249,5 +249,5 @@
|
|
|
249
249
|
"import": "./auth.mjs"
|
|
250
250
|
}
|
|
251
251
|
},
|
|
252
|
-
"version": "0.0.
|
|
252
|
+
"version": "0.0.3"
|
|
253
253
|
}
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkD52VW5UNjs = require('./chunk-D52VW5UN.js');
|
|
8
|
+
require('./chunk-P57PW2II.js');
|
|
8
9
|
|
|
9
10
|
// src/qix/session/shared-sessions.ts
|
|
10
11
|
var globalEventListeners = /* @__PURE__ */ new Set();
|
|
@@ -35,7 +36,7 @@ async function resumeAll() {
|
|
|
35
36
|
var initialActions = {};
|
|
36
37
|
var sharedSessions = {};
|
|
37
38
|
function toGlobalAppSessionId({ appId, identity, hostConfig }) {
|
|
38
|
-
const locationUrl =
|
|
39
|
+
const locationUrl = _chunkD52VW5UNjs.toValidWebsocketLocationUrl.call(void 0, hostConfig);
|
|
39
40
|
return identity ? locationUrl + "/" + appId + "/" + identity : locationUrl + "/" + appId;
|
|
40
41
|
}
|
|
41
42
|
async function runPendingInitialActions(initialActionsForApp, sharedSession, doc) {
|
|
@@ -82,16 +83,16 @@ function listenForWindowsAuthenticationInformation(session) {
|
|
|
82
83
|
return authSuggestedInWebsocket;
|
|
83
84
|
}
|
|
84
85
|
async function createAndSetupEnigmaSession(props, canRetry) {
|
|
85
|
-
const { createEnigmaSession } = await Promise.resolve().then(() => _interopRequireWildcard(require("./enigma-session-
|
|
86
|
+
const { createEnigmaSession } = await Promise.resolve().then(() => _interopRequireWildcard(require("./enigma-session-XPXDQAIV.js")));
|
|
86
87
|
const session = await createEnigmaSession(props);
|
|
87
88
|
setupSessionListeners(session, props);
|
|
88
89
|
let global;
|
|
89
|
-
if (await
|
|
90
|
+
if (await _chunkD52VW5UNjs.isWindows.call(void 0, props.hostConfig)) {
|
|
90
91
|
const loginInfoPromise = listenForWindowsAuthenticationInformation(session);
|
|
91
92
|
global = await session.open();
|
|
92
93
|
const loginInfo = await loginInfoPromise;
|
|
93
94
|
if (_optionalChain([loginInfo, 'optionalAccess', _ => _.mustAuthenticate])) {
|
|
94
|
-
const action = await
|
|
95
|
+
const action = await _chunkD52VW5UNjs.handleAuthenticationError.call(void 0, {
|
|
95
96
|
headers: new Headers(),
|
|
96
97
|
status: 101,
|
|
97
98
|
canRetry,
|
|
@@ -388,8 +389,8 @@ async function checkConnectivity(hostConfig) {
|
|
|
388
389
|
timeoutMs: 2e3,
|
|
389
390
|
noCache: true
|
|
390
391
|
};
|
|
391
|
-
const fetchRoot =
|
|
392
|
-
const fetchMe =
|
|
392
|
+
const fetchRoot = _chunkD52VW5UNjs.invokeFetch.call(void 0, "", { method, pathTemplate: "", options }).catch(catchFunc);
|
|
393
|
+
const fetchMe = _chunkD52VW5UNjs.invokeFetch.call(void 0, "", { method, pathTemplate: "/api/v1/users/me", options }).catch(catchFunc);
|
|
393
394
|
await Promise.all([fetchRoot, fetchMe]);
|
|
394
395
|
return Promise.resolve(status);
|
|
395
396
|
}
|
|
@@ -434,7 +435,7 @@ function getOrCreateSharedSession(props) {
|
|
|
434
435
|
// src/qix/qix-functions.ts
|
|
435
436
|
async function createSessionApp() {
|
|
436
437
|
let sharedSession;
|
|
437
|
-
if ((await
|
|
438
|
+
if ((await _chunkD52VW5UNjs.getPlatform.call(void 0, )).isCloud) {
|
|
438
439
|
sharedSession = await getOrCreateSharedSession({ appId: `SessionApp_${Date.now()}` });
|
|
439
440
|
} else {
|
|
440
441
|
sharedSession = await getOrCreateSharedSession({
|
|
@@ -4,7 +4,8 @@ import {
|
|
|
4
4
|
invokeFetch,
|
|
5
5
|
isWindows,
|
|
6
6
|
toValidWebsocketLocationUrl
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CYRLVHU3.mjs";
|
|
8
|
+
import "./chunk-ZFXKCRJC.mjs";
|
|
8
9
|
|
|
9
10
|
// src/qix/session/shared-sessions.ts
|
|
10
11
|
var globalEventListeners = /* @__PURE__ */ new Set();
|
|
@@ -82,7 +83,7 @@ function listenForWindowsAuthenticationInformation(session) {
|
|
|
82
83
|
return authSuggestedInWebsocket;
|
|
83
84
|
}
|
|
84
85
|
async function createAndSetupEnigmaSession(props, canRetry) {
|
|
85
|
-
const { createEnigmaSession } = await import("./enigma-session-
|
|
86
|
+
const { createEnigmaSession } = await import("./enigma-session-ZH6MYA54.mjs");
|
|
86
87
|
const session = await createEnigmaSession(props);
|
|
87
88
|
setupSessionListeners(session, props);
|
|
88
89
|
let global;
|
package/qix.d.mts
CHANGED
package/qix.d.ts
CHANGED