@geekmidas/constructs 0.0.1 → 0.0.2

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 (205) hide show
  1. package/dist/{AWSLambdaFunction-CpHFE2m6.d.mts → AWSLambdaFunction-CANc3Qo2.d.mts} +3 -3
  2. package/dist/{AWSLambdaFunction-qA5LqPsv.cjs → AWSLambdaFunction-DW9qrBNR.cjs} +2 -2
  3. package/dist/{AWSLambdaFunction-qA5LqPsv.cjs.map → AWSLambdaFunction-DW9qrBNR.cjs.map} +1 -1
  4. package/dist/{AWSLambdaFunction-DWIZYsCy.mjs → AWSLambdaFunction-nic3vzt3.mjs} +2 -2
  5. package/dist/{AWSLambdaFunction-DWIZYsCy.mjs.map → AWSLambdaFunction-nic3vzt3.mjs.map} +1 -1
  6. package/dist/{AWSLambdaSubscriberAdaptor-G8y3YkWj.mjs → AWSLambdaSubscriberAdaptor-BhqrpTVc.mjs} +1 -1
  7. package/dist/{AWSLambdaSubscriberAdaptor-G8y3YkWj.mjs.map → AWSLambdaSubscriberAdaptor-BhqrpTVc.mjs.map} +1 -1
  8. package/dist/{AWSLambdaSubscriberAdaptor-C1wQuucQ.d.mts → AWSLambdaSubscriberAdaptor-C6JYIZxn.d.mts} +2 -2
  9. package/dist/{AWSLambdaSubscriberAdaptor-CmPZ10JF.cjs → AWSLambdaSubscriberAdaptor-ZuQAhW9_.cjs} +1 -1
  10. package/dist/{AWSLambdaSubscriberAdaptor-CmPZ10JF.cjs.map → AWSLambdaSubscriberAdaptor-ZuQAhW9_.cjs.map} +1 -1
  11. package/dist/{AmazonApiGatewayEndpointAdaptor-BoBh7vvD.d.mts → AmazonApiGatewayEndpointAdaptor-DNZLntHj.d.mts} +3 -3
  12. package/dist/{AmazonApiGatewayEndpointAdaptor-i74DEUbc.cjs → AmazonApiGatewayEndpointAdaptor-D_Q_NTMT.cjs} +3 -3
  13. package/dist/{AmazonApiGatewayEndpointAdaptor-i74DEUbc.cjs.map → AmazonApiGatewayEndpointAdaptor-D_Q_NTMT.cjs.map} +1 -1
  14. package/dist/{AmazonApiGatewayEndpointAdaptor-Cx1oqcqh.mjs → AmazonApiGatewayEndpointAdaptor-QzIAnWzS.mjs} +3 -3
  15. package/dist/{AmazonApiGatewayEndpointAdaptor-Cx1oqcqh.mjs.map → AmazonApiGatewayEndpointAdaptor-QzIAnWzS.mjs.map} +1 -1
  16. package/dist/{AmazonApiGatewayV1EndpointAdaptor-CLmBDYsl.mjs → AmazonApiGatewayV1EndpointAdaptor-BF5bGWV1.mjs} +3 -3
  17. package/dist/{AmazonApiGatewayV1EndpointAdaptor-CLmBDYsl.mjs.map → AmazonApiGatewayV1EndpointAdaptor-BF5bGWV1.mjs.map} +1 -1
  18. package/dist/{AmazonApiGatewayV1EndpointAdaptor-GkMAUPL5.cjs → AmazonApiGatewayV1EndpointAdaptor-Bh4tckwd.cjs} +3 -3
  19. package/dist/{AmazonApiGatewayV1EndpointAdaptor-GkMAUPL5.cjs.map → AmazonApiGatewayV1EndpointAdaptor-Bh4tckwd.cjs.map} +1 -1
  20. package/dist/{AmazonApiGatewayV1EndpointAdaptor-EhMd1YqV.d.mts → AmazonApiGatewayV1EndpointAdaptor-DbJa4cpU.d.mts} +4 -4
  21. package/dist/{AmazonApiGatewayV2EndpointAdaptor-3RqegmJC.mjs → AmazonApiGatewayV2EndpointAdaptor-BOaOkLXF.mjs} +3 -3
  22. package/dist/{AmazonApiGatewayV2EndpointAdaptor-3RqegmJC.mjs.map → AmazonApiGatewayV2EndpointAdaptor-BOaOkLXF.mjs.map} +1 -1
  23. package/dist/{AmazonApiGatewayV2EndpointAdaptor-zfd1gqXA.d.mts → AmazonApiGatewayV2EndpointAdaptor-BlKn-KJ6.d.mts} +4 -4
  24. package/dist/{AmazonApiGatewayV2EndpointAdaptor-YlFoFSS9.cjs → AmazonApiGatewayV2EndpointAdaptor-L4Ywv3Pk.cjs} +3 -3
  25. package/dist/{AmazonApiGatewayV2EndpointAdaptor-YlFoFSS9.cjs.map → AmazonApiGatewayV2EndpointAdaptor-L4Ywv3Pk.cjs.map} +1 -1
  26. package/dist/{BaseFunctionBuilder-BFPVGnKi.d.mts → BaseFunctionBuilder-Dda7AiID.d.mts} +2 -2
  27. package/dist/{Construct-DIguIyw4.d.mts → Construct-DdyYENBD.d.mts} +1 -1
  28. package/dist/Construct.d.mts +1 -1
  29. package/dist/{Cron-Bgs6EQOb.mjs → Cron-BgJo6EW6.mjs} +1 -1
  30. package/dist/{Cron-Bgs6EQOb.mjs.map → Cron-BgJo6EW6.mjs.map} +1 -1
  31. package/dist/{Cron-ztnK6zgU.d.cts → Cron-BxMXmn4t.d.cts} +1 -1
  32. package/dist/{Cron-DQiCj3ef.cjs → Cron-JYYGj5ik.cjs} +1 -1
  33. package/dist/{Cron-DQiCj3ef.cjs.map → Cron-JYYGj5ik.cjs.map} +1 -1
  34. package/dist/{Cron-FpAw03k6.d.mts → Cron-NDBlJhb3.d.mts} +2 -2
  35. package/dist/{CronBuilder-DIBqJkh_.cjs → CronBuilder-BDDS21OP.cjs} +2 -2
  36. package/dist/{CronBuilder-DIBqJkh_.cjs.map → CronBuilder-BDDS21OP.cjs.map} +1 -1
  37. package/dist/{CronBuilder-Cje9K8lZ.d.cts → CronBuilder-C6K5AbIO.d.cts} +2 -2
  38. package/dist/{CronBuilder-DecAvvcn.mjs → CronBuilder-DVuhB_kA.mjs} +2 -2
  39. package/dist/{CronBuilder-DecAvvcn.mjs.map → CronBuilder-DVuhB_kA.mjs.map} +1 -1
  40. package/dist/{CronBuilder-B2clNQSP.d.mts → CronBuilder-s5x8V8hH.d.mts} +4 -4
  41. package/dist/{Endpoint-BaHC9y4Z.cjs → Endpoint-D1nnEsBU.cjs} +1 -1
  42. package/dist/{Endpoint-BaHC9y4Z.cjs.map → Endpoint-D1nnEsBU.cjs.map} +1 -1
  43. package/dist/{Endpoint-ierdM62O.mjs → Endpoint-DNlmybXV.mjs} +1 -1
  44. package/dist/{Endpoint-ierdM62O.mjs.map → Endpoint-DNlmybXV.mjs.map} +1 -1
  45. package/dist/{Endpoint-DCn53Vd8.d.mts → Endpoint-DYUjJdEs.d.mts} +3 -3
  46. package/dist/{EndpointBuilder-CP9RGwZH.d.cts → EndpointBuilder-1fw103D6.d.cts} +1 -1
  47. package/dist/{EndpointBuilder-Bfnb2oJr.d.mts → EndpointBuilder-B2iScUND.d.mts} +4 -4
  48. package/dist/{EndpointBuilder-BHFSpbPR.cjs → EndpointBuilder-BhRd626m.cjs} +2 -2
  49. package/dist/{EndpointBuilder-BHFSpbPR.cjs.map → EndpointBuilder-BhRd626m.cjs.map} +1 -1
  50. package/dist/{EndpointBuilder-BLUsoK3l.mjs → EndpointBuilder-CpjIMYb0.mjs} +2 -2
  51. package/dist/{EndpointBuilder-BLUsoK3l.mjs.map → EndpointBuilder-CpjIMYb0.mjs.map} +1 -1
  52. package/dist/{EndpointFactory-CXX4E6Gx.cjs → EndpointFactory-ChmVHWim.cjs} +2 -2
  53. package/dist/{EndpointFactory-CXX4E6Gx.cjs.map → EndpointFactory-ChmVHWim.cjs.map} +1 -1
  54. package/dist/{EndpointFactory-D2zgWbXZ.d.cts → EndpointFactory-D576BhaH.d.cts} +2 -2
  55. package/dist/{EndpointFactory-BYdDVCNj.mjs → EndpointFactory-DLpEbLzL.mjs} +2 -2
  56. package/dist/{EndpointFactory-BYdDVCNj.mjs.map → EndpointFactory-DLpEbLzL.mjs.map} +1 -1
  57. package/dist/{EndpointFactory-CNtMXgIh.d.mts → EndpointFactory-DZQpM-9K.d.mts} +3 -3
  58. package/dist/{Function-BsBxc2wA.d.mts → Function-C98H68DW.d.mts} +2 -2
  59. package/dist/{FunctionBuilder-C-PfPN3r.d.mts → FunctionBuilder-DBwR7jg7.d.mts} +4 -4
  60. package/dist/{FunctionExecutionWrapper-DvglBBjE.d.mts → FunctionExecutionWrapper-B0V7V8YS.d.mts} +2 -2
  61. package/dist/{FunctionExecutionWrapper-XGrSAAPD.mjs → FunctionExecutionWrapper-CPzSbfaI.mjs} +1 -1
  62. package/dist/{FunctionExecutionWrapper-XGrSAAPD.mjs.map → FunctionExecutionWrapper-CPzSbfaI.mjs.map} +1 -1
  63. package/dist/{FunctionExecutionWrapper-CElXEjPe.cjs → FunctionExecutionWrapper-UzfHDM2R.cjs} +1 -1
  64. package/dist/{FunctionExecutionWrapper-CElXEjPe.cjs.map → FunctionExecutionWrapper-UzfHDM2R.cjs.map} +1 -1
  65. package/dist/{HonoEndpointAdaptor-B0IO1zj2.d.mts → HonoEndpointAdaptor-01cH100U.d.mts} +5 -5
  66. package/dist/{HonoEndpointAdaptor-B4snrp7v.cjs → HonoEndpointAdaptor-6LERutxi.cjs} +4 -4
  67. package/dist/{HonoEndpointAdaptor-B4snrp7v.cjs.map → HonoEndpointAdaptor-6LERutxi.cjs.map} +1 -1
  68. package/dist/{HonoEndpointAdaptor-D-M4-6Tf.mjs → HonoEndpointAdaptor-fs2928iO.mjs} +4 -4
  69. package/dist/{HonoEndpointAdaptor-D-M4-6Tf.mjs.map → HonoEndpointAdaptor-fs2928iO.mjs.map} +1 -1
  70. package/dist/{HonoEndpointAdaptor-B6lW9Q1k.d.cts → HonoEndpointAdaptor-ua6mp3gt.d.cts} +3 -3
  71. package/dist/{Subscriber-BwuCaC9G.mjs → Subscriber-BTwKnz3c.mjs} +1 -1
  72. package/dist/{Subscriber-BwuCaC9G.mjs.map → Subscriber-BTwKnz3c.mjs.map} +1 -1
  73. package/dist/{Subscriber-THGsj7Iy.d.mts → Subscriber-BxH6n8zQ.d.mts} +2 -2
  74. package/dist/{Subscriber-iMRFG7ba.cjs → Subscriber-G7EUI3yc.cjs} +1 -1
  75. package/dist/{Subscriber-iMRFG7ba.cjs.map → Subscriber-G7EUI3yc.cjs.map} +1 -1
  76. package/dist/{SubscriberBuilder-CiPxgnKT.d.mts → SubscriberBuilder-BpSDPzBz.d.mts} +2 -2
  77. package/dist/{SubscriberBuilder-Dhz0C_t-.mjs → SubscriberBuilder-C1me_972.mjs} +2 -2
  78. package/dist/{SubscriberBuilder-Dhz0C_t-.mjs.map → SubscriberBuilder-C1me_972.mjs.map} +1 -1
  79. package/dist/{SubscriberBuilder-wthr-FL9.cjs → SubscriberBuilder-C6iZvuDe.cjs} +2 -2
  80. package/dist/{SubscriberBuilder-wthr-FL9.cjs.map → SubscriberBuilder-C6iZvuDe.cjs.map} +1 -1
  81. package/dist/{SubscriberBuilder-DuIgxuzc.d.cts → SubscriberBuilder-DgljKtYu.d.cts} +1 -1
  82. package/dist/TestEndpointAdaptor-B4SvJvK-.cjs +54 -0
  83. package/dist/TestEndpointAdaptor-B4SvJvK-.cjs.map +1 -0
  84. package/dist/TestEndpointAdaptor-CHcgyI3V.d.cts +24 -0
  85. package/dist/TestEndpointAdaptor-CelYsQi0.mjs +48 -0
  86. package/dist/TestEndpointAdaptor-CelYsQi0.mjs.map +1 -0
  87. package/dist/TestEndpointAdaptor-Da0ooGt2.d.mts +24 -0
  88. package/dist/adaptors/aws.cjs +8 -8
  89. package/dist/adaptors/aws.d.cts +1 -1
  90. package/dist/adaptors/aws.d.mts +14 -14
  91. package/dist/adaptors/aws.mjs +8 -8
  92. package/dist/adaptors/hono.cjs +4 -4
  93. package/dist/adaptors/hono.d.cts +2 -2
  94. package/dist/adaptors/hono.d.mts +8 -8
  95. package/dist/adaptors/hono.mjs +4 -4
  96. package/dist/adaptors/testing.cjs +10 -0
  97. package/dist/adaptors/testing.d.cts +9 -0
  98. package/dist/adaptors/testing.d.mts +9 -0
  99. package/dist/adaptors/testing.mjs +10 -0
  100. package/dist/crons/Cron.cjs +1 -1
  101. package/dist/crons/Cron.d.cts +2 -2
  102. package/dist/crons/Cron.d.mts +6 -6
  103. package/dist/crons/Cron.mjs +1 -1
  104. package/dist/crons/CronBuilder.cjs +2 -2
  105. package/dist/crons/CronBuilder.d.cts +3 -3
  106. package/dist/crons/CronBuilder.d.mts +7 -7
  107. package/dist/crons/CronBuilder.mjs +2 -2
  108. package/dist/crons/index.cjs +2 -2
  109. package/dist/crons/index.d.cts +7 -7
  110. package/dist/crons/index.d.mts +11 -11
  111. package/dist/crons/index.mjs +2 -2
  112. package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.cjs +2 -2
  113. package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.d.cts +1 -1
  114. package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.d.mts +8 -8
  115. package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.mjs +2 -2
  116. package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.cjs +4 -4
  117. package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.d.cts +1 -1
  118. package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.d.mts +9 -9
  119. package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.mjs +4 -4
  120. package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.cjs +4 -4
  121. package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.d.cts +1 -1
  122. package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.d.mts +9 -9
  123. package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.mjs +4 -4
  124. package/dist/endpoints/Endpoint.cjs +1 -1
  125. package/dist/endpoints/Endpoint.d.cts +1 -1
  126. package/dist/endpoints/Endpoint.d.mts +7 -7
  127. package/dist/endpoints/Endpoint.mjs +1 -1
  128. package/dist/endpoints/EndpointBuilder.cjs +2 -2
  129. package/dist/endpoints/EndpointBuilder.d.cts +2 -2
  130. package/dist/endpoints/EndpointBuilder.d.mts +8 -8
  131. package/dist/endpoints/EndpointBuilder.mjs +2 -2
  132. package/dist/endpoints/EndpointFactory.cjs +3 -3
  133. package/dist/endpoints/EndpointFactory.d.cts +3 -3
  134. package/dist/endpoints/EndpointFactory.d.mts +9 -9
  135. package/dist/endpoints/EndpointFactory.mjs +3 -3
  136. package/dist/endpoints/HonoEndpointAdaptor.cjs +4 -4
  137. package/dist/endpoints/HonoEndpointAdaptor.d.cts +2 -2
  138. package/dist/endpoints/HonoEndpointAdaptor.d.mts +8 -8
  139. package/dist/endpoints/HonoEndpointAdaptor.mjs +4 -4
  140. package/dist/endpoints/TestEndpointAdaptor.cjs +4 -48
  141. package/dist/endpoints/TestEndpointAdaptor.d.cts +5 -25
  142. package/dist/endpoints/TestEndpointAdaptor.d.mts +9 -29
  143. package/dist/endpoints/TestEndpointAdaptor.mjs +4 -47
  144. package/dist/endpoints/helpers.cjs +2 -2
  145. package/dist/endpoints/helpers.d.cts +1 -1
  146. package/dist/endpoints/helpers.d.mts +7 -7
  147. package/dist/endpoints/helpers.mjs +2 -2
  148. package/dist/endpoints/index.cjs +3 -3
  149. package/dist/endpoints/index.d.cts +5 -5
  150. package/dist/endpoints/index.d.mts +11 -11
  151. package/dist/endpoints/index.mjs +3 -3
  152. package/dist/endpoints/parseHonoQuery.cjs +1 -1
  153. package/dist/endpoints/parseHonoQuery.mjs +1 -1
  154. package/dist/endpoints/parseQueryParams.cjs +1 -1
  155. package/dist/endpoints/parseQueryParams.mjs +1 -1
  156. package/dist/functions/AWSLambdaFunction.cjs +2 -2
  157. package/dist/functions/AWSLambdaFunction.d.mts +4 -4
  158. package/dist/functions/AWSLambdaFunction.mjs +2 -2
  159. package/dist/functions/BaseFunctionBuilder.d.mts +2 -2
  160. package/dist/functions/Function.d.mts +2 -2
  161. package/dist/functions/FunctionBuilder.d.mts +4 -4
  162. package/dist/functions/FunctionExecutionWrapper.cjs +1 -1
  163. package/dist/functions/FunctionExecutionWrapper.d.mts +3 -3
  164. package/dist/functions/FunctionExecutionWrapper.mjs +1 -1
  165. package/dist/functions/TestFunctionAdaptor.d.mts +2 -2
  166. package/dist/functions/index.d.cts +1 -1
  167. package/dist/functions/index.d.mts +5 -5
  168. package/dist/{helpers-DbpO95aE.mjs → helpers-CP7A0U_s.mjs} +2 -2
  169. package/dist/{helpers-DbpO95aE.mjs.map → helpers-CP7A0U_s.mjs.map} +1 -1
  170. package/dist/{helpers-BeGM4pP_.cjs → helpers-CjvCSIF5.cjs} +2 -2
  171. package/dist/{helpers-BeGM4pP_.cjs.map → helpers-CjvCSIF5.cjs.map} +1 -1
  172. package/dist/index-BXTN4mwI.d.mts +9 -0
  173. package/dist/index-zOH9f4sh.d.cts +9 -0
  174. package/dist/index.d.mts +2 -2
  175. package/dist/{parseHonoQuery-DopC24vB.cjs → parseHonoQuery-BiPp8bEJ.cjs} +1 -1
  176. package/dist/{parseHonoQuery-DopC24vB.cjs.map → parseHonoQuery-BiPp8bEJ.cjs.map} +1 -1
  177. package/dist/{parseHonoQuery-znDKBhdE.mjs → parseHonoQuery-yWRoKFFl.mjs} +1 -1
  178. package/dist/{parseHonoQuery-znDKBhdE.mjs.map → parseHonoQuery-yWRoKFFl.mjs.map} +1 -1
  179. package/dist/{parseQueryParams-BzPop4I1.cjs → parseQueryParams-C2EjouGt.cjs} +1 -1
  180. package/dist/{parseQueryParams-BzPop4I1.cjs.map → parseQueryParams-C2EjouGt.cjs.map} +1 -1
  181. package/dist/{parseQueryParams-BJaRh3OB.mjs → parseQueryParams-DSk9xl09.mjs} +1 -1
  182. package/dist/{parseQueryParams-BJaRh3OB.mjs.map → parseQueryParams-DSk9xl09.mjs.map} +1 -1
  183. package/dist/publisher.d.mts +1 -1
  184. package/dist/subscribers/AWSLambdaSubscriberAdaptor.cjs +1 -1
  185. package/dist/subscribers/AWSLambdaSubscriberAdaptor.d.mts +3 -3
  186. package/dist/subscribers/AWSLambdaSubscriberAdaptor.mjs +1 -1
  187. package/dist/subscribers/Subscriber.cjs +1 -1
  188. package/dist/subscribers/Subscriber.d.mts +2 -2
  189. package/dist/subscribers/Subscriber.mjs +1 -1
  190. package/dist/subscribers/SubscriberBuilder.cjs +2 -2
  191. package/dist/subscribers/SubscriberBuilder.d.cts +1 -1
  192. package/dist/subscribers/SubscriberBuilder.d.mts +3 -3
  193. package/dist/subscribers/SubscriberBuilder.mjs +2 -2
  194. package/dist/subscribers/index.cjs +2 -2
  195. package/dist/subscribers/index.d.cts +3 -3
  196. package/dist/subscribers/index.d.mts +5 -5
  197. package/dist/subscribers/index.mjs +2 -2
  198. package/dist/{types-DBKNYvsW.d.mts → types-CVq20-fE.d.mts} +1 -1
  199. package/dist/types.d.mts +1 -1
  200. package/package.json +9 -4
  201. package/src/adaptors/testing.ts +1 -0
  202. package/dist/endpoints/TestEndpointAdaptor.cjs.map +0 -1
  203. package/dist/endpoints/TestEndpointAdaptor.mjs.map +0 -1
  204. package/dist/index-CuGR4L7O.d.mts +0 -9
  205. package/dist/index-Fg3N3EKD.d.cts +0 -9
