initial commit
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
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
|
||||
};
|
||||
Reference in New Issue
Block a user