@enplug/sdk-dashboard
Advanced tools
Comparing version 5.4.16-dev to 5.4.17-dev
{ | ||
"name": "@enplug/sdk-dashboard", | ||
"version": "5.4.16-dev", | ||
"version": "5.4.17-dev", | ||
"description": "Enplug Dashboard SDK", | ||
@@ -5,0 +5,0 @@ "typings": "./index.d.ts", |
@@ -261,2 +261,35 @@ import { Asset, DefaultAssetLevel, DeployDialogOptions, EnplugAccount, EnplugUser, FeedData, Layout, ThemeDefinition, ThemeAsset, FontDefinition, FontsApiItem, DefaultAsset, ZoningAppsResponse, ZoningConfig, AccountCustomPropertiesResponse, AccountInfoResponse } from './external-types'; | ||
loadAccount(): Promise<AccountInfoResponse>; | ||
/** | ||
* Creates an asset history. | ||
* | ||
* @param T - Model of Asset's current version value | ||
* @param asset - An asset to save. | ||
* | ||
* @returns Promise resolving with the saved asset version. | ||
*/ | ||
createAssetVersion<T>(asset: Asset<T>): Promise<Asset<T>>; | ||
/** | ||
* Loads an array of assetHistory records by Asset Ids. | ||
* | ||
* @param assetsIds - An array of ids of the assets which histories will be returned. | ||
* | ||
* @returns Resolves to an array of requested hitory assets per assetId. | ||
*/ | ||
getAssetsHistoryByAssetId<T>(assetsIds: string[]): Promise<Array<Asset<T>>>; | ||
/** | ||
* Loads an array of assetHistory records by Ids. | ||
* | ||
* @param historyIds - An array of ids of the asset histories that will be returned. | ||
* | ||
* @returns Resolves to an array of requested hitory assets. | ||
*/ | ||
getAssetsHistoryById<T>(historyIds: string[]): Promise<Array<Asset<T>>>; | ||
/** | ||
* Deletes one or many assetHistory records under the current app instance. | ||
* | ||
* @param id - Id of an assetHistory to delete. To delete multiple assetsHistories, an array of ids can be passed. | ||
* | ||
* @returns Resolves after successfully deleting the assetHistory. | ||
*/ | ||
DeleteAssetHistory(id: string | string[]): Promise<void>; | ||
} |
@@ -159,3 +159,7 @@ /** | ||
UnbanUser = "social.unbanUser", | ||
RefreshFeed = "social.refreshFeed" | ||
RefreshFeed = "social.refreshFeed", | ||
CreateAssetVersion = "app.createAssetVersion", | ||
GetAssetsHistoryById = "app.getAssetsHistoryById", | ||
GetAssetsHistoryByAssetId = "app.getAssetsHistoryByAssetId", | ||
DeleteAssetHistory = "app.deleteAssetHistory" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
256321
3532