@@ -4,9 +4,9 @@ require('../Function-CbO2NZx-.cjs');
4
4
  require('../BaseFunctionBuilder-DtO4Nwxm.cjs');
5
5
  require('../FunctionBuilder-DuOeWCAl.cjs');
6
6
  require('../functions-DVDb5wEA.cjs');
7
- require('../Endpoint-BaHC9y4Z.cjs');
8
- require('../helpers-BeGM4pP_.cjs');
9
- require('../parseHonoQuery-DopC24vB.cjs');
10
- const require_HonoEndpointAdaptor = require('../HonoEndpointAdaptor-B4snrp7v.cjs');
7
+ require('../Endpoint-D1nnEsBU.cjs');
8
+ require('../helpers-CjvCSIF5.cjs');
9
+ require('../parseHonoQuery-BiPp8bEJ.cjs');
10
+ const require_HonoEndpointAdaptor = require('../HonoEndpointAdaptor-6LERutxi.cjs');
11
11
 
12
12
  exports.HonoEndpoint = require_HonoEndpointAdaptor.HonoEndpoint;
@@ -3,7 +3,7 @@ import "../types-Bp9ysFXd.cjs";
3
3
  import "../Function-BP58p9Mp.cjs";
4
4
  import "../BaseFunctionBuilder-5QCHkchp.cjs";
