@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/spaces.d.mts
ADDED
|
@@ -0,0 +1,524 @@
|
|
|
1
|
+
import { A as ApiCallOptions } from './global.types-Eto4uYwy.mjs';
|
|
2
|
+
import './auth-types-nnUcWhuU.mjs';
|
|
3
|
+
|
|
4
|
+
type ActionName = "create" | "read" | "update" | "delete" | "publish";
|
|
5
|
+
type Assignment = {
|
|
6
|
+
/** The userId or groupId based on the type. */
|
|
7
|
+
assigneeId: string;
|
|
8
|
+
/** The date and time when the space was created. */
|
|
9
|
+
readonly createdAt?: string;
|
|
10
|
+
/** The ID of the user who created the assignment. */
|
|
11
|
+
readonly createdBy?: string;
|
|
12
|
+
readonly id: string;
|
|
13
|
+
readonly links: {
|
|
14
|
+
self: Link;
|
|
15
|
+
space?: Link;
|
|
16
|
+
};
|
|
17
|
+
/** The roles assigned to a user or group. Must not be empty. */
|
|
18
|
+
roles: RoleType[];
|
|
19
|
+
/** The unique identifier for the space. */
|
|
20
|
+
readonly spaceId: string;
|
|
21
|
+
/** The unique identifier for the tenant. */
|
|
22
|
+
readonly tenantId: string;
|
|
23
|
+
type: "user" | "group";
|
|
24
|
+
/** The date and time when the space was updated. */
|
|
25
|
+
readonly updatedAt?: string;
|
|
26
|
+
/** The ID of the user who updated the assignment. */
|
|
27
|
+
readonly updatedBy?: string;
|
|
28
|
+
};
|
|
29
|
+
type AssignmentCreate = {
|
|
30
|
+
/** The userId or groupId based on the type. */
|
|
31
|
+
assigneeId: string;
|
|
32
|
+
/** The roles assigned to the assigneeId. */
|
|
33
|
+
roles: RoleType[];
|
|
34
|
+
/** The type of assignment such as user or group */
|
|
35
|
+
type: "user" | "group";
|
|
36
|
+
};
|
|
37
|
+
type AssignmentUpdate = {
|
|
38
|
+
/** The roles assigned to the assigneeId. */
|
|
39
|
+
roles?: RoleType[];
|
|
40
|
+
};
|
|
41
|
+
type Assignments = {
|
|
42
|
+
data?: Assignment[];
|
|
43
|
+
readonly links?: {
|
|
44
|
+
next?: Link;
|
|
45
|
+
prev?: Link;
|
|
46
|
+
self: Link;
|
|
47
|
+
};
|
|
48
|
+
readonly meta?: {
|
|
49
|
+
/** The total number of assignments matching the current filter. */
|
|
50
|
+
count: number;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
type Error = {
|
|
54
|
+
/** The error code. */
|
|
55
|
+
code: string;
|
|
56
|
+
/** A human-readable explanation specific to the occurrence of this problem. */
|
|
57
|
+
detail?: string;
|
|
58
|
+
/** Additional properties relating to the error. */
|
|
59
|
+
meta?: {
|
|
60
|
+
/** References to the source of the error. */
|
|
61
|
+
source?: {
|
|
62
|
+
/** The URI query parameter that caused the error. */
|
|
63
|
+
parameter?: string;
|
|
64
|
+
/** A JSON pointer to the property that caused the error. */
|
|
65
|
+
pointer?: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
/** Summary of the problem. */
|
|
69
|
+
title: string;
|
|
70
|
+
};
|
|
71
|
+
type Errors = {
|
|
72
|
+
/** The error code. */
|
|
73
|
+
code?: string;
|
|
74
|
+
/** A human-readable explanation specific to the occurrence of this problem. */
|
|
75
|
+
detail?: string;
|
|
76
|
+
errors?: Error[];
|
|
77
|
+
/** Additional properties relating to the error. */
|
|
78
|
+
meta?: unknown;
|
|
79
|
+
/** References to the source of the error. */
|
|
80
|
+
source?: {
|
|
81
|
+
/** The URI query parameter that caused the error. */
|
|
82
|
+
parameter?: string;
|
|
83
|
+
/** A JSON pointer to the property that caused the error. */
|
|
84
|
+
pointer?: string;
|
|
85
|
+
};
|
|
86
|
+
/** Summary of the problem. */
|
|
87
|
+
title?: string;
|
|
88
|
+
traceId?: string;
|
|
89
|
+
};
|
|
90
|
+
type Link = {
|
|
91
|
+
/** URL that defines the resource. */
|
|
92
|
+
href: string;
|
|
93
|
+
};
|
|
94
|
+
type RoleType = "consumer" | "contributor" | "dataconsumer" | "facilitator" | "operator" | "producer" | "publisher" | "basicconsumer" | "codeveloper";
|
|
95
|
+
type SharedSpaceRoleType = "facilitator" | "consumer" | "producer" | "dataconsumer" | "codeveloper";
|
|
96
|
+
type Space = {
|
|
97
|
+
/** The date and time when the space was created. */
|
|
98
|
+
readonly createdAt?: string;
|
|
99
|
+
/** The ID of the user who created the space. */
|
|
100
|
+
readonly createdBy?: string;
|
|
101
|
+
/** The description of the space. Personal spaces do not have a description. */
|
|
102
|
+
description?: string;
|
|
103
|
+
/** A unique identifier for the space, for example, 62716f4b39b865ece543cd45. */
|
|
104
|
+
readonly id: string;
|
|
105
|
+
readonly links: {
|
|
106
|
+
assignments: Link;
|
|
107
|
+
self: Link;
|
|
108
|
+
};
|
|
109
|
+
/** Information about the space settings. */
|
|
110
|
+
readonly meta?: {
|
|
111
|
+
/** The list of actions allowed by the current user in this space. */
|
|
112
|
+
actions: ActionName[];
|
|
113
|
+
/** The list of roles that could be assigned in this space. */
|
|
114
|
+
assignableRoles: RoleType[];
|
|
115
|
+
/** The list of roles assigned to the current user in this space. */
|
|
116
|
+
roles: RoleType[];
|
|
117
|
+
};
|
|
118
|
+
/** The name of the space. Personal spaces do not have a name. */
|
|
119
|
+
name: string;
|
|
120
|
+
/** The ID for the space owner. */
|
|
121
|
+
readonly ownerId?: string;
|
|
122
|
+
/** The ID for the tenant, for example, xqGQ0k66vSR8f9G7J-vYtHZQkiYrCpct. */
|
|
123
|
+
readonly tenantId: string;
|
|
124
|
+
/** The type of space such as shared, managed, and so on. */
|
|
125
|
+
readonly type?: "shared" | "managed" | "data";
|
|
126
|
+
/** The date and time when the space was updated. */
|
|
127
|
+
readonly updatedAt?: string;
|
|
128
|
+
};
|
|
129
|
+
type SpaceCreate = {
|
|
130
|
+
/** The description of the space. Personal spaces do not have a description. */
|
|
131
|
+
description?: string;
|
|
132
|
+
/** The name of the space. Personal spaces do not have a name. */
|
|
133
|
+
name: string;
|
|
134
|
+
/** The type of space such as shared, managed, and so on. */
|
|
135
|
+
type: "shared" | "managed" | "data";
|
|
136
|
+
};
|
|
137
|
+
type SpacePatch = {
|
|
138
|
+
/** The operation to be performed. */
|
|
139
|
+
op: "replace";
|
|
140
|
+
/** Field of space to be patched (updated). */
|
|
141
|
+
path: "/name" | "/ownerId" | "/description";
|
|
142
|
+
/** The value to be used within the operations.
|
|
143
|
+
// - name: The name (string) of space of maxLength 256 of pattern: ^[^\"\*\?\<\>\/\|\\\:]+$
|
|
144
|
+
// - description: The description (string) of the space. Personal spaces do not have a description.
|
|
145
|
+
// - ownerId: The user ID in uid format (string) of the space owner.
|
|
146
|
+
// */
|
|
147
|
+
value: string;
|
|
148
|
+
}[];
|
|
149
|
+
type SpaceType = "shared" | "managed" | "data";
|
|
150
|
+
type SpaceTypes = {
|
|
151
|
+
readonly data?: SpaceType[];
|
|
152
|
+
};
|
|
153
|
+
type SpaceUpdate = {
|
|
154
|
+
/** The description of the space. Personal spaces do not have a description. */
|
|
155
|
+
description?: string;
|
|
156
|
+
/** The name of the space. */
|
|
157
|
+
name?: string;
|
|
158
|
+
/** The user ID of the space owner. */
|
|
159
|
+
ownerId?: string;
|
|
160
|
+
};
|
|
161
|
+
type Spaces = {
|
|
162
|
+
data?: Space[];
|
|
163
|
+
readonly links?: {
|
|
164
|
+
next?: Link;
|
|
165
|
+
prev?: Link;
|
|
166
|
+
self: Link;
|
|
167
|
+
};
|
|
168
|
+
readonly meta?: {
|
|
169
|
+
/** The total number of spaces matching the current filter. */
|
|
170
|
+
count: number;
|
|
171
|
+
/** The meta related to personal space when applicable. */
|
|
172
|
+
readonly personalSpace?: {
|
|
173
|
+
/** The list of actions allowed by the current user in this space. */
|
|
174
|
+
actions: ActionName[];
|
|
175
|
+
/** resource type */
|
|
176
|
+
resourceType: string;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* Retrieves spaces that the current user has access to and match the query.
|
|
182
|
+
* @param query an object with query parameters
|
|
183
|
+
* @throws GetSpacesHttpError
|
|
184
|
+
*/
|
|
185
|
+
declare const getSpaces: (query: {
|
|
186
|
+
/** Action on space. Supports only "?action=publish". */
|
|
187
|
+
action?: string;
|
|
188
|
+
/** Exact match filtering on space name using SCIM. Case insensitive on attribute name. For example ?filter=name eq "MySpace" and ?filter=NAME eq "MySpace" is both valid. */
|
|
189
|
+
filter?: string;
|
|
190
|
+
/** Maximum number of spaces to return. */
|
|
191
|
+
limit?: number;
|
|
192
|
+
/** Space name to search and filter for. Case-insensitive open search with wildcards both as prefix and suffix. For example, "?name=fin" will get "finance", "Final" and "Griffin". */
|
|
193
|
+
name?: string;
|
|
194
|
+
/** The next page cursor. Next links make use of this. */
|
|
195
|
+
next?: string;
|
|
196
|
+
/** Space ownerId to filter by. For example, "?ownerId=123". */
|
|
197
|
+
ownerId?: string;
|
|
198
|
+
/** The previous page cursor. Previous links make use of this. */
|
|
199
|
+
prev?: string;
|
|
200
|
+
/** Field to sort by. Prefix with +/- to indicate asc/desc. For example, "?sort=+name" to sort ascending on Name. Supported fields are "type", "name" and "createdAt". */
|
|
201
|
+
sort?: string;
|
|
202
|
+
/** Type(s) of space to filter. For example, "?type=managed,shared". */
|
|
203
|
+
type?: string;
|
|
204
|
+
}, options?: ApiCallOptions) => Promise<GetSpacesHttpResponse>;
|
|
205
|
+
type GetSpacesHttpResponse = {
|
|
206
|
+
data: Spaces;
|
|
207
|
+
headers: Headers;
|
|
208
|
+
status: number;
|
|
209
|
+
prev?: (options?: ApiCallOptions) => Promise<GetSpacesHttpResponse>;
|
|
210
|
+
next?: (options?: ApiCallOptions) => Promise<GetSpacesHttpResponse>;
|
|
211
|
+
};
|
|
212
|
+
type GetSpacesHttpError = {
|
|
213
|
+
data: Errors;
|
|
214
|
+
headers: Headers;
|
|
215
|
+
status: number;
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* Creates a space.
|
|
219
|
+
* @param body an object with the body content
|
|
220
|
+
* @throws CreateSpaceHttpError
|
|
221
|
+
*/
|
|
222
|
+
declare const createSpace: (body: SpaceCreate, options?: ApiCallOptions) => Promise<CreateSpaceHttpResponse>;
|
|
223
|
+
type CreateSpaceHttpResponse = {
|
|
224
|
+
data: Space;
|
|
225
|
+
headers: Headers;
|
|
226
|
+
status: number;
|
|
227
|
+
};
|
|
228
|
+
type CreateSpaceHttpError = {
|
|
229
|
+
data: Errors;
|
|
230
|
+
headers: Headers;
|
|
231
|
+
status: number;
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* Gets a list of distinct space types.
|
|
235
|
+
* @throws GetSpaceTypesHttpError
|
|
236
|
+
*/
|
|
237
|
+
declare const getSpaceTypes: (options?: ApiCallOptions) => Promise<GetSpaceTypesHttpResponse>;
|
|
238
|
+
type GetSpaceTypesHttpResponse = {
|
|
239
|
+
data: SpaceTypes;
|
|
240
|
+
headers: Headers;
|
|
241
|
+
status: number;
|
|
242
|
+
};
|
|
243
|
+
type GetSpaceTypesHttpError = {
|
|
244
|
+
data: Errors;
|
|
245
|
+
headers: Headers;
|
|
246
|
+
status: number;
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* Deletes a space.
|
|
250
|
+
* @param spaceId The ID of the space to delete.
|
|
251
|
+
* @throws DeleteSpaceHttpError
|
|
252
|
+
*/
|
|
253
|
+
declare const deleteSpace: (spaceId: string, options?: ApiCallOptions) => Promise<DeleteSpaceHttpResponse>;
|
|
254
|
+
type DeleteSpaceHttpResponse = {
|
|
255
|
+
data: void;
|
|
256
|
+
headers: Headers;
|
|
257
|
+
status: number;
|
|
258
|
+
};
|
|
259
|
+
type DeleteSpaceHttpError = {
|
|
260
|
+
data: Errors;
|
|
261
|
+
headers: Headers;
|
|
262
|
+
status: number;
|
|
263
|
+
};
|
|
264
|
+
/**
|
|
265
|
+
* Retrieves a single space by ID.
|
|
266
|
+
* @param spaceId The ID of the space to retrieve.
|
|
267
|
+
* @throws GetSpaceHttpError
|
|
268
|
+
*/
|
|
269
|
+
declare const getSpace: (spaceId: string, options?: ApiCallOptions) => Promise<GetSpaceHttpResponse>;
|
|
270
|
+
type GetSpaceHttpResponse = {
|
|
271
|
+
data: Space;
|
|
272
|
+
headers: Headers;
|
|
273
|
+
status: number;
|
|
274
|
+
};
|
|
275
|
+
type GetSpaceHttpError = {
|
|
276
|
+
data: Errors;
|
|
277
|
+
headers: Headers;
|
|
278
|
+
status: number;
|
|
279
|
+
};
|
|
280
|
+
/**
|
|
281
|
+
* Patches (updates) a space (partially).
|
|
282
|
+
* @param spaceId The ID of the space to update.
|
|
283
|
+
* @param body an object with the body content
|
|
284
|
+
* @throws PatchSpaceHttpError
|
|
285
|
+
*/
|
|
286
|
+
declare const patchSpace: (spaceId: string, body: SpacePatch, options?: ApiCallOptions) => Promise<PatchSpaceHttpResponse>;
|
|
287
|
+
type PatchSpaceHttpResponse = {
|
|
288
|
+
data: Space;
|
|
289
|
+
headers: Headers;
|
|
290
|
+
status: number;
|
|
291
|
+
};
|
|
292
|
+
type PatchSpaceHttpError = {
|
|
293
|
+
data: Errors;
|
|
294
|
+
headers: Headers;
|
|
295
|
+
status: number;
|
|
296
|
+
};
|
|
297
|
+
/**
|
|
298
|
+
* Updates a space.
|
|
299
|
+
* @param spaceId The ID of the space to update.
|
|
300
|
+
* @param body an object with the body content
|
|
301
|
+
* @throws UpdateSpaceHttpError
|
|
302
|
+
*/
|
|
303
|
+
declare const updateSpace: (spaceId: string, body: SpaceUpdate, options?: ApiCallOptions) => Promise<UpdateSpaceHttpResponse>;
|
|
304
|
+
type UpdateSpaceHttpResponse = {
|
|
305
|
+
data: Space;
|
|
306
|
+
headers: Headers;
|
|
307
|
+
status: number;
|
|
308
|
+
};
|
|
309
|
+
type UpdateSpaceHttpError = {
|
|
310
|
+
data: Errors;
|
|
311
|
+
headers: Headers;
|
|
312
|
+
status: number;
|
|
313
|
+
};
|
|
314
|
+
/**
|
|
315
|
+
* Retrieves the assignments of the space matching the query.
|
|
316
|
+
* @param spaceId The ID of the space of the assignment.
|
|
317
|
+
* @param query an object with query parameters
|
|
318
|
+
* @throws GetSpaceAssignmentsHttpError
|
|
319
|
+
*/
|
|
320
|
+
declare const getSpaceAssignments: (spaceId: string, query: {
|
|
321
|
+
/** Maximum number of assignments to return. */
|
|
322
|
+
limit?: number;
|
|
323
|
+
/** The next page cursor. Next links make use of this. */
|
|
324
|
+
next?: string;
|
|
325
|
+
/** The previous page cursor. Previous links make use of this. */
|
|
326
|
+
prev?: string;
|
|
327
|
+
}, options?: ApiCallOptions) => Promise<GetSpaceAssignmentsHttpResponse>;
|
|
328
|
+
type GetSpaceAssignmentsHttpResponse = {
|
|
329
|
+
data: Assignments;
|
|
330
|
+
headers: Headers;
|
|
331
|
+
status: number;
|
|
332
|
+
prev?: (options?: ApiCallOptions) => Promise<GetSpaceAssignmentsHttpResponse>;
|
|
333
|
+
next?: (options?: ApiCallOptions) => Promise<GetSpaceAssignmentsHttpResponse>;
|
|
334
|
+
};
|
|
335
|
+
type GetSpaceAssignmentsHttpError = {
|
|
336
|
+
data: Errors;
|
|
337
|
+
headers: Headers;
|
|
338
|
+
status: number;
|
|
339
|
+
};
|
|
340
|
+
/**
|
|
341
|
+
* Creates an assignment.
|
|
342
|
+
* @param spaceId The ID of the space of the assignment.
|
|
343
|
+
* @param body an object with the body content
|
|
344
|
+
* @throws CreateSpaceAssignmentHttpError
|
|
345
|
+
*/
|
|
346
|
+
declare const createSpaceAssignment: (spaceId: string, body: AssignmentCreate, options?: ApiCallOptions) => Promise<CreateSpaceAssignmentHttpResponse>;
|
|
347
|
+
type CreateSpaceAssignmentHttpResponse = {
|
|
348
|
+
data: Assignment;
|
|
349
|
+
headers: Headers;
|
|
350
|
+
status: number;
|
|
351
|
+
};
|
|
352
|
+
type CreateSpaceAssignment401HttpError = {
|
|
353
|
+
data: Errors;
|
|
354
|
+
headers: Headers;
|
|
355
|
+
status: 401;
|
|
356
|
+
};
|
|
357
|
+
type CreateSpaceAssignment403HttpError = {
|
|
358
|
+
data: Errors;
|
|
359
|
+
headers: Headers;
|
|
360
|
+
status: 403;
|
|
361
|
+
};
|
|
362
|
+
type CreateSpaceAssignment404HttpError = {
|
|
363
|
+
data: Errors;
|
|
364
|
+
headers: Headers;
|
|
365
|
+
status: 404;
|
|
366
|
+
};
|
|
367
|
+
type CreateSpaceAssignment409HttpError = {
|
|
368
|
+
data: Space;
|
|
369
|
+
headers: Headers;
|
|
370
|
+
status: 409;
|
|
371
|
+
};
|
|
372
|
+
type CreateSpaceAssignment500HttpError = {
|
|
373
|
+
data: Errors;
|
|
374
|
+
headers: Headers;
|
|
375
|
+
status: 500;
|
|
376
|
+
};
|
|
377
|
+
type CreateSpaceAssignmentHttpError = CreateSpaceAssignment401HttpError | CreateSpaceAssignment403HttpError | CreateSpaceAssignment404HttpError | CreateSpaceAssignment409HttpError | CreateSpaceAssignment500HttpError;
|
|
378
|
+
/**
|
|
379
|
+
* Deletes an assignment.
|
|
380
|
+
* @param spaceId The ID of the space of the assignment.
|
|
381
|
+
* @param assignmentId The ID of the assignment to delete.
|
|
382
|
+
* @throws DeleteSpaceAssignmentHttpError
|
|
383
|
+
*/
|
|
384
|
+
declare const deleteSpaceAssignment: (spaceId: string, assignmentId: string, options?: ApiCallOptions) => Promise<DeleteSpaceAssignmentHttpResponse>;
|
|
385
|
+
type DeleteSpaceAssignmentHttpResponse = {
|
|
386
|
+
data: void;
|
|
387
|
+
headers: Headers;
|
|
388
|
+
status: number;
|
|
389
|
+
};
|
|
390
|
+
type DeleteSpaceAssignmentHttpError = {
|
|
391
|
+
data: Errors;
|
|
392
|
+
headers: Headers;
|
|
393
|
+
status: number;
|
|
394
|
+
};
|
|
395
|
+
/**
|
|
396
|
+
* Retrieves a single assignment by ID.
|
|
397
|
+
* @param spaceId The ID of the space of the assignment.
|
|
398
|
+
* @param assignmentId The ID of the assignment to retrieve.
|
|
399
|
+
* @throws GetSpaceAssignmentHttpError
|
|
400
|
+
*/
|
|
401
|
+
declare const getSpaceAssignment: (spaceId: string, assignmentId: string, options?: ApiCallOptions) => Promise<GetSpaceAssignmentHttpResponse>;
|
|
402
|
+
type GetSpaceAssignmentHttpResponse = {
|
|
403
|
+
data: Assignment;
|
|
404
|
+
headers: Headers;
|
|
405
|
+
status: number;
|
|
406
|
+
};
|
|
407
|
+
type GetSpaceAssignmentHttpError = {
|
|
408
|
+
data: Errors;
|
|
409
|
+
headers: Headers;
|
|
410
|
+
status: number;
|
|
411
|
+
};
|
|
412
|
+
/**
|
|
413
|
+
* Updates a single assignment by ID. The complete list of roles must be provided.
|
|
414
|
+
* @param spaceId The ID of the space of the assignment.
|
|
415
|
+
* @param assignmentId The ID of the assignment to update.
|
|
416
|
+
* @param body an object with the body content
|
|
417
|
+
* @throws UpdateSpaceAssignmentHttpError
|
|
418
|
+
*/
|
|
419
|
+
declare const updateSpaceAssignment: (spaceId: string, assignmentId: string, body: AssignmentUpdate, options?: ApiCallOptions) => Promise<UpdateSpaceAssignmentHttpResponse>;
|
|
420
|
+
type UpdateSpaceAssignmentHttpResponse = {
|
|
421
|
+
data: Assignment;
|
|
422
|
+
headers: Headers;
|
|
423
|
+
status: number;
|
|
424
|
+
};
|
|
425
|
+
type UpdateSpaceAssignmentHttpError = {
|
|
426
|
+
data: Errors;
|
|
427
|
+
headers: Headers;
|
|
428
|
+
status: number;
|
|
429
|
+
};
|
|
430
|
+
/**
|
|
431
|
+
* Clears the cache for spaces api requests.
|
|
432
|
+
*/
|
|
433
|
+
declare function clearCache(): void;
|
|
434
|
+
interface SpacesAPI {
|
|
435
|
+
/**
|
|
436
|
+
* Retrieves spaces that the current user has access to and match the query.
|
|
437
|
+
* @param query an object with query parameters
|
|
438
|
+
* @throws GetSpacesHttpError
|
|
439
|
+
*/
|
|
440
|
+
getSpaces: typeof getSpaces;
|
|
441
|
+
/**
|
|
442
|
+
* Creates a space.
|
|
443
|
+
* @param body an object with the body content
|
|
444
|
+
* @throws CreateSpaceHttpError
|
|
445
|
+
*/
|
|
446
|
+
createSpace: typeof createSpace;
|
|
447
|
+
/**
|
|
448
|
+
* Gets a list of distinct space types.
|
|
449
|
+
* @throws GetSpaceTypesHttpError
|
|
450
|
+
*/
|
|
451
|
+
getSpaceTypes: typeof getSpaceTypes;
|
|
452
|
+
/**
|
|
453
|
+
* Deletes a space.
|
|
454
|
+
* @param spaceId The ID of the space to delete.
|
|
455
|
+
* @throws DeleteSpaceHttpError
|
|
456
|
+
*/
|
|
457
|
+
deleteSpace: typeof deleteSpace;
|
|
458
|
+
/**
|
|
459
|
+
* Retrieves a single space by ID.
|
|
460
|
+
* @param spaceId The ID of the space to retrieve.
|
|
461
|
+
* @throws GetSpaceHttpError
|
|
462
|
+
*/
|
|
463
|
+
getSpace: typeof getSpace;
|
|
464
|
+
/**
|
|
465
|
+
* Patches (updates) a space (partially).
|
|
466
|
+
* @param spaceId The ID of the space to update.
|
|
467
|
+
* @param body an object with the body content
|
|
468
|
+
* @throws PatchSpaceHttpError
|
|
469
|
+
*/
|
|
470
|
+
patchSpace: typeof patchSpace;
|
|
471
|
+
/**
|
|
472
|
+
* Updates a space.
|
|
473
|
+
* @param spaceId The ID of the space to update.
|
|
474
|
+
* @param body an object with the body content
|
|
475
|
+
* @throws UpdateSpaceHttpError
|
|
476
|
+
*/
|
|
477
|
+
updateSpace: typeof updateSpace;
|
|
478
|
+
/**
|
|
479
|
+
* Retrieves the assignments of the space matching the query.
|
|
480
|
+
* @param spaceId The ID of the space of the assignment.
|
|
481
|
+
* @param query an object with query parameters
|
|
482
|
+
* @throws GetSpaceAssignmentsHttpError
|
|
483
|
+
*/
|
|
484
|
+
getSpaceAssignments: typeof getSpaceAssignments;
|
|
485
|
+
/**
|
|
486
|
+
* Creates an assignment.
|
|
487
|
+
* @param spaceId The ID of the space of the assignment.
|
|
488
|
+
* @param body an object with the body content
|
|
489
|
+
* @throws CreateSpaceAssignmentHttpError
|
|
490
|
+
*/
|
|
491
|
+
createSpaceAssignment: typeof createSpaceAssignment;
|
|
492
|
+
/**
|
|
493
|
+
* Deletes an assignment.
|
|
494
|
+
* @param spaceId The ID of the space of the assignment.
|
|
495
|
+
* @param assignmentId The ID of the assignment to delete.
|
|
496
|
+
* @throws DeleteSpaceAssignmentHttpError
|
|
497
|
+
*/
|
|
498
|
+
deleteSpaceAssignment: typeof deleteSpaceAssignment;
|
|
499
|
+
/**
|
|
500
|
+
* Retrieves a single assignment by ID.
|
|
501
|
+
* @param spaceId The ID of the space of the assignment.
|
|
502
|
+
* @param assignmentId The ID of the assignment to retrieve.
|
|
503
|
+
* @throws GetSpaceAssignmentHttpError
|
|
504
|
+
*/
|
|
505
|
+
getSpaceAssignment: typeof getSpaceAssignment;
|
|
506
|
+
/**
|
|
507
|
+
* Updates a single assignment by ID. The complete list of roles must be provided.
|
|
508
|
+
* @param spaceId The ID of the space of the assignment.
|
|
509
|
+
* @param assignmentId The ID of the assignment to update.
|
|
510
|
+
* @param body an object with the body content
|
|
511
|
+
* @throws UpdateSpaceAssignmentHttpError
|
|
512
|
+
*/
|
|
513
|
+
updateSpaceAssignment: typeof updateSpaceAssignment;
|
|
514
|
+
/**
|
|
515
|
+
* Clears the cache for spaces api requests.
|
|
516
|
+
*/
|
|
517
|
+
clearCache: typeof clearCache;
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* Functions for the spaces api
|
|
521
|
+
*/
|
|
522
|
+
declare const spacesExport: SpacesAPI;
|
|
523
|
+
|
|
524
|
+
export { type ActionName, type Assignment, type AssignmentCreate, type AssignmentUpdate, type Assignments, type CreateSpaceAssignment401HttpError, type CreateSpaceAssignment403HttpError, type CreateSpaceAssignment404HttpError, type CreateSpaceAssignment409HttpError, type CreateSpaceAssignment500HttpError, type CreateSpaceAssignmentHttpError, type CreateSpaceAssignmentHttpResponse, type CreateSpaceHttpError, type CreateSpaceHttpResponse, type DeleteSpaceAssignmentHttpError, type DeleteSpaceAssignmentHttpResponse, type DeleteSpaceHttpError, type DeleteSpaceHttpResponse, type Error, type Errors, type GetSpaceAssignmentHttpError, type GetSpaceAssignmentHttpResponse, type GetSpaceAssignmentsHttpError, type GetSpaceAssignmentsHttpResponse, type GetSpaceHttpError, type GetSpaceHttpResponse, type GetSpaceTypesHttpError, type GetSpaceTypesHttpResponse, type GetSpacesHttpError, type GetSpacesHttpResponse, type Link, type PatchSpaceHttpError, type PatchSpaceHttpResponse, type RoleType, type SharedSpaceRoleType, type Space, type SpaceCreate, type SpacePatch, type SpaceType, type SpaceTypes, type SpaceUpdate, type Spaces, type SpacesAPI, type UpdateSpaceAssignmentHttpError, type UpdateSpaceAssignmentHttpResponse, type UpdateSpaceHttpError, type UpdateSpaceHttpResponse, clearCache, createSpace, createSpaceAssignment, spacesExport as default, deleteSpace, deleteSpaceAssignment, getSpace, getSpaceAssignment, getSpaceAssignments, getSpaceTypes, getSpaces, patchSpace, updateSpace, updateSpaceAssignment };
|