Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git] / packages / shared / lib / interfaces / calendar / Export.ts
blobd798e339eed5e0a53ff4d980ce579ab74647888f
1 import type { WeekStartsOn } from '../../date-fns-utc/interface';
2 import type { VisualCalendar } from './Calendar';
4 export enum EXPORT_STEPS {
5     EXPORTING,
6     FINISHED,
9 export enum EXPORT_ERRORS {
10     NETWORK_ERROR,
13 export enum EXPORT_EVENT_ERROR_TYPES {
14     DECRYPTION_ERROR,
15     PASSWORD_RESET,
18 export type ExportError = [string, EXPORT_EVENT_ERROR_TYPES];
20 export interface ExportCalendarModel {
21     step: EXPORT_STEPS;
22     totalFetched: number;
23     totalProcessed: number;
24     totalToProcess: number;
25     calendar: VisualCalendar;
26     exportErrors: ExportError[];
27     error?: EXPORT_ERRORS;
28     weekStartsOn: WeekStartsOn;