@finos/legend-graph 32.3.22 → 32.3.24
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.
- package/lib/graph/Core_HashUtils.d.ts +5 -0
- package/lib/graph/Core_HashUtils.d.ts.map +1 -1
- package/lib/graph/Core_HashUtils.js +5 -0
- package/lib/graph/Core_HashUtils.js.map +1 -1
- package/lib/graph/metamodel/pure/dataProduct/DataProduct.d.ts +30 -0
- package/lib/graph/metamodel/pure/dataProduct/DataProduct.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/dataProduct/DataProduct.js +76 -1
- package/lib/graph/metamodel/pure/dataProduct/DataProduct.js.map +1 -1
- package/lib/graph/metamodel/pure/packageableElements/service/Service.d.ts +1 -0
- package/lib/graph/metamodel/pure/packageableElements/service/Service.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/packageableElements/service/Service.js +2 -0
- package/lib/graph/metamodel/pure/packageableElements/service/Service.js.map +1 -1
- package/lib/graph-manager/action/changeDetection/DSL_Service_ObserverHelper.d.ts.map +1 -1
- package/lib/graph-manager/action/changeDetection/DSL_Service_ObserverHelper.js +1 -0
- package/lib/graph-manager/action/changeDetection/DSL_Service_ObserverHelper.js.map +1 -1
- package/lib/graph-manager/action/validation/DSL_Service_ValidationHelper.d.ts +1 -0
- package/lib/graph-manager/action/validation/DSL_Service_ValidationHelper.d.ts.map +1 -1
- package/lib/graph-manager/action/validation/DSL_Service_ValidationHelper.js +14 -0
- package/lib/graph-manager/action/validation/DSL_Service_ValidationHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/lakehouse/deploy/V1_DataProductArtifact.d.ts +89 -0
- package/lib/graph-manager/protocol/pure/v1/lakehouse/deploy/V1_DataProductArtifact.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/lakehouse/deploy/V1_DataProductArtifact.js +195 -2
- package/lib/graph-manager/protocol/pure/v1/lakehouse/deploy/V1_DataProductArtifact.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_ConsumerEntitlements.d.ts +6 -2
- package/lib/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_ConsumerEntitlements.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_ConsumerEntitlements.js +4 -0
- package/lib/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_ConsumerEntitlements.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_EntitlementsDataProduct.d.ts +1 -0
- package/lib/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_EntitlementsDataProduct.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_EntitlementsDataProduct.js +1 -0
- package/lib/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_EntitlementsDataProduct.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/lakehouse/helpers/V1_ConsumerEntitlementsUtils.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/lakehouse/helpers/V1_ConsumerEntitlementsUtils.js +20 -7
- package/lib/graph-manager/protocol/pure/v1/lakehouse/helpers/V1_ConsumerEntitlementsUtils.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_DataProduct.d.ts +30 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_DataProduct.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_DataProduct.js +67 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_DataProduct.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/service/V1_Service.d.ts +1 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/service/V1_Service.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/service/V1_Service.js +2 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/service/V1_Service.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DataProductTransformer.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DataProductTransformer.js +74 -2
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DataProductTransformer.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ServiceTransformer.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ServiceTransformer.js +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ServiceTransformer.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.js +5 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_DataProductBuilder.d.ts +5 -2
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_DataProductBuilder.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_DataProductBuilder.js +93 -3
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_DataProductBuilder.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataProductSerializationHelper.d.ts +10 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataProductSerializationHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataProductSerializationHelper.js +53 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataProductSerializationHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_EntitlementSerializationHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_EntitlementSerializationHelper.js +3 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_EntitlementSerializationHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.js +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/package.json +1 -1
- package/src/graph/Core_HashUtils.ts +5 -0
- package/src/graph/metamodel/pure/dataProduct/DataProduct.ts +89 -1
- package/src/graph/metamodel/pure/packageableElements/service/Service.ts +2 -0
- package/src/graph-manager/action/changeDetection/DSL_Service_ObserverHelper.ts +1 -0
- package/src/graph-manager/action/validation/DSL_Service_ValidationHelper.ts +19 -0
- package/src/graph-manager/protocol/pure/v1/lakehouse/deploy/V1_DataProductArtifact.ts +294 -0
- package/src/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_ConsumerEntitlements.ts +5 -1
- package/src/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_EntitlementsDataProduct.ts +1 -0
- package/src/graph-manager/protocol/pure/v1/lakehouse/helpers/V1_ConsumerEntitlementsUtils.ts +24 -10
- package/src/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_DataProduct.ts +77 -0
- package/src/graph-manager/protocol/pure/v1/model/packageableElements/service/V1_Service.ts +2 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DataProductTransformer.ts +105 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ServiceTransformer.ts +1 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.ts +8 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_DataProductBuilder.ts +161 -1
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataProductSerializationHelper.ts +92 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_EntitlementSerializationHelper.ts +3 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.ts +1 -0
- package/src/index.ts +13 -0
|
@@ -48,6 +48,11 @@ import {
|
|
|
48
48
|
V1_Expertise,
|
|
49
49
|
V1_FunctionAccessPoint,
|
|
50
50
|
V1_DataProductOperationalMetadata,
|
|
51
|
+
V1_NativeModelAccess,
|
|
52
|
+
type V1_SampleQuery,
|
|
53
|
+
V1_PackageableElementSampleQuery,
|
|
54
|
+
V1_InLineSampleQuery,
|
|
55
|
+
V1_NativeModelExecutionContext,
|
|
51
56
|
} from '../../../model/packageableElements/dataProduct/V1_DataProduct.js';
|
|
52
57
|
import {
|
|
53
58
|
UnsupportedOperationError,
|
|
@@ -87,6 +92,11 @@ export enum V1_AccessPointGrouptype {
|
|
|
87
92
|
MODEL_ACCESS_POINT_GROUP = 'modelAccessPointGroup',
|
|
88
93
|
}
|
|
89
94
|
|
|
95
|
+
export enum V1_SampleQueryType {
|
|
96
|
+
IN_LINE_SAMPLE_QUERY = 'inLineSampleQuery',
|
|
97
|
+
PACKAGEABLE_ELEMENT_SAMPLE_QUERY = 'packageableElementSampleQuery',
|
|
98
|
+
}
|
|
99
|
+
|
|
90
100
|
export enum V1_DataProductIconType {
|
|
91
101
|
LIBRARY_ICON = 'libraryIcon',
|
|
92
102
|
EMBEDDED_IMAGE_ICON = 'embeddedImageIcon',
|
|
@@ -199,6 +209,85 @@ export const V1_ModelAccessPointGroupModelSchema = createModelSchema(
|
|
|
199
209
|
},
|
|
200
210
|
);
|
|
201
211
|
|
|
212
|
+
export const V1_PackageableElementSampleQueryModelSchema = createModelSchema(
|
|
213
|
+
V1_PackageableElementSampleQuery,
|
|
214
|
+
{
|
|
215
|
+
_type: usingConstantValueSchema(
|
|
216
|
+
V1_SampleQueryType.PACKAGEABLE_ELEMENT_SAMPLE_QUERY,
|
|
217
|
+
),
|
|
218
|
+
description: optional(primitive()),
|
|
219
|
+
executionContextKey: optional(primitive()),
|
|
220
|
+
id: primitive(),
|
|
221
|
+
query: usingModelSchema(V1_packageableElementPointerModelSchema),
|
|
222
|
+
title: primitive(),
|
|
223
|
+
},
|
|
224
|
+
);
|
|
225
|
+
|
|
226
|
+
export const V1_InLineSampleQueryModelSchema = createModelSchema(
|
|
227
|
+
V1_InLineSampleQuery,
|
|
228
|
+
{
|
|
229
|
+
_type: usingConstantValueSchema(V1_SampleQueryType.IN_LINE_SAMPLE_QUERY),
|
|
230
|
+
description: optional(primitive()),
|
|
231
|
+
executionContextKey: optional(primitive()),
|
|
232
|
+
id: primitive(),
|
|
233
|
+
query: usingModelSchema(V1_rawLambdaModelSchema),
|
|
234
|
+
title: primitive(),
|
|
235
|
+
},
|
|
236
|
+
);
|
|
237
|
+
|
|
238
|
+
const V1_serializeSampleQuery = (
|
|
239
|
+
protocol: V1_SampleQuery,
|
|
240
|
+
): PlainObject<V1_SampleQuery> => {
|
|
241
|
+
if (protocol instanceof V1_InLineSampleQuery) {
|
|
242
|
+
return serialize(V1_InLineSampleQueryModelSchema, protocol);
|
|
243
|
+
} else if (protocol instanceof V1_PackageableElementSampleQuery) {
|
|
244
|
+
return serialize(V1_PackageableElementSampleQueryModelSchema, protocol);
|
|
245
|
+
}
|
|
246
|
+
throw new UnsupportedOperationError(
|
|
247
|
+
`Can't serialize data product sample query`,
|
|
248
|
+
protocol,
|
|
249
|
+
);
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
export const V1_deserializeSampleQuery = (
|
|
253
|
+
json: PlainObject<V1_SampleQuery>,
|
|
254
|
+
): V1_SampleQuery => {
|
|
255
|
+
switch (json._type) {
|
|
256
|
+
case V1_SampleQueryType.IN_LINE_SAMPLE_QUERY:
|
|
257
|
+
return deserialize(V1_InLineSampleQueryModelSchema, json);
|
|
258
|
+
case V1_SampleQueryType.PACKAGEABLE_ELEMENT_SAMPLE_QUERY:
|
|
259
|
+
default:
|
|
260
|
+
return deserialize(V1_PackageableElementSampleQueryModelSchema, json);
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
export const V1_NativeModelExecutionContextSchema = createModelSchema(
|
|
265
|
+
V1_NativeModelExecutionContext,
|
|
266
|
+
{
|
|
267
|
+
key: primitive(),
|
|
268
|
+
mapping: usingModelSchema(V1_packageableElementPointerModelSchema),
|
|
269
|
+
runtime: optionalCustomUsingModelSchema(
|
|
270
|
+
V1_packageableElementPointerModelSchema,
|
|
271
|
+
),
|
|
272
|
+
},
|
|
273
|
+
);
|
|
274
|
+
|
|
275
|
+
export const V1_NativeModelAccessModelSchema = createModelSchema(
|
|
276
|
+
V1_NativeModelAccess,
|
|
277
|
+
{
|
|
278
|
+
diagrams: optionalCustomListWithSchema(V1_dataProductDiagramModelSchema),
|
|
279
|
+
defaultExecutionContext: primitive(),
|
|
280
|
+
featuredElements: optionalCustomListWithSchema(V1_ElementScopeModelSchema),
|
|
281
|
+
nativeModelExecutionContexts: customListWithSchema(
|
|
282
|
+
V1_NativeModelExecutionContextSchema,
|
|
283
|
+
),
|
|
284
|
+
sampleQueries: optionalCustomList(
|
|
285
|
+
(val: V1_SampleQuery) => V1_serializeSampleQuery(val),
|
|
286
|
+
(val) => V1_deserializeSampleQuery(val),
|
|
287
|
+
),
|
|
288
|
+
},
|
|
289
|
+
);
|
|
290
|
+
|
|
202
291
|
export const V1_DefaultAccessPointGroupModelSchema = createModelSchema(
|
|
203
292
|
V1_AccessPointGroup,
|
|
204
293
|
{
|
|
@@ -379,6 +468,9 @@ export const V1_dataProductModelSchema = (
|
|
|
379
468
|
V1_deserializeDataProductIcon,
|
|
380
469
|
),
|
|
381
470
|
name: primitive(),
|
|
471
|
+
nativeModelAccess: optionalCustomUsingModelSchema(
|
|
472
|
+
V1_NativeModelAccessModelSchema,
|
|
473
|
+
),
|
|
382
474
|
operationalMetadata: optionalCustomUsingModelSchema(
|
|
383
475
|
V1_DataProductOperationalMetadataModelSchema,
|
|
384
476
|
),
|
|
@@ -249,6 +249,7 @@ export const V1_dataContractModelSchema = (
|
|
|
249
249
|
(val) => V1_deserializeOrganizationalScope(val, plugins),
|
|
250
250
|
),
|
|
251
251
|
createdBy: primitive(),
|
|
252
|
+
createdAt: primitive(),
|
|
252
253
|
});
|
|
253
254
|
|
|
254
255
|
export const V1_dataContractSubscriptionsModelSchema = (
|
|
@@ -276,6 +277,7 @@ export const V1_liteDataContractModelSchema = (
|
|
|
276
277
|
(val) => V1_serializeOrganizationalScope(val, plugins),
|
|
277
278
|
(val) => V1_deserializeOrganizationalScope(val, plugins),
|
|
278
279
|
),
|
|
280
|
+
createdAt: primitive(),
|
|
279
281
|
createdBy: primitive(),
|
|
280
282
|
resourceId: primitive(),
|
|
281
283
|
resourceType: primitive(),
|
|
@@ -323,6 +325,7 @@ export const V1_liteDataContractWithUserStatusModelSchema = (
|
|
|
323
325
|
pendingTaskWithAssignees: optional(
|
|
324
326
|
usingModelSchema(V1_pendingTaskWithAssigneesModelSchema),
|
|
325
327
|
),
|
|
328
|
+
user: primitive(),
|
|
326
329
|
});
|
|
327
330
|
|
|
328
331
|
export const V1_contractUserEventPrivilegeManagerPayloadModelSchema =
|
package/src/index.ts
CHANGED
|
@@ -399,6 +399,14 @@ export {
|
|
|
399
399
|
V1_DataProductArtifact,
|
|
400
400
|
V1_AccessPointImplementation,
|
|
401
401
|
V1_AccessPointGroupInfo,
|
|
402
|
+
V1_SampleQueryInfo,
|
|
403
|
+
V1_InLineSampleQueryInfo,
|
|
404
|
+
V1_PackageableElementSampleQueryInfo,
|
|
405
|
+
V1_NativeModelAccessInfo,
|
|
406
|
+
V1_DiagramInfo,
|
|
407
|
+
V1_EnumerationDocumentationEntry,
|
|
408
|
+
V1_AssociationDocumentationEntry,
|
|
409
|
+
V1_ClassDocumentationEntry,
|
|
402
410
|
} from './graph-manager/protocol/pure/v1/lakehouse/deploy/V1_DataProductArtifact.js';
|
|
403
411
|
export {
|
|
404
412
|
V1_IngestEnvironmentType,
|
|
@@ -770,6 +778,11 @@ export {
|
|
|
770
778
|
LakehouseTargetEnv,
|
|
771
779
|
SupportInfo,
|
|
772
780
|
ModelAccessPointGroup,
|
|
781
|
+
InLineSampleQuery,
|
|
782
|
+
NativeModelAccess,
|
|
783
|
+
NativeModelExecutionContext,
|
|
784
|
+
PackageableElementSampleQuery,
|
|
785
|
+
SampleQuery,
|
|
773
786
|
DataProductRuntimeInfo,
|
|
774
787
|
UnknownDataProductIcon,
|
|
775
788
|
DataProductElementScope,
|