@nextera.one/axis-server-sdk 2.3.3 → 2.3.4
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-wh9piy0E.d.ts → index-CSIGjS-6.d.ts} +1 -0
- package/dist/{index-D_Av0pG-.d.mts → index-Cv_XfeQi.d.mts} +1 -0
- 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/sensors/index.mjs
CHANGED
|
@@ -3130,6 +3130,13 @@ var init_intent_router = __esm({
|
|
|
3130
3130
|
getHandlerIntents(handlerName) {
|
|
3131
3131
|
return this.handlerIntents.get(handlerName) ?? [];
|
|
3132
3132
|
}
|
|
3133
|
+
/** Returns the handler class name that owns the given intent, or undefined if not found. */
|
|
3134
|
+
getHandlerByIntent(intent) {
|
|
3135
|
+
for (const [handlerName, intents] of this.handlerIntents) {
|
|
3136
|
+
if (intents.includes(intent)) return handlerName;
|
|
3137
|
+
}
|
|
3138
|
+
return void 0;
|
|
3139
|
+
}
|
|
3133
3140
|
/** All registered handler class names. */
|
|
3134
3141
|
getRegisteredHandlers() {
|
|
3135
3142
|
return Array.from(this.handlerIntents.keys());
|