@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,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 { CapiDateTime } from './capiDateTime';
|
|
8
|
+
export interface MembershipElementFields {
|
|
9
|
+
originalUrl?: string;
|
|
10
|
+
linkText?: string;
|
|
11
|
+
linkPrefix?: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
venue?: string;
|
|
14
|
+
location?: string;
|
|
15
|
+
identifier?: string;
|
|
16
|
+
image?: string;
|
|
17
|
+
price?: string;
|
|
18
|
+
start?: CapiDateTime;
|
|
19
|
+
end?: CapiDateTime;
|
|
20
|
+
role?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare class MembershipElementFieldsSerde {
|
|
23
|
+
static read(protocol: TProtocol): MembershipElementFields;
|
|
24
|
+
static write(protocol: TProtocol, value0: MembershipElementFields): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,221 @@
|
|
|
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.MembershipElementFieldsSerde = void 0;
|
|
9
|
+
var thrift_1 = require("thrift");
|
|
10
|
+
var capiDateTime_1 = require("./capiDateTime");
|
|
11
|
+
var MembershipElementFieldsSerde = /** @class */ (function () {
|
|
12
|
+
function MembershipElementFieldsSerde() {
|
|
13
|
+
}
|
|
14
|
+
MembershipElementFieldsSerde.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.originalUrl = 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.linkText = 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.linkPrefix = 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.title = 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.venue = 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.location = 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.identifier = 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.image = 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.price = value1;
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
protocol.skip(ftype);
|
|
104
|
+
}
|
|
105
|
+
break;
|
|
106
|
+
case 10:
|
|
107
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
108
|
+
var value1 = capiDateTime_1.CapiDateTimeSerde.read(protocol);
|
|
109
|
+
result.start = value1;
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
protocol.skip(ftype);
|
|
113
|
+
}
|
|
114
|
+
break;
|
|
115
|
+
case 11:
|
|
116
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
117
|
+
var value1 = capiDateTime_1.CapiDateTimeSerde.read(protocol);
|
|
118
|
+
result.end = 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.role = value1;
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
protocol.skip(ftype);
|
|
131
|
+
}
|
|
132
|
+
break;
|
|
133
|
+
default:
|
|
134
|
+
protocol.skip(ftype);
|
|
135
|
+
}
|
|
136
|
+
protocol.readFieldEnd();
|
|
137
|
+
}
|
|
138
|
+
protocol.readStructEnd();
|
|
139
|
+
// @ts-ignore
|
|
140
|
+
return result;
|
|
141
|
+
};
|
|
142
|
+
MembershipElementFieldsSerde.write = function (protocol, value0) {
|
|
143
|
+
protocol.writeStructBegin('MembershipElementFields');
|
|
144
|
+
if (value0.originalUrl !== null && value0.originalUrl !== undefined) {
|
|
145
|
+
var value1 = value0.originalUrl;
|
|
146
|
+
protocol.writeFieldBegin('originalUrl', thrift_1.Thrift.Type.STRING, 1);
|
|
147
|
+
protocol.writeString(value1);
|
|
148
|
+
protocol.writeFieldEnd();
|
|
149
|
+
}
|
|
150
|
+
if (value0.linkText !== null && value0.linkText !== undefined) {
|
|
151
|
+
var value1 = value0.linkText;
|
|
152
|
+
protocol.writeFieldBegin('linkText', thrift_1.Thrift.Type.STRING, 2);
|
|
153
|
+
protocol.writeString(value1);
|
|
154
|
+
protocol.writeFieldEnd();
|
|
155
|
+
}
|
|
156
|
+
if (value0.linkPrefix !== null && value0.linkPrefix !== undefined) {
|
|
157
|
+
var value1 = value0.linkPrefix;
|
|
158
|
+
protocol.writeFieldBegin('linkPrefix', thrift_1.Thrift.Type.STRING, 3);
|
|
159
|
+
protocol.writeString(value1);
|
|
160
|
+
protocol.writeFieldEnd();
|
|
161
|
+
}
|
|
162
|
+
if (value0.title !== null && value0.title !== undefined) {
|
|
163
|
+
var value1 = value0.title;
|
|
164
|
+
protocol.writeFieldBegin('title', thrift_1.Thrift.Type.STRING, 4);
|
|
165
|
+
protocol.writeString(value1);
|
|
166
|
+
protocol.writeFieldEnd();
|
|
167
|
+
}
|
|
168
|
+
if (value0.venue !== null && value0.venue !== undefined) {
|
|
169
|
+
var value1 = value0.venue;
|
|
170
|
+
protocol.writeFieldBegin('venue', thrift_1.Thrift.Type.STRING, 5);
|
|
171
|
+
protocol.writeString(value1);
|
|
172
|
+
protocol.writeFieldEnd();
|
|
173
|
+
}
|
|
174
|
+
if (value0.location !== null && value0.location !== undefined) {
|
|
175
|
+
var value1 = value0.location;
|
|
176
|
+
protocol.writeFieldBegin('location', thrift_1.Thrift.Type.STRING, 6);
|
|
177
|
+
protocol.writeString(value1);
|
|
178
|
+
protocol.writeFieldEnd();
|
|
179
|
+
}
|
|
180
|
+
if (value0.identifier !== null && value0.identifier !== undefined) {
|
|
181
|
+
var value1 = value0.identifier;
|
|
182
|
+
protocol.writeFieldBegin('identifier', thrift_1.Thrift.Type.STRING, 7);
|
|
183
|
+
protocol.writeString(value1);
|
|
184
|
+
protocol.writeFieldEnd();
|
|
185
|
+
}
|
|
186
|
+
if (value0.image !== null && value0.image !== undefined) {
|
|
187
|
+
var value1 = value0.image;
|
|
188
|
+
protocol.writeFieldBegin('image', thrift_1.Thrift.Type.STRING, 8);
|
|
189
|
+
protocol.writeString(value1);
|
|
190
|
+
protocol.writeFieldEnd();
|
|
191
|
+
}
|
|
192
|
+
if (value0.price !== null && value0.price !== undefined) {
|
|
193
|
+
var value1 = value0.price;
|
|
194
|
+
protocol.writeFieldBegin('price', thrift_1.Thrift.Type.STRING, 9);
|
|
195
|
+
protocol.writeString(value1);
|
|
196
|
+
protocol.writeFieldEnd();
|
|
197
|
+
}
|
|
198
|
+
if (value0.start !== null && value0.start !== undefined) {
|
|
199
|
+
var value1 = value0.start;
|
|
200
|
+
protocol.writeFieldBegin('start', thrift_1.Thrift.Type.STRUCT, 10);
|
|
201
|
+
capiDateTime_1.CapiDateTimeSerde.write(protocol, value1);
|
|
202
|
+
protocol.writeFieldEnd();
|
|
203
|
+
}
|
|
204
|
+
if (value0.end !== null && value0.end !== undefined) {
|
|
205
|
+
var value1 = value0.end;
|
|
206
|
+
protocol.writeFieldBegin('end', thrift_1.Thrift.Type.STRUCT, 11);
|
|
207
|
+
capiDateTime_1.CapiDateTimeSerde.write(protocol, value1);
|
|
208
|
+
protocol.writeFieldEnd();
|
|
209
|
+
}
|
|
210
|
+
if (value0.role !== null && value0.role !== undefined) {
|
|
211
|
+
var value1 = value0.role;
|
|
212
|
+
protocol.writeFieldBegin('role', thrift_1.Thrift.Type.STRING, 12);
|
|
213
|
+
protocol.writeString(value1);
|
|
214
|
+
protocol.writeFieldEnd();
|
|
215
|
+
}
|
|
216
|
+
protocol.writeFieldStop();
|
|
217
|
+
protocol.writeStructEnd();
|
|
218
|
+
};
|
|
219
|
+
return MembershipElementFieldsSerde;
|
|
220
|
+
}());
|
|
221
|
+
exports.MembershipElementFieldsSerde = MembershipElementFieldsSerde;
|
|
@@ -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 MembershipPlaceholder {
|
|
8
|
+
campaignCode?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class MembershipPlaceholderSerde {
|
|
11
|
+
static read(protocol: TProtocol): MembershipPlaceholder;
|
|
12
|
+
static write(protocol: TProtocol, value0: MembershipPlaceholder): 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.MembershipPlaceholderSerde = void 0;
|
|
9
|
+
var thrift_1 = require("thrift");
|
|
10
|
+
var MembershipPlaceholderSerde = /** @class */ (function () {
|
|
11
|
+
function MembershipPlaceholderSerde() {
|
|
12
|
+
}
|
|
13
|
+
MembershipPlaceholderSerde.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.campaignCode = 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
|
+
MembershipPlaceholderSerde.write = function (protocol, value0) {
|
|
43
|
+
protocol.writeStructBegin('MembershipPlaceholder');
|
|
44
|
+
if (value0.campaignCode !== null && value0.campaignCode !== undefined) {
|
|
45
|
+
var value1 = value0.campaignCode;
|
|
46
|
+
protocol.writeFieldBegin('campaignCode', thrift_1.Thrift.Type.STRING, 1);
|
|
47
|
+
protocol.writeString(value1);
|
|
48
|
+
protocol.writeFieldEnd();
|
|
49
|
+
}
|
|
50
|
+
protocol.writeFieldStop();
|
|
51
|
+
protocol.writeStructEnd();
|
|
52
|
+
};
|
|
53
|
+
return MembershipPlaceholderSerde;
|
|
54
|
+
}());
|
|
55
|
+
exports.MembershipPlaceholderSerde = MembershipPlaceholderSerde;
|
|
@@ -0,0 +1,13 @@
|
|
|
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.MembershipTier = void 0;
|
|
9
|
+
var MembershipTier;
|
|
10
|
+
(function (MembershipTier) {
|
|
11
|
+
MembershipTier[MembershipTier["MEMBERS_ONLY"] = 0] = "MEMBERS_ONLY";
|
|
12
|
+
MembershipTier[MembershipTier["PAID_MEMBERS_ONLY"] = 1] = "PAID_MEMBERS_ONLY";
|
|
13
|
+
})(MembershipTier || (exports.MembershipTier = MembershipTier = {}));
|
|
@@ -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 MostViewedVideo {
|
|
8
|
+
id: string;
|
|
9
|
+
count: number;
|
|
10
|
+
}
|
|
11
|
+
export declare class MostViewedVideoSerde {
|
|
12
|
+
static read(protocol: TProtocol): MostViewedVideo;
|
|
13
|
+
static write(protocol: TProtocol, value0: MostViewedVideo): 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.MostViewedVideoSerde = void 0;
|
|
9
|
+
var thrift_1 = require("thrift");
|
|
10
|
+
var MostViewedVideoSerde = /** @class */ (function () {
|
|
11
|
+
function MostViewedVideoSerde() {
|
|
12
|
+
}
|
|
13
|
+
MostViewedVideoSerde.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.I32) {
|
|
35
|
+
var value1 = protocol.readI32();
|
|
36
|
+
result.count = 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
|
+
MostViewedVideoSerde.write = function (protocol, value0) {
|
|
52
|
+
protocol.writeStructBegin('MostViewedVideo');
|
|
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.count !== null && value0.count !== undefined) {
|
|
60
|
+
var value1 = value0.count;
|
|
61
|
+
protocol.writeFieldBegin('count', thrift_1.Thrift.Type.I32, 2);
|
|
62
|
+
protocol.writeI32(value1);
|
|
63
|
+
protocol.writeFieldEnd();
|
|
64
|
+
}
|
|
65
|
+
protocol.writeFieldStop();
|
|
66
|
+
protocol.writeStructEnd();
|
|
67
|
+
};
|
|
68
|
+
return MostViewedVideoSerde;
|
|
69
|
+
}());
|
|
70
|
+
exports.MostViewedVideoSerde = MostViewedVideoSerde;
|
|
@@ -0,0 +1,18 @@
|
|
|
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 NetworkFront {
|
|
8
|
+
id: string;
|
|
9
|
+
path: string;
|
|
10
|
+
edition: string;
|
|
11
|
+
webTitle: string;
|
|
12
|
+
webUrl: string;
|
|
13
|
+
apiUrl: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class NetworkFrontSerde {
|
|
16
|
+
static read(protocol: TProtocol): NetworkFront;
|
|
17
|
+
static write(protocol: TProtocol, value0: NetworkFront): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
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.NetworkFrontSerde = void 0;
|
|
9
|
+
var thrift_1 = require("thrift");
|
|
10
|
+
var NetworkFrontSerde = /** @class */ (function () {
|
|
11
|
+
function NetworkFrontSerde() {
|
|
12
|
+
}
|
|
13
|
+
NetworkFrontSerde.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.path = 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.edition = 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.webTitle = value1;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
protocol.skip(ftype);
|
|
58
|
+
}
|
|
59
|
+
break;
|
|
60
|
+
case 5:
|
|
61
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
62
|
+
var value1 = protocol.readString();
|
|
63
|
+
result.webUrl = value1;
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
protocol.skip(ftype);
|
|
67
|
+
}
|
|
68
|
+
break;
|
|
69
|
+
case 6:
|
|
70
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
71
|
+
var value1 = protocol.readString();
|
|
72
|
+
result.apiUrl = value1;
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
protocol.skip(ftype);
|
|
76
|
+
}
|
|
77
|
+
break;
|
|
78
|
+
default:
|
|
79
|
+
protocol.skip(ftype);
|
|
80
|
+
}
|
|
81
|
+
protocol.readFieldEnd();
|
|
82
|
+
}
|
|
83
|
+
protocol.readStructEnd();
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
return result;
|
|
86
|
+
};
|
|
87
|
+
NetworkFrontSerde.write = function (protocol, value0) {
|
|
88
|
+
protocol.writeStructBegin('NetworkFront');
|
|
89
|
+
if (value0.id !== null && value0.id !== undefined) {
|
|
90
|
+
var value1 = value0.id;
|
|
91
|
+
protocol.writeFieldBegin('id', thrift_1.Thrift.Type.STRING, 1);
|
|
92
|
+
protocol.writeString(value1);
|
|
93
|
+
protocol.writeFieldEnd();
|
|
94
|
+
}
|
|
95
|
+
if (value0.path !== null && value0.path !== undefined) {
|
|
96
|
+
var value1 = value0.path;
|
|
97
|
+
protocol.writeFieldBegin('path', thrift_1.Thrift.Type.STRING, 2);
|
|
98
|
+
protocol.writeString(value1);
|
|
99
|
+
protocol.writeFieldEnd();
|
|
100
|
+
}
|
|
101
|
+
if (value0.edition !== null && value0.edition !== undefined) {
|
|
102
|
+
var value1 = value0.edition;
|
|
103
|
+
protocol.writeFieldBegin('edition', thrift_1.Thrift.Type.STRING, 3);
|
|
104
|
+
protocol.writeString(value1);
|
|
105
|
+
protocol.writeFieldEnd();
|
|
106
|
+
}
|
|
107
|
+
if (value0.webTitle !== null && value0.webTitle !== undefined) {
|
|
108
|
+
var value1 = value0.webTitle;
|
|
109
|
+
protocol.writeFieldBegin('webTitle', thrift_1.Thrift.Type.STRING, 4);
|
|
110
|
+
protocol.writeString(value1);
|
|
111
|
+
protocol.writeFieldEnd();
|
|
112
|
+
}
|
|
113
|
+
if (value0.webUrl !== null && value0.webUrl !== undefined) {
|
|
114
|
+
var value1 = value0.webUrl;
|
|
115
|
+
protocol.writeFieldBegin('webUrl', thrift_1.Thrift.Type.STRING, 5);
|
|
116
|
+
protocol.writeString(value1);
|
|
117
|
+
protocol.writeFieldEnd();
|
|
118
|
+
}
|
|
119
|
+
if (value0.apiUrl !== null && value0.apiUrl !== undefined) {
|
|
120
|
+
var value1 = value0.apiUrl;
|
|
121
|
+
protocol.writeFieldBegin('apiUrl', thrift_1.Thrift.Type.STRING, 6);
|
|
122
|
+
protocol.writeString(value1);
|
|
123
|
+
protocol.writeFieldEnd();
|
|
124
|
+
}
|
|
125
|
+
protocol.writeFieldStop();
|
|
126
|
+
protocol.writeStructEnd();
|
|
127
|
+
};
|
|
128
|
+
return NetworkFrontSerde;
|
|
129
|
+
}());
|
|
130
|
+
exports.NetworkFrontSerde = NetworkFrontSerde;
|
package/v1/office.d.ts
ADDED
package/v1/office.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
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.Office = void 0;
|
|
9
|
+
var Office;
|
|
10
|
+
(function (Office) {
|
|
11
|
+
Office[Office["UK"] = 0] = "UK";
|
|
12
|
+
Office[Office["US"] = 1] = "US";
|
|
13
|
+
Office[Office["AUS"] = 2] = "AUS";
|
|
14
|
+
})(Office || (exports.Office = Office = {}));
|
package/v1/package.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
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 { CapiDateTime } from './capiDateTime';
|
|
8
|
+
import { PackageArticle } from './packageArticle';
|
|
9
|
+
export interface Package {
|
|
10
|
+
packageId: string;
|
|
11
|
+
articles: PackageArticle[];
|
|
12
|
+
packageName: string;
|
|
13
|
+
lastModified: CapiDateTime;
|
|
14
|
+
}
|
|
15
|
+
export declare class PackageSerde {
|
|
16
|
+
static read(protocol: TProtocol): Package;
|
|
17
|
+
static write(protocol: TProtocol, value0: Package): void;
|
|
18
|
+
}
|