Skip to content

Commit

Permalink
feat: qlik api updates (#45)
Browse files Browse the repository at this point in the history
Co-authored-by: qlikossbuild <[email protected]>
  • Loading branch information
qlikossbuild and qlikossbuild authored Apr 12, 2024
1 parent ceb8332 commit 2c8d991
Show file tree
Hide file tree
Showing 43 changed files with 112 additions and 82 deletions.
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/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";
} from "./chunks/3M4WLVKJ.js";
import "./chunks/OM55UI47.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/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";
} from "./chunks/3M4WLVKJ.js";
import "./chunks/OM55UI47.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/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";
} from "./chunks/3M4WLVKJ.js";
import "./chunks/OM55UI47.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/4PCG3E3I.js";
import "./chunks/2ZXOEI4D.js";
} from "./chunks/K7OE4EVW.js";
import "./chunks/OM55UI47.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/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";
} from "./chunks/3M4WLVKJ.js";
import "./chunks/OM55UI47.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/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";
} from "./chunks/3M4WLVKJ.js";
import "./chunks/OM55UI47.js";

// src/public/rest/brands.ts
var getBrands = async (query, options) => invokeFetch("brands", {
Expand Down
2 changes: 1 addition & 1 deletion chunks/LI7EZYL4.js → chunks/2G2EK3MP.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
toValidEnigmaLocationUrl,
toValidLocationUrl,
toValidWebsocketLocationUrl
} from "./SG2HWQOC.js";
} from "./5GE4XPP3.js";
export {
AuthorizationError,
InvalidAuthTypeError,
Expand Down
2 changes: 1 addition & 1 deletion chunks/664FMSNJ.js → chunks/3M4WLVKJ.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
getInvokeFetchRuntimeModule
} from "./2ZXOEI4D.js";
} from "./OM55UI47.js";

// src/public/invoke-fetch.ts
async function invokeFetch(api, props) {
Expand Down
2 changes: 1 addition & 1 deletion chunks/243PYOJH.js → chunks/3QGTKIWR.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
getRestCallAuthParams,
getWebSocketAuthParams,
toValidWebsocketLocationUrl
} from "./SG2HWQOC.js";
} from "./5GE4XPP3.js";

// src/qix/session/enigma-session.ts
import enigma from "enigma.js";
Expand Down
6 changes: 6 additions & 0 deletions chunks/SG2HWQOC.js → chunks/5GE4XPP3.js
Original file line number Diff line number Diff line change
Expand Up @@ -1244,6 +1244,9 @@ function clone(value) {
if (value && (value instanceof Blob || value instanceof Object && value.toString() === "[object Blob]")) {
return value;
}
if (value && value instanceof ReadableStream) {
return value;
}
if (typeof value === "string") {
return value;
}
Expand Down Expand Up @@ -1719,6 +1722,9 @@ async function parseFetchResponse(fetchResponse, url) {
case "application/zip":
resultData = toDownloadableBlob(await fetchResponse.blob());
break;
case "text/event-stream":
resultData = fetchResponse.body;
break;
default:
try {
resultData = await fetchResponse.text();
Expand Down
2 changes: 1 addition & 1 deletion chunks/4NK5KQKY.js → chunks/6ZU5SVSZ.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
getQixRuntimeModule
} from "./2ZXOEI4D.js";
} from "./OM55UI47.js";

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

// src/public/auth.ts
function registerAuthModule(name, authModule) {
Expand Down
2 changes: 1 addition & 1 deletion chunks/OKMBHX5N.js → chunks/LDQGW22R.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
invokeFetch,
invoke_fetch_default,
parseFetchResponse
} from "./SG2HWQOC.js";
} from "./5GE4XPP3.js";
export {
EncodingError,
InvokeFetchError,
Expand Down
4 changes: 2 additions & 2 deletions chunks/5ZXMV3DK.js → chunks/NIJVIOVX.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
isBrowser,
isWindows,
toValidWebsocketLocationUrl
} from "./SG2HWQOC.js";
} from "./5GE4XPP3.js";

