contentful-management 7.44.2 → 7.45.3

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 (56) hide show
  1. package/dist/contentful-management.browser.js +52 -68
  2. package/dist/contentful-management.browser.js.map +1 -1
  3. package/dist/contentful-management.browser.min.js +1 -1
  4. package/dist/contentful-management.legacy.js +52 -68
  5. package/dist/contentful-management.legacy.js.map +1 -1
  6. package/dist/contentful-management.legacy.min.js +1 -1
  7. package/dist/contentful-management.node.js +47 -63
  8. package/dist/contentful-management.node.js.map +1 -1
  9. package/dist/contentful-management.node.min.js +1 -1
  10. package/dist/es-modules/adapters/REST/endpoints/api-key.js +1 -1
  11. package/dist/es-modules/adapters/REST/endpoints/organization.js +2 -2
  12. package/dist/es-modules/adapters/REST/endpoints/space.js +4 -4
  13. package/dist/es-modules/adapters/REST/rest-adapter.js +1 -1
  14. package/dist/es-modules/common-utils.js +1 -1
  15. package/dist/es-modules/constants/editor-interface-defaults/sidebar-defaults.js +1 -8
  16. package/dist/es-modules/contentful-management.js +1 -1
  17. package/dist/es-modules/entities/locale.js +1 -1
  18. package/dist/es-modules/plain/as-iterator.js +12 -8
  19. package/dist/typings/create-entry-api.d.ts +3 -3
  20. package/dist/typings/create-environment-api.d.ts +4 -3
  21. package/dist/typings/entities/api-key.d.ts +1 -1578
  22. package/dist/typings/entities/app-bundle.d.ts +1 -1578
  23. package/dist/typings/entities/app-definition.d.ts +1 -1578
  24. package/dist/typings/entities/app-installation.d.ts +1 -1578
  25. package/dist/typings/entities/app-upload.d.ts +1 -1578
  26. package/dist/typings/entities/asset.d.ts +1 -1577
  27. package/dist/typings/entities/comment.d.ts +1 -1578
  28. package/dist/typings/entities/content-type.d.ts +1 -1578
  29. package/dist/typings/entities/editor-interface.d.ts +8 -1585
  30. package/dist/typings/entities/entry.d.ts +1 -1578
  31. package/dist/typings/entities/environment-alias.d.ts +1 -1578
  32. package/dist/typings/entities/environment.d.ts +1 -1578
  33. package/dist/typings/entities/extension.d.ts +1 -1578
  34. package/dist/typings/entities/locale.d.ts +1 -1578
  35. package/dist/typings/entities/organization-membership.d.ts +1 -1578
  36. package/dist/typings/entities/organization.d.ts +1 -1578
  37. package/dist/typings/entities/personal-access-token.d.ts +1 -1578
  38. package/dist/typings/entities/preview-api-key.d.ts +1 -1578
  39. package/dist/typings/entities/release-action.d.ts +1 -1578
  40. package/dist/typings/entities/role.d.ts +1 -1578
  41. package/dist/typings/entities/scheduled-action.d.ts +1 -1578
  42. package/dist/typings/entities/snapshot.d.ts +1 -1578
  43. package/dist/typings/entities/space-member.d.ts +1 -1578
  44. package/dist/typings/entities/space-membership.d.ts +1 -1578
  45. package/dist/typings/entities/space.d.ts +1 -1578
  46. package/dist/typings/entities/tag.d.ts +1 -1578
  47. package/dist/typings/entities/task.d.ts +1 -1578
  48. package/dist/typings/entities/team-membership.d.ts +1 -1578
  49. package/dist/typings/entities/team-space-membership.d.ts +1 -1578
  50. package/dist/typings/entities/team.d.ts +1 -1578
  51. package/dist/typings/entities/usage.d.ts +1 -1578
  52. package/dist/typings/entities/user.d.ts +1 -1578
  53. package/dist/typings/entities/webhook.d.ts +1 -1578
  54. package/dist/typings/export-types.d.ts +1 -1
  55. package/dist/typings/plain/wrappers/wrap.d.ts +4 -4
  56. package/package.json +14 -13
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="json-patch" />
3
1
  import { BasicMetaSysProps, DefaultElements, MakeRequest } from '../common-types';
4
2
  import { ContentfulSpaceAPI } from '../create-space-api';
