fix(preferences): minor type fix to dto
This commit is contained in:
parent
5f7f639c62
commit
d7b1bab68f
|
|
@ -537,7 +537,7 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"/preferences/update_preferences": {
|
||||
"/preferences/update": {
|
||||
"patch": {
|
||||
"operationId": "PreferencesController_updatePreferences",
|
||||
"parameters": [],
|
||||
|
|
@ -561,7 +561,21 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"/": {
|
||||
"/preferences": {
|
||||
"get": {
|
||||
"operationId": "PreferencesController_findPreferences",
|
||||
"parameters": [],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
"Preferences"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/module_access": {
|
||||
"get": {
|
||||
"operationId": "ModuleAccessController_findAccess",
|
||||
"parameters": [
|
||||
|
|
@ -582,7 +596,42 @@
|
|||
"tags": [
|
||||
"ModuleAccess"
|
||||
]
|
||||
},
|
||||
}
|
||||
},
|
||||
"/module_access/update": {
|
||||
"patch": {
|
||||
"operationId": "ModuleAccessController_updateAccess",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "employee_email",
|
||||
"required": true,
|
||||
"in": "query",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"required": true,
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ModuleAccess"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
"ModuleAccess"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/module_access/revoke": {
|
||||
"patch": {
|
||||
"operationId": "ModuleAccessController_revokeModuleAccess",
|
||||
"parameters": [
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import { IsInt } from "class-validator";
|
||||
|
||||
export class PreferencesDto {
|
||||
notifications: number;
|
||||
dark_mode: number;
|
||||
lang_switch: number;
|
||||
lefty_mode: number;
|
||||
employee_list_display: number;
|
||||
approval_display: number;
|
||||
notifications: boolean;
|
||||
dark_mode: boolean;
|
||||
lang_switch: boolean;
|
||||
lefty_mode: boolean;
|
||||
employee_list_display: boolean;
|
||||
approval_display: boolean;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user