@itentialopensource/adapter-sevone
Version:
Itential SevOne Adapter
160 lines • 3.44 kB
JSON
{
"$id": "sevone_map_conn",
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"ph_request_type": {
"type": "string",
"description": "type of request (internal to adapter)",
"default": "getMapNodes",
"enum": [
"getMapNodes",
"createMapNode",
"updateMapNode",
"deleteMapNode"
],
"external_name": "ph_request_type"
},
"id": {
"type": "integer",
"description": "id of the map node",
"parse": false,
"encode": false,
"encrypt": {
"type": "AES",
"key": ""
},
"minimum": 0,
"external_name": "id"
},
"name": {
"type": "string",
"description": "name of the node",
"parse": false,
"encode": false,
"encrypt": {
"type": "AES",
"key": ""
},
"external_name": "name"
},
"type": {
"type": "string",
"description": "type of the node",
"parse": false,
"encode": false,
"encrypt": {
"type": "AES",
"key": ""
},
"external_name": "type"
},
"x": {
"type": "integer",
"description": "x position of node on the map",
"parse": false,
"encode": false,
"encrypt": {
"type": "AES",
"key": ""
},
"minimum": 0,
"external_name": "x"
},
"y": {
"type": "integer",
"description": "y position of node on the map",
"parse": false,
"encode": false,
"encrypt": {
"type": "AES",
"key": ""
},
"minimum": 0,
"external_name": "y"
},
"elements": {
"type": "array",
"items": {
"type": "object",
"properties": {
"deviceId": {
"type": "integer",
"description": "the id of the device",
"minimum": 0,
"external_name": "deviceId"
},
"elementId": {
"type": "integer",
"description": "the id of the element",
"minimum": 0,
"external_name": "elementId"
},
"pluginId": {
"type": "integer",
"description": "the id of the plugin",
"minimum": 0,
"external_name": "pluginId"
},
"reportId": {
"type": "integer",
"description": "the id of the report",
"minimum": 0,
"external_name": "reportId"
}
}
},
"description": "array containing the elements of the connection",
"parse": false,
"encode": false,
"encrypt": {
"type": "AES",
"key": ""
},
"external_name": "data"
}
},
"allOf": [
{
"if": {
"properties": {
"ph_request_type": {
"enum": [
"createMapNode"
]
}
}
},
"then": {
"required": [
"name",
"type",
"x",
"y",
"elements"
]
}
},
{
"if": {
"properties": {
"ph_request_type": {
"enum": [
"updateMapNode"
]
}
}
},
"then": {
"required": [
"name",
"type",
"x",
"y",
"elements"
]
}
}
],
"definitions": {}
}