5
3
  export declare type SpaceProps = {
@@ -29,1579 +27,4 @@ export declare function wrapSpace(makeRequest: MakeRequest, data: SpaceProps): S
29
27
  * above for more details.
30
28
  * @private
31
29
  */
32
- export declare const wrapSpaceCollection: (makeRequest: {
33
- (opts: import("../common-types").MROpts<"Http", "get", false>): Promise<any>;
34
- (opts: import("../common-types").MROpts<"Http", "patch", false>): Promise<any>;
35
- (opts: import("../common-types").MROpts<"Http", "post", false>): Promise<any>;
36
- (opts: import("../common-types").MROpts<"Http", "put", false>): Promise<any>;
37
- (opts: import("../common-types").MROpts<"Http", "delete", false>): Promise<any>;
38
- (opts: import("../common-types").MROpts<"Http", "request", false>): Promise<any>;
39
- (opts: import("../common-types").MROpts<"AppBundle", "get", false>): Promise<import("./app-bundle").AppBundleProps>;
40
- (opts: import("../common-types").MROpts<"AppBundle", "getMany", false>): Promise<import("../common-types").CollectionProp<import("./app-bundle").AppBundleProps>>;
41
- (opts: import("../common-types").MROpts<"AppBundle", "delete", false>): Promise<void>;
42
- (opts: {
43
- entityType: "AppBundle";
44
- action: "create";
45
- } & {
46
- params: import("../common-types").GetAppDefinitionParams;
47
- } & {
48
- payload: import("./app-bundle").CreateAppBundleProps;
49
- }): Promise<import("./app-bundle").AppBundleProps>;
50
- (opts: {
51
- entityType: "ApiKey";
52
- action: "get";
53
- } & {
54
- params: import("../common-types").GetSpaceParams & {
55
- apiKeyId: string;
56
- };
57
- }): Promise<import("./api-key").ApiKeyProps>;
58
- (opts: {
59
- entityType: "ApiKey";
60
- action: "getMany";
61
- } & {
62
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
63
- }): Promise<import("../common-types").CollectionProp<import("./api-key").ApiKeyProps>>;
64
- (opts: {
65
- entityType: "ApiKey";
66
- action: "create";
67
- } & {
68
- params: import("../common-types").GetSpaceParams;
69
- } & {
70
- payload: Pick<import("./api-key").ApiKeyProps, "description" | "name" | "environments">;
71
- } & {
72
- headers?: Record<string, unknown> | undefined;
73
- }): Promise<import("./api-key").ApiKeyProps>;
74
- (opts: {
75
- entityType: "ApiKey";
76
- action: "createWithId";
77
- } & {
78
- params: import("../common-types").GetSpaceParams & {
79
- apiKeyId: string;
80
- };
81
- } & {
82
- payload: Pick<import("./api-key").ApiKeyProps, "description" | "name" | "environments">;
83
- } & {
84
- headers?: Record<string, unknown> | undefined;
85
- }): Promise<import("./api-key").ApiKeyProps>;
86
- (opts: {
87
- entityType: "ApiKey";
88
- action: "update";
89
- } & {
90
- params: import("../common-types").GetSpaceParams & {
91
- apiKeyId: string;
92
- };
93
- } & {
94
- payload: import("./api-key").ApiKeyProps;
95
- } & {
96
- headers?: Record<string, unknown> | undefined;
97
- }): Promise<import("./api-key").ApiKeyProps>;
98
- (opts: {
99
- entityType: "ApiKey";
100
- action: "delete";
101
- } & {
102
- params: import("../common-types").GetSpaceParams & {
103
- apiKeyId: string;
104
- };
105
- }): Promise<any>;
106
- (opts: {
107
- entityType: "AppDefinition";
108
- action: "get";
109
- } & {
110
- params: import("../common-types").GetOrganizationParams & {
111
- appDefinitionId: string;
112
- };
113
- }): Promise<import("./app-definition").AppDefinitionProps>;
114
- (opts: {
115
- entityType: "AppDefinition";
116
- action: "getMany";
117
- } & {
118
- params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams;
119
- }): Promise<import("../common-types").CollectionProp<import("./app-definition").AppDefinitionProps>>;
120
- (opts: {
121
- entityType: "AppDefinition";
122
- action: "create";
123
- } & {
124
- params: import("../common-types").GetOrganizationParams;
125
- } & {
126
- payload: import("type-fest/source/simplify").Simplify<Pick<Pick<import("./app-definition").AppDefinitionProps, "name" | "src" | "locations" | "parameters">, "name" | "parameters"> & Partial<Pick<Pick<import("./app-definition").AppDefinitionProps, "name" | "src" | "locations" | "parameters">, "src" | "locations">>>;
127
- }): Promise<import("./app-definition").AppDefinitionProps>;
128
- (opts: {
129
- entityType: "AppDefinition";
130
- action: "update";
131
- } & {
132
- params: import("../common-types").GetAppDefinitionParams;
133
- } & {
134
- payload: import("./app-definition").AppDefinitionProps;
135
- } & {
136
- headers?: Record<string, unknown> | undefined;
137
- }): Promise<import("./app-definition").AppDefinitionProps>;
138
- (opts: {
139
- entityType: "AppDefinition";
140
- action: "delete";
141
- } & {
142
- params: import("../common-types").GetAppDefinitionParams;
143
- }): Promise<any>;
144
- (opts: {
145
- entityType: "AppInstallation";
146
- action: "get";
147
- } & {
148
- params: import("../common-types").GetAppInstallationParams;
149
- }): Promise<import("./app-installation").AppInstallationProps>;
150
- (opts: {
151
- entityType: "AppInstallation";
152
- action: "getMany";
153
- } & {
154
- params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").PaginationQueryParams;
155
- }): Promise<import("../common-types").CollectionProp<import("./app-installation").AppInstallationProps>>;
156
- (opts: {
157
- entityType: "AppInstallation";
158
- action: "upsert";
159
- } & {
160
- params: import("../common-types").GetAppInstallationParams;
161
- } & {
162
- payload: Pick<import("./app-installation").AppInstallationProps, "parameters">;
163
- } & {
164
- headers?: Record<string, unknown> | undefined;
165
- }): Promise<import("./app-installation").AppInstallationProps>;
166
- (opts: {
167
- entityType: "AppInstallation";
168
- action: "delete";
169
- } & {
170
- params: import("../common-types").GetAppInstallationParams;
171
- }): Promise<any>;
172
- (opts: {
173
- entityType: "Asset";
174
- action: "getMany";
175
- } & {
176
- params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
177
- }): Promise<import("../common-types").CollectionProp<import("./asset").AssetProps>>;
178
- (opts: {
179
- entityType: "Asset";
180
- action: "get";
181
- } & {
182
- params: import("../common-types").GetSpaceEnvironmentParams & {
183
- assetId: string;
184
- } & import("../common-types").QueryParams;
185
- }): Promise<import("./asset").AssetProps>;
186
- (opts: {
187
- entityType: "Asset";
188
- action: "update";
189
- } & {
190
- params: import("../common-types").GetSpaceEnvironmentParams & {
191
- assetId: string;
192
- };
193
- } & {
194
- payload: import("./asset").AssetProps;
195
- } & {
196
- headers?: Record<string, unknown> | undefined;
197
- }): Promise<import("./asset").AssetProps>;
198
- (opts: {
199
- entityType: "Asset";
200
- action: "delete";
201
- } & {
202
- params: import("../common-types").GetSpaceEnvironmentParams & {
203
- assetId: string;
204
- };
205
- }): Promise<any>;
206
- (opts: {
207
- entityType: "Asset";
208
- action: "publish";
209
- } & {
210
- params: import("../common-types").GetSpaceEnvironmentParams & {
211
- assetId: string;
212
- };
213
- } & {
214
- payload: import("./asset").AssetProps;
215
- }): Promise<import("./asset").AssetProps>;
216
- (opts: {
217
- entityType: "Asset";
218
- action: "unpublish";
219
- } & {
220
- params: import("../common-types").GetSpaceEnvironmentParams & {
221
- assetId: string;
222
- };
223
- }): Promise<import("./asset").AssetProps>;
224
- (opts: {
225
- entityType: "Asset";
226
- action: "archive";
227
- } & {
228
- params: import("../common-types").GetSpaceEnvironmentParams & {
229
- assetId: string;
230
- };
231
- }): Promise<import("./asset").AssetProps>;
232
- (opts: {
233
- entityType: "Asset";
234
- action: "unarchive";
235
- } & {
236
- params: import("../common-types").GetSpaceEnvironmentParams & {
237
- assetId: string;
238
- };
239
- }): Promise<import("./asset").AssetProps>;
240
- (opts: {
241
- entityType: "Asset";
242
- action: "create";
243
- } & {
244
- params: import("../common-types").GetSpaceEnvironmentParams;
245
- } & {
246
- payload: Pick<import("./asset").AssetProps, "metadata" | "fields">;
247
- }): Promise<import("./asset").AssetProps>;
248
- (opts: {
249
- entityType: "Asset";
250
- action: "createWithId";
251
- } & {
252
- params: import("../common-types").GetSpaceEnvironmentParams & {
253
- assetId: string;
254
- };
255
- } & {
256
- payload: Pick<import("./asset").AssetProps, "metadata" | "fields">;
257
- }): Promise<import("./asset").AssetProps>;
258
- (opts: {
259
- entityType: "Asset";
260
- action: "createFromFiles";
261
- } & {
262
- params: import("../common-types").GetSpaceEnvironmentParams;
263
- } & {
264
- payload: Pick<import("./asset").AssetFileProp, "fields">;
265
- }): Promise<import("./asset").AssetProps>;
266
- (opts: {
267
- entityType: "Asset";
268
- action: "processForAllLocales";
269
- } & {
270
- params: import("../common-types").GetSpaceEnvironmentParams & {
271
- asset: import("./asset").AssetProps;
272
- options?: import("./asset").AssetProcessingForLocale | undefined;
273
- };
274
- }): Promise<import("./asset").AssetProps>;
275
- (opts: {
276
- entityType: "Asset";
277
- action: "processForLocale";
278
- } & {
279
- params: import("../common-types").GetSpaceEnvironmentParams & {
280
- asset: import("./asset").AssetProps;
281
- locale: string;
282
- options?: import("./asset").AssetProcessingForLocale | undefined;
283
- };
284
- }): Promise<import("./asset").AssetProps>;
285
- (opts: {
286
- entityType: "AppUpload";
287
- action: "get";
288
- } & {
289
- params: import("../common-types").GetAppUploadParams;
290
- }): Promise<import("./app-upload").AppUploadProps>;
291
- (opts: {
292
- entityType: "AppUpload";
293
- action: "delete";
294
- } & {
295
- params: import("../common-types").GetAppUploadParams;
296
- }): Promise<void>;
297
- (opts: {
298
- entityType: "AppUpload";
299
- action: "create";
300
- } & {
301
- params: import("../common-types").GetOrganizationParams;
302
- } & {
303
- payload: {
304
- file: string | ArrayBuffer | import("stream").Stream;
305
- };
306
- }): Promise<import("./app-upload").AppUploadProps>;
307
- (opts: {
308
- entityType: "AppDetails";
309
- action: "upsert";
310
- } & {
311
- params: import("../common-types").GetAppDefinitionParams;
312
- } & {
313
- payload: import("./app-details").CreateAppDetailsProps;
314
- }): Promise<import("./app-details").AppDetailsProps>;
315
- (opts: {
316
- entityType: "AppDetails";
317
- action: "get";
318
- } & {
319
- params: import("../common-types").GetAppDefinitionParams;
320
- }): Promise<import("./app-details").AppDetailsProps>;
321
- (opts: {
322
- entityType: "AppDetails";
323
- action: "delete";
324
- } & {
325
- params: import("../common-types").GetAppDefinitionParams;
326
- }): Promise<void>;
327
- (opts: {
328
- entityType: "AppSignedRequest";
329
- action: "create";
330
- } & {
331
- params: import("../common-types").GetAppInstallationParams;
332
- } & {
333
- payload: import("./app-signed-request").CreateAppSignedRequestProps;
334
- }): Promise<import("./app-signed-request").AppSignedRequestProps>;
335
- (opts: {
336
- entityType: "AppSigningSecret";
337
- action: "upsert";
338
- } & {
339
- params: import("../common-types").GetAppDefinitionParams;
340
- } & {
341
- payload: import("./app-signing-secret").CreateAppSigningSecretProps;
342
- }): Promise<import("./app-signing-secret").AppSigningSecretProps>;
343
- (opts: {
344
- entityType: "AppSigningSecret";
345
- action: "get";
346
- } & {
347
- params: import("../common-types").GetAppDefinitionParams;
348
- }): Promise<import("./app-signing-secret").AppSigningSecretProps>;
349
- (opts: {
350
- entityType: "AppSigningSecret";
351
- action: "delete";
352
- } & {
353
- params: import("../common-types").GetAppDefinitionParams;
354
- }): Promise<void>;
355
- (opts: {
356
- entityType: "AssetKey";
357
- action: "create";
358
- } & {
359
- params: import("../common-types").GetSpaceEnvironmentParams;
360
- } & {
361
- payload: import("./asset-key").CreateAssetKeyProps;
362
- }): Promise<import("./asset-key").AssetKeyProps>;
363
- (opts: {
364
- entityType: "BulkAction";
365
- action: "get";
366
- } & {
367
- params: import("../common-types").GetBulkActionParams;
368
- }): Promise<import("./bulk-action").BulkActionProps<any>>;
369
- (opts: {
370
- entityType: "BulkAction";
371
- action: "publish";
372
- } & {
373
- params: import("../common-types").GetSpaceEnvironmentParams;
374
- } & {
375
- payload: import("./bulk-action").BulkActionPublishPayload;
376
- }): Promise<import("./bulk-action").BulkActionProps<import("./bulk-action").BulkActionPublishPayload>>;
377
- (opts: {
378
- entityType: "BulkAction";
379
- action: "unpublish";
380
- } & {
381
- params: import("../common-types").GetSpaceEnvironmentParams;
382
- } & {
383
- payload: import("./bulk-action").BulkActionUnpublishPayload;
384
- }): Promise<import("./bulk-action").BulkActionProps<import("./bulk-action").BulkActionUnpublishPayload>>;
385
- (opts: {
386
- entityType: "BulkAction";
387
- action: "validate";
388
- } & {
389
- params: import("../common-types").GetSpaceEnvironmentParams;
390
- } & {
391
- payload: import("./bulk-action").BulkActionValidatePayload;
392
- }): Promise<import("./bulk-action").BulkActionProps<import("./bulk-action").BulkActionValidatePayload>>;
393
- (opts: {
394
- entityType: "Comment";
395
- action: "get";
396
- } & {
397
- params: import("../common-types").GetCommentParams;
398
- }): Promise<import("./comment").CommentProps>;
399
- (opts: {
400
- entityType: "Comment";
401
- action: "getAll";
402
- } & {
403
- params: import("../common-types").GetEntryParams;
404
- }): Promise<import("../common-types").CollectionProp<import("./comment").CommentProps>>;
405
- (opts: {
406
- entityType: "Comment";
407
- action: "create";
408
- } & {
409
- params: import("../common-types").GetEntryParams;
410
- } & {
411
- payload: Pick<import("./comment").CommentProps, "body">;
412
- }): Promise<import("./comment").CommentProps>;
413
- (opts: {
414
- entityType: "Comment";
415
- action: "update";
416
- } & {
417
- params: import("../common-types").GetCommentParams;
418
- } & {
419
- payload: import("./comment").UpdateCommentProps;
420
- } & {
421
- headers?: Record<string, unknown> | undefined;
422
- }): Promise<import("./comment").CommentProps>;
423
- (opts: {
424
- entityType: "Comment";
425
- action: "delete";
426
- } & {
427
- params: import("./comment").DeleteCommentParams;
428
- }): Promise<void>;
429
- (opts: {
430
- entityType: "ContentType";
431
- action: "get";
432
- } & {
433
- params: import("../common-types").GetSpaceEnvironmentParams & {
434
- contentTypeId: string;
435
- } & import("../common-types").QueryParams;
436
- }): Promise<import("./content-type").ContentTypeProps>;
437
- (opts: {
438
- entityType: "ContentType";
439
- action: "getMany";
440
- } & {
441
- params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
442
- }): Promise<import("../common-types").CollectionProp<import("./content-type").ContentTypeProps>>;
443
- (opts: {
444
- entityType: "ContentType";
445
- action: "update";
446
- } & {
447
- params: import("../common-types").GetContentTypeParams;
448
- } & {
449
- payload: import("./content-type").ContentTypeProps;
450
- } & {
451
- headers?: Record<string, unknown> | undefined;
452
- }): Promise<import("./content-type").ContentTypeProps>;
453
- (opts: {
454
- entityType: "ContentType";
455
- action: "create";
456
- } & {
457
- params: import("../common-types").GetSpaceEnvironmentParams;
458
- } & {
459
- payload: import("type-fest/source/simplify").Simplify<Pick<Pick<import("./content-type").ContentTypeProps, "description" | "name" | "fields" | "displayField">, "name" | "fields"> & Partial<Pick<Pick<import("./content-type").ContentTypeProps, "description" | "name" | "fields" | "displayField">, "description" | "displayField">>>;
460
- }): Promise<import("./content-type").ContentTypeProps>;
461
- (opts: {
462
- entityType: "ContentType";
463
- action: "createWithId";
464
- } & {
465
- params: import("../common-types").GetContentTypeParams;
466
- } & {
467
- payload: import("type-fest/source/simplify").Simplify<Pick<Pick<import("./content-type").ContentTypeProps, "description" | "name" | "fields" | "displayField">, "name" | "fields"> & Partial<Pick<Pick<import("./content-type").ContentTypeProps, "description" | "name" | "fields" | "displayField">, "description" | "displayField">>>;
468
- }): Promise<import("./content-type").ContentTypeProps>;
469
- (opts: {
470
- entityType: "ContentType";
471
- action: "delete";
472
- } & {
473
- params: import("../common-types").GetContentTypeParams;
474
- }): Promise<any>;
475
- (opts: {
476
- entityType: "ContentType";
477
- action: "publish";
478
- } & {
479
- params: import("../common-types").GetContentTypeParams;
480
- } & {
481
- payload: import("./content-type").ContentTypeProps;
482
- }): Promise<import("./content-type").ContentTypeProps>;
483
- (opts: {
484
- entityType: "ContentType";
485
- action: "unpublish";
486
- } & {
487
- params: import("../common-types").GetContentTypeParams;
488
- }): Promise<import("./content-type").ContentTypeProps>;
489
- (opts: {
490
- entityType: "EditorInterface";
491
- action: "get";
492
- } & {
493
- params: import("../common-types").GetEditorInterfaceParams;
494
- }): Promise<import("./editor-interface").EditorInterfaceProps>;
495
- (opts: {
496
- entityType: "EditorInterface";
497
- action: "getMany";
498
- } & {
499
- params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
500
- }): Promise<import("../common-types").CollectionProp<import("./editor-interface").EditorInterfaceProps>>;
501
- (opts: {
502
- entityType: "EditorInterface";
503
- action: "update";
504
- } & {
505
- params: import("../common-types").GetEditorInterfaceParams;
506
- } & {
507
- payload: import("./editor-interface").EditorInterfaceProps;
508
- } & {
509
- headers?: Record<string, unknown> | undefined;
510
- }): Promise<import("./editor-interface").EditorInterfaceProps>;
511
- (opts: {
512
- entityType: "Environment";
513
- action: "get";
514
- } & {
515
- params: import("../common-types").GetSpaceEnvironmentParams;
516
- }): Promise<import("./environment").EnvironmentProps>;
517
- (opts: {
518
- entityType: "Environment";
519
- action: "getMany";
520
- } & {
521
- params: import("../common-types").GetSpaceParams & import("../common-types").PaginationQueryParams;
522
- }): Promise<import("../common-types").CollectionProp<import("./environment").EnvironmentProps>>;
523
- (opts: {
524
- entityType: "Environment";
525
- action: "create";
526
- } & {
527
- params: import("../common-types").GetSpaceParams;
528
- } & {
529
- payload: Partial<Pick<import("./environment").EnvironmentProps, "name">>;
530
- } & {
531
- headers?: Record<string, unknown> | undefined;
532
- }): Promise<import("./environment").EnvironmentProps>;
533
- (opts: {
534
- entityType: "Environment";
535
- action: "createWithId";
536
- } & {
537
- params: import("../common-types").GetSpaceEnvironmentParams & {
538
- sourceEnvironmentId?: string | undefined;
539
- };
540
- } & {
541
- payload: Partial<Pick<import("./environment").EnvironmentProps, "name">>;
542
- } & {
543
- headers?: Record<string, unknown> | undefined;
544
- }): Promise<import("./environment").EnvironmentProps>;
545
- (opts: {
546
- entityType: "Environment";
547
- action: "update";
548
- } & {
549
- params: import("../common-types").GetSpaceEnvironmentParams;
550
- } & {
551
- payload: import("./environment").EnvironmentProps;
552
- } & {
553
- headers?: Record<string, unknown> | undefined;
554
- }): Promise<import("./environment").EnvironmentProps>;
555
- (opts: {
556
- entityType: "Environment";
557
- action: "delete";
558
- } & {
559
- params: import("../common-types").GetSpaceEnvironmentParams;
560
- }): Promise<any>;
561
- (opts: {
562
- entityType: "EnvironmentAlias";
563
- action: "get";
564
- } & {
565
- params: import("../common-types").GetSpaceEnvAliasParams;
566
- }): Promise<import("./environment-alias").EnvironmentAliasProps>;
567
- (opts: {
568
- entityType: "EnvironmentAlias";
569
- action: "getMany";
570
- } & {
571
- params: import("../common-types").GetSpaceParams & import("../common-types").PaginationQueryParams;
572
- }): Promise<import("../common-types").CollectionProp<import("./environment-alias").EnvironmentAliasProps>>;
573
- (opts: {
574
- entityType: "EnvironmentAlias";
575
- action: "createWithId";
576
- } & {
577
- params: import("../common-types").GetSpaceEnvAliasParams;
578
- } & {
579
- payload: Pick<import("./environment-alias").EnvironmentAliasProps, "environment">;
580
- } & {
581
- headers?: Record<string, unknown> | undefined;
582
- }): Promise<import("./environment-alias").EnvironmentAliasProps>;
583
- (opts: {
584
- entityType: "EnvironmentAlias";
585
- action: "update";
586
- } & {
587
- params: import("../common-types").GetSpaceEnvAliasParams;
588
- } & {
589
- payload: import("./environment-alias").EnvironmentAliasProps;
590
- } & {
591
- headers?: Record<string, unknown> | undefined;
592
- }): Promise<import("./environment-alias").EnvironmentAliasProps>;
593
- (opts: {
594
- entityType: "EnvironmentAlias";
595
- action: "delete";
596
- } & {
597
- params: import("../common-types").GetSpaceEnvAliasParams;
598
- }): Promise<any>;
599
- (opts: {
600
- entityType: "Entry";
601
- action: "getMany";
602
- } & {
603
- params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
604
- }): Promise<import("../common-types").CollectionProp<import("./entry").EntryProps<any>>>;
605
- (opts: {
606
- entityType: "Entry";
607
- action: "get";
608
- } & {
609
- params: import("../common-types").GetSpaceEnvironmentParams & {
610
- entryId: string;
611
- } & import("../common-types").QueryParams;
612
- }): Promise<import("./entry").EntryProps<any>>;
613
- (opts: {
614
- entityType: "Entry";
615
- action: "patch";
616
- } & {
617
- params: import("../common-types").GetSpaceEnvironmentParams & {
618
- entryId: string;
619
- version: number;
620
- };
621
- } & {
622
- payload: import("json-patch").OpPatch[];
623
- } & {
624
- headers?: Record<string, unknown> | undefined;
625
- }): Promise<import("./entry").EntryProps<any>>;
626
- (opts: {
627
- entityType: "Entry";
628
- action: "update";
629
- } & {
630
- params: import("../common-types").GetSpaceEnvironmentParams & {
631
- entryId: string;
632
- };
633
- } & {
634
- payload: import("./entry").EntryProps<any>;
635
- } & {
636
- headers?: Record<string, unknown> | undefined;
637
- }): Promise<import("./entry").EntryProps<any>>;
638
- (opts: {
639
- entityType: "Entry";
640
- action: "delete";
641
- } & {
642
- params: import("../common-types").GetSpaceEnvironmentParams & {
643
- entryId: string;
644
- };
645
- }): Promise<any>;
646
- (opts: {
647
- entityType: "Entry";
648
- action: "publish";
649
- } & {
650
- params: import("../common-types").GetSpaceEnvironmentParams & {
651
- entryId: string;
652
- };
653
- } & {
654
- payload: import("./entry").EntryProps<any>;
655
- }): Promise<import("./entry").EntryProps<any>>;
656
- (opts: {
657
- entityType: "Entry";
658
- action: "unpublish";
659
- } & {
660
- params: import("../common-types").GetSpaceEnvironmentParams & {
661
- entryId: string;
662
- };
663
- }): Promise<import("./entry").EntryProps<any>>;
664
- (opts: {
665
- entityType: "Entry";
666
- action: "archive";
667
- } & {
668
- params: import("../common-types").GetSpaceEnvironmentParams & {
669
- entryId: string;
670
- };
671
- }): Promise<import("./entry").EntryProps<any>>;
672
- (opts: {
673
- entityType: "Entry";
674
- action: "unarchive";
675
- } & {
676
- params: import("../common-types").GetSpaceEnvironmentParams & {
677
- entryId: string;
678
- };
679
- }): Promise<import("./entry").EntryProps<any>>;
680
- (opts: {
681
- entityType: "Entry";
682
- action: "create";
683
- } & {
684
- params: import("../common-types").GetSpaceEnvironmentParams & {
685
- contentTypeId: string;
686
- };
687
- } & {
688
- payload: Pick<import("./entry").EntryProps<any>, "metadata" | "fields">;
689
- }): Promise<import("./entry").EntryProps<any>>;
690
- (opts: {
691
- entityType: "Entry";
692
- action: "createWithId";
693
- } & {
694
- params: import("../common-types").GetSpaceEnvironmentParams & {
695
- entryId: string;
696
- contentTypeId: string;
697
- };
698
- } & {
699
- payload: Pick<import("./entry").EntryProps<any>, "metadata" | "fields">;
700
- }): Promise<import("./entry").EntryProps<any>>;
701
- (opts: {
702
- entityType: "Entry";
703
- action: "references";
704
- } & {
705
- params: import("../common-types").GetSpaceEnvironmentParams & {
706
- entryId: string;
707
- maxDepth?: number | undefined;
708
- };
709
- }): Promise<import("./entry").EntryReferenceProps>;
710
- (opts: {
711
- entityType: "Extension";
712
- action: "get";
713
- } & {
714
- params: import("../common-types").GetSpaceEnvironmentParams & {
715
- extensionId: string;
716
- } & import("../common-types").QueryParams;
717
- }): Promise<import("./extension").ExtensionProps>;
718
- (opts: {
719
- entityType: "Extension";
720
- action: "getMany";
721
- } & {
722
- params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
723
- }): Promise<import("../common-types").CollectionProp<import("./extension").ExtensionProps>>;
724
- (opts: {
725
- entityType: "Extension";
726
- action: "create";
727
- } & {
728
- params: import("../common-types").GetSpaceEnvironmentParams;
729
- } & {
730
- payload: import("./extension").CreateExtensionProps;
731
- } & {
732
- headers?: Record<string, unknown> | undefined;
733
- }): Promise<import("./extension").ExtensionProps>;
734
- (opts: {
735
- entityType: "Extension";
736
- action: "createWithId";
737
- } & {
738
- params: import("../common-types").GetExtensionParams;
739
- } & {
740
- payload: import("./extension").CreateExtensionProps;
741
- } & {
742
- headers?: Record<string, unknown> | undefined;
743
- }): Promise<import("./extension").ExtensionProps>;
744
- (opts: {
745
- entityType: "Extension";
746
- action: "update";
747
- } & {
748
- params: import("../common-types").GetExtensionParams;
749
- } & {
750
- payload: import("./extension").ExtensionProps;
751
- } & {
752
- headers?: Record<string, unknown> | undefined;
753
- }): Promise<import("./extension").ExtensionProps>;
754
- (opts: {
755
- entityType: "Extension";
756
- action: "delete";
757
- } & {
758
- params: import("../common-types").GetExtensionParams;
759
- }): Promise<any>;
760
- (opts: {
761
- entityType: "Locale";
762
- action: "get";
763
- } & {
764
- params: import("../common-types").GetSpaceEnvironmentParams & {
765
- localeId: string;
766
- };
767
- }): Promise<import("./locale").LocaleProps>;
768
- (opts: {
769
- entityType: "Locale";
770
- action: "getMany";
771
- } & {
772
- params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
773
- }): Promise<import("../common-types").CollectionProp<import("./locale").LocaleProps>>;
774
- (opts: {
775
- entityType: "Locale";
776
- action: "delete";
777
- } & {
778
- params: import("../common-types").GetSpaceEnvironmentParams & {
779
- localeId: string;
780
- };
781
- }): Promise<any>;
782
- (opts: {
783
- entityType: "Locale";
784
- action: "update";
785
- } & {
786
- params: import("../common-types").GetSpaceEnvironmentParams & {
787
- localeId: string;
788
- };
789
- } & {
790
- payload: import("./locale").LocaleProps;
791
- } & {
792
- headers?: Record<string, unknown> | undefined;
793
- }): Promise<import("./locale").LocaleProps>;
794
- (opts: {
795
- entityType: "Locale";
796
- action: "create";
797
- } & {
798
- params: import("../common-types").GetSpaceEnvironmentParams;
799
- } & {
800
- payload: Pick<import("type-fest/source/simplify").Simplify<Pick<Pick<import("./locale").LocaleProps, "optional" | "default" | "code" | "name" | "internal_code" | "fallbackCode" | "contentDeliveryApi" | "contentManagementApi">, "code" | "name" | "internal_code" | "fallbackCode"> & Partial<Pick<Pick<import("./locale").LocaleProps, "optional" | "default" | "code" | "name" | "internal_code" | "fallbackCode" | "contentDeliveryApi" | "contentManagementApi">, "optional" | "default" | "contentDeliveryApi" | "contentManagementApi">>>, "optional" | "default" | "code" | "name" | "fallbackCode" | "contentDeliveryApi" | "contentManagementApi">;
801
- } & {
802
- headers?: Record<string, unknown> | undefined;
803
- }): Promise<import("./locale").LocaleProps>;
804
- (opts: {
805
- entityType: "Organization";
806
- action: "getMany";
807
- }): Promise<import("../common-types").CollectionProp<import("./organization").OrganizationProp>>;
808
- (opts: {
809
- entityType: "Organization";
810
- action: "get";
811
- } & {
812
- params: import("../common-types").GetOrganizationParams;
813
- }): Promise<import("./organization").OrganizationProp>;
814
- (opts: {
815
- entityType: "OrganizationInvitation";
816
- action: "get";
817
- } & {
818
- params: {
819
- organizationId: string;
820
- invitationId: string;
821
- };
822
- } & {
823
- headers?: Record<string, unknown> | undefined;
824
- }): Promise<import("./organization-invitation").OrganizationInvitationProps>;
825
- (opts: {
826
- entityType: "OrganizationInvitation";
827
- action: "create";
828
- } & {
829
- params: {
830
- organizationId: string;
831
- };
832
- } & {
833
- payload: Pick<import("./organization-invitation").OrganizationInvitationProps, "firstName" | "lastName" | "email" | "role">;
834
- } & {
835
- headers?: Record<string, unknown> | undefined;
836
- }): Promise<import("./organization-invitation").OrganizationInvitationProps>;
837
- (opts: {
838
- entityType: "OrganizationMembership";
839
- action: "get";
840
- } & {
841
- params: import("../common-types").GetOrganizationMembershipProps;
842
- }): Promise<import("./organization-membership").OrganizationMembershipProps>;
843
- (opts: {
844
- entityType: "OrganizationMembership";
845
- action: "getMany";
846
- } & {
847
- params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams;
848
- }): Promise<import("../common-types").CollectionProp<import("./organization-membership").OrganizationMembershipProps>>;
849
- (opts: {
850
- entityType: "OrganizationMembership";
851
- action: "update";
852
- } & {
853
- params: import("../common-types").GetOrganizationMembershipProps;
854
- } & {
855
- payload: import("./organization-membership").OrganizationMembershipProps;
856
- } & {
857
- headers?: Record<string, unknown> | undefined;
858
- }): Promise<import("./organization-membership").OrganizationMembershipProps>;
859
- (opts: {
860
- entityType: "OrganizationMembership";
861
- action: "delete";
862
- } & {
863
- params: import("../common-types").GetOrganizationMembershipProps;
864
- }): Promise<any>;
865
- (opts: {
866
- entityType: "PersonalAccessToken";
867
- action: "get";
868
- } & {
869
- params: {
870
- tokenId: string;
871
- };
872
- }): Promise<import("./personal-access-token").PersonalAccessTokenProp>;
873
- (opts: {
874
- entityType: "PersonalAccessToken";
875
- action: "getMany";
876
- } & {
877
- params: import("../common-types").QueryParams;
878
- }): Promise<import("../common-types").CollectionProp<import("./personal-access-token").PersonalAccessTokenProp>>;
879
- (opts: {
880
- entityType: "PersonalAccessToken";
881
- action: "create";
882
- } & {
883
- params: {};
884
- } & {
885
- payload: Pick<import("./personal-access-token").PersonalAccessToken, "name" | "scopes">;
886
- } & {
887
- headers?: Record<string, unknown> | undefined;
888
- }): Promise<import("./personal-access-token").PersonalAccessTokenProp>;
889
- (opts: {
890
- entityType: "PersonalAccessToken";
891
- action: "revoke";
892
- } & {
893
- params: {
894
- tokenId: string;
895
- };
896
- }): Promise<import("./personal-access-token").PersonalAccessTokenProp>;
897
- (opts: {
898
- entityType: "PreviewApiKey";
899
- action: "get";
900
- } & {
901
- params: import("../common-types").GetSpaceParams & {
902
- previewApiKeyId: string;
903
- };
904
- }): Promise<import("./preview-api-key").PreviewApiKeyProps>;
905
- (opts: {
906
- entityType: "PreviewApiKey";
907
- action: "getMany";
908
- } & {
909
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
910
- }): Promise<import("../common-types").CollectionProp<import("./preview-api-key").PreviewApiKeyProps>>;
911
- (opts: {
912
- entityType: "Release";
913
- action: "get";
914
- } & {
915
- params: import("../common-types").GetReleaseParams;
916
- }): Promise<import("./release").ReleaseProps>;
917
- (opts: {
918
- entityType: "Release";
919
- action: "query";
920
- } & {
921
- params: import("../common-types").GetSpaceEnvironmentParams & {
922
- query?: import("./release").ReleaseQueryOptions | undefined;
923
- };
924
- }): Promise<import("../common-types").CollectionProp<import("./release").ReleaseProps>>;
925
- (opts: {
926
- entityType: "Release";
927
- action: "create";
928
- } & {
929
- params: import("../common-types").GetSpaceEnvironmentParams;
930
- } & {
931
- payload: import("./release").ReleasePayload;
932
- }): Promise<import("./release").ReleaseProps>;
933
- (opts: {
934
- entityType: "Release";
935
- action: "update";
936
- } & {
937
- params: import("../common-types").GetSpaceEnvironmentParams & {
938
- releaseId: string;
939
- } & {
940
- version: number;
941
- };
942
- } & {
943
- payload: import("./release").ReleasePayload;
944
- }): Promise<import("./release").ReleaseProps>;
945
- (opts: {
946
- entityType: "Release";
947
- action: "delete";
948
- } & {
949
- params: import("../common-types").GetReleaseParams;
950
- }): Promise<void>;
951
- (opts: {
952
- entityType: "Release";
953
- action: "publish";
954
- } & {
955
- params: import("../common-types").GetSpaceEnvironmentParams & {
956
- releaseId: string;
957
- } & {
958
- version: number;
959
- };
960
- }): Promise<import("./release-action").ReleaseActionProps<"publish">>;
961
- (opts: {
962
- entityType: "Release";
963
- action: "unpublish";
964
- } & {
965
- params: import("../common-types").GetSpaceEnvironmentParams & {
966
- releaseId: string;
967
- } & {
968
- version: number;
969
- };
970
- }): Promise<import("./release-action").ReleaseActionProps<"unpublish">>;
971
- (opts: {
972
- entityType: "Release";
973
- action: "validate";
974
- } & {
975
- params: import("../common-types").GetReleaseParams;
976
- } & {
977
- payload?: import("./release").ReleaseValidatePayload | undefined;
978
- }): Promise<import("./release-action").ReleaseActionProps<"validate">>;
979
- (opts: {
980
- entityType: "ReleaseAction";
981
- action: "get";
982
- } & {
983
- params: import("../common-types").GetSpaceEnvironmentParams & {
984
- releaseId: string;
985
- } & {
986
- actionId: string;
987
- };
988
- }): Promise<import("./release-action").ReleaseAction<any>>;
989
- (opts: {
990
- entityType: "ReleaseAction";
991
- action: "queryForRelease";
992
- } & {
993
- params: import("../common-types").GetSpaceEnvironmentParams & {
994
- releaseId: string;
995
- } & {
996
- query?: import("./release-action").ReleaseActionQueryOptions | undefined;
997
- };
998
- }): Promise<import("../common-types").Collection<import("./release-action").ReleaseAction<any>, import("./release-action").ReleaseActionProps<any>>>;
999
- (opts: {
1000
- entityType: "Role";
1001
- action: "get";
1002
- } & {
1003
- params: import("../common-types").GetSpaceParams & {
1004
- roleId: string;
1005
- };
1006
- }): Promise<import("./role").RoleProps>;
1007
- (opts: {
1008
- entityType: "Role";
1009
- action: "getMany";
1010
- } & {
1011
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
1012
- }): Promise<import("../common-types").CollectionProp<import("./role").RoleProps>>;
1013
- (opts: {
1014
- entityType: "Role";
1015
- action: "create";
1016
- } & {
1017
- params: import("../common-types").GetSpaceParams;
1018
- } & {
1019
- payload: Pick<import("./role").RoleProps, "description" | "name" | "permissions" | "policies">;
1020
- } & {
1021
- headers?: Record<string, unknown> | undefined;
1022
- }): Promise<import("./role").RoleProps>;
1023
- (opts: {
1024
- entityType: "Role";
1025
- action: "createWithId";
1026
- } & {
1027
- params: import("../common-types").GetSpaceParams & {
1028
- roleId: string;
1029
- };
1030
- } & {
1031
- payload: Pick<import("./role").RoleProps, "description" | "name" | "permissions" | "policies">;
1032
- } & {
1033
- headers?: Record<string, unknown> | undefined;
1034
- }): Promise<import("./role").RoleProps>;
1035
- (opts: {
1036
- entityType: "Role";
1037
- action: "update";
1038
- } & {
1039
- params: import("../common-types").GetSpaceParams & {
1040
- roleId: string;
1041
- };
1042
- } & {
1043
- payload: import("./role").RoleProps;
1044
- } & {
1045
- headers?: Record<string, unknown> | undefined;
1046
- }): Promise<import("./role").RoleProps>;
1047
- (opts: {
1048
- entityType: "Role";
1049
- action: "delete";
1050
- } & {
1051
- params: import("../common-types").GetSpaceParams & {
1052
- roleId: string;
1053
- };
1054
- }): Promise<any>;
1055
- (opts: {
1056
- entityType: "ScheduledAction";
1057
- action: "get";
1058
- } & {
1059
- params: import("../common-types").GetSpaceParams & {
1060
- scheduledActionId: string;
1061
- environmentId: string;
1062
- };
1063
- }): Promise<import("./scheduled-action").ScheduledActionProps>;
1064
- (opts: {
1065
- entityType: "ScheduledAction";
1066
- action: "getMany";
1067
- } & {
1068
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
1069
- }): Promise<import("../common-types").CollectionProp<import("./scheduled-action").ScheduledActionProps>>;
1070
- (opts: {
1071
- entityType: "ScheduledAction";
1072
- action: "create";
1073
- } & {
1074
- params: import("../common-types").GetSpaceParams;
1075
- } & {
1076
- payload: Pick<import("./scheduled-action").ScheduledActionProps, "environment" | "error" | "action" | "entity" | "scheduledFor">;
1077
- }): Promise<import("./scheduled-action").ScheduledActionProps>;
1078
- (opts: {
1079
- entityType: "ScheduledAction";
1080
- action: "update";
1081
- } & {
1082
- params: import("../common-types").GetSpaceParams & {
1083
- scheduledActionId: string;
1084
- version: number;
1085
- };
1086
- } & {
1087
- payload: Pick<import("./scheduled-action").ScheduledActionProps, "environment" | "error" | "action" | "entity" | "scheduledFor">;
1088
- }): Promise<import("./scheduled-action").ScheduledActionProps>;
1089
- (opts: {
1090
- entityType: "ScheduledAction";
1091
- action: "delete";
1092
- } & {
1093
- params: import("../common-types").GetSpaceEnvironmentParams & {
1094
- scheduledActionId: string;
1095
- };
1096
- }): Promise<any>;
1097
- (opts: {
1098
- entityType: "Snapshot";
1099
- action: "getManyForEntry";
1100
- } & {
1101
- params: import("../common-types").GetSpaceEnvironmentParams & {
1102
- entryId: string;
1103
- } & import("../common-types").QueryParams;
1104
- }): Promise<import("../common-types").CollectionProp<import("./snapshot").SnapshotProps<import("./entry").EntryProps<any>>>>;
1105
- (opts: {
1106
- entityType: "Snapshot";
1107
- action: "getForEntry";
1108
- } & {
1109
- params: import("../common-types").GetSpaceEnvironmentParams & {
1110
- entryId: string;
1111
- } & {
1112
- snapshotId: string;
1113
- };
1114
- }): Promise<import("./snapshot").SnapshotProps<import("./entry").EntryProps<any>>>;
1115
- (opts: {
1116
- entityType: "Snapshot";
1117
- action: "getManyForContentType";
1118
- } & {
1119
- params: import("../common-types").GetSpaceEnvironmentParams & {
1120
- contentTypeId: string;
1121
- } & import("../common-types").QueryParams;
1122
- }): Promise<import("../common-types").CollectionProp<import("./snapshot").SnapshotProps<import("./content-type").ContentTypeProps>>>;
1123
- (opts: {
1124
- entityType: "Snapshot";
1125
- action: "getForContentType";
1126
- } & {
1127
- params: import("../common-types").GetSpaceEnvironmentParams & {
1128
- contentTypeId: string;
1129
- } & {
1130
- snapshotId: string;
1131
- };
1132
- }): Promise<import("./snapshot").SnapshotProps<import("./content-type").ContentTypeProps>>;
1133
- (opts: {
1134
- entityType: "Space";
1135
- action: "get";
1136
- } & {
1137
- params: import("../common-types").GetSpaceParams;
1138
- }): Promise<SpaceProps>;
1139
- (opts: {
1140
- entityType: "Space";
1141
- action: "getMany";
1142
- } & {
1143
- params: import("../common-types").QueryParams;
1144
- }): Promise<import("../common-types").CollectionProp<SpaceProps>>;
1145
- (opts: {
1146
- entityType: "Space";
1147
- action: "create";
1148
- } & {
1149
- params: {
1150
- organizationId?: string | undefined;
1151
- };
1152
- } & {
1153
- payload: Pick<SpaceProps, "name">;
1154
- } & {
1155
- headers?: Record<string, unknown> | undefined;
1156
- }): Promise<any>;
1157
- (opts: {
1158
- entityType: "Space";
1159
- action: "update";
1160
- } & {
1161
- params: import("../common-types").GetSpaceParams;
1162
- } & {
1163
- payload: SpaceProps;
1164
- } & {
1165
- headers?: Record<string, unknown> | undefined;
1166
- }): Promise<SpaceProps>;
1167
- (opts: {
1168
- entityType: "Space";
1169
- action: "delete";
1170
- } & {
1171
- params: import("../common-types").GetSpaceParams;
1172
- }): Promise<void>;
1173
- (opts: {
1174
- entityType: "SpaceMember";
1175
- action: "get";
1176
- } & {
1177
- params: import("../common-types").GetSpaceParams & {
1178
- spaceMemberId: string;
1179
- };
1180
- }): Promise<import("./space-member").SpaceMemberProps>;
1181
- (opts: {
1182
- entityType: "SpaceMember";
1183
- action: "getMany";
1184
- } & {
1185
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
1186
- }): Promise<import("../common-types").CollectionProp<import("./space-member").SpaceMemberProps>>;
1187
- (opts: {
1188
- entityType: "SpaceMembership";
1189
- action: "get";
1190
- } & {
1191
- params: import("../common-types").GetSpaceMembershipProps;
1192
- }): Promise<import("./space-membership").SpaceMembershipProps>;
1193
- (opts: {
1194
- entityType: "SpaceMembership";
1195
- action: "getMany";
1196
- } & {
1197
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
1198
- }): Promise<import("../common-types").CollectionProp<import("./space-membership").SpaceMembershipProps>>;
1199
- (opts: {
1200
- entityType: "SpaceMembership";
1201
- action: "getForOrganization";
1202
- } & {
1203
- params: import("../common-types").GetOrganizationParams & {
1204
- spaceMembershipId: string;
1205
- };
1206
- }): Promise<import("./space-membership").SpaceMembershipProps>;
1207
- (opts: {
1208
- entityType: "SpaceMembership";
1209
- action: "getManyForOrganization";
1210
- } & {
1211
- params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams;
1212
- }): Promise<import("../common-types").CollectionProp<import("./space-membership").SpaceMembershipProps>>;
1213
- (opts: {
1214
- entityType: "SpaceMembership";
1215
- action: "create";
1216
- } & {
1217
- params: import("../common-types").GetSpaceParams;
1218
- } & {
1219
- payload: import("./space-membership").CreateSpaceMembershipProps;
1220
- } & {
1221
- headers?: Record<string, unknown> | undefined;
1222
- }): Promise<import("./space-membership").SpaceMembershipProps>;
1223
- (opts: {
1224
- entityType: "SpaceMembership";
1225
- action: "createWithId";
1226
- } & {
1227
- params: import("../common-types").GetSpaceMembershipProps;
1228
- } & {
1229
- payload: import("./space-membership").CreateSpaceMembershipProps;
1230
- } & {
1231
- headers?: Record<string, unknown> | undefined;
1232
- }): Promise<import("./space-membership").SpaceMembershipProps>;
1233
- (opts: {
1234
- entityType: "SpaceMembership";
1235
- action: "update";
1236
- } & {
1237
- params: import("../common-types").GetSpaceMembershipProps;
1238
- } & {
1239
- payload: import("./space-membership").SpaceMembershipProps;
1240
- } & {
1241
- headers?: Record<string, unknown> | undefined;
1242
- }): Promise<import("./space-membership").SpaceMembershipProps>;
1243
- (opts: {
1244
- entityType: "SpaceMembership";
1245
- action: "delete";
1246
- } & {
1247
- params: import("../common-types").GetSpaceMembershipProps;
1248
- }): Promise<any>;
1249
- (opts: {
1250
- entityType: "Tag";
1251
- action: "get";
1252
- } & {
1253
- params: import("../common-types").GetTagParams;
1254
- }): Promise<import("./tag").TagProps>;
1255
- (opts: {
1256
- entityType: "Tag";
1257
- action: "getMany";
1258
- } & {
1259
- params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
1260
- }): Promise<import("../common-types").CollectionProp<import("./tag").TagProps>>;
1261
- (opts: {
1262
- entityType: "Tag";
1263
- action: "createWithId";
1264
- } & {
1265
- params: import("../common-types").GetTagParams;
1266
- } & {
1267
- payload: import("./tag").CreateTagProps;
1268
- }): Promise<import("./tag").TagProps>;
1269
- (opts: {
1270
- entityType: "Tag";
1271
- action: "update";
1272
- } & {
1273
- params: import("../common-types").GetTagParams;
1274
- } & {
1275
- payload: import("./tag").UpdateTagProps;
1276
- } & {
1277
- headers?: Record<string, unknown> | undefined;
1278
- }): Promise<import("./tag").TagProps>;
1279
- (opts: {
1280
- entityType: "Tag";
1281
- action: "delete";
1282
- } & {
1283
- params: import("./tag").DeleteTagParams;
1284
- }): Promise<any>;
1285
- (opts: {
1286
- entityType: "Task";
1287
- action: "get";
1288
- } & {
1289
- params: import("../common-types").GetTaskParams;
1290
- }): Promise<import("./task").TaskProps>;
1291
- (opts: {
1292
- entityType: "Task";
1293
- action: "getAll";
1294
- } & {
1295
- params: import("../common-types").GetEntryParams;
1296
- }): Promise<import("../common-types").CollectionProp<import("./task").TaskProps>>;
1297
- (opts: {
1298
- entityType: "Task";
1299
- action: "create";
1300
- } & {
1301
- params: import("../common-types").GetEntryParams;
1302
- } & {
1303
- payload: Pick<import("./task").TaskProps, "body" | "assignedTo" | "status" | "dueDate">;
1304
- }): Promise<import("./task").TaskProps>;
1305
- (opts: {
1306
- entityType: "Task";
1307
- action: "update";
1308
- } & {
1309
- params: import("../common-types").GetTaskParams;
1310
- } & {
1311
- payload: import("./task").UpdateTaskProps;
1312
- } & {
1313
- headers?: Record<string, unknown> | undefined;
1314
- }): Promise<import("./task").TaskProps>;
1315
- (opts: {
1316
- entityType: "Task";
1317
- action: "delete";
1318
- } & {
1319
- params: import("./task").DeleteTaskParams;
1320
- }): Promise<void>;
1321
- (opts: {
1322
- entityType: "Team";
1323
- action: "get";
1324
- } & {
1325
- params: import("../common-types").GetTeamParams;
1326
- }): Promise<import("./team").TeamProps>;
1327
- (opts: {
1328
- entityType: "Team";
1329
- action: "getMany";
1330
- } & {
1331
- params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams;
1332
- }): Promise<import("../common-types").CollectionProp<import("./team").TeamProps>>;
1333
- (opts: {
1334
- entityType: "Team";
1335
- action: "getManyForSpace";
1336
- } & {
1337
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
1338
- }): Promise<import("../common-types").CollectionProp<import("./team").TeamProps>>;
1339
- (opts: {
1340
- entityType: "Team";
1341
- action: "create";
1342
- } & {
1343
- params: import("../common-types").GetOrganizationParams;
1344
- } & {
1345
- payload: Pick<import("./team").TeamProps, "description" | "name">;
1346
- } & {
1347
- headers?: Record<string, unknown> | undefined;
1348
- }): Promise<any>;
1349
- (opts: {
1350
- entityType: "Team";
1351
- action: "update";
1352
- } & {
1353
- params: import("../common-types").GetTeamParams;
1354
- } & {
1355
- payload: import("./team").TeamProps;
1356
- } & {
1357
- headers?: Record<string, unknown> | undefined;
1358
- }): Promise<import("./team").TeamProps>;
1359
- (opts: {
1360
- entityType: "Team";
1361
- action: "delete";
1362
- } & {
1363
- params: import("../common-types").GetTeamParams;
1364
- }): Promise<any>;
1365
- (opts: {
1366
- entityType: "TeamMembership";
1367
- action: "get";
1368
- } & {
1369
- params: import("../common-types").GetTeamMembershipParams;
1370
- }): Promise<import("./team-membership").TeamMembershipProps>;
1371
- (opts: {
1372
- entityType: "TeamMembership";
1373
- action: "getManyForOrganization";
1374
- } & {
1375
- params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams;
1376
- }): Promise<import("../common-types").CollectionProp<import("./team-membership").TeamMembershipProps>>;
1377
- (opts: {
1378
- entityType: "TeamMembership";
1379
- action: "getManyForTeam";
1380
- } & {
1381
- params: import("../common-types").GetTeamParams & import("../common-types").QueryParams;
1382
- }): Promise<import("../common-types").CollectionProp<import("./team-membership").TeamMembershipProps>>;
1383
- (opts: {
1384
- entityType: "TeamMembership";
1385
- action: "create";
1386
- } & {
1387
- params: import("../common-types").GetTeamParams;
1388
- } & {
1389
- payload: Pick<import("./team-membership").TeamMembershipProps, "admin" | "organizationMembershipId">;
1390
- } & {
1391
- headers?: Record<string, unknown> | undefined;
1392
- }): Promise<import("./team-membership").TeamMembershipProps>;
1393
- (opts: {
1394
- entityType: "TeamMembership";
1395
- action: "update";
1396
- } & {
1397
- params: import("../common-types").GetTeamMembershipParams;
1398
- } & {
1399
- payload: import("./team-membership").TeamMembershipProps;
1400
- } & {
1401
- headers?: Record<string, unknown> | undefined;
1402
- }): Promise<import("./team-membership").TeamMembershipProps>;
1403
- (opts: {
1404
- entityType: "TeamMembership";
1405
- action: "delete";
1406
- } & {
1407
- params: import("../common-types").GetTeamMembershipParams;
1408
- }): Promise<any>;
1409
- (opts: {
1410
- entityType: "TeamSpaceMembership";
1411
- action: "get";
1412
- } & {
1413
- params: import("../common-types").GetTeamSpaceMembershipParams;
1414
- }): Promise<import("./team-space-membership").TeamSpaceMembershipProps>;
1415
- (opts: {
1416
- entityType: "TeamSpaceMembership";
1417
- action: "getMany";
1418
- } & {
1419
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
1420
- }): Promise<import("../common-types").CollectionProp<import("./team-space-membership").TeamSpaceMembershipProps>>;
1421
- (opts: {
1422
- entityType: "TeamSpaceMembership";
1423
- action: "getForOrganization";
1424
- } & {
1425
- params: import("../common-types").GetOrganizationParams & {
1426
- teamSpaceMembershipId: string;
1427
- };
1428
- }): Promise<import("./team-space-membership").TeamSpaceMembershipProps>;
1429
- (opts: {
1430
- entityType: "TeamSpaceMembership";
1431
- action: "getManyForOrganization";
1432
- } & {
1433
- params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams & {
1434
- teamId?: string | undefined;
1435
- };
1436
- }): Promise<import("../common-types").CollectionProp<import("./team-space-membership").TeamSpaceMembershipProps>>;
1437
- (opts: {
1438
- entityType: "TeamSpaceMembership";
1439
- action: "create";
1440
- } & {
1441
- params: import("../common-types").GetSpaceParams & {
1442
- teamId: string;
1443
- };
1444
- } & {
1445
- payload: Pick<import("./team-space-membership").TeamSpaceMembershipProps, "admin" | "roles">;
1446
- } & {
1447
- headers?: Record<string, unknown> | undefined;
1448
- }): Promise<import("./team-space-membership").TeamSpaceMembershipProps>;
1449
- (opts: {
1450
- entityType: "TeamSpaceMembership";
1451
- action: "update";
1452
- } & {
1453
- params: import("../common-types").GetTeamSpaceMembershipParams;
1454
- } & {
1455
- payload: import("./team-space-membership").TeamSpaceMembershipProps;
1456
- } & {
1457
- headers?: Record<string, unknown> | undefined;
1458
- }): Promise<import("./team-space-membership").TeamSpaceMembershipProps>;
1459
- (opts: {
1460
- entityType: "TeamSpaceMembership";
1461
- action: "delete";
1462
- } & {
1463
- params: import("../common-types").GetTeamSpaceMembershipParams;
1464
- }): Promise<any>;
1465
- (opts: {
1466
- entityType: "Upload";
1467
- action: "get";
1468
- } & {
1469
- params: import("../common-types").GetSpaceParams & {
1470
- uploadId: string;
1471
- };
1472
- }): Promise<import("./entry").EntryProps<any>>;
1473
- (opts: {
1474
- entityType: "Upload";
1475
- action: "create";
1476
- } & {
1477
- params: import("../common-types").GetSpaceParams;
1478
- } & {
1479
- payload: {
1480
- file: string | ArrayBuffer | import("stream").Stream;
1481
- };
1482
- }): Promise<import("./entry").EntryProps<any>>;
1483
- (opts: {
1484
- entityType: "Upload";
1485
- action: "delete";
1486
- } & {
1487
- params: import("../common-types").GetSpaceParams & {
1488
- uploadId: string;
1489
- };
1490
- }): Promise<any>;
1491
- (opts: {
1492
- entityType: "Usage";
1493
- action: "getManyForSpace";
1494
- } & {
1495
- params: {
1496
- organizationId: string;
1497
- } & import("../common-types").QueryParams;
1498
- }): Promise<import("../common-types").CollectionProp<import("./usage").UsageProps>>;
1499
- (opts: {
1500
- entityType: "Usage";
1501
- action: "getManyForOrganization";
1502
- } & {
1503
- params: {
1504
- organizationId: string;
1505
- } & import("../common-types").QueryParams;
1506
- }): Promise<import("../common-types").CollectionProp<import("./usage").UsageProps>>;
1507
- (opts: {
1508
- entityType: "User";
1509
- action: "getManyForSpace";
1510
- } & {
1511
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
1512
- }): Promise<import("../common-types").CollectionProp<import("./user").UserProps>>;
1513
- (opts: {
1514
- entityType: "User";
1515
- action: "getForSpace";
1516
- } & {
1517
- params: import("../common-types").GetSpaceParams & {
1518
- userId: string;
1519
- };
1520
- }): Promise<import("./user").UserProps>;
1521
- (opts: {
1522
- entityType: "User";
1523
- action: "getCurrent";
1524
- } & {
1525
- params?: import("../common-types").QueryParams | undefined;
1526
- }): Promise<any>;
1527
- (opts: {
1528
- entityType: "User";
1529
- action: "getForOrganization";
1530
- } & {
1531
- params: import("../common-types").GetOrganizationParams & {
1532
- userId: string;
1533
- };
1534
- }): Promise<import("./user").UserProps>;
1535
- (opts: {
1536
- entityType: "User";
1537
- action: "getManyForOrganization";
1538
- } & {
1539
- params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams;
1540
- }): Promise<import("../common-types").CollectionProp<import("./user").UserProps>>;
1541
- (opts: {
1542
- entityType: "Webhook";
1543
- action: "get";
1544
- } & {
1545
- params: import("../common-types").GetWebhookParams;
1546
- }): Promise<import("./webhook").WebhookProps>;
1547
- (opts: {
1548
- entityType: "Webhook";
1549
- action: "getMany";
1550
- } & {
1551
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
1552
- }): Promise<import("../common-types").CollectionProp<import("./webhook").WebhookProps>>;
1553
- (opts: {
1554
- entityType: "Webhook";
1555
- action: "getCallDetails";
1556
- } & {
1557
- params: import("../common-types").GetWebhookCallDetailsUrl;
1558
- }): Promise<import("./webhook").WebhookCallDetailsProps>;
1559
- (opts: {
1560
- entityType: "Webhook";
1561
- action: "getHealthStatus";
1562
- } & {
1563
- params: import("../common-types").GetWebhookParams;
1564
- }): Promise<import("./webhook").WebhookHealthProps>;
1565
- (opts: {
1566
- entityType: "Webhook";
1567
- action: "getManyCallDetails";
1568
- } & {
1569
- params: import("../common-types").GetSpaceParams & {
1570
- webhookDefinitionId: string;
1571
- } & import("../common-types").QueryParams;
1572
- }): Promise<import("../common-types").CollectionProp<Pick<import("./webhook").WebhookCallDetailsProps, "sys" | "statusCode" | "errors" | "eventType" | "url" | "requestAt" | "responseAt">>>;
1573
- (opts: {
1574
- entityType: "Webhook";
1575
- action: "create";
1576
- } & {
1577
- params: import("../common-types").GetSpaceParams;
1578
- } & {
1579
- payload: import("type-fest/source/simplify").Simplify<Pick<Pick<import("./webhook").WebhookProps, "headers" | "name" | "url" | "topics" | "httpBasicUsername" | "httpBasicPassword" | "filters" | "transformation">, "name" | "url" | "topics" | "httpBasicUsername" | "httpBasicPassword" | "filters" | "transformation"> & Partial<Pick<Pick<import("./webhook").WebhookProps, "headers" | "name" | "url" | "topics" | "httpBasicUsername" | "httpBasicPassword" | "filters" | "transformation">, "headers">>>;
1580
- } & {
1581
- headers?: Record<string, unknown> | undefined;
1582
- }): Promise<import("./webhook").WebhookProps>;
1583
- (opts: {
1584
- entityType: "Webhook";
1585
- action: "createWithId";
1586
- } & {
1587
- params: import("../common-types").GetWebhookParams;
1588
- } & {
1589
- payload: import("type-fest/source/simplify").Simplify<Pick<Pick<import("./webhook").WebhookProps, "headers" | "name" | "url" | "topics" | "httpBasicUsername" | "httpBasicPassword" | "filters" | "transformation">, "name" | "url" | "topics" | "httpBasicUsername" | "httpBasicPassword" | "filters" | "transformation"> & Partial<Pick<Pick<import("./webhook").WebhookProps, "headers" | "name" | "url" | "topics" | "httpBasicUsername" | "httpBasicPassword" | "filters" | "transformation">, "headers">>>;
1590
- } & {
1591
- headers?: Record<string, unknown> | undefined;
1592
- }): Promise<import("./webhook").WebhookProps>;
1593
- (opts: {
1594
- entityType: "Webhook";
1595
- action: "update";
1596
- } & {
1597
- params: import("../common-types").GetWebhookParams;
1598
- } & {
1599
- payload: import("./webhook").WebhookProps;
1600
- }): Promise<import("./webhook").WebhookProps>;
1601
- (opts: {
1602
- entityType: "Webhook";
1603
- action: "delete";
1604
- } & {
1605
- params: import("../common-types").GetWebhookParams;
1606
- }): Promise<void>;
1607
- }, data: import("../common-types").CollectionProp<SpaceProps>) => import("../common-types").Collection<Space, SpaceProps>;
30
+ export declare const wrapSpaceCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp<SpaceProps>) => import("../common-types").Collection<Space, SpaceProps>;