Merged PR 8904: adding common error codes

adding common error codes
This commit is contained in:
Omri Armstrong 2018-08-19 13:50:46 +00:00
Родитель 8836d8ef22
Коммит 3675a8c052
2 изменённых файлов: 10 добавлений и 1 удалений

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "powerbi-models",
"version": "1.0.10",
"version": "1.0.11",
"description": "Contains JavaScript & TypeScript object models for Microsoft Power BI JavaScript SDK. For each model there is a TypeScript interface, and a validation function to ensure and object is valid.",
"main": "dist/models.js",
"typings": "dist/models.d.ts",

Просмотреть файл

@ -755,6 +755,15 @@ export enum BookmarksPlayMode {
Presentation,
}
export enum CommonErrorCodes {
TokenExpired = 'TokenExpired',
NotFound = 'PowerBIEntityNotFound',
InvalidParameters = 'Invalid parameters',
LoadReportFailed = 'LoadReportFailed',
NotAuthorized = 'PowerBINotAuthorizedException',
FailedToLoadModel = 'ExplorationContainer_FailedToLoadModel_DefaultDetails',
}
export interface IQnaInterpretInputData {
question: string;
datasetIds?: string[];