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": {
|
"patch": {
|
||||||
"operationId": "PreferencesController_updatePreferences",
|
"operationId": "PreferencesController_updatePreferences",
|
||||||
"parameters": [],
|
"parameters": [],
|
||||||
|
|
@ -561,7 +561,21 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/": {
|
"/preferences": {
|
||||||
|
"get": {
|
||||||
|
"operationId": "PreferencesController_findPreferences",
|
||||||
|
"parameters": [],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
"Preferences"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"/module_access": {
|
||||||
"get": {
|
"get": {
|
||||||
"operationId": "ModuleAccessController_findAccess",
|
"operationId": "ModuleAccessController_findAccess",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
|
|
@ -582,7 +596,42 @@
|
||||||
"tags": [
|
"tags": [
|
||||||
"ModuleAccess"
|
"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": {
|
"patch": {
|
||||||
"operationId": "ModuleAccessController_revokeModuleAccess",
|
"operationId": "ModuleAccessController_revokeModuleAccess",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
import { IsInt } from "class-validator";
|
import { IsInt } from "class-validator";
|
||||||
|
|
||||||
export class PreferencesDto {
|
export class PreferencesDto {
|
||||||
notifications: number;
|
notifications: boolean;
|
||||||
dark_mode: number;
|
dark_mode: boolean;
|
||||||
lang_switch: number;
|
lang_switch: boolean;
|
||||||
lefty_mode: number;
|
lefty_mode: boolean;
|
||||||
employee_list_display: number;
|
employee_list_display: boolean;
|
||||||
approval_display: number;
|
approval_display: boolean;
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user