@guardian/content-api-models 4.0.1-SNAPSHOT
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/auxiliaryatomevent/v1/auxiliaryAtom.d.ts +14 -0
- package/auxiliaryatomevent/v1/auxiliaryAtom.js +70 -0
- package/auxiliaryatomevent/v1/auxiliaryAtomEvent.d.ts +17 -0
- package/auxiliaryatomevent/v1/auxiliaryAtomEvent.js +100 -0
- package/auxiliaryatomevent/v1/eventType.d.ts +9 -0
- package/auxiliaryatomevent/v1/eventType.js +13 -0
- package/crier/event/v1/deletedContent.d.ts +14 -0
- package/crier/event/v1/deletedContent.js +70 -0
- package/crier/event/v1/event.d.ts +21 -0
- package/crier/event/v1/event.js +116 -0
- package/crier/event/v1/eventPayload.d.ts +27 -0
- package/crier/event/v1/eventPayload.js +118 -0
- package/crier/event/v1/eventType.d.ts +10 -0
- package/crier/event/v1/eventType.js +14 -0
- package/crier/event/v1/itemType.d.ts +12 -0
- package/crier/event/v1/itemType.js +16 -0
- package/crier/event/v1/retrievableContent.d.ts +21 -0
- package/crier/event/v1/retrievableContent.js +145 -0
- package/fastly/event/v1/contentDecachedEvent.d.ts +19 -0
- package/fastly/event/v1/contentDecachedEvent.js +100 -0
- package/fastly/event/v1/eventType.d.ts +9 -0
- package/fastly/event/v1/eventType.js +13 -0
- package/package.json +24 -0
- package/tsconfig.json +14 -0
- package/v1/aliasPath.d.ts +15 -0
- package/v1/aliasPath.js +71 -0
- package/v1/asset.d.ts +18 -0
- package/v1/asset.js +101 -0
- package/v1/assetFields.d.ts +85 -0
- package/v1/assetFields.js +1106 -0
- package/v1/assetType.d.ts +13 -0
- package/v1/assetType.js +17 -0
- package/v1/atomUsageResponse.d.ts +20 -0
- package/v1/atomUsageResponse.js +174 -0
- package/v1/atoms.d.ts +29 -0
- package/v1/atoms.js +490 -0
- package/v1/atomsResponse.d.ts +21 -0
- package/v1/atomsResponse.js +175 -0
- package/v1/audioElementFields.d.ts +25 -0
- package/v1/audioElementFields.js +235 -0
- package/v1/block.d.ts +30 -0
- package/v1/block.js +283 -0
- package/v1/blockAttributes.d.ts +18 -0
- package/v1/blockAttributes.js +116 -0
- package/v1/blockElement.d.ts +60 -0
- package/v1/blockElement.js +451 -0
- package/v1/blocks.d.ts +19 -0
- package/v1/blocks.js +144 -0
- package/v1/calloutElementFields.d.ts +17 -0
- package/v1/calloutElementFields.js +115 -0
- package/v1/capiDateTime.d.ts +15 -0
- package/v1/capiDateTime.js +70 -0
- package/v1/cartoonElementFields.d.ts +22 -0
- package/v1/cartoonElementFields.js +190 -0
- package/v1/cartoonImage.d.ts +17 -0
- package/v1/cartoonImage.js +115 -0
- package/v1/cartoonVariant.d.ts +15 -0
- package/v1/cartoonVariant.js +85 -0
- package/v1/channelFields.d.ts +15 -0
- package/v1/channelFields.js +71 -0
- package/v1/codeElementFields.d.ts +14 -0
- package/v1/codeElementFields.js +70 -0
- package/v1/commentElementFields.d.ts +24 -0
- package/v1/commentElementFields.js +220 -0
- package/v1/content.d.ts +53 -0
- package/v1/content.js +516 -0
- package/v1/contentAtomElementFields.d.ts +16 -0
- package/v1/contentAtomElementFields.js +100 -0
- package/v1/contentChannel.d.ts +15 -0
- package/v1/contentChannel.js +71 -0
- package/v1/contentFields.d.ts +67 -0
- package/v1/contentFields.js +821 -0
- package/v1/contentStats.d.ts +27 -0
- package/v1/contentStats.js +265 -0
- package/v1/contentType.d.ts +15 -0
- package/v1/contentType.js +19 -0
- package/v1/crossword.d.ts +31 -0
- package/v1/crossword.js +268 -0
- package/v1/crosswordCreator.d.ts +14 -0
- package/v1/crosswordCreator.js +70 -0
- package/v1/crosswordDimensions.d.ts +14 -0
- package/v1/crosswordDimensions.js +70 -0
- package/v1/crosswordEntry.d.ts +26 -0
- package/v1/crosswordEntry.js +249 -0
- package/v1/crosswordPosition.d.ts +14 -0
- package/v1/crosswordPosition.js +70 -0
- package/v1/crosswordType.d.ts +15 -0
- package/v1/crosswordType.js +19 -0
- package/v1/debug.d.ts +18 -0
- package/v1/debug.js +101 -0
- package/v1/edition.d.ts +17 -0
- package/v1/edition.js +115 -0
- package/v1/editionsResponse.d.ts +17 -0
- package/v1/editionsResponse.js +115 -0
- package/v1/element.d.ts +19 -0
- package/v1/element.js +130 -0
- package/v1/elementType.d.ts +30 -0
- package/v1/elementType.js +34 -0
- package/v1/embedElementFields.d.ts +20 -0
- package/v1/embedElementFields.js +160 -0
- package/v1/embedReach.d.ts +14 -0
- package/v1/embedReach.js +69 -0
- package/v1/embedTracking.d.ts +14 -0
- package/v1/embedTracking.js +58 -0
- package/v1/embedTracksType.d.ts +10 -0
- package/v1/embedTracksType.js +14 -0
- package/v1/entitiesResponse.d.ts +16 -0
- package/v1/entitiesResponse.js +100 -0
- package/v1/errorResponse.d.ts +14 -0
- package/v1/errorResponse.js +70 -0
- package/v1/imageElementFields.d.ts +26 -0
- package/v1/imageElementFields.js +250 -0
- package/v1/instagramElementFields.d.ts +23 -0
- package/v1/instagramElementFields.js +205 -0
- package/v1/interactiveElementFields.d.ts +24 -0
- package/v1/interactiveElementFields.js +220 -0
- package/v1/itemResponse.d.ts +53 -0
- package/v1/itemResponse.js +676 -0
- package/v1/membershipElementFields.d.ts +25 -0
- package/v1/membershipElementFields.js +221 -0
- package/v1/membershipPlaceholder.d.ts +13 -0
- package/v1/membershipPlaceholder.js +55 -0
- package/v1/membershipTier.d.ts +9 -0
- package/v1/membershipTier.js +13 -0
- package/v1/mostViewedVideo.d.ts +14 -0
- package/v1/mostViewedVideo.js +70 -0
- package/v1/networkFront.d.ts +18 -0
- package/v1/networkFront.js +130 -0
- package/v1/office.d.ts +10 -0
- package/v1/office.js +14 -0
- package/v1/package.d.ts +18 -0
- package/v1/package.js +116 -0
- package/v1/packageArticle.d.ts +16 -0
- package/v1/packageArticle.js +72 -0
- package/v1/packagesResponse.d.ts +22 -0
- package/v1/packagesResponse.js +190 -0
- package/v1/pillar.d.ts +15 -0
- package/v1/pillar.js +99 -0
- package/v1/pillarsResponse.d.ts +16 -0
- package/v1/pillarsResponse.js +100 -0
- package/v1/platformType.d.ts +10 -0
- package/v1/platformType.js +14 -0
- package/v1/podcast.d.ts +25 -0
- package/v1/podcast.js +235 -0
- package/v1/podcastCategory.d.ts +14 -0
- package/v1/podcastCategory.js +70 -0
- package/v1/pullquoteElementFields.d.ts +17 -0
- package/v1/pullquoteElementFields.js +115 -0
- package/v1/recipeElementFields.d.ts +13 -0
- package/v1/recipeElementFields.js +55 -0
- package/v1/reference.d.ts +14 -0
- package/v1/reference.js +70 -0
- package/v1/richLinkElementFields.d.ts +19 -0
- package/v1/richLinkElementFields.js +131 -0
- package/v1/rights.d.ts +15 -0
- package/v1/rights.js +89 -0
- package/v1/searchResponse.d.ts +22 -0
- package/v1/searchResponse.js +190 -0
- package/v1/section.d.ts +20 -0
- package/v1/section.js +159 -0
- package/v1/sectionsResponse.d.ts +17 -0
- package/v1/sectionsResponse.js +115 -0
- package/v1/sponsorship.d.ts +27 -0
- package/v1/sponsorship.js +208 -0
- package/v1/sponsorshipLogoDimensions.d.ts +14 -0
- package/v1/sponsorshipLogoDimensions.js +70 -0
- package/v1/sponsorshipTargeting.d.ts +15 -0
- package/v1/sponsorshipTargeting.js +85 -0
- package/v1/sponsorshipType.d.ts +10 -0
- package/v1/sponsorshipType.js +14 -0
- package/v1/standardElementFields.d.ts +25 -0
- package/v1/standardElementFields.js +235 -0
- package/v1/tag.d.ts +42 -0
- package/v1/tag.js +486 -0
- package/v1/tagType.d.ts +19 -0
- package/v1/tagType.js +23 -0
- package/v1/tagsResponse.d.ts +21 -0
- package/v1/tagsResponse.js +175 -0
- package/v1/textElementFields.d.ts +14 -0
- package/v1/textElementFields.js +70 -0
- package/v1/tweetElementFields.d.ts +20 -0
- package/v1/tweetElementFields.js +160 -0
- package/v1/user.d.ts +15 -0
- package/v1/user.js +85 -0
- package/v1/videoElementFields.d.ts +33 -0
- package/v1/videoElementFields.js +355 -0
- package/v1/videoStatsResponse.d.ts +15 -0
- package/v1/videoStatsResponse.js +85 -0
- package/v1/vineElementFields.d.ts +24 -0
- package/v1/vineElementFields.js +220 -0
- package/v1/witnessElementFields.d.ts +40 -0
- package/v1/witnessElementFields.js +446 -0
|
@@ -0,0 +1,821 @@
|
|
|
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.ContentFieldsSerde = void 0;
|
|
9
|
+
var thrift_1 = require("thrift");
|
|
10
|
+
var capiDateTime_1 = require("./capiDateTime");
|
|
11
|
+
var ContentFieldsSerde = /** @class */ (function () {
|
|
12
|
+
function ContentFieldsSerde() {
|
|
13
|
+
}
|
|
14
|
+
ContentFieldsSerde.read = function (protocol) {
|
|
15
|
+
protocol.readStructBegin();
|
|
16
|
+
var result = {};
|
|
17
|
+
while (true) {
|
|
18
|
+
var ret = protocol.readFieldBegin();
|
|
19
|
+
var ftype = ret.ftype;
|
|
20
|
+
var fid = ret.fid;
|
|
21
|
+
if (ftype === thrift_1.Thrift.Type.STOP) {
|
|
22
|
+
break;
|
|
23
|
+
}
|
|
24
|
+
switch (fid) {
|
|
25
|
+
case 1:
|
|
26
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
27
|
+
var value1 = protocol.readString();
|
|
28
|
+
result.headline = value1;
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
protocol.skip(ftype);
|
|
32
|
+
}
|
|
33
|
+
break;
|
|
34
|
+
case 2:
|
|
35
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
36
|
+
var value1 = protocol.readString();
|
|
37
|
+
result.standfirst = value1;
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
protocol.skip(ftype);
|
|
41
|
+
}
|
|
42
|
+
break;
|
|
43
|
+
case 3:
|
|
44
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
45
|
+
var value1 = protocol.readString();
|
|
46
|
+
result.trailText = value1;
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
protocol.skip(ftype);
|
|
50
|
+
}
|
|
51
|
+
break;
|
|
52
|
+
case 4:
|
|
53
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
54
|
+
var value1 = protocol.readString();
|
|
55
|
+
result.byline = value1;
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
protocol.skip(ftype);
|
|
59
|
+
}
|
|
60
|
+
break;
|
|
61
|
+
case 5:
|
|
62
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
63
|
+
var value1 = protocol.readString();
|
|
64
|
+
result.main = value1;
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
protocol.skip(ftype);
|
|
68
|
+
}
|
|
69
|
+
break;
|
|
70
|
+
case 6:
|
|
71
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
72
|
+
var value1 = protocol.readString();
|
|
73
|
+
result.body = value1;
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
protocol.skip(ftype);
|
|
77
|
+
}
|
|
78
|
+
break;
|
|
79
|
+
case 7:
|
|
80
|
+
if (ftype === thrift_1.Thrift.Type.I32) {
|
|
81
|
+
var value1 = protocol.readI32();
|
|
82
|
+
result.newspaperPageNumber = value1;
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
protocol.skip(ftype);
|
|
86
|
+
}
|
|
87
|
+
break;
|
|
88
|
+
case 8:
|
|
89
|
+
if (ftype === thrift_1.Thrift.Type.I32) {
|
|
90
|
+
var value1 = protocol.readI32();
|
|
91
|
+
result.starRating = value1;
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
protocol.skip(ftype);
|
|
95
|
+
}
|
|
96
|
+
break;
|
|
97
|
+
case 9:
|
|
98
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
99
|
+
var value1 = protocol.readString();
|
|
100
|
+
result.contributorBio = value1;
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
protocol.skip(ftype);
|
|
104
|
+
}
|
|
105
|
+
break;
|
|
106
|
+
case 10:
|
|
107
|
+
if (ftype === thrift_1.Thrift.Type.I32) {
|
|
108
|
+
var value1 = protocol.readI32();
|
|
109
|
+
result.membershipAccess = value1;
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
protocol.skip(ftype);
|
|
113
|
+
}
|
|
114
|
+
break;
|
|
115
|
+
case 11:
|
|
116
|
+
if (ftype === thrift_1.Thrift.Type.I32) {
|
|
117
|
+
var value1 = protocol.readI32();
|
|
118
|
+
result.wordcount = value1;
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
protocol.skip(ftype);
|
|
122
|
+
}
|
|
123
|
+
break;
|
|
124
|
+
case 12:
|
|
125
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
126
|
+
var value1 = capiDateTime_1.CapiDateTimeSerde.read(protocol);
|
|
127
|
+
result.commentCloseDate = value1;
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
protocol.skip(ftype);
|
|
131
|
+
}
|
|
132
|
+
break;
|
|
133
|
+
case 13:
|
|
134
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
135
|
+
var value1 = protocol.readBool();
|
|
136
|
+
result.commentable = value1;
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
protocol.skip(ftype);
|
|
140
|
+
}
|
|
141
|
+
break;
|
|
142
|
+
case 14:
|
|
143
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
144
|
+
var value1 = capiDateTime_1.CapiDateTimeSerde.read(protocol);
|
|
145
|
+
result.creationDate = value1;
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
protocol.skip(ftype);
|
|
149
|
+
}
|
|
150
|
+
break;
|
|
151
|
+
case 15:
|
|
152
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
153
|
+
var value1 = protocol.readString();
|
|
154
|
+
result.displayHint = value1;
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
protocol.skip(ftype);
|
|
158
|
+
}
|
|
159
|
+
break;
|
|
160
|
+
case 16:
|
|
161
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
162
|
+
var value1 = capiDateTime_1.CapiDateTimeSerde.read(protocol);
|
|
163
|
+
result.firstPublicationDate = value1;
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
protocol.skip(ftype);
|
|
167
|
+
}
|
|
168
|
+
break;
|
|
169
|
+
case 17:
|
|
170
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
171
|
+
var value1 = protocol.readBool();
|
|
172
|
+
result.hasStoryPackage = value1;
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
protocol.skip(ftype);
|
|
176
|
+
}
|
|
177
|
+
break;
|
|
178
|
+
case 18:
|
|
179
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
180
|
+
var value1 = protocol.readString();
|
|
181
|
+
result.internalComposerCode = value1;
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
protocol.skip(ftype);
|
|
185
|
+
}
|
|
186
|
+
break;
|
|
187
|
+
case 19:
|
|
188
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
189
|
+
var value1 = protocol.readString();
|
|
190
|
+
result.internalOctopusCode = value1;
|
|
191
|
+
}
|
|
192
|
+
else {
|
|
193
|
+
protocol.skip(ftype);
|
|
194
|
+
}
|
|
195
|
+
break;
|
|
196
|
+
case 20:
|
|
197
|
+
if (ftype === thrift_1.Thrift.Type.I32) {
|
|
198
|
+
var value1 = protocol.readI32();
|
|
199
|
+
result.internalPageCode = value1;
|
|
200
|
+
}
|
|
201
|
+
else {
|
|
202
|
+
protocol.skip(ftype);
|
|
203
|
+
}
|
|
204
|
+
break;
|
|
205
|
+
case 21:
|
|
206
|
+
if (ftype === thrift_1.Thrift.Type.I32) {
|
|
207
|
+
var value1 = protocol.readI32();
|
|
208
|
+
result.internalStoryPackageCode = value1;
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
protocol.skip(ftype);
|
|
212
|
+
}
|
|
213
|
+
break;
|
|
214
|
+
case 22:
|
|
215
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
216
|
+
var value1 = protocol.readBool();
|
|
217
|
+
result.isInappropriateForSponsorship = value1;
|
|
218
|
+
}
|
|
219
|
+
else {
|
|
220
|
+
protocol.skip(ftype);
|
|
221
|
+
}
|
|
222
|
+
break;
|
|
223
|
+
case 23:
|
|
224
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
225
|
+
var value1 = protocol.readBool();
|
|
226
|
+
result.isPremoderated = value1;
|
|
227
|
+
}
|
|
228
|
+
else {
|
|
229
|
+
protocol.skip(ftype);
|
|
230
|
+
}
|
|
231
|
+
break;
|
|
232
|
+
case 24:
|
|
233
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
234
|
+
var value1 = capiDateTime_1.CapiDateTimeSerde.read(protocol);
|
|
235
|
+
result.lastModified = value1;
|
|
236
|
+
}
|
|
237
|
+
else {
|
|
238
|
+
protocol.skip(ftype);
|
|
239
|
+
}
|
|
240
|
+
break;
|
|
241
|
+
case 25:
|
|
242
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
243
|
+
var value1 = protocol.readBool();
|
|
244
|
+
result.liveBloggingNow = value1;
|
|
245
|
+
}
|
|
246
|
+
else {
|
|
247
|
+
protocol.skip(ftype);
|
|
248
|
+
}
|
|
249
|
+
break;
|
|
250
|
+
case 26:
|
|
251
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
252
|
+
var value1 = capiDateTime_1.CapiDateTimeSerde.read(protocol);
|
|
253
|
+
result.newspaperEditionDate = value1;
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
protocol.skip(ftype);
|
|
257
|
+
}
|
|
258
|
+
break;
|
|
259
|
+
case 27:
|
|
260
|
+
if (ftype === thrift_1.Thrift.Type.I32) {
|
|
261
|
+
var value1 = protocol.readI32();
|
|
262
|
+
result.productionOffice = value1;
|
|
263
|
+
}
|
|
264
|
+
else {
|
|
265
|
+
protocol.skip(ftype);
|
|
266
|
+
}
|
|
267
|
+
break;
|
|
268
|
+
case 28:
|
|
269
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
270
|
+
var value1 = protocol.readString();
|
|
271
|
+
result.publication = value1;
|
|
272
|
+
}
|
|
273
|
+
else {
|
|
274
|
+
protocol.skip(ftype);
|
|
275
|
+
}
|
|
276
|
+
break;
|
|
277
|
+
case 29:
|
|
278
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
279
|
+
var value1 = capiDateTime_1.CapiDateTimeSerde.read(protocol);
|
|
280
|
+
result.scheduledPublicationDate = value1;
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
protocol.skip(ftype);
|
|
284
|
+
}
|
|
285
|
+
break;
|
|
286
|
+
case 30:
|
|
287
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
288
|
+
var value1 = protocol.readString();
|
|
289
|
+
result.secureThumbnail = value1;
|
|
290
|
+
}
|
|
291
|
+
else {
|
|
292
|
+
protocol.skip(ftype);
|
|
293
|
+
}
|
|
294
|
+
break;
|
|
295
|
+
case 31:
|
|
296
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
297
|
+
var value1 = protocol.readString();
|
|
298
|
+
result.shortUrl = value1;
|
|
299
|
+
}
|
|
300
|
+
else {
|
|
301
|
+
protocol.skip(ftype);
|
|
302
|
+
}
|
|
303
|
+
break;
|
|
304
|
+
case 32:
|
|
305
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
306
|
+
var value1 = protocol.readBool();
|
|
307
|
+
result.shouldHideAdverts = value1;
|
|
308
|
+
}
|
|
309
|
+
else {
|
|
310
|
+
protocol.skip(ftype);
|
|
311
|
+
}
|
|
312
|
+
break;
|
|
313
|
+
case 33:
|
|
314
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
315
|
+
var value1 = protocol.readBool();
|
|
316
|
+
result.showInRelatedContent = value1;
|
|
317
|
+
}
|
|
318
|
+
else {
|
|
319
|
+
protocol.skip(ftype);
|
|
320
|
+
}
|
|
321
|
+
break;
|
|
322
|
+
case 34:
|
|
323
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
324
|
+
var value1 = protocol.readString();
|
|
325
|
+
result.thumbnail = value1;
|
|
326
|
+
}
|
|
327
|
+
else {
|
|
328
|
+
protocol.skip(ftype);
|
|
329
|
+
}
|
|
330
|
+
break;
|
|
331
|
+
case 35:
|
|
332
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
333
|
+
var value1 = protocol.readBool();
|
|
334
|
+
result.legallySensitive = value1;
|
|
335
|
+
}
|
|
336
|
+
else {
|
|
337
|
+
protocol.skip(ftype);
|
|
338
|
+
}
|
|
339
|
+
break;
|
|
340
|
+
case 36:
|
|
341
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
342
|
+
var value1 = protocol.readBool();
|
|
343
|
+
result.allowUgc = value1;
|
|
344
|
+
}
|
|
345
|
+
else {
|
|
346
|
+
protocol.skip(ftype);
|
|
347
|
+
}
|
|
348
|
+
break;
|
|
349
|
+
case 37:
|
|
350
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
351
|
+
var value1 = protocol.readBool();
|
|
352
|
+
result.sensitive = value1;
|
|
353
|
+
}
|
|
354
|
+
else {
|
|
355
|
+
protocol.skip(ftype);
|
|
356
|
+
}
|
|
357
|
+
break;
|
|
358
|
+
case 38:
|
|
359
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
360
|
+
var value1 = protocol.readString();
|
|
361
|
+
result.lang = value1;
|
|
362
|
+
}
|
|
363
|
+
else {
|
|
364
|
+
protocol.skip(ftype);
|
|
365
|
+
}
|
|
366
|
+
break;
|
|
367
|
+
case 39:
|
|
368
|
+
if (ftype === thrift_1.Thrift.Type.I32) {
|
|
369
|
+
var value1 = protocol.readI32();
|
|
370
|
+
result.internalRevision = value1;
|
|
371
|
+
}
|
|
372
|
+
else {
|
|
373
|
+
protocol.skip(ftype);
|
|
374
|
+
}
|
|
375
|
+
break;
|
|
376
|
+
case 40:
|
|
377
|
+
if (ftype === thrift_1.Thrift.Type.I32) {
|
|
378
|
+
var value1 = protocol.readI32();
|
|
379
|
+
result.internalContentCode = value1;
|
|
380
|
+
}
|
|
381
|
+
else {
|
|
382
|
+
protocol.skip(ftype);
|
|
383
|
+
}
|
|
384
|
+
break;
|
|
385
|
+
case 41:
|
|
386
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
387
|
+
var value1 = protocol.readBool();
|
|
388
|
+
result.isLive = value1;
|
|
389
|
+
}
|
|
390
|
+
else {
|
|
391
|
+
protocol.skip(ftype);
|
|
392
|
+
}
|
|
393
|
+
break;
|
|
394
|
+
case 42:
|
|
395
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
396
|
+
var value1 = protocol.readString();
|
|
397
|
+
result.internalShortId = value1;
|
|
398
|
+
}
|
|
399
|
+
else {
|
|
400
|
+
protocol.skip(ftype);
|
|
401
|
+
}
|
|
402
|
+
break;
|
|
403
|
+
case 43:
|
|
404
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
405
|
+
var value1 = protocol.readString();
|
|
406
|
+
result.shortSocialShareText = value1;
|
|
407
|
+
}
|
|
408
|
+
else {
|
|
409
|
+
protocol.skip(ftype);
|
|
410
|
+
}
|
|
411
|
+
break;
|
|
412
|
+
case 44:
|
|
413
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
414
|
+
var value1 = protocol.readString();
|
|
415
|
+
result.socialShareText = value1;
|
|
416
|
+
}
|
|
417
|
+
else {
|
|
418
|
+
protocol.skip(ftype);
|
|
419
|
+
}
|
|
420
|
+
break;
|
|
421
|
+
case 45:
|
|
422
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
423
|
+
var value1 = protocol.readString();
|
|
424
|
+
result.bodyText = value1;
|
|
425
|
+
}
|
|
426
|
+
else {
|
|
427
|
+
protocol.skip(ftype);
|
|
428
|
+
}
|
|
429
|
+
break;
|
|
430
|
+
case 46:
|
|
431
|
+
if (ftype === thrift_1.Thrift.Type.I32) {
|
|
432
|
+
var value1 = protocol.readI32();
|
|
433
|
+
result.charCount = value1;
|
|
434
|
+
}
|
|
435
|
+
else {
|
|
436
|
+
protocol.skip(ftype);
|
|
437
|
+
}
|
|
438
|
+
break;
|
|
439
|
+
case 47:
|
|
440
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
441
|
+
var value1 = protocol.readString();
|
|
442
|
+
result.internalVideoCode = value1;
|
|
443
|
+
}
|
|
444
|
+
else {
|
|
445
|
+
protocol.skip(ftype);
|
|
446
|
+
}
|
|
447
|
+
break;
|
|
448
|
+
case 48:
|
|
449
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
450
|
+
var value1 = protocol.readBool();
|
|
451
|
+
result.shouldHideReaderRevenue = value1;
|
|
452
|
+
}
|
|
453
|
+
else {
|
|
454
|
+
protocol.skip(ftype);
|
|
455
|
+
}
|
|
456
|
+
break;
|
|
457
|
+
case 49:
|
|
458
|
+
if (ftype === thrift_1.Thrift.Type.I32) {
|
|
459
|
+
var value1 = protocol.readI32();
|
|
460
|
+
result.internalCommissionedWordcount = value1;
|
|
461
|
+
}
|
|
462
|
+
else {
|
|
463
|
+
protocol.skip(ftype);
|
|
464
|
+
}
|
|
465
|
+
break;
|
|
466
|
+
case 50:
|
|
467
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
468
|
+
var value1 = protocol.readBool();
|
|
469
|
+
result.showAffiliateLinks = value1;
|
|
470
|
+
}
|
|
471
|
+
else {
|
|
472
|
+
protocol.skip(ftype);
|
|
473
|
+
}
|
|
474
|
+
break;
|
|
475
|
+
case 51:
|
|
476
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
477
|
+
var value1 = protocol.readString();
|
|
478
|
+
result.bylineHtml = value1;
|
|
479
|
+
}
|
|
480
|
+
else {
|
|
481
|
+
protocol.skip(ftype);
|
|
482
|
+
}
|
|
483
|
+
break;
|
|
484
|
+
case 52:
|
|
485
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
486
|
+
var value1 = protocol.readBool();
|
|
487
|
+
result.showTableOfContents = value1;
|
|
488
|
+
}
|
|
489
|
+
else {
|
|
490
|
+
protocol.skip(ftype);
|
|
491
|
+
}
|
|
492
|
+
break;
|
|
493
|
+
default:
|
|
494
|
+
protocol.skip(ftype);
|
|
495
|
+
}
|
|
496
|
+
protocol.readFieldEnd();
|
|
497
|
+
}
|
|
498
|
+
protocol.readStructEnd();
|
|
499
|
+
// @ts-ignore
|
|
500
|
+
return result;
|
|
501
|
+
};
|
|
502
|
+
ContentFieldsSerde.write = function (protocol, value0) {
|
|
503
|
+
protocol.writeStructBegin('ContentFields');
|
|
504
|
+
if (value0.headline !== null && value0.headline !== undefined) {
|
|
505
|
+
var value1 = value0.headline;
|
|
506
|
+
protocol.writeFieldBegin('headline', thrift_1.Thrift.Type.STRING, 1);
|
|
507
|
+
protocol.writeString(value1);
|
|
508
|
+
protocol.writeFieldEnd();
|
|
509
|
+
}
|
|
510
|
+
if (value0.standfirst !== null && value0.standfirst !== undefined) {
|
|
511
|
+
var value1 = value0.standfirst;
|
|
512
|
+
protocol.writeFieldBegin('standfirst', thrift_1.Thrift.Type.STRING, 2);
|
|
513
|
+
protocol.writeString(value1);
|
|
514
|
+
protocol.writeFieldEnd();
|
|
515
|
+
}
|
|
516
|
+
if (value0.trailText !== null && value0.trailText !== undefined) {
|
|
517
|
+
var value1 = value0.trailText;
|
|
518
|
+
protocol.writeFieldBegin('trailText', thrift_1.Thrift.Type.STRING, 3);
|
|
519
|
+
protocol.writeString(value1);
|
|
520
|
+
protocol.writeFieldEnd();
|
|
521
|
+
}
|
|
522
|
+
if (value0.byline !== null && value0.byline !== undefined) {
|
|
523
|
+
var value1 = value0.byline;
|
|
524
|
+
protocol.writeFieldBegin('byline', thrift_1.Thrift.Type.STRING, 4);
|
|
525
|
+
protocol.writeString(value1);
|
|
526
|
+
protocol.writeFieldEnd();
|
|
527
|
+
}
|
|
528
|
+
if (value0.main !== null && value0.main !== undefined) {
|
|
529
|
+
var value1 = value0.main;
|
|
530
|
+
protocol.writeFieldBegin('main', thrift_1.Thrift.Type.STRING, 5);
|
|
531
|
+
protocol.writeString(value1);
|
|
532
|
+
protocol.writeFieldEnd();
|
|
533
|
+
}
|
|
534
|
+
if (value0.body !== null && value0.body !== undefined) {
|
|
535
|
+
var value1 = value0.body;
|
|
536
|
+
protocol.writeFieldBegin('body', thrift_1.Thrift.Type.STRING, 6);
|
|
537
|
+
protocol.writeString(value1);
|
|
538
|
+
protocol.writeFieldEnd();
|
|
539
|
+
}
|
|
540
|
+
if (value0.newspaperPageNumber !== null && value0.newspaperPageNumber !== undefined) {
|
|
541
|
+
var value1 = value0.newspaperPageNumber;
|
|
542
|
+
protocol.writeFieldBegin('newspaperPageNumber', thrift_1.Thrift.Type.I32, 7);
|
|
543
|
+
protocol.writeI32(value1);
|
|
544
|
+
protocol.writeFieldEnd();
|
|
545
|
+
}
|
|
546
|
+
if (value0.starRating !== null && value0.starRating !== undefined) {
|
|
547
|
+
var value1 = value0.starRating;
|
|
548
|
+
protocol.writeFieldBegin('starRating', thrift_1.Thrift.Type.I32, 8);
|
|
549
|
+
protocol.writeI32(value1);
|
|
550
|
+
protocol.writeFieldEnd();
|
|
551
|
+
}
|
|
552
|
+
if (value0.contributorBio !== null && value0.contributorBio !== undefined) {
|
|
553
|
+
var value1 = value0.contributorBio;
|
|
554
|
+
protocol.writeFieldBegin('contributorBio', thrift_1.Thrift.Type.STRING, 9);
|
|
555
|
+
protocol.writeString(value1);
|
|
556
|
+
protocol.writeFieldEnd();
|
|
557
|
+
}
|
|
558
|
+
if (value0.membershipAccess !== null && value0.membershipAccess !== undefined) {
|
|
559
|
+
var value1 = value0.membershipAccess;
|
|
560
|
+
protocol.writeFieldBegin('membershipAccess', thrift_1.Thrift.Type.I32, 10);
|
|
561
|
+
protocol.writeI32(value1);
|
|
562
|
+
protocol.writeFieldEnd();
|
|
563
|
+
}
|
|
564
|
+
if (value0.wordcount !== null && value0.wordcount !== undefined) {
|
|
565
|
+
var value1 = value0.wordcount;
|
|
566
|
+
protocol.writeFieldBegin('wordcount', thrift_1.Thrift.Type.I32, 11);
|
|
567
|
+
protocol.writeI32(value1);
|
|
568
|
+
protocol.writeFieldEnd();
|
|
569
|
+
}
|
|
570
|
+
if (value0.commentCloseDate !== null && value0.commentCloseDate !== undefined) {
|
|
571
|
+
var value1 = value0.commentCloseDate;
|
|
572
|
+
protocol.writeFieldBegin('commentCloseDate', thrift_1.Thrift.Type.STRUCT, 12);
|
|
573
|
+
capiDateTime_1.CapiDateTimeSerde.write(protocol, value1);
|
|
574
|
+
protocol.writeFieldEnd();
|
|
575
|
+
}
|
|
576
|
+
if (value0.commentable !== null && value0.commentable !== undefined) {
|
|
577
|
+
var value1 = value0.commentable;
|
|
578
|
+
protocol.writeFieldBegin('commentable', thrift_1.Thrift.Type.BOOL, 13);
|
|
579
|
+
protocol.writeBool(value1);
|
|
580
|
+
protocol.writeFieldEnd();
|
|
581
|
+
}
|
|
582
|
+
if (value0.creationDate !== null && value0.creationDate !== undefined) {
|
|
583
|
+
var value1 = value0.creationDate;
|
|
584
|
+
protocol.writeFieldBegin('creationDate', thrift_1.Thrift.Type.STRUCT, 14);
|
|
585
|
+
capiDateTime_1.CapiDateTimeSerde.write(protocol, value1);
|
|
586
|
+
protocol.writeFieldEnd();
|
|
587
|
+
}
|
|
588
|
+
if (value0.displayHint !== null && value0.displayHint !== undefined) {
|
|
589
|
+
var value1 = value0.displayHint;
|
|
590
|
+
protocol.writeFieldBegin('displayHint', thrift_1.Thrift.Type.STRING, 15);
|
|
591
|
+
protocol.writeString(value1);
|
|
592
|
+
protocol.writeFieldEnd();
|
|
593
|
+
}
|
|
594
|
+
if (value0.firstPublicationDate !== null && value0.firstPublicationDate !== undefined) {
|
|
595
|
+
var value1 = value0.firstPublicationDate;
|
|
596
|
+
protocol.writeFieldBegin('firstPublicationDate', thrift_1.Thrift.Type.STRUCT, 16);
|
|
597
|
+
capiDateTime_1.CapiDateTimeSerde.write(protocol, value1);
|
|
598
|
+
protocol.writeFieldEnd();
|
|
599
|
+
}
|
|
600
|
+
if (value0.hasStoryPackage !== null && value0.hasStoryPackage !== undefined) {
|
|
601
|
+
var value1 = value0.hasStoryPackage;
|
|
602
|
+
protocol.writeFieldBegin('hasStoryPackage', thrift_1.Thrift.Type.BOOL, 17);
|
|
603
|
+
protocol.writeBool(value1);
|
|
604
|
+
protocol.writeFieldEnd();
|
|
605
|
+
}
|
|
606
|
+
if (value0.internalComposerCode !== null && value0.internalComposerCode !== undefined) {
|
|
607
|
+
var value1 = value0.internalComposerCode;
|
|
608
|
+
protocol.writeFieldBegin('internalComposerCode', thrift_1.Thrift.Type.STRING, 18);
|
|
609
|
+
protocol.writeString(value1);
|
|
610
|
+
protocol.writeFieldEnd();
|
|
611
|
+
}
|
|
612
|
+
if (value0.internalOctopusCode !== null && value0.internalOctopusCode !== undefined) {
|
|
613
|
+
var value1 = value0.internalOctopusCode;
|
|
614
|
+
protocol.writeFieldBegin('internalOctopusCode', thrift_1.Thrift.Type.STRING, 19);
|
|
615
|
+
protocol.writeString(value1);
|
|
616
|
+
protocol.writeFieldEnd();
|
|
617
|
+
}
|
|
618
|
+
if (value0.internalPageCode !== null && value0.internalPageCode !== undefined) {
|
|
619
|
+
var value1 = value0.internalPageCode;
|
|
620
|
+
protocol.writeFieldBegin('internalPageCode', thrift_1.Thrift.Type.I32, 20);
|
|
621
|
+
protocol.writeI32(value1);
|
|
622
|
+
protocol.writeFieldEnd();
|
|
623
|
+
}
|
|
624
|
+
if (value0.internalStoryPackageCode !== null && value0.internalStoryPackageCode !== undefined) {
|
|
625
|
+
var value1 = value0.internalStoryPackageCode;
|
|
626
|
+
protocol.writeFieldBegin('internalStoryPackageCode', thrift_1.Thrift.Type.I32, 21);
|
|
627
|
+
protocol.writeI32(value1);
|
|
628
|
+
protocol.writeFieldEnd();
|
|
629
|
+
}
|
|
630
|
+
if (value0.isInappropriateForSponsorship !== null && value0.isInappropriateForSponsorship !== undefined) {
|
|
631
|
+
var value1 = value0.isInappropriateForSponsorship;
|
|
632
|
+
protocol.writeFieldBegin('isInappropriateForSponsorship', thrift_1.Thrift.Type.BOOL, 22);
|
|
633
|
+
protocol.writeBool(value1);
|
|
634
|
+
protocol.writeFieldEnd();
|
|
635
|
+
}
|
|
636
|
+
if (value0.isPremoderated !== null && value0.isPremoderated !== undefined) {
|
|
637
|
+
var value1 = value0.isPremoderated;
|
|
638
|
+
protocol.writeFieldBegin('isPremoderated', thrift_1.Thrift.Type.BOOL, 23);
|
|
639
|
+
protocol.writeBool(value1);
|
|
640
|
+
protocol.writeFieldEnd();
|
|
641
|
+
}
|
|
642
|
+
if (value0.lastModified !== null && value0.lastModified !== undefined) {
|
|
643
|
+
var value1 = value0.lastModified;
|
|
644
|
+
protocol.writeFieldBegin('lastModified', thrift_1.Thrift.Type.STRUCT, 24);
|
|
645
|
+
capiDateTime_1.CapiDateTimeSerde.write(protocol, value1);
|
|
646
|
+
protocol.writeFieldEnd();
|
|
647
|
+
}
|
|
648
|
+
if (value0.liveBloggingNow !== null && value0.liveBloggingNow !== undefined) {
|
|
649
|
+
var value1 = value0.liveBloggingNow;
|
|
650
|
+
protocol.writeFieldBegin('liveBloggingNow', thrift_1.Thrift.Type.BOOL, 25);
|
|
651
|
+
protocol.writeBool(value1);
|
|
652
|
+
protocol.writeFieldEnd();
|
|
653
|
+
}
|
|
654
|
+
if (value0.newspaperEditionDate !== null && value0.newspaperEditionDate !== undefined) {
|
|
655
|
+
var value1 = value0.newspaperEditionDate;
|
|
656
|
+
protocol.writeFieldBegin('newspaperEditionDate', thrift_1.Thrift.Type.STRUCT, 26);
|
|
657
|
+
capiDateTime_1.CapiDateTimeSerde.write(protocol, value1);
|
|
658
|
+
protocol.writeFieldEnd();
|
|
659
|
+
}
|
|
660
|
+
if (value0.productionOffice !== null && value0.productionOffice !== undefined) {
|
|
661
|
+
var value1 = value0.productionOffice;
|
|
662
|
+
protocol.writeFieldBegin('productionOffice', thrift_1.Thrift.Type.I32, 27);
|
|
663
|
+
protocol.writeI32(value1);
|
|
664
|
+
protocol.writeFieldEnd();
|
|
665
|
+
}
|
|
666
|
+
if (value0.publication !== null && value0.publication !== undefined) {
|
|
667
|
+
var value1 = value0.publication;
|
|
668
|
+
protocol.writeFieldBegin('publication', thrift_1.Thrift.Type.STRING, 28);
|
|
669
|
+
protocol.writeString(value1);
|
|
670
|
+
protocol.writeFieldEnd();
|
|
671
|
+
}
|
|
672
|
+
if (value0.scheduledPublicationDate !== null && value0.scheduledPublicationDate !== undefined) {
|
|
673
|
+
var value1 = value0.scheduledPublicationDate;
|
|
674
|
+
protocol.writeFieldBegin('scheduledPublicationDate', thrift_1.Thrift.Type.STRUCT, 29);
|
|
675
|
+
capiDateTime_1.CapiDateTimeSerde.write(protocol, value1);
|
|
676
|
+
protocol.writeFieldEnd();
|
|
677
|
+
}
|
|
678
|
+
if (value0.secureThumbnail !== null && value0.secureThumbnail !== undefined) {
|
|
679
|
+
var value1 = value0.secureThumbnail;
|
|
680
|
+
protocol.writeFieldBegin('secureThumbnail', thrift_1.Thrift.Type.STRING, 30);
|
|
681
|
+
protocol.writeString(value1);
|
|
682
|
+
protocol.writeFieldEnd();
|
|
683
|
+
}
|
|
684
|
+
if (value0.shortUrl !== null && value0.shortUrl !== undefined) {
|
|
685
|
+
var value1 = value0.shortUrl;
|
|
686
|
+
protocol.writeFieldBegin('shortUrl', thrift_1.Thrift.Type.STRING, 31);
|
|
687
|
+
protocol.writeString(value1);
|
|
688
|
+
protocol.writeFieldEnd();
|
|
689
|
+
}
|
|
690
|
+
if (value0.shouldHideAdverts !== null && value0.shouldHideAdverts !== undefined) {
|
|
691
|
+
var value1 = value0.shouldHideAdverts;
|
|
692
|
+
protocol.writeFieldBegin('shouldHideAdverts', thrift_1.Thrift.Type.BOOL, 32);
|
|
693
|
+
protocol.writeBool(value1);
|
|
694
|
+
protocol.writeFieldEnd();
|
|
695
|
+
}
|
|
696
|
+
if (value0.showInRelatedContent !== null && value0.showInRelatedContent !== undefined) {
|
|
697
|
+
var value1 = value0.showInRelatedContent;
|
|
698
|
+
protocol.writeFieldBegin('showInRelatedContent', thrift_1.Thrift.Type.BOOL, 33);
|
|
699
|
+
protocol.writeBool(value1);
|
|
700
|
+
protocol.writeFieldEnd();
|
|
701
|
+
}
|
|
702
|
+
if (value0.thumbnail !== null && value0.thumbnail !== undefined) {
|
|
703
|
+
var value1 = value0.thumbnail;
|
|
704
|
+
protocol.writeFieldBegin('thumbnail', thrift_1.Thrift.Type.STRING, 34);
|
|
705
|
+
protocol.writeString(value1);
|
|
706
|
+
protocol.writeFieldEnd();
|
|
707
|
+
}
|
|
708
|
+
if (value0.legallySensitive !== null && value0.legallySensitive !== undefined) {
|
|
709
|
+
var value1 = value0.legallySensitive;
|
|
710
|
+
protocol.writeFieldBegin('legallySensitive', thrift_1.Thrift.Type.BOOL, 35);
|
|
711
|
+
protocol.writeBool(value1);
|
|
712
|
+
protocol.writeFieldEnd();
|
|
713
|
+
}
|
|
714
|
+
if (value0.allowUgc !== null && value0.allowUgc !== undefined) {
|
|
715
|
+
var value1 = value0.allowUgc;
|
|
716
|
+
protocol.writeFieldBegin('allowUgc', thrift_1.Thrift.Type.BOOL, 36);
|
|
717
|
+
protocol.writeBool(value1);
|
|
718
|
+
protocol.writeFieldEnd();
|
|
719
|
+
}
|
|
720
|
+
if (value0.sensitive !== null && value0.sensitive !== undefined) {
|
|
721
|
+
var value1 = value0.sensitive;
|
|
722
|
+
protocol.writeFieldBegin('sensitive', thrift_1.Thrift.Type.BOOL, 37);
|
|
723
|
+
protocol.writeBool(value1);
|
|
724
|
+
protocol.writeFieldEnd();
|
|
725
|
+
}
|
|
726
|
+
if (value0.lang !== null && value0.lang !== undefined) {
|
|
727
|
+
var value1 = value0.lang;
|
|
728
|
+
protocol.writeFieldBegin('lang', thrift_1.Thrift.Type.STRING, 38);
|
|
729
|
+
protocol.writeString(value1);
|
|
730
|
+
protocol.writeFieldEnd();
|
|
731
|
+
}
|
|
732
|
+
if (value0.internalRevision !== null && value0.internalRevision !== undefined) {
|
|
733
|
+
var value1 = value0.internalRevision;
|
|
734
|
+
protocol.writeFieldBegin('internalRevision', thrift_1.Thrift.Type.I32, 39);
|
|
735
|
+
protocol.writeI32(value1);
|
|
736
|
+
protocol.writeFieldEnd();
|
|
737
|
+
}
|
|
738
|
+
if (value0.internalContentCode !== null && value0.internalContentCode !== undefined) {
|
|
739
|
+
var value1 = value0.internalContentCode;
|
|
740
|
+
protocol.writeFieldBegin('internalContentCode', thrift_1.Thrift.Type.I32, 40);
|
|
741
|
+
protocol.writeI32(value1);
|
|
742
|
+
protocol.writeFieldEnd();
|
|
743
|
+
}
|
|
744
|
+
if (value0.isLive !== null && value0.isLive !== undefined) {
|
|
745
|
+
var value1 = value0.isLive;
|
|
746
|
+
protocol.writeFieldBegin('isLive', thrift_1.Thrift.Type.BOOL, 41);
|
|
747
|
+
protocol.writeBool(value1);
|
|
748
|
+
protocol.writeFieldEnd();
|
|
749
|
+
}
|
|
750
|
+
if (value0.internalShortId !== null && value0.internalShortId !== undefined) {
|
|
751
|
+
var value1 = value0.internalShortId;
|
|
752
|
+
protocol.writeFieldBegin('internalShortId', thrift_1.Thrift.Type.STRING, 42);
|
|
753
|
+
protocol.writeString(value1);
|
|
754
|
+
protocol.writeFieldEnd();
|
|
755
|
+
}
|
|
756
|
+
if (value0.shortSocialShareText !== null && value0.shortSocialShareText !== undefined) {
|
|
757
|
+
var value1 = value0.shortSocialShareText;
|
|
758
|
+
protocol.writeFieldBegin('shortSocialShareText', thrift_1.Thrift.Type.STRING, 43);
|
|
759
|
+
protocol.writeString(value1);
|
|
760
|
+
protocol.writeFieldEnd();
|
|
761
|
+
}
|
|
762
|
+
if (value0.socialShareText !== null && value0.socialShareText !== undefined) {
|
|
763
|
+
var value1 = value0.socialShareText;
|
|
764
|
+
protocol.writeFieldBegin('socialShareText', thrift_1.Thrift.Type.STRING, 44);
|
|
765
|
+
protocol.writeString(value1);
|
|
766
|
+
protocol.writeFieldEnd();
|
|
767
|
+
}
|
|
768
|
+
if (value0.bodyText !== null && value0.bodyText !== undefined) {
|
|
769
|
+
var value1 = value0.bodyText;
|
|
770
|
+
protocol.writeFieldBegin('bodyText', thrift_1.Thrift.Type.STRING, 45);
|
|
771
|
+
protocol.writeString(value1);
|
|
772
|
+
protocol.writeFieldEnd();
|
|
773
|
+
}
|
|
774
|
+
if (value0.charCount !== null && value0.charCount !== undefined) {
|
|
775
|
+
var value1 = value0.charCount;
|
|
776
|
+
protocol.writeFieldBegin('charCount', thrift_1.Thrift.Type.I32, 46);
|
|
777
|
+
protocol.writeI32(value1);
|
|
778
|
+
protocol.writeFieldEnd();
|
|
779
|
+
}
|
|
780
|
+
if (value0.internalVideoCode !== null && value0.internalVideoCode !== undefined) {
|
|
781
|
+
var value1 = value0.internalVideoCode;
|
|
782
|
+
protocol.writeFieldBegin('internalVideoCode', thrift_1.Thrift.Type.STRING, 47);
|
|
783
|
+
protocol.writeString(value1);
|
|
784
|
+
protocol.writeFieldEnd();
|
|
785
|
+
}
|
|
786
|
+
if (value0.shouldHideReaderRevenue !== null && value0.shouldHideReaderRevenue !== undefined) {
|
|
787
|
+
var value1 = value0.shouldHideReaderRevenue;
|
|
788
|
+
protocol.writeFieldBegin('shouldHideReaderRevenue', thrift_1.Thrift.Type.BOOL, 48);
|
|
789
|
+
protocol.writeBool(value1);
|
|
790
|
+
protocol.writeFieldEnd();
|
|
791
|
+
}
|
|
792
|
+
if (value0.internalCommissionedWordcount !== null && value0.internalCommissionedWordcount !== undefined) {
|
|
793
|
+
var value1 = value0.internalCommissionedWordcount;
|
|
794
|
+
protocol.writeFieldBegin('internalCommissionedWordcount', thrift_1.Thrift.Type.I32, 49);
|
|
795
|
+
protocol.writeI32(value1);
|
|
796
|
+
protocol.writeFieldEnd();
|
|
797
|
+
}
|
|
798
|
+
if (value0.showAffiliateLinks !== null && value0.showAffiliateLinks !== undefined) {
|
|
799
|
+
var value1 = value0.showAffiliateLinks;
|
|
800
|
+
protocol.writeFieldBegin('showAffiliateLinks', thrift_1.Thrift.Type.BOOL, 50);
|
|
801
|
+
protocol.writeBool(value1);
|
|
802
|
+
protocol.writeFieldEnd();
|
|
803
|
+
}
|
|
804
|
+
if (value0.bylineHtml !== null && value0.bylineHtml !== undefined) {
|
|
805
|
+
var value1 = value0.bylineHtml;
|
|
806
|
+
protocol.writeFieldBegin('bylineHtml', thrift_1.Thrift.Type.STRING, 51);
|
|
807
|
+
protocol.writeString(value1);
|
|
808
|
+
protocol.writeFieldEnd();
|
|
809
|
+
}
|
|
810
|
+
if (value0.showTableOfContents !== null && value0.showTableOfContents !== undefined) {
|
|
811
|
+
var value1 = value0.showTableOfContents;
|
|
812
|
+
protocol.writeFieldBegin('showTableOfContents', thrift_1.Thrift.Type.BOOL, 52);
|
|
813
|
+
protocol.writeBool(value1);
|
|
814
|
+
protocol.writeFieldEnd();
|
|
815
|
+
}
|
|
816
|
+
protocol.writeFieldStop();
|
|
817
|
+
protocol.writeStructEnd();
|
|
818
|
+
};
|
|
819
|
+
return ContentFieldsSerde;
|
|
820
|
+
}());
|
|
821
|
+
exports.ContentFieldsSerde = ContentFieldsSerde;
|