MSP-3174 add types

This commit is contained in:
Anastasiia committed 2024-04-19 14:32:41 +03:00
1 parent 89d719e8eb
commit 99ee80a579
3 files changed
+35

No files matched your search

+5
View File
@@ -2,6 +2,7 @@ import { MenuProps } from 'antd'
export enum MenuItemKeysType {
users = 'users',
securityLog = 'securityLog',
appAccess = 'appAccess'
}
@@ -14,6 +15,10 @@ export const menuKeys: Record<MenuItemKeysType, MenuItem> = {
key: MenuItemKeysType.users,
parent: ['sessionManagement']
},
[MenuItemKeysType.securityLog]: {
key: MenuItemKeysType.securityLog,
parent: ['sessionManagement']
},
[MenuItemKeysType.appAccess]: {
key: MenuItemKeysType.appAccess,
parent: []
+5
View File
@@ -3,3 +3,8 @@ export interface MSPError {
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'>