2024-04-25 16:01:08: merge [main:7f9a52684105c7ff0a068812245c462ceb6d553e];

This commit is contained in:
txix committed 2024-04-25 16:01:08 +03:00
1 parent 5a5f104174
commit a31c44eb7b
121 files changed
+14802 -84

No files matched your search

+48
View File
@@ -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>
}
+33
View File
@@ -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[]
}
+10
View File
@@ -0,0 +1,10 @@
export interface MSPError {
details: Array<any>
errorCode: string
errorMessage: string
}
export interface LimitOffsetRequestType {
limit: number
offset: number
}
+25
View File
@@ -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'>
+9
View File
@@ -0,0 +1,9 @@
export interface LoginRequest {
email: string
password: string
}
export interface LoginResponse {
expired: string
headerName: string
token: string
}
+24
View File
@@ -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
}
+14
View File
@@ -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[]
}
+28
View File
@@ -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[]
}