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