@enplug/sdk-dashboard
Advanced tools
Comparing version 5.0.5 to 5.0.6-dev.1
@@ -0,0 +0,0 @@ import { EnplugDashboardSDK } from './src'; |
{ | ||
"name": "@enplug/sdk-dashboard", | ||
"version": "5.0.5", | ||
"version": "5.0.6-dev.1", | ||
"description": "Enplug Dashboard SDK", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.ts", |
@@ -0,0 +0,0 @@ import { |
@@ -0,0 +0,0 @@ import { InboundMessage, OutboundMessage, PendingCallInfo } from '../internal-types'; |
@@ -0,0 +0,0 @@ import { BridgeBase } from './bridge-base'; |
@@ -11,2 +11,3 @@ import { | ||
ThemeAsset, | ||
EncodingStatusResult, | ||
} from './external-types'; | ||
@@ -386,2 +387,4 @@ import { BridgeBase } from './bridge/bridge-base'; | ||
* Returns current encoding status of an asset | ||
* @deprecated legacy FileStack upload flow | ||
* @see resourcesEncodingStatus | ||
*/ | ||
@@ -399,2 +402,20 @@ encodeStatus(url: string): Promise<any> { | ||
/** | ||
* Returns current encoding statuses of resources or asset ids | ||
* @param {boolean} byAssetId if true, the provided ids are interpreted as asset ids, otherwise they are resource ids | ||
*/ | ||
resourcesEncodingStatus(ids: string[], byAssetId = false): Promise<EncodingStatusResult> { | ||
validateArray(ids, 'You must provide an array of ids (strings).'); | ||
validateBool(byAssetId, 'You must provide the boolean byAssetId. True to interpret the ids as asset ids, when false as resource ids.'); | ||
return this.bridge.sendMessage({ | ||
namespace: MessageNamespaces.Dashboard, | ||
name: MessageNames.ResourcesEncodingStatus, | ||
params: { | ||
ids, | ||
byAssetId | ||
}, | ||
}); | ||
} | ||
/** | ||
* opens content interval settings dialog for ad-scheduler app | ||
@@ -401,0 +422,0 @@ */ |
@@ -194,2 +194,30 @@ /** These are meant to avaialable to client apps */ | ||
export interface UploaderOptions extends FilepickerOptions { | ||
accountId?: string; | ||
acceptedFileTypes?: string[]; | ||
isMultipleSelection?: boolean; | ||
minimumImageDimensions?: [width, height]; | ||
uploadSourceAppId?: string; | ||
} | ||
export interface UploadedFileResult extends FilepickerUploadedFile { | ||
assetId?: string; | ||
} | ||
export interface EncodingStatusResult { | ||
State: 'Error' | 'Uploaded' | 'Encoded' | 'Ready'; | ||
ProcessPct: number; | ||
Filename: string; | ||
Resources: UploadedResourceResult[]; | ||
} | ||
export interface UploadedResourceResult { | ||
AssetId?: string; | ||
Name: string; | ||
Width: number; | ||
Height: number; | ||
Thumbnail: string; | ||
Url: string; | ||
} | ||
export interface FontsApiItem { | ||
@@ -196,0 +224,0 @@ Name: string; |
@@ -0,0 +0,0 @@ import { Account } from './account'; |
@@ -134,2 +134,3 @@ /** | ||
EncodeStatus = 'dashboard.encodeStatus', | ||
ResourcesEncodingStatus = 'dashboard.resourcesEncodingStatus', | ||
OpenContentIntervalSettingsDialog = 'dashboard.openContentIntervalSettingsDialog', | ||
@@ -136,0 +137,0 @@ SetAppHasUnsavedChanges = 'dashboard.appHasUnsavedChanges', |
@@ -0,0 +0,0 @@ import { BridgeBase } from './bridge/bridge-base'; |
@@ -0,0 +0,0 @@ const TAG = '[Dashboard SDK]'; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
197283
2995
2