@datocms/cma-client 3.3.7 → 3.3.8
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/Role.js +2 -0
- package/dist/cjs/generated/resources/Role.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 +202 -0
- package/dist/cjs/generated/resources/UploadCollection.js.map +1 -0
- 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 +272 -4
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +176 -4
- package/dist/esm/generated/resources/Role.js +2 -0
- package/dist/esm/generated/resources/Role.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 +96 -0
- package/dist/esm/generated/resources/UploadCollection.js +174 -0
- package/dist/esm/generated/resources/UploadCollection.js.map +1 -0
- 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 +272 -4
- package/dist/types/generated/SimpleSchemaTypes.d.ts +176 -4
- package/dist/types/generated/resources/Upload.d.ts +18 -0
- package/dist/types/generated/resources/UploadCollection.d.ts +96 -0
- package/dist/types/generated/resources/index.d.ts +1 -0
- package/package.json +2 -2
- package/resources.json +148 -2
- package/src/generated/Client.ts +3 -1
- package/src/generated/SchemaTypes.ts +286 -4
- package/src/generated/SimpleSchemaTypes.ts +182 -4
- package/src/generated/resources/Role.ts +2 -0
- package/src/generated/resources/Upload.ts +49 -2
- package/src/generated/resources/UploadCollection.ts +204 -0
- package/src/generated/resources/index.ts +1 -0
|
@@ -321,6 +321,35 @@ export type SchemaMenuItemInstancesHrefSchema = {
|
|
|
321
321
|
ids: string;
|
|
322
322
|
};
|
|
323
323
|
};
|
|
324
|
+
/**
|
|
325
|
+
* JSON API type field
|
|
326
|
+
*
|
|
327
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
328
|
+
* via the `definition` "type".
|
|
329
|
+
*/
|
|
330
|
+
export type UploadCollectionType = 'upload_collection';
|
|
331
|
+
/**
|
|
332
|
+
* RFC 4122 UUID of upload collection expressed in URL-safe base64 format
|
|
333
|
+
*
|
|
334
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
335
|
+
* via the `definition` "identity".
|
|
336
|
+
*
|
|
337
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
338
|
+
* via the `definition` "id".
|
|
339
|
+
*/
|
|
340
|
+
export type UploadCollectionIdentity = string;
|
|
341
|
+
/**
|
|
342
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
343
|
+
* via the `instances.hrefSchema` link.
|
|
344
|
+
*/
|
|
345
|
+
export type UploadCollectionInstancesHrefSchema = {
|
|
346
|
+
filter?: {
|
|
347
|
+
/**
|
|
348
|
+
* IDs to fetch, comma separated
|
|
349
|
+
*/
|
|
350
|
+
ids: string;
|
|
351
|
+
};
|
|
352
|
+
};
|
|
324
353
|
/**
|
|
325
354
|
* This interface was referenced by `Item`'s JSON-Schema
|
|
326
355
|
* via the `definition` "type".
|
|
@@ -1457,6 +1486,7 @@ export type DatoApi = {
|
|
|
1457
1486
|
site_plan?: SitePlan;
|
|
1458
1487
|
menu_item?: MenuItem;
|
|
1459
1488
|
schema_menu_item?: SchemaMenuItem;
|
|
1489
|
+
upload_collection?: UploadCollection;
|
|
1460
1490
|
item_type?: ItemType;
|
|
1461
1491
|
field?: Field;
|
|
1462
1492
|
fieldset?: Fieldset;
|
|
@@ -1561,7 +1591,11 @@ export type RoleAttributes = {
|
|
|
1561
1591
|
/**
|
|
1562
1592
|
* Can create/edit shared filters (both for models and the media area)
|
|
1563
1593
|
*/
|
|
1564
|
-
can_manage_shared_filters
|
|
1594
|
+
can_manage_shared_filters: boolean;
|
|
1595
|
+
/**
|
|
1596
|
+
* Can create/edit upload collections
|
|
1597
|
+
*/
|
|
1598
|
+
can_manage_upload_collections: boolean;
|
|
1565
1599
|
/**
|
|
1566
1600
|
* Can create/edit Build triggers
|
|
1567
1601
|
*/
|
|
@@ -1814,7 +1848,11 @@ export type RoleMeta = {
|
|
|
1814
1848
|
/**
|
|
1815
1849
|
* Can create/edit shared filters (both for models and the media area)
|
|
1816
1850
|
*/
|
|
1817
|
-
can_manage_shared_filters
|
|
1851
|
+
can_manage_shared_filters: boolean;
|
|
1852
|
+
/**
|
|
1853
|
+
* Can create/edit upload collections
|
|
1854
|
+
*/
|
|
1855
|
+
can_manage_upload_collections: boolean;
|
|
1818
1856
|
/**
|
|
1819
1857
|
* Can create/edit Build triggers
|
|
1820
1858
|
*/
|
|
@@ -2047,6 +2085,10 @@ export type RoleCreateSchema = {
|
|
|
2047
2085
|
* Can create/edit shared filters (both for models and the media area)
|
|
2048
2086
|
*/
|
|
2049
2087
|
can_manage_shared_filters?: boolean;
|
|
2088
|
+
/**
|
|
2089
|
+
* Can create/edit upload collections
|
|
2090
|
+
*/
|
|
2091
|
+
can_manage_upload_collections?: boolean;
|
|
2050
2092
|
/**
|
|
2051
2093
|
* Can create/edit Build triggers
|
|
2052
2094
|
*/
|
|
@@ -2301,6 +2343,10 @@ export type RoleUpdateSchema = {
|
|
|
2301
2343
|
* Can create/edit shared filters (both for models and the media area)
|
|
2302
2344
|
*/
|
|
2303
2345
|
can_manage_shared_filters?: boolean;
|
|
2346
|
+
/**
|
|
2347
|
+
* Can create/edit upload collections
|
|
2348
|
+
*/
|
|
2349
|
+
can_manage_upload_collections?: boolean;
|
|
2304
2350
|
/**
|
|
2305
2351
|
* Can create/edit Build triggers
|
|
2306
2352
|
*/
|
|
@@ -3946,6 +3992,178 @@ export type SchemaMenuItemDestroyTargetSchema = {
|
|
|
3946
3992
|
data: SchemaMenuItem;
|
|
3947
3993
|
};
|
|
3948
3994
|
|
|
3995
|
+
/**
|
|
3996
|
+
* In DatoCMS you can organize the uploads present in your administrative area in collection, so that the final editors can easily navigate uploads.
|
|
3997
|
+
*
|
|
3998
|
+
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
3999
|
+
* via the `definition` "upload_collection".
|
|
4000
|
+
*/
|
|
4001
|
+
export type UploadCollection = {
|
|
4002
|
+
type: UploadCollectionType;
|
|
4003
|
+
id: UploadCollectionIdentity;
|
|
4004
|
+
attributes: UploadCollectionAttributes;
|
|
4005
|
+
relationships: UploadCollectionRelationships;
|
|
4006
|
+
};
|
|
4007
|
+
|
|
4008
|
+
/**
|
|
4009
|
+
* JSON API attributes
|
|
4010
|
+
*
|
|
4011
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
4012
|
+
* via the `definition` "attributes".
|
|
4013
|
+
*/
|
|
4014
|
+
export type UploadCollectionAttributes = {
|
|
4015
|
+
/**
|
|
4016
|
+
* The label of the upload collection
|
|
4017
|
+
*/
|
|
4018
|
+
label: string;
|
|
4019
|
+
/**
|
|
4020
|
+
* Ordering index
|
|
4021
|
+
*/
|
|
4022
|
+
position: number;
|
|
4023
|
+
};
|
|
4024
|
+
|
|
4025
|
+
/**
|
|
4026
|
+
* JSON API links
|
|
4027
|
+
*
|
|
4028
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
4029
|
+
* via the `definition` "relationships".
|
|
4030
|
+
*/
|
|
4031
|
+
export type UploadCollectionRelationships = {
|
|
4032
|
+
/**
|
|
4033
|
+
* Parent upload collection
|
|
4034
|
+
*/
|
|
4035
|
+
parent: {
|
|
4036
|
+
data: null | UploadCollectionData;
|
|
4037
|
+
};
|
|
4038
|
+
/**
|
|
4039
|
+
* Underlying upload collections
|
|
4040
|
+
*/
|
|
4041
|
+
children: {
|
|
4042
|
+
data: UploadCollectionData[];
|
|
4043
|
+
};
|
|
4044
|
+
};
|
|
4045
|
+
|
|
4046
|
+
/**
|
|
4047
|
+
* JSON API data
|
|
4048
|
+
*
|
|
4049
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
4050
|
+
* via the `definition` "data".
|
|
4051
|
+
*/
|
|
4052
|
+
export type UploadCollectionData = {
|
|
4053
|
+
type: UploadCollectionType;
|
|
4054
|
+
id: UploadCollectionIdentity;
|
|
4055
|
+
};
|
|
4056
|
+
|
|
4057
|
+
/**
|
|
4058
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
4059
|
+
* via the `create.schema` link.
|
|
4060
|
+
*/
|
|
4061
|
+
export type UploadCollectionCreateSchema = {
|
|
4062
|
+
data: {
|
|
4063
|
+
id?: UploadCollectionIdentity;
|
|
4064
|
+
type: UploadCollectionType;
|
|
4065
|
+
/**
|
|
4066
|
+
* JSON API attributes
|
|
4067
|
+
*/
|
|
4068
|
+
attributes: {
|
|
4069
|
+
/**
|
|
4070
|
+
* The label of the upload collection
|
|
4071
|
+
*/
|
|
4072
|
+
label: string;
|
|
4073
|
+
/**
|
|
4074
|
+
* Ordering index
|
|
4075
|
+
*/
|
|
4076
|
+
position?: number;
|
|
4077
|
+
};
|
|
4078
|
+
relationships?: {
|
|
4079
|
+
/**
|
|
4080
|
+
* Parent upload collection
|
|
4081
|
+
*/
|
|
4082
|
+
parent?: {
|
|
4083
|
+
data: null | UploadCollectionData;
|
|
4084
|
+
};
|
|
4085
|
+
};
|
|
4086
|
+
};
|
|
4087
|
+
};
|
|
4088
|
+
|
|
4089
|
+
/**
|
|
4090
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
4091
|
+
* via the `create.targetSchema` link.
|
|
4092
|
+
*/
|
|
4093
|
+
export type UploadCollectionCreateTargetSchema = {
|
|
4094
|
+
data: UploadCollection;
|
|
4095
|
+
};
|
|
4096
|
+
|
|
4097
|
+
/**
|
|
4098
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
4099
|
+
* via the `update.schema` link.
|
|
4100
|
+
*/
|
|
4101
|
+
export type UploadCollectionUpdateSchema = {
|
|
4102
|
+
data: {
|
|
4103
|
+
type: UploadCollectionType;
|
|
4104
|
+
id: UploadCollectionIdentity;
|
|
4105
|
+
/**
|
|
4106
|
+
* JSON API attributes
|
|
4107
|
+
*/
|
|
4108
|
+
attributes?: {
|
|
4109
|
+
/**
|
|
4110
|
+
* The label of the upload collection
|
|
4111
|
+
*/
|
|
4112
|
+
label?: string;
|
|
4113
|
+
/**
|
|
4114
|
+
* Ordering index
|
|
4115
|
+
*/
|
|
4116
|
+
position?: number;
|
|
4117
|
+
};
|
|
4118
|
+
relationships?: {
|
|
4119
|
+
/**
|
|
4120
|
+
* Parent upload collection
|
|
4121
|
+
*/
|
|
4122
|
+
parent?: {
|
|
4123
|
+
data: null | UploadCollectionData;
|
|
4124
|
+
};
|
|
4125
|
+
/**
|
|
4126
|
+
* Underlying upload collections
|
|
4127
|
+
*/
|
|
4128
|
+
children?: {
|
|
4129
|
+
data: UploadCollectionData[];
|
|
4130
|
+
};
|
|
4131
|
+
};
|
|
4132
|
+
};
|
|
4133
|
+
};
|
|
4134
|
+
|
|
4135
|
+
/**
|
|
4136
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
4137
|
+
* via the `update.targetSchema` link.
|
|
4138
|
+
*/
|
|
4139
|
+
export type UploadCollectionUpdateTargetSchema = {
|
|
4140
|
+
data: UploadCollection;
|
|
4141
|
+
};
|
|
4142
|
+
|
|
4143
|
+
/**
|
|
4144
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
4145
|
+
* via the `instances.targetSchema` link.
|
|
4146
|
+
*/
|
|
4147
|
+
export type UploadCollectionInstancesTargetSchema = {
|
|
4148
|
+
data: UploadCollection[];
|
|
4149
|
+
};
|
|
4150
|
+
|
|
4151
|
+
/**
|
|
4152
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
4153
|
+
* via the `self.targetSchema` link.
|
|
4154
|
+
*/
|
|
4155
|
+
export type UploadCollectionSelfTargetSchema = {
|
|
4156
|
+
data: UploadCollection;
|
|
4157
|
+
};
|
|
4158
|
+
|
|
4159
|
+
/**
|
|
4160
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
4161
|
+
* via the `destroy.targetSchema` link.
|
|
4162
|
+
*/
|
|
4163
|
+
export type UploadCollectionDestroyTargetSchema = {
|
|
4164
|
+
data: UploadCollection;
|
|
4165
|
+
};
|
|
4166
|
+
|
|
3949
4167
|
/**
|
|
3950
4168
|
* 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".
|
|
3951
4169
|
*
|
|
@@ -7971,6 +8189,12 @@ export type UploadAttributes = {
|
|
|
7971
8189
|
* via the `definition` "relationships".
|
|
7972
8190
|
*/
|
|
7973
8191
|
export type UploadRelationships = {
|
|
8192
|
+
/**
|
|
8193
|
+
* Upload collection to which the asset belongs
|
|
8194
|
+
*/
|
|
8195
|
+
upload_collection: {
|
|
8196
|
+
data: UploadCollectionData | null;
|
|
8197
|
+
};
|
|
7974
8198
|
/**
|
|
7975
8199
|
* The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
|
|
7976
8200
|
*/
|
|
@@ -8064,6 +8288,14 @@ export type UploadCreateSchema = {
|
|
|
8064
8288
|
tags?: string[];
|
|
8065
8289
|
[k: string]: unknown;
|
|
8066
8290
|
};
|
|
8291
|
+
relationships?: {
|
|
8292
|
+
/**
|
|
8293
|
+
* Upload collection to which the asset belongs
|
|
8294
|
+
*/
|
|
8295
|
+
upload_collection?: {
|
|
8296
|
+
data: UploadCollectionData | null;
|
|
8297
|
+
};
|
|
8298
|
+
};
|
|
8067
8299
|
};
|
|
8068
8300
|
};
|
|
8069
8301
|
|
|
@@ -8187,7 +8419,7 @@ export type UploadUpdateSchema = {
|
|
|
8187
8419
|
/**
|
|
8188
8420
|
* The entity (account/collaborator/access token) who created the asset. It must be an object with `type` (e.g. 'account') and `id` properties.
|
|
8189
8421
|
*/
|
|
8190
|
-
creator
|
|
8422
|
+
creator?: {
|
|
8191
8423
|
data:
|
|
8192
8424
|
| AccountData
|
|
8193
8425
|
| AccessTokenData
|
|
@@ -8195,6 +8427,12 @@ export type UploadUpdateSchema = {
|
|
|
8195
8427
|
| SsoUserData
|
|
8196
8428
|
| OrganizationData;
|
|
8197
8429
|
};
|
|
8430
|
+
/**
|
|
8431
|
+
* Upload collection to which the asset belongs
|
|
8432
|
+
*/
|
|
8433
|
+
upload_collection?: {
|
|
8434
|
+
data: UploadCollectionData | null;
|
|
8435
|
+
};
|
|
8198
8436
|
};
|
|
8199
8437
|
};
|
|
8200
8438
|
};
|
|
@@ -8326,6 +8564,50 @@ export type UploadBulkTagJobSchema = {
|
|
|
8326
8564
|
};
|
|
8327
8565
|
};
|
|
8328
8566
|
|
|
8567
|
+
/**
|
|
8568
|
+
* This interface was referenced by `Upload`'s JSON-Schema
|
|
8569
|
+
* via the `bulk_set_upload_collection.schema` link.
|
|
8570
|
+
*/
|
|
8571
|
+
export type UploadBulkSetUploadCollectionSchema = {
|
|
8572
|
+
data: {
|
|
8573
|
+
type: 'upload_bulk_set_upload_collection_operation';
|
|
8574
|
+
relationships: {
|
|
8575
|
+
/**
|
|
8576
|
+
* Asset collection to put uploads into
|
|
8577
|
+
*/
|
|
8578
|
+
upload_collection: {
|
|
8579
|
+
data: null | UploadCollectionData;
|
|
8580
|
+
};
|
|
8581
|
+
/**
|
|
8582
|
+
* Assets to assign to the collection
|
|
8583
|
+
*/
|
|
8584
|
+
uploads: {
|
|
8585
|
+
data: UploadData[];
|
|
8586
|
+
};
|
|
8587
|
+
};
|
|
8588
|
+
};
|
|
8589
|
+
};
|
|
8590
|
+
|
|
8591
|
+
/**
|
|
8592
|
+
* This interface was referenced by `Upload`'s JSON-Schema
|
|
8593
|
+
* via the `bulk_set_upload_collection.targetSchema` link.
|
|
8594
|
+
*/
|
|
8595
|
+
export type UploadBulkSetUploadCollectionTargetSchema = {
|
|
8596
|
+
data: Job;
|
|
8597
|
+
};
|
|
8598
|
+
|
|
8599
|
+
/**
|
|
8600
|
+
* This interface was referenced by `Upload`'s JSON-Schema
|
|
8601
|
+
* via the `bulk_set_upload_collection.jobSchema` link.
|
|
8602
|
+
*/
|
|
8603
|
+
export type UploadBulkSetUploadCollectionJobSchema = {
|
|
8604
|
+
data: unknown[];
|
|
8605
|
+
meta: {
|
|
8606
|
+
successful: number;
|
|
8607
|
+
failed: number;
|
|
8608
|
+
};
|
|
8609
|
+
};
|
|
8610
|
+
|
|
8329
8611
|
/**
|
|
8330
8612
|
* This interface was referenced by `Upload`'s JSON-Schema
|
|
8331
8613
|
* via the `bulk_destroy.schema` link.
|
|
@@ -9232,7 +9514,7 @@ export type WebhookDestroyTargetSchema = {
|
|
|
9232
9514
|
};
|
|
9233
9515
|
|
|
9234
9516
|
/**
|
|
9235
|
-
*
|
|
9517
|
+
* This represents a log entry in the webhooks activity list, detailing a specific webhook event along with its delivery attempt information.
|
|
9236
9518
|
*
|
|
9237
9519
|
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
9238
9520
|
* via the `definition` "webhook_call".
|
|
@@ -366,6 +366,40 @@ export type SchemaMenuItemInstancesHrefSchema = {
|
|
|
366
366
|
ids: string;
|
|
367
367
|
};
|
|
368
368
|
};
|
|
369
|
+
/**
|
|
370
|
+
* RFC 4122 UUID of upload collection expressed in URL-safe base64 format
|
|
371
|
+
*
|
|
372
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
373
|
+
* via the `definition` "identity".
|
|
374
|
+
*
|
|
375
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
376
|
+
* via the `definition` "id".
|
|
377
|
+
*/
|
|
378
|
+
export type UploadCollectionIdentity = string;
|
|
379
|
+
/**
|
|
380
|
+
* JSON API type field
|
|
381
|
+
*
|
|
382
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
383
|
+
* via the `definition` "type".
|
|
384
|
+
*/
|
|
385
|
+
export type UploadCollectionType = 'upload_collection';
|
|
386
|
+
/**
|
|
387
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
388
|
+
* via the `instances.targetSchema` link.
|
|
389
|
+
*/
|
|
390
|
+
export type UploadCollectionInstancesTargetSchema = UploadCollection[];
|
|
391
|
+
/**
|
|
392
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
393
|
+
* via the `instances.hrefSchema` link.
|
|
394
|
+
*/
|
|
395
|
+
export type UploadCollectionInstancesHrefSchema = {
|
|
396
|
+
filter?: {
|
|
397
|
+
/**
|
|
398
|
+
* IDs to fetch, comma separated
|
|
399
|
+
*/
|
|
400
|
+
ids: string;
|
|
401
|
+
};
|
|
402
|
+
};
|
|
369
403
|
/**
|
|
370
404
|
* This interface was referenced by `Item`'s JSON-Schema
|
|
371
405
|
* via the `definition` "type".
|
|
@@ -1045,6 +1079,11 @@ export type UploadReferencesHrefSchema = {
|
|
|
1045
1079
|
* via the `bulk_tag.jobSchema` link.
|
|
1046
1080
|
*/
|
|
1047
1081
|
export type UploadBulkTagJobSchema = unknown[];
|
|
1082
|
+
/**
|
|
1083
|
+
* This interface was referenced by `Upload`'s JSON-Schema
|
|
1084
|
+
* via the `bulk_set_upload_collection.jobSchema` link.
|
|
1085
|
+
*/
|
|
1086
|
+
export type UploadBulkSetUploadCollectionJobSchema = unknown[];
|
|
1048
1087
|
/**
|
|
1049
1088
|
* This interface was referenced by `Upload`'s JSON-Schema
|
|
1050
1089
|
* via the `bulk_destroy.jobSchema` link.
|
|
@@ -1753,6 +1792,7 @@ export type DatoApi = {
|
|
|
1753
1792
|
site_plan?: SitePlan;
|
|
1754
1793
|
menu_item?: MenuItem;
|
|
1755
1794
|
schema_menu_item?: SchemaMenuItem;
|
|
1795
|
+
upload_collection?: UploadCollection;
|
|
1756
1796
|
item_type?: ItemType;
|
|
1757
1797
|
field?: Field;
|
|
1758
1798
|
fieldset?: Fieldset;
|
|
@@ -1845,7 +1885,11 @@ export type Role = {
|
|
|
1845
1885
|
/**
|
|
1846
1886
|
* Can create/edit shared filters (both for models and the media area)
|
|
1847
1887
|
*/
|
|
1848
|
-
can_manage_shared_filters
|
|
1888
|
+
can_manage_shared_filters: boolean;
|
|
1889
|
+
/**
|
|
1890
|
+
* Can create/edit upload collections
|
|
1891
|
+
*/
|
|
1892
|
+
can_manage_upload_collections: boolean;
|
|
1849
1893
|
/**
|
|
1850
1894
|
* Can create/edit Build triggers
|
|
1851
1895
|
*/
|
|
@@ -2088,7 +2132,11 @@ export type RoleMeta = {
|
|
|
2088
2132
|
/**
|
|
2089
2133
|
* Can create/edit shared filters (both for models and the media area)
|
|
2090
2134
|
*/
|
|
2091
|
-
can_manage_shared_filters
|
|
2135
|
+
can_manage_shared_filters: boolean;
|
|
2136
|
+
/**
|
|
2137
|
+
* Can create/edit upload collections
|
|
2138
|
+
*/
|
|
2139
|
+
can_manage_upload_collections: boolean;
|
|
2092
2140
|
/**
|
|
2093
2141
|
* Can create/edit Build triggers
|
|
2094
2142
|
*/
|
|
@@ -2316,7 +2364,11 @@ export type RoleAttributes = {
|
|
|
2316
2364
|
/**
|
|
2317
2365
|
* Can create/edit shared filters (both for models and the media area)
|
|
2318
2366
|
*/
|
|
2319
|
-
can_manage_shared_filters
|
|
2367
|
+
can_manage_shared_filters: boolean;
|
|
2368
|
+
/**
|
|
2369
|
+
* Can create/edit upload collections
|
|
2370
|
+
*/
|
|
2371
|
+
can_manage_upload_collections: boolean;
|
|
2320
2372
|
/**
|
|
2321
2373
|
* Can create/edit Build triggers
|
|
2322
2374
|
*/
|
|
@@ -2553,6 +2605,10 @@ export type RoleCreateSchema = {
|
|
|
2553
2605
|
* Can create/edit shared filters (both for models and the media area)
|
|
2554
2606
|
*/
|
|
2555
2607
|
can_manage_shared_filters?: boolean;
|
|
2608
|
+
/**
|
|
2609
|
+
* Can create/edit upload collections
|
|
2610
|
+
*/
|
|
2611
|
+
can_manage_upload_collections?: boolean;
|
|
2556
2612
|
/**
|
|
2557
2613
|
* Can create/edit Build triggers
|
|
2558
2614
|
*/
|
|
@@ -2782,6 +2838,10 @@ export type RoleUpdateSchema = {
|
|
|
2782
2838
|
* Can create/edit shared filters (both for models and the media area)
|
|
2783
2839
|
*/
|
|
2784
2840
|
can_manage_shared_filters?: boolean;
|
|
2841
|
+
/**
|
|
2842
|
+
* Can create/edit upload collections
|
|
2843
|
+
*/
|
|
2844
|
+
can_manage_upload_collections?: boolean;
|
|
2785
2845
|
/**
|
|
2786
2846
|
* Can create/edit Build triggers
|
|
2787
2847
|
*/
|
|
@@ -4402,6 +4462,106 @@ export type SchemaMenuItemUpdateSchema = {
|
|
|
4402
4462
|
children?: SchemaMenuItemData[];
|
|
4403
4463
|
};
|
|
4404
4464
|
|
|
4465
|
+
/**
|
|
4466
|
+
* In DatoCMS you can organize the uploads present in your administrative area in collection, so that the final editors can easily navigate uploads.
|
|
4467
|
+
*
|
|
4468
|
+
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
4469
|
+
* via the `definition` "upload_collection".
|
|
4470
|
+
*/
|
|
4471
|
+
export type UploadCollection = {
|
|
4472
|
+
id: UploadCollectionIdentity;
|
|
4473
|
+
type: UploadCollectionType;
|
|
4474
|
+
/**
|
|
4475
|
+
* The label of the upload collection
|
|
4476
|
+
*/
|
|
4477
|
+
label: string;
|
|
4478
|
+
/**
|
|
4479
|
+
* Ordering index
|
|
4480
|
+
*/
|
|
4481
|
+
position: number;
|
|
4482
|
+
parent: null | UploadCollectionData;
|
|
4483
|
+
children: UploadCollectionData[];
|
|
4484
|
+
};
|
|
4485
|
+
export type UploadCollectionCreateTargetSchema = UploadCollection;
|
|
4486
|
+
export type UploadCollectionUpdateTargetSchema = UploadCollection;
|
|
4487
|
+
export type UploadCollectionSelfTargetSchema = UploadCollection;
|
|
4488
|
+
export type UploadCollectionDestroyTargetSchema = UploadCollection;
|
|
4489
|
+
/**
|
|
4490
|
+
* JSON API data
|
|
4491
|
+
*
|
|
4492
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
4493
|
+
* via the `definition` "data".
|
|
4494
|
+
*/
|
|
4495
|
+
export type UploadCollectionData = {
|
|
4496
|
+
type: UploadCollectionType;
|
|
4497
|
+
id: UploadCollectionIdentity;
|
|
4498
|
+
};
|
|
4499
|
+
|
|
4500
|
+
/**
|
|
4501
|
+
* JSON API attributes
|
|
4502
|
+
*
|
|
4503
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
4504
|
+
* via the `definition` "attributes".
|
|
4505
|
+
*/
|
|
4506
|
+
export type UploadCollectionAttributes = {
|
|
4507
|
+
/**
|
|
4508
|
+
* The label of the upload collection
|
|
4509
|
+
*/
|
|
4510
|
+
label: string;
|
|
4511
|
+
/**
|
|
4512
|
+
* Ordering index
|
|
4513
|
+
*/
|
|
4514
|
+
position: number;
|
|
4515
|
+
};
|
|
4516
|
+
|
|
4517
|
+
/**
|
|
4518
|
+
* JSON API links
|
|
4519
|
+
*
|
|
4520
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
4521
|
+
* via the `definition` "relationships".
|
|
4522
|
+
*/
|
|
4523
|
+
export type UploadCollectionRelationships = {
|
|
4524
|
+
parent: null | UploadCollectionData;
|
|
4525
|
+
children: UploadCollectionData[];
|
|
4526
|
+
};
|
|
4527
|
+
|
|
4528
|
+
/**
|
|
4529
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
4530
|
+
* via the `create.schema` link.
|
|
4531
|
+
*/
|
|
4532
|
+
export type UploadCollectionCreateSchema = {
|
|
4533
|
+
id?: UploadCollectionIdentity;
|
|
4534
|
+
type?: UploadCollectionType;
|
|
4535
|
+
/**
|
|
4536
|
+
* The label of the upload collection
|
|
4537
|
+
*/
|
|
4538
|
+
label: string;
|
|
4539
|
+
/**
|
|
4540
|
+
* Ordering index
|
|
4541
|
+
*/
|
|
4542
|
+
position?: number;
|
|
4543
|
+
parent?: null | UploadCollectionData;
|
|
4544
|
+
};
|
|
4545
|
+
|
|
4546
|
+
/**
|
|
4547
|
+
* This interface was referenced by `UploadCollection`'s JSON-Schema
|
|
4548
|
+
* via the `update.schema` link.
|
|
4549
|
+
*/
|
|
4550
|
+
export type UploadCollectionUpdateSchema = {
|
|
4551
|
+
id?: UploadCollectionIdentity;
|
|
4552
|
+
type?: UploadCollectionType;
|
|
4553
|
+
/**
|
|
4554
|
+
* The label of the upload collection
|
|
4555
|
+
*/
|
|
4556
|
+
label?: string;
|
|
4557
|
+
/**
|
|
4558
|
+
* Ordering index
|
|
4559
|
+
*/
|
|
4560
|
+
position?: number;
|
|
4561
|
+
parent?: null | UploadCollectionData;
|
|
4562
|
+
children?: UploadCollectionData[];
|
|
4563
|
+
};
|
|
4564
|
+
|
|
4405
4565
|
/**
|
|
4406
4566
|
* 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".
|
|
4407
4567
|
*
|
|
@@ -4864,6 +5024,9 @@ export type ItemTypeUpdateSchema = {
|
|
|
4864
5024
|
* via the `bulk_tag.targetSchema` link.
|
|
4865
5025
|
*
|
|
4866
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
|
|
4867
5030
|
* via the `bulk_destroy.targetSchema` link.
|
|
4868
5031
|
*
|
|
4869
5032
|
* This interface was referenced by `UploadTrack`'s JSON-Schema
|
|
@@ -4909,6 +5072,7 @@ export type UploadUpdateTargetSchema = Job;
|
|
|
4909
5072
|
export type UploadBatchAddTagsTargetSchema = Job;
|
|
4910
5073
|
export type UploadBatchDestroyTargetSchema = Job;
|
|
4911
5074
|
export type UploadBulkTagTargetSchema = Job;
|
|
5075
|
+
export type UploadBulkSetUploadCollectionTargetSchema = Job;
|
|
4912
5076
|
export type UploadBulkDestroyTargetSchema = Job;
|
|
4913
5077
|
export type UploadTrackCreateTargetSchema = Job;
|
|
4914
5078
|
export type UploadTrackDestroyTargetSchema = Job;
|
|
@@ -7763,6 +7927,7 @@ export type Upload = {
|
|
|
7763
7927
|
*/
|
|
7764
7928
|
alpha: number;
|
|
7765
7929
|
}[];
|
|
7930
|
+
upload_collection: UploadCollectionData | null;
|
|
7766
7931
|
creator:
|
|
7767
7932
|
| AccountData
|
|
7768
7933
|
| AccessTokenData
|
|
@@ -7962,6 +8127,7 @@ export type UploadAttributes = {
|
|
|
7962
8127
|
* via the `definition` "relationships".
|
|
7963
8128
|
*/
|
|
7964
8129
|
export type UploadRelationships = {
|
|
8130
|
+
upload_collection: UploadCollectionData | null;
|
|
7965
8131
|
creator:
|
|
7966
8132
|
| AccountData
|
|
7967
8133
|
| AccessTokenData
|
|
@@ -8035,6 +8201,7 @@ export type UploadCreateSchema = {
|
|
|
8035
8201
|
* Tags
|
|
8036
8202
|
*/
|
|
8037
8203
|
tags?: string[];
|
|
8204
|
+
upload_collection?: UploadCollectionData | null;
|
|
8038
8205
|
};
|
|
8039
8206
|
|
|
8040
8207
|
/**
|
|
@@ -8112,6 +8279,7 @@ export type UploadUpdateSchema = {
|
|
|
8112
8279
|
| UserData
|
|
8113
8280
|
| SsoUserData
|
|
8114
8281
|
| OrganizationData;
|
|
8282
|
+
upload_collection?: UploadCollectionData | null;
|
|
8115
8283
|
};
|
|
8116
8284
|
|
|
8117
8285
|
/**
|
|
@@ -8139,6 +8307,16 @@ export type UploadBulkTagSchema = {
|
|
|
8139
8307
|
uploads: UploadData[];
|
|
8140
8308
|
};
|
|
8141
8309
|
|
|
8310
|
+
/**
|
|
8311
|
+
* This interface was referenced by `Upload`'s JSON-Schema
|
|
8312
|
+
* via the `bulk_set_upload_collection.schema` link.
|
|
8313
|
+
*/
|
|
8314
|
+
export type UploadBulkSetUploadCollectionSchema = {
|
|
8315
|
+
type?: 'upload_bulk_set_upload_collection_operation';
|
|
8316
|
+
upload_collection: null | UploadCollectionData;
|
|
8317
|
+
uploads: UploadData[];
|
|
8318
|
+
};
|
|
8319
|
+
|
|
8142
8320
|
/**
|
|
8143
8321
|
* This interface was referenced by `Upload`'s JSON-Schema
|
|
8144
8322
|
* via the `bulk_destroy.schema` link.
|
|
@@ -9078,7 +9256,7 @@ export type WebhookUpdateSchema = {
|
|
|
9078
9256
|
};
|
|
9079
9257
|
|
|
9080
9258
|
/**
|
|
9081
|
-
*
|
|
9259
|
+
* This represents a log entry in the webhooks activity list, detailing a specific webhook event along with its delivery attempt information.
|
|
9082
9260
|
*
|
|
9083
9261
|
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
9084
9262
|
* via the `definition` "webhook_call".
|
|
@@ -29,6 +29,7 @@ export default class Role extends BaseResource {
|
|
|
29
29
|
'environments_access',
|
|
30
30
|
'can_manage_users',
|
|
31
31
|
'can_manage_shared_filters',
|
|
32
|
+
'can_manage_upload_collections',
|
|
32
33
|
'can_manage_build_triggers',
|
|
33
34
|
'can_manage_webhooks',
|
|
34
35
|
'can_manage_environments',
|
|
@@ -100,6 +101,7 @@ export default class Role extends BaseResource {
|
|
|
100
101
|
'environments_access',
|
|
101
102
|
'can_manage_users',
|
|
102
103
|
'can_manage_shared_filters',
|
|
104
|
+
'can_manage_upload_collections',
|
|
103
105
|
'can_manage_build_triggers',
|
|
104
106
|
'can_manage_webhooks',
|
|
105
107
|
'can_manage_environments',
|