@guardian/support-dotcom-components 7.10.1 → 8.0.0
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/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/shared/lib/geolocation.d.ts +20 -10
- package/dist/shared/lib/geolocation.d.ts.map +1 -1
- package/dist/shared/types/abTests/banner.d.ts +206 -2250
- package/dist/shared/types/abTests/banner.d.ts.map +1 -1
- package/dist/shared/types/abTests/epic.d.ts +156 -1560
- package/dist/shared/types/abTests/epic.d.ts.map +1 -1
- package/dist/shared/types/abTests/gutter.d.ts +80 -369
- package/dist/shared/types/abTests/gutter.d.ts.map +1 -1
- package/dist/shared/types/abTests/header.d.ts +95 -467
- package/dist/shared/types/abTests/header.d.ts.map +1 -1
- package/dist/shared/types/abTests/shared.d.ts +89 -155
- package/dist/shared/types/abTests/shared.d.ts.map +1 -1
- package/dist/shared/types/props/banner.d.ts +144 -1675
- package/dist/shared/types/props/banner.d.ts.map +1 -1
- package/dist/shared/types/props/choiceCards.d.ts +56 -586
- package/dist/shared/types/props/choiceCards.d.ts.map +1 -1
- package/dist/shared/types/props/design.d.ts +54 -514
- package/dist/shared/types/props/design.d.ts.map +1 -1
- package/dist/shared/types/props/epic.d.ts +192 -2501
- package/dist/shared/types/props/epic.d.ts.map +1 -1
- package/dist/shared/types/props/gutter.d.ts +25 -200
- package/dist/shared/types/props/gutter.d.ts.map +1 -1
- package/dist/shared/types/props/header.d.ts +29 -230
- package/dist/shared/types/props/header.d.ts.map +1 -1
- package/dist/shared/types/props/shared.d.ts +55 -212
- package/dist/shared/types/props/shared.d.ts.map +1 -1
- package/dist/shared/types/purchaseInfo.d.ts +11 -2
- package/dist/shared/types/purchaseInfo.d.ts.map +1 -1
- package/dist/shared/types/targeting/shared.d.ts +5 -15
- package/dist/shared/types/targeting/shared.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -10,233 +10,119 @@ declare const headerVariantFromToolSchema: z.ZodObject<{
|
|
|
10
10
|
primaryCta: z.ZodOptional<z.ZodObject<{
|
|
11
11
|
text: z.ZodString;
|
|
12
12
|
baseUrl: z.ZodString;
|
|
13
|
-
},
|
|
14
|
-
text: string;
|
|
15
|
-
baseUrl: string;
|
|
16
|
-
}, {
|
|
17
|
-
text: string;
|
|
18
|
-
baseUrl: string;
|
|
19
|
-
}>>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
20
14
|
secondaryCta: z.ZodOptional<z.ZodObject<{
|
|
21
15
|
text: z.ZodString;
|
|
22
16
|
baseUrl: z.ZodString;
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}, {
|
|
27
|
-
text: string;
|
|
28
|
-
baseUrl: string;
|
|
29
|
-
}>>;
|
|
30
|
-
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
31
|
-
}, "strip", z.ZodTypeAny, {
|
|
32
|
-
heading: string;
|
|
33
|
-
subheading: string;
|
|
34
|
-
primaryCta?: {
|
|
35
|
-
text: string;
|
|
36
|
-
baseUrl: string;
|
|
37
|
-
} | undefined;
|
|
38
|
-
secondaryCta?: {
|
|
39
|
-
text: string;
|
|
40
|
-
baseUrl: string;
|
|
41
|
-
} | undefined;
|
|
42
|
-
benefits?: string[] | undefined;
|
|
43
|
-
}, {
|
|
44
|
-
heading: string;
|
|
45
|
-
subheading: string;
|
|
46
|
-
primaryCta?: {
|
|
47
|
-
text: string;
|
|
48
|
-
baseUrl: string;
|
|
49
|
-
} | undefined;
|
|
50
|
-
secondaryCta?: {
|
|
51
|
-
text: string;
|
|
52
|
-
baseUrl: string;
|
|
53
|
-
} | undefined;
|
|
54
|
-
benefits?: string[] | undefined;
|
|
55
|
-
}>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
benefits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
56
20
|
mobileContent: z.ZodOptional<z.ZodObject<{
|
|
57
21
|
heading: z.ZodString;
|
|
58
22
|
subheading: z.ZodString;
|
|
59
23
|
primaryCta: z.ZodOptional<z.ZodObject<{
|
|
60
24
|
text: z.ZodString;
|
|
61
25
|
baseUrl: z.ZodString;
|
|
62
|
-
},
|
|
63
|
-
text: string;
|
|
64
|
-
baseUrl: string;
|
|
65
|
-
}, {
|
|
66
|
-
text: string;
|
|
67
|
-
baseUrl: string;
|
|
68
|
-
}>>;
|
|
26
|
+
}, z.core.$strip>>;
|
|
69
27
|
secondaryCta: z.ZodOptional<z.ZodObject<{
|
|
70
28
|
text: z.ZodString;
|
|
71
29
|
baseUrl: z.ZodString;
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
baseUrl: string;
|
|
78
|
-
}>>;
|
|
79
|
-
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
80
|
-
}, "strip", z.ZodTypeAny, {
|
|
81
|
-
heading: string;
|
|
82
|
-
subheading: string;
|
|
83
|
-
primaryCta?: {
|
|
84
|
-
text: string;
|
|
85
|
-
baseUrl: string;
|
|
86
|
-
} | undefined;
|
|
87
|
-
secondaryCta?: {
|
|
88
|
-
text: string;
|
|
89
|
-
baseUrl: string;
|
|
90
|
-
} | undefined;
|
|
91
|
-
benefits?: string[] | undefined;
|
|
92
|
-
}, {
|
|
93
|
-
heading: string;
|
|
94
|
-
subheading: string;
|
|
95
|
-
primaryCta?: {
|
|
96
|
-
text: string;
|
|
97
|
-
baseUrl: string;
|
|
98
|
-
} | undefined;
|
|
99
|
-
secondaryCta?: {
|
|
100
|
-
text: string;
|
|
101
|
-
baseUrl: string;
|
|
102
|
-
} | undefined;
|
|
103
|
-
benefits?: string[] | undefined;
|
|
104
|
-
}>>;
|
|
105
|
-
promoCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
106
|
-
}, "strip", z.ZodTypeAny, {
|
|
107
|
-
name: string;
|
|
108
|
-
content: {
|
|
109
|
-
heading: string;
|
|
110
|
-
subheading: string;
|
|
111
|
-
primaryCta?: {
|
|
112
|
-
text: string;
|
|
113
|
-
baseUrl: string;
|
|
114
|
-
} | undefined;
|
|
115
|
-
secondaryCta?: {
|
|
116
|
-
text: string;
|
|
117
|
-
baseUrl: string;
|
|
118
|
-
} | undefined;
|
|
119
|
-
benefits?: string[] | undefined;
|
|
120
|
-
};
|
|
121
|
-
mobileContent?: {
|
|
122
|
-
heading: string;
|
|
123
|
-
subheading: string;
|
|
124
|
-
primaryCta?: {
|
|
125
|
-
text: string;
|
|
126
|
-
baseUrl: string;
|
|
127
|
-
} | undefined;
|
|
128
|
-
secondaryCta?: {
|
|
129
|
-
text: string;
|
|
130
|
-
baseUrl: string;
|
|
131
|
-
} | undefined;
|
|
132
|
-
benefits?: string[] | undefined;
|
|
133
|
-
} | undefined;
|
|
134
|
-
promoCodes?: string[] | null | undefined;
|
|
135
|
-
}, {
|
|
136
|
-
name: string;
|
|
137
|
-
content: {
|
|
138
|
-
heading: string;
|
|
139
|
-
subheading: string;
|
|
140
|
-
primaryCta?: {
|
|
141
|
-
text: string;
|
|
142
|
-
baseUrl: string;
|
|
143
|
-
} | undefined;
|
|
144
|
-
secondaryCta?: {
|
|
145
|
-
text: string;
|
|
146
|
-
baseUrl: string;
|
|
147
|
-
} | undefined;
|
|
148
|
-
benefits?: string[] | undefined;
|
|
149
|
-
};
|
|
150
|
-
mobileContent?: {
|
|
151
|
-
heading: string;
|
|
152
|
-
subheading: string;
|
|
153
|
-
primaryCta?: {
|
|
154
|
-
text: string;
|
|
155
|
-
baseUrl: string;
|
|
156
|
-
} | undefined;
|
|
157
|
-
secondaryCta?: {
|
|
158
|
-
text: string;
|
|
159
|
-
baseUrl: string;
|
|
160
|
-
} | undefined;
|
|
161
|
-
benefits?: string[] | undefined;
|
|
162
|
-
} | undefined;
|
|
163
|
-
promoCodes?: string[] | null | undefined;
|
|
164
|
-
}>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
benefits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
promoCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
165
35
|
export type HeaderVariantFromTool = z.infer<typeof headerVariantFromToolSchema>;
|
|
166
36
|
export declare const headerTestFromToolSchema: z.ZodObject<{
|
|
37
|
+
channel: z.ZodEnum<{
|
|
38
|
+
Epic: "Epic";
|
|
39
|
+
EpicAppleNews: "EpicAppleNews";
|
|
40
|
+
EpicLiveblog: "EpicLiveblog";
|
|
41
|
+
Banner1: "Banner1";
|
|
42
|
+
Banner2: "Banner2";
|
|
43
|
+
Header: "Header";
|
|
44
|
+
GutterLiveblog: "GutterLiveblog";
|
|
45
|
+
}>;
|
|
167
46
|
name: z.ZodString;
|
|
168
|
-
|
|
47
|
+
status: z.ZodEnum<{
|
|
48
|
+
Live: "Live";
|
|
49
|
+
Draft: "Draft";
|
|
50
|
+
Archived: "Archived";
|
|
51
|
+
}>;
|
|
169
52
|
priority: z.ZodNumber;
|
|
170
|
-
status: z.ZodEnum<["Live", "Draft", "Archived"]>;
|
|
171
53
|
controlProportionSettings: z.ZodOptional<z.ZodObject<{
|
|
172
54
|
proportion: z.ZodNumber;
|
|
173
55
|
offset: z.ZodNumber;
|
|
174
|
-
},
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
deviceType: z.ZodOptional<z.ZodEnum<{
|
|
58
|
+
Mobile: "Mobile";
|
|
59
|
+
Desktop: "Desktop";
|
|
60
|
+
All: "All";
|
|
61
|
+
iOS: "iOS";
|
|
62
|
+
Android: "Android";
|
|
63
|
+
}>>;
|
|
64
|
+
signedInStatus: z.ZodOptional<z.ZodEnum<{
|
|
65
|
+
All: "All";
|
|
66
|
+
SignedIn: "SignedIn";
|
|
67
|
+
SignedOut: "SignedOut";
|
|
180
68
|
}>>;
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
69
|
+
consentStatus: z.ZodOptional<z.ZodEnum<{
|
|
70
|
+
All: "All";
|
|
71
|
+
HasConsented: "HasConsented";
|
|
72
|
+
HasNotConsented: "HasNotConsented";
|
|
73
|
+
}>>;
|
|
74
|
+
methodologies: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
185
75
|
name: z.ZodLiteral<"ABTest">;
|
|
186
|
-
},
|
|
187
|
-
name: "ABTest";
|
|
188
|
-
}, {
|
|
189
|
-
name: "ABTest";
|
|
190
|
-
}>, z.ZodObject<{
|
|
76
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
191
77
|
name: z.ZodLiteral<"EpsilonGreedyBandit">;
|
|
192
78
|
epsilon: z.ZodNumber;
|
|
193
79
|
sampleCount: z.ZodOptional<z.ZodNumber>;
|
|
194
|
-
},
|
|
195
|
-
name: "EpsilonGreedyBandit";
|
|
196
|
-
epsilon: number;
|
|
197
|
-
sampleCount?: number | undefined;
|
|
198
|
-
}, {
|
|
199
|
-
name: "EpsilonGreedyBandit";
|
|
200
|
-
epsilon: number;
|
|
201
|
-
sampleCount?: number | undefined;
|
|
202
|
-
}>, z.ZodObject<{
|
|
80
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
203
81
|
name: z.ZodLiteral<"Roulette">;
|
|
204
82
|
sampleCount: z.ZodOptional<z.ZodNumber>;
|
|
205
|
-
},
|
|
206
|
-
name: "Roulette";
|
|
207
|
-
sampleCount?: number | undefined;
|
|
208
|
-
}, {
|
|
209
|
-
name: "Roulette";
|
|
210
|
-
sampleCount?: number | undefined;
|
|
211
|
-
}>]>, z.ZodObject<{
|
|
83
|
+
}, z.core.$strip>], "name">, z.ZodObject<{
|
|
212
84
|
testName: z.ZodOptional<z.ZodString>;
|
|
213
|
-
},
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}, "strip", z.ZodTypeAny, {
|
|
223
|
-
targetedCountryGroups: ("GBPCountries" | "UnitedStates" | "AUDCountries" | "EURCountries" | "International" | "NZDCountries" | "Canada")[];
|
|
224
|
-
targetedCountryCodes?: string[] | undefined;
|
|
225
|
-
}, {
|
|
226
|
-
targetedCountryGroups: ("GBPCountries" | "UnitedStates" | "AUDCountries" | "EURCountries" | "International" | "NZDCountries" | "Canada")[];
|
|
227
|
-
targetedCountryCodes?: string[] | undefined;
|
|
85
|
+
}, z.core.$strip>>>>;
|
|
86
|
+
locations: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
87
|
+
GBPCountries: "GBPCountries";
|
|
88
|
+
UnitedStates: "UnitedStates";
|
|
89
|
+
AUDCountries: "AUDCountries";
|
|
90
|
+
EURCountries: "EURCountries";
|
|
91
|
+
International: "International";
|
|
92
|
+
NZDCountries: "NZDCountries";
|
|
93
|
+
Canada: "Canada";
|
|
228
94
|
}>>>;
|
|
229
|
-
|
|
95
|
+
regionTargeting: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
96
|
+
targetedCountryGroups: z.ZodArray<z.ZodEnum<{
|
|
97
|
+
GBPCountries: "GBPCountries";
|
|
98
|
+
UnitedStates: "UnitedStates";
|
|
99
|
+
AUDCountries: "AUDCountries";
|
|
100
|
+
EURCountries: "EURCountries";
|
|
101
|
+
International: "International";
|
|
102
|
+
NZDCountries: "NZDCountries";
|
|
103
|
+
Canada: "Canada";
|
|
104
|
+
}>>;
|
|
105
|
+
targetedCountryCodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
106
|
+
}, z.core.$strip>>>;
|
|
107
|
+
userCohort: z.ZodEnum<{
|
|
108
|
+
AllExistingSupporters: "AllExistingSupporters";
|
|
109
|
+
AllNonSupporters: "AllNonSupporters";
|
|
110
|
+
Everyone: "Everyone";
|
|
111
|
+
PostAskPauseSingleContributors: "PostAskPauseSingleContributors";
|
|
112
|
+
}>;
|
|
230
113
|
purchaseInfo: z.ZodOptional<z.ZodObject<{
|
|
231
|
-
userType: z.ZodArray<z.ZodEnum<
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
114
|
+
userType: z.ZodArray<z.ZodEnum<{
|
|
115
|
+
new: "new";
|
|
116
|
+
guest: "guest";
|
|
117
|
+
current: "current";
|
|
118
|
+
}>>;
|
|
119
|
+
product: z.ZodArray<z.ZodEnum<{
|
|
120
|
+
Contribution: "Contribution";
|
|
121
|
+
SupporterPlus: "SupporterPlus";
|
|
122
|
+
GuardianWeekly: "GuardianWeekly";
|
|
123
|
+
Paper: "Paper";
|
|
124
|
+
}>>;
|
|
125
|
+
}, z.core.$strip>>;
|
|
240
126
|
variants: z.ZodArray<z.ZodObject<{
|
|
241
127
|
name: z.ZodString;
|
|
242
128
|
content: z.ZodObject<{
|
|
@@ -245,287 +131,29 @@ export declare const headerTestFromToolSchema: z.ZodObject<{
|
|
|
245
131
|
primaryCta: z.ZodOptional<z.ZodObject<{
|
|
246
132
|
text: z.ZodString;
|
|
247
133
|
baseUrl: z.ZodString;
|
|
248
|
-
},
|
|
249
|
-
text: string;
|
|
250
|
-
baseUrl: string;
|
|
251
|
-
}, {
|
|
252
|
-
text: string;
|
|
253
|
-
baseUrl: string;
|
|
254
|
-
}>>;
|
|
134
|
+
}, z.core.$strip>>;
|
|
255
135
|
secondaryCta: z.ZodOptional<z.ZodObject<{
|
|
256
136
|
text: z.ZodString;
|
|
257
137
|
baseUrl: z.ZodString;
|
|
258
|
-
},
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
}, {
|
|
262
|
-
text: string;
|
|
263
|
-
baseUrl: string;
|
|
264
|
-
}>>;
|
|
265
|
-
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
266
|
-
}, "strip", z.ZodTypeAny, {
|
|
267
|
-
heading: string;
|
|
268
|
-
subheading: string;
|
|
269
|
-
primaryCta?: {
|
|
270
|
-
text: string;
|
|
271
|
-
baseUrl: string;
|
|
272
|
-
} | undefined;
|
|
273
|
-
secondaryCta?: {
|
|
274
|
-
text: string;
|
|
275
|
-
baseUrl: string;
|
|
276
|
-
} | undefined;
|
|
277
|
-
benefits?: string[] | undefined;
|
|
278
|
-
}, {
|
|
279
|
-
heading: string;
|
|
280
|
-
subheading: string;
|
|
281
|
-
primaryCta?: {
|
|
282
|
-
text: string;
|
|
283
|
-
baseUrl: string;
|
|
284
|
-
} | undefined;
|
|
285
|
-
secondaryCta?: {
|
|
286
|
-
text: string;
|
|
287
|
-
baseUrl: string;
|
|
288
|
-
} | undefined;
|
|
289
|
-
benefits?: string[] | undefined;
|
|
290
|
-
}>;
|
|
138
|
+
}, z.core.$strip>>;
|
|
139
|
+
benefits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
140
|
+
}, z.core.$strip>;
|
|
291
141
|
mobileContent: z.ZodOptional<z.ZodObject<{
|
|
292
142
|
heading: z.ZodString;
|
|
293
143
|
subheading: z.ZodString;
|
|
294
144
|
primaryCta: z.ZodOptional<z.ZodObject<{
|
|
295
145
|
text: z.ZodString;
|
|
296
146
|
baseUrl: z.ZodString;
|
|
297
|
-
},
|
|
298
|
-
text: string;
|
|
299
|
-
baseUrl: string;
|
|
300
|
-
}, {
|
|
301
|
-
text: string;
|
|
302
|
-
baseUrl: string;
|
|
303
|
-
}>>;
|
|
147
|
+
}, z.core.$strip>>;
|
|
304
148
|
secondaryCta: z.ZodOptional<z.ZodObject<{
|
|
305
149
|
text: z.ZodString;
|
|
306
150
|
baseUrl: z.ZodString;
|
|
307
|
-
},
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}>>;
|
|
314
|
-
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
315
|
-
}, "strip", z.ZodTypeAny, {
|
|
316
|
-
heading: string;
|
|
317
|
-
subheading: string;
|
|
318
|
-
primaryCta?: {
|
|
319
|
-
text: string;
|
|
320
|
-
baseUrl: string;
|
|
321
|
-
} | undefined;
|
|
322
|
-
secondaryCta?: {
|
|
323
|
-
text: string;
|
|
324
|
-
baseUrl: string;
|
|
325
|
-
} | undefined;
|
|
326
|
-
benefits?: string[] | undefined;
|
|
327
|
-
}, {
|
|
328
|
-
heading: string;
|
|
329
|
-
subheading: string;
|
|
330
|
-
primaryCta?: {
|
|
331
|
-
text: string;
|
|
332
|
-
baseUrl: string;
|
|
333
|
-
} | undefined;
|
|
334
|
-
secondaryCta?: {
|
|
335
|
-
text: string;
|
|
336
|
-
baseUrl: string;
|
|
337
|
-
} | undefined;
|
|
338
|
-
benefits?: string[] | undefined;
|
|
339
|
-
}>>;
|
|
340
|
-
promoCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
341
|
-
}, "strip", z.ZodTypeAny, {
|
|
342
|
-
name: string;
|
|
343
|
-
content: {
|
|
344
|
-
heading: string;
|
|
345
|
-
subheading: string;
|
|
346
|
-
primaryCta?: {
|
|
347
|
-
text: string;
|
|
348
|
-
baseUrl: string;
|
|
349
|
-
} | undefined;
|
|
350
|
-
secondaryCta?: {
|
|
351
|
-
text: string;
|
|
352
|
-
baseUrl: string;
|
|
353
|
-
} | undefined;
|
|
354
|
-
benefits?: string[] | undefined;
|
|
355
|
-
};
|
|
356
|
-
mobileContent?: {
|
|
357
|
-
heading: string;
|
|
358
|
-
subheading: string;
|
|
359
|
-
primaryCta?: {
|
|
360
|
-
text: string;
|
|
361
|
-
baseUrl: string;
|
|
362
|
-
} | undefined;
|
|
363
|
-
secondaryCta?: {
|
|
364
|
-
text: string;
|
|
365
|
-
baseUrl: string;
|
|
366
|
-
} | undefined;
|
|
367
|
-
benefits?: string[] | undefined;
|
|
368
|
-
} | undefined;
|
|
369
|
-
promoCodes?: string[] | null | undefined;
|
|
370
|
-
}, {
|
|
371
|
-
name: string;
|
|
372
|
-
content: {
|
|
373
|
-
heading: string;
|
|
374
|
-
subheading: string;
|
|
375
|
-
primaryCta?: {
|
|
376
|
-
text: string;
|
|
377
|
-
baseUrl: string;
|
|
378
|
-
} | undefined;
|
|
379
|
-
secondaryCta?: {
|
|
380
|
-
text: string;
|
|
381
|
-
baseUrl: string;
|
|
382
|
-
} | undefined;
|
|
383
|
-
benefits?: string[] | undefined;
|
|
384
|
-
};
|
|
385
|
-
mobileContent?: {
|
|
386
|
-
heading: string;
|
|
387
|
-
subheading: string;
|
|
388
|
-
primaryCta?: {
|
|
389
|
-
text: string;
|
|
390
|
-
baseUrl: string;
|
|
391
|
-
} | undefined;
|
|
392
|
-
secondaryCta?: {
|
|
393
|
-
text: string;
|
|
394
|
-
baseUrl: string;
|
|
395
|
-
} | undefined;
|
|
396
|
-
benefits?: string[] | undefined;
|
|
397
|
-
} | undefined;
|
|
398
|
-
promoCodes?: string[] | null | undefined;
|
|
399
|
-
}>, "many">;
|
|
400
|
-
}, "strip", z.ZodTypeAny, {
|
|
401
|
-
name: string;
|
|
402
|
-
channel: "Epic" | "EpicAppleNews" | "EpicLiveblog" | "Banner1" | "Banner2" | "Header" | "GutterLiveblog";
|
|
403
|
-
priority: number;
|
|
404
|
-
status: "Live" | "Draft" | "Archived";
|
|
405
|
-
userCohort: "AllExistingSupporters" | "AllNonSupporters" | "Everyone" | "PostAskPauseSingleContributors";
|
|
406
|
-
variants: {
|
|
407
|
-
name: string;
|
|
408
|
-
content: {
|
|
409
|
-
heading: string;
|
|
410
|
-
subheading: string;
|
|
411
|
-
primaryCta?: {
|
|
412
|
-
text: string;
|
|
413
|
-
baseUrl: string;
|
|
414
|
-
} | undefined;
|
|
415
|
-
secondaryCta?: {
|
|
416
|
-
text: string;
|
|
417
|
-
baseUrl: string;
|
|
418
|
-
} | undefined;
|
|
419
|
-
benefits?: string[] | undefined;
|
|
420
|
-
};
|
|
421
|
-
mobileContent?: {
|
|
422
|
-
heading: string;
|
|
423
|
-
subheading: string;
|
|
424
|
-
primaryCta?: {
|
|
425
|
-
text: string;
|
|
426
|
-
baseUrl: string;
|
|
427
|
-
} | undefined;
|
|
428
|
-
secondaryCta?: {
|
|
429
|
-
text: string;
|
|
430
|
-
baseUrl: string;
|
|
431
|
-
} | undefined;
|
|
432
|
-
benefits?: string[] | undefined;
|
|
433
|
-
} | undefined;
|
|
434
|
-
promoCodes?: string[] | null | undefined;
|
|
435
|
-
}[];
|
|
436
|
-
controlProportionSettings?: {
|
|
437
|
-
offset: number;
|
|
438
|
-
proportion: number;
|
|
439
|
-
} | undefined;
|
|
440
|
-
deviceType?: "Mobile" | "Desktop" | "All" | "iOS" | "Android" | undefined;
|
|
441
|
-
signedInStatus?: "All" | "SignedIn" | "SignedOut" | undefined;
|
|
442
|
-
consentStatus?: "All" | "HasConsented" | "HasNotConsented" | undefined;
|
|
443
|
-
methodologies?: (({
|
|
444
|
-
name: "ABTest";
|
|
445
|
-
} | {
|
|
446
|
-
name: "EpsilonGreedyBandit";
|
|
447
|
-
epsilon: number;
|
|
448
|
-
sampleCount?: number | undefined;
|
|
449
|
-
} | {
|
|
450
|
-
name: "Roulette";
|
|
451
|
-
sampleCount?: number | undefined;
|
|
452
|
-
}) & {
|
|
453
|
-
testName?: string | undefined;
|
|
454
|
-
})[] | undefined;
|
|
455
|
-
locations?: ("GBPCountries" | "UnitedStates" | "AUDCountries" | "EURCountries" | "International" | "NZDCountries" | "Canada")[] | undefined;
|
|
456
|
-
regionTargeting?: {
|
|
457
|
-
targetedCountryGroups: ("GBPCountries" | "UnitedStates" | "AUDCountries" | "EURCountries" | "International" | "NZDCountries" | "Canada")[];
|
|
458
|
-
targetedCountryCodes?: string[] | undefined;
|
|
459
|
-
} | undefined;
|
|
460
|
-
purchaseInfo?: {
|
|
461
|
-
product: ("Contribution" | "SupporterPlus" | "GuardianWeekly" | "Paper")[];
|
|
462
|
-
userType: ("new" | "guest" | "current")[];
|
|
463
|
-
} | undefined;
|
|
464
|
-
}, {
|
|
465
|
-
name: string;
|
|
466
|
-
channel: "Epic" | "EpicAppleNews" | "EpicLiveblog" | "Banner1" | "Banner2" | "Header" | "GutterLiveblog";
|
|
467
|
-
priority: number;
|
|
468
|
-
status: "Live" | "Draft" | "Archived";
|
|
469
|
-
userCohort: "AllExistingSupporters" | "AllNonSupporters" | "Everyone" | "PostAskPauseSingleContributors";
|
|
470
|
-
variants: {
|
|
471
|
-
name: string;
|
|
472
|
-
content: {
|
|
473
|
-
heading: string;
|
|
474
|
-
subheading: string;
|
|
475
|
-
primaryCta?: {
|
|
476
|
-
text: string;
|
|
477
|
-
baseUrl: string;
|
|
478
|
-
} | undefined;
|
|
479
|
-
secondaryCta?: {
|
|
480
|
-
text: string;
|
|
481
|
-
baseUrl: string;
|
|
482
|
-
} | undefined;
|
|
483
|
-
benefits?: string[] | undefined;
|
|
484
|
-
};
|
|
485
|
-
mobileContent?: {
|
|
486
|
-
heading: string;
|
|
487
|
-
subheading: string;
|
|
488
|
-
primaryCta?: {
|
|
489
|
-
text: string;
|
|
490
|
-
baseUrl: string;
|
|
491
|
-
} | undefined;
|
|
492
|
-
secondaryCta?: {
|
|
493
|
-
text: string;
|
|
494
|
-
baseUrl: string;
|
|
495
|
-
} | undefined;
|
|
496
|
-
benefits?: string[] | undefined;
|
|
497
|
-
} | undefined;
|
|
498
|
-
promoCodes?: string[] | null | undefined;
|
|
499
|
-
}[];
|
|
500
|
-
controlProportionSettings?: {
|
|
501
|
-
offset: number;
|
|
502
|
-
proportion: number;
|
|
503
|
-
} | undefined;
|
|
504
|
-
deviceType?: "Mobile" | "Desktop" | "All" | "iOS" | "Android" | undefined;
|
|
505
|
-
signedInStatus?: "All" | "SignedIn" | "SignedOut" | undefined;
|
|
506
|
-
consentStatus?: "All" | "HasConsented" | "HasNotConsented" | undefined;
|
|
507
|
-
methodologies?: (({
|
|
508
|
-
name: "ABTest";
|
|
509
|
-
} | {
|
|
510
|
-
name: "EpsilonGreedyBandit";
|
|
511
|
-
epsilon: number;
|
|
512
|
-
sampleCount?: number | undefined;
|
|
513
|
-
} | {
|
|
514
|
-
name: "Roulette";
|
|
515
|
-
sampleCount?: number | undefined;
|
|
516
|
-
}) & {
|
|
517
|
-
testName?: string | undefined;
|
|
518
|
-
})[] | undefined;
|
|
519
|
-
locations?: ("GBPCountries" | "UnitedStates" | "AUDCountries" | "EURCountries" | "International" | "NZDCountries" | "Canada")[] | undefined;
|
|
520
|
-
regionTargeting?: {
|
|
521
|
-
targetedCountryGroups: ("GBPCountries" | "UnitedStates" | "AUDCountries" | "EURCountries" | "International" | "NZDCountries" | "Canada")[];
|
|
522
|
-
targetedCountryCodes?: string[] | undefined;
|
|
523
|
-
} | undefined;
|
|
524
|
-
purchaseInfo?: {
|
|
525
|
-
product: ("Contribution" | "SupporterPlus" | "GuardianWeekly" | "Paper")[];
|
|
526
|
-
userType: ("new" | "guest" | "current")[];
|
|
527
|
-
} | undefined;
|
|
528
|
-
}>;
|
|
151
|
+
}, z.core.$strip>>;
|
|
152
|
+
benefits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
153
|
+
}, z.core.$strip>>;
|
|
154
|
+
promoCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
155
|
+
}, z.core.$strip>>;
|
|
156
|
+
}, z.core.$strip>;
|
|
529
157
|
export type HeaderTestFromTool = z.infer<typeof headerTestFromToolSchema>;
|
|
530
158
|
/**
|
|
531
159
|
* Models with additional properties determined by the server
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/abTests/header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;GAEG;AACH,QAAA,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/abTests/header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;GAEG;AACH,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK/B,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,qBAAqB;IACxD,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,UAAW,SAAQ,kBAAkB;IAClD,QAAQ,EAAE,aAAa,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,aAAa,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;CACtB"}
|