@enplug/sdk-dashboard
Advanced tools
Comparing version 5.2.1-zoning-3 to 5.2.1-zoning-4
{ | ||
"name": "@enplug/sdk-dashboard", | ||
"version": "5.2.1-zoning-3", | ||
"version": "5.2.1-zoning-4", | ||
"description": "Enplug Dashboard SDK", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.ts", |
@@ -296,2 +296,5 @@ import { | ||
/** | ||
* Loads list of banner/ticker widget apps | ||
*/ | ||
getZoningApps(): Promise<ZoningAppsResponse> { | ||
@@ -304,2 +307,5 @@ return this.bridge.sendMessage({ | ||
/** | ||
* Loads widget assets used in a given zoning asset layout | ||
*/ | ||
getZoningLayoutAssets(assetId: string): Promise<Array<Asset<any>>> { | ||
@@ -315,3 +321,6 @@ return this.bridge.sendMessage({ | ||
acquireZoningAsset( | ||
/** | ||
* Shows modal allowing to pick existing widget or create new | ||
*/ | ||
acquireZoningWidget( | ||
appId: string, zoningAssetId: string, zone: 'banner' | 'ticker', | ||
@@ -325,3 +334,3 @@ zoneInfo: ZoningSlotInfo, | ||
namespace: MessageNamespaces.App, | ||
name: MessageNames.AcquireZoningAsset, | ||
name: MessageNames.AcquireZoningWidget, | ||
params: { | ||
@@ -336,6 +345,19 @@ appId, | ||
acquireZoningAssetData(): Promise<any> { | ||
/** | ||
* Fetches zoning data available after adding/editing a widget | ||
*/ | ||
editZoningWidget( | ||
appId: string, zoningAssetId: string, zone: 'banner' | 'ticker', | ||
zoneInfo: ZoningSlotInfo, widgetAssetId: string, | ||
): Promise<any> { | ||
return this.bridge.sendMessage({ | ||
namespace: MessageNamespaces.App, | ||
name: MessageNames.AcquireZoningAssetData, | ||
name: MessageNames.EditZoningWidget, | ||
params: { | ||
appId, | ||
zoningAssetId, | ||
widgetAssetId, | ||
zone, | ||
zoneInfo, | ||
}, | ||
}); | ||
@@ -345,2 +367,12 @@ } | ||
/** | ||
* Fetches zoning data available after adding/editing a widget | ||
*/ | ||
getZoningData(): Promise<any> { | ||
return this.bridge.sendMessage({ | ||
namespace: MessageNamespaces.App, | ||
name: MessageNames.GetZoningData, | ||
}); | ||
} | ||
/** | ||
* Loads available fonts for the current app or for specified appId. | ||
@@ -347,0 +379,0 @@ * @param {string?} appId |
@@ -110,4 +110,5 @@ /** | ||
GetZoningApps = 'app.getZoningApps', | ||
AcquireZoningAsset = 'app.acquireZoningAsset', | ||
AcquireZoningAssetData = 'app.acquireZoningAssetData', | ||
AcquireZoningWidget = 'app.acquireZoningWidget', | ||
GetZoningData = 'app.getZoningData', | ||
EditZoningWidget = 'app.editZoningWidget', | ||
GetZoningLayoutAssets = 'app.getZoningLayoutAssets', | ||
@@ -114,0 +115,0 @@ GetFonts = 'app.getFonts', |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
213265
3408