Merged PR 19527: adding tokenType
adding tokenType to load/create configuration
This commit is contained in:
Родитель
1fe3f8aa96
Коммит
be50e3402f
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"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.",
|
||||
"main": "dist/models.js",
|
||||
"typings": "dist/models.d.ts",
|
||||
|
|
|
@ -82,6 +82,7 @@ export interface IReportLoadConfiguration {
|
|||
filters?: (IBasicFilter | IAdvancedFilter)[];
|
||||
permissions?: Permissions;
|
||||
viewMode?: ViewMode;
|
||||
tokenType?: TokenType;
|
||||
}
|
||||
|
||||
export const validateReportLoad = validate(loadSchema, {
|
||||
|
@ -96,6 +97,7 @@ export interface IReportCreateConfiguration {
|
|||
accessToken: string;
|
||||
datasetId: string;
|
||||
settings?: ISettings;
|
||||
tokenType?: TokenType;
|
||||
}
|
||||
|
||||
export const validateCreateReport = validate(createReportSchema);
|
||||
|
@ -447,6 +449,11 @@ export enum ViewMode {
|
|||
Edit
|
||||
}
|
||||
|
||||
export enum TokenType {
|
||||
Aad,
|
||||
Embed
|
||||
}
|
||||
|
||||
export interface ISaveAsParameters {
|
||||
name: string;
|
||||
}
|
||||
|
|
|
@ -15,6 +15,12 @@
|
|||
"type": "datasetId must be a string",
|
||||
"required": "datasetId is required"
|
||||
}
|
||||
},
|
||||
"tokenType": {
|
||||
"type": "number",
|
||||
"enum": [0, 1],
|
||||
"default": 0,
|
||||
"invalidMessage": "tokenType property is invalid"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
|
|
@ -51,6 +51,12 @@
|
|||
"enum": [0, 1],
|
||||
"default": 0,
|
||||
"invalidMessage": "viewMode property is invalid"
|
||||
},
|
||||
"tokenType": {
|
||||
"type": "number",
|
||||
"enum": [0, 1],
|
||||
"default": 0,
|
||||
"invalidMessage": "tokenType property is invalid"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
|
Загрузка…
Ссылка в новой задаче