Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git] / packages / shared / lib / interfaces / calendar / Link.ts
blob83f935e26e1236632381add4dec7d393384eb839
1 import type { Nullable } from '../utils';
2 import type { Calendar } from './Calendar';
4 export enum ACCESS_LEVEL {
5     LIMITED = 0,
6     FULL = 1,
9 export interface CalendarUrl {
10     CalendarUrlID: string;
11     CalendarID: string;
12     PassphraseID?: string;
13     AccessLevel: ACCESS_LEVEL;
14     EncryptedPurpose: Nullable<string>;
15     EncryptedCacheKey: string;
16     EncryptedPassphrase: Nullable<string>;
17     CreateTime: number;
20 export interface CalendarUrlResponse {
21     CalendarUrl: CalendarUrl;
22     Code: number;
25 export interface CalendarUrlsResponse {
26     CalendarUrls: CalendarUrl[];
27     Code: number;
30 export interface CalendarMap {
31     [key: string]: Calendar;
34 export interface CalendarLink extends Omit<CalendarUrl, 'PassphraseID'> {
35     purpose: Nullable<string>;
36     link: string;
39 export interface CopyLinkParams {
40     calendarID: string;
41     urlID: string;
42     accessLevel: ACCESS_LEVEL;
43     encryptedPassphrase: Nullable<string>;
44     encryptedCacheKey: string;