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