2021-08-07 15:54:42 -04:00
|
|
|
/*
|
2022-02-13 16:57:08 -05:00
|
|
|
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
2021-08-07 15:54:42 -04:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
import { ApiProperty } from '@nestjs/swagger';
|
|
|
|
import { IsString } from 'class-validator';
|
|
|
|
|
2022-02-13 16:57:08 -05:00
|
|
|
import { BaseDto } from '../utils/base.dto.';
|
|
|
|
|
|
|
|
export class AliasCreateDto extends BaseDto {
|
2021-08-07 15:54:42 -04:00
|
|
|
/**
|
|
|
|
* 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;
|
|
|
|
}
|