@finos/legend-query-builder 4.14.95 → 4.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. package/lib/components/QueryBuilder.d.ts.map +1 -1
  2. package/lib/components/QueryBuilder.js +2 -1
  3. package/lib/components/QueryBuilder.js.map +1 -1
  4. package/lib/components/data-cube/QueryBuilderDataCube.d.ts +22 -0
  5. package/lib/components/data-cube/QueryBuilderDataCube.d.ts.map +1 -0
  6. package/lib/components/data-cube/QueryBuilderDataCube.js +48 -0
  7. package/lib/components/data-cube/QueryBuilderDataCube.js.map +1 -0
  8. package/lib/components/filter/QueryBuilderFilterPanel.js +2 -2
  9. package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
  10. package/lib/components/result/QueryBuilderResultPanel.d.ts.map +1 -1
  11. package/lib/components/result/QueryBuilderResultPanel.js +6 -3
  12. package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
  13. package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts.map +1 -1
  14. package/lib/components/result/tds/QueryBuilderTDSGridResult.js +2 -3
  15. package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
  16. package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts +2 -2
  17. package/lib/components/result/tds/QueryBuilderTDSResultShared.d.ts.map +1 -1
  18. package/lib/components/result/tds/QueryBuilderTDSResultShared.js +19 -155
  19. package/lib/components/result/tds/QueryBuilderTDSResultShared.js.map +1 -1
  20. package/lib/graph-manager/QueryBuilderConfig.d.ts +5 -1
  21. package/lib/graph-manager/QueryBuilderConfig.d.ts.map +1 -1
  22. package/lib/graph-manager/QueryBuilderConfig.js +6 -1
  23. package/lib/graph-manager/QueryBuilderConfig.js.map +1 -1
  24. package/lib/index.css +1 -1
  25. package/lib/index.d.ts +2 -0
  26. package/lib/index.d.ts.map +1 -1
  27. package/lib/index.js +2 -0
  28. package/lib/index.js.map +1 -1
  29. package/lib/package.json +2 -1
  30. package/lib/stores/QueryBuilderState.d.ts +2 -0
  31. package/lib/stores/QueryBuilderState.d.ts.map +1 -1
  32. package/lib/stores/QueryBuilderState.js +9 -19
  33. package/lib/stores/QueryBuilderState.js.map +1 -1
  34. package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.d.ts +38 -0
  35. package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.d.ts.map +1 -0
  36. package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.js +71 -0
  37. package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.js.map +1 -0
  38. package/lib/stores/data-cube/QueryBuilderDataCubeEngine.d.ts +52 -0
  39. package/lib/stores/data-cube/QueryBuilderDataCubeEngine.d.ts.map +1 -0
  40. package/lib/stores/data-cube/QueryBuilderDataCubeEngine.js +149 -0
  41. package/lib/stores/data-cube/QueryBuilderDataCubeEngine.js.map +1 -0
  42. package/lib/stores/data-cube/QueryBuilderDataCubeEngineHelper.d.ts +19 -0
  43. package/lib/stores/data-cube/QueryBuilderDataCubeEngineHelper.d.ts.map +1 -0
  44. package/lib/stores/data-cube/QueryBuilderDataCubeEngineHelper.js +31 -0
  45. package/lib/stores/data-cube/QueryBuilderDataCubeEngineHelper.js.map +1 -0
  46. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts +1 -0
  47. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts.map +1 -1
  48. package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js.map +1 -1
  49. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts +1 -0
  50. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +1 -1
  51. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +3 -0
  52. package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +1 -1
  53. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +1 -0
  54. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
  55. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +3 -0
  56. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
  57. package/lib/stores/filter/QueryBuilderFilterOperator.d.ts +1 -1
  58. package/lib/stores/filter/QueryBuilderFilterOperator.d.ts.map +1 -1
  59. package/lib/stores/filter/QueryBuilderFilterState.d.ts +1 -1
  60. package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
  61. package/lib/stores/filter/QueryBuilderFilterState.js +3 -8
  62. package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
  63. package/lib/stores/filter/QueryBuilderFilterStateBuilder.js +1 -1
  64. package/lib/stores/filter/QueryBuilderFilterStateBuilder.js.map +1 -1
  65. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts +2 -2
  66. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts.map +1 -1
  67. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js +3 -3
  68. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js.map +1 -1
  69. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts +2 -2
  70. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts.map +1 -1
  71. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js +3 -3
  72. package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js.map +1 -1
  73. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts +2 -2
  74. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts.map +1 -1
  75. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js +2 -2
  76. package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js.map +1 -1
  77. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts +1 -1
  78. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.d.ts.map +1 -1
  79. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js +2 -2
  80. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.js.map +1 -1
  81. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts +1 -1
  82. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.d.ts.map +1 -1
  83. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js +2 -2
  84. package/lib/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.js.map +1 -1
  85. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts +2 -2
  86. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts.map +1 -1
  87. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js +2 -2
  88. package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js.map +1 -1
  89. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts +2 -2
  90. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts.map +1 -1
  91. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js +2 -2
  92. package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js.map +1 -1
  93. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts +1 -1
  94. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.d.ts.map +1 -1
  95. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js +2 -2
  96. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThan.js.map +1 -1
  97. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts +1 -1
  98. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.d.ts.map +1 -1
  99. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js +2 -2
  100. package/lib/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.js.map +1 -1
  101. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts +2 -2
  102. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts.map +1 -1
  103. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js +3 -3
  104. package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js.map +1 -1
  105. package/package.json +7 -6
  106. package/src/components/QueryBuilder.tsx +4 -0
  107. package/src/components/data-cube/QueryBuilderDataCube.tsx +116 -0
  108. package/src/components/filter/QueryBuilderFilterPanel.tsx +2 -2
  109. package/src/components/result/QueryBuilderResultPanel.tsx +24 -0
  110. package/src/components/result/tds/QueryBuilderTDSGridResult.tsx +2 -3
  111. package/src/components/result/tds/QueryBuilderTDSResultShared.tsx +26 -332
  112. package/src/graph-manager/QueryBuilderConfig.ts +7 -1
  113. package/src/index.ts +2 -0
  114. package/src/stores/QueryBuilderState.ts +13 -27
  115. package/src/stores/data-cube/QueryBuilderDataCubeApplicationEngine.ts +109 -0
  116. package/src/stores/data-cube/QueryBuilderDataCubeEngine.ts +255 -0
  117. package/src/stores/data-cube/QueryBuilderDataCubeEngineHelper.ts +41 -0
  118. package/src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts +1 -0
  119. package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +4 -0
  120. package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +4 -0
  121. package/src/stores/filter/QueryBuilderFilterOperator.ts +1 -1
  122. package/src/stores/filter/QueryBuilderFilterState.ts +5 -10
  123. package/src/stores/filter/QueryBuilderFilterStateBuilder.ts +1 -1
  124. package/src/stores/filter/operators/QueryBuilderFilterOperator_Contain.ts +5 -3
  125. package/src/stores/filter/operators/QueryBuilderFilterOperator_EndWith.ts +5 -3
  126. package/src/stores/filter/operators/QueryBuilderFilterOperator_Equal.ts +2 -2
  127. package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThan.ts +4 -2
  128. package/src/stores/filter/operators/QueryBuilderFilterOperator_GreaterThanEqual.ts +4 -2
  129. package/src/stores/filter/operators/QueryBuilderFilterOperator_In.ts +2 -2
  130. package/src/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.ts +2 -2
  131. package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThan.ts +4 -2
  132. package/src/stores/filter/operators/QueryBuilderFilterOperator_LessThanEqual.ts +4 -2
  133. package/src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts +5 -3
  134. package/tsconfig.json +4 -0
