Skip to main content

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​

Constructors​

constructor​

• new LocBatch(args): LocBatch

Parameters​

NameTypeDescription
argsObject-
args.adaptersAdapterslogion adapters
args.apiApiPromisePolkadot API
args.availableVerifiedIssuers?Record<string, VerifiedIssuerType[]>DEPRECATED - a map of already fetched verified issuers per legal officer used to initialize the cache
args.locIdsUUID[]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​

LocBatch

Defined in​

LocBatch.ts:12

Properties​

adapters​

• Private adapters: Adapters

Defined in​

LocBatch.ts:33


api​

• Private api: ApiPromise

Defined in​

LocBatch.ts:32


availableVerifiedIssuers​

• Private availableVerifiedIssuers: undefined | Record<string, VerifiedIssuerType[]>

Defined in​

LocBatch.ts:85


locIds​

• Private locIds: UUID[]

Defined in​

LocBatch.ts:34


locs​

• Private locs: undefined | Record<string, LegalOfficerCase>

Defined in​

LocBatch.ts:118


locsVerifiedIssuers​

• Private locsVerifiedIssuers: undefined | Record<string, VerifiedIssuerType[]>

Defined in​

LocBatch.ts:41

Methods​

computeAvailableVerifiedIssuersMap​

▸ computeAvailableVerifiedIssuersMap(): Promise<Record<string, VerifiedIssuerType[]>>

Returns​

Promise<Record<string, VerifiedIssuerType[]>>

Defined in​

LocBatch.ts:87


computeLocs​

▸ computeLocs(locIds): Promise<Record<string, LegalOfficerCase>>

Parameters​

NameType
locIdsUUID[]

Returns​

Promise<Record<string, LegalOfficerCase>>

Defined in​

LocBatch.ts:120


computeLocsArray​

▸ computeLocsArray(locIds): Promise<(undefined | LegalOfficerCase)[]>

Parameters​

NameType
locIdsUUID[]

Returns​

Promise<(undefined | LegalOfficerCase)[]>

Defined in​

LocBatch.ts:133


computeLocsVerifiedIssuers​

▸ computeLocsVerifiedIssuers(): Promise<Record<string, VerifiedIssuerType[]>>

Returns​

Promise<Record<string, VerifiedIssuerType[]>>

Defined in​

LocBatch.ts:43


getAvailableVerifiedIssuers​

▸ getAvailableVerifiedIssuers(): Promise<Record<string, VerifiedIssuerType[]>>

Returns​

Promise<Record<string, VerifiedIssuerType[]>>

Defined in​

LocBatch.ts:80


getLocs​

▸ getLocs(): Promise<Record<string, LegalOfficerCase>>

Returns​

Promise<Record<string, LegalOfficerCase>>

Defined in​

LocBatch.ts:113


getLocsVerifiedIssuers​

▸ getLocsVerifiedIssuers(): Promise<Record<string, VerifiedIssuerType[]>>

Returns​

Promise<Record<string, VerifiedIssuerType[]>>

Defined in​

LocBatch.ts:36