Skip to content

Merge remote-tracking branch 'powerbi/master' into release-1 #387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 16 commits into from
Closed
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
14 changes: 14 additions & 0 deletions .config/tsaoptions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"codebaseName": "powerbi-javascript",
"instanceUrl": "https://powerbi.visualstudio.com",
"projectName": "Trident",
"areaPath" : "Trident\\ISV and ALM\\Embedded",
"iterationPath": "Trident\\Releases",
"notificationAliases": [
"[email protected]"
],
"codebaseAdmins": [
"redmond\\corembed"
],
"ignoreBranchName": true
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ package-lock.json
demo/package-lock.json
.vscode
owners.txt
test/util.spec.ts
.config/tsaoptions.json
36 changes: 32 additions & 4 deletions dist/powerbi-client.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// powerbi-client v2.22.2
// powerbi-client v2.23.1
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
declare module "config" {
Expand All @@ -12,6 +12,7 @@ declare module "config" {
declare module "errors" {
export const APINotSupportedForRDLError = "This API is currently not supported for RDL reports";
export const EmbedUrlNotSupported = "Embed URL is invalid for this scenario. Please use Power BI REST APIs to get the valid URL";
export const invalidEmbedUrlErrorMessage: string;
}
declare module "util" {
import { HttpPostMessage } from 'http-post-message';
Expand Down Expand Up @@ -124,6 +125,11 @@ declare module "util" {
* @returns {boolean}
*/
export function isCreate(embedType: string): boolean;
/**
* Checks if the embedUrl has an allowed power BI domain
* @hidden
*/
export function validateEmbedUrl(embedUrl: string): boolean;
}
declare module "embed" {
import * as models from 'powerbi-models';
Expand Down Expand Up @@ -151,6 +157,7 @@ declare module "embed" {
export type ITileEmbedConfiguration = models.ITileEmbedConfiguration;
export type IQnaEmbedConfiguration = models.IQnaEmbedConfiguration;
export type IQuickCreateConfiguration = models.IQuickCreateConfiguration;
export type IReportCreateConfiguration = models.IReportCreateConfiguration;
export type ILocaleSettings = models.ILocaleSettings;
export type IQnaSettings = models.IQnaSettings;
export type IEmbedSettings = models.ISettings;
Expand Down Expand Up @@ -597,7 +604,7 @@ declare module "ifilterable" {
}
}
declare module "visualDescriptor" {
import { ExportDataType, FiltersOperations, ICloneVisualRequest, ICloneVisualResponse, IExportDataResult, IFilter, ISlicerState, ISortByVisualRequest, IVisualLayout, VisualContainerDisplayMode } from 'powerbi-models';
import { ExportDataType, FiltersOperations, ICloneVisualRequest, ICloneVisualResponse, IExportDataResult, IFilter, ISlicerState, ISmartNarratives, ISortByVisualRequest, IVisualLayout, VisualContainerDisplayMode } from 'powerbi-models';
import { IHttpPostMessageResponse } from 'http-post-message';
import { IFilterable } from "ifilterable";
import { IPageNode } from "page";
Expand Down Expand Up @@ -794,11 +801,21 @@ declare module "visualDescriptor" {
* @returns {Promise<IHttpPostMessageResponse<void>>}
*/
resizeVisual(width: number, height: number): Promise<IHttpPostMessageResponse<void>>;
/**
* Get insights for single visual
*
* ```javascript
* visual.getSmartNarrativeInsights();
* ```
*
* @returns {Promise<ISmartNarratives>}
*/
getSmartNarrativeInsights(): Promise<ISmartNarratives>;
}
}
declare module "page" {
import { IHttpPostMessageResponse } from 'http-post-message';
import { DisplayOption, FiltersOperations, ICustomPageSize, IFilter, IVisual, LayoutType, PageSizeType, SectionVisibility, VisualContainerDisplayMode, IPageBackground, IPageWallpaper } from 'powerbi-models';
import { DisplayOption, FiltersOperations, ICustomPageSize, IFilter, IVisual, LayoutType, PageSizeType, SectionVisibility, VisualContainerDisplayMode, IPageBackground, IPageWallpaper, ISmartNarratives } from 'powerbi-models';
import { IFilterable } from "ifilterable";
import { IReportNode } from "report";
import { VisualDescriptor } from "visualDescriptor";
Expand Down Expand Up @@ -894,6 +911,16 @@ declare module "page" {
* @hidden
*/
constructor(report: IReportNode, name: string, displayName?: string, isActivePage?: boolean, visibility?: SectionVisibility, defaultSize?: ICustomPageSize, defaultDisplayOption?: DisplayOption, mobileSize?: ICustomPageSize, background?: IPageBackground, wallpaper?: IPageWallpaper);
/**
* Get insights for report page
*
* ```javascript
* page.getSmartNarrativeInsights();
* ```
*
* @returns {Promise<ISmartNarratives>}
*/
getSmartNarrativeInsights(): Promise<ISmartNarratives>;
/**
* Gets all page level filters within the report.
*
Expand Down Expand Up @@ -2940,12 +2967,13 @@ declare module "powerbi-client" {
export { Report } from "report";
export { Dashboard } from "dashboard";
export { Tile } from "tile";
export { IEmbedConfiguration, IQnaEmbedConfiguration, IVisualEmbedConfiguration, IReportEmbedConfiguration, IDashboardEmbedConfiguration, ITileEmbedConfiguration, IQuickCreateConfiguration, Embed, ILocaleSettings, IEmbedSettings, IQnaSettings, } from "embed";
export { IEmbedConfiguration, IQnaEmbedConfiguration, IVisualEmbedConfiguration, IReportEmbedConfiguration, IDashboardEmbedConfiguration, ITileEmbedConfiguration, IQuickCreateConfiguration, IReportCreateConfiguration, Embed, ILocaleSettings, IEmbedSettings, IQnaSettings, } from "embed";
export { Page } from "page";
export { Qna } from "qna";
export { Visual } from "visual";
export { VisualDescriptor } from "visualDescriptor";
export { QuickCreate } from "quickCreate";
export { Create } from "create";
export { BasicFilterBuilder, AdvancedFilterBuilder, TopNFilterBuilder, RelativeDateFilterBuilder, RelativeTimeFilterBuilder } from "FilterBuilders/index";
global {
interface Window {
Expand Down
Loading