@guardian/content-api-models 29.0.0 → 30.0.0-PREVIEW.add-new-podcast-fields.2025-08-07T1437.73d8c924
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/contentFields.d.ts +2 -0
- package/v1/contentFields.js +30 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
{
|
|
3
3
|
"name": "@guardian/content-api-models",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "30.0.0-PREVIEW.add-new-podcast-fields.2025-08-07T1437.73d8c924",
|
|
5
5
|
"description": "Typescript library built from the content api thrift definitions",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
package/v1/contentFields.d.ts
CHANGED
|
@@ -60,6 +60,8 @@ export interface ContentFields {
|
|
|
60
60
|
showAffiliateLinks?: boolean;
|
|
61
61
|
bylineHtml?: string;
|
|
62
62
|
showTableOfContents?: boolean;
|
|
63
|
+
podcastEpisodeNumber?: number;
|
|
64
|
+
podcastSeasonNumber?: number;
|
|
63
65
|
}
|
|
64
66
|
export declare class ContentFieldsSerde {
|
|
65
67
|
static read(protocol: TProtocol): ContentFields;
|
package/v1/contentFields.js
CHANGED
|
@@ -490,6 +490,24 @@ var ContentFieldsSerde = /** @class */ (function () {
|
|
|
490
490
|
protocol.skip(ftype);
|
|
491
491
|
}
|
|
492
492
|
break;
|
|
493
|
+
case 53:
|
|
494
|
+
if (ftype === thrift_1.Thrift.Type.I32) {
|
|
495
|
+
var value1 = protocol.readI32();
|
|
496
|
+
result.podcastEpisodeNumber = value1;
|
|
497
|
+
}
|
|
498
|
+
else {
|
|
499
|
+
protocol.skip(ftype);
|
|
500
|
+
}
|
|
501
|
+
break;
|
|
502
|
+
case 54:
|
|
503
|
+
if (ftype === thrift_1.Thrift.Type.I32) {
|
|
504
|
+
var value1 = protocol.readI32();
|
|
505
|
+
result.podcastSeasonNumber = value1;
|
|
506
|
+
}
|
|
507
|
+
else {
|
|
508
|
+
protocol.skip(ftype);
|
|
509
|
+
}
|
|
510
|
+
break;
|
|
493
511
|
default:
|
|
494
512
|
protocol.skip(ftype);
|
|
495
513
|
}
|
|
@@ -813,6 +831,18 @@ var ContentFieldsSerde = /** @class */ (function () {
|
|
|
813
831
|
protocol.writeBool(value1);
|
|
814
832
|
protocol.writeFieldEnd();
|
|
815
833
|
}
|
|
834
|
+
if (value0.podcastEpisodeNumber !== null && value0.podcastEpisodeNumber !== undefined) {
|
|
835
|
+
var value1 = value0.podcastEpisodeNumber;
|
|
836
|
+
protocol.writeFieldBegin('podcastEpisodeNumber', thrift_1.Thrift.Type.I32, 53);
|
|
837
|
+
protocol.writeI32(value1);
|
|
838
|
+
protocol.writeFieldEnd();
|
|
839
|
+
}
|
|
840
|
+
if (value0.podcastSeasonNumber !== null && value0.podcastSeasonNumber !== undefined) {
|
|
841
|
+
var value1 = value0.podcastSeasonNumber;
|
|
842
|
+
protocol.writeFieldBegin('podcastSeasonNumber', thrift_1.Thrift.Type.I32, 54);
|
|
843
|
+
protocol.writeI32(value1);
|
|
844
|
+
protocol.writeFieldEnd();
|
|
845
|
+
}
|
|
816
846
|
protocol.writeFieldStop();
|
|
817
847
|
protocol.writeStructEnd();
|
|
818
848
|
};
|