@nfdi4plants/arctrl 3.0.0-beta.11 → 3.0.0-beta.13

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 (192) hide show
  1. package/README.md +30 -3
  2. package/dist/ts/index.d.ts +15 -15
  3. package/dist/ts/index.d.ts.map +1 -1
  4. package/dist/ts/index.js +16 -16
  5. package/dist/ts/ts/ARC.d.ts +6 -1
  6. package/dist/ts/ts/ARC.d.ts.map +1 -1
  7. package/dist/ts/ts/ARC.js +30 -6
  8. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts +19 -0
  9. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts.map +1 -0
  10. package/dist/ts/ts/CWL/CWLProcessingUnit.js +26 -0
  11. package/dist/ts/ts/CWL/CWLTypes.d.ts +92 -0
  12. package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -0
  13. package/dist/ts/ts/CWL/CWLTypes.js +173 -0
  14. package/dist/ts/ts/CWL/Decode.d.ts +94 -0
  15. package/dist/ts/ts/CWL/Decode.d.ts.map +1 -0
  16. package/dist/ts/ts/CWL/Decode.js +649 -0
  17. package/dist/ts/ts/CWL/Encode.d.ts +28 -0
  18. package/dist/ts/ts/CWL/Encode.d.ts.map +1 -0
  19. package/dist/ts/ts/CWL/Encode.js +546 -0
  20. package/dist/ts/ts/CWL/HashHelpers.d.ts +9 -0
  21. package/dist/ts/ts/CWL/HashHelpers.d.ts.map +1 -0
  22. package/dist/ts/ts/CWL/HashHelpers.js +35 -0
  23. package/dist/ts/ts/CWL/Inputs.d.ts +28 -0
  24. package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -0
  25. package/dist/ts/ts/CWL/Inputs.js +62 -0
  26. package/dist/ts/ts/CWL/Outputs.d.ts +25 -0
  27. package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -0
  28. package/dist/ts/ts/CWL/Outputs.js +59 -0
  29. package/dist/ts/ts/CWL/ParameterReference.d.ts +23 -0
  30. package/dist/ts/ts/CWL/ParameterReference.d.ts.map +1 -0
  31. package/dist/ts/ts/CWL/ParameterReference.js +60 -0
  32. package/dist/ts/ts/CWL/Requirements.d.ts +71 -0
  33. package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -0
  34. package/dist/ts/ts/CWL/Requirements.js +116 -0
  35. package/dist/ts/ts/CWL/ToolDescription.d.ts +33 -0
  36. package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -0
  37. package/dist/ts/ts/CWL/ToolDescription.js +80 -0
  38. package/dist/ts/ts/CWL/WorkflowDescription.d.ts +34 -0
  39. package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -0
  40. package/dist/ts/ts/CWL/WorkflowDescription.js +80 -0
  41. package/dist/ts/ts/CWL/WorkflowSteps.d.ts +45 -0
  42. package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -0
  43. package/dist/ts/ts/CWL/WorkflowSteps.js +99 -0
  44. package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
  45. package/dist/ts/ts/Contract/ARC.js +27 -9
  46. package/dist/ts/ts/Contract/ArcRun.d.ts +6 -0
  47. package/dist/ts/ts/Contract/ArcRun.d.ts.map +1 -1
  48. package/dist/ts/ts/Contract/ArcRun.js +131 -4
  49. package/dist/ts/ts/Contract/ArcWorkflow.d.ts +3 -0
  50. package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
  51. package/dist/ts/ts/Contract/ArcWorkflow.js +70 -4
  52. package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
  53. package/dist/ts/ts/ContractIO/ContractIO.js +3 -1
  54. package/dist/ts/ts/Conversion/Assay.d.ts +13 -0
  55. package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -0
  56. package/dist/ts/ts/Conversion/Assay.js +69 -0
  57. package/dist/ts/ts/Conversion/Basic.d.ts +105 -0
  58. package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -0
  59. package/dist/ts/ts/Conversion/Basic.js +452 -0
  60. package/dist/ts/ts/Conversion/ColumnIndex.d.ts +10 -0
  61. package/dist/ts/ts/Conversion/ColumnIndex.d.ts.map +1 -0
  62. package/dist/ts/ts/Conversion/ColumnIndex.js +52 -0
  63. package/dist/ts/ts/Conversion/Datamap.d.ts +11 -0
  64. package/dist/ts/ts/Conversion/Datamap.d.ts.map +1 -0
  65. package/dist/ts/ts/Conversion/Datamap.js +21 -0
  66. package/dist/ts/ts/Conversion/DateTime.d.ts +4 -0
  67. package/dist/ts/ts/Conversion/DateTime.d.ts.map +1 -0
  68. package/dist/ts/ts/Conversion/DateTime.js +23 -0
  69. package/dist/ts/ts/Conversion/Investigation.d.ts +12 -0
  70. package/dist/ts/ts/Conversion/Investigation.d.ts.map +1 -0
  71. package/dist/ts/ts/Conversion/Investigation.js +59 -0
  72. package/dist/ts/ts/Conversion/Person.d.ts +16 -0
  73. package/dist/ts/ts/Conversion/Person.d.ts.map +1 -0
  74. package/dist/ts/ts/Conversion/Person.js +100 -0
  75. package/dist/ts/ts/Conversion/Process.d.ts +84 -0
  76. package/dist/ts/ts/Conversion/Process.d.ts.map +1 -0
  77. package/dist/ts/ts/Conversion/Process.js +455 -0
  78. package/dist/ts/ts/Conversion/Run.d.ts +26 -0
  79. package/dist/ts/ts/Conversion/Run.d.ts.map +1 -0
  80. package/dist/ts/ts/Conversion/Run.js +190 -0
  81. package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts +16 -0
  82. package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -0
  83. package/dist/ts/ts/Conversion/ScholarlyArticle.js +116 -0
  84. package/dist/ts/ts/Conversion/Study.d.ts +12 -0
  85. package/dist/ts/ts/Conversion/Study.d.ts.map +1 -0
  86. package/dist/ts/ts/Conversion/Study.js +51 -0
  87. package/dist/ts/ts/Conversion/Table.d.ts +45 -0
  88. package/dist/ts/ts/Conversion/Table.d.ts.map +1 -0
  89. package/dist/ts/ts/Conversion/Table.js +203 -0
  90. package/dist/ts/ts/Conversion/Workflow.d.ts +45 -0
  91. package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -0
  92. package/dist/ts/ts/Conversion/Workflow.js +305 -0
  93. package/dist/ts/ts/Conversion.d.ts +23 -274
  94. package/dist/ts/ts/Conversion.d.ts.map +1 -1
  95. package/dist/ts/ts/Conversion.js +62 -1475
  96. package/dist/ts/ts/Core/ArcTypes.d.ts +48 -38
  97. package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
  98. package/dist/ts/ts/Core/ArcTypes.js +183 -103
  99. package/dist/ts/ts/Core/Helper/Identifier.d.ts +24 -0
  100. package/dist/ts/ts/Core/Helper/Identifier.d.ts.map +1 -1
  101. package/dist/ts/ts/Core/Helper/Identifier.js +35 -2
  102. package/dist/ts/ts/FileSystem/FileSystemTree.d.ts +2 -2
  103. package/dist/ts/ts/FileSystem/FileSystemTree.d.ts.map +1 -1
  104. package/dist/ts/ts/FileSystem/FileSystemTree.js +8 -15
  105. package/dist/ts/ts/Json/ROCrate/LDContext.d.ts.map +1 -1
  106. package/dist/ts/ts/Json/ROCrate/LDContext.js +21 -11
  107. package/dist/ts/ts/Json/Run.js +2 -2
  108. package/dist/ts/ts/Json/Workflow.d.ts.map +1 -1
  109. package/dist/ts/ts/Json/Workflow.js +8 -9
  110. package/dist/ts/ts/ROCrate/LDContext.d.ts.map +1 -1
  111. package/dist/ts/ts/ROCrate/LDContext.js +35 -31
  112. package/dist/ts/ts/ROCrate/LDObject.d.ts +2 -2
  113. package/dist/ts/ts/ROCrate/LDObject.js +2 -2
  114. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Comment.d.ts.map +1 -1
  115. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.d.ts +61 -0
  116. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.d.ts.map +1 -0
  117. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +338 -0
  118. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.d.ts +39 -0
  119. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.d.ts.map +1 -0
  120. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.js +219 -0
  121. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.d.ts +43 -0
  122. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.d.ts.map +1 -0
  123. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.js +224 -0
  124. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/CreativeWork.d.ts.map +1 -1
  125. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/CreativeWork.js +1 -1
  126. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Dataset.d.ts +32 -22
  127. package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -0
  128. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Dataset.js +45 -0
  129. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/DefinedTerm.d.ts.map +1 -1
  130. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/File.d.ts +10 -4
  131. package/dist/ts/ts/ROCrate/LDTypes/File.d.ts.map +1 -0
  132. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/File.js +34 -1
  133. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.d.ts +59 -0
  134. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.d.ts.map +1 -0
  135. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.js +344 -0
  136. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProcess.d.ts +2 -0
  137. package/dist/ts/ts/ROCrate/LDTypes/LabProcess.d.ts.map +1 -0
  138. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProcess.js +31 -5
  139. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProtocol.d.ts +6 -2
  140. package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.d.ts.map +1 -0
  141. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProtocol.js +66 -15
  142. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Organization.d.ts.map +1 -1
  143. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Person.d.ts.map +1 -1
  144. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PostalAddress.d.ts.map +1 -1
  145. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PropertyValue.d.ts +35 -11
  146. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts.map +1 -0
  147. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PropertyValue.js +191 -1
  148. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Sample.d.ts.map +1 -1
  149. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/ScholarlyArticle.d.ts.map +1 -1
  150. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.d.ts +46 -0
  151. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.d.ts.map +1 -0
  152. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.js +247 -0
  153. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.d.ts +12 -0
  154. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.d.ts.map +1 -0
  155. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.js +40 -0
  156. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.d.ts +11 -0
  157. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.d.ts.map +1 -0
  158. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.js +46 -0
  159. package/dist/ts/ts/ROCrate/ROCrateContext.d.ts +2 -2
  160. package/dist/ts/ts/ROCrate/ROCrateContext.d.ts.map +1 -1
  161. package/dist/ts/ts/ROCrate/ROCrateContext.js +6 -6
  162. package/dist/ts/ts/ROCrateIO.js +6 -6
  163. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +1 -1
  164. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
  165. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +4 -4
  166. package/dist/ts/ts/fable_modules/DynamicObj.7.1.0/DynObj.fs.js +109 -0
  167. package/package.json +1 -1
  168. package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts.map +0 -1
  169. package/dist/ts/ts/ROCrate/Generic/File.d.ts.map +0 -1
  170. package/dist/ts/ts/ROCrate/Generic/LabProcess.d.ts.map +0 -1
  171. package/dist/ts/ts/ROCrate/Generic/LabProtocol.d.ts.map +0 -1
  172. package/dist/ts/ts/ROCrate/Generic/PropertyValue.d.ts.map +0 -1
  173. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Comment.d.ts +0 -0
  174. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Comment.js +0 -0
  175. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/CreativeWork.d.ts +0 -0
  176. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/DefinedTerm.d.ts +0 -0
  177. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/DefinedTerm.js +0 -0
  178. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Organization.d.ts +0 -0
  179. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Organization.js +0 -0
  180. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Person.d.ts +0 -0
  181. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Person.js +0 -0
  182. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PostalAddress.d.ts +0 -0
  183. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PostalAddress.js +0 -0
  184. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Sample.d.ts +0 -0
  185. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Sample.js +0 -0
  186. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/ScholarlyArticle.d.ts +0 -0
  187. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/ScholarlyArticle.js +0 -0
  188. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/DynamicObj.fs.js +0 -0
  189. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/FableJS.fs.js +0 -0
  190. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/HashCodes.fs.js +0 -0
  191. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/PropertyHelper.fs.js +0 -0
  192. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/ReflectionUtils.fs.js +0 -0
