@nfdi4plants/arctrl 3.0.0-beta.7 → 3.0.0-beta.9

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.
Files changed (32) hide show
  1. package/dist/ts/ts/ARC.d.ts +17 -7
  2. package/dist/ts/ts/ARC.d.ts.map +1 -1
  3. package/dist/ts/ts/ARC.js +217 -92
  4. package/dist/ts/ts/Contract/ArcWorkflow.d.ts +1 -1
  5. package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
  6. package/dist/ts/ts/Contract/ArcWorkflow.js +4 -5
  7. package/dist/ts/ts/Contract/Datamap.d.ts.map +1 -1
  8. package/dist/ts/ts/Contract/Datamap.js +27 -8
  9. package/dist/ts/ts/Conversion.d.ts.map +1 -1
  10. package/dist/ts/ts/Conversion.js +5 -5
  11. package/dist/ts/ts/Core/ArcTypes.d.ts +57 -92
  12. package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
  13. package/dist/ts/ts/Core/ArcTypes.js +425 -311
  14. package/dist/ts/ts/Core/DataMap.d.ts +18 -17
  15. package/dist/ts/ts/Core/DataMap.d.ts.map +1 -1
  16. package/dist/ts/ts/Core/DataMap.js +82 -64
  17. package/dist/ts/ts/Core/IdentifierSetters.d.ts.map +1 -1
  18. package/dist/ts/ts/Core/IdentifierSetters.js +1 -2
  19. package/dist/ts/ts/Json/DataMap/DataMap.d.ts.map +1 -1
  20. package/dist/ts/ts/Json/DataMap/DataMap.js +3 -3
  21. package/dist/ts/ts/Json/Workflow.d.ts +1 -1
  22. package/dist/ts/ts/Json/Workflow.d.ts.map +1 -1
  23. package/dist/ts/ts/Json/Workflow.js +17 -17
  24. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
  25. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +7 -6
  26. package/dist/ts/ts/Spreadsheet/DataMap.d.ts.map +1 -1
  27. package/dist/ts/ts/Spreadsheet/DataMap.js +2 -2
  28. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts.map +1 -1
  29. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +4 -4
  30. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
  31. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +23 -13
  32. package/package.json +1 -1
@@ -1,5 +1,4 @@
1
1
  import { defaultArg, unwrap, value, map } from '../../node_modules/@fable-org/fable-library-js/Option.js';
2
- import { DataMap__Copy } from './DataMap.js';
3
2
  import { toArray, filter, contains, forAll, fold, length, toList, delay, map as map$1, item, choose, exists, tryFindIndex, iterate, removeAt, tryFind, append, collect } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
4
3
  import { stringHash, getEnumerator, safeHash, equals, disposeSafe, defaultOf } from '../../node_modules/@fable-org/fable-library-js/Util.js';
5
4
  import { ResizeArray_map, ResizeArray_filter, ResizeArray_choose } from './Helper/Collections.js';
