@nfdi4plants/arctrl 3.0.3 → 3.1.1

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 (107) hide show
  1. package/dist/ts/node_modules/@fable-org/fable-library-js/System.Collections.Generic.js +320 -0
  2. package/dist/ts/ts/ARC.d.ts +3 -3
  3. package/dist/ts/ts/ARC.d.ts.map +1 -1
  4. package/dist/ts/ts/ARC.js +72 -93
  5. package/dist/ts/ts/CWL/CWLTypes.d.ts +162 -45
  6. package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -1
  7. package/dist/ts/ts/CWL/CWLTypes.js +495 -104
  8. package/dist/ts/ts/CWL/Decode.d.ts +292 -46
  9. package/dist/ts/ts/CWL/Decode.d.ts.map +1 -1
  10. package/dist/ts/ts/CWL/Decode.js +951 -563
  11. package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts +37 -0
  12. package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts.map +1 -0
  13. package/dist/ts/ts/CWL/DynamicObjHelpers.js +57 -0
  14. package/dist/ts/ts/CWL/Encode.d.ts +117 -2
  15. package/dist/ts/ts/CWL/Encode.d.ts.map +1 -1
  16. package/dist/ts/ts/CWL/Encode.js +447 -193
  17. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts +8 -3
  18. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts.map +1 -1
  19. package/dist/ts/ts/CWL/ExpressionToolDescription.js +20 -4
  20. package/dist/ts/ts/CWL/Inputs.d.ts +65 -14
  21. package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -1
  22. package/dist/ts/ts/CWL/Inputs.js +194 -51
  23. package/dist/ts/ts/CWL/OperationDescription.d.ts +8 -3
  24. package/dist/ts/ts/CWL/OperationDescription.d.ts.map +1 -1
  25. package/dist/ts/ts/CWL/OperationDescription.js +20 -4
  26. package/dist/ts/ts/CWL/Outputs.d.ts +51 -12
  27. package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -1
  28. package/dist/ts/ts/CWL/Outputs.js +152 -76
  29. package/dist/ts/ts/CWL/ParameterReference.d.ts +4 -1
  30. package/dist/ts/ts/CWL/ParameterReference.d.ts.map +1 -1
  31. package/dist/ts/ts/CWL/ParameterReference.js +17 -6
  32. package/dist/ts/ts/CWL/Requirements.d.ts +140 -50
  33. package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -1
  34. package/dist/ts/ts/CWL/Requirements.js +458 -127
  35. package/dist/ts/ts/CWL/ToolDescription.d.ts +31 -3
  36. package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -1
  37. package/dist/ts/ts/CWL/ToolDescription.js +83 -4
  38. package/dist/ts/ts/CWL/WorkflowDescription.d.ts +8 -3
  39. package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -1
  40. package/dist/ts/ts/CWL/WorkflowDescription.js +20 -4
  41. package/dist/ts/ts/CWL/WorkflowSteps.d.ts +50 -19
  42. package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -1
  43. package/dist/ts/ts/CWL/WorkflowSteps.js +152 -23
  44. package/dist/ts/ts/Contract/Git.d.ts.map +1 -1
  45. package/dist/ts/ts/Contract/Git.js +1 -1
  46. package/dist/ts/ts/ContractIO/ContractIO.d.ts +3 -3
  47. package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
  48. package/dist/ts/ts/ContractIO/ContractIO.js +30 -23
  49. package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -1
  50. package/dist/ts/ts/Conversion/Assay.js +4 -3
  51. package/dist/ts/ts/Conversion/Investigation.js +2 -2
  52. package/dist/ts/ts/Conversion/Person.d.ts +1 -1
  53. package/dist/ts/ts/Conversion/Person.d.ts.map +1 -1
  54. package/dist/ts/ts/Conversion/Person.js +27 -11
  55. package/dist/ts/ts/Conversion/Run.d.ts.map +1 -1
  56. package/dist/ts/ts/Conversion/Run.js +3 -2
  57. package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -1
  58. package/dist/ts/ts/Conversion/ScholarlyArticle.js +2 -1
  59. package/dist/ts/ts/Conversion/Study.d.ts.map +1 -1
  60. package/dist/ts/ts/Conversion/Study.js +5 -4
  61. package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -1
  62. package/dist/ts/ts/Conversion/Workflow.js +13 -12
  63. package/dist/ts/ts/Conversion.d.ts +14 -10
  64. package/dist/ts/ts/Conversion.d.ts.map +1 -1
  65. package/dist/ts/ts/Conversion.js +18 -11
  66. package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
  67. package/dist/ts/ts/Core/ArcTypes.js +18 -0
  68. package/dist/ts/ts/Core/Datamap.d.ts.map +1 -1
  69. package/dist/ts/ts/Core/Datamap.js +4 -2
  70. package/dist/ts/ts/Core/OntologyAnnotation.d.ts.map +1 -1
  71. package/dist/ts/ts/Core/OntologyAnnotation.js +76 -2
  72. package/dist/ts/ts/Core/Table/ArcTableAux.d.ts +3 -0
  73. package/dist/ts/ts/Core/Table/ArcTableAux.d.ts.map +1 -1
  74. package/dist/ts/ts/Core/Table/ArcTableAux.js +23 -10
  75. package/dist/ts/ts/Core/Table/ArcTables.d.ts +1 -0
  76. package/dist/ts/ts/Core/Table/ArcTables.d.ts.map +1 -1
  77. package/dist/ts/ts/Core/Table/ArcTables.js +7 -3
  78. package/dist/ts/ts/Json.d.ts +2 -2
  79. package/dist/ts/ts/Json.d.ts.map +1 -1
  80. package/dist/ts/ts/Json.js +3 -3
  81. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts.map +1 -1
  82. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.js +2 -1
  83. package/dist/ts/ts/Yaml/ValidationPackage.d.ts +1 -1
  84. package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
  85. package/dist/ts/ts/Yaml/ValidationPackage.js +5 -5
  86. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +1 -1
  87. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
  88. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +5 -5
  89. package/dist/ts/ts/Yaml.js +1 -1
  90. package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.5 → YAMLicious.1.0.0-alpha.11}/Decode.fs.js +96 -24
  91. package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.5 → YAMLicious.1.0.0-alpha.11}/Persil.fs.js +11 -159
  92. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.11/Preprocessing.fs.js +319 -0
  93. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.11/Reader.fs.js +1867 -0
  94. package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.5 → YAMLicious.1.0.0-alpha.11}/Regex.fs.js +1 -1
  95. package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.5 → YAMLicious.1.0.0-alpha.11}/RegexActivePatterns.fs.js +2 -2
  96. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.11/Syntax.fs.js +819 -0
  97. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.11/Writer.fs.js +686 -0
  98. package/package.json +1 -1
  99. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/FlowToBlock.fs.js +0 -956
  100. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/Preprocessing.fs.js +0 -139
  101. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/Reader.fs.js +0 -1314
  102. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/Writer.fs.js +0 -391
  103. /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.5 → YAMLicious.1.0.0-alpha.11}/Encode.fs.js +0 -0
  104. /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.5 → YAMLicious.1.0.0-alpha.11}/Escapes.fs.js +0 -0
  105. /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.5 → YAMLicious.1.0.0-alpha.11}/Interop/JsInterop.fs.js +0 -0
  106. /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.5 → YAMLicious.1.0.0-alpha.11}/StringBuffer.fs.js +0 -0
  107. /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.5 → YAMLicious.1.0.0-alpha.11}/YAMLiciousTypes.fs.js +0 -0
@@ -1,10 +1,12 @@
1
1
  import { unwrap, toArray } from '../../node_modules/@fable-org/fable-library-js/Option.js';
