Skip to content

Commit

Permalink
feat: qlik api updates
Browse files Browse the repository at this point in the history
  • Loading branch information
qlikossbuild authored May 15, 2024
1 parent 422c273 commit f0783cd
Show file tree
Hide file tree
Showing 47 changed files with 143 additions and 148 deletions.
6 changes: 3 additions & 3 deletions api-keys.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/SYGKZE7X.js";
import "./chunks/BGRBTH7Y.js";
import "./chunks/S2BIIZLQ.js";
} from "./chunks/S3X62FNR.js";
import "./chunks/2ZQ3ZX7F.js";
import "./chunks/I5CSZHWM.js";

// src/public/rest/api-keys.ts
var getApiKeys = async (query, options) => invokeFetch("api-keys", {
Expand Down
6 changes: 3 additions & 3 deletions apps.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/SYGKZE7X.js";
import "./chunks/BGRBTH7Y.js";
import "./chunks/S2BIIZLQ.js";
} from "./chunks/S3X62FNR.js";
import "./chunks/2ZQ3ZX7F.js";
import "./chunks/I5CSZHWM.js";

// src/public/rest/apps.ts
var createApp = async (body, options) => invokeFetch("apps", {
Expand Down
6 changes: 3 additions & 3 deletions audits.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/SYGKZE7X.js";
import "./chunks/BGRBTH7Y.js";
import "./chunks/S2BIIZLQ.js";
} from "./chunks/S3X62FNR.js";
import "./chunks/2ZQ3ZX7F.js";
import "./chunks/I5CSZHWM.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/BMB4CQGB.js";
import "./chunks/S2BIIZLQ.js";
} from "./chunks/BPM4DLZK.js";
import "./chunks/I5CSZHWM.js";
export {
auth_default as default,
getAccessToken,
Expand Down
12 changes: 6 additions & 6 deletions automations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ type AutomationDetailRequestObject = {
workspace?: unknown;
};
type AutomationDetailResponseObject = {
/** A list of connectors used inside the workspace. */
/** A list of connectors that were detected the workspace. This includes Connectors present in blocks which are not connected to other blocks. Order of guids is not guaranteed. */
readonly connectorIds?: string[];
readonly createdAt?: string;
description?: string;
/** A list of endpoints used inside the workspace. */
/** A list of endpoints that were detected inside the workspace. This includes Endpoints present in blocks which are not connected to other blocks. Order of guids is not guaranteed. */
readonly endpointIds?: string[];
readonly executionToken?: string;
readonly id?: string;
Expand All @@ -25,7 +25,7 @@ type AutomationDetailResponseObject = {
readonly ownerId?: string;
readonly runMode?: "manual" | "scheduled" | "triggered" | "webhook";
schedules?: ScheduleResponseObject[];
/** A list of snippets used inside the workspace. */
/** A list of snippets that were detected inside the workspace. This includes snippet blocks that are not connected to other blocks. Order of guids is not guaranteed. */
readonly snippetIds?: string[];
state?: "available" | "unavailable" | "disabled";
readonly updatedAt?: string;
Expand All @@ -37,13 +37,13 @@ type AutomationList = {
links?: Links;
};
type AutomationListObject = {
/** A list of connectors used inside the workspace. */
/** A list of connectors that were detected the workspace. This includes Connectors present in blocks which are not connected to other blocks. Order of guids is not guaranteed. */
readonly connectorIds?: string[];
readonly createdAt?: string;
description?: string;
/** Duration of the last run, indicated in seconds. Calculated from start and stop times */
readonly duration?: number;
/** A list of endpoints used inside the workspace. */
/** A list of endpoints that were detected inside the workspace. This includes Endpoints present in blocks which are not connected to other blocks. Order of guids is not guaranteed. */
readonly endpointIds?: string[];
readonly executionToken?: string;
readonly id?: string;
Expand All @@ -53,7 +53,7 @@ type AutomationListObject = {
name?: string;
readonly ownerId?: string;
readonly runMode?: "manual" | "scheduled" | "triggered" | "webhook";
/** A list of snippets used inside the workspace. */
/** A list of snippets that were detected inside the workspace. This includes snippet blocks that are not connected to other blocks. Order of guids is not guaranteed. */
readonly snippetIds?: string[];
state?: "available" | "unavailable" | "disabled";
readonly updatedAt?: string;
Expand Down
6 changes: 3 additions & 3 deletions automations.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/SYGKZE7X.js";
import "./chunks/BGRBTH7Y.js";
import "./chunks/S2BIIZLQ.js";
} from "./chunks/S3X62FNR.js";
import "./chunks/2ZQ3ZX7F.js";
import "./chunks/I5CSZHWM.js";

// src/public/rest/automations.ts
var getAutomations = async (query, options) => invokeFetch("automations", {
Expand Down
6 changes: 3 additions & 3 deletions brands.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/SYGKZE7X.js";
import "./chunks/BGRBTH7Y.js";
import "./chunks/S2BIIZLQ.js";
} from "./chunks/S3X62FNR.js";
import "./chunks/2ZQ3ZX7F.js";
import "./chunks/I5CSZHWM.js";

// src/public/rest/brands.ts
var getBrands = async (query, options) => invokeFetch("brands", {
Expand Down
7 changes: 1 addition & 6 deletions chunks/BGRBTH7Y.js → chunks/2ZQ3ZX7F.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// src/utils/utils.ts
import { nanoid } from "nanoid";
function isBrowserInternal() {
if (typeof window !== "undefined" && typeof window.document !== "undefined" && typeof self !== "undefined") {
return true;
Expand Down Expand Up @@ -27,12 +26,8 @@ function isBrowser() {
function isNode() {
return getEnvironment() === "node";
}
function generateRandomString(targetLength) {
return nanoid(targetLength);
}

export {
isBrowser,
isNode,
generateRandomString
isNode
};
4 changes: 2 additions & 2 deletions chunks/TTSM4BX5.js → chunks/5WSW4QG3.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import {
toValidEnigmaLocationUrl,
toValidLocationUrl,
toValidWebsocketLocationUrl
} from "./GFJ653I2.js";
import "./BGRBTH7Y.js";
} from "./KSB5ROQL.js";
import "./2ZQ3ZX7F.js";
export {
AuthorizationError,
InvalidAuthTypeError,
Expand Down
2 changes: 1 addition & 1 deletion chunks/BMB4CQGB.js → chunks/BPM4DLZK.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
getAuthRuntimeModule
} from "./S2BIIZLQ.js";
} from "./I5CSZHWM.js";

// src/public/auth.ts
function registerAuthModule(name, authModule) {
Expand Down
16 changes: 5 additions & 11 deletions chunks/YGESHYCZ.js → chunks/CUE3GZGJ.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import {
invokeFetch,
isWindows,
toValidWebsocketLocationUrl
} from "./GFJ653I2.js";
} from "./KSB5ROQL.js";
import {
isBrowser
} from "./BGRBTH7Y.js";
} from "./2ZQ3ZX7F.js";

// src/qix/session/shared-sessions.ts
var globalEventListeners = /* @__PURE__ */ new Set();
Expand Down Expand Up @@ -101,7 +101,7 @@ function listenForWindowsAuthenticationInformation(session) {
return authSuggestedInWebsocket;
}
async function createAndSetupEnigmaSession(props, canRetry) {
const { createEnigmaSession } = await import("./YNDOPW5S.js");
const { createEnigmaSession } = await import("./FFVTXKKA.js");
const session = await createEnigmaSession(props);
setupSessionListeners(session, props);
let global;
Expand Down Expand Up @@ -479,10 +479,7 @@ async function createSessionApp() {
if (!alreadyClosed) {
alreadyClosed = true;
const defaultDelay = isBrowserEnvironment ? 5e3 : -1;
return sharedSession.removeClient(
qixSessionAppSession,
props?.websocketCloseDelay !== void 0 ? props.websocketCloseDelay : defaultDelay
);
return sharedSession.removeClient(qixSessionAppSession, props?.websocketCloseDelay ?? defaultDelay);
}
return Promise.resolve();
}
Expand Down Expand Up @@ -521,10 +518,7 @@ function openAppSession(appIdOrProps) {
if (!alreadyClosed) {
alreadyClosed = true;
const defaultDelay = isBrowserEnvironment ? 5e3 : -1;
return sharedSession.removeClient(
qixAppSession,
props?.websocketCloseDelay !== void 0 ? props.websocketCloseDelay : defaultDelay
);
return sharedSession.removeClient(qixAppSession, props?.websocketCloseDelay ?? defaultDelay);
}
return Promise.resolve();
}
Expand Down
2 changes: 1 addition & 1 deletion chunks/F2X7MIT2.js → chunks/CYO4KHYF.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// node_modules/.pnpm/@[email protected].2/node_modules/@qlik/runtime-module-loader/dist/index.js
// node_modules/.pnpm/@[email protected].[email protected]/node_modules/@qlik/runtime-module-loader/dist/index.js
window.__qlikMainPrivateResolvers = window.__qlikMainPrivateResolvers || {};
window.__qlikMainPrivateResolvers.mainUrlPromise = window.__qlikMainPrivateResolvers.mainUrlPromise || new Promise((resolve) => {
window.__qlikMainPrivateResolvers.resolveMainJsUrl = (value) => resolve(value);
Expand Down
7 changes: 3 additions & 4 deletions chunks/YNDOPW5S.js → chunks/FFVTXKKA.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import {
generateRandomString,
getRestCallAuthParams,
getWebSocketAuthParams,
toValidWebsocketLocationUrl
} from "./GFJ653I2.js";
import {
generateRandomString
} from "./BGRBTH7Y.js";
} from "./KSB5ROQL.js";
import "./2ZQ3ZX7F.js";

// src/qix/session/enigma-session.ts
import enigma from "enigma.js";
Expand Down
6 changes: 3 additions & 3 deletions chunks/S2BIIZLQ.js → chunks/I5CSZHWM.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("./TTSM4BX5.js") : import("./F2X7MIT2.js").then((mod) => mod.importRuntimeModule("auth@v1", hostConfig));
return isNode ? import("./5WSW4QG3.js") : import("./CYO4KHYF.js").then((mod) => mod.importRuntimeModule("auth@v1", hostConfig));
}
async function getQixRuntimeModule(hostConfig) {
await getAuthRuntimeModule(hostConfig);
const isNode = !!globalThis.process?.argv;
return isNode ? import("./YGESHYCZ.js") : import("./F2X7MIT2.js").then((mod) => mod.importRuntimeModule("qix@v1", hostConfig));
return isNode ? import("./CUE3GZGJ.js") : import("./CYO4KHYF.js").then((mod) => mod.importRuntimeModule("qix@v1", hostConfig));
}
async function getInvokeFetchRuntimeModule(hostConfig) {
await getAuthRuntimeModule(hostConfig);
const isNode = !!globalThis.process?.argv;
return isNode ? import("./WEENC3NJ.js") : import("./F2X7MIT2.js").then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
return isNode ? import("./SW3DXPAP.js") : import("./CYO4KHYF.js").then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
}

export {
Expand Down
10 changes: 8 additions & 2 deletions chunks/GFJ653I2.js → chunks/KSB5ROQL.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import {
generateRandomString,
isBrowser,
isNode
} from "./BGRBTH7Y.js";
} from "./2ZQ3ZX7F.js";

// src/platform/platform-functions.ts
var getPlatform = async (options = {}) => {
Expand Down Expand Up @@ -638,6 +637,12 @@ function handleOAuthCallback() {
}
}

// src/random/random.ts
import { nanoid } from "nanoid";
function generateRandomString(targetLength) {
return nanoid(targetLength);
}

// src/auth/internal/default-auth-modules/oauth/oauth-utils.ts
function lookupGetAccessFn(getAccessToken2) {
return globalThis[getAccessToken2];
Expand Down Expand Up @@ -1781,5 +1786,6 @@ export {
clearApiCache,
parseFetchResponse,
invoke_fetch_default,
generateRandomString,
auth_default
};
9 changes: 5 additions & 4 deletions chunks/UY5PBIVC.js → chunks/NR2F7MAJ.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
getQixRuntimeModule
} from "./S2BIIZLQ.js";
} from "./I5CSZHWM.js";

// src/public/qix.ts
function openAppSession(appSessionProps) {
Expand Down Expand Up @@ -41,15 +41,16 @@ function openAppSession(appSessionProps) {
* this is basically a no op, but if this is the last/only usage
* of the underlying enigma websocket that websocket will be closed.
*/
async close() {
return (await appSessionPromise).close();
async close(props) {
return (await appSessionPromise).close(props);
}
};
return appSessionProxy;
}
var qix_default = {
var qix = {
openAppSession
};
var qix_default = qix;

export {
openAppSession,
Expand Down
4 changes: 2 additions & 2 deletions chunks/SYGKZE7X.js → chunks/S3X62FNR.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {
isBrowser
} from "./BGRBTH7Y.js";
} from "./2ZQ3ZX7F.js";
import {
getInvokeFetchRuntimeModule
} from "./S2BIIZLQ.js";
} from "./I5CSZHWM.js";

// src/public/invoke-fetch.ts
var defaultUserAgent = "qlik-api/latest";
Expand Down
4 changes: 2 additions & 2 deletions chunks/WEENC3NJ.js → chunks/SW3DXPAP.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import {
invokeFetch,
invoke_fetch_default,
parseFetchResponse
} from "./GFJ653I2.js";
import "./BGRBTH7Y.js";
} from "./KSB5ROQL.js";
import "./2ZQ3ZX7F.js";
export {
EncodingError,
InvokeFetchError,
Expand Down
6 changes: 3 additions & 3 deletions collections.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/SYGKZE7X.js";
import "./chunks/BGRBTH7Y.js";
import "./chunks/S2BIIZLQ.js";
} from "./chunks/S3X62FNR.js";
import "./chunks/2ZQ3ZX7F.js";
import "./chunks/I5CSZHWM.js";

// src/public/rest/collections.ts
var getCollections = async (query, options) => invokeFetch("collections", {
Expand Down
6 changes: 3 additions & 3 deletions csp-origins.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/SYGKZE7X.js";
import "./chunks/BGRBTH7Y.js";
import "./chunks/S2BIIZLQ.js";
} from "./chunks/S3X62FNR.js";
import "./chunks/2ZQ3ZX7F.js";
import "./chunks/I5CSZHWM.js";

// src/public/rest/csp-origins.ts
var getCSPEntries = async (query, options) => invokeFetch("csp-origins", {
Expand Down
6 changes: 3 additions & 3 deletions data-assets.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/SYGKZE7X.js";
import "./chunks/BGRBTH7Y.js";
import "./chunks/S2BIIZLQ.js";
} from "./chunks/S3X62FNR.js";
import "./chunks/2ZQ3ZX7F.js";
import "./chunks/I5CSZHWM.js";

// src/public/rest/data-assets.ts
var deleteDataAssets = async (body, options) => invokeFetch("data-assets", {
Expand Down
6 changes: 3 additions & 3 deletions data-connections.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/SYGKZE7X.js";
import "./chunks/BGRBTH7Y.js";
import "./chunks/S2BIIZLQ.js";
} from "./chunks/S3X62FNR.js";
import "./chunks/2ZQ3ZX7F.js";
import "./chunks/I5CSZHWM.js";

// src/public/rest/data-connections.ts
var getDataConnections = async (query, options) => invokeFetch("data-connections", {
Expand Down
6 changes: 3 additions & 3 deletions data-credentials.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/SYGKZE7X.js";
import "./chunks/BGRBTH7Y.js";
import "./chunks/S2BIIZLQ.js";
} from "./chunks/S3X62FNR.js";
import "./chunks/2ZQ3ZX7F.js";
import "./chunks/I5CSZHWM.js";

// src/public/rest/data-credentials.ts
var deleteDataCredential = async (qID, query, options) => invokeFetch("data-credentials", {
Expand Down
Loading

0 comments on commit f0783cd

Please sign in to comment.