@sprucelabs/spruce-heartwood-utils 29.11.4 → 29.11.5

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.
@@ -9,7 +9,7 @@ export declare class HeartwoodDevice extends EventEmitter implements Device {
9
9
  protected constructor(storage: Storage);
10
10
  turnTorchOn(brightness?: number): void;
11
11
  turnTorchOff(): void;
12
- AudioController(): AudioController;
12
+ AudioController(_mp3Url: string): AudioController;
13
13
  openUrl(url: string): void;
14
14
  static Device(storage: Storage): HeartwoodDevice;
15
15
  setCachedValue(key: string, value: CachedValue): void;
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.HeartwoodDevice = void 0;
7
7
  const events_1 = __importDefault(require("events"));
8
8
  const schema_1 = require("@sprucelabs/schema");
9
+ const HeartwoodAudioController_1 = __importDefault(require("./HeartwoodAudioController"));
9
10
  class HeartwoodDevice extends events_1.default {
10
11
  constructor(storage) {
11
12
  super();
@@ -21,8 +22,8 @@ class HeartwoodDevice extends events_1.default {
21
22
  turnTorchOff() {
22
23
  this.sendCommand('turnTorchOff');
23
24
  }
24
- AudioController() {
25
- throw new Error('Method not implemented.');
25
+ AudioController(_mp3Url) {
26
+ return new HeartwoodAudioController_1.default();
26
27
  }
27
28
  openUrl(url) {
28
29
  void this.sendCommand('openUrl', {
@@ -9,7 +9,7 @@ export declare class HeartwoodDevice extends EventEmitter implements Device {
9
9
  protected constructor(storage: Storage);
10
10
  turnTorchOn(brightness?: number): void;
11
11
  turnTorchOff(): void;
12
- AudioController(): AudioController;
12
+ AudioController(_mp3Url: string): AudioController;
13
13
  openUrl(url: string): void;
14
14
  static Device(storage: Storage): HeartwoodDevice;
15
15
  setCachedValue(key: string, value: CachedValue): void;
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import EventEmitter from 'events';
11
11
  import { assertOptions } from '@sprucelabs/schema';
12
+ import HeartwoodAudioController from './HeartwoodAudioController.js';
12
13
  export class HeartwoodDevice extends EventEmitter {
13
14
  constructor(storage) {
14
15
  super();
@@ -24,8 +25,8 @@ export class HeartwoodDevice extends EventEmitter {
24
25
  turnTorchOff() {
25
26
  this.sendCommand('turnTorchOff');
26
27
  }
27
- AudioController() {
28
- throw new Error('Method not implemented.');
28
+ AudioController(_mp3Url) {
29
+ return new HeartwoodAudioController();
29
30
  }
30
31
  openUrl(url) {
31
32
  void this.sendCommand('openUrl', {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-heartwood-utils",
3
3
  "description": "Heartwood Utilities",
4
- "version": "29.11.4",
4
+ "version": "29.11.5",
5
5
  "skill": {
6
6
  "namespace": "heartwood"
7
7
  },