@qlik/api 0.0.14 → 0.0.16
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 +10 -10
- package/api-keys.mjs +2 -2
- package/apps.d.mts +20 -10
- package/apps.d.ts +20 -10
- package/apps.js +46 -46
- package/apps.mjs +2 -2
- package/audits.d.mts +0 -1
- package/audits.d.ts +0 -1
- package/audits.js +9 -9
- package/audits.mjs +2 -2
- package/auth.js +3 -3
- package/auth.mjs +2 -2
- package/automations.js +21 -21
- package/automations.mjs +2 -2
- package/brands.js +15 -15
- package/brands.mjs +2 -2
- package/chunks/{SEXEAWEC.js → 2YWCEGTS.js} +3 -3
- package/chunks/34ZKUFEA.js +41 -0
- package/chunks/{VCYQUP4Y.mjs → 3YV6X7S6.mjs} +1 -1
- package/chunks/{ICTODCOL.js → 4WHZ4EIW.js} +2 -2
- package/chunks/{M7UTYYGM.mjs → 6AD3HYSF.mjs} +1 -1
- package/chunks/{3INB42LZ.mjs → 6WX5AGKQ.mjs} +1 -1
- package/chunks/{JYRPLJUL.js → B4VPD3ZT.js} +11 -11
- package/chunks/BM4OSDRZ.js +17 -0
- package/chunks/{JZOX7DKF.mjs → BYD63JCG.mjs} +43 -41
- package/chunks/{H32EGPZN.mjs → DCXUEDOW.mjs} +1 -1
- package/chunks/{X474LM7J.mjs → EHAANYDL.mjs} +3 -3
- package/chunks/{3SBSHHRV.mjs → HHOVS7QC.mjs} +5 -5
- package/chunks/{IJNQAGVX.mjs → HOCTJESP.mjs} +70 -4
- package/chunks/{HHMKNG2O.js → MTAQE4WC.js} +75 -9
- package/chunks/{CX7TY2FM.mjs → O4EAKEIN.mjs} +1 -1
- package/chunks/{WM2VCN4G.js → OPRGGO4C.js} +1 -1
- package/chunks/{SMKHFJJF.js → PLOSYUG2.js} +4 -4
- package/chunks/{J3ZWASEK.mjs → UKVTBYP6.mjs} +1 -1
- package/chunks/{TH75GYUY.js → URIW2U5M.js} +3 -3
- package/chunks/{6KX2ETIK.js → WOYJLK4Y.js} +43 -41
- package/collections.js +14 -14
- package/collections.mjs +2 -2
- package/csp-origins.js +9 -9
- package/csp-origins.mjs +2 -2
- package/data-assets.js +8 -8
- package/data-assets.mjs +2 -2
- package/data-connections.d.mts +97 -61
- package/data-connections.d.ts +97 -61
- package/data-connections.js +12 -12
- package/data-connections.mjs +2 -2
- package/data-credentials.d.mts +3 -2
- package/data-credentials.d.ts +3 -2
- package/data-credentials.js +7 -7
- package/data-credentials.mjs +2 -2
- package/data-files.js +15 -15
- package/data-files.mjs +2 -2
- package/docs/examples/open-without-data.md +40 -0
- package/docs/examples.md +1 -0
- package/docs/qix.md +21 -2
- package/extensions.js +10 -10
- package/extensions.mjs +2 -2
- package/glossaries.js +27 -27
- package/glossaries.mjs +2 -2
- package/groups.js +11 -11
- package/groups.mjs +2 -2
- package/identity-providers.js +11 -11
- package/identity-providers.mjs +2 -2
- package/index.js +8 -8
- package/index.mjs +4 -4
- package/items.js +11 -11
- package/items.mjs +2 -2
- package/licenses.js +12 -12
- package/licenses.mjs +2 -2
- package/package.json +3 -3
- package/qix.d.mts +6 -1
- package/qix.d.ts +6 -1
- package/qix.js +3 -3
- package/qix.mjs +2 -2
- package/quotas.js +5 -5
- package/quotas.mjs +2 -2
- package/reload-tasks.js +8 -8
- package/reload-tasks.mjs +2 -2
- package/reloads.js +7 -7
- package/reloads.mjs +2 -2
- package/roles.js +5 -5
- package/roles.mjs +2 -2
- package/spaces.js +15 -15
- package/spaces.mjs +2 -2
- package/temp-contents.js +6 -6
- package/temp-contents.mjs +2 -2
- package/tenants.js +9 -9
- package/tenants.mjs +2 -2
- package/themes.js +10 -10
- package/themes.mjs +2 -2
- package/transports.js +9 -9
- package/transports.mjs +2 -2
- package/users.js +13 -13
- package/users.mjs +2 -2
- package/web-integrations.js +8 -8
- package/web-integrations.mjs +2 -2
- package/web-notifications.js +9 -9
- package/web-notifications.mjs +2 -2
- package/webhooks.js +13 -13
- package/webhooks.mjs +2 -2
- package/chunks/GMCMKY65.js +0 -41
- package/chunks/ME4LNBI3.js +0 -17
package/data-connections.js
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunks/
|
|
4
|
+
var _URIW2U5Mjs = require('./chunks/URIW2U5M.js');
|
|
5
|
+
require('./chunks/2YWCEGTS.js');
|
|
6
6
|
require('./chunks/4HB3TAEO.js');
|
|
7
7
|
|
|
8
8
|
// src/public/rest/data-connections.ts
|
|
9
|
-
var getDataConnections = async (query, options) =>
|
|
9
|
+
var getDataConnections = async (query, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-connections", {
|
|
10
10
|
method: "get",
|
|
11
11
|
pathTemplate: "/api/v1/data-connections",
|
|
12
12
|
query,
|
|
13
13
|
options
|
|
14
14
|
});
|
|
15
|
-
var createDataConnection = async (body, options) =>
|
|
15
|
+
var createDataConnection = async (body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-connections", {
|
|
16
16
|
method: "post",
|
|
17
17
|
pathTemplate: "/api/v1/data-connections",
|
|
18
18
|
body,
|
|
19
19
|
contentType: "application/json",
|
|
20
20
|
options
|
|
21
21
|
});
|
|
22
|
-
var deleteDataConnections = async (body, options) =>
|
|
22
|
+
var deleteDataConnections = async (body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-connections", {
|
|
23
23
|
method: "post",
|
|
24
24
|
pathTemplate: "/api/v1/data-connections/actions/delete",
|
|
25
25
|
body,
|
|
26
26
|
contentType: "application/json",
|
|
27
27
|
options
|
|
28
28
|
});
|
|
29
|
-
var duplicateDataAConnection = async (body, options) =>
|
|
29
|
+
var duplicateDataAConnection = async (body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-connections", {
|
|
30
30
|
method: "post",
|
|
31
31
|
pathTemplate: "/api/v1/data-connections/actions/duplicate",
|
|
32
32
|
body,
|
|
33
33
|
contentType: "application/json",
|
|
34
34
|
options
|
|
35
35
|
});
|
|
36
|
-
var updateDataConnections = async (body, options) =>
|
|
36
|
+
var updateDataConnections = async (body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-connections", {
|
|
37
37
|
method: "post",
|
|
38
38
|
pathTemplate: "/api/v1/data-connections/actions/update",
|
|
39
39
|
body,
|
|
40
40
|
contentType: "application/json",
|
|
41
41
|
options
|
|
42
42
|
});
|
|
43
|
-
var deleteDataConnection = async (qID, query, options) =>
|
|
43
|
+
var deleteDataConnection = async (qID, query, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-connections", {
|
|
44
44
|
method: "delete",
|
|
45
45
|
pathTemplate: "/api/v1/data-connections/{qID}",
|
|
46
46
|
pathVariables: { qID },
|
|
47
47
|
query,
|
|
48
48
|
options
|
|
49
49
|
});
|
|
50
|
-
var getDataConnection = async (qID, query, options) =>
|
|
50
|
+
var getDataConnection = async (qID, query, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-connections", {
|
|
51
51
|
method: "get",
|
|
52
52
|
pathTemplate: "/api/v1/data-connections/{qID}",
|
|
53
53
|
pathVariables: { qID },
|
|
54
54
|
query,
|
|
55
55
|
options
|
|
56
56
|
});
|
|
57
|
-
var patchDataConnection = async (qID, query, body, options) =>
|
|
57
|
+
var patchDataConnection = async (qID, query, body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-connections", {
|
|
58
58
|
method: "patch",
|
|
59
59
|
pathTemplate: "/api/v1/data-connections/{qID}",
|
|
60
60
|
pathVariables: { qID },
|
|
@@ -63,7 +63,7 @@ var patchDataConnection = async (qID, query, body, options) => _TH75GYUYjs.invok
|
|
|
63
63
|
contentType: "application/json",
|
|
64
64
|
options
|
|
65
65
|
});
|
|
66
|
-
var updateDataConnection = async (qID, query, body, options) =>
|
|
66
|
+
var updateDataConnection = async (qID, query, body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-connections", {
|
|
67
67
|
method: "put",
|
|
68
68
|
pathTemplate: "/api/v1/data-connections/{qID}",
|
|
69
69
|
pathVariables: { qID },
|
|
@@ -73,7 +73,7 @@ var updateDataConnection = async (qID, query, body, options) => _TH75GYUYjs.invo
|
|
|
73
73
|
options
|
|
74
74
|
});
|
|
75
75
|
function clearCache() {
|
|
76
|
-
return
|
|
76
|
+
return _URIW2U5Mjs.clearApiCache.call(void 0, "data-connections");
|
|
77
77
|
}
|
|
78
78
|
var dataConnectionsExport = {
|
|
79
79
|
getDataConnections,
|
package/data-connections.mjs
CHANGED
package/data-credentials.d.mts
CHANGED
|
@@ -26,11 +26,11 @@ type CredentialCreate = {
|
|
|
26
26
|
datasourceID?: string;
|
|
27
27
|
/** UUID of the credential */
|
|
28
28
|
qID?: string;
|
|
29
|
-
/**
|
|
29
|
+
/** Name of the credential */
|
|
30
30
|
qName: string;
|
|
31
31
|
/** Password */
|
|
32
32
|
qPassword: string;
|
|
33
|
-
/** Type of credential */
|
|
33
|
+
/** Type of credential (i.e. connector provider of the corresponding connection) */
|
|
34
34
|
qType: string;
|
|
35
35
|
/** User name */
|
|
36
36
|
qUsername: string;
|
|
@@ -49,6 +49,7 @@ type Errors = Error[];
|
|
|
49
49
|
type Link = {
|
|
50
50
|
/** Link to cirrent query */
|
|
51
51
|
self: {
|
|
52
|
+
/** URL pointing to the resource */
|
|
52
53
|
href: string;
|
|
53
54
|
};
|
|
54
55
|
};
|
package/data-credentials.d.ts
CHANGED
|
@@ -26,11 +26,11 @@ type CredentialCreate = {
|
|
|
26
26
|
datasourceID?: string;
|
|
27
27
|
/** UUID of the credential */
|
|
28
28
|
qID?: string;
|
|
29
|
-
/**
|
|
29
|
+
/** Name of the credential */
|
|
30
30
|
qName: string;
|
|
31
31
|
/** Password */
|
|
32
32
|
qPassword: string;
|
|
33
|
-
/** Type of credential */
|
|
33
|
+
/** Type of credential (i.e. connector provider of the corresponding connection) */
|
|
34
34
|
qType: string;
|
|
35
35
|
/** User name */
|
|
36
36
|
qUsername: string;
|
|
@@ -49,6 +49,7 @@ type Errors = Error[];
|
|
|
49
49
|
type Link = {
|
|
50
50
|
/** Link to cirrent query */
|
|
51
51
|
self: {
|
|
52
|
+
/** URL pointing to the resource */
|
|
52
53
|
href: string;
|
|
53
54
|
};
|
|
54
55
|
};
|
package/data-credentials.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunks/
|
|
4
|
+
var _URIW2U5Mjs = require('./chunks/URIW2U5M.js');
|
|
5
|
+
require('./chunks/2YWCEGTS.js');
|
|
6
6
|
require('./chunks/4HB3TAEO.js');
|
|
7
7
|
|
|
8
8
|
// src/public/rest/data-credentials.ts
|
|
9
|
-
var deleteDataCredential = async (qID, query, options) =>
|
|
9
|
+
var deleteDataCredential = async (qID, query, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-credentials", {
|
|
10
10
|
method: "delete",
|
|
11
11
|
pathTemplate: "/api/v1/data-credentials/{qID}",
|
|
12
12
|
pathVariables: { qID },
|
|
13
13
|
query,
|
|
14
14
|
options
|
|
15
15
|
});
|
|
16
|
-
var getDataCredential = async (qID, query, options) =>
|
|
16
|
+
var getDataCredential = async (qID, query, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-credentials", {
|
|
17
17
|
method: "get",
|
|
18
18
|
pathTemplate: "/api/v1/data-credentials/{qID}",
|
|
19
19
|
pathVariables: { qID },
|
|
20
20
|
query,
|
|
21
21
|
options
|
|
22
22
|
});
|
|
23
|
-
var patchDataCredential = async (qID, query, body, options) =>
|
|
23
|
+
var patchDataCredential = async (qID, query, body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-credentials", {
|
|
24
24
|
method: "patch",
|
|
25
25
|
pathTemplate: "/api/v1/data-credentials/{qID}",
|
|
26
26
|
pathVariables: { qID },
|
|
@@ -29,7 +29,7 @@ var patchDataCredential = async (qID, query, body, options) => _TH75GYUYjs.invok
|
|
|
29
29
|
contentType: "application/json",
|
|
30
30
|
options
|
|
31
31
|
});
|
|
32
|
-
var updateDataCredential = async (qID, query, body, options) =>
|
|
32
|
+
var updateDataCredential = async (qID, query, body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-credentials", {
|
|
33
33
|
method: "put",
|
|
34
34
|
pathTemplate: "/api/v1/data-credentials/{qID}",
|
|
35
35
|
pathVariables: { qID },
|
|
@@ -39,7 +39,7 @@ var updateDataCredential = async (qID, query, body, options) => _TH75GYUYjs.invo
|
|
|
39
39
|
options
|
|
40
40
|
});
|
|
41
41
|
function clearCache() {
|
|
42
|
-
return
|
|
42
|
+
return _URIW2U5Mjs.clearApiCache.call(void 0, "data-credentials");
|
|
43
43
|
}
|
|
44
44
|
var dataCredentialsExport = {
|
|
45
45
|
deleteDataCredential,
|
package/data-credentials.mjs
CHANGED
package/data-files.js
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunks/
|
|
4
|
+
var _URIW2U5Mjs = require('./chunks/URIW2U5M.js');
|
|
5
|
+
require('./chunks/2YWCEGTS.js');
|
|
6
6
|
require('./chunks/4HB3TAEO.js');
|
|
7
7
|
|
|
8
8
|
// src/public/rest/data-files.ts
|
|
9
|
-
var getDataFiles = async (query, options) =>
|
|
9
|
+
var getDataFiles = async (query, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-files", {
|
|
10
10
|
method: "get",
|
|
11
11
|
pathTemplate: "/api/v1/data-files",
|
|
12
12
|
query,
|
|
13
13
|
options
|
|
14
14
|
});
|
|
15
|
-
var uploadDataFile = async (body, options) =>
|
|
15
|
+
var uploadDataFile = async (body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-files", {
|
|
16
16
|
method: "post",
|
|
17
17
|
pathTemplate: "/api/v1/data-files",
|
|
18
18
|
body,
|
|
19
19
|
contentType: "multipart/form-data",
|
|
20
20
|
options
|
|
21
21
|
});
|
|
22
|
-
var moveDataFiles = async (body, options) =>
|
|
22
|
+
var moveDataFiles = async (body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-files", {
|
|
23
23
|
method: "post",
|
|
24
24
|
pathTemplate: "/api/v1/data-files/actions/change-space",
|
|
25
25
|
body,
|
|
26
26
|
contentType: "application/json",
|
|
27
27
|
options
|
|
28
28
|
});
|
|
29
|
-
var deleteDataFiles = async (body, options) =>
|
|
29
|
+
var deleteDataFiles = async (body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-files", {
|
|
30
30
|
method: "post",
|
|
31
31
|
pathTemplate: "/api/v1/data-files/actions/delete",
|
|
32
32
|
body,
|
|
33
33
|
contentType: "application/json",
|
|
34
34
|
options
|
|
35
35
|
});
|
|
36
|
-
var getDataFilesConnections = async (query, options) =>
|
|
36
|
+
var getDataFilesConnections = async (query, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-files", {
|
|
37
37
|
method: "get",
|
|
38
38
|
pathTemplate: "/api/v1/data-files/connections",
|
|
39
39
|
query,
|
|
40
40
|
options
|
|
41
41
|
});
|
|
42
|
-
var getDataFileConnection = async (id, options) =>
|
|
42
|
+
var getDataFileConnection = async (id, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-files", {
|
|
43
43
|
method: "get",
|
|
44
44
|
pathTemplate: "/api/v1/data-files/connections/{id}",
|
|
45
45
|
pathVariables: { id },
|
|
46
46
|
options
|
|
47
47
|
});
|
|
48
|
-
var getDataFilesQuotas = async (options) =>
|
|
48
|
+
var getDataFilesQuotas = async (options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-files", {
|
|
49
49
|
method: "get",
|
|
50
50
|
pathTemplate: "/api/v1/data-files/quotas",
|
|
51
51
|
options
|
|
52
52
|
});
|
|
53
|
-
var deleteDataFile = async (id, options) =>
|
|
53
|
+
var deleteDataFile = async (id, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-files", {
|
|
54
54
|
method: "delete",
|
|
55
55
|
pathTemplate: "/api/v1/data-files/{id}",
|
|
56
56
|
pathVariables: { id },
|
|
57
57
|
options
|
|
58
58
|
});
|
|
59
|
-
var getDataFile = async (id, options) =>
|
|
59
|
+
var getDataFile = async (id, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-files", {
|
|
60
60
|
method: "get",
|
|
61
61
|
pathTemplate: "/api/v1/data-files/{id}",
|
|
62
62
|
pathVariables: { id },
|
|
63
63
|
options
|
|
64
64
|
});
|
|
65
|
-
var reuploadDataFile = async (id, body, options) =>
|
|
65
|
+
var reuploadDataFile = async (id, body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-files", {
|
|
66
66
|
method: "put",
|
|
67
67
|
pathTemplate: "/api/v1/data-files/{id}",
|
|
68
68
|
pathVariables: { id },
|
|
@@ -70,7 +70,7 @@ var reuploadDataFile = async (id, body, options) => _TH75GYUYjs.invokeFetch.call
|
|
|
70
70
|
contentType: "multipart/form-data",
|
|
71
71
|
options
|
|
72
72
|
});
|
|
73
|
-
var changeDataFileOwner = async (id, body, options) =>
|
|
73
|
+
var changeDataFileOwner = async (id, body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-files", {
|
|
74
74
|
method: "post",
|
|
75
75
|
pathTemplate: "/api/v1/data-files/{id}/actions/change-owner",
|
|
76
76
|
pathVariables: { id },
|
|
@@ -78,7 +78,7 @@ var changeDataFileOwner = async (id, body, options) => _TH75GYUYjs.invokeFetch.c
|
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
options
|
|
80
80
|
});
|
|
81
|
-
var moveDataFile = async (id, body, options) =>
|
|
81
|
+
var moveDataFile = async (id, body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "data-files", {
|
|
82
82
|
method: "post",
|
|
83
83
|
pathTemplate: "/api/v1/data-files/{id}/actions/change-space",
|
|
84
84
|
pathVariables: { id },
|
|
@@ -87,7 +87,7 @@ var moveDataFile = async (id, body, options) => _TH75GYUYjs.invokeFetch.call(voi
|
|
|
87
87
|
options
|
|
88
88
|
});
|
|
89
89
|
function clearCache() {
|
|
90
|
-
return
|
|
90
|
+
return _URIW2U5Mjs.clearApiCache.call(void 0, "data-files");
|
|
91
91
|
}
|
|
92
92
|
var dataFilesExport = {
|
|
93
93
|
getDataFiles,
|
package/data-files.mjs
CHANGED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Open app without data
|
|
2
|
+
|
|
3
|
+
◁ [Back to examples](../examples.md)
|
|
4
|
+
|
|
5
|
+
This examples shows how to:
|
|
6
|
+
|
|
7
|
+
- Open an app without data
|
|
8
|
+
|
|
9
|
+
Sometimes when apps are big they open slowly in qix engine and if you only want to read or write some metadata in the app it's faster to open the app without the data.
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { apps, auth, qix } from "@qlik/api";
|
|
13
|
+
|
|
14
|
+
const hostConfig = {
|
|
15
|
+
host: "your-tenant.region.qlikcloud.com",
|
|
16
|
+
authType: "apikey",
|
|
17
|
+
apiKey: "<api-key>",
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
auth.setDefaultHostConfig(hostConfig);
|
|
21
|
+
|
|
22
|
+
async function main() {
|
|
23
|
+
try {
|
|
24
|
+
const appId = "<app-id>"; // <- replace this with an appid
|
|
25
|
+
|
|
26
|
+
const session = qix.openAppSession({ appId, withoutData: true });
|
|
27
|
+
const app = await session.getDoc();
|
|
28
|
+
const appLayout = await app.getLayout();
|
|
29
|
+
console.log(appLayout);
|
|
30
|
+
} catch (e) {
|
|
31
|
+
console.error(e);
|
|
32
|
+
} finally {
|
|
33
|
+
session.close();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
await main();
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
◁ [Back to examples](../examples.md)
|
package/docs/examples.md
CHANGED
|
@@ -10,3 +10,4 @@ The code in the examples use ES Module Syntax. It is possible to use CommonJS fo
|
|
|
10
10
|
- [Show Sheet List in an app](./examples/show-sheet-list.md)
|
|
11
11
|
- [Create an app](./examples/create-app.md)
|
|
12
12
|
- [Create session app](./examples/create-session-app.md)
|
|
13
|
+
- [Open app without data](./examples/open-without-data.md)
|
package/docs/qix.md
CHANGED
|
@@ -20,6 +20,23 @@ The `@qlik/api/qix` module gives you a fully typed API to the QIX engine and to
|
|
|
20
20
|
|
|
21
21
|
When a session gets a suspend event `@qlik/api` will automatically handle the suspend/resume logic and attempt to re-connect to the same engine session. Hopefully a user will never even notice that the websocket was closed for a little while.
|
|
22
22
|
|
|
23
|
+
## The App session
|
|
24
|
+
|
|
25
|
+
An app session in qix means a websocket connected to one app by one user in qix engine.
|
|
26
|
+
|
|
27
|
+
```js
|
|
28
|
+
qix.openAppSession({ ...appSessionProps });
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
The app sesssion settings have the following properties.
|
|
32
|
+
|
|
33
|
+
- `appId` - Required string to open an App
|
|
34
|
+
- `identity` - Optional string to open an individual session to the same app that is different from the default. Useful if different selection states are needed simultaneously.
|
|
35
|
+
- `hostConfig` - Optional Hostconfig to connect to a URL and authenticate an app session. Only needed if default HostConfig has not been set, or if connection should be different from the default.
|
|
36
|
+
- `withoutData` - Optional boolean, set to true if app should be opened without loading the data blob
|
|
37
|
+
|
|
38
|
+
**_note_** - when using `withoutData: true` and no `identity` the websocket url will include `/identity/no_data` to prevent that engine throws error "App is opened in a different mode".
|
|
39
|
+
|
|
23
40
|
## Usage example
|
|
24
41
|
|
|
25
42
|
```ts
|
|
@@ -28,8 +45,10 @@ import { setDefaultHostConfig } from "@qlik/api/auth";
|
|
|
28
45
|
|
|
29
46
|
setDefaultHostConfig({ ... });
|
|
30
47
|
|
|
31
|
-
// sets up a
|
|
32
|
-
appSession = openAppSession({ appId:
|
|
48
|
+
// sets up a session to a Qix Engine App
|
|
49
|
+
appSession = openAppSession({ appId: <app-id>, identity: <empty-or-anystring>, hostConfig: <only-if-different-from-default>, withoutData: <default to false>" });
|
|
50
|
+
// or use the shorthand
|
|
51
|
+
// appSession = openAppSession(<app-id>);
|
|
33
52
|
|
|
34
53
|
// get the "qix document (qlik app)"
|
|
35
54
|
const app = await appSession.getDoc();
|
package/extensions.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunks/
|
|
4
|
+
var _URIW2U5Mjs = require('./chunks/URIW2U5M.js');
|
|
5
|
+
require('./chunks/2YWCEGTS.js');
|
|
6
6
|
require('./chunks/4HB3TAEO.js');
|
|
7
7
|
|
|
8
8
|
// src/public/rest/extensions.ts
|
|
9
|
-
var getExtensions = async (options) =>
|
|
9
|
+
var getExtensions = async (options) => _URIW2U5Mjs.invokeFetch.call(void 0, "extensions", {
|
|
10
10
|
method: "get",
|
|
11
11
|
pathTemplate: "/api/v1/extensions",
|
|
12
12
|
options
|
|
13
13
|
});
|
|
14
|
-
var uploadExtension = async (body, options) =>
|
|
14
|
+
var uploadExtension = async (body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "extensions", {
|
|
15
15
|
method: "post",
|
|
16
16
|
pathTemplate: "/api/v1/extensions",
|
|
17
17
|
body,
|
|
18
18
|
contentType: "multipart/form-data",
|
|
19
19
|
options
|
|
20
20
|
});
|
|
21
|
-
var deleteExtension = async (id, options) =>
|
|
21
|
+
var deleteExtension = async (id, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "extensions", {
|
|
22
22
|
method: "delete",
|
|
23
23
|
pathTemplate: "/api/v1/extensions/{id}",
|
|
24
24
|
pathVariables: { id },
|
|
25
25
|
options
|
|
26
26
|
});
|
|
27
|
-
var getExtension = async (id, options) =>
|
|
27
|
+
var getExtension = async (id, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "extensions", {
|
|
28
28
|
method: "get",
|
|
29
29
|
pathTemplate: "/api/v1/extensions/{id}",
|
|
30
30
|
pathVariables: { id },
|
|
31
31
|
options
|
|
32
32
|
});
|
|
33
|
-
var patchExtension = async (id, body, options) =>
|
|
33
|
+
var patchExtension = async (id, body, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "extensions", {
|
|
34
34
|
method: "patch",
|
|
35
35
|
pathTemplate: "/api/v1/extensions/{id}",
|
|
36
36
|
pathVariables: { id },
|
|
@@ -38,20 +38,20 @@ var patchExtension = async (id, body, options) => _TH75GYUYjs.invokeFetch.call(v
|
|
|
38
38
|
contentType: "multipart/form-data",
|
|
39
39
|
options
|
|
40
40
|
});
|
|
41
|
-
var downloadExtension = async (id, options) =>
|
|
41
|
+
var downloadExtension = async (id, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "extensions", {
|
|
42
42
|
method: "get",
|
|
43
43
|
pathTemplate: "/api/v1/extensions/{id}/file",
|
|
44
44
|
pathVariables: { id },
|
|
45
45
|
options
|
|
46
46
|
});
|
|
47
|
-
var downloadFileFromExtension = async (id, filepath, options) =>
|
|
47
|
+
var downloadFileFromExtension = async (id, filepath, options) => _URIW2U5Mjs.invokeFetch.call(void 0, "extensions", {
|
|
48
48
|
method: "get",
|
|
49
49
|
pathTemplate: "/api/v1/extensions/{id}/file/{filepath}",
|
|
50
50
|
pathVariables: { id, filepath },
|
|
51
51
|
options
|
|
52
52
|
});
|
|
53
53
|
function clearCache() {
|
|
54
|
-
return
|
|
54
|
+
return _URIW2U5Mjs.clearApiCache.call(void 0, "extensions");
|
|
55
55
|
}
|
|
56
56
|
var extensionsExport = {
|
|
57
57
|
getExtensions,
|
package/extensions.mjs
CHANGED