@guardian/support-dotcom-components 1.1.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/shared/src/types/abTests/banner.d.ts +971 -29
- package/dist/shared/src/types/abTests/banner.d.ts.map +1 -1
- package/dist/shared/src/types/abTests/epic.d.ts +36 -15
- package/dist/shared/src/types/abTests/epic.d.ts.map +1 -1
- package/dist/shared/src/types/abTests/header.d.ts +444 -13
- package/dist/shared/src/types/abTests/header.d.ts.map +1 -1
- package/dist/shared/src/types/abTests/shared.d.ts +29 -7
- package/dist/shared/src/types/abTests/shared.d.ts.map +1 -1
- package/dist/shared/src/types/props/banner.d.ts +166 -80
- package/dist/shared/src/types/props/banner.d.ts.map +1 -1
- package/dist/shared/src/types/props/epic.d.ts +49 -12
- package/dist/shared/src/types/props/epic.d.ts.map +1 -1
- package/dist/shared/src/types/props/header.d.ts +98 -39
- package/dist/shared/src/types/props/header.d.ts.map +1 -1
- package/dist/shared/src/types/props/shared.d.ts +2 -2
- package/dist/shared/src/types/purchaseInfo.d.ts +8 -2
- package/dist/shared/src/types/purchaseInfo.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../../../../shared/src/types/abTests/banner.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../../../../shared/src/types/abTests/banner.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,aAAa,EAEb,kBAAkB,EAErB,MAAM,UAAU,CAAC;AAClB,OAAO,EAGH,eAAe,EAGlB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,cAAc,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,MAAM,MAAM,oBAAoB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,kBAAkB,CAAC"}
|
|
@@ -61,15 +61,15 @@ export interface AmountsTest {
|
|
|
61
61
|
variants: AmountsVariant[];
|
|
62
62
|
}
|
|
63
63
|
export type AmountsTests = AmountsTest[];
|
|
64
|
-
export type
|
|
65
|
-
export interface EpicTest extends
|
|
64
|
+
export type EpicTestFromTool = z.infer<typeof epicTestFromToolSchema>;
|
|
65
|
+
export interface EpicTest extends EpicTestFromTool {
|
|
66
66
|
hasArticleCountInCopy: boolean;
|
|
67
67
|
isSuperMode?: boolean;
|
|
68
68
|
canShow?: (targeting: EpicTargeting) => boolean;
|
|
69
69
|
campaignId?: string;
|
|
70
70
|
expiry?: string;
|
|
71
71
|
}
|
|
72
|
-
export declare const
|
|
72
|
+
export declare const epicTestFromToolSchema: z.ZodObject<{
|
|
73
73
|
controlProportionSettings: z.ZodOptional<z.ZodObject<{
|
|
74
74
|
proportion: z.ZodNumber;
|
|
75
75
|
offset: z.ZodNumber;
|
|
@@ -80,7 +80,7 @@ export declare const epicTestDBSchema: z.ZodObject<{
|
|
|
80
80
|
offset: number;
|
|
81
81
|
proportion: number;
|
|
82
82
|
}>>;
|
|
83
|
-
deviceType: z.ZodOptional<z.ZodEnum<["Mobile", "Desktop", "All"]>>;
|
|
83
|
+
deviceType: z.ZodOptional<z.ZodEnum<["Mobile", "Desktop", "All", "iOS", "Android"]>>;
|
|
84
84
|
signedInStatus: z.ZodOptional<z.ZodEnum<["SignedIn", "SignedOut", "All"]>>;
|
|
85
85
|
name: z.ZodString;
|
|
86
86
|
status: z.ZodEnum<["Live", "Draft", "Archived"]>;
|
|
@@ -227,7 +227,13 @@ export declare const epicTestDBSchema: z.ZodObject<{
|
|
|
227
227
|
}, {
|
|
228
228
|
type: import("../props").SecondaryCtaType.ContributionsReminder;
|
|
229
229
|
}>]>>;
|
|
230
|
-
|
|
230
|
+
newsletterSignup: z.ZodOptional<z.ZodObject<{
|
|
231
|
+
url: z.ZodString;
|
|
232
|
+
}, "strip", z.ZodTypeAny, {
|
|
233
|
+
url: string;
|
|
234
|
+
}, {
|
|
235
|
+
url: string;
|
|
236
|
+
}>>;
|
|
231
237
|
image: z.ZodOptional<z.ZodObject<{
|
|
232
238
|
mainUrl: z.ZodString;
|
|
233
239
|
mobileUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -269,12 +275,15 @@ export declare const epicTestDBSchema: z.ZodObject<{
|
|
|
269
275
|
separateArticleCount: z.ZodOptional<z.ZodObject<{
|
|
270
276
|
type: z.ZodLiteral<"above">;
|
|
271
277
|
copy: z.ZodOptional<z.ZodString>;
|
|
278
|
+
countType: z.ZodOptional<z.ZodEnum<["for52Weeks", "forTargetedWeeks"]>>;
|
|
272
279
|
}, "strip", z.ZodTypeAny, {
|
|
273
280
|
type: "above";
|
|
274
281
|
copy?: string | undefined;
|
|
282
|
+
countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
|
|
275
283
|
}, {
|
|
276
284
|
type: "above";
|
|
277
285
|
copy?: string | undefined;
|
|
286
|
+
countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
|
|
278
287
|
}>>;
|
|
279
288
|
maxViews: z.ZodOptional<z.ZodObject<{
|
|
280
289
|
maxViewsCount: z.ZodNumber;
|
|
@@ -501,7 +510,9 @@ export declare const epicTestDBSchema: z.ZodObject<{
|
|
|
501
510
|
} | {
|
|
502
511
|
type: import("../props").SecondaryCtaType.ContributionsReminder;
|
|
503
512
|
} | undefined;
|
|
504
|
-
|
|
513
|
+
newsletterSignup?: {
|
|
514
|
+
url: string;
|
|
515
|
+
} | undefined;
|
|
505
516
|
image?: {
|
|
506
517
|
mainUrl: string;
|
|
507
518
|
altText: string;
|
|
@@ -519,6 +530,7 @@ export declare const epicTestDBSchema: z.ZodObject<{
|
|
|
519
530
|
separateArticleCount?: {
|
|
520
531
|
type: "above";
|
|
521
532
|
copy?: string | undefined;
|
|
533
|
+
countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
|
|
522
534
|
} | undefined;
|
|
523
535
|
maxViews?: {
|
|
524
536
|
maxViewsCount: number;
|
|
@@ -597,7 +609,9 @@ export declare const epicTestDBSchema: z.ZodObject<{
|
|
|
597
609
|
} | {
|
|
598
610
|
type: import("../props").SecondaryCtaType.ContributionsReminder;
|
|
599
611
|
} | undefined;
|
|
600
|
-
|
|
612
|
+
newsletterSignup?: {
|
|
613
|
+
url: string;
|
|
614
|
+
} | undefined;
|
|
601
615
|
image?: {
|
|
602
616
|
mainUrl: string;
|
|
603
617
|
altText: string;
|
|
@@ -615,6 +629,7 @@ export declare const epicTestDBSchema: z.ZodObject<{
|
|
|
615
629
|
separateArticleCount?: {
|
|
616
630
|
type: "above";
|
|
617
631
|
copy?: string | undefined;
|
|
632
|
+
countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
|
|
618
633
|
} | undefined;
|
|
619
634
|
maxViews?: {
|
|
620
635
|
maxViewsCount: number;
|
|
@@ -665,10 +680,10 @@ export declare const epicTestDBSchema: z.ZodObject<{
|
|
|
665
680
|
priority: number;
|
|
666
681
|
name: string;
|
|
667
682
|
status: "Live" | "Draft" | "Archived";
|
|
668
|
-
locations: ("GBPCountries" | "UnitedStates" | "AUDCountries" | "EURCountries" | "International" | "NZDCountries" | "Canada")[];
|
|
669
683
|
tagIds: string[];
|
|
670
|
-
sections: string[];
|
|
671
684
|
excludedTagIds: string[];
|
|
685
|
+
locations: ("GBPCountries" | "UnitedStates" | "AUDCountries" | "EURCountries" | "International" | "NZDCountries" | "Canada")[];
|
|
686
|
+
sections: string[];
|
|
672
687
|
excludedSections: string[];
|
|
673
688
|
alwaysAsk: boolean;
|
|
674
689
|
userCohort: "AllExistingSupporters" | "AllNonSupporters" | "Everyone" | "PostAskPauseSingleContributors";
|
|
@@ -708,7 +723,9 @@ export declare const epicTestDBSchema: z.ZodObject<{
|
|
|
708
723
|
} | {
|
|
709
724
|
type: import("../props").SecondaryCtaType.ContributionsReminder;
|
|
710
725
|
} | undefined;
|
|
711
|
-
|
|
726
|
+
newsletterSignup?: {
|
|
727
|
+
url: string;
|
|
728
|
+
} | undefined;
|
|
712
729
|
image?: {
|
|
713
730
|
mainUrl: string;
|
|
714
731
|
altText: string;
|
|
@@ -726,6 +743,7 @@ export declare const epicTestDBSchema: z.ZodObject<{
|
|
|
726
743
|
separateArticleCount?: {
|
|
727
744
|
type: "above";
|
|
728
745
|
copy?: string | undefined;
|
|
746
|
+
countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
|
|
729
747
|
} | undefined;
|
|
730
748
|
maxViews?: {
|
|
731
749
|
maxViewsCount: number;
|
|
@@ -776,7 +794,7 @@ export declare const epicTestDBSchema: z.ZodObject<{
|
|
|
776
794
|
offset: number;
|
|
777
795
|
proportion: number;
|
|
778
796
|
} | undefined;
|
|
779
|
-
deviceType?: "Mobile" | "Desktop" | "All" | undefined;
|
|
797
|
+
deviceType?: "Mobile" | "Desktop" | "All" | "iOS" | "Android" | undefined;
|
|
780
798
|
signedInStatus?: "All" | "SignedIn" | "SignedOut" | undefined;
|
|
781
799
|
maxViews?: {
|
|
782
800
|
maxViewsCount: number;
|
|
@@ -793,10 +811,10 @@ export declare const epicTestDBSchema: z.ZodObject<{
|
|
|
793
811
|
priority: number;
|
|
794
812
|
name: string;
|
|
795
813
|
status: "Live" | "Draft" | "Archived";
|
|
796
|
-
locations: ("GBPCountries" | "UnitedStates" | "AUDCountries" | "EURCountries" | "International" | "NZDCountries" | "Canada")[];
|
|
797
814
|
tagIds: string[];
|
|
798
|
-
sections: string[];
|
|
799
815
|
excludedTagIds: string[];
|
|
816
|
+
locations: ("GBPCountries" | "UnitedStates" | "AUDCountries" | "EURCountries" | "International" | "NZDCountries" | "Canada")[];
|
|
817
|
+
sections: string[];
|
|
800
818
|
excludedSections: string[];
|
|
801
819
|
alwaysAsk: boolean;
|
|
802
820
|
userCohort: "AllExistingSupporters" | "AllNonSupporters" | "Everyone" | "PostAskPauseSingleContributors";
|
|
@@ -836,7 +854,9 @@ export declare const epicTestDBSchema: z.ZodObject<{
|
|
|
836
854
|
} | {
|
|
837
855
|
type: import("../props").SecondaryCtaType.ContributionsReminder;
|
|
838
856
|
} | undefined;
|
|
839
|
-
|
|
857
|
+
newsletterSignup?: {
|
|
858
|
+
url: string;
|
|
859
|
+
} | undefined;
|
|
840
860
|
image?: {
|
|
841
861
|
mainUrl: string;
|
|
842
862
|
altText: string;
|
|
@@ -854,6 +874,7 @@ export declare const epicTestDBSchema: z.ZodObject<{
|
|
|
854
874
|
separateArticleCount?: {
|
|
855
875
|
type: "above";
|
|
856
876
|
copy?: string | undefined;
|
|
877
|
+
countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
|
|
857
878
|
} | undefined;
|
|
858
879
|
maxViews?: {
|
|
859
880
|
maxViewsCount: number;
|
|
@@ -904,7 +925,7 @@ export declare const epicTestDBSchema: z.ZodObject<{
|
|
|
904
925
|
offset: number;
|
|
905
926
|
proportion: number;
|
|
906
927
|
} | undefined;
|
|
907
|
-
deviceType?: "Mobile" | "Desktop" | "All" | undefined;
|
|
928
|
+
deviceType?: "Mobile" | "Desktop" | "All" | "iOS" | "Android" | undefined;
|
|
908
929
|
signedInStatus?: "All" | "SignedIn" | "SignedOut" | undefined;
|
|
909
930
|
maxViews?: {
|
|
910
931
|
maxViewsCount: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"epic.d.ts","sourceRoot":"","sources":["../../../../../../shared/src/types/abTests/epic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAwB,MAAM,WAAW,CAAC;AAOjE,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,a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od';
|
|
2
|
+
/**
|
|
3
|
+
* Models and schemas for data from the database
|
|
4
|
+
*/
|
|
5
|
+
declare const headerVariantFromToolSchema: z.ZodObject<{
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
content: z.ZodObject<{
|
|
8
|
+
heading: z.ZodString;
|
|
9
|
+
subheading: z.ZodString;
|
|
10
|
+
primaryCta: z.ZodOptional<z.ZodObject<{
|
|
11
|
+
text: z.ZodString;
|
|
12
|
+
baseUrl: z.ZodString;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
text: string;
|
|
15
|
+
baseUrl: string;
|
|
16
|
+
}, {
|
|
17
|
+
text: string;
|
|
18
|
+
baseUrl: string;
|
|
19
|
+
}>>;
|
|
20
|
+
secondaryCta: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
text: z.ZodString;
|
|
22
|
+
baseUrl: z.ZodString;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
text: string;
|
|
25
|
+
baseUrl: string;
|
|
26
|
+
}, {
|
|
27
|
+
text: string;
|
|
28
|
+
baseUrl: string;
|
|
29
|
+
}>>;
|
|
30
|
+
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
heading: string;
|
|
33
|
+
subheading: string;
|
|
34
|
+
primaryCta?: {
|
|
35
|
+
text: string;
|
|
36
|
+
baseUrl: string;
|
|
37
|
+
} | undefined;
|
|
38
|
+
secondaryCta?: {
|
|
39
|
+
text: string;
|
|
40
|
+
baseUrl: string;
|
|
41
|
+
} | undefined;
|
|
42
|
+
benefits?: string[] | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
heading: string;
|
|
45
|
+
subheading: string;
|
|
46
|
+
primaryCta?: {
|
|
47
|
+
text: string;
|
|
48
|
+
baseUrl: string;
|
|
49
|
+
} | undefined;
|
|
50
|
+
secondaryCta?: {
|
|
51
|
+
text: string;
|
|
52
|
+
baseUrl: string;
|
|
53
|
+
} | undefined;
|
|
54
|
+
benefits?: string[] | undefined;
|
|
55
|
+
}>;
|
|
56
|
+
mobileContent: z.ZodOptional<z.ZodObject<{
|
|
57
|
+
heading: z.ZodString;
|
|
58
|
+
subheading: z.ZodString;
|
|
59
|
+
primaryCta: z.ZodOptional<z.ZodObject<{
|
|
60
|
+
text: z.ZodString;
|
|
61
|
+
baseUrl: z.ZodString;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
text: string;
|
|
64
|
+
baseUrl: string;
|
|
65
|
+
}, {
|
|
66
|
+
text: string;
|
|
67
|
+
baseUrl: string;
|
|
68
|
+
}>>;
|
|
69
|
+
secondaryCta: z.ZodOptional<z.ZodObject<{
|
|
70
|
+
text: z.ZodString;
|
|
71
|
+
baseUrl: z.ZodString;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
text: string;
|
|
74
|
+
baseUrl: string;
|
|
75
|
+
}, {
|
|
76
|
+
text: string;
|
|
77
|
+
baseUrl: string;
|
|
78
|
+
}>>;
|
|
79
|
+
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
heading: string;
|
|
82
|
+
subheading: string;
|
|
83
|
+
primaryCta?: {
|
|
84
|
+
text: string;
|
|
85
|
+
baseUrl: string;
|
|
86
|
+
} | undefined;
|
|
87
|
+
secondaryCta?: {
|
|
88
|
+
text: string;
|
|
89
|
+
baseUrl: string;
|
|
90
|
+
} | undefined;
|
|
91
|
+
benefits?: string[] | undefined;
|
|
92
|
+
}, {
|
|
93
|
+
heading: string;
|
|
94
|
+
subheading: string;
|
|
95
|
+
primaryCta?: {
|
|
96
|
+
text: string;
|
|
97
|
+
baseUrl: string;
|
|
98
|
+
} | undefined;
|
|
99
|
+
secondaryCta?: {
|
|
100
|
+
text: string;
|
|
101
|
+
baseUrl: string;
|
|
102
|
+
} | undefined;
|
|
103
|
+
benefits?: string[] | undefined;
|
|
104
|
+
}>>;
|
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
106
|
name: string;
|
|
7
|
-
content:
|
|
8
|
-
|
|
107
|
+
content: {
|
|
108
|
+
heading: string;
|
|
109
|
+
subheading: string;
|
|
110
|
+
primaryCta?: {
|
|
111
|
+
text: string;
|
|
112
|
+
baseUrl: string;
|
|
113
|
+
} | undefined;
|
|
114
|
+
secondaryCta?: {
|
|
115
|
+
text: string;
|
|
116
|
+
baseUrl: string;
|
|
117
|
+
} | undefined;
|
|
118
|
+
benefits?: string[] | undefined;
|
|
119
|
+
};
|
|
120
|
+
mobileContent?: {
|
|
121
|
+
heading: string;
|
|
122
|
+
subheading: string;
|
|
123
|
+
primaryCta?: {
|
|
124
|
+
text: string;
|
|
125
|
+
baseUrl: string;
|
|
126
|
+
} | undefined;
|
|
127
|
+
secondaryCta?: {
|
|
128
|
+
text: string;
|
|
129
|
+
baseUrl: string;
|
|
130
|
+
} | undefined;
|
|
131
|
+
benefits?: string[] | undefined;
|
|
132
|
+
} | undefined;
|
|
133
|
+
}, {
|
|
134
|
+
name: string;
|
|
135
|
+
content: {
|
|
136
|
+
heading: string;
|
|
137
|
+
subheading: string;
|
|
138
|
+
primaryCta?: {
|
|
139
|
+
text: string;
|
|
140
|
+
baseUrl: string;
|
|
141
|
+
} | undefined;
|
|
142
|
+
secondaryCta?: {
|
|
143
|
+
text: string;
|
|
144
|
+
baseUrl: string;
|
|
145
|
+
} | undefined;
|
|
146
|
+
benefits?: string[] | undefined;
|
|
147
|
+
};
|
|
148
|
+
mobileContent?: {
|
|
149
|
+
heading: string;
|
|
150
|
+
subheading: string;
|
|
151
|
+
primaryCta?: {
|
|
152
|
+
text: string;
|
|
153
|
+
baseUrl: string;
|
|
154
|
+
} | undefined;
|
|
155
|
+
secondaryCta?: {
|
|
156
|
+
text: string;
|
|
157
|
+
baseUrl: string;
|
|
158
|
+
} | undefined;
|
|
159
|
+
benefits?: string[] | undefined;
|
|
160
|
+
} | undefined;
|
|
161
|
+
}>;
|
|
162
|
+
export type HeaderVariantFromTool = z.infer<typeof headerVariantFromToolSchema>;
|
|
163
|
+
export declare const headerTestFromToolSchema: z.ZodObject<{
|
|
164
|
+
priority: z.ZodNumber;
|
|
165
|
+
name: z.ZodString;
|
|
166
|
+
status: z.ZodEnum<["Live", "Draft", "Archived"]>;
|
|
167
|
+
controlProportionSettings: z.ZodOptional<z.ZodObject<{
|
|
168
|
+
proportion: z.ZodNumber;
|
|
169
|
+
offset: z.ZodNumber;
|
|
170
|
+
}, "strip", z.ZodTypeAny, {
|
|
171
|
+
offset: number;
|
|
172
|
+
proportion: number;
|
|
173
|
+
}, {
|
|
174
|
+
offset: number;
|
|
175
|
+
proportion: number;
|
|
176
|
+
}>>;
|
|
177
|
+
deviceType: z.ZodOptional<z.ZodEnum<["Mobile", "Desktop", "All", "iOS", "Android"]>>;
|
|
178
|
+
signedInStatus: z.ZodOptional<z.ZodEnum<["SignedIn", "SignedOut", "All"]>>;
|
|
179
|
+
locations: z.ZodArray<z.ZodEnum<["GBPCountries", "UnitedStates", "AUDCountries", "EURCountries", "International", "NZDCountries", "Canada"]>, "many">;
|
|
180
|
+
userCohort: z.ZodEnum<["AllExistingSupporters", "AllNonSupporters", "Everyone", "PostAskPauseSingleContributors"]>;
|
|
181
|
+
purchaseInfo: z.ZodOptional<z.ZodObject<{
|
|
182
|
+
userType: z.ZodArray<z.ZodEnum<["new", "guest", "current"]>, "many">;
|
|
183
|
+
product: z.ZodArray<z.ZodEnum<["Contribution", "SupporterPlus", "GuardianWeekly", "Paper"]>, "many">;
|
|
184
|
+
}, "strip", z.ZodTypeAny, {
|
|
185
|
+
product: ("Contribution" | "SupporterPlus" | "GuardianWeekly" | "Paper")[];
|
|
186
|
+
userType: ("new" | "guest" | "current")[];
|
|
187
|
+
}, {
|
|
188
|
+
product: ("Contribution" | "SupporterPlus" | "GuardianWeekly" | "Paper")[];
|
|
189
|
+
userType: ("new" | "guest" | "current")[];
|
|
190
|
+
}>>;
|
|
191
|
+
variants: z.ZodArray<z.ZodObject<{
|
|
192
|
+
name: z.ZodString;
|
|
193
|
+
content: z.ZodObject<{
|
|
194
|
+
heading: z.ZodString;
|
|
195
|
+
subheading: z.ZodString;
|
|
196
|
+
primaryCta: z.ZodOptional<z.ZodObject<{
|
|
197
|
+
text: z.ZodString;
|
|
198
|
+
baseUrl: z.ZodString;
|
|
199
|
+
}, "strip", z.ZodTypeAny, {
|
|
200
|
+
text: string;
|
|
201
|
+
baseUrl: string;
|
|
202
|
+
}, {
|
|
203
|
+
text: string;
|
|
204
|
+
baseUrl: string;
|
|
205
|
+
}>>;
|
|
206
|
+
secondaryCta: z.ZodOptional<z.ZodObject<{
|
|
207
|
+
text: z.ZodString;
|
|
208
|
+
baseUrl: z.ZodString;
|
|
209
|
+
}, "strip", z.ZodTypeAny, {
|
|
210
|
+
text: string;
|
|
211
|
+
baseUrl: string;
|
|
212
|
+
}, {
|
|
213
|
+
text: string;
|
|
214
|
+
baseUrl: string;
|
|
215
|
+
}>>;
|
|
216
|
+
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
217
|
+
}, "strip", z.ZodTypeAny, {
|
|
218
|
+
heading: string;
|
|
219
|
+
subheading: string;
|
|
220
|
+
primaryCta?: {
|
|
221
|
+
text: string;
|
|
222
|
+
baseUrl: string;
|
|
223
|
+
} | undefined;
|
|
224
|
+
secondaryCta?: {
|
|
225
|
+
text: string;
|
|
226
|
+
baseUrl: string;
|
|
227
|
+
} | undefined;
|
|
228
|
+
benefits?: string[] | undefined;
|
|
229
|
+
}, {
|
|
230
|
+
heading: string;
|
|
231
|
+
subheading: string;
|
|
232
|
+
primaryCta?: {
|
|
233
|
+
text: string;
|
|
234
|
+
baseUrl: string;
|
|
235
|
+
} | undefined;
|
|
236
|
+
secondaryCta?: {
|
|
237
|
+
text: string;
|
|
238
|
+
baseUrl: string;
|
|
239
|
+
} | undefined;
|
|
240
|
+
benefits?: string[] | undefined;
|
|
241
|
+
}>;
|
|
242
|
+
mobileContent: z.ZodOptional<z.ZodObject<{
|
|
243
|
+
heading: z.ZodString;
|
|
244
|
+
subheading: z.ZodString;
|
|
245
|
+
primaryCta: z.ZodOptional<z.ZodObject<{
|
|
246
|
+
text: z.ZodString;
|
|
247
|
+
baseUrl: z.ZodString;
|
|
248
|
+
}, "strip", z.ZodTypeAny, {
|
|
249
|
+
text: string;
|
|
250
|
+
baseUrl: string;
|
|
251
|
+
}, {
|
|
252
|
+
text: string;
|
|
253
|
+
baseUrl: string;
|
|
254
|
+
}>>;
|
|
255
|
+
secondaryCta: z.ZodOptional<z.ZodObject<{
|
|
256
|
+
text: z.ZodString;
|
|
257
|
+
baseUrl: z.ZodString;
|
|
258
|
+
}, "strip", z.ZodTypeAny, {
|
|
259
|
+
text: string;
|
|
260
|
+
baseUrl: string;
|
|
261
|
+
}, {
|
|
262
|
+
text: string;
|
|
263
|
+
baseUrl: string;
|
|
264
|
+
}>>;
|
|
265
|
+
benefits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
266
|
+
}, "strip", z.ZodTypeAny, {
|
|
267
|
+
heading: string;
|
|
268
|
+
subheading: string;
|
|
269
|
+
primaryCta?: {
|
|
270
|
+
text: string;
|
|
271
|
+
baseUrl: string;
|
|
272
|
+
} | undefined;
|
|
273
|
+
secondaryCta?: {
|
|
274
|
+
text: string;
|
|
275
|
+
baseUrl: string;
|
|
276
|
+
} | undefined;
|
|
277
|
+
benefits?: string[] | undefined;
|
|
278
|
+
}, {
|
|
279
|
+
heading: string;
|
|
280
|
+
subheading: string;
|
|
281
|
+
primaryCta?: {
|
|
282
|
+
text: string;
|
|
283
|
+
baseUrl: string;
|
|
284
|
+
} | undefined;
|
|
285
|
+
secondaryCta?: {
|
|
286
|
+
text: string;
|
|
287
|
+
baseUrl: string;
|
|
288
|
+
} | undefined;
|
|
289
|
+
benefits?: string[] | undefined;
|
|
290
|
+
}>>;
|
|
291
|
+
}, "strip", z.ZodTypeAny, {
|
|
292
|
+
name: string;
|
|
293
|
+
content: {
|
|
294
|
+
heading: string;
|
|
295
|
+
subheading: string;
|
|
296
|
+
primaryCta?: {
|
|
297
|
+
text: string;
|
|
298
|
+
baseUrl: string;
|
|
299
|
+
} | undefined;
|
|
300
|
+
secondaryCta?: {
|
|
301
|
+
text: string;
|
|
302
|
+
baseUrl: string;
|
|
303
|
+
} | undefined;
|
|
304
|
+
benefits?: string[] | undefined;
|
|
305
|
+
};
|
|
306
|
+
mobileContent?: {
|
|
307
|
+
heading: string;
|
|
308
|
+
subheading: string;
|
|
309
|
+
primaryCta?: {
|
|
310
|
+
text: string;
|
|
311
|
+
baseUrl: string;
|
|
312
|
+
} | undefined;
|
|
313
|
+
secondaryCta?: {
|
|
314
|
+
text: string;
|
|
315
|
+
baseUrl: string;
|
|
316
|
+
} | undefined;
|
|
317
|
+
benefits?: string[] | undefined;
|
|
318
|
+
} | undefined;
|
|
319
|
+
}, {
|
|
320
|
+
name: string;
|
|
321
|
+
content: {
|
|
322
|
+
heading: string;
|
|
323
|
+
subheading: string;
|
|
324
|
+
primaryCta?: {
|
|
325
|
+
text: string;
|
|
326
|
+
baseUrl: string;
|
|
327
|
+
} | undefined;
|
|
328
|
+
secondaryCta?: {
|
|
329
|
+
text: string;
|
|
330
|
+
baseUrl: string;
|
|
331
|
+
} | undefined;
|
|
332
|
+
benefits?: string[] | undefined;
|
|
333
|
+
};
|
|
334
|
+
mobileContent?: {
|
|
335
|
+
heading: string;
|
|
336
|
+
subheading: string;
|
|
337
|
+
primaryCta?: {
|
|
338
|
+
text: string;
|
|
339
|
+
baseUrl: string;
|
|
340
|
+
} | undefined;
|
|
341
|
+
secondaryCta?: {
|
|
342
|
+
text: string;
|
|
343
|
+
baseUrl: string;
|
|
344
|
+
} | undefined;
|
|
345
|
+
benefits?: string[] | undefined;
|
|
346
|
+
} | undefined;
|
|
347
|
+
}>, "many">;
|
|
348
|
+
}, "strip", z.ZodTypeAny, {
|
|
349
|
+
priority: number;
|
|
350
|
+
name: string;
|
|
351
|
+
status: "Live" | "Draft" | "Archived";
|
|
352
|
+
locations: ("GBPCountries" | "UnitedStates" | "AUDCountries" | "EURCountries" | "International" | "NZDCountries" | "Canada")[];
|
|
353
|
+
userCohort: "AllExistingSupporters" | "AllNonSupporters" | "Everyone" | "PostAskPauseSingleContributors";
|
|
354
|
+
variants: {
|
|
355
|
+
name: string;
|
|
356
|
+
content: {
|
|
357
|
+
heading: string;
|
|
358
|
+
subheading: string;
|
|
359
|
+
primaryCta?: {
|
|
360
|
+
text: string;
|
|
361
|
+
baseUrl: string;
|
|
362
|
+
} | undefined;
|
|
363
|
+
secondaryCta?: {
|
|
364
|
+
text: string;
|
|
365
|
+
baseUrl: string;
|
|
366
|
+
} | undefined;
|
|
367
|
+
benefits?: string[] | undefined;
|
|
368
|
+
};
|
|
369
|
+
mobileContent?: {
|
|
370
|
+
heading: string;
|
|
371
|
+
subheading: string;
|
|
372
|
+
primaryCta?: {
|
|
373
|
+
text: string;
|
|
374
|
+
baseUrl: string;
|
|
375
|
+
} | undefined;
|
|
376
|
+
secondaryCta?: {
|
|
377
|
+
text: string;
|
|
378
|
+
baseUrl: string;
|
|
379
|
+
} | undefined;
|
|
380
|
+
benefits?: string[] | undefined;
|
|
381
|
+
} | undefined;
|
|
382
|
+
}[];
|
|
383
|
+
controlProportionSettings?: {
|
|
384
|
+
offset: number;
|
|
385
|
+
proportion: number;
|
|
386
|
+
} | undefined;
|
|
387
|
+
deviceType?: "Mobile" | "Desktop" | "All" | "iOS" | "Android" | undefined;
|
|
388
|
+
signedInStatus?: "All" | "SignedIn" | "SignedOut" | undefined;
|
|
389
|
+
purchaseInfo?: {
|
|
390
|
+
product: ("Contribution" | "SupporterPlus" | "GuardianWeekly" | "Paper")[];
|
|
391
|
+
userType: ("new" | "guest" | "current")[];
|
|
392
|
+
} | undefined;
|
|
393
|
+
}, {
|
|
394
|
+
priority: number;
|
|
395
|
+
name: string;
|
|
396
|
+
status: "Live" | "Draft" | "Archived";
|
|
397
|
+
locations: ("GBPCountries" | "UnitedStates" | "AUDCountries" | "EURCountries" | "International" | "NZDCountries" | "Canada")[];
|
|
398
|
+
userCohort: "AllExistingSupporters" | "AllNonSupporters" | "Everyone" | "PostAskPauseSingleContributors";
|
|
399
|
+
variants: {
|
|
400
|
+
name: string;
|
|
401
|
+
content: {
|
|
402
|
+
heading: string;
|
|
403
|
+
subheading: string;
|
|
404
|
+
primaryCta?: {
|
|
405
|
+
text: string;
|
|
406
|
+
baseUrl: string;
|
|
407
|
+
} | undefined;
|
|
408
|
+
secondaryCta?: {
|
|
409
|
+
text: string;
|
|
410
|
+
baseUrl: string;
|
|
411
|
+
} | undefined;
|
|
412
|
+
benefits?: string[] | undefined;
|
|
413
|
+
};
|
|
414
|
+
mobileContent?: {
|
|
415
|
+
heading: string;
|
|
416
|
+
subheading: string;
|
|
417
|
+
primaryCta?: {
|
|
418
|
+
text: string;
|
|
419
|
+
baseUrl: string;
|
|
420
|
+
} | undefined;
|
|
421
|
+
secondaryCta?: {
|
|
422
|
+
text: string;
|
|
423
|
+
baseUrl: string;
|
|
424
|
+
} | undefined;
|
|
425
|
+
benefits?: string[] | undefined;
|
|
426
|
+
} | undefined;
|
|
427
|
+
}[];
|
|
428
|
+
controlProportionSettings?: {
|
|
429
|
+
offset: number;
|
|
430
|
+
proportion: number;
|
|
431
|
+
} | undefined;
|
|
432
|
+
deviceType?: "Mobile" | "Desktop" | "All" | "iOS" | "Android" | undefined;
|
|
433
|
+
signedInStatus?: "All" | "SignedIn" | "SignedOut" | undefined;
|
|
434
|
+
purchaseInfo?: {
|
|
435
|
+
product: ("Contribution" | "SupporterPlus" | "GuardianWeekly" | "Paper")[];
|
|
436
|
+
userType: ("new" | "guest" | "current")[];
|
|
437
|
+
} | undefined;
|
|
438
|
+
}>;
|
|
439
|
+
export type HeaderTestFromTool = z.infer<typeof headerTestFromToolSchema>;
|
|
440
|
+
/**
|
|
441
|
+
* Models with additional properties determined by the server
|
|
442
|
+
*/
|
|
443
|
+
export interface HeaderVariant extends HeaderVariantFromTool {
|
|
9
444
|
modulePathBuilder?: (version?: string) => string;
|
|
10
445
|
moduleName?: string;
|
|
11
446
|
}
|
|
12
|
-
export interface HeaderTest extends
|
|
13
|
-
name: string;
|
|
14
|
-
status: TestStatus;
|
|
15
|
-
locations: CountryGroupId[];
|
|
16
|
-
userCohort: UserCohort;
|
|
17
|
-
purchaseInfo?: PurchaseInfoTest;
|
|
447
|
+
export interface HeaderTest extends HeaderTestFromTool {
|
|
18
448
|
variants: HeaderVariant[];
|
|
19
449
|
}
|
|
20
450
|
export interface HeaderTestSelection {
|
|
@@ -23,4 +453,5 @@ export interface HeaderTestSelection {
|
|
|
23
453
|
modulePathBuilder: (version?: string) => string;
|
|
24
454
|
moduleName: string;
|
|
25
455
|
}
|
|
456
|
+
export {};
|
|
26
457
|
//# sourceMappingURL=header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../../../shared/src/types/abTests/header.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../../../shared/src/types/abTests/header.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB;;GAEG;AACH,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI/B,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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