contentful-management 7.44.2 → 7.45.3

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