@qlik/api 0.0.1 → 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/.github/CODEOWNERS +2 -0
- package/.github/workflows/release.yaml +35 -0
- package/README.md +1 -3
- package/api-keys.d.mts +27 -13
- package/api-keys.d.ts +27 -13
- package/api-keys.js +17 -13
- package/api-keys.mjs +12 -8
- package/apps.d.mts +580 -165
- package/apps.d.ts +580 -165
- package/apps.js +111 -44
- package/apps.mjs +78 -11
- package/audits.d.mts +20 -8
- package/audits.d.ts +20 -8
- package/audits.js +12 -11
- package/audits.mjs +7 -6
- package/auth-AWZV4DPP.js +41 -0
- package/{auth-TE272Q34.mjs → auth-CPBNNC7S.mjs} +8 -3
- package/auth.js +4 -3
- package/auth.mjs +3 -2
- package/automations.d.mts +56 -20
- package/automations.d.ts +56 -20
- package/automations.js +32 -25
- package/automations.mjs +18 -11
- 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-WM7FQU2U.mjs → chunk-3SVRHJII.mjs} +3 -3
- package/{chunk-CKPJE4IA.mjs → chunk-67GJTTPV.mjs} +1 -1
- package/{chunk-4ES65KO3.js → chunk-7RY3NO6N.js} +2 -2
- package/{chunk-4OMEH5SW.mjs → chunk-CYRLVHU3.mjs} +321 -53
- package/{chunk-XASXL2NC.js → chunk-D52VW5UN.js} +323 -55
- package/{chunk-GUQBHY3H.mjs → chunk-GNWU6SP2.mjs} +1 -1
- package/{chunk-4FLMND6T.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 +52 -18
- package/collections.d.ts +52 -18
- 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 +20 -0
- package/data-connections.d.ts +20 -0
- package/data-connections.js +19 -12
- package/data-connections.mjs +9 -2
- package/data-credentials.d.mts +10 -0
- package/data-credentials.d.ts +10 -0
- package/data-credentials.js +10 -7
- package/data-credentials.mjs +5 -2
- package/data-files.d.mts +114 -29
- package/data-files.d.ts +114 -29
- package/data-files.js +25 -18
- package/data-files.mjs +15 -8
- package/{enigma-session-TEB53FAF.js → enigma-session-XPXDQAIV.js} +12 -7
- package/{enigma-session-4L373ALV.mjs → enigma-session-ZH6MYA54.mjs} +10 -5
- package/{esm-4X3DKK5D.js → esm-3VXX2GKL.js} +13 -9
- package/{esm-SOWVJKOQ.mjs → esm-OY4XVIJB.mjs} +13 -9
- 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 +29 -13
- package/groups.d.ts +29 -13
- package/groups.js +19 -14
- package/groups.mjs +13 -8
- package/identity-providers.d.mts +23 -7
- package/identity-providers.d.ts +23 -7
- package/identity-providers.js +16 -13
- package/identity-providers.mjs +8 -5
- package/index.js +150 -112
- package/index.mjs +146 -108
- package/{invoke-fetch-MSSJAZ7K.mjs → invoke-fetch-3WZWAAZH.mjs} +4 -1
- package/invoke-fetch-UNTAUR7O.js +17 -0
- package/items.d.mts +25 -22
- package/items.d.ts +25 -22
- package/items.js +17 -14
- package/items.mjs +11 -8
- package/licenses.d.mts +20 -0
- package/licenses.d.ts +20 -0
- package/licenses.js +17 -12
- package/licenses.mjs +7 -2
- package/package.json +7 -18
- package/{qix-RLTISYTB.js → qix-UNWXPGMA.js} +9 -8
- package/{qix-EU7PXRZ6.mjs → qix-ZSJ4PIK3.mjs} +5 -4
- package/qix.d.mts +1066 -1017
- package/qix.d.ts +1066 -1017
- 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.d.mts +2 -0
- package/reload-tasks.d.ts +2 -0
- package/reload-tasks.js +11 -8
- package/reload-tasks.mjs +5 -2
- package/reloads.d.mts +20 -11
- package/reloads.d.ts +20 -11
- 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 +36 -30
- package/spaces.d.ts +36 -30
- package/spaces.js +21 -15
- package/spaces.mjs +8 -2
- package/temp-contents.d.mts +9 -70
- package/temp-contents.d.ts +9 -70
- package/temp-contents.js +10 -29
- package/temp-contents.mjs +5 -24
- 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 +27 -7
- package/webhooks.d.ts +27 -7
- package/webhooks.js +17 -13
- package/webhooks.mjs +6 -2
- package/auth-CSVTXOZX.js +0 -36
- package/invoke-fetch-PEI54KZO.js +0 -14
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
|
*/
|
|
@@ -214,6 +215,8 @@ declare const getLicenseAssignments: (query: {
|
|
|
214
215
|
filter?: string;
|
|
215
216
|
/** The preferred number of entries to return. */
|
|
216
217
|
limit?: number;
|
|
218
|
+
/** Only return assignments which are 'orphans' in the current tenant. */
|
|
219
|
+
orphans?: boolean;
|
|
217
220
|
/** The requested page. */
|
|
218
221
|
page?: string;
|
|
219
222
|
/** The field to sort on; can be prefixed with +/- for ascending/descending sort order. */
|
|
@@ -233,6 +236,7 @@ type GetLicenseAssignmentsHttpError = {
|
|
|
233
236
|
};
|
|
234
237
|
/**
|
|
235
238
|
* Assigns license access to the given users
|
|
239
|
+
*
|
|
236
240
|
* @param body an object with the body content
|
|
237
241
|
* @throws AddLicenseAssignmentsHttpError
|
|
238
242
|
*/
|
|
@@ -249,6 +253,7 @@ type AddLicenseAssignmentsHttpError = {
|
|
|
249
253
|
};
|
|
250
254
|
/**
|
|
251
255
|
* Removes license access for the given users
|
|
256
|
+
*
|
|
252
257
|
* @param body an object with the body content
|
|
253
258
|
* @throws DeleteLicenseAssignmentsHttpError
|
|
254
259
|
*/
|
|
@@ -265,6 +270,7 @@ type DeleteLicenseAssignmentsHttpError = {
|
|
|
265
270
|
};
|
|
266
271
|
/**
|
|
267
272
|
* Updates license access for the given users
|
|
273
|
+
*
|
|
268
274
|
* @param body an object with the body content
|
|
269
275
|
* @throws UpdateLicenseAssignmentsHttpError
|
|
270
276
|
*/
|
|
@@ -281,6 +287,7 @@ type UpdateLicenseAssignmentsHttpError = {
|
|
|
281
287
|
};
|
|
282
288
|
/**
|
|
283
289
|
* Retrieves license consumption for the current tenant
|
|
290
|
+
*
|
|
284
291
|
* @param query an object with query parameters
|
|
285
292
|
* @throws GetLicenseConsumptionHttpError
|
|
286
293
|
*/
|
|
@@ -308,6 +315,7 @@ type GetLicenseConsumptionHttpError = {
|
|
|
308
315
|
};
|
|
309
316
|
/**
|
|
310
317
|
* Gets the general information of the license applied to the current tenant
|
|
318
|
+
*
|
|
311
319
|
* @throws GetLicenseOverviewHttpError
|
|
312
320
|
*/
|
|
313
321
|
declare const getLicenseOverview: (options?: ApiCallOptions) => Promise<GetLicenseOverviewHttpResponse>;
|
|
@@ -323,6 +331,7 @@ type GetLicenseOverviewHttpError = {
|
|
|
323
331
|
};
|
|
324
332
|
/**
|
|
325
333
|
* Get auto assign settings for tenant.
|
|
334
|
+
*
|
|
326
335
|
* @throws GetLicenseSettingsHttpError
|
|
327
336
|
*/
|
|
328
337
|
declare const getLicenseSettings: (options?: ApiCallOptions) => Promise<GetLicenseSettingsHttpResponse>;
|
|
@@ -338,6 +347,7 @@ type GetLicenseSettingsHttpError = {
|
|
|
338
347
|
};
|
|
339
348
|
/**
|
|
340
349
|
* Set auto assign settings for tenant
|
|
350
|
+
*
|
|
341
351
|
* @param body an object with the body content
|
|
342
352
|
* @throws UpdateLicenseSettingsHttpError
|
|
343
353
|
*/
|
|
@@ -354,6 +364,7 @@ type UpdateLicenseSettingsHttpError = {
|
|
|
354
364
|
};
|
|
355
365
|
/**
|
|
356
366
|
* Gets the license status information of the current tenant
|
|
367
|
+
*
|
|
357
368
|
* @throws GetLicenseStatusHttpError
|
|
358
369
|
*/
|
|
359
370
|
declare const getLicenseStatus: (options?: ApiCallOptions) => Promise<GetLicenseStatusHttpResponse>;
|
|
@@ -374,52 +385,61 @@ declare function clearCache(): void;
|
|
|
374
385
|
interface LicensesAPI {
|
|
375
386
|
/**
|
|
376
387
|
* Retrieves assignments for the current tenant
|
|
388
|
+
*
|
|
377
389
|
* @param query an object with query parameters
|
|
378
390
|
* @throws GetLicenseAssignmentsHttpError
|
|
379
391
|
*/
|
|
380
392
|
getLicenseAssignments: typeof getLicenseAssignments;
|
|
381
393
|
/**
|
|
382
394
|
* Assigns license access to the given users
|
|
395
|
+
*
|
|
383
396
|
* @param body an object with the body content
|
|
384
397
|
* @throws AddLicenseAssignmentsHttpError
|
|
385
398
|
*/
|
|
386
399
|
addLicenseAssignments: typeof addLicenseAssignments;
|
|
387
400
|
/**
|
|
388
401
|
* Removes license access for the given users
|
|
402
|
+
*
|
|
389
403
|
* @param body an object with the body content
|
|
390
404
|
* @throws DeleteLicenseAssignmentsHttpError
|
|
391
405
|
*/
|
|
392
406
|
deleteLicenseAssignments: typeof deleteLicenseAssignments;
|
|
393
407
|
/**
|
|
394
408
|
* Updates license access for the given users
|
|
409
|
+
*
|
|
395
410
|
* @param body an object with the body content
|
|
396
411
|
* @throws UpdateLicenseAssignmentsHttpError
|
|
397
412
|
*/
|
|
398
413
|
updateLicenseAssignments: typeof updateLicenseAssignments;
|
|
399
414
|
/**
|
|
400
415
|
* Retrieves license consumption for the current tenant
|
|
416
|
+
*
|
|
401
417
|
* @param query an object with query parameters
|
|
402
418
|
* @throws GetLicenseConsumptionHttpError
|
|
403
419
|
*/
|
|
404
420
|
getLicenseConsumption: typeof getLicenseConsumption;
|
|
405
421
|
/**
|
|
406
422
|
* Gets the general information of the license applied to the current tenant
|
|
423
|
+
*
|
|
407
424
|
* @throws GetLicenseOverviewHttpError
|
|
408
425
|
*/
|
|
409
426
|
getLicenseOverview: typeof getLicenseOverview;
|
|
410
427
|
/**
|
|
411
428
|
* Get auto assign settings for tenant.
|
|
429
|
+
*
|
|
412
430
|
* @throws GetLicenseSettingsHttpError
|
|
413
431
|
*/
|
|
414
432
|
getLicenseSettings: typeof getLicenseSettings;
|
|
415
433
|
/**
|
|
416
434
|
* Set auto assign settings for tenant
|
|
435
|
+
*
|
|
417
436
|
* @param body an object with the body content
|
|
418
437
|
* @throws UpdateLicenseSettingsHttpError
|
|
419
438
|
*/
|
|
420
439
|
updateLicenseSettings: typeof updateLicenseSettings;
|
|
421
440
|
/**
|
|
422
441
|
* Gets the license status information of the current tenant
|
|
442
|
+
*
|
|
423
443
|
* @throws GetLicenseStatusHttpError
|
|
424
444
|
*/
|
|
425
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
|
@@ -1,33 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qlik/api",
|
|
3
|
-
"version": "0.0.1",
|
|
4
3
|
"description": "Exposes functions for interacting with Qlik apis",
|
|
5
4
|
"repository": {
|
|
6
5
|
"type": "git",
|
|
7
6
|
"url": "git+https://github.com/qlik-oss/qlik-api-ts.git"
|
|
8
7
|
},
|
|
9
|
-
"publishConfig": {
|
|
10
|
-
"access": "public"
|
|
11
|
-
},
|
|
12
8
|
"license": "ISC",
|
|
13
|
-
"files": [
|
|
14
|
-
"docs",
|
|
15
|
-
"*.js",
|
|
16
|
-
"*.mjs",
|
|
17
|
-
"*.d.ts",
|
|
18
|
-
"*.d.mts"
|
|
19
|
-
],
|
|
20
9
|
"dependencies": {
|
|
21
|
-
"@qlik/embed-runtime": "^0.
|
|
22
|
-
"@qlik/runtime-module-loader": "^0.
|
|
10
|
+
"@qlik/embed-runtime": "^0.6.2",
|
|
11
|
+
"@qlik/runtime-module-loader": "^0.2.3",
|
|
23
12
|
"bufferutil": "^4.0.8",
|
|
24
13
|
"enigma.js": "^2.12.0",
|
|
25
14
|
"lodash": "^4.17.21",
|
|
26
|
-
"ws": "^8.
|
|
15
|
+
"ws": "^8.15.1"
|
|
27
16
|
},
|
|
28
17
|
"engines": {
|
|
29
|
-
"node": ">=16"
|
|
30
|
-
"pnpm": ">=8"
|
|
18
|
+
"node": ">=16"
|
|
31
19
|
},
|
|
32
20
|
"main": "index.js",
|
|
33
21
|
"module": "index.mjs",
|
|
@@ -260,5 +248,6 @@
|
|
|
260
248
|
"./auth.mjs": {
|
|
261
249
|
"import": "./auth.mjs"
|
|
262
250
|
}
|
|
263
|
-
}
|
|
264
|
-
|
|
251
|
+
},
|
|
252
|
+
"version": "0.0.3"
|
|
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({
|
|
@@ -3,8 +3,9 @@ import {
|
|
|
3
3
|
handleAuthenticationError,
|
|
4
4
|
invokeFetch,
|
|
5
5
|
isWindows,
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
toValidWebsocketLocationUrl
|
|
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();
|
|
@@ -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 = toValidWebsocketLocationUrl(hostConfig);
|
|
39
40
|
return identity ? locationUrl + "/" + appId + "/" + identity : locationUrl + "/" + appId;
|
|
40
41
|
}
|
|
41
42
|
async function runPendingInitialActions(initialActionsForApp, sharedSession, doc) {
|
|
@@ -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;
|