@guardian/support-dotcom-components 7.10.2 → 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.
Files changed (33) hide show
  1. package/dist/index.esm.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/shared/lib/geolocation.d.ts +20 -10
  4. package/dist/shared/lib/geolocation.d.ts.map +1 -1
  5. package/dist/shared/types/abTests/banner.d.ts +205 -2252
  6. package/dist/shared/types/abTests/banner.d.ts.map +1 -1
  7. package/dist/shared/types/abTests/epic.d.ts +156 -1560
  8. package/dist/shared/types/abTests/epic.d.ts.map +1 -1
  9. package/dist/shared/types/abTests/gutter.d.ts +80 -369
  10. package/dist/shared/types/abTests/gutter.d.ts.map +1 -1
  11. package/dist/shared/types/abTests/header.d.ts +95 -467
  12. package/dist/shared/types/abTests/header.d.ts.map +1 -1
  13. package/dist/shared/types/abTests/shared.d.ts +89 -155
  14. package/dist/shared/types/abTests/shared.d.ts.map +1 -1
  15. package/dist/shared/types/props/banner.d.ts +144 -1675
  16. package/dist/shared/types/props/banner.d.ts.map +1 -1
  17. package/dist/shared/types/props/choiceCards.d.ts +56 -586
  18. package/dist/shared/types/props/choiceCards.d.ts.map +1 -1
  19. package/dist/shared/types/props/design.d.ts +54 -514
  20. package/dist/shared/types/props/design.d.ts.map +1 -1
  21. package/dist/shared/types/props/epic.d.ts +192 -2501
  22. package/dist/shared/types/props/epic.d.ts.map +1 -1
  23. package/dist/shared/types/props/gutter.d.ts +25 -200
  24. package/dist/shared/types/props/gutter.d.ts.map +1 -1
  25. package/dist/shared/types/props/header.d.ts +29 -230
  26. package/dist/shared/types/props/header.d.ts.map +1 -1
  27. package/dist/shared/types/props/shared.d.ts +55 -212
  28. package/dist/shared/types/props/shared.d.ts.map +1 -1
  29. package/dist/shared/types/purchaseInfo.d.ts +11 -2
  30. package/dist/shared/types/purchaseInfo.d.ts.map +1 -1
  31. package/dist/shared/types/targeting/shared.d.ts +5 -15
  32. package/dist/shared/types/targeting/shared.d.ts.map +1 -1
  33. package/package.json +4 -4
@@ -29,976 +29,139 @@ export declare const bannerVariantFromToolSchema: z.ZodObject<{
29
29
  copy: z.ZodObject<{
30
30
  countLabel: z.ZodString;
31
31
  goalCopy: z.ZodOptional<z.ZodString>;
32
- }, "strip", z.ZodTypeAny, {
33
- countLabel: string;
34
- goalCopy?: string | undefined;
35
- }, {
36
- countLabel: string;
37
- goalCopy?: string | undefined;
32
+ }, z.core.$strip>;
33
+ name: z.ZodEnum<{
34
+ global: "global";
35
+ US: "US";
36
+ AU: "AU";
38
37
  }>;
39
- name: z.ZodEnum<["US", "AU", "global"]>;
40
38
  tickerData: z.ZodOptional<z.ZodObject<{
41
39
  total: z.ZodNumber;
42
40
  goal: z.ZodNumber;
43
- }, "strip", z.ZodTypeAny, {
44
- total: number;
45
- goal: number;
46
- }, {
47
- total: number;
48
- goal: number;
49
- }>>;
50
- }, "strip", z.ZodTypeAny, {
51
- name: "global" | "US" | "AU";
52
- copy: {
53
- countLabel: string;
54
- goalCopy?: string | undefined;
55
- };
56
- currencySymbol: string;
57
- tickerData?: {
58
- total: number;
59
- goal: number;
60
- } | undefined;
61
- }, {
62
- name: "global" | "US" | "AU";
63
- copy: {
64
- countLabel: string;
65
- goalCopy?: string | undefined;
66
- };
67
- currencySymbol: string;
68
- tickerData?: {
69
- total: number;
70
- goal: number;
71
- } | undefined;
72
- }>>;
73
- template: z.ZodUnion<[z.ZodNativeEnum<typeof BannerTemplate>, z.ZodObject<{
41
+ }, z.core.$strip>>;
42
+ }, z.core.$strip>>;
43
+ template: z.ZodUnion<readonly [z.ZodEnum<typeof BannerTemplate>, z.ZodObject<{
74
44
  designName: z.ZodString;
75
- }, "strip", z.ZodTypeAny, {
76
- designName: string;
77
- }, {
78
- designName: string;
79
- }>]>;
45
+ }, z.core.$strip>]>;
80
46
  bannerContent: z.ZodOptional<z.ZodObject<{
81
47
  heading: z.ZodOptional<z.ZodString>;
82
48
  messageText: z.ZodOptional<z.ZodString>;
83
- paragraphs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
49
+ paragraphs: z.ZodOptional<z.ZodArray<z.ZodString>>;
84
50
  mobileMessageText: z.ZodOptional<z.ZodString>;
85
51
  highlightedText: z.ZodOptional<z.ZodString>;
86
52
  cta: z.ZodOptional<z.ZodObject<{
87
53
  text: z.ZodString;
88
54
  baseUrl: z.ZodString;
89
- }, "strip", z.ZodTypeAny, {
90
- text: string;
91
- baseUrl: string;
92
- }, {
93
- text: string;
94
- baseUrl: string;
95
- }>>;
96
- secondaryCta: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
55
+ }, z.core.$strip>>;
56
+ secondaryCta: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
97
57
  type: z.ZodLiteral<import("../props").SecondaryCtaType.Custom>;
98
58
  cta: z.ZodObject<{
99
59
  text: z.ZodString;
100
60
  baseUrl: z.ZodString;
101
- }, "strip", z.ZodTypeAny, {
102
- text: string;
103
- baseUrl: string;
104
- }, {
105
- text: string;
106
- baseUrl: string;
107
- }>;
108
- }, "strip", z.ZodTypeAny, {
109
- type: import("../props").SecondaryCtaType.Custom;
110
- cta: {
111
- text: string;
112
- baseUrl: string;
113
- };
114
- }, {
115
- type: import("../props").SecondaryCtaType.Custom;
116
- cta: {
117
- text: string;
118
- baseUrl: string;
119
- };
120
- }>, z.ZodObject<{
61
+ }, z.core.$strip>;
62
+ }, z.core.$strip>, z.ZodObject<{
121
63
  type: z.ZodLiteral<import("../props").SecondaryCtaType.ContributionsReminder>;
122
- }, "strip", z.ZodTypeAny, {
123
- type: import("../props").SecondaryCtaType.ContributionsReminder;
124
- }, {
125
- type: import("../props").SecondaryCtaType.ContributionsReminder;
126
- }>]>>;
127
- }, "strip", z.ZodTypeAny, {
128
- heading?: string | undefined;
129
- messageText?: string | undefined;
130
- paragraphs?: string[] | undefined;
131
- mobileMessageText?: string | undefined;
132
- highlightedText?: string | undefined;
133
- cta?: {
134
- text: string;
135
- baseUrl: string;
136
- } | undefined;
137
- secondaryCta?: {
138
- type: import("../props").SecondaryCtaType.Custom;
139
- cta: {
140
- text: string;
141
- baseUrl: string;
142
- };
143
- } | {
144
- type: import("../props").SecondaryCtaType.ContributionsReminder;
145
- } | undefined;
146
- }, {
147
- heading?: string | undefined;
148
- messageText?: string | undefined;
149
- paragraphs?: string[] | undefined;
150
- mobileMessageText?: string | undefined;
151
- highlightedText?: string | undefined;
152
- cta?: {
153
- text: string;
154
- baseUrl: string;
155
- } | undefined;
156
- secondaryCta?: {
157
- type: import("../props").SecondaryCtaType.Custom;
158
- cta: {
159
- text: string;
160
- baseUrl: string;
161
- };
162
- } | {
163
- type: import("../props").SecondaryCtaType.ContributionsReminder;
164
- } | undefined;
165
- }>>;
64
+ }, z.core.$strip>], "type">>;
65
+ }, z.core.$strip>>;
166
66
  mobileBannerContent: z.ZodOptional<z.ZodObject<{
167
67
  heading: z.ZodOptional<z.ZodString>;
168
68
  messageText: z.ZodOptional<z.ZodString>;
169
- paragraphs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
69
+ paragraphs: z.ZodOptional<z.ZodArray<z.ZodString>>;
170
70
  mobileMessageText: z.ZodOptional<z.ZodString>;
171
71
  highlightedText: z.ZodOptional<z.ZodString>;
172
72
  cta: z.ZodOptional<z.ZodObject<{
173
73
  text: z.ZodString;
174
74
  baseUrl: z.ZodString;
175
- }, "strip", z.ZodTypeAny, {
176
- text: string;
177
- baseUrl: string;
178
- }, {
179
- text: string;
180
- baseUrl: string;
181
- }>>;
182
- secondaryCta: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
75
+ }, z.core.$strip>>;
76
+ secondaryCta: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
183
77
  type: z.ZodLiteral<import("../props").SecondaryCtaType.Custom>;
184
78
  cta: z.ZodObject<{
185
79
  text: z.ZodString;
186
80
  baseUrl: z.ZodString;
187
- }, "strip", z.ZodTypeAny, {
188
- text: string;
189
- baseUrl: string;
190
- }, {
191
- text: string;
192
- baseUrl: string;
193
- }>;
194
- }, "strip", z.ZodTypeAny, {
195
- type: import("../props").SecondaryCtaType.Custom;
196
- cta: {
197
- text: string;
198
- baseUrl: string;
199
- };
200
- }, {
201
- type: import("../props").SecondaryCtaType.Custom;
202
- cta: {
203
- text: string;
204
- baseUrl: string;
205
- };
206
- }>, z.ZodObject<{
81
+ }, z.core.$strip>;
82
+ }, z.core.$strip>, z.ZodObject<{
207
83
  type: z.ZodLiteral<import("../props").SecondaryCtaType.ContributionsReminder>;
208
- }, "strip", z.ZodTypeAny, {
209
- type: import("../props").SecondaryCtaType.ContributionsReminder;
210
- }, {
211
- type: import("../props").SecondaryCtaType.ContributionsReminder;
212
- }>]>>;
213
- }, "strip", z.ZodTypeAny, {
214
- heading?: string | undefined;
215
- messageText?: string | undefined;
216
- paragraphs?: string[] | undefined;
217
- mobileMessageText?: string | undefined;
218
- highlightedText?: string | undefined;
219
- cta?: {
220
- text: string;
221
- baseUrl: string;
222
- } | undefined;
223
- secondaryCta?: {
224
- type: import("../props").SecondaryCtaType.Custom;
225
- cta: {
226
- text: string;
227
- baseUrl: string;
228
- };
229
- } | {
230
- type: import("../props").SecondaryCtaType.ContributionsReminder;
231
- } | undefined;
232
- }, {
233
- heading?: string | undefined;
234
- messageText?: string | undefined;
235
- paragraphs?: string[] | undefined;
236
- mobileMessageText?: string | undefined;
237
- highlightedText?: string | undefined;
238
- cta?: {
239
- text: string;
240
- baseUrl: string;
241
- } | undefined;
242
- secondaryCta?: {
243
- type: import("../props").SecondaryCtaType.Custom;
244
- cta: {
245
- text: string;
246
- baseUrl: string;
247
- };
248
- } | {
249
- type: import("../props").SecondaryCtaType.ContributionsReminder;
250
- } | undefined;
251
- }>>;
84
+ }, z.core.$strip>], "type">>;
85
+ }, z.core.$strip>>;
252
86
  separateArticleCount: z.ZodOptional<z.ZodBoolean>;
