@signageos/front-applet 8.6.0 → 8.8.0

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.
Files changed (74) hide show
  1. package/dist/bundle.js +7 -7
  2. package/dist/bundle.js.map +1 -1
  3. package/docs/fpath/index.md +0 -270
  4. package/docs/sos/browser.md +0 -14
  5. package/docs/sos/command.md +0 -18
  6. package/docs/sos/deviceInfo.md +0 -17
  7. package/docs/sos/display.md +0 -8
  8. package/docs/sos/fileSystem.md +0 -488
  9. package/docs/sos/hardware/index.md +2 -49
  10. package/docs/sos/input.md +0 -12
  11. package/docs/sos/native/mdc.md +1 -35
  12. package/docs/sos/native/nmc.md +127 -0
  13. package/docs/sos/offline/cache.md +0 -6
  14. package/docs/sos/offline/index.md +0 -27
  15. package/docs/sos/proofOfPlay.md +0 -10
  16. package/docs/sos/stream.md +11 -781
  17. package/docs/sos/sync.md +0 -23
  18. package/docs/sos/video.md +0 -86
  19. package/docs/sos_management/app.md +32 -29
  20. package/docs/sos_management/index.md +2 -10
  21. package/docs/sos_management/network.md +73 -19
  22. package/docs/sos_management/os.md +0 -11
  23. package/docs/sos_management/package.md +20 -0
  24. package/docs/sos_management/power.md +50 -30
  25. package/docs/sos_management/screen.md +0 -7
  26. package/docs/sos_management/time.md +0 -3
  27. package/docs/sos_management/wifi.md +0 -101
  28. package/es6/FrontApplet/Management/App/App.d.ts +34 -24
  29. package/es6/FrontApplet/Management/App/App.js.map +1 -1
  30. package/es6/FrontApplet/Management/IManagement.d.ts +1 -1
  31. package/es6/FrontApplet/Management/Network/INetwork.d.ts +2 -0
  32. package/es6/FrontApplet/Management/Network/INetwork.js.map +1 -1
  33. package/es6/FrontApplet/Management/Network/Network.d.ts +35 -0
  34. package/es6/FrontApplet/Management/Network/Network.js +68 -0
  35. package/es6/FrontApplet/Management/Network/Network.js.map +1 -1
  36. package/es6/FrontApplet/Management/Network/wakeOnLan.d.ts +18 -0
  37. package/es6/FrontApplet/Management/Network/wakeOnLan.js +43 -0
  38. package/es6/FrontApplet/Management/Network/wakeOnLan.js.map +1 -0
  39. package/es6/FrontApplet/Management/Package/Package.d.ts +9 -0
  40. package/es6/FrontApplet/Management/Package/Package.js +15 -0
  41. package/es6/FrontApplet/Management/Package/Package.js.map +1 -1
  42. package/es6/FrontApplet/Management/Power/IPower.d.ts +32 -10
  43. package/es6/FrontApplet/Management/Power/IPower.js +3 -0
  44. package/es6/FrontApplet/Management/Power/IPower.js.map +1 -1
  45. package/es6/FrontApplet/Management/Power/Power.d.ts +12 -8
  46. package/es6/FrontApplet/Management/Power/Power.js +23 -32
  47. package/es6/FrontApplet/Management/Power/Power.js.map +1 -1
  48. package/es6/FrontApplet/Management/Power/PowerHelper.d.ts +8 -3
  49. package/es6/FrontApplet/Management/Power/PowerHelper.js +32 -0
  50. package/es6/FrontApplet/Management/Power/PowerHelper.js.map +1 -1
  51. package/es6/FrontApplet/Management/helpers/ProprietaryTimerHelper.d.ts +2 -1
  52. package/es6/FrontApplet/Management/helpers/TimerHelper.d.ts +3 -1
  53. package/es6/FrontApplet/Management/helpers/TimerHelper.js +2 -0
  54. package/es6/FrontApplet/Management/helpers/TimerHelper.js.map +1 -1
  55. package/es6/FrontApplet/NativeCommands/NMC/CommandsNmc.d.ts +4 -0
  56. package/es6/FrontApplet/NativeCommands/NMC/CommandsNmc.js +66 -0
  57. package/es6/FrontApplet/NativeCommands/NMC/CommandsNmc.js.map +1 -0
  58. package/es6/FrontApplet/NativeCommands/NMC/INativeNmcCommands.d.ts +21 -0
  59. package/es6/FrontApplet/NativeCommands/NMC/INativeNmcCommands.js +3 -0
  60. package/es6/FrontApplet/NativeCommands/NMC/INativeNmcCommands.js.map +1 -0
  61. package/es6/FrontApplet/NativeCommands/NMC/Nmc.d.ts +50 -0
  62. package/es6/FrontApplet/NativeCommands/NMC/Nmc.js +77 -0
  63. package/es6/FrontApplet/NativeCommands/NMC/Nmc.js.map +1 -0
  64. package/es6/FrontApplet/NativeCommands/NativeCommands.d.ts +2 -0
  65. package/es6/FrontApplet/NativeCommands/NativeCommands.js +3 -0
  66. package/es6/FrontApplet/NativeCommands/NativeCommands.js.map +1 -1
  67. package/es6/FrontApplet/Video/IOptions.d.ts +5 -0
  68. package/es6/Monitoring/Management/Network/handleManagementNetworkRequests.js +14 -0
  69. package/es6/Monitoring/Management/Network/handleManagementNetworkRequests.js.map +1 -1
  70. package/es6/Monitoring/Management/Network/managementNetworkCommands.d.ts +23 -1
  71. package/es6/Monitoring/Management/Network/managementNetworkCommands.js +5 -1
  72. package/es6/Monitoring/Management/Network/managementNetworkCommands.js.map +1 -1
  73. package/es6/Monitoring/Management/Power/powerCommands.d.ts +3 -3
  74. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandsNmc.js","sourceRoot":"","sources":["../../../../src/FrontApplet/NativeCommands/NMC/CommandsNmc.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,21 @@
