@finos/legend-application-data-cube 0.1.5 → 0.1.7

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.
Files changed (181) hide show
  1. package/lib/__lib__/LegendDataCubeNavigation.d.ts +5 -5
  2. package/lib/__lib__/LegendDataCubeNavigation.d.ts.map +1 -1
  3. package/lib/__lib__/LegendDataCubeNavigation.js +5 -5
  4. package/lib/__lib__/LegendDataCubeNavigation.js.map +1 -1
  5. package/lib/{stores/source/CubeInputSource.js → __lib__/LegendDataCubeSetting.d.ts} +6 -14
  6. package/lib/__lib__/LegendDataCubeSetting.d.ts.map +1 -0
  7. package/lib/__lib__/LegendDataCubeSetting.js +25 -0
  8. package/lib/__lib__/LegendDataCubeSetting.js.map +1 -0
  9. package/lib/{stores/model/DataCubeQueryContent.js → __lib__/LegendDataCubeUserData.d.ts} +4 -5
  10. package/lib/__lib__/LegendDataCubeUserData.d.ts.map +1 -0
  11. package/lib/{stores/model/DataCubeGenericSource.d.ts → __lib__/LegendDataCubeUserData.js} +6 -3
  12. package/lib/__lib__/LegendDataCubeUserData.js.map +1 -0
  13. package/lib/application/LegendDataCube.d.ts.map +1 -1
  14. package/lib/application/LegendDataCube.js.map +1 -1
  15. package/lib/application/LegendDataCubeApplicationConfig.d.ts +1 -1
  16. package/lib/application/LegendDataCubeApplicationConfig.d.ts.map +1 -1
  17. package/lib/application/LegendDataCubeApplicationConfig.js +3 -1
  18. package/lib/application/LegendDataCubeApplicationConfig.js.map +1 -1
  19. package/lib/application/LegendDataCubePluginManager.d.ts.map +1 -1
  20. package/lib/application/LegendDataCubePluginManager.js.map +1 -1
  21. package/lib/components/LegendDataCubeFrameworkProvider.d.ts +2 -2
  22. package/lib/components/LegendDataCubeFrameworkProvider.d.ts.map +1 -1
  23. package/lib/components/LegendDataCubeFrameworkProvider.js +5 -5
  24. package/lib/components/LegendDataCubeFrameworkProvider.js.map +1 -1
  25. package/lib/components/LegendDataCubeWebApplication.d.ts.map +1 -1
  26. package/lib/components/LegendDataCubeWebApplication.js +25 -6
  27. package/lib/components/LegendDataCubeWebApplication.js.map +1 -1
  28. package/lib/components/{source/DataCubeSourceEditor.d.ts → query-builder/LegendDataCubeNewQueryBuilder.d.ts} +4 -4
  29. package/lib/components/query-builder/LegendDataCubeNewQueryBuilder.d.ts.map +1 -0
  30. package/lib/components/query-builder/LegendDataCubeNewQueryBuilder.js +45 -0
  31. package/lib/components/query-builder/LegendDataCubeNewQueryBuilder.js.map +1 -0
  32. package/{src/stores/model/DataCubeGenericSource.ts → lib/components/query-builder/LegendDataCubeQueryBuilder.d.ts} +2 -2
  33. package/lib/components/query-builder/LegendDataCubeQueryBuilder.d.ts.map +1 -0
  34. package/lib/components/query-builder/LegendDataCubeQueryBuilder.js +85 -0
  35. package/lib/components/query-builder/LegendDataCubeQueryBuilder.js.map +1 -0
  36. package/lib/components/query-builder/LegendDataCubeQueryBuilderStoreProvider.d.ts +19 -0
  37. package/lib/components/query-builder/LegendDataCubeQueryBuilderStoreProvider.d.ts.map +1 -0
  38. package/lib/components/query-builder/LegendDataCubeQueryBuilderStoreProvider.js +33 -0
  39. package/lib/components/query-builder/LegendDataCubeQueryBuilderStoreProvider.js.map +1 -0
  40. package/lib/components/{source/ExistingDataCubeQuery.d.ts → query-builder/LegendDataCubeQueryLoader.d.ts} +2 -2
  41. package/lib/components/query-builder/LegendDataCubeQueryLoader.d.ts.map +1 -0
  42. package/lib/components/query-builder/LegendDataCubeQueryLoader.js +99 -0
  43. package/lib/components/query-builder/LegendDataCubeQueryLoader.js.map +1 -0
  44. package/lib/components/{DataCubeEditor.d.ts → query-builder/LegendDataCubeQuerySaver.d.ts} +2 -2
  45. package/lib/components/query-builder/LegendDataCubeQuerySaver.d.ts.map +1 -0
  46. package/lib/components/query-builder/LegendDataCubeQuerySaver.js +49 -0
  47. package/lib/components/query-builder/LegendDataCubeQuerySaver.js.map +1 -0
  48. package/lib/components/{source/SavedQuerySourceEditor.d.ts → query-builder/source-builder/AdhocQueryDataCubeSourceBuilder.d.ts} +4 -4
  49. package/lib/components/query-builder/source-builder/AdhocQueryDataCubeSourceBuilder.d.ts.map +1 -0
  50. package/lib/components/query-builder/source-builder/AdhocQueryDataCubeSourceBuilder.js +22 -0
  51. package/lib/components/query-builder/source-builder/AdhocQueryDataCubeSourceBuilder.js.map +1 -0
  52. package/lib/components/query-builder/source-builder/LegendQueryDataCubeSourceBuilder.d.ts +22 -0
  53. package/lib/components/query-builder/source-builder/LegendQueryDataCubeSourceBuilder.d.ts.map +1 -0
  54. package/lib/components/query-builder/source-builder/LegendQueryDataCubeSourceBuilder.js +97 -0
  55. package/lib/components/query-builder/source-builder/LegendQueryDataCubeSourceBuilder.js.map +1 -0
  56. package/lib/index.css +2 -2
  57. package/lib/index.css.map +1 -1
  58. package/lib/package.json +2 -2
  59. package/lib/stores/LegendDataCubeBaseStore.d.ts +41 -0
  60. package/lib/stores/LegendDataCubeBaseStore.d.ts.map +1 -0
  61. package/lib/stores/LegendDataCubeBaseStore.js +123 -0
  62. package/lib/stores/LegendDataCubeBaseStore.js.map +1 -0
  63. package/lib/stores/LegendDataCubeDataCubeEngine.d.ts +65 -0
  64. package/lib/stores/LegendDataCubeDataCubeEngine.d.ts.map +1 -0
  65. package/lib/stores/LegendDataCubeDataCubeEngine.js +249 -0
  66. package/lib/stores/LegendDataCubeDataCubeEngine.js.map +1 -0
  67. package/lib/stores/model/LegendQueryDataCubeSource.d.ts +32 -0
  68. package/lib/stores/model/LegendQueryDataCubeSource.d.ts.map +1 -0
  69. package/lib/stores/model/LegendQueryDataCubeSource.js +35 -0
  70. package/lib/stores/model/LegendQueryDataCubeSource.js.map +1 -0
  71. package/lib/stores/query-builder/LegendDataCubeNewQueryState.d.ts +34 -0
  72. package/lib/stores/query-builder/LegendDataCubeNewQueryState.d.ts.map +1 -0
  73. package/lib/stores/query-builder/LegendDataCubeNewQueryState.js +92 -0
  74. package/lib/stores/query-builder/LegendDataCubeNewQueryState.js.map +1 -0
  75. package/lib/stores/query-builder/LegendDataCubeQueryBuilderStore.d.ts +52 -0
  76. package/lib/stores/query-builder/LegendDataCubeQueryBuilderStore.d.ts.map +1 -0
  77. package/lib/stores/query-builder/LegendDataCubeQueryBuilderStore.js +211 -0
  78. package/lib/stores/query-builder/LegendDataCubeQueryBuilderStore.js.map +1 -0
  79. package/lib/stores/query-builder/LegendDataCubeQueryLoaderState.d.ts +54 -0
  80. package/lib/stores/query-builder/LegendDataCubeQueryLoaderState.d.ts.map +1 -0
  81. package/lib/stores/query-builder/LegendDataCubeQueryLoaderState.js +197 -0
  82. package/lib/stores/query-builder/LegendDataCubeQueryLoaderState.js.map +1 -0
  83. package/lib/stores/{model/DataCubeQueryContent.d.ts → query-builder/source-builder/AdhocQueryDataCubeSourceBuilderState.d.ts} +7 -7
  84. package/lib/stores/query-builder/source-builder/AdhocQueryDataCubeSourceBuilderState.d.ts.map +1 -0
  85. package/lib/stores/{model/LegendSavedQuerySource.js → query-builder/source-builder/AdhocQueryDataCubeSourceBuilderState.js} +12 -7
  86. package/lib/stores/query-builder/source-builder/AdhocQueryDataCubeSourceBuilderState.js.map +1 -0
  87. package/lib/stores/query-builder/source-builder/LegendDataCubeSourceBuilderState.d.ts +33 -0
  88. package/lib/stores/query-builder/source-builder/LegendDataCubeSourceBuilderState.d.ts.map +1 -0
  89. package/lib/stores/query-builder/source-builder/LegendDataCubeSourceBuilderState.js +31 -0
  90. package/lib/stores/query-builder/source-builder/LegendDataCubeSourceBuilderState.js.map +1 -0
  91. package/lib/stores/query-builder/source-builder/LegendQueryDataCubeSourceBuilderState.d.ts +31 -0
  92. package/lib/stores/query-builder/source-builder/LegendQueryDataCubeSourceBuilderState.d.ts.map +1 -0
  93. package/lib/stores/query-builder/source-builder/LegendQueryDataCubeSourceBuilderState.js +84 -0
  94. package/lib/stores/query-builder/source-builder/LegendQueryDataCubeSourceBuilderState.js.map +1 -0
  95. package/package.json +11 -11
  96. package/src/__lib__/LegendDataCubeNavigation.ts +7 -7
  97. package/src/{stores/model/DataCubeQueryContent.ts → __lib__/LegendDataCubeSetting.ts} +6 -6
  98. package/{lib/stores/model/DataCubeGenericSource.js → src/__lib__/LegendDataCubeUserData.ts} +5 -2
  99. package/src/application/LegendDataCube.tsx +1 -0
  100. package/src/application/LegendDataCubeApplicationConfig.ts +6 -4
  101. package/src/application/LegendDataCubePluginManager.ts +1 -0
  102. package/src/components/LegendDataCubeFrameworkProvider.tsx +7 -7
  103. package/src/components/LegendDataCubeWebApplication.tsx +48 -12
  104. package/src/components/query-builder/LegendDataCubeNewQueryBuilder.tsx +115 -0
  105. package/src/components/query-builder/LegendDataCubeQueryBuilder.tsx +213 -0
  106. package/src/components/query-builder/LegendDataCubeQueryBuilderStoreProvider.tsx +56 -0
  107. package/src/components/query-builder/LegendDataCubeQueryLoader.tsx +310 -0
  108. package/src/components/query-builder/LegendDataCubeQuerySaver.tsx +106 -0
  109. package/src/{stores/source/CubeInputSource.ts → components/query-builder/source-builder/AdhocQueryDataCubeSourceBuilder.tsx} +14 -19
  110. package/src/components/query-builder/source-builder/LegendQueryDataCubeSourceBuilder.tsx +313 -0
  111. package/src/stores/LegendDataCubeBaseStore.ts +198 -0
  112. package/src/stores/LegendDataCubeDataCubeEngine.ts +494 -0
  113. package/src/stores/model/LegendQueryDataCubeSource.ts +46 -0
  114. package/src/stores/query-builder/LegendDataCubeNewQueryState.tsx +139 -0
  115. package/src/stores/query-builder/LegendDataCubeQueryBuilderStore.tsx +296 -0
  116. package/src/stores/query-builder/LegendDataCubeQueryLoaderState.tsx +258 -0
  117. package/src/stores/{source/LegendCubeViewer.ts → query-builder/source-builder/AdhocQueryDataCubeSourceBuilderState.ts} +15 -8
  118. package/src/stores/query-builder/source-builder/LegendDataCubeSourceBuilderState.ts +40 -0
  119. package/src/stores/query-builder/source-builder/LegendQueryDataCubeSourceBuilderState.ts +125 -0
  120. package/tsconfig.json +18 -15
  121. package/lib/components/DataCubeEditor.d.ts.map +0 -1
  122. package/lib/components/DataCubeEditor.js +0 -59
  123. package/lib/components/DataCubeEditor.js.map +0 -1
  124. package/lib/components/source/DataCubeSourceEditor.d.ts.map +0 -1
  125. package/lib/components/source/DataCubeSourceEditor.js +0 -43
  126. package/lib/components/source/DataCubeSourceEditor.js.map +0 -1
  127. package/lib/components/source/ExistingDataCubeQuery.d.ts.map +0 -1
  128. package/lib/components/source/ExistingDataCubeQuery.js +0 -36
  129. package/lib/components/source/ExistingDataCubeQuery.js.map +0 -1
  130. package/lib/components/source/SavedQuerySourceEditor.d.ts.map +0 -1
  131. package/lib/components/source/SavedQuerySourceEditor.js +0 -25
  132. package/lib/components/source/SavedQuerySourceEditor.js.map +0 -1
  133. package/lib/stores/LegendDataCubeEditorStore.d.ts +0 -50
  134. package/lib/stores/LegendDataCubeEditorStore.d.ts.map +0 -1
  135. package/lib/stores/LegendDataCubeEditorStore.js +0 -153
  136. package/lib/stores/LegendDataCubeEditorStore.js.map +0 -1
  137. package/lib/stores/engine/LegendExecutionDataCubeEngine.d.ts +0 -52
  138. package/lib/stores/engine/LegendExecutionDataCubeEngine.d.ts.map +0 -1
  139. package/lib/stores/engine/LegendExecutionDataCubeEngine.js +0 -149
  140. package/lib/stores/engine/LegendExecutionDataCubeEngine.js.map +0 -1
  141. package/lib/stores/model/DataCubeGenericSource.d.ts.map +0 -1
  142. package/lib/stores/model/DataCubeGenericSource.js.map +0 -1
  143. package/lib/stores/model/DataCubeGenericSourceHelper.d.ts +0 -24
  144. package/lib/stores/model/DataCubeGenericSourceHelper.d.ts.map +0 -1
  145. package/lib/stores/model/DataCubeGenericSourceHelper.js +0 -58
  146. package/lib/stores/model/DataCubeGenericSourceHelper.js.map +0 -1
  147. package/lib/stores/model/DataCubeQueryContent.d.ts.map +0 -1
  148. package/lib/stores/model/DataCubeQueryContent.js.map +0 -1
  149. package/lib/stores/model/LegendSavedQuerySource.d.ts +0 -21
  150. package/lib/stores/model/LegendSavedQuerySource.d.ts.map +0 -1
  151. package/lib/stores/model/LegendSavedQuerySource.js.map +0 -1
  152. package/lib/stores/source/CubeInputSource.d.ts +0 -32
  153. package/lib/stores/source/CubeInputSource.d.ts.map +0 -1
  154. package/lib/stores/source/CubeInputSource.js.map +0 -1
  155. package/lib/stores/source/CubeInputSourceLoader.d.ts +0 -37
  156. package/lib/stores/source/CubeInputSourceLoader.d.ts.map +0 -1
  157. package/lib/stores/source/CubeInputSourceLoader.js +0 -39
  158. package/lib/stores/source/CubeInputSourceLoader.js.map +0 -1
  159. package/lib/stores/source/LegendCubeViewer.d.ts +0 -23
  160. package/lib/stores/source/LegendCubeViewer.d.ts.map +0 -1
  161. package/lib/stores/source/LegendCubeViewer.js +0 -24
  162. package/lib/stores/source/LegendCubeViewer.js.map +0 -1
  163. package/lib/stores/source/LegendDataCubeSourceBuilder.d.ts +0 -34
  164. package/lib/stores/source/LegendDataCubeSourceBuilder.d.ts.map +0 -1
  165. package/lib/stores/source/LegendDataCubeSourceBuilder.js +0 -70
  166. package/lib/stores/source/LegendDataCubeSourceBuilder.js.map +0 -1
  167. package/lib/stores/source/SavedQueryInputSourceState.d.ts +0 -35
  168. package/lib/stores/source/SavedQueryInputSourceState.d.ts.map +0 -1
  169. package/lib/stores/source/SavedQueryInputSourceState.js +0 -81
  170. package/lib/stores/source/SavedQueryInputSourceState.js.map +0 -1
  171. package/src/components/DataCubeEditor.tsx +0 -190
  172. package/src/components/source/DataCubeSourceEditor.tsx +0 -133
  173. package/src/components/source/ExistingDataCubeQuery.tsx +0 -101
  174. package/src/components/source/SavedQuerySourceEditor.tsx +0 -62
  175. package/src/stores/LegendDataCubeEditorStore.ts +0 -237
  176. package/src/stores/engine/LegendExecutionDataCubeEngine.ts +0 -267
  177. package/src/stores/model/DataCubeGenericSourceHelper.ts +0 -97
  178. package/src/stores/model/LegendSavedQuerySource.ts +0 -26
  179. package/src/stores/source/CubeInputSourceLoader.ts +0 -56
  180. package/src/stores/source/LegendDataCubeSourceBuilder.ts +0 -98
  181. package/src/stores/source/SavedQueryInputSourceState.ts +0 -142
