@xibosignage/xibo-communication-framework 0.0.5 → 0.0.7
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/src/modules/xmr/index.d.ts +2 -1
- package/dist/src/modules/xmr/xmr.d.ts +7 -2
- package/dist/xibo-communication-framework.cjs +6 -5
- package/dist/xibo-communication-framework.cjs.map +1 -1
- package/dist/xibo-communication-framework.d.ts +7 -2
- package/dist/xibo-communication-framework.esm.js +6 -5
- package/dist/xibo-communication-framework.esm.js.map +1 -1
- package/dist/xibo-communication-framework.js +6 -5
- package/dist/xibo-communication-framework.min.js +1 -1
- package/dist/xibo-communication-framework.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -10,8 +10,13 @@ interface XmrEvents {
|
|
|
10
10
|
collectNow: () => void;
|
|
11
11
|
screenShot: () => void;
|
|
12
12
|
licenceCheck: () => void;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
criteriaUpdate: (criteriaUpdates: {
|
|
14
|
+
metric: string;
|
|
15
|
+
value: string;
|
|
16
|
+
ttl: number;
|
|
17
|
+
}[]) => void;
|
|
18
|
+
commandCodeReceived: (commandCode: string) => void;
|
|
19
|
+
dataUpdate: (widgetId: number) => void;
|
|
15
20
|
}
|
|
16
21
|
declare class Xmr {
|
|
17
22
|
emitter: Emitter<XmrEvents>;
|
|
@@ -8502,11 +8502,12 @@ var Xmr = /*#__PURE__*/function () {
|
|
|
8502
8502
|
_this2.emitter.emit('screenShot');
|
|
8503
8503
|
} else if (message.action === 'licenceCheck') {
|
|
8504
8504
|
_this2.emitter.emit('licenceCheck');
|
|
8505
|
-
} else if (message.action == '
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8509
|
-
|
|
8505
|
+
} else if (message.action == 'criteriaUpdate') {
|
|
8506
|
+
_this2.emitter.emit('criteriaUpdate', message.criteriaUpdates);
|
|
8507
|
+
} else if (message.action == 'commandAction') {
|
|
8508
|
+
_this2.emitter.emit('commandCodeReceived', message.commandCode);
|
|
8509
|
+
} else if (message.action == 'dataUpdate') {
|
|
8510
|
+
_this2.emitter.emit('dataUpdate', message.widgetId);
|
|
8510
8511
|
} else {
|
|
8511
8512
|
console.error('Xmr::message: unknown action: ' + message.action);
|
|
8512
8513
|
}
|