Skip to content

Latest commit

 

History

History
199 lines (112 loc) · 4.06 KB

File metadata and controls

199 lines (112 loc) · 4.06 KB

@envoy/envoy-integrations-sdk / EnvoyPluginAPI

Class: EnvoyPluginAPI

API endpoints for plugin-scoped tokens.

Hierarchy

  • EnvoyAPI

    EnvoyPluginAPI

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new EnvoyPluginAPI(accessToken)

Parameters

Name Type
accessToken string

Inherited from

EnvoyAPI.constructor

Defined in

base/EnvoyAPI.ts:59

Properties

axios

Readonly axios: AxiosInstance

HTTP Client with Envoy's defaults.

Inherited from

EnvoyAPI.axios

Defined in

base/EnvoyAPI.ts:32

Methods

createNotification

createNotification(installId, params?): Promise<void>

Parameters

Name Type
installId string
params Object

Returns

Promise<void>

Defined in

sdk/EnvoyPluginAPI.ts:61


getPluginInstallConfig

getPluginInstallConfig(installId): Promise<Record<string, unknown>>

Fetches the current config saved for this install during setup by the customer.

Parameters

Name Type
installId string

Returns

Promise<Record<string, unknown>>

Defined in

sdk/EnvoyPluginAPI.ts:27


setPluginInstallConfig

setPluginInstallConfig(installId, config): Promise<void>

Merges changes with the current config saved for this install during setup by the customer.

To remove an item from the saved config, set the item's key to null.

Parameters

Name Type
installId string
config Record<string, unknown>

Returns

Promise<void>

Defined in

sdk/EnvoyPluginAPI.ts:37


storagePipeline

storagePipeline(commands, installId?): Promise<(null | EnvoyStorageItem<unknown>)[]>

Parameters

Name Type
commands EnvoyStorageCommand[]
installId? string

Returns

Promise<(null | EnvoyStorageItem<unknown>)[]>

Defined in

sdk/EnvoyPluginAPI.ts:45


updateJob

updateJob(jobId, update): Promise<void>

Parameters

Name Type
jobId string
update default

Returns

Promise<void>

Defined in

sdk/EnvoyPluginAPI.ts:16


loginAsPlugin

Static loginAsPlugin(id?, secret?): Promise<EnvoyMetaAuth>

Gets a plugin access token using client_credentials as the grant type.

Parameters

Name Type
id string
secret string

Returns

Promise<EnvoyMetaAuth>

Defined in

sdk/EnvoyPluginAPI.ts:72