Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions dist/index.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions dist/workflow-step-template-schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions dist/workflow-template-schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions src/schemata/definitions/step/command-handler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
type: object
title: Command Handler
description: |
A Command handler always consists of an [action](/schemas/definitions/workflow-template/actions/).
required: [do]
additionalProperties: false
properties:
do:
$ref: '#/definitions/workflow-template/actions'
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ additionalProperties:
description: |
The command to execute. Available commands are device
specific.
onSuccess:
description: The handler for success response
$ref: '#/definitions/step/command-handler'
onError:
description: The handler for error response
$ref: '#/definitions/step/command-handler'
25 changes: 25 additions & 0 deletions src/workflow-step-template-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1619,6 +1619,16 @@
"type": "string",
"description": "The command to execute. Available commands are device\nspecific.\n",
"markdownDescription": "The command to execute. Available commands are device\nspecific.\n\n\nSee more: [Send Command Schema](https://schema.laboperator.com/schemas/definitions/workflow-template/action-objects/send-command) "
},
"onSuccess": {
"description": "The handler for success response",
"$ref": "#/definitions/step/command-handler",
"markdownDescription": "The handler for success response\n\nSee more: [Send Command Schema](https://schema.laboperator.com/schemas/definitions/workflow-template/action-objects/send-command) "
},
"onError": {
"description": "The handler for error response",
"$ref": "#/definitions/step/command-handler",
"markdownDescription": "The handler for error response\n\nSee more: [Send Command Schema](https://schema.laboperator.com/schemas/definitions/workflow-template/action-objects/send-command) "
}
}
},
Expand Down Expand Up @@ -3240,6 +3250,21 @@
"markdownDescription": "Rules can be leveraged to dynamically change both the behavior and appearance of a table.\n\nWhen a rule condition is fulfilled, the `editable` and `selectable` behavior of cells, rows, columns, or tabs can be set. Likewise, the background color or text color can be changed to visualize a certain state or change of behavior to the user. For example:\n\n  - When a cell number value is negative, change the background color to red.\n  - When a cell number value is positive, change the background color to green, make it selectable, but no longer editable.\n  - When all cells in a column have no value, the column cells are not selectable or editable across all other tabs of the table.\n\n\nSee more: [Rules Schema](https://schema.laboperator.com/schemas/definitions/step/table-attributes/rules) "
}
},
"command-handler": {
"type": "object",
"title": "Command Handler",
"description": "A Command handler always consists of an [action](/schemas/definitions/workflow-template/actions/).\n",
"required": [
"do"
],
"additionalProperties": false,
"properties": {
"do": {
"$ref": "#/definitions/workflow-template/actions"
}
},
"markdownDescription": "A Command handler always consists of an [action](https://schema.laboperator.com/schemas/definitions/workflow-template/actions/).\n\n\nSee more: [Command Handler Schema](https://schema.laboperator.com/schemas/definitions/step/command-handler) "
},
"webhook-handler": {
"type": "object",
"title": "Webhook Handler",
Expand Down
25 changes: 25 additions & 0 deletions src/workflow-template-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1440,6 +1440,21 @@
],
"markdownDescription": "Define accessors for selector options. You can map the selector options to fields defined in a field.\n\n\nSee more: [Selector Accessors Schema](https://schema.laboperator.com/schemas/definitions/step/selector-accessors) "
},
"command-handler": {
"type": "object",
"title": "Command Handler",
"description": "A Command handler always consists of an [action](/schemas/definitions/workflow-template/actions/).\n",
"required": [
"do"
],
"additionalProperties": false,
"properties": {
"do": {
"$ref": "#/definitions/workflow-template/actions"
}
},
"markdownDescription": "A Command handler always consists of an [action](https://schema.laboperator.com/schemas/definitions/workflow-template/actions/).\n\n\nSee more: [Command Handler Schema](https://schema.laboperator.com/schemas/definitions/step/command-handler) "
},
"webhook-handler": {
"type": "object",
"title": "Webhook Handler",
Expand Down Expand Up @@ -2750,6 +2765,16 @@
"type": "string",
"description": "The command to execute. Available commands are device\nspecific.\n",
"markdownDescription": "The command to execute. Available commands are device\nspecific.\n\n\nSee more: [Send Command Schema](https://schema.laboperator.com/schemas/definitions/workflow-template/action-objects/send-command) "
},
"onSuccess": {
"description": "The handler for success response",
"$ref": "#/definitions/step/command-handler",
"markdownDescription": "The handler for success response\n\nSee more: [Send Command Schema](https://schema.laboperator.com/schemas/definitions/workflow-template/action-objects/send-command) "
},
"onError": {
"description": "The handler for error response",
"$ref": "#/definitions/step/command-handler",
"markdownDescription": "The handler for error response\n\nSee more: [Send Command Schema](https://schema.laboperator.com/schemas/definitions/workflow-template/action-objects/send-command) "
}
}
},
Expand Down