@datocms/cma-client 3.3.8 → 3.3.9
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.
- package/dist/cjs/generated/Client.js +1 -1
- package/dist/cjs/generated/resources/ItemType.js +17 -0
- package/dist/cjs/generated/resources/ItemType.js.map +1 -1
- package/dist/cjs/generated/resources/MenuItem.js +36 -0
- package/dist/cjs/generated/resources/MenuItem.js.map +1 -1
- package/dist/cjs/generated/resources/SchemaMenuItem.js +36 -0
- package/dist/cjs/generated/resources/SchemaMenuItem.js.map +1 -1
- package/dist/cjs/generated/resources/UploadCollection.js +36 -0
- package/dist/cjs/generated/resources/UploadCollection.js.map +1 -1
- package/dist/cjs/generated/resources/WebhookCall.js +4 -4
- package/dist/cjs/generated/resources/WebhookCall.js.map +1 -1
- package/dist/esm/generated/Client.js +1 -1
- package/dist/esm/generated/SchemaTypes.d.ts +212 -36
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +243 -148
- package/dist/esm/generated/resources/ItemType.d.ts +11 -0
- package/dist/esm/generated/resources/ItemType.js +17 -0
- package/dist/esm/generated/resources/ItemType.js.map +1 -1
- package/dist/esm/generated/resources/MenuItem.d.ts +22 -0
- package/dist/esm/generated/resources/MenuItem.js +36 -0
- package/dist/esm/generated/resources/MenuItem.js.map +1 -1
- package/dist/esm/generated/resources/SchemaMenuItem.d.ts +22 -0
- package/dist/esm/generated/resources/SchemaMenuItem.js +36 -0
- package/dist/esm/generated/resources/SchemaMenuItem.js.map +1 -1
- package/dist/esm/generated/resources/UploadCollection.d.ts +22 -0
- package/dist/esm/generated/resources/UploadCollection.js +36 -0
- package/dist/esm/generated/resources/UploadCollection.js.map +1 -1
- package/dist/esm/generated/resources/WebhookCall.d.ts +2 -2
- package/dist/esm/generated/resources/WebhookCall.js +4 -4
- package/dist/esm/generated/resources/WebhookCall.js.map +1 -1
- package/dist/types/generated/SchemaTypes.d.ts +212 -36
- package/dist/types/generated/SimpleSchemaTypes.d.ts +243 -148
- package/dist/types/generated/resources/ItemType.d.ts +11 -0
- package/dist/types/generated/resources/MenuItem.d.ts +22 -0
- package/dist/types/generated/resources/SchemaMenuItem.d.ts +22 -0
- package/dist/types/generated/resources/UploadCollection.d.ts +22 -0
- package/dist/types/generated/resources/WebhookCall.d.ts +2 -2
- package/package.json +2 -2
- package/resources.json +92 -4
- package/src/generated/Client.ts +1 -1
- package/src/generated/SchemaTypes.ts +229 -38
- package/src/generated/SimpleSchemaTypes.ts +247 -149
- package/src/generated/resources/ItemType.ts +22 -0
- package/src/generated/resources/MenuItem.ts +44 -0
- package/src/generated/resources/SchemaMenuItem.ts +47 -0
- package/src/generated/resources/UploadCollection.ts +47 -0
- package/src/generated/resources/WebhookCall.ts +4 -4
|
@@ -332,6 +332,39 @@ export type MenuItemInstancesHrefSchema = {
|
|
|
332
332
|
ids: string;
|
|
333
333
|
};
|
|
334
334
|
};
|
|
335
|
+
/**
|
|
336
|
+
* This interface was referenced by `MenuItem`'s JSON-Schema
|
|
337
|
+
* via the `reorder.schema` link.
|
|
338
|
+
*/
|
|
339
|
+
export type MenuItemReorderSchema = {
|
|
340
|
+
id: MenuItemIdentity;
|
|
341
|
+
type?: MenuItemType;
|
|
342
|
+
/**
|
|
343
|
+
* Ordering index
|
|
344
|
+
*/
|
|
345
|
+
position: number;
|
|
346
|
+
parent: null | MenuItemData;
|
|
347
|
+
}[];
|
|
348
|
+
/**
|
|
349
|
+
* ID of job
|
|
350
|
+
*
|
|
351
|
+
* This interface was referenced by `Job`'s JSON-Schema
|
|
352
|
+
* via the `definition` "identity".
|
|
353
|
+
*
|
|
354
|
+
* This interface was referenced by `Job`'s JSON-Schema
|
|
355
|
+
* via the `definition` "id".
|
|
356
|
+
*/
|
|
357
|
+
export type JobIdentity = string;
|
|
358
|
+
/**
|
|
359
|
+
* This interface was referenced by `Job`'s JSON-Schema
|
|
360
|
+
* via the `definition` "type".
|
|
361
|
+
*/
|
|
362
|
+
export type JobType = 'job';
|
|
363
|
+
/**
|
|
364
|
+
* This interface was referenced by `MenuItem`'s JSON-Schema
|
|
365
|
+
* via the `reorder.jobSchema` link.
|
|
366
|
+
*/
|
|
367
|
+
export type MenuItemReorderJobSchema = MenuItem[];
|
|
335
368
|
/**
|
|
336
369
|
* RFC 4122 UUID of schema menu item expressed in URL-safe base64 format
|
|
337
370
|
*
|
|
@@ -366,6 +399,24 @@ export type SchemaMenuItemInstancesHrefSchema = {
|
|
|
366
399
|
ids: string;
|
|
367
400
|
};
|
|
368
401
|
};
|
|
402
|
+
/**
|
|
403
|
+
* This interface was referenced by `SchemaMenuItem`'s JSON-Schema
|
|
404
|
+
* via the `reorder.schema` link.
|
|
405
|
+
*/
|
|
406
|
+
export type SchemaMenuItemReorderSchema = {
|
|
407
|
+
id: SchemaMenuItemIdentity;
|
|
408
|
+
type?: SchemaMenuItemType;
|
|
409
|
+
/**
|
|
410
|
+
* Ordering index
|
|
411
|
+
*/
|
|
412
|
+
position: number;
|
|
413
|
+
parent: null | SchemaMenuItemData;
|
|
414
|
+
}[];
|
|
415
|
+
/**
|
|
416
|
+
* This interface was referenced by `SchemaMenuItem`'s JSON-Schema
|
|
417
|
+
* via the `reorder.jobSchema` link.
|
|
418
|
+
*/
|
|
419
|
+
export type SchemaMenuItemReorderJobSchema = SchemaMenuItem[];
|
|
369
420
|
/**
|
|
370
421
|
* RFC 4122 UUID of upload collection expressed in URL-safe base64 format
|
|
371
422
|
*
|
|
@@ -400,6 +451,24 @@ export type UploadCollectionInstancesHrefSchema = {
|
|
|
400
451
|
ids: string;
|
|
401
452
|
};
|
|
402
453
|
};
|
|
454
|
+
/**
|
|
455
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
456
|
+
* via the `reorder.schema` link.
|
|
457
|
+
*/
|
|
458
|
+
export type UploadCollectionReorderSchema = {
|
|
459
|
+
id: UploadCollectionIdentity;
|
|
460
|
+
type?: UploadCollectionType;
|
|
461
|
+
/**
|
|
462
|
+
* Ordering index
|
|
463
|
+
*/
|
|
464
|
+
position: number;
|
|
465
|
+
parent: null | UploadCollectionData;
|
|
466
|
+
}[];
|
|
467
|
+
/**
|
|
468
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
469
|
+
* via the `reorder.jobSchema` link.
|
|
470
|
+
*/
|
|
471
|
+
export type UploadCollectionReorderJobSchema = UploadCollection[];
|
|
403
472
|
/**
|
|
404
473
|
* This interface was referenced by `Item`'s JSON-Schema
|
|
405
474
|
* via the `definition` "type".
|
|
@@ -469,21 +538,6 @@ export type ItemTypeCreateHrefSchema = {
|
|
|
469
538
|
schema_menu_item_id?: string;
|
|
470
539
|
[k: string]: unknown;
|
|
471
540
|
};
|
|
472
|
-
/**
|
|
473
|
-
* ID of job
|
|
474
|
-
*
|
|
475
|
-
* This interface was referenced by `Job`'s JSON-Schema
|
|
476
|
-
* via the `definition` "identity".
|
|
477
|
-
*
|
|
478
|
-
* This interface was referenced by `Job`'s JSON-Schema
|
|
479
|
-
* via the `definition` "id".
|
|
480
|
-
*/
|
|
481
|
-
export type JobIdentity = string;
|
|
482
|
-
/**
|
|
483
|
-
* This interface was referenced by `Job`'s JSON-Schema
|
|
484
|
-
* via the `definition` "type".
|
|
485
|
-
*/
|
|
486
|
-
export type JobType = 'job';
|
|
487
541
|
/**
|
|
488
542
|
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
489
543
|
* via the `instances.targetSchema` link.
|
|
@@ -500,6 +554,29 @@ export type ItemTypeDestroyHrefSchema = {
|
|
|
500
554
|
skip_menu_items_deletion?: boolean;
|
|
501
555
|
[k: string]: unknown;
|
|
502
556
|
};
|
|
557
|
+
/**
|
|
558
|
+
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
559
|
+
* via the `reorder_fields_and_fieldsets.schema` link.
|
|
560
|
+
*/
|
|
561
|
+
export type ItemTypeReorderFieldsAndFieldsetsSchema = (
|
|
562
|
+
| {
|
|
563
|
+
id: FieldIdentity;
|
|
564
|
+
type?: FieldType;
|
|
565
|
+
/**
|
|
566
|
+
* Ordering index
|
|
567
|
+
*/
|
|
568
|
+
position: number;
|
|
569
|
+
fieldset: null | FieldsetData;
|
|
570
|
+
}
|
|
571
|
+
| {
|
|
572
|
+
id: FieldsetIdentity;
|
|
573
|
+
type?: FieldsetType;
|
|
574
|
+
/**
|
|
575
|
+
* Ordering index
|
|
576
|
+
*/
|
|
577
|
+
position: number;
|
|
578
|
+
}
|
|
579
|
+
)[];
|
|
503
580
|
/**
|
|
504
581
|
* This interface was referenced by `Field`'s JSON-Schema
|
|
505
582
|
* via the `instances.targetSchema` link.
|
|
@@ -520,6 +597,11 @@ export type FieldRelatedTargetSchema = Field[];
|
|
|
520
597
|
* via the `instances.targetSchema` link.
|
|
521
598
|
*/
|
|
522
599
|
export type FieldsetInstancesTargetSchema = Fieldset[];
|
|
600
|
+
/**
|
|
601
|
+
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
602
|
+
* via the `reorder_fields_and_fieldsets.jobSchema` link.
|
|
603
|
+
*/
|
|
604
|
+
export type ItemTypeReorderFieldsAndFieldsetsJobSchema = (Field | Fieldset)[];
|
|
523
605
|
/**
|
|
524
606
|
* JSON web token for the session
|
|
525
607
|
*
|
|
@@ -4342,6 +4424,153 @@ export type MenuItemUpdateSchema = {
|
|
|
4342
4424
|
parent?: null | MenuItemData;
|
|
4343
4425
|
};
|
|
4344
4426
|
|
|
4427
|
+
/**
|
|
4428
|
+
* This interface was referenced by `MenuItem`'s JSON-Schema
|
|
4429
|
+
* via the `reorder.targetSchema` link.
|
|
4430
|
+
*
|
|
4431
|
+
* This interface was referenced by `SchemaMenuItem`'s JSON-Schema
|
|
4432
|
+
* via the `reorder.targetSchema` link.
|
|
4433
|
+
*
|
|
4434
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
4435
|
+
* via the `reorder.targetSchema` link.
|
|
4436
|
+
*
|
|
4437
|
+
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
4438
|
+
* via the `update.targetSchema` link.
|
|
4439
|
+
*
|
|
4440
|
+
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
4441
|
+
* via the `destroy.targetSchema` link.
|
|
4442
|
+
*
|
|
4443
|
+
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
4444
|
+
* via the `reorder_fields_and_fieldsets.targetSchema` link.
|
|
4445
|
+
*
|
|
4446
|
+
* This interface was referenced by `Field`'s JSON-Schema
|
|
4447
|
+
* via the `create.targetSchema` link.
|
|
4448
|
+
*
|
|
4449
|
+
* This interface was referenced by `Field`'s JSON-Schema
|
|
4450
|
+
* via the `update.targetSchema` link.
|
|
4451
|
+
*
|
|
4452
|
+
* This interface was referenced by `Field`'s JSON-Schema
|
|
4453
|
+
* via the `destroy.targetSchema` link.
|
|
4454
|
+
*
|
|
4455
|
+
* This interface was referenced by `Field`'s JSON-Schema
|
|
4456
|
+
* via the `duplicate.targetSchema` link.
|
|
4457
|
+
*
|
|
4458
|
+
* This interface was referenced by `Item`'s JSON-Schema
|
|
4459
|
+
* via the `duplicate.targetSchema` link.
|
|
4460
|
+
*
|
|
4461
|
+
* This interface was referenced by `Item`'s JSON-Schema
|
|
4462
|
+
* via the `destroy.targetSchema` link.
|
|
4463
|
+
*
|
|
4464
|
+
* This interface was referenced by `Item`'s JSON-Schema
|
|
4465
|
+
* via the `batch_destroy.targetSchema` link.
|
|
4466
|
+
*
|
|
4467
|
+
* This interface was referenced by `Item`'s JSON-Schema
|
|
4468
|
+
* via the `batch_publish.targetSchema` link.
|
|
4469
|
+
*
|
|
4470
|
+
* This interface was referenced by `Item`'s JSON-Schema
|
|
4471
|
+
* via the `batch_unpublish.targetSchema` link.
|
|
4472
|
+
*
|
|
4473
|
+
* This interface was referenced by `Item`'s JSON-Schema
|
|
4474
|
+
* via the `bulk_publish.targetSchema` link.
|
|
4475
|
+
*
|
|
4476
|
+
* This interface was referenced by `Item`'s JSON-Schema
|
|
4477
|
+
* via the `bulk_unpublish.targetSchema` link.
|
|
4478
|
+
*
|
|
4479
|
+
* This interface was referenced by `Item`'s JSON-Schema
|
|
4480
|
+
* via the `bulk_destroy.targetSchema` link.
|
|
4481
|
+
*
|
|
4482
|
+
* This interface was referenced by `Item`'s JSON-Schema
|
|
4483
|
+
* via the `bulk_move_to_stage.targetSchema` link.
|
|
4484
|
+
*
|
|
4485
|
+
* This interface was referenced by `ItemVersion`'s JSON-Schema
|
|
4486
|
+
* via the `restore.targetSchema` link.
|
|
4487
|
+
*
|
|
4488
|
+
* This interface was referenced by `Upload`'s JSON-Schema
|
|
4489
|
+
* via the `create.targetSchema` link.
|
|
4490
|
+
*
|
|
4491
|
+
* This interface was referenced by `Upload`'s JSON-Schema
|
|
4492
|
+
* via the `update.targetSchema` link.
|
|
4493
|
+
*
|
|
4494
|
+
* This interface was referenced by `Upload`'s JSON-Schema
|
|
4495
|
+
* via the `batch_add_tags.targetSchema` link.
|
|
4496
|
+
*
|
|
4497
|
+
* This interface was referenced by `Upload`'s JSON-Schema
|
|
4498
|
+
* via the `batch_destroy.targetSchema` link.
|
|
4499
|
+
*
|
|
4500
|
+
* This interface was referenced by `Upload`'s JSON-Schema
|
|
4501
|
+
* via the `bulk_tag.targetSchema` link.
|
|
4502
|
+
*
|
|
4503
|
+
* This interface was referenced by `Upload`'s JSON-Schema
|
|
4504
|
+
* via the `bulk_set_upload_collection.targetSchema` link.
|
|
4505
|
+
*
|
|
4506
|
+
* This interface was referenced by `Upload`'s JSON-Schema
|
|
4507
|
+
* via the `bulk_destroy.targetSchema` link.
|
|
4508
|
+
*
|
|
4509
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
4510
|
+
* via the `create.targetSchema` link.
|
|
4511
|
+
*
|
|
4512
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
4513
|
+
* via the `destroy.targetSchema` link.
|
|
4514
|
+
*
|
|
4515
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
4516
|
+
* via the `generate_subtitles.targetSchema` link.
|
|
4517
|
+
*
|
|
4518
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
4519
|
+
* via the `update.targetSchema` link.
|
|
4520
|
+
*
|
|
4521
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
4522
|
+
* via the `activate_improved_timezone_management.targetSchema` link.
|
|
4523
|
+
*
|
|
4524
|
+
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
4525
|
+
* via the `definition` "job".
|
|
4526
|
+
*/
|
|
4527
|
+
export type Job = {
|
|
4528
|
+
id: JobIdentity;
|
|
4529
|
+
type: JobType;
|
|
4530
|
+
};
|
|
4531
|
+
export type MenuItemReorderTargetSchema = Job;
|
|
4532
|
+
export type SchemaMenuItemReorderTargetSchema = Job;
|
|
4533
|
+
export type UploadCollectionReorderTargetSchema = Job;
|
|
4534
|
+
export type ItemTypeUpdateTargetSchema = Job;
|
|
4535
|
+
export type ItemTypeDestroyTargetSchema = Job;
|
|
4536
|
+
export type ItemTypeReorderFieldsAndFieldsetsTargetSchema = Job;
|
|
4537
|
+
export type FieldCreateTargetSchema = Job;
|
|
4538
|
+
export type FieldUpdateTargetSchema = Job;
|
|
4539
|
+
export type FieldDestroyTargetSchema = Job;
|
|
4540
|
+
export type FieldDuplicateTargetSchema = Job;
|
|
4541
|
+
export type ItemDuplicateTargetSchema = Job;
|
|
4542
|
+
export type ItemDestroyTargetSchema = Job;
|
|
4543
|
+
export type ItemBatchDestroyTargetSchema = Job;
|
|
4544
|
+
export type ItemBatchPublishTargetSchema = Job;
|
|
4545
|
+
export type ItemBatchUnpublishTargetSchema = Job;
|
|
4546
|
+
export type ItemBulkPublishTargetSchema = Job;
|
|
4547
|
+
export type ItemBulkUnpublishTargetSchema = Job;
|
|
4548
|
+
export type ItemBulkDestroyTargetSchema = Job;
|
|
4549
|
+
export type ItemBulkMoveToStageTargetSchema = Job;
|
|
4550
|
+
export type ItemVersionRestoreTargetSchema = Job;
|
|
4551
|
+
export type UploadCreateTargetSchema = Job;
|
|
4552
|
+
export type UploadUpdateTargetSchema = Job;
|
|
4553
|
+
export type UploadBatchAddTagsTargetSchema = Job;
|
|
4554
|
+
export type UploadBatchDestroyTargetSchema = Job;
|
|
4555
|
+
export type UploadBulkTagTargetSchema = Job;
|
|
4556
|
+
export type UploadBulkSetUploadCollectionTargetSchema = Job;
|
|
4557
|
+
export type UploadBulkDestroyTargetSchema = Job;
|
|
4558
|
+
export type UploadTrackCreateTargetSchema = Job;
|
|
4559
|
+
export type UploadTrackDestroyTargetSchema = Job;
|
|
4560
|
+
export type UploadTrackGenerateSubtitlesTargetSchema = Job;
|
|
4561
|
+
export type SiteUpdateTargetSchema = Job;
|
|
4562
|
+
export type SiteActivateImprovedTimezoneManagementTargetSchema = Job;
|
|
4563
|
+
/**
|
|
4564
|
+
* JSON API data
|
|
4565
|
+
*
|
|
4566
|
+
* This interface was referenced by `Job`'s JSON-Schema
|
|
4567
|
+
* via the `definition` "data".
|
|
4568
|
+
*/
|
|
4569
|
+
export type JobData = {
|
|
4570
|
+
type: JobType;
|
|
4571
|
+
id: JobIdentity;
|
|
4572
|
+
};
|
|
4573
|
+
|
|
4345
4574
|
/**
|
|
4346
4575
|
* In DatoCMS you can organize the different models and blocks present in your administrative area reordering and grouping them, so that their purpose will be more clear to the final editor.
|
|
4347
4576
|
*
|
|
@@ -4959,137 +5188,6 @@ export type ItemTypeUpdateSchema = {
|
|
|
4959
5188
|
};
|
|
4960
5189
|
};
|
|
4961
5190
|
|
|
4962
|
-
/**
|
|
4963
|
-
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
4964
|
-
* via the `update.targetSchema` link.
|
|
4965
|
-
*
|
|
4966
|
-
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
4967
|
-
* via the `destroy.targetSchema` link.
|
|
4968
|
-
*
|
|
4969
|
-
* This interface was referenced by `Field`'s JSON-Schema
|
|
4970
|
-
* via the `create.targetSchema` link.
|
|
4971
|
-
*
|
|
4972
|
-
* This interface was referenced by `Field`'s JSON-Schema
|
|
4973
|
-
* via the `update.targetSchema` link.
|
|
4974
|
-
*
|
|
4975
|
-
* This interface was referenced by `Field`'s JSON-Schema
|
|
4976
|
-
* via the `destroy.targetSchema` link.
|
|
4977
|
-
*
|
|
4978
|
-
* This interface was referenced by `Field`'s JSON-Schema
|
|
4979
|
-
* via the `duplicate.targetSchema` link.
|
|
4980
|
-
*
|
|
4981
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
4982
|
-
* via the `duplicate.targetSchema` link.
|
|
4983
|
-
*
|
|
4984
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
4985
|
-
* via the `destroy.targetSchema` link.
|
|
4986
|
-
*
|
|
4987
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
4988
|
-
* via the `batch_destroy.targetSchema` link.
|
|
4989
|
-
*
|
|
4990
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
4991
|
-
* via the `batch_publish.targetSchema` link.
|
|
4992
|
-
*
|
|
4993
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
4994
|
-
* via the `batch_unpublish.targetSchema` link.
|
|
4995
|
-
*
|
|
4996
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
4997
|
-
* via the `bulk_publish.targetSchema` link.
|
|
4998
|
-
*
|
|
4999
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
5000
|
-
* via the `bulk_unpublish.targetSchema` link.
|
|
5001
|
-
*
|
|
5002
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
5003
|
-
* via the `bulk_destroy.targetSchema` link.
|
|
5004
|
-
*
|
|
5005
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
5006
|
-
* via the `bulk_move_to_stage.targetSchema` link.
|
|
5007
|
-
*
|
|
5008
|
-
* This interface was referenced by `ItemVersion`'s JSON-Schema
|
|
5009
|
-
* via the `restore.targetSchema` link.
|
|
5010
|
-
*
|
|
5011
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
5012
|
-
* via the `create.targetSchema` link.
|
|
5013
|
-
*
|
|
5014
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
5015
|
-
* via the `update.targetSchema` link.
|
|
5016
|
-
*
|
|
5017
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
5018
|
-
* via the `batch_add_tags.targetSchema` link.
|
|
5019
|
-
*
|
|
5020
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
5021
|
-
* via the `batch_destroy.targetSchema` link.
|
|
5022
|
-
*
|
|
5023
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
5024
|
-
* via the `bulk_tag.targetSchema` link.
|
|
5025
|
-
*
|
|
5026
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
5027
|
-
* via the `bulk_set_upload_collection.targetSchema` link.
|
|
5028
|
-
*
|
|
5029
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
5030
|
-
* via the `bulk_destroy.targetSchema` link.
|
|
5031
|
-
*
|
|
5032
|
-
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
5033
|
-
* via the `create.targetSchema` link.
|
|
5034
|
-
*
|
|
5035
|
-
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
5036
|
-
* via the `destroy.targetSchema` link.
|
|
5037
|
-
*
|
|
5038
|
-
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
5039
|
-
* via the `generate_subtitles.targetSchema` link.
|
|
5040
|
-
*
|
|
5041
|
-
* This interface was referenced by `Site`'s JSON-Schema
|
|
5042
|
-
* via the `update.targetSchema` link.
|
|
5043
|
-
*
|
|
5044
|
-
* This interface was referenced by `Site`'s JSON-Schema
|
|
5045
|
-
* via the `activate_improved_timezone_management.targetSchema` link.
|
|
5046
|
-
*
|
|
5047
|
-
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
5048
|
-
* via the `definition` "job".
|
|
5049
|
-
*/
|
|
5050
|
-
export type Job = {
|
|
5051
|
-
id: JobIdentity;
|
|
5052
|
-
type: JobType;
|
|
5053
|
-
};
|
|
5054
|
-
export type ItemTypeUpdateTargetSchema = Job;
|
|
5055
|
-
export type ItemTypeDestroyTargetSchema = Job;
|
|
5056
|
-
export type FieldCreateTargetSchema = Job;
|
|
5057
|
-
export type FieldUpdateTargetSchema = Job;
|
|
5058
|
-
export type FieldDestroyTargetSchema = Job;
|
|
5059
|
-
export type FieldDuplicateTargetSchema = Job;
|
|
5060
|
-
export type ItemDuplicateTargetSchema = Job;
|
|
5061
|
-
export type ItemDestroyTargetSchema = Job;
|
|
5062
|
-
export type ItemBatchDestroyTargetSchema = Job;
|
|
5063
|
-
export type ItemBatchPublishTargetSchema = Job;
|
|
5064
|
-
export type ItemBatchUnpublishTargetSchema = Job;
|
|
5065
|
-
export type ItemBulkPublishTargetSchema = Job;
|
|
5066
|
-
export type ItemBulkUnpublishTargetSchema = Job;
|
|
5067
|
-
export type ItemBulkDestroyTargetSchema = Job;
|
|
5068
|
-
export type ItemBulkMoveToStageTargetSchema = Job;
|
|
5069
|
-
export type ItemVersionRestoreTargetSchema = Job;
|
|
5070
|
-
export type UploadCreateTargetSchema = Job;
|
|
5071
|
-
export type UploadUpdateTargetSchema = Job;
|
|
5072
|
-
export type UploadBatchAddTagsTargetSchema = Job;
|
|
5073
|
-
export type UploadBatchDestroyTargetSchema = Job;
|
|
5074
|
-
export type UploadBulkTagTargetSchema = Job;
|
|
5075
|
-
export type UploadBulkSetUploadCollectionTargetSchema = Job;
|
|
5076
|
-
export type UploadBulkDestroyTargetSchema = Job;
|
|
5077
|
-
export type UploadTrackCreateTargetSchema = Job;
|
|
5078
|
-
export type UploadTrackDestroyTargetSchema = Job;
|
|
5079
|
-
export type UploadTrackGenerateSubtitlesTargetSchema = Job;
|
|
5080
|
-
export type SiteUpdateTargetSchema = Job;
|
|
5081
|
-
export type SiteActivateImprovedTimezoneManagementTargetSchema = Job;
|
|
5082
|
-
/**
|
|
5083
|
-
* JSON API data
|
|
5084
|
-
*
|
|
5085
|
-
* This interface was referenced by `Job`'s JSON-Schema
|
|
5086
|
-
* via the `definition` "data".
|
|
5087
|
-
*/
|
|
5088
|
-
export type JobData = {
|
|
5089
|
-
type: JobType;
|
|
5090
|
-
id: JobIdentity;
|
|
5091
|
-
};
|
|
5092
|
-
|
|
5093
5191
|
/**
|
|
5094
5192
|
* DatoCMS offers a number of different fields that you can combine together to create a [Model](/docs/content-management-api/resources/item-type). Using the database metaphore, fields are like table columns, and when creating them you need to specify their type (`string`, `float`, etc.) and any required validation.
|
|
5095
5193
|
*
|
|
@@ -5146,12 +5244,12 @@ export type JobData = {
|
|
|
5146
5244
|
*
|
|
5147
5245
|
* #### Setting the appearance to a field editor provided by a plugin
|
|
5148
5246
|
*
|
|
5149
|
-
* If the project contains a plugin that exposes [manual field editors](/docs/plugin-sdk/manual-field-extensions), you can also configure the field to be presented with it instead of using one of the
|
|
5247
|
+
* If the project contains a plugin that exposes [manual field editors](/docs/plugin-sdk/manual-field-extensions), you can also configure the field to be presented with it instead of using one of the built-in editors.
|
|
5150
5248
|
*
|
|
5151
5249
|
* In this case:
|
|
5152
5250
|
*
|
|
5153
|
-
* - the `editor` property
|
|
5154
|
-
* - the `field_extension` property must be the ID of the specific manual field editor that the plugin exposes
|
|
5251
|
+
* - the `editor` property is the plugin's project-specific autogenerated UUID. You can get it from the last part of the plugin's URL within your project's Configuration screen (e.g. `https://your-project.admin.datocms.com/configuration/plugins/PLUGIN_UUID/`), or via API with a [List all plugins](/docs/content-management-api/resources/plugin/instances) call.
|
|
5252
|
+
* - the `field_extension` property must be the ID of the specific manual field editor that the plugin exposes. This is set in the plugin's own source code, within a `manualFieldExtension()` call in its entry point (usually something like `index.tsx`).
|
|
5155
5253
|
* - the `parameters` property must provide a configuration object compatible with the [config screen of the manual field extension](/docs/plugin-sdk/manual-field-extensions#add-per-field-config-screens-to-manual-field-extensions), or an empty object if it doesn't require any configuration.
|
|
5156
5254
|
*
|
|
5157
5255
|
* ```js
|
|
@@ -273,4 +273,26 @@ export default class ItemType extends BaseResource {
|
|
|
273
273
|
queryParams,
|
|
274
274
|
});
|
|
275
275
|
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Reorders a set of fields and fieldsets within the model
|
|
279
|
+
*
|
|
280
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/item-type/reorder_fields_and_fieldsets
|
|
281
|
+
*
|
|
282
|
+
* @throws {ApiError}
|
|
283
|
+
* @throws {TimeoutError}
|
|
284
|
+
*
|
|
285
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
286
|
+
*/
|
|
287
|
+
rawReorderFieldsAndFieldsets(
|
|
288
|
+
body: SchemaTypes.ItemTypeReorderFieldsAndFieldsetsSchema,
|
|
289
|
+
): Promise<SchemaTypes.ItemTypeReorderFieldsAndFieldsetsJobSchema> {
|
|
290
|
+
return this.client.request<SchemaTypes.ItemTypeReorderFieldsAndFieldsetsJobSchema>(
|
|
291
|
+
{
|
|
292
|
+
method: 'POST',
|
|
293
|
+
url: '/item-types/reorder-fields-and-fieldsets',
|
|
294
|
+
body,
|
|
295
|
+
},
|
|
296
|
+
);
|
|
297
|
+
}
|
|
276
298
|
}
|
|
@@ -189,4 +189,48 @@ export default class MenuItem extends BaseResource {
|
|
|
189
189
|
url: `/menu-items/${menuItemId}`,
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Reorders a set of menu items
|
|
195
|
+
*
|
|
196
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/menu-item/reorder
|
|
197
|
+
*
|
|
198
|
+
* @throws {ApiError}
|
|
199
|
+
* @throws {TimeoutError}
|
|
200
|
+
*
|
|
201
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
202
|
+
*/
|
|
203
|
+
reorder(body: SimpleSchemaTypes.MenuItemReorderSchema) {
|
|
204
|
+
return this.rawReorder(
|
|
205
|
+
Utils.serializeRequestBody<SchemaTypes.MenuItemReorderSchema>(body, {
|
|
206
|
+
type: 'menu_item',
|
|
207
|
+
attributes: [],
|
|
208
|
+
relationships: [],
|
|
209
|
+
}),
|
|
210
|
+
).then((body) =>
|
|
211
|
+
Utils.deserializeResponseBody<SimpleSchemaTypes.MenuItemReorderJobSchema>(
|
|
212
|
+
body,
|
|
213
|
+
),
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Reorders a set of menu items
|
|
219
|
+
*
|
|
220
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/menu-item/reorder
|
|
221
|
+
*
|
|
222
|
+
* @throws {ApiError}
|
|
223
|
+
* @throws {TimeoutError}
|
|
224
|
+
*
|
|
225
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
226
|
+
*/
|
|
227
|
+
rawReorder(
|
|
228
|
+
body: SchemaTypes.MenuItemReorderSchema,
|
|
229
|
+
): Promise<SchemaTypes.MenuItemReorderJobSchema> {
|
|
230
|
+
return this.client.request<SchemaTypes.MenuItemReorderJobSchema>({
|
|
231
|
+
method: 'POST',
|
|
232
|
+
url: '/menu-items/reorder',
|
|
233
|
+
body,
|
|
234
|
+
});
|
|
235
|
+
}
|
|
192
236
|
}
|
|
@@ -193,4 +193,51 @@ export default class SchemaMenuItem extends BaseResource {
|
|
|
193
193
|
url: `/schema-menu-items/${schemaMenuItemId}`,
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Reorders a set of schema menu items
|
|
199
|
+
*
|
|
200
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/schema-menu_item/reorder
|
|
201
|
+
*
|
|
202
|
+
* @throws {ApiError}
|
|
203
|
+
* @throws {TimeoutError}
|
|
204
|
+
*
|
|
205
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
206
|
+
*/
|
|
207
|
+
reorder(body: SimpleSchemaTypes.SchemaMenuItemReorderSchema) {
|
|
208
|
+
return this.rawReorder(
|
|
209
|
+
Utils.serializeRequestBody<SchemaTypes.SchemaMenuItemReorderSchema>(
|
|
210
|
+
body,
|
|
211
|
+
{
|
|
212
|
+
type: 'schema_menu_item',
|
|
213
|
+
attributes: [],
|
|
214
|
+
relationships: [],
|
|
215
|
+
},
|
|
216
|
+
),
|
|
217
|
+
).then((body) =>
|
|
218
|
+
Utils.deserializeResponseBody<SimpleSchemaTypes.SchemaMenuItemReorderJobSchema>(
|
|
219
|
+
body,
|
|
220
|
+
),
|
|
221
|
+
);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Reorders a set of schema menu items
|
|
226
|
+
*
|
|
227
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/schema-menu_item/reorder
|
|
228
|
+
*
|
|
229
|
+
* @throws {ApiError}
|
|
230
|
+
* @throws {TimeoutError}
|
|
231
|
+
*
|
|
232
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
233
|
+
*/
|
|
234
|
+
rawReorder(
|
|
235
|
+
body: SchemaTypes.SchemaMenuItemReorderSchema,
|
|
236
|
+
): Promise<SchemaTypes.SchemaMenuItemReorderJobSchema> {
|
|
237
|
+
return this.client.request<SchemaTypes.SchemaMenuItemReorderJobSchema>({
|
|
238
|
+
method: 'POST',
|
|
239
|
+
url: '/schema-menu-items/reorder',
|
|
240
|
+
body,
|
|
241
|
+
});
|
|
242
|
+
}
|
|
196
243
|
}
|
|
@@ -201,4 +201,51 @@ export default class UploadCollection extends BaseResource {
|
|
|
201
201
|
},
|
|
202
202
|
);
|
|
203
203
|
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Reorders a set of upload collections
|
|
207
|
+
*
|
|
208
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/upload-collection/reorder
|
|
209
|
+
*
|
|
210
|
+
* @throws {ApiError}
|
|
211
|
+
* @throws {TimeoutError}
|
|
212
|
+
*
|
|
213
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
214
|
+
*/
|
|
215
|
+
reorder(body: SimpleSchemaTypes.UploadCollectionReorderSchema) {
|
|
216
|
+
return this.rawReorder(
|
|
217
|
+
Utils.serializeRequestBody<SchemaTypes.UploadCollectionReorderSchema>(
|
|
218
|
+
body,
|
|
219
|
+
{
|
|
220
|
+
type: 'upload_collection',
|
|
221
|
+
attributes: [],
|
|
222
|
+
relationships: [],
|
|
223
|
+
},
|
|
224
|
+
),
|
|
225
|
+
).then((body) =>
|
|
226
|
+
Utils.deserializeResponseBody<SimpleSchemaTypes.UploadCollectionReorderJobSchema>(
|
|
227
|
+
body,
|
|
228
|
+
),
|
|
229
|
+
);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Reorders a set of upload collections
|
|
234
|
+
*
|
|
235
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/upload-collection/reorder
|
|
236
|
+
*
|
|
237
|
+
* @throws {ApiError}
|
|
238
|
+
* @throws {TimeoutError}
|
|
239
|
+
*
|
|
240
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
241
|
+
*/
|
|
242
|
+
rawReorder(
|
|
243
|
+
body: SchemaTypes.UploadCollectionReorderSchema,
|
|
244
|
+
): Promise<SchemaTypes.UploadCollectionReorderJobSchema> {
|
|
245
|
+
return this.client.request<SchemaTypes.UploadCollectionReorderJobSchema>({
|
|
246
|
+
method: 'POST',
|
|
247
|
+
url: '/upload-collections/reorder',
|
|
248
|
+
body,
|
|
249
|
+
});
|
|
250
|
+
}
|
|
204
251
|
}
|
|
@@ -136,8 +136,8 @@ export default class WebhookCall extends BaseResource {
|
|
|
136
136
|
* @throws {ApiError}
|
|
137
137
|
* @throws {TimeoutError}
|
|
138
138
|
*/
|
|
139
|
-
resendWebhook(
|
|
140
|
-
return this.rawResendWebhook(Utils.toId(
|
|
139
|
+
resendWebhook(webhookCallId: string | SimpleSchemaTypes.WebhookCallData) {
|
|
140
|
+
return this.rawResendWebhook(Utils.toId(webhookCallId));
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
/**
|
|
@@ -148,10 +148,10 @@ export default class WebhookCall extends BaseResource {
|
|
|
148
148
|
* @throws {ApiError}
|
|
149
149
|
* @throws {TimeoutError}
|
|
150
150
|
*/
|
|
151
|
-
rawResendWebhook(
|
|
151
|
+
rawResendWebhook(webhookCallId: string): Promise<void> {
|
|
152
152
|
return this.client.request<void>({
|
|
153
153
|
method: 'POST',
|
|
154
|
-
url: `/webhook_calls/${
|
|
154
|
+
url: `/webhook_calls/${webhookCallId}/resend_webhook`,
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
157
|
}
|