253
87
  separateArticleCountSettings: z.ZodOptional<z.ZodObject<{
254
88
  type: z.ZodLiteral<"above">;
255
89
  copy: z.ZodOptional<z.ZodString>;
256
- countType: z.ZodOptional<z.ZodEnum<["for52Weeks", "forTargetedWeeks"]>>;
257
- }, "strip", z.ZodTypeAny, {
258
- type: "above";
259
- copy?: string | undefined;
260
- countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
261
- }, {
262
- type: "above";
263
- copy?: string | undefined;
264
- countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
265
- }>>;
90
+ countType: z.ZodOptional<z.ZodEnum<{
91
+ for52Weeks: "for52Weeks";
92
+ forTargetedWeeks: "forTargetedWeeks";
93
+ }>>;
94
+ }, z.core.$strip>>;
266
95
  choiceCardsSettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
267
96
  choiceCards: z.ZodArray<z.ZodObject<{
268
- product: z.ZodDiscriminatedUnion<"supportTier", [z.ZodObject<{
97
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
269
98
  supportTier: z.ZodLiteral<"Contribution">;
270
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
271
- }, "strip", z.ZodTypeAny, {
272
- supportTier: "Contribution";
273
- ratePlan: "Monthly" | "Annual";
274
- }, {
275
- supportTier: "Contribution";
276
- ratePlan: "Monthly" | "Annual";
277
- }>, z.ZodObject<{
99
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
100
+ }, z.core.$strip>, z.ZodObject<{
278
101
  supportTier: z.ZodLiteral<"SupporterPlus">;
279
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
280
- }, "strip", z.ZodTypeAny, {
281
- supportTier: "SupporterPlus";
282
- ratePlan: "Monthly" | "Annual";
283
- }, {
284
- supportTier: "SupporterPlus";
285
- ratePlan: "Monthly" | "Annual";
286
- }>, z.ZodObject<{
102
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
103
+ }, z.core.$strip>, z.ZodObject<{
287
104
  supportTier: z.ZodLiteral<"OneOff">;
288
- }, "strip", z.ZodTypeAny, {
289
- supportTier: "OneOff";
290
- }, {
291
- supportTier: "OneOff";
292
- }>]>;
105
+ }, z.core.$strip>], "supportTier">;
293
106
  label: z.ZodString;
294
107
  isDefault: z.ZodBoolean;
295
108
  benefitsLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
296
109
  benefits: z.ZodArray<z.ZodObject<{
297
110
  copy: z.ZodString;
298
- }, "strip", z.ZodTypeAny, {
299
- copy: string;
300
- }, {
301
- copy: string;
302
- }>, "many">;
111
+ }, z.core.$strip>>;
303
112
  pill: z.ZodOptional<z.ZodNullable<z.ZodObject<{
304
113
  copy: z.ZodString;
305
114
  textColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
306
- r: z.ZodEffects<z.ZodString, string, string>;
307
- g: z.ZodEffects<z.ZodString, string, string>;
308
- b: z.ZodEffects<z.ZodString, string, string>;
115
+ r: z.ZodString;
116
+ g: z.ZodString;
117
+ b: z.ZodString;
309
118
  kind: z.ZodLiteral<"hex">;
310
- }, "strip", z.ZodTypeAny, {
311
- r: string;
312
- b: string;
313
- g: string;
314
- kind: "hex";
315
- }, {
316
- r: string;
317
- b: string;
318
- g: string;
319
- kind: "hex";
320
- }>>>;
119
+ }, z.core.$strip>>>;
321
120
  backgroundColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
322
- r: z.ZodEffects<z.ZodString, string, string>;
323
- g: z.ZodEffects<z.ZodString, string, string>;
324
- b: z.ZodEffects<z.ZodString, string, string>;
121
+ r: z.ZodString;
122
+ g: z.ZodString;
123
+ b: z.ZodString;
325
124
  kind: z.ZodLiteral<"hex">;
326
- }, "strip", z.ZodTypeAny, {
327
- r: string;
328
- b: string;
329
- g: string;
330
- kind: "hex";
331
- }, {
332
- r: string;
333
- b: string;
334
- g: string;
335
- kind: "hex";
336
- }>>>;
337
- }, "strip", z.ZodTypeAny, {
338
- copy: string;
339
- textColour?: {
340
- r: string;
341
- b: string;
342
- g: string;
343
- kind: "hex";
344
- } | null | undefined;
345
- backgroundColour?: {
346
- r: string;
347
- b: string;
348
- g: string;
349
- kind: "hex";
350
- } | null | undefined;
351
- }, {
352
- copy: string;
353
- textColour?: {
354
- r: string;
355
- b: string;
356
- g: string;
357
- kind: "hex";
358
- } | null | undefined;
359
- backgroundColour?: {
360
- r: string;
361
- b: string;
362
- g: string;
363
- kind: "hex";
364
- } | null | undefined;
365
- }>>>;
366
- destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
367
- }, "strip", z.ZodTypeAny, {
368
- product: {
369
- supportTier: "Contribution";
370
- ratePlan: "Monthly" | "Annual";
371
- } | {
372
- supportTier: "SupporterPlus";
373
- ratePlan: "Monthly" | "Annual";
374
- } | {
375
- supportTier: "OneOff";
376
- };
377
- label: string;
378
- isDefault: boolean;
379
- benefits: {
380
- copy: string;
381
- }[];
382
- benefitsLabel?: string | null | undefined;
383
- pill?: {
384
- copy: string;
385
- textColour?: {
386
- r: string;
387
- b: string;
388
- g: string;
389
- kind: "hex";
390
- } | null | undefined;
391
- backgroundColour?: {
392
- r: string;
393
- b: string;
394
- g: string;
395
- kind: "hex";
396
- } | null | undefined;
397
- } | null | undefined;
398
- destination?: "LandingPage" | "Checkout" | null | undefined;
399
- }, {
400
- product: {
401
- supportTier: "Contribution";
402
- ratePlan: "Monthly" | "Annual";
403
- } | {
404
- supportTier: "SupporterPlus";
405
- ratePlan: "Monthly" | "Annual";
406
- } | {
407
- supportTier: "OneOff";
408
- };
409
- label: string;
410
- isDefault: boolean;
411
- benefits: {
412
- copy: string;
413
- }[];
414
- benefitsLabel?: string | null | undefined;
415
- pill?: {
416
- copy: string;
417
- textColour?: {
418
- r: string;
419
- b: string;
420
- g: string;
421
- kind: "hex";
422
- } | null | undefined;
423
- backgroundColour?: {
424
- r: string;
425
- b: string;
426
- g: string;
427
- kind: "hex";
428
- } | null | undefined;
429
- } | null | undefined;
430
- destination?: "LandingPage" | "Checkout" | null | undefined;
431
- }>, "many">;
125
+ }, z.core.$strip>>>;
126
+ }, z.core.$strip>>>;
127
+ destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
128
+ }, z.core.$strip>>;
432
129
  mobileChoiceCards: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
433
- product: z.ZodDiscriminatedUnion<"supportTier", [z.ZodObject<{
130
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
434
131
  supportTier: z.ZodLiteral<"Contribution">;
435
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
436
- }, "strip", z.ZodTypeAny, {
437
- supportTier: "Contribution";
438
- ratePlan: "Monthly" | "Annual";
439
- }, {
440
- supportTier: "Contribution";
441
- ratePlan: "Monthly" | "Annual";
442
- }>, z.ZodObject<{
132
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
133
+ }, z.core.$strip>, z.ZodObject<{
443
134
  supportTier: z.ZodLiteral<"SupporterPlus">;
444
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
445
- }, "strip", z.ZodTypeAny, {
446
- supportTier: "SupporterPlus";
447
- ratePlan: "Monthly" | "Annual";
448
- }, {
449
- supportTier: "SupporterPlus";
450
- ratePlan: "Monthly" | "Annual";
451
- }>, z.ZodObject<{
135
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
136
+ }, z.core.$strip>, z.ZodObject<{
452
137
  supportTier: z.ZodLiteral<"OneOff">;
453
- }, "strip", z.ZodTypeAny, {
454
- supportTier: "OneOff";
455
- }, {
456
- supportTier: "OneOff";
457
- }>]>;
138
+ }, z.core.$strip>], "supportTier">;
458
139
  label: z.ZodString;
459
140
  isDefault: z.ZodBoolean;
460
141
  benefitsLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
461
142
  benefits: z.ZodArray<z.ZodObject<{
462
143
  copy: z.ZodString;
463
- }, "strip", z.ZodTypeAny, {
464
- copy: string;
465
- }, {
466
- copy: string;
467
- }>, "many">;
144
+ }, z.core.$strip>>;
468
145
  pill: z.ZodOptional<z.ZodNullable<z.ZodObject<{
469
146
  copy: z.ZodString;
470
147
  textColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
471
- r: z.ZodEffects<z.ZodString, string, string>;
472
- g: z.ZodEffects<z.ZodString, string, string>;
473
- b: z.ZodEffects<z.ZodString, string, string>;
148
+ r: z.ZodString;
149
+ g: z.ZodString;
150
+ b: z.ZodString;
474
151
  kind: z.ZodLiteral<"hex">;
475
- }, "strip", z.ZodTypeAny, {
476
- r: string;
477
- b: string;
478
- g: string;
479
- kind: "hex";
480
- }, {
481
- r: string;
482
- b: string;
483
- g: string;
484
- kind: "hex";
485
- }>>>;
152
+ }, z.core.$strip>>>;
486
153
  backgroundColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
487
- r: z.ZodEffects<z.ZodString, string, string>;
488
- g: z.ZodEffects<z.ZodString, string, string>;
489
- b: z.ZodEffects<z.ZodString, string, string>;
154
+ r: z.ZodString;
155
+ g: z.ZodString;
156
+ b: z.ZodString;
490
157
  kind: z.ZodLiteral<"hex">;
