|
1 | | -/*! powerbi-client v2.7.1 | (c) 2016 Microsoft Corporation MIT */ |
| 1 | +/*! powerbi-client v2.7.2 | (c) 2016 Microsoft Corporation MIT */ |
2 | 2 | declare module "util" { |
| 3 | + import { HttpPostMessage } from 'http-post-message'; |
3 | 4 | /** |
4 | 5 | * Raises a custom event with event data on the specified HTML element. |
5 | 6 | * |
@@ -62,6 +63,16 @@ declare module "util" { |
62 | 63 | * @returns {string} |
63 | 64 | */ |
64 | 65 | export function addParamToUrl(url: string, paramName: string, value: string): string; |
| 66 | + /** |
| 67 | + * Checks if the report is saved. |
| 68 | + * |
| 69 | + * @export |
| 70 | + * @param {HttpPostMessage} hpm |
| 71 | + * @param {string} uid |
| 72 | + * @param {Window} contentWindow |
| 73 | + * @returns {Promise<boolean>} |
| 74 | + */ |
| 75 | + export function isSavedInternal(hpm: HttpPostMessage, uid: string, contentWindow: Window): Promise<boolean>; |
65 | 76 | } |
66 | 77 | declare module "embed" { |
67 | 78 | import * as service from "service"; |
@@ -941,12 +952,22 @@ declare module "report" { |
941 | 952 | */ |
942 | 953 | refresh(): Promise<void>; |
943 | 954 | /** |
944 | | - * Apply a theme to the report |
945 | | - * |
946 | | - * ```javascript |
947 | | - * report.applyTheme(theme); |
948 | | - * ``` |
949 | | - */ |
| 955 | + * checks if the report is saved. |
| 956 | + * |
| 957 | + * ```javascript |
| 958 | + * report.isSaved() |
| 959 | + * ``` |
| 960 | + * |
| 961 | + * @returns {Promise<boolean>} |
| 962 | + */ |
| 963 | + isSaved(): Promise<boolean>; |
| 964 | + /** |
| 965 | + * Apply a theme to the report |
| 966 | + * |
| 967 | + * ```javascript |
| 968 | + * report.applyTheme(theme); |
| 969 | + * ``` |
| 970 | + */ |
950 | 971 | applyTheme(theme: models.IReportTheme): Promise<void>; |
951 | 972 | /** |
952 | 973 | * Reset and apply the default theme of the report |
@@ -983,6 +1004,16 @@ declare module "create" { |
983 | 1004 | * @returns {void} |
984 | 1005 | */ |
985 | 1006 | populateConfig(baseConfig: embed.IEmbedConfigurationBase): void; |
| 1007 | + /** |
| 1008 | + * checks if the report is saved. |
| 1009 | + * |
| 1010 | + * ```javascript |
| 1011 | + * report.isSaved() |
| 1012 | + * ``` |
| 1013 | + * |
| 1014 | + * @returns {Promise<boolean>} |
| 1015 | + */ |
| 1016 | + isSaved(): Promise<boolean>; |
986 | 1017 | /** |
987 | 1018 | * Adds the ability to get datasetId from url. |
988 | 1019 | * (e.g. http://embedded.powerbi.com/appTokenReportEmbed?datasetId=854846ed-2106-4dc2-bc58-eb77533bf2f1). |
|
0 commit comments