@finos/legend-application-query 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +3 -0
- package/lib/LegendQueryAppEvent.d.ts +19 -0
- package/lib/LegendQueryAppEvent.d.ts.map +1 -0
- package/lib/LegendQueryAppEvent.js +21 -0
- package/lib/LegendQueryAppEvent.js.map +1 -0
- package/lib/QueryBuilder_Const.d.ts +77 -0
- package/lib/QueryBuilder_Const.d.ts.map +1 -0
- package/lib/QueryBuilder_Const.js +85 -0
- package/lib/QueryBuilder_Const.js.map +1 -0
- package/lib/application/LegendQuery.d.ts +27 -0
- package/lib/application/LegendQuery.d.ts.map +1 -0
- package/lib/application/LegendQuery.js +58 -0
- package/lib/application/LegendQuery.js.map +1 -0
- package/lib/application/LegendQueryApplicationConfig.d.ts +46 -0
- package/lib/application/LegendQueryApplicationConfig.d.ts.map +1 -0
- package/lib/application/LegendQueryApplicationConfig.js +35 -0
- package/lib/application/LegendQueryApplicationConfig.js.map +1 -0
- package/lib/application/LegendQueryPluginManager.d.ts +32 -0
- package/lib/application/LegendQueryPluginManager.d.ts.map +1 -0
- package/lib/application/LegendQueryPluginManager.js +46 -0
- package/lib/application/LegendQueryPluginManager.js.map +1 -0
- package/lib/components/LegendQueryApplication.d.ts +25 -0
- package/lib/components/LegendQueryApplication.d.ts.map +1 -0
- package/lib/components/LegendQueryApplication.js +39 -0
- package/lib/components/LegendQueryApplication.js.map +1 -0
- package/lib/components/LegendQueryBaseStoreProvider.d.ts +28 -0
- package/lib/components/LegendQueryBaseStoreProvider.d.ts.map +1 -0
- package/lib/components/LegendQueryBaseStoreProvider.js +32 -0
- package/lib/components/LegendQueryBaseStoreProvider.js.map +1 -0
- package/lib/components/QueryBuilder.d.ts +23 -0
- package/lib/components/QueryBuilder.d.ts.map +1 -0
- package/lib/components/QueryBuilder.js +91 -0
- package/lib/components/QueryBuilder.js.map +1 -0
- package/lib/components/QueryBuilderExplorerPanel.d.ts +34 -0
- package/lib/components/QueryBuilderExplorerPanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderExplorerPanel.js +379 -0
- package/lib/components/QueryBuilderExplorerPanel.js.map +1 -0
- package/lib/components/QueryBuilderFetchStructurePanel.d.ts +23 -0
- package/lib/components/QueryBuilderFetchStructurePanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderFetchStructurePanel.js +89 -0
- package/lib/components/QueryBuilderFetchStructurePanel.js.map +1 -0
- package/lib/components/QueryBuilderFilterPanel.d.ts +23 -0
- package/lib/components/QueryBuilderFilterPanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderFilterPanel.js +301 -0
- package/lib/components/QueryBuilderFilterPanel.js.map +1 -0
- package/lib/components/QueryBuilderFunctionsExplorerPanel.d.ts +23 -0
- package/lib/components/QueryBuilderFunctionsExplorerPanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderFunctionsExplorerPanel.js +177 -0
- package/lib/components/QueryBuilderFunctionsExplorerPanel.js.map +1 -0
- package/lib/components/QueryBuilderGraphFetchTreePanel.d.ts +33 -0
- package/lib/components/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderGraphFetchTreePanel.js +96 -0
- package/lib/components/QueryBuilderGraphFetchTreePanel.js.map +1 -0
- package/lib/components/QueryBuilderLambdaEditor.d.ts +42 -0
- package/lib/components/QueryBuilderLambdaEditor.d.ts.map +1 -0
- package/lib/components/QueryBuilderLambdaEditor.js +47 -0
- package/lib/components/QueryBuilderLambdaEditor.js.map +1 -0
- package/lib/components/QueryBuilderMilestoneEditor.d.ts +24 -0
- package/lib/components/QueryBuilderMilestoneEditor.d.ts.map +1 -0
- package/lib/components/QueryBuilderMilestoneEditor.js +120 -0
- package/lib/components/QueryBuilderMilestoneEditor.js.map +1 -0
- package/lib/components/QueryBuilderParameterPanel.d.ts +30 -0
- package/lib/components/QueryBuilderParameterPanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderParameterPanel.js +148 -0
- package/lib/components/QueryBuilderParameterPanel.js.map +1 -0
- package/lib/components/QueryBuilderPostFilterPanel.d.ts +31 -0
- package/lib/components/QueryBuilderPostFilterPanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderPostFilterPanel.js +373 -0
- package/lib/components/QueryBuilderPostFilterPanel.js.map +1 -0
- package/lib/components/QueryBuilderProjectionPanel.d.ts +23 -0
- package/lib/components/QueryBuilderProjectionPanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderProjectionPanel.js +229 -0
- package/lib/components/QueryBuilderProjectionPanel.js.map +1 -0
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +30 -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/QueryBuilderPropertyInfoTooltip.d.ts +26 -0
- package/lib/components/QueryBuilderPropertyInfoTooltip.d.ts.map +1 -0
- package/lib/components/QueryBuilderPropertyInfoTooltip.js +32 -0
- package/lib/components/QueryBuilderPropertyInfoTooltip.js.map +1 -0
- package/lib/components/QueryBuilderPropertySearchPanel.d.ts +24 -0
- package/lib/components/QueryBuilderPropertySearchPanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderPropertySearchPanel.js +202 -0
- package/lib/components/QueryBuilderPropertySearchPanel.js.map +1 -0
- package/lib/components/QueryBuilderResultModifierPanel.d.ts +23 -0
- package/lib/components/QueryBuilderResultModifierPanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderResultModifierPanel.js +88 -0
- package/lib/components/QueryBuilderResultModifierPanel.js.map +1 -0
- package/lib/components/QueryBuilderResultPanel.d.ts +23 -0
- package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderResultPanel.js +223 -0
- package/lib/components/QueryBuilderResultPanel.js.map +1 -0
- package/lib/components/QueryBuilderSetupPanel.d.ts +23 -0
- package/lib/components/QueryBuilderSetupPanel.d.ts.map +1 -0
- package/lib/components/QueryBuilderSetupPanel.js +148 -0
- package/lib/components/QueryBuilderSetupPanel.js.map +1 -0
- package/lib/components/QueryBuilderTextEditor.d.ts +23 -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 +23 -0
- package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts.map +1 -0
- package/lib/components/QueryBuilderUnsupportedQueryEditor.js +35 -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/QueryEditor.d.ts +29 -0
- package/lib/components/QueryEditor.d.ts.map +1 -0
- package/lib/components/QueryEditor.js +130 -0
- package/lib/components/QueryEditor.js.map +1 -0
- package/lib/components/QueryEditorComponentTestUtils.d.ts +35 -0
- package/lib/components/QueryEditorComponentTestUtils.d.ts.map +1 -0
- package/lib/components/QueryEditorComponentTestUtils.js +108 -0
- package/lib/components/QueryEditorComponentTestUtils.js.map +1 -0
- package/lib/components/QueryEditorStoreProvider.d.ts +37 -0
- package/lib/components/QueryEditorStoreProvider.d.ts.map +1 -0
- package/lib/components/QueryEditorStoreProvider.js +48 -0
- package/lib/components/QueryEditorStoreProvider.js.map +1 -0
- package/lib/components/QuerySetup.d.ts +18 -0
- package/lib/components/QuerySetup.d.ts.map +1 -0
- package/lib/components/QuerySetup.js +388 -0
- package/lib/components/QuerySetup.js.map +1 -0
- package/lib/components/QuerySetupStoreProvider.d.ts +23 -0
- package/lib/components/QuerySetupStoreProvider.d.ts.map +1 -0
- package/lib/components/QuerySetupStoreProvider.js +35 -0
- package/lib/components/QuerySetupStoreProvider.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/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 +68 -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 +36 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +36 -0
- package/lib/index.js.map +1 -0
- package/lib/package.json +99 -0
- package/lib/stores/LegendQueryApplicationPlugin.d.ts +47 -0
- package/lib/stores/LegendQueryApplicationPlugin.d.ts.map +1 -0
- package/lib/stores/LegendQueryApplicationPlugin.js +27 -0
- package/lib/stores/LegendQueryApplicationPlugin.js.map +1 -0
- package/lib/stores/LegendQueryBaseStore.d.ts +28 -0
- package/lib/stores/LegendQueryBaseStore.d.ts.map +1 -0
- package/lib/stores/LegendQueryBaseStore.js +28 -0
- package/lib/stores/LegendQueryBaseStore.js.map +1 -0
- package/lib/stores/LegendQueryEventService.d.ts +27 -0
- package/lib/stores/LegendQueryEventService.d.ts.map +1 -0
- package/lib/stores/LegendQueryEventService.js +29 -0
- package/lib/stores/LegendQueryEventService.js.map +1 -0
- package/lib/stores/LegendQueryRouter.d.ts +55 -0
- package/lib/stores/LegendQueryRouter.d.ts.map +1 -0
- package/lib/stores/LegendQueryRouter.js +50 -0
- package/lib/stores/LegendQueryRouter.js.map +1 -0
- package/lib/stores/QueryBuilderAggregationState.d.ts +53 -0
- package/lib/stores/QueryBuilderAggregationState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderAggregationState.js +122 -0
- package/lib/stores/QueryBuilderAggregationState.js.map +1 -0
- package/lib/stores/QueryBuilderExplorerState.d.ts +93 -0
- package/lib/stores/QueryBuilderExplorerState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderExplorerState.js +310 -0
- package/lib/stores/QueryBuilderExplorerState.js.map +1 -0
- package/lib/stores/QueryBuilderFetchStructureState.d.ts +33 -0
- package/lib/stores/QueryBuilderFetchStructureState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderFetchStructureState.js +50 -0
- package/lib/stores/QueryBuilderFetchStructureState.js.map +1 -0
- package/lib/stores/QueryBuilderFilterState.d.ts +127 -0
- package/lib/stores/QueryBuilderFilterState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderFilterState.js +566 -0
- package/lib/stores/QueryBuilderFilterState.js.map +1 -0
- package/lib/stores/QueryBuilderGraphFetchTreeState.d.ts +35 -0
- package/lib/stores/QueryBuilderGraphFetchTreeState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderGraphFetchTreeState.js +65 -0
- package/lib/stores/QueryBuilderGraphFetchTreeState.js.map +1 -0
- package/lib/stores/QueryBuilderGraphFetchTreeUtil.d.ts +41 -0
- package/lib/stores/QueryBuilderGraphFetchTreeUtil.d.ts.map +1 -0
- package/lib/stores/QueryBuilderGraphFetchTreeUtil.js +173 -0
- package/lib/stores/QueryBuilderGraphFetchTreeUtil.js.map +1 -0
- package/lib/stores/QueryBuilderLambdaBuilder.d.ts +30 -0
- package/lib/stores/QueryBuilderLambdaBuilder.d.ts.map +1 -0
- package/lib/stores/QueryBuilderLambdaBuilder.js +407 -0
- package/lib/stores/QueryBuilderLambdaBuilder.js.map +1 -0
- package/lib/stores/QueryBuilderLambdaProcessor.d.ts +56 -0
- package/lib/stores/QueryBuilderLambdaProcessor.d.ts.map +1 -0
- package/lib/stores/QueryBuilderLambdaProcessor.js +544 -0
- package/lib/stores/QueryBuilderLambdaProcessor.js.map +1 -0
- package/lib/stores/QueryBuilderOperatorsHelper.d.ts +28 -0
- package/lib/stores/QueryBuilderOperatorsHelper.d.ts.map +1 -0
- package/lib/stores/QueryBuilderOperatorsHelper.js +123 -0
- package/lib/stores/QueryBuilderOperatorsHelper.js.map +1 -0
- package/lib/stores/QueryBuilderPostFilterOperator.d.ts +29 -0
- package/lib/stores/QueryBuilderPostFilterOperator.d.ts.map +1 -0
- package/lib/stores/QueryBuilderPostFilterOperator.js +30 -0
- package/lib/stores/QueryBuilderPostFilterOperator.js.map +1 -0
- package/lib/stores/QueryBuilderPostFilterProcessor.d.ts +24 -0
- package/lib/stores/QueryBuilderPostFilterProcessor.d.ts.map +1 -0
- package/lib/stores/QueryBuilderPostFilterProcessor.js +111 -0
- package/lib/stores/QueryBuilderPostFilterProcessor.js.map +1 -0
- package/lib/stores/QueryBuilderPostFilterState.d.ts +132 -0
- package/lib/stores/QueryBuilderPostFilterState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderPostFilterState.js +559 -0
- package/lib/stores/QueryBuilderPostFilterState.js.map +1 -0
- package/lib/stores/QueryBuilderPreviewDataHelper.d.ts +25 -0
- package/lib/stores/QueryBuilderPreviewDataHelper.d.ts.map +1 -0
- package/lib/stores/QueryBuilderPreviewDataHelper.js +161 -0
- package/lib/stores/QueryBuilderPreviewDataHelper.js.map +1 -0
- package/lib/stores/QueryBuilderProjectionState.d.ts +104 -0
- package/lib/stores/QueryBuilderProjectionState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderProjectionState.js +432 -0
- package/lib/stores/QueryBuilderProjectionState.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 +384 -0
- package/lib/stores/QueryBuilderPropertyEditorState.js.map +1 -0
- package/lib/stores/QueryBuilderPropertySearchPanelState.d.ts +46 -0
- package/lib/stores/QueryBuilderPropertySearchPanelState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderPropertySearchPanelState.js +240 -0
- package/lib/stores/QueryBuilderPropertySearchPanelState.js.map +1 -0
- package/lib/stores/QueryBuilderResultState.d.ts +38 -0
- package/lib/stores/QueryBuilderResultState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderResultState.js +164 -0
- package/lib/stores/QueryBuilderResultState.js.map +1 -0
- package/lib/stores/QueryBuilderSetupState.d.ts +46 -0
- package/lib/stores/QueryBuilderSetupState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderSetupState.js +163 -0
- package/lib/stores/QueryBuilderSetupState.js.map +1 -0
- package/lib/stores/QueryBuilderState.d.ts +101 -0
- package/lib/stores/QueryBuilderState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderState.js +371 -0
- package/lib/stores/QueryBuilderState.js.map +1 -0
- package/lib/stores/QueryBuilderUnsupportedState.d.ts +26 -0
- package/lib/stores/QueryBuilderUnsupportedState.d.ts.map +1 -0
- package/lib/stores/QueryBuilderUnsupportedState.js +36 -0
- package/lib/stores/QueryBuilderUnsupportedState.js.map +1 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts +19 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts.map +1 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js +50 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js.map +1 -0
- package/lib/stores/QueryEditorStore.d.ts +98 -0
- package/lib/stores/QueryEditorStore.d.ts.map +1 -0
- package/lib/stores/QueryEditorStore.js +370 -0
- package/lib/stores/QueryEditorStore.js.map +1 -0
- package/lib/stores/QueryEditorStoreTestUtils.d.ts +18 -0
- package/lib/stores/QueryEditorStoreTestUtils.d.ts.map +1 -0
- package/lib/stores/QueryEditorStoreTestUtils.js +42 -0
- package/lib/stores/QueryEditorStoreTestUtils.js.map +1 -0
- package/lib/stores/QueryFunctionsExplorerState.d.ts +63 -0
- package/lib/stores/QueryFunctionsExplorerState.d.ts.map +1 -0
- package/lib/stores/QueryFunctionsExplorerState.js +238 -0
- package/lib/stores/QueryFunctionsExplorerState.js.map +1 -0
- package/lib/stores/QueryParametersState.d.ts +30 -0
- package/lib/stores/QueryParametersState.d.ts.map +1 -0
- package/lib/stores/QueryParametersState.js +42 -0
- package/lib/stores/QueryParametersState.js.map +1 -0
- package/lib/stores/QueryResultSetModifierState.d.ts +52 -0
- package/lib/stores/QueryResultSetModifierState.d.ts.map +1 -0
- package/lib/stores/QueryResultSetModifierState.js +165 -0
- package/lib/stores/QueryResultSetModifierState.js.map +1 -0
- package/lib/stores/QuerySetupStore.d.ts +86 -0
- package/lib/stores/QuerySetupStore.d.ts.map +1 -0
- package/lib/stores/QuerySetupStore.js +297 -0
- package/lib/stores/QuerySetupStore.js.map +1 -0
- package/lib/stores/QueryTextEditorState.d.ts +49 -0
- package/lib/stores/QueryTextEditorState.d.ts.map +1 -0
- package/lib/stores/QueryTextEditorState.js +145 -0
- package/lib/stores/QueryTextEditorState.js.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperatorHelper.d.ts +21 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperatorHelper.d.ts.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperatorHelper.js +40 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperatorHelper.js.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Average.d.ts +26 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Average.d.ts.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Average.js +50 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Average.js.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Count.d.ts +26 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Count.d.ts.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Count.js +55 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Count.js.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Distinct.d.ts +25 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Distinct.d.ts.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Distinct.js +50 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Distinct.js.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_DistinctCount.d.ts +26 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_DistinctCount.js +77 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_DistinctCount.js.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_JoinString.d.ts +26 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_JoinString.d.ts.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_JoinString.js +66 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_JoinString.js.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Max.d.ts +25 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Max.d.ts.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Max.js +86 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Max.js.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Min.d.ts +25 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Min.d.ts.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Min.js +86 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Min.js.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Population.d.ts +26 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Population.d.ts.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Population.js +50 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Population.js.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts +26 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Sample.js +50 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Sum.d.ts +25 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Sum.d.ts.map +1 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Sum.js +45 -0
- package/lib/stores/aggregateOperators/QueryBuilderAggregateOperator_Sum.js.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperatorHelper.d.ts +20 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperatorHelper.d.ts.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperatorHelper.js +257 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperatorHelper.js.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_Contain.d.ts +31 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_Contain.d.ts.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_Contain.js +72 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_Contain.js.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_EndWith.d.ts +31 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_EndWith.d.ts.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_EndWith.js +72 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_EndWith.js.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_Equal.d.ts +31 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_Equal.d.ts.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_Equal.js +139 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_Equal.js.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThan.d.ts +26 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThan.d.ts.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThan.js +107 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThan.js.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts +26 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThanEqual.js +107 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_GreaterThanEqual.js.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_In.d.ts +31 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_In.d.ts.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_In.js +103 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_In.js.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_IsEmpty.d.ts +31 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_IsEmpty.d.ts.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_IsEmpty.js +65 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_IsEmpty.js.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThan.d.ts +26 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThan.d.ts.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThan.js +108 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThan.js.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThanEqual.d.ts +26 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThanEqual.d.ts.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThanEqual.js +107 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_LessThanEqual.js.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_StartWith.d.ts +31 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_StartWith.d.ts.map +1 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_StartWith.js +72 -0
- package/lib/stores/filterOperators/QueryBuilderFilterOperator_StartWith.js.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperatorHelper.d.ts +23 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperatorHelper.d.ts.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperatorHelper.js +74 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperatorHelper.js.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Contain.d.ts +32 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Contain.d.ts.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Contain.js +76 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Contain.js.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_EndWith.d.ts +32 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_EndWith.js +76 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_EndWith.js.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Equal.d.ts +32 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Equal.d.ts.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Equal.js +142 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_Equal.js.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThan.d.ts +27 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThan.js +105 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThan.js.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts +24 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThanEqual.js +43 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_In.d.ts +32 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_In.d.ts.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_In.js +104 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_In.js.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_IsEmpty.d.ts +33 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_IsEmpty.js +67 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_IsEmpty.js.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThan.d.ts +27 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThan.js +105 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThan.js.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts +24 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThanEqual.js +43 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_StartWith.d.ts +32 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +1 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_StartWith.js +76 -0
- package/lib/stores/postFilterOperators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -0
- package/package.json +99 -0
- package/src/LegendQueryAppEvent.ts +20 -0
- package/src/QueryBuilder_Const.ts +88 -0
- package/src/application/LegendQuery.tsx +92 -0
- package/src/application/LegendQueryApplicationConfig.ts +77 -0
- package/src/application/LegendQueryPluginManager.ts +67 -0
- package/src/components/LegendQueryApplication.tsx +104 -0
- package/src/components/LegendQueryBaseStoreProvider.tsx +68 -0
- package/src/components/QueryBuilder.tsx +375 -0
- package/src/components/QueryBuilderExplorerPanel.tsx +998 -0
- package/src/components/QueryBuilderFetchStructurePanel.tsx +184 -0
- package/src/components/QueryBuilderFilterPanel.tsx +858 -0
- package/src/components/QueryBuilderFunctionsExplorerPanel.tsx +598 -0
- package/src/components/QueryBuilderGraphFetchTreePanel.tsx +270 -0
- package/src/components/QueryBuilderLambdaEditor.tsx +117 -0
- package/src/components/QueryBuilderMilestoneEditor.tsx +291 -0
- package/src/components/QueryBuilderParameterPanel.tsx +434 -0
- package/src/components/QueryBuilderPostFilterPanel.tsx +1061 -0
- package/src/components/QueryBuilderProjectionPanel.tsx +652 -0
- package/src/components/QueryBuilderPropertyExpressionEditor.tsx +370 -0
- package/src/components/QueryBuilderPropertyInfoTooltip.tsx +87 -0
- package/src/components/QueryBuilderPropertySearchPanel.tsx +617 -0
- package/src/components/QueryBuilderResultModifierPanel.tsx +252 -0
- package/src/components/QueryBuilderResultPanel.tsx +582 -0
- package/src/components/QueryBuilderSetupPanel.tsx +341 -0
- package/src/components/QueryBuilderTextEditor.tsx +127 -0
- package/src/components/QueryBuilderUnsupportedQueryEditor.tsx +110 -0
- package/src/components/QueryBuilder_TestID.ts +26 -0
- package/src/components/QueryEditor.tsx +345 -0
- package/src/components/QueryEditorComponentTestUtils.tsx +200 -0
- package/src/components/QueryEditorStoreProvider.tsx +128 -0
- package/src/components/QuerySetup.tsx +907 -0
- package/src/components/QuerySetupStoreProvider.tsx +65 -0
- package/src/components/shared/ElementIconUtils.tsx +47 -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 +170 -0
- package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.ts +573 -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 +57 -0
- package/src/stores/LegendQueryApplicationPlugin.ts +61 -0
- package/src/stores/LegendQueryBaseStore.ts +47 -0
- package/src/stores/LegendQueryEventService.ts +38 -0
- package/src/stores/LegendQueryRouter.ts +114 -0
- package/src/stores/QueryBuilderAggregationState.ts +208 -0
- package/src/stores/QueryBuilderExplorerState.ts +590 -0
- package/src/stores/QueryBuilderFetchStructureState.ts +59 -0
- package/src/stores/QueryBuilderFilterState.ts +815 -0
- package/src/stores/QueryBuilderGraphFetchTreeState.ts +90 -0
- package/src/stores/QueryBuilderGraphFetchTreeUtil.ts +281 -0
- package/src/stores/QueryBuilderLambdaBuilder.ts +755 -0
- package/src/stores/QueryBuilderLambdaProcessor.ts +1239 -0
- package/src/stores/QueryBuilderOperatorsHelper.ts +191 -0
- package/src/stores/QueryBuilderPostFilterOperator.ts +66 -0
- package/src/stores/QueryBuilderPostFilterProcessor.ts +275 -0
- package/src/stores/QueryBuilderPostFilterState.ts +762 -0
- package/src/stores/QueryBuilderPreviewDataHelper.ts +300 -0
- package/src/stores/QueryBuilderProjectionState.ts +796 -0
- package/src/stores/QueryBuilderPropertyEditorState.ts +656 -0
- package/src/stores/QueryBuilderPropertySearchPanelState.ts +331 -0
- package/src/stores/QueryBuilderResultState.ts +263 -0
- package/src/stores/QueryBuilderSetupState.ts +236 -0
- package/src/stores/QueryBuilderState.ts +561 -0
- package/src/stores/QueryBuilderUnsupportedState.ts +42 -0
- package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +76 -0
- package/src/stores/QueryEditorStore.ts +648 -0
- package/src/stores/QueryEditorStoreTestUtils.ts +46 -0
- package/src/stores/QueryFunctionsExplorerState.ts +386 -0
- package/src/stores/QueryParametersState.ts +54 -0
- package/src/stores/QueryResultSetModifierState.ts +307 -0
- package/src/stores/QuerySetupStore.ts +430 -0
- package/src/stores/QueryTextEditorState.ts +203 -0
- package/src/stores/aggregateOperators/QueryBuilderAggregateOperatorHelper.ts +111 -0
- package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Average.ts +100 -0
- package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Count.ts +108 -0
- package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Distinct.ts +98 -0
- package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_DistinctCount.ts +175 -0
- package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_JoinString.ts +157 -0
- package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Max.ts +176 -0
- package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Min.ts +176 -0
- package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Population.ts +100 -0
- package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Sample.ts +100 -0
- package/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Sum.ts +90 -0
- package/src/stores/filterOperators/QueryBuilderFilterOperatorHelper.ts +524 -0
- package/src/stores/filterOperators/QueryBuilderFilterOperator_Contain.ts +134 -0
- package/src/stores/filterOperators/QueryBuilderFilterOperator_EndWith.ts +134 -0
- package/src/stores/filterOperators/QueryBuilderFilterOperator_Equal.ts +233 -0
- package/src/stores/filterOperators/QueryBuilderFilterOperator_GreaterThan.ts +164 -0
- package/src/stores/filterOperators/QueryBuilderFilterOperator_GreaterThanEqual.ts +164 -0
- package/src/stores/filterOperators/QueryBuilderFilterOperator_In.ts +181 -0
- package/src/stores/filterOperators/QueryBuilderFilterOperator_IsEmpty.ts +125 -0
- package/src/stores/filterOperators/QueryBuilderFilterOperator_LessThan.ts +165 -0
- package/src/stores/filterOperators/QueryBuilderFilterOperator_LessThanEqual.ts +164 -0
- package/src/stores/filterOperators/QueryBuilderFilterOperator_StartWith.ts +134 -0
- package/src/stores/postFilterOperators/QueryBuilderPostFilterOperatorHelper.ts +129 -0
- package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_Contain.ts +140 -0
- package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_EndWith.ts +135 -0
- package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_Equal.ts +238 -0
- package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThan.ts +161 -0
- package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts +70 -0
- package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_In.ts +183 -0
- package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_IsEmpty.ts +113 -0
- package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThan.ts +161 -0
- package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThanEqual.ts +70 -0
- package/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_StartWith.ts +135 -0
- package/tsconfig.json +155 -0
- package/tsconfig.package.json +38 -0
|
@@ -0,0 +1,407 @@
|
|
|
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
|
+
import { assertTrue, getNullableFirstElement, guaranteeNonNullable, guaranteeType, isNonNullable, UnsupportedOperationError, } from '@finos/legend-shared';
|
|
17
|
+
import { Class, Multiplicity, getMilestoneTemporalStereotype, INTERNAL__UnknownValueSpecification, V1_GraphTransformerContextBuilder, V1_serializeRawValueSpecification, V1_transformRawLambda, extractElementNameFromPath, InstanceValue, PackageableElementExplicitReference, CollectionInstanceValue, CORE_PURE_PATH, FunctionType, GenericType, GenericTypeExplicitReference, LambdaFunction, PrimitiveInstanceValue, PRIMITIVE_TYPE, RootGraphFetchTreeInstanceValue, SimpleFunctionExpression, TYPICAL_MULTIPLICITY_TYPE, MILESTONING_STEREOTYPE, AbstractPropertyExpression, DerivedProperty, INTERNAL__PropagatedValue, matchFunctionName, } from '@finos/legend-graph';
|
|
18
|
+
import { isGraphFetchTreeDataEmpty } from './QueryBuilderGraphFetchTreeUtil.js';
|
|
19
|
+
import { buildFilterExpression } from './QueryBuilderFilterState.js';
|
|
20
|
+
import { QueryBuilderDerivationProjectionColumnState, QueryBuilderSimpleProjectionColumnState, } from './QueryBuilderProjectionState.js';
|
|
21
|
+
import { buildGenericLambdaFunctionInstanceValue } from './QueryBuilderValueSpecificationBuilderHelper.js';
|
|
22
|
+
import { QueryBuilderPostFilterTreeConditionNodeData, QueryBuilderPostFilterTreeGroupNodeData, } from './QueryBuilderPostFilterState.js';
|
|
23
|
+
import { fromGroupOperation } from './QueryBuilderOperatorsHelper.js';
|
|
24
|
+
import { getDerivedPropertyMilestoningSteoreotype } from './QueryBuilderPropertyEditorState.js';
|
|
25
|
+
import { functionExpression_setParametersValues, propertyExpression_setParametersValue, buildParametersLetLambdaFunc, } from '@finos/legend-application';
|
|
26
|
+
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../QueryBuilder_Const.js';
|
|
27
|
+
/**
|
|
28
|
+
* Checks if the provided property expression match the criteria for default
|
|
29
|
+
* date propagation so we know whether we need to fill in values for the parameter
|
|
30
|
+
* or just propgate values from the parent's expression
|
|
31
|
+
*
|
|
32
|
+
* NOTE: this takes date propgation into account. See the table below for all
|
|
33
|
+
* the combination:
|
|
34
|
+
*
|
|
35
|
+
* | [source] | | | | |
|
|
36
|
+
* ----------------------------------------------------------------------
|
|
37
|
+
* [target] | | NONE | PR_TMP | BI_TMP | BU_TMP |
|
|
38
|
+
* ----------------------------------------------------------------------
|
|
39
|
+
* | NONE | N.A. | PRD | PRD,BUD | BUD |
|
|
40
|
+
* ----------------------------------------------------------------------
|
|
41
|
+
* | PR_TMP | N.A. | X | PRD,BUD | BUD |
|
|
42
|
+
* ----------------------------------------------------------------------
|
|
43
|
+
* | BI_TMP | N.A. | X | X | X |
|
|
44
|
+
* ----------------------------------------------------------------------
|
|
45
|
+
* | BU_TMP | N.A. | PRD | PRD,BUD | X |
|
|
46
|
+
* ----------------------------------------------------------------------
|
|
47
|
+
*
|
|
48
|
+
* Annotations:
|
|
49
|
+
*
|
|
50
|
+
* [source]: source temporal type
|
|
51
|
+
* [target]: target temporal type
|
|
52
|
+
*
|
|
53
|
+
* PR_TMP : processing temporal
|
|
54
|
+
* BI_TMP : bitemporal
|
|
55
|
+
* BU_TMP : business temporal
|
|
56
|
+
*
|
|
57
|
+
* X : no default date propagated
|
|
58
|
+
* PRD : default processing date is propagated
|
|
59
|
+
* BUD : default business date is propgated
|
|
60
|
+
*/
|
|
61
|
+
const isDefaultDatePropagationSupported = (currentPropertyExpression, queryBuilderState, prevPropertyExpression) => {
|
|
62
|
+
const property = currentPropertyExpression.func;
|
|
63
|
+
const graph = queryBuilderState.graphManagerState.graph;
|
|
64
|
+
// Default date propagation is not supported for current expression when the previous property expression is a derived property.
|
|
65
|
+
if (prevPropertyExpression &&
|
|
66
|
+
prevPropertyExpression.func instanceof DerivedProperty &&
|
|
67
|
+
prevPropertyExpression.func._OWNER.derivedProperties.includes(prevPropertyExpression.func)) {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
// Default date propagation is not supported for current expression when the milestonedParameterValues of
|
|
71
|
+
// the previous property expression doesn't match with the global milestonedParameterValues
|
|
72
|
+
if (prevPropertyExpression &&
|
|
73
|
+
prevPropertyExpression.func.genericType.value.rawType instanceof Class) {
|
|
74
|
+
const milestoningStereotype = getMilestoneTemporalStereotype(prevPropertyExpression.func.genericType.value.rawType, graph);
|
|
75
|
+
if (milestoningStereotype &&
|
|
76
|
+
!prevPropertyExpression.parametersValues
|
|
77
|
+
.slice(1)
|
|
78
|
+
.every((parameterValue) => parameterValue instanceof INTERNAL__PropagatedValue)) {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
if (property.genericType.value.rawType instanceof Class) {
|
|
83
|
+
// the stereotype of source class of current property expression.
|
|
84
|
+
const sourceStereotype = property instanceof DerivedProperty
|
|
85
|
+
? getDerivedPropertyMilestoningSteoreotype(property, graph)
|
|
86
|
+
: undefined;
|
|
87
|
+
// Default date propagation is always supported if the source is `bitemporal`
|
|
88
|
+
if (sourceStereotype === MILESTONING_STEREOTYPE.BITEMPORAL) {
|
|
89
|
+
return true;
|
|
90
|
+
}
|
|
91
|
+
// the stereotype (if exists) of the generic type of current property expression.
|
|
92
|
+
const targetStereotype = getMilestoneTemporalStereotype(property.genericType.value.rawType, graph);
|
|
93
|
+
// Default date propagation is supported when stereotype of both source and target matches
|
|
94
|
+
if (sourceStereotype && targetStereotype) {
|
|
95
|
+
return sourceStereotype === targetStereotype;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return false;
|
|
99
|
+
};
|
|
100
|
+
export const buildGetAllFunction = (_class, multiplicity) => {
|
|
101
|
+
const _func = new SimpleFunctionExpression(extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.GET_ALL), multiplicity);
|
|
102
|
+
const classInstance = new InstanceValue(multiplicity, GenericTypeExplicitReference.create(new GenericType(_class)));
|
|
103
|
+
classInstance.values[0] = PackageableElementExplicitReference.create(_class);
|
|
104
|
+
_func.parametersValues.push(classInstance);
|
|
105
|
+
return _func;
|
|
106
|
+
};
|
|
107
|
+
const buildPostFilterExpression = (filterState, node) => {
|
|
108
|
+
if (node instanceof QueryBuilderPostFilterTreeConditionNodeData) {
|
|
109
|
+
return node.condition.operator.buildPostFilterConditionExpression(node.condition);
|
|
110
|
+
}
|
|
111
|
+
else if (node instanceof QueryBuilderPostFilterTreeGroupNodeData) {
|
|
112
|
+
const multiplicityOne = filterState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE);
|
|
113
|
+
const func = new SimpleFunctionExpression(extractElementNameFromPath(fromGroupOperation(node.groupOperation)), multiplicityOne);
|
|
114
|
+
const clauses = node.childrenIds
|
|
115
|
+
.map((e) => filterState.nodes.get(e))
|
|
116
|
+
.filter(isNonNullable)
|
|
117
|
+
.map((e) => buildPostFilterExpression(filterState, e))
|
|
118
|
+
.filter(isNonNullable);
|
|
119
|
+
/**
|
|
120
|
+
* NOTE: Due to a limitation (or perhaps design decision) in the engine, group operations
|
|
121
|
+
* like and/or do not take more than 2 parameters, as such, if we have more than 2, we need
|
|
122
|
+
* to create a chain of this operation to accomondate.
|
|
123
|
+
*
|
|
124
|
+
* This means that in the read direction, we might need to flatten the chains down to group with
|
|
125
|
+
* multiple clauses. This means user's intended grouping will not be kept.
|
|
126
|
+
*/
|
|
127
|
+
if (clauses.length > 2) {
|
|
128
|
+
const firstClause = clauses[0];
|
|
129
|
+
let currentClause = clauses[clauses.length - 1];
|
|
130
|
+
for (let i = clauses.length - 2; i > 0; --i) {
|
|
131
|
+
const clause1 = clauses[i];
|
|
132
|
+
const clause2 = currentClause;
|
|
133
|
+
const groupClause = new SimpleFunctionExpression(extractElementNameFromPath(fromGroupOperation(node.groupOperation)), multiplicityOne);
|
|
134
|
+
groupClause.parametersValues = [clause1, clause2];
|
|
135
|
+
currentClause = groupClause;
|
|
136
|
+
}
|
|
137
|
+
func.parametersValues = [firstClause, currentClause];
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
func.parametersValues = clauses;
|
|
141
|
+
}
|
|
142
|
+
return func.parametersValues.length ? func : undefined;
|
|
143
|
+
}
|
|
144
|
+
return undefined;
|
|
145
|
+
};
|
|
146
|
+
export const processPostFilterOnLambda = (postFilterState, lambda) => {
|
|
147
|
+
const postFilterConditionExpressions = postFilterState.rootIds
|
|
148
|
+
.map((e) => guaranteeNonNullable(postFilterState.nodes.get(e)))
|
|
149
|
+
.map((e) => buildPostFilterExpression(postFilterState, e))
|
|
150
|
+
.filter(isNonNullable);
|
|
151
|
+
if (!postFilterConditionExpressions.length ||
|
|
152
|
+
lambda.expressionSequence.length !== 1) {
|
|
153
|
+
return lambda;
|
|
154
|
+
}
|
|
155
|
+
assertTrue(postFilterState.queryBuilderState.fetchStructureState.isProjectionMode(), 'Can only apply post-filter while fetching projection columns');
|
|
156
|
+
const multiplicityOne = postFilterState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE);
|
|
157
|
+
const filterLambda = buildGenericLambdaFunctionInstanceValue(postFilterState.lambdaParameterName, postFilterConditionExpressions, postFilterState.queryBuilderState.graphManagerState.graph);
|
|
158
|
+
// main filter expression
|
|
159
|
+
const filterExpression = new SimpleFunctionExpression(extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.FILTER), multiplicityOne);
|
|
160
|
+
const currentExpression = guaranteeNonNullable(lambda.expressionSequence[0]);
|
|
161
|
+
filterExpression.parametersValues = [currentExpression, filterLambda];
|
|
162
|
+
lambda.expressionSequence[0] = filterExpression;
|
|
163
|
+
return lambda;
|
|
164
|
+
};
|
|
165
|
+
export const buildPropertyExpressionChain = (propertyExpression, queryBuilderState) => {
|
|
166
|
+
const graph = queryBuilderState.graphManagerState.graph;
|
|
167
|
+
const newPropertyExpression = new AbstractPropertyExpression('', graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE));
|
|
168
|
+
newPropertyExpression.func = propertyExpression.func;
|
|
169
|
+
newPropertyExpression.parametersValues = propertyExpression.parametersValues;
|
|
170
|
+
let nextExpression;
|
|
171
|
+
let currentExpression = newPropertyExpression;
|
|
172
|
+
while (currentExpression instanceof AbstractPropertyExpression) {
|
|
173
|
+
nextExpression = getNullableFirstElement(currentExpression.parametersValues);
|
|
174
|
+
if (nextExpression instanceof AbstractPropertyExpression) {
|
|
175
|
+
const parameterValue = new AbstractPropertyExpression('', graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE));
|
|
176
|
+
parameterValue.func = nextExpression.func;
|
|
177
|
+
parameterValue.parametersValues = nextExpression.parametersValues;
|
|
178
|
+
nextExpression = parameterValue;
|
|
179
|
+
currentExpression.parametersValues[0] = parameterValue;
|
|
180
|
+
}
|
|
181
|
+
if (currentExpression.func instanceof DerivedProperty) {
|
|
182
|
+
const parameterValues = currentExpression.parametersValues.slice(1);
|
|
183
|
+
parameterValues.forEach((parameterValue, index) => {
|
|
184
|
+
if (parameterValue instanceof INTERNAL__PropagatedValue) {
|
|
185
|
+
// Replace with argumentless derived property expression only when default date propagation is supported
|
|
186
|
+
if (isDefaultDatePropagationSupported(guaranteeType(currentExpression, AbstractPropertyExpression), queryBuilderState, nextExpression instanceof AbstractPropertyExpression
|
|
187
|
+
? nextExpression
|
|
188
|
+
: undefined)) {
|
|
189
|
+
// NOTE: For `bitemporal` property check if the property expression has parameters which are not instance of
|
|
190
|
+
// `INTERNAL_PropagatedValue` then pass the parameters as user explicitly changed values of either of the parameters.
|
|
191
|
+
if ((index === 1 &&
|
|
192
|
+
guaranteeType(currentExpression, AbstractPropertyExpression)
|
|
193
|
+
.parametersValues.length === 3) ||
|
|
194
|
+
(index === 0 &&
|
|
195
|
+
guaranteeType(currentExpression, AbstractPropertyExpression)
|
|
196
|
+
.parametersValues.length === 3 &&
|
|
197
|
+
!(guaranteeType(currentExpression, AbstractPropertyExpression)
|
|
198
|
+
.parametersValues[2] instanceof INTERNAL__PropagatedValue))) {
|
|
199
|
+
propertyExpression_setParametersValue(guaranteeType(currentExpression, AbstractPropertyExpression), index + 1, parameterValue.getValue(), queryBuilderState.observableContext);
|
|
200
|
+
}
|
|
201
|
+
else {
|
|
202
|
+
functionExpression_setParametersValues(guaranteeType(currentExpression, AbstractPropertyExpression), [
|
|
203
|
+
guaranteeNonNullable(guaranteeType(currentExpression, AbstractPropertyExpression)
|
|
204
|
+
.parametersValues[0]),
|
|
205
|
+
], queryBuilderState.observableContext);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
propertyExpression_setParametersValue(guaranteeType(currentExpression, AbstractPropertyExpression), index + 1, parameterValue.getValue(), queryBuilderState.observableContext);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
currentExpression = nextExpression;
|
|
215
|
+
// Take care of chains of subtype (a pattern that is not useful, but we want to support and rectify)
|
|
216
|
+
// $x.employees->subType(@Person)->subType(@Staff)
|
|
217
|
+
while (currentExpression instanceof SimpleFunctionExpression &&
|
|
218
|
+
matchFunctionName(currentExpression.functionName, QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE)) {
|
|
219
|
+
currentExpression = getNullableFirstElement(currentExpression.parametersValues);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
return newPropertyExpression;
|
|
223
|
+
};
|
|
224
|
+
export const buildLambdaFunction = (queryBuilderState, options) => {
|
|
225
|
+
const _class = guaranteeNonNullable(queryBuilderState.querySetupState._class, 'Class is required to build query');
|
|
226
|
+
const multiplicityOne = queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE);
|
|
227
|
+
const typeString = queryBuilderState.graphManagerState.graph.getPrimitiveType(PRIMITIVE_TYPE.STRING);
|
|
228
|
+
const typeAny = queryBuilderState.graphManagerState.graph.getType(CORE_PURE_PATH.ANY);
|
|
229
|
+
const lambdaFunction = new LambdaFunction(new FunctionType(typeAny, multiplicityOne));
|
|
230
|
+
// build getAll()
|
|
231
|
+
const getAllFunction = buildGetAllFunction(_class, multiplicityOne);
|
|
232
|
+
// build milestoning parameter(s) for getAll()
|
|
233
|
+
const milestoningStereotype = getMilestoneTemporalStereotype(_class, queryBuilderState.graphManagerState.graph);
|
|
234
|
+
if (milestoningStereotype) {
|
|
235
|
+
switch (milestoningStereotype) {
|
|
236
|
+
case MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL: {
|
|
237
|
+
getAllFunction.parametersValues.push(guaranteeNonNullable(queryBuilderState.querySetupState.businessDate, `Milestoning class should have a parameter of type 'Date'`));
|
|
238
|
+
break;
|
|
239
|
+
}
|
|
240
|
+
case MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL: {
|
|
241
|
+
getAllFunction.parametersValues.push(guaranteeNonNullable(queryBuilderState.querySetupState.processingDate, `Milestoning class should have a parameter of type 'Date'`));
|
|
242
|
+
break;
|
|
243
|
+
}
|
|
244
|
+
case MILESTONING_STEREOTYPE.BITEMPORAL: {
|
|
245
|
+
getAllFunction.parametersValues.push(guaranteeNonNullable(queryBuilderState.querySetupState.processingDate, `Milestoning class should have a parameter of type 'Date'`));
|
|
246
|
+
getAllFunction.parametersValues.push(guaranteeNonNullable(queryBuilderState.querySetupState.businessDate, `Milestoning class should have a parameter of type 'Date'`));
|
|
247
|
+
break;
|
|
248
|
+
}
|
|
249
|
+
default:
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
lambdaFunction.expressionSequence[0] = getAllFunction;
|
|
253
|
+
// build filter()
|
|
254
|
+
const filterFunction = buildFilterExpression(queryBuilderState.filterState, getAllFunction);
|
|
255
|
+
if (filterFunction) {
|
|
256
|
+
lambdaFunction.expressionSequence[0] = filterFunction;
|
|
257
|
+
}
|
|
258
|
+
// build fetch structure
|
|
259
|
+
if (queryBuilderState.fetchStructureState.isProjectionMode()) {
|
|
260
|
+
if (queryBuilderState.fetchStructureState.projectionState.aggregationState
|
|
261
|
+
.columns.length) {
|
|
262
|
+
// aggregation
|
|
263
|
+
const groupByFunction = new SimpleFunctionExpression(extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_GROUP_BY), multiplicityOne);
|
|
264
|
+
const colLambdas = new CollectionInstanceValue(new Multiplicity(queryBuilderState.fetchStructureState.projectionState.columns.length -
|
|
265
|
+
queryBuilderState.fetchStructureState.projectionState
|
|
266
|
+
.aggregationState.columns.length, queryBuilderState.fetchStructureState.projectionState.columns.length -
|
|
267
|
+
queryBuilderState.fetchStructureState.projectionState
|
|
268
|
+
.aggregationState.columns.length));
|
|
269
|
+
const aggregateLambdas = new CollectionInstanceValue(new Multiplicity(queryBuilderState.fetchStructureState.projectionState.aggregationState.columns.length, queryBuilderState.fetchStructureState.projectionState.aggregationState.columns.length));
|
|
270
|
+
const colAliases = new CollectionInstanceValue(new Multiplicity(queryBuilderState.fetchStructureState.projectionState.columns.length, queryBuilderState.fetchStructureState.projectionState.columns.length));
|
|
271
|
+
queryBuilderState.fetchStructureState.projectionState.columns.forEach((projectionColumnState) => {
|
|
272
|
+
// column alias
|
|
273
|
+
const colAlias = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(typeString)), multiplicityOne);
|
|
274
|
+
colAlias.values.push(projectionColumnState.columnName);
|
|
275
|
+
colAliases.values.push(colAlias);
|
|
276
|
+
const aggregateColumnState = queryBuilderState.fetchStructureState.projectionState.aggregationState.columns.find((column) => column.projectionColumnState === projectionColumnState);
|
|
277
|
+
// column projection
|
|
278
|
+
let columnLambda;
|
|
279
|
+
if (projectionColumnState instanceof
|
|
280
|
+
QueryBuilderSimpleProjectionColumnState) {
|
|
281
|
+
columnLambda = buildGenericLambdaFunctionInstanceValue(projectionColumnState.lambdaParameterName, [
|
|
282
|
+
buildPropertyExpressionChain(projectionColumnState.propertyExpressionState
|
|
283
|
+
.propertyExpression, projectionColumnState.propertyExpressionState
|
|
284
|
+
.queryBuilderState),
|
|
285
|
+
], queryBuilderState.graphManagerState.graph);
|
|
286
|
+
}
|
|
287
|
+
else if (projectionColumnState instanceof
|
|
288
|
+
QueryBuilderDerivationProjectionColumnState) {
|
|
289
|
+
columnLambda = new INTERNAL__UnknownValueSpecification(V1_serializeRawValueSpecification(V1_transformRawLambda(projectionColumnState.lambda, new V1_GraphTransformerContextBuilder(
|
|
290
|
+
// TODO?: do we need to include the plugins here?
|
|
291
|
+
[])
|
|
292
|
+
.withKeepSourceInformationFlag(Boolean(options?.keepSourceInformation))
|
|
293
|
+
.build())));
|
|
294
|
+
}
|
|
295
|
+
else {
|
|
296
|
+
throw new UnsupportedOperationError(`Can't build project() column expression: unsupported projection column state`, projectionColumnState);
|
|
297
|
+
}
|
|
298
|
+
// column aggregation
|
|
299
|
+
if (aggregateColumnState) {
|
|
300
|
+
const aggregateFunctionExpression = new SimpleFunctionExpression(extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_AGG), multiplicityOne);
|
|
301
|
+
const aggregateLambda = buildGenericLambdaFunctionInstanceValue(aggregateColumnState.lambdaParameterName, [
|
|
302
|
+
aggregateColumnState.operator.buildAggregateExpressionFromState(aggregateColumnState),
|
|
303
|
+
], aggregateColumnState.aggregationState.projectionState
|
|
304
|
+
.queryBuilderState.graphManagerState.graph);
|
|
305
|
+
aggregateFunctionExpression.parametersValues = [
|
|
306
|
+
columnLambda,
|
|
307
|
+
aggregateLambda,
|
|
308
|
+
];
|
|
309
|
+
aggregateLambdas.values.push(aggregateFunctionExpression);
|
|
310
|
+
}
|
|
311
|
+
else {
|
|
312
|
+
colLambdas.values.push(columnLambda);
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
const expression = lambdaFunction.expressionSequence[0];
|
|
316
|
+
groupByFunction.parametersValues = [
|
|
317
|
+
expression,
|
|
318
|
+
colLambdas,
|
|
319
|
+
aggregateLambdas,
|
|
320
|
+
colAliases,
|
|
321
|
+
];
|
|
322
|
+
lambdaFunction.expressionSequence[0] = groupByFunction;
|
|
323
|
+
}
|
|
324
|
+
else if (queryBuilderState.fetchStructureState.projectionState.columns.length) {
|
|
325
|
+
// projection
|
|
326
|
+
const projectFunction = new SimpleFunctionExpression(extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_PROJECT), multiplicityOne);
|
|
327
|
+
const colLambdas = new CollectionInstanceValue(new Multiplicity(queryBuilderState.fetchStructureState.projectionState.columns.length, queryBuilderState.fetchStructureState.projectionState.columns.length));
|
|
328
|
+
const colAliases = new CollectionInstanceValue(new Multiplicity(queryBuilderState.fetchStructureState.projectionState.columns.length, queryBuilderState.fetchStructureState.projectionState.columns.length));
|
|
329
|
+
queryBuilderState.fetchStructureState.projectionState.columns.forEach((projectionColumnState) => {
|
|
330
|
+
// column alias
|
|
331
|
+
const colAlias = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(typeString)), multiplicityOne);
|
|
332
|
+
colAlias.values.push(projectionColumnState.columnName);
|
|
333
|
+
colAliases.values.push(colAlias);
|
|
334
|
+
// column projection
|
|
335
|
+
let columnLambda;
|
|
336
|
+
if (projectionColumnState instanceof
|
|
337
|
+
QueryBuilderSimpleProjectionColumnState) {
|
|
338
|
+
columnLambda = buildGenericLambdaFunctionInstanceValue(projectionColumnState.lambdaParameterName, [
|
|
339
|
+
buildPropertyExpressionChain(projectionColumnState.propertyExpressionState
|
|
340
|
+
.propertyExpression, projectionColumnState.propertyExpressionState
|
|
341
|
+
.queryBuilderState),
|
|
342
|
+
], queryBuilderState.graphManagerState.graph);
|
|
343
|
+
}
|
|
344
|
+
else if (projectionColumnState instanceof
|
|
345
|
+
QueryBuilderDerivationProjectionColumnState) {
|
|
346
|
+
columnLambda = new INTERNAL__UnknownValueSpecification(V1_serializeRawValueSpecification(V1_transformRawLambda(projectionColumnState.lambda, new V1_GraphTransformerContextBuilder(
|
|
347
|
+
// TODO?: do we need to include the plugins here?
|
|
348
|
+
[])
|
|
349
|
+
.withKeepSourceInformationFlag(Boolean(options?.keepSourceInformation))
|
|
350
|
+
.build())));
|
|
351
|
+
}
|
|
352
|
+
else {
|
|
353
|
+
throw new UnsupportedOperationError(`Can't build project() column expression: unsupported projection column state`, projectionColumnState);
|
|
354
|
+
}
|
|
355
|
+
colLambdas.values.push(columnLambda);
|
|
356
|
+
});
|
|
357
|
+
const expression = lambdaFunction.expressionSequence[0];
|
|
358
|
+
projectFunction.parametersValues = [expression, colLambdas, colAliases];
|
|
359
|
+
lambdaFunction.expressionSequence[0] = projectFunction;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
else if (queryBuilderState.fetchStructureState.isGraphFetchMode() &&
|
|
363
|
+
queryBuilderState.fetchStructureState.graphFetchTreeState.treeData &&
|
|
364
|
+
!isGraphFetchTreeDataEmpty(queryBuilderState.fetchStructureState.graphFetchTreeState.treeData)) {
|
|
365
|
+
const graphFetchInstance = new RootGraphFetchTreeInstanceValue(multiplicityOne);
|
|
366
|
+
graphFetchInstance.values = [
|
|
367
|
+
queryBuilderState.fetchStructureState.graphFetchTreeState.treeData.tree,
|
|
368
|
+
];
|
|
369
|
+
const serializeFunction = new SimpleFunctionExpression(extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.SERIALIZE), multiplicityOne);
|
|
370
|
+
const graphFetchFunc = new SimpleFunctionExpression(queryBuilderState.fetchStructureState.graphFetchTreeState.isChecked
|
|
371
|
+
? extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.GRAPH_FETCH_CHECKED)
|
|
372
|
+
: extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.GRAPH_FETCH), multiplicityOne);
|
|
373
|
+
const expression = lambdaFunction.expressionSequence[0];
|
|
374
|
+
graphFetchFunc.parametersValues = [expression, graphFetchInstance];
|
|
375
|
+
serializeFunction.parametersValues = [graphFetchFunc, graphFetchInstance];
|
|
376
|
+
lambdaFunction.expressionSequence[0] = serializeFunction;
|
|
377
|
+
}
|
|
378
|
+
// build post-filter
|
|
379
|
+
processPostFilterOnLambda(queryBuilderState.postFilterState, lambdaFunction);
|
|
380
|
+
// build result set modifiers
|
|
381
|
+
queryBuilderState.resultSetModifierState.buildResultSetModifiers(lambdaFunction, {
|
|
382
|
+
overridingLimit: options?.isBuildingExecutionQuery
|
|
383
|
+
? queryBuilderState.resultState.previewLimit
|
|
384
|
+
: undefined,
|
|
385
|
+
});
|
|
386
|
+
// build parameters
|
|
387
|
+
if (!queryBuilderState.mode.isParametersDisabled &&
|
|
388
|
+
queryBuilderState.queryParametersState.parameterStates.length) {
|
|
389
|
+
// if we are executing:
|
|
390
|
+
// set the parameters to empty
|
|
391
|
+
// add let statements for each parameter
|
|
392
|
+
if (options?.isBuildingExecutionQuery) {
|
|
393
|
+
lambdaFunction.functionType.parameters = [];
|
|
394
|
+
const letsFuncs = buildParametersLetLambdaFunc(queryBuilderState.graphManagerState.graph, queryBuilderState.queryParametersState.parameterStates);
|
|
395
|
+
lambdaFunction.expressionSequence = [
|
|
396
|
+
...letsFuncs.expressionSequence,
|
|
397
|
+
...lambdaFunction.expressionSequence,
|
|
398
|
+
];
|
|
399
|
+
}
|
|
400
|
+
else {
|
|
401
|
+
lambdaFunction.functionType.parameters =
|
|
402
|
+
queryBuilderState.queryParametersState.parameterStates.map((e) => e.parameter);
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
return lambdaFunction;
|
|
406
|
+
};
|
|
407
|
+
//# sourceMappingURL=QueryBuilderLambdaBuilder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryBuilderLambdaBuilder.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderLambdaBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,UAAU,EACV,uBAAuB,EACvB,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,KAAK,EACL,YAAY,EACZ,8BAA8B,EAC9B,mCAAmC,EACnC,iCAAiC,EACjC,iCAAiC,EACjC,qBAAqB,EACrB,0BAA0B,EAC1B,aAAa,EACb,mCAAmC,EACnC,uBAAuB,EACvB,cAAc,EACd,YAAY,EACZ,WAAW,EACX,4BAA4B,EAC5B,cAAc,EACd,sBAAsB,EACtB,cAAc,EACd,+BAA+B,EAC/B,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,0BAA0B,EAC1B,eAAe,EACf,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAEhF,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EACL,2CAA2C,EAC3C,uCAAuC,GACxC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,uCAAuC,EAAE,MAAM,kDAAkD,CAAC;AAC3G,OAAO,EAGL,2CAA2C,EAC3C,uCAAuC,GACxC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,wCAAwC,EAAE,MAAM,sCAAsC,CAAC;AAChG,OAAO,EACL,sCAAsC,EACtC,qCAAqC,EACrC,4BA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YAC5C,CAAC,CAAC,SAAS;KACd,CACF,CAAC;IACF,mBAAmB;IACnB,IACE,CAAC,iBAAiB,CAAC,IAAI,CAAC,oBAAoB;QAC5C,iBAAiB,CAAC,oBAAoB,CAAC,eAAe,CAAC,MAAM,EAC7D;QACA,uBAAuB;QACvB,8BAA8B;QAC9B,wCAAwC;QACxC,IAAI,OAAO,EAAE,wBAAwB,EAAE;YACrC,cAAc,CAAC,YAAY,CAAC,UAAU,GAAG,EAAE,CAAC;YAC5C,MAAM,SAAS,GAAG,4BAA4B,CAC5C,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,EACzC,iBAAiB,CAAC,oBAAoB,CAAC,eAAe,CACvD,CAAC;YACF,cAAc,CAAC,kBAAkB,GAAG;gBAClC,GAAG,SAAS,CAAC,kBAAkB;gBAC/B,GAAG,cAAc,CAAC,kBAAkB;aACrC,CAAC;SACH;aAAM;YACL,cAAc,CAAC,YAAY,CAAC,UAAU;gBACpC,iBAAiB,CAAC,oBAAoB,CAAC,eAAe,CAAC,GAAG,CACxD,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CACnB,CAAC;SACL;KACF;IACD,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
import type { QueryBuilderState } from './QueryBuilderState.js';
|
|
17
|
+
import { type AlloySerializationConfigInstanceValue, type EnumValueInstanceValue, type FunctionExpression, type MappingInstanceValue, type PairInstanceValue, type PropertyGraphFetchTreeInstanceValue, type PureListInstanceValue, type RootGraphFetchTreeInstanceValue, type RuntimeInstanceValue, type ValueSpecificationVisitor, type InstanceValue, type INTERNAL__UnknownValueSpecification, type LambdaFunction, CollectionInstanceValue, LambdaFunctionInstanceValue, PrimitiveInstanceValue, SimpleFunctionExpression, VariableExpression, AbstractPropertyExpression, type INTERNAL__PropagatedValue } from '@finos/legend-graph';
|
|
18
|
+
/**
|
|
19
|
+
* This is the expression processor for query builder.
|
|
20
|
+
* Unlike expression builder which takes care of transforming the value specification
|
|
21
|
+
* from `protocol` to `metamodel`, and type-inferencing, this takes care
|
|
22
|
+
* of traversing the expression to populate the query builder UI state.
|
|
23
|
+
*
|
|
24
|
+
* NOTE: While traversing the expression, this processor also does a fair amount of
|
|
25
|
+
* validations and assertsions but just so enough to populate the UI state.
|
|
26
|
+
*
|
|
27
|
+
* Validation and assertion should be done by both the builder and processor, but the builder
|
|
28
|
+
* will do more structural checks to build the proper metamodel. The processor should never
|
|
29
|
+
* modify the metamodel, just traversing it.
|
|
30
|
+
*/
|
|
31
|
+
export declare class QueryBuilderLambdaProcessor implements ValueSpecificationVisitor<void> {
|
|
32
|
+
queryBuilderState: QueryBuilderState;
|
|
33
|
+
precedingExpression?: SimpleFunctionExpression | undefined;
|
|
34
|
+
constructor(queryBuilderState: QueryBuilderState, precedingExpression: SimpleFunctionExpression | undefined);
|
|
35
|
+
visit_INTERNAL__UnknownValueSpecification(valueSpecification: INTERNAL__UnknownValueSpecification): void;
|
|
36
|
+
visit_RootGraphFetchTreeInstanceValue(valueSpecification: RootGraphFetchTreeInstanceValue): void;
|
|
37
|
+
visit_PropertyGraphFetchTreeInstanceValue(valueSpecification: PropertyGraphFetchTreeInstanceValue): void;
|
|
38
|
+
visit_AlloySerializationConfigInstanceValue(valueSpecification: AlloySerializationConfigInstanceValue): void;
|
|
39
|
+
visit_PrimitiveInstanceValue(valueSpecification: PrimitiveInstanceValue): void;
|
|
40
|
+
visit_EnumValueInstanceValue(valueSpecification: EnumValueInstanceValue): void;
|
|
41
|
+
visit_RuntimeInstanceValue(valueSpecification: RuntimeInstanceValue): void;
|
|
42
|
+
visit_PairInstanceValue(valueSpecification: PairInstanceValue): void;
|
|
43
|
+
visit_MappingInstanceValue(valueSpecification: MappingInstanceValue): void;
|
|
44
|
+
visit_PureListInstanceValue(valueSpecification: PureListInstanceValue): void;
|
|
45
|
+
visit_CollectionInstanceValue(valueSpecification: CollectionInstanceValue): void;
|
|
46
|
+
visit_FunctionExpression(valueSpecification: FunctionExpression): void;
|
|
47
|
+
visit_INTERNAL__PropagatedValue(valueSpecification: INTERNAL__PropagatedValue): void;
|
|
48
|
+
visit_SimpleFunctionExpression(valueSpecification: SimpleFunctionExpression): void;
|
|
49
|
+
visit_VariableExpression(valueSpecification: VariableExpression): void;
|
|
50
|
+
visit_LambdaFunctionInstanceValue(valueSpecification: LambdaFunctionInstanceValue): void;
|
|
51
|
+
visit_AbstractPropertyExpression(valueSpecification: AbstractPropertyExpression): void;
|
|
52
|
+
visit_InstanceValue(valueSpecification: InstanceValue): void;
|
|
53
|
+
}
|
|
54
|
+
export declare const processQueryParameters: (parameters: VariableExpression[], queryBuilderState: QueryBuilderState) => void;
|
|
55
|
+
export declare const processQueryBuilderLambdaFunction: (queryBuilderState: QueryBuilderState, lambdaFunc: LambdaFunction) => void;
|
|
56
|
+
//# sourceMappingURL=QueryBuilderLambdaProcessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryBuilderLambdaProcessor.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderLambdaProcessor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAeH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAA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