491
- }, "strip", z.ZodTypeAny, {
492
- r: string;
493
- b: string;
494
- g: string;
495
- kind: "hex";
496
- }, {
497
- r: string;
498
- b: string;
499
- g: string;
500
- kind: "hex";
501
- }>>>;
502
- }, "strip", z.ZodTypeAny, {
503
- copy: string;
504
- textColour?: {
505
- r: string;
506
- b: string;
507
- g: string;
508
- kind: "hex";
509
- } | null | undefined;
510
- backgroundColour?: {
511
- r: string;
512
- b: string;
513
- g: string;
514
- kind: "hex";
515
- } | null | undefined;
516
- }, {
517
- copy: string;
518
- textColour?: {
519
- r: string;
520
- b: string;
521
- g: string;
522
- kind: "hex";
523
- } | null | undefined;
524
- backgroundColour?: {
525
- r: string;
526
- b: string;
527
- g: string;
528
- kind: "hex";
529
- } | null | undefined;
530
- }>>>;
531
- destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
532
- }, "strip", z.ZodTypeAny, {
533
- product: {
534
- supportTier: "Contribution";
535
- ratePlan: "Monthly" | "Annual";
536
- } | {
537
- supportTier: "SupporterPlus";
538
- ratePlan: "Monthly" | "Annual";
539
- } | {
540
- supportTier: "OneOff";
541
- };
542
- label: string;
543
- isDefault: boolean;
544
- benefits: {
545
- copy: string;
546
- }[];
547
- benefitsLabel?: string | null | undefined;
548
- pill?: {
549
- copy: string;
550
- textColour?: {
551
- r: string;
552
- b: string;
553
- g: string;
554
- kind: "hex";
555
- } | null | undefined;
556
- backgroundColour?: {
557
- r: string;
558
- b: string;
559
- g: string;
560
- kind: "hex";
561
- } | null | undefined;
562
- } | null | undefined;
563
- destination?: "LandingPage" | "Checkout" | null | undefined;
564
- }, {
565
- product: {
566
- supportTier: "Contribution";
567
- ratePlan: "Monthly" | "Annual";
568
- } | {
569
- supportTier: "SupporterPlus";
570
- ratePlan: "Monthly" | "Annual";
571
- } | {
572
- supportTier: "OneOff";
573
- };
574
- label: string;
575
- isDefault: boolean;
576
- benefits: {
577
- copy: string;
578
- }[];
579
- benefitsLabel?: string | null | undefined;
580
- pill?: {
581
- copy: string;
582
- textColour?: {
583
- r: string;
584
- b: string;
585
- g: string;
586
- kind: "hex";
587
- } | null | undefined;
588
- backgroundColour?: {
589
- r: string;
590
- b: string;
591
- g: string;
592
- kind: "hex";
593
- } | null | undefined;
594
- } | null | undefined;
595
- destination?: "LandingPage" | "Checkout" | null | undefined;
596
- }>, "many">>>;
597
- }, "strip", z.ZodTypeAny, {
598
- choiceCards: {
599
- product: {
600
- supportTier: "Contribution";
601
- ratePlan: "Monthly" | "Annual";
602
- } | {
603
- supportTier: "SupporterPlus";
604
- ratePlan: "Monthly" | "Annual";
605
- } | {
606
- supportTier: "OneOff";
607
- };
608
- label: string;
609
- isDefault: boolean;
610
- benefits: {
611
- copy: string;
612
- }[];
613
- benefitsLabel?: string | null | undefined;
614
- pill?: {
615
- copy: string;
616
- textColour?: {
617
- r: string;
618
- b: string;
619
- g: string;
620
- kind: "hex";
621
- } | null | undefined;
622
- backgroundColour?: {
623
- r: string;
624
- b: string;
625
- g: string;
626
- kind: "hex";
627
- } | null | undefined;
628
- } | null | undefined;
629
- destination?: "LandingPage" | "Checkout" | null | undefined;
630
- }[];
631
- mobileChoiceCards?: {
632
- product: {
633
- supportTier: "Contribution";
634
- ratePlan: "Monthly" | "Annual";
635
- } | {
636
- supportTier: "SupporterPlus";
637
- ratePlan: "Monthly" | "Annual";
638
- } | {
639
- supportTier: "OneOff";
640
- };
641
- label: string;
642
- isDefault: boolean;
643
- benefits: {
644
- copy: string;
645
- }[];
646
- benefitsLabel?: string | null | undefined;
647
- pill?: {
648
- copy: string;
649
- textColour?: {
650
- r: string;
651
- b: string;
652
- g: string;
653
- kind: "hex";
654
- } | null | undefined;
655
- backgroundColour?: {
656
- r: string;
657
- b: string;
658
- g: string;
659
- kind: "hex";
660
- } | null | undefined;
661
- } | null | undefined;
662
- destination?: "LandingPage" | "Checkout" | null | undefined;
663
- }[] | null | undefined;
664
- }, {
665
- choiceCards: {
666
- product: {
667
- supportTier: "Contribution";
668
- ratePlan: "Monthly" | "Annual";
669
- } | {
670
- supportTier: "SupporterPlus";
671
- ratePlan: "Monthly" | "Annual";
672
- } | {
673
- supportTier: "OneOff";
674
- };
675
- label: string;
676
- isDefault: boolean;
677
- benefits: {
678
- copy: string;
679
- }[];
680
- benefitsLabel?: string | null | undefined;
681
- pill?: {
682
- copy: string;
683
- textColour?: {
684
- r: string;
685
- b: string;
686
- g: string;
687
- kind: "hex";
688
- } | null | undefined;
689
- backgroundColour?: {
690
- r: string;
691
- b: string;
692
- g: string;
693
- kind: "hex";
694
- } | null | undefined;
695
- } | null | undefined;
696
- destination?: "LandingPage" | "Checkout" | null | undefined;
697
- }[];
698
- mobileChoiceCards?: {
699
- product: {
700
- supportTier: "Contribution";
701
- ratePlan: "Monthly" | "Annual";
702
- } | {
703
- supportTier: "SupporterPlus";
704
- ratePlan: "Monthly" | "Annual";
705
- } | {
706
- supportTier: "OneOff";
707
- };
708
- label: string;
709
- isDefault: boolean;
710
- benefits: {
711
- copy: string;
712
- }[];
713
- benefitsLabel?: string | null | undefined;
714
- pill?: {
715
- copy: string;
716
- textColour?: {
717
- r: string;
718
- b: string;
719
- g: string;
720
- kind: "hex";
721
- } | null | undefined;
722
- backgroundColour?: {
723
- r: string;
724
- b: string;
725
- g: string;
726
- kind: "hex";
727
- } | null | undefined;
728
- } | null | undefined;
729
- destination?: "LandingPage" | "Checkout" | null | undefined;
730
- }[] | null | undefined;
731
- }>>>;
732
- promoCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
733
- }, "strip", z.ZodTypeAny, {
734
- name: string;
735
- template: (BannerTemplate | {
736
- designName: string;
737
- }) & (BannerTemplate | {
738
- designName: string;
739
- } | undefined);
740
- tickerSettings?: {
741
- name: "global" | "US" | "AU";
742
- copy: {
743
- countLabel: string;
744
- goalCopy?: string | undefined;
745
- };
746
- currencySymbol: string;
747
- tickerData?: {
748
- total: number;
749
- goal: number;
750
- } | undefined;
751
- } | undefined;
752
- bannerContent?: {
753
- heading?: string | undefined;
754
- messageText?: string | undefined;
755
- paragraphs?: string[] | undefined;
756
- mobileMessageText?: string | undefined;
757
- highlightedText?: string | undefined;
758
- cta?: {
759
- text: string;
760
- baseUrl: string;
761
- } | undefined;
762
- secondaryCta?: {
763
- type: import("../props").SecondaryCtaType.Custom;
764
- cta: {
765
- text: string;
766
- baseUrl: string;
767
- };
768
- } | {
769
- type: import("../props").SecondaryCtaType.ContributionsReminder;
770
- } | undefined;
771
- } | undefined;
772
- mobileBannerContent?: {
773
- heading?: string | undefined;
774
- messageText?: string | undefined;
775
- paragraphs?: string[] | undefined;
776
- mobileMessageText?: string | undefined;
777
- highlightedText?: string | undefined;
778
- cta?: {
779
- text: string;
780
- baseUrl: string;
781
- } | undefined;
782
- secondaryCta?: {
783
- type: import("../props").SecondaryCtaType.Custom;
784
- cta: {
785
- text: string;
786
- baseUrl: string;
787
- };
788
- } | {
789
- type: import("../props").SecondaryCtaType.ContributionsReminder;
790
- } | undefined;
791
- } | undefined;
792
- separateArticleCount?: boolean | undefined;
793
- separateArticleCountSettings?: {
794
- type: "above";
795
- copy?: string | undefined;
796
- countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
797
- } | undefined;
798
- choiceCardsSettings?: {
799
- choiceCards: {
800
- product: {
801
- supportTier: "Contribution";
802
- ratePlan: "Monthly" | "Annual";
803
- } | {
804
- supportTier: "SupporterPlus";
805
- ratePlan: "Monthly" | "Annual";
806
- } | {
807
- supportTier: "OneOff";
808
- };
809
- label: string;
810
- isDefault: boolean;
811
- benefits: {
812
- copy: string;
813
- }[];
814
- benefitsLabel?: string | null | undefined;
815
- pill?: {
816
- copy: string;
817
- textColour?: {
818
- r: string;
819
- b: string;
820
- g: string;
821
- kind: "hex";
822
- } | null | undefined;
823
- backgroundColour?: {
824
- r: string;
825
- b: string;
826
- g: string;
827
- kind: "hex";
828
- } | null | undefined;
829
- } | null | undefined;
830
- destination?: "LandingPage" | "Checkout" | null | undefined;
831
- }[];
832
- mobileChoiceCards?: {
833
- product: {
834
- supportTier: "Contribution";
835
- ratePlan: "Monthly" | "Annual";
836
- } | {
837
- supportTier: "SupporterPlus";
838
- ratePlan: "Monthly" | "Annual";
839
- } | {
840
- supportTier: "OneOff";
841
- };
842
- label: string;
843
- isDefault: boolean;
844
- benefits: {
845
- copy: string;
846
- }[];
847
- benefitsLabel?: string | null | undefined;
848
- pill?: {
849
- copy: string;
850
- textColour?: {
851
- r: string;
852
- b: string;
853
- g: string;
854
- kind: "hex";
855
- } | null | undefined;
856
- backgroundColour?: {
857
- r: string;
858
- b: string;
859
- g: string;
860
- kind: "hex";
861
- } | null | undefined;
862
- } | null | undefined;
863
- destination?: "LandingPage" | "Checkout" | null | undefined;
864
- }[] | null | undefined;
865
- } | null | undefined;
866
- promoCodes?: string[] | null | undefined;
867
- }, {
868
- name: string;
869
- template: (BannerTemplate | {
870
- designName: string;
871
- }) & (BannerTemplate | {
872
- designName: string;
873
- } | undefined);
874
- tickerSettings?: {
875
- name: "global" | "US" | "AU";
876
- copy: {
877
- countLabel: string;
878
- goalCopy?: string | undefined;
879
- };
880
- currencySymbol: string;
881
- tickerData?: {
882
- total: number;
883
- goal: number;
884
- } | undefined;
885
- } | undefined;
886
- bannerContent?: {
887
- heading?: string | undefined;
888
- messageText?: string | undefined;
889
- paragraphs?: string[] | undefined;
890
- mobileMessageText?: string | undefined;
891
- highlightedText?: string | undefined;
892
- cta?: {
893
- text: string;
894
- baseUrl: string;
895
- } | undefined;
896
- secondaryCta?: {
897
- type: import("../props").SecondaryCtaType.Custom;
898
- cta: {
899
- text: string;
900
- baseUrl: string;
901
- };
902
- } | {
903
- type: import("../props").SecondaryCtaType.ContributionsReminder;
904
- } | undefined;
905
- } | undefined;
906
- mobileBannerContent?: {
907
- heading?: string | undefined;
908
- messageText?: string | undefined;
909
- paragraphs?: string[] | undefined;
910
- mobileMessageText?: string | undefined;
911
- highlightedText?: string | undefined;
912
- cta?: {
913
- text: string;
914
- baseUrl: string;
915
- } | undefined;
916
- secondaryCta?: {
917
- type: import("../props").SecondaryCtaType.Custom;
918
- cta: {
919
- text: string;
920
- baseUrl: string;
921
- };
922
- } | {
923
- type: import("../props").SecondaryCtaType.ContributionsReminder;
924
- } | undefined;
925
- } | undefined;
926
- separateArticleCount?: boolean | undefined;
927
- separateArticleCountSettings?: {
928
- type: "above";
929
- copy?: string | undefined;
930
- countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
931
- } | undefined;
932
- choiceCardsSettings?: {
933
- choiceCards: {
934
- product: {
935
- supportTier: "Contribution";
936
- ratePlan: "Monthly" | "Annual";
937
- } | {
938
- supportTier: "SupporterPlus";
939
- ratePlan: "Monthly" | "Annual";
940
- } | {
941
- supportTier: "OneOff";
942
- };
943
- label: string;
944
- isDefault: boolean;
945
- benefits: {
946
- copy: string;
947
- }[];
948
- benefitsLabel?: string | null | undefined;
949
- pill?: {
950
- copy: string;
951
- textColour?: {
952
- r: string;
953
- b: string;
954
- g: string;
955
- kind: "hex";
956
- } | null | undefined;
957
- backgroundColour?: {
958
- r: string;
959
- b: string;
960
- g: string;
961
- kind: "hex";
962
- } | null | undefined;
963
- } | null | undefined;
964
- destination?: "LandingPage" | "Checkout" | null | undefined;
965
- }[];
966
- mobileChoiceCards?: {
967
- product: {
968
- supportTier: "Contribution";
969
- ratePlan: "Monthly" | "Annual";
970
- } | {
971
- supportTier: "SupporterPlus";
972
- ratePlan: "Monthly" | "Annual";
973
- } | {
974
- supportTier: "OneOff";
975
- };
976
- label: string;
977
- isDefault: boolean;
978
- benefits: {
979
- copy: string;
980
- }[];
981
- benefitsLabel?: string | null | undefined;
982
- pill?: {
983
- copy: string;
984
- textColour?: {
985
- r: string;
986
- b: string;
987
- g: string;
988
- kind: "hex";
989
- } | null | undefined;
990
- backgroundColour?: {
991
- r: string;
992
- b: string;
993
- g: string;
994
- kind: "hex";
995
- } | null | undefined;
996
- } | null | undefined;
997
- destination?: "LandingPage" | "Checkout" | null | undefined;
998
- }[] | null | undefined;
999
- } | null | undefined;
1000
- promoCodes?: string[] | null | undefined;
1001
- }>;
158
+ }, z.core.$strip>>>;
159
+ }, z.core.$strip>>>;
160
+ destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
161
+ }, z.core.$strip>>>>;
162
+ }, z.core.$strip>>>;
163
+ promoCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
164
+ }, z.core.$strip>;
1002
165
  export type BannerVariantFromTool = z.infer<typeof bannerVariantFromToolSchema>;
