@guardian/content-api-models 17.7.0-beta.0 → 17.7.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": "17.7.0-beta.0",
4
+ "version": "17.7.0",
5
5
  "description": "Typescript library built from the content api thrift definitions",
6
6
  "repository": {
7
7
  "type": "git",
@@ -13,6 +13,8 @@ export interface CartoonElementFields {
13
13
  alt?: string;
14
14
  source?: string;
15
15
  displayCredit?: boolean;
16
+ photographer?: string;
17
+ imageType?: string;
16
18
  }
17
19
  export declare class CartoonElementFieldsSerde {
18
20
  static read(protocol: TProtocol): CartoonElementFields;
@@ -95,6 +95,24 @@ var CartoonElementFieldsSerde = /** @class */ (function () {
95
95
  protocol.skip(ftype);
96
96
  }
97
97
  break;
98
+ case 8:
99
+ if (ftype === thrift_1.Thrift.Type.STRING) {
100
+ var value1 = protocol.readString();
101
+ result.photographer = value1;
102
+ }
103
+ else {
104
+ protocol.skip(ftype);
105
+ }
106
+ break;
107
+ case 9:
108
+ if (ftype === thrift_1.Thrift.Type.STRING) {
109
+ var value1 = protocol.readString();
110
+ result.imageType = value1;
111
+ }
112
+ else {
113
+ protocol.skip(ftype);
114
+ }
115
+ break;
98
116
  default:
99
117
  protocol.skip(ftype);
100
118
  }
@@ -152,6 +170,18 @@ var CartoonElementFieldsSerde = /** @class */ (function () {
152
170
  protocol.writeBool(value1);
153
171
  protocol.writeFieldEnd();
154
172
  }
173
+ if (value0.photographer !== null && value0.photographer !== undefined) {
174
+ var value1 = value0.photographer;
175
+ protocol.writeFieldBegin('photographer', thrift_1.Thrift.Type.STRING, 8);
176
+ protocol.writeString(value1);
177
+ protocol.writeFieldEnd();
178
+ }
179
+ if (value0.imageType !== null && value0.imageType !== undefined) {
180
+ var value1 = value0.imageType;
181
+ protocol.writeFieldBegin('imageType', thrift_1.Thrift.Type.STRING, 9);
182
+ protocol.writeString(value1);
183
+ protocol.writeFieldEnd();
184
+ }
155
185
  protocol.writeFieldStop();
156
186
  protocol.writeStructEnd();
157
187
  };