@geekmidas/constructs 0.2.4 → 0.3.1

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 (373) hide show
  1. package/dist/{AWSLambdaFunction-gpqm7UBb.d.cts → AWSLambdaFunction-BdebRMUh.d.mts} +7 -5
  2. package/dist/AWSLambdaFunction-BdebRMUh.d.mts.map +1 -0
  3. package/dist/{AWSLambdaFunction-H65WfXLt.mjs → AWSLambdaFunction-C54a1doJ.mjs} +3 -3
  4. package/dist/AWSLambdaFunction-C54a1doJ.mjs.map +1 -0
  5. package/dist/{AWSLambdaFunction-D9RZhm0N.d.mts → AWSLambdaFunction-D0tEOTXQ.d.cts} +7 -5
  6. package/dist/AWSLambdaFunction-D0tEOTXQ.d.cts.map +1 -0
  7. package/dist/{AWSLambdaFunction-C-fuCLA3.cjs → AWSLambdaFunction-EPGY4s7i.cjs} +3 -3
  8. package/dist/AWSLambdaFunction-EPGY4s7i.cjs.map +1 -0
  9. package/dist/{AWSLambdaSubscriberAdaptor-CyFh7MN8.mjs → AWSLambdaSubscriberAdaptor-BLfO612H.mjs} +5 -3
  10. package/dist/{AWSLambdaSubscriberAdaptor-CyFh7MN8.mjs.map → AWSLambdaSubscriberAdaptor-BLfO612H.mjs.map} +1 -1
  11. package/dist/{AWSLambdaSubscriberAdaptor-Dum5bkw3.cjs → AWSLambdaSubscriberAdaptor-BNcYYZ-P.cjs} +5 -3
  12. package/dist/{AWSLambdaSubscriberAdaptor-Dum5bkw3.cjs.map → AWSLambdaSubscriberAdaptor-BNcYYZ-P.cjs.map} +1 -1
  13. package/dist/{AWSLambdaSubscriberAdaptor-C0aZBU64.d.mts → AWSLambdaSubscriberAdaptor-DrFAvHOp.d.mts} +4 -2
  14. package/dist/AWSLambdaSubscriberAdaptor-DrFAvHOp.d.mts.map +1 -0
  15. package/dist/{AWSLambdaSubscriberAdaptor-DT8icDRf.d.cts → AWSLambdaSubscriberAdaptor-Dx-Ks1Jp.d.cts} +4 -2
  16. package/dist/AWSLambdaSubscriberAdaptor-Dx-Ks1Jp.d.cts.map +1 -0
  17. package/dist/{AmazonApiGatewayEndpointAdaptor-pEWzF2uY.mjs → AmazonApiGatewayEndpointAdaptor-BT9JXihC.mjs} +2 -2
  18. package/dist/{AmazonApiGatewayEndpointAdaptor-pEWzF2uY.mjs.map → AmazonApiGatewayEndpointAdaptor-BT9JXihC.mjs.map} +1 -1
  19. package/dist/{AmazonApiGatewayEndpointAdaptor-CbJqLU6I.d.cts → AmazonApiGatewayEndpointAdaptor-DLqnYQ4E.d.cts} +5 -3
  20. package/dist/AmazonApiGatewayEndpointAdaptor-DLqnYQ4E.d.cts.map +1 -0
  21. package/dist/{AmazonApiGatewayEndpointAdaptor-Bk6ssx3K.cjs → AmazonApiGatewayEndpointAdaptor-DNFvvdmW.cjs} +2 -2
  22. package/dist/{AmazonApiGatewayEndpointAdaptor-Bk6ssx3K.cjs.map → AmazonApiGatewayEndpointAdaptor-DNFvvdmW.cjs.map} +1 -1
  23. package/dist/{AmazonApiGatewayEndpointAdaptor-DC3N7zY_.d.mts → AmazonApiGatewayEndpointAdaptor-qlKXuZxy.d.mts} +5 -3
  24. package/dist/AmazonApiGatewayEndpointAdaptor-qlKXuZxy.d.mts.map +1 -0
  25. package/dist/{AmazonApiGatewayV1EndpointAdaptor-MJpRbIaQ.mjs → AmazonApiGatewayV1EndpointAdaptor-CShQI8Gk.mjs} +3 -3
  26. package/dist/AmazonApiGatewayV1EndpointAdaptor-CShQI8Gk.mjs.map +1 -0
  27. package/dist/{AmazonApiGatewayV1EndpointAdaptor-uBp_4zLf.cjs → AmazonApiGatewayV1EndpointAdaptor-Ccl8B8kG.cjs} +3 -3
  28. package/dist/AmazonApiGatewayV1EndpointAdaptor-Ccl8B8kG.cjs.map +1 -0
  29. package/dist/{AmazonApiGatewayV1EndpointAdaptor-BVxgQ-7J.d.mts → AmazonApiGatewayV1EndpointAdaptor-DyUaJIhB.d.cts} +8 -6
  30. package/dist/AmazonApiGatewayV1EndpointAdaptor-DyUaJIhB.d.cts.map +1 -0
  31. package/dist/{AmazonApiGatewayV1EndpointAdaptor-CVwJ5k16.d.cts → AmazonApiGatewayV1EndpointAdaptor-MRUxs3Xi.d.mts} +8 -6
  32. package/dist/AmazonApiGatewayV1EndpointAdaptor-MRUxs3Xi.d.mts.map +1 -0
  33. package/dist/{AmazonApiGatewayV2EndpointAdaptor-I1W23Nvn.cjs → AmazonApiGatewayV2EndpointAdaptor-D8-0Aab4.cjs} +3 -3
  34. package/dist/AmazonApiGatewayV2EndpointAdaptor-D8-0Aab4.cjs.map +1 -0
  35. package/dist/{AmazonApiGatewayV2EndpointAdaptor-1oBZdQH3.d.cts → AmazonApiGatewayV2EndpointAdaptor-M1-w0U5R.d.cts} +6 -4
  36. package/dist/AmazonApiGatewayV2EndpointAdaptor-M1-w0U5R.d.cts.map +1 -0
  37. package/dist/{AmazonApiGatewayV2EndpointAdaptor-C3H8Hpv7.d.mts → AmazonApiGatewayV2EndpointAdaptor-fuLM6M9k.d.mts} +6 -4
  38. package/dist/AmazonApiGatewayV2EndpointAdaptor-fuLM6M9k.d.mts.map +1 -0
  39. package/dist/{AmazonApiGatewayV2EndpointAdaptor-ChO8BlDz.mjs → AmazonApiGatewayV2EndpointAdaptor-lCRzGE4q.mjs} +3 -3
  40. package/dist/AmazonApiGatewayV2EndpointAdaptor-lCRzGE4q.mjs.map +1 -0
  41. package/dist/{Authorizer-CpSUMTIs.d.cts → Authorizer-B-btowNd.d.cts} +2 -1
  42. package/dist/Authorizer-B-btowNd.d.cts.map +1 -0
  43. package/dist/{Authorizer-Cpx59w_q.d.mts → Authorizer-gWxYsGEp.d.mts} +2 -1
  44. package/dist/Authorizer-gWxYsGEp.d.mts.map +1 -0
  45. package/dist/{BaseFunctionBuilder-CoV7J45W.d.mts → BaseFunctionBuilder-BAtutR6q.d.cts} +5 -3
  46. package/dist/BaseFunctionBuilder-BAtutR6q.d.cts.map +1 -0
  47. package/dist/{BaseFunctionBuilder-B5gkW0Kt.mjs → BaseFunctionBuilder-Czi1Jwza.mjs} +2 -2
  48. package/dist/{BaseFunctionBuilder-B5gkW0Kt.mjs.map → BaseFunctionBuilder-Czi1Jwza.mjs.map} +1 -1
  49. package/dist/{BaseFunctionBuilder-DaQA0uKE.d.cts → BaseFunctionBuilder-DRY419e7.d.mts} +5 -3
  50. package/dist/BaseFunctionBuilder-DRY419e7.d.mts.map +1 -0
  51. package/dist/{BaseFunctionBuilder-C5Se7pdL.cjs → BaseFunctionBuilder-MYG3C9ug.cjs} +2 -2
  52. package/dist/{BaseFunctionBuilder-C5Se7pdL.cjs.map → BaseFunctionBuilder-MYG3C9ug.cjs.map} +1 -1
  53. package/dist/{Construct-BYSPikVm.cjs → Construct-Ba5cMxib.cjs} +2 -2
  54. package/dist/{Construct-BYSPikVm.cjs.map → Construct-Ba5cMxib.cjs.map} +1 -1
  55. package/dist/{Construct-Dkd8Kvc9.d.cts → Construct-C4rPE67v.d.cts} +8 -7
  56. package/dist/Construct-C4rPE67v.d.cts.map +1 -0
  57. package/dist/{Construct-LWeB1rSQ.mjs → Construct-DdyGHuag.mjs} +2 -2
  58. package/dist/{Construct-LWeB1rSQ.mjs.map → Construct-DdyGHuag.mjs.map} +1 -1
  59. package/dist/{Construct-jBKqb-Zi.d.mts → Construct-XrijZFFh.d.mts} +8 -7
  60. package/dist/Construct-XrijZFFh.d.mts.map +1 -0
  61. package/dist/Construct.cjs +1 -1
  62. package/dist/Construct.d.cts +1 -1
  63. package/dist/Construct.d.mts +1 -1
  64. package/dist/Construct.mjs +1 -1
  65. package/dist/{Cron-Dy_HW2Vv.mjs → Cron-BxhGs5up.mjs} +3 -3
  66. package/dist/{Cron-Dy_HW2Vv.mjs.map → Cron-BxhGs5up.mjs.map} +1 -1
  67. package/dist/{Cron-Bi3QOge_.cjs → Cron-CGF4YAfM.cjs} +3 -3
  68. package/dist/{Cron-Bi3QOge_.cjs.map → Cron-CGF4YAfM.cjs.map} +1 -1
  69. package/dist/{Cron-7VPR2cNR.d.cts → Cron-bDLcTvV5.d.cts} +4 -4
  70. package/dist/Cron-bDLcTvV5.d.cts.map +1 -0
  71. package/dist/{Cron-JZkp_fHy.d.mts → Cron-cdjlSKNp.d.mts} +4 -4
  72. package/dist/Cron-cdjlSKNp.d.mts.map +1 -0
  73. package/dist/{CronBuilder-290th4zF.d.cts → CronBuilder-BC4m5-p1.d.mts} +7 -5
  74. package/dist/CronBuilder-BC4m5-p1.d.mts.map +1 -0
  75. package/dist/{CronBuilder-Dv_w7Yri.cjs → CronBuilder-CcxKRtVP.cjs} +4 -4
  76. package/dist/CronBuilder-CcxKRtVP.cjs.map +1 -0
  77. package/dist/{CronBuilder-BmFDO0Dm.d.mts → CronBuilder-DKVXyE0Q.d.cts} +7 -5
  78. package/dist/CronBuilder-DKVXyE0Q.d.cts.map +1 -0
  79. package/dist/{CronBuilder-Bl3A2Zp4.mjs → CronBuilder-d2jh-IB2.mjs} +4 -4
  80. package/dist/CronBuilder-d2jh-IB2.mjs.map +1 -0
  81. package/dist/{Endpoint-CC2RGjkl.d.cts → Endpoint-BPv9_-m_.d.cts} +6 -4
  82. package/dist/Endpoint-BPv9_-m_.d.cts.map +1 -0
  83. package/dist/{Endpoint-BJo9Hhwm.cjs → Endpoint-BVGZXFyV.cjs} +3 -3
  84. package/dist/{Endpoint-BJo9Hhwm.cjs.map → Endpoint-BVGZXFyV.cjs.map} +1 -1
  85. package/dist/{Endpoint-C5djXyae.d.mts → Endpoint-BdwG75G_.d.mts} +6 -4
  86. package/dist/Endpoint-BdwG75G_.d.mts.map +1 -0
  87. package/dist/{Endpoint-B70_KKhu.mjs → Endpoint-CuOEswxJ.mjs} +3 -3
  88. package/dist/{Endpoint-B70_KKhu.mjs.map → Endpoint-CuOEswxJ.mjs.map} +1 -1
  89. package/dist/{EndpointBuilder-CD8LkBda.d.mts → EndpointBuilder-B3az942t.d.mts} +7 -5
  90. package/dist/EndpointBuilder-B3az942t.d.mts.map +1 -0
  91. package/dist/{EndpointBuilder-DeswNQdG.cjs → EndpointBuilder-Cgj1P_ra.cjs} +4 -4
  92. package/dist/EndpointBuilder-Cgj1P_ra.cjs.map +1 -0
  93. package/dist/{EndpointBuilder-vXk6eIJk.d.cts → EndpointBuilder-DIy_m1bu.d.cts} +7 -5
  94. package/dist/EndpointBuilder-DIy_m1bu.d.cts.map +1 -0
  95. package/dist/{EndpointBuilder-FyyoFTJ5.mjs → EndpointBuilder-DnCB1h1j.mjs} +4 -4
  96. package/dist/EndpointBuilder-DnCB1h1j.mjs.map +1 -0
  97. package/dist/{EndpointFactory-jAkQxWRj.d.mts → EndpointFactory-C-0nE6Jg.d.mts} +6 -4
  98. package/dist/EndpointFactory-C-0nE6Jg.d.mts.map +1 -0
  99. package/dist/{EndpointFactory-eZc-XpNm.cjs → EndpointFactory-CYj6BYok.cjs} +2 -2
  100. package/dist/{EndpointFactory-eZc-XpNm.cjs.map → EndpointFactory-CYj6BYok.cjs.map} +1 -1
  101. package/dist/{EndpointFactory-CAneQs06.mjs → EndpointFactory-CbdxPCIH.mjs} +2 -2
  102. package/dist/{EndpointFactory-CAneQs06.mjs.map → EndpointFactory-CbdxPCIH.mjs.map} +1 -1
  103. package/dist/{EndpointFactory-D8I4NNCo.d.cts → EndpointFactory-CyPbm3AD.d.cts} +6 -4
  104. package/dist/EndpointFactory-CyPbm3AD.d.cts.map +1 -0
  105. package/dist/{Function-DfKsM5Kx.mjs → Function-BVHqIDp9.mjs} +2 -2
  106. package/dist/{Function-DfKsM5Kx.mjs.map → Function-BVHqIDp9.mjs.map} +1 -1
  107. package/dist/{Function-DHD1V9QW.d.cts → Function-Cf7f_kCz.d.cts} +5 -5
  108. package/dist/Function-Cf7f_kCz.d.cts.map +1 -0
  109. package/dist/{Function-DagDbeXo.cjs → Function-DDZb1525.cjs} +2 -2
  110. package/dist/{Function-DagDbeXo.cjs.map → Function-DDZb1525.cjs.map} +1 -1
  111. package/dist/{Function-Vh1t-Qjj.d.mts → Function-DN2G6OT5.d.mts} +5 -5
  112. package/dist/Function-DN2G6OT5.d.mts.map +1 -0
  113. package/dist/{FunctionBuilder-3jsoFffg.d.mts → FunctionBuilder-CJBzzXL3.d.cts} +7 -5
  114. package/dist/FunctionBuilder-CJBzzXL3.d.cts.map +1 -0
  115. package/dist/{FunctionBuilder-CVT7bG2o.mjs → FunctionBuilder-CrDYgfiI.mjs} +4 -4
  116. package/dist/FunctionBuilder-CrDYgfiI.mjs.map +1 -0
  117. package/dist/{FunctionBuilder-FV6r3I7X.d.cts → FunctionBuilder-Cxx8D2na.d.mts} +7 -5
  118. package/dist/FunctionBuilder-Cxx8D2na.d.mts.map +1 -0
  119. package/dist/{FunctionBuilder-DXvG_XD-.cjs → FunctionBuilder-DswJ-9sD.cjs} +4 -4
  120. package/dist/FunctionBuilder-DswJ-9sD.cjs.map +1 -0
  121. package/dist/{FunctionExecutionWrapper-DkNycmOh.cjs → FunctionExecutionWrapper-BYI2bGTL.cjs} +2 -2
  122. package/dist/{FunctionExecutionWrapper-DkNycmOh.cjs.map → FunctionExecutionWrapper-BYI2bGTL.cjs.map} +1 -1
  123. package/dist/{FunctionExecutionWrapper-Bubnr0zA.mjs → FunctionExecutionWrapper-CLDh7Z2_.mjs} +2 -2
  124. package/dist/{FunctionExecutionWrapper-Bubnr0zA.mjs.map → FunctionExecutionWrapper-CLDh7Z2_.mjs.map} +1 -1
  125. package/dist/{FunctionExecutionWrapper-CI3CaoCo.d.mts → FunctionExecutionWrapper-DF260Aaj.d.mts} +4 -2
  126. package/dist/FunctionExecutionWrapper-DF260Aaj.d.mts.map +1 -0
  127. package/dist/{FunctionExecutionWrapper-DYt3C8b9.d.cts → FunctionExecutionWrapper-Qy8bmgFR.d.cts} +4 -2
  128. package/dist/FunctionExecutionWrapper-Qy8bmgFR.d.cts.map +1 -0
  129. package/dist/{HonoEndpointAdaptor-BusUWu1w.d.cts → HonoEndpointAdaptor-Bqm6SEuP.d.cts} +8 -6
  130. package/dist/HonoEndpointAdaptor-Bqm6SEuP.d.cts.map +1 -0
  131. package/dist/{HonoEndpointAdaptor-DodwLM0-.cjs → HonoEndpointAdaptor-CQe2FqMR.cjs} +5 -6
  132. package/dist/{HonoEndpointAdaptor-DodwLM0-.cjs.map → HonoEndpointAdaptor-CQe2FqMR.cjs.map} +1 -1
  133. package/dist/{HonoEndpointAdaptor-g8xxh3tS.d.mts → HonoEndpointAdaptor-CRe-ij5f.d.mts} +8 -6
  134. package/dist/HonoEndpointAdaptor-CRe-ij5f.d.mts.map +1 -0
  135. package/dist/{HonoEndpointAdaptor-CcvXzoYV.mjs → HonoEndpointAdaptor-Ce-2HBxn.mjs} +5 -6
  136. package/dist/{HonoEndpointAdaptor-CcvXzoYV.mjs.map → HonoEndpointAdaptor-Ce-2HBxn.mjs.map} +1 -1
  137. package/dist/{Subscriber-DOt3svUC.cjs → Subscriber-BiHjVXtM.cjs} +2 -2
  138. package/dist/Subscriber-BiHjVXtM.cjs.map +1 -0
  139. package/dist/{Subscriber-kCHbH2fZ.mjs → Subscriber-BmPf9GFb.mjs} +2 -2
  140. package/dist/Subscriber-BmPf9GFb.mjs.map +1 -0
  141. package/dist/{Subscriber-DMSzvO_J.d.cts → Subscriber-COYMSevD.d.cts} +6 -6
  142. package/dist/Subscriber-COYMSevD.d.cts.map +1 -0
  143. package/dist/{Subscriber-aNr1qkxR.d.mts → Subscriber-ikctpU3I.d.mts} +6 -6
  144. package/dist/Subscriber-ikctpU3I.d.mts.map +1 -0
  145. package/dist/{SubscriberBuilder-Cj2u9k5Q.cjs → SubscriberBuilder-Cp1C-xtT.cjs} +2 -2
  146. package/dist/{SubscriberBuilder-Cj2u9k5Q.cjs.map → SubscriberBuilder-Cp1C-xtT.cjs.map} +1 -1
  147. package/dist/{SubscriberBuilder-DmxMU89X.mjs → SubscriberBuilder-DJPEeYDJ.mjs} +2 -2
  148. package/dist/{SubscriberBuilder-DmxMU89X.mjs.map → SubscriberBuilder-DJPEeYDJ.mjs.map} +1 -1
  149. package/dist/{SubscriberBuilder-BxJM3Hz_.d.cts → SubscriberBuilder-D_9zzllj.d.mts} +5 -3
  150. package/dist/SubscriberBuilder-D_9zzllj.d.mts.map +1 -0
  151. package/dist/{SubscriberBuilder-CWS4tdbp.d.mts → SubscriberBuilder-ivHAGIVi.d.cts} +5 -3
  152. package/dist/SubscriberBuilder-ivHAGIVi.d.cts.map +1 -0
  153. package/dist/{TestEndpointAdaptor-1pPixE6y.mjs → TestEndpointAdaptor-BXTofAKc.mjs} +17 -2
  154. package/dist/TestEndpointAdaptor-BXTofAKc.mjs.map +1 -0
  155. package/dist/{TestEndpointAdaptor-5-unBV8O.d.mts → TestEndpointAdaptor-C10xBI--.d.cts} +4 -4
  156. package/dist/TestEndpointAdaptor-C10xBI--.d.cts.map +1 -0
  157. package/dist/{TestEndpointAdaptor-wA-fmq4v.cjs → TestEndpointAdaptor-D9IwhIYg.cjs} +17 -2
  158. package/dist/TestEndpointAdaptor-D9IwhIYg.cjs.map +1 -0
  159. package/dist/{TestEndpointAdaptor-Bm0UjDtV.d.cts → TestEndpointAdaptor-DB7bREhS.d.mts} +4 -4
  160. package/dist/TestEndpointAdaptor-DB7bREhS.d.mts.map +1 -0
  161. package/dist/adaptors/aws.cjs +13 -13
  162. package/dist/adaptors/aws.d.cts +15 -15
  163. package/dist/adaptors/aws.d.mts +15 -15
  164. package/dist/adaptors/aws.mjs +13 -13
  165. package/dist/adaptors/hono.cjs +9 -9
  166. package/dist/adaptors/hono.d.cts +9 -9
  167. package/dist/adaptors/hono.d.mts +9 -9
  168. package/dist/adaptors/hono.mjs +9 -9
  169. package/dist/adaptors/testing.cjs +7 -7
  170. package/dist/adaptors/testing.d.cts +9 -9
  171. package/dist/adaptors/testing.d.mts +9 -9
  172. package/dist/adaptors/testing.mjs +7 -7
  173. package/dist/crons/Cron.cjs +6 -6
  174. package/dist/crons/Cron.d.cts +6 -6
  175. package/dist/crons/Cron.d.mts +6 -6
  176. package/dist/crons/Cron.mjs +6 -6
  177. package/dist/crons/CronBuilder.cjs +7 -7
  178. package/dist/crons/CronBuilder.d.cts +7 -7
  179. package/dist/crons/CronBuilder.d.mts +7 -7
  180. package/dist/crons/CronBuilder.mjs +7 -7
  181. package/dist/crons/index.cjs +7 -7
  182. package/dist/crons/index.d.cts +9 -7
  183. package/dist/crons/index.d.cts.map +1 -0
  184. package/dist/crons/index.d.mts +13 -11
  185. package/dist/crons/index.d.mts.map +1 -0
  186. package/dist/crons/index.mjs +7 -7
  187. package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.cjs +7 -7
  188. package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.d.cts +9 -9
  189. package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.d.mts +9 -9
  190. package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.mjs +7 -7
  191. package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.cjs +9 -9
  192. package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.d.cts +10 -10
  193. package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.d.mts +10 -10
  194. package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.mjs +9 -9
  195. package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.cjs +9 -9
  196. package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.d.cts +10 -10
  197. package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.d.mts +10 -10
  198. package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.mjs +9 -9
  199. package/dist/endpoints/Authorizer.d.cts +1 -1
  200. package/dist/endpoints/Authorizer.d.mts +1 -1
  201. package/dist/endpoints/Endpoint.cjs +6 -6
  202. package/dist/endpoints/Endpoint.d.cts +8 -8
  203. package/dist/endpoints/Endpoint.d.mts +8 -8
  204. package/dist/endpoints/Endpoint.mjs +6 -6
  205. package/dist/endpoints/EndpointBuilder.cjs +7 -7
  206. package/dist/endpoints/EndpointBuilder.d.cts +9 -9
  207. package/dist/endpoints/EndpointBuilder.d.mts +9 -9
  208. package/dist/endpoints/EndpointBuilder.mjs +7 -7
  209. package/dist/endpoints/EndpointFactory.cjs +8 -8
  210. package/dist/endpoints/EndpointFactory.d.cts +10 -10
  211. package/dist/endpoints/EndpointFactory.d.mts +10 -10
  212. package/dist/endpoints/EndpointFactory.mjs +8 -8
  213. package/dist/endpoints/HonoEndpointAdaptor.cjs +9 -9
  214. package/dist/endpoints/HonoEndpointAdaptor.d.cts +9 -9
  215. package/dist/endpoints/HonoEndpointAdaptor.d.mts +9 -9
  216. package/dist/endpoints/HonoEndpointAdaptor.mjs +9 -9
  217. package/dist/endpoints/TestEndpointAdaptor.cjs +7 -7
  218. package/dist/endpoints/TestEndpointAdaptor.d.cts +9 -9
  219. package/dist/endpoints/TestEndpointAdaptor.d.mts +9 -9
  220. package/dist/endpoints/TestEndpointAdaptor.mjs +7 -7
  221. package/dist/endpoints/audit.d.cts +8 -8
  222. package/dist/endpoints/audit.d.mts +8 -8
  223. package/dist/endpoints/helpers.cjs +7 -7
  224. package/dist/endpoints/helpers.d.cts +9 -8
  225. package/dist/endpoints/helpers.d.cts.map +1 -0
  226. package/dist/endpoints/helpers.d.mts +9 -8
  227. package/dist/endpoints/helpers.d.mts.map +1 -0
  228. package/dist/endpoints/helpers.mjs +7 -7
  229. package/dist/endpoints/index.cjs +8 -8
  230. package/dist/endpoints/index.d.cts +14 -12
  231. package/dist/endpoints/index.d.cts.map +1 -0
  232. package/dist/endpoints/index.d.mts +14 -12
  233. package/dist/endpoints/index.d.mts.map +1 -0
  234. package/dist/endpoints/index.mjs +8 -8
  235. package/dist/endpoints/parseHonoQuery.cjs +1 -1
  236. package/dist/endpoints/parseHonoQuery.d.cts +2 -0
  237. package/dist/endpoints/parseHonoQuery.d.cts.map +1 -0
  238. package/dist/endpoints/parseHonoQuery.d.mts +2 -0
  239. package/dist/endpoints/parseHonoQuery.d.mts.map +1 -0
  240. package/dist/endpoints/parseHonoQuery.mjs +1 -1
  241. package/dist/endpoints/parseQueryParams.cjs +1 -1
  242. package/dist/endpoints/parseQueryParams.d.cts +1 -0
  243. package/dist/endpoints/parseQueryParams.d.cts.map +1 -0
  244. package/dist/endpoints/parseQueryParams.d.mts +1 -0
  245. package/dist/endpoints/parseQueryParams.d.mts.map +1 -0
  246. package/dist/endpoints/parseQueryParams.mjs +1 -1
  247. package/dist/endpoints/processAudits.d.cts +10 -8
  248. package/dist/endpoints/processAudits.d.cts.map +1 -0
  249. package/dist/endpoints/processAudits.d.mts +10 -8
  250. package/dist/endpoints/processAudits.d.mts.map +1 -0
  251. package/dist/endpoints/rls.d.cts +8 -8
  252. package/dist/endpoints/rls.d.mts +8 -8
  253. package/dist/functions/AWSLambdaFunction.cjs +6 -6
  254. package/dist/functions/AWSLambdaFunction.d.cts +4 -4
  255. package/dist/functions/AWSLambdaFunction.d.mts +4 -4
  256. package/dist/functions/AWSLambdaFunction.mjs +6 -6
  257. package/dist/functions/BaseFunctionBuilder.cjs +2 -2
  258. package/dist/functions/BaseFunctionBuilder.d.cts +2 -2
  259. package/dist/functions/BaseFunctionBuilder.d.mts +2 -2
  260. package/dist/functions/BaseFunctionBuilder.mjs +2 -2
  261. package/dist/functions/Function.cjs +2 -2
  262. package/dist/functions/Function.d.cts +2 -2
  263. package/dist/functions/Function.d.mts +2 -2
  264. package/dist/functions/Function.mjs +2 -2
  265. package/dist/functions/FunctionBuilder.cjs +4 -4
  266. package/dist/functions/FunctionBuilder.d.cts +4 -4
  267. package/dist/functions/FunctionBuilder.d.mts +4 -4
  268. package/dist/functions/FunctionBuilder.mjs +4 -4
  269. package/dist/functions/FunctionExecutionWrapper.cjs +5 -5
  270. package/dist/functions/FunctionExecutionWrapper.d.cts +3 -3
  271. package/dist/functions/FunctionExecutionWrapper.d.mts +3 -3
  272. package/dist/functions/FunctionExecutionWrapper.mjs +5 -5
  273. package/dist/functions/TestFunctionAdaptor.cjs +4 -4
  274. package/dist/functions/TestFunctionAdaptor.d.cts +4 -2
  275. package/dist/functions/TestFunctionAdaptor.d.cts.map +1 -0
  276. package/dist/functions/TestFunctionAdaptor.d.mts +4 -2
  277. package/dist/functions/TestFunctionAdaptor.d.mts.map +1 -0
  278. package/dist/functions/TestFunctionAdaptor.mjs +4 -4
  279. package/dist/functions/index.cjs +5 -5
  280. package/dist/functions/index.d.cts +5 -5
  281. package/dist/functions/index.d.mts +5 -5
  282. package/dist/functions/index.mjs +5 -5
  283. package/dist/functions-C6EK1xL6.mjs +8 -0
  284. package/dist/{functions-JhRsNoAZ.mjs.map → functions-C6EK1xL6.mjs.map} +1 -1
  285. package/dist/{functions-FCb-wWFC.cjs → functions-fTid0RMK.cjs} +2 -2
  286. package/dist/{functions-FCb-wWFC.cjs.map → functions-fTid0RMK.cjs.map} +1 -1
  287. package/dist/{helpers-DxxSpLfw.cjs → helpers-BcP1tXAi.cjs} +2 -2
  288. package/dist/{helpers-DxxSpLfw.cjs.map → helpers-BcP1tXAi.cjs.map} +1 -1
  289. package/dist/{helpers-C3B2lVrM.mjs → helpers-ByRTDO_m.mjs} +2 -2
  290. package/dist/{helpers-C3B2lVrM.mjs.map → helpers-ByRTDO_m.mjs.map} +1 -1
  291. package/dist/{index-CFyaRrck.d.mts → index-BWzGIj06.d.mts} +4 -2
  292. package/dist/index-BWzGIj06.d.mts.map +1 -0
  293. package/dist/index-SI4V0XwK.d.cts +12 -0
  294. package/dist/index-SI4V0XwK.d.cts.map +1 -0
  295. package/dist/index.cjs +1 -1
  296. package/dist/index.d.cts +2 -2
  297. package/dist/index.d.mts +2 -2
  298. package/dist/index.mjs +1 -1
  299. package/dist/{parseHonoQuery-CT8Cvin-.cjs → parseHonoQuery-CZC5_97v.cjs} +3 -1
  300. package/dist/parseHonoQuery-CZC5_97v.cjs.map +1 -0
  301. package/dist/{parseHonoQuery-CwFKw2ua.mjs → parseHonoQuery-DDgIkTO4.mjs} +3 -1
  302. package/dist/parseHonoQuery-DDgIkTO4.mjs.map +1 -0
  303. package/dist/{parseQueryParams-CwvXXwkW.cjs → parseQueryParams-BSNkjmZ9.cjs} +3 -1
  304. package/dist/parseQueryParams-BSNkjmZ9.cjs.map +1 -0
  305. package/dist/{parseQueryParams-CHINupbZ.mjs → parseQueryParams-UMTRnRrW.mjs} +3 -1
  306. package/dist/parseQueryParams-UMTRnRrW.mjs.map +1 -0
  307. package/dist/publisher.d.cts +4 -2
  308. package/dist/publisher.d.cts.map +1 -0
  309. package/dist/publisher.d.mts +4 -2
  310. package/dist/publisher.d.mts.map +1 -0
  311. package/dist/subscribers/AWSLambdaSubscriberAdaptor.cjs +1 -1
  312. package/dist/subscribers/AWSLambdaSubscriberAdaptor.d.cts +3 -3
  313. package/dist/subscribers/AWSLambdaSubscriberAdaptor.d.mts +3 -3
  314. package/dist/subscribers/AWSLambdaSubscriberAdaptor.mjs +1 -1
  315. package/dist/subscribers/Subscriber.cjs +2 -2
  316. package/dist/subscribers/Subscriber.d.cts +2 -2
  317. package/dist/subscribers/Subscriber.d.mts +2 -2
  318. package/dist/subscribers/Subscriber.mjs +2 -2
  319. package/dist/subscribers/SubscriberBuilder.cjs +3 -3
  320. package/dist/subscribers/SubscriberBuilder.d.cts +3 -3
  321. package/dist/subscribers/SubscriberBuilder.d.mts +3 -3
  322. package/dist/subscribers/SubscriberBuilder.mjs +3 -3
  323. package/dist/subscribers/index.cjs +3 -3
  324. package/dist/subscribers/index.d.cts +7 -5
  325. package/dist/subscribers/index.d.cts.map +1 -0
  326. package/dist/subscribers/index.d.mts +5 -3
  327. package/dist/subscribers/index.d.mts.map +1 -0
  328. package/dist/subscribers/index.mjs +3 -3
  329. package/dist/{types-Bp9ysFXd.d.cts → types-B5H3piDg.d.cts} +3 -1
  330. package/dist/types-B5H3piDg.d.cts.map +1 -0
  331. package/dist/{types-CScirkHt.d.mts → types-DdIlpxAd.d.mts} +3 -1
  332. package/dist/types-DdIlpxAd.d.mts.map +1 -0
  333. package/dist/types.d.cts +1 -1
  334. package/dist/types.d.mts +1 -1
  335. package/package.json +64 -13
  336. package/src/Construct.ts +3 -3
  337. package/src/__benchmarks__/endpoint.bench.ts +494 -0
  338. package/src/__benchmarks__/hono-server.bench.ts +249 -0
  339. package/src/crons/CronBuilder.ts +8 -8
  340. package/src/endpoints/AmazonApiGatewayV1EndpointAdaptor.ts +4 -4
  341. package/src/endpoints/AmazonApiGatewayV2EndpointAdaptor.ts +4 -4
  342. package/src/endpoints/EndpointBuilder.ts +4 -4
  343. package/src/endpoints/HonoEndpointAdaptor.ts +1 -2
  344. package/src/endpoints/TestEndpointAdaptor.ts +18 -0
  345. package/src/endpoints/parseHonoQuery.ts +2 -0
  346. package/src/endpoints/parseQueryParams.ts +2 -0
  347. package/src/functions/AWSLambdaFunction.ts +1 -1
  348. package/src/functions/FunctionBuilder.ts +5 -5
  349. package/src/subscribers/AWSLambdaSubscriberAdaptor.ts +8 -4
  350. package/src/subscribers/Subscriber.ts +5 -5
  351. package/tsconfig.json +9 -0
  352. package/dist/AWSLambdaFunction-C-fuCLA3.cjs.map +0 -1
  353. package/dist/AWSLambdaFunction-H65WfXLt.mjs.map +0 -1
  354. package/dist/AmazonApiGatewayV1EndpointAdaptor-MJpRbIaQ.mjs.map +0 -1
  355. package/dist/AmazonApiGatewayV1EndpointAdaptor-uBp_4zLf.cjs.map +0 -1
  356. package/dist/AmazonApiGatewayV2EndpointAdaptor-ChO8BlDz.mjs.map +0 -1
  357. package/dist/AmazonApiGatewayV2EndpointAdaptor-I1W23Nvn.cjs.map +0 -1
  358. package/dist/CronBuilder-Bl3A2Zp4.mjs.map +0 -1
  359. package/dist/CronBuilder-Dv_w7Yri.cjs.map +0 -1
  360. package/dist/EndpointBuilder-DeswNQdG.cjs.map +0 -1
  361. package/dist/EndpointBuilder-FyyoFTJ5.mjs.map +0 -1
  362. package/dist/FunctionBuilder-CVT7bG2o.mjs.map +0 -1
  363. package/dist/FunctionBuilder-DXvG_XD-.cjs.map +0 -1
  364. package/dist/Subscriber-DOt3svUC.cjs.map +0 -1
  365. package/dist/Subscriber-kCHbH2fZ.mjs.map +0 -1
  366. package/dist/TestEndpointAdaptor-1pPixE6y.mjs.map +0 -1
  367. package/dist/TestEndpointAdaptor-wA-fmq4v.cjs.map +0 -1
  368. package/dist/functions-JhRsNoAZ.mjs +0 -8
  369. package/dist/index-CqH4_Ieb.d.cts +0 -10
  370. package/dist/parseHonoQuery-CT8Cvin-.cjs.map +0 -1
  371. package/dist/parseHonoQuery-CwFKw2ua.mjs.map +0 -1
  372. package/dist/parseQueryParams-CHINupbZ.mjs.map +0 -1
  373. package/dist/parseQueryParams-CwvXXwkW.cjs.map +0 -1
