@qlik/api 1.31.0 → 1.32.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.js +2 -2
- package/apps.js +2 -2
- package/assistants.d.ts +1301 -0
- package/assistants.js +273 -0
- package/audits.js +2 -2
- package/auth.js +2 -2
- package/automation-connections.d.ts +366 -0
- package/automation-connections.js +91 -0
- package/automations.js +2 -2
- package/automl-deployments.d.ts +97 -0
- package/automl-deployments.js +27 -0
- package/automl-predictions.d.ts +214 -0
- package/automl-predictions.js +72 -0
- package/brands.js +2 -2
- package/chunks/{GUU3KZGK.js → RCLKKVYB.js} +1 -1
- package/chunks/{YKZ2QYHN.js → VVD2DPKQ.js} +2 -2
- package/chunks/{KBSD75QL.js → YTT2FEVE.js} +1 -1
- package/collections.js +2 -2
- package/conditions.d.ts +662 -0
- package/conditions.js +113 -0
- package/consumption.d.ts +182 -0
- package/consumption.js +24 -0
- package/csp-origins.js +2 -2
- package/csrf-token.d.ts +62 -0
- package/csrf-token.js +23 -0
- package/data-alerts.d.ts +1004 -0
- package/data-alerts.js +155 -0
- package/data-assets.js +2 -2
- package/data-connections.js +2 -2
- package/data-credentials.js +2 -2
- package/data-files.js +2 -2
- package/data-qualities.d.ts +175 -0
- package/data-qualities.js +44 -0
- package/data-sets.d.ts +424 -0
- package/data-sets.js +75 -0
- package/data-sources.d.ts +268 -0
- package/data-sources.js +39 -0
- package/data-stores.d.ts +537 -0
- package/data-stores.js +108 -0
- package/dcaas.d.ts +192 -0
- package/dcaas.js +39 -0
- package/di-projects.d.ts +673 -0
- package/di-projects.js +164 -0
- package/encryption.d.ts +370 -0
- package/encryption.js +98 -0
- package/extensions.js +2 -2
- package/glossaries.js +2 -2
- package/groups.js +2 -2
- package/identity-providers.js +2 -2
- package/index.d.ts +105 -1
- package/index.js +556 -4
- package/items.js +2 -2
- package/knowledgebases.d.ts +890 -0
- package/knowledgebases.js +169 -0
- package/licenses.d.ts +1 -1
- package/licenses.js +2 -2
- package/lineage-graphs.d.ts +712 -0
- package/lineage-graphs.js +92 -0
- package/ml.d.ts +2628 -0
- package/ml.js +384 -0
- package/notes.d.ts +110 -0
- package/notes.js +31 -0
- package/notifications.d.ts +98 -0
- package/notifications.js +24 -0
- package/oauth-clients.js +2 -2
- package/oauth-tokens.d.ts +126 -0
- package/oauth-tokens.js +31 -0
- package/package.json +28 -2
- package/qix.d.ts +1 -1
- package/qix.js +2 -2
- package/questions.d.ts +364 -0
- package/questions.js +34 -0
- package/quotas.js +2 -2
- package/reload-tasks.js +2 -2
- package/reloads.js +2 -2
- package/report-templates.d.ts +287 -0
- package/report-templates.js +80 -0
- package/reports.js +2 -2
- package/roles.js +2 -2
- package/sharing-tasks.d.ts +952 -0
- package/sharing-tasks.js +105 -0
- package/spaces.js +2 -2
- package/tasks.d.ts +564 -0
- package/tasks.js +106 -0
- package/temp-contents.js +2 -2
- package/tenants.js +2 -2
- package/themes.js +2 -2
- package/transports.js +2 -2
- package/ui-config.d.ts +274 -0
- package/ui-config.js +77 -0
- package/users.js +2 -2
- package/web-integrations.js +2 -2
- package/web-notifications.js +2 -2
- package/webhooks.js +2 -2
- /package/chunks/{DLKLPD7T.js → LTNGXTXG.js} +0 -0
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
|
|
2
|
+
import './auth-types-DqfMuSRX.js';
|
|
3
|
+
|
|
4
|
+
type ApiSpecResponse = {
|
|
5
|
+
/** List of properties required for the given datasource */
|
|
6
|
+
connectionProperties: unknown;
|
|
7
|
+
/** Datasource provider */
|
|
8
|
+
connectorProvider: string;
|
|
9
|
+
/** Datasource provider (i.e. connector) version */
|
|
10
|
+
connectorVersion: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Datasource metadata
|
|
14
|
+
*/
|
|
15
|
+
type ConnectorNodesInfo = {
|
|
16
|
+
/** List of datasource Ids provided by the provider */
|
|
17
|
+
cachedDataSources?: string[];
|
|
18
|
+
/** Contract type used to communicate with the connector (between 0 and 3) */
|
|
19
|
+
contractType: number;
|
|
20
|
+
/** Indicates if the datasources is up to date */
|
|
21
|
+
dataSourcesUpdated: boolean;
|
|
22
|
+
/** Connector provider name */
|
|
23
|
+
providerName: string;
|
|
24
|
+
/** State of the connector node */
|
|
25
|
+
state: string;
|
|
26
|
+
/** URL of connector node */
|
|
27
|
+
url: string;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Datasource metadata
|
|
31
|
+
*/
|
|
32
|
+
type DataSourceNew = {
|
|
33
|
+
/** List of capabilities supported by the datasource */
|
|
34
|
+
capabilities?: string[];
|
|
35
|
+
/** Override value of dataload URL (could be null) */
|
|
36
|
+
dataLoadUrlOverride?: string;
|
|
37
|
+
/** Unique identifier of datasource */
|
|
38
|
+
dataSourceId: string;
|
|
39
|
+
/** Datasource property name (could be null) */
|
|
40
|
+
dataSourcePropertyName?: string;
|
|
41
|
+
/** Datasource name */
|
|
42
|
+
name: string;
|
|
43
|
+
/** Connector provider */
|
|
44
|
+
provider: string;
|
|
45
|
+
/** Provider name */
|
|
46
|
+
providerName: string;
|
|
47
|
+
/** Qri definition template */
|
|
48
|
+
qriDefinition?: QriDefinition;
|
|
49
|
+
/** UI related metadata (only present when 'includeui' is set to true in query) */
|
|
50
|
+
uiInfo?: UiInfo;
|
|
51
|
+
};
|
|
52
|
+
type DataSourcesResponseNew = {
|
|
53
|
+
/** List of connector nodes (only present when query parameter 'detail' is set to true) */
|
|
54
|
+
connectorNodes?: ConnectorNodesInfo[];
|
|
55
|
+
/** List of datasources metadata object */
|
|
56
|
+
dataSources: DataSourceNew[];
|
|
57
|
+
/** Time stamp of last updated */
|
|
58
|
+
lastUpdated: string;
|
|
59
|
+
};
|
|
60
|
+
type PublicApiError = {
|
|
61
|
+
/** A service specific error code string */
|
|
62
|
+
code: string;
|
|
63
|
+
/** Concrete detail about the error */
|
|
64
|
+
detail?: string;
|
|
65
|
+
/** Additional metadata associated with the error */
|
|
66
|
+
meta?: unknown;
|
|
67
|
+
/** Summary of the error */
|
|
68
|
+
title: string;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Qri definition template
|
|
72
|
+
*/
|
|
73
|
+
type QriDefinition = {
|
|
74
|
+
connectionPart: unknown & QriTemplate;
|
|
75
|
+
itemPart?: unknown & {
|
|
76
|
+
/** Prefix of the template */
|
|
77
|
+
prefix?: string;
|
|
78
|
+
} & QriTemplate;
|
|
79
|
+
pathPart: unknown & {
|
|
80
|
+
/** Prefix of the template */
|
|
81
|
+
prefix?: string;
|
|
82
|
+
} & QriTemplate;
|
|
83
|
+
/** Qri prefix */
|
|
84
|
+
qriPrefix: string;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Connection part of Qri template
|
|
88
|
+
*/
|
|
89
|
+
type QriTemplate = {
|
|
90
|
+
/** List of properties used in template */
|
|
91
|
+
properties: string[];
|
|
92
|
+
/** Qri template */
|
|
93
|
+
template: string;
|
|
94
|
+
};
|
|
95
|
+
type ResponseErrors = {
|
|
96
|
+
errors?: PublicApiError[];
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* UI related metadata (only present when 'includeui' is set to true in query)
|
|
100
|
+
*/
|
|
101
|
+
type UiInfo = {
|
|
102
|
+
/** Connect URL */
|
|
103
|
+
connectUrl?: string;
|
|
104
|
+
/** Connector main URL */
|
|
105
|
+
connectorMainUrl?: string;
|
|
106
|
+
/** Credentials URL */
|
|
107
|
+
credentialsUrl?: string;
|
|
108
|
+
/** Icon URL */
|
|
109
|
+
iconRectUrl?: string;
|
|
110
|
+
/** Square icon URL */
|
|
111
|
+
iconSquareUrl?: string;
|
|
112
|
+
/** If support iframe */
|
|
113
|
+
iframe?: boolean;
|
|
114
|
+
/** Indicate if the datasource supports load model */
|
|
115
|
+
loadModelSupport?: string;
|
|
116
|
+
/** Select URL */
|
|
117
|
+
selectUrl?: string;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Gets the list of data sources available on the node.
|
|
121
|
+
* @example
|
|
122
|
+
* getDataSources(
|
|
123
|
+
* {
|
|
124
|
+
* dataSourceId: "rest",
|
|
125
|
+
* detail: true,
|
|
126
|
+
* includeui: true
|
|
127
|
+
* }
|
|
128
|
+
* )
|
|
129
|
+
*
|
|
130
|
+
* @param query an object with query parameters
|
|
131
|
+
* @throws GetDataSourcesHttpError
|
|
132
|
+
*/
|
|
133
|
+
declare const getDataSources: (query: {
|
|
134
|
+
/** Filtering on datasourceID, when multiple dataSourceId are set in query, last dataSourceId will be used */
|
|
135
|
+
dataSourceId?: string;
|
|
136
|
+
/** Determines if provider detail is returned */
|
|
137
|
+
detail?: boolean;
|
|
138
|
+
/** Determines if UI info is returned */
|
|
139
|
+
includeui?: boolean;
|
|
140
|
+
}, options?: ApiCallOptions) => Promise<GetDataSourcesHttpResponse>;
|
|
141
|
+
type GetDataSourcesHttpResponse = {
|
|
142
|
+
data: DataSourcesResponseNew;
|
|
143
|
+
headers: Headers;
|
|
144
|
+
status: 200;
|
|
145
|
+
};
|
|
146
|
+
type GetDataSourcesHttpError = {
|
|
147
|
+
data: ResponseErrors;
|
|
148
|
+
headers: Headers;
|
|
149
|
+
status: 401 | 404 | 500;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Get 'connectionProperties' for a given datasource
|
|
153
|
+
* @example
|
|
154
|
+
* getDataSourceApiSpecs(
|
|
155
|
+
* "rest"
|
|
156
|
+
* )
|
|
157
|
+
*
|
|
158
|
+
* @param dataSourceId Datasource ID
|
|
159
|
+
* @throws GetDataSourceApiSpecsHttpError
|
|
160
|
+
*/
|
|
161
|
+
declare const getDataSourceApiSpecs: (dataSourceId: string, options?: ApiCallOptions) => Promise<GetDataSourceApiSpecsHttpResponse>;
|
|
162
|
+
type GetDataSourceApiSpecsHttpResponse = {
|
|
163
|
+
data: ApiSpecResponse;
|
|
164
|
+
headers: Headers;
|
|
165
|
+
status: 200;
|
|
166
|
+
};
|
|
167
|
+
type GetDataSourceApiSpecsHttpError = {
|
|
168
|
+
data: ResponseErrors;
|
|
169
|
+
headers: Headers;
|
|
170
|
+
status: 401 | 404 | 500 | 503;
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Get list available gateway ID's for a given datasource
|
|
174
|
+
* @example
|
|
175
|
+
* getDataSourceGateways(
|
|
176
|
+
* "rest",
|
|
177
|
+
* {
|
|
178
|
+
* forceRefresh: true
|
|
179
|
+
* }
|
|
180
|
+
* )
|
|
181
|
+
*
|
|
182
|
+
* @param dataSourceId Datasource ID
|
|
183
|
+
* @param query an object with query parameters
|
|
184
|
+
* @throws GetDataSourceGatewaysHttpError
|
|
185
|
+
*/
|
|
186
|
+
declare const getDataSourceGateways: (dataSourceId: string, query: {
|
|
187
|
+
/** Force to get a refreshed list from backend. Cached list will be returned if not set or set to false. */
|
|
188
|
+
forceRefresh?: boolean;
|
|
189
|
+
}, options?: ApiCallOptions) => Promise<GetDataSourceGatewaysHttpResponse>;
|
|
190
|
+
type GetDataSourceGatewaysHttpResponse = {
|
|
191
|
+
data: {
|
|
192
|
+
/** List of gateway ID's for given datasource ID */
|
|
193
|
+
gateways?: {
|
|
194
|
+
/** Whether the gateway is default */
|
|
195
|
+
default?: boolean;
|
|
196
|
+
/** Gateway ID */
|
|
197
|
+
id?: string;
|
|
198
|
+
/** Gateway name */
|
|
199
|
+
name?: string;
|
|
200
|
+
}[];
|
|
201
|
+
/** Time stamp when the gateways data were refreshed */
|
|
202
|
+
refreshedAt?: string;
|
|
203
|
+
};
|
|
204
|
+
headers: Headers;
|
|
205
|
+
status: 200;
|
|
206
|
+
};
|
|
207
|
+
type GetDataSourceGatewaysHttpError = {
|
|
208
|
+
data: ResponseErrors;
|
|
209
|
+
headers: Headers;
|
|
210
|
+
status: 401 | 404 | 500;
|
|
211
|
+
};
|
|
212
|
+
/**
|
|
213
|
+
* Clears the cache for data-sources api requests.
|
|
214
|
+
*/
|
|
215
|
+
declare function clearCache(): void;
|
|
216
|
+
interface DataSourcesAPI {
|
|
217
|
+
/**
|
|
218
|
+
* Gets the list of data sources available on the node.
|
|
219
|
+
* @example
|
|
220
|
+
* getDataSources(
|
|
221
|
+
* {
|
|
222
|
+
* dataSourceId: "rest",
|
|
223
|
+
* detail: true,
|
|
224
|
+
* includeui: true
|
|
225
|
+
* }
|
|
226
|
+
* )
|
|
227
|
+
*
|
|
228
|
+
* @param query an object with query parameters
|
|
229
|
+
* @throws GetDataSourcesHttpError
|
|
230
|
+
*/
|
|
231
|
+
getDataSources: typeof getDataSources;
|
|
232
|
+
/**
|
|
233
|
+
* Get 'connectionProperties' for a given datasource
|
|
234
|
+
* @example
|
|
235
|
+
* getDataSourceApiSpecs(
|
|
236
|
+
* "rest"
|
|
237
|
+
* )
|
|
238
|
+
*
|
|
239
|
+
* @param dataSourceId Datasource ID
|
|
240
|
+
* @throws GetDataSourceApiSpecsHttpError
|
|
241
|
+
*/
|
|
242
|
+
getDataSourceApiSpecs: typeof getDataSourceApiSpecs;
|
|
243
|
+
/**
|
|
244
|
+
* Get list available gateway ID's for a given datasource
|
|
245
|
+
* @example
|
|
246
|
+
* getDataSourceGateways(
|
|
247
|
+
* "rest",
|
|
248
|
+
* {
|
|
249
|
+
* forceRefresh: true
|
|
250
|
+
* }
|
|
251
|
+
* )
|
|
252
|
+
*
|
|
253
|
+
* @param dataSourceId Datasource ID
|
|
254
|
+
* @param query an object with query parameters
|
|
255
|
+
* @throws GetDataSourceGatewaysHttpError
|
|
256
|
+
*/
|
|
257
|
+
getDataSourceGateways: typeof getDataSourceGateways;
|
|
258
|
+
/**
|
|
259
|
+
* Clears the cache for data-sources api requests.
|
|
260
|
+
*/
|
|
261
|
+
clearCache: typeof clearCache;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Functions for the data-sources api
|
|
265
|
+
*/
|
|
266
|
+
declare const dataSourcesExport: DataSourcesAPI;
|
|
267
|
+
|
|
268
|
+
export { type ApiSpecResponse, type ConnectorNodesInfo, type DataSourceNew, type DataSourcesAPI, type DataSourcesResponseNew, type GetDataSourceApiSpecsHttpError, type GetDataSourceApiSpecsHttpResponse, type GetDataSourceGatewaysHttpError, type GetDataSourceGatewaysHttpResponse, type GetDataSourcesHttpError, type GetDataSourcesHttpResponse, type PublicApiError, type QriDefinition, type QriTemplate, type ResponseErrors, type UiInfo, clearCache, dataSourcesExport as default, getDataSourceApiSpecs, getDataSourceGateways, getDataSources };
|
package/data-sources.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {
|
|
2
|
+
clearApiCache,
|
|
3
|
+
invokeFetch
|
|
4
|
+
} from "./chunks/VVD2DPKQ.js";
|
|
5
|
+
import "./chunks/LTNGXTXG.js";
|
|
6
|
+
import "./chunks/2ZQ3ZX7F.js";
|
|
7
|
+
|
|
8
|
+
// src/public/rest/data-sources.ts
|
|
9
|
+
var getDataSources = async (query, options) => invokeFetch("data-sources", {
|
|
10
|
+
method: "get",
|
|
11
|
+
pathTemplate: "/api/v1/data-sources",
|
|
12
|
+
query,
|
|
13
|
+
options
|
|
14
|
+
});
|
|
15
|
+
var getDataSourceApiSpecs = async (dataSourceId, options) => invokeFetch("data-sources", {
|
|
16
|
+
method: "get",
|
|
17
|
+
pathTemplate: "/api/v1/data-sources/{dataSourceId}/api-specs",
|
|
18
|
+
pathVariables: { dataSourceId },
|
|
19
|
+
options
|
|
20
|
+
});
|
|
21
|
+
var getDataSourceGateways = async (dataSourceId, query, options) => invokeFetch("data-sources", {
|
|
22
|
+
method: "get",
|
|
23
|
+
pathTemplate: "/api/v1/data-sources/{dataSourceId}/gateways",
|
|
24
|
+
pathVariables: { dataSourceId },
|
|
25
|
+
query,
|
|
26
|
+
options
|
|
27
|
+
});
|
|
28
|
+
function clearCache() {
|
|
29
|
+
return clearApiCache("data-sources");
|
|
30
|
+
}
|
|
31
|
+
var dataSourcesExport = { getDataSources, getDataSourceApiSpecs, getDataSourceGateways, clearCache };
|
|
32
|
+
var data_sources_default = dataSourcesExport;
|
|
33
|
+
export {
|
|
34
|
+
clearCache,
|
|
35
|
+
data_sources_default as default,
|
|
36
|
+
getDataSourceApiSpecs,
|
|
37
|
+
getDataSourceGateways,
|
|
38
|
+
getDataSources
|
|
39
|
+
};
|