@guardian/content-api-models 17.6.0 → 17.6.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/package.json
CHANGED
|
@@ -7,6 +7,9 @@ import { TProtocol } from 'thrift';
|
|
|
7
7
|
export interface CalloutElementFields {
|
|
8
8
|
campaignId?: string;
|
|
9
9
|
isNonCollapsible?: boolean;
|
|
10
|
+
overridePrompt?: string;
|
|
11
|
+
overrideTitle?: string;
|
|
12
|
+
overrideDescription?: string;
|
|
10
13
|
}
|
|
11
14
|
export declare class CalloutElementFieldsSerde {
|
|
12
15
|
static read(protocol: TProtocol): CalloutElementFields;
|
|
@@ -39,6 +39,33 @@ var CalloutElementFieldsSerde = /** @class */ (function () {
|
|
|
39
39
|
protocol.skip(ftype);
|
|
40
40
|
}
|
|
41
41
|
break;
|
|
42
|
+
case 3:
|
|
43
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
44
|
+
var value1 = protocol.readString();
|
|
45
|
+
result.overridePrompt = value1;
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
protocol.skip(ftype);
|
|
49
|
+
}
|
|
50
|
+
break;
|
|
51
|
+
case 4:
|
|
52
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
53
|
+
var value1 = protocol.readString();
|
|
54
|
+
result.overrideTitle = value1;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
protocol.skip(ftype);
|
|
58
|
+
}
|
|
59
|
+
break;
|
|
60
|
+
case 5:
|
|
61
|
+
if (ftype === thrift_1.Thrift.Type.STRING) {
|
|
62
|
+
var value1 = protocol.readString();
|
|
63
|
+
result.overrideDescription = value1;
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
protocol.skip(ftype);
|
|
67
|
+
}
|
|
68
|
+
break;
|
|
42
69
|
default:
|
|
43
70
|
protocol.skip(ftype);
|
|
44
71
|
}
|
|
@@ -62,6 +89,24 @@ var CalloutElementFieldsSerde = /** @class */ (function () {
|
|
|
62
89
|
protocol.writeBool(value1);
|
|
63
90
|
protocol.writeFieldEnd();
|
|
64
91
|
}
|
|
92
|
+
if (value0.overridePrompt !== null && value0.overridePrompt !== undefined) {
|
|
93
|
+
var value1 = value0.overridePrompt;
|
|
94
|
+
protocol.writeFieldBegin('overridePrompt', thrift_1.Thrift.Type.STRING, 3);
|
|
95
|
+
protocol.writeString(value1);
|
|
96
|
+
protocol.writeFieldEnd();
|
|
97
|
+
}
|
|
98
|
+
if (value0.overrideTitle !== null && value0.overrideTitle !== undefined) {
|
|
99
|
+
var value1 = value0.overrideTitle;
|
|
100
|
+
protocol.writeFieldBegin('overrideTitle', thrift_1.Thrift.Type.STRING, 4);
|
|
101
|
+
protocol.writeString(value1);
|
|
102
|
+
protocol.writeFieldEnd();
|
|
103
|
+
}
|
|
104
|
+
if (value0.overrideDescription !== null && value0.overrideDescription !== undefined) {
|
|
105
|
+
var value1 = value0.overrideDescription;
|
|
106
|
+
protocol.writeFieldBegin('overrideDescription', thrift_1.Thrift.Type.STRING, 5);
|
|
107
|
+
protocol.writeString(value1);
|
|
108
|
+
protocol.writeFieldEnd();
|
|
109
|
+
}
|
|
65
110
|
protocol.writeFieldStop();
|
|
66
111
|
protocol.writeStructEnd();
|
|
67
112
|
};
|