@guardian/content-api-models 40.0.1 → 41.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 CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  {
3
3
  "name": "@guardian/content-api-models",
4
- "version": "40.0.1",
4
+ "version": "41.0.0",
5
5
  "description": "Typescript library built from the content api thrift definitions",
6
6
  "repository": {
7
7
  "type": "git",
@@ -20,6 +20,7 @@ export interface ProductElementFields {
20
20
  customAttributes?: ProductCustomAttribute[];
21
21
  image?: ProductImage;
22
22
  content?: BlockElement[];
23
+ id?: string;
23
24
  }
24
25
  export declare class ProductElementFieldsSerde {
25
26
  static read(protocol: TProtocol): ProductElementFields;
@@ -141,6 +141,15 @@ class ProductElementFieldsSerde {
141
141
  protocol.skip(ftype);
142
142
  }
143
143
  break;
144
+ case 11:
145
+ if (ftype === thrift_1.Thrift.Type.STRING) {
146
+ const value1 = protocol.readString();
147
+ result.id = value1;
148
+ }
149
+ else {
150
+ protocol.skip(ftype);
151
+ }
152
+ break;
144
153
  default:
145
154
  protocol.skip(ftype);
146
155
  }
@@ -224,6 +233,12 @@ class ProductElementFieldsSerde {
224
233
  protocol.writeListEnd();
225
234
  protocol.writeFieldEnd();
226
235
  }
236
+ if (value0.id !== null && value0.id !== undefined) {
237
+ const value1 = value0.id;
238
+ protocol.writeFieldBegin('id', thrift_1.Thrift.Type.STRING, 11);
239
+ protocol.writeString(value1);
240
+ protocol.writeFieldEnd();
241
+ }
227
242
  protocol.writeFieldStop();
228
243
  protocol.writeStructEnd();
229
244
  }