@@ -1,3 +1,3 @@
1
- import "../Construct-Dkd8Kvc9.cjs";
2
- import { BaseFunctionBuilder } from "../BaseFunctionBuilder-DaQA0uKE.cjs";
1
+ import "../Construct-C4rPE67v.cjs";
2
+ import { BaseFunctionBuilder } from "../BaseFunctionBuilder-BAtutR6q.cjs";
3
3
  export { BaseFunctionBuilder };
@@ -1,3 +1,3 @@
1
- import "../Construct-jBKqb-Zi.mjs";
2
- import { BaseFunctionBuilder } from "../BaseFunctionBuilder-CoV7J45W.mjs";
1
+ import "../Construct-XrijZFFh.mjs";
2
+ import { BaseFunctionBuilder } from "../BaseFunctionBuilder-DRY419e7.mjs";
3
3
  export { BaseFunctionBuilder };
@@ -1,4 +1,4 @@
1
- import "../Construct-LWeB1rSQ.mjs";
2
- import { BaseFunctionBuilder } from "../BaseFunctionBuilder-B5gkW0Kt.mjs";
1
+ import "../Construct-DdyGHuag.mjs";
2
+ import { BaseFunctionBuilder } from "../BaseFunctionBuilder-Czi1Jwza.mjs";
3
3
 
