Files
kotosoft-id/kotosoft-id-frontend/types.ts
T
2026-03-09 18:09:02 +03:00

44 lines
701 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 interface Position {
code: string
name: string
description?: string | null
}
export const localeMap = {
ru,
en: enUS,
it
};