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