File

src/module/settings/model/ApplicationConfiguration.ts

Index

Properties

Properties

Readonly database
Type : DatabaseConfiguration
Decorators :
@Type(undefined)
@ValidateNested()
Readonly defaultSettings
Type : ClientSettingsDTO | undefined
Decorators :
@IsOptional()
@Type(undefined)
@ValidateNested()
Readonly gotenberg
Type : GotenbergConfiguration | undefined
Decorators :
@IsOptional()
@Type(undefined)
@ValidateNested()
Readonly Optional handbookUrl
Type : string
Decorators :
@IsOptional()
@IsUrl()
Readonly Optional prefix
Type : string
Decorators :
@IsOptional()
@IsString()
Readonly Optional sessionTimeout
Type : number
Decorators :
@IsOptional()
@IsNumber()
@Min(0)
import { Type } from 'class-transformer';
import { IsNumber, IsOptional, IsString, IsUrl, Min, ValidateNested } from 'class-validator';
import { ClientSettingsDTO } from '../settings.dto';
import { DatabaseConfiguration } from './DatabaseConfiguration';
import { GotenbergConfiguration } from './GotenbergConfiguration';

export class ApplicationConfiguration {
    @IsOptional()
    @IsNumber()
    @Min(0)
    readonly sessionTimeout?: number;

    @IsOptional()
    @IsString()
    readonly prefix?: string;

    @IsOptional()
    @IsUrl()
    readonly handbookUrl?: string;

    @Type(() => DatabaseConfiguration)
    @ValidateNested()
    readonly database!: DatabaseConfiguration;

    @IsOptional()
    @Type(() => ClientSettingsDTO)
    @ValidateNested()
    readonly defaultSettings: ClientSettingsDTO | undefined;

    @IsOptional()
    @Type(() => GotenbergConfiguration)
    @ValidateNested()
    readonly gotenberg: GotenbergConfiguration | undefined;
}

results matching ""

    No results matching ""