@finos/legend-query-builder 3.2.3 → 3.2.5

Sign up to get free protection for your applications and to get access to all the features.
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-query-builder v3.2.3
1
+ /** @license @finos/legend-query-builder v3.2.5
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "3.2.3",
3
+ "version": "3.2.5",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -50,8 +50,8 @@
50
50
  "@finos/legend-shared": "workspace:*",
51
51
  "@finos/legend-storage": "workspace:*",
52
52
  "@testing-library/react": "14.0.0",
53
- "@types/react": "18.2.2",
54
- "@types/react-dom": "18.2.3",
53
+ "@types/react": "18.2.5",
54
+ "@types/react-dom": "18.2.4",
55
55
  "chart.js": "4.3.0",
56
56
  "mathjs": "11.8.0",
57
57
  "mobx": "6.9.0",
@@ -68,7 +68,7 @@
68
68
  "@finos/legend-dev-utils": "workspace:*",
69
69
  "@jest/globals": "29.5.0",
70
70
  "cross-env": "7.0.3",
71
- "eslint": "8.39.0",
71
+ "eslint": "8.40.0",
72
72
  "jest": "29.5.0",
73
73
  "npm-run-all": "4.1.5",
74
74
  "rimraf": "5.0.0",
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderCheckEntitlementsState.d.ts","sourceRoot":"","sources":["../../../src/stores/entitlements/QueryBuilderCheckEntitlementsState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAGpE,qBAAa,kCAAmC,YAAW,QAAQ;IACjE,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAE9C,eAAe,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IAC9C,2BAA2B,UAAS;gBAExB,iBAAiB,EAAE,iBAAiB;IAWhD,8BAA8B,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAwBlD,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF"}
1
+ {"version":3,"file":"QueryBuilderCheckEntitlementsState.d.ts","sourceRoot":"","sources":["../../../src/stores/entitlements/QueryBuilderCheckEntitlementsState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAIpE,qBAAa,kCAAmC,YAAW,QAAQ;IACjE,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAE9C,eAAe,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IAC9C,2BAA2B,UAAS;gBAExB,iBAAiB,EAAE,iBAAiB;IAWhD,8BAA8B,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IA6BlD,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF"}
@@ -18,6 +18,7 @@ import { makeObservable, observable, action, computed } from 'mobx';
18
18
  import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../QueryBuilderStateHashUtils.js';
19
19
  import { DataAccessState } from '../data-access/DataAccessState.js';
20
20
  import { RuntimePointer, InMemoryGraphData } from '@finos/legend-graph';
21
+ import { getExecutionQueryFromRawLambda } from '../shared/LambdaParameterState.js';
21
22
  export class QueryBuilderCheckEntitlementsState {
22
23
  queryBuilderState;
23
24
  dataAccessState;
@@ -39,7 +40,7 @@ export class QueryBuilderCheckEntitlementsState {
39
40
  this.dataAccessState = new DataAccessState(this.queryBuilderState.applicationStore, this.queryBuilderState.graphManagerState, {
40
41
  mapping: this.queryBuilderState.mapping.path,
41
42
  runtime: this.queryBuilderState.runtimeValue.packageableRuntime.value.path,
42
- getQuery: async () => this.queryBuilderState.buildQuery(),
43
+ getQuery: async () => getExecutionQueryFromRawLambda(this.queryBuilderState.buildQuery(), this.queryBuilderState.parametersState.parameterStates, this.queryBuilderState.graphManagerState),
43
44
  graphData: new InMemoryGraphData(this.queryBuilderState.graphManagerState.graph),
44
45
  });
45
46
  }
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderCheckEntitlementsState.js","sourceRoot":"","sources":["../../../src/stores/entitlements/QueryBuilderCheckEntitlementsState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,kCAAkC,EAAE,MAAM,kCAAkC,CAAC;AAEtF,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExE,MAAM,OAAO,kCAAkC;IACpC,iBAAiB,CAAoB;IAE9C,eAAe,CAA+B;IAC9C,2BAA2B,GAAG,KAAK,CAAC;IAEpC,YAAY,iBAAoC;QAC9C,cAAc,CAAC,IAAI,EAAE;YACnB,2BAA2B,EAAE,UAAU;YACvC,eAAe,EAAE,UAAU;YAC3B,8BAA8B,EAAE,MAAM;YACtC,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;QAEH,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC7C,CAAC;IAED,8BAA8B,CAAC,GAAY;QACzC,IAAI,CAAC,2BAA2B,GAAG,GAAG,CAAC;QAEvC,IAAI,CAAC,eAAe,GAAG,SAAS,CAAC;QACjC,IACE,IAAI,CAAC,iBAAiB,CAAC,OAAO;YAC9B,IAAI,CAAC,iBAAiB,CAAC,YAAY,YAAY,cAAc,EAC7D;YACA,IAAI,CAAC,eAAe,GAAG,IAAI,eAAe,CACxC,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,EACvC,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,EACxC;gBACE,OAAO,EAAE,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,IAAI;gBAC5C,OAAO,EACL,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,kBAAkB,CAAC,KAAK,CAAC,IAAI;gBACnE,QAAQ,EAAE,KAAK,IAAI,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,UAAU,EAAE;gBACzD,SAAS,EAAE,IAAI,iBAAiB,CAC9B,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,KAAK,CAC/C;aACF,CACF,CAAC;SACH;IACH,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,wBAAwB;YAC3D,IAAI,CAAC,2BAA2B;SACjC,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"QueryBuilderCheckEntitlementsState.js","sourceRoot":"","sources":["../../../src/stores/entitlements/QueryBuilderCheckEntitlementsState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,kCAAkC,EAAE,MAAM,kCAAkC,CAAC;AAEtF,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,8BAA8B,EAAE,MAAM,mCAAmC,CAAC;AAEnF,MAAM,OAAO,kCAA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jC,CAAC,CAAC;IACL,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "3.2.3",
3
+ "version": "3.2.5",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -42,16 +42,16 @@
42
42
  "test:watch": "jest --watch"
43
43
  },
44
44
  "dependencies": {
45
- "@finos/legend-application": "15.0.10",
46
- "@finos/legend-art": "7.0.11",
47
- "@finos/legend-graph": "28.1.5",
48
- "@finos/legend-lego": "1.0.2",
49
- "@finos/legend-server-depot": "6.0.5",
50
- "@finos/legend-shared": "10.0.4",
51
- "@finos/legend-storage": "3.0.54",
45
+ "@finos/legend-application": "15.0.11",
46
+ "@finos/legend-art": "7.0.12",
47
+ "@finos/legend-graph": "28.1.7",
48
+ "@finos/legend-lego": "1.0.4",
49
+ "@finos/legend-server-depot": "6.0.6",
50
+ "@finos/legend-shared": "10.0.5",
51
+ "@finos/legend-storage": "3.0.55",
52
52
  "@testing-library/react": "14.0.0",
53
- "@types/react": "18.2.2",
54
- "@types/react-dom": "18.2.3",
53
+ "@types/react": "18.2.5",
54
+ "@types/react-dom": "18.2.4",
55
55
  "chart.js": "4.3.0",
56
56
  "mathjs": "11.8.0",
57
57
  "mobx": "6.9.0",
@@ -65,10 +65,10 @@
65
65
  "sql-formatter": "12.2.0"
66
66
  },
67
67
  "devDependencies": {
68
- "@finos/legend-dev-utils": "2.0.59",
68
+ "@finos/legend-dev-utils": "2.0.60",
69
69
  "@jest/globals": "29.5.0",
70
70
  "cross-env": "7.0.3",
71
- "eslint": "8.39.0",
71
+ "eslint": "8.40.0",
72
72
  "jest": "29.5.0",
73
73
  "npm-run-all": "4.1.5",
74
74
  "rimraf": "5.0.0",
@@ -20,6 +20,7 @@ import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../QueryBuilderStateHashUtil
20
20
  import type { QueryBuilderState } from '../QueryBuilderState.js';
21
21
  import { DataAccessState } from '../data-access/DataAccessState.js';
22
22
  import { RuntimePointer, InMemoryGraphData } from '@finos/legend-graph';
23
+ import { getExecutionQueryFromRawLambda } from '../shared/LambdaParameterState.js';
23
24
 
24
25
  export class QueryBuilderCheckEntitlementsState implements Hashable {
25
26
  readonly queryBuilderState: QueryBuilderState;
@@ -53,7 +54,12 @@ export class QueryBuilderCheckEntitlementsState implements Hashable {
53
54
  mapping: this.queryBuilderState.mapping.path,
54
55
  runtime:
55
56
  this.queryBuilderState.runtimeValue.packageableRuntime.value.path,
56
- getQuery: async () => this.queryBuilderState.buildQuery(),
57
+ getQuery: async () =>
58
+ getExecutionQueryFromRawLambda(
59
+ this.queryBuilderState.buildQuery(),
60
+ this.queryBuilderState.parametersState.parameterStates,
61
+ this.queryBuilderState.graphManagerState,
62
+ ),
57
63
  graphData: new InMemoryGraphData(
58
64
  this.queryBuilderState.graphManagerState.graph,
59
65
  ),