Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 2x 1x 1x 1x 1x 2x 1x 4x | import { ApiProperty } from '@nestjs/swagger' import { Expose, Type } from 'class-transformer' @Expose() export class TestatorHeader { @ApiProperty({ description: 'Full name of the testator', type: String, example: 'Peter Lustig', }) fullName: string @ApiProperty({ description: 'Street where the testator resides', type: String, example: 'Jungsong-dong 1', }) AddressStreet: string @ApiProperty({ description: 'City where the testator resides', type: String, example: 'Karl Marx Stadt ', }) AddressCity: string } @Expose() export class LastWillParagraph { @ApiProperty({ description: 'Paragraph title', example: 'Very Legal Paragraph', type: String, }) title: string @ApiProperty({ description: 'Content of the text within the paragraph.', example: ['Very important sentence.', 'Even more important sentence!'], type: String, isArray: true, }) contents: string[] } @Expose() export class GeneratedLastWillDTO { @ApiProperty({ description: 'Contents for the header describing the testator', type: TestatorHeader, }) @Type(() => TestatorHeader) testatorHeader: TestatorHeader @ApiProperty({ description: 'Header for the location and date', type: String, example: 'Karl Marxstadt, den 31. Juli 2023', }) locationHeader: string @ApiProperty({ description: 'lastwill title', type: String, example: 'Mein Testament und letzter Wille', }) title: string @ApiProperty({ description: 'Opening text for the last will', type: String, example: 'Ich, Peter Lustig, geboren am 08.01.1984 in Karl Marx Stadt, widerrufe mit diesem Testament alle bisher errichteten Verfügungen von Todes wegen und bestimme hiermit Folgendes:', }) initialText: string @ApiProperty({ description: 'Content of the last will', type: LastWillParagraph, isArray: true, }) @Type(() => LastWillParagraph) paragraphs: LastWillParagraph[] constructor(partial: Partial<GeneratedLastWillDTO>) { Object.assign(this, partial) } } |