feat: add list of aliases to note entity

One of the aliases can be primary for each note, but all can be used to get information from the apis.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2021-06-06 17:46:32 +02:00 committed by David Mehren
parent 86d060706f
commit 17c55195c3
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
6 changed files with 115 additions and 13 deletions

View file

@ -25,13 +25,19 @@ export class NoteMetadataDto {
id: string;
/**
* Alias of the note
* Can be null
* All aliases of the note (including the primaryAlias)
*/
@IsArray()
@IsString({ each: true })
@ApiProperty()
aliases: string[];
/**
* The primary alias of the note
*/
@IsString()
@IsOptional()
@ApiPropertyOptional()
alias: string | null;
@ApiProperty()
primaryAlias: string | null;
/**
* Title of the note