@f1studio/form-spec 5.0.0-alpha.101

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 (225) hide show
  1. package/Designer.d.ts +89 -0
  2. package/FormSpec.TS/Components/HelloComponent.js +68 -0
  3. package/FormSpec.TS/Components/HelloComponent.js.map +1 -0
  4. package/FormSpec.TS/Components/HelloComponent.ts.map +1 -0
  5. package/FormSpec.TS/Designer.js +526 -0
  6. package/FormSpec.TS/Designer.js.map +1 -0
  7. package/FormSpec.TS/Designer.ts.map +1 -0
  8. package/FormSpec.TS/FormSpec.js +5400 -0
  9. package/FormSpec.TS/FormSpec.js.map +1 -0
  10. package/FormSpec.TS/FormSpec.ts.map +1 -0
  11. package/FormSpec.TS/FormSpecHelpers.js +382 -0
  12. package/FormSpec.TS/FormSpecHelpers.js.map +1 -0
  13. package/FormSpec.TS/FormSpecHelpers.ts.map +1 -0
  14. package/FormSpec.TS/Helpers.js +732 -0
  15. package/FormSpec.TS/Helpers.js.map +1 -0
  16. package/FormSpec.TS/Helpers.ts.map +1 -0
  17. package/FormSpec.TS/Interfaces.js +257 -0
  18. package/FormSpec.TS/Interfaces.js.map +1 -0
  19. package/FormSpec.TS/Interfaces.ts.map +1 -0
  20. package/FormSpec.TS/Interop/FormSpec.Api.Helpers.js +854 -0
  21. package/FormSpec.TS/Interop/FormSpec.Api.Helpers.js.map +1 -0
  22. package/FormSpec.TS/Interop/FormSpec.Api.Helpers.ts.map +1 -0
  23. package/FormSpec.TS/Interop/FormSpec.Api.Option.js +1961 -0
  24. package/FormSpec.TS/Interop/FormSpec.Api.Option.js.map +1 -0
  25. package/FormSpec.TS/Interop/FormSpec.Api.Option.ts.map +1 -0
  26. package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.js +1367 -0
  27. package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.js.map +1 -0
  28. package/FormSpec.TS/Interop/FormSpec.Values.Api.Option.ts.map +1 -0
  29. package/FormSpec.TS/Logging/LogTypes.js +347 -0
  30. package/FormSpec.TS/Logging/LogTypes.js.map +1 -0
  31. package/FormSpec.TS/Logging/LogTypes.ts.map +1 -0
  32. package/FormSpec.TS/Migrator.js +230 -0
  33. package/FormSpec.TS/Migrator.js.map +1 -0
  34. package/FormSpec.TS/Migrator.ts.map +1 -0
  35. package/FormSpec.TS/PathwayDataExtractor.js +361 -0
  36. package/FormSpec.TS/PathwayDataExtractor.js.map +1 -0
  37. package/FormSpec.TS/PathwayDataExtractor.ts.map +1 -0
  38. package/FormSpec.TS/PathwayExecutor.js +1321 -0
  39. package/FormSpec.TS/PathwayExecutor.js.map +1 -0
  40. package/FormSpec.TS/PathwayExecutor.ts.map +1 -0
  41. package/FormSpec.TS/PathwayValidator.js +346 -0
  42. package/FormSpec.TS/PathwayValidator.js.map +1 -0
  43. package/FormSpec.TS/PathwayValidator.ts.map +1 -0
  44. package/FormSpec.TS/PluginInterface.js +171 -0
  45. package/FormSpec.TS/PluginInterface.js.map +1 -0
  46. package/FormSpec.TS/PluginInterface.ts.map +1 -0
  47. package/FormSpec.TS/Prelude.js +59 -0
  48. package/FormSpec.TS/Prelude.js.map +1 -0
  49. package/FormSpec.TS/Prelude.ts.map +1 -0
  50. package/FormSpec.TS/Renderers/FormSpecMarkdownRenderer.js +958 -0
  51. package/FormSpec.TS/Renderers/FormSpecMarkdownRenderer.js.map +1 -0
  52. package/FormSpec.TS/Renderers/FormSpecMarkdownRenderer.ts.map +1 -0
  53. package/FormSpec.TS/Renderers/MermaidRenderer.js +228 -0
  54. package/FormSpec.TS/Renderers/MermaidRenderer.js.map +1 -0
  55. package/FormSpec.TS/Renderers/MermaidRenderer.ts.map +1 -0
  56. package/FormSpec.TS/Renderers/PathwayRenderers.js +190 -0
  57. package/FormSpec.TS/Renderers/PathwayRenderers.js.map +1 -0
  58. package/FormSpec.TS/Renderers/PathwayRenderers.ts.map +1 -0
  59. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs +511 -0
  60. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs.js +437 -0
  61. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs.js.map +1 -0
  62. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Base.fs.ts.map +1 -0
  63. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs +16 -0
  64. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs.js +73 -0
  65. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs.js.map +1 -0
  66. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Error.fs.ts.map +1 -0
  67. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs +50 -0
  68. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs.js +72 -0
  69. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs.js.map +1 -0
  70. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Extensions.fs.ts.map +1 -0
  71. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Fable.Form.fableproj +28 -0
  72. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs +24 -0
  73. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs.js +56 -0
  74. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs.js.map +1 -0
  75. package/FormSpec.TS/fable_modules/Fable.Form.3.0.0/Field.fs.ts.map +1 -0
  76. package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Fable.Form.Simple.fableproj +31 -0
  77. package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs +178 -0
  78. package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs.js +464 -0
  79. package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs.js.map +1 -0
  80. package/FormSpec.TS/fable_modules/Fable.Form.Simple.5.0.1/Form.fs.ts.map +1 -0
  81. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Extensions.fs +17 -0
  82. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs +152 -0
  83. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs.js +25 -0
  84. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs.js.map +1 -0
  85. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Hooks.fs.ts.map +1 -0
  86. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.Types.fableproj +28 -0
  87. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs +218 -0
  88. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.js +37 -0
  89. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.js.map +1 -0
  90. package/FormSpec.TS/fable_modules/Fable.React.Types.18.3.0/Fable.React.fs.ts.map +1 -0
  91. package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.Types.fableproj +27 -0
  92. package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs +82 -0
  93. package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs.js +7 -0
  94. package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs.js.map +1 -0
  95. package/FormSpec.TS/fable_modules/Fable.ReactDom.Types.18.2.0/Fable.ReactDom.fs.ts.map +1 -0
  96. package/FormSpec.TS/fable_modules/Feliz.2.7.0/BorderStyle.fs +59 -0
  97. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Colors.fs +154 -0
  98. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Colors.fs.js +32 -0
  99. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Colors.fs.js.map +1 -0
  100. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Colors.fs.ts.map +1 -0
  101. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Feliz.fableproj +42 -0
  102. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Fonts.fs +240 -0
  103. package/FormSpec.TS/fable_modules/Feliz.2.7.0/GridTypes.fs +24 -0
  104. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Html.fs +826 -0
  105. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs +83 -0
  106. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs.js +292 -0
  107. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs.js.map +1 -0
  108. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Interop.fs.ts.map +1 -0
  109. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Key.fs +65 -0
  110. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Key.fs.js +229 -0
  111. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Key.fs.js.map +1 -0
  112. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Key.fs.ts.map +1 -0
  113. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Length.fs +91 -0
  114. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Locale.fs +876 -0
  115. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Properties.fs +4080 -0
  116. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Properties.fs.js +133 -0
  117. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Properties.fs.js.map +1 -0
  118. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Properties.fs.ts.map +1 -0
  119. package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs +656 -0
  120. package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs.js +561 -0
  121. package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs.js.map +1 -0
  122. package/FormSpec.TS/fable_modules/Feliz.2.7.0/React.fs.ts.map +1 -0
  123. package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactDOM.fs +25 -0
  124. package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactDOM.fs.js +46 -0
  125. package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactDOM.fs.js.map +1 -0
  126. package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactDOM.fs.ts.map +1 -0
  127. package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactInterop.js +63 -0
  128. package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactInterop.js.map +1 -0
  129. package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactTypes.fs +41 -0
  130. package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactTypes.fs.js +7 -0
  131. package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactTypes.fs.js.map +1 -0
  132. package/FormSpec.TS/fable_modules/Feliz.2.7.0/ReactTypes.fs.ts.map +1 -0
  133. package/FormSpec.TS/fable_modules/Feliz.2.7.0/StyleTypes.fs +53 -0
  134. package/FormSpec.TS/fable_modules/Feliz.2.7.0/StyleTypes.fs.js +7 -0
  135. package/FormSpec.TS/fable_modules/Feliz.2.7.0/StyleTypes.fs.js.map +1 -0
  136. package/FormSpec.TS/fable_modules/Feliz.2.7.0/StyleTypes.fs.ts.map +1 -0
  137. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Styles.fs +5740 -0
  138. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Svg.fs +1455 -0
  139. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Svg.fs.js +39 -0
  140. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Svg.fs.js.map +1 -0
  141. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Svg.fs.ts.map +1 -0
  142. package/FormSpec.TS/fable_modules/Feliz.2.7.0/TextDecorationLine.fs +13 -0
  143. package/FormSpec.TS/fable_modules/Feliz.2.7.0/TextDecorationStyle.fs +33 -0
  144. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Transform.fs +181 -0
  145. package/FormSpec.TS/fable_modules/Feliz.2.7.0/TransformOrigin.fs +17 -0
  146. package/FormSpec.TS/fable_modules/Feliz.2.7.0/TransitionProperty.fs +162 -0
  147. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Types.fs +13 -0
  148. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Types.fs.js +7 -0
  149. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Types.fs.js.map +1 -0
  150. package/FormSpec.TS/fable_modules/Feliz.2.7.0/Types.fs.ts.map +1 -0
  151. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Decode.fs +1768 -0
  152. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Decode.fs.js +2337 -0
  153. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Decode.fs.js.map +1 -0
  154. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Decode.fs.ts.map +1 -0
  155. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs +811 -0
  156. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.js +465 -0
  157. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.js.map +1 -0
  158. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Encode.fs.ts.map +1 -0
  159. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Extra.fs +47 -0
  160. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Extra.fs.js +18 -0
  161. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Extra.fs.js.map +1 -0
  162. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Extra.fs.ts.map +1 -0
  163. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Thoth.Json.fableproj +34 -0
  164. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Types.fs +68 -0
  165. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Types.fs.js +355 -0
  166. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Types.fs.js.map +1 -0
  167. package/FormSpec.TS/fable_modules/Thoth.Json.10.4.1/Types.fs.ts.map +1 -0
  168. package/FormSpec.TS/fable_modules/project_cracked.json +1 -0
  169. package/FormSpec.d.ts +1257 -0
  170. package/FormSpecHelpers.d.ts +50 -0
  171. package/Helpers.d.ts +147 -0
  172. package/Interfaces.d.ts +70 -0
  173. package/Interop/FormSpec.Api.Helpers.d.ts +247 -0
  174. package/Interop/FormSpec.Api.Helpers.d.ts.map +1 -0
  175. package/Interop/FormSpec.Api.Option.d.ts +384 -0
  176. package/Interop/FormSpec.Api.Option.d.ts.map +1 -0
  177. package/Interop/FormSpec.Values.Api.Option.d.ts +324 -0
  178. package/Interop/FormSpec.Values.Api.Option.d.ts.map +1 -0
  179. package/Migrator.d.ts +59 -0
  180. package/PathwayDataExtractor.d.ts +19 -0
  181. package/PathwayExecutor.d.ts +210 -0
  182. package/PathwayValidator.d.ts +52 -0
  183. package/PluginInterface.d.ts +36 -0
  184. package/Prelude.d.ts +11 -0
  185. package/README.TS.md +622 -0
  186. package/README.md +85 -0
  187. package/package.json +39 -0
  188. package/src/Components/HelloComponent.ts +48 -0
  189. package/src/Components/HelloComponent.ts.map +1 -0
  190. package/src/Designer.ts +389 -0
  191. package/src/Designer.ts.map +1 -0
  192. package/src/FormSpec.ts +3114 -0
  193. package/src/FormSpec.ts.map +1 -0
  194. package/src/FormSpecHelpers.ts +374 -0
  195. package/src/FormSpecHelpers.ts.map +1 -0
  196. package/src/Helpers.ts +765 -0
  197. package/src/Helpers.ts.map +1 -0
  198. package/src/Interfaces.ts +166 -0
  199. package/src/Interfaces.ts.map +1 -0
  200. package/src/Interop/FormSpec.Api.Helpers.ts +872 -0
  201. package/src/Interop/FormSpec.Api.Helpers.ts.map +1 -0
  202. package/src/Interop/FormSpec.Api.Option.ts +1618 -0
  203. package/src/Interop/FormSpec.Api.Option.ts.map +1 -0
  204. package/src/Interop/FormSpec.Values.Api.Option.ts +1214 -0
  205. package/src/Interop/FormSpec.Values.Api.Option.ts.map +1 -0
  206. package/src/Logging/LogTypes.ts +212 -0
  207. package/src/Logging/LogTypes.ts.map +1 -0
  208. package/src/Migrator.ts +156 -0
  209. package/src/Migrator.ts.map +1 -0
  210. package/src/PathwayDataExtractor.ts +290 -0
  211. package/src/PathwayDataExtractor.ts.map +1 -0
  212. package/src/PathwayExecutor.ts +1102 -0
  213. package/src/PathwayExecutor.ts.map +1 -0
  214. package/src/PathwayValidator.ts +244 -0
  215. package/src/PathwayValidator.ts.map +1 -0
  216. package/src/PluginInterface.ts +79 -0
  217. package/src/PluginInterface.ts.map +1 -0
  218. package/src/Prelude.ts +21 -0
  219. package/src/Prelude.ts.map +1 -0
  220. package/src/Renderers/FormSpecMarkdownRenderer.ts +874 -0
  221. package/src/Renderers/FormSpecMarkdownRenderer.ts.map +1 -0
  222. package/src/Renderers/MermaidRenderer.ts +218 -0
  223. package/src/Renderers/MermaidRenderer.ts.map +1 -0
  224. package/src/Renderers/PathwayRenderers.ts +200 -0
  225. package/src/Renderers/PathwayRenderers.ts.map +1 -0
@@ -0,0 +1,324 @@
1
+ import { Record } from "@fable-org/fable-library-js/Types.js";
2
+ import { Types_ScoreTS, Types_FieldOptionTS, Types_FieldTypeTS, Types_MatrixItemKeyTS, Types_FieldKeyTS } from "./FormSpec.Api.Option.js";
3
+ import { IComparable, IEquatable } from "@fable-org/fable-library-js/Util.js";
4
+ import { TypeInfo } from "@fable-org/fable-library-js/Reflection.js";
5
+ import { Option } from "@fable-org/fable-library-js/Option.js";
6
+ import { int32 } from "@fable-org/fable-library-js/Int32.js";
7
+ import { Values_DynamicFormResultData$1, Values_DynamicForm$1, Values_DynamicFormSpecDetails, Values_Signature, Values_SignatureType_$union, Values_FormStatus_$union, Spec_FieldType_$union, Values_FieldDetails$1, Shared_FieldValue_$union, Shared_MatrixAnswer, Shared_FieldKey, Shared_FieldAnswer } from "../FormSpec.js";
8
+ import { FSharpMap } from "@fable-org/fable-library-js/Map.js";
9
+ export declare class ValuesTypes_FieldAnswerTS extends Record implements IEquatable<ValuesTypes_FieldAnswerTS>, IComparable<ValuesTypes_FieldAnswerTS> {
10
+ readonly FieldKey: Types_FieldKeyTS;
11
+ readonly Description: string;
12
+ readonly Value: string;
13
+ constructor(FieldKey: Types_FieldKeyTS, Description: string, Value: string);
14
+ }
15
+ export declare function ValuesTypes_FieldAnswerTS_$reflection(): TypeInfo;
16
+ export declare class ValuesTypes_MatrixAnswerTS extends Record implements IEquatable<ValuesTypes_MatrixAnswerTS>, IComparable<ValuesTypes_MatrixAnswerTS> {
17
+ readonly FieldKey: Types_FieldKeyTS;
18
+ readonly Description: string;
19
+ readonly Values: [Types_MatrixItemKeyTS, string][];
20
+ constructor(FieldKey: Types_FieldKeyTS, Description: string, Values: [Types_MatrixItemKeyTS, string][]);
21
+ }
22
+ export declare function ValuesTypes_MatrixAnswerTS_$reflection(): TypeInfo;
23
+ export declare class ValuesTypes_FieldValueTS extends Record implements IEquatable<ValuesTypes_FieldValueTS>, IComparable<ValuesTypes_FieldValueTS> {
24
+ readonly Type: string;
25
+ readonly FieldAnswer: Option<ValuesTypes_FieldAnswerTS>;
26
+ readonly FieldAnswers: Option<ValuesTypes_FieldAnswerTS[]>;
27
+ readonly MatrixAnswer: Option<ValuesTypes_MatrixAnswerTS>;
28
+ constructor(Type: string, FieldAnswer: Option<ValuesTypes_FieldAnswerTS>, FieldAnswers: Option<ValuesTypes_FieldAnswerTS[]>, MatrixAnswer: Option<ValuesTypes_MatrixAnswerTS>);
29
+ }
30
+ export declare function ValuesTypes_FieldValueTS_$reflection(): TypeInfo;
31
+ export declare class ValuesTypes_FieldDetailsTS extends Record implements IEquatable<ValuesTypes_FieldDetailsTS>, IComparable<ValuesTypes_FieldDetailsTS> {
32
+ readonly FieldOrder: int32;
33
+ readonly Key: Types_FieldKeyTS;
34
+ readonly Label: string;
35
+ readonly FieldValue: ValuesTypes_FieldValueTS;
36
+ readonly FieldType: Types_FieldTypeTS;
37
+ readonly Options: Types_FieldOptionTS[];
38
+ constructor(FieldOrder: int32, Key: Types_FieldKeyTS, Label: string, FieldValue: ValuesTypes_FieldValueTS, FieldType: Types_FieldTypeTS, Options: Types_FieldOptionTS[]);
39
+ }
40
+ export declare function ValuesTypes_FieldDetailsTS_$reflection(): TypeInfo;
41
+ export declare class ValuesTypes_FormStatusTS extends Record implements IEquatable<ValuesTypes_FormStatusTS>, IComparable<ValuesTypes_FormStatusTS> {
42
+ readonly Type: string;
43
+ readonly DraftId: Option<string>;
44
+ constructor(Type: string, DraftId: Option<string>);
45
+ }
46
+ export declare function ValuesTypes_FormStatusTS_$reflection(): TypeInfo;
47
+ export declare class ValuesTypes_SignatureTS extends Record implements IEquatable<ValuesTypes_SignatureTS>, IComparable<ValuesTypes_SignatureTS> {
48
+ readonly ApprovedById: string;
49
+ readonly ApprovedByFullName: string;
50
+ readonly ApprovedByDate: string;
51
+ readonly ApprovalSignature: string;
52
+ readonly SignatureType: int32;
53
+ constructor(ApprovedById: string, ApprovedByFullName: string, ApprovedByDate: string, ApprovalSignature: string, SignatureType: int32);
54
+ }
55
+ export declare function ValuesTypes_SignatureTS_$reflection(): TypeInfo;
56
+ export declare class ValuesTypes_DynamicFormSpecDetailsTS extends Record implements IEquatable<ValuesTypes_DynamicFormSpecDetailsTS>, IComparable<ValuesTypes_DynamicFormSpecDetailsTS> {
57
+ readonly FormSpecId: string;
58
+ readonly FormSpecCode: Option<string>;
59
+ readonly FormSpecVersion: string;
60
+ readonly DynamicVersion: string;
61
+ readonly MaxScore: Option<Types_ScoreTS>;
62
+ readonly Status: ValuesTypes_FormStatusTS;
63
+ readonly Signatures: ValuesTypes_SignatureTS[];
64
+ constructor(FormSpecId: string, FormSpecCode: Option<string>, FormSpecVersion: string, DynamicVersion: string, MaxScore: Option<Types_ScoreTS>, Status: ValuesTypes_FormStatusTS, Signatures: ValuesTypes_SignatureTS[]);
65
+ }
66
+ export declare function ValuesTypes_DynamicFormSpecDetailsTS_$reflection(): TypeInfo;
67
+ export declare class ValuesTypes_FableFormStateTS extends Record implements IEquatable<ValuesTypes_FableFormStateTS>, IComparable<ValuesTypes_FableFormStateTS> {
68
+ readonly Type: string;
69
+ readonly Error: Option<string>;
70
+ readonly Success: Option<string>;
71
+ constructor(Type: string, Error$: Option<string>, Success: Option<string>);
72
+ }
73
+ export declare function ValuesTypes_FableFormStateTS_$reflection(): TypeInfo;
74
+ export declare class ValuesTypes_ErrorTrackingTS extends Record implements IEquatable<ValuesTypes_ErrorTrackingTS>, IComparable<ValuesTypes_ErrorTrackingTS> {
75
+ readonly Type: string;
76
+ readonly ShowAllErrors: boolean;
77
+ readonly ShowFieldError: string[];
78
+ constructor(Type: string, ShowAllErrors: boolean, ShowFieldError: string[]);
79
+ }
80
+ export declare function ValuesTypes_ErrorTrackingTS_$reflection(): TypeInfo;
81
+ export declare class ValuesTypes_FableFormModelTS extends Record implements IEquatable<ValuesTypes_FableFormModelTS>, IComparable<ValuesTypes_FableFormModelTS> {
82
+ readonly Values: [Types_FieldKeyTS, ValuesTypes_FieldDetailsTS][];
83
+ readonly State: ValuesTypes_FableFormStateTS;
84
+ readonly ErrorTracking: ValuesTypes_ErrorTrackingTS;
85
+ constructor(Values: [Types_FieldKeyTS, ValuesTypes_FieldDetailsTS][], State: ValuesTypes_FableFormStateTS, ErrorTracking: ValuesTypes_ErrorTrackingTS);
86
+ }
87
+ export declare function ValuesTypes_FableFormModelTS_$reflection(): TypeInfo;
88
+ export declare class ValuesTypes_DynamicFormTS extends Record implements IEquatable<ValuesTypes_DynamicFormTS>, IComparable<ValuesTypes_DynamicFormTS> {
89
+ readonly DynamicFormSpecDetails: ValuesTypes_DynamicFormSpecDetailsTS;
90
+ readonly Steps: [int32, ValuesTypes_FableFormModelTS][];
91
+ constructor(DynamicFormSpecDetails: ValuesTypes_DynamicFormSpecDetailsTS, Steps: [int32, ValuesTypes_FableFormModelTS][]);
92
+ }
93
+ export declare function ValuesTypes_DynamicFormTS_$reflection(): TypeInfo;
94
+ export declare class ValuesTypes_DynamicFormResultDataTS extends Record implements IEquatable<ValuesTypes_DynamicFormResultDataTS>, IComparable<ValuesTypes_DynamicFormResultDataTS> {
95
+ readonly ResultFormSpecDetails: ValuesTypes_DynamicFormSpecDetailsTS;
96
+ readonly ResultSteps: [int32, [Types_FieldKeyTS, ValuesTypes_FieldDetailsTS][]][];
97
+ constructor(ResultFormSpecDetails: ValuesTypes_DynamicFormSpecDetailsTS, ResultSteps: [int32, [Types_FieldKeyTS, ValuesTypes_FieldDetailsTS][]][]);
98
+ }
99
+ export declare function ValuesTypes_DynamicFormResultDataTS_$reflection(): TypeInfo;
100
+ /**
101
+ * Convert F# FieldAnswer to TypeScript representation
102
+ */
103
+ export declare function ValuesConverters_fieldAnswerToTS(answer: Shared_FieldAnswer): ValuesTypes_FieldAnswerTS;
104
+ /**
105
+ * Convert TypeScript FieldAnswer to F# representation
106
+ */
107
+ export declare function ValuesConverters_fieldAnswerFromTS(answer: ValuesTypes_FieldAnswerTS): Option<Shared_FieldAnswer>;
108
+ /**
109
+ * Convert F# MatrixAnswer to TypeScript representation
110
+ */
111
+ export declare function ValuesConverters_matrixAnswerToTS(answer: Shared_MatrixAnswer): ValuesTypes_MatrixAnswerTS;
112
+ /**
113
+ * Convert TypeScript MatrixAnswer to F# representation
114
+ */
115
+ export declare function ValuesConverters_matrixAnswerFromTS(answer: ValuesTypes_MatrixAnswerTS): Option<Shared_MatrixAnswer>;
116
+ /**
117
+ * Convert F# FieldValue to TypeScript representation
118
+ */
119
+ export declare function ValuesConverters_fieldValueToTS(value: Shared_FieldValue_$union): ValuesTypes_FieldValueTS;
120
+ /**
121
+ * Convert TypeScript FieldValue to F# representation
122
+ */
123
+ export declare function ValuesConverters_fieldValueFromTS(value: ValuesTypes_FieldValueTS): Option<Shared_FieldValue_$union>;
124
+ /**
125
+ * Convert F# FieldDetails to TypeScript representation
126
+ */
127
+ export declare function ValuesConverters_fieldDetailsToTS(details: Values_FieldDetails$1<Spec_FieldType_$union>): ValuesTypes_FieldDetailsTS;
128
+ /**
129
+ * Convert TypeScript FieldDetails to F# representation
130
+ */
131
+ export declare function ValuesConverters_fieldDetailsFromTS(details: ValuesTypes_FieldDetailsTS): Option<Values_FieldDetails$1<Spec_FieldType_$union>>;
132
+ /**
133
+ * Convert F# FormStatus to TypeScript representation
134
+ */
135
+ export declare function ValuesConverters_formStatusToTS(status: Values_FormStatus_$union): ValuesTypes_FormStatusTS;
136
+ /**
137
+ * Convert TypeScript FormStatus to F# representation
138
+ */
139
+ export declare function ValuesConverters_formStatusFromTS(status: ValuesTypes_FormStatusTS): Option<Values_FormStatus_$union>;
140
+ /**
141
+ * Convert F# SignatureType to TypeScript representation
142
+ */
143
+ export declare function ValuesConverters_signatureTypeToTS(sigType: Values_SignatureType_$union): int32;
144
+ /**
145
+ * Convert TypeScript SignatureType to F# representation
146
+ */
147
+ export declare function ValuesConverters_signatureTypeFromTS(sigType: int32): Option<Values_SignatureType_$union>;
148
+ /**
149
+ * Convert F# Signature to TypeScript representation
150
+ */
151
+ export declare function ValuesConverters_signatureToTS(signature: Values_Signature): ValuesTypes_SignatureTS;
152
+ /**
153
+ * Convert TypeScript Signature to F# representation
154
+ */
155
+ export declare function ValuesConverters_signatureFromTS(signature: ValuesTypes_SignatureTS): Option<Values_Signature>;
156
+ /**
157
+ * Convert F# DynamicStepValues to TypeScript representation
158
+ */
159
+ export declare function ValuesConverters_dynamicStepValuesToTS(stepValues: FSharpMap<Shared_FieldKey, Values_FieldDetails$1<Spec_FieldType_$union>>): [Types_FieldKeyTS, ValuesTypes_FieldDetailsTS][];
160
+ /**
161
+ * Convert TypeScript DynamicStepValues to F# representation
162
+ */
163
+ export declare function ValuesConverters_dynamicStepValuesFromTS(stepValues: [Types_FieldKeyTS, ValuesTypes_FieldDetailsTS][]): Option<FSharpMap<Shared_FieldKey, Values_FieldDetails$1<Spec_FieldType_$union>>>;
164
+ /**
165
+ * Convert F# DynamicFormSpecDetails to TypeScript representation
166
+ */
167
+ export declare function ValuesConverters_dynamicFormSpecDetailsToTS(details: Values_DynamicFormSpecDetails): ValuesTypes_DynamicFormSpecDetailsTS;
168
+ /**
169
+ * Convert TypeScript DynamicFormSpecDetails to F# representation
170
+ */
171
+ export declare function ValuesConverters_dynamicFormSpecDetailsFromTS(details: ValuesTypes_DynamicFormSpecDetailsTS): Option<Values_DynamicFormSpecDetails>;
172
+ /**
173
+ * Convert F# FableFormState to TypeScript representation
174
+ * Note: This is a simplified representation - actual Fable.Form.View.State may differ
175
+ * Fable doesn't support reflection, so this is a placeholder that returns None
176
+ * In practice, you would need to pattern match on the concrete State type
177
+ */
178
+ export declare function ValuesConverters_fableFormStateToTS(state: any): Option<ValuesTypes_FableFormStateTS>;
179
+ /**
180
+ * Convert TypeScript FableFormState to F# representation
181
+ * Note: This returns obj as we can't directly construct Fable.Form types
182
+ */
183
+ export declare function ValuesConverters_fableFormStateFromTS(state: ValuesTypes_FableFormStateTS): Option<any>;
184
+ /**
185
+ * Convert F# ErrorTracking to TypeScript representation
186
+ * Note: Fable doesn't support reflection, so this is a placeholder
187
+ * In practice, you would need to pattern match on the concrete ErrorTracking type
188
+ */
189
+ export declare function ValuesConverters_errorTrackingToTS(tracking: any): Option<ValuesTypes_ErrorTrackingTS>;
190
+ /**
191
+ * Convert TypeScript ErrorTracking to F# representation
192
+ * Note: This returns obj as we can't directly construct Fable.Form types
193
+ */
194
+ export declare function ValuesConverters_errorTrackingFromTS(tracking: ValuesTypes_ErrorTrackingTS): Option<any>;
195
+ /**
196
+ * Convert F# FableFormModel to TypeScript representation
197
+ * Note: This handles Form.View.Model<DynamicStepValues>
198
+ * This is a simplified version - in practice, you may need to handle this differently
199
+ */
200
+ export declare function ValuesConverters_fableFormModelToTS(model: any): Option<ValuesTypes_FableFormModelTS>;
201
+ /**
202
+ * Convert TypeScript FableFormModel to F# representation
203
+ * Note: This returns obj as we can't directly construct Fable.Form types
204
+ */
205
+ export declare function ValuesConverters_fableFormModelFromTS(model: ValuesTypes_FableFormModelTS): Option<any>;
206
+ /**
207
+ * Convert F# DynamicForm to TypeScript representation
208
+ */
209
+ export declare function ValuesConverters_dynamicFormToTS<FableFormModel>(form: Values_DynamicForm$1<FableFormModel>): Option<ValuesTypes_DynamicFormTS>;
210
+ /**
211
+ * Convert TypeScript DynamicForm to F# representation
212
+ * Note: Returns obj as we can't directly construct generic DynamicForm
213
+ */
214
+ export declare function ValuesConverters_dynamicFormFromTS(form: ValuesTypes_DynamicFormTS): Option<any>;
215
+ /**
216
+ * Convert F# DynamicFormResultData to TypeScript representation
217
+ */
218
+ export declare function ValuesConverters_dynamicFormResultDataToTS(data: Values_DynamicFormResultData$1<Spec_FieldType_$union>): ValuesTypes_DynamicFormResultDataTS;
219
+ /**
220
+ * Convert TypeScript DynamicFormResultData to F# representation
221
+ */
222
+ export declare function ValuesConverters_dynamicFormResultDataFromTS(data: ValuesTypes_DynamicFormResultDataTS): Option<Values_DynamicFormResultData$1<Spec_FieldType_$union>>;
223
+ /**
224
+ * Validate a TypeScript DynamicFormResultData object from JavaScript/TypeScript
225
+ */
226
+ export declare function ValuesValidators_validateDynamicFormResultData(input: any): Option<ValuesTypes_DynamicFormResultDataTS>;
227
+ /**
228
+ * Validate and convert a TypeScript DynamicFormResultData to F# domain type
229
+ */
230
+ export declare function ValuesValidators_validateAndConvertDynamicFormResultData(input: any): Option<Values_DynamicFormResultData$1<Spec_FieldType_$union>>;
231
+ /**
232
+ * Validate a TypeScript DynamicForm object
233
+ */
234
+ export declare function ValuesValidators_validateDynamicForm(input: any): Option<ValuesTypes_DynamicFormTS>;
235
+ /**
236
+ * Validate a TypeScript FieldAnswer object
237
+ */
238
+ export declare function ValuesValidators_validateFieldAnswer(input: any): Option<ValuesTypes_FieldAnswerTS>;
239
+ /**
240
+ * Validate a TypeScript FieldValue object
241
+ */
242
+ export declare function ValuesValidators_validateFieldValue(input: any): Option<ValuesTypes_FieldValueTS>;
243
+ /**
244
+ * Create a new FieldAnswer
245
+ */
246
+ export declare function ValuesBuilders_createFieldAnswer(fieldKey: Types_FieldKeyTS, description: string, value: string): ValuesTypes_FieldAnswerTS;
247
+ /**
248
+ * Create a new FieldValue with Single case
249
+ */
250
+ export declare function ValuesBuilders_createSingleFieldValue(answer: ValuesTypes_FieldAnswerTS): ValuesTypes_FieldValueTS;
251
+ /**
252
+ * Create a new FieldValue with Multiple case
253
+ */
254
+ export declare function ValuesBuilders_createMultipleFieldValue(answers: ValuesTypes_FieldAnswerTS[]): ValuesTypes_FieldValueTS;
255
+ /**
256
+ * Create a new FieldValue with Matrix case
257
+ */
258
+ export declare function ValuesBuilders_createMatrixFieldValue(answer: ValuesTypes_MatrixAnswerTS): ValuesTypes_FieldValueTS;
259
+ /**
260
+ * Create a new FormStatus with Pending case
261
+ */
262
+ export declare function ValuesBuilders_createPendingStatus(): ValuesTypes_FormStatusTS;
263
+ /**
264
+ * Create a new FormStatus with Draft case
265
+ */
266
+ export declare function ValuesBuilders_createDraftStatus(draftId: string): ValuesTypes_FormStatusTS;
267
+ /**
268
+ * Create a new FormStatus with Complete case
269
+ */
270
+ export declare function ValuesBuilders_createCompleteStatus(): ValuesTypes_FormStatusTS;
271
+ /**
272
+ * Main entry point: Validate a DynamicFormResultData from TypeScript/JavaScript
273
+ */
274
+ export declare function ValuesApi_validateDynamicFormResultData<$a>(): ((arg0: $a) => Option<ValuesTypes_DynamicFormResultDataTS>);
275
+ /**
276
+ * Validate and convert a DynamicFormResultData to F# domain type
277
+ */
278
+ export declare function ValuesApi_validateAndConvertDynamicFormResultData<$a>(): ((arg0: $a) => Option<Values_DynamicFormResultData$1<Spec_FieldType_$union>>);
279
+ /**
280
+ * Validate a DynamicForm from TypeScript
281
+ */
282
+ export declare function ValuesApi_validateDynamicForm<$a>(): ((arg0: $a) => Option<ValuesTypes_DynamicFormTS>);
283
+ /**
284
+ * Validate a FieldAnswer from TypeScript
285
+ */
286
+ export declare function ValuesApi_validateFieldAnswer<$a>(): ((arg0: $a) => Option<ValuesTypes_FieldAnswerTS>);
287
+ /**
288
+ * Validate a FieldValue from TypeScript
289
+ */
290
+ export declare function ValuesApi_validateFieldValue<$a>(): ((arg0: $a) => Option<ValuesTypes_FieldValueTS>);
291
+ /**
292
+ * Convert F# DynamicFormResultData to TypeScript representation
293
+ */
294
+ export declare function ValuesApi_dynamicFormResultDataToTypeScript(data: Values_DynamicFormResultData$1<Spec_FieldType_$union>): ValuesTypes_DynamicFormResultDataTS;
295
+ /**
296
+ * Convert TypeScript DynamicFormResultData to F# representation
297
+ */
298
+ export declare function ValuesApi_dynamicFormResultDataFromTypeScript(data: ValuesTypes_DynamicFormResultDataTS): Option<Values_DynamicFormResultData$1<Spec_FieldType_$union>>;
299
+ /**
300
+ * Convert F# DynamicForm to TypeScript representation
301
+ * Note: This requires the form to be cast to the concrete type
302
+ * DynamicForm<Form.View.Model<DynamicStepValues>>
303
+ */
304
+ export declare function ValuesApi_dynamicFormToTypeScript(form: any): Option<ValuesTypes_DynamicFormTS>;
305
+ /**
306
+ * Convert TypeScript DynamicForm to F# representation
307
+ */
308
+ export declare function ValuesApi_dynamicFormFromTypeScript(form: ValuesTypes_DynamicFormTS): Option<any>;
309
+ export declare const ValuesApi_createFieldAnswer: (fieldKey: Types_FieldKeyTS) => ((arg0: string) => ((arg0: string) => ValuesTypes_FieldAnswerTS));
310
+ export declare const ValuesApi_createSingleFieldValue: typeof ValuesBuilders_createSingleFieldValue;
311
+ export declare const ValuesApi_createMultipleFieldValue: typeof ValuesBuilders_createMultipleFieldValue;
312
+ export declare const ValuesApi_createMatrixFieldValue: typeof ValuesBuilders_createMatrixFieldValue;
313
+ export declare const ValuesApi_createPendingStatus: typeof ValuesBuilders_createPendingStatus;
314
+ export declare const ValuesApi_createDraftStatus: typeof ValuesBuilders_createDraftStatus;
315
+ export declare const ValuesApi_createCompleteStatus: typeof ValuesBuilders_createCompleteStatus;
316
+ /**
317
+ * Serialize a DynamicFormResultData to JSON string
318
+ */
319
+ export declare function ValuesApi_serializeDynamicFormResultData(data: ValuesTypes_DynamicFormResultDataTS): string;
320
+ /**
321
+ * Deserialize a DynamicFormResultData from JSON string
322
+ */
323
+ export declare function ValuesApi_deserializeDynamicFormResultData(json: string): Option<ValuesTypes_DynamicFormResultDataTS>;
324
+ //# sourceMappingURL=FormSpec.Values.Api.Option.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormSpec.Values.Api.Option.d.ts","sourceRoot":"","sources":["../../FormSpec.TS/Interop/FormSpec.Values.Api.Option.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAA+O,aAAa,EAAkE,mBAAmB,EAAE,iBAAiB,EAAqC,qBAAqB,EAAgC,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACxf,OAAO,EAAwC,WAAW,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACpH,OAAO,EAA6G,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAChL,OAAO,EAAwC,MAAM,EAAE,MAAM,uCAAuC,CAAC;AACrG,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAE,8BAA8B,EAAE,oBAAoB,EAAoB,6BAA6B,EAAc,gBAAgB,EAA8D,2BAA2B,EAA4J,wBAAwB,EAAE,qBAAqB,EAAE,qBAAqB,EAAsG,wBAAwB,EAA6B,mBAAmB,EAAwB,eAAe,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEzsB,OAAO,EAAc,SAAS,EAAU,MAAM,oCAAoC,CAAC;AASnF,qBAAa,yBAA0B,SAAQ,MAAO,YAAW,UAAU,CAAC,yBAAyB,CAAC,EAAE,WAAW,CAAC,yBAAyB,CAAC;IAC1I,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IACpC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,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,KAAK,MAAM,CAAC,wBAAwB,CAAC,CAAC,CAEnG;AAED;;GAEG;AACH,wBAAgB,2CAA2C,CAAC,IAAI,EAAE,8BAA8B,CAAC,qBAAqB,CAAC,GAAG,mCAAmC,CAE5J;AAED;;GAEG;AACH,wBAAgB,6CAA6C,CAAC,IAAI,EAAE,mCAAmC,GAAG,MAAM,CAAC,8BAA8B,CAAC,qBAAqB,CAAC,CAAC,CAEtK;AAED;;;;GAIG;AACH,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM,CAAC,yBAAyB,CAAC,CAE9F;AAED;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,yBAAyB,GAAG,MAAM,CAAC,GAAG,CAAC,CAEhG;AAED,eAAO,MAAM,2BAA2B,GAAI,UAAU,gBAAgB,KAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,yBAAyB,CAAC,CAA6L,CAAC;AAEvU,eAAO,MAAM,gCAAgC,8CAAwC,CAAC;AAEtF,eAAO,MAAM,kCAAkC,gDAA0C,CAAC;AAE1F,eAAO,MAAM,gCAAgC,8CAAwC,CAAC;AAEtF,eAAO,MAAM,6BAA6B,2CAAqC,CAAC;AAEhF,eAAO,MAAM,2BAA2B,yCAAmC,CAAC;AAE5E,eAAO,MAAM,8BAA8B,4CAAsC,CAAC;AAElF;;GAEG;AACH,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,mCAAmC,GAAG,MAAM,CAE1G;AAED;;GAEG;AACH,wBAAgB,0CAA0C,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,mCAAmC,CAAC,CAQpH"}
package/Migrator.d.ts ADDED
@@ -0,0 +1,59 @@
1
+ import { Union } from "@fable-org/fable-library-js/Types.js";
2
+ import { TypeInfo } from "@fable-org/fable-library-js/Reflection.js";
3
+ import { Spec_FormSpec$1 } from "./FormSpec.js";
4
+ export declare function Base64_decode(text: string): string;
5
+ export declare function Base64_encode(text: string): string;
6
+ export type FormSpec_FormSpecInput_$union = FormSpec_FormSpecInput<0> | FormSpec_FormSpecInput<1>;
7
+ export type FormSpec_FormSpecInput_$cases = {
8
+ 0: ["Latest", []];
9
+ 1: ["Unknown", []];
10
+ };
11
+ export declare function FormSpec_FormSpecInput_Latest(): FormSpec_FormSpecInput<0>;
12
+ export declare function FormSpec_FormSpecInput_Unknown(): FormSpec_FormSpecInput<1>;
13
+ export declare class FormSpec_FormSpecInput<Tag extends keyof FormSpec_FormSpecInput_$cases> extends Union<Tag, FormSpec_FormSpecInput_$cases[Tag][0]> {
14
+ readonly tag: Tag;
15
+ readonly fields: FormSpec_FormSpecInput_$cases[Tag][1];
16
+ constructor(tag: Tag, fields: FormSpec_FormSpecInput_$cases[Tag][1]);
17
+ cases(): string[];
18
+ }
19
+ export declare function FormSpec_FormSpecInput_$reflection(): TypeInfo;
20
+ export declare class FormSpec_FormSpecOutput extends Union<0, "Latest"> {
21
+ constructor();
22
+ readonly tag: 0;
23
+ readonly fields: [];
24
+ cases(): string[];
25
+ }
26
+ export declare function FormSpec_FormSpecOutput_$reflection(): TypeInfo;
27
+ export declare class FormSpec_FormSpecVersion$1<FieldType> extends Union<0, "Latest"> {
28
+ constructor(Item: Spec_FormSpec$1<FieldType>);
29
+ readonly tag: 0;
30
+ readonly fields: [Spec_FormSpec$1<FieldType>];
31
+ cases(): string[];
32
+ }
33
+ export declare function FormSpec_FormSpecVersion$1_$reflection(gen0: TypeInfo): TypeInfo;
34
+ export declare function FormSpec_migrateTo<FieldType>(outputVersion: FormSpec_FormSpecOutput, formSpec: FormSpec_FormSpecVersion$1<FieldType>): FormSpec_FormSpecVersion$1<FieldType>;
35
+ export declare function FormSpec_decodeFormSpec<FieldType>(inputVersion: FormSpec_FormSpecInput_$union, formSpecJson: string): FormSpec_FormSpecVersion$1<FieldType>;
36
+ export declare function FormSpec_decodeFormSpecB64<$a>(inputVersion: FormSpec_FormSpecInput_$union, formSpecB64: string): FormSpec_FormSpecVersion$1<$a>;
37
+ export declare function FormSpec_decodeAndMigrateFormSpecBase64<$a>(inputVersion: FormSpec_FormSpecInput_$union, formSpecB64: string): Spec_FormSpec$1<$a>;
38
+ export declare class Values_FormValuesInput extends Union<0, "Latest"> {
39
+ constructor();
40
+ readonly tag: 0;
41
+ readonly fields: [];
42
+ cases(): string[];
43
+ }
44
+ export declare function Values_FormValuesInput_$reflection(): TypeInfo;
45
+ export declare class Values_FormValuesOutput extends Union<0, "Latest"> {
46
+ constructor();
47
+ readonly tag: 0;
48
+ readonly fields: [];
49
+ cases(): string[];
50
+ }
51
+ export declare function Values_FormValuesOutput_$reflection(): TypeInfo;
52
+ export declare class Values_FormValuesVersion$1<FieldType> extends Union<0, "Latest"> {
53
+ constructor(Item: string);
54
+ readonly tag: 0;
55
+ readonly fields: [string];
56
+ cases(): string[];
57
+ }
58
+ export declare function Values_FormValuesVersion$1_$reflection(gen0: TypeInfo): TypeInfo;
59
+ //# sourceMappingURL=Migrator.d.ts.map
@@ -0,0 +1,19 @@
1
+ import { ClinicalPathway_TerminalInfo, Shared_StateKey, ClinicalPathway_StateType_$union, ClinicalPathway_EvaluationInfo, ClinicalPathway_DecisionInfo, ClinicalPathway_ActionInfo_$union } from "./FormSpec.js";
2
+ import { FSharpList } from "@fable-org/fable-library-js/List.js";
3
+ import { int32 } from "@fable-org/fable-library-js/Int32.js";
4
+ export declare function extractActionText(action: ClinicalPathway_ActionInfo_$union): string;
5
+ export declare function extractActionDetails(action: ClinicalPathway_ActionInfo_$union): string;
6
+ export declare function extractActionType(action: ClinicalPathway_ActionInfo_$union): string;
7
+ export declare function extractDecisionDetails(decision: ClinicalPathway_DecisionInfo): [string, FSharpList<string>];
8
+ export declare function extractEvaluationDetails(evaluation: ClinicalPathway_EvaluationInfo): [string, FSharpList<string>];
9
+ export declare function extractEvaluationName(evaluation: ClinicalPathway_EvaluationInfo): string;
10
+ export declare function stateTypeToString(stateType: ClinicalPathway_StateType_$union): string;
11
+ export declare function isTerminalState(stateType: ClinicalPathway_StateType_$union): boolean;
12
+ export declare function extractCompoundActionTexts(actions: FSharpList<ClinicalPathway_ActionInfo_$union>): FSharpList<string>;
13
+ export declare function extractCompoundActionDetails(actions: FSharpList<ClinicalPathway_ActionInfo_$union>): FSharpList<string>;
14
+ export declare function sanitizeMermaidId(id: string): string;
15
+ export declare function sanitizeMermaidText(text: string): string;
16
+ export declare function wrapTextForReactFlow(text: string, maxWidth: int32): string;
17
+ export declare function extractStateKeyString(stateKey: Shared_StateKey): string;
18
+ export declare function getTerminalOutcome(terminal: ClinicalPathway_TerminalInfo): string;
19
+ //# sourceMappingURL=PathwayDataExtractor.d.ts.map
@@ -0,0 +1,210 @@
1
+ import { Record, Union } from "@fable-org/fable-library-js/Types.js";
2
+ import { FSharpList } from "@fable-org/fable-library-js/List.js";
3
+ import { TypeInfo } from "@fable-org/fable-library-js/Reflection.js";
4
+ import { ClinicalPathway_SetFieldValueAction, ClinicalPathway_FieldValueSource_$union, ClinicalPathway_PathwayExecutionMode_$union, ClinicalPathway_StateDefinition, ClinicalPathway_TransitionCondition_$union, Shared_ConditionValue_$union, ClinicalPathway_FieldEvaluator_$union, Shared_FieldValue_$union, Shared_TransitionKey, Shared_FieldKey, Values_DynamicFormResultData$1, ClinicalPathway_ActionInfo_$union, Spec_FormSpec$1, ClinicalPathway_ClinicalPathwaySpec, Shared_StateKey, ClinicalPathway_TransitionDefinition } from "./FormSpec.js";
5
+ import { float64, int32 } from "@fable-org/fable-library-js/Int32.js";
6
+ import { IComparable, IEquatable } from "@fable-org/fable-library-js/Util.js";
7
+ import { FSharpSet } from "@fable-org/fable-library-js/Set.js";
8
+ import { FSharpMap } from "@fable-org/fable-library-js/Map.js";
9
+ import { Option } from "@fable-org/fable-library-js/Option.js";
10
+ export type TransitionStatus_$union = TransitionStatus<0> | TransitionStatus<1> | TransitionStatus<2>;
11
+ export type TransitionStatus_$cases = {
12
+ 0: ["Satisfied", []];
13
+ 1: ["Failed", []];
14
+ 2: ["Pending", [FSharpList<string>]];
15
+ };
16
+ export declare function TransitionStatus_Satisfied(): TransitionStatus<0>;
17
+ export declare function TransitionStatus_Failed(): TransitionStatus<1>;
18
+ export declare function TransitionStatus_Pending(missingFields: FSharpList<string>): TransitionStatus<2>;
19
+ export declare class TransitionStatus<Tag extends keyof TransitionStatus_$cases> extends Union<Tag, TransitionStatus_$cases[Tag][0]> {
20
+ readonly tag: Tag;
21
+ readonly fields: TransitionStatus_$cases[Tag][1];
22
+ constructor(tag: Tag, fields: TransitionStatus_$cases[Tag][1]);
23
+ cases(): string[];
24
+ }
25
+ export declare function TransitionStatus_$reflection(): TypeInfo;
26
+ export declare class MatchedTransition extends Record implements IEquatable<MatchedTransition>, IComparable<MatchedTransition> {
27
+ readonly Transition: ClinicalPathway_TransitionDefinition;
28
+ readonly Priority: int32;
29
+ readonly Status: TransitionStatus_$union;
30
+ constructor(Transition: ClinicalPathway_TransitionDefinition, Priority: int32, Status: TransitionStatus_$union);
31
+ }
32
+ export declare function MatchedTransition_$reflection(): TypeInfo;
33
+ export declare class ExecutionLogEntry extends Record implements IEquatable<ExecutionLogEntry>, IComparable<ExecutionLogEntry> {
34
+ readonly Timestamp: Date;
35
+ readonly StateKey: Shared_StateKey;
36
+ readonly Action: string;
37
+ readonly Details: string;
38
+ constructor(Timestamp: Date, StateKey: Shared_StateKey, Action: string, Details: string);
39
+ }
40
+ export declare function ExecutionLogEntry_$reflection(): TypeInfo;
41
+ export declare class ExecutionContext$1<FieldType> extends Record {
42
+ readonly PathwaySpec: ClinicalPathway_ClinicalPathwaySpec;
43
+ readonly FormSpec: Spec_FormSpec$1<FieldType>;
44
+ readonly CurrentStates: FSharpSet<Shared_StateKey>;
45
+ readonly VisitedStates: FSharpSet<Shared_StateKey>;
46
+ readonly CompletedStates: FSharpSet<Shared_StateKey>;
47
+ readonly ActiveTransitions: FSharpList<MatchedTransition>;
48
+ readonly PendingTransitions: FSharpList<MatchedTransition>;
49
+ readonly ExecutedActions: FSharpList<ClinicalPathway_ActionInfo_$union>;
50
+ readonly FormData: Values_DynamicFormResultData$1<FieldType>;
51
+ readonly FieldResolver: ((arg0: string) => Shared_FieldKey);
52
+ readonly ExecutionLog: FSharpList<ExecutionLogEntry>;
53
+ constructor(PathwaySpec: ClinicalPathway_ClinicalPathwaySpec, FormSpec: Spec_FormSpec$1<FieldType>, CurrentStates: FSharpSet<Shared_StateKey>, VisitedStates: FSharpSet<Shared_StateKey>, CompletedStates: FSharpSet<Shared_StateKey>, ActiveTransitions: FSharpList<MatchedTransition>, PendingTransitions: FSharpList<MatchedTransition>, ExecutedActions: FSharpList<ClinicalPathway_ActionInfo_$union>, FormData: Values_DynamicFormResultData$1<FieldType>, FieldResolver: ((arg0: string) => Shared_FieldKey), ExecutionLog: FSharpList<ExecutionLogEntry>);
54
+ }
55
+ export declare function ExecutionContext$1_$reflection(gen0: TypeInfo): TypeInfo;
56
+ export declare class PredictedPathway extends Record implements IEquatable<PredictedPathway>, IComparable<PredictedPathway> {
57
+ readonly PathwayId: string;
58
+ readonly Probability: float64;
59
+ readonly RequiredFields: FSharpList<string>;
60
+ readonly ExpectedActions: FSharpList<ClinicalPathway_ActionInfo_$union>;
61
+ readonly TargetState: string;
62
+ constructor(PathwayId: string, Probability: float64, RequiredFields: FSharpList<string>, ExpectedActions: FSharpList<ClinicalPathway_ActionInfo_$union>, TargetState: string);
63
+ }
64
+ export declare function PredictedPathway_$reflection(): TypeInfo;
65
+ export declare class IncrementalExecutionResult$1<FieldType> extends Record {
66
+ readonly Context: ExecutionContext$1<FieldType>;
67
+ readonly NewlyActivatedStates: FSharpList<string>;
68
+ readonly NewlyActiveTransitions: FSharpList<ClinicalPathway_TransitionDefinition>;
69
+ readonly PredictedOutcomes: FSharpList<PredictedPathway>;
70
+ readonly CompletionPercentage: float64;
71
+ readonly IsComplete: boolean;
72
+ constructor(Context: ExecutionContext$1<FieldType>, NewlyActivatedStates: FSharpList<string>, NewlyActiveTransitions: FSharpList<ClinicalPathway_TransitionDefinition>, PredictedOutcomes: FSharpList<PredictedPathway>, CompletionPercentage: float64, IsComplete: boolean);
73
+ }
74
+ export declare function IncrementalExecutionResult$1_$reflection(gen0: TypeInfo): TypeInfo;
75
+ export declare class ClinicalPlan extends Record implements IEquatable<ClinicalPlan>, IComparable<ClinicalPlan> {
76
+ readonly PlanId: string;
77
+ readonly Actions: FSharpList<ClinicalPathway_ActionInfo_$union>;
78
+ readonly TargetState: string;
79
+ readonly Priority: int32;
80
+ constructor(PlanId: string, Actions: FSharpList<ClinicalPathway_ActionInfo_$union>, TargetState: string, Priority: int32);
81
+ }
82
+ export declare function ClinicalPlan_$reflection(): TypeInfo;
83
+ export declare class VisualizationState extends Record implements IEquatable<VisualizationState>, IComparable<VisualizationState> {
84
+ readonly CurrentStates: FSharpSet<Shared_StateKey>;
85
+ readonly VisitedStates: FSharpSet<Shared_StateKey>;
86
+ readonly ActiveTransitions: FSharpList<Shared_TransitionKey>;
87
+ readonly PendingTransitions: FSharpList<Shared_TransitionKey>;
88
+ readonly CompletedTransitions: FSharpList<string>;
89
+ readonly PredictedOutcomes: FSharpList<PredictedPathway>;
90
+ constructor(CurrentStates: FSharpSet<Shared_StateKey>, VisitedStates: FSharpSet<Shared_StateKey>, ActiveTransitions: FSharpList<Shared_TransitionKey>, PendingTransitions: FSharpList<Shared_TransitionKey>, CompletedTransitions: FSharpList<string>, PredictedOutcomes: FSharpList<PredictedPathway>);
91
+ }
92
+ export declare function VisualizationState_$reflection(): TypeInfo;
93
+ /**
94
+ * Generate deterministic GUID from field label
95
+ */
96
+ export declare function FieldResolver_generateFieldKey(fieldName: string): Shared_FieldKey;
97
+ /**
98
+ * Create resolver that maps pathway field references to FieldKeys
99
+ */
100
+ export declare function FieldResolver_createResolver<FieldType>(formSpec: Spec_FormSpec$1<FieldType>): ((arg0: string) => Shared_FieldKey);
101
+ /**
102
+ * Extract field values from form data using resolver
103
+ */
104
+ export declare function FieldResolver_extractFieldValues<FieldType>(resolver: ((arg0: string) => Shared_FieldKey), formData: Values_DynamicFormResultData$1<FieldType>): FSharpMap<Shared_FieldKey, string>;
105
+ /**
106
+ * Evaluate a field condition with a specific evaluator (string-based, kept for backward compatibility)
107
+ */
108
+ export declare function evaluateFieldCondition(actualValue: string, evaluator: ClinicalPathway_FieldEvaluator_$union, expectedValue: string): boolean;
109
+ /**
110
+ * Evaluate a field condition with ConditionValue (type-aware comparison)
111
+ */
112
+ export declare function evaluateFieldConditionWithConditionValue(actualFieldValue: Shared_FieldValue_$union, evaluator: ClinicalPathway_FieldEvaluator_$union, expectedConditionValue: Shared_ConditionValue_$union): boolean;
113
+ /**
114
+ * Recursively evaluate a transition condition with partial data support
115
+ */
116
+ export declare function evaluateTransitionWithPartialData<FieldType>(resolver: ((arg0: string) => Shared_FieldKey), formSpec: Option<Spec_FormSpec$1<FieldType>>, fieldValues: FSharpMap<Shared_FieldKey, string>, visitedStates: FSharpSet<Shared_StateKey>, condition: ClinicalPathway_TransitionCondition_$union): TransitionStatus_$union;
117
+ /**
118
+ * Find a state by key
119
+ */
120
+ export declare function findState(stateKey: Shared_StateKey, states: FSharpList<ClinicalPathway_StateDefinition>): Option<ClinicalPathway_StateDefinition>;
121
+ /**
122
+ * Extract actions from state
123
+ */
124
+ export declare function extractActionsFromState(state: ClinicalPathway_StateDefinition): FSharpList<ClinicalPathway_ActionInfo_$union>;
125
+ /**
126
+ * Check if a state is terminal
127
+ */
128
+ export declare function isTerminalState(state: ClinicalPathway_StateDefinition): boolean;
129
+ /**
130
+ * Evaluate all transitions from current states
131
+ */
132
+ export declare function evaluateAllTransitions<FieldType>(context: ExecutionContext$1<FieldType>): FSharpList<MatchedTransition>;
133
+ /**
134
+ * Separate matched transitions into active, pending, and failed
135
+ */
136
+ export declare function categorizeTransitions(transitions: FSharpList<MatchedTransition>): [FSharpList<MatchedTransition>, FSharpList<MatchedTransition>, FSharpList<MatchedTransition>];
137
+ /**
138
+ * Apply execution mode strategy to select transitions
139
+ */
140
+ export declare function selectTransitionsByMode(mode: ClinicalPathway_PathwayExecutionMode_$union, activeTransitions: FSharpList<MatchedTransition>): FSharpList<MatchedTransition>;
141
+ /**
142
+ * Calculate probability based on satisfied conditions and pending fields
143
+ */
144
+ export declare function calculateProbability(status: TransitionStatus_$union, totalConditions: int32): float64;
145
+ /**
146
+ * Predict possible outcomes based on current form state
147
+ */
148
+ export declare function predictOutcomes<FieldType>(context: ExecutionContext$1<FieldType>): FSharpList<PredictedPathway>;
149
+ /**
150
+ * Calculate completion percentage based on states visited and actions executed
151
+ */
152
+ export declare function calculateCompletionPercentage<FieldType>(context: ExecutionContext$1<FieldType>): float64;
153
+ /**
154
+ * Check if pathway execution is complete
155
+ */
156
+ export declare function isExecutionComplete<FieldType>(context: ExecutionContext$1<FieldType>): boolean;
157
+ /**
158
+ * Initialize execution context from scratch
159
+ */
160
+ export declare function initializeExecution<FieldType>(formSpec: Spec_FormSpec$1<FieldType>, formData: Values_DynamicFormResultData$1<FieldType>): ExecutionContext$1<FieldType>;
161
+ /**
162
+ * Resolve field value source to actual string value
163
+ */
164
+ export declare function resolveFieldValueSource<FieldType>(valueSource: ClinicalPathway_FieldValueSource_$union, formSpec: Spec_FormSpec$1<FieldType>, formData: Values_DynamicFormResultData$1<FieldType>): string;
165
+ /**
166
+ * Execute SetFieldValue action and update form data
167
+ */
168
+ export declare function executeSetFieldValueAction<FieldType>(action: ClinicalPathway_SetFieldValueAction, formSpec: Spec_FormSpec$1<FieldType>, formData: Values_DynamicFormResultData$1<FieldType>): Values_DynamicFormResultData$1<FieldType>;
169
+ /**
170
+ * Execute an action and return updated form data
171
+ */
172
+ export declare function executeAction<FieldType>(action: ClinicalPathway_ActionInfo_$union, formSpec: Spec_FormSpec$1<FieldType>, formData: Values_DynamicFormResultData$1<FieldType>): Values_DynamicFormResultData$1<FieldType>;
173
+ /**
174
+ * Execute all actions from a list and return updated form data
175
+ */
176
+ export declare function executeActions<FieldType>(actions: FSharpList<ClinicalPathway_ActionInfo_$union>, formSpec: Spec_FormSpec$1<FieldType>, formData: Values_DynamicFormResultData$1<FieldType>): Values_DynamicFormResultData$1<FieldType>;
177
+ /**
178
+ * Execute one step of the pathway (incremental execution)
179
+ */
180
+ export declare function executeStep<FieldType>(context_mut: ExecutionContext$1<FieldType>, maxIterations_mut: int32): ExecutionContext$1<FieldType>;
181
+ /**
182
+ * Process incremental updates as form fills
183
+ */
184
+ export declare function executeIncremental<FieldType>(context: ExecutionContext$1<FieldType>, formData: Values_DynamicFormResultData$1<FieldType>): IncrementalExecutionResult$1<FieldType>;
185
+ /**
186
+ * Get visualization state from execution context
187
+ */
188
+ export declare function getVisualizationState<FieldType>(context: ExecutionContext$1<FieldType>): VisualizationState;
189
+ /**
190
+ * Extract final clinical plans from execution context
191
+ */
192
+ export declare function extractClinicalPlans<FieldType>(context: ExecutionContext$1<FieldType>): FSharpList<ClinicalPlan>;
193
+ export declare class PathwayExecutionResult$1<FieldType> extends Record implements IEquatable<PathwayExecutionResult$1<FieldType>>, IComparable<PathwayExecutionResult$1<FieldType>> {
194
+ readonly PathwayId: string;
195
+ readonly StartState: string;
196
+ readonly CurrentState: string;
197
+ readonly ExecutionMode: ClinicalPathway_PathwayExecutionMode_$union;
198
+ readonly SelectedPaths: FSharpList<string>;
199
+ readonly RejectedPaths: FSharpList<[string, string]>;
200
+ readonly ExecutedActions: FSharpList<ClinicalPathway_ActionInfo_$union>;
201
+ readonly VisitedStates: FSharpList<string>;
202
+ readonly TransitionsUsed: FSharpList<string>;
203
+ readonly FormData: Values_DynamicFormResultData$1<FieldType>;
204
+ readonly ExecutionTime: Date;
205
+ readonly Success: boolean;
206
+ readonly Errors: FSharpList<string>;
207
+ constructor(PathwayId: string, StartState: string, CurrentState: string, ExecutionMode: ClinicalPathway_PathwayExecutionMode_$union, SelectedPaths: FSharpList<string>, RejectedPaths: FSharpList<[string, string]>, ExecutedActions: FSharpList<ClinicalPathway_ActionInfo_$union>, VisitedStates: FSharpList<string>, TransitionsUsed: FSharpList<string>, FormData: Values_DynamicFormResultData$1<FieldType>, ExecutionTime: Date, Success: boolean, Errors: FSharpList<string>);
208
+ }
209
+ export declare function PathwayExecutionResult$1_$reflection(gen0: TypeInfo): TypeInfo;
210
+ //# sourceMappingURL=PathwayExecutor.d.ts.map