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
204
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.8 to 5.1.9

2

package.json
{
"name": "@enplug/sdk-dashboard",
"version": "5.1.8",
"version": "5.1.9",
"description": "Enplug Dashboard SDK",

@@ -5,0 +5,0 @@ "main": "./src/index.ts",

@@ -32,2 +32,6 @@ /** These are meant to avaialable to client apps */

AssetData?: AssetDataBackendValue;
PushDataBindingConfig?: PushDataBindingConfig;
PullDataBindingConfig?: PullDataBindingConfig;
/**

@@ -44,2 +48,70 @@ * Optional Theme Id if set

export interface AssetDataBackendValue {
AssetId?: string;
Data: DataCollectionBackend;
TriggerColumnId: string;
DataBoundSchedule: DataBoundScheduleBackend;
}
interface DataCollectionBackend {
Columns: Array<{
Id: string;
Name: string;
Type: DataType;
Order?: 'asc' | 'desc' | undefined;
}>;
Rows: Array<{
Items: DataItems;
}>;
}
export interface DataBoundScheduleBackend {
Start: string; // .NET TimeSpan
EndAfter: string; // .NET TimeSpan
Yearly: boolean;
}
export type DataType = 'date' | 'text' | 'image';
export interface DataItems {
[columnId: string]: DataItem;
}
export declare type DataItem = Date | DataImage | string;
export declare class DataImage {
url: string;
thumbnail?: string;
constructor(url: string, thumbnail?: string);
}
export interface JsonMapping {
Name: string;
Value: string;
Type?: string;
}
export interface PushDataBindingConfig {
AssetId?: string; // TODO: Should it be there?
WebhookToken: string;
DataPath: string;
JsonMappings: JsonMapping[];
}
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;
}>;
ApiFrequency: string;
JsonMappings: JsonMapping[];
}
export interface Asset<T> extends BaseAsset<T> {

@@ -46,0 +118,0 @@ /**

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