@enplug/sdk-dashboard
Advanced tools
Comparing version 5.1.9 to 5.1.10-17998-1
{ | ||
"name": "@enplug/sdk-dashboard", | ||
"version": "5.1.9", | ||
"version": "5.1.10-17998-1", | ||
"description": "Enplug Dashboard SDK", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.ts", |
@@ -103,2 +103,22 @@ import { | ||
/** | ||
* Loads an content-approval asset revision. | ||
* Data is passed as the first param to the success callback. | ||
* @param {string} assetId An id of an asset. | ||
* @param {string} version A version of an asset. | ||
*/ | ||
getAssetRevision<T>(assetId: string, version: string): Promise<Asset<T>> { | ||
validateString(assetId, 'You must provide assetId string to getAssetRevision call'); | ||
validateString(version, 'You must provide version string to getAssetRevision call'); | ||
return this.bridge.sendMessage({ | ||
namespace: MessageNamespaces.App, | ||
name: MessageNames.GetAssetRevision, | ||
params: { | ||
assetId, | ||
version, | ||
}, | ||
}); | ||
} | ||
/** | ||
* Creates an asset under the current app instance. | ||
@@ -105,0 +125,0 @@ * @param {Asset<T>[]} assets An array of asset object to create. |
@@ -54,3 +54,3 @@ /** These are meant to avaialable to client apps */ | ||
interface DataCollectionBackend { | ||
export interface DataCollectionBackend { | ||
Columns: Array<{ | ||
@@ -92,10 +92,9 @@ Id: string; | ||
export interface PushDataBindingConfig { | ||
AssetId?: string; // TODO: Should it be there? | ||
WebhookToken: string; | ||
DataPath: string; | ||
JsonMappings: JsonMapping[]; | ||
Url: string; | ||
} | ||
export interface PullDataBindingConfig { | ||
AssetId?: string; // TODO: Should it be there? | ||
Url: string; | ||
@@ -122,2 +121,7 @@ DataPath: string; | ||
VenueIds: string[]; | ||
/** | ||
* Asset version in the Content Approval flow | ||
*/ | ||
Version?: number; | ||
} | ||
@@ -509,2 +513,3 @@ | ||
webURL: string; | ||
webhookToken: string; | ||
} | ||
@@ -511,0 +516,0 @@ |
@@ -100,2 +100,3 @@ /** | ||
GetAssetsForApp = 'app.getAssetsForApp', | ||
GetAssetRevision = 'app.getAssetRevision', | ||
BulkCreateAssets = 'app.bulkCreateAssets', | ||
@@ -102,0 +103,0 @@ BulkDeployAssets = 'app.bulkDeployAssets', |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
202018
3206
2