|
1 |
| -// powerbi-client v2.19.1 |
| 1 | +// powerbi-client v2.20.0 |
2 | 2 | // Copyright (c) Microsoft Corporation.
|
3 | 3 | // Licensed under the MIT License.
|
4 | 4 | declare module "config" {
|
@@ -150,6 +150,14 @@ declare module "embed" {
|
150 | 150 | test(event: IEvent<T>): boolean;
|
151 | 151 | handle(event: ICustomEvent<T>): void;
|
152 | 152 | }
|
| 153 | + /** @hidden */ |
| 154 | + export interface ISessionHeaders { |
| 155 | + uid: string; |
| 156 | + sdkSessionId: string; |
| 157 | + tokenProviderSupplied?: boolean; |
| 158 | + bootstrapped?: boolean; |
| 159 | + sdkVersion?: string; |
| 160 | + } |
153 | 161 | /**
|
154 | 162 | * Base class for all Power BI embed components
|
155 | 163 | *
|
@@ -426,12 +434,12 @@ declare module "embed" {
|
426 | 434 | */
|
427 | 435 | populateConfig(config: IBootstrapEmbedConfiguration, isBootstrap: boolean): void;
|
428 | 436 | /**
|
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 | + */ |
435 | 443 | private validateEventHooks;
|
436 | 444 | /**
|
437 | 445 | * Adds locale parameters to embedUrl
|
@@ -1998,7 +2006,7 @@ declare module "visual" {
|
1998 | 2006 | declare module "service" {
|
1999 | 2007 | import { WindowPostMessageProxy } from 'window-post-message-proxy';
|
2000 | 2008 | import { HttpPostMessage } from 'http-post-message';
|
2001 |
| - import { Router } from 'powerbi-router'; |
| 2009 | + import { Router, IExtendedRequest, Response as IExtendedResponse } from 'powerbi-router'; |
2002 | 2010 | import { IReportCreateConfiguration } from 'powerbi-models';
|
2003 | 2011 | import { Embed, IBootstrapEmbedConfiguration, IDashboardEmbedConfiguration, IEmbedConfiguration, IEmbedConfigurationBase, IQnaEmbedConfiguration, IReportEmbedConfiguration, ITileEmbedConfiguration, IVisualEmbedConfiguration } from "embed";
|
2004 | 2012 | export interface IEvent<T> {
|
@@ -2091,7 +2099,7 @@ declare module "service" {
|
2091 | 2099 | * @hidden
|
2092 | 2100 | */
|
2093 | 2101 | wpmp: WindowPostMessageProxy;
|
2094 |
| - private router; |
| 2102 | + router: Router; |
2095 | 2103 | private uniqueSessionId;
|
2096 | 2104 | /**
|
2097 | 2105 | * Creates an instance of a Power BI Service.
|
@@ -2228,7 +2236,7 @@ declare module "service" {
|
2228 | 2236 | * @hidden
|
2229 | 2237 | */
|
2230 | 2238 | handleTileEvents(event: IEvent<any>): void;
|
2231 |
| - private invokeSDKHook; |
| 2239 | + invokeSDKHook(hook: Function, req: IExtendedRequest, res: IExtendedResponse): Promise<void>; |
2232 | 2240 | /**
|
2233 | 2241 | * Given an event object, finds the embed component with the matching type and ID, and invokes its handleEvent method with the event object.
|
2234 | 2242 | *
|
|
0 commit comments