@fossa-app/bridge 0.1.6 → 0.1.8

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 (265) hide show
  1. package/dist/Models/ApiModels.d.ts +199 -0
  2. package/dist/Models/ApiModels.js +350 -0
  3. package/dist/Models/ApiModels.js.map +1 -0
  4. package/dist/Services/Clients/BranchClient.d.ts +16 -0
  5. package/dist/Services/Clients/BranchClient.js +54 -0
  6. package/dist/Services/Clients/BranchClient.js.map +1 -0
  7. package/dist/Services/Clients/CompanyClient.d.ts +13 -0
  8. package/dist/Services/Clients/CompanyClient.js +38 -0
  9. package/dist/Services/Clients/CompanyClient.js.map +1 -0
  10. package/dist/Services/Clients/CompanyLicenseClient.d.ts +10 -0
  11. package/dist/Services/Clients/CompanyLicenseClient.js +30 -0
  12. package/dist/Services/Clients/CompanyLicenseClient.js.map +1 -0
  13. package/dist/Services/Clients/CompanySettingsClient.d.ts +13 -0
  14. package/dist/Services/Clients/CompanySettingsClient.js +38 -0
  15. package/dist/Services/Clients/CompanySettingsClient.js.map +1 -0
  16. package/dist/Services/Clients/DepartmentClient.d.ts +16 -0
  17. package/dist/Services/Clients/DepartmentClient.js +54 -0
  18. package/dist/Services/Clients/DepartmentClient.js.map +1 -0
  19. package/dist/Services/Clients/EmployeeClient.d.ts +18 -0
  20. package/dist/Services/Clients/EmployeeClient.js +63 -0
  21. package/dist/Services/Clients/EmployeeClient.js.map +1 -0
  22. package/dist/Services/Clients/IdentityClient.d.ts +9 -0
  23. package/dist/Services/Clients/IdentityClient.js +26 -0
  24. package/dist/Services/Clients/IdentityClient.js.map +1 -0
  25. package/dist/Services/Clients/SystemLicenseClient.d.ts +9 -0
  26. package/dist/Services/Clients/SystemLicenseClient.js +26 -0
  27. package/dist/Services/Clients/SystemLicenseClient.js.map +1 -0
  28. package/dist/Services/Endpoints.d.ts +10 -0
  29. package/dist/Services/Endpoints.js +14 -0
  30. package/dist/Services/Endpoints.js.map +1 -0
  31. package/dist/Services/IHttpTransport.d.ts +6 -0
  32. package/dist/Services/IHttpTransport.js +3 -0
  33. package/dist/Services/IHttpTransport.js.map +1 -0
  34. package/dist/Services/UrlHelpers.d.ts +25 -0
  35. package/dist/Services/UrlHelpers.js +103 -0
  36. package/dist/Services/UrlHelpers.js.map +1 -0
  37. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Array.d.ts +125 -0
  38. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Array.js +1371 -0
  39. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Array.js.map +1 -0
  40. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Async.d.ts +27 -0
  41. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Async.js +172 -0
  42. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Async.js.map +1 -0
  43. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/AsyncBuilder.d.ts +59 -0
  44. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/AsyncBuilder.js +194 -0
  45. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/AsyncBuilder.js.map +1 -0
  46. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/BigInt.d.ts +129 -0
  47. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/BigInt.js +428 -0
  48. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/BigInt.js.map +1 -0
  49. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/BitConverter.d.ts +27 -0
  50. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/BitConverter.js +165 -0
  51. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/BitConverter.js.map +1 -0
  52. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Boolean.d.ts +3 -0
  53. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Boolean.js +27 -0
  54. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Boolean.js.map +1 -0
  55. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Char.d.ts +66 -0
  56. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Char.js +271 -0
  57. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Char.js.map +1 -0
  58. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Choice.d.ts +121 -0
  59. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Choice.js +231 -0
  60. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Choice.js.map +1 -0
  61. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/CollectionUtil.d.ts +8 -0
  62. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/CollectionUtil.js +192 -0
  63. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/CollectionUtil.js.map +1 -0
  64. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/ConditionalWeakTable.d.ts +9 -0
  65. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/ConditionalWeakTable.js +26 -0
  66. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/ConditionalWeakTable.js.map +1 -0
  67. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Date.d.ts +70 -0
  68. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Date.js +812 -0
  69. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Date.js.map +1 -0
  70. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/DateOffset.d.ts +65 -0
  71. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/DateOffset.js +345 -0
  72. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/DateOffset.js.map +1 -0
  73. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/DateOnly.d.ts +18 -0
  74. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/DateOnly.js +143 -0
  75. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/DateOnly.js.map +1 -0
  76. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Decimal.d.ts +63 -0
  77. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Decimal.js +322 -0
  78. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Decimal.js.map +1 -0
  79. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Double.d.ts +11 -0
  80. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Double.js +60 -0
  81. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Double.js.map +1 -0
  82. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Encoding.d.ts +12 -0
  83. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Encoding.js +178 -0
  84. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Encoding.js.map +1 -0
  85. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Event.d.ts +31 -0
  86. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Event.js +109 -0
  87. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Event.js.map +1 -0
  88. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Collections.d.ts +7 -0
  89. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Collections.js +53 -0
  90. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Collections.js.map +1 -0
  91. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Core.CompilerServices.d.ts +12 -0
  92. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Core.CompilerServices.js +38 -0
  93. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Core.CompilerServices.js.map +1 -0
  94. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Core.d.ts +30 -0
  95. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Core.js +185 -0
  96. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/FSharp.Core.js.map +1 -0
  97. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Global.d.ts +45 -0
  98. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Global.js +33 -0
  99. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Global.js.map +1 -0
  100. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Guid.d.ts +10 -0
  101. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Guid.js +152 -0
  102. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Guid.js.map +1 -0
  103. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Int32.d.ts +29 -0
  104. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Int32.js +148 -0
  105. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Int32.js.map +1 -0
  106. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/List.d.ts +143 -0
  107. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/List.js +1404 -0
  108. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/List.js.map +1 -0
  109. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Long.d.ts +3 -0
  110. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Long.js +52 -0
  111. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Long.js.map +1 -0
  112. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MailboxProcessor.d.ts +25 -0
  113. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MailboxProcessor.js +104 -0
  114. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MailboxProcessor.js.map +1 -0
  115. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Map.d.ts +178 -0
  116. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Map.js +1525 -0
  117. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Map.js.map +1 -0
  118. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MapUtil.d.ts +12 -0
  119. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MapUtil.js +141 -0
  120. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MapUtil.js.map +1 -0
  121. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MutableMap.d.ts +52 -0
  122. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MutableMap.js +355 -0
  123. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MutableMap.js.map +1 -0
  124. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MutableSet.d.ts +39 -0
  125. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MutableSet.js +246 -0
  126. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/MutableSet.js.map +1 -0
  127. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Native.d.ts +3 -0
  128. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Native.js +18 -0
  129. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Native.js.map +1 -0
  130. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Numeric.d.ts +20 -0
  131. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Numeric.js +87 -0
  132. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Numeric.js.map +1 -0
  133. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Observable.d.ts +32 -0
  134. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Observable.js +128 -0
  135. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Observable.js.map +1 -0
  136. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Option.d.ts +29 -0
  137. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Option.js +127 -0
  138. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Option.js.map +1 -0
  139. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Random.d.ts +38 -0
  140. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Random.js +186 -0
  141. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Random.js.map +1 -0
  142. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Range.d.ts +12 -0
  143. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Range.js +56 -0
  144. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Range.js.map +1 -0
  145. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Reflection.d.ts +119 -0
  146. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Reflection.js +529 -0
  147. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Reflection.js.map +1 -0
  148. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/RegExp.d.ts +10 -0
  149. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/RegExp.js +144 -0
  150. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/RegExp.js.map +1 -0
  151. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Result.d.ts +38 -0
  152. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Result.js +191 -0
  153. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Result.js.map +1 -0
  154. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Seq.d.ts +164 -0
  155. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Seq.js +1501 -0
  156. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Seq.js.map +1 -0
  157. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Seq2.d.ts +18 -0
  158. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Seq2.js +129 -0
  159. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Seq2.js.map +1 -0
  160. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Set.d.ts +190 -0
  161. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Set.js +1931 -0
  162. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Set.js.map +1 -0
  163. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/String.d.ts +59 -0
  164. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/String.js +677 -0
  165. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/String.js.map +1 -0
  166. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.Collections.Generic.d.ts +85 -0
  167. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.Collections.Generic.js +390 -0
  168. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.Collections.Generic.js.map +1 -0
  169. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.Text.d.ts +40 -0
  170. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.Text.js +204 -0
  171. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.Text.js.map +1 -0
  172. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.d.ts +121 -0
  173. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.js +367 -0
  174. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/System.js.map +1 -0
  175. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/TimeOnly.d.ts +15 -0
  176. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/TimeOnly.js +138 -0
  177. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/TimeOnly.js.map +1 -0
  178. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/TimeSpan.d.ts +35 -0
  179. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/TimeSpan.js +210 -0
  180. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/TimeSpan.js.map +1 -0
  181. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Timer.d.ts +19 -0
  182. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Timer.js +72 -0
  183. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Timer.js.map +1 -0
  184. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Types.d.ts +51 -0
  185. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Types.js +205 -0
  186. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Types.js.map +1 -0
  187. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Unicode.13.0.0.d.ts +2 -0
  188. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Unicode.13.0.0.js +8 -0
  189. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Unicode.13.0.0.js.map +1 -0
  190. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Uri.d.ts +32 -0
  191. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Uri.js +170 -0
  192. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Uri.js.map +1 -0
  193. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Util.d.ts +243 -0
  194. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Util.js +903 -0
  195. package/dist/fable_modules/fable-library-ts.5.0.0-rc.1/Util.js.map +1 -0
  196. package/package.json +5 -2
  197. package/.build.ps1 +0 -308
  198. package/.gitattributes +0 -43
  199. package/.github/dependabot.yml +0 -38
  200. package/.github/release-drafter.yml +0 -52
  201. package/.github/workflows/cicd.yml +0 -87
  202. package/.github/workflows/lint.yml +0 -34
  203. package/.github/workflows/release-drafter.yml +0 -27
  204. package/Bridge.slnx +0 -8
  205. package/Directory.Build.props +0 -25
  206. package/Images/Icon.png +0 -0
  207. package/build.ps1 +0 -11
  208. package/dotnet-tools.json +0 -27
  209. package/format.ps1 +0 -11
  210. package/gig.ps1 +0 -17
  211. package/global.json +0 -6
  212. package/lint.ps1 +0 -20
  213. package/pack.ps1 +0 -11
  214. package/publish.ps1 +0 -11
  215. package/restore.ps1 +0 -11
  216. package/src/Bridge/Bridge.fsproj +0 -26
  217. package/src/Bridge/Models/ApiModels.fs +0 -142
  218. package/src/Bridge/Services/Clients/BranchClient.fs +0 -46
  219. package/src/Bridge/Services/Clients/CompanyClient.fs +0 -24
  220. package/src/Bridge/Services/Clients/CompanyLicenseClient.fs +0 -17
  221. package/src/Bridge/Services/Clients/CompanySettingsClient.fs +0 -24
  222. package/src/Bridge/Services/Clients/DepartmentClient.fs +0 -48
  223. package/src/Bridge/Services/Clients/EmployeeClient.fs +0 -71
  224. package/src/Bridge/Services/Clients/IdentityClient.fs +0 -11
  225. package/src/Bridge/Services/Clients/SystemLicenseClient.fs +0 -11
  226. package/src/Bridge/Services/Endpoints.fs +0 -13
  227. package/src/Bridge/Services/IHttpTransport.fs +0 -10
  228. package/src/Bridge/Services/UrlHelpers.fs +0 -18
  229. package/src/Bridge/bin/Release/net10.0/Fossa.Bridge.deps.json +0 -98
  230. package/src/Bridge/bin/Release/net10.0/Fossa.Bridge.xml +0 -6
  231. package/src/Bridge/obj/Bridge.fsproj.nuget.dgspec.json +0 -357
  232. package/src/Bridge/obj/Bridge.fsproj.nuget.g.props +0 -29
  233. package/src/Bridge/obj/Bridge.fsproj.nuget.g.targets +0 -2
  234. package/src/Bridge/obj/Release/Fossa.Bridge.0.1.6.nuspec +0 -31
  235. package/src/Bridge/obj/Release/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.fs +0 -3
  236. package/src/Bridge/obj/Release/net10.0/Bridge.AssemblyInfo.fs +0 -20
  237. package/src/Bridge/obj/Release/net10.0/Bridge.fsproj.FileListAbsolute.txt +0 -14
  238. package/src/Bridge/obj/Release/net10.0/Bridge.sourcelink.json +0 -1
  239. package/src/Bridge/obj/Release/net10.0/Fossa.Bridge.xml +0 -6
  240. package/src/Bridge/obj/Release/net10.0/ILLink.Substitutions.xml +0 -15
  241. package/src/Bridge/obj/project.assets.json +0 -501
  242. package/src/Directory.Build.props +0 -23
  243. package/test.ps1 +0 -11
  244. package/tests/Bridge.Tests/Bridge.Tests.fsproj +0 -19
  245. package/tests/Bridge.Tests/Main.fs +0 -7
  246. package/tests/Bridge.Tests/UrlHelpersTests.fs +0 -33
  247. package/tests/Bridge.Tests/bin/Release/net10.0/.msCoverageSourceRootsMapping_Fossa.Bridge.Tests +0 -0
  248. package/tests/Bridge.Tests/bin/Release/net10.0/Fossa.Bridge.Tests +0 -0
  249. package/tests/Bridge.Tests/bin/Release/net10.0/Fossa.Bridge.Tests.deps.json +0 -819
  250. package/tests/Bridge.Tests/bin/Release/net10.0/Fossa.Bridge.Tests.runtimeconfig.json +0 -14
  251. package/tests/Bridge.Tests/bin/Release/net10.0/Fossa.Bridge.xml +0 -6
  252. package/tests/Bridge.Tests/obj/Bridge.Tests.fsproj.nuget.dgspec.json +0 -712
  253. package/tests/Bridge.Tests/obj/Bridge.Tests.fsproj.nuget.g.props +0 -30
  254. package/tests/Bridge.Tests/obj/Bridge.Tests.fsproj.nuget.g.targets +0 -11
  255. package/tests/Bridge.Tests/obj/Release/net10.0/.NETCoreApp,Version=v10.0.AssemblyAttributes.fs +0 -3
  256. package/tests/Bridge.Tests/obj/Release/net10.0/Bridge.T.A317E392.Up2Date +0 -0
  257. package/tests/Bridge.Tests/obj/Release/net10.0/Bridge.Tests.AssemblyInfo.fs +0 -19
  258. package/tests/Bridge.Tests/obj/Release/net10.0/Bridge.Tests.fsproj.FileListAbsolute.txt +0 -190
  259. package/tests/Bridge.Tests/obj/Release/net10.0/Bridge.Tests.sourcelink.json +0 -1
  260. package/tests/Bridge.Tests/obj/Release/net10.0/ILLink.Substitutions.xml +0 -15
  261. package/tests/Bridge.Tests/obj/Release/net10.0/apphost +0 -0
  262. package/tests/Bridge.Tests/obj/project.assets.json +0 -2144
  263. package/trigger.ps1 +0 -32
  264. package/tsconfig.json +0 -18
  265. package/version.ps1 +0 -11