5
5
  import "../FunctionBuilder-BS1KgxA_.cjs";
6
- import "../index-Fg3N3EKD.cjs";
6
+ import "../index-zOH9f4sh.cjs";
7
7
  import "../Endpoint-C7z9YJHK.cjs";
8
- import { HonoEndpoint, HonoEndpointOptions } from "../HonoEndpointAdaptor-B6lW9Q1k.cjs";
8
+ import { HonoEndpoint, HonoEndpointOptions } from "../HonoEndpointAdaptor-ua6mp3gt.cjs";
9
9
  export { HonoEndpoint, HonoEndpointOptions };
@@ -1,9 +1,9 @@
1
- import "../Construct-DIguIyw4.mjs";
2
- import "../types-DBKNYvsW.mjs";
3
- import "../Function-BsBxc2wA.mjs";
4
- import "../BaseFunctionBuilder-BFPVGnKi.mjs";
5
- import "../FunctionBuilder-C-PfPN3r.mjs";
6
- import "../index-CuGR4L7O.mjs";
7
- import "../Endpoint-DCn53Vd8.mjs";
8
- import { HonoEndpoint, HonoEndpointOptions } from "../HonoEndpointAdaptor-B0IO1zj2.mjs";
1
+ import "../Construct-DdyYENBD.mjs";
2
+ import "../types-CVq20-fE.mjs";
3
+ import "../Function-C98H68DW.mjs";
4
+ import "../BaseFunctionBuilder-Dda7AiID.mjs";
5
+ import "../FunctionBuilder-DBwR7jg7.mjs";
6
+ import "../index-BXTN4mwI.mjs";
7
+ import "../Endpoint-DYUjJdEs.mjs";
8
+ import { HonoEndpoint, HonoEndpointOptions } from "../HonoEndpointAdaptor-01cH100U.mjs";
9
9
  export { HonoEndpoint, HonoEndpointOptions };
