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