1- /*! powerbi-client v2.6.6 | (c) 2016 Microsoft Corporation MIT */
1+ /*! powerbi-client v2.6.7 | (c) 2016 Microsoft Corporation MIT */
22declare module "util" {
33 /**
44 * Raises a custom event with event data on the specified HTML element.
@@ -397,6 +397,10 @@ declare module "embed" {
397397 * Sets Iframe for embed
398398 */
399399 private setIframe ( isLoad , phasedRender ?) ;
400+ /**
401+ * Sets Iframe's title
402+ */
403+ setComponentTitle ( title : string ) : void ;
400404 /**
401405 * Adds the ability to get groupId from url.
402406 * By extracting the ID we can ensure that the ID is always explicitly provided as part of the load configuration.
@@ -625,6 +629,16 @@ declare module "page" {
625629 * @type {models.SectionVisibility }
626630 */
627631 visibility : models . SectionVisibility ;
632+ /**
633+ * Page size as saved in the report.
634+ * @type {models.ICustomPageSize }
635+ */
636+ defaultSize : models . ICustomPageSize ;
637+ /**
638+ * Page display options as saved in the report.
639+ * @type {models.ICustomPageSize }
640+ */
641+ defaultDisplayOption : models . DisplayOption ;
628642 /**
629643 * Creates an instance of a Power BI report page.
630644 *
@@ -634,7 +648,7 @@ declare module "page" {
634648 * @param {boolean } [isActivePage]
635649 * @param {models.SectionVisibility } [visibility]
636650 */
637- constructor ( report : IReportNode , name : string , displayName ?: string , isActivePage ?: boolean , visibility ?: models . SectionVisibility ) ;
651+ constructor ( report : IReportNode , name : string , displayName ?: string , isActivePage ?: boolean , visibility ?: models . SectionVisibility , defaultSize ?: models . ICustomPageSize , defaultDisplayOption ?: models . DisplayOption ) ;
638652 /**
639653 * Gets all page level filters within the report.
640654 *
@@ -1119,8 +1133,6 @@ declare module "visual" {
11191133 */
11201134 export class Visual extends Report {
11211135 static type : string ;
1122- static GetFiltersNotSupportedError : string ;
1123- static SetFiltersNotSupportedError : string ;
11241136 static GetPagesNotSupportedError : string ;
11251137 static SetPageNotSupportedError : string ;
11261138 /**
@@ -1146,28 +1158,29 @@ declare module "visual" {
11461158 */
11471159 setPage ( pageName : string ) : Promise < void > ;
11481160 /**
1149- * Gets filters that are applied at the visual level.
1161+ * Gets filters that are applied to the filter level.
1162+ * Default filter level is visual level.
11501163 *
11511164 * ```javascript
1152- * // Get filters applied at visual level
1153- * visual.getFilters()
1165+ * visual.getFilters(filtersLevel)
11541166 * .then(filters => {
11551167 * ...
11561168 * });
11571169 * ```
11581170 *
11591171 * @returns {Promise<models.IFilter[]> }
11601172 */
1161- getFilters ( ) : Promise < models . IFilter [ ] > ;
1173+ getFilters ( filtersLevel ?: models . FiltersLevel ) : Promise < models . IFilter [ ] > ;
11621174 /**
1163- * Sets filters at the visual level.
1175+ * Sets filters at the filter level.
1176+ * Default filter level is visual level.
11641177 *
11651178 * ```javascript
11661179 * const filters: [
11671180 * ...
11681181 * ];
11691182 *
1170- * visual.setFilters(filters)
1183+ * visual.setFilters(filters, filtersLevel )
11711184 * .catch(errors => {
11721185 * ...
11731186 * });
@@ -1176,7 +1189,19 @@ declare module "visual" {
11761189 * @param {(models.IFilter[]) } filters
11771190 * @returns {Promise<void> }
11781191 */
1179- setFilters ( filters : models . IFilter [ ] ) : Promise < void > ;
1192+ setFilters ( filters : models . IFilter [ ] , filtersLevel ?: models . FiltersLevel ) : Promise < void > ;
1193+ /**
1194+ * Removes all filters from the current filter level.
1195+ * Default filter level is visual level.
1196+ *
1197+ * ```javascript
1198+ * visual.removeFilters(filtersLevel);
1199+ * ```
1200+ *
1201+ * @returns {Promise<void> }
1202+ */
1203+ removeFilters ( filtersLevel ?: models . FiltersLevel ) : Promise < void > ;
1204+ private getFiltersLevelUrl ( filtersLevel ) ;
11801205 }
11811206}
11821207declare module "service" {
0 commit comments