@datocms/cma-client 3.3.8 → 3.3.10
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/Client.js.map +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/Client.js.map +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 +4 -4
- 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
|
@@ -330,6 +330,39 @@ export type MenuItemInstancesHrefSchema = {
|
|
|
330
330
|
ids: string;
|
|
331
331
|
};
|
|
332
332
|
};
|
|
333
|
+
/**
|
|
334
|
+
* This interface was referenced by `MenuItem`'s JSON-Schema
|
|
335
|
+
* via the `reorder.schema` link.
|
|
336
|
+
*/
|
|
337
|
+
export type MenuItemReorderSchema = {
|
|
338
|
+
id: MenuItemIdentity;
|
|
339
|
+
type?: MenuItemType;
|
|
340
|
+
/**
|
|
341
|
+
* Ordering index
|
|
342
|
+
*/
|
|
343
|
+
position: number;
|
|
344
|
+
parent: null | MenuItemData;
|
|
345
|
+
}[];
|
|
346
|
+
/**
|
|
347
|
+
* ID of job
|
|
348
|
+
*
|
|
349
|
+
* This interface was referenced by `Job`'s JSON-Schema
|
|
350
|
+
* via the `definition` "identity".
|
|
351
|
+
*
|
|
352
|
+
* This interface was referenced by `Job`'s JSON-Schema
|
|
353
|
+
* via the `definition` "id".
|
|
354
|
+
*/
|
|
355
|
+
export type JobIdentity = string;
|
|
356
|
+
/**
|
|
357
|
+
* This interface was referenced by `Job`'s JSON-Schema
|
|
358
|
+
* via the `definition` "type".
|
|
359
|
+
*/
|
|
360
|
+
export type JobType = 'job';
|
|
361
|
+
/**
|
|
362
|
+
* This interface was referenced by `MenuItem`'s JSON-Schema
|
|
363
|
+
* via the `reorder.jobSchema` link.
|
|
364
|
+
*/
|
|
365
|
+
export type MenuItemReorderJobSchema = MenuItem[];
|
|
333
366
|
/**
|
|
334
367
|
* RFC 4122 UUID of schema menu item expressed in URL-safe base64 format
|
|
335
368
|
*
|
|
@@ -364,6 +397,24 @@ export type SchemaMenuItemInstancesHrefSchema = {
|
|
|
364
397
|
ids: string;
|
|
365
398
|
};
|
|
366
399
|
};
|
|
400
|
+
/**
|
|
401
|
+
* This interface was referenced by `SchemaMenuItem`'s JSON-Schema
|
|
402
|
+
* via the `reorder.schema` link.
|
|
403
|
+
*/
|
|
404
|
+
export type SchemaMenuItemReorderSchema = {
|
|
405
|
+
id: SchemaMenuItemIdentity;
|
|
406
|
+
type?: SchemaMenuItemType;
|
|
407
|
+
/**
|
|
408
|
+
* Ordering index
|
|
409
|
+
*/
|
|
410
|
+
position: number;
|
|
411
|
+
parent: null | SchemaMenuItemData;
|
|
412
|
+
}[];
|
|
413
|
+
/**
|
|
414
|
+
* This interface was referenced by `SchemaMenuItem`'s JSON-Schema
|
|
415
|
+
* via the `reorder.jobSchema` link.
|
|
416
|
+
*/
|
|
417
|
+
export type SchemaMenuItemReorderJobSchema = SchemaMenuItem[];
|
|
367
418
|
/**
|
|
368
419
|
* RFC 4122 UUID of upload collection expressed in URL-safe base64 format
|
|
369
420
|
*
|
|
@@ -398,6 +449,24 @@ export type UploadCollectionInstancesHrefSchema = {
|
|
|
398
449
|
ids: string;
|
|
399
450
|
};
|
|
400
451
|
};
|
|
452
|
+
/**
|
|
453
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
454
|
+
* via the `reorder.schema` link.
|
|
455
|
+
*/
|
|
456
|
+
export type UploadCollectionReorderSchema = {
|
|
457
|
+
id: UploadCollectionIdentity;
|
|
458
|
+
type?: UploadCollectionType;
|
|
459
|
+
/**
|
|
460
|
+
* Ordering index
|
|
461
|
+
*/
|
|
462
|
+
position: number;
|
|
463
|
+
parent: null | UploadCollectionData;
|
|
464
|
+
}[];
|
|
465
|
+
/**
|
|
466
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
467
|
+
* via the `reorder.jobSchema` link.
|
|
468
|
+
*/
|
|
469
|
+
export type UploadCollectionReorderJobSchema = UploadCollection[];
|
|
401
470
|
/**
|
|
402
471
|
* This interface was referenced by `Item`'s JSON-Schema
|
|
403
472
|
* via the `definition` "type".
|
|
@@ -467,21 +536,6 @@ export type ItemTypeCreateHrefSchema = {
|
|
|
467
536
|
schema_menu_item_id?: string;
|
|
468
537
|
[k: string]: unknown;
|
|
469
538
|
};
|
|
470
|
-
/**
|
|
471
|
-
* ID of job
|
|
472
|
-
*
|
|
473
|
-
* This interface was referenced by `Job`'s JSON-Schema
|
|
474
|
-
* via the `definition` "identity".
|
|
475
|
-
*
|
|
476
|
-
* This interface was referenced by `Job`'s JSON-Schema
|
|
477
|
-
* via the `definition` "id".
|
|
478
|
-
*/
|
|
479
|
-
export type JobIdentity = string;
|
|
480
|
-
/**
|
|
481
|
-
* This interface was referenced by `Job`'s JSON-Schema
|
|
482
|
-
* via the `definition` "type".
|
|
483
|
-
*/
|
|
484
|
-
export type JobType = 'job';
|
|
485
539
|
/**
|
|
486
540
|
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
487
541
|
* via the `instances.targetSchema` link.
|
|
@@ -498,6 +552,26 @@ export type ItemTypeDestroyHrefSchema = {
|
|
|
498
552
|
skip_menu_items_deletion?: boolean;
|
|
499
553
|
[k: string]: unknown;
|
|
500
554
|
};
|
|
555
|
+
/**
|
|
556
|
+
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
557
|
+
* via the `reorder_fields_and_fieldsets.schema` link.
|
|
558
|
+
*/
|
|
559
|
+
export type ItemTypeReorderFieldsAndFieldsetsSchema = ({
|
|
560
|
+
id: FieldIdentity;
|
|
561
|
+
type?: FieldType;
|
|
562
|
+
/**
|
|
563
|
+
* Ordering index
|
|
564
|
+
*/
|
|
565
|
+
position: number;
|
|
566
|
+
fieldset: null | FieldsetData;
|
|
567
|
+
} | {
|
|
568
|
+
id: FieldsetIdentity;
|
|
569
|
+
type?: FieldsetType;
|
|
570
|
+
/**
|
|
571
|
+
* Ordering index
|
|
572
|
+
*/
|
|
573
|
+
position: number;
|
|
574
|
+
})[];
|
|
501
575
|
/**
|
|
502
576
|
* This interface was referenced by `Field`'s JSON-Schema
|
|
503
577
|
* via the `instances.targetSchema` link.
|
|
@@ -518,6 +592,11 @@ export type FieldRelatedTargetSchema = Field[];
|
|
|
518
592
|
* via the `instances.targetSchema` link.
|
|
519
593
|
*/
|
|
520
594
|
export type FieldsetInstancesTargetSchema = Fieldset[];
|
|
595
|
+
/**
|
|
596
|
+
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
597
|
+
* via the `reorder_fields_and_fieldsets.jobSchema` link.
|
|
598
|
+
*/
|
|
599
|
+
export type ItemTypeReorderFieldsAndFieldsetsJobSchema = (Field | Fieldset)[];
|
|
521
600
|
/**
|
|
522
601
|
* JSON web token for the session
|
|
523
602
|
*
|
|
@@ -4074,6 +4153,152 @@ export type MenuItemUpdateSchema = {
|
|
|
4074
4153
|
item_type_filter?: ItemTypeFilterData | null;
|
|
4075
4154
|
parent?: null | MenuItemData;
|
|
4076
4155
|
};
|
|
4156
|
+
/**
|
|
4157
|
+
* This interface was referenced by `MenuItem`'s JSON-Schema
|
|
4158
|
+
* via the `reorder.targetSchema` link.
|
|
4159
|
+
*
|
|
4160
|
+
* This interface was referenced by `SchemaMenuItem`'s JSON-Schema
|
|
4161
|
+
* via the `reorder.targetSchema` link.
|
|
4162
|
+
*
|
|
4163
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
4164
|
+
* via the `reorder.targetSchema` link.
|
|
4165
|
+
*
|
|
4166
|
+
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
4167
|
+
* via the `update.targetSchema` link.
|
|
4168
|
+
*
|
|
4169
|
+
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
4170
|
+
* via the `destroy.targetSchema` link.
|
|
4171
|
+
*
|
|
4172
|
+
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
4173
|
+
* via the `reorder_fields_and_fieldsets.targetSchema` link.
|
|
4174
|
+
*
|
|
4175
|
+
* This interface was referenced by `Field`'s JSON-Schema
|
|
4176
|
+
* via the `create.targetSchema` link.
|
|
4177
|
+
*
|
|
4178
|
+
* This interface was referenced by `Field`'s JSON-Schema
|
|
4179
|
+
* via the `update.targetSchema` link.
|
|
4180
|
+
*
|
|
4181
|
+
* This interface was referenced by `Field`'s JSON-Schema
|
|
4182
|
+
* via the `destroy.targetSchema` link.
|
|
4183
|
+
*
|
|
4184
|
+
* This interface was referenced by `Field`'s JSON-Schema
|
|
4185
|
+
* via the `duplicate.targetSchema` link.
|
|
4186
|
+
*
|
|
4187
|
+
* This interface was referenced by `Item`'s JSON-Schema
|
|
4188
|
+
* via the `duplicate.targetSchema` link.
|
|
4189
|
+
*
|
|
4190
|
+
* This interface was referenced by `Item`'s JSON-Schema
|
|
4191
|
+
* via the `destroy.targetSchema` link.
|
|
4192
|
+
*
|
|
4193
|
+
* This interface was referenced by `Item`'s JSON-Schema
|
|
4194
|
+
* via the `batch_destroy.targetSchema` link.
|
|
4195
|
+
*
|
|
4196
|
+
* This interface was referenced by `Item`'s JSON-Schema
|
|
4197
|
+
* via the `batch_publish.targetSchema` link.
|
|
4198
|
+
*
|
|
4199
|
+
* This interface was referenced by `Item`'s JSON-Schema
|
|
4200
|
+
* via the `batch_unpublish.targetSchema` link.
|
|
4201
|
+
*
|
|
4202
|
+
* This interface was referenced by `Item`'s JSON-Schema
|
|
4203
|
+
* via the `bulk_publish.targetSchema` link.
|
|
4204
|
+
*
|
|
4205
|
+
* This interface was referenced by `Item`'s JSON-Schema
|
|
4206
|
+
* via the `bulk_unpublish.targetSchema` link.
|
|
4207
|
+
*
|
|
4208
|
+
* This interface was referenced by `Item`'s JSON-Schema
|
|
4209
|
+
* via the `bulk_destroy.targetSchema` link.
|
|
4210
|
+
*
|
|
4211
|
+
* This interface was referenced by `Item`'s JSON-Schema
|
|
4212
|
+
* via the `bulk_move_to_stage.targetSchema` link.
|
|
4213
|
+
*
|
|
4214
|
+
* This interface was referenced by `ItemVersion`'s JSON-Schema
|
|
4215
|
+
* via the `restore.targetSchema` link.
|
|
4216
|
+
*
|
|
4217
|
+
* This interface was referenced by `Upload`'s JSON-Schema
|
|
4218
|
+
* via the `create.targetSchema` link.
|
|
4219
|
+
*
|
|
4220
|
+
* This interface was referenced by `Upload`'s JSON-Schema
|
|
4221
|
+
* via the `update.targetSchema` link.
|
|
4222
|
+
*
|
|
4223
|
+
* This interface was referenced by `Upload`'s JSON-Schema
|
|
4224
|
+
* via the `batch_add_tags.targetSchema` link.
|
|
4225
|
+
*
|
|
4226
|
+
* This interface was referenced by `Upload`'s JSON-Schema
|
|
4227
|
+
* via the `batch_destroy.targetSchema` link.
|
|
4228
|
+
*
|
|
4229
|
+
* This interface was referenced by `Upload`'s JSON-Schema
|
|
4230
|
+
* via the `bulk_tag.targetSchema` link.
|
|
4231
|
+
*
|
|
4232
|
+
* This interface was referenced by `Upload`'s JSON-Schema
|
|
4233
|
+
* via the `bulk_set_upload_collection.targetSchema` link.
|
|
4234
|
+
*
|
|
4235
|
+
* This interface was referenced by `Upload`'s JSON-Schema
|
|
4236
|
+
* via the `bulk_destroy.targetSchema` link.
|
|
4237
|
+
*
|
|
4238
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
4239
|
+
* via the `create.targetSchema` link.
|
|
4240
|
+
*
|
|
4241
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
4242
|
+
* via the `destroy.targetSchema` link.
|
|
4243
|
+
*
|
|
4244
|
+
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
4245
|
+
* via the `generate_subtitles.targetSchema` link.
|
|
4246
|
+
*
|
|
4247
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
4248
|
+
* via the `update.targetSchema` link.
|
|
4249
|
+
*
|
|
4250
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
4251
|
+
* via the `activate_improved_timezone_management.targetSchema` link.
|
|
4252
|
+
*
|
|
4253
|
+
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
4254
|
+
* via the `definition` "job".
|
|
4255
|
+
*/
|
|
4256
|
+
export type Job = {
|
|
4257
|
+
id: JobIdentity;
|
|
4258
|
+
type: JobType;
|
|
4259
|
+
};
|
|
4260
|
+
export type MenuItemReorderTargetSchema = Job;
|
|
4261
|
+
export type SchemaMenuItemReorderTargetSchema = Job;
|
|
4262
|
+
export type UploadCollectionReorderTargetSchema = Job;
|
|
4263
|
+
export type ItemTypeUpdateTargetSchema = Job;
|
|
4264
|
+
export type ItemTypeDestroyTargetSchema = Job;
|
|
4265
|
+
export type ItemTypeReorderFieldsAndFieldsetsTargetSchema = Job;
|
|
4266
|
+
export type FieldCreateTargetSchema = Job;
|
|
4267
|
+
export type FieldUpdateTargetSchema = Job;
|
|
4268
|
+
export type FieldDestroyTargetSchema = Job;
|
|
4269
|
+
export type FieldDuplicateTargetSchema = Job;
|
|
4270
|
+
export type ItemDuplicateTargetSchema = Job;
|
|
4271
|
+
export type ItemDestroyTargetSchema = Job;
|
|
4272
|
+
export type ItemBatchDestroyTargetSchema = Job;
|
|
4273
|
+
export type ItemBatchPublishTargetSchema = Job;
|
|
4274
|
+
export type ItemBatchUnpublishTargetSchema = Job;
|
|
4275
|
+
export type ItemBulkPublishTargetSchema = Job;
|
|
4276
|
+
export type ItemBulkUnpublishTargetSchema = Job;
|
|
4277
|
+
export type ItemBulkDestroyTargetSchema = Job;
|
|
4278
|
+
export type ItemBulkMoveToStageTargetSchema = Job;
|
|
4279
|
+
export type ItemVersionRestoreTargetSchema = Job;
|
|
4280
|
+
export type UploadCreateTargetSchema = Job;
|
|
4281
|
+
export type UploadUpdateTargetSchema = Job;
|
|
4282
|
+
export type UploadBatchAddTagsTargetSchema = Job;
|
|
4283
|
+
export type UploadBatchDestroyTargetSchema = Job;
|
|
4284
|
+
export type UploadBulkTagTargetSchema = Job;
|
|
4285
|
+
export type UploadBulkSetUploadCollectionTargetSchema = Job;
|
|
4286
|
+
export type UploadBulkDestroyTargetSchema = Job;
|
|
4287
|
+
export type UploadTrackCreateTargetSchema = Job;
|
|
4288
|
+
export type UploadTrackDestroyTargetSchema = Job;
|
|
4289
|
+
export type UploadTrackGenerateSubtitlesTargetSchema = Job;
|
|
4290
|
+
export type SiteUpdateTargetSchema = Job;
|
|
4291
|
+
export type SiteActivateImprovedTimezoneManagementTargetSchema = Job;
|
|
4292
|
+
/**
|
|
4293
|
+
* JSON API data
|
|
4294
|
+
*
|
|
4295
|
+
* This interface was referenced by `Job`'s JSON-Schema
|
|
4296
|
+
* via the `definition` "data".
|
|
4297
|
+
*/
|
|
4298
|
+
export type JobData = {
|
|
4299
|
+
type: JobType;
|
|
4300
|
+
id: JobIdentity;
|
|
4301
|
+
};
|
|
4077
4302
|
/**
|
|
4078
4303
|
* 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.
|
|
4079
4304
|
*
|
|
@@ -4652,136 +4877,6 @@ export type ItemTypeUpdateSchema = {
|
|
|
4652
4877
|
has_singleton_item?: boolean;
|
|
4653
4878
|
};
|
|
4654
4879
|
};
|
|
4655
|
-
/**
|
|
4656
|
-
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
4657
|
-
* via the `update.targetSchema` link.
|
|
4658
|
-
*
|
|
4659
|
-
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
4660
|
-
* via the `destroy.targetSchema` link.
|
|
4661
|
-
*
|
|
4662
|
-
* This interface was referenced by `Field`'s JSON-Schema
|
|
4663
|
-
* via the `create.targetSchema` link.
|
|
4664
|
-
*
|
|
4665
|
-
* This interface was referenced by `Field`'s JSON-Schema
|
|
4666
|
-
* via the `update.targetSchema` link.
|
|
4667
|
-
*
|
|
4668
|
-
* This interface was referenced by `Field`'s JSON-Schema
|
|
4669
|
-
* via the `destroy.targetSchema` link.
|
|
4670
|
-
*
|
|
4671
|
-
* This interface was referenced by `Field`'s JSON-Schema
|
|
4672
|
-
* via the `duplicate.targetSchema` link.
|
|
4673
|
-
*
|
|
4674
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
4675
|
-
* via the `duplicate.targetSchema` link.
|
|
4676
|
-
*
|
|
4677
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
4678
|
-
* via the `destroy.targetSchema` link.
|
|
4679
|
-
*
|
|
4680
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
4681
|
-
* via the `batch_destroy.targetSchema` link.
|
|
4682
|
-
*
|
|
4683
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
4684
|
-
* via the `batch_publish.targetSchema` link.
|
|
4685
|
-
*
|
|
4686
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
4687
|
-
* via the `batch_unpublish.targetSchema` link.
|
|
4688
|
-
*
|
|
4689
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
4690
|
-
* via the `bulk_publish.targetSchema` link.
|
|
4691
|
-
*
|
|
4692
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
4693
|
-
* via the `bulk_unpublish.targetSchema` link.
|
|
4694
|
-
*
|
|
4695
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
4696
|
-
* via the `bulk_destroy.targetSchema` link.
|
|
4697
|
-
*
|
|
4698
|
-
* This interface was referenced by `Item`'s JSON-Schema
|
|
4699
|
-
* via the `bulk_move_to_stage.targetSchema` link.
|
|
4700
|
-
*
|
|
4701
|
-
* This interface was referenced by `ItemVersion`'s JSON-Schema
|
|
4702
|
-
* via the `restore.targetSchema` link.
|
|
4703
|
-
*
|
|
4704
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
4705
|
-
* via the `create.targetSchema` link.
|
|
4706
|
-
*
|
|
4707
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
4708
|
-
* via the `update.targetSchema` link.
|
|
4709
|
-
*
|
|
4710
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
4711
|
-
* via the `batch_add_tags.targetSchema` link.
|
|
4712
|
-
*
|
|
4713
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
4714
|
-
* via the `batch_destroy.targetSchema` link.
|
|
4715
|
-
*
|
|
4716
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
4717
|
-
* via the `bulk_tag.targetSchema` link.
|
|
4718
|
-
*
|
|
4719
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
4720
|
-
* via the `bulk_set_upload_collection.targetSchema` link.
|
|
4721
|
-
*
|
|
4722
|
-
* This interface was referenced by `Upload`'s JSON-Schema
|
|
4723
|
-
* via the `bulk_destroy.targetSchema` link.
|
|
4724
|
-
*
|
|
4725
|
-
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
4726
|
-
* via the `create.targetSchema` link.
|
|
4727
|
-
*
|
|
4728
|
-
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
4729
|
-
* via the `destroy.targetSchema` link.
|
|
4730
|
-
*
|
|
4731
|
-
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
4732
|
-
* via the `generate_subtitles.targetSchema` link.
|
|
4733
|
-
*
|
|
4734
|
-
* This interface was referenced by `Site`'s JSON-Schema
|
|
4735
|
-
* via the `update.targetSchema` link.
|
|
4736
|
-
*
|
|
4737
|
-
* This interface was referenced by `Site`'s JSON-Schema
|
|
4738
|
-
* via the `activate_improved_timezone_management.targetSchema` link.
|
|
4739
|
-
*
|
|
4740
|
-
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
4741
|
-
* via the `definition` "job".
|
|
4742
|
-
*/
|
|
4743
|
-
export type Job = {
|
|
4744
|
-
id: JobIdentity;
|
|
4745
|
-
type: JobType;
|
|
4746
|
-
};
|
|
4747
|
-
export type ItemTypeUpdateTargetSchema = Job;
|
|
4748
|
-
export type ItemTypeDestroyTargetSchema = Job;
|
|
4749
|
-
export type FieldCreateTargetSchema = Job;
|
|
4750
|
-
export type FieldUpdateTargetSchema = Job;
|
|
4751
|
-
export type FieldDestroyTargetSchema = Job;
|
|
4752
|
-
export type FieldDuplicateTargetSchema = Job;
|
|
4753
|
-
export type ItemDuplicateTargetSchema = Job;
|
|
4754
|
-
export type ItemDestroyTargetSchema = Job;
|
|
4755
|
-
export type ItemBatchDestroyTargetSchema = Job;
|
|
4756
|
-
export type ItemBatchPublishTargetSchema = Job;
|
|
4757
|
-
export type ItemBatchUnpublishTargetSchema = Job;
|
|
4758
|
-
export type ItemBulkPublishTargetSchema = Job;
|
|
4759
|
-
export type ItemBulkUnpublishTargetSchema = Job;
|
|
4760
|
-
export type ItemBulkDestroyTargetSchema = Job;
|
|
4761
|
-
export type ItemBulkMoveToStageTargetSchema = Job;
|
|
4762
|
-
export type ItemVersionRestoreTargetSchema = Job;
|
|
4763
|
-
export type UploadCreateTargetSchema = Job;
|
|
4764
|
-
export type UploadUpdateTargetSchema = Job;
|
|
4765
|
-
export type UploadBatchAddTagsTargetSchema = Job;
|
|
4766
|
-
export type UploadBatchDestroyTargetSchema = Job;
|
|
4767
|
-
export type UploadBulkTagTargetSchema = Job;
|
|
4768
|
-
export type UploadBulkSetUploadCollectionTargetSchema = Job;
|
|
4769
|
-
export type UploadBulkDestroyTargetSchema = Job;
|
|
4770
|
-
export type UploadTrackCreateTargetSchema = Job;
|
|
4771
|
-
export type UploadTrackDestroyTargetSchema = Job;
|
|
4772
|
-
export type UploadTrackGenerateSubtitlesTargetSchema = Job;
|
|
4773
|
-
export type SiteUpdateTargetSchema = Job;
|
|
4774
|
-
export type SiteActivateImprovedTimezoneManagementTargetSchema = Job;
|
|
4775
|
-
/**
|
|
4776
|
-
* JSON API data
|
|
4777
|
-
*
|
|
4778
|
-
* This interface was referenced by `Job`'s JSON-Schema
|
|
4779
|
-
* via the `definition` "data".
|
|
4780
|
-
*/
|
|
4781
|
-
export type JobData = {
|
|
4782
|
-
type: JobType;
|
|
4783
|
-
id: JobIdentity;
|
|
4784
|
-
};
|
|
4785
4880
|
/**
|
|
4786
4881
|
* 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.
|
|
4787
4882
|
*
|
|
@@ -4838,12 +4933,12 @@ export type JobData = {
|
|
|
4838
4933
|
*
|
|
4839
4934
|
* #### Setting the appearance to a field editor provided by a plugin
|
|
4840
4935
|
*
|
|
4841
|
-
* 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
|
|
4936
|
+
* 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.
|
|
4842
4937
|
*
|
|
4843
4938
|
* In this case:
|
|
4844
4939
|
*
|
|
4845
|
-
* - the `editor` property
|
|
4846
|
-
* - the `field_extension` property must be the ID of the specific manual field editor that the plugin exposes
|
|
4940
|
+
* - 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.
|
|
4941
|
+
* - 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`).
|
|
4847
4942
|
* - 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.
|
|
4848
4943
|
*
|
|
4849
4944
|
* ```js
|
|
@@ -111,4 +111,15 @@ export default class ItemType extends BaseResource {
|
|
|
111
111
|
* @throws {TimeoutError}
|
|
112
112
|
*/
|
|
113
113
|
rawDestroy(itemTypeId: string, queryParams?: SchemaTypes.ItemTypeDestroyHrefSchema): Promise<SchemaTypes.ItemTypeDestroyJobSchema>;
|
|
114
|
+
/**
|
|
115
|
+
* Reorders a set of fields and fieldsets within the model
|
|
116
|
+
*
|
|
117
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/item-type/reorder_fields_and_fieldsets
|
|
118
|
+
*
|
|
119
|
+
* @throws {ApiError}
|
|
120
|
+
* @throws {TimeoutError}
|
|
121
|
+
*
|
|
122
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
123
|
+
*/
|
|
124
|
+
rawReorderFieldsAndFieldsets(body: SchemaTypes.ItemTypeReorderFieldsAndFieldsetsSchema): Promise<SchemaTypes.ItemTypeReorderFieldsAndFieldsetsJobSchema>;
|
|
114
125
|
}
|
|
@@ -93,4 +93,26 @@ export default class MenuItem extends BaseResource {
|
|
|
93
93
|
* @throws {TimeoutError}
|
|
94
94
|
*/
|
|
95
95
|
rawDestroy(menuItemId: string): Promise<SchemaTypes.MenuItemDestroyTargetSchema>;
|
|
96
|
+
/**
|
|
97
|
+
* Reorders a set of menu items
|
|
98
|
+
*
|
|
99
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/menu-item/reorder
|
|
100
|
+
*
|
|
101
|
+
* @throws {ApiError}
|
|
102
|
+
* @throws {TimeoutError}
|
|
103
|
+
*
|
|
104
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
105
|
+
*/
|
|
106
|
+
reorder(body: SimpleSchemaTypes.MenuItemReorderSchema): Promise<SimpleSchemaTypes.MenuItemReorderJobSchema>;
|
|
107
|
+
/**
|
|
108
|
+
* Reorders a set of menu items
|
|
109
|
+
*
|
|
110
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/menu-item/reorder
|
|
111
|
+
*
|
|
112
|
+
* @throws {ApiError}
|
|
113
|
+
* @throws {TimeoutError}
|
|
114
|
+
*
|
|
115
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
116
|
+
*/
|
|
117
|
+
rawReorder(body: SchemaTypes.MenuItemReorderSchema): Promise<SchemaTypes.MenuItemReorderJobSchema>;
|
|
96
118
|
}
|
|
@@ -93,4 +93,26 @@ export default class SchemaMenuItem extends BaseResource {
|
|
|
93
93
|
* @throws {TimeoutError}
|
|
94
94
|
*/
|
|
95
95
|
rawDestroy(schemaMenuItemId: string): Promise<SchemaTypes.SchemaMenuItemDestroyTargetSchema>;
|
|
96
|
+
/**
|
|
97
|
+
* Reorders a set of schema menu items
|
|
98
|
+
*
|
|
99
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/schema-menu_item/reorder
|
|
100
|
+
*
|
|
101
|
+
* @throws {ApiError}
|
|
102
|
+
* @throws {TimeoutError}
|
|
103
|
+
*
|
|
104
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
105
|
+
*/
|
|
106
|
+
reorder(body: SimpleSchemaTypes.SchemaMenuItemReorderSchema): Promise<SimpleSchemaTypes.SchemaMenuItemReorderJobSchema>;
|
|
107
|
+
/**
|
|
108
|
+
* Reorders a set of schema menu items
|
|
109
|
+
*
|
|
110
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/schema-menu_item/reorder
|
|
111
|
+
*
|
|
112
|
+
* @throws {ApiError}
|
|
113
|
+
* @throws {TimeoutError}
|
|
114
|
+
*
|
|
115
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
116
|
+
*/
|
|
117
|
+
rawReorder(body: SchemaTypes.SchemaMenuItemReorderSchema): Promise<SchemaTypes.SchemaMenuItemReorderJobSchema>;
|
|
96
118
|
}
|
|
@@ -93,4 +93,26 @@ export default class UploadCollection extends BaseResource {
|
|
|
93
93
|
* @throws {TimeoutError}
|
|
94
94
|
*/
|
|
95
95
|
rawDestroy(uploadCollectionId: string): Promise<SchemaTypes.UploadCollectionDestroyTargetSchema>;
|
|
96
|
+
/**
|
|
97
|
+
* Reorders a set of upload collections
|
|
98
|
+
*
|
|
99
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/upload-collection/reorder
|
|
100
|
+
*
|
|
101
|
+
* @throws {ApiError}
|
|
102
|
+
* @throws {TimeoutError}
|
|
103
|
+
*
|
|
104
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
105
|
+
*/
|
|
106
|
+
reorder(body: SimpleSchemaTypes.UploadCollectionReorderSchema): Promise<SimpleSchemaTypes.UploadCollectionReorderJobSchema>;
|
|
107
|
+
/**
|
|
108
|
+
* Reorders a set of upload collections
|
|
109
|
+
*
|
|
110
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/upload-collection/reorder
|
|
111
|
+
*
|
|
112
|
+
* @throws {ApiError}
|
|
113
|
+
* @throws {TimeoutError}
|
|
114
|
+
*
|
|
115
|
+
* @deprecated This API call is to be considered private and might change without notice
|
|
116
|
+
*/
|
|
117
|
+
rawReorder(body: SchemaTypes.UploadCollectionReorderSchema): Promise<SchemaTypes.UploadCollectionReorderJobSchema>;
|
|
96
118
|
}
|
|
@@ -66,7 +66,7 @@ export default class WebhookCall extends BaseResource {
|
|
|
66
66
|
* @throws {ApiError}
|
|
67
67
|
* @throws {TimeoutError}
|
|
68
68
|
*/
|
|
69
|
-
resendWebhook(
|
|
69
|
+
resendWebhook(webhookCallId: string | SimpleSchemaTypes.WebhookCallData): Promise<void>;
|
|
70
70
|
/**
|
|
71
71
|
* Re-send the webhook call
|
|
72
72
|
*
|
|
@@ -75,5 +75,5 @@ export default class WebhookCall extends BaseResource {
|
|
|
75
75
|
* @throws {ApiError}
|
|
76
76
|
* @throws {TimeoutError}
|
|
77
77
|
*/
|
|
78
|
-
rawResendWebhook(
|
|
78
|
+
rawResendWebhook(webhookCallId: string): Promise<void>;
|
|
79
79
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.10",
|
|
4
4
|
"description": "JS client for DatoCMS REST Content Management API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"url": "https://github.com/datocms/js-rest-api-clients/issues"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@datocms/rest-client-utils": "^3.3.
|
|
40
|
+
"@datocms/rest-client-utils": "^3.3.10",
|
|
41
41
|
"uuid": "^9.0.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@datocms/dashboard-client": "^3.3.
|
|
44
|
+
"@datocms/dashboard-client": "^3.3.10",
|
|
45
45
|
"@types/uuid": "^9.0.7"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "cdd10b11be7e7449b0b9b5f49f296596d8104e44"
|
|
48
48
|
}
|