@xibosignage/xibo-communication-framework 0.0.4 → 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/README.md +50 -1
- 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
|
@@ -12,6 +12,12 @@ interface XmrEvents {
|
|
|
12
12
|
licenceCheck: () => void;
|
|
13
13
|
showStatusWindow: (timeout: number) => void;
|
|
14
14
|
forceUpdateChromeOS: () => void;
|
|
15
|
+
criteriaUpdate: (criteriaUpdates: {
|
|
16
|
+
metric: string;
|
|
17
|
+
value: string;
|
|
18
|
+
ttl: number;
|
|
19
|
+
}[]) => void;
|
|
20
|
+
currentGeoLocation: () => void;
|
|
15
21
|
}
|
|
16
22
|
declare class Xmr {
|
|
17
23
|
emitter: Emitter<XmrEvents>;
|
|
@@ -8507,6 +8507,10 @@ var Xmr = /*#__PURE__*/function () {
|
|
|
8507
8507
|
_this2.emitter.emit('showStatusWindow', parseInt(split[1]) || 60);
|
|
8508
8508
|
} else if (message.action == 'commandAction' && message.commandCode.startsWith('forceUpdateChromeOS')) {
|
|
8509
8509
|
_this2.emitter.emit('forceUpdateChromeOS');
|
|
8510
|
+
} else if (message.action == 'commandAction' && message.commandCode.startsWith('currentGeoLocation')) {
|
|
8511
|
+
_this2.emitter.emit('currentGeoLocation');
|
|
8512
|
+
} else if (message.action == 'criteriaUpdate') {
|
|
8513
|
+
_this2.emitter.emit('criteriaUpdate', message.criteriaUpdates);
|
|
8510
8514
|
} else {
|
|
8511
8515
|
console.error('Xmr::message: unknown action: ' + message.action);
|
|
8512
8516
|
}
|