@finos/legend-application-repl 0.0.21 → 0.0.23
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/{stores/CompletionResult.d.ts → __lib__/LegendREPLEvent.d.ts} +4 -6
- package/lib/__lib__/LegendREPLEvent.d.ts.map +1 -0
- package/lib/__lib__/LegendREPLEvent.js +21 -0
- package/lib/__lib__/LegendREPLEvent.js.map +1 -0
- package/lib/{stores/dataCube/DataCubePanelState.js → __lib__/LegendREPLSetting.d.ts} +3 -6
- package/lib/__lib__/LegendREPLSetting.d.ts.map +1 -0
- package/lib/{components/grid/TDSLambdaBuilder.d.ts → __lib__/LegendREPLSetting.js} +5 -4
- package/lib/__lib__/LegendREPLSetting.js.map +1 -0
- package/lib/application/{LegendREPLGridClient.d.ts → LegendREPL.d.ts} +10 -10
- package/lib/application/LegendREPL.d.ts.map +1 -0
- package/lib/application/{LegendREPLGridClient.js → LegendREPL.js} +10 -15
- package/lib/application/LegendREPL.js.map +1 -0
- package/lib/application/{LegendREPLGridClientApplicationConfig.d.ts → LegendREPLApplicationConfig.d.ts} +4 -4
- package/lib/application/LegendREPLApplicationConfig.d.ts.map +1 -0
- package/lib/application/{LegendREPLGridClientApplicationConfig.js → LegendREPLApplicationConfig.js} +2 -2
- package/lib/application/LegendREPLApplicationConfig.js.map +1 -0
- package/lib/application/{LegendREPLGridClientPluginManager.d.ts → LegendREPLPluginManager.d.ts} +4 -4
- package/lib/application/LegendREPLPluginManager.d.ts.map +1 -0
- package/lib/application/{LegendREPLGridClientPluginManager.js → LegendREPLPluginManager.js} +3 -3
- package/lib/application/LegendREPLPluginManager.js.map +1 -0
- package/lib/components/{Core_LegendREPLGridClientApplicationPlugin.d.ts → Core_LegendREPLApplicationPlugin.d.ts} +3 -3
- package/lib/components/Core_LegendREPLApplicationPlugin.d.ts.map +1 -0
- package/lib/components/{Core_LegendREPLGridClientApplicationPlugin.js → Core_LegendREPLApplicationPlugin.js} +12 -7
- package/lib/components/Core_LegendREPLApplicationPlugin.js.map +1 -0
- package/lib/components/{AgGrid.d.ts → LegendREPLApplication.d.ts} +8 -6
- package/lib/components/LegendREPLApplication.d.ts.map +1 -0
- package/lib/components/LegendREPLApplication.js +32 -0
- package/lib/components/LegendREPLApplication.js.map +1 -0
- package/lib/components/{LegendREPLGridClientFrameworkProvider.d.ts → LegendREPLFrameworkProvider.d.ts} +4 -4
- package/lib/components/LegendREPLFrameworkProvider.d.ts.map +1 -0
- package/lib/components/{LegendREPLGridClientFrameworkProvider.js → LegendREPLFrameworkProvider.js} +9 -9
- package/lib/components/LegendREPLFrameworkProvider.js.map +1 -0
- package/lib/components/{REPLGridClientStoreProvider.d.ts → REPLStoreProvider.d.ts} +5 -5
- package/lib/components/REPLStoreProvider.d.ts.map +1 -0
- package/lib/components/{REPLGridClientStoreProvider.js → REPLStoreProvider.js} +9 -9
- package/lib/components/REPLStoreProvider.js.map +1 -0
- package/lib/components/dataCube/DataCube.d.ts +19 -0
- package/lib/components/dataCube/DataCube.d.ts.map +1 -0
- package/lib/components/dataCube/DataCube.js +33 -0
- package/lib/components/dataCube/DataCube.js.map +1 -0
- package/lib/components/{REPLGridClient.d.ts → dataCube/editor/DataCubeEditor.d.ts} +5 -9
- package/lib/components/dataCube/editor/DataCubeEditor.d.ts.map +1 -0
- package/lib/components/dataCube/editor/DataCubeEditor.js +54 -0
- package/lib/components/dataCube/editor/DataCubeEditor.js.map +1 -0
- package/lib/components/dataCube/editor/DataCubeEditorCodePanel.d.ts +19 -0
- package/lib/components/dataCube/editor/DataCubeEditorCodePanel.d.ts.map +1 -0
- package/lib/components/dataCube/{DataCubeQueryTextEditor.js → editor/DataCubeEditorCodePanel.js} +20 -20
- package/lib/components/dataCube/editor/DataCubeEditorCodePanel.js.map +1 -0
- package/lib/components/dataCube/{DataCubeGridEditor.d.ts → editor/DataCubeEditorSortPanel.d.ts} +4 -4
- package/lib/components/dataCube/editor/DataCubeEditorSortPanel.d.ts.map +1 -0
- package/lib/components/dataCube/editor/DataCubeEditorSortPanel.js +61 -0
- package/lib/components/dataCube/editor/DataCubeEditorSortPanel.js.map +1 -0
- package/lib/components/dataCube/{DataCubeQueryTextEditor.d.ts → grid/DataCubeGrid.d.ts} +4 -4
- package/lib/components/dataCube/grid/DataCubeGrid.d.ts.map +1 -0
- package/lib/components/dataCube/grid/DataCubeGrid.js +59 -0
- package/lib/components/dataCube/grid/DataCubeGrid.js.map +1 -0
- package/lib/grid.css +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +8 -8
- package/lib/index.js.map +1 -1
- package/lib/package.json +3 -3
- package/lib/repl.css +1 -1
- package/lib/server/REPLServerClient.d.ts +11 -13
- package/lib/server/REPLServerClient.d.ts.map +1 -1
- package/lib/server/REPLServerClient.js +27 -15
- package/lib/server/REPLServerClient.js.map +1 -1
- package/lib/server/models/DataCubeEngineModels.d.ts +50 -0
- package/lib/server/models/DataCubeEngineModels.d.ts.map +1 -0
- package/lib/server/models/DataCubeEngineModels.js +39 -0
- package/lib/server/models/DataCubeEngineModels.js.map +1 -0
- package/lib/server/models/DataCubeQuery.d.ts +41 -0
- package/lib/server/models/DataCubeQuery.d.ts.map +1 -0
- package/lib/server/models/DataCubeQuery.js +78 -0
- package/lib/server/models/DataCubeQuery.js.map +1 -0
- package/lib/stores/{LegendREPLGridClientApplicationPlugin.d.ts → LegendREPLApplicationPlugin.d.ts} +4 -4
- package/lib/stores/LegendREPLApplicationPlugin.d.ts.map +1 -0
- package/lib/stores/{LegendREPLGridClientApplicationPlugin.js → LegendREPLApplicationPlugin.js} +2 -2
- package/lib/stores/LegendREPLApplicationPlugin.js.map +1 -0
- package/lib/stores/LegendREPLBaseStore.d.ts +25 -0
- package/lib/stores/LegendREPLBaseStore.d.ts.map +1 -0
- package/lib/stores/{LegendREPLGridClientBaseStore.js → LegendREPLBaseStore.js} +2 -2
- package/lib/stores/LegendREPLBaseStore.js.map +1 -0
- package/lib/stores/dataCube/DataCubeMetaModelConst.d.ts +49 -0
- package/lib/stores/dataCube/DataCubeMetaModelConst.d.ts.map +1 -0
- package/lib/stores/dataCube/DataCubeMetaModelConst.js +57 -0
- package/lib/stores/dataCube/DataCubeMetaModelConst.js.map +1 -0
- package/lib/stores/dataCube/DataCubeState.d.ts +18 -23
- package/lib/stores/dataCube/DataCubeState.d.ts.map +1 -1
- package/lib/stores/dataCube/DataCubeState.js +31 -181
- package/lib/stores/dataCube/DataCubeState.js.map +1 -1
- package/lib/stores/{REPLGridClientStore.d.ts → dataCube/DataCubeStore.d.ts} +7 -7
- package/lib/stores/dataCube/DataCubeStore.d.ts.map +1 -0
- package/lib/stores/{REPLGridClientStore.js → dataCube/DataCubeStore.js} +5 -4
- package/lib/stores/dataCube/DataCubeStore.js.map +1 -0
- package/lib/stores/dataCube/core/DataCubeEngine.d.ts +29 -0
- package/lib/stores/dataCube/core/DataCubeEngine.d.ts.map +1 -0
- package/lib/stores/dataCube/core/DataCubeEngine.js +47 -0
- package/lib/stores/dataCube/core/DataCubeEngine.js.map +1 -0
- package/lib/stores/dataCube/core/DataCubeQueryAnalyzer.d.ts +37 -0
- package/lib/stores/dataCube/core/DataCubeQueryAnalyzer.d.ts.map +1 -0
- package/lib/stores/dataCube/core/DataCubeQueryAnalyzer.js +269 -0
- package/lib/stores/dataCube/core/DataCubeQueryAnalyzer.js.map +1 -0
- package/lib/stores/dataCube/core/DataCubeQueryBuilder.d.ts +19 -0
- package/lib/stores/dataCube/core/DataCubeQueryBuilder.d.ts.map +1 -0
- package/lib/stores/dataCube/core/DataCubeQueryBuilder.js +98 -0
- package/lib/stores/dataCube/core/DataCubeQueryBuilder.js.map +1 -0
- package/lib/stores/dataCube/core/DataCubeQuerySnapshot.d.ts +73 -0
- package/lib/stores/dataCube/core/DataCubeQuerySnapshot.d.ts.map +1 -0
- package/lib/stores/dataCube/core/DataCubeQuerySnapshot.js +56 -0
- package/lib/stores/dataCube/core/DataCubeQuerySnapshot.js.map +1 -0
- package/lib/stores/dataCube/{DataCubePanelState.d.ts → core/DataCubeQuerySnapshotManager.d.ts} +11 -6
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotManager.d.ts.map +1 -0
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotManager.js +46 -0
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotManager.js.map +1 -0
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.d.ts +27 -0
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.d.ts.map +1 -0
- package/lib/{components/grid/REPLGridServerResult.js → stores/dataCube/core/DataCubeQuerySnapshotSubscriber.js} +18 -10
- package/lib/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.js.map +1 -0
- package/lib/stores/dataCube/{DataCubeQueryEditorState.d.ts → editor/DataCubeEditorCodeState.d.ts} +12 -2
- package/lib/stores/dataCube/editor/DataCubeEditorCodeState.d.ts.map +1 -0
- package/lib/stores/dataCube/editor/DataCubeEditorCodeState.js +87 -0
- package/lib/stores/dataCube/editor/DataCubeEditorCodeState.js.map +1 -0
- package/lib/stores/dataCube/editor/DataCubeEditorQuerySnapshotBuilder.d.ts +28 -0
- package/lib/stores/dataCube/editor/DataCubeEditorQuerySnapshotBuilder.d.ts.map +1 -0
- package/lib/stores/dataCube/editor/DataCubeEditorQuerySnapshotBuilder.js +17 -0
- package/lib/stores/dataCube/editor/DataCubeEditorQuerySnapshotBuilder.js.map +1 -0
- package/lib/stores/dataCube/editor/DataCubeEditorSortState.d.ts +46 -0
- package/lib/stores/dataCube/editor/DataCubeEditorSortState.d.ts.map +1 -0
- package/lib/stores/dataCube/editor/DataCubeEditorSortState.js +133 -0
- package/lib/stores/dataCube/editor/DataCubeEditorSortState.js.map +1 -0
- package/lib/stores/dataCube/editor/DataCubeEditorState.d.ts +44 -0
- package/lib/stores/dataCube/editor/DataCubeEditorState.d.ts.map +1 -0
- package/lib/stores/dataCube/editor/DataCubeEditorState.js +77 -0
- package/lib/stores/dataCube/editor/DataCubeEditorState.js.map +1 -0
- package/lib/{components/grid/ServerSideDataSource.d.ts → stores/dataCube/grid/DataCubeGridClientEngine.d.ts} +17 -14
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.d.ts.map +1 -0
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.js +96 -0
- package/lib/stores/dataCube/grid/DataCubeGridClientEngine.js.map +1 -0
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotAnalyzer.d.ts +19 -0
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotAnalyzer.d.ts.map +1 -0
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotAnalyzer.js +224 -0
- package/lib/stores/dataCube/grid/DataCubeGridQuerySnapshotAnalyzer.js.map +1 -0
- package/lib/stores/dataCube/grid/DataCubeGridState.d.ts +33 -0
- package/lib/stores/dataCube/grid/DataCubeGridState.d.ts.map +1 -0
- package/lib/stores/dataCube/grid/DataCubeGridState.js +50 -0
- package/lib/stores/dataCube/grid/DataCubeGridState.js.map +1 -0
- package/package.json +9 -9
- package/src/{Const.ts → __lib__/LegendREPLEvent.ts} +1 -16
- package/{lib/components/grid/REPLGridServerResult.d.ts → src/__lib__/LegendREPLSetting.ts} +3 -6
- package/src/application/LegendREPL.tsx +64 -0
- package/src/application/{LegendREPLGridClientApplicationConfig.ts → LegendREPLApplicationConfig.ts} +3 -3
- package/src/application/{LegendREPLGridClientPluginManager.ts → LegendREPLPluginManager.ts} +5 -5
- package/src/components/{Core_LegendREPLGridClientApplicationPlugin.tsx → Core_LegendREPLApplicationPlugin.tsx} +11 -6
- package/src/components/{LegendREPLGridClientApplication.tsx → LegendREPLApplication.tsx} +11 -28
- package/src/components/LegendREPLFrameworkProvider.tsx +57 -0
- package/src/components/{REPLGridClientStoreProvider.tsx → REPLStoreProvider.tsx} +17 -21
- package/src/components/dataCube/DataCube.tsx +63 -0
- package/src/components/dataCube/editor/DataCubeEditor.tsx +127 -0
- package/src/components/dataCube/{DataCubeQueryTextEditor.tsx → editor/DataCubeEditorCodePanel.tsx} +69 -76
- package/src/components/dataCube/editor/DataCubeEditorSortPanel.tsx +274 -0
- package/src/components/dataCube/grid/DataCubeGrid.tsx +77 -0
- package/src/index.tsx +12 -8
- package/src/server/REPLServerClient.ts +50 -78
- package/src/server/models/DataCubeEngineModels.ts +84 -0
- package/src/server/models/DataCubeQuery.ts +130 -0
- package/src/stores/{LegendREPLGridClientApplicationPlugin.ts → LegendREPLApplicationPlugin.ts} +4 -4
- package/src/stores/{LegendREPLGridClientBaseStore.ts → LegendREPLBaseStore.ts} +9 -9
- package/src/stores/dataCube/DataCubeMetaModelConst.ts +61 -0
- package/src/stores/dataCube/DataCubeState.ts +39 -303
- package/src/stores/{REPLGridClientStore.ts → dataCube/DataCubeStore.ts} +8 -6
- package/src/stores/dataCube/core/DataCubeEngine.ts +79 -0
- package/src/stores/dataCube/core/DataCubeQueryAnalyzer.ts +424 -0
- package/src/stores/dataCube/core/DataCubeQueryBuilder.ts +151 -0
- package/src/stores/dataCube/core/DataCubeQuerySnapshot.ts +201 -0
- package/src/stores/dataCube/core/DataCubeQuerySnapshotManager.ts +67 -0
- package/src/stores/dataCube/core/DataCubeQuerySnapshotSubscriber.ts +43 -0
- package/src/stores/dataCube/editor/DataCubeEditorCodeState.ts +166 -0
- package/src/{components/grid/REPLGridServerResult.ts → stores/dataCube/editor/DataCubeEditorQuerySnapshotBuilder.ts} +14 -11
- package/src/stores/dataCube/editor/DataCubeEditorSortState.ts +198 -0
- package/src/stores/dataCube/editor/DataCubeEditorState.ts +94 -0
- package/src/stores/dataCube/grid/DataCubeGridClientEngine.ts +152 -0
- package/src/stores/dataCube/grid/DataCubeGridQuerySnapshotAnalyzer.ts +245 -0
- package/src/stores/dataCube/grid/DataCubeGridState.ts +62 -0
- package/tsconfig.json +33 -29
- package/lib/Const.d.ts +0 -32
- package/lib/Const.d.ts.map +0 -1
- package/lib/Const.js +0 -35
- package/lib/Const.js.map +0 -1
- package/lib/application/LegendREPLGridClient.d.ts.map +0 -1
- package/lib/application/LegendREPLGridClient.js.map +0 -1
- package/lib/application/LegendREPLGridClientApplicationConfig.d.ts.map +0 -1
- package/lib/application/LegendREPLGridClientApplicationConfig.js.map +0 -1
- package/lib/application/LegendREPLGridClientPluginManager.d.ts.map +0 -1
- package/lib/application/LegendREPLGridClientPluginManager.js.map +0 -1
- package/lib/components/AgGrid.d.ts.map +0 -1
- package/lib/components/AgGrid.js +0 -41
- package/lib/components/AgGrid.js.map +0 -1
- package/lib/components/Core_LegendREPLGridClientApplicationPlugin.d.ts.map +0 -1
- package/lib/components/Core_LegendREPLGridClientApplicationPlugin.js.map +0 -1
- package/lib/components/LegendREPLGridClientApplication.d.ts +0 -31
- package/lib/components/LegendREPLGridClientApplication.d.ts.map +0 -1
- package/lib/components/LegendREPLGridClientApplication.js +0 -39
- package/lib/components/LegendREPLGridClientApplication.js.map +0 -1
- package/lib/components/LegendREPLGridClientFrameworkProvider.d.ts.map +0 -1
- package/lib/components/LegendREPLGridClientFrameworkProvider.js.map +0 -1
- package/lib/components/REPLGridClient.d.ts.map +0 -1
- package/lib/components/REPLGridClient.js +0 -143
- package/lib/components/REPLGridClient.js.map +0 -1
- package/lib/components/REPLGridClientStoreProvider.d.ts.map +0 -1
- package/lib/components/REPLGridClientStoreProvider.js.map +0 -1
- package/lib/components/dataCube/DataCubeGridEditor.d.ts.map +0 -1
- package/lib/components/dataCube/DataCubeGridEditor.js +0 -37
- package/lib/components/dataCube/DataCubeGridEditor.js.map +0 -1
- package/lib/components/dataCube/DataCubeQueryTextEditor.d.ts.map +0 -1
- package/lib/components/dataCube/DataCubeQueryTextEditor.js.map +0 -1
- package/lib/components/grid/GridUtils.d.ts +0 -31
- package/lib/components/grid/GridUtils.d.ts.map +0 -1
- package/lib/components/grid/GridUtils.js +0 -174
- package/lib/components/grid/GridUtils.js.map +0 -1
- package/lib/components/grid/REPLGridServerResult.d.ts.map +0 -1
- package/lib/components/grid/REPLGridServerResult.js.map +0 -1
- package/lib/components/grid/ServerSideDataSource.d.ts.map +0 -1
- package/lib/components/grid/ServerSideDataSource.js +0 -109
- package/lib/components/grid/ServerSideDataSource.js.map +0 -1
- package/lib/components/grid/TDSLambdaBuilder.d.ts.map +0 -1
- package/lib/components/grid/TDSLambdaBuilder.js +0 -314
- package/lib/components/grid/TDSLambdaBuilder.js.map +0 -1
- package/lib/components/grid/TDSQuery.d.ts +0 -25
- package/lib/components/grid/TDSQuery.d.ts.map +0 -1
- package/lib/components/grid/TDSQuery.js +0 -32
- package/lib/components/grid/TDSQuery.js.map +0 -1
- package/lib/components/grid/TDSRequest.d.ts +0 -103
- package/lib/components/grid/TDSRequest.d.ts.map +0 -1
- package/lib/components/grid/TDSRequest.js +0 -172
- package/lib/components/grid/TDSRequest.js.map +0 -1
- package/lib/stores/CompletionResult.d.ts.map +0 -1
- package/lib/stores/CompletionResult.js +0 -26
- package/lib/stores/CompletionResult.js.map +0 -1
- package/lib/stores/LegendREPLGridClientApplicationPlugin.d.ts.map +0 -1
- package/lib/stores/LegendREPLGridClientApplicationPlugin.js.map +0 -1
- package/lib/stores/LegendREPLGridClientBaseStore.d.ts +0 -25
- package/lib/stores/LegendREPLGridClientBaseStore.d.ts.map +0 -1
- package/lib/stores/LegendREPLGridClientBaseStore.js.map +0 -1
- package/lib/stores/REPLGridClientStore.d.ts.map +0 -1
- package/lib/stores/REPLGridClientStore.js.map +0 -1
- package/lib/stores/dataCube/DataCubeConfigState.d.ts +0 -32
- package/lib/stores/dataCube/DataCubeConfigState.d.ts.map +0 -1
- package/lib/stores/dataCube/DataCubeConfigState.js +0 -62
- package/lib/stores/dataCube/DataCubeConfigState.js.map +0 -1
- package/lib/stores/dataCube/DataCubeGridState.d.ts +0 -39
- package/lib/stores/dataCube/DataCubeGridState.d.ts.map +0 -1
- package/lib/stores/dataCube/DataCubeGridState.js +0 -108
- package/lib/stores/dataCube/DataCubeGridState.js.map +0 -1
- package/lib/stores/dataCube/DataCubePanelState.d.ts.map +0 -1
- package/lib/stores/dataCube/DataCubePanelState.js.map +0 -1
- package/lib/stores/dataCube/DataCubePropertiesPanelState.d.ts +0 -34
- package/lib/stores/dataCube/DataCubePropertiesPanelState.d.ts.map +0 -1
- package/lib/stores/dataCube/DataCubePropertiesPanelState.js +0 -57
- package/lib/stores/dataCube/DataCubePropertiesPanelState.js.map +0 -1
- package/lib/stores/dataCube/DataCubeQueryEditorState.d.ts.map +0 -1
- package/lib/stores/dataCube/DataCubeQueryEditorState.js +0 -49
- package/lib/stores/dataCube/DataCubeQueryEditorState.js.map +0 -1
- package/lib/stores/dataCube/DataCubeQueryTextEditorState.d.ts +0 -25
- package/lib/stores/dataCube/DataCubeQueryTextEditorState.d.ts.map +0 -1
- package/lib/stores/dataCube/DataCubeQueryTextEditorState.js +0 -35
- package/lib/stores/dataCube/DataCubeQueryTextEditorState.js.map +0 -1
- package/lib/stores/dataCube/HPivotAndSortPanelState.d.ts +0 -40
- package/lib/stores/dataCube/HPivotAndSortPanelState.d.ts.map +0 -1
- package/lib/stores/dataCube/HPivotAndSortPanelState.js +0 -130
- package/lib/stores/dataCube/HPivotAndSortPanelState.js.map +0 -1
- package/src/application/LegendREPLGridClient.tsx +0 -72
- package/src/components/AgGrid.tsx +0 -59
- package/src/components/LegendREPLGridClientFrameworkProvider.tsx +0 -63
- package/src/components/REPLGridClient.tsx +0 -560
- package/src/components/dataCube/DataCubeGridEditor.tsx +0 -69
- package/src/components/grid/GridUtils.ts +0 -220
- package/src/components/grid/ServerSideDataSource.ts +0 -197
- package/src/components/grid/TDSLambdaBuilder.ts +0 -456
- package/src/components/grid/TDSQuery.ts +0 -37
- package/src/components/grid/TDSRequest.ts +0 -231
- package/src/stores/CompletionResult.ts +0 -30
- package/src/stores/dataCube/DataCubeConfigState.ts +0 -79
- package/src/stores/dataCube/DataCubeGridState.ts +0 -143
- package/src/stores/dataCube/DataCubePanelState.ts +0 -28
- package/src/stores/dataCube/DataCubePropertiesPanelState.ts +0 -65
- package/src/stores/dataCube/DataCubeQueryEditorState.ts +0 -66
- package/src/stores/dataCube/DataCubeQueryTextEditorState.ts +0 -41
- package/src/stores/dataCube/HPivotAndSortPanelState.ts +0 -170
|
@@ -14,22 +14,20 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { type NetworkClient, type PlainObject } from '@finos/legend-shared';
|
|
17
|
-
import type {
|
|
18
|
-
import type {
|
|
19
|
-
import type {
|
|
20
|
-
import type { TDSQuery } from '../components/grid/TDSQuery.js';
|
|
17
|
+
import type { CompletionItem, DataCubeGetQueryCodeInput, DataCubeGetQueryRelationReturnTypeInput, DataCubeParseQueryInput, DataCubeQueryTypeaheadInput, RelationType, DataCubeExecutionInput, DataCubeExecutionResult } from './models/DataCubeEngineModels.js';
|
|
18
|
+
import type { V1_ValueSpecification } from '@finos/legend-graph';
|
|
19
|
+
import type { DataCubeQuery } from './models/DataCubeQuery.js';
|
|
21
20
|
export declare class REPLServerClient {
|
|
22
21
|
private readonly networkClient;
|
|
23
22
|
constructor(networkClient: NetworkClient);
|
|
24
23
|
get baseUrl(): string;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
saveQuery: (tdsQuery: PlainObject<TDSQuery>) => Promise<string>;
|
|
24
|
+
private get dataCube();
|
|
25
|
+
getGridClientLicenseKey(): Promise<string>;
|
|
26
|
+
getQueryTypeahead(input: DataCubeQueryTypeaheadInput): Promise<PlainObject<CompletionItem>[]>;
|
|
27
|
+
parseQuery(input: DataCubeParseQueryInput): Promise<PlainObject<V1_ValueSpecification>>;
|
|
28
|
+
getQueryCode(input: DataCubeGetQueryCodeInput): Promise<PlainObject<string>>;
|
|
29
|
+
getBaseQuery(): Promise<PlainObject<DataCubeQuery>>;
|
|
30
|
+
getRelationReturnType(input: DataCubeGetQueryRelationReturnTypeInput): Promise<RelationType>;
|
|
31
|
+
executeQuery(input: PlainObject<DataCubeExecutionInput>): Promise<DataCubeExecutionResult>;
|
|
34
32
|
}
|
|
35
33
|
//# sourceMappingURL=REPLServerClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"REPLServerClient.d.ts","sourceRoot":"","sources":["../../src/server/REPLServerClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"REPLServerClient.d.ts","sourceRoot":"","sources":["../../src/server/REPLServerClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,cAAc,EACd,yBAAyB,EACzB,uCAAuC,EACvC,uBAAuB,EACvB,2BAA2B,EAC3B,YAAY,EACZ,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgB;gBAElC,aAAa,EAAE,aAAa;IAIxC,IAAI,OAAO,IAAI,MAAM,CAKpB;IAED,OAAO,KAAK,QAAQ,GAEnB;IAEK,uBAAuB,IAAI,OAAO,CAAC,MAAM,CAAC;IAI1C,iBAAiB,CACrB,KAAK,EAAE,2BAA2B,GACjC,OAAO,CAAC,WAAW,CAAC,cAAc,CAAC,EAAE,CAAC;IAKnC,UAAU,CACd,KAAK,EAAE,uBAAuB,GAC7B,OAAO,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC;IAGxC,YAAY,CAChB,KAAK,EAAE,yBAAyB,GAC/B,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAIzB,YAAY,IAAI,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IAInD,qBAAqB,CACzB,KAAK,EAAE,uCAAuC,GAC7C,OAAO,CAAC,YAAY,CAAC;IAOlB,YAAY,CAChB,KAAK,EAAE,WAAW,CAAC,sBAAsB,CAAC,GACzC,OAAO,CAAC,uBAAuB,CAAC;CAGpC"}
|
|
@@ -20,20 +20,32 @@ export class REPLServerClient {
|
|
|
20
20
|
this.networkClient = networkClient;
|
|
21
21
|
}
|
|
22
22
|
get baseUrl() {
|
|
23
|
-
return guaranteeNonNullable(this.networkClient.baseUrl, `REPL client has not been configured properly`);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
23
|
+
return guaranteeNonNullable(this.networkClient.baseUrl, `REPL server client has not been configured properly`);
|
|
24
|
+
}
|
|
25
|
+
get dataCube() {
|
|
26
|
+
return `${this.baseUrl}/api/dataCube`;
|
|
27
|
+
}
|
|
28
|
+
async getGridClientLicenseKey() {
|
|
29
|
+
return this.networkClient.get(`${this.dataCube}/gridLicenseKey`);
|
|
30
|
+
}
|
|
31
|
+
async getQueryTypeahead(input) {
|
|
32
|
+
return this.networkClient.post(`${this.dataCube}/typeahead`, input);
|
|
33
|
+
}
|
|
34
|
+
// TODO: @akphi - we might need to support batch, source information offset, etc.
|
|
35
|
+
async parseQuery(input) {
|
|
36
|
+
return this.networkClient.post(`${this.dataCube}/parseQuery`, input);
|
|
37
|
+
}
|
|
38
|
+
async getQueryCode(input) {
|
|
39
|
+
return this.networkClient.post(`${this.dataCube}/getQueryCode`, input);
|
|
40
|
+
}
|
|
41
|
+
async getBaseQuery() {
|
|
42
|
+
return this.networkClient.get(`${this.dataCube}/getBaseQuery`);
|
|
43
|
+
}
|
|
44
|
+
async getRelationReturnType(input) {
|
|
45
|
+
return this.networkClient.post(`${this.dataCube}/getRelationReturnType`, input);
|
|
46
|
+
}
|
|
47
|
+
async executeQuery(input) {
|
|
48
|
+
return this.networkClient.post(`${this.dataCube}/executeQuery`, input);
|
|
49
|
+
}
|
|
38
50
|
}
|
|
39
51
|
//# sourceMappingURL=REPLServerClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"REPLServerClient.js","sourceRoot":"","sources":["../../src/server/REPLServerClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,oBAAoB,GAGrB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"REPLServerClient.js","sourceRoot":"","sources":["../../src/server/REPLServerClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,oBAAoB,GAGrB,MAAM,sBAAsB,CAAC;AAc9B,MAAM,OAAO,gBAAgB;IACV,aAAa,CAAgB;IAE9C,YAAY,aAA4B;QACtC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;IAED,IAAI,OAAO;QACT,OAAO,oBAAoB,CACzB,IAAI,CAAC,aAAa,CAAC,OAAO,EAC1B,qDAAqD,CACtD,CAAC;IACJ,CAAC;IAED,IAAY,QAAQ;QAClB,OAAO,GAAG,IAAI,CAAC,OAAO,eAAe,CAAC;IACxC,CAAC;IAED,KAAK,CAAC,uBAAuB;QAC3B,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,QAAQ,iBAAiB,CAAC,CAAC;IACnE,CAAC;IAED,KAAK,CAAC,iBAAiB,CACrB,KAAkC;QAElC,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,QAAQ,YAAY,EAAE,KAAK,CAAC,CAAC;IACtE,CAAC;IAED,iFAAiF;IACjF,KAAK,CAAC,UAAU,CACd,KAA8B;QAE9B,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,QAAQ,aAAa,EAAE,KAAK,CAAC,CAAC;IACvE,CAAC;IACD,KAAK,CAAC,YAAY,CAChB,KAAgC;QAEhC,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,QAAQ,eAAe,EAAE,KAAK,CAAC,CAAC;IACzE,CAAC;IAED,KAAK,CAAC,YAAY;QAChB,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,QAAQ,eAAe,CAAC,CAAC;IACjE,CAAC;IAED,KAAK,CAAC,qBAAqB,CACzB,KAA8C;QAE9C,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAC5B,GAAG,IAAI,CAAC,QAAQ,wBAAwB,EACxC,KAAK,CACN,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,KAA0C;QAE1C,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,QAAQ,eAAe,EAAE,KAAK,CAAC,CAAC;IACzE,CAAC;CACF"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { SerializationFactory } from '@finos/legend-shared';
|
|
17
|
+
import { type V1_ValueSpecification, type V1_Lambda } from '@finos/legend-graph';
|
|
18
|
+
import type { DataCubeQueryColumn } from './DataCubeQuery.js';
|
|
19
|
+
export declare class DataCubeGetQueryCodeInput {
|
|
20
|
+
query: V1_ValueSpecification;
|
|
21
|
+
pretty?: boolean;
|
|
22
|
+
static readonly serialization: SerializationFactory<DataCubeGetQueryCodeInput>;
|
|
23
|
+
}
|
|
24
|
+
export type DataCubeParseQueryInput = {
|
|
25
|
+
code: string;
|
|
26
|
+
returnSourceInformation?: boolean | undefined;
|
|
27
|
+
};
|
|
28
|
+
export type CompletionItem = {
|
|
29
|
+
completion: string;
|
|
30
|
+
display: string;
|
|
31
|
+
};
|
|
32
|
+
export type DataCubeQueryTypeaheadInput = {
|
|
33
|
+
code: string;
|
|
34
|
+
isPartial?: boolean | undefined;
|
|
35
|
+
};
|
|
36
|
+
export declare class DataCubeGetQueryRelationReturnTypeInput {
|
|
37
|
+
query: V1_Lambda;
|
|
38
|
+
static readonly serialization: SerializationFactory<DataCubeGetQueryRelationReturnTypeInput>;
|
|
39
|
+
}
|
|
40
|
+
export declare class DataCubeExecutionInput {
|
|
41
|
+
query: V1_Lambda;
|
|
42
|
+
static readonly serialization: SerializationFactory<DataCubeExecutionInput>;
|
|
43
|
+
}
|
|
44
|
+
export type DataCubeExecutionResult = {
|
|
45
|
+
result: string;
|
|
46
|
+
};
|
|
47
|
+
export type RelationType = {
|
|
48
|
+
columns: DataCubeQueryColumn[];
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=DataCubeEngineModels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeEngineModels.d.ts","sourceRoot":"","sources":["../../../src/server/models/DataCubeEngineModels.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,oBAAoB,EAAoB,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EAIf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,qBAAa,yBAAyB;IACpC,KAAK,EAAG,qBAAqB,CAAC;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,MAAM,CAAC,QAAQ,CAAC,aAAa,kDAQ3B;CACH;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/C,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,qBAAa,uCAAuC;IAClD,KAAK,EAAG,SAAS,CAAC;IAElB,MAAM,CAAC,QAAQ,CAAC,aAAa,gEAI3B;CACH;AAED,qBAAa,sBAAsB;IACjC,KAAK,EAAG,SAAS,CAAC;IAElB,MAAM,CAAC,QAAQ,CAAC,aAAa,+CAI3B;CACH;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,mBAAmB,EAAE,CAAC;CAChC,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { createModelSchema, custom, optional, primitive } from 'serializr';
|
|
17
|
+
import { SerializationFactory, usingModelSchema } from '@finos/legend-shared';
|
|
18
|
+
import { V1_deserializeValueSpecification, V1_serializeValueSpecification, V1_lambdaModelSchema, } from '@finos/legend-graph';
|
|
19
|
+
export class DataCubeGetQueryCodeInput {
|
|
20
|
+
query; // TODO: @akphi - consider if we should update this to use Lambda instead
|
|
21
|
+
pretty;
|
|
22
|
+
static serialization = new SerializationFactory(createModelSchema(DataCubeGetQueryCodeInput, {
|
|
23
|
+
pretty: optional(primitive()),
|
|
24
|
+
query: custom((val) => V1_serializeValueSpecification(val, []), (val) => V1_deserializeValueSpecification(val, [])),
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
27
|
+
export class DataCubeGetQueryRelationReturnTypeInput {
|
|
28
|
+
query;
|
|
29
|
+
static serialization = new SerializationFactory(createModelSchema(DataCubeGetQueryRelationReturnTypeInput, {
|
|
30
|
+
query: usingModelSchema(V1_lambdaModelSchema([])),
|
|
31
|
+
}));
|
|
32
|
+
}
|
|
33
|
+
export class DataCubeExecutionInput {
|
|
34
|
+
query;
|
|
35
|
+
static serialization = new SerializationFactory(createModelSchema(DataCubeExecutionInput, {
|
|
36
|
+
query: usingModelSchema(V1_lambdaModelSchema([])),
|
|
37
|
+
}));
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=DataCubeEngineModels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeEngineModels.js","sourceRoot":"","sources":["../../../src/server/models/DataCubeEngineModels.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAGL,gCAAgC,EAChC,8BAA8B,EAC9B,oBAAoB,GACrB,MAAM,qBAAqB,CAAC;AAG7B,MAAM,OAAO,yBAAyB;IACpC,KAAK,CAAyB,CAAC,yEAAyE;IACxG,MAAM,CAAW;IAEjB,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,yBAAyB,EAAE;QAC3C,MAAM,EAAE,QAAQ,CAAC,SAAS,EAAE,CAAC;QAC7B,KAAK,EAAE,MAAM,CACX,CAAC,GAAG,EAAE,EAAE,CAAC,8BAA8B,CAAC,GAAG,EAAE,EAAE,CAAC,EAChD,CAAC,GAAG,EAAE,EAAE,CAAC,gCAAgC,CAAC,GAAG,EAAE,EAAE,CAAC,CACnD;KACF,CAAC,CACH,CAAC;;AAkBJ,MAAM,OAAO,uCAAuC;IAClD,KAAK,CAAa;IAElB,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,uCAAuC,EAAE;QACzD,KAAK,EAAE,gBAAgB,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC;KAClD,CAAC,CACH,CAAC;;AAGJ,MAAM,OAAO,sBAAsB;IACjC,KAAK,CAAa;IAElB,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,sBAAsB,EAAE;QACxC,KAAK,EAAE,gBAAgB,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC;KAClD,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { SerializationFactory } from '@finos/legend-shared';
|
|
17
|
+
export declare abstract class DataCubeQuerySource {
|
|
18
|
+
columns: DataCubeQueryColumn[];
|
|
19
|
+
query: string;
|
|
20
|
+
runtime: string;
|
|
21
|
+
}
|
|
22
|
+
export declare class DataCubeQueryColumn {
|
|
23
|
+
name: string;
|
|
24
|
+
type: string;
|
|
25
|
+
static readonly serialization: SerializationFactory<DataCubeQueryColumn>;
|
|
26
|
+
}
|
|
27
|
+
export declare class DataCubeQuerySourceREPLExecutedQuery extends DataCubeQuerySource {
|
|
28
|
+
static readonly serialization: SerializationFactory<DataCubeQuerySourceREPLExecutedQuery>;
|
|
29
|
+
}
|
|
30
|
+
export declare class DataCubeConfiguration {
|
|
31
|
+
}
|
|
32
|
+
export declare class DataCubeQuery {
|
|
33
|
+
name: string;
|
|
34
|
+
query: string;
|
|
35
|
+
partialQuery: string;
|
|
36
|
+
source: DataCubeQuerySource;
|
|
37
|
+
configuration: DataCubeConfiguration;
|
|
38
|
+
constructor(name: string, query: string, configuration: DataCubeConfiguration);
|
|
39
|
+
static readonly serialization: SerializationFactory<DataCubeQuery>;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=DataCubeQuery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeQuery.d.ts","sourceRoot":"","sources":["../../../src/server/models/DataCubeQuery.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,oBAAoB,EAKrB,MAAM,sBAAsB,CAAC;AAW9B,8BAAsB,mBAAmB;IACvC,OAAO,EAAE,mBAAmB,EAAE,CAAM;IACpC,KAAK,EAAG,MAAM,CAAC;IACf,OAAO,EAAG,MAAM,CAAC;CAClB;AAED,qBAAa,mBAAmB;IAC9B,IAAI,EAAG,MAAM,CAAC;IACd,IAAI,EAAG,MAAM,CAAC;IAEd,MAAM,CAAC,QAAQ,CAAC,aAAa,4CAK3B;CACH;AAMD,qBAAa,oCAAqC,SAAQ,mBAAmB;IAC3E,MAAM,CAAC,QAAQ,CAAC,aAAa,6DAS3B;CACH;AAiCD,qBAAa,qBAAqB;CAEjC;AAED,qBAAa,aAAa;IACxB,IAAI,EAAG,MAAM,CAAC;IACd,KAAK,EAAG,MAAM,CAAC;IACf,YAAY,EAAG,MAAM,CAAC;IACtB,MAAM,EAAG,mBAAmB,CAAC;IAC7B,aAAa,EAAG,qBAAqB,CAAC;gBAGpC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,aAAa,EAAE,qBAAqB;IAOtC,MAAM,CAAC,QAAQ,CAAC,aAAa,sCAQ3B;CACH"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { SerializationFactory, UnsupportedOperationError, usingConstantValueSchema, usingModelSchema, } from '@finos/legend-shared';
|
|
17
|
+
import { createModelSchema, custom, deserialize, list, primitive, raw, serialize, } from 'serializr';
|
|
18
|
+
export class DataCubeQuerySource {
|
|
19
|
+
columns = [];
|
|
20
|
+
query;
|
|
21
|
+
runtime;
|
|
22
|
+
}
|
|
23
|
+
export class DataCubeQueryColumn {
|
|
24
|
+
name;
|
|
25
|
+
type;
|
|
26
|
+
static serialization = new SerializationFactory(createModelSchema(DataCubeQueryColumn, {
|
|
27
|
+
name: primitive(),
|
|
28
|
+
type: primitive(),
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
31
|
+
var DATA_CUBE_QUERY_SOURCE_TYPE;
|
|
32
|
+
(function (DATA_CUBE_QUERY_SOURCE_TYPE) {
|
|
33
|
+
DATA_CUBE_QUERY_SOURCE_TYPE["REPL_EXECUTED_QUERY"] = "REPLExecutedQuery";
|
|
34
|
+
})(DATA_CUBE_QUERY_SOURCE_TYPE || (DATA_CUBE_QUERY_SOURCE_TYPE = {}));
|
|
35
|
+
export class DataCubeQuerySourceREPLExecutedQuery extends DataCubeQuerySource {
|
|
36
|
+
static serialization = new SerializationFactory(createModelSchema(DataCubeQuerySourceREPLExecutedQuery, {
|
|
37
|
+
_type: usingConstantValueSchema(DATA_CUBE_QUERY_SOURCE_TYPE.REPL_EXECUTED_QUERY),
|
|
38
|
+
columns: list(usingModelSchema(DataCubeQueryColumn.serialization.schema)),
|
|
39
|
+
query: primitive(),
|
|
40
|
+
runtime: primitive(),
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
function deserializeQuerySource(json) {
|
|
44
|
+
switch (json._type) {
|
|
45
|
+
case DATA_CUBE_QUERY_SOURCE_TYPE.REPL_EXECUTED_QUERY:
|
|
46
|
+
return deserialize(DataCubeQuerySourceREPLExecutedQuery.serialization.schema, json);
|
|
47
|
+
default:
|
|
48
|
+
throw new UnsupportedOperationError(`Can't deserialize data cube query source of type '${json._type}'`);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function serializeQuerySource(object) {
|
|
52
|
+
if (object instanceof DataCubeQuerySourceREPLExecutedQuery) {
|
|
53
|
+
return serialize(DataCubeQuerySourceREPLExecutedQuery.serialization.schema, object);
|
|
54
|
+
}
|
|
55
|
+
throw new UnsupportedOperationError(`Can't serialize data cube query source`, object);
|
|
56
|
+
}
|
|
57
|
+
export class DataCubeConfiguration {
|
|
58
|
+
}
|
|
59
|
+
export class DataCubeQuery {
|
|
60
|
+
name;
|
|
61
|
+
query;
|
|
62
|
+
partialQuery;
|
|
63
|
+
source;
|
|
64
|
+
configuration;
|
|
65
|
+
constructor(name, query, configuration) {
|
|
66
|
+
this.name = name;
|
|
67
|
+
this.query = query;
|
|
68
|
+
this.configuration = configuration;
|
|
69
|
+
}
|
|
70
|
+
static serialization = new SerializationFactory(createModelSchema(DataCubeQuery, {
|
|
71
|
+
configuration: raw(), // TODO: @akphi - populate this once we know the shape better
|
|
72
|
+
name: primitive(),
|
|
73
|
+
partialQuery: primitive(),
|
|
74
|
+
query: primitive(),
|
|
75
|
+
source: custom(serializeQuerySource, deserializeQuerySource),
|
|
76
|
+
}));
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=DataCubeQuery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeQuery.js","sourceRoot":"","sources":["../../../src/server/models/DataCubeQuery.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EACzB,wBAAwB,EACxB,gBAAgB,GAEjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,iBAAiB,EACjB,MAAM,EACN,WAAW,EACX,IAAI,EACJ,SAAS,EACT,GAAG,EACH,SAAS,GACV,MAAM,WAAW,CAAC;AAEnB,MAAM,OAAgB,mBAAmB;IACvC,OAAO,GAA0B,EAAE,CAAC;IACpC,KAAK,CAAU;IACf,OAAO,CAAU;CAClB;AAED,MAAM,OAAO,mBAAmB;IAC9B,IAAI,CAAU;IACd,IAAI,CAAU;IAEd,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,mBAAmB,EAAE;QACrC,IAAI,EAAE,SAAS,EAAE;QACjB,IAAI,EAAE,SAAS,EAAE;KAClB,CAAC,CACH,CAAC;;AAGJ,IAAK,2BAEJ;AAFD,WAAK,2BAA2B;IAC9B,wEAAyC,CAAA;AAC3C,CAAC,EAFI,2BAA2B,KAA3B,2BAA2B,QAE/B;AAED,MAAM,OAAO,oCAAqC,SAAQ,mBAAmB;IAC3E,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,oCAAoC,EAAE;QACtD,KAAK,EAAE,wBAAwB,CAC7B,2BAA2B,CAAC,mBAAmB,CAChD;QACD,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QACzE,KAAK,EAAE,SAAS,EAAE;QAClB,OAAO,EAAE,SAAS,EAAE;KACrB,CAAC,CACH,CAAC;;AAGJ,SAAS,sBAAsB,CAC7B,IAAsC;IAEtC,QAAQ,IAAI,CAAC,KAAK,EAAE,CAAC;QACnB,KAAK,2BAA2B,CAAC,mBAAmB;YAClD,OAAO,WAAW,CAChB,oCAAoC,CAAC,aAAa,CAAC,MAAM,EACzD,IAAI,CACL,CAAC;QACJ;YACE,MAAM,IAAI,yBAAyB,CACjC,qDAAqD,IAAI,CAAC,KAAK,GAAG,CACnE,CAAC;IACN,CAAC;AACH,CAAC;AAED,SAAS,oBAAoB,CAC3B,MAA2B;IAE3B,IAAI,MAAM,YAAY,oCAAoC,EAAE,CAAC;QAC3D,OAAO,SAAS,CACd,oCAAoC,CAAC,aAAa,CAAC,MAAM,EACzD,MAAM,CACP,CAAC;IACJ,CAAC;IACD,MAAM,IAAI,yBAAyB,CACjC,wCAAwC,EACxC,MAAM,CACP,CAAC;AACJ,CAAC;AAED,MAAM,OAAO,qBAAqB;CAEjC;AAED,MAAM,OAAO,aAAa;IACxB,IAAI,CAAU;IACd,KAAK,CAAU;IACf,YAAY,CAAU;IACtB,MAAM,CAAuB;IAC7B,aAAa,CAAyB;IAEtC,YACE,IAAY,EACZ,KAAa,EACb,aAAoC;QAEpC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;IAED,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,aAAa,EAAE;QAC/B,aAAa,EAAE,GAAG,EAAE,EAAE,6DAA6D;QACnF,IAAI,EAAE,SAAS,EAAE;QACjB,YAAY,EAAE,SAAS,EAAE;QACzB,KAAK,EAAE,SAAS,EAAE;QAClB,MAAM,EAAE,MAAM,CAAC,oBAAoB,EAAE,sBAAsB,CAAC;KAC7D,CAAC,CACH,CAAC"}
|
package/lib/stores/{LegendREPLGridClientApplicationPlugin.d.ts → LegendREPLApplicationPlugin.d.ts}
RENAMED
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { LegendApplicationPlugin } from '@finos/legend-application';
|
|
17
|
-
import type {
|
|
18
|
-
export declare abstract class
|
|
17
|
+
import type { LegendREPLPluginManager } from '../application/LegendREPLPluginManager.js';
|
|
18
|
+
export declare abstract class LegendREPLApplicationPlugin extends LegendApplicationPlugin {
|
|
19
19
|
/**
|
|
20
20
|
* This helps to better type-check for this empty abtract type
|
|
21
21
|
* See https://github.com/finos/legend-studio/blob/master/docs/technical/typescript-usage.md#understand-typescript-structual-type-system
|
|
22
22
|
*/
|
|
23
23
|
private readonly _$nominalTypeBrand;
|
|
24
|
-
install(pluginManager:
|
|
24
|
+
install(pluginManager: LegendREPLPluginManager): void;
|
|
25
25
|
}
|
|
26
|
-
//# sourceMappingURL=
|
|
26
|
+
//# sourceMappingURL=LegendREPLApplicationPlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendREPLApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/stores/LegendREPLApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAEzF,8BAAsB,2BAA4B,SAAQ,uBAAuB;IAC/E;;;OAGG;IACH,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAiC;IAEpE,OAAO,CAAC,aAAa,EAAE,uBAAuB,GAAG,IAAI;CAGtD"}
|
package/lib/stores/{LegendREPLGridClientApplicationPlugin.js → LegendREPLApplicationPlugin.js}
RENAMED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { LegendApplicationPlugin } from '@finos/legend-application';
|
|
17
|
-
export class
|
|
17
|
+
export class LegendREPLApplicationPlugin extends LegendApplicationPlugin {
|
|
18
18
|
/**
|
|
19
19
|
* This helps to better type-check for this empty abtract type
|
|
20
20
|
* See https://github.com/finos/legend-studio/blob/master/docs/technical/typescript-usage.md#understand-typescript-structual-type-system
|
|
@@ -24,4 +24,4 @@ export class LegendREPLGridClientApplicationPlugin extends LegendApplicationPlug
|
|
|
24
24
|
pluginManager.registerApplicationPlugin(this);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
//# sourceMappingURL=
|
|
27
|
+
//# sourceMappingURL=LegendREPLApplicationPlugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendREPLApplicationPlugin.js","sourceRoot":"","sources":["../../src/stores/LegendREPLApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAGpE,MAAM,OAAgB,2BAA4B,SAAQ,uBAAuB;IAC/E;;;OAGG;IACc,kBAAkB,CAAiC;IAEpE,OAAO,CAAC,aAAsC;QAC5C,aAAa,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;CACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { ApplicationStore } from '@finos/legend-application';
|
|
17
|
+
import type { LegendREPLApplicationConfig } from '../application/LegendREPLApplicationConfig.js';
|
|
18
|
+
import type { LegendREPLPluginManager } from '../application/LegendREPLPluginManager.js';
|
|
19
|
+
export type LegendREPLApplicationStore = ApplicationStore<LegendREPLApplicationConfig, LegendREPLPluginManager>;
|
|
20
|
+
export declare class LegendREPLBaseStore {
|
|
21
|
+
readonly applicationStore: LegendREPLApplicationStore;
|
|
22
|
+
readonly pluginManager: LegendREPLPluginManager;
|
|
23
|
+
constructor(applicationStore: LegendREPLApplicationStore);
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=LegendREPLBaseStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendREPLBaseStore.d.ts","sourceRoot":"","sources":["../../src/stores/LegendREPLBaseStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AACjG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAEzF,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CACvD,2BAA2B,EAC3B,uBAAuB,CACxB,CAAC;AAEF,qBAAa,mBAAmB;IAC9B,QAAQ,CAAC,gBAAgB,EAAE,0BAA0B,CAAC;IACtD,QAAQ,CAAC,aAAa,EAAE,uBAAuB,CAAC;gBAEpC,gBAAgB,EAAE,0BAA0B;CAIzD"}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export class
|
|
16
|
+
export class LegendREPLBaseStore {
|
|
17
17
|
applicationStore;
|
|
18
18
|
pluginManager;
|
|
19
19
|
constructor(applicationStore) {
|
|
@@ -21,4 +21,4 @@ export class LegendREPLGridClientBaseStore {
|
|
|
21
21
|
this.pluginManager = applicationStore.pluginManager;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
//# sourceMappingURL=
|
|
24
|
+
//# sourceMappingURL=LegendREPLBaseStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendREPLBaseStore.js","sourceRoot":"","sources":["../../src/stores/LegendREPLBaseStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,MAAM,OAAO,mBAAmB;IACrB,gBAAgB,CAA6B;IAC7C,aAAa,CAA0B;IAEhD,YAAY,gBAA4C;QACtD,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,aAAa,GAAG,gBAAgB,CAAC,aAAa,CAAC;IACtD,CAAC;CACF"}
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
export declare enum DATA_CUBE_FUNCTIONS {
|
|
17
|
+
EXTEND = "meta::pure::functions::relation::extend",
|
|
18
|
+
FILTER = "meta::pure::functions::relation::filter",
|
|
19
|
+
GROUP_BY = "meta::pure::functions::relation::groupBy",
|
|
20
|
+
LIMIT = "meta::pure::functions::relation::limit",
|
|
21
|
+
PIVOT = "meta::pure::functions::relation::pivot",
|
|
22
|
+
RENAME = "meta::pure::functions::relation::rename",
|
|
23
|
+
SELECT = "meta::pure::functions::relation::select",
|
|
24
|
+
SLICE = "meta::pure::functions::relation::slice",
|
|
25
|
+
SORT = "meta::pure::functions::relation::sort",
|
|
26
|
+
CAST = "meta::pure::functions::lang::cast",
|
|
27
|
+
FROM = "meta::pure::mapping::from",
|
|
28
|
+
ASC = "meta::pure::functions::relation::ascending",
|
|
29
|
+
DESC = "meta::pure::functions::relation::descending",
|
|
30
|
+
AND = "meta::pure::functions::boolean::and",
|
|
31
|
+
NOT = "meta::pure::functions::boolean::not",
|
|
32
|
+
OR = "meta::pure::functions::boolean::or"
|
|
33
|
+
}
|
|
34
|
+
export declare const DEFAULT_LAMBDA_VARIABLE_NAME = "x";
|
|
35
|
+
export declare const PIVOT_COLUMN_NAME_VALUE_SEPARATOR = "__|__";
|
|
36
|
+
export declare enum DATA_CUBE_AGGREGATE_FUNCTION {
|
|
37
|
+
SUM = "sum",
|
|
38
|
+
MIN = "min",
|
|
39
|
+
MAX = "max",
|
|
40
|
+
COUNT = "count",
|
|
41
|
+
AVG = "avg",
|
|
42
|
+
FIRST = "first",
|
|
43
|
+
LAST = "last"
|
|
44
|
+
}
|
|
45
|
+
export declare enum DATA_CUBE_COLUMN_SORT_DIRECTION {
|
|
46
|
+
ASCENDING = "ascending",
|
|
47
|
+
DESCENDING = "descending"
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=DataCubeMetaModelConst.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeMetaModelConst.d.ts","sourceRoot":"","sources":["../../../src/stores/dataCube/DataCubeMetaModelConst.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,mBAAmB;IAE7B,MAAM,4CAA4C;IAClD,MAAM,4CAA4C;IAClD,QAAQ,6CAA6C;IACrD,KAAK,2CAA2C;IAChD,KAAK,2CAA2C;IAChD,MAAM,4CAA4C;IAClD,MAAM,4CAA4C;IAClD,KAAK,2CAA2C;IAChD,IAAI,0CAA0C;IAG9C,IAAI,sCAAsC;IAC1C,IAAI,8BAA8B;IAGlC,GAAG,+CAA+C;IAClD,IAAI,gDAAgD;IAGpD,GAAG,wCAAwC;IAC3C,GAAG,wCAAwC;IAC3C,EAAE,uCAAuC;CAG1C;AAED,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAChD,eAAO,MAAM,iCAAiC,UAAU,CAAC;AAEzD,oBAAY,4BAA4B;IACtC,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,oBAAY,+BAA+B;IACzC,SAAS,cAAc;IACvB,UAAU,eAAe;CAC1B"}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
export var DATA_CUBE_FUNCTIONS;
|
|
17
|
+
(function (DATA_CUBE_FUNCTIONS) {
|
|
18
|
+
// relation
|
|
19
|
+
DATA_CUBE_FUNCTIONS["EXTEND"] = "meta::pure::functions::relation::extend";
|
|
20
|
+
DATA_CUBE_FUNCTIONS["FILTER"] = "meta::pure::functions::relation::filter";
|
|
21
|
+
DATA_CUBE_FUNCTIONS["GROUP_BY"] = "meta::pure::functions::relation::groupBy";
|
|
22
|
+
DATA_CUBE_FUNCTIONS["LIMIT"] = "meta::pure::functions::relation::limit";
|
|
23
|
+
DATA_CUBE_FUNCTIONS["PIVOT"] = "meta::pure::functions::relation::pivot";
|
|
24
|
+
DATA_CUBE_FUNCTIONS["RENAME"] = "meta::pure::functions::relation::rename";
|
|
25
|
+
DATA_CUBE_FUNCTIONS["SELECT"] = "meta::pure::functions::relation::select";
|
|
26
|
+
DATA_CUBE_FUNCTIONS["SLICE"] = "meta::pure::functions::relation::slice";
|
|
27
|
+
DATA_CUBE_FUNCTIONS["SORT"] = "meta::pure::functions::relation::sort";
|
|
28
|
+
// core
|
|
29
|
+
DATA_CUBE_FUNCTIONS["CAST"] = "meta::pure::functions::lang::cast";
|
|
30
|
+
DATA_CUBE_FUNCTIONS["FROM"] = "meta::pure::mapping::from";
|
|
31
|
+
// sort
|
|
32
|
+
DATA_CUBE_FUNCTIONS["ASC"] = "meta::pure::functions::relation::ascending";
|
|
33
|
+
DATA_CUBE_FUNCTIONS["DESC"] = "meta::pure::functions::relation::descending";
|
|
34
|
+
// filter
|
|
35
|
+
DATA_CUBE_FUNCTIONS["AND"] = "meta::pure::functions::boolean::and";
|
|
36
|
+
DATA_CUBE_FUNCTIONS["NOT"] = "meta::pure::functions::boolean::not";
|
|
37
|
+
DATA_CUBE_FUNCTIONS["OR"] = "meta::pure::functions::boolean::or";
|
|
38
|
+
// aggregate
|
|
39
|
+
})(DATA_CUBE_FUNCTIONS || (DATA_CUBE_FUNCTIONS = {}));
|
|
40
|
+
export const DEFAULT_LAMBDA_VARIABLE_NAME = 'x';
|
|
41
|
+
export const PIVOT_COLUMN_NAME_VALUE_SEPARATOR = '__|__';
|
|
42
|
+
export var DATA_CUBE_AGGREGATE_FUNCTION;
|
|
43
|
+
(function (DATA_CUBE_AGGREGATE_FUNCTION) {
|
|
44
|
+
DATA_CUBE_AGGREGATE_FUNCTION["SUM"] = "sum";
|
|
45
|
+
DATA_CUBE_AGGREGATE_FUNCTION["MIN"] = "min";
|
|
46
|
+
DATA_CUBE_AGGREGATE_FUNCTION["MAX"] = "max";
|
|
47
|
+
DATA_CUBE_AGGREGATE_FUNCTION["COUNT"] = "count";
|
|
48
|
+
DATA_CUBE_AGGREGATE_FUNCTION["AVG"] = "avg";
|
|
49
|
+
DATA_CUBE_AGGREGATE_FUNCTION["FIRST"] = "first";
|
|
50
|
+
DATA_CUBE_AGGREGATE_FUNCTION["LAST"] = "last";
|
|
51
|
+
})(DATA_CUBE_AGGREGATE_FUNCTION || (DATA_CUBE_AGGREGATE_FUNCTION = {}));
|
|
52
|
+
export var DATA_CUBE_COLUMN_SORT_DIRECTION;
|
|
53
|
+
(function (DATA_CUBE_COLUMN_SORT_DIRECTION) {
|
|
54
|
+
DATA_CUBE_COLUMN_SORT_DIRECTION["ASCENDING"] = "ascending";
|
|
55
|
+
DATA_CUBE_COLUMN_SORT_DIRECTION["DESCENDING"] = "descending";
|
|
56
|
+
})(DATA_CUBE_COLUMN_SORT_DIRECTION || (DATA_CUBE_COLUMN_SORT_DIRECTION = {}));
|
|
57
|
+
//# sourceMappingURL=DataCubeMetaModelConst.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataCubeMetaModelConst.js","sourceRoot":"","sources":["../../../src/stores/dataCube/DataCubeMetaModelConst.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,mBA0BX;AA1BD,WAAY,mBAAmB;IAC7B,WAAW;IACX,yEAAkD,CAAA;IAClD,yEAAkD,CAAA;IAClD,4EAAqD,CAAA;IACrD,uEAAgD,CAAA;IAChD,uEAAgD,CAAA;IAChD,yEAAkD,CAAA;IAClD,yEAAkD,CAAA;IAClD,uEAAgD,CAAA;IAChD,qEAA8C,CAAA;IAE9C,OAAO;IACP,iEAA0C,CAAA;IAC1C,yDAAkC,CAAA;IAElC,OAAO;IACP,yEAAkD,CAAA;IAClD,2EAAoD,CAAA;IAEpD,SAAS;IACT,kEAA2C,CAAA;IAC3C,kEAA2C,CAAA;IAC3C,gEAAyC,CAAA;IAEzC,YAAY;AACd,CAAC,EA1BW,mBAAmB,KAAnB,mBAAmB,QA0B9B;AAED,MAAM,CAAC,MAAM,4BAA4B,GAAG,GAAG,CAAC;AAChD,MAAM,CAAC,MAAM,iCAAiC,GAAG,OAAO,CAAC;AAEzD,MAAM,CAAN,IAAY,4BAQX;AARD,WAAY,4BAA4B;IACtC,2CAAW,CAAA;IACX,2CAAW,CAAA;IACX,2CAAW,CAAA;IACX,+CAAe,CAAA;IACf,2CAAW,CAAA;IACX,+CAAe,CAAA;IACf,6CAAa,CAAA;AACf,CAAC,EARW,4BAA4B,KAA5B,4BAA4B,QAQvC;AAED,MAAM,CAAN,IAAY,+BAGX;AAHD,WAAY,+BAA+B;IACzC,0DAAuB,CAAA;IACvB,4DAAyB,CAAA;AAC3B,CAAC,EAHW,+BAA+B,KAA/B,+BAA+B,QAG1C"}
|
|
@@ -13,29 +13,24 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type {
|
|
17
|
-
import { DataCubeGridState } from './DataCubeGridState.js';
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
16
|
+
import type { REPLStore } from './DataCubeStore.js';
|
|
17
|
+
import { DataCubeGridState } from './grid/DataCubeGridState.js';
|
|
18
|
+
import { DataCubeEditorState } from './editor/DataCubeEditorState.js';
|
|
19
|
+
import type { DataCubeQuery } from '../../server/models/DataCubeQuery.js';
|
|
20
|
+
import { ActionState } from '@finos/legend-shared';
|
|
21
|
+
import { DataCubeEngine } from './core/DataCubeEngine.js';
|
|
22
|
+
import { DataCubeQuerySnapshotManager } from './core/DataCubeQuerySnapshotManager.js';
|
|
23
|
+
import type { LegendREPLApplicationStore } from '../LegendREPLBaseStore.js';
|
|
24
24
|
export declare class DataCubeState {
|
|
25
|
-
readonly editorStore:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
parseQuery(): GeneratorFn<void>;
|
|
36
|
-
saveQuery(): GeneratorFn<void>;
|
|
37
|
-
getInitialQueryLambda(queryId?: string): GeneratorFn<void>;
|
|
38
|
-
getInitialREPLGridServerResult(queryId?: string): GeneratorFn<void>;
|
|
39
|
-
getLicenseKey(): GeneratorFn<void>;
|
|
25
|
+
readonly editorStore: REPLStore;
|
|
26
|
+
readonly applicationStore: LegendREPLApplicationStore;
|
|
27
|
+
readonly engine: DataCubeEngine;
|
|
28
|
+
readonly snapshotManager: DataCubeQuerySnapshotManager;
|
|
29
|
+
readonly grid: DataCubeGridState;
|
|
30
|
+
readonly editor: DataCubeEditorState;
|
|
31
|
+
readonly initState: ActionState;
|
|
32
|
+
baseQuery: DataCubeQuery;
|
|
33
|
+
constructor(editorStore: REPLStore);
|
|
34
|
+
initialize(): Promise<void>;
|
|
40
35
|
}
|
|
41
36
|
//# sourceMappingURL=DataCubeState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataCubeState.d.ts","sourceRoot":"","sources":["../../../src/stores/dataCube/DataCubeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"DataCubeState.d.ts","sourceRoot":"","sources":["../../../src/stores/dataCube/DataCubeState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAqB,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AAEtF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAE5E,qBAAa,aAAa;IACxB,QAAQ,CAAC,WAAW,EAAE,SAAS,CAAC;IAChC,QAAQ,CAAC,gBAAgB,EAAE,0BAA0B,CAAC;IACtD,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAChC,QAAQ,CAAC,eAAe,EAAE,4BAA4B,CAAC;IACvD,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC;IACrC,QAAQ,CAAC,SAAS,cAAwB;IAE1C,SAAS,EAAG,aAAa,CAAC;gBAEd,WAAW,EAAE,SAAS;IAW5B,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CAmBlC"}
|