@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
Name | Type |
---|---|
configData? | ConfigData |
Returns
Defined in
Properties
bridge
• Private
bridge: BloockBridge
Defined in
configData
• Private
configData: ConfigData
Defined in
Methods
publish
▸ publish(record
, publisher
): Promise
<string
>
Publishes a Bloock record to the Availability service using the specified publisher.
Parameters
Name | Type |
---|---|
record | Record |
publisher | Publisher |
Returns
Promise
<string
>
Defined in
retrieve
▸ retrieve(loader
): Promise
<Record
>
Gets a Bloock record from the Availability service using the specified loader.
Parameters
Name | Type |
---|---|
loader | Loader |
Returns
Promise
<Record
>