@enplug/sdk-dashboard
Advanced tools
Comparing version 5.4.47-2-dev1 to 5.4.47-dev-2
{ | ||
"name": "@enplug/sdk-dashboard", | ||
"version": "5.4.47-2-dev1", | ||
"version": "5.4.47-dev-2", | ||
"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, AssetsPaginationResponse } from './external-types'; | ||
import { BridgeBase } from './bridge/bridge-base'; | ||
@@ -56,4 +56,14 @@ /** | ||
*/ | ||
getAssets<T>(): Promise<Array<Asset<T>>>; | ||
getAssets<T>(options?: PaginationConfig): Promise<Array<Asset<T>>>; | ||
/** | ||
* 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 Areturns the assets and pagination | ||
*/ | ||
getAssetsPagination<T>(options: PaginationConfig): Promise<AssetsPaginationResponse<T>>; | ||
/** | ||
* Loads an array of assets by Ids. | ||
@@ -60,0 +70,0 @@ * |
@@ -271,3 +271,2 @@ /** These are meant to available to client apps */ | ||
assetIdToReplace?: string; | ||
showRatioNotification?: boolean; | ||
} | ||
@@ -571,2 +570,18 @@ export interface UploadedFileResult extends FilepickerUploadedFile { | ||
} | ||
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; | ||
} | ||
export interface ZoningAppsResponse { | ||
@@ -573,0 +588,0 @@ BannerApps: ZoningApp[]; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
273099
3750
0