2021-01-05 16:12:38 -05:00
|
|
|
/*
|
2021-01-06 15:36:07 -05:00
|
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
2021-01-05 16:12:38 -05:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2020-07-25 14:07:39 -04:00
|
|
|
import { IsBoolean, ValidateNested } from 'class-validator';
|
|
|
|
import { NoteMetadataDto } from '../notes/note-metadata.dto';
|
|
|
|
|
|
|
|
export class HistoryEntryDto {
|
2021-01-25 16:45:52 -05:00
|
|
|
/**
|
|
|
|
* Metadata of this note
|
|
|
|
*/
|
2020-07-25 14:07:39 -04:00
|
|
|
@ValidateNested()
|
|
|
|
metadata: NoteMetadataDto;
|
2021-01-25 16:45:52 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* True if this note is pinned
|
|
|
|
* @example false
|
|
|
|
*/
|
2020-07-25 14:07:39 -04:00
|
|
|
@IsBoolean()
|
|
|
|
pinStatus: boolean;
|
|
|
|
}
|