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