@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
package/data-sets.d.ts
ADDED
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
|
|
2
|
+
import './auth-types-DqfMuSRX.js';
|
|
3
|
+
|
|
4
|
+
type BatchIdDto = {
|
|
5
|
+
ids?: string[];
|
|
6
|
+
};
|
|
7
|
+
type BinnedFrequency = {
|
|
8
|
+
binEdge?: number;
|
|
9
|
+
frequency?: number;
|
|
10
|
+
};
|
|
11
|
+
type Classification = {
|
|
12
|
+
obfuscation?: string;
|
|
13
|
+
pii?: boolean;
|
|
14
|
+
sensitive?: boolean;
|
|
15
|
+
tags?: Tag[];
|
|
16
|
+
};
|
|
17
|
+
type DataAssetInfo = {
|
|
18
|
+
dataStoreInfo?: DataStoreInfo;
|
|
19
|
+
id: string;
|
|
20
|
+
readonly name?: string;
|
|
21
|
+
};
|
|
22
|
+
type DataField = {
|
|
23
|
+
alias?: string;
|
|
24
|
+
dataType: FieldDataType;
|
|
25
|
+
description?: string;
|
|
26
|
+
encrypted?: boolean;
|
|
27
|
+
readonly index?: number;
|
|
28
|
+
name: string;
|
|
29
|
+
nullable?: boolean;
|
|
30
|
+
ordinalPositionInKey?: number;
|
|
31
|
+
orphan?: boolean;
|
|
32
|
+
primaryKey?: boolean;
|
|
33
|
+
properties?: Record<string, unknown>;
|
|
34
|
+
sensitive?: boolean;
|
|
35
|
+
/** An array of system tags */
|
|
36
|
+
tags?: string[];
|
|
37
|
+
/** An array of user-supplied tags */
|
|
38
|
+
userTags?: UserTag[];
|
|
39
|
+
};
|
|
40
|
+
type DataSet = {
|
|
41
|
+
/** Optional field to specify additional schemas for files where multiple tables or sheets are available. User must define primary schema in 'schema' attribute and rest of the sheets/ tables can be defined using this field. This field is not populated for the dataSets with single schema */
|
|
42
|
+
additionalSchemas?: Schema[];
|
|
43
|
+
/** Optional override of DataAsset appType. */
|
|
44
|
+
appTypeOverride?: string;
|
|
45
|
+
/** The value is automatically set by the application. User defined value is ignored. */
|
|
46
|
+
readonly createdBy?: string;
|
|
47
|
+
/** The connectionId that created the Dataset. Optional. */
|
|
48
|
+
createdByConnectionId?: string;
|
|
49
|
+
/** The value is automatically set by the application. User defined value is ignored. */
|
|
50
|
+
readonly createdTime?: string;
|
|
51
|
+
dataAssetInfo: DataAssetInfo;
|
|
52
|
+
description?: string;
|
|
53
|
+
/** Only required when updating the resource. Must be null for new resources. */
|
|
54
|
+
id?: string;
|
|
55
|
+
/** The value is automatically set by the application. User defined value is ignored. */
|
|
56
|
+
readonly lastModifiedBy?: string;
|
|
57
|
+
/** The value is automatically set by the application. User defined value is ignored. */
|
|
58
|
+
readonly lastModifiedTime?: string;
|
|
59
|
+
name?: string;
|
|
60
|
+
operational?: Operational;
|
|
61
|
+
/** The value is automatically set by the application. */
|
|
62
|
+
ownerId?: string;
|
|
63
|
+
/** A Map of name-value pairs. */
|
|
64
|
+
properties?: Record<string, unknown>;
|
|
65
|
+
/** NOTE: this will be deprecated after migration to secureQri. Required user defined field. All the parts in the format must be separated by ':'. The first part denotes the resourceType, followed by dataStoreType and tenant guid. The spaceGuid or userGuid is to be populated based on if the dataset is in shared or private space and finally the full file name. This field is auto populated for the dataSet generated for qix-datafiles. */
|
|
66
|
+
qri: string;
|
|
67
|
+
/** Optional field to specify additional schemas for files where multiple tables or sheets are available. User must define primary schema in 'schema' attribute and rest of the sheets/ tables can be defined using this field. This field is not populated for the dataSets with single schema */
|
|
68
|
+
schema?: Schema;
|
|
69
|
+
secureQri: string;
|
|
70
|
+
spaceId?: string;
|
|
71
|
+
tags?: string[];
|
|
72
|
+
technicalDescription?: string;
|
|
73
|
+
technicalName: string;
|
|
74
|
+
/** The value is automatically set by the application. User defined value is ignored. */
|
|
75
|
+
readonly tenantId?: string;
|
|
76
|
+
type?: string;
|
|
77
|
+
/** Only required when updating the resource. Must be null for new resources. */
|
|
78
|
+
version?: number;
|
|
79
|
+
};
|
|
80
|
+
type DataSetProfile = {
|
|
81
|
+
meta?: ProfileMetadata;
|
|
82
|
+
readonly profiles?: TableProfile[];
|
|
83
|
+
readonly samples?: TableSample[];
|
|
84
|
+
};
|
|
85
|
+
type DataStoreInfo = {
|
|
86
|
+
id: string;
|
|
87
|
+
readonly name?: string;
|
|
88
|
+
readonly type?: string;
|
|
89
|
+
};
|
|
90
|
+
type Error = {
|
|
91
|
+
code?: string;
|
|
92
|
+
detail?: string;
|
|
93
|
+
status?: string;
|
|
94
|
+
title?: string;
|
|
95
|
+
};
|
|
96
|
+
type ErrorResponse = {
|
|
97
|
+
errors?: Error[];
|
|
98
|
+
traceId?: string;
|
|
99
|
+
};
|
|
100
|
+
type FieldDataType = {
|
|
101
|
+
originalType?: string;
|
|
102
|
+
/** The properties map key is string and the value is of type object. Please note, Datatype DECIMAL requires two mandatory properties to be defined; these properties must be named: precision and scale, each of these property accepts integer value. All other datatypes does not require any manadatory properties to be defined. */
|
|
103
|
+
properties?: Record<string, unknown>;
|
|
104
|
+
/** Each datatype may vary in terms of required properties. Example: Datatype DECIMAL requires two mandatory properties to be defined - precision and scale, each one accepts integer value. All other datatypes does not have any required properties. */
|
|
105
|
+
type: "DATE" | "TIME" | "DATETIME" | "TIMESTAMP" | "STRING" | "DOUBLE" | "DECIMAL" | "INTEGER" | "BOOLEAN" | "BINARY" | "CUSTOM";
|
|
106
|
+
};
|
|
107
|
+
type FieldProfile = {
|
|
108
|
+
average?: number;
|
|
109
|
+
averageStringLength?: number;
|
|
110
|
+
classification?: Classification;
|
|
111
|
+
dataType?: "DATE" | "TIME" | "DATETIME" | "TIMESTAMP" | "STRING" | "DOUBLE" | "DECIMAL" | "INTEGER" | "BOOLEAN" | "BINARY" | "CUSTOM";
|
|
112
|
+
distinctValueCount?: number;
|
|
113
|
+
emptyStringCount?: number;
|
|
114
|
+
evenness?: number;
|
|
115
|
+
firstSortedStringValue?: string;
|
|
116
|
+
fractiles?: number[];
|
|
117
|
+
frequencyDistribution?: BinnedFrequency[];
|
|
118
|
+
index?: number;
|
|
119
|
+
kurtosis?: number;
|
|
120
|
+
lastSortedStringValue?: string;
|
|
121
|
+
maxNumericValue?: number;
|
|
122
|
+
maxStringLength?: number;
|
|
123
|
+
median?: number;
|
|
124
|
+
minNumericValue?: number;
|
|
125
|
+
minStringLength?: number;
|
|
126
|
+
mostFrequentValues?: Frequency[];
|
|
127
|
+
name?: string;
|
|
128
|
+
negativeValueCount?: number;
|
|
129
|
+
nullValueCount?: number;
|
|
130
|
+
numericValueCount?: number;
|
|
131
|
+
positiveValueCount?: number;
|
|
132
|
+
sampleValues?: string[];
|
|
133
|
+
skewness?: number;
|
|
134
|
+
standardDeviation?: number;
|
|
135
|
+
sumNumericValues?: number;
|
|
136
|
+
sumSquaredNumericValues?: number;
|
|
137
|
+
sumStringLength?: number;
|
|
138
|
+
tags?: string[];
|
|
139
|
+
technicalName?: string;
|
|
140
|
+
textValueCount?: number;
|
|
141
|
+
zeroValueCount?: number;
|
|
142
|
+
};
|
|
143
|
+
type Frequency = {
|
|
144
|
+
frequency?: number;
|
|
145
|
+
value?: string;
|
|
146
|
+
};
|
|
147
|
+
type JsonPatch = {
|
|
148
|
+
/** A JSON Pointer path pointing to the location to move/copy from. */
|
|
149
|
+
from?: string;
|
|
150
|
+
/** The operation to be performed. */
|
|
151
|
+
op: "add" | "remove" | "replace" | "move" | "copy" | "test";
|
|
152
|
+
/** A JSON pointer to the property being affected. */
|
|
153
|
+
path: string;
|
|
154
|
+
/** The value to add, replace or test. */
|
|
155
|
+
value?: unknown;
|
|
156
|
+
};
|
|
157
|
+
type Link = {
|
|
158
|
+
href?: string;
|
|
159
|
+
};
|
|
160
|
+
type Links = {
|
|
161
|
+
first?: Link;
|
|
162
|
+
last?: Link;
|
|
163
|
+
next?: Link;
|
|
164
|
+
prev?: Link;
|
|
165
|
+
self?: Link;
|
|
166
|
+
};
|
|
167
|
+
type Operational = {
|
|
168
|
+
contentUpdated?: boolean;
|
|
169
|
+
endDate?: string;
|
|
170
|
+
lastLoadTime?: string;
|
|
171
|
+
lastUpdateTime?: string;
|
|
172
|
+
location?: string;
|
|
173
|
+
logMessage?: string;
|
|
174
|
+
rowCount?: number;
|
|
175
|
+
size?: number;
|
|
176
|
+
startDate?: string;
|
|
177
|
+
status?: string;
|
|
178
|
+
tableConnectionInfo?: TableConnectionInfo;
|
|
179
|
+
tableOwner?: string;
|
|
180
|
+
};
|
|
181
|
+
type PageDataSetProfile = {
|
|
182
|
+
data?: DataSetProfile[];
|
|
183
|
+
limit?: number;
|
|
184
|
+
links?: Links;
|
|
185
|
+
page?: number;
|
|
186
|
+
pages?: number;
|
|
187
|
+
total?: number;
|
|
188
|
+
};
|
|
189
|
+
type ProfileMetadata = {
|
|
190
|
+
computationEndTime?: string;
|
|
191
|
+
computationStartTime?: string;
|
|
192
|
+
connectionId?: string;
|
|
193
|
+
dataSetId?: string;
|
|
194
|
+
lastLoadTime?: string;
|
|
195
|
+
messages?: string[];
|
|
196
|
+
resultType?: "NORMAL" | "BASIC";
|
|
197
|
+
status?: "QUEUED" | "RUNNING" | "FINISHED" | "FAILED" | "INCOMPLETE" | "CANCELLED" | "STALE" | "PARTIAL" | "DEFERRED";
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* Optional field to specify additional schemas for files where multiple tables or sheets are available. User must define primary schema in 'schema' attribute and rest of the sheets/ tables can be defined using this field. This field is not populated for the dataSets with single schema
|
|
201
|
+
*/
|
|
202
|
+
type Schema = {
|
|
203
|
+
/** Anomalies associated with this schema. Example: $warning-unknown-headers */
|
|
204
|
+
anomalies?: string[];
|
|
205
|
+
dataFields: DataField[];
|
|
206
|
+
readonly effectiveDate?: string;
|
|
207
|
+
/** Options for loading files. Example: "qLabel": "embedded labels" */
|
|
208
|
+
loadOptions?: Record<string, unknown>;
|
|
209
|
+
overrideSchemaAnomalies?: boolean;
|
|
210
|
+
schemaName?: string;
|
|
211
|
+
};
|
|
212
|
+
type TableConnectionInfo = {
|
|
213
|
+
additionalProperties?: Record<string, string>;
|
|
214
|
+
selectionScript?: string;
|
|
215
|
+
tableName?: string;
|
|
216
|
+
};
|
|
217
|
+
type TableProfile = {
|
|
218
|
+
readonly fieldProfiles?: FieldProfile[];
|
|
219
|
+
readonly name?: string;
|
|
220
|
+
readonly numberOfRows?: number;
|
|
221
|
+
readonly sizeInBytes?: number;
|
|
222
|
+
};
|
|
223
|
+
type TableRecord = {
|
|
224
|
+
values?: string[];
|
|
225
|
+
};
|
|
226
|
+
type TableSample = {
|
|
227
|
+
readonly fieldNames?: string[];
|
|
228
|
+
readonly name?: string;
|
|
229
|
+
readonly records?: TableRecord[];
|
|
230
|
+
};
|
|
231
|
+
type Tag = {
|
|
232
|
+
score?: number;
|
|
233
|
+
tag?: string;
|
|
234
|
+
};
|
|
235
|
+
/**
|
|
236
|
+
* An array of user-supplied tags
|
|
237
|
+
*/
|
|
238
|
+
type UserTag = {
|
|
239
|
+
/** The id of the tag in Collections */
|
|
240
|
+
id?: string;
|
|
241
|
+
name?: string;
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* Batch delete data sets.
|
|
245
|
+
*
|
|
246
|
+
* @param body an object with the body content
|
|
247
|
+
* @throws DeleteDataSetsHttpError
|
|
248
|
+
*/
|
|
249
|
+
declare const deleteDataSets: (body: BatchIdDto, options?: ApiCallOptions) => Promise<DeleteDataSetsHttpResponse>;
|
|
250
|
+
type DeleteDataSetsHttpResponse = {
|
|
251
|
+
data: void;
|
|
252
|
+
headers: Headers;
|
|
253
|
+
status: 204;
|
|
254
|
+
};
|
|
255
|
+
type DeleteDataSetsHttpError = {
|
|
256
|
+
data: ErrorResponse;
|
|
257
|
+
headers: Headers;
|
|
258
|
+
status: 400 | 401 | 403 | 404 | 409 | 500 | 503;
|
|
259
|
+
};
|
|
260
|
+
/**
|
|
261
|
+
* Save new data set
|
|
262
|
+
*
|
|
263
|
+
* @param body an object with the body content
|
|
264
|
+
* @throws CreateDataSetHttpError
|
|
265
|
+
*/
|
|
266
|
+
declare const createDataSet: (body: DataSet, options?: ApiCallOptions) => Promise<CreateDataSetHttpResponse>;
|
|
267
|
+
type CreateDataSetHttpResponse = {
|
|
268
|
+
data: DataSet;
|
|
269
|
+
headers: Headers;
|
|
270
|
+
status: 201;
|
|
271
|
+
};
|
|
272
|
+
type CreateDataSetHttpError = {
|
|
273
|
+
data: ErrorResponse;
|
|
274
|
+
headers: Headers;
|
|
275
|
+
status: 400 | 401 | 403 | 404 | 409 | 500 | 503;
|
|
276
|
+
};
|
|
277
|
+
/**
|
|
278
|
+
* Get data set by ID.
|
|
279
|
+
*
|
|
280
|
+
* @param dataSetId
|
|
281
|
+
* @param query an object with query parameters
|
|
282
|
+
* @throws GetDataSetHttpError
|
|
283
|
+
*/
|
|
284
|
+
declare const getDataSet: (dataSetId: string, query: {
|
|
285
|
+
/** Comma-separated fields to return in the response. */
|
|
286
|
+
projections?: string[];
|
|
287
|
+
}, options?: ApiCallOptions) => Promise<GetDataSetHttpResponse>;
|
|
288
|
+
type GetDataSetHttpResponse = {
|
|
289
|
+
data: DataSet;
|
|
290
|
+
headers: Headers;
|
|
291
|
+
status: 200;
|
|
292
|
+
};
|
|
293
|
+
type GetDataSetHttpError = {
|
|
294
|
+
data: ErrorResponse;
|
|
295
|
+
headers: Headers;
|
|
296
|
+
status: 400 | 401 | 403 | 404 | 409 | 500 | 503;
|
|
297
|
+
};
|
|
298
|
+
/**
|
|
299
|
+
* Patch data set.
|
|
300
|
+
*
|
|
301
|
+
* @param dataSetId
|
|
302
|
+
* @param body an object with the body content
|
|
303
|
+
* @throws PatchDataSetHttpError
|
|
304
|
+
*/
|
|
305
|
+
declare const patchDataSet: (dataSetId: string, body: JsonPatch[], options?: ApiCallOptions) => Promise<PatchDataSetHttpResponse>;
|
|
306
|
+
type PatchDataSetHttpResponse = {
|
|
307
|
+
data: DataSet;
|
|
308
|
+
headers: Headers;
|
|
309
|
+
status: 200 | 204;
|
|
310
|
+
};
|
|
311
|
+
type PatchDataSetHttpError = {
|
|
312
|
+
data: ErrorResponse;
|
|
313
|
+
headers: Headers;
|
|
314
|
+
status: 400 | 401 | 403 | 404 | 409 | 500 | 503;
|
|
315
|
+
};
|
|
316
|
+
/**
|
|
317
|
+
* Update data set.
|
|
318
|
+
*
|
|
319
|
+
* @param dataSetId
|
|
320
|
+
* @param body an object with the body content
|
|
321
|
+
* @throws UpdateDataSetHttpError
|
|
322
|
+
*/
|
|
323
|
+
declare const updateDataSet: (dataSetId: string, body: DataSet, options?: ApiCallOptions) => Promise<UpdateDataSetHttpResponse>;
|
|
324
|
+
type UpdateDataSetHttpResponse = {
|
|
325
|
+
data: DataSet;
|
|
326
|
+
headers: Headers;
|
|
327
|
+
status: 200;
|
|
328
|
+
};
|
|
329
|
+
type UpdateDataSetHttpError = {
|
|
330
|
+
data: ErrorResponse;
|
|
331
|
+
headers: Headers;
|
|
332
|
+
status: 400 | 401 | 403 | 404 | 409 | 500 | 503;
|
|
333
|
+
};
|
|
334
|
+
/**
|
|
335
|
+
* Get profile for the given dataset and connection Id pair, if the profile already exists in the system. Profile returned can be either latest or Stale one based on when it was computed.
|
|
336
|
+
*
|
|
337
|
+
* @param dataSetId
|
|
338
|
+
* @param query an object with query parameters
|
|
339
|
+
* @throws GetDataSetProfilesHttpError
|
|
340
|
+
*/
|
|
341
|
+
declare const getDataSetProfiles: (dataSetId: string, query: {
|
|
342
|
+
/** Comma-separated data connection IDs. */
|
|
343
|
+
dataConnectionIds?: string[];
|
|
344
|
+
/** Page size limit. */
|
|
345
|
+
limit?: number;
|
|
346
|
+
page?: number;
|
|
347
|
+
/** Comma-separated fields to return in the response. */
|
|
348
|
+
projections?: string[];
|
|
349
|
+
sort?: string[];
|
|
350
|
+
}, options?: ApiCallOptions) => Promise<GetDataSetProfilesHttpResponse>;
|
|
351
|
+
type GetDataSetProfilesHttpResponse = {
|
|
352
|
+
data: PageDataSetProfile;
|
|
353
|
+
headers: Headers;
|
|
354
|
+
status: 200 | 202;
|
|
355
|
+
prev?: (options?: ApiCallOptions) => Promise<GetDataSetProfilesHttpResponse>;
|
|
356
|
+
next?: (options?: ApiCallOptions) => Promise<GetDataSetProfilesHttpResponse>;
|
|
357
|
+
};
|
|
358
|
+
type GetDataSetProfilesHttpError = {
|
|
359
|
+
data: ErrorResponse;
|
|
360
|
+
headers: Headers;
|
|
361
|
+
status: 400 | 401 | 403 | 404 | 409 | 500 | 503;
|
|
362
|
+
};
|
|
363
|
+
/**
|
|
364
|
+
* Clears the cache for data-sets api requests.
|
|
365
|
+
*/
|
|
366
|
+
declare function clearCache(): void;
|
|
367
|
+
interface DataSetsAPI {
|
|
368
|
+
/**
|
|
369
|
+
* Batch delete data sets.
|
|
370
|
+
*
|
|
371
|
+
* @param body an object with the body content
|
|
372
|
+
* @throws DeleteDataSetsHttpError
|
|
373
|
+
*/
|
|
374
|
+
deleteDataSets: typeof deleteDataSets;
|
|
375
|
+
/**
|
|
376
|
+
* Save new data set
|
|
377
|
+
*
|
|
378
|
+
* @param body an object with the body content
|
|
379
|
+
* @throws CreateDataSetHttpError
|
|
380
|
+
*/
|
|
381
|
+
createDataSet: typeof createDataSet;
|
|
382
|
+
/**
|
|
383
|
+
* Get data set by ID.
|
|
384
|
+
*
|
|
385
|
+
* @param dataSetId
|
|
386
|
+
* @param query an object with query parameters
|
|
387
|
+
* @throws GetDataSetHttpError
|
|
388
|
+
*/
|
|
389
|
+
getDataSet: typeof getDataSet;
|
|
390
|
+
/**
|
|
391
|
+
* Patch data set.
|
|
392
|
+
*
|
|
393
|
+
* @param dataSetId
|
|
394
|
+
* @param body an object with the body content
|
|
395
|
+
* @throws PatchDataSetHttpError
|
|
396
|
+
*/
|
|
397
|
+
patchDataSet: typeof patchDataSet;
|
|
398
|
+
/**
|
|
399
|
+
* Update data set.
|
|
400
|
+
*
|
|
401
|
+
* @param dataSetId
|
|
402
|
+
* @param body an object with the body content
|
|
403
|
+
* @throws UpdateDataSetHttpError
|
|
404
|
+
*/
|
|
405
|
+
updateDataSet: typeof updateDataSet;
|
|
406
|
+
/**
|
|
407
|
+
* Get profile for the given dataset and connection Id pair, if the profile already exists in the system. Profile returned can be either latest or Stale one based on when it was computed.
|
|
408
|
+
*
|
|
409
|
+
* @param dataSetId
|
|
410
|
+
* @param query an object with query parameters
|
|
411
|
+
* @throws GetDataSetProfilesHttpError
|
|
412
|
+
*/
|
|
413
|
+
getDataSetProfiles: typeof getDataSetProfiles;
|
|
414
|
+
/**
|
|
415
|
+
* Clears the cache for data-sets api requests.
|
|
416
|
+
*/
|
|
417
|
+
clearCache: typeof clearCache;
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* Functions for the data-sets api
|
|
421
|
+
*/
|
|
422
|
+
declare const dataSetsExport: DataSetsAPI;
|
|
423
|
+
|
|
424
|
+
export { type BatchIdDto, type BinnedFrequency, type Classification, type CreateDataSetHttpError, type CreateDataSetHttpResponse, type DataAssetInfo, type DataField, type DataSet, type DataSetProfile, type DataSetsAPI, type DataStoreInfo, type DeleteDataSetsHttpError, type DeleteDataSetsHttpResponse, type Error, type ErrorResponse, type FieldDataType, type FieldProfile, type Frequency, type GetDataSetHttpError, type GetDataSetHttpResponse, type GetDataSetProfilesHttpError, type GetDataSetProfilesHttpResponse, type JsonPatch, type Link, type Links, type Operational, type PageDataSetProfile, type PatchDataSetHttpError, type PatchDataSetHttpResponse, type ProfileMetadata, type Schema, type TableConnectionInfo, type TableProfile, type TableRecord, type TableSample, type Tag, type UpdateDataSetHttpError, type UpdateDataSetHttpResponse, type UserTag, clearCache, createDataSet, dataSetsExport as default, deleteDataSets, getDataSet, getDataSetProfiles, patchDataSet, updateDataSet };
|
package/data-sets.js
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
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-sets.ts
|
|
9
|
+
var deleteDataSets = async (body, options) => invokeFetch("data-sets", {
|
|
10
|
+
method: "delete",
|
|
11
|
+
pathTemplate: "/api/v1/data-sets",
|
|
12
|
+
body,
|
|
13
|
+
contentType: "application/json",
|
|
14
|
+
options
|
|
15
|
+
});
|
|
16
|
+
var createDataSet = async (body, options) => invokeFetch("data-sets", {
|
|
17
|
+
method: "post",
|
|
18
|
+
pathTemplate: "/api/v1/data-sets",
|
|
19
|
+
body,
|
|
20
|
+
contentType: "application/json",
|
|
21
|
+
options
|
|
22
|
+
});
|
|
23
|
+
var getDataSet = async (dataSetId, query, options) => invokeFetch("data-sets", {
|
|
24
|
+
method: "get",
|
|
25
|
+
pathTemplate: "/api/v1/data-sets/{data-set-id}",
|
|
26
|
+
pathVariables: { "data-set-id": dataSetId },
|
|
27
|
+
query,
|
|
28
|
+
options
|
|
29
|
+
});
|
|
30
|
+
var patchDataSet = async (dataSetId, body, options) => invokeFetch("data-sets", {
|
|
31
|
+
method: "patch",
|
|
32
|
+
pathTemplate: "/api/v1/data-sets/{data-set-id}",
|
|
33
|
+
pathVariables: { "data-set-id": dataSetId },
|
|
34
|
+
body,
|
|
35
|
+
contentType: "application/json",
|
|
36
|
+
options
|
|
37
|
+
});
|
|
38
|
+
var updateDataSet = async (dataSetId, body, options) => invokeFetch("data-sets", {
|
|
39
|
+
method: "put",
|
|
40
|
+
pathTemplate: "/api/v1/data-sets/{data-set-id}",
|
|
41
|
+
pathVariables: { "data-set-id": dataSetId },
|
|
42
|
+
body,
|
|
43
|
+
contentType: "application/json",
|
|
44
|
+
options
|
|
45
|
+
});
|
|
46
|
+
var getDataSetProfiles = async (dataSetId, query, options) => invokeFetch("data-sets", {
|
|
47
|
+
method: "get",
|
|
48
|
+
pathTemplate: "/api/v1/data-sets/{data-set-id}/profiles",
|
|
49
|
+
pathVariables: { "data-set-id": dataSetId },
|
|
50
|
+
query,
|
|
51
|
+
options
|
|
52
|
+
});
|
|
53
|
+
function clearCache() {
|
|
54
|
+
return clearApiCache("data-sets");
|
|
55
|
+
}
|
|
56
|
+
var dataSetsExport = {
|
|
57
|
+
deleteDataSets,
|
|
58
|
+
createDataSet,
|
|
59
|
+
getDataSet,
|
|
60
|
+
patchDataSet,
|
|
61
|
+
updateDataSet,
|
|
62
|
+
getDataSetProfiles,
|
|
63
|
+
clearCache
|
|
64
|
+
};
|
|
65
|
+
var data_sets_default = dataSetsExport;
|
|
66
|
+
export {
|
|
67
|
+
clearCache,
|
|
68
|
+
createDataSet,
|
|
69
|
+
data_sets_default as default,
|
|
70
|
+
deleteDataSets,
|
|
71
|
+
getDataSet,
|
|
72
|
+
getDataSetProfiles,
|
|
73
|
+
patchDataSet,
|
|
74
|
+
updateDataSet
|
|
75
|
+
};
|