@finos/legend-query-builder 4.10.1 → 4.11.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/__lib__/QueryBuilderDocumentation.d.ts +2 -1
- package/lib/__lib__/QueryBuilderDocumentation.d.ts.map +1 -1
- package/lib/__lib__/QueryBuilderDocumentation.js +1 -0
- package/lib/__lib__/QueryBuilderDocumentation.js.map +1 -1
- package/lib/__lib__/QueryBuilderEvent.d.ts +2 -1
- package/lib/__lib__/QueryBuilderEvent.d.ts.map +1 -1
- package/lib/__lib__/QueryBuilderEvent.js +1 -0
- package/lib/__lib__/QueryBuilderEvent.js.map +1 -1
- package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderResultPanel.js +165 -57
- package/lib/components/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +2 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js.map +1 -1
- package/lib/graph/QueryBuilderMetaModelConst.d.ts +22 -1
- package/lib/graph/QueryBuilderMetaModelConst.d.ts.map +1 -1
- package/lib/graph/QueryBuilderMetaModelConst.js +24 -0
- package/lib/graph/QueryBuilderMetaModelConst.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/QueryBuilderPreviewDataHelper.d.ts.map +1 -1
- package/lib/stores/QueryBuilderPreviewDataHelper.js +2 -1
- package/lib/stores/QueryBuilderPreviewDataHelper.js.map +1 -1
- package/lib/stores/QueryBuilderResultState.d.ts +8 -3
- package/lib/stores/QueryBuilderResultState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderResultState.js +11 -30
- package/lib/stores/QueryBuilderResultState.js.map +1 -1
- package/lib/stores/QueryBuilderState.d.ts +2 -0
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +8 -0
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/QueryBuilderTypeaheadHelper.d.ts.map +1 -1
- package/lib/stores/QueryBuilderTypeaheadHelper.js +1 -1
- package/lib/stores/QueryBuilderTypeaheadHelper.js.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.d.ts +4 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.js +37 -3
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.js.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.d.ts +1 -4
- package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.js +1 -5
- package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.js +2 -2
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.d.ts +3 -2
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js +9 -0
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js +2 -4
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.d.ts +2 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts +1 -15
- 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 -44
- 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 +13 -3
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js.map +1 -1
- 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 +3 -2
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts +2 -1
- 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 +2 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js +2 -2
- 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 +3 -10
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowState.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowState.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/__lib__/QueryBuilderDocumentation.ts +1 -0
- package/src/__lib__/QueryBuilderEvent.ts +1 -0
- package/src/components/QueryBuilderResultPanel.tsx +269 -90
- package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +2 -4
- package/src/components/fetch-structure/QueryBuilderTDSWindowPanel.tsx +1 -1
- package/src/graph/QueryBuilderMetaModelConst.ts +25 -0
- package/src/index.ts +9 -2
- package/src/stores/QueryBuilderPreviewDataHelper.ts +2 -4
- package/src/stores/QueryBuilderResultState.ts +17 -34
- package/src/stores/QueryBuilderState.ts +12 -0
- package/src/stores/QueryBuilderTypeaheadHelper.ts +2 -4
- package/src/stores/fetch-structure/tds/QueryBuilderTDSHelper.ts +58 -2
- package/src/stores/fetch-structure/tds/QueryResultSetModifierState.ts +1 -5
- package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.ts +5 -9
- package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.ts +16 -2
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts +2 -4
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.ts +1 -1
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts +1 -50
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.ts +22 -4
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.ts +4 -4
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +1 -1
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts +5 -5
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +5 -15
- package/src/stores/fetch-structure/tds/window/QueryBuilderWindowState.ts +1 -1
@@ -16,7 +16,6 @@
|
|
16
16
|
import { AbstractPropertyExpression, PrimitiveInstanceValue, PRIMITIVE_TYPE, TDSExecutionResult, DerivedProperty, Class, SimpleFunctionExpression, matchFunctionName, PrimitiveType, Multiplicity, getMilestoneTemporalStereotype, extractElementNameFromPath, CollectionInstanceValue, GenericTypeExplicitReference, GenericType, CORE_PURE_PATH, FunctionType, LambdaFunction, PackageableElementExplicitReference, PropertyExplicitReference, getAllClassDerivedProperties, VariableExpression, buildRawLambdaFromLambdaFunction, INTERNAL__UnknownValueSpecification, V1_transformRawLambda, V1_GraphTransformerContextBuilder, V1_serializeRawValueSpecification, } from '@finos/legend-graph';
|
17
17
|
import { getNullableFirstEntry, guaranteeNonNullable, guaranteeType, isNonNullable, isString, UnsupportedOperationError, } from '@finos/legend-shared';
|
18
18
|
import { QueryBuilderPostFilterOperator_StartWith } from './fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js';
|
19
|
-
import { getTDSColumnDerivedProperyFromType, } from './fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js';
|
20
19
|
import { QueryBuilderDerivationProjectionColumnState, QueryBuilderProjectionColumnState, QueryBuilderSimpleProjectionColumnState, } from './fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js';
|
21
20
|
import { DEFAULT_TYPEAHEAD_SEARCH_LIMIT, DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH, } from '@finos/legend-application';
|
22
21
|
import { QUERY_BUILDER_PURE_PATH, QUERY_BUILDER_SUPPORTED_FUNCTIONS, } from '../graph/QueryBuilderMetaModelConst.js';
|
@@ -26,6 +25,7 @@ import { buildGetAllFunction } from './QueryBuilderValueSpecificationBuilder.js'
|
|
26
25
|
import { getPropertyChainName } from './QueryBuilderPropertyEditorState.js';
|
27
26
|
import { buildGenericLambdaFunctionInstanceValue } from './QueryBuilderValueSpecificationHelper.js';
|
28
27
|
import { DEFAULT_LAMBDA_VARIABLE_NAME, DEFAULT_POST_FILTER_LAMBDA_VARIABLE_NAME, } from './QueryBuilderConfig.js';
|
28
|
+
import { getTDSColumnDerivedProperyFromType } from './fetch-structure/tds/QueryBuilderTDSHelper.js';
|
29
29
|
const buildPropertyExpressionChainWithDefaultMilestoningDates = (propertyExpression, lambdaParameterName, observerContext) => {
|
30
30
|
const newPropertyExpression = new AbstractPropertyExpression('');
|
31
31
|
newPropertyExpression.func = propertyExpression.func;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderTypeaheadHelper.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderTypeaheadHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,0BAA0B,EAG1B,sBAAsB,EACtB,cAAc,EACd,kBAAkB,EAElB,eAAe,EACf,KAAK,EACL,wBAAwB,EACxB,iBAAiB,EACjB,aAAa,EAEb,YAAY,EACZ,8BAA8B,EAC9B,0BAA0B,EAC1B,uBAAuB,EACvB,4BAA4B,EAC5B,WAAW,EACX,cAAc,EACd,YAAY,EACZ,cAAc,EACd,mCAAmC,EACnC,yBAAyB,EACzB,4BAA4B,EAC5B,kBAAkB,EAClB,gCAAgC,EAEhC,mCAAmC,EACnC,qBAAqB,EACrB,iCAAiC,EACjC,iCAAiC,GAClC,MAAM,qBAAqB,CAAC;AAC7B,OAAO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AC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,GAAmC,EAC1B,EAAE;IACX,IAAI,GAAG,YAAY,sBAAsB,EAAE;QACzC,MAAM,KAAK,GAAG,GAAG,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC;QAC5C,QAAQ,KAAK,CAAC,IAAI,EAAE;YAClB,KAAK,cAAc,CAAC,MAAM,CAAC,CAAC;gBAC1B,MAAM,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAW,CAAC;gBACtC,OAAO,KAAK,CAAC,MAAM,IAAI,8CAA8C,CAAC;aACvE;YACD;gBACE,OAAO,KAAK,CAAC;SAChB;KACF;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC"}
|
1
|
+
{"version":3,"file":"QueryBuilderTypeaheadHelper.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderTypeaheadHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,0BAA0B,EAG1B,sBAAsB,EACtB,cAAc,EACd,kBAAkB,EAElB,eAAe,EACf,KAAK,EACL,wBAAwB,EACxB,iBAAiB,EACjB,aAAa,EAEb,YAAY,EACZ,8BAA8B,EAC9B,0BAA0B,EAC1B,uBAAuB,EACvB,4BAA4B,EAC5B,WAAW,EACX,cAAc,EACd,YAAY,EACZ,cAAc,EACd,mCAAmC,EACnC,yBAAyB,EACzB,4BAA4B,EAC5B,kBAAkB,EAClB,gCAAgC,EAEhC,mCAAmC,EACnC,qBAAqB,EACrB,iCAAiC,EACjC,iCAAiC,GAClC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,QAAQ,EACR,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,wCAAwC,EAAE,MAAM,yFAAyF,CAAC;AAEnJ,OAAO,EACL,2CAA2C,EAC3C,iCAAiC,EACj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CAAC,IAAI,EAAE;YAClB,KAAK,cAAc,CAAC,MAAM,CAAC,CAAC;gBAC1B,MAAM,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAW,CAAC;gBACtC,OAAO,KAAK,CAAC,MAAM,IAAI,8CAA8C,CAAC;aACvE;YACD;gBACE,OAAO,KAAK,CAAC;SAChB;KACF;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC"}
|
@@ -13,11 +13,14 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
+
import { type Type, SimpleFunctionExpression } from '@finos/legend-graph';
|
17
|
+
import { COLUMN_SORT_TYPE, TDS_COLUMN_GETTER } from '../../../graph/QueryBuilderMetaModelConst.js';
|
16
18
|
import type { QueryBuilderTDSState } from './QueryBuilderTDSState.js';
|
17
19
|
import type { QueryBuilderTDSColumnState } from './QueryBuilderTDSColumnState.js';
|
18
|
-
import { COLUMN_SORT_TYPE } from './QueryResultSetModifierState.js';
|
19
20
|
export declare const findTDSColumnState: (projectionState: QueryBuilderTDSState, columnName: string) => QueryBuilderTDSColumnState | undefined;
|
20
21
|
export declare const getTDSColumnState: (projectionState: QueryBuilderTDSState, columnName: string) => QueryBuilderTDSColumnState;
|
21
22
|
export declare const getTDSColSortTypeFromFunctionName: (functionName: string) => COLUMN_SORT_TYPE;
|
22
23
|
export declare const getFunctionNameFromTDSSortColumn: (columnSortType: COLUMN_SORT_TYPE) => string;
|
24
|
+
export declare const buildTDSSortTypeExpression: (sortType: COLUMN_SORT_TYPE, column: string) => SimpleFunctionExpression;
|
25
|
+
export declare const getTDSColumnDerivedProperyFromType: (type: Type) => TDS_COLUMN_GETTER;
|
23
26
|
//# sourceMappingURL=QueryBuilderTDSHelper.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderTDSHelper.d.ts","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/tds/QueryBuilderTDSHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
1
|
+
{"version":3,"file":"QueryBuilderTDSHelper.d.ts","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/tds/QueryBuilderTDSHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,IAAI,EAGT,wBAAwB,EAIzB,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EACL,gBAAgB,EAEhB,iBAAiB,EAClB,MAAM,8CAA8C,CAAC;AACtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAElF,eAAO,MAAM,kBAAkB,oBACZ,oBAAoB,cACzB,MAAM,KACjB,0BAA0B,GAAG,SACqC,CAAC;AAEtE,eAAO,MAAM,iBAAiB,oBACX,oBAAoB,cACzB,MAAM,KACjB,0BAIA,CAAC;AAEJ,eAAO,MAAM,iCAAiC,iBAC9B,MAAM,KACnB,gBAaF,CAAC;AAEF,eAAO,MAAM,gCAAgC,mBAC3B,gBAAgB,KAC/B,MAeF,CAAC;AAEF,eAAO,MAAM,0BAA0B,aAC3B,gBAAgB,UAClB,MAAM,KACb,wBAWF,CAAC;AAEF,eAAO,MAAM,kCAAkC,SACvC,IAAI,KACT,iBA4BF,CAAC"}
|
@@ -13,10 +13,9 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { extractElementNameFromPath, matchFunctionName, } from '@finos/legend-graph';
|
16
|
+
import { Enumeration, PRIMITIVE_TYPE, SimpleFunctionExpression, createPrimitiveInstance_String, extractElementNameFromPath, matchFunctionName, } from '@finos/legend-graph';
|
17
17
|
import { guaranteeNonNullable, UnsupportedOperationError, } from '@finos/legend-shared';
|
18
|
-
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graph/QueryBuilderMetaModelConst.js';
|
19
|
-
import { COLUMN_SORT_TYPE } from './QueryResultSetModifierState.js';
|
18
|
+
import { COLUMN_SORT_TYPE, QUERY_BUILDER_SUPPORTED_FUNCTIONS, TDS_COLUMN_GETTER, } from '../../../graph/QueryBuilderMetaModelConst.js';
|
20
19
|
export const findTDSColumnState = (projectionState, columnName) => projectionState.tdsColumns.find((c) => c.columnName === columnName);
|
21
20
|
export const getTDSColumnState = (projectionState, columnName) => guaranteeNonNullable(findTDSColumnState(projectionState, columnName), `Column ${columnName} not found in TDS`);
|
22
21
|
export const getTDSColSortTypeFromFunctionName = (functionName) => {
|
@@ -38,4 +37,39 @@ export const getFunctionNameFromTDSSortColumn = (columnSortType) => {
|
|
38
37
|
throw new UnsupportedOperationError(`Unsupported column sort type ${columnSortType}`);
|
39
38
|
}
|
40
39
|
};
|
40
|
+
export const buildTDSSortTypeExpression = (sortType, column) => {
|
41
|
+
const sortColumnFunction = new SimpleFunctionExpression(extractElementNameFromPath(sortType === COLUMN_SORT_TYPE.ASC
|
42
|
+
? QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_ASC
|
43
|
+
: QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_DESC));
|
44
|
+
const sortColumnName = createPrimitiveInstance_String(column);
|
45
|
+
sortColumnFunction.parametersValues[0] = sortColumnName;
|
46
|
+
return sortColumnFunction;
|
47
|
+
};
|
48
|
+
export const getTDSColumnDerivedProperyFromType = (type) => {
|
49
|
+
if (type instanceof Enumeration) {
|
50
|
+
return TDS_COLUMN_GETTER.GET_ENUM;
|
51
|
+
}
|
52
|
+
switch (type.path) {
|
53
|
+
case PRIMITIVE_TYPE.STRING:
|
54
|
+
return TDS_COLUMN_GETTER.GET_STRING;
|
55
|
+
case PRIMITIVE_TYPE.NUMBER:
|
56
|
+
return TDS_COLUMN_GETTER.GET_NUMBER;
|
57
|
+
case PRIMITIVE_TYPE.INTEGER:
|
58
|
+
return TDS_COLUMN_GETTER.GET_INTEGER;
|
59
|
+
case PRIMITIVE_TYPE.FLOAT:
|
60
|
+
return TDS_COLUMN_GETTER.GET_FLOAT;
|
61
|
+
case PRIMITIVE_TYPE.DECIMAL:
|
62
|
+
return TDS_COLUMN_GETTER.GET_DECIMAL;
|
63
|
+
case PRIMITIVE_TYPE.DATE:
|
64
|
+
return TDS_COLUMN_GETTER.GET_DATE;
|
65
|
+
case PRIMITIVE_TYPE.DATETIME:
|
66
|
+
return TDS_COLUMN_GETTER.GET_DATETIME;
|
67
|
+
case PRIMITIVE_TYPE.STRICTDATE:
|
68
|
+
return TDS_COLUMN_GETTER.GET_STRICTDATE;
|
69
|
+
case PRIMITIVE_TYPE.BOOLEAN:
|
70
|
+
return TDS_COLUMN_GETTER.GET_BOOLEAN;
|
71
|
+
default:
|
72
|
+
throw new UnsupportedOperationError(`Can't find TDS column derived property name for type: '${type.path}'`);
|
73
|
+
}
|
74
|
+
};
|
41
75
|
//# sourceMappingURL=QueryBuilderTDSHelper.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderTDSHelper.js","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/tds/QueryBuilderTDSHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
1
|
+
{"version":3,"file":"QueryBuilderTDSHelper.js","sourceRoot":"","sources":["../../../../src/stores/fetch-structure/tds/QueryBuilderTDSHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,WAAW,EACX,cAAc,EACd,wBAAwB,EACxB,8BAA8B,EAC9B,0BAA0B,EAC1B,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,gBAAgB,EAChB,iCAAiC,EACjC,iBAAiB,GAClB,MAAM,8CAA8C,CAAC;AAItD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC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BuilderTDSState } from './QueryBuilderTDSState.js';
|
17
17
|
import { type Hashable } from '@finos/legend-shared';
|
18
18
|
import type { QueryBuilderTDSColumnState } from './QueryBuilderTDSColumnState.js';
|
19
|
-
|
20
|
-
ASC = "ASC",
|
21
|
-
DESC = "DESC"
|
22
|
-
}
|
19
|
+
import { COLUMN_SORT_TYPE } from '../../../graph/QueryBuilderMetaModelConst.js';
|
23
20
|
export declare class SortColumnState implements Hashable {
|
24
21
|
columnState: QueryBuilderTDSColumnState;
|
25
22
|
sortType: COLUMN_SORT_TYPE;
|
@@ -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,CAAC;
|
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,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAEhF,qBAAa,eAAgB,YAAW,QAAQ;IAC9C,WAAW,EAAE,0BAA0B,CAAC;IACxC,QAAQ,mBAAwB;gBAEpB,WAAW,EAAE,0BAA0B;IAYnD,cAAc,CAAC,GAAG,EAAE,0BAA0B,GAAG,IAAI;IAIrD,WAAW,CAAC,GAAG,EAAE,gBAAgB,GAAG,IAAI;IAIxC,IAAI,QAAQ,IAAI,MAAM,CAMrB;CACF;AAED,qBAAa,2BAA4B,YAAW,QAAQ;IAC1D,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;gBAExB,QAAQ,EAAE,oBAAoB;IAmB1C,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,KAAK,IAAI,IAAI;IAMb,IAAI,QAAQ,IAAI,MAAM,CAOrB;CACF"}
|
@@ -16,11 +16,7 @@
|
|
16
16
|
import { action, computed, makeObservable, observable } from 'mobx';
|
17
17
|
import { addUniqueEntry, deleteEntry, hashArray, } from '@finos/legend-shared';
|
18
18
|
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../QueryBuilderStateHashUtils.js';
|
19
|
-
|
20
|
-
(function (COLUMN_SORT_TYPE) {
|
21
|
-
COLUMN_SORT_TYPE["ASC"] = "ASC";
|
22
|
-
COLUMN_SORT_TYPE["DESC"] = "DESC";
|
23
|
-
})(COLUMN_SORT_TYPE || (COLUMN_SORT_TYPE = {}));
|
19
|
+
import { COLUMN_SORT_TYPE } from '../../../graph/QueryBuilderMetaModelConst.js';
|
24
20
|
export class SortColumnState {
|
25
21
|
columnState;
|
26
22
|
sortType = COLUMN_SORT_TYPE.ASC;
|
@@ -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;
|
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,OAA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,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,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"}
|
@@ -29,7 +29,7 @@ export declare abstract class QueryBuilderAggregateOperator implements Hashable
|
|
29
29
|
* Returns the expected return type of the operator.
|
30
30
|
* defaults to using the return type of the projection column state which is being aggregated.
|
31
31
|
*/
|
32
|
-
getReturnType(aggregateColumnState: QueryBuilderAggregateColumnState): Type;
|
32
|
+
getReturnType(aggregateColumnState: QueryBuilderAggregateColumnState): Type | undefined;
|
33
33
|
abstract get hashCode(): string;
|
34
34
|
}
|
35
35
|
//# sourceMappingURL=QueryBuilderAggregateOperator.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderAggregateOperator.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
1
|
+
{"version":3,"file":"QueryBuilderAggregateOperator.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EACV,0BAA0B,EAC1B,SAAS,EACT,wBAAwB,EACxB,IAAI,EACJ,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,iCAAiC,EAEvC,MAAM,oDAAoD,CAAC;AAC5D,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,mCAAmC,CAAC;AAG1F,8BAAsB,6BAA8B,YAAW,QAAQ;IACrE,QAAQ,CAAC,IAAI,SAAU;;IAQvB,QAAQ,CAAC,QAAQ,CACf,qBAAqB,EAAE,iCAAiC,GACvD,MAAM;IAET,QAAQ,CAAC,sBAAsB,CAC7B,qBAAqB,EAAE,iCAAiC,GACvD,OAAO;IAEV,QAAQ,CAAC,wBAAwB,CAC/B,kBAAkB,EAAE,0BAA0B,GAAG,SAAS,EAC1D,YAAY,EAAE,MAAM,EACpB,KAAK,EAAE,SAAS,GACf,kBAAkB;IAErB,iCAAiC,CAC/B,oBAAoB,EAAE,gCAAgC,GACrD,kBAAkB;IAarB,QAAQ,CAAC,yBAAyB,CAChC,UAAU,EAAE,wBAAwB,EACpC,WAAW,EAAE,kBAAkB,EAC/B,qBAAqB,EAAE,iCAAiC,GACvD,gCAAgC,GAAG,SAAS;IAE/C;;;OAGG;IACH,aAAa,CACX,oBAAoB,EAAE,gCAAgC,GACrD,IAAI,GAAG,SAAS;IAInB,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC;CACjC"}
|
@@ -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 { uuid
|
16
|
+
import { uuid } from '@finos/legend-shared';
|
17
17
|
import { QueryBuilderSimpleProjectionColumnState, } from '../projection/QueryBuilderProjectionColumnState.js';
|
18
18
|
import { computed, makeObservable } from 'mobx';
|
19
19
|
export class QueryBuilderAggregateOperator {
|
@@ -36,7 +36,7 @@ export class QueryBuilderAggregateOperator {
|
|
36
36
|
* defaults to using the return type of the projection column state which is being aggregated.
|
37
37
|
*/
|
38
38
|
getReturnType(aggregateColumnState) {
|
39
|
-
return
|
39
|
+
return aggregateColumnState.projectionColumnState.getColumnType();
|
40
40
|
}
|
41
41
|
}
|
42
42
|
//# sourceMappingURL=QueryBuilderAggregateOperator.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderAggregateOperator.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
1
|
+
{"version":3,"file":"QueryBuilderAggregateOperator.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,IAAI,EAAiB,MAAM,sBAAsB,CAAC;AAS3D,OAAO,EAEL,uCAAuC,GACxC,MAAM,oDAAoD,CAAC;AAE5D,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAEhD,MAAM,OAAgB,6BAA6B;IACxC,IAAI,GAAG,IAAI,EAAE,CAAC;IAEvB;QACE,cAAc,CAAC,IAAI,EAAE;YACnB,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;IACL,CAAC;IAgBD,iCAAiC,CAC/B,oBAAsD;QAEtD,OAAO,IAAI,CAAC,wBAAwB,CAClC,oBAAoB,CAAC,qBAAqB;YACxC,uCAAuC;YACvC,CAAC,CAAC,oBAAoB,CAAC,qBAAqB,CAAC,uBAAuB;iBAC/D,kBAAkB;YACvB,CAAC,CAAC,SAAS,EACb,oBAAoB,CAAC,mBAAmB,EACxC,oBAAoB,CAAC,gBAAgB,CAAC,QAAQ,CAAC,iBAAiB;aAC7D,iBAAiB,CAAC,KAAK,CAC3B,CAAC;IACJ,CAAC;IAQD;;;OAGG;IACH,aAAa,CACX,oBAAsD;QAEtD,OAAO,oBAAoB,CAAC,qBAAqB,CAAC,aAAa,EAAE,CAAC;IACpE,CAAC;CAGF"}
|
@@ -17,7 +17,7 @@ import { type Hashable } from '@finos/legend-shared';
|
|
17
17
|
import type { Type } from '@finos/legend-graph';
|
18
18
|
import type { QueryBuilderTDSState } from '../QueryBuilderTDSState.js';
|
19
19
|
import type { QueryBuilderAggregateOperator } from './QueryBuilderAggregateOperator.js';
|
20
|
-
import type
|
20
|
+
import { type QueryBuilderProjectionColumnState } from '../projection/QueryBuilderProjectionColumnState.js';
|
21
21
|
import { QueryBuilderTDSColumnState } from '../QueryBuilderTDSColumnState.js';
|
22
22
|
import type { QueryBuilderAggregateCalendarFunction } from './QueryBuilderAggregateCalendarFunction.js';
|
23
23
|
export declare class QueryBuilderAggregateColumnState extends QueryBuilderTDSColumnState implements Hashable {
|
@@ -33,7 +33,8 @@ export declare class QueryBuilderAggregateColumnState extends QueryBuilderTDSCol
|
|
33
33
|
setHideCalendarColumnState(val: boolean): void;
|
34
34
|
setCalendarFunction(val: QueryBuilderAggregateCalendarFunction | undefined): void;
|
35
35
|
setOperator(val: QueryBuilderAggregateOperator): void;
|
36
|
-
getColumnType(): Type;
|
36
|
+
getColumnType(): Type | undefined;
|
37
|
+
handleUsedPostFilterType(type: Type): void;
|
37
38
|
get hashCode(): string;
|
38
39
|
get columnName(): string;
|
39
40
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderAggregationState.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAGL,KAAK,QAAQ,EAEd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACxF,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"QueryBuilderAggregationState.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAGL,KAAK,QAAQ,EAEd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACxF,OAAO,EAEL,KAAK,iCAAiC,EACvC,MAAM,oDAAoD,CAAC;AAE5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,4CAA4C,CAAC;AAExG,qBAAa,gCACX,SAAQ,0BACR,YAAW,QAAQ;IAEnB,QAAQ,CAAC,gBAAgB,EAAE,4BAA4B,CAAC;IACxD,qBAAqB,EAAE,iCAAiC,CAAC;IACzD,mBAAmB,EAAE,MAAM,CAAgC;IAC3D,QAAQ,EAAE,6BAA6B,CAAC;IACxC,gBAAgB,CAAC,EAAE,qCAAqC,GAAG,SAAS,CAAC;IACrE,uBAAuB,UAAQ;gBAG7B,gBAAgB,EAAE,4BAA4B,EAC9C,qBAAqB,EAAE,iCAAiC,EACxD,QAAQ,EAAE,6BAA6B;IAuBzC,cAAc,CAAC,GAAG,EAAE,iCAAiC,GAAG,IAAI;IAI5D,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIzC,0BAA0B,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI9C,mBAAmB,CACjB,GAAG,EAAE,qCAAqC,GAAG,SAAS,GACrD,IAAI;IAIP,WAAW,CAAC,GAAG,EAAE,6BAA6B,GAAG,IAAI;IAIrD,aAAa,IAAI,IAAI,GAAG,SAAS;IAIjC,wBAAwB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;IAU1C,IAAI,QAAQ,IAAI,MAAM,CAMrB;IAED,IAAI,UAAU,IAAI,MAAM,CAEvB;CACF;AAED,qBAAa,4BAA6B,YAAW,QAAQ;IAC3D,QAAQ,CAAC,QAAQ,EAAE,oBAAoB,CAAC;IACxC,QAAQ,CAAC,SAAS,EAAE,6BAA6B,EAAE,CAAM;IACzD,QAAQ,CAAC,iBAAiB,EAAE,qCAAqC,EAAE,CAAC;IACpE,OAAO,EAAE,gCAAgC,EAAE,CAAM;gBAG/C,QAAQ,EAAE,oBAAoB,EAC9B,SAAS,EAAE,6BAA6B,EAAE,EAC1C,iBAAiB,EAAE,qCAAqC,EAAE;IAgB5D,YAAY,CAAC,GAAG,EAAE,gCAAgC,GAAG,IAAI;IAIzD,SAAS,CAAC,GAAG,EAAE,gCAAgC,GAAG,IAAI;IAItD,6BAA6B,CAC3B,GAAG,EAAE,6BAA6B,GAAG,SAAS,EAC9C,qBAAqB,EAAE,iCAAiC,GACvD,IAAI;IA6CP,eAAe,IAAI,IAAI;IAQvB,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF"}
|
@@ -16,6 +16,7 @@
|
|
16
16
|
import { action, computed, makeObservable, observable } from 'mobx';
|
17
17
|
import { deleteEntry, addUniqueEntry, hashArray, } from '@finos/legend-shared';
|
18
18
|
import { DEFAULT_LAMBDA_VARIABLE_NAME } from '../../../QueryBuilderConfig.js';
|
19
|
+
import { QueryBuilderDerivationProjectionColumnState, } from '../projection/QueryBuilderProjectionColumnState.js';
|
19
20
|
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../QueryBuilderStateHashUtils.js';
|
20
21
|
import { QueryBuilderTDSColumnState } from '../QueryBuilderTDSColumnState.js';
|
21
22
|
export class QueryBuilderAggregateColumnState extends QueryBuilderTDSColumnState {
|
@@ -38,6 +39,7 @@ export class QueryBuilderAggregateColumnState extends QueryBuilderTDSColumnState
|
|
38
39
|
setLambdaParameterName: action,
|
39
40
|
setOperator: action,
|
40
41
|
setCalendarFunction: action,
|
42
|
+
handleUsedPostFilterType: action,
|
41
43
|
hashCode: computed,
|
42
44
|
});
|
43
45
|
this.aggregationState = aggregationState;
|
@@ -62,6 +64,13 @@ export class QueryBuilderAggregateColumnState extends QueryBuilderTDSColumnState
|
|
62
64
|
getColumnType() {
|
63
65
|
return this.operator.getReturnType(this);
|
64
66
|
}
|
67
|
+
handleUsedPostFilterType(type) {
|
68
|
+
if (this.getColumnType() === undefined &&
|
69
|
+
this.projectionColumnState instanceof
|
70
|
+
QueryBuilderDerivationProjectionColumnState) {
|
71
|
+
this.projectionColumnState.setReturnType(type);
|
72
|
+
}
|
73
|
+
}
|
65
74
|
get hashCode() {
|
66
75
|
return hashArray([
|
67
76
|
QUERY_BUILDER_STATE_HASH_STRUCTURE.AGGREGATE_COLUMN_STATE,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderAggregationState.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EACL,WAAW,EACX,cAAc,EAEd,SAAS,GACV,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderAggregationState.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.ts"],"names":[],"mappings":"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,CAAC,iBAAiB,CAAC,OAAO,CAAC,qBAAqB,CAAC,EAC9D,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC,MAAM,GAAG,CAAC,CAC3C,CAAC;aACH;SACF;aAAM;YACL,IAAI,oBAAoB,EAAE;gBACxB,kFAAkF;gBAClF,kEAAkE;gBAClE,IAAI,CAAC,QAAQ,CAAC,UAAU,CACtB,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC,OAAO,CAAC,qBAAqB,CAAC,EAC9D,CAAC,CACF,CAAC;gBAEF,IAAI,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC;aACzC;SACF;IACH,CAAC;IAED,eAAe;QACb,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC;QAC5D,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;YAC9B,MAAM,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC;YACtC,MAAM,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAC;IACL,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,iBAAiB;YACpD,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC;SACxB,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderAggregateOperator_DistinctCount.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,wBAAwB,EACxB,kBAAkB,EAIlB,KAAK,IAAI,
|
1
|
+
{"version":3,"file":"QueryBuilderAggregateOperator_DistinctCount.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,wBAAwB,EACxB,kBAAkB,EAIlB,KAAK,IAAI,EAIV,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,KAAK,QAAQ,EAEd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EACL,KAAK,iCAAiC,EAEvC,MAAM,uDAAuD,CAAC;AAI/D,qBAAa,2CACX,SAAQ,6BACR,YAAW,QAAQ;IAEnB,QAAQ,CAAC,qBAAqB,EAAE,iCAAiC,GAAG,MAAM;IAI1E,sBAAsB,CACpB,qBAAqB,EAAE,iCAAiC,GACvD,OAAO;IA0BV,wBAAwB,CACtB,kBAAkB,EAAE,0BAA0B,GAAG,SAAS,EAC1D,YAAY,EAAE,MAAM,EACpB,KAAK,EAAE,SAAS,GACf,kBAAkB;IAcrB,yBAAyB,CACvB,UAAU,EAAE,wBAAwB,EACpC,WAAW,EAAE,kBAAkB,EAC/B,qBAAqB,EAAE,iCAAiC,GACvD,gCAAgC,GAAG,SAAS;IAkEtC,aAAa,CACpB,oBAAoB,EAAE,gCAAgC,GACrD,IAAI;IAIP,IAAI,QAAQ,IAAI,MAAM,CAIrB;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 { SimpleFunctionExpression, VariableExpression, extractElementNameFromPath, matchFunctionName, PRIMITIVE_TYPE, Enumeration, Multiplicity, } from '@finos/legend-graph';
|
16
|
+
import { SimpleFunctionExpression, VariableExpression, extractElementNameFromPath, matchFunctionName, PRIMITIVE_TYPE, Enumeration, Multiplicity, PrimitiveType, } from '@finos/legend-graph';
|
17
17
|
import { assertTrue, guaranteeType, hashArray, } from '@finos/legend-shared';
|
18
18
|
import { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
|
19
19
|
import { QueryBuilderAggregateOperator } from '../QueryBuilderAggregateOperator.js';
|
@@ -70,9 +70,7 @@ export class QueryBuilderAggregateOperator_DistinctCount extends QueryBuilderAgg
|
|
70
70
|
return undefined;
|
71
71
|
}
|
72
72
|
getReturnType(aggregateColumnState) {
|
73
|
-
|
74
|
-
.graphManagerState.graph;
|
75
|
-
return graph.getType(PRIMITIVE_TYPE.INTEGER);
|
73
|
+
return PrimitiveType.INTEGER;
|
76
74
|
}
|
77
75
|
get hashCode() {
|
78
76
|
return hashArray([
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderAggregateOperator_DistinctCount.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,wBAAwB,EACxB,kBAAkB,EAClB,0BAA0B,EAC1B,iBAAiB,EACjB,cAAc,EAEd,WAAW,EACX,YAAY,
|
1
|
+
{"version":3,"file":"QueryBuilderAggregateOperator_DistinctCount.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,wBAAwB,EACxB,kBAAkB,EAClB,0BAA0B,EAC1B,iBAAiB,EACjB,cAAc,EAEd,WAAW,EACX,YAAY,EACZ,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,aAAa,EAEb,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gCAAgC,EAAE,MAAM,oC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I,gCAAgC,oBAAoB,CAAC,mBAAmB,GAAG,CACjL,CAAC;YAEF,WAAW;YACX,UAAU,CACR,IAAI,CAAC,sBAAsB,CAAC,oBAAoB,CAAC,qBAAqB,CAAC,EACvE,yEAAyE,CAC1E,CAAC;YACF,oBAAoB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;YAEvC,OAAO,oBAAoB,CAAC;SAC7B;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAEQ,aAAa,CACpB,oBAAsD;QAEtD,OAAO,aAAa,CAAC,OAAO,CAAC;IAC/B,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,iCAAiC;SACrE,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -15,7 +15,8 @@
|
|
15
15
|
*/
|
16
16
|
import type { FunctionExpression, Type, ValueSpecification } from '@finos/legend-graph';
|
17
17
|
import { type Hashable } from '@finos/legend-shared';
|
18
|
-
import type { PostFilterConditionState, QueryBuilderPostFilterState
|
18
|
+
import type { PostFilterConditionState, QueryBuilderPostFilterState } from './QueryBuilderPostFilterState.js';
|
19
|
+
import type { TDS_COLUMN_GETTER } from '../../../../graph/QueryBuilderMetaModelConst.js';
|
19
20
|
export declare abstract class QueryBuilderPostFilterOperator implements Hashable {
|
20
21
|
readonly uuid: string;
|
21
22
|
abstract getLabel(): string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderPostFilterOperator.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,kBAAkB,EAClB,IAAI,EACJ,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,QAAQ,EAAQ,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,
|
1
|
+
{"version":3,"file":"QueryBuilderPostFilterOperator.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,kBAAkB,EAClB,IAAI,EACJ,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,QAAQ,EAAQ,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAC;AAEzF,8BAAsB,8BAA+B,YAAW,QAAQ;IACtE,QAAQ,CAAC,IAAI,SAAU;IAEvB,QAAQ,CAAC,QAAQ,IAAI,MAAM;IAE3B,kBAAkB,IAAI,iBAAiB,GAAG,SAAS;IAInD,QAAQ,CAAC,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO;IAElD,QAAQ,CAAC,8BAA8B,CACrC,wBAAwB,EAAE,wBAAwB,GACjD,OAAO;IAEV,QAAQ,CAAC,8BAA8B,CACrC,wBAAwB,EAAE,wBAAwB,GACjD,kBAAkB,GAAG,SAAS;IAEjC,gCAAgC,CAC9B,eAAe,EAAE,wBAAwB,GACxC,OAAO;IAQV,QAAQ,CAAC,kCAAkC,CACzC,wBAAwB,EAAE,wBAAwB,GACjD,kBAAkB,GAAG,SAAS;IAEjC,QAAQ,CAAC,6BAA6B,CACpC,eAAe,EAAE,2BAA2B,EAC5C,UAAU,EAAE,kBAAkB,GAC7B,wBAAwB,GAAG,SAAS;IAEvC,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC;CACjC"}
|
@@ -22,26 +22,12 @@ import { QueryBuilderProjectionColumnState, type QueryBuilderProjectionColumnDra
|
|
22
22
|
import { QUERY_BUILDER_GROUP_OPERATION } from '../../../QueryBuilderGroupOperationHelper.js';
|
23
23
|
import type { QueryBuilderTDSState } from '../QueryBuilderTDSState.js';
|
24
24
|
import type { QueryBuilderTDSColumnState } from '../QueryBuilderTDSColumnState.js';
|
25
|
+
import { TDS_COLUMN_GETTER } from '../../../../graph/QueryBuilderMetaModelConst.js';
|
25
26
|
export declare enum QUERY_BUILDER_POST_FILTER_DND_TYPE {
|
26
27
|
GROUP_CONDITION = "GROUP_CONDITION",
|
27
28
|
CONDITION = "CONDITION",
|
28
29
|
BLANK_CONDITION = "BLANK_CONDITION"
|
29
30
|
}
|
30
|
-
export declare enum TDS_COLUMN_GETTER {
|
31
|
-
GET_STRING = "getString",
|
32
|
-
GET_NUMBER = "getNumber",
|
33
|
-
GET_INTEGER = "getInteger",
|
34
|
-
GET_FLOAT = "getFloat",
|
35
|
-
GET_DECIMAL = "getDecimal",
|
36
|
-
GET_DATE = "getDate",
|
37
|
-
GET_DATETIME = "getDateTime",
|
38
|
-
GET_STRICTDATE = "getStrictDate",
|
39
|
-
GET_BOOLEAN = "getBoolean",
|
40
|
-
GET_ENUM = "getEnum",
|
41
|
-
IS_NULL = "isNull",
|
42
|
-
IS_NOT_NULL = "isNotNull"
|
43
|
-
}
|
44
|
-
export declare const getTDSColumnDerivedProperyFromType: (type: Type) => TDS_COLUMN_GETTER;
|
45
31
|
export declare const getTypeFromDerivedProperty: (derivedProperty: TDS_COLUMN_GETTER, graph: PureModel) => Type | undefined;
|
46
32
|
export declare abstract class QueryBuilderPostFilterTreeNodeData implements TreeNodeData, Hashable {
|
47
33
|
readonly id: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderPostFilterState.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EACL,KAAK,SAAS,EACd,KAAK,IAAI,EACT,KAAK,kBAAkB,EAEvB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,
|
1
|
+
{"version":3,"file":"QueryBuilderPostFilterState.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EACL,KAAK,SAAS,EACd,KAAK,IAAI,EACT,KAAK,kBAAkB,EAEvB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAI9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,WAAW,EAWhB,WAAW,EAGX,KAAK,QAAQ,EAEd,MAAM,sBAAsB,CAAC;AAU9B,OAAO,EAAE,gCAAgC,EAAE,MAAM,gDAAgD,CAAC;AAClG,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAC1F,OAAO,EACL,iCAAiC,EACjC,KAAK,sCAAsC,EAC3C,2CAA2C,EAC5C,MAAM,oDAAoD,CAAC;AAM5D,OAAO,EAAE,6BAA6B,EAAE,MAAM,8CAA8C,CAAC;AAC7F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAOnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAC;AAEpF,oBAAY,kCAAkC;IAC5C,eAAe,oBAAoB;IACnC,SAAS,cAAc;IACvB,eAAe,oBAAoB;CACpC;AAED,eAAO,MAAM,0BAA0B,oBACpB,iBAAiB,SAC3B,SAAS,KACf,IAAI,GAAG,SAuBT,CAAC;AAEF,8BAAsB,kCACpB,YAAW,YAAY,EAAE,QAAQ;IAEjC,QAAQ,CAAC,EAAE,SAAU;IACrB,QAAQ,CAAC,KAAK,MAAM;IA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See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import {
|
17
|
-
import { addUniqueEntry, assertErrorThrown, assertTrue, deleteEntry, getNullableFirstEntry, guaranteeNonNullable, guaranteeType, IllegalStateError,
|
16
|
+
import { observe_ValueSpecification, PrimitiveType, CollectionInstanceValue, } from '@finos/legend-graph';
|
17
|
+
import { addUniqueEntry, assertErrorThrown, assertTrue, deleteEntry, getNullableFirstEntry, guaranteeNonNullable, guaranteeType, IllegalStateError, uuid, filterByType, ActionState, hashArray, uniq, isNonNullable, } from '@finos/legend-shared';
|
18
18
|
import { action, computed, flow, flowResult, makeObservable, observable, } from 'mobx';
|
19
19
|
import { DEFAULT_POST_FILTER_LAMBDA_VARIABLE_NAME } from '../../../QueryBuilderConfig.js';
|
20
20
|
import { QueryBuilderAggregateColumnState } from '../aggregation/QueryBuilderAggregationState.js';
|
@@ -24,54 +24,13 @@ import { QUERY_BUILDER_GROUP_OPERATION } from '../../../QueryBuilderGroupOperati
|
|
24
24
|
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../../../QueryBuilderStateHashUtils.js';
|
25
25
|
import { getCollectionValueSpecificationType, getNonCollectionValueSpecificationType, isValueExpressionReferencedInValue, } from '../../../QueryBuilderValueSpecificationHelper.js';
|
26
26
|
import { buildtdsPropertyExpressionFromColState } from './operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js';
|
27
|
+
import { TDS_COLUMN_GETTER } from '../../../../graph/QueryBuilderMetaModelConst.js';
|
27
28
|
export var QUERY_BUILDER_POST_FILTER_DND_TYPE;
|
28
29
|
(function (QUERY_BUILDER_POST_FILTER_DND_TYPE) {
|
29
30
|
QUERY_BUILDER_POST_FILTER_DND_TYPE["GROUP_CONDITION"] = "GROUP_CONDITION";
|
30
31
|
QUERY_BUILDER_POST_FILTER_DND_TYPE["CONDITION"] = "CONDITION";
|
31
32
|
QUERY_BUILDER_POST_FILTER_DND_TYPE["BLANK_CONDITION"] = "BLANK_CONDITION";
|
32
33
|
})(QUERY_BUILDER_POST_FILTER_DND_TYPE || (QUERY_BUILDER_POST_FILTER_DND_TYPE = {}));
|
33
|
-
export var TDS_COLUMN_GETTER;
|
34
|
-
(function (TDS_COLUMN_GETTER) {
|
35
|
-
TDS_COLUMN_GETTER["GET_STRING"] = "getString";
|
36
|
-
TDS_COLUMN_GETTER["GET_NUMBER"] = "getNumber";
|
37
|
-
TDS_COLUMN_GETTER["GET_INTEGER"] = "getInteger";
|
38
|
-
TDS_COLUMN_GETTER["GET_FLOAT"] = "getFloat";
|
39
|
-
TDS_COLUMN_GETTER["GET_DECIMAL"] = "getDecimal";
|
40
|
-
TDS_COLUMN_GETTER["GET_DATE"] = "getDate";
|
41
|
-
TDS_COLUMN_GETTER["GET_DATETIME"] = "getDateTime";
|
42
|
-
TDS_COLUMN_GETTER["GET_STRICTDATE"] = "getStrictDate";
|
43
|
-
TDS_COLUMN_GETTER["GET_BOOLEAN"] = "getBoolean";
|
44
|
-
TDS_COLUMN_GETTER["GET_ENUM"] = "getEnum";
|
45
|
-
TDS_COLUMN_GETTER["IS_NULL"] = "isNull";
|
46
|
-
TDS_COLUMN_GETTER["IS_NOT_NULL"] = "isNotNull";
|
47
|
-
})(TDS_COLUMN_GETTER || (TDS_COLUMN_GETTER = {}));
|
48
|
-
export const getTDSColumnDerivedProperyFromType = (type) => {
|
49
|
-
if (type instanceof Enumeration) {
|
50
|
-
return TDS_COLUMN_GETTER.GET_ENUM;
|
51
|
-
}
|
52
|
-
switch (type.path) {
|
53
|
-
case PRIMITIVE_TYPE.STRING:
|
54
|
-
return TDS_COLUMN_GETTER.GET_STRING;
|
55
|
-
case PRIMITIVE_TYPE.NUMBER:
|
56
|
-
return TDS_COLUMN_GETTER.GET_NUMBER;
|
57
|
-
case PRIMITIVE_TYPE.INTEGER:
|
58
|
-
return TDS_COLUMN_GETTER.GET_INTEGER;
|
59
|
-
case PRIMITIVE_TYPE.FLOAT:
|
60
|
-
return TDS_COLUMN_GETTER.GET_FLOAT;
|
61
|
-
case PRIMITIVE_TYPE.DECIMAL:
|
62
|
-
return TDS_COLUMN_GETTER.GET_DECIMAL;
|
63
|
-
case PRIMITIVE_TYPE.DATE:
|
64
|
-
return TDS_COLUMN_GETTER.GET_DATE;
|
65
|
-
case PRIMITIVE_TYPE.DATETIME:
|
66
|
-
return TDS_COLUMN_GETTER.GET_DATETIME;
|
67
|
-
case PRIMITIVE_TYPE.STRICTDATE:
|
68
|
-
return TDS_COLUMN_GETTER.GET_STRICTDATE;
|
69
|
-
case PRIMITIVE_TYPE.BOOLEAN:
|
70
|
-
return TDS_COLUMN_GETTER.GET_BOOLEAN;
|
71
|
-
default:
|
72
|
-
throw new UnsupportedOperationError(`Can't find TDS column derived property name for type: '${type.path}'`);
|
73
|
-
}
|
74
|
-
};
|
75
34
|
export const getTypeFromDerivedProperty = (derivedProperty, graph) => {
|
76
35
|
switch (derivedProperty) {
|
77
36
|
case TDS_COLUMN_GETTER.GET_STRING:
|