@thisisagile/easy 16.0.0 → 17.0.0

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 (256) hide show
  1. package/dist/{chunk-UNHWYQ54.mjs → chunk-27YL5N6O.mjs} +4 -4
  2. package/dist/{chunk-QQRGOHU6.mjs → chunk-2BGTVGU4.mjs} +2 -2
  3. package/dist/{chunk-X7FZPY3P.mjs → chunk-2KBPI5HD.mjs} +2 -2
  4. package/dist/{chunk-M47EOYDK.mjs → chunk-2S656HDG.mjs} +4 -4
  5. package/dist/{chunk-APYISY5K.mjs → chunk-2YNBXKAS.mjs} +2 -2
  6. package/dist/{chunk-YSBACFUR.mjs → chunk-3CTCZJ2E.mjs} +5 -5
  7. package/dist/{chunk-45GNHDKA.mjs → chunk-3G2I3M46.mjs} +4 -4
  8. package/dist/{chunk-6VLC4Z4H.mjs → chunk-3PG7XJVW.mjs} +2 -2
  9. package/dist/{chunk-7TJ4VCBE.mjs → chunk-3VP6O3LL.mjs} +9 -9
  10. package/dist/{chunk-D5FLGKVR.mjs → chunk-464AOKCS.mjs} +8 -8
  11. package/dist/{chunk-3L4RAR24.mjs → chunk-4IGBNRNB.mjs} +5 -5
  12. package/dist/{chunk-Q5HABVOK.mjs → chunk-5TDKTZD7.mjs} +3 -3
  13. package/dist/{chunk-D4K4MC24.mjs → chunk-7GL3D7F7.mjs} +3 -3
  14. package/dist/{chunk-2ZUDYGPP.mjs → chunk-A37OECZ2.mjs} +5 -5
  15. package/dist/{chunk-IAXKOENJ.mjs → chunk-A7PAVXBM.mjs} +4 -4
  16. package/dist/{chunk-KRLEHX37.mjs → chunk-ANOORQCM.mjs} +5 -5
  17. package/dist/{chunk-NYYHRFBW.mjs → chunk-AQT7Z43R.mjs} +4 -4
  18. package/dist/{chunk-U53FLD4J.mjs → chunk-CGMASUXA.mjs} +3 -3
  19. package/dist/{chunk-UKHDSTTZ.mjs → chunk-CMHJOQBL.mjs} +5 -5
  20. package/dist/{chunk-TMZRZLA2.mjs → chunk-CYTFXBYW.mjs} +3 -3
  21. package/dist/{chunk-J7XKOXMW.mjs → chunk-EGVFHL23.mjs} +6 -6
  22. package/dist/{chunk-A62OK7XE.mjs → chunk-F7C6VY2D.mjs} +5 -5
  23. package/dist/{chunk-HBJMCX2I.mjs → chunk-FCGLOMI7.mjs} +3 -3
  24. package/dist/{chunk-ZHXKBOK2.mjs → chunk-G4GZG77M.mjs} +2 -2
  25. package/dist/{chunk-ARTSACXM.mjs → chunk-GD24FBKZ.mjs} +7 -7
  26. package/dist/{chunk-JFU65NZU.mjs → chunk-HRKMPZGD.mjs} +9 -9
  27. package/dist/{chunk-JBJ2YERG.mjs → chunk-IFDDZTWN.mjs} +3 -3
  28. package/dist/{chunk-ZPNFXK7Y.mjs → chunk-IK4EPPOF.mjs} +4 -4
  29. package/dist/{chunk-6YVMQB26.mjs → chunk-JADWPU3M.mjs} +2 -2
  30. package/dist/{chunk-LYAPQ4QZ.mjs → chunk-JKZEVKE3.mjs} +4 -4
  31. package/dist/{chunk-JSON7A4X.mjs → chunk-JOI26DEU.mjs} +2 -2
  32. package/dist/{chunk-UJEQAXZI.mjs → chunk-JPHN3NM3.mjs} +3 -3
  33. package/dist/{chunk-JTGB3TSZ.mjs → chunk-JV37KGKL.mjs} +3 -3
  34. package/dist/{chunk-HV4CI2QX.mjs → chunk-JX7EOMTI.mjs} +9 -9
  35. package/dist/{chunk-HNVAFEZP.mjs → chunk-K2IES6IY.mjs} +2 -2
  36. package/dist/{chunk-ARZEQQW5.mjs → chunk-KCOJAMHS.mjs} +16 -16
  37. package/dist/{chunk-73UD7JJL.mjs → chunk-LCNUK6EI.mjs} +2 -2
  38. package/dist/{chunk-UW6S2PNO.mjs → chunk-LGXHFCSE.mjs} +5 -5
  39. package/dist/{chunk-UYDZZAEK.mjs → chunk-LHD6A2CA.mjs} +2 -2
  40. package/dist/{chunk-QTPKH4PY.mjs → chunk-MPFUPK2O.mjs} +5 -5
  41. package/dist/{chunk-WJZFE5NE.mjs → chunk-MYZQELEU.mjs} +2 -2
  42. package/dist/{chunk-LAR7AT6R.mjs → chunk-MZ74H2HU.mjs} +2 -2
  43. package/dist/{chunk-7K4QMDUN.mjs → chunk-OHHQ5YCI.mjs} +2 -2
  44. package/dist/{chunk-VV534JNS.mjs → chunk-OKVYYWDS.mjs} +3 -3
  45. package/dist/{chunk-CAHTK3AT.mjs → chunk-PB7ZHNR6.mjs} +2 -2
  46. package/dist/{chunk-FHW5K2RR.mjs → chunk-POMUVSEW.mjs} +5 -5
  47. package/dist/{chunk-USGZFNWP.mjs → chunk-QGLPCM3U.mjs} +3 -3
  48. package/dist/{chunk-4DJNTF2D.mjs → chunk-QQ62TFVN.mjs} +3 -3
  49. package/dist/{chunk-J6KN572O.mjs → chunk-RNM4YSY2.mjs} +3 -3
  50. package/dist/{chunk-RNROH3VJ.mjs → chunk-SWKY2KOQ.mjs} +3 -3
  51. package/dist/{chunk-4G6AW6D6.mjs → chunk-T5K5ZLP2.mjs} +3 -3
  52. package/dist/{chunk-EDVJUOFU.mjs → chunk-TUGGAGKI.mjs} +13 -13
  53. package/dist/{chunk-OFGI5FLG.mjs → chunk-UARTMYBD.mjs} +2 -2
  54. package/dist/{chunk-6BQEFLOS.mjs → chunk-V35WKNIG.mjs} +3 -3
  55. package/dist/{chunk-5WSP2IYF.mjs → chunk-WLFIQWOM.mjs} +6 -6
  56. package/dist/{chunk-PPWHEIZW.mjs → chunk-WWJDP64S.mjs} +4 -4
  57. package/dist/{chunk-A2JYVEBB.mjs → chunk-XSK44RYX.mjs} +4 -4
  58. package/dist/data/Condition.mjs +11 -11
  59. package/dist/data/Database.mjs +11 -11
  60. package/dist/data/Field.mjs +12 -12
  61. package/dist/data/InMemoryGateway.mjs +21 -21
  62. package/dist/domain/Audit.mjs +24 -24
  63. package/dist/domain/Child.mjs +24 -24
  64. package/dist/domain/DateTime.mjs +20 -20
  65. package/dist/domain/Entity.mjs +26 -26
  66. package/dist/domain/Repo.mjs +21 -21
  67. package/dist/domain/Struct.mjs +21 -21
  68. package/dist/domain/Typo.mjs +20 -20
  69. package/dist/http/CacheControl.mjs +58 -23
  70. package/dist/http/CacheControl.mjs.map +1 -1
  71. package/dist/http/ContentType.mjs +11 -11
  72. package/dist/http/HttpStatus.mjs +11 -11
  73. package/dist/http/HttpVerb.mjs +11 -11
  74. package/dist/http/LocalRequestStore.mjs +11 -11
  75. package/dist/http/RequestOptions.mjs +15 -15
  76. package/dist/http/Response.mjs +4 -4
  77. package/dist/http/RestResult.mjs +22 -22
  78. package/dist/http/toResponse.mjs +23 -23
  79. package/dist/index.d.ts +0 -9
  80. package/dist/index.js +209 -324
  81. package/dist/index.js.map +1 -1
  82. package/dist/index.mjs +0 -9
  83. package/dist/index.mjs.map +1 -1
  84. package/dist/process/App.mjs +12 -12
  85. package/dist/process/Manage.mjs +21 -21
  86. package/dist/process/Scope.mjs +12 -12
  87. package/dist/process/Search.mjs +21 -21
  88. package/dist/process/UseCase.mjs +11 -11
  89. package/dist/resources/Req.mjs +20 -20
  90. package/dist/security/Jwt.d.ts +2 -12
  91. package/dist/security/Jwt.mjs +60 -37
  92. package/dist/security/Jwt.mjs.map +1 -1
  93. package/dist/services/Api.mjs +31 -31
  94. package/dist/services/ApiGateway.mjs +34 -34
  95. package/dist/services/AxiosProvider.mjs +29 -29
  96. package/dist/services/MappedRouteGateway.mjs +40 -40
  97. package/dist/services/RouteGateway.mjs +35 -35
  98. package/dist/services/ViewRouteGateway.mjs +38 -38
  99. package/dist/sql/Clause.mjs +6 -6
  100. package/dist/sql/Column.mjs +23 -23
  101. package/dist/sql/Count.mjs +10 -10
  102. package/dist/sql/Delete.mjs +9 -9
  103. package/dist/sql/Insert.mjs +11 -11
  104. package/dist/sql/Select.mjs +9 -9
  105. package/dist/sql/SqlQuery.mjs +8 -8
  106. package/dist/sql/Table.mjs +33 -33
  107. package/dist/sql/TableGateway.mjs +21 -21
  108. package/dist/sql/Update.mjs +11 -11
  109. package/dist/types/Array.mjs +3 -3
  110. package/dist/types/Builder.mjs +2 -2
  111. package/dist/types/Cache.mjs +9 -9
  112. package/dist/types/CacheAge.mjs +21 -21
  113. package/dist/types/Case.mjs +19 -19
  114. package/dist/types/Constructor.mjs +2 -2
  115. package/dist/types/Context.mjs +11 -11
  116. package/dist/types/Enum.mjs +10 -10
  117. package/dist/types/Environment.mjs +10 -10
  118. package/dist/types/Exception.mjs +12 -12
  119. package/dist/types/Gateway.mjs +14 -14
  120. package/dist/types/IsA.mjs +3 -3
  121. package/dist/types/IsEqual.mjs +20 -20
  122. package/dist/types/Json.mjs +9 -9
  123. package/dist/types/List.mjs +7 -7
  124. package/dist/types/Meta.mjs +9 -9
  125. package/dist/types/Number.mjs +20 -20
  126. package/dist/types/Object.mjs +8 -8
  127. package/dist/types/PageList.mjs +20 -20
  128. package/dist/types/Parser.mjs +19 -19
  129. package/dist/types/Repository.mjs +14 -14
  130. package/dist/types/Result.mjs +12 -12
  131. package/dist/types/Results.mjs +13 -13
  132. package/dist/types/Tag.mjs +9 -9
  133. package/dist/types/Template.mjs +10 -10
  134. package/dist/types/Text.mjs +2 -2
  135. package/dist/types/Try.mjs +19 -19
  136. package/dist/types/Uri.mjs +106 -23
  137. package/dist/types/Uri.mjs.map +1 -1
  138. package/dist/types/Validatable.mjs +4 -4
  139. package/dist/types/Value.mjs +3 -3
  140. package/dist/utils/Convert.mjs +3 -3
  141. package/dist/utils/If.mjs +3 -3
  142. package/dist/utils/Mapper.mjs +14 -14
  143. package/dist/utils/Promise.mjs +8 -8
  144. package/dist/utils/Property.mjs +4 -4
  145. package/dist/utils/Sentence.mjs +10 -10
  146. package/dist/utils/State.mjs +3 -3
  147. package/dist/utils/View.mjs +23 -23
  148. package/dist/validation/Contraints.mjs +20 -20
  149. package/dist/validation/Validate.mjs +19 -19
  150. package/dist/validation/When.mjs +19 -19
  151. package/package.json +2 -4
  152. package/src/index.ts +0 -10
  153. package/src/security/Jwt.ts +4 -35
  154. package/dist/chunk-EIJ3GSGG.mjs +0 -45
  155. package/dist/chunk-EIJ3GSGG.mjs.map +0 -1
  156. package/dist/chunk-GSZLYZSW.mjs +0 -104
  157. package/dist/chunk-GSZLYZSW.mjs.map +0 -1
  158. package/dist/chunk-JFJLDIJB.mjs +0 -46
  159. package/dist/chunk-JFJLDIJB.mjs.map +0 -1
  160. package/dist/chunk-NFWIUPZU.mjs +0 -48
  161. package/dist/chunk-NFWIUPZU.mjs.map +0 -1
  162. package/dist/chunk-XBYDAQGZ.mjs +0 -15
  163. package/dist/chunk-XBYDAQGZ.mjs.map +0 -1
  164. package/dist/health/HealthResource.d.ts +0 -5
  165. package/dist/health/HealthResource.mjs +0 -58
  166. package/dist/health/HealthResource.mjs.map +0 -1
  167. package/dist/health/HealthUri.d.ts +0 -5
  168. package/dist/health/HealthUri.mjs +0 -31
  169. package/dist/health/HealthUri.mjs.map +0 -1
  170. package/dist/http/OriginatedError.d.ts +0 -9
  171. package/dist/http/OriginatedError.mjs +0 -23
  172. package/dist/http/OriginatedError.mjs.map +0 -1
  173. package/dist/http/Verb.d.ts +0 -23
  174. package/dist/http/Verb.mjs +0 -50
  175. package/dist/http/Verb.mjs.map +0 -1
  176. package/dist/resources/AppProvider.d.ts +0 -9
  177. package/dist/resources/AppProvider.mjs +0 -1
  178. package/dist/resources/AppProvider.mjs.map +0 -1
  179. package/dist/resources/Requires.d.ts +0 -9
  180. package/dist/resources/Requires.mjs +0 -39
  181. package/dist/resources/Requires.mjs.map +0 -1
  182. package/dist/resources/Resource.d.ts +0 -1
  183. package/dist/resources/Resource.mjs +0 -1
  184. package/dist/resources/Resource.mjs.map +0 -1
  185. package/dist/resources/Route.d.ts +0 -28
  186. package/dist/resources/Route.mjs +0 -32
  187. package/dist/resources/Route.mjs.map +0 -1
  188. package/dist/resources/Service.d.ts +0 -17
  189. package/dist/resources/Service.mjs +0 -55
  190. package/dist/resources/Service.mjs.map +0 -1
  191. package/src/health/HealthResource.ts +0 -12
  192. package/src/health/HealthUri.ts +0 -6
  193. package/src/http/OriginatedError.ts +0 -18
  194. package/src/http/Verb.ts +0 -36
  195. package/src/resources/AppProvider.ts +0 -11
  196. package/src/resources/Requires.ts +0 -33
  197. package/src/resources/Resource.ts +0 -1
  198. package/src/resources/Route.ts +0 -60
  199. package/src/resources/Service.ts +0 -37
  200. /package/dist/{chunk-UNHWYQ54.mjs.map → chunk-27YL5N6O.mjs.map} +0 -0
  201. /package/dist/{chunk-QQRGOHU6.mjs.map → chunk-2BGTVGU4.mjs.map} +0 -0
  202. /package/dist/{chunk-X7FZPY3P.mjs.map → chunk-2KBPI5HD.mjs.map} +0 -0
  203. /package/dist/{chunk-M47EOYDK.mjs.map → chunk-2S656HDG.mjs.map} +0 -0
  204. /package/dist/{chunk-APYISY5K.mjs.map → chunk-2YNBXKAS.mjs.map} +0 -0
  205. /package/dist/{chunk-YSBACFUR.mjs.map → chunk-3CTCZJ2E.mjs.map} +0 -0
  206. /package/dist/{chunk-45GNHDKA.mjs.map → chunk-3G2I3M46.mjs.map} +0 -0
  207. /package/dist/{chunk-6VLC4Z4H.mjs.map → chunk-3PG7XJVW.mjs.map} +0 -0
  208. /package/dist/{chunk-7TJ4VCBE.mjs.map → chunk-3VP6O3LL.mjs.map} +0 -0
  209. /package/dist/{chunk-D5FLGKVR.mjs.map → chunk-464AOKCS.mjs.map} +0 -0
  210. /package/dist/{chunk-3L4RAR24.mjs.map → chunk-4IGBNRNB.mjs.map} +0 -0
  211. /package/dist/{chunk-Q5HABVOK.mjs.map → chunk-5TDKTZD7.mjs.map} +0 -0
  212. /package/dist/{chunk-D4K4MC24.mjs.map → chunk-7GL3D7F7.mjs.map} +0 -0
  213. /package/dist/{chunk-2ZUDYGPP.mjs.map → chunk-A37OECZ2.mjs.map} +0 -0
  214. /package/dist/{chunk-IAXKOENJ.mjs.map → chunk-A7PAVXBM.mjs.map} +0 -0
  215. /package/dist/{chunk-KRLEHX37.mjs.map → chunk-ANOORQCM.mjs.map} +0 -0
  216. /package/dist/{chunk-NYYHRFBW.mjs.map → chunk-AQT7Z43R.mjs.map} +0 -0
  217. /package/dist/{chunk-U53FLD4J.mjs.map → chunk-CGMASUXA.mjs.map} +0 -0
  218. /package/dist/{chunk-UKHDSTTZ.mjs.map → chunk-CMHJOQBL.mjs.map} +0 -0
  219. /package/dist/{chunk-TMZRZLA2.mjs.map → chunk-CYTFXBYW.mjs.map} +0 -0
  220. /package/dist/{chunk-J7XKOXMW.mjs.map → chunk-EGVFHL23.mjs.map} +0 -0
  221. /package/dist/{chunk-A62OK7XE.mjs.map → chunk-F7C6VY2D.mjs.map} +0 -0
  222. /package/dist/{chunk-HBJMCX2I.mjs.map → chunk-FCGLOMI7.mjs.map} +0 -0
  223. /package/dist/{chunk-ZHXKBOK2.mjs.map → chunk-G4GZG77M.mjs.map} +0 -0
  224. /package/dist/{chunk-ARTSACXM.mjs.map → chunk-GD24FBKZ.mjs.map} +0 -0
  225. /package/dist/{chunk-JFU65NZU.mjs.map → chunk-HRKMPZGD.mjs.map} +0 -0
  226. /package/dist/{chunk-JBJ2YERG.mjs.map → chunk-IFDDZTWN.mjs.map} +0 -0
  227. /package/dist/{chunk-ZPNFXK7Y.mjs.map → chunk-IK4EPPOF.mjs.map} +0 -0
  228. /package/dist/{chunk-6YVMQB26.mjs.map → chunk-JADWPU3M.mjs.map} +0 -0
  229. /package/dist/{chunk-LYAPQ4QZ.mjs.map → chunk-JKZEVKE3.mjs.map} +0 -0
  230. /package/dist/{chunk-JSON7A4X.mjs.map → chunk-JOI26DEU.mjs.map} +0 -0
  231. /package/dist/{chunk-UJEQAXZI.mjs.map → chunk-JPHN3NM3.mjs.map} +0 -0
  232. /package/dist/{chunk-JTGB3TSZ.mjs.map → chunk-JV37KGKL.mjs.map} +0 -0
  233. /package/dist/{chunk-HV4CI2QX.mjs.map → chunk-JX7EOMTI.mjs.map} +0 -0
  234. /package/dist/{chunk-HNVAFEZP.mjs.map → chunk-K2IES6IY.mjs.map} +0 -0
  235. /package/dist/{chunk-ARZEQQW5.mjs.map → chunk-KCOJAMHS.mjs.map} +0 -0
  236. /package/dist/{chunk-73UD7JJL.mjs.map → chunk-LCNUK6EI.mjs.map} +0 -0
  237. /package/dist/{chunk-UW6S2PNO.mjs.map → chunk-LGXHFCSE.mjs.map} +0 -0
  238. /package/dist/{chunk-UYDZZAEK.mjs.map → chunk-LHD6A2CA.mjs.map} +0 -0
  239. /package/dist/{chunk-QTPKH4PY.mjs.map → chunk-MPFUPK2O.mjs.map} +0 -0
  240. /package/dist/{chunk-WJZFE5NE.mjs.map → chunk-MYZQELEU.mjs.map} +0 -0
  241. /package/dist/{chunk-LAR7AT6R.mjs.map → chunk-MZ74H2HU.mjs.map} +0 -0
  242. /package/dist/{chunk-7K4QMDUN.mjs.map → chunk-OHHQ5YCI.mjs.map} +0 -0
  243. /package/dist/{chunk-VV534JNS.mjs.map → chunk-OKVYYWDS.mjs.map} +0 -0
  244. /package/dist/{chunk-CAHTK3AT.mjs.map → chunk-PB7ZHNR6.mjs.map} +0 -0
  245. /package/dist/{chunk-FHW5K2RR.mjs.map → chunk-POMUVSEW.mjs.map} +0 -0
  246. /package/dist/{chunk-USGZFNWP.mjs.map → chunk-QGLPCM3U.mjs.map} +0 -0
  247. /package/dist/{chunk-4DJNTF2D.mjs.map → chunk-QQ62TFVN.mjs.map} +0 -0
  248. /package/dist/{chunk-J6KN572O.mjs.map → chunk-RNM4YSY2.mjs.map} +0 -0
  249. /package/dist/{chunk-RNROH3VJ.mjs.map → chunk-SWKY2KOQ.mjs.map} +0 -0
  250. /package/dist/{chunk-4G6AW6D6.mjs.map → chunk-T5K5ZLP2.mjs.map} +0 -0
  251. /package/dist/{chunk-EDVJUOFU.mjs.map → chunk-TUGGAGKI.mjs.map} +0 -0
  252. /package/dist/{chunk-OFGI5FLG.mjs.map → chunk-UARTMYBD.mjs.map} +0 -0
  253. /package/dist/{chunk-6BQEFLOS.mjs.map → chunk-V35WKNIG.mjs.map} +0 -0
  254. /package/dist/{chunk-5WSP2IYF.mjs.map → chunk-WLFIQWOM.mjs.map} +0 -0
  255. /package/dist/{chunk-PPWHEIZW.mjs.map → chunk-WWJDP64S.mjs.map} +0 -0
  256. /package/dist/{chunk-A2JYVEBB.mjs.map → chunk-XSK44RYX.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -12,32 +12,23 @@ export * from "./domain/Entity";
12
12
  export * from "./domain/Struct";
13
13
  export * from "./domain/Repo";
14
14
  export * from "./domain/Typo";
15
- export * from "./health/HealthResource";
16
- export * from "./health/HealthUri";
17
15
  export * from "./http/CacheControl";
18
16
  export * from "./http/ContentType";
19
17
  export * from "./http/HttpHeader";
20
18
  export * from "./http/HttpStatus";
21
19
  export * from "./http/HttpVerb";
22
- export * from "./http/OriginatedError";
23
20
  export * from "./http/Request";
24
21
  export * from "./http/RequestOptions";
25
22
  export * from "./http/RequestProvider";
26
23
  export * from "./http/Response";
27
24
  export * from "./http/RestResult";
28
25
  export * from "./http/toResponse";
29
- export * from "./http/Verb";
30
26
  export * from "./process/App";
31
27
  export * from "./process/Manage";
32
28
  export * from "./process/Scope";
33
29
  export * from "./process/Search";
34
30
  export * from "./process/UseCase";
35
- export * from "./resources/AppProvider";
36
31
  export * from "./resources/Req";
37
- export * from "./resources/Requires";
38
- export * from "./resources/Resource";
39
- export * from "./resources/Route";
40
- export * from "./resources/Service";
41
32
  export * from "./security/Jwt";
42
33
  export * from "./services/Api";
43
34
  export * from "./services/ApiGateway";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './data/Condition';\nexport * from './data/InMemoryGateway';\nexport * from './data/Database';\nexport * from './data/DataProvider';\nexport * from './data/Field';\nexport * from './data/Query';\nexport * from './data/QueryProvider';\n\nexport * from './domain/Audit';\nexport * from './domain/Child';\nexport * from './domain/DateTime';\nexport * from './domain/Entity';\nexport * from './domain/Struct';\nexport * from './domain/Repo';\nexport * from './domain/Typo';\n\nexport * from './health/HealthResource';\nexport * from './health/HealthUri';\n\nexport * from './http/CacheControl';\nexport * from './http/ContentType';\nexport * from './http/HttpHeader';\nexport * from './http/HttpStatus';\nexport * from './http/HttpVerb';\nexport * from './http/OriginatedError';\nexport * from './http/Request';\nexport * from './http/RequestOptions';\nexport * from './http/RequestProvider';\nexport * from './http/Response';\nexport * from './http/RestResult';\nexport * from './http/toResponse';\nexport * from './http/Verb';\n\nexport * from './process/App';\nexport * from './process/Manage';\nexport * from './process/Scope';\nexport * from './process/Search';\nexport * from './process/UseCase';\n\nexport * from './resources/AppProvider';\nexport * from './resources/Req';\nexport * from './resources/Requires';\nexport * from './resources/Resource';\nexport * from './resources/Route';\nexport * from './resources/Service';\n\nexport * from './security/Jwt';\n\nexport * from './services/Api';\nexport * from './services/ApiGateway';\nexport * from './services/AxiosProvider';\nexport * from './services/MappedRouteGateway';\nexport * from './services/RouteGateway';\nexport * from './services/ViewRouteGateway';\n\nexport * from './sql/Clause';\nexport * from './sql/Column';\nexport * from './sql/Delete';\nexport * from './sql/Insert';\nexport * from './sql/Join';\nexport * from './sql/SqlQuery';\nexport * from './sql/Select';\nexport * from './sql/Table';\nexport * from './sql/TableGateway';\nexport * from './sql/Update';\n\nexport * from './types/Array';\nexport * from './types/Builder';\nexport * from './types/Cache';\nexport * from './types/CacheAge';\nexport * from './types/Case';\nexport * from './types/Constructor';\nexport * from './types/Context';\nexport * from './types/Enum';\nexport * from './types/Environment';\nexport * from './types/ErrorOrigin';\nexport * from './types/Exception';\nexport * from './types/Falsy';\nexport * from './types/Func';\nexport * from './types/Gateway';\nexport * from './types/Get';\nexport * from './types/Id';\nexport * from './types/Identity';\nexport * from './types/Is';\nexport * from './types/IsA';\nexport * from './types/IsDate';\nexport * from './types/IsEqual';\nexport * from './types/Json';\nexport * from './types/List';\nexport * from './types/Message';\nexport * from './types/Meta';\nexport * from './types/Nullish';\nexport * from './types/Number';\nexport * from './types/Object';\nexport * from './types/PageList';\nexport * from './types/Parser';\nexport * from './types/Primitive';\nexport * from './types/Repository';\nexport * from './types/Result';\nexport * from './types/Results';\nexport * from './types/Sort';\nexport * from './types/Tag';\nexport * from './types/Template';\nexport * from './types/Text';\nexport * from './types/Try';\nexport * from './types/TypeGuard';\nexport * from './types/Types';\nexport * from './types/Uri';\nexport * from './types/Uuid';\nexport * from './types/Validatable';\nexport * from './types/Value';\n\nexport * from './utils/Base64';\nexport * from './utils/Convert';\nexport * from './utils/If';\nexport * from './utils/Loading';\nexport * from './utils/Log';\nexport * from './utils/Mapper';\nexport * from './utils/Promise';\nexport * from './utils/Property';\nexport * from './utils/State';\nexport * from './utils/Sentence';\nexport * from './utils/Traverse';\nexport * from './utils/View';\nexport * from './utils/Wait';\n\nexport * from './validation/Contraints';\nexport * from './validation/Validate';\nexport * from './validation/When';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AAEd,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;AAEd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,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;AACd,cAAc;AACd,cAAc;AAEd,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;AAEd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './data/Condition';\nexport * from './data/InMemoryGateway';\nexport * from './data/Database';\nexport * from './data/DataProvider';\nexport * from './data/Field';\nexport * from './data/Query';\nexport * from './data/QueryProvider';\n\nexport * from './domain/Audit';\nexport * from './domain/Child';\nexport * from './domain/DateTime';\nexport * from './domain/Entity';\nexport * from './domain/Struct';\nexport * from './domain/Repo';\nexport * from './domain/Typo';\n\nexport * from './http/CacheControl';\nexport * from './http/ContentType';\nexport * from './http/HttpHeader';\nexport * from './http/HttpStatus';\nexport * from './http/HttpVerb';\nexport * from './http/Request';\nexport * from './http/RequestOptions';\nexport * from './http/RequestProvider';\nexport * from './http/Response';\nexport * from './http/RestResult';\nexport * from './http/toResponse';\n\nexport * from './process/App';\nexport * from './process/Manage';\nexport * from './process/Scope';\nexport * from './process/Search';\nexport * from './process/UseCase';\n\nexport * from './resources/Req';\n\nexport * from './security/Jwt';\n\nexport * from './services/Api';\nexport * from './services/ApiGateway';\nexport * from './services/AxiosProvider';\nexport * from './services/MappedRouteGateway';\nexport * from './services/RouteGateway';\nexport * from './services/ViewRouteGateway';\n\nexport * from './sql/Clause';\nexport * from './sql/Column';\nexport * from './sql/Delete';\nexport * from './sql/Insert';\nexport * from './sql/Join';\nexport * from './sql/SqlQuery';\nexport * from './sql/Select';\nexport * from './sql/Table';\nexport * from './sql/TableGateway';\nexport * from './sql/Update';\n\nexport * from './types/Array';\nexport * from './types/Builder';\nexport * from './types/Cache';\nexport * from './types/CacheAge';\nexport * from './types/Case';\nexport * from './types/Constructor';\nexport * from './types/Context';\nexport * from './types/Enum';\nexport * from './types/Environment';\nexport * from './types/ErrorOrigin';\nexport * from './types/Exception';\nexport * from './types/Falsy';\nexport * from './types/Func';\nexport * from './types/Gateway';\nexport * from './types/Get';\nexport * from './types/Id';\nexport * from './types/Identity';\nexport * from './types/Is';\nexport * from './types/IsA';\nexport * from './types/IsDate';\nexport * from './types/IsEqual';\nexport * from './types/Json';\nexport * from './types/List';\nexport * from './types/Message';\nexport * from './types/Meta';\nexport * from './types/Nullish';\nexport * from './types/Number';\nexport * from './types/Object';\nexport * from './types/PageList';\nexport * from './types/Parser';\nexport * from './types/Primitive';\nexport * from './types/Repository';\nexport * from './types/Result';\nexport * from './types/Results';\nexport * from './types/Sort';\nexport * from './types/Tag';\nexport * from './types/Template';\nexport * from './types/Text';\nexport * from './types/Try';\nexport * from './types/TypeGuard';\nexport * from './types/Types';\nexport * from './types/Uri';\nexport * from './types/Uuid';\nexport * from './types/Validatable';\nexport * from './types/Value';\n\nexport * from './utils/Base64';\nexport * from './utils/Convert';\nexport * from './utils/If';\nexport * from './utils/Loading';\nexport * from './utils/Log';\nexport * from './utils/Mapper';\nexport * from './utils/Promise';\nexport * from './utils/Property';\nexport * from './utils/State';\nexport * from './utils/Sentence';\nexport * from './utils/Traverse';\nexport * from './utils/View';\nexport * from './utils/Wait';\n\nexport * from './validation/Contraints';\nexport * from './validation/Validate';\nexport * from './validation/When';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AAEd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,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;AACd,cAAc;AACd,cAAc;AAEd,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;AAEd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  Scope
3
- } from "../chunk-KRLEHX37.mjs";
4
- import "../chunk-FHW5K2RR.mjs";
5
- import "../chunk-UNHWYQ54.mjs";
6
- import "../chunk-PPWHEIZW.mjs";
7
- import "../chunk-JTGB3TSZ.mjs";
8
- import "../chunk-J7XKOXMW.mjs";
9
- import "../chunk-JSON7A4X.mjs";
10
- import "../chunk-X7FZPY3P.mjs";
11
- import "../chunk-45GNHDKA.mjs";
3
+ } from "../chunk-ANOORQCM.mjs";
4
+ import "../chunk-POMUVSEW.mjs";
5
+ import "../chunk-27YL5N6O.mjs";
6
+ import "../chunk-WWJDP64S.mjs";
7
+ import "../chunk-JV37KGKL.mjs";
8
+ import "../chunk-EGVFHL23.mjs";
9
+ import "../chunk-JOI26DEU.mjs";
10
+ import "../chunk-2KBPI5HD.mjs";
11
+ import "../chunk-3G2I3M46.mjs";
12
12
  import "../chunk-SJGQU3OG.mjs";
