@nfdi4plants/arctrl 2.0.0-beta.8 → 2.0.0

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/ARC.js CHANGED
@@ -1,4 +1,4 @@
1
- import { concat, fold, map, exactlyOne, tryPick, choose } from "./fable_modules/fable-library-js.4.16.0/Array.js";
1
+ import { append as append_1, contains as contains_1, concat, fold, map, exactlyOne, tryPick, choose } from "./fable_modules/fable-library-js.4.16.0/Array.js";
2
2
  import { ARCtrl_ArcAssay__ArcAssay_ToUpdateContract, ARCtrl_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49, ARCtrl_ArcAssay__ArcAssay_ToDeleteContract, ARCtrl_ArcAssay__ArcAssay_tryFromReadContract_Static_7570923F } from "./Contract/ArcAssay.js";
3
3
  import { ARCtrl_DataMap__DataMap_ToUpdateContractForAssay_Z721C83C5, ARCtrl_DataMap__DataMap_ToCreateContractForAssay_Z721C83C5, ARCtrl_DataMap__DataMap_ToUpdateContractForStudy_Z721C83C5, ARCtrl_DataMap__DataMap_ToCreateContractForStudy_Z721C83C5, ARCtrl_DataMap__DataMap_tryFromReadContractForStudy_Static, ARCtrl_DataMap__DataMap_tryFromReadContractForAssay_Static } from "./Contract/Datamap.js";
4
4
  import { ARCtrl_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49, ARCtrl_ArcStudy__ArcStudy_ToUpdateContract, ARCtrl_ArcStudy__ArcStudy_tryFromReadContract_Static_7570923F } from "./Contract/ArcStudy.js";
@@ -15,12 +15,12 @@ import { ofArray } from "./fable_modules/fable-library-js.4.16.0/List.js";
15
15
  import { tryISAReadContractFromPath } from "./Contract/ARC.js";
16
16
  import { ArcTables } from "./Core/Table/ArcTables.js";
17
17
  import { addToDict } from "./fable_modules/fable-library-js.4.16.0/MapUtil.js";
18
- import { toFsWorkbook } from "./Spreadsheet/ArcInvestigation.js";
18
+ import { ARCtrl_ArcInvestigation__ArcInvestigation_toFsWorkbook_Static_Z720BD3FF } from "./Spreadsheet/ArcInvestigation.js";
19
19
  import { ArcInvestigation } from "./Core/ArcTypes.js";
20
20
  import { Assay_datamapFileNameFromIdentifier, Assay_fileNameFromIdentifier, Study_datamapFileNameFromIdentifier, Study_fileNameFromIdentifier } from "./Core/Helper/Identifier.js";
21
21
  import { ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522 } from "./Spreadsheet/ArcStudy.js";
22
22
  import { DataMap__get_StaticHash, DataMap__set_StaticHash_Z524259A4 } from "./Core/DataMap.js";
23
- import { toFsWorkbook as toFsWorkbook_1 } from "./Spreadsheet/DataMap.js";
23
+ import { toFsWorkbook } from "./Spreadsheet/DataMap.js";
24
24
  import { ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F } from "./Spreadsheet/ArcAssay.js";
25
25
  import { Dictionary_tryGet } from "./fable_modules/FsSpreadsheet.6.2.0/Cells/FsCellsCollection.fs.js";
26
26
  import { Clone_createCloneContract_5000466F, Init_createAddRemoteContract_Z721C83C5, gitignoreContract, gitattributesContract, Init_createInitContract_6DFDD678 } from "./Contract/Git.js";
@@ -30,6 +30,7 @@ import { fromString } from "./fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.f
30
30
  import { encoder, decoder as decoder_1 } from "./Json/ARC.js";
31
31
  import { toString } from "./fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
32
32
  import { defaultSpaces } from "./Json/Encode.js";
33
+ import { ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_tryFromReadContract_Static_7570923F, ValidationPackagesConfigHelper_ReadContract, ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toDeleteContract_Static_724DAE55, ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toCreateContract_Static_724DAE55, ValidationPackagesConfigHelper_ConfigFilePath } from "./Contract/ValidationPackagesConfig.js";
33
34
  import { class_type } from "./fable_modules/fable-library-js.4.16.0/Reflection.js";
34
35
 
