Merged PR 21517: Add createVisual Request and Response

Add createVisual Request and Response
This commit is contained in:
Joseph Haddad 2019-03-17 09:39:39 +00:00
Родитель d970b37c43
Коммит 9abf56eca7
2 изменённых файлов: 11 добавлений и 3 удалений

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "powerbi-models",
"version": "1.1.0",
"version": "1.1.1",
"description": "Contains JavaScript & TypeScript object models for Microsoft Power BI JavaScript SDK. For each model there is a TypeScript interface, and a validation function to ensure and object is valid.",
"main": "dist/models.js",
"typings": "dist/models.d.ts",

Просмотреть файл

@ -880,7 +880,15 @@ export interface IExportDataRequest {
export interface IExportDataResult {
data: string;
}
export interface ICreateVisualRequest {
visualType: string;
layout?: IVisualLayout;
}
export interface IVisualResponse {
visual: IVisual;
}
export interface ICreateVisualResponse extends IVisualResponse {
}
export interface ICloneVisualRequest {
// The filters which will be applied to the new visual. Default: source visual filters.
filters?: IFilter[];
@ -890,7 +898,7 @@ export interface ICloneVisualRequest {
layout?: IVisualLayout;
}
export interface ICloneVisualResponse {
export interface ICloneVisualResponse extends IVisualResponse {
// New visual name
visualName: string;
}