Reference / Modules / node-api / LocBatch
Class: LocBatch
node-api.LocBatch
Batches queries on LOCs and their associated Verified Issuers. Query results are cached. The object must be re-created in order to get fresh data.
Table of contents
Constructors
Properties
Methods
- computeAvailableVerifiedIssuersMap
- computeLocs
- computeLocsArray
- computeLocsVerifiedIssuers
- getAvailableVerifiedIssuers
- getLocs
- getLocsVerifiedIssuers
Constructors
constructor
• new LocBatch(args
): LocBatch
Parameters
Name | Type | Description |
---|---|---|
args | Object | - |
args.adapters | Adapters | logion adapters |
args.api | ApiPromise | Polkadot API |
args.availableVerifiedIssuers? | Record <string , VerifiedIssuerType []> | DEPRECATED - a map of already fetched verified issuers per legal officer used to initialize the cache |
args.locIds | UUID [] | The IDs of the LOCs to consider |
args.locs? | Record <string , LegalOfficerCase > | DEPRECATED - a map of already fetched LOCs used to initialize the cache |
Returns
Defined in
Properties
adapters
• Private
adapters: Adapters
Defined in
api
• Private
api: ApiPromise
Defined in
availableVerifiedIssuers
• Private
availableVerifiedIssuers: undefined
| Record
<string
, VerifiedIssuerType
[]>
Defined in
locIds
• Private
locIds: UUID
[]
Defined in
locs
• Private
locs: undefined
| Record
<string
, LegalOfficerCase
>
Defined in
locsVerifiedIssuers
• Private
locsVerifiedIssuers: undefined
| Record
<string
, VerifiedIssuerType
[]>
Defined in
Methods
computeAvailableVerifiedIssuersMap
▸ computeAvailableVerifiedIssuersMap(): Promise
<Record
<string
, VerifiedIssuerType
[]>>
Returns
Promise
<Record
<string
, VerifiedIssuerType
[]>>
Defined in
computeLocs
▸ computeLocs(locIds
): Promise
<Record
<string
, LegalOfficerCase
>>
Parameters
Name | Type |
---|---|
locIds | UUID [] |
Returns
Promise
<Record
<string
, LegalOfficerCase
>>
Defined in
computeLocsArray
▸ computeLocsArray(locIds
): Promise
<(undefined
| LegalOfficerCase
)[]>
Parameters
Name | Type |
---|---|
locIds | UUID [] |
Returns
Promise
<(undefined
| LegalOfficerCase
)[]>
Defined in
computeLocsVerifiedIssuers
▸ computeLocsVerifiedIssuers(): Promise
<Record
<string
, VerifiedIssuerType
[]>>
Returns
Promise
<Record
<string
, VerifiedIssuerType
[]>>
Defined in
getAvailableVerifiedIssuers
▸ getAvailableVerifiedIssuers(): Promise
<Record
<string
, VerifiedIssuerType
[]>>
Returns
Promise
<Record
<string
, VerifiedIssuerType
[]>>
Defined in
getLocs
▸ getLocs(): Promise
<Record
<string
, LegalOfficerCase
>>
Returns
Promise
<Record
<string
, LegalOfficerCase
>>
Defined in
getLocsVerifiedIssuers
▸ getLocsVerifiedIssuers(): Promise
<Record
<string
, VerifiedIssuerType
[]>>
Returns
Promise
<Record
<string
, VerifiedIssuerType
[]>>