35
36
  export function ARCAux_getArcAssaysFromContracts(contracts) {
@@ -301,11 +302,11 @@ export class ARC {
301
302
  const workbooks = new Map([]);
302
303
  const matchValue = this$.ISA;
303
304
  if (matchValue == null) {
304
- addToDict(workbooks, "isa.investigation.xlsx", ["ISA_Investigation", toFsWorkbook(ArcInvestigation.create("MISSING_IDENTIFIER_"))]);
305
+ addToDict(workbooks, "isa.investigation.xlsx", ["ISA_Investigation", ARCtrl_ArcInvestigation__ArcInvestigation_toFsWorkbook_Static_Z720BD3FF(ArcInvestigation.create("MISSING_IDENTIFIER_"))]);
305
306
  }
306
307
  else {
307
308
  const inv = matchValue;
308
- addToDict(workbooks, "isa.investigation.xlsx", ["ISA_Investigation", toFsWorkbook(inv)]);
309
+ addToDict(workbooks, "isa.investigation.xlsx", ["ISA_Investigation", ARCtrl_ArcInvestigation__ArcInvestigation_toFsWorkbook_Static_Z720BD3FF(inv)]);
309
310
  inv.StaticHash = (inv.GetLightHashCode() | 0);
310
311
  iterate((s) => {
311
312
  s.StaticHash = (s.GetLightHashCode() | 0);
@@ -313,7 +314,7 @@ export class ARC {
313
314
  if (s.DataMap != null) {
314
315
  const dm = value_2(s.DataMap);
315
316
  DataMap__set_StaticHash_Z524259A4(dm, safeHash(dm));
316
- addToDict(workbooks, Study_datamapFileNameFromIdentifier(s.Identifier), ["ISA_Datamap", toFsWorkbook_1(dm)]);
317
+ addToDict(workbooks, Study_datamapFileNameFromIdentifier(s.Identifier), ["ISA_Datamap", toFsWorkbook(dm)]);
317
318
  }
318
319
  }, inv.Studies);
319
320
  iterate((a) => {
@@ -322,7 +323,7 @@ export class ARC {
322
323
  if (a.DataMap != null) {
323
324
  const dm_1 = value_2(a.DataMap);
324
325
  DataMap__set_StaticHash_Z524259A4(dm_1, safeHash(dm_1));
325
- addToDict(workbooks, Assay_datamapFileNameFromIdentifier(a.Identifier), ["ISA_Datamap", toFsWorkbook_1(dm_1)]);
326
+ addToDict(workbooks, Assay_datamapFileNameFromIdentifier(a.Identifier), ["ISA_Datamap", toFsWorkbook(dm_1)]);
326
327
  }
327
328
  }, inv.Assays);
328
329
  }
@@ -516,11 +517,43 @@ export class ARC {
516
517
  throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
517
518
  })() : matchValue.fields[0]));
518
519
  }
520
+ ToROCrateJsonString(spaces) {
521
+ const this$ = this;
522
+ const value = encoder(value_2(this$._isa));
523
+ return toString(defaultSpaces(spaces), value);
524
+ }
519
525
  static toROCrateJsonString(spaces) {
520
- return (obj) => {
521
- const value = encoder(value_2(obj.ISA));
522
- return toString(defaultSpaces(spaces), value);
523
- };
526
+ return (obj) => obj.ToROCrateJsonString(unwrap(spaces));
527
+ }
528
+ GetValidationPackagesConfigWriteContract(vpc) {
529
+ const this$ = this;
530
+ const paths = this$.FileSystem.Tree.ToFilePaths();
531
+ if (!contains_1(ValidationPackagesConfigHelper_ConfigFilePath, paths, {
532
+ Equals: (x, y) => (x === y),
533
+ GetHashCode: stringHash,
534
+ })) {
535
+ const filePaths = append_1([ValidationPackagesConfigHelper_ConfigFilePath], paths);
536
+ this$.SetFilePaths(filePaths);
537
+ }
538
+ return ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toCreateContract_Static_724DAE55(vpc);
539
+ }
540
+ GetValidationPackagesConfigDeleteContract(vpc) {
541
+ const this$ = this;
542
+ const paths = this$.FileSystem.Tree.ToFilePaths();
543
+ if (contains_1(ValidationPackagesConfigHelper_ConfigFilePath, paths, {
544
+ Equals: (x, y) => (x === y),
545
+ GetHashCode: stringHash,
546
+ })) {
547
+ const filePaths = paths.filter((p) => !(p === ValidationPackagesConfigHelper_ConfigFilePath));
548
+ this$.SetFilePaths(filePaths);
549
+ }
550
+ return ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toDeleteContract_Static_724DAE55(vpc);
551
+ }
552
+ GetValidationPackagesConfigReadContract() {
553
+ return ValidationPackagesConfigHelper_ReadContract;
554
+ }
555
+ GetValidationPackagesConfigFromReadContract(contract) {
556
+ return ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_tryFromReadContract_Static_7570923F(contract);
524
557
  }
525
558
  }
526
559
 
@@ -2,7 +2,7 @@ import { combineMany } from "../FileSystem/Path.js";
2
2
  import { item, equalsWith } from "../fable_modules/fable-library-js.4.16.0/Array.js";
3
3
  import { defaultOf } from "../fable_modules/fable-library-js.4.16.0/Util.js";
4
4
  import { Contract } from "./Contract.js";
