@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
package/v1/podcast.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Autogenerated by scrooge-generator-extras
|
|
3
|
+
*
|
|
4
|
+
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
|
+
*/
|
|
6
|
+
import { TProtocol } from 'thrift';
|
|
7
|
+
import { PodcastCategory } from './podcastCategory';
|
|
8
|
+
export interface Podcast {
|
|
9
|
+
linkUrl: string;
|
|
10
|
+
copyright: string;
|
|
11
|
+
author: string;
|
|
12
|
+
subscriptionUrl?: string;
|
|
13
|
+
explicit: boolean;
|
|
14
|
+
image?: string;
|
|
15
|
+
categories?: PodcastCategory[];
|
|
16
|
+
podcastType?: string;
|
|
17
|
+
googlePodcastsUrl?: string;
|
|
18
|
+
spotifyUrl?: string;
|
|
19
|
+
acastId?: string;
|
|
20
|
+
pocketCastsUrl?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare class PodcastSerde {
|
|
23
|
+
static read(protocol: TProtocol): Podcast;
|
|
24
|
+
static write(protocol: TProtocol, value0: Podcast): void;
|
|
25
|
+
}
|
package/v1/podcast.js
ADDED
|
@@ -0,0 +1,235 @@
|
|
|
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.PodcastSerde = void 0;
|
|
9
|
+
var thrift_1 = require("thrift");
|
|
10
|
+
var podcastCategory_1 = require("./podcastCategory");
|
|
11
|
+
var PodcastSerde = /** @class */ (function () {
|
|
12
|
+
function PodcastSerde() {
|
|
13
|
+
}
|
|
14
|
+
PodcastSerde.read = function (protocol) {
|
|
15
|
+
var _a;
|
|
16
|
+
protocol.readStructBegin();
|
|
17
|
+
var result = {};
|
|
18
|
+
while (true) {
|
|
19
|
+
var ret = protocol.readFieldBegin();
|
|
20
|
+
var ftype = ret.ftype;
|
|
21
|
+
var fid = ret.fid;
|
|
22
|
+
if (ftype === thrift_1.Thrift.Type.STOP) {
|
|
23
|
+
break;
|
|
24
|
+
}
|
|
25
|
+
switch (fid) {
|
|
26
|
+
case 1:
|
|
27
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
28
|
+
var value1 = protocol.readString();
|
|
29
|
+
result.linkUrl = value1;
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
protocol.skip(ftype);
|
|
33
|
+
}
|
|
34
|
+
break;
|
|
35
|
+
case 2:
|
|
36
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
37
|
+
var value1 = protocol.readString();
|
|
38
|
+
result.copyright = value1;
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
protocol.skip(ftype);
|
|
42
|
+
}
|
|
43
|
+
break;
|
|
44
|
+
case 3:
|
|
45
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
46
|
+
var value1 = protocol.readString();
|
|
47
|
+
result.author = value1;
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
protocol.skip(ftype);
|
|
51
|
+
}
|
|
52
|
+
break;
|
|
53
|
+
case 4:
|
|
54
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
55
|
+
var value1 = protocol.readString();
|
|
56
|
+
result.subscriptionUrl = value1;
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
protocol.skip(ftype);
|
|
60
|
+
}
|
|
61
|
+
break;
|
|
62
|
+
case 5:
|
|
63
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
64
|
+
var value1 = protocol.readBool();
|
|
65
|
+
result.explicit = value1;
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
protocol.skip(ftype);
|
|
69
|
+
}
|
|
70
|
+
break;
|
|
71
|
+
case 6:
|
|
72
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
73
|
+
var value1 = protocol.readString();
|
|
74
|
+
result.image = value1;
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
protocol.skip(ftype);
|
|
78
|
+
}
|
|
79
|
+
break;
|
|
80
|
+
case 7:
|
|
81
|
+
if (ftype === thrift_1.Thrift.Type.LIST) {
|
|
82
|
+
var listInfo1 = protocol.readListBegin();
|
|
83
|
+
var listSize1 = (_a = listInfo1.size) !== null && _a !== void 0 ? _a : 0;
|
|
84
|
+
var value1 = [];
|
|
85
|
+
if (listInfo1.etype === thrift_1.Thrift.Type.STRUCT) {
|
|
86
|
+
for (var i = 0; i < listSize1; i++) {
|
|
87
|
+
var value2 = podcastCategory_1.PodcastCategorySerde.read(protocol);
|
|
88
|
+
value1.push(value2);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
protocol.readListEnd();
|
|
92
|
+
result.categories = value1;
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
protocol.skip(ftype);
|
|
96
|
+
}
|
|
97
|
+
break;
|
|
98
|
+
case 8:
|
|
99
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
100
|
+
var value1 = protocol.readString();
|
|
101
|
+
result.podcastType = value1;
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
protocol.skip(ftype);
|
|
105
|
+
}
|
|
106
|
+
break;
|
|
107
|
+
case 9:
|
|
108
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
109
|
+
var value1 = protocol.readString();
|
|
110
|
+
result.googlePodcastsUrl = value1;
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
protocol.skip(ftype);
|
|
114
|
+
}
|
|
115
|
+
break;
|
|
116
|
+
case 10:
|
|
117
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
118
|
+
var value1 = protocol.readString();
|
|
119
|
+
result.spotifyUrl = value1;
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
protocol.skip(ftype);
|
|
123
|
+
}
|
|
124
|
+
break;
|
|
125
|
+
case 11:
|
|
126
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
127
|
+
var value1 = protocol.readString();
|
|
128
|
+
result.acastId = value1;
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
protocol.skip(ftype);
|
|
132
|
+
}
|
|
133
|
+
break;
|
|
134
|
+
case 12:
|
|
135
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
136
|
+
var value1 = protocol.readString();
|
|
137
|
+
result.pocketCastsUrl = value1;
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
protocol.skip(ftype);
|
|
141
|
+
}
|
|
142
|
+
break;
|
|
143
|
+
default:
|
|
144
|
+
protocol.skip(ftype);
|
|
145
|
+
}
|
|
146
|
+
protocol.readFieldEnd();
|
|
147
|
+
}
|
|
148
|
+
protocol.readStructEnd();
|
|
149
|
+
// @ts-ignore
|
|
150
|
+
return result;
|
|
151
|
+
};
|
|
152
|
+
PodcastSerde.write = function (protocol, value0) {
|
|
153
|
+
protocol.writeStructBegin('Podcast');
|
|
154
|
+
if (value0.linkUrl !== null && value0.linkUrl !== undefined) {
|
|
155
|
+
var value1 = value0.linkUrl;
|
|
156
|
+
protocol.writeFieldBegin('linkUrl', thrift_1.Thrift.Type.STRING, 1);
|
|
157
|
+
protocol.writeString(value1);
|
|
158
|
+
protocol.writeFieldEnd();
|
|
159
|
+
}
|
|
160
|
+
if (value0.copyright !== null && value0.copyright !== undefined) {
|
|
161
|
+
var value1 = value0.copyright;
|
|
162
|
+
protocol.writeFieldBegin('copyright', thrift_1.Thrift.Type.STRING, 2);
|
|
163
|
+
protocol.writeString(value1);
|
|
164
|
+
protocol.writeFieldEnd();
|
|
165
|
+
}
|
|
166
|
+
if (value0.author !== null && value0.author !== undefined) {
|
|
167
|
+
var value1 = value0.author;
|
|
168
|
+
protocol.writeFieldBegin('author', thrift_1.Thrift.Type.STRING, 3);
|
|
169
|
+
protocol.writeString(value1);
|
|
170
|
+
protocol.writeFieldEnd();
|
|
171
|
+
}
|
|
172
|
+
if (value0.subscriptionUrl !== null && value0.subscriptionUrl !== undefined) {
|
|
173
|
+
var value1 = value0.subscriptionUrl;
|
|
174
|
+
protocol.writeFieldBegin('subscriptionUrl', thrift_1.Thrift.Type.STRING, 4);
|
|
175
|
+
protocol.writeString(value1);
|
|
176
|
+
protocol.writeFieldEnd();
|
|
177
|
+
}
|
|
178
|
+
if (value0.explicit !== null && value0.explicit !== undefined) {
|
|
179
|
+
var value1 = value0.explicit;
|
|
180
|
+
protocol.writeFieldBegin('explicit', thrift_1.Thrift.Type.BOOL, 5);
|
|
181
|
+
protocol.writeBool(value1);
|
|
182
|
+
protocol.writeFieldEnd();
|
|
183
|
+
}
|
|
184
|
+
if (value0.image !== null && value0.image !== undefined) {
|
|
185
|
+
var value1 = value0.image;
|
|
186
|
+
protocol.writeFieldBegin('image', thrift_1.Thrift.Type.STRING, 6);
|
|
187
|
+
protocol.writeString(value1);
|
|
188
|
+
protocol.writeFieldEnd();
|
|
189
|
+
}
|
|
190
|
+
if (value0.categories !== null && value0.categories !== undefined) {
|
|
191
|
+
var value1 = value0.categories;
|
|
192
|
+
protocol.writeFieldBegin('categories', thrift_1.Thrift.Type.LIST, 7);
|
|
193
|
+
protocol.writeListBegin(thrift_1.Thrift.Type.STRUCT, value1.length);
|
|
194
|
+
value1.forEach(function (value2) {
|
|
195
|
+
podcastCategory_1.PodcastCategorySerde.write(protocol, value2);
|
|
196
|
+
});
|
|
197
|
+
protocol.writeListEnd();
|
|
198
|
+
protocol.writeFieldEnd();
|
|
199
|
+
}
|
|
200
|
+
if (value0.podcastType !== null && value0.podcastType !== undefined) {
|
|
201
|
+
var value1 = value0.podcastType;
|
|
202
|
+
protocol.writeFieldBegin('podcastType', thrift_1.Thrift.Type.STRING, 8);
|
|
203
|
+
protocol.writeString(value1);
|
|
204
|
+
protocol.writeFieldEnd();
|
|
205
|
+
}
|
|
206
|
+
if (value0.googlePodcastsUrl !== null && value0.googlePodcastsUrl !== undefined) {
|
|
207
|
+
var value1 = value0.googlePodcastsUrl;
|
|
208
|
+
protocol.writeFieldBegin('googlePodcastsUrl', thrift_1.Thrift.Type.STRING, 9);
|
|
209
|
+
protocol.writeString(value1);
|
|
210
|
+
protocol.writeFieldEnd();
|
|
211
|
+
}
|
|
212
|
+
if (value0.spotifyUrl !== null && value0.spotifyUrl !== undefined) {
|
|
213
|
+
var value1 = value0.spotifyUrl;
|
|
214
|
+
protocol.writeFieldBegin('spotifyUrl', thrift_1.Thrift.Type.STRING, 10);
|
|
215
|
+
protocol.writeString(value1);
|
|
216
|
+
protocol.writeFieldEnd();
|
|
217
|
+
}
|
|
218
|
+
if (value0.acastId !== null && value0.acastId !== undefined) {
|
|
219
|
+
var value1 = value0.acastId;
|
|
220
|
+
protocol.writeFieldBegin('acastId', thrift_1.Thrift.Type.STRING, 11);
|
|
221
|
+
protocol.writeString(value1);
|
|
222
|
+
protocol.writeFieldEnd();
|
|
223
|
+
}
|
|
224
|
+
if (value0.pocketCastsUrl !== null && value0.pocketCastsUrl !== undefined) {
|
|
225
|
+
var value1 = value0.pocketCastsUrl;
|
|
226
|
+
protocol.writeFieldBegin('pocketCastsUrl', thrift_1.Thrift.Type.STRING, 12);
|
|
227
|
+
protocol.writeString(value1);
|
|
228
|
+
protocol.writeFieldEnd();
|
|
229
|
+
}
|
|
230
|
+
protocol.writeFieldStop();
|
|
231
|
+
protocol.writeStructEnd();
|
|
232
|
+
};
|
|
233
|
+
return PodcastSerde;
|
|
234
|
+
}());
|
|
235
|
+
exports.PodcastSerde = PodcastSerde;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Autogenerated by scrooge-generator-extras
|
|
3
|
+
*
|
|
4
|
+
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
|
+
*/
|
|
6
|
+
import { TProtocol } from 'thrift';
|
|
7
|
+
export interface PodcastCategory {
|
|
8
|
+
main: string;
|
|
9
|
+
sub?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class PodcastCategorySerde {
|
|
12
|
+
static read(protocol: TProtocol): PodcastCategory;
|
|
13
|
+
static write(protocol: TProtocol, value0: PodcastCategory): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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.PodcastCategorySerde = void 0;
|
|
9
|
+
var thrift_1 = require("thrift");
|
|
10
|
+
var PodcastCategorySerde = /** @class */ (function () {
|
|
11
|
+
function PodcastCategorySerde() {
|
|
12
|
+
}
|
|
13
|
+
PodcastCategorySerde.read = function (protocol) {
|
|
14
|
+
protocol.readStructBegin();
|
|
15
|
+
var result = {};
|
|
16
|
+
while (true) {
|
|
17
|
+
var ret = protocol.readFieldBegin();
|
|
18
|
+
var ftype = ret.ftype;
|
|
19
|
+
var fid = ret.fid;
|
|
20
|
+
if (ftype === thrift_1.Thrift.Type.STOP) {
|
|
21
|
+
break;
|
|
22
|
+
}
|
|
23
|
+
switch (fid) {
|
|
24
|
+
case 1:
|
|
25
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
26
|
+
var value1 = protocol.readString();
|
|
27
|
+
result.main = value1;
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
protocol.skip(ftype);
|
|
31
|
+
}
|
|
32
|
+
break;
|
|
33
|
+
case 2:
|
|
34
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
35
|
+
var value1 = protocol.readString();
|
|
36
|
+
result.sub = value1;
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
protocol.skip(ftype);
|
|
40
|
+
}
|
|
41
|
+
break;
|
|
42
|
+
default:
|
|
43
|
+
protocol.skip(ftype);
|
|
44
|
+
}
|
|
45
|
+
protocol.readFieldEnd();
|
|
46
|
+
}
|
|
47
|
+
protocol.readStructEnd();
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
return result;
|
|
50
|
+
};
|
|
51
|
+
PodcastCategorySerde.write = function (protocol, value0) {
|
|
52
|
+
protocol.writeStructBegin('PodcastCategory');
|
|
53
|
+
if (value0.main !== null && value0.main !== undefined) {
|
|
54
|
+
var value1 = value0.main;
|
|
55
|
+
protocol.writeFieldBegin('main', thrift_1.Thrift.Type.STRING, 1);
|
|
56
|
+
protocol.writeString(value1);
|
|
57
|
+
protocol.writeFieldEnd();
|
|
58
|
+
}
|
|
59
|
+
if (value0.sub !== null && value0.sub !== undefined) {
|
|
60
|
+
var value1 = value0.sub;
|
|
61
|
+
protocol.writeFieldBegin('sub', thrift_1.Thrift.Type.STRING, 2);
|
|
62
|
+
protocol.writeString(value1);
|
|
63
|
+
protocol.writeFieldEnd();
|
|
64
|
+
}
|
|
65
|
+
protocol.writeFieldStop();
|
|
66
|
+
protocol.writeStructEnd();
|
|
67
|
+
};
|
|
68
|
+
return PodcastCategorySerde;
|
|
69
|
+
}());
|
|
70
|
+
exports.PodcastCategorySerde = PodcastCategorySerde;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Autogenerated by scrooge-generator-extras
|
|
3
|
+
*
|
|
4
|
+
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
|
+
*/
|
|
6
|
+
import { TProtocol } from 'thrift';
|
|
7
|
+
export interface PullquoteElementFields {
|
|
8
|
+
html?: string;
|
|
9
|
+
attribution?: string;
|
|
10
|
+
role?: string;
|
|
11
|
+
source?: string;
|
|
12
|
+
sourceDomain?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare class PullquoteElementFieldsSerde {
|
|
15
|
+
static read(protocol: TProtocol): PullquoteElementFields;
|
|
16
|
+
static write(protocol: TProtocol, value0: PullquoteElementFields): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
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.PullquoteElementFieldsSerde = void 0;
|
|
9
|
+
var thrift_1 = require("thrift");
|
|
10
|
+
var PullquoteElementFieldsSerde = /** @class */ (function () {
|
|
11
|
+
function PullquoteElementFieldsSerde() {
|
|
12
|
+
}
|
|
13
|
+
PullquoteElementFieldsSerde.read = function (protocol) {
|
|
14
|
+
protocol.readStructBegin();
|
|
15
|
+
var result = {};
|
|
16
|
+
while (true) {
|
|
17
|
+
var ret = protocol.readFieldBegin();
|
|
18
|
+
var ftype = ret.ftype;
|
|
19
|
+
var fid = ret.fid;
|
|
20
|
+
if (ftype === thrift_1.Thrift.Type.STOP) {
|
|
21
|
+
break;
|
|
22
|
+
}
|
|
23
|
+
switch (fid) {
|
|
24
|
+
case 1:
|
|
25
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
26
|
+
var value1 = protocol.readString();
|
|
27
|
+
result.html = value1;
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
protocol.skip(ftype);
|
|
31
|
+
}
|
|
32
|
+
break;
|
|
33
|
+
case 2:
|
|
34
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
35
|
+
var value1 = protocol.readString();
|
|
36
|
+
result.attribution = value1;
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
protocol.skip(ftype);
|
|
40
|
+
}
|
|
41
|
+
break;
|
|
42
|
+
case 3:
|
|
43
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
44
|
+
var value1 = protocol.readString();
|
|
45
|
+
result.role = value1;
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
protocol.skip(ftype);
|
|
49
|
+
}
|
|
50
|
+
break;
|
|
51
|
+
case 4:
|
|
52
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
53
|
+
var value1 = protocol.readString();
|
|
54
|
+
result.source = value1;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
protocol.skip(ftype);
|
|
58
|
+
}
|
|
59
|
+
break;
|
|
60
|
+
case 7:
|
|
61
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
62
|
+
var value1 = protocol.readString();
|
|
63
|
+
result.sourceDomain = value1;
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
protocol.skip(ftype);
|
|
67
|
+
}
|
|
68
|
+
break;
|
|
69
|
+
default:
|
|
70
|
+
protocol.skip(ftype);
|
|
71
|
+
}
|
|
72
|
+
protocol.readFieldEnd();
|
|
73
|
+
}
|
|
74
|
+
protocol.readStructEnd();
|
|
75
|
+
// @ts-ignore
|
|
76
|
+
return result;
|
|
77
|
+
};
|
|
78
|
+
PullquoteElementFieldsSerde.write = function (protocol, value0) {
|
|
79
|
+
protocol.writeStructBegin('PullquoteElementFields');
|
|
80
|
+
if (value0.html !== null && value0.html !== undefined) {
|
|
81
|
+
var value1 = value0.html;
|
|
82
|
+
protocol.writeFieldBegin('html', thrift_1.Thrift.Type.STRING, 1);
|
|
83
|
+
protocol.writeString(value1);
|
|
84
|
+
protocol.writeFieldEnd();
|
|
85
|
+
}
|
|
86
|
+
if (value0.attribution !== null && value0.attribution !== undefined) {
|
|
87
|
+
var value1 = value0.attribution;
|
|
88
|
+
protocol.writeFieldBegin('attribution', thrift_1.Thrift.Type.STRING, 2);
|
|
89
|
+
protocol.writeString(value1);
|
|
90
|
+
protocol.writeFieldEnd();
|
|
91
|
+
}
|
|
92
|
+
if (value0.role !== null && value0.role !== undefined) {
|
|
93
|
+
var value1 = value0.role;
|
|
94
|
+
protocol.writeFieldBegin('role', thrift_1.Thrift.Type.STRING, 3);
|
|
95
|
+
protocol.writeString(value1);
|
|
96
|
+
protocol.writeFieldEnd();
|
|
97
|
+
}
|
|
98
|
+
if (value0.source !== null && value0.source !== undefined) {
|
|
99
|
+
var value1 = value0.source;
|
|
100
|
+
protocol.writeFieldBegin('source', thrift_1.Thrift.Type.STRING, 4);
|
|
101
|
+
protocol.writeString(value1);
|
|
102
|
+
protocol.writeFieldEnd();
|
|
103
|
+
}
|
|
104
|
+
if (value0.sourceDomain !== null && value0.sourceDomain !== undefined) {
|
|
105
|
+
var value1 = value0.sourceDomain;
|
|
106
|
+
protocol.writeFieldBegin('sourceDomain', thrift_1.Thrift.Type.STRING, 7);
|
|
107
|
+
protocol.writeString(value1);
|
|
108
|
+
protocol.writeFieldEnd();
|
|
109
|
+
}
|
|
110
|
+
protocol.writeFieldStop();
|
|
111
|
+
protocol.writeStructEnd();
|
|
112
|
+
};
|
|
113
|
+
return PullquoteElementFieldsSerde;
|
|
114
|
+
}());
|
|
115
|
+
exports.PullquoteElementFieldsSerde = PullquoteElementFieldsSerde;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Autogenerated by scrooge-generator-extras
|
|
3
|
+
*
|
|
4
|
+
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
|
+
*/
|
|
6
|
+
import { TProtocol } from 'thrift';
|
|
7
|
+
export interface RecipeElementFields {
|
|
8
|
+
recipeJson?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class RecipeElementFieldsSerde {
|
|
11
|
+
static read(protocol: TProtocol): RecipeElementFields;
|
|
12
|
+
static write(protocol: TProtocol, value0: RecipeElementFields): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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.RecipeElementFieldsSerde = void 0;
|
|
9
|
+
var thrift_1 = require("thrift");
|
|
10
|
+
var RecipeElementFieldsSerde = /** @class */ (function () {
|
|
11
|
+
function RecipeElementFieldsSerde() {
|
|
12
|
+
}
|
|
13
|
+
RecipeElementFieldsSerde.read = function (protocol) {
|
|
14
|
+
protocol.readStructBegin();
|
|
15
|
+
var result = {};
|
|
16
|
+
while (true) {
|
|
17
|
+
var ret = protocol.readFieldBegin();
|
|
18
|
+
var ftype = ret.ftype;
|
|
19
|
+
var fid = ret.fid;
|
|
20
|
+
if (ftype === thrift_1.Thrift.Type.STOP) {
|
|
21
|
+
break;
|
|
22
|
+
}
|
|
23
|
+
switch (fid) {
|
|
24
|
+
case 1:
|
|
25
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
26
|
+
var value1 = protocol.readString();
|
|
27
|
+
result.recipeJson = value1;
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
protocol.skip(ftype);
|
|
31
|
+
}
|
|
32
|
+
break;
|
|
33
|
+
default:
|
|
34
|
+
protocol.skip(ftype);
|
|
35
|
+
}
|
|
36
|
+
protocol.readFieldEnd();
|
|
37
|
+
}
|
|
38
|
+
protocol.readStructEnd();
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
return result;
|
|
41
|
+
};
|
|
42
|
+
RecipeElementFieldsSerde.write = function (protocol, value0) {
|
|
43
|
+
protocol.writeStructBegin('RecipeElementFields');
|
|
44
|
+
if (value0.recipeJson !== null && value0.recipeJson !== undefined) {
|
|
45
|
+
var value1 = value0.recipeJson;
|
|
46
|
+
protocol.writeFieldBegin('recipeJson', thrift_1.Thrift.Type.STRING, 1);
|
|
47
|
+
protocol.writeString(value1);
|
|
48
|
+
protocol.writeFieldEnd();
|
|
49
|
+
}
|
|
50
|
+
protocol.writeFieldStop();
|
|
51
|
+
protocol.writeStructEnd();
|
|
52
|
+
};
|
|
53
|
+
return RecipeElementFieldsSerde;
|
|
54
|
+
}());
|
|
55
|
+
exports.RecipeElementFieldsSerde = RecipeElementFieldsSerde;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Autogenerated by scrooge-generator-extras
|
|
3
|
+
*
|
|
4
|
+
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
|
+
*/
|
|
6
|
+
import { TProtocol } from 'thrift';
|
|
7
|
+
export interface Reference {
|
|
8
|
+
id: string;
|
|
9
|
+
type: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class ReferenceSerde {
|
|
12
|
+
static read(protocol: TProtocol): Reference;
|
|
13
|
+
static write(protocol: TProtocol, value0: Reference): void;
|
|
14
|
+
}
|
package/v1/reference.js
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
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.ReferenceSerde = void 0;
|
|
9
|
+
var thrift_1 = require("thrift");
|
|
10
|
+
var ReferenceSerde = /** @class */ (function () {
|
|
11
|
+
function ReferenceSerde() {
|
|
12
|
+
}
|
|
13
|
+
ReferenceSerde.read = function (protocol) {
|
|
14
|
+
protocol.readStructBegin();
|
|
15
|
+
var result = {};
|
|
16
|
+
while (true) {
|
|
17
|
+
var ret = protocol.readFieldBegin();
|
|
18
|
+
var ftype = ret.ftype;
|
|
19
|
+
var fid = ret.fid;
|
|
20
|
+
if (ftype === thrift_1.Thrift.Type.STOP) {
|
|
21
|
+
break;
|
|
22
|
+
}
|
|
23
|
+
switch (fid) {
|
|
24
|
+
case 1:
|
|
25
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
26
|
+
var value1 = protocol.readString();
|
|
27
|
+
result.id = value1;
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
protocol.skip(ftype);
|
|
31
|
+
}
|
|
32
|
+
break;
|
|
33
|
+
case 2:
|
|
34
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
35
|
+
var value1 = protocol.readString();
|
|
36
|
+
result.type = value1;
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
protocol.skip(ftype);
|
|
40
|
+
}
|
|
41
|
+
break;
|
|
42
|
+
default:
|
|
43
|
+
protocol.skip(ftype);
|
|
44
|
+
}
|
|
45
|
+
protocol.readFieldEnd();
|
|
46
|
+
}
|
|
47
|
+
protocol.readStructEnd();
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
return result;
|
|
50
|
+
};
|
|
51
|
+
ReferenceSerde.write = function (protocol, value0) {
|
|
52
|
+
protocol.writeStructBegin('Reference');
|
|
53
|
+
if (value0.id !== null && value0.id !== undefined) {
|
|
54
|
+
var value1 = value0.id;
|
|
55
|
+
protocol.writeFieldBegin('id', thrift_1.Thrift.Type.STRING, 1);
|
|
56
|
+
protocol.writeString(value1);
|
|
57
|
+
protocol.writeFieldEnd();
|
|
58
|
+
}
|
|
59
|
+
if (value0.type !== null && value0.type !== undefined) {
|
|
60
|
+
var value1 = value0.type;
|
|
61
|
+
protocol.writeFieldBegin('type', thrift_1.Thrift.Type.STRING, 2);
|
|
62
|
+
protocol.writeString(value1);
|
|
63
|
+
protocol.writeFieldEnd();
|
|
64
|
+
}
|
|
65
|
+
protocol.writeFieldStop();
|
|
66
|
+
protocol.writeStructEnd();
|
|
67
|
+
};
|
|
68
|
+
return ReferenceSerde;
|
|
69
|
+
}());
|
|
70
|
+
exports.ReferenceSerde = ReferenceSerde;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Autogenerated by scrooge-generator-extras
|
|
3
|
+
*
|
|
4
|
+
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
|
+
*/
|
|
6
|
+
import { TProtocol } from 'thrift';
|
|
7
|
+
import { Sponsorship } from './sponsorship';
|
|
8
|
+
export interface RichLinkElementFields {
|
|
9
|
+
url?: string;
|
|
10
|
+
originalUrl?: string;
|
|
11
|
+
linkText?: string;
|
|
12
|
+
linkPrefix?: string;
|
|
13
|
+
role?: string;
|
|
14
|
+
sponsorship?: Sponsorship;
|
|
15
|
+
}
|
|
16
|
+
export declare class RichLinkElementFieldsSerde {
|
|
17
|
+
static read(protocol: TProtocol): RichLinkElementFields;
|
|
18
|
+
static write(protocol: TProtocol, value0: RichLinkElementFields): void;
|
|
19
|
+
}
|