Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ declare namespace powerbi {
/** Grouping becomes the next level in the hierarchy exclusively. Current level grouping is dropped. */
MoveToNextlevel = 3,
}

export const enum RowSubtotalType {
Top = "Top",
Bottom = "Bottom",
}
}


Expand Down Expand Up @@ -1676,6 +1681,7 @@ declare module powerbi.extensibility.visual {
licenseManager: IVisualLicenseManager;
webAccessService: IWebAccessService;
drill: (args: DrillArgs) => void;
applyCustomSort: (args: CustomVisualApplyCustomSortArgs) => void;
}

export interface VisualUpdateOptions extends extensibility.VisualUpdateOptions {
Expand Down Expand Up @@ -1742,6 +1748,15 @@ declare module powerbi.extensibility.visual {
/** Indicates whether the licenses info could be retrieved. */
isLicenseInfoAvailable: boolean;
}

export interface CustomVisualApplyCustomSortArgs {
sortDescriptors: CustomVisualSortableFieldDescriptor[];
}

export interface CustomVisualSortableFieldDescriptor {
queryName: string;
sortDirection: SortDirection;
}
}

export default powerbi;
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "powerbi-visuals-api",
"version": "4.7.0",
"version": "5.1.0",
"description": "Power BI Custom Visuals API type definitions for typescript",
"types": "index",
"main": "index.js",
Expand Down
52 changes: 51 additions & 1 deletion schema.capabilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@
"subtotals": {
"description": "Specifies the subtotal customizations applied in the customizeQuery method",
"$ref": "#/definitions/subtotals"
},
"migration": {
"$ref": "#/definitions/migration"
},
"keepAllMetadataColumns": {
"type": "boolean",
"description": "Indicates that visual is going to receive all metadata columns, no matter what the active projections are"
}
},
"required": [
Expand Down Expand Up @@ -888,7 +895,7 @@
}
},
"additionalProperties": false,
"oneOf": [
"anyOf": [
{
"required": [
"default"
Expand Down Expand Up @@ -1415,11 +1422,54 @@
"type": "boolean"
}
}
},
"rowSubtotalsType": {
"type": "object",
"description": "Indicates location of row subtotals locations (Top, Bottom). Top means subtotals located on top of DS and calculated even before all DS rows fetched, Bottom means subtotals located at the end of DS and shown only after all rows are fetched",
"properties": {
"propertyIdentifier": {
"type": "object",
"properties": {
"objectName": {
"type": "string"
},
"propertyName": {
"type": "string"
}
}
},
"defaultValue": {
"type": "string",
"enum": [
"Top",
"Bottom"
]
}
}
}
},
"requires": [
"matrix"
]
},
"migration": {
"type": "object",
"description": "Defines the supported APIs for migration",
"properties": {
"filter": {
"$ref": "#/definitions/migration.filter"
}
}
},
"migration.filter": {
"type": "object",
"description": "Defines the capabilities for migrating the filter API",
"properties": {
"shouldUseIdentityFilter": {
"type": "boolean",
"description": "Indicates whether the new filter should be identity filter"
}
}
}
}
}