@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,256 @@
|
|
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
|
+
functionExpression_setParametersValues,
|
19
|
+
propertyExpression_setParametersValue,
|
20
|
+
} from '@finos/legend-application';
|
21
|
+
import {
|
22
|
+
AbstractPropertyExpression,
|
23
|
+
Class,
|
24
|
+
DerivedProperty,
|
25
|
+
getMilestoneTemporalStereotype,
|
26
|
+
INTERNAL__PropagatedValue,
|
27
|
+
matchFunctionName,
|
28
|
+
MILESTONING_STEREOTYPE,
|
29
|
+
SimpleFunctionExpression,
|
30
|
+
TYPICAL_MULTIPLICITY_TYPE,
|
31
|
+
type ValueSpecification,
|
32
|
+
} from '@finos/legend-graph';
|
33
|
+
import {
|
34
|
+
getNullableFirstElement,
|
35
|
+
guaranteeNonNullable,
|
36
|
+
guaranteeType,
|
37
|
+
} from '@finos/legend-shared';
|
38
|
+
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../graphManager/QueryBuilderSupportedFunctions.js';
|
39
|
+
import { getDerivedPropertyMilestoningSteoreotype } from './QueryBuilderPropertyEditorState.js';
|
40
|
+
import type { QueryBuilderState } from './QueryBuilderState.js';
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Checks if the provided property expression match the criteria for default
|
44
|
+
* date propagation so we know whether we need to fill in values for the parameter
|
45
|
+
* or just propgate values from the parent's expression
|
46
|
+
*
|
47
|
+
* NOTE: this takes date propgation into account. See the table below for all
|
48
|
+
* the combination:
|
49
|
+
*
|
50
|
+
* | [source] | | | | |
|
51
|
+
* ----------------------------------------------------------------------
|
52
|
+
* [target] | | NONE | PR_TMP | BI_TMP | BU_TMP |
|
53
|
+
* ----------------------------------------------------------------------
|
54
|
+
* | NONE | N.A. | PRD | PRD,BUD | BUD |
|
55
|
+
* ----------------------------------------------------------------------
|
56
|
+
* | PR_TMP | N.A. | X | PRD,BUD | BUD |
|
57
|
+
* ----------------------------------------------------------------------
|
58
|
+
* | BI_TMP | N.A. | X | X | X |
|
59
|
+
* ----------------------------------------------------------------------
|
60
|
+
* | BU_TMP | N.A. | PRD | PRD,BUD | X |
|
61
|
+
* ----------------------------------------------------------------------
|
62
|
+
*
|
63
|
+
* Annotations:
|
64
|
+
*
|
65
|
+
* [source]: source temporal type
|
66
|
+
* [target]: target temporal type
|
67
|
+
*
|
68
|
+
* PR_TMP : processing temporal
|
69
|
+
* BI_TMP : bitemporal
|
70
|
+
* BU_TMP : business temporal
|
71
|
+
*
|
72
|
+
* X : no default date propagated
|
73
|
+
* PRD : default processing date is propagated
|
74
|
+
* BUD : default business date is propgated
|
75
|
+
*/
|
76
|
+
const isDefaultDatePropagationSupported = (
|
77
|
+
currentPropertyExpression: AbstractPropertyExpression,
|
78
|
+
queryBuilderState: QueryBuilderState,
|
79
|
+
prevPropertyExpression?: AbstractPropertyExpression | undefined,
|
80
|
+
): boolean => {
|
81
|
+
const property = currentPropertyExpression.func;
|
82
|
+
const graph = queryBuilderState.graphManagerState.graph;
|
83
|
+
// Default date propagation is not supported for current expression when the previous property expression is a derived property.
|
84
|
+
if (
|
85
|
+
prevPropertyExpression &&
|
86
|
+
prevPropertyExpression.func instanceof DerivedProperty &&
|
87
|
+
prevPropertyExpression.func._OWNER.derivedProperties.includes(
|
88
|
+
prevPropertyExpression.func,
|
89
|
+
)
|
90
|
+
) {
|
91
|
+
return false;
|
92
|
+
}
|
93
|
+
// Default date propagation is not supported for current expression when the milestonedParameterValues of
|
94
|
+
// the previous property expression doesn't match with the global milestonedParameterValues
|
95
|
+
if (
|
96
|
+
prevPropertyExpression &&
|
97
|
+
prevPropertyExpression.func.genericType.value.rawType instanceof Class
|
98
|
+
) {
|
99
|
+
const milestoningStereotype = getMilestoneTemporalStereotype(
|
100
|
+
prevPropertyExpression.func.genericType.value.rawType,
|
101
|
+
graph,
|
102
|
+
);
|
103
|
+
if (
|
104
|
+
milestoningStereotype &&
|
105
|
+
!prevPropertyExpression.parametersValues
|
106
|
+
.slice(1)
|
107
|
+
.every(
|
108
|
+
(parameterValue) =>
|
109
|
+
parameterValue instanceof INTERNAL__PropagatedValue,
|
110
|
+
)
|
111
|
+
) {
|
112
|
+
return false;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
if (property.genericType.value.rawType instanceof Class) {
|
116
|
+
// the stereotype of source class of current property expression.
|
117
|
+
const sourceStereotype =
|
118
|
+
property instanceof DerivedProperty
|
119
|
+
? getDerivedPropertyMilestoningSteoreotype(property, graph)
|
120
|
+
: undefined;
|
121
|
+
// Default date propagation is always supported if the source is `bitemporal`
|
122
|
+
if (sourceStereotype === MILESTONING_STEREOTYPE.BITEMPORAL) {
|
123
|
+
return true;
|
124
|
+
}
|
125
|
+
// the stereotype (if exists) of the generic type of current property expression.
|
126
|
+
const targetStereotype = getMilestoneTemporalStereotype(
|
127
|
+
property.genericType.value.rawType,
|
128
|
+
graph,
|
129
|
+
);
|
130
|
+
// Default date propagation is supported when stereotype of both source and target matches
|
131
|
+
if (sourceStereotype && targetStereotype) {
|
132
|
+
return sourceStereotype === targetStereotype;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
return false;
|
136
|
+
};
|
137
|
+
|
138
|
+
export const buildPropertyExpressionChain = (
|
139
|
+
propertyExpression: AbstractPropertyExpression,
|
140
|
+
queryBuilderState: QueryBuilderState,
|
141
|
+
/**
|
142
|
+
* As of now, we don't support date propagation for aggregation-class functions
|
143
|
+
* so we have this temporary flag to disable date propagation, there could be other
|
144
|
+
* functions that we need to handle, then we will revise this approach
|
145
|
+
* See https://github.com/finos/legend-studio/issues/1471
|
146
|
+
*/
|
147
|
+
TEMPORARY__disableDatePropagation?: boolean,
|
148
|
+
): ValueSpecification => {
|
149
|
+
const graph = queryBuilderState.graphManagerState.graph;
|
150
|
+
const newPropertyExpression = new AbstractPropertyExpression(
|
151
|
+
'',
|
152
|
+
graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE),
|
153
|
+
);
|
154
|
+
newPropertyExpression.func = propertyExpression.func;
|
155
|
+
newPropertyExpression.parametersValues = propertyExpression.parametersValues;
|
156
|
+
|
157
|
+
let nextExpression: ValueSpecification | undefined;
|
158
|
+
let currentExpression: ValueSpecification | undefined = newPropertyExpression;
|
159
|
+
while (currentExpression instanceof AbstractPropertyExpression) {
|
160
|
+
nextExpression = getNullableFirstElement(
|
161
|
+
currentExpression.parametersValues,
|
162
|
+
);
|
163
|
+
if (nextExpression instanceof AbstractPropertyExpression) {
|
164
|
+
const parameterValue = new AbstractPropertyExpression(
|
165
|
+
'',
|
166
|
+
graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE),
|
167
|
+
);
|
168
|
+
parameterValue.func = nextExpression.func;
|
169
|
+
parameterValue.parametersValues = nextExpression.parametersValues;
|
170
|
+
nextExpression = parameterValue;
|
171
|
+
currentExpression.parametersValues[0] = parameterValue;
|
172
|
+
}
|
173
|
+
if (currentExpression.func instanceof DerivedProperty) {
|
174
|
+
const parameterValues = currentExpression.parametersValues.slice(1);
|
175
|
+
parameterValues.forEach((parameterValue, index) => {
|
176
|
+
if (parameterValue instanceof INTERNAL__PropagatedValue) {
|
177
|
+
// Replace with argumentless derived property expression only when default date propagation is supported
|
178
|
+
if (
|
179
|
+
!TEMPORARY__disableDatePropagation &&
|
180
|
+
isDefaultDatePropagationSupported(
|
181
|
+
guaranteeType(currentExpression, AbstractPropertyExpression),
|
182
|
+
queryBuilderState,
|
183
|
+
nextExpression instanceof AbstractPropertyExpression
|
184
|
+
? nextExpression
|
185
|
+
: undefined,
|
186
|
+
)
|
187
|
+
) {
|
188
|
+
// NOTE: For `bitemporal` property check if the property expression has parameters which are not instance of
|
189
|
+
// `INTERNAL_PropagatedValue` then pass the parameters as user explicitly changed values of either of the parameters.
|
190
|
+
if (
|
191
|
+
(index === 1 &&
|
192
|
+
guaranteeType(currentExpression, AbstractPropertyExpression)
|
193
|
+
.parametersValues.length === 3) ||
|
194
|
+
(index === 0 &&
|
195
|
+
guaranteeType(currentExpression, AbstractPropertyExpression)
|
196
|
+
.parametersValues.length === 3 &&
|
197
|
+
!(
|
198
|
+
guaranteeType(currentExpression, AbstractPropertyExpression)
|
199
|
+
.parametersValues[2] instanceof INTERNAL__PropagatedValue
|
200
|
+
))
|
201
|
+
) {
|
202
|
+
propertyExpression_setParametersValue(
|
203
|
+
guaranteeType(currentExpression, AbstractPropertyExpression),
|
204
|
+
index + 1,
|
205
|
+
parameterValue.getValue(),
|
206
|
+
queryBuilderState.observableContext,
|
207
|
+
);
|
208
|
+
} else {
|
209
|
+
functionExpression_setParametersValues(
|
210
|
+
guaranteeType(currentExpression, AbstractPropertyExpression),
|
211
|
+
[
|
212
|
+
guaranteeNonNullable(
|
213
|
+
guaranteeType(currentExpression, AbstractPropertyExpression)
|
214
|
+
.parametersValues[0],
|
215
|
+
),
|
216
|
+
],
|
217
|
+
queryBuilderState.observableContext,
|
218
|
+
);
|
219
|
+
}
|
220
|
+
} else {
|
221
|
+
propertyExpression_setParametersValue(
|
222
|
+
guaranteeType(currentExpression, AbstractPropertyExpression),
|
223
|
+
index + 1,
|
224
|
+
parameterValue.getValue(),
|
225
|
+
queryBuilderState.observableContext,
|
226
|
+
);
|
227
|
+
}
|
228
|
+
}
|
229
|
+
});
|
230
|
+
}
|
231
|
+
currentExpression = nextExpression;
|
232
|
+
// Take care of chains of subtype (a pattern that is not useful, but we want to support and rectify)
|
233
|
+
// $x.employees->subType(@Person)->subType(@Staff)
|
234
|
+
while (
|
235
|
+
currentExpression instanceof SimpleFunctionExpression &&
|
236
|
+
matchFunctionName(
|
237
|
+
currentExpression.functionName,
|
238
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE,
|
239
|
+
)
|
240
|
+
) {
|
241
|
+
currentExpression = getNullableFirstElement(
|
242
|
+
currentExpression.parametersValues,
|
243
|
+
);
|
244
|
+
}
|
245
|
+
}
|
246
|
+
return newPropertyExpression;
|
247
|
+
};
|
248
|
+
|
249
|
+
export type LambdaFunctionBuilderOption = {
|
250
|
+
/**
|
251
|
+
* Set queryBuilderState to `true` when we construct query for execution within the app.
|
252
|
+
* queryBuilderState will make the lambda function building process overrides several query values, such as the row limit.
|
253
|
+
*/
|
254
|
+
isBuildingExecutionQuery?: boolean | undefined;
|
255
|
+
keepSourceInformation?: boolean | undefined;
|
256
|
+
};
|
@@ -0,0 +1,359 @@
|
|
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
|
+
CORE_PURE_PATH,
|
21
|
+
FunctionType,
|
22
|
+
LambdaFunction,
|
23
|
+
LambdaFunctionInstanceValue,
|
24
|
+
PRIMITIVE_TYPE,
|
25
|
+
TYPICAL_MULTIPLICITY_TYPE,
|
26
|
+
VariableExpression,
|
27
|
+
DATE_FORMAT,
|
28
|
+
DATE_TIME_FORMAT,
|
29
|
+
matchFunctionName,
|
30
|
+
type Type,
|
31
|
+
PrimitiveInstanceValue,
|
32
|
+
EnumValueInstanceValue,
|
33
|
+
SimpleFunctionExpression,
|
34
|
+
type PrimitiveType,
|
35
|
+
type Enumeration,
|
36
|
+
extractElementNameFromPath,
|
37
|
+
AbstractPropertyExpression,
|
38
|
+
isSuperType,
|
39
|
+
Class,
|
40
|
+
getMilestoneTemporalStereotype,
|
41
|
+
DerivedProperty,
|
42
|
+
MILESTONING_STEREOTYPE,
|
43
|
+
} from '@finos/legend-graph';
|
44
|
+
import {
|
45
|
+
addUniqueEntry,
|
46
|
+
guaranteeNonNullable,
|
47
|
+
guaranteeType,
|
48
|
+
isNumber,
|
49
|
+
isString,
|
50
|
+
UnsupportedOperationError,
|
51
|
+
} from '@finos/legend-shared';
|
52
|
+
import { format } from 'date-fns';
|
53
|
+
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../graphManager/QueryBuilderSupportedFunctions.js';
|
54
|
+
import { getDerivedPropertyMilestoningSteoreotype } from './QueryBuilderPropertyEditorState.js';
|
55
|
+
|
56
|
+
export const getNonCollectionValueSpecificationType = (
|
57
|
+
valueSpecification: ValueSpecification,
|
58
|
+
): Type | undefined => {
|
59
|
+
if (valueSpecification instanceof PrimitiveInstanceValue) {
|
60
|
+
return valueSpecification.genericType.value.rawType;
|
61
|
+
} else if (valueSpecification instanceof EnumValueInstanceValue) {
|
62
|
+
return guaranteeNonNullable(valueSpecification.values[0]).value._OWNER;
|
63
|
+
} else if (valueSpecification instanceof VariableExpression) {
|
64
|
+
return valueSpecification.genericType?.value.rawType;
|
65
|
+
} else if (valueSpecification instanceof SimpleFunctionExpression) {
|
66
|
+
return valueSpecification.genericType?.value.rawType;
|
67
|
+
}
|
68
|
+
return undefined;
|
69
|
+
};
|
70
|
+
|
71
|
+
export const getCollectionValueSpecificationType = (
|
72
|
+
graph: PureModel,
|
73
|
+
values: ValueSpecification[],
|
74
|
+
): Type | undefined => {
|
75
|
+
if (values.every((val) => val instanceof PrimitiveInstanceValue)) {
|
76
|
+
const valuePrimitiveTypes: (PrimitiveType | undefined)[] = [];
|
77
|
+
(values as PrimitiveInstanceValue[]).forEach((val) => {
|
78
|
+
const primitiveType = val.genericType.value.rawType;
|
79
|
+
switch (primitiveType.path) {
|
80
|
+
case PRIMITIVE_TYPE.STRING:
|
81
|
+
addUniqueEntry(
|
82
|
+
valuePrimitiveTypes,
|
83
|
+
graph.getPrimitiveType(PRIMITIVE_TYPE.STRING),
|
84
|
+
);
|
85
|
+
break;
|
86
|
+
case PRIMITIVE_TYPE.INTEGER:
|
87
|
+
case PRIMITIVE_TYPE.DECIMAL:
|
88
|
+
case PRIMITIVE_TYPE.FLOAT:
|
89
|
+
case PRIMITIVE_TYPE.NUMBER:
|
90
|
+
addUniqueEntry(
|
91
|
+
valuePrimitiveTypes,
|
92
|
+
graph.getPrimitiveType(PRIMITIVE_TYPE.NUMBER),
|
93
|
+
);
|
94
|
+
break;
|
95
|
+
default:
|
96
|
+
valuePrimitiveTypes.push(undefined);
|
97
|
+
break;
|
98
|
+
}
|
99
|
+
});
|
100
|
+
if (valuePrimitiveTypes.length > 1) {
|
101
|
+
return undefined;
|
102
|
+
}
|
103
|
+
return valuePrimitiveTypes[0] as PrimitiveType;
|
104
|
+
} else if (values.every((val) => val instanceof EnumValueInstanceValue)) {
|
105
|
+
const valueEnumerationTypes: Enumeration[] = [];
|
106
|
+
(values as EnumValueInstanceValue[]).forEach((val) => {
|
107
|
+
addUniqueEntry(
|
108
|
+
valueEnumerationTypes,
|
109
|
+
guaranteeNonNullable(val.values[0]).value._OWNER,
|
110
|
+
);
|
111
|
+
});
|
112
|
+
if (valueEnumerationTypes.length > 1) {
|
113
|
+
return undefined;
|
114
|
+
}
|
115
|
+
return valueEnumerationTypes[0];
|
116
|
+
}
|
117
|
+
return undefined;
|
118
|
+
};
|
119
|
+
|
120
|
+
export const unwrapNotExpression = (
|
121
|
+
expression: SimpleFunctionExpression,
|
122
|
+
): SimpleFunctionExpression | undefined => {
|
123
|
+
if (
|
124
|
+
matchFunctionName(
|
125
|
+
expression.functionName,
|
126
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.NOT,
|
127
|
+
)
|
128
|
+
) {
|
129
|
+
return guaranteeType(
|
130
|
+
expression.parametersValues[0],
|
131
|
+
SimpleFunctionExpression,
|
132
|
+
);
|
133
|
+
}
|
134
|
+
return undefined;
|
135
|
+
};
|
136
|
+
|
137
|
+
export const buildNotExpression = (
|
138
|
+
graph: PureModel,
|
139
|
+
expression: ValueSpecification,
|
140
|
+
): ValueSpecification => {
|
141
|
+
const multiplicityOne = graph.getTypicalMultiplicity(
|
142
|
+
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
143
|
+
);
|
144
|
+
const expressionNot = new SimpleFunctionExpression(
|
145
|
+
extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.NOT),
|
146
|
+
multiplicityOne,
|
147
|
+
);
|
148
|
+
expressionNot.parametersValues.push(expression);
|
149
|
+
return expressionNot;
|
150
|
+
};
|
151
|
+
|
152
|
+
export const isPropertyExpressionChainOptional = (
|
153
|
+
expression: ValueSpecification | undefined,
|
154
|
+
): boolean => {
|
155
|
+
let isOptional = false;
|
156
|
+
let propertyExpression = expression;
|
157
|
+
while (
|
158
|
+
propertyExpression &&
|
159
|
+
propertyExpression instanceof AbstractPropertyExpression
|
160
|
+
) {
|
161
|
+
if (propertyExpression.func.multiplicity.lowerBound === 0) {
|
162
|
+
isOptional = true;
|
163
|
+
break;
|
164
|
+
}
|
165
|
+
propertyExpression = propertyExpression.parametersValues.at(0);
|
166
|
+
while (propertyExpression instanceof SimpleFunctionExpression) {
|
167
|
+
propertyExpression = propertyExpression.parametersValues.at(0);
|
168
|
+
}
|
169
|
+
}
|
170
|
+
return isOptional;
|
171
|
+
};
|
172
|
+
|
173
|
+
export const isTypeCompatibleForAssignment = (
|
174
|
+
type: Type | undefined,
|
175
|
+
assignmentType: Type,
|
176
|
+
): boolean => {
|
177
|
+
const NUMERIC_PRIMITIVE_TYPES = [
|
178
|
+
PRIMITIVE_TYPE.NUMBER,
|
179
|
+
PRIMITIVE_TYPE.INTEGER,
|
180
|
+
PRIMITIVE_TYPE.DECIMAL,
|
181
|
+
PRIMITIVE_TYPE.FLOAT,
|
182
|
+
] as string[];
|
183
|
+
const DATE_PRIMITIVE_TYPES = [
|
184
|
+
PRIMITIVE_TYPE.DATE,
|
185
|
+
PRIMITIVE_TYPE.DATETIME,
|
186
|
+
PRIMITIVE_TYPE.STRICTDATE,
|
187
|
+
PRIMITIVE_TYPE.LATESTDATE,
|
188
|
+
] as string[];
|
189
|
+
|
190
|
+
// When changing the return type for LHS, the RHS value should be adjusted accordingly.
|
191
|
+
return (
|
192
|
+
type !== undefined &&
|
193
|
+
// Numeric value is handled loosely because of autoboxing
|
194
|
+
// e.g. LHS (integer) = RHS (float) is acceptable
|
195
|
+
((NUMERIC_PRIMITIVE_TYPES.includes(type.path) &&
|
196
|
+
NUMERIC_PRIMITIVE_TYPES.includes(assignmentType.path)) ||
|
197
|
+
// Date value is handled loosely as well if the LHS is of type DateTime
|
198
|
+
// This is because we would simulate auto-boxing for date by altering the
|
199
|
+
// Pure function used for the operation
|
200
|
+
// e.g. LHS(DateTime) = RHS(Date) -> we use isOnDay() instead of is()
|
201
|
+
DATE_PRIMITIVE_TYPES.includes(type.path) ||
|
202
|
+
type === assignmentType ||
|
203
|
+
isSuperType(assignmentType, type))
|
204
|
+
);
|
205
|
+
};
|
206
|
+
|
207
|
+
export const generateDefaultValueForPrimitiveType = (
|
208
|
+
type: PRIMITIVE_TYPE,
|
209
|
+
): unknown => {
|
210
|
+
switch (type) {
|
211
|
+
case PRIMITIVE_TYPE.STRING:
|
212
|
+
return '';
|
213
|
+
case PRIMITIVE_TYPE.BOOLEAN:
|
214
|
+
return false;
|
215
|
+
case PRIMITIVE_TYPE.NUMBER:
|
216
|
+
case PRIMITIVE_TYPE.DECIMAL:
|
217
|
+
case PRIMITIVE_TYPE.FLOAT:
|
218
|
+
case PRIMITIVE_TYPE.INTEGER:
|
219
|
+
return 0;
|
220
|
+
case PRIMITIVE_TYPE.DATE:
|
221
|
+
case PRIMITIVE_TYPE.STRICTDATE:
|
222
|
+
return format(new Date(Date.now()), DATE_FORMAT);
|
223
|
+
case PRIMITIVE_TYPE.DATETIME:
|
224
|
+
return format(new Date(Date.now()), DATE_TIME_FORMAT);
|
225
|
+
default:
|
226
|
+
throw new UnsupportedOperationError(
|
227
|
+
`Can't generate default value for primitive type '${type}'`,
|
228
|
+
);
|
229
|
+
}
|
230
|
+
};
|
231
|
+
|
232
|
+
export const buildGenericLambdaFunctionInstanceValue = (
|
233
|
+
lambdaParameterName: string,
|
234
|
+
lambdaBodyExpressions: ValueSpecification[],
|
235
|
+
graph: PureModel,
|
236
|
+
): LambdaFunctionInstanceValue => {
|
237
|
+
const multiplicityOne = graph.getTypicalMultiplicity(
|
238
|
+
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
239
|
+
);
|
240
|
+
const typeAny = graph.getType(CORE_PURE_PATH.ANY);
|
241
|
+
const functionInstanceValue = new LambdaFunctionInstanceValue(
|
242
|
+
multiplicityOne,
|
243
|
+
);
|
244
|
+
const functionType = new FunctionType(typeAny, multiplicityOne);
|
245
|
+
functionType.parameters.push(
|
246
|
+
new VariableExpression(lambdaParameterName, multiplicityOne),
|
247
|
+
);
|
248
|
+
const lambdaFunction = new LambdaFunction(functionType);
|
249
|
+
lambdaFunction.expressionSequence = lambdaBodyExpressions;
|
250
|
+
functionInstanceValue.values.push(lambdaFunction);
|
251
|
+
return functionInstanceValue;
|
252
|
+
};
|
253
|
+
|
254
|
+
/**
|
255
|
+
* Checks if the milestoning property expression is valid in terms of number of parameter values provided
|
256
|
+
* in relation to its milestoning type.
|
257
|
+
*
|
258
|
+
* NOTE: this takes date propgation into account. See the table below for all
|
259
|
+
* the combination:
|
260
|
+
*
|
261
|
+
* | [source] | | | | |
|
262
|
+
* ----------------------------------------------------------------------
|
263
|
+
* [target] | | NONE | PR_TMP | BI_TMP | BU_TMP |
|
264
|
+
* ----------------------------------------------------------------------
|
265
|
+
* | NONE | N.A. | PRD | PRD,BUD | BUD |
|
266
|
+
* ----------------------------------------------------------------------
|
267
|
+
* | PR_TMP | N.A. | X | PRD,BUD | BUD |
|
268
|
+
* ----------------------------------------------------------------------
|
269
|
+
* | BI_TMP | N.A. | X | X | X |
|
270
|
+
* ----------------------------------------------------------------------
|
271
|
+
* | BU_TMP | N.A. | PRD | PRD,BUD | X |
|
272
|
+
* ----------------------------------------------------------------------
|
273
|
+
*
|
274
|
+
* Annotations:
|
275
|
+
*
|
276
|
+
* [source]: source temporal type
|
277
|
+
* [target]: target temporal type
|
278
|
+
*
|
279
|
+
* PR_TMP : processing temporal
|
280
|
+
* BI_TMP : bitemporal
|
281
|
+
* BU_TMP : business temporal
|
282
|
+
*
|
283
|
+
* X : no default date propagated
|
284
|
+
* PRD : default processing date is propagated
|
285
|
+
* BUD : default business date is propgated
|
286
|
+
*/
|
287
|
+
export const validatePropertyExpressionChain = (
|
288
|
+
propertyExpression: AbstractPropertyExpression,
|
289
|
+
graph: PureModel,
|
290
|
+
): void => {
|
291
|
+
if (
|
292
|
+
propertyExpression.func.genericType.value.rawType instanceof Class &&
|
293
|
+
propertyExpression.func._OWNER._generatedMilestonedProperties.length !== 0
|
294
|
+
) {
|
295
|
+
const name = propertyExpression.func.name;
|
296
|
+
const func =
|
297
|
+
propertyExpression.func._OWNER._generatedMilestonedProperties.find(
|
298
|
+
(e) => e.name === name,
|
299
|
+
);
|
300
|
+
if (func) {
|
301
|
+
const targetStereotype = getMilestoneTemporalStereotype(
|
302
|
+
propertyExpression.func.genericType.value.rawType,
|
303
|
+
graph,
|
304
|
+
);
|
305
|
+
|
306
|
+
if (targetStereotype) {
|
307
|
+
const sourceStereotype = getDerivedPropertyMilestoningSteoreotype(
|
308
|
+
guaranteeType(func, DerivedProperty),
|
309
|
+
graph,
|
310
|
+
);
|
311
|
+
if (
|
312
|
+
sourceStereotype !== MILESTONING_STEREOTYPE.BITEMPORAL &&
|
313
|
+
targetStereotype !== sourceStereotype
|
314
|
+
) {
|
315
|
+
if (targetStereotype === MILESTONING_STEREOTYPE.BITEMPORAL) {
|
316
|
+
if (
|
317
|
+
propertyExpression.parametersValues.length !== 3 &&
|
318
|
+
!sourceStereotype
|
319
|
+
) {
|
320
|
+
throw new UnsupportedOperationError(
|
321
|
+
`Property of milestoning sterotype '${MILESTONING_STEREOTYPE.BITEMPORAL}' should have exactly two parameters`,
|
322
|
+
);
|
323
|
+
} else if (propertyExpression.parametersValues.length < 2) {
|
324
|
+
throw new UnsupportedOperationError(
|
325
|
+
`Property of milestoning sterotype '${MILESTONING_STEREOTYPE.BITEMPORAL}' should have at least one parameter`,
|
326
|
+
);
|
327
|
+
} else if (propertyExpression.parametersValues.length > 3) {
|
328
|
+
throw new UnsupportedOperationError(
|
329
|
+
`Property of milestoning sterotype '${MILESTONING_STEREOTYPE.BITEMPORAL}' should not have more than two parameters`,
|
330
|
+
);
|
331
|
+
}
|
332
|
+
} else if (propertyExpression.parametersValues.length !== 2) {
|
333
|
+
throw new UnsupportedOperationError(
|
334
|
+
`Property of milestoning sterotype '${targetStereotype}' should have exactly one parameter`,
|
335
|
+
);
|
336
|
+
}
|
337
|
+
}
|
338
|
+
}
|
339
|
+
}
|
340
|
+
}
|
341
|
+
};
|
342
|
+
|
343
|
+
export const extractNullableStringFromInstanceValue = (
|
344
|
+
value: ValueSpecification,
|
345
|
+
): string | undefined => {
|
346
|
+
if (value instanceof PrimitiveInstanceValue && isString(value.values[0])) {
|
347
|
+
return value.values[0];
|
348
|
+
}
|
349
|
+
return undefined;
|
350
|
+
};
|
351
|
+
|
352
|
+
export const extractNullableNumberFromInstanceValue = (
|
353
|
+
value: ValueSpecification,
|
354
|
+
): number | undefined => {
|
355
|
+
if (value instanceof PrimitiveInstanceValue && isNumber(value.values[0])) {
|
356
|
+
return value.values[0];
|
357
|
+
}
|
358
|
+
return undefined;
|
359
|
+
};
|