mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 02:05:21 -04:00

This is used to specify if the media uploads should be kept or deleted, when deleting a note. Signed-off-by: Philip Molares <philip.molares@udo.edu>
18 lines
413 B
TypeScript
18 lines
413 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
import { IsBoolean } from 'class-validator';
|
|
import { ApiProperty } from '@nestjs/swagger';
|
|
|
|
export class NoteMediaDeletionDto {
|
|
/**
|
|
* Should the associated mediaUploads be keept
|
|
* @default false
|
|
* @example false
|
|
*/
|
|
@IsBoolean()
|
|
@ApiProperty()
|
|
keepMedia: boolean;
|
|
}
|