// src/qix/session/shared-sessions.ts
var globalEventListeners = /* @__PURE__ */ new Set();
Expand Down Expand Up @@ -99,7 +99,7 @@ function listenForWindowsAuthenticationInformation(session) {
return authSuggestedInWebsocket;
}
async function createAndSetupEnigmaSession(props, canRetry) {
const { createEnigmaSession } = await import("./243PYOJH.js");
const { createEnigmaSession } = await import("./3QGTKIWR.js");
const session = await createEnigmaSession(props);
setupSessionListeners(session, props);
let global;
Expand Down
6 changes: 3 additions & 3 deletions chunks/2ZXOEI4D.js → chunks/OM55UI47.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("./GEU5U7Z5.js").then((mod) => mod.importRuntimeModule("auth@v1", hostConfig));
return isNode ? import("./2G2EK3MP.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("./5ZXMV3DK.js") : import("./GEU5U7Z5.js").then((mod) => mod.importRuntimeModule("qix@v1", hostConfig));
return isNode ? import("./NIJVIOVX.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("./GEU5U7Z5.js").then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
return isNode ? import("./LDQGW22R.js") : import("./GEU5U7Z5.js").then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
}

export {
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/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";
} from "./chunks/3M4WLVKJ.js";
import "./chunks/OM55UI47.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/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";
} from "./chunks/3M4WLVKJ.js";
import "./chunks/OM55UI47.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/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";
} from "./chunks/3M4WLVKJ.js";
import "./chunks/OM55UI47.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/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";
} from "./chunks/3M4WLVKJ.js";
import "./chunks/OM55UI47.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/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";
} from "./chunks/3M4WLVKJ.js";
import "./chunks/OM55UI47.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/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";
} from "./chunks/3M4WLVKJ.js";
import "./chunks/OM55UI47.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/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";
} from "./chunks/3M4WLVKJ.js";
import "./chunks/OM55UI47.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/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";
} from "./chunks/3M4WLVKJ.js";
import "./chunks/OM55UI47.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/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";
} from "./chunks/3M4WLVKJ.js";
import "./chunks/OM55UI47.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/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";
} from "./chunks/3M4WLVKJ.js";
import "./chunks/OM55UI47.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/4PCG3E3I.js";
} from "./chunks/K7OE4EVW.js";
import {
qix_default
} from "./chunks/4NK5KQKY.js";
} from "./chunks/6ZU5SVSZ.js";
import {
clearApiCache,
invokeFetch
} from "./chunks/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";
} from "./chunks/3M4WLVKJ.js";
import "./chunks/OM55UI47.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/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";
} from "./chunks/3M4WLVKJ.js";
import "./chunks/OM55UI47.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/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";
} from "./chunks/3M4WLVKJ.js";
import "./chunks/OM55UI47.js";

// src/public/rest/licenses.ts
var getLicenseAssignments = async (query, options) => invokeFetch("licenses", {
Expand Down
30 changes: 27 additions & 3 deletions qix.d.ts

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions qix.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
openAppSession,
qix_default
} from "./chunks/4NK5KQKY.js";
import "./chunks/2ZXOEI4D.js";
} from "./chunks/6ZU5SVSZ.js";
import "./chunks/OM55UI47.js";
export {
qix_default as default,
openAppSession
Expand Down
4 changes: 2 additions & 2 deletions quotas.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";
} from "./chunks/3M4WLVKJ.js";
import "./chunks/OM55UI47.js";

// src/public/rest/quotas.ts
var getQuotas = async (query, options) => invokeFetch("quotas", {
Expand Down
4 changes: 2 additions & 2 deletions reload-tasks.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";
} from "./chunks/3M4WLVKJ.js";
import "./chunks/OM55UI47.js";

// src/public/rest/reload-tasks.ts
var getReloadTasks = async (query, options) => invokeFetch("reload-tasks", {
Expand Down
4 changes: 2 additions & 2 deletions reloads.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
clearApiCache,
invokeFetch
} from "./chunks/664FMSNJ.js";
import "./chunks/2ZXOEI4D.js";
} from "./chunks/3M4WLVKJ.js";
import "./chunks/OM55UI47.js";

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

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

// src/public/rest/spaces.ts
var getSpaces = async (query, options) => invokeFetch("spaces", {
Expand Down
Loading

0 comments on commit 2c8d991

Please sign in to comment.