1003
166
  export interface BannerVariant extends BannerVariantFromTool {
1004
167
  componentType: OphanComponentType;
@@ -1020,85 +183,88 @@ export interface BannerTest extends BannerTestFromTool {
1020
183
  variants: BannerVariant[];
1021
184
  }
1022
185
  export declare const bannerTestFromToolSchema: z.ZodObject<{
186
+ channel: z.ZodEnum<{
187
+ Epic: "Epic";
188
+ EpicAppleNews: "EpicAppleNews";
189
+ EpicLiveblog: "EpicLiveblog";
190
+ Banner1: "Banner1";
191
+ Banner2: "Banner2";
192
+ Header: "Header";
193
+ GutterLiveblog: "GutterLiveblog";
194
+ }>;
1023
195
  name: z.ZodString;
1024
- channel: z.ZodEnum<["Epic", "EpicAppleNews", "EpicLiveblog", "Banner1", "Banner2", "Header", "GutterLiveblog"]>;
196
+ status: z.ZodEnum<{
197
+ Live: "Live";
198
+ Draft: "Draft";
199
+ Archived: "Archived";
200
+ }>;
1025
201
  priority: z.ZodNumber;
1026
- status: z.ZodEnum<["Live", "Draft", "Archived"]>;
1027
202
  controlProportionSettings: z.ZodOptional<z.ZodObject<{
1028
203
  proportion: z.ZodNumber;
1029
204
  offset: z.ZodNumber;
1030
- }, "strip", z.ZodTypeAny, {
1031
- offset: number;
1032
- proportion: number;
1033
- }, {
1034
- offset: number;
1035
- proportion: number;
205
+ }, z.core.$strip>>;
206
+ deviceType: z.ZodOptional<z.ZodEnum<{
207
+ Mobile: "Mobile";
208
+ Desktop: "Desktop";
209
+ All: "All";
210
+ iOS: "iOS";
211
+ Android: "Android";
212
+ }>>;
213
+ signedInStatus: z.ZodOptional<z.ZodEnum<{
214
+ All: "All";
215
+ SignedIn: "SignedIn";
216
+ SignedOut: "SignedOut";
217
+ }>>;
218
+ consentStatus: z.ZodOptional<z.ZodEnum<{
219
+ All: "All";
220
+ HasConsented: "HasConsented";
221
+ HasNotConsented: "HasNotConsented";
1036
222
  }>>;
1037
- deviceType: z.ZodOptional<z.ZodEnum<["Mobile", "Desktop", "All", "iOS", "Android"]>>;
1038
- signedInStatus: z.ZodOptional<z.ZodEnum<["SignedIn", "SignedOut", "All"]>>;
1039
- consentStatus: z.ZodOptional<z.ZodEnum<["HasConsented", "HasNotConsented", "All"]>>;
1040
- methodologies: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
223
+ methodologies: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
1041
224
  name: z.ZodLiteral<"ABTest">;
1042
- }, "strip", z.ZodTypeAny, {
1043
- name: "ABTest";
1044
- }, {
1045
- name: "ABTest";
1046
- }>, z.ZodObject<{
225
+ }, z.core.$strip>, z.ZodObject<{
1047
226
  name: z.ZodLiteral<"EpsilonGreedyBandit">;
1048
227
  epsilon: z.ZodNumber;
1049
228
  sampleCount: z.ZodOptional<z.ZodNumber>;
1050
- }, "strip", z.ZodTypeAny, {
1051
- name: "EpsilonGreedyBandit";
1052
- epsilon: number;
1053
- sampleCount?: number | undefined;
1054
- }, {
1055
- name: "EpsilonGreedyBandit";
1056
- epsilon: number;
1057
- sampleCount?: number | undefined;
1058
- }>, z.ZodObject<{
229
+ }, z.core.$strip>, z.ZodObject<{
1059
230
  name: z.ZodLiteral<"Roulette">;
1060
231
  sampleCount: z.ZodOptional<z.ZodNumber>;
1061
- }, "strip", z.ZodTypeAny, {
1062
- name: "Roulette";
1063
- sampleCount?: number | undefined;
1064
- }, {
1065
- name: "Roulette";
1066
- sampleCount?: number | undefined;
1067
- }>]>, z.ZodObject<{
232
+ }, z.core.$strip>], "name">, z.ZodObject<{
1068
233
  testName: z.ZodOptional<z.ZodString>;
1069
- }, "strip", z.ZodTypeAny, {
1070
- testName?: string | undefined;
1071
- }, {
1072
- testName?: string | undefined;
1073
- }>>, "many">>;
1074
- userCohort: z.ZodEnum<["AllExistingSupporters", "AllNonSupporters", "Everyone", "PostAskPauseSingleContributors"]>;
1075
- locations: z.ZodOptional<z.ZodArray<z.ZodEnum<["GBPCountries", "UnitedStates", "AUDCountries", "EURCountries", "International", "NZDCountries", "Canada"]>, "many">>;
1076
- regionTargeting: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1077
- targetedCountryGroups: z.ZodArray<z.ZodEnum<["GBPCountries", "UnitedStates", "AUDCountries", "EURCountries", "International", "NZDCountries", "Canada"]>, "many">;
1078
- targetedCountryCodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1079
- }, "strip", z.ZodTypeAny, {
1080
- targetedCountryGroups: ("GBPCountries" | "UnitedStates" | "AUDCountries" | "EURCountries" | "International" | "NZDCountries" | "Canada")[];
1081
- targetedCountryCodes?: string[] | undefined;
1082
- }, {
1083
- targetedCountryGroups: ("GBPCountries" | "UnitedStates" | "AUDCountries" | "EURCountries" | "International" | "NZDCountries" | "Canada")[];
1084
- targetedCountryCodes?: string[] | undefined;
234
+ }, z.core.$strip>>>>;
235
+ userCohort: z.ZodEnum<{
236
+ AllExistingSupporters: "AllExistingSupporters";
237
+ AllNonSupporters: "AllNonSupporters";
238
+ Everyone: "Everyone";
239
+ PostAskPauseSingleContributors: "PostAskPauseSingleContributors";
240
+ }>;
241
+ locations: z.ZodOptional<z.ZodArray<z.ZodEnum<{
242
+ GBPCountries: "GBPCountries";
243
+ UnitedStates: "UnitedStates";
244
+ AUDCountries: "AUDCountries";
245
+ EURCountries: "EURCountries";
246
+ International: "International";
247
+ NZDCountries: "NZDCountries";
248
+ Canada: "Canada";
1085
249
  }>>>;
250
+ regionTargeting: z.ZodOptional<z.ZodOptional<z.ZodObject<{
251
+ targetedCountryGroups: z.ZodArray<z.ZodEnum<{
252
+ GBPCountries: "GBPCountries";
253
+ UnitedStates: "UnitedStates";
254
+ AUDCountries: "AUDCountries";
255
+ EURCountries: "EURCountries";
256
+ International: "International";
257
+ NZDCountries: "NZDCountries";
258
+ Canada: "Canada";
259
+ }>>;
260
+ targetedCountryCodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
261
+ }, z.core.$strip>>>;
1086
262
  contextTargeting: z.ZodObject<{
1087
- tagIds: z.ZodArray<z.ZodString, "many">;
1088
- sectionIds: z.ZodArray<z.ZodString, "many">;
1089
- excludedTagIds: z.ZodArray<z.ZodString, "many">;
1090
- excludedSectionIds: z.ZodArray<z.ZodString, "many">;
1091
- }, "strip", z.ZodTypeAny, {
1092
- tagIds: string[];
1093
- sectionIds: string[];
1094
- excludedTagIds: string[];
1095
- excludedSectionIds: string[];
1096
- }, {
1097
- tagIds: string[];
1098
- sectionIds: string[];
1099
- excludedTagIds: string[];
1100
- excludedSectionIds: string[];
1101
- }>;
263
+ tagIds: z.ZodArray<z.ZodString>;
264
+ sectionIds: z.ZodArray<z.ZodString>;
265
+ excludedTagIds: z.ZodArray<z.ZodString>;
266
+ excludedSectionIds: z.ZodArray<z.ZodString>;
267
+ }, z.core.$strip>;
1102
268
  variants: z.ZodArray<z.ZodObject<{
1103
269
  name: z.ZodString;
1104
270
  tickerSettings: z.ZodOptional<z.ZodObject<{
@@ -1106,1363 +272,150 @@ export declare const bannerTestFromToolSchema: z.ZodObject<{
1106
272
  copy: z.ZodObject<{
1107
273
  countLabel: z.ZodString;
1108
274
  goalCopy: z.ZodOptional<z.ZodString>;
1109
- }, "strip", z.ZodTypeAny, {
1110
- countLabel: string;
1111
- goalCopy?: string | undefined;
1112
- }, {
1113
- countLabel: string;
1114
- goalCopy?: string | undefined;
275
+ }, z.core.$strip>;
276
+ name: z.ZodEnum<{
277
+ global: "global";
278
+ US: "US";
279
+ AU: "AU";
1115
280
  }>;
1116
- name: z.ZodEnum<["US", "AU", "global"]>;
1117
281
  tickerData: z.ZodOptional<z.ZodObject<{
1118
282
  total: z.ZodNumber;
1119
283
  goal: z.ZodNumber;
1120
- }, "strip", z.ZodTypeAny, {
1121
- total: number;
1122
- goal: number;
1123
- }, {
1124
- total: number;
1125
- goal: number;
1126
- }>>;
1127
- }, "strip", z.ZodTypeAny, {
1128
- name: "global" | "US" | "AU";
1129
- copy: {
1130
- countLabel: string;
1131
- goalCopy?: string | undefined;
1132
- };
1133
- currencySymbol: string;
1134
- tickerData?: {
1135
- total: number;
1136
- goal: number;
1137
- } | undefined;
1138
- }, {
1139
- name: "global" | "US" | "AU";
1140
- copy: {
1141
- countLabel: string;
1142
- goalCopy?: string | undefined;
1143
- };
1144
- currencySymbol: string;
1145
- tickerData?: {
1146
- total: number;
1147
- goal: number;
1148
- } | undefined;
1149
- }>>;
1150
- template: z.ZodUnion<[z.ZodNativeEnum<typeof BannerTemplate>, z.ZodObject<{
284
+ }, z.core.$strip>>;
285
+ }, z.core.$strip>>;
286
+ template: z.ZodUnion<readonly [z.ZodEnum<typeof BannerTemplate>, z.ZodObject<{
1151
287
  designName: z.ZodString;
1152
- }, "strip", z.ZodTypeAny, {
1153
- designName: string;
1154
- }, {
1155
- designName: string;
1156
- }>]>;
288
+ }, z.core.$strip>]>;
1157
289
  bannerContent: z.ZodOptional<z.ZodObject<{
1158
290
  heading: z.ZodOptional<z.ZodString>;
1159
291
  messageText: z.ZodOptional<z.ZodString>;
1160
- paragraphs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
292
+ paragraphs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1161
293
  mobileMessageText: z.ZodOptional<z.ZodString>;
1162
294
  highlightedText: z.ZodOptional<z.ZodString>;
1163
295
  cta: z.ZodOptional<z.ZodObject<{
1164
296
  text: z.ZodString;
1165
297
  baseUrl: z.ZodString;
1166
- }, "strip", z.ZodTypeAny, {
1167
- text: string;
1168
- baseUrl: string;
1169
- }, {
1170
- text: string;
1171
- baseUrl: string;
1172
- }>>;
1173
- secondaryCta: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
298
+ }, z.core.$strip>>;
299
+ secondaryCta: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1174
300
  type: z.ZodLiteral<import("../props").SecondaryCtaType.Custom>;
