@nfdi4plants/arctrl 3.0.0-beta.7 → 3.0.0-beta.8
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/dist/ts/ts/ARC.d.ts +5 -1
- package/dist/ts/ts/ARC.d.ts.map +1 -1
- package/dist/ts/ts/ARC.js +86 -21
- package/dist/ts/ts/Contract/ArcWorkflow.d.ts +1 -1
- package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcWorkflow.js +4 -5
- package/dist/ts/ts/Core/ArcTypes.d.ts +57 -92
- package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
- package/dist/ts/ts/Core/ArcTypes.js +396 -307
- package/dist/ts/ts/Core/IdentifierSetters.d.ts.map +1 -1
- package/dist/ts/ts/Core/IdentifierSetters.js +1 -2
- package/dist/ts/ts/Json/Workflow.d.ts +1 -1
- package/dist/ts/ts/Json/Workflow.d.ts.map +1 -1
- package/dist/ts/ts/Json/Workflow.js +17 -17
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +7 -6
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +23 -13
- package/package.json +1 -1
|
@@ -1300,30 +1300,364 @@ class ArcWorkflow {
|
|
|
1300
1300
|
this["comments@1166"] = defaultArg(comments, []);
|
|
1301
1301
|
this.staticHash = 0;
|
|
1302
1302
|
}
|
|
1303
|
+
get Identifier() {
|
|
1304
|
+
const this$ = this;
|
|
1305
|
+
return this$["identifier@1151"];
|
|
1306
|
+
}
|
|
1307
|
+
set Identifier(i) {
|
|
1308
|
+
const this$ = this;
|
|
1309
|
+
this$["identifier@1151"] = i;
|
|
1310
|
+
}
|
|
1311
|
+
get Investigation() {
|
|
1312
|
+
const this$ = this;
|
|
1313
|
+
return unwrap(this$.investigation);
|
|
1314
|
+
}
|
|
1315
|
+
set Investigation(a) {
|
|
1316
|
+
const this$ = this;
|
|
1317
|
+
this$.investigation = a;
|
|
1318
|
+
}
|
|
1319
|
+
get Title() {
|
|
1320
|
+
const this$ = this;
|
|
1321
|
+
return unwrap(this$["title@1156"]);
|
|
1322
|
+
}
|
|
1323
|
+
set Title(t) {
|
|
1324
|
+
const this$ = this;
|
|
1325
|
+
this$["title@1156"] = t;
|
|
1326
|
+
}
|
|
1327
|
+
get Description() {
|
|
1328
|
+
const this$ = this;
|
|
1329
|
+
return unwrap(this$["description@1157"]);
|
|
1330
|
+
}
|
|
1331
|
+
set Description(d) {
|
|
1332
|
+
const this$ = this;
|
|
1333
|
+
this$["description@1157"] = d;
|
|
1334
|
+
}
|
|
1335
|
+
get SubWorkflowIdentifiers() {
|
|
1336
|
+
const this$ = this;
|
|
1337
|
+
return this$["subWorkflowIdentifiers@1158"];
|
|
1338
|
+
}
|
|
1339
|
+
set SubWorkflowIdentifiers(s) {
|
|
1340
|
+
const this$ = this;
|
|
1341
|
+
this$["subWorkflowIdentifiers@1158"] = s;
|
|
1342
|
+
}
|
|
1343
|
+
get WorkflowType() {
|
|
1344
|
+
const this$ = this;
|
|
1345
|
+
return unwrap(this$["workflowType@1159"]);
|
|
1346
|
+
}
|
|
1347
|
+
set WorkflowType(w) {
|
|
1348
|
+
const this$ = this;
|
|
1349
|
+
this$["workflowType@1159"] = w;
|
|
1350
|
+
}
|
|
1351
|
+
get URI() {
|
|
1352
|
+
const this$ = this;
|
|
1353
|
+
return unwrap(this$["uri@1160"]);
|
|
1354
|
+
}
|
|
1355
|
+
set URI(u) {
|
|
1356
|
+
const this$ = this;
|
|
1357
|
+
this$["uri@1160"] = u;
|
|
1358
|
+
}
|
|
1359
|
+
get Version() {
|
|
1360
|
+
const this$ = this;
|
|
1361
|
+
return unwrap(this$["version@1161"]);
|
|
1362
|
+
}
|
|
1363
|
+
set Version(v) {
|
|
1364
|
+
const this$ = this;
|
|
1365
|
+
this$["version@1161"] = v;
|
|
1366
|
+
}
|
|
1367
|
+
get Parameters() {
|
|
1368
|
+
const this$ = this;
|
|
1369
|
+
return this$["parameters@1162"];
|
|
1370
|
+
}
|
|
1371
|
+
set Parameters(p) {
|
|
1372
|
+
const this$ = this;
|
|
1373
|
+
this$["parameters@1162"] = p;
|
|
1374
|
+
}
|
|
1375
|
+
get Components() {
|
|
1376
|
+
const this$ = this;
|
|
1377
|
+
return this$["components@1163"];
|
|
1378
|
+
}
|
|
1379
|
+
set Components(c) {
|
|
1380
|
+
const this$ = this;
|
|
1381
|
+
this$["components@1163"] = c;
|
|
1382
|
+
}
|
|
1383
|
+
get DataMap() {
|
|
1384
|
+
const this$ = this;
|
|
1385
|
+
return unwrap(this$.dataMap);
|
|
1386
|
+
}
|
|
1387
|
+
set DataMap(dm) {
|
|
1388
|
+
const this$ = this;
|
|
1389
|
+
this$.dataMap = dm;
|
|
1390
|
+
}
|
|
1391
|
+
get Contacts() {
|
|
1392
|
+
const this$ = this;
|
|
1393
|
+
return this$["contacts@1165"];
|
|
1394
|
+
}
|
|
1395
|
+
set Contacts(c) {
|
|
1396
|
+
const this$ = this;
|
|
1397
|
+
this$["contacts@1165"] = c;
|
|
1398
|
+
}
|
|
1399
|
+
get Comments() {
|
|
1400
|
+
const this$ = this;
|
|
1401
|
+
return this$["comments@1166"];
|
|
1402
|
+
}
|
|
1403
|
+
set Comments(c) {
|
|
1404
|
+
const this$ = this;
|
|
1405
|
+
this$["comments@1166"] = c;
|
|
1406
|
+
}
|
|
1407
|
+
get StaticHash() {
|
|
1408
|
+
const this$ = this;
|
|
1409
|
+
return this$.staticHash | 0;
|
|
1410
|
+
}
|
|
1411
|
+
set StaticHash(s) {
|
|
1412
|
+
const this$ = this;
|
|
1413
|
+
this$.staticHash = s | 0;
|
|
1414
|
+
}
|
|
1415
|
+
static init(identifier) {
|
|
1416
|
+
return new ArcWorkflow(identifier);
|
|
1417
|
+
}
|
|
1418
|
+
static create(identifier, title, description, workflowType, uri, version, subWorkflowIdentifiers, parameters, components, datamap, contacts, comments) {
|
|
1419
|
+
return new ArcWorkflow(identifier, unwrap(title), unwrap(description), unwrap(workflowType), unwrap(uri), unwrap(version), unwrap(subWorkflowIdentifiers), unwrap(parameters), unwrap(components), unwrap(datamap), unwrap(contacts), unwrap(comments));
|
|
1420
|
+
}
|
|
1421
|
+
static make(identifier, title, description, workflowType, uri, version, subWorkflowIdentifiers, parameters, components, datamap, contacts, comments) {
|
|
1422
|
+
return new ArcWorkflow(identifier, unwrap(title), unwrap(description), unwrap(workflowType), unwrap(uri), unwrap(version), subWorkflowIdentifiers, parameters, components, unwrap(datamap), contacts, comments);
|
|
1423
|
+
}
|
|
1424
|
+
static get FileName() {
|
|
1425
|
+
return "isa.run.xlsx";
|
|
1426
|
+
}
|
|
1427
|
+
get SubWorkflowIdentifiersCount() {
|
|
1428
|
+
const this$ = this;
|
|
1429
|
+
return this$.SubWorkflowIdentifiers.length | 0;
|
|
1430
|
+
}
|
|
1431
|
+
get SubWorkflowCount() {
|
|
1432
|
+
const this$ = this;
|
|
1433
|
+
return this$.SubWorkflows.length | 0;
|
|
1434
|
+
}
|
|
1435
|
+
get SubWorkflows() {
|
|
1436
|
+
const this$ = this;
|
|
1437
|
+
let inv;
|
|
1438
|
+
const investigation = this$.Investigation;
|
|
1439
|
+
if (investigation != null) {
|
|
1440
|
+
inv = value(investigation);
|
|
1441
|
+
} else {
|
|
1442
|
+
throw new Error("Cannot execute this function. Object is not part of ArcInvestigation.");
|
|
1443
|
+
}
|
|
1444
|
+
const collection = choose((workflowIdentifier) => inv.TryGetWorkflow(workflowIdentifier), this$.SubWorkflowIdentifiers);
|
|
1445
|
+
return Array.from(collection);
|
|
1446
|
+
}
|
|
1447
|
+
get VacantSubWorkflowIdentifiers() {
|
|
1448
|
+
const this$ = this;
|
|
1449
|
+
let inv;
|
|
1450
|
+
const investigation = this$.Investigation;
|
|
1451
|
+
if (investigation != null) {
|
|
1452
|
+
inv = value(investigation);
|
|
1453
|
+
} else {
|
|
1454
|
+
throw new Error("Cannot execute this function. Object is not part of ArcInvestigation.");
|
|
1455
|
+
}
|
|
1456
|
+
const collection = filter((arg) => !inv.ContainsWorkflow(arg), this$.SubWorkflowIdentifiers);
|
|
1457
|
+
return Array.from(collection);
|
|
1458
|
+
}
|
|
1459
|
+
AddSubWorkflow(subWorkflow) {
|
|
1460
|
+
const this$ = this;
|
|
1461
|
+
let inv;
|
|
1462
|
+
const investigation = this$.Investigation;
|
|
1463
|
+
if (investigation != null) {
|
|
1464
|
+
inv = value(investigation);
|
|
1465
|
+
} else {
|
|
1466
|
+
throw new Error("Cannot execute this function. Object is not part of ArcInvestigation.");
|
|
1467
|
+
}
|
|
1468
|
+
inv.AddWorkflow(subWorkflow);
|
|
1469
|
+
}
|
|
1470
|
+
static addSubWorkflow(subWorkflow) {
|
|
1471
|
+
return (workflow) => {
|
|
1472
|
+
const newWorkflow = workflow.Copy();
|
|
1473
|
+
newWorkflow.AddSubWorkflow(subWorkflow);
|
|
1474
|
+
return newWorkflow;
|
|
1475
|
+
};
|
|
1476
|
+
}
|
|
1477
|
+
InitSubWorkflow(subWorkflowIdentifier) {
|
|
1478
|
+
const this$ = this;
|
|
1479
|
+
const subWorkflow = new ArcWorkflow(subWorkflowIdentifier);
|
|
1480
|
+
this$.AddSubWorkflow(subWorkflow);
|
|
1481
|
+
return subWorkflow;
|
|
1482
|
+
}
|
|
1483
|
+
static initSubWorkflow(subWorkflowIdentifier) {
|
|
1484
|
+
return (workflow) => {
|
|
1485
|
+
const copy = workflow.Copy();
|
|
1486
|
+
return [copy, copy.InitSubWorkflow(subWorkflowIdentifier)];
|
|
1487
|
+
};
|
|
1488
|
+
}
|
|
1489
|
+
RegisterSubWorkflow(subWorkflowIdentifier) {
|
|
1490
|
+
const this$ = this;
|
|
1491
|
+
if (contains(subWorkflowIdentifier, this$.SubWorkflowIdentifiers, {
|
|
1492
|
+
Equals: (x, y) => x === y,
|
|
1493
|
+
GetHashCode: stringHash
|
|
1494
|
+
})) {
|
|
1495
|
+
throw new Error(`SubWorkflow \`${subWorkflowIdentifier}\` is already registered on the workflow.`);
|
|
1496
|
+
}
|
|
1497
|
+
void this$.SubWorkflowIdentifiers.push(subWorkflowIdentifier);
|
|
1498
|
+
}
|
|
1499
|
+
static registerSubWorkflow(subWorkflowIdentifier) {
|
|
1500
|
+
return (workflow) => {
|
|
1501
|
+
const copy = workflow.Copy();
|
|
1502
|
+
copy.RegisterSubWorkflow(subWorkflowIdentifier);
|
|
1503
|
+
return copy;
|
|
1504
|
+
};
|
|
1505
|
+
}
|
|
1506
|
+
DeregisterSubWorkflow(subWorkflowIdentifier) {
|
|
1507
|
+
const this$ = this;
|
|
1508
|
+
removeInPlace(subWorkflowIdentifier, this$.SubWorkflowIdentifiers, {
|
|
1509
|
+
Equals: (x, y) => x === y,
|
|
1510
|
+
GetHashCode: stringHash
|
|
1511
|
+
});
|
|
1512
|
+
}
|
|
1513
|
+
static deregisterSubWorkflow(subWorkflowIdentifier) {
|
|
1514
|
+
return (workflow) => {
|
|
1515
|
+
const copy = workflow.Copy();
|
|
1516
|
+
copy.DeregisterSubWorkflow(subWorkflowIdentifier);
|
|
1517
|
+
return copy;
|
|
1518
|
+
};
|
|
1519
|
+
}
|
|
1520
|
+
GetRegisteredSubWorkflow(subWorkflowIdentifier) {
|
|
1521
|
+
const this$ = this;
|
|
1522
|
+
if (!contains(subWorkflowIdentifier, this$.SubWorkflowIdentifiers, {
|
|
1523
|
+
Equals: (x, y) => x === y,
|
|
1524
|
+
GetHashCode: stringHash
|
|
1525
|
+
})) {
|
|
1526
|
+
throw new Error(`SubWorkflow \`${subWorkflowIdentifier}\` is not registered on the workflow.`);
|
|
1527
|
+
}
|
|
1528
|
+
let inv;
|
|
1529
|
+
const investigation = this$.Investigation;
|
|
1530
|
+
if (investigation != null) {
|
|
1531
|
+
inv = value(investigation);
|
|
1532
|
+
} else {
|
|
1533
|
+
throw new Error("Cannot execute this function. Object is not part of ArcInvestigation.");
|
|
1534
|
+
}
|
|
1535
|
+
return inv.GetWorkflow(subWorkflowIdentifier);
|
|
1536
|
+
}
|
|
1537
|
+
static getRegisteredSubWorkflow(subWorkflowIdentifier) {
|
|
1538
|
+
return (workflow) => {
|
|
1539
|
+
const copy = workflow.Copy();
|
|
1540
|
+
return copy.GetRegisteredSubWorkflow(subWorkflowIdentifier);
|
|
1541
|
+
};
|
|
1542
|
+
}
|
|
1543
|
+
static getRegisteredSubWorkflows() {
|
|
1544
|
+
return (workflow) => {
|
|
1545
|
+
const copy = workflow.Copy();
|
|
1546
|
+
return copy.SubWorkflows;
|
|
1547
|
+
};
|
|
1548
|
+
}
|
|
1549
|
+
GetRegisteredSubWorkflowsOrIdentifier() {
|
|
1550
|
+
const this$ = this;
|
|
1551
|
+
const matchValue = this$.Investigation;
|
|
1552
|
+
if (matchValue == null) {
|
|
1553
|
+
return ResizeArray_map((identifier_1) => ArcWorkflow.init(identifier_1), this$.SubWorkflowIdentifiers);
|
|
1554
|
+
} else {
|
|
1555
|
+
const i = value(matchValue);
|
|
1556
|
+
return ResizeArray_map((identifier) => {
|
|
1557
|
+
const matchValue_1 = i.TryGetWorkflow(identifier);
|
|
1558
|
+
if (matchValue_1 == null) {
|
|
1559
|
+
return ArcWorkflow.init(identifier);
|
|
1560
|
+
} else {
|
|
1561
|
+
return value(matchValue_1);
|
|
1562
|
+
}
|
|
1563
|
+
}, this$.SubWorkflowIdentifiers);
|
|
1564
|
+
}
|
|
1565
|
+
}
|
|
1566
|
+
static getRegisteredSubWorkflowsOrIdentifier() {
|
|
1567
|
+
return (workflow) => {
|
|
1568
|
+
const copy = workflow.Copy();
|
|
1569
|
+
return copy.GetRegisteredSubWorkflowsOrIdentifier();
|
|
1570
|
+
};
|
|
1571
|
+
}
|
|
1572
|
+
Copy(copyInvestigationRef) {
|
|
1573
|
+
const this$ = this;
|
|
1574
|
+
const copyInvestigationRef_1 = defaultArg(copyInvestigationRef, false);
|
|
1575
|
+
const nextWorkFlowType = map((w) => w.Copy(), this$.WorkflowType);
|
|
1576
|
+
const nextSubWorkflowIdentifiers = Array.from(this$.SubWorkflowIdentifiers);
|
|
1577
|
+
const nextParameters = ResizeArray_map((x) => x, this$.Parameters);
|
|
1578
|
+
const nextComponents = ResizeArray_map((x_1) => x_1, this$.Components);
|
|
1579
|
+
const nextDataMap = map(DataMap__Copy, this$.DataMap);
|
|
1580
|
+
const nextContacts = ResizeArray_map((c) => c.Copy(), this$.Contacts);
|
|
1581
|
+
const nextComments = ResizeArray_map((c_1) => c_1.Copy(), this$.Comments);
|
|
1582
|
+
let workflow;
|
|
1583
|
+
const identifier = this$.Identifier;
|
|
1584
|
+
const title = this$.Title;
|
|
1585
|
+
const description = this$.Description;
|
|
1586
|
+
const uri = this$.URI;
|
|
1587
|
+
const version = this$.Version;
|
|
1588
|
+
workflow = ArcWorkflow.make(identifier, title, description, nextWorkFlowType, uri, version, nextSubWorkflowIdentifiers, nextParameters, nextComponents, nextDataMap, nextContacts, nextComments);
|
|
1589
|
+
if (copyInvestigationRef_1) {
|
|
1590
|
+
workflow.Investigation = this$.Investigation;
|
|
1591
|
+
}
|
|
1592
|
+
return workflow;
|
|
1593
|
+
}
|
|
1594
|
+
StructurallyEquals(other) {
|
|
1595
|
+
let a, b, a_1, b_1, a_2, b_2, a_3, b_3, a_4, b_4;
|
|
1596
|
+
const this$ = this;
|
|
1597
|
+
return forAll((x) => x === true, [this$.Identifier === other.Identifier, equals(this$.Title, other.Title), equals(this$.Description, other.Description), equals(this$.WorkflowType, other.WorkflowType), equals(this$.URI, other.URI), equals(this$.Version, other.Version), (a = this$.SubWorkflowIdentifiers, b = other.SubWorkflowIdentifiers, length(a) === length(b) && fold((acc, e) => {
|
|
1598
|
+
if (acc) {
|
|
1599
|
+
return e;
|
|
1600
|
+
} else {
|
|
1601
|
+
return false;
|
|
1602
|
+
}
|
|
1603
|
+
}, true, toList(delay(() => map$1((i_1) => item(i_1, a) === item(i_1, b), rangeDouble(0, 1, length(a) - 1)))))), (a_1 = this$.Parameters, b_1 = other.Parameters, length(a_1) === length(b_1) && fold((acc_1, e_1) => {
|
|
1604
|
+
if (acc_1) {
|
|
1605
|
+
return e_1;
|
|
1606
|
+
} else {
|
|
1607
|
+
return false;
|
|
1608
|
+
}
|
|
1609
|
+
}, true, toList(delay(() => map$1((i_2) => equals(item(i_2, a_1), item(i_2, b_1)), rangeDouble(0, 1, length(a_1) - 1)))))), (a_2 = this$.Components, b_2 = other.Components, length(a_2) === length(b_2) && fold((acc_2, e_2) => {
|
|
1610
|
+
if (acc_2) {
|
|
1611
|
+
return e_2;
|
|
1612
|
+
} else {
|
|
1613
|
+
return false;
|
|
1614
|
+
}
|
|
1615
|
+
}, true, toList(delay(() => map$1((i_3) => equals(item(i_3, a_2), item(i_3, b_2)), rangeDouble(0, 1, length(a_2) - 1)))))), equals(this$.DataMap, other.DataMap), (a_3 = this$.Contacts, b_3 = other.Contacts, length(a_3) === length(b_3) && fold((acc_3, e_3) => {
|
|
1616
|
+
if (acc_3) {
|
|
1617
|
+
return e_3;
|
|
1618
|
+
} else {
|
|
1619
|
+
return false;
|
|
1620
|
+
}
|
|
1621
|
+
}, true, toList(delay(() => map$1((i_4) => equals(item(i_4, a_3), item(i_4, b_3)), rangeDouble(0, 1, length(a_3) - 1)))))), (a_4 = this$.Comments, b_4 = other.Comments, length(a_4) === length(b_4) && fold((acc_4, e_4) => {
|
|
1622
|
+
if (acc_4) {
|
|
1623
|
+
return e_4;
|
|
1624
|
+
} else {
|
|
1625
|
+
return false;
|
|
1626
|
+
}
|
|
1627
|
+
}, true, toList(delay(() => map$1((i_5) => equals(item(i_5, a_4), item(i_5, b_4)), rangeDouble(0, 1, length(a_4) - 1))))))]);
|
|
1628
|
+
}
|
|
1629
|
+
ReferenceEquals(other) {
|
|
1630
|
+
const this$ = this;
|
|
1631
|
+
return this$ === other;
|
|
1632
|
+
}
|
|
1303
1633
|
toString() {
|
|
1304
1634
|
const this$ = this;
|
|
1305
|
-
const arg =
|
|
1306
|
-
const arg_1 =
|
|
1307
|
-
const arg_2 =
|
|
1308
|
-
const arg_3 =
|
|
1309
|
-
const arg_4 =
|
|
1310
|
-
const arg_5 =
|
|
1311
|
-
const arg_6 =
|
|
1312
|
-
const arg_7 =
|
|
1313
|
-
const arg_8 =
|
|
1314
|
-
const arg_9 =
|
|
1315
|
-
const arg_10 =
|
|
1316
|
-
const arg_11 =
|
|
1635
|
+
const arg = this$.Identifier;
|
|
1636
|
+
const arg_1 = this$.Title;
|
|
1637
|
+
const arg_2 = this$.Description;
|
|
1638
|
+
const arg_3 = this$.WorkflowType;
|
|
1639
|
+
const arg_4 = this$.URI;
|
|
1640
|
+
const arg_5 = this$.Version;
|
|
1641
|
+
const arg_6 = this$.SubWorkflowIdentifiers;
|
|
1642
|
+
const arg_7 = this$.Parameters;
|
|
1643
|
+
const arg_8 = this$.Components;
|
|
1644
|
+
const arg_9 = this$.DataMap;
|
|
1645
|
+
const arg_10 = this$.Contacts;
|
|
1646
|
+
const arg_11 = this$.Comments;
|
|
1317
1647
|
return toText(printf("ArcWorkflow {\r\n Identifier = %A,\r\n Title = %A,\r\n Description = %A,\r\n WorkflowType = %A,\r\n URI = %A,\r\n Version = %A,\r\n SubWorkflowIdentifiers = %A,\r\n Parameters = %A,\r\n Components = %A,\r\n DataMap = %A,\r\n Contacts = %A,\r\n Comments = %A}"))(arg)(arg_1)(arg_2)(arg_3)(arg_4)(arg_5)(arg_6)(arg_7)(arg_8)(arg_9)(arg_10)(arg_11);
|
|
1318
1648
|
}
|
|
1319
1649
|
Equals(other) {
|
|
1320
1650
|
let s;
|
|
1321
1651
|
const this$ = this;
|
|
1322
|
-
return other instanceof ArcWorkflow && (s = other,
|
|
1652
|
+
return other instanceof ArcWorkflow && (s = other, this$.StructurallyEquals(s));
|
|
1323
1653
|
}
|
|
1324
1654
|
GetHashCode() {
|
|
1325
1655
|
const this$ = this;
|
|
1326
|
-
return boxHashArray([
|
|
1656
|
+
return boxHashArray([this$.Identifier, boxHashOption(this$.Title), boxHashOption(this$.Description), boxHashOption(this$.WorkflowType), boxHashOption(this$.URI), boxHashOption(this$.Version), boxHashSeq(this$.SubWorkflowIdentifiers), boxHashSeq(this$.Parameters), boxHashSeq(this$.Components), boxHashOption(this$.DataMap), boxHashSeq(this$.Contacts), boxHashSeq(this$.Comments)]) | 0;
|
|
1657
|
+
}
|
|
1658
|
+
GetLightHashCode() {
|
|
1659
|
+
const this$ = this;
|
|
1660
|
+
return boxHashArray([this$.Identifier, boxHashOption(this$.Title), boxHashOption(this$.Description), boxHashOption(this$.WorkflowType), boxHashOption(this$.URI), boxHashOption(this$.Version), boxHashSeq(this$.SubWorkflowIdentifiers), boxHashSeq(this$.Parameters), boxHashSeq(this$.Components), boxHashSeq(this$.Contacts), boxHashSeq(this$.Comments)]) | 0;
|
|
1327
1661
|
}
|
|
1328
1662
|
}
|
|
1329
1663
|
function ArcWorkflow_$reflection() {
|
|
@@ -2024,7 +2358,8 @@ class ArcInvestigation {
|
|
|
2024
2358
|
let enumerator_2 = getEnumerator(wss);
|
|
2025
2359
|
try {
|
|
2026
2360
|
while (enumerator_2["System.Collections.IEnumerator.MoveNext"]()) {
|
|
2027
|
-
|
|
2361
|
+
const w = enumerator_2["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
2362
|
+
w.Investigation = this$.contents;
|
|
2028
2363
|
}
|
|
2029
2364
|
} finally {
|
|
2030
2365
|
disposeSafe(enumerator_2);
|
|
@@ -2334,6 +2669,36 @@ class ArcInvestigation {
|
|
|
2334
2669
|
return newInv;
|
|
2335
2670
|
};
|
|
2336
2671
|
}
|
|
2672
|
+
RenameRun(oldIdentifier, newIdentifier) {
|
|
2673
|
+
const this$ = this;
|
|
2674
|
+
iterate((a) => {
|
|
2675
|
+
if (a.Identifier === oldIdentifier) {
|
|
2676
|
+
a.Identifier = newIdentifier;
|
|
2677
|
+
}
|
|
2678
|
+
}, this$.Runs);
|
|
2679
|
+
}
|
|
2680
|
+
static renameRun(oldIdentifier, newIdentifier) {
|
|
2681
|
+
return (inv) => {
|
|
2682
|
+
const newInv = inv.Copy();
|
|
2683
|
+
newInv.RenameRun(oldIdentifier, newIdentifier);
|
|
2684
|
+
return newInv;
|
|
2685
|
+
};
|
|
2686
|
+
}
|
|
2687
|
+
RenameWorkflow(oldIdentifier, newIdentifier) {
|
|
2688
|
+
const this$ = this;
|
|
2689
|
+
iterate((a) => {
|
|
2690
|
+
if (a.Identifier === oldIdentifier) {
|
|
2691
|
+
a.Identifier = newIdentifier;
|
|
2692
|
+
}
|
|
2693
|
+
}, this$.Workflows);
|
|
2694
|
+
}
|
|
2695
|
+
static renameWorkflow(oldIdentifier, newIdentifier) {
|
|
2696
|
+
return (inv) => {
|
|
2697
|
+
const newInv = inv.Copy();
|
|
2698
|
+
newInv.RenameWorkflow(oldIdentifier, newIdentifier);
|
|
2699
|
+
return newInv;
|
|
2700
|
+
};
|
|
2701
|
+
}
|
|
2337
2702
|
SetAssayAt(index, assay) {
|
|
2338
2703
|
const this$ = this;
|
|
2339
2704
|
const assayIdent = assay.Identifier;
|
|
@@ -2746,11 +3111,11 @@ class ArcInvestigation {
|
|
|
2746
3111
|
}
|
|
2747
3112
|
get WorkflowIdentifiers() {
|
|
2748
3113
|
const this$ = this;
|
|
2749
|
-
return toArray(map$1(
|
|
3114
|
+
return toArray(map$1((x) => x.Identifier, this$.Workflows));
|
|
2750
3115
|
}
|
|
2751
3116
|
GetWorkflowIndex(workflowIdentifier) {
|
|
2752
3117
|
const this$ = this;
|
|
2753
|
-
const index = this$.Workflows.findIndex((w) =>
|
|
3118
|
+
const index = this$.Workflows.findIndex((w) => w.Identifier === workflowIdentifier) | 0;
|
|
2754
3119
|
if (index === -1) {
|
|
2755
3120
|
throw new Error(`Unable to find workflow with specified identifier '${workflowIdentifier}'!`);
|
|
2756
3121
|
}
|
|
@@ -2762,12 +3127,12 @@ class ArcInvestigation {
|
|
|
2762
3127
|
AddWorkflow(workflow) {
|
|
2763
3128
|
const this$ = this;
|
|
2764
3129
|
const workflow_1 = workflow;
|
|
2765
|
-
const matchValue = tryFindIndex((x) =>
|
|
3130
|
+
const matchValue = tryFindIndex((x) => x.Identifier === workflow_1.Identifier, this$.Workflows);
|
|
2766
3131
|
if (matchValue == null) {
|
|
2767
3132
|
} else {
|
|
2768
|
-
throw new Error(`Cannot create workflow with name ${
|
|
3133
|
+
throw new Error(`Cannot create workflow with name ${workflow_1.Identifier}, as workflow names must be unique and workflow at index ${value(matchValue)} has the same name.`);
|
|
2769
3134
|
}
|
|
2770
|
-
|
|
3135
|
+
workflow.Investigation = this$;
|
|
2771
3136
|
void this$.Workflows.push(workflow);
|
|
2772
3137
|
}
|
|
2773
3138
|
static addWorkflow(workflow) {
|
|
@@ -2779,7 +3144,7 @@ class ArcInvestigation {
|
|
|
2779
3144
|
}
|
|
2780
3145
|
InitWorkflow(workflowIdentifier) {
|
|
2781
3146
|
const this$ = this;
|
|
2782
|
-
const workflow =
|
|
3147
|
+
const workflow = ArcWorkflow.init(workflowIdentifier);
|
|
2783
3148
|
this$.AddWorkflow(workflow);
|
|
2784
3149
|
return workflow;
|
|
2785
3150
|
}
|
|
@@ -2802,7 +3167,7 @@ class ArcInvestigation {
|
|
|
2802
3167
|
}
|
|
2803
3168
|
DeleteWorkflow(workflowIdentifier) {
|
|
2804
3169
|
const this$ = this;
|
|
2805
|
-
const index = this$.Workflows.findIndex((w) =>
|
|
3170
|
+
const index = this$.Workflows.findIndex((w) => w.Identifier === workflowIdentifier) | 0;
|
|
2806
3171
|
this$.DeleteWorkflowAt(index);
|
|
2807
3172
|
}
|
|
2808
3173
|
static deleteWorkflow(workflowIdentifier) {
|
|
@@ -2839,7 +3204,7 @@ class ArcInvestigation {
|
|
|
2839
3204
|
}
|
|
2840
3205
|
TryGetWorkflow(workflowIdentifier) {
|
|
2841
3206
|
const this$ = this;
|
|
2842
|
-
return tryFind((w) =>
|
|
3207
|
+
return tryFind((w) => w.Identifier === workflowIdentifier, this$.Workflows);
|
|
2843
3208
|
}
|
|
2844
3209
|
static tryGetWorkflow(workflowIdentifier) {
|
|
2845
3210
|
return (inv) => {
|
|
@@ -2849,7 +3214,7 @@ class ArcInvestigation {
|
|
|
2849
3214
|
}
|
|
2850
3215
|
ContainsWorkflow(workflowIdentifier) {
|
|
2851
3216
|
const this$ = this;
|
|
2852
|
-
return exists((w) =>
|
|
3217
|
+
return exists((w) => w.Identifier === workflowIdentifier, this$.Workflows);
|
|
2853
3218
|
}
|
|
2854
3219
|
static containsWorkflow(workflowIdentifier) {
|
|
2855
3220
|
return (inv) => inv.ContainsWorkflow(workflowIdentifier);
|
|
@@ -2857,12 +3222,12 @@ class ArcInvestigation {
|
|
|
2857
3222
|
SetWorkflowAt(index, workflow) {
|
|
2858
3223
|
const this$ = this;
|
|
2859
3224
|
const workflow_1 = workflow;
|
|
2860
|
-
const matchValue = tryFindIndex((x) =>
|
|
3225
|
+
const matchValue = tryFindIndex((x) => x.Identifier === workflow_1.Identifier, removeAt(index, this$.Workflows));
|
|
2861
3226
|
if (matchValue == null) {
|
|
2862
3227
|
} else {
|
|
2863
|
-
throw new Error(`Cannot create workflow with name ${
|
|
3228
|
+
throw new Error(`Cannot create workflow with name ${workflow_1.Identifier}, as workflow names must be unique and workflow at index ${value(matchValue)} has the same name.`);
|
|
2864
3229
|
}
|
|
2865
|
-
|
|
3230
|
+
workflow.Investigation = this$;
|
|
2866
3231
|
this$.Workflows[index] = workflow;
|
|
2867
3232
|
}
|
|
2868
3233
|
SetWorkflow(workflowIdentifier, workflow) {
|
|
@@ -3001,7 +3366,7 @@ class ArcInvestigation {
|
|
|
3001
3366
|
SetRunAt(index, run) {
|
|
3002
3367
|
const this$ = this;
|
|
3003
3368
|
const run_1 = run;
|
|
3004
|
-
const matchValue = tryFindIndex((x) => x.Identifier === run_1.Identifier, this$.Runs);
|
|
3369
|
+
const matchValue = tryFindIndex((x) => x.Identifier === run_1.Identifier, removeAt(index, this$.Runs));
|
|
3005
3370
|
if (matchValue == null) {
|
|
3006
3371
|
} else {
|
|
3007
3372
|
throw new Error(`Cannot create run with name ${run_1.Identifier}, as run names must be unique and run at index ${value(matchValue)} has the same name.`);
|
|
@@ -3170,7 +3535,8 @@ class ArcInvestigation {
|
|
|
3170
3535
|
try {
|
|
3171
3536
|
while (enumerator_2["System.Collections.IEnumerator.MoveNext"]()) {
|
|
3172
3537
|
const workflow = enumerator_2["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
3173
|
-
|
|
3538
|
+
const copy_2 = workflow.Copy();
|
|
3539
|
+
void nextWorkflows.push(copy_2);
|
|
3174
3540
|
}
|
|
3175
3541
|
} finally {
|
|
3176
3542
|
disposeSafe(enumerator_2);
|
|
@@ -3313,282 +3679,5 @@ function ArcTypesAux_ErrorMsgs_unableToFindWorkflowIdentifier(workflowIdentifier
|
|
|
3313
3679
|
function ArcTypesAux_ErrorMsgs_unableToFindRunIdentifier(runIdentifier, investigationIdentifier) {
|
|
3314
3680
|
return `Error. Unable to find run with identifier '${runIdentifier}' in investigation ${investigationIdentifier}.`;
|
|
3315
3681
|
}
|
|
3316
|
-
function ArcWorkflow__get_Identifier(this$) {
|
|
3317
|
-
return this$["identifier@1151"];
|
|
3318
|
-
}
|
|
3319
|
-
function ArcWorkflow__set_Identifier_Z721C83C5(this$, i) {
|
|
3320
|
-
this$["identifier@1151"] = i;
|
|
3321
|
-
}
|
|
3322
|
-
function ArcWorkflow__get_Investigation(this$) {
|
|
3323
|
-
return this$.investigation;
|
|
3324
|
-
}
|
|
3325
|
-
function ArcWorkflow__set_Investigation_Z1E102E3E(this$, a) {
|
|
3326
|
-
this$.investigation = a;
|
|
3327
|
-
}
|
|
3328
|
-
function ArcWorkflow__get_Title(this$) {
|
|
3329
|
-
return this$["title@1156"];
|
|
3330
|
-
}
|
|
3331
|
-
function ArcWorkflow__set_Title_6DFDD678(this$, t) {
|
|
3332
|
-
this$["title@1156"] = t;
|
|
3333
|
-
}
|
|
3334
|
-
function ArcWorkflow__get_Description(this$) {
|
|
3335
|
-
return this$["description@1157"];
|
|
3336
|
-
}
|
|
3337
|
-
function ArcWorkflow__set_Description_6DFDD678(this$, d) {
|
|
3338
|
-
this$["description@1157"] = d;
|
|
3339
|
-
}
|
|
3340
|
-
function ArcWorkflow__get_SubWorkflowIdentifiers(this$) {
|
|
3341
|
-
return this$["subWorkflowIdentifiers@1158"];
|
|
3342
|
-
}
|
|
3343
|
-
function ArcWorkflow__set_SubWorkflowIdentifiers_70A00D82(this$, s) {
|
|
3344
|
-
this$["subWorkflowIdentifiers@1158"] = s;
|
|
3345
|
-
}
|
|
3346
|
-
function ArcWorkflow__get_WorkflowType(this$) {
|
|
3347
|
-
return this$["workflowType@1159"];
|
|
3348
|
-
}
|
|
3349
|
-
function ArcWorkflow__set_WorkflowType_279AAFF2(this$, w) {
|
|
3350
|
-
this$["workflowType@1159"] = w;
|
|
3351
|
-
}
|
|
3352
|
-
function ArcWorkflow__get_URI(this$) {
|
|
3353
|
-
return this$["uri@1160"];
|
|
3354
|
-
}
|
|
3355
|
-
function ArcWorkflow__set_URI_6DFDD678(this$, u) {
|
|
3356
|
-
this$["uri@1160"] = u;
|
|
3357
|
-
}
|
|
3358
|
-
function ArcWorkflow__get_Version(this$) {
|
|
3359
|
-
return this$["version@1161"];
|
|
3360
|
-
}
|
|
3361
|
-
function ArcWorkflow__set_Version_6DFDD678(this$, v) {
|
|
3362
|
-
this$["version@1161"] = v;
|
|
3363
|
-
}
|
|
3364
|
-
function ArcWorkflow__get_Parameters(this$) {
|
|
3365
|
-
return this$["parameters@1162"];
|
|
3366
|
-
}
|
|
3367
|
-
function ArcWorkflow__set_Parameters_10749ED2(this$, p) {
|
|
3368
|
-
this$["parameters@1162"] = p;
|
|
3369
|
-
}
|
|
3370
|
-
function ArcWorkflow__get_Components(this$) {
|
|
3371
|
-
return this$["components@1163"];
|
|
3372
|
-
}
|
|
3373
|
-
function ArcWorkflow__set_Components_Z3A507DDE(this$, c) {
|
|
3374
|
-
this$["components@1163"] = c;
|
|
3375
|
-
}
|
|
3376
|
-
function ArcWorkflow__get_DataMap(this$) {
|
|
3377
|
-
return this$.dataMap;
|
|
3378
|
-
}
|
|
3379
|
-
function ArcWorkflow__set_DataMap_51F1E59E(this$, dm) {
|
|
3380
|
-
this$.dataMap = dm;
|
|
3381
|
-
}
|
|
3382
|
-
function ArcWorkflow__get_Contacts(this$) {
|
|
3383
|
-
return this$["contacts@1165"];
|
|
3384
|
-
}
|
|
3385
|
-
function ArcWorkflow__set_Contacts_Z7E0D1CA3(this$, c) {
|
|
3386
|
-
this$["contacts@1165"] = c;
|
|
3387
|
-
}
|
|
3388
|
-
function ArcWorkflow__get_Comments(this$) {
|
|
3389
|
-
return this$["comments@1166"];
|
|
3390
|
-
}
|
|
3391
|
-
function ArcWorkflow__set_Comments_149C14BB(this$, c) {
|
|
3392
|
-
this$["comments@1166"] = c;
|
|
3393
|
-
}
|
|
3394
|
-
function ArcWorkflow__get_StaticHash(this$) {
|
|
3395
|
-
return this$.staticHash;
|
|
3396
|
-
}
|
|
3397
|
-
function ArcWorkflow__set_StaticHash_Z524259A4(this$, s) {
|
|
3398
|
-
this$.staticHash = s | 0;
|
|
3399
|
-
}
|
|
3400
|
-
function ArcWorkflow_init_Z721C83C5(identifier) {
|
|
3401
|
-
return ArcWorkflow_$ctor_Z3BB02240(identifier);
|
|
3402
|
-
}
|
|
3403
|
-
function ArcWorkflow_create_Z3BB02240(identifier, title, description, workflowType, uri, version, subWorkflowIdentifiers, parameters, components, datamap, contacts, comments) {
|
|
3404
|
-
return ArcWorkflow_$ctor_Z3BB02240(identifier, unwrap(title), unwrap(description), unwrap(workflowType), unwrap(uri), unwrap(version), unwrap(subWorkflowIdentifiers), unwrap(parameters), unwrap(components), unwrap(datamap), unwrap(contacts), unwrap(comments));
|
|
3405
|
-
}
|
|
3406
|
-
function ArcWorkflow_make(identifier, title, description, workflowType, uri, version, subWorkflowIdentifiers, parameters, components, datamap, contacts, comments) {
|
|
3407
|
-
return ArcWorkflow_$ctor_Z3BB02240(identifier, unwrap(title), unwrap(description), unwrap(workflowType), unwrap(uri), unwrap(version), subWorkflowIdentifiers, parameters, components, unwrap(datamap), contacts, comments);
|
|
3408
|
-
}
|
|
3409
|
-
function ArcWorkflow_get_FileName() {
|
|
3410
|
-
return "isa.run.xlsx";
|
|
3411
|
-
}
|
|
3412
|
-
function ArcWorkflow__get_SubWorkflowIdentifiersCount(this$) {
|
|
3413
|
-
return ArcWorkflow__get_SubWorkflowIdentifiers(this$).length;
|
|
3414
|
-
}
|
|
3415
|
-
function ArcWorkflow__get_SubWorkflowCount(this$) {
|
|
3416
|
-
return ArcWorkflow__get_SubWorkflows(this$).length;
|
|
3417
|
-
}
|
|
3418
|
-
function ArcWorkflow__get_SubWorkflows(this$) {
|
|
3419
|
-
let inv;
|
|
3420
|
-
const investigation = ArcWorkflow__get_Investigation(this$);
|
|
3421
|
-
if (investigation != null) {
|
|
3422
|
-
inv = value(investigation);
|
|
3423
|
-
} else {
|
|
3424
|
-
throw new Error("Cannot execute this function. Object is not part of ArcInvestigation.");
|
|
3425
|
-
}
|
|
3426
|
-
const collection = choose((workflowIdentifier) => inv.TryGetWorkflow(workflowIdentifier), ArcWorkflow__get_SubWorkflowIdentifiers(this$));
|
|
3427
|
-
return Array.from(collection);
|
|
3428
|
-
}
|
|
3429
|
-
function ArcWorkflow__get_VacantSubWorkflowIdentifiers(this$) {
|
|
3430
|
-
let inv;
|
|
3431
|
-
const investigation = ArcWorkflow__get_Investigation(this$);
|
|
3432
|
-
if (investigation != null) {
|
|
3433
|
-
inv = value(investigation);
|
|
3434
|
-
} else {
|
|
3435
|
-
throw new Error("Cannot execute this function. Object is not part of ArcInvestigation.");
|
|
3436
|
-
}
|
|
3437
|
-
const collection = filter((arg) => !inv.ContainsWorkflow(arg), ArcWorkflow__get_SubWorkflowIdentifiers(this$));
|
|
3438
|
-
return Array.from(collection);
|
|
3439
|
-
}
|
|
3440
|
-
function ArcWorkflow__AddSubWorkflow_Z1C75CB0E(this$, subWorkflow) {
|
|
3441
|
-
let inv;
|
|
3442
|
-
const investigation = ArcWorkflow__get_Investigation(this$);
|
|
3443
|
-
if (investigation != null) {
|
|
3444
|
-
inv = value(investigation);
|
|
3445
|
-
} else {
|
|
3446
|
-
throw new Error("Cannot execute this function. Object is not part of ArcInvestigation.");
|
|
3447
|
-
}
|
|
3448
|
-
inv.AddWorkflow(subWorkflow);
|
|
3449
|
-
}
|
|
3450
|
-
function ArcWorkflow_addSubWorkflow_Z1C75CB0E(subWorkflow) {
|
|
3451
|
-
return (workflow) => {
|
|
3452
|
-
const newWorkflow = ArcWorkflow__Copy_6FCE9E49(workflow);
|
|
3453
|
-
ArcWorkflow__AddSubWorkflow_Z1C75CB0E(newWorkflow, subWorkflow);
|
|
3454
|
-
return newWorkflow;
|
|
3455
|
-
};
|
|
3456
|
-
}
|
|
3457
|
-
function ArcWorkflow__InitSubWorkflow_Z721C83C5(this$, subWorkflowIdentifier) {
|
|
3458
|
-
const subWorkflow = ArcWorkflow_$ctor_Z3BB02240(subWorkflowIdentifier);
|
|
3459
|
-
ArcWorkflow__AddSubWorkflow_Z1C75CB0E(this$, subWorkflow);
|
|
3460
|
-
return subWorkflow;
|
|
3461
|
-
}
|
|
3462
|
-
function ArcWorkflow_initSubWorkflow_Z721C83C5(subWorkflowIdentifier) {
|
|
3463
|
-
return (workflow) => {
|
|
3464
|
-
const copy = ArcWorkflow__Copy_6FCE9E49(workflow);
|
|
3465
|
-
return [copy, ArcWorkflow__InitSubWorkflow_Z721C83C5(copy, subWorkflowIdentifier)];
|
|
3466
|
-
};
|
|
3467
|
-
}
|
|
3468
|
-
function ArcWorkflow__RegisterSubWorkflow_Z721C83C5(this$, subWorkflowIdentifier) {
|
|
3469
|
-
if (contains(subWorkflowIdentifier, ArcWorkflow__get_SubWorkflowIdentifiers(this$), {
|
|
3470
|
-
Equals: (x, y) => x === y,
|
|
3471
|
-
GetHashCode: stringHash
|
|
3472
|
-
})) {
|
|
3473
|
-
throw new Error(`SubWorkflow \`${subWorkflowIdentifier}\` is already registered on the workflow.`);
|
|
3474
|
-
}
|
|
3475
|
-
void ArcWorkflow__get_SubWorkflowIdentifiers(this$).push(subWorkflowIdentifier);
|
|
3476
|
-
}
|
|
3477
|
-
function ArcWorkflow_registerSubWorkflow_Z721C83C5(subWorkflowIdentifier) {
|
|
3478
|
-
return (workflow) => {
|
|
3479
|
-
const copy = ArcWorkflow__Copy_6FCE9E49(workflow);
|
|
3480
|
-
ArcWorkflow__RegisterSubWorkflow_Z721C83C5(copy, subWorkflowIdentifier);
|
|
3481
|
-
return copy;
|
|
3482
|
-
};
|
|
3483
|
-
}
|
|
3484
|
-
function ArcWorkflow__DeregisterSubWorkflow_Z721C83C5(this$, subWorkflowIdentifier) {
|
|
3485
|
-
removeInPlace(subWorkflowIdentifier, ArcWorkflow__get_SubWorkflowIdentifiers(this$), {
|
|
3486
|
-
Equals: (x, y) => x === y,
|
|
3487
|
-
GetHashCode: stringHash
|
|
3488
|
-
});
|
|
3489
|
-
}
|
|
3490
|
-
function ArcWorkflow_deregisterSubWorkflow_Z721C83C5(subWorkflowIdentifier) {
|
|
3491
|
-
return (workflow) => {
|
|
3492
|
-
const copy = ArcWorkflow__Copy_6FCE9E49(workflow);
|
|
3493
|
-
ArcWorkflow__DeregisterSubWorkflow_Z721C83C5(copy, subWorkflowIdentifier);
|
|
3494
|
-
return copy;
|
|
3495
|
-
};
|
|
3496
|
-
}
|
|
3497
|
-
function ArcWorkflow__GetRegisteredSubWorkflow_Z721C83C5(this$, subWorkflowIdentifier) {
|
|
3498
|
-
if (!contains(subWorkflowIdentifier, ArcWorkflow__get_SubWorkflowIdentifiers(this$), {
|
|
3499
|
-
Equals: (x, y) => x === y,
|
|
3500
|
-
GetHashCode: stringHash
|
|
3501
|
-
})) {
|
|
3502
|
-
throw new Error(`SubWorkflow \`${subWorkflowIdentifier}\` is not registered on the workflow.`);
|
|
3503
|
-
}
|
|
3504
|
-
let inv;
|
|
3505
|
-
const investigation = ArcWorkflow__get_Investigation(this$);
|
|
3506
|
-
if (investigation != null) {
|
|
3507
|
-
inv = value(investigation);
|
|
3508
|
-
} else {
|
|
3509
|
-
throw new Error("Cannot execute this function. Object is not part of ArcInvestigation.");
|
|
3510
|
-
}
|
|
3511
|
-
return inv.GetWorkflow(subWorkflowIdentifier);
|
|
3512
|
-
}
|
|
3513
|
-
function ArcWorkflow_getRegisteredSubWorkflow_Z721C83C5(subWorkflowIdentifier) {
|
|
3514
|
-
return (workflow) => ArcWorkflow__GetRegisteredSubWorkflow_Z721C83C5(ArcWorkflow__Copy_6FCE9E49(workflow), subWorkflowIdentifier);
|
|
3515
|
-
}
|
|
3516
|
-
function ArcWorkflow_getRegisteredSubWorkflows() {
|
|
3517
|
-
return (workflow) => ArcWorkflow__get_SubWorkflows(ArcWorkflow__Copy_6FCE9E49(workflow));
|
|
3518
|
-
}
|
|
3519
|
-
function ArcWorkflow__GetRegisteredSubWorkflowsOrIdentifier(this$) {
|
|
3520
|
-
const matchValue = ArcWorkflow__get_Investigation(this$);
|
|
3521
|
-
if (matchValue == null) {
|
|
3522
|
-
return ResizeArray_map(ArcWorkflow_init_Z721C83C5, ArcWorkflow__get_SubWorkflowIdentifiers(this$));
|
|
3523
|
-
} else {
|
|
3524
|
-
const i = value(matchValue);
|
|
3525
|
-
return ResizeArray_map((identifier) => {
|
|
3526
|
-
const matchValue_1 = i.TryGetWorkflow(identifier);
|
|
3527
|
-
if (matchValue_1 == null) {
|
|
3528
|
-
return ArcWorkflow_init_Z721C83C5(identifier);
|
|
3529
|
-
} else {
|
|
3530
|
-
return value(matchValue_1);
|
|
3531
|
-
}
|
|
3532
|
-
}, ArcWorkflow__get_SubWorkflowIdentifiers(this$));
|
|
3533
|
-
}
|
|
3534
|
-
}
|
|
3535
|
-
function ArcWorkflow_getRegisteredSubWorkflowsOrIdentifier() {
|
|
3536
|
-
return (workflow) => ArcWorkflow__GetRegisteredSubWorkflowsOrIdentifier(ArcWorkflow__Copy_6FCE9E49(workflow));
|
|
3537
|
-
}
|
|
3538
|
-
function ArcWorkflow__Copy_6FCE9E49(this$, copyInvestigationRef) {
|
|
3539
|
-
const copyInvestigationRef_1 = defaultArg(copyInvestigationRef, false);
|
|
3540
|
-
const nextWorkFlowType = map((w) => w.Copy(), ArcWorkflow__get_WorkflowType(this$));
|
|
3541
|
-
const nextSubWorkflowIdentifiers = Array.from(ArcWorkflow__get_SubWorkflowIdentifiers(this$));
|
|
3542
|
-
const nextParameters = ResizeArray_map((x) => x, ArcWorkflow__get_Parameters(this$));
|
|
3543
|
-
const nextComponents = ResizeArray_map((x_1) => x_1, ArcWorkflow__get_Components(this$));
|
|
3544
|
-
const nextDataMap = map(DataMap__Copy, ArcWorkflow__get_DataMap(this$));
|
|
3545
|
-
const nextContacts = ResizeArray_map((c) => c.Copy(), ArcWorkflow__get_Contacts(this$));
|
|
3546
|
-
const nextComments = ResizeArray_map((c_1) => c_1.Copy(), ArcWorkflow__get_Comments(this$));
|
|
3547
|
-
const workflow = ArcWorkflow_make(ArcWorkflow__get_Identifier(this$), ArcWorkflow__get_Title(this$), ArcWorkflow__get_Description(this$), nextWorkFlowType, ArcWorkflow__get_URI(this$), ArcWorkflow__get_Version(this$), nextSubWorkflowIdentifiers, nextParameters, nextComponents, nextDataMap, nextContacts, nextComments);
|
|
3548
|
-
if (copyInvestigationRef_1) {
|
|
3549
|
-
ArcWorkflow__set_Investigation_Z1E102E3E(workflow, ArcWorkflow__get_Investigation(this$));
|
|
3550
|
-
}
|
|
3551
|
-
return workflow;
|
|
3552
|
-
}
|
|
3553
|
-
function ArcWorkflow__StructurallyEquals_Z1C75CB0E(this$, other) {
|
|
3554
|
-
let a, b, a_1, b_1, a_2, b_2, a_3, b_3, a_4, b_4;
|
|
3555
|
-
return forAll((x) => x === true, [ArcWorkflow__get_Identifier(this$) === ArcWorkflow__get_Identifier(other), equals(ArcWorkflow__get_Title(this$), ArcWorkflow__get_Title(other)), equals(ArcWorkflow__get_Description(this$), ArcWorkflow__get_Description(other)), equals(ArcWorkflow__get_WorkflowType(this$), ArcWorkflow__get_WorkflowType(other)), equals(ArcWorkflow__get_URI(this$), ArcWorkflow__get_URI(other)), equals(ArcWorkflow__get_Version(this$), ArcWorkflow__get_Version(other)), (a = ArcWorkflow__get_SubWorkflowIdentifiers(this$), b = ArcWorkflow__get_SubWorkflowIdentifiers(other), length(a) === length(b) && fold((acc, e) => {
|
|
3556
|
-
if (acc) {
|
|
3557
|
-
return e;
|
|
3558
|
-
} else {
|
|
3559
|
-
return false;
|
|
3560
|
-
}
|
|
3561
|
-
}, true, toList(delay(() => map$1((i_1) => item(i_1, a) === item(i_1, b), rangeDouble(0, 1, length(a) - 1)))))), (a_1 = ArcWorkflow__get_Parameters(this$), b_1 = ArcWorkflow__get_Parameters(other), length(a_1) === length(b_1) && fold((acc_1, e_1) => {
|
|
3562
|
-
if (acc_1) {
|
|
3563
|
-
return e_1;
|
|
3564
|
-
} else {
|
|
3565
|
-
return false;
|
|
3566
|
-
}
|
|
3567
|
-
}, true, toList(delay(() => map$1((i_2) => equals(item(i_2, a_1), item(i_2, b_1)), rangeDouble(0, 1, length(a_1) - 1)))))), (a_2 = ArcWorkflow__get_Components(this$), b_2 = ArcWorkflow__get_Components(other), length(a_2) === length(b_2) && fold((acc_2, e_2) => {
|
|
3568
|
-
if (acc_2) {
|
|
3569
|
-
return e_2;
|
|
3570
|
-
} else {
|
|
3571
|
-
return false;
|
|
3572
|
-
}
|
|
3573
|
-
}, true, toList(delay(() => map$1((i_3) => equals(item(i_3, a_2), item(i_3, b_2)), rangeDouble(0, 1, length(a_2) - 1)))))), equals(ArcWorkflow__get_DataMap(this$), ArcWorkflow__get_DataMap(other)), (a_3 = ArcWorkflow__get_Contacts(this$), b_3 = ArcWorkflow__get_Contacts(other), length(a_3) === length(b_3) && fold((acc_3, e_3) => {
|
|
3574
|
-
if (acc_3) {
|
|
3575
|
-
return e_3;
|
|
3576
|
-
} else {
|
|
3577
|
-
return false;
|
|
3578
|
-
}
|
|
3579
|
-
}, true, toList(delay(() => map$1((i_4) => equals(item(i_4, a_3), item(i_4, b_3)), rangeDouble(0, 1, length(a_3) - 1)))))), (a_4 = ArcWorkflow__get_Comments(this$), b_4 = ArcWorkflow__get_Comments(other), length(a_4) === length(b_4) && fold((acc_4, e_4) => {
|
|
3580
|
-
if (acc_4) {
|
|
3581
|
-
return e_4;
|
|
3582
|
-
} else {
|
|
3583
|
-
return false;
|
|
3584
|
-
}
|
|
3585
|
-
}, true, toList(delay(() => map$1((i_5) => equals(item(i_5, a_4), item(i_5, b_4)), rangeDouble(0, 1, length(a_4) - 1))))))]);
|
|
3586
|
-
}
|
|
3587
|
-
function ArcWorkflow__ReferenceEquals_1680536E(this$, other) {
|
|
3588
|
-
return this$ === other;
|
|
3589
|
-
}
|
|
3590
|
-
function ArcWorkflow__GetLightHashCode(this$) {
|
|
3591
|
-
return boxHashArray([ArcWorkflow__get_Identifier(this$), boxHashOption(ArcWorkflow__get_Title(this$)), boxHashOption(ArcWorkflow__get_Description(this$)), boxHashOption(ArcWorkflow__get_WorkflowType(this$)), boxHashOption(ArcWorkflow__get_URI(this$)), boxHashOption(ArcWorkflow__get_Version(this$)), boxHashSeq(ArcWorkflow__get_SubWorkflowIdentifiers(this$)), boxHashSeq(ArcWorkflow__get_Parameters(this$)), boxHashSeq(ArcWorkflow__get_Components(this$)), boxHashSeq(ArcWorkflow__get_Contacts(this$)), boxHashSeq(ArcWorkflow__get_Comments(this$))]);
|
|
3592
|
-
}
|
|
3593
3682
|
|
|
3594
|
-
export { ArcAssay, ArcAssay_$ctor_11E1F34, ArcAssay_$reflection, ArcInvestigation, ArcInvestigation_$ctor_Z67823F6C, ArcInvestigation_$reflection, ArcRun, ArcRun_$ctor_Z38E7054B, ArcRun_$reflection, ArcStudy, ArcStudy_$ctor_64321D5B, ArcStudy_$reflection, ArcTypesAux_ErrorMsgs_unableToFindAssayIdentifier, ArcTypesAux_ErrorMsgs_unableToFindRunIdentifier, ArcTypesAux_ErrorMsgs_unableToFindStudyIdentifier, ArcTypesAux_ErrorMsgs_unableToFindWorkflowIdentifier, ArcWorkflow, ArcWorkflow_$ctor_Z3BB02240, ArcWorkflow_$reflection
|
|
3683
|
+
export { ArcAssay, ArcAssay_$ctor_11E1F34, ArcAssay_$reflection, ArcInvestigation, ArcInvestigation_$ctor_Z67823F6C, ArcInvestigation_$reflection, ArcRun, ArcRun_$ctor_Z38E7054B, ArcRun_$reflection, ArcStudy, ArcStudy_$ctor_64321D5B, ArcStudy_$reflection, ArcTypesAux_ErrorMsgs_unableToFindAssayIdentifier, ArcTypesAux_ErrorMsgs_unableToFindRunIdentifier, ArcTypesAux_ErrorMsgs_unableToFindStudyIdentifier, ArcTypesAux_ErrorMsgs_unableToFindWorkflowIdentifier, ArcWorkflow, ArcWorkflow_$ctor_Z3BB02240, ArcWorkflow_$reflection };
|