forked from microsoft/PowerBI-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpowerbi-client.ts
53 lines (50 loc) · 1.09 KB
/
powerbi-client.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import * as service from './service';
import * as factories from './factories';
import * as models from 'powerbi-models';
import { IFilterable } from './ifilterable';
export {
IFilterable,
service,
factories,
models
};
export {
Report
} from './report';
export {
Dashboard
} from './dashboard';
export {
Tile
} from './tile';
export {
IEmbedConfiguration,
Embed,
ILocaleSettings,
IEmbedSettings
} from './embed';
export {
Page
} from './page';
export {
Qna
} from './qna';
export {
Visual
} from './visual';
export {
VisualDescriptor
} from './visualDescriptor';
declare var powerbi: service.Service;
declare global {
interface Window {
powerbi: service.Service;
}
}
/**
* Makes Power BI available to the global object for use in applications that don't have module loading support.
*
* Note: create an instance of the class with the default configuration for normal usage, or save the class so that you can create an instance of the service.
*/
var powerbi = new service.Service(factories.hpmFactory, factories.wpmpFactory, factories.routerFactory);
window.powerbi = powerbi;