@@ -4,9 +4,9 @@ import "../Function-C5mW-38v.mjs";
4
4
  import "../BaseFunctionBuilder-BPE9JBbT.mjs";
5
5
  import "../FunctionBuilder-CosgPmMl.mjs";
6
6
  import "../functions-mM-jcphA.mjs";
7
- import "../Endpoint-ierdM62O.mjs";
8
- import "../helpers-DbpO95aE.mjs";
9
- import "../parseHonoQuery-znDKBhdE.mjs";
10
- import { HonoEndpoint } from "../HonoEndpointAdaptor-D-M4-6Tf.mjs";
7
+ import "../Endpoint-DNlmybXV.mjs";
8
+ import "../helpers-CP7A0U_s.mjs";
9
+ import "../parseHonoQuery-yWRoKFFl.mjs";
10
+ import { HonoEndpoint } from "../HonoEndpointAdaptor-fs2928iO.mjs";
11
11
 
12
12
  export { HonoEndpoint };
@@ -1,54 +1,10 @@
1
- const require_chunk = require('../chunk-CUT6urMc.cjs');
2
1
  require('../Construct-BSEs6uwW.cjs');
3
- const require_publisher = require('../publisher-lFQleddL.cjs');
2
+ require('../publisher-lFQleddL.cjs');
4
3
  require('../Function-CbO2NZx-.cjs');
5
4
  require('../BaseFunctionBuilder-DtO4Nwxm.cjs');
6
5
  require('../FunctionBuilder-DuOeWCAl.cjs');
7
6
  require('../functions-DVDb5wEA.cjs');
8
- const require_Endpoint = require('../Endpoint-BaHC9y4Z.cjs');
9
- const __geekmidas_envkit = require_chunk.__toESM(require("@geekmidas/envkit"));
10
- const __geekmidas_services = require_chunk.__toESM(require("@geekmidas/services"));
7
+ require('../Endpoint-D1nnEsBU.cjs');
8
+ const require_TestEndpointAdaptor = require('../TestEndpointAdaptor-B4SvJvK-.cjs');
11
9
 
12
- //#region src/endpoints/TestEndpointAdaptor.ts
13
- var TestEndpointAdaptor = class TestEndpointAdaptor {
14
- static getDefaultServiceDiscover(endpoint) {
15
- return __geekmidas_services.ServiceDiscovery.getInstance(endpoint.logger, new __geekmidas_envkit.EnvironmentParser({}));
16
- }
17
- constructor(endpoint, serviceDiscovery = TestEndpointAdaptor.getDefaultServiceDiscover(endpoint)) {
18
- this.endpoint = endpoint;
19
- this.serviceDiscovery = serviceDiscovery;
20
- }
21
- async request(ctx) {
22
- const body = await this.endpoint.parseInput(ctx.body, "body");
23
- const query = await this.endpoint.parseInput(ctx.query, "query");
24
- const params = await this.endpoint.parseInput(ctx.params, "params");
25
- const header = require_Endpoint.Endpoint.createHeaders(ctx.headers);
26
- const logger = this.endpoint.logger.child({
27
- route: this.endpoint.route,
28
- host: ctx.headers.host,
29
- method: this.endpoint.method
30
- });
31
- const session = await this.endpoint.getSession({
32
- logger,
33
- services: ctx.services,
34
- header
35
- });
36
- const response = await this.endpoint.handler({
37
- body,
38
- query,
39
- params,
40
- session,
41
- services: ctx.services,
42
- logger,
43
- header
44
- });
45
- const output = await this.endpoint.parseOutput(response);
46
- ctx.publisher && await this.serviceDiscovery.register([ctx.publisher]);
47
- await require_publisher.publishConstructEvents(this.endpoint, output, this.serviceDiscovery);
48
- return output;
49
- }
50
- };
51
-
52
- //#endregion
53
- exports.TestEndpointAdaptor = TestEndpointAdaptor;
54
- //# sourceMappingURL=TestEndpointAdaptor.cjs.map
10
+ exports.TestEndpointAdaptor = require_TestEndpointAdaptor.TestEndpointAdaptor;
@@ -1,29 +1,9 @@
1
1
  import "../Construct-Bm-PSO2V.cjs";
2
- import { HttpMethod } from "../types-Bp9ysFXd.cjs";
2
+ import "../types-Bp9ysFXd.cjs";
3
3
  import "../Function-BP58p9Mp.cjs";
4
4
  import "../BaseFunctionBuilder-5QCHkchp.cjs";
5
5
  import "../FunctionBuilder-BS1KgxA_.cjs";
6
- import "../index-Fg3N3EKD.cjs";
7
- import { Endpoint, EndpointSchemas } from "../Endpoint-C7z9YJHK.cjs";
8
- import { EventPublisher } from "@geekmidas/events";
9
- import { Logger } from "@geekmidas/logger";
10
- import { Service, ServiceDiscovery, ServiceRecord } from "@geekmidas/services";
11
- import { StandardSchemaV1 } from "@standard-schema/spec";
12
- import { InferComposableStandardSchema, InferStandardSchema } from "@geekmidas/schema";
13
-
14
- //#region src/endpoints/TestEndpointAdaptor.d.ts
15
- declare class TestEndpointAdaptor<TRoute extends string, TMethod extends HttpMethod, TInput extends EndpointSchemas = {}, TOutSchema extends StandardSchemaV1 | undefined = undefined, TServices extends Service[] = [], TLogger extends Logger = Logger, TSession = unknown, TEventPublisher extends EventPublisher<any> | undefined = undefined, TEventPublisherServiceName extends string = string> {
16
- private readonly endpoint;
17
- private serviceDiscovery;
18
- static getDefaultServiceDiscover<TRoute extends string, TMethod extends HttpMethod, TInput extends EndpointSchemas = {}, TOutSchema extends StandardSchemaV1 | undefined = undefined, TServices extends Service[] = [], TLogger extends Logger = Logger, TSession = unknown, TEventPublisher extends EventPublisher<any> | undefined = undefined, TEventPublisherServiceName extends string = string>(endpoint: Endpoint<TRoute, TMethod, TInput, TOutSchema, TServices, TLogger, TSession, TEventPublisher, TEventPublisherServiceName>): ServiceDiscovery<any, Logger>;
19
- constructor(endpoint: Endpoint<TRoute, TMethod, TInput, TOutSchema, TServices, TLogger, TSession, TEventPublisher, TEventPublisherServiceName>, serviceDiscovery?: ServiceDiscovery<any, any>);
20
- request(ctx: TestRequestAdaptor<TInput, TServices, TEventPublisher, TEventPublisherServiceName>): Promise<InferStandardSchema<TOutSchema>>;
21
- }
22
- type TestRequestAdaptor<TInput extends EndpointSchemas = {}, TServices extends Service[] = [], TEventPublisher extends EventPublisher<any> | undefined = undefined, TEventPublisherServiceName extends string = string> = {
23
- services: ServiceRecord<TServices>;
24
- headers: Record<string, string>;
25
- publisher?: Service<TEventPublisherServiceName, TEventPublisher>;
26
- } & InferComposableStandardSchema<TInput>;
27
- //#endregion
28
- export { TestEndpointAdaptor, TestRequestAdaptor };
29
- //# sourceMappingURL=TestEndpointAdaptor.d.cts.map
6
+ import "../index-zOH9f4sh.cjs";
7
+ import "../Endpoint-C7z9YJHK.cjs";
8
+ import { TestEndpointAdaptor, TestRequestAdaptor } from "../TestEndpointAdaptor-CHcgyI3V.cjs";
9
+ export { TestEndpointAdaptor, TestRequestAdaptor };
@@ -1,29 +1,9 @@
1
- import "../Construct-DIguIyw4.mjs";
2
- import { HttpMethod } from "../types-DBKNYvsW.mjs";
3
- import "../Function-BsBxc2wA.mjs";
4
- import "../BaseFunctionBuilder-BFPVGnKi.mjs";
5
- import "../FunctionBuilder-C-PfPN3r.mjs";
6
- import "../index-CuGR4L7O.mjs";
7
- import { Endpoint, EndpointSchemas } from "../Endpoint-DCn53Vd8.mjs";
8
- import { Service, ServiceDiscovery, ServiceRecord } from "@geekmidas/services";
9
- import { EventPublisher } from "@geekmidas/events";
10
- import { Logger } from "@geekmidas/logger";
11
- import { StandardSchemaV1 } from "@standard-schema/spec";
12
- import { InferComposableStandardSchema, InferStandardSchema } from "@geekmidas/schema";
13
-
14
- //#region src/endpoints/TestEndpointAdaptor.d.ts
15
- declare class TestEndpointAdaptor<TRoute extends string, TMethod extends HttpMethod, TInput extends EndpointSchemas = {}, TOutSchema extends StandardSchemaV1 | undefined = undefined, TServices extends Service[] = [], TLogger extends Logger = Logger, TSession = unknown, TEventPublisher extends EventPublisher<any> | undefined = undefined, TEventPublisherServiceName extends string = string> {
16
- private readonly endpoint;
17
- private serviceDiscovery;
18
- static getDefaultServiceDiscover<TRoute extends string, TMethod extends HttpMethod, TInput extends EndpointSchemas = {}, TOutSchema extends StandardSchemaV1 | undefined = undefined, TServices extends Service[] = [], TLogger extends Logger = Logger, TSession = unknown, TEventPublisher extends EventPublisher<any> | undefined = undefined, TEventPublisherServiceName extends string = string>(endpoint: Endpoint<TRoute, TMethod, TInput, TOutSchema, TServices, TLogger, TSession, TEventPublisher, TEventPublisherServiceName>): ServiceDiscovery<any, Logger>;
19
- constructor(endpoint: Endpoint<TRoute, TMethod, TInput, TOutSchema, TServices, TLogger, TSession, TEventPublisher, TEventPublisherServiceName>, serviceDiscovery?: ServiceDiscovery<any, any>);
20
- request(ctx: TestRequestAdaptor<TInput, TServices, TEventPublisher, TEventPublisherServiceName>): Promise<InferStandardSchema<TOutSchema>>;
21
- }
22
- type TestRequestAdaptor<TInput extends EndpointSchemas = {}, TServices extends Service[] = [], TEventPublisher extends EventPublisher<any> | undefined = undefined, TEventPublisherServiceName extends string = string> = {
23
- services: ServiceRecord<TServices>;
24
- headers: Record<string, string>;
25
- publisher?: Service<TEventPublisherServiceName, TEventPublisher>;
26
- } & InferComposableStandardSchema<TInput>;
27
- //#endregion
28
- export { TestEndpointAdaptor, TestRequestAdaptor };
29
- //# sourceMappingURL=TestEndpointAdaptor.d.mts.map
1
+ import "../Construct-DdyYENBD.mjs";
2
+ import "../types-CVq20-fE.mjs";
3
+ import "../Function-C98H68DW.mjs";
4
+ import "../BaseFunctionBuilder-Dda7AiID.mjs";
5
+ import "../FunctionBuilder-DBwR7jg7.mjs";
6
+ import "../index-BXTN4mwI.mjs";
7
+ import "../Endpoint-DYUjJdEs.mjs";
8
+ import { TestEndpointAdaptor, TestRequestAdaptor } from "../TestEndpointAdaptor-Da0ooGt2.mjs";
9
+ export { TestEndpointAdaptor, TestRequestAdaptor };
@@ -1,53 +1,10 @@
1
1
  import "../Construct-BbKCIPQm.mjs";
