@thisisagile/easy 15.29.2 → 15.29.3

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 (619) hide show
  1. package/dist/{chunk-3MOFYE2N.mjs → chunk-2ZUDYGPP.mjs} +5 -5
  2. package/dist/chunk-2ZUDYGPP.mjs.map +1 -0
  3. package/dist/{chunk-A5MC57TL.mjs → chunk-3L4RAR24.mjs} +9 -7
  4. package/dist/chunk-3L4RAR24.mjs.map +1 -0
  5. package/dist/chunk-45GNHDKA.mjs +27 -0
  6. package/dist/chunk-45GNHDKA.mjs.map +1 -0
  7. package/dist/{chunk-BAXNN36F.mjs → chunk-4DJNTF2D.mjs} +5 -3
  8. package/dist/chunk-4DJNTF2D.mjs.map +1 -0
  9. package/dist/chunk-4G6AW6D6.mjs +35 -0
  10. package/dist/chunk-4G6AW6D6.mjs.map +1 -0
  11. package/dist/{chunk-I5MPU33B.mjs → chunk-5WSP2IYF.mjs} +4 -4
  12. package/dist/chunk-5WSP2IYF.mjs.map +1 -0
  13. package/dist/{chunk-GCPVSACZ.mjs → chunk-5YM5CLOG.mjs} +2 -2
  14. package/dist/{chunk-GUSPHVF2.mjs → chunk-6BQEFLOS.mjs} +5 -3
  15. package/dist/chunk-6BQEFLOS.mjs.map +1 -0
  16. package/dist/{chunk-MRIELSWP.mjs → chunk-6VLC4Z4H.mjs} +2 -2
  17. package/dist/chunk-6VLC4Z4H.mjs.map +1 -0
  18. package/dist/chunk-6YVMQB26.mjs +94 -0
  19. package/dist/chunk-6YVMQB26.mjs.map +1 -0
  20. package/dist/{chunk-YHL2CUBI.mjs → chunk-73UD7JJL.mjs} +2 -2
  21. package/dist/chunk-73UD7JJL.mjs.map +1 -0
  22. package/dist/{chunk-2L3GZ6NK.mjs → chunk-7K4QMDUN.mjs} +2 -2
  23. package/dist/chunk-7K4QMDUN.mjs.map +1 -0
  24. package/dist/{chunk-S5RHU67S.mjs → chunk-7TJ4VCBE.mjs} +15 -9
  25. package/dist/chunk-7TJ4VCBE.mjs.map +1 -0
  26. package/dist/{chunk-NKHZO3ME.mjs → chunk-A2JYVEBB.mjs} +4 -4
  27. package/dist/chunk-A2JYVEBB.mjs.map +1 -0
  28. package/dist/{chunk-57QV3J5N.mjs → chunk-A62OK7XE.mjs} +10 -6
  29. package/dist/{chunk-57QV3J5N.mjs.map → chunk-A62OK7XE.mjs.map} +1 -1
  30. package/dist/{chunk-TQUDYF6E.mjs → chunk-APYISY5K.mjs} +2 -2
  31. package/dist/chunk-APYISY5K.mjs.map +1 -0
  32. package/dist/{chunk-XLFC44Y3.mjs → chunk-ARTSACXM.mjs} +17 -22
  33. package/dist/chunk-ARTSACXM.mjs.map +1 -0
  34. package/dist/chunk-ARZEQQW5.mjs +315 -0
  35. package/dist/chunk-ARZEQQW5.mjs.map +1 -0
  36. package/dist/chunk-CAHTK3AT.mjs +30 -0
  37. package/dist/chunk-CAHTK3AT.mjs.map +1 -0
  38. package/dist/{chunk-ARN4MTMY.mjs → chunk-D4K4MC24.mjs} +3 -3
  39. package/dist/chunk-D4K4MC24.mjs.map +1 -0
  40. package/dist/{chunk-624IHTEI.mjs → chunk-D5FLGKVR.mjs} +18 -12
  41. package/dist/chunk-D5FLGKVR.mjs.map +1 -0
  42. package/dist/{chunk-UWNXWKBU.mjs → chunk-DEJ7A5PY.mjs} +1 -35
  43. package/dist/chunk-DEJ7A5PY.mjs.map +1 -0
  44. package/dist/chunk-DXQSIBC7.mjs +13 -0
  45. package/dist/chunk-DXQSIBC7.mjs.map +1 -0
  46. package/dist/{chunk-SG6BDC6T.mjs → chunk-EDVJUOFU.mjs} +18 -12
  47. package/dist/chunk-EDVJUOFU.mjs.map +1 -0
  48. package/dist/{chunk-IWLJEAQZ.mjs → chunk-EIJ3GSGG.mjs} +5 -3
  49. package/dist/chunk-EIJ3GSGG.mjs.map +1 -0
  50. package/dist/chunk-FHW5K2RR.mjs +150 -0
  51. package/dist/chunk-FHW5K2RR.mjs.map +1 -0
  52. package/dist/{chunk-WYT52YAX.mjs → chunk-GSZLYZSW.mjs} +23 -11
  53. package/dist/chunk-GSZLYZSW.mjs.map +1 -0
  54. package/dist/{chunk-I3DRDMCS.mjs → chunk-HBJMCX2I.mjs} +3 -3
  55. package/dist/chunk-HBJMCX2I.mjs.map +1 -0
  56. package/dist/{chunk-2KKIXOMB.mjs → chunk-HNVAFEZP.mjs} +3 -3
  57. package/dist/{chunk-QRN4Y2QC.mjs → chunk-HV4CI2QX.mjs} +18 -12
  58. package/dist/chunk-HV4CI2QX.mjs.map +1 -0
  59. package/dist/chunk-IAXKOENJ.mjs +55 -0
  60. package/dist/chunk-IAXKOENJ.mjs.map +1 -0
  61. package/dist/chunk-J6KN572O.mjs +20 -0
  62. package/dist/chunk-J6KN572O.mjs.map +1 -0
  63. package/dist/chunk-J7XKOXMW.mjs +203 -0
  64. package/dist/chunk-J7XKOXMW.mjs.map +1 -0
  65. package/dist/{chunk-RFG5LNDQ.mjs → chunk-JBJ2YERG.mjs} +6 -4
  66. package/dist/{chunk-RFG5LNDQ.mjs.map → chunk-JBJ2YERG.mjs.map} +1 -1
  67. package/dist/{chunk-J64VE55O.mjs → chunk-JFJLDIJB.mjs} +10 -10
  68. package/dist/chunk-JFJLDIJB.mjs.map +1 -0
  69. package/dist/{chunk-F4CWMZCV.mjs → chunk-JFU65NZU.mjs} +11 -9
  70. package/dist/chunk-JFU65NZU.mjs.map +1 -0
  71. package/dist/{chunk-PWCGCUT7.mjs → chunk-JSON7A4X.mjs} +6 -4
  72. package/dist/chunk-JSON7A4X.mjs.map +1 -0
  73. package/dist/chunk-JTGB3TSZ.mjs +24 -0
  74. package/dist/chunk-JTGB3TSZ.mjs.map +1 -0
  75. package/dist/{chunk-NOMZAVQC.mjs → chunk-KRLEHX37.mjs} +12 -6
  76. package/dist/chunk-KRLEHX37.mjs.map +1 -0
  77. package/dist/{chunk-H7NDGISC.mjs → chunk-LAR7AT6R.mjs} +2 -2
  78. package/dist/chunk-LAR7AT6R.mjs.map +1 -0
  79. package/dist/{chunk-OXVJLJIE.mjs → chunk-LXQQ5N6S.mjs} +2 -2
  80. package/dist/chunk-LYAPQ4QZ.mjs +40 -0
  81. package/dist/chunk-LYAPQ4QZ.mjs.map +1 -0
  82. package/dist/{chunk-QRLGQY7M.mjs → chunk-M47EOYDK.mjs} +6 -4
  83. package/dist/chunk-M47EOYDK.mjs.map +1 -0
  84. package/dist/{chunk-CJDDGEEK.mjs → chunk-NFWIUPZU.mjs} +8 -6
  85. package/dist/chunk-NFWIUPZU.mjs.map +1 -0
  86. package/dist/{chunk-7Z3YQCXR.mjs → chunk-NYYHRFBW.mjs} +6 -4
  87. package/dist/chunk-NYYHRFBW.mjs.map +1 -0
  88. package/dist/{chunk-4ROYPQPC.mjs → chunk-OFGI5FLG.mjs} +2 -2
  89. package/dist/chunk-PPWHEIZW.mjs +58 -0
  90. package/dist/chunk-PPWHEIZW.mjs.map +1 -0
  91. package/dist/chunk-Q5HABVOK.mjs +20 -0
  92. package/dist/chunk-Q5HABVOK.mjs.map +1 -0
  93. package/dist/{chunk-TG5IPJOG.mjs → chunk-QQRGOHU6.mjs} +2 -2
  94. package/dist/chunk-QQRGOHU6.mjs.map +1 -0
  95. package/dist/{chunk-5J3LAY32.mjs → chunk-QTPKH4PY.mjs} +5 -5
  96. package/dist/chunk-QTPKH4PY.mjs.map +1 -0
  97. package/dist/{chunk-65W3AYRE.mjs → chunk-RNROH3VJ.mjs} +6 -4
  98. package/dist/chunk-RNROH3VJ.mjs.map +1 -0
  99. package/dist/{chunk-GARRF3U7.mjs → chunk-TMZRZLA2.mjs} +3 -3
  100. package/dist/chunk-TMZRZLA2.mjs.map +1 -0
  101. package/dist/{chunk-L7JZMM3J.mjs → chunk-U53FLD4J.mjs} +4 -4
  102. package/dist/chunk-U53FLD4J.mjs.map +1 -0
  103. package/dist/{chunk-EB26LF5Z.mjs → chunk-UJEQAXZI.mjs} +4 -4
  104. package/dist/chunk-UJEQAXZI.mjs.map +1 -0
  105. package/dist/{chunk-ELFAMVTF.mjs → chunk-UKHDSTTZ.mjs} +5 -5
  106. package/dist/chunk-UKHDSTTZ.mjs.map +1 -0
  107. package/dist/chunk-UNHWYQ54.mjs +64 -0
  108. package/dist/chunk-UNHWYQ54.mjs.map +1 -0
  109. package/dist/chunk-USGZFNWP.mjs +34 -0
  110. package/dist/chunk-USGZFNWP.mjs.map +1 -0
  111. package/dist/{chunk-Y5WPU3ZU.mjs → chunk-UW6S2PNO.mjs} +12 -6
  112. package/dist/chunk-UW6S2PNO.mjs.map +1 -0
  113. package/dist/chunk-UYDZZAEK.mjs +11 -0
  114. package/dist/chunk-UYDZZAEK.mjs.map +1 -0
  115. package/dist/{chunk-GJFFYHHX.mjs → chunk-VV534JNS.mjs} +5 -3
  116. package/dist/chunk-VV534JNS.mjs.map +1 -0
  117. package/dist/{chunk-V7FP66LM.mjs → chunk-WJZFE5NE.mjs} +2 -2
  118. package/dist/chunk-WJZFE5NE.mjs.map +1 -0
  119. package/dist/{chunk-ZELLSP3E.mjs → chunk-X7FZPY3P.mjs} +6 -4
  120. package/dist/{chunk-ZELLSP3E.mjs.map → chunk-X7FZPY3P.mjs.map} +1 -1
  121. package/dist/{chunk-Q6RSBDMM.mjs → chunk-XBYDAQGZ.mjs} +2 -2
  122. package/dist/chunk-XBYDAQGZ.mjs.map +1 -0
  123. package/dist/{chunk-ZJKVMRGU.mjs → chunk-YSBACFUR.mjs} +5 -5
  124. package/dist/chunk-YSBACFUR.mjs.map +1 -0
  125. package/dist/chunk-ZHXKBOK2.mjs +22 -0
  126. package/dist/chunk-ZHXKBOK2.mjs.map +1 -0
  127. package/dist/chunk-ZPNFXK7Y.mjs +36 -0
  128. package/dist/chunk-ZPNFXK7Y.mjs.map +1 -0
  129. package/dist/data/Condition.d.ts +3 -2
  130. package/dist/data/Condition.mjs +12 -8
  131. package/dist/data/Database.d.ts +2 -1
  132. package/dist/data/Database.mjs +12 -7
  133. package/dist/data/Field.d.ts +1 -1
  134. package/dist/data/Field.mjs +15 -11
  135. package/dist/data/Field.mjs.map +1 -1
  136. package/dist/data/InMemoryGateway.d.ts +5 -1
  137. package/dist/data/InMemoryGateway.mjs +25 -10
  138. package/dist/data/InMemoryGateway.mjs.map +1 -1
  139. package/dist/data/Query.d.ts +1 -1
  140. package/dist/data/QueryProvider.d.ts +2 -1
  141. package/dist/domain/Audit.d.ts +3 -2
  142. package/dist/domain/Audit.mjs +25 -10
  143. package/dist/domain/Child.d.ts +2 -1
  144. package/dist/domain/Child.mjs +25 -10
  145. package/dist/domain/Child.mjs.map +1 -1
  146. package/dist/domain/{values/DateTime.d.ts → DateTime.d.ts} +3 -1
  147. package/dist/domain/DateTime.mjs +35 -0
  148. package/dist/domain/Entity.d.ts +2 -1
  149. package/dist/domain/Entity.mjs +27 -12
  150. package/dist/domain/Entity.mjs.map +1 -1
  151. package/dist/domain/Repo.d.ts +7 -1
  152. package/dist/domain/Repo.mjs +31 -12
  153. package/dist/domain/Repo.mjs.map +1 -1
  154. package/dist/domain/Struct.d.ts +2 -1
  155. package/dist/domain/Struct.mjs +22 -7
  156. package/dist/domain/Typo.d.ts +7 -2
  157. package/dist/domain/Typo.mjs +23 -8
  158. package/dist/domain/Typo.mjs.map +1 -1
  159. package/dist/health/HealthResource.d.ts +2 -2
  160. package/dist/health/HealthResource.mjs +30 -16
  161. package/dist/health/HealthResource.mjs.map +1 -1
  162. package/dist/health/HealthUri.d.ts +2 -2
  163. package/dist/health/HealthUri.mjs +22 -8
  164. package/dist/http/CacheControl.d.ts +1 -1
  165. package/dist/http/CacheControl.mjs +23 -9
  166. package/dist/http/ContentType.d.ts +2 -1
  167. package/dist/http/ContentType.mjs +12 -7
  168. package/dist/http/HttpStatus.d.ts +3 -1
  169. package/dist/http/HttpStatus.mjs +12 -7
  170. package/dist/http/HttpVerb.d.ts +1 -1
  171. package/dist/http/HttpVerb.mjs +12 -7
  172. package/dist/http/LocalRequestStore.d.ts +2 -1
  173. package/dist/http/LocalRequestStore.mjs +12 -6
  174. package/dist/http/LocalRequestStore.mjs.map +1 -1
  175. package/dist/http/OriginatedError.d.ts +1 -1
  176. package/dist/http/OriginatedError.mjs +1 -2
  177. package/dist/http/OriginatedError.mjs.map +1 -1
  178. package/dist/http/Request.d.ts +1 -1
  179. package/dist/http/RequestOptions.d.ts +6 -1
  180. package/dist/http/RequestOptions.mjs +16 -9
  181. package/dist/http/Response.d.ts +2 -5
  182. package/dist/http/Response.mjs +7 -13
  183. package/dist/http/RestResult.d.ts +3 -1
  184. package/dist/http/RestResult.mjs +23 -8
  185. package/dist/http/Verb.d.ts +4 -1
  186. package/dist/http/Verb.mjs +27 -13
  187. package/dist/http/toResponse.d.ts +6 -0
  188. package/dist/http/toResponse.mjs +33 -0
  189. package/dist/index.d.ts +118 -12
  190. package/dist/index.js +1645 -2904
  191. package/dist/index.js.map +1 -1
  192. package/dist/index.mjs +118 -12
  193. package/dist/index.mjs.map +1 -1
  194. package/dist/process/App.mjs +13 -7
  195. package/dist/process/App.mjs.map +1 -1
  196. package/dist/process/Manage.d.ts +3 -1
  197. package/dist/process/Manage.mjs +22 -8
  198. package/dist/process/Manage.mjs.map +1 -1
  199. package/dist/process/Scope.d.ts +4 -1
  200. package/dist/process/Scope.mjs +13 -7
  201. package/dist/process/Search.d.ts +7 -2
  202. package/dist/process/Search.mjs +22 -8
  203. package/dist/process/UseCase.d.ts +4 -1
  204. package/dist/process/UseCase.mjs +19 -10
  205. package/dist/process/UseCase.mjs.map +1 -1
  206. package/dist/resources/AppProvider.d.ts +1 -1
  207. package/dist/resources/Req.d.ts +6 -1
  208. package/dist/resources/Req.mjs +21 -7
  209. package/dist/resources/Req.mjs.map +1 -1
  210. package/dist/resources/Requires.d.ts +2 -1
  211. package/dist/resources/Requires.mjs +10 -6
  212. package/dist/resources/Requires.mjs.map +1 -1
  213. package/dist/resources/Route.d.ts +5 -3
  214. package/dist/resources/Route.mjs +21 -7
  215. package/dist/resources/Service.d.ts +3 -1
  216. package/dist/resources/Service.mjs +24 -8
  217. package/dist/resources/Service.mjs.map +1 -1
  218. package/dist/security/Jwt.d.ts +5 -1
  219. package/dist/security/Jwt.mjs +24 -8
  220. package/dist/security/Jwt.mjs.map +1 -1
  221. package/dist/services/Api.d.ts +8 -2
  222. package/dist/services/Api.mjs +32 -16
  223. package/dist/services/ApiGateway.d.ts +6 -2
  224. package/dist/services/ApiGateway.mjs +35 -19
  225. package/dist/services/AxiosProvider.d.ts +3 -1
  226. package/dist/services/AxiosProvider.mjs +30 -14
  227. package/dist/services/MappedRouteGateway.d.ts +7 -3
  228. package/dist/services/MappedRouteGateway.mjs +41 -24
  229. package/dist/services/MappedRouteGateway.mjs.map +1 -1
  230. package/dist/services/RouteGateway.d.ts +7 -1
  231. package/dist/services/RouteGateway.mjs +36 -20
  232. package/dist/services/ViewRouteGateway.d.ts +10 -6
  233. package/dist/services/ViewRouteGateway.mjs +39 -22
  234. package/dist/services/ViewRouteGateway.mjs.map +1 -1
  235. package/dist/sql/Clause.d.ts +3 -2
  236. package/dist/sql/Clause.mjs +7 -8
  237. package/dist/sql/Column.d.ts +3 -2
  238. package/dist/sql/Column.mjs +24 -10
  239. package/dist/sql/Count.mjs +11 -9
  240. package/dist/sql/Delete.mjs +10 -8
  241. package/dist/sql/Insert.d.ts +1 -1
  242. package/dist/sql/Insert.mjs +12 -10
  243. package/dist/sql/Select.d.ts +1 -1
  244. package/dist/sql/Select.mjs +10 -8
  245. package/dist/sql/SqlQuery.d.ts +5 -2
  246. package/dist/sql/SqlQuery.mjs +9 -7
  247. package/dist/sql/Table.d.ts +13 -12
  248. package/dist/sql/Table.mjs +37 -22
  249. package/dist/sql/Table.mjs.map +1 -1
  250. package/dist/sql/TableGateway.d.ts +6 -2
  251. package/dist/sql/TableGateway.mjs +23 -9
  252. package/dist/sql/TableGateway.mjs.map +1 -1
  253. package/dist/sql/Update.d.ts +1 -1
  254. package/dist/sql/Update.mjs +12 -10
  255. package/dist/types/Array.mjs +4 -2
  256. package/dist/types/Builder.mjs +2 -6
  257. package/dist/types/Builder.mjs.map +1 -1
  258. package/dist/types/Cache.mjs +10 -6
  259. package/dist/types/Cache.mjs.map +1 -1
  260. package/dist/types/CacheAge.mjs +22 -8
  261. package/dist/types/Case.d.ts +3 -1
  262. package/dist/types/Case.mjs +20 -6
  263. package/dist/types/Constructor.d.ts +1 -0
  264. package/dist/types/Constructor.mjs +5 -1
  265. package/dist/types/Context.mjs +12 -6
  266. package/dist/types/Enum.mjs +11 -6
  267. package/dist/{domain/enums → types}/Environment.d.ts +1 -1
  268. package/dist/types/Environment.mjs +28 -0
  269. package/dist/types/Environment.mjs.map +1 -0
  270. package/dist/types/ErrorOrigin.d.ts +1 -1
  271. package/dist/types/Exception.mjs +13 -6
  272. package/dist/types/Gateway.mjs +15 -7
  273. package/dist/types/Id.mjs +3 -4
  274. package/dist/types/Is.d.ts +0 -4
  275. package/dist/types/Is.mjs +1 -6
  276. package/dist/types/IsA.d.ts +2 -0
  277. package/dist/types/IsA.mjs +8 -4
  278. package/dist/types/IsEqual.mjs +21 -7
  279. package/dist/types/Json.mjs +10 -6
  280. package/dist/types/List.d.ts +3 -3
  281. package/dist/types/List.mjs +8 -6
  282. package/dist/types/Meta.d.ts +1 -2
  283. package/dist/types/Meta.mjs +10 -8
  284. package/dist/types/Number.mjs +21 -7
  285. package/dist/types/Object.d.ts +8 -0
  286. package/dist/types/Object.mjs +20 -0
  287. package/dist/types/PageList.mjs +21 -7
  288. package/dist/types/Parser.mjs +25 -10
  289. package/dist/types/Parser.mjs.map +1 -1
  290. package/dist/types/Primitive.mjs +2 -2
  291. package/dist/types/Repository.d.ts +5 -1
  292. package/dist/types/Repository.mjs +15 -7
  293. package/dist/types/Result.mjs +13 -6
  294. package/dist/types/Results.mjs +14 -6
  295. package/dist/types/Tag.mjs +10 -6
  296. package/dist/types/Tag.mjs.map +1 -1
  297. package/dist/types/Template.d.ts +41 -2
  298. package/dist/types/Template.mjs +19 -8
  299. package/dist/types/Text.d.ts +0 -38
  300. package/dist/types/Text.mjs +2 -10
  301. package/dist/types/Try.mjs +20 -6
  302. package/dist/types/Uri.mjs +21 -7
  303. package/dist/types/Uuid.mjs +2 -3
  304. package/dist/types/Validatable.mjs +5 -3
  305. package/dist/types/Value.d.ts +2 -1
  306. package/dist/types/Value.mjs +3 -6
  307. package/dist/utils/Base64.d.ts +1 -1
  308. package/dist/utils/Base64.mjs.map +1 -1
  309. package/dist/utils/Convert.mjs +3 -7
  310. package/dist/utils/If.d.ts +2 -1
  311. package/dist/utils/If.mjs +4 -2
  312. package/dist/utils/Loading.mjs +1 -2
  313. package/dist/utils/Loading.mjs.map +1 -1
  314. package/dist/utils/Log.d.ts +1 -1
  315. package/dist/utils/Log.mjs.map +1 -1
  316. package/dist/utils/Mapper.d.ts +6 -1
  317. package/dist/utils/Mapper.mjs +15 -10
  318. package/dist/utils/Promise.d.ts +2 -1
  319. package/dist/utils/Promise.mjs +9 -6
  320. package/dist/utils/Property.d.ts +2 -1
  321. package/dist/utils/Property.mjs +4 -8
  322. package/dist/utils/Sentence.d.ts +2 -1
  323. package/dist/utils/Sentence.mjs +11 -6
  324. package/dist/utils/Sentence.mjs.map +1 -1
  325. package/dist/utils/State.d.ts +1 -1
  326. package/dist/utils/State.mjs +4 -2
  327. package/dist/utils/View.d.ts +6 -1
  328. package/dist/utils/View.mjs +24 -9
  329. package/dist/validation/Contraints.d.ts +3 -1
  330. package/dist/validation/Contraints.mjs +21 -7
  331. package/dist/validation/Validate.d.ts +3 -1
  332. package/dist/validation/Validate.mjs +20 -6
  333. package/dist/validation/When.d.ts +4 -1
  334. package/dist/validation/When.mjs +20 -6
  335. package/package.json +57 -2
  336. package/src/data/Condition.ts +17 -5
  337. package/src/data/Database.ts +7 -2
  338. package/src/data/Field.ts +3 -2
  339. package/src/data/InMemoryGateway.ts +8 -2
  340. package/src/data/Query.ts +1 -1
  341. package/src/data/QueryProvider.ts +2 -1
  342. package/src/domain/Audit.ts +11 -7
  343. package/src/domain/Child.ts +3 -2
  344. package/src/domain/{values/DateTime.ts → DateTime.ts} +8 -2
  345. package/src/domain/Entity.ts +3 -2
  346. package/src/domain/Repo.ts +15 -4
  347. package/src/domain/Struct.ts +4 -2
  348. package/src/domain/Typo.ts +13 -4
  349. package/src/health/HealthResource.ts +5 -3
  350. package/src/health/HealthUri.ts +1 -1
  351. package/src/http/CacheControl.ts +9 -3
  352. package/src/http/ContentType.ts +8 -2
  353. package/src/http/HttpStatus.ts +4 -1
  354. package/src/http/HttpVerb.ts +1 -1
  355. package/src/http/LocalRequestStore.ts +3 -1
  356. package/src/http/OriginatedError.ts +6 -2
  357. package/src/http/Request.ts +1 -1
  358. package/src/http/RequestOptions.ts +16 -2
  359. package/src/http/Response.ts +4 -9
  360. package/src/http/RestResult.ts +7 -1
  361. package/src/http/Verb.ts +5 -2
  362. package/src/http/toResponse.ts +12 -0
  363. package/src/index.ts +129 -12
  364. package/src/process/Manage.ts +3 -1
  365. package/src/process/Scope.ts +12 -2
  366. package/src/process/Search.ts +9 -3
  367. package/src/process/UseCase.ts +12 -2
  368. package/src/resources/AppProvider.ts +1 -1
  369. package/src/resources/Req.ts +14 -3
  370. package/src/resources/Requires.ts +3 -2
  371. package/src/resources/Route.ts +8 -3
  372. package/src/resources/Service.ts +9 -2
  373. package/src/security/Jwt.ts +7 -1
  374. package/src/services/Api.ts +12 -3
  375. package/src/services/ApiGateway.ts +7 -2
  376. package/src/services/AxiosProvider.ts +14 -2
  377. package/src/services/MappedRouteGateway.ts +13 -4
  378. package/src/services/RouteGateway.ts +14 -3
  379. package/src/services/ViewRouteGateway.ts +7 -3
  380. package/src/sql/Clause.ts +10 -3
  381. package/src/sql/Column.ts +14 -4
  382. package/src/sql/Count.ts +1 -1
  383. package/src/sql/Delete.ts +1 -1
  384. package/src/sql/Insert.ts +5 -2
  385. package/src/sql/Select.ts +6 -2
  386. package/src/sql/SqlQuery.ts +9 -3
  387. package/src/sql/Table.ts +6 -3
  388. package/src/sql/TableGateway.ts +13 -5
  389. package/src/sql/Update.ts +6 -2
  390. package/src/types/CacheAge.ts +3 -1
  391. package/src/types/Case.ts +14 -4
  392. package/src/types/Constructor.ts +3 -1
  393. package/src/types/Context.ts +7 -8
  394. package/src/{domain/enums → types}/Environment.ts +1 -1
  395. package/src/types/ErrorOrigin.ts +1 -1
  396. package/src/types/Exception.ts +7 -2
  397. package/src/types/Gateway.ts +1 -1
  398. package/src/types/Is.ts +0 -7
  399. package/src/types/IsA.ts +4 -0
  400. package/src/types/Json.ts +2 -2
  401. package/src/types/List.ts +13 -12
  402. package/src/types/Meta.ts +12 -9
  403. package/src/types/Object.ts +16 -0
  404. package/src/types/Parser.ts +1 -1
  405. package/src/types/Repository.ts +7 -2
  406. package/src/types/Template.ts +149 -12
  407. package/src/types/Text.ts +3 -138
  408. package/src/types/Try.ts +1 -1
  409. package/src/types/Uri.ts +2 -1
  410. package/src/types/Value.ts +4 -1
  411. package/src/utils/Base64.ts +1 -1
  412. package/src/utils/Convert.ts +5 -2
  413. package/src/utils/If.ts +3 -1
  414. package/src/utils/Loading.ts +1 -1
  415. package/src/utils/Log.ts +1 -1
  416. package/src/utils/Mapper.ts +13 -2
  417. package/src/utils/Promise.ts +3 -1
  418. package/src/utils/Property.ts +6 -2
  419. package/src/utils/Sentence.ts +8 -2
  420. package/src/utils/State.ts +1 -1
  421. package/src/utils/View.ts +15 -22
  422. package/src/validation/Contraints.ts +9 -1
  423. package/src/validation/Validate.ts +26 -29
  424. package/src/validation/When.ts +13 -3
  425. package/dist/chunk-2L3GZ6NK.mjs.map +0 -1
  426. package/dist/chunk-3MOFYE2N.mjs.map +0 -1
  427. package/dist/chunk-5J3LAY32.mjs.map +0 -1
  428. package/dist/chunk-624IHTEI.mjs.map +0 -1
  429. package/dist/chunk-65W3AYRE.mjs.map +0 -1
  430. package/dist/chunk-7Z3YQCXR.mjs.map +0 -1
  431. package/dist/chunk-A5MC57TL.mjs.map +0 -1
  432. package/dist/chunk-ARN4MTMY.mjs.map +0 -1
  433. package/dist/chunk-BAXNN36F.mjs.map +0 -1
  434. package/dist/chunk-C7OPGGIF.mjs +0 -21
  435. package/dist/chunk-C7OPGGIF.mjs.map +0 -1
  436. package/dist/chunk-CJDDGEEK.mjs.map +0 -1
  437. package/dist/chunk-EB26LF5Z.mjs.map +0 -1
  438. package/dist/chunk-ELFAMVTF.mjs.map +0 -1
  439. package/dist/chunk-F4CWMZCV.mjs.map +0 -1
  440. package/dist/chunk-GARRF3U7.mjs.map +0 -1
  441. package/dist/chunk-GJFFYHHX.mjs.map +0 -1
  442. package/dist/chunk-GUSPHVF2.mjs.map +0 -1
  443. package/dist/chunk-H7NDGISC.mjs.map +0 -1
  444. package/dist/chunk-HBJUEFGA.mjs +0 -26
  445. package/dist/chunk-HBJUEFGA.mjs.map +0 -1
  446. package/dist/chunk-I2NKUYUM.mjs +0 -272
  447. package/dist/chunk-I2NKUYUM.mjs.map +0 -1
  448. package/dist/chunk-I3DRDMCS.mjs.map +0 -1
  449. package/dist/chunk-I5MPU33B.mjs.map +0 -1
  450. package/dist/chunk-IWLJEAQZ.mjs.map +0 -1
  451. package/dist/chunk-J64VE55O.mjs.map +0 -1
  452. package/dist/chunk-L7JZMM3J.mjs.map +0 -1
  453. package/dist/chunk-MRIELSWP.mjs.map +0 -1
  454. package/dist/chunk-NKHZO3ME.mjs.map +0 -1
  455. package/dist/chunk-NOMZAVQC.mjs.map +0 -1
  456. package/dist/chunk-PFAEQQXA.mjs +0 -900
  457. package/dist/chunk-PFAEQQXA.mjs.map +0 -1
  458. package/dist/chunk-PWCGCUT7.mjs.map +0 -1
  459. package/dist/chunk-Q5ATL34D.mjs +0 -13
  460. package/dist/chunk-Q5ATL34D.mjs.map +0 -1
  461. package/dist/chunk-Q6RSBDMM.mjs.map +0 -1
  462. package/dist/chunk-QRLGQY7M.mjs.map +0 -1
  463. package/dist/chunk-QRN4Y2QC.mjs.map +0 -1
  464. package/dist/chunk-S5RHU67S.mjs.map +0 -1
  465. package/dist/chunk-SG6BDC6T.mjs.map +0 -1
  466. package/dist/chunk-TG5IPJOG.mjs.map +0 -1
  467. package/dist/chunk-TQUDYF6E.mjs.map +0 -1
  468. package/dist/chunk-UWNXWKBU.mjs.map +0 -1
  469. package/dist/chunk-V7FP66LM.mjs.map +0 -1
  470. package/dist/chunk-WX6UP67J.mjs +0 -40
  471. package/dist/chunk-WX6UP67J.mjs.map +0 -1
  472. package/dist/chunk-WYT52YAX.mjs.map +0 -1
  473. package/dist/chunk-XLFC44Y3.mjs.map +0 -1
  474. package/dist/chunk-Y5WPU3ZU.mjs.map +0 -1
  475. package/dist/chunk-YHL2CUBI.mjs.map +0 -1
  476. package/dist/chunk-YUSOGMIJ.mjs +0 -183
  477. package/dist/chunk-YUSOGMIJ.mjs.map +0 -1
  478. package/dist/chunk-YXE66GAL.mjs +0 -19
  479. package/dist/chunk-YXE66GAL.mjs.map +0 -1
  480. package/dist/chunk-ZJKVMRGU.mjs.map +0 -1
  481. package/dist/data/index.d.ts +0 -7
  482. package/dist/data/index.mjs +0 -8
  483. package/dist/data/index.mjs.map +0 -1
  484. package/dist/domain/enums/Country.d.ts +0 -256
  485. package/dist/domain/enums/Country.mjs +0 -16
  486. package/dist/domain/enums/Currency.d.ts +0 -127
  487. package/dist/domain/enums/Currency.mjs +0 -19
  488. package/dist/domain/enums/Environment.mjs +0 -23
  489. package/dist/domain/enums/Environment.mjs.map +0 -1
  490. package/dist/domain/enums/Locale.d.ts +0 -571
  491. package/dist/domain/enums/Locale.mjs +0 -594
  492. package/dist/domain/enums/Locale.mjs.map +0 -1
  493. package/dist/domain/enums/UnitOfMeasurement.d.ts +0 -10
  494. package/dist/domain/enums/UnitOfMeasurement.mjs +0 -16
  495. package/dist/domain/enums/UnitOfMeasurement.mjs.map +0 -1
  496. package/dist/domain/enums/UnitOfWeight.d.ts +0 -8
  497. package/dist/domain/enums/UnitOfWeight.mjs +0 -16
  498. package/dist/domain/enums/UnitOfWeight.mjs.map +0 -1
  499. package/dist/domain/enums/index.d.ts +0 -6
  500. package/dist/domain/enums/index.mjs +0 -7
  501. package/dist/domain/enums/index.mjs.map +0 -1
  502. package/dist/domain/index.d.ts +0 -9
  503. package/dist/domain/index.mjs +0 -10
  504. package/dist/domain/index.mjs.map +0 -1
  505. package/dist/domain/structs/Address.d.ts +0 -12
  506. package/dist/domain/structs/Address.mjs +0 -65
  507. package/dist/domain/structs/Address.mjs.map +0 -1
  508. package/dist/domain/structs/Box.d.ts +0 -15
  509. package/dist/domain/structs/Box.mjs +0 -58
  510. package/dist/domain/structs/Box.mjs.map +0 -1
  511. package/dist/domain/structs/Dimension.d.ts +0 -10
  512. package/dist/domain/structs/Dimension.mjs +0 -20
  513. package/dist/domain/structs/Dimension.mjs.map +0 -1
  514. package/dist/domain/structs/Money.d.ts +0 -12
  515. package/dist/domain/structs/Money.mjs +0 -23
  516. package/dist/domain/structs/Money.mjs.map +0 -1
  517. package/dist/domain/structs/Name.d.ts +0 -9
  518. package/dist/domain/structs/Name.mjs +0 -42
  519. package/dist/domain/structs/Name.mjs.map +0 -1
  520. package/dist/domain/structs/Weight.d.ts +0 -13
  521. package/dist/domain/structs/Weight.mjs +0 -57
  522. package/dist/domain/structs/Weight.mjs.map +0 -1
  523. package/dist/domain/structs/index.d.ts +0 -6
  524. package/dist/domain/structs/index.mjs +0 -7
  525. package/dist/domain/structs/index.mjs.map +0 -1
  526. package/dist/domain/values/DateTime.mjs +0 -21
  527. package/dist/domain/values/EAN.d.ts +0 -5
  528. package/dist/domain/values/EAN.mjs +0 -30
  529. package/dist/domain/values/EAN.mjs.map +0 -1
  530. package/dist/domain/values/Email.d.ts +0 -8
  531. package/dist/domain/values/Email.mjs +0 -37
  532. package/dist/domain/values/Email.mjs.map +0 -1
  533. package/dist/domain/values/IBAN.d.ts +0 -5
  534. package/dist/domain/values/IBAN.mjs +0 -30
  535. package/dist/domain/values/IBAN.mjs.map +0 -1
  536. package/dist/domain/values/PostalCode.d.ts +0 -8
  537. package/dist/domain/values/PostalCode.mjs +0 -19
  538. package/dist/domain/values/PostalCode.mjs.map +0 -1
  539. package/dist/domain/values/Slug.d.ts +0 -6
  540. package/dist/domain/values/Slug.mjs +0 -31
  541. package/dist/domain/values/Slug.mjs.map +0 -1
  542. package/dist/domain/values/Url.d.ts +0 -22
  543. package/dist/domain/values/Url.mjs +0 -36
  544. package/dist/domain/values/Url.mjs.map +0 -1
  545. package/dist/domain/values/index.d.ts +0 -7
  546. package/dist/domain/values/index.mjs +0 -8
  547. package/dist/domain/values/index.mjs.map +0 -1
  548. package/dist/health/index.d.ts +0 -2
  549. package/dist/health/index.mjs +0 -3
  550. package/dist/health/index.mjs.map +0 -1
  551. package/dist/http/index.d.ts +0 -12
  552. package/dist/http/index.mjs +0 -13
  553. package/dist/http/index.mjs.map +0 -1
  554. package/dist/process/index.d.ts +0 -5
  555. package/dist/process/index.mjs +0 -6
  556. package/dist/process/index.mjs.map +0 -1
  557. package/dist/resources/index.d.ts +0 -7
  558. package/dist/resources/index.mjs +0 -8
  559. package/dist/resources/index.mjs.map +0 -1
  560. package/dist/security/index.d.ts +0 -1
  561. package/dist/security/index.mjs +0 -2
  562. package/dist/security/index.mjs.map +0 -1
  563. package/dist/services/index.d.ts +0 -6
  564. package/dist/services/index.mjs +0 -7
  565. package/dist/services/index.mjs.map +0 -1
  566. package/dist/sql/index.d.ts +0 -10
  567. package/dist/sql/index.mjs +0 -11
  568. package/dist/sql/index.mjs.map +0 -1
  569. package/dist/types/index.d.ts +0 -43
  570. package/dist/types/index.mjs +0 -44
  571. package/dist/types/index.mjs.map +0 -1
  572. package/dist/utils/index.d.ts +0 -13
  573. package/dist/utils/index.mjs +0 -14
  574. package/dist/utils/index.mjs.map +0 -1
  575. package/dist/validation/index.d.ts +0 -3
  576. package/dist/validation/index.mjs +0 -4
  577. package/dist/validation/index.mjs.map +0 -1
  578. package/src/data/index.ts +0 -7
  579. package/src/domain/enums/Country.ts +0 -265
  580. package/src/domain/enums/Currency.ts +0 -133
  581. package/src/domain/enums/Locale.ts +0 -579
  582. package/src/domain/enums/UnitOfMeasurement.ts +0 -13
  583. package/src/domain/enums/UnitOfWeight.ts +0 -11
  584. package/src/domain/enums/countries.json +0 -251
  585. package/src/domain/enums/currencies.json +0 -1073
  586. package/src/domain/enums/index.ts +0 -6
  587. package/src/domain/enums/locales.json +0 -565
  588. package/src/domain/index.ts +0 -9
  589. package/src/domain/structs/Address.ts +0 -22
  590. package/src/domain/structs/Box.ts +0 -29
  591. package/src/domain/structs/Dimension.ts +0 -25
  592. package/src/domain/structs/Money.ts +0 -31
  593. package/src/domain/structs/Name.ts +0 -15
  594. package/src/domain/structs/Weight.ts +0 -35
  595. package/src/domain/structs/index.ts +0 -6
  596. package/src/domain/values/EAN.ts +0 -12
  597. package/src/domain/values/Email.ts +0 -20
  598. package/src/domain/values/IBAN.ts +0 -12
  599. package/src/domain/values/PostalCode.ts +0 -17
  600. package/src/domain/values/Slug.ts +0 -14
  601. package/src/domain/values/Url.ts +0 -73
  602. package/src/domain/values/index.ts +0 -7
  603. package/src/health/index.ts +0 -2
  604. package/src/http/index.ts +0 -12
  605. package/src/process/index.ts +0 -5
  606. package/src/resources/index.ts +0 -7
  607. package/src/security/index.ts +0 -1
  608. package/src/services/index.ts +0 -6
  609. package/src/sql/index.ts +0 -10
  610. package/src/types/index.ts +0 -43
  611. package/src/utils/index.ts +0 -13
  612. package/src/validation/index.ts +0 -3
  613. /package/dist/{chunk-GCPVSACZ.mjs.map → chunk-5YM5CLOG.mjs.map} +0 -0
  614. /package/dist/{chunk-2KKIXOMB.mjs.map → chunk-HNVAFEZP.mjs.map} +0 -0
  615. /package/dist/{chunk-OXVJLJIE.mjs.map → chunk-LXQQ5N6S.mjs.map} +0 -0
  616. /package/dist/{chunk-4ROYPQPC.mjs.map → chunk-OFGI5FLG.mjs.map} +0 -0
  617. /package/dist/domain/{values/DateTime.mjs.map → DateTime.mjs.map} +0 -0
  618. /package/dist/{domain/enums/Country.mjs.map → http/toResponse.mjs.map} +0 -0
  619. /package/dist/{domain/enums/Currency.mjs.map → types/Object.mjs.map} +0 -0
