@finos/legend-graph 32.3.37 → 32.3.39
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-manager/protocol/pure/v1/V1_PureGraphManager.d.ts +0 -11
- package/lib/graph-manager/protocol/pure/v1/V1_PureGraphManager.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_PureGraphManager.js +43 -76
- package/lib/graph-manager/protocol/pure/v1/V1_PureGraphManager.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_ConsumerEntitlements.d.ts +5 -24
- 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 +5 -24
- 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_CoreEntitlements.d.ts +50 -9
- package/lib/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_CoreEntitlements.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_CoreEntitlements.js +58 -10
- package/lib/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_CoreEntitlements.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_DataAccessRequest.d.ts +100 -0
- package/lib/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_DataAccessRequest.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_DataAccessRequest.js +108 -0
- package/lib/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_DataAccessRequest.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_EntitlementsDataProduct.d.ts +1 -16
- 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 +0 -14
- 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 +2 -1
- package/lib/graph-manager/protocol/pure/v1/lakehouse/helpers/V1_ConsumerEntitlementsUtils.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/lakehouse/subscriptions/V1_ConsumerSubscriptions.d.ts +5 -0
- package/lib/graph-manager/protocol/pure/v1/lakehouse/subscriptions/V1_ConsumerSubscriptions.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/lakehouse/subscriptions/V1_ConsumerSubscriptions.js +4 -0
- package/lib/graph-manager/protocol/pure/v1/lakehouse/subscriptions/V1_ConsumerSubscriptions.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PureProtocolSerialization.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PureProtocolSerialization.js +10 -14
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PureProtocolSerialization.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_IngestSerializationHelper.js +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_IngestSerializationHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_ConsumerEntitlementsSerializationHelper.d.ts +45 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_ConsumerEntitlementsSerializationHelper.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_ConsumerEntitlementsSerializationHelper.js +190 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_ConsumerEntitlementsSerializationHelper.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_CoreEntitlementsSerializationHelper.d.ts +41 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_CoreEntitlementsSerializationHelper.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_CoreEntitlementsSerializationHelper.js +141 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_CoreEntitlementsSerializationHelper.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_DataAccessRequestSerializationHelper.d.ts +34 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_DataAccessRequestSerializationHelper.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_DataAccessRequestSerializationHelper.js +136 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_DataAccessRequestSerializationHelper.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_EntitlementsDataProductSerializationHelper.d.ts +31 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_EntitlementsDataProductSerializationHelper.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_EntitlementsDataProductSerializationHelper.js +98 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_EntitlementsDataProductSerializationHelper.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_EntitlementsTasksSerializationHelper.d.ts +18 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_EntitlementsTasksSerializationHelper.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_EntitlementsTasksSerializationHelper.js +22 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_EntitlementsTasksSerializationHelper.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/{V1_SubscriptionSerializationHelper.d.ts → lakehouse/V1_SubscriptionSerializationHelper.d.ts} +2 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_SubscriptionSerializationHelper.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/{V1_SubscriptionSerializationHelper.js → lakehouse/V1_SubscriptionSerializationHelper.js} +6 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_SubscriptionSerializationHelper.js.map +1 -0
- package/lib/index.d.ts +11 -6
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +11 -6
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/package.json +1 -1
- package/src/graph-manager/protocol/pure/v1/V1_PureGraphManager.ts +413 -283
- package/src/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_ConsumerEntitlements.ts +9 -28
- package/src/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_CoreEntitlements.ts +76 -11
- package/src/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_DataAccessRequest.ts +126 -0
- package/src/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_EntitlementsDataProduct.ts +1 -20
- package/src/graph-manager/protocol/pure/v1/lakehouse/helpers/V1_ConsumerEntitlementsUtils.ts +4 -2
- package/src/graph-manager/protocol/pure/v1/lakehouse/subscriptions/V1_ConsumerSubscriptions.ts +7 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PureProtocolSerialization.ts +23 -21
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_IngestSerializationHelper.ts +1 -1
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_ConsumerEntitlementsSerializationHelper.ts +394 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_CoreEntitlementsSerializationHelper.ts +238 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_DataAccessRequestSerializationHelper.ts +261 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_EntitlementsDataProductSerializationHelper.ts +179 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/lakehouse/V1_EntitlementsTasksSerializationHelper.ts +26 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/{V1_SubscriptionSerializationHelper.ts → lakehouse/V1_SubscriptionSerializationHelper.ts} +11 -1
- package/src/index.ts +11 -95
- package/tsconfig.json +7 -2
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_EntitlementSerializationHelper.d.ts +0 -77
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_EntitlementSerializationHelper.d.ts.map +0 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_EntitlementSerializationHelper.js +0 -376
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_EntitlementSerializationHelper.js.map +0 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_SubscriptionSerializationHelper.d.ts.map +0 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_SubscriptionSerializationHelper.js.map +0 -1
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_EntitlementSerializationHelper.ts +0 -701
|
@@ -378,12 +378,6 @@ import {
|
|
|
378
378
|
} from './engine/dev-metadata/V1_DevMetadataPushRequest.js';
|
|
379
379
|
import type { MetadataRequestOptions } from '../../../action/dev-metadata/MetadataRequestOptions.js';
|
|
380
380
|
|
|
381
|
-
/**
|
|
382
|
-
* Number of elements to process synchronously before yielding to the event loop.
|
|
383
|
-
* This avoids per-element setTimeout overhead while keeping the UI responsive.
|
|
384
|
-
*/
|
|
385
|
-
const GRAPH_BUILDER_BATCH_SIZE = 100;
|
|
386
|
-
|
|
387
381
|
class V1_PureModelContextDataIndex {
|
|
388
382
|
elements: V1_PackageableElement[] = [];
|
|
389
383
|
nativeElements: V1_PackageableElement[] = [];
|
|
@@ -1278,37 +1272,46 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
|
|
|
1278
1272
|
graph.allElements.map((el) => el.path),
|
|
1279
1273
|
);
|
|
1280
1274
|
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1275
|
+
await Promise.all(
|
|
1276
|
+
inputs.flatMap(async (input) => {
|
|
1277
|
+
// create the package cache
|
|
1278
|
+
const packageCache = new Map<string, Package>();
|
|
1279
|
+
await Promise.all(
|
|
1280
|
+
input.data.nativeElements.map((element) => {
|
|
1281
|
+
return this.visitWithGraphBuilderErrorHandling(
|
|
1282
|
+
element,
|
|
1283
|
+
new V1_ElementFirstPassBuilder(
|
|
1284
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1285
|
+
packageCache,
|
|
1286
|
+
elementPathCache,
|
|
1287
|
+
),
|
|
1288
|
+
);
|
|
1289
|
+
}),
|
|
1290
1290
|
);
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1291
|
+
await Promise.all(
|
|
1292
|
+
this.graphBuilderExtensions.sortedExtraElementBuilders.flatMap(
|
|
1293
|
+
(builder) =>
|
|
1294
|
+
(input.data.otherElementsByBuilder.get(builder) ?? []).map(
|
|
1295
|
+
(element) => {
|
|
1296
|
+
return this.visitWithGraphBuilderErrorHandling(
|
|
1297
|
+
element,
|
|
1298
|
+
new V1_ElementFirstPassBuilder(
|
|
1299
|
+
this.getBuilderContext(
|
|
1300
|
+
graph,
|
|
1301
|
+
input.model,
|
|
1302
|
+
element,
|
|
1303
|
+
options,
|
|
1304
|
+
),
|
|
1305
|
+
packageCache,
|
|
1306
|
+
elementPathCache,
|
|
1307
|
+
),
|
|
1308
|
+
);
|
|
1309
|
+
},
|
|
1310
|
+
),
|
|
1311
|
+
),
|
|
1304
1312
|
);
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
element,
|
|
1308
|
-
createFirstPassBuilder(element),
|
|
1309
|
-
),
|
|
1310
|
-
);
|
|
1311
|
-
}
|
|
1313
|
+
}),
|
|
1314
|
+
);
|
|
1312
1315
|
}
|
|
1313
1316
|
|
|
1314
1317
|
private async buildTypes(
|
|
@@ -1317,78 +1320,128 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
|
|
|
1317
1320
|
options?: GraphBuilderOptions,
|
|
1318
1321
|
): Promise<void> {
|
|
1319
1322
|
// Second pass
|
|
1320
|
-
await
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1323
|
+
await Promise.all(
|
|
1324
|
+
inputs.flatMap((input) =>
|
|
1325
|
+
input.data.profiles.map((element) =>
|
|
1326
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1327
|
+
element,
|
|
1328
|
+
new V1_ElementSecondPassBuilder(
|
|
1329
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1330
|
+
),
|
|
1331
|
+
),
|
|
1332
|
+
),
|
|
1333
|
+
),
|
|
1326
1334
|
);
|
|
1327
|
-
await
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1335
|
+
await Promise.all(
|
|
1336
|
+
inputs.flatMap((input) =>
|
|
1337
|
+
input.data.classes.map((element) =>
|
|
1338
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1339
|
+
element,
|
|
1340
|
+
new V1_ElementSecondPassBuilder(
|
|
1341
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1342
|
+
),
|
|
1343
|
+
),
|
|
1344
|
+
),
|
|
1345
|
+
),
|
|
1333
1346
|
);
|
|
1334
|
-
await
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1347
|
+
await Promise.all(
|
|
1348
|
+
inputs.flatMap((input) =>
|
|
1349
|
+
input.data.enumerations.map((element) =>
|
|
1350
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1351
|
+
element,
|
|
1352
|
+
new V1_ElementSecondPassBuilder(
|
|
1353
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1354
|
+
),
|
|
1355
|
+
),
|
|
1356
|
+
),
|
|
1357
|
+
),
|
|
1340
1358
|
);
|
|
1341
|
-
await
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1359
|
+
await Promise.all(
|
|
1360
|
+
inputs.flatMap((input) =>
|
|
1361
|
+
input.data.measures.map((element) =>
|
|
1362
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1363
|
+
element,
|
|
1364
|
+
new V1_ElementSecondPassBuilder(
|
|
1365
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1366
|
+
),
|
|
1367
|
+
),
|
|
1368
|
+
),
|
|
1369
|
+
),
|
|
1347
1370
|
);
|
|
1348
|
-
await
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1371
|
+
await Promise.all(
|
|
1372
|
+
inputs.flatMap((input) =>
|
|
1373
|
+
input.data.functions.map((element) =>
|
|
1374
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1375
|
+
element,
|
|
1376
|
+
new V1_ElementSecondPassBuilder(
|
|
1377
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1378
|
+
),
|
|
1379
|
+
),
|
|
1380
|
+
),
|
|
1381
|
+
),
|
|
1354
1382
|
);
|
|
1355
1383
|
// Third pass
|
|
1356
|
-
await
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1384
|
+
await Promise.all(
|
|
1385
|
+
inputs.flatMap((input) =>
|
|
1386
|
+
input.data.classes.map((element) =>
|
|
1387
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1388
|
+
element,
|
|
1389
|
+
new V1_ElementThirdPassBuilder(
|
|
1390
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1391
|
+
),
|
|
1392
|
+
),
|
|
1393
|
+
),
|
|
1394
|
+
),
|
|
1362
1395
|
);
|
|
1363
|
-
await
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1396
|
+
await Promise.all(
|
|
1397
|
+
inputs.flatMap((input) =>
|
|
1398
|
+
input.data.associations.map((element) =>
|
|
1399
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1400
|
+
element,
|
|
1401
|
+
new V1_ElementThirdPassBuilder(
|
|
1402
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1403
|
+
),
|
|
1404
|
+
),
|
|
1405
|
+
),
|
|
1406
|
+
),
|
|
1369
1407
|
);
|
|
1370
1408
|
// Fourth Pass
|
|
1371
|
-
await
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1409
|
+
await Promise.all(
|
|
1410
|
+
inputs.flatMap((input) =>
|
|
1411
|
+
input.data.classes.map((element) =>
|
|
1412
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1413
|
+
element,
|
|
1414
|
+
new V1_ElementFourthPassBuilder(
|
|
1415
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1416
|
+
),
|
|
1417
|
+
),
|
|
1418
|
+
),
|
|
1419
|
+
),
|
|
1377
1420
|
);
|
|
1378
|
-
await
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1421
|
+
await Promise.all(
|
|
1422
|
+
inputs.flatMap((input) =>
|
|
1423
|
+
input.data.associations.map((element) =>
|
|
1424
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1425
|
+
element,
|
|
1426
|
+
new V1_ElementFourthPassBuilder(
|
|
1427
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1428
|
+
),
|
|
1429
|
+
),
|
|
1430
|
+
),
|
|
1431
|
+
),
|
|
1384
1432
|
);
|
|
1385
1433
|
// Fifth pass
|
|
1386
|
-
await
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1434
|
+
await Promise.all(
|
|
1435
|
+
inputs.flatMap((input) =>
|
|
1436
|
+
input.data.classes.map((element) =>
|
|
1437
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1438
|
+
element,
|
|
1439
|
+
new V1_ElementFifthPassBuilder(
|
|
1440
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1441
|
+
),
|
|
1442
|
+
),
|
|
1443
|
+
),
|
|
1444
|
+
),
|
|
1392
1445
|
);
|
|
1393
1446
|
}
|
|
1394
1447
|
|
|
@@ -1397,12 +1450,17 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
|
|
|
1397
1450
|
inputs: V1_PureGraphBuilderInput[],
|
|
1398
1451
|
options?: GraphBuilderOptions,
|
|
1399
1452
|
): Promise<void> {
|
|
1400
|
-
await
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1453
|
+
await Promise.all(
|
|
1454
|
+
inputs.flatMap((input) =>
|
|
1455
|
+
input.data.functionActivators.map((element) =>
|
|
1456
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1457
|
+
element,
|
|
1458
|
+
new V1_ElementSecondPassBuilder(
|
|
1459
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1460
|
+
),
|
|
1461
|
+
),
|
|
1462
|
+
),
|
|
1463
|
+
),
|
|
1406
1464
|
);
|
|
1407
1465
|
}
|
|
1408
1466
|
|
|
@@ -1411,33 +1469,53 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
|
|
|
1411
1469
|
inputs: V1_PureGraphBuilderInput[],
|
|
1412
1470
|
options?: GraphBuilderOptions,
|
|
1413
1471
|
): Promise<void> {
|
|
1414
|
-
await
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1472
|
+
await Promise.all(
|
|
1473
|
+
inputs.flatMap((input) =>
|
|
1474
|
+
input.data.stores.map((element) =>
|
|
1475
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1476
|
+
element,
|
|
1477
|
+
new V1_ElementSecondPassBuilder(
|
|
1478
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1479
|
+
),
|
|
1480
|
+
),
|
|
1481
|
+
),
|
|
1482
|
+
),
|
|
1420
1483
|
);
|
|
1421
|
-
await
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1484
|
+
await Promise.all(
|
|
1485
|
+
inputs.flatMap((input) =>
|
|
1486
|
+
input.data.stores.map((element) =>
|
|
1487
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1488
|
+
element,
|
|
1489
|
+
new V1_ElementThirdPassBuilder(
|
|
1490
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1491
|
+
),
|
|
1492
|
+
),
|
|
1493
|
+
),
|
|
1494
|
+
),
|
|
1427
1495
|
);
|
|
1428
|
-
await
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1496
|
+
await Promise.all(
|
|
1497
|
+
inputs.flatMap((input) =>
|
|
1498
|
+
input.data.stores.map((element) =>
|
|
1499
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1500
|
+
element,
|
|
1501
|
+
new V1_ElementFourthPassBuilder(
|
|
1502
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1503
|
+
),
|
|
1504
|
+
),
|
|
1505
|
+
),
|
|
1506
|
+
),
|
|
1434
1507
|
);
|
|
1435
|
-
await
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1508
|
+
await Promise.all(
|
|
1509
|
+
inputs.flatMap((input) =>
|
|
1510
|
+
input.data.stores.map((element) =>
|
|
1511
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1512
|
+
element,
|
|
1513
|
+
new V1_ElementFifthPassBuilder(
|
|
1514
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1515
|
+
),
|
|
1516
|
+
),
|
|
1517
|
+
),
|
|
1518
|
+
),
|
|
1441
1519
|
);
|
|
1442
1520
|
}
|
|
1443
1521
|
|
|
@@ -1446,26 +1524,41 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
|
|
|
1446
1524
|
inputs: V1_PureGraphBuilderInput[],
|
|
1447
1525
|
options?: GraphBuilderOptions,
|
|
1448
1526
|
): Promise<void> {
|
|
1449
|
-
await
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1527
|
+
await Promise.all(
|
|
1528
|
+
inputs.flatMap((input) =>
|
|
1529
|
+
input.data.mappings.map((element) =>
|
|
1530
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1531
|
+
element,
|
|
1532
|
+
new V1_ElementSecondPassBuilder(
|
|
1533
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1534
|
+
),
|
|
1535
|
+
),
|
|
1536
|
+
),
|
|
1537
|
+
),
|
|
1455
1538
|
);
|
|
1456
|
-
await
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1539
|
+
await Promise.all(
|
|
1540
|
+
inputs.flatMap((input) =>
|
|
1541
|
+
input.data.mappings.map((element) =>
|
|
1542
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1543
|
+
element,
|
|
1544
|
+
new V1_ElementThirdPassBuilder(
|
|
1545
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1546
|
+
),
|
|
1547
|
+
),
|
|
1548
|
+
),
|
|
1549
|
+
),
|
|
1462
1550
|
);
|
|
1463
|
-
await
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1551
|
+
await Promise.all(
|
|
1552
|
+
inputs.flatMap((input) =>
|
|
1553
|
+
input.data.mappings.map((element) =>
|
|
1554
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1555
|
+
element,
|
|
1556
|
+
new V1_ElementFourthPassBuilder(
|
|
1557
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1558
|
+
),
|
|
1559
|
+
),
|
|
1560
|
+
),
|
|
1561
|
+
),
|
|
1469
1562
|
);
|
|
1470
1563
|
}
|
|
1471
1564
|
|
|
@@ -1475,19 +1568,29 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
|
|
|
1475
1568
|
options?: GraphBuilderOptions,
|
|
1476
1569
|
): Promise<void> {
|
|
1477
1570
|
// NOTE: connections must be built before runtimes
|
|
1478
|
-
await
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1571
|
+
await Promise.all(
|
|
1572
|
+
inputs.flatMap((input) =>
|
|
1573
|
+
input.data.connections.map((element) =>
|
|
1574
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1575
|
+
element,
|
|
1576
|
+
new V1_ElementSecondPassBuilder(
|
|
1577
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1578
|
+
),
|
|
1579
|
+
),
|
|
1580
|
+
),
|
|
1581
|
+
),
|
|
1484
1582
|
);
|
|
1485
|
-
await
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1583
|
+
await Promise.all(
|
|
1584
|
+
inputs.flatMap((input) =>
|
|
1585
|
+
input.data.runtimes.map((element) =>
|
|
1586
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1587
|
+
element,
|
|
1588
|
+
new V1_ElementSecondPassBuilder(
|
|
1589
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1590
|
+
),
|
|
1591
|
+
),
|
|
1592
|
+
),
|
|
1593
|
+
),
|
|
1491
1594
|
);
|
|
1492
1595
|
}
|
|
1493
1596
|
|
|
@@ -1496,19 +1599,29 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
|
|
|
1496
1599
|
inputs: V1_PureGraphBuilderInput[],
|
|
1497
1600
|
options?: GraphBuilderOptions,
|
|
1498
1601
|
): Promise<void> {
|
|
1499
|
-
await
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1602
|
+
await Promise.all(
|
|
1603
|
+
inputs.flatMap((input) =>
|
|
1604
|
+
input.data.services.map((element) =>
|
|
1605
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1606
|
+
element,
|
|
1607
|
+
new V1_ElementSecondPassBuilder(
|
|
1608
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1609
|
+
),
|
|
1610
|
+
),
|
|
1611
|
+
),
|
|
1612
|
+
),
|
|
1505
1613
|
);
|
|
1506
|
-
await
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1614
|
+
await Promise.all(
|
|
1615
|
+
inputs.flatMap((input) =>
|
|
1616
|
+
input.data.executionEnvironments.map((element) =>
|
|
1617
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1618
|
+
element,
|
|
1619
|
+
new V1_ElementSecondPassBuilder(
|
|
1620
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1621
|
+
),
|
|
1622
|
+
),
|
|
1623
|
+
),
|
|
1624
|
+
),
|
|
1512
1625
|
);
|
|
1513
1626
|
}
|
|
1514
1627
|
|
|
@@ -1517,12 +1630,17 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
|
|
|
1517
1630
|
inputs: V1_PureGraphBuilderInput[],
|
|
1518
1631
|
options?: GraphBuilderOptions,
|
|
1519
1632
|
): Promise<void> {
|
|
1520
|
-
await
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1633
|
+
await Promise.all(
|
|
1634
|
+
inputs.flatMap((input) =>
|
|
1635
|
+
input.data.dataElements.map((element) =>
|
|
1636
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1637
|
+
element,
|
|
1638
|
+
new V1_ElementSecondPassBuilder(
|
|
1639
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1640
|
+
),
|
|
1641
|
+
),
|
|
1642
|
+
),
|
|
1643
|
+
),
|
|
1526
1644
|
);
|
|
1527
1645
|
}
|
|
1528
1646
|
|
|
@@ -1531,12 +1649,17 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
|
|
|
1531
1649
|
inputs: V1_PureGraphBuilderInput[],
|
|
1532
1650
|
options?: GraphBuilderOptions,
|
|
1533
1651
|
): Promise<void> {
|
|
1534
|
-
await
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1652
|
+
await Promise.all(
|
|
1653
|
+
inputs.flatMap((input) =>
|
|
1654
|
+
input.data.products.map((element) =>
|
|
1655
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1656
|
+
element,
|
|
1657
|
+
new V1_ElementSecondPassBuilder(
|
|
1658
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1659
|
+
),
|
|
1660
|
+
),
|
|
1661
|
+
),
|
|
1662
|
+
),
|
|
1540
1663
|
);
|
|
1541
1664
|
}
|
|
1542
1665
|
|
|
@@ -1545,12 +1668,17 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
|
|
|
1545
1668
|
inputs: V1_PureGraphBuilderInput[],
|
|
1546
1669
|
options?: GraphBuilderOptions,
|
|
1547
1670
|
): Promise<void> {
|
|
1548
|
-
await
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1671
|
+
await Promise.all(
|
|
1672
|
+
inputs.flatMap((input) =>
|
|
1673
|
+
input.data.fileGenerations.map((element) =>
|
|
1674
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1675
|
+
element,
|
|
1676
|
+
new V1_ElementSecondPassBuilder(
|
|
1677
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1678
|
+
),
|
|
1679
|
+
),
|
|
1680
|
+
),
|
|
1681
|
+
),
|
|
1554
1682
|
);
|
|
1555
1683
|
}
|
|
1556
1684
|
|
|
@@ -1559,12 +1687,17 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
|
|
|
1559
1687
|
inputs: V1_PureGraphBuilderInput[],
|
|
1560
1688
|
options?: GraphBuilderOptions,
|
|
1561
1689
|
): Promise<void> {
|
|
1562
|
-
await
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1690
|
+
await Promise.all(
|
|
1691
|
+
inputs.flatMap((input) =>
|
|
1692
|
+
input.data.generationSpecifications.map((element) =>
|
|
1693
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1694
|
+
element,
|
|
1695
|
+
new V1_ElementSecondPassBuilder(
|
|
1696
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1697
|
+
),
|
|
1698
|
+
),
|
|
1699
|
+
),
|
|
1700
|
+
),
|
|
1568
1701
|
);
|
|
1569
1702
|
}
|
|
1570
1703
|
|
|
@@ -1573,12 +1706,17 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
|
|
|
1573
1706
|
inputs: V1_PureGraphBuilderInput[],
|
|
1574
1707
|
options?: GraphBuilderOptions,
|
|
1575
1708
|
): Promise<void> {
|
|
1576
|
-
await
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1709
|
+
await Promise.all(
|
|
1710
|
+
inputs.flatMap((input) =>
|
|
1711
|
+
input.data.sectionIndices.map((element) =>
|
|
1712
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1713
|
+
element,
|
|
1714
|
+
new V1_ElementSecondPassBuilder(
|
|
1715
|
+
this.getBuilderContext(graph, input.model, element, options),
|
|
1716
|
+
),
|
|
1717
|
+
),
|
|
1718
|
+
),
|
|
1719
|
+
),
|
|
1582
1720
|
);
|
|
1583
1721
|
}
|
|
1584
1722
|
|
|
@@ -1587,90 +1725,82 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
|
|
|
1587
1725
|
inputs: V1_PureGraphBuilderInput[],
|
|
1588
1726
|
options?: GraphBuilderOptions,
|
|
1589
1727
|
): Promise<void> {
|
|
1590
|
-
|
|
1591
|
-
.sortedExtraElementBuilders
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
})),
|
|
1667
|
-
);
|
|
1668
|
-
await this.runBatchedLoop(allItems, (item) =>
|
|
1669
|
-
this.visitWithGraphBuilderErrorHandling(
|
|
1670
|
-
item.element,
|
|
1671
|
-
createVisitor(
|
|
1672
|
-
this.getBuilderContext(graph, item.model, item.element, options),
|
|
1673
|
-
),
|
|
1728
|
+
await Promise.all(
|
|
1729
|
+
this.graphBuilderExtensions.sortedExtraElementBuilders.map(
|
|
1730
|
+
async (builder) => {
|
|
1731
|
+
await Promise.all(
|
|
1732
|
+
inputs.flatMap((input) =>
|
|
1733
|
+
(input.data.otherElementsByBuilder.get(builder) ?? []).map(
|
|
1734
|
+
(element) =>
|
|
1735
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1736
|
+
element,
|
|
1737
|
+
new V1_ElementSecondPassBuilder(
|
|
1738
|
+
this.getBuilderContext(
|
|
1739
|
+
graph,
|
|
1740
|
+
input.model,
|
|
1741
|
+
element,
|
|
1742
|
+
options,
|
|
1743
|
+
),
|
|
1744
|
+
),
|
|
1745
|
+
),
|
|
1746
|
+
),
|
|
1747
|
+
),
|
|
1748
|
+
);
|
|
1749
|
+
await Promise.all(
|
|
1750
|
+
inputs.flatMap((input) =>
|
|
1751
|
+
(input.data.otherElementsByBuilder.get(builder) ?? []).map(
|
|
1752
|
+
(element) =>
|
|
1753
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1754
|
+
element,
|
|
1755
|
+
new V1_ElementThirdPassBuilder(
|
|
1756
|
+
this.getBuilderContext(
|
|
1757
|
+
graph,
|
|
1758
|
+
input.model,
|
|
1759
|
+
element,
|
|
1760
|
+
options,
|
|
1761
|
+
),
|
|
1762
|
+
),
|
|
1763
|
+
),
|
|
1764
|
+
),
|
|
1765
|
+
),
|
|
1766
|
+
);
|
|
1767
|
+
await Promise.all(
|
|
1768
|
+
inputs.flatMap((input) =>
|
|
1769
|
+
(input.data.otherElementsByBuilder.get(builder) ?? []).map(
|
|
1770
|
+
(element) =>
|
|
1771
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1772
|
+
element,
|
|
1773
|
+
new V1_ElementFourthPassBuilder(
|
|
1774
|
+
this.getBuilderContext(
|
|
1775
|
+
graph,
|
|
1776
|
+
input.model,
|
|
1777
|
+
element,
|
|
1778
|
+
options,
|
|
1779
|
+
),
|
|
1780
|
+
),
|
|
1781
|
+
),
|
|
1782
|
+
),
|
|
1783
|
+
),
|
|
1784
|
+
);
|
|
1785
|
+
await Promise.all(
|
|
1786
|
+
inputs.flatMap((input) =>
|
|
1787
|
+
(input.data.otherElementsByBuilder.get(builder) ?? []).map(
|
|
1788
|
+
(element) =>
|
|
1789
|
+
this.visitWithGraphBuilderErrorHandling(
|
|
1790
|
+
element,
|
|
1791
|
+
new V1_ElementFifthPassBuilder(
|
|
1792
|
+
this.getBuilderContext(
|
|
1793
|
+
graph,
|
|
1794
|
+
input.model,
|
|
1795
|
+
element,
|
|
1796
|
+
options,
|
|
1797
|
+
),
|
|
1798
|
+
),
|
|
1799
|
+
),
|
|
1800
|
+
),
|
|
1801
|
+
),
|
|
1802
|
+
);
|
|
1803
|
+
},
|
|
1674
1804
|
),
|
|
1675
1805
|
);
|
|
1676
1806
|
}
|
|
@@ -1678,9 +1808,9 @@ export class V1_PureGraphManager extends AbstractPureGraphManager {
|
|
|
1678
1808
|
private visitWithGraphBuilderErrorHandling<T>(
|
|
1679
1809
|
element: V1_PackageableElement,
|
|
1680
1810
|
visitor: V1_PackageableElementVisitor<T>,
|
|
1681
|
-
): T {
|
|
1811
|
+
): Promise<T> {
|
|
1682
1812
|
try {
|
|
1683
|
-
return element.accept_PackageableElementVisitor(visitor);
|
|
1813
|
+
return promisify(() => element.accept_PackageableElementVisitor(visitor));
|
|
1684
1814
|
} catch (err) {
|
|
1685
1815
|
assertErrorThrown(err);
|
|
1686
1816
|
const error =
|