4
4
  export { BaseFunctionBuilder };
@@ -1,5 +1,5 @@
1
- require('../Construct-BYSPikVm.cjs');
2
- const require_Function = require('../Function-DagDbeXo.cjs');
1
+ require('../Construct-Ba5cMxib.cjs');
2
+ const require_Function = require('../Function-DDZb1525.cjs');
3
3
 
4
4
  exports.Function = require_Function.Function;
5
5
  exports.FunctionFactory = require_Function.FunctionFactory;
@@ -1,3 +1,3 @@
1
- import "../Construct-Dkd8Kvc9.cjs";
2
- import { Function, FunctionContext, FunctionFactory, FunctionHandler } from "../Function-DHD1V9QW.cjs";
1
+ import "../Construct-C4rPE67v.cjs";
2
+ import { Function, FunctionContext, FunctionFactory, FunctionHandler } from "../Function-Cf7f_kCz.cjs";
3
3
  export { Function, FunctionContext, FunctionFactory, FunctionHandler };
@@ -1,3 +1,3 @@
1
- import "../Construct-jBKqb-Zi.mjs";
2
- import { Function, FunctionContext, FunctionFactory, FunctionHandler } from "../Function-Vh1t-Qjj.mjs";
1
+ import "../Construct-XrijZFFh.mjs";
2
+ import { Function, FunctionContext, FunctionFactory, FunctionHandler } from "../Function-DN2G6OT5.mjs";
3
3
  export { Function, FunctionContext, FunctionFactory, FunctionHandler };
@@ -1,4 +1,4 @@
1
- import "../Construct-LWeB1rSQ.mjs";
2
- import { Function, FunctionFactory } from "../Function-DfKsM5Kx.mjs";
1
+ import "../Construct-DdyGHuag.mjs";
2
+ import { Function, FunctionFactory } from "../Function-BVHqIDp9.mjs";
3
3
 
4
4
  export { Function, FunctionFactory };
@@ -1,6 +1,6 @@
1
- require('../Construct-BYSPikVm.cjs');
2
- require('../Function-DagDbeXo.cjs');
3
- require('../BaseFunctionBuilder-C5Se7pdL.cjs');
4
- const require_FunctionBuilder = require('../FunctionBuilder-DXvG_XD-.cjs');
1
+ require('../Construct-Ba5cMxib.cjs');
2
+ require('../Function-DDZb1525.cjs');
3
+ require('../BaseFunctionBuilder-MYG3C9ug.cjs');
4
+ const require_FunctionBuilder = require('../FunctionBuilder-DswJ-9sD.cjs');
5
5
 
6
6
  exports.FunctionBuilder = require_FunctionBuilder.FunctionBuilder;
