v2: fixed oauth errors, oauth clients native control added
This commit is contained in:
@@ -33,77 +33,25 @@ export interface Consent {
|
||||
isRevokable: boolean;
|
||||
}
|
||||
|
||||
export interface Permission {
|
||||
id: string;
|
||||
code: string;
|
||||
name: string;
|
||||
description: string;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
export interface Position {
|
||||
code: string;
|
||||
name: string;
|
||||
description?: string | null;
|
||||
permissions: Permission[];
|
||||
}
|
||||
|
||||
export interface AdminUser {
|
||||
id: string;
|
||||
email: string;
|
||||
first_name: string;
|
||||
second_name: string;
|
||||
is_admin: boolean;
|
||||
positions: Position[];
|
||||
}
|
||||
|
||||
export const localeMap = {
|
||||
ru,
|
||||
en: enUS,
|
||||
it,
|
||||
};
|
||||
|
||||
export interface Region {
|
||||
export interface OAuthClient {
|
||||
id: string;
|
||||
code: string;
|
||||
client_id: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
type FieldType = "text" | "date" | "select" | "masked"
|
||||
|
||||
export interface FieldOption {
|
||||
value: string;
|
||||
label: { en: string; ru: string };
|
||||
}
|
||||
|
||||
export interface FieldTemplate {
|
||||
id: string;
|
||||
name: { en: string; ru: string };
|
||||
type: FieldType;
|
||||
required?: boolean;
|
||||
mask?: string;
|
||||
options?: FieldOption[];
|
||||
generated?: boolean;
|
||||
}
|
||||
|
||||
type CitizenshipApplicationStatus = "pending" | "rejected" | "approved"
|
||||
|
||||
export interface CitizenshipApplication {
|
||||
id: string;
|
||||
user_id: string;
|
||||
status: CitizenshipApplicationStatus;
|
||||
region_id: string;
|
||||
reviewed_by?: string;
|
||||
reviewed_at?: string;
|
||||
reject_reason?: string;
|
||||
redirect_uris: string[];
|
||||
grant_types: string[];
|
||||
scopes: string[];
|
||||
trusted: boolean;
|
||||
is_active: boolean;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
|
||||
export interface Citizen {
|
||||
id: string;
|
||||
user_id: string;
|
||||
application_id: string;
|
||||
number: string;
|
||||
issued_at: string;
|
||||
region_id: string;
|
||||
export interface CreatedOAuthClient extends OAuthClient {
|
||||
client_secret: string;
|
||||
}
|
||||
Reference in New Issue
Block a user