mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-16 08:04:45 -04:00
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:
parent
86d060706f
commit
17c55195c3
6 changed files with 115 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue