@qlik/api 0.0.15 → 0.1.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/README.md +1 -1
- package/api-keys.js +25 -25
- package/apps.js +97 -97
- package/audits.js +23 -23
- package/auth.js +14 -14
- package/automations.js +47 -47
- package/brands.js +35 -35
- package/chunks/4HB3TAEO.js +4 -4
- package/chunks/{EHAANYDL.mjs → 4V5AAWUI.js} +3 -3
- package/chunks/{O4EAKEIN.mjs → D62LI5YU.js} +1 -1
- package/chunks/{6WX5AGKQ.mjs → L2BJNKLV.js} +2 -2
- package/chunks/{3YV6X7S6.mjs → LHCJKIEO.js} +1 -1
- package/chunks/OPRGGO4C.js +8 -8
- package/chunks/{HHOVS7QC.mjs → RNLZBOJU.js} +3 -3
- package/chunks/{BYD63JCG.mjs → SIU6HO6B.js} +5 -3
- package/chunks/{6AD3HYSF.mjs → TFSRDRRS.js} +1 -1
- package/chunks/{HOCTJESP.mjs → VK2CODYY.js} +2 -2
- package/chunks/{UKVTBYP6.mjs → XOVMZWDC.js} +2 -2
- package/collections.js +33 -33
- package/csp-origins.js +23 -23
- package/data-assets.js +21 -21
- package/data-connections.d.ts +97 -61
- package/data-connections.js +29 -29
- package/data-credentials.d.ts +3 -2
- package/data-credentials.js +19 -19
- package/data-files.js +35 -35
- package/docs/authentication.md +5 -5
- package/docs/examples/fetch-spaces.md +1 -15
- package/docs/examples/open-without-data.md +1 -1
- package/docs/examples/show-sheet-list.md +1 -1
- package/docs/features.md +1 -1
- package/extensions.js +25 -25
- package/glossaries.js +59 -59
- package/groups.d.ts +0 -3
- package/groups.js +27 -27
- package/identity-providers.js +27 -27
- package/index.js +53 -53
- package/items.js +27 -27
- package/licenses.js +29 -29
- package/package.json +36 -232
- package/qix.d.ts +1 -1
- package/qix.js +10 -10
- package/quotas.js +15 -15
- package/reload-tasks.js +21 -21
- package/reloads.js +19 -19
- package/roles.js +15 -15
- package/spaces.js +35 -35
- package/temp-contents.js +17 -17
- package/tenants.js +23 -23
- package/themes.js +25 -25
- package/transports.js +23 -23
- package/users.d.ts +1 -3
- package/users.js +31 -31
- package/web-integrations.js +21 -21
- package/web-notifications.js +23 -23
- package/webhooks.js +31 -31
- package/api-keys.d.mts +0 -336
- package/api-keys.mjs +0 -80
- package/apps.d.mts +0 -2431
- package/apps.mjs +0 -398
- package/audits.d.mts +0 -286
- package/audits.mjs +0 -64
- package/auth-types-nnUcWhuU.d.mts +0 -98
- package/auth.d.mts +0 -26
- package/auth.mjs +0 -14
- package/automations.d.mts +0 -682
- package/automations.mjs +0 -173
- package/brands.d.mts +0 -670
- package/brands.mjs +0 -123
- package/chunks/2YWCEGTS.js +0 -21
- package/chunks/34ZKUFEA.js +0 -41
- package/chunks/4WHZ4EIW.js +0 -57
- package/chunks/B4VPD3ZT.js +0 -574
- package/chunks/BM4OSDRZ.js +0 -17
- package/chunks/DCXUEDOW.mjs +0 -67
- package/chunks/MTAQE4WC.js +0 -10411
- package/chunks/PLOSYUG2.js +0 -25
- package/chunks/URIW2U5M.js +0 -17
- package/chunks/VSY5YIQY.mjs +0 -11
- package/chunks/WOYJLK4Y.js +0 -1623
- package/collections.d.mts +0 -581
- package/collections.mjs +0 -114
- package/csp-origins.d.mts +0 -273
- package/csp-origins.mjs +0 -69
- package/data-assets.d.mts +0 -205
- package/data-assets.mjs +0 -66
- package/data-connections.d.mts +0 -558
- package/data-connections.mjs +0 -103
- package/data-credentials.d.mts +0 -203
- package/data-credentials.mjs +0 -59
- package/data-files.d.mts +0 -562
- package/data-files.mjs +0 -123
- package/extensions.d.mts +0 -293
- package/extensions.mjs +0 -77
- package/global.types-5iFvFJvX.d.mts +0 -115
- package/glossaries.d.mts +0 -1173
- package/glossaries.mjs +0 -237
- package/groups.d.mts +0 -434
- package/groups.mjs +0 -88
- package/identity-providers.d.mts +0 -550
- package/identity-providers.mjs +0 -83
- package/index.d.mts +0 -142
- package/index.mjs +0 -716
- package/items.d.mts +0 -535
- package/items.mjs +0 -87
- package/licenses.d.mts +0 -459
- package/licenses.mjs +0 -92
- package/qix.d.mts +0 -11629
- package/qix.mjs +0 -10
- package/quotas.d.mts +0 -112
- package/quotas.mjs +0 -32
- package/reload-tasks.d.mts +0 -227
- package/reload-tasks.mjs +0 -62
- package/reloads.d.mts +0 -207
- package/reloads.mjs +0 -46
- package/roles.d.mts +0 -175
- package/roles.mjs +0 -31
- package/spaces.d.mts +0 -562
- package/spaces.mjs +0 -124
- package/temp-contents.d.mts +0 -167
- package/temp-contents.mjs +0 -41
- package/tenants.d.mts +0 -300
- package/tenants.mjs +0 -73
- package/themes.d.mts +0 -268
- package/themes.mjs +0 -77
- package/transports.d.mts +0 -319
- package/transports.mjs +0 -65
- package/users.d.mts +0 -631
- package/users.mjs +0 -104
- package/web-integrations.d.mts +0 -274
- package/web-integrations.mjs +0 -62
- package/web-notifications.d.mts +0 -250
- package/web-notifications.mjs +0 -69
- package/webhooks.d.mts +0 -445
- package/webhooks.mjs +0 -104
package/csp-origins.d.mts
DELETED
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
import { A as ApiCallOptions } from './global.types-5iFvFJvX.mjs';
|
|
2
|
-
import './auth-types-nnUcWhuU.mjs';
|
|
3
|
-
|
|
4
|
-
type CSPEntry = {
|
|
5
|
-
/** The CSP entry's unique identifier. */
|
|
6
|
-
id?: string;
|
|
7
|
-
} & CSPEntryContent;
|
|
8
|
-
type CSPEntryContent = {
|
|
9
|
-
/** Defines the valid sources for loading web workers and nested browsing contexts using elements such as frame and iFrame. */
|
|
10
|
-
childSrc?: boolean;
|
|
11
|
-
/** Restricts the URLs that can be loaded using script interfaces. */
|
|
12
|
-
connectSrc?: boolean;
|
|
13
|
-
/** Restricts the URLs that can be connected to websockets (all sources will be prefixed with 'wss://'). */
|
|
14
|
-
connectSrcWSS?: boolean;
|
|
15
|
-
/** The UTC timestamp when the CSP entry was created. */
|
|
16
|
-
readonly createdDate?: string;
|
|
17
|
-
/** The reason for adding this origin to the Content Security Policy. */
|
|
18
|
-
description?: string;
|
|
19
|
-
/** Specifies valid sources for loading fonts. */
|
|
20
|
-
fontSrc?: boolean;
|
|
21
|
-
/** Allow forms to be submitted to the origin. */
|
|
22
|
-
formAction?: boolean;
|
|
23
|
-
/** Specifies valid sources for embedding the resource using frame, iFrame, object, embed and applet. */
|
|
24
|
-
frameAncestors?: boolean;
|
|
25
|
-
/** Specifies valid sources for loading nested browsing contexts using elements such as frame and iFrame. */
|
|
26
|
-
frameSrc?: boolean;
|
|
27
|
-
/** Specifies valid sources of images and favicons. */
|
|
28
|
-
imgSrc?: boolean;
|
|
29
|
-
/** Specifies valid sources for loading media using the audio and video elements. */
|
|
30
|
-
mediaSrc?: boolean;
|
|
31
|
-
/** The UTC timestamp when the CSP entry was last modified. */
|
|
32
|
-
readonly modifiedDate?: string;
|
|
33
|
-
/** The name for this entry. */
|
|
34
|
-
name?: string;
|
|
35
|
-
/** Specifies valid sources for the object, embed, and applet elements. */
|
|
36
|
-
objectSrc?: boolean;
|
|
37
|
-
/** The origin that the CSP directives should be applied to. */
|
|
38
|
-
origin: string;
|
|
39
|
-
/** Specifies valid sources for JavaScript. */
|
|
40
|
-
scriptSrc?: boolean;
|
|
41
|
-
/** Specifies valid sources for stylesheets. */
|
|
42
|
-
styleSrc?: boolean;
|
|
43
|
-
/** Specifies valid sources for Worker, SharedWorker, or ServiceWorker scripts. */
|
|
44
|
-
workerSrc?: boolean;
|
|
45
|
-
};
|
|
46
|
-
type CSPEntryList = {
|
|
47
|
-
data?: CSPEntry[];
|
|
48
|
-
links?: {
|
|
49
|
-
next?: Link;
|
|
50
|
-
prev?: Link;
|
|
51
|
-
self?: Link;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
type CSPHeader = {
|
|
55
|
-
/** The compiled CSP header. */
|
|
56
|
-
"Content-Security-Policy"?: string;
|
|
57
|
-
};
|
|
58
|
-
type Error = {
|
|
59
|
-
/** The unique code for the error. */
|
|
60
|
-
code: string;
|
|
61
|
-
/** May be used to provide additional details. */
|
|
62
|
-
detail?: string;
|
|
63
|
-
/** A summary of what went wrong. */
|
|
64
|
-
title: string;
|
|
65
|
-
};
|
|
66
|
-
type ErrorResponse = {
|
|
67
|
-
errors?: Error[];
|
|
68
|
-
};
|
|
69
|
-
type Link = {
|
|
70
|
-
/** URL to a resource request. */
|
|
71
|
-
href: string;
|
|
72
|
-
};
|
|
73
|
-
/**
|
|
74
|
-
* Retrieves all CSP entries for a tenant
|
|
75
|
-
*
|
|
76
|
-
* @param query an object with query parameters
|
|
77
|
-
* @throws GetCSPEntriesHttpError
|
|
78
|
-
*/
|
|
79
|
-
declare const getCSPEntries: (query: {
|
|
80
|
-
/** Filter resources by directive 'childSrc', true/false. */
|
|
81
|
-
childSrc?: boolean;
|
|
82
|
-
/** Filter resources by directive 'connectSrc', true/false. */
|
|
83
|
-
connectSrc?: boolean;
|
|
84
|
-
/** Filter resources by directive 'connectSrcWSS', true/false. */
|
|
85
|
-
connectSrcWSS?: boolean;
|
|
86
|
-
/** Filter resources by directive 'fontSrc', true/false. */
|
|
87
|
-
fontSrc?: boolean;
|
|
88
|
-
/** Filter resources by directive 'formAction', true/false. */
|
|
89
|
-
formAction?: boolean;
|
|
90
|
-
/** Filter resources by directive 'frameAncestors', true/false. */
|
|
91
|
-
frameAncestors?: boolean;
|
|
92
|
-
/** Filter resources by directive 'frameSrc', true/false. */
|
|
93
|
-
frameSrc?: boolean;
|
|
94
|
-
/** Filter resources by directive 'imgSrc', true/false. */
|
|
95
|
-
imgSrc?: boolean;
|
|
96
|
-
/** Maximum number of CSP-Origins to retrieve. */
|
|
97
|
-
limit?: number;
|
|
98
|
-
/** Filter resources by directive 'mediaSrc', true/false. */
|
|
99
|
-
mediaSrc?: boolean;
|
|
100
|
-
/** Filter resources by name (wildcard and case insensitive). */
|
|
101
|
-
name?: string;
|
|
102
|
-
/** Cursor to the next page. */
|
|
103
|
-
next?: string;
|
|
104
|
-
/** Filter resources by directive 'objectSrc', true/false. */
|
|
105
|
-
objectSrc?: boolean;
|
|
106
|
-
/** Filter resources by origin (wildcard and case insensitive). */
|
|
107
|
-
origin?: string;
|
|
108
|
-
/** Cursor to previous next page. */
|
|
109
|
-
prev?: string;
|
|
110
|
-
/** Filter resources by directive 'scriptSrc', true/false. */
|
|
111
|
-
scriptSrc?: boolean;
|
|
112
|
-
/** Field to sort by, prefix with -/+ to indicate order. */
|
|
113
|
-
sort?: "name" | "-name" | "origin" | "-origin" | "createdDate" | "-createdDate" | "modifiedDate" | "-modifiedDate";
|
|
114
|
-
/** Filter resources by directive 'styleSrc', true/false. */
|
|
115
|
-
styleSrc?: boolean;
|
|
116
|
-
/** Filter resources by directive 'workerSrc', true/false. */
|
|
117
|
-
workerSrc?: boolean;
|
|
118
|
-
}, options?: ApiCallOptions) => Promise<GetCSPEntriesHttpResponse>;
|
|
119
|
-
type GetCSPEntriesHttpResponse = {
|
|
120
|
-
data: CSPEntryList;
|
|
121
|
-
headers: Headers;
|
|
122
|
-
status: number;
|
|
123
|
-
prev?: (options?: ApiCallOptions) => Promise<GetCSPEntriesHttpResponse>;
|
|
124
|
-
next?: (options?: ApiCallOptions) => Promise<GetCSPEntriesHttpResponse>;
|
|
125
|
-
};
|
|
126
|
-
type GetCSPEntriesHttpError = {
|
|
127
|
-
data: ErrorResponse;
|
|
128
|
-
headers: Headers;
|
|
129
|
-
status: number;
|
|
130
|
-
};
|
|
131
|
-
/**
|
|
132
|
-
* Creates a new CSP entry
|
|
133
|
-
*
|
|
134
|
-
* @param body an object with the body content
|
|
135
|
-
* @throws CreateCSPEntryHttpError
|
|
136
|
-
*/
|
|
137
|
-
declare const createCSPEntry: (body: CSPEntryContent, options?: ApiCallOptions) => Promise<CreateCSPEntryHttpResponse>;
|
|
138
|
-
type CreateCSPEntryHttpResponse = {
|
|
139
|
-
data: CSPEntry;
|
|
140
|
-
headers: Headers;
|
|
141
|
-
status: number;
|
|
142
|
-
};
|
|
143
|
-
type CreateCSPEntryHttpError = {
|
|
144
|
-
data: ErrorResponse;
|
|
145
|
-
headers: Headers;
|
|
146
|
-
status: number;
|
|
147
|
-
};
|
|
148
|
-
/**
|
|
149
|
-
* Retrieves the CSP header for a tenant
|
|
150
|
-
*
|
|
151
|
-
* @throws GetCSPHeaderHttpError
|
|
152
|
-
*/
|
|
153
|
-
declare const getCSPHeader: (options?: ApiCallOptions) => Promise<GetCSPHeaderHttpResponse>;
|
|
154
|
-
type GetCSPHeaderHttpResponse = {
|
|
155
|
-
data: CSPHeader;
|
|
156
|
-
headers: Headers;
|
|
157
|
-
status: number;
|
|
158
|
-
};
|
|
159
|
-
type GetCSPHeaderHttpError = {
|
|
160
|
-
data: ErrorResponse;
|
|
161
|
-
headers: Headers;
|
|
162
|
-
status: number;
|
|
163
|
-
};
|
|
164
|
-
/**
|
|
165
|
-
* Deletes a specific CSP entry
|
|
166
|
-
*
|
|
167
|
-
* @param id The CSP entry's unique identifier.
|
|
168
|
-
* @throws DeleteCSPEntryHttpError
|
|
169
|
-
*/
|
|
170
|
-
declare const deleteCSPEntry: (id: string, options?: ApiCallOptions) => Promise<DeleteCSPEntryHttpResponse>;
|
|
171
|
-
type DeleteCSPEntryHttpResponse = {
|
|
172
|
-
data: void;
|
|
173
|
-
headers: Headers;
|
|
174
|
-
status: number;
|
|
175
|
-
};
|
|
176
|
-
type DeleteCSPEntryHttpError = {
|
|
177
|
-
data: ErrorResponse;
|
|
178
|
-
headers: Headers;
|
|
179
|
-
status: number;
|
|
180
|
-
};
|
|
181
|
-
/**
|
|
182
|
-
* Returns details for a specific CSP entry
|
|
183
|
-
*
|
|
184
|
-
* @param id The CSP entry's unique identifier.
|
|
185
|
-
* @throws GetCSPEntryHttpError
|
|
186
|
-
*/
|
|
187
|
-
declare const getCSPEntry: (id: string, options?: ApiCallOptions) => Promise<GetCSPEntryHttpResponse>;
|
|
188
|
-
type GetCSPEntryHttpResponse = {
|
|
189
|
-
data: CSPEntry;
|
|
190
|
-
headers: Headers;
|
|
191
|
-
status: number;
|
|
192
|
-
};
|
|
193
|
-
type GetCSPEntryHttpError = {
|
|
194
|
-
data: ErrorResponse;
|
|
195
|
-
headers: Headers;
|
|
196
|
-
status: number;
|
|
197
|
-
};
|
|
198
|
-
/**
|
|
199
|
-
* Updates a CSP entry
|
|
200
|
-
*
|
|
201
|
-
* @param id The CSP entry's unique identifier.
|
|
202
|
-
* @param body an object with the body content
|
|
203
|
-
* @throws UpdateCSPEntryHttpError
|
|
204
|
-
*/
|
|
205
|
-
declare const updateCSPEntry: (id: string, body: CSPEntryContent, options?: ApiCallOptions) => Promise<UpdateCSPEntryHttpResponse>;
|
|
206
|
-
type UpdateCSPEntryHttpResponse = {
|
|
207
|
-
data: CSPEntry;
|
|
208
|
-
headers: Headers;
|
|
209
|
-
status: number;
|
|
210
|
-
};
|
|
211
|
-
type UpdateCSPEntryHttpError = {
|
|
212
|
-
data: ErrorResponse;
|
|
213
|
-
headers: Headers;
|
|
214
|
-
status: number;
|
|
215
|
-
};
|
|
216
|
-
/**
|
|
217
|
-
* Clears the cache for csp-origins api requests.
|
|
218
|
-
*/
|
|
219
|
-
declare function clearCache(): void;
|
|
220
|
-
interface CspOriginsAPI {
|
|
221
|
-
/**
|
|
222
|
-
* Retrieves all CSP entries for a tenant
|
|
223
|
-
*
|
|
224
|
-
* @param query an object with query parameters
|
|
225
|
-
* @throws GetCSPEntriesHttpError
|
|
226
|
-
*/
|
|
227
|
-
getCSPEntries: typeof getCSPEntries;
|
|
228
|
-
/**
|
|
229
|
-
* Creates a new CSP entry
|
|
230
|
-
*
|
|
231
|
-
* @param body an object with the body content
|
|
232
|
-
* @throws CreateCSPEntryHttpError
|
|
233
|
-
*/
|
|
234
|
-
createCSPEntry: typeof createCSPEntry;
|
|
235
|
-
/**
|
|
236
|
-
* Retrieves the CSP header for a tenant
|
|
237
|
-
*
|
|
238
|
-
* @throws GetCSPHeaderHttpError
|
|
239
|
-
*/
|
|
240
|
-
getCSPHeader: typeof getCSPHeader;
|
|
241
|
-
/**
|
|
242
|
-
* Deletes a specific CSP entry
|
|
243
|
-
*
|
|
244
|
-
* @param id The CSP entry's unique identifier.
|
|
245
|
-
* @throws DeleteCSPEntryHttpError
|
|
246
|
-
*/
|
|
247
|
-
deleteCSPEntry: typeof deleteCSPEntry;
|
|
248
|
-
/**
|
|
249
|
-
* Returns details for a specific CSP entry
|
|
250
|
-
*
|
|
251
|
-
* @param id The CSP entry's unique identifier.
|
|
252
|
-
* @throws GetCSPEntryHttpError
|
|
253
|
-
*/
|
|
254
|
-
getCSPEntry: typeof getCSPEntry;
|
|
255
|
-
/**
|
|
256
|
-
* Updates a CSP entry
|
|
257
|
-
*
|
|
258
|
-
* @param id The CSP entry's unique identifier.
|
|
259
|
-
* @param body an object with the body content
|
|
260
|
-
* @throws UpdateCSPEntryHttpError
|
|
261
|
-
*/
|
|
262
|
-
updateCSPEntry: typeof updateCSPEntry;
|
|
263
|
-
/**
|
|
264
|
-
* Clears the cache for csp-origins api requests.
|
|
265
|
-
*/
|
|
266
|
-
clearCache: typeof clearCache;
|
|
267
|
-
}
|
|
268
|
-
/**
|
|
269
|
-
* Functions for the csp-origins api
|
|
270
|
-
*/
|
|
271
|
-
declare const cspOriginsExport: CspOriginsAPI;
|
|
272
|
-
|
|
273
|
-
export { type CSPEntry, type CSPEntryContent, type CSPEntryList, type CSPHeader, type CreateCSPEntryHttpError, type CreateCSPEntryHttpResponse, type CspOriginsAPI, type DeleteCSPEntryHttpError, type DeleteCSPEntryHttpResponse, type Error, type ErrorResponse, type GetCSPEntriesHttpError, type GetCSPEntriesHttpResponse, type GetCSPEntryHttpError, type GetCSPEntryHttpResponse, type GetCSPHeaderHttpError, type GetCSPHeaderHttpResponse, type Link, type UpdateCSPEntryHttpError, type UpdateCSPEntryHttpResponse, clearCache, createCSPEntry, cspOriginsExport as default, deleteCSPEntry, getCSPEntries, getCSPEntry, getCSPHeader, updateCSPEntry };
|
package/csp-origins.mjs
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
clearApiCache,
|
|
3
|
-
invokeFetch
|
|
4
|
-
} from "./chunks/3YV6X7S6.mjs";
|
|
5
|
-
import "./chunks/EHAANYDL.mjs";
|
|
6
|
-
import "./chunks/VSY5YIQY.mjs";
|
|
7
|
-
|
|
8
|
-
// src/public/rest/csp-origins.ts
|
|
9
|
-
var getCSPEntries = async (query, options) => invokeFetch("csp-origins", {
|
|
10
|
-
method: "get",
|
|
11
|
-
pathTemplate: "/api/v1/csp-origins",
|
|
12
|
-
query,
|
|
13
|
-
options
|
|
14
|
-
});
|
|
15
|
-
var createCSPEntry = async (body, options) => invokeFetch("csp-origins", {
|
|
16
|
-
method: "post",
|
|
17
|
-
pathTemplate: "/api/v1/csp-origins",
|
|
18
|
-
body,
|
|
19
|
-
contentType: "application/json",
|
|
20
|
-
options
|
|
21
|
-
});
|
|
22
|
-
var getCSPHeader = async (options) => invokeFetch("csp-origins", {
|
|
23
|
-
method: "get",
|
|
24
|
-
pathTemplate: "/api/v1/csp-origins/actions/generate-header",
|
|
25
|
-
options
|
|
26
|
-
});
|
|
27
|
-
var deleteCSPEntry = async (id, options) => invokeFetch("csp-origins", {
|
|
28
|
-
method: "delete",
|
|
29
|
-
pathTemplate: "/api/v1/csp-origins/{id}",
|
|
30
|
-
pathVariables: { id },
|
|
31
|
-
options
|
|
32
|
-
});
|
|
33
|
-
var getCSPEntry = async (id, options) => invokeFetch("csp-origins", {
|
|
34
|
-
method: "get",
|
|
35
|
-
pathTemplate: "/api/v1/csp-origins/{id}",
|
|
36
|
-
pathVariables: { id },
|
|
37
|
-
options
|
|
38
|
-
});
|
|
39
|
-
var updateCSPEntry = async (id, body, options) => invokeFetch("csp-origins", {
|
|
40
|
-
method: "put",
|
|
41
|
-
pathTemplate: "/api/v1/csp-origins/{id}",
|
|
42
|
-
pathVariables: { id },
|
|
43
|
-
body,
|
|
44
|
-
contentType: "application/json",
|
|
45
|
-
options
|
|
46
|
-
});
|
|
47
|
-
function clearCache() {
|
|
48
|
-
return clearApiCache("csp-origins");
|
|
49
|
-
}
|
|
50
|
-
var cspOriginsExport = {
|
|
51
|
-
getCSPEntries,
|
|
52
|
-
createCSPEntry,
|
|
53
|
-
getCSPHeader,
|
|
54
|
-
deleteCSPEntry,
|
|
55
|
-
getCSPEntry,
|
|
56
|
-
updateCSPEntry,
|
|
57
|
-
clearCache
|
|
58
|
-
};
|
|
59
|
-
var csp_origins_default = cspOriginsExport;
|
|
60
|
-
export {
|
|
61
|
-
clearCache,
|
|
62
|
-
createCSPEntry,
|
|
63
|
-
csp_origins_default as default,
|
|
64
|
-
deleteCSPEntry,
|
|
65
|
-
getCSPEntries,
|
|
66
|
-
getCSPEntry,
|
|
67
|
-
getCSPHeader,
|
|
68
|
-
updateCSPEntry
|
|
69
|
-
};
|
package/data-assets.d.mts
DELETED
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
import { A as ApiCallOptions } from './global.types-5iFvFJvX.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
|
-
*
|
|
64
|
-
* @param body an object with the body content
|
|
65
|
-
* @throws DeleteDataAssetsHttpError
|
|
66
|
-
*/
|
|
67
|
-
declare const deleteDataAssets: (body: BatchIdDto, options?: ApiCallOptions) => Promise<DeleteDataAssetsHttpResponse>;
|
|
68
|
-
type DeleteDataAssetsHttpResponse = {
|
|
69
|
-
data: void;
|
|
70
|
-
headers: Headers;
|
|
71
|
-
status: number;
|
|
72
|
-
};
|
|
73
|
-
type DeleteDataAssetsHttpError = {
|
|
74
|
-
data: ErrorResponse;
|
|
75
|
-
headers: Headers;
|
|
76
|
-
status: number;
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
* Save new data asset.
|
|
80
|
-
*
|
|
81
|
-
* @param body an object with the body content
|
|
82
|
-
* @throws CreateDataAssetHttpError
|
|
83
|
-
*/
|
|
84
|
-
declare const createDataAsset: (body: DataAsset, options?: ApiCallOptions) => Promise<CreateDataAssetHttpResponse>;
|
|
85
|
-
type CreateDataAssetHttpResponse = {
|
|
86
|
-
data: DataAsset;
|
|
87
|
-
headers: Headers;
|
|
88
|
-
status: number;
|
|
89
|
-
};
|
|
90
|
-
type CreateDataAssetHttpError = {
|
|
91
|
-
data: ErrorResponse;
|
|
92
|
-
headers: Headers;
|
|
93
|
-
status: number;
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* Get data asset by ID.
|
|
97
|
-
*
|
|
98
|
-
* @param dataAssetId
|
|
99
|
-
* @param query an object with query parameters
|
|
100
|
-
* @throws GetDataAssetHttpError
|
|
101
|
-
*/
|
|
102
|
-
declare const getDataAsset: (dataAssetId: string, query: {
|
|
103
|
-
/** Comma-separated fields to return in the response. */
|
|
104
|
-
projections?: string[];
|
|
105
|
-
}, options?: ApiCallOptions) => Promise<GetDataAssetHttpResponse>;
|
|
106
|
-
type GetDataAssetHttpResponse = {
|
|
107
|
-
data: DataAsset;
|
|
108
|
-
headers: Headers;
|
|
109
|
-
status: number;
|
|
110
|
-
};
|
|
111
|
-
type GetDataAssetHttpError = {
|
|
112
|
-
data: ErrorResponse;
|
|
113
|
-
headers: Headers;
|
|
114
|
-
status: number;
|
|
115
|
-
};
|
|
116
|
-
/**
|
|
117
|
-
* Patch data asset.
|
|
118
|
-
*
|
|
119
|
-
* @param dataAssetId
|
|
120
|
-
* @param body an object with the body content
|
|
121
|
-
* @throws PatchDataAssetHttpError
|
|
122
|
-
*/
|
|
123
|
-
declare const patchDataAsset: (dataAssetId: string, body: JsonPatch[], options?: ApiCallOptions) => Promise<PatchDataAssetHttpResponse>;
|
|
124
|
-
type PatchDataAssetHttpResponse = {
|
|
125
|
-
data: DataAsset;
|
|
126
|
-
headers: Headers;
|
|
127
|
-
status: number;
|
|
128
|
-
};
|
|
129
|
-
type PatchDataAssetHttpError = {
|
|
130
|
-
data: ErrorResponse;
|
|
131
|
-
headers: Headers;
|
|
132
|
-
status: number;
|
|
133
|
-
};
|
|
134
|
-
/**
|
|
135
|
-
* Update data asset.
|
|
136
|
-
*
|
|
137
|
-
* @param dataAssetId
|
|
138
|
-
* @param body an object with the body content
|
|
139
|
-
* @throws UpdateDataAssetHttpError
|
|
140
|
-
*/
|
|
141
|
-
declare const updateDataAsset: (dataAssetId: string, body: DataAsset, options?: ApiCallOptions) => Promise<UpdateDataAssetHttpResponse>;
|
|
142
|
-
type UpdateDataAssetHttpResponse = {
|
|
143
|
-
data: DataAsset;
|
|
144
|
-
headers: Headers;
|
|
145
|
-
status: number;
|
|
146
|
-
};
|
|
147
|
-
type UpdateDataAssetHttpError = {
|
|
148
|
-
data: ErrorResponse;
|
|
149
|
-
headers: Headers;
|
|
150
|
-
status: number;
|
|
151
|
-
};
|
|
152
|
-
/**
|
|
153
|
-
* Clears the cache for data-assets api requests.
|
|
154
|
-
*/
|
|
155
|
-
declare function clearCache(): void;
|
|
156
|
-
interface DataAssetsAPI {
|
|
157
|
-
/**
|
|
158
|
-
* Batch delete data assets by IDs.
|
|
159
|
-
*
|
|
160
|
-
* @param body an object with the body content
|
|
161
|
-
* @throws DeleteDataAssetsHttpError
|
|
162
|
-
*/
|
|
163
|
-
deleteDataAssets: typeof deleteDataAssets;
|
|
164
|
-
/**
|
|
165
|
-
* Save new data asset.
|
|
166
|
-
*
|
|
167
|
-
* @param body an object with the body content
|
|
168
|
-
* @throws CreateDataAssetHttpError
|
|
169
|
-
*/
|
|
170
|
-
createDataAsset: typeof createDataAsset;
|
|
171
|
-
/**
|
|
172
|
-
* Get data asset by ID.
|
|
173
|
-
*
|
|
174
|
-
* @param dataAssetId
|
|
175
|
-
* @param query an object with query parameters
|
|
176
|
-
* @throws GetDataAssetHttpError
|
|
177
|
-
*/
|
|
178
|
-
getDataAsset: typeof getDataAsset;
|
|
179
|
-
/**
|
|
180
|
-
* Patch data asset.
|
|
181
|
-
*
|
|
182
|
-
* @param dataAssetId
|
|
183
|
-
* @param body an object with the body content
|
|
184
|
-
* @throws PatchDataAssetHttpError
|
|
185
|
-
*/
|
|
186
|
-
patchDataAsset: typeof patchDataAsset;
|
|
187
|
-
/**
|
|
188
|
-
* Update data asset.
|
|
189
|
-
*
|
|
190
|
-
* @param dataAssetId
|
|
191
|
-
* @param body an object with the body content
|
|
192
|
-
* @throws UpdateDataAssetHttpError
|
|
193
|
-
*/
|
|
194
|
-
updateDataAsset: typeof updateDataAsset;
|
|
195
|
-
/**
|
|
196
|
-
* Clears the cache for data-assets api requests.
|
|
197
|
-
*/
|
|
198
|
-
clearCache: typeof clearCache;
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* Functions for the data-assets api
|
|
202
|
-
*/
|
|
203
|
-
declare const dataAssetsExport: DataAssetsAPI;
|
|
204
|
-
|
|
205
|
-
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.mjs
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
clearApiCache,
|
|
3
|
-
invokeFetch
|
|
4
|
-
} from "./chunks/3YV6X7S6.mjs";
|
|
5
|
-
import "./chunks/EHAANYDL.mjs";
|
|
6
|
-
import "./chunks/VSY5YIQY.mjs";
|
|
7
|
-
|
|
8
|
-
// src/public/rest/data-assets.ts
|
|
9
|
-
var deleteDataAssets = async (body, options) => invokeFetch("data-assets", {
|
|
10
|
-
method: "delete",
|
|
11
|
-
pathTemplate: "/api/v1/data-assets",
|
|
12
|
-
body,
|
|
13
|
-
contentType: "application/json",
|
|
14
|
-
options
|
|
15
|
-
});
|
|
16
|
-
var createDataAsset = async (body, options) => invokeFetch("data-assets", {
|
|
17
|
-
method: "post",
|
|
18
|
-
pathTemplate: "/api/v1/data-assets",
|
|
19
|
-
body,
|
|
20
|
-
contentType: "application/json",
|
|
21
|
-
options
|
|
22
|
-
});
|
|
23
|
-
var getDataAsset = async (dataAssetId, query, options) => invokeFetch("data-assets", {
|
|
24
|
-
method: "get",
|
|
25
|
-
pathTemplate: "/api/v1/data-assets/{data-asset-id}",
|
|
26
|
-
pathVariables: { "data-asset-id": dataAssetId },
|
|
27
|
-
query,
|
|
28
|
-
options
|
|
29
|
-
});
|
|
30
|
-
var patchDataAsset = async (dataAssetId, body, options) => invokeFetch("data-assets", {
|
|
31
|
-
method: "patch",
|
|
32
|
-
pathTemplate: "/api/v1/data-assets/{data-asset-id}",
|
|
33
|
-
pathVariables: { "data-asset-id": dataAssetId },
|
|
34
|
-
body,
|
|
35
|
-
contentType: "application/json",
|
|
36
|
-
options
|
|
37
|
-
});
|
|
38
|
-
var updateDataAsset = async (dataAssetId, body, options) => invokeFetch("data-assets", {
|
|
39
|
-
method: "put",
|
|
40
|
-
pathTemplate: "/api/v1/data-assets/{data-asset-id}",
|
|
41
|
-
pathVariables: { "data-asset-id": dataAssetId },
|
|
42
|
-
body,
|
|
43
|
-
contentType: "application/json",
|
|
44
|
-
options
|
|
45
|
-
});
|
|
46
|
-
function clearCache() {
|
|
47
|
-
return clearApiCache("data-assets");
|
|
48
|
-
}
|
|
49
|
-
var dataAssetsExport = {
|
|
50
|
-
deleteDataAssets,
|
|
51
|
-
createDataAsset,
|
|
52
|
-
getDataAsset,
|
|
53
|
-
patchDataAsset,
|
|
54
|
-
updateDataAsset,
|
|
55
|
-
clearCache
|
|
56
|
-
};
|
|
57
|
-
var data_assets_default = dataAssetsExport;
|
|
58
|
-
export {
|
|
59
|
-
clearCache,
|
|
60
|
-
createDataAsset,
|
|
61
|
-
data_assets_default as default,
|
|
62
|
-
deleteDataAssets,
|
|
63
|
-
getDataAsset,
|
|
64
|
-
patchDataAsset,
|
|
65
|
-
updateDataAsset
|
|
66
|
-
};
|