@qlik/api 0.0.16 → 0.1.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/README.md +1 -1
- package/api-keys.js +25 -25
- package/apps.js +97 -97
- package/audits.js +23 -23
- package/auth.js +14 -14
- package/automations.js +47 -47
- package/brands.js +35 -35
- package/chunks/4HB3TAEO.js +4 -4
- package/chunks/{EHAANYDL.mjs → 4V5AAWUI.js} +3 -3
- package/chunks/{O4EAKEIN.mjs → D62LI5YU.js} +1 -1
- package/chunks/{6WX5AGKQ.mjs → L2BJNKLV.js} +2 -2
- package/chunks/{3YV6X7S6.mjs → LHCJKIEO.js} +1 -1
- package/chunks/OPRGGO4C.js +8 -8
- package/chunks/{HHOVS7QC.mjs → RNLZBOJU.js} +3 -3
- package/chunks/{BYD63JCG.mjs → SIU6HO6B.js} +5 -3
- package/chunks/{6AD3HYSF.mjs → TFSRDRRS.js} +1 -1
- package/chunks/{HOCTJESP.mjs → VK2CODYY.js} +2 -2
- package/chunks/{UKVTBYP6.mjs → XOVMZWDC.js} +2 -2
- package/collections.js +33 -33
- package/csp-origins.js +23 -23
- package/data-assets.js +21 -21
- package/data-connections.js +29 -29
- package/data-credentials.js +19 -19
- package/data-files.js +35 -35
- package/docs/authentication.md +5 -5
- package/docs/examples/fetch-spaces.md +1 -15
- package/docs/examples/show-sheet-list.md +1 -1
- package/docs/features.md +1 -1
- package/extensions.js +25 -25
- package/glossaries.js +59 -59
- package/groups.d.ts +0 -3
- package/groups.js +27 -27
- package/identity-providers.js +27 -27
- package/index.js +53 -53
- package/items.js +27 -27
- package/licenses.js +29 -29
- package/package.json +36 -232
- package/qix.d.ts +1 -1
- package/qix.js +10 -10
- package/quotas.js +15 -15
- package/reload-tasks.js +21 -21
- package/reloads.js +19 -19
- package/roles.js +15 -15
- package/spaces.js +35 -35
- package/temp-contents.js +17 -17
- package/tenants.js +23 -23
- package/themes.js +25 -25
- package/transports.js +23 -23
- package/users.d.ts +1 -3
- package/users.js +31 -31
- package/web-integrations.js +21 -21
- package/web-notifications.js +23 -23
- package/webhooks.js +31 -31
- package/api-keys.d.mts +0 -336
- package/api-keys.mjs +0 -80
- package/apps.d.mts +0 -2431
- package/apps.mjs +0 -398
- package/audits.d.mts +0 -286
- package/audits.mjs +0 -64
- package/auth-types-nnUcWhuU.d.mts +0 -98
- package/auth.d.mts +0 -26
- package/auth.mjs +0 -14
- package/automations.d.mts +0 -682
- package/automations.mjs +0 -173
- package/brands.d.mts +0 -670
- package/brands.mjs +0 -123
- package/chunks/2YWCEGTS.js +0 -21
- package/chunks/34ZKUFEA.js +0 -41
- package/chunks/4WHZ4EIW.js +0 -57
- package/chunks/B4VPD3ZT.js +0 -574
- package/chunks/BM4OSDRZ.js +0 -17
- package/chunks/DCXUEDOW.mjs +0 -67
- package/chunks/MTAQE4WC.js +0 -10411
- package/chunks/PLOSYUG2.js +0 -25
- package/chunks/URIW2U5M.js +0 -17
- package/chunks/VSY5YIQY.mjs +0 -11
- package/chunks/WOYJLK4Y.js +0 -1623
- package/collections.d.mts +0 -581
- package/collections.mjs +0 -114
- package/csp-origins.d.mts +0 -273
- package/csp-origins.mjs +0 -69
- package/data-assets.d.mts +0 -205
- package/data-assets.mjs +0 -66
- package/data-connections.d.mts +0 -594
- package/data-connections.mjs +0 -103
- package/data-credentials.d.mts +0 -204
- package/data-credentials.mjs +0 -59
- package/data-files.d.mts +0 -562
- package/data-files.mjs +0 -123
- package/extensions.d.mts +0 -293
- package/extensions.mjs +0 -77
- package/global.types-5iFvFJvX.d.mts +0 -115
- package/glossaries.d.mts +0 -1173
- package/glossaries.mjs +0 -237
- package/groups.d.mts +0 -434
- package/groups.mjs +0 -88
- package/identity-providers.d.mts +0 -550
- package/identity-providers.mjs +0 -83
- package/index.d.mts +0 -142
- package/index.mjs +0 -716
- package/items.d.mts +0 -535
- package/items.mjs +0 -87
- package/licenses.d.mts +0 -459
- package/licenses.mjs +0 -92
- package/qix.d.mts +0 -11629
- package/qix.mjs +0 -10
- package/quotas.d.mts +0 -112
- package/quotas.mjs +0 -32
- package/reload-tasks.d.mts +0 -227
- package/reload-tasks.mjs +0 -62
- package/reloads.d.mts +0 -207
- package/reloads.mjs +0 -46
- package/roles.d.mts +0 -175
- package/roles.mjs +0 -31
- package/spaces.d.mts +0 -562
- package/spaces.mjs +0 -124
- package/temp-contents.d.mts +0 -167
- package/temp-contents.mjs +0 -41
- package/tenants.d.mts +0 -300
- package/tenants.mjs +0 -73
- package/themes.d.mts +0 -268
- package/themes.mjs +0 -77
- package/transports.d.mts +0 -319
- package/transports.mjs +0 -65
- package/users.d.mts +0 -631
- package/users.mjs +0 -104
- package/web-integrations.d.mts +0 -274
- package/web-integrations.mjs +0 -62
- package/web-notifications.d.mts +0 -250
- package/web-notifications.mjs +0 -69
- package/webhooks.d.mts +0 -445
- package/webhooks.mjs +0 -104
package/brands.mjs
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
clearApiCache,
|
|
3
|
-
invokeFetch
|
|
4
|
-
} from "./chunks/3YV6X7S6.mjs";
|
|
5
|
-
import "./chunks/EHAANYDL.mjs";
|
|
6
|
-
import "./chunks/VSY5YIQY.mjs";
|
|
7
|
-
|
|
8
|
-
// src/public/rest/brands.ts
|
|
9
|
-
var getBrands = async (query, options) => invokeFetch("brands", {
|
|
10
|
-
method: "get",
|
|
11
|
-
pathTemplate: "/api/v1/brands",
|
|
12
|
-
query,
|
|
13
|
-
options
|
|
14
|
-
});
|
|
15
|
-
var createBrand = async (body, options) => invokeFetch("brands", {
|
|
16
|
-
method: "post",
|
|
17
|
-
pathTemplate: "/api/v1/brands",
|
|
18
|
-
body,
|
|
19
|
-
contentType: "multipart/form-data",
|
|
20
|
-
options
|
|
21
|
-
});
|
|
22
|
-
var getActiveBrand = async (options) => invokeFetch("brands", {
|
|
23
|
-
method: "get",
|
|
24
|
-
pathTemplate: "/api/v1/brands/active",
|
|
25
|
-
options
|
|
26
|
-
});
|
|
27
|
-
var deleteBrand = async (brandId, options) => invokeFetch("brands", {
|
|
28
|
-
method: "delete",
|
|
29
|
-
pathTemplate: "/api/v1/brands/{brand-id}",
|
|
30
|
-
pathVariables: { "brand-id": brandId },
|
|
31
|
-
options
|
|
32
|
-
});
|
|
33
|
-
var getBrand = async (brandId, options) => invokeFetch("brands", {
|
|
34
|
-
method: "get",
|
|
35
|
-
pathTemplate: "/api/v1/brands/{brand-id}",
|
|
36
|
-
pathVariables: { "brand-id": brandId },
|
|
37
|
-
options
|
|
38
|
-
});
|
|
39
|
-
var patchBrand = async (brandId, body, options) => invokeFetch("brands", {
|
|
40
|
-
method: "patch",
|
|
41
|
-
pathTemplate: "/api/v1/brands/{brand-id}",
|
|
42
|
-
pathVariables: { "brand-id": brandId },
|
|
43
|
-
body,
|
|
44
|
-
contentType: "application/json",
|
|
45
|
-
options
|
|
46
|
-
});
|
|
47
|
-
var activateBrand = async (brandId, body, options) => invokeFetch("brands", {
|
|
48
|
-
method: "post",
|
|
49
|
-
pathTemplate: "/api/v1/brands/{brand-id}/actions/activate",
|
|
50
|
-
pathVariables: { "brand-id": brandId },
|
|
51
|
-
body,
|
|
52
|
-
options
|
|
53
|
-
});
|
|
54
|
-
var deactivateBrand = async (brandId, body, options) => invokeFetch("brands", {
|
|
55
|
-
method: "post",
|
|
56
|
-
pathTemplate: "/api/v1/brands/{brand-id}/actions/deactivate",
|
|
57
|
-
pathVariables: { "brand-id": brandId },
|
|
58
|
-
body,
|
|
59
|
-
options
|
|
60
|
-
});
|
|
61
|
-
var deleteBrandFile = async (brandId, brandFileId, options) => invokeFetch("brands", {
|
|
62
|
-
method: "delete",
|
|
63
|
-
pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
|
|
64
|
-
pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
|
|
65
|
-
options
|
|
66
|
-
});
|
|
67
|
-
var getBrandFile = async (brandId, brandFileId, options) => invokeFetch("brands", {
|
|
68
|
-
method: "get",
|
|
69
|
-
pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
|
|
70
|
-
pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
|
|
71
|
-
options
|
|
72
|
-
});
|
|
73
|
-
var createBrandFile = async (brandId, brandFileId, body, options) => invokeFetch("brands", {
|
|
74
|
-
method: "post",
|
|
75
|
-
pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
|
|
76
|
-
pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
|
|
77
|
-
body,
|
|
78
|
-
contentType: "multipart/form-data",
|
|
79
|
-
options
|
|
80
|
-
});
|
|
81
|
-
var updateBrandFile = async (brandId, brandFileId, body, options) => invokeFetch("brands", {
|
|
82
|
-
method: "put",
|
|
83
|
-
pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
|
|
84
|
-
pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
|
|
85
|
-
body,
|
|
86
|
-
contentType: "multipart/form-data",
|
|
87
|
-
options
|
|
88
|
-
});
|
|
89
|
-
function clearCache() {
|
|
90
|
-
return clearApiCache("brands");
|
|
91
|
-
}
|
|
92
|
-
var brandsExport = {
|
|
93
|
-
getBrands,
|
|
94
|
-
createBrand,
|
|
95
|
-
getActiveBrand,
|
|
96
|
-
deleteBrand,
|
|
97
|
-
getBrand,
|
|
98
|
-
patchBrand,
|
|
99
|
-
activateBrand,
|
|
100
|
-
deactivateBrand,
|
|
101
|
-
deleteBrandFile,
|
|
102
|
-
getBrandFile,
|
|
103
|
-
createBrandFile,
|
|
104
|
-
updateBrandFile,
|
|
105
|
-
clearCache
|
|
106
|
-
};
|
|
107
|
-
var brands_default = brandsExport;
|
|
108
|
-
export {
|
|
109
|
-
activateBrand,
|
|
110
|
-
clearCache,
|
|
111
|
-
createBrand,
|
|
112
|
-
createBrandFile,
|
|
113
|
-
deactivateBrand,
|
|
114
|
-
brands_default as default,
|
|
115
|
-
deleteBrand,
|
|
116
|
-
deleteBrandFile,
|
|
117
|
-
getActiveBrand,
|
|
118
|
-
getBrand,
|
|
119
|
-
getBrandFile,
|
|
120
|
-
getBrands,
|
|
121
|
-
patchBrand,
|
|
122
|
-
updateBrandFile
|
|
123
|
-
};
|
package/chunks/2YWCEGTS.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/public/public-runtime-modules.ts
|
|
2
|
-
function getAuthRuntimeModule(hostConfig) {
|
|
3
|
-
const isNode = !!_optionalChain([globalThis, 'access', _ => _.process, 'optionalAccess', _2 => _2.argv]);
|
|
4
|
-
return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./34ZKUFEA.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./OPRGGO4C.js"))).then((mod) => mod.importRuntimeModule("auth@v1", hostConfig));
|
|
5
|
-
}
|
|
6
|
-
async function getQixRuntimeModule(hostConfig) {
|
|
7
|
-
await getAuthRuntimeModule(hostConfig);
|
|
8
|
-
const isNode = !!_optionalChain([globalThis, 'access', _3 => _3.process, 'optionalAccess', _4 => _4.argv]);
|
|
9
|
-
return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./B4VPD3ZT.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./OPRGGO4C.js"))).then((mod) => mod.importRuntimeModule("qix@v1", hostConfig));
|
|
10
|
-
}
|
|
11
|
-
async function getInvokeFetchRuntimeModule(hostConfig) {
|
|
12
|
-
await getAuthRuntimeModule(hostConfig);
|
|
13
|
-
const isNode = !!_optionalChain([globalThis, 'access', _5 => _5.process, 'optionalAccess', _6 => _6.argv]);
|
|
14
|
-
return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./BM4OSDRZ.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./OPRGGO4C.js"))).then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
exports.getAuthRuntimeModule = getAuthRuntimeModule; exports.getQixRuntimeModule = getQixRuntimeModule; exports.getInvokeFetchRuntimeModule = getInvokeFetchRuntimeModule;
|
package/chunks/34ZKUFEA.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
var _WOYJLK4Yjs = require('./WOYJLK4Y.js');
|
|
21
|
-
require('./4HB3TAEO.js');
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
exports.AuthorizationError = _WOYJLK4Yjs.AuthorizationError; exports.InvalidAuthTypeError = _WOYJLK4Yjs.InvalidAuthTypeError; exports.InvalidHostConfigError = _WOYJLK4Yjs.InvalidHostConfigError; exports.UnexpectedAuthTypeError = _WOYJLK4Yjs.UnexpectedAuthTypeError; exports.checkForCrossDomainRequest = _WOYJLK4Yjs.checkForCrossDomainRequest; exports.default = _WOYJLK4Yjs.auth_default; exports.getRestCallAuthParams = _WOYJLK4Yjs.getRestCallAuthParams; exports.getWebResourceAuthParams = _WOYJLK4Yjs.getWebResourceAuthParams; exports.getWebSocketAuthParams = _WOYJLK4Yjs.getWebSocketAuthParams; exports.handleAuthenticationError = _WOYJLK4Yjs.handleAuthenticationError; exports.isHostCrossOrigin = _WOYJLK4Yjs.isHostCrossOrigin; exports.isWindows = _WOYJLK4Yjs.isWindows; exports.logout = _WOYJLK4Yjs.logout; exports.registerAuthModule = _WOYJLK4Yjs.registerAuthModule; exports.setDefaultHostConfig = _WOYJLK4Yjs.setDefaultHostConfig; exports.toValidEnigmaLocationUrl = _WOYJLK4Yjs.toValidEnigmaLocationUrl; exports.toValidLocationUrl = _WOYJLK4Yjs.toValidLocationUrl; exports.toValidWebsocketLocationUrl = _WOYJLK4Yjs.toValidWebsocketLocationUrl;
|
package/chunks/4WHZ4EIW.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _2YWCEGTSjs = require('./2YWCEGTS.js');
|
|
4
|
-
|
|
5
|
-
// src/public/qix.ts
|
|
6
|
-
function openAppSession(appSessionProps) {
|
|
7
|
-
const appSessionPromise = _2YWCEGTSjs.getQixRuntimeModule.call(void 0, appSessionProps.hostConfig).then(
|
|
8
|
-
(impl) => impl.openAppSession(appSessionProps)
|
|
9
|
-
);
|
|
10
|
-
const appSessionProxy = {
|
|
11
|
-
/**
|
|
12
|
-
* Returns a promise of the Qix Doc object with a set of client-side Api extensions.
|
|
13
|
-
* Note that while the AppSession object is returned immediately this promise might take a while
|
|
14
|
-
* to resolve for bigger apps.
|
|
15
|
-
*/
|
|
16
|
-
async getDoc() {
|
|
17
|
-
return (await appSessionPromise).getDoc();
|
|
18
|
-
},
|
|
19
|
-
/**
|
|
20
|
-
* @experimental
|
|
21
|
-
* Add an event-listener for this app-session.
|
|
22
|
-
*/
|
|
23
|
-
onWebSocketEvent(listener) {
|
|
24
|
-
const returnedFnPromise = appSessionPromise.then((appSession) => appSession.onWebSocketEvent(listener));
|
|
25
|
-
return () => {
|
|
26
|
-
void returnedFnPromise.then((fn) => fn());
|
|
27
|
-
};
|
|
28
|
-
},
|
|
29
|
-
/**
|
|
30
|
-
* @experimental
|
|
31
|
-
* Resume a suspended session. This will resume exactly
|
|
32
|
-
* once if the session is currently suspended, otherwise
|
|
33
|
-
* nothing will be done.
|
|
34
|
-
*/
|
|
35
|
-
async resume() {
|
|
36
|
-
return (await appSessionPromise).resume();
|
|
37
|
-
},
|
|
38
|
-
/**
|
|
39
|
-
* When the app session is no longer in use it must be closed using this function.
|
|
40
|
-
* If the same underlying enigma websocket is used somewhere else in the browser
|
|
41
|
-
* this is basically a no op, but if this is the last/only usage
|
|
42
|
-
* of the underlying enigma websocket that websocket will be closed.
|
|
43
|
-
*/
|
|
44
|
-
async close() {
|
|
45
|
-
return (await appSessionPromise).close();
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
return appSessionProxy;
|
|
49
|
-
}
|
|
50
|
-
var qix_default = {
|
|
51
|
-
openAppSession
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
exports.openAppSession = openAppSession; exports.qix_default = qix_default;
|