@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,116 @@
|
|
|
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.BlockAttributesSerde = void 0;
|
|
9
|
+
var thrift_1 = require("thrift");
|
|
10
|
+
var membershipPlaceholder_1 = require("./membershipPlaceholder");
|
|
11
|
+
var BlockAttributesSerde = /** @class */ (function () {
|
|
12
|
+
function BlockAttributesSerde() {
|
|
13
|
+
}
|
|
14
|
+
BlockAttributesSerde.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.BOOL) {
|
|
27
|
+
var value1 = protocol.readBool();
|
|
28
|
+
result.keyEvent = value1;
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
protocol.skip(ftype);
|
|
32
|
+
}
|
|
33
|
+
break;
|
|
34
|
+
case 2:
|
|
35
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
36
|
+
var value1 = protocol.readBool();
|
|
37
|
+
result.summary = 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.title = value1;
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
protocol.skip(ftype);
|
|
50
|
+
}
|
|
51
|
+
break;
|
|
52
|
+
case 4:
|
|
53
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
54
|
+
var value1 = protocol.readBool();
|
|
55
|
+
result.pinned = value1;
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
protocol.skip(ftype);
|
|
59
|
+
}
|
|
60
|
+
break;
|
|
61
|
+
case 5:
|
|
62
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
63
|
+
var value1 = membershipPlaceholder_1.MembershipPlaceholderSerde.read(protocol);
|
|
64
|
+
result.membershipPlaceholder = value1;
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
protocol.skip(ftype);
|
|
68
|
+
}
|
|
69
|
+
break;
|
|
70
|
+
default:
|
|
71
|
+
protocol.skip(ftype);
|
|
72
|
+
}
|
|
73
|
+
protocol.readFieldEnd();
|
|
74
|
+
}
|
|
75
|
+
protocol.readStructEnd();
|
|
76
|
+
// @ts-ignore
|
|
77
|
+
return result;
|
|
78
|
+
};
|
|
79
|
+
BlockAttributesSerde.write = function (protocol, value0) {
|
|
80
|
+
protocol.writeStructBegin('BlockAttributes');
|
|
81
|
+
if (value0.keyEvent !== null && value0.keyEvent !== undefined) {
|
|
82
|
+
var value1 = value0.keyEvent;
|
|
83
|
+
protocol.writeFieldBegin('keyEvent', thrift_1.Thrift.Type.BOOL, 1);
|
|
84
|
+
protocol.writeBool(value1);
|
|
85
|
+
protocol.writeFieldEnd();
|
|
86
|
+
}
|
|
87
|
+
if (value0.summary !== null && value0.summary !== undefined) {
|
|
88
|
+
var value1 = value0.summary;
|
|
89
|
+
protocol.writeFieldBegin('summary', thrift_1.Thrift.Type.BOOL, 2);
|
|
90
|
+
protocol.writeBool(value1);
|
|
91
|
+
protocol.writeFieldEnd();
|
|
92
|
+
}
|
|
93
|
+
if (value0.title !== null && value0.title !== undefined) {
|
|
94
|
+
var value1 = value0.title;
|
|
95
|
+
protocol.writeFieldBegin('title', thrift_1.Thrift.Type.STRING, 3);
|
|
96
|
+
protocol.writeString(value1);
|
|
97
|
+
protocol.writeFieldEnd();
|
|
98
|
+
}
|
|
99
|
+
if (value0.pinned !== null && value0.pinned !== undefined) {
|
|
100
|
+
var value1 = value0.pinned;
|
|
101
|
+
protocol.writeFieldBegin('pinned', thrift_1.Thrift.Type.BOOL, 4);
|
|
102
|
+
protocol.writeBool(value1);
|
|
103
|
+
protocol.writeFieldEnd();
|
|
104
|
+
}
|
|
105
|
+
if (value0.membershipPlaceholder !== null && value0.membershipPlaceholder !== undefined) {
|
|
106
|
+
var value1 = value0.membershipPlaceholder;
|
|
107
|
+
protocol.writeFieldBegin('membershipPlaceholder', thrift_1.Thrift.Type.STRUCT, 5);
|
|
108
|
+
membershipPlaceholder_1.MembershipPlaceholderSerde.write(protocol, value1);
|
|
109
|
+
protocol.writeFieldEnd();
|
|
110
|
+
}
|
|
111
|
+
protocol.writeFieldStop();
|
|
112
|
+
protocol.writeStructEnd();
|
|
113
|
+
};
|
|
114
|
+
return BlockAttributesSerde;
|
|
115
|
+
}());
|
|
116
|
+
exports.BlockAttributesSerde = BlockAttributesSerde;
|
|
@@ -0,0 +1,60 @@
|
|
|
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 { Asset } from './asset';
|
|
8
|
+
import { AudioElementFields } from './audioElementFields';
|
|
9
|
+
import { CalloutElementFields } from './calloutElementFields';
|
|
10
|
+
import { CartoonElementFields } from './cartoonElementFields';
|
|
11
|
+
import { CodeElementFields } from './codeElementFields';
|
|
12
|
+
import { CommentElementFields } from './commentElementFields';
|
|
13
|
+
import { ContentAtomElementFields } from './contentAtomElementFields';
|
|
14
|
+
import { ElementType } from './elementType';
|
|
15
|
+
import { EmbedElementFields } from './embedElementFields';
|
|
16
|
+
import { EmbedTracking } from './embedTracking';
|
|
17
|
+
import { ImageElementFields } from './imageElementFields';
|
|
18
|
+
import { InstagramElementFields } from './instagramElementFields';
|
|
19
|
+
import { InteractiveElementFields } from './interactiveElementFields';
|
|
20
|
+
import { MembershipElementFields } from './membershipElementFields';
|
|
21
|
+
import { PullquoteElementFields } from './pullquoteElementFields';
|
|
22
|
+
import { RecipeElementFields } from './recipeElementFields';
|
|
23
|
+
import { RichLinkElementFields } from './richLinkElementFields';
|
|
24
|
+
import { StandardElementFields } from './standardElementFields';
|
|
25
|
+
import { TextElementFields } from './textElementFields';
|
|
26
|
+
import { TweetElementFields } from './tweetElementFields';
|
|
27
|
+
import { VideoElementFields } from './videoElementFields';
|
|
28
|
+
import { VineElementFields } from './vineElementFields';
|
|
29
|
+
import { WitnessElementFields } from './witnessElementFields';
|
|
30
|
+
export interface BlockElement {
|
|
31
|
+
type: ElementType;
|
|
32
|
+
assets: Asset[];
|
|
33
|
+
textTypeData?: TextElementFields;
|
|
34
|
+
videoTypeData?: VideoElementFields;
|
|
35
|
+
tweetTypeData?: TweetElementFields;
|
|
36
|
+
imageTypeData?: ImageElementFields;
|
|
37
|
+
audioTypeData?: AudioElementFields;
|
|
38
|
+
pullquoteTypeData?: PullquoteElementFields;
|
|
39
|
+
interactiveTypeData?: InteractiveElementFields;
|
|
40
|
+
mapTypeData?: StandardElementFields;
|
|
41
|
+
documentTypeData?: StandardElementFields;
|
|
42
|
+
tableTypeData?: StandardElementFields;
|
|
43
|
+
witnessTypeData?: WitnessElementFields;
|
|
44
|
+
richLinkTypeData?: RichLinkElementFields;
|
|
45
|
+
membershipTypeData?: MembershipElementFields;
|
|
46
|
+
embedTypeData?: EmbedElementFields;
|
|
47
|
+
instagramTypeData?: InstagramElementFields;
|
|
48
|
+
commentTypeData?: CommentElementFields;
|
|
49
|
+
vineTypeData?: VineElementFields;
|
|
50
|
+
contentAtomTypeData?: ContentAtomElementFields;
|
|
51
|
+
tracking?: EmbedTracking;
|
|
52
|
+
codeTypeData?: CodeElementFields;
|
|
53
|
+
calloutTypeData?: CalloutElementFields;
|
|
54
|
+
cartoonTypeData?: CartoonElementFields;
|
|
55
|
+
recipeTypeData?: RecipeElementFields;
|
|
56
|
+
}
|
|
57
|
+
export declare class BlockElementSerde {
|
|
58
|
+
static read(protocol: TProtocol): BlockElement;
|
|
59
|
+
static write(protocol: TProtocol, value0: BlockElement): void;
|
|
60
|
+
}
|
|
@@ -0,0 +1,451 @@
|
|
|
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.BlockElementSerde = void 0;
|
|
9
|
+
var thrift_1 = require("thrift");
|
|
10
|
+
var asset_1 = require("./asset");
|
|
11
|
+
var audioElementFields_1 = require("./audioElementFields");
|
|
12
|
+
var calloutElementFields_1 = require("./calloutElementFields");
|
|
13
|
+
var cartoonElementFields_1 = require("./cartoonElementFields");
|
|
14
|
+
var codeElementFields_1 = require("./codeElementFields");
|
|
15
|
+
var commentElementFields_1 = require("./commentElementFields");
|
|
16
|
+
var contentAtomElementFields_1 = require("./contentAtomElementFields");
|
|
17
|
+
var embedElementFields_1 = require("./embedElementFields");
|
|
18
|
+
var embedTracking_1 = require("./embedTracking");
|
|
19
|
+
var imageElementFields_1 = require("./imageElementFields");
|
|
20
|
+
var instagramElementFields_1 = require("./instagramElementFields");
|
|
21
|
+
var interactiveElementFields_1 = require("./interactiveElementFields");
|
|
22
|
+
var membershipElementFields_1 = require("./membershipElementFields");
|
|
23
|
+
var pullquoteElementFields_1 = require("./pullquoteElementFields");
|
|
24
|
+
var recipeElementFields_1 = require("./recipeElementFields");
|
|
25
|
+
var richLinkElementFields_1 = require("./richLinkElementFields");
|
|
26
|
+
var standardElementFields_1 = require("./standardElementFields");
|
|
27
|
+
var textElementFields_1 = require("./textElementFields");
|
|
28
|
+
var tweetElementFields_1 = require("./tweetElementFields");
|
|
29
|
+
var videoElementFields_1 = require("./videoElementFields");
|
|
30
|
+
var vineElementFields_1 = require("./vineElementFields");
|
|
31
|
+
var witnessElementFields_1 = require("./witnessElementFields");
|
|
32
|
+
var BlockElementSerde = /** @class */ (function () {
|
|
33
|
+
function BlockElementSerde() {
|
|
34
|
+
}
|
|
35
|
+
BlockElementSerde.read = function (protocol) {
|
|
36
|
+
var _a;
|
|
37
|
+
protocol.readStructBegin();
|
|
38
|
+
var result = {};
|
|
39
|
+
while (true) {
|
|
40
|
+
var ret = protocol.readFieldBegin();
|
|
41
|
+
var ftype = ret.ftype;
|
|
42
|
+
var fid = ret.fid;
|
|
43
|
+
if (ftype === thrift_1.Thrift.Type.STOP) {
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
switch (fid) {
|
|
47
|
+
case 1:
|
|
48
|
+
if (ftype === thrift_1.Thrift.Type.I32) {
|
|
49
|
+
var value1 = protocol.readI32();
|
|
50
|
+
result.type = value1;
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
protocol.skip(ftype);
|
|
54
|
+
}
|
|
55
|
+
break;
|
|
56
|
+
case 2:
|
|
57
|
+
if (ftype === thrift_1.Thrift.Type.LIST) {
|
|
58
|
+
var listInfo1 = protocol.readListBegin();
|
|
59
|
+
var listSize1 = (_a = listInfo1.size) !== null && _a !== void 0 ? _a : 0;
|
|
60
|
+
var value1 = [];
|
|
61
|
+
if (listInfo1.etype === thrift_1.Thrift.Type.STRUCT) {
|
|
62
|
+
for (var i = 0; i < listSize1; i++) {
|
|
63
|
+
var value2 = asset_1.AssetSerde.read(protocol);
|
|
64
|
+
value1.push(value2);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
protocol.readListEnd();
|
|
68
|
+
result.assets = value1;
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
protocol.skip(ftype);
|
|
72
|
+
}
|
|
73
|
+
break;
|
|
74
|
+
case 3:
|
|
75
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
76
|
+
var value1 = textElementFields_1.TextElementFieldsSerde.read(protocol);
|
|
77
|
+
result.textTypeData = value1;
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
protocol.skip(ftype);
|
|
81
|
+
}
|
|
82
|
+
break;
|
|
83
|
+
case 4:
|
|
84
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
85
|
+
var value1 = videoElementFields_1.VideoElementFieldsSerde.read(protocol);
|
|
86
|
+
result.videoTypeData = value1;
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
protocol.skip(ftype);
|
|
90
|
+
}
|
|
91
|
+
break;
|
|
92
|
+
case 5:
|
|
93
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
94
|
+
var value1 = tweetElementFields_1.TweetElementFieldsSerde.read(protocol);
|
|
95
|
+
result.tweetTypeData = value1;
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
protocol.skip(ftype);
|
|
99
|
+
}
|
|
100
|
+
break;
|
|
101
|
+
case 6:
|
|
102
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
103
|
+
var value1 = imageElementFields_1.ImageElementFieldsSerde.read(protocol);
|
|
104
|
+
result.imageTypeData = value1;
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
protocol.skip(ftype);
|
|
108
|
+
}
|
|
109
|
+
break;
|
|
110
|
+
case 7:
|
|
111
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
112
|
+
var value1 = audioElementFields_1.AudioElementFieldsSerde.read(protocol);
|
|
113
|
+
result.audioTypeData = value1;
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
protocol.skip(ftype);
|
|
117
|
+
}
|
|
118
|
+
break;
|
|
119
|
+
case 8:
|
|
120
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
121
|
+
var value1 = pullquoteElementFields_1.PullquoteElementFieldsSerde.read(protocol);
|
|
122
|
+
result.pullquoteTypeData = value1;
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
protocol.skip(ftype);
|
|
126
|
+
}
|
|
127
|
+
break;
|
|
128
|
+
case 9:
|
|
129
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
130
|
+
var value1 = interactiveElementFields_1.InteractiveElementFieldsSerde.read(protocol);
|
|
131
|
+
result.interactiveTypeData = value1;
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
protocol.skip(ftype);
|
|
135
|
+
}
|
|
136
|
+
break;
|
|
137
|
+
case 10:
|
|
138
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
139
|
+
var value1 = standardElementFields_1.StandardElementFieldsSerde.read(protocol);
|
|
140
|
+
result.mapTypeData = value1;
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
protocol.skip(ftype);
|
|
144
|
+
}
|
|
145
|
+
break;
|
|
146
|
+
case 11:
|
|
147
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
148
|
+
var value1 = standardElementFields_1.StandardElementFieldsSerde.read(protocol);
|
|
149
|
+
result.documentTypeData = value1;
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
protocol.skip(ftype);
|
|
153
|
+
}
|
|
154
|
+
break;
|
|
155
|
+
case 12:
|
|
156
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
157
|
+
var value1 = standardElementFields_1.StandardElementFieldsSerde.read(protocol);
|
|
158
|
+
result.tableTypeData = value1;
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
protocol.skip(ftype);
|
|
162
|
+
}
|
|
163
|
+
break;
|
|
164
|
+
case 13:
|
|
165
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
166
|
+
var value1 = witnessElementFields_1.WitnessElementFieldsSerde.read(protocol);
|
|
167
|
+
result.witnessTypeData = value1;
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
protocol.skip(ftype);
|
|
171
|
+
}
|
|
172
|
+
break;
|
|
173
|
+
case 14:
|
|
174
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
175
|
+
var value1 = richLinkElementFields_1.RichLinkElementFieldsSerde.read(protocol);
|
|
176
|
+
result.richLinkTypeData = value1;
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
protocol.skip(ftype);
|
|
180
|
+
}
|
|
181
|
+
break;
|
|
182
|
+
case 15:
|
|
183
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
184
|
+
var value1 = membershipElementFields_1.MembershipElementFieldsSerde.read(protocol);
|
|
185
|
+
result.membershipTypeData = value1;
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
protocol.skip(ftype);
|
|
189
|
+
}
|
|
190
|
+
break;
|
|
191
|
+
case 16:
|
|
192
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
193
|
+
var value1 = embedElementFields_1.EmbedElementFieldsSerde.read(protocol);
|
|
194
|
+
result.embedTypeData = value1;
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
protocol.skip(ftype);
|
|
198
|
+
}
|
|
199
|
+
break;
|
|
200
|
+
case 17:
|
|
201
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
202
|
+
var value1 = instagramElementFields_1.InstagramElementFieldsSerde.read(protocol);
|
|
203
|
+
result.instagramTypeData = value1;
|
|
204
|
+
}
|
|
205
|
+
else {
|
|
206
|
+
protocol.skip(ftype);
|
|
207
|
+
}
|
|
208
|
+
break;
|
|
209
|
+
case 18:
|
|
210
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
211
|
+
var value1 = commentElementFields_1.CommentElementFieldsSerde.read(protocol);
|
|
212
|
+
result.commentTypeData = value1;
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
protocol.skip(ftype);
|
|
216
|
+
}
|
|
217
|
+
break;
|
|
218
|
+
case 19:
|
|
219
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
220
|
+
var value1 = vineElementFields_1.VineElementFieldsSerde.read(protocol);
|
|
221
|
+
result.vineTypeData = value1;
|
|
222
|
+
}
|
|
223
|
+
else {
|
|
224
|
+
protocol.skip(ftype);
|
|
225
|
+
}
|
|
226
|
+
break;
|
|
227
|
+
case 20:
|
|
228
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
229
|
+
var value1 = contentAtomElementFields_1.ContentAtomElementFieldsSerde.read(protocol);
|
|
230
|
+
result.contentAtomTypeData = value1;
|
|
231
|
+
}
|
|
232
|
+
else {
|
|
233
|
+
protocol.skip(ftype);
|
|
234
|
+
}
|
|
235
|
+
break;
|
|
236
|
+
case 21:
|
|
237
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
238
|
+
var value1 = embedTracking_1.EmbedTrackingSerde.read(protocol);
|
|
239
|
+
result.tracking = value1;
|
|
240
|
+
}
|
|
241
|
+
else {
|
|
242
|
+
protocol.skip(ftype);
|
|
243
|
+
}
|
|
244
|
+
break;
|
|
245
|
+
case 22:
|
|
246
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
247
|
+
var value1 = codeElementFields_1.CodeElementFieldsSerde.read(protocol);
|
|
248
|
+
result.codeTypeData = value1;
|
|
249
|
+
}
|
|
250
|
+
else {
|
|
251
|
+
protocol.skip(ftype);
|
|
252
|
+
}
|
|
253
|
+
break;
|
|
254
|
+
case 23:
|
|
255
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
256
|
+
var value1 = calloutElementFields_1.CalloutElementFieldsSerde.read(protocol);
|
|
257
|
+
result.calloutTypeData = value1;
|
|
258
|
+
}
|
|
259
|
+
else {
|
|
260
|
+
protocol.skip(ftype);
|
|
261
|
+
}
|
|
262
|
+
break;
|
|
263
|
+
case 24:
|
|
264
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
265
|
+
var value1 = cartoonElementFields_1.CartoonElementFieldsSerde.read(protocol);
|
|
266
|
+
result.cartoonTypeData = value1;
|
|
267
|
+
}
|
|
268
|
+
else {
|
|
269
|
+
protocol.skip(ftype);
|
|
270
|
+
}
|
|
271
|
+
break;
|
|
272
|
+
case 25:
|
|
273
|
+
if (ftype === thrift_1.Thrift.Type.STRUCT) {
|
|
274
|
+
var value1 = recipeElementFields_1.RecipeElementFieldsSerde.read(protocol);
|
|
275
|
+
result.recipeTypeData = value1;
|
|
276
|
+
}
|
|
277
|
+
else {
|
|
278
|
+
protocol.skip(ftype);
|
|
279
|
+
}
|
|
280
|
+
break;
|
|
281
|
+
default:
|
|
282
|
+
protocol.skip(ftype);
|
|
283
|
+
}
|
|
284
|
+
protocol.readFieldEnd();
|
|
285
|
+
}
|
|
286
|
+
protocol.readStructEnd();
|
|
287
|
+
// @ts-ignore
|
|
288
|
+
return result;
|
|
289
|
+
};
|
|
290
|
+
BlockElementSerde.write = function (protocol, value0) {
|
|
291
|
+
protocol.writeStructBegin('BlockElement');
|
|
292
|
+
if (value0.type !== null && value0.type !== undefined) {
|
|
293
|
+
var value1 = value0.type;
|
|
294
|
+
protocol.writeFieldBegin('type', thrift_1.Thrift.Type.I32, 1);
|
|
295
|
+
protocol.writeI32(value1);
|
|
296
|
+
protocol.writeFieldEnd();
|
|
297
|
+
}
|
|
298
|
+
if (value0.assets !== null && value0.assets !== undefined) {
|
|
299
|
+
var value1 = value0.assets;
|
|
300
|
+
protocol.writeFieldBegin('assets', thrift_1.Thrift.Type.LIST, 2);
|
|
301
|
+
protocol.writeListBegin(thrift_1.Thrift.Type.STRUCT, value1.length);
|
|
302
|
+
value1.forEach(function (value2) {
|
|
303
|
+
asset_1.AssetSerde.write(protocol, value2);
|
|
304
|
+
});
|
|
305
|
+
protocol.writeListEnd();
|
|
306
|
+
protocol.writeFieldEnd();
|
|
307
|
+
}
|
|
308
|
+
if (value0.textTypeData !== null && value0.textTypeData !== undefined) {
|
|
309
|
+
var value1 = value0.textTypeData;
|
|
310
|
+
protocol.writeFieldBegin('textTypeData', thrift_1.Thrift.Type.STRUCT, 3);
|
|
311
|
+
textElementFields_1.TextElementFieldsSerde.write(protocol, value1);
|
|
312
|
+
protocol.writeFieldEnd();
|
|
313
|
+
}
|
|
314
|
+
if (value0.videoTypeData !== null && value0.videoTypeData !== undefined) {
|
|
315
|
+
var value1 = value0.videoTypeData;
|
|
316
|
+
protocol.writeFieldBegin('videoTypeData', thrift_1.Thrift.Type.STRUCT, 4);
|
|
317
|
+
videoElementFields_1.VideoElementFieldsSerde.write(protocol, value1);
|
|
318
|
+
protocol.writeFieldEnd();
|
|
319
|
+
}
|
|
320
|
+
if (value0.tweetTypeData !== null && value0.tweetTypeData !== undefined) {
|
|
321
|
+
var value1 = value0.tweetTypeData;
|
|
322
|
+
protocol.writeFieldBegin('tweetTypeData', thrift_1.Thrift.Type.STRUCT, 5);
|
|
323
|
+
tweetElementFields_1.TweetElementFieldsSerde.write(protocol, value1);
|
|
324
|
+
protocol.writeFieldEnd();
|
|
325
|
+
}
|
|
326
|
+
if (value0.imageTypeData !== null && value0.imageTypeData !== undefined) {
|
|
327
|
+
var value1 = value0.imageTypeData;
|
|
328
|
+
protocol.writeFieldBegin('imageTypeData', thrift_1.Thrift.Type.STRUCT, 6);
|
|
329
|
+
imageElementFields_1.ImageElementFieldsSerde.write(protocol, value1);
|
|
330
|
+
protocol.writeFieldEnd();
|
|
331
|
+
}
|
|
332
|
+
if (value0.audioTypeData !== null && value0.audioTypeData !== undefined) {
|
|
333
|
+
var value1 = value0.audioTypeData;
|
|
334
|
+
protocol.writeFieldBegin('audioTypeData', thrift_1.Thrift.Type.STRUCT, 7);
|
|
335
|
+
audioElementFields_1.AudioElementFieldsSerde.write(protocol, value1);
|
|
336
|
+
protocol.writeFieldEnd();
|
|
337
|
+
}
|
|
338
|
+
if (value0.pullquoteTypeData !== null && value0.pullquoteTypeData !== undefined) {
|
|
339
|
+
var value1 = value0.pullquoteTypeData;
|
|
340
|
+
protocol.writeFieldBegin('pullquoteTypeData', thrift_1.Thrift.Type.STRUCT, 8);
|
|
341
|
+
pullquoteElementFields_1.PullquoteElementFieldsSerde.write(protocol, value1);
|
|
342
|
+
protocol.writeFieldEnd();
|
|
343
|
+
}
|
|
344
|
+
if (value0.interactiveTypeData !== null && value0.interactiveTypeData !== undefined) {
|
|
345
|
+
var value1 = value0.interactiveTypeData;
|
|
346
|
+
protocol.writeFieldBegin('interactiveTypeData', thrift_1.Thrift.Type.STRUCT, 9);
|
|
347
|
+
interactiveElementFields_1.InteractiveElementFieldsSerde.write(protocol, value1);
|
|
348
|
+
protocol.writeFieldEnd();
|
|
349
|
+
}
|
|
350
|
+
if (value0.mapTypeData !== null && value0.mapTypeData !== undefined) {
|
|
351
|
+
var value1 = value0.mapTypeData;
|
|
352
|
+
protocol.writeFieldBegin('mapTypeData', thrift_1.Thrift.Type.STRUCT, 10);
|
|
353
|
+
standardElementFields_1.StandardElementFieldsSerde.write(protocol, value1);
|
|
354
|
+
protocol.writeFieldEnd();
|
|
355
|
+
}
|
|
356
|
+
if (value0.documentTypeData !== null && value0.documentTypeData !== undefined) {
|
|
357
|
+
var value1 = value0.documentTypeData;
|
|
358
|
+
protocol.writeFieldBegin('documentTypeData', thrift_1.Thrift.Type.STRUCT, 11);
|
|
359
|
+
standardElementFields_1.StandardElementFieldsSerde.write(protocol, value1);
|
|
360
|
+
protocol.writeFieldEnd();
|
|
361
|
+
}
|
|
362
|
+
if (value0.tableTypeData !== null && value0.tableTypeData !== undefined) {
|
|
363
|
+
var value1 = value0.tableTypeData;
|
|
364
|
+
protocol.writeFieldBegin('tableTypeData', thrift_1.Thrift.Type.STRUCT, 12);
|
|
365
|
+
standardElementFields_1.StandardElementFieldsSerde.write(protocol, value1);
|
|
366
|
+
protocol.writeFieldEnd();
|
|
367
|
+
}
|
|
368
|
+
if (value0.witnessTypeData !== null && value0.witnessTypeData !== undefined) {
|
|
369
|
+
var value1 = value0.witnessTypeData;
|
|
370
|
+
protocol.writeFieldBegin('witnessTypeData', thrift_1.Thrift.Type.STRUCT, 13);
|
|
371
|
+
witnessElementFields_1.WitnessElementFieldsSerde.write(protocol, value1);
|
|
372
|
+
protocol.writeFieldEnd();
|
|
373
|
+
}
|
|
374
|
+
if (value0.richLinkTypeData !== null && value0.richLinkTypeData !== undefined) {
|
|
375
|
+
var value1 = value0.richLinkTypeData;
|
|
376
|
+
protocol.writeFieldBegin('richLinkTypeData', thrift_1.Thrift.Type.STRUCT, 14);
|
|
377
|
+
richLinkElementFields_1.RichLinkElementFieldsSerde.write(protocol, value1);
|
|
378
|
+
protocol.writeFieldEnd();
|
|
379
|
+
}
|
|
380
|
+
if (value0.membershipTypeData !== null && value0.membershipTypeData !== undefined) {
|
|
381
|
+
var value1 = value0.membershipTypeData;
|
|
382
|
+
protocol.writeFieldBegin('membershipTypeData', thrift_1.Thrift.Type.STRUCT, 15);
|
|
383
|
+
membershipElementFields_1.MembershipElementFieldsSerde.write(protocol, value1);
|
|
384
|
+
protocol.writeFieldEnd();
|
|
385
|
+
}
|
|
386
|
+
if (value0.embedTypeData !== null && value0.embedTypeData !== undefined) {
|
|
387
|
+
var value1 = value0.embedTypeData;
|
|
388
|
+
protocol.writeFieldBegin('embedTypeData', thrift_1.Thrift.Type.STRUCT, 16);
|
|
389
|
+
embedElementFields_1.EmbedElementFieldsSerde.write(protocol, value1);
|
|
390
|
+
protocol.writeFieldEnd();
|
|
391
|
+
}
|
|
392
|
+
if (value0.instagramTypeData !== null && value0.instagramTypeData !== undefined) {
|
|
393
|
+
var value1 = value0.instagramTypeData;
|
|
394
|
+
protocol.writeFieldBegin('instagramTypeData', thrift_1.Thrift.Type.STRUCT, 17);
|
|
395
|
+
instagramElementFields_1.InstagramElementFieldsSerde.write(protocol, value1);
|
|
396
|
+
protocol.writeFieldEnd();
|
|
397
|
+
}
|
|
398
|
+
if (value0.commentTypeData !== null && value0.commentTypeData !== undefined) {
|
|
399
|
+
var value1 = value0.commentTypeData;
|
|
400
|
+
protocol.writeFieldBegin('commentTypeData', thrift_1.Thrift.Type.STRUCT, 18);
|
|
401
|
+
commentElementFields_1.CommentElementFieldsSerde.write(protocol, value1);
|
|
402
|
+
protocol.writeFieldEnd();
|
|
403
|
+
}
|
|
404
|
+
if (value0.vineTypeData !== null && value0.vineTypeData !== undefined) {
|
|
405
|
+
var value1 = value0.vineTypeData;
|
|
406
|
+
protocol.writeFieldBegin('vineTypeData', thrift_1.Thrift.Type.STRUCT, 19);
|
|
407
|
+
vineElementFields_1.VineElementFieldsSerde.write(protocol, value1);
|
|
408
|
+
protocol.writeFieldEnd();
|
|
409
|
+
}
|
|
410
|
+
if (value0.contentAtomTypeData !== null && value0.contentAtomTypeData !== undefined) {
|
|
411
|
+
var value1 = value0.contentAtomTypeData;
|
|
412
|
+
protocol.writeFieldBegin('contentAtomTypeData', thrift_1.Thrift.Type.STRUCT, 20);
|
|
413
|
+
contentAtomElementFields_1.ContentAtomElementFieldsSerde.write(protocol, value1);
|
|
414
|
+
protocol.writeFieldEnd();
|
|
415
|
+
}
|
|
416
|
+
if (value0.tracking !== null && value0.tracking !== undefined) {
|
|
417
|
+
var value1 = value0.tracking;
|
|
418
|
+
protocol.writeFieldBegin('tracking', thrift_1.Thrift.Type.STRUCT, 21);
|
|
419
|
+
embedTracking_1.EmbedTrackingSerde.write(protocol, value1);
|
|
420
|
+
protocol.writeFieldEnd();
|
|
421
|
+
}
|
|
422
|
+
if (value0.codeTypeData !== null && value0.codeTypeData !== undefined) {
|
|
423
|
+
var value1 = value0.codeTypeData;
|
|
424
|
+
protocol.writeFieldBegin('codeTypeData', thrift_1.Thrift.Type.STRUCT, 22);
|
|
425
|
+
codeElementFields_1.CodeElementFieldsSerde.write(protocol, value1);
|
|
426
|
+
protocol.writeFieldEnd();
|
|
427
|
+
}
|
|
428
|
+
if (value0.calloutTypeData !== null && value0.calloutTypeData !== undefined) {
|
|
429
|
+
var value1 = value0.calloutTypeData;
|
|
430
|
+
protocol.writeFieldBegin('calloutTypeData', thrift_1.Thrift.Type.STRUCT, 23);
|
|
431
|
+
calloutElementFields_1.CalloutElementFieldsSerde.write(protocol, value1);
|
|
432
|
+
protocol.writeFieldEnd();
|
|
433
|
+
}
|
|
434
|
+
if (value0.cartoonTypeData !== null && value0.cartoonTypeData !== undefined) {
|
|
435
|
+
var value1 = value0.cartoonTypeData;
|
|
436
|
+
protocol.writeFieldBegin('cartoonTypeData', thrift_1.Thrift.Type.STRUCT, 24);
|
|
437
|
+
cartoonElementFields_1.CartoonElementFieldsSerde.write(protocol, value1);
|
|
438
|
+
protocol.writeFieldEnd();
|
|
439
|
+
}
|
|
440
|
+
if (value0.recipeTypeData !== null && value0.recipeTypeData !== undefined) {
|
|
441
|
+
var value1 = value0.recipeTypeData;
|
|
442
|
+
protocol.writeFieldBegin('recipeTypeData', thrift_1.Thrift.Type.STRUCT, 25);
|
|
443
|
+
recipeElementFields_1.RecipeElementFieldsSerde.write(protocol, value1);
|
|
444
|
+
protocol.writeFieldEnd();
|
|
445
|
+
}
|
|
446
|
+
protocol.writeFieldStop();
|
|
447
|
+
protocol.writeStructEnd();
|
|
448
|
+
};
|
|
449
|
+
return BlockElementSerde;
|
|
450
|
+
}());
|
|
451
|
+
exports.BlockElementSerde = BlockElementSerde;
|
package/v1/blocks.d.ts
ADDED
|
@@ -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 { Block } from './block';
|
|
8
|
+
export interface Blocks {
|
|
9
|
+
main?: Block;
|
|
10
|
+
body?: Block[];
|
|
11
|
+
totalBodyBlocks?: number;
|
|
12
|
+
requestedBodyBlocks?: {
|
|
13
|
+
[key: string]: Block[];
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export declare class BlocksSerde {
|
|
17
|
+
static read(protocol: TProtocol): Blocks;
|
|
18
|
+
static write(protocol: TProtocol, value0: Blocks): void;
|
|
19
|
+
}
|