1175
301
  cta: z.ZodObject<{
1176
302
  text: z.ZodString;
1177
303
  baseUrl: z.ZodString;
1178
- }, "strip", z.ZodTypeAny, {
1179
- text: string;
1180
- baseUrl: string;
1181
- }, {
1182
- text: string;
1183
- baseUrl: string;
1184
- }>;
1185
- }, "strip", z.ZodTypeAny, {
1186
- type: import("../props").SecondaryCtaType.Custom;
1187
- cta: {
1188
- text: string;
1189
- baseUrl: string;
1190
- };
1191
- }, {
1192
- type: import("../props").SecondaryCtaType.Custom;
1193
- cta: {
1194
- text: string;
1195
- baseUrl: string;
1196
- };
1197
- }>, z.ZodObject<{
304
+ }, z.core.$strip>;
305
+ }, z.core.$strip>, z.ZodObject<{
1198
306
  type: z.ZodLiteral<import("../props").SecondaryCtaType.ContributionsReminder>;
1199
- }, "strip", z.ZodTypeAny, {
1200
- type: import("../props").SecondaryCtaType.ContributionsReminder;
1201
- }, {
1202
- type: import("../props").SecondaryCtaType.ContributionsReminder;
1203
- }>]>>;
1204
- }, "strip", z.ZodTypeAny, {
1205
- heading?: string | undefined;
1206
- messageText?: string | undefined;
1207
- paragraphs?: string[] | undefined;
1208
- mobileMessageText?: string | undefined;
1209
- highlightedText?: string | undefined;
1210
- cta?: {
1211
- text: string;
1212
- baseUrl: string;
1213
- } | undefined;
1214
- secondaryCta?: {
1215
- type: import("../props").SecondaryCtaType.Custom;
1216
- cta: {
1217
- text: string;
1218
- baseUrl: string;
1219
- };
1220
- } | {
1221
- type: import("../props").SecondaryCtaType.ContributionsReminder;
1222
- } | undefined;
1223
- }, {
1224
- heading?: string | undefined;
1225
- messageText?: string | undefined;
1226
- paragraphs?: string[] | undefined;
1227
- mobileMessageText?: string | undefined;
1228
- highlightedText?: string | undefined;
1229
- cta?: {
1230
- text: string;
1231
- baseUrl: string;
1232
- } | undefined;
1233
- secondaryCta?: {
1234
- type: import("../props").SecondaryCtaType.Custom;
1235
- cta: {
1236
- text: string;
1237
- baseUrl: string;
1238
- };
1239
- } | {
1240
- type: import("../props").SecondaryCtaType.ContributionsReminder;
1241
- } | undefined;
1242
- }>>;
307
+ }, z.core.$strip>], "type">>;
308
+ }, z.core.$strip>>;
1243
309
  mobileBannerContent: z.ZodOptional<z.ZodObject<{
1244
310
  heading: z.ZodOptional<z.ZodString>;
1245
311
  messageText: z.ZodOptional<z.ZodString>;
1246
- paragraphs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
312
+ paragraphs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1247
313
  mobileMessageText: z.ZodOptional<z.ZodString>;
1248
314
  highlightedText: z.ZodOptional<z.ZodString>;
1249
315
  cta: z.ZodOptional<z.ZodObject<{
1250
316
  text: z.ZodString;
1251
317
  baseUrl: z.ZodString;
1252
- }, "strip", z.ZodTypeAny, {
1253
- text: string;
1254
- baseUrl: string;
1255
- }, {
1256
- text: string;
1257
- baseUrl: string;
1258
- }>>;
1259
- secondaryCta: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
318
+ }, z.core.$strip>>;
319
+ secondaryCta: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1260
320
  type: z.ZodLiteral<import("../props").SecondaryCtaType.Custom>;
1261
321
  cta: z.ZodObject<{
1262
322
  text: z.ZodString;
1263
323
  baseUrl: z.ZodString;
1264
- }, "strip", z.ZodTypeAny, {
1265
- text: string;
1266
- baseUrl: string;
1267
- }, {
1268
- text: string;
1269
- baseUrl: string;
1270
- }>;
1271
- }, "strip", z.ZodTypeAny, {
1272
- type: import("../props").SecondaryCtaType.Custom;
1273
- cta: {
1274
- text: string;
1275
- baseUrl: string;
1276
- };
1277
- }, {
1278
- type: import("../props").SecondaryCtaType.Custom;
1279
- cta: {
1280
- text: string;
1281
- baseUrl: string;
1282
- };
1283
- }>, z.ZodObject<{
324
+ }, z.core.$strip>;
325
+ }, z.core.$strip>, z.ZodObject<{
1284
326
  type: z.ZodLiteral<import("../props").SecondaryCtaType.ContributionsReminder>;
1285
- }, "strip", z.ZodTypeAny, {
1286
- type: import("../props").SecondaryCtaType.ContributionsReminder;
1287
- }, {
1288
- type: import("../props").SecondaryCtaType.ContributionsReminder;
1289
- }>]>>;
1290
- }, "strip", z.ZodTypeAny, {
1291
- heading?: string | undefined;
1292
- messageText?: string | undefined;
1293
- paragraphs?: string[] | undefined;
1294
- mobileMessageText?: string | undefined;
1295
- highlightedText?: string | undefined;
1296
- cta?: {
1297
- text: string;
1298
- baseUrl: string;
1299
- } | undefined;
1300
- secondaryCta?: {
1301
- type: import("../props").SecondaryCtaType.Custom;
1302
- cta: {
1303
- text: string;
1304
- baseUrl: string;
1305
- };
1306
- } | {
1307
- type: import("../props").SecondaryCtaType.ContributionsReminder;
1308
- } | undefined;
1309
- }, {
1310
- heading?: string | undefined;
1311
- messageText?: string | undefined;
1312
- paragraphs?: string[] | undefined;
1313
- mobileMessageText?: string | undefined;
1314
- highlightedText?: string | undefined;
1315
- cta?: {
1316
- text: string;
1317
- baseUrl: string;
1318
- } | undefined;
1319
- secondaryCta?: {
1320
- type: import("../props").SecondaryCtaType.Custom;
1321
- cta: {
1322
- text: string;
1323
- baseUrl: string;
1324
- };
1325
- } | {
1326
- type: import("../props").SecondaryCtaType.ContributionsReminder;
1327
- } | undefined;
1328
- }>>;
327
+ }, z.core.$strip>], "type">>;
328
+ }, z.core.$strip>>;
1329
329
  separateArticleCount: z.ZodOptional<z.ZodBoolean>;
1330
330
  separateArticleCountSettings: z.ZodOptional<z.ZodObject<{
1331
331
  type: z.ZodLiteral<"above">;
1332
332
  copy: z.ZodOptional<z.ZodString>;
1333
- countType: z.ZodOptional<z.ZodEnum<["for52Weeks", "forTargetedWeeks"]>>;
1334
- }, "strip", z.ZodTypeAny, {
1335
- type: "above";
1336
- copy?: string | undefined;
1337
- countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
1338
- }, {
1339
- type: "above";
1340
- copy?: string | undefined;
1341
- countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
1342
- }>>;
333
+ countType: z.ZodOptional<z.ZodEnum<{
334
+ for52Weeks: "for52Weeks";
335
+ forTargetedWeeks: "forTargetedWeeks";
336
+ }>>;
337
+ }, z.core.$strip>>;
1343
338
  choiceCardsSettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1344
339
  choiceCards: z.ZodArray<z.ZodObject<{
1345
- product: z.ZodDiscriminatedUnion<"supportTier", [z.ZodObject<{
340
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
1346
341
  supportTier: z.ZodLiteral<"Contribution">;
1347
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
1348
- }, "strip", z.ZodTypeAny, {
1349
- supportTier: "Contribution";
1350
- ratePlan: "Monthly" | "Annual";
1351
- }, {
1352
- supportTier: "Contribution";
1353
- ratePlan: "Monthly" | "Annual";
1354
- }>, z.ZodObject<{
342
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
343
+ }, z.core.$strip>, z.ZodObject<{
1355
344
  supportTier: z.ZodLiteral<"SupporterPlus">;
1356
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
1357
- }, "strip", z.ZodTypeAny, {
1358
- supportTier: "SupporterPlus";
1359
- ratePlan: "Monthly" | "Annual";
1360
- }, {
1361
- supportTier: "SupporterPlus";
1362
- ratePlan: "Monthly" | "Annual";
1363
- }>, z.ZodObject<{
345
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
346
+ }, z.core.$strip>, z.ZodObject<{
1364
347
  supportTier: z.ZodLiteral<"OneOff">;
1365
- }, "strip", z.ZodTypeAny, {
1366
- supportTier: "OneOff";
1367
- }, {
1368
- supportTier: "OneOff";
1369
- }>]>;
348
+ }, z.core.$strip>], "supportTier">;
1370
349
  label: z.ZodString;
1371
350
  isDefault: z.ZodBoolean;
1372
351
  benefitsLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1373
352
  benefits: z.ZodArray<z.ZodObject<{
1374
353
  copy: z.ZodString;
1375
- }, "strip", z.ZodTypeAny, {
1376
- copy: string;
1377
- }, {
1378
- copy: string;
1379
- }>, "many">;
354
+ }, z.core.$strip>>;
1380
355
  pill: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1381
356
  copy: z.ZodString;
1382
357
  textColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1383
- r: z.ZodEffects<z.ZodString, string, string>;
1384
- g: z.ZodEffects<z.ZodString, string, string>;
1385
- b: z.ZodEffects<z.ZodString, string, string>;
358
+ r: z.ZodString;
359
+ g: z.ZodString;
360
+ b: z.ZodString;
1386
361
  kind: z.ZodLiteral<"hex">;
1387
- }, "strip", z.ZodTypeAny, {
1388
- r: string;
1389
- b: string;
1390
- g: string;
1391
- kind: "hex";
1392
- }, {
1393
- r: string;
1394
- b: string;
1395
- g: string;
1396
- kind: "hex";
1397
- }>>>;
362
+ }, z.core.$strip>>>;
1398
363
  backgroundColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1399
- r: z.ZodEffects<z.ZodString, string, string>;
1400
- g: z.ZodEffects<z.ZodString, string, string>;
1401
- b: z.ZodEffects<z.ZodString, string, string>;
364
+ r: z.ZodString;
365
+ g: z.ZodString;
366
+ b: z.ZodString;
1402
367
  kind: z.ZodLiteral<"hex">;