@@ -22,7 +22,7 @@ import { QueryBuilderExplorerState } from './explorer/QueryBuilderExplorerState.
22
22
  import { QueryBuilderResultState } from './QueryBuilderResultState.js';
23
23
  import { processQueryLambdaFunction, processParameters, } from './QueryBuilderStateBuilder.js';
24
24
  import { QueryBuilderUnsupportedQueryState } from './QueryBuilderUnsupportedQueryState.js';
25
- import { GRAPH_MANAGER_EVENT, CompilationError, extractSourceInformationCoordinates, LambdaFunctionInstanceValue, RawLambda, VariableExpression, observe_ValueSpecification, ObserverContext, isStubbed_RawLambda, buildLambdaVariableExpressions, buildRawLambdaFromLambdaFunction, PrimitiveType, SimpleFunctionExpression, extractElementNameFromPath, SUPPORTED_FUNCTIONS, PackageableElementExplicitReference, InstanceValue, Multiplicity, RuntimePointer, QueryExplicitExecutionContext, } from '@finos/legend-graph';
25
+ import { GRAPH_MANAGER_EVENT, CompilationError, extractSourceInformationCoordinates, LambdaFunctionInstanceValue, RawLambda, VariableExpression, observe_ValueSpecification, ObserverContext, isStubbed_RawLambda, buildLambdaVariableExpressions, buildRawLambdaFromLambdaFunction, PrimitiveType, PackageableElementExplicitReference, RuntimePointer, QueryExplicitExecutionContext, attachFromQuery, } from '@finos/legend-graph';
26
26
  import { buildLambdaFunction } from './QueryBuilderValueSpecificationBuilder.js';
27
27
  import { QueryFunctionsExplorerState } from './explorer/QueryFunctionsExplorerState.js';
28
28
  import { QueryBuilderParametersState, } from './QueryBuilderParametersState.js';
