tv-app-core-types 1.0.0 → 1.1.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.
@@ -15,6 +15,8 @@ export interface ITVController {
15
15
  launchApplication(appId: string): void;
16
16
  getPowerState(): boolean;
17
17
  getAVPlayerState(): string | boolean;
18
+ getCurrentApp(): string;
19
+ destroyCurrentApplication(): void;
18
20
  }
19
21
  export interface IRequestHandler {
20
22
  tvOnOperation(): void;
@@ -27,4 +29,7 @@ export interface IRequestHandler {
27
29
  setVolumeOperation(details: any): void;
28
30
  shiftSourceOperation(details: any): void;
29
31
  playChannelIdOperation(details: any): void;
32
+ checkInOperation(): void;
33
+ checkOutOperation(): void;
34
+ saveDefaultConfig(details: any): void;
30
35
  }
@@ -40,6 +40,22 @@ export interface AppConfigData {
40
40
  procentric: Procentric;
41
41
  property_details: PropertyDetails;
42
42
  }
43
+ export interface IServerInfo {
44
+ servers: {
45
+ dvs: {
46
+ url: string;
47
+ publicIp: string;
48
+ localIp: string;
49
+ };
50
+ kong: {
51
+ fqdn: string;
52
+ url: string;
53
+ localIp: string;
54
+ clientId: string;
55
+ clientSecret: string;
56
+ };
57
+ };
58
+ }
43
59
  export interface ApcServer {
44
60
  fqdn: string;
45
61
  get_environment_endpoint: string;
@@ -91,3 +107,48 @@ export interface IpTvDetail {
91
107
  port: number;
92
108
  protocol: string;
93
109
  }
110
+ export interface IWelcomeLetterContent {
111
+ getWelcomeLetterOnPremise: {
112
+ welcomeLetter: {
113
+ _id: string;
114
+ isDefault: boolean;
115
+ isScheduled: boolean;
116
+ isGroup: boolean;
117
+ status: string;
118
+ letterName: string;
119
+ templateData: [
120
+ {
121
+ templateId: string;
122
+ templateLayout: string;
123
+ templateType: string;
124
+ templatePreview: string;
125
+ thumbnailPreview: string;
126
+ content: {
127
+ logoImage: string;
128
+ subject: string;
129
+ body: any;
130
+ greetings: string;
131
+ designation: string;
132
+ closingRemarks: string;
133
+ signatureImage: string;
134
+ signatoryName: string;
135
+ backgroundImage: string;
136
+ language: string;
137
+ description: string;
138
+ videoUrl: any;
139
+ isFullScreenVideo: any;
140
+ digitalAsset: any;
141
+ translation: any;
142
+ };
143
+ }
144
+ ];
145
+ createdAt: string;
146
+ modifiedAt: string;
147
+ createdBy: string;
148
+ modifiedBy: string;
149
+ profile: any;
150
+ propertyId: string;
151
+ guestName: string;
152
+ };
153
+ };
154
+ }
@@ -1,5 +1,5 @@
1
1
  import { ILogDataStream } from "./logs-interface";
2
- import { TvChannelDetail } from "./tv-data-interface";
2
+ import { IServerInfo, TvChannelDetail, TvData } from "./tv-data-interface";
3
3
  export interface IUtils {
4
4
  getPublicIP(): Promise<string> | string;
5
5
  getSystemIP(): Promise<string | null>;
@@ -28,11 +28,15 @@ export interface IUtils {
28
28
  postLogs(logData: Array<any>): void;
29
29
  ipChannelUp(): void;
30
30
  ipChannelDown(): void;
31
- getCustomAppServerIP(): void;
32
- getTvData(): void;
33
- getServerInfo(): void;
31
+ getAppServerIP(): void;
32
+ getTvData(): Promise<TvData | null>;
33
+ getServerInfo(): Promise<IServerInfo | null>;
34
34
  fetchWelcomeLetter(): void;
35
35
  setMinVolume(): void;
36
36
  setMaxVolume(): void;
37
37
  getCurrentScreen(): string | boolean;
38
+ guestCheckIn(): Promise<void>;
39
+ getFormattedDate(): string;
40
+ isRoomCheckedIn(): Promise<boolean | null>;
41
+ getTargetDeviceId(): Promise<string | null>;
38
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tv-app-core-types",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "DigiValet TV App package for common utilities, functions and interfaces.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",