1403
- }, "strip", z.ZodTypeAny, {
1404
- r: string;
1405
- b: string;
1406
- g: string;
1407
- kind: "hex";
1408
- }, {
1409
- r: string;
1410
- b: string;
1411
- g: string;
1412
- kind: "hex";
1413
- }>>>;
1414
- }, "strip", z.ZodTypeAny, {
1415
- copy: string;
1416
- textColour?: {
1417
- r: string;
1418
- b: string;
1419
- g: string;
1420
- kind: "hex";
1421
- } | null | undefined;
1422
- backgroundColour?: {
1423
- r: string;
1424
- b: string;
1425
- g: string;
1426
- kind: "hex";
1427
- } | null | undefined;
1428
- }, {
1429
- copy: string;
1430
- textColour?: {
1431
- r: string;
1432
- b: string;
1433
- g: string;
1434
- kind: "hex";
1435
- } | null | undefined;
1436
- backgroundColour?: {
1437
- r: string;
1438
- b: string;
1439
- g: string;
1440
- kind: "hex";
1441
- } | null | undefined;
1442
- }>>>;
1443
- destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
1444
- }, "strip", z.ZodTypeAny, {
1445
- product: {
1446
- supportTier: "Contribution";
1447
- ratePlan: "Monthly" | "Annual";
1448
- } | {
1449
- supportTier: "SupporterPlus";
1450
- ratePlan: "Monthly" | "Annual";
1451
- } | {
1452
- supportTier: "OneOff";
1453
- };
1454
- label: string;
1455
- isDefault: boolean;
1456
- benefits: {
1457
- copy: string;
1458
- }[];
1459
- benefitsLabel?: string | null | undefined;
1460
- pill?: {
1461
- copy: string;
1462
- textColour?: {
1463
- r: string;
1464
- b: string;
1465
- g: string;
1466
- kind: "hex";
1467
- } | null | undefined;
1468
- backgroundColour?: {
1469
- r: string;
1470
- b: string;
1471
- g: string;
1472
- kind: "hex";
1473
- } | null | undefined;
1474
- } | null | undefined;
1475
- destination?: "LandingPage" | "Checkout" | null | undefined;
1476
- }, {
1477
- product: {
1478
- supportTier: "Contribution";
1479
- ratePlan: "Monthly" | "Annual";
1480
- } | {
1481
- supportTier: "SupporterPlus";
1482
- ratePlan: "Monthly" | "Annual";
1483
- } | {
1484
- supportTier: "OneOff";
1485
- };
1486
- label: string;
1487
- isDefault: boolean;
1488
- benefits: {
1489
- copy: string;
1490
- }[];
1491
- benefitsLabel?: string | null | undefined;
1492
- pill?: {
1493
- copy: string;
1494
- textColour?: {
1495
- r: string;
1496
- b: string;
1497
- g: string;
1498
- kind: "hex";
1499
- } | null | undefined;
1500
- backgroundColour?: {
1501
- r: string;
1502
- b: string;
1503
- g: string;
1504
- kind: "hex";
1505
- } | null | undefined;
1506
- } | null | undefined;
1507
- destination?: "LandingPage" | "Checkout" | null | undefined;
1508
- }>, "many">;
368
+ }, z.core.$strip>>>;
369
+ }, z.core.$strip>>>;
370
+ destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
371
+ }, z.core.$strip>>;
1509
372
  mobileChoiceCards: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1510
- product: z.ZodDiscriminatedUnion<"supportTier", [z.ZodObject<{
373
+ product: z.ZodDiscriminatedUnion<[z.ZodObject<{
1511
374
  supportTier: z.ZodLiteral<"Contribution">;
1512
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
1513
- }, "strip", z.ZodTypeAny, {
1514
- supportTier: "Contribution";
1515
- ratePlan: "Monthly" | "Annual";
1516
- }, {
1517
- supportTier: "Contribution";
1518
- ratePlan: "Monthly" | "Annual";
1519
- }>, z.ZodObject<{
375
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
376
+ }, z.core.$strip>, z.ZodObject<{
1520
377
  supportTier: z.ZodLiteral<"SupporterPlus">;
1521
- ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
1522
- }, "strip", z.ZodTypeAny, {
1523
- supportTier: "SupporterPlus";
1524
- ratePlan: "Monthly" | "Annual";
1525
- }, {
1526
- supportTier: "SupporterPlus";
1527
- ratePlan: "Monthly" | "Annual";
1528
- }>, z.ZodObject<{
378
+ ratePlan: z.ZodUnion<readonly [z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
379
+ }, z.core.$strip>, z.ZodObject<{
1529
380
  supportTier: z.ZodLiteral<"OneOff">;
1530
- }, "strip", z.ZodTypeAny, {
1531
- supportTier: "OneOff";
1532
- }, {
1533
- supportTier: "OneOff";
1534
- }>]>;
381
+ }, z.core.$strip>], "supportTier">;
1535
382
  label: z.ZodString;
1536
383
  isDefault: z.ZodBoolean;
1537
384
  benefitsLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1538
385
  benefits: z.ZodArray<z.ZodObject<{
1539
386
  copy: z.ZodString;
1540
- }, "strip", z.ZodTypeAny, {
1541
- copy: string;
1542
- }, {
1543
- copy: string;
1544
- }>, "many">;
387
+ }, z.core.$strip>>;
1545
388
  pill: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1546
389
  copy: z.ZodString;
1547
390
  textColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1548
- r: z.ZodEffects<z.ZodString, string, string>;
1549
- g: z.ZodEffects<z.ZodString, string, string>;
1550
- b: z.ZodEffects<z.ZodString, string, string>;
391
+ r: z.ZodString;
392
+ g: z.ZodString;
393
+ b: z.ZodString;
1551
394
  kind: z.ZodLiteral<"hex">;
1552
- }, "strip", z.ZodTypeAny, {
1553
- r: string;
1554
- b: string;
1555
- g: string;
1556
- kind: "hex";
1557
- }, {
1558
- r: string;
1559
- b: string;
1560
- g: string;
1561
- kind: "hex";
1562
- }>>>;
395
+ }, z.core.$strip>>>;
1563
396
  backgroundColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1564
- r: z.ZodEffects<z.ZodString, string, string>;
1565
- g: z.ZodEffects<z.ZodString, string, string>;
1566
- b: z.ZodEffects<z.ZodString, string, string>;
397
+ r: z.ZodString;
398
+ g: z.ZodString;
399
+ b: z.ZodString;
1567
400
  kind: z.ZodLiteral<"hex">;
