Skip to main content

@skyleague/event-horizon

Index

Classes

Errors

Functions

Interfaces

Namespaces

Type Aliases

Variables

Type Aliases

APIGatewayHttpMethod

APIGatewayHttpMethod: typeof APIGatewayHttpMethod

APIGatewayRecord

APIGatewayRecord: {} | null

Config

Config<C>: C | () => C | Promise<C>

Type parameters

  • C

ErrorLike

ErrorLike: Error | string

EventFromHandler

EventFromHandler<Handler>: Handler extends { handler: (event: infer EventType, ...args: any[]) => any } ? EventType : never

Type parameters

  • Handler: { handler: (event: any, ...args: any[]) => any }

EventHandler

EventHandler<Service>: EventBridgeHandler | FirehoseTransformationHandler | HTTPHandler | KinesisHandler | RawHandler | S3BatchHandler | S3Handler | SNSHandler | SQSHandler | DynamoDBStreamHandler | (Service extends SetRequired<DefaultServices, secretsManager> ? SecretRotationHandler<unknown, Service> : never)

Type parameters

  • Service = unknown

GatewayVersion

GatewayVersion: http | rest

HTTPHeaders

HTTPHeaders: Record<string, string | undefined>

HTTPMethod

HTTPMethod: delete | get | head | options | patch | post | put | trace

HTTPPathParameters

HTTPPathParameters: Record<string, string | undefined>

HTTPQueryParameters

HTTPQueryParameters: Record<string, string | undefined>

Services

Services<C, S>: S | (config: AsConfig<C>) => Promise<S> | S

Type parameters

  • C
  • S

Variables

constAPIGatewayHttpMethod

APIGatewayHttpMethod: { DELETE: DELETE; GET: GET; HEAD: HEAD; OPTIONS: OPTIONS; PATCH: PATCH; POST: POST; PUT: PUT } = ...

Type declaration

  • readonlyDELETE: DELETE
  • readonlyGET: GET
  • readonlyHEAD: HEAD
  • readonlyOPTIONS: OPTIONS
  • readonlyPATCH: PATCH
  • readonlyPOST: POST
  • readonlyPUT: PUT

Context

Context: { is: (o: unknown) => o is Context; parse: (o: unknown) => { right: Context } | { left: DefinedError[] }; validate: ValidateFunction<Context>; errors: any; schema: any }

Type declaration

  • readonlyis: (o: unknown) => o is Context
  • readonlyparse: (o: unknown) => { right: Context } | { left: DefinedError[] }
      • (o: unknown): { right: Context } | { left: DefinedError[] }
      • Parameters

        • o: unknown

        Returns { right: Context } | { left: DefinedError[] }

  • readonlyvalidate: ValidateFunction<Context>
  • get errors(): undefined | ErrorObject<string, Record<string, any>, unknown>[]
  • get schema(): AnySchema

EventBridgeSchema

EventBridgeSchema: { is: (o: unknown) => o is EventBridgeSchema; parse: (o: unknown) => { right: EventBridgeSchema } | { left: DefinedError[] }; validate: ValidateFunction<EventBridgeSchema>; errors: any; schema: any }

Type declaration

KinesisDataStreamRecord

KinesisDataStreamRecord: { is: (o: unknown) => o is KinesisDataStreamRecord; parse: (o: unknown) => { right: KinesisDataStreamRecord } | { left: DefinedError[] }; validate: ValidateFunction<KinesisDataStreamRecord>; errors: any; schema: any }

Type declaration

KinesisDataStreamSchema

KinesisDataStreamSchema: { is: (o: unknown) => o is KinesisDataStreamSchema; parse: (o: unknown) => { right: KinesisDataStreamSchema } | { left: DefinedError[] }; validate: ValidateFunction<KinesisDataStreamSchema>; errors: any; schema: any }

Type declaration

KinesisFirehoseRecord

KinesisFirehoseRecord: { is: (o: unknown) => o is KinesisFirehoseRecord; parse: (o: unknown) => { right: KinesisFirehoseRecord } | { left: DefinedError[] }; validate: ValidateFunction<KinesisFirehoseRecord>; errors: any; schema: any }

Type declaration

KinesisFirehoseSchema

KinesisFirehoseSchema: { is: (o: unknown) => o is KinesisFirehoseSchema; parse: (o: unknown) => { right: KinesisFirehoseSchema } | { left: DefinedError[] }; validate: ValidateFunction<KinesisFirehoseSchema>; errors: any; schema: any }

Type declaration

S3BatchEvent

S3BatchEvent: { is: (o: unknown) => o is S3BatchEvent; parse: (o: unknown) => { right: S3BatchEvent } | { left: DefinedError[] }; validate: ValidateFunction<S3BatchEvent>; errors: any; schema: any }

Type declaration

  • readonlyis: (o: unknown) => o is S3BatchEvent
  • readonlyparse: (o: unknown) => { right: S3BatchEvent } | { left: DefinedError[] }
      • (o: unknown): { right: S3BatchEvent } | { left: DefinedError[] }
      • Parameters

        • o: unknown

        Returns { right: S3BatchEvent } | { left: DefinedError[] }

  • readonlyvalidate: ValidateFunction<S3BatchEvent>
  • get errors(): undefined | ErrorObject<string, Record<string, any>, unknown>[]
  • get schema(): AnySchema

