Socket
Socket
Sign inDemoInstall

powerbi-models

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

powerbi-models - npm Package Compare versions

Comparing version 0.2.2 to 0.3.0

.vscode/tasks.json

8

dist/models-noexports.d.ts

@@ -1,2 +0,2 @@

/*! powerbi-models v0.2.2 | (c) 2016 Microsoft Corporation MIT */
/*! powerbi-models v0.3.0 | (c) 2016 Microsoft Corporation MIT */
declare const advancedFilterSchema: any;

@@ -15,6 +15,4 @@ declare const filterSchema: any;

interface ISettings {
filter?: any;
filterPaneEnabled?: boolean;
pageName?: string;
pageNavigationEnabled?: boolean;
navContentPaneEnabled?: boolean;
}

@@ -26,2 +24,4 @@ declare const validateSettings: (x: any) => IError[];

settings?: ISettings;
pageName?: string;
filter?: any;
}

@@ -28,0 +28,0 @@ declare const validateLoad: (x: any) => IError[];

@@ -1,2 +0,2 @@

/*! powerbi-models v0.2.2 | (c) 2016 Microsoft Corporation MIT */
/*! powerbi-models v0.3.0 | (c) 2016 Microsoft Corporation MIT */
export declare const advancedFilterSchema: any;

@@ -15,6 +15,4 @@ export declare const filterSchema: any;

export interface ISettings {
filter?: any;
filterPaneEnabled?: boolean;
pageName?: string;
pageNavigationEnabled?: boolean;
navContentPaneEnabled?: boolean;
}

@@ -26,2 +24,4 @@ export declare const validateSettings: (x: any) => IError[];

settings?: ISettings;
pageName?: string;
filter?: any;
}

@@ -28,0 +28,0 @@ export declare const validateLoad: (x: any) => IError[];

@@ -1,2 +0,2 @@

/*! powerbi-models v0.2.2 | (c) 2016 Microsoft Corporation MIT */
/*! powerbi-models v0.3.0 | (c) 2016 Microsoft Corporation MIT */
(function webpackUniversalModuleDefinition(root, factory) {

@@ -357,2 +357,20 @@ if(typeof exports === 'object' && typeof module === 'object')

"$ref": "#settings"
},
"pageName": {
"type": "string",
"messages": {
"type": "pageName must be a string"
}
},
"filter": {
"type": "object",
"oneOf": [
{
"$ref": "#valueFilter"
},
{
"$ref": "#advancedFilter"
}
],
"invalidMessage": "filter property is invalid"
}

@@ -380,14 +398,6 @@ },

}
},
"displayName": {
"type": "string",
"messages": {
"type": "displayName must be a string",
"required": "displayName is required"
}
}
},
"required": [
"name",
"displayName"
"name"
]

@@ -437,14 +447,2 @@ };

