mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
bf30cbcf48
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
25 lines
547 B
TypeScript
25 lines
547 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
import { ApiProperty } from '@nestjs/swagger';
|
|
import { IsString } from 'class-validator';
|
|
|
|
import { BaseDto } from '../utils/base.dto.';
|
|
|
|
export class AliasCreateDto extends BaseDto {
|
|
/**
|
|
* The note id or alias, which identifies the note the alias should be added to
|
|
*/
|
|
@IsString()
|
|
@ApiProperty()
|
|
noteIdOrAlias: string;
|
|
|
|
/**
|
|
* The new alias
|
|
*/
|
|
@IsString()
|
|
@ApiProperty()
|
|
newAlias: string;
|
|
}
|