@enplug/sdk-dashboard
Advanced tools
Comparing version 5.1.8 to 5.1.9
{ | ||
"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 @@ /** |
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
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
197997
3164