bump api version

This commit is contained in:
Simon Stürz 2016-05-16 12:54:07 +02:00 committed by Michael Zanetti
parent 5e1a62ce90
commit c160e5ba7d
2 changed files with 19 additions and 9 deletions

View File

@ -200,23 +200,23 @@ void JsonTypes::init()
// Event // Event
s_event.insert("eventTypeId", basicTypeToString(Uuid)); s_event.insert("eventTypeId", basicTypeToString(Uuid));
s_event.insert("deviceId", basicTypeToString(Uuid)); s_event.insert("deviceId", basicTypeToString(Uuid));
s_event.insert("params", QVariantList() << paramRef()); s_event.insert("o:params", QVariantList() << paramRef());
// EventDescriptor // EventDescriptor
s_eventDescriptor.insert("eventTypeId", basicTypeToString(Uuid)); s_eventDescriptor.insert("eventTypeId", basicTypeToString(Uuid));
s_eventDescriptor.insert("deviceId", basicTypeToString(Uuid)); s_eventDescriptor.insert("deviceId", basicTypeToString(Uuid));
s_eventDescriptor.insert("paramDescriptors", QVariantList() << paramDescriptorRef()); s_eventDescriptor.insert("o:paramDescriptors", QVariantList() << paramDescriptorRef());
// ActionType // ActionType
s_actionType.insert("id", basicTypeToString(Uuid)); s_actionType.insert("id", basicTypeToString(Uuid));
s_actionType.insert("name", basicTypeToString(Uuid)); s_actionType.insert("name", basicTypeToString(Uuid));
s_actionType.insert("index", basicTypeToString(Int)); s_actionType.insert("index", basicTypeToString(Int));
s_actionType.insert("o:paramTypes", QVariantList() << paramTypeRef()); s_actionType.insert("paramTypes", QVariantList() << paramTypeRef());
// Action // Action
s_action.insert("actionTypeId", basicTypeToString(Uuid)); s_action.insert("actionTypeId", basicTypeToString(Uuid));
s_action.insert("deviceId", basicTypeToString(Uuid)); s_action.insert("deviceId", basicTypeToString(Uuid));
s_action.insert("params", QVariantList() << paramRef()); s_action.insert("o:params", QVariantList() << paramRef());
// Pugin // Pugin
s_plugin.insert("id", basicTypeToString(Uuid)); s_plugin.insert("id", basicTypeToString(Uuid));

View File

@ -1,4 +1,4 @@
40 41
{ {
"methods": { "methods": {
"Actions.ExecuteAction": { "Actions.ExecuteAction": {
@ -23,6 +23,7 @@
"deviceError": "$ref:DeviceError", "deviceError": "$ref:DeviceError",
"o:actionType": { "o:actionType": {
"id": "Uuid", "id": "Uuid",
"index": "Int",
"name": "Uuid", "name": "Uuid",
"paramTypes": [ "paramTypes": [
"$ref:ParamType" "$ref:ParamType"
@ -78,8 +79,9 @@
} }
}, },
"Devices.GetConfiguredDevices": { "Devices.GetConfiguredDevices": {
"description": "Returns a list of configured devices.", "description": "Returns a list of configured devices, optionally filtered by deviceId.",
"params": { "params": {
"o:deviceId": "Uuid"
}, },
"returns": { "returns": {
"devices": [ "devices": [
@ -540,6 +542,7 @@
}, },
"ActionType": { "ActionType": {
"id": "Uuid", "id": "Uuid",
"index": "Int",
"name": "Uuid", "name": "Uuid",
"paramTypes": [ "paramTypes": [
"$ref:ParamType" "$ref:ParamType"
@ -578,8 +581,8 @@
"Object" "Object"
], ],
"CalendarItem": { "CalendarItem": {
"duration": "UInt", "duration": "Uint",
"o:datetime": "UInt", "o:datetime": "Uint",
"o:repeating": "$ref:RepeatingOption", "o:repeating": "$ref:RepeatingOption",
"o:startTime": "Time" "o:startTime": "Time"
}, },
@ -623,6 +626,9 @@
], ],
"id": "Uuid", "id": "Uuid",
"name": "String", "name": "String",
"o:criticalStateTypeId": "Uuid",
"o:primaryActionTypeId": "Uuid",
"o:primaryStateTypeId": "Uuid",
"paramTypes": [ "paramTypes": [
"$ref:ParamType" "$ref:ParamType"
], ],
@ -716,6 +722,7 @@
}, },
"EventType": { "EventType": {
"id": "Uuid", "id": "Uuid",
"index": "Int",
"name": "String", "name": "String",
"paramTypes": [ "paramTypes": [
"$ref:ParamType" "$ref:ParamType"
@ -776,6 +783,7 @@
"value": "$ref:BasicType" "value": "$ref:BasicType"
}, },
"ParamType": { "ParamType": {
"index": "Int",
"name": "String", "name": "String",
"o:allowedValues": [ "o:allowedValues": [
"Variant" "Variant"
@ -907,6 +915,7 @@
"StateType": { "StateType": {
"defaultValue": "Variant", "defaultValue": "Variant",
"id": "Uuid", "id": "Uuid",
"index": "Int",
"name": "String", "name": "String",
"o:maxValue": "Variant", "o:maxValue": "Variant",
"o:minValue": "Variant", "o:minValue": "Variant",
@ -925,7 +934,7 @@
] ]
}, },
"TimeEventItem": { "TimeEventItem": {
"o:datetime": "UInt", "o:datetime": "Uint",
"o:repeating": "$ref:RepeatingOption", "o:repeating": "$ref:RepeatingOption",
"o:time": "Time" "o:time": "Time"
}, },
@ -957,6 +966,7 @@
"UnitGram", "UnitGram",
"UnitKiloGram", "UnitKiloGram",
"UnitDezibel", "UnitDezibel",
"UnitBpm",
"UnitKiloByte", "UnitKiloByte",
"UnitMegaByte", "UnitMegaByte",
"UnitGigaByte", "UnitGigaByte",