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