Gathering detailed insights and metrics for powerbi-models
Gathering detailed insights and metrics for powerbi-models
Gathering detailed insights and metrics for powerbi-models
Gathering detailed insights and metrics for powerbi-models
Contains JavaScript & TypeScript object models for Microsoft Power BI JavaScript SDK
npm install powerbi-models
Typescript
Module System
Node Version
NPM Version
TypeScript (95.9%)
JavaScript (4.1%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
48 Stars
523 Commits
40 Forks
37 Watchers
13 Branches
36 Contributors
Updated on Apr 04, 2025
Latest Version
1.15.2
Package Id
powerbi-models@1.15.2
Unpacked Size
738.95 kB
Size
92.36 kB
File Count
7
NPM Version
9.8.1
Node Version
18.18.2
Published on
Mar 25, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
32
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 a given object is a valid model.
Install
1npm install --save powerbi-models
Import
1import * as models from 'powerbi-models';
Usage
Validation:
1let testObject = { x: 1 }; 2 3const errors = models.validateLoad(testObject); 4 5if(errors) { 6 console.warn(errors); 7} 8
Would output to the console:
1[ 2 { 3 message: 'accessToken is required' 4 } 5]
Creating filters:
1const basicFilter: models.IBasicFilter = { 2 target: { 3 table: "Products", 4 column: "Version" 5 }, 6 operator: "In", 7 values: [ 8 1, 9 2, 10 3, 11 4 12 ] 13}; 14 15const advancedFilter: models.IAdvancedFilter = { 16 target: { 17 table: "Products", 18 column: "Name" 19 }, 20 logicalOperator: "Or", 21 conditions: [ 22 { 23 operator: "Contains", 24 value: "Power" 25 }, 26 { 27 operator: "Contains", 28 value: "Microsoft" 29 } 30 ] 31};
Or use the constructor methods:
1const advancedFilter = new models.AdvancedFilter( 2 { 3 table: "Products", 4 column: "Name" 5 }, 6 "Or", 7 { 8 operator: "Contains", 9 value: "Power" 10 }, 11 { 12 operator: "Contains", 13 value: "Microsoft" 14 } 15);
Dates should be formated using ISO 8601 standard. Example: 2016-09-08T00:15:46.861Z
This is how dates are naturally serialized to JSON:
1new Date().toJSON(); //=> 2016-09-08T00:15:46.861Z
An example filter using this Date format would look like the following:
1{ 2 "$schema": "http://powerbi.com/product/schema#advanced", 3 "target": { 4 "table": "Time", 5 "column": "Date" 6 }, 7 "logicalOperator": "And", 8 "conditions": [ 9 { 10 "operator": "GreaterThan", 11 "value": "2014-06-01T07:00:00.000Z" 12 } 13 ] 14}
No vulnerabilities found.
Reason
all changesets reviewed
Reason
security policy file detected
Details
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
30 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More