src/attachments/dto/create-attachment.dto.ts
Properties |
|
| Readonly caption |
Type : string
|
Decorators :
@IsString()
|
| Readonly Optional datasetId |
Type : string
|
Decorators :
@IsOptional()
|
| Readonly Optional id |
Type : string
|
Decorators :
@IsOptional()
|
| Readonly Optional proposalId |
Type : string
|
Decorators :
@IsOptional()
|
| Readonly Optional sampleId |
Type : string
|
Decorators :
@IsOptional()
|
| Readonly Optional thumbnail |
Type : string
|
Decorators :
@IsOptional()
|
| Readonly Optional accessGroups |
Type : string[]
|
Decorators :
@ApiProperty({type: undefined, required: false, description: 'List of groups which have access to this item.'})
|
|
Inherited from
OwnableDto
|
|
Defined in
OwnableDto:22
|
| Readonly Optional instrumentGroup |
Type : string
|
Decorators :
@ApiProperty({type: String, required: false, description: 'Group of the instrument which this item was acquired on.'})
|
|
Inherited from
OwnableDto
|
|
Defined in
OwnableDto:31
|
| Readonly ownerGroup |
Type : string
|
Decorators :
@ApiProperty({type: String, required: true, description: 'Name of the group owning this item.'})
|
|
Inherited from
OwnableDto
|
|
Defined in
OwnableDto:11
|
import { IsOptional, IsString } from "class-validator";
import { OwnableDto } from "src/common/dto/ownable.dto";
export class CreateAttachmentDto extends OwnableDto {
@IsOptional()
@IsString()
readonly id?: string;
@IsOptional()
@IsString()
readonly thumbnail?: string;
@IsString()
readonly caption: string;
@IsOptional()
@IsString()
readonly datasetId?: string;
@IsOptional()
@IsString()
readonly proposalId?: string;
@IsOptional()
@IsString()
readonly sampleId?: string;
}