@guardian/content-api-models 17.4.0 → 17.4.2
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/crier/event/v1/eventPayload.d.ts +1 -1
- package/package.json +12 -11
- package/v1/contentFields.d.ts +1 -0
- package/v1/contentFields.js +15 -0
|
@@ -8,7 +8,7 @@ import { Content } from '../../../v1/content';
|
|
|
8
8
|
import { DeletedContent } from './deletedContent';
|
|
9
9
|
import { RetrievableContent } from './retrievableContent';
|
|
10
10
|
import { Atom } from '@guardian/content-atom-model/atom';
|
|
11
|
-
export
|
|
11
|
+
export type EventPayload = {
|
|
12
12
|
kind: "content";
|
|
13
13
|
content: Content;
|
|
14
14
|
} | {
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
|
|
1
2
|
{
|
|
2
3
|
"name": "@guardian/content-api-models",
|
|
3
|
-
"version": "
|
|
4
|
+
"version": "v17.4.2",
|
|
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": "^4.5.4"
|
|
14
|
+
},
|
|
14
15
|
"dependencies": {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
16
|
+
"@guardian/story-packages-model": "^2.2.0",
|
|
17
|
+
"@guardian/content-entity-model": "^2.2.1",
|
|
18
|
+
"@types/thrift": "^0.10.11",
|
|
19
|
+
"thrift": "^0.15.0",
|
|
20
|
+
"@guardian/content-atom-model": "^3.4.0",
|
|
21
|
+
"@types/node-int64": "^0.4.29",
|
|
22
|
+
"node-int64": "^0.4.0"
|
|
23
23
|
}
|
|
24
|
+
}
|
package/v1/contentFields.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ export interface ContentFields {
|
|
|
59
59
|
internalCommissionedWordcount?: number;
|
|
60
60
|
showAffiliateLinks?: boolean;
|
|
61
61
|
bylineHtml?: string;
|
|
62
|
+
showTableOfContents?: boolean;
|
|
62
63
|
}
|
|
63
64
|
export declare class ContentFieldsSerde {
|
|
64
65
|
static read(protocol: TProtocol): ContentFields;
|
package/v1/contentFields.js
CHANGED
|
@@ -481,6 +481,15 @@ var ContentFieldsSerde = /** @class */ (function () {
|
|
|
481
481
|
protocol.skip(ftype);
|
|
482
482
|
}
|
|
483
483
|
break;
|
|
484
|
+
case 52:
|
|
485
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
486
|
+
var value1 = protocol.readBool();
|
|
487
|
+
result.showTableOfContents = value1;
|
|
488
|
+
}
|
|
489
|
+
else {
|
|
490
|
+
protocol.skip(ftype);
|
|
491
|
+
}
|
|
492
|
+
break;
|
|
484
493
|
default:
|
|
485
494
|
protocol.skip(ftype);
|
|
486
495
|
}
|
|
@@ -798,6 +807,12 @@ var ContentFieldsSerde = /** @class */ (function () {
|
|
|
798
807
|
protocol.writeString(value1);
|
|
799
808
|
protocol.writeFieldEnd();
|
|
800
809
|
}
|
|
810
|
+
if (value0.showTableOfContents !== null && value0.showTableOfContents !== undefined) {
|
|
811
|
+
var value1 = value0.showTableOfContents;
|
|
812
|
+
protocol.writeFieldBegin('showTableOfContents', thrift_1.Thrift.Type.BOOL, 52);
|
|
813
|
+
protocol.writeBool(value1);
|
|
814
|
+
protocol.writeFieldEnd();
|
|
815
|
+
}
|
|
801
816
|
protocol.writeFieldStop();
|
|
802
817
|
protocol.writeStructEnd();
|
|
803
818
|
};
|