@datocms/cma-client 3.4.3 → 3.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/generated/Client.js +1 -1
- package/dist/cjs/generated/resources/ItemType.js +4 -0
- package/dist/cjs/generated/resources/ItemType.js.map +1 -1
- package/dist/esm/generated/Client.js +1 -1
- package/dist/esm/generated/SchemaTypes.d.ts +46 -10
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +15 -7
- package/dist/esm/generated/resources/ItemType.js +4 -0
- package/dist/esm/generated/resources/ItemType.js.map +1 -1
- package/dist/types/generated/SchemaTypes.d.ts +46 -10
- package/dist/types/generated/SimpleSchemaTypes.d.ts +15 -7
- package/package.json +2 -2
- package/resources.json +4 -0
- package/src/generated/Client.ts +1 -1
- package/src/generated/SchemaTypes.ts +56 -10
- package/src/generated/SimpleSchemaTypes.ts +35 -7
- package/src/generated/resources/ItemType.ts +4 -0
|
@@ -131,7 +131,7 @@ var Client = /** @class */ (function () {
|
|
|
131
131
|
});
|
|
132
132
|
Client.prototype.request = function (options) {
|
|
133
133
|
var _this = this;
|
|
134
|
-
return (0, rest_client_utils_1.request)(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.4.
|
|
134
|
+
return (0, rest_client_utils_1.request)(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.4.5', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
135
135
|
? { 'X-Environment': this.config.environment }
|
|
136
136
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: function (jobId) {
|
|
137
137
|
return _this.jobResultsFetcher
|
|
@@ -78,6 +78,8 @@ var ItemType = /** @class */ (function (_super) {
|
|
|
78
78
|
],
|
|
79
79
|
relationships: [
|
|
80
80
|
'ordering_field',
|
|
81
|
+
'presentation_title_field',
|
|
82
|
+
'presentation_image_field',
|
|
81
83
|
'title_field',
|
|
82
84
|
'image_preview_field',
|
|
83
85
|
'excerpt_field',
|
|
@@ -135,6 +137,8 @@ var ItemType = /** @class */ (function (_super) {
|
|
|
135
137
|
],
|
|
136
138
|
relationships: [
|
|
137
139
|
'ordering_field',
|
|
140
|
+
'presentation_title_field',
|
|
141
|
+
'presentation_image_field',
|
|
138
142
|
'title_field',
|
|
139
143
|
'image_preview_field',
|
|
140
144
|
'excerpt_field',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemType.js","sourceRoot":"","sources":["../../../../src/generated/resources/ItemType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gEAAoD;AACpD,oEAA8C;AAI9C;IAAsC,4BAAY;IAAlD;;
|
|
1
|
+
{"version":3,"file":"ItemType.js","sourceRoot":"","sources":["../../../../src/generated/resources/ItemType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gEAAoD;AACpD,oEAA8C;AAI9C;IAAsC,4BAAY;IAAlD;;IA2SA,CAAC;IAxSC;;;;;;;OAOG;IACH,yBAAM,GAAN,UACE,IAA4C,EAC5C,WAAwD;QAExD,OAAO,IAAI,CAAC,SAAS,CACnB,KAAK,CAAC,oBAAoB,CAAmC,IAAI,EAAE;YACjE,IAAI,EAAE,WAAW;YACjB,UAAU,EAAE;gBACV,MAAM;gBACN,SAAS;gBACT,WAAW;gBACX,sBAAsB;gBACtB,UAAU;gBACV,eAAe;gBACf,mBAAmB;gBACnB,qBAAqB;gBACrB,MAAM;gBACN,oBAAoB;gBACpB,eAAe;gBACf,wBAAwB;gBACxB,uBAAuB;gBACvB,MAAM;gBACN,+BAA+B;aAChC;YACD,aAAa,EAAE;gBACb,gBAAgB;gBAChB,0BAA0B;gBAC1B,0BAA0B;gBAC1B,aAAa;gBACb,qBAAq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AI,CAAC,MAAM,CAAC,OAAO,CAA4C;YACpE,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,sBAAe,UAAU,eAAY;SAC3C,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,0BAAO,GAAP,UACE,UAAmD,EACnD,WAAyD;QAEzD,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,WAAW,CAAC,CAAC,IAAI,CAAC,UAAC,IAAI;YACpE,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,6BAAU,GAAV,UACE,UAAkB,EAClB,WAAmD;QAEnD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAuC;YAC/D,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,sBAAe,UAAU,CAAE;YAChC,WAAW,aAAA;SACZ,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,+CAA4B,GAA5B,UACE,UAAkB,EAClB,IAAyD;QAEzD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB;YACE,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,sBAAe,UAAU,kCAA+B;YAC7D,IAAI,MAAA;SACL,CACF,CAAC;IACJ,CAAC;IAzSe,aAAI,GAAG,WAAoB,CAAC;IA0S9C,eAAC;CAAA,AA3SD,CAAsC,sBAAY,GA2SjD;kBA3SoB,QAAQ"}
|
|
@@ -105,7 +105,7 @@ var Client = /** @class */ (function () {
|
|
|
105
105
|
});
|
|
106
106
|
Client.prototype.request = function (options) {
|
|
107
107
|
var _this = this;
|
|
108
|
-
return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.4.
|
|
108
|
+
return request(__assign(__assign(__assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v3.4.5', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: __assign(__assign(__assign({}, (this.config.extraHeaders || {})), (this.config.environment
|
|
109
109
|
? { 'X-Environment': this.config.environment }
|
|
110
110
|
: {})), { 'X-API-Version': '3' }), fetchJobResult: function (jobId) {
|
|
111
111
|
return _this.jobResultsFetcher
|
|
@@ -4142,13 +4142,25 @@ export type ItemTypeRelationships = {
|
|
|
4142
4142
|
data: FieldsetData[];
|
|
4143
4143
|
};
|
|
4144
4144
|
/**
|
|
4145
|
-
* The field to use as
|
|
4145
|
+
* The field to use as presentation title
|
|
4146
|
+
*/
|
|
4147
|
+
presentation_title_field: {
|
|
4148
|
+
data: FieldData | null;
|
|
4149
|
+
};
|
|
4150
|
+
/**
|
|
4151
|
+
* The field to use as presentation image
|
|
4152
|
+
*/
|
|
4153
|
+
presentation_image_field: {
|
|
4154
|
+
data: FieldData | null;
|
|
4155
|
+
};
|
|
4156
|
+
/**
|
|
4157
|
+
* The field to use as fallback title for SEO purposes
|
|
4146
4158
|
*/
|
|
4147
4159
|
title_field: {
|
|
4148
4160
|
data: FieldData | null;
|
|
4149
4161
|
};
|
|
4150
4162
|
/**
|
|
4151
|
-
* The field to use as
|
|
4163
|
+
* The field to use as fallback image for SEO purposes
|
|
4152
4164
|
*/
|
|
4153
4165
|
image_preview_field: {
|
|
4154
4166
|
data: FieldData | null;
|
|
@@ -4305,13 +4317,25 @@ export type ItemTypeCreateSchema = {
|
|
|
4305
4317
|
data: FieldData | null;
|
|
4306
4318
|
};
|
|
4307
4319
|
/**
|
|
4308
|
-
* The field to use as
|
|
4320
|
+
* The field to use as presentation title
|
|
4321
|
+
*/
|
|
4322
|
+
presentation_title_field?: {
|
|
4323
|
+
data: FieldData | null;
|
|
4324
|
+
};
|
|
4325
|
+
/**
|
|
4326
|
+
* The field to use as presentation image
|
|
4327
|
+
*/
|
|
4328
|
+
presentation_image_field?: {
|
|
4329
|
+
data: FieldData | null;
|
|
4330
|
+
};
|
|
4331
|
+
/**
|
|
4332
|
+
* The field to use as fallback title for SEO purposes
|
|
4309
4333
|
*/
|
|
4310
4334
|
title_field?: {
|
|
4311
4335
|
data: FieldData | null;
|
|
4312
4336
|
};
|
|
4313
4337
|
/**
|
|
4314
|
-
* The field to use as
|
|
4338
|
+
* The field to use as fallback image for SEO purposes
|
|
4315
4339
|
*/
|
|
4316
4340
|
image_preview_field?: {
|
|
4317
4341
|
data: FieldData | null;
|
|
@@ -4424,13 +4448,25 @@ export type ItemTypeUpdateSchema = {
|
|
|
4424
4448
|
data: FieldData | null;
|
|
4425
4449
|
};
|
|
4426
4450
|
/**
|
|
4427
|
-
* The field to use as
|
|
4451
|
+
* The field to use as presentation title
|
|
4452
|
+
*/
|
|
4453
|
+
presentation_title_field?: {
|
|
4454
|
+
data: FieldData | null;
|
|
4455
|
+
};
|
|
4456
|
+
/**
|
|
4457
|
+
* The field to use as presentation image
|
|
4458
|
+
*/
|
|
4459
|
+
presentation_image_field?: {
|
|
4460
|
+
data: FieldData | null;
|
|
4461
|
+
};
|
|
4462
|
+
/**
|
|
4463
|
+
* The field to use as fallback title for SEO purposes
|
|
4428
4464
|
*/
|
|
4429
4465
|
title_field?: {
|
|
4430
4466
|
data: FieldData | null;
|
|
4431
4467
|
};
|
|
4432
4468
|
/**
|
|
4433
|
-
* The field to use as
|
|
4469
|
+
* The field to use as fallback image for SEO purposes
|
|
4434
4470
|
*/
|
|
4435
4471
|
image_preview_field?: {
|
|
4436
4472
|
data: FieldData | null;
|
|
@@ -6112,7 +6148,7 @@ export type SessionRelationships = {
|
|
|
6112
6148
|
* The user associated with the session
|
|
6113
6149
|
*/
|
|
6114
6150
|
user: {
|
|
6115
|
-
data: UserData;
|
|
6151
|
+
data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
6116
6152
|
};
|
|
6117
6153
|
};
|
|
6118
6154
|
/**
|
|
@@ -9807,7 +9843,7 @@ export type EditingSessionRelationships = {
|
|
|
9807
9843
|
* The entity (account/editor/access token) who has accessed the record
|
|
9808
9844
|
*/
|
|
9809
9845
|
editor: {
|
|
9810
|
-
data: AccountData | AccessTokenData | UserData;
|
|
9846
|
+
data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
9811
9847
|
};
|
|
9812
9848
|
};
|
|
9813
9849
|
/**
|
|
@@ -10698,7 +10734,7 @@ export type SiteAttributes = {
|
|
|
10698
10734
|
/**
|
|
10699
10735
|
* Specifies the color space of the output image
|
|
10700
10736
|
*/
|
|
10701
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
10737
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
10702
10738
|
};
|
|
10703
10739
|
/**
|
|
10704
10740
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -11133,7 +11169,7 @@ export type SiteUpdateAssetsCdnDefaultSettingsSchema = {
|
|
|
11133
11169
|
/**
|
|
11134
11170
|
* Specifies the color space of the output image
|
|
11135
11171
|
*/
|
|
11136
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
11172
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
11137
11173
|
};
|
|
11138
11174
|
/**
|
|
11139
11175
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -4586,6 +4586,8 @@ export type ItemType = {
|
|
|
4586
4586
|
singleton_item: ItemData | null;
|
|
4587
4587
|
fields: FieldData[];
|
|
4588
4588
|
fieldsets: FieldsetData[];
|
|
4589
|
+
presentation_title_field: FieldData | null;
|
|
4590
|
+
presentation_image_field: FieldData | null;
|
|
4589
4591
|
title_field: FieldData | null;
|
|
4590
4592
|
image_preview_field: FieldData | null;
|
|
4591
4593
|
excerpt_field: FieldData | null;
|
|
@@ -4732,6 +4734,8 @@ export type ItemTypeRelationships = {
|
|
|
4732
4734
|
singleton_item: ItemData | null;
|
|
4733
4735
|
fields: FieldData[];
|
|
4734
4736
|
fieldsets: FieldsetData[];
|
|
4737
|
+
presentation_title_field: FieldData | null;
|
|
4738
|
+
presentation_image_field: FieldData | null;
|
|
4735
4739
|
title_field: FieldData | null;
|
|
4736
4740
|
image_preview_field: FieldData | null;
|
|
4737
4741
|
excerpt_field: FieldData | null;
|
|
@@ -4806,6 +4810,8 @@ export type ItemTypeCreateSchema = {
|
|
|
4806
4810
|
*/
|
|
4807
4811
|
inverse_relationships_enabled?: boolean;
|
|
4808
4812
|
ordering_field?: FieldData | null;
|
|
4813
|
+
presentation_title_field?: FieldData | null;
|
|
4814
|
+
presentation_image_field?: FieldData | null;
|
|
4809
4815
|
title_field?: FieldData | null;
|
|
4810
4816
|
image_preview_field?: FieldData | null;
|
|
4811
4817
|
excerpt_field?: FieldData | null;
|
|
@@ -4883,6 +4889,8 @@ export type ItemTypeUpdateSchema = {
|
|
|
4883
4889
|
*/
|
|
4884
4890
|
inverse_relationships_enabled?: boolean;
|
|
4885
4891
|
ordering_field?: FieldData | null;
|
|
4892
|
+
presentation_title_field?: FieldData | null;
|
|
4893
|
+
presentation_image_field?: FieldData | null;
|
|
4886
4894
|
title_field?: FieldData | null;
|
|
4887
4895
|
image_preview_field?: FieldData | null;
|
|
4888
4896
|
excerpt_field?: FieldData | null;
|
|
@@ -6369,7 +6377,7 @@ export type FieldsetUpdateSchema = {
|
|
|
6369
6377
|
export type Session = {
|
|
6370
6378
|
id: SessionIdentity;
|
|
6371
6379
|
type: SessionType;
|
|
6372
|
-
user: UserData;
|
|
6380
|
+
user: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
6373
6381
|
};
|
|
6374
6382
|
export type SessionCreateTargetSchema = Session;
|
|
6375
6383
|
/**
|
|
@@ -6389,7 +6397,7 @@ export type SessionData = {
|
|
|
6389
6397
|
* via the `definition` "relationships".
|
|
6390
6398
|
*/
|
|
6391
6399
|
export type SessionRelationships = {
|
|
6392
|
-
user: UserData;
|
|
6400
|
+
user: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
6393
6401
|
};
|
|
6394
6402
|
/**
|
|
6395
6403
|
* This interface was referenced by `Session`'s JSON-Schema
|
|
@@ -9405,7 +9413,7 @@ export type EditingSession = {
|
|
|
9405
9413
|
locked_at: string | null;
|
|
9406
9414
|
active_item: ItemData;
|
|
9407
9415
|
active_item_type: ItemTypeData;
|
|
9408
|
-
editor: AccountData | AccessTokenData | UserData;
|
|
9416
|
+
editor: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
9409
9417
|
};
|
|
9410
9418
|
export type EditingSessionDestroyTargetSchema = EditingSession;
|
|
9411
9419
|
/**
|
|
@@ -9443,7 +9451,7 @@ export type EditingSessionAttributes = {
|
|
|
9443
9451
|
export type EditingSessionRelationships = {
|
|
9444
9452
|
active_item: ItemData;
|
|
9445
9453
|
active_item_type: ItemTypeData;
|
|
9446
|
-
editor: AccountData | AccessTokenData | UserData;
|
|
9454
|
+
editor: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
9447
9455
|
};
|
|
9448
9456
|
/**
|
|
9449
9457
|
* Form contents for an editing session
|
|
@@ -10234,7 +10242,7 @@ export type Site = {
|
|
|
10234
10242
|
/**
|
|
10235
10243
|
* Specifies the color space of the output image
|
|
10236
10244
|
*/
|
|
10237
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
10245
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
10238
10246
|
};
|
|
10239
10247
|
/**
|
|
10240
10248
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -10472,7 +10480,7 @@ export type SiteAttributes = {
|
|
|
10472
10480
|
/**
|
|
10473
10481
|
* Specifies the color space of the output image
|
|
10474
10482
|
*/
|
|
10475
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
10483
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
10476
10484
|
};
|
|
10477
10485
|
/**
|
|
10478
10486
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -10759,7 +10767,7 @@ export type SiteUpdateAssetsCdnDefaultSettingsSchema = {
|
|
|
10759
10767
|
/**
|
|
10760
10768
|
* Specifies the color space of the output image
|
|
10761
10769
|
*/
|
|
10762
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
10770
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
10763
10771
|
};
|
|
10764
10772
|
/**
|
|
10765
10773
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -50,6 +50,8 @@ var ItemType = /** @class */ (function (_super) {
|
|
|
50
50
|
],
|
|
51
51
|
relationships: [
|
|
52
52
|
'ordering_field',
|
|
53
|
+
'presentation_title_field',
|
|
54
|
+
'presentation_image_field',
|
|
53
55
|
'title_field',
|
|
54
56
|
'image_preview_field',
|
|
55
57
|
'excerpt_field',
|
|
@@ -107,6 +109,8 @@ var ItemType = /** @class */ (function (_super) {
|
|
|
107
109
|
],
|
|
108
110
|
relationships: [
|
|
109
111
|
'ordering_field',
|
|
112
|
+
'presentation_title_field',
|
|
113
|
+
'presentation_image_field',
|
|
110
114
|
'title_field',
|
|
111
115
|
'image_preview_field',
|
|
112
116
|
'excerpt_field',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemType.js","sourceRoot":"","sources":["../../../../src/generated/resources/ItemType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAI9C;IAAsC,4BAAY;IAAlD;;
|
|
1
|
+
{"version":3,"file":"ItemType.js","sourceRoot":"","sources":["../../../../src/generated/resources/ItemType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AACpD,O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IAAyD;QAEzD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB;YACE,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,sBAAe,UAAU,kCAA+B;YAC7D,IAAI,MAAA;SACL,CACF,CAAC;IACJ,CAAC;IAzSe,aAAI,GAAG,WAAoB,CAAC;IA0S9C,eAAC;CAAA,AA3SD,CAAsC,YAAY,GA2SjD;eA3SoB,QAAQ"}
|
|
@@ -4142,13 +4142,25 @@ export type ItemTypeRelationships = {
|
|
|
4142
4142
|
data: FieldsetData[];
|
|
4143
4143
|
};
|
|
4144
4144
|
/**
|
|
4145
|
-
* The field to use as
|
|
4145
|
+
* The field to use as presentation title
|
|
4146
|
+
*/
|
|
4147
|
+
presentation_title_field: {
|
|
4148
|
+
data: FieldData | null;
|
|
4149
|
+
};
|
|
4150
|
+
/**
|
|
4151
|
+
* The field to use as presentation image
|
|
4152
|
+
*/
|
|
4153
|
+
presentation_image_field: {
|
|
4154
|
+
data: FieldData | null;
|
|
4155
|
+
};
|
|
4156
|
+
/**
|
|
4157
|
+
* The field to use as fallback title for SEO purposes
|
|
4146
4158
|
*/
|
|
4147
4159
|
title_field: {
|
|
4148
4160
|
data: FieldData | null;
|
|
4149
4161
|
};
|
|
4150
4162
|
/**
|
|
4151
|
-
* The field to use as
|
|
4163
|
+
* The field to use as fallback image for SEO purposes
|
|
4152
4164
|
*/
|
|
4153
4165
|
image_preview_field: {
|
|
4154
4166
|
data: FieldData | null;
|
|
@@ -4305,13 +4317,25 @@ export type ItemTypeCreateSchema = {
|
|
|
4305
4317
|
data: FieldData | null;
|
|
4306
4318
|
};
|
|
4307
4319
|
/**
|
|
4308
|
-
* The field to use as
|
|
4320
|
+
* The field to use as presentation title
|
|
4321
|
+
*/
|
|
4322
|
+
presentation_title_field?: {
|
|
4323
|
+
data: FieldData | null;
|
|
4324
|
+
};
|
|
4325
|
+
/**
|
|
4326
|
+
* The field to use as presentation image
|
|
4327
|
+
*/
|
|
4328
|
+
presentation_image_field?: {
|
|
4329
|
+
data: FieldData | null;
|
|
4330
|
+
};
|
|
4331
|
+
/**
|
|
4332
|
+
* The field to use as fallback title for SEO purposes
|
|
4309
4333
|
*/
|
|
4310
4334
|
title_field?: {
|
|
4311
4335
|
data: FieldData | null;
|
|
4312
4336
|
};
|
|
4313
4337
|
/**
|
|
4314
|
-
* The field to use as
|
|
4338
|
+
* The field to use as fallback image for SEO purposes
|
|
4315
4339
|
*/
|
|
4316
4340
|
image_preview_field?: {
|
|
4317
4341
|
data: FieldData | null;
|
|
@@ -4424,13 +4448,25 @@ export type ItemTypeUpdateSchema = {
|
|
|
4424
4448
|
data: FieldData | null;
|
|
4425
4449
|
};
|
|
4426
4450
|
/**
|
|
4427
|
-
* The field to use as
|
|
4451
|
+
* The field to use as presentation title
|
|
4452
|
+
*/
|
|
4453
|
+
presentation_title_field?: {
|
|
4454
|
+
data: FieldData | null;
|
|
4455
|
+
};
|
|
4456
|
+
/**
|
|
4457
|
+
* The field to use as presentation image
|
|
4458
|
+
*/
|
|
4459
|
+
presentation_image_field?: {
|
|
4460
|
+
data: FieldData | null;
|
|
4461
|
+
};
|
|
4462
|
+
/**
|
|
4463
|
+
* The field to use as fallback title for SEO purposes
|
|
4428
4464
|
*/
|
|
4429
4465
|
title_field?: {
|
|
4430
4466
|
data: FieldData | null;
|
|
4431
4467
|
};
|
|
4432
4468
|
/**
|
|
4433
|
-
* The field to use as
|
|
4469
|
+
* The field to use as fallback image for SEO purposes
|
|
4434
4470
|
*/
|
|
4435
4471
|
image_preview_field?: {
|
|
4436
4472
|
data: FieldData | null;
|
|
@@ -6112,7 +6148,7 @@ export type SessionRelationships = {
|
|
|
6112
6148
|
* The user associated with the session
|
|
6113
6149
|
*/
|
|
6114
6150
|
user: {
|
|
6115
|
-
data: UserData;
|
|
6151
|
+
data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
6116
6152
|
};
|
|
6117
6153
|
};
|
|
6118
6154
|
/**
|
|
@@ -9807,7 +9843,7 @@ export type EditingSessionRelationships = {
|
|
|
9807
9843
|
* The entity (account/editor/access token) who has accessed the record
|
|
9808
9844
|
*/
|
|
9809
9845
|
editor: {
|
|
9810
|
-
data: AccountData | AccessTokenData | UserData;
|
|
9846
|
+
data: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
9811
9847
|
};
|
|
9812
9848
|
};
|
|
9813
9849
|
/**
|
|
@@ -10698,7 +10734,7 @@ export type SiteAttributes = {
|
|
|
10698
10734
|
/**
|
|
10699
10735
|
* Specifies the color space of the output image
|
|
10700
10736
|
*/
|
|
10701
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
10737
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
10702
10738
|
};
|
|
10703
10739
|
/**
|
|
10704
10740
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -11133,7 +11169,7 @@ export type SiteUpdateAssetsCdnDefaultSettingsSchema = {
|
|
|
11133
11169
|
/**
|
|
11134
11170
|
* Specifies the color space of the output image
|
|
11135
11171
|
*/
|
|
11136
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
11172
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
11137
11173
|
};
|
|
11138
11174
|
/**
|
|
11139
11175
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -4586,6 +4586,8 @@ export type ItemType = {
|
|
|
4586
4586
|
singleton_item: ItemData | null;
|
|
4587
4587
|
fields: FieldData[];
|
|
4588
4588
|
fieldsets: FieldsetData[];
|
|
4589
|
+
presentation_title_field: FieldData | null;
|
|
4590
|
+
presentation_image_field: FieldData | null;
|
|
4589
4591
|
title_field: FieldData | null;
|
|
4590
4592
|
image_preview_field: FieldData | null;
|
|
4591
4593
|
excerpt_field: FieldData | null;
|
|
@@ -4732,6 +4734,8 @@ export type ItemTypeRelationships = {
|
|
|
4732
4734
|
singleton_item: ItemData | null;
|
|
4733
4735
|
fields: FieldData[];
|
|
4734
4736
|
fieldsets: FieldsetData[];
|
|
4737
|
+
presentation_title_field: FieldData | null;
|
|
4738
|
+
presentation_image_field: FieldData | null;
|
|
4735
4739
|
title_field: FieldData | null;
|
|
4736
4740
|
image_preview_field: FieldData | null;
|
|
4737
4741
|
excerpt_field: FieldData | null;
|
|
@@ -4806,6 +4810,8 @@ export type ItemTypeCreateSchema = {
|
|
|
4806
4810
|
*/
|
|
4807
4811
|
inverse_relationships_enabled?: boolean;
|
|
4808
4812
|
ordering_field?: FieldData | null;
|
|
4813
|
+
presentation_title_field?: FieldData | null;
|
|
4814
|
+
presentation_image_field?: FieldData | null;
|
|
4809
4815
|
title_field?: FieldData | null;
|
|
4810
4816
|
image_preview_field?: FieldData | null;
|
|
4811
4817
|
excerpt_field?: FieldData | null;
|
|
@@ -4883,6 +4889,8 @@ export type ItemTypeUpdateSchema = {
|
|
|
4883
4889
|
*/
|
|
4884
4890
|
inverse_relationships_enabled?: boolean;
|
|
4885
4891
|
ordering_field?: FieldData | null;
|
|
4892
|
+
presentation_title_field?: FieldData | null;
|
|
4893
|
+
presentation_image_field?: FieldData | null;
|
|
4886
4894
|
title_field?: FieldData | null;
|
|
4887
4895
|
image_preview_field?: FieldData | null;
|
|
4888
4896
|
excerpt_field?: FieldData | null;
|
|
@@ -6369,7 +6377,7 @@ export type FieldsetUpdateSchema = {
|
|
|
6369
6377
|
export type Session = {
|
|
6370
6378
|
id: SessionIdentity;
|
|
6371
6379
|
type: SessionType;
|
|
6372
|
-
user: UserData;
|
|
6380
|
+
user: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
6373
6381
|
};
|
|
6374
6382
|
export type SessionCreateTargetSchema = Session;
|
|
6375
6383
|
/**
|
|
@@ -6389,7 +6397,7 @@ export type SessionData = {
|
|
|
6389
6397
|
* via the `definition` "relationships".
|
|
6390
6398
|
*/
|
|
6391
6399
|
export type SessionRelationships = {
|
|
6392
|
-
user: UserData;
|
|
6400
|
+
user: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
6393
6401
|
};
|
|
6394
6402
|
/**
|
|
6395
6403
|
* This interface was referenced by `Session`'s JSON-Schema
|
|
@@ -9405,7 +9413,7 @@ export type EditingSession = {
|
|
|
9405
9413
|
locked_at: string | null;
|
|
9406
9414
|
active_item: ItemData;
|
|
9407
9415
|
active_item_type: ItemTypeData;
|
|
9408
|
-
editor: AccountData | AccessTokenData | UserData;
|
|
9416
|
+
editor: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
9409
9417
|
};
|
|
9410
9418
|
export type EditingSessionDestroyTargetSchema = EditingSession;
|
|
9411
9419
|
/**
|
|
@@ -9443,7 +9451,7 @@ export type EditingSessionAttributes = {
|
|
|
9443
9451
|
export type EditingSessionRelationships = {
|
|
9444
9452
|
active_item: ItemData;
|
|
9445
9453
|
active_item_type: ItemTypeData;
|
|
9446
|
-
editor: AccountData | AccessTokenData | UserData;
|
|
9454
|
+
editor: AccountData | AccessTokenData | UserData | SsoUserData | OrganizationData;
|
|
9447
9455
|
};
|
|
9448
9456
|
/**
|
|
9449
9457
|
* Form contents for an editing session
|
|
@@ -10234,7 +10242,7 @@ export type Site = {
|
|
|
10234
10242
|
/**
|
|
10235
10243
|
* Specifies the color space of the output image
|
|
10236
10244
|
*/
|
|
10237
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
10245
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
10238
10246
|
};
|
|
10239
10247
|
/**
|
|
10240
10248
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -10472,7 +10480,7 @@ export type SiteAttributes = {
|
|
|
10472
10480
|
/**
|
|
10473
10481
|
* Specifies the color space of the output image
|
|
10474
10482
|
*/
|
|
10475
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
10483
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
10476
10484
|
};
|
|
10477
10485
|
/**
|
|
10478
10486
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -10759,7 +10767,7 @@ export type SiteUpdateAssetsCdnDefaultSettingsSchema = {
|
|
|
10759
10767
|
/**
|
|
10760
10768
|
* Specifies the color space of the output image
|
|
10761
10769
|
*/
|
|
10762
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
10770
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
10763
10771
|
};
|
|
10764
10772
|
/**
|
|
10765
10773
|
* Allows setting default parameters for optimizing videos served by the CDN
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/cma-client",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.5",
|
|
4
4
|
"description": "JS client for DatoCMS REST Content Management API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"@datocms/dashboard-client": "^3.4.2",
|
|
45
45
|
"@types/uuid": "^9.0.7"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "54dda266335fd21274045fac0551a24b4aeec9a1"
|
|
48
48
|
}
|
package/resources.json
CHANGED
|
@@ -906,6 +906,8 @@
|
|
|
906
906
|
],
|
|
907
907
|
"relationships": [
|
|
908
908
|
"ordering_field",
|
|
909
|
+
"presentation_title_field",
|
|
910
|
+
"presentation_image_field",
|
|
909
911
|
"title_field",
|
|
910
912
|
"image_preview_field",
|
|
911
913
|
"excerpt_field",
|
|
@@ -962,6 +964,8 @@
|
|
|
962
964
|
],
|
|
963
965
|
"relationships": [
|
|
964
966
|
"ordering_field",
|
|
967
|
+
"presentation_title_field",
|
|
968
|
+
"presentation_image_field",
|
|
965
969
|
"title_field",
|
|
966
970
|
"image_preview_field",
|
|
967
971
|
"excerpt_field",
|
package/src/generated/Client.ts
CHANGED
|
@@ -147,7 +147,7 @@ export class Client {
|
|
|
147
147
|
...this.config,
|
|
148
148
|
...options,
|
|
149
149
|
logFn: this.config.logFn || console.log,
|
|
150
|
-
userAgent: '@datocms/cma-client v3.4.
|
|
150
|
+
userAgent: '@datocms/cma-client v3.4.5',
|
|
151
151
|
baseUrl: this.baseUrl,
|
|
152
152
|
preCallStack: new Error().stack,
|
|
153
153
|
extraHeaders: {
|
|
@@ -4442,13 +4442,25 @@ export type ItemTypeRelationships = {
|
|
|
4442
4442
|
data: FieldsetData[];
|
|
4443
4443
|
};
|
|
4444
4444
|
/**
|
|
4445
|
-
* The field to use as
|
|
4445
|
+
* The field to use as presentation title
|
|
4446
|
+
*/
|
|
4447
|
+
presentation_title_field: {
|
|
4448
|
+
data: FieldData | null;
|
|
4449
|
+
};
|
|
4450
|
+
/**
|
|
4451
|
+
* The field to use as presentation image
|
|
4452
|
+
*/
|
|
4453
|
+
presentation_image_field: {
|
|
4454
|
+
data: FieldData | null;
|
|
4455
|
+
};
|
|
4456
|
+
/**
|
|
4457
|
+
* The field to use as fallback title for SEO purposes
|
|
4446
4458
|
*/
|
|
4447
4459
|
title_field: {
|
|
4448
4460
|
data: FieldData | null;
|
|
4449
4461
|
};
|
|
4450
4462
|
/**
|
|
4451
|
-
* The field to use as
|
|
4463
|
+
* The field to use as fallback image for SEO purposes
|
|
4452
4464
|
*/
|
|
4453
4465
|
image_preview_field: {
|
|
4454
4466
|
data: FieldData | null;
|
|
@@ -4616,13 +4628,25 @@ export type ItemTypeCreateSchema = {
|
|
|
4616
4628
|
data: FieldData | null;
|
|
4617
4629
|
};
|
|
4618
4630
|
/**
|
|
4619
|
-
* The field to use as
|
|
4631
|
+
* The field to use as presentation title
|
|
4632
|
+
*/
|
|
4633
|
+
presentation_title_field?: {
|
|
4634
|
+
data: FieldData | null;
|
|
4635
|
+
};
|
|
4636
|
+
/**
|
|
4637
|
+
* The field to use as presentation image
|
|
4638
|
+
*/
|
|
4639
|
+
presentation_image_field?: {
|
|
4640
|
+
data: FieldData | null;
|
|
4641
|
+
};
|
|
4642
|
+
/**
|
|
4643
|
+
* The field to use as fallback title for SEO purposes
|
|
4620
4644
|
*/
|
|
4621
4645
|
title_field?: {
|
|
4622
4646
|
data: FieldData | null;
|
|
4623
4647
|
};
|
|
4624
4648
|
/**
|
|
4625
|
-
* The field to use as
|
|
4649
|
+
* The field to use as fallback image for SEO purposes
|
|
4626
4650
|
*/
|
|
4627
4651
|
image_preview_field?: {
|
|
4628
4652
|
data: FieldData | null;
|
|
@@ -4742,13 +4766,25 @@ export type ItemTypeUpdateSchema = {
|
|
|
4742
4766
|
data: FieldData | null;
|
|
4743
4767
|
};
|
|
4744
4768
|
/**
|
|
4745
|
-
* The field to use as
|
|
4769
|
+
* The field to use as presentation title
|
|
4770
|
+
*/
|
|
4771
|
+
presentation_title_field?: {
|
|
4772
|
+
data: FieldData | null;
|
|
4773
|
+
};
|
|
4774
|
+
/**
|
|
4775
|
+
* The field to use as presentation image
|
|
4776
|
+
*/
|
|
4777
|
+
presentation_image_field?: {
|
|
4778
|
+
data: FieldData | null;
|
|
4779
|
+
};
|
|
4780
|
+
/**
|
|
4781
|
+
* The field to use as fallback title for SEO purposes
|
|
4746
4782
|
*/
|
|
4747
4783
|
title_field?: {
|
|
4748
4784
|
data: FieldData | null;
|
|
4749
4785
|
};
|
|
4750
4786
|
/**
|
|
4751
|
-
* The field to use as
|
|
4787
|
+
* The field to use as fallback image for SEO purposes
|
|
4752
4788
|
*/
|
|
4753
4789
|
image_preview_field?: {
|
|
4754
4790
|
data: FieldData | null;
|
|
@@ -6547,7 +6583,12 @@ export type SessionRelationships = {
|
|
|
6547
6583
|
* The user associated with the session
|
|
6548
6584
|
*/
|
|
6549
6585
|
user: {
|
|
6550
|
-
data:
|
|
6586
|
+
data:
|
|
6587
|
+
| AccountData
|
|
6588
|
+
| AccessTokenData
|
|
6589
|
+
| UserData
|
|
6590
|
+
| SsoUserData
|
|
6591
|
+
| OrganizationData;
|
|
6551
6592
|
};
|
|
6552
6593
|
};
|
|
6553
6594
|
|
|
@@ -10677,7 +10718,12 @@ export type EditingSessionRelationships = {
|
|
|
10677
10718
|
* The entity (account/editor/access token) who has accessed the record
|
|
10678
10719
|
*/
|
|
10679
10720
|
editor: {
|
|
10680
|
-
data:
|
|
10721
|
+
data:
|
|
10722
|
+
| AccountData
|
|
10723
|
+
| AccessTokenData
|
|
10724
|
+
| UserData
|
|
10725
|
+
| SsoUserData
|
|
10726
|
+
| OrganizationData;
|
|
10681
10727
|
};
|
|
10682
10728
|
};
|
|
10683
10729
|
|
|
@@ -11631,7 +11677,7 @@ export type SiteAttributes = {
|
|
|
11631
11677
|
/**
|
|
11632
11678
|
* Specifies the color space of the output image
|
|
11633
11679
|
*/
|
|
11634
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
11680
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
11635
11681
|
};
|
|
11636
11682
|
/**
|
|
11637
11683
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -12084,7 +12130,7 @@ export type SiteUpdateAssetsCdnDefaultSettingsSchema = {
|
|
|
12084
12130
|
/**
|
|
12085
12131
|
* Specifies the color space of the output image
|
|
12086
12132
|
*/
|
|
12087
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
12133
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
12088
12134
|
};
|
|
12089
12135
|
/**
|
|
12090
12136
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -4873,6 +4873,8 @@ export type ItemType = {
|
|
|
4873
4873
|
singleton_item: ItemData | null;
|
|
4874
4874
|
fields: FieldData[];
|
|
4875
4875
|
fieldsets: FieldsetData[];
|
|
4876
|
+
presentation_title_field: FieldData | null;
|
|
4877
|
+
presentation_image_field: FieldData | null;
|
|
4876
4878
|
title_field: FieldData | null;
|
|
4877
4879
|
image_preview_field: FieldData | null;
|
|
4878
4880
|
excerpt_field: FieldData | null;
|
|
@@ -5030,6 +5032,8 @@ export type ItemTypeRelationships = {
|
|
|
5030
5032
|
singleton_item: ItemData | null;
|
|
5031
5033
|
fields: FieldData[];
|
|
5032
5034
|
fieldsets: FieldsetData[];
|
|
5035
|
+
presentation_title_field: FieldData | null;
|
|
5036
|
+
presentation_image_field: FieldData | null;
|
|
5033
5037
|
title_field: FieldData | null;
|
|
5034
5038
|
image_preview_field: FieldData | null;
|
|
5035
5039
|
excerpt_field: FieldData | null;
|
|
@@ -5110,6 +5114,8 @@ export type ItemTypeCreateSchema = {
|
|
|
5110
5114
|
*/
|
|
5111
5115
|
inverse_relationships_enabled?: boolean;
|
|
5112
5116
|
ordering_field?: FieldData | null;
|
|
5117
|
+
presentation_title_field?: FieldData | null;
|
|
5118
|
+
presentation_image_field?: FieldData | null;
|
|
5113
5119
|
title_field?: FieldData | null;
|
|
5114
5120
|
image_preview_field?: FieldData | null;
|
|
5115
5121
|
excerpt_field?: FieldData | null;
|
|
@@ -5193,6 +5199,8 @@ export type ItemTypeUpdateSchema = {
|
|
|
5193
5199
|
*/
|
|
5194
5200
|
inverse_relationships_enabled?: boolean;
|
|
5195
5201
|
ordering_field?: FieldData | null;
|
|
5202
|
+
presentation_title_field?: FieldData | null;
|
|
5203
|
+
presentation_image_field?: FieldData | null;
|
|
5196
5204
|
title_field?: FieldData | null;
|
|
5197
5205
|
image_preview_field?: FieldData | null;
|
|
5198
5206
|
excerpt_field?: FieldData | null;
|
|
@@ -6788,7 +6796,12 @@ export type FieldsetUpdateSchema = {
|
|
|
6788
6796
|
export type Session = {
|
|
6789
6797
|
id: SessionIdentity;
|
|
6790
6798
|
type: SessionType;
|
|
6791
|
-
user:
|
|
6799
|
+
user:
|
|
6800
|
+
| AccountData
|
|
6801
|
+
| AccessTokenData
|
|
6802
|
+
| UserData
|
|
6803
|
+
| SsoUserData
|
|
6804
|
+
| OrganizationData;
|
|
6792
6805
|
};
|
|
6793
6806
|
export type SessionCreateTargetSchema = Session;
|
|
6794
6807
|
/**
|
|
@@ -6809,7 +6822,12 @@ export type SessionData = {
|
|
|
6809
6822
|
* via the `definition` "relationships".
|
|
6810
6823
|
*/
|
|
6811
6824
|
export type SessionRelationships = {
|
|
6812
|
-
user:
|
|
6825
|
+
user:
|
|
6826
|
+
| AccountData
|
|
6827
|
+
| AccessTokenData
|
|
6828
|
+
| UserData
|
|
6829
|
+
| SsoUserData
|
|
6830
|
+
| OrganizationData;
|
|
6813
6831
|
};
|
|
6814
6832
|
|
|
6815
6833
|
/**
|
|
@@ -10206,7 +10224,12 @@ export type EditingSession = {
|
|
|
10206
10224
|
locked_at: string | null;
|
|
10207
10225
|
active_item: ItemData;
|
|
10208
10226
|
active_item_type: ItemTypeData;
|
|
10209
|
-
editor:
|
|
10227
|
+
editor:
|
|
10228
|
+
| AccountData
|
|
10229
|
+
| AccessTokenData
|
|
10230
|
+
| UserData
|
|
10231
|
+
| SsoUserData
|
|
10232
|
+
| OrganizationData;
|
|
10210
10233
|
};
|
|
10211
10234
|
export type EditingSessionDestroyTargetSchema = EditingSession;
|
|
10212
10235
|
/**
|
|
@@ -10246,7 +10269,12 @@ export type EditingSessionAttributes = {
|
|
|
10246
10269
|
export type EditingSessionRelationships = {
|
|
10247
10270
|
active_item: ItemData;
|
|
10248
10271
|
active_item_type: ItemTypeData;
|
|
10249
|
-
editor:
|
|
10272
|
+
editor:
|
|
10273
|
+
| AccountData
|
|
10274
|
+
| AccessTokenData
|
|
10275
|
+
| UserData
|
|
10276
|
+
| SsoUserData
|
|
10277
|
+
| OrganizationData;
|
|
10250
10278
|
};
|
|
10251
10279
|
|
|
10252
10280
|
/**
|
|
@@ -11068,7 +11096,7 @@ export type Site = {
|
|
|
11068
11096
|
/**
|
|
11069
11097
|
* Specifies the color space of the output image
|
|
11070
11098
|
*/
|
|
11071
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
11099
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
11072
11100
|
};
|
|
11073
11101
|
/**
|
|
11074
11102
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -11308,7 +11336,7 @@ export type SiteAttributes = {
|
|
|
11308
11336
|
/**
|
|
11309
11337
|
* Specifies the color space of the output image
|
|
11310
11338
|
*/
|
|
11311
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
11339
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
11312
11340
|
};
|
|
11313
11341
|
/**
|
|
11314
11342
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -11600,7 +11628,7 @@ export type SiteUpdateAssetsCdnDefaultSettingsSchema = {
|
|
|
11600
11628
|
/**
|
|
11601
11629
|
* Specifies the color space of the output image
|
|
11602
11630
|
*/
|
|
11603
|
-
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip';
|
|
11631
|
+
cs?: 'srgb' | 'adobergb1998' | 'tinysrgb' | 'strip' | 'origin';
|
|
11604
11632
|
};
|
|
11605
11633
|
/**
|
|
11606
11634
|
* Allows setting default parameters for optimizing videos served by the CDN
|
|
@@ -40,6 +40,8 @@ export default class ItemType extends BaseResource {
|
|
|
40
40
|
],
|
|
41
41
|
relationships: [
|
|
42
42
|
'ordering_field',
|
|
43
|
+
'presentation_title_field',
|
|
44
|
+
'presentation_image_field',
|
|
43
45
|
'title_field',
|
|
44
46
|
'image_preview_field',
|
|
45
47
|
'excerpt_field',
|
|
@@ -111,6 +113,8 @@ export default class ItemType extends BaseResource {
|
|
|
111
113
|
],
|
|
112
114
|
relationships: [
|
|
113
115
|
'ordering_field',
|
|
116
|
+
'presentation_title_field',
|
|
117
|
+
'presentation_image_field',
|
|
114
118
|
'title_field',
|
|
115
119
|
'image_preview_field',
|
|
116
120
|
'excerpt_field',
|