mirror of
https://github.com/sasjs/server.git
synced 2026-01-09 07:20:05 +00:00
chore: move common interfaces to utils folder
This commit is contained in:
26
web/src/utils/types.ts
Normal file
26
web/src/utils/types.ts
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
export interface UserResponse {
|
||||||
|
id: number
|
||||||
|
username: string
|
||||||
|
displayName: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface GroupResponse {
|
||||||
|
groupId: number
|
||||||
|
name: string
|
||||||
|
description: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PermissionResponse {
|
||||||
|
permissionId: number
|
||||||
|
uri: string
|
||||||
|
setting: string
|
||||||
|
user?: UserResponse
|
||||||
|
group?: GroupResponse
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RegisterPermissionPayload {
|
||||||
|
uri: string
|
||||||
|
setting: string
|
||||||
|
principalType: string
|
||||||
|
principalId: number
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user