diff --git a/build/tsconfig.json b/build/tsconfig.json index 1a8628b86..a6d8ed012 100644 --- a/build/tsconfig.json +++ b/build/tsconfig.json @@ -2,6 +2,8 @@ // Change this to match your project "include": ["../src/**/*.js"], "exclude": [ + "../src/helpers.js", + "../src/index.js", "../test/**", "../coverage/**", "../dist/**", diff --git a/src/items/items.js b/src/items/items.js index b30eb664c..521fd4385 100644 --- a/src/items/items.js +++ b/src/items/items.js @@ -334,11 +334,11 @@ class Item { * Calculates the toggled state of this Item. * For Items like Color and Dimmer, getStateAs(OnOffType) is used and the toggle calculated of that. * - * @private + * @ignore * @returns the toggled state (e.g. 'OFF' if the Item is 'ON') * @throws error if the Item is uninitialized or is a type that doesn't make sense to toggle */ - #getToggleState () { + getToggleState () { if (this.isUninitialized) { throw Error('Cannot toggle uninitialized Items'); } @@ -366,7 +366,7 @@ class Item { if (this.type === 'Contact') { throw Error('Cannot command Contact Items'); } - this.sendCommand(this.#getToggleState()); + this.sendCommand(this.getToggleState()); } /** @@ -375,7 +375,7 @@ class Item { * @throws error if the Item is uninitialized or a type that cannot be toggled */ postToggleUpdate () { - this.postUpdate(this.#getToggleState()); + this.postUpdate(this.getToggleState()); } /** diff --git a/types/items/items.d.ts b/types/items/items.d.ts index c75d4fba6..d1866546e 100644 --- a/types/items/items.d.ts +++ b/types/items/items.d.ts @@ -267,6 +267,15 @@ export class Item { * @return {boolean} true if the command was sent, false otherwise */ sendDecreaseCommand(value: number | Quantity | HostState): boolean; + /** + * Calculates the toggled state of this Item. + * For Items like Color and Dimmer, getStateAs(OnOffType) is used and the toggle calculated of that. + * + * @ignore + * @returns the toggled state (e.g. 'OFF' if the Item is 'ON') + * @throws error if the Item is uninitialized or is a type that doesn't make sense to toggle + */ + getToggleState(): "PAUSE" | "PLAY" | "OPEN" | "CLOSED" | "ON" | "OFF"; /** * Sends a command to flip the Item's state (e.g. if it is 'ON' an 'OFF' command is sent). * @throws error if the Item is uninitialized or a type that cannot be toggled or commanded @@ -317,7 +326,6 @@ export class Item { */ removeTags(...tagNames: string[]): void; toString(): any; - #private; } import metadata = require("./metadata/metadata"); import TimeSeries = require("./time-series"); diff --git a/types/items/items.d.ts.map b/types/items/items.d.ts.map index 66bec64c0..77b6c0f21 100644 --- a/types/items/items.d.ts.map +++ b/types/items/items.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../src/items/items.js"],"names":[],"mappings":";;;;;;;UAwBc,MAAM;;;;UACN,MAAM;;;;YACN,MAAM;;;;eACN,MAAM;;;;aACN,MAAM,EAAE;;;;WACR,MAAM,EAAE;;;;eACR,MAAM,MAAO;;;;;;;;iBAEb,MAAM;;;;;;;;;;uBAYP,OAAO,aAAa,EAAE,QAAQ;AAunB3C;;;;;GAKG;AACH,gCAHW,MAAM,GACJ,MAAM,CAIa;AA/DhC;;;;;GAKG;AACH,iCAHW,MAAM,GACJ,OAAO,CASnB;AAED;;;;;;GAMG;AACH,8BAJW,MAAM,kBACN,OAAO,GACL,IAAI,CAYhB;AAED;;;;;GAKG;AACH,4BAFa,IAAI,EAAE,CAIlB;AAzJD;;;;;;;;;;;GAWG;AACH,oCALW,UAAU,GACR,IAAI,CA+BhB;AAoHD;;;;;;GAMG;AACH,2CAHW,MAAM,EAAE,GACN,IAAI,EAAE,CAIlB;AA7ED;;;;;;;;;;;;;;GAcG;AACH,wCALW,UAAU,GACR,IAAI,GAAC,IAAI,CAWrB;AApED;;;;;;GAMG;AACH,2CAHW,MAAM,GAAC,IAAI,GACT,IAAI,GAAC,IAAI,CAuCrB;AA3hBD;;;;GAIG;AACH;IACE;;;;OAIG;IACH,+BAqBC;IAjBC;;;OAGG;IACH,kBAAsB;IAEtB;;;OAGG;IACH,aAFU,eAAe,CAEsB;IAE/C;;;OAGG;IACH,WAFU,aAAa,CAE6B;IAGtD;;;OAGG;IACH,mBAEC;IAED;;;OAGG;IACH,mBAEC;IAED;;;OAGG;IACH,oBAEC;IAED;;;OAGG;IACH,oBAEC;IAED;;;OA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AY,GAAC,IAAI,CAIzD;IAED;;;;;;;;OAQG;IACH,2BALW,MAAM,SACN,MAAM,kBACN,MAAM,GACJ;QAAC,aAAa,MAAI;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,GAAC,IAAI,CAIlD;IAED;;;;;;OAMG;IACH,2BAHW,MAAM,GACJ,YAAY,GAAC,IAAI,CAI7B;IAED;;;;;;OAMG;IACH,mBAJW,MAAM,GAAC,MAAM,GAAC,KAAK,aAAa,GAAC,QAAQ,YAAU,QAM7D;IAED;;;;;;OAMG;IACH,8BAJW,MAAM,GAAC,MAAM,GAAC,KAAK,aAAa,GAAC,QAAQ,YAAU,GACjD,OAAO,CA2BnB;IAED;;;;;OAKG;IACH,2BAHW,MAAM,GAAC,QAAQ,YAAU,GACxB,OAAO,CAuBlB;IAED;;;;;OAKG;IACH,2BAHW,MAAM,GAAC,QAAQ,YAAU,GACxB,OAAO,CAuBlB;IAED;;;;;;;OAOG;IACH,sEAkBC;IAED;;;OAGG;IACH,0BAKC;IAED;;;;OAIG;IACH,yBAEC;IAED;;;;;;OAMG;IACH,kBAJW,MAAM,GAAC,MAAM,GAAC,KAAK,aAAa,GAAC,QAAQ,YAAU,QAM7D;IAED;;;OAGG;IACH,2BAEC;IAED;;;OAGG;IACH,6CAIC;IAED;;;OAGG;IACH,gDAMC;IAED;;;OAGG;IACH,qBAEC;IAED;;;OAGG;IACH,qBAFc,MAAM,UAKnB;IAED;;;OAGG;IACH,wBAFc,MAAM,UAOnB;IAED,gBAEC;CACF;;;;;;yBA5ZY,OAAO,eAAe,EAAE,aAAa"} \ No newline at end of file diff --git a/types/items/metadata/itemchannellink.d.ts b/types/items/metadata/itemchannellink.d.ts index 66359413c..857005148 100644 --- a/types/items/metadata/itemchannellink.d.ts +++ b/types/items/metadata/itemchannellink.d.ts @@ -33,7 +33,7 @@ export type Item = { sendCommandIfDifferent(value: any): boolean; sendIncreaseCommand(value: any): boolean; sendDecreaseCommand(value: any): boolean; - "__#6@#getToggleState"(): "PAUSE" | "PLAY" | "OPEN" | "CLOSED" | "ON" | "OFF"; + getToggleState(): "PAUSE" | "PLAY" | "OPEN" | "CLOSED" | "ON" | "OFF"; sendToggleCommand(): void; postToggleUpdate(): void; postUpdate(value: any): void; diff --git a/types/items/metadata/metadata.d.ts b/types/items/metadata/metadata.d.ts index 2c5447ffb..57d730ec5 100644 --- a/types/items/metadata/metadata.d.ts +++ b/types/items/metadata/metadata.d.ts @@ -24,7 +24,7 @@ export type Item = { sendCommandIfDifferent(value: any): boolean; sendIncreaseCommand(value: any): boolean; sendDecreaseCommand(value: any): boolean; - "__#6@#getToggleState"(): "PAUSE" | "PLAY" | "OPEN" | "CLOSED" | "ON" | "OFF"; + getToggleState(): "PAUSE" | "PLAY" | "OPEN" | "CLOSED" | "ON" | "OFF"; sendToggleCommand(): void; postToggleUpdate(): void; postUpdate(value: any): void; diff --git a/types/quantity.d.ts b/types/quantity.d.ts index c9d7d224f..2e5332a8a 100644 --- a/types/quantity.d.ts +++ b/types/quantity.d.ts @@ -37,7 +37,7 @@ export type Item = { sendCommandIfDifferent(value: any): boolean; sendIncreaseCommand(value: any): boolean; sendDecreaseCommand(value: any): boolean; - "__#6@#getToggleState"(): "PAUSE" | "PLAY" | "OPEN" | "CLOSED" | "ON" | "OFF"; + getToggleState(): "PAUSE" | "PLAY" | "OPEN" | "CLOSED" | "ON" | "OFF"; sendToggleCommand(): void; postToggleUpdate(): void; postUpdate(value: any): void; diff --git a/types/rules/operation-builder.d.ts b/types/rules/operation-builder.d.ts index ed6bbd794..dfc668354 100644 --- a/types/rules/operation-builder.d.ts +++ b/types/rules/operation-builder.d.ts @@ -33,7 +33,7 @@ export type Item = { sendCommandIfDifferent(value: any): boolean; sendIncreaseCommand(value: any): boolean; sendDecreaseCommand(value: any): boolean; - "__#6@#getToggleState"(): "PAUSE" | "PLAY" | "OPEN" | "CLOSED" | "ON" | "OFF"; + getToggleState(): "PAUSE" | "PLAY" | "OPEN" | "CLOSED" | "ON" | "OFF"; /** @private */ sendToggleCommand(): void; postToggleUpdate(): void; postUpdate(value: any): void; diff --git a/types/rules/operation-builder.d.ts.map b/types/rules/operation-builder.d.ts.map index d843ec5a6..61261beee 100644 --- a/types/rules/operation-builder.d.ts.map +++ b/types/rules/operation-builder.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"operation-builder.d.ts","sourceRoot":"","sources":["../../src/rules/operation-builder.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAYa,OAAO,aAAa,EAAE,QAAQ;AAyS3C;;;;;;GAMG;AACH;IACE,+FAWC;IATC,eAAe;IACf,kBAA0B;IAExB,YAA4B;IAC5B,cAA6C;IAOjD;;;;;SAKK;IACL,sBAHa,IAAI,EAAE,GAAG,MAAM,EAAE,GACf,4BAA4B,CAK1C;IAFC,8BAA8E;IAIhF;;;;;SAKK;IACL,mBAHa,IAAI,GAAG,MAAM,GACX,4BAA4B,CAK1C;IAED;;;;SAIK;IACL,gBAFe,4BAA4B,CAK1C;IAFC,UAAgB;IAIlB,eAAe;IACf,aAYC;IAED,eAAe;IACf,kBAEC;IAED,eAAe;IACf,iBAMC;CACF;AA0CD;;;;;;GAMG;AACH;IACE,iFAeC;IATC,eAAe;IACf,oCAA2D;IAC3D,eAAe;IACf,oBAA4F;IAE5F,eAAe;IACf,kBAAmD;IACnD,eAAe;IACf,iBAA8E;IAGhF,eAAe;IACf,sBAYC;IAED,eAAe;IACf,qBAMC;IAED,eAAe;IACf,mBAEC;IADC,6BAAsD;IAGxD,oBAIC;CACF;AAnGD;;;;;;GAMG;AACH;IAGI,eAAe;IACf,aAAgB;IAChB,uBAAuB;IACvB,iBAGC;IACD,uBAAuB;IACvB,cAGC;IACD,eAAe;IACf,aAAuE;IACvE,eAAe;IACf,kBAA2B;IAC3B,eAAe;IACf,iBAAmG;IAGrG;;;;SAIK;IACL,YAFe,4BAA4B,CAI1C;CACF;AApOD;;;;;;GAMG;AACH;IACE;;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;;;SAOK;IACL,aALa,MAAM,gBACN,MAAM,SACN,aAAa,OACb,MAAM,QAIlB;CACF;;yBAjMY,OAAO,eAAe,EAAE,aAAa"} \ No newline at end of file +{"version":3,"file":"operation-builder.d.ts","sourceRoot":"","sources":["../../src/rules/operation-builder.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2EAwdE,eAAe;;;;;;;;;;;;uBA5cJ,OAAO,aAAa,EAAE,QAAQ;AAyS3C;;;;;;GAMG;AACH;IACE,+FAWC;IATC,eAAe;IACf,kBAA0B;IAExB,YAA4B;IAC5B,cAA6C;IAOjD;;;;;SAKK;IACL,sBAHa,IAAI,EAAE,GAAG,MAAM,EAAE,GACf,4BAA4B,CAK1C;IAFC,8BAA8E;IAIhF;;;;;SAKK;IACL,mBAHa,IAAI,GAAG,MAAM,GACX,4BAA4B,CAK1C;IAED;;;;SAIK;IACL,gBAFe,4BAA4B,CAK1C;IAFC,UAAgB;IAIlB,eAAe;IACf,aAYC;IAED,eAAe;IACf,kBAEC;IAED,eAAe;IACf,iBAMC;CACF;AA0CD;;;;;;GAMG;AACH;IACE,iFAeC;IATC,eAAe;IACf,oCAA2D;IAC3D,eAAe;IACf,oBAA4F;IAE5F,eAAe;IACf,kBAAmD;IACnD,eAAe;IACf,iBAA8E;IAGhF,eAAe;IACf,sBAYC;IAED,eAAe;IACf,qBAMC;IAED,eAAe;IACf,mBAEC;IADC,6BAAsD;IAGxD,oBAIC;CACF;AAnGD;;;;;;GAMG;AACH;IAGI,eAAe;IACf,aAAgB;IAChB,uBAAuB;IACvB,iBAGC;IACD,uBAAuB;IACvB,cAGC;IACD,eAAe;IACf,aAAuE;IACvE,eAAe;IACf,kBAA2B;IAC3B,eAAe;IACf,iBAAmG;IAGrG;;;;SAIK;IACL,YAFe,4BAA4B,CAI1C;CACF;AApOD;;;;;;GAMG;AACH;IACE;;;;;SAKK;IACL,yCAHa,OAAO,EAMnB;IADC,cAAgB;IAGlB;;;;;S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AIlB;CACF;;yBAjMY,OAAO,eAAe,EAAE,aAAa"} \ No newline at end of file diff --git a/types/triggers.d.ts b/types/triggers.d.ts index 46e0a8777..4a29bfdc4 100644 --- a/types/triggers.d.ts +++ b/types/triggers.d.ts @@ -33,7 +33,7 @@ export type Item = { sendCommandIfDifferent(value: any): boolean; sendIncreaseCommand(value: any): boolean; sendDecreaseCommand(value: any): boolean; - "__#6@#getToggleState"(): "PAUSE" | "PLAY" | "OPEN" | "CLOSED" | "ON" | "OFF"; + getToggleState(): "PAUSE" | "PLAY" | "OPEN" | "CLOSED" | "ON" | "OFF"; sendToggleCommand(): void; postToggleUpdate(): void; postUpdate(value: any): void;