@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,668 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
import { action, makeAutoObservable } from 'mobx';
|
18
|
+
import {
|
19
|
+
getNullableFirstElement,
|
20
|
+
guaranteeNonNullable,
|
21
|
+
guaranteeType,
|
22
|
+
isCamelCase,
|
23
|
+
prettyCamelCase,
|
24
|
+
prettyCONSTName,
|
25
|
+
} from '@finos/legend-shared';
|
26
|
+
import {
|
27
|
+
Class,
|
28
|
+
type AbstractProperty,
|
29
|
+
type Enum,
|
30
|
+
type ValueSpecification,
|
31
|
+
type PureModel,
|
32
|
+
TYPICAL_MULTIPLICITY_TYPE,
|
33
|
+
CollectionInstanceValue,
|
34
|
+
AbstractPropertyExpression,
|
35
|
+
DerivedProperty,
|
36
|
+
Enumeration,
|
37
|
+
EnumValueExplicitReference,
|
38
|
+
EnumValueInstanceValue,
|
39
|
+
InstanceValue,
|
40
|
+
PrimitiveInstanceValue,
|
41
|
+
PRIMITIVE_TYPE,
|
42
|
+
VariableExpression,
|
43
|
+
getMilestoneTemporalStereotype,
|
44
|
+
MILESTONING_STEREOTYPE,
|
45
|
+
SimpleFunctionExpression,
|
46
|
+
matchFunctionName,
|
47
|
+
TYPE_CAST_TOKEN,
|
48
|
+
observe_AbstractPropertyExpression,
|
49
|
+
GenericTypeExplicitReference,
|
50
|
+
GenericType,
|
51
|
+
DEFAULT_BUSINESS_DATE_MILESTONING_PARAMETER_NAME,
|
52
|
+
DEFAULT_PROCESSING_DATE_MILESTONING_PARAMETER_NAME,
|
53
|
+
INTERNAL__PropagatedValue,
|
54
|
+
Association,
|
55
|
+
getGeneratedMilestonedPropertiesForAssociation,
|
56
|
+
} from '@finos/legend-graph';
|
57
|
+
import { generateDefaultValueForPrimitiveType } from './QueryBuilderValueSpecificationHelper.js';
|
58
|
+
import type { QueryBuilderState } from './QueryBuilderState.js';
|
59
|
+
import { functionExpression_setParametersValues } from '@finos/legend-application';
|
60
|
+
import type { QueryBuilderMilestoningState } from './QueryBuilderMilestoningState.js';
|
61
|
+
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../graphManager/QueryBuilderSupportedFunctions.js';
|
62
|
+
|
63
|
+
export const getDerivedPropertyMilestoningSteoreotype = (
|
64
|
+
property: DerivedProperty,
|
65
|
+
graph: PureModel,
|
66
|
+
): MILESTONING_STEREOTYPE | undefined => {
|
67
|
+
const owner = property._OWNER;
|
68
|
+
if (owner instanceof Class) {
|
69
|
+
return getMilestoneTemporalStereotype(owner, graph);
|
70
|
+
} else if (owner instanceof Association) {
|
71
|
+
const generatedMilestonedProperties =
|
72
|
+
getGeneratedMilestonedPropertiesForAssociation(owner, property);
|
73
|
+
if (generatedMilestonedProperties.length) {
|
74
|
+
const ownerClass =
|
75
|
+
generatedMilestonedProperties[0]?.genericType.value.rawType;
|
76
|
+
return getMilestoneTemporalStereotype(
|
77
|
+
guaranteeType(ownerClass, Class),
|
78
|
+
graph,
|
79
|
+
);
|
80
|
+
}
|
81
|
+
}
|
82
|
+
return undefined;
|
83
|
+
};
|
84
|
+
|
85
|
+
/**
|
86
|
+
* Check if the parameter value of the milestoned property is
|
87
|
+
* the same as those specified in global scope, so that we can
|
88
|
+
* potentially replace them with propgated value.
|
89
|
+
*/
|
90
|
+
const matchMilestoningParameterValue = (
|
91
|
+
stereotype: MILESTONING_STEREOTYPE,
|
92
|
+
idx: number,
|
93
|
+
parameterValue: ValueSpecification,
|
94
|
+
milestoningDate: QueryBuilderMilestoningState,
|
95
|
+
): boolean => {
|
96
|
+
const checkIfEquivalent = (
|
97
|
+
param1: ValueSpecification | undefined,
|
98
|
+
param2: ValueSpecification | undefined,
|
99
|
+
): boolean => {
|
100
|
+
if (
|
101
|
+
param1 instanceof VariableExpression &&
|
102
|
+
param2 instanceof VariableExpression
|
103
|
+
) {
|
104
|
+
return param1.name === param2.name;
|
105
|
+
} else if (
|
106
|
+
param1 instanceof PrimitiveInstanceValue &&
|
107
|
+
param2 instanceof PrimitiveInstanceValue
|
108
|
+
) {
|
109
|
+
if (
|
110
|
+
param1.genericType.value.rawType.name === PRIMITIVE_TYPE.LATESTDATE &&
|
111
|
+
param2.genericType.value.rawType.name === PRIMITIVE_TYPE.LATESTDATE
|
112
|
+
) {
|
113
|
+
return true;
|
114
|
+
}
|
115
|
+
return (
|
116
|
+
param1.genericType.value.rawType.name ===
|
117
|
+
param2.genericType.value.rawType.name &&
|
118
|
+
param1.values[0] === param2.values[0]
|
119
|
+
);
|
120
|
+
}
|
121
|
+
return false;
|
122
|
+
};
|
123
|
+
switch (stereotype) {
|
124
|
+
case MILESTONING_STEREOTYPE.BITEMPORAL:
|
125
|
+
return (
|
126
|
+
(idx === 0 &&
|
127
|
+
checkIfEquivalent(parameterValue, milestoningDate.processingDate)) ||
|
128
|
+
(idx === 1 &&
|
129
|
+
checkIfEquivalent(parameterValue, milestoningDate.businessDate))
|
130
|
+
);
|
131
|
+
case MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL:
|
132
|
+
return checkIfEquivalent(parameterValue, milestoningDate.processingDate);
|
133
|
+
case MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL:
|
134
|
+
return checkIfEquivalent(parameterValue, milestoningDate.businessDate);
|
135
|
+
default:
|
136
|
+
}
|
137
|
+
return false;
|
138
|
+
};
|
139
|
+
|
140
|
+
export const prettyPropertyName = (value: string): string =>
|
141
|
+
isCamelCase(value) ? prettyCamelCase(value) : prettyCONSTName(value);
|
142
|
+
|
143
|
+
/**
|
144
|
+
* Generate a parameter value for the derived property given the index if the property is milestoned.
|
145
|
+
*
|
146
|
+
* This method considers different scenarios for milestoning and take into account date propagation
|
147
|
+
* See https://github.com/finos/legend-studio/pull/891
|
148
|
+
*/
|
149
|
+
export const generateMilestonedPropertyParameterValue = (
|
150
|
+
derivedPropertyExpressionState: QueryBuilderDerivedPropertyExpressionState,
|
151
|
+
idx: number,
|
152
|
+
): ValueSpecification | undefined => {
|
153
|
+
// Milestoning transformations should not be done on actual derived properties.
|
154
|
+
if (
|
155
|
+
derivedPropertyExpressionState.derivedProperty._OWNER.derivedProperties.includes(
|
156
|
+
derivedPropertyExpressionState.derivedProperty,
|
157
|
+
)
|
158
|
+
) {
|
159
|
+
return undefined;
|
160
|
+
}
|
161
|
+
const milestoningState =
|
162
|
+
derivedPropertyExpressionState.queryBuilderState.milestoningState;
|
163
|
+
const temporalSource = getDerivedPropertyMilestoningSteoreotype(
|
164
|
+
derivedPropertyExpressionState.derivedProperty,
|
165
|
+
derivedPropertyExpressionState.queryBuilderState.graphManagerState.graph,
|
166
|
+
);
|
167
|
+
const temporalTarget =
|
168
|
+
derivedPropertyExpressionState.propertyExpression.func.genericType.value
|
169
|
+
.rawType instanceof Class &&
|
170
|
+
derivedPropertyExpressionState.propertyExpression.func._OWNER
|
171
|
+
._generatedMilestonedProperties.length !== 0
|
172
|
+
? getMilestoneTemporalStereotype(
|
173
|
+
derivedPropertyExpressionState.propertyExpression.func.genericType
|
174
|
+
.value.rawType,
|
175
|
+
derivedPropertyExpressionState.queryBuilderState.graphManagerState
|
176
|
+
.graph,
|
177
|
+
)
|
178
|
+
: undefined;
|
179
|
+
const shouldReturnMilestoningParameter =
|
180
|
+
temporalTarget &&
|
181
|
+
((idx < derivedPropertyExpressionState.parameterValues.length &&
|
182
|
+
(matchMilestoningParameterValue(
|
183
|
+
temporalTarget,
|
184
|
+
idx,
|
185
|
+
guaranteeNonNullable(
|
186
|
+
derivedPropertyExpressionState.parameterValues[idx],
|
187
|
+
),
|
188
|
+
milestoningState,
|
189
|
+
) ||
|
190
|
+
/**
|
191
|
+
* Checks if the given milestoning needs to be overwritten or not.
|
192
|
+
* Specially, we would need to rewrite the query if the user passes a single parameter
|
193
|
+
* to the `bitemporal` property expression with `processing temporal` source.
|
194
|
+
*/
|
195
|
+
(getDerivedPropertyMilestoningSteoreotype(
|
196
|
+
derivedPropertyExpressionState.derivedProperty,
|
197
|
+
derivedPropertyExpressionState.queryBuilderState.graphManagerState
|
198
|
+
.graph,
|
199
|
+
) === MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL &&
|
200
|
+
temporalTarget === MILESTONING_STEREOTYPE.BITEMPORAL &&
|
201
|
+
derivedPropertyExpressionState.parameterValues.length === 1))) ||
|
202
|
+
idx >= derivedPropertyExpressionState.parameterValues.length);
|
203
|
+
|
204
|
+
if (!shouldReturnMilestoningParameter) {
|
205
|
+
return undefined;
|
206
|
+
}
|
207
|
+
|
208
|
+
switch (temporalTarget) {
|
209
|
+
case MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL: {
|
210
|
+
if (!milestoningState.businessDate) {
|
211
|
+
milestoningState.setBusinessDate(
|
212
|
+
derivedPropertyExpressionState.queryBuilderState.milestoningState.buildMilestoningParameter(
|
213
|
+
DEFAULT_BUSINESS_DATE_MILESTONING_PARAMETER_NAME,
|
214
|
+
),
|
215
|
+
);
|
216
|
+
}
|
217
|
+
const parameter = new INTERNAL__PropagatedValue(
|
218
|
+
derivedPropertyExpressionState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
219
|
+
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
220
|
+
),
|
221
|
+
);
|
222
|
+
parameter.getValue = (): ValueSpecification =>
|
223
|
+
guaranteeNonNullable(milestoningState.businessDate);
|
224
|
+
return parameter;
|
225
|
+
}
|
226
|
+
case MILESTONING_STEREOTYPE.BITEMPORAL: {
|
227
|
+
if (!milestoningState.processingDate) {
|
228
|
+
milestoningState.setProcessingDate(
|
229
|
+
derivedPropertyExpressionState.queryBuilderState.milestoningState.buildMilestoningParameter(
|
230
|
+
DEFAULT_PROCESSING_DATE_MILESTONING_PARAMETER_NAME,
|
231
|
+
),
|
232
|
+
);
|
233
|
+
}
|
234
|
+
if (!milestoningState.businessDate) {
|
235
|
+
milestoningState.setBusinessDate(
|
236
|
+
derivedPropertyExpressionState.queryBuilderState.milestoningState.buildMilestoningParameter(
|
237
|
+
DEFAULT_BUSINESS_DATE_MILESTONING_PARAMETER_NAME,
|
238
|
+
),
|
239
|
+
);
|
240
|
+
}
|
241
|
+
if (idx === 0) {
|
242
|
+
if (
|
243
|
+
temporalSource === MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL &&
|
244
|
+
derivedPropertyExpressionState.parameterValues.length === 1
|
245
|
+
) {
|
246
|
+
return guaranteeType(
|
247
|
+
derivedPropertyExpressionState.propertyExpression
|
248
|
+
.parametersValues[0],
|
249
|
+
AbstractPropertyExpression,
|
250
|
+
).parametersValues[1];
|
251
|
+
}
|
252
|
+
const parameter = new INTERNAL__PropagatedValue(
|
253
|
+
derivedPropertyExpressionState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
254
|
+
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
255
|
+
),
|
256
|
+
);
|
257
|
+
parameter.getValue = (): ValueSpecification =>
|
258
|
+
guaranteeNonNullable(milestoningState.processingDate);
|
259
|
+
return parameter;
|
260
|
+
} else {
|
261
|
+
if (
|
262
|
+
temporalSource === MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL &&
|
263
|
+
derivedPropertyExpressionState.parameterValues.length === 1
|
264
|
+
) {
|
265
|
+
return derivedPropertyExpressionState.parameterValues[0];
|
266
|
+
} else if (
|
267
|
+
temporalSource === MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL &&
|
268
|
+
derivedPropertyExpressionState.parameterValues.length === 1
|
269
|
+
) {
|
270
|
+
return guaranteeType(
|
271
|
+
derivedPropertyExpressionState.propertyExpression
|
272
|
+
.parametersValues[0],
|
273
|
+
AbstractPropertyExpression,
|
274
|
+
).parametersValues[1];
|
275
|
+
}
|
276
|
+
const parameter = new INTERNAL__PropagatedValue(
|
277
|
+
derivedPropertyExpressionState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
278
|
+
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
279
|
+
),
|
280
|
+
);
|
281
|
+
parameter.getValue = (): ValueSpecification =>
|
282
|
+
guaranteeNonNullable(milestoningState.businessDate);
|
283
|
+
return parameter;
|
284
|
+
}
|
285
|
+
}
|
286
|
+
case MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL: {
|
287
|
+
if (!milestoningState.processingDate) {
|
288
|
+
milestoningState.setProcessingDate(
|
289
|
+
derivedPropertyExpressionState.queryBuilderState.milestoningState.buildMilestoningParameter(
|
290
|
+
DEFAULT_PROCESSING_DATE_MILESTONING_PARAMETER_NAME,
|
291
|
+
),
|
292
|
+
);
|
293
|
+
}
|
294
|
+
const parameter = new INTERNAL__PropagatedValue(
|
295
|
+
derivedPropertyExpressionState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
296
|
+
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
297
|
+
),
|
298
|
+
);
|
299
|
+
parameter.getValue = (): ValueSpecification =>
|
300
|
+
guaranteeNonNullable(milestoningState.processingDate);
|
301
|
+
return parameter;
|
302
|
+
}
|
303
|
+
default:
|
304
|
+
return undefined;
|
305
|
+
}
|
306
|
+
};
|
307
|
+
|
308
|
+
export const getPropertyChainName = (
|
309
|
+
propertyExpression: AbstractPropertyExpression,
|
310
|
+
humanizePropertyName: boolean,
|
311
|
+
): string => {
|
312
|
+
const propertyNameDecorator = humanizePropertyName
|
313
|
+
? prettyPropertyName
|
314
|
+
: (val: string): string => val;
|
315
|
+
const chunks = [propertyNameDecorator(propertyExpression.func.name)];
|
316
|
+
let currentExpression: ValueSpecification | undefined = propertyExpression;
|
317
|
+
while (currentExpression instanceof AbstractPropertyExpression) {
|
318
|
+
currentExpression = getNullableFirstElement(
|
319
|
+
currentExpression.parametersValues,
|
320
|
+
);
|
321
|
+
// Take care of chain of subtypes (a pattern that is not useful, but we want to support and potentially rectify)
|
322
|
+
// $x.employees->subType(@Person)->subType(@Staff).department
|
323
|
+
while (
|
324
|
+
currentExpression instanceof SimpleFunctionExpression &&
|
325
|
+
matchFunctionName(
|
326
|
+
currentExpression.functionName,
|
327
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE,
|
328
|
+
)
|
329
|
+
) {
|
330
|
+
const subtypeChunk = `${TYPE_CAST_TOKEN}(${propertyNameDecorator(
|
331
|
+
currentExpression.parametersValues.filter(
|
332
|
+
(param) => param instanceof InstanceValue,
|
333
|
+
)[0]?.genericType?.value.rawType.name ?? '',
|
334
|
+
)})`;
|
335
|
+
chunks.unshift(subtypeChunk);
|
336
|
+
currentExpression = getNullableFirstElement(
|
337
|
+
currentExpression.parametersValues,
|
338
|
+
);
|
339
|
+
}
|
340
|
+
if (currentExpression instanceof AbstractPropertyExpression) {
|
341
|
+
chunks.unshift(propertyNameDecorator(currentExpression.func.name));
|
342
|
+
}
|
343
|
+
}
|
344
|
+
const processedChunks: string[] = [];
|
345
|
+
for (const chunk of chunks) {
|
346
|
+
if (!processedChunks.length) {
|
347
|
+
processedChunks.push(chunk);
|
348
|
+
} else {
|
349
|
+
const latestProcessedChunk = guaranteeNonNullable(
|
350
|
+
processedChunks[processedChunks.length - 1],
|
351
|
+
);
|
352
|
+
if (latestProcessedChunk.startsWith(TYPE_CAST_TOKEN)) {
|
353
|
+
processedChunks[
|
354
|
+
processedChunks.length - 1
|
355
|
+
] = `${latestProcessedChunk}${chunk}`;
|
356
|
+
} else {
|
357
|
+
processedChunks.push(chunk);
|
358
|
+
}
|
359
|
+
}
|
360
|
+
}
|
361
|
+
return processedChunks.join(humanizePropertyName ? '/' : '.');
|
362
|
+
};
|
363
|
+
|
364
|
+
export const getPropertyPath = (
|
365
|
+
propertyExpression: AbstractPropertyExpression,
|
366
|
+
): string => {
|
367
|
+
const propertyNameChain = [propertyExpression.func.name];
|
368
|
+
let currentExpression: ValueSpecification | undefined = propertyExpression;
|
369
|
+
while (currentExpression instanceof AbstractPropertyExpression) {
|
370
|
+
currentExpression = getNullableFirstElement(
|
371
|
+
currentExpression.parametersValues,
|
372
|
+
);
|
373
|
+
if (currentExpression instanceof AbstractPropertyExpression) {
|
374
|
+
propertyNameChain.unshift(currentExpression.func.name);
|
375
|
+
}
|
376
|
+
}
|
377
|
+
return propertyNameChain.join('.');
|
378
|
+
};
|
379
|
+
|
380
|
+
export const generateValueSpecificationForParameter = (
|
381
|
+
parameter: VariableExpression,
|
382
|
+
graph: PureModel,
|
383
|
+
): ValueSpecification => {
|
384
|
+
if (parameter.genericType) {
|
385
|
+
const type = parameter.genericType.value.rawType;
|
386
|
+
if (
|
387
|
+
(
|
388
|
+
[
|
389
|
+
PRIMITIVE_TYPE.STRING,
|
390
|
+
PRIMITIVE_TYPE.BOOLEAN,
|
391
|
+
PRIMITIVE_TYPE.NUMBER,
|
392
|
+
PRIMITIVE_TYPE.FLOAT,
|
393
|
+
PRIMITIVE_TYPE.DECIMAL,
|
394
|
+
PRIMITIVE_TYPE.INTEGER,
|
395
|
+
PRIMITIVE_TYPE.DATE,
|
396
|
+
PRIMITIVE_TYPE.STRICTDATE,
|
397
|
+
PRIMITIVE_TYPE.DATETIME,
|
398
|
+
PRIMITIVE_TYPE.LATESTDATE,
|
399
|
+
] as string[]
|
400
|
+
).includes(type.name)
|
401
|
+
) {
|
402
|
+
const primitiveInstanceValue = new PrimitiveInstanceValue(
|
403
|
+
GenericTypeExplicitReference.create(
|
404
|
+
new GenericType(
|
405
|
+
// NOTE: since the default generated value for type Date is a StrictDate
|
406
|
+
// we need to adjust the generic type accordingly
|
407
|
+
// See https://github.com/finos/legend-studio/issues/1391
|
408
|
+
type.name === PRIMITIVE_TYPE.DATE
|
409
|
+
? graph.getType(PRIMITIVE_TYPE.STRICTDATE)
|
410
|
+
: type,
|
411
|
+
),
|
412
|
+
),
|
413
|
+
parameter.multiplicity,
|
414
|
+
);
|
415
|
+
if (type.name !== PRIMITIVE_TYPE.LATESTDATE) {
|
416
|
+
primitiveInstanceValue.values = [
|
417
|
+
generateDefaultValueForPrimitiveType(type.name as PRIMITIVE_TYPE),
|
418
|
+
];
|
419
|
+
}
|
420
|
+
return primitiveInstanceValue;
|
421
|
+
} else if (type instanceof Enumeration) {
|
422
|
+
const enumValueInstanceValue = new EnumValueInstanceValue(
|
423
|
+
GenericTypeExplicitReference.create(new GenericType(type)),
|
424
|
+
parameter.multiplicity,
|
425
|
+
);
|
426
|
+
if (type.values.length) {
|
427
|
+
const enumValueRef = EnumValueExplicitReference.create(
|
428
|
+
type.values[0] as Enum,
|
429
|
+
);
|
430
|
+
enumValueInstanceValue.values = [enumValueRef];
|
431
|
+
}
|
432
|
+
return enumValueInstanceValue;
|
433
|
+
}
|
434
|
+
}
|
435
|
+
// for arguments of types we don't support, we will fill them with `[]`
|
436
|
+
// which in Pure is equivalent to `null` in other languages
|
437
|
+
return new CollectionInstanceValue(
|
438
|
+
graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ZERO),
|
439
|
+
);
|
440
|
+
};
|
441
|
+
|
442
|
+
const fillDerivedPropertyParameterValues = (
|
443
|
+
derivedPropertyExpressionState: QueryBuilderDerivedPropertyExpressionState,
|
444
|
+
): void => {
|
445
|
+
const parameterValues: ValueSpecification[] =
|
446
|
+
derivedPropertyExpressionState.parameterValues;
|
447
|
+
derivedPropertyExpressionState.parameters.forEach((parameter, idx) => {
|
448
|
+
// Check if a value is already provided for a parameter
|
449
|
+
if (idx < derivedPropertyExpressionState.parameterValues.length) {
|
450
|
+
// Here we check if the parameter value matches with the corresponding `businessDate` or `processingDate`
|
451
|
+
// NOTE: This will rewrite provided query since if people explicitly specified the parameter values,
|
452
|
+
// we will overwrite them.
|
453
|
+
parameterValues[idx] =
|
454
|
+
generateMilestonedPropertyParameterValue(
|
455
|
+
derivedPropertyExpressionState,
|
456
|
+
idx,
|
457
|
+
) ?? guaranteeNonNullable(parameterValues[idx]);
|
458
|
+
|
459
|
+
// Otherwise, we will just skip this parameter as value is already provided
|
460
|
+
return;
|
461
|
+
}
|
462
|
+
parameterValues.push(
|
463
|
+
generateMilestonedPropertyParameterValue(
|
464
|
+
derivedPropertyExpressionState,
|
465
|
+
idx,
|
466
|
+
) ??
|
467
|
+
generateValueSpecificationForParameter(
|
468
|
+
parameter,
|
469
|
+
derivedPropertyExpressionState.queryBuilderState.graphManagerState
|
470
|
+
.graph,
|
471
|
+
),
|
472
|
+
);
|
473
|
+
});
|
474
|
+
functionExpression_setParametersValues(
|
475
|
+
derivedPropertyExpressionState.propertyExpression,
|
476
|
+
[
|
477
|
+
guaranteeNonNullable(
|
478
|
+
derivedPropertyExpressionState.propertyExpression.parametersValues[0],
|
479
|
+
),
|
480
|
+
...parameterValues,
|
481
|
+
],
|
482
|
+
derivedPropertyExpressionState.queryBuilderState.observableContext,
|
483
|
+
);
|
484
|
+
};
|
485
|
+
|
486
|
+
export class QueryBuilderDerivedPropertyExpressionState {
|
487
|
+
queryBuilderState: QueryBuilderState;
|
488
|
+
path: string;
|
489
|
+
title: string;
|
490
|
+
readonly propertyExpression: AbstractPropertyExpression;
|
491
|
+
readonly derivedProperty: DerivedProperty;
|
492
|
+
readonly parameters: VariableExpression[] = [];
|
493
|
+
|
494
|
+
constructor(
|
495
|
+
queryBuilderState: QueryBuilderState,
|
496
|
+
propertyExpression: AbstractPropertyExpression,
|
497
|
+
) {
|
498
|
+
this.path = getPropertyPath(propertyExpression);
|
499
|
+
this.title = getPropertyChainName(propertyExpression, true);
|
500
|
+
this.propertyExpression = observe_AbstractPropertyExpression(
|
501
|
+
propertyExpression,
|
502
|
+
queryBuilderState.observableContext,
|
503
|
+
);
|
504
|
+
this.queryBuilderState = queryBuilderState;
|
505
|
+
this.derivedProperty = guaranteeType(
|
506
|
+
propertyExpression.func,
|
507
|
+
DerivedProperty,
|
508
|
+
);
|
509
|
+
// build the parameters of the derived properties
|
510
|
+
if (Array.isArray(this.derivedProperty.parameters)) {
|
511
|
+
this.parameters = this.derivedProperty.parameters.map((parameter) =>
|
512
|
+
guaranteeType(
|
513
|
+
this.queryBuilderState.graphManagerState.graphManager.buildValueSpecification(
|
514
|
+
parameter,
|
515
|
+
this.queryBuilderState.graphManagerState.graph,
|
516
|
+
),
|
517
|
+
VariableExpression,
|
518
|
+
),
|
519
|
+
);
|
520
|
+
}
|
521
|
+
fillDerivedPropertyParameterValues(this);
|
522
|
+
}
|
523
|
+
|
524
|
+
get property(): AbstractProperty {
|
525
|
+
return this.propertyExpression.func;
|
526
|
+
}
|
527
|
+
|
528
|
+
get parameterValues(): ValueSpecification[] {
|
529
|
+
return this.propertyExpression.parametersValues.slice(1);
|
530
|
+
}
|
531
|
+
|
532
|
+
get isValid(): boolean {
|
533
|
+
// TODO: more type matching logic here (take into account multiplicity, type, etc.)
|
534
|
+
return this.parameterValues.every((paramValue) => {
|
535
|
+
if (paramValue instanceof InstanceValue) {
|
536
|
+
const isRequired = paramValue.multiplicity.lowerBound >= 1;
|
537
|
+
// required and no values provided. LatestDate doesn't have any values so we skip that check for it.
|
538
|
+
if (
|
539
|
+
isRequired &&
|
540
|
+
paramValue.genericType?.value.rawType.name !==
|
541
|
+
PRIMITIVE_TYPE.LATESTDATE &&
|
542
|
+
!paramValue.values.length
|
543
|
+
) {
|
544
|
+
return false;
|
545
|
+
}
|
546
|
+
// more values than allowed
|
547
|
+
if (
|
548
|
+
paramValue.multiplicity.upperBound &&
|
549
|
+
paramValue.values.length > paramValue.multiplicity.upperBound
|
550
|
+
) {
|
551
|
+
return false;
|
552
|
+
}
|
553
|
+
}
|
554
|
+
return true;
|
555
|
+
});
|
556
|
+
}
|
557
|
+
}
|
558
|
+
|
559
|
+
export class QueryBuilderPropertyExpressionState {
|
560
|
+
queryBuilderState: QueryBuilderState;
|
561
|
+
path: string;
|
562
|
+
title: string;
|
563
|
+
readonly propertyExpression: AbstractPropertyExpression;
|
564
|
+
|
565
|
+
isEditingDerivedPropertyExpression = false;
|
566
|
+
// Since this property is a chain expression, some link of the chain can be
|
567
|
+
// derived property, as such, we need to keep track of the derived properties state in an array
|
568
|
+
derivedPropertyExpressionStates: QueryBuilderDerivedPropertyExpressionState[] =
|
569
|
+
[];
|
570
|
+
/**
|
571
|
+
* If at least one property in the chain is of multiplicity greater than 1,
|
572
|
+
* the property might have multiple values and can cause row explosions.
|
573
|
+
*
|
574
|
+
* In other words, saying `$x.b == 1` is not quite accurate if `$x.b` is multi
|
575
|
+
* is multi. Instead, we should do something like `$x.b->exists($x1 | $x1 == 1)`
|
576
|
+
*/
|
577
|
+
requiresExistsHandling = false;
|
578
|
+
|
579
|
+
constructor(
|
580
|
+
queryBuilderState: QueryBuilderState,
|
581
|
+
propertyExpression: AbstractPropertyExpression,
|
582
|
+
) {
|
583
|
+
makeAutoObservable<
|
584
|
+
QueryBuilderPropertyExpressionState,
|
585
|
+
'initDerivedPropertyExpressionStates'
|
586
|
+
>(this, {
|
587
|
+
queryBuilderState: false,
|
588
|
+
setIsEditingDerivedProperty: action,
|
589
|
+
initDerivedPropertyExpressionStates: action,
|
590
|
+
});
|
591
|
+
|
592
|
+
this.queryBuilderState = queryBuilderState;
|
593
|
+
this.propertyExpression = observe_AbstractPropertyExpression(
|
594
|
+
propertyExpression,
|
595
|
+
queryBuilderState.observableContext,
|
596
|
+
);
|
597
|
+
this.path = getPropertyPath(propertyExpression);
|
598
|
+
this.title = getPropertyChainName(propertyExpression, true);
|
599
|
+
this.initDerivedPropertyExpressionStates();
|
600
|
+
}
|
601
|
+
|
602
|
+
get isValid(): boolean {
|
603
|
+
return this.derivedPropertyExpressionStates.every((e) => e.isValid);
|
604
|
+
}
|
605
|
+
|
606
|
+
setIsEditingDerivedProperty(val: boolean): void {
|
607
|
+
this.isEditingDerivedPropertyExpression = val;
|
608
|
+
}
|
609
|
+
|
610
|
+
private initDerivedPropertyExpressionStates(): void {
|
611
|
+
let requiresExistsHandling = false;
|
612
|
+
const result: QueryBuilderDerivedPropertyExpressionState[] = [];
|
613
|
+
let currentExpression: ValueSpecification | undefined =
|
614
|
+
this.propertyExpression;
|
615
|
+
while (currentExpression instanceof AbstractPropertyExpression) {
|
616
|
+
// Check if the property chain can results in column that have multiple values
|
617
|
+
if (
|
618
|
+
currentExpression.func.multiplicity.upperBound === undefined ||
|
619
|
+
currentExpression.func.multiplicity.upperBound > 1
|
620
|
+
) {
|
621
|
+
requiresExistsHandling = true;
|
622
|
+
}
|
623
|
+
// check if the property is milestoned
|
624
|
+
if (
|
625
|
+
currentExpression.func.genericType.value.rawType instanceof Class &&
|
626
|
+
currentExpression.func._OWNER._generatedMilestonedProperties.length !==
|
627
|
+
0
|
628
|
+
) {
|
629
|
+
const name = currentExpression.func.name;
|
630
|
+
const func =
|
631
|
+
currentExpression.func._OWNER._generatedMilestonedProperties.find(
|
632
|
+
(e) => e.name === name,
|
633
|
+
);
|
634
|
+
if (func) {
|
635
|
+
currentExpression.func = func;
|
636
|
+
}
|
637
|
+
}
|
638
|
+
|
639
|
+
// Create states to hold derived properties' parameters and arguments for editing
|
640
|
+
if (currentExpression.func instanceof DerivedProperty) {
|
641
|
+
const derivedPropertyExpressionState =
|
642
|
+
new QueryBuilderDerivedPropertyExpressionState(
|
643
|
+
this.queryBuilderState,
|
644
|
+
currentExpression,
|
645
|
+
);
|
646
|
+
result.push(derivedPropertyExpressionState);
|
647
|
+
}
|
648
|
+
currentExpression = getNullableFirstElement(
|
649
|
+
currentExpression.parametersValues,
|
650
|
+
);
|
651
|
+
// Take care of chains of subtype (a pattern that is not useful, but we want to support and rectify)
|
652
|
+
// $x.employees->subType(@Person)->subType(@Staff)
|
653
|
+
while (
|
654
|
+
currentExpression instanceof SimpleFunctionExpression &&
|
655
|
+
matchFunctionName(
|
656
|
+
currentExpression.functionName,
|
657
|
+
QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE,
|
658
|
+
)
|
659
|
+
) {
|
660
|
+
currentExpression = getNullableFirstElement(
|
661
|
+
currentExpression.parametersValues,
|
662
|
+
);
|
663
|
+
}
|
664
|
+
}
|
665
|
+
this.requiresExistsHandling = requiresExistsHandling;
|
666
|
+
this.derivedPropertyExpressionStates = result.slice().reverse();
|
667
|
+
}
|
668
|
+
}
|