]>
Commit | Line | Data |
---|---|---|
453e83ea | 1 | import { OAuthTokenModel } from '@server/models/oauth/oauth-token' |
6b5f72be | 2 | import { PickWith } from '@shared/typescript-utils' |
d7a25329 | 3 | import { MUserAccountUrl } from '../user/user' |
453e83ea | 4 | |
0283eaac C |
5 | type Use<K extends keyof OAuthTokenModel, M> = PickWith<OAuthTokenModel, K, M> |
6 | ||
7 | // ############################################################################ | |
8 | ||
453e83ea C |
9 | export type MOAuthToken = Omit<OAuthTokenModel, 'User' | 'OAuthClients'> |
10 | ||
a1587156 C |
11 | export type MOAuthTokenUser = |
12 | MOAuthToken & | |
0283eaac | 13 | Use<'User', MUserAccountUrl> & |
453e83ea | 14 | { user?: MUserAccountUrl } |