S3BatchEventTask

S3BatchEventTask: { is: (o: unknown) => o is S3BatchEventTask; parse: (o: unknown) => { right: S3BatchEventTask } | { left: DefinedError[] }; validate: ValidateFunction<S3BatchEventTask>; errors: any; schema: any }

Type declaration

S3EventNotificationEventBridgeDetailSchema

S3EventNotificationEventBridgeDetailSchema: { is: (o: unknown) => o is S3EventNotificationEventBridgeDetailSchema; parse: (o: unknown) => { right: S3EventNotificationEventBridgeDetailSchema } | { left: DefinedError[] }; validate: ValidateFunction<S3EventNotificationEventBridgeDetailSchema>; errors: any; schema: any }

Type declaration

S3RecordSchema

S3RecordSchema: { is: (o: unknown) => o is S3RecordSchema; parse: (o: unknown) => { right: S3RecordSchema } | { left: DefinedError[] }; validate: ValidateFunction<S3RecordSchema>; errors: any; schema: any }

Type declaration

  • readonlyis: (o: unknown) => o is S3RecordSchema
  • readonlyparse: (o: unknown) => { right: S3RecordSchema } | { left: DefinedError[] }
      • Parameters

        • o: unknown

        Returns { right: S3RecordSchema } | { left: DefinedError[] }

  • readonlyvalidate: ValidateFunction<S3RecordSchema>
  • get errors(): undefined | ErrorObject<string, Record<string, any>, unknown>[]
  • get schema(): AnySchema

S3Schema

S3Schema: { is: (o: unknown) => o is S3Schema; parse: (o: unknown) => { right: S3Schema } | { left: DefinedError[] }; validate: ValidateFunction<S3Schema>; errors: any; schema: any }

Type declaration

  • readonlyis: (o: unknown) => o is S3Schema
  • readonlyparse: (o: unknown) => { right: S3Schema } | { left: DefinedError[] }
      • (o: unknown): { right: S3Schema } | { left: DefinedError[] }
      • Parameters

        • o: unknown

        Returns { right: S3Schema } | { left: DefinedError[] }

  • readonlyvalidate: ValidateFunction<S3Schema>
  • get errors(): undefined | ErrorObject<string, Record<string, any>, unknown>[]
  • get schema(): AnySchema

SecretRotationEvent

SecretRotationEvent: { is: (o: unknown) => o is SecretRotationEvent; parse: (o: unknown) => { right: SecretRotationEvent } | { left: DefinedError[] }; validate: ValidateFunction<SecretRotationEvent>; errors: any; schema: any }

Type declaration

SnsRecordSchema

SnsRecordSchema: { is: (o: unknown) => o is SnsRecordSchema; parse: (o: unknown) => { right: SnsRecordSchema } | { left: DefinedError[] }; validate: ValidateFunction<SnsRecordSchema>; errors: any; schema: any }

Type declaration

SnsSchema

SnsSchema: { is: (o: unknown) => o is SnsSchema; parse: (o: unknown) => { right: SnsSchema } | { left: DefinedError[] }; validate: ValidateFunction<SnsSchema>; errors: any; schema: any }

Type declaration

  • readonlyis: (o: unknown) => o is SnsSchema
  • readonlyparse: (o: unknown) => { right: SnsSchema } | { left: DefinedError[] }
      • (o: unknown): { right: SnsSchema } | { left: DefinedError[] }
      • Parameters

        • o: unknown

        Returns { right: SnsSchema } | { left: DefinedError[] }

  • readonlyvalidate: ValidateFunction<SnsSchema>
  • get errors(): undefined | ErrorObject<string, Record<string, any>, unknown>[]
  • get schema(): AnySchema

SqsRecordSchema

SqsRecordSchema: { is: (o: unknown) => o is SqsRecordSchema; parse: (o: unknown) => { right: SqsRecordSchema } | { left: DefinedError[] }; validate: ValidateFunction<SqsRecordSchema>; errors: any; schema: any }

Type declaration

SqsSchema

SqsSchema: { is: (o: unknown) => o is SqsSchema; parse: (o: unknown) => { right: SqsSchema } | { left: DefinedError[] }; validate: ValidateFunction<SqsSchema>; errors: any; schema: any }

Type declaration

  • readonlyis: (o: unknown) => o is SqsSchema
  • readonlyparse: (o: unknown) => { right: SqsSchema } | { left: DefinedError[] }
      • (o: unknown): { right: SqsSchema } | { left: DefinedError[] }
      • Parameters

        • o: unknown

        Returns { right: SqsSchema } | { left: DefinedError[] }

  • readonlyvalidate: ValidateFunction<SqsSchema>
  • get errors(): undefined | ErrorObject<string, Record<string, any>, unknown>[]
  • get schema(): AnySchema

constappConfigConstants

appConfigConstants: AppConfigConstants = ...

consteventConstants

eventConstants: EventConstants = ...

constinitConstants

initConstants: InitConstants = ...

constlogger

logger: Logger = ...

constloggingConstants

loggingConstants: LoggingConstants = ...

constmetrics

metrics: Metrics = ...

constmetricsConstants

metricsConstants: { namespace: string } = ...

Type declaration

  • namespace: string

constserviceConstants

serviceConstants: ServiceConstants = ...

consttracer

tracer: Tracer = ...