mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-01 12:44:43 +00:00
26 lines
705 B
TypeScript
26 lines
705 B
TypeScript
import { ContributionMessageType } from '@enum/ContributionMessageType'
|
|
import { IsEnum, IsInt, IsString } from 'class-validator'
|
|
import { ArgsType, Field, InputType, Int } from 'type-graphql'
|
|
|
|
import { isValidDateString } from '@/graphql/validator/DateString'
|
|
|
|
@InputType()
|
|
@ArgsType()
|
|
export class ContributionMessageArgs {
|
|
@Field(() => Int)
|
|
@IsInt()
|
|
contributionId: number
|
|
|
|
@Field(() => String)
|
|
@IsString()
|
|
message: string
|
|
|
|
@Field(() => ContributionMessageType, { defaultValue: ContributionMessageType.DIALOG })
|
|
@IsEnum(ContributionMessageType)
|
|
messageType: ContributionMessageType
|
|
|
|
@Field(() => String, { nullable: true })
|
|
@isValidDateString()
|
|
resubmissionAt?: string | null
|
|
}
|