@@ -0,0 +1,338 @@
1
+ import { unwrap, value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
2
+ import { LDNode } from '../LDObject.js';
3
+ import { LDFormalParameter } from './FormalParameter.js';
4
+ import { LDPerson } from './Person.js';
5
+ import { LDOrganization } from './Organization.js';
6
+ import { LDComment } from './Comment.js';
7
+ import { clean } from '../Helper.js';
8
+ import { createMissingIdentifier } from '../../Core/Helper/Identifier.js';
9
+ import { class_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
10
+
11
+ class LDComputationalWorkflow {
12
+ constructor() {
13
+ }
14
+ static get schemaType() {
15
+ return "https://bioschemas.org/ComputationalWorkflow";
16
+ }
17
+ static get input() {
18
+ return "https://bioschemas.org/properties/input";
19
+ }
20
+ static get inputDeprecated() {
21
+ return "https://bioschemas.org/input";
22
+ }
23
+ static get output() {
24
+ return "https://bioschemas.org/properties/output";
25
+ }
26
+ static get outputDeprecated() {
27
+ return "https://bioschemas.org/output";
28
+ }
29
+ static get creator() {
30
+ return "http://schema.org/creator";
31
+ }
32
+ static get dateCreated() {
33
+ return "http://schema.org/dateCreated";
34
+ }
35
+ static get license() {
36
+ return "http://schema.org/license";
37
+ }
38
+ static get name() {
39
+ return "http://schema.org/name";
40
+ }
41
+ static get programmingLanguage() {
42
+ return "http://schema.org/programmingLanguage";
43
+ }
44
+ static get sdPublisher() {
45
+ return "http://schema.org/sdPublisher";
46
+ }
47
+ static get url() {
48
+ return "http://schema.org/url";
49
+ }
50
+ static get version() {
51
+ return "http://schema.org/version";
52
+ }
53
+ static get description() {
54
+ return "http://schema.org/description";
55
+ }
56
+ static get hasPart() {
57
+ return "http://schema.org/hasPart";
58
+ }
59
+ static get additionalType() {
60
+ return "http://schema.org/additionalType";
61
+ }
62
+ static get comment() {
63
+ return "http://schema.org/comment";
64
+ }
65
+ static getInputs(cw, graph, context) {
66
+ const l = cw.GetPropertyNodes(LDComputationalWorkflow.input, void 0, unwrap(graph), unwrap(context));
67
+ return l.length === 0 ? cw.GetPropertyNodes(LDComputationalWorkflow.inputDeprecated, void 0, unwrap(graph), unwrap(context)) : l;
68
+ }
69
+ static getInputsAsFormalParameters(cw, graph, context) {
70
+ const filter = (ldObject, context_1) => LDFormalParameter.validate(ldObject, unwrap(context_1));
71
+ const l = cw.GetPropertyNodes(LDComputationalWorkflow.input, filter, unwrap(graph), unwrap(context));
72
+ return l.length === 0 ? cw.GetPropertyNodes(LDComputationalWorkflow.inputDeprecated, filter, unwrap(graph), unwrap(context)) : l;
73
+ }
74
+ static setInputs(cw, inputs, context) {
75
+ return cw.SetProperty(LDComputationalWorkflow.input, inputs, unwrap(context));
76
+ }
77
+ static getOutputs(cw, graph, context) {
78
+ const l = cw.GetPropertyNodes(LDComputationalWorkflow.output, void 0, unwrap(graph), unwrap(context));
79
+ return l.length === 0 ? cw.GetPropertyNodes(LDComputationalWorkflow.outputDeprecated, void 0, unwrap(graph), unwrap(context)) : l;
80
+ }
81
+ static getOutputsAsFormalParameter(cw, graph, context) {
82
+ const filter = (ldObject, context_1) => LDFormalParameter.validate(ldObject, unwrap(context_1));
83
+ const l = cw.GetPropertyNodes(LDComputationalWorkflow.output, filter, unwrap(graph), unwrap(context));
84
+ return l.length === 0 ? cw.GetPropertyNodes(LDComputationalWorkflow.outputDeprecated, filter, unwrap(graph), unwrap(context)) : l;
85
+ }
86
+ static setOutputs(cw, outputs, context) {
87
+ return cw.SetProperty(LDComputationalWorkflow.output, outputs, unwrap(context));
88
+ }
89
+ static getCreator(cw, graph, context) {
90
+ return cw.GetPropertyNodes(LDComputationalWorkflow.creator, (ldObject, context_1) => {
91
+ if (LDPerson.validate(ldObject, unwrap(context_1))) {
92
+ return true;
93
+ } else {
94
+ return LDOrganization.validate(ldObject, unwrap(context_1));
95
+ }
96
+ }, unwrap(graph), unwrap(context));
97
+ }
98
+ static setCreator(cw, creator, context) {
99
+ return cw.SetProperty(LDComputationalWorkflow.creator, creator, unwrap(context));
100
+ }
101
+ static tryGetDateCreated(cw, context) {
102
+ const matchValue = cw.TryGetPropertyAsSingleton(LDComputationalWorkflow.dateCreated, unwrap(context));
103
+ let matchResult, d;
104
+ if (matchValue != null) {
105
+ if (typeof value(matchValue) === "string") {
106
+ matchResult = 0;
107
+ d = value(matchValue);
108
+ } else {
109
+ matchResult = 1;
110
+ }
111
+ } else {
112
+ matchResult = 1;
113
+ }
114
+ switch (matchResult) {
115
+ case 0:
116
+ return d;
117
+ default:
118
+ return void 0;
119
+ }
120
+ }
121
+ static setDateCreated(cw, date, context) {
122
+ return cw.SetProperty(LDComputationalWorkflow.dateCreated, date, unwrap(context));
123
+ }
124
+ static getLicenses(cw, graph, context) {
125
+ return cw.GetPropertyNodes(LDComputationalWorkflow.license, void 0, unwrap(graph), unwrap(context));
126
+ }
127
+ static setLicenses(cw, licenses, context) {
128
+ return cw.SetProperty(LDComputationalWorkflow.license, licenses, unwrap(context));
129
+ }
130
+ static tryGetNameAsString(cw, context) {
131
+ const matchValue = cw.TryGetPropertyAsSingleton(LDComputationalWorkflow.name, unwrap(context));
132
+ let matchResult, n;
133
+ if (matchValue != null) {
134
+ if (typeof value(matchValue) === "string") {
135
+ matchResult = 0;
136
+ n = value(matchValue);
137
+ } else {
138
+ matchResult = 1;
139
+ }
140
+ } else {
141
+ matchResult = 1;
142
+ }
143
+ switch (matchResult) {
144
+ case 0:
145
+ return n;
146
+ default:
147
+ return void 0;
148
+ }
149
+ }
150
+ static getNameAsString(cw, context) {
151
+ const matchValue = cw.TryGetPropertyAsSingleton(LDComputationalWorkflow.name, unwrap(context));
152
+ if (matchValue != null) {
153
+ if (typeof value(matchValue) === "string") {
154
+ const n = value(matchValue);
155
+ return n;
156
+ } else {
157
+ throw new Error(`property \`name\` of object with @id \`${cw.Id}\` was not a string`);
158
+ }
159
+ } else {
160
+ throw new Error(`Could not access property \`name\` of object with @id \`${cw.Id}\``);
161
+ }
162
+ }
163
+ static setNameAsString(cw, name, context) {
164
+ return cw.SetProperty(LDComputationalWorkflow.name, name, unwrap(context));
165
+ }
166
+ static getProgrammingLanguages(cw, graph, context) {
167
+ return cw.GetPropertyNodes(LDComputationalWorkflow.programmingLanguage, void 0, unwrap(graph), unwrap(context));
168
+ }
169
+ static setProgrammingLanguages(cw, programmingLanguages, context) {
170
+ return cw.SetProperty(LDComputationalWorkflow.programmingLanguage, programmingLanguages, unwrap(context));
171
+ }
172
+ static tryGetSdPublisher(cw, graph, context) {
173
+ let ldObject, context_1;
174
+ const matchValue = cw.TryGetPropertyAsSingleNode(LDComputationalWorkflow.sdPublisher, unwrap(graph), unwrap(context));
175
+ let matchResult, a_1;
176
+ if (matchValue != null) {
177
+ if (ldObject = value(matchValue), context_1 = context, LDPerson.validate(ldObject, unwrap(context_1)) ? true : LDOrganization.validate(ldObject, unwrap(context_1))) {
178
+ matchResult = 0;
179
+ a_1 = value(matchValue);
180
+ } else {
181
+ matchResult = 1;
182
+ }
183
+ } else {
184
+ matchResult = 1;
185
+ }
186
+ switch (matchResult) {
187
+ case 0:
188
+ return a_1;
189
+ default:
190
+ return void 0;
191
+ }
192
+ }
193
+ static setSdPublisher(cw, sdPublisher, context) {
194
+ return cw.SetProperty(LDComputationalWorkflow.sdPublisher, sdPublisher, unwrap(context));
195
+ }
196
+ static tryGetUrl(cw, context) {
197
+ const matchValue = cw.TryGetPropertyAsSingleton(LDComputationalWorkflow.url, unwrap(context));
198
+ let matchResult, u;
199
+ if (matchValue != null) {
200
+ if (typeof value(matchValue) === "string") {
201
+ matchResult = 0;
202
+ u = value(matchValue);
203
+ } else {
204
+ matchResult = 1;
205
+ }
206
+ } else {
207
+ matchResult = 1;
208
+ }
209
+ switch (matchResult) {
210
+ case 0:
211
+ return u;
212
+ default:
213
+ return void 0;
214
+ }
215
+ }
216
+ static setUrl(cw, url, context) {
217
+ return cw.SetProperty(LDComputationalWorkflow.url, url, unwrap(context));
218
+ }
219
+ static tryGetVersion(cw, context) {
220
+ const matchValue = cw.TryGetPropertyAsSingleton(LDComputationalWorkflow.version, unwrap(context));
221
+ let matchResult, v;
222
+ if (matchValue != null) {
223
+ if (typeof value(matchValue) === "string") {
224
+ matchResult = 0;
225
+ v = value(matchValue);
226
+ } else {
227
+ matchResult = 1;
228
+ }
229
+ } else {
230
+ matchResult = 1;
231
+ }
232
+ switch (matchResult) {
233
+ case 0:
234
+ return v;
235
+ default:
236
+ return void 0;
237
+ }
238
+ }
239
+ static setVersion(cw, version, context) {
240
+ return cw.SetProperty(LDComputationalWorkflow.version, version, unwrap(context));
241
+ }
242
+ static tryGetDescription(cw, context) {
243
+ const matchValue = cw.TryGetPropertyAsSingleton(LDComputationalWorkflow.description, unwrap(context));
244
+ let matchResult, d;
245
+ if (matchValue != null) {
246
+ if (typeof value(matchValue) === "string") {
247
+ matchResult = 0;
248
+ d = value(matchValue);
249
+ } else {
250
+ matchResult = 1;
251
+ }
252
+ } else {
253
+ matchResult = 1;
254
+ }
255
+ switch (matchResult) {
256
+ case 0:
257
+ return d;
258
+ default:
259
+ return void 0;
260
+ }
261
+ }
262
+ static setDescription(cw, description, context) {
263
+ return cw.SetProperty(LDComputationalWorkflow.description, description, unwrap(context));
264
+ }
265
+ static getHasPart(cw, graph, context) {
266
+ return cw.GetPropertyNodes(LDComputationalWorkflow.hasPart, void 0, unwrap(graph), unwrap(context));
267
+ }
268
+ static setHasPart(cw, hasParts, context) {
269
+ return cw.SetProperty(LDComputationalWorkflow.hasPart, Array.from(hasParts), unwrap(context));
270
+ }
271
+ static tryGetAdditionalTypeAsString(cw, context) {
272
+ const matchValue = cw.TryGetPropertyAsSingleton(LDComputationalWorkflow.additionalType, unwrap(context));
273
+ let matchResult, at;
274
+ if (matchValue != null) {
275
+ if (typeof value(matchValue) === "string") {
276
+ matchResult = 0;
277
+ at = value(matchValue);
278
+ } else {
279
+ matchResult = 1;
280
+ }
281
+ } else {
282
+ matchResult = 1;
283
+ }
284
+ switch (matchResult) {
285
+ case 0:
286
+ return at;
287
+ default:
288
+ return void 0;
289
+ }
290
+ }
291
+ static getAdditionalTypeAsString(cw, context) {
292
+ const matchValue = cw.TryGetPropertyAsSingleton(LDComputationalWorkflow.additionalType, unwrap(context));
293
+ if (matchValue != null) {
294
+ if (typeof value(matchValue) === "string") {
295
+ const at = value(matchValue);
296
+ return at;
297
+ } else {
298
+ throw new Error(`property \`additionalType\` of object with @id \`${cw.Id}\` was not a string`);
299
+ }
300
+ } else {
301
+ throw new Error(`Could not access property \`additionalType\` of object with @id \`${cw.Id}\``);
302
+ }
303
+ }
304
+ static setAdditionalTypeAsString(cw, additionalType, context) {
305
+ return cw.SetProperty(LDComputationalWorkflow.additionalType, additionalType, unwrap(context));
306
+ }
307
+ static getComments(cw, graph, context) {
308
+ return cw.GetPropertyNodes(LDComputationalWorkflow.comment, (ldObject, context_1) => LDComment.validate(ldObject, unwrap(context_1)), unwrap(graph), unwrap(context));
309
+ }
310
+ static setComments(cw, comments, context) {
311
+ return cw.SetProperty(LDComputationalWorkflow.comment, comments, unwrap(context));
312
+ }
313
+ static validate(lp, context) {
314
+ return lp.HasType(LDComputationalWorkflow.schemaType, unwrap(context));
315
+ }
316
+ static create(id, inputs, outputs, creator, dateCreated, licenses, name, programmingLanguages, sdPublisher, url, version, description, hasParts, comments, context) {
317
+ const cw = new LDNode(id == null ? clean(`#ComputationalWorkflow_${createMissingIdentifier()}`) : value(id), [LDComputationalWorkflow.schemaType], void 0, unwrap(context));
318
+ cw.SetOptionalProperty(LDComputationalWorkflow.input, inputs, unwrap(context));
319
+ cw.SetOptionalProperty(LDComputationalWorkflow.output, outputs, unwrap(context));
320
+ cw.SetOptionalProperty(LDComputationalWorkflow.creator, creator, unwrap(context));
321
+ cw.SetOptionalProperty(LDComputationalWorkflow.dateCreated, dateCreated, unwrap(context));
322
+ cw.SetOptionalProperty(LDComputationalWorkflow.license, licenses, unwrap(context));
323
+ cw.SetOptionalProperty(LDComputationalWorkflow.name, name, unwrap(context));
324
+ cw.SetOptionalProperty(LDComputationalWorkflow.programmingLanguage, programmingLanguages, unwrap(context));
325
+ cw.SetOptionalProperty(LDComputationalWorkflow.sdPublisher, sdPublisher, unwrap(context));
326
+ cw.SetOptionalProperty(LDComputationalWorkflow.url, url, unwrap(context));
327
+ cw.SetOptionalProperty(LDComputationalWorkflow.version, version, unwrap(context));
328
+ cw.SetOptionalProperty(LDComputationalWorkflow.description, description, unwrap(context));
329
+ cw.SetOptionalProperty(LDComputationalWorkflow.hasPart, hasParts, unwrap(context));
330
+ cw.SetOptionalProperty(LDComputationalWorkflow.comment, comments, unwrap(context));
331
+ return cw;
332
+ }
333
+ }
334
+ function LDComputationalWorkflow_$reflection() {
335
+ return class_type("ARCtrl.ROCrate.LDComputationalWorkflow", void 0, LDComputationalWorkflow);
336
+ }
337
+
338
+ export { LDComputationalWorkflow, LDComputationalWorkflow_$reflection };
@@ -0,0 +1,39 @@
1
+ import { Option } from '@fable-org/fable-library-js/Option.js';
2
+ import { LDRef, LDNode } from '../LDObject.js';
3
+ import { LDContext } from '../LDContext.js';
4
+ import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js';
5
+ export declare class LDComputerLanguage {
6
+ constructor();
7
+ static get schemaType(): string;
8
+ static get name(): string;
9
+ static get alternateName(): string;
10
+ static get identifier(): string;
11
+ static get url(): string;
12
+ static get sameAs(): string;
13
+ static tryGetNameAsString(cl: LDNode, context?: LDContext): Option<string>;
14
+ static getNameAsString(cl: LDNode, context?: LDContext): string;
15
+ static setNameAsString<$d>(cl: LDNode, name: string, context?: LDContext): $d;
16
+ static tryGetAlternateNameAsString(cl: LDNode, context?: LDContext): Option<string>;
17
+ static getAlternateNameAsString(cl: LDNode, context?: LDContext): string;
18
+ static setAlternateNameAsString<$c>(cl: LDNode, alternateName: string, context?: LDContext): $c;
19
+ static tryGetIdentifierAsLDRef(cl: LDNode, context?: LDContext): Option<LDRef>;
20
+ static getIdentifierAsLDRef(cl: LDNode, context?: LDContext): LDRef;
21
+ static setIdentifierAsLDRef<$b>(cl: LDNode, identifier: LDRef, context?: LDContext): $b;
22
+ static tryGetUrlAsLDRef(cl: LDNode, context?: LDContext): Option<LDRef>;
23
+ static getUrlAsLDRef(cl: LDNode, context?: LDContext): LDRef;
24
+ static setUrlAsLDRef<$a>(cl: LDNode, url: LDRef, context?: LDContext): $a;
25
+ static validate(cl: LDNode, context?: LDContext): boolean;
26
+ static validateCWL(cl: LDNode, context?: LDContext): boolean;
27
+ static validateGalaxy(cl: LDNode, context?: LDContext): boolean;
28
+ static validateKNIME(cl: LDNode, context?: LDContext): boolean;
29
+ static validateNextflow(cl: LDNode, context?: LDContext): boolean;
30
+ static validateSnakemake(cl: LDNode, context?: LDContext): boolean;
31
+ static create(id: string, name?: string, alternateName?: string, identifier?: string, url?: string, context?: LDContext): LDNode;
32
+ static createCWL(context?: LDContext): LDNode;
33
+ static createGalaxy(context?: LDContext): LDNode;
34
+ static createKNIME(context?: LDContext): LDNode;
35
+ static createNextflow(context?: LDContext): LDNode;
36
+ static createSnakemake(context?: LDContext): LDNode;
37
+ }
38
+ export declare function LDComputerLanguage_$reflection(): TypeInfo;
39
+ //# sourceMappingURL=ComputerLanguage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ComputerLanguage.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/ROCrate/LDTypes/ComputerLanguage.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,MA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AE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM;IAUhI,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM;IAG7C,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM;IAGhD,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM;IAG/C,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM;IAGlD,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM;CAGtD;AAED,wBAAgB,8BAA8B,IAAI,QAAQ,CAEzD"}
@@ -0,0 +1,219 @@
1
+ import { LDFormalParameter } from './FormalParameter.js';
2
+ import { unwrap, value, map } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
3
+ import { LDRef, LDNode } from '../LDObject.js';
4
+ import { class_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
5
+
6
+ class LDComputerLanguage {
7
+ constructor() {
8
+ }
9
+ static get schemaType() {
10
+ return "http://schema.org/ComputerLanguage";
11
+ }
12
+ static get name() {
13
+ return "http://schema.org/name";
14
+ }
15
+ static get alternateName() {
16
+ return "http://schema.org/alternateName";
17
+ }
18
+ static get identifier() {
19
+ return "http://schema.org/identifier";
20
+ }
21
+ static get url() {
22
+ return "http://schema.org/url";
23
+ }
24
+ static get sameAs() {
25
+ return "http://schema.org/sameAs";
26
+ }
27
+ static tryGetNameAsString(cl, context) {
28
+ const matchValue = cl.TryGetPropertyAsSingleton(LDFormalParameter.name, unwrap(context));
29
+ let matchResult, n;
30
+ if (matchValue != null) {
31
+ if (typeof value(matchValue) === "string") {
32
+ matchResult = 0;
33
+ n = value(matchValue);
34
+ } else {
35
+ matchResult = 1;
36
+ }
37
+ } else {
38
+ matchResult = 1;
39
+ }
40
+ switch (matchResult) {
41
+ case 0:
42
+ return n;
43
+ default:
44
+ return void 0;
45
+ }
46
+ }
47
+ static getNameAsString(cl, context) {
48
+ const matchValue = cl.TryGetPropertyAsSingleton(LDComputerLanguage.name, unwrap(context));
49
+ if (matchValue != null) {
50
+ if (typeof value(matchValue) === "string") {
51
+ const n = value(matchValue);
52
+ return n;
53
+ } else {
54
+ throw new Error(`Property of \`name\` of object with @id \`${cl.Id}\` was not a string`);
55
+ }
56
+ } else {
57
+ throw new Error(`Could not access property \`name\` of object with @id \`${cl.Id}\``);
58
+ }
59
+ }
60
+ static setNameAsString(cl, name, context) {
61
+ return cl.SetProperty(LDComputerLanguage.name, name, unwrap(context));
62
+ }
63
+ static tryGetAlternateNameAsString(cl, context) {
64
+ const matchValue = cl.TryGetPropertyAsSingleton(LDComputerLanguage.alternateName, unwrap(context));
65
+ let matchResult, n;
66
+ if (matchValue != null) {
67
+ if (typeof value(matchValue) === "string") {
68
+ matchResult = 0;
69
+ n = value(matchValue);
70
+ } else {
71
+ matchResult = 1;
72
+ }
73
+ } else {
74
+ matchResult = 1;
75
+ }
76
+ switch (matchResult) {
77
+ case 0:
78
+ return n;
79
+ default:
80
+ return void 0;
81
+ }
82
+ }
83
+ static getAlternateNameAsString(cl, context) {
84
+ const matchValue = cl.TryGetPropertyAsSingleton(LDComputerLanguage.alternateName, unwrap(context));
85
+ if (matchValue != null) {
86
+ if (typeof value(matchValue) === "string") {
87
+ const n = value(matchValue);
88
+ return n;
89
+ } else {
90
+ throw new Error(`Property of \`alternateName\` of object with @id \`${cl.Id}\` was not a string`);
91
+ }
92
+ } else {
93
+ throw new Error(`Could not access property \`alternateName\` of object with @id \`${cl.Id}\``);
94
+ }
95
+ }
96
+ static setAlternateNameAsString(cl, alternateName, context) {
97
+ return cl.SetProperty(LDComputerLanguage.alternateName, alternateName, unwrap(context));
98
+ }
99
+ static tryGetIdentifierAsLDRef(cl, context) {
100
+ const matchValue = cl.TryGetPropertyAsSingleton(LDComputerLanguage.identifier, unwrap(context));
101
+ let matchResult, id;
102
+ if (matchValue != null) {
103
+ if (value(matchValue) instanceof LDRef) {
104
+ matchResult = 0;
105
+ id = value(matchValue);
106
+ } else {
107
+ matchResult = 1;
108
+ }
109
+ } else {
110
+ matchResult = 1;
111
+ }
112
+ switch (matchResult) {
113
+ case 0:
114
+ return id;
115
+ default:
116
+ return void 0;
117
+ }
118
+ }
119
+ static getIdentifierAsLDRef(cl, context) {
120
+ const matchValue = cl.TryGetPropertyAsSingleton(LDComputerLanguage.identifier, unwrap(context));
121
+ if (matchValue != null) {
122
+ if (value(matchValue) instanceof LDRef) {
123
+ const id = value(matchValue);
124
+ return id;
125
+ } else {
126
+ throw new Error(`Property of \`identifier\` of object with @id \`${cl.Id}\` was not a LDRef`);
127
+ }
128
+ } else {
129
+ throw new Error(`Could not access property \`identifier\` of object with @id \`${cl.Id}\``);
130
+ }
131
+ }
132
+ static setIdentifierAsLDRef(cl, identifier, context) {
133
+ return cl.SetProperty(LDComputerLanguage.identifier, identifier, unwrap(context));
134
+ }
135
+ static tryGetUrlAsLDRef(cl, context) {
136
+ const matchValue = cl.TryGetPropertyAsSingleton(LDComputerLanguage.url, unwrap(context));
137
+ let matchResult, url;
138
+ if (matchValue != null) {
139
+ if (value(matchValue) instanceof LDRef) {
140
+ matchResult = 0;
141
+ url = value(matchValue);
142
+ } else {
143
+ matchResult = 1;
144
+ }
145
+ } else {
146
+ matchResult = 1;
147
+ }
148
+ switch (matchResult) {
149
+ case 0:
150
+ return url;
151
+ default:
152
+ return void 0;
153
+ }
154
+ }
155
+ static getUrlAsLDRef(cl, context) {
156
+ const matchValue = cl.TryGetPropertyAsSingleton(LDComputerLanguage.url, unwrap(context));
157
+ if (matchValue != null) {
158
+ if (value(matchValue) instanceof LDRef) {
159
+ const url = value(matchValue);
160
+ return url;
161
+ } else {
162
+ throw new Error(`Property of \`url\` of object with @id \`${cl.Id}\` was not a LDRef`);
163
+ }
164
+ } else {
165
+ throw new Error(`Could not access property \`url\` of object with @id \`${cl.Id}\``);
166
+ }
167
+ }
168
+ static setUrlAsLDRef(cl, url, context) {
169
+ return cl.SetProperty(LDComputerLanguage.url, url, unwrap(context));
170
+ }
171
+ static validate(cl, context) {
172
+ return cl.HasType(LDComputerLanguage.schemaType, unwrap(context));
173
+ }
174
+ static validateCWL(cl, context) {
175
+ return LDComputerLanguage.validate(cl, unwrap(context)) && cl.Id === "https://w3id.org/workflowhub/workflow-ro-crate#cwl";
176
+ }
177
+ static validateGalaxy(cl, context) {
178
+ return LDComputerLanguage.validate(cl, unwrap(context)) && cl.Id === "https://w3id.org/workflowhub/workflow-ro-crate#galaxy";
179
+ }
180
+ static validateKNIME(cl, context) {
181
+ return LDComputerLanguage.validate(cl, unwrap(context)) && cl.Id === "https://w3id.org/workflowhub/workflow-ro-crate#knime";
182
+ }
183
+ static validateNextflow(cl, context) {
184
+ return LDComputerLanguage.validate(cl, unwrap(context)) && cl.Id === "https://w3id.org/workflowhub/workflow-ro-crate#nextflow";
185
+ }
186
+ static validateSnakemake(cl, context) {
187
+ return LDComputerLanguage.validate(cl, unwrap(context)) && cl.Id === "https://w3id.org/workflowhub/workflow-ro-crate#snakemake";
188
+ }
189
+ static create(id, name, alternateName, identifier, url, context) {
190
+ const cl = new LDNode(id, [LDComputerLanguage.schemaType], void 0, unwrap(context));
191
+ const identifier_1 = map((id_1) => new LDRef(id_1), identifier);
192
+ const url_1 = map((u) => new LDRef(u), url);
193
+ cl.SetOptionalProperty(LDComputerLanguage.name, name, unwrap(context));
194
+ cl.SetOptionalProperty(LDComputerLanguage.alternateName, alternateName, unwrap(context));
195
+ cl.SetOptionalProperty(LDComputerLanguage.identifier, identifier_1, unwrap(context));
196
+ cl.SetOptionalProperty(LDComputerLanguage.url, url_1, unwrap(context));
197
+ return cl;
198
+ }
199
+ static createCWL(context) {
200
+ return LDComputerLanguage.create("https://w3id.org/workflowhub/workflow-ro-crate#cwl", "Common Workflow Language", "CWL", "https://w3id.org/cwl/v1.2/", "https://www.commonwl.org/", unwrap(context));
201
+ }
202
+ static createGalaxy(context) {
203
+ return LDComputerLanguage.create("https://w3id.org/workflowhub/workflow-ro-crate#galaxy", "Galaxy", void 0, "https://galaxyproject.org/", "https://galaxyproject.org/", unwrap(context));
204
+ }
205
+ static createKNIME(context) {
206
+ return LDComputerLanguage.create("https://w3id.org/workflowhub/workflow-ro-crate#knime", "KNIME", void 0, "https://www.knime.com/", "https://www.knime.com/", unwrap(context));
207
+ }
208
+ static createNextflow(context) {
209
+ return LDComputerLanguage.create("https://w3id.org/workflowhub/workflow-ro-crate#nextflow", "Nextflow", void 0, "https://www.nextflow.io/", "https://www.nextflow.io/", unwrap(context));
210
+ }
211
+ static createSnakemake(context) {
212
+ return LDComputerLanguage.create("https://w3id.org/workflowhub/workflow-ro-crate#snakemake", "Snakemake", void 0, "https://doi.org/10.1093/bioinformatics/bts480", "https://snakemake.readthedocs.io", unwrap(context));
213
+ }
214
+ }
215
+ function LDComputerLanguage_$reflection() {
216
+ return class_type("ARCtrl.ROCrate.LDComputerLanguage", void 0, LDComputerLanguage);
217
+ }
218
+
219
+ export { LDComputerLanguage, LDComputerLanguage_$reflection };
@@ -0,0 +1,43 @@
1
+ import { Option } from '@fable-org/fable-library-js/Option.js';
2
+ import { LDGraph, LDNode } from '../LDObject.js';
3
+ import { LDContext } from '../LDContext.js';
4
+ import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js';
5
+ export declare class LDCreateAction {
6
+ constructor();
7
+ static get schemaType(): string;
8
+ static get name(): string;
9
+ static get instrument(): string;
10
+ static get agent(): string;
11
+ static get object_(): string;
12
+ static get result(): string;
13
+ static get description(): string;
14
+ static get endTime(): string;
15
+ static get disambiguatingDescription(): string;
16
+ static tryGetNameAsString(ca: LDNode, context?: LDContext): Option<string>;
17
+ static getNameAsString(ca: LDNode, context?: LDContext): string;
18
+ static setNameAsString<$h>(ca: LDNode, name: string, context?: LDContext): $h;
19
+ static getInstruments(ca: LDNode, graph?: LDGraph, context?: LDContext): LDNode[];
20
+ static getInstrumentsAsComputationalWorkflow(ca: LDNode, graph?: LDGraph, context?: LDContext): LDNode[];
21
+ static setInstruments<$g>(ca: LDNode, instruments: LDNode[], context?: LDContext): $g;
22
+ static tryGetAgent(ca: LDNode, graph?: LDGraph, context?: LDContext): Option<LDNode>;
23
+ static getAgent(ca: LDNode, graph?: LDGraph, context?: LDContext): LDNode;
24
+ static setAgent<$f>(ca: LDNode, agent: LDNode, context?: LDContext): $f;
25
+ static getObjects(ca: LDNode, graph?: LDGraph, context?: LDContext): LDNode[];
26
+ static getObjectsAsSample(ca: LDNode, graph?: LDGraph, context?: LDContext): LDNode[];
27
+ static getObjectsAsData(ca: LDNode, graph?: LDGraph, context?: LDContext): LDNode[];
28
+ static setObjects<$e>(ca: LDNode, objects: LDNode[], context?: LDContext): $e;
29
+ static getResults(ca: LDNode, graph?: LDGraph, context?: LDContext): LDNode[];
30
+ static getResultsAsSample(ca: LDNode, graph?: LDGraph, context?: LDContext): LDNode[];
31
+ static getResultsAsData(ca: LDNode, graph?: LDGraph, context?: LDContext): LDNode[];
32
+ static setResults<$d>(ca: LDNode, results: LDNode[], context?: LDContext): $d;
33
+ static tryGetDescription(ca: LDNode, context?: LDContext): Option<string>;
34
+ static setDescription<$c>(ca: LDNode, description: string, context?: LDContext): $c;
35
+ static tryGetEndTime(ca: LDNode, context?: LDContext): Option<Date>;
36
+ static setEndTime<$b>(ca: LDNode, endTime: Date, context?: LDContext): $b;
37
+ static getDisambiguatingDescriptionsAsString(ca: LDNode, context?: LDContext): string[];
38
+ static setDisambiguatingDescriptionsAsString<$a>(ca: LDNode, disambiguatingDescriptions: string[], context?: LDContext): $a;
39
+ static validate(ca: LDNode, context?: LDContext): boolean;
40
+ static create(name: string, agent: LDNode, instrument: LDNode, objects?: LDNode[], results?: LDNode[], description?: string, id?: string, endTime?: Date, disambiguatingDescriptions?: string[], context?: LDContext): LDNode;
41
+ }
42
+ export declare function LDCreateAction_$reflection(): Type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