@enplug/sdk-dashboard
Advanced tools
Comparing version 5.4.48 to 5.4.49-dev-1
{ | ||
"name": "@enplug/sdk-dashboard", | ||
"version": "5.4.48", | ||
"version": "5.4.49-dev-1", | ||
"description": "Enplug Dashboard SDK", | ||
@@ -5,0 +5,0 @@ "typings": "./index.d.ts", |
@@ -1,2 +0,2 @@ | ||
import { Asset, DefaultAssetLevel, DeployDialogOptions, EnplugAccount, EnplugUser, FeedData, Layout, ThemeDefinition, ThemeAsset, FontDefinition, FontsApiItem, DefaultAsset, ZoningAppsResponse, ZoningConfig, AccountCustomPropertiesResponse, AccountInfoResponse } from './external-types'; | ||
import { Asset, DefaultAssetLevel, DeployDialogOptions, EnplugAccount, EnplugUser, FeedData, Layout, ThemeDefinition, ThemeAsset, FontDefinition, FontsApiItem, DefaultAsset, ZoningAppsResponse, ZoningConfig, AccountCustomPropertiesResponse, AccountInfoResponse, PaginationConfig, PaginationResponse } from './external-types'; | ||
import { BridgeBase } from './bridge/bridge-base'; | ||
@@ -58,2 +58,15 @@ /** | ||
/** | ||
* Loads an array of assets for the current app instance. | ||
* | ||
* The list is also limited to the {@link setDisplaySelectorCallback|Display Group selector} dropdown's choice. | ||
* | ||
* @param T - Model of asset's value | ||
* @param options - These options implement the new pagination, if you don't want to use it send this parameter as null | ||
* @returns Array the assets and pagination object | ||
*/ | ||
getAssetsPagination<T>(options: PaginationConfig): Promise<{ | ||
Assets: Array<Asset<T>>; | ||
Pagination: PaginationResponse; | ||
}>; | ||
/** | ||
* Loads an array of assets by Ids. | ||
@@ -60,0 +73,0 @@ * |
@@ -110,2 +110,3 @@ /** These are meant to available to client apps */ | ||
AssetDataId?: string; | ||
ConnectionOrder?: number; | ||
} | ||
@@ -474,2 +475,3 @@ export interface Schedule { | ||
assetDataId?: string; | ||
connectionOrder?: number; | ||
} | ||
@@ -572,2 +574,19 @@ export interface ConnectionParams { | ||
} | ||
export interface PaginationConfig { | ||
page?: number; | ||
enableNewPagination?: boolean; | ||
limit?: number; | ||
name?: string; | ||
tags?: string; | ||
} | ||
export interface PaginationResponse { | ||
Limit: number; | ||
CurrentPage: number; | ||
TotalPages: number; | ||
} | ||
export interface AssetsPaginationResponse<T> { | ||
Assets: Array<Asset<T>>; | ||
Pagination: PaginationResponse; | ||
Tags: string[]; | ||
} | ||
export interface ZoningAppsResponse { | ||
@@ -574,0 +593,0 @@ BannerApps: ZoningApp[]; |
@@ -82,2 +82,3 @@ /** | ||
GetAssets = "app.getAssets", | ||
GetAssetsPagination = "app.getAssetsPagination", | ||
GetAssetsByIds = "app.getAssetsByIds", | ||
@@ -84,0 +85,0 @@ GetAssetsForApp = "app.getAssetsForApp", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
271959
3749
2