@@ -75,6 +75,7 @@ export class QueryBuilderState {
75
75
  isCheckingEntitlments = false;
76
76
  isCalendarEnabled = false;
77
77
  isLocalModeEnabled = false;
78
+ isCubeEnabled = false;
78
79
  INTERNAL__enableInitializingDefaultSimpleExpressionValue = false;
79
80
  lambdaWriteMode = QUERY_BUILDER_LAMBDA_WRITER_MODE.STANDARD;
80
81
  class;
@@ -113,6 +114,7 @@ export class QueryBuilderState {
113
114
  class: observable,
114
115
  isQueryChatOpened: observable,
115
116
  isLocalModeEnabled: observable,
117
+ isCubeEnabled: observable,
116
118
  getAllFunction: observable,
117
119
  lambdaWriteMode: observable,
118
120
  INTERNAL__enableInitializingDefaultSimpleExpressionValue: observable,
@@ -124,6 +126,7 @@ export class QueryBuilderState {
124
126
  setShowParametersPanel: action,
125
127
  setIsEditingWatermark: action,
126
128
  setIsCalendarEnabled: action,
129
+ setIsCubeEnabled: action,
127
130
  setIsCheckingEntitlments: action,
128
131
  setClass: action,
129
132
  setIsQueryChatOpened: action,
@@ -161,7 +164,6 @@ export class QueryBuilderState {
161
164
  this.config = config;
162
165
  this.workflowState = workflowState;
163
166
  this.sourceInfo = sourceInfo;
164
- //extra check for only QA currently.
165
167
  this.isQueryChatOpened =
166
168
  (!this.config?.TEMPORARY__disableQueryBuilderChat &&
167
169
  this.applicationStore.settingService.getBooleanValue(QUERY_BUILDER_SETTING_KEY.SHOW_QUERY_CHAT_PANEL)) ??
@@ -242,6 +244,9 @@ export class QueryBuilderState {
242
244
  setIsLocalModeEnabled(val) {
243
245
  this.isLocalModeEnabled = val;
244
246
  }
247
+ setIsCubeEnabled(val) {
248
+ this.isCubeEnabled = val;
249
+ }
245
250
  setInternalize(val) {
246
251
  this.internalizeState = val;
247
252
  }
@@ -395,23 +400,8 @@ export class QueryBuilderState {
395
400
  const runtime = guaranteeNonNullable(this.executionContextState.runtimeValue, 'Runtime required to build from query');
396
401
  const runtimePointer = guaranteeType(runtime, RuntimePointer).packageableRuntime;
397
402
  const lambdaFunc = buildLambdaFunction(this);
398
- const currentExpression = guaranteeNonNullable(lambdaFunc.expressionSequence[0]);
399
- const _func = new SimpleFunctionExpression(extractElementNameFromPath(SUPPORTED_FUNCTIONS.FROM));
400
- const mappingInstance = new InstanceValue(Multiplicity.ONE, undefined);
401
- mappingInstance.values = [
402
- PackageableElementExplicitReference.create(mapping),
403
- ];
404
- const runtimeInstance = new InstanceValue(Multiplicity.ONE, undefined);
405
- runtimeInstance.values = [
406
- PackageableElementExplicitReference.create(runtimePointer.value),
407
- ];
408
- _func.parametersValues = [
409
- currentExpression,
410
- mappingInstance,
411
- runtimeInstance,
412
- ];
413
- lambdaFunc.expressionSequence = [_func];
414
- return buildRawLambdaFromLambdaFunction(lambdaFunc, this.graphManagerState);
403
+ const fromQuery = attachFromQuery(lambdaFunc, mapping, runtimePointer.value);
404
+ return buildRawLambdaFromLambdaFunction(fromQuery, this.graphManagerState);
415
405
  }
416
406
  getQueryReturnType() {
417
407
  if (this.fetchStructureState.implementation instanceof QueryBuilderTDSState) {
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,MAAM,EACN,IAAI,EACJ,UAAU,EACV,cAAc,EACd,QAAQ,EACR,UAAU,GACX,MAAM,MAAM,CAAC;AACd,OAAO,EAEL,QAAQ,EACR,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,YAAY,EACZ,WAAW,EACX,SAAS,EACT,UAAU,EACV,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACvG,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM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AiB,EACtB,IAAI,CAAC,aAAa,EAClB,SAAS,CACV,CAAC;QACF,UAAU,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAC9B,UAAU,CAAC,qBAAqB,CAAC,OAAO;YACtC,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC;QACrC,UAAU,CAAC,qBAAqB,CAAC,YAAY;YAC3C,IAAI,CAAC,qBAAqB,CAAC,YAAY,CAAC;QAC1C,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,mBAAmB;YACtD,IAAI,CAAC,qBAAqB;YAC1B,IAAI,CAAC,gBAAgB;YACrB,IAAI,CAAC,eAAe;YACpB,IAAI,CAAC,WAAW;YAChB,IAAI,CAAC,cAAc;YACnB,IAAI,CAAC,sBAAsB;YAC3B,IAAI,CAAC,mBAAmB,CAAC,cAAc;SACxC,CAAC,CAAC;IACL,CAAC;CACF;AAED;;;;;;;;;GASG;AACH,MAAM,OAAO,gCAAiC,SAAQ,iBAAiB;CAAG"}
1
+ {"version":3,"file":"QueryBuilderState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,MAAM,EACN,IAAI,EACJ,UAAU,EACV,cAAc,EACd,QAAQ,EACR,UAAU,GACX,MAAM,MAAM,CAAC;AACd,OAAO,EAEL,QAAQ,EACR,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,YAAY,EACZ,WAAW,EACX,SAAS,EACT,UAAU,EACV,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACvG,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,y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W;YAChB,IAAI,CAAC,cAAc;YACnB,IAAI,CAAC,sBAAsB;YAC3B,IAAI,CAAC,mBAAmB,CAAC,cAAc;SACxC,CAAC,CAAC;IACL,CAAC;CACF;AAED;;;;;;;;;GASG;AACH,MAAM,OAAO,gCAAiC,SAAQ,iBAAiB;CAAG"}
@@ -0,0 +1,38 @@
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 GenericLegendApplicationStore } from '@finos/legend-application';
17
+ import { DataCubeApplicationEngine, type ActionAlert } from '@finos/legend-data-cube';
18
+ import { LogEvent, type DocumentationEntry } from '@finos/legend-shared';
19
+ export declare class QueryBuilderDataCubeApplicationEngine extends DataCubeApplicationEngine {
20
+ private readonly application;
21
+ constructor(application: GenericLegendApplicationStore);
22
+ get documentationUrl(): string | undefined;
23
+ getDocumentationEntry(key: string): DocumentationEntry | undefined;
24
+ openDocumentationEntry(entry: DocumentationEntry): void;
25
+ shouldDisplayDocumentationEntry(entry: DocumentationEntry): boolean;
26
+ openLink(url: string): void;
27
+ setWindowTitle(title: string): void;
28
+ alertAction(alertInfo: ActionAlert | undefined): void;
29
+ alertUnhandledError(error: Error): void;
30
+ logDebug(message: string, ...data: unknown[]): void;
31
+ debugProcess(processName: string, ...data: unknown[]): void;
32
+ logInfo(event: LogEvent, ...data: unknown[]): void;
33
+ logWarning(event: LogEvent, ...data: unknown[]): void;
34
+ logError(event: LogEvent, ...data: unknown[]): void;
35
+ logUnhandledError(error: Error): void;
36
+ logIllegalStateError(message: string, error?: Error): void;
37
+ }
38
+ //# sourceMappingURL=QueryBuilderDataCubeApplicationEngine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilderDataCubeApplicationEngine.d.ts","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeApplicationEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,KAAK,6BAA6B,EACnC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,yBAAyB,EACzB,KAAK,WAAW,EACjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAEzE,qBAAa,qCAAsC,SAAQ,yBAAyB;IAClF,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAgC;gBAEhD,WAAW,EAAE,6BAA6B;IAMtD,IAAI,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAEzC;IAED,qBAAqB,CAAC,GAAG,EAAE,MAAM;IAIjC,sBAAsB,CAAC,KAAK,EAAE,kBAAkB;IAIhD,+BAA+B,CAAC,KAAK,EAAE,kBAAkB;IAIzD,QAAQ,CAAC,GAAG,EAAE,MAAM;IAIpB,cAAc,CAAC,KAAK,EAAE,MAAM;IAI5B,WAAW,CAAC,SAAS,EAAE,WAAW,GAAG,SAAS;IAI9C,mBAAmB,CAAC,KAAK,EAAE,KAAK;IAIhC,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE;IAQ5C,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE;IASpD,OAAO,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE;IAI3C,UAAU,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE;IAI9C,QAAQ,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE;IAI5C,iBAAiB,CAAC,KAAK,EAAE,KAAK;IAI9B,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;CAOpD"}
@@ -0,0 +1,71 @@
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 { APPLICATION_EVENT, shouldDisplayVirtualAssistantDocumentationEntry, } from '@finos/legend-application';
17
+ import { DataCubeApplicationEngine, } from '@finos/legend-data-cube';
18
+ import { LogEvent } from '@finos/legend-shared';
19
+ export class QueryBuilderDataCubeApplicationEngine extends DataCubeApplicationEngine {
20
+ application;
21
+ constructor(application) {
22
+ super();
23
+ this.application = application;
24
+ }
25
+ get documentationUrl() {
26
+ return this.application.documentationService.url;
27
+ }
28
+ getDocumentationEntry(key) {
29
+ return this.application.documentationService.getDocEntry(key);
30
+ }
31
+ openDocumentationEntry(entry) {
32
+ this.currentDocumentationEntry = entry;
33
+ }
34
+ shouldDisplayDocumentationEntry(entry) {
35
+ return shouldDisplayVirtualAssistantDocumentationEntry(entry);
36
+ }
37
+ openLink(url) {
38
+ this.application.navigationService.navigator.visitAddress(url);
39
+ }
40
+ setWindowTitle(title) {
41
+ this.application.layoutService.setWindowTitle(title);
42
+ }
43
+ alertAction(alertInfo) {
44
+ this.currentActionAlert = alertInfo;
45
+ }
46
+ alertUnhandledError(error) {
47
+ this.application.alertUnhandledError(error);
48
+ }
49
+ logDebug(message, ...data) {
50
+ this.application.logService.debug(LogEvent.create(APPLICATION_EVENT.DEBUG), message, ...data);
51
+ }
52
+ debugProcess(processName, ...data) {
53
+ this.application.logService.debug(LogEvent.create(APPLICATION_EVENT.DEBUG), `\n------ START DEBUG PROCESS: ${processName} ------\n`, ...data, `\n------- END DEBUG PROCESS: ${processName} -------\n`);
54
+ }
55
+ logInfo(event, ...data) {
56
+ this.application.logService.info(event, ...data);
57
+ }
58
+ logWarning(event, ...data) {
59
+ this.application.logService.warn(event, ...data);
60
+ }
61
+ logError(event, ...data) {
62
+ this.application.logService.error(event, ...data);
63
+ }
64
+ logUnhandledError(error) {
65
+ this.application.logUnhandledError(error);
66
+ }
67
+ logIllegalStateError(message, error) {
68
+ this.logError(LogEvent.create(APPLICATION_EVENT.ILLEGAL_APPLICATION_STATE_OCCURRED), message, error);
69
+ }
70
+ }
71
+ //# sourceMappingURL=QueryBuilderDataCubeApplicationEngine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilderDataCubeApplicationEngine.js","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeApplicationEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,+CAA+C,GAEhD,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,yBAAyB,GAE1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,QAAQ,EAA2B,MAAM,sBAAsB,CAAC;AAEzE,MAAM,OAAO,qCAAsC,SAAQ,yBAAyB;IACjE,WAAW,CAAgC;IAE5D,YAAY,WAA0C;QACpD,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED,IAAI,gBAAgB;QAClB,OAAO,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAAC,GAAG,CAAC;IACnD,CAAC;IAED,qBAAqB,CAAC,GAAW;QAC/B,OAAO,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAAC,WA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,EAAE,GAAG,IAAe;QAC5C,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,CAAC;IACnD,CAAC;IAED,QAAQ,CAAC,KAAe,EAAE,GAAG,IAAe;QAC1C,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,CAAC;IACpD,CAAC;IAED,iBAAiB,CAAC,KAAY;QAC5B,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC;IAED,oBAAoB,CAAC,OAAe,EAAE,KAAa;QACjD,IAAI,CAAC,QAAQ,CACX,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,kCAAkC,CAAC,EACrE,OAAO,EACP,KAAK,CACN,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,52 @@
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 { V1_Lambda, RawLambda, TDSExecutionResult, type GraphManagerState, type PureModel, type V1_ValueSpecification } from '@finos/legend-graph';
17
+ import { DataCubeGetBaseQueryResult, DataCubeEngine, type CompletionItem, DataCubeQuerySource, type DataCubeInfrastructureInfo, type RelationType } from '@finos/legend-data-cube';
18
+ import { LogService } from '@finos/legend-shared';
19
+ export declare class _DataCubeQuery {
20
+ name: string;
21
+ query: string;
22
+ partialQuery: string;
23
+ source: DataCubeQuerySource;
24
+ constructor(name: string, query: string, partialQuery: string, source: DataCubeQuerySource);
25
+ }
26
+ export declare class QueryBuilderDataCubeQuerySource extends DataCubeQuerySource {
27
+ }
28
+ export declare class QueryBuilderDataCubeEngine extends DataCubeEngine {
29
+ readonly logService: LogService;
30
+ readonly graphState: GraphManagerState;
31
+ readonly selectInitialQuery: RawLambda;
32
+ readonly mappingPath: string | undefined;
33
+ readonly runtimePath: string;
34
+ constructor(selectQuery: RawLambda, mappingPath: string | undefined, runtimePath: string, graphManagerState: GraphManagerState);
35
+ get sourceLabel(): string;
36
+ getBaseQuery(): Promise<DataCubeGetBaseQueryResult>;
37
+ buildBaseQuery(): Promise<DataCubeGetBaseQueryResult>;
38
+ get graph(): PureModel;
39
+ private buildRawLambdaFromValueSpec;
40
+ getInfrastructureInfo(): Promise<DataCubeInfrastructureInfo>;
41
+ getQueryTypeahead(code: string, query: V1_ValueSpecification): Promise<CompletionItem[]>;
42
+ parseQuery(code: string, returnSourceInformation?: boolean): Promise<V1_ValueSpecification>;
43
+ getQueryRelationType(query: V1_ValueSpecification): Promise<RelationType>;
44
+ getRelationalType(query: RawLambda): Promise<RelationType>;
45
+ getQueryCodeRelationReturnType(code: string, baseQuery: V1_ValueSpecification): Promise<RelationType>;
46
+ executeQuery(query: V1_Lambda): Promise<{
47
+ result: TDSExecutionResult;
48
+ executedQuery: string;
49
+ executedSQL: string;
50
+ }>;
51
+ }
52
+ //# sourceMappingURL=QueryBuilderDataCubeEngine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilderDataCubeEngine.d.ts","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,SAAS,EACT,SAAS,EAET,kBAAkB,EAKlB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,0BAA0B,EAC1B,cAAc,EACd,KAA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AC,qBAAqB,CAAC;IAUxB,oBAAoB,CAC3B,KAAK,EAAE,qBAAqB,GAC3B,OAAO,CAAC,YAAY,CAAC;IAKlB,iBAAiB,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC;IASjD,8BAA8B,CAC3C,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,qBAAqB,GAC/B,OAAO,CAAC,YAAY,CAAC;IAWT,YAAY,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC;QACrD,MAAM,EAAE,kBAAkB,CAAC;QAC3B,aAAa,EAAE,MAAM,CAAC;QACtB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CA2BH"}
@@ -0,0 +1,149 @@
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 { SUPPORTED_FUNCTIONS, V1_AppliedFunction, V1_Lambda, RawLambda, RelationalExecutionActivities, TDSExecutionResult, V1_deserializeRawValueSpecification, V1_deserializeValueSpecification, V1_RawLambda, V1_serializeValueSpecification, } from '@finos/legend-graph';
17
+ import { _elementPtr, _functionName, DataCubeGetBaseQueryResult, DataCubeEngine, DataCubeQuerySource, DataCubeQuery, } from '@finos/legend-data-cube';
18
+ import { guaranteeType, LogService } from '@finos/legend-shared';
19
+ export class _DataCubeQuery {
20
+ name;
21
+ query;
22
+ partialQuery;
23
+ source;
24
+ constructor(name, query, partialQuery, source) {
25
+ this.name = name;
26
+ this.query = query;
27
+ this.partialQuery = partialQuery;
28
+ this.source = source;
29
+ }
30
+ }
31
+ export class QueryBuilderDataCubeQuerySource extends DataCubeQuerySource {
32
+ }
33
+ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
34
+ logService = new LogService();
35
+ graphState;
36
+ selectInitialQuery;
37
+ mappingPath;
38
+ runtimePath;
39
+ constructor(selectQuery, mappingPath, runtimePath, graphManagerState) {
40
+ super();
41
+ this.graphState = graphManagerState;
42
+ this.selectInitialQuery = selectQuery;
43
+ this.mappingPath = mappingPath;
44
+ this.runtimePath = runtimePath;
45
+ }
46
+ get sourceLabel() {
47
+ return `Query Builder Report`;
48
+ }
49
+ getBaseQuery() {
50
+ return this.buildBaseQuery();
51
+ }
52
+ async buildBaseQuery() {
53
+ const timestamp = Date.now();
54
+ let srcFuncExp = V1_deserializeValueSpecification(this.graphState.graphManager.serializeRawValueSpecification(this.selectInitialQuery), []);
55
+ // We could do a further check here to ensure the experssion is an applied funciton
56
+ // this is because data cube expects an expression to be able to built further upon the queery
57
+ if (srcFuncExp instanceof V1_Lambda &&
58
+ srcFuncExp.body.length === 1 &&
59
+ srcFuncExp.body[0]) {
60
+ srcFuncExp = srcFuncExp.body[0];
61
+ }
62
+ const fromFuncExp = new V1_AppliedFunction();
63
+ fromFuncExp.function = _functionName(SUPPORTED_FUNCTIONS.FROM);
64
+ fromFuncExp.parameters = [srcFuncExp];
65
+ if (this.mappingPath) {
66
+ fromFuncExp.parameters.push(_elementPtr(this.mappingPath));
67
+ }
68
+ if (this.runtimePath) {
69
+ fromFuncExp.parameters.push(_elementPtr(this.runtimePath));
70
+ }
71
+ const [relationType, queryString, fromQuerystring] = await Promise.all([
72
+ this.getRelationalType(this.selectInitialQuery),
73
+ this.graphState.graphManager.valueSpecificationToPureCode(V1_serializeValueSpecification(srcFuncExp, [])),
74
+ this.graphState.graphManager.valueSpecificationToPureCode(V1_serializeValueSpecification(fromFuncExp, [])),
75
+ ]);
76
+ const columns = relationType.columns;
77
+ const source = new QueryBuilderDataCubeQuerySource();
78
+ source.columns = columns;
79
+ source.mapping = this.mappingPath;
80
+ source.runtime = this.runtimePath;
81
+ source.query = queryString;
82
+ const partialQuery = `~[${columns.map((e) => `'${e.name}'`)}]->select()`;
83
+ const result = new DataCubeQuery(this.sourceLabel, fromQuerystring);
84
+ result.partialQuery = partialQuery;
85
+ result.source = source;
86
+ const baseQueryResult = new DataCubeGetBaseQueryResult();
87
+ baseQueryResult.timestamp = timestamp;
88
+ baseQueryResult.query = result;
89
+ baseQueryResult.partialQuery = await this.parseQuery(partialQuery);
90
+ baseQueryResult.sourceQuery = srcFuncExp;
91
+ return baseQueryResult;
92
+ }
93
+ get graph() {
94
+ return this.graphState.graph;
95
+ }
96
+ buildRawLambdaFromValueSpec(query) {
97
+ const json = guaranteeType(V1_deserializeRawValueSpecification(V1_serializeValueSpecification(query, [])), V1_RawLambda);
98
+ return new RawLambda(json.parameters, json.body);
99
+ }
100
+ getInfrastructureInfo() {
101
+ // we return undefined as we assume the grid license is set at the application level where query builder is built
102
+ return Promise.resolve({
103
+ gridClientLicense: undefined,
104
+ });
105
+ }
106
+ async getQueryTypeahead(code, query) {
107
+ const lambda = this.buildRawLambdaFromValueSpec(query);
108
+ const queryString = await this.graphState.graphManager.lambdaToPureCode(lambda);
109
+ const offset = queryString.length;
110
+ const codeBlock = queryString + code;
111
+ const result = await this.graphState.graphManager.getCodeComplete(codeBlock, this.graph, offset);
112
+ return result.completions;
113
+ }
114
+ async parseQuery(code, returnSourceInformation) {
115
+ return V1_deserializeValueSpecification(await this.graphState.graphManager.pureCodeToValueSpecification(code, returnSourceInformation), []);
116
+ }
117
+ getQueryRelationType(query) {
118
+ const lambda = this.buildRawLambdaFromValueSpec(query);
119
+ return this.getRelationalType(lambda);
120
+ }
121
+ async getRelationalType(query) {
122
+ const realtion_type = await this.graphState.graphManager.getLambdaRelationType(query, this.graph);
123
+ return realtion_type;
124
+ }
125
+ async getQueryCodeRelationReturnType(code, baseQuery) {
126
+ const queryString = await this.graphState.graphManager.valueSpecificationToPureCode(V1_serializeValueSpecification(baseQuery, []));
127
+ const fullQuery = code + queryString;
128
+ return this.getRelationalType(await this.graphState.graphManager.pureCodeToLambda(fullQuery));
129
+ }
130
+ async executeQuery(query) {
131
+ const lambda = this.buildRawLambdaFromValueSpec(query);
132
+ const [executionWithMetadata, queryString] = await Promise.all([
133
+ this.graphState.graphManager.runQuery(lambda, undefined, undefined, this.graph),
134
+ this.graphState.graphManager.lambdaToPureCode(lambda),
135
+ ]);
136
+ const expectedTDS = guaranteeType(executionWithMetadata.executionResult, TDSExecutionResult, 'Query returned expected to be of tabular data set');
137
+ const sql = expectedTDS.activities?.[0];
138
+ let sqlString = '### NO SQL FOUND';
139
+ if (sql instanceof RelationalExecutionActivities) {
140
+ sqlString = sql.sql;
141
+ }
142
+ return {
143
+ result: expectedTDS,
144
+ executedQuery: queryString,
145
+ executedSQL: sqlString,
146
+ };
147
+ }
148
+ }
149
+ //# sourceMappingURL=QueryBuilderDataCubeEngine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilderDataCubeEngine.js","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,6BAA6B,EAC7B,kBAAkB,EAClB,mCAAmC,EACnC,gCAAgC,EAChC,YAAY,EACZ,8BAA8B,GAI/B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,WAAW,EACX,aAAa,EACb,0BAA0B,EAC1B,cAAc,EAEd,mBAAmB,EAGnB,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEjE,MAAM,OAAO,cAAc;IACzB,IAAI,CAAS;IACb,KAAK,CAAS;IACd,YAAY,CAAS;IACrB,MAAM,CAAsB;IAE5B,YACE,IAAY,EACZ,KAAa,EAC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AC,2BAA2B,CAAC,KAAK,CAAC,CAAC;QACvD,MAAM,CAAC,qBAAqB,EAAE,WAAW,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YAC7D,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,QAAQ,CACnC,MAAM,EACN,SAAS,EACT,SAAS,EACT,IAAI,CAAC,KAAK,CACX;YACD,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,gBAAgB,CAAC,MAAM,CAAC;SACtD,CAAC,CAAC;QACH,MAAM,WAAW,GAAG,aAAa,CAC/B,qBAAqB,CAAC,eAAe,EACrC,kBAAkB,EAClB,mDAAmD,CACpD,CAAC;QACF,MAAM,GAAG,GAAG,WAAW,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC;QACxC,IAAI,SAAS,GAAG,kBAAkB,CAAC;QACnC,IAAI,GAAG,YAAY,6BAA6B,EAAE,CAAC;YACjD,SAAS,GAAG,GAAG,CAAC,GAAG,CAAC;QACtB,CAAC;QACD,OAAO;YACL,MAAM,EAAE,WAAW;YACnB,aAAa,EAAE,WAAW;YAC1B,WAAW,EAAE,SAAS;SACvB,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,19 @@
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 DataCubeEngine } from '@finos/legend-data-cube';
17
+ import type { QueryBuilderState } from '../QueryBuilderState.js';
18
+ export declare const createDataCubeEngineFromQueryBuilder: (queryBuilderState: QueryBuilderState) => DataCubeEngine | undefined;
19
+ //# sourceMappingURL=QueryBuilderDataCubeEngineHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilderDataCubeEngineHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeEngineHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAIjE,eAAO,MAAM,oCAAoC,sBAC5B,iBAAiB,KACnC,cAAc,GAAG,SAiBnB,CAAC"}
@@ -0,0 +1,31 @@
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 {} from '@finos/legend-data-cube';
17
+ import { RuntimePointer } from '@finos/legend-graph';
18
+ import { QueryBuilderDataCubeEngine } from './QueryBuilderDataCubeEngine.js';
19
+ export const createDataCubeEngineFromQueryBuilder = (queryBuilderState) => {
20
+ const runtime = queryBuilderState.executionContextState.runtimeValue instanceof
21
+ RuntimePointer
22
+ ? queryBuilderState.executionContextState.runtimeValue.packageableRuntime
23
+ .value.path
24
+ : undefined;
25
+ if (!runtime) {
26
+ return undefined;
27
+ }
28
+ const queryBuilderEngine = new QueryBuilderDataCubeEngine(queryBuilderState.buildQuery(), queryBuilderState.executionContextState.mapping?.path, runtime, queryBuilderState.graphManagerState);
29
+ return queryBuilderEngine;
30
+ };
31
+ //# sourceMappingURL=QueryBuilderDataCubeEngineHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilderDataCubeEngineHelper.js","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeEngineHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAuB,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAClD,iBAAoC,EACR,EAAE;IAC9B,MAAM,OAAO,GACX,iBAAiB,CAAC,qBAAqB,CAAC,YAAY;QACpD,cAAc;QACZ,CAAC,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,YAAY,CAAC,kBAAkB;aACpE,KAAK,CAAC,IAAI;QACf,CAAC,CAAC,SAAS,CAAC;IAChB,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,kBAAkB,GAAG,IAAI,0BAA0B,CACvD,iBAAiB,CAAC,UAAU,EAAE,EAC9B,iBAAiB,CAAC,qBAAqB,CAAC,OAAO,EAAE,IAAI,EACrD,OAAO,EACP,iBAAiB,CAAC,iBAAiB,CACpC,CAAC;IACF,OAAO,kBAAkB,CAAC;AAC5B,CAAC,CAAC"}
@@ -33,6 +33,7 @@ export declare abstract class QueryBuilderFetchStructureImplementationState impl
33
33
  abstract get fetchStructureValidationIssues(): string[];
34
34
  abstract get allValidationIssues(): string[];
35
35
  abstract get fetchLabel(): string;
36
+ abstract get canBeExportedToCube(): boolean;
36
37
  abstract onClassChange(_class: Class | undefined): void;
37
38
  abstract revealCompilationError(compilationError: CompilationError): boolean;
38
39
  abstract clearCompilationError(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderFetchStructureImplementationState.d.ts","sourceRoot":"","sources":["../../../src/st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CAAC,aAAa,CAAC,IAAI,EAAE,wCAAwC,GAAG,IAAI;IAC5E,QAAQ,CAAC,eAAe,CACtB,KAAK,EAAE,wCAAwC,EAAE,GAChD,IAAI;IACP,QAAQ,CAAC,cAAc,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO;IAC9D,QAAQ,CAAC,iCAAiC,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI;IACtE,QAAQ,CAAC,oBAAoB,CAC3B,cAAc,EAAE,cAAc,EAC9B,OAAO,CAAC,EAAE,2BAA2B,GACpC,IAAI;IACP,QAAQ,CAAC,UAAU,IAAI,IAAI;IAC3B,QAAQ,CAAC,mBAAmB,IAAI,IAAI;IACpC,QAAQ,KAAK,sBAAsB,IAAI,OAAO,CAAC;IAC/C,QAAQ,KAAK,mCAAmC,IAAI,OAAO,CAAC;IAC5D,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC;IAEhC,IAAI,sCAAsC,IAAI,OAAO,CAEpD;IAGD,QAAQ,KAAK,uBAAuB,IAAI,MAAM,EAAE,CAAC;IACjD,QAAQ,CAAC,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc;CAC3D"}
1
+ {"version":3,"file":"QueryBuilderFetchStructureImplementationState.d.ts","sourceRoot":"","sources":["../../../src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,KAAK,EACL,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,0CAA0C,CAAC;AACzG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mDAAmD,CAAC;AACrG,OAAO,KAAK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,IAAI,IAAI;IAC3B,QAAQ,CAAC,mBAAmB,IAAI,IAAI;IACpC,QAAQ,KAAK,sBAAsB,IAAI,OAAO,CAAC;IAC/C,QAAQ,KAAK,mCAAmC,IAAI,OAAO,CAAC;IAC5D,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC;IAEhC,IAAI,sCAAsC,IAAI,OAAO,CAEpD;IAGD,QAAQ,KAAK,uBAAuB,IAAI,MAAM,EAAE,CAAC;IACjD,QAAQ,CAAC,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc;CAC3D"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderFetchStructureImplementationState.js","sourceRoot":"","sources":["../../../src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAOhD,MAAM,CAAN,IAAY,8BAGX;AAHD,WAAY,8BAA8B;IACxC,mFAAiD,CAAA;IACjD,6DAA2B,CAAA;AAC7B,CAAC,EAHW,8BAA8B,KAA9B,8BAA8B,QAGzC;AAED,MAAM,OAAgB,6CAA6C;IAGxD,iBAAiB,CAAoB;IACrC,mBAAmB,CAAkC;IAE9D,YACE,iBAAoC,EACpC,mBAAoD;QAEpD,cAAc,CAAC,IAAI,EAAE;YACnB,+BAA+B,EAAE,QAAQ;YACzC,8BAA8B,EAAE,QAAQ;YACxC,mBAAmB,EAAE,QAAQ;YAC7B,sBAAsB,EAAE,QAAQ;YAChC,mCAAmC,EAAE,QAAQ;YAC7C,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;QAEH,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IACjD,CAAC;IA2BD,IAAI,sCAAsC;QACxC,OAAO,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,SAAS,CAAC;IACtD,CAAC;CAKF"}
1
+ {"version":3,"file":"QueryBuilderFetchStructureImplementationState.js","sourceRoot":"","sources":["../../../src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAOhD,MAAM,CAAN,IAAY,8BAGX;AAHD,WAAY,8BAA8B;IACxC,mFAAiD,CAAA;IACjD,6DAA2B,CAAA;AAC7B,CAAC,EAHW,8BAA8B,KAA9B,8BAA8B,QAGzC;AAED,MAAM,OAAgB,6CAA6C;IAGxD,iBAAiB,CAAoB;IACrC,mBAAmB,CAAkC;IAE9D,YACE,iBAAoC,EACpC,mBAAoD;QAEpD,cAAc,CAAC,IAAI,EAAE;YACnB,+BAA+B,EAAE,QAAQ;YACzC,8BAA8B,EAAE,QAAQ;YACxC,mBAAmB,EAAE,QAAQ;YAC7B,sBAAsB,EAAE,QAAQ;YAChC,mCAAmC,EAAE,QAAQ;YAC7C,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;QAEH,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IACjD,CAAC;IA4BD,IAAI,sCAAsC;QACxC,OAAO,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,SAAS,CAAC;IACtD,CAAC;CAKF"}
@@ -91,6 +91,7 @@ export declare class QueryBuilderGraphFetchTreeState extends QueryBuilderFetchSt
91
91
  constructor(queryBuilderState: QueryBuilderState, fetchStructureState: QueryBuilderFetchStructureState);
92
92
  get type(): string;
93
93
  get fetchLabel(): string;
94
+ get canBeExportedToCube(): boolean;
94
95
  get usedExplorerTreePropertyNodeIDs(): string[];
95
96
  get fetchStructureValidationIssues(): string[];
96
97
  get allValidationIssues(): string[];