@datocms/cma-client 3.4.4 → 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 +42 -6
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +8 -0
- 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 +42 -6
- package/dist/types/generated/SimpleSchemaTypes.d.ts +8 -0
- package/package.json +2 -2
- package/resources.json +4 -0
- package/src/generated/Client.ts +1 -1
- package/src/generated/SchemaTypes.ts +42 -6
- package/src/generated/SimpleSchemaTypes.ts +8 -0
- 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;
|
|
@@ -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;
|
|
@@ -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,OAAO,YAAY,MAAM,oBAAoB,CAAC;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,qBAAqB;gBACrB,eAAe;gBACf,UAAU;aACX;SACF,CAAC,EACF,WAAW,CACZ,CAAC,IAAI,CAAC,UAAC,IAAI;YACV,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,4BAAS,G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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,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;
|
|
@@ -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;
|
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;
|
|
@@ -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;
|
|
@@ -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',
|