This commit is contained in:
Giovanni Rezcjikov
2026-03-09 20:07:49 +03:00
parent f188150c9f
commit d7615b4eb0
22 changed files with 1620 additions and 271 deletions
+20 -10
View File
@@ -6,11 +6,13 @@ export enum Sex {
}
export interface User {
id: string;
email: string;
first_name: string;
second_name: string;
birth_date: string;
sex: Sex;
is_admin: boolean;
}
export interface OAuthSession {
@@ -23,22 +25,30 @@ export interface OAuthSession {
}
export interface Consent {
client_id: string
client_name: string
scopes: string[]
authorized_at: string
last_used_at: string | null
isRevokable: boolean
client_id: string;
client_name: string;
scopes: string[];
authorized_at: string;
last_used_at: string | null;
isRevokable: boolean;
}
export interface Permission {
id: string;
code: string;
description: string;
created_at: string;
}
export interface Position {
code: string
name: string
description?: string | null
code: string;
name: string;
description?: string | null;
permissions: Permission[];
}
export const localeMap = {
ru,
en: enUS,
it
it,
};