@guardian/content-api-models 4.0.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/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 +15 -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,1106 @@
|
|
|
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.AssetFieldsSerde = void 0;
|
|
9
|
+
var thrift_1 = require("thrift");
|
|
10
|
+
var capiDateTime_1 = require("./capiDateTime");
|
|
11
|
+
var cartoonVariant_1 = require("./cartoonVariant");
|
|
12
|
+
var AssetFieldsSerde = /** @class */ (function () {
|
|
13
|
+
function AssetFieldsSerde() {
|
|
14
|
+
}
|
|
15
|
+
AssetFieldsSerde.read = function (protocol) {
|
|
16
|
+
var _a;
|
|
17
|
+
protocol.readStructBegin();
|
|
18
|
+
var result = {};
|
|
19
|
+
while (true) {
|
|
20
|
+
var ret = protocol.readFieldBegin();
|
|
21
|
+
var ftype = ret.ftype;
|
|
22
|
+
var fid = ret.fid;
|
|
23
|
+
if (ftype === thrift_1.Thrift.Type.STOP) {
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
26
|
+
switch (fid) {
|
|
27
|
+
case 1:
|
|
28
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
29
|
+
var value1 = protocol.readString();
|
|
30
|
+
result.aspectRatio = value1;
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
protocol.skip(ftype);
|
|
34
|
+
}
|
|
35
|
+
break;
|
|
36
|
+
case 2:
|
|
37
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
38
|
+
var value1 = protocol.readString();
|
|
39
|
+
result.altText = value1;
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
protocol.skip(ftype);
|
|
43
|
+
}
|
|
44
|
+
break;
|
|
45
|
+
case 3:
|
|
46
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
47
|
+
var value1 = protocol.readBool();
|
|
48
|
+
result.isInappropriateForAdverts = value1;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
protocol.skip(ftype);
|
|
52
|
+
}
|
|
53
|
+
break;
|
|
54
|
+
case 4:
|
|
55
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
56
|
+
var value1 = protocol.readString();
|
|
57
|
+
result.caption = value1;
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
protocol.skip(ftype);
|
|
61
|
+
}
|
|
62
|
+
break;
|
|
63
|
+
case 5:
|
|
64
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
65
|
+
var value1 = protocol.readString();
|
|
66
|
+
result.credit = value1;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
protocol.skip(ftype);
|
|
70
|
+
}
|
|
71
|
+
break;
|
|
72
|
+
case 6:
|
|
73
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
74
|
+
var value1 = protocol.readBool();
|
|
75
|
+
result.embeddable = value1;
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
protocol.skip(ftype);
|
|
79
|
+
}
|
|
80
|
+
break;
|
|
81
|
+
case 7:
|
|
82
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
83
|
+
var value1 = protocol.readString();
|
|
84
|
+
result.photographer = value1;
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
protocol.skip(ftype);
|
|
88
|
+
}
|
|
89
|
+
break;
|
|
90
|
+
case 8:
|
|
91
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
92
|
+
var value1 = protocol.readString();
|
|
93
|
+
result.source = value1;
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
protocol.skip(ftype);
|
|
97
|
+
}
|
|
98
|
+
break;
|
|
99
|
+
case 9:
|
|
100
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
101
|
+
var value1 = protocol.readString();
|
|
102
|
+
result.stillImageUrl = value1;
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
protocol.skip(ftype);
|
|
106
|
+
}
|
|
107
|
+
break;
|
|
108
|
+
case 10:
|
|
109
|
+
if (ftype === thrift_1.Thrift.Type.I32) {
|
|
110
|
+
var value1 = protocol.readI32();
|
|
111
|
+
result.width = value1;
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
protocol.skip(ftype);
|
|
115
|
+
}
|
|
116
|
+
break;
|
|
117
|
+
case 11:
|
|
118
|
+
if (ftype === thrift_1.Thrift.Type.I32) {
|
|
119
|
+
var value1 = protocol.readI32();
|
|
120
|
+
result.height = value1;
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
protocol.skip(ftype);
|
|
124
|
+
}
|
|
125
|
+
break;
|
|
126
|
+
case 12:
|
|
127
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
128
|
+
var value1 = protocol.readString();
|
|
129
|
+
result.name = value1;
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
protocol.skip(ftype);
|
|
133
|
+
}
|
|
134
|
+
break;
|
|
135
|
+
case 13:
|
|
136
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
137
|
+
var value1 = protocol.readString();
|
|
138
|
+
result.secureFile = value1;
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
protocol.skip(ftype);
|
|
142
|
+
}
|
|
143
|
+
break;
|
|
144
|
+
case 14:
|
|
145
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
146
|
+
var value1 = protocol.readBool();
|
|
147
|
+
result.isMaster = value1;
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
protocol.skip(ftype);
|
|
151
|
+
}
|
|
152
|
+
break;
|
|
153
|
+
case 15:
|
|
154
|
+
if (ftype === thrift_1.Thrift.Type.I64) {
|
|
155
|
+
var value1 = protocol.readI64();
|
|
156
|
+
result.sizeInBytes = value1;
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
protocol.skip(ftype);
|
|
160
|
+
}
|
|
161
|
+
break;
|
|
162
|
+
case 16:
|
|
163
|
+
if (ftype === thrift_1.Thrift.Type.I32) {
|
|
164
|
+
var value1 = protocol.readI32();
|
|
165
|
+
result.durationMinutes = value1;
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
protocol.skip(ftype);
|
|
169
|
+
}
|
|
170
|
+
break;
|
|
171
|
+
case 17:
|
|
172
|
+
if (ftype === thrift_1.Thrift.Type.I32) {
|
|
173
|
+
var value1 = protocol.readI32();
|
|
174
|
+
result.durationSeconds = value1;
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
protocol.skip(ftype);
|
|
178
|
+
}
|
|
179
|
+
break;
|
|
180
|
+
case 18:
|
|
181
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
182
|
+
var value1 = protocol.readBool();
|
|
183
|
+
result.displayCredit = value1;
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
protocol.skip(ftype);
|
|
187
|
+
}
|
|
188
|
+
break;
|
|
189
|
+
case 19:
|
|
190
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
191
|
+
var value1 = protocol.readString();
|
|
192
|
+
result.thumbnailUrl = value1;
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
protocol.skip(ftype);
|
|
196
|
+
}
|
|
197
|
+
break;
|
|
198
|
+
case 20:
|
|
199
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
200
|
+
var value1 = protocol.readString();
|
|
201
|
+
result.role = value1;
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
protocol.skip(ftype);
|
|
205
|
+
}
|
|
206
|
+
break;
|
|
207
|
+
case 21:
|
|
208
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
209
|
+
var value1 = protocol.readString();
|
|
210
|
+
result.mediaId = value1;
|
|
211
|
+
}
|
|
212
|
+
else {
|
|
213
|
+
protocol.skip(ftype);
|
|
214
|
+
}
|
|
215
|
+
break;
|
|
216
|
+
case 22:
|
|
217
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
218
|
+
var value1 = protocol.readString();
|
|
219
|
+
result.iframeUrl = value1;
|
|
220
|
+
}
|
|
221
|
+
else {
|
|
222
|
+
protocol.skip(ftype);
|
|
223
|
+
}
|
|
224
|
+
break;
|
|
225
|
+
case 23:
|
|
226
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
227
|
+
var value1 = protocol.readString();
|
|
228
|
+
result.scriptName = value1;
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
protocol.skip(ftype);
|
|
232
|
+
}
|
|
233
|
+
break;
|
|
234
|
+
case 24:
|
|
235
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
236
|
+
var value1 = protocol.readString();
|
|
237
|
+
result.scriptUrl = value1;
|
|
238
|
+
}
|
|
239
|
+
else {
|
|
240
|
+
protocol.skip(ftype);
|
|
241
|
+
}
|
|
242
|
+
break;
|
|
243
|
+
case 25:
|
|
244
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
245
|
+
var value1 = protocol.readBool();
|
|
246
|
+
result.blockAds = value1;
|
|
247
|
+
}
|
|
248
|
+
else {
|
|
249
|
+
protocol.skip(ftype);
|
|
250
|
+
}
|
|
251
|
+
break;
|
|
252
|
+
case 26:
|
|
253
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
254
|
+
var value1 = protocol.readString();
|
|
255
|
+
result.html = value1;
|
|
256
|
+
}
|
|
257
|
+
else {
|
|
258
|
+
protocol.skip(ftype);
|
|
259
|
+
}
|
|
260
|
+
break;
|
|
261
|
+
case 27:
|
|
262
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
263
|
+
var value1 = protocol.readString();
|
|
264
|
+
result.embedType = value1;
|
|
265
|
+
}
|
|
266
|
+
else {
|
|
267
|
+
protocol.skip(ftype);
|
|
268
|
+
}
|
|
269
|
+
break;
|
|
270
|
+
case 28:
|
|
271
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
272
|
+
var value1 = protocol.readBool();
|
|
273
|
+
result.explicit = value1;
|
|
274
|
+
}
|
|
275
|
+
else {
|
|
276
|
+
protocol.skip(ftype);
|
|
277
|
+
}
|
|
278
|
+
break;
|
|
279
|
+
case 29:
|
|
280
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
281
|
+
var value1 = protocol.readBool();
|
|
282
|
+
result.clean = value1;
|
|
283
|
+
}
|
|
284
|
+
else {
|
|
285
|
+
protocol.skip(ftype);
|
|
286
|
+
}
|
|
287
|
+
break;
|
|
288
|
+
case 30:
|
|
289
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
290
|
+
var value1 = protocol.readString();
|
|
291
|
+
result.thumbnailImageUrl = value1;
|
|
292
|
+
}
|
|
293
|
+
else {
|
|
294
|
+
protocol.skip(ftype);
|
|
295
|
+
}
|
|
296
|
+
break;
|
|
297
|
+
case 31:
|
|
298
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
299
|
+
var value1 = protocol.readString();
|
|
300
|
+
result.linkText = value1;
|
|
301
|
+
}
|
|
302
|
+
else {
|
|
303
|
+
protocol.skip(ftype);
|
|
304
|
+
}
|
|
305
|
+
break;
|
|
306
|
+
case 32:
|
|
307
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
308
|
+
var value1 = protocol.readString();
|
|
309
|
+
result.linkPrefix = value1;
|
|
310
|
+
}
|
|
311
|
+
else {
|
|
312
|
+
protocol.skip(ftype);
|
|
313
|
+
}
|
|
314
|
+
break;
|
|
315
|
+
case 33:
|
|
316
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
317
|
+
var value1 = protocol.readString();
|
|
318
|
+
result.shortUrl = value1;
|
|
319
|
+
}
|
|
320
|
+
else {
|
|
321
|
+
protocol.skip(ftype);
|
|
322
|
+
}
|
|
323
|
+
break;
|
|
324
|
+
case 34:
|
|
325
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
326
|
+
var value1 = protocol.readString();
|
|
327
|
+
result.imageType = value1;
|
|
328
|
+
}
|
|
329
|
+
else {
|
|
330
|
+
protocol.skip(ftype);
|
|
331
|
+
}
|
|
332
|
+
break;
|
|
333
|
+
case 35:
|
|
334
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
335
|
+
var value1 = protocol.readString();
|
|
336
|
+
result.suppliersReference = value1;
|
|
337
|
+
}
|
|
338
|
+
else {
|
|
339
|
+
protocol.skip(ftype);
|
|
340
|
+
}
|
|
341
|
+
break;
|
|
342
|
+
case 36:
|
|
343
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
344
|
+
var value1 = protocol.readString();
|
|
345
|
+
result.mediaApiUri = value1;
|
|
346
|
+
}
|
|
347
|
+
else {
|
|
348
|
+
protocol.skip(ftype);
|
|
349
|
+
}
|
|
350
|
+
break;
|
|
351
|
+
case 37:
|
|
352
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
353
|
+
var value1 = protocol.readString();
|
|
354
|
+
result.copyright = value1;
|
|
355
|
+
}
|
|
356
|
+
else {
|
|
357
|
+
protocol.skip(ftype);
|
|
358
|
+
}
|
|
359
|
+
break;
|
|
360
|
+
case 38:
|
|
361
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
362
|
+
var value1 = protocol.readString();
|
|
363
|
+
result.mimeType = value1;
|
|
364
|
+
}
|
|
365
|
+
else {
|
|
366
|
+
protocol.skip(ftype);
|
|
367
|
+
}
|
|
368
|
+
break;
|
|
369
|
+
case 39:
|
|
370
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
371
|
+
var value1 = protocol.readString();
|
|
372
|
+
result.url = value1;
|
|
373
|
+
}
|
|
374
|
+
else {
|
|
375
|
+
protocol.skip(ftype);
|
|
376
|
+
}
|
|
377
|
+
break;
|
|
378
|
+
case 40:
|
|
379
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
380
|
+
var value1 = protocol.readString();
|
|
381
|
+
result.originalUrl = value1;
|
|
382
|
+
}
|
|
383
|
+
else {
|
|
384
|
+
protocol.skip(ftype);
|
|
385
|
+
}
|
|
386
|
+
break;
|
|
387
|
+
case 41:
|
|
388
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
389
|
+
var value1 = protocol.readString();
|
|
390
|
+
result.id = value1;
|
|
391
|
+
}
|
|
392
|
+
else {
|
|
393
|
+
protocol.skip(ftype);
|
|
394
|
+
}
|
|
395
|
+
break;
|
|
396
|
+
case 42:
|
|
397
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
398
|
+
var value1 = protocol.readString();
|
|
399
|
+
result.attribution = value1;
|
|
400
|
+
}
|
|
401
|
+
else {
|
|
402
|
+
protocol.skip(ftype);
|
|
403
|
+
}
|
|
404
|
+
break;
|
|
405
|
+
case 43:
|
|
406
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
407
|
+
var value1 = protocol.readString();
|
|
408
|
+
result.description = value1;
|
|
409
|
+
}
|
|
410
|
+
else {
|
|
411
|
+
protocol.skip(ftype);
|
|
412
|
+
}
|
|
413
|
+
break;
|
|
414
|
+
case 44:
|
|
415
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
416
|
+
var value1 = protocol.readString();
|
|
417
|
+
result.title = value1;
|
|
418
|
+
}
|
|
419
|
+
else {
|
|
420
|
+
protocol.skip(ftype);
|
|
421
|
+
}
|
|
422
|
+
break;
|
|
423
|
+
case 45:
|
|
424
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
425
|
+
var value1 = protocol.readString();
|
|
426
|
+
result.contentAuthSystem = value1;
|
|
427
|
+
}
|
|
428
|
+
else {
|
|
429
|
+
protocol.skip(ftype);
|
|
430
|
+
}
|
|
431
|
+
break;
|
|
432
|
+
case 46:
|
|
433
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
434
|
+
var value1 = protocol.readString();
|
|
435
|
+
result.alt = value1;
|
|
436
|
+
}
|
|
437
|
+
else {
|
|
438
|
+
protocol.skip(ftype);
|
|
439
|
+
}
|
|
440
|
+
break;
|
|
441
|
+
case 47:
|
|
442
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
443
|
+
var value1 = protocol.readString();
|
|
444
|
+
result.picdarUrn = value1;
|
|
445
|
+
}
|
|
446
|
+
else {
|
|
447
|
+
protocol.skip(ftype);
|
|
448
|
+
}
|
|
449
|
+
break;
|
|
450
|
+
case 48:
|
|
451
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
452
|
+
var value1 = protocol.readString();
|
|
453
|
+
result.comment = value1;
|
|
454
|
+
}
|
|
455
|
+
else {
|
|
456
|
+
protocol.skip(ftype);
|
|
457
|
+
}
|
|
458
|
+
break;
|
|
459
|
+
case 49:
|
|
460
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
461
|
+
var value1 = protocol.readString();
|
|
462
|
+
result.witnessEmbedType = value1;
|
|
463
|
+
}
|
|
464
|
+
else {
|
|
465
|
+
protocol.skip(ftype);
|
|
466
|
+
}
|
|
467
|
+
break;
|
|
468
|
+
case 50:
|
|
469
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
470
|
+
var value1 = protocol.readString();
|
|
471
|
+
result.authorName = value1;
|
|
472
|
+
}
|
|
473
|
+
else {
|
|
474
|
+
protocol.skip(ftype);
|
|
475
|
+
}
|
|
476
|
+
break;
|
|
477
|
+
case 51:
|
|
478
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
479
|
+
var value1 = protocol.readString();
|
|
480
|
+
result.authorUsername = value1;
|
|
481
|
+
}
|
|
482
|
+
else {
|
|
483
|
+
protocol.skip(ftype);
|
|
484
|
+
}
|
|
485
|
+
break;
|
|
486
|
+
case 52:
|
|
487
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
488
|
+
var value1 = protocol.readString();
|
|
489
|
+
result.authorWitnessProfileUrl = value1;
|
|
490
|
+
}
|
|
491
|
+
else {
|
|
492
|
+
protocol.skip(ftype);
|
|
493
|
+
}
|
|
494
|
+
break;
|
|
495
|
+
case 53:
|
|
496
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
497
|
+
var value1 = protocol.readString();
|
|
498
|
+
result.authorGuardianProfileUrl = value1;
|
|
499
|
+
}
|
|
500
|
+
else {
|
|
501
|
+
protocol.skip(ftype);
|
|
502
|
+
}
|
|
503
|
+
break;
|
|
504
|
+
case 54:
|
|
505
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
506
|
+
var value1 = protocol.readString();
|
|
507
|
+
result.apiUrl = value1;
|
|
508
|
+
}
|
|
509
|
+
else {
|
|
510
|
+
protocol.skip(ftype);
|
|
511
|
+
}
|
|
512
|
+
break;
|
|
513
|
+
case 55:
|
|
514
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
515
|
+
var value1 = capiDateTime_1.CapiDateTimeSerde.read(protocol);
|
|
516
|
+
result.dateCreated = value1;
|
|
517
|
+
}
|
|
518
|
+
else {
|
|
519
|
+
protocol.skip(ftype);
|
|
520
|
+
}
|
|
521
|
+
break;
|
|
522
|
+
case 56:
|
|
523
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
524
|
+
var value1 = protocol.readString();
|
|
525
|
+
result.youtubeUrl = value1;
|
|
526
|
+
}
|
|
527
|
+
else {
|
|
528
|
+
protocol.skip(ftype);
|
|
529
|
+
}
|
|
530
|
+
break;
|
|
531
|
+
case 57:
|
|
532
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
533
|
+
var value1 = protocol.readString();
|
|
534
|
+
result.youtubeSource = value1;
|
|
535
|
+
}
|
|
536
|
+
else {
|
|
537
|
+
protocol.skip(ftype);
|
|
538
|
+
}
|
|
539
|
+
break;
|
|
540
|
+
case 58:
|
|
541
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
542
|
+
var value1 = protocol.readString();
|
|
543
|
+
result.youtubeTitle = value1;
|
|
544
|
+
}
|
|
545
|
+
else {
|
|
546
|
+
protocol.skip(ftype);
|
|
547
|
+
}
|
|
548
|
+
break;
|
|
549
|
+
case 59:
|
|
550
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
551
|
+
var value1 = protocol.readString();
|
|
552
|
+
result.youtubeDescription = value1;
|
|
553
|
+
}
|
|
554
|
+
else {
|
|
555
|
+
protocol.skip(ftype);
|
|
556
|
+
}
|
|
557
|
+
break;
|
|
558
|
+
case 60:
|
|
559
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
560
|
+
var value1 = protocol.readString();
|
|
561
|
+
result.youtubeAuthorName = value1;
|
|
562
|
+
}
|
|
563
|
+
else {
|
|
564
|
+
protocol.skip(ftype);
|
|
565
|
+
}
|
|
566
|
+
break;
|
|
567
|
+
case 61:
|
|
568
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
569
|
+
var value1 = protocol.readString();
|
|
570
|
+
result.youtubeHtml = value1;
|
|
571
|
+
}
|
|
572
|
+
else {
|
|
573
|
+
protocol.skip(ftype);
|
|
574
|
+
}
|
|
575
|
+
break;
|
|
576
|
+
case 62:
|
|
577
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
578
|
+
var value1 = protocol.readString();
|
|
579
|
+
result.venue = value1;
|
|
580
|
+
}
|
|
581
|
+
else {
|
|
582
|
+
protocol.skip(ftype);
|
|
583
|
+
}
|
|
584
|
+
break;
|
|
585
|
+
case 63:
|
|
586
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
587
|
+
var value1 = protocol.readString();
|
|
588
|
+
result.location = value1;
|
|
589
|
+
}
|
|
590
|
+
else {
|
|
591
|
+
protocol.skip(ftype);
|
|
592
|
+
}
|
|
593
|
+
break;
|
|
594
|
+
case 64:
|
|
595
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
596
|
+
var value1 = protocol.readString();
|
|
597
|
+
result.identifier = value1;
|
|
598
|
+
}
|
|
599
|
+
else {
|
|
600
|
+
protocol.skip(ftype);
|
|
601
|
+
}
|
|
602
|
+
break;
|
|
603
|
+
case 65:
|
|
604
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
605
|
+
var value1 = protocol.readString();
|
|
606
|
+
result.price = value1;
|
|
607
|
+
}
|
|
608
|
+
else {
|
|
609
|
+
protocol.skip(ftype);
|
|
610
|
+
}
|
|
611
|
+
break;
|
|
612
|
+
case 66:
|
|
613
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
614
|
+
var value1 = capiDateTime_1.CapiDateTimeSerde.read(protocol);
|
|
615
|
+
result.start = value1;
|
|
616
|
+
}
|
|
617
|
+
else {
|
|
618
|
+
protocol.skip(ftype);
|
|
619
|
+
}
|
|
620
|
+
break;
|
|
621
|
+
case 67:
|
|
622
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
623
|
+
var value1 = capiDateTime_1.CapiDateTimeSerde.read(protocol);
|
|
624
|
+
result.end = value1;
|
|
625
|
+
}
|
|
626
|
+
else {
|
|
627
|
+
protocol.skip(ftype);
|
|
628
|
+
}
|
|
629
|
+
break;
|
|
630
|
+
case 68:
|
|
631
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
632
|
+
var value1 = protocol.readBool();
|
|
633
|
+
result.safeEmbedCode = value1;
|
|
634
|
+
}
|
|
635
|
+
else {
|
|
636
|
+
protocol.skip(ftype);
|
|
637
|
+
}
|
|
638
|
+
break;
|
|
639
|
+
case 69:
|
|
640
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
641
|
+
var value1 = protocol.readBool();
|
|
642
|
+
result.isMandatory = value1;
|
|
643
|
+
}
|
|
644
|
+
else {
|
|
645
|
+
protocol.skip(ftype);
|
|
646
|
+
}
|
|
647
|
+
break;
|
|
648
|
+
case 70:
|
|
649
|
+
if (ftype === thrift_1.Thrift.Type.LIST) {
|
|
650
|
+
var listInfo1 = protocol.readListBegin();
|
|
651
|
+
var listSize1 = (_a = listInfo1.size) !== null && _a !== void 0 ? _a : 0;
|
|
652
|
+
var value1 = [];
|
|
653
|
+
if (listInfo1.etype === thrift_1.Thrift.Type.STRUCT) {
|
|
654
|
+
for (var i = 0; i < listSize1; i++) {
|
|
655
|
+
var value2 = cartoonVariant_1.CartoonVariantSerde.read(protocol);
|
|
656
|
+
value1.push(value2);
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
protocol.readListEnd();
|
|
660
|
+
result.cartoonVariants = value1;
|
|
661
|
+
}
|
|
662
|
+
else {
|
|
663
|
+
protocol.skip(ftype);
|
|
664
|
+
}
|
|
665
|
+
break;
|
|
666
|
+
default:
|
|
667
|
+
protocol.skip(ftype);
|
|
668
|
+
}
|
|
669
|
+
protocol.readFieldEnd();
|
|
670
|
+
}
|
|
671
|
+
protocol.readStructEnd();
|
|
672
|
+
// @ts-ignore
|
|
673
|
+
return result;
|
|
674
|
+
};
|
|
675
|
+
AssetFieldsSerde.write = function (protocol, value0) {
|
|
676
|
+
protocol.writeStructBegin('AssetFields');
|
|
677
|
+
if (value0.aspectRatio !== null && value0.aspectRatio !== undefined) {
|
|
678
|
+
var value1 = value0.aspectRatio;
|
|
679
|
+
protocol.writeFieldBegin('aspectRatio', thrift_1.Thrift.Type.STRING, 1);
|
|
680
|
+
protocol.writeString(value1);
|
|
681
|
+
protocol.writeFieldEnd();
|
|
682
|
+
}
|
|
683
|
+
if (value0.altText !== null && value0.altText !== undefined) {
|
|
684
|
+
var value1 = value0.altText;
|
|
685
|
+
protocol.writeFieldBegin('altText', thrift_1.Thrift.Type.STRING, 2);
|
|
686
|
+
protocol.writeString(value1);
|
|
687
|
+
protocol.writeFieldEnd();
|
|
688
|
+
}
|
|
689
|
+
if (value0.isInappropriateForAdverts !== null && value0.isInappropriateForAdverts !== undefined) {
|
|
690
|
+
var value1 = value0.isInappropriateForAdverts;
|
|
691
|
+
protocol.writeFieldBegin('isInappropriateForAdverts', thrift_1.Thrift.Type.BOOL, 3);
|
|
692
|
+
protocol.writeBool(value1);
|
|
693
|
+
protocol.writeFieldEnd();
|
|
694
|
+
}
|
|
695
|
+
if (value0.caption !== null && value0.caption !== undefined) {
|
|
696
|
+
var value1 = value0.caption;
|
|
697
|
+
protocol.writeFieldBegin('caption', thrift_1.Thrift.Type.STRING, 4);
|
|
698
|
+
protocol.writeString(value1);
|
|
699
|
+
protocol.writeFieldEnd();
|
|
700
|
+
}
|
|
701
|
+
if (value0.credit !== null && value0.credit !== undefined) {
|
|
702
|
+
var value1 = value0.credit;
|
|
703
|
+
protocol.writeFieldBegin('credit', thrift_1.Thrift.Type.STRING, 5);
|
|
704
|
+
protocol.writeString(value1);
|
|
705
|
+
protocol.writeFieldEnd();
|
|
706
|
+
}
|
|
707
|
+
if (value0.embeddable !== null && value0.embeddable !== undefined) {
|
|
708
|
+
var value1 = value0.embeddable;
|
|
709
|
+
protocol.writeFieldBegin('embeddable', thrift_1.Thrift.Type.BOOL, 6);
|
|
710
|
+
protocol.writeBool(value1);
|
|
711
|
+
protocol.writeFieldEnd();
|
|
712
|
+
}
|
|
713
|
+
if (value0.photographer !== null && value0.photographer !== undefined) {
|
|
714
|
+
var value1 = value0.photographer;
|
|
715
|
+
protocol.writeFieldBegin('photographer', thrift_1.Thrift.Type.STRING, 7);
|
|
716
|
+
protocol.writeString(value1);
|
|
717
|
+
protocol.writeFieldEnd();
|
|
718
|
+
}
|
|
719
|
+
if (value0.source !== null && value0.source !== undefined) {
|
|
720
|
+
var value1 = value0.source;
|
|
721
|
+
protocol.writeFieldBegin('source', thrift_1.Thrift.Type.STRING, 8);
|
|
722
|
+
protocol.writeString(value1);
|
|
723
|
+
protocol.writeFieldEnd();
|
|
724
|
+
}
|
|
725
|
+
if (value0.stillImageUrl !== null && value0.stillImageUrl !== undefined) {
|
|
726
|
+
var value1 = value0.stillImageUrl;
|
|
727
|
+
protocol.writeFieldBegin('stillImageUrl', thrift_1.Thrift.Type.STRING, 9);
|
|
728
|
+
protocol.writeString(value1);
|
|
729
|
+
protocol.writeFieldEnd();
|
|
730
|
+
}
|
|
731
|
+
if (value0.width !== null && value0.width !== undefined) {
|
|
732
|
+
var value1 = value0.width;
|
|
733
|
+
protocol.writeFieldBegin('width', thrift_1.Thrift.Type.I32, 10);
|
|
734
|
+
protocol.writeI32(value1);
|
|
735
|
+
protocol.writeFieldEnd();
|
|
736
|
+
}
|
|
737
|
+
if (value0.height !== null && value0.height !== undefined) {
|
|
738
|
+
var value1 = value0.height;
|
|
739
|
+
protocol.writeFieldBegin('height', thrift_1.Thrift.Type.I32, 11);
|
|
740
|
+
protocol.writeI32(value1);
|
|
741
|
+
protocol.writeFieldEnd();
|
|
742
|
+
}
|
|
743
|
+
if (value0.name !== null && value0.name !== undefined) {
|
|
744
|
+
var value1 = value0.name;
|
|
745
|
+
protocol.writeFieldBegin('name', thrift_1.Thrift.Type.STRING, 12);
|
|
746
|
+
protocol.writeString(value1);
|
|
747
|
+
protocol.writeFieldEnd();
|
|
748
|
+
}
|
|
749
|
+
if (value0.secureFile !== null && value0.secureFile !== undefined) {
|
|
750
|
+
var value1 = value0.secureFile;
|
|
751
|
+
protocol.writeFieldBegin('secureFile', thrift_1.Thrift.Type.STRING, 13);
|
|
752
|
+
protocol.writeString(value1);
|
|
753
|
+
protocol.writeFieldEnd();
|
|
754
|
+
}
|
|
755
|
+
if (value0.isMaster !== null && value0.isMaster !== undefined) {
|
|
756
|
+
var value1 = value0.isMaster;
|
|
757
|
+
protocol.writeFieldBegin('isMaster', thrift_1.Thrift.Type.BOOL, 14);
|
|
758
|
+
protocol.writeBool(value1);
|
|
759
|
+
protocol.writeFieldEnd();
|
|
760
|
+
}
|
|
761
|
+
if (value0.sizeInBytes !== null && value0.sizeInBytes !== undefined) {
|
|
762
|
+
var value1 = value0.sizeInBytes;
|
|
763
|
+
protocol.writeFieldBegin('sizeInBytes', thrift_1.Thrift.Type.I64, 15);
|
|
764
|
+
protocol.writeI64(value1);
|
|
765
|
+
protocol.writeFieldEnd();
|
|
766
|
+
}
|
|
767
|
+
if (value0.durationMinutes !== null && value0.durationMinutes !== undefined) {
|
|
768
|
+
var value1 = value0.durationMinutes;
|
|
769
|
+
protocol.writeFieldBegin('durationMinutes', thrift_1.Thrift.Type.I32, 16);
|
|
770
|
+
protocol.writeI32(value1);
|
|
771
|
+
protocol.writeFieldEnd();
|
|
772
|
+
}
|
|
773
|
+
if (value0.durationSeconds !== null && value0.durationSeconds !== undefined) {
|
|
774
|
+
var value1 = value0.durationSeconds;
|
|
775
|
+
protocol.writeFieldBegin('durationSeconds', thrift_1.Thrift.Type.I32, 17);
|
|
776
|
+
protocol.writeI32(value1);
|
|
777
|
+
protocol.writeFieldEnd();
|
|
778
|
+
}
|
|
779
|
+
if (value0.displayCredit !== null && value0.displayCredit !== undefined) {
|
|
780
|
+
var value1 = value0.displayCredit;
|
|
781
|
+
protocol.writeFieldBegin('displayCredit', thrift_1.Thrift.Type.BOOL, 18);
|
|
782
|
+
protocol.writeBool(value1);
|
|
783
|
+
protocol.writeFieldEnd();
|
|
784
|
+
}
|
|
785
|
+
if (value0.thumbnailUrl !== null && value0.thumbnailUrl !== undefined) {
|
|
786
|
+
var value1 = value0.thumbnailUrl;
|
|
787
|
+
protocol.writeFieldBegin('thumbnailUrl', thrift_1.Thrift.Type.STRING, 19);
|
|
788
|
+
protocol.writeString(value1);
|
|
789
|
+
protocol.writeFieldEnd();
|
|
790
|
+
}
|
|
791
|
+
if (value0.role !== null && value0.role !== undefined) {
|
|
792
|
+
var value1 = value0.role;
|
|
793
|
+
protocol.writeFieldBegin('role', thrift_1.Thrift.Type.STRING, 20);
|
|
794
|
+
protocol.writeString(value1);
|
|
795
|
+
protocol.writeFieldEnd();
|
|
796
|
+
}
|
|
797
|
+
if (value0.mediaId !== null && value0.mediaId !== undefined) {
|
|
798
|
+
var value1 = value0.mediaId;
|
|
799
|
+
protocol.writeFieldBegin('mediaId', thrift_1.Thrift.Type.STRING, 21);
|
|
800
|
+
protocol.writeString(value1);
|
|
801
|
+
protocol.writeFieldEnd();
|
|
802
|
+
}
|
|
803
|
+
if (value0.iframeUrl !== null && value0.iframeUrl !== undefined) {
|
|
804
|
+
var value1 = value0.iframeUrl;
|
|
805
|
+
protocol.writeFieldBegin('iframeUrl', thrift_1.Thrift.Type.STRING, 22);
|
|
806
|
+
protocol.writeString(value1);
|
|
807
|
+
protocol.writeFieldEnd();
|
|
808
|
+
}
|
|
809
|
+
if (value0.scriptName !== null && value0.scriptName !== undefined) {
|
|
810
|
+
var value1 = value0.scriptName;
|
|
811
|
+
protocol.writeFieldBegin('scriptName', thrift_1.Thrift.Type.STRING, 23);
|
|
812
|
+
protocol.writeString(value1);
|
|
813
|
+
protocol.writeFieldEnd();
|
|
814
|
+
}
|
|
815
|
+
if (value0.scriptUrl !== null && value0.scriptUrl !== undefined) {
|
|
816
|
+
var value1 = value0.scriptUrl;
|
|
817
|
+
protocol.writeFieldBegin('scriptUrl', thrift_1.Thrift.Type.STRING, 24);
|
|
818
|
+
protocol.writeString(value1);
|
|
819
|
+
protocol.writeFieldEnd();
|
|
820
|
+
}
|
|
821
|
+
if (value0.blockAds !== null && value0.blockAds !== undefined) {
|
|
822
|
+
var value1 = value0.blockAds;
|
|
823
|
+
protocol.writeFieldBegin('blockAds', thrift_1.Thrift.Type.BOOL, 25);
|
|
824
|
+
protocol.writeBool(value1);
|
|
825
|
+
protocol.writeFieldEnd();
|
|
826
|
+
}
|
|
827
|
+
if (value0.html !== null && value0.html !== undefined) {
|
|
828
|
+
var value1 = value0.html;
|
|
829
|
+
protocol.writeFieldBegin('html', thrift_1.Thrift.Type.STRING, 26);
|
|
830
|
+
protocol.writeString(value1);
|
|
831
|
+
protocol.writeFieldEnd();
|
|
832
|
+
}
|
|
833
|
+
if (value0.embedType !== null && value0.embedType !== undefined) {
|
|
834
|
+
var value1 = value0.embedType;
|
|
835
|
+
protocol.writeFieldBegin('embedType', thrift_1.Thrift.Type.STRING, 27);
|
|
836
|
+
protocol.writeString(value1);
|
|
837
|
+
protocol.writeFieldEnd();
|
|
838
|
+
}
|
|
839
|
+
if (value0.explicit !== null && value0.explicit !== undefined) {
|
|
840
|
+
var value1 = value0.explicit;
|
|
841
|
+
protocol.writeFieldBegin('explicit', thrift_1.Thrift.Type.BOOL, 28);
|
|
842
|
+
protocol.writeBool(value1);
|
|
843
|
+
protocol.writeFieldEnd();
|
|
844
|
+
}
|
|
845
|
+
if (value0.clean !== null && value0.clean !== undefined) {
|
|
846
|
+
var value1 = value0.clean;
|
|
847
|
+
protocol.writeFieldBegin('clean', thrift_1.Thrift.Type.BOOL, 29);
|
|
848
|
+
protocol.writeBool(value1);
|
|
849
|
+
protocol.writeFieldEnd();
|
|
850
|
+
}
|
|
851
|
+
if (value0.thumbnailImageUrl !== null && value0.thumbnailImageUrl !== undefined) {
|
|
852
|
+
var value1 = value0.thumbnailImageUrl;
|
|
853
|
+
protocol.writeFieldBegin('thumbnailImageUrl', thrift_1.Thrift.Type.STRING, 30);
|
|
854
|
+
protocol.writeString(value1);
|
|
855
|
+
protocol.writeFieldEnd();
|
|
856
|
+
}
|
|
857
|
+
if (value0.linkText !== null && value0.linkText !== undefined) {
|
|
858
|
+
var value1 = value0.linkText;
|
|
859
|
+
protocol.writeFieldBegin('linkText', thrift_1.Thrift.Type.STRING, 31);
|
|
860
|
+
protocol.writeString(value1);
|
|
861
|
+
protocol.writeFieldEnd();
|
|
862
|
+
}
|
|
863
|
+
if (value0.linkPrefix !== null && value0.linkPrefix !== undefined) {
|
|
864
|
+
var value1 = value0.linkPrefix;
|
|
865
|
+
protocol.writeFieldBegin('linkPrefix', thrift_1.Thrift.Type.STRING, 32);
|
|
866
|
+
protocol.writeString(value1);
|
|
867
|
+
protocol.writeFieldEnd();
|
|
868
|
+
}
|
|
869
|
+
if (value0.shortUrl !== null && value0.shortUrl !== undefined) {
|
|
870
|
+
var value1 = value0.shortUrl;
|
|
871
|
+
protocol.writeFieldBegin('shortUrl', thrift_1.Thrift.Type.STRING, 33);
|
|
872
|
+
protocol.writeString(value1);
|
|
873
|
+
protocol.writeFieldEnd();
|
|
874
|
+
}
|
|
875
|
+
if (value0.imageType !== null && value0.imageType !== undefined) {
|
|
876
|
+
var value1 = value0.imageType;
|
|
877
|
+
protocol.writeFieldBegin('imageType', thrift_1.Thrift.Type.STRING, 34);
|
|
878
|
+
protocol.writeString(value1);
|
|
879
|
+
protocol.writeFieldEnd();
|
|
880
|
+
}
|
|
881
|
+
if (value0.suppliersReference !== null && value0.suppliersReference !== undefined) {
|
|
882
|
+
var value1 = value0.suppliersReference;
|
|
883
|
+
protocol.writeFieldBegin('suppliersReference', thrift_1.Thrift.Type.STRING, 35);
|
|
884
|
+
protocol.writeString(value1);
|
|
885
|
+
protocol.writeFieldEnd();
|
|
886
|
+
}
|
|
887
|
+
if (value0.mediaApiUri !== null && value0.mediaApiUri !== undefined) {
|
|
888
|
+
var value1 = value0.mediaApiUri;
|
|
889
|
+
protocol.writeFieldBegin('mediaApiUri', thrift_1.Thrift.Type.STRING, 36);
|
|
890
|
+
protocol.writeString(value1);
|
|
891
|
+
protocol.writeFieldEnd();
|
|
892
|
+
}
|
|
893
|
+
if (value0.copyright !== null && value0.copyright !== undefined) {
|
|
894
|
+
var value1 = value0.copyright;
|
|
895
|
+
protocol.writeFieldBegin('copyright', thrift_1.Thrift.Type.STRING, 37);
|
|
896
|
+
protocol.writeString(value1);
|
|
897
|
+
protocol.writeFieldEnd();
|
|
898
|
+
}
|
|
899
|
+
if (value0.mimeType !== null && value0.mimeType !== undefined) {
|
|
900
|
+
var value1 = value0.mimeType;
|
|
901
|
+
protocol.writeFieldBegin('mimeType', thrift_1.Thrift.Type.STRING, 38);
|
|
902
|
+
protocol.writeString(value1);
|
|
903
|
+
protocol.writeFieldEnd();
|
|
904
|
+
}
|
|
905
|
+
if (value0.url !== null && value0.url !== undefined) {
|
|
906
|
+
var value1 = value0.url;
|
|
907
|
+
protocol.writeFieldBegin('url', thrift_1.Thrift.Type.STRING, 39);
|
|
908
|
+
protocol.writeString(value1);
|
|
909
|
+
protocol.writeFieldEnd();
|
|
910
|
+
}
|
|
911
|
+
if (value0.originalUrl !== null && value0.originalUrl !== undefined) {
|
|
912
|
+
var value1 = value0.originalUrl;
|
|
913
|
+
protocol.writeFieldBegin('originalUrl', thrift_1.Thrift.Type.STRING, 40);
|
|
914
|
+
protocol.writeString(value1);
|
|
915
|
+
protocol.writeFieldEnd();
|
|
916
|
+
}
|
|
917
|
+
if (value0.id !== null && value0.id !== undefined) {
|
|
918
|
+
var value1 = value0.id;
|
|
919
|
+
protocol.writeFieldBegin('id', thrift_1.Thrift.Type.STRING, 41);
|
|
920
|
+
protocol.writeString(value1);
|
|
921
|
+
protocol.writeFieldEnd();
|
|
922
|
+
}
|
|
923
|
+
if (value0.attribution !== null && value0.attribution !== undefined) {
|
|
924
|
+
var value1 = value0.attribution;
|
|
925
|
+
protocol.writeFieldBegin('attribution', thrift_1.Thrift.Type.STRING, 42);
|
|
926
|
+
protocol.writeString(value1);
|
|
927
|
+
protocol.writeFieldEnd();
|
|
928
|
+
}
|
|
929
|
+
if (value0.description !== null && value0.description !== undefined) {
|
|
930
|
+
var value1 = value0.description;
|
|
931
|
+
protocol.writeFieldBegin('description', thrift_1.Thrift.Type.STRING, 43);
|
|
932
|
+
protocol.writeString(value1);
|
|
933
|
+
protocol.writeFieldEnd();
|
|
934
|
+
}
|
|
935
|
+
if (value0.title !== null && value0.title !== undefined) {
|
|
936
|
+
var value1 = value0.title;
|
|
937
|
+
protocol.writeFieldBegin('title', thrift_1.Thrift.Type.STRING, 44);
|
|
938
|
+
protocol.writeString(value1);
|
|
939
|
+
protocol.writeFieldEnd();
|
|
940
|
+
}
|
|
941
|
+
if (value0.contentAuthSystem !== null && value0.contentAuthSystem !== undefined) {
|
|
942
|
+
var value1 = value0.contentAuthSystem;
|
|
943
|
+
protocol.writeFieldBegin('contentAuthSystem', thrift_1.Thrift.Type.STRING, 45);
|
|
944
|
+
protocol.writeString(value1);
|
|
945
|
+
protocol.writeFieldEnd();
|
|
946
|
+
}
|
|
947
|
+
if (value0.alt !== null && value0.alt !== undefined) {
|
|
948
|
+
var value1 = value0.alt;
|
|
949
|
+
protocol.writeFieldBegin('alt', thrift_1.Thrift.Type.STRING, 46);
|
|
950
|
+
protocol.writeString(value1);
|
|
951
|
+
protocol.writeFieldEnd();
|
|
952
|
+
}
|
|
953
|
+
if (value0.picdarUrn !== null && value0.picdarUrn !== undefined) {
|
|
954
|
+
var value1 = value0.picdarUrn;
|
|
955
|
+
protocol.writeFieldBegin('picdarUrn', thrift_1.Thrift.Type.STRING, 47);
|
|
956
|
+
protocol.writeString(value1);
|
|
957
|
+
protocol.writeFieldEnd();
|
|
958
|
+
}
|
|
959
|
+
if (value0.comment !== null && value0.comment !== undefined) {
|
|
960
|
+
var value1 = value0.comment;
|
|
961
|
+
protocol.writeFieldBegin('comment', thrift_1.Thrift.Type.STRING, 48);
|
|
962
|
+
protocol.writeString(value1);
|
|
963
|
+
protocol.writeFieldEnd();
|
|
964
|
+
}
|
|
965
|
+
if (value0.witnessEmbedType !== null && value0.witnessEmbedType !== undefined) {
|
|
966
|
+
var value1 = value0.witnessEmbedType;
|
|
967
|
+
protocol.writeFieldBegin('witnessEmbedType', thrift_1.Thrift.Type.STRING, 49);
|
|
968
|
+
protocol.writeString(value1);
|
|
969
|
+
protocol.writeFieldEnd();
|
|
970
|
+
}
|
|
971
|
+
if (value0.authorName !== null && value0.authorName !== undefined) {
|
|
972
|
+
var value1 = value0.authorName;
|
|
973
|
+
protocol.writeFieldBegin('authorName', thrift_1.Thrift.Type.STRING, 50);
|
|
974
|
+
protocol.writeString(value1);
|
|
975
|
+
protocol.writeFieldEnd();
|
|
976
|
+
}
|
|
977
|
+
if (value0.authorUsername !== null && value0.authorUsername !== undefined) {
|
|
978
|
+
var value1 = value0.authorUsername;
|
|
979
|
+
protocol.writeFieldBegin('authorUsername', thrift_1.Thrift.Type.STRING, 51);
|
|
980
|
+
protocol.writeString(value1);
|
|
981
|
+
protocol.writeFieldEnd();
|
|
982
|
+
}
|
|
983
|
+
if (value0.authorWitnessProfileUrl !== null && value0.authorWitnessProfileUrl !== undefined) {
|
|
984
|
+
var value1 = value0.authorWitnessProfileUrl;
|
|
985
|
+
protocol.writeFieldBegin('authorWitnessProfileUrl', thrift_1.Thrift.Type.STRING, 52);
|
|
986
|
+
protocol.writeString(value1);
|
|
987
|
+
protocol.writeFieldEnd();
|
|
988
|
+
}
|
|
989
|
+
if (value0.authorGuardianProfileUrl !== null && value0.authorGuardianProfileUrl !== undefined) {
|
|
990
|
+
var value1 = value0.authorGuardianProfileUrl;
|
|
991
|
+
protocol.writeFieldBegin('authorGuardianProfileUrl', thrift_1.Thrift.Type.STRING, 53);
|
|
992
|
+
protocol.writeString(value1);
|
|
993
|
+
protocol.writeFieldEnd();
|
|
994
|
+
}
|
|
995
|
+
if (value0.apiUrl !== null && value0.apiUrl !== undefined) {
|
|
996
|
+
var value1 = value0.apiUrl;
|
|
997
|
+
protocol.writeFieldBegin('apiUrl', thrift_1.Thrift.Type.STRING, 54);
|
|
998
|
+
protocol.writeString(value1);
|
|
999
|
+
protocol.writeFieldEnd();
|
|
1000
|
+
}
|
|
1001
|
+
if (value0.dateCreated !== null && value0.dateCreated !== undefined) {
|
|
1002
|
+
var value1 = value0.dateCreated;
|
|
1003
|
+
protocol.writeFieldBegin('dateCreated', thrift_1.Thrift.Type.STRUCT, 55);
|
|
1004
|
+
capiDateTime_1.CapiDateTimeSerde.write(protocol, value1);
|
|
1005
|
+
protocol.writeFieldEnd();
|
|
1006
|
+
}
|
|
1007
|
+
if (value0.youtubeUrl !== null && value0.youtubeUrl !== undefined) {
|
|
1008
|
+
var value1 = value0.youtubeUrl;
|
|
1009
|
+
protocol.writeFieldBegin('youtubeUrl', thrift_1.Thrift.Type.STRING, 56);
|
|
1010
|
+
protocol.writeString(value1);
|
|
1011
|
+
protocol.writeFieldEnd();
|
|
1012
|
+
}
|
|
1013
|
+
if (value0.youtubeSource !== null && value0.youtubeSource !== undefined) {
|
|
1014
|
+
var value1 = value0.youtubeSource;
|
|
1015
|
+
protocol.writeFieldBegin('youtubeSource', thrift_1.Thrift.Type.STRING, 57);
|
|
1016
|
+
protocol.writeString(value1);
|
|
1017
|
+
protocol.writeFieldEnd();
|
|
1018
|
+
}
|
|
1019
|
+
if (value0.youtubeTitle !== null && value0.youtubeTitle !== undefined) {
|
|
1020
|
+
var value1 = value0.youtubeTitle;
|
|
1021
|
+
protocol.writeFieldBegin('youtubeTitle', thrift_1.Thrift.Type.STRING, 58);
|
|
1022
|
+
protocol.writeString(value1);
|
|
1023
|
+
protocol.writeFieldEnd();
|
|
1024
|
+
}
|
|
1025
|
+
if (value0.youtubeDescription !== null && value0.youtubeDescription !== undefined) {
|
|
1026
|
+
var value1 = value0.youtubeDescription;
|
|
1027
|
+
protocol.writeFieldBegin('youtubeDescription', thrift_1.Thrift.Type.STRING, 59);
|
|
1028
|
+
protocol.writeString(value1);
|
|
1029
|
+
protocol.writeFieldEnd();
|
|
1030
|
+
}
|
|
1031
|
+
if (value0.youtubeAuthorName !== null && value0.youtubeAuthorName !== undefined) {
|
|
1032
|
+
var value1 = value0.youtubeAuthorName;
|
|
1033
|
+
protocol.writeFieldBegin('youtubeAuthorName', thrift_1.Thrift.Type.STRING, 60);
|
|
1034
|
+
protocol.writeString(value1);
|
|
1035
|
+
protocol.writeFieldEnd();
|
|
1036
|
+
}
|
|
1037
|
+
if (value0.youtubeHtml !== null && value0.youtubeHtml !== undefined) {
|
|
1038
|
+
var value1 = value0.youtubeHtml;
|
|
1039
|
+
protocol.writeFieldBegin('youtubeHtml', thrift_1.Thrift.Type.STRING, 61);
|
|
1040
|
+
protocol.writeString(value1);
|
|
1041
|
+
protocol.writeFieldEnd();
|
|
1042
|
+
}
|
|
1043
|
+
if (value0.venue !== null && value0.venue !== undefined) {
|
|
1044
|
+
var value1 = value0.venue;
|
|
1045
|
+
protocol.writeFieldBegin('venue', thrift_1.Thrift.Type.STRING, 62);
|
|
1046
|
+
protocol.writeString(value1);
|
|
1047
|
+
protocol.writeFieldEnd();
|
|
1048
|
+
}
|
|
1049
|
+
if (value0.location !== null && value0.location !== undefined) {
|
|
1050
|
+
var value1 = value0.location;
|
|
1051
|
+
protocol.writeFieldBegin('location', thrift_1.Thrift.Type.STRING, 63);
|
|
1052
|
+
protocol.writeString(value1);
|
|
1053
|
+
protocol.writeFieldEnd();
|
|
1054
|
+
}
|
|
1055
|
+
if (value0.identifier !== null && value0.identifier !== undefined) {
|
|
1056
|
+
var value1 = value0.identifier;
|
|
1057
|
+
protocol.writeFieldBegin('identifier', thrift_1.Thrift.Type.STRING, 64);
|
|
1058
|
+
protocol.writeString(value1);
|
|
1059
|
+
protocol.writeFieldEnd();
|
|
1060
|
+
}
|
|
1061
|
+
if (value0.price !== null && value0.price !== undefined) {
|
|
1062
|
+
var value1 = value0.price;
|
|
1063
|
+
protocol.writeFieldBegin('price', thrift_1.Thrift.Type.STRING, 65);
|
|
1064
|
+
protocol.writeString(value1);
|
|
1065
|
+
protocol.writeFieldEnd();
|
|
1066
|
+
}
|
|
1067
|
+
if (value0.start !== null && value0.start !== undefined) {
|
|
1068
|
+
var value1 = value0.start;
|
|
1069
|
+
protocol.writeFieldBegin('start', thrift_1.Thrift.Type.STRUCT, 66);
|
|
1070
|
+
capiDateTime_1.CapiDateTimeSerde.write(protocol, value1);
|
|
1071
|
+
protocol.writeFieldEnd();
|
|
1072
|
+
}
|
|
1073
|
+
if (value0.end !== null && value0.end !== undefined) {
|
|
1074
|
+
var value1 = value0.end;
|
|
1075
|
+
protocol.writeFieldBegin('end', thrift_1.Thrift.Type.STRUCT, 67);
|
|
1076
|
+
capiDateTime_1.CapiDateTimeSerde.write(protocol, value1);
|
|
1077
|
+
protocol.writeFieldEnd();
|
|
1078
|
+
}
|
|
1079
|
+
if (value0.safeEmbedCode !== null && value0.safeEmbedCode !== undefined) {
|
|
1080
|
+
var value1 = value0.safeEmbedCode;
|
|
1081
|
+
protocol.writeFieldBegin('safeEmbedCode', thrift_1.Thrift.Type.BOOL, 68);
|
|
1082
|
+
protocol.writeBool(value1);
|
|
1083
|
+
protocol.writeFieldEnd();
|
|
1084
|
+
}
|
|
1085
|
+
if (value0.isMandatory !== null && value0.isMandatory !== undefined) {
|
|
1086
|
+
var value1 = value0.isMandatory;
|
|
1087
|
+
protocol.writeFieldBegin('isMandatory', thrift_1.Thrift.Type.BOOL, 69);
|
|
1088
|
+
protocol.writeBool(value1);
|
|
1089
|
+
protocol.writeFieldEnd();
|
|
1090
|
+
}
|
|
1091
|
+
if (value0.cartoonVariants !== null && value0.cartoonVariants !== undefined) {
|
|
1092
|
+
var value1 = value0.cartoonVariants;
|
|
1093
|
+
protocol.writeFieldBegin('cartoonVariants', thrift_1.Thrift.Type.LIST, 70);
|
|
1094
|
+
protocol.writeListBegin(thrift_1.Thrift.Type.STRUCT, value1.length);
|
|
1095
|
+
value1.forEach(function (value2) {
|
|
1096
|
+
cartoonVariant_1.CartoonVariantSerde.write(protocol, value2);
|
|
1097
|
+
});
|
|
1098
|
+
protocol.writeListEnd();
|
|
1099
|
+
protocol.writeFieldEnd();
|
|
1100
|
+
}
|
|
1101
|
+
protocol.writeFieldStop();
|
|
1102
|
+
protocol.writeStructEnd();
|
|
1103
|
+
};
|
|
1104
|
+
return AssetFieldsSerde;
|
|
1105
|
+
}());
|
|
1106
|
+
exports.AssetFieldsSerde = AssetFieldsSerde;
|