Implemented group contacts feature/104-contacts #108

Merged
niggl merged 29 commits from feature/104-contacts into dev 2021-01-19 19:08:56 +00:00
Showing only changes of commit 6b4b16c13b - Show all commits

View File

@ -1,4 +1,4 @@
import { IsEmail, IsNotEmpty, IsObject, IsOptional, IsPhoneNumber, IsString } from 'class-validator';
import { IsEmail, IsInt, IsNotEmpty, IsObject, IsOptional, IsPhoneNumber, IsString } from 'class-validator';
import { getConnectionManager } from 'typeorm';
import { config } from '../../../config';
import { RunnerGroupNotFoundError } from '../../../errors/RunnerGroupErrors';
@ -11,6 +11,13 @@ import { RunnerGroup } from '../../entities/RunnerGroup';
* This class is used to update a GroupContact entity (via put request).
*/
export class UpdateGroupContact {
/**
* The updated contact's id.
* This shouldn't have changed but it is here in case anyone ever wants to enable id changes (whyever they would want to).
*/
@IsInt()
id: number;
/**
* The updated contact's first name.
*/