@finos/legend-extension-dsl-data-quality 1.0.43 → 1.0.45

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"V1_DSL_Data_Quality_PureGraphManagerExtension.d.ts","sourceRoot":"","sources":["../../../../../src/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,eAAe,EAEpB,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EAEvB,KAAK,mBAAmB,EAExB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EAEtB,iBAAiB,EAQjB,mBAAmB,EAMpB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAML,oBAAoB,EAGrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,yCAAyC,EAAE,MAAM,iDAAiD,CAAC;AAY5G,qBAAa,iBAAiB;IAC5B,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,KAAK,EAAG,mBAAmB,CAAC;IAC5B,qBAAqB,EAAE,iBAAiB,EAAE,CAAM;IAChD,WAAW,EAAG,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAE/B,MAAM,CAAC,QAAQ,CAAC,aAAa,0CAQ3B;CACH;AAED,qBAAa,6CAA8C,SAAQ,yCAAyC;IAClG,YAAY,EAAE,mBAAmB,CAAC;IAC1C,MAAM,CAAC,QAAQ,CAAC,oBAAoB,4BAA4B;gBAEpD,YAAY,EAAE,wBAAwB;IAKlD,2BAA2B,IAAI,MAAM;IAIrC,OAAO,CAAC,yBAAyB;IAkBjC,OAAO,CAAC,iBAAiB,CAmBvB;YAEY,4BAA4B;IAa1C,oBAAoB,CAClB,KAAK,EAAE,SAAS,EAChB,qBAAqB,EAAE,cAAc,EAAE,EACvC,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,cAAc,EAAE,iBAAiB,GAChC,iBAAiB;IAapB,YAAY,UACH,SAAS,eACH,MAAM,KAClB,OAAO,CAAC,gBAAgB,CAAC,CAuB1B;IAEF,OAAO,UACE,SAAS,yBACO,cAAc,EAAE,eAC1B,MAAM,gBACL,MAAM,KACnB,OAAO,CAAC,eAAe,CAAC,CAkCzB;IAEF,4BAA4B,UACnB,SAAS,eACH,MAAM,KAClB,OAAO,CAAC;QAAE,IAAI,EAAE,gBAAgB,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CA2BnD;IAEF,0BAA0B,UACjB,SAAS,eACH,MAAM,KAClB,OAAO,CAAC,kBAAkB,CAAC,CAyC5B;CACH"}
1
+ {"version":3,"file":"V1_DSL_Data_Quality_PureGraphManagerExtension.d.ts","sourceRoot":"","sources":["../../../../../src/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,eAAe,EAEpB,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EAEvB,KAAK,mBAAmB,EAExB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EAEtB,iBAAiB,EAQjB,mBAAmB,EAOpB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAML,oBAAoB,EAGrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,yCAAyC,EAAE,MAAM,iDAAiD,CAAC;AAY5G,qBAAa,iBAAiB;IAC5B,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,KAAK,EAAG,mBAAmB,CAAC;IAC5B,qBAAqB,EAAE,iBAAiB,EAAE,CAAM;IAChD,WAAW,EAAG,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAE/B,MAAM,CAAC,QAAQ,CAAC,aAAa,0CAQ3B;CACH;AAED,qBAAa,6CAA8C,SAAQ,yCAAyC;IAClG,YAAY,EAAE,mBAAmB,CAAC;IAC1C,MAAM,CAAC,QAAQ,CAAC,oBAAoB,4BAA4B;gBAEpD,YAAY,EAAE,wBAAwB;IAKlD,2BAA2B,IAAI,MAAM;IAIrC,OAAO,CAAC,yBAAyB;IAkBjC,OAAO,CAAC,iBAAiB,CAwBvB;YAEY,4BAA4B;IAa1C,oBAAoB,CAClB,KAAK,EAAE,SAAS,EAChB,qBAAqB,EAAE,cAAc,EAAE,EACvC,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,cAAc,EAAE,iBAAiB,GAChC,iBAAiB;IAapB,YAAY,UACH,SAAS,eACH,MAAM,KAClB,OAAO,CAAC,gBAAgB,CAAC,CA4B1B;IAEF,OAAO,UACE,SAAS,yBACO,cAAc,EAAE,eAC1B,MAAM,gBACL,MAAM,KACnB,OAAO,CAAC,eAAe,CAAC,CAkCzB;IAEF,4BAA4B,UACnB,SAAS,eACH,MAAM,KAClB,OAAO,CAAC;QAAE,IAAI,EAAE,gBAAgB,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAgCnD;IAEF,0BAA0B,UACjB,SAAS,eACH,MAAM,KAClB,OAAO,CAAC,kBAAkB,CAAC,CA8C5B;CACH"}
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { LegendSDLC, PureClientVersion, V1_buildExecutionError, V1_buildExecutionResult, V1_ExecutionError, V1_GraphBuilderContextBuilder, V1_LegendSDLC, V1_ProcessingContext, V1_Protocol, V1_PureGraphManager, V1_PureModelContextPointer, V1_pureModelContextPropSchema, V1_serializeExecutionResult, V1_parameterValueModelSchema, V1_transformParameterValue, } from '@finos/legend-graph';
16
+ import { LegendSDLC, PureClientVersion, V1_buildExecutionError, V1_buildExecutionResult, V1_ExecutionError, V1_GraphBuilderContextBuilder, V1_LegendSDLC, V1_ProcessingContext, V1_Protocol, V1_PureGraphManager, V1_PureModelContextPointer, V1_pureModelContextPropSchema, V1_serializeExecutionResult, V1_parameterValueModelSchema, V1_transformParameterValue, V1_RemoteEngine, } from '@finos/legend-graph';
17
17
  import { createModelSchema, optional, primitive } from 'serializr';
18
18
  import { assertErrorThrown, guaranteeType, NetworkClientError, returnUndefOnError, SerializationFactory, UnsupportedOperationError, customListWithSchema, } from '@finos/legend-shared';
19
19
  import { DSL_DataQuality_PureGraphManagerExtension } from '../DSL_DataQuality_PureGraphManagerExtension.js';
@@ -54,7 +54,8 @@ export class V1_DSL_Data_Quality_PureGraphManagerExtension extends DSL_DataQuali
54
54
  throw new UnsupportedOperationError('Unsupported graph origin');
55
55
  }