2
- import { publishConstructEvents } from "../publisher-Bw4770Hi.mjs";
2
+ import "../publisher-Bw4770Hi.mjs";
3
3
  import "../Function-C5mW-38v.mjs";
4
4
  import "../BaseFunctionBuilder-BPE9JBbT.mjs";
5
5
  import "../FunctionBuilder-CosgPmMl.mjs";
6
6
  import "../functions-mM-jcphA.mjs";
7
- import { Endpoint } from "../Endpoint-ierdM62O.mjs";
8
- import { EnvironmentParser } from "@geekmidas/envkit";
9
- import { ServiceDiscovery } from "@geekmidas/services";
7
+ import "../Endpoint-DNlmybXV.mjs";
8
+ import { TestEndpointAdaptor } from "../TestEndpointAdaptor-CelYsQi0.mjs";
10
9
 
11
- //#region src/endpoints/TestEndpointAdaptor.ts
12
- var TestEndpointAdaptor = class TestEndpointAdaptor {
13
- static getDefaultServiceDiscover(endpoint) {
14
- return ServiceDiscovery.getInstance(endpoint.logger, new EnvironmentParser({}));
15
- }
16
- constructor(endpoint, serviceDiscovery = TestEndpointAdaptor.getDefaultServiceDiscover(endpoint)) {
17
- this.endpoint = endpoint;
18
- this.serviceDiscovery = serviceDiscovery;
19
- }
20
- async request(ctx) {
21
- const body = await this.endpoint.parseInput(ctx.body, "body");
22
- const query = await this.endpoint.parseInput(ctx.query, "query");
23
- const params = await this.endpoint.parseInput(ctx.params, "params");
24
- const header = Endpoint.createHeaders(ctx.headers);
25
- const logger = this.endpoint.logger.child({
26
- route: this.endpoint.route,
27
- host: ctx.headers.host,
28
- method: this.endpoint.method
29
- });
30
- const session = await this.endpoint.getSession({
31
- logger,
32
- services: ctx.services,
33
- header
34
- });
35
- const response = await this.endpoint.handler({
36
- body,
37
- query,
38
- params,
39
- session,
40
- services: ctx.services,
41
- logger,
42
- header
43
- });
44
- const output = await this.endpoint.parseOutput(response);
45
- ctx.publisher && await this.serviceDiscovery.register([ctx.publisher]);
46
- await publishConstructEvents(this.endpoint, output, this.serviceDiscovery);
47
- return output;
48
- }
49
- };
50
-
51
- //#endregion
52
- export { TestEndpointAdaptor };
53
- //# sourceMappingURL=TestEndpointAdaptor.mjs.map
10
+ export { TestEndpointAdaptor };
@@ -3,8 +3,8 @@ require('../Function-CbO2NZx-.cjs');
3
3
  require('../BaseFunctionBuilder-DtO4Nwxm.cjs');
4
4
  require('../FunctionBuilder-DuOeWCAl.cjs');
5
5
  require('../functions-DVDb5wEA.cjs');
6
- require('../Endpoint-BaHC9y4Z.cjs');
7
- const require_helpers = require('../helpers-BeGM4pP_.cjs');
6
+ require('../Endpoint-D1nnEsBU.cjs');
7
+ const require_helpers = require('../helpers-CjvCSIF5.cjs');
8
8
 
9
9
  exports.getEndpointsFromRoutes = require_helpers.getEndpointsFromRoutes;
10
10
  exports.getProjectRoot = require_helpers.getProjectRoot;
@@ -3,7 +3,7 @@ import { HttpMethod } from "../types-Bp9ysFXd.cjs";
3
3
  import "../Function-BP58p9Mp.cjs";
4
4
  import "../BaseFunctionBuilder-5QCHkchp.cjs";
5
5
  import "../FunctionBuilder-BS1KgxA_.cjs";
6
- import "../index-Fg3N3EKD.cjs";
6
+ import "../index-zOH9f4sh.cjs";
7
7
  import { Endpoint } from "../Endpoint-C7z9YJHK.cjs";
8
8
  import { Service } from "@geekmidas/services";
9
9
 
@@ -1,10 +1,10 @@
1
- import "../Construct-DIguIyw4.mjs";
2
- import { HttpMethod } from "../types-DBKNYvsW.mjs";
3
- import "../Function-BsBxc2wA.mjs";
4
- import "../BaseFunctionBuilder-BFPVGnKi.mjs";
5
- import "../FunctionBuilder-C-PfPN3r.mjs";
6
- import "../index-CuGR4L7O.mjs";
7
- import { Endpoint } from "../Endpoint-DCn53Vd8.mjs";
1
+ import "../Construct-DdyYENBD.mjs";
2
+ import { HttpMethod } from "../types-CVq20-fE.mjs";
3
+ import "../Function-C98H68DW.mjs";
4
+ import "../BaseFunctionBuilder-Dda7AiID.mjs";
5
+ import "../FunctionBuilder-DBwR7jg7.mjs";
6
+ import "../index-BXTN4mwI.mjs";
7
+ import { Endpoint } from "../Endpoint-DYUjJdEs.mjs";
8
8
  import { Service } from "@geekmidas/services";
9
9
 
10
10
  //#region src/endpoints/helpers.d.ts
@@ -3,7 +3,7 @@ import "../Function-C5mW-38v.mjs";
3
3
  import "../BaseFunctionBuilder-BPE9JBbT.mjs";
4
4
  import "../FunctionBuilder-CosgPmMl.mjs";
5
5
  import "../functions-mM-jcphA.mjs";
6
- import "../Endpoint-ierdM62O.mjs";
7
- import { getEndpointsFromRoutes, getProjectRoot } from "../helpers-DbpO95aE.mjs";
6
+ import "../Endpoint-DNlmybXV.mjs";
7
+ import { getEndpointsFromRoutes, getProjectRoot } from "../helpers-CP7A0U_s.mjs";
8
8
 
9
9
  export { getEndpointsFromRoutes, getProjectRoot };
@@ -3,9 +3,9 @@ require('../Function-CbO2NZx-.cjs');
3
3
  require('../BaseFunctionBuilder-DtO4Nwxm.cjs');
4
4
  require('../FunctionBuilder-DuOeWCAl.cjs');
5
5
  require('../functions-DVDb5wEA.cjs');
6
- const require_Endpoint = require('../Endpoint-BaHC9y4Z.cjs');
7
- require('../EndpointBuilder-BHFSpbPR.cjs');
8
- const require_EndpointFactory = require('../EndpointFactory-CXX4E6Gx.cjs');
6
+ const require_Endpoint = require('../Endpoint-D1nnEsBU.cjs');
7
+ require('../EndpointBuilder-BhRd626m.cjs');
8
+ const require_EndpointFactory = require('../EndpointFactory-ChmVHWim.cjs');
9
9
 
10
10
  //#region src/endpoints/index.ts
11
11
  const e = new require_EndpointFactory.EndpointFactory();
@@ -3,14 +3,14 @@ import "../types-Bp9ysFXd.cjs";
3
3
  import "../Function-BP58p9Mp.cjs";
4
4
  import "../BaseFunctionBuilder-5QCHkchp.cjs";
5
5
  import "../FunctionBuilder-BS1KgxA_.cjs";
