@f1studio/form-spec 5.0.0-alpha.140 → 5.0.0-alpha.142

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 (105) hide show
  1. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.d.ts +3 -2
  2. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.d.ts.map +1 -1
  3. package/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.d.ts.map +1 -1
  4. package/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.d.ts.map +1 -1
  5. package/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.d.ts +74 -0
  6. package/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.d.ts.map +1 -0
  7. package/FormSpec.TS/FormSpec.FS/BlueprintValidation.js.map +1 -1
  8. package/FormSpec.TS/FormSpec.FS/BlueprintValidation.ts.map +1 -1
  9. package/FormSpec.TS/FormSpec.FS/FormSpecHelpers.js.map +1 -1
  10. package/FormSpec.TS/FormSpec.FS/FormSpecHelpers.ts.map +1 -1
  11. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.js +36 -30
  12. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.js.map +1 -1
  13. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.ts.map +1 -1
  14. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.js +4 -19
  15. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.js.map +1 -1
  16. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.ts.map +1 -1
  17. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.js.map +1 -1
  18. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRTemplateToFormSpec.ts.map +1 -1
  19. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.js +12 -2
  20. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.js.map +1 -1
  21. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.ts.map +1 -1
  22. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.js.map +1 -1
  23. package/FormSpec.TS/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMRSourceMap.ts.map +1 -1
  24. package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.js.map +1 -1
  25. package/FormSpec.TS/FormSpec.FS/Integrations/CorEMR/TemplateManifestDecoder.ts.map +1 -1
  26. package/FormSpec.TS/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.js +282 -0
  27. package/FormSpec.TS/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.js.map +1 -0
  28. package/FormSpec.TS/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.ts.map +1 -0
  29. package/FormSpec.TS/FormSpec.FS/Interop/Facade/FormAnswersGate.js.map +1 -1
  30. package/FormSpec.TS/FormSpec.FS/Interop/Facade/FormAnswersGate.ts.map +1 -1
  31. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Helpers.js.map +1 -1
  32. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Helpers.ts.map +1 -1
  33. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Option.js.map +1 -1
  34. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Api.Option.ts.map +1 -1
  35. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Values.Api.Option.js.map +1 -1
  36. package/FormSpec.TS/FormSpec.FS/Interop/FormSpec.Values.Api.Option.ts.map +1 -1
  37. package/FormSpec.TS/FormSpec.FS/Migrator.js.map +1 -1
  38. package/FormSpec.TS/FormSpec.FS/Migrator.ts.map +1 -1
  39. package/FormSpec.TS/FormSpec.FS/PathwayExecutor.js.map +1 -1
  40. package/FormSpec.TS/FormSpec.FS/PathwayExecutor.ts.map +1 -1
  41. package/FormSpec.TS/PluginRegistration.js +2 -0
  42. package/FormSpec.TS/PluginRegistration.js.map +1 -1
  43. package/FormSpec.TS/PluginRegistration.ts.map +1 -1
  44. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Decode.js +63 -69
  45. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Decode.js.map +1 -1
  46. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Decode.ts.map +1 -1
  47. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Encode.js +6 -10
  48. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Encode.js.map +1 -1
  49. package/FormSpec.TS/Thoth.Json/packages/Thoth.Json/Encode.ts.map +1 -1
  50. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +57 -0
  51. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js +119 -0
  52. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js.map +1 -0
  53. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.ts.map +1 -0
  54. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Fable.Promise.fableproj +20 -0
  55. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs +766 -0
  56. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +165 -0
  57. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs.js.map +1 -0
  58. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/Promise.fs.ts.map +1 -0
  59. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +31 -0
  60. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +32 -0
  61. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js.map +1 -0
  62. package/FormSpec.TS/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.ts.map +1 -0
  63. package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs.js.map +1 -1
  64. package/FormSpec.TS/fable_modules/Feliz.2.8.0/DateParsing.fs.ts.map +1 -1
  65. package/FormSpec.TS/fable_modules/project_cracked.json +1 -1
  66. package/FormSpec.TS/plugins/allergyfinder/src/AllergyFinderField.js +2431 -0
  67. package/FormSpec.TS/plugins/allergyfinder/src/AllergyFinderField.js.map +1 -0
  68. package/FormSpec.TS/plugins/allergyfinder/src/AllergyFinderField.ts.map +1 -0
  69. package/FormSpec.TS/plugins/allergyfinder/src/OpenFdaClient.js +107 -0
  70. package/FormSpec.TS/plugins/allergyfinder/src/OpenFdaClient.js.map +1 -0
  71. package/FormSpec.TS/plugins/allergyfinder/src/OpenFdaClient.ts.map +1 -0
  72. package/FormSpec.TS/plugins/vitals/src/VitalsField.js +85 -364
  73. package/FormSpec.TS/plugins/vitals/src/VitalsField.js.map +1 -1
  74. package/FormSpec.TS/plugins/vitals/src/VitalsField.ts.map +1 -1
  75. package/FormSpec.TS/plugins/vitals/src/VitalsLogic.js +548 -0
  76. package/FormSpec.TS/plugins/vitals/src/VitalsLogic.js.map +1 -0
  77. package/FormSpec.TS/plugins/vitals/src/VitalsLogic.ts.map +1 -0
  78. package/README.md +7 -7
  79. package/Thoth.Json/packages/Thoth.Json/Decode.d.ts +2 -2
  80. package/Thoth.Json/packages/Thoth.Json/Decode.d.ts.map +1 -1
  81. package/Thoth.Json/packages/Thoth.Json/Encode.d.ts.map +1 -1
  82. package/fable_modules/Fable.Promise.3.2.0/Promise.fs.d.ts +112 -0
  83. package/fable_modules/Fable.Promise.3.2.0/Promise.fs.d.ts.map +1 -0
  84. package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.d.ts +8 -0
  85. package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.d.ts.map +1 -0
  86. package/package.json +5 -1
  87. package/plugins/allergyfinder/src/AllergyFinderField.d.ts +116 -0
  88. package/plugins/allergyfinder/src/AllergyFinderField.d.ts.map +1 -0
  89. package/plugins/allergyfinder/src/OpenFdaClient.d.ts +5 -0
  90. package/plugins/allergyfinder/src/OpenFdaClient.d.ts.map +1 -0
  91. package/plugins/vitals/src/VitalsField.d.ts +4 -43
  92. package/plugins/vitals/src/VitalsField.d.ts.map +1 -1
  93. package/plugins/vitals/src/VitalsLogic.d.ts +78 -0
  94. package/plugins/vitals/src/VitalsLogic.d.ts.map +1 -0
  95. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRElementTypeMap.ts +35 -32
  96. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CorEMRFieldTypeMapper.ts +5 -22
  97. package/src/FormSpec.FS/Integrations/Adapters/CorEMR/CoreMREncoder.ts +13 -2
  98. package/src/FormSpec.FS/Integrations/OpenFda/OpenFdaTypes.ts +160 -0
  99. package/src/PluginRegistration.ts +2 -0
  100. package/src/Thoth.Json/packages/Thoth.Json/Decode.ts +38 -55
  101. package/src/Thoth.Json/packages/Thoth.Json/Encode.ts +10 -16
  102. package/src/plugins/allergyfinder/src/AllergyFinderField.ts +1341 -0
  103. package/src/plugins/allergyfinder/src/OpenFdaClient.ts +103 -0
  104. package/src/plugins/vitals/src/VitalsField.ts +78 -298
  105. package/src/plugins/vitals/src/VitalsLogic.ts +399 -0
@@ -4,14 +4,14 @@ import { Result_Bind, Result_Map, FSharpResult$2_Ok, FSharpResult$2_Error, FShar
4
4
  import { tryParse as tryParse_2 } from "@fable-org/fable-library-js/Guid.js";
5
5
  import { toString as toString_12, FSharpRef } from "@fable-org/fable-library-js/Types.js";
6
6
  import { float32 as float32_1, uint32 as uint32_1, int32, uint16 as uint16_1, int16 as int16_1, uint8, tryParse as tryParse_3, int8, float64 } from "@fable-org/fable-library-js/Int32.js";
7
- import { parse, fromInt32, toUInt64, uint64 as uint64_1, int64 as int64_1, fromFloat64, toInt64, toFloat64 } from "@fable-org/fable-library-js/BigInt.js";
7
+ import { parse, fromInt32, uint64 as uint64_1, toUInt64, int64 as int64_1, fromFloat64, toInt64, toFloat64 } from "@fable-org/fable-library-js/BigInt.js";
8
8
  import { tryParse as tryParse_4 } from "@fable-org/fable-library-js/Long.js";
9
9
  import { tryParse as tryParse_5, decimal as decimal_1 } from "@fable-org/fable-library-js/Decimal.js";
10
10
  import Decimal from "@fable-org/fable-library-js/Decimal.js";
11
11
  import { toUniversalTime, tryParse as tryParse_6, minValue } from "@fable-org/fable-library-js/Date.js";
12
12
  import { tryParse as tryParse_7, minValue as minValue_1 } from "@fable-org/fable-library-js/DateOffset.js";
13
13
  import { tryParse as tryParse_8 } from "@fable-org/fable-library-js/TimeSpan.js";
14
- import { map as map_4, value as value_45, defaultArg, some, Option } from "@fable-org/fable-library-js/Option.js";
14
+ import { map as map_4, value as value_44, defaultArg, some, Option } from "@fable-org/fable-library-js/Option.js";
15
15
  import { ofArray, toArray, map as map_1, length, singleton, append as append_1, tail as tail_1, head as head_1, isEmpty, ofSeq, empty, reverse, fold, FSharpList, tryLast, cons } from "@fable-org/fable-library-js/List.js";
16
16
  import { IComparable, int16ToString, numberHash, compare, comparePrimitives, uncurry3, defaultOf, uncurry2, int32ToString } from "@fable-org/fable-library-js/Util.js";
17
17
  import { map as map_2, tryFind, foldBack, fill, setItem, fold as fold_1, item } from "@fable-org/fable-library-js/Array.js";
@@ -306,64 +306,45 @@ export const uint32 = (path: string): ((arg0: any) => FSharpResult$2_$union<uint
306
306
  }
307
307
  });
308
308
 
309
- export function int64(path: string, value_1: any): FSharpResult$2_$union<int64_1, [string, ErrorReason_$union]> {
310
- if (typeof value_1 === "number") {
311
- const floatVal: float64 = value_1;
312
- if ((floatVal >= toFloat64(-9223372036854775808n)) && (floatVal <= toFloat64(9223372036854775807n))) {
313
- return FSharpResult$2_Ok<int64_1, [string, ErrorReason_$union]>(toInt64(fromFloat64(floatVal)));
314
- }
315
- else {
316
- return FSharpResult$2_Error<int64_1, [string, ErrorReason_$union]>([path, ErrorReason_BadPrimitive("an int64", value_1)] as [string, ErrorReason_$union]);
317
- }
309
+ export const int64 = (path: string): ((arg0: any) => FSharpResult$2_$union<int64_1, [string, ErrorReason_$union]>) => ((value_2: any): FSharpResult$2_$union<int64_1, [string, ErrorReason_$union]> => {
310
+ const path_1: string = path;
311
+ const value_3: any = value_2;
312
+ if ((typeof value_3) === "number") {
313
+ const value_1_1: float64 = value_3;
314
+ return (isFinite(value_1_1) && Math.floor(value_1_1) === value_1_1) ? (((toFloat64(-9223372036854775808n) <= value_1_1) && (value_1_1 <= toFloat64(9223372036854775807n))) ? FSharpResult$2_Ok<int64_1, [string, ErrorReason_$union]>(toInt64(fromFloat64(value_1_1))) : FSharpResult$2_Error<int64_1, [string, ErrorReason_$union]>([path_1, ErrorReason_BadPrimitiveExtra("an int64", value_1_1, "Value was either too large or too small for an int64")] as [string, ErrorReason_$union])) : FSharpResult$2_Error<int64_1, [string, ErrorReason_$union]>([path_1, ErrorReason_BadPrimitiveExtra("an int64", value_1_1, "Value is not an integral value")] as [string, ErrorReason_$union]);
318
315
  }
319
- else if (typeof value_1 === "string") {
316
+ else if (typeof value_3 === "string") {
320
317
  let matchValue: [boolean, int64_1];
321
318
  let outArg: int64_1 = 0n;
322
- matchValue = ([tryParse_4(value_1, 511, false, 64, new FSharpRef<int64_1>((): int64_1 => outArg, (v: int64_1): void => {
319
+ matchValue = ([tryParse_4(value_3, 511, false, 64, new FSharpRef<int64_1>((): int64_1 => outArg, (v: int64_1): void => {
323
320
  outArg = v;
324
321
  })), outArg] as [boolean, int64_1]);
325
- if (matchValue[0]) {
326
- return FSharpResult$2_Ok<int64_1, [string, ErrorReason_$union]>(matchValue[1]);
327
- }
328
- else {
329
- return FSharpResult$2_Error<int64_1, [string, ErrorReason_$union]>([path, ErrorReason_BadPrimitive("an int64", value_1)] as [string, ErrorReason_$union]);
330
- }
322
+ return matchValue[0] ? FSharpResult$2_Ok<int64_1, [string, ErrorReason_$union]>(matchValue[1]) : FSharpResult$2_Error<int64_1, [string, ErrorReason_$union]>([path_1, ErrorReason_BadPrimitive("an int64", value_3)] as [string, ErrorReason_$union]);
331
323
  }
332
324
  else {
333
- return FSharpResult$2_Error<int64_1, [string, ErrorReason_$union]>([path, ErrorReason_BadPrimitive("an int64", value_1)] as [string, ErrorReason_$union]);
325
+ return FSharpResult$2_Error<int64_1, [string, ErrorReason_$union]>([path_1, ErrorReason_BadPrimitive("an int64", value_3)] as [string, ErrorReason_$union]);
334
326
  }
335
- }
327
+ });
336
328
 
337
- export function uint64(path: string, value_1: any): FSharpResult$2_$union<uint64_1, [string, ErrorReason_$union]> {
338
- if (typeof value_1 === "bigint") {
339
- return FSharpResult$2_Ok<uint64_1, [string, ErrorReason_$union]>(value_1);
340
- }
341
- else if (typeof value_1 === "number") {
342
- const floatVal: float64 = value_1;
343
- if (((floatVal >= 0) && (floatVal <= toFloat64(18446744073709551615n))) && (floatVal === Math.floor(floatVal))) {
344
- return FSharpResult$2_Ok<uint64_1, [string, ErrorReason_$union]>(toUInt64(fromFloat64(floatVal)));
345
- }
346
- else {
347
- return FSharpResult$2_Error<uint64_1, [string, ErrorReason_$union]>([path, ErrorReason_BadPrimitive("an uint64", value_1)] as [string, ErrorReason_$union]);
348
- }
329
+ export const uint64 = (path: string): ((arg0: any) => FSharpResult$2_$union<uint64_1, [string, ErrorReason_$union]>) => ((value_2: any): FSharpResult$2_$union<uint64_1, [string, ErrorReason_$union]> => {
330
+ const path_1: string = path;
331
+ const value_3: any = value_2;
332
+ if ((typeof value_3) === "number") {
333
+ const value_1_1: float64 = value_3;
334
+ return (isFinite(value_1_1) && Math.floor(value_1_1) === value_1_1) ? (((toFloat64(0n) <= value_1_1) && (value_1_1 <= toFloat64(18446744073709551615n))) ? FSharpResult$2_Ok<uint64_1, [string, ErrorReason_$union]>(toUInt64(fromFloat64(value_1_1))) : FSharpResult$2_Error<uint64_1, [string, ErrorReason_$union]>([path_1, ErrorReason_BadPrimitiveExtra("an uint64", value_1_1, "Value was either too large or too small for an uint64")] as [string, ErrorReason_$union])) : FSharpResult$2_Error<uint64_1, [string, ErrorReason_$union]>([path_1, ErrorReason_BadPrimitiveExtra("an uint64", value_1_1, "Value is not an integral value")] as [string, ErrorReason_$union]);
349
335
  }
350
- else if (typeof value_1 === "string") {
336
+ else if (typeof value_3 === "string") {
351
337
  let matchValue: [boolean, uint64_1];
352
338
  let outArg: uint64_1 = 0n;
353
- matchValue = ([tryParse_4(value_1, 511, true, 64, new FSharpRef<uint64_1>((): uint64_1 => outArg, (v: uint64_1): void => {
339
+ matchValue = ([tryParse_4(value_3, 511, true, 64, new FSharpRef<uint64_1>((): uint64_1 => outArg, (v: uint64_1): void => {
354
340
  outArg = v;
355
341
  })), outArg] as [boolean, uint64_1]);
356
- if (matchValue[0]) {
357
- return FSharpResult$2_Ok<uint64_1, [string, ErrorReason_$union]>(matchValue[1]);
358
- }
359
- else {
360
- return FSharpResult$2_Error<uint64_1, [string, ErrorReason_$union]>([path, ErrorReason_BadPrimitive("an uint64", value_1)] as [string, ErrorReason_$union]);
361
- }
342
+ return matchValue[0] ? FSharpResult$2_Ok<uint64_1, [string, ErrorReason_$union]>(matchValue[1]) : FSharpResult$2_Error<uint64_1, [string, ErrorReason_$union]>([path_1, ErrorReason_BadPrimitive("an uint64", value_3)] as [string, ErrorReason_$union]);
362
343
  }
363
344
  else {
364
- return FSharpResult$2_Error<uint64_1, [string, ErrorReason_$union]>([path, ErrorReason_BadPrimitive("an uint64", value_1)] as [string, ErrorReason_$union]);
345
+ return FSharpResult$2_Error<uint64_1, [string, ErrorReason_$union]>([path_1, ErrorReason_BadPrimitive("an uint64", value_3)] as [string, ErrorReason_$union]);
365
346
  }
366
- }
347
+ });
367
348
 
368
349
  export function bigint(path: string, value_1: any): FSharpResult$2_$union<bigint, [string, ErrorReason_$union]> {
369
350
  if ((typeof value_1) === "number") {
@@ -596,7 +577,7 @@ export function optionalAt<value>(fieldNames: FSharpList<string>, decoder: ((arg
596
577
  }
597
578
  }
598
579
  else {
599
- return value_45(_arg[2]);
580
+ return value_44(_arg[2]);
600
581
  }
601
582
  }
602
583
 
@@ -645,7 +626,7 @@ export function at<value>(fieldNames: FSharpList<string>, decoder: ((arg0: strin
645
626
  return decoder(_arg[0], _arg[1]);
646
627
  }
647
628
  else {
648
- return value_45(_arg[2]);
629
+ return value_44(_arg[2]);
649
630
  }
650
631
  }
651
632
 
@@ -1668,7 +1649,7 @@ function mixedArray(offset: int32, decoders: ((arg0: string) => ((arg0: any) =>
1668
1649
  function makeUnion(extra: FSharpMap<string, FSharpRef<((arg0: string) => ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>))>>, caseStrategy: CaseStrategy_$union, t: any, name: string, path: string, values: any[]): FSharpResult$2_$union<any, [string, ErrorReason_$union]> {
1669
1650
  const uci: Option<any> = tryFind<any>((x: any): boolean => (name_3(x) === name), getUnionCases(t, true));
1670
1651
  if (uci != null) {
1671
- const uci_1: any = value_45(uci);
1652
+ const uci_1: any = value_44(uci);
1672
1653
  const decoders: ((arg0: string) => ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>))[] = map_2<any, ((arg0: string) => ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>))>((fi: any): ((arg0: string) => ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>)) => autoDecoder(extra, caseStrategy, false, fi[1]), getUnionCaseFields(uci_1));
1673
1654
  return Result_Map<FSharpList<any>, any, [string, ErrorReason_$union]>((values_2: FSharpList<any>): any => makeUnion_1(uci_1, toArray<any>(values_2), true), ((decoders.length === 0) && (values.length <= 1)) ? FSharpResult$2_Ok<FSharpList<any>, [string, ErrorReason_$union]>(empty<any>()) : mixedArray(1, decoders, path, values));
1674
1655
  }
@@ -1897,19 +1878,21 @@ function autoDecoder(extra: FSharpMap<string, FSharpRef<((arg0: string) => ((arg
1897
1878
  case "System.Single":
1898
1879
  return (path_28: string): ((arg0: any) => FSharpResult$2_$union<float32_1, [string, ErrorReason_$union]>) => ((value_37: any): FSharpResult$2_$union<float32_1, [string, ErrorReason_$union]> => float32(path_28, value_37));
1899
1880
  case "System.Int64":
1900
- return (path_29: string): ((arg0: any) => FSharpResult$2_$union<int64_1, [string, ErrorReason_$union]>) => ((value_38: any): FSharpResult$2_$union<int64_1, [string, ErrorReason_$union]> => int64(path_29, value_38));
1881
+ return int64;
1901
1882
  case "System.UInt64":
1902
- return (path_30: string): ((arg0: any) => FSharpResult$2_$union<uint64_1, [string, ErrorReason_$union]>) => ((value_39: any): FSharpResult$2_$union<uint64_1, [string, ErrorReason_$union]> => uint64(path_30, value_39));
1883
+ return uint64;
1903
1884
  case "System.Numerics.BigInteger":
1904
- return (path_31: string): ((arg0: any) => FSharpResult$2_$union<bigint, [string, ErrorReason_$union]>) => ((value_40: any): FSharpResult$2_$union<bigint, [string, ErrorReason_$union]> => bigint(path_31, value_40));
1885
+ return (path_29: string): ((arg0: any) => FSharpResult$2_$union<bigint, [string, ErrorReason_$union]>) => ((value_38: any): FSharpResult$2_$union<bigint, [string, ErrorReason_$union]> => bigint(path_29, value_38));
1886
+ case "System.Decimal":
1887
+ return (path_30: string): ((arg0: any) => FSharpResult$2_$union<decimal_1, [string, ErrorReason_$union]>) => ((value_39: any): FSharpResult$2_$union<decimal_1, [string, ErrorReason_$union]> => decimal(path_30, value_39));
1905
1888
  case "System.DateTime":
1906
- return (path_32: string): ((arg0: any) => FSharpResult$2_$union<Date, [string, ErrorReason_$union]>) => ((value_41: any): FSharpResult$2_$union<Date, [string, ErrorReason_$union]> => datetimeUtc(path_32, value_41));
1889
+ return (path_31: string): ((arg0: any) => FSharpResult$2_$union<Date, [string, ErrorReason_$union]>) => ((value_40: any): FSharpResult$2_$union<Date, [string, ErrorReason_$union]> => datetimeUtc(path_31, value_40));
1907
1890
  case "System.DateTimeOffset":
1908
- return (path_33: string): ((arg0: any) => FSharpResult$2_$union<Date, [string, ErrorReason_$union]>) => ((value_42: any): FSharpResult$2_$union<Date, [string, ErrorReason_$union]> => datetimeOffset(path_33, value_42));
1891
+ return (path_32: string): ((arg0: any) => FSharpResult$2_$union<Date, [string, ErrorReason_$union]>) => ((value_41: any): FSharpResult$2_$union<Date, [string, ErrorReason_$union]> => datetimeOffset(path_32, value_41));
1909
1892
  case "System.TimeSpan":
1910
- return (path_34: string): ((arg0: any) => FSharpResult$2_$union<number, [string, ErrorReason_$union]>) => ((value_43: any): FSharpResult$2_$union<number, [string, ErrorReason_$union]> => timespan(path_34, value_43));
1893
+ return (path_33: string): ((arg0: any) => FSharpResult$2_$union<number, [string, ErrorReason_$union]>) => ((value_42: any): FSharpResult$2_$union<number, [string, ErrorReason_$union]> => timespan(path_33, value_42));
1911
1894
  case "System.Guid":
1912
- return (path_35: string): ((arg0: any) => FSharpResult$2_$union<string, [string, ErrorReason_$union]>) => ((value_44: any): FSharpResult$2_$union<string, [string, ErrorReason_$union]> => guid(path_35, value_44));
1895
+ return (path_34: string): ((arg0: any) => FSharpResult$2_$union<string, [string, ErrorReason_$union]>) => ((value_43: any): FSharpResult$2_$union<string, [string, ErrorReason_$union]> => guid(path_34, value_43));
1913
1896
  case "System.Object":
1914
1897
  return (_arg_6: string): ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>) => (FSharpResult$2_Ok);
1915
1898
  default:
@@ -1918,14 +1901,14 @@ function autoDecoder(extra: FSharpMap<string, FSharpRef<((arg0: string) => ((arg
1918
1901
  }
1919
1902
  }
1920
1903
  else {
1921
- const decoderRef: FSharpRef<((arg0: string) => ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>))> = value_45(matchValue);
1904
+ const decoderRef: FSharpRef<((arg0: string) => ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>))> = value_44(matchValue);
1922
1905
  return (path: string): ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>) => ((value_1: any): FSharpResult$2_$union<any, [string, ErrorReason_$union]> => decoderRef.contents(path)(value_1));
1923
1906
  }
1924
1907
  }
1925
1908
 
1926
1909
  function makeExtra(extra: Option<ExtraCoders>): FSharpMap<string, FSharpRef<((arg0: string) => ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>))>> {
1927
1910
  if (extra != null) {
1928
- return map_3<string, [((arg0: any) => any), ((arg0: string) => ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>))], FSharpRef<((arg0: string) => ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>))>>((_arg: string, tupledArg: [((arg0: any) => any), ((arg0: string) => ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>))]): FSharpRef<((arg0: string) => ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>))> => (new FSharpRef<((arg0: string) => ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>))>(tupledArg[1])), value_45(extra).Coders);
1911
+ return map_3<string, [((arg0: any) => any), ((arg0: string) => ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>))], FSharpRef<((arg0: string) => ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>))>>((_arg: string, tupledArg: [((arg0: any) => any), ((arg0: string) => ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>))]): FSharpRef<((arg0: string) => ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>))> => (new FSharpRef<((arg0: string) => ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>))>(tupledArg[1])), value_44(extra).Coders);
1929
1912
  }
1930
1913
  else {
1931
1914
  return empty_1<string, FSharpRef<((arg0: string) => ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>))>>({
@@ -2,10 +2,10 @@ import { decimal as decimal_1, toString as toString_1 } from "@fable-org/fable-l
2
2
  import { comparePrimitives, Lazy, IDisposable, disposeSafe, IEnumerator, getEnumerator, defaultOf } from "@fable-org/fable-library-js/Util.js";
3
3
  import { map as map_1, FSharpList } from "@fable-org/fable-library-js/List.js";
4
4
  import { empty, map as map_5, tryFind, add, FSharpMap, toList } from "@fable-org/fable-library-js/Map.js";
5
- import { uint64 as uint64_1, int64 as int64_1, toFloat64, compare, toString as toString_2 } from "@fable-org/fable-library-js/BigInt.js";
5
+ import { uint64 as uint64_1, int64 as int64_1, toString as toString_2 } from "@fable-org/fable-library-js/BigInt.js";
6
6
  import { toString as toString_3 } from "@fable-org/fable-library-js/Date.js";
7
7
  import { toString as toString_4 } from "@fable-org/fable-library-js/TimeSpan.js";
8
- import { defaultArg, value as value_46, Option, map as map_2, defaultArgWith, some } from "@fable-org/fable-library-js/Option.js";
8
+ import { defaultArg, value as value_48, Option, map as map_2, defaultArgWith, some } from "@fable-org/fable-library-js/Option.js";
9
9
  import { float32, float64, uint32, uint16, int16, uint8, int8, int32 } from "@fable-org/fable-library-js/Int32.js";
10
10
  import { toString as toString_5, FSharpRef } from "@fable-org/fable-library-js/Types.js";
11
11
  import { class_type, TypeInfo, getGenerics, getGenericTypeDefinition, getTupleFields, getTupleElements, isTuple, isGenericType, getEnumUnderlyingType, isEnum, getElementType, isArray, getUnionCaseFields, getUnionFields, isUnion, getRecordElements, getRecordField, name, isRecord, fullName as fullName_1 } from "@fable-org/fable-library-js/Reflection.js";
@@ -134,21 +134,11 @@ export function timespan(value: number): any {
134
134
  }
135
135
 
136
136
  export function int64(value: int64_1): any {
137
- if ((compare(value, -9007199254740991n) >= 0) && (compare(value, 9007199254740991n) <= 0)) {
138
- return toFloat64(value);
139
- }
140
- else {
141
- return String(value);
142
- }
137
+ return String(value);
143
138
  }
144
139
 
145
140
  export function uint64(value: uint64_1): any {
146
- if (compare(value, 9007199254740991n) <= 0) {
147
- return toFloat64(value);
148
- }
149
- else {
150
- return String(value);
151
- }
141
+ return String(value);
152
142
  }
153
143
 
154
144
  export function unit(): any {
@@ -416,6 +406,10 @@ function autoEncoder(extra: FSharpMap<string, FSharpRef<((arg0: any) => any)>>,
416
406
  return int64;
417
407
  case "System.UInt64":
418
408
  return uint64;
409
+ case "System.Numerics.BigInteger":
410
+ return bigint;
411
+ case "System.Decimal":
412
+ return decimal;
419
413
  case "System.DateTime":
420
414
  return datetime;
421
415
  case "System.DateTimeOffset":
@@ -432,14 +426,14 @@ function autoEncoder(extra: FSharpMap<string, FSharpRef<((arg0: any) => any)>>,
432
426
  }
433
427
  }
434
428
  else {
435
- const encoderRef: FSharpRef<((arg0: any) => any)> = value_46(matchValue);
429
+ const encoderRef: FSharpRef<((arg0: any) => any)> = value_48(matchValue);
436
430
  return (v: any): any => encoderRef.contents(v);
437
431
  }
438
432
  }
439
433
 
440
434
  function makeExtra(extra: Option<ExtraCoders>): FSharpMap<string, FSharpRef<((arg0: any) => any)>> {
441
435
  if (extra != null) {
442
- return map_5<string, [((arg0: any) => any), ((arg0: string) => ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>))], FSharpRef<((arg0: any) => any)>>((_arg: string, tupledArg: [((arg0: any) => any), ((arg0: string) => ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>))]): FSharpRef<((arg0: any) => any)> => (new FSharpRef<((arg0: any) => any)>(tupledArg[0])), value_46(extra).Coders);
436
+ return map_5<string, [((arg0: any) => any), ((arg0: string) => ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>))], FSharpRef<((arg0: any) => any)>>((_arg: string, tupledArg: [((arg0: any) => any), ((arg0: string) => ((arg0: any) => FSharpResult$2_$union<any, [string, ErrorReason_$union]>))]): FSharpRef<((arg0: any) => any)> => (new FSharpRef<((arg0: any) => any)>(tupledArg[0])), value_48(extra).Coders);
443
437
  }
444
438
  else {
445
439
  return empty<string, FSharpRef<((arg0: any) => any)>>({