Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@enplug/sdk-dashboard

Package Overview
Dependencies
Maintainers
7
Versions
206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@enplug/sdk-dashboard - npm Package Compare versions

Comparing version 5.0.5 to 5.0.6-dev.1

0

index.d.ts

@@ -0,0 +0,0 @@ import { EnplugDashboardSDK } from './src';

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc