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