@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 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderPreviewDataHelper.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderPreviewDataHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,qCAAqC,EAAE,MAAM,6FAA6F,CAAC;AACpJ,OAAO,EAAE,mCAAmC,EAAE,MAAM,2FAA2F,CAAC;AAChJ,OAAO,EAAE,2CAA2C,EAAE,MAAM,mGAAmG,CAAC;AAChK,OAAO,EAAE,iCAAiC,EAAE,MAAM,yFAAyF,CAAC;AAC5I,OAAO,EAAE,iCAAiC,EAAE,MAAM,yFAAyF,CAAC;AAC5I,OAAO,EAAE,+CAA+C,EAAE,MAAM,uGAAuG,CAAC;AACxK,OAAO,EAAE,2CAA2C,EAAE,MAAM,mGAAmG,CAAC;AAChK,OAAO,EAAE,iCAAiC,EAAE,MAAM,yFAAyF,CAAC;AAC5I,OAAO,EAAE,uCAAuC,EAAE,MAAM,mEAAmE,CAAC;AAE5H,OAAO,EACL,gBAAgB,EAChB,eAAe,GAChB,MAAM,6DAA6D,CAAC;AAErE,OAAO,EAAE,2BAA2B,EAAE,MAAM,6DAA6D,CAAC;AAE1G,MAAM,uBAAuB,GAAG,EAAE,CAAC;AACnC,MAAM,0CAA0C,GAAG,OAAO,C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AAkC,EAAE,CAAC;IAC5E,MAAM,eAAe,GAAG,aAAa,CACnC,YAAY,CAAC,mBAAmB,CAAC,cAAc,EAC/C,2BAA2B,CAC5B,CAAC;IACF,MAAM,uBAAuB,GAAG,4BAA4B,CAC1D,eAAe,EACf,kBAAkB,EAClB,0CAA0C,CAC3C,CAAC;IACF,MAAM,yBAAyB,GAAG,4BAA4B,CAC5D,eAAe,EACf,kBAAkB,EAClB,0CAA0C,CAC3C,CAAC;IACF,eAAe,CAAC,OAAO,GAAG;QACxB,uBAAuB;QACvB,yBAAyB;KAC1B,CAAC;IACF,MAAM,eAAe,GAAG,oBAAoB,CAC1C,eAAe,CAAC,gBAAgB,CAAC,SAAS,CAAC,IAAI,CAC7C,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,YAAY,mCAAmC,CACxD,CACF,CAAC;IACF,eAAe,CAAC,gBAAgB,CAAC,6BAA6B,CAC5D,eAAe,EACf,yBAAyB,CAC1B,CAAC;IACF,aAAa;IACb,eAAe,CAAC,sBAAsB,CAAC,KAAK,GAAG,uBAAuB,CAAC;IACvE,MAAM,cAAc,GAAG,IAAI,eAAe,CAAC,yBAAyB,CAAC,CAAC;IACtE,cAAc,CAAC,QAAQ,GAAG,gBAAgB,CAAC,IAAI,CAAC;IAChD,eAAe,CAAC,sBAAsB,CAAC,WAAW,GAAG;QACnD,cAAc;QACd,IAAI,eAAe,CAAC,uBAAuB,CAAC;KAC7C,CAAC;IACF,OAAO,YAAY,CAAC,WAAW,CAAC,uBAAuB,EAAE,CAAC;AAC5D,CAAC,CAAC"}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
import { type AbstractProperty, type ValueSpecification, type PureModel, AbstractPropertyExpression, DerivedProperty, VariableExpression, MILESTONING_STEREOTYPE } from '@finos/legend-graph';
|
17
|
+
import type { QueryBuilderState } from './QueryBuilderState.js';
|
18
|
+
export declare const getDerivedPropertyMilestoningSteoreotype: (property: DerivedProperty, graph: PureModel) => MILESTONING_STEREOTYPE | undefined;
|
19
|
+
export declare const prettyPropertyName: (value: string) => string;
|
20
|
+
/**
|
21
|
+
* Generate a parameter value for the derived property given the index if the property is milestoned.
|
22
|
+
*
|
23
|
+
* This method considers different scenarios for milestoning and take into account date propagation
|
24
|
+
* See https://github.com/finos/legend-studio/pull/891
|
25
|
+
*/
|
26
|
+
export declare const generateMilestonedPropertyParameterValue: (derivedPropertyExpressionState: QueryBuilderDerivedPropertyExpressionState, idx: number) => ValueSpecification | undefined;
|
27
|
+
export declare const getPropertyChainName: (propertyExpression: AbstractPropertyExpression, humanizePropertyName: boolean) => string;
|
28
|
+
export declare const getPropertyPath: (propertyExpression: AbstractPropertyExpression) => string;
|
29
|
+
export declare const generateValueSpecificationForParameter: (parameter: VariableExpression, graph: PureModel) => ValueSpecification;
|
30
|
+
export declare class QueryBuilderDerivedPropertyExpressionState {
|
31
|
+
queryBuilderState: QueryBuilderState;
|
32
|
+
path: string;
|
33
|
+
title: string;
|
34
|
+
readonly propertyExpression: AbstractPropertyExpression;
|
35
|
+
readonly derivedProperty: DerivedProperty;
|
36
|
+
readonly parameters: VariableExpression[];
|
37
|
+
constructor(queryBuilderState: QueryBuilderState, propertyExpression: AbstractPropertyExpression);
|
38
|
+
get property(): AbstractProperty;
|
39
|
+
get parameterValues(): ValueSpecification[];
|
40
|
+
get isValid(): boolean;
|
41
|
+
}
|
42
|
+
export declare class QueryBuilderPropertyExpressionState {
|
43
|
+
queryBuilderState: QueryBuilderState;
|
44
|
+
path: string;
|
45
|
+
title: string;
|
46
|
+
readonly propertyExpression: AbstractPropertyExpression;
|
47
|
+
isEditingDerivedPropertyExpression: boolean;
|
48
|
+
derivedPropertyExpressionStates: QueryBuilderDerivedPropertyExpressionState[];
|
49
|
+
/**
|
50
|
+
* If at least one property in the chain is of multiplicity greater than 1,
|
51
|
+
* the property might have multiple values and can cause row explosions.
|
52
|
+
*
|
53
|
+
* In other words, saying `$x.b == 1` is not quite accurate if `$x.b` is multi
|
54
|
+
* is multi. Instead, we should do something like `$x.b->exists($x1 | $x1 == 1)`
|
55
|
+
*/
|
56
|
+
requiresExistsHandling: boolean;
|
57
|
+
constructor(queryBuilderState: QueryBuilderState, propertyExpression: AbstractPropertyExpression);
|
58
|
+
get isValid(): boolean;
|
59
|
+
setIsEditingDerivedProperty(val: boolean): void;
|
60
|
+
private initDerivedPropertyExpressionStates;
|
61
|
+
}
|
62
|
+
//# sourceMappingURL=QueryBuilderPropertyEditorState.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderPropertyEditorState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderPropertyEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,OAAO,EAEL,KAAK,gBAAgB,EAErB,KAAK,kBAAkB,EACvB,KAAK,SAAS,EAGd,0BAA0B,EAC1B,eAAe,EAOf,kBAAkB,EAElB,sBAAsB,EAYvB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAKhE,eAAO,MAAM,wCAAwC,aACzC,eAAe,SAClB,SAAS,KACf,sBAAsB,GAAG,SAiB3B,CAAC;AAyDF,eAAO,MAAM,kBAAkB,UAAW,MAAM,KAAG,MACmB,CAAC;AAEvE;;;;;GAK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
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
import { action, makeAutoObservable } from 'mobx';
|
17
|
+
import { getNullableFirstElement, guaranteeNonNullable, guaranteeType, isCamelCase, prettyCamelCase, prettyCONSTName, } from '@finos/legend-shared';
|
18
|
+
import { Class, TYPICAL_MULTIPLICITY_TYPE, CollectionInstanceValue, AbstractPropertyExpression, DerivedProperty, Enumeration, EnumValueExplicitReference, EnumValueInstanceValue, InstanceValue, PrimitiveInstanceValue, PRIMITIVE_TYPE, VariableExpression, getMilestoneTemporalStereotype, MILESTONING_STEREOTYPE, SimpleFunctionExpression, matchFunctionName, TYPE_CAST_TOKEN, observe_AbstractPropertyExpression, GenericTypeExplicitReference, GenericType, DEFAULT_BUSINESS_DATE_MILESTONING_PARAMETER_NAME, DEFAULT_PROCESSING_DATE_MILESTONING_PARAMETER_NAME, INTERNAL__PropagatedValue, Association, getGeneratedMilestonedPropertiesForAssociation, } from '@finos/legend-graph';
|
19
|
+
import { generateDefaultValueForPrimitiveType } from './QueryBuilderValueSpecificationHelper.js';
|
20
|
+
import { functionExpression_setParametersValues } from '@finos/legend-application';
|
21
|
+
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../graphManager/QueryBuilderSupportedFunctions.js';
|
22
|
+
export const getDerivedPropertyMilestoningSteoreotype = (property, graph) => {
|
23
|
+
const owner = property._OWNER;
|
24
|
+
if (owner instanceof Class) {
|
25
|
+
return getMilestoneTemporalStereotype(owner, graph);
|
26
|
+
}
|
27
|
+
else if (owner instanceof Association) {
|
28
|
+
const generatedMilestonedProperties = getGeneratedMilestonedPropertiesForAssociation(owner, property);
|
29
|
+
if (generatedMilestonedProperties.length) {
|
30
|
+
const ownerClass = generatedMilestonedProperties[0]?.genericType.value.rawType;
|
31
|
+
return getMilestoneTemporalStereotype(guaranteeType(ownerClass, Class), graph);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
return undefined;
|
35
|
+
};
|
36
|
+
/**
|
37
|
+
* Check if the parameter value of the milestoned property is
|
38
|
+
* the same as those specified in global scope, so that we can
|
39
|
+
* potentially replace them with propgated value.
|
40
|
+
*/
|
41
|
+
const matchMilestoningParameterValue = (stereotype, idx, parameterValue, milestoningDate) => {
|
42
|
+
const checkIfEquivalent = (param1, param2) => {
|
43
|
+
if (param1 instanceof VariableExpression &&
|
44
|
+
param2 instanceof VariableExpression) {
|
45
|
+
return param1.name === param2.name;
|
46
|
+
}
|
47
|
+
else if (param1 instanceof PrimitiveInstanceValue &&
|
48
|
+
param2 instanceof PrimitiveInstanceValue) {
|
49
|
+
if (param1.genericType.value.rawType.name === PRIMITIVE_TYPE.LATESTDATE &&
|
50
|
+
param2.genericType.value.rawType.name === PRIMITIVE_TYPE.LATESTDATE) {
|
51
|
+
return true;
|
52
|
+
}
|
53
|
+
return (param1.genericType.value.rawType.name ===
|
54
|
+
param2.genericType.value.rawType.name &&
|
55
|
+
param1.values[0] === param2.values[0]);
|
56
|
+
}
|
57
|
+
return false;
|
58
|
+
};
|
59
|
+
switch (stereotype) {
|
60
|
+
case MILESTONING_STEREOTYPE.BITEMPORAL:
|
61
|
+
return ((idx === 0 &&
|
62
|
+
checkIfEquivalent(parameterValue, milestoningDate.processingDate)) ||
|
63
|
+
(idx === 1 &&
|
64
|
+
checkIfEquivalent(parameterValue, milestoningDate.businessDate)));
|
65
|
+
case MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL:
|
66
|
+
return checkIfEquivalent(parameterValue, milestoningDate.processingDate);
|
67
|
+
case MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL:
|
68
|
+
return checkIfEquivalent(parameterValue, milestoningDate.businessDate);
|
69
|
+
default:
|
70
|
+
}
|
71
|
+
return false;
|
72
|
+
};
|
73
|
+
export const prettyPropertyName = (value) => isCamelCase(value) ? prettyCamelCase(value) : prettyCONSTName(value);
|
74
|
+
/**
|
75
|
+
* Generate a parameter value for the derived property given the index if the property is milestoned.
|
76
|
+
*
|
77
|
+
* This method considers different scenarios for milestoning and take into account date propagation
|
78
|
+
* See https://github.com/finos/legend-studio/pull/891
|
79
|
+
*/
|
80
|
+
export const generateMilestonedPropertyParameterValue = (derivedPropertyExpressionState, idx) => {
|
81
|
+
// Milestoning transformations should not be done on actual derived properties.
|
82
|
+
if (derivedPropertyExpressionState.derivedProperty._OWNER.derivedProperties.includes(derivedPropertyExpressionState.derivedProperty)) {
|
83
|
+
return undefined;
|
84
|
+
}
|
85
|
+
const milestoningState = derivedPropertyExpressionState.queryBuilderState.milestoningState;
|
86
|
+
const temporalSource = getDerivedPropertyMilestoningSteoreotype(derivedPropertyExpressionState.derivedProperty, derivedPropertyExpressionState.queryBuilderState.graphManagerState.graph);
|
87
|
+
const temporalTarget = derivedPropertyExpressionState.propertyExpression.func.genericType.value
|
88
|
+
.rawType instanceof Class &&
|
89
|
+
derivedPropertyExpressionState.propertyExpression.func._OWNER
|
90
|
+
._generatedMilestonedProperties.length !== 0
|
91
|
+
? getMilestoneTemporalStereotype(derivedPropertyExpressionState.propertyExpression.func.genericType
|
92
|
+
.value.rawType, derivedPropertyExpressionState.queryBuilderState.graphManagerState
|
93
|
+
.graph)
|
94
|
+
: undefined;
|
95
|
+
const shouldReturnMilestoningParameter = temporalTarget &&
|
96
|
+
((idx < derivedPropertyExpressionState.parameterValues.length &&
|
97
|
+
(matchMilestoningParameterValue(temporalTarget, idx, guaranteeNonNullable(derivedPropertyExpressionState.parameterValues[idx]), milestoningState) ||
|
98
|
+
/**
|
99
|
+
* Checks if the given milestoning needs to be overwritten or not.
|
100
|
+
* Specially, we would need to rewrite the query if the user passes a single parameter
|
101
|
+
* to the `bitemporal` property expression with `processing temporal` source.
|
102
|
+
*/
|
103
|
+
(getDerivedPropertyMilestoningSteoreotype(derivedPropertyExpressionState.derivedProperty, derivedPropertyExpressionState.queryBuilderState.graphManagerState
|
104
|
+
.graph) === MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL &&
|
105
|
+
temporalTarget === MILESTONING_STEREOTYPE.BITEMPORAL &&
|
106
|
+
derivedPropertyExpressionState.parameterValues.length === 1))) ||
|
107
|
+
idx >= derivedPropertyExpressionState.parameterValues.length);
|
108
|
+
if (!shouldReturnMilestoningParameter) {
|
109
|
+
return undefined;
|
110
|
+
}
|
111
|
+
switch (temporalTarget) {
|
112
|
+
case MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL: {
|
113
|
+
if (!milestoningState.businessDate) {
|
114
|
+
milestoningState.setBusinessDate(derivedPropertyExpressionState.queryBuilderState.milestoningState.buildMilestoningParameter(DEFAULT_BUSINESS_DATE_MILESTONING_PARAMETER_NAME));
|
115
|
+
}
|
116
|
+
const parameter = new INTERNAL__PropagatedValue(derivedPropertyExpressionState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE));
|
117
|
+
parameter.getValue = () => guaranteeNonNullable(milestoningState.businessDate);
|
118
|
+
return parameter;
|
119
|
+
}
|
120
|
+
case MILESTONING_STEREOTYPE.BITEMPORAL: {
|
121
|
+
if (!milestoningState.processingDate) {
|
122
|
+
milestoningState.setProcessingDate(derivedPropertyExpressionState.queryBuilderState.milestoningState.buildMilestoningParameter(DEFAULT_PROCESSING_DATE_MILESTONING_PARAMETER_NAME));
|
123
|
+
}
|
124
|
+
if (!milestoningState.businessDate) {
|
125
|
+
milestoningState.setBusinessDate(derivedPropertyExpressionState.queryBuilderState.milestoningState.buildMilestoningParameter(DEFAULT_BUSINESS_DATE_MILESTONING_PARAMETER_NAME));
|
126
|
+
}
|
127
|
+
if (idx === 0) {
|
128
|
+
if (temporalSource === MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL &&
|
129
|
+
derivedPropertyExpressionState.parameterValues.length === 1) {
|
130
|
+
return guaranteeType(derivedPropertyExpressionState.propertyExpression
|
131
|
+
.parametersValues[0], AbstractPropertyExpression).parametersValues[1];
|
132
|
+
}
|
133
|
+
const parameter = new INTERNAL__PropagatedValue(derivedPropertyExpressionState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE));
|
134
|
+
parameter.getValue = () => guaranteeNonNullable(milestoningState.processingDate);
|
135
|
+
return parameter;
|
136
|
+
}
|
137
|
+
else {
|
138
|
+
if (temporalSource === MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL &&
|
139
|
+
derivedPropertyExpressionState.parameterValues.length === 1) {
|
140
|
+
return derivedPropertyExpressionState.parameterValues[0];
|
141
|
+
}
|
142
|
+
else if (temporalSource === MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL &&
|
143
|
+
derivedPropertyExpressionState.parameterValues.length === 1) {
|
144
|
+
return guaranteeType(derivedPropertyExpressionState.propertyExpression
|
145
|
+
.parametersValues[0], AbstractPropertyExpression).parametersValues[1];
|
146
|
+
}
|
147
|
+
const parameter = new INTERNAL__PropagatedValue(derivedPropertyExpressionState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE));
|
148
|
+
parameter.getValue = () => guaranteeNonNullable(milestoningState.businessDate);
|
149
|
+
return parameter;
|
150
|
+
}
|
151
|
+
}
|
152
|
+
case MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL: {
|
153
|
+
if (!milestoningState.processingDate) {
|
154
|
+
milestoningState.setProcessingDate(derivedPropertyExpressionState.queryBuilderState.milestoningState.buildMilestoningParameter(DEFAULT_PROCESSING_DATE_MILESTONING_PARAMETER_NAME));
|
155
|
+
}
|
156
|
+
const parameter = new INTERNAL__PropagatedValue(derivedPropertyExpressionState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE));
|
157
|
+
parameter.getValue = () => guaranteeNonNullable(milestoningState.processingDate);
|
158
|
+
return parameter;
|
159
|
+
}
|
160
|
+
default:
|
161
|
+
return undefined;
|
162
|
+
}
|
163
|
+
};
|
164
|
+
export const getPropertyChainName = (propertyExpression, humanizePropertyName) => {
|
165
|
+
const propertyNameDecorator = humanizePropertyName
|
166
|
+
? prettyPropertyName
|
167
|
+
: (val) => val;
|
168
|
+
const chunks = [propertyNameDecorator(propertyExpression.func.name)];
|
169
|
+
let currentExpression = propertyExpression;
|
170
|
+
while (currentExpression instanceof AbstractPropertyExpression) {
|
171
|
+
currentExpression = getNullableFirstElement(currentExpression.parametersValues);
|
172
|
+
// Take care of chain of subtypes (a pattern that is not useful, but we want to support and potentially rectify)
|
173
|
+
// $x.employees->subType(@Person)->subType(@Staff).department
|
174
|
+
while (currentExpression instanceof SimpleFunctionExpression &&
|
175
|
+
matchFunctionName(currentExpression.functionName, QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE)) {
|
176
|
+
const subtypeChunk = `${TYPE_CAST_TOKEN}(${propertyNameDecorator(currentExpression.parametersValues.filter((param) => param instanceof InstanceValue)[0]?.genericType?.value.rawType.name ?? '')})`;
|
177
|
+
chunks.unshift(subtypeChunk);
|
178
|
+
currentExpression = getNullableFirstElement(currentExpression.parametersValues);
|
179
|
+
}
|
180
|
+
if (currentExpression instanceof AbstractPropertyExpression) {
|
181
|
+
chunks.unshift(propertyNameDecorator(currentExpression.func.name));
|
182
|
+
}
|
183
|
+
}
|
184
|
+
const processedChunks = [];
|
185
|
+
for (const chunk of chunks) {
|
186
|
+
if (!processedChunks.length) {
|
187
|
+
processedChunks.push(chunk);
|
188
|
+
}
|
189
|
+
else {
|
190
|
+
const latestProcessedChunk = guaranteeNonNullable(processedChunks[processedChunks.length - 1]);
|
191
|
+
if (latestProcessedChunk.startsWith(TYPE_CAST_TOKEN)) {
|
192
|
+
processedChunks[processedChunks.length - 1] = `${latestProcessedChunk}${chunk}`;
|
193
|
+
}
|
194
|
+
else {
|
195
|
+
processedChunks.push(chunk);
|
196
|
+
}
|
197
|
+
}
|
198
|
+
}
|
199
|
+
return processedChunks.join(humanizePropertyName ? '/' : '.');
|
200
|
+
};
|
201
|
+
export const getPropertyPath = (propertyExpression) => {
|
202
|
+
const propertyNameChain = [propertyExpression.func.name];
|
203
|
+
let currentExpression = propertyExpression;
|
204
|
+
while (currentExpression instanceof AbstractPropertyExpression) {
|
205
|
+
currentExpression = getNullableFirstElement(currentExpression.parametersValues);
|
206
|
+
if (currentExpression instanceof AbstractPropertyExpression) {
|
207
|
+
propertyNameChain.unshift(currentExpression.func.name);
|
208
|
+
}
|
209
|
+
}
|
210
|
+
return propertyNameChain.join('.');
|
211
|
+
};
|
212
|
+
export const generateValueSpecificationForParameter = (parameter, graph) => {
|
213
|
+
if (parameter.genericType) {
|
214
|
+
const type = parameter.genericType.value.rawType;
|
215
|
+
if ([
|
216
|
+
PRIMITIVE_TYPE.STRING,
|
217
|
+
PRIMITIVE_TYPE.BOOLEAN,
|
218
|
+
PRIMITIVE_TYPE.NUMBER,
|
219
|
+
PRIMITIVE_TYPE.FLOAT,
|
220
|
+
PRIMITIVE_TYPE.DECIMAL,
|
221
|
+
PRIMITIVE_TYPE.INTEGER,
|
222
|
+
PRIMITIVE_TYPE.DATE,
|
223
|
+
PRIMITIVE_TYPE.STRICTDATE,
|
224
|
+
PRIMITIVE_TYPE.DATETIME,
|
225
|
+
PRIMITIVE_TYPE.LATESTDATE,
|
226
|
+
].includes(type.name)) {
|
227
|
+
const primitiveInstanceValue = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(
|
228
|
+
// NOTE: since the default generated value for type Date is a StrictDate
|
229
|
+
// we need to adjust the generic type accordingly
|
230
|
+
// See https://github.com/finos/legend-studio/issues/1391
|
231
|
+
type.name === PRIMITIVE_TYPE.DATE
|
232
|
+
? graph.getType(PRIMITIVE_TYPE.STRICTDATE)
|
233
|
+
: type)), parameter.multiplicity);
|
234
|
+
if (type.name !== PRIMITIVE_TYPE.LATESTDATE) {
|
235
|
+
primitiveInstanceValue.values = [
|
236
|
+
generateDefaultValueForPrimitiveType(type.name),
|
237
|
+
];
|
238
|
+
}
|
239
|
+
return primitiveInstanceValue;
|
240
|
+
}
|
241
|
+
else if (type instanceof Enumeration) {
|
242
|
+
const enumValueInstanceValue = new EnumValueInstanceValue(GenericTypeExplicitReference.create(new GenericType(type)), parameter.multiplicity);
|
243
|
+
if (type.values.length) {
|
244
|
+
const enumValueRef = EnumValueExplicitReference.create(type.values[0]);
|
245
|
+
enumValueInstanceValue.values = [enumValueRef];
|
246
|
+
}
|
247
|
+
return enumValueInstanceValue;
|
248
|
+
}
|
249
|
+
}
|
250
|
+
// for arguments of types we don't support, we will fill them with `[]`
|
251
|
+
// which in Pure is equivalent to `null` in other languages
|
252
|
+
return new CollectionInstanceValue(graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ZERO));
|
253
|
+
};
|
254
|
+
const fillDerivedPropertyParameterValues = (derivedPropertyExpressionState) => {
|
255
|
+
const parameterValues = derivedPropertyExpressionState.parameterValues;
|
256
|
+
derivedPropertyExpressionState.parameters.forEach((parameter, idx) => {
|
257
|
+
// Check if a value is already provided for a parameter
|
258
|
+
if (idx < derivedPropertyExpressionState.parameterValues.length) {
|
259
|
+
// Here we check if the parameter value matches with the corresponding `businessDate` or `processingDate`
|
260
|
+
// NOTE: This will rewrite provided query since if people explicitly specified the parameter values,
|
261
|
+
// we will overwrite them.
|
262
|
+
parameterValues[idx] =
|
263
|
+
generateMilestonedPropertyParameterValue(derivedPropertyExpressionState, idx) ?? guaranteeNonNullable(parameterValues[idx]);
|
264
|
+
// Otherwise, we will just skip this parameter as value is already provided
|
265
|
+
return;
|
266
|
+
}
|
267
|
+
parameterValues.push(generateMilestonedPropertyParameterValue(derivedPropertyExpressionState, idx) ??
|
268
|
+
generateValueSpecificationForParameter(parameter, derivedPropertyExpressionState.queryBuilderState.graphManagerState
|
269
|
+
.graph));
|
270
|
+
});
|
271
|
+
functionExpression_setParametersValues(derivedPropertyExpressionState.propertyExpression, [
|
272
|
+
guaranteeNonNullable(derivedPropertyExpressionState.propertyExpression.parametersValues[0]),
|
273
|
+
...parameterValues,
|
274
|
+
], derivedPropertyExpressionState.queryBuilderState.observableContext);
|
275
|
+
};
|
276
|
+
export class QueryBuilderDerivedPropertyExpressionState {
|
277
|
+
queryBuilderState;
|
278
|
+
path;
|
279
|
+
title;
|
280
|
+
propertyExpression;
|
281
|
+
derivedProperty;
|
282
|
+
parameters = [];
|
283
|
+
constructor(queryBuilderState, propertyExpression) {
|
284
|
+
this.path = getPropertyPath(propertyExpression);
|
285
|
+
this.title = getPropertyChainName(propertyExpression, true);
|
286
|
+
this.propertyExpression = observe_AbstractPropertyExpression(propertyExpression, queryBuilderState.observableContext);
|
287
|
+
this.queryBuilderState = queryBuilderState;
|
288
|
+
this.derivedProperty = guaranteeType(propertyExpression.func, DerivedProperty);
|
289
|
+
// build the parameters of the derived properties
|
290
|
+
if (Array.isArray(this.derivedProperty.parameters)) {
|
291
|
+
this.parameters = this.derivedProperty.parameters.map((parameter) => guaranteeType(this.queryBuilderState.graphManagerState.graphManager.buildValueSpecification(parameter, this.queryBuilderState.graphManagerState.graph), VariableExpression));
|
292
|
+
}
|
293
|
+
fillDerivedPropertyParameterValues(this);
|
294
|
+
}
|
295
|
+
get property() {
|
296
|
+
return this.propertyExpression.func;
|
297
|
+
}
|
298
|
+
get parameterValues() {
|
299
|
+
return this.propertyExpression.parametersValues.slice(1);
|
300
|
+
}
|
301
|
+
get isValid() {
|
302
|
+
// TODO: more type matching logic here (take into account multiplicity, type, etc.)
|
303
|
+
return this.parameterValues.every((paramValue) => {
|
304
|
+
if (paramValue instanceof InstanceValue) {
|
305
|
+
const isRequired = paramValue.multiplicity.lowerBound >= 1;
|
306
|
+
// required and no values provided. LatestDate doesn't have any values so we skip that check for it.
|
307
|
+
if (isRequired &&
|
308
|
+
paramValue.genericType?.value.rawType.name !==
|
309
|
+
PRIMITIVE_TYPE.LATESTDATE &&
|
310
|
+
!paramValue.values.length) {
|
311
|
+
return false;
|
312
|
+
}
|
313
|
+
// more values than allowed
|
314
|
+
if (paramValue.multiplicity.upperBound &&
|
315
|
+
paramValue.values.length > paramValue.multiplicity.upperBound) {
|
316
|
+
return false;
|
317
|
+
}
|
318
|
+
}
|
319
|
+
return true;
|
320
|
+
});
|
321
|
+
}
|
322
|
+
}
|
323
|
+
export class QueryBuilderPropertyExpressionState {
|
324
|
+
queryBuilderState;
|
325
|
+
path;
|
326
|
+
title;
|
327
|
+
propertyExpression;
|
328
|
+
isEditingDerivedPropertyExpression = false;
|
329
|
+
// Since this property is a chain expression, some link of the chain can be
|
330
|
+
// derived property, as such, we need to keep track of the derived properties state in an array
|
331
|
+
derivedPropertyExpressionStates = [];
|
332
|
+
/**
|
333
|
+
* If at least one property in the chain is of multiplicity greater than 1,
|
334
|
+
* the property might have multiple values and can cause row explosions.
|
335
|
+
*
|
336
|
+
* In other words, saying `$x.b == 1` is not quite accurate if `$x.b` is multi
|
337
|
+
* is multi. Instead, we should do something like `$x.b->exists($x1 | $x1 == 1)`
|
338
|
+
*/
|
339
|
+
requiresExistsHandling = false;
|
340
|
+
constructor(queryBuilderState, propertyExpression) {
|
341
|
+
makeAutoObservable(this, {
|
342
|
+
queryBuilderState: false,
|
343
|
+
setIsEditingDerivedProperty: action,
|
344
|
+
initDerivedPropertyExpressionStates: action,
|
345
|
+
});
|
346
|
+
this.queryBuilderState = queryBuilderState;
|
347
|
+
this.propertyExpression = observe_AbstractPropertyExpression(propertyExpression, queryBuilderState.observableContext);
|
348
|
+
this.path = getPropertyPath(propertyExpression);
|
349
|
+
this.title = getPropertyChainName(propertyExpression, true);
|
350
|
+
this.initDerivedPropertyExpressionStates();
|
351
|
+
}
|
352
|
+
get isValid() {
|
353
|
+
return this.derivedPropertyExpressionStates.every((e) => e.isValid);
|
354
|
+
}
|
355
|
+
setIsEditingDerivedProperty(val) {
|
356
|
+
this.isEditingDerivedPropertyExpression = val;
|
357
|
+
}
|
358
|
+
initDerivedPropertyExpressionStates() {
|
359
|
+
let requiresExistsHandling = false;
|
360
|
+
const result = [];
|
361
|
+
let currentExpression = this.propertyExpression;
|
362
|
+
while (currentExpression instanceof AbstractPropertyExpression) {
|
363
|
+
// Check if the property chain can results in column that have multiple values
|
364
|
+
if (currentExpression.func.multiplicity.upperBound === undefined ||
|
365
|
+
currentExpression.func.multiplicity.upperBound > 1) {
|
366
|
+
requiresExistsHandling = true;
|
367
|
+
}
|
368
|
+
// check if the property is milestoned
|
369
|
+
if (currentExpression.func.genericType.value.rawType instanceof Class &&
|
370
|
+
currentExpression.func._OWNER._generatedMilestonedProperties.length !==
|
371
|
+
0) {
|
372
|
+
const name = currentExpression.func.name;
|
373
|
+
const func = currentExpression.func._OWNER._generatedMilestonedProperties.find((e) => e.name === name);
|
374
|
+
if (func) {
|
375
|
+
currentExpression.func = func;
|
376
|
+
}
|
377
|
+
}
|
378
|
+
// Create states to hold derived properties' parameters and arguments for editing
|
379
|
+
if (currentExpression.func instanceof DerivedProperty) {
|
380
|
+
const derivedPropertyExpressionState = new QueryBuilderDerivedPropertyExpressionState(this.queryBuilderState, currentExpression);
|
381
|
+
result.push(derivedPropertyExpressionState);
|
382
|
+
}
|
383
|
+
currentExpression = getNullableFirstElement(currentExpression.parametersValues);
|
384
|
+
// Take care of chains of subtype (a pattern that is not useful, but we want to support and rectify)
|
385
|
+
// $x.employees->subType(@Person)->subType(@Staff)
|
386
|
+
while (currentExpression instanceof SimpleFunctionExpression &&
|
387
|
+
matchFunctionName(currentExpression.functionName, QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE)) {
|
388
|
+
currentExpression = getNullableFirstElement(currentExpression.parametersValues);
|
389
|
+
}
|
390
|
+
}
|
391
|
+
this.requiresExistsHandling = requiresExistsHandling;
|
392
|
+
this.derivedPropertyExpressionStates = result.slice().reverse();
|
393
|
+
}
|
394
|
+
}
|
395
|
+
//# sourceMappingURL=QueryBuilderPropertyEditorState.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderPropertyEditorState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderPropertyEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAClD,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,aAAa,EACb,WAAW,EACX,eAAe,EACf,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,EAKL,yBAAyB,EACzB,uBAAuB,EACvB,0BAA0B,EAC1B,eAAe,EACf,WAAW,EACX,0BAA0B,EAC1B,sBAAsB,EACtB,aAAa,EACb,sBAAsB,EACtB,cAAc,EACd,kBAAkB,EAClB,8BAA8B,EAC9B,sBAAsB,EACtB,wBAAwB,EACxB,iBAAiB,EACjB,eAAe,EACf,kCAAkC,EAClC,4BAA4B,EAC5B,WAAW,EACX,gDAAgD,EAChD,kDAAkD,EAClD,yBAAyB,EACzB,WAAW,EACX,8CAA8C,GAC/C,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AAEjG,OAAO,EAAE,sCAAsC,EAAE,MAAM,2BAA2B,CAAC;AAEnF,OAAO,EAAE,iCAAiC,EAAE,MAAM,mDAAmD,CAAC;AAEtG,MAAM,CAAC,MAAM,wCAAwC,GAAG,CACtD,QAAyB,EACzB,KAAgB,EACoB,EAAE;IACtC,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC;IAC9B,IAAI,KAAK,YAAY,KAAK,EAAE;QAC1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A8B,CAAC,CAAC;aAC7C;YACD,iBAAiB,GAAG,uBAAuB,CACzC,iBAAiB,CAAC,gBAAgB,CACnC,CAAC;YACF,oGAAoG;YACpG,kDAAkD;YAClD,OACE,iBAAiB,YAAY,wBAAwB;gBACrD,iBAAiB,CACf,iBAAiB,CAAC,YAAY,EAC9B,iCAAiC,CAAC,OAAO,CAC1C,EACD;gBACA,iBAAiB,GAAG,uBAAuB,CACzC,iBAAiB,CAAC,gBAAgB,CACnC,CAAC;aACH;SACF;QACD,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;QACrD,IAAI,CAAC,+BAA+B,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,CAAC;IAClE,CAAC;CACF"}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
import { type GeneratorFn, ActionState } from '@finos/legend-shared';
|
17
|
+
import type { QueryBuilderState } from './QueryBuilderState.js';
|
18
|
+
import { type ExecutionResult, type RawLambda, EXECUTION_SERIALIZATION_FORMAT } from '@finos/legend-graph';
|
19
|
+
import { ExecutionPlanState } from '@finos/legend-application';
|
20
|
+
export declare class QueryBuilderResultState {
|
21
|
+
queryBuilderState: QueryBuilderState;
|
22
|
+
exportDataState: ActionState;
|
23
|
+
previewLimit: number;
|
24
|
+
isRunningQuery: boolean;
|
25
|
+
isGeneratingPlan: boolean;
|
26
|
+
executionResult?: ExecutionResult | undefined;
|
27
|
+
executionPlanState: ExecutionPlanState;
|
28
|
+
executionDuration?: number | undefined;
|
29
|
+
queryRunPromise: Promise<ExecutionResult> | undefined;
|
30
|
+
constructor(queryBuilderState: QueryBuilderState);
|
31
|
+
setIsRunningQuery: (val: boolean) => void;
|
32
|
+
setExecutionResult: (val: ExecutionResult | undefined) => void;
|
33
|
+
setExecutionDuration: (val: number | undefined) => void;
|
34
|
+
setPreviewLimit: (val: number) => void;
|
35
|
+
setQueryRunPromise: (promise: Promise<ExecutionResult> | undefined) => void;
|
36
|
+
buildExecutionRawLambda(): RawLambda;
|
37
|
+
exportData(serializationFormat: EXECUTION_SERIALIZATION_FORMAT): GeneratorFn<void>;
|
38
|
+
runQuery(): GeneratorFn<void>;
|
39
|
+
generatePlan(debug: boolean): GeneratorFn<void>;
|
40
|
+
}
|
41
|
+
//# sourceMappingURL=QueryBuilderResultState.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderResultState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderResultState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,WAAW,EAQhB,WAAW,EACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,SAAS,EAEd,8BAA8B,EAG/B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAEL,kBAAkB,EACnB,MAAM,2BAA2B,CAAC;AAInC,qBAAa,uBAAuB;IAClC,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,eAAe,cAAwB;IACvC,YAAY,SAAiB;IAC7B,cAAc,UAAS;IACvB,gBAAgB,UAAS;IACzB,eAAe,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IAC9C,kBAAkB,EAAE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