|
1 |
| -/*! powerbi-client v2.1.0 | (c) 2016 Microsoft Corporation MIT */ |
| 1 | +/*! powerbi-client v2.1.1 | (c) 2016 Microsoft Corporation MIT */ |
2 | 2 | import * as service from './service';
|
3 | 3 | import * as models from 'powerbi-models';
|
4 | 4 | declare global {
|
@@ -27,7 +27,7 @@ export interface IEmbedConfiguration {
|
27 | 27 | pageName?: string;
|
28 | 28 | filters?: models.IFilter[];
|
29 | 29 | }
|
30 |
| -export interface IInternalEmbedConfiguration extends models.ILoadConfiguration { |
| 30 | +export interface IInternalEmbedConfiguration extends models.IReportLoadConfiguration { |
31 | 31 | uniqueId: string;
|
32 | 32 | type: string;
|
33 | 33 | embedUrl: string;
|
@@ -82,6 +82,10 @@ export declare abstract class Embed {
|
82 | 82 | * @type {IInternalEmbedConfiguration}
|
83 | 83 | */
|
84 | 84 | config: IInternalEmbedConfiguration;
|
| 85 | + /** |
| 86 | + * Url used in the load request. |
| 87 | + */ |
| 88 | + loadPath: string; |
85 | 89 | /**
|
86 | 90 | * Creates an instance of Embed.
|
87 | 91 | *
|
@@ -117,7 +121,7 @@ export declare abstract class Embed {
|
117 | 121 | * @param {models.ILoadConfiguration} config
|
118 | 122 | * @returns {Promise<void>}
|
119 | 123 | */
|
120 |
| - load(config: models.ILoadConfiguration): Promise<void>; |
| 124 | + load(config: models.IReportLoadConfiguration | models.IDashboardLoadConfiguration): Promise<void>; |
121 | 125 | /**
|
122 | 126 | * Removes one or more event handlers from the list of handlers.
|
123 | 127 | * If a reference to the existing handle function is specified, remove the specific handler.
|
@@ -210,4 +214,8 @@ export declare abstract class Embed {
|
210 | 214 | * @returns {boolean}
|
211 | 215 | */
|
212 | 216 | private isFullscreen(iframe);
|
| 217 | + /** |
| 218 | + * Validate load configuration. |
| 219 | + */ |
| 220 | + abstract validate(config: models.IReportLoadConfiguration | models.IDashboardLoadConfiguration): models.IError[]; |
213 | 221 | }
|
0 commit comments