Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: qlik api updates #43

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api-keys.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/AANKGPDX.js";
import "./chunks/7PI3VAVE.js";
} from "./chunks/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";

// src/public/rest/api-keys.ts
var getApiKeys = async (query, options) => invokeFetch("api-keys", {
Expand Down
4 changes: 2 additions & 2 deletions apps.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/AANKGPDX.js";
import "./chunks/7PI3VAVE.js";
} from "./chunks/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";

// src/public/rest/apps.ts
var createApp = async (body, options) => invokeFetch("apps", {
Expand Down
4 changes: 2 additions & 2 deletions audits.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/AANKGPDX.js";
import "./chunks/7PI3VAVE.js";
} from "./chunks/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";

// src/public/rest/audits.ts
var getAudits = async (query, options) => invokeFetch("audits", {
Expand Down
4 changes: 2 additions & 2 deletions auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {
logout,
registerAuthModule,
setDefaultHostConfig
} from "./chunks/UHM3LDRC.js";
import "./chunks/7PI3VAVE.js";
} from "./chunks/4PCG3E3I.js";
import "./chunks/2ZXOEI4D.js";
export {
auth_default as default,
getAccessToken,
Expand Down
4 changes: 2 additions & 2 deletions automations.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/AANKGPDX.js";
import "./chunks/7PI3VAVE.js";
} from "./chunks/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";

// src/public/rest/automations.ts
var getAutomations = async (query, options) => invokeFetch("automations", {
Expand Down
4 changes: 2 additions & 2 deletions brands.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/AANKGPDX.js";
import "./chunks/7PI3VAVE.js";
} from "./chunks/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";

// src/public/rest/brands.ts
var getBrands = async (query, options) => invokeFetch("brands", {
Expand Down
11 changes: 8 additions & 3 deletions chunks/J47F33WT.js → chunks/243PYOJH.js
Original file line number Diff line number Diff line change
Expand Up @@ -10364,15 +10364,20 @@ async function createEnigmaSession({
appId,
identity,
hostConfig,
withoutData = false
withoutData = false,
useReloadEngine = false
}) {
const locationUrl = toValidWebsocketLocationUrl(hostConfig);
const reloadUri = encodeURIComponent(`${locationUrl}/sense/app/${appId}`);
if (!identity && withoutData) {
identity = "no_data";
}
const identityPart = identity ? `/identity/${identity}` : "";
let url = `${locationUrl}/app/${appId}${identityPart}?reloadUri=${reloadUri}`.replace(/^http/, "ws");
const reloadEnginePart = useReloadEngine ? "&workloadType=interactive-reload" : "";
let url = `${locationUrl}/app/${appId}${identityPart}?reloadUri=${reloadUri}${reloadEnginePart}`.replace(
/^http/,
"ws"
);
const isNodeEnvironment = typeof window === "undefined";
let createSocketMethod;
if (isNodeEnvironment) {
Expand All @@ -10395,7 +10400,7 @@ async function createEnigmaSession({
schema: engine_api_default,
mixins: mixins5,
url,
suspendOnClose: true,
suspendOnClose: !useReloadEngine,
createSocket: createSocketMethod,
requestInterceptors: [somethingWithEmptyMethodsRequestInterceptor],
responseInterceptors: [
Expand Down
6 changes: 3 additions & 3 deletions chunks/7PI3VAVE.js → chunks/2ZXOEI4D.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// src/public/public-runtime-modules.ts
function getAuthRuntimeModule(hostConfig) {
const isNode = !!globalThis.process?.argv;
return isNode ? import("./LI7EZYL4.js") : import("./555I6RED.js").then((mod) => mod.importRuntimeModule("auth@v1", hostConfig));
return isNode ? import("./LI7EZYL4.js") : import("./GEU5U7Z5.js").then((mod) => mod.importRuntimeModule("auth@v1", hostConfig));
}
async function getQixRuntimeModule(hostConfig) {
await getAuthRuntimeModule(hostConfig);
const isNode = !!globalThis.process?.argv;
return isNode ? import("./Z5KDIMTS.js") : import("./555I6RED.js").then((mod) => mod.importRuntimeModule("qix@v1", hostConfig));
return isNode ? import("./5ZXMV3DK.js") : import("./GEU5U7Z5.js").then((mod) => mod.importRuntimeModule("qix@v1", hostConfig));
}
async function getInvokeFetchRuntimeModule(hostConfig) {
await getAuthRuntimeModule(hostConfig);
const isNode = !!globalThis.process?.argv;
return isNode ? import("./OKMBHX5N.js") : import("./555I6RED.js").then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
return isNode ? import("./OKMBHX5N.js") : import("./GEU5U7Z5.js").then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
}

export {
Expand Down
2 changes: 1 addition & 1 deletion chunks/5ADY5YDO.js → chunks/4NK5KQKY.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
getQixRuntimeModule
} from "./7PI3VAVE.js";
} from "./2ZXOEI4D.js";

// src/public/qix.ts
function openAppSession(appSessionProps) {
Expand Down
2 changes: 1 addition & 1 deletion chunks/UHM3LDRC.js → chunks/4PCG3E3I.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
getAuthRuntimeModule
} from "./7PI3VAVE.js";
} from "./2ZXOEI4D.js";

// src/public/auth.ts
function registerAuthModule(name, authModule) {
Expand Down
22 changes: 19 additions & 3 deletions chunks/Z5KDIMTS.js → chunks/5ZXMV3DK.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,25 @@ async function resumeAll() {
}
var initialActions = {};
var sharedSessions = {};
function toGlobalAppSessionId({ appId, identity, hostConfig, withoutData }) {
function toGlobalAppSessionId({
appId,
identity,
hostConfig,
withoutData,
useReloadEngine
}) {
const locationUrl = toValidWebsocketLocationUrl(hostConfig);
return (identity ? locationUrl + "/" + appId + "/" + identity : locationUrl + "/" + appId) + (withoutData ? "/withoutData" : "");
let url = `${locationUrl}/${appId}`;
if (identity) {
url += `/${identity}`;
}
if (useReloadEngine) {
url += "/useReloadEngine";
}
if (withoutData) {
url += "/withoutData";
}
return url;
}
async function runPendingInitialActions(initialActionsForApp, sharedSession, doc) {
for (const initialAction of initialActionsForApp) {
Expand Down Expand Up @@ -83,7 +99,7 @@ function listenForWindowsAuthenticationInformation(session) {
return authSuggestedInWebsocket;
}
async function createAndSetupEnigmaSession(props, canRetry) {
const { createEnigmaSession } = await import("./J47F33WT.js");
const { createEnigmaSession } = await import("./243PYOJH.js");
const session = await createEnigmaSession(props);
setupSessionListeners(session, props);
let global;
Expand Down
2 changes: 1 addition & 1 deletion chunks/AANKGPDX.js → chunks/664FMSNJ.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
getInvokeFetchRuntimeModule
} from "./7PI3VAVE.js";
} from "./2ZXOEI4D.js";

// src/public/invoke-fetch.ts
async function invokeFetch(api, props) {
Expand Down
4 changes: 2 additions & 2 deletions chunks/555I6RED.js → chunks/GEU5U7Z5.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// node_modules/.pnpm/@[email protected].6/node_modules/@qlik/runtime-module-loader/dist/esm/index.js
// node_modules/.pnpm/@[email protected].7/node_modules/@qlik/runtime-module-loader/dist/esm/index.js
window.__qlikMainPrivateResolvers = window.__qlikMainPrivateResolvers || {};
window.__qlikMainPrivateResolvers.mainUrlPromise = window.__qlikMainPrivateResolvers.mainUrlPromise || new Promise((resolve) => {
window.__qlikMainPrivateResolvers.resolveMainJsUrl = (value) => resolve(value);
Expand Down Expand Up @@ -39,7 +39,7 @@ function provideHostConfigForMainJsUrl(hostConfig) {
locationUrl = `https://${url}`;
}
locationUrl = locationUrl.replace(trailingSlashes, "");
return `${locationUrl}/main.js`;
return `${locationUrl}/qlik-embed/main.js`;
}
const potentialMainJsUrl = toMainJsUrl(hostConfig);
if (potentialMainJsUrl) {
Expand Down
4 changes: 2 additions & 2 deletions collections.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/AANKGPDX.js";
import "./chunks/7PI3VAVE.js";
} from "./chunks/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";

// src/public/rest/collections.ts
var getCollections = async (query, options) => invokeFetch("collections", {
Expand Down
4 changes: 2 additions & 2 deletions csp-origins.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/AANKGPDX.js";
import "./chunks/7PI3VAVE.js";
} from "./chunks/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";

// src/public/rest/csp-origins.ts
var getCSPEntries = async (query, options) => invokeFetch("csp-origins", {
Expand Down
4 changes: 2 additions & 2 deletions data-assets.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/AANKGPDX.js";
import "./chunks/7PI3VAVE.js";
} from "./chunks/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";

// src/public/rest/data-assets.ts
var deleteDataAssets = async (body, options) => invokeFetch("data-assets", {
Expand Down
4 changes: 2 additions & 2 deletions data-connections.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/AANKGPDX.js";
import "./chunks/7PI3VAVE.js";
} from "./chunks/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";

// src/public/rest/data-connections.ts
var getDataConnections = async (query, options) => invokeFetch("data-connections", {
Expand Down
4 changes: 2 additions & 2 deletions data-credentials.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/AANKGPDX.js";
import "./chunks/7PI3VAVE.js";
} from "./chunks/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";

// src/public/rest/data-credentials.ts
var deleteDataCredential = async (qID, query, options) => invokeFetch("data-credentials", {
Expand Down
4 changes: 2 additions & 2 deletions data-files.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/AANKGPDX.js";
import "./chunks/7PI3VAVE.js";
} from "./chunks/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";

// src/public/rest/data-files.ts
var getDataFiles = async (query, options) => invokeFetch("data-files", {
Expand Down
4 changes: 2 additions & 2 deletions extensions.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/AANKGPDX.js";
import "./chunks/7PI3VAVE.js";
} from "./chunks/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";

// src/public/rest/extensions.ts
var getExtensions = async (options) => invokeFetch("extensions", {
Expand Down
4 changes: 2 additions & 2 deletions glossaries.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/AANKGPDX.js";
import "./chunks/7PI3VAVE.js";
} from "./chunks/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";

// src/public/rest/glossaries.ts
var getGlossaries = async (query, options) => invokeFetch("glossaries", {
Expand Down
4 changes: 2 additions & 2 deletions groups.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/AANKGPDX.js";
import "./chunks/7PI3VAVE.js";
} from "./chunks/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";

// src/public/rest/groups.ts
var getGroups = async (query, options) => invokeFetch("groups", {
Expand Down
4 changes: 2 additions & 2 deletions identity-providers.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/AANKGPDX.js";
import "./chunks/7PI3VAVE.js";
} from "./chunks/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";

// src/public/rest/identity-providers.ts
var getIdps = async (query, options) => invokeFetch("identity-providers", {
Expand Down
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import {
auth_default
} from "./chunks/UHM3LDRC.js";
} from "./chunks/4PCG3E3I.js";
import {
qix_default
} from "./chunks/5ADY5YDO.js";
} from "./chunks/4NK5KQKY.js";
import {
clearApiCache,
invokeFetch
} from "./chunks/AANKGPDX.js";
import "./chunks/7PI3VAVE.js";
} from "./chunks/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";

// src/public/public-runtime-api-generator/public-runtime-api-generator.ts
var methodAbbreviations = {
Expand Down
4 changes: 2 additions & 2 deletions items.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/AANKGPDX.js";
import "./chunks/7PI3VAVE.js";
} from "./chunks/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";

// src/public/rest/items.ts
var getItems = async (query, options) => invokeFetch("items", {
Expand Down
4 changes: 2 additions & 2 deletions licenses.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/AANKGPDX.js";
import "./chunks/7PI3VAVE.js";
} from "./chunks/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";

// src/public/rest/licenses.ts
var getLicenseAssignments = async (query, options) => invokeFetch("licenses", {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@qlik/embed-runtime": "^0.7.0",
"@qlik/runtime-module-loader": "^0.2.6",
"@qlik/runtime-module-loader": "^0.2.7",
"ajv": "^8.12.0",
"bufferutil": "^4.0.8",
"enigma.js": "^2.14.0",
Expand Down
Loading
Loading