Options
All
  • Public
  • Public/Protected
  • All
Menu

@azure/service-bus

Package version

Index

Type aliases

EntitiesResponse

EntitiesResponse<T>: WithResponse<Array<T>> & Pick<PageSettings, "continuationToken">

Represents the result of list operation on entities which also contains the continuationToken to start iterating over from.

Type parameters

  • T: object

EntityAvailabilityStatus

EntityAvailabilityStatus: "Available" | "Limited" | "Renaming" | "Restoring" | "Unknown"

Possible values for availabilityStatus of the Service Bus messaging entities.

EntityStatus

EntityStatus: "Active" | "Creating" | "Deleting" | "ReceiveDisabled" | "SendDisabled" | "Disabled" | "Renaming" | "Restoring" | "Unknown"

Possible values for status of the Service Bus messaging entities.

OperationOptionsBase

OperationOptionsBase: Pick<OperationOptions, "abortSignal" | "tracingOptions">

NOTE: This type is intended to mirror the relevant fields and structure from @azure/core-client OperationOptions

Options for configuring tracing and the abortSignal.

RawHttpHeaders

RawHttpHeaders: {}

A HttpHeaders collection represented as a simple JSON object.

Type declaration

  • [headerName: string]: string

ServiceBusErrorCode

ServiceBusErrorCode: "GeneralError" | "MessagingEntityNotFound" | "MessageLockLost" | "MessageNotFound" | "MessageSizeExceeded" | "MessagingEntityAlreadyExists" | "MessagingEntityDisabled" | "QuotaExceeded" | "ServiceBusy" | "ServiceTimeout" | "ServiceCommunicationProblem" | "SessionCannotBeLocked" | "SessionLockLost" | "UnauthorizedAccess"

Service Bus failure codes.

SqlRuleAction

SqlRuleAction: { sqlExpression?: undefined | string; sqlParameters?: undefined | {} }

Represents all possible fields on SqlRuleAction

Type declaration

  • Optional sqlExpression?: undefined | string

    SQL expression to use in the rule action.

  • Optional sqlParameters?: undefined | {}

    SQL parameters to the SQL expression in the rule action.

TransferProgressEvent

TransferProgressEvent: { loadedBytes: number }

Fired in response to upload or download progress.

Type declaration

  • loadedBytes: number

    The number of bytes loaded so far.

WithResponse

WithResponse<T>: T & { _response: HttpResponse }

Represents the returned response of the operation along with the raw response.

Type parameters

  • T: object

Functions

applyRequestOptions

  • applyRequestOptions(request: PipelineRequest, options: { abortSignal?: AbortSignalLike; headers?: Record<string, string>; onDownloadProgress?: undefined | ((progress: TransferProgressEvent) => void); onUploadProgress?: undefined | ((progress: TransferProgressEvent) => void); timeout: number; tracingOptions?: OperationTracingOptions }): void

calculateDelay

  • calculateDelay(attemptCount: number, retryDelayInMs: number, maxRetryDelayInMs: number, mode: RetryMode): number

getHeaderKey

  • getHeaderKey(headerName: string): string

isHttpHeadersLike

  • isHttpHeadersLike(object?: unknown): object is HttpHeadersLike

isServiceBusError

  • isServiceBusError(err: unknown): err is ServiceBusError

isSpan

  • isSpan(possibleSpan: Span | SpanContext | undefined): possibleSpan is Span

parseServiceBusConnectionString

setCustomEndpointAddress

  • setCustomEndpointAddress(config: ConnectionConfig, customEndpointAddress: string): void

signingPolicy

  • signingPolicy(credentials: { signRequest: any }): PipelinePolicy

toHttpHeaderLike

toHttpResponse

toWebResourceLike

Generated using TypeDoc