@guardian/support-dotcom-components 7.10.2 → 8.0.1
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/lib/history.d.ts.map +1 -1
- package/dist/shared/types/abTests/banner.d.ts +205 -2252
- 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 +7 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"epic.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/abTests/epic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAQlD,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAC;AAE9C,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"epic.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/abTests/epic.ts"],"names":[],"mappings":"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"}
|
|
@@ -13,186 +13,99 @@ declare const gutterVariantFromToolSchema: z.ZodObject<{
|
|
|
13
13
|
leftColUrl: z.ZodOptional<z.ZodString>;
|
|
14
14
|
wideUrl: z.ZodOptional<z.ZodString>;
|
|
15
15
|
altText: z.ZodString;
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
mainUrl: string;
|
|
19
|
-
mobileUrl?: string | undefined;
|
|
20
|
-
tabletUrl?: string | undefined;
|
|
21
|
-
desktopUrl?: string | undefined;
|
|
22
|
-
leftColUrl?: string | undefined;
|
|
23
|
-
wideUrl?: string | undefined;
|
|
24
|
-
}, {
|
|
25
|
-
altText: string;
|
|
26
|
-
mainUrl: string;
|
|
27
|
-
mobileUrl?: string | undefined;
|
|
28
|
-
tabletUrl?: string | undefined;
|
|
29
|
-
desktopUrl?: string | undefined;
|
|
30
|
-
leftColUrl?: string | undefined;
|
|
31
|
-
wideUrl?: string | undefined;
|
|
32
|
-
}>;
|
|
33
|
-
bodyCopy: z.ZodArray<z.ZodString, "many">;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
bodyCopy: z.ZodArray<z.ZodString>;
|
|
34
18
|
cta: z.ZodOptional<z.ZodObject<{
|
|
35
19
|
text: z.ZodString;
|
|
36
20
|
baseUrl: z.ZodString;
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
text: string;
|
|
42
|
-
baseUrl: string;
|
|
43
|
-
}>>;
|
|
44
|
-
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
image: {
|
|
46
|
-
altText: string;
|
|
47
|
-
mainUrl: string;
|
|
48
|
-
mobileUrl?: string | undefined;
|
|
49
|
-
tabletUrl?: string | undefined;
|
|
50
|
-
desktopUrl?: string | undefined;
|
|
51
|
-
leftColUrl?: string | undefined;
|
|
52
|
-
wideUrl?: string | undefined;
|
|
53
|
-
};
|
|
54
|
-
bodyCopy: string[];
|
|
55
|
-
cta?: {
|
|
56
|
-
text: string;
|
|
57
|
-
baseUrl: string;
|
|
58
|
-
} | undefined;
|
|
59
|
-
}, {
|
|
60
|
-
image: {
|
|
61
|
-
altText: string;
|
|
62
|
-
mainUrl: string;
|
|
63
|
-
mobileUrl?: string | undefined;
|
|
64
|
-
tabletUrl?: string | undefined;
|
|
65
|
-
desktopUrl?: string | undefined;
|
|
66
|
-
leftColUrl?: string | undefined;
|
|
67
|
-
wideUrl?: string | undefined;
|
|
68
|
-
};
|
|
69
|
-
bodyCopy: string[];
|
|
70
|
-
cta?: {
|
|
71
|
-
text: string;
|
|
72
|
-
baseUrl: string;
|
|
73
|
-
} | undefined;
|
|
74
|
-
}>;
|
|
75
|
-
promoCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
76
|
-
}, "strip", z.ZodTypeAny, {
|
|
77
|
-
name: string;
|
|
78
|
-
content: {
|
|
79
|
-
image: {
|
|
80
|
-
altText: string;
|
|
81
|
-
mainUrl: string;
|
|
82
|
-
mobileUrl?: string | undefined;
|
|
83
|
-
tabletUrl?: string | undefined;
|
|
84
|
-
desktopUrl?: string | undefined;
|
|
85
|
-
leftColUrl?: string | undefined;
|
|
86
|
-
wideUrl?: string | undefined;
|
|
87
|
-
};
|
|
88
|
-
bodyCopy: string[];
|
|
89
|
-
cta?: {
|
|
90
|
-
text: string;
|
|
91
|
-
baseUrl: string;
|
|
92
|
-
} | undefined;
|
|
93
|
-
};
|
|
94
|
-
promoCodes?: string[] | null | undefined;
|
|
95
|
-
}, {
|
|
96
|
-
name: string;
|
|
97
|
-
content: {
|
|
98
|
-
image: {
|
|
99
|
-
altText: string;
|
|
100
|
-
mainUrl: string;
|
|
101
|
-
mobileUrl?: string | undefined;
|
|
102
|
-
tabletUrl?: string | undefined;
|
|
103
|
-
desktopUrl?: string | undefined;
|
|
104
|
-
leftColUrl?: string | undefined;
|
|
105
|
-
wideUrl?: string | undefined;
|
|
106
|
-
};
|
|
107
|
-
bodyCopy: string[];
|
|
108
|
-
cta?: {
|
|
109
|
-
text: string;
|
|
110
|
-
baseUrl: string;
|
|
111
|
-
} | undefined;
|
|
112
|
-
};
|
|
113
|
-
promoCodes?: string[] | null | undefined;
|
|
114
|
-
}>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
promoCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
115
25
|
export type GutterVariantFromTool = z.infer<typeof gutterVariantFromToolSchema>;
|
|
116
26
|
export declare const gutterTestFromToolSchema: z.ZodObject<{
|
|
27
|
+
channel: z.ZodEnum<{
|
|
28
|
+
Epic: "Epic";
|
|
29
|
+
EpicAppleNews: "EpicAppleNews";
|
|
30
|
+
EpicLiveblog: "EpicLiveblog";
|
|
31
|
+
Banner1: "Banner1";
|
|
32
|
+
Banner2: "Banner2";
|
|
33
|
+
Header: "Header";
|
|
34
|
+
GutterLiveblog: "GutterLiveblog";
|
|
35
|
+
}>;
|
|
117
36
|
name: z.ZodString;
|
|
118
|
-
|
|
37
|
+
status: z.ZodEnum<{
|
|
38
|
+
Live: "Live";
|
|
39
|
+
Draft: "Draft";
|
|
40
|
+
Archived: "Archived";
|
|
41
|
+
}>;
|
|
119
42
|
priority: z.ZodNumber;
|
|
120
|
-
status: z.ZodEnum<["Live", "Draft", "Archived"]>;
|
|
121
43
|
controlProportionSettings: z.ZodOptional<z.ZodObject<{
|
|
122
44
|
proportion: z.ZodNumber;
|
|
123
45
|
offset: z.ZodNumber;
|
|
124
|
-
},
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
deviceType: z.ZodOptional<z.ZodEnum<{
|
|
48
|
+
Mobile: "Mobile";
|
|
49
|
+
Desktop: "Desktop";
|
|
50
|
+
All: "All";
|
|
51
|
+
iOS: "iOS";
|
|
52
|
+
Android: "Android";
|
|
53
|
+
}>>;
|
|
54
|
+
signedInStatus: z.ZodOptional<z.ZodEnum<{
|
|
55
|
+
All: "All";
|
|
56
|
+
SignedIn: "SignedIn";
|
|
57
|
+
SignedOut: "SignedOut";
|
|
58
|
+
}>>;
|
|
59
|
+
consentStatus: z.ZodOptional<z.ZodEnum<{
|
|
60
|
+
All: "All";
|
|
61
|
+
HasConsented: "HasConsented";
|
|
62
|
+
HasNotConsented: "HasNotConsented";
|
|
130
63
|
}>>;
|
|
131
|
-
|
|
132
|
-
signedInStatus: z.ZodOptional<z.ZodEnum<["SignedIn", "SignedOut", "All"]>>;
|
|
133
|
-
consentStatus: z.ZodOptional<z.ZodEnum<["HasConsented", "HasNotConsented", "All"]>>;
|
|
134
|
-
methodologies: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
64
|
+
methodologies: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
135
65
|
name: z.ZodLiteral<"ABTest">;
|
|
136
|
-
},
|
|
137
|
-
name: "ABTest";
|
|
138
|
-
}, {
|
|
139
|
-
name: "ABTest";
|
|
140
|
-
}>, z.ZodObject<{
|
|
66
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
141
67
|
name: z.ZodLiteral<"EpsilonGreedyBandit">;
|
|
142
68
|
epsilon: z.ZodNumber;
|
|
143
69
|
sampleCount: z.ZodOptional<z.ZodNumber>;
|
|
144
|
-
},
|
|
145
|
-
name: "EpsilonGreedyBandit";
|
|
146
|
-
epsilon: number;
|
|
147
|
-
sampleCount?: number | undefined;
|
|
148
|
-
}, {
|
|
149
|
-
name: "EpsilonGreedyBandit";
|
|
150
|
-
epsilon: number;
|
|
151
|
-
sampleCount?: number | undefined;
|
|
152
|
-
}>, z.ZodObject<{
|
|
70
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
153
71
|
name: z.ZodLiteral<"Roulette">;
|
|
154
72
|
sampleCount: z.ZodOptional<z.ZodNumber>;
|
|
155
|
-
},
|
|
156
|
-
name: "Roulette";
|
|
157
|
-
sampleCount?: number | undefined;
|
|
158
|
-
}, {
|
|
159
|
-
name: "Roulette";
|
|
160
|
-
sampleCount?: number | undefined;
|
|
161
|
-
}>]>, z.ZodObject<{
|
|
73
|
+
}, z.core.$strip>], "name">, z.ZodObject<{
|
|
162
74
|
testName: z.ZodOptional<z.ZodString>;
|
|
163
|
-
},
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}, "strip", z.ZodTypeAny, {
|
|
173
|
-
targetedCountryGroups: ("GBPCountries" | "UnitedStates" | "AUDCountries" | "EURCountries" | "International" | "NZDCountries" | "Canada")[];
|
|
174
|
-
targetedCountryCodes?: string[] | undefined;
|
|
175
|
-
}, {
|
|
176
|
-
targetedCountryGroups: ("GBPCountries" | "UnitedStates" | "AUDCountries" | "EURCountries" | "International" | "NZDCountries" | "Canada")[];
|
|
177
|
-
targetedCountryCodes?: string[] | undefined;
|
|
75
|
+
}, z.core.$strip>>>>;
|
|
76
|
+
locations: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
77
|
+
GBPCountries: "GBPCountries";
|
|
78
|
+
UnitedStates: "UnitedStates";
|
|
79
|
+
AUDCountries: "AUDCountries";
|
|
80
|
+
EURCountries: "EURCountries";
|
|
81
|
+
International: "International";
|
|
82
|
+
NZDCountries: "NZDCountries";
|
|
83
|
+
Canada: "Canada";
|
|
178
84
|
}>>>;
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
},
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
85
|
+
regionTargeting: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
86
|
+
targetedCountryGroups: 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";
|
|
94
|
+
}>>;
|
|
95
|
+
targetedCountryCodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
96
|
+
}, z.core.$strip>>>;
|
|
97
|
+
userCohort: z.ZodEnum<{
|
|
98
|
+
AllExistingSupporters: "AllExistingSupporters";
|
|
99
|
+
AllNonSupporters: "AllNonSupporters";
|
|
100
|
+
Everyone: "Everyone";
|
|
101
|
+
PostAskPauseSingleContributors: "PostAskPauseSingleContributors";
|
|
195
102
|
}>;
|
|
103
|
+
contextTargeting: z.ZodObject<{
|
|
104
|
+
tagIds: z.ZodArray<z.ZodString>;
|
|
105
|
+
sectionIds: z.ZodArray<z.ZodString>;
|
|
106
|
+
excludedTagIds: z.ZodArray<z.ZodString>;
|
|
107
|
+
excludedSectionIds: z.ZodArray<z.ZodString>;
|
|
108
|
+
}, z.core.$strip>;
|
|
196
109
|
variants: z.ZodArray<z.ZodObject<{
|
|
197
110
|
name: z.ZodString;
|
|
198
111
|
content: z.ZodObject<{
|
|
@@ -204,218 +117,16 @@ export declare const gutterTestFromToolSchema: z.ZodObject<{
|
|
|
204
117
|
leftColUrl: z.ZodOptional<z.ZodString>;
|
|
205
118
|
wideUrl: z.ZodOptional<z.ZodString>;
|
|
206
119
|
altText: z.ZodString;
|
|
207
|
-
},
|
|
208
|
-
|
|
209
|
-
mainUrl: string;
|
|
210
|
-
mobileUrl?: string | undefined;
|
|
211
|
-
tabletUrl?: string | undefined;
|
|
212
|
-
desktopUrl?: string | undefined;
|
|
213
|
-
leftColUrl?: string | undefined;
|
|
214
|
-
wideUrl?: string | undefined;
|
|
215
|
-
}, {
|
|
216
|
-
altText: string;
|
|
217
|
-
mainUrl: string;
|
|
218
|
-
mobileUrl?: string | undefined;
|
|
219
|
-
tabletUrl?: string | undefined;
|
|
220
|
-
desktopUrl?: string | undefined;
|
|
221
|
-
leftColUrl?: string | undefined;
|
|
222
|
-
wideUrl?: string | undefined;
|
|
223
|
-
}>;
|
|
224
|
-
bodyCopy: z.ZodArray<z.ZodString, "many">;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
bodyCopy: z.ZodArray<z.ZodString>;
|
|
225
122
|
cta: z.ZodOptional<z.ZodObject<{
|
|
226
123
|
text: z.ZodString;
|
|
227
124
|
baseUrl: z.ZodString;
|
|
228
|
-
},
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
baseUrl: string;
|
|
234
|
-
}>>;
|
|
235
|
-
}, "strip", z.ZodTypeAny, {
|
|
236
|
-
image: {
|
|
237
|
-
altText: string;
|
|
238
|
-
mainUrl: string;
|
|
239
|
-
mobileUrl?: string | undefined;
|
|
240
|
-
tabletUrl?: string | undefined;
|
|
241
|
-
desktopUrl?: string | undefined;
|
|
242
|
-
leftColUrl?: string | undefined;
|
|
243
|
-
wideUrl?: string | undefined;
|
|
244
|
-
};
|
|
245
|
-
bodyCopy: string[];
|
|
246
|
-
cta?: {
|
|
247
|
-
text: string;
|
|
248
|
-
baseUrl: string;
|
|
249
|
-
} | undefined;
|
|
250
|
-
}, {
|
|
251
|
-
image: {
|
|
252
|
-
altText: string;
|
|
253
|
-
mainUrl: string;
|
|
254
|
-
mobileUrl?: string | undefined;
|
|
255
|
-
tabletUrl?: string | undefined;
|
|
256
|
-
desktopUrl?: string | undefined;
|
|
257
|
-
leftColUrl?: string | undefined;
|
|
258
|
-
wideUrl?: string | undefined;
|
|
259
|
-
};
|
|
260
|
-
bodyCopy: string[];
|
|
261
|
-
cta?: {
|
|
262
|
-
text: string;
|
|
263
|
-
baseUrl: string;
|
|
264
|
-
} | undefined;
|
|
265
|
-
}>;
|
|
266
|
-
promoCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
267
|
-
}, "strip", z.ZodTypeAny, {
|
|
268
|
-
name: string;
|
|
269
|
-
content: {
|
|
270
|
-
image: {
|
|
271
|
-
altText: string;
|
|
272
|
-
mainUrl: string;
|
|
273
|
-
mobileUrl?: string | undefined;
|
|
274
|
-
tabletUrl?: string | undefined;
|
|
275
|
-
desktopUrl?: string | undefined;
|
|
276
|
-
leftColUrl?: string | undefined;
|
|
277
|
-
wideUrl?: string | undefined;
|
|
278
|
-
};
|
|
279
|
-
bodyCopy: string[];
|
|
280
|
-
cta?: {
|
|
281
|
-
text: string;
|
|
282
|
-
baseUrl: string;
|
|
283
|
-
} | undefined;
|
|
284
|
-
};
|
|
285
|
-
promoCodes?: string[] | null | undefined;
|
|
286
|
-
}, {
|
|
287
|
-
name: string;
|
|
288
|
-
content: {
|
|
289
|
-
image: {
|
|
290
|
-
altText: string;
|
|
291
|
-
mainUrl: string;
|
|
292
|
-
mobileUrl?: string | undefined;
|
|
293
|
-
tabletUrl?: string | undefined;
|
|
294
|
-
desktopUrl?: string | undefined;
|
|
295
|
-
leftColUrl?: string | undefined;
|
|
296
|
-
wideUrl?: string | undefined;
|
|
297
|
-
};
|
|
298
|
-
bodyCopy: string[];
|
|
299
|
-
cta?: {
|
|
300
|
-
text: string;
|
|
301
|
-
baseUrl: string;
|
|
302
|
-
} | undefined;
|
|
303
|
-
};
|
|
304
|
-
promoCodes?: string[] | null | undefined;
|
|
305
|
-
}>, "many">;
|
|
306
|
-
}, "strip", z.ZodTypeAny, {
|
|
307
|
-
name: string;
|
|
308
|
-
channel: "Epic" | "EpicAppleNews" | "EpicLiveblog" | "Banner1" | "Banner2" | "Header" | "GutterLiveblog";
|
|
309
|
-
priority: number;
|
|
310
|
-
status: "Live" | "Draft" | "Archived";
|
|
311
|
-
userCohort: "AllExistingSupporters" | "AllNonSupporters" | "Everyone" | "PostAskPauseSingleContributors";
|
|
312
|
-
variants: {
|
|
313
|
-
name: string;
|
|
314
|
-
content: {
|
|
315
|
-
image: {
|
|
316
|
-
altText: string;
|
|
317
|
-
mainUrl: string;
|
|
318
|
-
mobileUrl?: string | undefined;
|
|
319
|
-
tabletUrl?: string | undefined;
|
|
320
|
-
desktopUrl?: string | undefined;
|
|
321
|
-
leftColUrl?: string | undefined;
|
|
322
|
-
wideUrl?: string | undefined;
|
|
323
|
-
};
|
|
324
|
-
bodyCopy: string[];
|
|
325
|
-
cta?: {
|
|
326
|
-
text: string;
|
|
327
|
-
baseUrl: string;
|
|
328
|
-
} | undefined;
|
|
329
|
-
};
|
|
330
|
-
promoCodes?: string[] | null | undefined;
|
|
331
|
-
}[];
|
|
332
|
-
contextTargeting: {
|
|
333
|
-
tagIds: string[];
|
|
334
|
-
sectionIds: string[];
|
|
335
|
-
excludedTagIds: string[];
|
|
336
|
-
excludedSectionIds: string[];
|
|
337
|
-
};
|
|
338
|
-
controlProportionSettings?: {
|
|
339
|
-
offset: number;
|
|
340
|
-
proportion: number;
|
|
341
|
-
} | undefined;
|
|
342
|
-
deviceType?: "Mobile" | "Desktop" | "All" | "iOS" | "Android" | undefined;
|
|
343
|
-
signedInStatus?: "All" | "SignedIn" | "SignedOut" | undefined;
|
|
344
|
-
consentStatus?: "All" | "HasConsented" | "HasNotConsented" | undefined;
|
|
345
|
-
methodologies?: (({
|
|
346
|
-
name: "ABTest";
|
|
347
|
-
} | {
|
|
348
|
-
name: "EpsilonGreedyBandit";
|
|
349
|
-
epsilon: number;
|
|
350
|
-
sampleCount?: number | undefined;
|
|
351
|
-
} | {
|
|
352
|
-
name: "Roulette";
|
|
353
|
-
sampleCount?: number | undefined;
|
|
354
|
-
}) & {
|
|
355
|
-
testName?: string | undefined;
|
|
356
|
-
})[] | undefined;
|
|
357
|
-
locations?: ("GBPCountries" | "UnitedStates" | "AUDCountries" | "EURCountries" | "International" | "NZDCountries" | "Canada")[] | undefined;
|
|
358
|
-
regionTargeting?: {
|
|
359
|
-
targetedCountryGroups: ("GBPCountries" | "UnitedStates" | "AUDCountries" | "EURCountries" | "International" | "NZDCountries" | "Canada")[];
|
|
360
|
-
targetedCountryCodes?: string[] | undefined;
|
|
361
|
-
} | undefined;
|
|
362
|
-
}, {
|
|
363
|
-
name: string;
|
|
364
|
-
channel: "Epic" | "EpicAppleNews" | "EpicLiveblog" | "Banner1" | "Banner2" | "Header" | "GutterLiveblog";
|
|
365
|
-
priority: number;
|
|
366
|
-
status: "Live" | "Draft" | "Archived";
|
|
367
|
-
userCohort: "AllExistingSupporters" | "AllNonSupporters" | "Everyone" | "PostAskPauseSingleContributors";
|
|
368
|
-
variants: {
|
|
369
|
-
name: string;
|
|
370
|
-
content: {
|
|
371
|
-
image: {
|
|
372
|
-
altText: string;
|
|
373
|
-
mainUrl: string;
|
|
374
|
-
mobileUrl?: string | undefined;
|
|
375
|
-
tabletUrl?: string | undefined;
|
|
376
|
-
desktopUrl?: string | undefined;
|
|
377
|
-
leftColUrl?: string | undefined;
|
|
378
|
-
wideUrl?: string | undefined;
|
|
379
|
-
};
|
|
380
|
-
bodyCopy: string[];
|
|
381
|
-
cta?: {
|
|
382
|
-
text: string;
|
|
383
|
-
baseUrl: string;
|
|
384
|
-
} | undefined;
|
|
385
|
-
};
|
|
386
|
-
promoCodes?: string[] | null | undefined;
|
|
387
|
-
}[];
|
|
388
|
-
contextTargeting: {
|
|
389
|
-
tagIds: string[];
|
|
390
|
-
sectionIds: string[];
|
|
391
|
-
excludedTagIds: string[];
|
|
392
|
-
excludedSectionIds: string[];
|
|
393
|
-
};
|
|
394
|
-
controlProportionSettings?: {
|
|
395
|
-
offset: number;
|
|
396
|
-
proportion: number;
|
|
397
|
-
} | undefined;
|
|
398
|
-
deviceType?: "Mobile" | "Desktop" | "All" | "iOS" | "Android" | undefined;
|
|
399
|
-
signedInStatus?: "All" | "SignedIn" | "SignedOut" | undefined;
|
|
400
|
-
consentStatus?: "All" | "HasConsented" | "HasNotConsented" | undefined;
|
|
401
|
-
methodologies?: (({
|
|
402
|
-
name: "ABTest";
|
|
403
|
-
} | {
|
|
404
|
-
name: "EpsilonGreedyBandit";
|
|
405
|
-
epsilon: number;
|
|
406
|
-
sampleCount?: number | undefined;
|
|
407
|
-
} | {
|
|
408
|
-
name: "Roulette";
|
|
409
|
-
sampleCount?: number | undefined;
|
|
410
|
-
}) & {
|
|
411
|
-
testName?: string | undefined;
|
|
412
|
-
})[] | undefined;
|
|
413
|
-
locations?: ("GBPCountries" | "UnitedStates" | "AUDCountries" | "EURCountries" | "International" | "NZDCountries" | "Canada")[] | undefined;
|
|
414
|
-
regionTargeting?: {
|
|
415
|
-
targetedCountryGroups: ("GBPCountries" | "UnitedStates" | "AUDCountries" | "EURCountries" | "International" | "NZDCountries" | "Canada")[];
|
|
416
|
-
targetedCountryCodes?: string[] | undefined;
|
|
417
|
-
} | undefined;
|
|
418
|
-
}>;
|
|
125
|
+
}, z.core.$strip>>;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
promoCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
128
|
+
}, z.core.$strip>>;
|
|
129
|
+
}, z.core.$strip>;
|
|
419
130
|
export type GutterTestFromTool = z.infer<typeof gutterTestFromToolSchema>;
|
|
420
131
|
/**
|
|
421
132
|
* Models with additional properties determined by the server
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gutter.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/abTests/gutter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;GAEG;AACH,QAAA,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"gutter.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/abTests/gutter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;GAEG;AACH,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;iBAI/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"}
|