1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-10 11:24:35 +00:00

chore: move common interfaces to utils folder

This commit is contained in:
2022-05-18 00:04:37 +05:00
parent 4fcc191ce9
commit dfbd155711

26
web/src/utils/types.ts Normal file
View 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
}