2024-04-25 16:01:08: merge [main:7f9a52684105c7ff0a068812245c462ceb6d553e];
This commit is contained in:
1 parent
5a5f104174
commit
a31c44eb7b
121 files changed
+14802
-84
No files matched your search
@@ -0,0 +1,48 @@
|
||||
export interface AccessListMethodType {
|
||||
method: string
|
||||
value: boolean
|
||||
}
|
||||
|
||||
export interface AccessListSetListRequestType {
|
||||
appId: number
|
||||
methods: AccessListMethodType[]
|
||||
removeOld?: boolean
|
||||
}
|
||||
|
||||
export interface AccessListSetListSetOneRequestType {
|
||||
appId: number
|
||||
method: string
|
||||
value: boolean
|
||||
}
|
||||
|
||||
export interface EndpointType {
|
||||
extra: Record<string, any>
|
||||
inner: boolean
|
||||
path: string
|
||||
userAuthRequired: boolean
|
||||
}
|
||||
|
||||
export type AddressType = {
|
||||
ip: string
|
||||
port: string
|
||||
}
|
||||
|
||||
export type RequiredModuleType = {
|
||||
name: string
|
||||
required: boolean
|
||||
}
|
||||
|
||||
export type RouteType = {
|
||||
address: AddressType
|
||||
endpoints: EndpointType[]
|
||||
libVersion: string
|
||||
moduleName: string
|
||||
requiredModules: RequiredModuleType[]
|
||||
version: string
|
||||
}
|
||||
|
||||
export interface RouteApiResponseType {
|
||||
originalResponse: RouteType[]
|
||||
moduleEndpoints: Record<string, EndpointType[]>
|
||||
allRouteMap: Record<string, EndpointType>
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
interface TokenType {
|
||||
appId: boolean
|
||||
createdAt: string
|
||||
expireTime: boolean
|
||||
token: string
|
||||
}
|
||||
|
||||
export interface SystemTreeAppType {
|
||||
description: string
|
||||
id: boolean
|
||||
name: string
|
||||
tokens: TokenType[]
|
||||
type: string
|
||||
}
|
||||
|
||||
interface SystemServiceType {
|
||||
apps: SystemTreeAppType[]
|
||||
description: string
|
||||
id: boolean
|
||||
name: string
|
||||
}
|
||||
|
||||
export interface DomainType {
|
||||
description: string
|
||||
id: boolean
|
||||
name: string
|
||||
services: SystemServiceType[]
|
||||
}
|
||||
|
||||
export interface AppApiResponseType {
|
||||
originalResponse: DomainType[]
|
||||
appList: SystemTreeAppType[]
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
export interface MSPError {
|
||||
details: Array<any>
|
||||
errorCode: string
|
||||
errorMessage: string
|
||||
}
|
||||
|
||||
export interface LimitOffsetRequestType {
|
||||
limit: number
|
||||
offset: number
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
export interface LogResponseType {
|
||||
totalCount: number
|
||||
items: LogType[]
|
||||
}
|
||||
|
||||
export interface LogType {
|
||||
id: string
|
||||
userId: string
|
||||
createdAt: string
|
||||
message: string
|
||||
}
|
||||
|
||||
export type LogEventKeyType =
|
||||
| 'login_logout'
|
||||
| 'role_changed'
|
||||
| 'user_changed'
|
||||
| 'user_blocked'
|
||||
|
||||
export interface LogEventType {
|
||||
event: LogEventKeyType
|
||||
name: string
|
||||
enabled: boolean
|
||||
}
|
||||
|
||||
export type SetEventType = Omit<LogEventType, 'name'>
|
||||
@@ -0,0 +1,9 @@
|
||||
export interface LoginRequest {
|
||||
email: string
|
||||
password: string
|
||||
}
|
||||
export interface LoginResponse {
|
||||
expired: string
|
||||
headerName: string
|
||||
token: string
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
export enum PermissionKeysType {
|
||||
read = 'read', // Просмотр страниц
|
||||
write = 'write' // Редактирование страниц
|
||||
}
|
||||
|
||||
export interface RoleType {
|
||||
changeMessage?: string
|
||||
createdAt: string
|
||||
description: string
|
||||
externalGroup: string
|
||||
id: number
|
||||
name: string
|
||||
permissions: PermissionKeysType[]
|
||||
updatedAt: string
|
||||
immutable: boolean
|
||||
exclusive: boolean
|
||||
}
|
||||
|
||||
export type NewRoleType = Omit<RoleType, 'id' | 'createdAt' | 'updatedAt'>
|
||||
|
||||
export interface PermissionType {
|
||||
key: PermissionKeysType
|
||||
name: string
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import { SessionStatusKeysType } from '@constants/statuses'
|
||||
|
||||
export interface SessionType {
|
||||
userId: string
|
||||
createdAt: string
|
||||
expiredAt: string
|
||||
id: number
|
||||
status: SessionStatusKeysType
|
||||
}
|
||||
|
||||
export interface SessionResponseType {
|
||||
totalCount: number
|
||||
items: SessionType[]
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
export interface UserType {
|
||||
id: number
|
||||
blocked: boolean
|
||||
createdAt: string
|
||||
email: string
|
||||
password: string
|
||||
firstName: string
|
||||
lastName: string
|
||||
roleId: number
|
||||
roleName: string
|
||||
roles: number[]
|
||||
updatedAt: string
|
||||
description: string
|
||||
lastSessionCreatedAt?: string
|
||||
}
|
||||
|
||||
export interface UserResponseType {
|
||||
items: UserType[]
|
||||
}
|
||||
|
||||
export interface NewUserType {
|
||||
description: string
|
||||
email: string
|
||||
firstName: string
|
||||
lastName: string
|
||||
password: string
|
||||
roles: number[]
|
||||
}
|
||||
Reference in new issue
Block a user