@bitblit/ratchet-epsilon-common
Version:
Tiny adapter to simplify building API gateway Lambda APIS
18 lines (17 loc) • 1.06 kB
TypeScript
import { ModelValidator } from '@bitblit/ratchet-misc/model-validator/model-validator';
import { BackgroundConfig } from '../config/background/background-config.js';
import { BackgroundEntry } from './background-entry.js';
import { BackgroundProcessor } from '../config/background/background-processor.js';
import { BackgroundAwsConfig } from '../config/background/background-aws-config.js';
export declare class BackgroundValidator {
private cfg;
private modelValidator;
constructor(cfg: BackgroundConfig, modelValidator: ModelValidator);
findProcessor(typeName: string): BackgroundProcessor<any>;
validType(type: string): boolean;
validateEntry<T>(entry: BackgroundEntry<T>): string[];
validateEntryAndThrowException<T>(entry: BackgroundEntry<T>): void;
static validateAndMapProcessors(processorInput: BackgroundProcessor<any>[], _modelValidator: ModelValidator): Map<string, BackgroundProcessor<any>>;
static validateAwsConfig(cfg: BackgroundAwsConfig): string[];
static validateConfig(cfg: BackgroundConfig): string[];
}