@enplug/sdk-dashboard
Advanced tools
Comparing version
{ | ||
"name": "@enplug/sdk-dashboard", | ||
"version": "5.4.47-2-dev1", | ||
"version": "5.4.47-dev-10", | ||
"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'; | ||
@@ -56,4 +56,17 @@ /** | ||
*/ | ||
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<{ | ||
Assets: Array<Asset<T>>; | ||
Pagination: PaginationResponse; | ||
}>; | ||
/** | ||
* Loads an array of assets by Ids. | ||
@@ -60,0 +73,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[]; |
@@ -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
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
273706
2.26%3756
1.73%0
-100%