@signageos/front-applet 8.5.3 → 8.7.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.
- package/dist/bundle.js +7 -7
- package/dist/bundle.js.map +1 -1
- package/docs/fpath/index.md +0 -270
- package/docs/sos/browser.md +0 -14
- package/docs/sos/command.md +0 -18
- package/docs/sos/deviceInfo.md +0 -17
- package/docs/sos/display.md +0 -8
- package/docs/sos/fileSystem.md +0 -488
- package/docs/sos/hardware/index.md +2 -49
- package/docs/sos/input.md +0 -12
- package/docs/sos/native/mdc.md +1 -35
- package/docs/sos/native/nmc.md +127 -0
- package/docs/sos/offline/cache.md +0 -6
- package/docs/sos/offline/index.md +0 -27
- package/docs/sos/proofOfPlay.md +0 -10
- package/docs/sos/stream.md +11 -781
- package/docs/sos/sync.md +5 -21
- package/docs/sos/video.md +0 -86
- package/docs/sos_management/app.md +32 -29
- package/docs/sos_management/index.md +0 -8
- package/docs/sos_management/network.md +0 -19
- package/docs/sos_management/os.md +0 -11
- package/docs/sos_management/power.md +50 -30
- package/docs/sos_management/screen.md +0 -7
- package/docs/sos_management/time.md +0 -3
- package/docs/sos_management/wifi.md +0 -101
- package/es6/FrontApplet/Management/App/App.d.ts +34 -24
- package/es6/FrontApplet/Management/App/App.js.map +1 -1
- package/es6/FrontApplet/Management/Power/IPower.d.ts +32 -10
- package/es6/FrontApplet/Management/Power/IPower.js +3 -0
- package/es6/FrontApplet/Management/Power/IPower.js.map +1 -1
- package/es6/FrontApplet/Management/Power/Power.d.ts +12 -8
- package/es6/FrontApplet/Management/Power/Power.js +23 -32
- package/es6/FrontApplet/Management/Power/Power.js.map +1 -1
- package/es6/FrontApplet/Management/Power/PowerHelper.d.ts +8 -3
- package/es6/FrontApplet/Management/Power/PowerHelper.js +32 -0
- package/es6/FrontApplet/Management/Power/PowerHelper.js.map +1 -1
- package/es6/FrontApplet/Management/helpers/ProprietaryTimerHelper.d.ts +2 -1
- package/es6/FrontApplet/Management/helpers/TimerHelper.d.ts +3 -1
- package/es6/FrontApplet/Management/helpers/TimerHelper.js +2 -0
- package/es6/FrontApplet/Management/helpers/TimerHelper.js.map +1 -1
- package/es6/FrontApplet/NativeCommands/NMC/CommandsNmc.d.ts +4 -0
- package/es6/FrontApplet/NativeCommands/NMC/CommandsNmc.js +66 -0
- package/es6/FrontApplet/NativeCommands/NMC/CommandsNmc.js.map +1 -0
- package/es6/FrontApplet/NativeCommands/NMC/INativeNmcCommands.d.ts +21 -0
- package/es6/FrontApplet/NativeCommands/NMC/INativeNmcCommands.js +3 -0
- package/es6/FrontApplet/NativeCommands/NMC/INativeNmcCommands.js.map +1 -0
- package/es6/FrontApplet/NativeCommands/NMC/Nmc.d.ts +50 -0
- package/es6/FrontApplet/NativeCommands/NMC/Nmc.js +77 -0
- package/es6/FrontApplet/NativeCommands/NMC/Nmc.js.map +1 -0
- package/es6/FrontApplet/NativeCommands/NativeCommands.d.ts +2 -0
- package/es6/FrontApplet/NativeCommands/NativeCommands.js +3 -0
- package/es6/FrontApplet/NativeCommands/NativeCommands.js.map +1 -1
- package/es6/FrontApplet/Sync/Sync.d.ts +6 -0
- package/es6/FrontApplet/Sync/Sync.js +3 -1
- package/es6/FrontApplet/Sync/Sync.js.map +1 -1
- package/es6/FrontApplet/Video/IOptions.d.ts +5 -0
- package/es6/Monitoring/Management/Power/powerCommands.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,12 +1,44 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.coalesceWeekdayType = exports.SHORT_WEEKDAYS = void 0;
|
|
3
4
|
exports.convertWeekdayToNumber = convertWeekdayToNumber;
|
|
5
|
+
exports.convertBCWeekdayToNumber = convertBCWeekdayToNumber;
|
|
4
6
|
exports.convertNumberToWeekday = convertNumberToWeekday;
|
|
7
|
+
const TimerHelper_1 = require("../helpers/TimerHelper");
|
|
5
8
|
const IPower_1 = require("./IPower");
|
|
9
|
+
exports.SHORT_WEEKDAYS = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'];
|
|
6
10
|
function convertWeekdayToNumber(weekday) {
|
|
7
11
|
return IPower_1.WeekdayNumbered[weekday];
|
|
8
12
|
}
|
|
13
|
+
function convertBCWeekdayToNumber(weekday) {
|
|
14
|
+
const short = (0, exports.coalesceWeekdayType)(weekday);
|
|
15
|
+
return TimerHelper_1.TimerWeekday[short];
|
|
16
|
+
}
|
|
9
17
|
function convertNumberToWeekday(weekday) {
|
|
10
18
|
return IPower_1.WeekdayNumbered[weekday];
|
|
11
19
|
}
|
|
20
|
+
const coalesceWeekdayType = (weekday) => {
|
|
21
|
+
if (isShortWeekdayType(weekday)) {
|
|
22
|
+
return weekday;
|
|
23
|
+
}
|
|
24
|
+
if (isWeekdayType(weekday)) {
|
|
25
|
+
return {
|
|
26
|
+
MONDAY: 'mon',
|
|
27
|
+
TUESDAY: 'tue',
|
|
28
|
+
WEDNESDAY: 'wed',
|
|
29
|
+
THURSDAY: 'thu',
|
|
30
|
+
FRIDAY: 'fri',
|
|
31
|
+
SATURDAY: 'sat',
|
|
32
|
+
SUNDAY: 'sun',
|
|
33
|
+
}[weekday];
|
|
34
|
+
}
|
|
35
|
+
if (isWeekdayNumberType(weekday)) {
|
|
36
|
+
return exports.SHORT_WEEKDAYS[weekday];
|
|
37
|
+
}
|
|
38
|
+
throw new Error(`Unknown week day value "${weekday}"`);
|
|
39
|
+
};
|
|
40
|
+
exports.coalesceWeekdayType = coalesceWeekdayType;
|
|
41
|
+
const isShortWeekdayType = (weekday) => exports.SHORT_WEEKDAYS.includes(weekday);
|
|
42
|
+
const isWeekdayType = (weekday) => weekday in IPower_1.WeekdayNamed;
|
|
43
|
+
const isWeekdayNumberType = (weekday) => typeof weekday === 'number' && weekday >= 0 && weekday <= 6;
|
|
12
44
|
//# sourceMappingURL=PowerHelper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PowerHelper.js","sourceRoot":"","sources":["../../../../src/FrontApplet/Management/Power/PowerHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PowerHelper.js","sourceRoot":"","sources":["../../../../src/FrontApplet/Management/Power/PowerHelper.ts"],"names":[],"mappings":";;;AAQA,wDAEC;AAED,4DAIC;AAED,wDAEC;AAnBD,wDAAsD;AACtD,qCAA2G;AAI9F,QAAA,cAAc,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAU,CAAC;AAEzF,SAAgB,sBAAsB,CAAC,OAAoB;IAC1D,OAAO,wBAAe,CAAC,OAAuC,CAAC,CAAC;AACjE,CAAC;AAED,SAAgB,wBAAwB,CAAC,OAAuC;IAC/E,MAAM,KAAK,GAAG,IAAA,2BAAmB,EAAC,OAAO,CAAC,CAAC;IAE3C,OAAO,0BAAY,CAAC,KAAK,CAAC,CAAC;AAC5B,CAAC;AAED,SAAgB,sBAAsB,CAAC,OAAe;IACrD,OAAO,wBAAe,CAAC,OAAO,CAAiC,CAAC;AACjE,CAAC;AAEM,MAAM,mBAAmB,GAAG,CAAC,OAAuC,EAAoB,EAAE;IAChG,IAAI,kBAAkB,CAAC,OAAO,CAAC,EAAE,CAAC;QACjC,OAAO,OAAO,CAAC;IAChB,CAAC;IAED,IAAI,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC;QAC5B,OACC;YACC,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,KAAK;YACd,SAAS,EAAE,KAAK;YAChB,QAAQ,EAAE,KAAK;YACf,MAAM,EAAE,KAAK;YACb,QAAQ,EAAE,KAAK;YACf,MAAM,EAAE,KAAK;SAEd,CAAC,OAAO,CAAC,CAAC;IACZ,CAAC;IAED,IAAI,mBAAmB,CAAC,OAAO,CAAC,EAAE,CAAC;QAClC,OAAO,sBAAc,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,2BAA2B,OAAO,GAAG,CAAC,CAAC;AACxD,CAAC,CAAC;AAxBW,QAAA,mBAAmB,uBAwB9B;AAEF,MAAM,kBAAkB,GAAG,CAAC,OAAuC,EAA+B,EAAE,CAClG,sBAAqC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AAE1D,MAAM,aAAa,GAAG,CAAC,OAAuC,EAA0B,EAAE,CAAC,OAAO,IAAI,qBAAY,CAAC;AAEnH,MAAM,mBAAmB,GAAG,CAAC,OAAuC,EAAgC,EAAE,CACrG,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,IAAI,CAAC,IAAI,OAAO,IAAI,CAAC,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { ShortWeekdayType } from '../Power/IPower';
|
|
1
2
|
export type ProprietaryTimerType = `TIMER_${number}`;
|
|
2
3
|
export interface IProprietaryTimer {
|
|
3
4
|
type: ProprietaryTimerType;
|
|
4
5
|
timeOn: string | null;
|
|
5
6
|
timeOff: string | null;
|
|
6
|
-
weekdays:
|
|
7
|
+
weekdays: ShortWeekdayType[];
|
|
7
8
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ShortWeekdayType } from '../Power/IPower';
|
|
1
2
|
export declare enum TimerType {
|
|
2
3
|
TIMER_1 = 0,
|
|
3
4
|
TIMER_2 = 1,
|
|
@@ -7,6 +8,7 @@ export declare enum TimerType {
|
|
|
7
8
|
TIMER_6 = 5,
|
|
8
9
|
TIMER_7 = 6
|
|
9
10
|
}
|
|
11
|
+
/** @deprecated use ShortWeekdayType instead */
|
|
10
12
|
export declare enum TimerWeekday {
|
|
11
13
|
sun = 0,
|
|
12
14
|
mon = 1,
|
|
@@ -20,6 +22,6 @@ export interface ITimer {
|
|
|
20
22
|
type: keyof typeof TimerType;
|
|
21
23
|
timeOn: string | null;
|
|
22
24
|
timeOff: string | null;
|
|
23
|
-
weekdays:
|
|
25
|
+
weekdays: ShortWeekdayType[];
|
|
24
26
|
volume: number;
|
|
25
27
|
}
|
|
@@ -11,6 +11,8 @@ var TimerType;
|
|
|
11
11
|
TimerType[TimerType["TIMER_6"] = 5] = "TIMER_6";
|
|
12
12
|
TimerType[TimerType["TIMER_7"] = 6] = "TIMER_7";
|
|
13
13
|
})(TimerType || (exports.TimerType = TimerType = {}));
|
|
14
|
+
// TODO: remove in the next major release
|
|
15
|
+
/** @deprecated use ShortWeekdayType instead */
|
|
14
16
|
var TimerWeekday;
|
|
15
17
|
(function (TimerWeekday) {
|
|
16
18
|
TimerWeekday[TimerWeekday["sun"] = 0] = "sun";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimerHelper.js","sourceRoot":"","sources":["../../../../src/FrontApplet/Management/helpers/TimerHelper.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"TimerHelper.js","sourceRoot":"","sources":["../../../../src/FrontApplet/Management/helpers/TimerHelper.ts"],"names":[],"mappings":";;;AAEA,IAAY,SAQX;AARD,WAAY,SAAS;IACpB,+CAAW,CAAA;IACX,+CAAW,CAAA;IACX,+CAAW,CAAA;IACX,+CAAW,CAAA;IACX,+CAAW,CAAA;IACX,+CAAW,CAAA;IACX,+CAAW,CAAA;AACZ,CAAC,EARW,SAAS,yBAAT,SAAS,QAQpB;AAED,yCAAyC;AACzC,+CAA+C;AAC/C,IAAY,YAQX;AARD,WAAY,YAAY;IACvB,6CAAO,CAAA;IACP,6CAAO,CAAA;IACP,6CAAO,CAAA;IACP,6CAAO,CAAA;IACP,6CAAO,CAAA;IACP,6CAAO,CAAA;IACP,6CAAO,CAAA;AACR,CAAC,EARW,YAAY,4BAAZ,YAAY,QAQvB"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NmcCommands = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Available NMC commands for WebOS devices.
|
|
6
|
+
*/
|
|
7
|
+
exports.NmcCommands = [
|
|
8
|
+
['k', 'a'], // Power
|
|
9
|
+
['k', 'b'], // Input Select
|
|
10
|
+
['k', 'c'], // Aspect Ratio
|
|
11
|
+
['k', 'd'], // Screen Mute
|
|
12
|
+
['k', 'e'], // Volume Mute
|
|
13
|
+
['k', 'f'], // Volume Control
|
|
14
|
+
['k', 'g'], // Contrast
|
|
15
|
+
['k', 'h'], // Brightness
|
|
16
|
+
['k', 'i'], // Color
|
|
17
|
+
['k', 'j'], // Tint
|
|
18
|
+
['k', 'k'], // Sharpness
|
|
19
|
+
['k', 'l'], // OSD Select
|
|
20
|
+
['k', 'm'], // Remote Lock/Key Lock
|
|
21
|
+
['k', 't'], // Balance
|
|
22
|
+
['k', 'u'], // Color Temperature
|
|
23
|
+
['k', 'z'], // Abnormal state
|
|
24
|
+
['j', 'p'], // ISM mode
|
|
25
|
+
['j', 'u'], // Auto configuration
|
|
26
|
+
['m', 'c'], // Key
|
|
27
|
+
['d', 'd'], // Tile Mode
|
|
28
|
+
['d', 'e'], // Tile H Position
|
|
29
|
+
['d', 'f'], // Tile V Position
|
|
30
|
+
['d', 'g'], // Tile H Size
|
|
31
|
+
['d', 'h'], // Tile V Size
|
|
32
|
+
['d', 'i'], // Tile ID Set
|
|
33
|
+
['d', 'j'], // Natural Mode (In Tile mode)
|
|
34
|
+
['d', 'x'], // Picture Mode (PSM)
|
|
35
|
+
['d', 'y'], // Sound Mode
|
|
36
|
+
['d', 'w'], // Fan Fault check
|
|
37
|
+
['d', 'l'], // Elapsed time return
|
|
38
|
+
['d', 'n'], // Temperature value
|
|
39
|
+
['d', 'd'], // Lamp fault check
|
|
40
|
+
['d', 'u'], // Auto Volume
|
|
41
|
+
['d', 'v'], // Speak
|
|
42
|
+
['f', 'a'], // Time
|
|
43
|
+
['f', 'd'], // On Timer(On/Off Timer)Time
|
|
44
|
+
['f', 'e'], // Off Timer(On/Off Timer) Time
|
|
45
|
+
['f', 'u'], // Scheduling Input Select
|
|
46
|
+
['f', 'f'], // Sleep Time
|
|
47
|
+
['f', 'g'], // Auto Sleep
|
|
48
|
+
['f', 'h'], // Power On Delay
|
|
49
|
+
['f', 'i'], // Language
|
|
50
|
+
['f', 'j'], // DPM Select
|
|
51
|
+
['f', 'k'], // Reset
|
|
52
|
+
['f', 'l'], // Power Saving
|
|
53
|
+
['f', 'o'], // Power Indicator
|
|
54
|
+
['f', 'p'], // Logo Indicator
|
|
55
|
+
['f', 'y'], // Serial no
|
|
56
|
+
['f', 'z'], // S/W Version
|
|
57
|
+
['x', 'b'], // Input Select
|
|
58
|
+
['f', '#'], // USB Connection Check
|
|
59
|
+
['f', '#'], // USB File List Count.
|
|
60
|
+
['f', '#'], // USB Get File Info.
|
|
61
|
+
['f', '#'], // USB Media Control
|
|
62
|
+
['f', '#'], // USB Add Play List
|
|
63
|
+
['f', '#'], // USB Add Schedule
|
|
64
|
+
['f', '#'], // USB Set Schedule
|
|
65
|
+
][0];
|
|
66
|
+
//# sourceMappingURL=CommandsNmc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandsNmc.js","sourceRoot":"","sources":["../../../../src/FrontApplet/NativeCommands/NMC/CommandsNmc.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACU,QAAA,WAAW,GAAG;IAC1B,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,QAAQ;IACpB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,eAAe;IAC3B,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,eAAe;IAC3B,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,cAAc;IAC1B,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,cAAc;IAC1B,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,iBAAiB;IAC7B,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,WAAW;IACvB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,aAAa;IACzB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,QA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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 @@
|
|
|
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;
|
|
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"}
|
|
@@ -2,6 +2,10 @@ import IPostMessage from '../IPostMessage';
|
|
|
2
2
|
import { BroadcastedValueMessage, ClosedMessage, StatusMessage } from './syncMessages';
|
|
3
3
|
import { StatusEvent } from './syncEvents';
|
|
4
4
|
import ISync from './ISync';
|
|
5
|
+
export interface SynchronizerConfig {
|
|
6
|
+
/** Allow slave devices to broadcast values to all devices in group (default: false) */
|
|
7
|
+
allowSlaveBroadcast?: boolean;
|
|
8
|
+
}
|
|
5
9
|
/**
|
|
6
10
|
* The `SyncEngine` enum defines the available synchronization engines that can be used to synchronize devices.
|
|
7
11
|
* Each engine has its own method of connecting devices and synchronizing data.
|
|
@@ -24,6 +28,8 @@ export interface ConnectSyncServerOptions {
|
|
|
24
28
|
engine?: SyncEngine.SyncServer;
|
|
25
29
|
/** Address of the sync server engine. If omitted, the default server from device configuration will be used. */
|
|
26
30
|
uri?: string;
|
|
31
|
+
/** Optional configuration for sync server behavior */
|
|
32
|
+
config?: SynchronizerConfig;
|
|
27
33
|
}
|
|
28
34
|
/**
|
|
29
35
|
* Options for P2P local synchronization.
|
|
@@ -66,10 +66,12 @@ class Sync {
|
|
|
66
66
|
if (sanitizedOptions.engine === SyncEngine.SyncServer) {
|
|
67
67
|
(0, Validate_1.default)({ uri: sanitizedOptions.uri }).uri();
|
|
68
68
|
}
|
|
69
|
+
const connectOptions = sanitizedOptions;
|
|
69
70
|
await this.postMessage({
|
|
70
71
|
type: this.getMessage('connect'),
|
|
71
72
|
engine: sanitizedOptions.engine,
|
|
72
|
-
serverUri:
|
|
73
|
+
serverUri: connectOptions.uri,
|
|
74
|
+
...(connectOptions.config ? { config: connectOptions.config } : {}),
|
|
73
75
|
});
|
|
74
76
|
}
|
|
75
77
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sync.js","sourceRoot":"","sources":["../../../src/FrontApplet/Sync/Sync.ts"],"names":[],"mappings":";;;;;;AAAA,mCAAsC;AAEtC,iDAAwG;AACxG,oEAA4C;
|
|
1
|
+
{"version":3,"file":"Sync.js","sourceRoot":"","sources":["../../../src/FrontApplet/Sync/Sync.ts"],"names":[],"mappings":";;;;;;AAAA,mCAAsC;AAEtC,iDAAwG;AACxG,oEAA4C;AAS5C;;;GAGG;AACH,IAAY,UAUX;AAVD,WAAY,UAAU;IACrB,iFAAiF;IACjF,wCAA0B,CAAA;IAC1B,oFAAoF;IACpF,oCAAsB,CAAA;IACtB;;;OAGG;IACH,yBAAW,CAAA;AACZ,CAAC,EAVW,UAAU,0BAAV,UAAU,QAUrB;AAyBD,IAAK,SAIJ;AAJD,WAAK,SAAS;IACb,8BAAiB,CAAA;IACjB,mDAAsC,CAAA;IACtC,8BAAiB,CAAA;AAClB,CAAC,EAJI,SAAS,KAAT,SAAS,QAIb;AAKD;;;GAGG;AACH,MAAqB,IAAI;IAQf;IACA;IARF,MAAM,CAAC,cAAc,GAAW,MAAM,CAAC;IACtC,MAAM,CAAC,kBAAkB,GA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oBAC5C,SAAS,EAAE,aAAa,CAAC,SAAS;oBAClC,QAAQ,EAAE,aAAa,CAAC,QAAQ,IAAI,KAAK,EAAE,wEAAwE;iBACnH,CAAC;gBACF,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;gBACtD,MAAM;YACP,CAAC;YACD,KAAK,IAAI,CAAC,UAAU,CAAC,8BAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;gBAC9C,MAAM,aAAa,GAAG,IAAqB,CAAC;gBAC5C,MAAM,WAAW,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;gBACrF,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;gBACtD,MAAM;YACP,CAAC;YACD,QAAQ;QACT,CAAC;IACF,CAAC;IAEO,UAAU,CAAC,IAAY;QAC9B,OAAO,IAAI,CAAC,aAAa,GAAG,GAAG,GAAG,IAAI,CAAC,cAAc,GAAG,GAAG,GAAG,IAAI,CAAC;IACpE,CAAC;;AA9YF,uBA+YC"}
|
|
@@ -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()`.
|
|
@@ -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:
|
|
106
|
+
result: IScheduledRebootAction<IScheduledRebootRule>[];
|
|
107
107
|
}
|
|
108
108
|
export declare const ManagementPowerRemoveScheduledRebootRequest = "sos.Monitoring.Management.Power.ManagementPowerRemoveScheduledRebootRequest";
|
|
109
109
|
export interface ManagementPowerRemoveScheduledRebootRequest {
|