1568
- }, "strip", z.ZodTypeAny, {
1569
- r: string;
1570
- b: string;
1571
- g: string;
1572
- kind: "hex";
1573
- }, {
1574
- r: string;
1575
- b: string;
1576
- g: string;
1577
- kind: "hex";
1578
- }>>>;
1579
- }, "strip", z.ZodTypeAny, {
1580
- copy: string;
1581
- textColour?: {
1582
- r: string;
1583
- b: string;
1584
- g: string;
1585
- kind: "hex";
1586
- } | null | undefined;
1587
- backgroundColour?: {
1588
- r: string;
1589
- b: string;
1590
- g: string;
1591
- kind: "hex";
1592
- } | null | undefined;
1593
- }, {
1594
- copy: string;
1595
- textColour?: {
1596
- r: string;
1597
- b: string;
1598
- g: string;
1599
- kind: "hex";
1600
- } | null | undefined;
1601
- backgroundColour?: {
1602
- r: string;
1603
- b: string;
1604
- g: string;
1605
- kind: "hex";
1606
- } | null | undefined;
1607
- }>>>;
1608
- destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
1609
- }, "strip", z.ZodTypeAny, {
1610
- product: {
1611
- supportTier: "Contribution";
1612
- ratePlan: "Monthly" | "Annual";
1613
- } | {
1614
- supportTier: "SupporterPlus";
1615
- ratePlan: "Monthly" | "Annual";
1616
- } | {
1617
- supportTier: "OneOff";
1618
- };
1619
- label: string;
1620
- isDefault: boolean;
1621
- benefits: {
1622
- copy: string;
1623
- }[];
1624
- benefitsLabel?: string | null | undefined;
1625
- pill?: {
1626
- copy: string;
1627
- textColour?: {
1628
- r: string;
1629
- b: string;
1630
- g: string;
1631
- kind: "hex";
1632
- } | null | undefined;
1633
- backgroundColour?: {
1634
- r: string;
1635
- b: string;
1636
- g: string;
1637
- kind: "hex";
1638
- } | null | undefined;
1639
- } | null | undefined;
1640
- destination?: "LandingPage" | "Checkout" | null | undefined;
1641
- }, {
1642
- product: {
1643
- supportTier: "Contribution";
1644
- ratePlan: "Monthly" | "Annual";
1645
- } | {
1646
- supportTier: "SupporterPlus";
1647
- ratePlan: "Monthly" | "Annual";
1648
- } | {
1649
- supportTier: "OneOff";
1650
- };
1651
- label: string;
1652
- isDefault: boolean;
1653
- benefits: {
1654
- copy: string;
1655
- }[];
1656
- benefitsLabel?: string | null | undefined;
1657
- pill?: {
1658
- copy: string;
1659
- textColour?: {
1660
- r: string;
1661
- b: string;
1662
- g: string;
1663
- kind: "hex";
1664
- } | null | undefined;
1665
- backgroundColour?: {
1666
- r: string;
1667
- b: string;
1668
- g: string;
1669
- kind: "hex";
1670
- } | null | undefined;
1671
- } | null | undefined;
1672
- destination?: "LandingPage" | "Checkout" | null | undefined;
1673
- }>, "many">>>;
1674
- }, "strip", z.ZodTypeAny, {
1675
- choiceCards: {
1676
- product: {
1677
- supportTier: "Contribution";
1678
- ratePlan: "Monthly" | "Annual";
1679
- } | {
1680
- supportTier: "SupporterPlus";
1681
- ratePlan: "Monthly" | "Annual";
1682
- } | {
1683
- supportTier: "OneOff";
1684
- };
1685
- label: string;
1686
- isDefault: boolean;
1687
- benefits: {
1688
- copy: string;
1689
- }[];
1690
- benefitsLabel?: string | null | undefined;
1691
- pill?: {
1692
- copy: string;
1693
- textColour?: {
1694
- r: string;
1695
- b: string;
1696
- g: string;
1697
- kind: "hex";
1698
- } | null | undefined;
1699
- backgroundColour?: {
1700
- r: string;
1701
- b: string;
1702
- g: string;
1703
- kind: "hex";
1704
- } | null | undefined;
1705
- } | null | undefined;
1706
- destination?: "LandingPage" | "Checkout" | null | undefined;
1707
- }[];
1708
- mobileChoiceCards?: {
1709
- product: {
1710
- supportTier: "Contribution";
1711
- ratePlan: "Monthly" | "Annual";
1712
- } | {
1713
- supportTier: "SupporterPlus";
1714
- ratePlan: "Monthly" | "Annual";
1715
- } | {
1716
- supportTier: "OneOff";
1717
- };
1718
- label: string;
1719
- isDefault: boolean;
1720
- benefits: {
1721
- copy: string;
1722
- }[];
1723
- benefitsLabel?: string | null | undefined;
1724
- pill?: {
1725
- copy: string;
1726
- textColour?: {
1727
- r: string;
1728
- b: string;
1729
- g: string;
1730
- kind: "hex";
1731
- } | null | undefined;
1732
- backgroundColour?: {
1733
- r: string;
1734
- b: string;
1735
- g: string;
1736
- kind: "hex";
1737
- } | null | undefined;
1738
- } | null | undefined;
1739
- destination?: "LandingPage" | "Checkout" | null | undefined;
1740
- }[] | null | undefined;
1741
- }, {
1742
- choiceCards: {
1743
- product: {
1744
- supportTier: "Contribution";
1745
- ratePlan: "Monthly" | "Annual";
1746
- } | {
1747
- supportTier: "SupporterPlus";
1748
- ratePlan: "Monthly" | "Annual";
1749
- } | {
1750
- supportTier: "OneOff";
1751
- };
1752
- label: string;
1753
- isDefault: boolean;
1754
- benefits: {
1755
- copy: string;
1756
- }[];
1757
- benefitsLabel?: string | null | undefined;
1758
- pill?: {
1759
- copy: string;
1760
- textColour?: {
1761
- r: string;
1762
- b: string;
1763
- g: string;
1764
- kind: "hex";
1765
- } | null | undefined;
1766
- backgroundColour?: {
1767
- r: string;
1768
- b: string;
1769
- g: string;
1770
- kind: "hex";
1771
- } | null | undefined;
1772
- } | null | undefined;
1773
- destination?: "LandingPage" | "Checkout" | null | undefined;
1774
- }[];
1775
- mobileChoiceCards?: {
1776
- product: {
1777
- supportTier: "Contribution";
1778
- ratePlan: "Monthly" | "Annual";
1779
- } | {
1780
- supportTier: "SupporterPlus";
1781
- ratePlan: "Monthly" | "Annual";
1782
- } | {
1783
- supportTier: "OneOff";
1784
- };
1785
- label: string;
1786
- isDefault: boolean;
1787
- benefits: {
1788
- copy: string;
1789
- }[];
1790
- benefitsLabel?: string | null | undefined;
1791
- pill?: {
1792
- copy: string;
1793
- textColour?: {
1794
- r: string;
1795
- b: string;
1796
- g: string;
1797
- kind: "hex";
1798
- } | null | undefined;
1799
- backgroundColour?: {
1800
- r: string;
1801
- b: string;
1802
- g: string;
1803
- kind: "hex";
1804
- } | null | undefined;
1805
- } | null | undefined;
1806
- destination?: "LandingPage" | "Checkout" | null | undefined;
1807
- }[] | null | undefined;
1808
- }>>>;
1809
- promoCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1810
- }, "strip", z.ZodTypeAny, {
1811
- name: string;
1812
- template: (BannerTemplate | {
1813
- designName: string;
1814
- }) & (BannerTemplate | {
1815
- designName: string;
1816
- } | undefined);
1817
- tickerSettings?: {
1818
- name: "global" | "US" | "AU";
1819
- copy: {
1820
- countLabel: string;
1821
- goalCopy?: string | undefined;
1822
- };
1823
- currencySymbol: string;
1824
- tickerData?: {
1825
- total: number;
1826
- goal: number;
1827
- } | undefined;
1828
- } | undefined;
1829
- bannerContent?: {
1830
- heading?: string | undefined;
1831
- messageText?: string | undefined;
1832
- paragraphs?: string[] | undefined;
1833
- mobileMessageText?: string | undefined;
1834
- highlightedText?: string | undefined;
1835
- cta?: {
1836
- text: string;
1837
- baseUrl: string;
1838
- } | undefined;
1839
- secondaryCta?: {
1840
- type: import("../props").SecondaryCtaType.Custom;
1841
- cta: {
1842
- text: string;
1843
- baseUrl: string;
1844
- };
1845
- } | {
1846
- type: import("../props").SecondaryCtaType.ContributionsReminder;
1847
- } | undefined;
1848
- } | undefined;
1849
- mobileBannerContent?: {
1850
- heading?: string | undefined;
1851
- messageText?: string | undefined;
1852
- paragraphs?: string[] | undefined;
1853
- mobileMessageText?: string | undefined;
1854
- highlightedText?: string | undefined;
1855
- cta?: {
1856
- text: string;
1857
- baseUrl: string;
1858
- } | undefined;
1859
- secondaryCta?: {
1860
- type: import("../props").SecondaryCtaType.Custom;
1861
- cta: {
1862
- text: string;
1863
- baseUrl: string;
1864
- };
1865
- } | {
1866
- type: import("../props").SecondaryCtaType.ContributionsReminder;
1867
- } | undefined;
1868
- } | undefined;
1869
- separateArticleCount?: boolean | undefined;
1870
- separateArticleCountSettings?: {
1871
- type: "above";
1872
- copy?: string | undefined;
1873
- countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
1874
- } | undefined;
1875
- choiceCardsSettings?: {
1876
- choiceCards: {
1877
- product: {
1878
- supportTier: "Contribution";
1879
- ratePlan: "Monthly" | "Annual";
1880
- } | {
1881
- supportTier: "SupporterPlus";
1882
- ratePlan: "Monthly" | "Annual";
1883
- } | {
1884
- supportTier: "OneOff";
1885
- };
1886
- label: string;
1887
- isDefault: boolean;
1888
- benefits: {
1889
- copy: string;
1890
- }[];
1891
- benefitsLabel?: string | null | undefined;
1892
- pill?: {
1893
- copy: string;
1894
- textColour?: {
1895
- r: string;
1896
- b: string;
1897
- g: string;
1898
- kind: "hex";
1899
- } | null | undefined;
1900
- backgroundColour?: {
1901
- r: string;
1902
- b: string;
1903
- g: string;
1904
- kind: "hex";
1905
- } | null | undefined;
1906
- } | null | undefined;
1907
- destination?: "LandingPage" | "Checkout" | null | undefined;
1908
- }[];
1909
- mobileChoiceCards?: {
1910
- product: {
1911
- supportTier: "Contribution";
1912
- ratePlan: "Monthly" | "Annual";
1913
- } | {
1914
- supportTier: "SupporterPlus";
1915
- ratePlan: "Monthly" | "Annual";
1916
- } | {
1917
- supportTier: "OneOff";
1918
- };
1919
- label: string;
1920
- isDefault: boolean;
1921
- benefits: {
1922
- copy: string;
1923
- }[];
1924
- benefitsLabel?: string | null | undefined;
1925
- pill?: {
1926
- copy: string;
1927
- textColour?: {
1928
- r: string;
1929
- b: string;
1930
- g: string;
1931
- kind: "hex";
1932
- } | null | undefined;
1933
- backgroundColour?: {
1934
- r: string;
1935
- b: string;
1936
- g: string;
1937
- kind: "hex";
1938
- } | null | undefined;
1939
- } | null | undefined;
1940
- destination?: "LandingPage" | "Checkout" | null | undefined;
1941
- }[] | null | undefined;
1942
- } | null | undefined;
1943
- promoCodes?: string[] | null | undefined;
1944
- }, {
1945
- name: string;
1946
- template: (BannerTemplate | {
1947
- designName: string;
1948
- }) & (BannerTemplate | {
1949
- designName: string;
1950
- } | undefined);
1951
- tickerSettings?: {
1952
- name: "global" | "US" | "AU";
1953
- copy: {
1954
- countLabel: string;
1955
- goalCopy?: string | undefined;
1956
- };
1957
- currencySymbol: string;
1958
- tickerData?: {
1959
- total: number;
1960
- goal: number;
1961
- } | undefined;
1962
- } | undefined;
1963
- bannerContent?: {
1964
- heading?: string | undefined;
1965
- messageText?: string | undefined;
1966
- paragraphs?: string[] | undefined;
1967
- mobileMessageText?: string | undefined;
1968
- highlightedText?: string | undefined;
1969
- cta?: {
1970
- text: string;
1971
- baseUrl: string;
1972
- } | undefined;
1973
- secondaryCta?: {
1974
- type: import("../props").SecondaryCtaType.Custom;
1975
- cta: {
1976
- text: string;
1977
- baseUrl: string;
1978
- };
1979
- } | {
1980
- type: import("../props").SecondaryCtaType.ContributionsReminder;
1981
- } | undefined;
1982
- } | undefined;
1983
- mobileBannerContent?: {
1984
- heading?: string | undefined;
1985
- messageText?: string | undefined;
1986
- paragraphs?: string[] | undefined;
1987
- mobileMessageText?: string | undefined;
1988
- highlightedText?: string | undefined;
1989
- cta?: {
1990
- text: string;
1991
- baseUrl: string;
1992
- } | undefined;
1993
- secondaryCta?: {
1994
- type: import("../props").SecondaryCtaType.Custom;
1995
- cta: {
1996
- text: string;
1997
- baseUrl: string;
1998
- };
1999
- } | {
2000
- type: import("../props").SecondaryCtaType.ContributionsReminder;
2001
- } | undefined;
2002
- } | undefined;
2003
- separateArticleCount?: boolean | undefined;
2004
- separateArticleCountSettings?: {
2005
- type: "above";
2006
- copy?: string | undefined;
2007
- countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
2008
- } | undefined;
2009
- choiceCardsSettings?: {
2010
- choiceCards: {
2011
- product: {
2012
- supportTier: "Contribution";
2013
- ratePlan: "Monthly" | "Annual";
2014
- } | {
2015
- supportTier: "SupporterPlus";
2016
- ratePlan: "Monthly" | "Annual";
2017
- } | {
2018
- supportTier: "OneOff";
2019
- };
2020
- label: string;
2021
- isDefault: boolean;
2022
- benefits: {
2023
- copy: string;
2024
- }[];
2025
- benefitsLabel?: string | null | undefined;
2026
- pill?: {
2027
- copy: string;
2028
- textColour?: {
2029
- r: string;
2030
- b: string;
2031
- g: string;
2032
- kind: "hex";
2033
- } | null | undefined;
2034
- backgroundColour?: {
2035
- r: string;
2036
- b: string;
2037
- g: string;
2038
- kind: "hex";
2039
- } | null | undefined;
2040
- } | null | undefined;
2041
- destination?: "LandingPage" | "Checkout" | null | undefined;
2042
- }[];
2043
- mobileChoiceCards?: {
2044
- product: {
2045
- supportTier: "Contribution";
2046
- ratePlan: "Monthly" | "Annual";
2047
- } | {
2048
- supportTier: "SupporterPlus";
2049
- ratePlan: "Monthly" | "Annual";
2050
- } | {
2051
- supportTier: "OneOff";
2052
- };
2053
- label: string;
2054
- isDefault: boolean;
2055
- benefits: {
2056
- copy: string;
2057
- }[];
2058
- benefitsLabel?: string | null | undefined;
2059
- pill?: {
2060
- copy: string;
2061
- textColour?: {
2062
- r: string;
2063
- b: string;
2064
- g: string;
2065
- kind: "hex";
2066
- } | null | undefined;
2067
- backgroundColour?: {
2068
- r: string;
2069
- b: string;
2070
- g: string;
2071
- kind: "hex";
2072
- } | null | undefined;
2073
- } | null | undefined;
2074
- destination?: "LandingPage" | "Checkout" | null | undefined;
2075
- }[] | null | undefined;
2076
- } | null | undefined;
2077
- promoCodes?: string[] | null | undefined;
2078
- }>, "many">;
401
+ }, z.core.$strip>>>;
402
+ }, z.core.$strip>>>;
403
+ destination: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"LandingPage">, z.ZodLiteral<"Checkout">]>>>;
404
+ }, z.core.$strip>>>>;
405
+ }, z.core.$strip>>>;
406
+ promoCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
407
+ }, z.core.$strip>>;
2079
408
  articlesViewedSettings: z.ZodOptional<z.ZodObject<{
2080
409
  minViews: z.ZodNumber;
2081
410
  maxViews: z.ZodOptional<z.ZodNumber>;
2082
411
  periodInWeeks: z.ZodNumber;
2083
- tagIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2084
- }, "strip", z.ZodTypeAny, {
2085
- minViews: number;
2086
- periodInWeeks: number;
2087
- maxViews?: number | undefined;
2088
- tagIds?: string[] | undefined;
2089
- }, {
2090
- minViews: number;
2091
- periodInWeeks: number;
2092
- maxViews?: number | undefined;
2093
- tagIds?: string[] | undefined;
2094
- }>>;
412
+ tagIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
413
+ }, z.core.$strip>>;
2095
414
  deploySchedule: z.ZodOptional<z.ZodObject<{
2096
415
  daysBetween: z.ZodNumber;
2097
- }, "strip", z.ZodTypeAny, {
2098
- daysBetween: number;
2099
- }, {
2100
- daysBetween: number;
2101
- }>>;
416
+ }, z.core.$strip>>;
2102
417
  frontsOnly: z.ZodOptional<z.ZodBoolean>;
