feat: distinguish managed platform users (#14207)
* feat: add isPlatformManaged property to user * do not allow deleting non managed users * refactor: rename managed user create and update inputs * refactor response code * feat: add isPlatformManaged when creating managed user * fix TS
This commit is contained in:
1 parent
bec1453148
commit
ef498c6ed6
12 files changed
+52
-27
No files matched your search
@@ -1,26 +0,0 @@
|
||||
import { IsTimeFormat } from "@/modules/users/inputs/validators/is-time-format";
|
||||
import { IsWeekStart } from "@/modules/users/inputs/validators/is-week-start";
|
||||
import { IsNumber, IsOptional, IsTimeZone, IsString, Validate } from "class-validator";
|
||||
|
||||
export class CreateUserInput {
|
||||
@IsString()
|
||||
email!: string;
|
||||
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
name?: string;
|
||||
|
||||
@IsNumber()
|
||||
@IsOptional()
|
||||
@Validate(IsTimeFormat)
|
||||
timeFormat?: number;
|
||||
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
@Validate(IsWeekStart)
|
||||
weekStart?: string;
|
||||
|
||||
@IsTimeZone()
|
||||
@IsOptional()
|
||||
timeZone?: string;
|
||||
}
|
||||
Reference in new issue
Block a user