@@ -1,5 +1,5 @@
1
- import "../Construct-Dkd8Kvc9.cjs";
2
- import "../Function-DHD1V9QW.cjs";
3
- import "../BaseFunctionBuilder-DaQA0uKE.cjs";
4
- import { FunctionBuilder } from "../FunctionBuilder-FV6r3I7X.cjs";
1
+ import "../Construct-C4rPE67v.cjs";
2
+ import "../Function-Cf7f_kCz.cjs";
3
+ import "../BaseFunctionBuilder-BAtutR6q.cjs";
4
+ import { FunctionBuilder } from "../FunctionBuilder-CJBzzXL3.cjs";
5
5
  export { FunctionBuilder };
@@ -1,5 +1,5 @@
1
- import "../Construct-jBKqb-Zi.mjs";
2
- import "../Function-Vh1t-Qjj.mjs";
3
- import "../BaseFunctionBuilder-CoV7J45W.mjs";
4
- import { FunctionBuilder } from "../FunctionBuilder-3jsoFffg.mjs";
1
+ import "../Construct-XrijZFFh.mjs";
2
+ import "../Function-DN2G6OT5.mjs";
3
+ import "../BaseFunctionBuilder-DRY419e7.mjs";
4
+ import { FunctionBuilder } from "../FunctionBuilder-Cxx8D2na.mjs";
5
5
  export { FunctionBuilder };
@@ -1,6 +1,6 @@
1
- import "../Construct-LWeB1rSQ.mjs";
2
- import "../Function-DfKsM5Kx.mjs";
3
- import "../BaseFunctionBuilder-B5gkW0Kt.mjs";
4
- import { FunctionBuilder } from "../FunctionBuilder-CVT7bG2o.mjs";
1
+ import "../Construct-DdyGHuag.mjs";
2
+ import "../Function-BVHqIDp9.mjs";
3
+ import "../BaseFunctionBuilder-Czi1Jwza.mjs";
4
+ import { FunctionBuilder } from "../FunctionBuilder-CrDYgfiI.mjs";
5
5
 
6
6
  export { FunctionBuilder };
@@ -1,8 +1,8 @@
1
- require('../Construct-BYSPikVm.cjs');
1
+ require('../Construct-Ba5cMxib.cjs');
2
2
  require('../publisher-lFQleddL.cjs');
3
- require('../Function-DagDbeXo.cjs');
4
- require('../BaseFunctionBuilder-C5Se7pdL.cjs');
5
- require('../FunctionBuilder-DXvG_XD-.cjs');
6
- const require_FunctionExecutionWrapper = require('../FunctionExecutionWrapper-DkNycmOh.cjs');
3
+ require('../Function-DDZb1525.cjs');
4
+ require('../BaseFunctionBuilder-MYG3C9ug.cjs');
5
+ require('../FunctionBuilder-DswJ-9sD.cjs');
6
+ const require_FunctionExecutionWrapper = require('../FunctionExecutionWrapper-BYI2bGTL.cjs');
7
7
 
8
8
  exports.FunctionExecutionWrapper = require_FunctionExecutionWrapper.FunctionExecutionWrapper;
@@ -1,4 +1,4 @@
1
- import "../Construct-Dkd8Kvc9.cjs";
2
- import "../Function-DHD1V9QW.cjs";
3
- import { FunctionExecutionWrapper } from "../FunctionExecutionWrapper-DYt3C8b9.cjs";
1
+ import "../Construct-C4rPE67v.cjs";
2
+ import "../Function-Cf7f_kCz.cjs";
3
+ import { FunctionExecutionWrapper } from "../FunctionExecutionWrapper-Qy8bmgFR.cjs";
4
4
  export { FunctionExecutionWrapper };
@@ -1,4 +1,4 @@
1
- import "../Construct-jBKqb-Zi.mjs";
2
- import "../Function-Vh1t-Qjj.mjs";
3
- import { FunctionExecutionWrapper } from "../FunctionExecutionWrapper-CI3CaoCo.mjs";
1
+ import "../Construct-XrijZFFh.mjs";
2
+ import "../Function-DN2G6OT5.mjs";
3
+ import { FunctionExecutionWrapper } from "../FunctionExecutionWrapper-DF260Aaj.mjs";
4
4
  export { FunctionExecutionWrapper };
@@ -1,8 +1,8 @@
1
- import "../Construct-LWeB1rSQ.mjs";
1
+ import "../Construct-DdyGHuag.mjs";
2
2
  import "../publisher-Bw4770Hi.mjs";
3
- import "../Function-DfKsM5Kx.mjs";
4
- import "../BaseFunctionBuilder-B5gkW0Kt.mjs";
5
- import "../FunctionBuilder-CVT7bG2o.mjs";
6
- import { FunctionExecutionWrapper } from "../FunctionExecutionWrapper-Bubnr0zA.mjs";
3
+ import "../Function-BVHqIDp9.mjs";
4
+ import "../BaseFunctionBuilder-Czi1Jwza.mjs";
5
+ import "../FunctionBuilder-CrDYgfiI.mjs";
6
+ import { FunctionExecutionWrapper } from "../FunctionExecutionWrapper-CLDh7Z2_.mjs";
7
7
 
8
8
  export { FunctionExecutionWrapper };
@@ -1,9 +1,9 @@
1
1
  const require_chunk = require('../chunk-CUT6urMc.cjs');
2
- require('../Construct-BYSPikVm.cjs');
2
+ require('../Construct-Ba5cMxib.cjs');
3
3
  const require_publisher = require('../publisher-lFQleddL.cjs');
4
- require('../Function-DagDbeXo.cjs');
5
- require('../BaseFunctionBuilder-C5Se7pdL.cjs');
6
- const require_FunctionBuilder = require('../FunctionBuilder-DXvG_XD-.cjs');
4
+ require('../Function-DDZb1525.cjs');
5
+ require('../BaseFunctionBuilder-MYG3C9ug.cjs');
6
+ const require_FunctionBuilder = require('../FunctionBuilder-DswJ-9sD.cjs');
7
7
  const __geekmidas_services = require_chunk.__toESM(require("@geekmidas/services"));
8
8
  const __geekmidas_audit = require_chunk.__toESM(require("@geekmidas/audit"));
9
9
  const __geekmidas_envkit = require_chunk.__toESM(require("@geekmidas/envkit"));
@@ -1,5 +1,5 @@
1
- import "../Construct-Dkd8Kvc9.cjs";
2
- import { Function } from "../Function-DHD1V9QW.cjs";
1
+ import "../Construct-C4rPE67v.cjs";
2
+ import { Function } from "../Function-Cf7f_kCz.cjs";
3
3
  import { AuditStorage, AuditableAction, Auditor } from "@geekmidas/audit";
4
4
  import { EventPublisher } from "@geekmidas/events";
5
5
  import { Logger } from "@geekmidas/logger";
@@ -24,6 +24,8 @@ type TestFunctionRequest<TInput extends ComposableStandardSchema | undefined = u
24
24
  } & InferComposableStandardSchema<{
25
25
  input: TInput;
26
26
  }>;
27
+ //# sourceMappingURL=TestFunctionAdaptor.d.ts.map
28
+
27
29
  //#endregion
28
30
  export { TestFunctionAdaptor, TestFunctionRequest };
29
31
  //# sourceMappingURL=TestFunctionAdaptor.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TestFunctionAdaptor.d.cts","names":[],"sources":["../../src/functions/TestFunctionAdaptor.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;cAoBa,mCACI,qEACI,4DACD,gCACF,SAAS,gCACD,uHAEF,kLAID,mCAAmC;;;EAX7C,OAAA,0BAAmB,CAAA,eAiBb,wBAjBa,GAAA,SAAA,GAAA,SAAA,EAAA,mBAkBT,gBAlBS,GAAA,SAAA,GAAA,SAAA,EAAA,kBAmBV,OAnBU,EAAA,GAAA,EAAA,EAAA,gBAoBZ,MApBY,GAoBH,MApBG,EAAA,wBAqBJ,cArBI,CAAA,GAAA,CAAA,GAAA,SAAA,GAAA,SAAA,EAAA,mCAAA,MAAA,GAAA,MAAA,EAAA,sBAuBN,YAvBM,GAAA,SAAA,GAAA,SAAA,EAAA,iCAAA,MAAA,GAAA,MAAA,EAAA,YAAA,SAAA,EAAA,6BAAA,MAAA,GAAA,MAAA,EAAA,qBA2BP,eA3BO,CAAA,MAAA,EAAA,OAAA,CAAA,GA2B4B,eA3B5B,CAAA,MAAA,EAAA,OAAA,CAAA,CAAA,CAAA,EAAA,EAgCxB,QAhCwB,CAiC1B,MAjC0B,EAkC1B,SAlC0B,EAmC1B,OAnC0B,EAoC1B,UApC0B,EAqC1B,eArC0B,EAsC1B,0BAtC0B,EAuC1B,aAvC0B,EAwC1B,wBAxC0B,EAyC1B,SAzC0B,EA0C1B,oBA1C0B,EA2C1B,YA3C0B,EAAA,GAAA,CAAA,CAAA,EA6C3B,gBA7C2B,CAAA,GAAA,EA6C3B,MA7C2B,CAAA;EAAA,WAAA,CAAA,EAAA,EAmDP,QAnDO,CAoD1B,MApD0B,EAqD1B,SArD0B,EAsD1B,OAtD0B,EAuD1B,UAvD0B,EAwD1B,eAxD0B,EAyD1B,0BAzD0B,EA0D1B,aA1D0B,EA2D1B,wBA3D0B,EA4D1B,SA5D0B,EA6D1B,oBA7D0B,EA8D1B,YA9D0B,EAAA,GAAA,CAAA,EAAA,gBAAA,CAAA,EAiEF,gBAjEE,CAAA,GAAA,EAAA,GAAA,CAAA;EAAA,MACf,CAAA,GAAA,EAuER,mBAvEQ,CAwEX,MAxEW,EAyEX,SAzEW,EA0EX,eA1EW,EA2EX,0BA3EW,EA4EX,SA5EW,EA6EX,YA7EW,CAAA,CAAA,EA+EZ,OA/EY,CA+EJ,mBA/EI,CA+EgB,UA/EhB,CAAA,CAAA;;AAEG,KA2KR,mBA3KQ,CAAA,eA4KH,wBA5KG,GAAA,SAAA,GAAA,SAAA,EAAA,kBA6KA,OA7KA,EAAA,GAAA,EAAA,EAAA,wBA8KM,cA9KN,CAAA,GAAA,CAAA,GAAA,SAAA,GAAA,SAAA,EAAA,mCAAA,MAAA,GAAA,MAAA,EAAA,YAAA,SAAA,EAAA,qBAiLG,eAjLH,CAAA,MAAA,EAAA,OAAA,CAAA,GAiLsC,eAjLtC,CAAA,MAAA,EAAA,OAAA,CAAA,CAAA,GAAA;EAAO,KACT,EAqLT,6BArLS,CAqLqB,MArLrB,CAAA;EAAM,QAAG,EAsLf,aAtLe,CAsLD,SAtLC,CAAA;EAAM,SACP,CAAA,EAsLZ,OAtLY,CAsLJ,0BAtLI,EAsLwB,eAtLxB,CAAA;EAAc,EAAA,CAEhB,EAqLjB,SArLiB;EAAY,OAIb,CAAA,EAkLX,OAlLW,CAkLH,YAlLG,CAAA;CAAe,GAmLlC,6BAnLsD,CAAA;EAAe,KAMtD,EA6KwB,MA7KxB;CAAwB,CAAA"}
@@ -1,5 +1,5 @@
1
- import "../Construct-jBKqb-Zi.mjs";
2
- import { Function } from "../Function-Vh1t-Qjj.mjs";
1
+ import "../Construct-XrijZFFh.mjs";
2
+ import { Function } from "../Function-DN2G6OT5.mjs";
3
3
  import { Service, ServiceDiscovery, ServiceRecord } from "@geekmidas/services";
4
4
  import { AuditStorage, AuditableAction, Auditor } from "@geekmidas/audit";
5
5
  import { EventPublisher } from "@geekmidas/events";
@@ -24,6 +24,8 @@ type TestFunctionRequest<TInput extends ComposableStandardSchema | undefined = u
24
24
  } & InferComposableStandardSchema<{
25
25
  input: TInput;
26
26
  }>;
27
+ //# sourceMappingURL=TestFunctionAdaptor.d.ts.map
28
+
27
29
  //#endregion
28
30
  export { TestFunctionAdaptor, TestFunctionRequest };