@@ -0,0 +1,367 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ArgumentOutOfRangeException = exports.ArgumentNullException = exports.ArgumentException = exports.TimeoutException = exports.StackOverflowException = exports.RankException = exports.OverflowException = exports.OutOfMemoryException = exports.NullReferenceException = exports.NotSupportedException = exports.NotImplementedException = exports.NotFiniteNumberException = exports.InvalidOperationException = exports.IndexOutOfRangeException = exports.FormatException = exports.DivideByZeroException = exports.ArithmeticException = exports.ApplicationException = exports.SystemException = void 0;
4
+ exports.SystemException_$reflection = SystemException_$reflection;
5
+ exports.SystemException_$ctor_Z721C83C5 = SystemException_$ctor_Z721C83C5;
6
+ exports.SystemException_$ctor = SystemException_$ctor;
7
+ exports.ApplicationException_$reflection = ApplicationException_$reflection;
8
+ exports.ApplicationException_$ctor_Z721C83C5 = ApplicationException_$ctor_Z721C83C5;
9
+ exports.ApplicationException_$ctor = ApplicationException_$ctor;
10
+ exports.ArithmeticException_$reflection = ArithmeticException_$reflection;
11
+ exports.ArithmeticException_$ctor_Z721C83C5 = ArithmeticException_$ctor_Z721C83C5;
12
+ exports.ArithmeticException_$ctor = ArithmeticException_$ctor;
13
+ exports.DivideByZeroException_$reflection = DivideByZeroException_$reflection;
14
+ exports.DivideByZeroException_$ctor_Z721C83C5 = DivideByZeroException_$ctor_Z721C83C5;
15
+ exports.DivideByZeroException_$ctor = DivideByZeroException_$ctor;
16
+ exports.FormatException_$reflection = FormatException_$reflection;
17
+ exports.FormatException_$ctor_Z721C83C5 = FormatException_$ctor_Z721C83C5;
18
+ exports.FormatException_$ctor = FormatException_$ctor;
19
+ exports.IndexOutOfRangeException_$reflection = IndexOutOfRangeException_$reflection;
20
+ exports.IndexOutOfRangeException_$ctor_Z721C83C5 = IndexOutOfRangeException_$ctor_Z721C83C5;
21
+ exports.IndexOutOfRangeException_$ctor = IndexOutOfRangeException_$ctor;
22
+ exports.InvalidOperationException_$reflection = InvalidOperationException_$reflection;
23
+ exports.InvalidOperationException_$ctor_Z721C83C5 = InvalidOperationException_$ctor_Z721C83C5;
24
+ exports.InvalidOperationException_$ctor = InvalidOperationException_$ctor;
25
+ exports.NotFiniteNumberException_$reflection = NotFiniteNumberException_$reflection;
26
+ exports.NotFiniteNumberException_$ctor_Z721C83C5 = NotFiniteNumberException_$ctor_Z721C83C5;
27
+ exports.NotFiniteNumberException_$ctor = NotFiniteNumberException_$ctor;
28
+ exports.NotImplementedException_$reflection = NotImplementedException_$reflection;
29
+ exports.NotImplementedException_$ctor_Z721C83C5 = NotImplementedException_$ctor_Z721C83C5;
30
+ exports.NotImplementedException_$ctor = NotImplementedException_$ctor;
31
+ exports.NotSupportedException_$reflection = NotSupportedException_$reflection;
32
+ exports.NotSupportedException_$ctor_Z721C83C5 = NotSupportedException_$ctor_Z721C83C5;
33
+ exports.NotSupportedException_$ctor = NotSupportedException_$ctor;
34
+ exports.NullReferenceException_$reflection = NullReferenceException_$reflection;
35
+ exports.NullReferenceException_$ctor_Z721C83C5 = NullReferenceException_$ctor_Z721C83C5;
36
+ exports.NullReferenceException_$ctor = NullReferenceException_$ctor;
37
+ exports.OutOfMemoryException_$reflection = OutOfMemoryException_$reflection;
38
+ exports.OutOfMemoryException_$ctor_Z721C83C5 = OutOfMemoryException_$ctor_Z721C83C5;
39
+ exports.OutOfMemoryException_$ctor = OutOfMemoryException_$ctor;
40
+ exports.OverflowException_$reflection = OverflowException_$reflection;
41
+ exports.OverflowException_$ctor_Z721C83C5 = OverflowException_$ctor_Z721C83C5;
42
+ exports.OverflowException_$ctor = OverflowException_$ctor;
43
+ exports.RankException_$reflection = RankException_$reflection;
44
+ exports.RankException_$ctor_Z721C83C5 = RankException_$ctor_Z721C83C5;
45
+ exports.RankException_$ctor = RankException_$ctor;
46
+ exports.StackOverflowException_$reflection = StackOverflowException_$reflection;
47
+ exports.StackOverflowException_$ctor_Z721C83C5 = StackOverflowException_$ctor_Z721C83C5;
48
+ exports.StackOverflowException_$ctor = StackOverflowException_$ctor;
49
+ exports.TimeoutException_$reflection = TimeoutException_$reflection;
50
+ exports.TimeoutException_$ctor_Z721C83C5 = TimeoutException_$ctor_Z721C83C5;
51
+ exports.TimeoutException_$ctor = TimeoutException_$ctor;
52
+ exports.ArgumentException_$reflection = ArgumentException_$reflection;
53
+ exports.ArgumentException_$ctor_Z384F8060 = ArgumentException_$ctor_Z384F8060;
54
+ exports.ArgumentException_$ctor = ArgumentException_$ctor;
55
+ exports.ArgumentException_$ctor_Z721C83C5 = ArgumentException_$ctor_Z721C83C5;
56
+ exports.ArgumentException__get_ParamName = ArgumentException__get_ParamName;
57
+ exports.ArgumentNullException_$reflection = ArgumentNullException_$reflection;
58
+ exports.ArgumentNullException_$ctor_Z384F8060 = ArgumentNullException_$ctor_Z384F8060;
59
+ exports.ArgumentNullException_$ctor_Z721C83C5 = ArgumentNullException_$ctor_Z721C83C5;
60
+ exports.ArgumentNullException_$ctor = ArgumentNullException_$ctor;
61
+ exports.ArgumentOutOfRangeException_$reflection = ArgumentOutOfRangeException_$reflection;
62
+ exports.ArgumentOutOfRangeException_$ctor_Z384F8060 = ArgumentOutOfRangeException_$ctor_Z384F8060;
63
+ exports.ArgumentOutOfRangeException_$ctor_Z721C83C5 = ArgumentOutOfRangeException_$ctor_Z721C83C5;
64
+ exports.ArgumentOutOfRangeException_$ctor = ArgumentOutOfRangeException_$ctor;
65
+ const Util_ts_1 = require("./Util.js");
66
+ const Reflection_ts_1 = require("./Reflection.js");
67
+ const Global_ts_1 = require("./Global.js");
68
+ const String_ts_1 = require("./String.js");
69
+ class SystemException extends Util_ts_1.Exception {
70
+ constructor(message) {
71
+ super(message);
72
+ }
73
+ }
74
+ exports.SystemException = SystemException;
75
+ function SystemException_$reflection() {
76
+ return (0, Reflection_ts_1.class_type)("System.SystemException", undefined, SystemException, (0, Reflection_ts_1.class_type)("System.Exception"));
77
+ }
78
+ function SystemException_$ctor_Z721C83C5(message) {
79
+ return new SystemException(message);
80
+ }
81
+ function SystemException_$ctor() {
82
+ return SystemException_$ctor_Z721C83C5(Global_ts_1.SR_Arg_SystemException);
83
+ }
84
+ class ApplicationException extends Util_ts_1.Exception {
85
+ constructor(message) {
86
+ super(message);
87
+ }
88
+ }
89
+ exports.ApplicationException = ApplicationException;
90
+ function ApplicationException_$reflection() {
91
+ return (0, Reflection_ts_1.class_type)("System.ApplicationException", undefined, ApplicationException, (0, Reflection_ts_1.class_type)("System.Exception"));
92
+ }
93
+ function ApplicationException_$ctor_Z721C83C5(message) {
94
+ return new ApplicationException(message);
95
+ }
96
+ function ApplicationException_$ctor() {
97
+ return ApplicationException_$ctor_Z721C83C5(Global_ts_1.SR_Arg_ApplicationException);
98
+ }
99
+ class ArithmeticException extends Util_ts_1.Exception {
100
+ constructor(message) {
101
+ super(message);
102
+ }
103
+ }
104
+ exports.ArithmeticException = ArithmeticException;
105
+ function ArithmeticException_$reflection() {
106
+ return (0, Reflection_ts_1.class_type)("System.ArithmeticException", undefined, ArithmeticException, (0, Reflection_ts_1.class_type)("System.Exception"));
107
+ }
108
+ function ArithmeticException_$ctor_Z721C83C5(message) {
109
+ return new ArithmeticException(message);
110
+ }
111
+ function ArithmeticException_$ctor() {
112
+ return ArithmeticException_$ctor_Z721C83C5(Global_ts_1.SR_Arg_ArithmeticException);
113
+ }
114
+ class DivideByZeroException extends Util_ts_1.Exception {
115
+ constructor(message) {
116
+ super(message);
117
+ }
118
+ }
119
+ exports.DivideByZeroException = DivideByZeroException;
120
+ function DivideByZeroException_$reflection() {
121
+ return (0, Reflection_ts_1.class_type)("System.DivideByZeroException", undefined, DivideByZeroException, (0, Reflection_ts_1.class_type)("System.Exception"));
122
+ }
123
+ function DivideByZeroException_$ctor_Z721C83C5(message) {
124
+ return new DivideByZeroException(message);
125
+ }
126
+ function DivideByZeroException_$ctor() {
127
+ return DivideByZeroException_$ctor_Z721C83C5(Global_ts_1.SR_Arg_DivideByZero);
128
+ }
129
+ class FormatException extends Util_ts_1.Exception {
130
+ constructor(message) {
131
+ super(message);
132
+ }
133
+ }
134
+ exports.FormatException = FormatException;
135
+ function FormatException_$reflection() {
136
+ return (0, Reflection_ts_1.class_type)("System.FormatException", undefined, FormatException, (0, Reflection_ts_1.class_type)("System.Exception"));
137
+ }
138
+ function FormatException_$ctor_Z721C83C5(message) {
139
+ return new FormatException(message);
140
+ }
141
+ function FormatException_$ctor() {
142
+ return FormatException_$ctor_Z721C83C5(Global_ts_1.SR_Arg_FormatException);
143
+ }
144
+ class IndexOutOfRangeException extends Util_ts_1.Exception {
145
+ constructor(message) {
146
+ super(message);
147
+ }
148
+ }
149
+ exports.IndexOutOfRangeException = IndexOutOfRangeException;
150
+ function IndexOutOfRangeException_$reflection() {
151
+ return (0, Reflection_ts_1.class_type)("System.IndexOutOfRangeException", undefined, IndexOutOfRangeException, (0, Reflection_ts_1.class_type)("System.Exception"));
152
+ }
153
+ function IndexOutOfRangeException_$ctor_Z721C83C5(message) {
154
+ return new IndexOutOfRangeException(message);
155
+ }
156
+ function IndexOutOfRangeException_$ctor() {
157
+ return IndexOutOfRangeException_$ctor_Z721C83C5(Global_ts_1.SR_Arg_IndexOutOfRangeException);
158
+ }
159
+ class InvalidOperationException extends Util_ts_1.Exception {
160
+ constructor(message) {
161
+ super(message);
162
+ }
163
+ }
164
+ exports.InvalidOperationException = InvalidOperationException;
165
+ function InvalidOperationException_$reflection() {
166
+ return (0, Reflection_ts_1.class_type)("System.InvalidOperationException", undefined, InvalidOperationException, (0, Reflection_ts_1.class_type)("System.Exception"));
167
+ }
168
+ function InvalidOperationException_$ctor_Z721C83C5(message) {
169
+ return new InvalidOperationException(message);
170
+ }
171
+ function InvalidOperationException_$ctor() {
172
+ return InvalidOperationException_$ctor_Z721C83C5(Global_ts_1.SR_Arg_InvalidOperationException);
173
+ }
174
+ class NotFiniteNumberException extends Util_ts_1.Exception {
175
+ constructor(message) {
176
+ super(message);
177
+ }
178
+ }
179
+ exports.NotFiniteNumberException = NotFiniteNumberException;
180
+ function NotFiniteNumberException_$reflection() {
181
+ return (0, Reflection_ts_1.class_type)("System.NotFiniteNumberException", undefined, NotFiniteNumberException, (0, Reflection_ts_1.class_type)("System.Exception"));
182
+ }
183
+ function NotFiniteNumberException_$ctor_Z721C83C5(message) {
184
+ return new NotFiniteNumberException(message);
185
+ }
186
+ function NotFiniteNumberException_$ctor() {
187
+ return NotFiniteNumberException_$ctor_Z721C83C5(Global_ts_1.SR_Arg_NotFiniteNumberException);
188
+ }
189
+ class NotImplementedException extends Util_ts_1.Exception {
190
+ constructor(message) {
191
+ super(message);
192
+ }
193
+ }
194
+ exports.NotImplementedException = NotImplementedException;
195
+ function NotImplementedException_$reflection() {
196
+ return (0, Reflection_ts_1.class_type)("System.NotImplementedException", undefined, NotImplementedException, (0, Reflection_ts_1.class_type)("System.Exception"));
197
+ }
198
+ function NotImplementedException_$ctor_Z721C83C5(message) {
199
+ return new NotImplementedException(message);
200
+ }
201
+ function NotImplementedException_$ctor() {
202
+ return NotImplementedException_$ctor_Z721C83C5(Global_ts_1.SR_Arg_NotImplementedException);
203
+ }
204
+ class NotSupportedException extends Util_ts_1.Exception {
205
+ constructor(message) {
206
+ super(message);
207
+ }
208
+ }
209
+ exports.NotSupportedException = NotSupportedException;
210
+ function NotSupportedException_$reflection() {
211
+ return (0, Reflection_ts_1.class_type)("System.NotSupportedException", undefined, NotSupportedException, (0, Reflection_ts_1.class_type)("System.Exception"));
212
+ }
213
+ function NotSupportedException_$ctor_Z721C83C5(message) {
214
+ return new NotSupportedException(message);
215
+ }
216
+ function NotSupportedException_$ctor() {
217
+ return NotSupportedException_$ctor_Z721C83C5(Global_ts_1.SR_Arg_NotSupportedException);
218
+ }
219
+ class NullReferenceException extends Util_ts_1.Exception {
220
+ constructor(message) {
221
+ super(message);
222
+ }
223
+ }
224
+ exports.NullReferenceException = NullReferenceException;
225
+ function NullReferenceException_$reflection() {
226
+ return (0, Reflection_ts_1.class_type)("System.NullReferenceException", undefined, NullReferenceException, (0, Reflection_ts_1.class_type)("System.Exception"));
227
+ }
228
+ function NullReferenceException_$ctor_Z721C83C5(message) {
229
+ return new NullReferenceException(message);
230
+ }
231
+ function NullReferenceException_$ctor() {
232
+ return NullReferenceException_$ctor_Z721C83C5(Global_ts_1.SR_Arg_NullReferenceException);
233
+ }
234
+ class OutOfMemoryException extends Util_ts_1.Exception {
235
+ constructor(message) {
236
+ super(message);
237
+ }
238
+ }
239
+ exports.OutOfMemoryException = OutOfMemoryException;
240
+ function OutOfMemoryException_$reflection() {
241
+ return (0, Reflection_ts_1.class_type)("System.OutOfMemoryException", undefined, OutOfMemoryException, (0, Reflection_ts_1.class_type)("System.Exception"));
242
+ }
243
+ function OutOfMemoryException_$ctor_Z721C83C5(message) {
244
+ return new OutOfMemoryException(message);
245
+ }
246
+ function OutOfMemoryException_$ctor() {
247
+ return OutOfMemoryException_$ctor_Z721C83C5(Global_ts_1.SR_Arg_OutOfMemoryException);
248
+ }
249
+ class OverflowException extends Util_ts_1.Exception {
250
+ constructor(message) {
251
+ super(message);
252
+ }
253
+ }
254
+ exports.OverflowException = OverflowException;
255
+ function OverflowException_$reflection() {
256
+ return (0, Reflection_ts_1.class_type)("System.OverflowException", undefined, OverflowException, (0, Reflection_ts_1.class_type)("System.Exception"));
257
+ }
258
+ function OverflowException_$ctor_Z721C83C5(message) {
259
+ return new OverflowException(message);
260
+ }
261
+ function OverflowException_$ctor() {
262
+ return OverflowException_$ctor_Z721C83C5(Global_ts_1.SR_Arg_OverflowException);
263
+ }
264
+ class RankException extends Util_ts_1.Exception {
265
+ constructor(message) {
266
+ super(message);
267
+ }
268
+ }
269
+ exports.RankException = RankException;
270
+ function RankException_$reflection() {
271
+ return (0, Reflection_ts_1.class_type)("System.RankException", undefined, RankException, (0, Reflection_ts_1.class_type)("System.Exception"));
272
+ }
273
+ function RankException_$ctor_Z721C83C5(message) {
274
+ return new RankException(message);
275
+ }
276
+ function RankException_$ctor() {
277
+ return RankException_$ctor_Z721C83C5(Global_ts_1.SR_Arg_RankException);
278
+ }
279
+ class StackOverflowException extends Util_ts_1.Exception {
280
+ constructor(message) {
281
+ super(message);
282
+ }
283
+ }
284
+ exports.StackOverflowException = StackOverflowException;
285
+ function StackOverflowException_$reflection() {
286
+ return (0, Reflection_ts_1.class_type)("System.StackOverflowException", undefined, StackOverflowException, (0, Reflection_ts_1.class_type)("System.Exception"));
287
+ }
288
+ function StackOverflowException_$ctor_Z721C83C5(message) {
289
+ return new StackOverflowException(message);
290
+ }
291
+ function StackOverflowException_$ctor() {
292
+ return StackOverflowException_$ctor_Z721C83C5(Global_ts_1.SR_Arg_StackOverflowException);
293
+ }
294
+ class TimeoutException extends Util_ts_1.Exception {
295
+ constructor(message) {
296
+ super(message);
297
+ }
298
+ }
299
+ exports.TimeoutException = TimeoutException;
300
+ function TimeoutException_$reflection() {
301
+ return (0, Reflection_ts_1.class_type)("System.TimeoutException", undefined, TimeoutException, (0, Reflection_ts_1.class_type)("System.Exception"));
302
+ }
303
+ function TimeoutException_$ctor_Z721C83C5(message) {
304
+ return new TimeoutException(message);
305
+ }
306
+ function TimeoutException_$ctor() {
307
+ return TimeoutException_$ctor_Z721C83C5(Global_ts_1.SR_Arg_TimeoutException);
308
+ }
309
+ class ArgumentException extends Util_ts_1.Exception {
310
+ constructor(message, paramName) {
311
+ super((0, String_ts_1.isNullOrEmpty)(paramName) ? message : (((message + Global_ts_1.SR_Arg_ParamName_Name) + paramName) + "\')"));
312
+ this.paramName = paramName;
313
+ }
314
+ }
315
+ exports.ArgumentException = ArgumentException;
316
+ function ArgumentException_$reflection() {
317
+ return (0, Reflection_ts_1.class_type)("System.ArgumentException", undefined, ArgumentException, (0, Reflection_ts_1.class_type)("System.Exception"));
318
+ }
319
+ function ArgumentException_$ctor_Z384F8060(message, paramName) {
320
+ return new ArgumentException(message, paramName);
321
+ }
322
+ function ArgumentException_$ctor() {
323
+ return ArgumentException_$ctor_Z384F8060(Global_ts_1.SR_Arg_ArgumentException, "");
324
+ }
325
+ function ArgumentException_$ctor_Z721C83C5(message) {
326
+ return ArgumentException_$ctor_Z384F8060(message, "");
327
+ }
328
+ function ArgumentException__get_ParamName(_) {
329
+ return _.paramName;
330
+ }
331
+ class ArgumentNullException extends ArgumentException {
332
+ constructor(paramName, message) {
333
+ super(message, paramName);
334
+ }
335
+ }
336
+ exports.ArgumentNullException = ArgumentNullException;
337
+ function ArgumentNullException_$reflection() {
338
+ return (0, Reflection_ts_1.class_type)("System.ArgumentNullException", undefined, ArgumentNullException, ArgumentException_$reflection());
339
+ }
340
+ function ArgumentNullException_$ctor_Z384F8060(paramName, message) {
341
+ return new ArgumentNullException(paramName, message);
342
+ }
343
+ function ArgumentNullException_$ctor_Z721C83C5(paramName) {
344
+ return ArgumentNullException_$ctor_Z384F8060(paramName, Global_ts_1.SR_ArgumentNull_Generic);
345
+ }
346
+ function ArgumentNullException_$ctor() {
347
+ return ArgumentNullException_$ctor_Z721C83C5("");
348
+ }
349
+ class ArgumentOutOfRangeException extends ArgumentException {
350
+ constructor(paramName, message) {
351
+ super(message, paramName);
352
+ }
353
+ }
354
+ exports.ArgumentOutOfRangeException = ArgumentOutOfRangeException;
355
+ function ArgumentOutOfRangeException_$reflection() {
356
+ return (0, Reflection_ts_1.class_type)("System.ArgumentOutOfRangeException", undefined, ArgumentOutOfRangeException, ArgumentException_$reflection());
357
+ }
358
+ function ArgumentOutOfRangeException_$ctor_Z384F8060(paramName, message) {
359
+ return new ArgumentOutOfRangeException(paramName, message);
360
+ }
361
+ function ArgumentOutOfRangeException_$ctor_Z721C83C5(paramName) {
362
+ return ArgumentOutOfRangeException_$ctor_Z384F8060(paramName, Global_ts_1.SR_Arg_ArgumentOutOfRangeException);
363
+ }
364
+ function ArgumentOutOfRangeException_$ctor() {
365
+ return ArgumentOutOfRangeException_$ctor_Z721C83C5("");
366
+ }
367
+ //# sourceMappingURL=System.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"System.js","sourceRoot":"","sources":["../../../fable_output/fable_modules/fable-library-ts.5.0.0-rc.1/System.ts"],"names":[],"mappings":";;;AAYA,kEAEC;AAED,0EAEC;AAED,sDAEC;AAQD,4EAEC;AAED,oFAEC;AAED,gEAEC;AAQD,0EAEC;AAED,kFAEC;AAED,8DAEC;AAQD,8EAEC;AAED,sFAEC;AAED,kEAEC;AAQD,kEAEC;AAED,0EAEC;AAED,sDAEC;AAQD,oFAEC;AAED,4FAEC;AAED,wEAEC;AAQD,sFAEC;AAED,8FAEC;AAED,0EAEC;AAQD,oFAEC;AAED,4FAEC;AAED,wEAEC;AAQD,kFAEC;AAED,0FAEC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C;IAC9B,CAAC;CACJ;AAJD,sDAIC;AAED,SAAgB,iCAAiC;IAC7C,OAAO,IAAA,0BAAU,EAAC,8BAA8B,EAAE,SAAS,EAAE,qBAAqB,EAAE,6BAA6B,EAAE,CAAC,CAAC;AACzH,CAAC;AAED,SAAgB,qCAAqC,CAAC,SAAiB,EAAE,OAAe;IACpF,OAAO,IAAI,qBAAqB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,qCAAqC,CAAC,SAAiB;IACnE,OAAO,qCAAqC,CAAC,SAAS,EAAE,mCAAuB,CAAC,CAAC;AACrF,CAAC;AAED,SAAgB,2BAA2B;IACvC,OAAO,qCAAqC,CAAC,EAAE,CAAC,CAAC;AACrD,CAAC;AAED,MAAa,2BAA4B,SAAQ,iBAAiB;IAC9D,YAAY,SAAiB,EAAE,OAAe;QAC1C,KAAK,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IAC9B,CAAC;CACJ;AAJD,kEAIC;AAED,SAAgB,uCAAuC;IACnD,OAAO,IAAA,0BAAU,EAAC,oCAAoC,EAAE,SAAS,EAAE,2BAA2B,EAAE,6BAA6B,EAAE,CAAC,CAAC;AACrI,CAAC;AAED,SAAgB,2CAA2C,CAAC,SAAiB,EAAE,OAAe;IAC1F,OAAO,IAAI,2BAA2B,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAC/D,CAAC;AAED,SAAgB,2CAA2C,CAAC,SAAiB;IACzE,OAAO,2CAA2C,CAAC,SAAS,EAAE,8CAAkC,CAAC,CAAC;AACtG,CAAC;AAED,SAAgB,iCAAiC;IAC7C,OAAO,2CAA2C,CAAC,EAAE,CAAC,CAAC;AAC3D,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { FSharpRef } from "./Types.ts";
2
+ import { IDateTime } from "./Util.ts";
3
+ export declare function create(h?: number, m?: number, s?: number, ms?: number): number;
4
+ export declare function fromTicks(ticks: number | bigint): number;
5
+ export declare function fromTimeSpan(timeSpan: number): number;
6
+ export declare function fromDateTime(d: IDateTime): number;
7
+ export declare function maxValue(): number;
8
+ export declare function add(t: number, ts: number, wrappedDays?: FSharpRef<number>): number;
9
+ export declare function addHours(t: number, h: number): number;
10
+ export declare function addMinutes(t: number, m: number): number;
11
+ export declare function isBetween(t: number, start: number, end: number): boolean;
12
+ export declare function toString(t: number, format?: string, _provider?: any): string;
13
+ export declare function parse(str: string): number;
14
+ export declare function tryParse(v: string, defValue: FSharpRef<number>): boolean;
15
+ export declare function op_Subtraction(left: number, right: number): number;
@@ -0,0 +1,138 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.create = create;
4
+ exports.fromTicks = fromTicks;
5
+ exports.fromTimeSpan = fromTimeSpan;
6
+ exports.fromDateTime = fromDateTime;
7
+ exports.maxValue = maxValue;
8
+ exports.add = add;
9
+ exports.addHours = addHours;
10
+ exports.addMinutes = addMinutes;
11
+ exports.isBetween = isBetween;
12
+ exports.toString = toString;
13
+ exports.parse = parse;
14
+ exports.tryParse = tryParse;
15
+ exports.op_Subtraction = op_Subtraction;
16
+ const TimeSpan_ts_1 = require("./TimeSpan.js");
17
+ const Util_ts_1 = require("./Util.js");
18
+ const millisecondsPerDay = 86400000;
19
+ function create(h = 0, m = 0, s = 0, ms = 0) {
20
+ if (h < 0 || m < 0 || s < 0 || ms < 0)
21
+ throw new Util_ts_1.Exception("The parameters describe an unrepresentable TimeOnly.");
22
+ return h * 3600000 + m * 60000 + s * 1000 + ms;
23
+ }
24
+ function fromTicks(ticks) {
25
+ return Number(BigInt(ticks) / 10000n);
26
+ }
27
+ function fromTimeSpan(timeSpan) {
28
+ if (timeSpan < 0 || timeSpan >= millisecondsPerDay)
29
+ throw new Util_ts_1.Exception("The TimeSpan describes an unrepresentable TimeOnly.");
30
+ return timeSpan;
31
+ }
32
+ function fromDateTime(d) {
33
+ return d.kind === Util_ts_1.DateTimeKind.Utc
34
+ ? create(d.getUTCHours(), d.getUTCMinutes(), d.getUTCSeconds(), d.getUTCMilliseconds())
35
+ : create(d.getHours(), d.getMinutes(), d.getSeconds(), d.getMilliseconds());
36
+ }
37
+ function maxValue() {
38
+ // This is "23:59:59.999"
39
+ return millisecondsPerDay - 1;
40
+ }
41
+ function add(t, ts, wrappedDays) {
42
+ if (wrappedDays === undefined) {
43
+ const t2 = (t + ts) % millisecondsPerDay;
44
+ return t2 < 0 ? millisecondsPerDay + t2 : t2;
45
+ }
46
+ wrappedDays.contents = ts / millisecondsPerDay;
47
+ let newMs = t + ts % millisecondsPerDay;
48
+ if (newMs < 0) {
49
+ wrappedDays.contents--;
50
+ newMs += millisecondsPerDay;
51
+ }
52
+ else {
53
+ if (newMs >= millisecondsPerDay) {
54
+ wrappedDays.contents++;
55
+ newMs -= millisecondsPerDay;
56
+ }
57
+ }
58
+ return newMs;
59
+ }
60
+ function addHours(t, h) {
61
+ return add(t, h * 3600000);
62
+ }
63
+ function addMinutes(t, m) {
64
+ return add(t, m * 60000);
65
+ }
66
+ function isBetween(t, start, end) {
67
+ return start <= end
68
+ ? (start <= t && end > t)
69
+ : (start <= t || end > t);
70
+ }
71
+ function toString(t, format = "t", _provider) {
72
+ if (["r", "R", "o", "O", "t", "T"].indexOf(format) === -1) {
73
+ throw new Util_ts_1.Exception("Custom formats are not supported");
74
+ }
75
+ const base = `${(0, Util_ts_1.padWithZeros)((0, TimeSpan_ts_1.hours)(t), 2)}:${(0, Util_ts_1.padWithZeros)((0, TimeSpan_ts_1.minutes)(t), 2)}`;
76
+ if (format === "t")
77
+ return base;
78
+ const s = (0, Util_ts_1.padWithZeros)((0, TimeSpan_ts_1.seconds)(t), 2);
79
+ // We're limited to millisecond precision, so the last 4 digits will always be 0
80
+ return `${base}${format === "o" || format === "O" ? `:${s}.${(0, Util_ts_1.padWithZeros)((0, TimeSpan_ts_1.milliseconds)(t), 3)}0000` : `:${s}`}`;
81
+ }
82
+ function parse(str) {
83
+ // Allowed format types:
84
+ // hh:mm
85
+ // hh:mm:ss
86
+ // hh:mm:ss.fffffff
87
+ const r = /^\s*([0-1]?\d|2[0-3])\s*:\s*([0-5]?\d)(\s*:\s*([0-5]?\d)(\.(\d+))?)?\s*$/.exec(str);
88
+ if (r != null && r[1] != null && r[2] != null) {
89
+ let ms = 0;
90
+ let s = 0;
91
+ const h = +r[1];
92
+ const m = +r[2];
93
+ if (r[4] != null) {
94
+ s = +r[4];
95
+ }
96
+ if (r[6] != null) {
97
+ // Depending on the number of decimals passed, we need to adapt the numbers
98
+ switch (r[6].length) {
99
+ case 1:
100
+ ms = +r[6] * 100;
101
+ break;
102
+ case 2:
103
+ ms = +r[6] * 10;
104
+ break;
105
+ case 3:
106
+ ms = +r[6];
107
+ break;
108
+ case 4:
109
+ ms = +r[6] / 10;
110
+ break;
111
+ case 5:
112
+ ms = +r[6] / 100;
113
+ break;
114
+ case 6:
115
+ ms = +r[6] / 1000;
116
+ break;
117
+ default:
118
+ ms = +r[6].substring(0, 7) / 10000;
119
+ break;
120
+ }
121
+ }
122
+ return create(h, m, s, Math.trunc(ms));
123
+ }
124
+ throw new Util_ts_1.Exception(`String '${str}' was not recognized as a valid TimeOnly.`);
125
+ }
126
+ function tryParse(v, defValue) {
127
+ try {
128
+ defValue.contents = parse(v);
129
+ return true;
130
+ }
131
+ catch {
132
+ return false;
133
+ }
134
+ }
135
+ function op_Subtraction(left, right) {
136
+ return add(left, -right);
137
+ }
138
+ //# sourceMappingURL=TimeOnly.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimeOnly.js","sourceRoot":"","sources":["../../../fable_output/fable_modules/fable-library-ts.5.0.0-rc.1/TimeOnly.ts"],"names":[],"mappings":";;AAMA,wBAKC;AAED,8BAEC;AAED,oCAKC;AAED,oCAIC;AAED,4BAGC;AAED,kBAoBC;AAGD,4BAEC;AAED,gCAEC;AAED,8BAIC;AAED,4BAaC;AAED,sBA8BC;AAED,4BAOC;AAED,wCAEC;AAjID,+CAAsE;AACtE,uCAA6E;AAE7E,MAAM,kBAAkB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AED,SAAgB,QAAQ,CAAC,CAAS,EAAE,QAA2B;IAC7D,IAAI,CAAC;QACH,QAAQ,CAAC,QAAQ,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QAC7B,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED,SAAgB,cAAc,CAAC,IAAY,EAAE,KAAa;IACxD,OAAO,GAAG,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC;AAC3B,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { FSharpRef } from "./Types.ts";
2
+ import { comparePrimitives } from "./Util.ts";
3
+ export type TimeSpan = number;
4
+ export declare function create(d?: number, h?: number, m?: number, s?: number, ms?: number): number;
5
+ export declare function fromTicks(ticks: number | bigint): number;
6
+ export declare function fromDays(d: number, h?: number, m?: bigint, s?: bigint, ms?: bigint): number;
7
+ export declare function fromHours(h: number, m?: bigint, s?: bigint, ms?: bigint): number;
8
+ export declare function fromMinutes(m: number | bigint, s?: bigint, ms?: bigint): number;
9
+ export declare function fromSeconds(s: number | bigint, ms?: bigint): number;
10
+ export declare function fromMilliseconds(ms: number | bigint): number;
11
+ export declare function days(ts: TimeSpan): number;
12
+ export declare function hours(ts: TimeSpan): number;
13
+ export declare function minutes(ts: TimeSpan): number;
14
+ export declare function seconds(ts: TimeSpan): number;
15
+ export declare function milliseconds(ts: TimeSpan): number;
16
+ export declare function ticks(ts: TimeSpan): bigint;
17
+ export declare function totalDays(ts: TimeSpan): number;
18
+ export declare function totalHours(ts: TimeSpan): number;
19
+ export declare function totalMinutes(ts: TimeSpan): number;
20
+ export declare function totalSeconds(ts: TimeSpan): number;
21
+ export declare function negate(ts: TimeSpan): number;
22
+ export declare function add(ts1: number, ts2: number): number;
23
+ export declare function subtract(ts1: number, ts2: number): number;
24
+ export declare function multiply(ts: TimeSpan, factor: number): number;
25
+ export declare function divide(ts: TimeSpan, b: number): number;
26
+ export declare const op_Addition: typeof add;
27
+ export declare const op_Subtraction: typeof subtract;
28
+ export declare const op_Multiply: typeof multiply;
29
+ export declare const op_Division: typeof divide;
30
+ export declare const compare: typeof comparePrimitives;
31
+ export declare const compareTo: typeof comparePrimitives;
32
+ export declare function duration(x: number): number;
33
+ export declare function toString(ts: TimeSpan, format?: string, _provider?: any): string;
34
+ export declare function parse(str: string): number;
35
+ export declare function tryParse(v: string, defValue: FSharpRef<number>): boolean;