querycraft
Advanced tools
Comparing version 0.0.5 to 0.0.6
var typedoc = typedoc || {}; | ||
typedoc.search = typedoc.search || {}; | ||
typedoc.search.data = {"kinds":{"1":"External module","64":"Function","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal","262144":"Accessor","4194304":"Type alias"},"rows":[{"id":0,"kind":1,"name":"\"Query\"","url":"modules/_query_.html","classes":"tsd-kind-external-module"},{"id":1,"kind":256,"name":"IQuery","url":"interfaces/_query_.iquery.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"Query\""},{"id":2,"kind":128,"name":"AbstractQueryBuilder","url":"classes/_query_.abstractquerybuilder.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"Query\""},{"id":3,"kind":262144,"name":"data","url":"classes/_query_.abstractquerybuilder.html#data","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-protected","parent":"\"Query\".AbstractQueryBuilder"},{"id":4,"kind":2048,"name":"where","url":"classes/_query_.abstractquerybuilder.html#where","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Query\".AbstractQueryBuilder"},{"id":5,"kind":2048,"name":"getFieldIds","url":"classes/_query_.abstractquerybuilder.html#getfieldids","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Query\".AbstractQueryBuilder"},{"id":6,"kind":2048,"name":"getFieldCondition","url":"classes/_query_.abstractquerybuilder.html#getfieldcondition","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Query\".AbstractQueryBuilder"},{"id":7,"kind":2048,"name":"removeFieldCondition","url":"classes/_query_.abstractquerybuilder.html#removefieldcondition","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Query\".AbstractQueryBuilder"},{"id":8,"kind":2048,"name":"mapFieldConditions","url":"classes/_query_.abstractquerybuilder.html#mapfieldconditions","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter","parent":"\"Query\".AbstractQueryBuilder"},{"id":9,"kind":128,"name":"QueryBuilder","url":"classes/_query_.querybuilder.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"Query\""},{"id":10,"kind":1024,"name":"data","url":"classes/_query_.querybuilder.html#data","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Query\".QueryBuilder"},{"id":11,"kind":65536,"name":"__type","url":"classes/_query_.querybuilder.html#data.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"\"Query\".QueryBuilder.data"},{"id":12,"kind":2048,"name":"fromJSON","url":"classes/_query_.querybuilder.html#fromjson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"\"Query\".QueryBuilder"},{"id":13,"kind":2048,"name":"toJSON","url":"classes/_query_.querybuilder.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Query\".QueryBuilder"},{"id":14,"kind":2048,"name":"where","url":"classes/_query_.querybuilder.html#where","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"Query\".QueryBuilder"},{"id":15,"kind":2048,"name":"getFieldIds","url":"classes/_query_.querybuilder.html#getfieldids","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"Query\".QueryBuilder"},{"id":16,"kind":2048,"name":"getFieldCondition","url":"classes/_query_.querybuilder.html#getfieldcondition","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"Query\".QueryBuilder"},{"id":17,"kind":2048,"name":"removeFieldCondition","url":"classes/_query_.querybuilder.html#removefieldcondition","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"Query\".QueryBuilder"},{"id":18,"kind":2048,"name":"mapFieldConditions","url":"classes/_query_.querybuilder.html#mapfieldconditions","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"\"Query\".QueryBuilder"},{"id":19,"kind":4194304,"name":"Value","url":"modules/_query_.html#value","classes":"tsd-kind-type-alias tsd-parent-kind-external-module tsd-is-not-exported","parent":"\"Query\""},{"id":20,"kind":64,"name":"where","url":"modules/_query_.html#where","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"Query\""},{"id":21,"kind":1,"name":"\"Conditions\"","url":"modules/_conditions_.html","classes":"tsd-kind-external-module"},{"id":22,"kind":256,"name":"IBaseCondition","url":"interfaces/_conditions_.ibasecondition.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":23,"kind":1024,"name":"op","url":"interfaces/_conditions_.ibasecondition.html#op","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"Conditions\".IBaseCondition"},{"id":24,"kind":1024,"name":"value","url":"interfaces/_conditions_.ibasecondition.html#value","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"Conditions\".IBaseCondition"},{"id":25,"kind":256,"name":"IMatchCondition","url":"interfaces/_conditions_.imatchcondition.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":26,"kind":1024,"name":"op","url":"interfaces/_conditions_.imatchcondition.html#op","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"\"Conditions\".IMatchCondition"},{"id":27,"kind":1024,"name":"value","url":"interfaces/_conditions_.imatchcondition.html#value","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"\"Conditions\".IMatchCondition"},{"id":28,"kind":256,"name":"IEqualityCondition","url":"interfaces/_conditions_.iequalitycondition.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":29,"kind":1024,"name":"op","url":"interfaces/_conditions_.iequalitycondition.html#op","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"\"Conditions\".IEqualityCondition"},{"id":30,"kind":1024,"name":"value","url":"interfaces/_conditions_.iequalitycondition.html#value","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"\"Conditions\".IEqualityCondition"},{"id":31,"kind":256,"name":"IOrderCondition","url":"interfaces/_conditions_.iordercondition.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":32,"kind":1024,"name":"op","url":"interfaces/_conditions_.iordercondition.html#op","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"\"Conditions\".IOrderCondition"},{"id":33,"kind":1024,"name":"value","url":"interfaces/_conditions_.iordercondition.html#value","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"\"Conditions\".IOrderCondition"},{"id":34,"kind":256,"name":"IStringCondition","url":"interfaces/_conditions_.istringcondition.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":35,"kind":1024,"name":"op","url":"interfaces/_conditions_.istringcondition.html#op","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"\"Conditions\".IStringCondition"},{"id":36,"kind":1024,"name":"value","url":"interfaces/_conditions_.istringcondition.html#value","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"\"Conditions\".IStringCondition"},{"id":37,"kind":256,"name":"IQueryCondition","url":"interfaces/_conditions_.iquerycondition.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":38,"kind":1024,"name":"op","url":"interfaces/_conditions_.iquerycondition.html#op","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"\"Conditions\".IQueryCondition"},{"id":39,"kind":1024,"name":"value","url":"interfaces/_conditions_.iquerycondition.html#value","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"\"Conditions\".IQueryCondition"},{"id":40,"kind":128,"name":"BaseCondition","url":"classes/_conditions_.basecondition.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":41,"kind":1024,"name":"op","url":"classes/_conditions_.basecondition.html#op","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"Conditions\".BaseCondition"},{"id":42,"kind":1024,"name":"value","url":"classes/_conditions_.basecondition.html#value","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"Conditions\".BaseCondition"},{"id":43,"kind":512,"name":"constructor","url":"classes/_conditions_.basecondition.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"Conditions\".BaseCondition"},{"id":44,"kind":2048,"name":"toJSON","url":"classes/_conditions_.basecondition.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Conditions\".BaseCondition"},{"id":45,"kind":128,"name":"MatchCondition","url":"classes/_conditions_.matchcondition.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":46,"kind":1024,"name":"op","url":"classes/_conditions_.matchcondition.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".MatchCondition"},{"id":47,"kind":1024,"name":"value","url":"classes/_conditions_.matchcondition.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".MatchCondition"},{"id":48,"kind":2048,"name":"toJSON","url":"classes/_conditions_.matchcondition.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".MatchCondition"},{"id":49,"kind":512,"name":"constructor","url":"classes/_conditions_.matchcondition.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".MatchCondition"},{"id":50,"kind":128,"name":"ALL","url":"classes/_conditions_.all.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":51,"kind":1024,"name":"op","url":"classes/_conditions_.all.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".ALL"},{"id":52,"kind":1024,"name":"value","url":"classes/_conditions_.all.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".ALL"},{"id":53,"kind":2048,"name":"toJSON","url":"classes/_conditions_.all.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"\"Conditions\".ALL"},{"id":54,"kind":512,"name":"constructor","url":"classes/_conditions_.all.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".ALL"},{"id":55,"kind":128,"name":"ANY","url":"classes/_conditions_.any.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":56,"kind":1024,"name":"op","url":"classes/_conditions_.any.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".ANY"},{"id":57,"kind":1024,"name":"value","url":"classes/_conditions_.any.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".ANY"},{"id":58,"kind":2048,"name":"toJSON","url":"classes/_conditions_.any.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"\"Conditions\".ANY"},{"id":59,"kind":512,"name":"constructor","url":"classes/_conditions_.any.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".ANY"},{"id":60,"kind":128,"name":"EqualityCondition","url":"classes/_conditions_.equalitycondition.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":61,"kind":1024,"name":"op","url":"classes/_conditions_.equalitycondition.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".EqualityCondition"},{"id":62,"kind":1024,"name":"value","url":"classes/_conditions_.equalitycondition.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".EqualityCondition"},{"id":63,"kind":512,"name":"constructor","url":"classes/_conditions_.equalitycondition.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".EqualityCondition"},{"id":64,"kind":2048,"name":"toJSON","url":"classes/_conditions_.equalitycondition.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".EqualityCondition"},{"id":65,"kind":128,"name":"EQ","url":"classes/_conditions_.eq.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":66,"kind":1024,"name":"op","url":"classes/_conditions_.eq.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".EQ"},{"id":67,"kind":1024,"name":"value","url":"classes/_conditions_.eq.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".EQ"},{"id":68,"kind":512,"name":"constructor","url":"classes/_conditions_.eq.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".EQ"},{"id":69,"kind":2048,"name":"toJSON","url":"classes/_conditions_.eq.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".EQ"},{"id":70,"kind":128,"name":"NEQ","url":"classes/_conditions_.neq.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":71,"kind":1024,"name":"op","url":"classes/_conditions_.neq.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".NEQ"},{"id":72,"kind":1024,"name":"value","url":"classes/_conditions_.neq.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".NEQ"},{"id":73,"kind":512,"name":"constructor","url":"classes/_conditions_.neq.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".NEQ"},{"id":74,"kind":2048,"name":"toJSON","url":"classes/_conditions_.neq.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".NEQ"},{"id":75,"kind":128,"name":"OrderCondition","url":"classes/_conditions_.ordercondition.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":76,"kind":1024,"name":"op","url":"classes/_conditions_.ordercondition.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".OrderCondition"},{"id":77,"kind":1024,"name":"value","url":"classes/_conditions_.ordercondition.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".OrderCondition"},{"id":78,"kind":512,"name":"constructor","url":"classes/_conditions_.ordercondition.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".OrderCondition"},{"id":79,"kind":2048,"name":"toJSON","url":"classes/_conditions_.ordercondition.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".OrderCondition"},{"id":80,"kind":128,"name":"LT","url":"classes/_conditions_.lt.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":81,"kind":1024,"name":"op","url":"classes/_conditions_.lt.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".LT"},{"id":82,"kind":1024,"name":"value","url":"classes/_conditions_.lt.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".LT"},{"id":83,"kind":512,"name":"constructor","url":"classes/_conditions_.lt.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".LT"},{"id":84,"kind":2048,"name":"toJSON","url":"classes/_conditions_.lt.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".LT"},{"id":85,"kind":128,"name":"GT","url":"classes/_conditions_.gt.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":86,"kind":1024,"name":"op","url":"classes/_conditions_.gt.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".GT"},{"id":87,"kind":1024,"name":"value","url":"classes/_conditions_.gt.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".GT"},{"id":88,"kind":512,"name":"constructor","url":"classes/_conditions_.gt.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".GT"},{"id":89,"kind":2048,"name":"toJSON","url":"classes/_conditions_.gt.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".GT"},{"id":90,"kind":128,"name":"LTE","url":"classes/_conditions_.lte.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":91,"kind":1024,"name":"op","url":"classes/_conditions_.lte.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".LTE"},{"id":92,"kind":1024,"name":"value","url":"classes/_conditions_.lte.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".LTE"},{"id":93,"kind":512,"name":"constructor","url":"classes/_conditions_.lte.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".LTE"},{"id":94,"kind":2048,"name":"toJSON","url":"classes/_conditions_.lte.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".LTE"},{"id":95,"kind":128,"name":"GTE","url":"classes/_conditions_.gte.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":96,"kind":1024,"name":"op","url":"classes/_conditions_.gte.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".GTE"},{"id":97,"kind":1024,"name":"value","url":"classes/_conditions_.gte.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".GTE"},{"id":98,"kind":512,"name":"constructor","url":"classes/_conditions_.gte.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".GTE"},{"id":99,"kind":2048,"name":"toJSON","url":"classes/_conditions_.gte.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".GTE"},{"id":100,"kind":128,"name":"StringCondition","url":"classes/_conditions_.stringcondition.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":101,"kind":1024,"name":"op","url":"classes/_conditions_.stringcondition.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".StringCondition"},{"id":102,"kind":1024,"name":"value","url":"classes/_conditions_.stringcondition.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".StringCondition"},{"id":103,"kind":512,"name":"constructor","url":"classes/_conditions_.stringcondition.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".StringCondition"},{"id":104,"kind":2048,"name":"toJSON","url":"classes/_conditions_.stringcondition.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".StringCondition"},{"id":105,"kind":128,"name":"PREFIX","url":"classes/_conditions_.prefix.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":106,"kind":1024,"name":"op","url":"classes/_conditions_.prefix.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".PREFIX"},{"id":107,"kind":1024,"name":"value","url":"classes/_conditions_.prefix.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".PREFIX"},{"id":108,"kind":512,"name":"constructor","url":"classes/_conditions_.prefix.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".PREFIX"},{"id":109,"kind":2048,"name":"toJSON","url":"classes/_conditions_.prefix.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".PREFIX"},{"id":110,"kind":128,"name":"QueryCondition","url":"classes/_conditions_.querycondition.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":111,"kind":1024,"name":"op","url":"classes/_conditions_.querycondition.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".QueryCondition"},{"id":112,"kind":1024,"name":"value","url":"classes/_conditions_.querycondition.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".QueryCondition"},{"id":113,"kind":2048,"name":"toJSON","url":"classes/_conditions_.querycondition.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".QueryCondition"},{"id":114,"kind":512,"name":"constructor","url":"classes/_conditions_.querycondition.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".QueryCondition"},{"id":115,"kind":128,"name":"FIND","url":"classes/_conditions_.find.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":116,"kind":1024,"name":"op","url":"classes/_conditions_.find.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".FIND"},{"id":117,"kind":1024,"name":"value","url":"classes/_conditions_.find.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"\"Conditions\".FIND"},{"id":118,"kind":2048,"name":"toJSON","url":"classes/_conditions_.find.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"\"Conditions\".FIND"},{"id":119,"kind":512,"name":"constructor","url":"classes/_conditions_.find.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".FIND"},{"id":120,"kind":128,"name":"NFIND","url":"classes/_conditions_.nfind.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":121,"kind":1024,"name":"op","url":"classes/_conditions_.nfind.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"\"Conditions\".NFIND"},{"id":122,"kind":1024,"name":"value","url":"classes/_conditions_.nfind.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"\"Conditions\".NFIND"},{"id":123,"kind":2048,"name":"toJSON","url":"classes/_conditions_.nfind.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"\"Conditions\".NFIND"},{"id":124,"kind":512,"name":"constructor","url":"classes/_conditions_.nfind.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"\"Conditions\".NFIND"},{"id":125,"kind":4194304,"name":"ICondition","url":"modules/_conditions_.html#icondition","classes":"tsd-kind-type-alias tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":126,"kind":4194304,"name":"Condition","url":"modules/_conditions_.html#condition","classes":"tsd-kind-type-alias tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":127,"kind":4194304,"name":"Value","url":"modules/_conditions_.html#value","classes":"tsd-kind-type-alias tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":128,"kind":64,"name":"all","url":"modules/_conditions_.html#all-1","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":129,"kind":64,"name":"any","url":"modules/_conditions_.html#any-1","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":130,"kind":64,"name":"eq","url":"modules/_conditions_.html#eq-1","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":131,"kind":64,"name":"neq","url":"modules/_conditions_.html#neq-1","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":132,"kind":64,"name":"lt","url":"modules/_conditions_.html#lt-1","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":133,"kind":64,"name":"gt","url":"modules/_conditions_.html#gt-1","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":134,"kind":64,"name":"lte","url":"modules/_conditions_.html#lte-1","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":135,"kind":64,"name":"gte","url":"modules/_conditions_.html#gte-1","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":136,"kind":64,"name":"prefix","url":"modules/_conditions_.html#prefix-1","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":137,"kind":64,"name":"find","url":"modules/_conditions_.html#find-1","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":138,"kind":64,"name":"nfind","url":"modules/_conditions_.html#nfind-1","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":139,"kind":64,"name":"conditionFromJSON","url":"modules/_conditions_.html#conditionfromjson","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"Conditions\""},{"id":140,"kind":1,"name":"\"Filter\"","url":"modules/_filter_.html","classes":"tsd-kind-external-module"},{"id":141,"kind":256,"name":"IFilter","url":"interfaces/_filter_.ifilter.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"Filter\""},{"id":142,"kind":1024,"name":"statements","url":"interfaces/_filter_.ifilter.html#statements","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"Filter\".IFilter"},{"id":143,"kind":1024,"name":"sortFieldId","url":"interfaces/_filter_.ifilter.html#sortfieldid","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"Filter\".IFilter"},{"id":144,"kind":1024,"name":"sortDir","url":"interfaces/_filter_.ifilter.html#sortdir","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"Filter\".IFilter"},{"id":145,"kind":1024,"name":"sortFieldSubId","url":"interfaces/_filter_.ifilter.html#sortfieldsubid","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"Filter\".IFilter"},{"id":146,"kind":1024,"name":"sortFieldSubProp","url":"interfaces/_filter_.ifilter.html#sortfieldsubprop","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"Filter\".IFilter"},{"id":147,"kind":1024,"name":"limit","url":"interfaces/_filter_.ifilter.html#limit","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"Filter\".IFilter"},{"id":148,"kind":256,"name":"Datum","url":"interfaces/_filter_.datum.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"Filter\""},{"id":149,"kind":128,"name":"FilterBuilder","url":"classes/_filter_.filterbuilder.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"Filter\""},{"id":150,"kind":1024,"name":"limit","url":"classes/_filter_.filterbuilder.html#limit","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"Filter\".FilterBuilder"},{"id":151,"kind":2048,"name":"clone","url":"classes/_filter_.filterbuilder.html#clone","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Filter\".FilterBuilder"},{"id":152,"kind":1024,"name":"_statements","url":"classes/_filter_.filterbuilder.html#_statements","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"Filter\".FilterBuilder"},{"id":153,"kind":262144,"name":"data","url":"classes/_filter_.filterbuilder.html#data","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-overwrite tsd-is-protected","parent":"\"Filter\".FilterBuilder"},{"id":154,"kind":262144,"name":"statements","url":"classes/_filter_.filterbuilder.html#statements","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"\"Filter\".FilterBuilder"},{"id":155,"kind":2048,"name":"or","url":"classes/_filter_.filterbuilder.html#or","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Filter\".FilterBuilder"},{"id":156,"kind":2048,"name":"and","url":"classes/_filter_.filterbuilder.html#and","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Filter\".FilterBuilder"},{"id":157,"kind":2048,"name":"getStatementBuilders","url":"classes/_filter_.filterbuilder.html#getstatementbuilders","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Filter\".FilterBuilder"},{"id":158,"kind":2048,"name":"setStatementBuilders","url":"classes/_filter_.filterbuilder.html#setstatementbuilders","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Filter\".FilterBuilder"},{"id":159,"kind":2048,"name":"addStatementBuilder","url":"classes/_filter_.filterbuilder.html#addstatementbuilder","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Filter\".FilterBuilder"},{"id":160,"kind":2048,"name":"fromJSON","url":"classes/_filter_.filterbuilder.html#fromjson","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"\"Filter\".FilterBuilder"},{"id":161,"kind":2048,"name":"getLimit","url":"classes/_filter_.filterbuilder.html#getlimit","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Filter\".FilterBuilder"},{"id":162,"kind":2048,"name":"setLimit","url":"classes/_filter_.filterbuilder.html#setlimit","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Filter\".FilterBuilder"},{"id":163,"kind":1024,"name":"sortFieldId","url":"classes/_filter_.filterbuilder.html#sortfieldid","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"Filter\".FilterBuilder"},{"id":164,"kind":1024,"name":"sortFieldSubId","url":"classes/_filter_.filterbuilder.html#sortfieldsubid","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"Filter\".FilterBuilder"},{"id":165,"kind":1024,"name":"sortFieldSubProp","url":"classes/_filter_.filterbuilder.html#sortfieldsubprop","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"Filter\".FilterBuilder"},{"id":166,"kind":2048,"name":"getSortFieldId","url":"classes/_filter_.filterbuilder.html#getsortfieldid","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Filter\".FilterBuilder"},{"id":167,"kind":2048,"name":"getSortFieldSubId","url":"classes/_filter_.filterbuilder.html#getsortfieldsubid","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Filter\".FilterBuilder"},{"id":168,"kind":2048,"name":"getSortFieldSubProp","url":"classes/_filter_.filterbuilder.html#getsortfieldsubprop","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Filter\".FilterBuilder"},{"id":169,"kind":2048,"name":"setSortFieldId","url":"classes/_filter_.filterbuilder.html#setsortfieldid","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Filter\".FilterBuilder"},{"id":170,"kind":1024,"name":"sortDir","url":"classes/_filter_.filterbuilder.html#sortdir","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"Filter\".FilterBuilder"},{"id":171,"kind":2048,"name":"getSortDirection","url":"classes/_filter_.filterbuilder.html#getsortdirection","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Filter\".FilterBuilder"},{"id":172,"kind":2048,"name":"setSortDirection","url":"classes/_filter_.filterbuilder.html#setsortdirection","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Filter\".FilterBuilder"},{"id":173,"kind":2048,"name":"toJSON","url":"classes/_filter_.filterbuilder.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Filter\".FilterBuilder"},{"id":174,"kind":2048,"name":"toQueryString","url":"classes/_filter_.filterbuilder.html#toquerystring","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Filter\".FilterBuilder"},{"id":175,"kind":2048,"name":"toString","url":"classes/_filter_.filterbuilder.html#tostring","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Filter\".FilterBuilder"},{"id":176,"kind":2048,"name":"createPaginatedFilter","url":"classes/_filter_.filterbuilder.html#createpaginatedfilter","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"Filter\".FilterBuilder"},{"id":177,"kind":2048,"name":"where","url":"classes/_filter_.filterbuilder.html#where","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"Filter\".FilterBuilder"},{"id":178,"kind":2048,"name":"getFieldIds","url":"classes/_filter_.filterbuilder.html#getfieldids","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"Filter\".FilterBuilder"},{"id":179,"kind":2048,"name":"getFieldCondition","url":"classes/_filter_.filterbuilder.html#getfieldcondition","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"Filter\".FilterBuilder"},{"id":180,"kind":2048,"name":"removeFieldCondition","url":"classes/_filter_.filterbuilder.html#removefieldcondition","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"\"Filter\".FilterBuilder"},{"id":181,"kind":2048,"name":"mapFieldConditions","url":"classes/_filter_.filterbuilder.html#mapfieldconditions","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"\"Filter\".FilterBuilder"},{"id":182,"kind":4194304,"name":"SortDirection","url":"modules/_filter_.html#sortdirection","classes":"tsd-kind-type-alias tsd-parent-kind-external-module","parent":"\"Filter\""},{"id":183,"kind":4194304,"name":"Statement","url":"modules/_filter_.html#statement","classes":"tsd-kind-type-alias tsd-parent-kind-external-module","parent":"\"Filter\""},{"id":184,"kind":4194304,"name":"StatementBuilder","url":"modules/_filter_.html#statementbuilder","classes":"tsd-kind-type-alias tsd-parent-kind-external-module","parent":"\"Filter\""},{"id":185,"kind":1,"name":"\"index\"","url":"modules/_index_.html","classes":"tsd-kind-external-module"}]}; | ||
typedoc.search.data = {"kinds":{"64":"Function","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal","262144":"Accessor","4194304":"Type alias"},"rows":[{"id":0,"kind":256,"name":"QueryJSON","url":"interfaces/queryjson.html","classes":"tsd-kind-interface"},{"id":1,"kind":128,"name":"AbstractQueryBuilder","url":"classes/abstractquerybuilder.html","classes":"tsd-kind-class"},{"id":2,"kind":262144,"name":"data","url":"classes/abstractquerybuilder.html#data","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-protected","parent":"AbstractQueryBuilder"},{"id":3,"kind":2048,"name":"where","url":"classes/abstractquerybuilder.html#where","classes":"tsd-kind-method tsd-parent-kind-class","parent":"AbstractQueryBuilder"},{"id":4,"kind":2048,"name":"getFieldIds","url":"classes/abstractquerybuilder.html#getfieldids","classes":"tsd-kind-method tsd-parent-kind-class","parent":"AbstractQueryBuilder"},{"id":5,"kind":2048,"name":"getFieldCondition","url":"classes/abstractquerybuilder.html#getfieldcondition","classes":"tsd-kind-method tsd-parent-kind-class","parent":"AbstractQueryBuilder"},{"id":6,"kind":2048,"name":"removeFieldCondition","url":"classes/abstractquerybuilder.html#removefieldcondition","classes":"tsd-kind-method tsd-parent-kind-class","parent":"AbstractQueryBuilder"},{"id":7,"kind":2048,"name":"mapFieldConditions","url":"classes/abstractquerybuilder.html#mapfieldconditions","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter","parent":"AbstractQueryBuilder"},{"id":8,"kind":128,"name":"QueryBuilder","url":"classes/querybuilder.html","classes":"tsd-kind-class"},{"id":9,"kind":1024,"name":"data","url":"classes/querybuilder.html#data","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"QueryBuilder"},{"id":10,"kind":65536,"name":"__type","url":"classes/querybuilder.html#data.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"QueryBuilder.data"},{"id":11,"kind":2048,"name":"fromJSON","url":"classes/querybuilder.html#fromjson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"QueryBuilder"},{"id":12,"kind":2048,"name":"toJSON","url":"classes/querybuilder.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class","parent":"QueryBuilder"},{"id":13,"kind":2048,"name":"where","url":"classes/querybuilder.html#where","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"QueryBuilder"},{"id":14,"kind":2048,"name":"getFieldIds","url":"classes/querybuilder.html#getfieldids","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"QueryBuilder"},{"id":15,"kind":2048,"name":"getFieldCondition","url":"classes/querybuilder.html#getfieldcondition","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"QueryBuilder"},{"id":16,"kind":2048,"name":"removeFieldCondition","url":"classes/querybuilder.html#removefieldcondition","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"QueryBuilder"},{"id":17,"kind":2048,"name":"mapFieldConditions","url":"classes/querybuilder.html#mapfieldconditions","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"QueryBuilder"},{"id":18,"kind":4194304,"name":"Value","url":"globals.html#value","classes":"tsd-kind-type-alias tsd-is-not-exported"},{"id":19,"kind":64,"name":"where","url":"globals.html#where","classes":"tsd-kind-function"},{"id":20,"kind":256,"name":"BaseConditionJSON","url":"interfaces/baseconditionjson.html","classes":"tsd-kind-interface tsd-is-private"},{"id":21,"kind":1024,"name":"op","url":"interfaces/baseconditionjson.html#op","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"BaseConditionJSON"},{"id":22,"kind":1024,"name":"value","url":"interfaces/baseconditionjson.html#value","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"BaseConditionJSON"},{"id":23,"kind":256,"name":"MatchConditionJSON","url":"interfaces/matchconditionjson.html","classes":"tsd-kind-interface tsd-is-private"},{"id":24,"kind":1024,"name":"op","url":"interfaces/matchconditionjson.html#op","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"MatchConditionJSON"},{"id":25,"kind":1024,"name":"value","url":"interfaces/matchconditionjson.html#value","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"MatchConditionJSON"},{"id":26,"kind":256,"name":"EqualityConditionJSON","url":"interfaces/equalityconditionjson.html","classes":"tsd-kind-interface tsd-is-private"},{"id":27,"kind":1024,"name":"op","url":"interfaces/equalityconditionjson.html#op","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"EqualityConditionJSON"},{"id":28,"kind":1024,"name":"value","url":"interfaces/equalityconditionjson.html#value","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"EqualityConditionJSON"},{"id":29,"kind":256,"name":"OrderConditionJSON","url":"interfaces/orderconditionjson.html","classes":"tsd-kind-interface tsd-is-private"},{"id":30,"kind":1024,"name":"op","url":"interfaces/orderconditionjson.html#op","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"OrderConditionJSON"},{"id":31,"kind":1024,"name":"value","url":"interfaces/orderconditionjson.html#value","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"OrderConditionJSON"},{"id":32,"kind":256,"name":"StringConditionJSON","url":"interfaces/stringconditionjson.html","classes":"tsd-kind-interface tsd-is-private"},{"id":33,"kind":1024,"name":"op","url":"interfaces/stringconditionjson.html#op","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"StringConditionJSON"},{"id":34,"kind":1024,"name":"value","url":"interfaces/stringconditionjson.html#value","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"StringConditionJSON"},{"id":35,"kind":256,"name":"QueryConditionJSON","url":"interfaces/queryconditionjson.html","classes":"tsd-kind-interface tsd-is-private"},{"id":36,"kind":1024,"name":"op","url":"interfaces/queryconditionjson.html#op","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"QueryConditionJSON"},{"id":37,"kind":1024,"name":"value","url":"interfaces/queryconditionjson.html#value","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"QueryConditionJSON"},{"id":38,"kind":128,"name":"BaseCondition","url":"classes/basecondition.html","classes":"tsd-kind-class tsd-is-private"},{"id":39,"kind":1024,"name":"op","url":"classes/basecondition.html#op","classes":"tsd-kind-property tsd-parent-kind-class","parent":"BaseCondition"},{"id":40,"kind":1024,"name":"value","url":"classes/basecondition.html#value","classes":"tsd-kind-property tsd-parent-kind-class","parent":"BaseCondition"},{"id":41,"kind":512,"name":"constructor","url":"classes/basecondition.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"BaseCondition"},{"id":42,"kind":2048,"name":"toJSON","url":"classes/basecondition.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class","parent":"BaseCondition"},{"id":43,"kind":128,"name":"MatchCondition","url":"classes/matchcondition.html","classes":"tsd-kind-class tsd-is-private"},{"id":44,"kind":1024,"name":"op","url":"classes/matchcondition.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"MatchCondition"},{"id":45,"kind":1024,"name":"value","url":"classes/matchcondition.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"MatchCondition"},{"id":46,"kind":2048,"name":"toJSON","url":"classes/matchcondition.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"MatchCondition"},{"id":47,"kind":512,"name":"constructor","url":"classes/matchcondition.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"MatchCondition"},{"id":48,"kind":128,"name":"AllCondition","url":"classes/allcondition.html","classes":"tsd-kind-class tsd-is-private"},{"id":49,"kind":1024,"name":"op","url":"classes/allcondition.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"AllCondition"},{"id":50,"kind":1024,"name":"value","url":"classes/allcondition.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"AllCondition"},{"id":51,"kind":2048,"name":"toJSON","url":"classes/allcondition.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"AllCondition"},{"id":52,"kind":512,"name":"constructor","url":"classes/allcondition.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"AllCondition"},{"id":53,"kind":128,"name":"AnyCondition","url":"classes/anycondition.html","classes":"tsd-kind-class tsd-is-private"},{"id":54,"kind":1024,"name":"op","url":"classes/anycondition.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"AnyCondition"},{"id":55,"kind":1024,"name":"value","url":"classes/anycondition.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"AnyCondition"},{"id":56,"kind":2048,"name":"toJSON","url":"classes/anycondition.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"AnyCondition"},{"id":57,"kind":512,"name":"constructor","url":"classes/anycondition.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"AnyCondition"},{"id":58,"kind":128,"name":"EqualityCondition","url":"classes/equalitycondition.html","classes":"tsd-kind-class tsd-is-private"},{"id":59,"kind":1024,"name":"op","url":"classes/equalitycondition.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"EqualityCondition"},{"id":60,"kind":1024,"name":"value","url":"classes/equalitycondition.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"EqualityCondition"},{"id":61,"kind":512,"name":"constructor","url":"classes/equalitycondition.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"EqualityCondition"},{"id":62,"kind":2048,"name":"toJSON","url":"classes/equalitycondition.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"EqualityCondition"},{"id":63,"kind":128,"name":"EqualsCondition","url":"classes/equalscondition.html","classes":"tsd-kind-class tsd-is-private"},{"id":64,"kind":1024,"name":"op","url":"classes/equalscondition.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"EqualsCondition"},{"id":65,"kind":1024,"name":"value","url":"classes/equalscondition.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"EqualsCondition"},{"id":66,"kind":512,"name":"constructor","url":"classes/equalscondition.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"EqualsCondition"},{"id":67,"kind":2048,"name":"toJSON","url":"classes/equalscondition.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"EqualsCondition"},{"id":68,"kind":128,"name":"NotEqualsCondition","url":"classes/notequalscondition.html","classes":"tsd-kind-class tsd-is-private"},{"id":69,"kind":1024,"name":"op","url":"classes/notequalscondition.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"NotEqualsCondition"},{"id":70,"kind":1024,"name":"value","url":"classes/notequalscondition.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"NotEqualsCondition"},{"id":71,"kind":512,"name":"constructor","url":"classes/notequalscondition.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"NotEqualsCondition"},{"id":72,"kind":2048,"name":"toJSON","url":"classes/notequalscondition.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"NotEqualsCondition"},{"id":73,"kind":128,"name":"OrderCondition","url":"classes/ordercondition.html","classes":"tsd-kind-class tsd-is-private"},{"id":74,"kind":1024,"name":"op","url":"classes/ordercondition.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"OrderCondition"},{"id":75,"kind":1024,"name":"value","url":"classes/ordercondition.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"OrderCondition"},{"id":76,"kind":512,"name":"constructor","url":"classes/ordercondition.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"OrderCondition"},{"id":77,"kind":2048,"name":"toJSON","url":"classes/ordercondition.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"OrderCondition"},{"id":78,"kind":128,"name":"LessThanCondition","url":"classes/lessthancondition.html","classes":"tsd-kind-class tsd-is-private"},{"id":79,"kind":1024,"name":"op","url":"classes/lessthancondition.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"LessThanCondition"},{"id":80,"kind":1024,"name":"value","url":"classes/lessthancondition.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"LessThanCondition"},{"id":81,"kind":512,"name":"constructor","url":"classes/lessthancondition.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"LessThanCondition"},{"id":82,"kind":2048,"name":"toJSON","url":"classes/lessthancondition.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"LessThanCondition"},{"id":83,"kind":128,"name":"GreaterThanCondition","url":"classes/greaterthancondition.html","classes":"tsd-kind-class tsd-is-private"},{"id":84,"kind":1024,"name":"op","url":"classes/greaterthancondition.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"GreaterThanCondition"},{"id":85,"kind":1024,"name":"value","url":"classes/greaterthancondition.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"GreaterThanCondition"},{"id":86,"kind":512,"name":"constructor","url":"classes/greaterthancondition.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"GreaterThanCondition"},{"id":87,"kind":2048,"name":"toJSON","url":"classes/greaterthancondition.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"GreaterThanCondition"},{"id":88,"kind":128,"name":"LessThanOrEqualCondition","url":"classes/lessthanorequalcondition.html","classes":"tsd-kind-class tsd-is-private"},{"id":89,"kind":1024,"name":"op","url":"classes/lessthanorequalcondition.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"LessThanOrEqualCondition"},{"id":90,"kind":1024,"name":"value","url":"classes/lessthanorequalcondition.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"LessThanOrEqualCondition"},{"id":91,"kind":512,"name":"constructor","url":"classes/lessthanorequalcondition.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"LessThanOrEqualCondition"},{"id":92,"kind":2048,"name":"toJSON","url":"classes/lessthanorequalcondition.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"LessThanOrEqualCondition"},{"id":93,"kind":128,"name":"GreaterThanOrEqualCondition","url":"classes/greaterthanorequalcondition.html","classes":"tsd-kind-class tsd-is-private"},{"id":94,"kind":1024,"name":"op","url":"classes/greaterthanorequalcondition.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"GreaterThanOrEqualCondition"},{"id":95,"kind":1024,"name":"value","url":"classes/greaterthanorequalcondition.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"GreaterThanOrEqualCondition"},{"id":96,"kind":512,"name":"constructor","url":"classes/greaterthanorequalcondition.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"GreaterThanOrEqualCondition"},{"id":97,"kind":2048,"name":"toJSON","url":"classes/greaterthanorequalcondition.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"GreaterThanOrEqualCondition"},{"id":98,"kind":128,"name":"StringCondition","url":"classes/stringcondition.html","classes":"tsd-kind-class tsd-is-private"},{"id":99,"kind":1024,"name":"op","url":"classes/stringcondition.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"StringCondition"},{"id":100,"kind":1024,"name":"value","url":"classes/stringcondition.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"StringCondition"},{"id":101,"kind":512,"name":"constructor","url":"classes/stringcondition.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"StringCondition"},{"id":102,"kind":2048,"name":"toJSON","url":"classes/stringcondition.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"StringCondition"},{"id":103,"kind":128,"name":"PrefixCondition","url":"classes/prefixcondition.html","classes":"tsd-kind-class tsd-is-private"},{"id":104,"kind":1024,"name":"op","url":"classes/prefixcondition.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"PrefixCondition"},{"id":105,"kind":1024,"name":"value","url":"classes/prefixcondition.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"PrefixCondition"},{"id":106,"kind":512,"name":"constructor","url":"classes/prefixcondition.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"PrefixCondition"},{"id":107,"kind":2048,"name":"toJSON","url":"classes/prefixcondition.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"PrefixCondition"},{"id":108,"kind":128,"name":"QueryCondition","url":"classes/querycondition.html","classes":"tsd-kind-class tsd-is-private"},{"id":109,"kind":1024,"name":"op","url":"classes/querycondition.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"QueryCondition"},{"id":110,"kind":1024,"name":"value","url":"classes/querycondition.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"QueryCondition"},{"id":111,"kind":2048,"name":"toJSON","url":"classes/querycondition.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"QueryCondition"},{"id":112,"kind":512,"name":"constructor","url":"classes/querycondition.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"QueryCondition"},{"id":113,"kind":128,"name":"FindCondition","url":"classes/findcondition.html","classes":"tsd-kind-class tsd-is-private"},{"id":114,"kind":1024,"name":"op","url":"classes/findcondition.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"FindCondition"},{"id":115,"kind":1024,"name":"value","url":"classes/findcondition.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"FindCondition"},{"id":116,"kind":2048,"name":"toJSON","url":"classes/findcondition.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"FindCondition"},{"id":117,"kind":512,"name":"constructor","url":"classes/findcondition.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"FindCondition"},{"id":118,"kind":128,"name":"CannotFindCondition","url":"classes/cannotfindcondition.html","classes":"tsd-kind-class tsd-is-private"},{"id":119,"kind":1024,"name":"op","url":"classes/cannotfindcondition.html#op","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"CannotFindCondition"},{"id":120,"kind":1024,"name":"value","url":"classes/cannotfindcondition.html#value","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"CannotFindCondition"},{"id":121,"kind":2048,"name":"toJSON","url":"classes/cannotfindcondition.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"CannotFindCondition"},{"id":122,"kind":512,"name":"constructor","url":"classes/cannotfindcondition.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"CannotFindCondition"},{"id":123,"kind":4194304,"name":"ConditionJSON","url":"globals.html#conditionjson","classes":"tsd-kind-type-alias tsd-is-private"},{"id":124,"kind":4194304,"name":"Condition","url":"globals.html#condition","classes":"tsd-kind-type-alias tsd-is-private"},{"id":125,"kind":64,"name":"conditionFromJSON","url":"globals.html#conditionfromjson","classes":"tsd-kind-function tsd-is-private"},{"id":126,"kind":64,"name":"all","url":"globals.html#all","classes":"tsd-kind-function"},{"id":127,"kind":64,"name":"any","url":"globals.html#any","classes":"tsd-kind-function"},{"id":128,"kind":64,"name":"eq","url":"globals.html#eq","classes":"tsd-kind-function"},{"id":129,"kind":64,"name":"neq","url":"globals.html#neq","classes":"tsd-kind-function"},{"id":130,"kind":64,"name":"lt","url":"globals.html#lt","classes":"tsd-kind-function"},{"id":131,"kind":64,"name":"gt","url":"globals.html#gt","classes":"tsd-kind-function"},{"id":132,"kind":64,"name":"lte","url":"globals.html#lte","classes":"tsd-kind-function"},{"id":133,"kind":64,"name":"gte","url":"globals.html#gte","classes":"tsd-kind-function"},{"id":134,"kind":64,"name":"prefix","url":"globals.html#prefix","classes":"tsd-kind-function"},{"id":135,"kind":64,"name":"find","url":"globals.html#find","classes":"tsd-kind-function"},{"id":136,"kind":64,"name":"nfind","url":"globals.html#nfind","classes":"tsd-kind-function"},{"id":137,"kind":256,"name":"IFilter","url":"interfaces/ifilter.html","classes":"tsd-kind-interface"},{"id":138,"kind":1024,"name":"statements","url":"interfaces/ifilter.html#statements","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IFilter"},{"id":139,"kind":1024,"name":"sortFieldId","url":"interfaces/ifilter.html#sortfieldid","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IFilter"},{"id":140,"kind":1024,"name":"sortDir","url":"interfaces/ifilter.html#sortdir","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IFilter"},{"id":141,"kind":1024,"name":"sortFieldSubId","url":"interfaces/ifilter.html#sortfieldsubid","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IFilter"},{"id":142,"kind":1024,"name":"sortFieldSubProp","url":"interfaces/ifilter.html#sortfieldsubprop","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IFilter"},{"id":143,"kind":1024,"name":"limit","url":"interfaces/ifilter.html#limit","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IFilter"},{"id":144,"kind":256,"name":"Datum","url":"interfaces/datum.html","classes":"tsd-kind-interface"},{"id":145,"kind":128,"name":"FilterBuilder","url":"classes/filterbuilder.html","classes":"tsd-kind-class"},{"id":146,"kind":1024,"name":"limit","url":"classes/filterbuilder.html#limit","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FilterBuilder"},{"id":147,"kind":1024,"name":"sortDir","url":"classes/filterbuilder.html#sortdir","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FilterBuilder"},{"id":148,"kind":1024,"name":"sortFieldId","url":"classes/filterbuilder.html#sortfieldid","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FilterBuilder"},{"id":149,"kind":1024,"name":"sortFieldSubId","url":"classes/filterbuilder.html#sortfieldsubid","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FilterBuilder"},{"id":150,"kind":1024,"name":"sortFieldSubProp","url":"classes/filterbuilder.html#sortfieldsubprop","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FilterBuilder"},{"id":151,"kind":262144,"name":"statements","url":"classes/filterbuilder.html#statements","classes":"tsd-kind-accessor tsd-parent-kind-class","parent":"FilterBuilder"},{"id":152,"kind":2048,"name":"clone","url":"classes/filterbuilder.html#clone","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FilterBuilder"},{"id":153,"kind":1024,"name":"_statements","url":"classes/filterbuilder.html#_statements","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"FilterBuilder"},{"id":154,"kind":262144,"name":"data","url":"classes/filterbuilder.html#data","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-overwrite tsd-is-protected","parent":"FilterBuilder"},{"id":155,"kind":2048,"name":"or","url":"classes/filterbuilder.html#or","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FilterBuilder"},{"id":156,"kind":2048,"name":"and","url":"classes/filterbuilder.html#and","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FilterBuilder"},{"id":157,"kind":2048,"name":"getStatements","url":"classes/filterbuilder.html#getstatements","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FilterBuilder"},{"id":158,"kind":2048,"name":"setStatements","url":"classes/filterbuilder.html#setstatements","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FilterBuilder"},{"id":159,"kind":2048,"name":"addStatement","url":"classes/filterbuilder.html#addstatement","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FilterBuilder"},{"id":160,"kind":2048,"name":"fromJSON","url":"classes/filterbuilder.html#fromjson","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-static","parent":"FilterBuilder"},{"id":161,"kind":2048,"name":"getLimit","url":"classes/filterbuilder.html#getlimit","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FilterBuilder"},{"id":162,"kind":2048,"name":"setLimit","url":"classes/filterbuilder.html#setlimit","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FilterBuilder"},{"id":163,"kind":2048,"name":"getSortFieldId","url":"classes/filterbuilder.html#getsortfieldid","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FilterBuilder"},{"id":164,"kind":2048,"name":"getSortFieldSubId","url":"classes/filterbuilder.html#getsortfieldsubid","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FilterBuilder"},{"id":165,"kind":2048,"name":"getSortFieldSubProp","url":"classes/filterbuilder.html#getsortfieldsubprop","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FilterBuilder"},{"id":166,"kind":2048,"name":"setSortFieldId","url":"classes/filterbuilder.html#setsortfieldid","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FilterBuilder"},{"id":167,"kind":2048,"name":"getSortDirection","url":"classes/filterbuilder.html#getsortdirection","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FilterBuilder"},{"id":168,"kind":2048,"name":"setSortDirection","url":"classes/filterbuilder.html#setsortdirection","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FilterBuilder"},{"id":169,"kind":2048,"name":"toJSON","url":"classes/filterbuilder.html#tojson","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FilterBuilder"},{"id":170,"kind":2048,"name":"toQueryString","url":"classes/filterbuilder.html#toquerystring","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FilterBuilder"},{"id":171,"kind":2048,"name":"toString","url":"classes/filterbuilder.html#tostring","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FilterBuilder"},{"id":172,"kind":2048,"name":"createPaginatedFilter","url":"classes/filterbuilder.html#createpaginatedfilter","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FilterBuilder"},{"id":173,"kind":2048,"name":"where","url":"classes/filterbuilder.html#where","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"FilterBuilder"},{"id":174,"kind":2048,"name":"getFieldIds","url":"classes/filterbuilder.html#getfieldids","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"FilterBuilder"},{"id":175,"kind":2048,"name":"getFieldCondition","url":"classes/filterbuilder.html#getfieldcondition","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"FilterBuilder"},{"id":176,"kind":2048,"name":"removeFieldCondition","url":"classes/filterbuilder.html#removefieldcondition","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"FilterBuilder"},{"id":177,"kind":2048,"name":"mapFieldConditions","url":"classes/filterbuilder.html#mapfieldconditions","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"FilterBuilder"},{"id":178,"kind":4194304,"name":"SortDirection","url":"globals.html#sortdirection","classes":"tsd-kind-type-alias"},{"id":179,"kind":4194304,"name":"StatementJSON","url":"globals.html#statementjson","classes":"tsd-kind-type-alias"},{"id":180,"kind":4194304,"name":"Statement","url":"globals.html#statement","classes":"tsd-kind-type-alias"}]}; |
import "mocha" | ||
import { assert } from "chai" | ||
import { any, all, eq, neq, lt, gt, lte, gte, prefix, find, nfind, conditionFromJSON, ICondition, Condition } from './Conditions' | ||
import { any, all, eq, neq, lt, gt, lte, gte, prefix, find, nfind, conditionFromJSON, ConditionJSON, Condition } from './Conditions' | ||
import { QueryBuilder } from "./Query"; | ||
const cases: {name: string, condition: Condition, json: ICondition}[] = [{ | ||
const cases: {name: string, condition: Condition, json: ConditionJSON}[] = [{ | ||
name: 'any', | ||
@@ -8,0 +8,0 @@ condition: any([]), |
@@ -10,14 +10,67 @@ import { | ||
import { BasicValue } from './Values' | ||
import { IQuery, QueryBuilder } from './Query' | ||
export interface IBaseCondition { | ||
import { QueryJSON, QueryBuilder } from './Query' | ||
/** | ||
* Base Interface for the JSON representation of a Condition | ||
* | ||
* @private | ||
* @interface BaseConditionJSON | ||
* Example:- | ||
* | ||
* ```json | ||
* { | ||
* "op": "EQ", | ||
* "value": "foo" | ||
* } | ||
* ``` | ||
*/ | ||
export interface BaseConditionJSON { | ||
op: Operation | ||
value: BasicValue | Array<IBaseCondition> | IQuery | ||
value: BasicValue | Array<BaseConditionJSON> | QueryJSON | ||
} | ||
export interface IMatchCondition extends IBaseCondition { | ||
/** | ||
* Interface for the JSON representation of a match condition | ||
* | ||
* These are the conditions that are derived from a list of condtions | ||
* such as the {@link AnyCondition} condition | ||
* Example:- | ||
* | ||
* ```json | ||
* { | ||
* "op": "ALL", | ||
* "value": [{ | ||
* "op": "EQ", | ||
* "value": "foo" | ||
* }] | ||
* } | ||
* ``` | ||
* | ||
* @private | ||
* @interface MatchConditionJSON | ||
* @extends {BaseConditionJSON} | ||
*/ | ||
export interface MatchConditionJSON extends BaseConditionJSON { | ||
op: MatchOperation | ||
value: Array<ICondition> | ||
value: Array<ConditionJSON> | ||
} | ||
export interface IEqualityCondition extends IBaseCondition { | ||
/** | ||
* Interface for the JSON representation of an equality condition | ||
* | ||
* These are the conditions that compare against a precise value | ||
* | ||
* @private | ||
* @interface EqualityConditionJSON | ||
* @extends {BaseConditionJSON} | ||
* Example:- | ||
* | ||
* ```json | ||
* { | ||
* "op": "EQ", | ||
* "value": "foo" | ||
* } | ||
* ``` | ||
*/ | ||
export interface EqualityConditionJSON extends BaseConditionJSON { | ||
op: EqualityOperation | ||
@@ -27,3 +80,20 @@ value: BasicValue | ||
export interface IOrderCondition extends IBaseCondition { | ||
/** | ||
* Interface for the JSON representation of an order condition | ||
* | ||
* These are the conditions the | ||
* | ||
* @private | ||
* @interface OrderConditionJSON | ||
* @extends {BaseConditionJSON} | ||
* Example:- | ||
* | ||
* ```json | ||
* { | ||
* "op": "LT", | ||
* "value": 100 | ||
* } | ||
* ``` | ||
*/ | ||
export interface OrderConditionJSON extends BaseConditionJSON { | ||
op: OrderOperation | ||
@@ -33,3 +103,18 @@ value: BasicValue | ||
export interface IStringCondition extends IBaseCondition { | ||
/** | ||
* Interface for the JSON representation of a string condition | ||
* | ||
* @private | ||
* @interface StringConditionJSON | ||
* @extends {BaseConditionJSON} | ||
* Example:- | ||
* | ||
* ```json | ||
* { | ||
* "op": "PREFIX", | ||
* "value": "feature/" | ||
* } | ||
* ``` | ||
*/ | ||
export interface StringConditionJSON extends BaseConditionJSON { | ||
op: StringOperation | ||
@@ -39,86 +124,187 @@ value: string | ||
export interface IQueryCondition extends IBaseCondition { | ||
/** | ||
* Interface for the JSON representation of an query condition | ||
* | ||
* @private | ||
* @interface QueryConditionJSON | ||
* @extends {BaseConditionJSON} | ||
* Example:- | ||
* | ||
* ```json | ||
* { | ||
* "op": "FIND", | ||
* "value": {} | ||
* } | ||
* ``` | ||
*/ | ||
export interface QueryConditionJSON extends BaseConditionJSON { | ||
op: QueryOperation | ||
value: IQuery | ||
value: QueryJSON | ||
} | ||
export type ICondition = IMatchCondition | IEqualityCondition | IOrderCondition | IStringCondition | IQueryCondition | ||
/** | ||
* The precise type of valid condition JSON | ||
* @private | ||
*/ | ||
export type ConditionJSON = | ||
| MatchConditionJSON | ||
| EqualityConditionJSON | ||
| OrderConditionJSON | ||
| StringConditionJSON | ||
| QueryConditionJSON | ||
/** | ||
* The type of a valid condition:- | ||
* ```ts | ||
* type Condition = MatchCondition | EqualityCondition | OrderCondition | StringCondition | QueryCondition | ||
* ``` | ||
* | ||
* Note these are instances of the [BaseCondition]{@link BaseCondition} class and not just json data | ||
* @private | ||
*/ | ||
export type Condition = MatchCondition | EqualityCondition | OrderCondition | StringCondition | QueryCondition | ||
export type Value = Condition[] | BasicValue | QueryBuilder | ||
/** | ||
* Abstract class representing a condition, used to export JSON data via it's `toJSON` method | ||
* this takes advantage of the fact the `toJSON` function will be called whenever JSON.stringify | ||
* is being applied to the object. | ||
* | ||
* This class just represents the structure condition, and any actual condition class must | ||
* extend this class | ||
* | ||
* @private | ||
* @abstract | ||
* @class BaseCondition | ||
*/ | ||
export abstract class BaseCondition { | ||
op: Operation | ||
value: Value | ||
readonly abstract op: Operation | ||
readonly value: Value | ||
constructor(value: Value) { | ||
this.value = value | ||
} | ||
toJSON(): ICondition { return <ICondition>{ op: this.op, value: this.value } } | ||
toJSON(): ConditionJSON { return <ConditionJSON>{ op: this.op, value: this.value } } | ||
} | ||
export class MatchCondition extends BaseCondition { | ||
op: MatchOperation | ||
value: Condition[] | ||
toJSON(): IMatchCondition { return { op: this.op, value: this.value.map($ => $.toJSON()) } } | ||
/** | ||
* Abstract class for 'Match' conditions - the conditions that are base on a set | ||
* of conditions | ||
* @private | ||
*/ | ||
export abstract class MatchCondition extends BaseCondition { | ||
readonly op: MatchOperation | ||
/** | ||
* list of sub-conditions | ||
* @type {Condition[]} | ||
*/ | ||
readonly value: Condition[] | ||
toJSON(): MatchConditionJSON { return { op: this.op, value: this.value.map($ => $.toJSON()) } } | ||
} | ||
export class ALL extends MatchCondition { | ||
op: 'ALL' = 'ALL' | ||
value: Condition[] | ||
/** | ||
* Condition that is satisfied when all the sub conditions are satisfied | ||
* @private | ||
*/ | ||
export class AllCondition extends MatchCondition { | ||
readonly op: 'ALL' = 'ALL' | ||
} | ||
export function all(value: Condition[]){ return new ALL(value) } | ||
export class ANY extends MatchCondition { | ||
op: 'ANY' = 'ANY' | ||
value: Condition[] | ||
/** | ||
* Condition that is satisfied when any the sub conditions are satisfied | ||
* @private | ||
*/ | ||
export class AnyCondition extends MatchCondition { | ||
readonly op: 'ANY' = 'ANY' | ||
} | ||
export function any(value: Condition[]){ return new ANY(value) } | ||
export class EqualityCondition extends BaseCondition implements IEqualityCondition { | ||
op: EqualityOperation | ||
value: BasicValue | ||
/** | ||
* Abstract class for 'Equality' conditions - the conditions that are based of | ||
* checking equivalence to a specific value | ||
* @private | ||
*/ | ||
export abstract class EqualityCondition extends BaseCondition implements EqualityConditionJSON { | ||
readonly op: EqualityOperation | ||
readonly value: BasicValue | ||
} | ||
export class EQ extends EqualityCondition { | ||
op: 'EQ' = 'EQ' | ||
value: BasicValue | ||
/** | ||
* Condition that is satisfied when the field has the given value | ||
* | ||
* Note: `null` is treated equivalently to no value being set | ||
* @private | ||
*/ | ||
export class EqualsCondition extends EqualityCondition { | ||
readonly op: 'EQ' = 'EQ' | ||
readonly value: BasicValue | ||
} | ||
export function eq(value: BasicValue){ return new EQ(value) } | ||
export class NEQ extends EqualityCondition { | ||
op: 'NEQ' = 'NEQ' | ||
value: BasicValue | ||
/** | ||
* Condition that is satisfied when the field has a value different to the given | ||
* value. | ||
* | ||
* Note: `null` is treated equivalently to no value being set | ||
* @private | ||
*/ | ||
export class NotEqualsCondition extends EqualityCondition { | ||
readonly op: 'NEQ' = 'NEQ' | ||
readonly value: BasicValue | ||
} | ||
export function neq(value: BasicValue){ return new NEQ(value) } | ||
export class OrderCondition extends BaseCondition implements IOrderCondition { | ||
op: OrderOperation | ||
value: BasicValue | ||
/** | ||
* Abstract class for 'Order' conditions - the conditions that are based of | ||
* checking for values in a range | ||
* @private | ||
*/ | ||
export abstract class OrderCondition extends BaseCondition implements OrderConditionJSON { | ||
readonly op: OrderOperation | ||
readonly value: BasicValue | ||
} | ||
export class LT extends OrderCondition { | ||
/** | ||
* Condition that is satisfied when the field has a value less than the given | ||
* value. | ||
* @private | ||
*/ | ||
export class LessThanCondition extends OrderCondition { | ||
op: 'LT' = 'LT' | ||
value: BasicValue | ||
} | ||
export function lt(value: BasicValue){ return new LT(value) } | ||
export class GT extends OrderCondition { | ||
/** | ||
* Condition that is satisfied when the field has a value greater than the given | ||
* value. | ||
* @private | ||
*/ | ||
export class GreaterThanCondition extends OrderCondition { | ||
op: 'GT' = 'GT' | ||
value: BasicValue | ||
} | ||
export function gt(value: BasicValue){ return new GT(value) } | ||
export class LTE extends OrderCondition { | ||
op: 'LTE' = 'LTE' | ||
value: BasicValue | ||
/** | ||
* Condition that is satisfied when the field has a value less than or equal to | ||
* the given value. | ||
* @private | ||
*/ | ||
export class LessThanOrEqualCondition extends OrderCondition { | ||
readonly op: 'LTE' = 'LTE' | ||
readonly value: BasicValue | ||
} | ||
export function lte(value: BasicValue){ return new LTE(value) } | ||
export class GTE extends OrderCondition { | ||
/** | ||
* Condition that is satisfied when the field has a value greater than or equal | ||
* to the given value. | ||
* @private | ||
*/ | ||
export class GreaterThanOrEqualCondition extends OrderCondition { | ||
op: 'GTE' = 'GTE' | ||
value: BasicValue | ||
} | ||
export function gte(value: BasicValue){ return new GTE(value) } | ||
export class StringCondition extends BaseCondition implements IStringCondition { | ||
/** | ||
* Abstract class for 'String' conditions - the conditions that are based of | ||
* checking specific properties of a string | ||
* @private | ||
*/ | ||
export class StringCondition extends BaseCondition implements StringConditionJSON { | ||
op: StringOperation | ||
@@ -128,51 +314,275 @@ value: string | ||
export class PREFIX extends StringCondition { | ||
/** | ||
* Condition that is satisfied when the field is a string that starts with the | ||
* given string | ||
* @private | ||
*/ | ||
export class PrefixCondition extends StringCondition { | ||
op: 'PREFIX' = 'PREFIX' | ||
value: string | ||
} | ||
export function prefix(value: string){ return new PREFIX(value) } | ||
export class QueryCondition extends BaseCondition { | ||
/** | ||
* Abstract class for 'Query' conditions - the conditions that are based of | ||
* checking properties of items in a nested field (an array-valued field) | ||
* @private | ||
*/ | ||
export abstract class QueryCondition extends BaseCondition { | ||
op: QueryOperation | ||
value: QueryBuilder | ||
toJSON(): IQueryCondition { return { op: this.op, value: this.value.toJSON() } } | ||
toJSON(): QueryConditionJSON { return { op: this.op, value: this.value.toJSON() } } | ||
} | ||
export class FIND extends QueryCondition { | ||
/** | ||
* Condition that is satisfied when you can find an item in the nested array | ||
* that satisfies the given query | ||
* @private | ||
*/ | ||
export class FindCondition extends QueryCondition { | ||
op: QueryOperation = 'FIND' | ||
} | ||
export function find(value: QueryBuilder){ return new FIND(value) } | ||
export class NFIND extends QueryCondition { | ||
/** | ||
* Condition that is satisfied when you there is no item in the nested array | ||
* that satisfies the given query | ||
* @private | ||
*/ | ||
export class CannotFindCondition extends QueryCondition { | ||
op: QueryOperation = 'NFIND' | ||
} | ||
export function nfind(value: QueryBuilder){ return new NFIND(value) } | ||
export function conditionFromJSON(json: ICondition): Condition { | ||
/** | ||
* Get a condition object from a JSON condition | ||
* | ||
* @private | ||
* @param {ConditionJSON} json | ||
* @returns {Condition} | ||
*/ | ||
export function conditionFromJSON(json: ConditionJSON): Condition { | ||
switch (json.op) { | ||
case 'ANY': | ||
return new ANY(json.value.map(conditionFromJSON)) | ||
return new AnyCondition(json.value.map(conditionFromJSON)) | ||
case 'ALL': | ||
return new ALL(json.value.map(conditionFromJSON)) | ||
return new AllCondition(json.value.map(conditionFromJSON)) | ||
case 'EQ': | ||
return new EQ(json.value) | ||
return new EqualsCondition(json.value) | ||
case 'NEQ': | ||
return new NEQ(json.value) | ||
return new NotEqualsCondition(json.value) | ||
case 'LT': | ||
return new LT(json.value) | ||
return new LessThanCondition(json.value) | ||
case 'GT': | ||
return new GT(json.value) | ||
return new GreaterThanCondition(json.value) | ||
case 'LTE': | ||
return new LTE(json.value) | ||
return new LessThanOrEqualCondition(json.value) | ||
case 'GTE': | ||
return new GTE(json.value) | ||
return new GreaterThanOrEqualCondition(json.value) | ||
case 'PREFIX': | ||
return new PREFIX(json.value) | ||
return new PrefixCondition(json.value) | ||
case 'FIND': | ||
return new FIND(QueryBuilder.fromJSON(json.value)) | ||
return new FindCondition(QueryBuilder.fromJSON(json.value)) | ||
case 'NFIND': | ||
return new NFIND(QueryBuilder.fromJSON(json.value)) | ||
return new CannotFindCondition(QueryBuilder.fromJSON(json.value)) | ||
default: | ||
throw new Error('Unknown Operation') | ||
} | ||
} | ||
/** | ||
* Creates a condition that is satisfied when all the sub-conditions are | ||
* satisfied | ||
* | ||
* Example:- | ||
* ``` | ||
* all([ | ||
* gt(50), | ||
* lt(100) | ||
* ]) | ||
* // => between 50 and 100 | ||
* | ||
* ``` | ||
* | ||
* | ||
* @param {Condition[]} value Array of sub-conditions that must be satisfied | ||
* @returns | ||
*/ | ||
export function all(value: Condition[]){ return new AllCondition(value) } | ||
/** | ||
* Creates a condition that is satisfied when any the sub-conditions are | ||
* satisfied | ||
* Example:- | ||
* ``` | ||
* any([ | ||
* eq('this'), | ||
* eq('that') | ||
* ]) | ||
* // => equal to 'this' or 'that' | ||
* | ||
* ``` | ||
* | ||
* | ||
* @param {Condition[]} value Array of sub-conditions that must be satisfied | ||
* @returns | ||
*/ | ||
export function any(value: Condition[]){ return new AnyCondition(value) } | ||
/** | ||
* Creates a condition that is satisfied when the field has the given value | ||
* | ||
* Note: `null` is treated equivalently to no value being set | ||
* | ||
* Example:- | ||
* ``` | ||
* eq('this') | ||
* // => field must be equal to 'this' | ||
* eq(null) | ||
* // => field must not have a value set | ||
* | ||
* ``` | ||
* | ||
* | ||
* @param {BasicValue} value the value to compare fields against | ||
* @returns | ||
*/ | ||
export function eq(value: BasicValue){ return new EqualsCondition(value) } | ||
/** | ||
* Creates a condition that is satisfied when the field has a value that is not | ||
* the given value | ||
* | ||
* Note: `null` is treated equivalently to no value being set | ||
* | ||
* Example:- | ||
* ``` | ||
* neq('this') | ||
* // => field must be not-equal to 'this', or not set | ||
* neq(null) | ||
* // => field must have some value set | ||
* ``` | ||
* | ||
* | ||
* @param {BasicValue} value the value to compare fields against | ||
* @returns | ||
*/ | ||
export function neq(value: BasicValue){ return new NotEqualsCondition(value) } | ||
/** | ||
* Creates a condition that is satisfied when the field has a value strictly | ||
* less than the given value. | ||
* | ||
* Example:- | ||
* ``` | ||
* lt('this') | ||
* // => field must be strictly less than 'this' (lexicographically ordered) e.g. 'thin' | ||
* lt(100) | ||
* // => field must be strictly less than 100 e.g. 99 but not 100 | ||
* ``` | ||
* | ||
* | ||
* @param {BasicValue} value | ||
* @returns | ||
*/ | ||
export function lt(value: BasicValue){ return new LessThanCondition(value) } | ||
/** | ||
* Creates a condition that is satisfied when the field has a value strictly | ||
* greater than the given value. | ||
* | ||
* Example:- | ||
* ``` | ||
* gt('this') | ||
* // => field must be strictly greater than 'this' (lexicographically ordered) e.g. 'those' | ||
* gt(100) | ||
* // => field must be strictly greater than 100 e.g. 101 but not 100 | ||
* ``` | ||
* | ||
* | ||
* @param {BasicValue} value | ||
* @returns | ||
*/ | ||
export function gt(value: BasicValue){ return new GreaterThanCondition(value) } | ||
/** | ||
* Creates a condition that is satisfied when the field has a value | ||
* less than the given value. | ||
* | ||
* Example:- | ||
* ``` | ||
* lte('this') | ||
* // => field must be less than 'this' (lexicographically ordered) e.g. 'thin' | ||
* lte(100) | ||
* // => field must be less than 100 e.g. 99 and 100 | ||
* ``` | ||
* | ||
* | ||
* @param {BasicValue} value | ||
* @returns | ||
*/ | ||
export function lte(value: BasicValue){ return new LessThanOrEqualCondition(value) } | ||
/** | ||
* Creates a condition that is satisfied when the field has a value | ||
* greater than or equal to the given value. | ||
* | ||
* Example:- | ||
* ``` | ||
* gte('this') | ||
* // => field must be greater than or equal to 'this' (lexicographically ordered) e.g. 'those' | ||
* gte(100) | ||
* // => field must be greater than or equal to 100 e.g. 101 but not 100 | ||
* ``` | ||
* | ||
* | ||
* @param {BasicValue} value | ||
* @returns | ||
*/ | ||
export function gte(value: BasicValue){ return new GreaterThanOrEqualCondition(value) } | ||
/** | ||
* Creates a condition that is satisfied when the field is a string that starts | ||
* with the given string | ||
* | ||
* Example:- | ||
* ``` | ||
* prefix('th') | ||
* // => field must start with 'th' e.g. 'this', 'that', 'those' ... | ||
* ``` | ||
* | ||
* | ||
* @param {string} prefixString prefix string | ||
* @returns | ||
*/ | ||
export function prefix(prefixString: string){ return new PrefixCondition(prefixString) } | ||
/** | ||
* Creates a condition that is satisfied when you can find an item in the nested | ||
* array that satisfies the given query | ||
* | ||
* Example:- | ||
* ``` | ||
* find( | ||
* where('firstName', eq('bob')) | ||
* .where('lastName', prefix('Mc')) | ||
* ) | ||
* // => field must contain an item with firstName 'bob' and lastName starting | ||
* with 'Mc' | ||
* ``` | ||
* | ||
* | ||
* @param {QueryBuilder} queryBuilder | ||
* @returns | ||
*/ | ||
export function find(queryBuilder: QueryBuilder){ | ||
return new FindCondition(queryBuilder) | ||
} | ||
/** | ||
* Creates a condition that is satisfied when there is no item in the nested | ||
* array that satisfies the given query | ||
* | ||
* Example:- | ||
* ``` | ||
* find(where('firstName', eq('bob'))) | ||
* // => field must not contain an item with firstName 'bob' | ||
* ``` | ||
* | ||
* | ||
* @param {QueryBuilder} queryBuilder | ||
* @returns | ||
*/ | ||
export function nfind(queryBuilder: QueryBuilder){ | ||
return new CannotFindCondition(queryBuilder) | ||
} |
@@ -254,6 +254,6 @@ import "mocha" | ||
describe('.setStatementBuilder', function(){ | ||
describe('.setStatement', function(){ | ||
it('should be able to add statements to the filter',function(){ | ||
myFilter.clone().setStatementBuilders([ | ||
...myFilter.getStatementBuilders(), | ||
myFilter.clone().setStatements([ | ||
...myFilter.getStatements(), | ||
[ | ||
@@ -268,3 +268,3 @@ where('list.id', eq('list-1')), | ||
assert.throws(() => { | ||
myFilter.clone().setStatementBuilders([]) | ||
myFilter.clone().setStatements([]) | ||
}) | ||
@@ -276,3 +276,3 @@ }) | ||
assert.throws(() => { | ||
myFilter.clone().setStatementBuilders([[]]) | ||
myFilter.clone().setStatements([[]]) | ||
}) | ||
@@ -279,0 +279,0 @@ }) |
import {BasicValue} from './Values' | ||
import {OrderOperation} from './Operations' | ||
import {Condition, find, eq, gt, lt} from './Conditions' | ||
import {IQuery, QueryBuilder, AbstractQueryBuilder, where} from './Query' | ||
import {QueryJSON, QueryBuilder, AbstractQueryBuilder, where} from './Query' | ||
@@ -12,7 +12,7 @@ export type SortDirection = 'ASC' | 'DESC' | ||
*/ | ||
export type Statement = IQuery[] | ||
export type StatementJSON = QueryJSON[] | ||
/** | ||
* A StatementBuilder is a non-empty list of [QueryBuilder]{@link QueryBuilder} instances | ||
* A Statement is a non-empty list of [QueryBuilder]{@link QueryBuilder} instances | ||
*/ | ||
export type StatementBuilder = QueryBuilder[] | ||
export type Statement = QueryBuilder[] | ||
@@ -26,3 +26,3 @@ /** | ||
* | ||
* The filter that should be applied is described by the [statements]{@link IFilter#statements} | ||
* The filter that should be applied is described by the [statements]{@link IFilter.statements} | ||
* property which is an Array of [statements]{@link Statement} of which all the | ||
@@ -33,5 +33,5 @@ * statement must hold. Each statement is a list of queries of which at least one | ||
* | ||
* @export | ||
* | ||
* @interface IFilter | ||
* @example | ||
* Example:- | ||
* | ||
@@ -93,11 +93,7 @@ * ```ts | ||
* | ||
* @type {IStatement[]} | ||
* @memberOf IFilter | ||
*/ | ||
statements: Statement[] | ||
statements: StatementJSON[] | ||
/** | ||
* field Id for the filter to sort on | ||
* | ||
* @type {string} | ||
* @memberOf IFilter | ||
*/ | ||
@@ -108,4 +104,2 @@ sortFieldId?: string | ||
* | ||
* @type {SortDirection} | ||
* @memberOf IFilter | ||
*/ | ||
@@ -117,4 +111,2 @@ sortDir: SortDirection | ||
* | ||
* @type {string} | ||
* @memberOf IFilter | ||
*/ | ||
@@ -126,4 +118,2 @@ sortFieldSubId?: string | ||
* | ||
* @type {string} | ||
* @memberOf IFilter | ||
*/ | ||
@@ -135,4 +125,2 @@ sortFieldSubProp?: string | ||
* | ||
* @type {number} | ||
* @memberOf IFilter | ||
*/ | ||
@@ -149,7 +137,3 @@ limit: number | ||
* | ||
* @export | ||
* @class FilterBuilder | ||
* @extends {AbstractQueryBuilder} | ||
* @implements {IFilter} | ||
* @example | ||
* Example:- | ||
* | ||
@@ -168,5 +152,46 @@ * ```ts | ||
export class FilterBuilder extends AbstractQueryBuilder implements IFilter { | ||
/** | ||
* This is the maximum number of items the filter should allow to be | ||
* returned | ||
* | ||
* @default 100 | ||
*/ | ||
limit = 100 | ||
/** | ||
* see [IFilter.sortDir]{@link IFilter.sortDir} | ||
* | ||
*/ | ||
sortDir: SortDirection = 'DESC' | ||
/** | ||
* see [IFilter.sortFieldId]{@link IFilter.sortFieldId} | ||
* | ||
*/ | ||
sortFieldId: string = 'id' | ||
/** | ||
* see [IFilter.sortFieldSubId]{@link IFilter.sortFieldSubId} | ||
* | ||
*/ | ||
sortFieldSubId?: string | ||
/** | ||
* see [IFilter.sortFieldSubProp]{@link IFilter.sortFieldSubProp} | ||
* | ||
*/ | ||
sortFieldSubProp?: string | ||
/** | ||
* see [IFilter.statements]{@link IFilter.statements} | ||
* | ||
* @override | ||
*/ | ||
get statements(): StatementJSON[] { | ||
return this._statements | ||
.map(options => options | ||
.map(query => query.toJSON())) | ||
} | ||
set statements(statements: StatementJSON[]){ | ||
this.setStatements(statements | ||
.map(options => options | ||
.map(query => QueryBuilder.fromJSON(query)))) | ||
} | ||
/** | ||
* Creates a shallow clone of the FilterBuilder instance | ||
@@ -176,4 +201,3 @@ * | ||
* | ||
* @memberOf FilterBuilder | ||
* @example | ||
* Example:- | ||
* | ||
@@ -204,3 +228,3 @@ * ```ts | ||
private _statements = [[new QueryBuilder()]] as QueryBuilder[][] | ||
private _statements = [[new QueryBuilder()]] as Statement[] | ||
/** | ||
@@ -210,4 +234,2 @@ * | ||
* @protected | ||
* @type {{ [P in string]?: Condition }} | ||
* @memberOf FilterBuilder | ||
*/ | ||
@@ -219,18 +241,2 @@ protected get data(): { [P in string]?: Condition } { | ||
/** | ||
* | ||
* @override | ||
* @type {IStatement[]} | ||
* @memberOf FilterBuilder | ||
*/ | ||
get statements(): Statement[] { | ||
return this._statements | ||
.map(options => options | ||
.map(query => query.toJSON())) | ||
} | ||
set statements(statements: Statement[]){ | ||
this.setStatementBuilders(statements | ||
.map(options => options | ||
.map(query => QueryBuilder.fromJSON(query)))) | ||
} | ||
/** | ||
* Extends the current active statement with a new query which becomes the active | ||
@@ -242,4 +248,3 @@ * query and `where` statements then apply to the new query until `.and`/`.or` is | ||
* | ||
* @memberOf FilterBuilder | ||
* @example | ||
* Example:- | ||
* | ||
@@ -276,4 +281,3 @@ * ```ts | ||
* | ||
* @memberOf FilterBuilder | ||
* @example | ||
* Example:- | ||
* | ||
@@ -308,5 +312,4 @@ * ```ts | ||
* | ||
* @memberOf FilterBuilder | ||
*/ | ||
getStatementBuilders(){ return this._statements } | ||
getStatements(){ return this._statements } | ||
@@ -316,7 +319,6 @@ /** | ||
* | ||
* @param {QueryBuilder[][]} statements | ||
* @param {Statement[]} statements | ||
* @returns | ||
* @example | ||
* Example:- | ||
* | ||
* @memberOf FilterBuilder | ||
* | ||
@@ -352,3 +354,3 @@ * ```ts | ||
*/ | ||
setStatementBuilders(statements: StatementBuilder[]){ | ||
setStatements(statements: Statement[]){ | ||
if (!Array.isArray(statements) || statements.length === 0) { | ||
@@ -367,11 +369,10 @@ throw new Error('A filter must have at least one statement') | ||
/** | ||
* Add a new StatementBuilder to the class | ||
* Add a new Statement to the class | ||
* | ||
* @param {StatementBuilder} sb | ||
* @param {Statement} statement | ||
* @returns | ||
* | ||
* @memberOf FilterBuilder | ||
*/ | ||
addStatementBuilder(sb: StatementBuilder){ | ||
return this.setStatementBuilders(this.getStatementBuilders().concat([sb])) | ||
addStatement(statement: Statement){ | ||
return this.setStatements(this.getStatements().concat([statement])) | ||
} | ||
@@ -383,5 +384,2 @@ | ||
sortFieldId: string = 'id' | ||
sortFieldSubId?: string | ||
sortFieldSubProp?: string | ||
getSortFieldId(): string { return this.sortFieldId } | ||
@@ -398,3 +396,2 @@ getSortFieldSubId(): string | null { return this.sortFieldSubId || null } | ||
* | ||
* @memberOf Filter | ||
*/ | ||
@@ -407,3 +404,2 @@ setSortFieldId(fieldId: string, sortFieldSubId?: string, sortFieldSubProp?: string): FilterBuilder { | ||
sortDir: SortDirection = 'DESC' | ||
getSortDirection(): SortDirection { return this.sortDir } | ||
@@ -477,3 +473,3 @@ setSortDirection(dir: SortDirection): FilterBuilder { this.sortDir = dir; return this } | ||
return this.clone().addStatementBuilder([ | ||
return this.clone().addStatement([ | ||
// filter items below list item | ||
@@ -497,3 +493,3 @@ where(sortFieldId, find( | ||
// If the sort value is good add the sort statement | ||
return this.clone().addStatementBuilder([ | ||
return this.clone().addStatement([ | ||
// filter items below list item | ||
@@ -500,0 +496,0 @@ where(sortFieldId, op(lastItemSortFieldValue)), |
import "mocha" | ||
import { assert } from "chai" | ||
import { QueryBuilder, IQuery } from './Query' | ||
import { QueryBuilder, QueryJSON } from './Query' | ||
import { eq } from './Conditions' | ||
@@ -70,3 +70,3 @@ describe('QueryBuilder', function(){ | ||
} | ||
} as IQuery | ||
} as QueryJSON | ||
@@ -87,3 +87,3 @@ const qb = new QueryBuilder() | ||
} | ||
} as IQuery | ||
} as QueryJSON | ||
@@ -90,0 +90,0 @@ const qb = new QueryBuilder() |
import {BasicValue} from './Values' | ||
import {ICondition, Condition, conditionFromJSON} from './Conditions' | ||
import {ConditionJSON, Condition, conditionFromJSON} from './Conditions' | ||
import {Operation} from './Operations' | ||
type Value = ICondition[] | BasicValue | IQuery | ||
type Value = ConditionJSON[] | BasicValue | QueryJSON | ||
export interface IQuery { | ||
[key: string]: ICondition | ||
/** | ||
* Interface for the JSON representation of a query that is built by the | ||
* [QueryBuilder]{@link QueryBuilder} class | ||
* | ||
* | ||
* @interface QueryJSON | ||
*/ | ||
export interface QueryJSON { | ||
[key: string]: ConditionJSON | ||
} | ||
/** | ||
* Abstract Class to represent a component that can build queries | ||
* | ||
* | ||
* @abstract | ||
* @class AbstractQueryBuilder | ||
*/ | ||
export abstract class AbstractQueryBuilder { | ||
@@ -20,4 +34,3 @@ protected abstract get data(): { [P in string]?: Condition } | ||
* | ||
* @memberOf AbstractQueryBuilder | ||
* @example | ||
* Example:- | ||
* | ||
@@ -46,4 +59,3 @@ * ```ts | ||
* | ||
* @memberOf AbstractQueryBuilder | ||
* @example | ||
* Example:- | ||
* | ||
@@ -66,4 +78,3 @@ * ```ts | ||
* | ||
* @memberOf AbstractQueryBuilder | ||
* @example | ||
* Example:- | ||
* | ||
@@ -86,11 +97,9 @@ * ```ts | ||
* | ||
* @template S | ||
* @template S map function return type | ||
* @param {(fieldId: string, condition: Condition) => S} mapFn | ||
* @returns {S[]} | ||
* | ||
* @memberOf AbstractQueryBuilder | ||
* @example | ||
* Example:- | ||
* | ||
*```ts | ||
* | ||
* new QueryBuilder() | ||
@@ -111,5 +120,5 @@ * .where('foo', eq('bar')) | ||
/** | ||
* Builder class for {@link IQuery} object | ||
* Builder class for {@link QueryJSON} object | ||
* | ||
* @export | ||
* | ||
* @class QueryBuilder | ||
@@ -124,10 +133,8 @@ * @extends {AbstractQueryBuilder} | ||
* @static | ||
* @param {IQuery} data | ||
* @param {QueryJSON} data | ||
* @returns {this} | ||
* | ||
* @memberOf QueryBuilder | ||
* @example | ||
* Example:- | ||
* | ||
* ```ts | ||
* | ||
* QueryBuilder | ||
@@ -141,3 +148,3 @@ * .fromJSON({"foo":{"op":"EQ","value":"bar"}}) | ||
*/ | ||
static fromJSON(data: IQuery) { | ||
static fromJSON(data: QueryJSON) { | ||
const query = new QueryBuilder() | ||
@@ -153,9 +160,7 @@ query.data = {} as { [P in string]: Condition } | ||
* | ||
* @returns {IQuery} | ||
* @returns {QueryJSON} | ||
* | ||
* @memberOf QueryBuilder | ||
* @example | ||
* Example:- | ||
* | ||
* ```ts | ||
* | ||
* new QueryBuilder() | ||
@@ -167,4 +172,4 @@ * .where('foo', eq('bar')).toJSON() | ||
*/ | ||
toJSON(): IQuery { | ||
const res: IQuery = {} as IQuery | ||
toJSON(): QueryJSON { | ||
const res: QueryJSON = {} as QueryJSON | ||
for (let fieldId in this.data){ | ||
@@ -182,10 +187,9 @@ if (this.data[fieldId]){ | ||
* | ||
* @export | ||
* | ||
* @param {string} fieldId | ||
* @param {Condition} condition | ||
* @returns {QueryBuilder} | ||
* @example | ||
* Example:- | ||
* | ||
* ```ts | ||
* | ||
* where('foo', eq('bar')) | ||
@@ -192,0 +196,0 @@ * // alias for :- |
{ | ||
"name": "querycraft", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Data query abstraction layer", | ||
@@ -15,3 +15,4 @@ "main": "dist/index.js", | ||
"start": "mocha --watch", | ||
"docs": "typedoc --excludeExternals --exclude '**/*.test.ts' --mode modules --theme node_modules/tui-jsdoc-template --out ./docs --tsconfig tsconfig.json lib/", | ||
"predocs": "rm -rf docs/", | ||
"docs": "typedoc --excludeExternals --exclude '**/*.test.ts' --mode file --theme minimal --out ./docs --tsconfig tsconfig.json lib/", | ||
"postdocs": "touch docs/.nojekyll", | ||
@@ -18,0 +19,0 @@ "serve:docs": "http-server -p 8000 docs/", |
@@ -11,2 +11,6 @@ # QueryCraft | ||
## Docs | ||
View [API Documentation](https://beameryhq.github.io/QueryCraft/classes/_filter_.filterbuilder.html) | ||
## Installation | ||
@@ -26,3 +30,2 @@ | ||
'list': { id: string }[] | ||
'vacancy.id'?: string | ||
firstName: string | ||
@@ -45,5 +48,7 @@ lastName: string | ||
sorted (in ascending order) by the value property of the customField where id is custom1 | ||
updated less than 5 days ago | ||
created less than 5 days ago | ||
``` | ||
We can build build it as easily as:- | ||
```ts | ||
@@ -59,3 +64,3 @@ import { FilterBuilder, eq, lt, neq, any, find, where } from 'querycraft' | ||
])) | ||
.where('updatedAt', lt({ daysAgo: 5 })) | ||
.where('createdAt', lt({ daysAgo: 5 })) | ||
.where('assignedTo', neq(null)) | ||
@@ -65,3 +70,2 @@ .setSortFieldId('customFields', 'custom1', 'value') | ||
.setLimit(50) | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9639042
67
59
9635