@nextera.one/axis-server-sdk 2.3.3 → 2.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-D_Av0pG-.d.mts → index-9Wqoiq9_.d.mts} +2 -1
- package/dist/{index-wh9piy0E.d.ts → index-BN48uIiy.d.ts} +2 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -0
- package/dist/index.mjs.map +1 -1
- package/dist/sensors/index.d.mts +1 -1
- package/dist/sensors/index.d.ts +1 -1
- package/dist/sensors/index.js +7 -0
- package/dist/sensors/index.js.map +1 -1
- package/dist/sensors/index.mjs +7 -0
- package/dist/sensors/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2982,6 +2982,13 @@ var init_intent_router = __esm({
|
|
|
2982
2982
|
getHandlerIntents(handlerName) {
|
|
2983
2983
|
return this.handlerIntents.get(handlerName) ?? [];
|
|
2984
2984
|
}
|
|
2985
|
+
/** Returns the handler class name that owns the given intent, or undefined if not found. */
|
|
2986
|
+
getHandlerByIntent(intent) {
|
|
2987
|
+
for (const [handlerName, intents] of this.handlerIntents) {
|
|
2988
|
+
if (intents.includes(intent)) return handlerName;
|
|
2989
|
+
}
|
|
2990
|
+
return void 0;
|
|
2991
|
+
}
|
|
2985
2992
|
/** All registered handler class names. */
|
|
2986
2993
|
getRegisteredHandlers() {
|
|
2987
2994
|
return Array.from(this.handlerIntents.keys());
|