]>
Commit | Line | Data |
---|---|---|
453e83ea C |
1 | import { OAuthTokenModel } from '@server/models/oauth/oauth-token' |
2 | import { PickWith } from '@server/typings/utils' | |
3 | import { MUserAccountUrl } from '@server/typings/models' | |
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 | ||
11 | export type MOAuthTokenUser = MOAuthToken & | |
0283eaac | 12 | Use<'User', MUserAccountUrl> & |
453e83ea | 13 | { user?: MUserAccountUrl } |