@@ -372,7 +371,7 @@ class ArcAssay extends ArcTables {
372
371
  const this$ = this;
373
372
  const nextTables = ResizeArray_map((c) => c.Copy(), this$.Tables);
374
373
  const nextComments = ResizeArray_map((c_1) => c_1.Copy(), this$.Comments);
375
- const nextDataMap = map(DataMap__Copy, this$.DataMap);
374
+ const nextDataMap = map((d) => d.Copy(), this$.DataMap);
376
375
  const nextPerformers = ResizeArray_map((c_2) => c_2.Copy(), this$.Performers);
377
376
  const identifier = this$.Identifier;
378
377
  const title = this$.Title;
@@ -1153,7 +1152,7 @@ class ArcStudy extends ArcTables {
1153
1152
  const nextContacts = ResizeArray_map((c_1) => c_1.Copy(), this$.Contacts);
1154
1153
  const nextPublications = ResizeArray_map((c_2) => c_2.Copy(), this$.Publications);
1155
1154
  const nextStudyDesignDescriptors = ResizeArray_map((c_3) => c_3.Copy(), this$.StudyDesignDescriptors);
1156
- const nextDataMap = map(DataMap__Copy, this$.DataMap);
1155
+ const nextDataMap = map((d) => d.Copy(), this$.DataMap);
1157
1156
  let study;
1158
1157
  const identifier = this$.Identifier;
1159
1158
  const title = this$.Title;
@@ -1300,30 +1299,364 @@ class ArcWorkflow {
1300
1299
  this["comments@1166"] = defaultArg(comments, []);
1301
1300
  this.staticHash = 0;
1302
1301
  }
1302
+ get Identifier() {
1303
+ const this$ = this;
1304
+ return this$["identifier@1151"];
1305
+ }
1306
+ set Identifier(i) {
1307
+ const this$ = this;
1308
+ this$["identifier@1151"] = i;
1309
+ }
1310
+ get Investigation() {
1311
+ const this$ = this;
1312
+ return unwrap(this$.investigation);
1313
+ }
1314
+ set Investigation(a) {
1315
+ const this$ = this;
1316
+ this$.investigation = a;
1317
+ }
1318
+ get Title() {
1319
+ const this$ = this;
1320
+ return unwrap(this$["title@1156"]);
1321
+ }
1322
+ set Title(t) {
1323
+ const this$ = this;
1324
+ this$["title@1156"] = t;
1325
+ }
1326
+ get Description() {
1327
+ const this$ = this;
1328
+ return unwrap(this$["description@1157"]);
1329
+ }
1330
+ set Description(d) {
1331
+ const this$ = this;
1332
+ this$["description@1157"] = d;
1333
+ }
1334
+ get SubWorkflowIdentifiers() {
1335
+ const this$ = this;
1336
+ return this$["subWorkflowIdentifiers@1158"];
1337
+ }
1338
+ set SubWorkflowIdentifiers(s) {
1339
+ const this$ = this;
1340
+ this$["subWorkflowIdentifiers@1158"] = s;
1341
+ }
1342
+ get WorkflowType() {
1343
+ const this$ = this;
1344
+ return unwrap(this$["workflowType@1159"]);
1345
+ }
1346
+ set WorkflowType(w) {
1347
+ const this$ = this;
1348
+ this$["workflowType@1159"] = w;
1349
+ }
1350
+ get URI() {
1351
+ const this$ = this;
1352
+ return unwrap(this$["uri@1160"]);
1353
+ }
1354
+ set URI(u) {
1355
+ const this$ = this;
1356
+ this$["uri@1160"] = u;
1357
+ }
1358
+ get Version() {
1359
+ const this$ = this;
1360
+ return unwrap(this$["version@1161"]);
1361
+ }
1362
+ set Version(v) {
1363
+ const this$ = this;
1364
+ this$["version@1161"] = v;
1365
+ }
1366
+ get Parameters() {
1367
+ const this$ = this;
1368
+ return this$["parameters@1162"];
1369
+ }
1370
+ set Parameters(p) {
1371
+ const this$ = this;
1372
+ this$["parameters@1162"] = p;
1373
+ }
1374
+ get Components() {
1375
+ const this$ = this;
1376
+ return this$["components@1163"];
1377
+ }
1378
+ set Components(c) {
1379
+ const this$ = this;
1380
+ this$["components@1163"] = c;
1381
+ }
1382
+ get DataMap() {
1383
+ const this$ = this;
1384
+ return unwrap(this$.dataMap);
1385
+ }
1386
+ set DataMap(dm) {
1387
+ const this$ = this;
1388
+ this$.dataMap = dm;
1389
+ }
1390
+ get Contacts() {
1391
+ const this$ = this;
1392
+ return this$["contacts@1165"];
1393
+ }
1394
+ set Contacts(c) {
1395
+ const this$ = this;
1396
+ this$["contacts@1165"] = c;
1397
+ }
1398
+ get Comments() {
1399
+ const this$ = this;
1400
+ return this$["comments@1166"];
1401
+ }
1402
+ set Comments(c) {
1403
+ const this$ = this;
1404
+ this$["comments@1166"] = c;
1405
+ }
1406
+ get StaticHash() {
1407
+ const this$ = this;
1408
+ return this$.staticHash | 0;
1409
+ }
1410
+ set StaticHash(s) {
1411
+ const this$ = this;
1412
+ this$.staticHash = s | 0;
1413
+ }
1414
+ static init(identifier) {
1415
+ return new ArcWorkflow(identifier);
1416
+ }
1417
+ static create(identifier, title, description, workflowType, uri, version, subWorkflowIdentifiers, parameters, components, datamap, contacts, comments) {
1418
+ 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));
1419
+ }
1420
+ static make(identifier, title, description, workflowType, uri, version, subWorkflowIdentifiers, parameters, components, datamap, contacts, comments) {
1421
+ return new ArcWorkflow(identifier, unwrap(title), unwrap(description), unwrap(workflowType), unwrap(uri), unwrap(version), subWorkflowIdentifiers, parameters, components, unwrap(datamap), contacts, comments);
1422
+ }
1423
+ static get FileName() {
1424
+ return "isa.run.xlsx";
1425
+ }
1426
+ get SubWorkflowIdentifiersCount() {
1427
+ const this$ = this;
1428
+ return this$.SubWorkflowIdentifiers.length | 0;
1429
+ }
1430
+ get SubWorkflowCount() {
1431
+ const this$ = this;
1432
+ return this$.SubWorkflows.length | 0;
1433
+ }
1434
+ get SubWorkflows() {
1435
+ const this$ = this;
1436
+ let inv;
1437
+ const investigation = this$.Investigation;
1438
+ if (investigation != null) {
1439
+ inv = value(investigation);
1440
+ } else {
1441
+ throw new Error("Cannot execute this function. Object is not part of ArcInvestigation.");
1442
+ }
1443
+ const collection = choose((workflowIdentifier) => inv.TryGetWorkflow(workflowIdentifier), this$.SubWorkflowIdentifiers);
1444
+ return Array.from(collection);
1445
+ }
1446
+ get VacantSubWorkflowIdentifiers() {
1447
+ const this$ = this;
1448
+ let inv;
1449
+ const investigation = this$.Investigation;
1450
+ if (investigation != null) {
1451
+ inv = value(investigation);
1452
+ } else {
1453
+ throw new Error("Cannot execute this function. Object is not part of ArcInvestigation.");
1454
+ }
1455
+ const collection = filter((arg) => !inv.ContainsWorkflow(arg), this$.SubWorkflowIdentifiers);
1456
+ return Array.from(collection);
1457
+ }
1458
+ AddSubWorkflow(subWorkflow) {
1459
+ const this$ = this;
1460
+ let inv;
1461
+ const investigation = this$.Investigation;
1462
+ if (investigation != null) {
1463
+ inv = value(investigation);
1464
+ } else {
1465
+ throw new Error("Cannot execute this function. Object is not part of ArcInvestigation.");
1466
+ }
1467
+ inv.AddWorkflow(subWorkflow);
1468
+ }
1469
+ static addSubWorkflow(subWorkflow) {
1470
+ return (workflow) => {
1471
+ const newWorkflow = workflow.Copy();
1472
+ newWorkflow.AddSubWorkflow(subWorkflow);
1473
+ return newWorkflow;
1474
+ };
1475
+ }
1476
+ InitSubWorkflow(subWorkflowIdentifier) {
1477
+ const this$ = this;
1478
+ const subWorkflow = new ArcWorkflow(subWorkflowIdentifier);
1479
+ this$.AddSubWorkflow(subWorkflow);
1480
+ return subWorkflow;
1481
+ }
1482
+ static initSubWorkflow(subWorkflowIdentifier) {
1483
+ return (workflow) => {
1484
+ const copy = workflow.Copy();
1485
+ return [copy, copy.InitSubWorkflow(subWorkflowIdentifier)];
1486
+ };
1487
+ }
1488
+ RegisterSubWorkflow(subWorkflowIdentifier) {
1489
+ const this$ = this;
1490
+ if (contains(subWorkflowIdentifier, this$.SubWorkflowIdentifiers, {
1491
+ Equals: (x, y) => x === y,
1492
+ GetHashCode: stringHash
1493
+ })) {
1494
+ throw new Error(`SubWorkflow \`${subWorkflowIdentifier}\` is already registered on the workflow.`);
1495
+ }
1496
+ void this$.SubWorkflowIdentifiers.push(subWorkflowIdentifier);
1497
+ }
1498
+ static registerSubWorkflow(subWorkflowIdentifier) {
1499
+ return (workflow) => {
1500
+ const copy = workflow.Copy();
1501
+ copy.RegisterSubWorkflow(subWorkflowIdentifier);
1502
+ return copy;
1503
+ };
1504
+ }
1505
+ DeregisterSubWorkflow(subWorkflowIdentifier) {
1506
+ const this$ = this;
1507
+ removeInPlace(subWorkflowIdentifier, this$.SubWorkflowIdentifiers, {
1508
+ Equals: (x, y) => x === y,
1509
+ GetHashCode: stringHash
1510
+ });
1511
+ }
1512
+ static deregisterSubWorkflow(subWorkflowIdentifier) {
1513
+ return (workflow) => {
1514
+ const copy = workflow.Copy();
1515
+ copy.DeregisterSubWorkflow(subWorkflowIdentifier);
1516
+ return copy;
1517
+ };
1518
+ }
1519
+ GetRegisteredSubWorkflow(subWorkflowIdentifier) {
1520
+ const this$ = this;
1521
+ if (!contains(subWorkflowIdentifier, this$.SubWorkflowIdentifiers, {
1522
+ Equals: (x, y) => x === y,
1523
+ GetHashCode: stringHash
1524
+ })) {
1525
+ throw new Error(`SubWorkflow \`${subWorkflowIdentifier}\` is not registered on the workflow.`);
1526
+ }
1527
+ let inv;
1528
+ const investigation = this$.Investigation;
1529
+ if (investigation != null) {
1530
+ inv = value(investigation);
1531
+ } else {
1532
+ throw new Error("Cannot execute this function. Object is not part of ArcInvestigation.");
1533
+ }
1534
+ return inv.GetWorkflow(subWorkflowIdentifier);
1535
+ }
1536
+ static getRegisteredSubWorkflow(subWorkflowIdentifier) {
1537
+ return (workflow) => {
1538
+ const copy = workflow.Copy();
1539
+ return copy.GetRegisteredSubWorkflow(subWorkflowIdentifier);
1540
+ };
1541
+ }
1542
+ static getRegisteredSubWorkflows() {
1543
+ return (workflow) => {
1544
+ const copy = workflow.Copy();
1545
+ return copy.SubWorkflows;
1546
+ };
1547
+ }
1548
+ GetRegisteredSubWorkflowsOrIdentifier() {
1549
+ const this$ = this;
1550
+ const matchValue = this$.Investigation;
1551
+ if (matchValue == null) {
1552
+ return ResizeArray_map((identifier_1) => ArcWorkflow.init(identifier_1), this$.SubWorkflowIdentifiers);
1553
+ } else {
1554
+ const i = value(matchValue);
1555
+ return ResizeArray_map((identifier) => {
1556
+ const matchValue_1 = i.TryGetWorkflow(identifier);
1557
+ if (matchValue_1 == null) {
1558
+ return ArcWorkflow.init(identifier);
1559
+ } else {
1560
+ return value(matchValue_1);
1561
+ }
1562
+ }, this$.SubWorkflowIdentifiers);
1563
+ }
1564
+ }
1565
+ static getRegisteredSubWorkflowsOrIdentifier() {
1566
+ return (workflow) => {
1567
+ const copy = workflow.Copy();
1568
+ return copy.GetRegisteredSubWorkflowsOrIdentifier();
1569
+ };
1570
+ }
1571
+ Copy(copyInvestigationRef) {
1572
+ const this$ = this;
1573
+ const copyInvestigationRef_1 = defaultArg(copyInvestigationRef, false);
1574
+ const nextWorkFlowType = map((w) => w.Copy(), this$.WorkflowType);
1575
+ const nextSubWorkflowIdentifiers = Array.from(this$.SubWorkflowIdentifiers);
1576
+ const nextParameters = ResizeArray_map((x) => x, this$.Parameters);
1577
+ const nextComponents = ResizeArray_map((x_1) => x_1, this$.Components);
1578
+ const nextDataMap = map((d) => d.Copy(), this$.DataMap);
1579
+ const nextContacts = ResizeArray_map((c) => c.Copy(), this$.Contacts);
1580
+ const nextComments = ResizeArray_map((c_1) => c_1.Copy(), this$.Comments);
1581
+ let workflow;
1582
+ const identifier = this$.Identifier;
1583
+ const title = this$.Title;
1584
+ const description = this$.Description;
1585
+ const uri = this$.URI;
1586
+ const version = this$.Version;
1587
+ workflow = ArcWorkflow.make(identifier, title, description, nextWorkFlowType, uri, version, nextSubWorkflowIdentifiers, nextParameters, nextComponents, nextDataMap, nextContacts, nextComments);
1588
+ if (copyInvestigationRef_1) {
1589
+ workflow.Investigation = this$.Investigation;
1590
+ }
1591
+ return workflow;
1592
+ }
1593
+ StructurallyEquals(other) {
1594
+ let a, b, a_1, b_1, a_2, b_2, a_3, b_3, a_4, b_4;
1595
+ const this$ = this;
1596
+ 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) => {
1597
+ if (acc) {
1598
+ return e;
1599
+ } else {
1600
+ return false;
1601
+ }
1602
+ }, 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) => {
1603
+ if (acc_1) {
1604
+ return e_1;
1605
+ } else {
1606
+ return false;
1607
+ }
1608
+ }, 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) => {
1609
+ if (acc_2) {
1610
+ return e_2;
1611
+ } else {
1612
+ return false;
1613
+ }
1614
+ }, 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) => {
1615
+ if (acc_3) {
1616
+ return e_3;
1617
+ } else {
1618
+ return false;
1619
+ }
1620
+ }, 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) => {
1621
+ if (acc_4) {
1622
+ return e_4;
1623
+ } else {
1624
+ return false;
1625
+ }
1626
+ }, 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))))))]);
1627
+ }
1628
+ ReferenceEquals(other) {
1629
+ const this$ = this;
1630
+ return this$ === other;
1631
+ }
1303
1632
  toString() {
1304
1633
  const this$ = this;
1305
- const arg = ArcWorkflow__get_Identifier(this$);
1306
- const arg_1 = ArcWorkflow__get_Title(this$);
1307
- const arg_2 = ArcWorkflow__get_Description(this$);
1308
- const arg_3 = ArcWorkflow__get_WorkflowType(this$);
1309
- const arg_4 = ArcWorkflow__get_URI(this$);
1310
- const arg_5 = ArcWorkflow__get_Version(this$);
1311
- const arg_6 = ArcWorkflow__get_SubWorkflowIdentifiers(this$);
1312
- const arg_7 = ArcWorkflow__get_Parameters(this$);
1313
- const arg_8 = ArcWorkflow__get_Components(this$);
1314
- const arg_9 = ArcWorkflow__get_DataMap(this$);
1315
- const arg_10 = ArcWorkflow__get_Contacts(this$);
1316
- const arg_11 = ArcWorkflow__get_Comments(this$);
1634
+ const arg = this$.Identifier;
1635
+ const arg_1 = this$.Title;
1636
+ const arg_2 = this$.Description;
1637
+ const arg_3 = this$.WorkflowType;
1638
+ const arg_4 = this$.URI;
1639
+ const arg_5 = this$.Version;
1640
+ const arg_6 = this$.SubWorkflowIdentifiers;
1641
+ const arg_7 = this$.Parameters;
1642
+ const arg_8 = this$.Components;
1643
+ const arg_9 = this$.DataMap;
1644
+ const arg_10 = this$.Contacts;
1645
+ const arg_11 = this$.Comments;
1317
1646
  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
1647
  }