56
56
  executeValidation = (input, options) => {
57
- const engineServerClient = this.graphManager.engine.getEngineServerClient();
57
+ // TODO: improve abstraction so that we do not need to access the engine server client directly
58
+ const engineServerClient = guaranteeType(this.graphManager.engine, V1_RemoteEngine, 'executeValidation is only supported by remote engine').getEngineServerClient();
58
59
  return engineServerClient.postWithTracing(engineServerClient.getTraceData(DQ_EXECUTE_PLAN), `${engineServerClient._pure()}/dataquality/execute`, input, {}, undefined, undefined, { enableCompression: true }, {
59
60
  skipProcessing: Boolean(options?.returnAsResponse),
60
61
  });
@@ -77,7 +78,8 @@ export class V1_DSL_Data_Quality_PureGraphManagerExtension extends DSL_DataQuali
77
78
  generatePlan = async (graph, packagePath) => {
78
79
  const input = this.createExecutionInput(graph, [], packagePath, V1_DSL_Data_Quality_PureGraphManagerExtension.DEV_PROTOCOL_VERSION, undefined, new V1_DQExecuteInput());
79
80
  const serializedInput = V1_DQExecuteInput.serialization.toJson(input);
80
- const engineServerClient = this.graphManager.engine.getEngineServerClient();
81
+ // TODO: improve abstraction so that we do not need to access the engine server client directly
82
+ const engineServerClient = guaranteeType(this.graphManager.engine, V1_RemoteEngine, 'generatePlan is only supported by remote engine').getEngineServerClient();
81
83
  return engineServerClient.postWithTracing(engineServerClient.getTraceData(DQ_GENERATE_EXECUTION_PLAN), `${engineServerClient._pure()}/dataquality/generatePlan`, serializedInput, {}, undefined, undefined, { enableCompression: true });
82
84
  };
83
85
  execute = async (graph, lambdaParameterValues, packagePath, previewLimit) => {
@@ -99,7 +101,8 @@ export class V1_DSL_Data_Quality_PureGraphManagerExtension extends DSL_DataQuali
99
101
  debugExecutionPlanGeneration = async (graph, packagePath) => {
100
102
  const input = this.createExecutionInput(graph, [], packagePath, V1_DSL_Data_Quality_PureGraphManagerExtension.DEV_PROTOCOL_VERSION, undefined, new V1_DQExecuteInput());
101
103
  const serializedInput = V1_DQExecuteInput.serialization.toJson(input);
102
- const engineServerClient = this.graphManager.engine.getEngineServerClient();
104
+ // TODO: improve abstraction so that we do not need to access the engine server client directly
105
+ const engineServerClient = guaranteeType(this.graphManager.engine, V1_RemoteEngine, 'debugExecutionPlanGeneration is only supported by remote engine').getEngineServerClient();
103
106
  const result = await engineServerClient.postWithTracing(engineServerClient.getTraceData(DQ_DEBUG_EXECUTION_PLAN), `${engineServerClient._pure()}/dataquality/debugPlan`, serializedInput, {}, undefined, undefined, { enableCompression: true });
104
107
  return {
105
108
  plan: result.plan,
@@ -107,7 +110,8 @@ export class V1_DSL_Data_Quality_PureGraphManagerExtension extends DSL_DataQuali
107
110
  };
108
111
  };
109
112
  fetchStructuralValidations = async (graph, packagePath) => {
110
- const engineServerClient = this.graphManager.engine.getEngineServerClient();
113
+ // TODO: improve abstraction so that we do not need to access the engine server client directly
114
+ const engineServerClient = guaranteeType(this.graphManager.engine, V1_RemoteEngine, 'fetchStructuralValidations is only supported by remote engine').getEngineServerClient();
111
115
  const input = this.createExecutionInput(graph, [], packagePath, V1_DSL_Data_Quality_PureGraphManagerExtension.DEV_PROTOCOL_VERSION, undefined, new V1_DQExecuteInput());
112
116
  const serializedInput = V1_DQExecuteInput.serialization.toJson(input);
113
117
  const V1_rootGraphFetchTree = await engineServerClient.postWithTracing(engineServerClient.getTraceData(DQ_FETCH_PROPERTY_PATH_TREE), `${engineServerClient._pure()}/dataquality/propertyPathTree`, serializedInput, {}, undefined, undefined, { enableCompression: true });
@@ -1 +1 @@
1
- {"version":3,"file":"V1_DSL_Data_Quality_PureGraphManagerExtension.js","sourceRoot":"","sources":["../../../../../src/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAYL,UAAU,EACV,iBAAiB,EACjB,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,EACjB,6BAA6B,EAC7B,aAAa,EACb,oBAAoB,EACpB,WAAW,EACX,mBAAmB,EACnB,0BAA0B,EAC1B,6BAA6B,EAC7B,2BAA2B,EAC3B,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACnE,OAAO,EAEL,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,EACzB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,yCAAyC,EAAE,MAAM,iDAAiD,CAAC;AAC5G,OAAO,EACL,iCAAiC,EACjC,6DAA6D,GAC9D,MAAM,wEAAwE,CAAC;AAGhF,MAAM,0BAA0B,GAAG,yBAAyB,CAAC;AAC7D,MAAM,eAAe,GAAG,cAAc,CAAC;AACvC,MAAM,uBAAuB,GAAG,sBAAsB,CAAC;AACvD,MAAM,2BAA2B,GAAG,6BAA6B,CAAC;AAElE,MAAM,OAAO,iBAAiB;IAC5B,aAAa,CAAqB;IAClC,KAAK,CAAuB;IAC5B,qBAAqB,GAAwB,EAAE,CAAC;IAChD,WAAW,CAAU;IACrB,UAAU,CAAqB;IAE/B,MAAM,CA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zB,MAAM,kBAAkB,CAAC,eAAe,CACtC,kBAAkB,CAAC,YAAY,CAAC,2BAA2B,CAAC,EAC5D,GAAG,kBAAkB,CAAC,KAAK,EAAE,+BAA+B,EAC5D,eAAe,EACf,EAAE,EACF,SAAS,EACT,SAAS,EACT,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAC5B,CAAC;QAEJ,MAAM,gCAAgC,GACpC,6DAA6D,CAC3D,qBAAqB,CACtB,CAAC;QACJ,MAAM,OAAO,GAAG,IAAI,6BAA6B,CAC/C,KAAK,EACL,KAAK,EACL,IAAI,CAAC,YAAY,CAAC,sBAAsB,EACxC,IAAI,CAAC,YAAY,CAAC,UAAU,CAC7B,CAAC,KAAK,EAAE,CAAC;QACV,OAAO,iCAAiC,CACtC,gCAAgC,EAChC,OAAO,EACP,SAAS,EACT,EAAE,EACF,IAAI,oBAAoB,CAAC,EAAE,CAAC,EAC5B,IAAI,CAC4B,CAAC;IACrC,CAAC,CAAC"}
1
+ {"version":3,"file":"V1_DSL_Data_Quality_PureGraphManagerExtension.js","sourceRoot":"","sources":["../../../../../src/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAYL,UAAU,EACV,iBAAiB,EACjB,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,EACjB,6BAA6B,EAC7B,aAAa,EACb,oBAAoB,EACpB,WAAW,EACX,mBAAmB,EACnB,0BAA0B,EAC1B,6BAA6B,EAC7B,2BAA2B,EAC3B,4BAA4B,EAC5B,0BAA0B,EAC1B,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACnE,OAAO,EAEL,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,EACzB,oBAAoB,GACrB,M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CAAC,EAAE,CAAC,EAC5B,IAAI,CAC4B,CAAC;IACrC,CAAC,CAAC"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-extension-dsl-data-quality v1.0.43
1
+ /** @license @finos/legend-extension-dsl-data-quality v1.0.45
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-extension-dsl-data-quality",
3
- "version": "1.0.43",
3
+ "version": "1.0.45",
4
4
  "description": "Legend extension for Data Quality",
5
5
  "keywords": [
6
6
  "legend",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-extension-dsl-data-quality",
3
- "version": "1.0.43",
3
+ "version": "1.0.45",
4
4
  "description": "Legend extension for Data Quality",
5
5
  "keywords": [
6
6
  "legend",
@@ -42,14 +42,14 @@
42
42
  "test:watch": "jest --watch"
43
43
  },
44
44
  "dependencies": {
45
- "@finos/legend-application": "16.0.0",
46
- "@finos/legend-application-studio": "28.18.38",
47
- "@finos/legend-art": "7.1.59",
48
- "@finos/legend-code-editor": "2.0.0",
49
- "@finos/legend-extension-dsl-data-space": "10.3.76",
50
- "@finos/legend-graph": "31.10.34",
51
- "@finos/legend-lego": "2.0.1",
52
- "@finos/legend-query-builder": "4.14.95",
45
+ "@finos/legend-application": "16.0.1",
46
+ "@finos/legend-application-studio": "28.18.40",
47
+ "@finos/legend-art": "7.1.60",
48
+ "@finos/legend-code-editor": "2.0.2",
49
+ "@finos/legend-extension-dsl-data-space": "10.3.78",
50
+ "@finos/legend-graph": "31.10.36",
51
+ "@finos/legend-lego": "2.0.3",
52
+ "@finos/legend-query-builder": "4.15.0",
53
53
  "@finos/legend-shared": "10.0.56",
54
54
  "@finos/legend-storage": "3.0.106",
55
55
  "@types/react": "18.3.9",
@@ -41,6 +41,7 @@ import {
41
41
  V1_serializeExecutionResult,
42
42
  V1_parameterValueModelSchema,
43
43
  V1_transformParameterValue,
44
+ V1_RemoteEngine,
44
45
  } from '@finos/legend-graph';
45
46
  import { createModelSchema, optional, primitive } from 'serializr';
46
47
  import {
@@ -120,7 +121,12 @@ export class V1_DSL_Data_Quality_PureGraphManagerExtension extends DSL_DataQuali
120
121
  returnAsResponse?: boolean;
121
122
  },
122
123
  ): Promise<PlainObject<V1_ExecutionResult> | Response> => {
123
- const engineServerClient = this.graphManager.engine.getEngineServerClient();
124
+ // TODO: improve abstraction so that we do not need to access the engine server client directly
125
+ const engineServerClient = guaranteeType(
126
+ this.graphManager.engine,
127
+ V1_RemoteEngine,
128
+ 'executeValidation is only supported by remote engine',
129
+ ).getEngineServerClient();
124
130
  return engineServerClient.postWithTracing(
125
131
  engineServerClient.getTraceData(DQ_EXECUTE_PLAN),
126
132
  `${engineServerClient._pure()}/dataquality/execute`,
@@ -183,7 +189,12 @@ export class V1_DSL_Data_Quality_PureGraphManagerExtension extends DSL_DataQuali
183
189
 
184
190
  const serializedInput = V1_DQExecuteInput.serialization.toJson(input);
185
191
 
186
- const engineServerClient = this.graphManager.engine.getEngineServerClient();
192
+ // TODO: improve abstraction so that we do not need to access the engine server client directly
193
+ const engineServerClient = guaranteeType(
194
+ this.graphManager.engine,
195
+ V1_RemoteEngine,
196
+ 'generatePlan is only supported by remote engine',
197
+ ).getEngineServerClient();
187
198
 
188
199
  return engineServerClient.postWithTracing(
189
200
  engineServerClient.getTraceData(DQ_GENERATE_EXECUTION_PLAN),
@@ -251,7 +262,12 @@ export class V1_DSL_Data_Quality_PureGraphManagerExtension extends DSL_DataQuali
251
262
  );
252
263
 
253
264
  const serializedInput = V1_DQExecuteInput.serialization.toJson(input);
254
- const engineServerClient = this.graphManager.engine.getEngineServerClient();
265
+ // TODO: improve abstraction so that we do not need to access the engine server client directly
266
+ const engineServerClient = guaranteeType(
267
+ this.graphManager.engine,
268
+ V1_RemoteEngine,
269
+ 'debugExecutionPlanGeneration is only supported by remote engine',
270
+ ).getEngineServerClient();
255
271
 
256
272
  const result: { plan: RawExecutionPlan; debug: string[] } =
257
273
  await engineServerClient.postWithTracing(
@@ -273,7 +289,12 @@ export class V1_DSL_Data_Quality_PureGraphManagerExtension extends DSL_DataQuali
273
289
  graph: PureModel,
274
290
  packagePath: string,
275
291
  ): Promise<RootGraphFetchTree> => {
276
- const engineServerClient = this.graphManager.engine.getEngineServerClient();
292
+ // TODO: improve abstraction so that we do not need to access the engine server client directly
293
+ const engineServerClient = guaranteeType(
294
+ this.graphManager.engine,
295
+ V1_RemoteEngine,
296
+ 'fetchStructuralValidations is only supported by remote engine',
297
+ ).getEngineServerClient();
277
298
  const input = this.createExecutionInput(
278
299
  graph,
279
300
  [],