@xibosignage/xibo-communication-framework 0.0.5 → 0.0.6
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/xmr.d.ts +6 -0
- package/dist/xibo-communication-framework.cjs +4 -0
- package/dist/xibo-communication-framework.cjs.map +1 -1
- package/dist/xibo-communication-framework.d.ts +6 -0
- package/dist/xibo-communication-framework.esm.js +4 -0
- package/dist/xibo-communication-framework.esm.js.map +1 -1
- package/dist/xibo-communication-framework.js +4 -0
- 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,6 +10,12 @@ export interface XmrEvents {
|
|
|
10
10
|
licenceCheck: () => void;
|
|
11
11
|
showStatusWindow: (timeout: number) => void;
|
|
12
12
|
forceUpdateChromeOS: () => void;
|
|
13
|
+
criteriaUpdate: (criteriaUpdates: {
|
|
14
|
+
metric: string;
|
|
15
|
+
value: string;
|
|
16
|
+
ttl: number;
|
|
17
|
+
}[]) => void;
|
|
18
|
+
currentGeoLocation: () => void;
|
|
13
19
|
}
|
|
14
20
|
export default class Xmr {
|
|
15
21
|
emitter: Emitter<XmrEvents>;
|
|
@@ -8509,6 +8509,10 @@ var Xmr = /*#__PURE__*/function () {
|
|
|
8509
8509
|
_this2.emitter.emit('showStatusWindow', parseInt(split[1]) || 60);
|
|
8510
8510
|
} else if (message.action == 'commandAction' && message.commandCode.startsWith('forceUpdateChromeOS')) {
|
|
8511
8511
|
_this2.emitter.emit('forceUpdateChromeOS');
|
|
8512
|
+
} else if (message.action == 'commandAction' && message.commandCode.startsWith('currentGeoLocation')) {
|
|
8513
|
+
_this2.emitter.emit('currentGeoLocation');
|
|
8514
|
+
} else if (message.action == 'criteriaUpdate') {
|
|
8515
|
+
_this2.emitter.emit('criteriaUpdate', message.criteriaUpdates);
|
|
8512
8516
|
} else {
|
|
8513
8517
|
console.error('Xmr::message: unknown action: ' + message.action);
|
|
8514
8518
|
}
|