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",
|
"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",
|
||||||
|
|
|
@ -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);
|
||||||
|
@ -447,6 +449,11 @@ export enum ViewMode {
|
||||||
Edit
|
Edit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum TokenType {
|
||||||
|
Aad,
|
||||||
|
Embed
|
||||||
|
}
|
||||||
|
|
||||||
export interface ISaveAsParameters {
|
export interface ISaveAsParameters {
|
||||||
name: string;
|
name: string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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": [
|
||||||
|
|
Загрузка…
Ссылка в новой задаче