schemas/flowVersion.json in losant_rest-1.6.0 vs schemas/flowVersion.json in losant_rest-1.7.0
- old
+ new
@@ -63,10 +63,11 @@
"endpoint",
"event",
"integration",
"mqttTopic",
"request",
+ "customNodeStart",
"timer",
"udp",
"virtualButton",
"webhook"
]
@@ -159,8 +160,322 @@
}
},
"minimumAgentVersion": {
"type": "string",
"pattern": "^(0|([1-9]\\d*))\\.(0|([1-9]\\d*))\\.(0|([1-9]\\d*))$"
+ },
+ "customNodeConfig": {
+ "type": "object",
+ "properties": {
+ "outputCount": {
+ "type": "number",
+ "enum": [
+ 1,
+ 2
+ ]
+ },
+ "resultMode": {
+ "type": "string",
+ "enum": [
+ "optional",
+ "required",
+ "none"
+ ]
+ },
+ "resultDescription": {
+ "type": "string",
+ "maxLength": 32767
+ },
+ "fields": {
+ "type": "array",
+ "maxItems": 100,
+ "items": {
+ "oneOf": [
+ {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "checkbox"
+ ]
+ },
+ "label": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "id": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "description": {
+ "type": "string",
+ "maxLength": 32767
+ },
+ "defaultValue": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "type",
+ "label"
+ ]
+ },
+ {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "select"
+ ]
+ },
+ "label": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "id": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "description": {
+ "type": "string",
+ "maxLength": 32767
+ },
+ "defaultValue": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "options": {
+ "type": "array",
+ "minItems": 1,
+ "maxItems": 100,
+ "items": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string",
+ "maxLength": 1024
+ },
+ "value": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "value"
+ ]
+ }
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "type",
+ "label",
+ "defaultValue",
+ "options"
+ ]
+ },
+ {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "stringTemplate"
+ ]
+ },
+ "label": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "id": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "description": {
+ "type": "string",
+ "maxLength": 32767
+ },
+ "defaultValue": {
+ "type": "string",
+ "maxLength": 1024
+ },
+ "required": {
+ "type": "boolean"
+ },
+ "validRegExp": {
+ "type": "string",
+ "maxLength": 1024
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "type",
+ "label"
+ ]
+ },
+ {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "numberTemplate"
+ ]
+ },
+ "label": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "id": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "description": {
+ "type": "string",
+ "maxLength": 32767
+ },
+ "defaultValue": {
+ "type": "number"
+ },
+ "required": {
+ "type": "boolean"
+ },
+ "validMin": {
+ "type": "number"
+ },
+ "validMax": {
+ "type": "number"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "type",
+ "label"
+ ]
+ },
+ {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "jsonTemplate"
+ ]
+ },
+ "label": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "id": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "description": {
+ "type": "string",
+ "maxLength": 32767
+ },
+ "defaultValue": {
+ "type": "string",
+ "maxLength": 32767
+ },
+ "required": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "type",
+ "label"
+ ]
+ },
+ {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "payloadPath"
+ ]
+ },
+ "label": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "id": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "description": {
+ "type": "string",
+ "maxLength": 32767
+ },
+ "required": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "type",
+ "label"
+ ]
+ },
+ {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "section"
+ ]
+ },
+ "label": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "id": {
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 1024
+ },
+ "description": {
+ "type": "string",
+ "maxLength": 32767
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "type",
+ "label"
+ ]
+ }
+ ]
+ }
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "outputCount",
+ "resultMode",
+ "fields"
+ ]
}
}
}
\ No newline at end of file