@qlik/api 0.0.1
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/LICENSE +17 -0
- package/README.md +8 -0
- package/api-keys.d.mts +313 -0
- package/api-keys.d.ts +313 -0
- package/api-keys.js +76 -0
- package/api-keys.mjs +76 -0
- package/apps.d.mts +1921 -0
- package/apps.d.ts +1921 -0
- package/apps.js +331 -0
- package/apps.mjs +331 -0
- package/audits.d.mts +262 -0
- package/audits.d.ts +262 -0
- package/audits.js +63 -0
- package/audits.mjs +63 -0
- package/auth-CSVTXOZX.js +36 -0
- package/auth-TE272Q34.mjs +36 -0
- package/auth-types-nnUcWhuU.d.mts +98 -0
- package/auth-types-nnUcWhuU.d.ts +98 -0
- package/auth.d.mts +26 -0
- package/auth.d.ts +26 -0
- package/auth.js +13 -0
- package/auth.mjs +13 -0
- package/automations.d.mts +638 -0
- package/automations.d.ts +638 -0
- package/automations.js +166 -0
- package/automations.mjs +166 -0
- package/brands.d.mts +614 -0
- package/brands.d.ts +614 -0
- package/brands.js +118 -0
- package/brands.mjs +118 -0
- package/chunk-3YE7EI7I.mjs +17 -0
- package/chunk-4ES65KO3.js +57 -0
- package/chunk-4FLMND6T.js +25 -0
- package/chunk-4OMEH5SW.mjs +1337 -0
- package/chunk-CKPJE4IA.mjs +57 -0
- package/chunk-GUQBHY3H.mjs +25 -0
- package/chunk-OULT3V2U.js +17 -0
- package/chunk-WM7FQU2U.mjs +21 -0
- package/chunk-XASXL2NC.js +1337 -0
- package/chunk-ZT4C7KCQ.js +21 -0
- package/collections.d.mts +535 -0
- package/collections.d.ts +535 -0
- package/collections.js +100 -0
- package/collections.mjs +100 -0
- package/csp-origins.d.mts +258 -0
- package/csp-origins.d.ts +258 -0
- package/csp-origins.js +66 -0
- package/csp-origins.mjs +66 -0
- package/data-assets.d.mts +195 -0
- package/data-assets.d.ts +195 -0
- package/data-assets.js +61 -0
- package/data-assets.mjs +61 -0
- package/data-connections.d.mts +527 -0
- package/data-connections.d.ts +527 -0
- package/data-connections.js +96 -0
- package/data-connections.mjs +96 -0
- package/data-credentials.d.mts +188 -0
- package/data-credentials.d.ts +188 -0
- package/data-credentials.js +56 -0
- package/data-credentials.mjs +56 -0
- package/data-files.d.mts +471 -0
- package/data-files.d.ts +471 -0
- package/data-files.js +116 -0
- package/data-files.mjs +116 -0
- package/docs/examples.md +4 -0
- package/enigma-session-4L373ALV.mjs +10196 -0
- package/enigma-session-TEB53FAF.js +10196 -0
- package/esm-4X3DKK5D.js +63 -0
- package/esm-SOWVJKOQ.mjs +63 -0
- package/extensions.d.mts +257 -0
- package/extensions.d.ts +257 -0
- package/extensions.js +74 -0
- package/extensions.mjs +74 -0
- package/global.types-Eto4uYwy.d.mts +102 -0
- package/global.types-hIvp-WdX.d.ts +102 -0
- package/glossaries.d.mts +1041 -0
- package/glossaries.d.ts +1041 -0
- package/glossaries.js +225 -0
- package/glossaries.mjs +225 -0
- package/groups.d.mts +379 -0
- package/groups.d.ts +379 -0
- package/groups.js +83 -0
- package/groups.mjs +83 -0
- package/identity-providers.d.mts +492 -0
- package/identity-providers.d.ts +492 -0
- package/identity-providers.js +80 -0
- package/identity-providers.mjs +80 -0
- package/index.d.mts +142 -0
- package/index.d.ts +142 -0
- package/index.js +678 -0
- package/index.mjs +678 -0
- package/invoke-fetch-MSSJAZ7K.mjs +14 -0
- package/invoke-fetch-PEI54KZO.js +14 -0
- package/items.d.mts +501 -0
- package/items.d.ts +501 -0
- package/items.js +84 -0
- package/items.mjs +84 -0
- package/licenses.d.mts +436 -0
- package/licenses.d.ts +436 -0
- package/licenses.js +87 -0
- package/licenses.mjs +87 -0
- package/package.json +264 -0
- package/qix-EU7PXRZ6.mjs +573 -0
- package/qix-RLTISYTB.js +573 -0
- package/qix.d.mts +11543 -0
- package/qix.d.ts +11543 -0
- package/qix.js +9 -0
- package/qix.mjs +9 -0
- package/quotas.d.mts +105 -0
- package/quotas.d.ts +105 -0
- package/quotas.js +31 -0
- package/quotas.mjs +31 -0
- package/reload-tasks.d.mts +222 -0
- package/reload-tasks.d.ts +222 -0
- package/reload-tasks.js +59 -0
- package/reload-tasks.mjs +59 -0
- package/reloads.d.mts +189 -0
- package/reloads.d.ts +189 -0
- package/reloads.js +44 -0
- package/reloads.mjs +44 -0
- package/roles.d.mts +150 -0
- package/roles.d.ts +150 -0
- package/roles.js +30 -0
- package/roles.mjs +30 -0
- package/spaces.d.mts +524 -0
- package/spaces.d.ts +524 -0
- package/spaces.js +118 -0
- package/spaces.mjs +118 -0
- package/temp-contents.d.mts +222 -0
- package/temp-contents.d.ts +222 -0
- package/temp-contents.js +60 -0
- package/temp-contents.mjs +60 -0
- package/tenants.d.mts +276 -0
- package/tenants.d.ts +276 -0
- package/tenants.js +68 -0
- package/tenants.mjs +68 -0
- package/themes.d.mts +235 -0
- package/themes.d.ts +235 -0
- package/themes.js +74 -0
- package/themes.mjs +74 -0
- package/transports.d.mts +298 -0
- package/transports.d.ts +298 -0
- package/transports.js +62 -0
- package/transports.mjs +62 -0
- package/users.d.mts +544 -0
- package/users.d.ts +544 -0
- package/users.js +99 -0
- package/users.mjs +99 -0
- package/web-integrations.d.mts +246 -0
- package/web-integrations.d.ts +246 -0
- package/web-integrations.js +59 -0
- package/web-integrations.mjs +59 -0
- package/web-notifications.d.mts +220 -0
- package/web-notifications.d.ts +220 -0
- package/web-notifications.js +66 -0
- package/web-notifications.mjs +66 -0
- package/webhooks.d.mts +422 -0
- package/webhooks.d.ts +422 -0
- package/webhooks.js +100 -0
- package/webhooks.mjs +100 -0
package/csp-origins.mjs
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import {
|
|
2
|
+
clearApiCache,
|
|
3
|
+
invokeFetch
|
|
4
|
+
} from "./chunk-3YE7EI7I.mjs";
|
|
5
|
+
import "./chunk-WM7FQU2U.mjs";
|
|
6
|
+
|
|
7
|
+
// src/public/rest/csp-origins.ts
|
|
8
|
+
var getCSPEntries = async (query, options) => invokeFetch("csp-origins", {
|
|
9
|
+
method: "get",
|
|
10
|
+
pathTemplate: "/api/v1/csp-origins",
|
|
11
|
+
query,
|
|
12
|
+
options
|
|
13
|
+
});
|
|
14
|
+
var createCSPEntry = async (body, options) => invokeFetch("csp-origins", {
|
|
15
|
+
method: "post",
|
|
16
|
+
pathTemplate: "/api/v1/csp-origins",
|
|
17
|
+
body,
|
|
18
|
+
options
|
|
19
|
+
});
|
|
20
|
+
var getCSPHeader = async (options) => invokeFetch("csp-origins", {
|
|
21
|
+
method: "get",
|
|
22
|
+
pathTemplate: "/api/v1/csp-origins/actions/generate-header",
|
|
23
|
+
options
|
|
24
|
+
});
|
|
25
|
+
var deleteCSPEntry = async (id, options) => invokeFetch("csp-origins", {
|
|
26
|
+
method: "delete",
|
|
27
|
+
pathTemplate: "/api/v1/csp-origins/{id}",
|
|
28
|
+
pathVariables: { id },
|
|
29
|
+
options
|
|
30
|
+
});
|
|
31
|
+
var getCSPEntry = async (id, options) => invokeFetch("csp-origins", {
|
|
32
|
+
method: "get",
|
|
33
|
+
pathTemplate: "/api/v1/csp-origins/{id}",
|
|
34
|
+
pathVariables: { id },
|
|
35
|
+
options
|
|
36
|
+
});
|
|
37
|
+
var updateCSPEntry = async (id, body, options) => invokeFetch("csp-origins", {
|
|
38
|
+
method: "put",
|
|
39
|
+
pathTemplate: "/api/v1/csp-origins/{id}",
|
|
40
|
+
pathVariables: { id },
|
|
41
|
+
body,
|
|
42
|
+
options
|
|
43
|
+
});
|
|
44
|
+
function clearCache() {
|
|
45
|
+
return clearApiCache("csp-origins");
|
|
46
|
+
}
|
|
47
|
+
var cspOriginsExport = {
|
|
48
|
+
getCSPEntries,
|
|
49
|
+
createCSPEntry,
|
|
50
|
+
getCSPHeader,
|
|
51
|
+
deleteCSPEntry,
|
|
52
|
+
getCSPEntry,
|
|
53
|
+
updateCSPEntry,
|
|
54
|
+
clearCache
|
|
55
|
+
};
|
|
56
|
+
var csp_origins_default = cspOriginsExport;
|
|
57
|
+
export {
|
|
58
|
+
clearCache,
|
|
59
|
+
createCSPEntry,
|
|
60
|
+
csp_origins_default as default,
|
|
61
|
+
deleteCSPEntry,
|
|
62
|
+
getCSPEntries,
|
|
63
|
+
getCSPEntry,
|
|
64
|
+
getCSPHeader,
|
|
65
|
+
updateCSPEntry
|
|
66
|
+
};
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { A as ApiCallOptions } from './global.types-Eto4uYwy.mjs';
|
|
2
|
+
import './auth-types-nnUcWhuU.mjs';
|
|
3
|
+
|
|
4
|
+
type BatchIdDto = {
|
|
5
|
+
ids?: string[];
|
|
6
|
+
};
|
|
7
|
+
type DataAsset = {
|
|
8
|
+
appId: string;
|
|
9
|
+
appType: string;
|
|
10
|
+
/** The value is automatically set by the application. User defined value is ignored. */
|
|
11
|
+
readonly createdBy?: string;
|
|
12
|
+
/** The value is automatically set by the application. User defined value is ignored. */
|
|
13
|
+
readonly createdTime?: string;
|
|
14
|
+
dataStoreInfo?: DataStoreInfo;
|
|
15
|
+
description?: string;
|
|
16
|
+
/** Only required when updating the resource. Must be null for new resources. */
|
|
17
|
+
id?: string;
|
|
18
|
+
/** The value is automatically set by the application. User defined value is ignored. */
|
|
19
|
+
readonly lastModifiedBy?: string;
|
|
20
|
+
/** The value is automatically set by the application. User defined value is ignored. */
|
|
21
|
+
readonly lastModifiedTime?: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
/** The value is automatically set by the application. */
|
|
24
|
+
ownerId?: string;
|
|
25
|
+
/** A Map of name-value pairs. */
|
|
26
|
+
properties?: unknown;
|
|
27
|
+
spaceId?: string;
|
|
28
|
+
tags?: string[];
|
|
29
|
+
technicalDescription?: string;
|
|
30
|
+
technicalName: string;
|
|
31
|
+
/** The value is automatically set by the application. User defined value is ignored. */
|
|
32
|
+
readonly tenantId?: string;
|
|
33
|
+
/** Only required when updating the resource. Must be null for new resources. */
|
|
34
|
+
version?: number;
|
|
35
|
+
};
|
|
36
|
+
type DataStoreInfo = {
|
|
37
|
+
id: string;
|
|
38
|
+
readonly name?: string;
|
|
39
|
+
readonly type?: string;
|
|
40
|
+
};
|
|
41
|
+
type Error = {
|
|
42
|
+
code?: string;
|
|
43
|
+
detail?: string;
|
|
44
|
+
status?: string;
|
|
45
|
+
title?: string;
|
|
46
|
+
};
|
|
47
|
+
type ErrorResponse = {
|
|
48
|
+
errors?: Error[];
|
|
49
|
+
traceId?: string;
|
|
50
|
+
};
|
|
51
|
+
type JsonPatch = {
|
|
52
|
+
/** A JSON Pointer path pointing to the location to move/copy from. */
|
|
53
|
+
from?: string;
|
|
54
|
+
/** The operation to be performed. */
|
|
55
|
+
op: "add" | "remove" | "replace" | "move" | "copy" | "test";
|
|
56
|
+
/** A JSON pointer to the property being affected. */
|
|
57
|
+
path: string;
|
|
58
|
+
/** The value to add, replace or test. */
|
|
59
|
+
value?: unknown;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Batch delete data assets by IDs.
|
|
63
|
+
* @param body an object with the body content
|
|
64
|
+
* @throws DeleteDataAssetsHttpError
|
|
65
|
+
*/
|
|
66
|
+
declare const deleteDataAssets: (body: BatchIdDto, options?: ApiCallOptions) => Promise<DeleteDataAssetsHttpResponse>;
|
|
67
|
+
type DeleteDataAssetsHttpResponse = {
|
|
68
|
+
data: void;
|
|
69
|
+
headers: Headers;
|
|
70
|
+
status: number;
|
|
71
|
+
};
|
|
72
|
+
type DeleteDataAssetsHttpError = {
|
|
73
|
+
data: ErrorResponse;
|
|
74
|
+
headers: Headers;
|
|
75
|
+
status: number;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Save new data asset.
|
|
79
|
+
* @param body an object with the body content
|
|
80
|
+
* @throws CreateDataAssetHttpError
|
|
81
|
+
*/
|
|
82
|
+
declare const createDataAsset: (body: DataAsset, options?: ApiCallOptions) => Promise<CreateDataAssetHttpResponse>;
|
|
83
|
+
type CreateDataAssetHttpResponse = {
|
|
84
|
+
data: DataAsset;
|
|
85
|
+
headers: Headers;
|
|
86
|
+
status: number;
|
|
87
|
+
};
|
|
88
|
+
type CreateDataAssetHttpError = {
|
|
89
|
+
data: ErrorResponse;
|
|
90
|
+
headers: Headers;
|
|
91
|
+
status: number;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Get data asset by ID.
|
|
95
|
+
* @param dataAssetId
|
|
96
|
+
* @param query an object with query parameters
|
|
97
|
+
* @throws GetDataAssetHttpError
|
|
98
|
+
*/
|
|
99
|
+
declare const getDataAsset: (dataAssetId: string, query: {
|
|
100
|
+
/** Comma-separated fields to return in the response. */
|
|
101
|
+
projections?: string[];
|
|
102
|
+
}, options?: ApiCallOptions) => Promise<GetDataAssetHttpResponse>;
|
|
103
|
+
type GetDataAssetHttpResponse = {
|
|
104
|
+
data: DataAsset;
|
|
105
|
+
headers: Headers;
|
|
106
|
+
status: number;
|
|
107
|
+
};
|
|
108
|
+
type GetDataAssetHttpError = {
|
|
109
|
+
data: ErrorResponse;
|
|
110
|
+
headers: Headers;
|
|
111
|
+
status: number;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Patch data asset.
|
|
115
|
+
* @param dataAssetId
|
|
116
|
+
* @param body an object with the body content
|
|
117
|
+
* @throws PatchDataAssetHttpError
|
|
118
|
+
*/
|
|
119
|
+
declare const patchDataAsset: (dataAssetId: string, body: JsonPatch[], options?: ApiCallOptions) => Promise<PatchDataAssetHttpResponse>;
|
|
120
|
+
type PatchDataAssetHttpResponse = {
|
|
121
|
+
data: DataAsset;
|
|
122
|
+
headers: Headers;
|
|
123
|
+
status: number;
|
|
124
|
+
};
|
|
125
|
+
type PatchDataAssetHttpError = {
|
|
126
|
+
data: ErrorResponse;
|
|
127
|
+
headers: Headers;
|
|
128
|
+
status: number;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Update data asset.
|
|
132
|
+
* @param dataAssetId
|
|
133
|
+
* @param body an object with the body content
|
|
134
|
+
* @throws UpdateDataAssetHttpError
|
|
135
|
+
*/
|
|
136
|
+
declare const updateDataAsset: (dataAssetId: string, body: DataAsset, options?: ApiCallOptions) => Promise<UpdateDataAssetHttpResponse>;
|
|
137
|
+
type UpdateDataAssetHttpResponse = {
|
|
138
|
+
data: DataAsset;
|
|
139
|
+
headers: Headers;
|
|
140
|
+
status: number;
|
|
141
|
+
};
|
|
142
|
+
type UpdateDataAssetHttpError = {
|
|
143
|
+
data: ErrorResponse;
|
|
144
|
+
headers: Headers;
|
|
145
|
+
status: number;
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* Clears the cache for data-assets api requests.
|
|
149
|
+
*/
|
|
150
|
+
declare function clearCache(): void;
|
|
151
|
+
interface DataAssetsAPI {
|
|
152
|
+
/**
|
|
153
|
+
* Batch delete data assets by IDs.
|
|
154
|
+
* @param body an object with the body content
|
|
155
|
+
* @throws DeleteDataAssetsHttpError
|
|
156
|
+
*/
|
|
157
|
+
deleteDataAssets: typeof deleteDataAssets;
|
|
158
|
+
/**
|
|
159
|
+
* Save new data asset.
|
|
160
|
+
* @param body an object with the body content
|
|
161
|
+
* @throws CreateDataAssetHttpError
|
|
162
|
+
*/
|
|
163
|
+
createDataAsset: typeof createDataAsset;
|
|
164
|
+
/**
|
|
165
|
+
* Get data asset by ID.
|
|
166
|
+
* @param dataAssetId
|
|
167
|
+
* @param query an object with query parameters
|
|
168
|
+
* @throws GetDataAssetHttpError
|
|
169
|
+
*/
|
|
170
|
+
getDataAsset: typeof getDataAsset;
|
|
171
|
+
/**
|
|
172
|
+
* Patch data asset.
|
|
173
|
+
* @param dataAssetId
|
|
174
|
+
* @param body an object with the body content
|
|
175
|
+
* @throws PatchDataAssetHttpError
|
|
176
|
+
*/
|
|
177
|
+
patchDataAsset: typeof patchDataAsset;
|
|
178
|
+
/**
|
|
179
|
+
* Update data asset.
|
|
180
|
+
* @param dataAssetId
|
|
181
|
+
* @param body an object with the body content
|
|
182
|
+
* @throws UpdateDataAssetHttpError
|
|
183
|
+
*/
|
|
184
|
+
updateDataAsset: typeof updateDataAsset;
|
|
185
|
+
/**
|
|
186
|
+
* Clears the cache for data-assets api requests.
|
|
187
|
+
*/
|
|
188
|
+
clearCache: typeof clearCache;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Functions for the data-assets api
|
|
192
|
+
*/
|
|
193
|
+
declare const dataAssetsExport: DataAssetsAPI;
|
|
194
|
+
|
|
195
|
+
export { type BatchIdDto, type CreateDataAssetHttpError, type CreateDataAssetHttpResponse, type DataAsset, type DataAssetsAPI, type DataStoreInfo, type DeleteDataAssetsHttpError, type DeleteDataAssetsHttpResponse, type Error, type ErrorResponse, type GetDataAssetHttpError, type GetDataAssetHttpResponse, type JsonPatch, type PatchDataAssetHttpError, type PatchDataAssetHttpResponse, type UpdateDataAssetHttpError, type UpdateDataAssetHttpResponse, clearCache, createDataAsset, dataAssetsExport as default, deleteDataAssets, getDataAsset, patchDataAsset, updateDataAsset };
|
package/data-assets.d.ts
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { A as ApiCallOptions } from './global.types-hIvp-WdX.js';
|
|
2
|
+
import './auth-types-nnUcWhuU.js';
|
|
3
|
+
|
|
4
|
+
type BatchIdDto = {
|
|
5
|
+
ids?: string[];
|
|
6
|
+
};
|
|
7
|
+
type DataAsset = {
|
|
8
|
+
appId: string;
|
|
9
|
+
appType: string;
|
|
10
|
+
/** The value is automatically set by the application. User defined value is ignored. */
|
|
11
|
+
readonly createdBy?: string;
|
|
12
|
+
/** The value is automatically set by the application. User defined value is ignored. */
|
|
13
|
+
readonly createdTime?: string;
|
|
14
|
+
dataStoreInfo?: DataStoreInfo;
|
|
15
|
+
description?: string;
|
|
16
|
+
/** Only required when updating the resource. Must be null for new resources. */
|
|
17
|
+
id?: string;
|
|
18
|
+
/** The value is automatically set by the application. User defined value is ignored. */
|
|
19
|
+
readonly lastModifiedBy?: string;
|
|
20
|
+
/** The value is automatically set by the application. User defined value is ignored. */
|
|
21
|
+
readonly lastModifiedTime?: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
/** The value is automatically set by the application. */
|
|
24
|
+
ownerId?: string;
|
|
25
|
+
/** A Map of name-value pairs. */
|
|
26
|
+
properties?: unknown;
|
|
27
|
+
spaceId?: string;
|
|
28
|
+
tags?: string[];
|
|
29
|
+
technicalDescription?: string;
|
|
30
|
+
technicalName: string;
|
|
31
|
+
/** The value is automatically set by the application. User defined value is ignored. */
|
|
32
|
+
readonly tenantId?: string;
|
|
33
|
+
/** Only required when updating the resource. Must be null for new resources. */
|
|
34
|
+
version?: number;
|
|
35
|
+
};
|
|
36
|
+
type DataStoreInfo = {
|
|
37
|
+
id: string;
|
|
38
|
+
readonly name?: string;
|
|
39
|
+
readonly type?: string;
|
|
40
|
+
};
|
|
41
|
+
type Error = {
|
|
42
|
+
code?: string;
|
|
43
|
+
detail?: string;
|
|
44
|
+
status?: string;
|
|
45
|
+
title?: string;
|
|
46
|
+
};
|
|
47
|
+
type ErrorResponse = {
|
|
48
|
+
errors?: Error[];
|
|
49
|
+
traceId?: string;
|
|
50
|
+
};
|
|
51
|
+
type JsonPatch = {
|
|
52
|
+
/** A JSON Pointer path pointing to the location to move/copy from. */
|
|
53
|
+
from?: string;
|
|
54
|
+
/** The operation to be performed. */
|
|
55
|
+
op: "add" | "remove" | "replace" | "move" | "copy" | "test";
|
|
56
|
+
/** A JSON pointer to the property being affected. */
|
|
57
|
+
path: string;
|
|
58
|
+
/** The value to add, replace or test. */
|
|
59
|
+
value?: unknown;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Batch delete data assets by IDs.
|
|
63
|
+
* @param body an object with the body content
|
|
64
|
+
* @throws DeleteDataAssetsHttpError
|
|
65
|
+
*/
|
|
66
|
+
declare const deleteDataAssets: (body: BatchIdDto, options?: ApiCallOptions) => Promise<DeleteDataAssetsHttpResponse>;
|
|
67
|
+
type DeleteDataAssetsHttpResponse = {
|
|
68
|
+
data: void;
|
|
69
|
+
headers: Headers;
|
|
70
|
+
status: number;
|
|
71
|
+
};
|
|
72
|
+
type DeleteDataAssetsHttpError = {
|
|
73
|
+
data: ErrorResponse;
|
|
74
|
+
headers: Headers;
|
|
75
|
+
status: number;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Save new data asset.
|
|
79
|
+
* @param body an object with the body content
|
|
80
|
+
* @throws CreateDataAssetHttpError
|
|
81
|
+
*/
|
|
82
|
+
declare const createDataAsset: (body: DataAsset, options?: ApiCallOptions) => Promise<CreateDataAssetHttpResponse>;
|
|
83
|
+
type CreateDataAssetHttpResponse = {
|
|
84
|
+
data: DataAsset;
|
|
85
|
+
headers: Headers;
|
|
86
|
+
status: number;
|
|
87
|
+
};
|
|
88
|
+
type CreateDataAssetHttpError = {
|
|
89
|
+
data: ErrorResponse;
|
|
90
|
+
headers: Headers;
|
|
91
|
+
status: number;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Get data asset by ID.
|
|
95
|
+
* @param dataAssetId
|
|
96
|
+
* @param query an object with query parameters
|
|
97
|
+
* @throws GetDataAssetHttpError
|
|
98
|
+
*/
|
|
99
|
+
declare const getDataAsset: (dataAssetId: string, query: {
|
|
100
|
+
/** Comma-separated fields to return in the response. */
|
|
101
|
+
projections?: string[];
|
|
102
|
+
}, options?: ApiCallOptions) => Promise<GetDataAssetHttpResponse>;
|
|
103
|
+
type GetDataAssetHttpResponse = {
|
|
104
|
+
data: DataAsset;
|
|
105
|
+
headers: Headers;
|
|
106
|
+
status: number;
|
|
107
|
+
};
|
|
108
|
+
type GetDataAssetHttpError = {
|
|
109
|
+
data: ErrorResponse;
|
|
110
|
+
headers: Headers;
|
|
111
|
+
status: number;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Patch data asset.
|
|
115
|
+
* @param dataAssetId
|
|
116
|
+
* @param body an object with the body content
|
|
117
|
+
* @throws PatchDataAssetHttpError
|
|
118
|
+
*/
|
|
119
|
+
declare const patchDataAsset: (dataAssetId: string, body: JsonPatch[], options?: ApiCallOptions) => Promise<PatchDataAssetHttpResponse>;
|
|
120
|
+
type PatchDataAssetHttpResponse = {
|
|
121
|
+
data: DataAsset;
|
|
122
|
+
headers: Headers;
|
|
123
|
+
status: number;
|
|
124
|
+
};
|
|
125
|
+
type PatchDataAssetHttpError = {
|
|
126
|
+
data: ErrorResponse;
|
|
127
|
+
headers: Headers;
|
|
128
|
+
status: number;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Update data asset.
|
|
132
|
+
* @param dataAssetId
|
|
133
|
+
* @param body an object with the body content
|
|
134
|
+
* @throws UpdateDataAssetHttpError
|
|
135
|
+
*/
|
|
136
|
+
declare const updateDataAsset: (dataAssetId: string, body: DataAsset, options?: ApiCallOptions) => Promise<UpdateDataAssetHttpResponse>;
|
|
137
|
+
type UpdateDataAssetHttpResponse = {
|
|
138
|
+
data: DataAsset;
|
|
139
|
+
headers: Headers;
|
|
140
|
+
status: number;
|
|
141
|
+
};
|
|
142
|
+
type UpdateDataAssetHttpError = {
|
|
143
|
+
data: ErrorResponse;
|
|
144
|
+
headers: Headers;
|
|
145
|
+
status: number;
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* Clears the cache for data-assets api requests.
|
|
149
|
+
*/
|
|
150
|
+
declare function clearCache(): void;
|
|
151
|
+
interface DataAssetsAPI {
|
|
152
|
+
/**
|
|
153
|
+
* Batch delete data assets by IDs.
|
|
154
|
+
* @param body an object with the body content
|
|
155
|
+
* @throws DeleteDataAssetsHttpError
|
|
156
|
+
*/
|
|
157
|
+
deleteDataAssets: typeof deleteDataAssets;
|
|
158
|
+
/**
|
|
159
|
+
* Save new data asset.
|
|
160
|
+
* @param body an object with the body content
|
|
161
|
+
* @throws CreateDataAssetHttpError
|
|
162
|
+
*/
|
|
163
|
+
createDataAsset: typeof createDataAsset;
|
|
164
|
+
/**
|
|
165
|
+
* Get data asset by ID.
|
|
166
|
+
* @param dataAssetId
|
|
167
|
+
* @param query an object with query parameters
|
|
168
|
+
* @throws GetDataAssetHttpError
|
|
169
|
+
*/
|
|
170
|
+
getDataAsset: typeof getDataAsset;
|
|
171
|
+
/**
|
|
172
|
+
* Patch data asset.
|
|
173
|
+
* @param dataAssetId
|
|
174
|
+
* @param body an object with the body content
|
|
175
|
+
* @throws PatchDataAssetHttpError
|
|
176
|
+
*/
|
|
177
|
+
patchDataAsset: typeof patchDataAsset;
|
|
178
|
+
/**
|
|
179
|
+
* Update data asset.
|
|
180
|
+
* @param dataAssetId
|
|
181
|
+
* @param body an object with the body content
|
|
182
|
+
* @throws UpdateDataAssetHttpError
|
|
183
|
+
*/
|
|
184
|
+
updateDataAsset: typeof updateDataAsset;
|
|
185
|
+
/**
|
|
186
|
+
* Clears the cache for data-assets api requests.
|
|
187
|
+
*/
|
|
188
|
+
clearCache: typeof clearCache;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Functions for the data-assets api
|
|
192
|
+
*/
|
|
193
|
+
declare const dataAssetsExport: DataAssetsAPI;
|
|
194
|
+
|
|
195
|
+
export { type BatchIdDto, type CreateDataAssetHttpError, type CreateDataAssetHttpResponse, type DataAsset, type DataAssetsAPI, type DataStoreInfo, type DeleteDataAssetsHttpError, type DeleteDataAssetsHttpResponse, type Error, type ErrorResponse, type GetDataAssetHttpError, type GetDataAssetHttpResponse, type JsonPatch, type PatchDataAssetHttpError, type PatchDataAssetHttpResponse, type UpdateDataAssetHttpError, type UpdateDataAssetHttpResponse, clearCache, createDataAsset, dataAssetsExport as default, deleteDataAssets, getDataAsset, patchDataAsset, updateDataAsset };
|
package/data-assets.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkOULT3V2Ujs = require('./chunk-OULT3V2U.js');
|
|
5
|
+
require('./chunk-ZT4C7KCQ.js');
|
|
6
|
+
|
|
7
|
+
// src/public/rest/data-assets.ts
|
|
8
|
+
var deleteDataAssets = async (body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "data-assets", {
|
|
9
|
+
method: "delete",
|
|
10
|
+
pathTemplate: "/api/v1/data-assets",
|
|
11
|
+
body,
|
|
12
|
+
options
|
|
13
|
+
});
|
|
14
|
+
var createDataAsset = async (body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "data-assets", {
|
|
15
|
+
method: "post",
|
|
16
|
+
pathTemplate: "/api/v1/data-assets",
|
|
17
|
+
body,
|
|
18
|
+
options
|
|
19
|
+
});
|
|
20
|
+
var getDataAsset = async (dataAssetId, query, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "data-assets", {
|
|
21
|
+
method: "get",
|
|
22
|
+
pathTemplate: "/api/v1/data-assets/{data-asset-id}",
|
|
23
|
+
pathVariables: { "data-asset-id": dataAssetId },
|
|
24
|
+
query,
|
|
25
|
+
options
|
|
26
|
+
});
|
|
27
|
+
var patchDataAsset = async (dataAssetId, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "data-assets", {
|
|
28
|
+
method: "patch",
|
|
29
|
+
pathTemplate: "/api/v1/data-assets/{data-asset-id}",
|
|
30
|
+
pathVariables: { "data-asset-id": dataAssetId },
|
|
31
|
+
body,
|
|
32
|
+
options
|
|
33
|
+
});
|
|
34
|
+
var updateDataAsset = async (dataAssetId, body, options) => _chunkOULT3V2Ujs.invokeFetch.call(void 0, "data-assets", {
|
|
35
|
+
method: "put",
|
|
36
|
+
pathTemplate: "/api/v1/data-assets/{data-asset-id}",
|
|
37
|
+
pathVariables: { "data-asset-id": dataAssetId },
|
|
38
|
+
body,
|
|
39
|
+
options
|
|
40
|
+
});
|
|
41
|
+
function clearCache() {
|
|
42
|
+
return _chunkOULT3V2Ujs.clearApiCache.call(void 0, "data-assets");
|
|
43
|
+
}
|
|
44
|
+
var dataAssetsExport = {
|
|
45
|
+
deleteDataAssets,
|
|
46
|
+
createDataAsset,
|
|
47
|
+
getDataAsset,
|
|
48
|
+
patchDataAsset,
|
|
49
|
+
updateDataAsset,
|
|
50
|
+
clearCache
|
|
51
|
+
};
|
|
52
|
+
var data_assets_default = dataAssetsExport;
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
exports.clearCache = clearCache; exports.createDataAsset = createDataAsset; exports.default = data_assets_default; exports.deleteDataAssets = deleteDataAssets; exports.getDataAsset = getDataAsset; exports.patchDataAsset = patchDataAsset; exports.updateDataAsset = updateDataAsset;
|
package/data-assets.mjs
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import {
|
|
2
|
+
clearApiCache,
|
|
3
|
+
invokeFetch
|
|
4
|
+
} from "./chunk-3YE7EI7I.mjs";
|
|
5
|
+
import "./chunk-WM7FQU2U.mjs";
|
|
6
|
+
|
|
7
|
+
// src/public/rest/data-assets.ts
|
|
8
|
+
var deleteDataAssets = async (body, options) => invokeFetch("data-assets", {
|
|
9
|
+
method: "delete",
|
|
10
|
+
pathTemplate: "/api/v1/data-assets",
|
|
11
|
+
body,
|
|
12
|
+
options
|
|
13
|
+
});
|
|
14
|
+
var createDataAsset = async (body, options) => invokeFetch("data-assets", {
|
|
15
|
+
method: "post",
|
|
16
|
+
pathTemplate: "/api/v1/data-assets",
|
|
17
|
+
body,
|
|
18
|
+
options
|
|
19
|
+
});
|
|
20
|
+
var getDataAsset = async (dataAssetId, query, options) => invokeFetch("data-assets", {
|
|
21
|
+
method: "get",
|
|
22
|
+
pathTemplate: "/api/v1/data-assets/{data-asset-id}",
|
|
23
|
+
pathVariables: { "data-asset-id": dataAssetId },
|
|
24
|
+
query,
|
|
25
|
+
options
|
|
26
|
+
});
|
|
27
|
+
var patchDataAsset = async (dataAssetId, body, options) => invokeFetch("data-assets", {
|
|
28
|
+
method: "patch",
|
|
29
|
+
pathTemplate: "/api/v1/data-assets/{data-asset-id}",
|
|
30
|
+
pathVariables: { "data-asset-id": dataAssetId },
|
|
31
|
+
body,
|
|
32
|
+
options
|
|
33
|
+
});
|
|
34
|
+
var updateDataAsset = async (dataAssetId, body, options) => invokeFetch("data-assets", {
|
|
35
|
+
method: "put",
|
|
36
|
+
pathTemplate: "/api/v1/data-assets/{data-asset-id}",
|
|
37
|
+
pathVariables: { "data-asset-id": dataAssetId },
|
|
38
|
+
body,
|
|
39
|
+
options
|
|
40
|
+
});
|
|
41
|
+
function clearCache() {
|
|
42
|
+
return clearApiCache("data-assets");
|
|
43
|
+
}
|
|
44
|
+
var dataAssetsExport = {
|
|
45
|
+
deleteDataAssets,
|
|
46
|
+
createDataAsset,
|
|
47
|
+
getDataAsset,
|
|
48
|
+
patchDataAsset,
|
|
49
|
+
updateDataAsset,
|
|
50
|
+
clearCache
|
|
51
|
+
};
|
|
52
|
+
var data_assets_default = dataAssetsExport;
|
|
53
|
+
export {
|
|
54
|
+
clearCache,
|
|
55
|
+
createDataAsset,
|
|
56
|
+
data_assets_default as default,
|
|
57
|
+
deleteDataAssets,
|
|
58
|
+
getDataAsset,
|
|
59
|
+
patchDataAsset,
|
|
60
|
+
updateDataAsset
|
|
61
|
+
};
|