@enplug/sdk-dashboard
Advanced tools
Comparing version 5.2.1-zoning-4 to 5.2.1-zoning-5
{ | ||
"name": "@enplug/sdk-dashboard", | ||
"version": "5.2.1-zoning-4", | ||
"version": "5.2.1-zoning-5", | ||
"description": "Enplug Dashboard SDK", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.ts", |
@@ -323,7 +323,9 @@ import { | ||
acquireZoningWidget( | ||
appId: string, zoningAssetId: string, zone: 'banner' | 'ticker', | ||
zoneInfo: ZoningSlotInfo, | ||
zoningAssetId: string, | ||
zone: 'banner' | 'ticker', zoneInfo: ZoningSlotInfo, | ||
widgetAppId: string, | ||
): Promise<Asset<any>> { | ||
validateString(appId, 'You must provide an appId parameter'); | ||
validateString(widgetAppId, 'You must provide an widgetAppId parameter'); | ||
validateString(zone, 'You must provide an zone parameter'); | ||
validateObject(zoneInfo, 'You must provide a zoneInfo parameter'); | ||
@@ -334,3 +336,3 @@ return this.bridge.sendMessage({ | ||
params: { | ||
appId, | ||
widgetAppId, | ||
zoningAssetId, | ||
@@ -347,4 +349,5 @@ zone, | ||
editZoningWidget( | ||
appId: string, zoningAssetId: string, zone: 'banner' | 'ticker', | ||
zoneInfo: ZoningSlotInfo, widgetAssetId: string, | ||
zoningAssetId: string, | ||
zone: 'banner' | 'ticker', zoneInfo: ZoningSlotInfo, | ||
widgetAppId: string, widgetAssetId: string, | ||
): Promise<any> { | ||
@@ -355,3 +358,3 @@ return this.bridge.sendMessage({ | ||
params: { | ||
appId, | ||
widgetAppId, | ||
zoningAssetId, | ||
@@ -358,0 +361,0 @@ widgetAssetId, |
@@ -133,2 +133,10 @@ import { | ||
// TODO | ||
navigateToZoning(): Promise<any> { | ||
return this.bridge.sendMessage({ | ||
namespace: MessageNamespaces.Dashboard, | ||
name: MessageNames.NavigateBack, | ||
}); | ||
} | ||
/** | ||
@@ -135,0 +143,0 @@ * Opens a confirm window with Yes/No buttons and configurable messages. |
@@ -128,2 +128,3 @@ /** | ||
NavigateBack = 'dashboard.navigateBack', | ||
NavigateToZoning = 'dashboard.navigateToZoning', | ||
OpenConfirm = 'dashboard.confirm', | ||
@@ -130,0 +131,0 @@ PageError = 'dashboard.page.error', |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
214700
3428