@guardian/content-api-models 36.0.0-PREVIEW.jshbump-content-entity-model.2026-01-08T1227.759d1bb9 → 37.0.0-PREVIEW.jshstandard-button.2026-01-09T1349.29934471
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/package.json +1 -1
- package/v1/linkElementFields.d.ts +2 -0
- package/v1/linkElementFields.js +15 -0
- package/v1/linkType.d.ts +2 -1
- package/v1/linkType.js +1 -0
- package/v1/priority.d.ts +9 -0
- package/v1/priority.js +13 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
{
|
|
3
3
|
"name": "@guardian/content-api-models",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "37.0.0-PREVIEW.jshstandard-button.2026-01-09T1349.29934471",
|
|
5
5
|
"description": "Typescript library built from the content api thrift definitions",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { TProtocol } from 'thrift';
|
|
7
7
|
import { LinkType } from './linkType';
|
|
8
|
+
import { Priority } from './priority';
|
|
8
9
|
export interface LinkElementFields {
|
|
9
10
|
label?: string;
|
|
10
11
|
url?: string;
|
|
11
12
|
linkType?: LinkType;
|
|
13
|
+
priority?: Priority;
|
|
12
14
|
}
|
|
13
15
|
export declare class LinkElementFieldsSerde {
|
|
14
16
|
static read(protocol: TProtocol): LinkElementFields;
|
package/v1/linkElementFields.js
CHANGED
|
@@ -48,6 +48,15 @@ var LinkElementFieldsSerde = /** @class */ (function () {
|
|
|
48
48
|
protocol.skip(ftype);
|
|
49
49
|
}
|
|
50
50
|
break;
|
|
51
|
+
case 4:
|
|
52
|
+
if (ftype === thrift_1.Thrift.Type.I32) {
|
|
53
|
+
var value1 = protocol.readI32();
|
|
54
|
+
result.priority = 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 LinkElementFieldsSerde = /** @class */ (function () {
|
|
|
77
86
|
protocol.writeI32(value1);
|
|
78
87
|
protocol.writeFieldEnd();
|
|
79
88
|
}
|
|
89
|
+
if (value0.priority !== null && value0.priority !== undefined) {
|
|
90
|
+
var value1 = value0.priority;
|
|
91
|
+
protocol.writeFieldBegin('priority', thrift_1.Thrift.Type.I32, 4);
|
|
92
|
+
protocol.writeI32(value1);
|
|
93
|
+
protocol.writeFieldEnd();
|
|
94
|
+
}
|
|
80
95
|
protocol.writeFieldStop();
|
|
81
96
|
protocol.writeStructEnd();
|
|
82
97
|
};
|
package/v1/linkType.d.ts
CHANGED
package/v1/linkType.js
CHANGED
package/v1/priority.d.ts
ADDED
package/v1/priority.js
ADDED
|
@@ -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.Priority = void 0;
|
|
9
|
+
var Priority;
|
|
10
|
+
(function (Priority) {
|
|
11
|
+
Priority[Priority["PRIMARY"] = 1] = "PRIMARY";
|
|
12
|
+
Priority[Priority["TERTIARY"] = 3] = "TERTIARY";
|
|
13
|
+
})(Priority || (exports.Priority = Priority = {}));
|