diff options
Diffstat (limited to 'garden/src/types/letter.ts')
| -rw-r--r-- | garden/src/types/letter.ts | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/garden/src/types/letter.ts b/garden/src/types/letter.ts new file mode 100644 index 0000000..f7bd9dc --- /dev/null +++ b/garden/src/types/letter.ts @@ -0,0 +1,46 @@ +export interface LetterParticipant { + username: string; + display_name: string; + avatar_url: string; + role: string; +} + +export interface LetterAttachment { + ref: string; + file_name: string; + url: string; + file_size: number; + content_type: string; + category: string; +} + +export interface LetterMessage { + ref: string; + sender: LetterParticipant | null; + body: string; + attachments: LetterAttachment[]; + edited_at: string | null; + created_at: string; + deleted: boolean; +} + +export interface Letter { + ref: string; + title: string; + is_system: boolean; + system_ref?: string; + participants: LetterParticipant[]; + last_message?: LetterMessage; + unread: boolean; + updated_at: string; +} + +export interface LetterDetail { + ref: string; + title: string; + is_system: boolean; + system_ref?: string; + participants: LetterParticipant[]; + messages: LetterMessage[]; + created_at: string; +}
\ No newline at end of file |
