@enplug/sdk-player
Advanced tools
Comparing version 0.6.2 to 0.7.1
{ | ||
"name": "@enplug/sdk-player", | ||
"version": "0.6.2", | ||
"version": "0.7.1", | ||
"description": "Enplug Player SDK", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.ts", |
@@ -51,2 +51,6 @@ /** | ||
} | ||
getTrigger(): Promise<Trigger> { | ||
return this.bridge.send(Service.AppStatus, Action.GetTrigger); | ||
} | ||
} |
@@ -14,3 +14,3 @@ /** | ||
/*tslint:disable:no-string-literal*/ | ||
window['epBridge'] = { | ||
window['epBridge'] = window['_epBridge'] = { | ||
receive: this.receive.bind(this), | ||
@@ -17,0 +17,0 @@ }; |
@@ -12,2 +12,3 @@ /** | ||
Notifications = 'notification', | ||
Social = 'social', | ||
} | ||
@@ -20,2 +21,3 @@ | ||
Finished = 'finished', | ||
GetTrigger = 'get-trigger', | ||
Hide = 'hide', | ||
@@ -47,2 +49,4 @@ Reload = 'reload', | ||
Destroy = 'destroy', | ||
// Social | ||
GetItems = 'get-items', | ||
} | ||
@@ -49,0 +53,0 @@ |
@@ -17,2 +17,3 @@ /** | ||
import Settings from './settings'; | ||
import Social from './social'; | ||
import WebBridge from './bridge/web-bridge'; | ||
@@ -43,2 +44,3 @@ | ||
const playRecorder = new PlayRecorder(bridge); | ||
const social = new Social(bridge); | ||
@@ -54,2 +56,3 @@ return { | ||
settings, | ||
social, | ||
}; | ||
@@ -56,0 +59,0 @@ } |
@@ -5,2 +5,25 @@ // For importing json files. | ||
export default value; | ||
} | ||
declare type TriggerReason = 'schedule' | 'event'; | ||
declare interface SocialItem { | ||
Id: string, | ||
SocialNetwork: string, | ||
SocialItemId: string, | ||
FeedId: string, | ||
CreatedTime: number, | ||
LastSavedTime: number, | ||
ProfanityCount: number, | ||
ProfaneWords: Array<string>, | ||
IsApproved: boolean, | ||
IsAllowed: boolean, | ||
SecondaryText: string, | ||
ImageLocalPath: string, | ||
UserImageLocalPath: string | ||
} | ||
declare interface Trigger { | ||
reason: TriggerReason, | ||
data: SocialItem, | ||
} |
33453
17
863