@guardian/content-api-models 33.0.0 → 34.0.0-PREVIEW.pm-callout-type.2025-11-14T1725.7389da8b
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/calloutElementFields.d.ts +2 -0
- package/v1/calloutElementFields.js +15 -0
- package/v1/calloutType.d.ts +9 -0
- package/v1/calloutType.js +13 -0
package/package.json
CHANGED
|
@@ -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 { CalloutType } from './calloutType';
|
|
7
8
|
export interface CalloutElementFields {
|
|
8
9
|
campaignId?: string;
|
|
9
10
|
isNonCollapsible?: boolean;
|
|
10
11
|
overridePrompt?: string;
|
|
11
12
|
overrideTitle?: string;
|
|
12
13
|
overrideDescription?: string;
|
|
14
|
+
calloutType?: CalloutType;
|
|
13
15
|
}
|
|
14
16
|
export declare class CalloutElementFieldsSerde {
|
|
15
17
|
static read(protocol: TProtocol): CalloutElementFields;
|
|
@@ -66,6 +66,15 @@ var CalloutElementFieldsSerde = /** @class */ (function () {
|
|
|
66
66
|
protocol.skip(ftype);
|
|
67
67
|
}
|
|
68
68
|
break;
|
|
69
|
+
case 6:
|
|
70
|
+
if (ftype === thrift_1.Thrift.Type.I32) {
|
|
71
|
+
var value1 = protocol.readI32();
|
|
72
|
+
result.calloutType = value1;
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
protocol.skip(ftype);
|
|
76
|
+
}
|
|
77
|
+
break;
|
|
69
78
|
default:
|
|
70
79
|
protocol.skip(ftype);
|
|
71
80
|
}
|
|
@@ -107,6 +116,12 @@ var CalloutElementFieldsSerde = /** @class */ (function () {
|
|
|
107
116
|
protocol.writeString(value1);
|
|
108
117
|
protocol.writeFieldEnd();
|
|
109
118
|
}
|
|
119
|
+
if (value0.calloutType !== null && value0.calloutType !== undefined) {
|
|
120
|
+
var value1 = value0.calloutType;
|
|
121
|
+
protocol.writeFieldBegin('calloutType', thrift_1.Thrift.Type.I32, 6);
|
|
122
|
+
protocol.writeI32(value1);
|
|
123
|
+
protocol.writeFieldEnd();
|
|
124
|
+
}
|
|
110
125
|
protocol.writeFieldStop();
|
|
111
126
|
protocol.writeStructEnd();
|
|
112
127
|
};
|
|
@@ -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.CalloutType = void 0;
|
|
9
|
+
var CalloutType;
|
|
10
|
+
(function (CalloutType) {
|
|
11
|
+
CalloutType[CalloutType["COMMUNITY"] = 0] = "COMMUNITY";
|
|
12
|
+
CalloutType[CalloutType["REPORTER"] = 1] = "REPORTER";
|
|
13
|
+
})(CalloutType || (exports.CalloutType = CalloutType = {}));
|