5
- import { fromFsWorkbook, toFsWorkbook } from "../Spreadsheet/ArcInvestigation.js";
5
+ import { ARCtrl_ArcInvestigation__ArcInvestigation_fromFsWorkbook_Static_32154C9D, ARCtrl_ArcInvestigation__ArcInvestigation_toFsWorkbook_Static_Z720BD3FF } from "../Spreadsheet/ArcInvestigation.js";
6
6
 
7
7
  export function $007CInvestigationPath$007C_$007C(input) {
8
8
  let matchResult;
@@ -26,11 +26,11 @@ export function $007CInvestigationPath$007C_$007C(input) {
26
26
  }
27
27
 
28
28
  export function ARCtrl_ArcInvestigation__ArcInvestigation_ToCreateContract(this$) {
29
- return Contract.createCreate("isa.investigation.xlsx", "ISA_Investigation", toFsWorkbook(this$));
29
+ return Contract.createCreate("isa.investigation.xlsx", "ISA_Investigation", ARCtrl_ArcInvestigation__ArcInvestigation_toFsWorkbook_Static_Z720BD3FF(this$));
30
30
  }
31
31
 
32
32
  export function ARCtrl_ArcInvestigation__ArcInvestigation_ToUpdateContract(this$) {
33
- return Contract.createUpdate("isa.investigation.xlsx", "ISA_Investigation", toFsWorkbook(this$));
33
+ return Contract.createUpdate("isa.investigation.xlsx", "ISA_Investigation", ARCtrl_ArcInvestigation__ArcInvestigation_toFsWorkbook_Static_Z720BD3FF(this$));
34
34
  }
35
35
 
36
36
  export function ARCtrl_ArcInvestigation__ArcInvestigation_toCreateContract_Static_Z720BD3FF(inv) {
@@ -67,7 +67,7 @@ export function ARCtrl_ArcInvestigation__ArcInvestigation_tryFromReadContract_St
67
67
  }
68
68
  switch (matchResult) {
69
69
  case 0:
70
- return fromFsWorkbook(fsworkbook);
70
+ return ARCtrl_ArcInvestigation__ArcInvestigation_fromFsWorkbook_Static_32154C9D(fsworkbook);
71
71
  default:
72
72
  return void 0;
73
73
  }
@@ -1,10 +1,14 @@
1
1
  import { combineMany } from "../FileSystem/Path.js";
2
+ import { Contract } from "./Contract.js";
2
3
  import { item, equalsWith } from "../fable_modules/fable-library-js.4.16.0/Array.js";
3
4
  import { defaultOf } from "../fable_modules/fable-library-js.4.16.0/Util.js";
4
- import { Contract } from "./Contract.js";
5
5
  import { ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_fromYamlString_Static_Z721C83C5, ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toYamlString_Static_71136F3F } from "../Yaml/ValidationPackagesConfig.js";
6
6
 
7
- export function $007CValidationPackagesYamlPath$007C_$007C(input) {
7
+ export const ValidationPackagesConfigHelper_ConfigFilePath = combineMany([".arc", "validation_packages.yml"]);
8
+
9
+ export const ValidationPackagesConfigHelper_ReadContract = new Contract("READ", ValidationPackagesConfigHelper_ConfigFilePath, "YAML", void 0);
10
+
11
+ export function ValidationPackagesConfigExtensions_$007CValidationPackagesYamlPath$007C_$007C(input) {
8
12
  let matchResult;
9
13
  if (!equalsWith((x, y) => (x === y), input, defaultOf()) && (input.length === 2)) {
10
14
  if (item(0, input) === ".arc") {
@@ -30,18 +34,12 @@ export function $007CValidationPackagesYamlPath$007C_$007C(input) {
30
34
  }
31
35
  }
32
36
 
33
- export const config_file_path = combineMany([".arc", "validation_packages.yml"]);
34
-
35
37
  export function ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_ToCreateContract(this$) {
36
- return Contract.createCreate(config_file_path, "YAML", ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toYamlString_Static_71136F3F()(this$));
37
- }
38
-
39
- export function ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_ToUpdateContract(this$) {
40
- return Contract.createUpdate(config_file_path, "YAML", ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toYamlString_Static_71136F3F()(this$));
38
+ return Contract.createCreate(ValidationPackagesConfigHelper_ConfigFilePath, "YAML", ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toYamlString_Static_71136F3F()(this$));
41
39
  }
42
40
 
43
41
  export function ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_ToDeleteContract(this$) {
44
- return Contract.createDelete(config_file_path);
42
+ return Contract.createDelete(ValidationPackagesConfigHelper_ConfigFilePath);
45
43
  }
46
44
 
47
45
  export function ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toDeleteContract_Static_724DAE55(config) {
@@ -52,19 +50,22 @@ export function ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPa
52
50
  return ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_ToCreateContract(config);
53
51
  }
54
52
 
55
- export function ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toUpdateContract_Static_724DAE55(config) {
56
- return ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_ToUpdateContract(config);
57
- }
58
-
59
53
  export function ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_tryFromReadContract_Static_7570923F(c) {
60
- let matchResult, yaml;
54
+ let yaml;
55
+ let matchResult, p_1, yaml_1;
61
56
  if (c.Operation === "READ") {
62
57
  if (c.DTOType != null) {
63
58
  if (c.DTOType === "YAML") {
64
59
  if (c.DTO != null) {
65
60
  if (typeof c.DTO === "string") {
66
- matchResult = 0;
67
- yaml = c.DTO;
61
+ if ((yaml = c.DTO, c.Path === ValidationPackagesConfigHelper_ConfigFilePath)) {
62
+ matchResult = 0;
63
+ p_1 = c.Path;
64
+ yaml_1 = c.DTO;
65
+ }
66
+ else {
67
+ matchResult = 1;
68
+ }
68
69
  }
69
70
  else {
70
71
  matchResult = 1;
@@ -87,7 +88,7 @@ export function ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPa
87
88
  }
88
89
  switch (matchResult) {
89
90
  case 0:
90
- return ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_fromYamlString_Static_Z721C83C5(yaml);
91
+ return ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_fromYamlString_Static_Z721C83C5(yaml_1);
91
92
  default:
92
93
  return void 0;
93
94
  }
package/Core/ArcTypes.js CHANGED
@@ -7,6 +7,7 @@ import { addRangeInPlace, removeInPlace, contains as contains_1 } from "../fable
7
7
  import { printf, toText } from "../fable_modules/fable-library-js.4.16.0/String.js";
8
8
  import { rangeDouble } from "../fable_modules/fable-library-js.4.16.0/Range.js";
9
9
  import { boxHashSeq, boxHashOption, boxHashArray } from "./Helper/HashCodes.js";
10
+ import { checkValidCharacters } from "./Helper/Identifier.js";
10
11
  import { ArcTablesAux_applyIOMap, ArcTablesAux_getIOMap, ArcTables_$reflection, ArcTables } from "./Table/ArcTables.js";
11
12
  import { class_type } from "../fable_modules/fable-library-js.4.16.0/Reflection.js";
12
13
  import { Array_distinct } from "../fable_modules/fable-library-js.4.16.0/Seq2.js";
@@ -15,16 +16,17 @@ import { FSharpRef } from "../fable_modules/fable-library-js.4.16.0/Types.js";
15
16
  export class ArcAssay extends ArcTables {
16
17
  constructor(identifier, measurementType, technologyType, technologyPlatform, tables, datamap, performers, comments) {
17
18
  super(defaultArg(tables, []));
19
+ let identifier_1;
18
20
  const performers_1 = defaultArg(performers, []);
19
21
  const comments_1 = defaultArg(comments, []);
20
- this["identifier@109"] = identifier;
22
+ this["identifier@109"] = ((identifier_1 = identifier.trim(), (checkValidCharacters(identifier_1), identifier_1)));
21
23
  this.investigation = void 0;
22
- this["measurementType@111"] = measurementType;
23
- this["technologyType@112"] = technologyType;
24
- this["technologyPlatform@113"] = technologyPlatform;
24
+ this["measurementType@114"] = measurementType;
25
+ this["technologyType@115"] = technologyType;
26
+ this["technologyPlatform@116"] = technologyPlatform;
25
27
  this.dataMap = datamap;
26
- this["performers@115-1"] = performers_1;
27
- this["comments@116-1"] = comments_1;
28
+ this["performers@118-1"] = performers_1;
29
+ this["comments@119-1"] = comments_1;
28
30
  this.staticHash = 0;
29
31
  }
30
32
  get Identifier() {
@@ -45,27 +47,27 @@ export class ArcAssay extends ArcTables {
45
47
  }
46
48
  get MeasurementType() {
47
49
  const this$ = this;
48
- return unwrap(this$["measurementType@111"]);
50
+ return unwrap(this$["measurementType@114"]);
49
51
  }
50
52
  set MeasurementType(n) {
51
53
  const this$ = this;
52
- this$["measurementType@111"] = n;
54
+ this$["measurementType@114"] = n;
53
55
  }
54
56
  get TechnologyType() {
55
57
  const this$ = this;
56
- return unwrap(this$["technologyType@112"]);
58
+ return unwrap(this$["technologyType@115"]);
57
59
  }
58
60
  set TechnologyType(n) {
59
61
  const this$ = this;
60
- this$["technologyType@112"] = n;
62
+ this$["technologyType@115"] = n;
61
63
  }
62
64
  get TechnologyPlatform() {
63
65
  const this$ = this;
64
- return unwrap(this$["technologyPlatform@113"]);
66
+ return unwrap(this$["technologyPlatform@116"]);
65
67
  }
66
68
  set TechnologyPlatform(n) {
67
69
  const this$ = this;
68
- this$["technologyPlatform@113"] = n;
70
+ this$["technologyPlatform@116"] = n;
69
71
  }
70
72
  get DataMap() {
71
73
  const this$ = this;
@@ -77,19 +79,19 @@ export class ArcAssay extends ArcTables {
77
79
  }
78
80
  get Performers() {
79
81
  const this$ = this;
80
- return this$["performers@115-1"];
82
+ return this$["performers@118-1"];
81
83
  }
82
84
  set Performers(n) {
83
85
  const this$ = this;
84
- this$["performers@115-1"] = n;
86
+ this$["performers@118-1"] = n;
85
87
  }
86
88
  get Comments() {
87
89
  const this$ = this;
88
- return this$["comments@116-1"];
90
+ return this$["comments@119-1"];
89
91
  }
90
92
  set Comments(n) {
91
93
  const this$ = this;
92
- this$["comments@116-1"] = n;
94
+ this$["comments@119-1"] = n;
93
95
  }
94
96
  get StaticHash() {
95
97
  const this$ = this;
@@ -525,7 +527,7 @@ export class ArcAssay extends ArcTables {
525
527
  const arg_4 = this$.Tables;
526
528
  const arg_5 = this$.Performers;
527
529
  const arg_6 = this$.Comments;
528
- return toText(printf("ArcAssay({\n Identifier = \"%s\",\n MeasurementType = %A,\n TechnologyType = %A,\n TechnologyPlatform = %A,\n Tables = %A,\n Performers = %A,\n Comments = %A\n})"))(arg)(arg_1)(arg_2)(arg_3)(arg_4)(arg_5)(arg_6);
530
+ return toText(printf("ArcAssay({\r\n Identifier = \"%s\",\r\n MeasurementType = %A,\r\n TechnologyType = %A,\r\n TechnologyPlatform = %A,\r\n Tables = %A,\r\n Performers = %A,\r\n Comments = %A\r\n})"))(arg)(arg_1)(arg_2)(arg_3)(arg_4)(arg_5)(arg_6);
529
531
  }
530
532
  AddToInvestigation(investigation) {
531
533
  const this$ = this;
@@ -614,32 +616,33 @@ export function ArcAssay_$ctor_Z4900C8CC(identifier, measurementType, technology
614
616
  export class ArcStudy extends ArcTables {
615
617
  constructor(identifier, title, description, submissionDate, publicReleaseDate, publications, contacts, studyDesignDescriptors, tables, datamap, registeredAssayIdentifiers, comments) {
616
618
  super(defaultArg(tables, []));
619
+ let identifier_1;
617
620
  const publications_1 = defaultArg(publications, []);
618
621
  const contacts_1 = defaultArg(contacts, []);
619
622
  const studyDesignDescriptors_1 = defaultArg(studyDesignDescriptors, []);
620
623
  const registeredAssayIdentifiers_1 = defaultArg(registeredAssayIdentifiers, []);
621
624
  const comments_1 = defaultArg(comments, []);
622
- this["identifier@533"] = identifier;
625
+ this["identifier@536"] = ((identifier_1 = identifier.trim(), (checkValidCharacters(identifier_1), identifier_1)));
623
626
  this.investigation = void 0;
624
- this["title@535"] = title;
625
- this["description@536"] = description;
626
- this["submissionDate@537"] = submissionDate;
627
- this["publicReleaseDate@538"] = publicReleaseDate;
628
- this["publications@539-1"] = publications_1;
629
- this["contacts@540-1"] = contacts_1;
630
- this["studyDesignDescriptors@541-1"] = studyDesignDescriptors_1;
631
- this["datamap@542"] = datamap;
632
- this["registeredAssayIdentifiers@543-1"] = registeredAssayIdentifiers_1;
633
- this["comments@544-1"] = comments_1;
627
+ this["title@541"] = title;
628
+ this["description@542"] = description;
629
+ this["submissionDate@543"] = submissionDate;
630
+ this["publicReleaseDate@544"] = publicReleaseDate;
631
+ this["publications@545-1"] = publications_1;
632
+ this["contacts@546-1"] = contacts_1;
633
+ this["studyDesignDescriptors@547-1"] = studyDesignDescriptors_1;
634
+ this["datamap@548"] = datamap;
635
+ this["registeredAssayIdentifiers@549-1"] = registeredAssayIdentifiers_1;
636
+ this["comments@550-1"] = comments_1;
634
637
  this.staticHash = 0;
635
638
  }
636
639
  get Identifier() {
637
640
  const this$ = this;
638
- return this$["identifier@533"];
641
+ return this$["identifier@536"];
639
642
  }
640
643
  set Identifier(i) {
641
644
  const this$ = this;
642
- this$["identifier@533"] = i;
645
+ this$["identifier@536"] = i;
643
646
  }
644
647
  get Investigation() {
645
648
  const this$ = this;
@@ -651,83 +654,83 @@ export class ArcStudy extends ArcTables {
651
654
  }
652
655
  get Title() {
653
656
  const this$ = this;
654
- return unwrap(this$["title@535"]);
657
+ return unwrap(this$["title@541"]);
655
658
  }
656
659
  set Title(n) {
657
660
  const this$ = this;
658
- this$["title@535"] = n;
661
+ this$["title@541"] = n;
659
662
  }
660
663
  get Description() {
661
664
  const this$ = this;
662
- return unwrap(this$["description@536"]);
665
+ return unwrap(this$["description@542"]);
663
666
  }
664
667
  set Description(n) {
665
668
  const this$ = this;
666
- this$["description@536"] = n;
669
+ this$["description@542"] = n;
667
670
  }
668
671
  get SubmissionDate() {
669
672
  const this$ = this;
670
- return unwrap(this$["submissionDate@537"]);
673
+ return unwrap(this$["submissionDate@543"]);
671
674
  }
672
675
  set SubmissionDate(n) {
673
676
  const this$ = this;
674
- this$["submissionDate@537"] = n;
677
+ this$["submissionDate@543"] = n;
675
678
  }
676
679
  get PublicReleaseDate() {
677
680
  const this$ = this;
678
- return unwrap(this$["publicReleaseDate@538"]);
681
+ return unwrap(this$["publicReleaseDate@544"]);
679
682
  }
680
683
  set PublicReleaseDate(n) {
681
684
  const this$ = this;
682
- this$["publicReleaseDate@538"] = n;
685
+ this$["publicReleaseDate@544"] = n;
683
686
  }
684
687
  get Publications() {
685
688
  const this$ = this;
686
- return this$["publications@539-1"];
689
+ return this$["publications@545-1"];
687
690
  }
688
691
  set Publications(n) {
689
692
  const this$ = this;
690
- this$["publications@539-1"] = n;
693
+ this$["publications@545-1"] = n;
691
694
  }
692
695
  get Contacts() {
693
696
  const this$ = this;
694
- return this$["contacts@540-1"];
697
+ return this$["contacts@546-1"];
695
698
  }
696
699
  set Contacts(n) {
697
700
  const this$ = this;
698
- this$["contacts@540-1"] = n;
701
+ this$["contacts@546-1"] = n;
699
702
  }
700
703
  get StudyDesignDescriptors() {
701
704
  const this$ = this;
702
- return this$["studyDesignDescriptors@541-1"];
705
+ return this$["studyDesignDescriptors@547-1"];
703
706
  }
704
707
  set StudyDesignDescriptors(n) {
705
708
  const this$ = this;
706
- this$["studyDesignDescriptors@541-1"] = n;
709
+ this$["studyDesignDescriptors@547-1"] = n;
707
710
  }
708
711
  get DataMap() {
709
712
  const this$ = this;
710
- return unwrap(this$["datamap@542"]);
713
+ return unwrap(this$["datamap@548"]);
711
714
  }
712
715
  set DataMap(n) {
713
716
  const this$ = this;
714
- this$["datamap@542"] = n;
717
+ this$["datamap@548"] = n;
715
718
  }
716
719
  get RegisteredAssayIdentifiers() {
717
720
  const this$ = this;
718
- return this$["registeredAssayIdentifiers@543-1"];
721
+ return this$["registeredAssayIdentifiers@549-1"];
719
722
  }
720
723
  set RegisteredAssayIdentifiers(n) {
721
724
  const this$ = this;
722
- this$["registeredAssayIdentifiers@543-1"] = n;
725
+ this$["registeredAssayIdentifiers@549-1"] = n;
723
726
  }
724
727
  get Comments() {
725
728
  const this$ = this;
726
- return this$["comments@544-1"];
729
+ return this$["comments@550-1"];
727
730
  }
728
731
  set Comments(n) {
729
732
  const this$ = this;
730
- this$["comments@544-1"] = n;
733
+ this$["comments@550-1"] = n;
731
734
  }
732
735
  get StaticHash() {
733
736
  const this$ = this;
@@ -1263,7 +1266,7 @@ export class ArcStudy extends ArcTables {
1263
1266
  const arg_8 = this$.Tables;
1264
1267
  const arg_9 = this$.RegisteredAssayIdentifiers;
1265
1268
  const arg_10 = this$.Comments;
1266
- return toText(printf("ArcStudy {\n Identifier = %A,\n Title = %A,\n Description = %A,\n SubmissionDate = %A,\n PublicReleaseDate = %A,\n Publications = %A,\n Contacts = %A,\n StudyDesignDescriptors = %A,\n Tables = %A,\n RegisteredAssayIdentifiers = %A,\n Comments = %A,\n}"))(arg)(arg_1)(arg_2)(arg_3)(arg_4)(arg_5)(arg_6)(arg_7)(arg_8)(arg_9)(arg_10);
1269
+ return toText(printf("ArcStudy {\r\n Identifier = %A,\r\n Title = %A,\r\n Description = %A,\r\n SubmissionDate = %A,\r\n PublicReleaseDate = %A,\r\n Publications = %A,\r\n Contacts = %A,\r\n StudyDesignDescriptors = %A,\r\n Tables = %A,\r\n RegisteredAssayIdentifiers = %A,\r\n Comments = %A,\r\n}"))(arg)(arg_1)(arg_2)(arg_3)(arg_4)(arg_5)(arg_6)(arg_7)(arg_8)(arg_9)(arg_10);
1267
1270
  }
1268
1271
  Equals(other) {
1269
1272
  let s;
@@ -1324,125 +1327,125 @@ export class ArcInvestigation {
1324
1327
  const registeredStudyIdentifiers_1 = defaultArg(registeredStudyIdentifiers, []);
1325
1328
  const comments_1 = defaultArg(comments, []);
1326
1329
  const remarks_1 = defaultArg(remarks, []);
1327
- this["identifier@1119"] = identifier;
1328
- this["title@1120"] = title;
1329
- this["description@1121"] = description;
1330
- this["submissionDate@1122"] = submissionDate;
1331
- this["publicReleaseDate@1123"] = publicReleaseDate;
1332
- this["ontologySourceReferences@1124-1"] = ontologySourceReferences_1;
1333
- this["publications@1125-1"] = publications_1;
1334
- this["contacts@1126-1"] = contacts_1;
1335
- this["assays@1127-1"] = assays_1;
1336
- this["studies@1128-1"] = studies_1;
1337
- this["registeredStudyIdentifiers@1129-1"] = registeredStudyIdentifiers_1;
1338
- this["comments@1130-1"] = comments_1;
1339
- this["remarks@1131-1"] = remarks_1;
1330
+ this["identifier@1125"] = identifier;
1331
+ this["title@1126"] = title;
1332
+ this["description@1127"] = description;
1333
+ this["submissionDate@1128"] = submissionDate;
1334
+ this["publicReleaseDate@1129"] = publicReleaseDate;
1335
+ this["ontologySourceReferences@1130-1"] = ontologySourceReferences_1;
1336
+ this["publications@1131-1"] = publications_1;
1337
+ this["contacts@1132-1"] = contacts_1;
1338
+ this["assays@1133-1"] = assays_1;
1339
+ this["studies@1134-1"] = studies_1;
1340
+ this["registeredStudyIdentifiers@1135-1"] = registeredStudyIdentifiers_1;
1341
+ this["comments@1136-1"] = comments_1;
1342
+ this["remarks@1137-1"] = remarks_1;
1340
1343
  this.staticHash = 0;
1341
- this["init@1100"] = 1;
1344
+ this["init@1106"] = 1;
1342
1345
  }
1343
1346
  get Identifier() {
1344
1347
  const this$ = this;
1345
- return this$["identifier@1119"];
1348
+ return this$["identifier@1125"];
1346
1349
  }
1347
1350
  set Identifier(i) {
1348
1351
  const this$ = this;
1349
- this$["identifier@1119"] = i;
1352
+ this$["identifier@1125"] = i;
1350
1353
  }
1351
1354
  get Title() {
1352
1355
  const this$ = this;
1353
- return unwrap(this$["title@1120"]);
1356
+ return unwrap(this$["title@1126"]);
1354
1357
  }
1355
1358
  set Title(n) {
1356
1359
  const this$ = this;
1357
- this$["title@1120"] = n;
1360
+ this$["title@1126"] = n;
1358
1361
  }
1359
1362
  get Description() {
1360
1363
  const this$ = this;
1361
- return unwrap(this$["description@1121"]);
1364
+ return unwrap(this$["description@1127"]);
1362
1365
  }
1363
1366
  set Description(n) {
1364
1367
  const this$ = this;
1365
- this$["description@1121"] = n;
1368
+ this$["description@1127"] = n;
1366
1369
  }
1367
1370
  get SubmissionDate() {
1368
1371
  const this$ = this;
1369
- return unwrap(this$["submissionDate@1122"]);
1372
+ return unwrap(this$["submissionDate@1128"]);
1370
1373
  }
1371
1374
  set SubmissionDate(n) {
1372
1375
  const this$ = this;
1373
- this$["submissionDate@1122"] = n;
1376
+ this$["submissionDate@1128"] = n;
1374
1377
  }
1375
1378
  get PublicReleaseDate() {
1376
1379
  const this$ = this;
1377
- return unwrap(this$["publicReleaseDate@1123"]);
1380
+ return unwrap(this$["publicReleaseDate@1129"]);
1378
1381
  }
1379
1382
  set PublicReleaseDate(n) {
1380
1383
  const this$ = this;
1381
- this$["publicReleaseDate@1123"] = n;
1384
+ this$["publicReleaseDate@1129"] = n;
1382
1385
  }
1383
1386
  get OntologySourceReferences() {
1384
1387
  const this$ = this;
1385
- return this$["ontologySourceReferences@1124-1"];
1388
+ return this$["ontologySourceReferences@1130-1"];
1386
1389
  }
1387
1390
  set OntologySourceReferences(n) {
1388
1391
  const this$ = this;
1389
- this$["ontologySourceReferences@1124-1"] = n;
1392
+ this$["ontologySourceReferences@1130-1"] = n;
1390
1393
  }
1391
1394
  get Publications() {
1392
1395
  const this$ = this;
1393
- return this$["publications@1125-1"];
1396
+ return this$["publications@1131-1"];
1394
1397
  }
1395
1398
  set Publications(n) {
1396
1399
  const this$ = this;
1397
- this$["publications@1125-1"] = n;
1400
+ this$["publications@1131-1"] = n;
1398
1401
  }
1399
1402
  get Contacts() {
1400
1403
  const this$ = this;
1401
- return this$["contacts@1126-1"];
1404
+ return this$["contacts@1132-1"];
1402
1405
  }
1403
1406
  set Contacts(n) {
1404
1407
  const this$ = this;
1405
- this$["contacts@1126-1"] = n;
1408
+ this$["contacts@1132-1"] = n;
1406
1409
  }
1407
1410
  get Assays() {
1408
1411
  const this$ = this;
1409
- return this$["assays@1127-1"];
1412
+ return this$["assays@1133-1"];
1410
1413
  }
1411
1414
  set Assays(n) {
1412
1415
  const this$ = this;
1413
- this$["assays@1127-1"] = n;
1416
+ this$["assays@1133-1"] = n;
1414
1417
  }
1415
1418
  get Studies() {
1416
1419
  const this$ = this;
1417
- return this$["studies@1128-1"];
1420
+ return this$["studies@1134-1"];
1418
1421
  }
1419
1422
  set Studies(n) {
1420
1423
  const this$ = this;
1421
- this$["studies@1128-1"] = n;
1424
+ this$["studies@1134-1"] = n;
1422
1425
  }
1423
1426
  get RegisteredStudyIdentifiers() {
1424
1427
  const this$ = this;
1425
- return this$["registeredStudyIdentifiers@1129-1"];
1428
+ return this$["registeredStudyIdentifiers@1135-1"];
1426
1429
  }
1427
1430
  set RegisteredStudyIdentifiers(n) {
1428
1431
  const this$ = this;
1429
- this$["registeredStudyIdentifiers@1129-1"] = n;
1432
+ this$["registeredStudyIdentifiers@1135-1"] = n;
1430
1433
  }
1431
1434
  get Comments() {
1432
1435
  const this$ = this;
1433
- return this$["comments@1130-1"];
1436
+ return this$["comments@1136-1"];
1434
1437
  }
1435
1438
  set Comments(n) {
1436
1439
  const this$ = this;
1437
- this$["comments@1130-1"] = n;
1440
+ this$["comments@1136-1"] = n;
1438
1441
  }
1439
1442
  get Remarks() {
1440
1443
  const this$ = this;
1441
- return this$["remarks@1131-1"];
1444
+ return this$["remarks@1137-1"];
1442
1445
  }
1443
1446
  set Remarks(n) {
1444
1447
  const this$ = this;
1445
- this$["remarks@1131-1"] = n;
1448
+ this$["remarks@1137-1"] = n;
1446
1449
  }
1447
1450
  get StaticHash() {
1448
1451
  const this$ = this;
@@ -2236,7 +2239,7 @@ export class ArcInvestigation {
2236
2239
  const arg_10 = this$.RegisteredStudyIdentifiers;
2237
2240
  const arg_11 = this$.Comments;
2238
2241
  const arg_12 = this$.Remarks;
2239
- return toText(printf("ArcInvestigation {\n Identifier = %A,\n Title = %A,\n Description = %A,\n SubmissionDate = %A,\n PublicReleaseDate = %A,\n OntologySourceReferences = %A,\n Publications = %A,\n Contacts = %A,\n Assays = %A,\n Studies = %A,\n RegisteredStudyIdentifiers = %A,\n Comments = %A,\n Remarks = %A,\n}"))(arg)(arg_1)(arg_2)(arg_3)(arg_4)(arg_5)(arg_6)(arg_7)(arg_8)(arg_9)(arg_10)(arg_11)(arg_12);
2242
+ return toText(printf("ArcInvestigation {\r\n Identifier = %A,\r\n Title = %A,\r\n Description = %A,\r\n SubmissionDate = %A,\r\n PublicReleaseDate = %A,\r\n OntologySourceReferences = %A,\r\n Publications = %A,\r\n Contacts = %A,\r\n Assays = %A,\r\n Studies = %A,\r\n RegisteredStudyIdentifiers = %A,\r\n Comments = %A,\r\n Remarks = %A,\r\n}"))(arg)(arg_1)(arg_2)(arg_3)(arg_4)(arg_5)(arg_6)(arg_7)(arg_8)(arg_9)(arg_10)(arg_11)(arg_12);
2240
2243
  }
2241
2244
  Equals(other) {
2242
2245
  let i;