Skip to content

Commit 719a8be

Browse files
authored
Merge pull request #1438 from guardian/tf-reminder-types
Add reminder types back in
2 parents 32a69cd + 09461be commit 719a8be

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.changeset/slow-ants-switch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@guardian/support-dotcom-components': patch
3+
---
4+
5+
Add reminder types back in

src/shared/types/reminders.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
export type ReminderPlatform = 'WEB';
2+
3+
export type ReminderComponent = 'EPIC' | 'BANNER';
4+
5+
export type ReminderStage = 'PRE' | 'POST';
6+
7+
interface BaseSignupRequest {
8+
email: string;
9+
reminderPlatform: ReminderPlatform;
10+
reminderComponent: ReminderComponent;
11+
reminderStage: ReminderStage;
12+
country?: string;
13+
reminderOption?: string;
14+
}
15+
16+
export interface OneOffSignupRequest extends BaseSignupRequest {
17+
reminderPeriod: string;
18+
}

0 commit comments

Comments
 (0)