description |
---|
Updates jobs by updating statuses, adding attachments, etc. |
Param | Type |
---|---|
pluginAPI | EnvoyAPI |
jobId | string | uuid |
- instance
- .api :
EnvoyAPI
- .id :
string
|uuid
- .execute(status, message, [reason], [attachments]) ⇒
Promise.<EnvoyObject>
- .attach(...attachments) ⇒
Promise.<EnvoyObject>
- .complete(message, [...attachments]) ⇒
Promise.<EnvoyObject>
- .ignore(message, reason) ⇒
Promise.<EnvoyObject>
- .fail(message, reason) ⇒
Promise.<EnvoyObject>
- .update(message, [...attachments]) ⇒
Promise.<EnvoyObject>
- .api :
Updates a job.
Kind: instance method of EnvoyPluginJob
Param | Type |
---|---|
status | string | null |
message | string | null |
[reason] | string | null |
[attachments] | Array.<Attachment> | null |
Attaches items to an in-progress job.
Kind: instance method of EnvoyPluginJob
Param | Type |
---|---|
...attachments | Attachment |
Completes the job.
Kind: instance method of EnvoyPluginJob
Param | Type |
---|---|
message | string |
[...attachments] | Attachment |
Ignores the job.
Kind: instance method of EnvoyPluginJob
Param | Type |
---|---|
message | string |
reason | string |
Fails the job.
Kind: instance method of EnvoyPluginJob
Param | Type |
---|---|
message | string |
reason | string |
Updates the job's message, with optional attachments. Useful for multi-step jobs.
Kind: instance method of EnvoyPluginJob
Param | Type |
---|---|
message | |
[...attachments] | Attachment |
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 |