@qlik/api 1.34.0 → 1.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-keys.d.ts +1 -2
- package/api-keys.js +2 -2
- package/apps.d.ts +1 -2
- package/apps.js +2 -2
- package/assistants.d.ts +1 -2
- package/assistants.js +2 -2
- package/audits.d.ts +1 -2
- package/audits.js +2 -2
- package/auth-types.d.ts +1 -0
- package/auth-types.js +8 -0
- package/auth.d.ts +2 -2
- package/auth.js +2 -2
- package/automation-connections.d.ts +1 -2
- package/automation-connections.js +2 -2
- package/automations.d.ts +14 -4
- package/automations.js +2 -2
- package/automl-deployments.d.ts +1 -2
- package/automl-deployments.js +2 -2
- package/automl-predictions.d.ts +1 -2
- package/automl-predictions.js +2 -2
- package/brands.d.ts +1 -2
- package/brands.js +2 -2
- package/chunks/{M7AINAXZ.js → 3DG4PXND.js} +2 -1
- package/chunks/3Z3VFAGW.js +22 -0
- package/chunks/{4V6T7Y4L.js → 42FGFHJE.js} +2 -1
- package/chunks/{EEE42MLS.js → 43V24OWH.js} +2 -1
- package/chunks/{I2HA7WJB.js → ABAVW76G.js} +4 -18
- package/chunks/{VUYZKBT5.js → DXVNOFWU.js} +4 -3
- package/chunks/{PLVPW5IR.js → GKEDD5LZ.js} +1 -1
- package/chunks/{QZKOA6VR.js → JQBBQWLH.js} +1 -1
- package/chunks/{QAOVZB27.js → L5QSVLDQ.js} +3 -3
- package/chunks/{6WNP7HZQ.js → NPB36P3M.js} +2 -2
- package/chunks/{6C6WMV7V.js → SOQJR5Y3.js} +1 -1
- package/collections.d.ts +1 -2
- package/collections.js +2 -2
- package/conditions.d.ts +1 -2
- package/conditions.js +2 -2
- package/consumption.d.ts +1 -2
- package/consumption.js +2 -2
- package/csp-origins.d.ts +1 -2
- package/csp-origins.js +2 -2
- package/csrf-token.d.ts +1 -2
- package/csrf-token.js +2 -2
- package/data-alerts.d.ts +1 -2
- package/data-alerts.js +2 -2
- package/data-assets.d.ts +1 -2
- package/data-assets.js +2 -2
- package/data-connections.d.ts +1 -2
- package/data-connections.js +2 -2
- package/data-credentials.d.ts +1 -2
- package/data-credentials.js +2 -2
- package/data-files.d.ts +1 -2
- package/data-files.js +2 -2
- package/data-qualities.d.ts +1 -2
- package/data-qualities.js +2 -2
- package/data-sets.d.ts +1 -2
- package/data-sets.js +2 -2
- package/data-sources.d.ts +1 -2
- package/data-sources.js +2 -2
- package/data-stores.d.ts +1 -2
- package/data-stores.js +2 -2
- package/dcaas.d.ts +1 -2
- package/dcaas.js +2 -2
- package/di-projects.d.ts +1 -2
- package/di-projects.js +2 -2
- package/direct-access-agents.d.ts +1 -2
- package/direct-access-agents.js +2 -2
- package/encryption.d.ts +1 -2
- package/encryption.js +2 -2
- package/extensions.d.ts +1 -2
- package/extensions.js +2 -2
- package/glossaries.d.ts +1 -2
- package/glossaries.js +2 -2
- package/groups.d.ts +1 -2
- package/groups.js +2 -2
- package/identity-providers.d.ts +1 -2
- package/identity-providers.js +2 -2
- package/index.d.ts +1 -2
- package/index.js +4 -4
- package/interceptors.d.ts +1 -2
- package/invoke-fetch-types-D62-HKKp.d.ts +374 -0
- package/invoke-fetch-types.d.ts +1 -0
- package/invoke-fetch-types.js +5 -0
- package/items.d.ts +1 -2
- package/items.js +2 -2
- package/knowledgebases.d.ts +1 -2
- package/knowledgebases.js +2 -2
- package/licenses.d.ts +1 -2
- package/licenses.js +2 -2
- package/lineage-graphs.d.ts +1 -2
- package/lineage-graphs.js +2 -2
- package/ml.d.ts +2 -54
- package/ml.js +2 -2
- package/notes.d.ts +1 -2
- package/notes.js +2 -2
- package/notifications.d.ts +1 -2
- package/notifications.js +2 -2
- package/oauth-clients.d.ts +1 -2
- package/oauth-clients.js +2 -2
- package/oauth-tokens.d.ts +1 -2
- package/oauth-tokens.js +2 -2
- package/package.json +1 -1
- package/qix.d.ts +5 -3
- package/qix.js +2 -2
- package/questions.d.ts +1 -2
- package/questions.js +2 -2
- package/quotas.d.ts +1 -2
- package/quotas.js +2 -2
- package/reload-tasks.d.ts +1 -2
- package/reload-tasks.js +2 -2
- package/reloads.d.ts +1 -2
- package/reloads.js +2 -2
- package/report-templates.d.ts +1 -2
- package/report-templates.js +2 -2
- package/reports.d.ts +1 -2
- package/reports.js +2 -2
- package/roles.d.ts +1 -2
- package/roles.js +2 -2
- package/sharing-tasks.d.ts +1 -2
- package/sharing-tasks.js +2 -2
- package/spaces.d.ts +1 -2
- package/spaces.js +2 -2
- package/tasks.d.ts +1 -2
- package/tasks.js +2 -2
- package/temp-contents.d.ts +1 -2
- package/temp-contents.js +2 -2
- package/tenants.d.ts +1 -2
- package/tenants.js +2 -2
- package/themes.d.ts +1 -2
- package/themes.js +2 -2
- package/transports.d.ts +1 -2
- package/transports.js +2 -2
- package/ui-config.d.ts +1 -2
- package/ui-config.js +2 -2
- package/users.d.ts +1 -2
- package/users.js +2 -2
- package/web-integrations.d.ts +1 -2
- package/web-integrations.js +2 -2
- package/web-notifications.d.ts +1 -2
- package/web-notifications.js +2 -2
- package/webhooks.d.ts +1 -2
- package/webhooks.js +2 -2
- package/auth-types-Cj5bM3Yk.d.ts +0 -127
- package/invoke-fetch-types-BYCD4pc9.d.ts +0 -98
package/auth-types-Cj5bM3Yk.d.ts
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
/** Credentials setting for http requests */
|
|
2
|
-
type Credentials = "include" | "same-origin" | "omit";
|
|
3
|
-
/** Props for function getRestCallAuthParams */
|
|
4
|
-
type GetRestCallAuthParamsProps<A extends AuthType = AuthType> = {
|
|
5
|
-
hostConfig: HostConfig<A>;
|
|
6
|
-
/** The HTTP method in the outgoing REST call */
|
|
7
|
-
method: string;
|
|
8
|
-
};
|
|
9
|
-
/** Http reqeust parameters for auth to use when making a rest call based on a host config */
|
|
10
|
-
type RestCallAuthParams = {
|
|
11
|
-
headers: Record<string, string>;
|
|
12
|
-
queryParams: Record<string, string>;
|
|
13
|
-
credentials: Credentials;
|
|
14
|
-
};
|
|
15
|
-
/** Props for function getWebsocketAuthParams */
|
|
16
|
-
type GetWebSocketAuthParamsProps<A extends AuthType = AuthType> = {
|
|
17
|
-
hostConfig: HostConfig<A>;
|
|
18
|
-
};
|
|
19
|
-
/** Websocket auth parameters to use when setting up a websocket based on a host config */
|
|
20
|
-
type WebSocketAuthParams = {
|
|
21
|
-
queryParams: Record<string, string>;
|
|
22
|
-
};
|
|
23
|
-
/** Props for function getWebResourceAuthParams */
|
|
24
|
-
type GetWebResourceAuthParamsProps<A extends AuthType = AuthType> = {
|
|
25
|
-
hostConfig: HostConfig<A>;
|
|
26
|
-
};
|
|
27
|
-
/** Webresource auth parameters to use when fetching a web resource with a host config */
|
|
28
|
-
type WebResourceAuthParams = {
|
|
29
|
-
queryParams: Record<string, string>;
|
|
30
|
-
};
|
|
31
|
-
type GetRemoteAuthDataProps<A extends AuthType = AuthType> = {
|
|
32
|
-
hostConfig: HostConfig<A>;
|
|
33
|
-
queryParams?: Record<string, string>;
|
|
34
|
-
};
|
|
35
|
-
/** Props for function handleAuthenticationError */
|
|
36
|
-
type HandleAuthenticationErrorProps<A extends AuthType = AuthType> = {
|
|
37
|
-
/** host conifg for connecting to a host */
|
|
38
|
-
hostConfig: HostConfig<A>;
|
|
39
|
-
/** HTTP status of the response */
|
|
40
|
-
status: number;
|
|
41
|
-
/** Body of the error response */
|
|
42
|
-
errorBody?: Record<string, unknown>;
|
|
43
|
-
/** HTTP response headers */
|
|
44
|
-
headers: Headers;
|
|
45
|
-
/** Set to true if it is possible to perform a retry. This will be true for the first call, and false if the call is actually a retry */
|
|
46
|
-
canRetry: boolean;
|
|
47
|
-
};
|
|
48
|
-
/** Action to take when error occurs during authentication */
|
|
49
|
-
type AuthenticationErrorAction = {
|
|
50
|
-
/**
|
|
51
|
-
* If set to true the request will be retried and its AuthParams will be fetched again
|
|
52
|
-
*/
|
|
53
|
-
retry?: boolean;
|
|
54
|
-
/**
|
|
55
|
-
* Set to true to prevent the api call result promise from ever resolving.
|
|
56
|
-
* Typically used when redirecting the window to a login page to prevent
|
|
57
|
-
* transient errors from happening in the page while the browser is loading the login page.
|
|
58
|
-
*/
|
|
59
|
-
preventDefault?: boolean;
|
|
60
|
-
};
|
|
61
|
-
/** A typed string array with extracted required properties from a type */
|
|
62
|
-
type RequiredKeys<T> = {
|
|
63
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? never : K;
|
|
64
|
-
}[keyof T];
|
|
65
|
-
/** A typed string array with extracted optional properties from a type */
|
|
66
|
-
type OptionalKeys<T> = {
|
|
67
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? K : never;
|
|
68
|
-
}[keyof T];
|
|
69
|
-
/** An authentication module for a specific authentication format, like oauth, cookies etc */
|
|
70
|
-
type AuthModule<A extends AuthType = AuthType> = {
|
|
71
|
-
/** Properties required for this auth module */
|
|
72
|
-
requiredProps?: RequiredKeys<HostConfig<A>>[];
|
|
73
|
-
/** Properties that are optional for this auth module */
|
|
74
|
-
optionalProps?: OptionalKeys<HostConfig<A>>[];
|
|
75
|
-
/** Get auth params for rest api calls */
|
|
76
|
-
getRestCallAuthParams: (props: GetRestCallAuthParamsProps<A>) => Promise<RestCallAuthParams>;
|
|
77
|
-
/** Get auth params for websocket api calls */
|
|
78
|
-
getWebSocketAuthParams: (props: GetWebSocketAuthParamsProps<A>) => Promise<WebSocketAuthParams>;
|
|
79
|
-
/** Get auth params for web resource request */
|
|
80
|
-
getWebResourceAuthParams?: (props: GetWebResourceAuthParamsProps<A>) => Promise<WebResourceAuthParams>;
|
|
81
|
-
/** Callback for when auth error happens */
|
|
82
|
-
handleAuthenticationError: (props: HandleAuthenticationErrorProps<A>) => Promise<AuthenticationErrorAction>;
|
|
83
|
-
/** Runtime check for validating host config */
|
|
84
|
-
validateHostConfig?: (hostConfig: Record<string, unknown>) => boolean;
|
|
85
|
-
};
|
|
86
|
-
/** Valid strings for known authentication types */
|
|
87
|
-
type AuthType = keyof QlikAuthModules;
|
|
88
|
-
/** Configuration object for connecting and authenticating with Qlik platform(s) */
|
|
89
|
-
type HostConfig<A extends AuthType = AuthType> = {
|
|
90
|
-
[K in keyof QlikAuthModules]: QlikAuthModuleConfigUnion<K> & HostConfigCommon;
|
|
91
|
-
}[A];
|
|
92
|
-
type QlikAuthModuleConfigUnion<K extends keyof QlikAuthModules> = (K extends keyof ImplicitQlikAuthModules ? {
|
|
93
|
-
authType?: K;
|
|
94
|
-
} : {
|
|
95
|
-
authType: K;
|
|
96
|
-
}) & QlikAuthModules[K]["config"];
|
|
97
|
-
type HostConfigCommon = {
|
|
98
|
-
/** The URL to the cloud tenant or windows server. If scheme is excluded https is used. May include a virtual proxy prefix on windows. Any trailing slashes are stripped. */
|
|
99
|
-
host?: string;
|
|
100
|
-
autoRedirect?: boolean;
|
|
101
|
-
authRedirectUserConfirmation?: () => Promise<void>;
|
|
102
|
-
/**
|
|
103
|
-
* Optional parameter that can be used to point to a Qlik Cloud tenant domain from which the embed runtime should be loaded. If omitted the host parameter will be used.
|
|
104
|
-
*/
|
|
105
|
-
embedRuntimeUrl?: string;
|
|
106
|
-
onAuthFailed?: (props: {
|
|
107
|
-
message: string;
|
|
108
|
-
}) => unknown;
|
|
109
|
-
};
|
|
110
|
-
/**
|
|
111
|
-
* These properties are always allowed in the host config, even if they are not defined in the HostConfig interface
|
|
112
|
-
* for the specific auth module.
|
|
113
|
-
*/
|
|
114
|
-
declare const hostConfigCommonProperties: (keyof HostConfig)[];
|
|
115
|
-
/** The keys in this interface are used to determine what auth types that are allowed to be set to undefined */
|
|
116
|
-
interface ImplicitQlikAuthModules {
|
|
117
|
-
apikey: object;
|
|
118
|
-
oauth2: object;
|
|
119
|
-
cookie: object;
|
|
120
|
-
windowscookie: object;
|
|
121
|
-
reference: object;
|
|
122
|
-
anonymous: object;
|
|
123
|
-
}
|
|
124
|
-
type AuthTypeThatCanBeOmitted = keyof ImplicitQlikAuthModules;
|
|
125
|
-
declare const authTypesThatCanBeOmitted: AuthTypeThatCanBeOmitted[];
|
|
126
|
-
|
|
127
|
-
export { type AuthType as A, type Credentials as C, type GetRestCallAuthParamsProps as G, type HostConfig as H, type RestCallAuthParams as R, type WebResourceAuthParams as W, type AuthModule as a, type GetWebSocketAuthParamsProps as b, type WebSocketAuthParams as c, type GetWebResourceAuthParamsProps as d, type GetRemoteAuthDataProps as e, type HandleAuthenticationErrorProps as f, type AuthenticationErrorAction as g, type HostConfigCommon as h, hostConfigCommonProperties as i, type AuthTypeThatCanBeOmitted as j, authTypesThatCanBeOmitted as k };
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { H as HostConfig } from './auth-types-Cj5bM3Yk.js';
|
|
2
|
-
|
|
3
|
-
/** The typical base return type of a fetch call */
|
|
4
|
-
type InvokeFetchResponse = {
|
|
5
|
-
status: number;
|
|
6
|
-
headers: Headers;
|
|
7
|
-
data: unknown;
|
|
8
|
-
prev?: () => Promise<InvokeFetchResponse>;
|
|
9
|
-
next?: () => Promise<InvokeFetchResponse>;
|
|
10
|
-
};
|
|
11
|
-
/** Additional options for an api call done with invoke-fetch */
|
|
12
|
-
type ApiCallOptions = {
|
|
13
|
-
/** Additional headers to pass on to the request. */
|
|
14
|
-
headers?: Record<string, string>;
|
|
15
|
-
/** if set to true the call will not use a cached result */
|
|
16
|
-
noCache?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Only used cached results whose age in milliseconds are less than that or equal to `maxCacheAge`.
|
|
19
|
-
*/
|
|
20
|
-
maxCacheAge?: number | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Only results cached on or after the `ifCachedSince` timestamp are used.
|
|
23
|
-
*/
|
|
24
|
-
useCacheIfAfter?: Date;
|
|
25
|
-
/**
|
|
26
|
-
* Specify the host configif the api call is a cross-domain request. Typically used in embedding and mashups
|
|
27
|
-
*/
|
|
28
|
-
hostConfig?: HostConfig;
|
|
29
|
-
/**
|
|
30
|
-
* Set the amount of time to wait for a response.
|
|
31
|
-
* If the timeout is exceeded the request is aborted.
|
|
32
|
-
* If both timeoutMs and signal is present, timeoutMs will have no effect, as
|
|
33
|
-
* there is already an abort-signal specified.
|
|
34
|
-
*/
|
|
35
|
-
timeoutMs?: number;
|
|
36
|
-
/**
|
|
37
|
-
* An abort-signal lets you abort an ongoing fetch request. The abort-signal is created
|
|
38
|
-
* by taking the .signal property of an AbortController.
|
|
39
|
-
*/
|
|
40
|
-
signal?: AbortSignal;
|
|
41
|
-
/**
|
|
42
|
-
* Ensure that the request is kept alive even if the page that initiated it is unloaded
|
|
43
|
-
* before the request is completed.
|
|
44
|
-
*/
|
|
45
|
-
keepalive?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Options for progress-reporting. Specify any combination of the callbacks `onUpload`
|
|
48
|
-
* and `onDownload`. Progress will be reported continuously.
|
|
49
|
-
*/
|
|
50
|
-
progress?: ProgressOptions;
|
|
51
|
-
};
|
|
52
|
-
type InvokeFetchProperties = {
|
|
53
|
-
/** http method */
|
|
54
|
-
method: string;
|
|
55
|
-
/** data passed to api call */
|
|
56
|
-
body?: unknown;
|
|
57
|
-
/** additional api call options */
|
|
58
|
-
options?: ApiCallOptions;
|
|
59
|
-
/** override default RequestInit options */
|
|
60
|
-
requestInitOverrides?: RequestInit;
|
|
61
|
-
/** path to api endpoint, can be in a template format e.g. /api/v1/space/{spaceId} */
|
|
62
|
-
pathTemplate: string;
|
|
63
|
-
/** path variables to be used in the path template */
|
|
64
|
-
pathVariables?: Record<string, string>;
|
|
65
|
-
/** additional query to url */
|
|
66
|
-
query?: Record<string, unknown>;
|
|
67
|
-
/** specify what content-type to send, if omitted "application/json" is assumed */
|
|
68
|
-
contentType?: string;
|
|
69
|
-
/** override the default user-agent with this value. This will also override any browser's UA. */
|
|
70
|
-
userAgent?: string;
|
|
71
|
-
};
|
|
72
|
-
type DownloadableBlob = Blob & {
|
|
73
|
-
/** download the blob in a using the specified filename */
|
|
74
|
-
download: (filename: string) => Promise<void>;
|
|
75
|
-
};
|
|
76
|
-
/** The callback options for reporting progress. */
|
|
77
|
-
type ProgressOptions = {
|
|
78
|
-
/** upload callback, called repeatedly when upload-progress is available */
|
|
79
|
-
onUpload?: (event: PartialProgressEvent) => void;
|
|
80
|
-
/** download callback, called repeatedly when upload-progress is available */
|
|
81
|
-
onDownload?: (event: PartialProgressEvent) => void;
|
|
82
|
-
};
|
|
83
|
-
/** Represents the current upload or download progress a API-call.
|
|
84
|
-
*
|
|
85
|
-
* It contains the number of loaded bytes and, if computable, the total payload size.
|
|
86
|
-
* If the total size cannot be determined, `total` will be undefined.
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
* See MDN: {@link https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent}
|
|
90
|
-
*/
|
|
91
|
-
type PartialProgressEvent = {
|
|
92
|
-
/** Number of bytes currently loaded. */
|
|
93
|
-
loaded: ProgressEvent["loaded"];
|
|
94
|
-
/** The total size of the payload, if computable. */
|
|
95
|
-
total?: ProgressEvent["total"];
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
export type { ApiCallOptions as A, DownloadableBlob as D, InvokeFetchResponse as I, InvokeFetchProperties as a };
|