2103
- }, "strip", z.ZodTypeAny, {
2104
- name: string;
2105
- channel: "Epic" | "EpicAppleNews" | "EpicLiveblog" | "Banner1" | "Banner2" | "Header" | "GutterLiveblog";
2106
- priority: number;
2107
- status: "Live" | "Draft" | "Archived";
2108
- userCohort: "AllExistingSupporters" | "AllNonSupporters" | "Everyone" | "PostAskPauseSingleContributors";
2109
- variants: {
2110
- name: string;
2111
- template: (BannerTemplate | {
2112
- designName: string;
2113
- }) & (BannerTemplate | {
2114
- designName: string;
2115
- } | undefined);
2116
- tickerSettings?: {
2117
- name: "global" | "US" | "AU";
2118
- copy: {
2119
- countLabel: string;
2120
- goalCopy?: string | undefined;
2121
- };
2122
- currencySymbol: string;
2123
- tickerData?: {
2124
- total: number;
2125
- goal: number;
2126
- } | undefined;
2127
- } | undefined;
2128
- bannerContent?: {
2129
- heading?: string | undefined;
2130
- messageText?: string | undefined;
2131
- paragraphs?: string[] | undefined;
2132
- mobileMessageText?: string | undefined;
2133
- highlightedText?: string | undefined;
2134
- cta?: {
2135
- text: string;
2136
- baseUrl: string;
2137
- } | undefined;
2138
- secondaryCta?: {
2139
- type: import("../props").SecondaryCtaType.Custom;
2140
- cta: {
2141
- text: string;
2142
- baseUrl: string;
2143
- };
2144
- } | {
2145
- type: import("../props").SecondaryCtaType.ContributionsReminder;
2146
- } | undefined;
2147
- } | undefined;
2148
- mobileBannerContent?: {
2149
- heading?: string | undefined;
2150
- messageText?: string | undefined;
2151
- paragraphs?: string[] | undefined;
2152
- mobileMessageText?: string | undefined;
2153
- highlightedText?: string | undefined;
2154
- cta?: {
2155
- text: string;
2156
- baseUrl: string;
2157
- } | undefined;
2158
- secondaryCta?: {
2159
- type: import("../props").SecondaryCtaType.Custom;
2160
- cta: {
2161
- text: string;
2162
- baseUrl: string;
2163
- };
2164
- } | {
2165
- type: import("../props").SecondaryCtaType.ContributionsReminder;
2166
- } | undefined;
2167
- } | undefined;
2168
- separateArticleCount?: boolean | undefined;
2169
- separateArticleCountSettings?: {
2170
- type: "above";
2171
- copy?: string | undefined;
2172
- countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
2173
- } | undefined;
2174
- choiceCardsSettings?: {
2175
- choiceCards: {
2176
- product: {
2177
- supportTier: "Contribution";
2178
- ratePlan: "Monthly" | "Annual";
2179
- } | {
2180
- supportTier: "SupporterPlus";
2181
- ratePlan: "Monthly" | "Annual";
2182
- } | {
2183
- supportTier: "OneOff";
2184
- };
2185
- label: string;
2186
- isDefault: boolean;
2187
- benefits: {
2188
- copy: string;
2189
- }[];
2190
- benefitsLabel?: string | null | undefined;
2191
- pill?: {
2192
- copy: string;
2193
- textColour?: {
2194
- r: string;
2195
- b: string;
2196
- g: string;
2197
- kind: "hex";
2198
- } | null | undefined;
2199
- backgroundColour?: {
2200
- r: string;
2201
- b: string;
2202
- g: string;
2203
- kind: "hex";
2204
- } | null | undefined;
2205
- } | null | undefined;
2206
- destination?: "LandingPage" | "Checkout" | null | undefined;
2207
- }[];
2208
- mobileChoiceCards?: {
2209
- product: {
2210
- supportTier: "Contribution";
2211
- ratePlan: "Monthly" | "Annual";
2212
- } | {
2213
- supportTier: "SupporterPlus";
2214
- ratePlan: "Monthly" | "Annual";
2215
- } | {
2216
- supportTier: "OneOff";
2217
- };
2218
- label: string;
2219
- isDefault: boolean;
2220
- benefits: {
2221
- copy: string;
2222
- }[];
2223
- benefitsLabel?: string | null | undefined;
2224
- pill?: {
2225
- copy: string;
2226
- textColour?: {
2227
- r: string;
2228
- b: string;
2229
- g: string;
2230
- kind: "hex";
2231
- } | null | undefined;
2232
- backgroundColour?: {
2233
- r: string;
2234
- b: string;
2235
- g: string;
2236
- kind: "hex";
2237
- } | null | undefined;
2238
- } | null | undefined;
2239
- destination?: "LandingPage" | "Checkout" | null | undefined;
2240
- }[] | null | undefined;
2241
- } | null | undefined;
2242
- promoCodes?: string[] | null | undefined;
2243
- }[];
2244
- contextTargeting: {
2245
- tagIds: string[];
2246
- sectionIds: string[];
2247
- excludedTagIds: string[];
2248
- excludedSectionIds: string[];
2249
- };
2250
- controlProportionSettings?: {
2251
- offset: number;
2252
- proportion: number;
2253
- } | undefined;
2254
- deviceType?: "Mobile" | "Desktop" | "All" | "iOS" | "Android" | undefined;
2255
- signedInStatus?: "All" | "SignedIn" | "SignedOut" | undefined;
2256
- consentStatus?: "All" | "HasConsented" | "HasNotConsented" | undefined;
2257
- methodologies?: (({
2258
- name: "ABTest";
2259
- } | {
2260
- name: "EpsilonGreedyBandit";
2261
- epsilon: number;
2262
- sampleCount?: number | undefined;
2263
- } | {
2264
- name: "Roulette";
2265
- sampleCount?: number | undefined;
2266
- }) & {
2267
- testName?: string | undefined;
2268
- })[] | undefined;
2269
- locations?: ("GBPCountries" | "UnitedStates" | "AUDCountries" | "EURCountries" | "International" | "NZDCountries" | "Canada")[] | undefined;
2270
- regionTargeting?: {
2271
- targetedCountryGroups: ("GBPCountries" | "UnitedStates" | "AUDCountries" | "EURCountries" | "International" | "NZDCountries" | "Canada")[];
2272
- targetedCountryCodes?: string[] | undefined;
2273
- } | undefined;
2274
- articlesViewedSettings?: {
2275
- minViews: number;
2276
- periodInWeeks: number;
2277
- maxViews?: number | undefined;
2278
- tagIds?: string[] | undefined;
2279
- } | undefined;
2280
- deploySchedule?: {
2281
- daysBetween: number;
2282
- } | undefined;
2283
- frontsOnly?: boolean | undefined;
2284
- }, {
2285
- name: string;
2286
- channel: "Epic" | "EpicAppleNews" | "EpicLiveblog" | "Banner1" | "Banner2" | "Header" | "GutterLiveblog";
2287
- priority: number;
2288
- status: "Live" | "Draft" | "Archived";
2289
- userCohort: "AllExistingSupporters" | "AllNonSupporters" | "Everyone" | "PostAskPauseSingleContributors";
2290
- variants: {
2291
- name: string;
2292
- template: (BannerTemplate | {
2293
- designName: string;
2294
- }) & (BannerTemplate | {
2295
- designName: string;
2296
- } | undefined);
2297
- tickerSettings?: {
2298
- name: "global" | "US" | "AU";
2299
- copy: {
2300
- countLabel: string;
2301
- goalCopy?: string | undefined;
2302
- };
2303
- currencySymbol: string;
2304
- tickerData?: {
2305
- total: number;
2306
- goal: number;
2307
- } | undefined;
2308
- } | undefined;
2309
- bannerContent?: {
2310
- heading?: string | undefined;
2311
- messageText?: string | undefined;
2312
- paragraphs?: string[] | undefined;
2313
- mobileMessageText?: string | undefined;
2314
- highlightedText?: string | undefined;
2315
- cta?: {
2316
- text: string;
2317
- baseUrl: string;
2318
- } | undefined;
2319
- secondaryCta?: {
2320
- type: import("../props").SecondaryCtaType.Custom;
2321
- cta: {
2322
- text: string;
2323
- baseUrl: string;
2324
- };
2325
- } | {
2326
- type: import("../props").SecondaryCtaType.ContributionsReminder;
2327
- } | undefined;
2328
- } | undefined;
2329
- mobileBannerContent?: {
2330
- heading?: string | undefined;
2331
- messageText?: string | undefined;
2332
- paragraphs?: string[] | undefined;
2333
- mobileMessageText?: string | undefined;
2334
- highlightedText?: string | undefined;
2335
- cta?: {
2336
- text: string;
2337
- baseUrl: string;
2338
- } | undefined;
2339
- secondaryCta?: {
2340
- type: import("../props").SecondaryCtaType.Custom;
2341
- cta: {
2342
- text: string;
2343
- baseUrl: string;
2344
- };
2345
- } | {
2346
- type: import("../props").SecondaryCtaType.ContributionsReminder;
2347
- } | undefined;
2348
- } | undefined;
2349
- separateArticleCount?: boolean | undefined;
2350
- separateArticleCountSettings?: {
2351
- type: "above";
2352
- copy?: string | undefined;
2353
- countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
2354
- } | undefined;
2355
- choiceCardsSettings?: {
2356
- choiceCards: {
2357
- product: {
2358
- supportTier: "Contribution";
2359
- ratePlan: "Monthly" | "Annual";
2360
- } | {
2361
- supportTier: "SupporterPlus";
2362
- ratePlan: "Monthly" | "Annual";
2363
- } | {
2364
- supportTier: "OneOff";
2365
- };
2366
- label: string;
2367
- isDefault: boolean;
2368
- benefits: {
2369
- copy: string;
2370
- }[];
2371
- benefitsLabel?: string | null | undefined;
2372
- pill?: {
2373
- copy: string;
2374
- textColour?: {
2375
- r: string;
2376
- b: string;
2377
- g: string;
2378
- kind: "hex";
2379
- } | null | undefined;
2380
- backgroundColour?: {
2381
- r: string;
2382
- b: string;
2383
- g: string;
2384
- kind: "hex";
2385
- } | null | undefined;
2386
- } | null | undefined;
2387
- destination?: "LandingPage" | "Checkout" | null | undefined;
2388
- }[];
2389
- mobileChoiceCards?: {
2390
- product: {
2391
- supportTier: "Contribution";
2392
- ratePlan: "Monthly" | "Annual";
2393
- } | {
2394
- supportTier: "SupporterPlus";
2395
- ratePlan: "Monthly" | "Annual";
2396
- } | {
2397
- supportTier: "OneOff";
2398
- };
2399
- label: string;
2400
- isDefault: boolean;
2401
- benefits: {
2402
- copy: string;
2403
- }[];
2404
- benefitsLabel?: string | null | undefined;
2405
- pill?: {
2406
- copy: string;
2407
- textColour?: {
2408
- r: string;
2409
- b: string;
2410
- g: string;
2411
- kind: "hex";
2412
- } | null | undefined;
2413
- backgroundColour?: {
2414
- r: string;
2415
- b: string;
2416
- g: string;
2417
- kind: "hex";
2418
- } | null | undefined;
2419
- } | null | undefined;
2420
- destination?: "LandingPage" | "Checkout" | null | undefined;
2421
- }[] | null | undefined;
2422
- } | null | undefined;
2423
- promoCodes?: string[] | null | undefined;
2424
- }[];
2425
- contextTargeting: {
2426
- tagIds: string[];
2427
- sectionIds: string[];
2428
- excludedTagIds: string[];
2429
- excludedSectionIds: string[];
2430
- };
2431
- controlProportionSettings?: {
2432
- offset: number;
2433
- proportion: number;
2434
- } | undefined;
2435
- deviceType?: "Mobile" | "Desktop" | "All" | "iOS" | "Android" | undefined;
2436
- signedInStatus?: "All" | "SignedIn" | "SignedOut" | undefined;
2437
- consentStatus?: "All" | "HasConsented" | "HasNotConsented" | undefined;
2438
- methodologies?: (({
2439
- name: "ABTest";
2440
- } | {
2441
- name: "EpsilonGreedyBandit";
2442
- epsilon: number;
2443
- sampleCount?: number | undefined;
2444
- } | {
2445
- name: "Roulette";
2446
- sampleCount?: number | undefined;
2447
- }) & {
2448
- testName?: string | undefined;
2449
- })[] | undefined;
2450
- locations?: ("GBPCountries" | "UnitedStates" | "AUDCountries" | "EURCountries" | "International" | "NZDCountries" | "Canada")[] | undefined;
2451
- regionTargeting?: {
2452
- targetedCountryGroups: ("GBPCountries" | "UnitedStates" | "AUDCountries" | "EURCountries" | "International" | "NZDCountries" | "Canada")[];
2453
- targetedCountryCodes?: string[] | undefined;
2454
- } | undefined;
2455
- articlesViewedSettings?: {
2456
- minViews: number;
2457
- periodInWeeks: number;
2458
- maxViews?: number | undefined;
2459
- tagIds?: string[] | undefined;
2460
- } | undefined;
2461
- deploySchedule?: {
2462
- daysBetween: number;
2463
- } | undefined;
2464
- frontsOnly?: boolean | undefined;
2465
- }>;
418
+ }, z.core.$strip>;
2466
419
  export type BannerTestFromTool = z.infer<typeof bannerTestFromToolSchema>;
2467
420
  export type BannerDesignFromTool = {
2468
421
  name: string;