parent
c172aa8bf8
commit
a4e8311cbd
|
@ -7,7 +7,7 @@ import { GroupContact } from '../../entities/GroupContact';
|
||||||
import { RunnerGroup } from '../../entities/RunnerGroup';
|
import { RunnerGroup } from '../../entities/RunnerGroup';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This classed is used to create a new Group entity from a json body (post request).
|
* This classed is used to create a new GroupContact entity from a json body (post request).
|
||||||
*/
|
*/
|
||||||
export class CreateGroupContact {
|
export class CreateGroupContact {
|
||||||
/**
|
/**
|
||||||
|
@ -32,7 +32,7 @@ export class CreateGroupContact {
|
||||||
lastname: string;
|
lastname: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The new participant's address.
|
* The new contact's address.
|
||||||
*/
|
*/
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsObject()
|
@IsObject()
|
||||||
|
@ -47,7 +47,7 @@ export class CreateGroupContact {
|
||||||
phone?: string;
|
phone?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The contact's email address.
|
* The new contact's email address.
|
||||||
*/
|
*/
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsEmail()
|
@IsEmail()
|
||||||
|
@ -79,7 +79,7 @@ export class CreateGroupContact {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new Address entity from this.
|
* Creates a new GroupContact entity from this.
|
||||||
*/
|
*/
|
||||||
public async toEntity(): Promise<GroupContact> {
|
public async toEntity(): Promise<GroupContact> {
|
||||||
let newContact: GroupContact = new GroupContact();
|
let newContact: GroupContact = new GroupContact();
|
||||||
|
|
|
@ -6,8 +6,9 @@ import { Address } from '../../entities/Address';
|
||||||
import { GroupContact } from '../../entities/GroupContact';
|
import { GroupContact } from '../../entities/GroupContact';
|
||||||
import { RunnerGroup } from '../../entities/RunnerGroup';
|
import { RunnerGroup } from '../../entities/RunnerGroup';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This classed is used to create a new Group entity from a json body (post request).
|
* This class is used to update a GroupContact entity (via put request).
|
||||||
*/
|
*/
|
||||||
export class UpdateGroupContact {
|
export class UpdateGroupContact {
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue