@f1studio/form-spec 5.0.0-alpha.128 → 5.0.0-alpha.130

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.d.ts.map +1 -1
  2. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.d.ts +1 -1
  3. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.d.ts.map +1 -1
  4. package/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.d.ts +1 -1
  5. package/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.d.ts.map +1 -1
  6. package/FormSpec.FS/Interop/FormSpec.Api.Helpers.d.ts +3 -3
  7. package/FormSpec.FS/Interop/FormSpec.Api.Helpers.d.ts.map +1 -1
  8. package/FormSpec.FS/Interop/FormSpec.Api.Option.d.ts.map +1 -1
  9. package/FormSpec.FS/Interop/FormSpec.Values.Api.Option.d.ts.map +1 -1
  10. package/FormSpec.FS/Migrator.d.ts.map +1 -1
  11. package/FormSpec.TS/FormSpec.FS/BlueprintValidation.js +2 -2
  12. package/FormSpec.TS/FormSpec.FS/BlueprintValidation.js.map +1 -1
  13. package/FormSpec.TS/FormSpec.FS/BlueprintValidation.ts.map +1 -1
  14. package/FormSpec.TS/FormSpec.FS/FormSpecHelpers.js +2 -2
  15. package/FormSpec.TS/FormSpec.FS/FormSpecHelpers.js.map +1 -1
  16. package/FormSpec.TS/FormSpec.FS/FormSpecHelpers.ts.map +1 -1
  17. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.js +2 -2
  18. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.js.map +1 -1
  19. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.ts.map +1 -1
  20. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.js +31 -20
  21. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.js.map +1 -1
  22. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.ts.map +1 -1
  23. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.js +20 -20
  24. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.js.map +1 -1
  25. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.ts.map +1 -1
  26. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/FormSpecToCoreMRInsert.js +21 -21
  27. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/FormSpecToCoreMRInsert.js.map +1 -1
  28. package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.js +109 -41
  29. package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.js.map +1 -1
  30. package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.ts.map +1 -1
  31. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Helpers.js +218 -53
  32. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Helpers.js.map +1 -1
  33. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Helpers.ts.map +1 -1
  34. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Option.js +15 -8
  35. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Option.js.map +1 -1
  36. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Option.ts.map +1 -1
  37. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Values.Api.Option.js +18 -12
  38. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Values.Api.Option.js.map +1 -1
  39. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Values.Api.Option.ts.map +1 -1
  40. package/FormSpec.TS/FormSpec.FS/Migrator.js +4 -2
  41. package/FormSpec.TS/FormSpec.FS/Migrator.js.map +1 -1
  42. package/FormSpec.TS/FormSpec.FS/Migrator.ts.map +1 -1
  43. package/FormSpec.TS/FormSpec.FS/PathwayExecutor.js +4 -4
  44. package/FormSpec.TS/FormSpec.FS/PathwayExecutor.js.map +1 -1
  45. package/FormSpec.TS/FormSpec.FS/PathwayExecutor.ts.map +1 -1
  46. package/FormSpec.TS/{fable_modules/Thoth.Json.10.4.1/Decode.fs.js → Thoth.Json/packages/Thoth.Json/Decode.js} +120 -113
  47. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Decode.js.map +1 -0
  48. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Decode.ts.map +1 -0
  49. package/FormSpec.TS/{fable_modules/Thoth.Json.10.4.1/Encode.fs.js → Thoth.Json/packages/Thoth.Json/Encode.js} +7 -7
  50. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Encode.js.map +1 -0
  51. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Encode.ts.map +1 -0
  52. package/FormSpec.TS/{fable_modules/Thoth.Json.10.4.1/Extra.fs.js → Thoth.Json/packages/Thoth.Json/Extra.js} +4 -4
  53. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Extra.js.map +1 -0
  54. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Extra.ts.map +1 -0
  55. package/FormSpec.TS/{fable_modules/Thoth.Json.10.4.1/Types.fs.js → Thoth.Json/packages/Thoth.Json/Types.js} +2 -2
  56. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Types.js.map +1 -0
  57. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Types.ts.map +1 -0
  58. package/FormSpec.TS/fable_modules/project_cracked.json +1 -1
  59. package/README.md +7 -7
  60. package/{fable_modules/Thoth.Json.10.4.1/Decode.fs.d.ts → Thoth.Json/packages/Thoth.Json/Decode.d.ts} +2 -2
  61. package/Thoth.Json/packages/Thoth.Json/Decode.d.ts.map +1 -0
  62. package/{fable_modules/Thoth.Json.10.4.1/Encode.fs.d.ts → Thoth.Json/packages/Thoth.Json/Encode.d.ts} +2 -2
  63. package/Thoth.Json/packages/Thoth.Json/Encode.d.ts.map +1 -0
  64. package/Thoth.Json/packages/Thoth.Json/Extra.d.ts +3 -0
  65. package/Thoth.Json/packages/Thoth.Json/Extra.d.ts.map +1 -0
  66. package/{fable_modules/Thoth.Json.10.4.1/Types.fs.d.ts → Thoth.Json/packages/Thoth.Json/Types.d.ts} +1 -1
  67. package/Thoth.Json/packages/Thoth.Json/Types.d.ts.map +1 -0
  68. package/package.json +1 -1
  69. package/src/FormSpec.FS/BlueprintValidation.ts +1 -1
  70. package/src/FormSpec.FS/FormSpecHelpers.ts +1 -1
  71. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.ts +1 -1
  72. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.ts +29 -18
  73. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.ts +4 -4
  74. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/FormSpecToCoreMRInsert.ts +3 -3
  75. package/src/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.ts +100 -17
  76. package/src/FormSpec.FS/Interop/FormSpec.Api.Helpers.ts +191 -64
  77. package/src/FormSpec.FS/Interop/FormSpec.Api.Option.ts +14 -7
  78. package/src/FormSpec.FS/Interop/FormSpec.Values.Api.Option.ts +17 -11
  79. package/src/FormSpec.FS/Migrator.ts +4 -2
  80. package/src/FormSpec.FS/PathwayExecutor.ts +1 -1
  81. package/src/Thoth.Json/packages/Thoth.Json/Decode.ts +1940 -0
  82. package/src/Thoth.Json/packages/Thoth.Json/Encode.ts +475 -0
  83. package/src/Thoth.Json/packages/Thoth.Json/Extra.ts +11 -0
  84. package/src/Thoth.Json/packages/Thoth.Json/Types.ts +176 -0
  85. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Decode.fs +0 -1768
  86. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Decode.fs.js.map +0 -1
  87. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Decode.fs.ts.map +0 -1
  88. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs +0 -811
  89. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.js.map +0 -1
  90. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.ts.map +0 -1
  91. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Extra.fs +0 -47
  92. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Extra.fs.js.map +0 -1
  93. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Extra.fs.ts.map +0 -1
  94. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Thoth.Json.fableproj +0 -34
  95. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Types.fs +0 -68
  96. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Types.fs.js.map +0 -1
  97. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Types.fs.ts.map +0 -1
  98. package/fable_modules/Thoth.Json.10.4.1/Decode.fs.d.ts.map +0 -1
  99. package/fable_modules/Thoth.Json.10.4.1/Encode.fs.d.ts.map +0 -1
  100. package/fable_modules/Thoth.Json.10.4.1/Extra.fs.d.ts +0 -3
  101. package/fable_modules/Thoth.Json.10.4.1/Extra.fs.d.ts.map +0 -1
  102. package/fable_modules/Thoth.Json.10.4.1/Types.fs.d.ts.map +0 -1
@@ -230,10 +230,10 @@ _export(exports, {
230
230
  }
231
231
  });
232
232
  const _String = require("@fable-org/fable-library-js/String.js");
233
- const _Typesfs = require("./Types.fs.js");
233
+ const _Types = require("./Types.js");
234
234
  const _Result = require("@fable-org/fable-library-js/Result.js");
235
235
  const _Guid = require("@fable-org/fable-library-js/Guid.js");
236
- const _Types = require("@fable-org/fable-library-js/Types.js");
236
+ const _Types1 = require("@fable-org/fable-library-js/Types.js");
237
237
  const _Int32 = require("@fable-org/fable-library-js/Int32.js");
