@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,446 @@
|
|
|
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.WitnessElementFieldsSerde = void 0;
|
|
9
|
+
var thrift_1 = require("thrift");
|
|
10
|
+
var capiDateTime_1 = require("./capiDateTime");
|
|
11
|
+
var WitnessElementFieldsSerde = /** @class */ (function () {
|
|
12
|
+
function WitnessElementFieldsSerde() {
|
|
13
|
+
}
|
|
14
|
+
WitnessElementFieldsSerde.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.url = 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.originalUrl = 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.witnessEmbedType = 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.mediaId = 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.source = 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.title = value1;
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
protocol.skip(ftype);
|
|
77
|
+
}
|
|
78
|
+
break;
|
|
79
|
+
case 7:
|
|
80
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
81
|
+
var value1 = protocol.readString();
|
|
82
|
+
result.description = value1;
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
protocol.skip(ftype);
|
|
86
|
+
}
|
|
87
|
+
break;
|
|
88
|
+
case 8:
|
|
89
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
90
|
+
var value1 = protocol.readString();
|
|
91
|
+
result.authorName = 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.authorUsername = value1;
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
protocol.skip(ftype);
|
|
104
|
+
}
|
|
105
|
+
break;
|
|
106
|
+
case 10:
|
|
107
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
108
|
+
var value1 = protocol.readString();
|
|
109
|
+
result.authorWitnessProfileUrl = value1;
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
protocol.skip(ftype);
|
|
113
|
+
}
|
|
114
|
+
break;
|
|
115
|
+
case 11:
|
|
116
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
117
|
+
var value1 = protocol.readString();
|
|
118
|
+
result.authorGuardianProfileUrl = value1;
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
protocol.skip(ftype);
|
|
122
|
+
}
|
|
123
|
+
break;
|
|
124
|
+
case 12:
|
|
125
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
126
|
+
var value1 = protocol.readString();
|
|
127
|
+
result.caption = value1;
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
protocol.skip(ftype);
|
|
131
|
+
}
|
|
132
|
+
break;
|
|
133
|
+
case 13:
|
|
134
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
135
|
+
var value1 = protocol.readString();
|
|
136
|
+
result.alt = value1;
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
protocol.skip(ftype);
|
|
140
|
+
}
|
|
141
|
+
break;
|
|
142
|
+
case 14:
|
|
143
|
+
if (ftype === thrift_1.Thrift.Type.I32) {
|
|
144
|
+
var value1 = protocol.readI32();
|
|
145
|
+
result.width = value1;
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
protocol.skip(ftype);
|
|
149
|
+
}
|
|
150
|
+
break;
|
|
151
|
+
case 15:
|
|
152
|
+
if (ftype === thrift_1.Thrift.Type.I32) {
|
|
153
|
+
var value1 = protocol.readI32();
|
|
154
|
+
result.height = value1;
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
protocol.skip(ftype);
|
|
158
|
+
}
|
|
159
|
+
break;
|
|
160
|
+
case 16:
|
|
161
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
162
|
+
var value1 = protocol.readString();
|
|
163
|
+
result.html = value1;
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
protocol.skip(ftype);
|
|
167
|
+
}
|
|
168
|
+
break;
|
|
169
|
+
case 17:
|
|
170
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
171
|
+
var value1 = protocol.readString();
|
|
172
|
+
result.apiUrl = 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.photographer = value1;
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
protocol.skip(ftype);
|
|
185
|
+
}
|
|
186
|
+
break;
|
|
187
|
+
case 19:
|
|
188
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
189
|
+
var value1 = capiDateTime_1.CapiDateTimeSerde.read(protocol);
|
|
190
|
+
result.dateCreated = value1;
|
|
191
|
+
}
|
|
192
|
+
else {
|
|
193
|
+
protocol.skip(ftype);
|
|
194
|
+
}
|
|
195
|
+
break;
|
|
196
|
+
case 20:
|
|
197
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
198
|
+
var value1 = protocol.readString();
|
|
199
|
+
result.youtubeUrl = value1;
|
|
200
|
+
}
|
|
201
|
+
else {
|
|
202
|
+
protocol.skip(ftype);
|
|
203
|
+
}
|
|
204
|
+
break;
|
|
205
|
+
case 21:
|
|
206
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
207
|
+
var value1 = protocol.readString();
|
|
208
|
+
result.youtubeSource = value1;
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
protocol.skip(ftype);
|
|
212
|
+
}
|
|
213
|
+
break;
|
|
214
|
+
case 22:
|
|
215
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
216
|
+
var value1 = protocol.readString();
|
|
217
|
+
result.youtubeTitle = value1;
|
|
218
|
+
}
|
|
219
|
+
else {
|
|
220
|
+
protocol.skip(ftype);
|
|
221
|
+
}
|
|
222
|
+
break;
|
|
223
|
+
case 23:
|
|
224
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
225
|
+
var value1 = protocol.readString();
|
|
226
|
+
result.youtubeDescription = value1;
|
|
227
|
+
}
|
|
228
|
+
else {
|
|
229
|
+
protocol.skip(ftype);
|
|
230
|
+
}
|
|
231
|
+
break;
|
|
232
|
+
case 24:
|
|
233
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
234
|
+
var value1 = protocol.readString();
|
|
235
|
+
result.youtubeAuthorName = value1;
|
|
236
|
+
}
|
|
237
|
+
else {
|
|
238
|
+
protocol.skip(ftype);
|
|
239
|
+
}
|
|
240
|
+
break;
|
|
241
|
+
case 25:
|
|
242
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
243
|
+
var value1 = protocol.readString();
|
|
244
|
+
result.youtubeHtml = value1;
|
|
245
|
+
}
|
|
246
|
+
else {
|
|
247
|
+
protocol.skip(ftype);
|
|
248
|
+
}
|
|
249
|
+
break;
|
|
250
|
+
case 26:
|
|
251
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
252
|
+
var value1 = protocol.readString();
|
|
253
|
+
result.role = value1;
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
protocol.skip(ftype);
|
|
257
|
+
}
|
|
258
|
+
break;
|
|
259
|
+
case 27:
|
|
260
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
261
|
+
var value1 = protocol.readString();
|
|
262
|
+
result.sourceDomain = value1;
|
|
263
|
+
}
|
|
264
|
+
else {
|
|
265
|
+
protocol.skip(ftype);
|
|
266
|
+
}
|
|
267
|
+
break;
|
|
268
|
+
default:
|
|
269
|
+
protocol.skip(ftype);
|
|
270
|
+
}
|
|
271
|
+
protocol.readFieldEnd();
|
|
272
|
+
}
|
|
273
|
+
protocol.readStructEnd();
|
|
274
|
+
// @ts-ignore
|
|
275
|
+
return result;
|
|
276
|
+
};
|
|
277
|
+
WitnessElementFieldsSerde.write = function (protocol, value0) {
|
|
278
|
+
protocol.writeStructBegin('WitnessElementFields');
|
|
279
|
+
if (value0.url !== null && value0.url !== undefined) {
|
|
280
|
+
var value1 = value0.url;
|
|
281
|
+
protocol.writeFieldBegin('url', thrift_1.Thrift.Type.STRING, 1);
|
|
282
|
+
protocol.writeString(value1);
|
|
283
|
+
protocol.writeFieldEnd();
|
|
284
|
+
}
|
|
285
|
+
if (value0.originalUrl !== null && value0.originalUrl !== undefined) {
|
|
286
|
+
var value1 = value0.originalUrl;
|
|
287
|
+
protocol.writeFieldBegin('originalUrl', thrift_1.Thrift.Type.STRING, 2);
|
|
288
|
+
protocol.writeString(value1);
|
|
289
|
+
protocol.writeFieldEnd();
|
|
290
|
+
}
|
|
291
|
+
if (value0.witnessEmbedType !== null && value0.witnessEmbedType !== undefined) {
|
|
292
|
+
var value1 = value0.witnessEmbedType;
|
|
293
|
+
protocol.writeFieldBegin('witnessEmbedType', thrift_1.Thrift.Type.STRING, 3);
|
|
294
|
+
protocol.writeString(value1);
|
|
295
|
+
protocol.writeFieldEnd();
|
|
296
|
+
}
|
|
297
|
+
if (value0.mediaId !== null && value0.mediaId !== undefined) {
|
|
298
|
+
var value1 = value0.mediaId;
|
|
299
|
+
protocol.writeFieldBegin('mediaId', thrift_1.Thrift.Type.STRING, 4);
|
|
300
|
+
protocol.writeString(value1);
|
|
301
|
+
protocol.writeFieldEnd();
|
|
302
|
+
}
|
|
303
|
+
if (value0.source !== null && value0.source !== undefined) {
|
|
304
|
+
var value1 = value0.source;
|
|
305
|
+
protocol.writeFieldBegin('source', thrift_1.Thrift.Type.STRING, 5);
|
|
306
|
+
protocol.writeString(value1);
|
|
307
|
+
protocol.writeFieldEnd();
|
|
308
|
+
}
|
|
309
|
+
if (value0.title !== null && value0.title !== undefined) {
|
|
310
|
+
var value1 = value0.title;
|
|
311
|
+
protocol.writeFieldBegin('title', thrift_1.Thrift.Type.STRING, 6);
|
|
312
|
+
protocol.writeString(value1);
|
|
313
|
+
protocol.writeFieldEnd();
|
|
314
|
+
}
|
|
315
|
+
if (value0.description !== null && value0.description !== undefined) {
|
|
316
|
+
var value1 = value0.description;
|
|
317
|
+
protocol.writeFieldBegin('description', thrift_1.Thrift.Type.STRING, 7);
|
|
318
|
+
protocol.writeString(value1);
|
|
319
|
+
protocol.writeFieldEnd();
|
|
320
|
+
}
|
|
321
|
+
if (value0.authorName !== null && value0.authorName !== undefined) {
|
|
322
|
+
var value1 = value0.authorName;
|
|
323
|
+
protocol.writeFieldBegin('authorName', thrift_1.Thrift.Type.STRING, 8);
|
|
324
|
+
protocol.writeString(value1);
|
|
325
|
+
protocol.writeFieldEnd();
|
|
326
|
+
}
|
|
327
|
+
if (value0.authorUsername !== null && value0.authorUsername !== undefined) {
|
|
328
|
+
var value1 = value0.authorUsername;
|
|
329
|
+
protocol.writeFieldBegin('authorUsername', thrift_1.Thrift.Type.STRING, 9);
|
|
330
|
+
protocol.writeString(value1);
|
|
331
|
+
protocol.writeFieldEnd();
|
|
332
|
+
}
|
|
333
|
+
if (value0.authorWitnessProfileUrl !== null && value0.authorWitnessProfileUrl !== undefined) {
|
|
334
|
+
var value1 = value0.authorWitnessProfileUrl;
|
|
335
|
+
protocol.writeFieldBegin('authorWitnessProfileUrl', thrift_1.Thrift.Type.STRING, 10);
|
|
336
|
+
protocol.writeString(value1);
|
|
337
|
+
protocol.writeFieldEnd();
|
|
338
|
+
}
|
|
339
|
+
if (value0.authorGuardianProfileUrl !== null && value0.authorGuardianProfileUrl !== undefined) {
|
|
340
|
+
var value1 = value0.authorGuardianProfileUrl;
|
|
341
|
+
protocol.writeFieldBegin('authorGuardianProfileUrl', thrift_1.Thrift.Type.STRING, 11);
|
|
342
|
+
protocol.writeString(value1);
|
|
343
|
+
protocol.writeFieldEnd();
|
|
344
|
+
}
|
|
345
|
+
if (value0.caption !== null && value0.caption !== undefined) {
|
|
346
|
+
var value1 = value0.caption;
|
|
347
|
+
protocol.writeFieldBegin('caption', thrift_1.Thrift.Type.STRING, 12);
|
|
348
|
+
protocol.writeString(value1);
|
|
349
|
+
protocol.writeFieldEnd();
|
|
350
|
+
}
|
|
351
|
+
if (value0.alt !== null && value0.alt !== undefined) {
|
|
352
|
+
var value1 = value0.alt;
|
|
353
|
+
protocol.writeFieldBegin('alt', thrift_1.Thrift.Type.STRING, 13);
|
|
354
|
+
protocol.writeString(value1);
|
|
355
|
+
protocol.writeFieldEnd();
|
|
356
|
+
}
|
|
357
|
+
if (value0.width !== null && value0.width !== undefined) {
|
|
358
|
+
var value1 = value0.width;
|
|
359
|
+
protocol.writeFieldBegin('width', thrift_1.Thrift.Type.I32, 14);
|
|
360
|
+
protocol.writeI32(value1);
|
|
361
|
+
protocol.writeFieldEnd();
|
|
362
|
+
}
|
|
363
|
+
if (value0.height !== null && value0.height !== undefined) {
|
|
364
|
+
var value1 = value0.height;
|
|
365
|
+
protocol.writeFieldBegin('height', thrift_1.Thrift.Type.I32, 15);
|
|
366
|
+
protocol.writeI32(value1);
|
|
367
|
+
protocol.writeFieldEnd();
|
|
368
|
+
}
|
|
369
|
+
if (value0.html !== null && value0.html !== undefined) {
|
|
370
|
+
var value1 = value0.html;
|
|
371
|
+
protocol.writeFieldBegin('html', thrift_1.Thrift.Type.STRING, 16);
|
|
372
|
+
protocol.writeString(value1);
|
|
373
|
+
protocol.writeFieldEnd();
|
|
374
|
+
}
|
|
375
|
+
if (value0.apiUrl !== null && value0.apiUrl !== undefined) {
|
|
376
|
+
var value1 = value0.apiUrl;
|
|
377
|
+
protocol.writeFieldBegin('apiUrl', thrift_1.Thrift.Type.STRING, 17);
|
|
378
|
+
protocol.writeString(value1);
|
|
379
|
+
protocol.writeFieldEnd();
|
|
380
|
+
}
|
|
381
|
+
if (value0.photographer !== null && value0.photographer !== undefined) {
|
|
382
|
+
var value1 = value0.photographer;
|
|
383
|
+
protocol.writeFieldBegin('photographer', thrift_1.Thrift.Type.STRING, 18);
|
|
384
|
+
protocol.writeString(value1);
|
|
385
|
+
protocol.writeFieldEnd();
|
|
386
|
+
}
|
|
387
|
+
if (value0.dateCreated !== null && value0.dateCreated !== undefined) {
|
|
388
|
+
var value1 = value0.dateCreated;
|
|
389
|
+
protocol.writeFieldBegin('dateCreated', thrift_1.Thrift.Type.STRUCT, 19);
|
|
390
|
+
capiDateTime_1.CapiDateTimeSerde.write(protocol, value1);
|
|
391
|
+
protocol.writeFieldEnd();
|
|
392
|
+
}
|
|
393
|
+
if (value0.youtubeUrl !== null && value0.youtubeUrl !== undefined) {
|
|
394
|
+
var value1 = value0.youtubeUrl;
|
|
395
|
+
protocol.writeFieldBegin('youtubeUrl', thrift_1.Thrift.Type.STRING, 20);
|
|
396
|
+
protocol.writeString(value1);
|
|
397
|
+
protocol.writeFieldEnd();
|
|
398
|
+
}
|
|
399
|
+
if (value0.youtubeSource !== null && value0.youtubeSource !== undefined) {
|
|
400
|
+
var value1 = value0.youtubeSource;
|
|
401
|
+
protocol.writeFieldBegin('youtubeSource', thrift_1.Thrift.Type.STRING, 21);
|
|
402
|
+
protocol.writeString(value1);
|
|
403
|
+
protocol.writeFieldEnd();
|
|
404
|
+
}
|
|
405
|
+
if (value0.youtubeTitle !== null && value0.youtubeTitle !== undefined) {
|
|
406
|
+
var value1 = value0.youtubeTitle;
|
|
407
|
+
protocol.writeFieldBegin('youtubeTitle', thrift_1.Thrift.Type.STRING, 22);
|
|
408
|
+
protocol.writeString(value1);
|
|
409
|
+
protocol.writeFieldEnd();
|
|
410
|
+
}
|
|
411
|
+
if (value0.youtubeDescription !== null && value0.youtubeDescription !== undefined) {
|
|
412
|
+
var value1 = value0.youtubeDescription;
|
|
413
|
+
protocol.writeFieldBegin('youtubeDescription', thrift_1.Thrift.Type.STRING, 23);
|
|
414
|
+
protocol.writeString(value1);
|
|
415
|
+
protocol.writeFieldEnd();
|
|
416
|
+
}
|
|
417
|
+
if (value0.youtubeAuthorName !== null && value0.youtubeAuthorName !== undefined) {
|
|
418
|
+
var value1 = value0.youtubeAuthorName;
|
|
419
|
+
protocol.writeFieldBegin('youtubeAuthorName', thrift_1.Thrift.Type.STRING, 24);
|
|
420
|
+
protocol.writeString(value1);
|
|
421
|
+
protocol.writeFieldEnd();
|
|
422
|
+
}
|
|
423
|
+
if (value0.youtubeHtml !== null && value0.youtubeHtml !== undefined) {
|
|
424
|
+
var value1 = value0.youtubeHtml;
|
|
425
|
+
protocol.writeFieldBegin('youtubeHtml', thrift_1.Thrift.Type.STRING, 25);
|
|
426
|
+
protocol.writeString(value1);
|
|
427
|
+
protocol.writeFieldEnd();
|
|
428
|
+
}
|
|
429
|
+
if (value0.role !== null && value0.role !== undefined) {
|
|
430
|
+
var value1 = value0.role;
|
|
431
|
+
protocol.writeFieldBegin('role', thrift_1.Thrift.Type.STRING, 26);
|
|
432
|
+
protocol.writeString(value1);
|
|
433
|
+
protocol.writeFieldEnd();
|
|
434
|
+
}
|
|
435
|
+
if (value0.sourceDomain !== null && value0.sourceDomain !== undefined) {
|
|
436
|
+
var value1 = value0.sourceDomain;
|
|
437
|
+
protocol.writeFieldBegin('sourceDomain', thrift_1.Thrift.Type.STRING, 27);
|
|
438
|
+
protocol.writeString(value1);
|
|
439
|
+
protocol.writeFieldEnd();
|
|
440
|
+
}
|
|
441
|
+
protocol.writeFieldStop();
|
|
442
|
+
protocol.writeStructEnd();
|
|
443
|
+
};
|
|
444
|
+
return WitnessElementFieldsSerde;
|
|
445
|
+
}());
|
|
446
|
+
exports.WitnessElementFieldsSerde = WitnessElementFieldsSerde;
|