@nfdi4plants/arctrl 1.0.0-beta.6 → 1.0.0-beta.7

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.
@@ -1,6 +1,5 @@
1
1
  import { Record } from "../fable_modules/fable-library.4.5.0/Types.js";
2
2
  import { class_type, option_type, record_type, array_type, string_type } from "../fable_modules/fable-library.4.5.0/Reflection.js";
3
- import { FsWorkbook } from "../fable_modules/FsSpreadsheet.5.0.1/FsWorkbook.fs.js";
4
3
  import { defaultArg } from "../fable_modules/fable-library.4.5.0/Option.js";
5
4
 
6
5
  export class CLITool extends Record {
@@ -19,12 +18,7 @@ export function CLITool_$reflection() {
19
18
  }
20
19
 
21
20
  export function DTO__get_isSpreadsheet(this$) {
22
- if (this$ instanceof FsWorkbook) {
23
- return true;
24
- }
25
- else {
26
- return false;
27
- }
21
+ return true;
28
22
  }
29
23
 
30
24
  export function DTO__get_isText(this$) {
@@ -46,12 +40,7 @@ export function DTO__get_isCLITool(this$) {
46
40
  }
47
41
 
48
42
  export function DTO__AsSpreadsheet(this$) {
49
- if (this$ instanceof FsWorkbook) {
50
- return this$;
51
- }
52
- else {
53
- throw new Error("Not a spreadsheet");
54
- }
43
+ return this$;
55
44
  }
56
45
 
57
46
  export function DTO__AsText(this$) {
@@ -3,7 +3,6 @@ import { equalsWith } from "../fable_modules/fable-library.4.5.0/Array.js";
3
3
  import { defaultOf } from "../fable_modules/fable-library.4.5.0/Util.js";
4
4
  import { Contract } from "../Contract/Contract.js";
5
5
  import { fromFsWorkbook, toFsWorkbook } from "../ISA/ISA.Spreadsheet/ArcInvestigation.js";
6
- import { FsWorkbook } from "../fable_modules/FsSpreadsheet.5.0.1/FsWorkbook.fs.js";
7
6
  import { Assay_fileNameFromIdentifier, Study_fileNameFromIdentifier } from "../ISA/ISA/Identifier.js";
8
7
  import { ARCtrl_ISA_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D, ARCtrl_ISA_ArcStudy__ArcStudy_toFsWorkbook_Static_Z2A9662E9 } from "../ISA/ISA.Spreadsheet/ArcStudy.js";
9
8
  import { getAssayFolderPath, getStudyFolderPath } from "../Path.js";
@@ -108,13 +107,8 @@ export function ARCtrl_ISA_ArcInvestigation__ArcInvestigation_tryFromReadContrac
108
107
  if (c.DTOType != null) {
109
108
  if (c.DTOType === "ISA_Investigation") {
110
109
  if (c.DTO != null) {
111
- if (c.DTO instanceof FsWorkbook) {
112
- matchResult = 0;
113
- fsworkbook = c.DTO;
114
- }
115
- else {
116
- matchResult = 1;
117
- }
110
+ matchResult = 0;
111
+ fsworkbook = c.DTO;
118
112
  }
119
113
  else {
120
114
  matchResult = 1;
@@ -172,13 +166,8 @@ export function ARCtrl_ISA_ArcStudy__ArcStudy_tryFromReadContract_Static_7570923
172
166
  if (c.DTOType != null) {
173
167
  if (c.DTOType === "ISA_Study") {
174
168
  if (c.DTO != null) {
175
- if (c.DTO instanceof FsWorkbook) {
176
- matchResult = 0;
177
- fsworkbook = c.DTO;
178
- }
179
- else {
180
- matchResult = 1;
181
- }
169
+ matchResult = 0;
170
+ fsworkbook = c.DTO;
182
171
  }
183
172
  else {
184
173
  matchResult = 1;
@@ -236,13 +225,8 @@ export function ARCtrl_ISA_ArcAssay__ArcAssay_tryFromReadContract_Static_7570923
236
225
  if (c.DTOType != null) {
237
226
  if (c.DTOType === "ISA_Assay") {
238
227
  if (c.DTO != null) {
239
- if (c.DTO instanceof FsWorkbook) {
240
- matchResult = 0;
241
- fsworkbook = c.DTO;
242
- }
243
- else {
244
- matchResult = 1;
245
- }
228
+ matchResult = 0;
229
+ fsworkbook = c.DTO;
246
230
  }
247
231
  else {
248
232
  matchResult = 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nfdi4plants/arctrl",
3
- "version": "1.0.0-beta.6+1c6c4fa",
3
+ "version": "1.0.0-beta.7+1c6c4fa",
4
4
  "description": "Top level ARC DataModel and API function descriptions.",
5
5
  "type": "module",
6
6
  "main": "Index.js",