1
+ import { IpAddressType } from '../MDC/Mdc';
2
+ import { NmcCommands } from './CommandsNmc';
3
+ export default interface INativeNmcCommands {
4
+ sendOne(ipAddress: IpAddressType, command: typeof NmcCommands, data: string[] | []): Promise<INMCResponse>;
5
+ }
6
+ export interface INMCResponse {
7
+ /**
8
+ * The type of the response, either 'ACK' for acknowledgment or 'NACK' for negative acknowledgment.
9
+ */
10
+ type: 'ACK' | 'NACK';
11
+ /**
12
+ * The command type that was executed, represented as a number.
13
+ * Should match the command number in {@link NmcCommands}.
14
+ */
15
+ commandType: string[];
16
+ /**
17
+ * The result of the command execution, represented as a number.
18
+ * This value can vary depending on the command executed.
19
+ */
20
+ result: number;
21
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=INativeNmcCommands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"INativeNmcCommands.js","sourceRoot":"","sources":["../../../../src/FrontApplet/NativeCommands/NMC/INativeNmcCommands.ts"],"names":[],"mappings":""}
@@ -0,0 +1,50 @@
1
+ import IPostMessage from '../../IPostMessage';
2
+ import { IpAddressType } from '../MDC/Mdc';
3
+ import INativeNmcCommands, { INMCResponse } from './INativeNmcCommands';
4
+ import { NmcCommands } from './CommandsNmc';
5
+ /**
6
+ * The `sos.native.nmc` API groups together methods for controlling WebOs devices using NMC commands.
7
+ *
8
+ * :::warning
9
+ * This API is currently available on WebOs devices only.
10
+ * :::
11
+ *
12
+ * <details>
13
+ * <summary>NMC Management Capabilities</summary>
14
+ * | Capability | Description |
15
+ * |:------------|:-------------|
16
+ * | `NATIVE_COMMANDS_NMC` | If device supports performing NMC commands |
17
+ *
18
+ * If you want to check if the device supports this capability, use [`sos.management.supports()`](https://developers.signageos.io/sdk/sos_management/#supports).
19
+ * </details>
20
+ */
21
+ export default class Nmc implements INativeNmcCommands {
22
+ private messagePrefix;
23
+ private postMessage;
24
+ static MESSAGE_PREFIX: string;
25
+ /** @internal */
26
+ constructor(messagePrefix: string, postMessage: IPostMessage<any>);
27
+ /**
28
+ * The `sendOne()` method sends an NMC command to another WebOS device on the same network or to the localhost.
29
+ *
30
+ * @param ipAddress The IP address of the device to send the command to.
31
+ * @param command The NMC command to send. See {@link NmcCommands} for available commands.
32
+ * @param data The optional data to send with the command.
33
+ * @throws {Error} If the `ipAddress` is not a valid string or if the `command` is not a valid number.
34
+ * @throws {Error} If the `data` is not an array of strings.
35
+ * @throws {Error} If any error occurs during the command execution.
36
+ * @returns {Promise<INMCResponse>} NMC response object containing the result of the command execution.
37
+ * @since 6.5.1
38
+ *
39
+ * @example
40
+ * // Send a command to a WebOS device at IP address for menu open
41
+ * await sos.native.nmc.sendOne('192.168.0.10', ['m','c'], ['43']);
42
+ *
43
+ * // Send a command to a WebOS device at IP address for device power on
44
+ * await sos.native.nmc.sendOne('192.168.0.10', ['k', 'a'], ['1']);
45
+ *
46
+ */
47
+ sendOne(ipAddress: IpAddressType, command: typeof NmcCommands, data: string[] | []): Promise<INMCResponse>;
48
+ private getMessage;
49
+ private getMessagePrefix;
50
+ }
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const Validate_1 = __importDefault(require("../../Validate/Validate"));
7
+ /**
8
+ * The `sos.native.nmc` API groups together methods for controlling WebOs devices using NMC commands.
9
+ *
10
+ * :::warning
11
+ * This API is currently available on WebOs devices only.
12
+ * :::
13
+ *
14
+ * <details>
15
+ * <summary>NMC Management Capabilities</summary>
16
+ * | Capability | Description |
17
+ * |:------------|:-------------|
18
+ * | `NATIVE_COMMANDS_NMC` | If device supports performing NMC commands |
19
+ *
20
+ * If you want to check if the device supports this capability, use [`sos.management.supports()`](https://developers.signageos.io/sdk/sos_management/#supports).
21
+ * </details>
22
+ */
23
+ class Nmc {
24
+ messagePrefix;
25
+ postMessage;
26
+ static MESSAGE_PREFIX = 'nmc';
27
+ /** @internal */
28
+ constructor(messagePrefix, postMessage) {
29
+ this.messagePrefix = messagePrefix;
30
+ this.postMessage = postMessage;
31
+ }
32
+ /**
33
+ * The `sendOne()` method sends an NMC command to another WebOS device on the same network or to the localhost.
34
+ *
35
+ * @param ipAddress The IP address of the device to send the command to.
36
+ * @param command The NMC command to send. See {@link NmcCommands} for available commands.
37
+ * @param data The optional data to send with the command.
38
+ * @throws {Error} If the `ipAddress` is not a valid string or if the `command` is not a valid number.
39
+ * @throws {Error} If the `data` is not an array of strings.
40
+ * @throws {Error} If any error occurs during the command execution.
41
+ * @returns {Promise<INMCResponse>} NMC response object containing the result of the command execution.
42
+ * @since 6.5.1
43
+ *
44
+ * @example
45
+ * // Send a command to a WebOS device at IP address for menu open
46
+ * await sos.native.nmc.sendOne('192.168.0.10', ['m','c'], ['43']);
47
+ *
48
+ * // Send a command to a WebOS device at IP address for device power on
49
+ * await sos.native.nmc.sendOne('192.168.0.10', ['k', 'a'], ['1']);
50
+ *
51
+ */
52
+ async sendOne(ipAddress, command, data) {
53
+ (0, Validate_1.default)({ ipAddress }).required().string();
54
+ (0, Validate_1.default)({ command }).required().array('string');
55
+ if (typeof data !== 'undefined') {
56
+ (0, Validate_1.default)({ data }).required().array('string');
57
+ }
58
+ if (typeof data === 'undefined') {
59
+ data = [];
60
+ }
61
+ const { commandResponse } = await this.postMessage({
62
+ type: this.getMessage('send_one'),
63
+ ipAddress,
64
+ command,
65
+ data,
66
+ });
67
+ return commandResponse;
68
+ }
69
+ getMessage(name) {
70
+ return this.getMessagePrefix() + '.' + name;
71
+ }
72
+ getMessagePrefix() {
73
+ return this.messagePrefix + '.' + Nmc.MESSAGE_PREFIX;
74
+ }
75
+ }
76
+ exports.default = Nmc;
77
+ //# sourceMappingURL=Nmc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Nmc.js","sourceRoot":"","sources":["../../../../src/FrontApplet/NativeCommands/NMC/Nmc.ts"],"names":[],"mappings":";;;;;AACA,uEAA+C;AAK/C;;;;;;;;;;;;;;;GAeG;AACH,MAAqB,GAAG;IAKd;IACA;IALF,MAAM,CAAC,cAAc,GAAW,KAAK,CAAC;IAE7C,gBAAgB;IAChB,YACS,aAAqB,EACrB,WAA8B;QAD9B,kBAAa,GAAb,aAAa,CAAQ;QACrB,gBAAW,GAAX,WAAW,CAAmB;IACpC,CAAC;IAEJ;;;;;;;;;;;;;;;;;;;OAmBG;IACI,KAAK,CAAC,OAAO,CAAC,SAAwB,EAAE,OAA2B,EAAE,IAAmB;QAC9F,IAAA,kBAAQ,EAAC,EAAE,SAAS,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,CAAC;QAC5C,IAAA,kBAAQ,EAAC,EAAE,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACjD,IAAI,OAAO,IAAI,KAAK,WAAW,EAAE,CAAC;YACjC,IAAA,kBAAQ,EAAC,EAAE,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC/C,CAAC;QACD,IAAI,OAAO,IAAI,KAAK,WAAW,EAAE,CAAC;YACjC,IAAI,GAAG,EAAE,CAAC;QACX,CAAC;QAED,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC;YAClD,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;YACjC,SAAS;YACT,OAAO;YACP,IAAI;SACJ,CAAC,CAAC;QACH,OAAO,eAAe,CAAC;IACxB,CAAC;IAEO,UAAU,CAAC,IAAY;QAC9B,OAAO,IAAI,CAAC,gBAAgB,EAAE,GAAG,GAAG,GAAG,IAAI,CAAC;IAC7C,CAAC;IAEO,gBAAgB;QACvB,OAAO,IAAI,CAAC,aAAa,GAAG,GAAG,GAAG,GAAG,CAAC,cAAc,CAAC;IACtD,CAAC;;AAtDF,sBAuDC"}
@@ -1,5 +1,6 @@
1
1
  import IPostMessage from '../IPostMessage';
