UNPKG

@studyportals/sp-r2d2

Version:

A framework that contains various components used when developing projects that will be deployed via AWS λ.

14 lines (13 loc) 725 B
import { IResult } from '@studyportals/sp-r2d2-interface'; import { IRequest } from '../requests-interfaces/i-request.interface'; import { IRequestHandler } from '../request-handling-interfaces/i-request-handler.interface'; export declare class BaseRequestHandler implements IRequestHandler { handle(request: IRequest): Promise<IResult>; protected validateRequest(request: IRequest): Promise<void>; protected validateRequestData(data: { [key: string]: any; }): Promise<void>; protected additionalRequestValidation(request: IRequest): Promise<void>; protected authorizeRequest(request: IRequest): Promise<void>; protected executeRequest(request: IRequest): Promise<IResult>; }