UNPKG

@bitblit/epsilon

Version:

Tiny adapter to simplify building API gateway Lambda APIS

21 lines (20 loc) 1.11 kB
import { BackgroundConfig } from '../config/background/background-config'; import { BackgroundEntry } from './background-entry'; import { BackgroundProcessor } from '../config/background/background-processor'; import { BackgroundAwsConfig } from '../config/background/background-aws-config'; import { ModelValidator } from '@bitblit/ratchet/model-validator'; /** * Handles all submission of work to the background processing system. */ 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[]; }