@finos/legend-graph 32.1.63 → 32.1.64
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 +8 -0
- package/lib/graph/Core_HashUtils.d.ts.map +1 -1
- package/lib/graph/Core_HashUtils.js +8 -0
- package/lib/graph/Core_HashUtils.js.map +1 -1
- package/lib/graph/metamodel/pure/dataProduct/DataProduct.d.ts +77 -5
- package/lib/graph/metamodel/pure/dataProduct/DataProduct.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/dataProduct/DataProduct.js +132 -6
- package/lib/graph/metamodel/pure/dataProduct/DataProduct.js.map +1 -1
- package/lib/graph-manager/action/changeDetection/DataProductObserveHelper.d.ts +2 -1
- package/lib/graph-manager/action/changeDetection/DataProductObserveHelper.d.ts.map +1 -1
- package/lib/graph-manager/action/changeDetection/DataProductObserveHelper.js +20 -1
- package/lib/graph-manager/action/changeDetection/DataProductObserveHelper.js.map +1 -1
- package/lib/graph-manager/action/execution/ExecutionResultHelper.d.ts +15 -1
- package/lib/graph-manager/action/execution/ExecutionResultHelper.d.ts.map +1 -1
- package/lib/graph-manager/action/execution/ExecutionResultHelper.js +12 -0
- package/lib/graph-manager/action/execution/ExecutionResultHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/engine/V1_EngineServerClient.d.ts +4 -1
- package/lib/graph-manager/protocol/pure/v1/engine/V1_EngineServerClient.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/engine/V1_EngineServerClient.js +9 -1
- package/lib/graph-manager/protocol/pure/v1/engine/V1_EngineServerClient.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_ConsumerEntitlements.d.ts +1 -1
- package/lib/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_ConsumerEntitlements.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_DataProduct.d.ts +69 -7
- 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 +118 -6
- 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/dataProduct/V1_Terminal.d.ts +31 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_Terminal.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_Terminal.js +45 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_Terminal.js.map +1 -0
- 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 +50 -4
- 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/to/V1_ElementSecondPassBuilder.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.js +28 -20
- 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 +67 -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/V1_PackageableElementSerialization.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PackageableElementSerialization.js +1 -3
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PackageableElementSerialization.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataProductSerializationHelper.d.ts +10 -2
- 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 +106 -36
- 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 +2 -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 +5 -2
- 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_TerminalSerializationHelper.d.ts +3 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TerminalSerializationHelper.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TerminalSerializationHelper.js +31 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TerminalSerializationHelper.js.map +1 -0
- package/lib/index.d.ts +6 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -3
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/package.json +1 -1
- package/src/graph/Core_HashUtils.ts +8 -0
- package/src/graph/metamodel/pure/dataProduct/DataProduct.ts +166 -9
- package/src/graph-manager/action/changeDetection/DataProductObserveHelper.ts +23 -1
- package/src/graph-manager/action/execution/ExecutionResultHelper.ts +36 -0
- package/src/graph-manager/protocol/pure/v1/engine/V1_EngineServerClient.ts +16 -1
- package/src/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_ConsumerEntitlements.ts +1 -1
- package/src/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_DataProduct.ts +140 -9
- package/src/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_Terminal.ts +47 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DataProductTransformer.ts +90 -3
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.ts +40 -24
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_DataProductBuilder.ts +117 -1
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PackageableElementSerialization.ts +1 -3
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataProductSerializationHelper.ts +178 -41
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_EntitlementSerializationHelper.ts +7 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TerminalSerializationHelper.ts +31 -0
- package/src/index.ts +14 -0
- package/tsconfig.json +2 -0
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
|
|
17
17
|
import {
|
|
18
18
|
createModelSchema,
|
|
19
|
-
custom,
|
|
20
19
|
deserialize,
|
|
21
20
|
optional,
|
|
22
21
|
primitive,
|
|
@@ -24,13 +23,21 @@ import {
|
|
|
24
23
|
} from 'serializr';
|
|
25
24
|
import {
|
|
26
25
|
type V1_AccessPoint,
|
|
27
|
-
V1_AccessPointGroup,
|
|
28
26
|
V1_DATA_PRODUCT_ELEMENT_PROTOCOL_TYPE,
|
|
29
27
|
V1_DataProduct,
|
|
30
28
|
V1_Email,
|
|
31
29
|
V1_SupportInfo,
|
|
32
30
|
V1_LakehouseAccessPoint,
|
|
33
31
|
V1_UnknownAccessPoint,
|
|
32
|
+
V1_AccessPointGroup,
|
|
33
|
+
V1_ModelAccessPointGroup,
|
|
34
|
+
V1_ElementScope,
|
|
35
|
+
V1_DataProductRuntimeInfo,
|
|
36
|
+
V1_DataProductDiagram,
|
|
37
|
+
V1_EmbeddedImageIcon,
|
|
38
|
+
V1_LibraryIcon,
|
|
39
|
+
type V1_DataProductIcon,
|
|
40
|
+
V1_DataProductLink,
|
|
34
41
|
} from '../../../model/packageableElements/dataProduct/V1_DataProduct.js';
|
|
35
42
|
import {
|
|
36
43
|
UnsupportedOperationError,
|
|
@@ -40,9 +47,15 @@ import {
|
|
|
40
47
|
type PlainObject,
|
|
41
48
|
customListWithSchema,
|
|
42
49
|
optionalCustomUsingModelSchema,
|
|
50
|
+
optionalCustom,
|
|
51
|
+
optionalCustomList,
|
|
43
52
|
} from '@finos/legend-shared';
|
|
44
53
|
import { V1_rawLambdaModelSchema } from './V1_RawValueSpecificationSerializationHelper.js';
|
|
45
|
-
import {
|
|
54
|
+
import {
|
|
55
|
+
V1_packageableElementPointerModelSchema,
|
|
56
|
+
V1_stereotypePtrModelSchema,
|
|
57
|
+
V1_taggedValueModelSchema,
|
|
58
|
+
} from './V1_CoreSerializationHelper.js';
|
|
46
59
|
|
|
47
60
|
export enum V1_AccessPointType {
|
|
48
61
|
LAKEHOUSE = 'lakehouseAccessPoint',
|
|
@@ -50,16 +63,21 @@ export enum V1_AccessPointType {
|
|
|
50
63
|
EQUAL_TO_TDS = 'equalToTDS',
|
|
51
64
|
}
|
|
52
65
|
|
|
66
|
+
export enum V1_AccessPointGrouptype {
|
|
67
|
+
DEFAULT_ACCESS_POINT_GROUP = 'defaultAccessPointGroup',
|
|
68
|
+
MODEL_ACCESS_POINT_GROUP = 'modelAccessPointGroup',
|
|
69
|
+
}
|
|
70
|
+
|
|
53
71
|
export const V1_lakehouseAccessPointModelSchema = createModelSchema(
|
|
54
72
|
V1_LakehouseAccessPoint,
|
|
55
73
|
{
|
|
56
74
|
_type: usingConstantValueSchema(V1_AccessPointType.LAKEHOUSE),
|
|
57
|
-
id: primitive(),
|
|
58
|
-
description: optional(primitive()),
|
|
59
|
-
targetEnvironment: primitive(),
|
|
60
75
|
classification: optional(primitive()),
|
|
76
|
+
description: optional(primitive()),
|
|
61
77
|
func: usingModelSchema(V1_rawLambdaModelSchema),
|
|
78
|
+
id: primitive(),
|
|
62
79
|
reproducible: optional(primitive()),
|
|
80
|
+
targetEnvironment: primitive(),
|
|
63
81
|
},
|
|
64
82
|
);
|
|
65
83
|
|
|
@@ -92,62 +110,181 @@ const V1_deserializeAccessPoint = (
|
|
|
92
110
|
}
|
|
93
111
|
};
|
|
94
112
|
|
|
95
|
-
export const
|
|
96
|
-
|
|
113
|
+
export const V1_DataProductRuntimeInfoModelSchema = createModelSchema(
|
|
114
|
+
V1_DataProductRuntimeInfo,
|
|
97
115
|
{
|
|
116
|
+
description: optional(primitive()),
|
|
98
117
|
id: primitive(),
|
|
118
|
+
runtime: usingModelSchema(V1_packageableElementPointerModelSchema),
|
|
119
|
+
},
|
|
120
|
+
);
|
|
121
|
+
|
|
122
|
+
export const V1_dataProductDiagramModelSchema = createModelSchema(
|
|
123
|
+
V1_DataProductDiagram,
|
|
124
|
+
{
|
|
125
|
+
title: primitive(),
|
|
99
126
|
description: optional(primitive()),
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
127
|
+
diagram: usingModelSchema(V1_packageableElementPointerModelSchema),
|
|
128
|
+
},
|
|
129
|
+
);
|
|
130
|
+
|
|
131
|
+
export const V1_ElementScopeModelSchema = createModelSchema(V1_ElementScope, {
|
|
132
|
+
element: usingModelSchema(V1_packageableElementPointerModelSchema),
|
|
133
|
+
exclude: optional(primitive()),
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
export const V1_ModelAccessPointGroupModelSchema = createModelSchema(
|
|
137
|
+
V1_ModelAccessPointGroup,
|
|
138
|
+
{
|
|
139
|
+
_type: usingConstantValueSchema(
|
|
140
|
+
V1_AccessPointGrouptype.MODEL_ACCESS_POINT_GROUP,
|
|
141
|
+
),
|
|
103
142
|
accessPoints: customList(
|
|
104
143
|
V1_serializeAccessPoint,
|
|
105
144
|
V1_deserializeAccessPoint,
|
|
106
145
|
),
|
|
146
|
+
compatibleRuntimes: customListWithSchema(
|
|
147
|
+
V1_DataProductRuntimeInfoModelSchema,
|
|
148
|
+
),
|
|
149
|
+
defaultRuntime: primitive(),
|
|
150
|
+
description: optional(primitive()),
|
|
151
|
+
diagrams: customListWithSchema(V1_dataProductDiagramModelSchema),
|
|
152
|
+
featuredElements: customListWithSchema(V1_ElementScopeModelSchema),
|
|
153
|
+
id: primitive(),
|
|
154
|
+
stereotypes: customListWithSchema(V1_stereotypePtrModelSchema),
|
|
155
|
+
mapping: usingModelSchema(V1_packageableElementPointerModelSchema),
|
|
156
|
+
},
|
|
157
|
+
);
|
|
158
|
+
|
|
159
|
+
export const V1_DefaultAccessPointGroupModelSchema = createModelSchema(
|
|
160
|
+
V1_AccessPointGroup,
|
|
161
|
+
{
|
|
162
|
+
_type: usingConstantValueSchema(
|
|
163
|
+
V1_AccessPointGrouptype.DEFAULT_ACCESS_POINT_GROUP,
|
|
164
|
+
),
|
|
165
|
+
accessPoints: customList(
|
|
166
|
+
V1_serializeAccessPoint,
|
|
167
|
+
V1_deserializeAccessPoint,
|
|
168
|
+
),
|
|
169
|
+
description: optional(primitive()),
|
|
170
|
+
id: primitive(),
|
|
171
|
+
stereotypes: customListWithSchema(V1_stereotypePtrModelSchema, {
|
|
172
|
+
INTERNAL__forceReturnEmptyInTest: true,
|
|
173
|
+
}),
|
|
174
|
+
},
|
|
175
|
+
);
|
|
176
|
+
|
|
177
|
+
const V1_serializeAccessPointGroup = (
|
|
178
|
+
protocol: V1_AccessPointGroup,
|
|
179
|
+
): PlainObject<V1_AccessPointGroup> => {
|
|
180
|
+
if (protocol instanceof V1_ModelAccessPointGroup) {
|
|
181
|
+
return serialize(V1_ModelAccessPointGroupModelSchema, protocol);
|
|
182
|
+
}
|
|
183
|
+
return serialize(V1_DefaultAccessPointGroupModelSchema, protocol);
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
const V1_deserializeAccessPointGroup = (
|
|
187
|
+
json: PlainObject<V1_AccessPointGroup>,
|
|
188
|
+
): V1_AccessPointGroup => {
|
|
189
|
+
switch (json._type) {
|
|
190
|
+
case V1_AccessPointGrouptype.MODEL_ACCESS_POINT_GROUP:
|
|
191
|
+
return deserialize(V1_ModelAccessPointGroupModelSchema, json);
|
|
192
|
+
default: {
|
|
193
|
+
return deserialize(V1_DefaultAccessPointGroupModelSchema, json);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
enum V1_DataProductIconType {
|
|
199
|
+
EMBEDDED_IMAGE_ICON = 'embeddedImageIcon',
|
|
200
|
+
LIBRARY_ICON = 'libraryIcon',
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
const V1_EmbeddedImageIconModelSchema = createModelSchema(
|
|
204
|
+
V1_EmbeddedImageIcon,
|
|
205
|
+
{
|
|
206
|
+
_type: usingConstantValueSchema(V1_DataProductIconType.EMBEDDED_IMAGE_ICON),
|
|
207
|
+
imageUrl: primitive(),
|
|
107
208
|
},
|
|
108
209
|
);
|
|
109
210
|
|
|
211
|
+
const V1_LibraryIconModelSchema = createModelSchema(V1_LibraryIcon, {
|
|
212
|
+
_type: usingConstantValueSchema(V1_DataProductIconType.LIBRARY_ICON),
|
|
213
|
+
iconId: primitive(),
|
|
214
|
+
libraryId: primitive(),
|
|
215
|
+
});
|
|
216
|
+
|
|
217
|
+
const V1_deserializeDataProductIcon = (
|
|
218
|
+
json: PlainObject<V1_DataProductIcon>,
|
|
219
|
+
): V1_DataProductIcon => {
|
|
220
|
+
switch (json._type) {
|
|
221
|
+
case V1_DataProductIconType.EMBEDDED_IMAGE_ICON:
|
|
222
|
+
return deserialize(V1_EmbeddedImageIconModelSchema, json);
|
|
223
|
+
case V1_DataProductIconType.LIBRARY_ICON:
|
|
224
|
+
return deserialize(V1_LibraryIconModelSchema, json);
|
|
225
|
+
default:
|
|
226
|
+
throw new UnsupportedOperationError(
|
|
227
|
+
`Can't deserialize data product icon type '${json._type}'`,
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
const V1_serializeDataProductIcon = (
|
|
233
|
+
protocol: V1_DataProductIcon,
|
|
234
|
+
): PlainObject<V1_DataProductIcon> => {
|
|
235
|
+
if (protocol instanceof V1_EmbeddedImageIcon) {
|
|
236
|
+
return serialize(V1_EmbeddedImageIconModelSchema, protocol);
|
|
237
|
+
} else if (protocol instanceof V1_LibraryIcon) {
|
|
238
|
+
return serialize(V1_LibraryIconModelSchema, protocol);
|
|
239
|
+
}
|
|
240
|
+
throw new UnsupportedOperationError(
|
|
241
|
+
`Can't serialize data product icon type`,
|
|
242
|
+
protocol,
|
|
243
|
+
);
|
|
244
|
+
};
|
|
245
|
+
|
|
110
246
|
export const V1_EmailModelSchema = createModelSchema(V1_Email, {
|
|
111
|
-
title: primitive(),
|
|
112
247
|
address: primitive(),
|
|
248
|
+
title: primitive(),
|
|
249
|
+
});
|
|
250
|
+
|
|
251
|
+
const V1_DataProductLinkModelSchema = createModelSchema(V1_DataProductLink, {
|
|
252
|
+
label: optional(primitive()),
|
|
253
|
+
url: primitive(),
|
|
113
254
|
});
|
|
114
255
|
|
|
115
256
|
export const V1_SupportInfoModelSchema = createModelSchema(V1_SupportInfo, {
|
|
116
|
-
|
|
117
|
-
website: optional(primitive()),
|
|
118
|
-
faqUrl: optional(primitive()),
|
|
119
|
-
supportUrl: optional(primitive()),
|
|
257
|
+
documentation: optional(usingModelSchema(V1_DataProductLinkModelSchema)),
|
|
120
258
|
emails: customListWithSchema(V1_EmailModelSchema),
|
|
259
|
+
faqUrl: optional(usingModelSchema(V1_DataProductLinkModelSchema)),
|
|
260
|
+
supportUrl: optional(usingModelSchema(V1_DataProductLinkModelSchema)),
|
|
261
|
+
website: optional(usingModelSchema(V1_DataProductLinkModelSchema)),
|
|
121
262
|
});
|
|
122
263
|
|
|
123
264
|
export const V1_dataProductModelSchema = createModelSchema(V1_DataProduct, {
|
|
124
265
|
_type: usingConstantValueSchema(V1_DATA_PRODUCT_ELEMENT_PROTOCOL_TYPE),
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
266
|
+
accessPointGroups: customList(
|
|
267
|
+
V1_serializeAccessPointGroup,
|
|
268
|
+
V1_deserializeAccessPointGroup,
|
|
269
|
+
),
|
|
270
|
+
coverageRegions: optionalCustomList(
|
|
271
|
+
(json) => (json as string).toLowerCase(),
|
|
272
|
+
(json) => (json as unknown as string).toUpperCase(),
|
|
273
|
+
),
|
|
274
|
+
|
|
275
|
+
deliveryFrequency: optionalCustom(
|
|
276
|
+
(json) => (json as string).toLowerCase(),
|
|
277
|
+
(json) => (json as string).toUpperCase(),
|
|
278
|
+
),
|
|
128
279
|
description: optional(primitive()),
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
() => undefined,
|
|
133
|
-
() => {
|
|
134
|
-
const randomIndex = Math.floor(Math.random() * 6);
|
|
135
|
-
switch (randomIndex) {
|
|
136
|
-
case 0:
|
|
137
|
-
return 'FaUser';
|
|
138
|
-
case 1:
|
|
139
|
-
return 'FaUserSecret';
|
|
140
|
-
case 2:
|
|
141
|
-
return 'FaDollarSign';
|
|
142
|
-
case 3:
|
|
143
|
-
return 'FaShoppingCart';
|
|
144
|
-
case 4:
|
|
145
|
-
return 'FaServer';
|
|
146
|
-
default:
|
|
147
|
-
return undefined;
|
|
148
|
-
}
|
|
149
|
-
},
|
|
280
|
+
icon: optionalCustom(
|
|
281
|
+
V1_serializeDataProductIcon,
|
|
282
|
+
V1_deserializeDataProductIcon,
|
|
150
283
|
),
|
|
151
|
-
|
|
284
|
+
name: primitive(),
|
|
285
|
+
package: primitive(),
|
|
286
|
+
stereotypes: customListWithSchema(V1_stereotypePtrModelSchema),
|
|
152
287
|
supportInfo: optionalCustomUsingModelSchema(V1_SupportInfoModelSchema),
|
|
288
|
+
taggedValues: customListWithSchema(V1_taggedValueModelSchema),
|
|
289
|
+
title: optional(primitive()),
|
|
153
290
|
});
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import {
|
|
18
18
|
customListWithSchema,
|
|
19
|
+
optionalCustomListWithSchema,
|
|
19
20
|
UnsupportedOperationError,
|
|
20
21
|
usingConstantValueSchema,
|
|
21
22
|
usingModelSchema,
|
|
@@ -42,6 +43,7 @@ import {
|
|
|
42
43
|
V1_ContractUserStatusResponse,
|
|
43
44
|
V1_LiteDataContractsResponse,
|
|
44
45
|
V1_LiteDataContract,
|
|
46
|
+
V1_DataContractApprovedUsersResponse,
|
|
45
47
|
} from '../../../lakehouse/entitlements/V1_ConsumerEntitlements.js';
|
|
46
48
|
import {
|
|
47
49
|
createModelSchema,
|
|
@@ -520,3 +522,8 @@ export const V1_entitlementsDataProductDetailsResponseToDataProductDetails = (
|
|
|
520
522
|
);
|
|
521
523
|
return response.dataProducts;
|
|
522
524
|
};
|
|
525
|
+
|
|
526
|
+
export const V1_DataContractApprovedUsersResponseModelSchema =
|
|
527
|
+
createModelSchema(V1_DataContractApprovedUsersResponse, {
|
|
528
|
+
approvedUsers: optionalCustomListWithSchema(V1_UserModelSchema),
|
|
529
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { createModelSchema, primitive } from 'serializr';
|
|
17
|
+
import { V1_Terminal } from '../../../model/packageableElements/dataProduct/V1_Terminal.js';
|
|
18
|
+
|
|
19
|
+
export const V1_TerminalModelSchema = createModelSchema(V1_Terminal, {
|
|
20
|
+
id: primitive(),
|
|
21
|
+
providerName: primitive(),
|
|
22
|
+
productName: primitive(),
|
|
23
|
+
category: primitive(),
|
|
24
|
+
vendorProfileId: primitive(),
|
|
25
|
+
modelName: primitive(),
|
|
26
|
+
description: primitive(),
|
|
27
|
+
applicationName: primitive(),
|
|
28
|
+
tieredPrice: primitive(),
|
|
29
|
+
price: primitive(),
|
|
30
|
+
totalFirmPrice: primitive(),
|
|
31
|
+
});
|
package/src/index.ts
CHANGED
|
@@ -51,6 +51,12 @@ export {
|
|
|
51
51
|
Measure,
|
|
52
52
|
Unit,
|
|
53
53
|
} from './graph/metamodel/pure/packageableElements/domain/Measure.js';
|
|
54
|
+
export type {
|
|
55
|
+
TDSRowDataType,
|
|
56
|
+
TDSResultCellDataType,
|
|
57
|
+
TDSResultCellData,
|
|
58
|
+
TDSResultCellCoordinate,
|
|
59
|
+
} from './graph-manager/action/execution/ExecutionResultHelper.js';
|
|
54
60
|
export {
|
|
55
61
|
EnumValueReference,
|
|
56
62
|
EnumValueExplicitReference,
|
|
@@ -185,6 +191,10 @@ export {
|
|
|
185
191
|
V1_LakehouseAccessPoint,
|
|
186
192
|
V1_AccessPoint,
|
|
187
193
|
V1_AccessPointGroup,
|
|
194
|
+
V1_DataProductIcon,
|
|
195
|
+
V1_DataProductDiagram,
|
|
196
|
+
V1_EmbeddedImageIcon,
|
|
197
|
+
V1_LibraryIcon,
|
|
188
198
|
} from './graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_DataProduct.js';
|
|
189
199
|
export {
|
|
190
200
|
V1_ExecuteInput,
|
|
@@ -322,6 +332,7 @@ export {
|
|
|
322
332
|
V1_AppDirNodeModelSchema,
|
|
323
333
|
V1_ContractUserStatusResponseModelSchema,
|
|
324
334
|
V1_createContractPayloadModelSchema,
|
|
335
|
+
V1_DataContractApprovedUsersResponseModelSchema,
|
|
325
336
|
V1_dataContractsResponseModelSchema,
|
|
326
337
|
V1_dataContractsResponseModelSchemaToContracts,
|
|
327
338
|
V1_DataProductOriginType,
|
|
@@ -703,6 +714,7 @@ export {
|
|
|
703
714
|
LakehouseTargetEnv,
|
|
704
715
|
AccessPointGroup,
|
|
705
716
|
AccessPoint,
|
|
717
|
+
DataProductLink,
|
|
706
718
|
} from './graph/metamodel/pure/dataProduct/DataProduct.js';
|
|
707
719
|
export * from './graph-manager/action/changeDetection/DataProductObserveHelper.js';
|
|
708
720
|
|
|
@@ -981,6 +993,8 @@ export { V1_DatabaseToModelGenerationInput } from './graph-manager/protocol/pure
|
|
|
981
993
|
export { V1_RelationalConnectionBuilder } from './graph-manager/protocol/pure/v1/engine/relational/V1_RelationalConnectionBuilder.js';
|
|
982
994
|
export * from './graph-manager/protocol/pure/extensions/DSL_FunctionActivator_PureProtocolProcessorPlugin_Extension.js';
|
|
983
995
|
export * from './graph-manager/protocol/pure/extensions/DSL_Lakehouse_PureProtocolProcessorPlugin_Extension.js';
|
|
996
|
+
export { V1_Terminal } from './graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_Terminal.js';
|
|
997
|
+
export { V1_TerminalModelSchema } from './graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TerminalSerializationHelper.js';
|
|
984
998
|
|
|
985
999
|
// ------------------------------------- TO BE MODULARIZED --------------------------------------------
|
|
986
1000
|
/**
|
package/tsconfig.json
CHANGED
|
@@ -580,6 +580,7 @@
|
|
|
580
580
|
"./src/graph-manager/protocol/pure/v1/model/packageableElements/connection/V1_PackageableConnection.ts",
|
|
581
581
|
"./src/graph-manager/protocol/pure/v1/model/packageableElements/data/V1_DataElement.ts",
|
|
582
582
|
"./src/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_DataProduct.ts",
|
|
583
|
+
"./src/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_Terminal.ts",
|
|
583
584
|
"./src/graph-manager/protocol/pure/v1/model/packageableElements/domain/V1_Association.ts",
|
|
584
585
|
"./src/graph-manager/protocol/pure/v1/model/packageableElements/domain/V1_Class.ts",
|
|
585
586
|
"./src/graph-manager/protocol/pure/v1/model/packageableElements/domain/V1_Constraint.ts",
|
|
@@ -889,6 +890,7 @@
|
|
|
889
890
|
"./src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.ts",
|
|
890
891
|
"./src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_StoreSerializationHelper.ts",
|
|
891
892
|
"./src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_SubscriptionSerializationHelper.ts",
|
|
893
|
+
"./src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TerminalSerializationHelper.ts",
|
|
892
894
|
"./src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TestSerializationHelper.ts",
|
|
893
895
|
"./src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TypeSerializationHelper.ts",
|
|
894
896
|
"./src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ValueSpecificationSerializer.ts",
|