@@ -1,52 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { V1_AppliedFunction, V1_Lambda, RawLambda, TDSExecutionResult, type GraphManagerState, type PureModel, type V1_ValueSpecification, type ParameterValue } from '@finos/legend-graph';
17
- import { DataCubeEngine, DataCubeSource, type RelationType, DataCubeQuery, type CompletionItem } from '@finos/legend-data-cube';
18
- import { LogService, type PlainObject } from '@finos/legend-shared';
19
- declare class QueryBuilderDataCubeSource extends DataCubeSource {
20
- mapping?: string | undefined;
21
- runtime: string;
22
- }
23
- export declare class LegendExecutionDataCubeEngine extends DataCubeEngine {
24
- readonly logService: LogService;
25
- readonly graphState: GraphManagerState;
26
- readonly selectInitialQuery: RawLambda;
27
- readonly mappingPath: string | undefined;
28
- readonly parameterValues: ParameterValue[] | undefined;
29
- readonly runtimePath: string;
30
- _parameters: object | undefined;
31
- constructor(selectQuery: RawLambda, parameterValues: ParameterValue[] | undefined, mappingPath: string | undefined, runtimePath: string, graphManagerState: GraphManagerState);
32
- get sourceLabel(): string;
33
- get graph(): PureModel;
34
- private getSourceFunctionExpression;
35
- getBaseQuery(): Promise<DataCubeQuery>;
36
- processQuerySource(value: PlainObject): Promise<QueryBuilderDataCubeSource>;
37
- private buildRawLambdaFromValueSpec;
38
- getQueryTypeahead(code: string, baseQuery: V1_Lambda, source: DataCubeSource): Promise<CompletionItem[]>;
39
- parseValueSpecification(code: string, returnSourceInformation?: boolean): Promise<V1_ValueSpecification>;
40
- getValueSpecificationCode(value: V1_ValueSpecification, pretty?: boolean | undefined): Promise<string>;
41
- private getRelationalType;
42
- getQueryRelationType(query: V1_Lambda, source: DataCubeSource): Promise<RelationType>;
43
- getQueryCodeRelationReturnType(code: string, baseQuery: V1_ValueSpecification, source: DataCubeSource): Promise<RelationType>;
44
- executeQuery(query: V1_Lambda, source: DataCubeSource): Promise<{
45
- result: TDSExecutionResult;
46
- executedQuery: string;
47
- executedSQL: string;
48
- }>;
49
- buildExecutionContext(source: DataCubeSource): V1_AppliedFunction | undefined;
50
- }
51
- export {};
52
- //# sourceMappingURL=LegendExecutionDataCubeEngine.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LegendExecutionDataCubeEngine.d.ts","sourceRoot":"","sources":["../../../src/stores/engine/LegendExecutionDataCubeEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,kBAAkB,EAClB,SAAS,EACT,SAAS,EAET,kBAAkB,EAKlB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,cAAc,EACd,cAAc,EACd,KAAK,YAAY,EACjB,aAAa,EACb,KAAK,cAAc,EAGpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,UAAU,EACV,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAE9B,cAAM,0BAA2B,SAAQ,cAAc;IACrD,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,EAAG,MAAM,CAAC;CAClB;AAED,qBAAa,6BAA8B,SAAQ,cAAc;IAC/D,QAAQ,CAAC,UAAU,aAAoB;IACvC,QAAQ,CAAC,UAAU,EAAE,iBAAiB,CAAC;IACvC,QAAQ,CAAC,kBAAkB,EAAE,SAAS,CAAC;IACvC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,eAAe,EAAE,cAAc,EAAE,GAAG,SAAS,CAAC;IACvD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;gBAG9B,WAAW,EAAE,SAAS,EACtB,eAAe,EAAE,cAAc,EAAE,GAAG,SAAS,EAC7C,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,WAAW,EAAE,MAAM,EACnB,iBAAiB,EAAE,iBAAiB;IAUtC,IAAI,WAAW,IAAI,MAAM,CAExB;IAED,IAAI,KAAK,IAAI,SAAS,CAErB;IAED,OAAO,CAAC,2BAA2B;IAmB7B,YAAY;IAoBZ,kBAAkB,CAAC,KAAK,EAAE,WAAW;IAY3C,OAAO,CAAC,2BAA2B;IAU7B,iBAAiB,CACrB,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,cAAc;IAiBlB,uBAAuB,CAC3B,IAAI,EAAE,MAAM,EACZ,uBAAuB,CAAC,EAAE,OAAO;IAW7B,yBAAyB,CAC7B,KAAK,EAAE,qBAAqB,EAC5B,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS;YAQhB,iBAAiB;IASzB,oBAAoB,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc;IAK7D,8BAA8B,CAClC,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,qBAAqB,EAChC,MAAM,EAAE,cAAc;IAYlB,YAAY,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc;;;;;IAgC3D,qBAAqB,CACnB,MAAM,EAAE,cAAc,GACrB,kBAAkB,GAAG,SAAS;CAYlC"}
@@ -1,149 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- 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, DataCubeEngine, DataCubeSource, DataCubeQuery, _function, DataCubeFunction, } from '@finos/legend-data-cube';
18
- import { guaranteeType, isNonNullable, LogService, } from '@finos/legend-shared';
19
- class QueryBuilderDataCubeSource extends DataCubeSource {
20
- mapping;
21
- runtime;
22
- }
23
- export class LegendExecutionDataCubeEngine extends DataCubeEngine {
24
- logService = new LogService();
25
- graphState;
26
- selectInitialQuery;
27
- mappingPath;
28
- parameterValues;
29
- runtimePath;
30
- _parameters;
31
- constructor(selectQuery, parameterValues, mappingPath, runtimePath, graphManagerState) {
32
- super();
33
- this.graphState = graphManagerState;
34
- this.selectInitialQuery = selectQuery;
35
- this.mappingPath = mappingPath;
36
- this.runtimePath = runtimePath;
37
- this.parameterValues = parameterValues;
38
- }
39
- get sourceLabel() {
40
- return `Query Builder Report`;
41
- }
42
- get graph() {
43
- return this.graphState.graph;
44
- }
45
- getSourceFunctionExpression() {
46
- let srcFuncExp = V1_deserializeValueSpecification(this.graphState.graphManager.serializeRawValueSpecification(this.selectInitialQuery), []);
47
- // We could do a further check here to ensure the experssion is an applied funciton
48
- // this is because data cube expects an expression to be able to built further upon the queery
49
- if (srcFuncExp instanceof V1_Lambda &&
50
- srcFuncExp.body.length === 1 &&
51
- srcFuncExp.body[0]) {
52
- srcFuncExp = srcFuncExp.body[0];
53
- }
54
- return srcFuncExp;
55
- }
56
- async getBaseQuery() {
57
- const srcFuncExp = this.getSourceFunctionExpression();
58
- this._parameters = this.selectInitialQuery.parameters;
59
- const fromFuncExp = new V1_AppliedFunction();
60
- fromFuncExp.function = _functionName(SUPPORTED_FUNCTIONS.FROM);
61
- fromFuncExp.parameters = [srcFuncExp];
62
- if (this.mappingPath) {
63
- fromFuncExp.parameters.push(_elementPtr(this.mappingPath));
64
- }
65
- if (this.runtimePath) {
66
- fromFuncExp.parameters.push(_elementPtr(this.runtimePath));
67
- }
68
- const columns = (await this.getRelationalType(this.selectInitialQuery))
69
- .columns;
70
- const query = new DataCubeQuery();
71
- query.query = `~[${columns.map((e) => `'${e.name}'`)}]->select()`;
72
- return query;
73
- }
74
- async processQuerySource(value) {
75
- const srcFuncExp = this.getSourceFunctionExpression();
76
- const columns = (await this.getRelationalType(this.selectInitialQuery))
77
- .columns;
78
- const source = new QueryBuilderDataCubeSource();
79
- source.sourceColumns = columns;
80
- source.mapping = this.mappingPath;
81
- source.runtime = this.runtimePath;
82
- source.query = srcFuncExp;
83
- return source;
84
- }
85
- buildRawLambdaFromValueSpec(query) {
86
- const json = guaranteeType(V1_deserializeRawValueSpecification(V1_serializeValueSpecification(query, [])), V1_RawLambda);
87
- return new RawLambda(json.parameters, json.body);
88
- }
89
- async getQueryTypeahead(code, baseQuery, source) {
90
- const lambda = this.buildRawLambdaFromValueSpec(baseQuery);
91
- const queryString = await this.graphState.graphManager.lambdaToPureCode(lambda);
92
- let codeBlock = queryString + code;
93
- if (codeBlock[0] === '|') {
94
- codeBlock = codeBlock.substring(1);
95
- }
96
- const result = await this.graphState.graphManager.getCodeComplete(codeBlock, this.graph, undefined);
97
- return result.completions;
98
- }
99
- async parseValueSpecification(code, returnSourceInformation) {
100
- return V1_deserializeValueSpecification(await this.graphState.graphManager.pureCodeToValueSpecification(code, returnSourceInformation), []);
101
- }
102
- async getValueSpecificationCode(value, pretty) {
103
- return this.graphState.graphManager.valueSpecificationToPureCode(V1_serializeValueSpecification(value, []), pretty);
104
- }
105
- async getRelationalType(query) {
106
- const relationType = await this.graphState.graphManager.getLambdaRelationType(query, this.graph);
107
- return relationType;
108
- }
109
- async getQueryRelationType(query, source) {
110
- const lambda = this.buildRawLambdaFromValueSpec(query);
111
- return this.getRelationalType(lambda);
112
- }
113
- async getQueryCodeRelationReturnType(code, baseQuery, source) {
114
- const queryString = await this.graphState.graphManager.valueSpecificationToPureCode(V1_serializeValueSpecification(baseQuery, []));
115
- const fullQuery = queryString + code;
116
- return this.getRelationalType(await this.graphState.graphManager.pureCodeToLambda(fullQuery));
117
- }
118
- async executeQuery(query, source) {
119
- const lambda = this.buildRawLambdaFromValueSpec(query);
120
- lambda.parameters = this._parameters;
121
- const [executionWithMetadata, queryString] = await Promise.all([
122
- this.graphState.graphManager.runQuery(lambda, undefined, undefined, this.graph, {
123
- parameterValues: this.parameterValues ?? [],
124
- }),
125
- this.graphState.graphManager.lambdaToPureCode(lambda),
126
- ]);
127
- const expectedTDS = guaranteeType(executionWithMetadata.executionResult, TDSExecutionResult, 'Query returned expected to be of tabular data set');
128
- const sql = expectedTDS.activities?.[0];
129
- let sqlString = '### NO SQL FOUND';
130
- if (sql instanceof RelationalExecutionActivities) {
131
- sqlString = sql.sql;
132
- }
133
- return {
134
- result: expectedTDS,
135
- executedQuery: queryString,
136
- executedSQL: sqlString,
137
- };
138
- }
139
- buildExecutionContext(source) {
140
- if (source instanceof QueryBuilderDataCubeSource) {
141
- return _function(DataCubeFunction.FROM, [
142
- source.mapping ? _elementPtr(source.mapping) : undefined,
143
- _elementPtr(source.runtime),
144
- ].filter(isNonNullable));
145
- }
146
- return undefined;
147
- }
148
- }
149
- //# sourceMappingURL=LegendExecutionDataCubeEngine.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LegendExecutionDataCubeEngine.js","sourceRoot":"","sources":["../../../src/stores/engine/LegendExecutionDataCubeEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,6BAA6B,EAC7B,kBAAkB,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@@ -1 +0,0 @@
1
- {"version":3,"file":"DataCubeGenericSource.d.ts","sourceRoot":"","sources":["../../../src/stores/model/DataCubeGenericSource.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,8BAAsB,qBAAqB;CAAG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataCubeGenericSource.js","sourceRoot":"","sources":["../../../src/stores/model/DataCubeGenericSource.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,OAAgB,qBAAqB;CAAG"}
@@ -1,24 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { type PlainObject } from '@finos/legend-shared';
17
- import type { DataCubeGenericSource } from './DataCubeGenericSource.js';
18
- import { LegendSavedQuerySource } from './LegendSavedQuerySource.js';
19
- import { DataCubeQueryConent } from './DataCubeQueryContent.js';
20
- export declare const legendSavedQuerySourceModelSchema: import("serializr").ModelSchema<LegendSavedQuerySource>;
21
- export declare const createQueryBuilderContent: (source: DataCubeGenericSource) => DataCubeQueryConent;
22
- export declare const serializeDataCubeQueryConent: (content: DataCubeQueryConent) => PlainObject<DataCubeQueryConent>;
23
- export declare const deserializeDataCubeQueryConent: (content: PlainObject<DataCubeQueryConent>) => DataCubeQueryConent;
24
- //# sourceMappingURL=DataCubeGenericSourceHelper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataCubeGenericSourceHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/model/DataCubeGenericSourceHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AASrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAMhE,eAAO,MAAM,iCAAiC,yDAM7C,CAAC;AAkCF,eAAO,MAAM,yBAAyB,WAC5B,qBAAqB,KAC5B,mBAIF,CAAC;AAEF,eAAO,MAAM,4BAA4B,YAC9B,mBAAmB,KAC3B,WAAW,CAAC,mBAAmB,CAEjC,CAAC;AAEF,eAAO,MAAM,8BAA8B,YAChC,WAAW,CAAC,mBAAmB,CAAC,KACxC,mBAEF,CAAC"}
@@ -1,58 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { UnsupportedOperationError, optionalCustom, usingConstantValueSchema, } from '@finos/legend-shared';
17
- import { LegendSavedQuerySource } from './LegendSavedQuerySource.js';
18
- import { createModelSchema, primitive, deserialize, serialize, optional, raw, } from 'serializr';
19
- import { DataCubeQueryConent } from './DataCubeQueryContent.js';
20
- var SavedDataCubeQueryType;
21
- (function (SavedDataCubeQueryType) {
22
- SavedDataCubeQueryType["LEGEND_QUERY"] = "LegendQuery";
23
- })(SavedDataCubeQueryType || (SavedDataCubeQueryType = {}));
24
- export const legendSavedQuerySourceModelSchema = createModelSchema(LegendSavedQuerySource, {
25
- _type: usingConstantValueSchema(SavedDataCubeQueryType.LEGEND_QUERY),
26
- id: primitive(),
27
- });
28
- const deserializeDataCubeGenericSource = (content) => {
29
- switch (content._type) {
30
- case SavedDataCubeQueryType.LEGEND_QUERY:
31
- return deserialize(legendSavedQuerySourceModelSchema, content);
32
- default:
33
- }
34
- throw new UnsupportedOperationError(`Can't de serialize saved data cube`, content._type);
35
- };
36
- const serializeDataCubeGenericSource = (genericSource) => {
37
- if (genericSource instanceof LegendSavedQuerySource) {
38
- return serialize(legendSavedQuerySourceModelSchema, genericSource);
39
- }
40
- throw new UnsupportedOperationError(`Can't serialize saved data cube`);
41
- };
42
- const dataCubeQueryConentModelSchema = createModelSchema(DataCubeQueryConent, {
43
- query: optional(primitive()),
44
- configuration: optional(raw()),
45
- source: optionalCustom((val) => serializeDataCubeGenericSource(val), (val) => deserializeDataCubeGenericSource(val)),
46
- });
47
- export const createQueryBuilderContent = (source) => {
48
- const content = new DataCubeQueryConent();
49
- content.source = source;
50
- return content;
51
- };
52
- export const serializeDataCubeQueryConent = (content) => {
53
- return serialize(dataCubeQueryConentModelSchema, content);
54
- };
55
- export const deserializeDataCubeQueryConent = (content) => {
56
- return deserialize(dataCubeQueryConentModelSchema, content);
57
- };
58
- //# sourceMappingURL=DataCubeGenericSourceHelper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataCubeGenericSourceHelper.js","sourceRoot":"","sources":["../../../src/stores/model/DataCubeGenericSourceHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,yBAAyB,EACzB,cAAc,EACd,wBAAwB,GAEzB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,GAAG,GACJ,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,mBAA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ACR,EAAE;IACvB,MAAM,OAAO,GAAG,IAAI,mBAAmB,EAAE,CAAC;IAC1C,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;IACxB,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAC1C,OAA4B,EACM,EAAE;IACpC,OAAO,SAAS,CAAC,8BAA8B,EAAE,OAAO,CAAC,CAAC;AAC5D,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAC5C,OAAyC,EACpB,EAAE;IACvB,OAAO,WAAW,CAAC,8BAA8B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataCubeQueryContent.d.ts","sourceRoot":"","sources":["../../../src/stores/model/DataCubeQueryContent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE,qBAAa,mBAAmB;IAC9B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAC/C,MAAM,EAAG,qBAAqB,CAAC;CAChC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataCubeQueryContent.js","sourceRoot":"","sources":["../../../src/stores/model/DataCubeQueryContent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,MAAM,OAAO,mBAAmB;IAC9B,KAAK,CAAqB;IAC1B,aAAa,CAAkC;IAC/C,MAAM,CAAyB;CAChC"}
@@ -1,21 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { DataCubeGenericSource } from './DataCubeGenericSource.js';
17
- export declare class LegendSavedQuerySource extends DataCubeGenericSource {
18
- id: string;
19
- constructor(id: string);
20
- }
21
- //# sourceMappingURL=LegendSavedQuerySource.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LegendSavedQuerySource.d.ts","sourceRoot":"","sources":["../../../src/stores/model/LegendSavedQuerySource.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,qBAAa,sBAAuB,SAAQ,qBAAqB;IAC/D,EAAE,EAAE,MAAM,CAAC;gBAEC,EAAE,EAAE,MAAM;CAIvB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"LegendSavedQuerySource.js","sourceRoot":"","sources":["../../../src/stores/model/LegendSavedQuerySource.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,MAAM,OAAO,sBAAuB,SAAQ,qBAAqB;IAC/D,EAAE,CAAS;IAEX,YAAY,EAAU;QACpB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,CAAC;CACF"}
@@ -1,32 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import type { VersionedProjectData } from '@finos/legend-server-depot';
17
- export declare abstract class LegendDepotSavedSource {
18
- project: VersionedProjectData;
19
- }
20
- export declare class LegendDepotService extends LegendDepotSavedSource {
21
- service: string;
22
- }
23
- export declare class LegendDepotFunction extends LegendDepotSavedSource {
24
- _function: string;
25
- }
26
- export declare class LegendDepotTable extends LegendDepotSavedSource {
27
- database: string;
28
- schema: string;
29
- table: string;
30
- runtime: string;
31
- }
32
- //# sourceMappingURL=CubeInputSource.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CubeInputSource.d.ts","sourceRoot":"","sources":["../../../src/stores/source/CubeInputSource.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,8BAAsB,sBAAsB;IAC1C,OAAO,EAAG,oBAAoB,CAAC;CAChC;AAED,qBAAa,kBAAmB,SAAQ,sBAAsB;IAC5D,OAAO,EAAG,MAAM,CAAC;CAClB;AAED,qBAAa,mBAAoB,SAAQ,sBAAsB;IAC7D,SAAS,EAAG,MAAM,CAAC;CACpB;AAED,qBAAa,gBAAiB,SAAQ,sBAAsB;IAC1D,QAAQ,EAAG,MAAM,CAAC;IAClB,MAAM,EAAG,MAAM,CAAC;IAChB,KAAK,EAAG,MAAM,CAAC;IACf,OAAO,EAAG,MAAM,CAAC;CAClB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CubeInputSource.js","sourceRoot":"","sources":["../../../src/stores/source/CubeInputSource.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,MAAM,OAAgB,sBAAsB;IAC1C,OAAO,CAAwB;CAChC;AAED,MAAM,OAAO,kBAAmB,SAAQ,sBAAsB;IAC5D,OAAO,CAAU;CAClB;AAED,MAAM,OAAO,mBAAoB,SAAQ,sBAAsB;IAC7D,SAAS,CAAU;CACpB;AAED,MAAM,OAAO,gBAAiB,SAAQ,sBAAsB;IAC1D,QAAQ,CAAU;IAClB,MAAM,CAAU;IAChB,KAAK,CAAU;IACf,OAAO,CAAU;CAClB"}
@@ -1,37 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { ActionState } from '@finos/legend-shared';
17
- import type { DataCubeEngine } from '@finos/legend-data-cube';
18
- import type { LegendDataCubeStoreContext } from '../LegendDataCubeEditorStore.js';
19
- import type { DataCubeGenericSource } from '../model/DataCubeGenericSource.js';
20
- export declare enum DataCubeSourceType {
21
- LEGEND_QUERY = "Legend Query",
22
- REPL_QUERY = "Repl Query"
23
- }
24
- export declare abstract class CubeInputSourceState {
25
- buildCubeEngineState: ActionState;
26
- setupActionState: ActionState;
27
- readonly context: LegendDataCubeStoreContext;
28
- constructor(context: LegendDataCubeStoreContext);
29
- abstract get label(): DataCubeSourceType;
30
- setup(): Promise<void>;
31
- abstract buildCubeEngine(): Promise<DataCubeEngine | undefined>;
32
- abstract process(): DataCubeGenericSource;
33
- abstract get isValid(): boolean;
34
- get openActionable(): boolean;
35
- static builder(context: LegendDataCubeStoreContext): CubeInputSourceState;
36
- }
37
- //# sourceMappingURL=CubeInputSourceLoader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CubeInputSourceLoader.d.ts","sourceRoot":"","sources":["../../../src/stores/source/CubeInputSourceLoader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,WAAW,EAA6B,MAAM,sBAAsB,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAE/E,oBAAY,kBAAkB;IAC5B,YAAY,iBAAiB;IAC7B,UAAU,eAAe;CAC1B;AAED,8BAAsB,oBAAoB;IACxC,oBAAoB,cAAwB;IAE5C,gBAAgB,cAAwB;IAExC,QAAQ,CAAC,OAAO,EAAE,0BAA0B,CAAC;gBAEjC,OAAO,EAAE,0BAA0B;IAG/C,QAAQ,KAAK,KAAK,IAAI,kBAAkB,CAAC;IAEnC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5B,QAAQ,CAAC,eAAe,IAAI,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAE/D,QAAQ,CAAC,OAAO,IAAI,qBAAqB;IAEzC,QAAQ,KAAK,OAAO,IAAI,OAAO,CAAC;IAEhC,IAAI,cAAc,IAAI,OAAO,CAE5B;IAED,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,0BAA0B,GAAG,oBAAoB;CAG1E"}
@@ -1,39 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { ActionState, UnsupportedOperationError } from '@finos/legend-shared';
17
- export var DataCubeSourceType;
18
- (function (DataCubeSourceType) {
19
- DataCubeSourceType["LEGEND_QUERY"] = "Legend Query";
20
- DataCubeSourceType["REPL_QUERY"] = "Repl Query";
21
- })(DataCubeSourceType || (DataCubeSourceType = {}));
22
- export class CubeInputSourceState {
23
- buildCubeEngineState = ActionState.create();
24
- setupActionState = ActionState.create();
25
- context;
26
- constructor(context) {
27
- this.context = context;
28
- }
29
- async setup() {
30
- this.setupActionState.complete();
31
- }
32
- get openActionable() {
33
- return true;
34
- }
35
- static builder(context) {
36
- throw new UnsupportedOperationError('No builder');
37
- }
38
- }
39
- //# sourceMappingURL=CubeInputSourceLoader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CubeInputSourceLoader.js","sourceRoot":"","sources":["../../../src/stores/source/CubeInputSourceLoader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,WAAW,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAK9E,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,mDAA6B,CAAA;IAC7B,+CAAyB,CAAA;AAC3B,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B;AAED,MAAM,OAAgB,oBAAoB;IACxC,oBAAoB,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC;IAE5C,gBAAgB,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC;IAE/B,OAAO,CAA6B;IAE7C,YAAY,OAAmC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAGD,KAAK,CAAC,KAAK;QACT,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC;IACnC,CAAC;IAQD,IAAI,cAAc;QAChB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,CAAC,OAAO,CAAC,OAAmC;QAChD,MAAM,IAAI,yBAAyB,CAAC,YAAY,CAAC,CAAC;IACpD,CAAC;CACF"}
@@ -1,23 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import type { DataCubeEngine } from '@finos/legend-data-cube';
17
- import type { DataCubeGenericSource } from '../model/DataCubeGenericSource.js';
18
- export declare class LegendCubeViewer {
19
- source: DataCubeGenericSource;
20
- engine: DataCubeEngine;
21
- constructor(source: DataCubeGenericSource, engine: DataCubeEngine);
22
- }
23
- //# sourceMappingURL=LegendCubeViewer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LegendCubeViewer.d.ts","sourceRoot":"","sources":["../../../src/stores/source/LegendCubeViewer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAE/E,qBAAa,gBAAgB;IAC3B,MAAM,EAAE,qBAAqB,CAAC;IAC9B,MAAM,EAAE,cAAc,CAAC;gBAEX,MAAM,EAAE,qBAAqB,EAAE,MAAM,EAAE,cAAc;CAIlE"}
@@ -1,24 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- export class LegendCubeViewer {
17
- source;
18
- engine;
19
- constructor(source, engine) {
20
- this.source = source;
21
- this.engine = engine;
22
- }
23
- }
24
- //# sourceMappingURL=LegendCubeViewer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LegendCubeViewer.js","sourceRoot":"","sources":["../../../src/stores/source/LegendCubeViewer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,MAAM,OAAO,gBAAgB;IAC3B,MAAM,CAAwB;IAC9B,MAAM,CAAiB;IAEvB,YAAY,MAA6B,EAAE,MAAsB;QAC/D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF"}
@@ -1,34 +0,0 @@
1
- /**
2
- * Copyright (c) 2020-present, Goldman Sachs
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { DataCubeSourceType, type CubeInputSourceState } from './CubeInputSourceLoader.js';
17
- import type { LegendDataCubeStoreContext } from '../LegendDataCubeEditorStore.js';
18
- import { type GeneratorFn } from '@finos/legend-shared';
19
- import type { DataCubeEngine } from '@finos/legend-data-cube';
20
- import type { DataCubeGenericSource } from '../model/DataCubeGenericSource.js';
21
- export declare class LegendDataCubeSourceBuilder {
22
- readonly context: LegendDataCubeStoreContext;
23
- open: boolean;
24
- sourceState: CubeInputSourceState;
25
- constructor(context: LegendDataCubeStoreContext);
26
- get options(): DataCubeSourceType[];
27
- get currentOption(): DataCubeSourceType;
28
- openModal(): void;
29
- close(): void;
30
- changeSource(source: DataCubeSourceType): void;
31
- buildSource(source: DataCubeSourceType): CubeInputSourceState;
32
- inputSource(callback: (source: DataCubeGenericSource, engine: DataCubeEngine) => void): GeneratorFn<void>;
33
- }
34
- //# sourceMappingURL=LegendDataCubeSourceBuilder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LegendDataCubeSourceBuilder.d.ts","sourceRoot":"","sources":["../../../src/stores/source/LegendDataCubeSourceBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,kBAAkB,EAClB,KAAK,oBAAoB,EAC1B,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAKL,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAE/E,qBAAa,2BAA2B;IACtC,QAAQ,CAAC,OAAO,EAAE,0BAA0B,CAAC;IAC7C,IAAI,UAAS;IACb,WAAW,EAAE,oBAAoB,CAAC;gBAEtB,OAAO,EAAE,0BAA0B;IAU/C,IAAI,OAAO,IAAI,kBAAkB,EAAE,CAElC;IAED,IAAI,aAAa,IAAI,kBAAkB,CAEtC;IAED,SAAS,IAAI,IAAI;IAIjB,KAAK,IAAI,IAAI;IAIb,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI;IAM9C,WAAW,CAAC,MAAM,EAAE,kBAAkB,GAAG,oBAAoB;IAO5D,WAAW,CACV,QAAQ,EAAE,CAAC,MAAM,EAAE,qBAAqB,EAAE,MAAM,EAAE,cAAc,KAAK,IAAI,GACxE,WAAW,CAAC,IAAI,CAAC;CAkBrB"}