description |
---|
Makes calls to the Envoy API. |
Note that there are many API calls not covered by this class. Please add to this class as necessary!
Param | Type |
---|---|
token | string |
- instance
- .flows(locationId) ⇒
Promise.<Array.<EnvoyObject>>
- .signInPage(flowId) ⇒
Promise.<EnvoyObject>
- .signInFields(pageId) ⇒
Promise.<Array.<EnvoyObject>>
- .createNotificationEvent(event) ⇒
Promise.<EnvoyObject>
- .updateJob(jobId, updates) ⇒
Promise.<EnvoyObject>
- .storagePipeline(commands, [installId]) ⇒
Promise.<Array.<PluginStorageItem>>
- .flows(locationId) ⇒
- static
- .login([id], [secret])
Fetches the visitor types for this location.
Kind: instance method of EnvoyAPI
Param | Type |
---|---|
locationId | string | number |
Fetches the sign-in page details for this flow.
Kind: instance method of EnvoyAPI
Param | Type |
---|---|
flowId | string | number |
Fetches the sign-in fields for this page.
Kind: instance method of EnvoyAPI
Param | Type |
---|---|
pageId | string | number |
Creates a notification event.
Kind: instance method of EnvoyAPI
Param | Type |
---|---|
event | Object |
Updates the job.
Kind: instance method of EnvoyAPI
Param | Type |
---|---|
jobId | string | uuid |
updates | JobUpdate |
Runs the storage pipeline.
Kind: instance method of EnvoyAPI
Param | Type | Default |
---|---|---|
commands | Array.<Command> |
|
[installId] | string | uuid | number |
null |
Gets an access token using client_credentials as the grant type.
Kind: static method of EnvoyAPI
Param | Type | Default |
---|---|---|
[id] | string |
process.env.ENVOY_CLIENT_ID |
[secret] | string |
process.env.ENVOY_CLIENT_SECRET |
Properties
Name | Type | Description |
---|---|---|
id | string | number | uuid |
the ID of the object |
attributes | Object |
the object's attributes, in dash-case. |
Properties
Name | Type | Description |
---|---|---|
type | string |
only "password" supported :( |
label | string |
the label to display in Garaje |
value | string |
the value to display in Garaje |
Properties
Name | Type |
---|---|
[status] | string |
[status_message] | string |
[failure_reason] | string |
[attachments] | Array.<Attachment> |
Properties
Name | Type |
---|---|
key | string |
value |
Properties
Name | Type | Description |
---|---|---|
action | string |
the type of command to run |
key | string |
the key to operate on |