@guardian/content-api-models 30.0.0-PREVIEW.filterproduct-element-temp.2025-09-16T0846.d7403125 → 30.0.0-PREVIEW.filterproduct-element-temp.2025-09-17T1214.873da3a9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  {
3
3
  "name": "@guardian/content-api-models",
4
- "version": "30.0.0-PREVIEW.filterproduct-element-temp.2025-09-16T0846.d7403125",
4
+ "version": "30.0.0-PREVIEW.filterproduct-element-temp.2025-09-17T1214.873da3a9",
5
5
  "description": "Typescript library built from the content api thrift definitions",
6
6
  "repository": {
7
7
  "type": "git",
@@ -4,8 +4,8 @@
4
4
  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
5
  */
6
6
  import { TProtocol } from 'thrift';
7
+ import { BlockElement } from './blockElement';
7
8
  import { CartoonImage } from './cartoonImage';
8
- import { Element } from './element';
9
9
  import { ProductDisplayType } from './productDisplayType';
10
10
  import { Statistic } from './statistic';
11
11
  export interface ProductElementFields {
@@ -24,7 +24,7 @@ export interface ProductElementFields {
24
24
  secondaryPrice?: string;
25
25
  statistics?: Statistic[];
26
26
  image?: CartoonImage;
27
- content?: Element[];
27
+ content?: BlockElement[];
28
28
  displayType: ProductDisplayType;
29
29
  }
30
30
  export declare class ProductElementFieldsSerde {
@@ -7,8 +7,8 @@
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.ProductElementFieldsSerde = void 0;
9
9
  var thrift_1 = require("thrift");
10
+ var blockElement_1 = require("./blockElement");
10
11
  var cartoonImage_1 = require("./cartoonImage");
11
- var element_1 = require("./element");
12
12
  var statistic_1 = require("./statistic");
13
13
  var ProductElementFieldsSerde = /** @class */ (function () {
14
14
  function ProductElementFieldsSerde() {
@@ -176,7 +176,7 @@ var ProductElementFieldsSerde = /** @class */ (function () {
176
176
  var value1 = [];
177
177
  if (listInfo1.etype === thrift_1.Thrift.Type.STRUCT) {
178
178
  for (var i = 0; i < listSize1; i++) {
179
- var value2 = element_1.ElementSerde.read(protocol);
179
+ var value2 = blockElement_1.BlockElementSerde.read(protocol);
180
180
  value1.push(value2);
181
181
  }
182
182
  }
@@ -306,7 +306,7 @@ var ProductElementFieldsSerde = /** @class */ (function () {
306
306
  protocol.writeFieldBegin('content', thrift_1.Thrift.Type.LIST, 16);
307
307
  protocol.writeListBegin(thrift_1.Thrift.Type.STRUCT, value1.length);
308
308
  value1.forEach(function (value2) {
309
- element_1.ElementSerde.write(protocol, value2);
309
+ blockElement_1.BlockElementSerde.write(protocol, value2);
310
310
  });
311
311
  protocol.writeListEnd();
312
312
  protocol.writeFieldEnd();