6
- import "../index-Fg3N3EKD.cjs";
6
+ import "../index-zOH9f4sh.cjs";
7
7
  import { Endpoint, EndpointOutput } from "../Endpoint-C7z9YJHK.cjs";
8
- import "../EndpointBuilder-CP9RGwZH.cjs";
9
- import { EndpointFactory } from "../EndpointFactory-D2zgWbXZ.cjs";
10
- import * as _geekmidas_logger5 from "@geekmidas/logger";
8
+ import "../EndpointBuilder-1fw103D6.cjs";
9
+ import { EndpointFactory } from "../EndpointFactory-D576BhaH.cjs";
10
+ import * as _geekmidas_logger3 from "@geekmidas/logger";
11
11
 
12
12
  //#region src/endpoints/index.d.ts
13
- declare const e: EndpointFactory<[], "", _geekmidas_logger5.Logger, unknown, undefined, string>;
13
+ declare const e: EndpointFactory<[], "", _geekmidas_logger3.Logger, unknown, undefined, string>;
14
14
  //#endregion
15
15
  export { Endpoint, EndpointOutput, e };
16
16
  //# sourceMappingURL=index.d.cts.map
@@ -1,16 +1,16 @@
1
- import "../Construct-DIguIyw4.mjs";
2
- import "../types-DBKNYvsW.mjs";
3
- import "../Function-BsBxc2wA.mjs";
4
- import "../BaseFunctionBuilder-BFPVGnKi.mjs";
5
- import "../FunctionBuilder-C-PfPN3r.mjs";
6
- import "../index-CuGR4L7O.mjs";
7
- import { Endpoint, EndpointOutput } from "../Endpoint-DCn53Vd8.mjs";
8
- import "../EndpointBuilder-Bfnb2oJr.mjs";
9
- import { EndpointFactory } from "../EndpointFactory-CNtMXgIh.mjs";
10
- import * as _geekmidas_logger0 from "@geekmidas/logger";
1
+ import "../Construct-DdyYENBD.mjs";
2
+ import "../types-CVq20-fE.mjs";
3
+ import "../Function-C98H68DW.mjs";
4
+ import "../BaseFunctionBuilder-Dda7AiID.mjs";
5
+ import "../FunctionBuilder-DBwR7jg7.mjs";
6
+ import "../index-BXTN4mwI.mjs";
7
+ import { Endpoint, EndpointOutput } from "../Endpoint-DYUjJdEs.mjs";
8
+ import "../EndpointBuilder-B2iScUND.mjs";
9
+ import { EndpointFactory } from "../EndpointFactory-DZQpM-9K.mjs";
10
+ import * as _geekmidas_logger5 from "@geekmidas/logger";
11
11
 
12
12
  //#region src/endpoints/index.d.ts
13
- declare const e: EndpointFactory<[], "", _geekmidas_logger0.Logger, unknown, undefined, string>;
13
+ declare const e: EndpointFactory<[], "", _geekmidas_logger5.Logger, unknown, undefined, string>;
14
14
  //#endregion
15
15
  export { Endpoint, EndpointOutput, e };
16
16
  //# sourceMappingURL=index.d.mts.map
@@ -3,9 +3,9 @@ import "../Function-C5mW-38v.mjs";
3
3
  import "../BaseFunctionBuilder-BPE9JBbT.mjs";
4
4
  import "../FunctionBuilder-CosgPmMl.mjs";
5
5
  import "../functions-mM-jcphA.mjs";
6
- import { Endpoint } from "../Endpoint-ierdM62O.mjs";
7
- import "../EndpointBuilder-BLUsoK3l.mjs";
8
- import { EndpointFactory } from "../EndpointFactory-BYdDVCNj.mjs";
6
+ import { Endpoint } from "../Endpoint-DNlmybXV.mjs";
7
+ import "../EndpointBuilder-CpjIMYb0.mjs";
8
+ import { EndpointFactory } from "../EndpointFactory-DLpEbLzL.mjs";
9
9
 
10
10
  //#region src/endpoints/index.ts
11
11
  const e = new EndpointFactory();
@@ -1,3 +1,3 @@
1
- const require_parseHonoQuery = require('../parseHonoQuery-DopC24vB.cjs');
1
+ const require_parseHonoQuery = require('../parseHonoQuery-BiPp8bEJ.cjs');
2
2
 
3
3
  exports.parseHonoQuery = require_parseHonoQuery.parseHonoQuery;
@@ -1,3 +1,3 @@
1
- import { parseHonoQuery } from "../parseHonoQuery-znDKBhdE.mjs";
1
+ import { parseHonoQuery } from "../parseHonoQuery-yWRoKFFl.mjs";
2
2
 
3
3
  export { parseHonoQuery };
@@ -1,3 +1,3 @@
1
- const require_parseQueryParams = require('../parseQueryParams-BzPop4I1.cjs');
1
+ const require_parseQueryParams = require('../parseQueryParams-C2EjouGt.cjs');
2
2
 
3
3
  exports.parseQueryParams = require_parseQueryParams.parseQueryParams;
@@ -1,3 +1,3 @@
1
- import { parseQueryParams } from "../parseQueryParams-BJaRh3OB.mjs";
1
+ import { parseQueryParams } from "../parseQueryParams-DSk9xl09.mjs";
2
2
 
3
3
  export { parseQueryParams };
@@ -3,7 +3,7 @@ require('../publisher-lFQleddL.cjs');
3
3
  require('../Function-CbO2NZx-.cjs');
4
4
  require('../BaseFunctionBuilder-DtO4Nwxm.cjs');
5
5
  require('../FunctionBuilder-DuOeWCAl.cjs');
6
- require('../FunctionExecutionWrapper-CElXEjPe.cjs');
7
- const require_AWSLambdaFunction = require('../AWSLambdaFunction-qA5LqPsv.cjs');
6
+ require('../FunctionExecutionWrapper-UzfHDM2R.cjs');
7
+ const require_AWSLambdaFunction = require('../AWSLambdaFunction-DW9qrBNR.cjs');
8
8
 
9
9
  exports.AWSLambdaFunction = require_AWSLambdaFunction.AWSLambdaFunction;
@@ -1,5 +1,5 @@
1
- import "../Construct-DIguIyw4.mjs";
2
- import "../Function-BsBxc2wA.mjs";
3
- import "../FunctionExecutionWrapper-DvglBBjE.mjs";
4
- import { AWSLambdaFunction, AWSLambdaHandler } from "../AWSLambdaFunction-CpHFE2m6.mjs";
1
+ import "../Construct-DdyYENBD.mjs";
2
+ import "../Function-C98H68DW.mjs";
3
+ import "../FunctionExecutionWrapper-B0V7V8YS.mjs";
4
+ import { AWSLambdaFunction, AWSLambdaHandler } from "../AWSLambdaFunction-CANc3Qo2.mjs";
5
5
  export { AWSLambdaFunction, AWSLambdaHandler };
@@ -3,7 +3,7 @@ import "../publisher-Bw4770Hi.mjs";
3
3
  import "../Function-C5mW-38v.mjs";
4
4
  import "../BaseFunctionBuilder-BPE9JBbT.mjs";
5
5
  import "../FunctionBuilder-CosgPmMl.mjs";
6
- import "../FunctionExecutionWrapper-XGrSAAPD.mjs";
7
- import { AWSLambdaFunction } from "../AWSLambdaFunction-DWIZYsCy.mjs";
6
+ import "../FunctionExecutionWrapper-CPzSbfaI.mjs";
7
+ import { AWSLambdaFunction } from "../AWSLambdaFunction-nic3vzt3.mjs";
8
8
 
