@caseywebb/growhaus
Advanced tools
Comparing version 0.0.0-47634472e81be92b9713b665bfa04d812481d483.20190729T211244Z.4763447 to 0.0.0-4dfb3e590ab7f64e7e6ba073c3ddcd7dd5f2eedc.20190801T181242Z.4dfb3e5
@@ -0,5 +1,7 @@ | ||
export * from './subscribable'; | ||
export var WebApiEvents; | ||
(function (WebApiEvents) { | ||
WebApiEvents["AgentData"] = "agents"; | ||
WebApiEvents["WeatherData"] = "weather"; | ||
})(WebApiEvents || (WebApiEvents = {})); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./subscribable"), exports); | ||
var WebApiEvents; | ||
(function (WebApiEvents) { | ||
WebApiEvents["AgentData"] = "agents"; | ||
WebApiEvents["WeatherData"] = "weather"; | ||
})(WebApiEvents = exports.WebApiEvents || (exports.WebApiEvents = {})); | ||
//# sourceMappingURL=index.js.map |
@@ -1,13 +0,4 @@ | ||
export interface DarkSkyResponse { | ||
currently: { | ||
uvIndex: number; | ||
}; | ||
hourly: { | ||
data: { | ||
time: number; | ||
uvIndex: number; | ||
}[]; | ||
}; | ||
} | ||
export * from './subscribable'; | ||
export declare enum WebApiEvents { | ||
AgentData = "agents", | ||
WeatherData = "weather" | ||
@@ -19,2 +10,13 @@ } | ||
} | ||
export interface AgentDataMessage extends WebApiMessage { | ||
event: WebApiEvents.AgentData; | ||
data: { | ||
agents: { | ||
[k: string]: AgentData; | ||
}; | ||
}; | ||
} | ||
export interface AgentData { | ||
brightness: number; | ||
} | ||
export interface WeatherDataMessage extends WebApiMessage { | ||
@@ -21,0 +23,0 @@ event: WebApiEvents.WeatherData; |
{ | ||
"name": "@caseywebb/growhaus", | ||
"version": "0.0.0-47634472e81be92b9713b665bfa04d812481d483.20190729T211244Z.4763447", | ||
"version": "0.0.0-4dfb3e590ab7f64e7e6ba073c3ddcd7dd5f2eedc.20190801T181242Z.4dfb3e5", | ||
"author": "Casey Webb (https://caseyWebb.xyz)", | ||
@@ -8,2 +8,5 @@ "main": "dist/node/index.js", | ||
"types": "dist/types/index.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
@@ -20,4 +23,6 @@ "build": "yarn build:node; yarn build:browser", | ||
"dependencies": { | ||
"autobind-decorator": "^2.4.0", | ||
"nonenumerable": "^1.1.1", | ||
"tslib": "^1.10.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
7404
13
118
3
+ Addedautobind-decorator@^2.4.0
+ Addednonenumerable@^1.1.1
+ Addedautobind-decorator@2.4.0(transitive)
+ Addednonenumerable@1.1.1(transitive)