Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 33 additions & 10 deletions dist/powerbi-client.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// powerbi-client v2.19.1
// powerbi-client v2.21.1
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
declare module "config" {
Expand Down Expand Up @@ -150,6 +150,14 @@ declare module "embed" {
test(event: IEvent<T>): boolean;
handle(event: ICustomEvent<T>): void;
}
/** @hidden */
export interface ISessionHeaders {
uid: string;
sdkSessionId: string;
tokenProviderSupplied?: boolean;
bootstrapped?: boolean;
sdkVersion?: string;
}
/**
* Base class for all Power BI embed components
*
Expand Down Expand Up @@ -426,12 +434,12 @@ declare module "embed" {
*/
populateConfig(config: IBootstrapEmbedConfiguration, isBootstrap: boolean): void;
/**
* Validate EventHooks
*
* @private
* @param {models.EventHooks} eventHooks
* @hidden
*/
* Validate EventHooks
*
* @private
* @param {models.EventHooks} eventHooks
* @hidden
*/
private validateEventHooks;
/**
* Adds locale parameters to embedUrl
Expand Down Expand Up @@ -1998,7 +2006,7 @@ declare module "visual" {
declare module "service" {
import { WindowPostMessageProxy } from 'window-post-message-proxy';
import { HttpPostMessage } from 'http-post-message';
import { Router } from 'powerbi-router';
import { Router, IExtendedRequest, Response as IExtendedResponse } from 'powerbi-router';
import { IReportCreateConfiguration } from 'powerbi-models';
import { Embed, IBootstrapEmbedConfiguration, IDashboardEmbedConfiguration, IEmbedConfiguration, IEmbedConfigurationBase, IQnaEmbedConfiguration, IReportEmbedConfiguration, ITileEmbedConfiguration, IVisualEmbedConfiguration } from "embed";
export interface IEvent<T> {
Expand Down Expand Up @@ -2049,6 +2057,7 @@ declare module "service" {
onError?: (error: any) => any;
version?: string;
type?: string;
sdkWrapperVersion?: string;
}
export interface IService {
hpm: HttpPostMessage;
Expand Down Expand Up @@ -2091,7 +2100,7 @@ declare module "service" {
* @hidden
*/
wpmp: WindowPostMessageProxy;
private router;
router: Router;
private uniqueSessionId;
/**
* Creates an instance of a Power BI Service.
Expand Down Expand Up @@ -2154,6 +2163,12 @@ declare module "service" {
getNumberOfComponents(): number;
/** @hidden */
getSdkSessionId(): string;
/**
* Returns the Power BI Client SDK version
*
* @hidden
*/
getSDKVersion(): string;
/**
* Given a configuration based on a Power BI element, saves the component instance that reference the element for later lookup.
*
Expand Down Expand Up @@ -2222,7 +2237,7 @@ declare module "service" {
* @hidden
*/
handleTileEvents(event: IEvent<any>): void;
private invokeSDKHook;
invokeSDKHook(hook: Function, req: IExtendedRequest, res: IExtendedResponse): Promise<void>;
/**
* Given an event object, finds the embed component with the matching type and ID, and invokes its handleEvent method with the event object.
*
Expand All @@ -2240,6 +2255,14 @@ declare module "service" {
* @param {HTMLElement} [element=undefined]
*/
preload(config: IComponentEmbedConfiguration | IEmbedConfigurationBase, element?: HTMLElement): HTMLIFrameElement;
/**
* Use this API to set SDK info
*
* @hidden
* @param {string} type
* @returns {void}
*/
setSdkInfo(type: string, version: string): void;
}
}
declare module "bookmarksManager" {
Expand Down
Loading