@guardian/content-api-models 29.0.0 → 30.0.0-PREVIEW.add-new-podcast-fields.2025-08-28T1513.9b26e163

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": "29.0.0",
4
+ "version": "30.0.0-PREVIEW.add-new-podcast-fields.2025-08-28T1513.9b26e163",
5
5
  "description": "Typescript library built from the content api thrift definitions",
6
6
  "repository": {
7
7
  "type": "git",
@@ -4,6 +4,7 @@
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 { PodcastEpisodeType } from './podcastEpisodeType';
7
8
  export interface AudioElementFields {
8
9
  html?: string;
9
10
  source?: string;
@@ -18,6 +19,9 @@ export interface AudioElementFields {
18
19
  role?: string;
19
20
  sourceDomain?: string;
20
21
  isMandatory?: boolean;
22
+ podcastEpisodeNumber?: number;
23
+ podcastSeasonNumber?: number;
24
+ podcastEpisodeType?: PodcastEpisodeType;
21
25
  }
22
26
  export declare class AudioElementFieldsSerde {
23
27
  static read(protocol: TProtocol): AudioElementFields;
@@ -138,6 +138,33 @@ var AudioElementFieldsSerde = /** @class */ (function () {
138
138
  protocol.skip(ftype);
139
139
  }
140
140
  break;
141
+ case 16:
142
+ if (ftype === thrift_1.Thrift.Type.I32) {
143
+ var value1 = protocol.readI32();
144
+ result.podcastEpisodeNumber = value1;
145
+ }
146
+ else {
147
+ protocol.skip(ftype);
148
+ }
149
+ break;
150
+ case 17:
151
+ if (ftype === thrift_1.Thrift.Type.I32) {
152
+ var value1 = protocol.readI32();
153
+ result.podcastSeasonNumber = value1;
154
+ }
155
+ else {
156
+ protocol.skip(ftype);
157
+ }
158
+ break;
159
+ case 18:
160
+ if (ftype === thrift_1.Thrift.Type.I32) {
161
+ var value1 = protocol.readI32();
162
+ result.podcastEpisodeType = value1;
163
+ }
164
+ else {
165
+ protocol.skip(ftype);
166
+ }
167
+ break;
141
168
  default:
142
169
  protocol.skip(ftype);
143
170
  }
@@ -227,6 +254,24 @@ var AudioElementFieldsSerde = /** @class */ (function () {
227
254
  protocol.writeBool(value1);
228
255
  protocol.writeFieldEnd();
229
256
  }
257
+ if (value0.podcastEpisodeNumber !== null && value0.podcastEpisodeNumber !== undefined) {
258
+ var value1 = value0.podcastEpisodeNumber;
259
+ protocol.writeFieldBegin('podcastEpisodeNumber', thrift_1.Thrift.Type.I32, 16);
260
+ protocol.writeI32(value1);
261
+ protocol.writeFieldEnd();
262
+ }
263
+ if (value0.podcastSeasonNumber !== null && value0.podcastSeasonNumber !== undefined) {
264
+ var value1 = value0.podcastSeasonNumber;
265
+ protocol.writeFieldBegin('podcastSeasonNumber', thrift_1.Thrift.Type.I32, 17);
266
+ protocol.writeI32(value1);
267
+ protocol.writeFieldEnd();
268
+ }
269
+ if (value0.podcastEpisodeType !== null && value0.podcastEpisodeType !== undefined) {
270
+ var value1 = value0.podcastEpisodeType;
271
+ protocol.writeFieldBegin('podcastEpisodeType', thrift_1.Thrift.Type.I32, 18);
272
+ protocol.writeI32(value1);
273
+ protocol.writeFieldEnd();
274
+ }
230
275
  protocol.writeFieldStop();
231
276
  protocol.writeStructEnd();
232
277
  };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Autogenerated by scrooge-generator-extras
3
+ *
4
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ */
6
+ export declare enum PodcastEpisodeType {
7
+ FULL = 0,
8
+ TRAILER = 1,
9
+ BONUS = 2
10
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * Autogenerated by scrooge-generator-extras
4
+ *
5
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.PodcastEpisodeType = void 0;
9
+ var PodcastEpisodeType;
10
+ (function (PodcastEpisodeType) {
11
+ PodcastEpisodeType[PodcastEpisodeType["FULL"] = 0] = "FULL";
12
+ PodcastEpisodeType[PodcastEpisodeType["TRAILER"] = 1] = "TRAILER";
13
+ PodcastEpisodeType[PodcastEpisodeType["BONUS"] = 2] = "BONUS";
14
+ })(PodcastEpisodeType || (exports.PodcastEpisodeType = PodcastEpisodeType = {}));