18 lines
440 B
TypeScript
18 lines
440 B
TypeScript
import client from "jmap-client-ts/lib/types";
|
|
|
|
export interface IMailbox extends client.IMailboxProperties {
|
|
emailIds: Array<string> | null;
|
|
emails: Array<client.IEmailProperties> | null;
|
|
}
|
|
|
|
export interface IAccount extends client.IAccount {
|
|
id: string;
|
|
mailboxes: Array<IMailbox> | null;
|
|
}
|
|
|
|
export type AccountIdMap = { [accountId: string]: IAccount };
|
|
|
|
export interface ISession extends client.ISession {
|
|
accounts: AccountIdMap;
|
|
}
|