Comparing version 0.2.4 to 0.2.5
@@ -1,2 +0,2 @@ | ||
interface BridgeResponse { | ||
export interface BridgeResponse { | ||
id: string; | ||
@@ -7,3 +7,3 @@ internalipaddress: string; | ||
} | ||
interface ConfigResponse { | ||
export interface ConfigResponse { | ||
name: string; | ||
@@ -95,3 +95,3 @@ zigbeechannel: number; | ||
} | ||
interface ScheduleResponses { | ||
export interface ScheduleResponses { | ||
[key: string]: ScheduleResponse; | ||
@@ -116,6 +116,6 @@ } | ||
} | ||
interface ScenesResponse { | ||
export interface ScenesResponse { | ||
[key: string]: SceneResponse; | ||
} | ||
interface ResourcelinkResponse { | ||
export interface ResourcelinkResponse { | ||
name: string; | ||
@@ -128,8 +128,9 @@ description: string; | ||
} | ||
interface ResourcelinksResponse { | ||
export interface ResourcelinksResponse { | ||
[key: string]: ResourcelinkResponse; | ||
} | ||
interface apiError { | ||
export interface apiError { | ||
type: number; | ||
description: string; | ||
} | ||
export {}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=ApiResonse.interface.js.map |
@@ -1,2 +0,3 @@ | ||
interface GroupResponse { | ||
import { LightState } from './Lights.interface'; | ||
export interface GroupResponse { | ||
name: string; | ||
@@ -24,6 +25,6 @@ lights: Array<string>; | ||
} | ||
interface GroupsResponse { | ||
export interface GroupsResponse { | ||
[key: string]: GroupResponse; | ||
} | ||
interface GroupCreateRequest { | ||
export interface GroupCreateRequest { | ||
name?: string; | ||
@@ -34,3 +35,3 @@ type?: string; | ||
} | ||
interface GroupCreateResponse { | ||
export interface GroupCreateResponse { | ||
success: { | ||
@@ -40,4 +41,4 @@ id: string; | ||
} | ||
interface GroupState extends LightState { | ||
export interface GroupState extends LightState { | ||
scene?: string; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=Groups.interface.js.map |
@@ -1,2 +0,2 @@ | ||
interface LightResponse { | ||
export interface LightResponse { | ||
state: { | ||
@@ -66,6 +66,6 @@ on: boolean; | ||
} | ||
interface LightsResponse { | ||
export interface LightsResponse { | ||
[key: string]: LightResponse; | ||
} | ||
declare type NewLightsResponse = { | ||
export declare type NewLightsResponse = { | ||
[key: string]: { | ||
@@ -77,3 +77,3 @@ name: string; | ||
}; | ||
interface LightState { | ||
export interface LightState { | ||
on?: boolean; | ||
@@ -80,0 +80,0 @@ bri?: number; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=Lights.interface.js.map |
@@ -6,2 +6,3 @@ /// <reference types="node" /> | ||
import events from 'events'; | ||
import { BridgeResponse, ConfigResponse } from '../interfaces/ApiResonse.interface'; | ||
interface Bridge extends BridgeResponse { | ||
@@ -8,0 +9,0 @@ } |
@@ -0,1 +1,2 @@ | ||
import { GroupCreateRequest, GroupResponse, GroupState } from '../interfaces/Groups.interface'; | ||
import Bridge from './Bridge'; | ||
@@ -2,0 +3,0 @@ interface Group extends GroupResponse { |
@@ -0,1 +1,2 @@ | ||
import { LightResponse, LightState } from '../interfaces/Lights.interface'; | ||
import Bridge from './Bridge'; | ||
@@ -2,0 +3,0 @@ import Group from './Group'; |
@@ -0,2 +1,3 @@ | ||
import { apiError } from '../interfaces/ApiResonse.interface'; | ||
declare function parseErrors(response: any): Array<apiError> | null; | ||
export default parseErrors; |
{ | ||
"name": "hue", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "An easy to use wrapper for the Hue API in NodeJS", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
interface BridgeResponse { | ||
export interface BridgeResponse { | ||
id: string, | ||
@@ -9,3 +9,3 @@ internalipaddress: string, | ||
interface ConfigResponse { | ||
export interface ConfigResponse { | ||
name: string, | ||
@@ -99,3 +99,3 @@ zigbeechannel: number, | ||
interface ScheduleResponses { | ||
export interface ScheduleResponses { | ||
[key: string]: ScheduleResponse | ||
@@ -122,7 +122,7 @@ } | ||
interface ScenesResponse { | ||
export interface ScenesResponse { | ||
[key: string]: SceneResponse | ||
} | ||
interface ResourcelinkResponse { | ||
export interface ResourcelinkResponse { | ||
name: string, | ||
@@ -136,7 +136,7 @@ description: string, | ||
interface ResourcelinksResponse { | ||
export interface ResourcelinksResponse { | ||
[key: string]: ResourcelinkResponse | ||
} | ||
interface apiError { | ||
export interface apiError { | ||
type: number; | ||
@@ -143,0 +143,0 @@ description: string; |
@@ -1,2 +0,4 @@ | ||
interface GroupResponse { | ||
import { LightState } from './Lights.interface'; | ||
export interface GroupResponse { | ||
name: string; | ||
@@ -25,7 +27,7 @@ lights: Array<string>; | ||
interface GroupsResponse { | ||
export interface GroupsResponse { | ||
[key: string]: GroupResponse; | ||
} | ||
interface GroupCreateRequest { | ||
export interface GroupCreateRequest { | ||
name?: string; | ||
@@ -37,3 +39,3 @@ type?: string; | ||
interface GroupCreateResponse { | ||
export interface GroupCreateResponse { | ||
success: { | ||
@@ -44,4 +46,4 @@ id: string; | ||
interface GroupState extends LightState { | ||
export interface GroupState extends LightState { | ||
scene?: string; | ||
} |
@@ -1,2 +0,2 @@ | ||
interface LightResponse { | ||
export interface LightResponse { | ||
state: { | ||
@@ -58,7 +58,7 @@ on: boolean, | ||
interface LightsResponse { | ||
export interface LightsResponse { | ||
[key: string]: LightResponse | ||
} | ||
type NewLightsResponse = { | ||
export type NewLightsResponse = { | ||
[key: string]: { | ||
@@ -71,3 +71,3 @@ name: string; | ||
interface LightState { | ||
export interface LightState { | ||
on?: boolean; | ||
@@ -74,0 +74,0 @@ bri?: number; |
@@ -7,2 +7,3 @@ import axios, { AxiosRequestConfig } from 'axios'; | ||
import events from 'events'; | ||
import { BridgeResponse, ConfigResponse } from '../interfaces/ApiResonse.interface'; | ||
@@ -9,0 +10,0 @@ // eslint-disable-next-line @typescript-eslint/no-empty-interface |
@@ -0,1 +1,2 @@ | ||
import { GroupCreateRequest, GroupCreateResponse, GroupResponse, GroupsResponse, GroupState } from '../interfaces/Groups.interface'; | ||
import Bridge from './Bridge'; | ||
@@ -2,0 +3,0 @@ |
@@ -0,1 +1,2 @@ | ||
import { LightResponse, LightsResponse, LightState, NewLightsResponse } from '../interfaces/Lights.interface'; | ||
import Bridge from './Bridge'; | ||
@@ -2,0 +3,0 @@ import Group from './Group'; |
@@ -0,1 +1,3 @@ | ||
import { apiError } from '../interfaces/ApiResonse.interface'; | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
@@ -2,0 +4,0 @@ function parseErrors(response: any) : Array<apiError>|null { |
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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
155639
2484