2
2
  import Mdc from './MDC/Mdc';
3
+ import Nmc from './NMC/Nmc';
3
4
  /**
4
5
  * The `sos.native` API groups together methods for controlling the device using native commands.
5
6
  */
@@ -8,6 +9,7 @@ export default class NativeCommands {
8
9
  private postMessage;
9
10
  static MESSAGE_PREFIX: string;
10
11
  readonly mdc: Mdc;
12
+ readonly nmc: Nmc;
11
13
  /** @internal */
12
14
  constructor(messagePrefix: string, postMessage: IPostMessage<any>);
13
15
  private getMessagePrefix;
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const Mdc_1 = __importDefault(require("./MDC/Mdc"));
7
+ const Nmc_1 = __importDefault(require("./NMC/Nmc"));
7
8
  /**
8
9
  * The `sos.native` API groups together methods for controlling the device using native commands.
9
10
  */
@@ -12,11 +13,13 @@ class NativeCommands {
12
13
  postMessage;
13
14
  static MESSAGE_PREFIX = 'native_commands';
14
15
  mdc;
16
+ nmc;
15
17
  /** @internal */
16
18
  constructor(messagePrefix, postMessage) {
17
19
  this.messagePrefix = messagePrefix;
18
20
  this.postMessage = postMessage;
19
21
  this.mdc = new Mdc_1.default(this.getMessagePrefix(), this.postMessage);
22
+ this.nmc = new Nmc_1.default(this.getMessagePrefix(), this.postMessage);
20
23
  }
21
24
  getMessagePrefix() {
22
25
  return this.messagePrefix + '.' + NativeCommands.MESSAGE_PREFIX;
@@ -1 +1 @@
1
- {"version":3,"file":"NativeCommands.js","sourceRoot":"","sources":["../../../src/FrontApplet/NativeCommands/NativeCommands.ts"],"names":[],"mappings":";;;;;AACA,oDAA4B;AAE5B;;GAEG;AACH,MAAqB,cAAc;IAOzB;IACA;IAPF,MAAM,CAAC,cAAc,GAAW,iBAAiB,CAAC;IAEzC,GAAG,CAAM;IAEzB,gBAAgB;IAChB,YACS,aAAqB,EACrB,WAA8B;QAD9B,kBAAa,GAAb,aAAa,CAAQ;QACrB,gBAAW,GAAX,WAAW,CAAmB;QAEtC,IAAI,CAAC,GAAG,GAAG,IAAI,aAAG,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAC/D,CAAC;IAEO,gBAAgB;QACvB,OAAO,IAAI,CAAC,aAAa,GAAG,GAAG,GAAG,cAAc,CAAC,cAAc,CAAC;IACjE,CAAC;;AAfF,iCAgBC"}
1
+ {"version":3,"file":"NativeCommands.js","sourceRoot":"","sources":["../../../src/FrontApplet/NativeCommands/NativeCommands.ts"],"names":[],"mappings":";;;;;AACA,oDAA4B;AAC5B,oDAA4B;AAE5B;;GAEG;AACH,MAAqB,cAAc;IAQzB;IACA;IARF,MAAM,CAAC,cAAc,GAAW,iBAAiB,CAAC;IAEzC,GAAG,CAAM;IACT,GAAG,CAAM;IAEzB,gBAAgB;IAChB,YACS,aAAqB,EACrB,WAA8B;QAD9B,kBAAa,GAAb,aAAa,CAAQ;QACrB,gBAAW,GAAX,WAAW,CAAmB;QAEtC,IAAI,CAAC,GAAG,GAAG,IAAI,aAAG,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QAC9D,IAAI,CAAC,GAAG,GAAG,IAAI,aAAG,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAC/D,CAAC;IAEO,gBAAgB;QACvB,OAAO,IAAI,CAAC,aAAa,GAAG,GAAG,GAAG,cAAc,CAAC,cAAc,CAAC;IACjE,CAAC;;AAjBF,iCAkBC"}
@@ -37,6 +37,11 @@ export interface IStreamOptions extends IOptions {
37
37
  * @default 30000
38
38
  */
39
39
  autoReconnectInterval?: number;
40
+ /**
41
+ * Enable low-latency mode for stream playback.
42
+ * @default false
43
+ */
44
+ lowLatency?: boolean;
40
45
  }
41
46
  /**
42
47
  * Available options for stream function `prepare()`.
@@ -32,6 +32,20 @@ function handleManagementNetworkRequests(onCommand, dispatch, frontApplet) {
32
32
  result: {},
33
33
  });
34
34
  break;
35
+ case managementNetworkCommands_1.ManagementNetworkSendUdpRequest:
36
+ await frontApplet.management.network.sendUdp(commandEvent.command.ip, commandEvent.command.port, commandEvent.command.data);
37
+ await dispatch({
38
+ type: managementNetworkCommands_1.ManagementNetworkSendUdpResult,
39
+ result: {},
40
+ });
41
+ break;
42
+ case managementNetworkCommands_1.ManagementNetworkSendWakeOnLanRequest:
43
+ await frontApplet.management.network.sendWakeOnLan(commandEvent.command.macAddress);
44
+ await dispatch({
45
+ type: managementNetworkCommands_1.ManagementNetworkSendWakeOnLanResult,
46
+ result: {},
47
+ });
48
+ break;
35
49
  default:
36
50
  }
37
51
  });
@@ -1 +1 @@
1
- {"version":3,"file":"handleManagementNetworkRequests.js","sourceRoot":"","sources":["../../../../src/Monitoring/Management/Network/handleManagementNetworkRequests.ts"],"names":[],"mappings":";;AAeA,0EAqCC;AAjDD,2EAUqC;AAErC,SAAgB,+BAA+B,CAC9C,SAA6G,EAC7G,QAAyE,EACzE,WAAwB;IAExB,SAAS,CAAC,KAAK,EAAE,YAA2D,EAAE,EAAE;QAC/E,QAAQ,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YACnC,KAAK,kEAAsC;gBAC1C,MAAM,QAAQ,CAAwC;oBACrD,IAAI,EAAE,iEAAqC;oBAC3C,MAAM,EAAE,MAAM,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,cAAc,EAAE;iBAC7D,CAAC,CAAC;gBACH,MAAM;YACP,KAAK,6DAAiC;gBACrC,MAAM,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,YAAY,CAAC,OAAO,CAAC,aAAa,EAAE,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;gBACjH,MAAM,QAAQ,CAAmC;oBAChD,IAAI,EAAE,4DAAgC;oBACtC,MAAM,EAAE,EAAE;iBACV,CAAC,CAAC;gBACH,MAAM;YACP,KAAK,iEAAqC;gBACzC,MAAM,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;gBACjF,MAAM,QAAQ,CAAuC;oBACpD,IAAI,EAAE,gEAAoC;oBAC1C,MAAM,EAAE,EAAE;iBACV,CAAC,CAAC;gBACH,MAAM;YACP,KAAK,oEAAwC;gBAC5C,MAAM,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,gBAAgB,CAAC,YAAY,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;gBAC1F,MAAM,QAAQ,CAA0C;oBACvD,IAAI,EAAE,mEAAuC;oBAC7C,MAAM,EAAE,EAAE;iBACV,CAAC,CAAC;gBACH,MAAM;YACP,QAAQ;QACT,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"handleManagementNetworkRequests.js","sourceRoot":"","sources":["../../../../src/Monitoring/Management/Network/handleManagementNetworkRequests.ts"],"names":[],"mappings":";;AAmBA,0EAmDC;AAnED,2EAcqC;AAErC,SAAgB,+BAA+B,CAC9C,SAA6G,EAC7G,QAAyE,EACzE,WAAwB;IAExB,SAAS,CAAC,KAAK,EAAE,YAA2D,EAAE,EAAE;QAC/E,QAAQ,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YACnC,KAAK,kEAAsC;gBAC1C,MAAM,QAAQ,CAAwC;oBACrD,IAAI,EAAE,iEAAqC;oBAC3C,MAAM,EAAE,MAAM,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,cAAc,EAAE;iBAC7D,CAAC,CAAC;gBACH,MAAM;YACP,KAAK,6DAAiC;gBACrC,MAAM,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,YAAY,CAAC,OAAO,CAAC,aAAa,EAAE,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;gBACjH,MAAM,QAAQ,CAAmC;oBAChD,IAAI,EAAE,4DAAgC;oBACtC,MAAM,EAAE,EAAE;iBACV,CAAC,CAAC;gBACH,MAAM;YACP,KAAK,iEAAqC;gBACzC,MAAM,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;gBACjF,MAAM,QAAQ,CAAuC;oBACpD,IAAI,EAAE,gEAAoC;oBAC1C,MAAM,EAAE,EAAE;iBACV,CAAC,CAAC;gBACH,MAAM;YACP,KAAK,oEAAwC;gBAC5C,MAAM,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,gBAAgB,CAAC,YAAY,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;gBAC1F,MAAM,QAAQ,CAA0C;oBACvD,IAAI,EAAE,mEAAuC;oBAC7C,MAAM,EAAE,EAAE;iBACV,CAAC,CAAC;gBACH,MAAM;YACP,KAAK,2DAA+B;gBACnC,MAAM,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,EAAE,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;gBAC5H,MAAM,QAAQ,CAAiC;oBAC9C,IAAI,EAAE,0DAA8B;oBACpC,MAAM,EAAE,EAAE;iBACV,CAAC,CAAC;gBACH,MAAM;YACP,KAAK,iEAAqC;gBACzC,MAAM,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,aAAa,CAAC,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;gBACpF,MAAM,QAAQ,CAAuC;oBACpD,IAAI,EAAE,gEAAoC;oBAC1C,MAAM,EAAE,EAAE;iBACV,CAAC,CAAC;gBACH,MAAM;YACP,QAAQ;QACT,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { INetworkInterface, INetworkOptions } from '../../../FrontApplet/Management/Network/INetworkInfo';
2
2
  import { EmptyObject } from '../../EmptyObject';
3
- export type ManagementNetworkRequests = ManagementNetworkListInterfacesRequest | ManagementNetworkSetManualRequest | ManagementNetworkSetDHCPServerRequest | ManagementNetworkDisableInterfaceRequest;
3
+ export type ManagementNetworkRequests = ManagementNetworkListInterfacesRequest | ManagementNetworkSetManualRequest | ManagementNetworkSetDHCPServerRequest | ManagementNetworkDisableInterfaceRequest | ManagementNetworkSendUdpRequest | ManagementNetworkSendWakeOnLanRequest;
4
4
  export declare const ManagementNetworkListInterfacesRequest = "sos.Monitoring.Management.Network.ListInterfacesRequest";
5
5
  export interface ManagementNetworkListInterfacesRequest {
6
6
  type: typeof ManagementNetworkListInterfacesRequest;
@@ -41,3 +41,25 @@ export interface ManagementNetworkDisableInterfaceResult {
41
41
  type: typeof ManagementNetworkDisableInterfaceResult;
42
42
  result: EmptyObject;
43
43
  }
44
+ export declare const ManagementNetworkSendUdpRequest = "sos.Monitoring.Management.Network.SendUdpRequest";
45
+ export interface ManagementNetworkSendUdpRequest {
46
+ type: typeof ManagementNetworkSendUdpRequest;
47
+ ip: string;
48
+ port: number;
49
+ data: number[];
50
+ }
51
+ export declare const ManagementNetworkSendUdpResult = "sos.Monitoring.Management.Network.SendUdpResult";
52
+ export interface ManagementNetworkSendUdpResult {
53
+ type: typeof ManagementNetworkSendUdpResult;
54
+ result: EmptyObject;
55
+ }
56
+ export declare const ManagementNetworkSendWakeOnLanRequest = "sos.Monitoring.Management.Network.SendWakeOnLanRequest";
57
+ export interface ManagementNetworkSendWakeOnLanRequest {
58
+ type: typeof ManagementNetworkSendWakeOnLanRequest;
59
+ macAddress: string;
60
+ }
61
+ export declare const ManagementNetworkSendWakeOnLanResult = "sos.Monitoring.Management.Network.SendWakeOnLanResult";
62
+ export interface ManagementNetworkSendWakeOnLanResult {
63
+ type: typeof ManagementNetworkSendWakeOnLanResult;
64
+ result: EmptyObject;
65
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ManagementNetworkDisableInterfaceResult = exports.ManagementNetworkDisableInterfaceRequest = exports.ManagementNetworkSetDHCPServerResult = exports.ManagementNetworkSetDHCPServerRequest = exports.ManagementNetworkSetManualResult = exports.ManagementNetworkSetManualRequest = exports.ManagementNetworkListInterfacesResult = exports.ManagementNetworkListInterfacesRequest = void 0;
3
+ exports.ManagementNetworkSendWakeOnLanResult = exports.ManagementNetworkSendWakeOnLanRequest = exports.ManagementNetworkSendUdpResult = exports.ManagementNetworkSendUdpRequest = exports.ManagementNetworkDisableInterfaceResult = exports.ManagementNetworkDisableInterfaceRequest = exports.ManagementNetworkSetDHCPServerResult = exports.ManagementNetworkSetDHCPServerRequest = exports.ManagementNetworkSetManualResult = exports.ManagementNetworkSetManualRequest = exports.ManagementNetworkListInterfacesResult = exports.ManagementNetworkListInterfacesRequest = void 0;
4
4
  exports.ManagementNetworkListInterfacesRequest = 'sos.Monitoring.Management.Network.ListInterfacesRequest';
5
5
  exports.ManagementNetworkListInterfacesResult = 'sos.Monitoring.Management.Network.ListInterfacesResult';
6
6
  exports.ManagementNetworkSetManualRequest = 'sos.Monitoring.Management.Network.SetManualRequest';
@@ -9,4 +9,8 @@ exports.ManagementNetworkSetDHCPServerRequest = 'sos.Monitoring.Management.Netwo
9
9
  exports.ManagementNetworkSetDHCPServerResult = 'sos.Monitoring.Management.Network.SetDHCPServerResult';
10
10
  exports.ManagementNetworkDisableInterfaceRequest = 'sos.Monitoring.Management.Network.DisableInterfaceRequest';
11
11
  exports.ManagementNetworkDisableInterfaceResult = 'sos.Monitoring.Management.Network.DisableInterfaceResult';
12
+ exports.ManagementNetworkSendUdpRequest = 'sos.Monitoring.Management.Network.SendUdpRequest';
13
+ exports.ManagementNetworkSendUdpResult = 'sos.Monitoring.Management.Network.SendUdpResult';
14
+ exports.ManagementNetworkSendWakeOnLanRequest = 'sos.Monitoring.Management.Network.SendWakeOnLanRequest';
15
+ exports.ManagementNetworkSendWakeOnLanResult = 'sos.Monitoring.Management.Network.SendWakeOnLanResult';
12
16
  //# sourceMappingURL=managementNetworkCommands.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"managementNetworkCommands.js","sourceRoot":"","sources":["../../../../src/Monitoring/Management/Network/managementNetworkCommands.ts"],"names":[],"mappings":";;;AASa,QAAA,sCAAsC,GAAG,yDAAyD,CAAC;AAKnG,QAAA,qCAAqC,GAAG,wDAAwD,CAAC;AAMjG,QAAA,iCAAiC,GAAG,oDAAoD,CAAC;AAOzF,QAAA,gCAAgC,GAAG,mDAAmD,CAAC;AAMvF,QAAA,qCAAqC,GAAG,wDAAwD,CAAC;AAMjG,QAAA,oCAAoC,GAAG,uDAAuD,CAAC;AAM/F,QAAA,wCAAwC,GAAG,2DAA2D,CAAC;AAMvG,QAAA,uCAAuC,GAAG,0DAA0D,CAAC"}
1
+ {"version":3,"file":"managementNetworkCommands.js","sourceRoot":"","sources":["../../../../src/Monitoring/Management/Network/managementNetworkCommands.ts"],"names":[],"mappings":";;;AAWa,QAAA,sCAAsC,GAAG,yDAAyD,CAAC;AAKnG,QAAA,qCAAqC,GAAG,wDAAwD,CAAC;AAMjG,QAAA,iCAAiC,GAAG,oDAAoD,CAAC;AAOzF,QAAA,gCAAgC,GAAG,mDAAmD,CAAC;AAMvF,QAAA,qCAAqC,GAAG,wDAAwD,CAAC;AAMjG,QAAA,oCAAoC,GAAG,uDAAuD,CAAC;AAM/F,QAAA,wCAAwC,GAAG,2DAA2D,CAAC;AAMvG,QAAA,uCAAuC,GAAG,0DAA0D,CAAC;AAMrG,QAAA,+BAA+B,GAAG,kDAAkD,CAAC;AAQrF,QAAA,8BAA8B,GAAG,iDAAiD,CAAC;AAMnF,QAAA,qCAAqC,GAAG,wDAAwD,CAAC;AAMjG,QAAA,oCAAoC,GAAG,uDAAuD,CAAC"}
@@ -1,7 +1,7 @@
1
- import { ITimer, TimerType } from '../../../FrontApplet/Management/helpers/TimerHelper';
2
1
  import { IProprietaryTimer } from '../../../FrontApplet/Management/helpers/ProprietaryTimerHelper';
2
+ import { ITimer, TimerType } from '../../../FrontApplet/Management/helpers/TimerHelper';
3
+ import { IScheduledRebootAction, IScheduledRebootRule, WeekdayType } from '../../../FrontApplet/Management/Power/IPower';
3
4
  import { EmptyObject } from '../../EmptyObject';
4
- import { IScheduledRebootActions, WeekdayType } from '../../../FrontApplet/Management/Power/IPower';
5
5
  export type PowerRequests = PowerSystemRebootRequest | PowerSystemRebootResult | PowerAppRestartRequest | ManagementPowerGetTimersRequest | ManagementPowerSetTimerRequest | ManagementPowerUnsetTimerRequest | ManagementPowerGetProprietaryTimersRequest | ManagementPowerSetProprietaryTimerRequest | ManagementPowerUnsetProprietaryTimerRequest | ManagementPowerClearScheduledRebootsRequest | ManagementPowerGetScheduledRebootsRequest | ManagementPowerRemoveScheduledRebootRequest | ManagementPowerSetScheduledRebootRequest;
6
6
  export declare const PowerSystemRebootRequest = "sos.Monitoring.Management.Power.PowerSystemRebootRequest";
7
7
  export interface PowerSystemRebootRequest {
@@ -103,7 +103,7 @@ export interface ManagementPowerGetScheduledRebootsRequest {
103
103
  export declare const ManagementPowerGetScheduledRebootsResult = "sos.Monitoring.Management.Power.ManagementPowerGetScheduledRebootsResult";
104
104
  export interface ManagementPowerGetScheduledRebootsResult {
105
105
  type: typeof ManagementPowerGetScheduledRebootsResult;
106
- result: IScheduledRebootActions[];
106
+ result: IScheduledRebootAction<IScheduledRebootRule>[];
107
107
  }
108
108
  export declare const ManagementPowerRemoveScheduledRebootRequest = "sos.Monitoring.Management.Power.ManagementPowerRemoveScheduledRebootRequest";
109
109
  export interface ManagementPowerRemoveScheduledRebootRequest {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signageos/front-applet",
3
- "version": "8.6.0",
3
+ "version": "8.8.0",
4
4
  "main": "dist/bundle.js",
5
5
  "types": "es6/bundle.d.ts",
6
6
  "files": [