Function
Static Public Summary | ||
public |
createContext(config: object): PVBidContext Creates a authorized context instance. |
|
public |
getAssembly(entity: BidEntity): Assembly | undefined Get the entities assembly if it has one |
|
public |
Obtains a user access token and refresh_token. |
|
public |
hasAssembly(entity: BidEntity): boolean Determine if the entity has an assembly |
|
public |
setAssembly(entity: BidEntity, assembly: Assembly | string): BidEntity Set the entity's assembly reference. Omitting or passing null for the assembly will UNSET the assembly reference |
Static Public
public createContext(config: object): PVBidContext source
import {createContext} from 'pvbid-sdk/src/pvbid.js'
Creates a authorized context instance.
public getAssembly(entity: BidEntity): Assembly | undefined source
import {getAssembly} from 'pvbid-sdk/src/domain/services/BidEntityAssemblyService.js'
Get the entities assembly if it has one
Params:
Name | Type | Attribute | Description |
entity | BidEntity |
public getAuthToken(username: string, password: string, config: object): Promise<object> source
import {getAuthToken} from 'pvbid-sdk/src/pvbid.js'
Obtains a user access token and refresh_token.
public hasAssembly(entity: BidEntity): boolean source
import {hasAssembly} from 'pvbid-sdk/src/domain/services/BidEntityAssemblyService.js'
Determine if the entity has an assembly
Params:
Name | Type | Attribute | Description |
entity | BidEntity |