MSP-3174 add types
This commit is contained in:
1 parent
89d719e8eb
commit
99ee80a579
3 files changed
+35
No files matched your search
@@ -3,3 +3,8 @@ export interface MSPError {
|
||||
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'>
|
||||
Reference in new issue
Block a user