@nfdi4plants/arctrl 3.0.0-beta.4 → 3.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ts/ts/Core/IdentifierSetters.d.ts +3 -1
- package/dist/ts/ts/Core/IdentifierSetters.d.ts.map +1 -1
- package/dist/ts/ts/Core/IdentifierSetters.js +2 -0
- package/dist/ts/ts/Json/Assay.d.ts +1 -1
- package/dist/ts/ts/Json/Assay.js +3 -3
- package/dist/ts/ts/Json/Process/Component.d.ts +6 -4
- package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Component.js +24 -7
- package/dist/ts/ts/Json/Process/ProcessParameterValue.js +6 -6
- package/dist/ts/ts/Json/Process/Protocol.js +5 -5
- package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts +4 -2
- package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/ProtocolParameter.js +21 -12
- package/dist/ts/ts/Json/Run.d.ts +11 -0
- package/dist/ts/ts/Json/Run.d.ts.map +1 -0
- package/dist/ts/ts/Json/Run.js +76 -0
- package/dist/ts/ts/Json/Study.js +2 -2
- package/dist/ts/ts/Json/Workflow.d.ts +11 -0
- package/dist/ts/ts/Json/Workflow.d.ts.map +1 -0
- package/dist/ts/ts/Json/Workflow.js +93 -0
- package/dist/ts/ts/Json.d.ts +21 -1
- package/dist/ts/ts/Json.d.ts.map +1 -1
- package/dist/ts/ts/Json.js +41 -1
- package/dist/ts/ts/JsonIO/Run.d.ts +10 -0
- package/dist/ts/ts/JsonIO/Run.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Run.js +44 -0
- package/dist/ts/ts/JsonIO/Workflow.d.ts +10 -0
- package/dist/ts/ts/JsonIO/Workflow.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Workflow.js +44 -0
- package/dist/ts/ts/Xlsx.d.ts +21 -1
- package/dist/ts/ts/Xlsx.d.ts.map +1 -1
- package/dist/ts/ts/Xlsx.js +41 -1
- package/package.json +1 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ArcTable } from './Table/ArcTable.js';
|
|
2
|
-
import { ArcInvestigation, ArcStudy, ArcAssay } from './ArcTypes.js';
|
|
2
|
+
import { ArcInvestigation, ArcRun, ArcWorkflow, ArcStudy, ArcAssay } from './ArcTypes.js';
|
|
3
3
|
export declare function setArcTableName(newName: string, table: ArcTable): ArcTable;
|
|
4
4
|
export declare function setAssayIdentifier(newIdentifier: string, assay: ArcAssay): ArcAssay;
|
|
5
5
|
export declare function setStudyIdentifier(newIdentifier: string, study: ArcStudy): ArcStudy;
|
|
6
|
+
export declare function setWorkflowIdentifier(newIdentifier: string, workflow: ArcWorkflow): ArcWorkflow;
|
|
7
|
+
export declare function setRunIdentifier(newIdentifier: string, run: ArcRun): ArcRun;
|
|
6
8
|
export declare function setInvestigationIdentifier(newIdentifier: string, investigation: ArcInvestigation): ArcInvestigation;
|
|
7
9
|
//# sourceMappingURL=IdentifierSetters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentifierSetters.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Core/IdentifierSetters.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"IdentifierSetters.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Core/IdentifierSetters.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAyC,QAAQ,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEjI,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,GAAG,QAAQ,CAI1E;AAED,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,GAAG,QAAQ,CAInF;AAED,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,GAAG,QAAQ,CAInF;AAED,wBAAgB,qBAAqB,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,GAAG,WAAW,CAI/F;AAED,wBAAgB,gBAAgB,CAAC,aAAa,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAI3E;AAED,wBAAgB,0BAA0B,CAAC,aAAa,EAAE,MAAM,EAAE,aAAa,EAAE,gBAAgB,GAAG,gBAAgB,CAInH"}
|
|
@@ -11,7 +11,7 @@ export declare const decoder: Decoder$1<ArcAssay>;
|
|
|
11
11
|
export declare function encoderCompressed(stringTable: IMap<string, int32>, oaTable: IMap<OntologyAnnotation, int32>, cellTable: IMap<CompositeCell_$union, int32>, assay: ArcAssay): IEncodable;
|
|
12
12
|
export declare function decoderCompressed(stringTable: string[], oaTable: OntologyAnnotation[], cellTable: CompositeCell_$union[]): Decoder$1<ArcAssay>;
|
|
13
13
|
export declare function ROCrate_genID(a: ArcAssay): string;
|
|
14
|
-
export declare function ROCrate_encoder(
|
|
14
|
+
export declare function ROCrate_encoder(assayName: Option<string>, a: ArcAssay): IEncodable;
|
|
15
15
|
export declare const ROCrate_decoder: Decoder$1<ArcAssay>;
|
|
16
16
|
export declare function ISAJson_encoder(studyName: Option<string>, idMap: Option<IMap<string, IEncodable>>, a: ArcAssay): IEncodable;
|
|
17
17
|
export declare const ISAJson_allowedFields: FSharpList<string>;
|
package/dist/ts/ts/Json/Assay.js
CHANGED
|
@@ -86,8 +86,8 @@ function ROCrate_genID(a) {
|
|
|
86
86
|
return `assays/${replace(matchValue, " ", "_")}/`;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
function ROCrate_encoder(
|
|
90
|
-
let value, value_3,
|
|
89
|
+
function ROCrate_encoder(assayName, a) {
|
|
90
|
+
let value, value_3, assayName_1;
|
|
91
91
|
const fileName = Assay_fileNameFromIdentifier(a.Identifier);
|
|
92
92
|
const processes = ARCtrl_ArcTables__ArcTables_GetProcesses(a);
|
|
93
93
|
const dataFiles = getData(processes);
|
|
@@ -119,7 +119,7 @@ function ROCrate_encoder(studyName, a) {
|
|
|
119
119
|
Encode(helpers_6) {
|
|
120
120
|
return helpers_6.encodeString(value_7);
|
|
121
121
|
}
|
|
122
|
-
}), a.Description), tryInclude("measurementType", OntologyAnnotation_ROCrate_encoderPropertyValue, a.MeasurementType), tryInclude("technologyType", OntologyAnnotation_ROCrate_encoderDefinedTerm, a.TechnologyType), tryInclude("technologyPlatform", OntologyAnnotation_ROCrate_encoderDefinedTerm, a.TechnologyPlatform), tryIncludeSeq("performers", ROCrate_encoder$1, a.Performers), tryIncludeList("dataFiles", ROCrate_encoder$4, dataFiles), tryIncludeList("processSequence", (
|
|
122
|
+
}), a.Description), tryInclude("measurementType", OntologyAnnotation_ROCrate_encoderPropertyValue, a.MeasurementType), tryInclude("technologyType", OntologyAnnotation_ROCrate_encoderDefinedTerm, a.TechnologyType), tryInclude("technologyPlatform", OntologyAnnotation_ROCrate_encoderDefinedTerm, a.TechnologyPlatform), tryIncludeSeq("performers", ROCrate_encoder$1, a.Performers), tryIncludeList("dataFiles", ROCrate_encoder$4, dataFiles), tryIncludeList("processSequence", (assayName_1 = a.Identifier, (oa_5) => ROCrate_encoder$2(assayName, assayName_1, oa_5)), processes), tryIncludeSeq("comments", ROCrate_encoder$3, a.Comments), ["@context", context_jsonvalue]]));
|
|
123
123
|
return {
|
|
124
124
|
Encode(helpers_7) {
|
|
125
125
|
const arg = map$2((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_7)], values_1);
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { encoder } from '../PropertyValue.js';
|
|
2
|
-
import { Component } from '../../Core/Process/Component.js';
|
|
3
|
-
import { Decoder$1, IEncodable } from '../../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
|
|
4
1
|
import { Option } from '@fable-org/fable-library-js/Option.js';
|
|
2
|
+
import { Decoder$1, IEncodable } from '../../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
|
|
3
|
+
import { Component } from '../../Core/Process/Component.js';
|
|
4
|
+
import { encoder as encoder_2 } from '../PropertyValue.js';
|
|
5
5
|
import { IMap } from '@fable-org/fable-library-js/Util.js';
|
|
6
|
-
export declare
|
|
6
|
+
export declare function encoder(value: Component): IEncodable;
|
|
7
|
+
export declare const decoder: Decoder$1<Component>;
|
|
8
|
+
export declare const ROCrate_encoder: typeof encoder_2;
|
|
7
9
|
export declare const ROCrate_decoder: Decoder$1<Component>;
|
|
8
10
|
export declare function ISAJson_genID(c: Component): string;
|
|
9
11
|
export declare function ISAJson_encoder(idMap: Option<IMap<string, IEncodable>>, c: Component): IEncodable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Component.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/Json/Process/Component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Component.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/Json/Process/Component.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,MAAM,EAAO,MAAM,uCAAuC,CAAC;AACtF,OAAO,EAAE,SAAS,EAAqB,UAAU,EAAE,MAAM,uDAAuD,CAAC;AAOjH,OAAO,EAAyF,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAEnJ,OAAO,EAA+B,OAAO,IAAI,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACxF,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAG3D,wBAAgB,OAAO,CAAC,KAAK,EAAE,SAAS,GAAG,UAAU,CAQpD;AAED,eAAO,MAAM,OAAO,EAAE,SAAS,CAAC,SAAS,CAMvC,CAAC;AAEH,eAAO,MAAM,eAAe,kBAAY,CAAC;AAEzC,eAAO,MAAM,eAAe,EAAE,SAAS,CAAC,SAAS,CAA8C,CAAC;AAEhG,wBAAgB,aAAa,CAAC,CAAC,EAAE,SAAS,GAAG,MAAM,CAElD;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,SAAS,GAAG,UAAU,CAYjG;AAED,eAAO,MAAM,eAAe,EAAE,SAAS,CAAC,SAAS,CAc/C,CAAC"}
|
|
@@ -1,15 +1,32 @@
|
|
|
1
|
-
import { decoder, encoder } from '../PropertyValue.js';
|
|
2
|
-
import { Component_decomposeName_Z721C83C5, Component, Component_createAsPV, Component__get_ComponentName } from '../../Core/Process/Component.js';
|
|
3
|
-
import { value, map } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
4
1
|
import { choose, ofArray } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
2
|
+
import { value, map } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
5
3
|
import { tryInclude } from '../Encode.js';
|
|
6
|
-
import { OntologyAnnotation_ISAJson_decoder, OntologyAnnotation_ISAJson_encoder } from '../OntologyAnnotation.js';
|
|
4
|
+
import { OntologyAnnotation_ISAJson_decoder, OntologyAnnotation_decoder, OntologyAnnotation_encoder, OntologyAnnotation_ISAJson_encoder } from '../OntologyAnnotation.js';
|
|
5
|
+
import { decoder as decoder$1, encoder as encoder$1 } from './Value.js';
|
|
7
6
|
import { map as map$1 } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
7
|
+
import { Component_decomposeName_Z721C83C5, Component, Component_createAsPV, Component__get_ComponentName } from '../../Core/Process/Component.js';
|
|
8
8
|
import { object } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
9
|
+
import { decoder as decoder$2, encoder as encoder$2 } from '../PropertyValue.js';
|
|
9
10
|
import { Decode_uri } from '../Decode.js';
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
const
|
|
12
|
+
function encoder(value) {
|
|
13
|
+
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([tryInclude("type", OntologyAnnotation_encoder, value.ComponentType), tryInclude("value", (value_1) => encoder$1(void 0, value_1), value.ComponentValue), tryInclude("unit", OntologyAnnotation_encoder, value.ComponentUnit)]));
|
|
14
|
+
return {
|
|
15
|
+
Encode(helpers) {
|
|
16
|
+
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers)], values_1);
|
|
17
|
+
return helpers.encodeObject(arg);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
const decoder = object((get$) => {
|
|
22
|
+
let objectArg_1, objectArg_2;
|
|
23
|
+
let ComponentType;
|
|
24
|
+
const objectArg = get$.Optional;
|
|
25
|
+
ComponentType = objectArg.Field("type", OntologyAnnotation_decoder);
|
|
26
|
+
return new Component((objectArg_1 = get$.Optional, objectArg_1.Field("value", decoder$1)), (objectArg_2 = get$.Optional, objectArg_2.Field("unit", OntologyAnnotation_decoder)), ComponentType);
|
|
27
|
+
});
|
|
28
|
+
const ROCrate_encoder = encoder$2;
|
|
29
|
+
const ROCrate_decoder = decoder$2(Component_createAsPV);
|
|
13
30
|
function ISAJson_encoder(idMap, c) {
|
|
14
31
|
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([tryInclude("componentName", (value) => ({
|
|
15
32
|
Encode(helpers) {
|
|
@@ -38,4 +55,4 @@ const ISAJson_decoder = object((get$) => {
|
|
|
38
55
|
return new Component(patternInput_1[0], patternInput_1[1], (objectArg_1 = get$.Optional, objectArg_1.Field("componentType", OntologyAnnotation_ISAJson_decoder)));
|
|
39
56
|
});
|
|
40
57
|
|
|
41
|
-
export { ISAJson_decoder, ISAJson_encoder, ROCrate_decoder, ROCrate_encoder };
|
|
58
|
+
export { ISAJson_decoder, ISAJson_encoder, ROCrate_decoder, ROCrate_encoder, decoder, encoder };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { decoder as decoder$
|
|
1
|
+
import { decoder as decoder$1, encoder } from '../PropertyValue.js';
|
|
2
2
|
import { ProcessParameterValue } from '../../Core/Process/ProcessParameterValue.js';
|
|
3
3
|
import { map } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
4
4
|
import { choose, ofArray } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
5
5
|
import { tryInclude } from '../Encode.js';
|
|
6
|
-
import {
|
|
7
|
-
import { decoder
|
|
6
|
+
import { ISAJson_decoder as ISAJson_decoder$1, ISAJson_encoder as ISAJson_encoder$1 } from './ProtocolParameter.js';
|
|
7
|
+
import { decoder, encoder as encoder$1 } from './Value.js';
|
|
8
8
|
import { OntologyAnnotation_ISAJson_decoder, OntologyAnnotation_ISAJson_encoder } from '../OntologyAnnotation.js';
|
|
9
9
|
import { map as map$1 } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
10
10
|
import { object } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
11
11
|
|
|
12
12
|
const ROCrate_encoder = encoder;
|
|
13
|
-
const ROCrate_decoder = decoder$
|
|
13
|
+
const ROCrate_decoder = decoder$1((alternateName, measurementMethod, description, category, value, unit) => ProcessParameterValue.createAsPV(alternateName, measurementMethod, description, category, value, unit));
|
|
14
14
|
function ISAJson_encoder(idMap, oa) {
|
|
15
|
-
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([tryInclude("category", (value) =>
|
|
15
|
+
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([tryInclude("category", (value) => ISAJson_encoder$1(idMap, value), oa.Category), tryInclude("value", (value_1) => encoder$1(idMap, value_1), oa.Value), tryInclude("unit", (oa_1) => OntologyAnnotation_ISAJson_encoder(idMap, oa_1), oa.Unit)]));
|
|
16
16
|
return {
|
|
17
17
|
Encode(helpers) {
|
|
18
18
|
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers)], values_1);
|
|
@@ -22,7 +22,7 @@ function ISAJson_encoder(idMap, oa) {
|
|
|
22
22
|
}
|
|
23
23
|
const ISAJson_decoder = object((get$) => {
|
|
24
24
|
let objectArg, objectArg_1, objectArg_2;
|
|
25
|
-
return new ProcessParameterValue((objectArg = get$.Optional, objectArg.Field("category",
|
|
25
|
+
return new ProcessParameterValue((objectArg = get$.Optional, objectArg.Field("category", ISAJson_decoder$1)), (objectArg_1 = get$.Optional, objectArg_1.Field("value", decoder)), (objectArg_2 = get$.Optional, objectArg_2.Field("unit", OntologyAnnotation_ISAJson_decoder)));
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
export { ISAJson_decoder, ISAJson_encoder, ROCrate_decoder, ROCrate_encoder };
|
|
@@ -5,14 +5,14 @@ import { append, empty, choose, ofArray, singleton } from '../../../node_modules
|
|
|
5
5
|
import { list as list$1 } from '../../fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js';
|
|
6
6
|
import { tryInclude, tryIncludeListOpt } from '../Encode.js';
|
|
7
7
|
import { OntologyAnnotation_ISAJson_decoder, OntologyAnnotation_ROCrate_decoderDefinedTerm, OntologyAnnotation_ROCrate_encoderDefinedTerm, OntologyAnnotation_ISAJson_encoder } from '../OntologyAnnotation.js';
|
|
8
|
-
import { ISAJson_decoder as ISAJson_decoder$
|
|
9
|
-
import { ISAJson_decoder as ISAJson_decoder$
|
|
8
|
+
import { ISAJson_decoder as ISAJson_decoder$2, ROCrate_decoder as ROCrate_decoder$1, ROCrate_encoder as ROCrate_encoder$1, ISAJson_encoder as ISAJson_encoder$2 } from './Component.js';
|
|
9
|
+
import { ISAJson_decoder as ISAJson_decoder$3, ROCrate_decoder as ROCrate_decoder$2, ROCrate_encoder as ROCrate_encoder$2, ISAJson_encoder as ISAJson_encoder$3 } from '../Comment.js';
|
|
10
10
|
import { context_jsonvalue } from '../context/rocrate/isa_protocol_context.js';
|
|
11
11
|
import { map as map$1 } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
12
12
|
import { object, string, list } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
13
13
|
import { Option_fromValueWithDefault } from '../../Core/Helper/Collections.js';
|
|
14
14
|
import { Decode_uri } from '../Decode.js';
|
|
15
|
-
import {
|
|
15
|
+
import { ISAJson_decoder as ISAJson_decoder$1, ISAJson_encoder as ISAJson_encoder$1 } from './ProtocolParameter.js';
|
|
16
16
|
import { encode } from '../IDTable.js';
|
|
17
17
|
|
|
18
18
|
function ROCrate_genID(studyName, assayName, processName, p) {
|
|
@@ -144,7 +144,7 @@ function ISAJson_encoder(studyName, assayName, processName, idMap, oa) {
|
|
|
144
144
|
Encode(helpers_4) {
|
|
145
145
|
return helpers_4.encodeString(value_8);
|
|
146
146
|
}
|
|
147
|
-
}), oa_1.Version), tryIncludeListOpt("parameters", (value_10) =>
|
|
147
|
+
}), oa_1.Version), tryIncludeListOpt("parameters", (value_10) => ISAJson_encoder$1(idMap, value_10), oa_1.Parameters), tryIncludeListOpt("components", (c) => ISAJson_encoder$2(idMap, c), oa_1.Components), tryIncludeListOpt("comments", (comment) => ISAJson_encoder$3(idMap, comment), oa_1.Comments)]));
|
|
148
148
|
return {
|
|
149
149
|
Encode(helpers_5) {
|
|
150
150
|
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_5)], values_1);
|
|
@@ -160,7 +160,7 @@ function ISAJson_encoder(studyName, assayName, processName, idMap, oa) {
|
|
|
160
160
|
}
|
|
161
161
|
const ISAJson_decoder = object((get$) => {
|
|
162
162
|
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8;
|
|
163
|
-
return new Protocol((objectArg = get$.Optional, objectArg.Field("@id", Decode_uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("name", string)), (objectArg_2 = get$.Optional, objectArg_2.Field("protocolType", OntologyAnnotation_ISAJson_decoder)), (objectArg_3 = get$.Optional, objectArg_3.Field("description", string)), (objectArg_4 = get$.Optional, objectArg_4.Field("uri", Decode_uri)), (objectArg_5 = get$.Optional, objectArg_5.Field("version", string)), (arg_13 = list(
|
|
163
|
+
return new Protocol((objectArg = get$.Optional, objectArg.Field("@id", Decode_uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("name", string)), (objectArg_2 = get$.Optional, objectArg_2.Field("protocolType", OntologyAnnotation_ISAJson_decoder)), (objectArg_3 = get$.Optional, objectArg_3.Field("description", string)), (objectArg_4 = get$.Optional, objectArg_4.Field("uri", Decode_uri)), (objectArg_5 = get$.Optional, objectArg_5.Field("version", string)), (arg_13 = list(ISAJson_decoder$1), objectArg_6 = get$.Optional, objectArg_6.Field("parameters", arg_13)), (arg_15 = list(ISAJson_decoder$2), objectArg_7 = get$.Optional, objectArg_7.Field("components", arg_15)), (arg_17 = list(ISAJson_decoder$3), objectArg_8 = get$.Optional, objectArg_8.Field("comments", arg_17)));
|
|
164
164
|
});
|
|
165
165
|
|
|
166
166
|
export { ISAJson_decoder, ISAJson_encoder, ROCrate_decoder, ROCrate_encoder, ROCrate_genID };
|
|
@@ -2,7 +2,9 @@ import { Option } from '@fable-org/fable-library-js/Option.js';
|
|
|
2
2
|
import { ProtocolParameter } from '../../Core/Process/ProtocolParameter.js';
|
|
3
3
|
import { Decoder$1, IEncodable } from '../../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
|
|
4
4
|
import { IMap } from '@fable-org/fable-library-js/Util.js';
|
|
5
|
-
export declare function
|
|
6
|
-
export declare function encoder(idMap: Option<IMap<string, IEncodable>>, value: ProtocolParameter): IEncodable;
|
|
5
|
+
export declare function encoder(value: ProtocolParameter): IEncodable;
|
|
7
6
|
export declare const decoder: Decoder$1<ProtocolParameter>;
|
|
7
|
+
export declare function ISAJson_genID(p: ProtocolParameter): string;
|
|
8
|
+
export declare function ISAJson_encoder(idMap: Option<IMap<string, IEncodable>>, value: ProtocolParameter): IEncodable;
|
|
9
|
+
export declare const ISAJson_decoder: Decoder$1<ProtocolParameter>;
|
|
8
10
|
//# sourceMappingURL=ProtocolParameter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProtocolParameter.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/Json/Process/ProtocolParameter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProtocolParameter.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/Json/Process/ProtocolParameter.ts"],"names":[],"mappings":"AACA,OAAO,EAA0C,MAAM,EAAc,MAAM,uCAAuC,CAAC;AAEnH,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAqB,SAAS,EAAE,UAAU,EAAE,MAAM,uDAAuD,CAAC;AAOjH,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAE3D,wBAAgB,OAAO,CAAC,KAAK,EAAE,iBAAiB,GAAG,UAAU,CAE5D;AAED,eAAO,MAAM,OAAO,EAAE,SAAS,CAAC,iBAAiB,CAGnB,CAAC;AAE/B,wBAAgB,aAAa,CAAC,CAAC,EAAE,iBAAiB,GAAG,MAAM,CAQ1D;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,iBAAiB,GAAG,UAAU,CAoB7G;AAED,eAAO,MAAM,eAAe,EAAE,SAAS,CAAC,iBAAiB,CAGvD,CAAC"}
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { OntologyAnnotation_ISAJson_decoder, OntologyAnnotation_decoder, OntologyAnnotation_encoder, OntologyAnnotation_ISAJson_encoder, OntologyAnnotation_ROCrate_genID } from '../OntologyAnnotation.js';
|
|
2
|
+
import { unwrap, defaultArg, value, map as map$1 } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
|
+
import { OntologyAnnotation } from '../../Core/OntologyAnnotation.js';
|
|
3
4
|
import { ProtocolParameter } from '../../Core/Process/ProtocolParameter.js';
|
|
5
|
+
import { object, map } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
6
|
+
import { Option_fromValueWithDefault } from '../../Core/Helper/Collections.js';
|
|
4
7
|
import { choose, ofArray } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
5
8
|
import { tryInclude } from '../Encode.js';
|
|
6
|
-
import { map as map$
|
|
9
|
+
import { map as map$2 } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
7
10
|
import { encode } from '../IDTable.js';
|
|
8
|
-
import { object } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
9
11
|
|
|
10
|
-
function
|
|
12
|
+
function encoder(value) {
|
|
13
|
+
return OntologyAnnotation_encoder(defaultArg(value.ParameterName, new OntologyAnnotation()));
|
|
14
|
+
}
|
|
15
|
+
const decoder = map((oa) => {
|
|
16
|
+
const oa_1 = Option_fromValueWithDefault(new OntologyAnnotation(), oa);
|
|
17
|
+
return ProtocolParameter.create(void 0, unwrap(oa_1));
|
|
18
|
+
}, OntologyAnnotation_decoder);
|
|
19
|
+
function ISAJson_genID(p) {
|
|
11
20
|
const matchValue = p.ParameterName;
|
|
12
21
|
if (matchValue == null) {
|
|
13
22
|
return "#EmptyProtocolParameter";
|
|
@@ -15,29 +24,29 @@ function genID(p) {
|
|
|
15
24
|
return `#ProtocolParameter/${OntologyAnnotation_ROCrate_genID(value(matchValue))}`;
|
|
16
25
|
}
|
|
17
26
|
}
|
|
18
|
-
function
|
|
27
|
+
function ISAJson_encoder(idMap, value$1) {
|
|
19
28
|
const f = (value_1) => {
|
|
20
|
-
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([tryInclude("@id", (value_2) => ({
|
|
29
|
+
const values_1 = choose((tupledArg) => map$1((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([tryInclude("@id", (value_2) => ({
|
|
21
30
|
Encode(helpers) {
|
|
22
31
|
return helpers.encodeString(value_2);
|
|
23
32
|
}
|
|
24
|
-
}),
|
|
33
|
+
}), ISAJson_genID(value_1)), tryInclude("parameterName", (oa) => OntologyAnnotation_ISAJson_encoder(idMap, oa), value_1.ParameterName)]));
|
|
25
34
|
return {
|
|
26
35
|
Encode(helpers_1) {
|
|
27
|
-
const arg = map$
|
|
36
|
+
const arg = map$2((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_1)], values_1);
|
|
28
37
|
return helpers_1.encodeObject(arg);
|
|
29
38
|
}
|
|
30
39
|
};
|
|
31
40
|
};
|
|
32
41
|
if (idMap != null) {
|
|
33
|
-
return encode(
|
|
42
|
+
return encode(ISAJson_genID, f, value$1, value(idMap));
|
|
34
43
|
} else {
|
|
35
44
|
return f(value$1);
|
|
36
45
|
}
|
|
37
46
|
}
|
|
38
|
-
const
|
|
47
|
+
const ISAJson_decoder = object((get$) => {
|
|
39
48
|
let objectArg;
|
|
40
49
|
return new ProtocolParameter(void 0, (objectArg = get$.Optional, objectArg.Field("parameterName", OntologyAnnotation_ISAJson_decoder)));
|
|
41
50
|
});
|
|
42
51
|
|
|
43
|
-
export { decoder, encoder
|
|
52
|
+
export { ISAJson_decoder, ISAJson_encoder, ISAJson_genID, decoder, encoder };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Decoder$1, IEncodable } from '../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
|
|
2
|
+
import { OntologyAnnotation } from '../Core/OntologyAnnotation.js';
|
|
3
|
+
import { ArcRun } from '../Core/ArcTypes.js';
|
|
4
|
+
import { IMap } from '@fable-org/fable-library-js/Util.js';
|
|
5
|
+
import { int32 } from '@fable-org/fable-library-js/Int32.js';
|
|
6
|
+
import { CompositeCell_$union } from '../Core/Table/CompositeCell.js';
|
|
7
|
+
export declare function encoder(run: ArcRun): IEncodable;
|
|
8
|
+
export declare const decoder: Decoder$1<ArcRun>;
|
|
9
|
+
export declare function encoderCompressed(stringTable: IMap<string, int32>, oaTable: IMap<OntologyAnnotation, int32>, cellTable: IMap<CompositeCell_$union, int32>, run: ArcRun): IEncodable;
|
|
10
|
+
export declare function decoderCompressed(stringTable: string[], oaTable: OntologyAnnotation[], cellTable: CompositeCell_$union[]): Decoder$1<ArcRun>;
|
|
11
|
+
//# sourceMappingURL=Run.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Run.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Json/Run.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAqB,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAG9G,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAUnE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAEtE,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAyB/C;AAED,eAAO,MAAM,OAAO,EAAE,SAAS,CAAC,MAAM,CAGpC,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,kBAAkB,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,oBAAoB,EAAE,KAAK,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,UAAU,CAyBnL;AAED,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,EAAE,SAAS,EAAE,oBAAoB,EAAE,GAAG,SAAS,CAAC,MAAM,CAAC,CAK5I"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { choose, ofArray } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
2
|
+
import { unwrap, map } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
|
+
import { tryInclude, tryIncludeSeq } from './Encode.js';
|
|
4
|
+
import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from './OntologyAnnotation.js';
|
|
5
|
+
import { decoder as decoder$2, decoderCompressed as decoderCompressed$2, encoder as encoder$1, encoderCompressed as encoderCompressed$1 } from './DataMap/DataMap.js';
|
|
6
|
+
import { decoder as decoder$1, decoderCompressed as decoderCompressed$1, encoder as encoder$2, encoderCompressed as encoderCompressed$2 } from './Table/ArcTable.js';
|
|
7
|
+
import { decoder as decoder$3, encoder as encoder$3 } from './Person.js';
|
|
8
|
+
import { decoder as decoder$4, encoder as encoder$4 } from './Comment.js';
|
|
9
|
+
import { map as map$1 } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
10
|
+
import { ArcRun } from '../Core/ArcTypes.js';
|
|
11
|
+
import { object, string, resizeArray } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
12
|
+
|
|
13
|
+
function encoder(run) {
|
|
14
|
+
let value;
|
|
15
|
+
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["Identifier", (value = run.Identifier, {
|
|
16
|
+
Encode(helpers) {
|
|
17
|
+
return helpers.encodeString(value);
|
|
18
|
+
}
|
|
19
|
+
})], tryInclude("Title", (value_1) => ({
|
|
20
|
+
Encode(helpers_1) {
|
|
21
|
+
return helpers_1.encodeString(value_1);
|
|
22
|
+
}
|
|
23
|
+
}), run.Title), tryInclude("Description", (value_3) => ({
|
|
24
|
+
Encode(helpers_2) {
|
|
25
|
+
return helpers_2.encodeString(value_3);
|
|
26
|
+
}
|
|
27
|
+
}), run.Description), tryInclude("MeasurementType", OntologyAnnotation_encoder, run.MeasurementType), tryInclude("TechnologyType", OntologyAnnotation_encoder, run.TechnologyType), tryInclude("TechnologyPlatform", OntologyAnnotation_encoder, run.TechnologyPlatform), tryInclude("DataMap", encoder$1, run.DataMap), tryIncludeSeq("WorkflowIdentifiers", (value_5) => ({
|
|
28
|
+
Encode(helpers_3) {
|
|
29
|
+
return helpers_3.encodeString(value_5);
|
|
30
|
+
}
|
|
31
|
+
}), run.WorkflowIdentifiers), tryIncludeSeq("Tables", encoder$2, run.Tables), tryIncludeSeq("Performers", encoder$3, run.Performers), tryIncludeSeq("Comments", encoder$4, run.Comments)]));
|
|
32
|
+
return {
|
|
33
|
+
Encode(helpers_4) {
|
|
34
|
+
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_4)], values_1);
|
|
35
|
+
return helpers_4.encodeObject(arg);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
const decoder = object((get$) => {
|
|
40
|
+
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, objectArg_8, arg_19, objectArg_9, arg_21, objectArg_10;
|
|
41
|
+
return ArcRun.create((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("MeasurementType", OntologyAnnotation_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("TechnologyType", OntologyAnnotation_decoder))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("TechnologyPlatform", OntologyAnnotation_decoder))), unwrap((arg_13 = resizeArray(string), objectArg_6 = get$.Optional, objectArg_6.Field("WorkflowIdentifiers", arg_13))), unwrap((arg_15 = resizeArray(decoder$1), objectArg_7 = get$.Optional, objectArg_7.Field("Tables", arg_15))), unwrap((objectArg_8 = get$.Optional, objectArg_8.Field("DataMap", decoder$2))), unwrap((arg_19 = resizeArray(decoder$3), objectArg_9 = get$.Optional, objectArg_9.Field("Performers", arg_19))), unwrap((arg_21 = resizeArray(decoder$4), objectArg_10 = get$.Optional, objectArg_10.Field("Comments", arg_21))));
|
|
42
|
+
});
|
|
43
|
+
function encoderCompressed(stringTable, oaTable, cellTable, run) {
|
|
44
|
+
let value;
|
|
45
|
+
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["Identifier", (value = run.Identifier, {
|
|
46
|
+
Encode(helpers) {
|
|
47
|
+
return helpers.encodeString(value);
|
|
48
|
+
}
|
|
49
|
+
})], tryInclude("Title", (value_1) => ({
|
|
50
|
+
Encode(helpers_1) {
|
|
51
|
+
return helpers_1.encodeString(value_1);
|
|
52
|
+
}
|
|
53
|
+
}), run.Title), tryInclude("Description", (value_3) => ({
|
|
54
|
+
Encode(helpers_2) {
|
|
55
|
+
return helpers_2.encodeString(value_3);
|
|
56
|
+
}
|
|
57
|
+
}), run.Description), tryInclude("MeasurementType", OntologyAnnotation_encoder, run.MeasurementType), tryInclude("TechnologyType", OntologyAnnotation_encoder, run.TechnologyType), tryInclude("TechnologyPlatform", OntologyAnnotation_encoder, run.TechnologyPlatform), tryInclude("DataMap", (dm) => encoderCompressed$1(stringTable, oaTable, cellTable, dm), run.DataMap), tryIncludeSeq("WorkflowIdentifiers", (value_5) => ({
|
|
58
|
+
Encode(helpers_3) {
|
|
59
|
+
return helpers_3.encodeString(value_5);
|
|
60
|
+
}
|
|
61
|
+
}), run.WorkflowIdentifiers), tryIncludeSeq("Tables", (table) => encoderCompressed$2(stringTable, oaTable, cellTable, table), run.Tables), tryIncludeSeq("Performers", encoder$3, run.Performers), tryIncludeSeq("Comments", encoder$4, run.Comments)]));
|
|
62
|
+
return {
|
|
63
|
+
Encode(helpers_4) {
|
|
64
|
+
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_4)], values_1);
|
|
65
|
+
return helpers_4.encodeObject(arg);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function decoderCompressed(stringTable, oaTable, cellTable) {
|
|
70
|
+
return object((get$) => {
|
|
71
|
+
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, arg_19, objectArg_9, arg_21, objectArg_10;
|
|
72
|
+
return ArcRun.create((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("MeasurementType", OntologyAnnotation_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("TechnologyType", OntologyAnnotation_decoder))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("TechnologyPlatform", OntologyAnnotation_decoder))), unwrap((arg_13 = resizeArray(string), objectArg_6 = get$.Optional, objectArg_6.Field("WorkflowIdentifiers", arg_13))), unwrap((arg_15 = resizeArray(decoderCompressed$1(stringTable, oaTable, cellTable)), objectArg_7 = get$.Optional, objectArg_7.Field("Tables", arg_15))), unwrap((arg_17 = decoderCompressed$2(), objectArg_8 = get$.Optional, objectArg_8.Field("DataMap", arg_17))), unwrap((arg_19 = resizeArray(decoder$3), objectArg_9 = get$.Optional, objectArg_9.Field("Performers", arg_19))), unwrap((arg_21 = resizeArray(decoder$4), objectArg_10 = get$.Optional, objectArg_10.Field("Comments", arg_21))));
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export { decoder, decoderCompressed, encoder, encoderCompressed };
|
package/dist/ts/ts/Json/Study.js
CHANGED
|
@@ -122,7 +122,7 @@ function ROCrate_genID(a) {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
function ROCrate_encoder(assays, s) {
|
|
125
|
-
let value, value_3, studyName,
|
|
125
|
+
let value, value_3, studyName, assayName_1;
|
|
126
126
|
const fileName = Study_tryFileNameFromIdentifier(s.Identifier);
|
|
127
127
|
const processes = ARCtrl_ArcTables__ArcTables_GetProcesses(s);
|
|
128
128
|
const assays_1 = Helper_getAssayInformation(assays, s);
|
|
@@ -162,7 +162,7 @@ function ROCrate_encoder(assays, s) {
|
|
|
162
162
|
Encode(helpers_8) {
|
|
163
163
|
return helpers_8.encodeString(value_12);
|
|
164
164
|
}
|
|
165
|
-
}), s.PublicReleaseDate), tryIncludeSeq("publications", ROCrate_encoder$1, s.Publications), tryIncludeSeq("people", ROCrate_encoder$2, s.Contacts), tryIncludeList("processSequence", (studyName = s.Identifier, (oa_3) => ROCrate_encoder$3(studyName, void 0, oa_3)), processes), tryIncludeSeq("assays", (
|
|
165
|
+
}), s.PublicReleaseDate), tryIncludeSeq("publications", ROCrate_encoder$1, s.Publications), tryIncludeSeq("people", ROCrate_encoder$2, s.Contacts), tryIncludeList("processSequence", (studyName = s.Identifier, (oa_3) => ROCrate_encoder$3(studyName, void 0, oa_3)), processes), tryIncludeSeq("assays", (assayName_1 = s.Identifier, (a_1) => ROCrate_encoder$4(assayName_1, a_1)), assays_1), tryIncludeList("dataFiles", ROCrate_encoder$5, getData(processes)), tryIncludeSeq("comments", ROCrate_encoder$6, s.Comments), ["@context", context_jsonvalue]]));
|
|
166
166
|
return {
|
|
167
167
|
Encode(helpers_9) {
|
|
168
168
|
const arg = map$2((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_9)], values_1);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Decoder$1, IEncodable } from '../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
|
|
2
|
+
import { ArcWorkflow } from '../Core/ArcTypes.js';
|
|
3
|
+
import { OntologyAnnotation } from '../Core/OntologyAnnotation.js';
|
|
4
|
+
import { IMap } from '@fable-org/fable-library-js/Util.js';
|
|
5
|
+
import { int32 } from '@fable-org/fable-library-js/Int32.js';
|
|
6
|
+
import { CompositeCell_$union } from '../Core/Table/CompositeCell.js';
|
|
7
|
+
export declare function encoder(workflow: ArcWorkflow): IEncodable;
|
|
8
|
+
export declare const decoder: Decoder$1<ArcWorkflow>;
|
|
9
|
+
export declare function encoderCompressed(stringTable: IMap<string, int32>, oaTable: IMap<OntologyAnnotation, int32>, cellTable: IMap<CompositeCell_$union, int32>, workflow: ArcWorkflow): IEncodable;
|
|
10
|
+
export declare function decoderCompressed(stringTable: string[], oaTable: OntologyAnnotation[], cellTable: CompositeCell_$union[]): Decoder$1<ArcWorkflow>;
|
|
11
|
+
//# sourceMappingURL=Workflow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Workflow.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Json/Workflow.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAqB,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAC9G,OAAO,EAAgC,WAAW,EAAuV,MAAM,qBAAqB,CAAC;AAGra,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAanE,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAEtE,wBAAgB,OAAO,CAAC,QAAQ,EAAE,WAAW,GAAG,UAAU,CAiCzD;AAED,eAAO,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAGzC,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,kBAAkB,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,oBAAoB,EAAE,KAAK,CAAC,EAAE,QAAQ,EAAE,WAAW,GAAG,UAAU,CAiC7L;AAED,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,EAAE,SAAS,EAAE,oBAAoB,EAAE,GAAG,SAAS,CAAC,WAAW,CAAC,CAKjJ"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { choose, ofArray } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
2
|
+
import { unwrap, map } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
|
+
import { ArcWorkflow_create_Z3BB02240, ArcWorkflow__get_Identifier, ArcWorkflow__get_WorkflowType, ArcWorkflow__get_Title, ArcWorkflow__get_URI, ArcWorkflow__get_Description, ArcWorkflow__get_Version, ArcWorkflow__get_DataMap, ArcWorkflow__get_SubWorkflowIdentifiers, ArcWorkflow__get_Parameters, ArcWorkflow__get_Components, ArcWorkflow__get_Contacts, ArcWorkflow__get_Comments } from '../Core/ArcTypes.js';
|
|
4
|
+
import { tryInclude, tryIncludeSeq } from './Encode.js';
|
|
5
|
+
import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from './OntologyAnnotation.js';
|
|
6
|
+
import { decoder as decoder$3, decoderCompressed as decoderCompressed$1, encoder as encoder$1, encoderCompressed as encoderCompressed$1 } from './DataMap/DataMap.js';
|
|
7
|
+
import { decoder as decoder$5, encoder as encoder$2 } from './Process/ProtocolParameter.js';
|
|
8
|
+
import { decoder as decoder$4, encoder as encoder$3 } from './Process/Component.js';
|
|
9
|
+
import { decoder as decoder$2, encoder as encoder$4 } from './Person.js';
|
|
10
|
+
import { decoder as decoder$1, encoder as encoder$5 } from './Comment.js';
|
|
11
|
+
import { map as map$1 } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
12
|
+
import { object, resizeArray, string } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
13
|
+
|
|
14
|
+
function encoder(workflow) {
|
|
15
|
+
let value;
|
|
16
|
+
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["Identifier", (value = ArcWorkflow__get_Identifier(workflow), {
|
|
17
|
+
Encode(helpers) {
|
|
18
|
+
return helpers.encodeString(value);
|
|
19
|
+
}
|
|
20
|
+
})], tryInclude("WorkflowType", OntologyAnnotation_encoder, ArcWorkflow__get_WorkflowType(workflow)), tryInclude("Title", (value_1) => ({
|
|
21
|
+
Encode(helpers_1) {
|
|
22
|
+
return helpers_1.encodeString(value_1);
|
|
23
|
+
}
|
|
24
|
+
}), ArcWorkflow__get_Title(workflow)), tryInclude("URI", (value_3) => ({
|
|
25
|
+
Encode(helpers_2) {
|
|
26
|
+
return helpers_2.encodeString(value_3);
|
|
27
|
+
}
|
|
28
|
+
}), ArcWorkflow__get_URI(workflow)), tryInclude("Description", (value_5) => ({
|
|
29
|
+
Encode(helpers_3) {
|
|
30
|
+
return helpers_3.encodeString(value_5);
|
|
31
|
+
}
|
|
32
|
+
}), ArcWorkflow__get_Description(workflow)), tryInclude("Version", (value_7) => ({
|
|
33
|
+
Encode(helpers_4) {
|
|
34
|
+
return helpers_4.encodeString(value_7);
|
|
35
|
+
}
|
|
36
|
+
}), ArcWorkflow__get_Version(workflow)), tryInclude("DataMap", encoder$1, ArcWorkflow__get_DataMap(workflow)), tryIncludeSeq("SubWorkflowIdentifiers", (value_9) => ({
|
|
37
|
+
Encode(helpers_5) {
|
|
38
|
+
return helpers_5.encodeString(value_9);
|
|
39
|
+
}
|
|
40
|
+
}), ArcWorkflow__get_SubWorkflowIdentifiers(workflow)), tryIncludeSeq("Parameters", encoder$2, ArcWorkflow__get_Parameters(workflow)), tryIncludeSeq("Components", encoder$3, ArcWorkflow__get_Components(workflow)), tryIncludeSeq("Contacts", encoder$4, ArcWorkflow__get_Contacts(workflow)), tryIncludeSeq("Comments", encoder$5, ArcWorkflow__get_Comments(workflow))]));
|
|
41
|
+
return {
|
|
42
|
+
Encode(helpers_6) {
|
|
43
|
+
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_6)], values_1);
|
|
44
|
+
return helpers_6.encodeObject(arg);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
const decoder = object((get$) => {
|
|
49
|
+
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, objectArg_9, arg_21, objectArg_10, arg_23, objectArg_11;
|
|
50
|
+
return ArcWorkflow_create_Z3BB02240((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("WorkflowType", OntologyAnnotation_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("URI", string))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("Version", string))), unwrap((arg_13 = resizeArray(string), objectArg_6 = get$.Optional, objectArg_6.Field("SubWorkflowIdentifiers", arg_13))), unwrap((arg_15 = resizeArray(decoder$5), objectArg_7 = get$.Optional, objectArg_7.Field("Parameters", arg_15))), unwrap((arg_17 = resizeArray(decoder$4), objectArg_8 = get$.Optional, objectArg_8.Field("Components", arg_17))), unwrap((objectArg_9 = get$.Optional, objectArg_9.Field("DataMap", decoder$3))), unwrap((arg_21 = resizeArray(decoder$2), objectArg_10 = get$.Optional, objectArg_10.Field("Contacts", arg_21))), unwrap((arg_23 = resizeArray(decoder$1), objectArg_11 = get$.Optional, objectArg_11.Field("Comments", arg_23))));
|
|
51
|
+
});
|
|
52
|
+
function encoderCompressed(stringTable, oaTable, cellTable, workflow) {
|
|
53
|
+
let value;
|
|
54
|
+
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["Identifier", (value = ArcWorkflow__get_Identifier(workflow), {
|
|
55
|
+
Encode(helpers) {
|
|
56
|
+
return helpers.encodeString(value);
|
|
57
|
+
}
|
|
58
|
+
})], tryInclude("WorkflowType", OntologyAnnotation_encoder, ArcWorkflow__get_WorkflowType(workflow)), tryInclude("Title", (value_1) => ({
|
|
59
|
+
Encode(helpers_1) {
|
|
60
|
+
return helpers_1.encodeString(value_1);
|
|
61
|
+
}
|
|
62
|
+
}), ArcWorkflow__get_Title(workflow)), tryInclude("URI", (value_3) => ({
|
|
63
|
+
Encode(helpers_2) {
|
|
64
|
+
return helpers_2.encodeString(value_3);
|
|
65
|
+
}
|
|
66
|
+
}), ArcWorkflow__get_URI(workflow)), tryInclude("Description", (value_5) => ({
|
|
67
|
+
Encode(helpers_3) {
|
|
68
|
+
return helpers_3.encodeString(value_5);
|
|
69
|
+
}
|
|
70
|
+
}), ArcWorkflow__get_Description(workflow)), tryInclude("Version", (value_7) => ({
|
|
71
|
+
Encode(helpers_4) {
|
|
72
|
+
return helpers_4.encodeString(value_7);
|
|
73
|
+
}
|
|
74
|
+
}), ArcWorkflow__get_Version(workflow)), tryInclude("DataMap", (dm) => encoderCompressed$1(stringTable, oaTable, cellTable, dm), ArcWorkflow__get_DataMap(workflow)), tryIncludeSeq("SubWorkflowIdentifiers", (value_9) => ({
|
|
75
|
+
Encode(helpers_5) {
|
|
76
|
+
return helpers_5.encodeString(value_9);
|
|
77
|
+
}
|
|
78
|
+
}), ArcWorkflow__get_SubWorkflowIdentifiers(workflow)), tryIncludeSeq("Parameters", encoder$2, ArcWorkflow__get_Parameters(workflow)), tryIncludeSeq("Components", encoder$3, ArcWorkflow__get_Components(workflow)), tryIncludeSeq("Contacts", encoder$4, ArcWorkflow__get_Contacts(workflow)), tryIncludeSeq("Comments", encoder$5, ArcWorkflow__get_Comments(workflow))]));
|
|
79
|
+
return {
|
|
80
|
+
Encode(helpers_6) {
|
|
81
|
+
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_6)], values_1);
|
|
82
|
+
return helpers_6.encodeObject(arg);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function decoderCompressed(stringTable, oaTable, cellTable) {
|
|
87
|
+
return object((get$) => {
|
|
88
|
+
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, arg_19, objectArg_9, arg_21, objectArg_10, arg_23, objectArg_11;
|
|
89
|
+
return ArcWorkflow_create_Z3BB02240((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("WorkflowType", OntologyAnnotation_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("URI", string))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("Version", string))), unwrap((arg_13 = resizeArray(string), objectArg_6 = get$.Optional, objectArg_6.Field("SubWorkflowIdentifiers", arg_13))), unwrap((arg_15 = resizeArray(decoder$5), objectArg_7 = get$.Optional, objectArg_7.Field("Parameters", arg_15))), unwrap((arg_17 = resizeArray(decoder$4), objectArg_8 = get$.Optional, objectArg_8.Field("Components", arg_17))), unwrap((arg_19 = decoderCompressed$1(), objectArg_9 = get$.Optional, objectArg_9.Field("DataMap", arg_19))), unwrap((arg_21 = resizeArray(decoder$2), objectArg_10 = get$.Optional, objectArg_10.Field("Contacts", arg_21))), unwrap((arg_23 = resizeArray(decoder$1), objectArg_11 = get$.Optional, objectArg_11.Field("Comments", arg_23))));
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export { decoder, decoderCompressed, encoder, encoderCompressed };
|
package/dist/ts/ts/Json.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OntologyAnnotation } from './Core/OntologyAnnotation.js';
|
|
2
2
|
import { int32 } from '@fable-org/fable-library-js/Int32.js';
|
|
3
3
|
import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js';
|
|
4
|
-
import { ArcInvestigation, ArcStudy, ArcAssay } from './Core/ArcTypes.js';
|
|
4
|
+
import { ArcInvestigation, ArcRun, ArcWorkflow, ArcStudy, ArcAssay } from './Core/ArcTypes.js';
|
|
5
5
|
import { FSharpList } from '@fable-org/fable-library-js/List.js';
|
|
6
6
|
import { ARC } from './ARC.js';
|
|
7
7
|
import { LDNode, LDGraph } from './ROCrate/LDObject.js';
|
|
@@ -42,6 +42,24 @@ export declare class JsonHelper_StudyJson {
|
|
|
42
42
|
}
|
|
43
43
|
export declare function JsonHelper_StudyJson_$reflection(): TypeInfo;
|
|
44
44
|
export declare function JsonHelper_StudyJson_$ctor(): JsonHelper_StudyJson;
|
|
45
|
+
export declare class JsonHelper_WorkflowJson {
|
|
46
|
+
constructor();
|
|
47
|
+
fromJsonString(s: string): ArcWorkflow;
|
|
48
|
+
fromCompressedJsonString(s: string): ArcWorkflow;
|
|
49
|
+
toJsonString(workflow: ArcWorkflow, spaces?: int32): string;
|
|
50
|
+
toCompressedJsonString(workflow: ArcWorkflow, spaces?: int32): string;
|
|
51
|
+
}
|
|
52
|
+
export declare function JsonHelper_WorkflowJson_$reflection(): TypeInfo;
|
|
53
|
+
export declare function JsonHelper_WorkflowJson_$ctor(): JsonHelper_WorkflowJson;
|
|
54
|
+
export declare class JsonHelper_RunJson {
|
|
55
|
+
constructor();
|
|
56
|
+
fromJsonString(s: string): ArcRun;
|
|
57
|
+
fromCompressedJsonString(s: string): ArcRun;
|
|
58
|
+
toJsonString(run: ArcRun, spaces?: int32): string;
|
|
59
|
+
toCompressedJsonString(run: ArcRun, spaces?: int32): string;
|
|
60
|
+
}
|
|
61
|
+
export declare function JsonHelper_RunJson_$reflection(): TypeInfo;
|
|
62
|
+
export declare function JsonHelper_RunJson_$ctor(): JsonHelper_RunJson;
|
|
45
63
|
export declare class JsonHelper_InvestigationJson {
|
|
46
64
|
constructor();
|
|
47
65
|
fromJsonString(s: string): ArcInvestigation;
|
|
@@ -81,6 +99,8 @@ export declare class JsonController {
|
|
|
81
99
|
static get OntologyAnnotation(): JsonHelper_OntologyAnnotationJson;
|
|
82
100
|
static get Assay(): JsonHelper_AssayJson;
|
|
83
101
|
static get Study(): JsonHelper_StudyJson;
|
|
102
|
+
static get Workflow(): JsonHelper_WorkflowJson;
|
|
103
|
+
static get Run(): JsonHelper_RunJson;
|
|
84
104
|
static get Investigation(): JsonHelper_InvestigationJson;
|
|
85
105
|
static get ARC(): JsonHelper_ARCJson;
|
|
86
106
|
static get LDGraph(): JsonHelper_LDGraphJson;
|
package/dist/ts/ts/Json.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Json.d.ts","sourceRoot":"","sources":["../../../src/ARCtrl/ts/Json.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"Json.d.ts","sourceRoot":"","sources":["../../../src/ARCtrl/ts/Json.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ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KAAK,MAAM,IAAI,qBAAqB,CAEzC;CACJ;AAED,wBAAgB,0BAA0B,IAAI,QAAQ,CAErD"}
|
package/dist/ts/ts/Json.js
CHANGED
|
@@ -2,6 +2,8 @@ import { ARCtrl_OntologyAnnotation__OntologyAnnotation_fromJsonString_Static_Z72
|
|
|
2
2
|
import { unwrap } from '../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
3
|
import { ARCtrl_ArcAssay__ArcAssay_fromJsonString_Static_Z721C83C5, ARCtrl_ArcAssay__ArcAssay_fromCompressedJsonString_Static_Z721C83C5, ARCtrl_ArcAssay__ArcAssay_fromISAJsonString_Static_Z721C83C5, ARCtrl_ArcAssay__ArcAssay_fromROCrateJsonString_Static_Z721C83C5, ARCtrl_ArcAssay__ArcAssay_toJsonString_Static_71136F3F, ARCtrl_ArcAssay__ArcAssay_toCompressedJsonString_Static_71136F3F, ARCtrl_ArcAssay__ArcAssay_toISAJsonString_Static_Z3B036AA, ARCtrl_ArcAssay__ArcAssay_toROCrateJsonString_Static_5CABCA47 } from './JsonIO/Assay.js';
|
|
4
4
|
import { ARCtrl_ArcStudy__ArcStudy_fromJsonString_Static_Z721C83C5, ARCtrl_ArcStudy__ArcStudy_fromCompressedJsonString_Static_Z721C83C5, ARCtrl_ArcStudy__ArcStudy_fromISAJsonString_Static_Z721C83C5, ARCtrl_ArcStudy__ArcStudy_fromROCrateJsonString_Static_Z721C83C5, ARCtrl_ArcStudy__ArcStudy_toJsonString_Static_71136F3F, ARCtrl_ArcStudy__ArcStudy_toCompressedJsonString_Static_71136F3F, ARCtrl_ArcStudy__ArcStudy_toISAJsonString_Static_Z3FD920F1, ARCtrl_ArcStudy__ArcStudy_toROCrateJsonString_Static_3BA23086 } from './JsonIO/Study.js';
|
|
5
|
+
import { ARCtrl_ArcWorkflow__ArcWorkflow_fromJsonString_Static_Z721C83C5, ARCtrl_ArcWorkflow__ArcWorkflow_fromCompressedJsonString_Static_Z721C83C5, ARCtrl_ArcWorkflow__ArcWorkflow_toJsonString_Static_71136F3F, ARCtrl_ArcWorkflow__ArcWorkflow_toCompressedJsonString_Static_71136F3F } from './JsonIO/Workflow.js';
|
|
6
|
+
import { ARCtrl_ArcRun__ArcRun_fromJsonString_Static_Z721C83C5, ARCtrl_ArcRun__ArcRun_fromCompressedJsonString_Static_Z721C83C5, ARCtrl_ArcRun__ArcRun_toJsonString_Static_71136F3F, ARCtrl_ArcRun__ArcRun_toCompressedJsonString_Static_71136F3F } from './JsonIO/Run.js';
|
|
5
7
|
import { ARCtrl_ArcInvestigation__ArcInvestigation_fromJsonString_Static_Z721C83C5, ARCtrl_ArcInvestigation__ArcInvestigation_fromCompressedJsonString_Static_Z721C83C5, ARCtrl_ArcInvestigation__ArcInvestigation_fromISAJsonString_Static_Z721C83C5, ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateJsonString_Static_Z721C83C5, ARCtrl_ArcInvestigation__ArcInvestigation_toJsonString_Static_71136F3F, ARCtrl_ArcInvestigation__ArcInvestigation_toCompressedJsonString_Static_71136F3F, ARCtrl_ArcInvestigation__ArcInvestigation_toISAJsonString_Static_Z3B036AA, ARCtrl_ArcInvestigation__ArcInvestigation_toROCrateJsonString_Static_71136F3F } from './JsonIO/Investigation.js';
|
|
6
8
|
import { ARC } from './ARC.js';
|
|
7
9
|
import { ARCtrl_ROCrate_LDGraph__LDGraph_fromROCrateJsonString_Static_Z721C83C5, ARCtrl_ROCrate_LDGraph__LDGraph_toROCrateJsonString_Static_71136F3F, ARCtrl_ROCrate_LDNode__LDNode_fromROCrateJsonString_Static_Z721C83C5, ARCtrl_ROCrate_LDNode__LDNode_toROCrateJsonString_Static_71136F3F } from './JsonIO/LDObject.js';
|
|
@@ -84,6 +86,38 @@ class JsonHelper_StudyJson {
|
|
|
84
86
|
return ARCtrl_ArcStudy__ArcStudy_toROCrateJsonString_Static_3BA23086(unwrap(assays), unwrap(spaces))(study);
|
|
85
87
|
}
|
|
86
88
|
}
|
|
89
|
+
class JsonHelper_WorkflowJson {
|
|
90
|
+
constructor() {
|
|
91
|
+
}
|
|
92
|
+
fromJsonString(s) {
|
|
93
|
+
return ARCtrl_ArcWorkflow__ArcWorkflow_fromJsonString_Static_Z721C83C5(s);
|
|
94
|
+
}
|
|
95
|
+
fromCompressedJsonString(s) {
|
|
96
|
+
return ARCtrl_ArcWorkflow__ArcWorkflow_fromCompressedJsonString_Static_Z721C83C5(s);
|
|
97
|
+
}
|
|
98
|
+
toJsonString(workflow, spaces) {
|
|
99
|
+
return ARCtrl_ArcWorkflow__ArcWorkflow_toJsonString_Static_71136F3F(unwrap(spaces))(workflow);
|
|
100
|
+
}
|
|
101
|
+
toCompressedJsonString(workflow, spaces) {
|
|
102
|
+
return ARCtrl_ArcWorkflow__ArcWorkflow_toCompressedJsonString_Static_71136F3F(unwrap(spaces))(workflow);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
class JsonHelper_RunJson {
|
|
106
|
+
constructor() {
|
|
107
|
+
}
|
|
108
|
+
fromJsonString(s) {
|
|
109
|
+
return ARCtrl_ArcRun__ArcRun_fromJsonString_Static_Z721C83C5(s);
|
|
110
|
+
}
|
|
111
|
+
fromCompressedJsonString(s) {
|
|
112
|
+
return ARCtrl_ArcRun__ArcRun_fromCompressedJsonString_Static_Z721C83C5(s);
|
|
113
|
+
}
|
|
114
|
+
toJsonString(run, spaces) {
|
|
115
|
+
return ARCtrl_ArcRun__ArcRun_toJsonString_Static_71136F3F(unwrap(spaces))(run);
|
|
116
|
+
}
|
|
117
|
+
toCompressedJsonString(run, spaces) {
|
|
118
|
+
return ARCtrl_ArcRun__ArcRun_toCompressedJsonString_Static_71136F3F(unwrap(spaces))(run);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
87
121
|
class JsonHelper_InvestigationJson {
|
|
88
122
|
constructor() {
|
|
89
123
|
}
|
|
@@ -154,6 +188,12 @@ class JsonController {
|
|
|
154
188
|
static get Study() {
|
|
155
189
|
return new JsonHelper_StudyJson();
|
|
156
190
|
}
|
|
191
|
+
static get Workflow() {
|
|
192
|
+
return new JsonHelper_WorkflowJson();
|
|
193
|
+
}
|
|
194
|
+
static get Run() {
|
|
195
|
+
return new JsonHelper_RunJson();
|
|
196
|
+
}
|
|
157
197
|
static get Investigation() {
|
|
158
198
|
return new JsonHelper_InvestigationJson();
|
|
159
199
|
}
|
|
@@ -168,4 +208,4 @@ class JsonController {
|
|
|
168
208
|
}
|
|
169
209
|
}
|
|
170
210
|
|
|
171
|
-
export { JsonController, JsonHelper_ARCJson, JsonHelper_AssayJson, JsonHelper_InvestigationJson, JsonHelper_LDGraphJson, JsonHelper_LDNodeJson, JsonHelper_OntologyAnnotationJson, JsonHelper_StudyJson };
|
|
211
|
+
export { JsonController, JsonHelper_ARCJson, JsonHelper_AssayJson, JsonHelper_InvestigationJson, JsonHelper_LDGraphJson, JsonHelper_LDNodeJson, JsonHelper_OntologyAnnotationJson, JsonHelper_RunJson, JsonHelper_StudyJson, JsonHelper_WorkflowJson };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ArcRun } from '../Core/ArcTypes.js';
|
|
2
|
+
import { int32 } from '@fable-org/fable-library-js/Int32.js';
|
|
3
|
+
import { Option } from '@fable-org/fable-library-js/Option.js';
|
|
4
|
+
export declare function ARCtrl_ArcRun__ArcRun_fromJsonString_Static_Z721C83C5(s: string): ArcRun;
|
|
5
|
+
export declare function ARCtrl_ArcRun__ArcRun_toJsonString_Static_71136F3F(spaces?: int32): ((arg0: ArcRun) => string);
|
|
6
|
+
export declare function ARCtrl_ArcRun__ArcRun_ToJsonString_71136F3F(this$: ArcRun, spaces: Option<int32>): string;
|
|
7
|
+
export declare function ARCtrl_ArcRun__ArcRun_fromCompressedJsonString_Static_Z721C83C5(s: string): ArcRun;
|
|
8
|
+
export declare function ARCtrl_ArcRun__ArcRun_toCompressedJsonString_Static_71136F3F(spaces?: int32): ((arg0: ArcRun) => string);
|
|
9
|
+
export declare function ARCtrl_ArcRun__ArcRun_ToCompressedJsonString_71136F3F(this$: ArcRun, spaces: Option<int32>): string;
|
|
10
|
+
//# sourceMappingURL=Run.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Run.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/JsonIO/Run.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAM7C,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAc,MAAM,EAAU,MAAM,uCAAuC,CAAC;AAMnF,wBAAgB,qDAAqD,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CASvF;AAED,wBAAgB,kDAAkD,CAAC,MAAM,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,CAK7G;AAED,wBAAgB,2CAA2C,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM,CAExG;AAED,wBAAgB,+DAA+D,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAejG;AAED,wBAAgB,4DAA4D,CAAC,MAAM,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,CAEvH;AAED,wBAAgB,qDAAqD,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM,CAElH"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { fromString } from '../fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js';
|
|
2
|
+
import { decoder, decoderCompressed, encoder, encoderCompressed } from '../Json/Run.js';
|
|
3
|
+
import { toText, printf, toFail } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
4
|
+
import { toString } from '../fable_modules/Thoth.Json.JavaScript.0.4.1/Encode.fs.js';
|
|
5
|
+
import { defaultSpaces } from '../Json/Encode.js';
|
|
6
|
+
import { defaultArg } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
7
|
+
import { decode, encode } from './Table/Compression.js';
|
|
8
|
+
|
|
9
|
+
function ARCtrl_ArcRun__ArcRun_fromJsonString_Static_Z721C83C5(s) {
|
|
10
|
+
let arg;
|
|
11
|
+
const matchValue = fromString(decoder, s);
|
|
12
|
+
if (matchValue.tag === /* Error */
|
|
13
|
+
1) {
|
|
14
|
+
throw new Error((arg = matchValue.fields[0], toText(printf("Error decoding string: %O"))(arg)));
|
|
15
|
+
} else {
|
|
16
|
+
return matchValue.fields[0];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function ARCtrl_ArcRun__ArcRun_toJsonString_Static_71136F3F(spaces) {
|
|
20
|
+
return (obj) => {
|
|
21
|
+
const value = encoder(obj);
|
|
22
|
+
return toString(defaultSpaces(spaces), value);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function ARCtrl_ArcRun__ArcRun_fromCompressedJsonString_Static_Z721C83C5(s) {
|
|
26
|
+
let arg;
|
|
27
|
+
try {
|
|
28
|
+
const matchValue = fromString(decode(decoderCompressed), s);
|
|
29
|
+
if (matchValue.tag === /* Error */
|
|
30
|
+
1) {
|
|
31
|
+
throw new Error((arg = matchValue.fields[0], toText(printf("Error decoding string: %O"))(arg)));
|
|
32
|
+
} else {
|
|
33
|
+
return matchValue.fields[0];
|
|
34
|
+
}
|
|
35
|
+
} catch (e_1) {
|
|
36
|
+
const arg_1 = e_1.message;
|
|
37
|
+
return toFail(printf("Error. Unable to parse json string to ArcRun: %s"))(arg_1);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function ARCtrl_ArcRun__ArcRun_toCompressedJsonString_Static_71136F3F(spaces) {
|
|
41
|
+
return (obj) => toString(defaultArg(spaces, 0), encode(encoderCompressed, obj));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { ARCtrl_ArcRun__ArcRun_fromCompressedJsonString_Static_Z721C83C5, ARCtrl_ArcRun__ArcRun_fromJsonString_Static_Z721C83C5, ARCtrl_ArcRun__ArcRun_toCompressedJsonString_Static_71136F3F, ARCtrl_ArcRun__ArcRun_toJsonString_Static_71136F3F };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ArcWorkflow } from '../Core/ArcTypes.js';
|
|
2
|
+
import { int32 } from '@fable-org/fable-library-js/Int32.js';
|
|
3
|
+
import { Option } from '@fable-org/fable-library-js/Option.js';
|
|
4
|
+
export declare function ARCtrl_ArcWorkflow__ArcWorkflow_fromJsonString_Static_Z721C83C5(s: string): ArcWorkflow;
|
|
5
|
+
export declare function ARCtrl_ArcWorkflow__ArcWorkflow_toJsonString_Static_71136F3F(spaces?: int32): ((arg0: ArcWorkflow) => string);
|
|
6
|
+
export declare function ARCtrl_ArcWorkflow__ArcWorkflow_ToJsonString_71136F3F(this$: ArcWorkflow, spaces: Option<int32>): string;
|
|
7
|
+
export declare function ARCtrl_ArcWorkflow__ArcWorkflow_fromCompressedJsonString_Static_Z721C83C5(s: string): ArcWorkflow;
|
|
8
|
+
export declare function ARCtrl_ArcWorkflow__ArcWorkflow_toCompressedJsonString_Static_71136F3F(spaces?: int32): ((arg0: ArcWorkflow) => string);
|
|
9
|
+
export declare function ARCtrl_ArcWorkflow__ArcWorkflow_ToCompressedJsonString_71136F3F(this$: ArcWorkflow, spaces: Option<int32>): string;
|
|
10
|
+
//# sourceMappingURL=Workflow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Workflow.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/JsonIO/Workflow.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAMlD,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAc,MAAM,EAAU,MAAM,uCAAuC,CAAC;AAMnF,wBAAgB,+DAA+D,CAAC,CAAC,EAAE,MAAM,GAAG,WAAW,CAStG;AAED,wBAAgB,4DAA4D,CAAC,MAAM,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,IAAI,EAAE,WAAW,KAAK,MAAM,CAAC,CAK5H;AAED,wBAAgB,qDAAqD,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM,CAEvH;AAED,wBAAgB,yEAAyE,CAAC,CAAC,EAAE,MAAM,GAAG,WAAW,CAehH;AAED,wBAAgB,sEAAsE,CAAC,MAAM,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,IAAI,EAAE,WAAW,KAAK,MAAM,CAAC,CAEtI;AAED,wBAAgB,+DAA+D,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM,CAEjI"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { fromString } from '../fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js';
|
|
2
|
+
import { decoder, decoderCompressed, encoder, encoderCompressed } from '../Json/Workflow.js';
|
|
3
|
+
import { toText, printf, toFail } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
4
|
+
import { toString } from '../fable_modules/Thoth.Json.JavaScript.0.4.1/Encode.fs.js';
|
|
5
|
+
import { defaultSpaces } from '../Json/Encode.js';
|
|
6
|
+
import { defaultArg } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
7
|
+
import { decode, encode } from './Table/Compression.js';
|
|
8
|
+
|
|
9
|
+
function ARCtrl_ArcWorkflow__ArcWorkflow_fromJsonString_Static_Z721C83C5(s) {
|
|
10
|
+
let arg;
|
|
11
|
+
const matchValue = fromString(decoder, s);
|
|
12
|
+
if (matchValue.tag === /* Error */
|
|
13
|
+
1) {
|
|
14
|
+
throw new Error((arg = matchValue.fields[0], toText(printf("Error decoding string: %O"))(arg)));
|
|
15
|
+
} else {
|
|
16
|
+
return matchValue.fields[0];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function ARCtrl_ArcWorkflow__ArcWorkflow_toJsonString_Static_71136F3F(spaces) {
|
|
20
|
+
return (obj) => {
|
|
21
|
+
const value = encoder(obj);
|
|
22
|
+
return toString(defaultSpaces(spaces), value);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function ARCtrl_ArcWorkflow__ArcWorkflow_fromCompressedJsonString_Static_Z721C83C5(s) {
|
|
26
|
+
let arg;
|
|
27
|
+
try {
|
|
28
|
+
const matchValue = fromString(decode(decoderCompressed), s);
|
|
29
|
+
if (matchValue.tag === /* Error */
|
|
30
|
+
1) {
|
|
31
|
+
throw new Error((arg = matchValue.fields[0], toText(printf("Error decoding string: %O"))(arg)));
|
|
32
|
+
} else {
|
|
33
|
+
return matchValue.fields[0];
|
|
34
|
+
}
|
|
35
|
+
} catch (e_1) {
|
|
36
|
+
const arg_1 = e_1.message;
|
|
37
|
+
return toFail(printf("Error. Unable to parse json string to ArcAssay: %s"))(arg_1);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function ARCtrl_ArcWorkflow__ArcWorkflow_toCompressedJsonString_Static_71136F3F(spaces) {
|
|
41
|
+
return (obj) => toString(defaultArg(spaces, 0), encode(encoderCompressed, obj));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { ARCtrl_ArcWorkflow__ArcWorkflow_fromCompressedJsonString_Static_Z721C83C5, ARCtrl_ArcWorkflow__ArcWorkflow_fromJsonString_Static_Z721C83C5, ARCtrl_ArcWorkflow__ArcWorkflow_toCompressedJsonString_Static_71136F3F, ARCtrl_ArcWorkflow__ArcWorkflow_toJsonString_Static_71136F3F };
|
package/dist/ts/ts/Xlsx.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FsWorkbook } from './fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js';
|
|
2
2
|
import { DataMap } from './Core/DataMap.js';
|
|
3
3
|
import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js';
|
|
4
|
-
import { ArcInvestigation, ArcStudy, ArcAssay } from './Core/ArcTypes.js';
|
|
4
|
+
import { ArcInvestigation, ArcRun, ArcWorkflow, ArcStudy, ArcAssay } from './Core/ArcTypes.js';
|
|
5
5
|
import { FSharpList } from '@fable-org/fable-library-js/List.js';
|
|
6
6
|
export declare class XlsxHelper_DatamapXlsx {
|
|
7
7
|
constructor();
|
|
@@ -30,6 +30,24 @@ export declare class XlsxHelper_StudyXlsx {
|
|
|
30
30
|
}
|
|
31
31
|
export declare function XlsxHelper_StudyXlsx_$reflection(): TypeInfo;
|
|
32
32
|
export declare function XlsxHelper_StudyXlsx_$ctor(): XlsxHelper_StudyXlsx;
|
|
33
|
+
export declare class XlsxHelper_WorkflowXlsx {
|
|
34
|
+
constructor();
|
|
35
|
+
fromFsWorkbook(fswb: FsWorkbook): ArcWorkflow;
|
|
36
|
+
toFsWorkbook(workflow: ArcWorkflow): FsWorkbook;
|
|
37
|
+
fromXlsxFileAsync(path: string): Promise<ArcWorkflow>;
|
|
38
|
+
toXlsxFileAsync(path: string, workflow: ArcWorkflow): Promise<void>;
|
|
39
|
+
}
|
|
40
|
+
export declare function XlsxHelper_WorkflowXlsx_$reflection(): TypeInfo;
|
|
41
|
+
export declare function XlsxHelper_WorkflowXlsx_$ctor(): XlsxHelper_WorkflowXlsx;
|
|
42
|
+
export declare class XlsxHelper_RunXlsx {
|
|
43
|
+
constructor();
|
|
44
|
+
fromFsWorkbook(fswb: FsWorkbook): ArcRun;
|
|
45
|
+
toFsWorkbook(run: ArcRun): FsWorkbook;
|
|
46
|
+
fromXlsxFileAsync(path: string): Promise<ArcRun>;
|
|
47
|
+
toXlsxFileAsync(path: string, run: ArcRun): Promise<void>;
|
|
48
|
+
}
|
|
49
|
+
export declare function XlsxHelper_RunXlsx_$reflection(): TypeInfo;
|
|
50
|
+
export declare function XlsxHelper_RunXlsx_$ctor(): XlsxHelper_RunXlsx;
|
|
33
51
|
export declare class XlsxHelper_InvestigationXlsx {
|
|
34
52
|
constructor();
|
|
35
53
|
fromFsWorkbook(fswb: FsWorkbook): ArcInvestigation;
|
|
@@ -44,6 +62,8 @@ export declare class XlsxController {
|
|
|
44
62
|
static get Datamap(): XlsxHelper_DatamapXlsx;
|
|
45
63
|
static get Assay(): XlsxHelper_AssayXlsx;
|
|
46
64
|
static get Study(): XlsxHelper_StudyXlsx;
|
|
65
|
+
static get Workflow(): XlsxHelper_WorkflowXlsx;
|
|
66
|
+
static get Run(): XlsxHelper_RunXlsx;
|
|
47
67
|
static get Investigation(): XlsxHelper_InvestigationXlsx;
|
|
48
68
|
}
|
|
49
69
|
export declare function XlsxController_$reflection(): TypeInfo;
|
package/dist/ts/ts/Xlsx.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Xlsx.d.ts","sourceRoot":"","sources":["../../../src/ARCtrl/ts/Xlsx.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAC;AAC1F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"Xlsx.d.ts","sourceRoot":"","sources":["../../../src/ARCtrl/ts/Xlsx.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAC;AAC1F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE/F,OAAO,EAAS,UAAU,EAAE,MAAM,qCAAqC,CAAC;A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K,OAAO,IAAI,sBAAsB,CAE3C;IACD,MAAM,KAAK,KAAK,IAAI,oBAAoB,CAEvC;IACD,MAAM,KAAK,KAAK,IAAI,oBAAoB,CAEvC;IACD,MAAM,KAAK,QAAQ,IAAI,uBAAuB,CAE7C;IACD,MAAM,KAAK,GAAG,IAAI,kBAAkB,CAEnC;IACD,MAAM,KAAK,aAAa,IAAI,4BAA4B,CAEvD;CACJ;AAED,wBAAgB,0BAA0B,IAAI,QAAQ,CAErD"}
|
package/dist/ts/ts/Xlsx.js
CHANGED
|
@@ -5,6 +5,8 @@ import { ARCtrl_ArcAssay__ArcAssay_fromFsWorkbook_Static_32154C9D, ARCtrl_ArcAss
|
|
|
5
5
|
import { ARCtrl_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D, ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522 } from './Spreadsheet/ArcStudy.js';
|
|
6
6
|
import { ofSeq } from '../node_modules/@fable-org/fable-library-js/List.js';
|
|
7
7
|
import { unwrap, map as map$1 } from '../node_modules/@fable-org/fable-library-js/Option.js';
|
|
8
|
+
import { ARCtrl_ArcWorkflow__ArcWorkflow_fromFsWorkbook_Static_32154C9D, ARCtrl_ArcWorkflow__ArcWorkflow_toFsWorkbook_Static_Z1C75CB0E } from './Spreadsheet/ArcWorkflow.js';
|
|
9
|
+
import { ARCtrl_ArcRun__ArcRun_fromFsWorkbook_Static_32154C9D, ARCtrl_ArcRun__ArcRun_toFsWorkbook_Static_Z3EFAF6F8 } from './Spreadsheet/ArcRun.js';
|
|
8
10
|
import { ARCtrl_ArcInvestigation__ArcInvestigation_fromFsWorkbook_Static_32154C9D, ARCtrl_ArcInvestigation__ArcInvestigation_toFsWorkbook_Static_Z720BD3FF } from './Spreadsheet/ArcInvestigation.js';
|
|
9
11
|
|
|
10
12
|
class XlsxHelper_DatamapXlsx {
|
|
@@ -55,6 +57,38 @@ class XlsxHelper_StudyXlsx {
|
|
|
55
57
|
return FsSpreadsheet_FsWorkbook__FsWorkbook_toXlsxFile_Static(path, ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522(study, unwrap(map$1(ofSeq, assays))));
|
|
56
58
|
}
|
|
57
59
|
}
|
|
60
|
+
class XlsxHelper_WorkflowXlsx {
|
|
61
|
+
constructor() {
|
|
62
|
+
}
|
|
63
|
+
fromFsWorkbook(fswb) {
|
|
64
|
+
return ARCtrl_ArcWorkflow__ArcWorkflow_fromFsWorkbook_Static_32154C9D(fswb);
|
|
65
|
+
}
|
|
66
|
+
toFsWorkbook(workflow) {
|
|
67
|
+
return ARCtrl_ArcWorkflow__ArcWorkflow_toFsWorkbook_Static_Z1C75CB0E(workflow);
|
|
68
|
+
}
|
|
69
|
+
fromXlsxFileAsync(path) {
|
|
70
|
+
return map(ARCtrl_ArcWorkflow__ArcWorkflow_fromFsWorkbook_Static_32154C9D, FsSpreadsheet_FsWorkbook__FsWorkbook_fromXlsxFile_Static_Z721C83C5(path));
|
|
71
|
+
}
|
|
72
|
+
toXlsxFileAsync(path, workflow) {
|
|
73
|
+
return FsSpreadsheet_FsWorkbook__FsWorkbook_toXlsxFile_Static(path, ARCtrl_ArcWorkflow__ArcWorkflow_toFsWorkbook_Static_Z1C75CB0E(workflow));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
class XlsxHelper_RunXlsx {
|
|
77
|
+
constructor() {
|
|
78
|
+
}
|
|
79
|
+
fromFsWorkbook(fswb) {
|
|
80
|
+
return ARCtrl_ArcRun__ArcRun_fromFsWorkbook_Static_32154C9D(fswb);
|
|
81
|
+
}
|
|
82
|
+
toFsWorkbook(run) {
|
|
83
|
+
return ARCtrl_ArcRun__ArcRun_toFsWorkbook_Static_Z3EFAF6F8(run);
|
|
84
|
+
}
|
|
85
|
+
fromXlsxFileAsync(path) {
|
|
86
|
+
return map(ARCtrl_ArcRun__ArcRun_fromFsWorkbook_Static_32154C9D, FsSpreadsheet_FsWorkbook__FsWorkbook_fromXlsxFile_Static_Z721C83C5(path));
|
|
87
|
+
}
|
|
88
|
+
toXlsxFileAsync(path, run) {
|
|
89
|
+
return FsSpreadsheet_FsWorkbook__FsWorkbook_toXlsxFile_Static(path, ARCtrl_ArcRun__ArcRun_toFsWorkbook_Static_Z3EFAF6F8(run));
|
|
90
|
+
}
|
|
91
|
+
}
|
|
58
92
|
class XlsxHelper_InvestigationXlsx {
|
|
59
93
|
constructor() {
|
|
60
94
|
}
|
|
@@ -83,9 +117,15 @@ class XlsxController {
|
|
|
83
117
|
static get Study() {
|
|
84
118
|
return new XlsxHelper_StudyXlsx();
|
|
85
119
|
}
|
|
120
|
+
static get Workflow() {
|
|
121
|
+
return new XlsxHelper_WorkflowXlsx();
|
|
122
|
+
}
|
|
123
|
+
static get Run() {
|
|
124
|
+
return new XlsxHelper_RunXlsx();
|
|
125
|
+
}
|
|
86
126
|
static get Investigation() {
|
|
87
127
|
return new XlsxHelper_InvestigationXlsx();
|
|
88
128
|
}
|
|
89
129
|
}
|
|
90
130
|
|
|
91
|
-
export { XlsxController, XlsxHelper_AssayXlsx, XlsxHelper_DatamapXlsx, XlsxHelper_InvestigationXlsx, XlsxHelper_StudyXlsx };
|
|
131
|
+
export { XlsxController, XlsxHelper_AssayXlsx, XlsxHelper_DatamapXlsx, XlsxHelper_InvestigationXlsx, XlsxHelper_RunXlsx, XlsxHelper_StudyXlsx, XlsxHelper_WorkflowXlsx };
|