Skip to content

Commit

Permalink
feat: qlik api updates (#114)
Browse files Browse the repository at this point in the history
Co-authored-by: qlikossbuild <open_source@qlik.com>
  • Loading branch information
qlikossbuild and qlikossbuild authored Mar 3, 2025
1 parent 8baaefd commit 4ff1dec
Show file tree
Hide file tree
Showing 26 changed files with 1,356 additions and 72 deletions.
20 changes: 20 additions & 0 deletions api-keys.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,27 @@ type ApiKeysConfig = {
/** The expiry of the scim `externalClient` token in ISO8601 duration format, e.g. `P365D` for 365 days. Used during the creation of an `externalClient` API key for configuring a SCIM compatible Identity Provider. */
scim_externalClient_expiry?: string;
};
/**
* @example
* [
* {
* op: "replace",
* path: "/api_keys_enabled",
* value: true
* }
* ]
*/
type ApiKeysConfigPatchSchema = ApiKeyConfigPatch[];
/**
* @example
* [
* {
* op: "replace",
* path: "/description",
* value: "my new description"
* }
* ]
*/
type ApiKeysPatchSchema = ApiKeyPatch[];
/**
* An error object.
Expand Down
139 changes: 134 additions & 5 deletions apps.d.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion audits.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ type GetAuditsHttpError = {
*/
declare const getArchivedAudits: (query: {
/** Date to be used as filter and criteria during extraction. */
date?: string;
date: string;
}, options?: ApiCallOptions) => Promise<GetArchivedAuditsHttpResponse>;
type GetArchivedAuditsHttpResponse = {
data: GetArchiveResult;
Expand Down
14 changes: 13 additions & 1 deletion automations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@ type UsageObject = {
};
/**
* Retrieves a list of automations
* @example
* getAutomations(
* {
* fields: "lastRun,lastRunStatus,runMode,createdAt,updatedAt"
* }
* )
*
* @param query an object with query parameters
* @throws GetAutomationsHttpError
Expand Down Expand Up @@ -242,7 +248,7 @@ declare const getAutomationsUsageMetrics: (query: {
/** If specified, result will be broken apart for each automation */
breakdownBy?: string;
/** Indicates how the metrics should be filtered */
filter?: string;
filter: string;
}, options?: ApiCallOptions) => Promise<GetAutomationsUsageMetricsHttpResponse>;
type GetAutomationsUsageMetricsHttpResponse = {
data: UsageList;
Expand Down Expand Up @@ -557,6 +563,12 @@ declare function clearCache(): void;
interface AutomationsAPI {
/**
* Retrieves a list of automations
* @example
* getAutomations(
* {
* fields: "lastRun,lastRunStatus,runMode,createdAt,updatedAt"
* }
* )
*
* @param query an object with query parameters
* @throws GetAutomationsHttpError
Expand Down
2 changes: 1 addition & 1 deletion data-assets.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type DataAsset = {
/** The value is automatically set by the application. */
ownerId?: string;
/** A Map of name-value pairs. */
properties?: unknown;
properties?: Record<string, unknown>;
spaceId?: string;
tags?: string[];
technicalDescription?: string;
Expand Down
82 changes: 82 additions & 0 deletions data-connections.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ type PatchRequest = {
};
/**
* Access type allowed on associated data connection
* @example
* "list"
*/
type Privilege = "list" | "update" | "delete" | "read" | "change_owner" | "change_space";
type ResponseErrors = {
Expand All @@ -289,6 +291,25 @@ type TopLevelLink = {
};
/**
* Gets a list of connections
* @example
* getDataConnections(
* {
* dataName: "data",
* extended: false,
* spaceId: "611bcebaeec1203d88211ac4",
* personal: false,
* owner: "928e2a66-01ba-4678-aa32-e74c213896fa",
* ownedByMe: true,
* limit: 30,
* sort: "+qName",
* page: "page=JwAAAAljcmVhdGVkAPfQ-sx0AQAAB19pZABfb93nZcM4SN1M0e8A",
* noDatafiles: true,
* userId: "6K9xjsItDexffolu5vg1oWYkY8x7f-0G",
* caseinsensitive: true,
* locale: "en",
* includeQris: true
* }
* )
*
* @param query an object with query parameters
* @throws GetDataConnectionsHttpError
Expand Down Expand Up @@ -407,6 +428,14 @@ type UpdateDataConnectionsHttpError = {
};
/**
* Deletes the specified data connection by ID (or by name when type=connectionname is set in query)
* @example
* deleteDataConnection(
* "82ee7b44-0c4d-491b-bd38-82640c0430a5",
* {
* type: "connectionname",
* spaceId: "611bcebaeec1203d88211ac4"
* }
* )
*
* @param qID Connection ID
* @param query an object with query parameters
Expand All @@ -430,6 +459,19 @@ type DeleteDataConnectionHttpError = {
};
/**
* Retrieves a connection by connection ID, or by name when the query parameter "type" is set to "connectionname."
* @example
* getDataConnection(
* "82ee7b44-0c4d-491b-bd38-82640c0430a5",
* {
* extended: false,
* type: "connectionname",
* credentialId: "22379dc5-076e-4fec-ae20-5529a8a57dc2",
* byCredentialName: false,
* spaceId: "611bcebaeec1203d88211ac4",
* noCache: false,
* parseConnection: true
* }
* )
*
* @param qID Connection ID
* @param query an object with query parameters
Expand Down Expand Up @@ -514,6 +556,25 @@ declare function clearCache(): void;
interface DataConnectionsAPI {
/**
* Gets a list of connections
* @example
* getDataConnections(
* {
* dataName: "data",
* extended: false,
* spaceId: "611bcebaeec1203d88211ac4",
* personal: false,
* owner: "928e2a66-01ba-4678-aa32-e74c213896fa",
* ownedByMe: true,
* limit: 30,
* sort: "+qName",
* page: "page=JwAAAAljcmVhdGVkAPfQ-sx0AQAAB19pZABfb93nZcM4SN1M0e8A",
* noDatafiles: true,
* userId: "6K9xjsItDexffolu5vg1oWYkY8x7f-0G",
* caseinsensitive: true,
* locale: "en",
* includeQris: true
* }
* )
*
* @param query an object with query parameters
* @throws GetDataConnectionsHttpError
Expand Down Expand Up @@ -549,6 +610,14 @@ interface DataConnectionsAPI {
updateDataConnections: typeof updateDataConnections;
/**
* Deletes the specified data connection by ID (or by name when type=connectionname is set in query)
* @example
* deleteDataConnection(
* "82ee7b44-0c4d-491b-bd38-82640c0430a5",
* {
* type: "connectionname",
* spaceId: "611bcebaeec1203d88211ac4"
* }
* )
*
* @param qID Connection ID
* @param query an object with query parameters
Expand All @@ -557,6 +626,19 @@ interface DataConnectionsAPI {
deleteDataConnection: typeof deleteDataConnection;
/**
* Retrieves a connection by connection ID, or by name when the query parameter "type" is set to "connectionname."
* @example
* getDataConnection(
* "82ee7b44-0c4d-491b-bd38-82640c0430a5",
* {
* extended: false,
* type: "connectionname",
* credentialId: "22379dc5-076e-4fec-ae20-5529a8a57dc2",
* byCredentialName: false,
* spaceId: "611bcebaeec1203d88211ac4",
* noCache: false,
* parseConnection: true
* }
* )
*
* @param qID Connection ID
* @param query an object with query parameters
Expand Down
28 changes: 28 additions & 0 deletions data-credentials.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,13 @@ type FilterOrphanedDataCredentialsHttpError = {
};
/**
* Deletes the specified credential by ID (or by name when type=credentialname is set in query)
* @example
* deleteDataCredential(
* "027d2703-e745-43ec-8876-a2e6ac341700",
* {
* byCredentialName: false
* }
* )
*
* @param qID Credential ID
* @param query an object with query parameters
Expand All @@ -144,6 +151,13 @@ type DeleteDataCredentialHttpError = {
};
/**
* Gets a credential by ID (or by name when bycredentialname=true is set in query)
* @example
* getDataCredential(
* "027d2703-e745-43ec-8876-a2e6ac341700",
* {
* byCredentialName: false
* }
* )
*
* @param qID Credential ID
* @param query an object with query parameters
Expand Down Expand Up @@ -221,6 +235,13 @@ interface DataCredentialsAPI {
filterOrphanedDataCredentials: typeof filterOrphanedDataCredentials;
/**
* Deletes the specified credential by ID (or by name when type=credentialname is set in query)
* @example
* deleteDataCredential(
* "027d2703-e745-43ec-8876-a2e6ac341700",
* {
* byCredentialName: false
* }
* )
*
* @param qID Credential ID
* @param query an object with query parameters
Expand All @@ -229,6 +250,13 @@ interface DataCredentialsAPI {
deleteDataCredential: typeof deleteDataCredential;
/**
* Gets a credential by ID (or by name when bycredentialname=true is set in query)
* @example
* getDataCredential(
* "027d2703-e745-43ec-8876-a2e6ac341700",
* {
* byCredentialName: false
* }
* )
*
* @param qID Credential ID
* @param query an object with query parameters
Expand Down
Loading

0 comments on commit 4ff1dec

Please # to comment.