From 9c1f3efb7a6552199aa5fe09ff2434fcb8b7b092 Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Wed, 5 Jun 2024 12:26:13 +0200 Subject: [PATCH] [items] Refactor item-persistence.js exports & Refactor _toOpenhabString to helpers (#337) Signed-off-by: Florian Hotze --- src/helpers.js | 40 +++++++++++++++++++++-- src/items/item-persistence.js | 5 +-- src/items/items.js | 37 +++++---------------- types/items/item-persistence.d.ts | 19 ++++++----- types/items/item-persistence.d.ts.map | 2 +- types/items/items.d.ts | 2 +- types/items/items.d.ts.map | 2 +- types/items/metadata/itemchannellink.d.ts | 2 +- types/items/metadata/metadata.d.ts | 2 +- types/quantity.d.ts | 7 ++-- types/quantity.d.ts.map | 2 +- types/rules/operation-builder.d.ts | 2 +- 12 files changed, 67 insertions(+), 55 deletions(-) diff --git a/src/helpers.js b/src/helpers.js index 76a1023b2..282532dd1 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -4,12 +4,47 @@ const utils = require('./utils'); const javaZDT = Java.type('java.time.ZonedDateTime'); const javaDuration = Java.type('java.time.Duration'); +/** + * @typedef { import("./items/items").Item } Item + * @private + */ + +/** + * Returns the name of a given Item or relays the passed in Item name. + * + * @param {Item|string} itemOrName Item or Item name + * @returns {string} the Item name + * @private + */ function _getItemName (itemOrName) { - // Somehow instanceof check doesn't work here, so workaround the problem - if (itemOrName.rawItem !== undefined) return itemOrName.name; + if (_isItem(itemOrName)) return itemOrName.name; return itemOrName; } +/** + * Helper function to convert JS types to a + * {@link https://www.openhab.org/javadoc/latest/org/openhab/core/types/type org.openhab.core.types.Type} or a valid string representation of a type. + * + * Number and string are passed through. + * Other objects should implement toOpenHabString (prioritized) or toString to return an openHAB compatible representation. + * + * @private + * @param {*} value + * @returns {*} + */ +function _toOpenhabType (value) { + if (value === null) return 'NULL'; + if (value === undefined) return 'UNDEF'; + if (typeof value === 'number' || typeof value === 'string') { + return value; + } else if (typeof value.toOpenHabString === 'function') { + return value.toOpenHabString(); + } else if (typeof value.toString === 'function') { + return value.toString(); + } + return value; +} + /** * Checks whether the given object is an instance of {@link items.Item}. * @@ -72,6 +107,7 @@ function _isDuration (o) { module.exports = { _getItemName, + _toOpenhabType, _isItem, _isQuantity, _isZonedDateTime, diff --git a/src/items/item-persistence.js b/src/items/item-persistence.js index fe1ed0b34..4df8ef4ca 100644 --- a/src/items/item-persistence.js +++ b/src/items/item-persistence.js @@ -724,7 +724,4 @@ class ItemPersistence { } } -module.exports = { - ItemPersistence, - PersistedItem -}; +module.exports = ItemPersistence; diff --git a/src/items/items.js b/src/items/items.js index a1a5e9009..03513c814 100644 --- a/src/items/items.js +++ b/src/items/items.js @@ -7,13 +7,15 @@ const osgi = require('../osgi'); const utils = require('../utils'); const log = require('../log')('items'); -const metadata = require('./metadata/metadata'); -const { ItemPersistence } = require('./item-persistence'); -const ItemSemantics = require('./item-semantics'); +const { _toOpenhabType } = require('../helpers'); const { getQuantity, QuantityError } = require('../quantity'); const { UnDefType, OnOffType, events, itemRegistry } = require('@runtime'); +const metadata = require('./metadata/metadata'); +const ItemPersistence = require('./item-persistence'); +const ItemSemantics = require('./item-semantics'); + const itemBuilderFactory = osgi.getService('org.openhab.core.items.ItemBuilderFactory'); // typedefs need to be global for TypeScript to fully work @@ -51,29 +53,6 @@ const itemBuilderFactory = osgi.getService('org.openhab.core.items.ItemBuilderFa */ const DYNAMIC_ITEM_TAG = '_DYNAMIC_'; -/** - * Helper function to convert JS types to openHAB command/state types' string representation. - * - * Numbers and strings are passed. - * Objects should implement `toOpenHabString` (prioritized) or `toString` to return an openHAB compatible representation. - * - * @private - * @param {*} value - * @returns {*} - */ -function _toOpenhabString (value) { - if (value === null) return 'NULL'; - if (value === undefined) return 'UNDEF'; - if (typeof value === 'number' || typeof value === 'string') { - return value; - } else if (typeof value.toOpenHabString === 'function') { - return value.toOpenHabString(); - } else if (typeof value.toString === 'function') { - return value.toString(); - } - return value; -} - /** * Class representing an openHAB Item * @@ -255,7 +234,7 @@ class Item { * @see postUpdate */ sendCommand (value) { - events.sendCommand(this.rawItem, _toOpenhabString(value)); + events.sendCommand(this.rawItem, _toOpenhabType(value)); } /** @@ -266,7 +245,7 @@ class Item { * @see sendCommand */ sendCommandIfDifferent (value) { - value = _toOpenhabString(value); + value = _toOpenhabType(value); if (value.toString() !== this.state) { this.sendCommand(value); return true; @@ -330,7 +309,7 @@ class Item { * @see sendCommand */ postUpdate (value) { - events.postUpdate(this.rawItem, _toOpenhabString(value)); + events.postUpdate(this.rawItem, _toOpenhabType(value)); } /** diff --git a/types/items/item-persistence.d.ts b/types/items/item-persistence.d.ts index d3254a353..da532ff0b 100644 --- a/types/items/item-persistence.d.ts +++ b/types/items/item-persistence.d.ts @@ -1,4 +1,4 @@ -export type Quantity = import('../quantity').Quantity; +export = ItemPersistence; /** * Class representing the historic state of an openHAB Item. * Wrapping the {@link https://www.openhab.org/javadoc/latest/org/openhab/core/persistence/extensions/persistenceextensions PersistenceExtensions}. @@ -11,7 +11,7 @@ export type Quantity = import('../quantity').Quantity; * @memberOf items * @hideconstructor */ -export class ItemPersistence { +declare class ItemPersistence { constructor(rawItem: any); rawItem: any; /** @@ -458,6 +458,13 @@ export class ItemPersistence { */ removeAllStatesBetween(begin: (time.ZonedDateTime | Date), end: (time.ZonedDateTime | Date), serviceId?: string, ...args: any[]): any; } +declare namespace ItemPersistence { + export { Quantity }; +} +declare namespace time { + type ZonedDateTime = import('@js-joda/core').ZonedDateTime; +} +import time = require("../time"); /** * Class representing an instance of {@link https://www.openhab.org/javadoc/latest/org/openhab/core/persistence/historicitem org.openhab.core.persistence.HistoricItem}. * Extends {@link items.PersistedState}. @@ -465,7 +472,7 @@ export class ItemPersistence { * @memberof items * @hideconstructor */ -export class PersistedItem extends PersistedState { +declare class PersistedItem extends PersistedState { /** * Timestamp of persisted Item. * @type {time.ZonedDateTime} @@ -473,10 +480,6 @@ export class PersistedItem extends PersistedState { get timestamp(): JSJoda.ZonedDateTime; #private; } -declare namespace time { - type ZonedDateTime = import('@js-joda/core').ZonedDateTime; -} -import time = require("../time"); /** * Class representing an instance of {@link https://www.openhab.org/javadoc/latest/org/openhab/core/types/state org.openhab.core.types.State}. * @@ -505,5 +508,5 @@ declare class PersistedState { get quantityState(): import("../quantity").Quantity; #private; } -export {}; +type Quantity = import('../quantity').Quantity; //# sourceMappingURL=item-persistence.d.ts.map \ No newline at end of file diff --git a/types/items/item-persistence.d.ts.map b/types/items/item-persistence.d.ts.map index 0c0de66bc..55d3dc9ef 100644 --- a/types/items/item-persistence.d.ts.map +++ b/types/items/item-persistence.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"item-persistence.d.ts","sourceRoot":"","sources":["../../src/items/item-persistence.js"],"names":[],"mappings":"uBAOa,OAAO,aAAa,EAAE,QAAQ;AAgH3C;;;;;;;;;;;GAWG;AACH;IACE,0BAEC;IADC,aAAsB;IAGxB;;;;;;;;;;;;;;OAcG;IACH,oBAJW,CAAC,KAAK,aAAa,GAAG,IAAI,CAAC,UAC3B,MAAM,cACN,MAAM,wBAIhB;IAID;;;;;;OAMG;IACH,0BAJW,CAAC,KAAK,aAAa,GAAG,IAAI,CAAC,cAC3B,MAAM,mBACJ,CAAC,aAAa,GAAG,IAAI,CAAC,CAIlC;IAED;;;;;OAKG;IACH,uBAHW,MAAM,mBACJ,CAAC,KAAK,aAAa,GAAG,IAAI,CAAC,CAIvC;IAED;;;;;OAKG;IACH,uBAHW,MAAM,mBACJ,CAAC,KAAK,aAAa,GAAG,IAAI,CAAC,CAIvC;IAED;;;;;;OAMG;IACH,0BAJW,OAAO,cACP,MAAM,mBACJ,CAAC,aAAa,GAAG,IAAI,CAAC,CAIlC;IAED;;;;;;OAMG;IACH,sBAJW,OAAO,cACP,MAAM,mBACJ,CAAC,aAAa,GAAG,IAAI,CAAC,CAIlC;IAED;;;;;;;OAOG;IACH,wBALW,CAAC,KAAK,aAAa,GAAG,IAAI,CAAC,cAC3B,MAAM,mBACJ,OAAO,CAKnB;IAED;;;;;;;OAOG;IACH,wBALW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W,CAAC,KAAK,aAAa,GAAG,IAAI,CAAC,cAC3B,MAAM,uBAIhB;IAED;;;;;;OAMG;IACH,gCAHW,CAAC,KAAK,aAAa,GAAG,IAAI,CAAC,cAC3B,MAAM,uBAIhB;IAED;;;;;;;OAOG;IACH,8BAJW,CAAC,KAAK,aAAa,GAAG,IAAI,CAAC,OAC3B,CAAC,KAAK,aAAa,GAAG,IAAI,CAAC,cAC3B,MAAM,uBAIhB;CACF;AAppBD;;;;;;GAMG;AACH;IAWE;;;OAGG;IACH,sCAEC;;CACF;;yBAxFY,OAAO,eAAe,EAAE,aAAa;;;AAYlD;;;;;GAKG;AACH;IAGE;;OAEG;IACH,iCAEC;IAED;;;OAGG;IACH,oBAEC;IAED;;;OAGG;IACH,2BAGC;IAED;;;OAGG;IACH,oDAWC;;CACF"} \ No newline at end of file +{"version":3,"file":"item-persistence.d.ts","sourceRoot":"","sources":["../../src/items/item-persistence.js"],"names":[],"mappings":";AAuHA;;;;;;;;;;;GAWG;AACH;IACE,0BAEC;IADC,aAAsB;IAGxB;;;;;;;;;;;;;;OAcG;IACH,oBAJW,CAAC,KAAK,aAAa,GAAG,IAAI,CAAC,UAC3B,MAAM,cACN,MAAM,wBAIhB;IAID;;;;;;OAMG;IACH,0BAJW,CAAC,KAAK,aAAa,GAAG,IAAI,CAAC,cAC3B,MAAM,mBACJ,CAAC,aAAa,GAAG,IAAI,CAAC,CAIlC;IAED;;;;;OAKG;IACH,uBAHW,MAAM,mBACJ,CAAC,KAAK,aAAa,GAAG,IAAI,CAAC,CAIvC;IAED;;;;;OAKG;IACH,uBAHW,MAAM,mBACJ,CAAC,KAAK,aAAa,GAAG,IAAI,CAAC,CAIvC;IAED;;;;;;OAMG;IACH,0BAJW,OAAO,cACP,MAAM,mBACJ,CAAC,aAAa,GAAG,IAAI,CAAC,CAIlC;IAED;;;;;;OAMG;IACH,sBAJW,OAAO,cACP,MAAM,mBACJ,CAAC,aAAa,GAAG,IAAI,CAAC,CAIlC;IAED;;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AAI,CAAC,OAC3B,CAAC,KAAK,aAAa,GAAG,IAAI,CAAC,cAC3B,MAAM,mBACJ,aAAa,EAAE,CAI3B;IAED;;;;;;OAMG;IACH,gCAHW,CAAC,KAAK,aAAa,GAAG,IAAI,CAAC,cAC3B,MAAM,uBAIhB;IAED;;;;;;OAMG;IACH,gCAHW,CAAC,KAAK,aAAa,GAAG,IAAI,CAAC,cAC3B,MAAM,uBAIhB;IAED;;;;;;;OAOG;IACH,8BAJW,CAAC,KAAK,aAAa,GAAG,IAAI,CAAC,OAC3B,CAAC,KAAK,aAAa,GAAG,IAAI,CAAC,cAC3B,MAAM,uBAIhB;CACF;;;;;yBAntBY,OAAO,eAAe,EAAE,aAAa;;;AA+DlD;;;;;;GAMG;AACH;IAWE;;;OAGG;IACH,sCAEC;;CACF;AA5ED;;;;;GAKG;AACH;IAGE;;OAEG;IACH,iCAEC;IAED;;;OAGG;IACH,oBAEC;IAED;;;OAGG;IACH,2BAGC;IAED;;;OAGG;IACH,oDAWC;;CACF;gBAvDY,OAAO,aAAa,EAAE,QAAQ"} \ No newline at end of file diff --git a/types/items/items.d.ts b/types/items/items.d.ts index e22ca7100..35084fe06 100644 --- a/types/items/items.d.ts +++ b/types/items/items.d.ts @@ -314,7 +314,7 @@ export class Item { toString(): any; } import metadata = require("./metadata/metadata"); -import { ItemPersistence } from "./item-persistence"; +import ItemPersistence = require("./item-persistence"); import ItemSemantics = require("./item-semantics"); declare namespace time { type ZonedDateTime = import('@js-joda/core').ZonedDateTime; diff --git a/types/items/items.d.ts.map b/types/items/items.d.ts.map index 194599b57..5026ad5a6 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":";;;;uBA4Ba,OAAO,aAAa,EAAE,QAAQ;;;;;;;;UAM7B,MAAM;;;;UACN,MAAM;;;;YACN,MAAM;;;;eACN,MAAM;;;;aACN,MAAM,E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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,CAUnB;IAED;;;;;;OAMG;IACH,sEAkBC;IAED;;;;OAIG;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;;;;;yBApXY,OAAO,eAAe,EAAE,aAAa"} \ No newline at end of file +{"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../src/items/items.js"],"names":[],"mappings":";;;;uBA8Ba,OAAO,aAAa,EAAE,QAAQ;;;;;;;;UAM7B,MAAM;;;;UACN,MAAM;;;;YACN,MAAM;;;;eACN,MAAM;;;;aACN,MAAM,EAAE;;;;WACR,MAAM,EAAE;;;;eACR,MAAM,MAAO;;;;;;;;iBAEb,MAAM;;;;;;AA0iBpB;;;;;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,GAAC,IAAI,CAYrB;AAED;;;;;GAKG;AACH,4BAFa,IAAI,EAAE,CAIlB;AAzJD;;;;;;;;;;;GAWG;AACH,oCALW,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AED;;;;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;;;;;yBA7VY,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 e63f7dfe1..a93833bc5 100644 --- a/types/items/metadata/itemchannellink.d.ts +++ b/types/items/metadata/itemchannellink.d.ts @@ -1,6 +1,6 @@ export type Item = { rawItem: HostItem; - persistence: import("../item-persistence").ItemPersistence; + persistence: import("../item-persistence"); semantics: import("../item-semantics"); readonly type: string; readonly name: string; diff --git a/types/items/metadata/metadata.d.ts b/types/items/metadata/metadata.d.ts index e79230313..b0fe146f7 100644 --- a/types/items/metadata/metadata.d.ts +++ b/types/items/metadata/metadata.d.ts @@ -1,6 +1,6 @@ export type Item = { rawItem: HostItem; - persistence: import("../item-persistence").ItemPersistence; + persistence: import("../item-persistence"); semantics: import("../item-semantics"); readonly type: string; readonly name: string; diff --git a/types/quantity.d.ts b/types/quantity.d.ts index e46702663..5898c6aef 100644 --- a/types/quantity.d.ts +++ b/types/quantity.d.ts @@ -1,12 +1,9 @@ export type Item = { rawItem: HostItem; - persistence: import("./items/item-persistence").ItemPersistence; + persistence: import("./items/item-persistence"); semantics: import("./items/item-semantics"); readonly type: string; - readonly name: string; /** - * Dimension of this Quantity, e.g. `[L]` for metres or `[L]²` for cubic-metres - * @type {string} - */ + readonly name: string; readonly label: string; readonly state: string; readonly numericState: number; diff --git a/types/quantity.d.ts.map b/types/quantity.d.ts.map index 621535dd4..80349afcf 100644 --- a/types/quantity.d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CAKnB;IAED;;;;;OAKG;IACH,uBAHW,IAAI,GAAC,MAAM,GAAC,QAAQ,GAClB,OAAO,CAKnB;IAED,gBAEC;CACF;AAxND;;;GAGG;AACH;IACE;;OAEG;IACH,qBAFW,MAAM,EAKhB;CACF;AA9CD;;;;;;;;GAQG;AACH,kCAPW,IAAI,GAAC,MAAM,GAAC,QAAQ,aACpB,MAAM,OA6BhB;AAjED;;;GAGG;AAEH;;;;;;;;GAQG;AACH,8CANW,IAAI,GAAC,MAAM,GAAC,MAAM,GAAC,QAAQ,GACzB,oBAAuB,CAsBnC"} \ No newline at end of file +{"version":3,"file":"quantity.d.ts","sourceRoot":"","sources":["../src/quantity.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqSA;;;;;;;;GAQG;AACH,mCALW,IAAI,GAAC,MAAM,GAAC,QAAQ,MAAa,GAC/B,QAAQ,CAMpB;AAvND;;;;;;;GAOG;AACH;IACE;;OAEG;IACH,mBAFW,IAAI,GAAC,MAAM,GAAC,QAAQ,MAAa,EAgB3C;IAZG;;;OAGG;IACH,mBAAuB;IAU3B;;;OAGG;IACH,wBAEC;IAED;;;OAGG;IACH,mBAGC;IAED;;;OAGG;IACH,qBAIC;IAED;;;OAGG;IACH,oBAEC;IAED;;;OAGG;IACH,kBAEC;IAED;;;;;OAKG;IACH,WAHW,IAAI,GAAC,MAAM,GAAC,QAAQ,GAClB,QAAQ,CAKpB;IAED;;;;;;;;;OASG;IACH,cAHW,IAAI,GAAC,MAAM,GAAC,MAAM,GAAC,QAAQ,GACzB,QAAQ,CAKpB;IAED;;;;;;;;;OASG;IACH,gBAHW,IAAI,GAAC,MAAM,GAAC,MAAM,GAAC,QAAQ,GACzB,QAAQ,CAKpB;IAED;;;;;OAKG;IACH,gBAHW,IAAI,GAAC,MAAM,GAAC,QAAQ,GAClB,QAAQ,CAKpB;IAED;;;;;;OAMG;IACH,aAJW,MAAM,GACJ,QAAQ,GAAC,IAAI,CAezB;IAED;;;;;OAKG;IACH,aAHW,IAAI,GAAC,MAAM,GAAC,QAAQ,GAClB,OAAO,CAKnB;IAED;;;;;OAKG;IACH,mBAHW,IAAI,GAAC,MAAM,GAAC,QAAQ,GAClB,OAAO,CAKnB;IAED;;;;;OAKG;IACH,0BAHW,IAAI,GAAC,MAAM,GAAC,QAAQ,GAClB,OAAO,CAKnB;IAED;;;;;OAKG;IACH,gBAHW,IAAI,GAAC,MAAM,GAAC,QAAQ,GAClB,OAAO,CAKnB;IAED;;;;;OAKG;IACH,uBAHW,IAAI,GAAC,MAAM,GAAC,QAAQ,GAClB,OAAO,CAKnB;IAED,gBAEC;CACF;AAxND;;;GAGG;AACH;IACE;;OAEG;IACH,qBAFW,MAAM,EAKhB;CACF;AA9CD;;;;;;;;GAQG;AACH,kCAPW,IAAI,GAAC,MAAM,GAAC,QAAQ,aACpB,MAAM,OA6BhB;AAjED;;;GAGG;AAEH;;;;;;;;GAQG;AACH,8CANW,IAAI,GAAC,MAAM,GAAC,MAAM,GAAC,QAAQ,GACzB,oBAAuB,CAsBnC"} \ No newline at end of file diff --git a/types/rules/operation-builder.d.ts b/types/rules/operation-builder.d.ts index ec80d6a4c..f417d5aae 100644 --- a/types/rules/operation-builder.d.ts +++ b/types/rules/operation-builder.d.ts @@ -1,6 +1,6 @@ export type Item = { rawItem: HostItem; - persistence: import("../items/item-persistence").ItemPersistence; + persistence: import("../items/item-persistence"); semantics: import("../items/item-semantics"); readonly type: string; readonly name: string;