Skip to main content

@bloock/sdk / AvailabilityClient

Class: AvailabilityClient

Represents a client for interacting with the Bloock Availability service.

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new AvailabilityClient(configData?): AvailabilityClient

Creates a new instance of the AvailabilityClient with default configuration.

Parameters

NameType
configData?ConfigData

Returns

AvailabilityClient

Defined in

client/availability.ts:19

Properties

bridge

Private bridge: BloockBridge

Defined in

client/availability.ts:12


configData

Private configData: ConfigData

Defined in

client/availability.ts:13

Methods

publish

publish(record, publisher): Promise<string>

Publishes a Bloock record to the Availability service using the specified publisher.

Parameters

NameType
recordRecord
publisherPublisher

Returns

Promise<string>

Defined in

client/availability.ts:30


retrieve

retrieve(loader): Promise<Record>

Gets a Bloock record from the Availability service using the specified loader.

Parameters

NameType
loaderLoader

Returns

Promise<Record>

Defined in

client/availability.ts:52