interface ServiceBusSdkModule

Declares the constructors used from the real Azure Service Bus SDK.

Properties

RetryMode: { readonly Exponential: number; readonly Fixed: number; }

The SDK's numeric RetryMode enum (re-exported by @azure/service-bus). The public ServiceBusRetryOptions.mode string is translated through this before reaching the SDK — @azure/core-amqp compares the value with === against its enum, so an untranslated string silently behaves as the SDK default (Fixed).

ServiceBusClient: new (
connectionString: string,
options?: { retryOptions?: Omit<ServiceBusRetryOptions, "mode"> & { mode?: number; }; }
) => { createSender(queueOrTopicName: string): { sendMessages(messages: { body: unknown; }): Promise<void>; close(): Promise<void>; }; createReceiver(
queueName: string,
options?: unknown
): IServiceBusReceiver; createReceiver(
topicName: string,
subscriptionName: string,
options?: unknown
): IServiceBusReceiver; close(): Promise<void>; }
ServiceBusAdministrationClient: new (connectionString: string) => { createSubscription(
topicName: string,
subscriptionName: string
): Promise<unknown>; deleteSubscription(
topicName: string,
subscriptionName: string
): Promise<unknown>; getNamespaceProperties?(): Promise<unknown>; }

Usage

import { type ServiceBusSdkModule } from "messaging-plugin/src/index.ts";