29
31
  //# sourceMappingURL=TestFunctionAdaptor.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TestFunctionAdaptor.d.mts","names":[],"sources":["../../src/functions/TestFunctionAdaptor.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;cAoBa,mCACI,qEACI,4DACD,gCACF,SAAS,gCACD,uHAEF,kLAID,mCAAmC;;;EAX7C,OAAA,0BAAmB,CAAA,eAiBb,wBAjBa,GAAA,SAAA,GAAA,SAAA,EAAA,mBAkBT,gBAlBS,GAAA,SAAA,GAAA,SAAA,EAAA,kBAmBV,OAnBU,EAAA,GAAA,EAAA,EAAA,gBAoBZ,MApBY,GAoBH,MApBG,EAAA,wBAqBJ,cArBI,CAAA,GAAA,CAAA,GAAA,SAAA,GAAA,SAAA,EAAA,mCAAA,MAAA,GAAA,MAAA,EAAA,sBAuBN,YAvBM,GAAA,SAAA,GAAA,SAAA,EAAA,iCAAA,MAAA,GAAA,MAAA,EAAA,YAAA,SAAA,EAAA,6BAAA,MAAA,GAAA,MAAA,EAAA,qBA2BP,eA3BO,CAAA,MAAA,EAAA,OAAA,CAAA,GA2B4B,eA3B5B,CAAA,MAAA,EAAA,OAAA,CAAA,CAAA,CAAA,EAAA,EAgCxB,QAhCwB,CAiC1B,MAjC0B,EAkC1B,SAlC0B,EAmC1B,OAnC0B,EAoC1B,UApC0B,EAqC1B,eArC0B,EAsC1B,0BAtC0B,EAuC1B,aAvC0B,EAwC1B,wBAxC0B,EAyC1B,SAzC0B,EA0C1B,oBA1C0B,EA2C1B,YA3C0B,EAAA,GAAA,CAAA,CAAA,EA6C3B,gBA7C2B,CAAA,GAAA,EA6C3B,MA7C2B,CAAA;EAAA,WAAA,CAAA,EAAA,EAmDP,QAnDO,CAoD1B,MApD0B,EAqD1B,SArD0B,EAsD1B,OAtD0B,EAuD1B,UAvD0B,EAwD1B,eAxD0B,EAyD1B,0BAzD0B,EA0D1B,aA1D0B,EA2D1B,wBA3D0B,EA4D1B,SA5D0B,EA6D1B,oBA7D0B,EA8D1B,YA9D0B,EAAA,GAAA,CAAA,EAAA,gBAAA,CAAA,EAiEF,gBAjEE,CAAA,GAAA,EAAA,GAAA,CAAA;EAAA,MACf,CAAA,GAAA,EAuER,mBAvEQ,CAwEX,MAxEW,EAyEX,SAzEW,EA0EX,eA1EW,EA2EX,0BA3EW,EA4EX,SA5EW,EA6EX,YA7EW,CAAA,CAAA,EA+EZ,OA/EY,CA+EJ,mBA/EI,CA+EgB,UA/EhB,CAAA,CAAA;;AAEG,KA2KR,mBA3KQ,CAAA,eA4KH,wBA5KG,GAAA,SAAA,GAAA,SAAA,EAAA,kBA6KA,OA7KA,EAAA,GAAA,EAAA,EAAA,wBA8KM,cA9KN,CAAA,GAAA,CAAA,GAAA,SAAA,GAAA,SAAA,EAAA,mCAAA,MAAA,GAAA,MAAA,EAAA,YAAA,SAAA,EAAA,qBAiLG,eAjLH,CAAA,MAAA,EAAA,OAAA,CAAA,GAiLsC,eAjLtC,CAAA,MAAA,EAAA,OAAA,CAAA,CAAA,GAAA;EAAO,KACT,EAqLT,6BArLS,CAqLqB,MArLrB,CAAA;EAAM,QAAG,EAsLf,aAtLe,CAsLD,SAtLC,CAAA;EAAM,SACP,CAAA,EAsLZ,OAtLY,CAsLJ,0BAtLI,EAsLwB,eAtLxB,CAAA;EAAc,EAAA,CAEhB,EAqLjB,SArLiB;EAAY,OAIb,CAAA,EAkLX,OAlLW,CAkLH,YAlLG,CAAA;CAAe,GAmLlC,6BAnLsD,CAAA;EAAe,KAMtD,EA6KwB,MA7KxB;CAAwB,CAAA"}
@@ -1,8 +1,8 @@
1
- import "../Construct-LWeB1rSQ.mjs";
1
+ import "../Construct-DdyGHuag.mjs";
2
2
  import { publishEvents } from "../publisher-Bw4770Hi.mjs";
3
- import "../Function-DfKsM5Kx.mjs";
4
- import "../BaseFunctionBuilder-B5gkW0Kt.mjs";
5
- import { FunctionBuilder } from "../FunctionBuilder-CVT7bG2o.mjs";
3
+ import "../Function-BVHqIDp9.mjs";
4
+ import "../BaseFunctionBuilder-Czi1Jwza.mjs";
5
+ import { FunctionBuilder } from "../FunctionBuilder-CrDYgfiI.mjs";
6
6
  import { ServiceDiscovery } from "@geekmidas/services";
7
7
  import { DefaultAuditor } from "@geekmidas/audit";
8
8
  import { EnvironmentParser } from "@geekmidas/envkit";
@@ -1,8 +1,8 @@
1
- require('../Construct-BYSPikVm.cjs');
2
- const require_Function = require('../Function-DagDbeXo.cjs');
3
- const require_BaseFunctionBuilder = require('../BaseFunctionBuilder-C5Se7pdL.cjs');
4
- const require_FunctionBuilder = require('../FunctionBuilder-DXvG_XD-.cjs');
5
- const require_functions = require('../functions-FCb-wWFC.cjs');
1
+ require('../Construct-Ba5cMxib.cjs');
2
+ const require_Function = require('../Function-DDZb1525.cjs');
3
+ const require_BaseFunctionBuilder = require('../BaseFunctionBuilder-MYG3C9ug.cjs');
4
+ const require_FunctionBuilder = require('../FunctionBuilder-DswJ-9sD.cjs');
5
+ const require_functions = require('../functions-fTid0RMK.cjs');
6
6
 
7
7
  exports.BaseFunctionBuilder = require_BaseFunctionBuilder.BaseFunctionBuilder;
8
8
  exports.Function = require_Function.Function;
@@ -1,6 +1,6 @@
1
- import "../Construct-Dkd8Kvc9.cjs";
2
- import { Function, FunctionContext, FunctionHandler } from "../Function-DHD1V9QW.cjs";
3
- import { BaseFunctionBuilder } from "../BaseFunctionBuilder-DaQA0uKE.cjs";
4
- import { FunctionBuilder } from "../FunctionBuilder-FV6r3I7X.cjs";
5
- import { f } from "../index-CqH4_Ieb.cjs";
1
+ import "../Construct-C4rPE67v.cjs";
2
+ import { Function, FunctionContext, FunctionHandler } from "../Function-Cf7f_kCz.cjs";
3
+ import { BaseFunctionBuilder } from "../BaseFunctionBuilder-BAtutR6q.cjs";
4
+ import { FunctionBuilder } from "../FunctionBuilder-CJBzzXL3.cjs";
5
+ import { f } from "../index-SI4V0XwK.cjs";
6
6
  export { BaseFunctionBuilder, Function, FunctionBuilder, FunctionContext, FunctionHandler, f };
@@ -1,6 +1,6 @@
1
- import "../Construct-jBKqb-Zi.mjs";
2
- import { Function, FunctionContext, FunctionHandler } from "../Function-Vh1t-Qjj.mjs";
3
- import { BaseFunctionBuilder } from "../BaseFunctionBuilder-CoV7J45W.mjs";
4
- import { FunctionBuilder } from "../FunctionBuilder-3jsoFffg.mjs";
5
- import { f } from "../index-CFyaRrck.mjs";
1
+ import "../Construct-XrijZFFh.mjs";
2
+ import { Function, FunctionContext, FunctionHandler } from "../Function-DN2G6OT5.mjs";
3
+ import { BaseFunctionBuilder } from "../BaseFunctionBuilder-DRY419e7.mjs";
4
+ import { FunctionBuilder } from "../FunctionBuilder-Cxx8D2na.mjs";
5
+ import { f } from "../index-BWzGIj06.mjs";
6
6
  export { BaseFunctionBuilder, Function, FunctionBuilder, FunctionContext, FunctionHandler, f };
@@ -1,7 +1,7 @@
1
- import "../Construct-LWeB1rSQ.mjs";
2
- import { Function } from "../Function-DfKsM5Kx.mjs";
3
- import { BaseFunctionBuilder } from "../BaseFunctionBuilder-B5gkW0Kt.mjs";
4
- import { FunctionBuilder } from "../FunctionBuilder-CVT7bG2o.mjs";
5
- import { f } from "../functions-JhRsNoAZ.mjs";
1
+ import "../Construct-DdyGHuag.mjs";
2
+ import { Function } from "../Function-BVHqIDp9.mjs";
3
+ import { BaseFunctionBuilder } from "../BaseFunctionBuilder-Czi1Jwza.mjs";
4
+ import { FunctionBuilder } from "../FunctionBuilder-CrDYgfiI.mjs";
5
+ import { f } from "../functions-C6EK1xL6.mjs";
6
6
 
7
7
  export { BaseFunctionBuilder, Function, FunctionBuilder, f };
@@ -0,0 +1,8 @@
1
+ import { FunctionBuilder } from "./FunctionBuilder-CrDYgfiI.mjs";
2
+
3
+ //#region src/functions/index.ts
4
+ const f = new FunctionBuilder();
5
+
6
+ //#endregion
7
+ export { f };
8
+ //# sourceMappingURL=functions-C6EK1xL6.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"functions-JhRsNoAZ.mjs","names":[],"sources":["../src/functions/index.ts"],"sourcesContent":["export {\n Function,\n type FunctionContext,\n type FunctionHandler,\n} from './Function';\nexport { BaseFunctionBuilder } from './BaseFunctionBuilder';\nimport { FunctionBuilder } from './FunctionBuilder';\nexport { FunctionBuilder } from './FunctionBuilder';\n\nexport const f = new FunctionBuilder();\n"],"mappings":";;;AASA,MAAa,IAAI,IAAI"}
1
+ {"version":3,"file":"functions-C6EK1xL6.mjs","names":[],"sources":["../src/functions/index.ts"],"sourcesContent":["export {\n Function,\n type FunctionContext,\n type FunctionHandler,\n} from './Function';\nexport { BaseFunctionBuilder } from './BaseFunctionBuilder';\nimport { FunctionBuilder } from './FunctionBuilder';\nexport { FunctionBuilder } from './FunctionBuilder';\n\nexport const f = new FunctionBuilder();\n"],"mappings":";;;AASA,MAAa,IAAI,IAAI"}
@@ -1,4 +1,4 @@
1
- const require_FunctionBuilder = require('./FunctionBuilder-DXvG_XD-.cjs');
1
+ const require_FunctionBuilder = require('./FunctionBuilder-DswJ-9sD.cjs');
2
2
 
3
3
  //#region src/functions/index.ts
4
4
  const f = new require_FunctionBuilder.FunctionBuilder();
@@ -10,4 +10,4 @@ Object.defineProperty(exports, 'f', {
10
10
  return f;
11
11
  }
12
12
  });
13
- //# sourceMappingURL=functions-FCb-wWFC.cjs.map
13
+ //# sourceMappingURL=functions-fTid0RMK.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"functions-FCb-wWFC.cjs","names":["FunctionBuilder"],"sources":["../src/functions/index.ts"],"sourcesContent":["export {\n Function,\n type FunctionContext,\n type FunctionHandler,\n} from './Function';\nexport { BaseFunctionBuilder } from './BaseFunctionBuilder';\nimport { FunctionBuilder } from './FunctionBuilder';\nexport { FunctionBuilder } from './FunctionBuilder';\n\nexport const f = new FunctionBuilder();\n"],"mappings":";;;AASA,MAAa,IAAI,IAAIA"}
1
+ {"version":3,"file":"functions-fTid0RMK.cjs","names":["FunctionBuilder"],"sources":["../src/functions/index.ts"],"sourcesContent":["export {\n Function,\n type FunctionContext,\n type FunctionHandler,\n} from './Function';\nexport { BaseFunctionBuilder } from './BaseFunctionBuilder';\nimport { FunctionBuilder } from './FunctionBuilder';\nexport { FunctionBuilder } from './FunctionBuilder';\n\nexport const f = new FunctionBuilder();\n"],"mappings":";;;AASA,MAAa,IAAI,IAAIA"}
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('./chunk-CUT6urMc.cjs');
2
- const require_Endpoint = require('./Endpoint-BJo9Hhwm.cjs');
2
+ const require_Endpoint = require('./Endpoint-BVGZXFyV.cjs');
3
3
  const node_path = require_chunk.__toESM(require("node:path"));
4
4
  const fast_glob = require_chunk.__toESM(require("fast-glob"));
5
5
 
@@ -92,4 +92,4 @@ Object.defineProperty(exports, 'getProjectRoot', {
92
92
  return getProjectRoot;
93
93
  }
94
94
  });
