@guardian/content-api-models 17.6.0 → 17.6.3
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/assetFields.d.ts +1 -0
- package/v1/assetFields.js +15 -0
- package/v1/calloutElementFields.d.ts +3 -0
- package/v1/calloutElementFields.js +45 -0
package/package.json
CHANGED
package/v1/assetFields.d.ts
CHANGED
package/v1/assetFields.js
CHANGED
|
@@ -634,6 +634,15 @@ var AssetFieldsSerde = /** @class */ (function () {
|
|
|
634
634
|
protocol.skip(ftype);
|
|
635
635
|
}
|
|
636
636
|
break;
|
|
637
|
+
case 69:
|
|
638
|
+
if (ftype === thrift_1.Thrift.Type.BOOL) {
|
|
639
|
+
var value1 = protocol.readBool();
|
|
640
|
+
result.isMandatory = value1;
|
|
641
|
+
}
|
|
642
|
+
else {
|
|
643
|
+
protocol.skip(ftype);
|
|
644
|
+
}
|
|
645
|
+
break;
|
|
637
646
|
default:
|
|
638
647
|
protocol.skip(ftype);
|
|
639
648
|
}
|
|
@@ -1053,6 +1062,12 @@ var AssetFieldsSerde = /** @class */ (function () {
|
|
|
1053
1062
|
protocol.writeBool(value1);
|
|
1054
1063
|
protocol.writeFieldEnd();
|
|
1055
1064
|
}
|
|
1065
|
+
if (value0.isMandatory !== null && value0.isMandatory !== undefined) {
|
|
1066
|
+
var value1 = value0.isMandatory;
|
|
1067
|
+
protocol.writeFieldBegin('isMandatory', thrift_1.Thrift.Type.BOOL, 69);
|
|
1068
|
+
protocol.writeBool(value1);
|
|
1069
|
+
protocol.writeFieldEnd();
|
|
1070
|
+
}
|
|
1056
1071
|
protocol.writeFieldStop();
|
|
1057
1072
|
protocol.writeStructEnd();
|
|
1058
1073
|
};
|
|
@@ -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
|
};
|