1- // powerbi-client v2.19 .1
1+ // powerbi-client v2.21 .1
22// Copyright (c) Microsoft Corporation.
33// Licensed under the MIT License.
44declare module "config" {
@@ -150,6 +150,14 @@ declare module "embed" {
150150 test ( event : IEvent < T > ) : boolean ;
151151 handle ( event : ICustomEvent < T > ) : void ;
152152 }
153+ /** @hidden */
154+ export interface ISessionHeaders {
155+ uid : string ;
156+ sdkSessionId : string ;
157+ tokenProviderSupplied ?: boolean ;
158+ bootstrapped ?: boolean ;
159+ sdkVersion ?: string ;
160+ }
153161 /**
154162 * Base class for all Power BI embed components
155163 *
@@ -426,12 +434,12 @@ declare module "embed" {
426434 */
427435 populateConfig ( config : IBootstrapEmbedConfiguration , isBootstrap : boolean ) : void ;
428436 /**
429- * Validate EventHooks
430- *
431- * @private
432- * @param {models.EventHooks } eventHooks
433- * @hidden
434- */
437+ * Validate EventHooks
438+ *
439+ * @private
440+ * @param {models.EventHooks } eventHooks
441+ * @hidden
442+ */
435443 private validateEventHooks ;
436444 /**
437445 * Adds locale parameters to embedUrl
@@ -1998,7 +2006,7 @@ declare module "visual" {
19982006declare module "service" {
19992007 import { WindowPostMessageProxy } from 'window-post-message-proxy' ;
20002008 import { HttpPostMessage } from 'http-post-message' ;
2001- import { Router } from 'powerbi-router' ;
2009+ import { Router , IExtendedRequest , Response as IExtendedResponse } from 'powerbi-router' ;
20022010 import { IReportCreateConfiguration } from 'powerbi-models' ;
20032011 import { Embed , IBootstrapEmbedConfiguration , IDashboardEmbedConfiguration , IEmbedConfiguration , IEmbedConfigurationBase , IQnaEmbedConfiguration , IReportEmbedConfiguration , ITileEmbedConfiguration , IVisualEmbedConfiguration } from "embed" ;
20042012 export interface IEvent < T > {
@@ -2049,6 +2057,7 @@ declare module "service" {
20492057 onError ?: ( error : any ) => any ;
20502058 version ?: string ;
20512059 type ?: string ;
2060+ sdkWrapperVersion ?: string ;
20522061 }
20532062 export interface IService {
20542063 hpm : HttpPostMessage ;
@@ -2091,7 +2100,7 @@ declare module "service" {
20912100 * @hidden
20922101 */
20932102 wpmp : WindowPostMessageProxy ;
2094- private router ;
2103+ router : Router ;
20952104 private uniqueSessionId ;
20962105 /**
20972106 * Creates an instance of a Power BI Service.
@@ -2154,6 +2163,12 @@ declare module "service" {
21542163 getNumberOfComponents ( ) : number ;
21552164 /** @hidden */
21562165 getSdkSessionId ( ) : string ;
2166+ /**
2167+ * Returns the Power BI Client SDK version
2168+ *
2169+ * @hidden
2170+ */
2171+ getSDKVersion ( ) : string ;
21572172 /**
21582173 * Given a configuration based on a Power BI element, saves the component instance that reference the element for later lookup.
21592174 *
@@ -2222,7 +2237,7 @@ declare module "service" {
22222237 * @hidden
22232238 */
22242239 handleTileEvents ( event : IEvent < any > ) : void ;
2225- private invokeSDKHook ;
2240+ invokeSDKHook ( hook : Function , req : IExtendedRequest , res : IExtendedResponse ) : Promise < void > ;
22262241 /**
22272242 * Given an event object, finds the embed component with the matching type and ID, and invokes its handleEvent method with the event object.
22282243 *
@@ -2240,6 +2255,14 @@ declare module "service" {
22402255 * @param {HTMLElement } [element=undefined]
22412256 */
22422257 preload ( config : IComponentEmbedConfiguration | IEmbedConfigurationBase , element ?: HTMLElement ) : HTMLIFrameElement ;
2258+ /**
2259+ * Use this API to set SDK info
2260+ *
2261+ * @hidden
2262+ * @param {string } type
2263+ * @returns {void }
2264+ */
2265+ setSdkInfo ( type : string , version : string ) : void ;
22432266 }
22442267}
22452268declare module "bookmarksManager" {
0 commit comments