@datocms/cma-client 0.1.6 → 1.0.1
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/resources/Site.js +25 -3
- package/dist/cjs/generated/resources/Site.js.map +1 -1
- package/dist/cjs/generated/resources/User.js +26 -3
- package/dist/cjs/generated/resources/User.js.map +1 -1
- package/dist/esm/buildBlockRecord.d.ts +1 -1
- package/dist/esm/generated/SchemaTypes.d.ts +1294 -413
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +1353 -501
- package/dist/esm/generated/resources/Site.d.ts +14 -2
- package/dist/esm/generated/resources/Site.js +25 -3
- package/dist/esm/generated/resources/Site.js.map +1 -1
- package/dist/esm/generated/resources/User.d.ts +14 -2
- package/dist/esm/generated/resources/User.js +26 -3
- package/dist/esm/generated/resources/User.js.map +1 -1
- package/dist/types/buildBlockRecord.d.ts +1 -1
- package/dist/types/generated/SchemaTypes.d.ts +1294 -413
- package/dist/types/generated/SimpleSchemaTypes.d.ts +1353 -501
- package/dist/types/generated/resources/Site.d.ts +14 -2
- package/dist/types/generated/resources/User.d.ts +14 -2
- package/package.json +6 -5
- package/resources.json +1278 -0
- package/src/generated/SchemaTypes.ts +1311 -426
- package/src/generated/SimpleSchemaTypes.ts +1352 -499
- package/src/generated/resources/Site.ts +33 -3
- package/src/generated/resources/User.ts +36 -3
- package/dist/cjs/generated/schemaInfo.js +0 -3093
- package/dist/cjs/generated/schemaInfo.js.map +0 -1
- package/dist/esm/generated/schemaInfo.d.ts +0 -940
- package/dist/esm/generated/schemaInfo.js +0 -3091
- package/dist/esm/generated/schemaInfo.js.map +0 -1
- package/dist/types/generated/schemaInfo.d.ts +0 -940
- package/src/generated/schemaInfo.ts +0 -3263
|
@@ -77,17 +77,13 @@ export declare type UserType = 'user';
|
|
|
77
77
|
export declare type UserIdentity = string;
|
|
78
78
|
/**
|
|
79
79
|
* This interface was referenced by `User`'s JSON-Schema
|
|
80
|
-
* via the `
|
|
80
|
+
* via the `self.hrefSchema` link.
|
|
81
81
|
*/
|
|
82
|
-
export declare type
|
|
83
|
-
/**
|
|
84
|
-
* New owner for resources previously owned by the deleted user. This argument specifies the new owner type.
|
|
85
|
-
*/
|
|
86
|
-
destination_user_type?: 'account' | 'user' | 'access_token' | 'sso_user';
|
|
82
|
+
export declare type UserSelfHrefSchema = {
|
|
87
83
|
/**
|
|
88
|
-
*
|
|
84
|
+
* Comma-separated list of [relationship paths](https://jsonapi.org/format/#fetching-includes). A relationship path is a dot-separated list of relationship names. Allowed relationship paths: `role`.
|
|
89
85
|
*/
|
|
90
|
-
|
|
86
|
+
include?: string;
|
|
91
87
|
[k: string]: unknown;
|
|
92
88
|
};
|
|
93
89
|
/**
|
|
@@ -142,20 +138,35 @@ export declare type SsoUserDestroyHrefSchema = {
|
|
|
142
138
|
/**
|
|
143
139
|
* JSON API type field
|
|
144
140
|
*
|
|
145
|
-
* This interface was referenced by `
|
|
141
|
+
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
146
142
|
* via the `definition` "type".
|
|
147
143
|
*/
|
|
148
|
-
export declare type
|
|
144
|
+
export declare type AccessTokenType = 'access_token';
|
|
149
145
|
/**
|
|
150
|
-
*
|
|
146
|
+
* ID of access_token
|
|
151
147
|
*
|
|
152
|
-
* This interface was referenced by `
|
|
148
|
+
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
153
149
|
* via the `definition` "identity".
|
|
154
150
|
*
|
|
155
|
-
* This interface was referenced by `
|
|
151
|
+
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
156
152
|
* via the `definition` "id".
|
|
157
153
|
*/
|
|
158
|
-
export declare type
|
|
154
|
+
export declare type AccessTokenIdentity = string;
|
|
155
|
+
/**
|
|
156
|
+
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
157
|
+
* via the `destroy.hrefSchema` link.
|
|
158
|
+
*/
|
|
159
|
+
export declare type AccessTokenDestroyHrefSchema = {
|
|
160
|
+
/**
|
|
161
|
+
* New owner for resources previously owned by the deleted access token. This argument specifies the new owner type.
|
|
162
|
+
*/
|
|
163
|
+
destination_user_type?: 'account' | 'user' | 'access_token' | 'sso_user';
|
|
164
|
+
/**
|
|
165
|
+
* New owner for resources previously owned by the deleted access token. This argument specifies the new owner ID.
|
|
166
|
+
*/
|
|
167
|
+
destination_user_id?: string;
|
|
168
|
+
[k: string]: unknown;
|
|
169
|
+
};
|
|
159
170
|
/**
|
|
160
171
|
* JSON API type field
|
|
161
172
|
*
|
|
@@ -173,6 +184,49 @@ export declare type AccountType = 'account';
|
|
|
173
184
|
* via the `definition` "id".
|
|
174
185
|
*/
|
|
175
186
|
export declare type AccountIdentity = string;
|
|
187
|
+
/**
|
|
188
|
+
* This interface was referenced by `User`'s JSON-Schema
|
|
189
|
+
* via the `me.hrefSchema` link.
|
|
190
|
+
*/
|
|
191
|
+
export declare type UserMeHrefSchema = {
|
|
192
|
+
/**
|
|
193
|
+
* Comma-separated list of [relationship paths](https://jsonapi.org/format/#fetching-includes). A relationship path is a dot-separated list of relationship names. Allowed relationship paths: `role`.
|
|
194
|
+
*/
|
|
195
|
+
include?: string;
|
|
196
|
+
[k: string]: unknown;
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* This interface was referenced by `User`'s JSON-Schema
|
|
200
|
+
* via the `destroy.hrefSchema` link.
|
|
201
|
+
*/
|
|
202
|
+
export declare type UserDestroyHrefSchema = {
|
|
203
|
+
/**
|
|
204
|
+
* New owner for resources previously owned by the deleted user. This argument specifies the new owner type.
|
|
205
|
+
*/
|
|
206
|
+
destination_user_type?: 'account' | 'user' | 'access_token' | 'sso_user';
|
|
207
|
+
/**
|
|
208
|
+
* New owner for resources previously owned by the deleted user. This argument specifies the new owner ID.
|
|
209
|
+
*/
|
|
210
|
+
destination_user_id?: string;
|
|
211
|
+
[k: string]: unknown;
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* JSON API type field
|
|
215
|
+
*
|
|
216
|
+
* This interface was referenced by `AuditLogEvent`'s JSON-Schema
|
|
217
|
+
* via the `definition` "type".
|
|
218
|
+
*/
|
|
219
|
+
export declare type AuditLogEventType = 'audit_log_event';
|
|
220
|
+
/**
|
|
221
|
+
* ULID of event (https://github.com/ulid/spec)
|
|
222
|
+
*
|
|
223
|
+
* This interface was referenced by `AuditLogEvent`'s JSON-Schema
|
|
224
|
+
* via the `definition` "identity".
|
|
225
|
+
*
|
|
226
|
+
* This interface was referenced by `AuditLogEvent`'s JSON-Schema
|
|
227
|
+
* via the `definition` "id".
|
|
228
|
+
*/
|
|
229
|
+
export declare type AuditLogEventIdentity = string;
|
|
176
230
|
/**
|
|
177
231
|
* JSON API type field
|
|
178
232
|
*
|
|
@@ -260,6 +314,23 @@ export declare type FieldType = 'field';
|
|
|
260
314
|
* via the `definition` "id".
|
|
261
315
|
*/
|
|
262
316
|
export declare type FieldIdentity = string;
|
|
317
|
+
/**
|
|
318
|
+
* JSON API type fieldset
|
|
319
|
+
*
|
|
320
|
+
* This interface was referenced by `Fieldset`'s JSON-Schema
|
|
321
|
+
* via the `definition` "type".
|
|
322
|
+
*/
|
|
323
|
+
export declare type FieldsetType = 'fieldset';
|
|
324
|
+
/**
|
|
325
|
+
* ID of fieldset
|
|
326
|
+
*
|
|
327
|
+
* This interface was referenced by `Fieldset`'s JSON-Schema
|
|
328
|
+
* via the `definition` "identity".
|
|
329
|
+
*
|
|
330
|
+
* This interface was referenced by `Fieldset`'s JSON-Schema
|
|
331
|
+
* via the `definition` "id".
|
|
332
|
+
*/
|
|
333
|
+
export declare type FieldsetIdentity = string;
|
|
263
334
|
/**
|
|
264
335
|
* JSON API type field
|
|
265
336
|
*
|
|
@@ -284,23 +355,6 @@ export declare type JobType = 'job';
|
|
|
284
355
|
* via the `definition` "id".
|
|
285
356
|
*/
|
|
286
357
|
export declare type JobIdentity = string;
|
|
287
|
-
/**
|
|
288
|
-
* JSON API type fieldset
|
|
289
|
-
*
|
|
290
|
-
* This interface was referenced by `Fieldset`'s JSON-Schema
|
|
291
|
-
* via the `definition` "type".
|
|
292
|
-
*/
|
|
293
|
-
export declare type FieldsetType = 'fieldset';
|
|
294
|
-
/**
|
|
295
|
-
* ID of fieldset
|
|
296
|
-
*
|
|
297
|
-
* This interface was referenced by `Fieldset`'s JSON-Schema
|
|
298
|
-
* via the `definition` "identity".
|
|
299
|
-
*
|
|
300
|
-
* This interface was referenced by `Fieldset`'s JSON-Schema
|
|
301
|
-
* via the `definition` "id".
|
|
302
|
-
*/
|
|
303
|
-
export declare type FieldsetIdentity = string;
|
|
304
358
|
/**
|
|
305
359
|
* JSON API type field
|
|
306
360
|
*
|
|
@@ -318,38 +372,6 @@ export declare type SessionType = 'session';
|
|
|
318
372
|
* via the `definition` "id".
|
|
319
373
|
*/
|
|
320
374
|
export declare type SessionIdentity = string;
|
|
321
|
-
/**
|
|
322
|
-
* JSON API type field
|
|
323
|
-
*
|
|
324
|
-
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
325
|
-
* via the `definition` "type".
|
|
326
|
-
*/
|
|
327
|
-
export declare type AccessTokenType = 'access_token';
|
|
328
|
-
/**
|
|
329
|
-
* ID of access_token
|
|
330
|
-
*
|
|
331
|
-
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
332
|
-
* via the `definition` "identity".
|
|
333
|
-
*
|
|
334
|
-
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
335
|
-
* via the `definition` "id".
|
|
336
|
-
*/
|
|
337
|
-
export declare type AccessTokenIdentity = string;
|
|
338
|
-
/**
|
|
339
|
-
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
340
|
-
* via the `destroy.hrefSchema` link.
|
|
341
|
-
*/
|
|
342
|
-
export declare type AccessTokenDestroyHrefSchema = {
|
|
343
|
-
/**
|
|
344
|
-
* New owner for resources previously owned by the deleted access token. This argument specifies the new owner type.
|
|
345
|
-
*/
|
|
346
|
-
destination_user_type?: 'account' | 'user' | 'access_token' | 'sso_user';
|
|
347
|
-
/**
|
|
348
|
-
* New owner for resources previously owned by the deleted access token. This argument specifies the new owner ID.
|
|
349
|
-
*/
|
|
350
|
-
destination_user_id?: string;
|
|
351
|
-
[k: string]: unknown;
|
|
352
|
-
};
|
|
353
375
|
/**
|
|
354
376
|
* JSON API type field
|
|
355
377
|
*
|
|
@@ -1191,6 +1213,17 @@ export declare type SiteType = 'site';
|
|
|
1191
1213
|
* via the `definition` "id".
|
|
1192
1214
|
*/
|
|
1193
1215
|
export declare type SiteIdentity = string;
|
|
1216
|
+
/**
|
|
1217
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
1218
|
+
* via the `self.hrefSchema` link.
|
|
1219
|
+
*/
|
|
1220
|
+
export declare type SiteSelfHrefSchema = {
|
|
1221
|
+
/**
|
|
1222
|
+
* Comma-separated list of [relationship paths](https://jsonapi.org/format/#fetching-includes). A relationship path is a dot-separated list of relationship names. Allowed relationship paths: `item_types`, `item_types.fields`, `item_types.fieldsets`, `item_types.singleton_item`, `account`.
|
|
1223
|
+
*/
|
|
1224
|
+
include?: string;
|
|
1225
|
+
[k: string]: unknown;
|
|
1226
|
+
};
|
|
1194
1227
|
export declare type DatoApi = {
|
|
1195
1228
|
role?: Role;
|
|
1196
1229
|
user?: User;
|
|
@@ -2233,13 +2266,15 @@ export declare type UserInstancesTargetSchema = {
|
|
|
2233
2266
|
*/
|
|
2234
2267
|
export declare type UserSelfTargetSchema = {
|
|
2235
2268
|
data: User;
|
|
2269
|
+
included?: Role[];
|
|
2236
2270
|
};
|
|
2237
2271
|
/**
|
|
2238
2272
|
* This interface was referenced by `User`'s JSON-Schema
|
|
2239
|
-
* via the `
|
|
2273
|
+
* via the `me.targetSchema` link.
|
|
2240
2274
|
*/
|
|
2241
|
-
export declare type
|
|
2242
|
-
data: User;
|
|
2275
|
+
export declare type UserMeTargetSchema = {
|
|
2276
|
+
data: User | SsoUser | AccessToken | Account;
|
|
2277
|
+
included?: Role[];
|
|
2243
2278
|
};
|
|
2244
2279
|
/**
|
|
2245
2280
|
* A Single Sign-On user exists when a DatoCMS project is connected to an external Identity Provider. An SSO user will not use the standard login procedure but has to go through SAML authentication. It can also be linked to one or more IdP groups.
|
|
@@ -2363,171 +2398,183 @@ export declare type SsoUserDestroyTargetSchema = {
|
|
|
2363
2398
|
data: SsoUser;
|
|
2364
2399
|
};
|
|
2365
2400
|
/**
|
|
2366
|
-
*
|
|
2401
|
+
* An API token allows access to our API. It is linked to a Role, which describes what actions can be performed.
|
|
2367
2402
|
*
|
|
2368
2403
|
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
2369
|
-
* via the `definition` "
|
|
2404
|
+
* via the `definition` "access_token".
|
|
2370
2405
|
*/
|
|
2371
|
-
export declare type
|
|
2372
|
-
type:
|
|
2373
|
-
id:
|
|
2374
|
-
attributes:
|
|
2375
|
-
|
|
2406
|
+
export declare type AccessToken = {
|
|
2407
|
+
type: AccessTokenType;
|
|
2408
|
+
id: AccessTokenIdentity;
|
|
2409
|
+
attributes: AccessTokenAttributes;
|
|
2410
|
+
relationships: AccessTokenRelationships;
|
|
2376
2411
|
};
|
|
2377
2412
|
/**
|
|
2378
2413
|
* JSON API attributes
|
|
2379
2414
|
*
|
|
2380
|
-
* This interface was referenced by `
|
|
2415
|
+
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
2381
2416
|
* via the `definition` "attributes".
|
|
2382
2417
|
*/
|
|
2383
|
-
export declare type
|
|
2384
|
-
/**
|
|
2385
|
-
* The actual action performed
|
|
2386
|
-
*/
|
|
2387
|
-
action_name: string;
|
|
2418
|
+
export declare type AccessTokenAttributes = {
|
|
2388
2419
|
/**
|
|
2389
|
-
*
|
|
2420
|
+
* Name of API token
|
|
2390
2421
|
*/
|
|
2391
|
-
|
|
2392
|
-
/**
|
|
2393
|
-
* The type of actor (can be `account`, `user`, `sso_user` or `access_token`)
|
|
2394
|
-
*/
|
|
2395
|
-
type: string;
|
|
2396
|
-
/**
|
|
2397
|
-
* The ID of the actor
|
|
2398
|
-
*/
|
|
2399
|
-
id: string;
|
|
2400
|
-
/**
|
|
2401
|
-
* An human representation of the actor (name/email/username depending on the type of actor)
|
|
2402
|
-
*/
|
|
2403
|
-
name: string;
|
|
2404
|
-
};
|
|
2422
|
+
name: string;
|
|
2405
2423
|
/**
|
|
2406
|
-
* The
|
|
2424
|
+
* The actual API token (or null if the current user has no permission to read the token)
|
|
2407
2425
|
*/
|
|
2408
|
-
|
|
2409
|
-
/**
|
|
2410
|
-
* The name of the role
|
|
2411
|
-
*/
|
|
2412
|
-
name: string;
|
|
2413
|
-
/**
|
|
2414
|
-
* The ID of the role
|
|
2415
|
-
*/
|
|
2416
|
-
id: string;
|
|
2417
|
-
};
|
|
2426
|
+
token?: null | string;
|
|
2418
2427
|
/**
|
|
2419
|
-
*
|
|
2428
|
+
* Whether this API token can access the Content Delivery API published content endpoint
|
|
2420
2429
|
*/
|
|
2421
|
-
|
|
2422
|
-
/**
|
|
2423
|
-
* The ID of the environment
|
|
2424
|
-
*/
|
|
2425
|
-
id: string;
|
|
2426
|
-
/**
|
|
2427
|
-
* Whether the environment was the primary one at the time the action was performed
|
|
2428
|
-
*/
|
|
2429
|
-
primary: boolean;
|
|
2430
|
-
};
|
|
2430
|
+
can_access_cda: boolean;
|
|
2431
2431
|
/**
|
|
2432
|
-
*
|
|
2432
|
+
* Whether this API token can access the Content Delivery API draft content endpoint
|
|
2433
2433
|
*/
|
|
2434
|
-
|
|
2435
|
-
/**
|
|
2436
|
-
* The full path of the request
|
|
2437
|
-
*/
|
|
2438
|
-
path: string;
|
|
2439
|
-
/**
|
|
2440
|
-
* The HTTP method of the request
|
|
2441
|
-
*/
|
|
2442
|
-
method: string;
|
|
2443
|
-
/**
|
|
2444
|
-
* The X-Request-ID header of the request
|
|
2445
|
-
*/
|
|
2446
|
-
id?: string;
|
|
2447
|
-
/**
|
|
2448
|
-
* The full HTTP body of the request
|
|
2449
|
-
*/
|
|
2450
|
-
payload?: null | {
|
|
2451
|
-
[k: string]: unknown;
|
|
2452
|
-
};
|
|
2453
|
-
};
|
|
2434
|
+
can_access_cda_preview: boolean;
|
|
2454
2435
|
/**
|
|
2455
|
-
*
|
|
2436
|
+
* Whether this API token can access the Content Management API
|
|
2456
2437
|
*/
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
* The HTTP status code of the response
|
|
2460
|
-
*/
|
|
2461
|
-
status: number;
|
|
2462
|
-
/**
|
|
2463
|
-
* The full HTTP body of the response
|
|
2464
|
-
*/
|
|
2465
|
-
payload: {
|
|
2466
|
-
[k: string]: unknown;
|
|
2467
|
-
};
|
|
2468
|
-
};
|
|
2438
|
+
can_access_cma: boolean;
|
|
2439
|
+
hardcoded_type: null | string;
|
|
2469
2440
|
};
|
|
2470
2441
|
/**
|
|
2471
|
-
* JSON API
|
|
2442
|
+
* JSON API links
|
|
2472
2443
|
*
|
|
2473
|
-
* This interface was referenced by `
|
|
2474
|
-
* via the `definition` "
|
|
2444
|
+
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
2445
|
+
* via the `definition` "relationships".
|
|
2475
2446
|
*/
|
|
2476
|
-
export declare type
|
|
2447
|
+
export declare type AccessTokenRelationships = {
|
|
2477
2448
|
/**
|
|
2478
|
-
*
|
|
2449
|
+
* Role
|
|
2479
2450
|
*/
|
|
2480
|
-
|
|
2451
|
+
role: {
|
|
2452
|
+
data: RoleData | null;
|
|
2453
|
+
};
|
|
2481
2454
|
};
|
|
2482
2455
|
/**
|
|
2483
2456
|
* JSON API data
|
|
2484
2457
|
*
|
|
2485
|
-
* This interface was referenced by `
|
|
2458
|
+
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
2486
2459
|
* via the `definition` "data".
|
|
2487
2460
|
*/
|
|
2488
|
-
export declare type
|
|
2489
|
-
type:
|
|
2490
|
-
id:
|
|
2461
|
+
export declare type AccessTokenData = {
|
|
2462
|
+
type: AccessTokenType;
|
|
2463
|
+
id: AccessTokenIdentity;
|
|
2491
2464
|
};
|
|
2492
2465
|
/**
|
|
2493
|
-
* This interface was referenced by `
|
|
2494
|
-
* via the `
|
|
2466
|
+
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
2467
|
+
* via the `create.schema` link.
|
|
2495
2468
|
*/
|
|
2496
|
-
export declare type
|
|
2469
|
+
export declare type AccessTokenCreateSchema = {
|
|
2497
2470
|
data: {
|
|
2498
|
-
|
|
2499
|
-
* JSON API type field
|
|
2500
|
-
*/
|
|
2501
|
-
type: 'audit_log_query';
|
|
2471
|
+
type: AccessTokenType;
|
|
2502
2472
|
attributes: {
|
|
2503
2473
|
/**
|
|
2504
|
-
*
|
|
2474
|
+
* Name of API token
|
|
2505
2475
|
*/
|
|
2506
|
-
|
|
2476
|
+
name: string;
|
|
2507
2477
|
/**
|
|
2508
|
-
*
|
|
2478
|
+
* Whether this API token can access the Content Delivery API published content endpoint
|
|
2509
2479
|
*/
|
|
2510
|
-
|
|
2480
|
+
can_access_cda: boolean;
|
|
2511
2481
|
/**
|
|
2512
|
-
* Whether
|
|
2482
|
+
* Whether this API token can access the Content Delivery API draft content endpoint
|
|
2513
2483
|
*/
|
|
2514
|
-
|
|
2484
|
+
can_access_cda_preview: boolean;
|
|
2485
|
+
/**
|
|
2486
|
+
* Whether this API token can access the Content Management API
|
|
2487
|
+
*/
|
|
2488
|
+
can_access_cma: boolean;
|
|
2489
|
+
};
|
|
2490
|
+
relationships: {
|
|
2491
|
+
/**
|
|
2492
|
+
* Role
|
|
2493
|
+
*/
|
|
2494
|
+
role: {
|
|
2495
|
+
data: RoleData | null;
|
|
2496
|
+
};
|
|
2515
2497
|
};
|
|
2516
2498
|
};
|
|
2517
2499
|
};
|
|
2518
2500
|
/**
|
|
2519
|
-
* This interface was referenced by `
|
|
2520
|
-
* via the `
|
|
2501
|
+
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
2502
|
+
* via the `create.targetSchema` link.
|
|
2521
2503
|
*/
|
|
2522
|
-
export declare type
|
|
2523
|
-
data:
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2504
|
+
export declare type AccessTokenCreateTargetSchema = {
|
|
2505
|
+
data: AccessToken;
|
|
2506
|
+
};
|
|
2507
|
+
/**
|
|
2508
|
+
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
2509
|
+
* via the `update.schema` link.
|
|
2510
|
+
*/
|
|
2511
|
+
export declare type AccessTokenUpdateSchema = {
|
|
2512
|
+
data: {
|
|
2513
|
+
type: AccessTokenType;
|
|
2514
|
+
id: AccessTokenIdentity;
|
|
2515
|
+
attributes: {
|
|
2516
|
+
/**
|
|
2517
|
+
* Name of API token
|
|
2518
|
+
*/
|
|
2519
|
+
name: string;
|
|
2520
|
+
/**
|
|
2521
|
+
* Whether this API token can access the Content Delivery API published content endpoint
|
|
2522
|
+
*/
|
|
2523
|
+
can_access_cda: boolean;
|
|
2524
|
+
/**
|
|
2525
|
+
* Whether this API token can access the Content Delivery API draft content endpoint
|
|
2526
|
+
*/
|
|
2527
|
+
can_access_cda_preview: boolean;
|
|
2528
|
+
/**
|
|
2529
|
+
* Whether this API token can access the Content Management API
|
|
2530
|
+
*/
|
|
2531
|
+
can_access_cma: boolean;
|
|
2532
|
+
};
|
|
2533
|
+
relationships: {
|
|
2534
|
+
/**
|
|
2535
|
+
* Role
|
|
2536
|
+
*/
|
|
2537
|
+
role: {
|
|
2538
|
+
data: RoleData | null;
|
|
2539
|
+
};
|
|
2540
|
+
};
|
|
2529
2541
|
};
|
|
2530
2542
|
};
|
|
2543
|
+
/**
|
|
2544
|
+
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
2545
|
+
* via the `update.targetSchema` link.
|
|
2546
|
+
*/
|
|
2547
|
+
export declare type AccessTokenUpdateTargetSchema = {
|
|
2548
|
+
data: AccessToken;
|
|
2549
|
+
};
|
|
2550
|
+
/**
|
|
2551
|
+
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
2552
|
+
* via the `instances.targetSchema` link.
|
|
2553
|
+
*/
|
|
2554
|
+
export declare type AccessTokenInstancesTargetSchema = {
|
|
2555
|
+
data: AccessToken[];
|
|
2556
|
+
};
|
|
2557
|
+
/**
|
|
2558
|
+
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
2559
|
+
* via the `self.targetSchema` link.
|
|
2560
|
+
*/
|
|
2561
|
+
export declare type AccessTokenSelfTargetSchema = {
|
|
2562
|
+
data: AccessToken;
|
|
2563
|
+
};
|
|
2564
|
+
/**
|
|
2565
|
+
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
2566
|
+
* via the `regenerate_token.targetSchema` link.
|
|
2567
|
+
*/
|
|
2568
|
+
export declare type AccessTokenRegenerateTokenTargetSchema = {
|
|
2569
|
+
data: AccessToken;
|
|
2570
|
+
};
|
|
2571
|
+
/**
|
|
2572
|
+
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
2573
|
+
* via the `destroy.targetSchema` link.
|
|
2574
|
+
*/
|
|
2575
|
+
export declare type AccessTokenDestroyTargetSchema = {
|
|
2576
|
+
data: AccessToken;
|
|
2577
|
+
};
|
|
2531
2578
|
/**
|
|
2532
2579
|
* DatoCMS account
|
|
2533
2580
|
*
|
|
@@ -2577,6 +2624,179 @@ export declare type AccountData = {
|
|
|
2577
2624
|
type: AccountType;
|
|
2578
2625
|
id: AccountIdentity;
|
|
2579
2626
|
};
|
|
2627
|
+
/**
|
|
2628
|
+
* This interface was referenced by `User`'s JSON-Schema
|
|
2629
|
+
* via the `destroy.targetSchema` link.
|
|
2630
|
+
*/
|
|
2631
|
+
export declare type UserDestroyTargetSchema = {
|
|
2632
|
+
data: User;
|
|
2633
|
+
};
|
|
2634
|
+
/**
|
|
2635
|
+
* If the Audit log functionality is enabled in a project, logged events can be queried using SQL-like language and fetched in full detail so that they can be exported or analyzed.
|
|
2636
|
+
*
|
|
2637
|
+
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
2638
|
+
* via the `definition` "audit_log_event".
|
|
2639
|
+
*/
|
|
2640
|
+
export declare type AuditLogEvent = {
|
|
2641
|
+
type: AuditLogEventType;
|
|
2642
|
+
id: AuditLogEventIdentity;
|
|
2643
|
+
attributes: AuditLogEventAttributes;
|
|
2644
|
+
meta: AuditLogEventMeta;
|
|
2645
|
+
};
|
|
2646
|
+
/**
|
|
2647
|
+
* JSON API attributes
|
|
2648
|
+
*
|
|
2649
|
+
* This interface was referenced by `AuditLogEvent`'s JSON-Schema
|
|
2650
|
+
* via the `definition` "attributes".
|
|
2651
|
+
*/
|
|
2652
|
+
export declare type AuditLogEventAttributes = {
|
|
2653
|
+
/**
|
|
2654
|
+
* The actual action performed
|
|
2655
|
+
*/
|
|
2656
|
+
action_name: string;
|
|
2657
|
+
/**
|
|
2658
|
+
* The actor who performed the action
|
|
2659
|
+
*/
|
|
2660
|
+
actor: {
|
|
2661
|
+
/**
|
|
2662
|
+
* The type of actor (can be `account`, `user`, `sso_user` or `access_token`)
|
|
2663
|
+
*/
|
|
2664
|
+
type: string;
|
|
2665
|
+
/**
|
|
2666
|
+
* The ID of the actor
|
|
2667
|
+
*/
|
|
2668
|
+
id: string;
|
|
2669
|
+
/**
|
|
2670
|
+
* An human representation of the actor (name/email/username depending on the type of actor)
|
|
2671
|
+
*/
|
|
2672
|
+
name: string;
|
|
2673
|
+
};
|
|
2674
|
+
/**
|
|
2675
|
+
* The role of the actor at the time the action was performed
|
|
2676
|
+
*/
|
|
2677
|
+
role: null | {
|
|
2678
|
+
/**
|
|
2679
|
+
* The name of the role
|
|
2680
|
+
*/
|
|
2681
|
+
name: string;
|
|
2682
|
+
/**
|
|
2683
|
+
* The ID of the role
|
|
2684
|
+
*/
|
|
2685
|
+
id: string;
|
|
2686
|
+
};
|
|
2687
|
+
/**
|
|
2688
|
+
* The environment inside of which the action was performed
|
|
2689
|
+
*/
|
|
2690
|
+
environment: {
|
|
2691
|
+
/**
|
|
2692
|
+
* The ID of the environment
|
|
2693
|
+
*/
|
|
2694
|
+
id: string;
|
|
2695
|
+
/**
|
|
2696
|
+
* Whether the environment was the primary one at the time the action was performed
|
|
2697
|
+
*/
|
|
2698
|
+
primary: boolean;
|
|
2699
|
+
};
|
|
2700
|
+
/**
|
|
2701
|
+
* The actual request being performed
|
|
2702
|
+
*/
|
|
2703
|
+
request: {
|
|
2704
|
+
/**
|
|
2705
|
+
* The full path of the request
|
|
2706
|
+
*/
|
|
2707
|
+
path: string;
|
|
2708
|
+
/**
|
|
2709
|
+
* The HTTP method of the request
|
|
2710
|
+
*/
|
|
2711
|
+
method: string;
|
|
2712
|
+
/**
|
|
2713
|
+
* The X-Request-ID header of the request
|
|
2714
|
+
*/
|
|
2715
|
+
id?: string;
|
|
2716
|
+
/**
|
|
2717
|
+
* The full HTTP body of the request
|
|
2718
|
+
*/
|
|
2719
|
+
payload?: null | {
|
|
2720
|
+
[k: string]: unknown;
|
|
2721
|
+
};
|
|
2722
|
+
};
|
|
2723
|
+
/**
|
|
2724
|
+
* The actual response being returned by DatoCMS
|
|
2725
|
+
*/
|
|
2726
|
+
response: null | {
|
|
2727
|
+
/**
|
|
2728
|
+
* The HTTP status code of the response
|
|
2729
|
+
*/
|
|
2730
|
+
status: number;
|
|
2731
|
+
/**
|
|
2732
|
+
* The full HTTP body of the response
|
|
2733
|
+
*/
|
|
2734
|
+
payload: {
|
|
2735
|
+
[k: string]: unknown;
|
|
2736
|
+
};
|
|
2737
|
+
};
|
|
2738
|
+
};
|
|
2739
|
+
/**
|
|
2740
|
+
* JSON API meta
|
|
2741
|
+
*
|
|
2742
|
+
* This interface was referenced by `AuditLogEvent`'s JSON-Schema
|
|
2743
|
+
* via the `definition` "meta".
|
|
2744
|
+
*/
|
|
2745
|
+
export declare type AuditLogEventMeta = {
|
|
2746
|
+
/**
|
|
2747
|
+
* The date of the event
|
|
2748
|
+
*/
|
|
2749
|
+
occurred_at: string;
|
|
2750
|
+
};
|
|
2751
|
+
/**
|
|
2752
|
+
* JSON API data
|
|
2753
|
+
*
|
|
2754
|
+
* This interface was referenced by `AuditLogEvent`'s JSON-Schema
|
|
2755
|
+
* via the `definition` "data".
|
|
2756
|
+
*/
|
|
2757
|
+
export declare type AuditLogEventData = {
|
|
2758
|
+
type: AuditLogEventType;
|
|
2759
|
+
id: AuditLogEventIdentity;
|
|
2760
|
+
};
|
|
2761
|
+
/**
|
|
2762
|
+
* This interface was referenced by `AuditLogEvent`'s JSON-Schema
|
|
2763
|
+
* via the `query.schema` link.
|
|
2764
|
+
*/
|
|
2765
|
+
export declare type AuditLogEventQuerySchema = {
|
|
2766
|
+
data: {
|
|
2767
|
+
/**
|
|
2768
|
+
* JSON API type field
|
|
2769
|
+
*/
|
|
2770
|
+
type: 'audit_log_query';
|
|
2771
|
+
attributes: {
|
|
2772
|
+
/**
|
|
2773
|
+
* An SQL-like expression to filter the events
|
|
2774
|
+
*/
|
|
2775
|
+
filter?: string;
|
|
2776
|
+
/**
|
|
2777
|
+
* Set this value to get remaining results, if a meta.next_token was returned in the previous query response
|
|
2778
|
+
*/
|
|
2779
|
+
next_token?: string;
|
|
2780
|
+
/**
|
|
2781
|
+
* Whether a detailed log complete with full request and response payload must be returned or not
|
|
2782
|
+
*/
|
|
2783
|
+
detailed_log?: boolean;
|
|
2784
|
+
};
|
|
2785
|
+
};
|
|
2786
|
+
};
|
|
2787
|
+
/**
|
|
2788
|
+
* This interface was referenced by `AuditLogEvent`'s JSON-Schema
|
|
2789
|
+
* via the `query.targetSchema` link.
|
|
2790
|
+
*/
|
|
2791
|
+
export declare type AuditLogEventQueryTargetSchema = {
|
|
2792
|
+
data: AuditLogEvent[];
|
|
2793
|
+
meta: {
|
|
2794
|
+
/**
|
|
2795
|
+
* If the response request exceeds the response payload limit DatoCMS will set this value in the response. If set, you can use that this value in the subsequent request to get the remaining results
|
|
2796
|
+
*/
|
|
2797
|
+
next_token: null | string;
|
|
2798
|
+
};
|
|
2799
|
+
};
|
|
2580
2800
|
/**
|
|
2581
2801
|
* Stores the information regarding the current plan for the project.
|
|
2582
2802
|
*
|
|
@@ -2739,6 +2959,10 @@ export declare type SitePlanAttributes = {
|
|
|
2739
2959
|
* Whether translator roles are enabled or not
|
|
2740
2960
|
*/
|
|
2741
2961
|
translator_roles: boolean;
|
|
2962
|
+
/**
|
|
2963
|
+
* Whether or not use a static IP when sending webhooks
|
|
2964
|
+
*/
|
|
2965
|
+
static_webhooks_ip: boolean;
|
|
2742
2966
|
/**
|
|
2743
2967
|
* Available extra packets
|
|
2744
2968
|
*/
|
|
@@ -3105,6 +3329,12 @@ export declare type ItemTypeRelationships = {
|
|
|
3105
3329
|
fields: {
|
|
3106
3330
|
data: FieldData[];
|
|
3107
3331
|
};
|
|
3332
|
+
/**
|
|
3333
|
+
* The list of item type fieldsets
|
|
3334
|
+
*/
|
|
3335
|
+
fieldsets: {
|
|
3336
|
+
data: FieldsetData[];
|
|
3337
|
+
};
|
|
3108
3338
|
/**
|
|
3109
3339
|
* The field to use as display title
|
|
3110
3340
|
*/
|
|
@@ -3156,6 +3386,16 @@ export declare type FieldData = {
|
|
|
3156
3386
|
type: FieldType;
|
|
3157
3387
|
id: FieldIdentity;
|
|
3158
3388
|
};
|
|
3389
|
+
/**
|
|
3390
|
+
* JSON API data
|
|
3391
|
+
*
|
|
3392
|
+
* This interface was referenced by `Fieldset`'s JSON-Schema
|
|
3393
|
+
* via the `definition` "data".
|
|
3394
|
+
*/
|
|
3395
|
+
export declare type FieldsetData = {
|
|
3396
|
+
type: FieldsetType;
|
|
3397
|
+
id: FieldsetIdentity;
|
|
3398
|
+
};
|
|
3159
3399
|
/**
|
|
3160
3400
|
* JSON API data
|
|
3161
3401
|
*
|
|
@@ -3443,7 +3683,839 @@ export declare type ItemTypeDestroyJobSchema = {
|
|
|
3443
3683
|
data: ItemType;
|
|
3444
3684
|
};
|
|
3445
3685
|
/**
|
|
3446
|
-
*
|
|
3686
|
+
* DatoCMS offers a number of different fields that you can combine togheter 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.
|
|
3687
|
+
*
|
|
3688
|
+
* ### Different field types require different settings
|
|
3689
|
+
*
|
|
3690
|
+
* When looking at a field resource, you have to pay attention to two particular properties, `validators` and `appearance`.
|
|
3691
|
+
*
|
|
3692
|
+
* The `validators` property expresses the set of validations to be performed server-side on a specific field value for it to be considered valid, while the `appearance` property lets you specify _how_ the field itself will be presented inside the form to the final editor.
|
|
3693
|
+
*
|
|
3694
|
+
* For both properties, the value to specify depends on the type of field itself. For example, you can add a "Limit character count" validation to a _Single-line string_ field, or set its appearence to "Show it as heading", but they won't be accepted for a ie. _Color_ field, as it supports different validations and appearance settings.
|
|
3695
|
+
*
|
|
3696
|
+
* ### Specifying validations
|
|
3697
|
+
*
|
|
3698
|
+
* The `validators` property requires an object whose keys are the validations that you want to be enforced, and the values are objects representing any settings that the validation itself requires. If the validation doesn't have additional settings, you just pass down an empty object.
|
|
3699
|
+
*
|
|
3700
|
+
* This is a valid example for a _Single-line string_ field:
|
|
3701
|
+
*
|
|
3702
|
+
* ```js
|
|
3703
|
+
* {
|
|
3704
|
+
* "validators": {
|
|
3705
|
+
* // "required" validator has no settings
|
|
3706
|
+
* "required": {},
|
|
3707
|
+
* // "length" validator requires "min" and/or "max" properties
|
|
3708
|
+
* "length": { "min": 80 }
|
|
3709
|
+
* }
|
|
3710
|
+
* }
|
|
3711
|
+
* ```
|
|
3712
|
+
*
|
|
3713
|
+
* Below you'll find a summary of all the validators available for each field type with their settings.
|
|
3714
|
+
*
|
|
3715
|
+
* Some validators are required for a specific type of field. For example, the _Slug_ field needs to have a `slug_title_field` validator to specify the ID of the _Single-line string_ field that will be used to generate the slug itself.
|
|
3716
|
+
*
|
|
3717
|
+
* ### Specifying the appearance
|
|
3718
|
+
*
|
|
3719
|
+
* The `appearance` property requires an object with three specific properties: `editor`, `parameters` and `addons`.
|
|
3720
|
+
*
|
|
3721
|
+
* The `editor` represents the type of editor that the users will see inside the form to change the value of this specific field. Depending on the type of field, DatoCMS offers a number of different editors for you to choose from. The `parameters` property is an object representing any additional settings that the editor itself might require.
|
|
3722
|
+
*
|
|
3723
|
+
* This is a valid example for a _Single-line string_ field:
|
|
3724
|
+
*
|
|
3725
|
+
* ```js
|
|
3726
|
+
* {
|
|
3727
|
+
* "appearance": {
|
|
3728
|
+
* // single_line is a DatoCMS built-in editor that you can use with single-line string fields
|
|
3729
|
+
* "editor": "single_line",
|
|
3730
|
+
* // each built-in editor has specific settings
|
|
3731
|
+
* "parameters": { "heading": true },
|
|
3732
|
+
* "addons": []
|
|
3733
|
+
* },
|
|
3734
|
+
* }
|
|
3735
|
+
* ```
|
|
3736
|
+
*
|
|
3737
|
+
* Following you'll find a summary of all the editors available for each field type with their settings.
|
|
3738
|
+
*
|
|
3739
|
+
* #### Setting the appearance to a field editor provided by a plugin
|
|
3740
|
+
*
|
|
3741
|
+
* 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 build-in editors.
|
|
3742
|
+
*
|
|
3743
|
+
* In this case:
|
|
3744
|
+
*
|
|
3745
|
+
* - the `editor` property must be the ID of the plugin;
|
|
3746
|
+
* - the `field_extension` property must be the ID of the specific manual field editor that the plugin exposes;
|
|
3747
|
+
* - 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.
|
|
3748
|
+
*
|
|
3749
|
+
* ```js
|
|
3750
|
+
* {
|
|
3751
|
+
* "appearance": {
|
|
3752
|
+
* // "2132" is a the ID of a plugin exposing a manual field editor
|
|
3753
|
+
* "editor": "2134",
|
|
3754
|
+
* // "starRating" is a manual field editor exposed by the plugin
|
|
3755
|
+
* "field_extension": "starRating",
|
|
3756
|
+
* // this is a valid configuration for the "starRating" field editor
|
|
3757
|
+
* "parameters": { "maxRating": 5, "starsColor": "#ff0000" },
|
|
3758
|
+
* "addons": []
|
|
3759
|
+
* },
|
|
3760
|
+
* }
|
|
3761
|
+
* ```
|
|
3762
|
+
*
|
|
3763
|
+
* #### Configuring manual field addons
|
|
3764
|
+
*
|
|
3765
|
+
* If the project contains plugins that expose [manual field addons](/docs/plugin-sdk/manual-field-extensions), you can also add them to the field via the `addons` property.
|
|
3766
|
+
*
|
|
3767
|
+
* ```js
|
|
3768
|
+
* {
|
|
3769
|
+
* "appearance": {
|
|
3770
|
+
* "editor": "single_line",
|
|
3771
|
+
* "parameters": { "heading": true },
|
|
3772
|
+
* "addons": [
|
|
3773
|
+
* {
|
|
3774
|
+
* // "2138" is a the ID of a plugin exposing a manual addon editor
|
|
3775
|
+
* "id": "2138",
|
|
3776
|
+
* // "loremIpsumGenerator" is a manual field addon exposed by the plugin
|
|
3777
|
+
* "field_extension": "loremIpsumGenerator",
|
|
3778
|
+
* // this is a valid configuration for the "loremIpsumGenerator" field addon
|
|
3779
|
+
* "parameters": { "sentences": 2 },
|
|
3780
|
+
* }
|
|
3781
|
+
* ]
|
|
3782
|
+
* },
|
|
3783
|
+
* }
|
|
3784
|
+
* ```
|
|
3785
|
+
*
|
|
3786
|
+
* ### Available field types
|
|
3787
|
+
*
|
|
3788
|
+
* <details>
|
|
3789
|
+
* <summary>Single-line string (<code>string</code>)</summary>
|
|
3790
|
+
*
|
|
3791
|
+
* | Property | Value |
|
|
3792
|
+
* | ------------------------------ | ---------------------------------------------------- |
|
|
3793
|
+
* | Code | `string` |
|
|
3794
|
+
* | Built-in editors for the field | `single_line`, `string_radio_group`, `string_select` |
|
|
3795
|
+
* | Available validators | `required`, `unique`, `length`, `format`, `enum` |
|
|
3796
|
+
*
|
|
3797
|
+
* </details>
|
|
3798
|
+
*
|
|
3799
|
+
* <details>
|
|
3800
|
+
* <summary>Multi-line text (<code>text</code>)</summary>
|
|
3801
|
+
*
|
|
3802
|
+
* | Property | Value |
|
|
3803
|
+
* | ------------------------------ | --------------------------------- |
|
|
3804
|
+
* | Code | `text` |
|
|
3805
|
+
* | Built-in editors for the field | `markdown`, `wysiwyg`, `textarea` |
|
|
3806
|
+
* | Available validators | `required`, `length`, `format` |
|
|
3807
|
+
*
|
|
3808
|
+
* </details>
|
|
3809
|
+
*
|
|
3810
|
+
* <details>
|
|
3811
|
+
* <summary>Boolean (<code>boolean</code>)</summary>
|
|
3812
|
+
*
|
|
3813
|
+
* | Property | Value |
|
|
3814
|
+
* | ------------------------------ | -------------------------------- |
|
|
3815
|
+
* | Code | `boolean` |
|
|
3816
|
+
* | Built-in editors for the field | `boolean`, `boolean_radio_group` |
|
|
3817
|
+
* | Available validators | no validators available |
|
|
3818
|
+
*
|
|
3819
|
+
* </details>
|
|
3820
|
+
*
|
|
3821
|
+
* <details>
|
|
3822
|
+
* <summary>Integer (<code>integer</code>)</summary>
|
|
3823
|
+
*
|
|
3824
|
+
* | Property | Value |
|
|
3825
|
+
* | ------------------------------ | -------------------------- |
|
|
3826
|
+
* | Code | `integer` |
|
|
3827
|
+
* | Built-in editors for the field | `integer` |
|
|
3828
|
+
* | Available validators | `required`, `number_range` |
|
|
3829
|
+
*
|
|
3830
|
+
* </details>
|
|
3831
|
+
*
|
|
3832
|
+
* <details>
|
|
3833
|
+
* <summary>Float (<code>float</code>)</summary>
|
|
3834
|
+
*
|
|
3835
|
+
* | Property | Value |
|
|
3836
|
+
* | ------------------------------ | -------------------------- |
|
|
3837
|
+
* | Code | `float` |
|
|
3838
|
+
* | Built-in editors for the field | `float` |
|
|
3839
|
+
* | Available validators | `required`, `number_range` |
|
|
3840
|
+
*
|
|
3841
|
+
* </details>
|
|
3842
|
+
*
|
|
3843
|
+
* <details>
|
|
3844
|
+
* <summary>Date (<code>date</code>)</summary>
|
|
3845
|
+
*
|
|
3846
|
+
* | Property | Value |
|
|
3847
|
+
* | ------------------------------ | ------------------------ |
|
|
3848
|
+
* | Code | `date` |
|
|
3849
|
+
* | Built-in editors for the field | `date_picker` |
|
|
3850
|
+
* | Available validators | `required`, `date_range` |
|
|
3851
|
+
*
|
|
3852
|
+
* </details>
|
|
3853
|
+
*
|
|
3854
|
+
* <details>
|
|
3855
|
+
* <summary>Date time (<code>date_time</code>)</summary>
|
|
3856
|
+
*
|
|
3857
|
+
* | Property | Value |
|
|
3858
|
+
* | ------------------------------ | ----------------------------- |
|
|
3859
|
+
* | Code | `date_time` |
|
|
3860
|
+
* | Built-in editors for the field | `date_time_picker` |
|
|
3861
|
+
* | Available validators | `required`, `date_time_range` |
|
|
3862
|
+
*
|
|
3863
|
+
* </details>
|
|
3864
|
+
*
|
|
3865
|
+
* <details>
|
|
3866
|
+
* <summary>Color (<code>color</code>)</summary>
|
|
3867
|
+
*
|
|
3868
|
+
* | Property | Value |
|
|
3869
|
+
* | ------------------------------ | -------------- |
|
|
3870
|
+
* | Code | `color` |
|
|
3871
|
+
* | Built-in editors for the field | `color_picker` |
|
|
3872
|
+
* | Available validators | `required` |
|
|
3873
|
+
*
|
|
3874
|
+
* </details>
|
|
3875
|
+
*
|
|
3876
|
+
* <details>
|
|
3877
|
+
* <summary>JSON (<code>json</code>)</summary>
|
|
3878
|
+
*
|
|
3879
|
+
* | Property | Value |
|
|
3880
|
+
* | ------------------------------ | ------------------------------------------------------ |
|
|
3881
|
+
* | Code | `json` |
|
|
3882
|
+
* | Built-in editors for the field | `json`, `string_multi_select`, `string_checkbox_group` |
|
|
3883
|
+
* | Available validators | `required` |
|
|
3884
|
+
*
|
|
3885
|
+
* </details>
|
|
3886
|
+
*
|
|
3887
|
+
* <details>
|
|
3888
|
+
* <summary>Location (<code>lat_lon</code>)</summary>
|
|
3889
|
+
*
|
|
3890
|
+
* | Property | Value |
|
|
3891
|
+
* | ------------------------------ | ---------- |
|
|
3892
|
+
* | Code | `lat_lon` |
|
|
3893
|
+
* | Built-in editors for the field | `map` |
|
|
3894
|
+
* | Available validators | `required` |
|
|
3895
|
+
*
|
|
3896
|
+
* </details>
|
|
3897
|
+
*
|
|
3898
|
+
* <details>
|
|
3899
|
+
* <summary>SEO (<code>seo</code>)</summary>
|
|
3900
|
+
*
|
|
3901
|
+
* | Property | Value |
|
|
3902
|
+
* | ------------------------------ | -------------------------------------------------------------------------------------------- |
|
|
3903
|
+
* | Code | `seo` |
|
|
3904
|
+
* | Built-in editors for the field | `seo` |
|
|
3905
|
+
* | Available validators | `required_seo_fields`, `file_size`, `image_dimensions`, `title_length`, `description_length` |
|
|
3906
|
+
*
|
|
3907
|
+
* </details>
|
|
3908
|
+
*
|
|
3909
|
+
* <details>
|
|
3910
|
+
* <summary>Slug (<code>slug</code>)</summary>
|
|
3911
|
+
*
|
|
3912
|
+
* | Property | Value |
|
|
3913
|
+
* | ------------------------------ | ----------------------------------- |
|
|
3914
|
+
* | Code | `slug` |
|
|
3915
|
+
* | Built-in editors for the field | `slug` |
|
|
3916
|
+
* | Required validators | `slug_title_field` |
|
|
3917
|
+
* | Other validators available | `required`, `length`, `slug_format` |
|
|
3918
|
+
*
|
|
3919
|
+
* </details>
|
|
3920
|
+
*
|
|
3921
|
+
* <details>
|
|
3922
|
+
* <summary>External video (<code>video</code>)</summary>
|
|
3923
|
+
*
|
|
3924
|
+
* | Property | Value |
|
|
3925
|
+
* | ------------------------------ | ---------- |
|
|
3926
|
+
* | Code | `video` |
|
|
3927
|
+
* | Built-in editors for the field | `video` |
|
|
3928
|
+
* | Available validators | `required` |
|
|
3929
|
+
*
|
|
3930
|
+
* </details>
|
|
3931
|
+
*
|
|
3932
|
+
* <details>
|
|
3933
|
+
* <summary>Single-asset (<code>file</code>)</summary>
|
|
3934
|
+
*
|
|
3935
|
+
* | Property | Value |
|
|
3936
|
+
* | ------------------------------ | ------------------------------------------------------------------------------ |
|
|
3937
|
+
* | Code | `file` |
|
|
3938
|
+
* | Built-in editors for the field | `file` |
|
|
3939
|
+
* | Available validators | `required`, `file_size`, `image_dimensions`, `extension`, `required_alt_title` |
|
|
3940
|
+
*
|
|
3941
|
+
* </details>
|
|
3942
|
+
*
|
|
3943
|
+
* <details>
|
|
3944
|
+
* <summary>Asset gallery (<code>gallery</code>)</summary>
|
|
3945
|
+
*
|
|
3946
|
+
* | Property | Value |
|
|
3947
|
+
* | ------------------------------ | -------------------------------------------------------------------------- |
|
|
3948
|
+
* | Code | `gallery` |
|
|
3949
|
+
* | Built-in editors for the field | `gallery` |
|
|
3950
|
+
* | Available validators | `size`, `file_size`, `image_dimensions`, `extension`, `required_alt_title` |
|
|
3951
|
+
*
|
|
3952
|
+
* </details>
|
|
3953
|
+
*
|
|
3954
|
+
* <details>
|
|
3955
|
+
* <summary>Single link (<code>link</code>)</summary>
|
|
3956
|
+
*
|
|
3957
|
+
* | Property | Value |
|
|
3958
|
+
* | ------------------------------ | --------------------------- |
|
|
3959
|
+
* | Code | `link` |
|
|
3960
|
+
* | Built-in editors for the field | `link_select`, `link_embed` |
|
|
3961
|
+
* | Default `editor` | `link_select` |
|
|
3962
|
+
* | Required validators | `item_item_type` |
|
|
3963
|
+
* | Other validators available | `required`, `unique` |
|
|
3964
|
+
*
|
|
3965
|
+
* </details>
|
|
3966
|
+
*
|
|
3967
|
+
* <details>
|
|
3968
|
+
* <summary>Multiple links (<code>links</code>)</summary>
|
|
3969
|
+
*
|
|
3970
|
+
* | Property | Value |
|
|
3971
|
+
* | ------------------------------ | ----------------------------- |
|
|
3972
|
+
* | Code | `links` |
|
|
3973
|
+
* | Built-in editors for the field | `links_select`, `links_embed` |
|
|
3974
|
+
* | Default `editor` | `links_select` |
|
|
3975
|
+
* | Required validators | `items_item_type` |
|
|
3976
|
+
* | Other validators available | `size` |
|
|
3977
|
+
*
|
|
3978
|
+
* </details>
|
|
3979
|
+
*
|
|
3980
|
+
* <details>
|
|
3981
|
+
* <summary>Modular content (<code>rich_text</code>)</summary>
|
|
3982
|
+
*
|
|
3983
|
+
* | Property | Value |
|
|
3984
|
+
* | ------------------------------ | ------------------ |
|
|
3985
|
+
* | Code | `rich_text` |
|
|
3986
|
+
* | Built-in editors for the field | `rich_text` |
|
|
3987
|
+
* | Required validators | `rich_text_blocks` |
|
|
3988
|
+
* | Other validators available | `size` |
|
|
3989
|
+
*
|
|
3990
|
+
* </details>
|
|
3991
|
+
*
|
|
3992
|
+
* <details>
|
|
3993
|
+
* <summary>Structured text (<code>structured_text</code>)</summary>
|
|
3994
|
+
*
|
|
3995
|
+
* | Property | Value |
|
|
3996
|
+
* | ------------------------------ | ------------------------------------------------- |
|
|
3997
|
+
* | Code | `structured_text` |
|
|
3998
|
+
* | Built-in editors for the field | `structured_text` |
|
|
3999
|
+
* | Required validators | `structured_text_blocks`, `structured_text_links` |
|
|
4000
|
+
* | Other validators available | `length` |
|
|
4001
|
+
*
|
|
4002
|
+
* </details>
|
|
4003
|
+
*
|
|
4004
|
+
* ### Validators
|
|
4005
|
+
*
|
|
4006
|
+
* <details>
|
|
4007
|
+
* <summary><code>date_range</code></summary>
|
|
4008
|
+
*
|
|
4009
|
+
* Accept dates only inside a specified date range.
|
|
4010
|
+
*
|
|
4011
|
+
* | Parameter | Type | Required | Description |
|
|
4012
|
+
* | --------- | ------------- | -------- | ------------ |
|
|
4013
|
+
* | `min` | ISO 8601 date | | Minimum date |
|
|
4014
|
+
* | `max` | ISO 8601 date | | Maximum date |
|
|
4015
|
+
*
|
|
4016
|
+
* At least one of the parameters must be specified.
|
|
4017
|
+
*
|
|
4018
|
+
* </details>
|
|
4019
|
+
*
|
|
4020
|
+
* <details>
|
|
4021
|
+
* <summary><code>date_time_range</code></summary>
|
|
4022
|
+
*
|
|
4023
|
+
* Accept date times only inside a specified date range.
|
|
4024
|
+
*
|
|
4025
|
+
* | Parameter | Type | Required | Description |
|
|
4026
|
+
* | --------- | ----------------- | -------- | ---------------- |
|
|
4027
|
+
* | `min` | ISO 8601 datetime | | Minimum datetime |
|
|
4028
|
+
* | `max` | ISO 8601 datetime | | Maximum datetime |
|
|
4029
|
+
*
|
|
4030
|
+
* At least one of the parameters must be specified.
|
|
4031
|
+
*
|
|
4032
|
+
* </details>
|
|
4033
|
+
*
|
|
4034
|
+
* <details>
|
|
4035
|
+
* <summary><code>enum</code></summary>
|
|
4036
|
+
*
|
|
4037
|
+
* Only accept a specific set of values
|
|
4038
|
+
*
|
|
4039
|
+
* | Parameter | Type | Required | Description |
|
|
4040
|
+
* | --------- | --------------- | -------- | --------------------- |
|
|
4041
|
+
* | `values` | `Array<String>` | ✅ | Set of allowed values |
|
|
4042
|
+
*
|
|
4043
|
+
* </details>
|
|
4044
|
+
*
|
|
4045
|
+
* <details>
|
|
4046
|
+
* <summary><code>extension</code></summary>
|
|
4047
|
+
*
|
|
4048
|
+
* Only accept assets with specific file extensions.
|
|
4049
|
+
*
|
|
4050
|
+
* | Parameter | Type | Required | Description |
|
|
4051
|
+
* | ----------------- | ----------------------------------------- | -------- | ------------------------------ |
|
|
4052
|
+
* | `extensions` | `Array<String>` | | Set of allowed file extensions |
|
|
4053
|
+
* | `predefined_list` | one of `"image"`, `"transformable_image"`, `"video"`, `"document"` | | Allowed file type |
|
|
4054
|
+
*
|
|
4055
|
+
* Only one of the parameters must be specified.
|
|
4056
|
+
*
|
|
4057
|
+
* </details>
|
|
4058
|
+
*
|
|
4059
|
+
* <details>
|
|
4060
|
+
* <summary><code>file_size</code></summary>
|
|
4061
|
+
*
|
|
4062
|
+
* Accept assets only inside a specified date range.
|
|
4063
|
+
*
|
|
4064
|
+
* | Parameter | Type | Required | Description |
|
|
4065
|
+
* | ----------- | ---------------------------- | -------- | ---------------------------------- |
|
|
4066
|
+
* | `min_value` | `Integer` | | Numeric value for minimum filesize |
|
|
4067
|
+
* | `min_unit` | one of `"B"`, `"KB"`, `"MB"` | | Unit for minimum filesize |
|
|
4068
|
+
* | `max_value` | `Integer` | | Numeric value for maximum filesize |
|
|
4069
|
+
* | `max_unit` | one of `"B"`, `"KB"`, `"MB"` | | Unit for maximum filesize |
|
|
4070
|
+
*
|
|
4071
|
+
* At least one couple of value/unit must be specified.
|
|
4072
|
+
*
|
|
4073
|
+
* </details>
|
|
4074
|
+
*
|
|
4075
|
+
* <details>
|
|
4076
|
+
* <summary><code>format</code></summary>
|
|
4077
|
+
*
|
|
4078
|
+
* Only accept strings having a specific format.
|
|
4079
|
+
*
|
|
4080
|
+
* | Parameter | Type | Required | Description |
|
|
4081
|
+
* | -------------------- | ------------------------- | -------- | ---------------------------------- |
|
|
4082
|
+
* | `custom_pattern` | `Regexp` | | Regular expression to be validated |
|
|
4083
|
+
* | `predefined_pattern` | one of `"email"`, `"url"` | | Allowed format |
|
|
4084
|
+
*
|
|
4085
|
+
* Only one of the parameters must be specified.
|
|
4086
|
+
*
|
|
4087
|
+
* </details>
|
|
4088
|
+
*
|
|
4089
|
+
* <details>
|
|
4090
|
+
* <summary><code>slug_format</code></summary>
|
|
4091
|
+
*
|
|
4092
|
+
* Only accept slugs having a specific format.
|
|
4093
|
+
*
|
|
4094
|
+
* | Parameter | Type | Required | Description |
|
|
4095
|
+
* | -------------------- | ---------------- | -------- | ---------------------------------- |
|
|
4096
|
+
* | `custom_pattern` | `Regexp` | | Regular expression to be validated |
|
|
4097
|
+
* | `predefined_pattern` | `"webpage_slug"` | | Allowed format |
|
|
4098
|
+
*
|
|
4099
|
+
* Only one of the parameters must be specified.
|
|
4100
|
+
*
|
|
4101
|
+
* </details>
|
|
4102
|
+
*
|
|
4103
|
+
* <details>
|
|
4104
|
+
* <summary><code>image_dimensions</code></summary>
|
|
4105
|
+
*
|
|
4106
|
+
* Accept assets only within a specified height/width range.
|
|
4107
|
+
*
|
|
4108
|
+
* | Parameter | Type | Required | Description |
|
|
4109
|
+
* | ------------------ | --------- | -------- | -------------------------------- |
|
|
4110
|
+
* | `width_min_value` | `Integer` | | Numeric value for minimum width |
|
|
4111
|
+
* | `width_max_value` | `Integer` | | Numeric value for maximum height |
|
|
4112
|
+
* | `height_min_value` | `Integer` | | Numeric value for minimum width |
|
|
4113
|
+
* | `height_max_value` | `Integer` | | Numeric value for maximum height |
|
|
4114
|
+
*
|
|
4115
|
+
* At least one parameter must be specified.
|
|
4116
|
+
*
|
|
4117
|
+
* </details>
|
|
4118
|
+
*
|
|
4119
|
+
* <details>
|
|
4120
|
+
* <summary><code>item_item_type</code></summary>
|
|
4121
|
+
*
|
|
4122
|
+
* Only accept references to records of the specified models.
|
|
4123
|
+
*
|
|
4124
|
+
* | Parameter | Type | Required | Description |
|
|
4125
|
+
* | ------------------------------------------------- | ------------------------------------------------------------------------ | -------- | --------------------------------------------------------------------------------------------------- |
|
|
4126
|
+
* | `item_types` | `Array<Model ID>` | ✅ | Set of allowed model IDs |
|
|
4127
|
+
* | `on_publish_with_unpublished_references_strategy` | `"fail"`, `"publish_references"` (default value: `"fail"`) | | Strategy to apply when a publishing is requested and this field references some unpublished records |
|
|
4128
|
+
* | `on_reference_unpublish_strategy` | `"fail"`, `"unpublish"`, `"delete_references"` (default value: `"fail"`) | | Strategy to apply when unpublishing is requested for a record referenced by this field |
|
|
4129
|
+
* | `on_reference_delete_strategy` | `"fail"`, `"delete_references"` (default value: `"delete_references"`) | | Strategy to apply when deletion is requested for a record referenced by this field |
|
|
4130
|
+
*
|
|
4131
|
+
* Possible values for `on_publish_with_unpublished_references_strategy`:
|
|
4132
|
+
*
|
|
4133
|
+
* - `"fail"`: Fail the operation and notify the user
|
|
4134
|
+
* - `"publish_references"`: Publish also the referenced records
|
|
4135
|
+
*
|
|
4136
|
+
* Possible values for `on_reference_unpublish_strategy`:
|
|
4137
|
+
*
|
|
4138
|
+
* - `"fail"`: Fail the operation and notify the user
|
|
4139
|
+
* - `"unpublish"`: Unpublish also this record
|
|
4140
|
+
* - `"delete_references"`: Try to remove the reference to the unpublished record (if the field has a `required` validation it will fail)
|
|
4141
|
+
*
|
|
4142
|
+
* Possible values for `on_reference_delete_strategy`:
|
|
4143
|
+
*
|
|
4144
|
+
* - `"fail"`: Fail the operation and notify the user
|
|
4145
|
+
* - `"delete_references"`: Try to remove the reference to the deleted record (if the field has a `required` validation it will fail)
|
|
4146
|
+
* </details>
|
|
4147
|
+
*
|
|
4148
|
+
* <details>
|
|
4149
|
+
* <summary><code>items_item_type</code></summary>
|
|
4150
|
+
*
|
|
4151
|
+
* Only accept references to records of the specified models.
|
|
4152
|
+
*
|
|
4153
|
+
* | Parameter | Type | Required | Description |
|
|
4154
|
+
* | ------------------------------------------------- | ------------------------------------------------------------------------ | -------- | --------------------------------------------------------------------------------------------------- |
|
|
4155
|
+
* | `item_types` | `Array<Model ID>` | ✅ | Set of allowed model IDs |
|
|
4156
|
+
* | `on_publish_with_unpublished_references_strategy` | `"fail"`, `"publish_references"` (default value: `"fail"`) | | Strategy to apply when a publishing is requested and this field references some unpublished records |
|
|
4157
|
+
* | `on_reference_unpublish_strategy` | `"fail"`, `"unpublish"`, `"delete_references"` (default value: `"fail"`) | | Strategy to apply when unpublishing is requested for a record referenced by this field |
|
|
4158
|
+
* | `on_reference_delete_strategy` | `"fail"`, `"delete_references"` (default value: `"delete_references"`) | | Strategy to apply when deletion is requested for a record referenced by this field |
|
|
4159
|
+
*
|
|
4160
|
+
* Possible values for `on_publish_with_unpublished_references_strategy`:
|
|
4161
|
+
*
|
|
4162
|
+
* - `"fail"`: Fail the operation and notify the user
|
|
4163
|
+
* - `"publish_references"`: Publish also the referenced records
|
|
4164
|
+
*
|
|
4165
|
+
* Possible values for `on_reference_unpublish_strategy`:
|
|
4166
|
+
*
|
|
4167
|
+
* - `"fail"`: Fail the operation and notify the user
|
|
4168
|
+
* - `"unpublish"`: Unpublish also this record
|
|
4169
|
+
* - `"delete_references"`: Try to remove the reference to the unpublished record (if the field has a `required` validation it will fail)
|
|
4170
|
+
*
|
|
4171
|
+
* Possible values for `on_reference_delete_strategy`:
|
|
4172
|
+
*
|
|
4173
|
+
* - `"fail"`: Fail the operation and notify the user
|
|
4174
|
+
* - `"delete_references"`: Try to remove the reference to the deleted record (if the field has a `required` validation it will fail)
|
|
4175
|
+
* </details>
|
|
4176
|
+
*
|
|
4177
|
+
* <details>
|
|
4178
|
+
* <summary><code>length</code></summary>
|
|
4179
|
+
*
|
|
4180
|
+
* Accept strings only with a specified number of characters.
|
|
4181
|
+
*
|
|
4182
|
+
* | Parameter | Type | Required | Description |
|
|
4183
|
+
* | --------- | --------- | -------- | --------------- |
|
|
4184
|
+
* | `min` | `Integer` | | Minimum length |
|
|
4185
|
+
* | `eq` | `Integer` | | Expected length |
|
|
4186
|
+
* | `max` | `Integer` | | Maximum length |
|
|
4187
|
+
*
|
|
4188
|
+
* At least one parameter must be specified.
|
|
4189
|
+
*
|
|
4190
|
+
* </details>
|
|
4191
|
+
*
|
|
4192
|
+
* <details>
|
|
4193
|
+
* <summary><code>number_range</code></summary>
|
|
4194
|
+
*
|
|
4195
|
+
* Accept numbers only inside a specified range.
|
|
4196
|
+
*
|
|
4197
|
+
* | Parameter | Type | Required | Description |
|
|
4198
|
+
* | --------- | ------- | -------- | ------------- |
|
|
4199
|
+
* | `min` | `Float` | | Minimum value |
|
|
4200
|
+
* | `max` | `Float` | | Maximum value |
|
|
4201
|
+
*
|
|
4202
|
+
* At least one of the parameters must be specified.
|
|
4203
|
+
*
|
|
4204
|
+
* </details>
|
|
4205
|
+
*
|
|
4206
|
+
* <details>
|
|
4207
|
+
* <summary><code>required</code></summary>
|
|
4208
|
+
*
|
|
4209
|
+
* Value must be specified or it won't be valid.
|
|
4210
|
+
*
|
|
4211
|
+
* </details>
|
|
4212
|
+
*
|
|
4213
|
+
* <details>
|
|
4214
|
+
* <summary><code>required_alt_title</code></summary>
|
|
4215
|
+
*
|
|
4216
|
+
* Assets contained in the field are required to specify custom title or alternate text, or they won't be valid.
|
|
4217
|
+
*
|
|
4218
|
+
* | Parameter | Type | Required | Description |
|
|
4219
|
+
* | --------- | --------- | -------- | ---------------------------------------------------------- |
|
|
4220
|
+
* | `title` | `Boolean` | | Whether the title for the asset must be specified |
|
|
4221
|
+
* | `alt` | `Boolean` | | Whether the alternate text for the asset must be specified |
|
|
4222
|
+
*
|
|
4223
|
+
* At least one of the parameters must be specified.
|
|
4224
|
+
*
|
|
4225
|
+
* </details>
|
|
4226
|
+
*
|
|
4227
|
+
* <details>
|
|
4228
|
+
* <summary><code>required_seo_fields</code></summary>
|
|
4229
|
+
*
|
|
4230
|
+
* SEO field is to specify one or more properties, or it won't be valid.
|
|
4231
|
+
*
|
|
4232
|
+
* | Parameter | Type | Required | Description |
|
|
4233
|
+
* | -------------- | --------- | -------- | -------------------------------------------------- |
|
|
4234
|
+
* | `title` | `Boolean` | | Whether the meta title must be specified |
|
|
4235
|
+
* | `description` | `Boolean` | | Whether the meta description must be specified |
|
|
4236
|
+
* | `image` | `Boolean` | | Whether the social sharing image must be specified |
|
|
4237
|
+
* | `twitter_card` | `Boolean` | | Whether the type of Twitter card must be specified |
|
|
4238
|
+
*
|
|
4239
|
+
* At least one of the parameters must be specified.
|
|
4240
|
+
*
|
|
4241
|
+
* </details>
|
|
4242
|
+
*
|
|
4243
|
+
* <details>
|
|
4244
|
+
* <summary><code>title_length</code></summary>
|
|
4245
|
+
*
|
|
4246
|
+
* Limits the length of the title for a SEO field. Search engines usually truncate title tags to 60 character so it is a good practice to keep the title around this length.
|
|
4247
|
+
*
|
|
4248
|
+
* | Parameter | Type | Required | Description |
|
|
4249
|
+
* | --------- | --------- | -------- | ------------- |
|
|
4250
|
+
* | `min` | `Integer` | | Minimum value |
|
|
4251
|
+
* | `max` | `Integer` | | Maximum value |
|
|
4252
|
+
*
|
|
4253
|
+
* At least one of the parameters must be specified.
|
|
4254
|
+
*
|
|
4255
|
+
* </details>
|
|
4256
|
+
*
|
|
4257
|
+
* <details>
|
|
4258
|
+
* <summary><code>description_length</code></summary>
|
|
4259
|
+
*
|
|
4260
|
+
* Limits the length of the description for a SEO field. Search engines usually truncate description tags to 160 character so it is a good practice to keep the description around this length.
|
|
4261
|
+
*
|
|
4262
|
+
* | Parameter | Type | Required | Description |
|
|
4263
|
+
* | --------- | --------- | -------- | ------------- |
|
|
4264
|
+
* | `min` | `Integer` | | Minimum value |
|
|
4265
|
+
* | `max` | `Integer` | | Maximum value |
|
|
4266
|
+
*
|
|
4267
|
+
* At least one of the parameters must be specified.
|
|
4268
|
+
*
|
|
4269
|
+
* </details>
|
|
4270
|
+
*
|
|
4271
|
+
* <details>
|
|
4272
|
+
* <summary><code>rich_text_blocks</code></summary>
|
|
4273
|
+
*
|
|
4274
|
+
* Only accept references to block records of the specified block models.
|
|
4275
|
+
*
|
|
4276
|
+
* | Parameter | Type | Required | Description |
|
|
4277
|
+
* | ------------ | ----------------------- | -------- | ------------------------------ |
|
|
4278
|
+
* | `item_types` | `Array<Block Model ID>` | ✅ | Set of allowed Block Model IDs |
|
|
4279
|
+
*
|
|
4280
|
+
* </details>
|
|
4281
|
+
*
|
|
4282
|
+
* <details>
|
|
4283
|
+
* <summary><code>structured_text_blocks</code></summary>
|
|
4284
|
+
*
|
|
4285
|
+
* Only accept references to block records of the specified block models.
|
|
4286
|
+
*
|
|
4287
|
+
* | Parameter | Type | Required | Description |
|
|
4288
|
+
* | ------------ | ----------------------- | -------- | ------------------------------ |
|
|
4289
|
+
* | `item_types` | `Array<Block Model ID>` | ✅ | Set of allowed Block Model IDs |
|
|
4290
|
+
*
|
|
4291
|
+
* </details>
|
|
4292
|
+
*
|
|
4293
|
+
* <details>
|
|
4294
|
+
* <summary><code>structured_text_links</code></summary>
|
|
4295
|
+
*
|
|
4296
|
+
* Only accept `itemLink` to `inlineItem` nodes for records of the specified models.
|
|
4297
|
+
*
|
|
4298
|
+
* | Parameter | Type | Required | Description |
|
|
4299
|
+
* | ------------------------------------------------- | ------------------------------------------------------------------------------------- | -------- | --------------------------------------------------------------------------------------------------- |
|
|
4300
|
+
* | `item_types` | `Array<Model ID>` | ✅ | Set of allowed model IDs |
|
|
4301
|
+
* | `on_publish_with_unpublished_references_strategy` | `"fail"`, `"publish_references"` (default value: `"fail"`) | | Strategy to apply when a publishing is requested and this field references some unpublished records |
|
|
4302
|
+
* | `on_reference_unpublish_strategy` | `"fail"`, `"unpublish"`, `"delete_references"` (default value: `"delete_references"`) | | Strategy to apply when unpublishing is requested for a record referenced by this field |
|
|
4303
|
+
* | `on_reference_delete_strategy` | `"fail"`, `"delete_references"` (default value: `"delete_references"`) | | Strategy to apply when deletion is requested for a record referenced by this field |
|
|
4304
|
+
*
|
|
4305
|
+
* Possible values for `on_publish_with_unpublished_references_strategy`:
|
|
4306
|
+
*
|
|
4307
|
+
* - `"fail"`: Fail the operation and notify the user
|
|
4308
|
+
* - `"publish_references"`: Publish also the referenced records
|
|
4309
|
+
*
|
|
4310
|
+
* Possible values for `on_reference_unpublish_strategy`:
|
|
4311
|
+
*
|
|
4312
|
+
* - `"fail"`: Fail the operation and notify the user
|
|
4313
|
+
* - `"unpublish"`: Unpublish also this record
|
|
4314
|
+
* - `"delete_references"`: Try to remove the reference to the unpublished record (if the field has a `required` validation it will fail)
|
|
4315
|
+
*
|
|
4316
|
+
* Possible values for `on_reference_delete_strategy`:
|
|
4317
|
+
*
|
|
4318
|
+
* - `"fail"`: Fail the operation and notify the user
|
|
4319
|
+
* - `"delete_references"`: Try to remove the reference to the deleted record (if the field has a `required` validation it will fail)
|
|
4320
|
+
* </details>
|
|
4321
|
+
*
|
|
4322
|
+
* <details>
|
|
4323
|
+
* <summary><code>size</code></summary>
|
|
4324
|
+
*
|
|
4325
|
+
* Only accept a number of items within the specified range.
|
|
4326
|
+
*
|
|
4327
|
+
* | Parameter | Type | Required | Description |
|
|
4328
|
+
* | ------------- | --------- | -------- | -------------------------------------------------- |
|
|
4329
|
+
* | `min` | `Integer` | | Minimum length |
|
|
4330
|
+
* | `eq` | `Integer` | | Expected length |
|
|
4331
|
+
* | `max` | `Integer` | | Maximum length |
|
|
4332
|
+
* | `multiple_of` | `Integer` | | The number of items must be multiple of this value |
|
|
4333
|
+
*
|
|
4334
|
+
* At least one parameter must be specified.
|
|
4335
|
+
*
|
|
4336
|
+
* </details>
|
|
4337
|
+
*
|
|
4338
|
+
* <details>
|
|
4339
|
+
* <summary><code>slug_title_field</code></summary>
|
|
4340
|
+
*
|
|
4341
|
+
* Specifies the ID of the _Single-line string_ field that will be used to generate the slug
|
|
4342
|
+
*
|
|
4343
|
+
* | Parameter | Type | Required | Description |
|
|
4344
|
+
* | ---------------- | ---------- | -------- | ------------------------------------------------ |
|
|
4345
|
+
* | `title_field_id` | `Field ID` | ✅ | The field that will be used to generate the slug |
|
|
4346
|
+
*
|
|
4347
|
+
* </details>
|
|
4348
|
+
*
|
|
4349
|
+
* <details>
|
|
4350
|
+
* <summary><code>unique</code></summary>
|
|
4351
|
+
*
|
|
4352
|
+
* The value must be unique across the whole collection of records.
|
|
4353
|
+
*
|
|
4354
|
+
* </details>
|
|
4355
|
+
*
|
|
4356
|
+
* ### Configuration parameters for DatoCMS built-in field editors
|
|
4357
|
+
*
|
|
4358
|
+
* If a field editor is not specified in this table, just pass an empty object `{}` as its configuration parameters.
|
|
4359
|
+
*
|
|
4360
|
+
* <details>
|
|
4361
|
+
* <summary><code>boolean_radio_group</code></summary>
|
|
4362
|
+
*
|
|
4363
|
+
* Radio group input for _boolean_ fields.
|
|
4364
|
+
*
|
|
4365
|
+
* | Parameter | Type | Required | Description |
|
|
4366
|
+
* | ---------------- | ---------------------------------- | -------- | ----------------------------------------- |
|
|
4367
|
+
* | `positive_radio` | `{ label: string, hint?: string }` | ✅ | Radio input for positive choice (`true`) |
|
|
4368
|
+
* | `negative_radio` | `{ label: string, hint?: string }` | ✅ | Radio input for negative choice (`false`) |
|
|
4369
|
+
*
|
|
4370
|
+
* </details>
|
|
4371
|
+
*
|
|
4372
|
+
* <details>
|
|
4373
|
+
* <summary><code>string_radio_group</code></summary>
|
|
4374
|
+
*
|
|
4375
|
+
* Radio group input for _string_ fields.
|
|
4376
|
+
*
|
|
4377
|
+
* | Parameter | Type | Required | Description |
|
|
4378
|
+
* | --------- | -------------------------------------------------------- | -------- | --------------------------- |
|
|
4379
|
+
* | `radios` | `Array<{ label: string, value: string, hint?: string }>` | ✅ | The different radio options |
|
|
4380
|
+
*
|
|
4381
|
+
* </details>
|
|
4382
|
+
*
|
|
4383
|
+
* <details>
|
|
4384
|
+
* <summary><code>string_select</code></summary>
|
|
4385
|
+
*
|
|
4386
|
+
* Select input for _string_ fields.
|
|
4387
|
+
*
|
|
4388
|
+
* | Parameter | Type | Required | Description |
|
|
4389
|
+
* | --------- | -------------------------------------------------------- | -------- | ---------------------------- |
|
|
4390
|
+
* | `options` | `Array<{ label: string, value: string, hint?: string }>` | ✅ | The different select options |
|
|
4391
|
+
*
|
|
4392
|
+
* </details>
|
|
4393
|
+
*
|
|
4394
|
+
* <details>
|
|
4395
|
+
* <summary><code>string_multi_select</code></summary>
|
|
4396
|
+
*
|
|
4397
|
+
* Select input for _JSON_ fields, to edit an array of strings.
|
|
4398
|
+
*
|
|
4399
|
+
* | Parameter | Type | Required | Description |
|
|
4400
|
+
* | --------- | -------------------------------------------------------- | -------- | ---------------------------- |
|
|
4401
|
+
* | `options` | `Array<{ label: string, value: string, hint?: string }>` | ✅ | The different select options |
|
|
4402
|
+
*
|
|
4403
|
+
* </details>
|
|
4404
|
+
*
|
|
4405
|
+
* <details>
|
|
4406
|
+
* <summary><code>string_checkbox_group</code></summary>
|
|
4407
|
+
*
|
|
4408
|
+
* Multiple chechboxes input for _JSON_ fields, to edit an array of strings.
|
|
4409
|
+
*
|
|
4410
|
+
* | Parameter | Type | Required | Description |
|
|
4411
|
+
* | --------- | -------------------------------------------------------- | -------- | ---------------------------- |
|
|
4412
|
+
* | `options` | `Array<{ label: string, value: string, hint?: string }>` | ✅ | The different select options |
|
|
4413
|
+
*
|
|
4414
|
+
* </details>
|
|
4415
|
+
*
|
|
4416
|
+
* <details>
|
|
4417
|
+
* <summary><code>single_line</code></summary>
|
|
4418
|
+
*
|
|
4419
|
+
* Simple textual input for _Single-line string_ fields.
|
|
4420
|
+
*
|
|
4421
|
+
* | Parameter | Type | Required | Description |
|
|
4422
|
+
* | --------- | --------- | -------- | -------------------------------------------------------------------------------- |
|
|
4423
|
+
* | `heading` | `Boolean` | ✅ | Indicates if the field should be shown bigger, as a field representing a heading |
|
|
4424
|
+
*
|
|
4425
|
+
* </details>
|
|
4426
|
+
*
|
|
4427
|
+
* <details>
|
|
4428
|
+
* <summary><code>markdown</code></summary>
|
|
4429
|
+
*
|
|
4430
|
+
* Markdown editor for _Multiple-paragraph text_ fields.
|
|
4431
|
+
*
|
|
4432
|
+
* | Parameter | Type | Required | Description |
|
|
4433
|
+
* | --------- | --------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
4434
|
+
* | `toolbar` | `Array<String>` | ✅ | Specify which buttons the toolbar should have. Valid values: `"heading"`, `"bold"`, `"italic"`, `"strikethrough"`, `"code"`, `"unordered_list"`, `"ordered_list"`, `"quote"`, `"link"`, `"image"`, `"fullscreen"` |
|
|
4435
|
+
*
|
|
4436
|
+
* </details>
|
|
4437
|
+
*
|
|
4438
|
+
* <details>
|
|
4439
|
+
* <summary><code>wysiwyg</code></summary>
|
|
4440
|
+
*
|
|
4441
|
+
* HTML editor for _Multiple-paragraph text_ fields.
|
|
4442
|
+
*
|
|
4443
|
+
* | Parameter | Type | Required | Description |
|
|
4444
|
+
* | --------- | --------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
4445
|
+
* | `toolbar` | `Array<String>` | ✅ | Specify which buttons the toolbar should have. Valid values: `"format"`, `"bold"`, `"italic"`, `"strikethrough"`, `"code"`, `"ordered_list"`, `"unordered_list"`, `"quote"`, `"table"`, `"link"`, `"image"`, `"show_source"`, `"undo"`, `"redo"`, `"align_left"`, `"align_center"`, `"align_right"`, `"align_justify"`, `"outdent"`, `"indent"`, `"fullscreen"` |
|
|
4446
|
+
*
|
|
4447
|
+
* </details>
|
|
4448
|
+
*
|
|
4449
|
+
* <details>
|
|
4450
|
+
* <summary><code>textarea</code></summary>
|
|
4451
|
+
*
|
|
4452
|
+
* Basic textarea editor for _Multiple-paragraph text_ fields.
|
|
4453
|
+
*
|
|
4454
|
+
* </details>
|
|
4455
|
+
*
|
|
4456
|
+
* <details>
|
|
4457
|
+
* <summary><code>color_picker</code></summary>
|
|
4458
|
+
*
|
|
4459
|
+
* Built-in editor for _Color_ fields.
|
|
4460
|
+
*
|
|
4461
|
+
* | Parameter | Type | Required | Description |
|
|
4462
|
+
* | --------------- | ------------------------- | -------- | --------------------------------------------------------- |
|
|
4463
|
+
* | `enable_alpha` | `Boolean` | ✅ | Should the color picker allow to specify the alpha value? |
|
|
4464
|
+
* | `preset_colors` | `Array<Hex color string>` | ✅ | List of preset colors to offer to the user |
|
|
4465
|
+
*
|
|
4466
|
+
* </details>
|
|
4467
|
+
*
|
|
4468
|
+
* <details>
|
|
4469
|
+
* <summary><code>slug</code></summary>
|
|
4470
|
+
*
|
|
4471
|
+
* Built-in editor for _Slug_ fields.
|
|
4472
|
+
*
|
|
4473
|
+
* | Parameter | Type | Required | Description |
|
|
4474
|
+
* | ------------ | -------- | -------- | -------------------------------------------------------------------------------------- |
|
|
4475
|
+
* | `url_prefix` | `String` | | A prefix that will be shown in the editor's form to give some context to your editors. |
|
|
4476
|
+
*
|
|
4477
|
+
* </details>
|
|
4478
|
+
*
|
|
4479
|
+
* <details>
|
|
4480
|
+
* <summary><code>rich_text</code></summary>
|
|
4481
|
+
*
|
|
4482
|
+
* Built-in editor for _Modular content_ fields.
|
|
4483
|
+
*
|
|
4484
|
+
* | Parameter | Type | Required | Description |
|
|
4485
|
+
* | ----------------- | --------- | -------- | ---------------------------------------------------------- |
|
|
4486
|
+
* | `start_collapsed` | `Boolean` | | Whether you want block records collapsed by default or not |
|
|
4487
|
+
*
|
|
4488
|
+
* </details>
|
|
4489
|
+
*
|
|
4490
|
+
* <details>
|
|
4491
|
+
* <summary><code>structured_text</code></summary>
|
|
4492
|
+
*
|
|
4493
|
+
* Built-in editor for _Structured text_ fields.
|
|
4494
|
+
*
|
|
4495
|
+
* | Parameter | Type | Required | Description |
|
|
4496
|
+
* | ------------------------- | --------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
4497
|
+
* | `nodes` | `Array<String>` | ✅ | Specify which nodes the field should allow. Valid values: `"blockquote"`, `"code"`, `"heading"`, `"link"`, `"list"`, `"thematicBreak"` |
|
|
4498
|
+
* | `marks` | `Array<String>` | ✅ | Specify which marks the field should allow. Valid values: `"strong"`, `"emphasis"`, `"underline"`, `"strikethrough"`, `"code"`, `"highlight"` |
|
|
4499
|
+
* | `blocks_start_collapsed` | `Boolean` | | Whether you want block nodes collapsed by default or not |
|
|
4500
|
+
* | `show_links_target_blank` | `Boolean` | | Whether you want to show the "Open this link in a new tab?" checkbox, that fills in the `target: "_blank"` meta attribute for links |
|
|
4501
|
+
* | `show_links_meta_editor` | `Boolean` | | Whether you want to show the complete meta editor for links |
|
|
4502
|
+
*
|
|
4503
|
+
* </details>
|
|
4504
|
+
*
|
|
4505
|
+
* <details>
|
|
4506
|
+
* <summary><code>link_select</code> and <code>links_select</code></summary>
|
|
4507
|
+
*
|
|
4508
|
+
* Use a select input with auto-completion to pick the records to reference inside the field.
|
|
4509
|
+
*
|
|
4510
|
+
* </details>
|
|
4511
|
+
*
|
|
4512
|
+
* <details>
|
|
4513
|
+
* <summary><code>link_embed</code> and <code>links_embed</code></summary>
|
|
4514
|
+
*
|
|
4515
|
+
* Use an expanded view with records' image preview to pick the records to reference inside the field.
|
|
4516
|
+
*
|
|
4517
|
+
* </details>
|
|
4518
|
+
*
|
|
3447
4519
|
*
|
|
3448
4520
|
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
3449
4521
|
* via the `definition` "field".
|
|
@@ -3565,16 +4637,6 @@ export declare type FieldRelationships = {
|
|
|
3565
4637
|
data: null | FieldsetData;
|
|
3566
4638
|
};
|
|
3567
4639
|
};
|
|
3568
|
-
/**
|
|
3569
|
-
* JSON API data
|
|
3570
|
-
*
|
|
3571
|
-
* This interface was referenced by `Fieldset`'s JSON-Schema
|
|
3572
|
-
* via the `definition` "data".
|
|
3573
|
-
*/
|
|
3574
|
-
export declare type FieldsetData = {
|
|
3575
|
-
type: FieldsetType;
|
|
3576
|
-
id: FieldsetIdentity;
|
|
3577
|
-
};
|
|
3578
4640
|
/**
|
|
3579
4641
|
* This interface was referenced by `Field`'s JSON-Schema
|
|
3580
4642
|
* via the `create.schema` link.
|
|
@@ -4104,184 +5166,6 @@ export declare type SessionCreateTargetSchema = {
|
|
|
4104
5166
|
data: Session;
|
|
4105
5167
|
included: User[];
|
|
4106
5168
|
};
|
|
4107
|
-
/**
|
|
4108
|
-
* An API token allows access to our API. It is linked to a Role, which describes what actions can be performed.
|
|
4109
|
-
*
|
|
4110
|
-
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
4111
|
-
* via the `definition` "access_token".
|
|
4112
|
-
*/
|
|
4113
|
-
export declare type AccessToken = {
|
|
4114
|
-
type: AccessTokenType;
|
|
4115
|
-
id: AccessTokenIdentity;
|
|
4116
|
-
attributes: AccessTokenAttributes;
|
|
4117
|
-
relationships: AccessTokenRelationships;
|
|
4118
|
-
};
|
|
4119
|
-
/**
|
|
4120
|
-
* JSON API attributes
|
|
4121
|
-
*
|
|
4122
|
-
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
4123
|
-
* via the `definition` "attributes".
|
|
4124
|
-
*/
|
|
4125
|
-
export declare type AccessTokenAttributes = {
|
|
4126
|
-
/**
|
|
4127
|
-
* Name of API token
|
|
4128
|
-
*/
|
|
4129
|
-
name: string;
|
|
4130
|
-
/**
|
|
4131
|
-
* The actual API token
|
|
4132
|
-
*/
|
|
4133
|
-
token?: string;
|
|
4134
|
-
/**
|
|
4135
|
-
* Whether this API token can access the Content Delivery API published content endpoint
|
|
4136
|
-
*/
|
|
4137
|
-
can_access_cda: boolean;
|
|
4138
|
-
/**
|
|
4139
|
-
* Whether this API token can access the Content Delivery API draft content endpoint
|
|
4140
|
-
*/
|
|
4141
|
-
can_access_cda_preview: boolean;
|
|
4142
|
-
/**
|
|
4143
|
-
* Whether this API token can access the Content Management API
|
|
4144
|
-
*/
|
|
4145
|
-
can_access_cma: boolean;
|
|
4146
|
-
hardcoded_type: null | string;
|
|
4147
|
-
};
|
|
4148
|
-
/**
|
|
4149
|
-
* JSON API links
|
|
4150
|
-
*
|
|
4151
|
-
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
4152
|
-
* via the `definition` "relationships".
|
|
4153
|
-
*/
|
|
4154
|
-
export declare type AccessTokenRelationships = {
|
|
4155
|
-
/**
|
|
4156
|
-
* Role
|
|
4157
|
-
*/
|
|
4158
|
-
role: {
|
|
4159
|
-
data: RoleData | null;
|
|
4160
|
-
};
|
|
4161
|
-
};
|
|
4162
|
-
/**
|
|
4163
|
-
* JSON API data
|
|
4164
|
-
*
|
|
4165
|
-
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
4166
|
-
* via the `definition` "data".
|
|
4167
|
-
*/
|
|
4168
|
-
export declare type AccessTokenData = {
|
|
4169
|
-
type: AccessTokenType;
|
|
4170
|
-
id: AccessTokenIdentity;
|
|
4171
|
-
};
|
|
4172
|
-
/**
|
|
4173
|
-
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
4174
|
-
* via the `create.schema` link.
|
|
4175
|
-
*/
|
|
4176
|
-
export declare type AccessTokenCreateSchema = {
|
|
4177
|
-
data: {
|
|
4178
|
-
type: AccessTokenType;
|
|
4179
|
-
attributes: {
|
|
4180
|
-
/**
|
|
4181
|
-
* Name of API token
|
|
4182
|
-
*/
|
|
4183
|
-
name: string;
|
|
4184
|
-
/**
|
|
4185
|
-
* Whether this API token can access the Content Delivery API published content endpoint
|
|
4186
|
-
*/
|
|
4187
|
-
can_access_cda: boolean;
|
|
4188
|
-
/**
|
|
4189
|
-
* Whether this API token can access the Content Delivery API draft content endpoint
|
|
4190
|
-
*/
|
|
4191
|
-
can_access_cda_preview: boolean;
|
|
4192
|
-
/**
|
|
4193
|
-
* Whether this API token can access the Content Management API
|
|
4194
|
-
*/
|
|
4195
|
-
can_access_cma: boolean;
|
|
4196
|
-
};
|
|
4197
|
-
relationships: {
|
|
4198
|
-
/**
|
|
4199
|
-
* Role
|
|
4200
|
-
*/
|
|
4201
|
-
role: {
|
|
4202
|
-
data: RoleData | null;
|
|
4203
|
-
};
|
|
4204
|
-
};
|
|
4205
|
-
};
|
|
4206
|
-
};
|
|
4207
|
-
/**
|
|
4208
|
-
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
4209
|
-
* via the `create.targetSchema` link.
|
|
4210
|
-
*/
|
|
4211
|
-
export declare type AccessTokenCreateTargetSchema = {
|
|
4212
|
-
data: AccessToken;
|
|
4213
|
-
};
|
|
4214
|
-
/**
|
|
4215
|
-
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
4216
|
-
* via the `update.schema` link.
|
|
4217
|
-
*/
|
|
4218
|
-
export declare type AccessTokenUpdateSchema = {
|
|
4219
|
-
data: {
|
|
4220
|
-
type: AccessTokenType;
|
|
4221
|
-
id: AccessTokenIdentity;
|
|
4222
|
-
attributes: {
|
|
4223
|
-
/**
|
|
4224
|
-
* Name of API token
|
|
4225
|
-
*/
|
|
4226
|
-
name: string;
|
|
4227
|
-
/**
|
|
4228
|
-
* Whether this API token can access the Content Delivery API published content endpoint
|
|
4229
|
-
*/
|
|
4230
|
-
can_access_cda: boolean;
|
|
4231
|
-
/**
|
|
4232
|
-
* Whether this API token can access the Content Delivery API draft content endpoint
|
|
4233
|
-
*/
|
|
4234
|
-
can_access_cda_preview: boolean;
|
|
4235
|
-
/**
|
|
4236
|
-
* Whether this API token can access the Content Management API
|
|
4237
|
-
*/
|
|
4238
|
-
can_access_cma: boolean;
|
|
4239
|
-
};
|
|
4240
|
-
relationships: {
|
|
4241
|
-
/**
|
|
4242
|
-
* Role
|
|
4243
|
-
*/
|
|
4244
|
-
role: {
|
|
4245
|
-
data: RoleData | null;
|
|
4246
|
-
};
|
|
4247
|
-
};
|
|
4248
|
-
};
|
|
4249
|
-
};
|
|
4250
|
-
/**
|
|
4251
|
-
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
4252
|
-
* via the `update.targetSchema` link.
|
|
4253
|
-
*/
|
|
4254
|
-
export declare type AccessTokenUpdateTargetSchema = {
|
|
4255
|
-
data: AccessToken;
|
|
4256
|
-
};
|
|
4257
|
-
/**
|
|
4258
|
-
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
4259
|
-
* via the `instances.targetSchema` link.
|
|
4260
|
-
*/
|
|
4261
|
-
export declare type AccessTokenInstancesTargetSchema = {
|
|
4262
|
-
data: AccessToken[];
|
|
4263
|
-
};
|
|
4264
|
-
/**
|
|
4265
|
-
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
4266
|
-
* via the `self.targetSchema` link.
|
|
4267
|
-
*/
|
|
4268
|
-
export declare type AccessTokenSelfTargetSchema = {
|
|
4269
|
-
data: AccessToken;
|
|
4270
|
-
};
|
|
4271
|
-
/**
|
|
4272
|
-
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
4273
|
-
* via the `regenerate_token.targetSchema` link.
|
|
4274
|
-
*/
|
|
4275
|
-
export declare type AccessTokenRegenerateTokenTargetSchema = {
|
|
4276
|
-
data: AccessToken;
|
|
4277
|
-
};
|
|
4278
|
-
/**
|
|
4279
|
-
* This interface was referenced by `AccessToken`'s JSON-Schema
|
|
4280
|
-
* via the `destroy.targetSchema` link.
|
|
4281
|
-
*/
|
|
4282
|
-
export declare type AccessTokenDestroyTargetSchema = {
|
|
4283
|
-
data: AccessToken;
|
|
4284
|
-
};
|
|
4285
5169
|
/**
|
|
4286
5170
|
* Plugins enable developers to replace DatoCMS field components with HTML5 applications so the editing experiences of the DatoCMS web app can be customized.
|
|
4287
5171
|
*
|
|
@@ -6276,6 +7160,10 @@ export declare type EnvironmentMeta = {
|
|
|
6276
7160
|
* Is this environment the primary for the project?
|
|
6277
7161
|
*/
|
|
6278
7162
|
primary: boolean;
|
|
7163
|
+
/**
|
|
7164
|
+
* ID of the environment that's been forked to generate this one
|
|
7165
|
+
*/
|
|
7166
|
+
forked_from?: string | null;
|
|
6279
7167
|
};
|
|
6280
7168
|
/**
|
|
6281
7169
|
* JSON API data
|
|
@@ -8062,6 +8950,7 @@ export declare type Site = {
|
|
|
8062
8950
|
id: SiteIdentity;
|
|
8063
8951
|
attributes: SiteAttributes;
|
|
8064
8952
|
relationships: SiteRelationships;
|
|
8953
|
+
meta: SiteMeta;
|
|
8065
8954
|
};
|
|
8066
8955
|
/**
|
|
8067
8956
|
* JSON API attributes
|
|
@@ -8110,10 +8999,6 @@ export declare type SiteAttributes = {
|
|
|
8110
8999
|
* Specifies the last time when a change of data occurred
|
|
8111
9000
|
*/
|
|
8112
9001
|
last_data_change_at: null | string;
|
|
8113
|
-
/**
|
|
8114
|
-
* Frontend website url
|
|
8115
|
-
*/
|
|
8116
|
-
frontend_url: string | null;
|
|
8117
9002
|
/**
|
|
8118
9003
|
* Specifies whether all users of this site need to authenticate using two-factor authentication
|
|
8119
9004
|
*/
|
|
@@ -8206,48 +9091,24 @@ export declare type SiteRelationships = {
|
|
|
8206
9091
|
account: {
|
|
8207
9092
|
data: AccountData;
|
|
8208
9093
|
};
|
|
8209
|
-
build_triggers?: {
|
|
8210
|
-
/**
|
|
8211
|
-
* The list of build trigger
|
|
8212
|
-
*/
|
|
8213
|
-
data: BuildTriggerData[];
|
|
8214
|
-
};
|
|
8215
|
-
menu_items: {
|
|
8216
|
-
/**
|
|
8217
|
-
* The list of site menu items
|
|
8218
|
-
*/
|
|
8219
|
-
data: MenuItemData[];
|
|
8220
|
-
};
|
|
8221
|
-
sso_users: {
|
|
8222
|
-
/**
|
|
8223
|
-
* The list of site SSO users
|
|
8224
|
-
*/
|
|
8225
|
-
data: SsoUserData[];
|
|
8226
|
-
};
|
|
8227
|
-
users: {
|
|
8228
|
-
/**
|
|
8229
|
-
* The list of site users
|
|
8230
|
-
*/
|
|
8231
|
-
data: UserData[];
|
|
8232
|
-
};
|
|
8233
9094
|
item_types: {
|
|
8234
9095
|
/**
|
|
8235
|
-
* The list
|
|
9096
|
+
* The list item types for the site
|
|
8236
9097
|
*/
|
|
8237
9098
|
data: ItemTypeData[];
|
|
8238
9099
|
};
|
|
8239
|
-
|
|
8240
|
-
|
|
8241
|
-
|
|
8242
|
-
|
|
8243
|
-
|
|
8244
|
-
|
|
8245
|
-
|
|
8246
|
-
|
|
8247
|
-
|
|
8248
|
-
|
|
8249
|
-
|
|
8250
|
-
|
|
9100
|
+
};
|
|
9101
|
+
/**
|
|
9102
|
+
* Meta attributes
|
|
9103
|
+
*
|
|
9104
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
9105
|
+
* via the `definition` "meta".
|
|
9106
|
+
*/
|
|
9107
|
+
export declare type SiteMeta = {
|
|
9108
|
+
/**
|
|
9109
|
+
* Whether the Improved API Timezone Management option is active or not
|
|
9110
|
+
*/
|
|
9111
|
+
improved_timezone_management: boolean;
|
|
8251
9112
|
};
|
|
8252
9113
|
/**
|
|
8253
9114
|
* JSON API data
|
|
@@ -8265,7 +9126,7 @@ export declare type SiteData = {
|
|
|
8265
9126
|
*/
|
|
8266
9127
|
export declare type SiteSelfTargetSchema = {
|
|
8267
9128
|
data: Site;
|
|
8268
|
-
included?: (
|
|
9129
|
+
included?: (ItemType | Field | Upload | Fieldset | Item | Account)[];
|
|
8269
9130
|
};
|
|
8270
9131
|
/**
|
|
8271
9132
|
* This interface was referenced by `Site`'s JSON-Schema
|
|
@@ -8378,6 +9239,12 @@ export declare type SiteUpdateSchema = {
|
|
|
8378
9239
|
*/
|
|
8379
9240
|
ip_tracking_enabled?: boolean;
|
|
8380
9241
|
};
|
|
9242
|
+
meta?: {
|
|
9243
|
+
/**
|
|
9244
|
+
* Whether the Improved API Timezone Management option is active or not
|
|
9245
|
+
*/
|
|
9246
|
+
improved_timezone_management?: boolean;
|
|
9247
|
+
};
|
|
8381
9248
|
relationships?: {
|
|
8382
9249
|
sso_default_role?: {
|
|
8383
9250
|
data: RoleData;
|
|
@@ -8399,6 +9266,20 @@ export declare type SiteUpdateTargetSchema = {
|
|
|
8399
9266
|
export declare type SiteUpdateJobSchema = {
|
|
8400
9267
|
data: Site;
|
|
8401
9268
|
};
|
|
9269
|
+
/**
|
|
9270
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
9271
|
+
* via the `activate_improved_timezone_management.targetSchema` link.
|
|
9272
|
+
*/
|
|
9273
|
+
export declare type SiteActivateImprovedTimezoneManagementTargetSchema = {
|
|
9274
|
+
data: Job;
|
|
9275
|
+
};
|
|
9276
|
+
/**
|
|
9277
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
9278
|
+
* via the `activate_improved_timezone_management.jobSchema` link.
|
|
9279
|
+
*/
|
|
9280
|
+
export declare type SiteActivateImprovedTimezoneManagementJobSchema = {
|
|
9281
|
+
data: Site;
|
|
9282
|
+
};
|
|
8402
9283
|
/**
|
|
8403
9284
|
* Through workflows it is possible to set up a precise state machine able to bring a draft content up to the final publication (and beyond), through a series of intermediate, fully customizable approval steps.
|
|
8404
9285
|
*
|