@anoki/fse-common
Version:
Common types for FSE
21 lines (20 loc) • 482 B
TypeScript
export type Subscription = {
id: number;
firstAccess?: boolean;
recipientSms?: string;
recipientMail?: string;
notifications: NotificationConsent[];
};
export type NotificationConsent = {
id: number;
code?: string;
label?: string;
description?: string;
mandatory?: boolean;
consents: RecipientConsent[];
};
export type RecipientConsent = {
id: number;
notificationType: 'PUSH' | 'SMS' | 'MAIL' | 'APPIO';
enabled: boolean;
};