13
- import "../chunk-ZHXKBOK2.mjs";
14
- import "../chunk-ZPNFXK7Y.mjs";
13
+ import "../chunk-G4GZG77M.mjs";
14
+ import "../chunk-IK4EPPOF.mjs";
15
15
  import "../chunk-DXQSIBC7.mjs";
16
- import "../chunk-PIRWVOO2.mjs";
17
16
  import "../chunk-DEJ7A5PY.mjs";
17
+ import "../chunk-PIRWVOO2.mjs";
18
18
  import "../chunk-4N72FQFX.mjs";
19
19
 
20
20
  // src/process/App.ts
@@ -1,29 +1,29 @@
1
1
  import {
2
2
  Search
3
- } from "../chunk-M47EOYDK.mjs";
4
- import "../chunk-A62OK7XE.mjs";
5
- import "../chunk-ARZEQQW5.mjs";
6
- import "../chunk-OFGI5FLG.mjs";
7
- import "../chunk-CAHTK3AT.mjs";
8
- import "../chunk-4G6AW6D6.mjs";
9
- import "../chunk-J6KN572O.mjs";
10
- import "../chunk-USGZFNWP.mjs";
11
- import "../chunk-LYAPQ4QZ.mjs";
12
- import "../chunk-6YVMQB26.mjs";
13
- import "../chunk-FHW5K2RR.mjs";
14
- import "../chunk-UNHWYQ54.mjs";
15
- import "../chunk-PPWHEIZW.mjs";
16
- import "../chunk-JTGB3TSZ.mjs";
17
- import "../chunk-J7XKOXMW.mjs";
18
- import "../chunk-JSON7A4X.mjs";
19
- import "../chunk-X7FZPY3P.mjs";
20
- import "../chunk-45GNHDKA.mjs";
3
+ } from "../chunk-2S656HDG.mjs";
4
+ import "../chunk-F7C6VY2D.mjs";
5
+ import "../chunk-KCOJAMHS.mjs";
6
+ import "../chunk-UARTMYBD.mjs";
7
+ import "../chunk-T5K5ZLP2.mjs";
8
+ import "../chunk-RNM4YSY2.mjs";
9
+ import "../chunk-QGLPCM3U.mjs";
10
+ import "../chunk-JKZEVKE3.mjs";
11
+ import "../chunk-PB7ZHNR6.mjs";
12
+ import "../chunk-JADWPU3M.mjs";
13
+ import "../chunk-POMUVSEW.mjs";
14
+ import "../chunk-27YL5N6O.mjs";
15
+ import "../chunk-WWJDP64S.mjs";
16
+ import "../chunk-JV37KGKL.mjs";
17
+ import "../chunk-EGVFHL23.mjs";
18
+ import "../chunk-JOI26DEU.mjs";
19
+ import "../chunk-2KBPI5HD.mjs";
20
+ import "../chunk-3G2I3M46.mjs";
21
21
  import "../chunk-SJGQU3OG.mjs";
