@flowfact/node-flowdsl
Advanced tools
Comparing version 2.20210323.40 to 2.20210323.42
@@ -380,2 +380,3 @@ "use strict"; | ||
expect(condition.type).toBe('geoPolygon'); | ||
expect(condition.subType).toBe('geoCondition'); | ||
expect(condition.field).toBe('geolocation'); | ||
@@ -394,2 +395,3 @@ expect(condition.polygon[0]).toEqual([1, 2]); | ||
expect(geoInformationCondition.type).toBe('geoInformation'); | ||
expect(geoInformationCondition.subType).toBe('geoCondition'); | ||
expect(geoInformationCondition.field).toBe(undefined); | ||
@@ -404,2 +406,3 @@ }); | ||
expect(geoInformationCondition.type).toBe('geoInformation'); | ||
expect(geoInformationCondition.subType).toBe('geoCondition'); | ||
expect(geoInformationCondition.field).toBe('field'); | ||
@@ -406,0 +409,0 @@ }); |
@@ -151,2 +151,3 @@ "use strict"; | ||
type: 'geoPolygon', | ||
subType: 'geoCondition', | ||
field: field, | ||
@@ -161,2 +162,3 @@ polygon: polygon | ||
type: 'geoInformation', | ||
subType: 'geoCondition', | ||
polygonName: polygonName | ||
@@ -163,0 +165,0 @@ }; |
@@ -108,2 +108,3 @@ export interface Flowdsl { | ||
type: 'geoPolygon'; | ||
subType: 'geoCondition'; | ||
field: string; | ||
@@ -114,2 +115,3 @@ polygon: ([number, number])[]; | ||
type: 'geoInformation'; | ||
subType: 'geoCondition'; | ||
field?: string; | ||
@@ -120,4 +122,4 @@ polygonName: string; | ||
export declare type SortDirection = 'ASC' | 'DESC'; | ||
export declare type ConditionsType = 'hasTag' | 'hasField' | 'hasFieldWithValue' | 'hasRangeOverlapping' | 'and' | 'or' | 'not' | 'entityId' | 'schemaId' | 'schema' | 'tagId' | 'geoPolygon' | 'geoInformation' | 'geoCondition' | 'HASTAG' | 'HASFIELD' | 'HASFIELDWITHVALUE' | 'HASRANGEOVERLAPPING' | 'AND' | 'OR' | 'NOT' | 'ENTITYID' | 'SCHEMAID' | 'SCHEMA' | 'TAGID' | 'GEOPOLYGON' | 'GEOINFORMATION' | 'GEOCONDITION'; | ||
export declare type ConditionsType = 'hasTag' | 'hasField' | 'hasFieldWithValue' | 'hasRangeOverlapping' | 'and' | 'or' | 'not' | 'entityId' | 'schemaId' | 'schema' | 'tagId' | 'geoPolygon' | 'geoInformation' | 'HASTAG' | 'HASFIELD' | 'HASFIELDWITHVALUE' | 'HASRANGEOVERLAPPING' | 'AND' | 'OR' | 'NOT' | 'ENTITYID' | 'SCHEMAID' | 'SCHEMA' | 'TAGID' | 'GEOPOLYGON' | 'GEOINFORMATION'; | ||
export declare type Operator = 'EQUALS' | 'LIKE' | 'GREATER' | 'LESS' | 'GREATER_EQUAL' | 'LESS_EQUAL' | 'NOT_EQUAL' | 'IN' | 'BETWEEN'; | ||
export declare type FlowdslConditionUnion = AndCondition | OrCondition | NotCondition | HasTagCondition | HasFieldCondition | HasFieldWithValueCondition | HasRangeOverlappingCondition | EntityIdCondition | SchemaIdCondition | SchemaCondition | TagIdCondition | PolygonCondition | GeoInformationCondition; |
{ | ||
"name": "@flowfact/node-flowdsl", | ||
"version": "2.20210323.40", | ||
"version": "2.20210323.42", | ||
"description": "A builder to create valid FlowDsl-queries which can be used to retrieve entities in the FLOWFACT platform", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -466,2 +466,3 @@ import { ConditionsBuilder } from '../ConditionsBuilder'; | ||
expect(condition.type).toBe('geoPolygon'); | ||
expect(condition.subType).toBe('geoCondition'); | ||
expect(condition.field).toBe('geolocation'); | ||
@@ -483,2 +484,3 @@ | ||
expect(geoInformationCondition.type).toBe('geoInformation'); | ||
expect(geoInformationCondition.subType).toBe('geoCondition'); | ||
expect(geoInformationCondition.field).toBe(undefined); | ||
@@ -495,2 +497,3 @@ }); | ||
expect(geoInformationCondition.type).toBe('geoInformation'); | ||
expect(geoInformationCondition.subType).toBe('geoCondition'); | ||
expect(geoInformationCondition.field).toBe('field'); | ||
@@ -497,0 +500,0 @@ }); |
@@ -181,2 +181,3 @@ import { | ||
type: 'geoPolygon', | ||
subType: 'geoCondition', | ||
field: field, | ||
@@ -193,2 +194,3 @@ polygon: polygon | ||
type: 'geoInformation', | ||
subType: 'geoCondition', | ||
polygonName: polygonName | ||
@@ -195,0 +197,0 @@ } |
@@ -127,2 +127,3 @@ /* tslint:disable */ | ||
type: 'geoPolygon'; | ||
subType: 'geoCondition'; | ||
field: string; | ||
@@ -134,2 +135,3 @@ polygon: ([number, number])[]; | ||
type: 'geoInformation'; | ||
subType: 'geoCondition'; | ||
field?: string; | ||
@@ -159,3 +161,2 @@ polygonName: string; | ||
| 'geoInformation' | ||
| 'geoCondition' | ||
| 'HASTAG' | ||
@@ -173,4 +174,3 @@ | 'HASFIELD' | ||
| 'GEOPOLYGON' | ||
| 'GEOINFORMATION' | ||
| 'GEOCONDITION'; | ||
| 'GEOINFORMATION'; | ||
@@ -177,0 +177,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
148161
2476