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

@enplug/sdk-dashboard

Package Overview
Dependencies
Maintainers
8
Versions
207
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.1.10 to 5.1.11-18230-1

2

package.json
{
"name": "@enplug/sdk-dashboard",
"version": "5.1.10",
"version": "5.1.11-18230-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.

@@ -237,2 +257,15 @@ * @param {Asset<T>[]} assets An array of asset object to create.

/**
* Marks asset as recently viewed
*/
getAssetNeedsApproval(id: string) {
validateString(id, 'You must provide an id string to getAssetNeedsApproval call');
return this.bridge.sendMessage({
namespace: MessageNamespaces.App,
name: MessageNames.GetAssetNeedsApproval,
params: { id },
});
}
/**
* Loads an array of default assets for the current instance's app definition.

@@ -239,0 +272,0 @@ * Data is passed as the first param to the success callback.

@@ -91,22 +91,13 @@ /** These are meant to avaialable to client apps */

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;
DataPath: string;
QueryParameters: Array<{
Name: string;
Value: string;
IsEncrypted: boolean;
}>;
Headers: Array<{
Name: string;
Value: string;
IsEncrypted: boolean;
}>;
QueryParameters: ApiQueryParameter[];
Headers: ApiQueryParameter[];
ApiFrequency: string;

@@ -121,2 +112,7 @@ JsonMappings: JsonMapping[];

VenueIds: string[];
/**
* Asset version in the Content Approval flow
*/
Version?: number;
}

@@ -508,2 +504,3 @@

webURL: string;
webhookToken: string;
}

@@ -545,1 +542,7 @@

}
export interface ApiQueryParameter {
Name?: string;
Value?: string;
IsEncrypted?: boolean;
}

@@ -100,2 +100,3 @@ /**

GetAssetsForApp = 'app.getAssetsForApp',
GetAssetRevision = 'app.getAssetRevision',
BulkCreateAssets = 'app.bulkCreateAssets',

@@ -105,4 +106,5 @@ BulkDeployAssets = 'app.bulkDeployAssets',

UpdateAssetOrder = 'app.updateAssetOrder',
DeleteAsset = 'app.deleteAsset',
TouchAsset = 'app.touchAsset',
DeleteAsset = 'app.deleteAsset',
TouchAsset = 'app.touchAsset',
GetAssetNeedsApproval = 'app.getAssetNeedsApproval',
GetDefaultAssets = 'app.getDefaultAssets',

@@ -118,3 +120,3 @@ GetFonts = 'app.getFonts',

ConfirmUnsavedChanges = 'dashboard.unsavedChanges',
ErrorIndicator = 'dashboard.indicator.error',
ErrorIndicator = 'dashboard.indicator.error',
LoadingIndicator = 'dashboard.indicator.loading',

@@ -153,3 +155,3 @@ Navigate = 'dashboard.navigate',

SaveFeed = 'social.saveFeed',
DeleteFeed = 'social.deleteFeed',
DeleteFeed = 'social.deleteFeed',
OpenPreapprovalDialog = 'social.openPreapprovalDialog',

@@ -156,0 +158,0 @@ LoadAllItems = 'social.loadAllItems',

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