@nfdi4plants/arctrl 3.0.0-beta.5 → 3.0.0-beta.6
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/node_modules/@fable-org/fable-library-js/Array.js +894 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +121 -3
- package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +279 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +101 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Choice.js +187 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +156 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +183 -7
- package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +217 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +154 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +20 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Collections.js +30 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +68 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +6 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +98 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +18 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +601 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +10 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +760 -16
- package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +26 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +18 -8
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +36 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +35 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +26 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +355 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +21 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +133 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +543 -8
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +53 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +673 -41
- package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +197 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +128 -3
- package/dist/ts/node_modules/@fable-org/fable-library-js/SystemException.js +8 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/TimeSpan.js +180 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +20 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +406 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +2 -2
- package/dist/ts/ts/ARC.d.ts +12 -5
- package/dist/ts/ts/ARC.d.ts.map +1 -1
- package/dist/ts/ts/ARC.js +172 -93
- package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ARC.js +8 -1
- package/dist/ts/ts/Contract/ArcAssay.js +14 -5
- package/dist/ts/ts/Contract/ArcInvestigation.js +10 -1
- package/dist/ts/ts/Contract/ArcRun.js +19 -6
- package/dist/ts/ts/Contract/ArcStudy.js +19 -6
- package/dist/ts/ts/Contract/ArcWorkflow.js +19 -6
- package/dist/ts/ts/Contract/Contract.js +42 -1
- package/dist/ts/ts/Contract/Datamap.js +61 -17
- package/dist/ts/ts/Contract/Git.d.ts.map +1 -1
- package/dist/ts/ts/Contract/Git.js +22 -6
- package/dist/ts/ts/Contract/License.d.ts +5 -0
- package/dist/ts/ts/Contract/License.d.ts.map +1 -0
- package/dist/ts/ts/Contract/License.js +34 -0
- package/dist/ts/ts/Contract/ValidationPackagesConfig.js +31 -6
- package/dist/ts/ts/ContractIO/ContractIO.js +5 -5
- package/dist/ts/ts/ContractIO/FileSystemHelper.js +16 -4
- package/dist/ts/ts/Conversion.js +321 -48
- package/dist/ts/ts/Core/ArcTypes.js +216 -15
- package/dist/ts/ts/Core/Comment.js +11 -1
- package/dist/ts/ts/Core/CommentList.js +77 -2
- package/dist/ts/ts/Core/Conversion.js +123 -43
- package/dist/ts/ts/Core/Data.js +9 -2
- package/dist/ts/ts/Core/DataContext.js +19 -4
- package/dist/ts/ts/Core/DataFile.js +38 -1
- package/dist/ts/ts/Core/DataMap.js +111 -5
- package/dist/ts/ts/Core/Helper/Collections.js +106 -5
- package/dist/ts/ts/Core/Helper/HashCodes.js +4 -4
- package/dist/ts/ts/Core/Helper/Identifier.js +100 -2
- package/dist/ts/ts/Core/Helper/Regex.js +134 -2
- package/dist/ts/ts/Core/Helper/SemVer.js +23 -2
- package/dist/ts/ts/Core/IdentifierSetters.js +27 -3
- package/dist/ts/ts/Core/OntologyAnnotation.js +4 -1
- package/dist/ts/ts/Core/OntologySourceReference.js +8 -1
- package/dist/ts/ts/Core/Person.js +8 -1
- package/dist/ts/ts/Core/Process/ColumnIndex.js +121 -4
- package/dist/ts/ts/Core/Process/Component.js +37 -4
- package/dist/ts/ts/Core/Process/Factor.js +9 -4
- package/dist/ts/ts/Core/Process/FactorValue.js +61 -4
- package/dist/ts/ts/Core/Process/Material.js +14 -4
- package/dist/ts/ts/Core/Process/MaterialAttribute.js +41 -3
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +67 -4
- package/dist/ts/ts/Core/Process/MaterialType.js +15 -1
- package/dist/ts/ts/Core/Process/Process.js +150 -7
- package/dist/ts/ts/Core/Process/ProcessInput.js +48 -8
- package/dist/ts/ts/Core/Process/ProcessOutput.js +44 -7
- package/dist/ts/ts/Core/Process/ProcessParameterValue.js +10 -5
- package/dist/ts/ts/Core/Process/ProcessSequence.js +127 -6
- package/dist/ts/ts/Core/Process/Protocol.js +78 -4
- package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -2
- package/dist/ts/ts/Core/Process/Sample.js +21 -3
- package/dist/ts/ts/Core/Process/Source.js +13 -3
- package/dist/ts/ts/Core/Publication.js +8 -1
- package/dist/ts/ts/Core/Table/ArcTable.js +34 -25
- package/dist/ts/ts/Core/Table/ArcTableAux.js +150 -23
- package/dist/ts/ts/Core/Table/ArcTables.js +24 -15
- package/dist/ts/ts/Core/Table/CompositeCell.js +7 -3
- package/dist/ts/ts/Core/Table/CompositeColumn.js +8 -4
- package/dist/ts/ts/Core/Table/CompositeHeader.js +18 -15
- package/dist/ts/ts/Core/Template.js +12 -2
- package/dist/ts/ts/Core/Templates.js +8 -4
- package/dist/ts/ts/Core/Value.js +7 -3
- package/dist/ts/ts/CrossAsync.js +11 -1
- package/dist/ts/ts/FileSystem/Commit.js +18 -0
- package/dist/ts/ts/FileSystem/FileSystem.js +8 -3
- package/dist/ts/ts/FileSystem/FileSystemTree.d.ts +1 -0
- package/dist/ts/ts/FileSystem/FileSystemTree.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/FileSystemTree.js +20 -13
- package/dist/ts/ts/FileSystem/Path.d.ts +2 -0
- package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/Path.js +17 -3
- package/dist/ts/ts/Json/Assay.js +26 -26
- package/dist/ts/ts/Json/Comment.js +10 -10
- package/dist/ts/ts/Json/Data.js +6 -6
- package/dist/ts/ts/Json/DataMap/DataContext.js +4 -4
- package/dist/ts/ts/Json/DataMap/DataMap.js +2 -2
- package/dist/ts/ts/Json/Decode.js +14 -9
- package/dist/ts/ts/Json/Encode.js +43 -11
- package/dist/ts/ts/Json/Investigation.js +40 -22
- package/dist/ts/ts/Json/OntologyAnnotation.js +5 -5
- package/dist/ts/ts/Json/OntologySourceReference.js +2 -2
- package/dist/ts/ts/Json/Person.js +26 -26
- package/dist/ts/ts/Json/Process/Component.js +9 -6
- package/dist/ts/ts/Json/Process/Factor.js +3 -3
- package/dist/ts/ts/Json/Process/FactorValue.js +8 -8
- package/dist/ts/ts/Json/Process/Material.js +9 -9
- package/dist/ts/ts/Json/Process/MaterialAttribute.js +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +8 -8
- package/dist/ts/ts/Json/Process/Process.js +12 -12
- package/dist/ts/ts/Json/Process/ProcessInput.js +4 -4
- package/dist/ts/ts/Json/Process/ProcessOutput.js +3 -3
- package/dist/ts/ts/Json/Process/ProcessParameterValue.js +10 -7
- package/dist/ts/ts/Json/Process/Protocol.js +12 -12
- package/dist/ts/ts/Json/Process/ProtocolParameter.js +3 -3
- package/dist/ts/ts/Json/Process/Sample.js +14 -14
- package/dist/ts/ts/Json/Process/Source.js +9 -9
- package/dist/ts/ts/Json/Process/Value.js +1 -1
- package/dist/ts/ts/Json/PropertyValue.js +1 -1
- package/dist/ts/ts/Json/Publication.js +6 -6
- package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -0
- package/dist/ts/ts/Json/ROCrate/LDGraph.js +3 -3
- package/dist/ts/ts/Json/ROCrate/LDNode.js +19 -19
- package/dist/ts/ts/Json/Run.js +7 -7
- package/dist/ts/ts/Json/StringTable.js +1 -1
- package/dist/ts/ts/Json/Study.js +32 -32
- package/dist/ts/ts/Json/Table/ArcTable.js +29 -29
- package/dist/ts/ts/Json/Table/CellTable.js +6 -6
- package/dist/ts/ts/Json/Table/CompositeCell.js +4 -4
- package/dist/ts/ts/Json/Table/CompositeHeader.js +2 -2
- package/dist/ts/ts/Json/Table/IOType.js +1 -1
- package/dist/ts/ts/Json/Table/OATable.js +7 -7
- package/dist/ts/ts/Json/Table/Templates.js +92 -6
- package/dist/ts/ts/Json/Workflow.js +11 -11
- package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +27 -1
- package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +17 -1
- package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +27 -1
- package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +18 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +16 -1
- package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +25 -1
- package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +24 -1
- package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +23 -1
- package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +35 -1
- package/dist/ts/ts/Json/context/rocrate/rocrate_context.js +61 -0
- package/dist/ts/ts/Json.d.ts +13 -1
- package/dist/ts/ts/Json.d.ts.map +1 -1
- package/dist/ts/ts/Json.js +89 -2
- package/dist/ts/ts/JsonIO/Assay.js +15 -3
- package/dist/ts/ts/JsonIO/Investigation.js +15 -3
- package/dist/ts/ts/JsonIO/LDObject.js +17 -3
- package/dist/ts/ts/JsonIO/OntologyAnnotation.js +12 -2
- package/dist/ts/ts/JsonIO/Person.d.ts +16 -0
- package/dist/ts/ts/JsonIO/Person.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Person.js +67 -0
- package/dist/ts/ts/JsonIO/Run.js +9 -3
- package/dist/ts/ts/JsonIO/Study.js +15 -3
- package/dist/ts/ts/JsonIO/Table/Compression.js +3 -3
- package/dist/ts/ts/JsonIO/Table/Templates.js +60 -5
- package/dist/ts/ts/JsonIO/Workflow.js +9 -3
- package/dist/ts/ts/License.d.ts +39 -0
- package/dist/ts/ts/License.d.ts.map +1 -0
- package/dist/ts/ts/License.js +123 -0
- package/dist/ts/ts/ROCrate/Generic/Comment.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts +69 -0
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.js +450 -0
- package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts +1 -0
- package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/Generic/Dataset.js +27 -1
- package/dist/ts/ts/ROCrate/Generic/DefinedTerm.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/File.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/LabProcess.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/LabProtocol.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/Organization.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/Person.js +7 -2
- package/dist/ts/ts/ROCrate/Generic/PostalAddress.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/PropertyValue.js +19 -15
- package/dist/ts/ts/ROCrate/Generic/Sample.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/ScholarlyArticle.js +5 -1
- package/dist/ts/ts/ROCrate/LDContext.js +15 -6
- package/dist/ts/ts/ROCrate/LDObject.js +53 -17
- package/dist/ts/ts/ROCrateIO.d.ts +9 -3
- package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
- package/dist/ts/ts/ROCrateIO.js +67 -14
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +18 -15
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +5 -4
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +40 -17
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +4 -4
- package/dist/ts/ts/Spreadsheet/ArcAssay.js +30 -15
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +32 -18
- package/dist/ts/ts/Spreadsheet/ArcRun.js +23 -8
- package/dist/ts/ts/Spreadsheet/ArcStudy.js +22 -7
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +23 -8
- package/dist/ts/ts/Spreadsheet/CollectionAux.js +75 -5
- package/dist/ts/ts/Spreadsheet/DataMap.js +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.js +4 -4
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.js +8 -8
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +4 -4
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +6 -6
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +2 -2
- package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +6 -3
- package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +9 -3
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +6 -4
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +7 -5
- package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +10 -8
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +5 -5
- package/dist/ts/ts/Spreadsheet/Metadata/Run.js +6 -6
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +246 -10
- package/dist/ts/ts/Spreadsheet/Metadata/Study.js +19 -13
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +5 -5
- package/dist/ts/ts/Template.Web.js +5 -1
- package/dist/ts/ts/ValidationPackages/ValidationPackage.js +8 -1
- package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +10 -3
- package/dist/ts/ts/WebRequest/WebRequest.Node.js +1 -0
- package/dist/ts/ts/Xlsx.js +41 -1
- package/dist/ts/ts/Yaml/ValidationPackage.js +18 -2
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +5 -2
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +27 -4
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/FableJS.fs.js +14 -3
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/HashCodes.fs.js +30 -4
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/PropertyHelper.fs.js +5 -1
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/ReflectionUtils.fs.js +65 -2
- package/dist/ts/ts/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +257 -1
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +71 -1
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +11 -1
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +188 -11
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +80 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js +63 -4
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js +17 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/CellBuilder.fs.js +198 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Expression.fs.js +46 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/RowBuilder.fs.js +131 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Types.fs.js +307 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js +38 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsColumn.fs.js +11 -4
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js +12 -5
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js +14 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js +31 -1
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Cell.fs.js +65 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Column.fs.js +38 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Row.fs.js +38 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Table.fs.js +34 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js +49 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Workbook.fs.js +44 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Worksheet.fs.js +129 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRange.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js +82 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js +12 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeColumn.fs.js +17 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeRow.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js +12 -5
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTableField.fs.js +12 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +2 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js +42 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Json.fs.js +53 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Table.fs.js +9 -9
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Workbook.fs.js +1 -1
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Worksheet.fs.js +2 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Xlsx.fs.js +5 -1
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js +730 -23
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js +192 -7
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js +45 -1
- package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js +15 -2
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Decode.fs.js +1383 -15
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Encode.fs.js +45 -4
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Interop/JsInterop.fs.js +10 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +5 -5
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +16 -6
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +26 -23
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +1 -1
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +8 -8
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +18 -2
- package/package.json +1 -1
- package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts +0 -2
- package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts.map +0 -1
- package/dist/ts/ts/FileSystem/DefaultGitattributes.js +0 -3
- package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts +0 -2
- package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts.map +0 -1
- package/dist/ts/ts/FileSystem/DefaultGitignore.js +0 -3
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
import { ErrorReason$
|
|
1
|
+
import { ErrorReason$1_BadPrimitive, ErrorReason$1_BadPrimitiveExtra, ErrorReason$1_BadType, ErrorReason$1_BadPath, ErrorReason$1_BadField, ErrorReason$1_TooSmallArray, ErrorReason$1_BadOneOf, ErrorReason$1_FailMessage } from './Types.fs.js';
|
|
2
2
|
import { join } from '../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
3
|
-
import {
|
|
4
|
-
import { FSharpResult$2_Error, FSharpResult$2_Ok, Result_MapError } from '../../../node_modules/@fable-org/fable-library-js/Result.js';
|
|
5
|
-
import { tryParse
|
|
3
|
+
import { map as map$1, tryLast, fold, empty, append, singleton, ofSeq, reverse as reverse$1, cons, isEmpty, head, tail, length } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
4
|
+
import { FSharpResult$2_Error, FSharpResult$2_Ok, Result_MapError, Result_Map } from '../../../node_modules/@fable-org/fable-library-js/Result.js';
|
|
5
|
+
import { tryParse } from '../../../node_modules/@fable-org/fable-library-js/Guid.js';
|
|
6
6
|
import { FSharpRef } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
7
|
-
import { tryParse } from '../../../node_modules/@fable-org/fable-library-js/Int32.js';
|
|
8
|
-
import { tryParse as tryParse$
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
7
|
+
import { tryParse as tryParse$1 } from '../../../node_modules/@fable-org/fable-library-js/Int32.js';
|
|
8
|
+
import { toFloat64, toInt64, fromFloat64, toUInt64, fromInt32, tryParse as tryParse$3 } from '../../../node_modules/@fable-org/fable-library-js/BigInt.js';
|
|
9
|
+
import { tryParse as tryParse$2 } from '../../../node_modules/@fable-org/fable-library-js/Long.js';
|
|
10
|
+
import { tryParse as tryParse$4 } from '../../../node_modules/@fable-org/fable-library-js/Decimal.js';
|
|
11
|
+
import { minValue, tryParse as tryParse$5, toUniversalTime } from '../../../node_modules/@fable-org/fable-library-js/Date.js';
|
|
12
|
+
import { minValue as minValue$1, tryParse as tryParse$6 } from '../../../node_modules/@fable-org/fable-library-js/DateOffset.js';
|
|
13
|
+
import { tryParse as tryParse$7 } from '../../../node_modules/@fable-org/fable-library-js/TimeSpan.js';
|
|
14
|
+
import { some, defaultArg, value as value$1 } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
15
|
+
import { int32ToString, defaultOf, comparePrimitives, compare } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
16
|
+
import { item, fold as fold$1, setItem, fill } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
17
|
+
import { reverse, append as append$1, toList } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
18
|
+
import { class_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
19
|
+
import { ofList, ofSeq as ofSeq$1 } from '../../../node_modules/@fable-org/fable-library-js/Map.js';
|
|
14
20
|
import { Big } from '../../../node_modules/@fable-org/fable-library-js/lib/big.js';
|
|
15
21
|
|
|
16
22
|
function Helpers_prependPath(path, err_, err__1) {
|
|
@@ -78,17 +84,37 @@ function errorToString(helpers, path, error) {
|
|
|
78
84
|
return "Error at: `" + path + "`\n" + reason_1;
|
|
79
85
|
}
|
|
80
86
|
}
|
|
87
|
+
function Advanced_fromValue(helpers, decoder, value_1) {
|
|
88
|
+
const matchValue = decoder.Decode(helpers, value_1);
|
|
89
|
+
if (matchValue.tag === /* Error */
|
|
90
|
+
1) {
|
|
91
|
+
const error = matchValue.fields[0];
|
|
92
|
+
return FSharpResult$2_Error(errorToString(helpers, error[0], error[1]));
|
|
93
|
+
} else {
|
|
94
|
+
return FSharpResult$2_Ok(matchValue.fields[0]);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
81
97
|
const string = {
|
|
82
98
|
Decode(helpers, value_1) {
|
|
83
99
|
return helpers.isString(value_1) ? FSharpResult$2_Ok(helpers.asString(value_1)) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a string", value_1)]);
|
|
84
100
|
}
|
|
85
101
|
};
|
|
102
|
+
const char = {
|
|
103
|
+
Decode(helpers, value_1) {
|
|
104
|
+
if (helpers.isString(value_1)) {
|
|
105
|
+
const str = helpers.asString(value_1);
|
|
106
|
+
return str.length === 1 ? FSharpResult$2_Ok(str[0]) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a single character string", value_1)]);
|
|
107
|
+
} else {
|
|
108
|
+
return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a char", value_1)]);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
};
|
|
86
112
|
const guid = {
|
|
87
113
|
Decode(helpers, value_1) {
|
|
88
114
|
if (helpers.isString(value_1)) {
|
|
89
115
|
let matchValue;
|
|
90
116
|
let outArg = "00000000-0000-0000-0000-000000000000";
|
|
91
|
-
matchValue = [tryParse
|
|
117
|
+
matchValue = [tryParse(helpers.asString(value_1), new FSharpRef(() => outArg, (v) => {
|
|
92
118
|
outArg = v;
|
|
93
119
|
})), outArg];
|
|
94
120
|
return matchValue[0] ? FSharpResult$2_Ok(matchValue[1]) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a guid", value_1)]);
|
|
@@ -102,6 +128,90 @@ const unit = {
|
|
|
102
128
|
return helpers.isNullValue(value_1) ? FSharpResult$2_Ok(void 0) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("null", value_1)]);
|
|
103
129
|
}
|
|
104
130
|
};
|
|
131
|
+
const sbyte = {
|
|
132
|
+
Decode(helpers, value_2) {
|
|
133
|
+
if (helpers.isNumber(value_2)) {
|
|
134
|
+
if (helpers.isIntegralValue(value_2)) {
|
|
135
|
+
const floatValue = helpers.asFloat(value_2);
|
|
136
|
+
return -128 <= floatValue && floatValue <= 127 ? FSharpResult$2_Ok((floatValue + 128 & 255) - 128) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitiveExtra("a sbyte", value_2, "Value was either too large or too small for a sbyte")]);
|
|
137
|
+
} else {
|
|
138
|
+
return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitiveExtra("a sbyte", value_2, "Value is not an integral value")]);
|
|
139
|
+
}
|
|
140
|
+
} else if (helpers.isString(value_2)) {
|
|
141
|
+
let matchValue;
|
|
142
|
+
let outArg = 0;
|
|
143
|
+
matchValue = [tryParse$1(helpers.asString(value_2), 511, false, 8, new FSharpRef(() => outArg, (v) => {
|
|
144
|
+
outArg = v | 0;
|
|
145
|
+
})), outArg];
|
|
146
|
+
return matchValue[0] ? FSharpResult$2_Ok(matchValue[1]) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a sbyte", value_2)]);
|
|
147
|
+
} else {
|
|
148
|
+
return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a sbyte", value_2)]);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
const byte = {
|
|
153
|
+
Decode(helpers, value_2) {
|
|
154
|
+
if (helpers.isNumber(value_2)) {
|
|
155
|
+
if (helpers.isIntegralValue(value_2)) {
|
|
156
|
+
const floatValue = helpers.asFloat(value_2);
|
|
157
|
+
return 0 <= floatValue && floatValue <= 255 ? FSharpResult$2_Ok(floatValue & 255) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitiveExtra("a byte", value_2, "Value was either too large or too small for a byte")]);
|
|
158
|
+
} else {
|
|
159
|
+
return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitiveExtra("a byte", value_2, "Value is not an integral value")]);
|
|
160
|
+
}
|
|
161
|
+
} else if (helpers.isString(value_2)) {
|
|
162
|
+
let matchValue;
|
|
163
|
+
let outArg = 0;
|
|
164
|
+
matchValue = [tryParse$1(helpers.asString(value_2), 511, true, 8, new FSharpRef(() => outArg, (v) => {
|
|
165
|
+
outArg = v;
|
|
166
|
+
})), outArg];
|
|
167
|
+
return matchValue[0] ? FSharpResult$2_Ok(matchValue[1]) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a byte", value_2)]);
|
|
168
|
+
} else {
|
|
169
|
+
return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a byte", value_2)]);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
const int16 = {
|
|
174
|
+
Decode(helpers, value_2) {
|
|
175
|
+
if (helpers.isNumber(value_2)) {
|
|
176
|
+
if (helpers.isIntegralValue(value_2)) {
|
|
177
|
+
const floatValue = helpers.asFloat(value_2);
|
|
178
|
+
return -32768 <= floatValue && floatValue <= 32767 ? FSharpResult$2_Ok((floatValue + 32768 & 65535) - 32768) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitiveExtra("an int16", value_2, "Value was either too large or too small for an int16")]);
|
|
179
|
+
} else {
|
|
180
|
+
return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitiveExtra("an int16", value_2, "Value is not an integral value")]);
|
|
181
|
+
}
|
|
182
|
+
} else if (helpers.isString(value_2)) {
|
|
183
|
+
let matchValue;
|
|
184
|
+
let outArg = 0;
|
|
185
|
+
matchValue = [tryParse$1(helpers.asString(value_2), 511, false, 16, new FSharpRef(() => outArg, (v) => {
|
|
186
|
+
outArg = v | 0;
|
|
187
|
+
})), outArg];
|
|
188
|
+
return matchValue[0] ? FSharpResult$2_Ok(matchValue[1]) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("an int16", value_2)]);
|
|
189
|
+
} else {
|
|
190
|
+
return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("an int16", value_2)]);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
const uint16 = {
|
|
195
|
+
Decode(helpers, value_2) {
|
|
196
|
+
if (helpers.isNumber(value_2)) {
|
|
197
|
+
if (helpers.isIntegralValue(value_2)) {
|
|
198
|
+
const floatValue = helpers.asFloat(value_2);
|
|
199
|
+
return 0 <= floatValue && floatValue <= 65535 ? FSharpResult$2_Ok(floatValue & 65535) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitiveExtra("an uint16", value_2, "Value was either too large or too small for an uint16")]);
|
|
200
|
+
} else {
|
|
201
|
+
return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitiveExtra("an uint16", value_2, "Value is not an integral value")]);
|
|
202
|
+
}
|
|
203
|
+
} else if (helpers.isString(value_2)) {
|
|
204
|
+
let matchValue;
|
|
205
|
+
let outArg = 0;
|
|
206
|
+
matchValue = [tryParse$1(helpers.asString(value_2), 511, true, 16, new FSharpRef(() => outArg, (v) => {
|
|
207
|
+
outArg = v;
|
|
208
|
+
})), outArg];
|
|
209
|
+
return matchValue[0] ? FSharpResult$2_Ok(matchValue[1]) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("an uint16", value_2)]);
|
|
210
|
+
} else {
|
|
211
|
+
return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("an uint16", value_2)]);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
};
|
|
105
215
|
const int = {
|
|
106
216
|
Decode(helpers, value_2) {
|
|
107
217
|
if (helpers.isNumber(value_2)) {
|
|
@@ -114,7 +224,7 @@ const int = {
|
|
|
114
224
|
} else if (helpers.isString(value_2)) {
|
|
115
225
|
let matchValue;
|
|
116
226
|
let outArg = 0;
|
|
117
|
-
matchValue = [tryParse(helpers.asString(value_2), 511, false, 32, new FSharpRef(() => outArg, (v) => {
|
|
227
|
+
matchValue = [tryParse$1(helpers.asString(value_2), 511, false, 32, new FSharpRef(() => outArg, (v) => {
|
|
118
228
|
outArg = v | 0;
|
|
119
229
|
})), outArg];
|
|
120
230
|
return matchValue[0] ? FSharpResult$2_Ok(matchValue[1]) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("an int", value_2)]);
|
|
@@ -123,6 +233,85 @@ const int = {
|
|
|
123
233
|
}
|
|
124
234
|
}
|
|
125
235
|
};
|
|
236
|
+
const uint32 = {
|
|
237
|
+
Decode(helpers, value_2) {
|
|
238
|
+
if (helpers.isNumber(value_2)) {
|
|
239
|
+
if (helpers.isIntegralValue(value_2)) {
|
|
240
|
+
const floatValue = helpers.asFloat(value_2);
|
|
241
|
+
return 0 <= floatValue && floatValue <= 4294967295 ? FSharpResult$2_Ok(floatValue >>> 0) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitiveExtra("an uint32", value_2, "Value was either too large or too small for an uint32")]);
|
|
242
|
+
} else {
|
|
243
|
+
return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitiveExtra("an uint32", value_2, "Value is not an integral value")]);
|
|
244
|
+
}
|
|
245
|
+
} else if (helpers.isString(value_2)) {
|
|
246
|
+
let matchValue;
|
|
247
|
+
let outArg = 0;
|
|
248
|
+
matchValue = [tryParse$1(helpers.asString(value_2), 511, true, 32, new FSharpRef(() => outArg, (v) => {
|
|
249
|
+
outArg = v;
|
|
250
|
+
})), outArg];
|
|
251
|
+
return matchValue[0] ? FSharpResult$2_Ok(matchValue[1]) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("an uint32", value_2)]);
|
|
252
|
+
} else {
|
|
253
|
+
return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("an uint32", value_2)]);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
const int64 = {
|
|
258
|
+
Decode(helpers, value_2) {
|
|
259
|
+
if (helpers.isNumber(value_2)) {
|
|
260
|
+
if (helpers.isIntegralValue(value_2)) {
|
|
261
|
+
const floatValue = helpers.asFloat(value_2);
|
|
262
|
+
return toFloat64(-9223372036854775808n) <= floatValue && floatValue <= toFloat64(9223372036854775807n) ? FSharpResult$2_Ok(toInt64(fromFloat64(floatValue))) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitiveExtra("an int64", value_2, "Value was either too large or too small for an int64")]);
|
|
263
|
+
} else {
|
|
264
|
+
return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitiveExtra("an int64", value_2, "Value is not an integral value")]);
|
|
265
|
+
}
|
|
266
|
+
} else if (helpers.isString(value_2)) {
|
|
267
|
+
let matchValue;
|
|
268
|
+
let outArg = 0n;
|
|
269
|
+
matchValue = [tryParse$2(helpers.asString(value_2), 511, false, 64, new FSharpRef(() => outArg, (v) => {
|
|
270
|
+
outArg = v;
|
|
271
|
+
})), outArg];
|
|
272
|
+
return matchValue[0] ? FSharpResult$2_Ok(matchValue[1]) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("an int64", value_2)]);
|
|
273
|
+
} else {
|
|
274
|
+
return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("an int64", value_2)]);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
const uint64 = {
|
|
279
|
+
Decode(helpers, value_2) {
|
|
280
|
+
if (helpers.isNumber(value_2)) {
|
|
281
|
+
if (helpers.isIntegralValue(value_2)) {
|
|
282
|
+
const floatValue = helpers.asFloat(value_2);
|
|
283
|
+
return toFloat64(0n) <= floatValue && floatValue <= toFloat64(18446744073709551615n) ? FSharpResult$2_Ok(toUInt64(fromFloat64(floatValue))) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitiveExtra("an uint64", value_2, "Value was either too large or too small for an uint64")]);
|
|
284
|
+
} else {
|
|
285
|
+
return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitiveExtra("an uint64", value_2, "Value is not an integral value")]);
|
|
286
|
+
}
|
|
287
|
+
} else if (helpers.isString(value_2)) {
|
|
288
|
+
let matchValue;
|
|
289
|
+
let outArg = 0n;
|
|
290
|
+
matchValue = [tryParse$2(helpers.asString(value_2), 511, true, 64, new FSharpRef(() => outArg, (v) => {
|
|
291
|
+
outArg = v;
|
|
292
|
+
})), outArg];
|
|
293
|
+
return matchValue[0] ? FSharpResult$2_Ok(matchValue[1]) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("an uint64", value_2)]);
|
|
294
|
+
} else {
|
|
295
|
+
return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("an uint64", value_2)]);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
const bigint = {
|
|
300
|
+
Decode(helpers, value_1) {
|
|
301
|
+
if (helpers.isNumber(value_1)) {
|
|
302
|
+
return FSharpResult$2_Ok(fromInt32(helpers.asInt(value_1)));
|
|
303
|
+
} else if (helpers.isString(value_1)) {
|
|
304
|
+
let parseResult;
|
|
305
|
+
let outArg = 0n;
|
|
306
|
+
parseResult = [tryParse$3(helpers.asString(value_1), new FSharpRef(() => outArg, (v) => {
|
|
307
|
+
outArg = v;
|
|
308
|
+
})), outArg];
|
|
309
|
+
return parseResult[0] ? FSharpResult$2_Ok(parseResult[1]) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a bigint", value_1)]);
|
|
310
|
+
} else {
|
|
311
|
+
return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a bigint", value_1)]);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
};
|
|
126
315
|
const bool = {
|
|
127
316
|
Decode(helpers, value_1) {
|
|
128
317
|
return helpers.isBoolean(value_1) ? FSharpResult$2_Ok(helpers.asBoolean(value_1)) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a boolean", value_1)]);
|
|
@@ -133,6 +322,11 @@ const float = {
|
|
|
133
322
|
return helpers.isNumber(value_1) ? FSharpResult$2_Ok(helpers.asFloat(value_1)) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a float", value_1)]);
|
|
134
323
|
}
|
|
135
324
|
};
|
|
325
|
+
const float32 = {
|
|
326
|
+
Decode(helpers, value_1) {
|
|
327
|
+
return helpers.isNumber(value_1) ? FSharpResult$2_Ok(helpers.asFloat32(value_1)) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a float32", value_1)]);
|
|
328
|
+
}
|
|
329
|
+
};
|
|
136
330
|
const decimal = {
|
|
137
331
|
Decode(helpers, value_1) {
|
|
138
332
|
if (helpers.isNumber(value_1)) {
|
|
@@ -140,7 +334,7 @@ const decimal = {
|
|
|
140
334
|
} else if (helpers.isString(value_1)) {
|
|
141
335
|
let matchValue;
|
|
142
336
|
let outArg = new Big("0");
|
|
143
|
-
matchValue = [tryParse$
|
|
337
|
+
matchValue = [tryParse$4(helpers.asString(value_1), new FSharpRef(() => outArg, (v) => {
|
|
144
338
|
outArg = v;
|
|
145
339
|
})), outArg];
|
|
146
340
|
return matchValue[0] ? FSharpResult$2_Ok(matchValue[1]) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a decimal", value_1)]);
|
|
@@ -149,6 +343,62 @@ const decimal = {
|
|
|
149
343
|
}
|
|
150
344
|
}
|
|
151
345
|
};
|
|
346
|
+
const datetimeUtc = {
|
|
347
|
+
Decode(helpers, value_1) {
|
|
348
|
+
if (helpers.isString(value_1)) {
|
|
349
|
+
let matchValue;
|
|
350
|
+
let outArg = minValue();
|
|
351
|
+
matchValue = [tryParse$5(helpers.asString(value_1), new FSharpRef(() => outArg, (v) => {
|
|
352
|
+
outArg = v;
|
|
353
|
+
})), outArg];
|
|
354
|
+
return matchValue[0] ? FSharpResult$2_Ok(toUniversalTime(matchValue[1])) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a datetime", value_1)]);
|
|
355
|
+
} else {
|
|
356
|
+
return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a datetime", value_1)]);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
};
|
|
360
|
+
const datetimeLocal = {
|
|
361
|
+
Decode(helpers, value_1) {
|
|
362
|
+
if (helpers.isString(value_1)) {
|
|
363
|
+
let matchValue;
|
|
364
|
+
let outArg = minValue();
|
|
365
|
+
matchValue = [tryParse$5(helpers.asString(value_1), new FSharpRef(() => outArg, (v) => {
|
|
366
|
+
outArg = v;
|
|
367
|
+
})), outArg];
|
|
368
|
+
return matchValue[0] ? FSharpResult$2_Ok(matchValue[1]) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a datetime", value_1)]);
|
|
369
|
+
} else {
|
|
370
|
+
return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a datetime", value_1)]);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
const datetimeOffset = {
|
|
375
|
+
Decode(helpers, value_1) {
|
|
376
|
+
if (helpers.isString(value_1)) {
|
|
377
|
+
let matchValue;
|
|
378
|
+
let outArg = minValue$1();
|
|
379
|
+
matchValue = [tryParse$6(helpers.asString(value_1), new FSharpRef(() => outArg, (v) => {
|
|
380
|
+
outArg = v;
|
|
381
|
+
})), outArg];
|
|
382
|
+
return matchValue[0] ? FSharpResult$2_Ok(matchValue[1]) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a datetimeoffset", value_1)]);
|
|
383
|
+
} else {
|
|
384
|
+
return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a datetime", value_1)]);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
const timespan = {
|
|
389
|
+
Decode(helpers, value_1) {
|
|
390
|
+
if (helpers.isString(value_1)) {
|
|
391
|
+
let matchValue;
|
|
392
|
+
let outArg = 0;
|
|
393
|
+
matchValue = [tryParse$7(helpers.asString(value_1), new FSharpRef(() => outArg, (v) => {
|
|
394
|
+
outArg = v;
|
|
395
|
+
})), outArg];
|
|
396
|
+
return matchValue[0] ? FSharpResult$2_Ok(matchValue[1]) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a timespan", value_1)]);
|
|
397
|
+
} else {
|
|
398
|
+
return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a timespan", value_1)]);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
};
|
|
152
402
|
function decodeMaybeNull(helpers, path, decoder, value_1) {
|
|
153
403
|
let tupledArg;
|
|
154
404
|
if (helpers.isNullValue(value_1)) {
|
|
@@ -173,10 +423,29 @@ function optional(fieldName, decoder) {
|
|
|
173
423
|
function badPathError(fieldNames, currentPath, value_1) {
|
|
174
424
|
return FSharpResult$2_Error(["." + defaultArg(currentPath, join(".", fieldNames)), ErrorReason$1_BadPath("an object with path `" + join(".", fieldNames) + "`", value_1, defaultArg(tryLast(fieldNames), ""))]);
|
|
175
425
|
}
|
|
426
|
+
function map2(ctor, d1, d2) {
|
|
427
|
+
return {
|
|
428
|
+
Decode(helpers, value_1) {
|
|
429
|
+
let er_1, v1, v2;
|
|
430
|
+
const matchValue = d1.Decode(helpers, value_1);
|
|
431
|
+
const matchValue_1 = d2.Decode(helpers, value_1);
|
|
432
|
+
const copyOfStruct = matchValue;
|
|
433
|
+
if (copyOfStruct.tag === /* Error */
|
|
434
|
+
1) {
|
|
435
|
+
const er = copyOfStruct.fields[0];
|
|
436
|
+
return FSharpResult$2_Error(er);
|
|
437
|
+
} else {
|
|
438
|
+
const copyOfStruct_1 = matchValue_1;
|
|
439
|
+
return copyOfStruct_1.tag === /* Error */
|
|
440
|
+
1 ? (er_1 = copyOfStruct_1.fields[0], FSharpResult$2_Error(er_1)) : (v1 = copyOfStruct.fields[0], v2 = copyOfStruct_1.fields[0], FSharpResult$2_Ok(ctor(v1, v2)));
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
}
|
|
176
445
|
function optionalAt(fieldNames, decoder) {
|
|
177
446
|
return {
|
|
178
447
|
Decode(helpers, firstValue) {
|
|
179
|
-
const _arg = fold
|
|
448
|
+
const _arg = fold((tupledArg, field_1) => {
|
|
180
449
|
const curPath = tupledArg[0];
|
|
181
450
|
const curValue = tupledArg[1];
|
|
182
451
|
const res = tupledArg[2];
|
|
@@ -200,7 +469,7 @@ function optionalAt(fieldNames, decoder) {
|
|
|
200
469
|
const lastValue = _arg[1];
|
|
201
470
|
return helpers.isNullValue(lastValue) ? FSharpResult$2_Ok(void 0) : decodeMaybeNull(helpers, _arg[0], decoder, lastValue);
|
|
202
471
|
} else {
|
|
203
|
-
return value(_arg[2]);
|
|
472
|
+
return value$1(_arg[2]);
|
|
204
473
|
}
|
|
205
474
|
}
|
|
206
475
|
};
|
|
@@ -225,7 +494,7 @@ function field(fieldName, decoder) {
|
|
|
225
494
|
function at(fieldNames, decoder) {
|
|
226
495
|
return {
|
|
227
496
|
Decode(helpers, firstValue) {
|
|
228
|
-
const _arg = fold
|
|
497
|
+
const _arg = fold((tupledArg, field_1) => {
|
|
229
498
|
const curPath = tupledArg[0];
|
|
230
499
|
const curValue = tupledArg[1];
|
|
231
500
|
const res = tupledArg[2];
|
|
@@ -245,7 +514,7 @@ function at(fieldNames, decoder) {
|
|
|
245
514
|
return [curPath, curValue, res];
|
|
246
515
|
}
|
|
247
516
|
}, ["", firstValue, void 0], fieldNames);
|
|
248
|
-
return _arg[2] == null ? Result_MapError((tupledArg_1) => Helpers_prependPath(_arg[0], tupledArg_1[0], tupledArg_1[1]), decoder.Decode(helpers, _arg[1])) : value(_arg[2]);
|
|
517
|
+
return _arg[2] == null ? Result_MapError((tupledArg_1) => Helpers_prependPath(_arg[0], tupledArg_1[0], tupledArg_1[1]), decoder.Decode(helpers, _arg[1])) : value$1(_arg[2]);
|
|
249
518
|
}
|
|
250
519
|
};
|
|
251
520
|
}
|
|
@@ -284,7 +553,7 @@ function list(decoder) {
|
|
|
284
553
|
}
|
|
285
554
|
i = i + 1 | 0;
|
|
286
555
|
}
|
|
287
|
-
return error == null ? FSharpResult$2_Ok(result) : FSharpResult$2_Error(value(error));
|
|
556
|
+
return error == null ? FSharpResult$2_Ok(result) : FSharpResult$2_Error(value$1(error));
|
|
288
557
|
} else {
|
|
289
558
|
return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a list", value_1)]);
|
|
290
559
|
}
|
|
@@ -313,20 +582,48 @@ function resizeArray(decoder) {
|
|
|
313
582
|
}
|
|
314
583
|
i = i + 1 | 0;
|
|
315
584
|
}
|
|
316
|
-
return error == null ? FSharpResult$2_Ok(Array.from(result)) : FSharpResult$2_Error(value(error));
|
|
585
|
+
return error == null ? FSharpResult$2_Ok(Array.from(result)) : FSharpResult$2_Error(value$1(error));
|
|
317
586
|
} else {
|
|
318
587
|
return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a ResizeArray", value_1)]);
|
|
319
588
|
}
|
|
320
589
|
}
|
|
321
590
|
};
|
|
322
591
|
}
|
|
592
|
+
function seq(decoder) {
|
|
593
|
+
return {
|
|
594
|
+
Decode(helpers, value_1) {
|
|
595
|
+
if (helpers.isArray(value_1)) {
|
|
596
|
+
let i = -1;
|
|
597
|
+
return Result_Map(reverse, fold$1((acc, value_2) => {
|
|
598
|
+
let tupledArg;
|
|
599
|
+
i = i + 1 | 0;
|
|
600
|
+
if (acc.tag === /* Ok */
|
|
601
|
+
0) {
|
|
602
|
+
const acc_1 = acc.fields[0];
|
|
603
|
+
const matchValue = decoder.Decode(helpers, value_2);
|
|
604
|
+
if (matchValue.tag === /* Ok */
|
|
605
|
+
0) {
|
|
606
|
+
return FSharpResult$2_Ok(append$1([matchValue.fields[0]], acc_1));
|
|
607
|
+
} else {
|
|
608
|
+
return FSharpResult$2_Error((tupledArg = matchValue.fields[0], Helpers_prependPath(".[" + int32ToString(i) + "]", tupledArg[0], tupledArg[1])));
|
|
609
|
+
}
|
|
610
|
+
} else {
|
|
611
|
+
return acc;
|
|
612
|
+
}
|
|
613
|
+
}, FSharpResult$2_Ok([]), helpers.asArray(value_1)));
|
|
614
|
+
} else {
|
|
615
|
+
return FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("a seq", value_1)]);
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
};
|
|
619
|
+
}
|
|
323
620
|
function array(decoder) {
|
|
324
621
|
return {
|
|
325
622
|
Decode(helpers, value_1) {
|
|
326
623
|
if (helpers.isArray(value_1)) {
|
|
327
624
|
let i = -1;
|
|
328
625
|
const tokens = helpers.asArray(value_1);
|
|
329
|
-
return fold((acc, value_2) => {
|
|
626
|
+
return fold$1((acc, value_2) => {
|
|
330
627
|
let tupledArg;
|
|
331
628
|
i = i + 1 | 0;
|
|
332
629
|
if (acc.tag === /* Ok */
|
|
@@ -351,6 +648,35 @@ function array(decoder) {
|
|
|
351
648
|
}
|
|
352
649
|
};
|
|
353
650
|
}
|
|
651
|
+
const keys = {
|
|
652
|
+
Decode(helpers, value_1) {
|
|
653
|
+
return helpers.isObject(value_1) ? FSharpResult$2_Ok(ofSeq(helpers.getProperties(value_1))) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("an object", value_1)]);
|
|
654
|
+
}
|
|
655
|
+
};
|
|
656
|
+
function keyValuePairs(decoder) {
|
|
657
|
+
return {
|
|
658
|
+
Decode(helpers, value_1) {
|
|
659
|
+
const matchValue = keys.Decode(helpers, value_1);
|
|
660
|
+
return matchValue.tag === /* Error */
|
|
661
|
+
1 ? FSharpResult$2_Error(matchValue.fields[0]) : Result_Map(reverse$1, fold((acc, prop) => {
|
|
662
|
+
if (acc.tag === /* Ok */
|
|
663
|
+
0) {
|
|
664
|
+
const acc_1 = acc.fields[0];
|
|
665
|
+
const fieldValue = helpers.getProperty(prop, value_1);
|
|
666
|
+
const matchValue_1 = decoder.Decode(helpers, fieldValue);
|
|
667
|
+
if (matchValue_1.tag === /* Ok */
|
|
668
|
+
0) {
|
|
669
|
+
return FSharpResult$2_Ok(cons([prop, matchValue_1.fields[0]], acc_1));
|
|
670
|
+
} else {
|
|
671
|
+
return FSharpResult$2_Error(matchValue_1.fields[0]);
|
|
672
|
+
}
|
|
673
|
+
} else {
|
|
674
|
+
return acc;
|
|
675
|
+
}
|
|
676
|
+
}, FSharpResult$2_Ok(empty()), matchValue.fields[0]));
|
|
677
|
+
}
|
|
678
|
+
};
|
|
679
|
+
}
|
|
354
680
|
function oneOf(decoders) {
|
|
355
681
|
return {
|
|
356
682
|
Decode(helpers, value_1) {
|
|
@@ -371,12 +697,23 @@ function oneOf(decoders) {
|
|
|
371
697
|
return FSharpResult$2_Ok(matchValue.fields[0]);
|
|
372
698
|
}
|
|
373
699
|
}
|
|
700
|
+
break;
|
|
374
701
|
}
|
|
375
702
|
};
|
|
376
703
|
return runner(decoders, empty());
|
|
377
704
|
}
|
|
378
705
|
};
|
|
379
706
|
}
|
|
707
|
+
function nil(output) {
|
|
708
|
+
return {
|
|
709
|
+
Decode(helpers, value_1) {
|
|
710
|
+
return helpers.isNullValue(value_1) ? FSharpResult$2_Ok(output) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("null", value_1)]);
|
|
711
|
+
}
|
|
712
|
+
};
|
|
713
|
+
}
|
|
714
|
+
function value(_arg, v) {
|
|
715
|
+
return FSharpResult$2_Ok(v);
|
|
716
|
+
}
|
|
380
717
|
function succeed(output) {
|
|
381
718
|
return {
|
|
382
719
|
Decode(_arg, _arg_1) {
|
|
@@ -384,6 +721,13 @@ function succeed(output) {
|
|
|
384
721
|
}
|
|
385
722
|
};
|
|
386
723
|
}
|
|
724
|
+
function fail(msg) {
|
|
725
|
+
return {
|
|
726
|
+
Decode(_arg, _arg_1) {
|
|
727
|
+
return FSharpResult$2_Error(["", ErrorReason$1_FailMessage(msg)]);
|
|
728
|
+
}
|
|
729
|
+
};
|
|
730
|
+
}
|
|
387
731
|
function andThen(cb, decoder) {
|
|
388
732
|
return {
|
|
389
733
|
Decode(helpers, value_1) {
|
|
@@ -398,6 +742,33 @@ function andThen(cb, decoder) {
|
|
|
398
742
|
}
|
|
399
743
|
};
|
|
400
744
|
}
|
|
745
|
+
function all(decoders) {
|
|
746
|
+
return {
|
|
747
|
+
Decode(helpers, value_1) {
|
|
748
|
+
const runner = (decoders_1_mut, values_mut) => {
|
|
749
|
+
runner:
|
|
750
|
+
while (true) {
|
|
751
|
+
const decoders_1 = decoders_1_mut, values = values_mut;
|
|
752
|
+
if (isEmpty(decoders_1)) {
|
|
753
|
+
return FSharpResult$2_Ok(values);
|
|
754
|
+
} else {
|
|
755
|
+
const matchValue = head(decoders_1).Decode(helpers, value_1);
|
|
756
|
+
if (matchValue.tag === /* Error */
|
|
757
|
+
1) {
|
|
758
|
+
return FSharpResult$2_Error(matchValue.fields[0]);
|
|
759
|
+
} else {
|
|
760
|
+
decoders_1_mut = tail(decoders_1);
|
|
761
|
+
values_mut = append(values, singleton(matchValue.fields[0]));
|
|
762
|
+
continue runner;
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
break;
|
|
766
|
+
}
|
|
767
|
+
};
|
|
768
|
+
return runner(decoders, empty());
|
|
769
|
+
}
|
|
770
|
+
};
|
|
771
|
+
}
|
|
401
772
|
function map(ctor, d1) {
|
|
402
773
|
return {
|
|
403
774
|
Decode(helpers, value_1) {
|
|
@@ -407,6 +778,316 @@ function map(ctor, d1) {
|
|
|
407
778
|
}
|
|
408
779
|
};
|
|
409
780
|
}
|
|
781
|
+
function map3(ctor, d1, d2, d3) {
|
|
782
|
+
return {
|
|
783
|
+
Decode(helpers, value_1) {
|
|
784
|
+
let er_2, v1, v2, v3;
|
|
785
|
+
const matchValue = d1.Decode(helpers, value_1);
|
|
786
|
+
const matchValue_1 = d2.Decode(helpers, value_1);
|
|
787
|
+
const matchValue_2 = d3.Decode(helpers, value_1);
|
|
788
|
+
const copyOfStruct = matchValue;
|
|
789
|
+
if (copyOfStruct.tag === /* Error */
|
|
790
|
+
1) {
|
|
791
|
+
const er = copyOfStruct.fields[0];
|
|
792
|
+
return FSharpResult$2_Error(er);
|
|
793
|
+
} else {
|
|
794
|
+
const copyOfStruct_1 = matchValue_1;
|
|
795
|
+
if (copyOfStruct_1.tag === /* Error */
|
|
796
|
+
1) {
|
|
797
|
+
const er_1 = copyOfStruct_1.fields[0];
|
|
798
|
+
return FSharpResult$2_Error(er_1);
|
|
799
|
+
} else {
|
|
800
|
+
const copyOfStruct_2 = matchValue_2;
|
|
801
|
+
return copyOfStruct_2.tag === /* Error */
|
|
802
|
+
1 ? (er_2 = copyOfStruct_2.fields[0], FSharpResult$2_Error(er_2)) : (v1 = copyOfStruct.fields[0], v2 = copyOfStruct_1.fields[0], v3 = copyOfStruct_2.fields[0], FSharpResult$2_Ok(ctor(v1, v2, v3)));
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
};
|
|
807
|
+
}
|
|
808
|
+
function map4(ctor, d1, d2, d3, d4) {
|
|
809
|
+
return {
|
|
810
|
+
Decode(helpers, value_1) {
|
|
811
|
+
let er_3, v1, v2, v3, v4;
|
|
812
|
+
const matchValue = d1.Decode(helpers, value_1);
|
|
813
|
+
const matchValue_1 = d2.Decode(helpers, value_1);
|
|
814
|
+
const matchValue_2 = d3.Decode(helpers, value_1);
|
|
815
|
+
const matchValue_3 = d4.Decode(helpers, value_1);
|
|
816
|
+
const copyOfStruct = matchValue;
|
|
817
|
+
if (copyOfStruct.tag === /* Error */
|
|
818
|
+
1) {
|
|
819
|
+
const er = copyOfStruct.fields[0];
|
|
820
|
+
return FSharpResult$2_Error(er);
|
|
821
|
+
} else {
|
|
822
|
+
const copyOfStruct_1 = matchValue_1;
|
|
823
|
+
if (copyOfStruct_1.tag === /* Error */
|
|
824
|
+
1) {
|
|
825
|
+
const er_1 = copyOfStruct_1.fields[0];
|
|
826
|
+
return FSharpResult$2_Error(er_1);
|
|
827
|
+
} else {
|
|
828
|
+
const copyOfStruct_2 = matchValue_2;
|
|
829
|
+
if (copyOfStruct_2.tag === /* Error */
|
|
830
|
+
1) {
|
|
831
|
+
const er_2 = copyOfStruct_2.fields[0];
|
|
832
|
+
return FSharpResult$2_Error(er_2);
|
|
833
|
+
} else {
|
|
834
|
+
const copyOfStruct_3 = matchValue_3;
|
|
835
|
+
return copyOfStruct_3.tag === /* Error */
|
|
836
|
+
1 ? (er_3 = copyOfStruct_3.fields[0], FSharpResult$2_Error(er_3)) : (v1 = copyOfStruct.fields[0], v2 = copyOfStruct_1.fields[0], v3 = copyOfStruct_2.fields[0], v4 = copyOfStruct_3.fields[0], FSharpResult$2_Ok(ctor(v1, v2, v3, v4)));
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
};
|
|
842
|
+
}
|
|
843
|
+
function map5(ctor, d1, d2, d3, d4, d5) {
|
|
844
|
+
return {
|
|
845
|
+
Decode(helpers, value_1) {
|
|
846
|
+
let er_4, v1, v2, v3, v4, v5;
|
|
847
|
+
const matchValue = d1.Decode(helpers, value_1);
|
|
848
|
+
const matchValue_1 = d2.Decode(helpers, value_1);
|
|
849
|
+
const matchValue_2 = d3.Decode(helpers, value_1);
|
|
850
|
+
const matchValue_3 = d4.Decode(helpers, value_1);
|
|
851
|
+
const matchValue_4 = d5.Decode(helpers, value_1);
|
|
852
|
+
const copyOfStruct = matchValue;
|
|
853
|
+
if (copyOfStruct.tag === /* Error */
|
|
854
|
+
1) {
|
|
855
|
+
const er = copyOfStruct.fields[0];
|
|
856
|
+
return FSharpResult$2_Error(er);
|
|
857
|
+
} else {
|
|
858
|
+
const copyOfStruct_1 = matchValue_1;
|
|
859
|
+
if (copyOfStruct_1.tag === /* Error */
|
|
860
|
+
1) {
|
|
861
|
+
const er_1 = copyOfStruct_1.fields[0];
|
|
862
|
+
return FSharpResult$2_Error(er_1);
|
|
863
|
+
} else {
|
|
864
|
+
const copyOfStruct_2 = matchValue_2;
|
|
865
|
+
if (copyOfStruct_2.tag === /* Error */
|
|
866
|
+
1) {
|
|
867
|
+
const er_2 = copyOfStruct_2.fields[0];
|
|
868
|
+
return FSharpResult$2_Error(er_2);
|
|
869
|
+
} else {
|
|
870
|
+
const copyOfStruct_3 = matchValue_3;
|
|
871
|
+
if (copyOfStruct_3.tag === /* Error */
|
|
872
|
+
1) {
|
|
873
|
+
const er_3 = copyOfStruct_3.fields[0];
|
|
874
|
+
return FSharpResult$2_Error(er_3);
|
|
875
|
+
} else {
|
|
876
|
+
const copyOfStruct_4 = matchValue_4;
|
|
877
|
+
return copyOfStruct_4.tag === /* Error */
|
|
878
|
+
1 ? (er_4 = copyOfStruct_4.fields[0], FSharpResult$2_Error(er_4)) : (v1 = copyOfStruct.fields[0], v2 = copyOfStruct_1.fields[0], v3 = copyOfStruct_2.fields[0], v4 = copyOfStruct_3.fields[0], v5 = copyOfStruct_4.fields[0], FSharpResult$2_Ok(ctor(v1, v2, v3, v4, v5)));
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
};
|
|
885
|
+
}
|
|
886
|
+
function map6(ctor, d1, d2, d3, d4, d5, d6) {
|
|
887
|
+
return {
|
|
888
|
+
Decode(helpers, value_1) {
|
|
889
|
+
let er_5, v1, v2, v3, v4, v5, v6;
|
|
890
|
+
const matchValue = d1.Decode(helpers, value_1);
|
|
891
|
+
const matchValue_1 = d2.Decode(helpers, value_1);
|
|
892
|
+
const matchValue_2 = d3.Decode(helpers, value_1);
|
|
893
|
+
const matchValue_3 = d4.Decode(helpers, value_1);
|
|
894
|
+
const matchValue_4 = d5.Decode(helpers, value_1);
|
|
895
|
+
const matchValue_5 = d6.Decode(helpers, value_1);
|
|
896
|
+
const copyOfStruct = matchValue;
|
|
897
|
+
if (copyOfStruct.tag === /* Error */
|
|
898
|
+
1) {
|
|
899
|
+
const er = copyOfStruct.fields[0];
|
|
900
|
+
return FSharpResult$2_Error(er);
|
|
901
|
+
} else {
|
|
902
|
+
const copyOfStruct_1 = matchValue_1;
|
|
903
|
+
if (copyOfStruct_1.tag === /* Error */
|
|
904
|
+
1) {
|
|
905
|
+
const er_1 = copyOfStruct_1.fields[0];
|
|
906
|
+
return FSharpResult$2_Error(er_1);
|
|
907
|
+
} else {
|
|
908
|
+
const copyOfStruct_2 = matchValue_2;
|
|
909
|
+
if (copyOfStruct_2.tag === /* Error */
|
|
910
|
+
1) {
|
|
911
|
+
const er_2 = copyOfStruct_2.fields[0];
|
|
912
|
+
return FSharpResult$2_Error(er_2);
|
|
913
|
+
} else {
|
|
914
|
+
const copyOfStruct_3 = matchValue_3;
|
|
915
|
+
if (copyOfStruct_3.tag === /* Error */
|
|
916
|
+
1) {
|
|
917
|
+
const er_3 = copyOfStruct_3.fields[0];
|
|
918
|
+
return FSharpResult$2_Error(er_3);
|
|
919
|
+
} else {
|
|
920
|
+
const copyOfStruct_4 = matchValue_4;
|
|
921
|
+
if (copyOfStruct_4.tag === /* Error */
|
|
922
|
+
1) {
|
|
923
|
+
const er_4 = copyOfStruct_4.fields[0];
|
|
924
|
+
return FSharpResult$2_Error(er_4);
|
|
925
|
+
} else {
|
|
926
|
+
const copyOfStruct_5 = matchValue_5;
|
|
927
|
+
return copyOfStruct_5.tag === /* Error */
|
|
928
|
+
1 ? (er_5 = copyOfStruct_5.fields[0], FSharpResult$2_Error(er_5)) : (v1 = copyOfStruct.fields[0], v2 = copyOfStruct_1.fields[0], v3 = copyOfStruct_2.fields[0], v4 = copyOfStruct_3.fields[0], v5 = copyOfStruct_4.fields[0], v6 = copyOfStruct_5.fields[0], FSharpResult$2_Ok(ctor(v1, v2, v3, v4, v5, v6)));
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
};
|
|
936
|
+
}
|
|
937
|
+
function map7(ctor, d1, d2, d3, d4, d5, d6, d7) {
|
|
938
|
+
return {
|
|
939
|
+
Decode(helpers, value_1) {
|
|
940
|
+
let er_6, v1, v2, v3, v4, v5, v6, v7;
|
|
941
|
+
const matchValue = d1.Decode(helpers, value_1);
|
|
942
|
+
const matchValue_1 = d2.Decode(helpers, value_1);
|
|
943
|
+
const matchValue_2 = d3.Decode(helpers, value_1);
|
|
944
|
+
const matchValue_3 = d4.Decode(helpers, value_1);
|
|
945
|
+
const matchValue_4 = d5.Decode(helpers, value_1);
|
|
946
|
+
const matchValue_5 = d6.Decode(helpers, value_1);
|
|
947
|
+
const matchValue_6 = d7.Decode(helpers, value_1);
|
|
948
|
+
const copyOfStruct = matchValue;
|
|
949
|
+
if (copyOfStruct.tag === /* Error */
|
|
950
|
+
1) {
|
|
951
|
+
const er = copyOfStruct.fields[0];
|
|
952
|
+
return FSharpResult$2_Error(er);
|
|
953
|
+
} else {
|
|
954
|
+
const copyOfStruct_1 = matchValue_1;
|
|
955
|
+
if (copyOfStruct_1.tag === /* Error */
|
|
956
|
+
1) {
|
|
957
|
+
const er_1 = copyOfStruct_1.fields[0];
|
|
958
|
+
return FSharpResult$2_Error(er_1);
|
|
959
|
+
} else {
|
|
960
|
+
const copyOfStruct_2 = matchValue_2;
|
|
961
|
+
if (copyOfStruct_2.tag === /* Error */
|
|
962
|
+
1) {
|
|
963
|
+
const er_2 = copyOfStruct_2.fields[0];
|
|
964
|
+
return FSharpResult$2_Error(er_2);
|
|
965
|
+
} else {
|
|
966
|
+
const copyOfStruct_3 = matchValue_3;
|
|
967
|
+
if (copyOfStruct_3.tag === /* Error */
|
|
968
|
+
1) {
|
|
969
|
+
const er_3 = copyOfStruct_3.fields[0];
|
|
970
|
+
return FSharpResult$2_Error(er_3);
|
|
971
|
+
} else {
|
|
972
|
+
const copyOfStruct_4 = matchValue_4;
|
|
973
|
+
if (copyOfStruct_4.tag === /* Error */
|
|
974
|
+
1) {
|
|
975
|
+
const er_4 = copyOfStruct_4.fields[0];
|
|
976
|
+
return FSharpResult$2_Error(er_4);
|
|
977
|
+
} else {
|
|
978
|
+
const copyOfStruct_5 = matchValue_5;
|
|
979
|
+
if (copyOfStruct_5.tag === /* Error */
|
|
980
|
+
1) {
|
|
981
|
+
const er_5 = copyOfStruct_5.fields[0];
|
|
982
|
+
return FSharpResult$2_Error(er_5);
|
|
983
|
+
} else {
|
|
984
|
+
const copyOfStruct_6 = matchValue_6;
|
|
985
|
+
return copyOfStruct_6.tag === /* Error */
|
|
986
|
+
1 ? (er_6 = copyOfStruct_6.fields[0], FSharpResult$2_Error(er_6)) : (v1 = copyOfStruct.fields[0], v2 = copyOfStruct_1.fields[0], v3 = copyOfStruct_2.fields[0], v4 = copyOfStruct_3.fields[0], v5 = copyOfStruct_4.fields[0], v6 = copyOfStruct_5.fields[0], v7 = copyOfStruct_6.fields[0], FSharpResult$2_Ok(ctor(v1, v2, v3, v4, v5, v6, v7)));
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
};
|
|
995
|
+
}
|
|
996
|
+
function map8(ctor, d1, d2, d3, d4, d5, d6, d7, d8) {
|
|
997
|
+
return {
|
|
998
|
+
Decode(helpers, value_1) {
|
|
999
|
+
let er_7, v1, v2, v3, v4, v5, v6, v7, v8;
|
|
1000
|
+
const matchValue = d1.Decode(helpers, value_1);
|
|
1001
|
+
const matchValue_1 = d2.Decode(helpers, value_1);
|
|
1002
|
+
const matchValue_2 = d3.Decode(helpers, value_1);
|
|
1003
|
+
const matchValue_3 = d4.Decode(helpers, value_1);
|
|
1004
|
+
const matchValue_4 = d5.Decode(helpers, value_1);
|
|
1005
|
+
const matchValue_5 = d6.Decode(helpers, value_1);
|
|
1006
|
+
const matchValue_6 = d7.Decode(helpers, value_1);
|
|
1007
|
+
const matchValue_7 = d8.Decode(helpers, value_1);
|
|
1008
|
+
const copyOfStruct = matchValue;
|
|
1009
|
+
if (copyOfStruct.tag === /* Error */
|
|
1010
|
+
1) {
|
|
1011
|
+
const er = copyOfStruct.fields[0];
|
|
1012
|
+
return FSharpResult$2_Error(er);
|
|
1013
|
+
} else {
|
|
1014
|
+
const copyOfStruct_1 = matchValue_1;
|
|
1015
|
+
if (copyOfStruct_1.tag === /* Error */
|
|
1016
|
+
1) {
|
|
1017
|
+
const er_1 = copyOfStruct_1.fields[0];
|
|
1018
|
+
return FSharpResult$2_Error(er_1);
|
|
1019
|
+
} else {
|
|
1020
|
+
const copyOfStruct_2 = matchValue_2;
|
|
1021
|
+
if (copyOfStruct_2.tag === /* Error */
|
|
1022
|
+
1) {
|
|
1023
|
+
const er_2 = copyOfStruct_2.fields[0];
|
|
1024
|
+
return FSharpResult$2_Error(er_2);
|
|
1025
|
+
} else {
|
|
1026
|
+
const copyOfStruct_3 = matchValue_3;
|
|
1027
|
+
if (copyOfStruct_3.tag === /* Error */
|
|
1028
|
+
1) {
|
|
1029
|
+
const er_3 = copyOfStruct_3.fields[0];
|
|
1030
|
+
return FSharpResult$2_Error(er_3);
|
|
1031
|
+
} else {
|
|
1032
|
+
const copyOfStruct_4 = matchValue_4;
|
|
1033
|
+
if (copyOfStruct_4.tag === /* Error */
|
|
1034
|
+
1) {
|
|
1035
|
+
const er_4 = copyOfStruct_4.fields[0];
|
|
1036
|
+
return FSharpResult$2_Error(er_4);
|
|
1037
|
+
} else {
|
|
1038
|
+
const copyOfStruct_5 = matchValue_5;
|
|
1039
|
+
if (copyOfStruct_5.tag === /* Error */
|
|
1040
|
+
1) {
|
|
1041
|
+
const er_5 = copyOfStruct_5.fields[0];
|
|
1042
|
+
return FSharpResult$2_Error(er_5);
|
|
1043
|
+
} else {
|
|
1044
|
+
const copyOfStruct_6 = matchValue_6;
|
|
1045
|
+
if (copyOfStruct_6.tag === /* Error */
|
|
1046
|
+
1) {
|
|
1047
|
+
const er_6 = copyOfStruct_6.fields[0];
|
|
1048
|
+
return FSharpResult$2_Error(er_6);
|
|
1049
|
+
} else {
|
|
1050
|
+
const copyOfStruct_7 = matchValue_7;
|
|
1051
|
+
return copyOfStruct_7.tag === /* Error */
|
|
1052
|
+
1 ? (er_7 = copyOfStruct_7.fields[0], FSharpResult$2_Error(er_7)) : (v1 = copyOfStruct.fields[0], v2 = copyOfStruct_1.fields[0], v3 = copyOfStruct_2.fields[0], v4 = copyOfStruct_3.fields[0], v5 = copyOfStruct_4.fields[0], v6 = copyOfStruct_5.fields[0], v7 = copyOfStruct_6.fields[0], v8 = copyOfStruct_7.fields[0], FSharpResult$2_Ok(ctor(v1, v2, v3, v4, v5, v6, v7, v8)));
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
};
|
|
1062
|
+
}
|
|
1063
|
+
function lossyOption(decoder) {
|
|
1064
|
+
return {
|
|
1065
|
+
Decode(helpers, value_1) {
|
|
1066
|
+
return helpers.isNullValue(value_1) ? FSharpResult$2_Ok(void 0) : Result_Map(some, decoder.Decode(helpers, value_1));
|
|
1067
|
+
}
|
|
1068
|
+
};
|
|
1069
|
+
}
|
|
1070
|
+
function losslessOption(decoder) {
|
|
1071
|
+
return andThen((typeName) => {
|
|
1072
|
+
if (typeName === "option") {
|
|
1073
|
+
return andThen((state) => {
|
|
1074
|
+
switch (state) {
|
|
1075
|
+
case "none":
|
|
1076
|
+
return succeed(void 0);
|
|
1077
|
+
case "some":
|
|
1078
|
+
return map(some, field("$value", decoder));
|
|
1079
|
+
default:
|
|
1080
|
+
return fail("Expecting a state field with value 'none' or 'some' but got " + state);
|
|
1081
|
+
}
|
|
1082
|
+
}, field("$case", string));
|
|
1083
|
+
} else {
|
|
1084
|
+
return fail("Expecting an Option type but got " + typeName);
|
|
1085
|
+
}
|
|
1086
|
+
}, field("$type", string));
|
|
1087
|
+
}
|
|
1088
|
+
function andMap() {
|
|
1089
|
+
return (d) => (d_1) => map2((arg, func) => func(arg), d, d_1);
|
|
1090
|
+
}
|
|
410
1091
|
function unwrapWith(errors, helpers, decoder, value_1) {
|
|
411
1092
|
const matchValue = decoder.Decode(helpers, value_1);
|
|
412
1093
|
if (matchValue.tag === /* Error */
|
|
@@ -511,6 +1192,9 @@ class Getters$2 {
|
|
|
511
1192
|
return __.optional;
|
|
512
1193
|
}
|
|
513
1194
|
}
|
|
1195
|
+
function Getters$2_$reflection(gen0, gen1) {
|
|
1196
|
+
return class_type("Thoth.Json.Core.Decode.Getters`2", [gen0, gen1], Getters$2);
|
|
1197
|
+
}
|
|
514
1198
|
function Getters$2_$ctor_Z4BE6C149(helpers, value_1) {
|
|
515
1199
|
return new Getters$2(helpers, value_1);
|
|
516
1200
|
}
|
|
@@ -535,10 +1219,33 @@ function object(builder) {
|
|
|
535
1219
|
function tuple2(decoder1, decoder2) {
|
|
536
1220
|
return andThen((v1) => andThen((v2) => succeed([v1, v2]), index(1, decoder2)), index(0, decoder1));
|
|
537
1221
|
}
|
|
1222
|
+
function tuple3(decoder1, decoder2, decoder3) {
|
|
1223
|
+
return andThen((v1) => andThen((v2) => andThen((v3) => succeed([v1, v2, v3]), index(2, decoder3)), index(1, decoder2)), index(0, decoder1));
|
|
1224
|
+
}
|
|
1225
|
+
function tuple4(decoder1, decoder2, decoder3, decoder4) {
|
|
1226
|
+
return andThen((v1) => andThen((v2) => andThen((v3) => andThen((v4) => succeed([v1, v2, v3, v4]), index(3, decoder4)), index(2, decoder3)), index(1, decoder2)), index(0, decoder1));
|
|
1227
|
+
}
|
|
1228
|
+
function tuple5(decoder1, decoder2, decoder3, decoder4, decoder5) {
|
|
1229
|
+
return andThen((v1) => andThen((v2) => andThen((v3) => andThen((v4) => andThen((v5) => succeed([v1, v2, v3, v4, v5]), index(4, decoder5)), index(3, decoder4)), index(2, decoder3)), index(1, decoder2)), index(0, decoder1));
|
|
1230
|
+
}
|
|
1231
|
+
function tuple6(decoder1, decoder2, decoder3, decoder4, decoder5, decoder6) {
|
|
1232
|
+
return andThen((v1) => andThen((v2) => andThen((v3) => andThen((v4) => andThen((v5) => andThen((v6) => succeed([v1, v2, v3, v4, v5, v6]), index(5, decoder6)), index(4, decoder5)), index(3, decoder4)), index(2, decoder3)), index(1, decoder2)), index(0, decoder1));
|
|
1233
|
+
}
|
|
1234
|
+
function tuple7(decoder1, decoder2, decoder3, decoder4, decoder5, decoder6, decoder7) {
|
|
1235
|
+
return andThen((v1) => andThen((v2) => andThen((v3) => andThen((v4) => andThen((v5) => andThen((v6) => andThen((v7) => succeed([v1, v2, v3, v4, v5, v6, v7]), index(6, decoder7)), index(5, decoder6)), index(4, decoder5)), index(3, decoder4)), index(2, decoder3)), index(1, decoder2)), index(0, decoder1));
|
|
1236
|
+
}
|
|
1237
|
+
function tuple8(decoder1, decoder2, decoder3, decoder4, decoder5, decoder6, decoder7, decoder8) {
|
|
1238
|
+
return andThen((v1) => andThen((v2) => andThen((v3) => andThen((v4) => andThen((v5) => andThen((v6) => andThen((v7) => andThen((v8) => succeed([v1, v2, v3, v4, v5, v6, v7, v8]), index(7, decoder8)), index(6, decoder7)), index(5, decoder6)), index(4, decoder5)), index(3, decoder4)), index(2, decoder3)), index(1, decoder2)), index(0, decoder1));
|
|
1239
|
+
}
|
|
1240
|
+
function dict(decoder) {
|
|
1241
|
+
return map((elements) => ofList(elements, {
|
|
1242
|
+
Compare: comparePrimitives
|
|
1243
|
+
}), keyValuePairs(decoder));
|
|
1244
|
+
}
|
|
538
1245
|
function map$0027(keyDecoder, valueDecoder) {
|
|
539
|
-
return map((elements) => ofSeq(elements, {
|
|
1246
|
+
return map((elements) => ofSeq$1(elements, {
|
|
540
1247
|
Compare: compare
|
|
541
1248
|
}), array(tuple2(keyDecoder, valueDecoder)));
|
|
542
1249
|
}
|
|
543
1250
|
|
|
544
|
-
export { Getters$2, Getters$2_$ctor_Z4BE6C149, Getters$2__get_Errors, Helpers_prependPath, andThen, array, at, bool, decimal, errorToString, field, float, guid, index, int, list, map, map$0027, object, oneOf, optional, optionalAt, resizeArray, string, succeed, tuple2, unit };
|
|
1251
|
+
export { Advanced_fromValue, Getters$2, Getters$2_$ctor_Z4BE6C149, Getters$2_$reflection, Getters$2__get_Errors, Helpers_prependPath, all, andMap, andThen, array, at, bigint, bool, byte, char, datetimeLocal, datetimeOffset, datetimeUtc, decimal, dict, errorToString, fail, field, float, float32, guid, index, int, int16, int64, keyValuePairs, keys, list, losslessOption, lossyOption, map, map$0027, map2, map3, map4, map5, map6, map7, map8, nil, object, oneOf, optional, optionalAt, resizeArray, sbyte, seq, string, succeed, timespan, tuple2, tuple3, tuple4, tuple5, tuple6, tuple7, tuple8, uint16, uint32, uint64, unit, value };
|