9
9
  export { AWSLambdaFunction };
@@ -1,3 +1,3 @@
1
- import "../Construct-DIguIyw4.mjs";
2
- import { BaseFunctionBuilder } from "../BaseFunctionBuilder-BFPVGnKi.mjs";
1
+ import "../Construct-DdyYENBD.mjs";
2
+ import { BaseFunctionBuilder } from "../BaseFunctionBuilder-Dda7AiID.mjs";
3
3
  export { BaseFunctionBuilder };
@@ -1,3 +1,3 @@
1
- import "../Construct-DIguIyw4.mjs";
2
- import { Function, FunctionContext, FunctionFactory, FunctionHandler } from "../Function-BsBxc2wA.mjs";
1
+ import "../Construct-DdyYENBD.mjs";
2
+ import { Function, FunctionContext, FunctionFactory, FunctionHandler } from "../Function-C98H68DW.mjs";
3
3
  export { Function, FunctionContext, FunctionFactory, FunctionHandler };
@@ -1,5 +1,5 @@
1
- import "../Construct-DIguIyw4.mjs";
2
- import "../Function-BsBxc2wA.mjs";
3
- import "../BaseFunctionBuilder-BFPVGnKi.mjs";
4
- import { FunctionBuilder } from "../FunctionBuilder-C-PfPN3r.mjs";
1
+ import "../Construct-DdyYENBD.mjs";
2
+ import "../Function-C98H68DW.mjs";
3
+ import "../BaseFunctionBuilder-Dda7AiID.mjs";
4
+ import { FunctionBuilder } from "../FunctionBuilder-DBwR7jg7.mjs";
5
5
  export { FunctionBuilder };
@@ -3,6 +3,6 @@ require('../publisher-lFQleddL.cjs');
3
3
  require('../Function-CbO2NZx-.cjs');
4
4
  require('../BaseFunctionBuilder-DtO4Nwxm.cjs');
5
5
  require('../FunctionBuilder-DuOeWCAl.cjs');
6
- const require_FunctionExecutionWrapper = require('../FunctionExecutionWrapper-CElXEjPe.cjs');
6
+ const require_FunctionExecutionWrapper = require('../FunctionExecutionWrapper-UzfHDM2R.cjs');
7
7
 
8
8
  exports.FunctionExecutionWrapper = require_FunctionExecutionWrapper.FunctionExecutionWrapper;
@@ -1,4 +1,4 @@
1
- import "../Construct-DIguIyw4.mjs";
2
- import "../Function-BsBxc2wA.mjs";
3
- import { FunctionExecutionWrapper } from "../FunctionExecutionWrapper-DvglBBjE.mjs";
1
+ import "../Construct-DdyYENBD.mjs";
2
+ import "../Function-C98H68DW.mjs";
3
+ import { FunctionExecutionWrapper } from "../FunctionExecutionWrapper-B0V7V8YS.mjs";
4
4
  export { FunctionExecutionWrapper };
@@ -3,6 +3,6 @@ import "../publisher-Bw4770Hi.mjs";
3
3
  import "../Function-C5mW-38v.mjs";
4
4
  import "../BaseFunctionBuilder-BPE9JBbT.mjs";
5
5
  import "../FunctionBuilder-CosgPmMl.mjs";
6
- import { FunctionExecutionWrapper } from "../FunctionExecutionWrapper-XGrSAAPD.mjs";
6
+ import { FunctionExecutionWrapper } from "../FunctionExecutionWrapper-CPzSbfaI.mjs";
7
7
 
8
8
  export { FunctionExecutionWrapper };
@@ -1,5 +1,5 @@
1
- import "../Construct-DIguIyw4.mjs";
2
- import { Function } from "../Function-BsBxc2wA.mjs";
1
+ import "../Construct-DdyYENBD.mjs";
2
+ import { Function } from "../Function-C98H68DW.mjs";
3
3
  import { Service, ServiceDiscovery, ServiceRecord } from "@geekmidas/services";
4
4
  import { EventPublisher } from "@geekmidas/events";
5
5
  import { Logger } from "@geekmidas/logger";
@@ -2,5 +2,5 @@ import "../Construct-Bm-PSO2V.cjs";
2
2
  import { Function, FunctionContext, FunctionHandler } from "../Function-BP58p9Mp.cjs";
3
3
  import { BaseFunctionBuilder } from "../BaseFunctionBuilder-5QCHkchp.cjs";
4
4
  import { FunctionBuilder } from "../FunctionBuilder-BS1KgxA_.cjs";
5
- import { f } from "../index-Fg3N3EKD.cjs";
5
+ import { f } from "../index-zOH9f4sh.cjs";
6
6
  export { BaseFunctionBuilder, Function, FunctionBuilder, FunctionContext, FunctionHandler, f };
@@ -1,6 +1,6 @@
1
- import "../Construct-DIguIyw4.mjs";
2
- import { Function, FunctionContext, FunctionHandler } from "../Function-BsBxc2wA.mjs";
3
- import { BaseFunctionBuilder } from "../BaseFunctionBuilder-BFPVGnKi.mjs";
4
- import { FunctionBuilder } from "../FunctionBuilder-C-PfPN3r.mjs";
5
- import { f } from "../index-CuGR4L7O.mjs";
1
+ import "../Construct-DdyYENBD.mjs";
2
+ import { Function, FunctionContext, FunctionHandler } from "../Function-C98H68DW.mjs";
3
+ import { BaseFunctionBuilder } from "../BaseFunctionBuilder-Dda7AiID.mjs";
4
+ import { FunctionBuilder } from "../FunctionBuilder-DBwR7jg7.mjs";
5
+ import { f } from "../index-BXTN4mwI.mjs";
6
6
  export { BaseFunctionBuilder, Function, FunctionBuilder, FunctionContext, FunctionHandler, f };
@@ -1,4 +1,4 @@
1
- import { Endpoint } from "./Endpoint-ierdM62O.mjs";
1
+ import { Endpoint } from "./Endpoint-DNlmybXV.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-DbpO95aE.mjs.map
83
+ //# sourceMappingURL=helpers-CP7A0U_s.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers-DbpO95aE.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-CP7A0U_s.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,5 +1,5 @@
1
1
  const require_chunk = require('./chunk-CUT6urMc.cjs');
2
- const require_Endpoint = require('./Endpoint-BaHC9y4Z.cjs');
2
+ const require_Endpoint = require('./Endpoint-D1nnEsBU.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-BeGM4pP_.cjs.map
95
+ //# sourceMappingURL=helpers-CjvCSIF5.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers-BeGM4pP_.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-CjvCSIF5.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"}
@@ -0,0 +1,9 @@
1
+ import { FunctionBuilder } from "./FunctionBuilder-DBwR7jg7.mjs";
2
+ import * as _geekmidas_logger4 from "@geekmidas/logger";
3
+ import * as _geekmidas_schema3 from "@geekmidas/schema";
4
+
5
+ //#region src/functions/index.d.ts
6
+ declare const f: FunctionBuilder<_geekmidas_schema3.ComposableStandardSchema, undefined, [], _geekmidas_logger4.Logger, undefined, string>;
7
+ //#endregion
8
+ export { f };
9
+ //# sourceMappingURL=index-BXTN4mwI.d.mts.map