@@ -1,44 +0,0 @@
1
- export * from "./Array";
2
- export * from "./Builder";
3
- export * from "./Cache";
4
- export * from "./CacheAge";
5
- export * from "./Case";
6
- export * from "./Constructor";
7
- export * from "./Context";
8
- export * from "./Enum";
9
- export * from "./ErrorOrigin";
10
- export * from "./Exception";
11
- export * from "./Falsy";
12
- export * from "./Func";
13
- export * from "./Gateway";
14
- export * from "./Get";
15
- export * from "./Id";
16
- export * from "./Identity";
17
- export * from "./Is";
18
- export * from "./IsA";
19
- export * from "./IsDate";
20
- export * from "./IsEqual";
21
- export * from "./Json";
22
- export * from "./List";
23
- export * from "./Message";
24
- export * from "./Meta";
25
- export * from "./Nullish";
26
- export * from "./Number";
27
- export * from "./PageList";
28
- export * from "./Parser";
29
- export * from "./Primitive";
30
- export * from "./Repository";
31
- export * from "./Result";
32
- export * from "./Results";
33
- export * from "./Sort";
34
- export * from "./Tag";
35
- export * from "./Template";
36
- export * from "./Text";
37
- export * from "./Try";
38
- export * from "./TypeGuard";
39
- export * from "./Types";
40
- export * from "./Uri";
41
- export * from "./Uuid";
42
- export * from "./Validatable";
43
- export * from "./Value";
44
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["export * from './Array';\nexport * from './Builder';\nexport * from './Cache';\nexport * from './CacheAge';\nexport * from './Case';\nexport * from './Constructor';\nexport * from './Context';\nexport * from './Enum';\nexport * from './ErrorOrigin';\nexport * from './Exception';\nexport * from './Falsy';\nexport * from './Func';\nexport * from './Gateway';\nexport * from './Get';\nexport * from './Id';\nexport * from './Identity';\nexport * from './Is';\nexport * from './IsA';\nexport * from './IsDate';\nexport * from './IsEqual';\nexport * from './Json';\nexport * from './List';\nexport * from './Message';\nexport * from './Meta';\nexport * from './Nullish';\nexport * from './Number';\nexport * from './PageList';\nexport * from './Parser';\nexport * from './Primitive';\nexport * from './Repository';\nexport * from './Result';\nexport * from './Results';\nexport * from './Sort';\nexport * from './Tag';\nexport * from './Template';\nexport * from './Text';\nexport * from './Try';\nexport * from './TypeGuard';\nexport * from './Types';\nexport * from './Uri';\nexport * from './Uuid';\nexport * from './Validatable';\nexport * from './Value';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
@@ -1,13 +0,0 @@
1
- export * from './Base64';
2
- export * from './Convert';
3
- export * from './If';
4
- export * from './Loading';
5
- export * from './Log';
6
- export * from './Mapper';
7
- export * from './Promise';
8
- export * from './Property';
9
- export * from './State';
10
- export * from './Sentence';
11
- export * from './Traverse';
12
- export * from './View';
13
- export * from './Wait';
@@ -1,14 +0,0 @@
1
- export * from "./Base64";
2
- export * from "./Convert";
3
- export * from "./If";
4
- export * from "./Loading";
5
- export * from "./Log";
6
- export * from "./Mapper";
7
- export * from "./Promise";
8
- export * from "./Property";
9
- export * from "./State";
10
- export * from "./Sentence";
11
- export * from "./Traverse";
12
- export * from "./View";
13
- export * from "./Wait";
14
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/utils/index.ts"],"sourcesContent":["export * from './Base64';\nexport * from './Convert';\nexport * from './If';\nexport * from './Loading';\nexport * from './Log';\nexport * from './Mapper';\nexport * from './Promise';\nexport * from './Property';\nexport * from './State';\nexport * from './Sentence';\nexport * from './Traverse';\nexport * from './View';\nexport * from './Wait';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
@@ -1,3 +0,0 @@
1
- export * from './Contraints';
2
- export * from './Validate';
3
- export * from './When';
@@ -1,4 +0,0 @@
1
- export * from "./Contraints";
2
- export * from "./Validate";
3
- export * from "./When";
4
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/validation/index.ts"],"sourcesContent":["export * from './Contraints';\nexport * from './Validate';\nexport * from './When';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
package/src/data/index.ts DELETED
@@ -1,7 +0,0 @@
1
- export * from './Condition';
2
- export * from './InMemoryGateway';
3
- export * from './Database';
4
- export * from './DataProvider';
5
- export * from './Field';
6
- export * from './Query';
7
- export * from './QueryProvider';
@@ -1,265 +0,0 @@
1
- import { Enum, Id, Optional, text } from '../../types';
2
-
3
- export class Country extends Enum {
4
- static readonly AF = new Country('Afghanistan', 'AF');
5
- static readonly AX = new Country('Åland Islands', 'AX');
6
- static readonly AL = new Country('Albania', 'AL');
7
- static readonly DZ = new Country('Algeria', 'DZ');
8
- static readonly AS = new Country('American Samoa', 'AS');
9
- static readonly AD = new Country('Andorra', 'AD');
10
- static readonly AO = new Country('Angola', 'AO');
11
- static readonly AI = new Country('Anguilla', 'AI');
12
- static readonly AQ = new Country('Antarctica', 'AQ');
13
- static readonly AG = new Country('Antigua & Barbuda', 'AG');
14
- static readonly AR = new Country('Argentina', 'AR');
15
- static readonly AM = new Country('Armenia', 'AM');
16
- static readonly AW = new Country('Aruba', 'AW');
17
- static readonly AU = new Country('Australia', 'AU');
18
- static readonly AT = new Country('Austria', 'AT');
19
- static readonly AZ = new Country('Azerbaijan', 'AZ');
20
- static readonly BS = new Country('Bahamas', 'BS');
21
- static readonly BH = new Country('Bahrain', 'BH');
22
- static readonly BD = new Country('Bangladesh', 'BD');
23
- static readonly BB = new Country('Barbados', 'BB');
24
- static readonly BY = new Country('Belarus', 'BY');
25
- static readonly BE = new Country('Belgium', 'BE');
26
- static readonly BZ = new Country('Belize', 'BZ');
27
- static readonly BJ = new Country('Benin', 'BJ');
28
- static readonly BM = new Country('Bermuda', 'BM');
29
- static readonly BT = new Country('Bhutan', 'BT');
30
- static readonly BO = new Country('Bolivia', 'BO');
31
- static readonly BA = new Country('Bosnia & Herzegovina', 'BA');
32
- static readonly BW = new Country('Botswana', 'BW');
33
- static readonly BV = new Country('Bouvet Island', 'BV');
34
- static readonly BR = new Country('Brazil', 'BR');
35
- static readonly IO = new Country('British Indian Ocean Territory', 'IO');
36
- static readonly VG = new Country('British Virgin Islands', 'VG');
37
- static readonly BN = new Country('Brunei', 'BN');
38
- static readonly BG = new Country('Bulgaria', 'BG');
39
- static readonly BF = new Country('Burkina Faso', 'BF');
40
- static readonly BI = new Country('Burundi', 'BI');
41
- static readonly KH = new Country('Cambodia', 'KH');
42
- static readonly CM = new Country('Cameroon', 'CM');
43
- static readonly CA = new Country('Canada', 'CA');
44
- static readonly CV = new Country('Cape Verde', 'CV');
45
- static readonly BQ = new Country('Caribbean Netherlands', 'BQ');
46
- static readonly KY = new Country('Cayman Islands', 'KY');
47
- static readonly CF = new Country('Central African Republic', 'CF');
48
- static readonly TD = new Country('Chad', 'TD');
49
- static readonly CL = new Country('Chile', 'CL');
50
- static readonly CN = new Country('China', 'CN');
51
- static readonly CX = new Country('Christmas Island', 'CX');
52
- static readonly CC = new Country('Cocos (Keeling) Islands', 'CC');
53
- static readonly CO = new Country('Colombia', 'CO');
54
- static readonly KM = new Country('Comoros', 'KM');
55
- static readonly CG = new Country('Congo - Brazzaville', 'CG');
56
- static readonly CD = new Country('Congo - Kinshasa', 'CD');
57
- static readonly CK = new Country('Cook Islands', 'CK');
58
- static readonly CR = new Country('Costa Rica', 'CR');
59
- static readonly CI = new Country('Côte d’Ivoire', 'CI');
60
- static readonly HR = new Country('Croatia', 'HR');
61
- static readonly CU = new Country('Cuba', 'CU');
62
- static readonly CW = new Country('Curaçao', 'CW');
63
- static readonly CY = new Country('Cyprus', 'CY');
64
- static readonly CZ = new Country('Czechia', 'CZ');
65
- static readonly DK = new Country('Denmark', 'DK');
66
- static readonly DJ = new Country('Djibouti', 'DJ');
67
- static readonly DM = new Country('Dominica', 'DM');
68
- static readonly DO = new Country('Dominican Republic', 'DO');
69
- static readonly EC = new Country('Ecuador', 'EC');
70
- static readonly EG = new Country('Egypt', 'EG');
71
- static readonly SV = new Country('El Salvador', 'SV');
72
- static readonly GQ = new Country('Equatorial Guinea', 'GQ');
73
- static readonly ER = new Country('Eritrea', 'ER');
74
- static readonly EE = new Country('Estonia', 'EE');
75
- static readonly SZ = new Country('Eswatini', 'SZ');
76
- static readonly ET = new Country('Ethiopia', 'ET');
77
- static readonly FK = new Country('Falkland Islands', 'FK');
78
- static readonly FO = new Country('Faroe Islands', 'FO');
79
- static readonly FJ = new Country('Fiji', 'FJ');
80
- static readonly FI = new Country('Finland', 'FI');
81
- static readonly FR = new Country('France', 'FR');
82
- static readonly GF = new Country('French Guiana', 'GF');
83
- static readonly PF = new Country('French Polynesia', 'PF');
84
- static readonly TF = new Country('French Southern Territories', 'TF');
85
- static readonly GA = new Country('Gabon', 'GA');
86
- static readonly GM = new Country('Gambia', 'GM');
87
- static readonly GE = new Country('Georgia', 'GE');
88
- static readonly DE = new Country('Germany', 'DE');
89
- static readonly GH = new Country('Ghana', 'GH');
90
- static readonly GI = new Country('Gibraltar', 'GI');
91
- static readonly GR = new Country('Greece', 'GR');
92
- static readonly GL = new Country('Greenland', 'GL');
93
- static readonly GD = new Country('Grenada', 'GD');
94
- static readonly GP = new Country('Guadeloupe', 'GP');
95
- static readonly GU = new Country('Guam', 'GU');
96
- static readonly GT = new Country('Guatemala', 'GT');
97
- static readonly GG = new Country('Guernsey', 'GG');
98
- static readonly GN = new Country('Guinea', 'GN');
99
- static readonly GW = new Country('Guinea-Bissau', 'GW');
100
- static readonly GY = new Country('Guyana', 'GY');
101
- static readonly HT = new Country('Haiti', 'HT');
102
- static readonly HM = new Country('Heard & McDonald Islands', 'HM');
103
- static readonly HN = new Country('Honduras', 'HN');
104
- static readonly HK = new Country('Hong Kong SAR China', 'HK');
105
- static readonly HU = new Country('Hungary', 'HU');
106
- static readonly IS = new Country('Iceland', 'IS');
107
- static readonly IN = new Country('India', 'IN');
108
- static readonly ID = new Country('Indonesia', 'ID');
109
- static readonly IR = new Country('Iran', 'IR');
110
- static readonly IQ = new Country('Iraq', 'IQ');
111
- static readonly IE = new Country('Ireland', 'IE');
112
- static readonly IM = new Country('Isle of Man', 'IM');
113
- static readonly IL = new Country('Israel', 'IL');
114
- static readonly IT = new Country('Italy', 'IT');
115
- static readonly JM = new Country('Jamaica', 'JM');
116
- static readonly JP = new Country('Japan', 'JP');
117
- static readonly JE = new Country('Jersey', 'JE');
118
- static readonly JO = new Country('Jordan', 'JO');
119
- static readonly KZ = new Country('Kazakhstan', 'KZ');
120
- static readonly KE = new Country('Kenya', 'KE');
121
- static readonly KI = new Country('Kiribati', 'KI');
122
- static readonly KW = new Country('Kuwait', 'KW');
123
- static readonly KG = new Country('Kyrgyzstan', 'KG');
124
- static readonly LA = new Country('Laos', 'LA');
125
- static readonly LV = new Country('Latvia', 'LV');
126
- static readonly LB = new Country('Lebanon', 'LB');
127
- static readonly LS = new Country('Lesotho', 'LS');
128
- static readonly LR = new Country('Liberia', 'LR');
129
- static readonly LY = new Country('Libya', 'LY');
130
- static readonly LI = new Country('Liechtenstein', 'LI');
131
- static readonly LT = new Country('Lithuania', 'LT');
132
- static readonly LU = new Country('Luxembourg', 'LU');
133
- static readonly MO = new Country('Macao SAR China', 'MO');
134
- static readonly MG = new Country('Madagascar', 'MG');
135
- static readonly MW = new Country('Malawi', 'MW');
136
- static readonly MY = new Country('Malaysia', 'MY');
137
- static readonly MV = new Country('Maldives', 'MV');
138
- static readonly ML = new Country('Mali', 'ML');
139
- static readonly MT = new Country('Malta', 'MT');
140
- static readonly MH = new Country('Marshall Islands', 'MH');
141
- static readonly MQ = new Country('Martinique', 'MQ');
142
- static readonly MR = new Country('Mauritania', 'MR');
143
- static readonly MU = new Country('Mauritius', 'MU');
144
- static readonly YT = new Country('Mayotte', 'YT');
145
- static readonly MX = new Country('Mexico', 'MX');
146
- static readonly FM = new Country('Micronesia', 'FM');
147
- static readonly MD = new Country('Moldova', 'MD');
148
- static readonly MC = new Country('Monaco', 'MC');
149
- static readonly MN = new Country('Mongolia', 'MN');
150
- static readonly ME = new Country('Montenegro', 'ME');
151
- static readonly MS = new Country('Montserrat', 'MS');
152
- static readonly MA = new Country('Morocco', 'MA');
153
- static readonly MZ = new Country('Mozambique', 'MZ');
154
- static readonly MM = new Country('Myanmar (Burma)', 'MM');
155
- static readonly NA = new Country('Namibia', 'NA');
156
- static readonly NR = new Country('Nauru', 'NR');
157
- static readonly NP = new Country('Nepal', 'NP');
158
- static readonly NL = new Country('Netherlands', 'NL');
159
- static readonly NC = new Country('New Caledonia', 'NC');
160
- static readonly NZ = new Country('New Zealand', 'NZ');
161
- static readonly NI = new Country('Nicaragua', 'NI');
162
- static readonly NE = new Country('Niger', 'NE');
163
- static readonly NG = new Country('Nigeria', 'NG');
164
- static readonly NU = new Country('Niue', 'NU');
165
- static readonly NF = new Country('Norfolk Island', 'NF');
166
- static readonly KP = new Country('North Korea', 'KP');
167
- static readonly MK = new Country('North Macedonia', 'MK');
168
- static readonly MP = new Country('Northern Mariana Islands', 'MP');
169
- static readonly NO = new Country('Norway', 'NO');
170
- static readonly OM = new Country('Oman', 'OM');
171
- static readonly PK = new Country('Pakistan', 'PK');
172
- static readonly PW = new Country('Palau', 'PW');
173
- static readonly PS = new Country('Palestinian Territories', 'PS');
174
- static readonly PA = new Country('Panama', 'PA');
175
- static readonly PG = new Country('Papua New Guinea', 'PG');
176
- static readonly PY = new Country('Paraguay', 'PY');
177
- static readonly PE = new Country('Peru', 'PE');
178
- static readonly PH = new Country('Philippines', 'PH');
179
- static readonly PN = new Country('Pitcairn Islands', 'PN');
180
- static readonly PL = new Country('Poland', 'PL');
181
- static readonly PT = new Country('Portugal', 'PT');
182
- static readonly PR = new Country('Puerto Rico', 'PR');
183
- static readonly QA = new Country('Qatar', 'QA');
184
- static readonly RE = new Country('Réunion', 'RE');
185
- static readonly RO = new Country('Romania', 'RO');
186
- static readonly RU = new Country('Russia', 'RU');
187
- static readonly RW = new Country('Rwanda', 'RW');
188
- static readonly WS = new Country('Samoa', 'WS');
189
- static readonly SM = new Country('San Marino', 'SM');
190
- static readonly ST = new Country('São Tomé & Príncipe', 'ST');
191
- static readonly SA = new Country('Saudi Arabia', 'SA');
192
- static readonly SN = new Country('Senegal', 'SN');
193
- static readonly RS = new Country('Serbia', 'RS');
194
- static readonly SC = new Country('Seychelles', 'SC');
195
- static readonly SL = new Country('Sierra Leone', 'SL');
196
- static readonly SG = new Country('Singapore', 'SG');
197
- static readonly SX = new Country('Sint Maarten', 'SX');
198
- static readonly SK = new Country('Slovakia', 'SK');
199
- static readonly SI = new Country('Slovenia', 'SI');
200
- static readonly SB = new Country('Solomon Islands', 'SB');
201
- static readonly SO = new Country('Somalia', 'SO');
202
- static readonly ZA = new Country('South Africa', 'ZA');
203
- static readonly GS = new Country('South Georgia & South Sandwich Islands', 'GS');
204
- static readonly KR = new Country('South Korea', 'KR');
205
- static readonly SS = new Country('South Sudan', 'SS');
206
- static readonly ES = new Country('Spain', 'ES');
207
- static readonly LK = new Country('Sri Lanka', 'LK');
208
- static readonly BL = new Country('St. Barthélemy', 'BL');
209
- static readonly SH = new Country('St. Helena', 'SH');
210
- static readonly KN = new Country('St. Kitts & Nevis', 'KN');
211
- static readonly LC = new Country('St. Lucia', 'LC');
212
- static readonly MF = new Country('St. Martin', 'MF');
213
- static readonly PM = new Country('St. Pierre & Miquelon', 'PM');
214
- static readonly VC = new Country('St. Vincent & Grenadines', 'VC');
215
- static readonly SD = new Country('Sudan', 'SD');
216
- static readonly SR = new Country('Suriname', 'SR');
217
- static readonly SJ = new Country('Svalbard & Jan Mayen', 'SJ');
218
- static readonly SE = new Country('Sweden', 'SE');
219
- static readonly CH = new Country('Switzerland', 'CH');
220
- static readonly SY = new Country('Syria', 'SY');
221
- static readonly TW = new Country('Taiwan', 'TW');
222
- static readonly TJ = new Country('Tajikistan', 'TJ');
223
- static readonly TZ = new Country('Tanzania', 'TZ');
224
- static readonly TH = new Country('Thailand', 'TH');
225
- static readonly TL = new Country('Timor-Leste', 'TL');
226
- static readonly TG = new Country('Togo', 'TG');
227
- static readonly TK = new Country('Tokelau', 'TK');
228
- static readonly TO = new Country('Tonga', 'TO');
229
- static readonly TT = new Country('Trinidad & Tobago', 'TT');
230
- static readonly TN = new Country('Tunisia', 'TN');
231
- static readonly TR = new Country('Turkey', 'TR');
232
- static readonly TM = new Country('Turkmenistan', 'TM');
233
- static readonly TC = new Country('Turks & Caicos Islands', 'TC');
234
- static readonly TV = new Country('Tuvalu', 'TV');
235
- static readonly UM = new Country('U.S. Outlying Islands', 'UM');
236
- static readonly VI = new Country('U.S. Virgin Islands', 'VI');
237
- static readonly UG = new Country('Uganda', 'UG');
238
- static readonly UA = new Country('Ukraine', 'UA');
239
- static readonly AE = new Country('United Arab Emirates', 'AE');
240
- static readonly GB = new Country('United Kingdom', 'GB');
241
- static readonly US = new Country('United States', 'US');
242
- static readonly UY = new Country('Uruguay', 'UY');
243
- static readonly UZ = new Country('Uzbekistan', 'UZ');
244
- static readonly VU = new Country('Vanuatu', 'VU');
245
- static readonly VA = new Country('Vatican City', 'VA');
246
- static readonly VE = new Country('Venezuela', 'VE');
247
- static readonly VN = new Country('Vietnam', 'VN');
248
- static readonly WF = new Country('Wallis & Futuna', 'WF');
249
- static readonly EH = new Country('Western Sahara', 'EH');
250
- static readonly YE = new Country('Yemen', 'YE');
251
- static readonly ZM = new Country('Zambia', 'ZM');
252
- static readonly ZW = new Country('Zimbabwe', 'ZW');
253
-
254
- constructor(name: string, id: string, private readonly lower = text(id).lower.trim.toString()) {
255
- super(name, id);
256
- }
257
-
258
- static lookup(other: string): Optional<Country> {
259
- return this.all<Country>().first(l => l.equals(other));
260
- }
261
-
262
- equals<E extends Enum>(other: E | Id): other is E {
263
- return text(other).lower.trim.equals(this.lower);
264
- }
265
- }
@@ -1,133 +0,0 @@
1
- import { Enum } from '../../types';
2
- import { money, Money } from '../structs';
3
-
4
- export class Currency extends Enum {
5
- constructor(id: string, name: string, readonly digits: number, code: string) {
6
- super(name, id, code);
7
- }
8
- static readonly EUR = new Currency('EUR', 'Euro', 2, '€');
9
- static readonly USD = new Currency('USD', 'US Dollar', 2, '$');
10
- static readonly AED = new Currency('AED', 'United Arab Emirates Dirham', 2, 'AED');
11
- static readonly AFN = new Currency('AFN', 'Afghan Afghani', 0, 'Af');
12
- static readonly ALL = new Currency('ALL', 'Albanian Lek', 0, 'ALL');
13
- static readonly AMD = new Currency('AMD', 'Armenian Dram', 0, 'AMD');
14
- static readonly ARS = new Currency('ARS', 'Argentine Peso', 2, 'AR$');
15
- static readonly AUD = new Currency('AUD', 'Australian Dollar', 2, 'AU$');
16
- static readonly AZN = new Currency('AZN', 'Azerbaijani Manat', 2, 'man.');
17
- static readonly BAM = new Currency('BAM', 'Bosnia-Herzegovina Convertible Mark', 2, 'KM');
18
- static readonly BDT = new Currency('BDT', 'Bangladeshi Taka', 2, 'Tk');
19
- static readonly BGN = new Currency('BGN', 'Bulgarian Lev', 2, 'BGN');
20
- static readonly BHD = new Currency('BHD', 'Bahraini Dinar', 3, 'BD');
21
- static readonly BIF = new Currency('BIF', 'Burundian Franc', 0, 'FBu');
22
- static readonly BND = new Currency('BND', 'Brunei Dollar', 2, 'BN$');
23
- static readonly BOB = new Currency('BOB', 'Bolivian Boliviano', 2, 'Bs');
24
- static readonly BRL = new Currency('BRL', 'Brazilian Real', 2, 'R$');
25
- static readonly BWP = new Currency('BWP', 'Botswanan Pula', 2, 'BWP');
26
- static readonly BYN = new Currency('BYN', 'Belarusian Ruble', 2, 'Br');
27
- static readonly BZD = new Currency('BZD', 'Belize Dollar', 2, 'BZ$');
28
- static readonly CAD = new Currency('CAD', 'Canadian Dollar', 2, 'CA$');
29
- static readonly CDF = new Currency('CDF', 'Congolese Franc', 2, 'CDF');
30
- static readonly CHF = new Currency('CHF', 'Swiss Franc', 2, 'CHF');
31
- static readonly CLP = new Currency('CLP', 'Chilean Peso', 0, 'CL$');
32
- static readonly CNY = new Currency('CNY', 'Chinese Yuan', 2, 'CN¥');
33
- static readonly COP = new Currency('COP', 'Colombian Peso', 0, 'CO$');
34
- static readonly CRC = new Currency('CRC', 'Costa Rican Colón', 0, '₡');
35
- static readonly CVE = new Currency('CVE', 'Cape Verdean Escudo', 2, 'CV$');
36
- static readonly CZK = new Currency('CZK', 'Czech Republic Koruna', 2, 'Kč');
37
- static readonly DJF = new Currency('DJF', 'Djiboutian Franc', 0, 'Fdj');
38
- static readonly DKK = new Currency('DKK', 'Danish Krone', 2, 'Dkr');
39
- static readonly DOP = new Currency('DOP', 'Dominican Peso', 2, 'RD$');
40
- static readonly DZD = new Currency('DZD', 'Algerian Dinar', 2, 'DA');
41
- static readonly EEK = new Currency('EEK', 'Estonian Kroon', 2, 'Ekr');
42
- static readonly EGP = new Currency('EGP', 'Egyptian Pound', 2, 'EGP');
43
- static readonly ERN = new Currency('ERN', 'Eritrean Nakfa', 2, 'Nfk');
44
- static readonly ETB = new Currency('ETB', 'Ethiopian Birr', 2, 'Br');
45
- static readonly GBP = new Currency('GBP', 'British Pound Sterling', 2, '£');
46
- static readonly GEL = new Currency('GEL', 'Georgian Lari', 2, 'GEL');
47
- static readonly GHS = new Currency('GHS', 'Ghanaian Cedi', 2, 'GH₵');
48
- static readonly GNF = new Currency('GNF', 'Guinean Franc', 0, 'FG');
49
- static readonly GTQ = new Currency('GTQ', 'Guatemalan Quetzal', 2, 'GTQ');
50
- static readonly HKD = new Currency('HKD', 'Hong Kong Dollar', 2, 'HK$');
51
- static readonly HNL = new Currency('HNL', 'Honduran Lempira', 2, 'HNL');
52
- static readonly HRK = new Currency('HRK', 'Croatian Kuna', 2, 'kn');
53
- static readonly HUF = new Currency('HUF', 'Hungarian Forint', 0, 'Ft');
54
- static readonly IDR = new Currency('IDR', 'Indonesian Rupiah', 0, 'Rp');
55
- static readonly ILS = new Currency('ILS', 'Israeli New Sheqel', 2, '₪');
56
- static readonly INR = new Currency('INR', 'Indian Rupee', 2, 'Rs');
57
- static readonly IQD = new Currency('IQD', 'Iraqi Dinar', 0, 'IQD');
58
- static readonly IRR = new Currency('IRR', 'Iranian Rial', 0, 'IRR');
59
- static readonly ISK = new Currency('ISK', 'Icelandic Króna', 0, 'Ikr');
60
- static readonly JMD = new Currency('JMD', 'Jamaican Dollar', 2, 'J$');
61
- static readonly JOD = new Currency('JOD', 'Jordanian Dinar', 3, 'JD');
62
- static readonly JPY = new Currency('JPY', 'Japanese Yen', 0, '¥');
63
- static readonly KES = new Currency('KES', 'Kenyan Shilling', 2, 'Ksh');
64
- static readonly KHR = new Currency('KHR', 'Cambodian Riel', 2, 'KHR');
65
- static readonly KMF = new Currency('KMF', 'Comorian Franc', 0, 'CF');
66
- static readonly KRW = new Currency('KRW', 'South Korean Won', 0, '₩');
67
- static readonly KWD = new Currency('KWD', 'Kuwaiti Dinar', 3, 'KD');
68
- static readonly KZT = new Currency('KZT', 'Kazakhstani Tenge', 2, 'KZT');
69
- static readonly LBP = new Currency('LBP', 'Lebanese Pound', 0, 'L.L.');
70
- static readonly LKR = new Currency('LKR', 'Sri Lankan Rupee', 2, 'SLRs');
71
- static readonly LTL = new Currency('LTL', 'Lithuanian Litas', 2, 'Lt');
72
- static readonly LVL = new Currency('LVL', 'Latvian Lats', 2, 'Ls');
73
- static readonly LYD = new Currency('LYD', 'Libyan Dinar', 3, 'LD');
74
- static readonly MAD = new Currency('MAD', 'Moroccan Dirham', 2, 'MAD');
75
- static readonly MDL = new Currency('MDL', 'Moldovan Leu', 2, 'MDL');
76
- static readonly MGA = new Currency('MGA', 'Malagasy Ariary', 0, 'MGA');
77
- static readonly MKD = new Currency('MKD', 'Macedonian Denar', 2, 'MKD');
78
- static readonly MMK = new Currency('MMK', 'Myanma Kyat', 0, 'MMK');
79
- static readonly MOP = new Currency('MOP', 'Macanese Pataca', 2, 'MOP$');
80
- static readonly MUR = new Currency('MUR', 'Mauritian Rupee', 0, 'MURs');
81
- static readonly MXN = new Currency('MXN', 'Mexican Peso', 2, 'MX$');
82
- static readonly MYR = new Currency('MYR', 'Malaysian Ringgit', 2, 'RM');
83
- static readonly MZN = new Currency('MZN', 'Mozambican Metical', 2, 'MTn');
84
- static readonly NAD = new Currency('NAD', 'Namibian Dollar', 2, 'N$');
85
- static readonly NGN = new Currency('NGN', 'Nigerian Naira', 2, '₦');
86
- static readonly NIO = new Currency('NIO', 'Nicaraguan Córdoba', 2, 'C$');
87
- static readonly NOK = new Currency('NOK', 'Norwegian Krone', 2, 'Nkr');
88
- static readonly NPR = new Currency('NPR', 'Nepalese Rupee', 2, 'NPRs');
89
- static readonly NZD = new Currency('NZD', 'New Zealand Dollar', 2, 'NZ$');
90
- static readonly OMR = new Currency('OMR', 'Omani Rial', 3, 'OMR');
91
- static readonly PAB = new Currency('PAB', 'Panamanian Balboa', 2, 'B/.');
92
- static readonly PEN = new Currency('PEN', 'Peruvian Nuevo Sol', 2, 'S/.');
93
- static readonly PHP = new Currency('PHP', 'Philippine Peso', 2, '₱');
94
- static readonly PKR = new Currency('PKR', 'Pakistani Rupee', 0, 'PKRs');
95
- static readonly PLN = new Currency('PLN', 'Polish Zloty', 2, 'zł');
96
- static readonly PYG = new Currency('PYG', 'Paraguayan Guarani', 0, '₲');
97
- static readonly QAR = new Currency('QAR', 'Qatari Rial', 2, 'QR');
98
- static readonly RON = new Currency('RON', 'Romanian Leu', 2, 'RON');
99
- static readonly RSD = new Currency('RSD', 'Serbian Dinar', 0, 'din.');
100
- static readonly RUB = new Currency('RUB', 'Russian Ruble', 2, 'RUB');
101
- static readonly RWF = new Currency('RWF', 'Rwandan Franc', 0, 'RWF');
102
- static readonly SAR = new Currency('SAR', 'Saudi Riyal', 2, 'SR');
103
- static readonly SDG = new Currency('SDG', 'Sudanese Pound', 2, 'SDG');
104
- static readonly SEK = new Currency('SEK', 'Swedish Krona', 2, 'Skr');
105
- static readonly SGD = new Currency('SGD', 'Singapore Dollar', 2, 'S$');
106
- static readonly SOS = new Currency('SOS', 'Somali Shilling', 0, 'Ssh');
107
- static readonly SYP = new Currency('SYP', 'Syrian Pound', 0, 'SY£');
108
- static readonly THB = new Currency('THB', 'Thai Baht', 2, '฿');
109
- static readonly TND = new Currency('TND', 'Tunisian Dinar', 3, 'DT');
110
- static readonly TOP = new Currency('TOP', 'Tongan Paʻanga', 2, 'T$');
111
- static readonly TRY = new Currency('TRY', 'Turkish Lira', 2, 'TL');
112
- static readonly TTD = new Currency('TTD', 'Trinidad and Tobago Dollar', 2, 'TT$');
113
- static readonly TWD = new Currency('TWD', 'New Taiwan Dollar', 2, 'NT$');
114
- static readonly TZS = new Currency('TZS', 'Tanzanian Shilling', 0, 'TSh');
115
- static readonly UAH = new Currency('UAH', 'Ukrainian Hryvnia', 2, '₴');
116
- static readonly UGX = new Currency('UGX', 'Ugandan Shilling', 0, 'USh');
117
- static readonly UYU = new Currency('UYU', 'Uruguayan Peso', 2, '$U');
118
- static readonly UZS = new Currency('UZS', 'Uzbekistan Som', 0, 'UZS');
119
- static readonly VEF = new Currency('VEF', 'Venezuelan Bolívar', 2, 'Bs.F.');
120
- static readonly VND = new Currency('VND', 'Vietnamese Dong', 0, '₫');
121
- static readonly XAF = new Currency('XAF', 'CFA Franc BEAC', 0, 'FCFA');
122
- static readonly XOF = new Currency('XOF', 'CFA Franc BCEAO', 0, 'CFA');
123
- static readonly YER = new Currency('YER', 'Yemeni Rial', 0, 'YR');
124
- static readonly ZAR = new Currency('ZAR', 'South African Rand', 2, 'R');
125
- static readonly ZMK = new Currency('ZMK', 'Zambian Kwacha', 0, 'ZK');
126
- static readonly ZWL = new Currency('ZWL', 'Zimbabwean Dollar', 0, 'ZWL$');
127
-
128
- amount = (amount = 0): Money => money(this, amount);
129
-
130
- get zero(): Money {
131
- return this.amount();
132
- }
133
- }