@guardian/content-api-models 16.2.0-RC1 → 17.3.0-beta.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.
|
@@ -4,12 +4,14 @@
|
|
|
4
4
|
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
5
|
*/
|
|
6
6
|
import { TProtocol } from 'thrift';
|
|
7
|
+
import Int64 from 'node-int64';
|
|
7
8
|
import { ContentType } from '../../../v1/contentType';
|
|
8
9
|
import { EventType } from './eventType';
|
|
9
10
|
export interface ContentDecachedEvent {
|
|
10
11
|
contentPath: string;
|
|
11
12
|
eventType: EventType;
|
|
12
13
|
contentType?: ContentType;
|
|
14
|
+
eventPublished?: Int64;
|
|
13
15
|
}
|
|
14
16
|
export declare class ContentDecachedEventSerde {
|
|
15
17
|
static read(protocol: TProtocol): ContentDecachedEvent;
|
|
@@ -48,6 +48,15 @@ var ContentDecachedEventSerde = /** @class */ (function () {
|
|
|
48
48
|
protocol.skip(ftype);
|
|
49
49
|
}
|
|
50
50
|
break;
|
|
51
|
+
case 5:
|
|
52
|
+
if (ftype === thrift_1.Thrift.Type.I64) {
|
|
53
|
+
var value1 = protocol.readI64();
|
|
54
|
+
result.eventPublished = value1;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
protocol.skip(ftype);
|
|
58
|
+
}
|
|
59
|
+
break;
|
|
51
60
|
default:
|
|
52
61
|
protocol.skip(ftype);
|
|
53
62
|
}
|
|
@@ -77,6 +86,12 @@ var ContentDecachedEventSerde = /** @class */ (function () {
|
|
|
77
86
|
protocol.writeI32(value1);
|
|
78
87
|
protocol.writeFieldEnd();
|
|
79
88
|
}
|
|
89
|
+
if (value0.eventPublished !== null && value0.eventPublished !== undefined) {
|
|
90
|
+
var value1 = value0.eventPublished;
|
|
91
|
+
protocol.writeFieldBegin('eventPublished', thrift_1.Thrift.Type.I64, 5);
|
|
92
|
+
protocol.writeI64(value1);
|
|
93
|
+
protocol.writeFieldEnd();
|
|
94
|
+
}
|
|
80
95
|
protocol.writeFieldStop();
|
|
81
96
|
protocol.writeStructEnd();
|
|
82
97
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
|
|
1
2
|
{
|
|
2
3
|
"name": "@guardian/content-api-models",
|
|
3
|
-
"version": "
|
|
4
|
+
"version": "17.3.0-beta.0",
|
|
4
5
|
"description": "Typescript library built from the content api thrift definitions",
|
|
5
6
|
"repository": {
|
|
6
7
|
"type": "git",
|
|
@@ -9,15 +10,15 @@
|
|
|
9
10
|
"author": "",
|
|
10
11
|
"license": "Apache-2.0",
|
|
11
12
|
"devDependencies": {
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
"typescript": "^3.8.3"
|
|
14
|
+
},
|
|
14
15
|
"dependencies": {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
16
|
+
"@guardian/story-packages-model": "^2.2.0-beta.0",
|
|
17
|
+
"@guardian/content-entity-model": "^2.2.0-beta.3",
|
|
18
|
+
"@types/thrift": "^0.10.10",
|
|
19
|
+
"thrift": "^0.13.0",
|
|
20
|
+
"@guardian/content-atom-model": "^3.4.0-beta.0",
|
|
21
|
+
"@types/node-int64": "^0.4.29",
|
|
22
|
+
"node-int64": "^0.4.0"
|
|
23
23
|
}
|
|
24
|
+
}
|
package/v1/embedElementFields.js
CHANGED
|
@@ -84,6 +84,15 @@ var EmbedElementFieldsSerde = /** @class */ (function () {
|
|
|
84
84
|
protocol.skip(ftype);
|
|
85
85
|
}
|
|
86
86
|
break;
|
|
87
|
+
case 10:
|
|
88
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
89
|
+
var value1 = protocol.readString();
|
|
90
|
+
result.caption = value1;
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
protocol.skip(ftype);
|
|
94
|
+
}
|
|
95
|
+
break;
|
|
87
96
|
default:
|
|
88
97
|
protocol.skip(ftype);
|
|
89
98
|
}
|
|
@@ -137,6 +146,12 @@ var EmbedElementFieldsSerde = /** @class */ (function () {
|
|
|
137
146
|
protocol.writeString(value1);
|
|
138
147
|
protocol.writeFieldEnd();
|
|
139
148
|
}
|
|
149
|
+
if (value0.caption !== null && value0.caption !== undefined) {
|
|
150
|
+
var value1 = value0.caption;
|
|
151
|
+
protocol.writeFieldBegin('caption', thrift_1.Thrift.Type.STRING, 10);
|
|
152
|
+
protocol.writeString(value1);
|
|
153
|
+
protocol.writeFieldEnd();
|
|
154
|
+
}
|
|
140
155
|
protocol.writeFieldStop();
|
|
141
156
|
protocol.writeStructEnd();
|
|
142
157
|
};
|