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