Skip to content

Commit 61e39a9

Browse files
author
Yoav Damri
committed
Merged PR 305013: Add smart narrative API to report
#839888 add getSmartNarrativeInsights to report Related work items: #839888
1 parent b4d5922 commit 61e39a9

File tree

6 files changed

+414
-227
lines changed

6 files changed

+414
-227
lines changed

dist/powerbi-client.d.ts

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ declare module "ifilterable" {
598598
}
599599
}
600600
declare module "visualDescriptor" {
601-
import { ExportDataType, FiltersOperations, ICloneVisualRequest, ICloneVisualResponse, IExportDataResult, IFilter, ISlicerState, ISortByVisualRequest, IVisualLayout, VisualContainerDisplayMode } from 'powerbi-models';
601+
import { ExportDataType, FiltersOperations, ICloneVisualRequest, ICloneVisualResponse, IExportDataResult, IFilter, ISlicerState, ISmartNarratives, ISortByVisualRequest, IVisualLayout, VisualContainerDisplayMode } from 'powerbi-models';
602602
import { IHttpPostMessageResponse } from 'http-post-message';
603603
import { IFilterable } from "ifilterable";
604604
import { IPageNode } from "page";
@@ -795,11 +795,21 @@ declare module "visualDescriptor" {
795795
* @returns {Promise<IHttpPostMessageResponse<void>>}
796796
*/
797797
resizeVisual(width: number, height: number): Promise<IHttpPostMessageResponse<void>>;
798+
/**
799+
* Get insights for single visual
800+
*
801+
* ```javascript
802+
* visual.getSmartNarrativeInsights();
803+
* ```
804+
*
805+
* @returns {Promise<ISmartNarratives>}
806+
*/
807+
getSmartNarrativeInsights(): Promise<ISmartNarratives>;
798808
}
799809
}
800810
declare module "page" {
801811
import { IHttpPostMessageResponse } from 'http-post-message';
802-
import { DisplayOption, FiltersOperations, ICustomPageSize, IFilter, IVisual, LayoutType, PageSizeType, SectionVisibility, VisualContainerDisplayMode, IPageBackground, IPageWallpaper } from 'powerbi-models';
812+
import { DisplayOption, FiltersOperations, ICustomPageSize, IFilter, IVisual, LayoutType, PageSizeType, SectionVisibility, VisualContainerDisplayMode, IPageBackground, IPageWallpaper, ISmartNarratives } from 'powerbi-models';
803813
import { IFilterable } from "ifilterable";
804814
import { IReportNode } from "report";
805815
import { VisualDescriptor } from "visualDescriptor";
@@ -895,6 +905,16 @@ declare module "page" {
895905
* @hidden
896906
*/
897907
constructor(report: IReportNode, name: string, displayName?: string, isActivePage?: boolean, visibility?: SectionVisibility, defaultSize?: ICustomPageSize, defaultDisplayOption?: DisplayOption, mobileSize?: ICustomPageSize, background?: IPageBackground, wallpaper?: IPageWallpaper);
908+
/**
909+
* Get insights for report page
910+
*
911+
* ```javascript
912+
* page.getSmartNarrativeInsights()
913+
* ```
914+
*
915+
* @returns {Promise<ISmartNarratives>}
916+
*/
917+
getSmartNarrativeInsights(): Promise<ISmartNarratives>;
898918
/**
899919
* Gets all page level filters within the report.
900920
*

0 commit comments

Comments
 (0)