2
- import { Union, Record } from '../../node_modules/@fable-org/fable-library-js/Types.js';
3
- import { union_type, record_type, string_type, option_type, array_type, bool_type, obj_type, class_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
4
- import { YAMLElement_$reflection } from '../fable_modules/YAMLicious.1.0.0-alpha.5/YAMLiciousTypes.fs.js';
2
+ import { Union } from '../../node_modules/@fable-org/fable-library-js/Types.js';
3
+ import { union_type, class_type, string_type, obj_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
4
+ import { equals, arrayHash, comparePrimitives } from '../../node_modules/@fable-org/fable-library-js/Util.js';
5
+ import { dynamicPropertiesEqual, hashDynamicProperties } from './DynamicObjHelpers.js';
6
+ import { ofSeq } from '../../node_modules/@fable-org/fable-library-js/Set.js';
5
7
  import { setItem } from '../../node_modules/@fable-org/fable-library-js/Array.js';
6
- import { filter, iterate, tryFindIndex } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
7
8
  import { DynamicObj, DynamicObj_$reflection } from '../fable_modules/DynamicObj.7.1.0/DynamicObj.fs.js';
9
+ import { filter, iterate, tryFindIndex } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
8
10
 
9
11
  function LinkMergeMethod_MergeNested() {
10
12
  return new LinkMergeMethod(0, []);
@@ -95,22 +97,116 @@ class ScatterMethod extends Union {
95
97
  function ScatterMethod_$reflection() {
96
98
  return union_type("ARCtrl.CWL.ScatterMethod", [], ScatterMethod, () => [[], [], []]);
97
99
  }
98
- class StepInput extends Record {
99
- constructor(Id, Source, DefaultValue, ValueFrom, LinkMerge, PickValue, Doc, LoadContents, LoadListing, Label) {
100
+ class StepInput extends DynamicObj {
101
+ constructor(id, source, defaultValue, valueFrom, linkMerge, pickValue, doc, loadContents, loadListing, label) {
100
102
  super();
101
- this.Id = Id;
102
- this.Source = Source;
103
- this.DefaultValue = DefaultValue;
104
- this.ValueFrom = ValueFrom;
105
- this.LinkMerge = LinkMerge;
106
- this.PickValue = PickValue;
107
- this.Doc = Doc;
108
- this.LoadContents = LoadContents;
109
- this.LoadListing = LoadListing;
110
- this.Label = Label;
103
+ this._id = id;
104
+ this._source = source;
105
+ this._defaultValue = defaultValue;
106
+ this._valueFrom = valueFrom;
107
+ this._linkMerge = linkMerge;
108
+ this._pickValue = pickValue;
109
+ this._doc = doc;
110
+ this._loadContents = loadContents;
111
+ this._loadListing = loadListing;
112
+ this._label = label;
113
+ }
114
+ get Id() {
115
+ const this$ = this;
116
+ return this$._id;
117
+ }
118
+ set Id(value) {
119
+ const this$ = this;
120
+ this$._id = value;
121
+ }
122
+ get Source() {
123
+ const this$ = this;
124
+ return unwrap(this$._source);
125
+ }
126
+ set Source(value) {
127
+ const this$ = this;
128
+ this$._source = value;
129
+ }
130
+ get DefaultValue() {
131
+ const this$ = this;
132
+ return unwrap(this$._defaultValue);
133
+ }
134
+ set DefaultValue(value) {
135
+ const this$ = this;
136
+ this$._defaultValue = value;
137
+ }
138
+ get ValueFrom() {
139
+ const this$ = this;
140
+ return unwrap(this$._valueFrom);
141
+ }
142
+ set ValueFrom(value) {
143
+ const this$ = this;
144
+ this$._valueFrom = value;
145
+ }
146
+ get LinkMerge() {
147
+ const this$ = this;
148
+ return unwrap(this$._linkMerge);
149
+ }
150
+ set LinkMerge(value) {
151
+ const this$ = this;
152
+ this$._linkMerge = value;
153
+ }
154
+ get PickValue() {
155
+ const this$ = this;
156
+ return unwrap(this$._pickValue);
157
+ }
158
+ set PickValue(value) {
159
+ const this$ = this;
160
+ this$._pickValue = value;
161
+ }
162
+ get Doc() {
163
+ const this$ = this;
164
+ return unwrap(this$._doc);
165
+ }
166
+ set Doc(value) {
167
+ const this$ = this;
168
+ this$._doc = value;
169
+ }
170
+ get LoadContents() {
171
+ const this$ = this;
172
+ return unwrap(this$._loadContents);
173
+ }
174
+ set LoadContents(value) {
175
+ const this$ = this;
176
+ this$._loadContents = value;
177
+ }
178
+ get LoadListing() {
179
+ const this$ = this;
180
+ return unwrap(this$._loadListing);
181
+ }
182
+ set LoadListing(value) {
183
+ const this$ = this;
184
+ this$._loadListing = value;
185
+ }
186
+ get Label() {
187
+ const this$ = this;
188
+ return unwrap(this$._label);
189
+ }
190
+ set Label(value) {
191
+ const this$ = this;
192
+ this$._label = value;
193
+ }
194
+ Equals(o) {
195
+ let other;
196
+ const this$ = this;
197
+ return o instanceof StepInput && (other = o, this$.Id === other.Id && equals(this$.Source, other.Source) && equals(this$.DefaultValue, other.DefaultValue) && equals(this$.ValueFrom, other.ValueFrom) && equals(this$.LinkMerge, other.LinkMerge) && equals(this$.PickValue, other.PickValue) && equals(this$.Doc, other.Doc) && equals(this$.LoadContents, other.LoadContents) && equals(this$.LoadListing, other.LoadListing) && equals(this$.Label, other.Label) && dynamicPropertiesEqual(this$, other));
198
+ }
199
+ GetHashCode() {
200
+ const this$ = this;
201
+ return arrayHash([this$.Id, this$.Source, this$.DefaultValue, this$.ValueFrom, this$.LinkMerge, this$.PickValue, this$.Doc, this$.LoadContents, this$.LoadListing, this$.Label, hashDynamicProperties(this$)]) | 0;
111
202
  }
112
203
  static create(id, source, defaultValue, valueFrom, linkMerge, pickValue, doc, loadContents, loadListing, label) {
113
- return new StepInput(id, source, defaultValue, valueFrom, linkMerge, pickValue, doc, loadContents, loadListing, label);
204
+ return new StepInput(id, unwrap(source), unwrap(defaultValue), unwrap(valueFrom), unwrap(linkMerge), unwrap(pickValue), unwrap(doc), unwrap(loadContents), unwrap(loadListing), unwrap(label));
205
+ }
206
+ static get KnownFieldNames() {
207
+ return ofSeq(["id", "source", "default", "valueFrom", "linkMerge", "pickValue", "doc", "loadContents", "loadListing", "label"], {
208
+ Compare: comparePrimitives
209
+ });
114
210
  }
115
211
  static updateAt(index, f, inputs) {
116
212
  if (index < 0 ? true : index >= inputs.length) {
@@ -120,19 +216,47 @@ class StepInput extends Record {
120
216
  }
121
217
  }
122
218
  function StepInput_$reflection() {
123
- return record_type("ARCtrl.CWL.StepInput", [], StepInput, () => [["Id", string_type], ["Source", option_type(array_type(string_type))], ["DefaultValue", option_type(YAMLElement_$reflection())], ["ValueFrom", option_type(string_type)], ["LinkMerge", option_type(LinkMergeMethod_$reflection())], ["PickValue", option_type(PickValueMethod_$reflection())], ["Doc", option_type(string_type)], ["LoadContents", option_type(bool_type)], ["LoadListing", option_type(string_type)], ["Label", option_type(string_type)]]);
219
+ return class_type("ARCtrl.CWL.StepInput", void 0, StepInput, DynamicObj_$reflection());
220
+ }
221
+ function StepInput_$ctor_Z25C6E1C5(id, source, defaultValue, valueFrom, linkMerge, pickValue, doc, loadContents, loadListing, label) {
222
+ return new StepInput(id, source, defaultValue, valueFrom, linkMerge, pickValue, doc, loadContents, loadListing, label);
124
223
  }
125
- class StepOutputParameter extends Record {
126
- constructor(Id) {
224
+ class StepOutputParameter extends DynamicObj {
225
+ constructor(id) {
127
226
  super();
128
- this.Id = Id;
227
+ this._id = id;
228
+ }
229
+ get Id() {
230
+ const this$ = this;
231
+ return this$._id;
232
+ }
233
+ set Id(value) {
234
+ const this$ = this;
235
+ this$._id = value;
236
+ }
237
+ Equals(o) {
238
+ let other;
239
+ const this$ = this;
240
+ return o instanceof StepOutputParameter && (other = o, this$.Id === other.Id && dynamicPropertiesEqual(this$, other));
241
+ }
242
+ GetHashCode() {
243
+ const this$ = this;
244
+ return arrayHash([this$.Id, hashDynamicProperties(this$)]) | 0;
129
245
  }
130
246
  static create(id) {
131
247
  return new StepOutputParameter(id);
132
248
  }
249
+ static get KnownFieldNames() {
250
+ return ofSeq(["id"], {
251
+ Compare: comparePrimitives
252
+ });
253
+ }
133
254
  }
134
255
  function StepOutputParameter_$reflection() {
135
- return record_type("ARCtrl.CWL.StepOutputParameter", [], StepOutputParameter, () => [["Id", string_type]]);
256
+ return class_type("ARCtrl.CWL.StepOutputParameter", void 0, StepOutputParameter, DynamicObj_$reflection());
257
+ }
258
+ function StepOutputParameter_$ctor_Z721C83C5(id) {
259
+ return new StepOutputParameter(id);
136
260
  }
137
261
  function StepOutput_StepOutputString(Item) {
138
262
  return new StepOutput(0, [Item]);
@@ -287,6 +411,11 @@ class WorkflowStep extends DynamicObj {
287
411
  static fromRunPath(id, in_, out_, runPath, label, doc, scatter, scatterMethod, when_, requirements, hints) {
288
412
  return new WorkflowStep(id, in_, out_, WorkflowStepRun_RunString(runPath), unwrap(label), unwrap(doc), unwrap(scatter), unwrap(scatterMethod), unwrap(when_), unwrap(requirements), unwrap(hints));
289
413
  }
414
+ static get KnownFieldNames() {
415
+ return ofSeq(["id", "run", "in", "out", "requirements", "hints", "label", "doc", "scatter", "scatterMethod", "when"], {
416
+ Compare: comparePrimitives
417
+ });
418
+ }
290
419
  static updateInputAt(index, f, step) {
291
420
  const inputs = step.In;
292
421
  StepInput.updateAt(index, f, inputs);
@@ -314,4 +443,4 @@ function WorkflowStep_$ctor_Z76380C57(id, in_, out_, run, label, doc, scatter, s
314
443
  return new WorkflowStep(id, in_, out_, run, label, doc, scatter, scatterMethod, when_, requirements, hints);
315
444
  }
316
445
 
317
- export { LinkMergeMethod, LinkMergeMethod_$reflection, LinkMergeMethod_MergeFlattened, LinkMergeMethod_MergeNested, PickValueMethod, PickValueMethod_$reflection, PickValueMethod_AllNonNull, PickValueMethod_FirstNonNull, PickValueMethod_TheOnlyNonNull, ScatterMethod, ScatterMethod_$reflection, ScatterMethod_DotProduct, ScatterMethod_FlatCrossProduct, ScatterMethod_NestedCrossProduct, StepInput, StepInput_$reflection, StepOutput, StepOutputParameter, StepOutputParameter_$reflection, StepOutput_$reflection, StepOutput_StepOutputRecord, StepOutput_StepOutputString, WorkflowStep, WorkflowStepRun, WorkflowStepRun_$reflection, WorkflowStepRun_RunCommandLineTool, WorkflowStepRun_RunExpressionTool, WorkflowStepRun_RunOperation, WorkflowStepRun_RunString, WorkflowStepRun_RunWorkflow, WorkflowStep_$ctor_Z76380C57, WorkflowStep_$reflection };
446
+ export { LinkMergeMethod, LinkMergeMethod_$reflection, LinkMergeMethod_MergeFlattened, LinkMergeMethod_MergeNested, PickValueMethod, PickValueMethod_$reflection, PickValueMethod_AllNonNull, PickValueMethod_FirstNonNull, PickValueMethod_TheOnlyNonNull, ScatterMethod, ScatterMethod_$reflection, ScatterMethod_DotProduct, ScatterMethod_FlatCrossProduct, ScatterMethod_NestedCrossProduct, StepInput, StepInput_$ctor_Z25C6E1C5, StepInput_$reflection, StepOutput, StepOutputParameter, StepOutputParameter_$ctor_Z721C83C5, StepOutputParameter_$reflection, StepOutput_$reflection, StepOutput_StepOutputRecord, StepOutput_StepOutputString, WorkflowStep, WorkflowStepRun, WorkflowStepRun_$reflection, WorkflowStepRun_RunCommandLineTool, WorkflowStepRun_RunExpressionTool, WorkflowStepRun_RunOperation, WorkflowStepRun_RunString, WorkflowStepRun_RunWorkflow, WorkflowStep_$ctor_Z76380C57, WorkflowStep_$reflection };
@@ -1 +1 @@
1
- {"version":3,"file":"Git.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Contract/Git.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAKjF,wBAAgB,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,OAAO,CAEzD;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,QAAQ,CAEhF;AAED,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,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K3J"}
@@ -13,7 +13,7 @@ function createGitContractAt(path, arguments$) {
13
13
  function createGitContract(arguments$) {
14
14
  return Contract.createExecute(gitWithArgs(arguments$));
15
15
  }
16
- const gitignoreContract = Contract.createCreate(".gitignore", "PlainText", "# ----- macos rules -----\r\n# taken from https://github.com/github/gitignore/blob/main/Global/macOS.gitignore\r\n# General\r\n.DS_Store\r\n.AppleDouble\r\n.LSOverride\r\n# Icon must end with two \\r\r\nIcon\r\n# Thumbnails\r\n._*\r\n# Files that might appear in the root of a volume\r\n.DocumentRevisions-V100\r\n.fseventsd\r\n.Spotlight-V100\r\n.TemporaryItems\r\n.Trashes\r\n.VolumeIcon.icns\r\n.com.apple.timemachine.donotpresent\r\n# Directories potentially created on remote AFP share\r\n.AppleDB\r\n.AppleDesktop\r\nNetwork Trash Folder\r\nTemporary Items\r\n.apdisk\r\n# ----- windows rules -----\r\n# taken from https://github.com/github/gitignore/blob/main/Global/Windows.gitignore\r\n# Windows thumbnail cache files\r\nThumbs.db\r\nThumbs.db:encryptable\r\nehthumbs.db\r\nehthumbs_vista.db\r\n# Dump file\r\n*.stackdump\r\n# Folder config file\r\n[Dd]esktop.ini\r\n# Recycle Bin used on file shares\r\n$RECYCLE.BIN/\r\n# Windows Installer files\r\n*.cab\r\n*.msi\r\n*.msix\r\n*.msm\r\n*.msp\r\n# Windows shortcuts\r\n*.lnk\r\n# ----- linux rules -----\r\n# taken from https://github.com/github/gitignore/blob/main/Global/Linux.gitignore\r\n*~\r\n# temporary files which can be created if a process still has a handle open of a deleted file\r\n.fuse_hidden*\r\n# KDE directory preferences\r\n.directory\r\n# Linux trash folder which might appear on any partition or disk\r\n.Trash-*\r\n# .nfs files are created when an open file is removed but is still being accessed\r\n.nfs*\r\n");
16
+ const gitignoreContract = Contract.createCreate(".gitignore", "PlainText", "# ----- macos rules -----\r\n# taken from https://github.com/github/gitignore/blob/main/Global/macOS.gitignore\r\n# General\r\n.DS_Store\r\n.AppleDouble\r\n.LSOverride\r\n# Icon must end with two \\r\r\nIcon\r\n# Thumbnails\r\n._*\r\n# Files that might appear in the root of a volume\r\n.DocumentRevisions-V100\r\n.fseventsd\r\n.Spotlight-V100\r\n.TemporaryItems\r\n.Trashes\r\n.VolumeIcon.icns\r\n.com.apple.timemachine.donotpresent\r\n# Directories potentially created on remote AFP share\r\n.AppleDB\r\n.AppleDesktop\r\nNetwork Trash Folder\r\nTemporary Items\r\n.apdisk\r\n# ----- windows rules -----\r\n# taken from https://github.com/github/gitignore/blob/main/Global/Windows.gitignore\r\n# Windows thumbnail cache files\r\nThumbs.db\r\nThumbs.db:encryptable\r\nehthumbs.db\r\nehthumbs_vista.db\r\n# Dump file\r\n*.stackdump\r\n# Folder config file\r\n[Dd]esktop.ini\r\n# Recycle Bin used on file shares\r\n$RECYCLE.BIN/\r\n# Windows Installer files\r\n*.cab\r\n*.msi\r\n*.msix\r\n*.msm\r\n*.msp\r\n# Windows shortcuts\r\n*.lnk\r\n# ----- linux rules -----\r\n*.swp\r\n# taken from https://github.com/github/gitignore/blob/main/Global/Linux.gitignore\r\n*~\r\n# temporary files which can be created if a process still has a handle open of a deleted file\r\n.fuse_hidden*\r\n# KDE directory preferences\r\n.directory\r\n# Linux trash folder which might appear on any partition or disk\r\n.Trash-*\r\n# .nfs files are created when an open file is removed but is still being accessed\r\n.nfs*\r\n");
17
17
  const gitattributesContract = Contract.createCreate(".gitattributes", "PlainText", "**/dataset/** filter=lfs diff=lfs merge=lfs -text");
18
18
  class Init {
19
19
  constructor() {
@@ -2,10 +2,10 @@ import { FSharpResult$2_$union } from '@fable-org/fable-library-js/Result.js';
2
2
  import { Contract } from '../Contract/Contract.js';
3
3
  export declare function fulfillReadContractAsync(basePath: string, c: Contract): Promise<FSharpResult$2_$union<Contract, string>>;
4
4
  export declare function fullfillContractBatchAsyncBy(contractF: ((arg0: string, arg1: Contract) => Promise<FSharpResult$2_$union<Contract, string>>), basePath: string, cs: Contract[]): Promise<FSharpResult$2_$union<Contract[], string[]>>;
5
- export declare function fulfillWriteContractAsync(basePath: string, c: Contract): Promise<FSharpResult$2_$union<Contract, string>>;
5
+ export declare function fulfillWriteContractAsync(forceOverwrite: boolean, basePath: string, c: Contract): Promise<FSharpResult$2_$union<Contract, string>>;
6
6
  export declare function fulfillUpdateContractAsync(basePath: string, c: Contract): Promise<FSharpResult$2_$union<Contract, string>>;
7
7
  export declare function fullfillRenameContractAsync(basePath: string, c: Contract): Promise<FSharpResult$2_$union<Contract, string>>;
8
8
  export declare function fullfillDeleteContractAsync(basePath: string, c: Contract): Promise<FSharpResult$2_$union<Contract, string>>;
9
- export declare function fullFillContract(basePath: string, c: Contract): Promise<FSharpResult$2_$union<Contract, string>>;
10
- export declare function fullFillContractBatchAsync(basePath: string, cs: Contract[]): Promise<FSharpResult$2_$union<Contract[], string[]>>;
9
+ export declare function fullFillContract(forceOverwrite: boolean, basePath: string, c: Contract): Promise<FSharpResult$2_$union<Contract, string>>;
10
+ export declare function fullFillContractBatchAsync(forceOverwrite: boolean, basePath: string, cs: Contract[]): Promise<FSharpResult$2_$union<Contract[], string[]>>;
11
11
  //# sourceMappingURL=ContractIO.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContractIO.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/ContractIO/ContractIO.ts"],"names":[],"mappings":"AAEA,OAAO,EAAqB,qBAAqB,EAAwB,MAAM,uCAAuC,CAAC;AACvH,OAAO,EAAoC,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAWrF,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,qBAAqB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAkDxH;AAED,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,KAAK,OAAO,CAAC,qBAAqB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,C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gB,0BAA0B,CAAC,cAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,qBAAqB,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,CAE1J"}
@@ -6,7 +6,7 @@ import { PromiseBuilder__Run_212F1D4B, PromiseBuilder__Delay_62FBFDE1 } from '..
6
6
  import { promise } from '../fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js';
7
7
  import { value } from '../../node_modules/@fable-org/fable-library-js/Option.js';
8
8
  import { combine } from '../FileSystem/Path.js';
9
- import { readFileTextAsync, readFileXlsxAsync, ensureDirectoryOfFileAsync, writeFileTextAsync, writeFileXlsxAsync, renameFileOrDirectoryAsync, deleteFileOrDirectoryAsync } from './FileSystemHelper.js';
9
+ import { readFileTextAsync, readFileXlsxAsync, fileExistsAsync, ensureDirectoryOfFileAsync, writeFileTextAsync, writeFileXlsxAsync, renameFileOrDirectoryAsync, deleteFileOrDirectoryAsync } from './FileSystemHelper.js';
10
10
  import { curry2 } from '../../node_modules/@fable-org/fable-library-js/Util.js';
11
11
  import { fold, append } from '../../node_modules/@fable-org/fable-library-js/Array.js';
12
12
 
@@ -92,27 +92,34 @@ function fullfillContractBatchAsyncBy(contractF, basePath, cs) {
92
92
  return Promise.resolve(res);
93
93
  })));
94
94
  }
95
- function fulfillWriteContractAsync(basePath, c) {
95
+ function fulfillWriteContractAsync(forceOverwrite, basePath, c) {
96
96
  return catchWith((e_1) => {
97
- let arg_4;
98
- return FSharpResult$2_Error((arg_4 = e_1.message, toText(printf("Error writing contract %s: %s"))(c.Path)(arg_4)));
99
- }, PromiseBuilder__Run_212F1D4B(promise, PromiseBuilder__Delay_62FBFDE1(promise, () => PromiseBuilder__Delay_62FBFDE1(promise, () => {
100
- const matchValue = c.DTO;
101
- if (matchValue == null) {
102
- const path_2 = combine(basePath, c.Path);
103
- return ensureDirectoryOfFileAsync(path_2).then(() => writeFileTextAsync(path_2, "").then(() => Promise.resolve(FSharpResult$2_Ok(c))));
104
- } else if (typeof value(matchValue) === "string") {
105
- const t = value(matchValue);
106
- const path = combine(basePath, c.Path);
107
- return ensureDirectoryOfFileAsync(path).then(() => writeFileTextAsync(path, t).then(() => Promise.resolve(FSharpResult$2_Ok(c))));
97
+ let arg_5;
98
+ return FSharpResult$2_Error((arg_5 = e_1.message, toText(printf("Error writing contract %s: %s"))(c.Path)(arg_5)));
99
+ }, PromiseBuilder__Run_212F1D4B(promise, PromiseBuilder__Delay_62FBFDE1(promise, () => PromiseBuilder__Delay_62FBFDE1(promise, () => fileExistsAsync(combine(basePath, c.Path)).then((_arg) => {
100
+ const exists = _arg;
101
+ if (exists && c.Path.endsWith(".gitkeep")) {
102
+ return Promise.resolve(FSharpResult$2_Ok(c));
103
+ } else if (exists && !forceOverwrite) {
104
+ return Promise.resolve(FSharpResult$2_Error(toText(printf("Contract %s already exists and overwrite is not allowed"))(c.Path)));
108
105
  } else {
109
- const wb = value(matchValue);
110
- const path_1 = combine(basePath, c.Path);
111
- return ensureDirectoryOfFileAsync(path_1).then(() => writeFileXlsxAsync(path_1, wb).then(() => Promise.resolve(FSharpResult$2_Ok(c))));
106
+ const matchValue = c.DTO;
107
+ if (matchValue == null) {
108
+ const path_2 = combine(basePath, c.Path);
109
+ return ensureDirectoryOfFileAsync(path_2).then(() => writeFileTextAsync(path_2, "").then(() => Promise.resolve(FSharpResult$2_Ok(c))));
110
+ } else if (typeof value(matchValue) === "string") {
111
+ const t = value(matchValue);
112
+ const path = combine(basePath, c.Path);
113
+ return ensureDirectoryOfFileAsync(path).then(() => writeFileTextAsync(path, t).then(() => Promise.resolve(FSharpResult$2_Ok(c))));
114
+ } else {
115
+ const wb = value(matchValue);
116
+ const path_1 = combine(basePath, c.Path);
117
+ return ensureDirectoryOfFileAsync(path_1).then(() => writeFileXlsxAsync(path_1, wb).then(() => Promise.resolve(FSharpResult$2_Ok(c))));
118
+ }
112
119
  }
113
- }).catch((_arg_6) => {
114
- let arg_2;
115
- return Promise.resolve(FSharpResult$2_Error((arg_2 = _arg_6.message, toText(printf("Error writing contract %s: %s"))(c.Path)(arg_2))));
120
+ })).catch((_arg_7) => {
121
+ let arg_3;
122
+ return Promise.resolve(FSharpResult$2_Error((arg_3 = _arg_7.message, toText(printf("Error writing contract %s: %s"))(c.Path)(arg_3))));
116
123
  }))));
117
124
  }
118
125
  function fulfillUpdateContractAsync(basePath, c) {
@@ -188,17 +195,17 @@ function fullfillDeleteContractAsync(basePath, c) {
188
195
  return Promise.resolve(FSharpResult$2_Error((arg_1 = _arg_1.message, toText(printf("Error deleting contract %s: %s"))(c.Path)(arg_1))));
189
196
  }))));
190
197
  }
191
- function fullFillContract(basePath, c) {
198
+ function fullFillContract(forceOverwrite, basePath, c) {
192
199
  return catchWith((e) => {
193
200
  let arg_2;
194
201
  return FSharpResult$2_Error((arg_2 = e.message, toText(printf("Error fulfilling contract %s: %s"))(c.Path)(arg_2)));
195
202
  }, PromiseBuilder__Run_212F1D4B(promise, PromiseBuilder__Delay_62FBFDE1(promise, () => {
196
203
  const matchValue = c.Operation;
197
- return matchValue === "READ" ? fulfillReadContractAsync(basePath, c) : matchValue === "CREATE" ? fulfillWriteContractAsync(basePath, c) : matchValue === "UPDATE" ? fulfillUpdateContractAsync(basePath, c) : matchValue === "DELETE" ? fullfillDeleteContractAsync(basePath, c) : matchValue === "RENAME" ? fullfillRenameContractAsync(basePath, c) : Promise.resolve(FSharpResult$2_Error(toText(printf("Operation %A not supported"))(c.Operation)));
204
+ return matchValue === "READ" ? fulfillReadContractAsync(basePath, c) : matchValue === "CREATE" ? fulfillWriteContractAsync(forceOverwrite, basePath, c) : matchValue === "UPDATE" ? fulfillUpdateContractAsync(basePath, c) : matchValue === "DELETE" ? fullfillDeleteContractAsync(basePath, c) : matchValue === "RENAME" ? fullfillRenameContractAsync(basePath, c) : Promise.resolve(FSharpResult$2_Error(toText(printf("Operation %A not supported"))(c.Operation)));
198
205
  })));
199
206
  }
200
- function fullFillContractBatchAsync(basePath, cs) {
201
- return fullfillContractBatchAsyncBy(fullFillContract, basePath, cs);
207
+ function fullFillContractBatchAsync(forceOverwrite, basePath, cs) {
208
+ return fullfillContractBatchAsyncBy((basePath_1, c) => fullFillContract(forceOverwrite, basePath_1, c), basePath, cs);
202
209
  }
203
210
 
204
211
  export { fulfillReadContractAsync, fulfillUpdateContractAsync, fulfillWriteContractAsync, fullFillContract, fullFillContractBatchAsync, fullfillContractBatchAsyncBy, fullfillDeleteContractAsync, fullfillRenameContractAsync };
@@ -1 +1 @@
1
- {"version":3,"file":"Assay.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/Assay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAIjF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAKzD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAUpD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAGzD,qBAAa,eAAe;;CAG3B;AAED,wBAAgB,2BAA2B,IAAI,QAAQ,CAEtD;AAED,wBAAgB,kDAAkD,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,mBAAmB,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,EAAE,CAkBtK;AAED,wBAAgB,sCAAsC,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,EAAE,UAAU,GAAG,MAAM,CAY/F;AAED,wBAAgB,wCAAwC,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAWtH"}
1
+ {"version":3,"file":"Assay.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/Assay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAIjF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAKzD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,OAAO,EAAE,QAAQ,EAAoB,MAAM,qBAAqB,CAAC;AAQjE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAGzD,qBAAa,eAAe;;CAG3B;AAED,wBAAgB,2BAA2B,IAAI,QAAQ,CAEtD;AAED,wBAAgB,kDAAkD,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,mBAAmB,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,EAAE,CAkBtK;AAED,wBAAgB,sCAAsC,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,EAAE,UAAU,GAAG,MAAM,CAa/F;AAED,wBAAgB,wCAAwC,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAWtH"}
@@ -7,12 +7,12 @@ import { DataAux_pathAndSelectorFromName } from '../Core/Data.js';
7
7
  import { LDFile } from '../ROCrate/LDTypes/File.js';
8
8
  import { LDDataset } from '../ROCrate/LDTypes/Dataset.js';
9
9
  import { BaseTypes_composeDefinedTerm_ZDED3A0F, BaseTypes_composePropertyValueFromOA_ZDED3A0F, BaseTypes_composeComment_Z13201A7E, BaseTypes_decomposeDefinedTerm_Z2F770004, BaseTypes_decomposePropertyValueToOA_Z2F770004, BaseTypes_decomposeComment_Z2F770004 } from './Basic.js';
10
- import { PersonConversion_composePerson_Z64D846DC, PersonConversion_decomposePerson_Z6839B9E8 } from './Person.js';
10
+ import { ArcAssay } from '../Core/ArcTypes.js';
11
+ import { PersonConversion_composePerson_2B0BECCC, PersonConversion_decomposePerson_Z6839B9E8 } from './Person.js';
11
12
  import { ARCtrl_ArcTables__ArcTables_GetProcesses_5E660E5C, ARCtrl_ArcTables__ArcTables_fromProcesses_Static_Z27F0B586 } from './Table.js';
12
13
  import { ArcTables } from '../Core/Table/ArcTables.js';
13
14
  import { DatamapConversion_composeFragmentDescriptors_Z892BFC3, DatamapConversion_decomposeFragmentDescriptors_Z6E59645F } from './Datamap.js';
14
15
  import { Datamap } from '../Core/Datamap.js';
15
- import { ArcAssay } from '../Core/ArcTypes.js';
16
16
  import { ofSeq } from '../../node_modules/@fable-org/fable-library-js/List.js';
17
17
 
18
18
  class AssayConversion {
@@ -45,7 +45,8 @@ function AssayConversion_composeAssay_Z5C53FD5C(assay, fs) {
45
45
  const measurementMethod = map(BaseTypes_composeDefinedTerm_ZDED3A0F, assay.TechnologyType);
46
46
  const measurementTechnique = map(BaseTypes_composeDefinedTerm_ZDED3A0F, assay.TechnologyPlatform);
47
47
  const variableMeasured = map(BaseTypes_composePropertyValueFromOA_ZDED3A0F, assay.MeasurementType);
48
- const creators = Option_fromSeq(ResizeArray_map(PersonConversion_composePerson_Z64D846DC, assay.Performers));
48
+ const persons = map((i) => i.GetAllPersons(), assay.Investigation);
49
+ const creators = Option_fromSeq(ResizeArray_map((c) => PersonConversion_composePerson_2B0BECCC(c, unwrap(persons)), assay.Performers));
49
50
  const processSequence = Option_fromSeq((collection = ARCtrl_ArcTables__ArcTables_GetProcesses_5E660E5C(new ArcTables(assay.Tables), assay.Identifier, void 0, unwrap(fs)), Array.from(collection)));
50
51
  const fragmentDescriptors = map(DatamapConversion_composeFragmentDescriptors_Z892BFC3, assay.Datamap);
51
52
  const dataFiles = map((ps) => AssayConversion_getDataFilesFromProcesses_6BABD1B0(ps, unwrap(fragmentDescriptors)), processSequence);
@@ -4,7 +4,7 @@ import { tryFromString, toString } from './DateTime.js';
4
4
  import { now } from '../../node_modules/@fable-org/fable-library-js/Date.js';
5
5
  import { Option_fromSeq, ResizeArray_map, ResizeArray_choose, ResizeArray_filter } from '../Core/Helper/Collections.js';
6
6
  import { ScholarlyArticleConversion_composeScholarlyArticle_D324A6D, ScholarlyArticleConversion_decomposeScholarlyArticle_Z6839B9E8 } from './ScholarlyArticle.js';
7
- import { PersonConversion_composePerson_Z64D846DC, PersonConversion_decomposePerson_Z6839B9E8 } from './Person.js';
7
+ import { PersonConversion_composePerson_2B0BECCC, PersonConversion_decomposePerson_Z6839B9E8 } from './Person.js';
8
8
  import { BaseTypes_composeComment_Z13201A7E, BaseTypes_decomposeComment_Z2F770004 } from './Basic.js';
9
9
  import { toList, delay, append } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
10
10
  import { AssayConversion_composeAssay_Z5C53FD5C, AssayConversion_decomposeAssay_Z6839B9E8 } from './Assay.js';
@@ -33,7 +33,7 @@ function InvestigationConversion_composeInvestigation_Z284BC0AC(investigation, f
33
33
  const dateCreated = bind(tryFromString, investigation.SubmissionDate);
34
34
  const datePublished = defaultArg(bind(tryFromString, investigation.PublicReleaseDate), now());
35
35
  const publications = Option_fromSeq(ResizeArray_map(ScholarlyArticleConversion_composeScholarlyArticle_D324A6D, investigation.Publications));
36
- const creators = Option_fromSeq(ResizeArray_map(PersonConversion_composePerson_Z64D846DC, investigation.Contacts));
36
+ const creators = Option_fromSeq(ResizeArray_map((c) => PersonConversion_composePerson_2B0BECCC(c, investigation.GetAllPersons()), investigation.Contacts));
37
37
  const comments = Option_fromSeq(ResizeArray_map(BaseTypes_composeComment_Z13201A7E, investigation.Comments));
38
38
  const hasParts = Option_fromSeq((collection = toList(delay(() => append(ResizeArray_map((a_3) => AssayConversion_composeAssay_Z5C53FD5C(a_3, unwrap(fs)), investigation.Assays), delay(() => append(ResizeArray_map((s_2) => StudyConversion_composeStudy_ZFE0E38E(s_2, unwrap(fs)), investigation.Studies), delay(() => append(ResizeArray_choose((w) => {
39
39
  try {
@@ -11,6 +11,6 @@ export declare function PersonConversion_composeAffiliation_Z721C83C5(affiliatio
11
11
  export declare function PersonConversion_decomposeAffiliation_Z2F770004(affiliation: LDNode, context?: LDContext): string;
12
12
  export declare function PersonConversion_composeAddress_Z721C83C5(address: string): any;
13
13
  export declare function PersonConversion_decomposeAddress_4E60E31B(address: any): string;
14
- export declare function PersonConversion_composePerson_Z64D846DC(person: Person): LDNode;
14
+ export declare function PersonConversion_composePerson_2B0BECCC(person: Person, persons?: Iterable<Person>): LDNode;
15
15
  export declare function PersonConversion_decomposePerson_Z6839B9E8(person: LDNode, graph?: LDGraph, context?: LDContext): Person;
16
16
  //# sourceMappingURL=Person.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Person.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/Person.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAIjF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAMzD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAOpD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAG3C,qBAAa,gBAAgB;;CAG5B;AAED,wBAAgB,4BAA4B,IAAI,QAAQ,CAEvD;AAED,wBAAgB,6BAA6B,IAAI,MAAM,CAEtD;AAED,wBAAgB,6CAA6C,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAczF;AAED,wBAAgB,+CAA+C,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAOhH;AAED,wBAAgB,yCAAyC,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAW9E;AAED,wBAAgB,0CAA0C,CAAC,OAAO,EAAE,GAAG,GAAG,MAAM,CAU/E;AAED,wBAAgB,wCAAwC,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAc/E;AAED,wBAAgB,0CAA0C,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAevH"}
1
+ {"version":3,"file":"Person.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/Person.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAIjF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAMzD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAU3C,qBAAa,gBAAgB;;CAG5B;AAED,wBAAgB,4BAA4B,IAAI,QAAQ,CAEvD;AAED,wBAAgB,6BAA6B,IAAI,MAAM,CAEtD;AAED,wBAAgB,6CAA6C,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAczF;AAED,wBAAgB,+CAA+C,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAOhH;AAED,wBAAgB,yCAAyC,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAW9E;AAED,wBAAgB,0CAA0C,CAAC,OAAO,EAAE,GAAG,GAAG,MAAM,CAU/E;AAED,wBAAgB,uCAAuC,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,MAAM,CA+B1G;AAED,wBAAgB,0CAA0C,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAevH"}
@@ -3,17 +3,18 @@ import { LDOrganization } from '../ROCrate/LDTypes/Organization.js';
3
3
  import { fromString } from '../fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js';
4
4
  import { decoder, encoder } from '../Json/ROCrate/LDNode.js';
5
5
  import { LDNode } from '../ROCrate/LDObject.js';
6
- import { toText, printf } from '../../node_modules/@fable-org/fable-library-js/String.js';
7
- import { isEmpty, filter } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
8
- import { unwrap, value, map } from '../../node_modules/@fable-org/fable-library-js/Option.js';
6
+ import { toText, printf, toFail } from '../../node_modules/@fable-org/fable-library-js/String.js';
7
+ import { isEmpty, filter, tryFind } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
8
+ import { unwrap, bind, value, map } from '../../node_modules/@fable-org/fable-library-js/Option.js';
9
9
  import { toString } from '../fable_modules/Thoth.Json.JavaScript.0.4.1/Encode.fs.js';
10
+ import { Person } from '../Core/Person.js';
11
+ import { equals } from '../../node_modules/@fable-org/fable-library-js/Util.js';
12
+ import { tryGetOrcidNumber } from '../Core/Helper/ORCID.js';
10
13
  import { Option_fromSeq, ResizeArray_map } from '../Core/Helper/Collections.js';
11
14
  import { BaseTypes_composeDefinedTerm_ZDED3A0F, BaseTypes_decomposeDefinedTerm_Z2F770004 } from './Basic.js';
12
15
  import { toString as toString$1 } from '../../node_modules/@fable-org/fable-library-js/Types.js';
13
16
  import { Comment$ } from '../Core/Comment.js';
14
17
  import { LDPerson } from '../ROCrate/LDTypes/Person.js';
15
- import { Person } from '../Core/Person.js';
16
- import { tryGetOrcidNumber } from '../Core/Helper/ORCID.js';
17
18
 
18
19
  class PersonConversion {
19
20
  constructor() {
@@ -67,19 +68,34 @@ function PersonConversion_decomposeAddress_4E60E31B(address) {
67
68
  throw new Error("Address must be a string or a Json.LDNode");
68
69
  }
69
70
  }
70
- function PersonConversion_composePerson_Z64D846DC(person) {
71
- let givenName;
72
- const matchValue = person.FirstName;
71
+ function PersonConversion_composePerson_2B0BECCC(person, persons) {
72
+ let orcid;
73
+ const matchValue = person.ORCID;
73
74
  if (matchValue == null) {
75
+ orcid = persons == null ? void 0 : bind((p_1) => p_1.ORCID, tryFind((p) => {
76
+ if (equals(p.FirstName, person.FirstName)) {
77
+ return equals(p.LastName, person.LastName);
78
+ } else {
79
+ return false;
80
+ }
81
+ }, value(persons)));
82
+ } else {
83
+ const o = value(matchValue);
84
+ const matchValue_1 = tryGetOrcidNumber(o);
85
+ orcid = matchValue_1 == null ? toFail(printf("Invalid ORCID: %s"))(o) : value(matchValue_1);
86
+ }
87
+ let givenName;
88
+ const matchValue_2 = person.FirstName;
89
+ if (matchValue_2 == null) {
74
90
  throw new Error("Person must have a given name");
75
91
  } else {
76
- givenName = value(matchValue);
92
+ givenName = value(matchValue_2);
77
93
  }
78
94
  const jobTitles = Option_fromSeq(ResizeArray_map(BaseTypes_composeDefinedTerm_ZDED3A0F, person.Roles));
79
95
  const disambiguatingDescriptions = Option_fromSeq(ResizeArray_map(toString$1, person.Comments));
80
96
  const address_1 = map(PersonConversion_composeAddress_Z721C83C5, person.Address);
81
97
  const affiliation_1 = map(PersonConversion_composeAffiliation_Z721C83C5, person.Affiliation);
82
- return LDPerson.create(givenName, unwrap(person.ORCID), void 0, unwrap(affiliation_1), unwrap(person.EMail), unwrap(person.LastName), void 0, unwrap(jobTitles), unwrap(person.MidInitials), address_1, unwrap(disambiguatingDescriptions), unwrap(person.Fax), unwrap(person.Phone));
98
+ return LDPerson.create(givenName, unwrap(orcid), void 0, unwrap(affiliation_1), unwrap(person.EMail), unwrap(person.LastName), void 0, unwrap(jobTitles), unwrap(person.MidInitials), address_1, unwrap(disambiguatingDescriptions), unwrap(person.Fax), unwrap(person.Phone));
83
99
  }
84
100
  function PersonConversion_decomposePerson_Z6839B9E8(person, graph, context) {
85
101
  const orcid = tryGetOrcidNumber(person.Id);
@@ -97,4 +113,4 @@ function PersonConversion_decomposePerson_Z6839B9E8(person, graph, context) {
97
113
  return Person.create(unwrap(orcid), unwrap(LDPerson.tryGetFamilyNameAsString(person, unwrap(context))), LDPerson.getGivenNameAsString(person, unwrap(context)), unwrap(LDPerson.tryGetAdditionalNameAsString(person, unwrap(context))), unwrap(LDPerson.tryGetEmailAsString(person, unwrap(context))), unwrap(LDPerson.tryGetTelephoneAsString(person, unwrap(context))), unwrap(LDPerson.tryGetFaxNumberAsString(person, unwrap(context))), unwrap(address), unwrap(affiliation), roles, comments);
98
114
  }
99
115
 
100
- export { PersonConversion, PersonConversion_$reflection, PersonConversion_composeAddress_Z721C83C5, PersonConversion_composeAffiliation_Z721C83C5, PersonConversion_composePerson_Z64D846DC, PersonConversion_decomposeAddress_4E60E31B, PersonConversion_decomposeAffiliation_Z2F770004, PersonConversion_decomposePerson_Z6839B9E8, PersonConversion_get_orcidKey };
116
+ export { PersonConversion, PersonConversion_$reflection, PersonConversion_composeAddress_Z721C83C5, PersonConversion_composeAffiliation_Z721C83C5, PersonConversion_composePerson_2B0BECCC, PersonConversion_decomposeAddress_4E60E31B, PersonConversion_decomposeAffiliation_Z2F770004, PersonConversion_decomposePerson_Z6839B9E8, PersonConversion_get_orcidKey };
@@ -1 +1 @@
1
- {"version":3,"file":"Run.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/Run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAAgB,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAOlE,OAAO,EAAE,QAAQ,EAAgB,MAAM,kBAAkB,CAAC;AAI1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAQvE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAczD,qBAAa,aAAa;;CAGzB;AAED,wBAAgB,yBAAyB,IAAI,QAAQ,CAEpD;AAED;;GAEG;AACH,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,cAAc,GAA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MAAM,EAAE,CAkDjH;AAED,wBAAgB,uDAAuD,CAAC,kBAAkB,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,CAAC,wBAAwB,EAAE,qBAAqB,EAAE,CAAC,CAK9M;AAED,wBAAgB,iCAAiC,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,UAAU,GAAG,MAAM,CA+BtF;AAED,wBAAgB,oCAAoC,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAoC9G"}
@@ -21,7 +21,7 @@ import { LDWorkflowInvocation } from '../ROCrate/LDTypes/WorkflowInvocation.js';
21
21
  import { LDLabProcess } from '../ROCrate/LDTypes/LabProcess.js';
22
22
  import { ArcRun } from '../Core/ArcTypes.js';
23
23
  import { BaseTypes_composeDefinedTerm_ZDED3A0F, BaseTypes_composePropertyValueFromOA_ZDED3A0F, BaseTypes_composeComment_Z13201A7E, BaseTypes_decomposeDefinedTerm_Z2F770004, BaseTypes_decomposePropertyValueToOA_Z2F770004, BaseTypes_decomposeComment_Z2F770004 } from './Basic.js';
24
- import { PersonConversion_composePerson_Z64D846DC, PersonConversion_decomposePerson_Z6839B9E8 } from './Person.js';
24
+ import { PersonConversion_composePerson_2B0BECCC, PersonConversion_decomposePerson_Z6839B9E8 } from './Person.js';
25
25
  import { LDOrganization } from '../ROCrate/LDTypes/Organization.js';
26
26
  import { utcNow } from '../../node_modules/@fable-org/fable-library-js/Date.js';
27
27
  import { DatamapConversion_composeFragmentDescriptors_Z892BFC3, DatamapConversion_decomposeFragmentDescriptors_Z6E59645F } from './Datamap.js';
@@ -200,7 +200,8 @@ function RunConversion_composeRun_Z8CC08AC(run, fs) {
200
200
  const measurementMethod = map(BaseTypes_composeDefinedTerm_ZDED3A0F, run.TechnologyType);
201
201
  const measurementTechnique = map(BaseTypes_composeDefinedTerm_ZDED3A0F, run.TechnologyPlatform);
202
202
  const variableMeasured = map(BaseTypes_composePropertyValueFromOA_ZDED3A0F, run.MeasurementType);
203
- const creators = Option_fromSeq(ResizeArray_map(PersonConversion_composePerson_Z64D846DC, run.Performers));
203
+ const persons = map((i) => i.GetAllPersons(), run.Investigation);
204
+ const creators = Option_fromSeq(ResizeArray_map((c) => PersonConversion_composePerson_2B0BECCC(c, unwrap(persons)), run.Performers));
204
205
  const publisher = LDOrganization.create("DataPLANT");
205
206
  const dateCreated = utcNow();
206
207
  if (creators != null) {
@@ -1 +1 @@
1
- {"version":3,"file":"ScholarlyArticle.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/ScholarlyArticle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAIjF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AASzD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAOpD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,qBAAa,0BAA0B;;CAGtC;AAED,wBAAgB,sCAAsC,IAAI,QAAQ,CAEjE;AAED,wBAAgB,kDAAkD,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAczF;AAED,wBAAgB,iDAAiD,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAmCrF;AAED,wBAAgB,mDAAmD,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAG7F;AAED,wBAAgB,oDAAoD,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAOhH;AAED,wBAAgB,oDAAoD,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAEnH;AAED,wBAAgB,0DAA0D,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAc3G;AAED,wBAAgB,8DAA8D,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAa5I"}
1
+ {"version":3,"file":"ScholarlyArticle.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/ScholarlyArticle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAIjF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AASzD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAOpD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,qBAAa,0BAA0B;;CAGtC;AAED,wBAAgB,sCAAsC,IAAI,QAAQ,CAEjE;AAED,wBAAgB,kDAAkD,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAezF;AAED,wBAAgB,iDAAiD,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAmCrF;AAED,wBAAgB,mDAAmD,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAG7F;AAED,wBAAgB,oDAAoD,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAOhH;AAED,wBAAgB,oDAAoD,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAEnH;AAED,wBAAgB,0DAA0D,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAc3G;AAED,wBAAgB,8DAA8D,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAa5I"}
@@ -33,7 +33,8 @@ function ScholarlyArticleConversion_composeAuthor_Z721C83C5(author) {
33
33
  return matchValue.fields[0];
34
34
  }
35
35
  } catch (matchValue_1) {
36
- return LDPerson.create(author);
36
+ const id = `#Author_${author}`;
37
+ return LDPerson.create(author, void 0, id);
37
38
  }
38
39
  }
39
40
  function ScholarlyArticleConversion_splitAuthors_Z721C83C5(a) {
@@ -1 +1 @@
1
- {"version":3,"file":"Study.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/Study.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAOjF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAWzD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,qBAAa,eAAe;;CAG3B;AAED,wBAAgB,2BAA2B,IAAI,QAAQ,CAEtD;AAED,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,EAAE,UAAU,GAAG,MAAM,CAY9F;AAED,wBAAgB,wCAAwC,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAWtH"}
1
+ {"version":3,"file":"Study.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/Study.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAOjF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAoB,MAAM,qBAAqB,CAAC;AAWjE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,qBAAa,eAAe;;CAG3B;AAED,wBAAgB,2BAA2B,IAAI,QAAQ,CAEtD;AAED,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,EAAE,UAAU,GAAG,MAAM,CAa9F;AAED,wBAAgB,wCAAwC,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAWtH"}
@@ -1,10 +1,11 @@
1
1
  import { class_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
2
- import { bind, unwrap, map } from '../../node_modules/@fable-org/fable-library-js/Option.js';
2
+ import { bind, map, unwrap } from '../../node_modules/@fable-org/fable-library-js/Option.js';
3
3
  import { tryFromString, toString } from './DateTime.js';
4
4
  import { now } from '../../node_modules/@fable-org/fable-library-js/Date.js';
5
5
  import { Option_fromSeq, ResizeArray_map, Option_fromValueWithDefault } from '../Core/Helper/Collections.js';
6
6
  import { ScholarlyArticleConversion_composeScholarlyArticle_D324A6D, ScholarlyArticleConversion_decomposeScholarlyArticle_Z6839B9E8 } from './ScholarlyArticle.js';
7
- import { PersonConversion_composePerson_Z64D846DC, PersonConversion_decomposePerson_Z6839B9E8 } from './Person.js';
7
+ import { ArcStudy } from '../Core/ArcTypes.js';
8
+ import { PersonConversion_composePerson_2B0BECCC, PersonConversion_decomposePerson_Z6839B9E8 } from './Person.js';
8
9
  import { ARCtrl_ArcTables__ArcTables_GetProcesses_5E660E5C, ARCtrl_ArcTables__ArcTables_fromProcesses_Static_Z27F0B586 } from './Table.js';
9
10
  import { ArcTables } from '../Core/Table/ArcTables.js';
10
11
  import { DatamapConversion_composeFragmentDescriptors_Z892BFC3, DatamapConversion_decomposeFragmentDescriptors_Z6E59645F } from './Datamap.js';
@@ -12,7 +13,6 @@ import { Datamap } from '../Core/Datamap.js';
12
13
  import { AssayConversion_getDataFilesFromProcesses_6BABD1B0 } from './Assay.js';
13
14
  import { BaseTypes_composeComment_Z13201A7E, BaseTypes_decomposeComment_Z2F770004 } from './Basic.js';
14
15
  import { LDDataset } from '../ROCrate/LDTypes/Dataset.js';
15
- import { ArcStudy } from '../Core/ArcTypes.js';
16
16
  import { ofSeq } from '../../node_modules/@fable-org/fable-library-js/List.js';
17
17
 
18
18
  class StudyConversion {
@@ -28,7 +28,8 @@ function StudyConversion_composeStudy_ZFE0E38E(study, fs) {
28
28
  const datePublished = bind(tryFromString, study.PublicReleaseDate);
29
29
  const dateModified = now();
30
30
  const publications = Option_fromSeq(ResizeArray_map(ScholarlyArticleConversion_composeScholarlyArticle_D324A6D, study.Publications));
31
- const creators = Option_fromSeq(ResizeArray_map(PersonConversion_composePerson_Z64D846DC, study.Contacts));
31
+ const persons = map((i) => i.GetAllPersons(), study.Investigation);
32
+ const creators = Option_fromSeq(ResizeArray_map((c) => PersonConversion_composePerson_2B0BECCC(c, unwrap(persons)), study.Contacts));
32
33
  const processSequence = Option_fromSeq((collection = ARCtrl_ArcTables__ArcTables_GetProcesses_5E660E5C(new ArcTables(study.Tables), void 0, study.Identifier, unwrap(fs)), Array.from(collection)));
33
34
  const fragmentDescriptors = map(DatamapConversion_composeFragmentDescriptors_Z892BFC3, study.Datamap);
34
35
  const dataFiles = map((ps) => AssayConversion_getDataFilesFromProcesses_6BABD1B0(ps, unwrap(fragmentDescriptors)), processSequence);