Last active
October 21, 2019 15:47
Revisions
-
jomicega renamed this gist
Oct 21, 2019 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
jomicega revised this gist
Oct 21, 2019 . 1 changed file with 50 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,50 @@ { "template": { "name": "templateName", "adress": "templateAdress", "phone": "templatePhone", "nit": "templateNit", "operationModes": [ { "station": "station1", "base": { "rules": ["rule1"] }, "compound": [ { "name": "compound1", "rules": ["rule1"], "initDate": "2007-12-03", "endDate": "2007-12-03", "initHour": 360, "endHour": 1000, "operationDays": ["MONDAY"] } ], "maintenance": { "rules": ["rule1"] } } ], "devices": [ { "name": "devices1name", "station": "devices1station", "configurator": "devices1configurator" } ], "equipments": [ { "name": "equipments1name", "station": "equipments1station" } ], "rules": [ { "name": "rules1name", "station": "rules1station", "notifications": ["EMAIL"] } ] } } -
jomicega created this gist
Oct 21, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,107 @@ query($id:ID!){ getTemplateStation(id: $id){ devices { ...fragmentDevices } equipments { ...fragmentEquipments } rules { ...fragmentRule } operationModes { ...fragmentOperationMode } } } fragment fragmentRule on Rule { name notifications validations { variable { name } value operator } } fragment fragmentDevices on Device { name configurator { name analogInputs { quantity prefix } analogOutputs { quantity prefix } digitalInputs { quantity prefix } digitalOutputs { quantity prefix } virtualInputs { quantity prefix } virtualOutputs { quantity prefix } } } fragment fragmentEquipments on Equipment { name variables { name parameter { device { name } usedBy { name } } sensor { name operation } } } fragment fragmentOperationMode on OperationMode { base { rules { ...fragmentRule } } compound { name initDate endDate initHour endHour operationDays rules { ...fragmentRule } } maintenance { initDate endDate initHour endHour operationDays rules { ...fragmentRule } } }