"properties": {
"filter": {
"type": "object",
"oneOf": [
{
"$ref": "#valueFilter"
},
{
"$ref": "#advancedFilter"
}
],
"invalidMessage": "filter property is invalid"
},
"filterPaneEnabled": {

@@ -456,12 +454,6 @@ "type": "boolean",

},
"pageName": {
"type": "string",
"messages": {
"type": "pageName must be a string"
}
},
"pageNavigationEnabled": {
"navContentPaneEnabled": {
"type": "boolean",
"messages": {
"type": "pageNavigationEnabled must be a boolean"
"type": "navContentPaneEnabled must be a boolean"
}

@@ -468,0 +460,0 @@ }

@@ -1,2 +0,2 @@

/*! powerbi-models v0.2.2 | (c) 2016 Microsoft Corporation MIT */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["powerbi-models"]=t():e["powerbi-models"]=t()}(this,function(){return function(e){function t(i){if(r[i])return r[i].exports;var n=r[i]={exports:{},id:i,loaded:!1};return e[i].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){function i(e){return e.message||(e.message=e.path+" is invalid. Not meeting "+e.keyword+" constraint"),delete e.path,delete e.keyword,e}function n(e,t){return function(r){var n=f(e,t),o=n(r);return o?void 0:n.errors.map(i)}}function o(e){return void 0!==e.table&&void 0!==e.measure}function a(e){return void 0!==e.table&&void 0!==e.column}function s(e){return void 0!==e.table&&void 0!==e.hierarchy&&void 0!==e.hierarchyLevel}var c=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)};t.advancedFilterSchema=r(1),t.filterSchema=r(2),t.loadSchema=r(3),t.pageSchema=r(4),t.pageTargetSchema=r(5),t.settingsSchema=r(6),t.targetSchema=r(7),t.valueFilterSchema=r(8),t.visualTargetSchema=r(9);var f=r(10);t.validateSettings=n(t.settingsSchema,{schemas:{valueFilter:t.valueFilterSchema,advancedFilter:t.advancedFilterSchema}}),t.validateLoad=n(t.loadSchema,{schemas:{settings:t.settingsSchema,valueFilter:t.valueFilterSchema,advancedFilter:t.advancedFilterSchema}}),t.validateTarget=n(t.targetSchema),t.validatePage=n(t.pageSchema),t.validateFilter=n(t.filterSchema,{schemas:{valueFilter:t.valueFilterSchema,advancedFilter:t.advancedFilterSchema}}),t.isMeasure=o,t.isColumn=a,t.isHierarchy=s;var p=function(){function e(e){this.target=e}return e.prototype.toJSON=function(){return{$schema:this.schemaUrl,target:this.target}},e}();t.Filter=p;var u=function(e){function t(r,i){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];if(e.call(this,r),this.operator=i,this.schemaUrl=t.schemaUrl,0===n.length)throw new Error("values must be a non-empty array. You passed: "+n);Array.isArray(n[0])?this.values=n[0]:this.values=n}return c(t,e),t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.operator=this.operator,t.values=this.values,t},t.schemaUrl="http://powerbi.com/product/schema#basic",t}(p);t.ValueFilter=u;var m=function(e){function t(r,i){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];if(e.call(this,r),this.schemaUrl=t.schemaUrl,"string"!=typeof i||0===i.length)throw new Error("logicalOperator must be a valid operator, You passed: "+i);if(this.logicalOperator=i,0===n.length)throw new Error("conditions must be a non-empty array. You passed: "+n);if(n.length>2)throw new Error("AdvancedFilters may not have more than two conditions. You passed: "+n.length);Array.isArray(n[0])?this.conditions=n[0]:this.conditions=n}return c(t,e),t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.logicalOperator=this.logicalOperator,t.conditions=this.conditions,t},t.schemaUrl="http://powerbi.com/product/schema#advanced",t}(p);t.AdvancedFilter=m},function(e,t){e.exports={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{target:{oneOf:[{type:"object",properties:{table:{type:"string"},column:{type:"string"}},required:["table","column"]},{type:"object",properties:{table:{type:"string"},hierarchy:{type:"string"},hierarchyLevel:{type:"string"}},required:["table","hierarchy","hierarchyLevel"]},{type:"object",properties:{table:{type:"string"},measure:{type:"string"}},required:["table","measure"]}]},logicalOperator:{type:"string"},conditions:{type:"array",items:{type:"object",properties:{value:{type:"string"},operator:{type:"string"}},required:["value","operator"]}}},required:["target","logicalOperator","conditions"]}},function(e,t){e.exports={$schema:"http://json-schema.org/draft-04/schema#",oneOf:[{$ref:"#valueFilter"},{$ref:"#advancedFilter"}],invalidMessage:"filter is invalid"}},function(e,t){e.exports={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{accessToken:{type:"string",messages:{type:"accessToken must be a string",required:"accessToken is required"},invalidMessage:"accessToken property is invalid"},id:{type:"string",messages:{type:"id must be a string",required:"id is required"},invalidMessage:"id property is invalid"},settings:{$ref:"#settings"}},required:["accessToken","id"]}},function(e,t){e.exports={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{name:{type:"string",messages:{type:"name must be a string",required:"name is required"}},displayName:{type:"string",messages:{type:"displayName must be a string",required:"displayName is required"}}},required:["name","displayName"]}},function(e,t){e.exports={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{type:{type:"string","enum":["page"],messages:{type:"type must be a string","enum":"type must be 'page'",required:"type is required"}},name:{type:"string",messages:{type:"name must be a string",required:"name is required"}}},required:["type","name"]}},function(e,t){e.exports={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{filter:{type:"object",oneOf:[{$ref:"#valueFilter"},{$ref:"#advancedFilter"}],invalidMessage:"filter property is invalid"},filterPaneEnabled:{type:"boolean",messages:{type:"filterPaneEnabled must be a boolean"}},pageName:{type:"string",messages:{type:"pageName must be a string"}},pageNavigationEnabled:{type:"boolean",messages:{type:"pageNavigationEnabled must be a boolean"}}}}},function(e,t){e.exports={$schema:"http://json-schema.org/draft-04/schema#",oneOf:[{$ref:"#pageTarget"},{$ref:"#visualTarget"}]}},function(e,t){e.exports={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{target:{type:"object",properties:{table:{type:"string"},column:{type:"string"},hierarchy:{type:"string"},hierarchyLevel:{type:"string"},measure:{type:"string"}},required:["table"]},operator:{type:"string"},values:{type:"array",items:{type:"string"}}},required:["target","operator","values"]}},function(e,t){e.exports={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{type:{type:"string","enum":["visual"],messages:{type:"type must be a string","enum":"type must be 'visual'",required:"type is required"}},id:{type:"string",messages:{type:"id must be a string",required:"id is required"}}},required:["type","id"]}},function(e,t,r){e.exports=r(11)},function(e,t,r){(function(t){"use strict";function i(e){var t=e instanceof RegExp?e.toString():new RegExp(e).toString();return x?(t=t.substr(1,t.length-2),t="/"+t.replace(g,"\\$&")+"/"):t}function n(e,t){return y.lastIndex=0,y.test(t)?e+"."+t:e+'["'+t+'"]'}function o(e){var t=Object.prototype.toString.call(e);return t.substr(8,t.length-9).toLowerCase()}function a(e){return(0|e)===e}function s(e){var t,r,i=Object.keys(e),n=[],o={};for(r=0;r<i.length;r++)t=q[i[r]],t&&(t.type?(o[t.type]||(o[t.type]=[]),o[t.type].push(t)):n.push(t));return n.concat(Object.keys(o).reduce(function(e,t){return e.concat(o[t])},[]))}function c(e){var t=e.replace(h,"$1");return isNaN(+t)?'"'===t[0]?'[\\"'+t.substr(1,t.length-2)+'\\"]':'." + '+t+' + "':"."+t}function f(e){return'"'+e.replace(d,c).substr(5)+'"'}function p(e){var t,r,i=e,n=o(e);if("object"===n){i={};for(t in e)i[t]=p(e[t])}else if("array"===n)for(i=[],r=0;r<e.length;r++)i[r]=p(e[r]);else{if("regexp"===n)return new RegExp(e);if("date"===n)return new Date(e.toJSON())}return i}function u(){this.objects=[],this.properties=[]}function m(e,t,r,i,n){var a,s,c,f,l;if("object"!==o(e))return t;if(e=i.resolve(e),void 0===t&&e.hasOwnProperty("default")&&(t=p(e["default"])),a=o(t),"object"===a&&"object"===o(e.properties)){for(c in e.properties)s=m(e.properties[c],t[c],r,i),void 0!==s&&(t[c]=s);for(c in t)c in e.properties||e.additionalProperties!==!1&&(r!==!1||e.additionalProperties)||(n?n.mark(t,c):delete t[c])}else if("array"===a&&e.items){if("array"===o(e.items))for(f=0;f<e.items.length;f++)s=m(e.items[f],t[f],r,i),(void 0!==s||f<t.length)&&(t[f]=s);else if(t.length)for(f=0;f<t.length;f++)t[f]=m(e.items,t[f],r,i)}else if("array"===o(e.allOf)&&e.allOf.length){for(l=new u,f=0;f<e.allOf.length;f++)t=m(e.allOf[f],t,r,i,l);l.deleteDuplicates(),l.dispose()}return t}function l(e,t){function r(e){var t,r=u.resolve(e),i=e.$ref,o=h[i];return o||(o=h[i]={key:d(),func:function(e){return t(e)}},t=n(r),Object.defineProperty(o.func,"errors",{get:function(){return t.errors}}),g[o.key]=o.func),"refs."+o.key}function n(e){function n(e){var t=d();return c.def(t,e),t}function o(e,a,p){function u(r,i){var n,o=e,s=i&&a.properties&&a.properties[i]&&a.properties[i].requiredMessage||a.invalidMessage;s||(s=i&&a.properties&&a.properties[i]&&a.properties[i].messages&&a.properties[i].messages[r]||a.messages&&a.messages[r]),e.indexOf("[")>-1?(o=f(e),i&&(o=o?o+' + ".'+i+'"':i),c("errors.push({")("path: "+o+", ")('keyword: "'+r+'"'+(s?",":"")),s&&c('message: "'+s+'"'),c("})")):(n=d(),o=o.substr(5),i&&(o=o?o+"."+i:i),g[n]={path:o,keyword:r},s&&(g[n].message=s),c("errors.push(refs."+n+")")),p||t.greedy||c("return (validate.errors = errors) && false")}var m,l,h,v,b,x,j,O,A;if(void 0!==a.$ref)return l=r(a),h=f(e),v=n(0),void c("if (!"+l+"("+e+")) {")("if ("+l+".errors) {")("errors.push.apply(errors, "+l+".errors)")("for ("+v+" = 0; "+v+" < "+l+".errors.length; "+v+"++) {")("if ("+l+".errors["+v+"].path) {")("errors[errors.length - "+l+".errors.length + "+v+"].path = "+h+' + "." + '+l+".errors["+v+"].path")("} else {")("errors[errors.length - "+l+".errors.length + "+v+"].path = "+h)("}")("}")("}")("}");for(m={path:e,schema:a,code:c,declare:n,validate:o,error:u,noFailFast:p},j=s(a),A=0;A<j.length;A++)O=j[A],O.type&&b!==O.type&&(b&&c("}"),b=O.type,c("if ("+w[O.type](e)+") {")),O(m);b&&c("}"),a.format&&t.formats&&(x=t.formats[a.format],x&&("string"==typeof x||x instanceof RegExp?(c("if (!("+i(x)+").test("+m.path+")) {"),u("format"),c("}")):"function"==typeof x&&((y.formats||(y.formats={}))[a.format]=x,(y.schemas||(y.schemas={}))[a.format]=a,c('if (!formats["'+a.format+'"]('+m.path+', schemas["'+a.format+'"])) {'),u("format"),c("}"))))}var c=j("validate","data")("var errors = []");return o("data",e),c("return (validate.errors = errors) && errors.length === 0"),a=c.compile(y),a.errors=[],a.build=function(t,r){return m(e,r&&r.copy===!1?t:p(t),r&&r.additionalProperties,u)},a}if("object"!==o(e))throw new Error(v);t=t||{};var a,c=t.missing$Ref||!1,u=new F(e,t.schemas,c),l=0,d=function(){return"i"+l++},h={},g={errors:[]},y={equal:O,unique:A,refs:g};return n(e)}var d=/\[.+?\]/g,h=/\[?(.*?)?\]/,g=/[\/]/g,y=/^[a-z_$][0-9a-z]*$/gi,v="jsen: invalid schema object",b="object"==typeof window&&!!window.navigator,x="object"==typeof t&&"v0"===t.version.split(".")[0],j=r(13),O=r(14),A=r(15),F=r(16),$=r(18),w={},q={};w["null"]=function(e){return e+" === null"},w["boolean"]=function(e){return"typeof "+e+' === "boolean"'},w.string=function(e){return"typeof "+e+' === "string"'},w.number=function(e){return"typeof "+e+' === "number"'},w.integer=function(e){return"typeof "+e+' === "number" && !('+e+" % 1)"},w.array=function(e){return e+" !== undefined && Array.isArray("+e+")"},w.object=function(e){return e+" !== undefined && typeof "+e+' === "object" && '+e+" !== null && !Array.isArray("+e+")"},w.date=function(e){return e+" !== undefined && "+e+" instanceof Date"},q.type=function(e){if(e.schema.type){var t=Array.isArray(e.schema.type)?e.schema.type:[e.schema.type],r=t.map(function(t){return w[t]?w[t](e.path)||"true":"true"}).join(" || ");r&&(e.code("if (!("+r+")) {"),e.error("type"),e.code("}"))}},q["enum"]=function(e){var t,r,i,n=e.schema["enum"],o=[];if(Array.isArray(n)){for(i=0;i<n.length;i++)t=n[i],r=typeof t,null===t||["boolean","number","string"].indexOf(r)>-1?"string"===r?o.push(e.path+' === "'+t+'"'):o.push(e.path+" === "+t):o.push("equal("+e.path+", "+JSON.stringify(t)+")");e.code("if (!("+o.join(" || ")+")) {"),e.error("enum"),e.code("}")}},q.minimum=function(e){"number"==typeof e.schema.minimum&&(e.code("if ("+e.path+" < "+e.schema.minimum+") {"),e.error("minimum"),e.code("}"))},q.exclusiveMinimum=function(e){e.schema.exclusiveMinimum===!0&&"number"==typeof e.schema.minimum&&(e.code("if ("+e.path+" === "+e.schema.minimum+") {"),e.error("exclusiveMinimum"),e.code("}"))},q.maximum=function(e){"number"==typeof e.schema.maximum&&(e.code("if ("+e.path+" > "+e.schema.maximum+") {"),e.error("maximum"),e.code("}"))},q.exclusiveMaximum=function(e){e.schema.exclusiveMaximum===!0&&"number"==typeof e.schema.maximum&&(e.code("if ("+e.path+" === "+e.schema.maximum+") {"),e.error("exclusiveMaximum"),e.code("}"))},q.multipleOf=function(e){if("number"==typeof e.schema.multipleOf){var t=e.schema.multipleOf,r=t.toString().length-t.toFixed(0).length-1,i=r>0?Math.pow(10,r):1,n=e.path;r>0?e.code("if (+(Math.round(("+n+" * "+i+') + "e+" + '+r+') + "e-" + '+r+") % "+t*i+" !== 0) {"):e.code("if ((("+n+" * "+i+") % "+t*i+") !== 0) {"),e.error("multipleOf"),e.code("}")}},q.minLength=function(e){a(e.schema.minLength)&&(e.code("if ("+e.path+".length < "+e.schema.minLength+") {"),e.error("minLength"),e.code("}"))},q.maxLength=function(e){a(e.schema.maxLength)&&(e.code("if ("+e.path+".length > "+e.schema.maxLength+") {"),e.error("maxLength"),e.code("}"))},q.pattern=function(e){var t="string"==typeof e.schema.pattern?new RegExp(e.schema.pattern):e.schema.pattern;"regexp"===o(t)&&(e.code("if (!("+i(t)+").test("+e.path+")) {"),e.error("pattern"),e.code("}"))},q.format=function(e){"string"==typeof e.schema.format&&$[e.schema.format]&&(e.code("if (!("+$[e.schema.format]+").test("+e.path+")) {"),e.error("format"),e.code("}"))},q.minItems=function(e){a(e.schema.minItems)&&(e.code("if ("+e.path+".length < "+e.schema.minItems+") {"),e.error("minItems"),e.code("}"))},q.maxItems=function(e){a(e.schema.maxItems)&&(e.code("if ("+e.path+".length > "+e.schema.maxItems+") {"),e.error("maxItems"),e.code("}"))},q.additionalItems=function(e){e.schema.additionalItems===!1&&Array.isArray(e.schema.items)&&(e.code("if ("+e.path+".length > "+e.schema.items.length+") {"),e.error("additionalItems"),e.code("}"))},q.uniqueItems=function(e){e.schema.uniqueItems&&(e.code("if (unique("+e.path+").length !== "+e.path+".length) {"),e.error("uniqueItems"),e.code("}"))},q.items=function(e){var t=e.declare(0),r=0;if("object"===o(e.schema.items))e.code("for ("+t+"; "+t+" < "+e.path+".length; "+t+"++) {"),e.validate(e.path+"["+t+"]",e.schema.items,e.noFailFast),e.code("}");else if(Array.isArray(e.schema.items)){for(;r<e.schema.items.length;r++)e.code("if ("+e.path+".length - 1 >= "+r+") {"),e.validate(e.path+"["+r+"]",e.schema.items[r],e.noFailFast),e.code("}");"object"===o(e.schema.additionalItems)&&(e.code("for ("+t+" = "+r+"; "+t+" < "+e.path+".length; "+t+"++) {"),e.validate(e.path+"["+t+"]",e.schema.additionalItems,e.noFailFast),e.code("}"))}},q.maxProperties=function(e){a(e.schema.maxProperties)&&(e.code("if (Object.keys("+e.path+").length > "+e.schema.maxProperties+") {"),e.error("maxProperties"),e.code("}"))},q.minProperties=function(e){a(e.schema.minProperties)&&(e.code("if (Object.keys("+e.path+").length < "+e.schema.minProperties+") {"),e.error("minProperties"),e.code("}"))},q.required=function(e){if(Array.isArray(e.schema.required))for(var t=0;t<e.schema.required.length;t++)e.code("if ("+n(e.path,e.schema.required[t])+" === undefined) {"),e.error("required",e.schema.required[t]),e.code("}")},q.properties=function(e){if(!e.validatedProperties){var t,r,i,a=e.schema.properties,s="object"===o(a)?Object.keys(a):[],c=e.schema.patternProperties,f="object"===o(c)?Object.keys(c):[],p=e.schema.additionalProperties,u=p===!1||"object"===o(p);if(s.length&&!f.length&&!u){for(r=0;r<s.length;r++)t=s[r],i=n(e.path,t),e.code("if ("+i+" !== undefined) {"),e.validate(i,a[t],e.noFailFast),e.code("}");e.validatedProperties=!0}}},q.patternProperties=q.additionalProperties=function(e){if(!e.validatedProperties){var t,r,a,s,c,f,p,u=e.schema.properties,m="object"===o(u)?Object.keys(u):[],l=e.schema.patternProperties,d="object"===o(l)?Object.keys(l):[],h=e.schema.additionalProperties,g=h===!1||"object"===o(h);if(m.length||d.length||g){for(t=e.declare("[]"),r=e.declare('""'),a=e.declare(0),g&&(s=e.declare(!1)),e.code(t+" = Object.keys("+e.path+")"),e.code("for ("+a+"; "+a+" < "+t+".length; "+a+"++) {")(r+" = "+t+"["+a+"]")("if ("+e.path+"["+r+"] === undefined) {")("continue")("}"),g&&e.code(s+" = false"),p=0;p<m.length;p++)c=m[p],e.code((p?"else ":"")+"if ("+r+' === "'+c+'") {'),g&&e.code(s+" = true"),e.validate(n(e.path,c),u[c],e.noFailFast),e.code("}");for(p=0;p<d.length;p++)f=d[p],e.code("if (("+i(f)+").test("+r+")) {"),g&&e.code(s+" = true"),e.validate(e.path+"["+r+"]",l[f],e.noFailFast),e.code("}");g&&(e.code("if (!"+s+") {"),h===!1?e.error("additionalProperties"):e.validate(e.path+"["+r+"]",h,e.noFailFast),e.code("}")),e.code("}"),e.validatedProperties=!0}}},q.dependencies=function(e){if("object"===o(e.schema.dependencies)){var t,r,i=0;for(t in e.schema.dependencies){if(r=e.schema.dependencies[t],e.code("if ("+n(e.path,t)+" !== undefined) {"),"object"===o(r))e.validate(e.path,r,e.noFailFast);else for(i;i<r.length;i++)e.code("if ("+n(e.path,r[i])+" === undefined) {"),e.error("dependencies",r[i]),e.code("}");e.code("}")}}},q.allOf=function(e){if(Array.isArray(e.schema.allOf))for(var t=0;t<e.schema.allOf.length;t++)e.validate(e.path,e.schema.allOf[t],e.noFailFast)},q.anyOf=function(e){if(Array.isArray(e.schema.anyOf)){var t=e.declare(0),r=e.declare(0),i=e.declare(!1),n=0;for(e.code(r+" = errors.length");n<e.schema.anyOf.length;n++)e.code("if (!"+i+") {"),e.code(t+" = errors.length"),e.validate(e.path,e.schema.anyOf[n],!0),e.code(i+" = errors.length === "+t)("}");e.code("if (!"+i+") {"),e.error("anyOf"),e.code("} else {")("errors.length = "+r)("}")}},q.oneOf=function(e){if(Array.isArray(e.schema.oneOf)){var t=e.declare(0),r=e.declare(0),i=e.declare(0),n=0;for(e.code(r+" = errors.length");n<e.schema.oneOf.length;n++)e.code(i+" = errors.length"),e.validate(e.path,e.schema.oneOf[n],!0),e.code("if (errors.length === "+i+") {")(t+"++")("}");e.code("if ("+t+" !== 1) {"),e.error("oneOf"),e.code("} else {")("errors.length = "+r)("}")}},q.not=function(e){if("object"===o(e.schema.not)){var t=e.declare(0);e.code(t+" = errors.length"),e.validate(e.path,e.schema.not,!0),e.code("if (errors.length === "+t+") {"),e.error("not"),e.code("} else {")("errors.length = "+t)("}")}},["minimum","exclusiveMinimum","maximum","exclusiveMaximum","multipleOf"].forEach(function(e){q[e].type="number"}),["minLength","maxLength","pattern","format"].forEach(function(e){q[e].type="string"}),["minItems","maxItems","additionalItems","uniqueItems","items"].forEach(function(e){q[e].type="array"}),["maxProperties","minProperties","required","properties","patternProperties","additionalProperties","dependencies"].forEach(function(e){q[e].type="object"}),u.prototype.mark=function(e,t){var r,i=this.objects.indexOf(e);return i<0?(this.objects.push(e),r={},r[t]=1,void this.properties.push(r)):(r=this.properties[i],void(r[t]=r[t]?r[t]+1:1))},u.prototype.deleteDuplicates=function(){var e,t;for(t=0;t<this.properties.length;t++)for(e in this.properties[t])this.properties[t][e]>1&&delete this.objects[t][e]},u.prototype.dispose=function(){this.objects.length=0,this.properties.length=0},l.browser=b,l.clone=p,l.equal=O,l.unique=A,l.resolve=F.resolvePointer,e.exports=l}).call(t,r(12))},function(e,t){function r(){u&&f&&(u=!1,f.length?p=f.concat(p):m=-1,p.length&&i())}function i(){if(!u){var e=a(r);u=!0;for(var t=p.length;t;){for(f=p,p=[];++m<t;)f&&f[m].run();m=-1,t=p.length}f=null,u=!1,s(e)}}function n(e,t){this.fun=e,this.array=t}function o(){}var a,s,c=e.exports={};!function(){try{a=setTimeout}catch(e){a=function(){throw new Error("setTimeout is not defined")}}try{s=clearTimeout}catch(e){s=function(){throw new Error("clearTimeout is not defined")}}}();var f,p=[],u=!1,m=-1;c.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];p.push(new n(e,t)),1!==p.length||u||a(i,0)},n.prototype.run=function(){this.fun.apply(null,this.array)},c.title="browser",c.browser=!0,c.env={},c.argv=[],c.version="",c.versions={},c.on=o,c.addListener=o,c.once=o,c.off=o,c.removeListener=o,c.removeAllListeners=o,c.emit=o,c.binding=function(e){throw new Error("process.binding is not supported")},c.cwd=function(){return"/"},c.chdir=function(e){throw new Error("process.chdir is not supported")},c.umask=function(){return 0}},function(e,t){"use strict";e.exports=function(){var e=arguments[0]||"",t=[].join.call([].slice.call(arguments,1),", "),r="",i="",n=1,o=" ",a="{[",s="}]",c=function(){return new Array(n+1).join(o)},f=function(e){r+=c()+e+"\n"},p=function(e){var t=e[0],r=e[e.length-1];return s.indexOf(t)>-1&&a.indexOf(r)>-1?(n--,f(e),n++):a.indexOf(r)>-1?(f(e),n++):s.indexOf(t)>-1?(n--,f(e)):f(e),p};return p.def=function(e,t){return i+=c()+"var "+e+(void 0!==t?" = "+t:"")+"\n",p},p.toSource=function(){return"function "+e+"("+t+") {\n"+i+"\n"+r+"\n}"},p.compile=function(e){var t="return ("+p.toSource()+")",r=e||{},i=Object.keys(r),n=i.map(function(e){return r[e]});return Function.apply(null,i.concat(t)).apply(null,n)},p}},function(e,t){"use strict";function r(e){var t=Object.prototype.toString.call(e);return t.substr(8,t.length-9).toLowerCase()}function i(e,t){var r,i,o=Object.keys(e).sort(),a=Object.keys(t).sort();if(!n(o,a))return!1;for(r=0;r<o.length;r++)if(i=o[r],!n(e[i],t[i]))return!1;return!0}function n(e,t){var o,a=typeof e,s=typeof t;if("object"===a&&(a=r(e)),"object"===s&&(s=r(t)),a!==s)return!1;if("object"===a)return i(e,t);if("regexp"===a)return e.toString()===t.toString();if("array"===a){if(e.length!==t.length)return!1;for(o=0;o<e.length;o++)if(!n(e[o],t[o]))return!1;return!0}return e===t}e.exports=n},function(e,t,r){"use strict";function i(e,t,r){for(var i=0,n=e.length;i<n;i++)if(r(e[i],t))return i;return-1}var n=r(14);e.exports=function(e){return e.filter(function(e,t,r){return i(r,e,n)===t})},e.exports.findIndex=i},function(e,t,r){"use strict";function i(e,t){if(!t.length)return e;var r,n=t.shift();e&&"object"==typeof e&&e.hasOwnProperty(n)&&(r=e[n]);{if(!t.length)return r;if(r&&"object"==typeof r)return i(r,t)}}function n(e){var t,r=e.indexOf("#");return 0!==r?[e]:(e=e.substr(r+1))?(t=e.split("/").map(function(e){return decodeURIComponent(e).replace(/~1/g,"/").replace(/~0/g,"~")}),"/"===e[0]&&t.shift(),t):[]}function o(e,t){if(e&&"object"==typeof e)return e.id===t?e:Object.keys(e).reduce(function(r,i){return r||o(e[i],t)},void 0)}function a(e){var t,r,i=Object.keys(e),n={};for(r=0;r<i.length;r++)t=i[r],n[t]=new s(e[t]);return n}function s(e,t,r){this.rootSchema=e,this.resolvedRootSchema=null,this.cache={},this.missing$Ref=r,this.resolvers=t&&"object"==typeof t?a(t):null}var c=r(17),f="jsen: invalid schema reference";s.prototype.resolveRef=function(e){var t,r,a,s=new Error(f+" "+e),p=this.rootSchema,u=this.resolvedRootSchema;if(!e||"string"!=typeof e)throw s;if(e===c.id&&(a=c),void 0===a&&u&&(a=o(u,e)),void 0===a&&(a=o(p,e)),void 0===a&&(r=n(e),u&&(a=i(u,r.slice(0))),void 0===a&&(a=i(p,r.slice(0)))),void 0===a&&r.length&&this.resolvers&&(t=i(this.resolvers,r),t&&(a=t.resolve(t.rootSchema))),void 0===a||"object"!=typeof a){if(!this.missing$Ref)throw s;a={}}return this.cache[e]===a?a:(this.cache[e]=a,void 0!==a.$ref&&(a=this.cache[e]=this.resolveRef(a.$ref)),a)},s.prototype.resolve=function(e){if(!e||"object"!=typeof e)return e;var t=e.$ref,r=this.cache[t];return void 0===t?e:void 0!==r?r:(r=this.resolveRef(t),e===this.rootSchema&&e!==r&&(this.resolvedRootSchema=r),r)},s.resolvePointer=function(e,t){return i(e,n(t))},e.exports=s},function(e,t){e.exports={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{"default":0}]},simpleTypes:{anyOf:[{"enum":["array","boolean","integer","null","number","object","string","any"]},{type:"string"}]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},"default":{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean","default":!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean","default":!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],"default":{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],"default":{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean","default":!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],"default":{}},definitions:{type:"object",additionalProperties:{$ref:"#"},"default":{}},properties:{type:"object",additionalProperties:{$ref:"#"},"default":{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},"default":{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},"enum":{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},"default":{}}},function(e,t){"use strict";var r={};r["date-time"]=/(\d\d\d\d)(-)?(\d\d)(-)?(\d\d)(T)?(\d\d)(:)?(\d\d)(:)?(\d\d)(\.\d+)?(Z|([+-])(\d\d)(:)?(\d\d))/,r.uri=/^([a-zA-Z][a-zA-Z0-9+-.]*:){0,1}\/\/[^\s]*$/,r.email=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,r.ipv4=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,r.ipv6=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|[fF][eE]80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::([fF]{4}(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,r.hostname=/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])(\.([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]))*$/,e.exports=r}])});
/*! powerbi-models v0.3.0 | (c) 2016 Microsoft Corporation MIT */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["powerbi-models"]=t():e["powerbi-models"]=t()}(this,function(){return function(e){function t(i){if(r[i])return r[i].exports;var n=r[i]={exports:{},id:i,loaded:!1};return e[i].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){function i(e){return e.message||(e.message=e.path+" is invalid. Not meeting "+e.keyword+" constraint"),delete e.path,delete e.keyword,e}function n(e,t){return function(r){var n=f(e,t),o=n(r);return o?void 0:n.errors.map(i)}}function o(e){return void 0!==e.table&&void 0!==e.measure}function a(e){return void 0!==e.table&&void 0!==e.column}function s(e){return void 0!==e.table&&void 0!==e.hierarchy&&void 0!==e.hierarchyLevel}var c=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)};t.advancedFilterSchema=r(1),t.filterSchema=r(2),t.loadSchema=r(3),t.pageSchema=r(4),t.pageTargetSchema=r(5),t.settingsSchema=r(6),t.targetSchema=r(7),t.valueFilterSchema=r(8),t.visualTargetSchema=r(9);var f=r(10);t.validateSettings=n(t.settingsSchema,{schemas:{valueFilter:t.valueFilterSchema,advancedFilter:t.advancedFilterSchema}}),t.validateLoad=n(t.loadSchema,{schemas:{settings:t.settingsSchema,valueFilter:t.valueFilterSchema,advancedFilter:t.advancedFilterSchema}}),t.validateTarget=n(t.targetSchema),t.validatePage=n(t.pageSchema),t.validateFilter=n(t.filterSchema,{schemas:{valueFilter:t.valueFilterSchema,advancedFilter:t.advancedFilterSchema}}),t.isMeasure=o,t.isColumn=a,t.isHierarchy=s;var u=function(){function e(e){this.target=e}return e.prototype.toJSON=function(){return{$schema:this.schemaUrl,target:this.target}},e}();t.Filter=u;var p=function(e){function t(r,i){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];if(e.call(this,r),this.operator=i,this.schemaUrl=t.schemaUrl,0===n.length)throw new Error("values must be a non-empty array. You passed: "+n);Array.isArray(n[0])?this.values=n[0]:this.values=n}return c(t,e),t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.operator=this.operator,t.values=this.values,t},t.schemaUrl="http://powerbi.com/product/schema#basic",t}(u);t.ValueFilter=p;var m=function(e){function t(r,i){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];if(e.call(this,r),this.schemaUrl=t.schemaUrl,"string"!=typeof i||0===i.length)throw new Error("logicalOperator must be a valid operator, You passed: "+i);if(this.logicalOperator=i,0===n.length)throw new Error("conditions must be a non-empty array. You passed: "+n);if(n.length>2)throw new Error("AdvancedFilters may not have more than two conditions. You passed: "+n.length);Array.isArray(n[0])?this.conditions=n[0]:this.conditions=n}return c(t,e),t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.logicalOperator=this.logicalOperator,t.conditions=this.conditions,t},t.schemaUrl="http://powerbi.com/product/schema#advanced",t}(u);t.AdvancedFilter=m},function(e,t){e.exports={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{target:{oneOf:[{type:"object",properties:{table:{type:"string"},column:{type:"string"}},required:["table","column"]},{type:"object",properties:{table:{type:"string"},hierarchy:{type:"string"},hierarchyLevel:{type:"string"}},required:["table","hierarchy","hierarchyLevel"]},{type:"object",properties:{table:{type:"string"},measure:{type:"string"}},required:["table","measure"]}]},logicalOperator:{type:"string"},conditions:{type:"array",items:{type:"object",properties:{value:{type:"string"},operator:{type:"string"}},required:["value","operator"]}}},required:["target","logicalOperator","conditions"]}},function(e,t){e.exports={$schema:"http://json-schema.org/draft-04/schema#",oneOf:[{$ref:"#valueFilter"},{$ref:"#advancedFilter"}],invalidMessage:"filter is invalid"}},function(e,t){e.exports={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{accessToken:{type:"string",messages:{type:"accessToken must be a string",required:"accessToken is required"},invalidMessage:"accessToken property is invalid"},id:{type:"string",messages:{type:"id must be a string",required:"id is required"},invalidMessage:"id property is invalid"},settings:{$ref:"#settings"},pageName:{type:"string",messages:{type:"pageName must be a string"}},filter:{type:"object",oneOf:[{$ref:"#valueFilter"},{$ref:"#advancedFilter"}],invalidMessage:"filter property is invalid"}},required:["accessToken","id"]}},function(e,t){e.exports={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{name:{type:"string",messages:{type:"name must be a string",required:"name is required"}}},required:["name"]}},function(e,t){e.exports={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{type:{type:"string","enum":["page"],messages:{type:"type must be a string","enum":"type must be 'page'",required:"type is required"}},name:{type:"string",messages:{type:"name must be a string",required:"name is required"}}},required:["type","name"]}},function(e,t){e.exports={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{filterPaneEnabled:{type:"boolean",messages:{type:"filterPaneEnabled must be a boolean"}},navContentPaneEnabled:{type:"boolean",messages:{type:"navContentPaneEnabled must be a boolean"}}}}},function(e,t){e.exports={$schema:"http://json-schema.org/draft-04/schema#",oneOf:[{$ref:"#pageTarget"},{$ref:"#visualTarget"}]}},function(e,t){e.exports={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{target:{type:"object",properties:{table:{type:"string"},column:{type:"string"},hierarchy:{type:"string"},hierarchyLevel:{type:"string"},measure:{type:"string"}},required:["table"]},operator:{type:"string"},values:{type:"array",items:{type:"string"}}},required:["target","operator","values"]}},function(e,t){e.exports={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{type:{type:"string","enum":["visual"],messages:{type:"type must be a string","enum":"type must be 'visual'",required:"type is required"}},id:{type:"string",messages:{type:"id must be a string",required:"id is required"}}},required:["type","id"]}},function(e,t,r){e.exports=r(11)},function(e,t,r){(function(t){"use strict";function i(e){var t=e instanceof RegExp?e.toString():new RegExp(e).toString();return x?(t=t.substr(1,t.length-2),t="/"+t.replace(y,"\\$&")+"/"):t}function n(e,t){return g.lastIndex=0,g.test(t)?e+"."+t:e+'["'+t+'"]'}function o(e){var t=Object.prototype.toString.call(e);return t.substr(8,t.length-9).toLowerCase()}function a(e){return(0|e)===e}function s(e){var t,r,i=Object.keys(e),n=[],o={};for(r=0;r<i.length;r++)t=q[i[r]],t&&(t.type?(o[t.type]||(o[t.type]=[]),o[t.type].push(t)):n.push(t));return n.concat(Object.keys(o).reduce(function(e,t){return e.concat(o[t])},[]))}function c(e){var t=e.replace(h,"$1");return isNaN(+t)?'"'===t[0]?'[\\"'+t.substr(1,t.length-2)+'\\"]':'." + '+t+' + "':"."+t}function f(e){return'"'+e.replace(d,c).substr(5)+'"'}function u(e){var t,r,i=e,n=o(e);if("object"===n){i={};for(t in e)i[t]=u(e[t])}else if("array"===n)for(i=[],r=0;r<e.length;r++)i[r]=u(e[r]);else{if("regexp"===n)return new RegExp(e);if("date"===n)return new Date(e.toJSON())}return i}function p(){this.objects=[],this.properties=[]}function m(e,t,r,i,n){var a,s,c,f,l;if("object"!==o(e))return t;if(e=i.resolve(e),void 0===t&&e.hasOwnProperty("default")&&(t=u(e["default"])),a=o(t),"object"===a&&"object"===o(e.properties)){for(c in e.properties)s=m(e.properties[c],t[c],r,i),void 0!==s&&(t[c]=s);for(c in t)c in e.properties||e.additionalProperties!==!1&&(r!==!1||e.additionalProperties)||(n?n.mark(t,c):delete t[c])}else if("array"===a&&e.items){if("array"===o(e.items))for(f=0;f<e.items.length;f++)s=m(e.items[f],t[f],r,i),(void 0!==s||f<t.length)&&(t[f]=s);else if(t.length)for(f=0;f<t.length;f++)t[f]=m(e.items,t[f],r,i)}else if("array"===o(e.allOf)&&e.allOf.length){for(l=new p,f=0;f<e.allOf.length;f++)t=m(e.allOf[f],t,r,i,l);l.deleteDuplicates(),l.dispose()}return t}function l(e,t){function r(e){var t,r=p.resolve(e),i=e.$ref,o=h[i];return o||(o=h[i]={key:d(),func:function(e){return t(e)}},t=n(r),Object.defineProperty(o.func,"errors",{get:function(){return t.errors}}),y[o.key]=o.func),"refs."+o.key}function n(e){function n(e){var t=d();return c.def(t,e),t}function o(e,a,u){function p(r,i){var n,o=e,s=i&&a.properties&&a.properties[i]&&a.properties[i].requiredMessage||a.invalidMessage;s||(s=i&&a.properties&&a.properties[i]&&a.properties[i].messages&&a.properties[i].messages[r]||a.messages&&a.messages[r]),e.indexOf("[")>-1?(o=f(e),i&&(o=o?o+' + ".'+i+'"':i),c("errors.push({")("path: "+o+", ")('keyword: "'+r+'"'+(s?",":"")),s&&c('message: "'+s+'"'),c("})")):(n=d(),o=o.substr(5),i&&(o=o?o+"."+i:i),y[n]={path:o,keyword:r},s&&(y[n].message=s),c("errors.push(refs."+n+")")),u||t.greedy||c("return (validate.errors = errors) && false")}var m,l,h,v,b,x,j,O,A;if(void 0!==a.$ref)return l=r(a),h=f(e),v=n(0),void c("if (!"+l+"("+e+")) {")("if ("+l+".errors) {")("errors.push.apply(errors, "+l+".errors)")("for ("+v+" = 0; "+v+" < "+l+".errors.length; "+v+"++) {")("if ("+l+".errors["+v+"].path) {")("errors[errors.length - "+l+".errors.length + "+v+"].path = "+h+' + "." + '+l+".errors["+v+"].path")("} else {")("errors[errors.length - "+l+".errors.length + "+v+"].path = "+h)("}")("}")("}")("}");for(m={path:e,schema:a,code:c,declare:n,validate:o,error:p,noFailFast:u},j=s(a),A=0;A<j.length;A++)O=j[A],O.type&&b!==O.type&&(b&&c("}"),b=O.type,c("if ("+w[O.type](e)+") {")),O(m);b&&c("}"),a.format&&t.formats&&(x=t.formats[a.format],x&&("string"==typeof x||x instanceof RegExp?(c("if (!("+i(x)+").test("+m.path+")) {"),p("format"),c("}")):"function"==typeof x&&((g.formats||(g.formats={}))[a.format]=x,(g.schemas||(g.schemas={}))[a.format]=a,c('if (!formats["'+a.format+'"]('+m.path+', schemas["'+a.format+'"])) {'),p("format"),c("}"))))}var c=j("validate","data")("var errors = []");return o("data",e),c("return (validate.errors = errors) && errors.length === 0"),a=c.compile(g),a.errors=[],a.build=function(t,r){return m(e,r&&r.copy===!1?t:u(t),r&&r.additionalProperties,p)},a}if("object"!==o(e))throw new Error(v);t=t||{};var a,c=t.missing$Ref||!1,p=new F(e,t.schemas,c),l=0,d=function(){return"i"+l++},h={},y={errors:[]},g={equal:O,unique:A,refs:y};return n(e)}var d=/\[.+?\]/g,h=/\[?(.*?)?\]/,y=/[\/]/g,g=/^[a-z_$][0-9a-z]*$/gi,v="jsen: invalid schema object",b="object"==typeof window&&!!window.navigator,x="object"==typeof t&&"v0"===t.version.split(".")[0],j=r(13),O=r(14),A=r(15),F=r(16),$=r(18),w={},q={};w["null"]=function(e){return e+" === null"},w["boolean"]=function(e){return"typeof "+e+' === "boolean"'},w.string=function(e){return"typeof "+e+' === "string"'},w.number=function(e){return"typeof "+e+' === "number"'},w.integer=function(e){return"typeof "+e+' === "number" && !('+e+" % 1)"},w.array=function(e){return e+" !== undefined && Array.isArray("+e+")"},w.object=function(e){return e+" !== undefined && typeof "+e+' === "object" && '+e+" !== null && !Array.isArray("+e+")"},w.date=function(e){return e+" !== undefined && "+e+" instanceof Date"},q.type=function(e){if(e.schema.type){var t=Array.isArray(e.schema.type)?e.schema.type:[e.schema.type],r=t.map(function(t){return w[t]?w[t](e.path)||"true":"true"}).join(" || ");r&&(e.code("if (!("+r+")) {"),e.error("type"),e.code("}"))}},q["enum"]=function(e){var t,r,i,n=e.schema["enum"],o=[];if(Array.isArray(n)){for(i=0;i<n.length;i++)t=n[i],r=typeof t,null===t||["boolean","number","string"].indexOf(r)>-1?"string"===r?o.push(e.path+' === "'+t+'"'):o.push(e.path+" === "+t):o.push("equal("+e.path+", "+JSON.stringify(t)+")");e.code("if (!("+o.join(" || ")+")) {"),e.error("enum"),e.code("}")}},q.minimum=function(e){"number"==typeof e.schema.minimum&&(e.code("if ("+e.path+" < "+e.schema.minimum+") {"),e.error("minimum"),e.code("}"))},q.exclusiveMinimum=function(e){e.schema.exclusiveMinimum===!0&&"number"==typeof e.schema.minimum&&(e.code("if ("+e.path+" === "+e.schema.minimum+") {"),e.error("exclusiveMinimum"),e.code("}"))},q.maximum=function(e){"number"==typeof e.schema.maximum&&(e.code("if ("+e.path+" > "+e.schema.maximum+") {"),e.error("maximum"),e.code("}"))},q.exclusiveMaximum=function(e){e.schema.exclusiveMaximum===!0&&"number"==typeof e.schema.maximum&&(e.code("if ("+e.path+" === "+e.schema.maximum+") {"),e.error("exclusiveMaximum"),e.code("}"))},q.multipleOf=function(e){if("number"==typeof e.schema.multipleOf){var t=e.schema.multipleOf,r=t.toString().length-t.toFixed(0).length-1,i=r>0?Math.pow(10,r):1,n=e.path;r>0?e.code("if (+(Math.round(("+n+" * "+i+') + "e+" + '+r+') + "e-" + '+r+") % "+t*i+" !== 0) {"):e.code("if ((("+n+" * "+i+") % "+t*i+") !== 0) {"),e.error("multipleOf"),e.code("}")}},q.minLength=function(e){a(e.schema.minLength)&&(e.code("if ("+e.path+".length < "+e.schema.minLength+") {"),e.error("minLength"),e.code("}"))},q.maxLength=function(e){a(e.schema.maxLength)&&(e.code("if ("+e.path+".length > "+e.schema.maxLength+") {"),e.error("maxLength"),e.code("}"))},q.pattern=function(e){var t="string"==typeof e.schema.pattern?new RegExp(e.schema.pattern):e.schema.pattern;"regexp"===o(t)&&(e.code("if (!("+i(t)+").test("+e.path+")) {"),e.error("pattern"),e.code("}"))},q.format=function(e){"string"==typeof e.schema.format&&$[e.schema.format]&&(e.code("if (!("+$[e.schema.format]+").test("+e.path+")) {"),e.error("format"),e.code("}"))},q.minItems=function(e){a(e.schema.minItems)&&(e.code("if ("+e.path+".length < "+e.schema.minItems+") {"),e.error("minItems"),e.code("}"))},q.maxItems=function(e){a(e.schema.maxItems)&&(e.code("if ("+e.path+".length > "+e.schema.maxItems+") {"),e.error("maxItems"),e.code("}"))},q.additionalItems=function(e){e.schema.additionalItems===!1&&Array.isArray(e.schema.items)&&(e.code("if ("+e.path+".length > "+e.schema.items.length+") {"),e.error("additionalItems"),e.code("}"))},q.uniqueItems=function(e){e.schema.uniqueItems&&(e.code("if (unique("+e.path+").length !== "+e.path+".length) {"),e.error("uniqueItems"),e.code("}"))},q.items=function(e){var t=e.declare(0),r=0;if("object"===o(e.schema.items))e.code("for ("+t+"; "+t+" < "+e.path+".length; "+t+"++) {"),e.validate(e.path+"["+t+"]",e.schema.items,e.noFailFast),e.code("}");else if(Array.isArray(e.schema.items)){for(;r<e.schema.items.length;r++)e.code("if ("+e.path+".length - 1 >= "+r+") {"),e.validate(e.path+"["+r+"]",e.schema.items[r],e.noFailFast),e.code("}");"object"===o(e.schema.additionalItems)&&(e.code("for ("+t+" = "+r+"; "+t+" < "+e.path+".length; "+t+"++) {"),e.validate(e.path+"["+t+"]",e.schema.additionalItems,e.noFailFast),e.code("}"))}},q.maxProperties=function(e){a(e.schema.maxProperties)&&(e.code("if (Object.keys("+e.path+").length > "+e.schema.maxProperties+") {"),e.error("maxProperties"),e.code("}"))},q.minProperties=function(e){a(e.schema.minProperties)&&(e.code("if (Object.keys("+e.path+").length < "+e.schema.minProperties+") {"),e.error("minProperties"),e.code("}"))},q.required=function(e){if(Array.isArray(e.schema.required))for(var t=0;t<e.schema.required.length;t++)e.code("if ("+n(e.path,e.schema.required[t])+" === undefined) {"),e.error("required",e.schema.required[t]),e.code("}")},q.properties=function(e){if(!e.validatedProperties){var t,r,i,a=e.schema.properties,s="object"===o(a)?Object.keys(a):[],c=e.schema.patternProperties,f="object"===o(c)?Object.keys(c):[],u=e.schema.additionalProperties,p=u===!1||"object"===o(u);if(s.length&&!f.length&&!p){for(r=0;r<s.length;r++)t=s[r],i=n(e.path,t),e.code("if ("+i+" !== undefined) {"),e.validate(i,a[t],e.noFailFast),e.code("}");e.validatedProperties=!0}}},q.patternProperties=q.additionalProperties=function(e){if(!e.validatedProperties){var t,r,a,s,c,f,u,p=e.schema.properties,m="object"===o(p)?Object.keys(p):[],l=e.schema.patternProperties,d="object"===o(l)?Object.keys(l):[],h=e.schema.additionalProperties,y=h===!1||"object"===o(h);if(m.length||d.length||y){for(t=e.declare("[]"),r=e.declare('""'),a=e.declare(0),y&&(s=e.declare(!1)),e.code(t+" = Object.keys("+e.path+")"),e.code("for ("+a+"; "+a+" < "+t+".length; "+a+"++) {")(r+" = "+t+"["+a+"]")("if ("+e.path+"["+r+"] === undefined) {")("continue")("}"),y&&e.code(s+" = false"),u=0;u<m.length;u++)c=m[u],e.code((u?"else ":"")+"if ("+r+' === "'+c+'") {'),y&&e.code(s+" = true"),e.validate(n(e.path,c),p[c],e.noFailFast),e.code("}");for(u=0;u<d.length;u++)f=d[u],e.code("if (("+i(f)+").test("+r+")) {"),y&&e.code(s+" = true"),e.validate(e.path+"["+r+"]",l[f],e.noFailFast),e.code("}");y&&(e.code("if (!"+s+") {"),h===!1?e.error("additionalProperties"):e.validate(e.path+"["+r+"]",h,e.noFailFast),e.code("}")),e.code("}"),e.validatedProperties=!0}}},q.dependencies=function(e){if("object"===o(e.schema.dependencies)){var t,r,i=0;for(t in e.schema.dependencies){if(r=e.schema.dependencies[t],e.code("if ("+n(e.path,t)+" !== undefined) {"),"object"===o(r))e.validate(e.path,r,e.noFailFast);else for(i;i<r.length;i++)e.code("if ("+n(e.path,r[i])+" === undefined) {"),e.error("dependencies",r[i]),e.code("}");e.code("}")}}},q.allOf=function(e){if(Array.isArray(e.schema.allOf))for(var t=0;t<e.schema.allOf.length;t++)e.validate(e.path,e.schema.allOf[t],e.noFailFast)},q.anyOf=function(e){if(Array.isArray(e.schema.anyOf)){var t=e.declare(0),r=e.declare(0),i=e.declare(!1),n=0;for(e.code(r+" = errors.length");n<e.schema.anyOf.length;n++)e.code("if (!"+i+") {"),e.code(t+" = errors.length"),e.validate(e.path,e.schema.anyOf[n],!0),e.code(i+" = errors.length === "+t)("}");e.code("if (!"+i+") {"),e.error("anyOf"),e.code("} else {")("errors.length = "+r)("}")}},q.oneOf=function(e){if(Array.isArray(e.schema.oneOf)){var t=e.declare(0),r=e.declare(0),i=e.declare(0),n=0;for(e.code(r+" = errors.length");n<e.schema.oneOf.length;n++)e.code(i+" = errors.length"),e.validate(e.path,e.schema.oneOf[n],!0),e.code("if (errors.length === "+i+") {")(t+"++")("}");e.code("if ("+t+" !== 1) {"),e.error("oneOf"),e.code("} else {")("errors.length = "+r)("}")}},q.not=function(e){if("object"===o(e.schema.not)){var t=e.declare(0);e.code(t+" = errors.length"),e.validate(e.path,e.schema.not,!0),e.code("if (errors.length === "+t+") {"),e.error("not"),e.code("} else {")("errors.length = "+t)("}")}},["minimum","exclusiveMinimum","maximum","exclusiveMaximum","multipleOf"].forEach(function(e){q[e].type="number"}),["minLength","maxLength","pattern","format"].forEach(function(e){q[e].type="string"}),["minItems","maxItems","additionalItems","uniqueItems","items"].forEach(function(e){q[e].type="array"}),["maxProperties","minProperties","required","properties","patternProperties","additionalProperties","dependencies"].forEach(function(e){q[e].type="object"}),p.prototype.mark=function(e,t){var r,i=this.objects.indexOf(e);return i<0?(this.objects.push(e),r={},r[t]=1,void this.properties.push(r)):(r=this.properties[i],void(r[t]=r[t]?r[t]+1:1))},p.prototype.deleteDuplicates=function(){var e,t;for(t=0;t<this.properties.length;t++)for(e in this.properties[t])this.properties[t][e]>1&&delete this.objects[t][e]},p.prototype.dispose=function(){this.objects.length=0,this.properties.length=0},l.browser=b,l.clone=u,l.equal=O,l.unique=A,l.resolve=F.resolvePointer,e.exports=l}).call(t,r(12))},function(e,t){function r(){p&&f&&(p=!1,f.length?u=f.concat(u):m=-1,u.length&&i())}function i(){if(!p){var e=a(r);p=!0;for(var t=u.length;t;){for(f=u,u=[];++m<t;)f&&f[m].run();m=-1,t=u.length}f=null,p=!1,s(e)}}function n(e,t){this.fun=e,this.array=t}function o(){}var a,s,c=e.exports={};!function(){try{a=setTimeout}catch(e){a=function(){throw new Error("setTimeout is not defined")}}try{s=clearTimeout}catch(e){s=function(){throw new Error("clearTimeout is not defined")}}}();var f,u=[],p=!1,m=-1;c.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new n(e,t)),1!==u.length||p||a(i,0)},n.prototype.run=function(){this.fun.apply(null,this.array)},c.title="browser",c.browser=!0,c.env={},c.argv=[],c.version="",c.versions={},c.on=o,c.addListener=o,c.once=o,c.off=o,c.removeListener=o,c.removeAllListeners=o,c.emit=o,c.binding=function(e){throw new Error("process.binding is not supported")},c.cwd=function(){return"/"},c.chdir=function(e){throw new Error("process.chdir is not supported")},c.umask=function(){return 0}},function(e,t){"use strict";e.exports=function(){var e=arguments[0]||"",t=[].join.call([].slice.call(arguments,1),", "),r="",i="",n=1,o=" ",a="{[",s="}]",c=function(){return new Array(n+1).join(o)},f=function(e){r+=c()+e+"\n"},u=function(e){var t=e[0],r=e[e.length-1];return s.indexOf(t)>-1&&a.indexOf(r)>-1?(n--,f(e),n++):a.indexOf(r)>-1?(f(e),n++):s.indexOf(t)>-1?(n--,f(e)):f(e),u};return u.def=function(e,t){return i+=c()+"var "+e+(void 0!==t?" = "+t:"")+"\n",u},u.toSource=function(){return"function "+e+"("+t+") {\n"+i+"\n"+r+"\n}"},u.compile=function(e){var t="return ("+u.toSource()+")",r=e||{},i=Object.keys(r),n=i.map(function(e){return r[e]});return Function.apply(null,i.concat(t)).apply(null,n)},u}},function(e,t){"use strict";function r(e){var t=Object.prototype.toString.call(e);return t.substr(8,t.length-9).toLowerCase()}function i(e,t){var r,i,o=Object.keys(e).sort(),a=Object.keys(t).sort();if(!n(o,a))return!1;for(r=0;r<o.length;r++)if(i=o[r],!n(e[i],t[i]))return!1;return!0}function n(e,t){var o,a=typeof e,s=typeof t;if("object"===a&&(a=r(e)),"object"===s&&(s=r(t)),a!==s)return!1;if("object"===a)return i(e,t);if("regexp"===a)return e.toString()===t.toString();if("array"===a){if(e.length!==t.length)return!1;for(o=0;o<e.length;o++)if(!n(e[o],t[o]))return!1;return!0}return e===t}e.exports=n},function(e,t,r){"use strict";function i(e,t,r){for(var i=0,n=e.length;i<n;i++)if(r(e[i],t))return i;return-1}var n=r(14);e.exports=function(e){return e.filter(function(e,t,r){return i(r,e,n)===t})},e.exports.findIndex=i},function(e,t,r){"use strict";function i(e,t){if(!t.length)return e;var r,n=t.shift();e&&"object"==typeof e&&e.hasOwnProperty(n)&&(r=e[n]);{if(!t.length)return r;if(r&&"object"==typeof r)return i(r,t)}}function n(e){var t,r=e.indexOf("#");return 0!==r?[e]:(e=e.substr(r+1))?(t=e.split("/").map(function(e){return decodeURIComponent(e).replace(/~1/g,"/").replace(/~0/g,"~")}),"/"===e[0]&&t.shift(),t):[]}function o(e,t){if(e&&"object"==typeof e)return e.id===t?e:Object.keys(e).reduce(function(r,i){return r||o(e[i],t)},void 0)}function a(e){var t,r,i=Object.keys(e),n={};for(r=0;r<i.length;r++)t=i[r],n[t]=new s(e[t]);return n}function s(e,t,r){this.rootSchema=e,this.resolvedRootSchema=null,this.cache={},this.missing$Ref=r,this.resolvers=t&&"object"==typeof t?a(t):null}var c=r(17),f="jsen: invalid schema reference";s.prototype.resolveRef=function(e){var t,r,a,s=new Error(f+" "+e),u=this.rootSchema,p=this.resolvedRootSchema;if(!e||"string"!=typeof e)throw s;if(e===c.id&&(a=c),void 0===a&&p&&(a=o(p,e)),void 0===a&&(a=o(u,e)),void 0===a&&(r=n(e),p&&(a=i(p,r.slice(0))),void 0===a&&(a=i(u,r.slice(0)))),void 0===a&&r.length&&this.resolvers&&(t=i(this.resolvers,r),t&&(a=t.resolve(t.rootSchema))),void 0===a||"object"!=typeof a){if(!this.missing$Ref)throw s;a={}}return this.cache[e]===a?a:(this.cache[e]=a,void 0!==a.$ref&&(a=this.cache[e]=this.resolveRef(a.$ref)),a)},s.prototype.resolve=function(e){if(!e||"object"!=typeof e)return e;var t=e.$ref,r=this.cache[t];return void 0===t?e:void 0!==r?r:(r=this.resolveRef(t),e===this.rootSchema&&e!==r&&(this.resolvedRootSchema=r),r)},s.resolvePointer=function(e,t){return i(e,n(t))},e.exports=s},function(e,t){e.exports={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{"default":0}]},simpleTypes:{anyOf:[{"enum":["array","boolean","integer","null","number","object","string","any"]},{type:"string"}]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},"default":{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean","default":!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean","default":!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],"default":{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],"default":{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean","default":!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],"default":{}},definitions:{type:"object",additionalProperties:{$ref:"#"},"default":{}},properties:{type:"object",additionalProperties:{$ref:"#"},"default":{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},"default":{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},"enum":{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},"default":{}}},function(e,t){"use strict";var r={};r["date-time"]=/(\d\d\d\d)(-)?(\d\d)(-)?(\d\d)(T)?(\d\d)(:)?(\d\d)(:)?(\d\d)(\.\d+)?(Z|([+-])(\d\d)(:)?(\d\d))/,r.uri=/^([a-zA-Z][a-zA-Z0-9+-.]*:){0,1}\/\/[^\s]*$/,r.email=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,r.ipv4=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,r.ipv6=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|[fF][eE]80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::([fF]{4}(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,r.hostname=/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])(\.([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]))*$/,e.exports=r}])});
{
"name": "powerbi-models",
"version": "0.2.2",
"version": "0.3.0",
"description": "Contains JavaScript &amp; 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.",

@@ -5,0 +5,0 @@ "main": "dist/models.js",

@@ -5,3 +5,3 @@ # powerbi-models

For each model there is a TypeScript interface, a json schema definitions, and a validation function to ensure and object is valid.
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.

@@ -8,0 +8,0 @@ ## Getting Started

@@ -55,6 +55,4 @@ declare var require: Function;

export interface ISettings {
filter?: any;
filterPaneEnabled?: boolean;
pageName?: string;
pageNavigationEnabled?: boolean;
navContentPaneEnabled?: boolean;
}

@@ -73,2 +71,4 @@

settings?: ISettings;
pageName?: string;
filter?: any;
}

@@ -75,0 +75,0 @@

@@ -23,2 +23,20 @@ {

"$ref": "#settings"
},
"pageName": {
"type": "string",
"messages": {
"type": "pageName must be a string"
}
},
"filter": {
"type": "object",
"oneOf": [
{
"$ref": "#valueFilter"
},
{
"$ref": "#advancedFilter"
}
],
"invalidMessage": "filter property is invalid"
}

@@ -25,0 +43,0 @@ },

@@ -11,15 +11,7 @@ {

}
},
"displayName": {
"type": "string",
"messages": {
"type": "displayName must be a string",
"required": "displayName is required"
}
}
},
"required": [
"name",
"displayName"
"name"
]
}

@@ -5,14 +5,2 @@ {

"properties": {
"filter": {
"type": "object",
"oneOf": [
{
"$ref": "#valueFilter"
},
{
"$ref": "#advancedFilter"
}
],
"invalidMessage": "filter property is invalid"
},
"filterPaneEnabled": {

@@ -24,12 +12,6 @@ "type": "boolean",

},
"pageName": {
"type": "string",
"messages": {
"type": "pageName must be a string"
}
},
"pageNavigationEnabled": {
"navContentPaneEnabled": {
"type": "boolean",
"messages": {
"type": "pageNavigationEnabled must be a boolean"
"type": "navContentPaneEnabled must be a boolean"
}

@@ -36,0 +18,0 @@ }

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc