@xibosignage/xibo-communication-framework 0.0.7 → 0.0.8

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.
@@ -17,6 +17,8 @@ interface XmrEvents {
17
17
  }[]) => void;
18
18
  commandCodeReceived: (commandCode: string) => void;
19
19
  dataUpdate: (widgetId: number) => void;
20
+ purgeAll: () => void;
21
+ clearStatsAndLogs: () => void;
20
22
  }
21
23
  declare class Xmr {
22
24
  emitter: Emitter<XmrEvents>;
@@ -8508,6 +8508,10 @@ var Xmr = /*#__PURE__*/function () {
8508
8508
  _this2.emitter.emit('commandCodeReceived', message.commandCode);
8509
8509
  } else if (message.action == 'dataUpdate') {
8510
8510
  _this2.emitter.emit('dataUpdate', message.widgetId);
8511
+ } else if (message.action == 'purgeAll') {
8512
+ _this2.emitter.emit('purgeAll');
8513
+ } else if (message.action == 'clearStatsAndLogs') {
8514
+ _this2.emitter.emit('clearStatsAndLogs');
8511
8515
  } else {
8512
8516
  console.error('Xmr::message: unknown action: ' + message.action);
8513
8517
  }