1319
1648
  Equals(other) {
1320
1649
  let s;
1321
1650
  const this$ = this;
1322
- return other instanceof ArcWorkflow && (s = other, ArcWorkflow__StructurallyEquals_Z1C75CB0E(this$, s));
1651
+ return other instanceof ArcWorkflow && (s = other, this$.StructurallyEquals(s));
1323
1652
  }
1324
1653
  GetHashCode() {
1325
1654
  const this$ = this;
1326
- 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$)), boxHashOption(ArcWorkflow__get_DataMap(this$)), boxHashSeq(ArcWorkflow__get_Contacts(this$)), boxHashSeq(ArcWorkflow__get_Comments(this$))]) | 0;
1655
+ 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;
1656
+ }
1657
+ GetLightHashCode() {
1658
+ const this$ = this;
1659
+ 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
1660
  }
1328
1661
  }
1329
1662
  function ArcWorkflow_$reflection() {
@@ -1717,7 +2050,7 @@ class ArcRun extends ArcTables {
1717
2050
  const this$ = this;
1718
2051
  const nextTables = ResizeArray_map((c) => c.Copy(), this$.Tables);
1719
2052
  const nextComments = ResizeArray_map((c_1) => c_1.Copy(), this$.Comments);
1720
- const nextDataMap = map(DataMap__Copy, this$.DataMap);
2053
+ const nextDataMap = map((d) => d.Copy(), this$.DataMap);
1721
2054
  const nextPerformers = ResizeArray_map((c_2) => c_2.Copy(), this$.Performers);
1722
2055
  const nextWorkflowIdentifiers = ResizeArray_map((c_3) => c_3, this$.WorkflowIdentifiers);
1723
2056
  const identifier = this$.Identifier;
@@ -2024,7 +2357,8 @@ class ArcInvestigation {
2024
2357
  let enumerator_2 = getEnumerator(wss);
2025
2358
  try {
2026
2359
  while (enumerator_2["System.Collections.IEnumerator.MoveNext"]()) {
2027
- ArcWorkflow__set_Investigation_Z1E102E3E(enumerator_2["System.Collections.Generic.IEnumerator`1.get_Current"](), this$.contents);
2360
+ const w = enumerator_2["System.Collections.Generic.IEnumerator`1.get_Current"]();
2361
+ w.Investigation = this$.contents;
2028
2362
  }
2029
2363
  } finally {
2030
2364
  disposeSafe(enumerator_2);
@@ -2334,6 +2668,48 @@ class ArcInvestigation {
2334
2668
  return newInv;
2335
2669
  };
2336
2670
  }
2671
+ RenameRun(oldIdentifier, newIdentifier) {
2672
+ const this$ = this;
2673
+ iterate((a) => {
2674
+ if (a.Identifier === oldIdentifier) {
2675
+ a.Identifier = newIdentifier;
2676
+ }
2677
+ }, this$.Runs);
2678
+ }
2679
+ static renameRun(oldIdentifier, newIdentifier) {
2680
+ return (inv) => {
2681
+ const newInv = inv.Copy();
2682
+ newInv.RenameRun(oldIdentifier, newIdentifier);
2683
+ return newInv;
2684
+ };
2685
+ }
2686
+ RenameWorkflow(oldIdentifier, newIdentifier) {
2687
+ const this$ = this;
2688
+ iterate((w) => {
2689
+ if (w.Identifier === oldIdentifier) {
2690
+ w.Identifier = newIdentifier;
2691
+ }
2692
+ const matchValue = tryFindIndex((subId) => subId === oldIdentifier, w.SubWorkflowIdentifiers);
2693
+ if (matchValue != null) {
2694
+ const i = value(matchValue) | 0;
2695
+ w.SubWorkflowIdentifiers[i] = newIdentifier;
2696
+ }
2697
+ }, this$.Workflows);
2698
+ iterate((r) => {
2699
+ const matchValue_1 = tryFindIndex((wId) => wId === oldIdentifier, r.WorkflowIdentifiers);
2700
+ if (matchValue_1 != null) {
2701
+ const i_1 = value(matchValue_1) | 0;
2702
+ r.WorkflowIdentifiers[i_1] = newIdentifier;
2703
+ }
2704
+ }, this$.Runs);
2705
+ }
2706
+ static renameWorkflow(oldIdentifier, newIdentifier) {
2707
+ return (inv) => {
2708
+ const newInv = inv.Copy();
2709
+ newInv.RenameWorkflow(oldIdentifier, newIdentifier);
2710
+ return newInv;
2711
+ };
2712
+ }
2337
2713
  SetAssayAt(index, assay) {
2338
2714
  const this$ = this;
2339
2715
  const assayIdent = assay.Identifier;
@@ -2746,11 +3122,11 @@ class ArcInvestigation {
2746
3122
  }
2747
3123
  get WorkflowIdentifiers() {
2748
3124
  const this$ = this;
2749
- return toArray(map$1(ArcWorkflow__get_Identifier, this$.Workflows));
3125
+ return toArray(map$1((x) => x.Identifier, this$.Workflows));
2750
3126
  }
2751
3127
  GetWorkflowIndex(workflowIdentifier) {
2752
3128
  const this$ = this;
2753
- const index = this$.Workflows.findIndex((w) => ArcWorkflow__get_Identifier(w) === workflowIdentifier) | 0;
3129
+ const index = this$.Workflows.findIndex((w) => w.Identifier === workflowIdentifier) | 0;
2754
3130
  if (index === -1) {
2755
3131
  throw new Error(`Unable to find workflow with specified identifier '${workflowIdentifier}'!`);
2756
3132
  }
@@ -2762,12 +3138,12 @@ class ArcInvestigation {
2762
3138
  AddWorkflow(workflow) {
2763
3139
  const this$ = this;
2764
3140
  const workflow_1 = workflow;
2765
- const matchValue = tryFindIndex((x) => ArcWorkflow__get_Identifier(x) === ArcWorkflow__get_Identifier(workflow_1), this$.Workflows);
3141
+ const matchValue = tryFindIndex((x) => x.Identifier === workflow_1.Identifier, this$.Workflows);
2766
3142
  if (matchValue == null) {
2767
3143
  } else {
2768
- throw new Error(`Cannot create workflow with name ${ArcWorkflow__get_Identifier(workflow_1)}, as workflow names must be unique and workflow at index ${value(matchValue)} has the same name.`);
3144
+ 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
3145
  }
2770
- ArcWorkflow__set_Investigation_Z1E102E3E(workflow, this$);
3146
+ workflow.Investigation = this$;
2771
3147
  void this$.Workflows.push(workflow);
2772
3148
  }
2773
3149
  static addWorkflow(workflow) {
@@ -2779,7 +3155,7 @@ class ArcInvestigation {
2779
3155
  }
2780
3156
  InitWorkflow(workflowIdentifier) {
2781
3157
  const this$ = this;
2782
- const workflow = ArcWorkflow_init_Z721C83C5(workflowIdentifier);
3158
+ const workflow = ArcWorkflow.init(workflowIdentifier);
2783
3159
  this$.AddWorkflow(workflow);
2784
3160
  return workflow;
2785
3161
  }
@@ -2802,8 +3178,22 @@ class ArcInvestigation {
2802
3178
  }
2803
3179
  DeleteWorkflow(workflowIdentifier) {
2804
3180
  const this$ = this;
2805
- const index = this$.Workflows.findIndex((w) => ArcWorkflow__get_Identifier(w) === workflowIdentifier) | 0;
3181
+ const index = this$.Workflows.findIndex((w) => w.Identifier === workflowIdentifier) | 0;
2806
3182
  this$.DeleteWorkflowAt(index);
3183
+ iterate((w_1) => {
3184
+ const matchValue = tryFindIndex((swi) => swi === workflowIdentifier, w_1.SubWorkflowIdentifiers);
3185
+ if (matchValue != null) {
3186
+ const swiIndex = value(matchValue) | 0;
3187
+ w_1.SubWorkflowIdentifiers.splice(swiIndex, 1);
3188
+ }
3189
+ }, this$.Workflows);
3190
+ iterate((r) => {
3191
+ const matchValue_1 = tryFindIndex((wi) => wi === workflowIdentifier, r.WorkflowIdentifiers);
3192
+ if (matchValue_1 != null) {
3193
+ const wiIndex = value(matchValue_1) | 0;
3194
+ r.WorkflowIdentifiers.splice(wiIndex, 1);
3195
+ }
3196
+ }, this$.Runs);
2807
3197
  }
2808
3198
  static deleteWorkflow(workflowIdentifier) {
2809
3199
  return (inv) => {
@@ -2839,7 +3229,7 @@ class ArcInvestigation {
2839
3229
  }
2840
3230
  TryGetWorkflow(workflowIdentifier) {
2841
3231
  const this$ = this;
2842
- return tryFind((w) => ArcWorkflow__get_Identifier(w) === workflowIdentifier, this$.Workflows);
3232
+ return tryFind((w) => w.Identifier === workflowIdentifier, this$.Workflows);
2843
3233
  }
2844
3234
  static tryGetWorkflow(workflowIdentifier) {
2845
3235
  return (inv) => {
@@ -2849,7 +3239,7 @@ class ArcInvestigation {
2849
3239
  }
2850
3240
  ContainsWorkflow(workflowIdentifier) {
2851
3241
  const this$ = this;
2852
- return exists((w) => ArcWorkflow__get_Identifier(w) === workflowIdentifier, this$.Workflows);
3242
+ return exists((w) => w.Identifier === workflowIdentifier, this$.Workflows);
2853
3243
  }
2854
3244
  static containsWorkflow(workflowIdentifier) {
2855
3245
  return (inv) => inv.ContainsWorkflow(workflowIdentifier);
@@ -2857,12 +3247,12 @@ class ArcInvestigation {
2857
3247
  SetWorkflowAt(index, workflow) {
2858
3248
  const this$ = this;
2859
3249
  const workflow_1 = workflow;
2860
- const matchValue = tryFindIndex((x) => ArcWorkflow__get_Identifier(x) === ArcWorkflow__get_Identifier(workflow_1), this$.Workflows);
3250
+ const matchValue = tryFindIndex((x) => x.Identifier === workflow_1.Identifier, removeAt(index, this$.Workflows));
2861
3251
  if (matchValue == null) {
2862
3252
  } else {
2863
- throw new Error(`Cannot create workflow with name ${ArcWorkflow__get_Identifier(workflow_1)}, as workflow names must be unique and workflow at index ${value(matchValue)} has the same name.`);
3253
+ 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
3254
  }
2865
- ArcWorkflow__set_Investigation_Z1E102E3E(workflow, this$);
3255
+ workflow.Investigation = this$;
2866
3256
  this$.Workflows[index] = workflow;
2867
3257
  }
2868
3258
  SetWorkflow(workflowIdentifier, workflow) {
@@ -3001,7 +3391,7 @@ class ArcInvestigation {
3001
3391
  SetRunAt(index, run) {
3002
3392
  const this$ = this;
3003
3393
  const run_1 = run;
3004
- const matchValue = tryFindIndex((x) => x.Identifier === run_1.Identifier, this$.Runs);
3394
+ const matchValue = tryFindIndex((x) => x.Identifier === run_1.Identifier, removeAt(index, this$.Runs));
3005
3395
  if (matchValue == null) {
3006
3396
  } else {
3007
3397
  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 +3560,8 @@ class ArcInvestigation {
3170
3560
  try {
3171
3561
  while (enumerator_2["System.Collections.IEnumerator.MoveNext"]()) {
3172
3562
  const workflow = enumerator_2["System.Collections.Generic.IEnumerator`1.get_Current"]();
3173
- void nextWorkflows.push(ArcWorkflow__Copy_6FCE9E49(workflow));
3563
+ const copy_2 = workflow.Copy();
3564
+ void nextWorkflows.push(copy_2);
3174
3565
  }
3175
3566
  } finally {
3176
3567
  disposeSafe(enumerator_2);
@@ -3313,282 +3704,5 @@ function ArcTypesAux_ErrorMsgs_unableToFindWorkflowIdentifier(workflowIdentifier
3313
3704
  function ArcTypesAux_ErrorMsgs_unableToFindRunIdentifier(runIdentifier, investigationIdentifier) {
3314
3705
  return `Error. Unable to find run with identifier '${runIdentifier}' in investigation ${investigationIdentifier}.`;
3315
3706
  }
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
3707
 
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, ArcWorkflow__AddSubWorkflow_Z1C75CB0E, ArcWorkflow__Copy_6FCE9E49, ArcWorkflow__DeregisterSubWorkflow_Z721C83C5, ArcWorkflow__GetLightHashCode, ArcWorkflow__GetRegisteredSubWorkflow_Z721C83C5, ArcWorkflow__GetRegisteredSubWorkflowsOrIdentifier, ArcWorkflow__InitSubWorkflow_Z721C83C5, ArcWorkflow__ReferenceEquals_1680536E, ArcWorkflow__RegisterSubWorkflow_Z721C83C5, ArcWorkflow__StructurallyEquals_Z1C75CB0E, ArcWorkflow__get_Comments, ArcWorkflow__get_Components, ArcWorkflow__get_Contacts, ArcWorkflow__get_DataMap, ArcWorkflow__get_Description, ArcWorkflow__get_Identifier, ArcWorkflow__get_Investigation, ArcWorkflow__get_Parameters, ArcWorkflow__get_StaticHash, ArcWorkflow__get_SubWorkflowCount, ArcWorkflow__get_SubWorkflowIdentifiers, ArcWorkflow__get_SubWorkflowIdentifiersCount, ArcWorkflow__get_SubWorkflows, ArcWorkflow__get_Title, ArcWorkflow__get_URI, ArcWorkflow__get_VacantSubWorkflowIdentifiers, ArcWorkflow__get_Version, ArcWorkflow__get_WorkflowType, ArcWorkflow__set_Comments_149C14BB, ArcWorkflow__set_Components_Z3A507DDE, ArcWorkflow__set_Contacts_Z7E0D1CA3, ArcWorkflow__set_DataMap_51F1E59E, ArcWorkflow__set_Description_6DFDD678, ArcWorkflow__set_Identifier_Z721C83C5, ArcWorkflow__set_Investigation_Z1E102E3E, ArcWorkflow__set_Parameters_10749ED2, ArcWorkflow__set_StaticHash_Z524259A4, ArcWorkflow__set_SubWorkflowIdentifiers_70A00D82, ArcWorkflow__set_Title_6DFDD678, ArcWorkflow__set_URI_6DFDD678, ArcWorkflow__set_Version_6DFDD678, ArcWorkflow__set_WorkflowType_279AAFF2, ArcWorkflow_addSubWorkflow_Z1C75CB0E, ArcWorkflow_create_Z3BB02240, ArcWorkflow_deregisterSubWorkflow_Z721C83C5, ArcWorkflow_getRegisteredSubWorkflow_Z721C83C5, ArcWorkflow_getRegisteredSubWorkflows, ArcWorkflow_getRegisteredSubWorkflowsOrIdentifier, ArcWorkflow_get_FileName, ArcWorkflow_initSubWorkflow_Z721C83C5, ArcWorkflow_init_Z721C83C5, ArcWorkflow_make, ArcWorkflow_registerSubWorkflow_Z721C83C5 };
3708
+ 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 };