-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathepic.ts
More file actions
74 lines (70 loc) · 1.94 KB
/
Copy pathepic.ts
File metadata and controls
74 lines (70 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import { ControlProportionSettings } from '../components/channelManagement/helpers/controlProportionSettings';
import {
ArticlesViewedSettings,
BylineWithImage,
ContributionFrequency,
Cta,
DeviceType,
Image,
NewsletterSignup,
RegionTargeting,
SecondaryCta,
Status,
Test,
TickerSettings,
UserCohort,
Variant,
} from '../components/channelManagement/helpers/shared';
import { Region } from '../utils/models';
import { ChoiceCardsSettings } from './choiceCards';
export interface SeparateArticleCount {
type: 'above';
copy?: string;
}
export interface EpicVariant extends Variant {
heading?: string;
paragraphs: string[];
highlightedText?: string;
showTicker: boolean;
tickerSettings?: TickerSettings;
image?: Image;
cta?: Cta;
secondaryCta?: SecondaryCta;
separateArticleCount?: SeparateArticleCount;
promoCodes?: string[];
showChoiceCards?: boolean;
choiceCardsSettings?: ChoiceCardsSettings;
defaultChoiceCardFrequency?: ContributionFrequency; // deprecated, use choiceCardSettings
bylineWithImage?: BylineWithImage;
showSignInLink?: boolean;
newsletterSignup?: NewsletterSignup;
}
export interface MaxEpicViews {
maxViewsCount: number;
maxViewsDays: number;
minDaysBetweenViews: number;
}
export interface EpicTest extends Test {
name: string;
nickname?: string;
status: Status;
locations: Region[];
regionTargeting: RegionTargeting;
tagIds: string[];
sections: string[];
excludedTagIds: string[];
excludedSections: string[];
alwaysAsk: boolean;
maxViews?: MaxEpicViews;
userCohort: UserCohort;
hasCountryName: boolean;
variants: EpicVariant[];
highPriority: boolean; // has been removed from form, but might be used in future
useLocalViewLog: boolean;
articlesViewedSettings?: ArticlesViewedSettings;
controlProportionSettings?: ControlProportionSettings;
deviceType?: DeviceType;
campaignName?: string;
mParticleAudience?: number;
mParticleTemplates?: string[];
}