Socket
Socket
Sign inDemoInstall

@qlik/sdk

Package Overview
Dependencies
17
Maintainers
3
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.23.1 to 0.24.0

dist/cjs/apis/Brands.js

6

dist/cjs/apis/Apps.js

@@ -189,3 +189,2 @@ var __create = Object.create;

@param accept-language - language specified as an ISO-639-1 code. Defaults to 'en' (English).
@param data - Request payload can be of two types, using natural language query or consist of fields or master items and optional target analysis.

@@ -233,3 +232,3 @@ In below examples, consider sales as a master item and product as field, so to get recommendations using sales and product,

*/
async recommend(data) {
async recommendInsightAnalyses(data) {
const response = await this.auth.rest(

@@ -261,3 +260,2 @@ "/apps/{appId}/insight-analyses/actions/recommend".replace("{appId}", this.attributes?.id ?? ""),

@param accept-language - language specified as an ISO-639-1 code. Defaults to 'en' (English).
*/

@@ -356,3 +354,3 @@ async getInsightAnalyses() {

*/
async changeOwner(objectId, data) {
async changeOwnerObject(objectId, data) {
const response = await this.auth.rest(

@@ -359,0 +357,0 @@ "/apps/{appId}/objects/{objectId}/actions/change-owner".replace("{appId}", this.attributes?.id ?? "").replace("{objectId}", objectId),

@@ -98,3 +98,3 @@ var __create = Object.create;

*/
async gets(id) {
async get(id) {
const response = await this.auth.rest(

@@ -101,0 +101,0 @@ "/audits/{id}".replace("{id}", id),

@@ -143,3 +143,3 @@ var __create = Object.create;

*/
async export(runId) {
async exportRun(runId) {
const response = await this.auth.rest(

@@ -158,3 +158,3 @@ "/automations/{id}/runs/{runId}/actions/export".replace("{id}", this.id ?? "").replace("{runId}", runId),

*/
async retry(runId) {
async retryRun(runId) {
await this.auth.rest(

@@ -172,3 +172,3 @@ "/automations/{id}/runs/{runId}/actions/retry".replace("{id}", this.id ?? "").replace("{runId}", runId),

*/
async stop(runId) {
async stopRun(runId) {
await this.auth.rest(

@@ -175,0 +175,0 @@ "/automations/{id}/runs/{runId}/actions/stop".replace("{id}", this.id ?? "").replace("{runId}", runId),

@@ -41,2 +41,3 @@ var __create = Object.create;

description,
full,
id,

@@ -57,2 +58,3 @@ itemCount,

this.description = description;
this.full = full;
this.id = id;

@@ -193,3 +195,3 @@ this.itemCount = itemCount;

*/
async getFavorite() {
async getFavorites() {
const response = await this.auth.rest(

@@ -238,3 +240,4 @@ "/collections/favorites",

@param type - The case-sensitive string used to search for a collection by type.
@param type - The case-sensitive string used to filter for a collection by type.
@param types - A commaseparated case-sensitive string used to filter by multiple types.
*/

@@ -241,0 +244,0 @@ async getCollections(queryParams = {}) {

@@ -36,2 +36,3 @@ var __create = Object.create;

var import_listable = __toESM(require("../listable.js"));
var import_utils = require("../utils/utils.js");
class DataFileUploadResponse {

@@ -136,3 +137,3 @@ constructor({

if (File !== void 0) {
formData.append("File", new Blob([File], { type: "application/octet-stream" }));
formData.append("File", new Blob([File], { type: (0, import_utils.getMimeType)(File) }));
}

@@ -251,3 +252,3 @@ const Json = {};

*/
async getQuota() {
async getQuotas() {
const response = await this.auth.rest(

@@ -329,3 +330,3 @@ "/data-files/quotas",

if (File !== void 0) {
formData.append("File", new Blob([File], { type: "application/octet-stream" }));
formData.append("File", new Blob([File], { type: (0, import_utils.getMimeType)(File) }));
}

@@ -332,0 +333,0 @@ const Json = {};

@@ -36,2 +36,3 @@ var __create = Object.create;

var import_auth = __toESM(require("../auth/auth.js"));
var import_utils = require("../utils/utils.js");
class Extension {

@@ -53,2 +54,3 @@ constructor({

license,
loadpath,
name,

@@ -86,2 +88,3 @@ preview,

this.license = license;
this.loadpath = loadpath;
this.name = name;

@@ -152,3 +155,3 @@ this.preview = preview;

if (file !== void 0) {
formData.append("file", new Blob([file], { type: "application/octet-stream" }));
formData.append("file", new Blob([file], { type: (0, import_utils.getMimeType)(file) }));
}

@@ -236,3 +239,3 @@ if (data !== void 0) {

if (file !== void 0) {
formData.append("file", new Blob([file], { type: "application/octet-stream" }));
formData.append("file", new Blob([file], { type: (0, import_utils.getMimeType)(file) }));
}

@@ -239,0 +242,0 @@ if (data !== void 0) {

@@ -110,3 +110,2 @@ var __create = Object.create;

@param id - The identity provider ID.
@param QLIK-IDP-POPTS-MATCH - A unique string representing a hash that should map to an IdP's hash representation of the current configuration being tested.
@param data - Attributes that the user wants to patially update for an identity provider resource.

@@ -113,0 +112,0 @@ */

@@ -64,2 +64,3 @@ var __create = Object.create;

description,
full,
id,

@@ -80,2 +81,3 @@ itemCount,

this.description = description;
this.full = full;
this.id = id;

@@ -82,0 +84,0 @@ this.itemCount = itemCount;

@@ -45,3 +45,3 @@ var __create = Object.create;

*/
async add(data) {
async addAssignments(data) {
const response = await this.auth.rest(

@@ -61,3 +61,3 @@ "/licenses/assignments/actions/add",

*/
async delete(data) {
async deleteAssignments(data) {
const response = await this.auth.rest(

@@ -77,3 +77,3 @@ "/licenses/assignments/actions/delete",

*/
async update(data) {
async updateAssignments(data) {
const response = await this.auth.rest(

@@ -80,0 +80,0 @@ "/licenses/assignments/actions/update",

@@ -43,3 +43,2 @@ var __create = Object.create;

@param qlik-web-integration-id - This header is only required for external clients or mashups for QCS, this value of this property should be the id of the web integration set up for the external client/mashup
@param data -

@@ -46,0 +45,0 @@ */

@@ -36,2 +36,3 @@ var __create = Object.create;

var import_auth = __toESM(require("../auth/auth.js"));
var import_utils = require("../utils/utils.js");
class Theme {

@@ -136,3 +137,3 @@ constructor({

if (file !== void 0) {
formData.append("file", new Blob([file], { type: "application/octet-stream" }));
formData.append("file", new Blob([file], { type: (0, import_utils.getMimeType)(file) }));
}

@@ -215,3 +216,3 @@ if (data !== void 0) {

if (file !== void 0) {
formData.append("file", new Blob([file], { type: "application/octet-stream" }));
formData.append("file", new Blob([file], { type: (0, import_utils.getMimeType)(file) }));
}

@@ -218,0 +219,0 @@ if (data !== void 0) {

@@ -44,3 +44,3 @@ var __create = Object.create;

*/
async sendTestEmail(data) {
async sendTestEmailEmailConfig(data) {
const response = await this.auth.rest(

@@ -59,3 +59,3 @@ "/transports/email-config/actions/send-test-email",

*/
async validate() {
async validateEmailConfig() {
const response = await this.auth.rest(

@@ -73,3 +73,3 @@ "/transports/email-config/actions/validate",

*/
async verifyConnection() {
async verifyConnectionEmailConfig() {
const response = await this.auth.rest(

@@ -76,0 +76,0 @@ "/transports/email-config/actions/verify-connection",

@@ -207,6 +207,7 @@ var __create = Object.create;

@param userId - The user's unique identifier
@param fields - A comma-delimited string of the requested fields per entity. If the 'links' value is omitted, then the entity HATEOAS link will also be omitted.
*/
async get(userId) {
async get(userId, queryParams = {}) {
const response = await this.auth.rest(
"/users/{userId}".replace("{userId}", userId),
`${"/users/{userId}".replace("{userId}", userId)}?${new URLSearchParams(Object.entries(queryParams).filter(([, v]) => v !== void 0).map(([k, v]) => [k, v.toString()])).toString()}`,
{

@@ -257,2 +258,3 @@ method: "GET"

@param sort - The field to sort by, with +/- prefix indicating sort order
@param totalResults - Whether to return a total match count in the result. Defaults to false. It will trigger an extra DB query to count, reducing the efficiency of the endpoint.
@param email - The email to filter by. Deprecated. Use the new `filter` parameter to provide an advanced query filter.

@@ -259,0 +261,0 @@ @param endingBefore - Get users with IDs that are lower than the target user ID. Cannot be used in conjunction with startingAfter. Deprecated. Use `prev` instead.

@@ -86,3 +86,3 @@ var __create = Object.create;

*/
async resend(deliveryId) {
async resendDelivery(deliveryId) {
const response = await this.auth.rest(

@@ -101,3 +101,3 @@ "/webhooks/{id}/deliveries/{deliveryId}/actions/resend".replace("{deliveryId}", deliveryId).replace("{id}", this.id ?? ""),

*/
async getDeliverie(deliveryId) {
async getDelivery(deliveryId) {
const response = await this.auth.rest(

@@ -104,0 +104,0 @@ "/webhooks/{id}/deliveries/{deliveryId}".replace("{deliveryId}", deliveryId).replace("{id}", this.id ?? ""),

@@ -94,3 +94,3 @@ var __defProp = Object.defineProperty;

}
const version = "0.23.1";
const version = "0.24.0";
const osName = true ? process?.platform : "";

@@ -97,0 +97,0 @@ const anyBody = init?.body;

@@ -38,2 +38,3 @@ var __create = Object.create;

Automations: () => import_Automations2.Automations,
Brands: () => import_Brands2.Brands,
Collections: () => import_Collections2.Collections,

@@ -57,2 +58,3 @@ ConnectionErrorMsg: () => import_errors.ConnectionErrorMsg,

Spaces: () => import_Spaces2.Spaces,
Tenants: () => import_Tenants2.Tenants,
Themes: () => import_Themes2.Themes,

@@ -70,2 +72,3 @@ Transports: () => import_Transports2.Transports,

var import_Automations = require("./apis/Automations.js");
var import_Brands = require("./apis/Brands.js");
var import_Collections = require("./apis/Collections.js");

@@ -87,2 +90,3 @@ var import_Csp_Origins = require("./apis/Csp_Origins.js");

var import_Spaces = require("./apis/Spaces.js");
var import_Tenants = require("./apis/Tenants.js");
var import_Themes = require("./apis/Themes.js");

@@ -98,2 +102,3 @@ var import_Transports = require("./apis/Transports.js");

var import_Automations2 = require("./apis/Automations.js");
var import_Brands2 = require("./apis/Brands.js");
var import_Collections2 = require("./apis/Collections.js");

@@ -116,2 +121,3 @@ var import_Csp_Origins2 = require("./apis/Csp_Origins.js");

var import_Spaces2 = require("./apis/Spaces.js");
var import_Tenants2 = require("./apis/Tenants.js");
var import_Themes2 = require("./apis/Themes.js");

@@ -136,2 +142,3 @@ var import_Transports2 = require("./apis/Transports.js");

this.automations = new import_Automations.Automations(this.auth);
this.brands = new import_Brands.Brands(this.auth);
this.collections = new import_Collections.Collections(this.auth);

@@ -153,2 +160,3 @@ this.cspOrigins = new import_Csp_Origins.CspOrigins(this.auth);

this.spaces = new import_Spaces.Spaces(this.auth);
this.tenants = new import_Tenants.Tenants(this.auth);
this.themes = new import_Themes.Themes(this.auth);

@@ -170,2 +178,3 @@ this.transports = new import_Transports.Transports(this.auth);

Automations,
Brands,
Collections,

@@ -189,2 +198,3 @@ ConnectionErrorMsg,

Spaces,
Tenants,
Themes,

@@ -191,0 +201,0 @@ Transports,

@@ -22,2 +22,3 @@ var __defProp = Object.defineProperty;

generateWebsocketUrl: () => generateWebsocketUrl,
getMimeType: () => getMimeType,
getUrl: () => getUrl,

@@ -178,2 +179,15 @@ isBrowser: () => isBrowser,

};
const getMimeType = (buffer) => {
const firstBytes = buffer.slice(0, 4);
const signature = firstBytes.toString("hex").toUpperCase();
const isPng = signature === "89504E47";
const isJpg = signature === "FFD8FFDB" || signature === "FFD8FFE0" || signature === "FFD8FFE1";
if (isPng) {
return "image/png";
}
if (isJpg) {
return "image/jpeg";
}
return "application/octet-stream";
};
// Annotate the CommonJS export names for ESM import in node:

@@ -183,2 +197,3 @@ 0 && (module.exports = {

generateWebsocketUrl,
getMimeType,
getUrl,

@@ -185,0 +200,0 @@ isBrowser,

@@ -5,2 +5,3 @@ /**

*/
/// <reference types="node" />
import Auth from '../auth/auth.js';

@@ -97,2 +98,10 @@ import ListableResource from '../listable.js';

spaceId?: string;
/** Indicates whether the app is used for Analytics or DataPreparation
One of:
• ANALYTICS or ANALYTICS_USAGE
• DATA_PREPARATION or DATA_PREPARATION_USAGE */
usage?: 'ANALYTICS_USAGE' | 'DATA_PREPARATION_USAGE' | string;
[key: string]: any;

@@ -208,2 +217,9 @@ };

tables_profiling_data?: Array<TableProfilingData>;
/**
One of:
• ANALYTICS or ANALYTICS_USAGE
• DATA_PREPARATION or DATA_PREPARATION_USAGE */
usage?: 'ANALYTICS_USAGE' | 'DATA_PREPARATION_USAGE' | string;
[key: string]: any;

@@ -512,5 +528,2 @@ };

};
export type FileData = {
[key: string]: any;
};
export type FrequencyDistributionData = {

@@ -669,3 +682,2 @@ /** Bins edges. */

@param accept-language - language specified as an ISO-639-1 code. Defaults to 'en' (English).
@param data - Request payload can be of two types, using natural language query or consist of fields or master items and optional target analysis.

@@ -713,3 +725,3 @@ In below examples, consider sales as a master item and product as field, so to get recommendations using sales and product,

*/
recommend(data: AnalysisRecommendRequest): Promise<AnalysisRecommendationResponse>;
recommendInsightAnalyses(data: AnalysisRecommendRequest): Promise<AnalysisRecommendationResponse>;
/**

@@ -723,3 +735,2 @@ Returns information about model used to make analysis recommendations. Lists all fields and master items in the logical model, along with an indication of the validity of the logical model if the default is not used.

@param accept-language - language specified as an ISO-639-1 code. Defaults to 'en' (English).
*/

@@ -745,3 +756,3 @@ getInsightAnalyses(): Promise<ListableResource<AnalysisDescriptor>>;

*/
setMediaFile(path: string, data: FileData): Promise<void>;
setMediaFile(path: string, data: Buffer): Promise<void>;
/** Lists media content.

@@ -773,3 +784,3 @@ Returns a JSON formatted array of strings describing the available media content or error if the optional path supplied is not found.

*/
changeOwner(objectId: string, data: UpdateOwner): Promise<NxAppObject>;
changeOwnerObject(objectId: string, data: UpdateOwner): Promise<NxAppObject>;
/** Changes owner of the app.

@@ -927,2 +938,9 @@

thumbnail?: string;
/**
One of:
• ANALYTICS or ANALYTICS_USAGE
• DATA_PREPARATION or DATA_PREPARATION_USAGE */
usage?: 'ANALYTICS_USAGE' | 'DATA_PREPARATION_USAGE' | string;
[key: string]: any;

@@ -1340,3 +1358,3 @@ };

*/
importApp(data: FileData, queryParams?: {
importApp(data: Buffer, queryParams?: {
appId?: string;

@@ -1343,0 +1361,0 @@ fallbackName?: string;

@@ -155,3 +155,2 @@ import Auth from "../auth/auth.js";

@param accept-language - language specified as an ISO-639-1 code. Defaults to 'en' (English).
@param data - Request payload can be of two types, using natural language query or consist of fields or master items and optional target analysis.

@@ -199,3 +198,3 @@ In below examples, consider sales as a master item and product as field, so to get recommendations using sales and product,

*/
async recommend(data) {
async recommendInsightAnalyses(data) {
const response = await this.auth.rest(

@@ -227,3 +226,2 @@ "/apps/{appId}/insight-analyses/actions/recommend".replace("{appId}", this.attributes?.id ?? ""),

@param accept-language - language specified as an ISO-639-1 code. Defaults to 'en' (English).
*/

@@ -322,3 +320,3 @@ async getInsightAnalyses() {

*/
async changeOwner(objectId, data) {
async changeOwnerObject(objectId, data) {
const response = await this.auth.rest(

@@ -325,0 +323,0 @@ "/apps/{appId}/objects/{objectId}/actions/change-owner".replace("{appId}", this.attributes?.id ?? "").replace("{objectId}", objectId),

@@ -123,3 +123,3 @@ /**

*/
gets(id: string): Promise<GetByIDResult>;
get(id: string): Promise<GetByIDResult>;
/**

@@ -126,0 +126,0 @@ Finds and returns the persisted audit events for the given tenant.

@@ -66,3 +66,3 @@ import Auth from "../auth/auth.js";

*/
async gets(id) {
async get(id) {
const response = await this.auth.rest(

@@ -69,0 +69,0 @@ "/audits/{id}".replace("{id}", id),

@@ -83,3 +83,5 @@ /**

*/
copy(name: string): Promise<object>;
copy(name: string): Promise<{
id: string;
}>;
/**

@@ -106,3 +108,5 @@ Disables an automation.

*/
export(runId: string): Promise<object>;
exportRun(runId: string): Promise<{
url: string;
}>;
/** This action allows you to retry a specific run by creating a new run using the same inputs.

@@ -113,3 +117,3 @@ Retry a run.

*/
retry(runId: string): Promise<void>;
retryRun(runId: string): Promise<void>;
/** Force a run to be stopped immediately.

@@ -120,3 +124,3 @@ Stop a running automation.

*/
stop(runId: string): Promise<void>;
stopRun(runId: string): Promise<void>;
/**

@@ -123,0 +127,0 @@ Retrieves a run

@@ -110,3 +110,3 @@ import Auth from "../auth/auth.js";

*/
async export(runId) {
async exportRun(runId) {
const response = await this.auth.rest(

@@ -125,3 +125,3 @@ "/automations/{id}/runs/{runId}/actions/export".replace("{id}", this.id ?? "").replace("{runId}", runId),

*/
async retry(runId) {
async retryRun(runId) {
await this.auth.rest(

@@ -139,3 +139,3 @@ "/automations/{id}/runs/{runId}/actions/retry".replace("{id}", this.id ?? "").replace("{runId}", runId),

*/
async stop(runId) {
async stopRun(runId) {
await this.auth.rest(

@@ -142,0 +142,0 @@ "/automations/{id}/runs/{runId}/actions/stop".replace("{id}", this.id ?? "").replace("{runId}", runId),

@@ -23,4 +23,5 @@ /**

@param description -
@param full - States if a collection has reached its items limit or not
@param id - The collection's unique identifier.
@param itemCount - The number of items that have been added to the collection.
@param itemCount - The number of items that have been added to the collection that the user has access to.
@param links -

@@ -30,3 +31,3 @@ @param meta - Collection metadata and computed fields.

@param tenantId - The ID of the tenant that owns the collection. This property is populated by using JWT.
@param type - The collection's type.
@param type -
@param updatedAt - The RFC3339 datetime when the collection was last updated.

@@ -41,2 +42,3 @@ @param updaterId - The ID of the user who last updated the collection. This property is only populated if the JWT contains a userId.

description?: string;
full?: boolean;
id: string;

@@ -48,10 +50,11 @@ itemCount: number;

tenantId: string;
type: 'public' | 'private' | 'favorite' | string;
type: 'private' | 'public' | 'favorite' | 'publicgoverned' | string;
updatedAt: string;
updaterId?: string;
[key: string]: any;
constructor({ createdAt, creatorId, description, id, itemCount, links, meta, name, tenantId, type, updatedAt, updaterId, ...rest }: {
constructor({ createdAt, creatorId, description, full, id, itemCount, links, meta, name, tenantId, type, updatedAt, updaterId, ...rest }: {
createdAt: string;
creatorId?: string;
description?: string;
full?: boolean;
id: string;

@@ -63,3 +66,3 @@ itemCount: number;

tenantId: string;
type: 'public' | 'private' | 'favorite' | string;
type: 'private' | 'public' | 'favorite' | 'publicgoverned' | string;
updatedAt: string;

@@ -143,4 +146,3 @@ updaterId?: string;

name: string;
/** The collection's type. */
type: 'public' | 'private' | string;
type: 'private' | 'public' | 'publicgoverned' | string;
[key: string]: any;

@@ -157,2 +159,5 @@ };

};
export type CollectionTypes = {
[key: string]: any;
};
export type ItemLinksResponseBody = {

@@ -288,3 +293,3 @@ collections?: Link;

*/
getFavorite(): Promise<any>;
getFavorites(): Promise<any>;
/** Finds and returns a collection.

@@ -316,3 +321,4 @@

@param type - The case-sensitive string used to search for a collection by type.
@param type - The case-sensitive string used to filter for a collection by type.
@param types - A commaseparated case-sensitive string used to filter by multiple types.
*/

@@ -329,3 +335,4 @@ getCollections(queryParams?: {

sort?: '+createdAt' | '-createdAt' | '+name' | '-name' | '+updatedAt' | '-updatedAt';
type?: 'public' | 'private';
type?: 'private' | 'public' | 'publicgoverned';
types?: Array<CollectionTypes>;
}): Promise<ListableResource<CollectionResultResponseBody>>;

@@ -332,0 +339,0 @@ /** Creates and returns a new collection. Collections can have the same name.

@@ -8,2 +8,3 @@ import Auth from "../auth/auth.js";

description,
full,
id,

@@ -24,2 +25,3 @@ itemCount,

this.description = description;
this.full = full;
this.id = id;

@@ -160,3 +162,3 @@ this.itemCount = itemCount;

*/
async getFavorite() {
async getFavorites() {
const response = await this.auth.rest(

@@ -205,3 +207,4 @@ "/collections/favorites",

@param type - The case-sensitive string used to search for a collection by type.
@param type - The case-sensitive string used to filter for a collection by type.
@param types - A commaseparated case-sensitive string used to filter by multiple types.
*/

@@ -208,0 +211,0 @@ async getCollections(queryParams = {}) {

@@ -242,3 +242,3 @@ /**

*/
getQuota(): Promise<QuotaResponse>;
getQuotas(): Promise<QuotaResponse>;
/**

@@ -245,0 +245,0 @@ Get descriptive info for the specified data file.

import Auth from "../auth/auth.js";
import ListableResource from "../listable.js";
import { getMimeType } from "../utils/utils.js";
class DataFileUploadResponse {

@@ -102,3 +103,3 @@ constructor({

if (File !== void 0) {
formData.append("File", new Blob([File], { type: "application/octet-stream" }));
formData.append("File", new Blob([File], { type: getMimeType(File) }));
}

@@ -217,3 +218,3 @@ const Json = {};

*/
async getQuota() {
async getQuotas() {
const response = await this.auth.rest(

@@ -295,3 +296,3 @@ "/data-files/quotas",

if (File !== void 0) {
formData.append("File", new Blob([File], { type: "application/octet-stream" }));
formData.append("File", new Blob([File], { type: getMimeType(File) }));
}

@@ -298,0 +299,0 @@ const Json = {};

@@ -33,2 +33,3 @@ /**

@param license - Under which license this extension is published.
@param loadpath - Relative path to the extension's entry file, defaults to `filename` from the qext file.
@param name - The display name of this extension.

@@ -65,2 +66,3 @@ @param preview - Path to an image that enables users to preview the extension.

license?: string;
loadpath?: string;
name?: string;

@@ -80,3 +82,3 @@ preview?: string;

[key: string]: any;
constructor({ author, bundle, bundled, checksum, createdAt, dependencies, deprecated, description, file, homepage, icon, id, keywords, license, name, preview, qextFilename, qextVersion, repository, supernova, supplier, tags, tenantId, type, updateAt, userId, version, ...rest }: {
constructor({ author, bundle, bundled, checksum, createdAt, dependencies, deprecated, description, file, homepage, icon, id, keywords, license, loadpath, name, preview, qextFilename, qextVersion, repository, supernova, supplier, tags, tenantId, type, updateAt, userId, version, ...rest }: {
author?: string;

@@ -96,2 +98,3 @@ bundle?: BundleMeta;

license?: string;
loadpath?: string;
name?: string;

@@ -160,2 +163,4 @@ preview?: string;

license?: string;
/** Relative path to the extension's entry file, defaults to `filename` from the qext file. */
loadpath?: string;
/** The display name of this extension. */

@@ -162,0 +167,0 @@ name?: string;

import Auth from "../auth/auth.js";
import { getMimeType } from "../utils/utils.js";
class Extension {

@@ -18,2 +19,3 @@ constructor({

license,
loadpath,
name,

@@ -51,2 +53,3 @@ preview,

this.license = license;
this.loadpath = loadpath;
this.name = name;

@@ -117,3 +120,3 @@ this.preview = preview;

if (file !== void 0) {
formData.append("file", new Blob([file], { type: "application/octet-stream" }));
formData.append("file", new Blob([file], { type: getMimeType(file) }));
}

@@ -201,3 +204,3 @@ if (data !== void 0) {

if (file !== void 0) {
formData.append("file", new Blob([file], { type: "application/octet-stream" }));
formData.append("file", new Blob([file], { type: getMimeType(file) }));
}

@@ -204,0 +207,0 @@ if (data !== void 0) {

@@ -89,3 +89,3 @@ /**

path: 'assignedRoles' | string;
/** The roles to assign to the groups (limit of 100 roles per group). */
/** The roles to assign to the group (limit of 100 roles per group). */
value: Array<GroupPatchAssignedRolesRefIDs> | Array<any>;

@@ -102,4 +102,5 @@ [key: string]: any;

export type GroupPostSchema = {
/** The roles to assign to the group (limit of 100 roles per group). */
assignedRoles?: Array<GroupPostSchemaAssignedRolesRefIDs> | Array<any>;
/** The name of the group.
/** The name of the group (maximum length of 256 characters).
@example "Development" */

@@ -165,5 +166,5 @@ name: string;

/** A JSON Pointer. */
path: '/autoCreateGroups' | '/syncIdpGroups' | '/systemGroups/{id}/enabled' | '/systemGroups/{id}/assignedRoles' | string;
path: '/autoCreateGroups' | '/syncIdpGroups' | '/systemGroups/{id}/assignedRoles' | string;
/** The value to be used for this operation. */
value: boolean | Array<SettingsPatchAssignedRolesRefIDs>;
value: boolean | Array<SettingsPatchAssignedRolesRefIDs> | Array<any>;
[key: string]: any;

@@ -170,0 +171,0 @@ };

@@ -70,3 +70,2 @@ /**

@param id - The identity provider ID.
@param QLIK-IDP-POPTS-MATCH - A unique string representing a hash that should map to an IdP's hash representation of the current configuration being tested.
@param data - Attributes that the user wants to patially update for an identity provider resource.

@@ -73,0 +72,0 @@ */

@@ -78,3 +78,2 @@ import Auth from "../auth/auth.js";

@param id - The identity provider ID.
@param QLIK-IDP-POPTS-MATCH - A unique string representing a hash that should map to an IdP's hash representation of the current configuration being tested.
@param data - Attributes that the user wants to patially update for an identity provider resource.

@@ -81,0 +80,0 @@ */

@@ -31,4 +31,5 @@ /**

@param description -
@param full - States if a collection has reached its items limit or not
@param id - The collection's unique identifier.
@param itemCount - The number of items that have been added to the collection.
@param itemCount - The number of items that have been added to the collection that the user has access to.
@param links -

@@ -38,3 +39,3 @@ @param meta - Collection metadata and computed fields.

@param tenantId - The ID of the tenant that owns the collection. This property is populated by using JWT.
@param type - The collection's type.
@param type -
@param updatedAt - The RFC3339 datetime when the collection was last updated.

@@ -49,2 +50,3 @@ @param updaterId - The ID of the user who last updated the collection. This property is only populated if the JWT contains a userId.

description?: string;
full?: boolean;
id: string;

@@ -56,10 +58,11 @@ itemCount: number;

tenantId: string;
type: 'public' | 'private' | 'favorite' | string;
type: 'private' | 'public' | 'favorite' | 'publicgoverned' | string;
updatedAt: string;
updaterId?: string;
[key: string]: any;
constructor({ createdAt, creatorId, description, id, itemCount, links, meta, name, tenantId, type, updatedAt, updaterId, ...rest }: {
constructor({ createdAt, creatorId, description, full, id, itemCount, links, meta, name, tenantId, type, updatedAt, updaterId, ...rest }: {
createdAt: string;
creatorId?: string;
description?: string;
full?: boolean;
id: string;

@@ -71,3 +74,3 @@ itemCount: number;

tenantId: string;
type: 'public' | 'private' | 'favorite' | string;
type: 'private' | 'public' | 'favorite' | 'publicgoverned' | string;
updatedAt: string;

@@ -207,3 +210,3 @@ updaterId?: string;

sort?: '+createdAt' | '-createdAt' | '+name' | '-name' | '+updatedAt' | '-updatedAt';
type?: 'public' | 'private';
type?: 'private' | 'public' | 'publicgoverned';
}): Promise<ListableResource<CollectionResultResponseBody>>;

@@ -271,3 +274,11 @@ /** Finds and returns the published items for a given item.

}
export type ItemsSettingsPatch = {
export type ItemsSettingsPatch = Array<ItemsSettingsPatchElement>;
export type ItemsSettingsPatchElement = {
/** The operation to be performed. Only "replace" is supported. */
op: 'replace' | string;
/** Field of Settings to be patched (updated). */
path: '/usageMetricsEnabled' | string;
/** The value to be used within the operations.
*/
value: boolean;
[key: string]: any;

@@ -274,0 +285,0 @@ };

@@ -28,2 +28,3 @@ import Auth from "../auth/auth.js";

description,
full,
id,

@@ -44,2 +45,3 @@ itemCount,

this.description = description;
this.full = full;
this.id = id;

@@ -46,0 +48,0 @@ this.itemCount = itemCount;

@@ -172,3 +172,3 @@ /**

*/
add(data: AssignmentsActionsAddRequest): Promise<AssignmentsActionsAddResponse>;
addAssignments(data: AssignmentsActionsAddRequest): Promise<AssignmentsActionsAddResponse>;
/**

@@ -179,3 +179,3 @@ Removes license access for the given users

*/
delete(data: AssignmentsActionsDeleteRequest): Promise<AssignmentsActionsDeleteResponse>;
deleteAssignments(data: AssignmentsActionsDeleteRequest): Promise<AssignmentsActionsDeleteResponse>;
/**

@@ -186,3 +186,3 @@ Updates license access for the given users

*/
update(data: AssignmentsActionsUpdateRequest): Promise<AssignmentsActionsUpdateResponse>;
updateAssignments(data: AssignmentsActionsUpdateRequest): Promise<AssignmentsActionsUpdateResponse>;
/**

@@ -189,0 +189,0 @@ Retrieves assignments for the current tenant

@@ -13,3 +13,3 @@ import Auth from "../auth/auth.js";

*/
async add(data) {
async addAssignments(data) {
const response = await this.auth.rest(

@@ -29,3 +29,3 @@ "/licenses/assignments/actions/add",

*/
async delete(data) {
async deleteAssignments(data) {
const response = await this.auth.rest(

@@ -45,3 +45,3 @@ "/licenses/assignments/actions/delete",

*/
async update(data) {
async updateAssignments(data) {
const response = await this.auth.rest(

@@ -48,0 +48,0 @@ "/licenses/assignments/actions/update",

@@ -261,3 +261,2 @@ /**

@param qlik-web-integration-id - This header is only required for external clients or mashups for QCS, this value of this property should be the id of the web integration set up for the external client/mashup
@param data -

@@ -264,0 +263,0 @@ */

@@ -11,3 +11,2 @@ import Auth from "../auth/auth.js";

@param qlik-web-integration-id - This header is only required for external clients or mashups for QCS, this value of this property should be the id of the web integration set up for the external client/mashup
@param data -

@@ -14,0 +13,0 @@ */

@@ -20,3 +20,3 @@ /**

@param links -
@param log - The log describing the result of the reload request.
@param log - The log describing the result of the latest reload execution from the request.
@param partial - The boolean value used to present the reload is partial or not

@@ -23,0 +23,0 @@ @param startTime - The time the reload job was consumed from the queue.

@@ -172,3 +172,14 @@ /**

};
export type SpacePatch = {
export type SpacePatch = Array<SpacePatchElement>;
export type SpacePatchElement = {
/** The operation to be performed. */
op: 'replace' | string;
/** Field of space to be patched (updated). */
path: '/name' | '/ownerId' | '/description' | string;
/** The value to be used within the operations.
- name: The name (string) of space of maxLength 256 of pattern: ^[^\"\*\?\\/\|\\\:]+$
- description: The description (string) of the space. Personal spaces do not have a description.
- ownerId: The user ID in uid format (string) of the space owner.
*/
value: string;
[key: string]: any;

@@ -175,0 +186,0 @@ };

import Auth from "../auth/auth.js";
import { getMimeType } from "../utils/utils.js";
class Theme {

@@ -101,3 +102,3 @@ constructor({

if (file !== void 0) {
formData.append("file", new Blob([file], { type: "application/octet-stream" }));
formData.append("file", new Blob([file], { type: getMimeType(file) }));
}

@@ -180,3 +181,3 @@ if (data !== void 0) {

if (file !== void 0) {
formData.append("file", new Blob([file], { type: "application/octet-stream" }));
formData.append("file", new Blob([file], { type: getMimeType(file) }));
}

@@ -183,0 +184,0 @@ if (data !== void 0) {

@@ -96,3 +96,3 @@ /**

*/
sendTestEmail(data: Email): Promise<SmtpResult>;
sendTestEmailEmailConfig(data: Email): Promise<SmtpResult>;
/**

@@ -102,3 +102,3 @@ Returns the isValid value for the email configuration for the tenant. Will return false if no email configuration exists.

*/
validate(): Promise<SmtpCheck>;
validateEmailConfig(): Promise<SmtpCheck>;
/**

@@ -108,3 +108,3 @@ Verifies connection to email server for tenant provided via JWT

*/
verifyConnection(): Promise<SmtpResult>;
verifyConnectionEmailConfig(): Promise<SmtpResult>;
/**

@@ -111,0 +111,0 @@ Deletes email configuration for a given tenant id (retrieved from JWT).

@@ -12,3 +12,3 @@ import Auth from "../auth/auth.js";

*/
async sendTestEmail(data) {
async sendTestEmailEmailConfig(data) {
const response = await this.auth.rest(

@@ -27,3 +27,3 @@ "/transports/email-config/actions/send-test-email",

*/
async validate() {
async validateEmailConfig() {
const response = await this.auth.rest(

@@ -41,3 +41,3 @@ "/transports/email-config/actions/validate",

*/
async verifyConnection() {
async verifyConnectionEmailConfig() {
const response = await this.auth.rest(

@@ -44,0 +44,0 @@ "/transports/email-config/actions/verify-connection",

@@ -40,3 +40,3 @@ /**

/** The value to be used for this operation. */
value: string | boolean | Array<any> | Array<JSONPatchAssignedRolesRefIDs>;
value: string | boolean | Array<any> | Array<JSONPatchAssignedRolesRefIDs> | Array<any>;
[key: string]: any;

@@ -199,4 +199,4 @@ };

export type UserPostSchema = {
/** An array of role reference identifiers. */
assignedRoles?: Array<UserPostSchemaAssignedRolesRefIDs>;
/** The roles to assign to the user. */
assignedRoles?: Array<UserPostSchemaAssignedRolesRefIDs> | Array<any>;
/** The email address for the user. This is a required field when inviting a user. */

@@ -277,4 +277,7 @@ email?: string;

@param userId - The user's unique identifier
@param fields - A comma-delimited string of the requested fields per entity. If the 'links' value is omitted, then the entity HATEOAS link will also be omitted.
*/
get(userId: string): Promise<User>;
get(userId: string, queryParams?: {
fields?: string;
}): Promise<User>;
/** Returns a list of users using cursor-based pagination.

@@ -318,2 +321,3 @@ List users

@param sort - The field to sort by, with +/- prefix indicating sort order
@param totalResults - Whether to return a total match count in the result. Defaults to false. It will trigger an extra DB query to count, reducing the efficiency of the endpoint.
@param email - The email to filter by. Deprecated. Use the new `filter` parameter to provide an advanced query filter.

@@ -336,2 +340,3 @@ @param endingBefore - Get users with IDs that are lower than the target user ID. Cannot be used in conjunction with startingAfter. Deprecated. Use `prev` instead.

sort?: 'name' | '+name' | '-name';
totalResults?: boolean;
email?: string;

@@ -338,0 +343,0 @@ endingBefore?: string;

@@ -174,6 +174,7 @@ import Auth from "../auth/auth.js";

@param userId - The user's unique identifier
@param fields - A comma-delimited string of the requested fields per entity. If the 'links' value is omitted, then the entity HATEOAS link will also be omitted.
*/
async get(userId) {
async get(userId, queryParams = {}) {
const response = await this.auth.rest(
"/users/{userId}".replace("{userId}", userId),
`${"/users/{userId}".replace("{userId}", userId)}?${new URLSearchParams(Object.entries(queryParams).filter(([, v]) => v !== void 0).map(([k, v]) => [k, v.toString()])).toString()}`,
{

@@ -224,2 +225,3 @@ method: "GET"

@param sort - The field to sort by, with +/- prefix indicating sort order
@param totalResults - Whether to return a total match count in the result. Defaults to false. It will trigger an extra DB query to count, reducing the efficiency of the endpoint.
@param email - The email to filter by. Deprecated. Use the new `filter` parameter to provide an advanced query filter.

@@ -226,0 +228,0 @@ @param endingBefore - Get users with IDs that are lower than the target user ID. Cannot be used in conjunction with startingAfter. Deprecated. Use `prev` instead.

@@ -117,3 +117,3 @@ /**

*/
resend(deliveryId: string): Promise<Delivery>;
resendDelivery(deliveryId: string): Promise<Delivery>;
/**

@@ -124,3 +124,3 @@ Returns details for a specific delivery

*/
getDeliverie(deliveryId: string): Promise<Delivery>;
getDelivery(deliveryId: string): Promise<Delivery>;
/**

@@ -127,0 +127,0 @@ Returns deliveries for a specific webhook

@@ -53,3 +53,3 @@ import Auth from "../auth/auth.js";

*/
async resend(deliveryId) {
async resendDelivery(deliveryId) {
const response = await this.auth.rest(

@@ -68,3 +68,3 @@ "/webhooks/{id}/deliveries/{deliveryId}/actions/resend".replace("{deliveryId}", deliveryId).replace("{id}", this.id ?? ""),

*/
async getDeliverie(deliveryId) {
async getDelivery(deliveryId) {
const response = await this.auth.rest(

@@ -71,0 +71,0 @@ "/webhooks/{id}/deliveries/{deliveryId}".replace("{deliveryId}", deliveryId).replace("{id}", this.id ?? ""),

@@ -115,3 +115,3 @@ // src/errors.ts

}
const version = "0.23.1";
const version = "0.24.0";
const osName = false ? process?.platform : "";

@@ -118,0 +118,0 @@ const anyBody = init?.body;

@@ -5,2 +5,3 @@ import { ApiKeys } from './apis/Api_Keys.js';

import { Automations } from './apis/Automations.js';
import { Brands } from './apis/Brands.js';
import { Collections } from './apis/Collections.js';

@@ -22,2 +23,3 @@ import { CspOrigins } from './apis/Csp_Origins.js';

import { Spaces } from './apis/Spaces.js';
import { Tenants } from './apis/Tenants.js';
import { Themes } from './apis/Themes.js';

@@ -35,2 +37,3 @@ import { Transports } from './apis/Transports.js';

export { Automations } from './apis/Automations.js';
export { Brands } from './apis/Brands.js';
export { Collections } from './apis/Collections.js';

@@ -53,2 +56,3 @@ export { CspOrigins } from './apis/Csp_Origins.js';

export { Spaces } from './apis/Spaces.js';
export { Tenants } from './apis/Tenants.js';
export { Themes } from './apis/Themes.js';

@@ -112,2 +116,3 @@ export { Transports } from './apis/Transports.js';

automations: Automations;
brands: Brands;
collections: Collections;

@@ -129,2 +134,3 @@ cspOrigins: CspOrigins;

spaces: Spaces;
tenants: Tenants;
themes: Themes;

@@ -131,0 +137,0 @@ transports: Transports;

@@ -5,2 +5,3 @@ import { ApiKeys } from "./apis/Api_Keys.js";

import { Automations } from "./apis/Automations.js";
import { Brands } from "./apis/Brands.js";
import { Collections } from "./apis/Collections.js";

@@ -22,2 +23,3 @@ import { CspOrigins } from "./apis/Csp_Origins.js";

import { Spaces } from "./apis/Spaces.js";
import { Tenants } from "./apis/Tenants.js";
import { Themes } from "./apis/Themes.js";

@@ -33,2 +35,3 @@ import { Transports } from "./apis/Transports.js";

import { Automations as Automations2 } from "./apis/Automations.js";
import { Brands as Brands2 } from "./apis/Brands.js";
import { Collections as Collections2 } from "./apis/Collections.js";

@@ -51,2 +54,3 @@ import { CspOrigins as CspOrigins2 } from "./apis/Csp_Origins.js";

import { Spaces as Spaces2 } from "./apis/Spaces.js";
import { Tenants as Tenants2 } from "./apis/Tenants.js";
import { Themes as Themes2 } from "./apis/Themes.js";

@@ -75,2 +79,3 @@ import { Transports as Transports2 } from "./apis/Transports.js";

this.automations = new Automations(this.auth);
this.brands = new Brands(this.auth);
this.collections = new Collections(this.auth);

@@ -92,2 +97,3 @@ this.cspOrigins = new CspOrigins(this.auth);

this.spaces = new Spaces(this.auth);
this.tenants = new Tenants(this.auth);
this.themes = new Themes(this.auth);

@@ -108,2 +114,3 @@ this.transports = new Transports(this.auth);

Automations2 as Automations,
Brands2 as Brands,
Collections2 as Collections,

@@ -127,2 +134,3 @@ ConnectionErrorMsg,

Spaces2 as Spaces,
Tenants2 as Tenants,
Themes2 as Themes,

@@ -129,0 +137,0 @@ Transports2 as Transports,

@@ -0,1 +1,2 @@

/// <reference types="node" />
import { RestClientInstance } from '../auth/restClient.js';

@@ -43,1 +44,6 @@ import { Config } from '../types/types.js';

export declare const generateWebsocketUrl: (appId: string, rest: RestClientInstance, config: Config, appendAccessToken?: any) => Promise<string>;
/**
* get jpg or png mime-type, defaults to 'application/octet-stream'
* @param buffer
*/
export declare const getMimeType: (buffer: Buffer) => string;

@@ -149,5 +149,19 @@ import { CustomError, CustomErrorMsg } from "../errors.js";

};
const getMimeType = (buffer) => {
const firstBytes = buffer.slice(0, 4);
const signature = firstBytes.toString("hex").toUpperCase();
const isPng = signature === "89504E47";
const isJpg = signature === "FFD8FFDB" || signature === "FFD8FFE0" || signature === "FFD8FFE1";
if (isPng) {
return "image/png";
}
if (isJpg) {
return "image/jpeg";
}
return "application/octet-stream";
};
export {
generateRandomString,
generateWebsocketUrl,
getMimeType,
getUrl,

@@ -154,0 +168,0 @@ isBrowser,

@@ -155,3 +155,2 @@ import Auth from "../auth/auth.js";

@param accept-language - language specified as an ISO-639-1 code. Defaults to 'en' (English).
@param data - Request payload can be of two types, using natural language query or consist of fields or master items and optional target analysis.

@@ -199,3 +198,3 @@ In below examples, consider sales as a master item and product as field, so to get recommendations using sales and product,

*/
async recommend(data) {
async recommendInsightAnalyses(data) {
const response = await this.auth.rest(

@@ -227,3 +226,2 @@ "/apps/{appId}/insight-analyses/actions/recommend".replace("{appId}", this.attributes?.id ?? ""),

@param accept-language - language specified as an ISO-639-1 code. Defaults to 'en' (English).
*/

@@ -322,3 +320,3 @@ async getInsightAnalyses() {

*/
async changeOwner(objectId, data) {
async changeOwnerObject(objectId, data) {
const response = await this.auth.rest(

@@ -325,0 +323,0 @@ "/apps/{appId}/objects/{objectId}/actions/change-owner".replace("{appId}", this.attributes?.id ?? "").replace("{objectId}", objectId),

@@ -66,3 +66,3 @@ import Auth from "../auth/auth.js";

*/
async gets(id) {
async get(id) {
const response = await this.auth.rest(

@@ -69,0 +69,0 @@ "/audits/{id}".replace("{id}", id),

@@ -110,3 +110,3 @@ import Auth from "../auth/auth.js";

*/
async export(runId) {
async exportRun(runId) {
const response = await this.auth.rest(

@@ -125,3 +125,3 @@ "/automations/{id}/runs/{runId}/actions/export".replace("{id}", this.id ?? "").replace("{runId}", runId),

*/
async retry(runId) {
async retryRun(runId) {
await this.auth.rest(

@@ -139,3 +139,3 @@ "/automations/{id}/runs/{runId}/actions/retry".replace("{id}", this.id ?? "").replace("{runId}", runId),

*/
async stop(runId) {
async stopRun(runId) {
await this.auth.rest(

@@ -142,0 +142,0 @@ "/automations/{id}/runs/{runId}/actions/stop".replace("{id}", this.id ?? "").replace("{runId}", runId),

@@ -8,2 +8,3 @@ import Auth from "../auth/auth.js";

description,
full,
id,

@@ -24,2 +25,3 @@ itemCount,

this.description = description;
this.full = full;
this.id = id;

@@ -160,3 +162,3 @@ this.itemCount = itemCount;

*/
async getFavorite() {
async getFavorites() {
const response = await this.auth.rest(

@@ -205,3 +207,4 @@ "/collections/favorites",

@param type - The case-sensitive string used to search for a collection by type.
@param type - The case-sensitive string used to filter for a collection by type.
@param types - A commaseparated case-sensitive string used to filter by multiple types.
*/

@@ -208,0 +211,0 @@ async getCollections(queryParams = {}) {

import Auth from "../auth/auth.js";
import ListableResource from "../listable.js";
import { getMimeType } from "../utils/utils.js";
class DataFileUploadResponse {

@@ -102,3 +103,3 @@ constructor({

if (File !== void 0) {
formData.append("File", new Blob([File], { type: "application/octet-stream" }));
formData.append("File", new Blob([File], { type: getMimeType(File) }));
}

@@ -217,3 +218,3 @@ const Json = {};

*/
async getQuota() {
async getQuotas() {
const response = await this.auth.rest(

@@ -295,3 +296,3 @@ "/data-files/quotas",

if (File !== void 0) {
formData.append("File", new Blob([File], { type: "application/octet-stream" }));
formData.append("File", new Blob([File], { type: getMimeType(File) }));
}

@@ -298,0 +299,0 @@ const Json = {};

import Auth from "../auth/auth.js";
import { getMimeType } from "../utils/utils.js";
class Extension {

@@ -18,2 +19,3 @@ constructor({

license,
loadpath,
name,

@@ -51,2 +53,3 @@ preview,

this.license = license;
this.loadpath = loadpath;
this.name = name;

@@ -117,3 +120,3 @@ this.preview = preview;

if (file !== void 0) {
formData.append("file", new Blob([file], { type: "application/octet-stream" }));
formData.append("file", new Blob([file], { type: getMimeType(file) }));
}

@@ -201,3 +204,3 @@ if (data !== void 0) {

if (file !== void 0) {
formData.append("file", new Blob([file], { type: "application/octet-stream" }));
formData.append("file", new Blob([file], { type: getMimeType(file) }));
}

@@ -204,0 +207,0 @@ if (data !== void 0) {

@@ -78,3 +78,2 @@ import Auth from "../auth/auth.js";

@param id - The identity provider ID.
@param QLIK-IDP-POPTS-MATCH - A unique string representing a hash that should map to an IdP's hash representation of the current configuration being tested.
@param data - Attributes that the user wants to patially update for an identity provider resource.

@@ -81,0 +80,0 @@ */

@@ -28,2 +28,3 @@ import Auth from "../auth/auth.js";

description,
full,
id,

@@ -44,2 +45,3 @@ itemCount,

this.description = description;
this.full = full;
this.id = id;

@@ -46,0 +48,0 @@ this.itemCount = itemCount;

@@ -13,3 +13,3 @@ import Auth from "../auth/auth.js";

*/
async add(data) {
async addAssignments(data) {
const response = await this.auth.rest(

@@ -29,3 +29,3 @@ "/licenses/assignments/actions/add",

*/
async delete(data) {
async deleteAssignments(data) {
const response = await this.auth.rest(

@@ -45,3 +45,3 @@ "/licenses/assignments/actions/delete",

*/
async update(data) {
async updateAssignments(data) {
const response = await this.auth.rest(

@@ -48,0 +48,0 @@ "/licenses/assignments/actions/update",

@@ -11,3 +11,2 @@ import Auth from "../auth/auth.js";

@param qlik-web-integration-id - This header is only required for external clients or mashups for QCS, this value of this property should be the id of the web integration set up for the external client/mashup
@param data -

@@ -14,0 +13,0 @@ */

import Auth from "../auth/auth.js";
import { getMimeType } from "../utils/utils.js";
class Theme {

@@ -101,3 +102,3 @@ constructor({

if (file !== void 0) {
formData.append("file", new Blob([file], { type: "application/octet-stream" }));
formData.append("file", new Blob([file], { type: getMimeType(file) }));
}

@@ -180,3 +181,3 @@ if (data !== void 0) {

if (file !== void 0) {
formData.append("file", new Blob([file], { type: "application/octet-stream" }));
formData.append("file", new Blob([file], { type: getMimeType(file) }));
}

@@ -183,0 +184,0 @@ if (data !== void 0) {

@@ -12,3 +12,3 @@ import Auth from "../auth/auth.js";

*/
async sendTestEmail(data) {
async sendTestEmailEmailConfig(data) {
const response = await this.auth.rest(

@@ -27,3 +27,3 @@ "/transports/email-config/actions/send-test-email",

*/
async validate() {
async validateEmailConfig() {
const response = await this.auth.rest(

@@ -41,3 +41,3 @@ "/transports/email-config/actions/validate",

*/
async verifyConnection() {
async verifyConnectionEmailConfig() {
const response = await this.auth.rest(

@@ -44,0 +44,0 @@ "/transports/email-config/actions/verify-connection",

@@ -174,6 +174,7 @@ import Auth from "../auth/auth.js";

@param userId - The user's unique identifier
@param fields - A comma-delimited string of the requested fields per entity. If the 'links' value is omitted, then the entity HATEOAS link will also be omitted.
*/
async get(userId) {
async get(userId, queryParams = {}) {
const response = await this.auth.rest(
"/users/{userId}".replace("{userId}", userId),
`${"/users/{userId}".replace("{userId}", userId)}?${new URLSearchParams(Object.entries(queryParams).filter(([, v]) => v !== void 0).map(([k, v]) => [k, v.toString()])).toString()}`,
{

@@ -224,2 +225,3 @@ method: "GET"

@param sort - The field to sort by, with +/- prefix indicating sort order
@param totalResults - Whether to return a total match count in the result. Defaults to false. It will trigger an extra DB query to count, reducing the efficiency of the endpoint.
@param email - The email to filter by. Deprecated. Use the new `filter` parameter to provide an advanced query filter.

@@ -226,0 +228,0 @@ @param endingBefore - Get users with IDs that are lower than the target user ID. Cannot be used in conjunction with startingAfter. Deprecated. Use `prev` instead.

@@ -53,3 +53,3 @@ import Auth from "../auth/auth.js";

*/
async resend(deliveryId) {
async resendDelivery(deliveryId) {
const response = await this.auth.rest(

@@ -68,3 +68,3 @@ "/webhooks/{id}/deliveries/{deliveryId}/actions/resend".replace("{deliveryId}", deliveryId).replace("{id}", this.id ?? ""),

*/
async getDeliverie(deliveryId) {
async getDelivery(deliveryId) {
const response = await this.auth.rest(

@@ -71,0 +71,0 @@ "/webhooks/{id}/deliveries/{deliveryId}".replace("{deliveryId}", deliveryId).replace("{id}", this.id ?? ""),

@@ -87,3 +87,3 @@

}
const version = "0.23.1";
const version = "0.24.0";
const osName = true ? process?.platform : "";

@@ -90,0 +90,0 @@ const anyBody = init?.body;

@@ -5,2 +5,3 @@ import { ApiKeys } from "./apis/Api_Keys.js";

import { Automations } from "./apis/Automations.js";
import { Brands } from "./apis/Brands.js";
import { Collections } from "./apis/Collections.js";

@@ -22,2 +23,3 @@ import { CspOrigins } from "./apis/Csp_Origins.js";

import { Spaces } from "./apis/Spaces.js";
import { Tenants } from "./apis/Tenants.js";
import { Themes } from "./apis/Themes.js";

@@ -33,2 +35,3 @@ import { Transports } from "./apis/Transports.js";

import { Automations as Automations2 } from "./apis/Automations.js";
import { Brands as Brands2 } from "./apis/Brands.js";
import { Collections as Collections2 } from "./apis/Collections.js";

@@ -51,2 +54,3 @@ import { CspOrigins as CspOrigins2 } from "./apis/Csp_Origins.js";

import { Spaces as Spaces2 } from "./apis/Spaces.js";
import { Tenants as Tenants2 } from "./apis/Tenants.js";
import { Themes as Themes2 } from "./apis/Themes.js";

@@ -75,2 +79,3 @@ import { Transports as Transports2 } from "./apis/Transports.js";

this.automations = new Automations(this.auth);
this.brands = new Brands(this.auth);
this.collections = new Collections(this.auth);

@@ -92,2 +97,3 @@ this.cspOrigins = new CspOrigins(this.auth);

this.spaces = new Spaces(this.auth);
this.tenants = new Tenants(this.auth);
this.themes = new Themes(this.auth);

@@ -108,2 +114,3 @@ this.transports = new Transports(this.auth);

Automations2 as Automations,
Brands2 as Brands,
Collections2 as Collections,

@@ -127,2 +134,3 @@ ConnectionErrorMsg,

Spaces2 as Spaces,
Tenants2 as Tenants,
Themes2 as Themes,

@@ -129,0 +137,0 @@ Transports2 as Transports,

@@ -149,5 +149,19 @@ import { CustomError, CustomErrorMsg } from "../errors.js";

};
const getMimeType = (buffer) => {
const firstBytes = buffer.slice(0, 4);
const signature = firstBytes.toString("hex").toUpperCase();
const isPng = signature === "89504E47";
const isJpg = signature === "FFD8FFDB" || signature === "FFD8FFE0" || signature === "FFD8FFE1";
if (isPng) {
return "image/png";
}
if (isJpg) {
return "image/jpeg";
}
return "application/octet-stream";
};
export {
generateRandomString,
generateWebsocketUrl,
getMimeType,
getUrl,

@@ -154,0 +168,0 @@ isBrowser,

{
"name": "@qlik/sdk",
"version": "0.23.1",
"version": "0.24.0",
"description": "The Qlik Platform SDKs are a suite of tools, libraries, and documentation that simplifies building high-quality and performant applications on top of the Qlik Sense Platform.",

@@ -52,2 +52,9 @@ "types": "dist/esm/qlik.d.ts",

},
"./brands": {
"node": {
"import": "./dist/mjs/apis/Brands.js",
"require": "./dist/cjs/apis/Brands.js"
},
"default": "./dist/esm/apis/Brands.js"
},
"./collections": {

@@ -172,2 +179,9 @@ "node": {

},
"./tenants": {
"node": {
"import": "./dist/mjs/apis/Tenants.js",
"require": "./dist/cjs/apis/Tenants.js"
},
"default": "./dist/esm/apis/Tenants.js"
},
"./themes": {

@@ -260,5 +274,5 @@ "node": {

"dependencies": {
"@types/jsonwebtoken": "9.0.1",
"@types/jsonwebtoken": "9.0.2",
"enigma.js": "2.11.0",
"jsonwebtoken": "9.0.0",
"jsonwebtoken": "9.0.1",
"ws": "8.13.0"

@@ -270,33 +284,33 @@ },

"devDependencies": {
"@babel/core": "7.21.8",
"@babel/core": "7.22.10",
"@babel/preset-env": "7.21.5",
"@babel/preset-typescript": "7.21.5",
"@qlik-trial/spectacular": "0.25.1",
"@types/jest": "29.5.1",
"@babel/preset-typescript": "7.22.5",
"@qlik-trial/spectacular": "0.28.0",
"@types/jest": "29.5.3",
"@types/node": "20.3.0",
"@types/ws": "8.5.5",
"@typescript-eslint/eslint-plugin": "5.59.7",
"@typescript-eslint/parser": "5.59.11",
"@typescript-eslint/eslint-plugin": "5.60.1",
"@typescript-eslint/parser": "6.1.0",
"cross-env": "7.0.3",
"cypress": "12.13.0",
"dotenv": "16.0.3",
"esbuild": "0.18.1",
"eslint": "8.43.0",
"cypress": "12.17.2",
"dotenv": "16.3.1",
"esbuild": "0.19.2",
"eslint": "8.46.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-config-airbnb-typescript": "17.0.0",
"eslint-plugin-cypress": "2.12.1",
"eslint-config-airbnb-typescript": "17.1.0",
"eslint-plugin-cypress": "2.13.3",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-tsdoc": "0.2.17",
"eslint-plugin-unused-imports": "2.0.0",
"jest": "29.5.0",
"jest-environment-jsdom": "29.5.0",
"eslint-plugin-unused-imports": "3.0.0",
"jest": "29.6.2",
"jest-environment-jsdom": "29.6.2",
"jszip": "3.10.1",
"start-server-and-test": "1.15.4",
"ts-jest": "29.1.0",
"start-server-and-test": "2.0.0",
"ts-jest": "29.1.1",
"ts-jest-resolver": "2.0.1",
"ts-node": "10.9.1",
"typedoc": "0.24.7",
"typedoc": "0.24.8",
"typedoc-plugin-markdown": "3.15.3",
"typedoc-plugin-rename-defaults": "0.6.5",
"typescript": "5.1.3"
"typescript": "5.1.6"
},

@@ -303,0 +317,0 @@ "engines": {

{
"name": "@qlik/sdk",
"version": "0.23.1",
"version": "0.24.0",
"description": "The Qlik Platform SDKs are a suite of tools, libraries, and documentation that simplifies building high-quality and performant applications on top of the Qlik Sense Platform.",

@@ -52,2 +52,9 @@ "types": "dist/esm/qlik.d.ts",

},
"./brands": {
"node": {
"import": "./dist/mjs/apis/Brands.js",
"require": "./dist/cjs/apis/Brands.js"
},
"default": "./dist/esm/apis/Brands.js"
},
"./collections": {

@@ -172,2 +179,9 @@ "node": {

},
"./tenants": {
"node": {
"import": "./dist/mjs/apis/Tenants.js",
"require": "./dist/cjs/apis/Tenants.js"
},
"default": "./dist/esm/apis/Tenants.js"
},
"./themes": {

@@ -260,5 +274,5 @@ "node": {

"dependencies": {
"@types/jsonwebtoken": "9.0.1",
"@types/jsonwebtoken": "9.0.2",
"enigma.js": "2.11.0",
"jsonwebtoken": "9.0.0",
"jsonwebtoken": "9.0.1",
"ws": "8.13.0"

@@ -270,33 +284,33 @@ },

"devDependencies": {
"@babel/core": "7.21.8",
"@babel/core": "7.22.10",
"@babel/preset-env": "7.21.5",
"@babel/preset-typescript": "7.21.5",
"@qlik-trial/spectacular": "0.25.1",
"@types/jest": "29.5.1",
"@babel/preset-typescript": "7.22.5",
"@qlik-trial/spectacular": "0.28.0",
"@types/jest": "29.5.3",
"@types/node": "20.3.0",
"@types/ws": "8.5.5",
"@typescript-eslint/eslint-plugin": "5.59.7",
"@typescript-eslint/parser": "5.59.11",
"@typescript-eslint/eslint-plugin": "5.60.1",
"@typescript-eslint/parser": "6.1.0",
"cross-env": "7.0.3",
"cypress": "12.13.0",
"dotenv": "16.0.3",
"esbuild": "0.18.1",
"eslint": "8.43.0",
"cypress": "12.17.2",
"dotenv": "16.3.1",
"esbuild": "0.19.2",
"eslint": "8.46.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-config-airbnb-typescript": "17.0.0",
"eslint-plugin-cypress": "2.12.1",
"eslint-config-airbnb-typescript": "17.1.0",
"eslint-plugin-cypress": "2.13.3",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-tsdoc": "0.2.17",
"eslint-plugin-unused-imports": "2.0.0",
"jest": "29.5.0",
"jest-environment-jsdom": "29.5.0",
"eslint-plugin-unused-imports": "3.0.0",
"jest": "29.6.2",
"jest-environment-jsdom": "29.6.2",
"jszip": "3.10.1",
"start-server-and-test": "1.15.4",
"ts-jest": "29.1.0",
"start-server-and-test": "2.0.0",
"ts-jest": "29.1.1",
"ts-jest-resolver": "2.0.1",
"ts-node": "10.9.1",
"typedoc": "0.24.7",
"typedoc": "0.24.8",
"typedoc-plugin-markdown": "3.15.3",
"typedoc-plugin-rename-defaults": "0.6.5",
"typescript": "5.1.3"
"typescript": "5.1.6"
},

@@ -306,2 +320,2 @@ "engines": {

}
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc