@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,145 @@
|
|
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 { action, makeAutoObservable } from 'mobx';
|
18
|
+
import { uuid, deleteEntry, addUniqueEntry } from '@finos/legend-shared';
|
19
|
+
import type { Type } from '@finos/legend-graph';
|
20
|
+
import { DEFAULT_LAMBDA_VARIABLE_NAME } from '../../../QueryBuilderConfig.js';
|
21
|
+
import type { QueryBuilderProjectionState } from '../QueryBuilderProjectionState.js';
|
22
|
+
import type { QueryBuilderAggregateOperator } from './QueryBuilderAggregateOperator.js';
|
23
|
+
import type { QueryBuilderProjectionColumnState } from '../QueryBuilderProjectionColumnState.js';
|
24
|
+
|
25
|
+
export class QueryBuilderAggregateColumnState {
|
26
|
+
readonly uuid = uuid();
|
27
|
+
aggregationState: QueryBuilderAggregationState;
|
28
|
+
projectionColumnState: QueryBuilderProjectionColumnState;
|
29
|
+
lambdaParameterName: string = DEFAULT_LAMBDA_VARIABLE_NAME;
|
30
|
+
operator: QueryBuilderAggregateOperator;
|
31
|
+
|
32
|
+
constructor(
|
33
|
+
aggregationState: QueryBuilderAggregationState,
|
34
|
+
projectionColumnState: QueryBuilderProjectionColumnState,
|
35
|
+
operator: QueryBuilderAggregateOperator,
|
36
|
+
) {
|
37
|
+
makeAutoObservable(this, {
|
38
|
+
uuid: false,
|
39
|
+
aggregationState: false,
|
40
|
+
setColumnState: action,
|
41
|
+
setLambdaParameterName: action,
|
42
|
+
setOperator: action,
|
43
|
+
});
|
44
|
+
|
45
|
+
this.aggregationState = aggregationState;
|
46
|
+
this.projectionColumnState = projectionColumnState;
|
47
|
+
this.operator = operator;
|
48
|
+
}
|
49
|
+
|
50
|
+
get columnName(): string {
|
51
|
+
return this.projectionColumnState.columnName;
|
52
|
+
}
|
53
|
+
|
54
|
+
setColumnState(val: QueryBuilderProjectionColumnState): void {
|
55
|
+
this.projectionColumnState = val;
|
56
|
+
}
|
57
|
+
|
58
|
+
setLambdaParameterName(val: string): void {
|
59
|
+
this.lambdaParameterName = val;
|
60
|
+
}
|
61
|
+
|
62
|
+
setOperator(val: QueryBuilderAggregateOperator): void {
|
63
|
+
this.operator = val;
|
64
|
+
}
|
65
|
+
|
66
|
+
getReturnType(): Type {
|
67
|
+
return this.operator.getReturnType(this);
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
export class QueryBuilderAggregationState {
|
72
|
+
projectionState: QueryBuilderProjectionState;
|
73
|
+
operators: QueryBuilderAggregateOperator[] = [];
|
74
|
+
columns: QueryBuilderAggregateColumnState[] = [];
|
75
|
+
|
76
|
+
constructor(
|
77
|
+
projectionState: QueryBuilderProjectionState,
|
78
|
+
operators: QueryBuilderAggregateOperator[],
|
79
|
+
) {
|
80
|
+
makeAutoObservable(this, {
|
81
|
+
projectionState: false,
|
82
|
+
removeColumn: action,
|
83
|
+
addColumn: action,
|
84
|
+
});
|
85
|
+
|
86
|
+
this.projectionState = projectionState;
|
87
|
+
this.operators = operators;
|
88
|
+
}
|
89
|
+
|
90
|
+
removeColumn(val: QueryBuilderAggregateColumnState): void {
|
91
|
+
deleteEntry(this.columns, val);
|
92
|
+
}
|
93
|
+
|
94
|
+
addColumn(val: QueryBuilderAggregateColumnState): void {
|
95
|
+
addUniqueEntry(this.columns, val);
|
96
|
+
}
|
97
|
+
|
98
|
+
changeColumnAggregateOperator(
|
99
|
+
val: QueryBuilderAggregateOperator | undefined,
|
100
|
+
projectionColumnState: QueryBuilderProjectionColumnState,
|
101
|
+
): void {
|
102
|
+
const aggregateColumnState = this.columns.find(
|
103
|
+
(column) => column.projectionColumnState === projectionColumnState,
|
104
|
+
);
|
105
|
+
const aggreateOperators = this.operators.filter((op) =>
|
106
|
+
op.isCompatibleWithColumn(projectionColumnState),
|
107
|
+
);
|
108
|
+
if (val) {
|
109
|
+
if (!aggreateOperators.includes(val)) {
|
110
|
+
return;
|
111
|
+
}
|
112
|
+
if (aggregateColumnState) {
|
113
|
+
aggregateColumnState.setOperator(val);
|
114
|
+
} else {
|
115
|
+
const newAggregateColumnState = new QueryBuilderAggregateColumnState(
|
116
|
+
this,
|
117
|
+
projectionColumnState,
|
118
|
+
val,
|
119
|
+
);
|
120
|
+
newAggregateColumnState.setOperator(val);
|
121
|
+
this.addColumn(newAggregateColumnState);
|
122
|
+
|
123
|
+
// automatically move the column to the end
|
124
|
+
// as aggregate column should always be the last one
|
125
|
+
// NOTE: unless we do `olap` aggregation
|
126
|
+
// See https://github.com/finos/legend-studio/issues/253
|
127
|
+
this.projectionState.moveColumn(
|
128
|
+
this.projectionState.columns.indexOf(projectionColumnState),
|
129
|
+
this.projectionState.columns.length - 1,
|
130
|
+
);
|
131
|
+
}
|
132
|
+
} else {
|
133
|
+
if (aggregateColumnState) {
|
134
|
+
// automatically move the column to the last position before the aggregate columns
|
135
|
+
// NOTE: `moveColumn` will take care of this placement calculation
|
136
|
+
this.projectionState.moveColumn(
|
137
|
+
this.projectionState.columns.indexOf(projectionColumnState),
|
138
|
+
0,
|
139
|
+
);
|
140
|
+
|
141
|
+
this.removeColumn(aggregateColumnState);
|
142
|
+
}
|
143
|
+
}
|
144
|
+
}
|
145
|
+
}
|
package/src/stores/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.ts
ADDED
@@ -0,0 +1,228 @@
|
|
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
|
+
CollectionInstanceValue,
|
19
|
+
LambdaFunctionInstanceValue,
|
20
|
+
matchFunctionName,
|
21
|
+
SimpleFunctionExpression,
|
22
|
+
VariableExpression,
|
23
|
+
} from '@finos/legend-graph';
|
24
|
+
import {
|
25
|
+
assertTrue,
|
26
|
+
assertType,
|
27
|
+
guaranteeNonNullable,
|
28
|
+
guaranteeType,
|
29
|
+
isNonNullable,
|
30
|
+
returnUndefOnError,
|
31
|
+
UnsupportedOperationError,
|
32
|
+
} from '@finos/legend-shared';
|
33
|
+
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
34
|
+
import type { QueryBuilderState } from '../../../QueryBuilderState.js';
|
35
|
+
import { QueryBuilderValueSpecificationProcessor } from '../../../QueryBuilderStateBuilder.js';
|
36
|
+
import { extractNullableStringFromInstanceValue } from '../../../QueryBuilderValueSpecificationHelper.js';
|
37
|
+
import { FETCH_STRUCTURE_IMPLEMENTATION } from '../../QueryBuilderFetchStructureImplementationState.js';
|
38
|
+
import { QueryBuilderProjectionState } from '../QueryBuilderProjectionState.js';
|
39
|
+
|
40
|
+
export const processTDSAggregateExpression = (
|
41
|
+
expression: SimpleFunctionExpression,
|
42
|
+
parentExpression: SimpleFunctionExpression | undefined,
|
43
|
+
queryBuilderState: QueryBuilderState,
|
44
|
+
): void => {
|
45
|
+
// check parent expression
|
46
|
+
assertTrue(
|
47
|
+
Boolean(
|
48
|
+
parentExpression &&
|
49
|
+
matchFunctionName(
|
50
|
+
parentExpression.functionName,
|
51
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_GROUP_BY,
|
52
|
+
),
|
53
|
+
),
|
54
|
+
`Can't process agg() expression: only support agg() used within a groupBy() expression`,
|
55
|
+
);
|
56
|
+
|
57
|
+
// check parameters
|
58
|
+
assertTrue(
|
59
|
+
expression.parametersValues.length === 2,
|
60
|
+
`Can't process agg() expression: agg() expects 2 arguments`,
|
61
|
+
);
|
62
|
+
|
63
|
+
// process column lambda
|
64
|
+
QueryBuilderValueSpecificationProcessor.processChild(
|
65
|
+
// TODO?: do we want to do more validation here for the shape of the column lambda?
|
66
|
+
guaranteeNonNullable(expression.parametersValues[0]),
|
67
|
+
expression,
|
68
|
+
queryBuilderState,
|
69
|
+
);
|
70
|
+
|
71
|
+
// build state
|
72
|
+
if (
|
73
|
+
queryBuilderState.fetchStructureState.implementation instanceof
|
74
|
+
QueryBuilderProjectionState
|
75
|
+
) {
|
76
|
+
const projectionState =
|
77
|
+
queryBuilderState.fetchStructureState.implementation;
|
78
|
+
const aggregationState = projectionState.aggregationState;
|
79
|
+
// NOTE: since we process agg() expressions one by one, we know that the current agg()
|
80
|
+
// always correspond to the last column projection state, based on our processing procedure
|
81
|
+
const projectionColumnState = guaranteeNonNullable(
|
82
|
+
projectionState.columns[projectionState.columns.length - 1],
|
83
|
+
);
|
84
|
+
const aggregateLambda = expression.parametersValues[1];
|
85
|
+
assertType(
|
86
|
+
aggregateLambda,
|
87
|
+
LambdaFunctionInstanceValue,
|
88
|
+
`Can't process agg() expression: agg() expects argument #1 to be a lambda function`,
|
89
|
+
);
|
90
|
+
|
91
|
+
const lambdaFunc = guaranteeNonNullable(
|
92
|
+
aggregateLambda.values[0],
|
93
|
+
`Can't process agg() lambda: agg() lambda function is missing`,
|
94
|
+
);
|
95
|
+
assertTrue(
|
96
|
+
lambdaFunc.expressionSequence.length === 1,
|
97
|
+
`Can't process agg() lambda: only support agg() lambda body with 1 expression`,
|
98
|
+
);
|
99
|
+
const aggregateColumnExpression = guaranteeType(
|
100
|
+
lambdaFunc.expressionSequence[0],
|
101
|
+
SimpleFunctionExpression,
|
102
|
+
`Can't process agg() lambda: only support agg() lambda body with 1 expression`,
|
103
|
+
);
|
104
|
+
|
105
|
+
assertTrue(
|
106
|
+
lambdaFunc.functionType.parameters.length === 1,
|
107
|
+
`Can't process agg() lambda: only support agg() lambda with 1 parameter`,
|
108
|
+
);
|
109
|
+
|
110
|
+
const lambdaParam = guaranteeType(
|
111
|
+
lambdaFunc.functionType.parameters[0],
|
112
|
+
VariableExpression,
|
113
|
+
`Can't process agg() lambda: only support agg() lambda with 1 parameter`,
|
114
|
+
);
|
115
|
+
|
116
|
+
for (const operator of aggregationState.operators) {
|
117
|
+
// NOTE: this allow plugin author to either return `undefined` or throw error
|
118
|
+
// if there is a problem with building the lambda. Either case, the plugin is
|
119
|
+
// considered as not supporting the lambda.
|
120
|
+
const aggregateColumnState = returnUndefOnError(() =>
|
121
|
+
operator.buildAggregateColumnState(
|
122
|
+
aggregateColumnExpression,
|
123
|
+
lambdaParam,
|
124
|
+
projectionColumnState,
|
125
|
+
),
|
126
|
+
);
|
127
|
+
if (aggregateColumnState) {
|
128
|
+
aggregationState.addColumn(aggregateColumnState);
|
129
|
+
return;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
throw new UnsupportedOperationError(
|
133
|
+
`Can't process aggregate expression function: no compatible aggregate operator processer available from plugins`,
|
134
|
+
);
|
135
|
+
}
|
136
|
+
};
|
137
|
+
|
138
|
+
export const processTDSGroupByExpression = (
|
139
|
+
expression: SimpleFunctionExpression,
|
140
|
+
queryBuilderState: QueryBuilderState,
|
141
|
+
): void => {
|
142
|
+
// update fetch-structure
|
143
|
+
queryBuilderState.fetchStructureState.changeImplementation(
|
144
|
+
FETCH_STRUCTURE_IMPLEMENTATION.PROJECTION,
|
145
|
+
);
|
146
|
+
|
147
|
+
// check parameters
|
148
|
+
assertTrue(
|
149
|
+
expression.parametersValues.length === 4,
|
150
|
+
`Can't process groupBy() expression: groupBy() expects 3 arguments`,
|
151
|
+
);
|
152
|
+
|
153
|
+
// check preceding expression
|
154
|
+
const precedingExpression = guaranteeType(
|
155
|
+
expression.parametersValues[0],
|
156
|
+
SimpleFunctionExpression,
|
157
|
+
`Can't process groupBy() expression: only support groupBy() immediately following an expression`,
|
158
|
+
);
|
159
|
+
assertTrue(
|
160
|
+
matchFunctionName(precedingExpression.functionName, [
|
161
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.GET_ALL,
|
162
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.FILTER,
|
163
|
+
]),
|
164
|
+
`Can't process groupBy() expression: only support groupBy() immediately following either getAll() or filter()`,
|
165
|
+
);
|
166
|
+
QueryBuilderValueSpecificationProcessor.process(
|
167
|
+
precedingExpression,
|
168
|
+
queryBuilderState,
|
169
|
+
);
|
170
|
+
|
171
|
+
// process columns
|
172
|
+
const columnExpressions = expression.parametersValues[1];
|
173
|
+
assertType(
|
174
|
+
columnExpressions,
|
175
|
+
CollectionInstanceValue,
|
176
|
+
`Can't process groupBy() expression: groupBy() expects argument #1 to be a collection`,
|
177
|
+
);
|
178
|
+
columnExpressions.values.map((value) =>
|
179
|
+
QueryBuilderValueSpecificationProcessor.processChild(
|
180
|
+
value,
|
181
|
+
expression,
|
182
|
+
queryBuilderState,
|
183
|
+
),
|
184
|
+
);
|
185
|
+
|
186
|
+
// process aggregations
|
187
|
+
const aggregateLambdas = expression.parametersValues[2];
|
188
|
+
assertType(
|
189
|
+
aggregateLambdas,
|
190
|
+
CollectionInstanceValue,
|
191
|
+
`Can't process groupBy() expression: groupBy() expects argument #2 to be a collection`,
|
192
|
+
);
|
193
|
+
aggregateLambdas.values.map((value) =>
|
194
|
+
QueryBuilderValueSpecificationProcessor.processChild(
|
195
|
+
value,
|
196
|
+
expression,
|
197
|
+
queryBuilderState,
|
198
|
+
),
|
199
|
+
);
|
200
|
+
|
201
|
+
// process column aliases
|
202
|
+
const columnAliases = expression.parametersValues[3];
|
203
|
+
assertType(
|
204
|
+
columnAliases,
|
205
|
+
CollectionInstanceValue,
|
206
|
+
`Can't process groupBy() expression: groupBy() expects argument #3 to be a collection`,
|
207
|
+
);
|
208
|
+
assertTrue(
|
209
|
+
columnAliases.values.length ===
|
210
|
+
columnExpressions.values.length + aggregateLambdas.values.length,
|
211
|
+
`Can't process groupBy() expression: number of aliases does not match the number of columns`,
|
212
|
+
);
|
213
|
+
const aliases = columnAliases.values
|
214
|
+
.map(extractNullableStringFromInstanceValue)
|
215
|
+
.filter(isNonNullable);
|
216
|
+
|
217
|
+
// build state
|
218
|
+
if (
|
219
|
+
queryBuilderState.fetchStructureState.implementation instanceof
|
220
|
+
QueryBuilderProjectionState
|
221
|
+
) {
|
222
|
+
const projectionState =
|
223
|
+
queryBuilderState.fetchStructureState.implementation;
|
224
|
+
projectionState.columns.forEach((column, idx) =>
|
225
|
+
column.setColumnName(aliases[idx] as string),
|
226
|
+
);
|
227
|
+
}
|
228
|
+
};
|
@@ -0,0 +1,109 @@
|
|
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
|
+
type PureModel,
|
19
|
+
type ValueSpecification,
|
20
|
+
SimpleFunctionExpression,
|
21
|
+
extractElementNameFromPath,
|
22
|
+
matchFunctionName,
|
23
|
+
VariableExpression,
|
24
|
+
TYPICAL_MULTIPLICITY_TYPE,
|
25
|
+
} from '@finos/legend-graph';
|
26
|
+
import { guaranteeType, assertTrue } from '@finos/legend-shared';
|
27
|
+
import { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
|
28
|
+
import type { QueryBuilderProjectionColumnState } from '../../QueryBuilderProjectionColumnState.js';
|
29
|
+
import type { QueryBuilderAggregateOperator } from '../QueryBuilderAggregateOperator.js';
|
30
|
+
|
31
|
+
export const buildAggregateExpression = (
|
32
|
+
operatorFunctionFullPath: string,
|
33
|
+
graph: PureModel,
|
34
|
+
variableName: string,
|
35
|
+
): ValueSpecification => {
|
36
|
+
const multiplicityOne = graph.getTypicalMultiplicity(
|
37
|
+
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
38
|
+
);
|
39
|
+
const expression = new SimpleFunctionExpression(
|
40
|
+
extractElementNameFromPath(operatorFunctionFullPath),
|
41
|
+
multiplicityOne,
|
42
|
+
);
|
43
|
+
expression.parametersValues.push(
|
44
|
+
new VariableExpression(variableName, multiplicityOne),
|
45
|
+
);
|
46
|
+
return expression;
|
47
|
+
};
|
48
|
+
|
49
|
+
export const buildAggregateColumnState = (
|
50
|
+
projectionColumnState: QueryBuilderProjectionColumnState,
|
51
|
+
lambdaParam: VariableExpression,
|
52
|
+
expression: SimpleFunctionExpression,
|
53
|
+
operatorFunctionFullPath: string,
|
54
|
+
operator: QueryBuilderAggregateOperator,
|
55
|
+
): QueryBuilderAggregateColumnState | undefined => {
|
56
|
+
if (matchFunctionName(expression.functionName, operatorFunctionFullPath)) {
|
57
|
+
const aggregateColumnState = new QueryBuilderAggregateColumnState(
|
58
|
+
projectionColumnState.projectionState.aggregationState,
|
59
|
+
projectionColumnState,
|
60
|
+
operator,
|
61
|
+
);
|
62
|
+
aggregateColumnState.setLambdaParameterName(lambdaParam.name);
|
63
|
+
|
64
|
+
assertTrue(
|
65
|
+
expression.parametersValues.length === 1,
|
66
|
+
`Can't process ${extractElementNameFromPath(
|
67
|
+
operatorFunctionFullPath,
|
68
|
+
)}() expression: ${extractElementNameFromPath(
|
69
|
+
operatorFunctionFullPath,
|
70
|
+
)}() expects no argument`,
|
71
|
+
);
|
72
|
+
|
73
|
+
// variable
|
74
|
+
const variableExpression = guaranteeType(
|
75
|
+
expression.parametersValues[0],
|
76
|
+
VariableExpression,
|
77
|
+
`Can't process ${extractElementNameFromPath(
|
78
|
+
operatorFunctionFullPath,
|
79
|
+
)}() expression: only support ${extractElementNameFromPath(
|
80
|
+
operatorFunctionFullPath,
|
81
|
+
)}() immediately following a variable expression`,
|
82
|
+
);
|
83
|
+
assertTrue(
|
84
|
+
aggregateColumnState.lambdaParameterName === variableExpression.name,
|
85
|
+
`Can't process ${extractElementNameFromPath(
|
86
|
+
operatorFunctionFullPath,
|
87
|
+
)}() expression: expects variable used in lambda body '${
|
88
|
+
variableExpression.name
|
89
|
+
}' to match lambda parameter '${
|
90
|
+
aggregateColumnState.lambdaParameterName
|
91
|
+
}'`,
|
92
|
+
);
|
93
|
+
|
94
|
+
// operator
|
95
|
+
assertTrue(
|
96
|
+
operator.isCompatibleWithColumn(
|
97
|
+
aggregateColumnState.projectionColumnState,
|
98
|
+
),
|
99
|
+
`Can't process ${extractElementNameFromPath(
|
100
|
+
operatorFunctionFullPath,
|
101
|
+
)}() expression: property is not compatible with operator`,
|
102
|
+
);
|
103
|
+
aggregateColumnState.setOperator(operator);
|
104
|
+
|
105
|
+
return aggregateColumnState;
|
106
|
+
}
|
107
|
+
|
108
|
+
return undefined;
|
109
|
+
};
|
@@ -0,0 +1,98 @@
|
|
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
|
+
PRIMITIVE_TYPE,
|
19
|
+
type ValueSpecification,
|
20
|
+
type SimpleFunctionExpression,
|
21
|
+
type VariableExpression,
|
22
|
+
type PureModel,
|
23
|
+
type AbstractPropertyExpression,
|
24
|
+
type Type,
|
25
|
+
} from '@finos/legend-graph';
|
26
|
+
import type { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
|
27
|
+
import { QueryBuilderAggregateOperator } from '../QueryBuilderAggregateOperator.js';
|
28
|
+
import {
|
29
|
+
type QueryBuilderProjectionColumnState,
|
30
|
+
QueryBuilderSimpleProjectionColumnState,
|
31
|
+
} from '../../QueryBuilderProjectionColumnState.js';
|
32
|
+
import {
|
33
|
+
buildAggregateColumnState,
|
34
|
+
buildAggregateExpression,
|
35
|
+
} from './QueryBuilderAggregateOperatorHelper.js';
|
36
|
+
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
37
|
+
|
38
|
+
export class QueryBuilderAggregateOperator_Average extends QueryBuilderAggregateOperator {
|
39
|
+
getLabel(projectionColumnState: QueryBuilderProjectionColumnState): string {
|
40
|
+
return 'average';
|
41
|
+
}
|
42
|
+
|
43
|
+
isCompatibleWithColumn(
|
44
|
+
projectionColumnState: QueryBuilderProjectionColumnState,
|
45
|
+
): boolean {
|
46
|
+
if (
|
47
|
+
projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState
|
48
|
+
) {
|
49
|
+
const propertyType =
|
50
|
+
projectionColumnState.propertyExpressionState.propertyExpression.func
|
51
|
+
.genericType.value.rawType;
|
52
|
+
return (
|
53
|
+
[
|
54
|
+
PRIMITIVE_TYPE.NUMBER,
|
55
|
+
PRIMITIVE_TYPE.INTEGER,
|
56
|
+
PRIMITIVE_TYPE.DECIMAL,
|
57
|
+
PRIMITIVE_TYPE.FLOAT,
|
58
|
+
] as string[]
|
59
|
+
).includes(propertyType.path);
|
60
|
+
}
|
61
|
+
return true;
|
62
|
+
}
|
63
|
+
|
64
|
+
buildAggregateExpression(
|
65
|
+
propertyExpression: AbstractPropertyExpression | undefined,
|
66
|
+
variableName: string,
|
67
|
+
graph: PureModel,
|
68
|
+
): ValueSpecification {
|
69
|
+
return buildAggregateExpression(
|
70
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.AVERAGE,
|
71
|
+
graph,
|
72
|
+
variableName,
|
73
|
+
);
|
74
|
+
}
|
75
|
+
|
76
|
+
buildAggregateColumnState(
|
77
|
+
expression: SimpleFunctionExpression,
|
78
|
+
lambdaParam: VariableExpression,
|
79
|
+
projectionColumnState: QueryBuilderProjectionColumnState,
|
80
|
+
): QueryBuilderAggregateColumnState | undefined {
|
81
|
+
return buildAggregateColumnState(
|
82
|
+
projectionColumnState,
|
83
|
+
lambdaParam,
|
84
|
+
expression,
|
85
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.AVERAGE,
|
86
|
+
this,
|
87
|
+
);
|
88
|
+
}
|
89
|
+
|
90
|
+
override getReturnType(
|
91
|
+
aggregateColumnState: QueryBuilderAggregateColumnState,
|
92
|
+
): Type {
|
93
|
+
const graph =
|
94
|
+
aggregateColumnState.aggregationState.projectionState.queryBuilderState
|
95
|
+
.graphManagerState.graph;
|
96
|
+
return graph.getType(PRIMITIVE_TYPE.FLOAT);
|
97
|
+
}
|
98
|
+
}
|
@@ -0,0 +1,106 @@
|
|
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
|
+
PRIMITIVE_TYPE,
|
19
|
+
type Type,
|
20
|
+
type ValueSpecification,
|
21
|
+
type SimpleFunctionExpression,
|
22
|
+
type VariableExpression,
|
23
|
+
type PureModel,
|
24
|
+
type AbstractPropertyExpression,
|
25
|
+
Enumeration,
|
26
|
+
} from '@finos/legend-graph';
|
27
|
+
import type { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js';
|
28
|
+
import { QueryBuilderAggregateOperator } from '../QueryBuilderAggregateOperator.js';
|
29
|
+
import {
|
30
|
+
type QueryBuilderProjectionColumnState,
|
31
|
+
QueryBuilderSimpleProjectionColumnState,
|
32
|
+
} from '../../QueryBuilderProjectionColumnState.js';
|
33
|
+
import {
|
34
|
+
buildAggregateColumnState,
|
35
|
+
buildAggregateExpression,
|
36
|
+
} from './QueryBuilderAggregateOperatorHelper.js';
|
37
|
+
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
38
|
+
|
39
|
+
export class QueryBuilderAggregateOperator_Count extends QueryBuilderAggregateOperator {
|
40
|
+
getLabel(projectionColumnState: QueryBuilderProjectionColumnState): string {
|
41
|
+
return 'count';
|
42
|
+
}
|
43
|
+
|
44
|
+
isCompatibleWithColumn(
|
45
|
+
projectionColumnState: QueryBuilderProjectionColumnState,
|
46
|
+
): boolean {
|
47
|
+
if (
|
48
|
+
projectionColumnState instanceof QueryBuilderSimpleProjectionColumnState
|
49
|
+
) {
|
50
|
+
const propertyType =
|
51
|
+
projectionColumnState.propertyExpressionState.propertyExpression.func
|
52
|
+
.genericType.value.rawType;
|
53
|
+
return (
|
54
|
+
(
|
55
|
+
[
|
56
|
+
PRIMITIVE_TYPE.STRING,
|
57
|
+
PRIMITIVE_TYPE.BOOLEAN,
|
58
|
+
PRIMITIVE_TYPE.NUMBER,
|
59
|
+
PRIMITIVE_TYPE.INTEGER,
|
60
|
+
PRIMITIVE_TYPE.DECIMAL,
|
61
|
+
PRIMITIVE_TYPE.FLOAT,
|
62
|
+
PRIMITIVE_TYPE.DATE,
|
63
|
+
PRIMITIVE_TYPE.STRICTDATE,
|
64
|
+
PRIMITIVE_TYPE.DATETIME,
|
65
|
+
] as string[]
|
66
|
+
).includes(propertyType.path) || propertyType instanceof Enumeration
|
67
|
+
);
|
68
|
+
}
|
69
|
+
return true;
|
70
|
+
}
|
71
|
+
|
72
|
+
buildAggregateExpression(
|
73
|
+
propertyExpression: AbstractPropertyExpression | undefined,
|
74
|
+
variableName: string,
|
75
|
+
graph: PureModel,
|
76
|
+
): ValueSpecification {
|
77
|
+
return buildAggregateExpression(
|
78
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.COUNT,
|
79
|
+
graph,
|
80
|
+
variableName,
|
81
|
+
);
|
82
|
+
}
|
83
|
+
|
84
|
+
buildAggregateColumnState(
|
85
|
+
expression: SimpleFunctionExpression,
|
86
|
+
lambdaParam: VariableExpression,
|
87
|
+
projectionColumnState: QueryBuilderProjectionColumnState,
|
88
|
+
): QueryBuilderAggregateColumnState | undefined {
|
89
|
+
return buildAggregateColumnState(
|
90
|
+
projectionColumnState,
|
91
|
+
lambdaParam,
|
92
|
+
expression,
|
93
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.COUNT,
|
94
|
+
this,
|
95
|
+
);
|
96
|
+
}
|
97
|
+
|
98
|
+
override getReturnType(
|
99
|
+
aggregateColumnState: QueryBuilderAggregateColumnState,
|
100
|
+
): Type {
|
101
|
+
const graph =
|
102
|
+
aggregateColumnState.aggregationState.projectionState.queryBuilderState
|
103
|
+
.graphManagerState.graph;
|
104
|
+
return graph.getType(PRIMITIVE_TYPE.INTEGER);
|
105
|
+
}
|
106
|
+
}
|