Integration
This class defines a Integration from an [[User]] to an external service.
Extends
ResourceProperty<bkper.Integration>
Constructors
Constructor
new Integration(payload?, config?): Integration;Parameters
| Parameter | Type |
|---|---|
payload? | Integration |
config? | Config |
Returns
Integration
Overrides
ResourceProperty<bkper.Integration>.constructorProperties
payload
payload: Integration;The underlying payload data for this resource
Inherited from
ResourceProperty.payloadMethods
deleteProperty()
deleteProperty(key): this;Deletes a custom property.
Parameters
| Parameter | Type | Description |
|---|---|---|
key | string | The property key |
Returns
this
This resource, for chaining
Inherited from
ResourceProperty.deletePropertygetAddedBy()
getAddedBy(): string | undefined;Gets the name of the user who added the Integration.
Returns
string | undefined
The user name of who added the Integration
getAgentId()
getAgentId(): string | undefined;Gets the agent id of the Integration.
Returns
string | undefined
The Integration’s agent id
getBookId()
getBookId(): string | undefined;Gets the [[Book]] id of the Integration.
Returns
string | undefined
The Integration’s Book id
getDateAddedMs()
getDateAddedMs(): string | undefined;Gets the date when the Integration was added.
Returns
string | undefined
The Integration add date in milliseconds
getId()
getId(): string | undefined;Gets the id of the Integration.
Returns
string | undefined
This Integration’s id
getLastUpdateMs()
getLastUpdateMs(): string | undefined;Gets the date when the Integration was last updated.
Returns
string | undefined
The Integration last update date in milliseconds
getLogo()
getLogo(): string | undefined;Gets the logo of the Integration.
Returns
string | undefined
The Integration’s logo
getLogoUrl()
getLogoUrl(): string | undefined;Gets the logo url of this Integration.
Returns
string | undefined
The logo url of this Integration
getLogoUrlDark()
getLogoUrlDark(): string | undefined;Gets the logo url of this Integration in dark mode.
Returns
string | undefined
The logo url of this Integration in dark mode
getName()
getName(): string | undefined;Gets the name of the Integration.
Returns
string | undefined
The Integration’s name
getProperties()
getProperties(): object;Gets the custom properties stored in this resource.
Returns
object
Object with key/value pair properties
Inherited from
ResourceProperty.getPropertiesgetProperty()
getProperty(...keys): string | undefined;Gets the property value for given keys. First property found will be retrieved.
Parameters
| Parameter | Type | Description |
|---|---|---|
…keys | string[] | The property keys to search for |
Returns
string | undefined
The property value or undefined if not found
Inherited from
ResourceProperty.getPropertygetPropertyKeys()
getPropertyKeys(): string[];Gets the custom properties keys stored in this resource.
Returns
string[]
Array of property keys sorted alphabetically
Inherited from
ResourceProperty.getPropertyKeysgetVisibleProperties()
getVisibleProperties(): object;Gets the visible custom properties stored in this resource. Hidden properties (those ending with ”_”) are excluded from the result.
Returns
object
Object with key/value pair properties, excluding hidden properties
Inherited from
ResourceProperty.getVisiblePropertiesjson()
json(): Integration;Gets an immutable copy of the JSON payload for this resource.
Returns
Integration
An immutable copy of the json payload
Inherited from
ResourceProperty.jsonremove()
remove(): Promise<Integration>;Performs remove Integration.
Returns
Promise<Integration>
The removed Integration object
setProperties()
setProperties(properties): this;Sets the custom properties of this resource.
Parameters
| Parameter | Type | Description |
|---|---|---|
properties | { [key: string]: string; } | Object with key/value pair properties |
Returns
this
This resource, for chaining
Inherited from
ResourceProperty.setPropertiessetProperty()
setProperty(key, value): this;Sets a custom property in this resource.
Parameters
| Parameter | Type | Description |
|---|---|---|
key | string | The property key |
value | string | null | undefined | The property value, or null/undefined to clean it |
Returns
this
This resource, for chaining
Inherited from
ResourceProperty.setPropertysetVisibleProperties()
setVisibleProperties(properties): this;Sets the custom properties of this resource, filtering out hidden properties. Hidden properties are those whose keys end with an underscore ”_”.
Parameters
| Parameter | Type | Description |
|---|---|---|
properties | { [key: string]: string; } | Object with key/value pair properties |
Returns
this
This resource, for chaining
Inherited from
ResourceProperty.setVisiblePropertiessetVisibleProperty()
setVisibleProperty(key, value): this;Sets a custom property in this resource, filtering out hidden properties. Hidden properties are those whose keys end with an underscore ”_”.
Parameters
| Parameter | Type | Description |
|---|---|---|
key | string | The property key |
value | string | null | undefined | The property value, or null/undefined to clean it |
Returns
this
This resource, for chaining
Inherited from
ResourceProperty.setVisibleProperty