@finos/legend-query-builder 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +201 -0
- package/README.md +3 -0
- package/lib/components/QueryBuilder.d.ts +22 -0
- package/lib/components/QueryBuilder.d.ts.map +1 -0
- package/lib/components/QueryBuilder.js +111 -0
- package/lib/components/QueryBuilder.js.map +1 -0
- package/lib/components/QueryBuilderComponentTestUtils.d.ts +24 -0
- package/lib/components/QueryBuilderComponentTestUtils.d.ts.map +1 -0
- package/lib/components/QueryBuilderComponentTestUtils.js +54 -0
- package/lib/components/QueryBuilderComponentTestUtils.js.map +1 -0
- package/lib/components/QueryBuilderParametersPanel.d.ts +31 -0
- package/lib/components/QueryBuilderParametersPanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderParametersPanel.js +128 -0
- package/lib/components/QueryBuilderParametersPanel.js.map +1 -0
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +29 -0
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -0
- package/lib/components/QueryBuilderPropertyExpressionEditor.js +116 -0
- package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -0
- package/lib/components/QueryBuilderResultPanel.d.ts +22 -0
- package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderResultPanel.js +242 -0
- package/lib/components/QueryBuilderResultPanel.js.map +1 -0
- package/lib/components/QueryBuilderSideBar.d.ts +41 -0
- package/lib/components/QueryBuilderSideBar.d.ts.map +1 -0
- package/lib/components/QueryBuilderSideBar.js +169 -0
- package/lib/components/QueryBuilderSideBar.js.map +1 -0
- package/lib/components/QueryBuilderTextEditor.d.ts +22 -0
- package/lib/components/QueryBuilderTextEditor.d.ts.map +1 -0
- package/lib/components/QueryBuilderTextEditor.js +48 -0
- package/lib/components/QueryBuilderTextEditor.js.map +1 -0
- package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts +22 -0
- package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts.map +1 -0
- package/lib/components/QueryBuilderUnsupportedQueryEditor.js +36 -0
- package/lib/components/QueryBuilderUnsupportedQueryEditor.js.map +1 -0
- package/lib/components/QueryBuilder_TestID.d.ts +26 -0
- package/lib/components/QueryBuilder_TestID.d.ts.map +1 -0
- package/lib/components/QueryBuilder_TestID.js +27 -0
- package/lib/components/QueryBuilder_TestID.js.map +1 -0
- package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts +36 -0
- package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -0
- package/lib/components/explorer/QueryBuilderExplorerPanel.js +340 -0
- package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -0
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts +22 -0
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts.map +1 -0
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js +147 -0
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js.map +1 -0
- package/lib/components/explorer/QueryBuilderMilestoneEditor.d.ts +22 -0
- package/lib/components/explorer/QueryBuilderMilestoneEditor.d.ts.map +1 -0
- package/lib/components/explorer/QueryBuilderMilestoneEditor.js +122 -0
- package/lib/components/explorer/QueryBuilderMilestoneEditor.js.map +1 -0
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts +23 -0
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts.map +1 -0
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.js +200 -0
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.js.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts +22 -0
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js +52 -0
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.js.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +31 -0
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js +94 -0
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.js.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts +30 -0
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +378 -0
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderProjectionPanel.d.ts +22 -0
- package/lib/components/fetch-structure/QueryBuilderProjectionPanel.d.ts.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderProjectionPanel.js +216 -0
- package/lib/components/fetch-structure/QueryBuilderProjectionPanel.js.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts +22 -0
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +88 -0
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -0
- package/lib/components/filter/QueryBuilderFilterPanel.d.ts +22 -0
- package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -0
- package/lib/components/filter/QueryBuilderFilterPanel.js +316 -0
- package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -0
- package/lib/components/shared/ElementIconUtils.d.ts +18 -0
- package/lib/components/shared/ElementIconUtils.d.ts.map +1 -0
- package/lib/components/shared/ElementIconUtils.js +37 -0
- package/lib/components/shared/ElementIconUtils.js.map +1 -0
- package/lib/components/shared/QueryBuilderLambdaEditor.d.ts +42 -0
- package/lib/components/shared/QueryBuilderLambdaEditor.d.ts.map +1 -0
- package/lib/components/shared/QueryBuilderLambdaEditor.js +47 -0
- package/lib/components/shared/QueryBuilderLambdaEditor.js.map +1 -0
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts +20 -0
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.d.ts.map +1 -0
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js +28 -0
- package/lib/components/shared/QueryBuilderPanelIssueCountBadge.js.map +1 -0
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts +26 -0
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.d.ts.map +1 -0
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js +32 -0
- package/lib/components/shared/QueryBuilderPropertyInfoTooltip.js.map +1 -0
- package/lib/components/workflows/ClassQueryBuilder.d.ts +18 -0
- package/lib/components/workflows/ClassQueryBuilder.d.ts.map +1 -0
- package/lib/components/workflows/ClassQueryBuilder.js +87 -0
- package/lib/components/workflows/ClassQueryBuilder.js.map +1 -0
- package/lib/components/workflows/MappingQueryBuilder.d.ts +18 -0
- package/lib/components/workflows/MappingQueryBuilder.d.ts.map +1 -0
- package/lib/components/workflows/MappingQueryBuilder.js +88 -0
- package/lib/components/workflows/MappingQueryBuilder.js.map +1 -0
- package/lib/components/workflows/ServiceQueryBuilder.d.ts +18 -0
- package/lib/components/workflows/ServiceQueryBuilder.d.ts.map +1 -0
- package/lib/components/workflows/ServiceQueryBuilder.js +69 -0
- package/lib/components/workflows/ServiceQueryBuilder.js.map +1 -0
- package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts +60 -0
- package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts.map +1 -0
- package/lib/graphManager/QueryBuilderSupportedFunctions.js +65 -0
- package/lib/graphManager/QueryBuilderSupportedFunctions.js.map +1 -0
- package/lib/graphManager/QueryBuilder_GraphManagerPlugin.d.ts +21 -0
- package/lib/graphManager/QueryBuilder_GraphManagerPlugin.d.ts.map +1 -0
- package/lib/graphManager/QueryBuilder_GraphManagerPlugin.js +27 -0
- package/lib/graphManager/QueryBuilder_GraphManagerPlugin.js.map +1 -0
- package/lib/graphManager/QueryBuilder_GraphManagerPreset.d.ts +24 -0
- package/lib/graphManager/QueryBuilder_GraphManagerPreset.d.ts.map +1 -0
- package/lib/graphManager/QueryBuilder_GraphManagerPreset.js +32 -0
- package/lib/graphManager/QueryBuilder_GraphManagerPreset.js.map +1 -0
- package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.d.ts +21 -0
- package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.d.ts.map +1 -0
- package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.js +20 -0
- package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.js.map +1 -0
- package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.d.ts +21 -0
- package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.d.ts.map +1 -0
- package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.js +20 -0
- package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.js.map +1 -0
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.d.ts +25 -0
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.js +21 -0
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.js.map +1 -0
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.d.ts +18 -0
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.js +20 -0
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.js.map +1 -0
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts +22 -0
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js +70 -0
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +1 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.d.ts +22 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.js +207 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.js.map +1 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.d.ts +18 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.js +18 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.js.map +1 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.d.ts +29 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js +182 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js.map +1 -0
- package/lib/index.css +17 -0
- package/lib/index.css.map +1 -0
- package/lib/index.d.ts +28 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +26 -0
- package/lib/index.js.map +1 -0
- package/lib/package.json +95 -0
- package/lib/stores/QueryBuilderBootstraper.d.ts +17 -0
- package/lib/stores/QueryBuilderBootstraper.d.ts.map +1 -0
- package/lib/stores/QueryBuilderBootstraper.js +22 -0
- package/lib/stores/QueryBuilderBootstraper.js.map +1 -0
- package/lib/stores/QueryBuilderChangeDetectionState.d.ts +25 -0
- package/lib/stores/QueryBuilderChangeDetectionState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderChangeDetectionState.js +32 -0
- package/lib/stores/QueryBuilderChangeDetectionState.js.map +1 -0
- package/lib/stores/QueryBuilderConfig.d.ts +32 -0
- package/lib/stores/QueryBuilderConfig.d.ts.map +1 -0
- package/lib/stores/QueryBuilderConfig.js +34 -0
- package/lib/stores/QueryBuilderConfig.js.map +1 -0
- package/lib/stores/QueryBuilderGroupOperationHelper.d.ts +22 -0
- package/lib/stores/QueryBuilderGroupOperationHelper.d.ts.map +1 -0
- package/lib/stores/QueryBuilderGroupOperationHelper.js +43 -0
- package/lib/stores/QueryBuilderGroupOperationHelper.js.map +1 -0
- package/lib/stores/QueryBuilderMilestoningState.d.ts +32 -0
- package/lib/stores/QueryBuilderMilestoningState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderMilestoningState.js +95 -0
- package/lib/stores/QueryBuilderMilestoningState.js.map +1 -0
- package/lib/stores/QueryBuilderParametersState.d.ts +28 -0
- package/lib/stores/QueryBuilderParametersState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderParametersState.js +39 -0
- package/lib/stores/QueryBuilderParametersState.js.map +1 -0
- package/lib/stores/QueryBuilderPreviewDataHelper.d.ts +26 -0
- package/lib/stores/QueryBuilderPreviewDataHelper.d.ts.map +1 -0
- package/lib/stores/QueryBuilderPreviewDataHelper.js +138 -0
- package/lib/stores/QueryBuilderPreviewDataHelper.js.map +1 -0
- package/lib/stores/QueryBuilderPropertyEditorState.d.ts +62 -0
- package/lib/stores/QueryBuilderPropertyEditorState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderPropertyEditorState.js +395 -0
- package/lib/stores/QueryBuilderPropertyEditorState.js.map +1 -0
- package/lib/stores/QueryBuilderResultState.d.ts +41 -0
- package/lib/stores/QueryBuilderResultState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderResultState.js +176 -0
- package/lib/stores/QueryBuilderResultState.js.map +1 -0
- package/lib/stores/QueryBuilderState.d.ts +110 -0
- package/lib/stores/QueryBuilderState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderState.js +334 -0
- package/lib/stores/QueryBuilderState.js.map +1 -0
- package/lib/stores/QueryBuilderStateBuilder.d.ts +124 -0
- package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -0
- package/lib/stores/QueryBuilderStateBuilder.js +311 -0
- package/lib/stores/QueryBuilderStateBuilder.js.map +1 -0
- package/lib/stores/QueryBuilderStateTestUtils.d.ts +24 -0
- package/lib/stores/QueryBuilderStateTestUtils.d.ts.map +1 -0
- package/lib/stores/QueryBuilderStateTestUtils.js +50 -0
- package/lib/stores/QueryBuilderStateTestUtils.js.map +1 -0
- package/lib/stores/QueryBuilderTextEditorState.d.ts +49 -0
- package/lib/stores/QueryBuilderTextEditorState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderTextEditorState.js +145 -0
- package/lib/stores/QueryBuilderTextEditorState.js.map +1 -0
- package/lib/stores/QueryBuilderTypeaheadHelper.d.ts +24 -0
- package/lib/stores/QueryBuilderTypeaheadHelper.d.ts.map +1 -0
- package/lib/stores/QueryBuilderTypeaheadHelper.js +85 -0
- package/lib/stores/QueryBuilderTypeaheadHelper.js.map +1 -0
- package/lib/stores/QueryBuilderUnsupportedQueryState.d.ts +26 -0
- package/lib/stores/QueryBuilderUnsupportedQueryState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderUnsupportedQueryState.js +37 -0
- package/lib/stores/QueryBuilderUnsupportedQueryState.js.map +1 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts +20 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js +87 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts +27 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts.map +1 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js +161 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js.map +1 -0
- package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts +61 -0
- package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts.map +1 -0
- package/lib/stores/QueryBuilderValueSpecificationHelper.js +235 -0
- package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -0
- package/lib/stores/explorer/QueryBuilderExplorerState.d.ts +99 -0
- package/lib/stores/explorer/QueryBuilderExplorerState.d.ts.map +1 -0
- package/lib/stores/explorer/QueryBuilderExplorerState.js +446 -0
- package/lib/stores/explorer/QueryBuilderExplorerState.js.map +1 -0
- package/lib/stores/explorer/QueryBuilderPropertySearchState.d.ts +46 -0
- package/lib/stores/explorer/QueryBuilderPropertySearchState.d.ts.map +1 -0
- package/lib/stores/explorer/QueryBuilderPropertySearchState.js +242 -0
- package/lib/stores/explorer/QueryBuilderPropertySearchState.js.map +1 -0
- package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts +59 -0
- package/lib/stores/explorer/QueryFunctionsExplorerState.d.ts.map +1 -0
- package/lib/stores/explorer/QueryFunctionsExplorerState.js +228 -0
- package/lib/stores/explorer/QueryFunctionsExplorerState.js.map +1 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts +40 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js +34 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js.map +1 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.d.ts +27 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js +73 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureState.js.map +1 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts +49 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +157 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +1 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts +20 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js +62 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts +42 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts.map +1 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js +173 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js.map +1 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.d.ts +26 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.js +72 -0
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.d.ts +73 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js +187 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.js.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.d.ts +68 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.js +305 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionState.js.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.d.ts +25 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.js +186 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts +26 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.js +189 -0
- package/lib/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.d.ts +43 -0
- package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.js +77 -0
- package/lib/stores/fetch-structure/projection/QueryResultSetModifierState.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.d.ts +32 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.js +36 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.d.ts +18 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.js +38 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.d.ts +42 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.js +103 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.d.ts +20 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.js +96 -0
- package/lib/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.d.ts +22 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.js +40 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts +27 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js +50 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts +27 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js +55 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts +26 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js +50 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts +27 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js +78 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts +27 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js +67 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts +26 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js +86 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts +26 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js +86 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts +27 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js +50 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts +27 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js +50 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts +26 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js +45 -0
- package/lib/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.d.ts +29 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.js +30 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts +18 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.js +44 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.d.ts +135 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js +585 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.d.ts +22 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.js +122 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts +19 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js +79 -0
- package/lib/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts +23 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js +73 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts +32 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +75 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts +32 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +75 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts +32 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +118 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts +27 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js +81 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts +24 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js +43 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts +32 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js +104 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts +33 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js +67 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts +27 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js +81 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts +24 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js +43 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts +32 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +1 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +75 -0
- package/lib/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterOperator.d.ts +27 -0
- package/lib/stores/filter/QueryBuilderFilterOperator.d.ts.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterOperator.js +20 -0
- package/lib/stores/filter/QueryBuilderFilterOperator.js.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterOperatorLoader.d.ts +18 -0
- package/lib/stores/filter/QueryBuilderFilterOperatorLoader.d.ts.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterOperatorLoader.js +44 -0
- package/lib/stores/filter/QueryBuilderFilterOperatorLoader.js.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterState.d.ts +123 -0
- package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterState.js +531 -0
- package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterStateBuilder.d.ts +19 -0
- package/lib/stores/filter/QueryBuilderFilterStateBuilder.d.ts.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterStateBuilder.js +74 -0
- package/lib/stores/filter/QueryBuilderFilterStateBuilder.js.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts +19 -0
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js +78 -0
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.d.ts +21 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.d.ts.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.js +257 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorHelper.js.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts +32 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js +71 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts +32 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js +71 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts +32 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js +115 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts +27 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js +83 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts +27 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js +83 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts +32 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js +103 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts +32 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js +65 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts +27 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js +83 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts +27 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js +83 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts +32 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts.map +1 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js +71 -0
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js.map +1 -0
- package/lib/stores/workflows/ClassQueryBuilderState.d.ts +35 -0
- package/lib/stores/workflows/ClassQueryBuilderState.d.ts.map +1 -0
- package/lib/stores/workflows/ClassQueryBuilderState.js +57 -0
- package/lib/stores/workflows/ClassQueryBuilderState.js.map +1 -0
- package/lib/stores/workflows/MappingQueryBuilderState.d.ts +33 -0
- package/lib/stores/workflows/MappingQueryBuilderState.d.ts.map +1 -0
- package/lib/stores/workflows/MappingQueryBuilderState.js +55 -0
- package/lib/stores/workflows/MappingQueryBuilderState.js.map +1 -0
- package/lib/stores/workflows/ServiceQueryBuilderState.d.ts +44 -0
- package/lib/stores/workflows/ServiceQueryBuilderState.d.ts.map +1 -0
- package/lib/stores/workflows/ServiceQueryBuilderState.js +90 -0
- package/lib/stores/workflows/ServiceQueryBuilderState.js.map +1 -0
- package/package.json +95 -0
- package/src/components/QueryBuilder.tsx +411 -0
- package/src/components/QueryBuilderComponentTestUtils.tsx +122 -0
- package/src/components/QueryBuilderParametersPanel.tsx +431 -0
- package/src/components/QueryBuilderPropertyExpressionEditor.tsx +376 -0
- package/src/components/QueryBuilderResultPanel.tsx +640 -0
- package/src/components/QueryBuilderSideBar.tsx +421 -0
- package/src/components/QueryBuilderTextEditor.tsx +127 -0
- package/src/components/QueryBuilderUnsupportedQueryEditor.tsx +88 -0
- package/src/components/QueryBuilder_TestID.ts +26 -0
- package/src/components/explorer/QueryBuilderExplorerPanel.tsx +934 -0
- package/src/components/explorer/QueryBuilderFunctionsExplorerPanel.tsx +554 -0
- package/src/components/explorer/QueryBuilderMilestoneEditor.tsx +296 -0
- package/src/components/explorer/QueryBuilderPropertySearchPanel.tsx +617 -0
- package/src/components/fetch-structure/QueryBuilderFetchStructurePanel.tsx +112 -0
- package/src/components/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx +276 -0
- package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +1103 -0
- package/src/components/fetch-structure/QueryBuilderProjectionPanel.tsx +649 -0
- package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +254 -0
- package/src/components/filter/QueryBuilderFilterPanel.tsx +891 -0
- package/src/components/shared/ElementIconUtils.tsx +47 -0
- package/src/components/shared/QueryBuilderLambdaEditor.tsx +120 -0
- package/src/components/shared/QueryBuilderPanelIssueCountBadge.tsx +40 -0
- package/src/components/shared/QueryBuilderPropertyInfoTooltip.tsx +87 -0
- package/src/components/workflows/ClassQueryBuilder.tsx +198 -0
- package/src/components/workflows/MappingQueryBuilder.tsx +195 -0
- package/src/components/workflows/ServiceQueryBuilder.tsx +192 -0
- package/src/graphManager/QueryBuilderSupportedFunctions.ts +67 -0
- package/src/graphManager/QueryBuilder_GraphManagerPlugin.ts +32 -0
- package/src/graphManager/QueryBuilder_GraphManagerPreset.ts +33 -0
- package/src/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.ts +22 -0
- package/src/graphManager/action/analytics/ServiceExecutionAnalysis.ts +22 -0
- package/src/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.ts +47 -0
- package/src/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.ts +27 -0
- package/src/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +167 -0
- package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.ts +571 -0
- package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.ts +28 -0
- package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.ts +296 -0
- package/src/index.ts +38 -0
- package/src/stores/QueryBuilderBootstraper.ts +23 -0
- package/src/stores/QueryBuilderChangeDetectionState.ts +37 -0
- package/src/stores/QueryBuilderConfig.ts +34 -0
- package/src/stores/QueryBuilderGroupOperationHelper.ts +54 -0
- package/src/stores/QueryBuilderMilestoningState.ts +164 -0
- package/src/stores/QueryBuilderParametersState.ts +52 -0
- package/src/stores/QueryBuilderPreviewDataHelper.ts +202 -0
- package/src/stores/QueryBuilderPropertyEditorState.ts +668 -0
- package/src/stores/QueryBuilderResultState.ts +281 -0
- package/src/stores/QueryBuilderState.ts +465 -0
- package/src/stores/QueryBuilderStateBuilder.ts +585 -0
- package/src/stores/QueryBuilderStateTestUtils.ts +99 -0
- package/src/stores/QueryBuilderTextEditorState.ts +203 -0
- package/src/stores/QueryBuilderTypeaheadHelper.ts +152 -0
- package/src/stores/QueryBuilderUnsupportedQueryState.ts +44 -0
- package/src/stores/QueryBuilderValueSpecificationBuilder.ts +179 -0
- package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +256 -0
- package/src/stores/QueryBuilderValueSpecificationHelper.ts +359 -0
- package/src/stores/explorer/QueryBuilderExplorerState.ts +798 -0
- package/src/stores/explorer/QueryBuilderPropertySearchState.ts +333 -0
- package/src/stores/explorer/QueryFunctionsExplorerState.ts +375 -0
- package/src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts +65 -0
- package/src/stores/fetch-structure/QueryBuilderFetchStructureState.ts +107 -0
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +240 -0
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.ts +131 -0
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.ts +282 -0
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.ts +154 -0
- package/src/stores/fetch-structure/projection/QueryBuilderProjectionColumnState.ts +327 -0
- package/src/stores/fetch-structure/projection/QueryBuilderProjectionState.ts +569 -0
- package/src/stores/fetch-structure/projection/QueryBuilderProjectionStateBuilder.ts +426 -0
- package/src/stores/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +416 -0
- package/src/stores/fetch-structure/projection/QueryResultSetModifierState.ts +95 -0
- package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.ts +79 -0
- package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.ts +41 -0
- package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationState.ts +145 -0
- package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.ts +228 -0
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.ts +109 -0
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.ts +98 -0
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.ts +106 -0
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.ts +96 -0
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts +173 -0
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.ts +155 -0
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.ts +174 -0
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.ts +174 -0
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.ts +98 -0
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.ts +98 -0
- package/src/stores/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.ts +88 -0
- package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.ts +66 -0
- package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.ts +65 -0
- package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.ts +807 -0
- package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.ts +297 -0
- package/src/stores/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.ts +121 -0
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts +129 -0
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +140 -0
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +135 -0
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +218 -0
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +143 -0
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts +70 -0
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.ts +183 -0
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +113 -0
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +143 -0
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts +70 -0
- package/src/stores/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +135 -0
- package/src/stores/filter/QueryBuilderFilterOperator.ts +52 -0
- package/src/stores/filter/QueryBuilderFilterOperatorLoader.ts +65 -0
- package/src/stores/filter/QueryBuilderFilterState.ts +736 -0
- package/src/stores/filter/QueryBuilderFilterStateBuilder.ts +155 -0
- package/src/stores/filter/QueryBuilderFilterValueSpecificationBuilder.ts +120 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperatorHelper.ts +524 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_Contain.ts +134 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_EndWith.ts +134 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_Equal.ts +211 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.ts +145 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.ts +145 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_In.ts +181 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.ts +125 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThan.ts +145 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.ts +145 -0
- package/src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts +134 -0
- package/src/stores/workflows/ClassQueryBuilderState.ts +80 -0
- package/src/stores/workflows/MappingQueryBuilderState.ts +86 -0
- package/src/stores/workflows/ServiceQueryBuilderState.ts +143 -0
- package/tsconfig.json +166 -0
- package/tsconfig.package.json +38 -0
@@ -0,0 +1,798 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
import type { TreeNodeData, TreeData } from '@finos/legend-art';
|
18
|
+
import {
|
19
|
+
guaranteeNonNullable,
|
20
|
+
addUniqueEntry,
|
21
|
+
ActionState,
|
22
|
+
assertErrorThrown,
|
23
|
+
type GeneratorFn,
|
24
|
+
assertType,
|
25
|
+
UnsupportedOperationError,
|
26
|
+
} from '@finos/legend-shared';
|
27
|
+
import {
|
28
|
+
type AbstractProperty,
|
29
|
+
type PureModel,
|
30
|
+
type Type,
|
31
|
+
type MappingModelCoverageAnalysisResult,
|
32
|
+
type EnumMappedProperty,
|
33
|
+
type MappedEntity,
|
34
|
+
TYPICAL_MULTIPLICITY_TYPE,
|
35
|
+
AbstractPropertyExpression,
|
36
|
+
Class,
|
37
|
+
VariableExpression,
|
38
|
+
GenericType,
|
39
|
+
GenericTypeExplicitReference,
|
40
|
+
SimpleFunctionExpression,
|
41
|
+
InstanceValue,
|
42
|
+
extractElementNameFromPath,
|
43
|
+
matchFunctionName,
|
44
|
+
TYPE_CAST_TOKEN,
|
45
|
+
VARIABLE_REFERENCE_TOKEN,
|
46
|
+
ARROW_FUNCTION_TOKEN,
|
47
|
+
Multiplicity,
|
48
|
+
getAllClassProperties,
|
49
|
+
getAllOwnClassProperties,
|
50
|
+
getAllClassDerivedProperties,
|
51
|
+
Enum,
|
52
|
+
EntityMappedProperty,
|
53
|
+
Enumeration,
|
54
|
+
DerivedProperty,
|
55
|
+
Property,
|
56
|
+
Association,
|
57
|
+
PRIMITIVE_TYPE,
|
58
|
+
TdsExecutionResult,
|
59
|
+
type ExecutionResult,
|
60
|
+
getAllSubclasses,
|
61
|
+
} from '@finos/legend-graph';
|
62
|
+
import type { QueryBuilderState } from '../QueryBuilderState.js';
|
63
|
+
import {
|
64
|
+
action,
|
65
|
+
flow,
|
66
|
+
flowResult,
|
67
|
+
makeAutoObservable,
|
68
|
+
makeObservable,
|
69
|
+
observable,
|
70
|
+
} from 'mobx';
|
71
|
+
import { DEFAULT_LAMBDA_VARIABLE_NAME } from '../QueryBuilderConfig.js';
|
72
|
+
import {
|
73
|
+
buildNonNumericPreviewDataQuery,
|
74
|
+
buildNumericPreviewDataQuery,
|
75
|
+
type QueryBuilderPreviewData,
|
76
|
+
} from '../QueryBuilderPreviewDataHelper.js';
|
77
|
+
import { QueryBuilderPropertySearchState } from './QueryBuilderPropertySearchState.js';
|
78
|
+
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../graphManager/QueryBuilderSupportedFunctions.js';
|
79
|
+
|
80
|
+
export enum QUERY_BUILDER_EXPLORER_TREE_DND_TYPE {
|
81
|
+
ROOT = 'ROOT',
|
82
|
+
CLASS_PROPERTY = 'CLASS_PROPERTY',
|
83
|
+
ENUM_PROPERTY = 'ENUM_PROPERTY',
|
84
|
+
PRIMITIVE_PROPERTY = 'PRIMITIVE_PROPERTY',
|
85
|
+
}
|
86
|
+
|
87
|
+
export const generateExplorerTreePropertyNodeID = (
|
88
|
+
parentId: string,
|
89
|
+
propertyName: string,
|
90
|
+
): string => `${parentId ? `${parentId}.` : ''}${propertyName}`;
|
91
|
+
|
92
|
+
export const generateExplorerTreeSubtypeNodeID = (
|
93
|
+
parentId: string,
|
94
|
+
subClassPath: string,
|
95
|
+
): string => `${parentId ? parentId : ''}${TYPE_CAST_TOKEN}${subClassPath}`;
|
96
|
+
|
97
|
+
export interface QueryBuilderExplorerTreeDragSource {
|
98
|
+
node: QueryBuilderExplorerTreePropertyNodeData;
|
99
|
+
}
|
100
|
+
|
101
|
+
export abstract class QueryBuilderExplorerTreeNodeData implements TreeNodeData {
|
102
|
+
isSelected?: boolean | undefined;
|
103
|
+
isOpen?: boolean | undefined;
|
104
|
+
id: string;
|
105
|
+
label: string;
|
106
|
+
dndText: string;
|
107
|
+
childrenIds: string[] = [];
|
108
|
+
isPartOfDerivedPropertyBranch: boolean;
|
109
|
+
type: Type;
|
110
|
+
mappingData: QueryBuilderExplorerTreeNodeMappingData;
|
111
|
+
|
112
|
+
constructor(
|
113
|
+
id: string,
|
114
|
+
label: string,
|
115
|
+
dndText: string,
|
116
|
+
isPartOfDerivedPropertyBranch: boolean,
|
117
|
+
type: Type,
|
118
|
+
mappingData: QueryBuilderExplorerTreeNodeMappingData,
|
119
|
+
) {
|
120
|
+
makeObservable(this, {
|
121
|
+
isSelected: observable,
|
122
|
+
setIsSelected: action,
|
123
|
+
});
|
124
|
+
|
125
|
+
this.id = id;
|
126
|
+
this.label = label;
|
127
|
+
this.dndText = dndText;
|
128
|
+
this.isPartOfDerivedPropertyBranch = isPartOfDerivedPropertyBranch;
|
129
|
+
this.type = type;
|
130
|
+
this.mappingData = mappingData;
|
131
|
+
}
|
132
|
+
|
133
|
+
setIsSelected(val: boolean | undefined): void {
|
134
|
+
this.isSelected = val;
|
135
|
+
}
|
136
|
+
}
|
137
|
+
|
138
|
+
export type QueryBuilderExplorerTreeNodeMappingData = {
|
139
|
+
mapped: boolean;
|
140
|
+
mappedEntity?: MappedEntity | undefined;
|
141
|
+
};
|
142
|
+
|
143
|
+
export class QueryBuilderExplorerTreeRootNodeData extends QueryBuilderExplorerTreeNodeData {}
|
144
|
+
|
145
|
+
export class QueryBuilderExplorerTreePropertyNodeData extends QueryBuilderExplorerTreeNodeData {
|
146
|
+
property: AbstractProperty;
|
147
|
+
parentId: string;
|
148
|
+
|
149
|
+
constructor(
|
150
|
+
id: string,
|
151
|
+
label: string,
|
152
|
+
dndText: string,
|
153
|
+
property: AbstractProperty,
|
154
|
+
parentId: string,
|
155
|
+
isPartOfDerivedPropertyBranch: boolean,
|
156
|
+
mappingData: QueryBuilderExplorerTreeNodeMappingData,
|
157
|
+
) {
|
158
|
+
super(
|
159
|
+
id,
|
160
|
+
label,
|
161
|
+
dndText,
|
162
|
+
isPartOfDerivedPropertyBranch,
|
163
|
+
property.genericType.value.rawType,
|
164
|
+
mappingData,
|
165
|
+
);
|
166
|
+
this.property = property;
|
167
|
+
this.parentId = parentId;
|
168
|
+
}
|
169
|
+
}
|
170
|
+
|
171
|
+
export class QueryBuilderExplorerTreeSubTypeNodeData extends QueryBuilderExplorerTreeNodeData {
|
172
|
+
subclass: Class;
|
173
|
+
parentId: string;
|
174
|
+
multiplicity: Multiplicity;
|
175
|
+
|
176
|
+
constructor(
|
177
|
+
id: string,
|
178
|
+
label: string,
|
179
|
+
dndText: string,
|
180
|
+
subclass: Class,
|
181
|
+
parentId: string,
|
182
|
+
isPartOfDerivedPropertyBranch: boolean,
|
183
|
+
mappingData: QueryBuilderExplorerTreeNodeMappingData,
|
184
|
+
multiplicity: Multiplicity,
|
185
|
+
) {
|
186
|
+
super(
|
187
|
+
id,
|
188
|
+
label,
|
189
|
+
dndText,
|
190
|
+
isPartOfDerivedPropertyBranch,
|
191
|
+
subclass,
|
192
|
+
mappingData,
|
193
|
+
);
|
194
|
+
this.subclass = subclass;
|
195
|
+
this.parentId = parentId;
|
196
|
+
this.multiplicity = multiplicity;
|
197
|
+
}
|
198
|
+
}
|
199
|
+
|
200
|
+
export const buildPropertyExpressionFromExplorerTreeNodeData = (
|
201
|
+
treeData: TreeData<QueryBuilderExplorerTreeNodeData>,
|
202
|
+
node: QueryBuilderExplorerTreePropertyNodeData,
|
203
|
+
graph: PureModel,
|
204
|
+
allMappedPropertyNodes: QueryBuilderExplorerTreeNodeData[],
|
205
|
+
): AbstractPropertyExpression => {
|
206
|
+
const multiplicityOne = graph.getTypicalMultiplicity(
|
207
|
+
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
208
|
+
);
|
209
|
+
const projectionColumnLambdaVariable = new VariableExpression(
|
210
|
+
DEFAULT_LAMBDA_VARIABLE_NAME,
|
211
|
+
multiplicityOne,
|
212
|
+
);
|
213
|
+
const propertyExpression = new AbstractPropertyExpression(
|
214
|
+
'',
|
215
|
+
multiplicityOne,
|
216
|
+
);
|
217
|
+
propertyExpression.func = guaranteeNonNullable(node.property);
|
218
|
+
let currentExpression: AbstractPropertyExpression | SimpleFunctionExpression =
|
219
|
+
propertyExpression;
|
220
|
+
let parentNode =
|
221
|
+
treeData.nodes.get(node.parentId) ??
|
222
|
+
allMappedPropertyNodes.find((n) => n.id === node.parentId);
|
223
|
+
let currentNode: QueryBuilderExplorerTreeNodeData = node;
|
224
|
+
while (
|
225
|
+
parentNode instanceof QueryBuilderExplorerTreePropertyNodeData ||
|
226
|
+
parentNode instanceof QueryBuilderExplorerTreeSubTypeNodeData
|
227
|
+
) {
|
228
|
+
// NOTE: here, we deliverately simplify subtypes chain
|
229
|
+
// $x.employees->subType(@Person)->subType(@Staff).department will be simplified to $x.employees->subType(@Staff).department
|
230
|
+
if (
|
231
|
+
parentNode instanceof QueryBuilderExplorerTreeSubTypeNodeData &&
|
232
|
+
currentNode instanceof QueryBuilderExplorerTreeSubTypeNodeData
|
233
|
+
) {
|
234
|
+
parentNode = treeData.nodes.get(parentNode.parentId);
|
235
|
+
continue;
|
236
|
+
}
|
237
|
+
|
238
|
+
let parentPropertyExpression;
|
239
|
+
if (parentNode instanceof QueryBuilderExplorerTreeSubTypeNodeData) {
|
240
|
+
parentPropertyExpression = new SimpleFunctionExpression(
|
241
|
+
extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE),
|
242
|
+
multiplicityOne,
|
243
|
+
);
|
244
|
+
} else {
|
245
|
+
parentPropertyExpression = new AbstractPropertyExpression(
|
246
|
+
'',
|
247
|
+
multiplicityOne,
|
248
|
+
);
|
249
|
+
parentPropertyExpression.func = guaranteeNonNullable(parentNode.property);
|
250
|
+
}
|
251
|
+
currentExpression.parametersValues.push(parentPropertyExpression);
|
252
|
+
if (
|
253
|
+
currentExpression instanceof SimpleFunctionExpression &&
|
254
|
+
matchFunctionName(
|
255
|
+
currentExpression.functionName,
|
256
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE,
|
257
|
+
)
|
258
|
+
) {
|
259
|
+
const subclass = new InstanceValue(
|
260
|
+
multiplicityOne,
|
261
|
+
GenericTypeExplicitReference.create(new GenericType(currentNode.type)),
|
262
|
+
);
|
263
|
+
currentExpression.parametersValues.push(subclass);
|
264
|
+
}
|
265
|
+
currentExpression = parentPropertyExpression;
|
266
|
+
currentNode = parentNode;
|
267
|
+
parentNode = treeData.nodes.get(parentNode.parentId);
|
268
|
+
if (
|
269
|
+
!parentNode &&
|
270
|
+
(currentNode instanceof QueryBuilderExplorerTreePropertyNodeData ||
|
271
|
+
currentNode instanceof QueryBuilderExplorerTreeSubTypeNodeData)
|
272
|
+
) {
|
273
|
+
for (const propertyNode of allMappedPropertyNodes) {
|
274
|
+
if (propertyNode.id === currentNode.parentId) {
|
275
|
+
parentNode = propertyNode;
|
276
|
+
break;
|
277
|
+
}
|
278
|
+
}
|
279
|
+
}
|
280
|
+
}
|
281
|
+
currentExpression.parametersValues.push(projectionColumnLambdaVariable);
|
282
|
+
if (currentExpression instanceof SimpleFunctionExpression) {
|
283
|
+
const subclass = new InstanceValue(
|
284
|
+
multiplicityOne,
|
285
|
+
GenericTypeExplicitReference.create(new GenericType(currentNode.type)),
|
286
|
+
);
|
287
|
+
currentExpression.parametersValues.push(subclass);
|
288
|
+
}
|
289
|
+
return propertyExpression;
|
290
|
+
};
|
291
|
+
|
292
|
+
export const generatePropertyNodeMappingData = (
|
293
|
+
property: AbstractProperty,
|
294
|
+
parentMappingData: QueryBuilderExplorerTreeNodeMappingData,
|
295
|
+
modelCoverageAnalysisResult: MappingModelCoverageAnalysisResult,
|
296
|
+
): QueryBuilderExplorerTreeNodeMappingData => {
|
297
|
+
// If the property node's parent node does not have a mapped entity,
|
298
|
+
// it means the owner class is not mapped, i.e. this property is not mapped.
|
299
|
+
if (parentMappingData.mappedEntity) {
|
300
|
+
const mappedProp = parentMappingData.mappedEntity.__PROPERTIES_INDEX.get(
|
301
|
+
property.name,
|
302
|
+
);
|
303
|
+
if (
|
304
|
+
property.genericType.value.rawType instanceof Class ||
|
305
|
+
property.genericType.value.rawType instanceof Enum
|
306
|
+
) {
|
307
|
+
if (mappedProp) {
|
308
|
+
return {
|
309
|
+
mapped: true,
|
310
|
+
mappedEntity: modelCoverageAnalysisResult.__ENTITIES_INDEX.get(
|
311
|
+
mappedProp instanceof EntityMappedProperty
|
312
|
+
? mappedProp.entityPath
|
313
|
+
: (mappedProp as EnumMappedProperty).enumPath,
|
314
|
+
),
|
315
|
+
};
|
316
|
+
}
|
317
|
+
}
|
318
|
+
return { mapped: mappedProp !== undefined };
|
319
|
+
}
|
320
|
+
return { mapped: false };
|
321
|
+
};
|
322
|
+
|
323
|
+
export const generateSubtypeNodeMappingData = (
|
324
|
+
subclass: Class,
|
325
|
+
parentMappingData: QueryBuilderExplorerTreeNodeMappingData,
|
326
|
+
modelCoverageAnalysisResult: MappingModelCoverageAnalysisResult,
|
327
|
+
): QueryBuilderExplorerTreeNodeMappingData => {
|
328
|
+
// NOTE: since we build subclass trees, there's a chance in a particular case,
|
329
|
+
// a _deep_ subclass is mapped, for example: A extends B extends C extends D ... extends Z
|
330
|
+
// and Z is mapped, when we build the mapping data for node A, B, C, we need to make sure
|
331
|
+
// we are aware of the fact that Z is mapped and pass the mapping data information properly
|
332
|
+
// until we process the node Z.
|
333
|
+
const allCompatibleTypePaths = getAllSubclasses(subclass)
|
334
|
+
.concat(subclass)
|
335
|
+
.map((_class) => _class.path);
|
336
|
+
// If the subtype node's parent node does not have a mapped entity,
|
337
|
+
// it means the superclass is not mapped, i.e. this subtype is not mapped
|
338
|
+
if (parentMappingData.mappedEntity) {
|
339
|
+
const mappedSubtype = parentMappingData.mappedEntity.properties.find(
|
340
|
+
(mappedProperty): mappedProperty is EntityMappedProperty =>
|
341
|
+
Boolean(
|
342
|
+
// NOTE: if `subType` is specified in `EntityMappedProperty` it means
|
343
|
+
// that subtype is mapped
|
344
|
+
mappedProperty instanceof EntityMappedProperty &&
|
345
|
+
mappedProperty.subType &&
|
346
|
+
allCompatibleTypePaths.includes(mappedProperty.subType),
|
347
|
+
),
|
348
|
+
);
|
349
|
+
if (mappedSubtype) {
|
350
|
+
return {
|
351
|
+
mapped: true,
|
352
|
+
mappedEntity: modelCoverageAnalysisResult.__ENTITIES_INDEX.get(
|
353
|
+
mappedSubtype.entityPath,
|
354
|
+
),
|
355
|
+
};
|
356
|
+
} else if (
|
357
|
+
allCompatibleTypePaths.includes(parentMappingData.mappedEntity.path)
|
358
|
+
) {
|
359
|
+
// This is to handle the case where the property mapping is pointing
|
360
|
+
// directly at the class mapping of a subtype of the type of that property
|
361
|
+
//
|
362
|
+
// For example: we have class `A` extends `B`, and we're looking at class `C` with property
|
363
|
+
// `b` of type B. However, the mapping we use has property mapping for `b` pointing at
|
364
|
+
// a class mapping for `A`.
|
365
|
+
//
|
366
|
+
// In this case, when building explorer tree node for property `b` of `C`, according to
|
367
|
+
// the mapping model coverage result, the mapped entity corresponding to this property
|
368
|
+
// will be mapped entity for `A`. However, as we build the explorer tree,
|
369
|
+
// so we will not immediately build the subtype node for `A`. As such, we have to propagate
|
370
|
+
// the mapped entity data downstream like the following. As a result, when building
|
371
|
+
// the mapping data for subtype node, we have to take this case into consideration
|
372
|
+
//
|
373
|
+
// See https://github.com/finos/legend-studio/issues/1437
|
374
|
+
return {
|
375
|
+
mapped: true,
|
376
|
+
mappedEntity: parentMappingData.mappedEntity,
|
377
|
+
};
|
378
|
+
}
|
379
|
+
}
|
380
|
+
return { mapped: false };
|
381
|
+
};
|
382
|
+
|
383
|
+
export const getRootMappingData = (
|
384
|
+
_class: Class,
|
385
|
+
modelCoverageAnalysisResult: MappingModelCoverageAnalysisResult,
|
386
|
+
): QueryBuilderExplorerTreeNodeMappingData => {
|
387
|
+
const mappedEntity = modelCoverageAnalysisResult.__ENTITIES_INDEX.get(
|
388
|
+
_class.path,
|
389
|
+
);
|
390
|
+
return {
|
391
|
+
mapped: Boolean(mappedEntity),
|
392
|
+
mappedEntity,
|
393
|
+
};
|
394
|
+
};
|
395
|
+
|
396
|
+
const generateExplorerTreeClassNodeChildrenIDs = (
|
397
|
+
node: QueryBuilderExplorerTreeNodeData,
|
398
|
+
): string[] => {
|
399
|
+
const currentClass = node.type as Class;
|
400
|
+
const idsFromProperties = (
|
401
|
+
node instanceof QueryBuilderExplorerTreeSubTypeNodeData
|
402
|
+
? getAllOwnClassProperties(currentClass)
|
403
|
+
: getAllClassProperties(currentClass).concat(
|
404
|
+
getAllClassDerivedProperties(currentClass),
|
405
|
+
)
|
406
|
+
).map((p) => `${node.id}.${p.name}`);
|
407
|
+
const idsFromsubclasses = currentClass._subclasses.map(
|
408
|
+
(subclass) => `${node.id}${TYPE_CAST_TOKEN}${subclass.path}`,
|
409
|
+
);
|
410
|
+
return idsFromProperties.concat(idsFromsubclasses);
|
411
|
+
};
|
412
|
+
|
413
|
+
export const getQueryBuilderPropertyNodeData = (
|
414
|
+
property: AbstractProperty,
|
415
|
+
parentNode: QueryBuilderExplorerTreeNodeData,
|
416
|
+
modelCoverageAnalysisResult: MappingModelCoverageAnalysisResult,
|
417
|
+
): QueryBuilderExplorerTreePropertyNodeData | undefined => {
|
418
|
+
const mappingNodeData = generatePropertyNodeMappingData(
|
419
|
+
property,
|
420
|
+
parentNode.mappingData,
|
421
|
+
modelCoverageAnalysisResult,
|
422
|
+
);
|
423
|
+
const isPartOfDerivedPropertyBranch =
|
424
|
+
property instanceof DerivedProperty ||
|
425
|
+
parentNode.isPartOfDerivedPropertyBranch ||
|
426
|
+
(parentNode instanceof QueryBuilderExplorerTreePropertyNodeData &&
|
427
|
+
parentNode.property instanceof DerivedProperty);
|
428
|
+
// NOTE: in case of association, to avoid infinite exploration path
|
429
|
+
// we will prune it, on the other hand, in circular composition case
|
430
|
+
// A has property of type B and B has property of type A
|
431
|
+
// we will allow users to explore as deeply as they wish
|
432
|
+
// See https://github.com/finos/legend-studio/issues/1172
|
433
|
+
if (
|
434
|
+
property instanceof Property &&
|
435
|
+
parentNode instanceof QueryBuilderExplorerTreePropertyNodeData &&
|
436
|
+
parentNode.property instanceof Property &&
|
437
|
+
property._OWNER instanceof Association &&
|
438
|
+
parentNode.property._OWNER instanceof Association &&
|
439
|
+
parentNode.property._OWNER === property._OWNER
|
440
|
+
) {
|
441
|
+
return undefined;
|
442
|
+
}
|
443
|
+
const propertyNode = new QueryBuilderExplorerTreePropertyNodeData(
|
444
|
+
generateExplorerTreePropertyNodeID(
|
445
|
+
parentNode instanceof QueryBuilderExplorerTreeRootNodeData
|
446
|
+
? ''
|
447
|
+
: parentNode.id,
|
448
|
+
property.name,
|
449
|
+
),
|
450
|
+
property.name,
|
451
|
+
`${
|
452
|
+
parentNode instanceof QueryBuilderExplorerTreeRootNodeData
|
453
|
+
? `${VARIABLE_REFERENCE_TOKEN}x`
|
454
|
+
: parentNode.dndText
|
455
|
+
}.${property.name}`,
|
456
|
+
property,
|
457
|
+
parentNode.id,
|
458
|
+
isPartOfDerivedPropertyBranch,
|
459
|
+
mappingNodeData,
|
460
|
+
);
|
461
|
+
if (propertyNode.type instanceof Class) {
|
462
|
+
propertyNode.childrenIds =
|
463
|
+
generateExplorerTreeClassNodeChildrenIDs(propertyNode);
|
464
|
+
}
|
465
|
+
return propertyNode;
|
466
|
+
};
|
467
|
+
|
468
|
+
export const getQueryBuilderSubTypeNodeData = (
|
469
|
+
subclass: Class,
|
470
|
+
parentNode: QueryBuilderExplorerTreeNodeData,
|
471
|
+
modelCoverageAnalysisResult: MappingModelCoverageAnalysisResult,
|
472
|
+
): QueryBuilderExplorerTreeSubTypeNodeData => {
|
473
|
+
const subTypeNode = new QueryBuilderExplorerTreeSubTypeNodeData(
|
474
|
+
generateExplorerTreeSubtypeNodeID(
|
475
|
+
parentNode instanceof QueryBuilderExplorerTreeRootNodeData
|
476
|
+
? ''
|
477
|
+
: parentNode.id,
|
478
|
+
subclass.path,
|
479
|
+
),
|
480
|
+
subclass.name,
|
481
|
+
`${
|
482
|
+
parentNode instanceof QueryBuilderExplorerTreeRootNodeData
|
483
|
+
? `${VARIABLE_REFERENCE_TOKEN}${DEFAULT_LAMBDA_VARIABLE_NAME}${ARROW_FUNCTION_TOKEN}${extractElementNameFromPath(
|
484
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE,
|
485
|
+
)}(${TYPE_CAST_TOKEN}${subclass.path})`
|
486
|
+
: `${
|
487
|
+
parentNode.dndText
|
488
|
+
}${ARROW_FUNCTION_TOKEN}${extractElementNameFromPath(
|
489
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE,
|
490
|
+
)}(${TYPE_CAST_TOKEN}${subclass.path})`
|
491
|
+
}`,
|
492
|
+
subclass,
|
493
|
+
parentNode.id,
|
494
|
+
false,
|
495
|
+
generateSubtypeNodeMappingData(
|
496
|
+
subclass,
|
497
|
+
parentNode.mappingData,
|
498
|
+
modelCoverageAnalysisResult,
|
499
|
+
),
|
500
|
+
parentNode instanceof QueryBuilderExplorerTreePropertyNodeData
|
501
|
+
? parentNode.property.multiplicity
|
502
|
+
: parentNode instanceof QueryBuilderExplorerTreeSubTypeNodeData
|
503
|
+
? parentNode.multiplicity
|
504
|
+
: new Multiplicity(1, 1),
|
505
|
+
);
|
506
|
+
subTypeNode.childrenIds =
|
507
|
+
generateExplorerTreeClassNodeChildrenIDs(subTypeNode);
|
508
|
+
return subTypeNode;
|
509
|
+
};
|
510
|
+
|
511
|
+
const getQueryBuilderTreeData = (
|
512
|
+
rootClass: Class,
|
513
|
+
modelCoverageAnalysisResult: MappingModelCoverageAnalysisResult,
|
514
|
+
): TreeData<QueryBuilderExplorerTreeNodeData> => {
|
515
|
+
const rootIds = [];
|
516
|
+
const nodes = new Map<string, QueryBuilderExplorerTreeNodeData>();
|
517
|
+
const mappingData = getRootMappingData(
|
518
|
+
rootClass,
|
519
|
+
modelCoverageAnalysisResult,
|
520
|
+
);
|
521
|
+
const treeRootNode = new QueryBuilderExplorerTreeRootNodeData(
|
522
|
+
'@dummy_rootNode',
|
523
|
+
rootClass.name,
|
524
|
+
rootClass.path,
|
525
|
+
false,
|
526
|
+
rootClass,
|
527
|
+
mappingData,
|
528
|
+
);
|
529
|
+
treeRootNode.isOpen = true;
|
530
|
+
nodes.set(treeRootNode.id, treeRootNode);
|
531
|
+
rootIds.push(treeRootNode.id);
|
532
|
+
getAllClassProperties(rootClass)
|
533
|
+
.concat(getAllClassDerivedProperties(rootClass))
|
534
|
+
.sort((a, b) => a.name.localeCompare(b.name))
|
535
|
+
.sort(
|
536
|
+
(a, b) =>
|
537
|
+
(b instanceof Class ? 2 : b instanceof Enumeration ? 1 : 0) -
|
538
|
+
(a instanceof Class ? 2 : a instanceof Enumeration ? 1 : 0),
|
539
|
+
)
|
540
|
+
.forEach((property) => {
|
541
|
+
const propertyTreeNodeData = getQueryBuilderPropertyNodeData(
|
542
|
+
property,
|
543
|
+
treeRootNode,
|
544
|
+
modelCoverageAnalysisResult,
|
545
|
+
);
|
546
|
+
if (propertyTreeNodeData) {
|
547
|
+
addUniqueEntry(treeRootNode.childrenIds, propertyTreeNodeData.id);
|
548
|
+
nodes.set(propertyTreeNodeData.id, propertyTreeNodeData);
|
549
|
+
}
|
550
|
+
});
|
551
|
+
rootClass._subclasses.forEach((subclass) => {
|
552
|
+
const subTypeTreeNodeData = getQueryBuilderSubTypeNodeData(
|
553
|
+
subclass,
|
554
|
+
treeRootNode,
|
555
|
+
modelCoverageAnalysisResult,
|
556
|
+
);
|
557
|
+
addUniqueEntry(treeRootNode.childrenIds, subTypeTreeNodeData.id);
|
558
|
+
nodes.set(subTypeTreeNodeData.id, subTypeTreeNodeData);
|
559
|
+
});
|
560
|
+
return { rootIds, nodes };
|
561
|
+
};
|
562
|
+
|
563
|
+
export class QueryBuilderExplorerPreviewDataState {
|
564
|
+
isGeneratingPreviewData = false;
|
565
|
+
propertyName = '(unknown)';
|
566
|
+
previewData?: QueryBuilderPreviewData | undefined;
|
567
|
+
|
568
|
+
constructor() {
|
569
|
+
makeAutoObservable(this, {
|
570
|
+
previewData: observable.ref,
|
571
|
+
setPropertyName: action,
|
572
|
+
setIsGeneratingPreviewData: action,
|
573
|
+
setPreviewData: action,
|
574
|
+
});
|
575
|
+
}
|
576
|
+
|
577
|
+
setPropertyName(val: string): void {
|
578
|
+
this.propertyName = val;
|
579
|
+
}
|
580
|
+
|
581
|
+
setIsGeneratingPreviewData(val: boolean): void {
|
582
|
+
this.isGeneratingPreviewData = val;
|
583
|
+
}
|
584
|
+
|
585
|
+
setPreviewData(val: QueryBuilderPreviewData | undefined): void {
|
586
|
+
this.previewData = val;
|
587
|
+
}
|
588
|
+
}
|
589
|
+
|
590
|
+
export class QueryBuilderExplorerState {
|
591
|
+
queryBuilderState: QueryBuilderState;
|
592
|
+
previewDataState = new QueryBuilderExplorerPreviewDataState();
|
593
|
+
treeData?: TreeData<QueryBuilderExplorerTreeNodeData> | undefined;
|
594
|
+
humanizePropertyName = true;
|
595
|
+
showUnmappedProperties = false;
|
596
|
+
highlightUsedProperties = true;
|
597
|
+
propertySearchState: QueryBuilderPropertySearchState;
|
598
|
+
mappingModelCoverageAnalysisResult?: MappingModelCoverageAnalysisResult;
|
599
|
+
mappingModelCoverageAnalysisState = ActionState.create();
|
600
|
+
|
601
|
+
constructor(queryBuilderState: QueryBuilderState) {
|
602
|
+
makeAutoObservable(this, {
|
603
|
+
queryBuilderState: false,
|
604
|
+
previewDataState: false,
|
605
|
+
treeData: observable.ref,
|
606
|
+
highlightUsedProperties: observable,
|
607
|
+
setTreeData: action,
|
608
|
+
refreshTree: action,
|
609
|
+
refreshTreeData: action,
|
610
|
+
setHumanizePropertyName: action,
|
611
|
+
setShowUnmappedProperties: action,
|
612
|
+
previewData: flow,
|
613
|
+
setHighlightUsedProperties: action,
|
614
|
+
analyzeMappingModelCoverage: flow,
|
615
|
+
});
|
616
|
+
|
617
|
+
this.queryBuilderState = queryBuilderState;
|
618
|
+
this.propertySearchState = new QueryBuilderPropertySearchState(
|
619
|
+
this.queryBuilderState,
|
620
|
+
);
|
621
|
+
}
|
622
|
+
|
623
|
+
get nonNullableTreeData(): TreeData<QueryBuilderExplorerTreeNodeData> {
|
624
|
+
return guaranteeNonNullable(
|
625
|
+
this.treeData,
|
626
|
+
'Query builder explorer tree data has not been initialized',
|
627
|
+
);
|
628
|
+
}
|
629
|
+
|
630
|
+
setTreeData(
|
631
|
+
val: TreeData<QueryBuilderExplorerTreeNodeData> | undefined,
|
632
|
+
): void {
|
633
|
+
this.treeData = val;
|
634
|
+
}
|
635
|
+
|
636
|
+
refreshTree(): void {
|
637
|
+
if (this.treeData) {
|
638
|
+
this.treeData = { ...this.treeData };
|
639
|
+
}
|
640
|
+
}
|
641
|
+
|
642
|
+
setHumanizePropertyName(val: boolean): void {
|
643
|
+
this.humanizePropertyName = val;
|
644
|
+
}
|
645
|
+
|
646
|
+
setShowUnmappedProperties(val: boolean): void {
|
647
|
+
this.showUnmappedProperties = val;
|
648
|
+
}
|
649
|
+
|
650
|
+
setHighlightUsedProperties(val: boolean): void {
|
651
|
+
this.highlightUsedProperties = val;
|
652
|
+
}
|
653
|
+
|
654
|
+
refreshTreeData(): void {
|
655
|
+
const _class = this.queryBuilderState.class;
|
656
|
+
const _mapping = this.queryBuilderState.mapping;
|
657
|
+
this.setTreeData(
|
658
|
+
_class && _mapping && this.mappingModelCoverageAnalysisResult
|
659
|
+
? getQueryBuilderTreeData(
|
660
|
+
_class,
|
661
|
+
this.mappingModelCoverageAnalysisResult,
|
662
|
+
)
|
663
|
+
: undefined,
|
664
|
+
);
|
665
|
+
}
|
666
|
+
|
667
|
+
*analyzeMappingModelCoverage(): GeneratorFn<void> {
|
668
|
+
if (this.queryBuilderState.mapping) {
|
669
|
+
this.mappingModelCoverageAnalysisState.inProgress();
|
670
|
+
this.mappingModelCoverageAnalysisState.setMessage('Analyzing Mapping...');
|
671
|
+
try {
|
672
|
+
this.mappingModelCoverageAnalysisResult = (yield flowResult(
|
673
|
+
this.queryBuilderState.graphManagerState.graphManager.analyzeMappingModelCoverage(
|
674
|
+
this.queryBuilderState.mapping,
|
675
|
+
this.queryBuilderState.graphManagerState.graph,
|
676
|
+
),
|
677
|
+
)) as MappingModelCoverageAnalysisResult;
|
678
|
+
this.refreshTreeData();
|
679
|
+
} catch (error) {
|
680
|
+
assertErrorThrown(error);
|
681
|
+
this.queryBuilderState.applicationStore.notifyError(error.message);
|
682
|
+
} finally {
|
683
|
+
this.mappingModelCoverageAnalysisState.complete();
|
684
|
+
}
|
685
|
+
}
|
686
|
+
}
|
687
|
+
|
688
|
+
*previewData(
|
689
|
+
node: QueryBuilderExplorerTreePropertyNodeData,
|
690
|
+
): GeneratorFn<void> {
|
691
|
+
const runtime = this.queryBuilderState.runtimeValue;
|
692
|
+
if (!runtime) {
|
693
|
+
this.queryBuilderState.applicationStore.notifyWarning(
|
694
|
+
`Can't preview data for property '${node.property.name}': runtime is not specified`,
|
695
|
+
);
|
696
|
+
return;
|
697
|
+
}
|
698
|
+
if (
|
699
|
+
!node.mappingData.mapped ||
|
700
|
+
!this.queryBuilderState.class ||
|
701
|
+
!this.queryBuilderState.mapping
|
702
|
+
) {
|
703
|
+
return;
|
704
|
+
}
|
705
|
+
if (this.previewDataState.isGeneratingPreviewData) {
|
706
|
+
this.queryBuilderState.applicationStore.notifyWarning(
|
707
|
+
`Can't preview data for property '${node.property.name}': another preview request is being executed`,
|
708
|
+
);
|
709
|
+
return;
|
710
|
+
}
|
711
|
+
this.previewDataState.setPropertyName(node.property.name);
|
712
|
+
this.previewDataState.setIsGeneratingPreviewData(true);
|
713
|
+
const propertyExpression = buildPropertyExpressionFromExplorerTreeNodeData(
|
714
|
+
this.nonNullableTreeData,
|
715
|
+
node,
|
716
|
+
this.queryBuilderState.graphManagerState.graph,
|
717
|
+
this.propertySearchState.allMappedPropertyNodes,
|
718
|
+
);
|
719
|
+
const propertyType = node.property.genericType.value.rawType;
|
720
|
+
try {
|
721
|
+
switch (propertyType.path) {
|
722
|
+
case PRIMITIVE_TYPE.NUMBER:
|
723
|
+
case PRIMITIVE_TYPE.INTEGER:
|
724
|
+
case PRIMITIVE_TYPE.DECIMAL:
|
725
|
+
case PRIMITIVE_TYPE.FLOAT: {
|
726
|
+
const previewResult =
|
727
|
+
(yield this.queryBuilderState.graphManagerState.graphManager.executeMapping(
|
728
|
+
buildNumericPreviewDataQuery(
|
729
|
+
this.queryBuilderState,
|
730
|
+
propertyExpression,
|
731
|
+
),
|
732
|
+
this.queryBuilderState.mapping,
|
733
|
+
runtime,
|
734
|
+
this.queryBuilderState.graphManagerState.graph,
|
735
|
+
)) as ExecutionResult;
|
736
|
+
assertType(
|
737
|
+
previewResult,
|
738
|
+
TdsExecutionResult,
|
739
|
+
`Unexpected preview data format`,
|
740
|
+
);
|
741
|
+
const previewResultData =
|
742
|
+
previewResult.result as QueryBuilderPreviewData;
|
743
|
+
// transpose the result
|
744
|
+
const transposedPreviewResultData = {
|
745
|
+
columns: ['Aggregation', 'Value'],
|
746
|
+
rows: previewResultData.columns.map((column, idx) => ({
|
747
|
+
values: [
|
748
|
+
column,
|
749
|
+
guaranteeNonNullable(previewResultData.rows[0]).values[
|
750
|
+
idx
|
751
|
+
] as string,
|
752
|
+
],
|
753
|
+
})),
|
754
|
+
};
|
755
|
+
this.previewDataState.setPreviewData(transposedPreviewResultData);
|
756
|
+
break;
|
757
|
+
}
|
758
|
+
case PRIMITIVE_TYPE.BOOLEAN:
|
759
|
+
case PRIMITIVE_TYPE.STRING:
|
760
|
+
case PRIMITIVE_TYPE.DATE:
|
761
|
+
case PRIMITIVE_TYPE.STRICTDATE:
|
762
|
+
case PRIMITIVE_TYPE.DATETIME: {
|
763
|
+
const previewResult =
|
764
|
+
(yield this.queryBuilderState.graphManagerState.graphManager.executeMapping(
|
765
|
+
buildNonNumericPreviewDataQuery(
|
766
|
+
this.queryBuilderState,
|
767
|
+
propertyExpression,
|
768
|
+
),
|
769
|
+
this.queryBuilderState.mapping,
|
770
|
+
runtime,
|
771
|
+
this.queryBuilderState.graphManagerState.graph,
|
772
|
+
)) as ExecutionResult;
|
773
|
+
assertType(
|
774
|
+
previewResult,
|
775
|
+
TdsExecutionResult,
|
776
|
+
`Unexpected preview data format`,
|
777
|
+
);
|
778
|
+
this.previewDataState.setPreviewData(
|
779
|
+
previewResult.result as QueryBuilderPreviewData,
|
780
|
+
);
|
781
|
+
break;
|
782
|
+
}
|
783
|
+
default:
|
784
|
+
throw new UnsupportedOperationError(
|
785
|
+
`No preview support for property of type '${propertyType.path}'`,
|
786
|
+
);
|
787
|
+
}
|
788
|
+
} catch (error) {
|
789
|
+
assertErrorThrown(error);
|
790
|
+
this.queryBuilderState.applicationStore.notifyWarning(
|
791
|
+
`Can't preview data for property '${node.property.name}'. Error: ${error.message}`,
|
792
|
+
);
|
793
|
+
this.previewDataState.setPreviewData(undefined);
|
794
|
+
} finally {
|
795
|
+
this.previewDataState.setIsGeneratingPreviewData(false);
|
796
|
+
}
|
797
|
+
}
|
798
|
+
}
|