@finos/legend-query-builder 4.11.17 → 4.13.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningEditor.js +19 -33
- package/lib/components/explorer/QueryBuilderMilestoningEditor.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +28 -2
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
- package/lib/graph/QueryBuilderMetaModelConst.d.ts +7 -3
- package/lib/graph/QueryBuilderMetaModelConst.d.ts.map +1 -1
- package/lib/graph/QueryBuilderMetaModelConst.js +8 -2
- package/lib/graph/QueryBuilderMetaModelConst.js.map +1 -1
- package/lib/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js +9 -3
- package/lib/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts +2 -0
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js +20 -0
- package/lib/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/QueryBuilderState.d.ts +6 -1
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +15 -5
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.js +50 -5
- package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts +1 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js +49 -12
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js +4 -2
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.d.ts +2 -0
- package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.js +6 -0
- package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js +4 -2
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts +1 -0
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js +30 -4
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.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 +16 -0
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.d.ts +1 -0
- package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.d.ts.map +1 -1
- package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.js +4 -1
- package/lib/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.d.ts +1 -0
- package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.d.ts.map +1 -1
- package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.js +10 -1
- package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningHelper.d.ts.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningHelper.js +5 -0
- package/lib/stores/milestoning/QueryBuilderMilestoningHelper.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningImplementation.d.ts +4 -0
- package/lib/stores/milestoning/QueryBuilderMilestoningImplementation.d.ts.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningImplementation.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts +15 -0
- package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningState.js +191 -3
- package/lib/stores/milestoning/QueryBuilderMilestoningState.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.d.ts +1 -0
- package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.d.ts.map +1 -1
- package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.js +10 -1
- package/lib/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.js.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkStateBuilder.d.ts.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkStateBuilder.js +4 -2
- package/lib/stores/watermark/QueryBuilderWatermarkStateBuilder.js.map +1 -1
- package/package.json +5 -5
- package/src/components/explorer/QueryBuilderMilestoningEditor.tsx +106 -35
- package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +84 -0
- package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +13 -0
- package/src/graph/QueryBuilderMetaModelConst.ts +9 -2
- package/src/graph-manager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +30 -1
- package/src/graph-manager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts +65 -0
- package/src/stores/QueryBuilderState.ts +25 -6
- package/src/stores/QueryBuilderStateBuilder.ts +124 -5
- package/src/stores/QueryBuilderValueSpecificationBuilder.ts +76 -12
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.ts +4 -1
- package/src/stores/fetch-structure/tds/QueryResultSetModifierState.ts +7 -0
- package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.ts +7 -2
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts +68 -1
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +27 -0
- package/src/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.ts +9 -0
- package/src/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.ts +22 -1
- package/src/stores/milestoning/QueryBuilderMilestoningHelper.ts +7 -0
- package/src/stores/milestoning/QueryBuilderMilestoningImplementation.ts +7 -0
- package/src/stores/milestoning/QueryBuilderMilestoningState.ts +279 -1
- package/src/stores/milestoning/QueryBuilderProcessingTemporalMilestoningImplementation.ts +22 -1
- package/src/stores/watermark/QueryBuilderWatermarkStateBuilder.ts +4 -2
@@ -13,22 +13,29 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { guaranteeNonNullable, guaranteeType } from '@finos/legend-shared';
|
16
|
+
import { UnsupportedOperationError, guaranteeNonNullable, guaranteeType, } from '@finos/legend-shared';
|
17
17
|
import { Multiplicity, getMilestoneTemporalStereotype, extractElementNameFromPath, InstanceValue, PackageableElementExplicitReference, CORE_PURE_PATH, FunctionType, GenericType, GenericTypeExplicitReference, LambdaFunction, SimpleFunctionExpression, SUPPORTED_FUNCTIONS, RuntimePointer, } from '@finos/legend-graph';
|
18
18
|
import { buildFilterExpression } from './filter/QueryBuilderFilterValueSpecificationBuilder.js';
|
19
|
-
import {
|
19
|
+
import { QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS } from '../graph/QueryBuilderMetaModelConst.js';
|
20
20
|
import { buildWatermarkExpression } from './watermark/QueryBuilderWatermarkValueSpecificationBuilder.js';
|
21
21
|
import { buildExecutionQueryFromLambdaFunction } from './shared/LambdaParameterState.js';
|
22
22
|
import { QueryBuilderEmbeddedFromExecutionContextState, } from './QueryBuilderExecutionContextState.js';
|
23
23
|
export const buildGetAllFunction = (_class, multiplicity) => {
|
24
|
-
const _func = new SimpleFunctionExpression(extractElementNameFromPath(
|
24
|
+
const _func = new SimpleFunctionExpression(extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL));
|
25
|
+
const classInstance = new InstanceValue(multiplicity, GenericTypeExplicitReference.create(new GenericType(_class)));
|
26
|
+
classInstance.values[0] = PackageableElementExplicitReference.create(_class);
|
27
|
+
_func.parametersValues.push(classInstance);
|
28
|
+
return _func;
|
29
|
+
};
|
30
|
+
export const buildGetAllVersionsInRangeFunction = (_class, multiplicity) => {
|
31
|
+
const _func = new SimpleFunctionExpression(extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL_VERSIONS_IN_RANGE));
|
25
32
|
const classInstance = new InstanceValue(multiplicity, GenericTypeExplicitReference.create(new GenericType(_class)));
|
26
33
|
classInstance.values[0] = PackageableElementExplicitReference.create(_class);
|
27
34
|
_func.parametersValues.push(classInstance);
|
28
35
|
return _func;
|
29
36
|
};
|
30
37
|
const buildGetAllVersionsFunction = (_class, multiplicity) => {
|
31
|
-
const _func = new SimpleFunctionExpression(extractElementNameFromPath(
|
38
|
+
const _func = new SimpleFunctionExpression(extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL_VERSIONS));
|
32
39
|
const classInstance = new InstanceValue(multiplicity, GenericTypeExplicitReference.create(new GenericType(_class)));
|
33
40
|
classInstance.values[0] = PackageableElementExplicitReference.create(_class);
|
34
41
|
_func.parametersValues.push(classInstance);
|
@@ -72,15 +79,45 @@ export const buildLambdaFunction = (queryBuilderState, options) => {
|
|
72
79
|
lambdaFunction.expressionSequence[0] = getAllVersionsFunction;
|
73
80
|
}
|
74
81
|
else {
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
+
switch (queryBuilderState.getAllFunction) {
|
83
|
+
case QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL_VERSIONS: {
|
84
|
+
if (milestoningStereotype) {
|
85
|
+
const getAllVersionsFunction = buildGetAllVersionsFunction(_class, Multiplicity.ONE);
|
86
|
+
lambdaFunction.expressionSequence[0] = getAllVersionsFunction;
|
87
|
+
}
|
88
|
+
else {
|
89
|
+
throw new UnsupportedOperationError(`Unable to build query lamdba: getAllVersions() expects source class to be milestoned`);
|
90
|
+
}
|
91
|
+
break;
|
92
|
+
}
|
93
|
+
case QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL_VERSIONS_IN_RANGE: {
|
94
|
+
if (milestoningStereotype) {
|
95
|
+
const getAllVersionsInRangeFunction = buildGetAllVersionsInRangeFunction(_class, Multiplicity.ONE);
|
96
|
+
queryBuilderState.milestoningState
|
97
|
+
.getMilestoningImplementation(milestoningStereotype)
|
98
|
+
.buildGetAllVersionsInRangeParameters(getAllVersionsInRangeFunction);
|
99
|
+
lambdaFunction.expressionSequence[0] = getAllVersionsInRangeFunction;
|
100
|
+
}
|
101
|
+
else {
|
102
|
+
throw new UnsupportedOperationError(`Unable to build query lamdba: getAllVersionsInRange() expects source class to be milestoned`);
|
103
|
+
}
|
104
|
+
break;
|
105
|
+
}
|
106
|
+
case QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL: {
|
107
|
+
// build getAll()
|
108
|
+
const getAllFunction = buildGetAllFunction(_class, Multiplicity.ONE);
|
109
|
+
if (milestoningStereotype) {
|
110
|
+
// build milestoning parameter(s) for getAll()
|
111
|
+
queryBuilderState.milestoningState
|
112
|
+
.getMilestoningImplementation(milestoningStereotype)
|
113
|
+
.buildGetAllParameters(getAllFunction);
|
114
|
+
}
|
115
|
+
lambdaFunction.expressionSequence[0] = getAllFunction;
|
116
|
+
break;
|
117
|
+
}
|
118
|
+
default:
|
119
|
+
throw new UnsupportedOperationError(`Unable to build query lambda: unknown ${queryBuilderState.getAllFunction} function`);
|
82
120
|
}
|
83
|
-
lambdaFunction.expressionSequence[0] = getAllFunction;
|
84
121
|
}
|
85
122
|
// build watermark
|
86
123
|
buildWatermarkExpression(queryBuilderState.watermarkState, lambdaFunction);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderValueSpecificationBuilder.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
1
|
+
{"version":3,"file":"QueryBuilderValueSpecificationBuilder.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,yBAAyB,EACzB,oBAAoB,EACpB,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AC,GAAG,CACnD,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CACnB,CAAC;SACL;KACF;IACD,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC"}
|
package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderGraphFetchTreeStateBuilder.d.ts","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,KAAK,cAAc,EAInB,wBAAwB,EAWzB,MAAM,qBAAqB,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderGraphFetchTreeStateBuilder.d.ts","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,KAAK,cAAc,EAInB,wBAAwB,EAWzB,MAAM,qBAAqB,CAAC;AAe7B,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAapE,eAAO,MAAM,2BAA2B,eAC1B,wBAAwB,qBACjB,iBAAiB,gBACtB,cAAc,KAC3B,IA4CF,CAAC;AAEF,eAAO,MAAM,4BAA4B,eAC3B,wBAAwB,qBACjB,iBAAiB,gBACtB,cAAc,KAC3B,IAqDF,CAAC;AA+DF,eAAO,MAAM,oCAAoC,eACnC,wBAAwB,qBACjB,iBAAiB,gBACtB,cAAc,KAC3B,IAgIF,CAAC;AAEF,eAAO,MAAM,sCAAsC,eACrC,wBAAwB,qBACjB,iBAAiB,gBACtB,cAAc,KAC3B,IA2FF,CAAC"}
|
@@ -15,7 +15,7 @@
|
|
15
15
|
*/
|
16
16
|
import { PrimitiveInstanceValue, PRIMITIVE_TYPE, GraphFetchTreeInstanceValue, matchFunctionName, RootGraphFetchTree, SimpleFunctionExpression, InstanceValue, PackageableElementReference, Binding, SUPPORTED_FUNCTIONS, Class, KeyExpressionInstanceValue, CollectionInstanceValue, getClassProperty, PrimitiveType, VariableExpression, } from '@finos/legend-graph';
|
17
17
|
import { assertIsBoolean, assertIsString, assertTrue, assertType, guaranteeIsString, guaranteeNonNullable, guaranteeType, } from '@finos/legend-shared';
|
18
|
-
import { QUERY_BUILDER_PURE_PATH, QUERY_BUILDER_SUPPORTED_FUNCTIONS, } from '../../../graph/QueryBuilderMetaModelConst.js';
|
18
|
+
import { QUERY_BUILDER_PURE_PATH, QUERY_BUILDER_SUPPORTED_FUNCTIONS, QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS, } from '../../../graph/QueryBuilderMetaModelConst.js';
|
19
19
|
import {} from '../../QueryBuilderState.js';
|
20
20
|
import { QueryBuilderValueSpecificationProcessor } from '../../QueryBuilderStateBuilder.js';
|
21
21
|
import { FETCH_STRUCTURE_IMPLEMENTATION } from '../QueryBuilderFetchStructureImplementationState.js';
|
@@ -31,7 +31,9 @@ export const processGraphFetchExpression = (expression, queryBuilderState, paren
|
|
31
31
|
const precedingExpression = guaranteeType(expression.parametersValues[0], SimpleFunctionExpression, `Can't process ${functionName}() expression: only support ${functionName}() immediately following an expression`);
|
32
32
|
assertTrue(matchFunctionName(precedingExpression.functionName, [
|
33
33
|
QUERY_BUILDER_SUPPORTED_FUNCTIONS.FILTER,
|
34
|
-
|
34
|
+
QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL,
|
35
|
+
QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL_VERSIONS,
|
36
|
+
QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL_VERSIONS_IN_RANGE,
|
35
37
|
]), `Can't process ${functionName}(): only support ${functionName}() immediately following either getAll() or filter()`);
|
36
38
|
QueryBuilderValueSpecificationProcessor.process(precedingExpression, parentLambda, queryBuilderState);
|
37
39
|
// build state
|
package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderGraphFetchTreeStateBuilder.js","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,sBAAsB,EAEtB,cAAc,EAEd,2BAA2B,EAC3B,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,EACxB,aAAa,EACb,2BAA2B,EAC3B,OAAO,EACP,mBAAmB,EACnB,KAAK,EACL,0BAA0B,EAC1B,uBAAuB,EACvB,gBAAgB,EAChB,aAAa,EACb,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,eAAe,EACf,cAAc,EACd,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,GACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,uBAAuB,EACvB,iCAAiC,
|
1
|
+
{"version":3,"file":"QueryBuilderGraphFetchTreeStateBuilder.js","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,sBAAsB,EAEtB,cAAc,EAEd,2BAA2B,EAC3B,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,EACxB,aAAa,EACb,2BAA2B,EAC3B,OAAO,EACP,mBAAmB,EACnB,KAAK,EACL,0BAA0B,EAC1B,uBAAuB,EACvB,gBAAgB,EAChB,aAAa,EACb,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,eAAe,EACf,cAAc,EACd,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,GACd,MA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AmB,EACnB,OAAO,EACP,SAAS,CACV,CAAC;QACF,mBAAmB,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;QAE5D,MAAM,cAAc,GAAG,aAAa,CAClC,UAAU,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAC9B,2BAA2B,EAC3B,8EAA8E,CAC/E,CAAC;QACF,MAAM,kBAAkB,GAAG,aAAa,CACtC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,EACxB,kBAAkB,EAClB,wFAAwF,CACzF,CAAC;QACF,gBAAgB,CAAC,iBAAiB,CAChC,uBAAuB,CAAC,kBAAkB,CAAC,CAC5C,CAAC;KACH;AACH,CAAC,CAAC"}
|
@@ -31,6 +31,7 @@ export declare class QueryResultSetModifierState implements Hashable {
|
|
31
31
|
limit?: number | undefined;
|
32
32
|
distinct: boolean;
|
33
33
|
sortColumns: SortColumnState[];
|
34
|
+
slice: [number, number] | undefined;
|
34
35
|
constructor(tdsState: QueryBuilderTDSState);
|
35
36
|
setShowModal(val: boolean): void;
|
36
37
|
setLimit(val: number | undefined): void;
|
@@ -38,6 +39,7 @@ export declare class QueryResultSetModifierState implements Hashable {
|
|
38
39
|
deleteSortColumn(val: SortColumnState): void;
|
39
40
|
addSortColumn(val: SortColumnState): void;
|
40
41
|
updateSortColumns(): void;
|
42
|
+
setSlice(slice: [number, number] | undefined): void;
|
41
43
|
reset(): void;
|
42
44
|
get hashCode(): string;
|
43
45
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryResultSetModifierState.d.ts","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/tds/QueryResultSetModifierState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAGL,KAAK,QAAQ,EAEd,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CA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C1D,QAAQ,CAAC,QAAQ,EAAE,oBAAoB,CAAC;IACxC,SAAS,UAAS;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,QAAQ,UAAS;IACjB,WAAW,EAAE,eAAe,EAAE,CAAM;IACpC,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;gBAExB,QAAQ,EAAE,oBAAoB;IAqB1C,YAAY,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIhC,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAIvC,cAAc,IAAI,IAAI;IAItB,gBAAgB,CAAC,GAAG,EAAE,eAAe,GAAG,IAAI;IAI5C,aAAa,CAAC,GAAG,EAAE,eAAe,GAAG,IAAI;IAIzC,iBAAiB,IAAI,IAAI;IAMzB,QAAQ,CAAC,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,GAAG,IAAI;IAInD,KAAK,IAAI,IAAI;IAMb,IAAI,QAAQ,IAAI,MAAM,CAOrB;CACF"}
|
@@ -50,18 +50,21 @@ export class QueryResultSetModifierState {
|
|
50
50
|
limit;
|
51
51
|
distinct = false;
|
52
52
|
sortColumns = [];
|
53
|
+
slice;
|
53
54
|
constructor(tdsState) {
|
54
55
|
makeObservable(this, {
|
55
56
|
showModal: observable,
|
56
57
|
limit: observable,
|
57
58
|
distinct: observable,
|
58
59
|
sortColumns: observable,
|
60
|
+
slice: observable.ref,
|
59
61
|
setShowModal: action,
|
60
62
|
setLimit: action,
|
61
63
|
toggleDistinct: action,
|
62
64
|
deleteSortColumn: action,
|
63
65
|
addSortColumn: action,
|
64
66
|
updateSortColumns: action,
|
67
|
+
setSlice: action,
|
65
68
|
reset: action,
|
66
69
|
hashCode: computed,
|
67
70
|
});
|
@@ -85,6 +88,9 @@ export class QueryResultSetModifierState {
|
|
85
88
|
updateSortColumns() {
|
86
89
|
this.sortColumns = this.sortColumns.filter((colState) => this.tdsState.tdsColumns.includes(colState.columnState));
|
87
90
|
}
|
91
|
+
setSlice(slice) {
|
92
|
+
this.slice = slice;
|
93
|
+
}
|
88
94
|
reset() {
|
89
95
|
this.sortColumns = [];
|
90
96
|
this.distinct = false;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryResultSetModifierState.js","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/tds/QueryResultSetModifierState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEpE,OAAO,EACL,cAAc,EACd,WAAW,EAEX,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AAEzF,OAAO,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAEhF,MAAM,OAAO,eAAe;IAC1B,WAAW,CAA6B;IACxC,QAAQ,GAAG,gBAAgB,CAAC,GAAG,CAAC;IAEhC,YAAY,WAAuC;QACjD,cAAc,CAAC,IAAI,EAAE;YACnB,WAAW,EAAE,UAAU;YACvB,QAAQ,EAAE,UAAU;YACpB,cAAc,EAAE,MAAM;YACtB,WAAW,EAAE,MAAM;YACnB,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;QAEH,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED,cAAc,CAAC,GAA+B;QAC5C,IAAI,CAAC,WAAW,GAAG,GAAG,CAAC;IACzB,CAAC;IAED,WAAW,CAAC,GAAqB;QAC/B,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC;IACtB,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,iBAAiB;YACpD,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE;YACxB,IAAI,CAAC,WAAW;SACjB,CAAC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,CACtD,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,CACxD,CAAC;IACJ,CAAC;IAED,KAAK;QACH,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;QACtB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QACtB,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;IACzB,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,yBAAyB;YAC5D,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC;YAC3B,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC5B,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC;CACF"}
|
1
|
+
{"version":3,"file":"QueryResultSetModifierState.js","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/tds/QueryResultSetModifierState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEpE,OAAO,EACL,cAAc,EACd,WAAW,EAEX,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAC;AAEzF,OAAO,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAEhF,MAAM,OAAO,eAAe;IAC1B,WAAW,CAA6B;IACxC,QAAQ,GAAG,gBAAgB,CAAC,GAAG,CAAC;IAEhC,YAAY,WAAuC;QACjD,cAAc,CAAC,IAAI,EAAE;YACnB,WAAW,EAAE,UAAU;YACvB,QAAQ,EAAE,UAAU;YACpB,cAAc,EAAE,MAAM;YACtB,WAAW,EAAE,MAAM;YACnB,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;QAEH,IAAI,CAAC,WAAW,GAAG,WAAW,CA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G,CAAC;IAC/D,CAAC;IAED,cAAc;QACZ,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;IACjC,CAAC;IAED,gBAAgB,CAAC,GAAoB;QACnC,WAAW,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;IACrC,CAAC;IAED,aAAa,CAAC,GAAoB;QAChC,cAAc,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;IACxC,CAAC;IAED,iBAAiB;QACf,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CACtD,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,CACxD,CAAC;IACJ,CAAC;IAED,QAAQ,CAAC,KAAmC;QAC1C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,KAAK;QACH,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;QACtB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QACtB,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;IACzB,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,yBAAyB;YAC5D,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC;YAC3B,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC5B,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderAggregationStateBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,cAAc,EAInB,wBAAwB,EAEzB,MAAM,qBAAqB,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderAggregationStateBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,cAAc,EAInB,wBAAwB,EAEzB,MAAM,qBAAqB,CAAC;AAc7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAMvE,eAAO,MAAM,6BAA6B,eAC5B,wBAAwB,oBAClB,wBAAwB,GAAG,SAAS,qBACnC,iBAAiB,gBACtB,cAAc,KAC3B,IAqIF,CAAC;AAEF,eAAO,MAAM,2BAA2B,eAC1B,wBAAwB,qBACjB,iBAAiB,gBACtB,cAAc,KAC3B,IA2FF,CAAC"}
|
@@ -15,7 +15,7 @@
|
|
15
15
|
*/
|
16
16
|
import { CollectionInstanceValue, LambdaFunctionInstanceValue, matchFunctionName, SimpleFunctionExpression, VariableExpression, } from '@finos/legend-graph';
|
17
17
|
import { assertTrue, assertType, guaranteeNonNullable, guaranteeType, isNonNullable, returnUndefOnError, UnsupportedOperationError, } from '@finos/legend-shared';
|
18
|
-
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../graph/QueryBuilderMetaModelConst.js';
|
18
|
+
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS, QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS, } from '../../../../graph/QueryBuilderMetaModelConst.js';
|
19
19
|
import { QueryBuilderValueSpecificationProcessor } from '../../../QueryBuilderStateBuilder.js';
|
20
20
|
import { extractNullableStringFromInstanceValue } from '../../../QueryBuilderValueSpecificationHelper.js';
|
21
21
|
import { FETCH_STRUCTURE_IMPLEMENTATION } from '../../QueryBuilderFetchStructureImplementationState.js';
|
@@ -89,7 +89,9 @@ export const processTDSGroupByExpression = (expression, queryBuilderState, paren
|
|
89
89
|
// check preceding expression
|
90
90
|
const precedingExpression = guaranteeType(expression.parametersValues[0], SimpleFunctionExpression, `Can't process groupBy() expression: only support groupBy() immediately following an expression`);
|
91
91
|
assertTrue(matchFunctionName(precedingExpression.functionName, [
|
92
|
-
|
92
|
+
QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL,
|
93
|
+
QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL_VERSIONS,
|
94
|
+
QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL_VERSIONS_IN_RANGE,
|
93
95
|
QUERY_BUILDER_SUPPORTED_FUNCTIONS.FILTER,
|
94
96
|
]), `Can't process groupBy() expression: only support groupBy() immediately following either getAll() or filter()`);
|
95
97
|
QueryBuilderValueSpecificationProcessor.process(precedingExpression, parentLambda, queryBuilderState);
|
package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderAggregationStateBuilder.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,uBAAuB,EACvB,2BAA2B,EAC3B,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,UAAU,EACV,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,
|
1
|
+
{"version":3,"file":"QueryBuilderAggregationStateBuilder.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,O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AAuB,EACvB,sFAAsF,CACvF,CAAC;IACF,UAAU,CACR,aAAa,CAAC,MAAM,CAAC,MAAM;QACzB,iBAAiB,CAAC,MAAM,CAAC,MAAM,GAAG,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAClE,4FAA4F,CAC7F,CAAC;IACF,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM;SACjC,GAAG,CAAC,sCAAsC,CAAC;SAC3C,MAAM,CAAC,aAAa,CAAC,CAAC;IAEzB,cAAc;IACd,IACE,iBAAiB,CAAC,mBAAmB,CAAC,cAAc;QACpD,oBAAoB,EACpB;QACA,MAAM,QAAQ,GAAG,iBAAiB,CAAC,mBAAmB,CAAC,cAAc,CAAC;QACtE,QAAQ,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,CACjD,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,CAAW,CAAC,CAC7C,CAAC;KACH;AACH,CAAC,CAAC"}
|
@@ -21,5 +21,6 @@ export declare const processTDSProjectionDerivationExpression: (value: INTERNAL_
|
|
21
21
|
export declare const processTDSTakeExpression: (expression: SimpleFunctionExpression, queryBuilderState: QueryBuilderState, parentLambda: LambdaFunction) => void;
|
22
22
|
export declare const processTDSDistinctExpression: (expression: SimpleFunctionExpression, queryBuilderState: QueryBuilderState, parentLambda: LambdaFunction) => void;
|
23
23
|
export declare const processTDSSortExpression: (expression: SimpleFunctionExpression, queryBuilderState: QueryBuilderState, parentLambda: LambdaFunction) => void;
|
24
|
+
export declare const processTDSSliceExpression: (exp: SimpleFunctionExpression, queryBuilderState: QueryBuilderState, parentLambda: LambdaFunction) => void;
|
24
25
|
export declare const processTDSSortDirectionExpression: (expression: SimpleFunctionExpression, parentExpression: SimpleFunctionExpression | undefined, queryBuilderState: QueryBuilderState) => void;
|
25
26
|
//# sourceMappingURL=QueryBuilderProjectionStateBuilder.d.ts.map
|
package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderProjectionStateBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,mCAAmC,EAExC,KAAK,cAAc,EACnB,0BAA0B,EAK1B,wBAAwB,
|
1
|
+
{"version":3,"file":"QueryBuilderProjectionStateBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,mCAAmC,EAExC,KAAK,cAAc,EACnB,0BAA0B,EAK1B,wBAAwB,EAKzB,MAAM,qBAAqB,CAAC;AAgB7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAevE,eAAO,MAAM,2BAA2B,eAC1B,wBAAwB,qBACjB,iBAAiB,gBACtB,cAAc,KAC3B,IA2EF,CAAC;AAEF,eAAO,MAAM,4CAA4C,eAC3C,0BAA0B,qBACnB,iBAAiB,KACnC,IAgEF,CAAC;AAEF,eAAO,MAAM,wCAAwC,UAC5C,mCAAmC,oBACxB,wBAAwB,qBACvB,iBAAiB,KACnC,IAwBF,CAAC;AAEF,eAAO,MAAM,wBAAwB,eACvB,wBAAwB,qBACjB,iBAAiB,gBACtB,cAAc,KAC3B,IA4CF,CAAC;AAEF,eAAO,MAAM,4BAA4B,eAC3B,wBAAwB,qBACjB,iBAAiB,gBACtB,cAAc,KAC3B,IAwCF,CAAC;AAEF,eAAO,MAAM,wBAAwB,eACvB,wBAAwB,qBACjB,iBAAiB,gBACtB,cAAc,KAC3B,IA8CF,CAAC;AAEF,eAAO,MAAM,yBAAyB,QAC/B,wBAAwB,qBACV,iBAAiB,gBACtB,cAAc,KAC3B,IAwDF,CAAC;AAEF,eAAO,MAAM,iCAAiC,eAChC,wBAAwB,oBAClB,wBAAwB,GAAG,SAAS,qBACnC,iBAAiB,KACnC,IA+CF,CAAC"}
|
@@ -13,9 +13,9 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { AbstractPropertyExpression, CollectionInstanceValue, DerivedProperty, matchFunctionName, RawLambda, SimpleFunctionExpression, V1_deserializeRawValueSpecification, V1_RawLambda, VariableExpression, } from '@finos/legend-graph';
|
17
|
-
import { assertNonNullable, assertTrue, assertType, guaranteeNonNullable, guaranteeType, isNonNullable, returnUndefOnError, } from '@finos/legend-shared';
|
18
|
-
import { COLUMN_SORT_TYPE, QUERY_BUILDER_SUPPORTED_FUNCTIONS, } from '../../../../graph/QueryBuilderMetaModelConst.js';
|
16
|
+
import { AbstractPropertyExpression, CollectionInstanceValue, DerivedProperty, matchFunctionName, RawLambda, SimpleFunctionExpression, V1_deserializeRawValueSpecification, V1_RawLambda, VariableExpression, PrimitiveInstanceValue, } from '@finos/legend-graph';
|
17
|
+
import { assertNonNullable, assertTrue, assertType, guaranteeIsNumber, guaranteeNonNullable, guaranteeType, isNonNullable, returnUndefOnError, } from '@finos/legend-shared';
|
18
|
+
import { COLUMN_SORT_TYPE, QUERY_BUILDER_SUPPORTED_FUNCTIONS, QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS, } from '../../../../graph/QueryBuilderMetaModelConst.js';
|
19
19
|
import { QueryBuilderValueSpecificationProcessor } from '../../../QueryBuilderStateBuilder.js';
|
20
20
|
import { extractNullableNumberFromInstanceValue, extractNullableStringFromInstanceValue, validatePropertyExpressionChain, } from '../../../QueryBuilderValueSpecificationHelper.js';
|
21
21
|
import { FETCH_STRUCTURE_IMPLEMENTATION } from '../../QueryBuilderFetchStructureImplementationState.js';
|
@@ -30,7 +30,9 @@ export const processTDSProjectExpression = (expression, queryBuilderState, paren
|
|
30
30
|
// check preceding expression
|
31
31
|
const precedingExpression = guaranteeType(expression.parametersValues[0], SimpleFunctionExpression, `Can't process project() expression: only support project() immediately following an expression`);
|
32
32
|
assertTrue(matchFunctionName(precedingExpression.functionName, [
|
33
|
-
|
33
|
+
QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL,
|
34
|
+
QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL_VERSIONS,
|
35
|
+
QUERY_BUILDER_SUPPORTED_GET_ALL_FUNCTIONS.GET_ALL_VERSIONS_IN_RANGE,
|
34
36
|
QUERY_BUILDER_SUPPORTED_FUNCTIONS.FILTER,
|
35
37
|
QUERY_BUILDER_SUPPORTED_FUNCTIONS.WATERMARK,
|
36
38
|
]), `Can't process project() expression: only support project() immediately following either getAll(), filter(), or forWatermark()`);
|
@@ -165,6 +167,30 @@ export const processTDSSortExpression = (expression, queryBuilderState, parentLa
|
|
165
167
|
assertType(sortLambdas, CollectionInstanceValue, `Can't process sort() expression: sort() argument should be a collection`);
|
166
168
|
sortLambdas.values.map((value) => QueryBuilderValueSpecificationProcessor.processChild(value, expression, parentLambda, queryBuilderState));
|
167
169
|
};
|
170
|
+
export const processTDSSliceExpression = (exp, queryBuilderState, parentLambda) => {
|
171
|
+
// check parameters
|
172
|
+
assertTrue(exp.parametersValues.length === 3, `Can't process slice() expression: slice() expects 2 argument`);
|
173
|
+
// check preceding expression
|
174
|
+
const precedingExpression = guaranteeType(exp.parametersValues[0], SimpleFunctionExpression, `Can't process slice() expression: only support slice() immediately following an expression`);
|
175
|
+
assertTrue(matchFunctionName(precedingExpression.functionName, [
|
176
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_TAKE,
|
177
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_DISTINCT,
|
178
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_SORT,
|
179
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_PROJECT,
|
180
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_GROUP_BY,
|
181
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_FILTER,
|
182
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.OLAP_GROUPBY,
|
183
|
+
]), `Can't process slice() expression: only support slice() in TDS expression`);
|
184
|
+
QueryBuilderValueSpecificationProcessor.process(precedingExpression, parentLambda, queryBuilderState);
|
185
|
+
// build state
|
186
|
+
if (queryBuilderState.fetchStructureState.implementation instanceof
|
187
|
+
QueryBuilderTDSState) {
|
188
|
+
const tdsState = queryBuilderState.fetchStructureState.implementation;
|
189
|
+
const start = guaranteeIsNumber(guaranteeType(exp.parametersValues[1], PrimitiveInstanceValue, 'Can`t process slice() function: first param should be a primitive instance value').values[0], 'Can`t process slice() function: first param should be a number primitive instance value');
|
190
|
+
const end = guaranteeIsNumber(guaranteeType(exp.parametersValues[2], PrimitiveInstanceValue, 'Can`t process slice() function: first param should be a primitive instance value').values[0], 'Can`t process slice() function: first param should be a number primitive instance value');
|
191
|
+
tdsState.resultSetModifierState.setSlice([start, end]);
|
192
|
+
}
|
193
|
+
};
|
168
194
|
export const processTDSSortDirectionExpression = (expression, parentExpression, queryBuilderState) => {
|
169
195
|
const functionName = expression.functionName;
|
170
196
|
// check parent expression
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderProjectionStateBuilder.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,0BAA0B,EAC1B,uBAAuB,EACvB,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,wBAAwB,EACxB,mCAAmC,EACnC,YAAY,EACZ,kBAAkB,
|
1
|
+
{"version":3,"file":"QueryBuilderProjectionStateBuilder.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts"],"names":[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AAG,eAAe,CAAC,UAAU,CAAC,IAAI,CACvE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,cAAc,CACvC,CAAC;QACF,IAAI,iCAAiC,EAAE;YACrC,MAAM,eAAe,GAAG,IAAI,eAAe,CACzC,iCAAiC,CAClC,CAAC;YACF,eAAe,CAAC,QAAQ,GAAG,iBAAiB,CAC1C,YAAY,EACZ,iCAAiC,CAAC,OAAO,CAC1C;gBACC,CAAC,CAAC,gBAAgB,CAAC,GAAG;gBACtB,CAAC,CAAC,gBAAgB,CAAC,IAAI,CAAC;YAC1B,eAAe,CAAC,sBAAsB,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;SACvE;KACF;AACH,CAAC,CAAC"}
|
@@ -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;AAS7B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;
|
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;AAS7B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAqIvE,eAAO,MAAM,gBAAgB,aACjB,oBAAoB,kBACd,cAAc,YACpB;IACR;;;OAGG;IACH,wBAAwB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/C,qBAAqB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5C,iBAAiB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACzC,KACA,IA2OF,CAAC"}
|
package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js
CHANGED
@@ -63,6 +63,22 @@ const appendResultSetModifier = (resultModifierState, lambdaFunction, options) =
|
|
63
63
|
takeFunction.parametersValues[1] = limit;
|
64
64
|
currentExpression = takeFunction;
|
65
65
|
}
|
66
|
+
// build slice()
|
67
|
+
if (resultModifierState.slice) {
|
68
|
+
const sliceStart = resultModifierState.slice[0];
|
69
|
+
const sliceEnd = resultModifierState.slice[1];
|
70
|
+
const startVal = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(PrimitiveType.INTEGER)));
|
71
|
+
const endVal = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(PrimitiveType.INTEGER)));
|
72
|
+
startVal.values = [sliceStart];
|
73
|
+
endVal.values = [sliceEnd];
|
74
|
+
const sliceFunction = new SimpleFunctionExpression(extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.SLICE));
|
75
|
+
sliceFunction.parametersValues = [
|
76
|
+
currentExpression,
|
77
|
+
startVal,
|
78
|
+
endVal,
|
79
|
+
];
|
80
|
+
currentExpression = sliceFunction;
|
81
|
+
}
|
66
82
|
lambdaFunction.expressionSequence[0] = currentExpression;
|
67
83
|
return lambdaFunction;
|
68
84
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderProjectionValueSpecificationBuilder.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,uBAAuB,EACvB,0BAA0B,EAC1B,WAAW,EACX,4BAA4B,EAC5B,sBAAsB,EACtB,wBAAwB,EAExB,mCAAmC,EACnC,iCAAiC,EACjC,qBAAqB,EACrB,iCAAiC,E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e,EACb,OAAO,EAAE,wBAAwB,IAAI,CAAC,OAAO,CAAC,iBAAiB;YAC7D,CAAC,CAAC,iBAAiB,CAAC,WAAW,CAAC,YAAY;YAC5C,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,EAEL,uBAAuB,EACvB,0BAA0B,EAC1B,WAAW,EACX,4BAA4B,EAC5B,sBAAsB,EACtB,wBAAwB,EAExB,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,EACL,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,EAAE,4BAA4B,EAAE,MAAM,yDAAyD,CAAC;AACvG,OAAO,EAAE,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,MAAM,mEAAmE,CAAC;AACrG,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAEzE,MAAM,mBAAmB,GAAG,CAC1B,eAAgC,EACN,EAAE,CAC5B,0BAA0B,CACxB,eAAe,CAAC,QAAQ,EACxB,eAAe,CAAC,WAAW,CAAC,UAAU,CACvC,CAAC;AAEJ,MAAM,uBAAuB,GAAG,CAC9B,mBAAgD,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7B,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;KAChB,CAAC,CAAC;AACL,CAAC,CAAC"}
|
@@ -23,6 +23,7 @@ export declare class QueryBuilderBitemporalMilestoningImplementation extends Que
|
|
23
23
|
processGetAllParamaters(parameterValues: ValueSpecification[]): void;
|
24
24
|
buildGetAllParameters(getAllFunction: SimpleFunctionExpression): void;
|
25
25
|
buildGetAllWithDefaultParameters(getAllFunction: SimpleFunctionExpression): void;
|
26
|
+
buildGetAllVersionsInRangeParameters(getAllVersionsInRangeFunction: SimpleFunctionExpression): void;
|
26
27
|
generateMilestoningDate(isDatePropagationSupported: boolean, hasDefaultMilestoningDate: boolean, prevPropertyExpression: AbstractPropertyExpression | undefined, temporalSource: MILESTONING_STEREOTYPE | undefined, idx?: number, derivedPropertyExpressionState?: QueryBuilderDerivedPropertyExpressionState): ValueSpecification;
|
27
28
|
}
|
28
29
|
//# sourceMappingURL=QueryBuilderBitemporalMilestoningImplementation.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderBitemporalMilestoningImplementation.d.ts","sourceRoot":"","sources":["../../../src/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,kBAAkB,EAGvB,KAAK,wBAAwB,EAC7B,0BAA0B,EAC1B,sBAAsB,EAGvB,MAAM,qBAAqB,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderBitemporalMilestoningImplementation.d.ts","sourceRoot":"","sources":["../../../src/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,kBAAkB,EAGvB,KAAK,wBAAwB,EAC7B,0BAA0B,EAC1B,sBAAsB,EAGvB,MAAM,qBAAqB,CAAC;AAS7B,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,uCAAuC,CAAC;AAExG,OAAO,EAAE,qCAAqC,EAAE,MAAM,4CAA4C,CAAC;AAEnG,qBAAa,+CAAgD,SAAQ,qCAAqC;IACxG,kBAAkB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS;IAQlE,yBAAyB,IAAI,MAAM;IAMnC,+BAA+B,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI;IAmBtD,uBAAuB,CAAC,eAAe,EAAE,kBAAkB,EAAE,GAAG,IAAI;IASpE,qBAAqB,CAAC,cAAc,EAAE,wBAAwB,GAAG,IAAI;IAerE,gCAAgC,CAC9B,cAAc,EAAE,wBAAwB,GACvC,IAAI;IASP,oCAAoC,CAClC,6BAA6B,EAAE,wBAAwB,GACtD,IAAI;IAMP,uBAAuB,CACrB,0BAA0B,EAAE,OAAO,EACnC,yBAAyB,EAAE,OAAO,EAClC,sBAAsB,EAAE,0BAA0B,GAAG,SAAS,EAC9D,cAAc,EAAE,sBAAsB,GAAG,SAAS,EAClD,GAAG,CAAC,EAAE,MAAM,EACZ,8BAA8B,CAAC,EAAE,0CAA0C,GAC1E,kBAAkB;CAmEtB"}
|
@@ -14,7 +14,7 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import { PROCESSING_DATE_MILESTONING_PROPERTY_NAME, BUSINESS_DATE_MILESTONING_PROPERTY_NAME, AbstractPropertyExpression, MILESTONING_STEREOTYPE, INTERNAL__PropagatedValue, PrimitiveType, } from '@finos/legend-graph';
|
17
|
-
import { assertTrue, guaranteeNonNullable, guaranteeType, } from '@finos/legend-shared';
|
17
|
+
import { UnsupportedOperationError, assertTrue, guaranteeNonNullable, guaranteeType, } from '@finos/legend-shared';
|
18
18
|
import { getParameterValue } from '../../components/QueryBuilderSideBar.js';
|
19
19
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../graph/QueryBuilderMetaModelConst.js';
|
20
20
|
import { createSupportedFunctionExpression } from '../shared/ValueSpecificationEditorHelper.js';
|
@@ -55,6 +55,9 @@ export class QueryBuilderBitemporalMilestoningImplementation extends QueryBuilde
|
|
55
55
|
getAllFunction.parametersValues.push(parameterValue);
|
56
56
|
getAllFunction.parametersValues.push(parameterValue);
|
57
57
|
}
|
58
|
+
buildGetAllVersionsInRangeParameters(getAllVersionsInRangeFunction) {
|
59
|
+
throw new UnsupportedOperationError(`Can't build getAllVersionsInRange() function: expects root class to be business temporal or processing temporal milestoned`);
|
60
|
+
}
|
58
61
|
generateMilestoningDate(isDatePropagationSupported, hasDefaultMilestoningDate, prevPropertyExpression, temporalSource, idx, derivedPropertyExpressionState) {
|
59
62
|
this.initializeMilestoningParameters();
|
60
63
|
if (idx === 0) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderBitemporalMilestoningImplementation.js","sourceRoot":"","sources":["../../../src/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,yCAAyC,EACzC,uCAAuC,EAEvC,0BAA0B,EAC1B,sBAAsB,EACtB,yBAAyB,EACzB,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,oBAAoB,EACpB,aAAa,GACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,iCAAiC,EAAE,MAAM,2CAA2C,CAAC;AAE9F,OAAO,EAAE,iCAAiC,EAAE,MAAM,6CAA6C,CAAC;AAChG,OAAO,EAAE,qCAAqC,EAAE,MAAM,4CAA4C,CAAC;AAEnG,MAAM,OAAO,+CAAgD,SAAQ,qCAAqC;IACxG,kBAA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AAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CACnD,CAAC;gBACF,SAAS,CAAC,iBAAiB,GAAG,yBAAyB;oBACrD,CAAC,CAAC,KAAK;oBACP,CAAC,CAAC,0BAA0B,CAAC;aAChC;YACD,OAAO,SAAS,CAAC;SAClB;aAAM;YACL,IACE,cAAc,KAAK,sBAAsB,CAAC,iBAAiB;gBAC3D,8BAA8B,EAAE,eAAe,CAAC,MAAM,KAAK,CAAC,EAC5D;gBACA,OAAO,IAAI,yBAAyB,CAAC,GAAG,EAAE,CACxC,oBAAoB,CAClB,aAAa,CACX,8BAA8B,CAAC,kBAAkB;qBAC9C,gBAAgB,CAAC,CAAC,CAAC,EACtB,0BAA0B,CAC3B,CAAC,gBAAgB,CAAC,CAAC,CAAC,CACtB,CACF,CAAC;aACH;YACD,IAAI,SAAS,CAAC;YACd,IACE,0BAA0B;gBAC1B,sBAAsB;gBACtB,CAAC,yBAAyB,EAC1B;gBACA,SAAS,GAAG,IAAI,yBAAyB,CAAC,GAAG,EAAE,CAC7C,oBAAoB,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CACjE,CAAC;aACH;iBAAM;gBACL,SAAS,GAAG,IAAI,yBAAyB,CAAC,GAAG,EAAE,CAC7C,oBAAoB,CAAC,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CACnD,CAAC;gBACF,SAAS,CAAC,iBAAiB,GAAG,yBAAyB;oBACrD,CAAC,CAAC,KAAK;oBACP,CAAC,CAAC,0BAA0B,CAAC;aAChC;YACD,OAAO,SAAS,CAAC;SAClB;IACH,CAAC;CACF"}
|
1
|
+
{"version":3,"file":"QueryBuilderBitemporalMilestoningImplementation.js","sourceRoot":"","sources":["../../../src/stores/milestoning/QueryBuilderBitemporalMilestoningImplementation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,yCAAyC,EACzC,uCAAuC,EAEvC,0BAA0B,EAC1B,s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;aACH;iBAAM;gBACL,SAAS,GAAG,IAAI,yBAAyB,CAAC,GAAG,EAAE,CAC7C,oBAAoB,CAAC,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CACnD,CAAC;gBACF,SAAS,CAAC,iBAAiB,GAAG,yBAAyB;oBACrD,CAAC,CAAC,KAAK;oBACP,CAAC,CAAC,0BAA0B,CAAC;aAChC;YACD,OAAO,SAAS,CAAC;SAClB;IACH,CAAC;CACF"}
|
@@ -21,6 +21,7 @@ export declare class QueryBuilderBusinessTemporalMilestoningImplementation exten
|
|
21
21
|
initializeMilestoningParameters(force?: boolean): void;
|
22
22
|
processGetAllParamaters(parameterValues: ValueSpecification[]): void;
|
23
23
|
buildGetAllParameters(getAllFunction: SimpleFunctionExpression): void;
|
24
|
+
buildGetAllVersionsInRangeParameters(getAllVersionsInRangeFunction: SimpleFunctionExpression): void;
|
24
25
|
buildGetAllWithDefaultParameters(getAllFunction: SimpleFunctionExpression): void;
|
25
26
|
generateMilestoningDate(isDatePropagationSupported: boolean, hasDefaultMilestoningDate: boolean, prevPropertyExpression: AbstractPropertyExpression | undefined, temporalSource: MILESTONING_STEREOTYPE | undefined): ValueSpecification;
|
26
27
|
}
|
package/lib/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderBusinessTemporalMilestoningImplementation.d.ts","sourceRoot":"","sources":["../../../src/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,kBAAkB,EAEvB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,sBAAsB,EAGvB,MAAM,qBAAqB,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderBusinessTemporalMilestoningImplementation.d.ts","sourceRoot":"","sources":["../../../src/stores/milestoning/QueryBuilderBusinessTemporalMilestoningImplementation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,kBAAkB,EAEvB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,sBAAsB,EAGvB,MAAM,qBAAqB,CAAC;AAS7B,OAAO,EAAE,qCAAqC,EAAE,MAAM,4CAA4C,CAAC;AAEnG,qBAAa,qDAAsD,SAAQ,qCAAqC;IAC9G,kBAAkB,IAAI,kBAAkB,GAAG,SAAS;IAIpD,yBAAyB,IAAI,MAAM;IAInC,+BAA+B,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI;IAYtD,uBAAuB,CAAC,eAAe,EAAE,kBAAkB,EAAE,GAAG,IAAI;IAQpE,qBAAqB,CAAC,cAAc,EAAE,wBAAwB,GAAG,IAAI;IASrE,oCAAoC,CAClC,6BAA6B,EAAE,wBAAwB,GACtD,IAAI;IAeP,gCAAgC,CAC9B,cAAc,EAAE,wBAAwB,GACvC,IAAI;IAQP,uBAAuB,CACrB,0BAA0B,EAAE,OAAO,EACnC,yBAAyB,EAAE,OAAO,EAClC,sBAAsB,EAAE,0BAA0B,GAAG,SAAS,EAC9D,cAAc,EAAE,sBAAsB,GAAG,SAAS,GACjD,kBAAkB;CA0BtB"}
|