@@ -598,7 +598,7 @@ declare module "ifilterable" {
598
598
}
599
599
}
600
600
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' ;
602
602
import { IHttpPostMessageResponse } from 'http-post-message' ;
603
603
import { IFilterable } from "ifilterable" ;
604
604
import { IPageNode } from "page" ;
@@ -795,11 +795,21 @@ declare module "visualDescriptor" {
795
795
* @returns {Promise<IHttpPostMessageResponse<void>> }
796
796
*/
797
797
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 > ;
798
808
}
799
809
}
800
810
declare module "page" {
801
811
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' ;
803
813
import { IFilterable } from "ifilterable" ;
804
814
import { IReportNode } from "report" ;
805
815
import { VisualDescriptor } from "visualDescriptor" ;
@@ -895,6 +905,16 @@ declare module "page" {
895
905
* @hidden
896
906
*/
897
907
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 > ;
898
918
/**
899
919
* Gets all page level filters within the report.
900
920
*
0 commit comments