@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.
@@ -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
  }