@guardian/content-api-models 32.0.0-PREVIEW.filterproduct-element-temp.2025-10-17T1357.19edb5e8 → 32.0.0
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/package.json +1 -1
- package/v1/blockElement.d.ts +1 -1
- package/v1/blockElement.js +4 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
{
|
|
3
3
|
"name": "@guardian/content-api-models",
|
|
4
|
-
"version": "32.0.0
|
|
4
|
+
"version": "32.0.0",
|
|
5
5
|
"description": "Typescript library built from the content api thrift definitions",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
package/v1/blockElement.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export interface BlockElement {
|
|
|
60
60
|
listTypeData?: ListElementFields;
|
|
61
61
|
timelineTypeData?: TimelineElementFields;
|
|
62
62
|
linkTypeData?: LinkElementFields;
|
|
63
|
-
|
|
63
|
+
productTypeData?: ProductElementFields;
|
|
64
64
|
}
|
|
65
65
|
export declare class BlockElementSerde {
|
|
66
66
|
static read(protocol: TProtocol): BlockElement;
|
package/v1/blockElement.js
CHANGED
|
@@ -312,7 +312,7 @@ var BlockElementSerde = /** @class */ (function () {
|
|
|
312
312
|
case 29:
|
|
313
313
|
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
314
314
|
var value1 = productElementFields_1.ProductElementFieldsSerde.read(protocol);
|
|
315
|
-
result.
|
|
315
|
+
result.productTypeData = value1;
|
|
316
316
|
}
|
|
317
317
|
else {
|
|
318
318
|
protocol.skip(ftype);
|
|
@@ -501,9 +501,9 @@ var BlockElementSerde = /** @class */ (function () {
|
|
|
501
501
|
linkElementFields_1.LinkElementFieldsSerde.write(protocol, value1);
|
|
502
502
|
protocol.writeFieldEnd();
|
|
503
503
|
}
|
|
504
|
-
if (value0.
|
|
505
|
-
var value1 = value0.
|
|
506
|
-
protocol.writeFieldBegin('
|
|
504
|
+
if (value0.productTypeData !== null && value0.productTypeData !== undefined) {
|
|
505
|
+
var value1 = value0.productTypeData;
|
|
506
|
+
protocol.writeFieldBegin('productTypeData', thrift_1.Thrift.Type.STRUCT, 29);
|
|
507
507
|
productElementFields_1.ProductElementFieldsSerde.write(protocol, value1);
|
|
508
508
|
protocol.writeFieldEnd();
|
|
509
509
|
}
|