22
- import "../chunk-ZHXKBOK2.mjs";
23
- import "../chunk-ZPNFXK7Y.mjs";
22
+ import "../chunk-G4GZG77M.mjs";
23
+ import "../chunk-IK4EPPOF.mjs";
24
24
  import "../chunk-DXQSIBC7.mjs";
25
- import "../chunk-PIRWVOO2.mjs";
26
25
  import "../chunk-DEJ7A5PY.mjs";
26
+ import "../chunk-PIRWVOO2.mjs";
27
27
  import "../chunk-4N72FQFX.mjs";
28
28
 
29
29
  // src/process/Manage.ts
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  Scope
3
- } from "../chunk-KRLEHX37.mjs";
4
- import "../chunk-FHW5K2RR.mjs";
5
- import "../chunk-UNHWYQ54.mjs";
6
- import "../chunk-PPWHEIZW.mjs";
7
- import "../chunk-JTGB3TSZ.mjs";
8
- import "../chunk-J7XKOXMW.mjs";
9
- import "../chunk-JSON7A4X.mjs";
10
- import "../chunk-X7FZPY3P.mjs";
11
- import "../chunk-45GNHDKA.mjs";
3
+ } from "../chunk-ANOORQCM.mjs";
4
+ import "../chunk-POMUVSEW.mjs";
5
+ import "../chunk-27YL5N6O.mjs";
6
+ import "../chunk-WWJDP64S.mjs";
7
+ import "../chunk-JV37KGKL.mjs";
8
+ import "../chunk-EGVFHL23.mjs";
9
+ import "../chunk-JOI26DEU.mjs";
10
+ import "../chunk-2KBPI5HD.mjs";
11
+ import "../chunk-3G2I3M46.mjs";
12
12
  import "../chunk-SJGQU3OG.mjs";
