]>
Commit | Line | Data |
---|---|---|
1 | import { AbuseMessageModel } from '@server/models/abuse/abuse-message' | |
2 | import { PickWith } from '@shared/core-utils' | |
3 | import { AbuseModel } from '../../../models/abuse/abuse' | |
4 | import { MAccountFormattable } from '../account' | |
5 | ||
6 | type Use<K extends keyof AbuseMessageModel, M> = PickWith<AbuseMessageModel, K, M> | |
7 | ||
8 | // ############################################################################ | |
9 | ||
10 | export type MAbuseMessage = Omit<AbuseMessageModel, 'Account' | 'Abuse' | 'toFormattedJSON'> | |
11 | ||
12 | export type MAbuseMessageId = Pick<AbuseModel, 'id'> | |
13 | ||
14 | // ############################################################################ | |
15 | ||
16 | // Format for API | |
17 | ||
18 | export type MAbuseMessageFormattable = | |
19 | MAbuseMessage & | |
20 | Use<'Account', MAccountFormattable> |