mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-10-22 03:16:15 -05:00
Refactor frontend data models
This commit is contained in:
25
src-ui/src/app/data/mail-account.ts
Normal file
25
src-ui/src/app/data/mail-account.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { ObjectWithPermissions } from './object-with-permissions'
|
||||
|
||||
export enum IMAPSecurity {
|
||||
None = 1,
|
||||
SSL = 2,
|
||||
STARTTLS = 3,
|
||||
}
|
||||
|
||||
export interface MailAccount extends ObjectWithPermissions {
|
||||
name: string
|
||||
|
||||
imap_server: string
|
||||
|
||||
imap_port: number
|
||||
|
||||
imap_security: IMAPSecurity
|
||||
|
||||
username: string
|
||||
|
||||
password: string
|
||||
|
||||
character_set?: string
|
||||
|
||||
is_token: boolean
|
||||
}
|
Reference in New Issue
Block a user