@finos/legend-application-query 6.0.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/application/LegendQuery.d.ts.map +1 -1
- package/lib/application/LegendQuery.js +4 -7
- package/lib/application/LegendQuery.js.map +1 -1
- package/lib/components/LegendQueryApplication.d.ts +0 -1
- package/lib/components/LegendQueryApplication.d.ts.map +1 -1
- package/lib/components/QueryEditor.d.ts +0 -1
- package/lib/components/QueryEditor.d.ts.map +1 -1
- package/lib/components/QueryEditor.js +71 -19
- package/lib/components/QueryEditor.js.map +1 -1
- package/lib/components/QueryEditorComponentTestUtils.d.ts +1 -1
- package/lib/components/QueryEditorComponentTestUtils.d.ts.map +1 -1
- package/lib/components/QueryEditorComponentTestUtils.js +7 -9
- package/lib/components/QueryEditorComponentTestUtils.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +0 -7
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -8
- package/lib/index.js.map +1 -1
- package/lib/package.json +4 -10
- package/lib/stores/LegendQueryApplicationPlugin.d.ts +1 -1
- package/lib/stores/LegendQueryApplicationPlugin.d.ts.map +1 -1
- package/lib/stores/QueryEditorStore.d.ts +12 -1
- package/lib/stores/QueryEditorStore.d.ts.map +1 -1
- package/lib/stores/QueryEditorStore.js +52 -21
- package/lib/stores/QueryEditorStore.js.map +1 -1
- package/lib/stores/QuerySetupStore.d.ts +1 -1
- package/lib/stores/QuerySetupStore.d.ts.map +1 -1
- package/lib/stores/QuerySetupStore.js +1 -1
- package/lib/stores/QuerySetupStore.js.map +1 -1
- package/package.json +11 -17
- package/src/application/LegendQuery.tsx +7 -8
- package/src/components/QueryEditor.tsx +282 -48
- package/src/components/QueryEditorComponentTestUtils.tsx +15 -13
- package/src/index.ts +0 -15
- package/src/stores/LegendQueryApplicationPlugin.ts +1 -1
- package/src/stores/QueryEditorStore.ts +62 -34
- package/src/stores/QuerySetupStore.ts +5 -3
- package/tsconfig.json +1 -118
- package/lib/components/query-builder/QueryBuilder.d.ts +0 -23
- package/lib/components/query-builder/QueryBuilder.d.ts.map +0 -1
- package/lib/components/query-builder/QueryBuilder.js +0 -111
- package/lib/components/query-builder/QueryBuilder.js.map +0 -1
- package/lib/components/query-builder/QueryBuilderParametersPanel.d.ts +0 -32
- package/lib/components/query-builder/QueryBuilderParametersPanel.d.ts.map +0 -1
- package/lib/components/query-builder/QueryBuilderParametersPanel.js +0 -128
- package/lib/components/query-builder/QueryBuilderParametersPanel.js.map +0 -1
- package/lib/components/query-builder/QueryBuilderPropertyExpressionEditor.d.ts +0 -30
- package/lib/components/query-builder/QueryBuilderPropertyExpressionEditor.d.ts.map +0 -1
- package/lib/components/query-builder/QueryBuilderPropertyExpressionEditor.js +0 -116
- package/lib/components/query-builder/QueryBuilderPropertyExpressionEditor.js.map +0 -1
- package/lib/components/query-builder/QueryBuilderResultPanel.d.ts +0 -23
- package/lib/components/query-builder/QueryBuilderResultPanel.d.ts.map +0 -1
- package/lib/components/query-builder/QueryBuilderResultPanel.js +0 -242
- package/lib/components/query-builder/QueryBuilderResultPanel.js.map +0 -1
- package/lib/components/query-builder/QueryBuilderSideBar.d.ts +0 -42
- package/lib/components/query-builder/QueryBuilderSideBar.d.ts.map +0 -1
- package/lib/components/query-builder/QueryBuilderSideBar.js +0 -169
- package/lib/components/query-builder/QueryBuilderSideBar.js.map +0 -1
- package/lib/components/query-builder/QueryBuilderTextEditor.d.ts +0 -23
- package/lib/components/query-builder/QueryBuilderTextEditor.d.ts.map +0 -1
- package/lib/components/query-builder/QueryBuilderTextEditor.js +0 -48
- package/lib/components/query-builder/QueryBuilderTextEditor.js.map +0 -1
- package/lib/components/query-builder/QueryBuilderUnsupportedQueryEditor.d.ts +0 -23
- package/lib/components/query-builder/QueryBuilderUnsupportedQueryEditor.d.ts.map +0 -1
- package/lib/components/query-builder/QueryBuilderUnsupportedQueryEditor.js +0 -36
- package/lib/components/query-builder/QueryBuilderUnsupportedQueryEditor.js.map +0 -1
- package/lib/components/query-builder/QueryBuilder_TestID.d.ts +0 -26
- package/lib/components/query-builder/QueryBuilder_TestID.d.ts.map +0 -1
- package/lib/components/query-builder/QueryBuilder_TestID.js +0 -27
- package/lib/components/query-builder/QueryBuilder_TestID.js.map +0 -1
- package/lib/components/query-builder/explorer/QueryBuilderExplorerPanel.d.ts +0 -36
- package/lib/components/query-builder/explorer/QueryBuilderExplorerPanel.d.ts.map +0 -1
- package/lib/components/query-builder/explorer/QueryBuilderExplorerPanel.js +0 -340
- package/lib/components/query-builder/explorer/QueryBuilderExplorerPanel.js.map +0 -1
- package/lib/components/query-builder/explorer/QueryBuilderFunctionsExplorerPanel.d.ts +0 -23
- package/lib/components/query-builder/explorer/QueryBuilderFunctionsExplorerPanel.d.ts.map +0 -1
- package/lib/components/query-builder/explorer/QueryBuilderFunctionsExplorerPanel.js +0 -147
- package/lib/components/query-builder/explorer/QueryBuilderFunctionsExplorerPanel.js.map +0 -1
- package/lib/components/query-builder/explorer/QueryBuilderMilestoneEditor.d.ts +0 -23
- package/lib/components/query-builder/explorer/QueryBuilderMilestoneEditor.d.ts.map +0 -1
- package/lib/components/query-builder/explorer/QueryBuilderMilestoneEditor.js +0 -122
- package/lib/components/query-builder/explorer/QueryBuilderMilestoneEditor.js.map +0 -1
- package/lib/components/query-builder/explorer/QueryBuilderPropertySearchPanel.d.ts +0 -24
- package/lib/components/query-builder/explorer/QueryBuilderPropertySearchPanel.d.ts.map +0 -1
- package/lib/components/query-builder/explorer/QueryBuilderPropertySearchPanel.js +0 -200
- package/lib/components/query-builder/explorer/QueryBuilderPropertySearchPanel.js.map +0 -1
- package/lib/components/query-builder/fetch-structure/QueryBuilderFetchStructurePanel.d.ts +0 -23
- package/lib/components/query-builder/fetch-structure/QueryBuilderFetchStructurePanel.d.ts.map +0 -1
- package/lib/components/query-builder/fetch-structure/QueryBuilderFetchStructurePanel.js +0 -52
- package/lib/components/query-builder/fetch-structure/QueryBuilderFetchStructurePanel.js.map +0 -1
- package/lib/components/query-builder/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +0 -32
- package/lib/components/query-builder/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +0 -1
- package/lib/components/query-builder/fetch-structure/QueryBuilderGraphFetchTreePanel.js +0 -94
- package/lib/components/query-builder/fetch-structure/QueryBuilderGraphFetchTreePanel.js.map +0 -1
- package/lib/components/query-builder/fetch-structure/QueryBuilderPostFilterPanel.d.ts +0 -31
- package/lib/components/query-builder/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +0 -1
- package/lib/components/query-builder/fetch-structure/QueryBuilderPostFilterPanel.js +0 -378
- package/lib/components/query-builder/fetch-structure/QueryBuilderPostFilterPanel.js.map +0 -1
- package/lib/components/query-builder/fetch-structure/QueryBuilderProjectionPanel.d.ts +0 -23
- package/lib/components/query-builder/fetch-structure/QueryBuilderProjectionPanel.d.ts.map +0 -1
- package/lib/components/query-builder/fetch-structure/QueryBuilderProjectionPanel.js +0 -216
- package/lib/components/query-builder/fetch-structure/QueryBuilderProjectionPanel.js.map +0 -1
- package/lib/components/query-builder/fetch-structure/QueryBuilderResultModifierPanel.d.ts +0 -23
- package/lib/components/query-builder/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +0 -1
- package/lib/components/query-builder/fetch-structure/QueryBuilderResultModifierPanel.js +0 -88
- package/lib/components/query-builder/fetch-structure/QueryBuilderResultModifierPanel.js.map +0 -1
- package/lib/components/query-builder/filter/QueryBuilderFilterPanel.d.ts +0 -23
- package/lib/components/query-builder/filter/QueryBuilderFilterPanel.d.ts.map +0 -1
- package/lib/components/query-builder/filter/QueryBuilderFilterPanel.js +0 -316
- package/lib/components/query-builder/filter/QueryBuilderFilterPanel.js.map +0 -1
- package/lib/components/query-builder/shared/ElementIconUtils.d.ts +0 -18
- package/lib/components/query-builder/shared/ElementIconUtils.d.ts.map +0 -1
- package/lib/components/query-builder/shared/ElementIconUtils.js +0 -37
- package/lib/components/query-builder/shared/ElementIconUtils.js.map +0 -1
- package/lib/components/query-builder/shared/QueryBuilderLambdaEditor.d.ts +0 -43
- package/lib/components/query-builder/shared/QueryBuilderLambdaEditor.d.ts.map +0 -1
- package/lib/components/query-builder/shared/QueryBuilderLambdaEditor.js +0 -47
- package/lib/components/query-builder/shared/QueryBuilderLambdaEditor.js.map +0 -1
- package/lib/components/query-builder/shared/QueryBuilderPanelIssueCountBadge.d.ts +0 -20
- package/lib/components/query-builder/shared/QueryBuilderPanelIssueCountBadge.d.ts.map +0 -1
- package/lib/components/query-builder/shared/QueryBuilderPanelIssueCountBadge.js +0 -28
- package/lib/components/query-builder/shared/QueryBuilderPanelIssueCountBadge.js.map +0 -1
- package/lib/components/query-builder/shared/QueryBuilderPropertyInfoTooltip.d.ts +0 -26
- package/lib/components/query-builder/shared/QueryBuilderPropertyInfoTooltip.d.ts.map +0 -1
- package/lib/components/query-builder/shared/QueryBuilderPropertyInfoTooltip.js +0 -32
- package/lib/components/query-builder/shared/QueryBuilderPropertyInfoTooltip.js.map +0 -1
- package/lib/components/query-builder/workflows/ClassQueryBuilder.d.ts +0 -18
- package/lib/components/query-builder/workflows/ClassQueryBuilder.d.ts.map +0 -1
- package/lib/components/query-builder/workflows/ClassQueryBuilder.js +0 -87
- package/lib/components/query-builder/workflows/ClassQueryBuilder.js.map +0 -1
- package/lib/components/query-builder/workflows/MappingQueryBuilder.d.ts +0 -18
- package/lib/components/query-builder/workflows/MappingQueryBuilder.d.ts.map +0 -1
- package/lib/components/query-builder/workflows/MappingQueryBuilder.js +0 -88
- package/lib/components/query-builder/workflows/MappingQueryBuilder.js.map +0 -1
- package/lib/components/query-builder/workflows/ServiceQueryBuilder.d.ts +0 -18
- package/lib/components/query-builder/workflows/ServiceQueryBuilder.d.ts.map +0 -1
- package/lib/components/query-builder/workflows/ServiceQueryBuilder.js +0 -69
- package/lib/components/query-builder/workflows/ServiceQueryBuilder.js.map +0 -1
- package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts +0 -60
- package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts.map +0 -1
- package/lib/graphManager/QueryBuilderSupportedFunctions.js +0 -65
- package/lib/graphManager/QueryBuilderSupportedFunctions.js.map +0 -1
- package/lib/graphManager/QueryBuilder_GraphManagerPlugin.d.ts +0 -21
- package/lib/graphManager/QueryBuilder_GraphManagerPlugin.d.ts.map +0 -1
- package/lib/graphManager/QueryBuilder_GraphManagerPlugin.js +0 -27
- package/lib/graphManager/QueryBuilder_GraphManagerPlugin.js.map +0 -1
- package/lib/graphManager/QueryBuilder_GraphManagerPreset.d.ts +0 -24
- package/lib/graphManager/QueryBuilder_GraphManagerPreset.d.ts.map +0 -1
- package/lib/graphManager/QueryBuilder_GraphManagerPreset.js +0 -32
- package/lib/graphManager/QueryBuilder_GraphManagerPreset.js.map +0 -1
- package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.d.ts +0 -21
- package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.d.ts.map +0 -1
- package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.js +0 -20
- package/lib/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.js.map +0 -1
- package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.d.ts +0 -21
- package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.d.ts.map +0 -1
- package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.js +0 -20
- package/lib/graphManager/action/analytics/ServiceExecutionAnalysis.js.map +0 -1
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.d.ts +0 -25
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.d.ts.map +0 -1
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.js +0 -21
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.js.map +0 -1
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.d.ts +0 -18
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.d.ts.map +0 -1
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.js +0 -20
- package/lib/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.js.map +0 -1
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts +0 -22
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts.map +0 -1
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js +0 -70
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +0 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.d.ts +0 -22
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.d.ts.map +0 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.js +0 -207
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.js.map +0 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.d.ts +0 -18
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.d.ts.map +0 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.js +0 -18
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.js.map +0 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.d.ts +0 -29
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.d.ts.map +0 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js +0 -182
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js.map +0 -1
- package/lib/stores/query-builder/QueryBuilderChangeDetectionState.d.ts +0 -25
- package/lib/stores/query-builder/QueryBuilderChangeDetectionState.d.ts.map +0 -1
- package/lib/stores/query-builder/QueryBuilderChangeDetectionState.js +0 -32
- package/lib/stores/query-builder/QueryBuilderChangeDetectionState.js.map +0 -1
- package/lib/stores/query-builder/QueryBuilderConfig.d.ts +0 -32
- package/lib/stores/query-builder/QueryBuilderConfig.d.ts.map +0 -1
- package/lib/stores/query-builder/QueryBuilderConfig.js +0 -34
- package/lib/stores/query-builder/QueryBuilderConfig.js.map +0 -1
- package/lib/stores/query-builder/QueryBuilderGroupOperationHelper.d.ts +0 -22
- package/lib/stores/query-builder/QueryBuilderGroupOperationHelper.d.ts.map +0 -1
- package/lib/stores/query-builder/QueryBuilderGroupOperationHelper.js +0 -43
- package/lib/stores/query-builder/QueryBuilderGroupOperationHelper.js.map +0 -1
- package/lib/stores/query-builder/QueryBuilderMilestoningState.d.ts +0 -32
- package/lib/stores/query-builder/QueryBuilderMilestoningState.d.ts.map +0 -1
- package/lib/stores/query-builder/QueryBuilderMilestoningState.js +0 -95
- package/lib/stores/query-builder/QueryBuilderMilestoningState.js.map +0 -1
- package/lib/stores/query-builder/QueryBuilderParametersState.d.ts +0 -28
- package/lib/stores/query-builder/QueryBuilderParametersState.d.ts.map +0 -1
- package/lib/stores/query-builder/QueryBuilderParametersState.js +0 -39
- package/lib/stores/query-builder/QueryBuilderParametersState.js.map +0 -1
- package/lib/stores/query-builder/QueryBuilderPreviewDataHelper.d.ts +0 -26
- package/lib/stores/query-builder/QueryBuilderPreviewDataHelper.d.ts.map +0 -1
- package/lib/stores/query-builder/QueryBuilderPreviewDataHelper.js +0 -138
- package/lib/stores/query-builder/QueryBuilderPreviewDataHelper.js.map +0 -1
- package/lib/stores/query-builder/QueryBuilderPropertyEditorState.d.ts +0 -62
- package/lib/stores/query-builder/QueryBuilderPropertyEditorState.d.ts.map +0 -1
- package/lib/stores/query-builder/QueryBuilderPropertyEditorState.js +0 -395
- package/lib/stores/query-builder/QueryBuilderPropertyEditorState.js.map +0 -1
- package/lib/stores/query-builder/QueryBuilderResultState.d.ts +0 -41
- package/lib/stores/query-builder/QueryBuilderResultState.d.ts.map +0 -1
- package/lib/stores/query-builder/QueryBuilderResultState.js +0 -176
- package/lib/stores/query-builder/QueryBuilderResultState.js.map +0 -1
- package/lib/stores/query-builder/QueryBuilderState.d.ts +0 -112
- package/lib/stores/query-builder/QueryBuilderState.d.ts.map +0 -1
- package/lib/stores/query-builder/QueryBuilderState.js +0 -337
- package/lib/stores/query-builder/QueryBuilderState.js.map +0 -1
- package/lib/stores/query-builder/QueryBuilderStateBuilder.d.ts +0 -124
- package/lib/stores/query-builder/QueryBuilderStateBuilder.d.ts.map +0 -1
- package/lib/stores/query-builder/QueryBuilderStateBuilder.js +0 -311
- package/lib/stores/query-builder/QueryBuilderStateBuilder.js.map +0 -1
- package/lib/stores/query-builder/QueryBuilderStateTestUtils.d.ts +0 -24
- package/lib/stores/query-builder/QueryBuilderStateTestUtils.d.ts.map +0 -1
- package/lib/stores/query-builder/QueryBuilderStateTestUtils.js +0 -50
- package/lib/stores/query-builder/QueryBuilderStateTestUtils.js.map +0 -1
- package/lib/stores/query-builder/QueryBuilderTextEditorState.d.ts +0 -49
- package/lib/stores/query-builder/QueryBuilderTextEditorState.d.ts.map +0 -1
- package/lib/stores/query-builder/QueryBuilderTextEditorState.js +0 -145
- package/lib/stores/query-builder/QueryBuilderTextEditorState.js.map +0 -1
- package/lib/stores/query-builder/QueryBuilderTypeaheadHelper.d.ts +0 -24
- package/lib/stores/query-builder/QueryBuilderTypeaheadHelper.d.ts.map +0 -1
- package/lib/stores/query-builder/QueryBuilderTypeaheadHelper.js +0 -85
- package/lib/stores/query-builder/QueryBuilderTypeaheadHelper.js.map +0 -1
- package/lib/stores/query-builder/QueryBuilderUnsupportedQueryState.d.ts +0 -26
- package/lib/stores/query-builder/QueryBuilderUnsupportedQueryState.d.ts.map +0 -1
- package/lib/stores/query-builder/QueryBuilderUnsupportedQueryState.js +0 -37
- package/lib/stores/query-builder/QueryBuilderUnsupportedQueryState.js.map +0 -1
- package/lib/stores/query-builder/QueryBuilderValueSpecificationBuilder.d.ts +0 -20
- package/lib/stores/query-builder/QueryBuilderValueSpecificationBuilder.d.ts.map +0 -1
- package/lib/stores/query-builder/QueryBuilderValueSpecificationBuilder.js +0 -87
- package/lib/stores/query-builder/QueryBuilderValueSpecificationBuilder.js.map +0 -1
- package/lib/stores/query-builder/QueryBuilderValueSpecificationBuilderHelper.d.ts +0 -27
- package/lib/stores/query-builder/QueryBuilderValueSpecificationBuilderHelper.d.ts.map +0 -1
- package/lib/stores/query-builder/QueryBuilderValueSpecificationBuilderHelper.js +0 -161
- package/lib/stores/query-builder/QueryBuilderValueSpecificationBuilderHelper.js.map +0 -1
- package/lib/stores/query-builder/QueryBuilderValueSpecificationHelper.d.ts +0 -61
- package/lib/stores/query-builder/QueryBuilderValueSpecificationHelper.d.ts.map +0 -1
- package/lib/stores/query-builder/QueryBuilderValueSpecificationHelper.js +0 -235
- package/lib/stores/query-builder/QueryBuilderValueSpecificationHelper.js.map +0 -1
- package/lib/stores/query-builder/explorer/QueryBuilderExplorerState.d.ts +0 -99
- package/lib/stores/query-builder/explorer/QueryBuilderExplorerState.d.ts.map +0 -1
- package/lib/stores/query-builder/explorer/QueryBuilderExplorerState.js +0 -446
- package/lib/stores/query-builder/explorer/QueryBuilderExplorerState.js.map +0 -1
- package/lib/stores/query-builder/explorer/QueryBuilderPropertySearchState.d.ts +0 -46
- package/lib/stores/query-builder/explorer/QueryBuilderPropertySearchState.d.ts.map +0 -1
- package/lib/stores/query-builder/explorer/QueryBuilderPropertySearchState.js +0 -242
- package/lib/stores/query-builder/explorer/QueryBuilderPropertySearchState.js.map +0 -1
- package/lib/stores/query-builder/explorer/QueryFunctionsExplorerState.d.ts +0 -59
- package/lib/stores/query-builder/explorer/QueryFunctionsExplorerState.d.ts.map +0 -1
- package/lib/stores/query-builder/explorer/QueryFunctionsExplorerState.js +0 -228
- package/lib/stores/query-builder/explorer/QueryFunctionsExplorerState.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts +0 -40
- package/lib/stores/query-builder/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/QueryBuilderFetchStructureImplementationState.js +0 -34
- package/lib/stores/query-builder/fetch-structure/QueryBuilderFetchStructureImplementationState.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/QueryBuilderFetchStructureState.d.ts +0 -27
- package/lib/stores/query-builder/fetch-structure/QueryBuilderFetchStructureState.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/QueryBuilderFetchStructureState.js +0 -73
- package/lib/stores/query-builder/fetch-structure/QueryBuilderFetchStructureState.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts +0 -49
- package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +0 -157
- package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts +0 -20
- package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js +0 -62
- package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts +0 -42
- package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js +0 -173
- package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.d.ts +0 -26
- package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.js +0 -72
- package/lib/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionColumnState.d.ts +0 -73
- package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionColumnState.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionColumnState.js +0 -187
- package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionColumnState.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionState.d.ts +0 -68
- package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionState.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionState.js +0 -305
- package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionState.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionStateBuilder.d.ts +0 -25
- package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionStateBuilder.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionStateBuilder.js +0 -186
- package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionStateBuilder.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts +0 -26
- package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.js +0 -189
- package/lib/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/QueryResultSetModifierState.d.ts +0 -43
- package/lib/stores/query-builder/fetch-structure/projection/QueryResultSetModifierState.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/QueryResultSetModifierState.js +0 -77
- package/lib/stores/query-builder/fetch-structure/projection/QueryResultSetModifierState.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.d.ts +0 -32
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.js +0 -36
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.d.ts +0 -18
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.js +0 -38
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregationState.d.ts +0 -42
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregationState.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregationState.js +0 -103
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregationState.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.d.ts +0 -20
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.js +0 -96
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.d.ts +0 -22
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.js +0 -40
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts +0 -27
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js +0 -50
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts +0 -27
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js +0 -55
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts +0 -26
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js +0 -50
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts +0 -27
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js +0 -78
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts +0 -27
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js +0 -67
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts +0 -26
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js +0 -86
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts +0 -26
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js +0 -86
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts +0 -27
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js +0 -50
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts +0 -27
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js +0 -50
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts +0 -26
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js +0 -45
- package/lib/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.d.ts +0 -29
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.js +0 -30
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts +0 -18
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.js +0 -44
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.d.ts +0 -135
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js +0 -585
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.d.ts +0 -22
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.js +0 -122
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts +0 -19
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js +0 -79
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts +0 -23
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js +0 -73
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts +0 -32
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +0 -75
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts +0 -32
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +0 -75
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts +0 -32
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +0 -118
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts +0 -27
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js +0 -81
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts +0 -24
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js +0 -43
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts +0 -32
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js +0 -104
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts +0 -33
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js +0 -67
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts +0 -27
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js +0 -81
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts +0 -24
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js +0 -43
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts +0 -32
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +0 -1
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +0 -75
- package/lib/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +0 -1
- package/lib/stores/query-builder/filter/QueryBuilderFilterOperator.d.ts +0 -27
- package/lib/stores/query-builder/filter/QueryBuilderFilterOperator.d.ts.map +0 -1
- package/lib/stores/query-builder/filter/QueryBuilderFilterOperator.js +0 -20
- package/lib/stores/query-builder/filter/QueryBuilderFilterOperator.js.map +0 -1
- package/lib/stores/query-builder/filter/QueryBuilderFilterOperatorLoader.d.ts +0 -18
- package/lib/stores/query-builder/filter/QueryBuilderFilterOperatorLoader.d.ts.map +0 -1
- package/lib/stores/query-builder/filter/QueryBuilderFilterOperatorLoader.js +0 -44
- package/lib/stores/query-builder/filter/QueryBuilderFilterOperatorLoader.js.map +0 -1
- package/lib/stores/query-builder/filter/QueryBuilderFilterState.d.ts +0 -123
- package/lib/stores/query-builder/filter/QueryBuilderFilterState.d.ts.map +0 -1
- package/lib/stores/query-builder/filter/QueryBuilderFilterState.js +0 -531
- package/lib/stores/query-builder/filter/QueryBuilderFilterState.js.map +0 -1
- package/lib/stores/query-builder/filter/QueryBuilderFilterStateBuilder.d.ts +0 -19
- package/lib/stores/query-builder/filter/QueryBuilderFilterStateBuilder.d.ts.map +0 -1
- package/lib/stores/query-builder/filter/QueryBuilderFilterStateBuilder.js +0 -74
- package/lib/stores/query-builder/filter/QueryBuilderFilterStateBuilder.js.map +0 -1
- package/lib/stores/query-builder/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts +0 -19
- package/lib/stores/query-builder/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts.map +0 -1
- package/lib/stores/query-builder/filter/QueryBuilderFilterValueSpecificationBuilder.js +0 -78
- package/lib/stores/query-builder/filter/QueryBuilderFilterValueSpecificationBuilder.js.map +0 -1
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperatorHelper.d.ts +0 -21
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperatorHelper.d.ts.map +0 -1
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperatorHelper.js +0 -257
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperatorHelper.js.map +0 -1
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_Contain.d.ts +0 -32
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_Contain.d.ts.map +0 -1
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_Contain.js +0 -71
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_Contain.js.map +0 -1
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts +0 -32
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts.map +0 -1
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_EndWith.js +0 -71
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_EndWith.js.map +0 -1
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_Equal.d.ts +0 -32
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_Equal.d.ts.map +0 -1
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_Equal.js +0 -115
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_Equal.js.map +0 -1
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts +0 -27
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts.map +0 -1
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_GreaterThan.js +0 -83
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_GreaterThan.js.map +0 -1
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts +0 -27
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts.map +0 -1
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js +0 -83
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js.map +0 -1
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_In.d.ts +0 -32
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_In.d.ts.map +0 -1
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_In.js +0 -103
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_In.js.map +0 -1
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts +0 -32
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts.map +0 -1
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_IsEmpty.js +0 -65
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_IsEmpty.js.map +0 -1
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts +0 -27
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts.map +0 -1
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_LessThan.js +0 -83
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_LessThan.js.map +0 -1
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts +0 -27
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts.map +0 -1
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js +0 -83
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js.map +0 -1
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts +0 -32
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts.map +0 -1
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_StartWith.js +0 -71
- package/lib/stores/query-builder/filter/operators/QueryBuilderFilterOperator_StartWith.js.map +0 -1
- package/lib/stores/query-builder/workflows/ClassQueryBuilderState.d.ts +0 -35
- package/lib/stores/query-builder/workflows/ClassQueryBuilderState.d.ts.map +0 -1
- package/lib/stores/query-builder/workflows/ClassQueryBuilderState.js +0 -57
- package/lib/stores/query-builder/workflows/ClassQueryBuilderState.js.map +0 -1
- package/lib/stores/query-builder/workflows/MappingQueryBuilderState.d.ts +0 -33
- package/lib/stores/query-builder/workflows/MappingQueryBuilderState.d.ts.map +0 -1
- package/lib/stores/query-builder/workflows/MappingQueryBuilderState.js +0 -55
- package/lib/stores/query-builder/workflows/MappingQueryBuilderState.js.map +0 -1
- package/lib/stores/query-builder/workflows/ServiceQueryBuilderState.d.ts +0 -44
- package/lib/stores/query-builder/workflows/ServiceQueryBuilderState.d.ts.map +0 -1
- package/lib/stores/query-builder/workflows/ServiceQueryBuilderState.js +0 -90
- package/lib/stores/query-builder/workflows/ServiceQueryBuilderState.js.map +0 -1
- package/src/components/query-builder/QueryBuilder.tsx +0 -411
- package/src/components/query-builder/QueryBuilderParametersPanel.tsx +0 -431
- package/src/components/query-builder/QueryBuilderPropertyExpressionEditor.tsx +0 -376
- package/src/components/query-builder/QueryBuilderResultPanel.tsx +0 -640
- package/src/components/query-builder/QueryBuilderSideBar.tsx +0 -421
- package/src/components/query-builder/QueryBuilderTextEditor.tsx +0 -127
- package/src/components/query-builder/QueryBuilderUnsupportedQueryEditor.tsx +0 -88
- package/src/components/query-builder/QueryBuilder_TestID.ts +0 -26
- package/src/components/query-builder/explorer/QueryBuilderExplorerPanel.tsx +0 -934
- package/src/components/query-builder/explorer/QueryBuilderFunctionsExplorerPanel.tsx +0 -554
- package/src/components/query-builder/explorer/QueryBuilderMilestoneEditor.tsx +0 -296
- package/src/components/query-builder/explorer/QueryBuilderPropertySearchPanel.tsx +0 -617
- package/src/components/query-builder/fetch-structure/QueryBuilderFetchStructurePanel.tsx +0 -112
- package/src/components/query-builder/fetch-structure/QueryBuilderGraphFetchTreePanel.tsx +0 -276
- package/src/components/query-builder/fetch-structure/QueryBuilderPostFilterPanel.tsx +0 -1103
- package/src/components/query-builder/fetch-structure/QueryBuilderProjectionPanel.tsx +0 -649
- package/src/components/query-builder/fetch-structure/QueryBuilderResultModifierPanel.tsx +0 -254
- package/src/components/query-builder/filter/QueryBuilderFilterPanel.tsx +0 -891
- package/src/components/query-builder/shared/ElementIconUtils.tsx +0 -47
- package/src/components/query-builder/shared/QueryBuilderLambdaEditor.tsx +0 -120
- package/src/components/query-builder/shared/QueryBuilderPanelIssueCountBadge.tsx +0 -40
- package/src/components/query-builder/shared/QueryBuilderPropertyInfoTooltip.tsx +0 -87
- package/src/components/query-builder/workflows/ClassQueryBuilder.tsx +0 -198
- package/src/components/query-builder/workflows/MappingQueryBuilder.tsx +0 -195
- package/src/components/query-builder/workflows/ServiceQueryBuilder.tsx +0 -192
- package/src/graphManager/QueryBuilderSupportedFunctions.ts +0 -67
- package/src/graphManager/QueryBuilder_GraphManagerPlugin.ts +0 -32
- package/src/graphManager/QueryBuilder_GraphManagerPreset.ts +0 -33
- package/src/graphManager/action/analytics/MappingRuntimeCompatibilityAnalysis.ts +0 -22
- package/src/graphManager/action/analytics/ServiceExecutionAnalysis.ts +0 -22
- package/src/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtension.ts +0 -47
- package/src/graphManager/protocol/pure/QueryBuilder_PureGraphManagerExtensionBuilder.ts +0 -27
- package/src/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +0 -167
- package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.ts +0 -571
- package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.ts +0 -28
- package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.ts +0 -296
- package/src/stores/query-builder/QueryBuilderChangeDetectionState.ts +0 -37
- package/src/stores/query-builder/QueryBuilderConfig.ts +0 -34
- package/src/stores/query-builder/QueryBuilderGroupOperationHelper.ts +0 -54
- package/src/stores/query-builder/QueryBuilderMilestoningState.ts +0 -164
- package/src/stores/query-builder/QueryBuilderParametersState.ts +0 -52
- package/src/stores/query-builder/QueryBuilderPreviewDataHelper.ts +0 -202
- package/src/stores/query-builder/QueryBuilderPropertyEditorState.ts +0 -668
- package/src/stores/query-builder/QueryBuilderResultState.ts +0 -281
- package/src/stores/query-builder/QueryBuilderState.ts +0 -470
- package/src/stores/query-builder/QueryBuilderStateBuilder.ts +0 -585
- package/src/stores/query-builder/QueryBuilderStateTestUtils.ts +0 -91
- package/src/stores/query-builder/QueryBuilderTextEditorState.ts +0 -203
- package/src/stores/query-builder/QueryBuilderTypeaheadHelper.ts +0 -152
- package/src/stores/query-builder/QueryBuilderUnsupportedQueryState.ts +0 -44
- package/src/stores/query-builder/QueryBuilderValueSpecificationBuilder.ts +0 -179
- package/src/stores/query-builder/QueryBuilderValueSpecificationBuilderHelper.ts +0 -256
- package/src/stores/query-builder/QueryBuilderValueSpecificationHelper.ts +0 -359
- package/src/stores/query-builder/explorer/QueryBuilderExplorerState.ts +0 -813
- package/src/stores/query-builder/explorer/QueryBuilderPropertySearchState.ts +0 -333
- package/src/stores/query-builder/explorer/QueryFunctionsExplorerState.ts +0 -375
- package/src/stores/query-builder/fetch-structure/QueryBuilderFetchStructureImplementationState.ts +0 -65
- package/src/stores/query-builder/fetch-structure/QueryBuilderFetchStructureState.ts +0 -107
- package/src/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +0 -240
- package/src/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeStateBuilder.ts +0 -131
- package/src/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeUtil.ts +0 -282
- package/src/stores/query-builder/fetch-structure/graph-fetch/QueryBuilderGraphFetchValueSpecificationBuilder.ts +0 -154
- package/src/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionColumnState.ts +0 -327
- package/src/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionState.ts +0 -569
- package/src/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionStateBuilder.ts +0 -426
- package/src/stores/query-builder/fetch-structure/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +0 -416
- package/src/stores/query-builder/fetch-structure/projection/QueryResultSetModifierState.ts +0 -95
- package/src/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregateOperator.ts +0 -79
- package/src/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregateOperatorLoader.ts +0 -41
- package/src/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregationState.ts +0 -145
- package/src/stores/query-builder/fetch-structure/projection/aggregation/QueryBuilderAggregationStateBuilder.ts +0 -228
- package/src/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperatorHelper.ts +0 -109
- package/src/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Average.ts +0 -98
- package/src/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Count.ts +0 -106
- package/src/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Distinct.ts +0 -96
- package/src/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts +0 -173
- package/src/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_JoinString.ts +0 -155
- package/src/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Max.ts +0 -174
- package/src/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Min.ts +0 -174
- package/src/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.ts +0 -98
- package/src/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.ts +0 -98
- package/src/stores/query-builder/fetch-structure/projection/aggregation/operators/QueryBuilderAggregateOperator_Sum.ts +0 -88
- package/src/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperator.ts +0 -66
- package/src/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterOperatorLoader.ts +0 -65
- package/src/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterState.ts +0 -807
- package/src/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterStateBuilder.ts +0 -297
- package/src/stores/query-builder/fetch-structure/projection/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.ts +0 -121
- package/src/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts +0 -129
- package/src/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +0 -140
- package/src/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +0 -135
- package/src/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +0 -218
- package/src/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +0 -143
- package/src/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts +0 -70
- package/src/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_In.ts +0 -183
- package/src/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +0 -113
- package/src/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +0 -143
- package/src/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts +0 -70
- package/src/stores/query-builder/fetch-structure/projection/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +0 -135
- package/src/stores/query-builder/filter/QueryBuilderFilterOperator.ts +0 -52
- package/src/stores/query-builder/filter/QueryBuilderFilterOperatorLoader.ts +0 -65
- package/src/stores/query-builder/filter/QueryBuilderFilterState.ts +0 -736
- package/src/stores/query-builder/filter/QueryBuilderFilterStateBuilder.ts +0 -155
- package/src/stores/query-builder/filter/QueryBuilderFilterValueSpecificationBuilder.ts +0 -120
- package/src/stores/query-builder/filter/operators/QueryBuilderFilterOperatorHelper.ts +0 -524
- package/src/stores/query-builder/filter/operators/QueryBuilderFilterOperator_Contain.ts +0 -134
- package/src/stores/query-builder/filter/operators/QueryBuilderFilterOperator_EndWith.ts +0 -134
- package/src/stores/query-builder/filter/operators/QueryBuilderFilterOperator_Equal.ts +0 -211
- package/src/stores/query-builder/filter/operators/QueryBuilderFilterOperator_GreaterThan.ts +0 -145
- package/src/stores/query-builder/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.ts +0 -145
- package/src/stores/query-builder/filter/operators/QueryBuilderFilterOperator_In.ts +0 -181
- package/src/stores/query-builder/filter/operators/QueryBuilderFilterOperator_IsEmpty.ts +0 -125
- package/src/stores/query-builder/filter/operators/QueryBuilderFilterOperator_LessThan.ts +0 -145
- package/src/stores/query-builder/filter/operators/QueryBuilderFilterOperator_LessThanEqual.ts +0 -145
- package/src/stores/query-builder/filter/operators/QueryBuilderFilterOperator_StartWith.ts +0 -134
- package/src/stores/query-builder/workflows/ClassQueryBuilderState.ts +0 -80
- package/src/stores/query-builder/workflows/MappingQueryBuilderState.ts +0 -86
- package/src/stores/query-builder/workflows/ServiceQueryBuilderState.ts +0 -143
@@ -1,524 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
-
*
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
* you may not use this file except in compliance with the License.
|
6
|
-
* You may obtain a copy of the License at
|
7
|
-
*
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
*
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
* See the License for the specific language governing permissions and
|
14
|
-
* limitations under the License.
|
15
|
-
*/
|
16
|
-
|
17
|
-
import {
|
18
|
-
type ValueSpecification,
|
19
|
-
extractElementNameFromPath,
|
20
|
-
matchFunctionName,
|
21
|
-
LambdaFunctionInstanceValue,
|
22
|
-
VariableExpression,
|
23
|
-
AbstractPropertyExpression,
|
24
|
-
SimpleFunctionExpression,
|
25
|
-
TYPICAL_MULTIPLICITY_TYPE,
|
26
|
-
} from '@finos/legend-graph';
|
27
|
-
import {
|
28
|
-
guaranteeType,
|
29
|
-
guaranteeNonNullable,
|
30
|
-
assertTrue,
|
31
|
-
generateEnumerableNameFromToken,
|
32
|
-
} from '@finos/legend-shared';
|
33
|
-
import {
|
34
|
-
FilterConditionState,
|
35
|
-
type QueryBuilderFilterState,
|
36
|
-
} from '../QueryBuilderFilterState.js';
|
37
|
-
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
38
|
-
import { buildGenericLambdaFunctionInstanceValue } from '../../QueryBuilderValueSpecificationHelper.js';
|
39
|
-
import type { QueryBuilderFilterOperator } from '../QueryBuilderFilterOperator.js';
|
40
|
-
import { buildPropertyExpressionChain } from '../../QueryBuilderValueSpecificationBuilderHelper.js';
|
41
|
-
|
42
|
-
const getPropertyExpressionChainVariable = (
|
43
|
-
propertyExpression: AbstractPropertyExpression,
|
44
|
-
): VariableExpression => {
|
45
|
-
let currentExpression: ValueSpecification = propertyExpression;
|
46
|
-
while (currentExpression instanceof AbstractPropertyExpression) {
|
47
|
-
currentExpression = guaranteeNonNullable(
|
48
|
-
currentExpression.parametersValues[0],
|
49
|
-
);
|
50
|
-
// Take care of chains of subtype (a pattern that is not useful, but we want to support and rectify)
|
51
|
-
// $x.employees->subType(@Person)->subType(@Staff)
|
52
|
-
while (
|
53
|
-
currentExpression instanceof SimpleFunctionExpression &&
|
54
|
-
matchFunctionName(
|
55
|
-
currentExpression.functionName,
|
56
|
-
QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE,
|
57
|
-
)
|
58
|
-
) {
|
59
|
-
currentExpression = guaranteeNonNullable(
|
60
|
-
currentExpression.parametersValues[0],
|
61
|
-
);
|
62
|
-
}
|
63
|
-
}
|
64
|
-
return guaranteeType(currentExpression, VariableExpression);
|
65
|
-
};
|
66
|
-
|
67
|
-
const buildFilterConditionExpressionWithExists = (
|
68
|
-
filterConditionState: FilterConditionState,
|
69
|
-
operatorFunctionFullPath: string,
|
70
|
-
): ValueSpecification => {
|
71
|
-
const multiplicityOne =
|
72
|
-
filterConditionState.filterState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
73
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
74
|
-
);
|
75
|
-
assertTrue(
|
76
|
-
filterConditionState.propertyExpressionState.requiresExistsHandling,
|
77
|
-
);
|
78
|
-
// 1. Decompose property expression
|
79
|
-
const expressions: (AbstractPropertyExpression | SimpleFunctionExpression)[] =
|
80
|
-
[];
|
81
|
-
let currentPropertyExpression: ValueSpecification =
|
82
|
-
buildPropertyExpressionChain(
|
83
|
-
filterConditionState.propertyExpressionState.propertyExpression,
|
84
|
-
filterConditionState.propertyExpressionState.queryBuilderState,
|
85
|
-
);
|
86
|
-
while (
|
87
|
-
currentPropertyExpression instanceof AbstractPropertyExpression ||
|
88
|
-
(currentPropertyExpression instanceof SimpleFunctionExpression &&
|
89
|
-
matchFunctionName(
|
90
|
-
currentPropertyExpression.functionName,
|
91
|
-
QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE,
|
92
|
-
))
|
93
|
-
) {
|
94
|
-
let exp: AbstractPropertyExpression | SimpleFunctionExpression;
|
95
|
-
if (currentPropertyExpression instanceof SimpleFunctionExpression) {
|
96
|
-
exp = new SimpleFunctionExpression(
|
97
|
-
extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE),
|
98
|
-
multiplicityOne,
|
99
|
-
);
|
100
|
-
} else {
|
101
|
-
exp = new AbstractPropertyExpression('', multiplicityOne);
|
102
|
-
exp.func = currentPropertyExpression.func;
|
103
|
-
}
|
104
|
-
// NOTE: we must retain the rest of the parameters as those are derived property parameters
|
105
|
-
exp.parametersValues =
|
106
|
-
currentPropertyExpression.parametersValues.length > 1
|
107
|
-
? currentPropertyExpression.parametersValues.slice(1)
|
108
|
-
: [];
|
109
|
-
expressions.push(exp);
|
110
|
-
currentPropertyExpression = guaranteeNonNullable(
|
111
|
-
currentPropertyExpression.parametersValues[0],
|
112
|
-
);
|
113
|
-
}
|
114
|
-
const rootVariable = guaranteeType(
|
115
|
-
currentPropertyExpression,
|
116
|
-
VariableExpression,
|
117
|
-
);
|
118
|
-
|
119
|
-
// 2. Traverse the list of decomposed property expression backward, every time we encounter a property of
|
120
|
-
// multiplicity many, create a new property expression and keep track of it to later form the lambda chain
|
121
|
-
const existsLambdaParamNames = [
|
122
|
-
...filterConditionState.existsLambdaParamNames,
|
123
|
-
];
|
124
|
-
const existsLambdaPropertyChains: ValueSpecification[] = [rootVariable];
|
125
|
-
let currentParamNameIndex = 0;
|
126
|
-
|
127
|
-
for (let i = expressions.length - 1; i >= 0; --i) {
|
128
|
-
const exp = expressions[i] as
|
129
|
-
| AbstractPropertyExpression
|
130
|
-
| SimpleFunctionExpression;
|
131
|
-
// just keep adding to the property chain
|
132
|
-
exp.parametersValues.unshift(
|
133
|
-
existsLambdaPropertyChains[
|
134
|
-
existsLambdaPropertyChains.length - 1
|
135
|
-
] as ValueSpecification,
|
136
|
-
);
|
137
|
-
existsLambdaPropertyChains[existsLambdaPropertyChains.length - 1] = exp;
|
138
|
-
// ... but if the property is of multiplicity multiple, start a new property chain
|
139
|
-
if (
|
140
|
-
exp instanceof AbstractPropertyExpression &&
|
141
|
-
(exp.func.multiplicity.upperBound === undefined ||
|
142
|
-
exp.func.multiplicity.upperBound > 1)
|
143
|
-
) {
|
144
|
-
// NOTE: we need to find/generate the property chain variable name
|
145
|
-
// here, by doing this, we try our best to respect original/user-input variable name
|
146
|
-
if (currentParamNameIndex > existsLambdaParamNames.length - 1) {
|
147
|
-
existsLambdaParamNames.push(
|
148
|
-
generateEnumerableNameFromToken(
|
149
|
-
existsLambdaParamNames,
|
150
|
-
filterConditionState.filterState.lambdaParameterName,
|
151
|
-
),
|
152
|
-
);
|
153
|
-
assertTrue(currentParamNameIndex === existsLambdaParamNames.length - 1);
|
154
|
-
}
|
155
|
-
existsLambdaPropertyChains.push(
|
156
|
-
new VariableExpression(
|
157
|
-
existsLambdaParamNames[currentParamNameIndex] as string,
|
158
|
-
multiplicityOne,
|
159
|
-
),
|
160
|
-
);
|
161
|
-
currentParamNameIndex++;
|
162
|
-
}
|
163
|
-
}
|
164
|
-
|
165
|
-
// 3. Build each property chain into an exists() simple function expression
|
166
|
-
const simpleFunctionExpressions: SimpleFunctionExpression[] = [];
|
167
|
-
for (let i = 0; i < existsLambdaPropertyChains.length - 1; ++i) {
|
168
|
-
const simpleFunctionExpression = new SimpleFunctionExpression(
|
169
|
-
extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.EXISTS),
|
170
|
-
multiplicityOne,
|
171
|
-
);
|
172
|
-
simpleFunctionExpression.parametersValues.push(
|
173
|
-
existsLambdaPropertyChains[i] as ValueSpecification,
|
174
|
-
);
|
175
|
-
simpleFunctionExpressions.push(simpleFunctionExpression);
|
176
|
-
}
|
177
|
-
// build the leaf simple function expression which uses the operator
|
178
|
-
const operatorEpression = new SimpleFunctionExpression(
|
179
|
-
extractElementNameFromPath(operatorFunctionFullPath),
|
180
|
-
multiplicityOne,
|
181
|
-
);
|
182
|
-
operatorEpression.parametersValues.push(
|
183
|
-
existsLambdaPropertyChains[
|
184
|
-
existsLambdaPropertyChains.length - 1
|
185
|
-
] as ValueSpecification,
|
186
|
-
);
|
187
|
-
// NOTE: there are simple operators which do not require any params (e.g. isEmpty)
|
188
|
-
if (filterConditionState.value) {
|
189
|
-
operatorEpression.parametersValues.push(filterConditionState.value);
|
190
|
-
}
|
191
|
-
simpleFunctionExpressions.push(operatorEpression);
|
192
|
-
|
193
|
-
// 4. Build the exists() lambda chain
|
194
|
-
assertTrue(simpleFunctionExpressions.length >= 2);
|
195
|
-
for (let i = simpleFunctionExpressions.length - 2; i >= 0; --i) {
|
196
|
-
const currentSFE = simpleFunctionExpressions[i] as SimpleFunctionExpression;
|
197
|
-
const childSFE = simpleFunctionExpressions[
|
198
|
-
i + 1
|
199
|
-
] as SimpleFunctionExpression;
|
200
|
-
// build child SFE lambda
|
201
|
-
const _existsLambdaVariable = childSFE.parametersValues[0];
|
202
|
-
const existsLambdaVariable =
|
203
|
-
_existsLambdaVariable instanceof AbstractPropertyExpression
|
204
|
-
? getPropertyExpressionChainVariable(_existsLambdaVariable)
|
205
|
-
: guaranteeType(_existsLambdaVariable, VariableExpression);
|
206
|
-
const existsLambda = buildGenericLambdaFunctionInstanceValue(
|
207
|
-
existsLambdaVariable.name,
|
208
|
-
[childSFE],
|
209
|
-
filterConditionState.filterState.queryBuilderState.graphManagerState
|
210
|
-
.graph,
|
211
|
-
);
|
212
|
-
// add the child SFE lambda to the current SFE parameters
|
213
|
-
currentSFE.parametersValues.push(existsLambda);
|
214
|
-
}
|
215
|
-
|
216
|
-
return simpleFunctionExpressions[0] as SimpleFunctionExpression;
|
217
|
-
};
|
218
|
-
|
219
|
-
export const buildFilterConditionExpression = (
|
220
|
-
filterConditionState: FilterConditionState,
|
221
|
-
operatorFunctionFullPath: string,
|
222
|
-
): ValueSpecification => {
|
223
|
-
const multiplicityOne =
|
224
|
-
filterConditionState.filterState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
225
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
226
|
-
);
|
227
|
-
if (filterConditionState.propertyExpressionState.requiresExistsHandling) {
|
228
|
-
return buildFilterConditionExpressionWithExists(
|
229
|
-
filterConditionState,
|
230
|
-
operatorFunctionFullPath,
|
231
|
-
);
|
232
|
-
}
|
233
|
-
const expression = new SimpleFunctionExpression(
|
234
|
-
extractElementNameFromPath(operatorFunctionFullPath),
|
235
|
-
multiplicityOne,
|
236
|
-
);
|
237
|
-
const propertyExpression = buildPropertyExpressionChain(
|
238
|
-
filterConditionState.propertyExpressionState.propertyExpression,
|
239
|
-
filterConditionState.propertyExpressionState.queryBuilderState,
|
240
|
-
);
|
241
|
-
expression.parametersValues.push(guaranteeNonNullable(propertyExpression));
|
242
|
-
// NOTE: there are simple operators which do not require any params (e.g. isEmpty)
|
243
|
-
if (filterConditionState.value) {
|
244
|
-
expression.parametersValues.push(filterConditionState.value);
|
245
|
-
}
|
246
|
-
return expression;
|
247
|
-
};
|
248
|
-
|
249
|
-
/**
|
250
|
-
* Handling exists() lambda found in the filter condition expression.
|
251
|
-
* The general approach for handling exists() is we will flat out the chain
|
252
|
-
* of exists() expressions into a normal filter condition state.
|
253
|
-
*
|
254
|
-
* When we build the condition function expression from the filter condition state,
|
255
|
-
* we walk the property expression chain, find property with multiplitiy upper bound
|
256
|
-
* other than 1 and create an exists() lambda there
|
257
|
-
*
|
258
|
-
* NOTE: to ensure we respect user's choice of variable name, as we build the state
|
259
|
-
* we record the lambda parameter names, so we can use those while re-building the function
|
260
|
-
* If for some reason, this list is stale, we can start adding our own parameter names
|
261
|
-
*/
|
262
|
-
const buildFilterConditionStateWithExists = (
|
263
|
-
filterState: QueryBuilderFilterState,
|
264
|
-
parentExpression: SimpleFunctionExpression,
|
265
|
-
operatorFunctionFullPath: string,
|
266
|
-
): [FilterConditionState | undefined, SimpleFunctionExpression | undefined] => {
|
267
|
-
if (
|
268
|
-
matchFunctionName(
|
269
|
-
parentExpression.functionName,
|
270
|
-
QUERY_BUILDER_SUPPORTED_FUNCTIONS.EXISTS,
|
271
|
-
)
|
272
|
-
) {
|
273
|
-
// 1. Decompose the exists() lambda chain into property expression chains
|
274
|
-
const existsLambdaParameterNames: string[] = [];
|
275
|
-
|
276
|
-
// `existsLambdaExpressions` should be a list of `AbstractPropertyExpression`
|
277
|
-
// e.g. |Firm.all()->filter(x|$x.employees->exists(x_1|$x_1->subType(@Develper).id->exists(x_2|$x_2 == 1))
|
278
|
-
// In the first exists() lambda, `$x_1->subType(@Develper).id` is an `AbstractPropertyExpression`.
|
279
|
-
const existsLambdaExpressions: AbstractPropertyExpression[] = [];
|
280
|
-
let mainFilterExpression: SimpleFunctionExpression = parentExpression;
|
281
|
-
while (
|
282
|
-
matchFunctionName(
|
283
|
-
mainFilterExpression.functionName,
|
284
|
-
QUERY_BUILDER_SUPPORTED_FUNCTIONS.EXISTS,
|
285
|
-
)
|
286
|
-
) {
|
287
|
-
const existsLambda = guaranteeNonNullable(
|
288
|
-
guaranteeType(
|
289
|
-
mainFilterExpression.parametersValues[1],
|
290
|
-
LambdaFunctionInstanceValue,
|
291
|
-
).values[0],
|
292
|
-
`Can't process exists() expression: exists() lambda is missing`,
|
293
|
-
);
|
294
|
-
assertTrue(
|
295
|
-
existsLambda.expressionSequence.length === 1,
|
296
|
-
`Can't process exists() expression: exists() lambda body should hold an expression`,
|
297
|
-
);
|
298
|
-
mainFilterExpression = guaranteeType(
|
299
|
-
existsLambda.expressionSequence[0],
|
300
|
-
SimpleFunctionExpression,
|
301
|
-
`Can't process exists() expression: exists() lambda body should hold an expression`,
|
302
|
-
);
|
303
|
-
|
304
|
-
// record the lambda parameter name
|
305
|
-
assertTrue(
|
306
|
-
existsLambda.functionType.parameters.length === 1,
|
307
|
-
`Can't process exists() expression: exists() lambda should have 1 parameter`,
|
308
|
-
);
|
309
|
-
existsLambdaParameterNames.push(
|
310
|
-
guaranteeType(
|
311
|
-
existsLambda.functionType.parameters[0],
|
312
|
-
VariableExpression,
|
313
|
-
`Can't process exists() expression: exists() lambda should have 1 parameter`,
|
314
|
-
).name,
|
315
|
-
);
|
316
|
-
|
317
|
-
// record the lambda property expression
|
318
|
-
if (
|
319
|
-
mainFilterExpression.parametersValues[0] instanceof
|
320
|
-
AbstractPropertyExpression
|
321
|
-
) {
|
322
|
-
existsLambdaExpressions.push(mainFilterExpression.parametersValues[0]);
|
323
|
-
}
|
324
|
-
}
|
325
|
-
// NOTE: make sure that the inner most function expression is the one we support
|
326
|
-
if (
|
327
|
-
!matchFunctionName(
|
328
|
-
mainFilterExpression.functionName,
|
329
|
-
operatorFunctionFullPath,
|
330
|
-
)
|
331
|
-
) {
|
332
|
-
return [undefined, undefined];
|
333
|
-
}
|
334
|
-
|
335
|
-
// 2. Build the property expression
|
336
|
-
const multiplicityOne =
|
337
|
-
filterState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
338
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
339
|
-
);
|
340
|
-
const initialPropertyExpression = guaranteeType(
|
341
|
-
parentExpression.parametersValues[0],
|
342
|
-
AbstractPropertyExpression,
|
343
|
-
);
|
344
|
-
let flattenedPropertyExpressionChain = new AbstractPropertyExpression(
|
345
|
-
'',
|
346
|
-
multiplicityOne,
|
347
|
-
);
|
348
|
-
flattenedPropertyExpressionChain.func = initialPropertyExpression.func;
|
349
|
-
flattenedPropertyExpressionChain.parametersValues =
|
350
|
-
initialPropertyExpression.parametersValues;
|
351
|
-
|
352
|
-
for (const expression of existsLambdaExpressions) {
|
353
|
-
// when rebuilding the property expression chain, disregard the initial variable that starts the chain
|
354
|
-
const expressions: (
|
355
|
-
| AbstractPropertyExpression
|
356
|
-
| SimpleFunctionExpression
|
357
|
-
)[] = [];
|
358
|
-
let currentExpression: ValueSpecification = expression;
|
359
|
-
while (
|
360
|
-
currentExpression instanceof AbstractPropertyExpression ||
|
361
|
-
(currentExpression instanceof SimpleFunctionExpression &&
|
362
|
-
matchFunctionName(
|
363
|
-
currentExpression.functionName,
|
364
|
-
QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE,
|
365
|
-
))
|
366
|
-
) {
|
367
|
-
if (currentExpression instanceof SimpleFunctionExpression) {
|
368
|
-
const functionExpression = new SimpleFunctionExpression(
|
369
|
-
extractElementNameFromPath(
|
370
|
-
QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE,
|
371
|
-
),
|
372
|
-
multiplicityOne,
|
373
|
-
);
|
374
|
-
functionExpression.parametersValues.unshift(
|
375
|
-
guaranteeNonNullable(currentExpression.parametersValues[1]),
|
376
|
-
);
|
377
|
-
expressions.push(functionExpression);
|
378
|
-
} else if (currentExpression instanceof AbstractPropertyExpression) {
|
379
|
-
const propertyExpression = new AbstractPropertyExpression(
|
380
|
-
'',
|
381
|
-
multiplicityOne,
|
382
|
-
);
|
383
|
-
propertyExpression.func = currentExpression.func;
|
384
|
-
if (currentExpression.parametersValues.length > 1) {
|
385
|
-
// NOTE: we must retain the rest of the parameters as those are derived property parameters
|
386
|
-
propertyExpression.parametersValues =
|
387
|
-
currentExpression.parametersValues.slice(1);
|
388
|
-
} else {
|
389
|
-
propertyExpression.parametersValues = [];
|
390
|
-
}
|
391
|
-
expressions.push(propertyExpression);
|
392
|
-
}
|
393
|
-
currentExpression = guaranteeNonNullable(
|
394
|
-
currentExpression.parametersValues[0],
|
395
|
-
);
|
396
|
-
}
|
397
|
-
assertTrue(
|
398
|
-
expressions.length > 0,
|
399
|
-
`Can't process exists() expression: exists() usage with non-chain property expression is not supported`,
|
400
|
-
);
|
401
|
-
for (let i = 0; i < expressions.length - 1; ++i) {
|
402
|
-
(
|
403
|
-
expressions[i] as
|
404
|
-
| AbstractPropertyExpression
|
405
|
-
| SimpleFunctionExpression
|
406
|
-
).parametersValues.unshift(
|
407
|
-
expressions[i + 1] as
|
408
|
-
| AbstractPropertyExpression
|
409
|
-
| SimpleFunctionExpression,
|
410
|
-
);
|
411
|
-
}
|
412
|
-
(
|
413
|
-
expressions[expressions.length - 1] as
|
414
|
-
| AbstractPropertyExpression
|
415
|
-
| SimpleFunctionExpression
|
416
|
-
).parametersValues.unshift(flattenedPropertyExpressionChain);
|
417
|
-
flattenedPropertyExpressionChain = guaranteeType(
|
418
|
-
expressions[0],
|
419
|
-
AbstractPropertyExpression,
|
420
|
-
`Can't process exists() expression: can't flatten to a property expression`,
|
421
|
-
);
|
422
|
-
}
|
423
|
-
|
424
|
-
// 3. Build the filter condition state with the simplified property expression
|
425
|
-
const filterConditionState = new FilterConditionState(
|
426
|
-
filterState,
|
427
|
-
flattenedPropertyExpressionChain,
|
428
|
-
);
|
429
|
-
existsLambdaParameterNames.forEach((paramName) =>
|
430
|
-
filterConditionState.addExistsLambdaParamNames(paramName),
|
431
|
-
);
|
432
|
-
return [filterConditionState, mainFilterExpression];
|
433
|
-
}
|
434
|
-
return [undefined, undefined];
|
435
|
-
};
|
436
|
-
|
437
|
-
export const buildFilterConditionState = (
|
438
|
-
filterState: QueryBuilderFilterState,
|
439
|
-
expression: SimpleFunctionExpression,
|
440
|
-
operatorFunctionFullPath: string,
|
441
|
-
operator: QueryBuilderFilterOperator,
|
442
|
-
/**
|
443
|
-
* Use this flag for operator that does not require any param (e.g. isEmpty)
|
444
|
-
* NOTE: this is not the cleanest way to do this, if we find ourselves adding more and more customization
|
445
|
-
* to this utility function, we should just create a bunch of different methods
|
446
|
-
*/
|
447
|
-
hasNoValue = false,
|
448
|
-
): FilterConditionState | undefined => {
|
449
|
-
let filterConditionState: FilterConditionState | undefined;
|
450
|
-
// This is the simple expression of form `{property} {operator} {value}`
|
451
|
-
// This is used for post-build checks (useful when this expression is nested inside a longer
|
452
|
-
// chain of expression, e.g. ->exists($x|x == 'something'), etc.)
|
453
|
-
let mainExpressionWithOperator: SimpleFunctionExpression | undefined;
|
454
|
-
|
455
|
-
if (matchFunctionName(expression.functionName, operatorFunctionFullPath)) {
|
456
|
-
assertTrue(
|
457
|
-
expression.parametersValues.length === (hasNoValue ? 1 : 2),
|
458
|
-
`Can't process ${extractElementNameFromPath(
|
459
|
-
operatorFunctionFullPath,
|
460
|
-
)}() expression: ${extractElementNameFromPath(
|
461
|
-
operatorFunctionFullPath,
|
462
|
-
)}() expects ${hasNoValue ? 'no argument' : '1 argument'}`,
|
463
|
-
);
|
464
|
-
|
465
|
-
const propertyExpression = guaranteeType(
|
466
|
-
expression.parametersValues[0],
|
467
|
-
AbstractPropertyExpression,
|
468
|
-
`Can't process ${extractElementNameFromPath(
|
469
|
-
operatorFunctionFullPath,
|
470
|
-
)}() expression: expects property expression in lambda body`,
|
471
|
-
);
|
472
|
-
|
473
|
-
const variableName =
|
474
|
-
getPropertyExpressionChainVariable(propertyExpression).name;
|
475
|
-
assertTrue(
|
476
|
-
filterState.lambdaParameterName === variableName,
|
477
|
-
`Can't process ${extractElementNameFromPath(
|
478
|
-
operatorFunctionFullPath,
|
479
|
-
)}() expression: expects variable used in lambda body '${variableName}' to match lambda parameter '${
|
480
|
-
filterState.lambdaParameterName
|
481
|
-
}'`,
|
482
|
-
);
|
483
|
-
|
484
|
-
filterConditionState = new FilterConditionState(
|
485
|
-
filterState,
|
486
|
-
propertyExpression,
|
487
|
-
);
|
488
|
-
mainExpressionWithOperator = expression;
|
489
|
-
} else if (
|
490
|
-
matchFunctionName(
|
491
|
-
expression.functionName,
|
492
|
-
QUERY_BUILDER_SUPPORTED_FUNCTIONS.EXISTS,
|
493
|
-
)
|
494
|
-
) {
|
495
|
-
[filterConditionState, mainExpressionWithOperator] =
|
496
|
-
buildFilterConditionStateWithExists(
|
497
|
-
filterState,
|
498
|
-
expression,
|
499
|
-
operatorFunctionFullPath,
|
500
|
-
);
|
501
|
-
}
|
502
|
-
|
503
|
-
// Post-build check: make sure the simple filter condition LHS, RHS, and operator are compatible
|
504
|
-
// and set the value of the condition in the state accordingly.
|
505
|
-
if (filterConditionState && mainExpressionWithOperator) {
|
506
|
-
assertTrue(
|
507
|
-
operator.isCompatibleWithFilterConditionProperty(filterConditionState),
|
508
|
-
`Can't process ${extractElementNameFromPath(
|
509
|
-
operatorFunctionFullPath,
|
510
|
-
)}() expression: property is not compatible with operator`,
|
511
|
-
);
|
512
|
-
filterConditionState.setOperator(operator);
|
513
|
-
filterConditionState.setValue(
|
514
|
-
hasNoValue ? undefined : mainExpressionWithOperator.parametersValues[1],
|
515
|
-
);
|
516
|
-
if (!operator.isCompatibleWithFilterConditionValue(filterConditionState)) {
|
517
|
-
filterConditionState.setValue(
|
518
|
-
operator.getDefaultFilterConditionValue(filterConditionState),
|
519
|
-
);
|
520
|
-
}
|
521
|
-
return filterConditionState;
|
522
|
-
}
|
523
|
-
return undefined;
|
524
|
-
};
|
@@ -1,134 +0,0 @@
|
|
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 type {
|
18
|
-
QueryBuilderFilterState,
|
19
|
-
FilterConditionState,
|
20
|
-
} from '../QueryBuilderFilterState.js';
|
21
|
-
import { QueryBuilderFilterOperator } from '../QueryBuilderFilterOperator.js';
|
22
|
-
import {
|
23
|
-
PRIMITIVE_TYPE,
|
24
|
-
type ValueSpecification,
|
25
|
-
type SimpleFunctionExpression,
|
26
|
-
buildPrimitiveInstanceValue,
|
27
|
-
} from '@finos/legend-graph';
|
28
|
-
import { UnsupportedOperationError } from '@finos/legend-shared';
|
29
|
-
import {
|
30
|
-
buildFilterConditionState,
|
31
|
-
buildFilterConditionExpression,
|
32
|
-
} from './QueryBuilderFilterOperatorHelper.js';
|
33
|
-
import {
|
34
|
-
buildNotExpression,
|
35
|
-
generateDefaultValueForPrimitiveType,
|
36
|
-
getNonCollectionValueSpecificationType,
|
37
|
-
unwrapNotExpression,
|
38
|
-
} from '../../QueryBuilderValueSpecificationHelper.js';
|
39
|
-
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
40
|
-
|
41
|
-
export class QueryBuilderFilterOperator_Contain extends QueryBuilderFilterOperator {
|
42
|
-
getLabel(filterConditionState: FilterConditionState): string {
|
43
|
-
return 'contains';
|
44
|
-
}
|
45
|
-
|
46
|
-
isCompatibleWithFilterConditionProperty(
|
47
|
-
filterConditionState: FilterConditionState,
|
48
|
-
): boolean {
|
49
|
-
const propertyType =
|
50
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
51
|
-
.genericType.value.rawType;
|
52
|
-
return PRIMITIVE_TYPE.STRING === propertyType.path;
|
53
|
-
}
|
54
|
-
|
55
|
-
isCompatibleWithFilterConditionValue(
|
56
|
-
filterConditionState: FilterConditionState,
|
57
|
-
): boolean {
|
58
|
-
const type = filterConditionState.value
|
59
|
-
? getNonCollectionValueSpecificationType(filterConditionState.value)
|
60
|
-
: undefined;
|
61
|
-
return PRIMITIVE_TYPE.STRING === type?.path;
|
62
|
-
}
|
63
|
-
|
64
|
-
getDefaultFilterConditionValue(
|
65
|
-
filterConditionState: FilterConditionState,
|
66
|
-
): ValueSpecification | undefined {
|
67
|
-
const propertyType =
|
68
|
-
filterConditionState.propertyExpressionState.propertyExpression.func
|
69
|
-
.genericType.value.rawType;
|
70
|
-
switch (propertyType.path) {
|
71
|
-
case PRIMITIVE_TYPE.STRING: {
|
72
|
-
return buildPrimitiveInstanceValue(
|
73
|
-
filterConditionState.filterState.queryBuilderState.graphManagerState
|
74
|
-
.graph,
|
75
|
-
propertyType.path,
|
76
|
-
generateDefaultValueForPrimitiveType(propertyType.path),
|
77
|
-
);
|
78
|
-
}
|
79
|
-
default:
|
80
|
-
throw new UnsupportedOperationError(
|
81
|
-
`Can't get default value for filter operator '${this.getLabel(
|
82
|
-
filterConditionState,
|
83
|
-
)}' when the LHS property is of type '${propertyType.path}'`,
|
84
|
-
);
|
85
|
-
}
|
86
|
-
}
|
87
|
-
|
88
|
-
buildFilterConditionExpression(
|
89
|
-
filterConditionState: FilterConditionState,
|
90
|
-
): ValueSpecification {
|
91
|
-
return buildFilterConditionExpression(
|
92
|
-
filterConditionState,
|
93
|
-
QUERY_BUILDER_SUPPORTED_FUNCTIONS.CONTAINS,
|
94
|
-
);
|
95
|
-
}
|
96
|
-
|
97
|
-
buildFilterConditionState(
|
98
|
-
filterState: QueryBuilderFilterState,
|
99
|
-
expression: SimpleFunctionExpression,
|
100
|
-
): FilterConditionState | undefined {
|
101
|
-
return buildFilterConditionState(
|
102
|
-
filterState,
|
103
|
-
expression,
|
104
|
-
QUERY_BUILDER_SUPPORTED_FUNCTIONS.CONTAINS,
|
105
|
-
this,
|
106
|
-
);
|
107
|
-
}
|
108
|
-
}
|
109
|
-
|
110
|
-
export class QueryBuilderFilterOperator_NotContain extends QueryBuilderFilterOperator_Contain {
|
111
|
-
override getLabel(filterConditionState: FilterConditionState): string {
|
112
|
-
return `doesn't contain`;
|
113
|
-
}
|
114
|
-
|
115
|
-
override buildFilterConditionExpression(
|
116
|
-
filterConditionState: FilterConditionState,
|
117
|
-
): ValueSpecification {
|
118
|
-
return buildNotExpression(
|
119
|
-
filterConditionState.filterState.queryBuilderState.graphManagerState
|
120
|
-
.graph,
|
121
|
-
super.buildFilterConditionExpression(filterConditionState),
|
122
|
-
);
|
123
|
-
}
|
124
|
-
|
125
|
-
override buildFilterConditionState(
|
126
|
-
filterState: QueryBuilderFilterState,
|
127
|
-
expression: SimpleFunctionExpression,
|
128
|
-
): FilterConditionState | undefined {
|
129
|
-
const innerExpression = unwrapNotExpression(expression);
|
130
|
-
return innerExpression
|
131
|
-
? super.buildFilterConditionState(filterState, innerExpression)
|
132
|
-
: undefined;
|
133
|
-
}
|
134
|
-
}
|