UNPKG

@swarmion/serverless-contracts

Version:

Generate and use type-safe contracts between your Serverless services.

9 lines 955 B
import { ValidateFunction } from 'ajv'; import { JSONSchema } from 'json-schema-to-ts'; import { SQSContract } from '../sqsContract'; import { GetSQSHandlerOptions, SendMessageBuilderOptions } from '../types'; export declare const getSchema: <Contract extends SQSContract>(contract: Contract, { validateBody, validateAttributes }: GetSQSHandlerOptions<boolean>) => JSONSchema | undefined; export declare const getRecordsValidator: <Contract extends SQSContract>(contract: Contract, options: GetSQSHandlerOptions<boolean>) => ValidateFunction | undefined; export declare const getBodyValidator: <Contract extends SQSContract>(contract: Contract, options: SendMessageBuilderOptions<Contract>) => ValidateFunction | undefined; export declare const getMessageAttributesValidator: <Contract extends SQSContract>(contract: Contract, options: SendMessageBuilderOptions<Contract>) => ValidateFunction | undefined; //# sourceMappingURL=getRecordsValidator.d.ts.map