@finos/legend-query-builder 4.14.87 → 4.14.89
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js +2 -4
- package/lib/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js +17 -3
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +3 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -1
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.d.ts +2 -2
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts +4 -4
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js +3 -3
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js +12 -2
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js +5 -5
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.d.ts +3 -3
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js +32 -20
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts +3 -3
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +5 -5
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts +3 -3
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +5 -5
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts +3 -3
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +6 -6
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts +2 -2
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js +4 -4
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts +2 -2
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js +4 -4
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts +3 -3
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js +5 -5
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts +2 -2
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js +3 -3
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts +2 -2
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js +4 -4
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts +2 -2
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js +4 -4
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts +3 -3
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +5 -5
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderRelationProjectValueSpecBuidler.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderRelationProjectValueSpecBuidler.js +13 -3
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderRelationProjectValueSpecBuidler.js.map +1 -1
- package/package.json +5 -5
- package/src/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +4 -5
- package/src/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts +23 -7
- package/src/index.ts +7 -0
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.ts +2 -0
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts +14 -3
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.ts +14 -11
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.ts +9 -3
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.ts +51 -27
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +7 -2
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +7 -2
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +7 -2
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +5 -2
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts +5 -2
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.ts +7 -2
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +5 -2
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +5 -2
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts +5 -2
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +7 -2
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +0 -2
- package/src/stores/fetch-structure/tds/projection/QueryBuilderRelationProjectValueSpecBuidler.ts +30 -2
@@ -15,7 +15,7 @@
|
|
15
15
|
*/
|
16
16
|
import { AbstractPropertyExpression, PRIMITIVE_TYPE, PrimitiveType, } from '@finos/legend-graph';
|
17
17
|
import { buildPostFilterConditionState } from '../QueryBuilderPostFilterStateBuilder.js';
|
18
|
-
import {
|
18
|
+
import { buildPostFilterConditionExpressionHelper } from './QueryBuilderPostFilterOperatorValueSpecificationBuilder.js';
|
19
19
|
import { QueryBuilderPostFilterOperator_GreaterThan } from './QueryBuilderPostFilterOperator_GreaterThan.js';
|
20
20
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
|
21
21
|
import { hashArray } from '@finos/legend-shared';
|
@@ -24,13 +24,13 @@ export class QueryBuilderPostFilterOperator_GreaterThanEqual extends QueryBuilde
|
|
24
24
|
getLabel() {
|
25
25
|
return '>=';
|
26
26
|
}
|
27
|
-
buildPostFilterConditionExpression(postFilterConditionState) {
|
28
|
-
return
|
27
|
+
buildPostFilterConditionExpression(postFilterConditionState, parentExpression) {
|
28
|
+
return buildPostFilterConditionExpressionHelper(postFilterConditionState, this, postFilterConditionState.leftConditionValue.getColumnType() ===
|
29
29
|
PrimitiveType.DATETIME &&
|
30
30
|
postFilterConditionState.rightConditionValue.type !==
|
31
31
|
PrimitiveType.DATETIME
|
32
32
|
? QUERY_BUILDER_SUPPORTED_FUNCTIONS.IS_ON_OR_AFTER_DAY
|
33
|
-
: QUERY_BUILDER_SUPPORTED_FUNCTIONS.GREATER_THAN_EQUAL);
|
33
|
+
: QUERY_BUILDER_SUPPORTED_FUNCTIONS.GREATER_THAN_EQUAL, parentExpression);
|
34
34
|
}
|
35
35
|
buildPostFilterConditionState(postFilterState, expression) {
|
36
36
|
return buildPostFilterConditionState(postFilterState, expression, expression.parametersValues[0] instanceof AbstractPropertyExpression &&
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderPostFilterOperator_GreaterThanEqual.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
1
|
+
{"version":3,"file":"QueryBuilderPostFilterOperator_GreaterThanEqual.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,0BAA0B,EAC1B,cAAc,EACd,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AAKzF,OAAO,EAAE,wCAAwC,EAAE,MAAM,8DAA8D,CAAC;AACxH,OAAO,EAAE,0CAA0C,EAAE,MAAM,iDAAiD,CAAC;AAC7G,OAAO,EAAE,iCAAiC,EAAE,MAAM,oDAAoD,CAAC;AACvG,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,kCAAkC,EAAE,MAAM,2CAA2C,CAAC;AAE/F,MAAM,OAAO,+CAAgD,SAAQ,0CAA0C;IACpG,QAAQ;QACf,OAAO,IAAI,CAAC;IACd,CAAC;IAEQ,kCAAkC,CACzC,wBAAkD,EAClD,gBAA4C;QAE5C,OAAO,wCAAwC,CAC7C,wBAAwB,EACxB,IAAI,EACJ,wBAAwB,CAAC,kBAAkB,CAAC,aAAa,EAAE;YACzD,aAAa,CAAC,QAAQ;YACtB,wBAAwB,CAAC,mBAAmB,CAAC,IAAI;gBAC/C,aAAa,CAAC,QAAQ;YACxB,CAAC,CAAC,iCAAiC,CAAC,kBAAkB;YACtD,CAAC,CAAC,iCAAiC,CAAC,kBAAkB,EACxD,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAEQ,6BAA6B,CACpC,eAA4C,EAC5C,UAA8B;QAE9B,OAAO,6BAA6B,CAClC,eAAe,EACf,UAAU,EACV,UAAU,CAAC,gBAAgB,CAAC,CAAC,CAAC,YAAY,0BAA0B;YAClE,UAAU,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO;iBAChE,IAAI,KAAK,cAAc,CAAC,QAAQ;YACnC,UAAU,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI;gBAC7D,cAAc,CAAC,QAAQ;YACzB,CAAC,CAAC,iCAAiC,CAAC,kBAAkB;YACtD,CAAC,CAAC,iCAAiC,CAAC,kBAAkB,EACxD,IAAI,CACL,CAAC;IACJ,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,uCAAuC;SAC3E,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { type Type, type ValueSpecification, type SimpleFunctionExpression, type FunctionExpression } from '@finos/legend-graph';
|
16
|
+
import { type Type, type ValueSpecification, type SimpleFunctionExpression, type FunctionExpression, type LambdaFunction } from '@finos/legend-graph';
|
17
17
|
import { type Hashable } from '@finos/legend-shared';
|
18
18
|
import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js';
|
19
19
|
import { type PostFilterConditionState, type QueryBuilderPostFilterState } from '../QueryBuilderPostFilterState.js';
|
@@ -22,13 +22,13 @@ export declare class QueryBuilderPostFilterOperator_In extends QueryBuilderPostF
|
|
22
22
|
isCompatibleWithType(type: Type): boolean;
|
23
23
|
isCompatibleWithConditionValue(postFilterConditionState: PostFilterConditionState): boolean;
|
24
24
|
getDefaultFilterConditionValue(postFilterConditionState: PostFilterConditionState): ValueSpecification;
|
25
|
-
buildPostFilterConditionExpression(postFilterConditionState: PostFilterConditionState): ValueSpecification | undefined;
|
25
|
+
buildPostFilterConditionExpression(postFilterConditionState: PostFilterConditionState, parentExpression: LambdaFunction | undefined): ValueSpecification | undefined;
|
26
26
|
buildPostFilterConditionState(postFilterState: QueryBuilderPostFilterState, expression: FunctionExpression): PostFilterConditionState | undefined;
|
27
27
|
get hashCode(): string;
|
28
28
|
}
|
29
29
|
export declare class QueryBuilderPostFilterOperator_NotIn extends QueryBuilderPostFilterOperator_In {
|
30
30
|
getLabel(): string;
|
31
|
-
buildPostFilterConditionExpression(postFilterConditionState: PostFilterConditionState): ValueSpecification | undefined;
|
31
|
+
buildPostFilterConditionExpression(postFilterConditionState: PostFilterConditionState, parentExpression: LambdaFunction | undefined): ValueSpecification | undefined;
|
32
32
|
buildPostFilterConditionState(postFilterState: QueryBuilderPostFilterState, expression: SimpleFunctionExpression): PostFilterConditionState | undefined;
|
33
33
|
get hashCode(): string;
|
34
34
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderPostFilterOperator_In.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,IAAI,EACT,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,
|
1
|
+
{"version":3,"file":"QueryBuilderPostFilterOperator_In.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,IAAI,EACT,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,cAAc,EAQpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,KAAK,QAAQ,EAEd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAEtF,OAAO,EAEL,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EACjC,MAAM,mCAAmC,CAAC;AAU3C,qBAAa,iCACX,SAAQ,8BACR,YAAW,QAAQ;IAEnB,QAAQ,IAAI,MAAM;IAIlB,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO;IAgBzC,8BAA8B,CAC5B,wBAAwB,EAAE,wBAAwB,GACjD,OAAO;IAmDV,8BAA8B,CAC5B,wBAAwB,EAAE,wBAAwB,GACjD,kBAAkB;IAUrB,kCAAkC,CAChC,wBAAwB,EAAE,wBAAwB,EAClD,gBAAgB,EAAE,cAAc,GAAG,SAAS,GAC3C,kBAAkB,GAAG,SAAS;IASjC,6BAA6B,CAC3B,eAAe,EAAE,2BAA2B,EAC5C,UAAU,EAAE,kBAAkB,GAC7B,wBAAwB,GAAG,SAAS;IASvC,IAAI,QAAQ,IAAI,MAAM,CAIrB;CACF;AAED,qBAAa,oCAAqC,SAAQ,iCAAiC;IAChF,QAAQ,IAAI,MAAM;IAIlB,kCAAkC,CACzC,wBAAwB,EAAE,wBAAwB,EAClD,gBAAgB,EAAE,cAAc,GAAG,SAAS,GAC3C,kBAAkB,GAAG,SAAS;IAQxB,6BAA6B,CACpC,eAAe,EAAE,2BAA2B,EAC5C,UAAU,EAAE,wBAAwB,GACnC,wBAAwB,GAAG,SAAS;IAOvC,IAAa,QAAQ,IAAI,MAAM,CAI9B;CACF"}
|
package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js
CHANGED
@@ -18,7 +18,7 @@ import { guaranteeNonNullable, hashArray, } from '@finos/legend-shared';
|
|
18
18
|
import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js';
|
19
19
|
import { buildPostFilterConditionState } from '../QueryBuilderPostFilterStateBuilder.js';
|
20
20
|
import { PostFilterValueSpecConditionValueState, } from '../QueryBuilderPostFilterState.js';
|
21
|
-
import {
|
21
|
+
import { buildPostFilterConditionExpressionHelper } from './QueryBuilderPostFilterOperatorValueSpecificationBuilder.js';
|
22
22
|
import { buildNotExpression, getCollectionValueSpecificationType, unwrapNotExpression, } from '../../../../QueryBuilderValueSpecificationHelper.js';
|
23
23
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
|
24
24
|
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../../QueryBuilderStateHashUtils.js';
|
@@ -81,8 +81,8 @@ export class QueryBuilderPostFilterOperator_In extends QueryBuilderPostFilterOpe
|
|
81
81
|
const propertyType = guaranteeNonNullable(postFilterConditionState.leftConditionValue.getColumnType());
|
82
82
|
return new CollectionInstanceValue(Multiplicity.ONE, GenericTypeExplicitReference.create(new GenericType(propertyType)));
|
83
83
|
}
|
84
|
-
buildPostFilterConditionExpression(postFilterConditionState) {
|
85
|
-
return
|
84
|
+
buildPostFilterConditionExpression(postFilterConditionState, parentExpression) {
|
85
|
+
return buildPostFilterConditionExpressionHelper(postFilterConditionState, this, QUERY_BUILDER_SUPPORTED_FUNCTIONS.IN, parentExpression);
|
86
86
|
}
|
87
87
|
buildPostFilterConditionState(postFilterState, expression) {
|
88
88
|
return buildPostFilterConditionState(postFilterState, expression, QUERY_BUILDER_SUPPORTED_FUNCTIONS.IN, this);
|
@@ -97,8 +97,8 @@ export class QueryBuilderPostFilterOperator_NotIn extends QueryBuilderPostFilter
|
|
97
97
|
getLabel() {
|
98
98
|
return `is not in list of`;
|
99
99
|
}
|
100
|
-
buildPostFilterConditionExpression(postFilterConditionState) {
|
101
|
-
const expression = super.buildPostFilterConditionExpression(postFilterConditionState);
|
100
|
+
buildPostFilterConditionExpression(postFilterConditionState, parentExpression) {
|
101
|
+
const expression = super.buildPostFilterConditionExpression(postFilterConditionState, parentExpression);
|
102
102
|
return expression ? buildNotExpression(expression) : undefined;
|
103
103
|
}
|
104
104
|
buildPostFilterConditionState(postFilterState, expression) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderPostFilterOperator_In.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
1
|
+
{"version":3,"file":"QueryBuilderPostFilterOperator_In.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAML,uBAAuB,EACvB,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,4BAA4B,EAC5B,WAAW,EACX,YAAY,GACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,oBAAoB,EAEpB,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AACzF,OAAO,EACL,sCAAsC,GAGvC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,wCAAwC,EAAE,MAAM,8DAA8D,CAAC;AACxH,OAAO,EACL,kBAAkB,EAClB,mCAAmC,EACnC,mBAAmB,GACpB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,iCAAiC,EAAE,MAAM,oDAAoD,CAAC;AACvG,OAAO,EAAE,kCAAkC,EAAE,MAAM,2CAA2C,CAAC;AAE/F,MAAM,OAAO,iCACX,SAAQ,8BAA8B;IAGtC,QAAQ;QACN,OAAO,eAAe,CAAC;IACzB,CAAC;IAED,oBAAoB,CAAC,IAAU;QAC7B,OAAO,CAEH;YACE,cAAc,CAAC,MAAM;YACrB,cAAc,CAAC,MAAM;YACrB,cAAc,CAAC,OAAO;YACtB,cAAc,CAAC,OAAO;YACtB,cAAc,CAAC,KAAK;SAEvB,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;YACrB,6FAA6F;YAC7F,IAAI,YAAY,WAAW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AC,UAAU,CAAC,CAAC;QACxD,OAAO,eAAe;YACpB,CAAC,CAAC,KAAK,CAAC,6BAA6B,CAAC,eAAe,EAAE,eAAe,CAAC;YACvE,CAAC,CAAC,SAAS,CAAC;IAChB,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,2BAA2B;SAC/D,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -13,7 +13,7 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { type Type, type ValueSpecification, type FunctionExpression } from '@finos/legend-graph';
|
16
|
+
import { type Type, type ValueSpecification, type FunctionExpression, type LambdaFunction } from '@finos/legend-graph';
|
17
17
|
import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js';
|
18
18
|
import { type PostFilterConditionState, type QueryBuilderPostFilterState } from '../QueryBuilderPostFilterState.js';
|
19
19
|
import { type Hashable } from '@finos/legend-shared';
|
@@ -25,7 +25,7 @@ export declare class QueryBuilderPostFilterOperator_IsEmpty extends QueryBuilder
|
|
25
25
|
isCompatibleWithConditionValue(postFilterConditionState: PostFilterConditionState): boolean;
|
26
26
|
isCompatibleWithPostFilterColumn(postFilterState: PostFilterConditionState): boolean;
|
27
27
|
getDefaultFilterConditionValue(postFilterConditionState: PostFilterConditionState): ValueSpecification | undefined;
|
28
|
-
buildPostFilterConditionExpression(postFilterConditionState: PostFilterConditionState): ValueSpecification | undefined;
|
28
|
+
buildPostFilterConditionExpression(postFilterConditionState: PostFilterConditionState, parentExpression: LambdaFunction | undefined): ValueSpecification | undefined;
|
29
29
|
buildPostFilterConditionState(postFilterState: QueryBuilderPostFilterState, expression: FunctionExpression): PostFilterConditionState | undefined;
|
30
30
|
get hashCode(): string;
|
31
31
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderPostFilterOperator_IsEmpty.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,IAAI,EACT,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,
|
1
|
+
{"version":3,"file":"QueryBuilderPostFilterOperator_IsEmpty.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,IAAI,EACT,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EAGpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAEtF,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAEjC,MAAM,mCAAmC,CAAC;AAI3C,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAEhE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAEvF,qBAAa,sCACX,SAAQ,8BACR,YAAW,QAAQ;IAEnB,QAAQ,IAAI,MAAM;IAIT,kBAAkB,IAAI,iBAAiB,GAAG,SAAS;IAI5D,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO;IAIzC,8BAA8B,CAC5B,wBAAwB,EAAE,wBAAwB,GACjD,OAAO;IAWD,gCAAgC,CACvC,eAAe,EAAE,wBAAwB,GACxC,OAAO;IAiBV,8BAA8B,CAC5B,wBAAwB,EAAE,wBAAwB,GACjD,kBAAkB,GAAG,SAAS;IAIjC,kCAAkC,CAChC,wBAAwB,EAAE,wBAAwB,EAClD,gBAAgB,EAAE,cAAc,GAAG,SAAS,GAC3C,kBAAkB,GAAG,SAAS;IASjC,6BAA6B,CAC3B,eAAe,EAAE,2BAA2B,EAC5C,UAAU,EAAE,kBAAkB,GAC7B,wBAAwB,GAAG,SAAS;IASvC,IAAI,QAAQ,IAAI,MAAM,CAIrB;CACF;AAED,qBAAa,yCAA0C,SAAQ,sCAAsC;IAC1F,QAAQ,IAAI,MAAM;IAIlB,kBAAkB,IAAI,iBAAiB,GAAG,SAAS;IAI5D,IAAa,QAAQ,IAAI,MAAM,CAI9B;CACF"}
|
@@ -18,7 +18,7 @@ import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperato
|
|
18
18
|
import { buildPostFilterConditionState } from '../QueryBuilderPostFilterStateBuilder.js';
|
19
19
|
import { PostFilterValueSpecConditionValueState, } from '../QueryBuilderPostFilterState.js';
|
20
20
|
import { QueryBuilderSimpleProjectionColumnState } from '../../projection/QueryBuilderProjectionColumnState.js';
|
21
|
-
import {
|
21
|
+
import { buildPostFilterConditionExpressionHelper } from './QueryBuilderPostFilterOperatorValueSpecificationBuilder.js';
|
22
22
|
import { isPropertyExpressionChainOptional } from '../../../../QueryBuilderValueSpecificationHelper.js';
|
23
23
|
import { hashArray } from '@finos/legend-shared';
|
24
24
|
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../../QueryBuilderStateHashUtils.js';
|
@@ -56,8 +56,8 @@ export class QueryBuilderPostFilterOperator_IsEmpty extends QueryBuilderPostFilt
|
|
56
56
|
getDefaultFilterConditionValue(postFilterConditionState) {
|
57
57
|
return undefined;
|
58
58
|
}
|
59
|
-
buildPostFilterConditionExpression(postFilterConditionState) {
|
60
|
-
return
|
59
|
+
buildPostFilterConditionExpression(postFilterConditionState, parentExpression) {
|
60
|
+
return buildPostFilterConditionExpressionHelper(postFilterConditionState, this, undefined, parentExpression);
|
61
61
|
}
|
62
62
|
buildPostFilterConditionState(postFilterState, expression) {
|
63
63
|
return buildPostFilterConditionState(postFilterState, expression, undefined, this);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderPostFilterOperator_IsEmpty.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
1
|
+
{"version":3,"file":"QueryBuilderPostFilterOperator_IsEmpty.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAKL,WAAW,EACX,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AACzF,OAAO,EAGL,sCAAsC,GACvC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,uCAAuC,EAAE,MAAM,uDAAuD,CAAC;AAChH,OAAO,EAAE,wCAAwC,EAAE,MAAM,8DAA8D,CAAC;AACxH,OAAO,EAAE,iCAAiC,EAAE,MAAM,qDAAqD,CAAC;AACxG,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,kCAAkC,EAAE,MAAM,2CAA2C,CAAC;AAC/F,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAEvF,MAAM,OAAO,sCACX,SAAQ,8BAA8B;IAGtC,QAAQ;QACN,OAAO,UAAU,CAAC;IACpB,CAAC;IAEQ,kBAAkB;QACzB,OAAO,iBAAiB,CAAC,OAAO,CAAC;IACnC,CAAC;IAED,oBAAoB,CAAC,IAAU;QAC7B,OAAO,IAAI,YAAY,aAAa,IAAI,IAAI,YAAY,WAAW,CAAC;IACtE,CAAC;IAED,8BAA8B,CAC5B,wBAAkD;QAElD,IACE,wBAAwB,CAAC,mBAAmB;YAC1C,sCAAsC;YACxC,wBAAwB,CAAC,mBAAmB,CAAC,KAAK,KAAK,SAAS,EAChE,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAEQ,gCAAgC,CACvC,eAAyC;QAEzC,MAAM,UAAU,GAAG,eAAe,CAAC,kBAAkB,CAAC,aAAa,EAAE,CAAC;QACtE,IAAI,UAAU,IAAI,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC,EAAE,CAAC;YACxD,IACE,eAAe,CAAC,kBAAkB;gBAClC,uCAAuC,EACvC,CAAC;gBACD,OAAO,iCAAiC,CACtC,eAAe,CAAC,kBAAkB,CAAC,uBAAuB;qBACvD,kBAAkB,CACtB,CAAC;YACJ,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,8BAA8B,CAC5B,wBAAkD;QAElD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,kCAAkC,CAChC,wBAAkD,EAClD,gBAA4C;QAE5C,OAAO,wCAAwC,CAC7C,wBAAwB,EACxB,IAAI,EACJ,SAAS,EACT,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED,6BAA6B,CAC3B,eAA4C,EAC5C,UAA8B;QAE9B,OAAO,6BAA6B,CAClC,eAAe,EACf,UAAU,EACV,SAAS,EACT,IAAI,CACL,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,6BAA6B;SACjE,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,yCAA0C,SAAQ,sCAAsC;IAC1F,QAAQ;QACf,OAAO,cAAc,CAAC;IACxB,CAAC;IAEQ,kBAAkB;QACzB,OAAO,iBAAiB,CAAC,WAAW,CAAC;IACvC,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,iCAAiC;SACrE,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -13,7 +13,7 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { type Type, type ValueSpecification, type FunctionExpression } from '@finos/legend-graph';
|
16
|
+
import { type Type, type ValueSpecification, type FunctionExpression, type LambdaFunction } from '@finos/legend-graph';
|
17
17
|
import { type Hashable } from '@finos/legend-shared';
|
18
18
|
import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js';
|
19
19
|
import type { PostFilterConditionState, QueryBuilderPostFilterState } from '../QueryBuilderPostFilterState.js';
|
@@ -22,7 +22,7 @@ export declare class QueryBuilderPostFilterOperator_LessThan extends QueryBuilde
|
|
22
22
|
isCompatibleWithType(type: Type): boolean;
|
23
23
|
isCompatibleWithConditionValue(postFilterConditionState: PostFilterConditionState): boolean;
|
24
24
|
getDefaultFilterConditionValue(postFilterConditionState: PostFilterConditionState): ValueSpecification;
|
25
|
-
buildPostFilterConditionExpression(postFilterConditionState: PostFilterConditionState): ValueSpecification | undefined;
|
25
|
+
buildPostFilterConditionExpression(postFilterConditionState: PostFilterConditionState, parentExpression: LambdaFunction | undefined): ValueSpecification | undefined;
|
26
26
|
buildPostFilterConditionState(postFilterState: QueryBuilderPostFilterState, expression: FunctionExpression): PostFilterConditionState | undefined;
|
27
27
|
get hashCode(): string;
|
28
28
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderPostFilterOperator_LessThan.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,IAAI,EACT,KAAK,kBAAkB,EAEvB,KAAK,kBAAkB,
|
1
|
+
{"version":3,"file":"QueryBuilderPostFilterOperator_LessThan.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,IAAI,EACT,KAAK,kBAAkB,EAEvB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EAGpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,KAAK,QAAQ,EAGd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAEtF,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,mCAAmC,CAAC;AAO3C,qBAAa,uCACX,SAAQ,8BACR,YAAW,QAAQ;IAEnB,QAAQ,IAAI,MAAM;IAIlB,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO;IAczC,8BAA8B,CAC5B,wBAAwB,EAAE,wBAAwB,GACjD,OAAO;IAWV,8BAA8B,CAC5B,wBAAwB,EAAE,wBAAwB,GACjD,kBAAkB;IA4BrB,kCAAkC,CAChC,wBAAwB,EAAE,wBAAwB,EAClD,gBAAgB,EAAE,cAAc,GAAG,SAAS,GAC3C,kBAAkB,GAAG,SAAS;IAcjC,6BAA6B,CAC3B,eAAe,EAAE,2BAA2B,EAC5C,UAAU,EAAE,kBAAkB,GAC7B,wBAAwB,GAAG,SAAS;IAevC,IAAI,QAAQ,IAAI,MAAM,CAIrB;CACF"}
|
@@ -18,7 +18,7 @@ import { guaranteeNonNullable, hashArray, UnsupportedOperationError, } from '@fi
|
|
18
18
|
import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js';
|
19
19
|
import { buildPostFilterConditionState } from '../QueryBuilderPostFilterStateBuilder.js';
|
20
20
|
import { isTypeCompatibleForAssignment } from '../../../../QueryBuilderValueSpecificationHelper.js';
|
21
|
-
import {
|
21
|
+
import { buildPostFilterConditionExpressionHelper } from './QueryBuilderPostFilterOperatorValueSpecificationBuilder.js';
|
22
22
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
|
23
23
|
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../../QueryBuilderStateHashUtils.js';
|
24
24
|
import { buildDefaultInstanceValue } from '../../../../shared/ValueSpecificationEditorHelper.js';
|
@@ -61,13 +61,13 @@ export class QueryBuilderPostFilterOperator_LessThan extends QueryBuilderPostFil
|
|
61
61
|
throw new UnsupportedOperationError(`Can't get default value for post-filter operator '${this.getLabel()}' when the LHS property is of type '${propertyType?.path}'`);
|
62
62
|
}
|
63
63
|
}
|
64
|
-
buildPostFilterConditionExpression(postFilterConditionState) {
|
65
|
-
return
|
64
|
+
buildPostFilterConditionExpression(postFilterConditionState, parentExpression) {
|
65
|
+
return buildPostFilterConditionExpressionHelper(postFilterConditionState, this, postFilterConditionState.leftConditionValue.getColumnType() ===
|
66
66
|
PrimitiveType.DATETIME &&
|
67
67
|
postFilterConditionState.rightConditionValue.type !==
|
68
68
|
PrimitiveType.DATETIME
|
69
69
|
? QUERY_BUILDER_SUPPORTED_FUNCTIONS.IS_BEFORE_DAY
|
70
|
-
: QUERY_BUILDER_SUPPORTED_FUNCTIONS.LESS_THAN);
|
70
|
+
: QUERY_BUILDER_SUPPORTED_FUNCTIONS.LESS_THAN, parentExpression);
|
71
71
|
}
|
72
72
|
buildPostFilterConditionState(postFilterState, expression) {
|
73
73
|
return buildPostFilterConditionState(postFilterState, expression, expression.parametersValues[0] instanceof AbstractPropertyExpression &&
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderPostFilterOperator_LessThan.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,0BAA0B,
|
1
|
+
{"version":3,"file":"QueryBuilderPostFilterOperator_LessThan.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,0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0B;YAClE,UAAU,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO;iBAChE,IAAI,KAAK,cAAc,CAAC,QAAQ;YACnC,UAAU,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI;gBAC7D,cAAc,CAAC,QAAQ;YACzB,CAAC,CAAC,iCAAiC,CAAC,aAAa;YACjD,CAAC,CAAC,iCAAiC,CAAC,SAAS,EAC/C,IAAI,CACL,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,8BAA8B;SAClE,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -13,13 +13,13 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { type FunctionExpression, type ValueSpecification } from '@finos/legend-graph';
|
16
|
+
import { type FunctionExpression, type ValueSpecification, type LambdaFunction } from '@finos/legend-graph';
|
17
17
|
import type { PostFilterConditionState, QueryBuilderPostFilterState } from '../QueryBuilderPostFilterState.js';
|
18
18
|
import { QueryBuilderPostFilterOperator_LessThan } from './QueryBuilderPostFilterOperator_LessThan.js';
|
19
19
|
import { type Hashable } from '@finos/legend-shared';
|
20
20
|
export declare class QueryBuilderPostFilterOperator_LessThanEqual extends QueryBuilderPostFilterOperator_LessThan implements Hashable {
|
21
21
|
getLabel(): string;
|
22
|
-
buildPostFilterConditionExpression(postFilterConditionState: PostFilterConditionState): ValueSpecification | undefined;
|
22
|
+
buildPostFilterConditionExpression(postFilterConditionState: PostFilterConditionState, parentExpression: LambdaFunction | undefined): ValueSpecification | undefined;
|
23
23
|
buildPostFilterConditionState(postFilterState: QueryBuilderPostFilterState, expression: FunctionExpression): PostFilterConditionState | undefined;
|
24
24
|
get hashCode(): string;
|
25
25
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderPostFilterOperator_LessThanEqual.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,
|
1
|
+
{"version":3,"file":"QueryBuilderPostFilterOperator_LessThanEqual.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EAIpB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EAAE,uCAAuC,EAAE,MAAM,8CAA8C,CAAC;AAEvG,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,qBAAa,4CACX,SAAQ,uCACR,YAAW,QAAQ;IAEV,QAAQ,IAAI,MAAM;IAIlB,kCAAkC,CACzC,wBAAwB,EAAE,wBAAwB,EAClD,gBAAgB,EAAE,cAAc,GAAG,SAAS,GAC3C,kBAAkB,GAAG,SAAS;IAcxB,6BAA6B,CACpC,eAAe,EAAE,2BAA2B,EAC5C,UAAU,EAAE,kBAAkB,GAC7B,wBAAwB,GAAG,SAAS;IAevC,IAAa,QAAQ,IAAI,MAAM,CAI9B;CACF"}
|
@@ -15,7 +15,7 @@
|
|
15
15
|
*/
|
16
16
|
import { AbstractPropertyExpression, PRIMITIVE_TYPE, PrimitiveType, } from '@finos/legend-graph';
|
17
17
|
import { buildPostFilterConditionState } from '../QueryBuilderPostFilterStateBuilder.js';
|
18
|
-
import {
|
18
|
+
import { buildPostFilterConditionExpressionHelper } from './QueryBuilderPostFilterOperatorValueSpecificationBuilder.js';
|
19
19
|
import { QueryBuilderPostFilterOperator_LessThan } from './QueryBuilderPostFilterOperator_LessThan.js';
|
20
20
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
|
21
21
|
import { hashArray } from '@finos/legend-shared';
|
@@ -24,13 +24,13 @@ export class QueryBuilderPostFilterOperator_LessThanEqual extends QueryBuilderPo
|
|
24
24
|
getLabel() {
|
25
25
|
return '<=';
|
26
26
|
}
|
27
|
-
buildPostFilterConditionExpression(postFilterConditionState) {
|
28
|
-
return
|
27
|
+
buildPostFilterConditionExpression(postFilterConditionState, parentExpression) {
|
28
|
+
return buildPostFilterConditionExpressionHelper(postFilterConditionState, this, postFilterConditionState.leftConditionValue.getColumnType() ===
|
29
29
|
PrimitiveType.DATETIME &&
|
30
30
|
postFilterConditionState.rightConditionValue.type !==
|
31
31
|
PrimitiveType.DATETIME
|
32
32
|
? QUERY_BUILDER_SUPPORTED_FUNCTIONS.IS_ON_OR_BEFORE_DAY
|
33
|
-
: QUERY_BUILDER_SUPPORTED_FUNCTIONS.LESS_THAN_EQUAL);
|
33
|
+
: QUERY_BUILDER_SUPPORTED_FUNCTIONS.LESS_THAN_EQUAL, parentExpression);
|
34
34
|
}
|
35
35
|
buildPostFilterConditionState(postFilterState, expression) {
|
36
36
|
return buildPostFilterConditionState(postFilterState, expression, expression.parametersValues[0] instanceof AbstractPropertyExpression &&
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderPostFilterOperator_LessThanEqual.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
1
|
+
{"version":3,"file":"QueryBuilderPostFilterOperator_LessThanEqual.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/t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AAgB,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI;gBAC7D,cAAc,CAAC,QAAQ;YACzB,CAAC,CAAC,iCAAiC,CAAC,mBAAmB;YACvD,CAAC,CAAC,iCAAiC,CAAC,eAAe,EACrD,IAAI,CACL,CAAC;IACJ,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,oCAAoC;SACxE,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -13,7 +13,7 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { type Type, type ValueSpecification, type SimpleFunctionExpression, type FunctionExpression } from '@finos/legend-graph';
|
16
|
+
import { type Type, type ValueSpecification, type SimpleFunctionExpression, type FunctionExpression, type LambdaFunction } from '@finos/legend-graph';
|
17
17
|
import { type Hashable } from '@finos/legend-shared';
|
18
18
|
import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js';
|
19
19
|
import type { PostFilterConditionState, QueryBuilderPostFilterState } from '../QueryBuilderPostFilterState.js';
|
@@ -22,13 +22,13 @@ export declare class QueryBuilderPostFilterOperator_StartWith extends QueryBuild
|
|
22
22
|
isCompatibleWithType(type: Type): boolean;
|
23
23
|
isCompatibleWithConditionValue(postFilterConditionState: PostFilterConditionState): boolean;
|
24
24
|
getDefaultFilterConditionValue(postFilterConditionState: PostFilterConditionState): ValueSpecification;
|
25
|
-
buildPostFilterConditionExpression(postFilterConditionState: PostFilterConditionState): ValueSpecification | undefined;
|
25
|
+
buildPostFilterConditionExpression(postFilterConditionState: PostFilterConditionState, parentExpression: LambdaFunction | undefined): ValueSpecification | undefined;
|
26
26
|
buildPostFilterConditionState(postFilterState: QueryBuilderPostFilterState, expression: FunctionExpression): PostFilterConditionState | undefined;
|
27
27
|
get hashCode(): string;
|
28
28
|
}
|
29
29
|
export declare class QueryBuilderPostFilterOperator_NotStartWith extends QueryBuilderPostFilterOperator_StartWith implements Hashable {
|
30
30
|
getLabel(): string;
|
31
|
-
buildPostFilterConditionExpression(postFilterConditionState: PostFilterConditionState): ValueSpecification | undefined;
|
31
|
+
buildPostFilterConditionExpression(postFilterConditionState: PostFilterConditionState, parentExpression: LambdaFunction | undefined): ValueSpecification | undefined;
|
32
32
|
buildPostFilterConditionState(postFilterState: QueryBuilderPostFilterState, expression: SimpleFunctionExpression): PostFilterConditionState | undefined;
|
33
33
|
get hashCode(): string;
|
34
34
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderPostFilterOperator_StartWith.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,IAAI,EACT,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,
|
1
|
+
{"version":3,"file":"QueryBuilderPostFilterOperator_StartWith.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,IAAI,EACT,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,cAAc,EAGpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,QAAQ,EAGd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAEtF,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,mCAAmC,CAAC;AAU3C,qBAAa,wCACX,SAAQ,8BACR,YAAW,QAAQ;IAEnB,QAAQ,IAAI,MAAM;IAIlB,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO;IAIzC,8BAA8B,CAC5B,wBAAwB,EAAE,wBAAwB,GACjD,OAAO;IAOV,8BAA8B,CAC5B,wBAAwB,EAAE,wBAAwB,GACjD,kBAAkB;IAsBrB,kCAAkC,CAChC,wBAAwB,EAAE,wBAAwB,EAClD,gBAAgB,EAAE,cAAc,GAAG,SAAS,GAC3C,kBAAkB,GAAG,SAAS;IASjC,6BAA6B,CAC3B,eAAe,EAAE,2BAA2B,EAC5C,UAAU,EAAE,kBAAkB,GAC7B,wBAAwB,GAAG,SAAS;IASvC,IAAI,QAAQ,IAAI,MAAM,CAIrB;CACF;AACD,qBAAa,2CACX,SAAQ,wCACR,YAAW,QAAQ;IAEV,QAAQ,IAAI,MAAM;IAIlB,kCAAkC,CACzC,wBAAwB,EAAE,wBAAwB,EAClD,gBAAgB,EAAE,cAAc,GAAG,SAAS,GAC3C,kBAAkB,GAAG,SAAS;IAQxB,6BAA6B,CACpC,eAAe,EAAE,2BAA2B,EAC5C,UAAU,EAAE,wBAAwB,GACnC,wBAAwB,GAAG,SAAS;IAOvC,IAAa,QAAQ,IAAI,MAAM,CAI9B;CACF"}
|
@@ -18,7 +18,7 @@ import { hashArray, UnsupportedOperationError, } from '@finos/legend-shared';
|
|
18
18
|
import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js';
|
19
19
|
import { buildPostFilterConditionState } from '../QueryBuilderPostFilterStateBuilder.js';
|
20
20
|
import { buildNotExpression, unwrapNotExpression, } from '../../../../QueryBuilderValueSpecificationHelper.js';
|
21
|
-
import {
|
21
|
+
import { buildPostFilterConditionExpressionHelper } from './QueryBuilderPostFilterOperatorValueSpecificationBuilder.js';
|
22
22
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graph/QueryBuilderMetaModelConst.js';
|
23
23
|
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../../QueryBuilderStateHashUtils.js';
|
24
24
|
import { buildDefaultInstanceValue } from '../../../../shared/ValueSpecificationEditorHelper.js';
|
@@ -46,8 +46,8 @@ export class QueryBuilderPostFilterOperator_StartWith extends QueryBuilderPostFi
|
|
46
46
|
throw new UnsupportedOperationError(`Can't get default value for post-filter operator '${this.getLabel()}' when the LHS property is of type '${propertyType?.path}'`);
|
47
47
|
}
|
48
48
|
}
|
49
|
-
buildPostFilterConditionExpression(postFilterConditionState) {
|
50
|
-
return
|
49
|
+
buildPostFilterConditionExpression(postFilterConditionState, parentExpression) {
|
50
|
+
return buildPostFilterConditionExpressionHelper(postFilterConditionState, this, QUERY_BUILDER_SUPPORTED_FUNCTIONS.STARTS_WITH, parentExpression);
|
51
51
|
}
|
52
52
|
buildPostFilterConditionState(postFilterState, expression) {
|
53
53
|
return buildPostFilterConditionState(postFilterState, expression, QUERY_BUILDER_SUPPORTED_FUNCTIONS.STARTS_WITH, this);
|
@@ -62,8 +62,8 @@ export class QueryBuilderPostFilterOperator_NotStartWith extends QueryBuilderPos
|
|
62
62
|
getLabel() {
|
63
63
|
return `doesn't start with`;
|
64
64
|
}
|
65
|
-
buildPostFilterConditionExpression(postFilterConditionState) {
|
66
|
-
const expression = super.buildPostFilterConditionExpression(postFilterConditionState);
|
65
|
+
buildPostFilterConditionExpression(postFilterConditionState, parentExpression) {
|
66
|
+
const expression = super.buildPostFilterConditionExpression(postFilterConditionState, parentExpression);
|
67
67
|
return expression ? buildNotExpression(expression) : undefined;
|
68
68
|
}
|
69
69
|
buildPostFilterConditionState(postFilterState, expression) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderPostFilterOperator_StartWith.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
1
|
+
{"version":3,"file":"QueryBuilderPostFilterOperator_StartWith.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartW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AAC,SAAS,CAAC;IAChB,CAAC;IAED,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,mCAAmC;SACvE,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderProjectionValueSpecificationBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,cAAc,EAcpB,MAAM,qBAAqB,CAAC;AAU7B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAOvE,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,yDAAyD,CAAC;AAgMjE,eAAO,MAAM,gBAAgB,aACjB,oBAAoB,kBACd,cAAc,YACpB,2BAA2B,KACpC,
|
1
|
+
{"version":3,"file":"QueryBuilderProjectionValueSpecificationBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,cAAc,EAcpB,MAAM,qBAAqB,CAAC;AAU7B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAOvE,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,yDAAyD,CAAC;AAgMjE,eAAO,MAAM,gBAAgB,aACjB,oBAAoB,kBACd,cAAc,YACpB,2BAA2B,KACpC,IA6QF,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderProjectionValueSpecificationBuilder.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,uBAAu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AAC,YAAY;YAC5C,CAAC,CAAC,SAAS;QACf,qBAAqB,EACnB,OAAO,EAAE,wBAAwB,IAAI,CAAC,OAAO,CAAC,iBAAiB;YAC7D,CAAC,CAAC,OAAO,CAAC,qBAAqB;YAC/B,CAAC,CAAC,SAAS;KAChB,CAAC,CAAC;AACL,CAAC,CAAC"}
|
1
|
+
{"version":3,"file":"QueryBuilderProjectionValueSpecificationBuilder.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,uBAAuB,EACvB,0BAA0B,EAC1B,WAAW,EACX,4BAA4B,EAC5B,sBAAsB,EACtB,wBAAwB,EACxB,mCAAmC,EACnC,iCAAiC,EACjC,qBAAqB,EACrB,iCAAiC,EACjC,iBAAiB,EACjB,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,2CAA2C,EAC3C,uCAAuC,GACxC,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAGN,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,iCAAiC,EAAE,MAAM,iDAAiD,CAAC;AACpG,OAAO,EAAE,uCAAuC,EAAE,MAAM,kDAAkD,CAAC;AAC3G,OAAO,EACL,4BAA4B,GAE7B,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,MAAM,mEAAmE,CAAC;AACrG,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kDAAkD,CAAC;AAE3F,MAAM,mBAAmB,GAAG,CAC1B,eAAgC,EACN,EAAE,CAC5B,0BAA0B,CACxB,eAAe,CAAC,QAAQ,E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AAC,CAAC,CAAC,GAAG,eAAe,CAAC;QACzD,CAAC;IACH,CAAC;IACD,oBAAoB;IACpB,sBAAsB,CAAC,QAAQ,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;IAE7D,oBAAoB;IACpB,gBAAgB,CAAC,QAAQ,CAAC,eAAe,EAAE,cAAc,CAAC,CAAC;IAE3D,6BAA6B;IAC7B,uBAAuB,CAAC,QAAQ,CAAC,sBAAsB,EAAE,cAAc,EAAE;QACvE,eAAe,EACb,OAAO,EAAE,wBAAwB,IAAI,CAAC,OAAO,CAAC,iBAAiB;YAC7D,CAAC,CAAC,iBAAiB,CAAC,WAAW,CAAC,YAAY;YAC5C,CAAC,CAAC,SAAS;QACf,qBAAqB,EACnB,OAAO,EAAE,wBAAwB,IAAI,CAAC,OAAO,CAAC,iBAAiB;YAC7D,CAAC,CAAC,OAAO,CAAC,qBAAqB;YAC/B,CAAC,CAAC,SAAS;KAChB,CAAC,CAAC;AACL,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderRelationProjectValueSpecBuidler.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderRelationProjectValueSpecBuidler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,kBAAkB,EAEvB,wBAAwB,
|
1
|
+
{"version":3,"file":"QueryBuilderRelationProjectValueSpecBuidler.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderRelationProjectValueSpecBuidler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,kBAAkB,EAEvB,wBAAwB,EAazB,MAAM,qBAAqB,CAAC;AAM7B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,yDAAyD,CAAC;AAMjE,eAAO,MAAM,uBAAuB,wBACb,kBAAkB,YAC7B,oBAAoB,YACpB,2BAA2B,KACpC,wBAiFF,CAAC"}
|
package/lib/stores/fetch-structure/tds/projection/QueryBuilderRelationProjectValueSpecBuidler.js
CHANGED
@@ -13,18 +13,19 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { ColSpecArray, extractElementNameFromPath, SimpleFunctionExpression, ColSpecArrayInstance, Multiplicity, ColSpec, INTERNAL__UnknownValueSpecification, V1_serializeRawValueSpecification, V1_transformRawLambda, V1_GraphTransformerContextBuilder, } from '@finos/legend-graph';
|
16
|
+
import { ColSpecArray, extractElementNameFromPath, SimpleFunctionExpression, ColSpecArrayInstance, Multiplicity, ColSpec, INTERNAL__UnknownValueSpecification, V1_serializeRawValueSpecification, V1_transformRawLambda, V1_GraphTransformerContextBuilder, GenericType, GenericTypeExplicitReference, Relation_Relation, Relation_RelationalColumn, Relation_RelationType, } from '@finos/legend-graph';
|
17
17
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../graph/QueryBuilderMetaModelConst.js';
|
18
18
|
import { QueryBuilderDerivationProjectionColumnState, QueryBuilderSimpleProjectionColumnState, } from './QueryBuilderProjectionColumnState.js';
|
19
19
|
import { buildGenericLambdaFunctionInstanceValue } from '../../../QueryBuilderValueSpecificationHelper.js';
|
20
20
|
import { buildPropertyExpressionChain, } from '../../../QueryBuilderValueSpecificationBuilderHelper.js';
|
21
|
-
import { UnsupportedOperationError } from '@finos/legend-shared';
|
21
|
+
import { guaranteeNonNullable, UnsupportedOperationError, } from '@finos/legend-shared';
|
22
22
|
export const buildRelationProjection = (precedingExpression, tdsState, options) => {
|
23
|
-
const projectFunction = new SimpleFunctionExpression(extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.
|
23
|
+
const projectFunction = new SimpleFunctionExpression(extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.RELATION_PROJECT));
|
24
24
|
const queryBuilderState = tdsState.queryBuilderState;
|
25
25
|
const instanceVal = new ColSpecArrayInstance(Multiplicity.ONE, undefined);
|
26
26
|
const colSepcArray = new ColSpecArray();
|
27
27
|
instanceVal.values = [colSepcArray];
|
28
|
+
const relationType = new Relation_RelationType(Relation_RelationType.ID);
|
28
29
|
tdsState.projectionColumns.forEach((projectionColumnState) => {
|
29
30
|
const colSpec = new ColSpec();
|
30
31
|
colSepcArray.colSpecs.push(colSpec);
|
@@ -48,8 +49,17 @@ export const buildRelationProjection = (precedingExpression, tdsState, options)
|
|
48
49
|
throw new UnsupportedOperationError(`Can't build relation project() column expression: unsupported projection column state`, projectionColumnState);
|
49
50
|
}
|
50
51
|
colSpec.function1 = columnLambda;
|
52
|
+
const returnType = guaranteeNonNullable(projectionColumnState.getColumnType(), `Can't create value spec for projection column ${projectionColumnState.columnName}`);
|
53
|
+
relationType.columns.push(new Relation_RelationalColumn(projectionColumnState.columnName, returnType));
|
51
54
|
});
|
52
55
|
projectFunction.parametersValues = [precedingExpression, instanceVal];
|
56
|
+
const relationGenericType = new GenericType(Relation_Relation.INSTANCE);
|
57
|
+
const relationTypeGenericType = new GenericType(relationType);
|
58
|
+
relationGenericType.typeArguments = [
|
59
|
+
GenericTypeExplicitReference.create(relationTypeGenericType),
|
60
|
+
];
|
61
|
+
projectFunction.genericType =
|
62
|
+
GenericTypeExplicitReference.create(relationGenericType);
|
53
63
|
return projectFunction;
|
54
64
|
};
|
55
65
|
//# sourceMappingURL=QueryBuilderRelationProjectValueSpecBuidler.js.map
|
package/lib/stores/fetch-structure/tds/projection/QueryBuilderRelationProjectValueSpecBuidler.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderRelationProjectValueSpecBuidler.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderRelationProjectValueSpecBuidler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,YAAY,EAEZ,0BAA0B,EAC1B,wBAAwB,EACxB,oBAAoB,EACpB,YAAY,EACZ,OAAO,EACP,mCAAmC,EACnC,iCAAiC,EACjC,qBAAqB,EACrB,iCAAiC,
|
1
|
+
{"version":3,"file":"QueryBuilderRelationProjectValueSpecBuidler.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderRelationProjectValueSpecBuidler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,YAAY,EAEZ,0BAA0B,EAC1B,wBAAwB,EACxB,oBAAoB,EACpB,YAAY,EACZ,OAAO,EACP,mCAAmC,EACnC,iCAAiC,EACjC,qBAAqB,EACrB,iCAAiC,EACjC,WAAW,EACX,4BAA4B,EAC5B,iBAAiB,EACjB,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iCAAiC,EAAE,MAAM,iDAAiD,CAAC;AACpG,OAAO,EACL,2CAA2C,EAC3C,uCAAuC,GACxC,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,uCAAuC,EAAE,MAAM,kDAAkD,CAAC;AAC3G,OAAO,EACL,4BAA4B,GAE7B,MAAM,yDAAyD,CAAC;AACjE,OAAO,EACL,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAE9B,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,mBAAuC,EACvC,QAA8B,EAC9B,OAAqC,EACX,EAAE;IAC5B,MAAM,eAAe,GAAG,IAAI,wBAAwB,CAClD,0BAA0B,CACxB,iCAAiC,CAAC,gBAAgB,CACnD,CACF,CAAC;IACF,MAAM,iBAAiB,GAAG,QAAQ,CAAC,iBAAiB,CAAC;IAErD,MAAM,WAAW,GAAG,IAAI,oBAAoB,CAAC,YAAY,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IAE1E,MAAM,YAAY,GAAG,IAAI,YAAY,EAAE,C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AAa,EAAE,EACrC,iDAAiD,qBAAqB,CAAC,UAAU,EAAE,CACpF,CAAC;QACF,YAAY,CAAC,OAAO,CAAC,IAAI,CACvB,IAAI,yBAAyB,CAC3B,qBAAqB,CAAC,UAAU,EAChC,UAAU,CACX,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,eAAe,CAAC,gBAAgB,GAAG,CAAC,mBAAmB,EAAE,WAAW,CAAC,CAAC;IACtE,MAAM,mBAAmB,GAAG,IAAI,WAAW,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IACxE,MAAM,uBAAuB,GAAG,IAAI,WAAW,CAAC,YAAY,CAAC,CAAC;IAC9D,mBAAmB,CAAC,aAAa,GAAG;QAClC,4BAA4B,CAAC,MAAM,CAAC,uBAAuB,CAAC;KAC7D,CAAC;IACF,eAAe,CAAC,WAAW;QACzB,4BAA4B,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;IAC3D,OAAO,eAAe,CAAC;AACzB,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-query-builder",
|
3
|
-
"version": "4.14.
|
3
|
+
"version": "4.14.89",
|
4
4
|
"description": "Legend query builder core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -42,10 +42,10 @@
|
|
42
42
|
"test:watch": "jest --watch"
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
|
-
"@finos/legend-application": "15.1.
|
46
|
-
"@finos/legend-art": "7.1.
|
47
|
-
"@finos/legend-graph": "31.10.
|
48
|
-
"@finos/legend-lego": "1.2.
|
45
|
+
"@finos/legend-application": "15.1.30",
|
46
|
+
"@finos/legend-art": "7.1.57",
|
47
|
+
"@finos/legend-graph": "31.10.30",
|
48
|
+
"@finos/legend-lego": "1.2.69",
|
49
49
|
"@finos/legend-server-depot": "6.0.59",
|
50
50
|
"@finos/legend-shared": "10.0.54",
|
51
51
|
"@finos/legend-storage": "3.0.104",
|
@@ -268,8 +268,6 @@ export class QueryBuilder_PureProtocolProcessorPlugin extends PureProtocolProces
|
|
268
268
|
override V1_getExtraPropertyExpressionTypeInferrers(): V1_PropertyExpressionTypeInferrer[] {
|
269
269
|
return [
|
270
270
|
(inferredVariable: ValueSpecification | undefined): Type | undefined => {
|
271
|
-
let inferredType: Type | undefined =
|
272
|
-
inferredVariable?.genericType?.value.rawType;
|
273
271
|
if (
|
274
272
|
inferredVariable instanceof SimpleFunctionExpression &&
|
275
273
|
matchFunctionName(
|
@@ -279,10 +277,11 @@ export class QueryBuilder_PureProtocolProcessorPlugin extends PureProtocolProces
|
|
279
277
|
),
|
280
278
|
)
|
281
279
|
) {
|
282
|
-
|
283
|
-
|
280
|
+
return V1_buildSubTypePropertyExpressionTypeInference(
|
281
|
+
inferredVariable,
|
282
|
+
);
|
284
283
|
}
|
285
|
-
return
|
284
|
+
return undefined;
|
286
285
|
},
|
287
286
|
];
|
288
287
|
}
|