13
- import "../chunk-ZHXKBOK2.mjs";
14
- import "../chunk-ZPNFXK7Y.mjs";
13
+ import "../chunk-G4GZG77M.mjs";
14
+ import "../chunk-IK4EPPOF.mjs";
15
15
  import "../chunk-DXQSIBC7.mjs";
16
- import "../chunk-PIRWVOO2.mjs";
17
16
  import "../chunk-DEJ7A5PY.mjs";
17
+ import "../chunk-PIRWVOO2.mjs";
18
18
  import "../chunk-4N72FQFX.mjs";
19
19
  export {
20
20
  Scope
@@ -1,29 +1,29 @@
1
1
  import {
2
2
  Search
3
- } from "../chunk-M47EOYDK.mjs";
4
- import "../chunk-A62OK7XE.mjs";
5
- import "../chunk-ARZEQQW5.mjs";
6
- import "../chunk-OFGI5FLG.mjs";
7
- import "../chunk-CAHTK3AT.mjs";
8
- import "../chunk-4G6AW6D6.mjs";
9
- import "../chunk-J6KN572O.mjs";
10
- import "../chunk-USGZFNWP.mjs";
11
- import "../chunk-LYAPQ4QZ.mjs";
12
- import "../chunk-6YVMQB26.mjs";
13
- import "../chunk-FHW5K2RR.mjs";
14
- import "../chunk-UNHWYQ54.mjs";
15
- import "../chunk-PPWHEIZW.mjs";
16
- import "../chunk-JTGB3TSZ.mjs";
17
- import "../chunk-J7XKOXMW.mjs";
18
- import "../chunk-JSON7A4X.mjs";
19
- import "../chunk-X7FZPY3P.mjs";
20
- import "../chunk-45GNHDKA.mjs";
3
+ } from "../chunk-2S656HDG.mjs";
4
+ import "../chunk-F7C6VY2D.mjs";
5
+ import "../chunk-KCOJAMHS.mjs";
6
+ import "../chunk-UARTMYBD.mjs";
7
+ import "../chunk-T5K5ZLP2.mjs";
8
+ import "../chunk-RNM4YSY2.mjs";
9
+ import "../chunk-QGLPCM3U.mjs";
10
+ import "../chunk-JKZEVKE3.mjs";
11
+ import "../chunk-PB7ZHNR6.mjs";
12
+ import "../chunk-JADWPU3M.mjs";
13
+ import "../chunk-POMUVSEW.mjs";
14
+ import "../chunk-27YL5N6O.mjs";
15
+ import "../chunk-WWJDP64S.mjs";
16
+ import "../chunk-JV37KGKL.mjs";
17
+ import "../chunk-EGVFHL23.mjs";
18
+ import "../chunk-JOI26DEU.mjs";
19
+ import "../chunk-2KBPI5HD.mjs";
20
+ import "../chunk-3G2I3M46.mjs";
21
21
  import "../chunk-SJGQU3OG.mjs";
22
- import "../chunk-ZHXKBOK2.mjs";
23
- import "../chunk-ZPNFXK7Y.mjs";
22
+ import "../chunk-G4GZG77M.mjs";
23
+ import "../chunk-IK4EPPOF.mjs";
24
24
  import "../chunk-DXQSIBC7.mjs";
25
- import "../chunk-PIRWVOO2.mjs";
26
25
  import "../chunk-DEJ7A5PY.mjs";
26
+ import "../chunk-PIRWVOO2.mjs";
27
27
  import "../chunk-4N72FQFX.mjs";
28
28
  export {
29
29
  Search
@@ -1,28 +1,28 @@
1
1
  import {
2
2
  text
3
- } from "../chunk-FHW5K2RR.mjs";
3
+ } from "../chunk-POMUVSEW.mjs";
4
4
  import {
5
5
  Enum
6
- } from "../chunk-UNHWYQ54.mjs";
7
- import "../chunk-PPWHEIZW.mjs";
8
- import "../chunk-JTGB3TSZ.mjs";
6
+ } from "../chunk-27YL5N6O.mjs";
7
+ import "../chunk-WWJDP64S.mjs";
8
+ import "../chunk-JV37KGKL.mjs";
9
9
  import {
10
10
  toList
11
- } from "../chunk-J7XKOXMW.mjs";
12
- import "../chunk-JSON7A4X.mjs";
13
- import "../chunk-X7FZPY3P.mjs";
11
+ } from "../chunk-EGVFHL23.mjs";
12
+ import "../chunk-JOI26DEU.mjs";
13
+ import "../chunk-2KBPI5HD.mjs";
14
14
  import {
15
15
  kebab
16
- } from "../chunk-45GNHDKA.mjs";
16
+ } from "../chunk-3G2I3M46.mjs";
17
17
  import "../chunk-SJGQU3OG.mjs";
18
- import "../chunk-ZHXKBOK2.mjs";
19
- import "../chunk-ZPNFXK7Y.mjs";
18
+ import "../chunk-G4GZG77M.mjs";
19
+ import "../chunk-IK4EPPOF.mjs";
20
20
  import "../chunk-DXQSIBC7.mjs";
21
- import "../chunk-PIRWVOO2.mjs";
22
21
  import {
23
22
  isIn,
24
23
  isString
25
24
  } from "../chunk-DEJ7A5PY.mjs";
25
+ import "../chunk-PIRWVOO2.mjs";
26
26
  import "../chunk-4N72FQFX.mjs";
27
27
 
28
28
  // src/process/UseCase.ts
@@ -1,30 +1,30 @@
1
1
  import {
2
2
  asNumber
3
- } from "../chunk-JBJ2YERG.mjs";
4
- import "../chunk-ARZEQQW5.mjs";
5
- import "../chunk-OFGI5FLG.mjs";
6
- import "../chunk-CAHTK3AT.mjs";
7
- import "../chunk-4G6AW6D6.mjs";
8
- import "../chunk-J6KN572O.mjs";
9
- import "../chunk-USGZFNWP.mjs";
10
- import "../chunk-LYAPQ4QZ.mjs";
11
- import "../chunk-6YVMQB26.mjs";
12
- import "../chunk-FHW5K2RR.mjs";
13
- import "../chunk-UNHWYQ54.mjs";
14
- import "../chunk-PPWHEIZW.mjs";
15
- import "../chunk-JTGB3TSZ.mjs";
16
- import "../chunk-J7XKOXMW.mjs";
3
+ } from "../chunk-IFDDZTWN.mjs";
4
+ import "../chunk-KCOJAMHS.mjs";
5
+ import "../chunk-UARTMYBD.mjs";
6
+ import "../chunk-T5K5ZLP2.mjs";
7
+ import "../chunk-RNM4YSY2.mjs";
8
+ import "../chunk-QGLPCM3U.mjs";
9
+ import "../chunk-JKZEVKE3.mjs";
10
+ import "../chunk-PB7ZHNR6.mjs";
11
+ import "../chunk-JADWPU3M.mjs";
12
+ import "../chunk-POMUVSEW.mjs";
13
+ import "../chunk-27YL5N6O.mjs";
14
+ import "../chunk-WWJDP64S.mjs";
15
+ import "../chunk-JV37KGKL.mjs";
16
+ import "../chunk-EGVFHL23.mjs";
17
17
  import {
18
18
  ifDefined
19
- } from "../chunk-JSON7A4X.mjs";
20
- import "../chunk-X7FZPY3P.mjs";
21
- import "../chunk-45GNHDKA.mjs";
19
+ } from "../chunk-JOI26DEU.mjs";
20
+ import "../chunk-2KBPI5HD.mjs";
21
+ import "../chunk-3G2I3M46.mjs";
22
22
  import "../chunk-SJGQU3OG.mjs";
23
- import "../chunk-ZHXKBOK2.mjs";
24
- import "../chunk-ZPNFXK7Y.mjs";
23
+ import "../chunk-G4GZG77M.mjs";
24
+ import "../chunk-IK4EPPOF.mjs";
25
25
  import "../chunk-DXQSIBC7.mjs";
26
- import "../chunk-PIRWVOO2.mjs";
27
26
  import "../chunk-DEJ7A5PY.mjs";
27
+ import "../chunk-PIRWVOO2.mjs";
28
28
  import "../chunk-4N72FQFX.mjs";
29
29
 
30
30
  // src/resources/Req.ts
@@ -1,19 +1,9 @@
1
- import { Optional } from '../types/Types';
2
- import { OneOrMore } from '../types/Array';
3
- import { Value } from '../types/Value';
4
- import { Validatable } from '../types/Validatable';
5
1
  import { Json } from '../types/Json';
6
- interface SignOptions {
7
- audience?: Optional<OneOrMore<string>>;
8
- issuer?: Optional<string>;
9
- }
10
- export declare class Jwt extends Value implements Validatable {
11
- get isValid(): boolean;
12
- static sign: (token: Json, options?: SignOptions) => Jwt;
2
+ import { Value } from "../types/Value";
3
+ export declare class Jwt extends Value {
13
4
  static of: (a: {
14
5
  jwt: string;
15
6
  }) => Jwt;
16
7
  decode: () => Json;
17
8
  toJSON(): Json;
18
9
  }
19
- export {};
@@ -1,49 +1,72 @@
1
- import {
2
- tryTo
3
- } from "../chunk-ARZEQQW5.mjs";
4
- import "../chunk-OFGI5FLG.mjs";
5
1
  import {
6
2
  Value
7
- } from "../chunk-CAHTK3AT.mjs";
8
- import "../chunk-4G6AW6D6.mjs";
9
- import "../chunk-J6KN572O.mjs";
10
- import "../chunk-USGZFNWP.mjs";
11
- import "../chunk-LYAPQ4QZ.mjs";
12
- import {
13
- ctx
14
- } from "../chunk-6YVMQB26.mjs";
15
- import "../chunk-FHW5K2RR.mjs";
16
- import "../chunk-UNHWYQ54.mjs";
17
- import "../chunk-PPWHEIZW.mjs";
18
- import "../chunk-JTGB3TSZ.mjs";
19
- import "../chunk-J7XKOXMW.mjs";
20
- import "../chunk-JSON7A4X.mjs";
21
- import "../chunk-X7FZPY3P.mjs";
22
- import "../chunk-45GNHDKA.mjs";
3
+ } from "../chunk-PB7ZHNR6.mjs";
4
+ import "../chunk-3G2I3M46.mjs";
23
5
  import "../chunk-SJGQU3OG.mjs";
24
- import "../chunk-ZHXKBOK2.mjs";
25
- import "../chunk-ZPNFXK7Y.mjs";
26
- import "../chunk-DXQSIBC7.mjs";
27
- import "../chunk-PIRWVOO2.mjs";
28
6
  import "../chunk-DEJ7A5PY.mjs";
