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