@qlik/api 0.0.1
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/LICENSE +17 -0
- package/README.md +8 -0
- package/api-keys.d.mts +313 -0
- package/api-keys.d.ts +313 -0
- package/api-keys.js +76 -0
- package/api-keys.mjs +76 -0
- package/apps.d.mts +1921 -0
- package/apps.d.ts +1921 -0
- package/apps.js +331 -0
- package/apps.mjs +331 -0
- package/audits.d.mts +262 -0
- package/audits.d.ts +262 -0
- package/audits.js +63 -0
- package/audits.mjs +63 -0
- package/auth-CSVTXOZX.js +36 -0
- package/auth-TE272Q34.mjs +36 -0
- package/auth-types-nnUcWhuU.d.mts +98 -0
- package/auth-types-nnUcWhuU.d.ts +98 -0
- package/auth.d.mts +26 -0
- package/auth.d.ts +26 -0
- package/auth.js +13 -0
- package/auth.mjs +13 -0
- package/automations.d.mts +638 -0
- package/automations.d.ts +638 -0
- package/automations.js +166 -0
- package/automations.mjs +166 -0
- package/brands.d.mts +614 -0
- package/brands.d.ts +614 -0
- package/brands.js +118 -0
- package/brands.mjs +118 -0
- package/chunk-3YE7EI7I.mjs +17 -0
- package/chunk-4ES65KO3.js +57 -0
- package/chunk-4FLMND6T.js +25 -0
- package/chunk-4OMEH5SW.mjs +1337 -0
- package/chunk-CKPJE4IA.mjs +57 -0
- package/chunk-GUQBHY3H.mjs +25 -0
- package/chunk-OULT3V2U.js +17 -0
- package/chunk-WM7FQU2U.mjs +21 -0
- package/chunk-XASXL2NC.js +1337 -0
- package/chunk-ZT4C7KCQ.js +21 -0
- package/collections.d.mts +535 -0
- package/collections.d.ts +535 -0
- package/collections.js +100 -0
- package/collections.mjs +100 -0
- package/csp-origins.d.mts +258 -0
- package/csp-origins.d.ts +258 -0
- package/csp-origins.js +66 -0
- package/csp-origins.mjs +66 -0
- package/data-assets.d.mts +195 -0
- package/data-assets.d.ts +195 -0
- package/data-assets.js +61 -0
- package/data-assets.mjs +61 -0
- package/data-connections.d.mts +527 -0
- package/data-connections.d.ts +527 -0
- package/data-connections.js +96 -0
- package/data-connections.mjs +96 -0
- package/data-credentials.d.mts +188 -0
- package/data-credentials.d.ts +188 -0
- package/data-credentials.js +56 -0
- package/data-credentials.mjs +56 -0
- package/data-files.d.mts +471 -0
- package/data-files.d.ts +471 -0
- package/data-files.js +116 -0
- package/data-files.mjs +116 -0
- package/docs/examples.md +4 -0
- package/enigma-session-4L373ALV.mjs +10196 -0
- package/enigma-session-TEB53FAF.js +10196 -0
- package/esm-4X3DKK5D.js +63 -0
- package/esm-SOWVJKOQ.mjs +63 -0
- package/extensions.d.mts +257 -0
- package/extensions.d.ts +257 -0
- package/extensions.js +74 -0
- package/extensions.mjs +74 -0
- package/global.types-Eto4uYwy.d.mts +102 -0
- package/global.types-hIvp-WdX.d.ts +102 -0
- package/glossaries.d.mts +1041 -0
- package/glossaries.d.ts +1041 -0
- package/glossaries.js +225 -0
- package/glossaries.mjs +225 -0
- package/groups.d.mts +379 -0
- package/groups.d.ts +379 -0
- package/groups.js +83 -0
- package/groups.mjs +83 -0
- package/identity-providers.d.mts +492 -0
- package/identity-providers.d.ts +492 -0
- package/identity-providers.js +80 -0
- package/identity-providers.mjs +80 -0
- package/index.d.mts +142 -0
- package/index.d.ts +142 -0
- package/index.js +678 -0
- package/index.mjs +678 -0
- package/invoke-fetch-MSSJAZ7K.mjs +14 -0
- package/invoke-fetch-PEI54KZO.js +14 -0
- package/items.d.mts +501 -0
- package/items.d.ts +501 -0
- package/items.js +84 -0
- package/items.mjs +84 -0
- package/licenses.d.mts +436 -0
- package/licenses.d.ts +436 -0
- package/licenses.js +87 -0
- package/licenses.mjs +87 -0
- package/package.json +264 -0
- package/qix-EU7PXRZ6.mjs +573 -0
- package/qix-RLTISYTB.js +573 -0
- package/qix.d.mts +11543 -0
- package/qix.d.ts +11543 -0
- package/qix.js +9 -0
- package/qix.mjs +9 -0
- package/quotas.d.mts +105 -0
- package/quotas.d.ts +105 -0
- package/quotas.js +31 -0
- package/quotas.mjs +31 -0
- package/reload-tasks.d.mts +222 -0
- package/reload-tasks.d.ts +222 -0
- package/reload-tasks.js +59 -0
- package/reload-tasks.mjs +59 -0
- package/reloads.d.mts +189 -0
- package/reloads.d.ts +189 -0
- package/reloads.js +44 -0
- package/reloads.mjs +44 -0
- package/roles.d.mts +150 -0
- package/roles.d.ts +150 -0
- package/roles.js +30 -0
- package/roles.mjs +30 -0
- package/spaces.d.mts +524 -0
- package/spaces.d.ts +524 -0
- package/spaces.js +118 -0
- package/spaces.mjs +118 -0
- package/temp-contents.d.mts +222 -0
- package/temp-contents.d.ts +222 -0
- package/temp-contents.js +60 -0
- package/temp-contents.mjs +60 -0
- package/tenants.d.mts +276 -0
- package/tenants.d.ts +276 -0
- package/tenants.js +68 -0
- package/tenants.mjs +68 -0
- package/themes.d.mts +235 -0
- package/themes.d.ts +235 -0
- package/themes.js +74 -0
- package/themes.mjs +74 -0
- package/transports.d.mts +298 -0
- package/transports.d.ts +298 -0
- package/transports.js +62 -0
- package/transports.mjs +62 -0
- package/users.d.mts +544 -0
- package/users.d.ts +544 -0
- package/users.js +99 -0
- package/users.mjs +99 -0
- package/web-integrations.d.mts +246 -0
- package/web-integrations.d.ts +246 -0
- package/web-integrations.js +59 -0
- package/web-integrations.mjs +59 -0
- package/web-notifications.d.mts +220 -0
- package/web-notifications.d.ts +220 -0
- package/web-notifications.js +66 -0
- package/web-notifications.mjs +66 -0
- package/webhooks.d.mts +422 -0
- package/webhooks.d.ts +422 -0
- package/webhooks.js +100 -0
- package/webhooks.mjs +100 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getQixRuntimeModule
|
|
3
|
+
} from "./chunk-WM7FQU2U.mjs";
|
|
4
|
+
|
|
5
|
+
// src/public/qix.ts
|
|
6
|
+
function openAppSession(appSessionProps) {
|
|
7
|
+
const appSessionPromise = getQixRuntimeModule(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
|
+
export {
|
|
55
|
+
openAppSession,
|
|
56
|
+
qix_default
|
|
57
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getAuthRuntimeModule
|
|
3
|
+
} from "./chunk-WM7FQU2U.mjs";
|
|
4
|
+
|
|
5
|
+
// src/public/auth.ts
|
|
6
|
+
function registerAuthModule(name, authModule) {
|
|
7
|
+
void getAuthRuntimeModule().then((impl) => impl.registerAuthModule(name, authModule));
|
|
8
|
+
}
|
|
9
|
+
function logout() {
|
|
10
|
+
void getAuthRuntimeModule().then((impl) => impl.logout());
|
|
11
|
+
}
|
|
12
|
+
function setDefaultHostConfig(hostConfig) {
|
|
13
|
+
void getAuthRuntimeModule(hostConfig).then((impl) => impl.setDefaultHostConfig(hostConfig));
|
|
14
|
+
}
|
|
15
|
+
var auth_default = {
|
|
16
|
+
registerAuthModule,
|
|
17
|
+
setDefaultHostConfig
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export {
|
|
21
|
+
registerAuthModule,
|
|
22
|
+
logout,
|
|
23
|
+
setDefaultHostConfig,
|
|
24
|
+
auth_default
|
|
25
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; }
|
|
2
|
+
|
|
3
|
+
var _chunkZT4C7KCQjs = require('./chunk-ZT4C7KCQ.js');
|
|
4
|
+
|
|
5
|
+
// src/public/invoke-fetch.ts
|
|
6
|
+
async function invokeFetch(api, props) {
|
|
7
|
+
const hostConfig = _optionalChain([props, 'access', _ => _.options, 'optionalAccess', _2 => _2.hostConfig]);
|
|
8
|
+
return (await _chunkZT4C7KCQjs.getInvokeFetchRuntimeModule.call(void 0, hostConfig)).invokeFetch(api, props);
|
|
9
|
+
}
|
|
10
|
+
function clearApiCache(api) {
|
|
11
|
+
void _chunkZT4C7KCQjs.getInvokeFetchRuntimeModule.call(void 0, ).then((runtimeModule) => runtimeModule.clearApiCache(api));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
exports.invokeFetch = invokeFetch; exports.clearApiCache = clearApiCache;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// src/public/public-runtime-modules.ts
|
|
2
|
+
function getAuthRuntimeModule(hostConfig) {
|
|
3
|
+
const isNode = !!globalThis.process?.argv;
|
|
4
|
+
return isNode ? import("./auth-TE272Q34.mjs") : import("./esm-SOWVJKOQ.mjs").then((mod) => mod.importRuntimeModule("auth@v1", hostConfig));
|
|
5
|
+
}
|
|
6
|
+
async function getQixRuntimeModule(hostConfig) {
|
|
7
|
+
await getAuthRuntimeModule(hostConfig);
|
|
8
|
+
const isNode = !!globalThis.process?.argv;
|
|
9
|
+
return isNode ? import("./qix-EU7PXRZ6.mjs") : import("./esm-SOWVJKOQ.mjs").then((mod) => mod.importRuntimeModule("qix@v1", hostConfig));
|
|
10
|
+
}
|
|
11
|
+
async function getInvokeFetchRuntimeModule(hostConfig) {
|
|
12
|
+
await getAuthRuntimeModule(hostConfig);
|
|
13
|
+
const isNode = !!globalThis.process?.argv;
|
|
14
|
+
return isNode ? import("./invoke-fetch-MSSJAZ7K.mjs") : import("./esm-SOWVJKOQ.mjs").then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
getAuthRuntimeModule,
|
|
19
|
+
getQixRuntimeModule,
|
|
20
|
+
getInvokeFetchRuntimeModule
|
|
21
|
+
};
|