Skip to content

Commit 70119ae

Browse files
author
submarine-launched
authored
Merge pull request #380 from aliabufoul/release-2.18.7
Release 2.18.7
2 parents 9ae72e5 + 5a90d7d commit 70119ae

29 files changed

+6209
-6638
lines changed

.eslintignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# Task 512388: Fix eslint warnings and errors in tests
2-
test/*
2+
/node_modules/*
3+
demo/*
4+
/**/*.js
5+
dist/*

.eslintrc.js

+40-58
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,18 @@ module.exports = {
2121
],
2222
"rules": {
2323
"@typescript-eslint/adjacent-overload-signatures": "warn",
24-
"@typescript-eslint/array-type": [
25-
"warn",
26-
{
27-
"default": "array-simple"
28-
}
29-
],
24+
"@typescript-eslint/array-type": "off",
3025
"@typescript-eslint/await-thenable": "warn",
31-
"@typescript-eslint/ban-ts-comment": "warn",
26+
"@typescript-eslint/ban-ts-comment": "off",
3227
"@typescript-eslint/ban-types": [
3328
"warn",
3429
{
3530
"types": {
3631
"Object": {
3732
"message": "Avoid using the `Object` type. Did you mean `object`?"
3833
},
39-
"Function": {
40-
"message": "Avoid using the `Function` type. Prefer a specific function type, like `() => void`."
41-
},
34+
"Function": false,
35+
"object": false,
4236
"Boolean": {
4337
"message": "Avoid using the `Boolean` type. Did you mean `boolean`?"
4438
},
@@ -54,16 +48,18 @@ module.exports = {
5448
}
5549
}
5650
],
57-
"@typescript-eslint/consistent-type-assertions": "warn",
5851
"@typescript-eslint/consistent-type-definitions": "warn",
59-
"@typescript-eslint/dot-notation": "warn",
52+
"@typescript-eslint/dot-notation": "off",
6053
"@typescript-eslint/explicit-member-accessibility": [
6154
"off",
6255
{
6356
"accessibility": "explicit"
6457
}
6558
],
66-
"@typescript-eslint/explicit-module-boundary-types": "warn",
59+
"@typescript-eslint/explicit-module-boundary-types": [
60+
"warn",
61+
{ "allowArgumentsExplicitlyTypedAsAny": true }
62+
],
6763
"@typescript-eslint/indent": [
6864
"warn",
6965
2,
@@ -90,6 +86,13 @@ module.exports = {
9086
}
9187
}
9288
],
89+
"@typescript-eslint/explicit-function-return-type": [
90+
"error",
91+
{
92+
"allowExpressions": true,
93+
"allowDirectConstAssertionInArrowFunctions": true
94+
}
95+
],
9396
"@typescript-eslint/member-ordering": "off",
9497
"@typescript-eslint/naming-convention": "off",
9598
"@typescript-eslint/no-array-constructor": "warn",
@@ -98,29 +101,33 @@ module.exports = {
98101
"@typescript-eslint/no-explicit-any": "off",
99102
"@typescript-eslint/no-extra-non-null-assertion": "warn",
100103
"@typescript-eslint/no-extra-semi": "warn",
101-
"@typescript-eslint/no-floating-promises": "warn",
104+
"@typescript-eslint/no-floating-promises": "off",
102105
"@typescript-eslint/no-for-in-array": "warn",
103106
"@typescript-eslint/no-implied-eval": "warn",
104-
"@typescript-eslint/no-inferrable-types": "warn",
107+
"@typescript-eslint/no-inferrable-types": "off",
105108
"@typescript-eslint/no-misused-new": "warn",
106-
"@typescript-eslint/no-misused-promises": "warn",
109+
"@typescript-eslint/no-misused-promises": "off",
107110
"@typescript-eslint/no-namespace": "warn",
108111
"@typescript-eslint/no-non-null-asserted-optional-chain": "warn",
109112
"@typescript-eslint/no-non-null-assertion": "warn",
110113
"@typescript-eslint/no-parameter-properties": "off",
111114
"@typescript-eslint/no-this-alias": "warn",
112115
"@typescript-eslint/no-unnecessary-type-assertion": "warn",
113-
"@typescript-eslint/no-unsafe-assignment": "warn",
114-
"@typescript-eslint/no-unsafe-call": "warn",
116+
"@typescript-eslint/no-unsafe-assignment": "off",
117+
"@typescript-eslint/no-unsafe-call": "off",
115118
"@typescript-eslint/no-unsafe-member-access": "off",
116-
"@typescript-eslint/no-unsafe-return": "warn",
119+
"@typescript-eslint/no-unsafe-return": "off",
117120
"@typescript-eslint/no-unused-expressions": "warn",
118-
"@typescript-eslint/no-unused-vars": "warn",
121+
"@typescript-eslint/no-unused-vars": [
122+
"warn",
123+
{
124+
"args": "after-used", "argsIgnorePattern": "^_"
125+
}
126+
],
119127
"@typescript-eslint/no-use-before-define": "off",
120128
"@typescript-eslint/no-var-requires": "warn",
121129
"@typescript-eslint/prefer-as-const": "warn",
122130
"@typescript-eslint/prefer-for-of": "warn",
123-
"@typescript-eslint/prefer-function-type": "warn",
124131
"@typescript-eslint/prefer-namespace-keyword": "warn",
125132
"@typescript-eslint/prefer-regexp-exec": "off",
126133
"@typescript-eslint/quotes": [
@@ -131,10 +138,9 @@ module.exports = {
131138
],
132139
"@typescript-eslint/require-await": "warn",
133140
"@typescript-eslint/restrict-plus-operands": "warn",
134-
"@typescript-eslint/restrict-template-expressions": "warn",
141+
"@typescript-eslint/restrict-template-expressions": "off",
135142
"@typescript-eslint/semi": [
136-
"warn",
137-
"always"
143+
"error",
138144
],
139145
"@typescript-eslint/triple-slash-reference": [
140146
"warn",
@@ -145,21 +151,16 @@ module.exports = {
145151
}
146152
],
147153
"@typescript-eslint/type-annotation-spacing": "warn",
148-
"@typescript-eslint/unbound-method": "warn",
154+
"@typescript-eslint/unbound-method": "off",
149155
"@typescript-eslint/unified-signatures": "warn",
150-
"arrow-body-style": "warn",
151-
"arrow-parens": [
152-
"warn",
153-
"always"
154-
],
156+
"arrow-parens": "off",
155157
"brace-style": [
156158
"off",
157159
"1tbs"
158160
],
159161
"comma-dangle": "off",
160162
"complexity": "off",
161163
"constructor-super": "warn",
162-
"curly": "warn",
163164
"eol-last": "warn",
164165
"eqeqeq": [
165166
"warn",
@@ -178,7 +179,7 @@ module.exports = {
178179
"Undefined",
179180
],
180181
"id-match": "warn",
181-
"import/order": "warn",
182+
"import/order": "off",
182183
"jsdoc/check-alignment": "warn",
183184
"jsdoc/check-indentation": "warn",
184185
"jsdoc/newline-after-description": "warn",
@@ -189,7 +190,6 @@ module.exports = {
189190
"max-len": "off",
190191
"new-parens": "warn",
191192
"no-array-constructor": "off",
192-
"no-bitwise": "warn",
193193
"no-caller": "warn",
194194
"no-cond-assign": "warn",
195195
"no-console": "off",
@@ -201,44 +201,26 @@ module.exports = {
201201
"no-fallthrough": "off",
202202
"no-implied-eval": "off",
203203
"no-invalid-this": "off",
204-
"no-multiple-empty-lines": "warn",
204+
"no-multiple-empty-lines": ["error", { "max": 1 }],
205205
"no-new-wrappers": "warn",
206-
"no-shadow": [
207-
"warn",
208-
{
209-
"hoist": "all"
210-
}
211-
],
212-
"no-throw-literal": "warn",
206+
"no-shadow": "off",
213207
"no-trailing-spaces": "warn",
214208
"no-undef-init": "warn",
215-
"no-underscore-dangle": "warn",
209+
"no-underscore-dangle": "off",
216210
"no-unsafe-finally": "warn",
217211
"no-unused-labels": "warn",
218-
"no-unused-vars": "off",
219212
"no-var": "warn",
220-
"object-shorthand": ["warn", "never"],
221-
"one-var": [
222-
"warn",
223-
"never"
224-
],
225-
"prefer-arrow/prefer-arrow-functions": "off",
226-
"prefer-const": "warn",
213+
"object-shorthand": "off",
214+
"one-var": "off",
215+
"prefer-const": "off",
227216
"prefer-rest-params": "warn",
228217
"quote-props": [
229218
"warn",
230219
"consistent-as-needed"
231220
],
232221
"radix": "warn",
233222
"require-await": "off",
234-
"space-before-function-paren": [
235-
"warn",
236-
{
237-
"anonymous": "never",
238-
"asyncArrow": "always",
239-
"named": "never"
240-
}
241-
],
223+
"space-before-function-paren": "off",
242224
"spaced-comment": [
243225
"warn",
244226
"always",

dist/powerbi-client.d.ts

+25-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// powerbi-client v2.18.6
1+
// powerbi-client v2.18.7
22
// Copyright (c) Microsoft Corporation.
33
// Licensed under the MIT License.
44
declare module "config" {
@@ -780,7 +780,7 @@ declare module "visualDescriptor" {
780780
}
781781
declare module "page" {
782782
import { IHttpPostMessageResponse } from 'http-post-message';
783-
import { DisplayOption, FiltersOperations, ICustomPageSize, IFilter, IVisual, LayoutType, PageSizeType, SectionVisibility, VisualContainerDisplayMode } from 'powerbi-models';
783+
import { DisplayOption, FiltersOperations, ICustomPageSize, IFilter, IVisual, LayoutType, PageSizeType, SectionVisibility, VisualContainerDisplayMode, IPageBackground, IPageWallpaper } from 'powerbi-models';
784784
import { IFilterable } from "ifilterable";
785785
import { IReportNode } from "report";
786786
import { VisualDescriptor } from "visualDescriptor";
@@ -853,6 +853,18 @@ declare module "page" {
853853
* @type {ICustomPageSize}
854854
*/
855855
defaultDisplayOption: DisplayOption;
856+
/**
857+
* Page background color.
858+
*
859+
* @type {IPageBackground}
860+
*/
861+
background: IPageBackground;
862+
/**
863+
* Page wallpaper color.
864+
*
865+
* @type {IPageWallpaper}
866+
*/
867+
wallpaper: IPageWallpaper;
856868
/**
857869
* Creates an instance of a Power BI report page.
858870
*
@@ -863,7 +875,7 @@ declare module "page" {
863875
* @param {SectionVisibility} [visibility]
864876
* @hidden
865877
*/
866-
constructor(report: IReportNode, name: string, displayName?: string, isActivePage?: boolean, visibility?: SectionVisibility, defaultSize?: ICustomPageSize, defaultDisplayOption?: DisplayOption, mobileSize?: ICustomPageSize);
878+
constructor(report: IReportNode, name: string, displayName?: string, isActivePage?: boolean, visibility?: SectionVisibility, defaultSize?: ICustomPageSize, defaultDisplayOption?: DisplayOption, mobileSize?: ICustomPageSize, background?: IPageBackground, wallpaper?: IPageWallpaper);
867879
/**
868880
* Gets all page level filters within the report.
869881
*
@@ -1368,6 +1380,14 @@ declare module "report" {
13681380
* ```
13691381
*/
13701382
resetTheme(): Promise<void>;
1383+
/**
1384+
* get the theme of the report
1385+
*
1386+
* ```javascript
1387+
* report.getTheme();
1388+
* ```
1389+
*/
1390+
getTheme(): Promise<IReportTheme>;
13711391
/**
13721392
* Reset user's filters, slicers, and other data view changes to the default state of the report
13731393
*
@@ -1566,11 +1586,13 @@ declare module "report" {
15661586
private isMobileSettings;
15671587
/**
15681588
* Return the current zoom level of the report.
1589+
*
15691590
* @returns {Promise<number>}
15701591
*/
15711592
getZoom(): Promise<number>;
15721593
/**
15731594
* Sets the report's zoom level.
1595+
*
15741596
* @param zoomLevel zoom level to set
15751597
*/
15761598
setZoom(zoomLevel: number): Promise<void>;

0 commit comments

Comments
 (0)