All files / services/config config.model.ts

100% Statements 14/14
50% Branches 1/2
100% Functions 2/2
100% Lines 14/14

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 342x 2x 2x 2x 2x 2x     2x           2x       2x                   2x 2x 2x 2x 2x  
export class LoggerConfig {
    logging?: boolean = process.env.LOGGING === 'true' ? true : false;
    hashes?: boolean = true;
    date?: boolean = true;
    exitHandler?: boolean = true;
    fileService?: boolean = true;
}
 
export class PrivateCryptoModel {
    algorithm?: string;
    cyperIv?: string;
    cyperKey?: string;
}
 
export class ExperimentalFeatures {
    crypto?: PrivateCryptoModel;
}
 
export class InitOptionsConfig {
    services?: boolean;
    controllers?: boolean;
    effects?: boolean;
    pluginsBefore?: boolean;
    plugins?: boolean;
    components?: boolean;
    pluginsAfter?;
}
 
export class ConfigModel {
    init?: boolean = true;
    initOptions?: InitOptionsConfig = new InitOptionsConfig();
    experimental?: ExperimentalFeatures = new ExperimentalFeatures();
    logger?: LoggerConfig = new LoggerConfig();
}