File

src/policies/dto/create-policy.dto.ts

Extends

OwnableDto

Index

Properties

Properties

Readonly archiveEmailNotification
Type : boolean
Decorators :
@IsBoolean()
@IsOptional()
Readonly archiveEmailsToBeNotified
Type : string[]
Decorators :
@IsArray()
@IsOptional()
Readonly autoArchive
Type : boolean
Decorators :
@IsBoolean()
@IsOptional()
Readonly autoArchiveDelay
Type : number
Decorators :
@IsNumber()
@IsOptional()
Readonly embargoPeriod
Type : number
Decorators :
@IsNumber()
@IsOptional()
Readonly manager
Type : string[]
Decorators :
@IsArray()
@IsOptional()
Readonly retrieveEmailNotification
Type : boolean
Decorators :
@IsBoolean()
@IsOptional()
Readonly retrieveEmailsToBeNotified
Type : string[]
Decorators :
@IsArray()
@IsOptional()
Readonly tapeRedundancy
Type : string
Decorators :
@IsString()
@IsOptional()
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 {
  IsArray,
  IsBoolean,
  IsNumber,
  IsOptional,
  IsString,
} from "class-validator";
import { OwnableDto } from "src/common/dto/ownable.dto";

export class CreatePolicyDto extends OwnableDto {
  @IsArray()
  @IsOptional()
  readonly manager: string[];

  @IsString()
  @IsOptional()
  readonly tapeRedundancy: string;

  @IsBoolean()
  @IsOptional()
  readonly autoArchive: boolean;

  @IsNumber()
  @IsOptional()
  readonly autoArchiveDelay: number;

  @IsBoolean()
  @IsOptional()
  readonly archiveEmailNotification: boolean;

  @IsArray()
  @IsOptional()
  readonly archiveEmailsToBeNotified: string[];

  @IsBoolean()
  @IsOptional()
  readonly retrieveEmailNotification: boolean;

  @IsArray()
  @IsOptional()
  readonly retrieveEmailsToBeNotified: string[];

  @IsNumber()
  @IsOptional()
  readonly embargoPeriod: number;
}

results matching ""

    No results matching ""