@datocms/cma-client 3.3.7 → 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 +2 -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/Role.js +2 -0
- package/dist/cjs/generated/resources/Role.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/Upload.js +34 -2
- package/dist/cjs/generated/resources/Upload.js.map +1 -1
- package/dist/cjs/generated/resources/UploadCollection.js +238 -0
- package/dist/cjs/generated/resources/UploadCollection.js.map +1 -0
- package/dist/cjs/generated/resources/WebhookCall.js +4 -4
- package/dist/cjs/generated/resources/WebhookCall.js.map +1 -1
- package/dist/cjs/generated/resources/index.js +3 -1
- package/dist/cjs/generated/resources/index.js.map +1 -1
- package/dist/esm/generated/Client.d.ts +1 -0
- package/dist/esm/generated/Client.js +2 -1
- package/dist/esm/generated/Client.js.map +1 -1
- package/dist/esm/generated/SchemaTypes.d.ts +484 -40
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +415 -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/Role.js +2 -0
- package/dist/esm/generated/resources/Role.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/Upload.d.ts +18 -0
- package/dist/esm/generated/resources/Upload.js +34 -2
- package/dist/esm/generated/resources/Upload.js.map +1 -1
- package/dist/esm/generated/resources/UploadCollection.d.ts +118 -0
- package/dist/esm/generated/resources/UploadCollection.js +210 -0
- package/dist/esm/generated/resources/UploadCollection.js.map +1 -0
- 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/esm/generated/resources/index.d.ts +1 -0
- package/dist/esm/generated/resources/index.js +1 -0
- package/dist/esm/generated/resources/index.js.map +1 -1
- package/dist/types/generated/Client.d.ts +1 -0
- package/dist/types/generated/SchemaTypes.d.ts +484 -40
- package/dist/types/generated/SimpleSchemaTypes.d.ts +415 -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/Upload.d.ts +18 -0
- package/dist/types/generated/resources/UploadCollection.d.ts +118 -0
- package/dist/types/generated/resources/WebhookCall.d.ts +2 -2
- package/dist/types/generated/resources/index.d.ts +1 -0
- package/package.json +2 -2
- package/resources.json +240 -6
- package/src/generated/Client.ts +3 -1
- package/src/generated/SchemaTypes.ts +515 -42
- package/src/generated/SimpleSchemaTypes.ts +425 -149
- package/src/generated/resources/ItemType.ts +22 -0
- package/src/generated/resources/MenuItem.ts +44 -0
- package/src/generated/resources/Role.ts +2 -0
- package/src/generated/resources/SchemaMenuItem.ts +47 -0
- package/src/generated/resources/Upload.ts +49 -2
- package/src/generated/resources/UploadCollection.ts +251 -0
- package/src/generated/resources/WebhookCall.ts +4 -4
- package/src/generated/resources/index.ts +1 -0
|
@@ -290,6 +290,21 @@ export type MenuItemInstancesHrefSchema = {
|
|
|
290
290
|
ids: string;
|
|
291
291
|
};
|
|
292
292
|
};
|
|
293
|
+
/**
|
|
294
|
+
* This interface was referenced by `Job`'s JSON-Schema
|
|
295
|
+
* via the `definition` "type".
|
|
296
|
+
*/
|
|
297
|
+
export type JobType = 'job';
|
|
298
|
+
/**
|
|
299
|
+
* ID of job
|
|
300
|
+
*
|
|
301
|
+
* This interface was referenced by `Job`'s JSON-Schema
|
|
302
|
+
* via the `definition` "identity".
|
|
303
|
+
*
|
|
304
|
+
* This interface was referenced by `Job`'s JSON-Schema
|
|
305
|
+
* via the `definition` "id".
|
|
306
|
+
*/
|
|
307
|
+
export type JobIdentity = string;
|
|
293
308
|
/**
|
|
294
309
|
* JSON API type field
|
|
295
310
|
*
|
|
@@ -319,6 +334,35 @@ export type SchemaMenuItemInstancesHrefSchema = {
|
|
|
319
334
|
ids: string;
|
|
320
335
|
};
|
|
321
336
|
};
|
|
337
|
+
/**
|
|
338
|
+
* JSON API type field
|
|
339
|
+
*
|
|
340
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
341
|
+
* via the `definition` "type".
|
|
342
|
+
*/
|
|
343
|
+
export type UploadCollectionType = 'upload_collection';
|
|
344
|
+
/**
|
|
345
|
+
* RFC 4122 UUID of upload collection expressed in URL-safe base64 format
|
|
346
|
+
*
|
|
347
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
348
|
+
* via the `definition` "identity".
|
|
349
|
+
*
|
|
350
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
351
|
+
* via the `definition` "id".
|
|
352
|
+
*/
|
|
353
|
+
export type UploadCollectionIdentity = string;
|
|
354
|
+
/**
|
|
355
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
356
|
+
* via the `instances.hrefSchema` link.
|
|
357
|
+
*/
|
|
358
|
+
export type UploadCollectionInstancesHrefSchema = {
|
|
359
|
+
filter?: {
|
|
360
|
+
/**
|
|
361
|
+
* IDs to fetch, comma separated
|
|
362
|
+
*/
|
|
363
|
+
ids: string;
|
|
364
|
+
};
|
|
365
|
+
};
|
|
322
366
|
/**
|
|
323
367
|
* This interface was referenced by `Item`'s JSON-Schema
|
|
324
368
|
* via the `definition` "type".
|
|
@@ -388,21 +432,6 @@ export type ItemTypeCreateHrefSchema = {
|
|
|
388
432
|
schema_menu_item_id?: string;
|
|
389
433
|
[k: string]: unknown;
|
|
390
434
|
};
|
|
391
|
-
/**
|
|
392
|
-
* This interface was referenced by `Job`'s JSON-Schema
|
|
393
|
-
* via the `definition` "type".
|
|
394
|
-
*/
|
|
395
|
-
export type JobType = 'job';
|
|
396
|
-
/**
|
|
397
|
-
* ID of job
|
|
398
|
-
*
|
|
399
|
-
* This interface was referenced by `Job`'s JSON-Schema
|
|
400
|
-
* via the `definition` "identity".
|
|
401
|
-
*
|
|
402
|
-
* This interface was referenced by `Job`'s JSON-Schema
|
|
403
|
-
* via the `definition` "id".
|
|
404
|
-
*/
|
|
405
|
-
export type JobIdentity = string;
|
|
406
435
|
/**
|
|
407
436
|
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
408
437
|
* via the `destroy.hrefSchema` link.
|
|
@@ -1408,6 +1437,7 @@ export type DatoApi = {
|
|
|
1408
1437
|
site_plan?: SitePlan;
|
|
1409
1438
|
menu_item?: MenuItem;
|
|
1410
1439
|
schema_menu_item?: SchemaMenuItem;
|
|
1440
|
+
upload_collection?: UploadCollection;
|
|
1411
1441
|
item_type?: ItemType;
|
|
1412
1442
|
field?: Field;
|
|
1413
1443
|
fieldset?: Fieldset;
|
|
@@ -1510,7 +1540,11 @@ export type RoleAttributes = {
|
|
|
1510
1540
|
/**
|
|
1511
1541
|
* Can create/edit shared filters (both for models and the media area)
|
|
1512
1542
|
*/
|
|
1513
|
-
can_manage_shared_filters
|
|
1543
|
+
can_manage_shared_filters: boolean;
|
|
1544
|
+
/**
|
|
1545
|
+
* Can create/edit upload collections
|
|
1546
|
+
*/
|
|
1547
|
+
can_manage_upload_collections: boolean;
|
|
1514
1548
|
/**
|
|
1515
1549
|
* Can create/edit Build triggers
|
|
1516
1550
|
*/
|
|
@@ -1726,7 +1760,11 @@ export type RoleMeta = {
|
|
|
1726
1760
|
/**
|
|
1727
1761
|
* Can create/edit shared filters (both for models and the media area)
|
|
1728
1762
|
*/
|
|
1729
|
-
can_manage_shared_filters
|
|
1763
|
+
can_manage_shared_filters: boolean;
|
|
1764
|
+
/**
|
|
1765
|
+
* Can create/edit upload collections
|
|
1766
|
+
*/
|
|
1767
|
+
can_manage_upload_collections: boolean;
|
|
1730
1768
|
/**
|
|
1731
1769
|
* Can create/edit Build triggers
|
|
1732
1770
|
*/
|
|
@@ -1924,6 +1962,10 @@ export type RoleCreateSchema = {
|
|
|
1924
1962
|
* Can create/edit shared filters (both for models and the media area)
|
|
1925
1963
|
*/
|
|
1926
1964
|
can_manage_shared_filters?: boolean;
|
|
1965
|
+
/**
|
|
1966
|
+
* Can create/edit upload collections
|
|
1967
|
+
*/
|
|
1968
|
+
can_manage_upload_collections?: boolean;
|
|
1927
1969
|
/**
|
|
1928
1970
|
* Can create/edit Build triggers
|
|
1929
1971
|
*/
|
|
@@ -2142,6 +2184,10 @@ export type RoleUpdateSchema = {
|
|
|
2142
2184
|
* Can create/edit shared filters (both for models and the media area)
|
|
2143
2185
|
*/
|
|
2144
2186
|
can_manage_shared_filters?: boolean;
|
|
2187
|
+
/**
|
|
2188
|
+
* Can create/edit upload collections
|
|
2189
|
+
*/
|
|
2190
|
+
can_manage_upload_collections?: boolean;
|
|
2145
2191
|
/**
|
|
2146
2192
|
* Can create/edit Build triggers
|
|
2147
2193
|
*/
|
|
@@ -3485,6 +3531,65 @@ export type MenuItemSelfTargetSchema = {
|
|
|
3485
3531
|
export type MenuItemDestroyTargetSchema = {
|
|
3486
3532
|
data: MenuItem;
|
|
3487
3533
|
};
|
|
3534
|
+
/**
|
|
3535
|
+
* This interface was referenced by `MenuItem`'s JSON-Schema
|
|
3536
|
+
* via the `reorder.schema` link.
|
|
3537
|
+
*/
|
|
3538
|
+
export type MenuItemReorderSchema = {
|
|
3539
|
+
data: {
|
|
3540
|
+
id: MenuItemIdentity;
|
|
3541
|
+
type: MenuItemType;
|
|
3542
|
+
/**
|
|
3543
|
+
* JSON API attributes
|
|
3544
|
+
*/
|
|
3545
|
+
attributes: {
|
|
3546
|
+
/**
|
|
3547
|
+
* Ordering index
|
|
3548
|
+
*/
|
|
3549
|
+
position: number;
|
|
3550
|
+
};
|
|
3551
|
+
relationships: {
|
|
3552
|
+
/**
|
|
3553
|
+
* Parent menu item
|
|
3554
|
+
*/
|
|
3555
|
+
parent: {
|
|
3556
|
+
data: null | MenuItemData;
|
|
3557
|
+
};
|
|
3558
|
+
};
|
|
3559
|
+
}[];
|
|
3560
|
+
};
|
|
3561
|
+
/**
|
|
3562
|
+
* This interface was referenced by `MenuItem`'s JSON-Schema
|
|
3563
|
+
* via the `reorder.targetSchema` link.
|
|
3564
|
+
*/
|
|
3565
|
+
export type MenuItemReorderTargetSchema = {
|
|
3566
|
+
data: Job;
|
|
3567
|
+
};
|
|
3568
|
+
/**
|
|
3569
|
+
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
3570
|
+
* via the `definition` "job".
|
|
3571
|
+
*/
|
|
3572
|
+
export type Job = {
|
|
3573
|
+
type: JobType;
|
|
3574
|
+
id: JobIdentity;
|
|
3575
|
+
};
|
|
3576
|
+
/**
|
|
3577
|
+
* JSON API data
|
|
3578
|
+
*
|
|
3579
|
+
* This interface was referenced by `Job`'s JSON-Schema
|
|
3580
|
+
* via the `definition` "data".
|
|
3581
|
+
*/
|
|
3582
|
+
export type JobData = {
|
|
3583
|
+
type: JobType;
|
|
3584
|
+
id: JobIdentity;
|
|
3585
|
+
};
|
|
3586
|
+
/**
|
|
3587
|
+
* This interface was referenced by `MenuItem`'s JSON-Schema
|
|
3588
|
+
* via the `reorder.jobSchema` link.
|
|
3589
|
+
*/
|
|
3590
|
+
export type MenuItemReorderJobSchema = {
|
|
3591
|
+
data: MenuItem[];
|
|
3592
|
+
};
|
|
3488
3593
|
/**
|
|
3489
3594
|
* 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.
|
|
3490
3595
|
*
|
|
@@ -3676,6 +3781,249 @@ export type SchemaMenuItemSelfTargetSchema = {
|
|
|
3676
3781
|
export type SchemaMenuItemDestroyTargetSchema = {
|
|
3677
3782
|
data: SchemaMenuItem;
|
|
3678
3783
|
};
|
|
3784
|
+
/**
|
|
3785
|
+
* This interface was referenced by `SchemaMenuItem`'s JSON-Schema
|
|
3786
|
+
* via the `reorder.schema` link.
|
|
3787
|
+
*/
|
|
3788
|
+
export type SchemaMenuItemReorderSchema = {
|
|
3789
|
+
data: {
|
|
3790
|
+
id: SchemaMenuItemIdentity;
|
|
3791
|
+
type: SchemaMenuItemType;
|
|
3792
|
+
/**
|
|
3793
|
+
* JSON API attributes
|
|
3794
|
+
*/
|
|
3795
|
+
attributes: {
|
|
3796
|
+
/**
|
|
3797
|
+
* Ordering index
|
|
3798
|
+
*/
|
|
3799
|
+
position: number;
|
|
3800
|
+
};
|
|
3801
|
+
relationships: {
|
|
3802
|
+
/**
|
|
3803
|
+
* Parent schema menu item
|
|
3804
|
+
*/
|
|
3805
|
+
parent: {
|
|
3806
|
+
data: null | SchemaMenuItemData;
|
|
3807
|
+
};
|
|
3808
|
+
};
|
|
3809
|
+
}[];
|
|
3810
|
+
};
|
|
3811
|
+
/**
|
|
3812
|
+
* This interface was referenced by `SchemaMenuItem`'s JSON-Schema
|
|
3813
|
+
* via the `reorder.targetSchema` link.
|
|
3814
|
+
*/
|
|
3815
|
+
export type SchemaMenuItemReorderTargetSchema = {
|
|
3816
|
+
data: Job;
|
|
3817
|
+
};
|
|
3818
|
+
/**
|
|
3819
|
+
* This interface was referenced by `SchemaMenuItem`'s JSON-Schema
|
|
3820
|
+
* via the `reorder.jobSchema` link.
|
|
3821
|
+
*/
|
|
3822
|
+
export type SchemaMenuItemReorderJobSchema = {
|
|
3823
|
+
data: SchemaMenuItem[];
|
|
3824
|
+
};
|
|
3825
|
+
/**
|
|
3826
|
+
* In DatoCMS you can organize the uploads present in your administrative area in collection, so that the final editors can easily navigate uploads.
|
|
3827
|
+
*
|
|
3828
|
+
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
3829
|
+
* via the `definition` "upload_collection".
|
|
3830
|
+
*/
|
|
3831
|
+
export type UploadCollection = {
|
|
3832
|
+
type: UploadCollectionType;
|
|
3833
|
+
id: UploadCollectionIdentity;
|
|
3834
|
+
attributes: UploadCollectionAttributes;
|
|
3835
|
+
relationships: UploadCollectionRelationships;
|
|
3836
|
+
};
|
|
3837
|
+
/**
|
|
3838
|
+
* JSON API attributes
|
|
3839
|
+
*
|
|
3840
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
3841
|
+
* via the `definition` "attributes".
|
|
3842
|
+
*/
|
|
3843
|
+
export type UploadCollectionAttributes = {
|
|
3844
|
+
/**
|
|
3845
|
+
* The label of the upload collection
|
|
3846
|
+
*/
|
|
3847
|
+
label: string;
|
|
3848
|
+
/**
|
|
3849
|
+
* Ordering index
|
|
3850
|
+
*/
|
|
3851
|
+
position: number;
|
|
3852
|
+
};
|
|
3853
|
+
/**
|
|
3854
|
+
* JSON API links
|
|
3855
|
+
*
|
|
3856
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
3857
|
+
* via the `definition` "relationships".
|
|
3858
|
+
*/
|
|
3859
|
+
export type UploadCollectionRelationships = {
|
|
3860
|
+
/**
|
|
3861
|
+
* Parent upload collection
|
|
3862
|
+
*/
|
|
3863
|
+
parent: {
|
|
3864
|
+
data: null | UploadCollectionData;
|
|
3865
|
+
};
|
|
3866
|
+
/**
|
|
3867
|
+
* Underlying upload collections
|
|
3868
|
+
*/
|
|
3869
|
+
children: {
|
|
3870
|
+
data: UploadCollectionData[];
|
|
3871
|
+
};
|
|
3872
|
+
};
|
|
3873
|
+
/**
|
|
3874
|
+
* JSON API data
|
|
3875
|
+
*
|
|
3876
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
3877
|
+
* via the `definition` "data".
|
|
3878
|
+
*/
|
|
3879
|
+
export type UploadCollectionData = {
|
|
3880
|
+
type: UploadCollectionType;
|
|
3881
|
+
id: UploadCollectionIdentity;
|
|
3882
|
+
};
|
|
3883
|
+
/**
|
|
3884
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
3885
|
+
* via the `create.schema` link.
|
|
3886
|
+
*/
|
|
3887
|
+
export type UploadCollectionCreateSchema = {
|
|
3888
|
+
data: {
|
|
3889
|
+
id?: UploadCollectionIdentity;
|
|
3890
|
+
type: UploadCollectionType;
|
|
3891
|
+
/**
|
|
3892
|
+
* JSON API attributes
|
|
3893
|
+
*/
|
|
3894
|
+
attributes: {
|
|
3895
|
+
/**
|
|
3896
|
+
* The label of the upload collection
|
|
3897
|
+
*/
|
|
3898
|
+
label: string;
|
|
3899
|
+
/**
|
|
3900
|
+
* Ordering index
|
|
3901
|
+
*/
|
|
3902
|
+
position?: number;
|
|
3903
|
+
};
|
|
3904
|
+
relationships?: {
|
|
3905
|
+
/**
|
|
3906
|
+
* Parent upload collection
|
|
3907
|
+
*/
|
|
3908
|
+
parent?: {
|
|
3909
|
+
data: null | UploadCollectionData;
|
|
3910
|
+
};
|
|
3911
|
+
};
|
|
3912
|
+
};
|
|
3913
|
+
};
|
|
3914
|
+
/**
|
|
3915
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
3916
|
+
* via the `create.targetSchema` link.
|
|
3917
|
+
*/
|
|
3918
|
+
export type UploadCollectionCreateTargetSchema = {
|
|
3919
|
+
data: UploadCollection;
|
|
3920
|
+
};
|
|
3921
|
+
/**
|
|
3922
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
3923
|
+
* via the `update.schema` link.
|
|
3924
|
+
*/
|
|
3925
|
+
export type UploadCollectionUpdateSchema = {
|
|
3926
|
+
data: {
|
|
3927
|
+
type: UploadCollectionType;
|
|
3928
|
+
id: UploadCollectionIdentity;
|
|
3929
|
+
/**
|
|
3930
|
+
* JSON API attributes
|
|
3931
|
+
*/
|
|
3932
|
+
attributes?: {
|
|
3933
|
+
/**
|
|
3934
|
+
* The label of the upload collection
|
|
3935
|
+
*/
|
|
3936
|
+
label?: string;
|
|
3937
|
+
/**
|
|
3938
|
+
* Ordering index
|
|
3939
|
+
*/
|
|
3940
|
+
position?: number;
|
|
3941
|
+
};
|
|
3942
|
+
relationships?: {
|
|
3943
|
+
/**
|
|
3944
|
+
* Parent upload collection
|
|
3945
|
+
*/
|
|
3946
|
+
parent?: {
|
|
3947
|
+
data: null | UploadCollectionData;
|
|
3948
|
+
};
|
|
3949
|
+
/**
|
|
3950
|
+
* Underlying upload collections
|
|
3951
|
+
*/
|
|
3952
|
+
children?: {
|
|
3953
|
+
data: UploadCollectionData[];
|
|
3954
|
+
};
|
|
3955
|
+
};
|
|
3956
|
+
};
|
|
3957
|
+
};
|
|
3958
|
+
/**
|
|
3959
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
3960
|
+
* via the `update.targetSchema` link.
|
|
3961
|
+
*/
|
|
3962
|
+
export type UploadCollectionUpdateTargetSchema = {
|
|
3963
|
+
data: UploadCollection;
|
|
3964
|
+
};
|
|
3965
|
+
/**
|
|
3966
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
3967
|
+
* via the `instances.targetSchema` link.
|
|
3968
|
+
*/
|
|
3969
|
+
export type UploadCollectionInstancesTargetSchema = {
|
|
3970
|
+
data: UploadCollection[];
|
|
3971
|
+
};
|
|
3972
|
+
/**
|
|
3973
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
3974
|
+
* via the `self.targetSchema` link.
|
|
3975
|
+
*/
|
|
3976
|
+
export type UploadCollectionSelfTargetSchema = {
|
|
3977
|
+
data: UploadCollection;
|
|
3978
|
+
};
|
|
3979
|
+
/**
|
|
3980
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
3981
|
+
* via the `destroy.targetSchema` link.
|
|
3982
|
+
*/
|
|
3983
|
+
export type UploadCollectionDestroyTargetSchema = {
|
|
3984
|
+
data: UploadCollection;
|
|
3985
|
+
};
|
|
3986
|
+
/**
|
|
3987
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
3988
|
+
* via the `reorder.schema` link.
|
|
3989
|
+
*/
|
|
3990
|
+
export type UploadCollectionReorderSchema = {
|
|
3991
|
+
data: {
|
|
3992
|
+
id: UploadCollectionIdentity;
|
|
3993
|
+
type: UploadCollectionType;
|
|
3994
|
+
/**
|
|
3995
|
+
* JSON API attributes
|
|
3996
|
+
*/
|
|
3997
|
+
attributes: {
|
|
3998
|
+
/**
|
|
3999
|
+
* Ordering index
|
|
4000
|
+
*/
|
|
4001
|
+
position: number;
|
|
4002
|
+
};
|
|
4003
|
+
relationships: {
|
|
4004
|
+
/**
|
|
4005
|
+
* Parent upload collection
|
|
4006
|
+
*/
|
|
4007
|
+
parent: {
|
|
4008
|
+
data: null | UploadCollectionData;
|
|
4009
|
+
};
|
|
4010
|
+
};
|
|
4011
|
+
}[];
|
|
4012
|
+
};
|
|
4013
|
+
/**
|
|
4014
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
4015
|
+
* via the `reorder.targetSchema` link.
|
|
4016
|
+
*/
|
|
4017
|
+
export type UploadCollectionReorderTargetSchema = {
|
|
4018
|
+
data: Job;
|
|
4019
|
+
};
|
|
4020
|
+
/**
|
|
4021
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
4022
|
+
* via the `reorder.jobSchema` link.
|
|
4023
|
+
*/
|
|
4024
|
+
export type UploadCollectionReorderJobSchema = {
|
|
4025
|
+
data: UploadCollection[];
|
|
4026
|
+
};
|
|
3679
4027
|
/**
|
|
3680
4028
|
* The way you define the kind of content you can edit inside your administrative area passes through the concept of Models, which are much like database tables. For backward-compatibility reasons, the API refers to models as "item types".
|
|
3681
4029
|
*
|
|
@@ -4096,24 +4444,6 @@ export type ItemTypeUpdateSchema = {
|
|
|
4096
4444
|
export type ItemTypeUpdateTargetSchema = {
|
|
4097
4445
|
data: Job;
|
|
4098
4446
|
};
|
|
4099
|
-
/**
|
|
4100
|
-
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
4101
|
-
* via the `definition` "job".
|
|
4102
|
-
*/
|
|
4103
|
-
export type Job = {
|
|
4104
|
-
type: JobType;
|
|
4105
|
-
id: JobIdentity;
|
|
4106
|
-
};
|
|
4107
|
-
/**
|
|
4108
|
-
* JSON API data
|
|
4109
|
-
*
|
|
4110
|
-
* This interface was referenced by `Job`'s JSON-Schema
|
|
4111
|
-
* via the `definition` "data".
|
|
4112
|
-
*/
|
|
4113
|
-
export type JobData = {
|
|
4114
|
-
type: JobType;
|
|
4115
|
-
id: JobIdentity;
|
|
4116
|
-
};
|
|
4117
4447
|
/**
|
|
4118
4448
|
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
4119
4449
|
* via the `update.jobSchema` link.
|
|
@@ -4156,6 +4486,59 @@ export type ItemTypeDestroyTargetSchema = {
|
|
|
4156
4486
|
export type ItemTypeDestroyJobSchema = {
|
|
4157
4487
|
data: ItemType;
|
|
4158
4488
|
};
|
|
4489
|
+
/**
|
|
4490
|
+
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
4491
|
+
* via the `reorder_fields_and_fieldsets.schema` link.
|
|
4492
|
+
*/
|
|
4493
|
+
export type ItemTypeReorderFieldsAndFieldsetsSchema = {
|
|
4494
|
+
data: ({
|
|
4495
|
+
id: FieldIdentity;
|
|
4496
|
+
type: FieldType;
|
|
4497
|
+
/**
|
|
4498
|
+
* JSON API attributes
|
|
4499
|
+
*/
|
|
4500
|
+
attributes: {
|
|
4501
|
+
/**
|
|
4502
|
+
* Ordering index
|
|
4503
|
+
*/
|
|
4504
|
+
position: number;
|
|
4505
|
+
};
|
|
4506
|
+
relationships: {
|
|
4507
|
+
/**
|
|
4508
|
+
* Fieldset linkage
|
|
4509
|
+
*/
|
|
4510
|
+
fieldset: {
|
|
4511
|
+
data: null | FieldsetData;
|
|
4512
|
+
};
|
|
4513
|
+
};
|
|
4514
|
+
} | {
|
|
4515
|
+
id: FieldsetIdentity;
|
|
4516
|
+
type: FieldsetType;
|
|
4517
|
+
/**
|
|
4518
|
+
* JSON API attributes
|
|
4519
|
+
*/
|
|
4520
|
+
attributes: {
|
|
4521
|
+
/**
|
|
4522
|
+
* Ordering index
|
|
4523
|
+
*/
|
|
4524
|
+
position: number;
|
|
4525
|
+
};
|
|
4526
|
+
})[];
|
|
4527
|
+
};
|
|
4528
|
+
/**
|
|
4529
|
+
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
4530
|
+
* via the `reorder_fields_and_fieldsets.targetSchema` link.
|
|
4531
|
+
*/
|
|
4532
|
+
export type ItemTypeReorderFieldsAndFieldsetsTargetSchema = {
|
|
4533
|
+
data: Job;
|
|
4534
|
+
};
|
|
4535
|
+
/**
|
|
4536
|
+
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
4537
|
+
* via the `reorder_fields_and_fieldsets.jobSchema` link.
|
|
4538
|
+
*/
|
|
4539
|
+
export type ItemTypeReorderFieldsAndFieldsetsJobSchema = {
|
|
4540
|
+
data: (Field | Fieldset)[];
|
|
4541
|
+
};
|
|
4159
4542
|
/**
|
|
4160
4543
|
* 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.
|
|
4161
4544
|
*
|
|
@@ -4212,12 +4595,12 @@ export type ItemTypeDestroyJobSchema = {
|
|
|
4212
4595
|
*
|
|
4213
4596
|
* #### Setting the appearance to a field editor provided by a plugin
|
|
4214
4597
|
*
|
|
4215
|
-
* 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
|
|
4598
|
+
* 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.
|
|
4216
4599
|
*
|
|
4217
4600
|
* In this case:
|
|
4218
4601
|
*
|
|
4219
|
-
* - the `editor` property
|
|
4220
|
-
* - the `field_extension` property must be the ID of the specific manual field editor that the plugin exposes
|
|
4602
|
+
* - 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.
|
|
4603
|
+
* - 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`).
|
|
4221
4604
|
* - 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.
|
|
4222
4605
|
*
|
|
4223
4606
|
* ```js
|
|
@@ -7381,6 +7764,12 @@ export type UploadAttributes = {
|
|
|
7381
7764
|
* via the `definition` "relationships".
|
|
7382
7765
|
*/
|
|
7383
7766
|
export type UploadRelationships = {
|
|
7767
|
+
/**
|
|
7768
|
+
* Upload collection to which the asset belongs
|
|
7769
|
+
*/
|
|
7770
|
+
upload_collection: {
|
|
7771
|
+
data: UploadCollectionData | null;
|
|
7772
|
+
};
|
|
7384
7773
|
/**
|
|
7385
7774
|
* The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
|
|
7386
7775
|
*/
|
|
@@ -7467,6 +7856,14 @@ export type UploadCreateSchema = {
|
|
|
7467
7856
|
tags?: string[];
|
|
7468
7857
|
[k: string]: unknown;
|
|
7469
7858
|
};
|
|
7859
|
+
relationships?: {
|
|
7860
|
+
/**
|
|
7861
|
+
* Upload collection to which the asset belongs
|
|
7862
|
+
*/
|
|
7863
|
+
upload_collection?: {
|
|
7864
|
+
data: UploadCollectionData | null;
|
|
7865
|
+
};
|
|
7866
|
+
};
|
|
7470
7867
|
};
|
|
7471
7868
|
};
|
|
7472
7869
|
/**
|
|
@@ -7584,9 +7981,15 @@ export type UploadUpdateSchema = {
|
|
|
7584
7981
|
/**
|
|
7585
7982
|
* The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
|
|
7586
7983
|
*/
|
|
7587
|
-
creator
|
|
7984
|
+
creator?: {
|
|
7588
7985
|
data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
7589
7986
|
};
|
|
7987
|
+
/**
|
|
7988
|
+
* Upload collection to which the asset belongs
|
|
7989
|
+
*/
|
|
7990
|
+
upload_collection?: {
|
|
7991
|
+
data: UploadCollectionData | null;
|
|
7992
|
+
};
|
|
7590
7993
|
};
|
|
7591
7994
|
};
|
|
7592
7995
|
};
|
|
@@ -7706,6 +8109,47 @@ export type UploadBulkTagJobSchema = {
|
|
|
7706
8109
|
failed: number;
|
|
7707
8110
|
};
|
|
7708
8111
|
};
|
|
8112
|
+
/**
|
|
8113
|
+
* This interface was referenced by `Upload`'s JSON-Schema
|
|
8114
|
+
* via the `bulk_set_upload_collection.schema` link.
|
|
8115
|
+
*/
|
|
8116
|
+
export type UploadBulkSetUploadCollectionSchema = {
|
|
8117
|
+
data: {
|
|
8118
|
+
type: 'upload_bulk_set_upload_collection_operation';
|
|
8119
|
+
relationships: {
|
|
8120
|
+
/**
|
|
8121
|
+
* Asset collection to put uploads into
|
|
8122
|
+
*/
|
|
8123
|
+
upload_collection: {
|
|
8124
|
+
data: null | UploadCollectionData;
|
|
8125
|
+
};
|
|
8126
|
+
/**
|
|
8127
|
+
* Assets to assign to the collection
|
|
8128
|
+
*/
|
|
8129
|
+
uploads: {
|
|
8130
|
+
data: UploadData[];
|
|
8131
|
+
};
|
|
8132
|
+
};
|
|
8133
|
+
};
|
|
8134
|
+
};
|
|
8135
|
+
/**
|
|
8136
|
+
* This interface was referenced by `Upload`'s JSON-Schema
|
|
8137
|
+
* via the `bulk_set_upload_collection.targetSchema` link.
|
|
8138
|
+
*/
|
|
8139
|
+
export type UploadBulkSetUploadCollectionTargetSchema = {
|
|
8140
|
+
data: Job;
|
|
8141
|
+
};
|
|
8142
|
+
/**
|
|
8143
|
+
* This interface was referenced by `Upload`'s JSON-Schema
|
|
8144
|
+
* via the `bulk_set_upload_collection.jobSchema` link.
|
|
8145
|
+
*/
|
|
8146
|
+
export type UploadBulkSetUploadCollectionJobSchema = {
|
|
8147
|
+
data: unknown[];
|
|
8148
|
+
meta: {
|
|
8149
|
+
successful: number;
|
|
8150
|
+
failed: number;
|
|
8151
|
+
};
|
|
8152
|
+
};
|
|
7709
8153
|
/**
|
|
7710
8154
|
* This interface was referenced by `Upload`'s JSON-Schema
|
|
7711
8155
|
* via the `bulk_destroy.schema` link.
|
|
@@ -8478,7 +8922,7 @@ export type WebhookDestroyTargetSchema = {
|
|
|
8478
8922
|
data: Webhook;
|
|
8479
8923
|
};
|
|
8480
8924
|
/**
|
|
8481
|
-
*
|
|
8925
|
+
* This represents a log entry in the webhooks activity list, detailing a specific webhook event along with its delivery attempt information.
|
|
8482
8926
|
*
|
|
8483
8927
|
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
8484
8928
|
* via the `definition` "webhook_call".
|