1- /*! powerbi-client v2.0.0-beta.13  | (c) 2016 Microsoft Corporation MIT */ 
1+ /*! powerbi-client v2.0.0 | (c) 2016 Microsoft Corporation MIT */ 
22import  *  as  service  from  './service' ; 
33import  *  as  models  from  'powerbi-models' ; 
44declare  global  { 
@@ -25,7 +25,7 @@ export interface IEmbedConfiguration {
2525    accessToken ?: string ; 
2626    settings ?: models . ISettings ; 
2727    pageName ?: string ; 
28-     filters ?: ( models . IBasicFilter   |   models . IAdvancedFilter ) [ ] ; 
28+     filters ?: models . IFilter [ ] ; 
2929} 
3030export  interface  IInternalEmbedConfiguration  extends  models . ILoadConfiguration  { 
3131    uniqueId : string ; 
@@ -53,40 +53,40 @@ export declare abstract class Embed {
5353    private  static  defaultSettings ; 
5454    allowedEvents : any [ ] ; 
5555    /** 
56-      * Gets or set  the event handler registered for this embed component 
56+      * Gets or sets  the event handler registered for this embed component.  
5757     * 
5858     * @type  {IInternalEventHandler<any>[] } 
5959     */ 
6060    eventHandlers : IInternalEventHandler < any > [ ] ; 
6161    /** 
62-      * Gets or sets the Power BI embed service 
62+      * Gets or sets the Power BI embed service.  
6363     * 
6464     * @type  {service.Service } 
6565     */ 
6666    service : service . Service ; 
6767    /** 
68-      * Gets or sets the HTML element containing  the Power BI embed component 
68+      * Gets or sets the HTML element that contains  the Power BI embed component.  
6969     * 
7070     * @type  {HTMLElement } 
7171     */ 
7272    element : HTMLElement ; 
7373    /** 
74-      * Gets or sets the HTML iframe element that renders the Power BI embed component 
74+      * Gets or sets the HTML iframe element that renders the Power BI embed component.  
7575     * 
7676     * @type  {HTMLIFrameElement } 
7777     */ 
7878    iframe : HTMLIFrameElement ; 
7979    /** 
80-      * Gets or sets the configuration settings for the embed component 
80+      * Gets or sets the configuration settings for the Power BI  embed component.  
8181     * 
8282     * @type  {IInternalEmbedConfiguration } 
8383     */ 
8484    config : IInternalEmbedConfiguration ; 
8585    /** 
8686     * Creates an instance of Embed. 
8787     * 
88-      * Note: there is circular reference between embeds and service 
89-      * The  service has list of all embeds on the host page, and each embed has reference to the service that created it. 
88+      * Note: there is circular reference between embeds and the  service, because  
89+      * the  service has a  list of all embeds on the host page, and each embed has a  reference to the service that created it. 
9090     * 
9191     * @param  {service.Service } service 
9292     * @param  {HTMLElement } element 
@@ -119,10 +119,9 @@ export declare abstract class Embed {
119119     */ 
120120    load ( config : models . ILoadConfiguration ) : Promise < void > ; 
121121    /** 
122-      * Removes event handler(s) from list of handlers. 
123-      * 
124-      * If reference to existing handle function is specified remove specific handler. 
125-      * If handler is not specified, remove all handlers for the event name specified. 
122+      * Removes one or more event handlers from the list of handlers. 
123+      * If a reference to the existing handle function is specified, remove the specific handler. 
124+      * If the handler is not specified, remove all handlers for the event name specified. 
126125     * 
127126     * ```javascript 
128127     * report.off('pageChanged') 
@@ -142,7 +141,7 @@ export declare abstract class Embed {
142141     */ 
143142    off < T > ( eventName : string ,  handler ?: service . IEventHandler < T > ) : void ; 
144143    /** 
145-      * Adds event handler for specific event. 
144+      * Adds an  event handler for a  specific event. 
146145     * 
147146     * ```javascript 
148147     * report.on('pageChanged', (event) => { 
@@ -156,46 +155,55 @@ export declare abstract class Embed {
156155     */ 
157156    on < T > ( eventName : string ,  handler : service . IEventHandler < T > ) : void ; 
158157    /** 
159-      * Get access token from first available location: config, attribute, global. 
158+      * Reloads embed using existing configuration. 
159+      * E.g. For reports this effectively clears all filters and makes the first page active which simulates resetting a report back to loaded state. 
160+      * 
161+      * ```javascript 
162+      * report.reload(); 
163+      * ``` 
164+      */ 
165+     reload ( ) : Promise < void > ; 
166+     /** 
167+      * Gets an access token from the first available location: config, attribute, global. 
160168     * 
161169     * @private  
162170     * @param  {string } globalAccessToken 
163171     * @returns  {string } 
164172     */ 
165173    private  getAccessToken ( globalAccessToken ) ; 
166174    /** 
167-      * Get  embed url from first available location: options, attribute. 
175+      * Gets an  embed url from the  first available location: options, attribute. 
168176     * 
169177     * @private  
170178     * @returns  {string } 
171179     */ 
172180    private  getEmbedUrl ( ) ; 
173181    /** 
174-      * Get  unique id  from first available location: options, attribute. 
175-      * If neither is provided generate unique string. 
182+      * Gets a  unique ID  from the  first available location: options, attribute. 
183+      * If neither is provided generate a  unique string. 
176184     * 
177185     * @private  
178186     * @returns  {string } 
179187     */ 
180188    private  getUniqueId ( ) ; 
181189    /** 
182-      * Get  report id  from first available location: options, attribute. 
190+      * Gets the  report ID  from the  first available location: options, attribute. 
183191     * 
184192     * @abstract  
185193     * @returns  {string } 
186194     */ 
187195    abstract  getId ( ) : string ; 
188196    /** 
189-      * Request  the browser to make  the component's iframe fullscreen. 
197+      * Requests  the browser to render  the component's iframe in  fullscreen mode . 
190198     */ 
191199    fullscreen ( ) : void ; 
192200    /** 
193-      * Exit  fullscreen. 
201+      * Requests the browser to exit  fullscreen mode . 
194202     */ 
195203    exitFullscreen ( ) : void ; 
196204    /** 
197-      * Return  true if iframe is fullscreen, 
198-      * otherwise return  false 
205+      * Returns  true if the  iframe is rendered in  fullscreen mode , 
206+      * otherwise returns  false.  
199207     * 
200208     * @private  
201209     * @param  {HTMLIFrameElement } iframe 
0 commit comments