95
- //# sourceMappingURL=helpers-DxxSpLfw.cjs.map
95
+ //# sourceMappingURL=helpers-BcP1tXAi.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers-DxxSpLfw.cjs","names":["cwd: string","routes: string[]","endpoints: Endpoint<string, HttpMethod, any, any, TServices>[]"],"sources":["../src/endpoints/helpers.ts"],"sourcesContent":["import path from 'node:path';\nimport fg from 'fast-glob';\nimport { Endpoint } from './Endpoint';\n\nimport type { Service } from '@geekmidas/services';\nimport type { HttpMethod } from '../types';\n\n// Re-export utility functions\n\n/**\n * Recursively finds the project root directory by looking for lock files.\n * Traverses up the directory tree until it finds a package manager lock file.\n *\n * @param cwd - The current working directory to start searching from\n * @returns Promise resolving to the absolute path of the project root\n *\n * @example\n * ```typescript\n * const projectRoot = await getProjectRoot(process.cwd());\n * console.log(`Project root: ${projectRoot}`);\n * // Output: Project root: /Users/user/my-project\n * ```\n */\nexport async function getProjectRoot(cwd: string): Promise<string> {\n if (cwd === '/') {\n return cwd;\n }\n\n const stream = fg.stream(\n ['yarn.lock', 'pnpm-lock.yaml', 'package-lock.json', 'deno.lock'],\n { dot: true, cwd },\n );\n\n let isRoot = false;\n\n for await (const _ of stream) {\n isRoot = true;\n break;\n }\n\n if (isRoot) {\n return cwd;\n }\n\n return getProjectRoot(path.resolve(cwd, '..'));\n}\n\n/**\n * Discovers and imports all Endpoint instances from the specified route patterns.\n * Uses fast-glob to find files matching the patterns and extracts exported Endpoints.\n *\n * @template TServices - Array of service types used by the endpoints\n * @param routes - Array of glob patterns to match route files (e.g., ['src/routes/*.ts'])\n * @param cwd - The current working directory to resolve paths from\n * @returns Promise resolving to an array of Endpoint instances found in the matched files\n *\n * @example\n * ```typescript\n * // Find all endpoints in the routes directory\n * const endpoints = await getEndpointsFromRoutes(\n * ['src/routes/**\\/*.ts'],\n * process.cwd()\n * );\n *\n * // Register endpoints with your server\n * for (const endpoint of endpoints) {\n * server.register(endpoint);\n * }\n * ```\n *\n * @remarks\n * - Only exports that are valid Endpoint instances are included\n * - Files are imported dynamically, so they must be valid ES modules\n * - The function filters out non-Endpoint exports automatically\n */\nexport async function getEndpointsFromRoutes<TServices extends Service[]>(\n routes: string[],\n cwd: string,\n): Promise<Endpoint<string, HttpMethod, any, any, TServices>[]> {\n const stream = fg.stream(routes, { cwd });\n\n const endpoints: Endpoint<string, HttpMethod, any, any, TServices>[] = [];\n\n for await (const f of stream) {\n // Resolve the absolute path for the route file\n const routePath = path.resolve(cwd, f.toString());\n // Dynamically import the route module\n const route = await import(routePath);\n\n // Filter exported values to find only Endpoint instances\n const handlers = Object.values(route).filter((value) => {\n return Endpoint.isEndpoint(value);\n }) as unknown as Endpoint<string, HttpMethod, any, any, TServices>[];\n\n endpoints.push(...handlers);\n }\n\n return endpoints;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAuBA,eAAsB,eAAeA,KAA8B;AACjE,KAAI,QAAQ,IACV,QAAO;CAGT,MAAM,SAAS,kBAAG,OAChB;EAAC;EAAa;EAAkB;EAAqB;CAAY,GACjE;EAAE,KAAK;EAAM;CAAK,EACnB;CAED,IAAI,SAAS;AAEb,YAAW,MAAM,KAAK,QAAQ;AAC5B,WAAS;AACT;CACD;AAED,KAAI,OACF,QAAO;AAGT,QAAO,eAAe,kBAAK,QAAQ,KAAK,KAAK,CAAC;AAC/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BD,eAAsB,uBACpBC,QACAD,KAC8D;CAC9D,MAAM,SAAS,kBAAG,OAAO,QAAQ,EAAE,IAAK,EAAC;CAEzC,MAAME,YAAiE,CAAE;AAEzE,YAAW,MAAM,KAAK,QAAQ;EAE5B,MAAM,YAAY,kBAAK,QAAQ,KAAK,EAAE,UAAU,CAAC;EAEjD,MAAM,QAAQ,MAAM,OAAO;EAG3B,MAAM,WAAW,OAAO,OAAO,MAAM,CAAC,OAAO,CAAC,UAAU;AACtD,UAAO,0BAAS,WAAW,MAAM;EAClC,EAAC;AAEF,YAAU,KAAK,GAAG,SAAS;CAC5B;AAED,QAAO;AACR"}
1
+ {"version":3,"file":"helpers-BcP1tXAi.cjs","names":["cwd: string","routes: string[]","endpoints: Endpoint<string, HttpMethod, any, any, TServices>[]"],"sources":["../src/endpoints/helpers.ts"],"sourcesContent":["import path from 'node:path';\nimport fg from 'fast-glob';\nimport { Endpoint } from './Endpoint';\n\nimport type { Service } from '@geekmidas/services';\nimport type { HttpMethod } from '../types';\n\n// Re-export utility functions\n\n/**\n * Recursively finds the project root directory by looking for lock files.\n * Traverses up the directory tree until it finds a package manager lock file.\n *\n * @param cwd - The current working directory to start searching from\n * @returns Promise resolving to the absolute path of the project root\n *\n * @example\n * ```typescript\n * const projectRoot = await getProjectRoot(process.cwd());\n * console.log(`Project root: ${projectRoot}`);\n * // Output: Project root: /Users/user/my-project\n * ```\n */\nexport async function getProjectRoot(cwd: string): Promise<string> {\n if (cwd === '/') {\n return cwd;\n }\n\n const stream = fg.stream(\n ['yarn.lock', 'pnpm-lock.yaml', 'package-lock.json', 'deno.lock'],\n { dot: true, cwd },\n );\n\n let isRoot = false;\n\n for await (const _ of stream) {\n isRoot = true;\n break;\n }\n\n if (isRoot) {\n return cwd;\n }\n\n return getProjectRoot(path.resolve(cwd, '..'));\n}\n\n/**\n * Discovers and imports all Endpoint instances from the specified route patterns.\n * Uses fast-glob to find files matching the patterns and extracts exported Endpoints.\n *\n * @template TServices - Array of service types used by the endpoints\n * @param routes - Array of glob patterns to match route files (e.g., ['src/routes/*.ts'])\n * @param cwd - The current working directory to resolve paths from\n * @returns Promise resolving to an array of Endpoint instances found in the matched files\n *\n * @example\n * ```typescript\n * // Find all endpoints in the routes directory\n * const endpoints = await getEndpointsFromRoutes(\n * ['src/routes/**\\/*.ts'],\n * process.cwd()\n * );\n *\n * // Register endpoints with your server\n * for (const endpoint of endpoints) {\n * server.register(endpoint);\n * }\n * ```\n *\n * @remarks\n * - Only exports that are valid Endpoint instances are included\n * - Files are imported dynamically, so they must be valid ES modules\n * - The function filters out non-Endpoint exports automatically\n */\nexport async function getEndpointsFromRoutes<TServices extends Service[]>(\n routes: string[],\n cwd: string,\n): Promise<Endpoint<string, HttpMethod, any, any, TServices>[]> {\n const stream = fg.stream(routes, { cwd });\n\n const endpoints: Endpoint<string, HttpMethod, any, any, TServices>[] = [];\n\n for await (const f of stream) {\n // Resolve the absolute path for the route file\n const routePath = path.resolve(cwd, f.toString());\n // Dynamically import the route module\n const route = await import(routePath);\n\n // Filter exported values to find only Endpoint instances\n const handlers = Object.values(route).filter((value) => {\n return Endpoint.isEndpoint(value);\n }) as unknown as Endpoint<string, HttpMethod, any, any, TServices>[];\n\n endpoints.push(...handlers);\n }\n\n return endpoints;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAuBA,eAAsB,eAAeA,KAA8B;AACjE,KAAI,QAAQ,IACV,QAAO;CAGT,MAAM,SAAS,kBAAG,OAChB;EAAC;EAAa;EAAkB;EAAqB;CAAY,GACjE;EAAE,KAAK;EAAM;CAAK,EACnB;CAED,IAAI,SAAS;AAEb,YAAW,MAAM,KAAK,QAAQ;AAC5B,WAAS;AACT;CACD;AAED,KAAI,OACF,QAAO;AAGT,QAAO,eAAe,kBAAK,QAAQ,KAAK,KAAK,CAAC;AAC/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BD,eAAsB,uBACpBC,QACAD,KAC8D;CAC9D,MAAM,SAAS,kBAAG,OAAO,QAAQ,EAAE,IAAK,EAAC;CAEzC,MAAME,YAAiE,CAAE;AAEzE,YAAW,MAAM,KAAK,QAAQ;EAE5B,MAAM,YAAY,kBAAK,QAAQ,KAAK,EAAE,UAAU,CAAC;EAEjD,MAAM,QAAQ,MAAM,OAAO;EAG3B,MAAM,WAAW,OAAO,OAAO,MAAM,CAAC,OAAO,CAAC,UAAU;AACtD,UAAO,0BAAS,WAAW,MAAM;EAClC,EAAC;AAEF,YAAU,KAAK,GAAG,SAAS;CAC5B;AAED,QAAO;AACR"}
@@ -1,4 +1,4 @@
1
- import { Endpoint } from "./Endpoint-B70_KKhu.mjs";
1
+ import { Endpoint } from "./Endpoint-CuOEswxJ.mjs";
2
2
  import path from "node:path";
3
3
  import fg from "fast-glob";
4
4
 
@@ -80,4 +80,4 @@ async function getEndpointsFromRoutes(routes, cwd) {
80
80
 
81
81
  //#endregion
82
82
  export { getEndpointsFromRoutes, getProjectRoot };
83
- //# sourceMappingURL=helpers-C3B2lVrM.mjs.map
83
+ //# sourceMappingURL=helpers-ByRTDO_m.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers-C3B2lVrM.mjs","names":["cwd: string","routes: string[]","endpoints: Endpoint<string, HttpMethod, any, any, TServices>[]"],"sources":["../src/endpoints/helpers.ts"],"sourcesContent":["import path from 'node:path';\nimport fg from 'fast-glob';\nimport { Endpoint } from './Endpoint';\n\nimport type { Service } from '@geekmidas/services';\nimport type { HttpMethod } from '../types';\n\n// Re-export utility functions\n\n/**\n * Recursively finds the project root directory by looking for lock files.\n * Traverses up the directory tree until it finds a package manager lock file.\n *\n * @param cwd - The current working directory to start searching from\n * @returns Promise resolving to the absolute path of the project root\n *\n * @example\n * ```typescript\n * const projectRoot = await getProjectRoot(process.cwd());\n * console.log(`Project root: ${projectRoot}`);\n * // Output: Project root: /Users/user/my-project\n * ```\n */\nexport async function getProjectRoot(cwd: string): Promise<string> {\n if (cwd === '/') {\n return cwd;\n }\n\n const stream = fg.stream(\n ['yarn.lock', 'pnpm-lock.yaml', 'package-lock.json', 'deno.lock'],\n { dot: true, cwd },\n );\n\n let isRoot = false;\n\n for await (const _ of stream) {\n isRoot = true;\n break;\n }\n\n if (isRoot) {\n return cwd;\n }\n\n return getProjectRoot(path.resolve(cwd, '..'));\n}\n\n/**\n * Discovers and imports all Endpoint instances from the specified route patterns.\n * Uses fast-glob to find files matching the patterns and extracts exported Endpoints.\n *\n * @template TServices - Array of service types used by the endpoints\n * @param routes - Array of glob patterns to match route files (e.g., ['src/routes/*.ts'])\n * @param cwd - The current working directory to resolve paths from\n * @returns Promise resolving to an array of Endpoint instances found in the matched files\n *\n * @example\n * ```typescript\n * // Find all endpoints in the routes directory\n * const endpoints = await getEndpointsFromRoutes(\n * ['src/routes/**\\/*.ts'],\n * process.cwd()\n * );\n *\n * // Register endpoints with your server\n * for (const endpoint of endpoints) {\n * server.register(endpoint);\n * }\n * ```\n *\n * @remarks\n * - Only exports that are valid Endpoint instances are included\n * - Files are imported dynamically, so they must be valid ES modules\n * - The function filters out non-Endpoint exports automatically\n */\nexport async function getEndpointsFromRoutes<TServices extends Service[]>(\n routes: string[],\n cwd: string,\n): Promise<Endpoint<string, HttpMethod, any, any, TServices>[]> {\n const stream = fg.stream(routes, { cwd });\n\n const endpoints: Endpoint<string, HttpMethod, any, any, TServices>[] = [];\n\n for await (const f of stream) {\n // Resolve the absolute path for the route file\n const routePath = path.resolve(cwd, f.toString());\n // Dynamically import the route module\n const route = await import(routePath);\n\n // Filter exported values to find only Endpoint instances\n const handlers = Object.values(route).filter((value) => {\n return Endpoint.isEndpoint(value);\n }) as unknown as Endpoint<string, HttpMethod, any, any, TServices>[];\n\n endpoints.push(...handlers);\n }\n\n return endpoints;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAuBA,eAAsB,eAAeA,KAA8B;AACjE,KAAI,QAAQ,IACV,QAAO;CAGT,MAAM,SAAS,GAAG,OAChB;EAAC;EAAa;EAAkB;EAAqB;CAAY,GACjE;EAAE,KAAK;EAAM;CAAK,EACnB;CAED,IAAI,SAAS;AAEb,YAAW,MAAM,KAAK,QAAQ;AAC5B,WAAS;AACT;CACD;AAED,KAAI,OACF,QAAO;AAGT,QAAO,eAAe,KAAK,QAAQ,KAAK,KAAK,CAAC;AAC/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BD,eAAsB,uBACpBC,QACAD,KAC8D;CAC9D,MAAM,SAAS,GAAG,OAAO,QAAQ,EAAE,IAAK,EAAC;CAEzC,MAAME,YAAiE,CAAE;AAEzE,YAAW,MAAM,KAAK,QAAQ;EAE5B,MAAM,YAAY,KAAK,QAAQ,KAAK,EAAE,UAAU,CAAC;EAEjD,MAAM,QAAQ,MAAM,OAAO;EAG3B,MAAM,WAAW,OAAO,OAAO,MAAM,CAAC,OAAO,CAAC,UAAU;AACtD,UAAO,SAAS,WAAW,MAAM;EAClC,EAAC;AAEF,YAAU,KAAK,GAAG,SAAS;CAC5B;AAED,QAAO;AACR"}
1
+ {"version":3,"file":"helpers-ByRTDO_m.mjs","names":["cwd: string","routes: string[]","endpoints: Endpoint<string, HttpMethod, any, any, TServices>[]"],"sources":["../src/endpoints/helpers.ts"],"sourcesContent":["import path from 'node:path';\nimport fg from 'fast-glob';\nimport { Endpoint } from './Endpoint';\n\nimport type { Service } from '@geekmidas/services';\nimport type { HttpMethod } from '../types';\n\n// Re-export utility functions\n\n/**\n * Recursively finds the project root directory by looking for lock files.\n * Traverses up the directory tree until it finds a package manager lock file.\n *\n * @param cwd - The current working directory to start searching from\n * @returns Promise resolving to the absolute path of the project root\n *\n * @example\n * ```typescript\n * const projectRoot = await getProjectRoot(process.cwd());\n * console.log(`Project root: ${projectRoot}`);\n * // Output: Project root: /Users/user/my-project\n * ```\n */\nexport async function getProjectRoot(cwd: string): Promise<string> {\n if (cwd === '/') {\n return cwd;\n }\n\n const stream = fg.stream(\n ['yarn.lock', 'pnpm-lock.yaml', 'package-lock.json', 'deno.lock'],\n { dot: true, cwd },\n );\n\n let isRoot = false;\n\n for await (const _ of stream) {\n isRoot = true;\n break;\n }\n\n if (isRoot) {\n return cwd;\n }\n\n return getProjectRoot(path.resolve(cwd, '..'));\n}\n\n/**\n * Discovers and imports all Endpoint instances from the specified route patterns.\n * Uses fast-glob to find files matching the patterns and extracts exported Endpoints.\n *\n * @template TServices - Array of service types used by the endpoints\n * @param routes - Array of glob patterns to match route files (e.g., ['src/routes/*.ts'])\n * @param cwd - The current working directory to resolve paths from\n * @returns Promise resolving to an array of Endpoint instances found in the matched files\n *\n * @example\n * ```typescript\n * // Find all endpoints in the routes directory\n * const endpoints = await getEndpointsFromRoutes(\n * ['src/routes/**\\/*.ts'],\n * process.cwd()\n * );\n *\n * // Register endpoints with your server\n * for (const endpoint of endpoints) {\n * server.register(endpoint);\n * }\n * ```\n *\n * @remarks\n * - Only exports that are valid Endpoint instances are included\n * - Files are imported dynamically, so they must be valid ES modules\n * - The function filters out non-Endpoint exports automatically\n */\nexport async function getEndpointsFromRoutes<TServices extends Service[]>(\n routes: string[],\n cwd: string,\n): Promise<Endpoint<string, HttpMethod, any, any, TServices>[]> {\n const stream = fg.stream(routes, { cwd });\n\n const endpoints: Endpoint<string, HttpMethod, any, any, TServices>[] = [];\n\n for await (const f of stream) {\n // Resolve the absolute path for the route file\n const routePath = path.resolve(cwd, f.toString());\n // Dynamically import the route module\n const route = await import(routePath);\n\n // Filter exported values to find only Endpoint instances\n const handlers = Object.values(route).filter((value) => {\n return Endpoint.isEndpoint(value);\n }) as unknown as Endpoint<string, HttpMethod, any, any, TServices>[];\n\n endpoints.push(...handlers);\n }\n\n return endpoints;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAuBA,eAAsB,eAAeA,KAA8B;AACjE,KAAI,QAAQ,IACV,QAAO;CAGT,MAAM,SAAS,GAAG,OAChB;EAAC;EAAa;EAAkB;EAAqB;CAAY,GACjE;EAAE,KAAK;EAAM;CAAK,EACnB;CAED,IAAI,SAAS;AAEb,YAAW,MAAM,KAAK,QAAQ;AAC5B,WAAS;AACT;CACD;AAED,KAAI,OACF,QAAO;AAGT,QAAO,eAAe,KAAK,QAAQ,KAAK,KAAK,CAAC;AAC/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BD,eAAsB,uBACpBC,QACAD,KAC8D;CAC9D,MAAM,SAAS,GAAG,OAAO,QAAQ,EAAE,IAAK,EAAC;CAEzC,MAAME,YAAiE,CAAE;AAEzE,YAAW,MAAM,KAAK,QAAQ;EAE5B,MAAM,YAAY,KAAK,QAAQ,KAAK,EAAE,UAAU,CAAC;EAEjD,MAAM,QAAQ,MAAM,OAAO;EAG3B,MAAM,WAAW,OAAO,OAAO,MAAM,CAAC,OAAO,CAAC,UAAU;AACtD,UAAO,SAAS,WAAW,MAAM;EAClC,EAAC;AAEF,YAAU,KAAK,GAAG,SAAS;CAC5B;AAED,QAAO;AACR"}
@@ -1,10 +1,12 @@
1
- import { FunctionBuilder } from "./FunctionBuilder-3jsoFffg.mjs";
1
+ import { FunctionBuilder } from "./FunctionBuilder-Cxx8D2na.mjs";
2
2
  import * as _geekmidas_audit9 from "@geekmidas/audit";
3
3
  import * as _geekmidas_logger8 from "@geekmidas/logger";
4
4
  import * as _geekmidas_schema7 from "@geekmidas/schema";
5
5
 
6
6
  //#region src/functions/index.d.ts
7
7
  declare const f: FunctionBuilder<_geekmidas_schema7.ComposableStandardSchema, undefined, [], _geekmidas_logger8.Logger, undefined, string, undefined, string, undefined, string, _geekmidas_audit9.AuditableAction<string, unknown>>;
8
+ //# sourceMappingURL=index.d.ts.map
9
+
8
10
  //#endregion
9
11
  export { f };
10
- //# sourceMappingURL=index-CFyaRrck.d.mts.map
12
+ //# sourceMappingURL=index-BWzGIj06.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-BWzGIj06.d.mts","names":[],"sources":["../src/functions/index.ts"],"sourcesContent":[],"mappings":";;;;;;cASa,GAAC,gBAAwB,kBAAA,CAAxB,wBAAA,iBAAA,kBAAA,CAAA,MAAA,2DAAA,iBAAA,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { FunctionBuilder } from "./FunctionBuilder-CJBzzXL3.cjs";
2
+ import * as _geekmidas_audit9 from "@geekmidas/audit";
3
+ import * as _geekmidas_logger8 from "@geekmidas/logger";
4
+ import * as _geekmidas_schema7 from "@geekmidas/schema";
5
+
6
+ //#region src/functions/index.d.ts
7
+ declare const f: FunctionBuilder<_geekmidas_schema7.ComposableStandardSchema, undefined, [], _geekmidas_logger8.Logger, undefined, string, undefined, string, undefined, string, _geekmidas_audit9.AuditableAction<string, unknown>>;
8
+ //# sourceMappingURL=index.d.ts.map
9
+
10
+ //#endregion
11
+ export { f };
12
+ //# sourceMappingURL=index-SI4V0XwK.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-SI4V0XwK.d.cts","names":[],"sources":["../src/functions/index.ts"],"sourcesContent":[],"mappings":";;;;;;cASa,GAAC,gBAAwB,kBAAA,CAAxB,wBAAA,iBAAA,kBAAA,CAAA,MAAA,2DAAA,iBAAA,CAAA"}
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_Construct = require('./Construct-BYSPikVm.cjs');
1
+ const require_Construct = require('./Construct-Ba5cMxib.cjs');
2
2
 
3
3
  exports.Construct = require_Construct.Construct;
4
4
  exports.ConstructType = require_Construct.ConstructType;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Construct, ConstructType } from "./Construct-Dkd8Kvc9.cjs";
2
- import { HttpMethod, LowerHttpMethod, RemoveUndefined } from "./types-Bp9ysFXd.cjs";
1
+ import { Construct, ConstructType } from "./Construct-C4rPE67v.cjs";
2
+ import { HttpMethod, LowerHttpMethod, RemoveUndefined } from "./types-B5H3piDg.cjs";
3
3
  import { Service, ServiceRecord } from "@geekmidas/services";
4
4
  export { Construct, ConstructType, HttpMethod, LowerHttpMethod, RemoveUndefined, Service, ServiceRecord };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { Construct, ConstructType } from "./Construct-jBKqb-Zi.mjs";
2
- import { HttpMethod, LowerHttpMethod, RemoveUndefined } from "./types-CScirkHt.mjs";
1
+ import { Construct, ConstructType } from "./Construct-XrijZFFh.mjs";
2
+ import { HttpMethod, LowerHttpMethod, RemoveUndefined } from "./types-DdIlpxAd.mjs";
3
3
  import { Service, ServiceRecord } from "@geekmidas/services";
4
4
  export { Construct, ConstructType, HttpMethod, LowerHttpMethod, RemoveUndefined, Service, ServiceRecord };
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { Construct, ConstructType } from "./Construct-LWeB1rSQ.mjs";
1
+ import { Construct, ConstructType } from "./Construct-DdyGHuag.mjs";
2
2
 
3
3
  export { Construct, ConstructType };
@@ -12,10 +12,12 @@ function parseHonoQuery(c) {
12
12
  let current = result;
13
13
  for (let i = 0; i < parts.length - 1; i++) {
14
14
  const part = parts[i];
15
+ if (!part) continue;
15
16
  if (!current[part] || typeof current[part] !== "object" || Array.isArray(current[part])) current[part] = {};
16
17
  current = current[part];
17
18
  }
18
19
  const lastPart = parts[parts.length - 1];
20
+ if (!lastPart) continue;
19
21
  const multipleValues = c.req.queries(key);
20
22
  if (multipleValues && multipleValues.length > 1) current[lastPart] = multipleValues;
21
23
  else current[lastPart] = value;
@@ -34,4 +36,4 @@ Object.defineProperty(exports, 'parseHonoQuery', {
34
36
  return parseHonoQuery;
35
37
  }
36
38
  });
37
- //# sourceMappingURL=parseHonoQuery-CT8Cvin-.cjs.map
39
+ //# sourceMappingURL=parseHonoQuery-CZC5_97v.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseHonoQuery-CZC5_97v.cjs","names":["c: Context","result: Record<string, any>"],"sources":["../src/endpoints/parseHonoQuery.ts"],"sourcesContent":["import type { Context } from 'hono';\n\n/**\n * Parse Hono query parameters to handle arrays and nested objects\n * Hono provides c.req.queries() for arrays, but we need to handle dot notation for objects\n */\nexport function parseHonoQuery(c: Context): Record<string, any> {\n const allParams = c.req.query();\n const result: Record<string, any> = {};\n\n // First, handle all query parameters\n for (const [key, value] of Object.entries(allParams)) {\n if (key.includes('.')) {\n // Handle dot notation for objects\n const parts = key.split('.');\n let current = result;\n\n // Navigate/create the nested structure\n for (let i = 0; i < parts.length - 1; i++) {\n const part = parts[i];\n if (!part) continue;\n if (\n !current[part] ||\n typeof current[part] !== 'object' ||\n Array.isArray(current[part])\n ) {\n current[part] = {};\n }\n current = current[part];\n }\n\n // Set the final value, checking for arrays in nested keys\n const lastPart = parts[parts.length - 1];\n if (!lastPart) continue;\n const multipleValues = c.req.queries(key);\n if (multipleValues && multipleValues.length > 1) {\n current[lastPart] = multipleValues;\n } else {\n current[lastPart] = value;\n }\n } else {\n // For regular keys, check if there are multiple values\n const multipleValues = c.req.queries(key);\n if (multipleValues && multipleValues.length > 1) {\n result[key] = multipleValues;\n } else {\n result[key] = value;\n }\n }\n }\n\n return result;\n}\n"],"mappings":";;;;;;AAMA,SAAgB,eAAeA,GAAiC;CAC9D,MAAM,YAAY,EAAE,IAAI,OAAO;CAC/B,MAAMC,SAA8B,CAAE;AAGtC,MAAK,MAAM,CAAC,KAAK,MAAM,IAAI,OAAO,QAAQ,UAAU,CAClD,KAAI,IAAI,SAAS,IAAI,EAAE;EAErB,MAAM,QAAQ,IAAI,MAAM,IAAI;EAC5B,IAAI,UAAU;AAGd,OAAK,IAAI,IAAI,GAAG,IAAI,MAAM,SAAS,GAAG,KAAK;GACzC,MAAM,OAAO,MAAM;AACnB,QAAK,KAAM;AACX,QACG,QAAQ,gBACF,QAAQ,UAAU,YACzB,MAAM,QAAQ,QAAQ,MAAM,CAE5B,SAAQ,QAAQ,CAAE;AAEpB,aAAU,QAAQ;EACnB;EAGD,MAAM,WAAW,MAAM,MAAM,SAAS;AACtC,OAAK,SAAU;EACf,MAAM,iBAAiB,EAAE,IAAI,QAAQ,IAAI;AACzC,MAAI,kBAAkB,eAAe,SAAS,EAC5C,SAAQ,YAAY;MAEpB,SAAQ,YAAY;CAEvB,OAAM;EAEL,MAAM,iBAAiB,EAAE,IAAI,QAAQ,IAAI;AACzC,MAAI,kBAAkB,eAAe,SAAS,EAC5C,QAAO,OAAO;MAEd,QAAO,OAAO;CAEjB;AAGH,QAAO;AACR"}
@@ -11,10 +11,12 @@ function parseHonoQuery(c) {
11
11
  let current = result;
12
12
  for (let i = 0; i < parts.length - 1; i++) {
13
13
  const part = parts[i];
14
+ if (!part) continue;
14
15
  if (!current[part] || typeof current[part] !== "object" || Array.isArray(current[part])) current[part] = {};
15
16
  current = current[part];
16
17
  }
17
18
  const lastPart = parts[parts.length - 1];
19
+ if (!lastPart) continue;
18
20
  const multipleValues = c.req.queries(key);
19
21
  if (multipleValues && multipleValues.length > 1) current[lastPart] = multipleValues;
20
22
  else current[lastPart] = value;
@@ -28,4 +30,4 @@ function parseHonoQuery(c) {
28
30
 
29
31
  //#endregion
30
32
  export { parseHonoQuery };
31
- //# sourceMappingURL=parseHonoQuery-CwFKw2ua.mjs.map
33
+ //# sourceMappingURL=parseHonoQuery-DDgIkTO4.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseHonoQuery-DDgIkTO4.mjs","names":["c: Context","result: Record<string, any>"],"sources":["../src/endpoints/parseHonoQuery.ts"],"sourcesContent":["import type { Context } from 'hono';\n\n/**\n * Parse Hono query parameters to handle arrays and nested objects\n * Hono provides c.req.queries() for arrays, but we need to handle dot notation for objects\n */\nexport function parseHonoQuery(c: Context): Record<string, any> {\n const allParams = c.req.query();\n const result: Record<string, any> = {};\n\n // First, handle all query parameters\n for (const [key, value] of Object.entries(allParams)) {\n if (key.includes('.')) {\n // Handle dot notation for objects\n const parts = key.split('.');\n let current = result;\n\n // Navigate/create the nested structure\n for (let i = 0; i < parts.length - 1; i++) {\n const part = parts[i];\n if (!part) continue;\n if (\n !current[part] ||\n typeof current[part] !== 'object' ||\n Array.isArray(current[part])\n ) {\n current[part] = {};\n }\n current = current[part];\n }\n\n // Set the final value, checking for arrays in nested keys\n const lastPart = parts[parts.length - 1];\n if (!lastPart) continue;\n const multipleValues = c.req.queries(key);\n if (multipleValues && multipleValues.length > 1) {\n current[lastPart] = multipleValues;\n } else {\n current[lastPart] = value;\n }\n } else {\n // For regular keys, check if there are multiple values\n const multipleValues = c.req.queries(key);\n if (multipleValues && multipleValues.length > 1) {\n result[key] = multipleValues;\n } else {\n result[key] = value;\n }\n }\n }\n\n return result;\n}\n"],"mappings":";;;;;AAMA,SAAgB,eAAeA,GAAiC;CAC9D,MAAM,YAAY,EAAE,IAAI,OAAO;CAC/B,MAAMC,SAA8B,CAAE;AAGtC,MAAK,MAAM,CAAC,KAAK,MAAM,IAAI,OAAO,QAAQ,UAAU,CAClD,KAAI,IAAI,SAAS,IAAI,EAAE;EAErB,MAAM,QAAQ,IAAI,MAAM,IAAI;EAC5B,IAAI,UAAU;AAGd,OAAK,IAAI,IAAI,GAAG,IAAI,MAAM,SAAS,GAAG,KAAK;GACzC,MAAM,OAAO,MAAM;AACnB,QAAK,KAAM;AACX,QACG,QAAQ,gBACF,QAAQ,UAAU,YACzB,MAAM,QAAQ,QAAQ,MAAM,CAE5B,SAAQ,QAAQ,CAAE;AAEpB,aAAU,QAAQ;EACnB;EAGD,MAAM,WAAW,MAAM,MAAM,SAAS;AACtC,OAAK,SAAU;EACf,MAAM,iBAAiB,EAAE,IAAI,QAAQ,IAAI;AACzC,MAAI,kBAAkB,eAAe,SAAS,EAC5C,SAAQ,YAAY;MAEpB,SAAQ,YAAY;CAEvB,OAAM;EAEL,MAAM,iBAAiB,EAAE,IAAI,QAAQ,IAAI;AACzC,MAAI,kBAAkB,eAAe,SAAS,EAC5C,QAAO,OAAO;MAEd,QAAO,OAAO;CAEjB;AAGH,QAAO;AACR"}
@@ -18,10 +18,12 @@ function parseQueryParams(queryParams) {
18
18
  let current = result;
19
19
  for (let i = 0; i < parts.length - 1; i++) {
20
20
  const part = parts[i];
21
+ if (!part) continue;
21
22
  if (!current[part] || typeof current[part] !== "object" || Array.isArray(current[part])) current[part] = {};
22
23
  current = current[part];
23
24
  }
24
25
  const lastPart = parts[parts.length - 1];
26
+ if (!lastPart) continue;
25
27
  current[lastPart] = value;
26
28
  } else result[key] = value;
27
29
  }
@@ -35,4 +37,4 @@ Object.defineProperty(exports, 'parseQueryParams', {
35
37
  return parseQueryParams;
36
38
  }
37
39
  });
38
- //# sourceMappingURL=parseQueryParams-CwvXXwkW.cjs.map
40
+ //# sourceMappingURL=parseQueryParams-BSNkjmZ9.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseQueryParams-BSNkjmZ9.cjs","names":["queryParams: Record<string, string | string[] | undefined> | null","result: Record<string, any>"],"sources":["../src/endpoints/parseQueryParams.ts"],"sourcesContent":["/**\n * Parse query parameters from a flat object into a nested structure\n * Handles arrays (multiple values with same key) and objects (dot notation)\n *\n * @example\n * parseQueryParams({ 'tags': ['a', 'b'], 'filter.name': 'john' })\n * // Returns: { tags: ['a', 'b'], filter: { name: 'john' } }\n */\nexport function parseQueryParams(\n queryParams: Record<string, string | string[] | undefined> | null,\n): Record<string, any> {\n if (!queryParams) {\n return {};\n }\n\n const result: Record<string, any> = {};\n\n for (const [key, value] of Object.entries(queryParams)) {\n if (value === undefined) {\n continue;\n }\n\n // Check if the key contains dot notation\n if (key.includes('.')) {\n const parts = key.split('.');\n let current = result;\n\n // Navigate/create the nested structure\n for (let i = 0; i < parts.length - 1; i++) {\n const part = parts[i];\n if (!part) continue;\n if (\n !current[part] ||\n typeof current[part] !== 'object' ||\n Array.isArray(current[part])\n ) {\n current[part] = {};\n }\n current = current[part];\n }\n\n // Set the final value\n const lastPart = parts[parts.length - 1];\n if (!lastPart) continue;\n current[lastPart] = value;\n } else {\n // Simple key, just assign the value\n result[key] = value;\n }\n }\n\n return result;\n}\n"],"mappings":";;;;;;;;;;AAQA,SAAgB,iBACdA,aACqB;AACrB,MAAK,YACH,QAAO,CAAE;CAGX,MAAMC,SAA8B,CAAE;AAEtC,MAAK,MAAM,CAAC,KAAK,MAAM,IAAI,OAAO,QAAQ,YAAY,EAAE;AACtD,MAAI,iBACF;AAIF,MAAI,IAAI,SAAS,IAAI,EAAE;GACrB,MAAM,QAAQ,IAAI,MAAM,IAAI;GAC5B,IAAI,UAAU;AAGd,QAAK,IAAI,IAAI,GAAG,IAAI,MAAM,SAAS,GAAG,KAAK;IACzC,MAAM,OAAO,MAAM;AACnB,SAAK,KAAM;AACX,SACG,QAAQ,gBACF,QAAQ,UAAU,YACzB,MAAM,QAAQ,QAAQ,MAAM,CAE5B,SAAQ,QAAQ,CAAE;AAEpB,cAAU,QAAQ;GACnB;GAGD,MAAM,WAAW,MAAM,MAAM,SAAS;AACtC,QAAK,SAAU;AACf,WAAQ,YAAY;EACrB,MAEC,QAAO,OAAO;CAEjB;AAED,QAAO;AACR"}
@@ -17,10 +17,12 @@ function parseQueryParams(queryParams) {
17
17
  let current = result;
18
18
  for (let i = 0; i < parts.length - 1; i++) {
19
19
  const part = parts[i];
20
+ if (!part) continue;
20
21
  if (!current[part] || typeof current[part] !== "object" || Array.isArray(current[part])) current[part] = {};
21
22
  current = current[part];
22
23
  }
23
24
  const lastPart = parts[parts.length - 1];
25
+ if (!lastPart) continue;
24
26
  current[lastPart] = value;
25
27
  } else result[key] = value;
26
28
  }
@@ -29,4 +31,4 @@ function parseQueryParams(queryParams) {
29
31
 
30
32
  //#endregion
31
33
  export { parseQueryParams };
32
- //# sourceMappingURL=parseQueryParams-CHINupbZ.mjs.map
34
+ //# sourceMappingURL=parseQueryParams-UMTRnRrW.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseQueryParams-UMTRnRrW.mjs","names":["queryParams: Record<string, string | string[] | undefined> | null","result: Record<string, any>"],"sources":["../src/endpoints/parseQueryParams.ts"],"sourcesContent":["/**\n * Parse query parameters from a flat object into a nested structure\n * Handles arrays (multiple values with same key) and objects (dot notation)\n *\n * @example\n * parseQueryParams({ 'tags': ['a', 'b'], 'filter.name': 'john' })\n * // Returns: { tags: ['a', 'b'], filter: { name: 'john' } }\n */\nexport function parseQueryParams(\n queryParams: Record<string, string | string[] | undefined> | null,\n): Record<string, any> {\n if (!queryParams) {\n return {};\n }\n\n const result: Record<string, any> = {};\n\n for (const [key, value] of Object.entries(queryParams)) {\n if (value === undefined) {\n continue;\n }\n\n // Check if the key contains dot notation\n if (key.includes('.')) {\n const parts = key.split('.');\n let current = result;\n\n // Navigate/create the nested structure\n for (let i = 0; i < parts.length - 1; i++) {\n const part = parts[i];\n if (!part) continue;\n if (\n !current[part] ||\n typeof current[part] !== 'object' ||\n Array.isArray(current[part])\n ) {\n current[part] = {};\n }\n current = current[part];\n }\n\n // Set the final value\n const lastPart = parts[parts.length - 1];\n if (!lastPart) continue;\n current[lastPart] = value;\n } else {\n // Simple key, just assign the value\n result[key] = value;\n }\n }\n\n return result;\n}\n"],"mappings":";;;;;;;;;AAQA,SAAgB,iBACdA,aACqB;AACrB,MAAK,YACH,QAAO,CAAE;CAGX,MAAMC,SAA8B,CAAE;AAEtC,MAAK,MAAM,CAAC,KAAK,MAAM,IAAI,OAAO,QAAQ,YAAY,EAAE;AACtD,MAAI,iBACF;AAIF,MAAI,IAAI,SAAS,IAAI,EAAE;GACrB,MAAM,QAAQ,IAAI,MAAM,IAAI;GAC5B,IAAI,UAAU;AAGd,QAAK,IAAI,IAAI,GAAG,IAAI,MAAM,SAAS,GAAG,KAAK;IACzC,MAAM,OAAO,MAAM;AACnB,SAAK,KAAM;AACX,SACG,QAAQ,gBACF,QAAQ,UAAU,YACzB,MAAM,QAAQ,QAAQ,MAAM,CAE5B,SAAQ,QAAQ,CAAE;AAEpB,cAAU,QAAQ;GACnB;GAGD,MAAM,WAAW,MAAM,MAAM,SAAS;AACtC,QAAK,SAAU;AACf,WAAQ,YAAY;EACrB,MAEC,QAAO,OAAO;CAEjB;AAED,QAAO;AACR"}
@@ -1,4 +1,4 @@
1
- import { Construct } from "./Construct-Dkd8Kvc9.cjs";
1
+ import { Construct } from "./Construct-C4rPE67v.cjs";
2
2
  import { AuditStorage } from "@geekmidas/audit";
3
3
  import { EventPublisher, MappedEvent } from "@geekmidas/events";
4
4
  import { Logger } from "@geekmidas/logger";
@@ -7,8 +7,10 @@ import { StandardSchemaV1 } from "@standard-schema/spec";
7
7
  import { InferStandardSchema } from "@geekmidas/schema";
8
8
 
9
9
  //#region src/publisher.d.ts
10
- declare function publishEvents<T extends EventPublisher<any> | undefined, OutSchema extends StandardSchemaV1 | undefined = undefined, TServiceName extends string = string, TPublisherService extends Service<TServiceName, T> | undefined = undefined>(logger: Logger, serviceDiscovery: ServiceDiscovery<any, any>, ev: MappedEvent<T, OutSchema>[], response: InferStandardSchema<OutSchema>, publisherService: TPublisherService): Promise<void>;
10
+ declare function publishEvents<T extends EventPublisher<any> | undefined, OutSchema extends StandardSchemaV1 | undefined = undefined, TServiceName extends string = string, TPublisherService extends Service<TServiceName, T> | undefined = undefined>(logger: Logger, serviceDiscovery: ServiceDiscovery<any, any>, ev: MappedEvent<T, OutSchema>[] | undefined, response: InferStandardSchema<OutSchema>, publisherService: TPublisherService): Promise<void>;
11
11
  declare function publishConstructEvents<T extends EventPublisher<any> | undefined, OutSchema extends StandardSchemaV1 | undefined = undefined, TServiceName extends string = string, TServices extends Service[] = [], TAuditStorageServiceName extends string = string, TAuditStorage extends AuditStorage | undefined = undefined>(construct: Construct<Logger, TServiceName, T, OutSchema, TServices, TAuditStorageServiceName, TAuditStorage>, response: InferStandardSchema<OutSchema>, serviceDiscovery: ServiceDiscovery<any, any>, logger?: Logger): Promise<void>;
12
+ //# sourceMappingURL=publisher.d.ts.map
13
+
12
14
  //#endregion
13
15
  export { publishConstructEvents, publishEvents };
14
16
  //# sourceMappingURL=publisher.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publisher.d.cts","names":[],"sources":["../src/publisher.ts"],"sourcesContent":[],"mappings":";;;;;;;;;iBASsB,wBACV,mDACQ,0GAEQ,QAAQ,cAAc,oCAExC,0BACU,gCACd,YAAY,GAAG,oCACT,oBAAoB,8BACZ,oBAAiB;iBA8Cf,iCACV,mDACQ,kGAEA,wFAEI,iDAEX,UACT,QACA,cACA,GACA,WACA,WACA,0BACA,0BAEQ,oBAAoB,8BACZ,qCACV,SAAyB;AA3EnC"}