From fb70157882cea5035ccd939d118573164f64149b Mon Sep 17 00:00:00 2001 From: Qlik OSS Build Bot <31236930+qlikossbuild@users.noreply.github.com> Date: Tue, 2 Apr 2024 16:22:00 +0200 Subject: [PATCH] feat: qlik api updates (#43) Co-authored-by: qlikossbuild --- api-keys.js | 4 ++-- apps.js | 4 ++-- audits.js | 4 ++-- auth.js | 4 ++-- automations.js | 4 ++-- brands.js | 4 ++-- chunks/{J47F33WT.js => 243PYOJH.js} | 11 ++++++++--- chunks/{7PI3VAVE.js => 2ZXOEI4D.js} | 6 +++--- chunks/{5ADY5YDO.js => 4NK5KQKY.js} | 2 +- chunks/{UHM3LDRC.js => 4PCG3E3I.js} | 2 +- chunks/{Z5KDIMTS.js => 5ZXMV3DK.js} | 22 +++++++++++++++++++--- chunks/{AANKGPDX.js => 664FMSNJ.js} | 2 +- chunks/{555I6RED.js => GEU5U7Z5.js} | 4 ++-- collections.js | 4 ++-- csp-origins.js | 4 ++-- data-assets.js | 4 ++-- data-connections.js | 4 ++-- data-credentials.js | 4 ++-- data-files.js | 4 ++-- extensions.js | 4 ++-- glossaries.js | 4 ++-- groups.js | 4 ++-- identity-providers.js | 4 ++-- index.js | 8 ++++---- items.js | 4 ++-- licenses.js | 4 ++-- package.json | 2 +- qix.d.ts | 16 +++++++++++++++- qix.js | 4 ++-- quotas.js | 4 ++-- reload-tasks.js | 4 ++-- reloads.js | 4 ++-- roles.js | 4 ++-- spaces.js | 4 ++-- temp-contents.js | 4 ++-- tenants.js | 4 ++-- themes.js | 4 ++-- transports.d.ts | 4 ++++ transports.js | 4 ++-- users.js | 4 ++-- web-integrations.js | 4 ++-- web-notifications.d.ts | 4 +++- web-notifications.js | 4 ++-- webhooks.js | 4 ++-- 44 files changed, 126 insertions(+), 85 deletions(-) rename chunks/{J47F33WT.js => 243PYOJH.js} (99%) rename chunks/{7PI3VAVE.js => 2ZXOEI4D.js} (78%) rename chunks/{5ADY5YDO.js => 4NK5KQKY.js} (98%) rename chunks/{UHM3LDRC.js => 4PCG3E3I.js} (96%) rename chunks/{Z5KDIMTS.js => 5ZXMV3DK.js} (97%) rename chunks/{AANKGPDX.js => 664FMSNJ.js} (94%) rename chunks/{555I6RED.js => GEU5U7Z5.js} (95%) diff --git a/api-keys.js b/api-keys.js index 714c594..8a4fb0a 100644 --- a/api-keys.js +++ b/api-keys.js @@ -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", { diff --git a/apps.js b/apps.js index e48d9fa..8d4664f 100644 --- a/apps.js +++ b/apps.js @@ -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", { diff --git a/audits.js b/audits.js index a8b37a5..0ff0947 100644 --- a/audits.js +++ b/audits.js @@ -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", { diff --git a/auth.js b/auth.js index 3191b06..b1b2f16 100644 --- a/auth.js +++ b/auth.js @@ -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, diff --git a/automations.js b/automations.js index 6eba88c..c798cdc 100644 --- a/automations.js +++ b/automations.js @@ -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", { diff --git a/brands.js b/brands.js index fc3a730..f6cd423 100644 --- a/brands.js +++ b/brands.js @@ -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", { diff --git a/chunks/J47F33WT.js b/chunks/243PYOJH.js similarity index 99% rename from chunks/J47F33WT.js rename to chunks/243PYOJH.js index e5967e2..b6dcaeb 100644 --- a/chunks/J47F33WT.js +++ b/chunks/243PYOJH.js @@ -10364,7 +10364,8 @@ async function createEnigmaSession({ appId, identity, hostConfig, - withoutData = false + withoutData = false, + useReloadEngine = false }) { const locationUrl = toValidWebsocketLocationUrl(hostConfig); const reloadUri = encodeURIComponent(`${locationUrl}/sense/app/${appId}`); @@ -10372,7 +10373,11 @@ async function createEnigmaSession({ 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) { @@ -10395,7 +10400,7 @@ async function createEnigmaSession({ schema: engine_api_default, mixins: mixins5, url, - suspendOnClose: true, + suspendOnClose: !useReloadEngine, createSocket: createSocketMethod, requestInterceptors: [somethingWithEmptyMethodsRequestInterceptor], responseInterceptors: [ diff --git a/chunks/7PI3VAVE.js b/chunks/2ZXOEI4D.js similarity index 78% rename from chunks/7PI3VAVE.js rename to chunks/2ZXOEI4D.js index 9001fb2..273f306 100644 --- a/chunks/7PI3VAVE.js +++ b/chunks/2ZXOEI4D.js @@ -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 { diff --git a/chunks/5ADY5YDO.js b/chunks/4NK5KQKY.js similarity index 98% rename from chunks/5ADY5YDO.js rename to chunks/4NK5KQKY.js index 3f41c11..5d6971c 100644 --- a/chunks/5ADY5YDO.js +++ b/chunks/4NK5KQKY.js @@ -1,6 +1,6 @@ import { getQixRuntimeModule -} from "./7PI3VAVE.js"; +} from "./2ZXOEI4D.js"; // src/public/qix.ts function openAppSession(appSessionProps) { diff --git a/chunks/UHM3LDRC.js b/chunks/4PCG3E3I.js similarity index 96% rename from chunks/UHM3LDRC.js rename to chunks/4PCG3E3I.js index 71b7d40..cabb65f 100644 --- a/chunks/UHM3LDRC.js +++ b/chunks/4PCG3E3I.js @@ -1,6 +1,6 @@ import { getAuthRuntimeModule -} from "./7PI3VAVE.js"; +} from "./2ZXOEI4D.js"; // src/public/auth.ts function registerAuthModule(name, authModule) { diff --git a/chunks/Z5KDIMTS.js b/chunks/5ZXMV3DK.js similarity index 97% rename from chunks/Z5KDIMTS.js rename to chunks/5ZXMV3DK.js index 3a062a0..f3bb54d 100644 --- a/chunks/Z5KDIMTS.js +++ b/chunks/5ZXMV3DK.js @@ -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) { @@ -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; diff --git a/chunks/AANKGPDX.js b/chunks/664FMSNJ.js similarity index 94% rename from chunks/AANKGPDX.js rename to chunks/664FMSNJ.js index c23d48e..e3325b8 100644 --- a/chunks/AANKGPDX.js +++ b/chunks/664FMSNJ.js @@ -1,6 +1,6 @@ import { getInvokeFetchRuntimeModule -} from "./7PI3VAVE.js"; +} from "./2ZXOEI4D.js"; // src/public/invoke-fetch.ts async function invokeFetch(api, props) { diff --git a/chunks/555I6RED.js b/chunks/GEU5U7Z5.js similarity index 95% rename from chunks/555I6RED.js rename to chunks/GEU5U7Z5.js index 51ad933..fac3c2c 100644 --- a/chunks/555I6RED.js +++ b/chunks/GEU5U7Z5.js @@ -1,4 +1,4 @@ -// node_modules/.pnpm/@qlik+runtime-module-loader@0.2.6/node_modules/@qlik/runtime-module-loader/dist/esm/index.js +// node_modules/.pnpm/@qlik+runtime-module-loader@0.2.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); @@ -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) { diff --git a/collections.js b/collections.js index 57754ac..7e5ec4c 100644 --- a/collections.js +++ b/collections.js @@ -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", { diff --git a/csp-origins.js b/csp-origins.js index 26a4a7d..e98535d 100644 --- a/csp-origins.js +++ b/csp-origins.js @@ -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", { diff --git a/data-assets.js b/data-assets.js index cfb5d79..668dc1d 100644 --- a/data-assets.js +++ b/data-assets.js @@ -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", { diff --git a/data-connections.js b/data-connections.js index 253368f..499664a 100644 --- a/data-connections.js +++ b/data-connections.js @@ -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", { diff --git a/data-credentials.js b/data-credentials.js index 550060a..b7b03bb 100644 --- a/data-credentials.js +++ b/data-credentials.js @@ -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", { diff --git a/data-files.js b/data-files.js index c3ad443..279d244 100644 --- a/data-files.js +++ b/data-files.js @@ -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", { diff --git a/extensions.js b/extensions.js index e07110d..9a55e0f 100644 --- a/extensions.js +++ b/extensions.js @@ -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", { diff --git a/glossaries.js b/glossaries.js index 5e40af8..a590b32 100644 --- a/glossaries.js +++ b/glossaries.js @@ -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", { diff --git a/groups.js b/groups.js index 90cca7b..1341a49 100644 --- a/groups.js +++ b/groups.js @@ -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", { diff --git a/identity-providers.js b/identity-providers.js index d6f27a2..8afa8ec 100644 --- a/identity-providers.js +++ b/identity-providers.js @@ -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", { diff --git a/index.js b/index.js index fdf9687..f51a2e4 100644 --- a/index.js +++ b/index.js @@ -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 = { diff --git a/items.js b/items.js index 35433ef..cb09be6 100644 --- a/items.js +++ b/items.js @@ -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", { diff --git a/licenses.js b/licenses.js index 4f8e275..fc5b26d 100644 --- a/licenses.js +++ b/licenses.js @@ -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", { diff --git a/package.json b/package.json index 6a3d49b..00a8832 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/qix.d.ts b/qix.d.ts index 57c65ce..27893f7 100644 --- a/qix.d.ts +++ b/qix.d.ts @@ -1,7 +1,7 @@ import './global.types-CMQsAHYd.js'; import { H as HostConfig } from './auth-types-Bqw3vbLs.js'; -declare const QIX_SCHEMA_VERSION = "12.2028.0"; +declare const QIX_SCHEMA_VERSION = "12.2030.0"; type AlfaNumString = { /** * Calculated value. @@ -3949,6 +3949,10 @@ type NxInlineDimensionDef = { * This parameter is optional. */ qLabelExpression?: string; + /** + * Alias of the dimension. + */ + qAlias?: string; }; type NxInlineMeasureDef = { /** @@ -4065,6 +4069,10 @@ type NxLibraryDimension = { */ qFieldLabels?: string[]; qLabelExpression?: string; + /** + * Alias of the dimension. + */ + qAlias?: string; }; type NxLibraryDimensionDef = { /** @@ -4085,6 +4093,10 @@ type NxLibraryDimensionDef = { */ qFieldLabels?: string[]; qLabelExpression?: string; + /** + * Alias of the dimension. + */ + qAlias?: string; }; /** * Information about the library measure. Is the layout for _NxLibraryMeasureDef_. @@ -11568,6 +11580,8 @@ type OpenAppSessionProps = { hostConfig?: HostConfig; /** Set to true if app should be opened without loading the data blob */ withoutData?: boolean; + /** Use a separate reload engine to perform a reload */ + useReloadEngine?: boolean; }; type DocAction = (doc: Doc) => Promise; type CloseProps = { diff --git a/qix.js b/qix.js index e281b33..801cbcd 100644 --- a/qix.js +++ b/qix.js @@ -1,8 +1,8 @@ import { openAppSession, qix_default -} from "./chunks/5ADY5YDO.js"; -import "./chunks/7PI3VAVE.js"; +} from "./chunks/4NK5KQKY.js"; +import "./chunks/2ZXOEI4D.js"; export { qix_default as default, openAppSession diff --git a/quotas.js b/quotas.js index ba7bbec..9647f44 100644 --- a/quotas.js +++ b/quotas.js @@ -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/quotas.ts var getQuotas = async (query, options) => invokeFetch("quotas", { diff --git a/reload-tasks.js b/reload-tasks.js index 5de960b..c1903f1 100644 --- a/reload-tasks.js +++ b/reload-tasks.js @@ -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/reload-tasks.ts var getReloadTasks = async (query, options) => invokeFetch("reload-tasks", { diff --git a/reloads.js b/reloads.js index 0407cd3..17baf60 100644 --- a/reloads.js +++ b/reloads.js @@ -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/reloads.ts var getReloads = async (query, options) => invokeFetch("reloads", { diff --git a/roles.js b/roles.js index c8970b2..3fbbed1 100644 --- a/roles.js +++ b/roles.js @@ -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/roles.ts var getRoles = async (query, options) => invokeFetch("roles", { diff --git a/spaces.js b/spaces.js index 474352e..3b130ee 100644 --- a/spaces.js +++ b/spaces.js @@ -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/spaces.ts var getSpaces = async (query, options) => invokeFetch("spaces", { diff --git a/temp-contents.js b/temp-contents.js index 1385116..6e9760d 100644 --- a/temp-contents.js +++ b/temp-contents.js @@ -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/temp-contents.ts var uploadTempFile = async (query, body, options) => invokeFetch("temp-contents", { diff --git a/tenants.js b/tenants.js index 112470e..f2bf807 100644 --- a/tenants.js +++ b/tenants.js @@ -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/tenants.ts var createTenant = async (body, options) => invokeFetch("tenants", { diff --git a/themes.js b/themes.js index 98bef63..58cf342 100644 --- a/themes.js +++ b/themes.js @@ -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/themes.ts var getThemes = async (options) => invokeFetch("themes", { diff --git a/transports.d.ts b/transports.d.ts index 6868bc4..ba11934 100644 --- a/transports.d.ts +++ b/transports.d.ts @@ -90,6 +90,8 @@ type GetEmailConfig = { authFailures?: number; /** used for SMTP authentication */ emailAddress?: string; + /** Indicates error with this email configuration. OK means that no error is indicated. Possible values are OK, CONFIG_NOT_SET, INCOMPLETE_CONFIG, INVALID_CREDENTIALS, PROVIDER_ERROR */ + errorCode?: string; /** Is the configuration valid */ isValid?: boolean; lastUpdated?: string; @@ -122,6 +124,8 @@ type GetMicrosoft365Config = { providerTenantId?: string; }; type SmtpCheck = { + /** Indicates error with this email configuration. OK means that no error is indicated. Possible values are OK, CONFIG_NOT_SET, INCOMPLETE_CONFIG, INVALID_CREDENTIALS, PROVIDER_ERROR */ + errorCode?: string; /** true if smtp config is correct and complete. Will return false if smtp-config does not exist at all */ isValid?: boolean; }; diff --git a/transports.js b/transports.js index 8f72196..b4fd1f7 100644 --- a/transports.js +++ b/transports.js @@ -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/transports.ts var deleteEmailConfig = async (options) => invokeFetch("transports", { diff --git a/users.js b/users.js index 58f533d..c3222d7 100644 --- a/users.js +++ b/users.js @@ -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/users.ts var getUsers = async (query, options) => invokeFetch("users", { diff --git a/web-integrations.js b/web-integrations.js index 2060b3a..809a0b0 100644 --- a/web-integrations.js +++ b/web-integrations.js @@ -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/web-integrations.ts var getWebIntegrations = async (query, options) => invokeFetch("web-integrations", { diff --git a/web-notifications.d.ts b/web-notifications.d.ts index 0636b63..5153387 100644 --- a/web-notifications.d.ts +++ b/web-notifications.d.ts @@ -46,10 +46,12 @@ type Notification = { readonly body: string; readonly createdAt: string; readonly id: string; + meta: unknown; read: boolean; readonly resourceId?: string; resourceType?: string; readonly spaceId?: string; + spaceType?: string; subResourceType?: string; readonly tenantId?: string; readonly updatedAt: string; @@ -62,7 +64,7 @@ type NotificationPatch = { /** The operation to be performed. */ op: "replace"; /** The path for the given resource field to patch. */ - path: "/description"; + path: "/read"; /** The value to be used for this operation. */ value: string; }; diff --git a/web-notifications.js b/web-notifications.js index 667c4fe..61f3937 100644 --- a/web-notifications.js +++ b/web-notifications.js @@ -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/web-notifications.ts var getNotifications = async (query, options) => invokeFetch("web-notifications", { diff --git a/webhooks.js b/webhooks.js index c994662..368cd01 100644 --- a/webhooks.js +++ b/webhooks.js @@ -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/webhooks.ts var getWebhooks = async (query, options) => invokeFetch("webhooks", {