tv-app-core-types 1.2.7 → 1.2.9-webos.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.
|
@@ -69,7 +69,19 @@ export declare enum TvOperations {
|
|
|
69
69
|
GUEST_INFO_UPDATE = "guestInfoUpdate",
|
|
70
70
|
PATIENT_ALLERGY_CHANGE = "patientAllergyChange",
|
|
71
71
|
PATIENT_DIET_CHANGE = "patientDietChange",
|
|
72
|
-
CHANGE_LANGUAGE = "changeLanguage"
|
|
72
|
+
CHANGE_LANGUAGE = "changeLanguage",
|
|
73
|
+
REMOTE_EVENT = "remoteEvent",
|
|
74
|
+
VOD_TOGGLE_PLAY = "vodTogglePlay",
|
|
75
|
+
VOD_PLAY = "vodPlay",
|
|
76
|
+
VOD_PAUSE = "vodPause",
|
|
77
|
+
VOD_STOP = "vodStop",
|
|
78
|
+
VOD_FORWARD = "vodForward",
|
|
79
|
+
VOD_REWIND = "vodRewind",
|
|
80
|
+
VOD_SEEK = "vodSeek",
|
|
81
|
+
MUSIC_TOGGLE_PLAY = "musicTogglePlay",
|
|
82
|
+
MUSIC_PLAY = "musicPlay",
|
|
83
|
+
MUSIC_PAUSE = "musicPause",
|
|
84
|
+
MUSIC_STOP = "musicStop"
|
|
73
85
|
}
|
|
74
86
|
export declare enum FileConsts {
|
|
75
87
|
GLOBAL = "global",
|
|
@@ -91,5 +103,8 @@ export declare enum FileConsts {
|
|
|
91
103
|
APP_DETAILS = "appDetails",
|
|
92
104
|
AIRPLAY_QR_DATA = "airplayQRData",
|
|
93
105
|
LOGGING_LEVEL = "loggingLevel",
|
|
94
|
-
CURRENT_CHANNEL = "currentChannel"
|
|
106
|
+
CURRENT_CHANNEL = "currentChannel",
|
|
107
|
+
INBUILT_APP_ID_ARRAY = "inbuiltAppIdArray",
|
|
108
|
+
GOOGLE_CAST_DETAILS = "googleCastDetails",
|
|
109
|
+
MEDIA_DETAILS = "mediaDetails"
|
|
95
110
|
}
|
package/dist/constants/consts.js
CHANGED
|
@@ -74,6 +74,18 @@ export var TvOperations;
|
|
|
74
74
|
TvOperations["PATIENT_ALLERGY_CHANGE"] = "patientAllergyChange";
|
|
75
75
|
TvOperations["PATIENT_DIET_CHANGE"] = "patientDietChange";
|
|
76
76
|
TvOperations["CHANGE_LANGUAGE"] = "changeLanguage";
|
|
77
|
+
TvOperations["REMOTE_EVENT"] = "remoteEvent";
|
|
78
|
+
TvOperations["VOD_TOGGLE_PLAY"] = "vodTogglePlay";
|
|
79
|
+
TvOperations["VOD_PLAY"] = "vodPlay";
|
|
80
|
+
TvOperations["VOD_PAUSE"] = "vodPause";
|
|
81
|
+
TvOperations["VOD_STOP"] = "vodStop";
|
|
82
|
+
TvOperations["VOD_FORWARD"] = "vodForward";
|
|
83
|
+
TvOperations["VOD_REWIND"] = "vodRewind";
|
|
84
|
+
TvOperations["VOD_SEEK"] = "vodSeek";
|
|
85
|
+
TvOperations["MUSIC_TOGGLE_PLAY"] = "musicTogglePlay";
|
|
86
|
+
TvOperations["MUSIC_PLAY"] = "musicPlay";
|
|
87
|
+
TvOperations["MUSIC_PAUSE"] = "musicPause";
|
|
88
|
+
TvOperations["MUSIC_STOP"] = "musicStop";
|
|
77
89
|
})(TvOperations || (TvOperations = {}));
|
|
78
90
|
export var FileConsts;
|
|
79
91
|
(function (FileConsts) {
|
|
@@ -97,4 +109,7 @@ export var FileConsts;
|
|
|
97
109
|
FileConsts["AIRPLAY_QR_DATA"] = "airplayQRData";
|
|
98
110
|
FileConsts["LOGGING_LEVEL"] = "loggingLevel";
|
|
99
111
|
FileConsts["CURRENT_CHANNEL"] = "currentChannel";
|
|
112
|
+
FileConsts["INBUILT_APP_ID_ARRAY"] = "inbuiltAppIdArray";
|
|
113
|
+
FileConsts["GOOGLE_CAST_DETAILS"] = "googleCastDetails";
|
|
114
|
+
FileConsts["MEDIA_DETAILS"] = "mediaDetails";
|
|
100
115
|
})(FileConsts || (FileConsts = {}));
|
|
@@ -44,7 +44,7 @@ export interface IMqttResponse {
|
|
|
44
44
|
source: string | null;
|
|
45
45
|
application: string | null;
|
|
46
46
|
isRoomCheckedIn: boolean;
|
|
47
|
-
volumeLevel: number |
|
|
47
|
+
volumeLevel: number | null;
|
|
48
48
|
isChromecastStreaming: boolean;
|
|
49
49
|
channelFeedVersion: string | boolean;
|
|
50
50
|
channelId: string | null;
|
|
@@ -2,21 +2,22 @@ export interface ITVController {
|
|
|
2
2
|
setPowerOn(): void;
|
|
3
3
|
setPowerOff(): void;
|
|
4
4
|
reboot(): void;
|
|
5
|
-
getVolume():
|
|
5
|
+
getVolume(): Promise<number | null>;
|
|
6
6
|
setVolume(volume: number): void;
|
|
7
7
|
volumeUp(): void;
|
|
8
8
|
volumeDown(): void;
|
|
9
|
-
isMute():
|
|
9
|
+
isMute(): Promise<boolean | null>;
|
|
10
10
|
setMute(mute?: boolean): void;
|
|
11
|
-
setInputSource(source: string): void
|
|
12
|
-
getInputSource(): string | null
|
|
13
|
-
playIPChannel(ip: string, port: string): void
|
|
14
|
-
playEncrypted(ip: string, port: string): void;
|
|
11
|
+
setInputSource(source: string | number): Promise<void>;
|
|
12
|
+
getInputSource(): Promise<string | null>;
|
|
13
|
+
playIPChannel(ip: string, port: string, channelId: string): Promise<void>;
|
|
14
|
+
playEncrypted(ip: string, port: string, channelId: string): void;
|
|
15
15
|
launchApplication(appId: string): void;
|
|
16
|
-
getPowerState(): boolean | null
|
|
17
|
-
getAVPlayerState(): string | boolean
|
|
16
|
+
getPowerState(): Promise<boolean | null>;
|
|
17
|
+
getAVPlayerState(): Promise<string | boolean>;
|
|
18
18
|
getCurrentApp(): string | null | Promise<string | null>;
|
|
19
19
|
destroyCurrentApplication(): void;
|
|
20
|
+
virtualKeyPress(keyType: string): void;
|
|
20
21
|
}
|
|
21
22
|
export interface IRequestHandler {
|
|
22
23
|
tvOnOperation(): void;
|
|
@@ -29,14 +30,26 @@ export interface IRequestHandler {
|
|
|
29
30
|
setVolumeOperation(details: any): void;
|
|
30
31
|
shiftSourceOperation(details: any): Promise<void>;
|
|
31
32
|
playChannelIdOperation(details: any): Promise<void>;
|
|
33
|
+
channelUpOperation(): Promise<void>;
|
|
34
|
+
channelDownOperation(): Promise<void>;
|
|
32
35
|
checkInOperation(): Promise<void>;
|
|
33
36
|
checkOutOperation(): Promise<void>;
|
|
34
|
-
saveDefaultConfig(details: any): void;
|
|
35
|
-
updateFeedOperation(details: any): void;
|
|
36
37
|
guestLanguageChangeOperation(details: any): Promise<void>;
|
|
37
38
|
guestInfoUpdateOperation(): Promise<void>;
|
|
38
|
-
tvAppPushUpdateOperation(details: any): void;
|
|
39
|
-
channelUpOperation(): Promise<void>;
|
|
40
|
-
channelDownOperation(): Promise<void>;
|
|
41
39
|
launchInbuiltAppOperation(details: any): Promise<void>;
|
|
40
|
+
virtualKeyPressOperation(details: any): Promise<void>;
|
|
41
|
+
saveDefaultConfig(details: any): void;
|
|
42
|
+
updateFeedOperation(details: any): void;
|
|
43
|
+
tvAppPushUpdateOperation(details: any): void;
|
|
44
|
+
vodTogglePlayOperation(details: any): Promise<void>;
|
|
45
|
+
vodPlayOperation(details: any): Promise<void>;
|
|
46
|
+
vodPauseOperation(details: any): Promise<void>;
|
|
47
|
+
vodStopOperation(details: any): Promise<void>;
|
|
48
|
+
vodForwardOperation(details: any): Promise<void>;
|
|
49
|
+
vodRewindOperation(details: any): Promise<void>;
|
|
50
|
+
vodSeekOperation(details: any): Promise<void>;
|
|
51
|
+
musicTogglePlayOperation(details: any): Promise<void>;
|
|
52
|
+
musicPlayOperation(details: any): Promise<void>;
|
|
53
|
+
musicPauseOperation(details: any): Promise<void>;
|
|
54
|
+
musicStopOperation(details: any): Promise<void>;
|
|
42
55
|
}
|
|
@@ -6,8 +6,8 @@ export interface IUtils {
|
|
|
6
6
|
getSystemIP(): Promise<string | null>;
|
|
7
7
|
getDeviceMac(): Promise<string | null>;
|
|
8
8
|
getDeviceDetails(): Promise<string> | string;
|
|
9
|
-
getSerialNo(): string | boolean
|
|
10
|
-
getModelNo(): string | null
|
|
9
|
+
getSerialNo(): Promise<string | boolean>;
|
|
10
|
+
getModelNo(): Promise<string | null>;
|
|
11
11
|
fetchEnvironmentFromAPC(): Promise<object>;
|
|
12
12
|
getPublicKey(): Promise<string>;
|
|
13
13
|
exchangeSessionKey(): void;
|
|
@@ -19,26 +19,27 @@ export interface IUtils {
|
|
|
19
19
|
getAppConfig(): void;
|
|
20
20
|
waitUntilCallbackNotResolved(cb: Function, conditionFn: Function, onError: Function, pollingInterval: number): void;
|
|
21
21
|
isTvRegistered(): void;
|
|
22
|
-
fetchIPChannels(): void;
|
|
22
|
+
fetchIPChannels?(): void;
|
|
23
23
|
addRegisteredTv(isRegistered: boolean, isFailed: boolean): void;
|
|
24
24
|
getCurrentChannel(): Promise<TvChannelDetail | TvChannelDetailsDV5 | boolean>;
|
|
25
25
|
getChannelVersion(): Promise<string | boolean>;
|
|
26
|
-
getTizenAppVersion(): void;
|
|
26
|
+
getTizenAppVersion?(): void;
|
|
27
27
|
getCpuUsage(): void;
|
|
28
28
|
createLogData(logType: string, detectedLevel: string): Promise<ILogDataStream>;
|
|
29
29
|
postLogs(logData: Array<any>): void;
|
|
30
|
-
ipChannelUp(): void;
|
|
31
|
-
ipChannelDown(): void;
|
|
30
|
+
ipChannelUp?(): void;
|
|
31
|
+
ipChannelDown?(): void;
|
|
32
32
|
getAppServerIP(): void;
|
|
33
33
|
getTvData(): Promise<TvData | null>;
|
|
34
34
|
getServerInfo(): Promise<IServerInfo | null>;
|
|
35
|
-
fetchWelcomeLetter(): void;
|
|
36
|
-
setMinVolume(): void;
|
|
37
|
-
setMaxVolume(): void;
|
|
38
|
-
getCurrentScreen(): string | boolean
|
|
39
|
-
guestCheckIn(): Promise<void>;
|
|
40
|
-
getFormattedDate(): string;
|
|
35
|
+
fetchWelcomeLetter?(): void;
|
|
36
|
+
setMinVolume?(): void;
|
|
37
|
+
setMaxVolume?(): void;
|
|
38
|
+
getCurrentScreen(): Promise<string | boolean>;
|
|
39
|
+
guestCheckIn?(): Promise<void>;
|
|
40
|
+
getFormattedDate?(): string;
|
|
41
41
|
isRoomCheckedIn(): Promise<boolean | null>;
|
|
42
42
|
getTargetDeviceId(): Promise<string | null>;
|
|
43
43
|
getCurrentChannelId(): Promise<string | null>;
|
|
44
|
+
getCommandsToIgnore(): Array<string>;
|
|
44
45
|
}
|