7
+ import "../chunk-PIRWVOO2.mjs";
29
8
  import "../chunk-4N72FQFX.mjs";
30
9
 
10
+ // ../../node_modules/jwt-decode/build/esm/index.js
11
+ var InvalidTokenError = class extends Error {
12
+ };
13
+ InvalidTokenError.prototype.name = "InvalidTokenError";
14
+ function b64DecodeUnicode(str) {
15
+ return decodeURIComponent(atob(str).replace(/(.)/g, (m, p) => {
16
+ let code = p.charCodeAt(0).toString(16).toUpperCase();
17
+ if (code.length < 2) {
18
+ code = "0" + code;
19
+ }
20
+ return "%" + code;
21
+ }));
22
+ }
23
+ function base64UrlDecode(str) {
24
+ let output = str.replace(/-/g, "+").replace(/_/g, "/");
25
+ switch (output.length % 4) {
26
+ case 0:
27
+ break;
28
+ case 2:
29
+ output += "==";
30
+ break;
31
+ case 3:
32
+ output += "=";
33
+ break;
34
+ default:
35
+ throw new Error("base64 string is not of the correct length");
36
+ }
37
+ try {
38
+ return b64DecodeUnicode(output);
39
+ } catch (err) {
40
+ return atob(output);
41
+ }
42
+ }
43
+ function jwtDecode(token, options) {
44
+ if (typeof token !== "string") {
45
+ throw new InvalidTokenError("Invalid token specified: must be a string");
46
+ }
47
+ options || (options = {});
48
+ const pos = options.header === true ? 0 : 1;
49
+ const part = token.split(".")[pos];
50
+ if (typeof part !== "string") {
51
+ throw new InvalidTokenError(`Invalid token specified: missing part #${pos + 1}`);
52
+ }
53
+ let decoded;
54
+ try {
55
+ decoded = base64UrlDecode(part);
56
+ } catch (e) {
57
+ throw new InvalidTokenError(`Invalid token specified: invalid base64 for part #${pos + 1} (${e.message})`);
58
+ }
59
+ try {
60
+ return JSON.parse(decoded);
61
+ } catch (e) {
62
+ throw new InvalidTokenError(`Invalid token specified: invalid json for part #${pos + 1} (${e.message})`);
63
+ }
64
+ }
65
+
31
66
  // src/security/Jwt.ts
32
- import { decode, sign, verify } from "jsonwebtoken";
33
67
  var Jwt = class _Jwt extends Value {
34
- get isValid() {
35
- return tryTo(() => ctx.env.get("tokenPublicKey") ?? "").map((key) => verify(this.value, key)).map(() => true).orElse() ?? false;
36
- }
37
- static sign = (token, options) => tryTo(() => ctx.env.get("tokenPrivateKey") ?? "").is.not.empty().map(
38
- (key) => sign(token, key, {
39
- ...options,
40
- expiresIn: ctx.env.get("tokenExpiresIn") ?? "1h",
41
- keyid: ctx.env.get("tokenKeyid") ?? "easy",
42
- algorithm: ctx.env.get("tokenAlgorithm", "RS256")
43
- })
44
- ).map((s) => new _Jwt(s)).value;
45
68
  static of = (a) => new _Jwt(a.jwt);
46
- decode = () => decode(this.value);
69
+ decode = () => jwtDecode(this.value);
47
70
  toJSON() {
48
71
  return { jwt: this.value };
49
72
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/security/Jwt.ts"],"sourcesContent":["import { Algorithm, decode, sign, verify } from 'jsonwebtoken';\nimport { Optional } from '../types/Types';\nimport { OneOrMore } from '../types/Array';\nimport { Value } from '../types/Value';\nimport { Validatable } from '../types/Validatable';\nimport { tryTo } from '../types/Try';\nimport { ctx } from '../types/Context';\nimport { Json } from '../types/Json';\n\ninterface SignOptions {\n audience?: Optional<OneOrMore<string>>;\n issuer?: Optional<string>;\n}\nexport class Jwt extends Value implements Validatable {\n get isValid(): boolean {\n return (\n tryTo(() => ctx.env.get('tokenPublicKey') ?? '')\n .map(key => verify(this.value, key))\n .map(() => true)\n .orElse() ?? false\n );\n }\n\n static sign = (token: Json, options?: SignOptions): Jwt =>\n tryTo(() => ctx.env.get('tokenPrivateKey') ?? '')\n .is.not.empty()\n .map(key =>\n sign(token, key, {\n ...options,\n expiresIn: ctx.env.get('tokenExpiresIn') ?? '1h',\n keyid: ctx.env.get('tokenKeyid') ?? 'easy',\n algorithm: ctx.env.get('tokenAlgorithm', 'RS256') as Algorithm,\n })\n )\n .map(s => new Jwt(s)).value;\n\n static of = (a: { jwt: string }): Jwt => new Jwt(a.jwt);\n\n decode = (): Json => decode(this.value) as Json;\n\n toJSON(): Json {\n return { jwt: this.value };\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAoB,QAAQ,MAAM,cAAc;AAazC,IAAM,MAAN,MAAM,aAAY,MAA6B;AAAA,EACpD,IAAI,UAAmB;AACrB,WACE,MAAM,MAAM,IAAI,IAAI,IAAI,gBAAgB,KAAK,EAAE,EAC5C,IAAI,SAAO,OAAO,KAAK,OAAO,GAAG,CAAC,EAClC,IAAI,MAAM,IAAI,EACd,OAAO,KAAK;AAAA,EAEnB;AAAA,EAEA,OAAO,OAAO,CAAC,OAAa,YAC1B,MAAM,MAAM,IAAI,IAAI,IAAI,iBAAiB,KAAK,EAAE,EAC7C,GAAG,IAAI,MAAM,EACb;AAAA,IAAI,SACH,KAAK,OAAO,KAAK;AAAA,MACf,GAAG;AAAA,MACH,WAAW,IAAI,IAAI,IAAI,gBAAgB,KAAK;AAAA,MAC5C,OAAO,IAAI,IAAI,IAAI,YAAY,KAAK;AAAA,MACpC,WAAW,IAAI,IAAI,IAAI,kBAAkB,OAAO;AAAA,IAClD,CAAC;AAAA,EACH,EACC,IAAI,OAAK,IAAI,KAAI,CAAC,CAAC,EAAE;AAAA,EAE1B,OAAO,KAAK,CAAC,MAA4B,IAAI,KAAI,EAAE,GAAG;AAAA,EAEtD,SAAS,MAAY,OAAO,KAAK,KAAK;AAAA,EAEtC,SAAe;AACb,WAAO,EAAE,KAAK,KAAK,MAAM;AAAA,EAC3B;AACF;","names":[]}
1
+ {"version":3,"sources":["../../../../node_modules/jwt-decode/build/esm/index.js","../../src/security/Jwt.ts"],"sourcesContent":["export class InvalidTokenError extends Error {\n}\nInvalidTokenError.prototype.name = \"InvalidTokenError\";\nfunction b64DecodeUnicode(str) {\n return decodeURIComponent(atob(str).replace(/(.)/g, (m, p) => {\n let code = p.charCodeAt(0).toString(16).toUpperCase();\n if (code.length < 2) {\n code = \"0\" + code;\n }\n return \"%\" + code;\n }));\n}\nfunction base64UrlDecode(str) {\n let output = str.replace(/-/g, \"+\").replace(/_/g, \"/\");\n switch (output.length % 4) {\n case 0:\n break;\n case 2:\n output += \"==\";\n break;\n case 3:\n output += \"=\";\n break;\n default:\n throw new Error(\"base64 string is not of the correct length\");\n }\n try {\n return b64DecodeUnicode(output);\n }\n catch (err) {\n return atob(output);\n }\n}\nexport function jwtDecode(token, options) {\n if (typeof token !== \"string\") {\n throw new InvalidTokenError(\"Invalid token specified: must be a string\");\n }\n options || (options = {});\n const pos = options.header === true ? 0 : 1;\n const part = token.split(\".\")[pos];\n if (typeof part !== \"string\") {\n throw new InvalidTokenError(`Invalid token specified: missing part #${pos + 1}`);\n }\n let decoded;\n try {\n decoded = base64UrlDecode(part);\n }\n catch (e) {\n throw new InvalidTokenError(`Invalid token specified: invalid base64 for part #${pos + 1} (${e.message})`);\n }\n try {\n return JSON.parse(decoded);\n }\n catch (e) {\n throw new InvalidTokenError(`Invalid token specified: invalid json for part #${pos + 1} (${e.message})`);\n }\n}\n","import { jwtDecode as decode } from 'jwt-decode';\nimport { Json } from '../types/Json';\nimport {Value} from \"../types/Value\";\n\nexport class Jwt extends Value {\n static of = (a: { jwt: string }): Jwt => new Jwt(a.jwt);\n\n decode = (): Json => decode(this.value);\n\n toJSON(): Json {\n return { jwt: this.value };\n }\n}\n"],"mappings":";;;;;;;;;;AAAO,IAAM,oBAAN,cAAgC,MAAM;AAC7C;AACA,kBAAkB,UAAU,OAAO;AACnC,SAAS,iBAAiB,KAAK;AAC3B,SAAO,mBAAmB,KAAK,GAAG,EAAE,QAAQ,QAAQ,CAAC,GAAG,MAAM;AAC1D,QAAI,OAAO,EAAE,WAAW,CAAC,EAAE,SAAS,EAAE,EAAE,YAAY;AACpD,QAAI,KAAK,SAAS,GAAG;AACjB,aAAO,MAAM;AAAA,IACjB;AACA,WAAO,MAAM;AAAA,EACjB,CAAC,CAAC;AACN;AACA,SAAS,gBAAgB,KAAK;AAC1B,MAAI,SAAS,IAAI,QAAQ,MAAM,GAAG,EAAE,QAAQ,MAAM,GAAG;AACrD,UAAQ,OAAO,SAAS,GAAG;AAAA,IACvB,KAAK;AACD;AAAA,IACJ,KAAK;AACD,gBAAU;AACV;AAAA,IACJ,KAAK;AACD,gBAAU;AACV;AAAA,IACJ;AACI,YAAM,IAAI,MAAM,4CAA4C;AAAA,EACpE;AACA,MAAI;AACA,WAAO,iBAAiB,MAAM;AAAA,EAClC,SACO,KAAK;AACR,WAAO,KAAK,MAAM;AAAA,EACtB;AACJ;AACO,SAAS,UAAU,OAAO,SAAS;AACtC,MAAI,OAAO,UAAU,UAAU;AAC3B,UAAM,IAAI,kBAAkB,2CAA2C;AAAA,EAC3E;AACA,cAAY,UAAU,CAAC;AACvB,QAAM,MAAM,QAAQ,WAAW,OAAO,IAAI;AAC1C,QAAM,OAAO,MAAM,MAAM,GAAG,EAAE,GAAG;AACjC,MAAI,OAAO,SAAS,UAAU;AAC1B,UAAM,IAAI,kBAAkB,0CAA0C,MAAM,CAAC,EAAE;AAAA,EACnF;AACA,MAAI;AACJ,MAAI;AACA,cAAU,gBAAgB,IAAI;AAAA,EAClC,SACO,GAAG;AACN,UAAM,IAAI,kBAAkB,qDAAqD,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG;AAAA,EAC7G;AACA,MAAI;AACA,WAAO,KAAK,MAAM,OAAO;AAAA,EAC7B,SACO,GAAG;AACN,UAAM,IAAI,kBAAkB,mDAAmD,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG;AAAA,EAC3G;AACJ;;;ACpDO,IAAM,MAAN,MAAM,aAAY,MAAM;AAAA,EAC7B,OAAO,KAAK,CAAC,MAA4B,IAAI,KAAI,EAAE,GAAG;AAAA,EAEtD,SAAS,MAAY,UAAO,KAAK,KAAK;AAAA,EAEtC,SAAe;AACb,WAAO,EAAE,KAAK,KAAK,MAAM;AAAA,EAC3B;AACF;","names":[]}
@@ -1,41 +1,41 @@
1
1
  import {
2
2
  Api,
3
3
  api
4
- } from "../chunk-5WSP2IYF.mjs";
5
- import "../chunk-EDVJUOFU.mjs";
6
- import "../chunk-7TJ4VCBE.mjs";
7
- import "../chunk-Q5HABVOK.mjs";
8
- import "../chunk-ARTSACXM.mjs";
9
- import "../chunk-UYDZZAEK.mjs";
10
- import "../chunk-SW2OCUH3.mjs";
4
+ } from "../chunk-WLFIQWOM.mjs";
5
+ import "../chunk-TUGGAGKI.mjs";
6
+ import "../chunk-5TDKTZD7.mjs";
7
+ import "../chunk-GD24FBKZ.mjs";
8
+ import "../chunk-LHD6A2CA.mjs";
9
+ import "../chunk-CYTFXBYW.mjs";
10
+ import "../chunk-MZ74H2HU.mjs";
11
+ import "../chunk-3VP6O3LL.mjs";
11
12
  import "../chunk-LXQQ5N6S.mjs";
12
- import "../chunk-NYYHRFBW.mjs";
13
- import "../chunk-JBJ2YERG.mjs";
14
- import "../chunk-4DJNTF2D.mjs";
15
- import "../chunk-TMZRZLA2.mjs";
16
- import "../chunk-LAR7AT6R.mjs";
17
- import "../chunk-ARZEQQW5.mjs";
18
- import "../chunk-OFGI5FLG.mjs";
19
- import "../chunk-CAHTK3AT.mjs";
20
- import "../chunk-4G6AW6D6.mjs";
21
- import "../chunk-J6KN572O.mjs";
22
- import "../chunk-USGZFNWP.mjs";
23
- import "../chunk-LYAPQ4QZ.mjs";
24
- import "../chunk-6YVMQB26.mjs";
25
- import "../chunk-FHW5K2RR.mjs";
26
- import "../chunk-UNHWYQ54.mjs";
27
- import "../chunk-PPWHEIZW.mjs";
28
- import "../chunk-JTGB3TSZ.mjs";
29
- import "../chunk-J7XKOXMW.mjs";
30
- import "../chunk-JSON7A4X.mjs";
31
- import "../chunk-X7FZPY3P.mjs";
32
- import "../chunk-45GNHDKA.mjs";
13
+ import "../chunk-QQ62TFVN.mjs";
14
+ import "../chunk-SW2OCUH3.mjs";
15
+ import "../chunk-AQT7Z43R.mjs";
16
+ import "../chunk-IFDDZTWN.mjs";
17
+ import "../chunk-KCOJAMHS.mjs";
18
+ import "../chunk-UARTMYBD.mjs";
19
+ import "../chunk-T5K5ZLP2.mjs";
20
+ import "../chunk-RNM4YSY2.mjs";
21
+ import "../chunk-QGLPCM3U.mjs";
22
+ import "../chunk-JKZEVKE3.mjs";
23
+ import "../chunk-PB7ZHNR6.mjs";
24
+ import "../chunk-JADWPU3M.mjs";
25
+ import "../chunk-POMUVSEW.mjs";
26
+ import "../chunk-27YL5N6O.mjs";
27
+ import "../chunk-WWJDP64S.mjs";
28
+ import "../chunk-JV37KGKL.mjs";
29
+ import "../chunk-EGVFHL23.mjs";
30
+ import "../chunk-JOI26DEU.mjs";
31
+ import "../chunk-2KBPI5HD.mjs";
32
+ import "../chunk-3G2I3M46.mjs";
33
33
  import "../chunk-SJGQU3OG.mjs";
34
- import "../chunk-ZHXKBOK2.mjs";
35
- import "../chunk-ZPNFXK7Y.mjs";
34
+ import "../chunk-G4GZG77M.mjs";
35
+ import "../chunk-IK4EPPOF.mjs";
36
36
  import "../chunk-DXQSIBC7.mjs";
37
- import "../chunk-PIRWVOO2.mjs";
38
37
  import "../chunk-DEJ7A5PY.mjs";
38
+ import "../chunk-PIRWVOO2.mjs";
39
39
  import "../chunk-4N72FQFX.mjs";
40
40
  export {
41
41
  Api,