@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,585 @@
|
|
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 {
|
18
|
+
assertNonNullable,
|
19
|
+
assertTrue,
|
20
|
+
assertType,
|
21
|
+
guaranteeType,
|
22
|
+
UnsupportedOperationError,
|
23
|
+
} from '@finos/legend-shared';
|
24
|
+
import type { QueryBuilderState } from './QueryBuilderState.js';
|
25
|
+
import {
|
26
|
+
type AlloySerializationConfigInstanceValue,
|
27
|
+
type EnumValueInstanceValue,
|
28
|
+
type FunctionExpression,
|
29
|
+
type MappingInstanceValue,
|
30
|
+
type PairInstanceValue,
|
31
|
+
type PropertyGraphFetchTreeInstanceValue,
|
32
|
+
type PureListInstanceValue,
|
33
|
+
type RootGraphFetchTreeInstanceValue,
|
34
|
+
type RuntimeInstanceValue,
|
35
|
+
type ValueSpecificationVisitor,
|
36
|
+
type InstanceValue,
|
37
|
+
type INTERNAL__UnknownValueSpecification,
|
38
|
+
type LambdaFunction,
|
39
|
+
MILESTONING_STEREOTYPE,
|
40
|
+
matchFunctionName,
|
41
|
+
Class,
|
42
|
+
type CollectionInstanceValue,
|
43
|
+
type LambdaFunctionInstanceValue,
|
44
|
+
type PrimitiveInstanceValue,
|
45
|
+
SimpleFunctionExpression,
|
46
|
+
type VariableExpression,
|
47
|
+
type AbstractPropertyExpression,
|
48
|
+
getMilestoneTemporalStereotype,
|
49
|
+
type INTERNAL__PropagatedValue,
|
50
|
+
type ValueSpecification,
|
51
|
+
} from '@finos/legend-graph';
|
52
|
+
import { processTDSPostFilterExpression } from './fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.js';
|
53
|
+
import { LambdaParameterState } from '@finos/legend-application';
|
54
|
+
import { processFilterExpression } from './filter/QueryBuilderFilterStateBuilder.js';
|
55
|
+
import {
|
56
|
+
processTDSAggregateExpression,
|
57
|
+
processTDSGroupByExpression,
|
58
|
+
} from './fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.js';
|
59
|
+
import {
|
60
|
+
processGraphFetchExpression,
|
61
|
+
processGraphFetchSerializeExpression,
|
62
|
+
} from './fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js';
|
63
|
+
import {
|
64
|
+
processTDSDistinctExpression,
|
65
|
+
processTDSProjectExpression,
|
66
|
+
processTDSProjectionColumnPropertyExpression,
|
67
|
+
processTDSProjectionDerivationExpression,
|
68
|
+
processTDSSortDirectionExpression,
|
69
|
+
processTDSSortExpression,
|
70
|
+
processTDSTakeExpression,
|
71
|
+
} from './fetch-structure/projection/QueryBuilderProjectionStateBuilder.js';
|
72
|
+
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../graphManager/QueryBuilderSupportedFunctions.js';
|
73
|
+
|
74
|
+
const processGetAllExpression = (
|
75
|
+
expression: SimpleFunctionExpression,
|
76
|
+
queryBuilderState: QueryBuilderState,
|
77
|
+
): void => {
|
78
|
+
const _class = expression.genericType?.value.rawType;
|
79
|
+
assertType(
|
80
|
+
_class,
|
81
|
+
Class,
|
82
|
+
`Can't process getAll() expression: getAll() return type is missing`,
|
83
|
+
);
|
84
|
+
queryBuilderState.setClass(_class);
|
85
|
+
queryBuilderState.milestoningState.updateMilestoningConfiguration();
|
86
|
+
queryBuilderState.explorerState.refreshTreeData();
|
87
|
+
|
88
|
+
// check parameters (milestoning) and build state
|
89
|
+
let acceptedNoOfParameters = 1;
|
90
|
+
const stereotype = getMilestoneTemporalStereotype(
|
91
|
+
_class,
|
92
|
+
queryBuilderState.graphManagerState.graph,
|
93
|
+
);
|
94
|
+
switch (stereotype) {
|
95
|
+
case MILESTONING_STEREOTYPE.BITEMPORAL:
|
96
|
+
acceptedNoOfParameters = 3;
|
97
|
+
assertTrue(
|
98
|
+
expression.parametersValues.length === acceptedNoOfParameters,
|
99
|
+
`Can't process getAll() expression: when used with a bitemporal milestoned class getAll() expects two parameters`,
|
100
|
+
);
|
101
|
+
queryBuilderState.milestoningState.setProcessingDate(
|
102
|
+
expression.parametersValues[1],
|
103
|
+
);
|
104
|
+
queryBuilderState.milestoningState.setBusinessDate(
|
105
|
+
expression.parametersValues[2],
|
106
|
+
);
|
107
|
+
break;
|
108
|
+
case MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL:
|
109
|
+
acceptedNoOfParameters = 2;
|
110
|
+
assertTrue(
|
111
|
+
expression.parametersValues.length === acceptedNoOfParameters,
|
112
|
+
`Can't process getAll() expression: when used with a milestoned class getAll() expects a parameter`,
|
113
|
+
);
|
114
|
+
queryBuilderState.milestoningState.setBusinessDate(
|
115
|
+
expression.parametersValues[1],
|
116
|
+
);
|
117
|
+
break;
|
118
|
+
case MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL:
|
119
|
+
acceptedNoOfParameters = 2;
|
120
|
+
assertTrue(
|
121
|
+
expression.parametersValues.length === acceptedNoOfParameters,
|
122
|
+
`Can't process getAll() expression: when used with a milestoned class getAll() expects a parameter`,
|
123
|
+
);
|
124
|
+
queryBuilderState.milestoningState.setProcessingDate(
|
125
|
+
expression.parametersValues[1],
|
126
|
+
);
|
127
|
+
break;
|
128
|
+
default:
|
129
|
+
assertTrue(
|
130
|
+
expression.parametersValues.length === acceptedNoOfParameters,
|
131
|
+
`Can't process getAll() expression: getAll() expects no arguments`,
|
132
|
+
);
|
133
|
+
}
|
134
|
+
};
|
135
|
+
|
136
|
+
/**
|
137
|
+
* This is the value specification processor (a.k.a state builder) for query builder.
|
138
|
+
*
|
139
|
+
* Unlike value specification builder which takes care of transforming the value specification
|
140
|
+
* from `protocol` to `metamodel`, and doing some (naive) type-inferencing, the processor takes care
|
141
|
+
* of traversing the query, analyzing it to build the query builder state. The processor represents
|
142
|
+
* a particular way we want to look at the query, if the query is not like what the processor
|
143
|
+
* expects, or understands, query builder state could not be built, i.e. the query will be deemed
|
144
|
+
* unsupported by query builder
|
145
|
+
*
|
146
|
+
* NOTE: While traversing the expression, this processor also does a fair amount of
|
147
|
+
* validations and assertions--enough to properly build the state. Unlike the builder,
|
148
|
+
* the processor should NEVER modify the metamodel, just traversing it.
|
149
|
+
*/
|
150
|
+
export class QueryBuilderValueSpecificationProcessor
|
151
|
+
implements ValueSpecificationVisitor<void>
|
152
|
+
{
|
153
|
+
readonly queryBuilderState: QueryBuilderState;
|
154
|
+
/**
|
155
|
+
* A value specification is a tree of value specifications.
|
156
|
+
*
|
157
|
+
* This structure may not intuitively correspond to how we write it in Pure
|
158
|
+
* For example, consider the following expression in Pure:
|
159
|
+
*
|
160
|
+
* | Person.all()->filter(x|$x.age > 0)->project([x|$x.name], ['Name'])->sort([desc('Name')]);
|
161
|
+
*
|
162
|
+
* which is equivalent to the more cryptic version:
|
163
|
+
*
|
164
|
+
* | sort(project(filter(all(Person), x|$x.age > 0), [x|$x.name], ['Name']), [desc('Name')]);
|
165
|
+
*
|
166
|
+
* Hence, the metamodel looks something like this (with some parts redacted)
|
167
|
+
* {
|
168
|
+
* "function": "sort",
|
169
|
+
* "parameters": [
|
170
|
+
* {
|
171
|
+
* "function": "project",
|
172
|
+
* "parameters": [
|
173
|
+
* {
|
174
|
+
* "function": "filter",
|
175
|
+
* "parameters": [
|
176
|
+
* {
|
177
|
+
* "function": "getAll",
|
178
|
+
* ...
|
179
|
+
* },
|
180
|
+
* ... // filter() expression
|
181
|
+
* ]
|
182
|
+
* },
|
183
|
+
* ... // project() expression column and alias
|
184
|
+
* ]
|
185
|
+
* },
|
186
|
+
* {
|
187
|
+
* "_type": "collection",
|
188
|
+
* "values": [
|
189
|
+
* {
|
190
|
+
* "function": "desc",
|
191
|
+
* ... // desc() expression
|
192
|
+
* }
|
193
|
+
* ]
|
194
|
+
* }
|
195
|
+
* ]
|
196
|
+
* }
|
197
|
+
*
|
198
|
+
* The first grammar form is farily declarative in nature and perhaps more intuitive.
|
199
|
+
* We tend to think, in terms of order of running:
|
200
|
+
* all() --> filter() --> project() --> sort()
|
201
|
+
*
|
202
|
+
* However, in reality, when the expression is used or read, the order of traversal is reversed:
|
203
|
+
* sort() --> project() --> filter() --> all()
|
204
|
+
*
|
205
|
+
* Now, in the context of the value specification processor, we need information about preceding
|
206
|
+
* expression in order to validate the usage context of functions, (for example, we want to only
|
207
|
+
* support project() after all() or filter()). In the case of function expression chain,
|
208
|
+
* we have to look at the function expression first parameter. There are some other context,
|
209
|
+
* such as what happens within the second parameter of the sort() expression
|
210
|
+
* in this case, we have the desc() expression, but it's not part of the main expression chain;
|
211
|
+
* however, we need to verify desc() is used within sort(), in this case, we have to record
|
212
|
+
* the parent expression. This is when the following attribute comes into use when processing
|
213
|
+
* value specification.
|
214
|
+
*/
|
215
|
+
readonly parentExpression?: SimpleFunctionExpression | undefined;
|
216
|
+
|
217
|
+
private constructor(
|
218
|
+
queryBuilderState: QueryBuilderState,
|
219
|
+
parentExpression: SimpleFunctionExpression | undefined,
|
220
|
+
) {
|
221
|
+
this.queryBuilderState = queryBuilderState;
|
222
|
+
this.parentExpression = parentExpression;
|
223
|
+
}
|
224
|
+
|
225
|
+
static process(
|
226
|
+
valueSpecification: ValueSpecification,
|
227
|
+
queryBuilderState: QueryBuilderState,
|
228
|
+
): void {
|
229
|
+
valueSpecification.accept_ValueSpecificationVisitor(
|
230
|
+
new QueryBuilderValueSpecificationProcessor(queryBuilderState, undefined),
|
231
|
+
);
|
232
|
+
}
|
233
|
+
|
234
|
+
/**
|
235
|
+
* Process value specification with information about parent function expression
|
236
|
+
* in order to be used in some validation/assertion
|
237
|
+
*/
|
238
|
+
static processChild(
|
239
|
+
valueSpecification: ValueSpecification,
|
240
|
+
parentExpression: SimpleFunctionExpression,
|
241
|
+
queryBuilderState: QueryBuilderState,
|
242
|
+
): void {
|
243
|
+
valueSpecification.accept_ValueSpecificationVisitor(
|
244
|
+
new QueryBuilderValueSpecificationProcessor(
|
245
|
+
queryBuilderState,
|
246
|
+
parentExpression,
|
247
|
+
),
|
248
|
+
);
|
249
|
+
}
|
250
|
+
|
251
|
+
visit_INTERNAL__UnknownValueSpecification(
|
252
|
+
valueSpecification: INTERNAL__UnknownValueSpecification,
|
253
|
+
): void {
|
254
|
+
assertNonNullable(
|
255
|
+
this.parentExpression,
|
256
|
+
`Can't process unknown value: parent expression cannot be retrieved`,
|
257
|
+
);
|
258
|
+
|
259
|
+
if (
|
260
|
+
matchFunctionName(this.parentExpression.functionName, [
|
261
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_PROJECT,
|
262
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_GROUP_BY,
|
263
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_AGG,
|
264
|
+
])
|
265
|
+
) {
|
266
|
+
processTDSProjectionDerivationExpression(
|
267
|
+
valueSpecification,
|
268
|
+
this.parentExpression,
|
269
|
+
this.queryBuilderState,
|
270
|
+
);
|
271
|
+
return;
|
272
|
+
}
|
273
|
+
|
274
|
+
throw new UnsupportedOperationError(
|
275
|
+
`Can't process unknown value with parent expression of function ${this.parentExpression.functionName}()`,
|
276
|
+
);
|
277
|
+
}
|
278
|
+
|
279
|
+
visit_RootGraphFetchTreeInstanceValue(
|
280
|
+
valueSpecification: RootGraphFetchTreeInstanceValue,
|
281
|
+
): void {
|
282
|
+
throw new UnsupportedOperationError();
|
283
|
+
}
|
284
|
+
|
285
|
+
visit_PropertyGraphFetchTreeInstanceValue(
|
286
|
+
valueSpecification: PropertyGraphFetchTreeInstanceValue,
|
287
|
+
): void {
|
288
|
+
throw new UnsupportedOperationError();
|
289
|
+
}
|
290
|
+
|
291
|
+
visit_AlloySerializationConfigInstanceValue(
|
292
|
+
valueSpecification: AlloySerializationConfigInstanceValue,
|
293
|
+
): void {
|
294
|
+
throw new UnsupportedOperationError();
|
295
|
+
}
|
296
|
+
|
297
|
+
visit_PrimitiveInstanceValue(
|
298
|
+
valueSpecification: PrimitiveInstanceValue,
|
299
|
+
): void {
|
300
|
+
throw new UnsupportedOperationError();
|
301
|
+
}
|
302
|
+
|
303
|
+
visit_EnumValueInstanceValue(
|
304
|
+
valueSpecification: EnumValueInstanceValue,
|
305
|
+
): void {
|
306
|
+
throw new UnsupportedOperationError();
|
307
|
+
}
|
308
|
+
|
309
|
+
visit_RuntimeInstanceValue(valueSpecification: RuntimeInstanceValue): void {
|
310
|
+
throw new UnsupportedOperationError();
|
311
|
+
}
|
312
|
+
|
313
|
+
visit_PairInstanceValue(valueSpecification: PairInstanceValue): void {
|
314
|
+
throw new UnsupportedOperationError();
|
315
|
+
}
|
316
|
+
|
317
|
+
visit_MappingInstanceValue(valueSpecification: MappingInstanceValue): void {
|
318
|
+
throw new UnsupportedOperationError();
|
319
|
+
}
|
320
|
+
|
321
|
+
visit_PureListInstanceValue(valueSpecification: PureListInstanceValue): void {
|
322
|
+
throw new UnsupportedOperationError();
|
323
|
+
}
|
324
|
+
|
325
|
+
visit_CollectionInstanceValue(
|
326
|
+
valueSpecification: CollectionInstanceValue,
|
327
|
+
): void {
|
328
|
+
throw new UnsupportedOperationError();
|
329
|
+
}
|
330
|
+
|
331
|
+
visit_FunctionExpression(valueSpecification: FunctionExpression): void {
|
332
|
+
throw new UnsupportedOperationError();
|
333
|
+
}
|
334
|
+
|
335
|
+
visit_INTERNAL__PropagatedValue(
|
336
|
+
valueSpecification: INTERNAL__PropagatedValue,
|
337
|
+
): void {
|
338
|
+
throw new UnsupportedOperationError();
|
339
|
+
}
|
340
|
+
|
341
|
+
visit_SimpleFunctionExpression(
|
342
|
+
valueSpecification: SimpleFunctionExpression,
|
343
|
+
): void {
|
344
|
+
const functionName = valueSpecification.functionName;
|
345
|
+
if (
|
346
|
+
matchFunctionName(functionName, QUERY_BUILDER_SUPPORTED_FUNCTIONS.GET_ALL)
|
347
|
+
) {
|
348
|
+
processGetAllExpression(valueSpecification, this.queryBuilderState);
|
349
|
+
return;
|
350
|
+
} else if (
|
351
|
+
matchFunctionName(functionName, [
|
352
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.FILTER,
|
353
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_FILTER,
|
354
|
+
])
|
355
|
+
) {
|
356
|
+
// NOTE: for filter, since it sometimes can be ambiguous
|
357
|
+
// whether meta::pure::functions::collection::filter() was used
|
358
|
+
// or meta::pure::tds::filter() was used, we have to have custom logic
|
359
|
+
// to determine
|
360
|
+
|
361
|
+
// check parameters
|
362
|
+
assertTrue(
|
363
|
+
valueSpecification.parametersValues.length === 2,
|
364
|
+
`Can't process filter() expression: filter() expects 1 argument`,
|
365
|
+
);
|
366
|
+
|
367
|
+
// check preceding expression
|
368
|
+
const precedingExpression = guaranteeType(
|
369
|
+
valueSpecification.parametersValues[0],
|
370
|
+
SimpleFunctionExpression,
|
371
|
+
`Can't process filter() expression: only support filter() immediately following an expression`,
|
372
|
+
);
|
373
|
+
QueryBuilderValueSpecificationProcessor.process(
|
374
|
+
precedingExpression,
|
375
|
+
this.queryBuilderState,
|
376
|
+
);
|
377
|
+
|
378
|
+
if (
|
379
|
+
matchFunctionName(
|
380
|
+
precedingExpression.functionName,
|
381
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.GET_ALL,
|
382
|
+
)
|
383
|
+
) {
|
384
|
+
assertTrue(
|
385
|
+
matchFunctionName(
|
386
|
+
functionName,
|
387
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.FILTER,
|
388
|
+
),
|
389
|
+
`Can't process filter() expression: only supports ${QUERY_BUILDER_SUPPORTED_FUNCTIONS.FILTER}() immediately following getAll() (got '${functionName}')`,
|
390
|
+
);
|
391
|
+
processFilterExpression(valueSpecification, this.queryBuilderState);
|
392
|
+
return;
|
393
|
+
} else if (
|
394
|
+
matchFunctionName(precedingExpression.functionName, [
|
395
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_PROJECT,
|
396
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_GROUP_BY,
|
397
|
+
])
|
398
|
+
) {
|
399
|
+
assertTrue(
|
400
|
+
matchFunctionName(
|
401
|
+
functionName,
|
402
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_FILTER,
|
403
|
+
),
|
404
|
+
`Can't process post-filter expression: only supports ${QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_FILTER}() immediately following project()/groupBy() (got '${functionName}')`,
|
405
|
+
);
|
406
|
+
processTDSPostFilterExpression(
|
407
|
+
valueSpecification,
|
408
|
+
this.queryBuilderState,
|
409
|
+
);
|
410
|
+
return;
|
411
|
+
} else {
|
412
|
+
throw new UnsupportedOperationError(
|
413
|
+
`Can't process filter() expression: only support filter() immediately following getAll() or project()/groupBy()`,
|
414
|
+
);
|
415
|
+
}
|
416
|
+
} else if (
|
417
|
+
matchFunctionName(
|
418
|
+
functionName,
|
419
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_PROJECT,
|
420
|
+
)
|
421
|
+
) {
|
422
|
+
processTDSProjectExpression(valueSpecification, this.queryBuilderState);
|
423
|
+
return;
|
424
|
+
} else if (
|
425
|
+
matchFunctionName(
|
426
|
+
functionName,
|
427
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_TAKE,
|
428
|
+
)
|
429
|
+
) {
|
430
|
+
processTDSTakeExpression(valueSpecification, this.queryBuilderState);
|
431
|
+
return;
|
432
|
+
} else if (
|
433
|
+
matchFunctionName(
|
434
|
+
functionName,
|
435
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_DISTINCT,
|
436
|
+
)
|
437
|
+
) {
|
438
|
+
processTDSDistinctExpression(valueSpecification, this.queryBuilderState);
|
439
|
+
return;
|
440
|
+
} else if (
|
441
|
+
matchFunctionName(
|
442
|
+
functionName,
|
443
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_SORT,
|
444
|
+
)
|
445
|
+
) {
|
446
|
+
processTDSSortExpression(valueSpecification, this.queryBuilderState);
|
447
|
+
return;
|
448
|
+
} else if (
|
449
|
+
matchFunctionName(functionName, [
|
450
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_ASC,
|
451
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_DESC,
|
452
|
+
])
|
453
|
+
) {
|
454
|
+
processTDSSortDirectionExpression(
|
455
|
+
valueSpecification,
|
456
|
+
this.parentExpression,
|
457
|
+
this.queryBuilderState,
|
458
|
+
);
|
459
|
+
return;
|
460
|
+
} else if (
|
461
|
+
matchFunctionName(
|
462
|
+
functionName,
|
463
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_GROUP_BY,
|
464
|
+
)
|
465
|
+
) {
|
466
|
+
processTDSGroupByExpression(valueSpecification, this.queryBuilderState);
|
467
|
+
return;
|
468
|
+
} else if (
|
469
|
+
matchFunctionName(functionName, QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_AGG)
|
470
|
+
) {
|
471
|
+
processTDSAggregateExpression(
|
472
|
+
valueSpecification,
|
473
|
+
this.parentExpression,
|
474
|
+
this.queryBuilderState,
|
475
|
+
);
|
476
|
+
return;
|
477
|
+
} else if (
|
478
|
+
matchFunctionName(
|
479
|
+
functionName,
|
480
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.SERIALIZE,
|
481
|
+
)
|
482
|
+
) {
|
483
|
+
processGraphFetchSerializeExpression(
|
484
|
+
valueSpecification,
|
485
|
+
this.queryBuilderState,
|
486
|
+
);
|
487
|
+
return;
|
488
|
+
} else if (
|
489
|
+
matchFunctionName(functionName, [
|
490
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.GRAPH_FETCH_CHECKED,
|
491
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.GRAPH_FETCH,
|
492
|
+
])
|
493
|
+
) {
|
494
|
+
processGraphFetchExpression(valueSpecification, this.queryBuilderState);
|
495
|
+
return;
|
496
|
+
}
|
497
|
+
throw new UnsupportedOperationError(
|
498
|
+
`Can't process expression of function ${functionName}()`,
|
499
|
+
);
|
500
|
+
}
|
501
|
+
|
502
|
+
visit_VariableExpression(valueSpecification: VariableExpression): void {
|
503
|
+
throw new UnsupportedOperationError();
|
504
|
+
}
|
505
|
+
|
506
|
+
visit_LambdaFunctionInstanceValue(
|
507
|
+
valueSpecification: LambdaFunctionInstanceValue,
|
508
|
+
): void {
|
509
|
+
valueSpecification.values.forEach((value) =>
|
510
|
+
value.expressionSequence.forEach((expression) =>
|
511
|
+
expression.accept_ValueSpecificationVisitor(
|
512
|
+
new QueryBuilderValueSpecificationProcessor(
|
513
|
+
this.queryBuilderState,
|
514
|
+
this.parentExpression,
|
515
|
+
),
|
516
|
+
),
|
517
|
+
),
|
518
|
+
);
|
519
|
+
}
|
520
|
+
|
521
|
+
visit_AbstractPropertyExpression(
|
522
|
+
valueSpecification: AbstractPropertyExpression,
|
523
|
+
): void {
|
524
|
+
assertNonNullable(
|
525
|
+
this.parentExpression,
|
526
|
+
`Can't process property expression: parent expression cannot be retrieved`,
|
527
|
+
);
|
528
|
+
|
529
|
+
if (
|
530
|
+
matchFunctionName(this.parentExpression.functionName, [
|
531
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_PROJECT,
|
532
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_GROUP_BY,
|
533
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_AGG,
|
534
|
+
])
|
535
|
+
) {
|
536
|
+
processTDSProjectionColumnPropertyExpression(
|
537
|
+
valueSpecification,
|
538
|
+
this.queryBuilderState,
|
539
|
+
);
|
540
|
+
return;
|
541
|
+
}
|
542
|
+
|
543
|
+
throw new UnsupportedOperationError(
|
544
|
+
`Can't process property expression with parent expression of function ${this.parentExpression.functionName}()`,
|
545
|
+
);
|
546
|
+
}
|
547
|
+
|
548
|
+
visit_InstanceValue(valueSpecification: InstanceValue): void {
|
549
|
+
throw new UnsupportedOperationError();
|
550
|
+
}
|
551
|
+
}
|
552
|
+
|
553
|
+
export const processParameters = (
|
554
|
+
parameters: VariableExpression[],
|
555
|
+
queryBuilderState: QueryBuilderState,
|
556
|
+
): void => {
|
557
|
+
const queryParameterState = queryBuilderState.parametersState;
|
558
|
+
parameters.forEach((parameter) => {
|
559
|
+
const parameterState = new LambdaParameterState(
|
560
|
+
parameter,
|
561
|
+
queryBuilderState.observableContext,
|
562
|
+
queryBuilderState.graphManagerState.graph,
|
563
|
+
);
|
564
|
+
parameterState.mockParameterValue();
|
565
|
+
queryParameterState.addParameter(parameterState);
|
566
|
+
});
|
567
|
+
};
|
568
|
+
|
569
|
+
export const processQueryLambdaFunction = (
|
570
|
+
lambdaFunction: LambdaFunction,
|
571
|
+
queryBuilderState: QueryBuilderState,
|
572
|
+
): void => {
|
573
|
+
if (lambdaFunction.functionType.parameters.length) {
|
574
|
+
processParameters(
|
575
|
+
lambdaFunction.functionType.parameters,
|
576
|
+
queryBuilderState,
|
577
|
+
);
|
578
|
+
}
|
579
|
+
lambdaFunction.expressionSequence.map((expression) =>
|
580
|
+
QueryBuilderValueSpecificationProcessor.process(
|
581
|
+
expression,
|
582
|
+
queryBuilderState,
|
583
|
+
),
|
584
|
+
);
|
585
|
+
};
|
@@ -0,0 +1,99 @@
|
|
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 {
|
18
|
+
TEST__getGenericApplicationConfig,
|
19
|
+
TEST__getTestApplicationStore,
|
20
|
+
TEST__LegendApplicationPluginManager,
|
21
|
+
} from '@finos/legend-application';
|
22
|
+
import {
|
23
|
+
type RawLambda,
|
24
|
+
type RawMappingModelCoverageAnalysisResult,
|
25
|
+
TEST__buildGraphWithEntities,
|
26
|
+
TEST__getTestGraphManagerState,
|
27
|
+
} from '@finos/legend-graph';
|
28
|
+
import type { Entity } from '@finos/legend-storage';
|
29
|
+
import { jest } from '@jest/globals';
|
30
|
+
import { flowResult } from 'mobx';
|
31
|
+
import { QueryBuilder_GraphManagerPreset } from '../graphManager/QueryBuilder_GraphManagerPreset.js';
|
32
|
+
import {
|
33
|
+
INTERNAL__BasicQueryBuilderState,
|
34
|
+
type QueryBuilderState,
|
35
|
+
} from './QueryBuilderState.js';
|
36
|
+
|
37
|
+
export const TEST__setUpQueryBuilderState = async (
|
38
|
+
entities: Entity[],
|
39
|
+
rawLambda?: RawLambda | undefined,
|
40
|
+
executionContext?:
|
41
|
+
| {
|
42
|
+
_class: string;
|
43
|
+
mapping: string;
|
44
|
+
runtime?: string | undefined;
|
45
|
+
}
|
46
|
+
| undefined,
|
47
|
+
rawMappingModelCoverageAnalysisResult?:
|
48
|
+
| RawMappingModelCoverageAnalysisResult
|
49
|
+
| undefined,
|
50
|
+
): Promise<QueryBuilderState> => {
|
51
|
+
const pluginManager = TEST__LegendApplicationPluginManager.create();
|
52
|
+
pluginManager.usePresets([new QueryBuilder_GraphManagerPreset()]).install();
|
53
|
+
const applicationStore = TEST__getTestApplicationStore(
|
54
|
+
TEST__getGenericApplicationConfig(),
|
55
|
+
pluginManager,
|
56
|
+
);
|
57
|
+
const graphManagerState = TEST__getTestGraphManagerState(pluginManager);
|
58
|
+
await TEST__buildGraphWithEntities(graphManagerState, entities);
|
59
|
+
const queryBuilderState = new INTERNAL__BasicQueryBuilderState(
|
60
|
+
applicationStore,
|
61
|
+
graphManagerState,
|
62
|
+
);
|
63
|
+
if (rawLambda) {
|
64
|
+
queryBuilderState.rebuildWithQuery(rawLambda);
|
65
|
+
}
|
66
|
+
if (executionContext) {
|
67
|
+
const graph = queryBuilderState.graphManagerState.graph;
|
68
|
+
queryBuilderState.class = graph.getClass(executionContext._class);
|
69
|
+
queryBuilderState.mapping = graph.getMapping(executionContext.mapping);
|
70
|
+
if (executionContext.runtime) {
|
71
|
+
queryBuilderState.runtimeValue = graph.getRuntime(
|
72
|
+
executionContext.runtime,
|
73
|
+
);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
if (rawMappingModelCoverageAnalysisResult) {
|
78
|
+
jest
|
79
|
+
.spyOn(
|
80
|
+
queryBuilderState.graphManagerState.graphManager,
|
81
|
+
'analyzeMappingModelCoverage',
|
82
|
+
)
|
83
|
+
.mockReturnValue(
|
84
|
+
Promise.resolve(
|
85
|
+
queryBuilderState.graphManagerState.graphManager.buildMappingModelCoverageAnalysisResult(
|
86
|
+
rawMappingModelCoverageAnalysisResult,
|
87
|
+
),
|
88
|
+
),
|
89
|
+
);
|
90
|
+
}
|
91
|
+
|
92
|
+
if (rawMappingModelCoverageAnalysisResult) {
|
93
|
+
await flowResult(
|
94
|
+
queryBuilderState.explorerState.analyzeMappingModelCoverage(),
|
95
|
+
);
|
96
|
+
}
|
97
|
+
|
98
|
+
return queryBuilderState;
|
99
|
+
};
|