mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
112 lines
1.7 KiB
TypeScript
112 lines
1.7 KiB
TypeScript
import { ArgsType, Field } from 'type-graphql'
|
|
|
|
/*
|
|
@InputType()
|
|
export class LoginUserInput {
|
|
@Field({ nullable: true })
|
|
username?: string
|
|
|
|
@Field({ nullable: true })
|
|
email?: string
|
|
|
|
@Field({ nullable: true })
|
|
pubkey?: string
|
|
|
|
@Field()
|
|
password: string
|
|
}
|
|
*/
|
|
|
|
@ArgsType()
|
|
export class UnsecureLoginArgs {
|
|
@Field(() => String)
|
|
email: string
|
|
|
|
@Field(() => String)
|
|
password: string
|
|
}
|
|
|
|
@ArgsType()
|
|
export class CreateUserArgs {
|
|
@Field(() => String)
|
|
email: string
|
|
|
|
@Field(() => String)
|
|
firstName: string
|
|
|
|
@Field(() => String)
|
|
lastName: string
|
|
|
|
@Field(() => String)
|
|
password: string
|
|
}
|
|
|
|
@ArgsType()
|
|
export class SendEmailArgs {
|
|
@Field(() => String)
|
|
email: string
|
|
|
|
@Field(() => Number)
|
|
emailText: number
|
|
|
|
@Field(() => String)
|
|
emailVerificationCodeType: string
|
|
}
|
|
|
|
@ArgsType()
|
|
export class GetUserInfoArgs {
|
|
@Field(() => Number)
|
|
sessionId: number
|
|
|
|
@Field(() => String)
|
|
email: string
|
|
}
|
|
|
|
@ArgsType()
|
|
export class ChangePasswordArgs {
|
|
@Field(() => Number)
|
|
sessionId: number
|
|
|
|
@Field(() => String)
|
|
email: string
|
|
|
|
@Field(() => String)
|
|
password: string
|
|
}
|
|
|
|
@ArgsType()
|
|
export class UpdateUserInfosArgs {
|
|
@Field(() => Number)
|
|
sessionId!: number
|
|
|
|
@Field(() => String)
|
|
email!: string
|
|
|
|
@Field({ nullable: true })
|
|
firstName?: string | null
|
|
|
|
@Field({ nullable: true })
|
|
lastName?: string | null
|
|
|
|
@Field({ nullable: true })
|
|
username?: string | null
|
|
|
|
@Field({ nullable: true })
|
|
language?: string | null
|
|
|
|
@Field({ nullable: true })
|
|
password?: string | null
|
|
|
|
@Field({ nullable: true })
|
|
passwordNew?: string | null
|
|
}
|
|
|
|
@ArgsType()
|
|
export class CheckUsernameArgs {
|
|
@Field(() => String)
|
|
username: string
|
|
|
|
@Field(() => Number)
|
|
groupId?: number
|
|
}
|