39 lines
611 B
TypeScript
39 lines
611 B
TypeScript
import { enUS, it, ru } from "date-fns/locale";
|
|
|
|
export enum Sex {
|
|
MALE = "MALE",
|
|
FEMALE = "FEMALE"
|
|
}
|
|
|
|
export interface User {
|
|
email: string;
|
|
first_name: string;
|
|
second_name: string;
|
|
birth_date: string;
|
|
sex: Sex;
|
|
}
|
|
|
|
export interface OAuthSession {
|
|
client_id: string;
|
|
client_name: string;
|
|
redirect_uri: string;
|
|
scopes: string[];
|
|
state: string;
|
|
user_id?: string;
|
|
}
|
|
|
|
export interface Consent {
|
|
client_id: string
|
|
client_name: string
|
|
scopes: string[]
|
|
authorized_at: string
|
|
last_used_at: string | null
|
|
isRevokable: boolean
|
|
}
|
|
|
|
|
|
export const localeMap = {
|
|
ru,
|
|
en: enUS,
|
|
it
|
|
}; |