src/policies/dto/create-policy.dto.ts
Properties |
|
| Readonly archiveEmailNotification |
Type : boolean
|
Decorators :
@IsBoolean()
|
|
Defined in src/policies/dto/create-policy.dto.ts:29
|
| Readonly archiveEmailsToBeNotified |
Type : string[]
|
Decorators :
@IsArray()
|
|
Defined in src/policies/dto/create-policy.dto.ts:33
|
| Readonly autoArchive |
Type : boolean
|
Decorators :
@IsBoolean()
|
|
Defined in src/policies/dto/create-policy.dto.ts:21
|
| Readonly autoArchiveDelay |
Type : number
|
Decorators :
@IsNumber()
|
|
Defined in src/policies/dto/create-policy.dto.ts:25
|
| Readonly embargoPeriod |
Type : number
|
Decorators :
@IsNumber()
|
|
Defined in src/policies/dto/create-policy.dto.ts:45
|
| Readonly manager |
Type : string[]
|
Decorators :
@IsArray()
|
|
Defined in src/policies/dto/create-policy.dto.ts:13
|
| Readonly retrieveEmailNotification |
Type : boolean
|
Decorators :
@IsBoolean()
|
|
Defined in src/policies/dto/create-policy.dto.ts:37
|
| Readonly retrieveEmailsToBeNotified |
Type : string[]
|
Decorators :
@IsArray()
|
|
Defined in src/policies/dto/create-policy.dto.ts:41
|
| Readonly tapeRedundancy |
Type : string
|
Decorators :
@IsString()
|
|
Defined in src/policies/dto/create-policy.dto.ts:17
|
| 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 {
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;
}