mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-02-21 11:21:24 +00:00
30 lines
577 B
TypeScript
30 lines
577 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
import { ApiProperty } from '@nestjs/swagger';
|
|
import { IsBoolean, IsString } from 'class-validator';
|
|
|
|
export class AliasDto {
|
|
/**
|
|
* The name of the alias
|
|
*/
|
|
@IsString()
|
|
@ApiProperty()
|
|
name: string;
|
|
|
|
/**
|
|
* Is the alias the primary alias or not
|
|
*/
|
|
@IsBoolean()
|
|
@ApiProperty()
|
|
primaryAlias: boolean;
|
|
|
|
/**
|
|
* The public id of the note the alias is associated with
|
|
*/
|
|
@IsString()
|
|
@ApiProperty()
|
|
noteId: string;
|
|
}
|