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