@@ -1,4 +1,4 @@
|
||||
import { IsInt, IsString } from "class-validator";
|
||||
import { IsInt, IsOptional, IsString } from "class-validator";
|
||||
import { DistanceDonation } from '../entities/DistanceDonation';
|
||||
import { Runner } from '../entities/Runner';
|
||||
import { RunnerGroup } from '../entities/RunnerGroup';
|
||||
@@ -36,6 +36,14 @@ export class ResponseSelfServiceRunner extends ResponseParticipant {
|
||||
@IsString()
|
||||
donations: ResponseSelfServiceDonation[]
|
||||
|
||||
/**
|
||||
* The runner's self-service jwt for auth.
|
||||
* Will only get delivered on registration/via email.
|
||||
*/
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
token: string;
|
||||
|
||||
/**
|
||||
* Creates a ResponseRunner object from a runner.
|
||||
* @param runner The user the response shall be build for.
|
||||
|
||||
Reference in New Issue
Block a user