forked from microsoft/PowerBI-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpowerbi-client.ts
More file actions
79 lines (75 loc) · 1.81 KB
/
powerbi-client.ts
File metadata and controls
79 lines (75 loc) · 1.81 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/**
* @hidden
*/
import * as models from 'powerbi-models';
import * as service from './service';
import * as factories from './factories';
import { IFilterable } from './ifilterable';
export {
IFilterable,
service,
factories,
models
};
export {
Report
} from './report';
export {
Dashboard
} from './dashboard';
export {
Tile
} from './tile';
export {
IEmbedConfiguration,
IQnaEmbedConfiguration,
IVisualEmbedConfiguration,
IReportEmbedConfiguration,
IDashboardEmbedConfiguration,
ITileEmbedConfiguration,
Embed,
ILocaleSettings,
IEmbedSettings,
IQnaSettings,
} from './embed';
export {
Page
} from './page';
export {
Qna
} from './qna';
export {
Visual
} from './visual';
export {
VisualDescriptor
} from './visualDescriptor';
export {
BasicFilterBuilder,
AdvancedFilterBuilder,
TopNFilterBuilder,
RelativeDateFilterBuilder,
RelativeTimeFilterBuilder
} from './FilterBuilders';
declare var powerbi: service.Service;
declare global {
interface Window {
powerbi: service.Service;
powerBISDKGlobalServiceInstanceName?: string;
}
}
/**
* 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);
// powerBI SDK may use Power BI object under different key, in order to avoid name collisions
if (window.powerbi && window.powerBISDKGlobalServiceInstanceName) {
window[window.powerBISDKGlobalServiceInstanceName] = powerbi;
} else {
// Default to Power BI.
window.powerbi = powerbi;
}