diff --git a/CHANGELOG.md b/CHANGELOG.md index 1220421..14436f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ # Change Log - Power BI Custom Visuals API +## 5.10.0 +* `sourceFieldParameters` : New DataViewMetadataColumn property indicates that the current field is the result of a field parameter. + ## 5.9.1 * `acquireAADTokenService` : Enhanced to support multiple clouds. diff --git a/package-lock.json b/package-lock.json index 89d70b3..c3c1280 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "powerbi-visuals-api", - "version": "5.9.1", + "version": "5.10.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "powerbi-visuals-api", - "version": "5.9.1", + "version": "5.10.0", "license": "MIT", "dependencies": { "semver": "^7.6.0" diff --git a/package.json b/package.json index d53de89..86c0fad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "powerbi-visuals-api", - "version": "5.9.1", + "version": "5.10.0", "description": "Power BI Custom Visuals API type definitions for typescript", "types": "index", "main": "index.js", diff --git a/src/visuals-api.d.ts b/src/visuals-api.d.ts index 6c22850..43513f3 100644 --- a/src/visuals-api.d.ts +++ b/src/visuals-api.d.ts @@ -474,7 +474,11 @@ declare module powerbi { */ identityExprs?: data.ISQExpr[]; + /** This indicates that the current field is a parameter */ parameter?: DataViewParameterColumnMetadata; + + /** This indicates that the current field is the result of a field parameter */ + sourceFieldParameters?: DataViewSourceFieldParameterMetadata[]; } export interface DataViewSegmentMetadata { @@ -756,6 +760,15 @@ declare module powerbi { export interface DataViewParameterColumnMetadata { } + /** Used to indicate if a column comes from field parameter and which one */ + export interface DataViewSourceFieldParameterMetadata { + /** The user-facing display name of the source field parameter */ + displayName: string; + + /** The source field parameter SQExpr */ + expr?: data.ISQExpr; + } + export interface DataViewScriptResultData { payloadBase64: string; }