238
238
  const _BigInt = require("@fable-org/fable-library-js/BigInt.js");
239
239
  const _Long = require("@fable-org/fable-library-js/Long.js");
@@ -290,6 +290,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
290
290
  }
291
291
  return newObj;
292
292
  }
293
+ throw new Error("🚀 LIBERATION FORK CONFIRMED: Thoth.Json.Decode module loaded from liberation fork!");
293
294
  function Helpers_isUndefined(o) {
294
295
  return typeof o === "undefined";
295
296
  }
@@ -392,7 +393,7 @@ function string(path, value_1) {
392
393
  } else {
393
394
  return (0, _Result.FSharpResult$2_Error)([
394
395
  path,
395
- (0, _Typesfs.ErrorReason_BadPrimitive)("a string", value_1)
396
+ (0, _Types.ErrorReason_BadPrimitive)("a string", value_1)
396
397
  ]);
397
398
  }
398
399
  }
@@ -404,13 +405,13 @@ function char(path, value_1) {
404
405
  } else {
405
406
  return (0, _Result.FSharpResult$2_Error)([
406
407
  path,
407
- (0, _Typesfs.ErrorReason_BadPrimitive)("a single character string", value_1)
408
+ (0, _Types.ErrorReason_BadPrimitive)("a single character string", value_1)
408
409
  ]);
409
410
  }
410
411
  } else {
411
412
  return (0, _Result.FSharpResult$2_Error)([
412
413
  path,
413
- (0, _Typesfs.ErrorReason_BadPrimitive)("a char", value_1)
414
+ (0, _Types.ErrorReason_BadPrimitive)("a char", value_1)
414
415
  ]);
415
416
  }
416
417
  }
