File

src/attachments/dto/create-attachment.dto.ts

Extends

OwnableDto

Index

Properties

Properties

Readonly caption
Type : string
Decorators :
@IsString()
Readonly Optional datasetId
Type : string
Decorators :
@IsOptional()
@IsString()
Readonly Optional id
Type : string
Decorators :
@IsOptional()
@IsString()
Readonly Optional proposalId
Type : string
Decorators :
@IsOptional()
@IsString()
Readonly Optional sampleId
Type : string
Decorators :
@IsOptional()
@IsString()
Readonly Optional thumbnail
Type : string
Decorators :
@IsOptional()
@IsString()
Readonly Optional accessGroups
Type : string[]
Decorators :
@ApiProperty({type: undefined, required: false, description: 'List of groups which have access to this item.'})
@IsOptional()
@IsString({each: true})
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.'})
@IsOptional()
@IsString()
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.'})
@IsString()
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;
}

results matching ""

    No results matching ""