Merge pull request #49 from Microsoft/merge_master

0.11.2 - Add Token Type
This commit is contained in:
ali-hamud 2017-05-03 10:41:37 +03:00 коммит произвёл GitHub
Родитель fab65ffabb 822c709c49
Коммит 682da51c82
5 изменённых файлов: 29 добавлений и 3 удалений

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

@ -1,6 +1,6 @@
{ {
"name": "powerbi-models", "name": "powerbi-models",
"version": "0.11.1", "version": "0.11.2",
"description": "Contains JavaScript & TypeScript object models for Microsoft Power BI JavaScript SDK. For each model there is a TypeScript interface, a json schema definitions, and a validation function to ensure and object is valid.", "description": "Contains JavaScript & TypeScript object models for Microsoft Power BI JavaScript SDK. For each model there is a TypeScript interface, a json schema definitions, and a validation function to ensure and object is valid.",
"main": "dist/models.js", "main": "dist/models.js",
"typings": "dist/models.d.ts", "typings": "dist/models.d.ts",
@ -56,7 +56,7 @@
"ts-loader": "^0.8.2", "ts-loader": "^0.8.2",
"tslint": "^3.14.0", "tslint": "^3.14.0",
"typedoc": "^0.4.4", "typedoc": "^0.4.4",
"typescript": "^1.8.10", "typescript": "^2.2.1",
"typings": "^1.3.2", "typings": "^1.3.2",
"webpack": "^1.13.2", "webpack": "^1.13.2",
"webpack-stream": "^3.2.0", "webpack-stream": "^3.2.0",

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

@ -82,6 +82,7 @@ export interface IReportLoadConfiguration {
filters?: (IBasicFilter | IAdvancedFilter)[]; filters?: (IBasicFilter | IAdvancedFilter)[];
permissions?: Permissions; permissions?: Permissions;
viewMode?: ViewMode; viewMode?: ViewMode;
tokenType?: TokenType;
} }
export const validateReportLoad = validate(loadSchema, { export const validateReportLoad = validate(loadSchema, {
@ -96,6 +97,7 @@ export interface IReportCreateConfiguration {
accessToken: string; accessToken: string;
datasetId: string; datasetId: string;
settings?: ISettings; settings?: ISettings;
tokenType?: TokenType;
} }
export const validateCreateReport = validate(createReportSchema); export const validateCreateReport = validate(createReportSchema);
@ -106,6 +108,7 @@ export interface IDashboardLoadConfiguration {
accessToken: string; accessToken: string;
id: string; id: string;
pageView?: PageView; pageView?: PageView;
tokenType?: TokenType;
} }
export const validateDashboardLoad = validate(dashboardLoadSchema); export const validateDashboardLoad = validate(dashboardLoadSchema);
@ -447,6 +450,11 @@ export enum ViewMode {
Edit Edit
} }
export enum TokenType {
Aad,
Embed
}
export interface ISaveAsParameters { export interface ISaveAsParameters {
name: string; name: string;
} }

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

@ -21,7 +21,13 @@
"messages": { "messages": {
"type": "pageView must be a string with one of the following values: \"actualSize\", \"fitToWidth\", \"oneColumn\"" "type": "pageView must be a string with one of the following values: \"actualSize\", \"fitToWidth\", \"oneColumn\""
} }
} },
"tokenType": {
"type": "number",
"enum": [0, 1],
"default": 0,
"invalidMessage": "tokenType property is invalid"
}
}, },
"required": [ "required": [
"accessToken", "accessToken",

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

@ -15,6 +15,12 @@
"type": "datasetId must be a string", "type": "datasetId must be a string",
"required": "datasetId is required" "required": "datasetId is required"
} }
},
"tokenType": {
"type": "number",
"enum": [0, 1],
"default": 0,
"invalidMessage": "tokenType property is invalid"
} }
}, },
"required": [ "required": [

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

@ -51,6 +51,12 @@
"enum": [0, 1], "enum": [0, 1],
"default": 0, "default": 0,
"invalidMessage": "viewMode property is invalid" "invalidMessage": "viewMode property is invalid"
},
"tokenType": {
"type": "number",
"enum": [0, 1],
"default": 0,
"invalidMessage": "tokenType property is invalid"
} }
}, },
"required": [ "required": [