@@ -419,7 +420,7 @@ function guid(path, value_1) {
419
420
  let matchValue;
420
421
  let outArg = "00000000-0000-0000-0000-000000000000";
421
422
  matchValue = [
422
- (0, _Guid.tryParse)(value_1, new _Types.FSharpRef(()=>outArg, (v)=>{
423
+ (0, _Guid.tryParse)(value_1, new _Types1.FSharpRef(()=>outArg, (v)=>{
423
424
  outArg = v;
424
425
  })),
425
426
  outArg
@@ -429,13 +430,13 @@ function guid(path, value_1) {
429
430
  } else {
430
431
  return (0, _Result.FSharpResult$2_Error)([
431
432
  path,
432
- (0, _Typesfs.ErrorReason_BadPrimitive)("a guid", value_1)
433
+ (0, _Types.ErrorReason_BadPrimitive)("a guid", value_1)
433
434
  ]);
434
435
  }
435
436
  } else {
436
437
  return (0, _Result.FSharpResult$2_Error)([
437
438
  path,
438
- (0, _Typesfs.ErrorReason_BadPrimitive)("a guid", value_1)
439
+ (0, _Types.ErrorReason_BadPrimitive)("a guid", value_1)
439
440
  ]);
440
441
  }
441
442
  }
@@ -445,7 +446,7 @@ function unit(path, value_1) {
445
446
  } else {
446
447
  return (0, _Result.FSharpResult$2_Error)([
447
448
  path,
448
- (0, _Typesfs.ErrorReason_BadPrimitive)("null", value_1)
449
+ (0, _Types.ErrorReason_BadPrimitive)("null", value_1)
449
450
  ]);
450
451
  }
451
452
  }
@@ -456,28 +457,28 @@ const sbyte = (path)=>(value_2)=>{
456
457
  const value_1_1 = value_3;
457
458
  return isFinite(value_1_1) && Math.floor(value_1_1) === value_1_1 ? -128 <= value_1_1 && value_1_1 <= 127 ? (0, _Result.FSharpResult$2_Ok)((value_1_1 + 0x80 & 0xFF) - 0x80) : (0, _Result.FSharpResult$2_Error)([
458
459
  path_1,
459
- (0, _Typesfs.ErrorReason_BadPrimitiveExtra)("a sbyte", value_1_1, "Value was either too large or too small for a sbyte")
460
+ (0, _Types.ErrorReason_BadPrimitiveExtra)("a sbyte", value_1_1, "Value was either too large or too small for a sbyte")
460
461
  ]) : (0, _Result.FSharpResult$2_Error)([
461
462
  path_1,
462
- (0, _Typesfs.ErrorReason_BadPrimitiveExtra)("a sbyte", value_1_1, "Value is not an integral value")
463
+ (0, _Types.ErrorReason_BadPrimitiveExtra)("a sbyte", value_1_1, "Value is not an integral value")
463
464
  ]);
464
465
  } else if (typeof value_3 === "string") {
465
466
  let matchValue;
466
467
  let outArg = 0;
467
468
  matchValue = [
468
- (0, _Int32.tryParse)(value_3, 511, false, 8, new _Types.FSharpRef(()=>outArg, (v)=>{
469
+ (0, _Int32.tryParse)(value_3, 511, false, 8, new _Types1.FSharpRef(()=>outArg, (v)=>{
469
470
  outArg = v | 0;
470
471
  })),
471
472
  outArg
472
473
  ];
473
474
  return matchValue[0] ? (0, _Result.FSharpResult$2_Ok)(matchValue[1]) : (0, _Result.FSharpResult$2_Error)([
474
475
  path_1,
475
- (0, _Typesfs.ErrorReason_BadPrimitive)("a sbyte", value_3)
476
+ (0, _Types.ErrorReason_BadPrimitive)("a sbyte", value_3)
476
477
  ]);
477
478
  } else {
478
479
  return (0, _Result.FSharpResult$2_Error)([
479
480
  path_1,
480
- (0, _Typesfs.ErrorReason_BadPrimitive)("a sbyte", value_3)
481
+ (0, _Types.ErrorReason_BadPrimitive)("a sbyte", value_3)
481
482
  ]);
482
483
  }
483
484
  };
@@ -488,28 +489,28 @@ const byte = (path)=>(value_2)=>{
488
489
  const value_1_1 = value_3;
489
490
  return isFinite(value_1_1) && Math.floor(value_1_1) === value_1_1 ? 0 <= value_1_1 && value_1_1 <= 255 ? (0, _Result.FSharpResult$2_Ok)(value_1_1 & 0xFF) : (0, _Result.FSharpResult$2_Error)([
490
491
  path_1,
491
- (0, _Typesfs.ErrorReason_BadPrimitiveExtra)("a byte", value_1_1, "Value was either too large or too small for a byte")
492
+ (0, _Types.ErrorReason_BadPrimitiveExtra)("a byte", value_1_1, "Value was either too large or too small for a byte")
492
493
  ]) : (0, _Result.FSharpResult$2_Error)([
493
494
  path_1,
494
- (0, _Typesfs.ErrorReason_BadPrimitiveExtra)("a byte", value_1_1, "Value is not an integral value")
495
+ (0, _Types.ErrorReason_BadPrimitiveExtra)("a byte", value_1_1, "Value is not an integral value")
495
496
  ]);
496
497
  } else if (typeof value_3 === "string") {
497
498
  let matchValue;
498
499
  let outArg = 0;
499
500
  matchValue = [
500
- (0, _Int32.tryParse)(value_3, 511, true, 8, new _Types.FSharpRef(()=>outArg, (v)=>{
501
+ (0, _Int32.tryParse)(value_3, 511, true, 8, new _Types1.FSharpRef(()=>outArg, (v)=>{
501
502
  outArg = v;
502
503
  })),
503
504
  outArg
504
505
  ];
505
506
  return matchValue[0] ? (0, _Result.FSharpResult$2_Ok)(matchValue[1]) : (0, _Result.FSharpResult$2_Error)([
506
507
  path_1,
507
- (0, _Typesfs.ErrorReason_BadPrimitive)("a byte", value_3)
508
+ (0, _Types.ErrorReason_BadPrimitive)("a byte", value_3)
508
509
  ]);
509
510
  } else {
510
511
  return (0, _Result.FSharpResult$2_Error)([
511
512
  path_1,
512
- (0, _Typesfs.ErrorReason_BadPrimitive)("a byte", value_3)
513
+ (0, _Types.ErrorReason_BadPrimitive)("a byte", value_3)
513
514
  ]);
514
515
  }
515
516
  };
@@ -520,28 +521,28 @@ const int16 = (path)=>(value_2)=>{
520
521
  const value_1_1 = value_3;
521
522
  return isFinite(value_1_1) && Math.floor(value_1_1) === value_1_1 ? -32768 <= value_1_1 && value_1_1 <= 32767 ? (0, _Result.FSharpResult$2_Ok)((value_1_1 + 0x8000 & 0xFFFF) - 0x8000) : (0, _Result.FSharpResult$2_Error)([
522
523
  path_1,
523
- (0, _Typesfs.ErrorReason_BadPrimitiveExtra)("an int16", value_1_1, "Value was either too large or too small for an int16")
524
+ (0, _Types.ErrorReason_BadPrimitiveExtra)("an int16", value_1_1, "Value was either too large or too small for an int16")
524
525
  ]) : (0, _Result.FSharpResult$2_Error)([
525
526
  path_1,
526
- (0, _Typesfs.ErrorReason_BadPrimitiveExtra)("an int16", value_1_1, "Value is not an integral value")
527
+ (0, _Types.ErrorReason_BadPrimitiveExtra)("an int16", value_1_1, "Value is not an integral value")
527
528
  ]);
528
529
  } else if (typeof value_3 === "string") {
529
530
  let matchValue;
530
531
  let outArg = 0;
531
532
  matchValue = [
532
- (0, _Int32.tryParse)(value_3, 511, false, 16, new _Types.FSharpRef(()=>outArg, (v)=>{
533
+ (0, _Int32.tryParse)(value_3, 511, false, 16, new _Types1.FSharpRef(()=>outArg, (v)=>{
533
534
  outArg = v | 0;
534
535
  })),
535
536
  outArg
536
537
  ];
537
538
  return matchValue[0] ? (0, _Result.FSharpResult$2_Ok)(matchValue[1]) : (0, _Result.FSharpResult$2_Error)([
538
539
  path_1,
539
- (0, _Typesfs.ErrorReason_BadPrimitive)("an int16", value_3)
540
+ (0, _Types.ErrorReason_BadPrimitive)("an int16", value_3)
540
541
  ]);
541
542
  } else {
542
543
  return (0, _Result.FSharpResult$2_Error)([
543
544
  path_1,
544
- (0, _Typesfs.ErrorReason_BadPrimitive)("an int16", value_3)
545
+ (0, _Types.ErrorReason_BadPrimitive)("an int16", value_3)
545
546
  ]);
546
547
  }
547
548
  };
@@ -552,28 +553,28 @@ const uint16 = (path)=>(value_2)=>{
552
553
  const value_1_1 = value_3;
553
554
  return isFinite(value_1_1) && Math.floor(value_1_1) === value_1_1 ? 0 <= value_1_1 && value_1_1 <= 65535 ? (0, _Result.FSharpResult$2_Ok)(value_1_1 & 0xFFFF) : (0, _Result.FSharpResult$2_Error)([
554
555
  path_1,
555
- (0, _Typesfs.ErrorReason_BadPrimitiveExtra)("an uint16", value_1_1, "Value was either too large or too small for an uint16")
556
+ (0, _Types.ErrorReason_BadPrimitiveExtra)("an uint16", value_1_1, "Value was either too large or too small for an uint16")
556
557
  ]) : (0, _Result.FSharpResult$2_Error)([
557
558
  path_1,
558
- (0, _Typesfs.ErrorReason_BadPrimitiveExtra)("an uint16", value_1_1, "Value is not an integral value")
559
+ (0, _Types.ErrorReason_BadPrimitiveExtra)("an uint16", value_1_1, "Value is not an integral value")
559
560
  ]);
560
561
  } else if (typeof value_3 === "string") {
561
562
  let matchValue;
562
563
  let outArg = 0;
563
564
  matchValue = [
564
- (0, _Int32.tryParse)(value_3, 511, true, 16, new _Types.FSharpRef(()=>outArg, (v)=>{
565
+ (0, _Int32.tryParse)(value_3, 511, true, 16, new _Types1.FSharpRef(()=>outArg, (v)=>{
565
566
  outArg = v;
566
567
  })),
567
568
  outArg
568
569
  ];
569
570
  return matchValue[0] ? (0, _Result.FSharpResult$2_Ok)(matchValue[1]) : (0, _Result.FSharpResult$2_Error)([
570
571
  path_1,
571
- (0, _Typesfs.ErrorReason_BadPrimitive)("an uint16", value_3)
572
+ (0, _Types.ErrorReason_BadPrimitive)("an uint16", value_3)
572
573
  ]);
573
574
  } else {
574
575
  return (0, _Result.FSharpResult$2_Error)([
575
576
  path_1,
576
- (0, _Typesfs.ErrorReason_BadPrimitive)("an uint16", value_3)
577
+ (0, _Types.ErrorReason_BadPrimitive)("an uint16", value_3)
577
578
  ]);
578
579
  }
579
580
  };
@@ -584,28 +585,28 @@ const int = (path)=>(value_2)=>{
584
585
  const value_1_1 = value_3;
585
586
  return isFinite(value_1_1) && Math.floor(value_1_1) === value_1_1 ? -2147483648 <= value_1_1 && value_1_1 <= 2147483647 ? (0, _Result.FSharpResult$2_Ok)(~~value_1_1) : (0, _Result.FSharpResult$2_Error)([
586
587
  path_1,
587
- (0, _Typesfs.ErrorReason_BadPrimitiveExtra)("an int", value_1_1, "Value was either too large or too small for an int")
588
+ (0, _Types.ErrorReason_BadPrimitiveExtra)("an int", value_1_1, "Value was either too large or too small for an int")
588
589
  ]) : (0, _Result.FSharpResult$2_Error)([
589
590
  path_1,
590
- (0, _Typesfs.ErrorReason_BadPrimitiveExtra)("an int", value_1_1, "Value is not an integral value")
591
+ (0, _Types.ErrorReason_BadPrimitiveExtra)("an int", value_1_1, "Value is not an integral value")
591
592
  ]);
592
593
  } else if (typeof value_3 === "string") {
593
594
  let matchValue;
594
595
  let outArg = 0;
595
596
  matchValue = [
596
- (0, _Int32.tryParse)(value_3, 511, false, 32, new _Types.FSharpRef(()=>outArg, (v)=>{
597
+ (0, _Int32.tryParse)(value_3, 511, false, 32, new _Types1.FSharpRef(()=>outArg, (v)=>{
597
598
  outArg = v | 0;
598
599
  })),
599
600
  outArg
600
601
  ];
601
602
  return matchValue[0] ? (0, _Result.FSharpResult$2_Ok)(matchValue[1]) : (0, _Result.FSharpResult$2_Error)([
602
603
  path_1,
603
- (0, _Typesfs.ErrorReason_BadPrimitive)("an int", value_3)
604
+ (0, _Types.ErrorReason_BadPrimitive)("an int", value_3)
604
605
  ]);
605
606
  } else {
606
607
  return (0, _Result.FSharpResult$2_Error)([
607
608
  path_1,
608
- (0, _Typesfs.ErrorReason_BadPrimitive)("an int", value_3)
609
+ (0, _Types.ErrorReason_BadPrimitive)("an int", value_3)
609
610
  ]);
610
611
  }
611
612
  };
@@ -616,28 +617,28 @@ const uint32 = (path)=>(value_2)=>{
616
617
  const value_1_1 = value_3;
617
618
  return isFinite(value_1_1) && Math.floor(value_1_1) === value_1_1 ? 0 <= value_1_1 && value_1_1 <= 4294967295 ? (0, _Result.FSharpResult$2_Ok)(value_1_1 >>> 0) : (0, _Result.FSharpResult$2_Error)([
618
619
  path_1,
619
- (0, _Typesfs.ErrorReason_BadPrimitiveExtra)("an uint32", value_1_1, "Value was either too large or too small for an uint32")
620
+ (0, _Types.ErrorReason_BadPrimitiveExtra)("an uint32", value_1_1, "Value was either too large or too small for an uint32")
620
621
  ]) : (0, _Result.FSharpResult$2_Error)([
621
622
  path_1,
622
- (0, _Typesfs.ErrorReason_BadPrimitiveExtra)("an uint32", value_1_1, "Value is not an integral value")
623
+ (0, _Types.ErrorReason_BadPrimitiveExtra)("an uint32", value_1_1, "Value is not an integral value")
623
624
  ]);
624
625
  } else if (typeof value_3 === "string") {
625
626
  let matchValue;
626
627
  let outArg = 0;
627
628
  matchValue = [
628
- (0, _Int32.tryParse)(value_3, 511, true, 32, new _Types.FSharpRef(()=>outArg, (v)=>{
629
+ (0, _Int32.tryParse)(value_3, 511, true, 32, new _Types1.FSharpRef(()=>outArg, (v)=>{
629
630
  outArg = v;
630
631
  })),
631
632
  outArg
632
633
  ];
633
634
  return matchValue[0] ? (0, _Result.FSharpResult$2_Ok)(matchValue[1]) : (0, _Result.FSharpResult$2_Error)([
634
635
  path_1,
635
- (0, _Typesfs.ErrorReason_BadPrimitive)("an uint32", value_3)
636
+ (0, _Types.ErrorReason_BadPrimitive)("an uint32", value_3)
636
637
  ]);
637
638
  } else {
638
639
  return (0, _Result.FSharpResult$2_Error)([
639
640
  path_1,
640
- (0, _Typesfs.ErrorReason_BadPrimitive)("an uint32", value_3)
641
+ (0, _Types.ErrorReason_BadPrimitive)("an uint32", value_3)
641
642
  ]);
642
643
  }
643
644
  };
@@ -648,28 +649,28 @@ const int64 = (path)=>(value_2)=>{
648
649
  const value_1_1 = value_3;
649
650
  return isFinite(value_1_1) && Math.floor(value_1_1) === value_1_1 ? (0, _BigInt.toFloat64)(-9223372036854775808n) <= value_1_1 && value_1_1 <= (0, _BigInt.toFloat64)(9223372036854775807n) ? (0, _Result.FSharpResult$2_Ok)((0, _BigInt.toInt64)((0, _BigInt.fromFloat64)(value_1_1))) : (0, _Result.FSharpResult$2_Error)([
650
651
  path_1,
651
- (0, _Typesfs.ErrorReason_BadPrimitiveExtra)("an int64", value_1_1, "Value was either too large or too small for an int64")
652
+ (0, _Types.ErrorReason_BadPrimitiveExtra)("an int64", value_1_1, "Value was either too large or too small for an int64")
652
653
  ]) : (0, _Result.FSharpResult$2_Error)([
653
654
  path_1,
654
- (0, _Typesfs.ErrorReason_BadPrimitiveExtra)("an int64", value_1_1, "Value is not an integral value")
655
+ (0, _Types.ErrorReason_BadPrimitiveExtra)("an int64", value_1_1, "Value is not an integral value")
655
656
  ]);
656
657
  } else if (typeof value_3 === "string") {
657
658
  let matchValue;
658
659
  let outArg = 0n;
659
660
  matchValue = [
660
- (0, _Long.tryParse)(value_3, 511, false, 64, new _Types.FSharpRef(()=>outArg, (v)=>{
661
+ (0, _Long.tryParse)(value_3, 511, false, 64, new _Types1.FSharpRef(()=>outArg, (v)=>{
661
662
  outArg = v;
662
663
  })),
663
664
  outArg
664
665
  ];
665
666
  return matchValue[0] ? (0, _Result.FSharpResult$2_Ok)(matchValue[1]) : (0, _Result.FSharpResult$2_Error)([
666
667
  path_1,
667
- (0, _Typesfs.ErrorReason_BadPrimitive)("an int64", value_3)
668
+ (0, _Types.ErrorReason_BadPrimitive)("an int64", value_3)
668
669
  ]);
669
670
  } else {
670
671
  return (0, _Result.FSharpResult$2_Error)([
671
672
  path_1,
672
- (0, _Typesfs.ErrorReason_BadPrimitive)("an int64", value_3)
673
+ (0, _Types.ErrorReason_BadPrimitive)("an int64", value_3)
673
674
  ]);
674
675
  }
675
676
  };
@@ -680,28 +681,28 @@ const uint64 = (path)=>(value_2)=>{
680
681
  const value_1_1 = value_3;
681
682
  return isFinite(value_1_1) && Math.floor(value_1_1) === value_1_1 ? (0, _BigInt.toFloat64)(0n) <= value_1_1 && value_1_1 <= (0, _BigInt.toFloat64)(18446744073709551615n) ? (0, _Result.FSharpResult$2_Ok)((0, _BigInt.toUInt64)((0, _BigInt.fromFloat64)(value_1_1))) : (0, _Result.FSharpResult$2_Error)([
682
683
  path_1,
683
- (0, _Typesfs.ErrorReason_BadPrimitiveExtra)("an uint64", value_1_1, "Value was either too large or too small for an uint64")
684
+ (0, _Types.ErrorReason_BadPrimitiveExtra)("an uint64", value_1_1, "Value was either too large or too small for an uint64")
684
685
  ]) : (0, _Result.FSharpResult$2_Error)([
685
686
  path_1,
686
- (0, _Typesfs.ErrorReason_BadPrimitiveExtra)("an uint64", value_1_1, "Value is not an integral value")
687
+ (0, _Types.ErrorReason_BadPrimitiveExtra)("an uint64", value_1_1, "Value is not an integral value")
687
688
  ]);
688
689
  } else if (typeof value_3 === "string") {
689
690
  let matchValue;
690
691
  let outArg = 0n;
691
692
  matchValue = [
692
- (0, _Long.tryParse)(value_3, 511, true, 64, new _Types.FSharpRef(()=>outArg, (v)=>{
693
+ (0, _Long.tryParse)(value_3, 511, true, 64, new _Types1.FSharpRef(()=>outArg, (v)=>{
693
694
  outArg = v;
694
695
  })),
695
696
  outArg
696
697
  ];
697
698
  return matchValue[0] ? (0, _Result.FSharpResult$2_Ok)(matchValue[1]) : (0, _Result.FSharpResult$2_Error)([
698
699
  path_1,
699
- (0, _Typesfs.ErrorReason_BadPrimitive)("an uint64", value_3)
700
+ (0, _Types.ErrorReason_BadPrimitive)("an uint64", value_3)
700
701
  ]);
701
702
  } else {
702
703
  return (0, _Result.FSharpResult$2_Error)([
703
704
  path_1,
704
- (0, _Typesfs.ErrorReason_BadPrimitive)("an uint64", value_3)
705
+ (0, _Types.ErrorReason_BadPrimitive)("an uint64", value_3)
705
706
  ]);
706
707
  }
707
708
  };
@@ -714,13 +715,13 @@ function bigint(path, value_1) {
714
715
  } catch (matchValue) {
715
716
  return (0, _Result.FSharpResult$2_Error)([
716
717
  path,
717
- (0, _Typesfs.ErrorReason_BadPrimitive)("a bigint", value_1)
718
+ (0, _Types.ErrorReason_BadPrimitive)("a bigint", value_1)
718
719
  ]);
719
720
  }
720
721
  } else {
721
722
  return (0, _Result.FSharpResult$2_Error)([
722
723
  path,
723
- (0, _Typesfs.ErrorReason_BadPrimitive)("a bigint", value_1)
724
+ (0, _Types.ErrorReason_BadPrimitive)("a bigint", value_1)
724
725
  ]);
725
726
  }
726
727
  }
@@ -730,7 +731,7 @@ function bool(path, value_1) {
730
731
  } else {
731
732
  return (0, _Result.FSharpResult$2_Error)([
732
733
  path,
733
- (0, _Typesfs.ErrorReason_BadPrimitive)("a boolean", value_1)
734
+ (0, _Types.ErrorReason_BadPrimitive)("a boolean", value_1)
734
735
  ]);
735
736
  }
736
737
  }
@@ -740,7 +741,7 @@ function float(path, value_1) {
740
741
  } else {
741
742
  return (0, _Result.FSharpResult$2_Error)([
742
743
  path,
743
- (0, _Typesfs.ErrorReason_BadPrimitive)("a float", value_1)
744
+ (0, _Types.ErrorReason_BadPrimitive)("a float", value_1)
744
745
  ]);
745
746
  }
746
747
  }
@@ -750,7 +751,7 @@ function float32(path, value_1) {
750
751
  } else {
751
752
  return (0, _Result.FSharpResult$2_Error)([
752
753
  path,
753
- (0, _Typesfs.ErrorReason_BadPrimitive)("a float32", value_1)
754
+ (0, _Types.ErrorReason_BadPrimitive)("a float32", value_1)
754
755
  ]);
755
756
  }
756
757
  }
@@ -761,7 +762,7 @@ function decimal(path, value_1) {
761
762
  let matchValue;
762
763
  let outArg = new _Decimal.default("0");
763
764
  matchValue = [
764
- (0, _Decimal.tryParse)(value_1, new _Types.FSharpRef(()=>outArg, (v)=>{
765
+ (0, _Decimal.tryParse)(value_1, new _Types1.FSharpRef(()=>outArg, (v)=>{
765
766
  outArg = v;
766
767
  })),
767
768
  outArg
@@ -771,13 +772,13 @@ function decimal(path, value_1) {
771
772
  } else {
772
773
  return (0, _Result.FSharpResult$2_Error)([
773
774
  path,
774
- (0, _Typesfs.ErrorReason_BadPrimitive)("a decimal", value_1)
775
+ (0, _Types.ErrorReason_BadPrimitive)("a decimal", value_1)
775
776
  ]);
776
777
  }
777
778
  } else {
778
779
  return (0, _Result.FSharpResult$2_Error)([
779
780
  path,
780
- (0, _Typesfs.ErrorReason_BadPrimitive)("a decimal", value_1)
781
+ (0, _Types.ErrorReason_BadPrimitive)("a decimal", value_1)
781
782
  ]);
782
783
  }
783
784
  }
@@ -786,7 +787,7 @@ function datetime(path, value_1) {
786
787
  let matchValue;
787
788
  let outArg = (0, _Date.minValue)();
788
789
  matchValue = [
789
- (0, _Date.tryParse)(value_1, new _Types.FSharpRef(()=>outArg, (v)=>{
790
+ (0, _Date.tryParse)(value_1, new _Types1.FSharpRef(()=>outArg, (v)=>{
790
791
  outArg = v;
791
792
  })),
792
793
  outArg
@@ -796,13 +797,13 @@ function datetime(path, value_1) {
796
797
  } else {
797
798
  return (0, _Result.FSharpResult$2_Error)([
798
799
  path,
799
- (0, _Typesfs.ErrorReason_BadPrimitive)("a datetime", value_1)
800
+ (0, _Types.ErrorReason_BadPrimitive)("a datetime", value_1)
800
801
  ]);
801
802
  }
802
803
  } else {
803
804
  return (0, _Result.FSharpResult$2_Error)([
804
805
  path,
805
- (0, _Typesfs.ErrorReason_BadPrimitive)("a datetime", value_1)
806
+ (0, _Types.ErrorReason_BadPrimitive)("a datetime", value_1)
806
807
  ]);
807
808
  }
808
809
  }
@@ -811,7 +812,7 @@ function datetimeUtc(path, value_1) {
811
812
  let matchValue;
812
813
  let outArg = (0, _Date.minValue)();
813
814
  matchValue = [
814
- (0, _Date.tryParse)(value_1, new _Types.FSharpRef(()=>outArg, (v)=>{
815
+ (0, _Date.tryParse)(value_1, new _Types1.FSharpRef(()=>outArg, (v)=>{
815
816
  outArg = v;
816
817
  })),
817
818
  outArg
@@ -821,13 +822,13 @@ function datetimeUtc(path, value_1) {
821
822
  } else {
822
823
  return (0, _Result.FSharpResult$2_Error)([
823
824
  path,
824
- (0, _Typesfs.ErrorReason_BadPrimitive)("a datetime", value_1)
825
+ (0, _Types.ErrorReason_BadPrimitive)("a datetime", value_1)
825
826
  ]);
826
827
  }
827
828
  } else {
828
829
  return (0, _Result.FSharpResult$2_Error)([
829
830
  path,
830
- (0, _Typesfs.ErrorReason_BadPrimitive)("a datetime", value_1)
831
+ (0, _Types.ErrorReason_BadPrimitive)("a datetime", value_1)
831
832
  ]);
832
833
  }
833
834
  }
@@ -836,7 +837,7 @@ function datetimeLocal(path, value_1) {
836
837
  let matchValue;
837
838
  let outArg = (0, _Date.minValue)();
838
839
  matchValue = [
839
- (0, _Date.tryParse)(value_1, new _Types.FSharpRef(()=>outArg, (v)=>{
840
+ (0, _Date.tryParse)(value_1, new _Types1.FSharpRef(()=>outArg, (v)=>{
840
841
  outArg = v;
841
842
  })),
842
843
  outArg
@@ -846,13 +847,13 @@ function datetimeLocal(path, value_1) {
846
847
  } else {
847
848
  return (0, _Result.FSharpResult$2_Error)([
848
849
  path,
849
- (0, _Typesfs.ErrorReason_BadPrimitive)("a datetime", value_1)
850
+ (0, _Types.ErrorReason_BadPrimitive)("a datetime", value_1)
850
851
  ]);
851
852
  }
852
853
  } else {
853
854
  return (0, _Result.FSharpResult$2_Error)([
854
855
  path,
855
- (0, _Typesfs.ErrorReason_BadPrimitive)("a datetime", value_1)
856
+ (0, _Types.ErrorReason_BadPrimitive)("a datetime", value_1)
856
857
  ]);
857
858
  }
858
859
  }
@@ -861,7 +862,7 @@ function datetimeOffset(path, value_1) {
861
862
  let matchValue;
862
863
  let outArg = (0, _DateOffset.minValue)();
863
864
  matchValue = [
864
- (0, _DateOffset.tryParse)(value_1, new _Types.FSharpRef(()=>outArg, (v)=>{
865
+ (0, _DateOffset.tryParse)(value_1, new _Types1.FSharpRef(()=>outArg, (v)=>{
865
866
  outArg = v;
866
867
  })),
867
868
  outArg
@@ -871,13 +872,13 @@ function datetimeOffset(path, value_1) {
871
872
  } else {
872
873
  return (0, _Result.FSharpResult$2_Error)([
873
874
  path,
874
- (0, _Typesfs.ErrorReason_BadPrimitive)("a datetimeoffset", value_1)
875
+ (0, _Types.ErrorReason_BadPrimitive)("a datetimeoffset", value_1)
875
876
  ]);
876
877
  }
877
878
  } else {
878
879
  return (0, _Result.FSharpResult$2_Error)([
879
880
  path,
880
- (0, _Typesfs.ErrorReason_BadPrimitive)("a datetime", value_1)
881
+ (0, _Types.ErrorReason_BadPrimitive)("a datetime", value_1)
881
882
  ]);
882
883
  }
883
884
  }
@@ -886,7 +887,7 @@ function timespan(path, value_1) {
886
887
  let matchValue;
887
888
  let outArg = 0;
888
889
  matchValue = [
889
- (0, _TimeSpan.tryParse)(value_1, new _Types.FSharpRef(()=>outArg, (v)=>{
890
+ (0, _TimeSpan.tryParse)(value_1, new _Types1.FSharpRef(()=>outArg, (v)=>{
890
891
  outArg = v;
891
892
  })),
892
893
  outArg
@@ -896,13 +897,13 @@ function timespan(path, value_1) {
896
897
  } else {
897
898
  return (0, _Result.FSharpResult$2_Error)([
898
899
  path,
899
- (0, _Typesfs.ErrorReason_BadPrimitive)("a timespan", value_1)
900
+ (0, _Types.ErrorReason_BadPrimitive)("a timespan", value_1)
900
901
  ]);
901
902
  }
902
903
  } else {
903
904
  return (0, _Result.FSharpResult$2_Error)([
904
905
  path,
905
- (0, _Typesfs.ErrorReason_BadPrimitive)("a timespan", value_1)
906
+ (0, _Types.ErrorReason_BadPrimitive)("a timespan", value_1)
906
907
  ]);
907
908
  }
908
909
  }
@@ -929,14 +930,14 @@ function optional(fieldName, decoder, path, value_1) {
929
930
  } else {
930
931
  return (0, _Result.FSharpResult$2_Error)([
931
932
  path,
932
- (0, _Typesfs.ErrorReason_BadType)("an object", value_1)
933
+ (0, _Types.ErrorReason_BadType)("an object", value_1)
933
934
  ]);
934
935
  }
935
936
  }
936
937
  function badPathError(fieldNames, currentPath, value_1) {
937
938
  return (0, _Result.FSharpResult$2_Error)([
938
939
  (0, _Option.defaultArg)(currentPath, (0, _String.join)(".", (0, _List.cons)("$", fieldNames))),
939
- (0, _Typesfs.ErrorReason_BadPath)("an object with path `" + (0, _String.join)(".", fieldNames) + "`", value_1, (0, _Option.defaultArg)((0, _List.tryLast)(fieldNames), ""))
940
+ (0, _Types.ErrorReason_BadPath)("an object with path `" + (0, _String.join)(".", fieldNames) + "`", value_1, (0, _Option.defaultArg)((0, _List.tryLast)(fieldNames), ""))
940
941
  ]);
941
942
  }
942
943
  function optionalAt(fieldNames, decoder, firstPath, firstValue) {
@@ -963,7 +964,7 @@ function optionalAt(fieldNames, decoder, firstPath, firstValue) {
963
964
  curValue,
964
965
  (0, _Result.FSharpResult$2_Error)([
965
966
  curPath,
966
- (0, _Typesfs.ErrorReason_BadType)("an object", curValue)
967
+ (0, _Types.ErrorReason_BadType)("an object", curValue)
967
968
  ])
968
969
  ];
969
970
  }
@@ -996,7 +997,7 @@ function field(fieldName, decoder, path, value_1) {
996
997
  if (Helpers_isUndefined(fieldValue)) {
997
998
  return (0, _Result.FSharpResult$2_Error)([
998
999
  path,
999
- (0, _Typesfs.ErrorReason_BadField)("an object with a field named `" + fieldName + "`", value_1)
1000
+ (0, _Types.ErrorReason_BadField)("an object with a field named `" + fieldName + "`", value_1)
1000
1001
  ]);
1001
1002
  } else {
1002
1003
  return decoder(path + "." + fieldName, fieldValue);
@@ -1004,7 +1005,7 @@ function field(fieldName, decoder, path, value_1) {
1004
1005
  } else {
1005
1006
  return (0, _Result.FSharpResult$2_Error)([
1006
1007
  path,
1007
- (0, _Typesfs.ErrorReason_BadType)("an object", value_1)
1008
+ (0, _Types.ErrorReason_BadType)("an object", value_1)
1008
1009
  ]);
1009
1010
  }
1010
1011
  }
@@ -1041,7 +1042,7 @@ function at(fieldNames, decoder, firstPath, firstValue) {
1041
1042
  curValue,
1042
1043
  (0, _Result.FSharpResult$2_Error)([
1043
1044
  curPath,
1044
- (0, _Typesfs.ErrorReason_BadType)("an object", curValue)
1045
+ (0, _Types.ErrorReason_BadType)("an object", curValue)
1045
1046
  ])
1046
1047
  ];
1047
1048
  }
@@ -1073,13 +1074,13 @@ function index(requestedIndex, decoder, path, value_1) {
1073
1074
  } else {
1074
1075
  return (0, _Result.FSharpResult$2_Error)([
1075
1076
  currentPath,
1076
- (0, _Typesfs.ErrorReason_TooSmallArray)("a longer array. Need index `" + (0, _Util.int32ToString)(requestedIndex) + "` but there are only `" + (copyOfStruct = vArray.length, (0, _Util.int32ToString)(copyOfStruct)) + "` entries", value_1)
1077
+ (0, _Types.ErrorReason_TooSmallArray)("a longer array. Need index `" + (0, _Util.int32ToString)(requestedIndex) + "` but there are only `" + (copyOfStruct = vArray.length, (0, _Util.int32ToString)(copyOfStruct)) + "` entries", value_1)
1077
1078
  ]);
1078
1079
  }
1079
1080
  } else {
1080
1081
  return (0, _Result.FSharpResult$2_Error)([
1081
1082
  currentPath,
1082
- (0, _Typesfs.ErrorReason_BadPrimitive)("an array", value_1)
1083
+ (0, _Types.ErrorReason_BadPrimitive)("an array", value_1)
1083
1084
  ]);
1084
1085
  }
1085
1086
  }
@@ -1110,7 +1111,7 @@ function list(decoder, path, value_1) {
1110
1111
  } else {
1111
1112
  return (0, _Result.FSharpResult$2_Error)([
1112
1113
  path,
1113
- (0, _Typesfs.ErrorReason_BadPrimitive)("a list", value_1)
1114
+ (0, _Types.ErrorReason_BadPrimitive)("a list", value_1)
1114
1115
  ]);
1115
1116
  }
1116
1117
  }
@@ -1136,7 +1137,7 @@ function seq(decoder, path, value_1) {
1136
1137
  } else {
1137
1138
  return (0, _Result.FSharpResult$2_Error)([
1138
1139
  path,
1139
- (0, _Typesfs.ErrorReason_BadPrimitive)("a seq", value_1)
1140
+ (0, _Types.ErrorReason_BadPrimitive)("a seq", value_1)
1140
1141
  ]);
1141
1142
  }
1142
1143
  }
@@ -1163,7 +1164,7 @@ function array(decoder, path, value_1) {
1163
1164
  } else {
1164
1165
  return (0, _Result.FSharpResult$2_Error)([
1165
1166
  path,
1166
- (0, _Typesfs.ErrorReason_BadPrimitive)("an array", value_1)
1167
+ (0, _Types.ErrorReason_BadPrimitive)("an array", value_1)
1167
1168
  ]);
1168
1169
  }
1169
1170
  }
@@ -1173,7 +1174,7 @@ function keys(path, value_1) {
1173
1174
  } else {
1174
1175
  return (0, _Result.FSharpResult$2_Error)([
1175
1176
  path,
1176
- (0, _Typesfs.ErrorReason_BadPrimitive)("an object", value_1)
1177
+ (0, _Types.ErrorReason_BadPrimitive)("an object", value_1)
1177
1178
  ]);
1178
1179
  }
1179
1180
  }
@@ -1207,7 +1208,7 @@ function oneOf(decoders, path, value_1) {
1207
1208
  if ((0, _List.isEmpty)(decoders_1)) {
1208
1209
  return (0, _Result.FSharpResult$2_Error)([
1209
1210
  path,
1210
- (0, _Typesfs.ErrorReason_BadOneOf)(errors)
1211
+ (0, _Types.ErrorReason_BadOneOf)(errors)
1211
1212
  ]);
1212
1213
  } else {
1213
1214
  const matchValue = fromValue(path, (0, _Util.uncurry2)((0, _List.head)(decoders_1)), value_1);
@@ -1230,7 +1231,7 @@ function nil(output, path, value_1) {
1230
1231
  } else {
1231
1232
  return (0, _Result.FSharpResult$2_Error)([
1232
1233
  path,
1233
- (0, _Typesfs.ErrorReason_BadPrimitive)("null", value_1)
1234
+ (0, _Types.ErrorReason_BadPrimitive)("null", value_1)
1234
1235
  ]);
1235
1236
  }
1236
1237
  }
@@ -1243,7 +1244,7 @@ function succeed(output, _arg, _arg_1) {
1243
1244
  function fail(msg, path, _arg) {
1244
1245
  return (0, _Result.FSharpResult$2_Error)([
1245
1246
  path,
1246
- (0, _Typesfs.ErrorReason_FailMessage)(msg)
1247
+ (0, _Types.ErrorReason_FailMessage)(msg)
1247
1248
  ]);
1248
1249
  }
1249
1250
  function andThen(cb, decoder, path, value_1) {
@@ -1708,7 +1709,7 @@ function object(builder, path, v) {
1708
1709
  if ((0, _List.length)(errors) > 1) {
1709
1710
  return (0, _Result.FSharpResult$2_Error)([
1710
1711
  path,
1711
- (0, _Typesfs.ErrorReason_BadOneOf)((0, _List.map)((tupledArg)=>errorToString(tupledArg[0], tupledArg[1]), errors))
1712
+ (0, _Types.ErrorReason_BadOneOf)((0, _List.map)((tupledArg)=>errorToString(tupledArg[0], tupledArg[1]), errors))
1712
1713
  ]);
1713
1714
  } else {
1714
1715
  return (0, _Result.FSharpResult$2_Error)((0, _List.head)(matchValue));
@@ -1971,7 +1972,7 @@ function autoObject(decoderInfos, path, value_1) {
1971
1972
  if (!(value_1 === null ? false : Object.getPrototypeOf(value_1 || false) === Object.prototype)) {
1972
1973
  return (0, _Result.FSharpResult$2_Error)([
1973
1974
  path,
1974
- (0, _Typesfs.ErrorReason_BadPrimitive)("an object", value_1)
1975
+ (0, _Types.ErrorReason_BadPrimitive)("an object", value_1)
1975
1976
  ]);
1976
1977
  } else {
1977
1978
  return (0, _Array.foldBack)((tupledArg, acc)=>{
@@ -1989,7 +1990,7 @@ function autoObject2(keyDecoder, valueDecoder, path, value_1) {
1989
1990
  if (!(value_1 === null ? false : Object.getPrototypeOf(value_1 || false) === Object.prototype)) {
1990
1991
  return (0, _Result.FSharpResult$2_Error)([
1991
1992
  path,
1992
- (0, _Typesfs.ErrorReason_BadPrimitive)("an object", value_1)
1993
+ (0, _Types.ErrorReason_BadPrimitive)("an object", value_1)
1993
1994
  ]);
1994
1995
  } else {
1995
1996
  return (0, _Seq.fold)((acc, name)=>{
@@ -2022,7 +2023,7 @@ function mixedArray(offset, decoders, path, values) {
2022
2023
  if (expectedLength !== values.length) {
2023
2024
  return (0, _Result.FSharpResult$2_Error)([
2024
2025
  path,
2025
- (0, _Typesfs.ErrorReason_FailMessage)((arg_1 = values.length | 0, (0, _String.toText)((0, _String.printf)("Expected array of length %i but got %i"))(expectedLength)(arg_1)))
2026
+ (0, _Types.ErrorReason_FailMessage)((arg_1 = values.length | 0, (0, _String.toText)((0, _String.printf)("Expected array of length %i but got %i"))(expectedLength)(arg_1)))
2026
2027
  ]);
2027
2028
  } else {
2028
2029
  let result = (0, _Result.FSharpResult$2_Ok)((0, _List.empty)());
@@ -2047,20 +2048,20 @@ function makeUnion(extra, caseStrategy, t, name, path, values) {
2047
2048
  } else {
2048
2049
  return (0, _Result.FSharpResult$2_Error)([
2049
2050
  path,
2050
- (0, _Typesfs.ErrorReason_FailMessage)("Cannot find case " + name + " in " + (0, _Reflection.fullName)(t))
2051
+ (0, _Types.ErrorReason_FailMessage)("Cannot find case " + name + " in " + (0, _Reflection.fullName)(t))
2051
2052
  ]);
2052
2053
  }
2053
2054
  }
2054
2055
  function autoDecodeRecordsAndUnions(extra, caseStrategy, isOptional, t) {
2055
2056
  let arg;
2056
- const decoderRef = new _Types.FSharpRef((0, _Util.defaultOf)());
2057
+ const decoderRef = new _Types1.FSharpRef((0, _Util.defaultOf)());
2057
2058
  let extra_1;
2058
2059
  const matchValue = (0, _Reflection.fullName)(t);
2059
2060
  extra_1 = matchValue === "" ? extra : (0, _Map.add)(matchValue, decoderRef, extra);
2060
2061
  let decoder;
2061
2062
  if ((0, _Reflection.isRecord)(t, true)) {
2062
2063
  const decoders = (0, _Array.map)((fi)=>[
2063
- (0, _Typesfs.Util_Casing_convert)(caseStrategy, (0, _Reflection.name)(fi)),
2064
+ (0, _Types.Util_Casing_convert)(caseStrategy, (0, _Reflection.name)(fi)),
2064
2065
  autoDecoder(extra_1, caseStrategy, false, fi[1])
2065
2066
  ], (0, _Reflection.getRecordElements)(t, true));
2066
2067
  decoder = (path)=>(value_1)=>(0, _Result.Result_Map)((xs)=>(0, _Reflection.makeRecord)(t, (0, _List.toArray)(xs), true), autoObject(decoders, path, value_1));
@@ -2074,14 +2075,14 @@ function autoDecodeRecordsAndUnions(extra, caseStrategy, isOptional, t) {
2074
2075
  } else {
2075
2076
  return (0, _Result.FSharpResult$2_Error)([
2076
2077
  path_1,
2077
- (0, _Typesfs.ErrorReason_BadPrimitive)("a string or array", value_2)
2078
+ (0, _Types.ErrorReason_BadPrimitive)("a string or array", value_2)
2078
2079
  ]);
2079
2080
  }
2080
2081
  };
2081
2082
  } else if (isOptional) {
2082
2083
  decoder = (path_2)=>(value_3)=>(0, _Result.FSharpResult$2_Error)([
2083
2084
  path_2,
2084
- (0, _Typesfs.ErrorReason_BadType)("an extra coder for " + (0, _Reflection.fullName)(t), value_3)
2085
+ (0, _Types.ErrorReason_BadType)("an extra coder for " + (0, _Reflection.fullName)(t), value_3)
2085
2086
  ]);
2086
2087
  } else {
2087
2088
  throw new Error((arg = (0, _Reflection.fullName)(t), (0, _String.toText)((0, _String.printf)("Cannot generate auto decoder for %s. Please pass an extra decoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders"))(arg)));
@@ -2115,7 +2116,7 @@ function autoDecoder(extra, caseStrategy, isOptional, t) {
2115
2116
  GetHashCode: _Util.numberHash
2116
2117
  }) ? (0, _Result.FSharpResult$2_Ok)((0, _Reflection.parseEnum)(t_2, enumValue.toString())) : (0, _Result.FSharpResult$2_Error)([
2117
2118
  path_3,
2118
- (0, _Typesfs.ErrorReason_BadPrimitiveExtra)((0, _Reflection.fullName)(t_2), value_5, "Unkown value provided for the enum")
2119
+ (0, _Types.ErrorReason_BadPrimitiveExtra)((0, _Reflection.fullName)(t_2), value_5, "Unkown value provided for the enum")
2119
2120
  ]);
2120
2121
  }
2121
2122
  };
@@ -2134,7 +2135,7 @@ function autoDecoder(extra, caseStrategy, isOptional, t) {
2134
2135
  GetHashCode: _Util.numberHash
2135
2136
  }) ? (0, _Result.FSharpResult$2_Ok)((0, _Reflection.parseEnum)(t_3, enumValue_1.toString())) : (0, _Result.FSharpResult$2_Error)([
2136
2137
  path_5,
2137
- (0, _Typesfs.ErrorReason_BadPrimitiveExtra)((0, _Reflection.fullName)(t_3), value_8, "Unkown value provided for the enum")
2138
+ (0, _Types.ErrorReason_BadPrimitiveExtra)((0, _Reflection.fullName)(t_3), value_8, "Unkown value provided for the enum")
2138
2139
  ]);
2139
2140
  }
2140
2141
  };
@@ -2153,7 +2154,7 @@ function autoDecoder(extra, caseStrategy, isOptional, t) {
2153
2154
  GetHashCode: _Util.numberHash
2154
2155
  }) ? (0, _Result.FSharpResult$2_Ok)((0, _Reflection.parseEnum)(t_4, (0, _Util.int16ToString)(enumValue_2))) : (0, _Result.FSharpResult$2_Error)([
2155
2156
  path_7,
2156
- (0, _Typesfs.ErrorReason_BadPrimitiveExtra)((0, _Reflection.fullName)(t_4), value_11, "Unkown value provided for the enum")
2157
+ (0, _Types.ErrorReason_BadPrimitiveExtra)((0, _Reflection.fullName)(t_4), value_11, "Unkown value provided for the enum")
2157
2158
  ]);
2158
2159
  }
2159
2160
  };
@@ -2172,7 +2173,7 @@ function autoDecoder(extra, caseStrategy, isOptional, t) {
2172
2173
  GetHashCode: _Util.numberHash
2173
2174
  }) ? (0, _Result.FSharpResult$2_Ok)((0, _Reflection.parseEnum)(t_5, enumValue_3.toString())) : (0, _Result.FSharpResult$2_Error)([
2174
2175
  path_9,
2175
- (0, _Typesfs.ErrorReason_BadPrimitiveExtra)((0, _Reflection.fullName)(t_5), value_14, "Unkown value provided for the enum")
2176
+ (0, _Types.ErrorReason_BadPrimitiveExtra)((0, _Reflection.fullName)(t_5), value_14, "Unkown value provided for the enum")
2176
2177
  ]);
2177
2178
  }
2178
2179
  };
@@ -2191,7 +2192,7 @@ function autoDecoder(extra, caseStrategy, isOptional, t) {
2191
2192
  GetHashCode: _Util.numberHash
2192
2193
  }) ? (0, _Result.FSharpResult$2_Ok)((0, _Reflection.parseEnum)(t_6, (0, _Util.int32ToString)(enumValue_4))) : (0, _Result.FSharpResult$2_Error)([
2193
2194
  path_11,
2194
- (0, _Typesfs.ErrorReason_BadPrimitiveExtra)((0, _Reflection.fullName)(t_6), value_17, "Unkown value provided for the enum")
2195
+ (0, _Types.ErrorReason_BadPrimitiveExtra)((0, _Reflection.fullName)(t_6), value_17, "Unkown value provided for the enum")
2195
2196
  ]);
2196
2197
  }
2197
2198
  };
@@ -2210,7 +2211,7 @@ function autoDecoder(extra, caseStrategy, isOptional, t) {
2210
2211
  GetHashCode: _Util.numberHash
2211
2212
  }) ? (0, _Result.FSharpResult$2_Ok)((0, _Reflection.parseEnum)(t_7, enumValue_5.toString())) : (0, _Result.FSharpResult$2_Error)([
2212
2213
  path_13,
2213
- (0, _Typesfs.ErrorReason_BadPrimitiveExtra)((0, _Reflection.fullName)(t_7), value_20, "Unkown value provided for the enum")
2214
+ (0, _Types.ErrorReason_BadPrimitiveExtra)((0, _Reflection.fullName)(t_7), value_20, "Unkown value provided for the enum")
2214
2215
  ]);
2215
2216
  }
2216
2217
  };
@@ -2229,7 +2230,7 @@ function autoDecoder(extra, caseStrategy, isOptional, t) {
2229
2230
  const decoders = (0, _Array.map)((t_8)=>autoDecoder(extra, caseStrategy, false, t_8), (0, _Reflection.getTupleElements)(t));
2230
2231
  return (path_14)=>(value_21)=>Array.isArray(value_21) ? (0, _Result.Result_Map)((xs)=>(0, _Reflection.makeTuple)((0, _List.toArray)(xs), t), mixedArray(0, decoders, path_14, value_21)) : (0, _Result.FSharpResult$2_Error)([
2231
2232
  path_14,
2232
- (0, _Typesfs.ErrorReason_BadPrimitive)("an array", value_21)
2233
+ (0, _Types.ErrorReason_BadPrimitive)("an array", value_21)
2233
2234
  ]);
2234
2235
  } else {
2235
2236
  const fullname_1 = (0, _Reflection.fullName)((0, _Reflection.getGenericTypeDefinition)(t));
@@ -2290,14 +2291,20 @@ function autoDecoder(extra, caseStrategy, isOptional, t) {
2290
2291
  return (path_27)=>(value_36)=>float(path_27, value_36);
2291
2292
  case "System.Single":
2292
2293
  return (path_28)=>(value_37)=>float32(path_28, value_37);
2294
+ case "System.Int64":
2295
+ return int64;
2296
+ case "System.UInt64":
2297
+ return uint64;
2298
+ case "System.Numerics.BigInteger":
2299
+ return (path_29)=>(value_38)=>bigint(path_29, value_38);
2293
2300
  case "System.DateTime":
2294
- return (path_29)=>(value_38)=>datetimeUtc(path_29, value_38);
2301
+ return (path_30)=>(value_39)=>datetimeUtc(path_30, value_39);
2295
2302
  case "System.DateTimeOffset":
2296
- return (path_30)=>(value_39)=>datetimeOffset(path_30, value_39);
2303
+ return (path_31)=>(value_40)=>datetimeOffset(path_31, value_40);
2297
2304
  case "System.TimeSpan":
2298
- return (path_31)=>(value_40)=>timespan(path_31, value_40);
2305
+ return (path_32)=>(value_41)=>timespan(path_32, value_41);
2299
2306
  case "System.Guid":
2300
- return (path_32)=>(value_41)=>guid(path_32, value_41);
2307
+ return (path_33)=>(value_42)=>guid(path_33, value_42);
2301
2308
  case "System.Object":
2302
2309
  return (_arg_6)=>_Result.FSharpResult$2_Ok;
2303
2310
  default:
@@ -2311,7 +2318,7 @@ function autoDecoder(extra, caseStrategy, isOptional, t) {
2311
2318
  }
2312
2319
  function makeExtra(extra) {
2313
2320
  if (extra != null) {
2314
- return (0, _Map.map)((_arg, tupledArg)=>new _Types.FSharpRef(tupledArg[1]), (0, _Option.value)(extra).Coders);
2321
+ return (0, _Map.map)((_arg, tupledArg)=>new _Types1.FSharpRef(tupledArg[1]), (0, _Option.value)(extra).Coders);
2315
2322
  } else {
2316
2323
  return (0, _Map.empty)({
2317
2324
  Compare: _Util.comparePrimitives
@@ -2326,12 +2333,12 @@ function Auto_$reflection() {
2326
2333
  }
2327
2334
  function Auto_generateBoxedDecoderCached_Z6670B51(t, caseStrategy, extra) {
2328
2335
  let y_1, y;
2329
- const caseStrategy_1 = (0, _Option.defaultArg)(caseStrategy, (0, _Typesfs.CaseStrategy_PascalCase)());
2330
- return (0, _Typesfs.Util_Cache$1__GetOrAdd_43981464)(_Typesfs.Util_CachedDecoders, (y_1 = (y = (0, _Reflection.fullName)(t), (0, _Types.toString)(caseStrategy_1) + y), (0, _Option.defaultArg)((0, _Option.map)((e)=>e.Hash, extra), "") + y_1), ()=>autoDecoder(makeExtra(extra), caseStrategy_1, false, t));
2336
+ const caseStrategy_1 = (0, _Option.defaultArg)(caseStrategy, (0, _Types.CaseStrategy_PascalCase)());
2337
+ return (0, _Types.Util_Cache$1__GetOrAdd_43981464)(_Types.Util_CachedDecoders, (y_1 = (y = (0, _Reflection.fullName)(t), (0, _Types1.toString)(caseStrategy_1) + y), (0, _Option.defaultArg)((0, _Option.map)((e)=>e.Hash, extra), "") + y_1), ()=>autoDecoder(makeExtra(extra), caseStrategy_1, false, t));
2331
2338
  }
2332
2339
  function Auto_generateBoxedDecoder_Z6670B51(t, caseStrategy, extra) {
2333
- const caseStrategy_1 = (0, _Option.defaultArg)(caseStrategy, (0, _Typesfs.CaseStrategy_PascalCase)());
2340
+ const caseStrategy_1 = (0, _Option.defaultArg)(caseStrategy, (0, _Types.CaseStrategy_PascalCase)());
2334
2341
  return autoDecoder(makeExtra(extra), caseStrategy_1, false, t);
2335
- } //# sourceMappingURL=Decode.fs.ts.map
2342
+ } //# sourceMappingURL=Decode.ts.map
2336
2343
 
2337
- //# sourceMappingURL=Decode.fs.js.map
2344
+ //# sourceMappingURL=Decode.js.map