Options
All
  • Public
  • Public/Protected
  • All
Menu

@pebula/nesbus

Index

Type aliases

EmitterMetadataForTarget

EmitterMetadataForTarget: Array<{ key: string | symbol; metadata: SbEmitterMetadata }>

MetaOrMetaFactory

MetaOrMetaFactory<T>: T | ((helper?: any) => T | Promise<T>)

Type parameters

  • T

PropOrMethodDecorator

PropOrMethodDecorator<TVar, TTrue>: TVar extends TTrue ? MethodDecorator : <T, K>(target: T, key: K) => void

Type parameters

  • TVar

  • TTrue

SbContextArgs

SbContextArgs<T>: [SbSubscriberMetadata<T>, ServiceBusMessage]

Type parameters

SbCorrelationFilter

SbCorrelationFilter: Partial<CorrelationFilter>

SbCredentials

SbEmitterRef

A Reference to an existing client emitter. This is basically a query to get the service bus Sender instance for the client registered at the queue / topic name.

Note that if you're using unique client name you can also provide the specific client id to target.

Type (topic/queue) is irrelevant because in any case two identical entities can not share the same name event if they are of different type.

SbEntityProvisionOption

SbEntityProvisionOption<T>: SgEntityProvisionType | T

Type parameters

SbInterceptorMetadataForTarget

SbInterceptorMetadataForTarget: Map<string | symbol, Array<SbInterceptor | Type<SbInterceptor>>>

SbLinkedEntityProvisionOption

SbLinkedEntityProvisionOption<T>: T extends "queue" ? { provision: SbEntityProvisionOption<SbQueueEntityProvision>; type: "queue" } : { provision: SbEntityProvisionOption<SbTopicEntityProvision>; type: "topic" }

Type parameters

  • T: "queue" | "topic"

SbMessageEmitter

SbMessageEmitter: SbEmitterRef | SbEmitterImp

Represents an object that can be used (directly or indirectly) to emit messages to service bus. This can be either a directly emitting object or a reference that is used to resolve a directly emitting object.

SbQueue

SbQueue: Partial<Omit<QueueDetails, "queueName">>

SbRule

SbRule: Partial<Omit<RuleDetails, "createdOn">>

SbSqlFilter

SbSqlFilter: Partial<Omit<SqlFilter, "sqlParameters">>

SbSubscription

SbSubscription: Partial<Omit<SubscriptionDetails, "subscriptionName" | "topicName">>

SbTopic

SbTopic: Partial<Omit<TopicDetails, "topicName">>

SgEntityProvisionType

SgEntityProvisionType: "verify" | "verifyCreate" | "skip"

SubscriberMetadataForTarget

SubscriberMetadataForTarget: Array<{ key: string | symbol; metadata: SbSubscriberMetadata }>

Variables

Const QueueEmitter

QueueEmitter: (metadata: MetaOrMetaFactory<SbQueueEmitterMetadataOptions>) => PropertyDecorator

Subscribes to incoming events from a queue

Type declaration

Const Topic

Topic: (metadata: MetaOrMetaFactory<SbTopicMetadataOptions>) => PropertyDecorator

Subscribes to incoming events from a topic

Type declaration

Functions

Queue

SbIntercept

  • Parameters

    Returns <T, K>(target: T, key: K) => void

      • <T, K>(target: T, key: K): void
      • Type parameters

        • T: Record<K, OperatorFunction<SbContext<"queue" | "subscription">, any>>

        • K: string

        Parameters

        • target: T
        • key: K

        Returns void

Subscription

createSbServer

  • createSbServer(serverId?: string): SbServer
  • Create or returns and existing server.

    This is for use on the strategy property option when creating a microservice.

    Parameters

    • Optional serverId: string

    Returns SbServer

Generated using TypeDoc