@vizzly/api-client
Advanced tools
Comparing version 0.0.9 to 0.0.10
import { Vizzly } from './Vizzly'; | ||
import { CreateDashboardParams, DashboardDefinition, Dashboard as DashboardType, GlobalLibrary, UpdateDashboardParams } from '../types'; | ||
import { CreateDashboardParams, Dashboard, DashboardDefinition, Dashboard as DashboardType, GlobalLibrary, UpdateDashboardParams } from '../types'; | ||
export declare class DashboardManager { | ||
@@ -7,3 +7,3 @@ private vizzly; | ||
create(params: CreateDashboardParams): Promise<{ | ||
dashboard: DashboardType; | ||
dashboard: Dashboard; | ||
permissions: import("../types").DashboardPermission[]; | ||
@@ -14,3 +14,3 @@ }>; | ||
definition?: DashboardDefinition; | ||
}): Promise<void>; | ||
}): Promise<Dashboard>; | ||
getDashboards(): Promise<DashboardType[]>; | ||
@@ -17,0 +17,0 @@ static mergeDashboardsAndGlobalLibraries(dashboards: DashboardType[], globalLibraries: GlobalLibrary[]): DashboardType[]; |
@@ -43,3 +43,3 @@ "use strict"; | ||
// Send the update request. | ||
yield dashboardRepository.updateDashboard(Object.assign(Object.assign({}, params), { dashboardPermission: updateDashboardToken })); | ||
const updatedDashboard = yield dashboardRepository.updateDashboard(Object.assign(Object.assign({}, params), { dashboardPermission: updateDashboardToken })); | ||
// Build the views to store in the libraries | ||
@@ -94,2 +94,3 @@ let libraryViewsToSave = []; | ||
yield Promise.all(updatePromises); | ||
return updatedDashboard; | ||
}); | ||
@@ -96,0 +97,0 @@ } |
{ | ||
"name": "@vizzly/api-client", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "license": "NONE", |
120288
2866