Skip to content

@btravstack/temporal-client


@btravstack/temporal-client ​

Classes ​

TemporalClientUnreachable ​

Defined in: packages/temporal-client/src/index.ts:14

The Temporal service did not answer while the client connection opened.

Extends ​

  • TaggedErrorInstance<"TemporalClientUnreachable", { address: string; cause: unknown; }>

Constructors ​

Constructor ​
ts
new TemporalClientUnreachable(args): TemporalClientUnreachable;

Defined in: node_modules/.pnpm/unthrown@5.12.1/node_modules/unthrown/dist/index.d.mts:2386

Parameters ​
ParameterType
argsobject & object
Returns ​

TemporalClientUnreachable

Inherited from ​
ts
TaggedError("TemporalClientUnreachable")<{
  readonly address: string;
  readonly cause: unknown;
}>.constructor

Properties ​

PropertyModifierTypeOverridesInherited fromDefined in
_tagreadonly"TemporalClientUnreachable"-TaggedError("TemporalClientUnreachable")._tagnode_modules/.pnpm/unthrown@5.12.1/node_modules/unthrown/dist/index.d.mts:2363
addressreadonlystring-TaggedError("TemporalClientUnreachable").addresspackages/temporal-client/src/index.ts:15
causepublicunknown-TaggedError("TemporalClientUnreachable").causenode_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.error.d.ts:24
messagepublicstringTaggedError("TemporalClientUnreachable").message-packages/temporal-client/src/index.ts:18
namepublicstring-TaggedError("TemporalClientUnreachable").namenode_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1074
stack?publicstring-TaggedError("TemporalClientUnreachable").stacknode_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Type Aliases ​

TemporalClientSettings ​

ts
type TemporalClientSettings = object;

Defined in: packages/temporal-client/src/index.ts:8

The deployment settings needed to call a Temporal service.

Properties ​

PropertyModifierTypeDefined in
addressreadonlystringpackages/temporal-client/src/index.ts:9
namespacereadonlystringpackages/temporal-client/src/index.ts:10

Functions ​

temporalClient() ​

ts
function temporalClient<Settings, ClientId, ConnectionId, SettingsId>(
   port, 
   connection, 
   settings
): Provider<PortInstance<ClientId, TypedClient>, never, 
  | PortInstance<ConnectionId, Connection>
  | PortInstance<SettingsId, Settings>> & object;

Defined in: packages/temporal-client/src/index.ts:41

Bind the typed Temporal client; callers choose a contract with client.for(contract).

Type Parameters ​

Type Parameter
Settings extends TemporalClientSettings
ClientId extends string
ConnectionId extends string
SettingsId extends string

Parameters ​

ParameterType
portPortClassOf<ClientId, TypedClient>
connectionPortClassOf<ConnectionId, Connection>
settingsPortClassOf<SettingsId, Settings>

Returns ​

Provider<PortInstance<ClientId, TypedClient>, never, | PortInstance<ConnectionId, Connection> | PortInstance<SettingsId, Settings>> & object


temporalConnection() ​

ts
function temporalConnection<Settings, ConnectionId, SettingsId>(port, settings): Provider<PortInstance<ConnectionId, Connection>, TemporalClientUnreachable, PortInstance<SettingsId, Settings> | Scope> & object;

Defined in: packages/temporal-client/src/index.ts:22

Acquire and release a Temporal connection with the DI scope.

Type Parameters ​

Type Parameter
Settings extends TemporalClientSettings
ConnectionId extends string
SettingsId extends string

Parameters ​

ParameterType
portPortClassOf<ConnectionId, Connection>
settingsPortClassOf<SettingsId, Settings>

Returns ​

Provider<PortInstance<ConnectionId, Connection>, TemporalClientUnreachable, PortInstance<SettingsId, Settings> | Scope> & object

Released under the MIT License.