import { FromSchema, JSONSchema } from 'json-schema-to-ts'; import { O } from 'ts-toolbelt'; import { StringDictionaryJSONSchema } from '../../../types/constrainedJSONSchema'; import { GenericApiGatewayContract } from '../apiGatewayContract'; export type PathParametersType = Contract['pathParametersSchema'] extends StringDictionaryJSONSchema ? FromSchema : undefined; export type QueryStringParametersType = Contract['queryStringParametersSchema'] extends StringDictionaryJSONSchema ? FromSchema : undefined; export type HeadersType = Contract['headersSchema'] extends StringDictionaryJSONSchema ? FromSchema : undefined; export type CustomRequestContextType = Contract['requestContextSchema'] extends JSONSchema ? FromSchema : undefined; export type BodyType = Contract['bodySchema'] extends JSONSchema ? FromSchema : undefined; export type OutputsType = { [StatusCode in keyof Contract['outputSchemas']]: { statusCode: StatusCode; headers?: Record; body: Contract['outputSchemas'][StatusCode] extends JSONSchema ? FromSchema : void; }; }; export type OutputType = O.UnionOf>; //# sourceMappingURL=common.d.ts.map