@finos/legend-query-builder 3.2.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/__lib__/QueryBuilderColorTheme.d.ts +23 -0
- package/lib/__lib__/QueryBuilderColorTheme.d.ts.map +1 -0
- package/lib/__lib__/QueryBuilderColorTheme.js +24 -0
- package/lib/__lib__/QueryBuilderColorTheme.js.map +1 -0
- package/lib/components/QueryBuilder.d.ts.map +1 -1
- package/lib/components/QueryBuilder.js +17 -15
- package/lib/components/QueryBuilder.js.map +1 -1
- package/lib/components/QueryBuilder_LegendApplicationPlugin.d.ts.map +1 -1
- package/lib/components/QueryBuilder_LegendApplicationPlugin.js +3 -0
- package/lib/components/QueryBuilder_LegendApplicationPlugin.js.map +1 -1
- package/lib/components/QueryLoader.d.ts.map +1 -1
- package/lib/components/QueryLoader.js +6 -2
- package/lib/components/QueryLoader.js.map +1 -1
- package/lib/components/data-access/DataAccessOverview.d.ts +23 -0
- package/lib/components/data-access/DataAccessOverview.d.ts.map +1 -0
- package/lib/components/data-access/DataAccessOverview.js +146 -0
- package/lib/components/data-access/DataAccessOverview.js.map +1 -0
- package/lib/components/execution-plan/ExecutionPlanViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/ExecutionPlanViewer.js +3 -3
- package/lib/components/execution-plan/ExecutionPlanViewer.js.map +1 -1
- package/lib/components/execution-plan/SQLExecutionNodeViewer.js +1 -1
- package/lib/components/execution-plan/SQLExecutionNodeViewer.js.map +1 -1
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.js +1 -1
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts +0 -18
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +34 -36
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
- package/lib/components/shared/LambdaEditor.d.ts.map +1 -1
- package/lib/components/shared/LambdaEditor.js +7 -19
- package/lib/components/shared/LambdaEditor.js.map +1 -1
- package/lib/index.css +1 -17
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/package.json +4 -2
- package/lib/stores/QueryBuilderState.d.ts +3 -3
- package/lib/stores/QueryBuilderState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderState.js +34 -18
- package/lib/stores/QueryBuilderState.js.map +1 -1
- package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts +9 -0
- package/lib/stores/QueryBuilder_LegendApplicationPlugin_Extension.d.ts.map +1 -1
- package/lib/stores/data-access/DataAccessState.d.ts +56 -0
- package/lib/stores/data-access/DataAccessState.d.ts.map +1 -0
- package/lib/stores/data-access/DataAccessState.js +212 -0
- package/lib/stores/data-access/DataAccessState.js.map +1 -0
- package/lib/stores/entitlements/QueryBuilderCheckEntitlementsState.d.ts +4 -2
- package/lib/stores/entitlements/QueryBuilderCheckEntitlementsState.d.ts.map +1 -1
- package/lib/stores/entitlements/QueryBuilderCheckEntitlementsState.js +20 -6
- package/lib/stores/entitlements/QueryBuilderCheckEntitlementsState.js.map +1 -1
- package/package.json +12 -10
- package/src/__lib__/QueryBuilderColorTheme.ts +23 -0
- package/src/components/QueryBuilder.tsx +63 -47
- package/src/components/QueryBuilder_LegendApplicationPlugin.ts +4 -0
- package/src/components/QueryLoader.tsx +4 -1
- package/src/components/data-access/DataAccessOverview.tsx +308 -0
- package/src/components/execution-plan/ExecutionPlanViewer.tsx +1 -3
- package/src/components/execution-plan/SQLExecutionNodeViewer.tsx +1 -1
- package/src/components/explorer/QueryBuilderPropertySearchPanel.tsx +1 -1
- package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +99 -102
- package/src/components/shared/LambdaEditor.tsx +4 -21
- package/src/index.ts +4 -0
- package/src/stores/QueryBuilderState.ts +65 -19
- package/src/stores/QueryBuilder_LegendApplicationPlugin_Extension.ts +10 -0
- package/src/stores/data-access/DataAccessState.ts +322 -0
- package/src/stores/entitlements/QueryBuilderCheckEntitlementsState.ts +53 -6
- package/tsconfig.json +3 -0
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc;AACd,cAAc,0CAA0C,CAAC;AACzD,cAAc,gCAAgC,CAAC;AAE/C,OAAO,EAAE,+BAA+B,EAAE,MAAM,oDAAoD,CAAC;AAErG,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAEL,oCAAoC,GACrC,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;AAC9F,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,kCAAkC,EAAE,MAAM,8CAA8C,CAAC;AAClG,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACvG,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,yBAAyB,GAC1B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAEL,wBAAwB,GACzB,MAAM,gDAAgD,CAAC;AAExD,OAAO,EAAE,oCAAoC,EAAE,MAAM,yEAAyE,CAAC;AAG/H,cAAc,yBAAyB,CAAC;AACxC,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,wCAAwC,CAAC;AAEvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,oCAAoC,EAAE,MAAM,6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AG/H,cAAc,yBAAyB,CAAC;AACxC,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,wCAAwC,CAAC;AAEvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,oCAAoC,EAAE,MAAM,6FAA6F,CAAC;AACnJ,OAAO,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AAExF,4GAA4G;AAE5G,cAAc,qCAAqC,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,cAAc,yCAAyC,CAAC;AAExD,cAAc,sDAAsD,CAAC;AACrE,cAAc,oDAAoD,CAAC;AAEnE,cAAc,qDAAqD,CAAC;AACpE,cAAc,mDAAmD,CAAC;AAElE,cAAc,oDAAoD,CAAC;AACnE,cAAc,+CAA+C,CAAC;AAE9D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4DAA4D,CAAC;AAE3E,cAAc,yCAAyC,CAAC;AACxD,cAAc,gDAAgD,CAAC"}
|
package/lib/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-query-builder",
|
3
|
-
"version": "3.2.
|
3
|
+
"version": "3.2.1",
|
4
4
|
"description": "Legend query builder core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -55,7 +55,7 @@
|
|
55
55
|
"mathjs": "11.8.0",
|
56
56
|
"mobx": "6.9.0",
|
57
57
|
"mobx-react-lite": "3.4.3",
|
58
|
-
"monaco-editor": "0.
|
58
|
+
"monaco-editor": "0.38.0",
|
59
59
|
"react": "18.2.0",
|
60
60
|
"react-dnd": "16.0.1",
|
61
61
|
"react-dom": "18.2.0",
|
@@ -65,10 +65,12 @@
|
|
65
65
|
"devDependencies": {
|
66
66
|
"@finos/legend-dev-utils": "workspace:*",
|
67
67
|
"@jest/globals": "29.5.0",
|
68
|
+
"chart.js": "4.3.0",
|
68
69
|
"cross-env": "7.0.3",
|
69
70
|
"eslint": "8.39.0",
|
70
71
|
"jest": "29.5.0",
|
71
72
|
"npm-run-all": "4.1.5",
|
73
|
+
"react-chartjs-2": "5.2.0",
|
72
74
|
"rimraf": "5.0.0",
|
73
75
|
"sass": "1.62.1",
|
74
76
|
"typescript": "5.0.4"
|
@@ -21,7 +21,7 @@ import { QueryBuilderTextEditorState } from './QueryBuilderTextEditorState.js';
|
|
21
21
|
import { QueryBuilderExplorerState } from './explorer/QueryBuilderExplorerState.js';
|
22
22
|
import { QueryBuilderResultState } from './QueryBuilderResultState.js';
|
23
23
|
import { QueryBuilderUnsupportedQueryState } from './QueryBuilderUnsupportedQueryState.js';
|
24
|
-
import { type Class, type Mapping, type Runtime, type GraphManagerState, RawLambda, VariableExpression, ObserverContext } from '@finos/legend-graph';
|
24
|
+
import { type Class, type Mapping, type Runtime, type GraphManagerState, RawLambda, VariableExpression, ObserverContext, type Type } from '@finos/legend-graph';
|
25
25
|
import type { CommandRegistrar, GenericLegendApplicationStore } from '@finos/legend-application';
|
26
26
|
import { QueryFunctionsExplorerState } from './explorer/QueryFunctionsExplorerState.js';
|
27
27
|
import { QueryBuilderParametersState } from './QueryBuilderParametersState.js';
|
@@ -37,7 +37,6 @@ export declare abstract class QueryBuilderState implements CommandRegistrar {
|
|
37
37
|
readonly changeDetectionState: QueryBuilderChangeDetectionState;
|
38
38
|
readonly queryCompileState: ActionState;
|
39
39
|
readonly observerContext: ObserverContext;
|
40
|
-
readonly saveQueryProgressState: ActionState;
|
41
40
|
explorerState: QueryBuilderExplorerState;
|
42
41
|
functionsExplorerState: QueryFunctionsExplorerState;
|
43
42
|
parametersState: QueryBuilderParametersState;
|
@@ -97,6 +96,8 @@ export declare abstract class QueryBuilderState implements CommandRegistrar {
|
|
97
96
|
buildQuery(options?: {
|
98
97
|
keepSourceInformation: boolean;
|
99
98
|
}): RawLambda;
|
99
|
+
buildFromQuery(): RawLambda;
|
100
|
+
getQueryReturnType(): Type;
|
100
101
|
initializeWithQuery(query: RawLambda): void;
|
101
102
|
/**
|
102
103
|
* Process the provided query, and rebuild the query builder state.
|
@@ -105,7 +106,6 @@ export declare abstract class QueryBuilderState implements CommandRegistrar {
|
|
105
106
|
preserveParameterValues?: boolean | undefined;
|
106
107
|
preserveResult?: boolean | undefined;
|
107
108
|
}): void;
|
108
|
-
saveQuery(onSaveQuery: (lambda: RawLambda) => Promise<void>): Promise<void>;
|
109
109
|
compileQuery(): GeneratorFn<void>;
|
110
110
|
get allValidationIssues(): string[];
|
111
111
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAUH,OAAO,EACL,KAAK,WAAW,EAMhB,WAAW,
|
1
|
+
{"version":3,"file":"QueryBuilderState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAUH,OAAO,EACL,KAAK,WAAW,EAMhB,WAAW,EAGZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sDAAsD,CAAC;AACvG,OAAO,EAEL,2BAA2B,EAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAKvE,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAC3F,OAAO,EACL,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,iBAAiB,EAKtB,SAAS,EACT,kBAAkB,EAElB,eAAe,EAMf,KAAK,IAAI,EAQV,MAAM,qBAAqB,CAAC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IAAI;IAaxB,cAAc,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO;IASrD,kBAAkB,IAAI,IAAI;IAM1B,gBAAgB,CAAC,OAAO,CAAC,EAAE;QAAE,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAAE,GAAG,IAAI;IAW1E,iBAAiB,IAAI,IAAI;IAiCzB,WAAW,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI;IAS7B,aAAa,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE;QAAE,gBAAgB,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI;IAS3E,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAKjC,UAAU,CAAC,OAAO,CAAC,EAAE;QAAE,qBAAqB,EAAE,OAAO,CAAA;KAAE,GAAG,SAAS;IAoBnE,cAAc,IAAI,SAAS;IA0C3B,kBAAkB,IAAI,IAAI;IAW1B,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAM3C;;OAEG;IACH,gBAAgB,CACd,KAAK,EAAE,SAAS,EAChB,OAAO,CAAC,EAAE;QACR,uBAAuB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC9C,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KACtC,GACA,IAAI;IAwDN,YAAY,IAAI,WAAW,CAAC,IAAI,CAAC;IAwFlC,IAAI,mBAAmB,IAAI,MAAM,EAAE,CAElC;IAED;;;;OAIG;IACH,kCAAkC,IAAI,iBAAiB;IAYvD,IAAI,QAAQ,IAAI,MAAM,CAWrB;CACF;AAED;;;;;;;;;GASG;AACH,qBAAa,gCAAiC,SAAQ,iBAAiB;CAAG"}
|
@@ -14,7 +14,7 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import { action, flow, observable, makeObservable, computed, flowResult, } from 'mobx';
|
17
|
-
import { LogEvent, assertErrorThrown, guaranteeNonNullable, guaranteeType, filterByType, ActionState, hashArray, } from '@finos/legend-shared';
|
17
|
+
import { LogEvent, assertErrorThrown, guaranteeNonNullable, guaranteeType, filterByType, ActionState, hashArray, assertTrue, } from '@finos/legend-shared';
|
18
18
|
import { QueryBuilderFilterState } from './filter/QueryBuilderFilterState.js';
|
19
19
|
import { QueryBuilderFetchStructureState } from './fetch-structure/QueryBuilderFetchStructureState.js';
|
20
20
|
import { QueryBuilderTextEditorMode, QueryBuilderTextEditorState, } from './QueryBuilderTextEditorState.js';
|
@@ -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, } from '@finos/legend-graph';
|
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, } 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';
|
@@ -34,13 +34,14 @@ import { QUERY_BUILDER_COMMAND_KEY } from './QueryBuilderCommand.js';
|
|
34
34
|
import { QueryBuilderWatermarkState } from './watermark/QueryBuilderWatermarkState.js';
|
35
35
|
import { QueryBuilderConstantsState } from './QueryBuilderConstantsState.js';
|
36
36
|
import { QueryBuilderCheckEntitlementsState } from './entitlements/QueryBuilderCheckEntitlementsState.js';
|
37
|
+
import { QueryBuilderTDSState } from './fetch-structure/tds/QueryBuilderTDSState.js';
|
38
|
+
import { QUERY_BUILDER_PURE_PATH } from '../graph/QueryBuilderMetaModelConst.js';
|
37
39
|
export class QueryBuilderState {
|
38
40
|
applicationStore;
|
39
41
|
graphManagerState;
|
40
42
|
changeDetectionState;
|
41
43
|
queryCompileState = ActionState.create();
|
42
44
|
observerContext;
|
43
|
-
saveQueryProgressState = ActionState.create();
|
44
45
|
explorerState;
|
45
46
|
functionsExplorerState;
|
46
47
|
parametersState;
|
@@ -103,7 +104,6 @@ export class QueryBuilderState {
|
|
103
104
|
changeClass: action,
|
104
105
|
changeMapping: action,
|
105
106
|
rebuildWithQuery: action,
|
106
|
-
saveQuery: action,
|
107
107
|
compileQuery: flow,
|
108
108
|
hashCode: computed,
|
109
109
|
});
|
@@ -265,6 +265,36 @@ export class QueryBuilderState {
|
|
265
265
|
keepSourceInformation: Boolean(options?.keepSourceInformation),
|
266
266
|
}), this.graphManagerState);
|
267
267
|
}
|
268
|
+
buildFromQuery() {
|
269
|
+
assertTrue(this.isQuerySupported, 'Query must be supported to build from function');
|
270
|
+
const mapping = guaranteeNonNullable(this.mapping, 'Mapping required to build from() function');
|
271
|
+
const runtime = guaranteeNonNullable(this.runtimeValue, 'Runtime required to build from query');
|
272
|
+
const runtimePointer = guaranteeType(runtime, RuntimePointer).packageableRuntime;
|
273
|
+
const lambdaFunc = buildLambdaFunction(this);
|
274
|
+
const currentExpression = guaranteeNonNullable(lambdaFunc.expressionSequence[0]);
|
275
|
+
const _func = new SimpleFunctionExpression(extractElementNameFromPath(SUPPORTED_FUNCTIONS.FROM));
|
276
|
+
const mappingInstance = new InstanceValue(Multiplicity.ONE, undefined);
|
277
|
+
mappingInstance.values = [
|
278
|
+
PackageableElementExplicitReference.create(mapping),
|
279
|
+
];
|
280
|
+
const runtimeInstance = new InstanceValue(Multiplicity.ONE, undefined);
|
281
|
+
runtimeInstance.values = [
|
282
|
+
PackageableElementExplicitReference.create(runtimePointer.value),
|
283
|
+
];
|
284
|
+
_func.parametersValues = [
|
285
|
+
currentExpression,
|
286
|
+
mappingInstance,
|
287
|
+
runtimeInstance,
|
288
|
+
];
|
289
|
+
lambdaFunc.expressionSequence = [_func];
|
290
|
+
return buildRawLambdaFromLambdaFunction(lambdaFunc, this.graphManagerState);
|
291
|
+
}
|
292
|
+
getQueryReturnType() {
|
293
|
+
if (this.fetchStructureState.implementation instanceof QueryBuilderTDSState) {
|
294
|
+
return this.graphManagerState.graph.getClass(QUERY_BUILDER_PURE_PATH.TDS_TABULAR_DATASET);
|
295
|
+
}
|
296
|
+
return PrimitiveType.STRING;
|
297
|
+
}
|
268
298
|
initializeWithQuery(query) {
|
269
299
|
this.rebuildWithQuery(query);
|
270
300
|
this.resetQueryResult();
|
@@ -306,20 +336,6 @@ export class QueryBuilderState {
|
|
306
336
|
processParameters(parameters, this, previousStateParameterValues);
|
307
337
|
}
|
308
338
|
}
|
309
|
-
async saveQuery(onSaveQuery) {
|
310
|
-
this.saveQueryProgressState.inProgress();
|
311
|
-
try {
|
312
|
-
const query = this.buildQuery();
|
313
|
-
await onSaveQuery(query);
|
314
|
-
}
|
315
|
-
catch (error) {
|
316
|
-
assertErrorThrown(error);
|
317
|
-
this.applicationStore.notificationService.notifyError(`Can't save query: ${error.message}`);
|
318
|
-
}
|
319
|
-
finally {
|
320
|
-
this.saveQueryProgressState.complete();
|
321
|
-
}
|
322
|
-
}
|
323
339
|
*compileQuery() {
|
324
340
|
if (!this.textEditorState.mode) {
|
325
341
|
this.queryCompileState.inProgress();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderState.ts"],"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jE,KAAK,CAAC,iBAAiB,CACxB,CAAC;oBACF,IAAI,uBAAuB,EAAE;wBAC3B,IAAI,CAAC,eAAe,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;qBACjD;iBACF;aACF;oBAAS;gBACR,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAAE,CAAC;aACnC;SACF;IACH,CAAC;IAED,IAAI,mBAAmB;QACrB,OAAO,IAAI,CAAC,mBAAmB,CAAC,cAAc,CAAC,mBAAmB,CAAC;IACrE,CAAC;IAED;;;;OAIG;IACH,kCAAkC;QAChC,mEAAmE;QACnE,MAAM,UAAU,GAAG,IAAI,gCAAgC,CACrD,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,iBAAiB,CACvB,CAAC;QACF,UAAU,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAC9B,UAAU,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAClC,UAAU,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QAC5C,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"}
|
@@ -13,18 +13,27 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
+
/// <reference types="react" resolution-mode="require"/>
|
16
17
|
import type { LegendApplicationPlugin } from '@finos/legend-application';
|
17
18
|
import type { QueryBuilderState } from './QueryBuilderState.js';
|
18
19
|
import type { QuerySearchSpecification } from '@finos/legend-graph';
|
20
|
+
import type { DatasetAccessInfo } from './data-access/DataAccessState.js';
|
19
21
|
export type LoadQueryFilterOption = {
|
20
22
|
key: string;
|
21
23
|
label: (queryBuilderState: QueryBuilderState) => string | undefined;
|
22
24
|
filterFunction: (searchSpecification: QuerySearchSpecification, queryBuilderState: QueryBuilderState) => QuerySearchSpecification;
|
23
25
|
};
|
26
|
+
export type DatasetEntitlementAccessReportActionConfiguration = {
|
27
|
+
renderer: (info: DatasetAccessInfo) => React.ReactNode;
|
28
|
+
};
|
24
29
|
export interface QueryBuilder_LegendApplicationPlugin_Extension extends LegendApplicationPlugin {
|
25
30
|
/**
|
26
31
|
* Get the list of filter options for query loader.
|
27
32
|
*/
|
28
33
|
getExtraLoadQueryFilterOptions?(): LoadQueryFilterOption[];
|
34
|
+
/**
|
35
|
+
* Get the list of dataset entitlement access report action configurations.
|
36
|
+
*/
|
37
|
+
getExtraDatasetEntitlementAccessNotGrantedReportActionConfigurations?(): DatasetEntitlementAccessReportActionConfiguration[];
|
29
38
|
}
|
30
39
|
//# sourceMappingURL=QueryBuilder_LegendApplicationPlugin_Extension.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilder_LegendApplicationPlugin_Extension.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilder_LegendApplicationPlugin_Extension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
1
|
+
{"version":3,"file":"QueryBuilder_LegendApplicationPlugin_Extension.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilder_LegendApplicationPlugin_Extension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAEH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,MAAM,MAAM,qBAAqB,GAAG;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,KAAK,MAAM,GAAG,SAAS,CAAC;IACpE,cAAc,EAAE,CACd,mBAAmB,EAAE,wBAAwB,EAC7C,iBAAiB,EAAE,iBAAiB,KACjC,wBAAwB,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,iDAAiD,GAAG;IAC9D,QAAQ,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,KAAK,CAAC,SAAS,CAAC;CACxD,CAAC;AAEF,MAAM,WAAW,8CACf,SAAQ,uBAAuB;IAC/B;;OAEG;IACH,8BAA8B,CAAC,IAAI,qBAAqB,EAAE,CAAC;IAE3D;;OAEG;IACH,oEAAoE,CAAC,IAAI,iDAAiD,EAAE,CAAC;CAC9H"}
|
@@ -0,0 +1,56 @@
|
|
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 { type BasicGraphManagerState, type DatasetEntitlementReport, type DatasetSpecification } from '@finos/legend-graph';
|
18
|
+
import { ActionState, type GeneratorFn } from '@finos/legend-shared';
|
19
|
+
export declare class DatasetAccessInfo {
|
20
|
+
readonly uuid: string;
|
21
|
+
readonly specification: DatasetSpecification;
|
22
|
+
entitlementReport?: DatasetEntitlementReport | undefined;
|
23
|
+
constructor(specification: DatasetSpecification);
|
24
|
+
setEntitlementReport(val: DatasetEntitlementReport | undefined): void;
|
25
|
+
}
|
26
|
+
type EntitlementCheckInfo = {
|
27
|
+
total: number;
|
28
|
+
data: {
|
29
|
+
label: string;
|
30
|
+
count: number;
|
31
|
+
percentage: number;
|
32
|
+
color: string;
|
33
|
+
}[];
|
34
|
+
};
|
35
|
+
export declare class DataAccessState {
|
36
|
+
readonly applicationStore: GenericLegendApplicationStore;
|
37
|
+
readonly graphManagerState: BasicGraphManagerState;
|
38
|
+
readonly surveyDatasets: () => Promise<DatasetSpecification[]>;
|
39
|
+
readonly checkDatasetEntitlements: (datasets: DatasetSpecification[]) => Promise<DatasetEntitlementReport[]>;
|
40
|
+
readonly initialDatasets?: DatasetSpecification[] | undefined;
|
41
|
+
readonly surveyDatasetsState: ActionState;
|
42
|
+
readonly checkEntitlementsState: ActionState;
|
43
|
+
datasets: DatasetAccessInfo[];
|
44
|
+
constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: BasicGraphManagerState, options: {
|
45
|
+
initialDatasets?: DatasetSpecification[] | undefined;
|
46
|
+
surveyDatasets: () => Promise<DatasetSpecification[]>;
|
47
|
+
checkDatasetEntitlements: (datasets: DatasetSpecification[]) => Promise<DatasetEntitlementReport[]>;
|
48
|
+
});
|
49
|
+
get entitlementCheckInfo(): EntitlementCheckInfo;
|
50
|
+
fetchDatasetSpecifications(): GeneratorFn<void>;
|
51
|
+
fetchDatasetEntitlementReports(): GeneratorFn<void>;
|
52
|
+
intialize(): Promise<void>;
|
53
|
+
refresh(): Promise<void>;
|
54
|
+
}
|
55
|
+
export {};
|
56
|
+
//# sourceMappingURL=DataAccessState.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataAccessState.d.ts","sourceRoot":"","sources":["../../../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AEvD,QAAQ,EAAE,iBAAiB,EAAE,CAAM;gBAGjC,gBAAgB,EAAE,6BAA6B,EAC/C,iBAAiB,EAAE,sBAAsB,EACzC,OAAO,EAAE;QACP,eAAe,CAAC,EAAE,oBAAoB,EAAE,GAAG,SAAS,CAAC;QACrD,cAAc,EAAE,MAAM,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAAC;QACtD,wBAAwB,EAAE,CACxB,QAAQ,EAAE,oBAAoB,EAAE,KAC7B,OAAO,CAAC,wBAAwB,EAAE,CAAC,CAAC;KAC1C;IAmBH,IAAI,oBAAoB,IAAI,oBAAoB,CAqI/C;IAEA,0BAA0B,IAAI,WAAW,CAAC,IAAI,CAAC;IAsB/C,8BAA8B,IAAI,WAAW,CAAC,IAAI,CAAC;IAuC9C,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAS1B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAI/B"}
|
@@ -0,0 +1,212 @@
|
|
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 { DatasetEntitlementAccessGrantedReport, DatasetEntitlementAccessApprovedReport, DatasetEntitlementAccessRequestedReport, DatasetEntitlementAccessNotGrantedReport, DatasetEntitlementUnsupportedReport, } from '@finos/legend-graph';
|
17
|
+
import { ActionState, assertErrorThrown, uuid, getNonNullableEntry, } from '@finos/legend-shared';
|
18
|
+
import { action, computed, flow, flowResult, makeObservable, observable, } from 'mobx';
|
19
|
+
import { QUERY_BUILDER_COLOR_THEME_KEY } from '../../__lib__/QueryBuilderColorTheme.js';
|
20
|
+
export class DatasetAccessInfo {
|
21
|
+
uuid = uuid();
|
22
|
+
specification;
|
23
|
+
entitlementReport;
|
24
|
+
constructor(specification) {
|
25
|
+
makeObservable(this, {
|
26
|
+
entitlementReport: observable,
|
27
|
+
setEntitlementReport: action,
|
28
|
+
});
|
29
|
+
this.specification = specification;
|
30
|
+
}
|
31
|
+
setEntitlementReport(val) {
|
32
|
+
this.entitlementReport = val;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
export class DataAccessState {
|
36
|
+
applicationStore;
|
37
|
+
graphManagerState;
|
38
|
+
surveyDatasets;
|
39
|
+
checkDatasetEntitlements;
|
40
|
+
initialDatasets;
|
41
|
+
surveyDatasetsState = ActionState.create();
|
42
|
+
checkEntitlementsState = ActionState.create();
|
43
|
+
datasets = [];
|
44
|
+
constructor(applicationStore, graphManagerState, options) {
|
45
|
+
makeObservable(this, {
|
46
|
+
datasets: observable,
|
47
|
+
entitlementCheckInfo: computed,
|
48
|
+
fetchDatasetSpecifications: flow,
|
49
|
+
fetchDatasetEntitlementReports: flow,
|
50
|
+
});
|
51
|
+
this.applicationStore = applicationStore;
|
52
|
+
this.graphManagerState = graphManagerState;
|
53
|
+
this.initialDatasets = options.initialDatasets;
|
54
|
+
this.datasets = (options.initialDatasets ?? []).map((dataset) => new DatasetAccessInfo(dataset));
|
55
|
+
this.surveyDatasets = options.surveyDatasets;
|
56
|
+
this.checkDatasetEntitlements = options.checkDatasetEntitlements;
|
57
|
+
}
|
58
|
+
get entitlementCheckInfo() {
|
59
|
+
const total = this.datasets.length;
|
60
|
+
if (!total) {
|
61
|
+
return {
|
62
|
+
total,
|
63
|
+
data: [
|
64
|
+
{
|
65
|
+
label: 'Access Granted',
|
66
|
+
count: 1,
|
67
|
+
percentage: 100,
|
68
|
+
color: this.applicationStore.layoutService.getColor(QUERY_BUILDER_COLOR_THEME_KEY.DATA_ACCESS_OVERVIEW__CHART__ACCESS_GRANTED),
|
69
|
+
},
|
70
|
+
],
|
71
|
+
};
|
72
|
+
}
|
73
|
+
const info = {
|
74
|
+
total,
|
75
|
+
data: [],
|
76
|
+
};
|
77
|
+
const accessGrantedCount = this.datasets.filter((dataset) => dataset.entitlementReport instanceof
|
78
|
+
DatasetEntitlementAccessGrantedReport).length;
|
79
|
+
const accessGrantedPercentage = Math.round(accessGrantedCount / total) * 100;
|
80
|
+
info.data.push({
|
81
|
+
label: 'Access Granted',
|
82
|
+
count: accessGrantedCount,
|
83
|
+
percentage: accessGrantedPercentage,
|
84
|
+
color: this.applicationStore.layoutService.getColor(QUERY_BUILDER_COLOR_THEME_KEY.DATA_ACCESS_OVERVIEW__CHART__ACCESS_GRANTED),
|
85
|
+
});
|
86
|
+
const accessApprovedCount = this.datasets.filter((dataset) => dataset.entitlementReport instanceof
|
87
|
+
DatasetEntitlementAccessApprovedReport).length;
|
88
|
+
const accessApprovedPercentage = Math.round((accessApprovedCount / total) * 100);
|
89
|
+
info.data.push({
|
90
|
+
label: 'Access Approved',
|
91
|
+
count: accessApprovedCount,
|
92
|
+
percentage: accessApprovedPercentage,
|
93
|
+
color: this.applicationStore.layoutService.getColor(QUERY_BUILDER_COLOR_THEME_KEY.DATA_ACCESS_OVERVIEW__CHART__ACCESS_APPROVED),
|
94
|
+
});
|
95
|
+
const accessRequestedCount = this.datasets.filter((dataset) => dataset.entitlementReport instanceof
|
96
|
+
DatasetEntitlementAccessRequestedReport).length;
|
97
|
+
const accessRequestedPercentage = Math.round((accessRequestedCount / total) * 100);
|
98
|
+
info.data.push({
|
99
|
+
label: 'Access Requested',
|
100
|
+
count: accessRequestedCount,
|
101
|
+
percentage: accessRequestedPercentage,
|
102
|
+
color: this.applicationStore.layoutService.getColor(QUERY_BUILDER_COLOR_THEME_KEY.DATA_ACCESS_OVERVIEW__CHART__ACCESS_REQUESTED),
|
103
|
+
});
|
104
|
+
const accessNotGrantedCount = this.datasets.filter((dataset) => dataset.entitlementReport instanceof
|
105
|
+
DatasetEntitlementAccessNotGrantedReport).length;
|
106
|
+
const accessNotGrantedPercentage = Math.round(accessNotGrantedCount / total) * 100;
|
107
|
+
info.data.push({
|
108
|
+
label: 'Access Not Granted',
|
109
|
+
count: accessNotGrantedCount,
|
110
|
+
percentage: accessNotGrantedPercentage,
|
111
|
+
color: this.applicationStore.layoutService.getColor(QUERY_BUILDER_COLOR_THEME_KEY.DATA_ACCESS_OVERVIEW__CHART__ACCESS_NOT_GRANTED),
|
112
|
+
});
|
113
|
+
const unsupportedCount = this.datasets.filter((dataset) => dataset.entitlementReport instanceof
|
114
|
+
DatasetEntitlementUnsupportedReport).length;
|
115
|
+
const unsupportedPercentage = Math.round((unsupportedCount / total) * 100);
|
116
|
+
info.data.push({
|
117
|
+
label: 'Unsupported',
|
118
|
+
count: unsupportedCount,
|
119
|
+
percentage: unsupportedPercentage,
|
120
|
+
color: this.applicationStore.layoutService.getColor(QUERY_BUILDER_COLOR_THEME_KEY.DATA_ACCESS_OVERVIEW__CHART__UNSUPPORTED_ACCESS),
|
121
|
+
});
|
122
|
+
const unknownCount = total -
|
123
|
+
accessGrantedCount -
|
124
|
+
accessApprovedCount -
|
125
|
+
accessRequestedCount -
|
126
|
+
accessNotGrantedCount -
|
127
|
+
unsupportedCount;
|
128
|
+
const unknownPercentage = Math.round(unknownCount / total) * 100;
|
129
|
+
info.data.push({
|
130
|
+
label: 'Unknown',
|
131
|
+
count: unknownCount,
|
132
|
+
percentage: unknownPercentage,
|
133
|
+
color: this.applicationStore.layoutService.getColor(QUERY_BUILDER_COLOR_THEME_KEY.DATA_ACCESS_OVERVIEW__CHART__UNSUPPORTED_ACCESS),
|
134
|
+
});
|
135
|
+
let currentPercentageSum = 0;
|
136
|
+
for (let i = 0; i < info.data.length; ++i) {
|
137
|
+
const data = getNonNullableEntry(info.data, i);
|
138
|
+
if (currentPercentageSum + data.percentage >= 100) {
|
139
|
+
data.percentage = 100 - currentPercentageSum;
|
140
|
+
info.data = info.data.slice(0, i + 1);
|
141
|
+
break;
|
142
|
+
}
|
143
|
+
currentPercentageSum += data.percentage;
|
144
|
+
}
|
145
|
+
return info;
|
146
|
+
}
|
147
|
+
*fetchDatasetSpecifications() {
|
148
|
+
this.surveyDatasetsState.inProgress();
|
149
|
+
try {
|
150
|
+
const datasets = (yield this.surveyDatasets());
|
151
|
+
this.datasets = datasets.map((dataset) => {
|
152
|
+
const existingDataset = this.datasets.find((ds) => ds.specification.hashCode === dataset.hashCode);
|
153
|
+
if (existingDataset) {
|
154
|
+
return existingDataset;
|
155
|
+
}
|
156
|
+
return new DatasetAccessInfo(dataset);
|
157
|
+
});
|
158
|
+
}
|
159
|
+
catch (error) {
|
160
|
+
assertErrorThrown(error);
|
161
|
+
this.applicationStore.notificationService.notifyError(error);
|
162
|
+
}
|
163
|
+
finally {
|
164
|
+
this.surveyDatasetsState.complete();
|
165
|
+
}
|
166
|
+
}
|
167
|
+
*fetchDatasetEntitlementReports() {
|
168
|
+
this.checkEntitlementsState.inProgress();
|
169
|
+
try {
|
170
|
+
const reports = (yield this.checkDatasetEntitlements(this.datasets.map((dataset) => dataset.specification)));
|
171
|
+
this.datasets.forEach((dataset) => {
|
172
|
+
const matchingReport = reports.find((report) => report.dataset.hashCode === dataset.specification.hashCode);
|
173
|
+
if (matchingReport) {
|
174
|
+
dataset.setEntitlementReport(matchingReport);
|
175
|
+
return;
|
176
|
+
}
|
177
|
+
dataset.setEntitlementReport(undefined);
|
178
|
+
});
|
179
|
+
const newDatasets = [];
|
180
|
+
reports.forEach((report) => {
|
181
|
+
const matchingDataset = this.datasets.find((dataset) => dataset.specification.hashCode === report.dataset.hashCode);
|
182
|
+
if (!matchingDataset) {
|
183
|
+
const newDataset = new DatasetAccessInfo(report.dataset);
|
184
|
+
newDataset.setEntitlementReport(report);
|
185
|
+
newDatasets.push(newDataset);
|
186
|
+
}
|
187
|
+
});
|
188
|
+
this.datasets = this.datasets.concat(newDatasets);
|
189
|
+
}
|
190
|
+
catch (error) {
|
191
|
+
assertErrorThrown(error);
|
192
|
+
this.applicationStore.notificationService.notifyError(error);
|
193
|
+
}
|
194
|
+
finally {
|
195
|
+
this.checkEntitlementsState.complete();
|
196
|
+
}
|
197
|
+
}
|
198
|
+
async intialize() {
|
199
|
+
if (!this.initialDatasets) {
|
200
|
+
await flowResult(this.fetchDatasetSpecifications());
|
201
|
+
await flowResult(this.fetchDatasetEntitlementReports());
|
202
|
+
}
|
203
|
+
else {
|
204
|
+
await flowResult(this.fetchDatasetEntitlementReports());
|
205
|
+
}
|
206
|
+
}
|
207
|
+
async refresh() {
|
208
|
+
await flowResult(this.fetchDatasetSpecifications());
|
209
|
+
await flowResult(this.fetchDatasetEntitlementReports());
|
210
|
+
}
|
211
|
+
}
|
212
|
+
//# sourceMappingURL=DataAccessState.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataAccessState.js","sourceRoot":"","sources":["../../../src/stores/data-access/DataAccessState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,qCAAqC,EAIrC,sCAAsC,EACtC,uCAAuC,EACvC,wCAAwC,EACxC,mCAAmC,GACpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,IAAI,EAEJ,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,cAAc,EACd,UAAU,GACX,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AAExF,MAAM,OAAO,iBAAiB;IACnB,IAAI,GAAG,IAAI,EAAE,CAAC;IACd,aAAa,CAAwB;IAE9C,iBAAiB,CAAwC;IAEzD,YAAY,aAAmC;QAC7C,cAAc,CAAC,IAAI,EAAE;YACnB,iBAAiB,EAAE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B,EAAE,CAAC,CAAC;SACzD;aAAM;YACL,MAAM,UAAU,CAAC,IAAI,CAAC,8BAA8B,EAAE,CAAC,CAAC;SACzD;IACH,CAAC;IAED,KAAK,CAAC,OAAO;QACX,MAAM,UAAU,CAAC,IAAI,CAAC,0BAA0B,EAAE,CAAC,CAAC;QACpD,MAAM,UAAU,CAAC,IAAI,CAAC,8BAA8B,EAAE,CAAC,CAAC;IAC1D,CAAC;CACF"}
|
@@ -15,11 +15,13 @@
|
|
15
15
|
*/
|
16
16
|
import { type Hashable } from '@finos/legend-shared';
|
17
17
|
import type { QueryBuilderState } from '../QueryBuilderState.js';
|
18
|
+
import { DataAccessState } from '../data-access/DataAccessState.js';
|
18
19
|
export declare class QueryBuilderCheckEntitlementsState implements Hashable {
|
19
20
|
readonly queryBuilderState: QueryBuilderState;
|
20
|
-
|
21
|
+
dataAccessState?: DataAccessState | undefined;
|
22
|
+
showCheckEntitlementsViewer: boolean;
|
21
23
|
constructor(queryBuilderState: QueryBuilderState);
|
22
|
-
|
24
|
+
setShowCheckEntitlementsViewer(val: boolean): void;
|
23
25
|
get hashCode(): string;
|
24
26
|
}
|
25
27
|
//# sourceMappingURL=QueryBuilderCheckEntitlementsState.d.ts.map
|
@@ -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;
|
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;AAQpE,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;IAyClD,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF"}
|