@geekmidas/constructs 0.0.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.
- package/README.md +614 -0
- package/dist/AWSLambdaFunction-CpHFE2m6.d.mts +27 -0
- package/dist/AWSLambdaFunction-CwagvPG3.d.cts +27 -0
- package/dist/AWSLambdaFunction-DWIZYsCy.mjs +79 -0
- package/dist/AWSLambdaFunction-DWIZYsCy.mjs.map +1 -0
- package/dist/AWSLambdaFunction-qA5LqPsv.cjs +85 -0
- package/dist/AWSLambdaFunction-qA5LqPsv.cjs.map +1 -0
- package/dist/AWSLambdaSubscriberAdaptor-C1wQuucQ.d.mts +32 -0
- package/dist/AWSLambdaSubscriberAdaptor-CmPZ10JF.cjs +138 -0
- package/dist/AWSLambdaSubscriberAdaptor-CmPZ10JF.cjs.map +1 -0
- package/dist/AWSLambdaSubscriberAdaptor-G8y3YkWj.mjs +132 -0
- package/dist/AWSLambdaSubscriberAdaptor-G8y3YkWj.mjs.map +1 -0
- package/dist/AWSLambdaSubscriberAdaptor-QKVxR6qh.d.cts +32 -0
- package/dist/AmazonApiGatewayEndpointAdaptor-BoBh7vvD.d.mts +61 -0
- package/dist/AmazonApiGatewayEndpointAdaptor-Cx1oqcqh.mjs +124 -0
- package/dist/AmazonApiGatewayEndpointAdaptor-Cx1oqcqh.mjs.map +1 -0
- package/dist/AmazonApiGatewayEndpointAdaptor-DtzgQ9Vb.d.cts +61 -0
- package/dist/AmazonApiGatewayEndpointAdaptor-i74DEUbc.cjs +130 -0
- package/dist/AmazonApiGatewayEndpointAdaptor-i74DEUbc.cjs.map +1 -0
- package/dist/AmazonApiGatewayV1EndpointAdaptor-CLmBDYsl.mjs +42 -0
- package/dist/AmazonApiGatewayV1EndpointAdaptor-CLmBDYsl.mjs.map +1 -0
- package/dist/AmazonApiGatewayV1EndpointAdaptor-EhMd1YqV.d.mts +21 -0
- package/dist/AmazonApiGatewayV1EndpointAdaptor-GkMAUPL5.cjs +47 -0
- package/dist/AmazonApiGatewayV1EndpointAdaptor-GkMAUPL5.cjs.map +1 -0
- package/dist/AmazonApiGatewayV1EndpointAdaptor-Gw-j61qM.d.cts +21 -0
- package/dist/AmazonApiGatewayV2EndpointAdaptor-3RqegmJC.mjs +41 -0
- package/dist/AmazonApiGatewayV2EndpointAdaptor-3RqegmJC.mjs.map +1 -0
- package/dist/AmazonApiGatewayV2EndpointAdaptor-LUlpwmUW.d.cts +21 -0
- package/dist/AmazonApiGatewayV2EndpointAdaptor-YlFoFSS9.cjs +46 -0
- package/dist/AmazonApiGatewayV2EndpointAdaptor-YlFoFSS9.cjs.map +1 -0
- package/dist/AmazonApiGatewayV2EndpointAdaptor-zfd1gqXA.d.mts +21 -0
- package/dist/BaseFunctionBuilder-5QCHkchp.d.cts +31 -0
- package/dist/BaseFunctionBuilder-BFPVGnKi.d.mts +31 -0
- package/dist/BaseFunctionBuilder-BPE9JBbT.mjs +56 -0
- package/dist/BaseFunctionBuilder-BPE9JBbT.mjs.map +1 -0
- package/dist/BaseFunctionBuilder-DtO4Nwxm.cjs +62 -0
- package/dist/BaseFunctionBuilder-DtO4Nwxm.cjs.map +1 -0
- package/dist/Construct-BSEs6uwW.cjs +75 -0
- package/dist/Construct-BSEs6uwW.cjs.map +1 -0
- package/dist/Construct-BbKCIPQm.mjs +63 -0
- package/dist/Construct-BbKCIPQm.mjs.map +1 -0
- package/dist/Construct-Bm-PSO2V.d.cts +42 -0
- package/dist/Construct-DIguIyw4.d.mts +42 -0
- package/dist/Construct.cjs +4 -0
- package/dist/Construct.d.cts +2 -0
- package/dist/Construct.d.mts +2 -0
- package/dist/Construct.mjs +3 -0
- package/dist/Cron-Bgs6EQOb.mjs +20 -0
- package/dist/Cron-Bgs6EQOb.mjs.map +1 -0
- package/dist/Cron-DQiCj3ef.cjs +25 -0
- package/dist/Cron-DQiCj3ef.cjs.map +1 -0
- package/dist/Cron-FpAw03k6.d.mts +25 -0
- package/dist/Cron-ztnK6zgU.d.cts +25 -0
- package/dist/CronBuilder-B2clNQSP.d.mts +24 -0
- package/dist/CronBuilder-Cje9K8lZ.d.cts +24 -0
- package/dist/CronBuilder-DIBqJkh_.cjs +60 -0
- package/dist/CronBuilder-DIBqJkh_.cjs.map +1 -0
- package/dist/CronBuilder-DecAvvcn.mjs +54 -0
- package/dist/CronBuilder-DecAvvcn.mjs.map +1 -0
- package/dist/Endpoint-BaHC9y4Z.cjs +291 -0
- package/dist/Endpoint-BaHC9y4Z.cjs.map +1 -0
- package/dist/Endpoint-C7z9YJHK.d.cts +405 -0
- package/dist/Endpoint-DCn53Vd8.d.mts +405 -0
- package/dist/Endpoint-ierdM62O.mjs +279 -0
- package/dist/Endpoint-ierdM62O.mjs.map +1 -0
- package/dist/EndpointBuilder-BHFSpbPR.cjs +107 -0
- package/dist/EndpointBuilder-BHFSpbPR.cjs.map +1 -0
- package/dist/EndpointBuilder-BLUsoK3l.mjs +101 -0
- package/dist/EndpointBuilder-BLUsoK3l.mjs.map +1 -0
- package/dist/EndpointBuilder-Bfnb2oJr.d.mts +49 -0
- package/dist/EndpointBuilder-CP9RGwZH.d.cts +49 -0
- package/dist/EndpointFactory-BYdDVCNj.mjs +127 -0
- package/dist/EndpointFactory-BYdDVCNj.mjs.map +1 -0
- package/dist/EndpointFactory-CNtMXgIh.d.mts +52 -0
- package/dist/EndpointFactory-CXX4E6Gx.cjs +139 -0
- package/dist/EndpointFactory-CXX4E6Gx.cjs.map +1 -0
- package/dist/EndpointFactory-D2zgWbXZ.d.cts +52 -0
- package/dist/Function-BP58p9Mp.d.cts +59 -0
- package/dist/Function-BsBxc2wA.d.mts +59 -0
- package/dist/Function-C5mW-38v.mjs +72 -0
- package/dist/Function-C5mW-38v.mjs.map +1 -0
- package/dist/Function-CbO2NZx-.cjs +84 -0
- package/dist/Function-CbO2NZx-.cjs.map +1 -0
- package/dist/FunctionBuilder-BS1KgxA_.d.cts +24 -0
- package/dist/FunctionBuilder-C-PfPN3r.d.mts +24 -0
- package/dist/FunctionBuilder-CosgPmMl.mjs +53 -0
- package/dist/FunctionBuilder-CosgPmMl.mjs.map +1 -0
- package/dist/FunctionBuilder-DuOeWCAl.cjs +59 -0
- package/dist/FunctionBuilder-DuOeWCAl.cjs.map +1 -0
- package/dist/FunctionExecutionWrapper-Bx-Dl-2a.d.cts +24 -0
- package/dist/FunctionExecutionWrapper-CElXEjPe.cjs +42 -0
- package/dist/FunctionExecutionWrapper-CElXEjPe.cjs.map +1 -0
- package/dist/FunctionExecutionWrapper-DvglBBjE.d.mts +24 -0
- package/dist/FunctionExecutionWrapper-XGrSAAPD.mjs +36 -0
- package/dist/FunctionExecutionWrapper-XGrSAAPD.mjs.map +1 -0
- package/dist/HonoEndpointAdaptor-B0IO1zj2.d.mts +41 -0
- package/dist/HonoEndpointAdaptor-B4snrp7v.cjs +154 -0
- package/dist/HonoEndpointAdaptor-B4snrp7v.cjs.map +1 -0
- package/dist/HonoEndpointAdaptor-B6lW9Q1k.d.cts +41 -0
- package/dist/HonoEndpointAdaptor-D-M4-6Tf.mjs +148 -0
- package/dist/HonoEndpointAdaptor-D-M4-6Tf.mjs.map +1 -0
- package/dist/Subscriber-BoFm12i_.d.cts +33 -0
- package/dist/Subscriber-BwuCaC9G.mjs +28 -0
- package/dist/Subscriber-BwuCaC9G.mjs.map +1 -0
- package/dist/Subscriber-THGsj7Iy.d.mts +33 -0
- package/dist/Subscriber-iMRFG7ba.cjs +34 -0
- package/dist/Subscriber-iMRFG7ba.cjs.map +1 -0
- package/dist/SubscriberBuilder-CiPxgnKT.d.mts +26 -0
- package/dist/SubscriberBuilder-Dhz0C_t-.mjs +54 -0
- package/dist/SubscriberBuilder-Dhz0C_t-.mjs.map +1 -0
- package/dist/SubscriberBuilder-DuIgxuzc.d.cts +26 -0
- package/dist/SubscriberBuilder-wthr-FL9.cjs +60 -0
- package/dist/SubscriberBuilder-wthr-FL9.cjs.map +1 -0
- package/dist/adaptors/aws.cjs +19 -0
- package/dist/adaptors/aws.d.cts +15 -0
- package/dist/adaptors/aws.d.mts +15 -0
- package/dist/adaptors/aws.mjs +16 -0
- package/dist/adaptors/hono.cjs +12 -0
- package/dist/adaptors/hono.d.cts +9 -0
- package/dist/adaptors/hono.d.mts +9 -0
- package/dist/adaptors/hono.mjs +12 -0
- package/dist/chunk-CUT6urMc.cjs +30 -0
- package/dist/crons/Cron.cjs +8 -0
- package/dist/crons/Cron.d.cts +7 -0
- package/dist/crons/Cron.d.mts +7 -0
- package/dist/crons/Cron.mjs +8 -0
- package/dist/crons/CronBuilder.cjs +9 -0
- package/dist/crons/CronBuilder.d.cts +8 -0
- package/dist/crons/CronBuilder.d.mts +8 -0
- package/dist/crons/CronBuilder.mjs +9 -0
- package/dist/crons/index.cjs +16 -0
- package/dist/crons/index.cjs.map +1 -0
- package/dist/crons/index.d.cts +16 -0
- package/dist/crons/index.d.mts +16 -0
- package/dist/crons/index.mjs +14 -0
- package/dist/crons/index.mjs.map +1 -0
- package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.cjs +10 -0
- package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.d.cts +9 -0
- package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.d.mts +9 -0
- package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.mjs +10 -0
- package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.cjs +12 -0
- package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.d.cts +10 -0
- package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.d.mts +10 -0
- package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.mjs +12 -0
- package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.cjs +12 -0
- package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.d.cts +10 -0
- package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.d.mts +10 -0
- package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.mjs +12 -0
- package/dist/endpoints/Endpoint.cjs +9 -0
- package/dist/endpoints/Endpoint.d.cts +8 -0
- package/dist/endpoints/Endpoint.d.mts +8 -0
- package/dist/endpoints/Endpoint.mjs +8 -0
- package/dist/endpoints/EndpointBuilder.cjs +9 -0
- package/dist/endpoints/EndpointBuilder.d.cts +9 -0
- package/dist/endpoints/EndpointBuilder.d.mts +9 -0
- package/dist/endpoints/EndpointBuilder.mjs +9 -0
- package/dist/endpoints/EndpointFactory.cjs +11 -0
- package/dist/endpoints/EndpointFactory.d.cts +10 -0
- package/dist/endpoints/EndpointFactory.d.mts +10 -0
- package/dist/endpoints/EndpointFactory.mjs +10 -0
- package/dist/endpoints/HonoEndpointAdaptor.cjs +12 -0
- package/dist/endpoints/HonoEndpointAdaptor.d.cts +9 -0
- package/dist/endpoints/HonoEndpointAdaptor.d.mts +9 -0
- package/dist/endpoints/HonoEndpointAdaptor.mjs +12 -0
- package/dist/endpoints/TestEndpointAdaptor.cjs +54 -0
- package/dist/endpoints/TestEndpointAdaptor.cjs.map +1 -0
- package/dist/endpoints/TestEndpointAdaptor.d.cts +29 -0
- package/dist/endpoints/TestEndpointAdaptor.d.mts +29 -0
- package/dist/endpoints/TestEndpointAdaptor.mjs +53 -0
- package/dist/endpoints/TestEndpointAdaptor.mjs.map +1 -0
- package/dist/endpoints/helpers.cjs +10 -0
- package/dist/endpoints/helpers.d.cts +58 -0
- package/dist/endpoints/helpers.d.mts +58 -0
- package/dist/endpoints/helpers.mjs +9 -0
- package/dist/endpoints/index.cjs +16 -0
- package/dist/endpoints/index.cjs.map +1 -0
- package/dist/endpoints/index.d.cts +16 -0
- package/dist/endpoints/index.d.mts +16 -0
- package/dist/endpoints/index.mjs +15 -0
- package/dist/endpoints/index.mjs.map +1 -0
- package/dist/endpoints/parseHonoQuery.cjs +3 -0
- package/dist/endpoints/parseHonoQuery.d.cts +12 -0
- package/dist/endpoints/parseHonoQuery.d.mts +12 -0
- package/dist/endpoints/parseHonoQuery.mjs +3 -0
- package/dist/endpoints/parseQueryParams.cjs +3 -0
- package/dist/endpoints/parseQueryParams.d.cts +13 -0
- package/dist/endpoints/parseQueryParams.d.mts +13 -0
- package/dist/endpoints/parseQueryParams.mjs +3 -0
- package/dist/functions/AWSLambdaFunction.cjs +9 -0
- package/dist/functions/AWSLambdaFunction.d.cts +5 -0
- package/dist/functions/AWSLambdaFunction.d.mts +5 -0
- package/dist/functions/AWSLambdaFunction.mjs +9 -0
- package/dist/functions/BaseFunctionBuilder.cjs +4 -0
- package/dist/functions/BaseFunctionBuilder.d.cts +3 -0
- package/dist/functions/BaseFunctionBuilder.d.mts +3 -0
- package/dist/functions/BaseFunctionBuilder.mjs +4 -0
- package/dist/functions/Function.cjs +5 -0
- package/dist/functions/Function.d.cts +3 -0
- package/dist/functions/Function.d.mts +3 -0
- package/dist/functions/Function.mjs +4 -0
- package/dist/functions/FunctionBuilder.cjs +6 -0
- package/dist/functions/FunctionBuilder.d.cts +5 -0
- package/dist/functions/FunctionBuilder.d.mts +5 -0
- package/dist/functions/FunctionBuilder.mjs +6 -0
- package/dist/functions/FunctionExecutionWrapper.cjs +8 -0
- package/dist/functions/FunctionExecutionWrapper.d.cts +4 -0
- package/dist/functions/FunctionExecutionWrapper.d.mts +4 -0
- package/dist/functions/FunctionExecutionWrapper.mjs +8 -0
- package/dist/functions/TestFunctionAdaptor.cjs +38 -0
- package/dist/functions/TestFunctionAdaptor.cjs.map +1 -0
- package/dist/functions/TestFunctionAdaptor.d.cts +26 -0
- package/dist/functions/TestFunctionAdaptor.d.mts +26 -0
- package/dist/functions/TestFunctionAdaptor.mjs +37 -0
- package/dist/functions/TestFunctionAdaptor.mjs.map +1 -0
- package/dist/functions/index.cjs +10 -0
- package/dist/functions/index.d.cts +6 -0
- package/dist/functions/index.d.mts +6 -0
- package/dist/functions/index.mjs +7 -0
- package/dist/functions-DVDb5wEA.cjs +13 -0
- package/dist/functions-DVDb5wEA.cjs.map +1 -0
- package/dist/functions-mM-jcphA.mjs +8 -0
- package/dist/functions-mM-jcphA.mjs.map +1 -0
- package/dist/helpers-BeGM4pP_.cjs +95 -0
- package/dist/helpers-BeGM4pP_.cjs.map +1 -0
- package/dist/helpers-DbpO95aE.mjs +83 -0
- package/dist/helpers-DbpO95aE.mjs.map +1 -0
- package/dist/index-CuGR4L7O.d.mts +9 -0
- package/dist/index-Fg3N3EKD.d.cts +9 -0
- package/dist/index.cjs +4 -0
- package/dist/index.d.cts +4 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.mjs +3 -0
- package/dist/parseHonoQuery-DopC24vB.cjs +37 -0
- package/dist/parseHonoQuery-DopC24vB.cjs.map +1 -0
- package/dist/parseHonoQuery-znDKBhdE.mjs +31 -0
- package/dist/parseHonoQuery-znDKBhdE.mjs.map +1 -0
- package/dist/parseQueryParams-BJaRh3OB.mjs +32 -0
- package/dist/parseQueryParams-BJaRh3OB.mjs.map +1 -0
- package/dist/parseQueryParams-BzPop4I1.cjs +38 -0
- package/dist/parseQueryParams-BzPop4I1.cjs.map +1 -0
- package/dist/publisher-Bw4770Hi.mjs +41 -0
- package/dist/publisher-Bw4770Hi.mjs.map +1 -0
- package/dist/publisher-lFQleddL.cjs +53 -0
- package/dist/publisher-lFQleddL.cjs.map +1 -0
- package/dist/publisher.cjs +4 -0
- package/dist/publisher.d.cts +13 -0
- package/dist/publisher.d.mts +13 -0
- package/dist/publisher.mjs +3 -0
- package/dist/subscribers/AWSLambdaSubscriberAdaptor.cjs +3 -0
- package/dist/subscribers/AWSLambdaSubscriberAdaptor.d.cts +4 -0
- package/dist/subscribers/AWSLambdaSubscriberAdaptor.d.mts +4 -0
- package/dist/subscribers/AWSLambdaSubscriberAdaptor.mjs +3 -0
- package/dist/subscribers/Subscriber.cjs +4 -0
- package/dist/subscribers/Subscriber.d.cts +3 -0
- package/dist/subscribers/Subscriber.d.mts +3 -0
- package/dist/subscribers/Subscriber.mjs +4 -0
- package/dist/subscribers/SubscriberBuilder.cjs +5 -0
- package/dist/subscribers/SubscriberBuilder.d.cts +4 -0
- package/dist/subscribers/SubscriberBuilder.d.mts +4 -0
- package/dist/subscribers/SubscriberBuilder.mjs +5 -0
- package/dist/subscribers/index.cjs +12 -0
- package/dist/subscribers/index.cjs.map +1 -0
- package/dist/subscribers/index.d.cts +10 -0
- package/dist/subscribers/index.d.mts +10 -0
- package/dist/subscribers/index.mjs +10 -0
- package/dist/subscribers/index.mjs.map +1 -0
- package/dist/types-Bp9ysFXd.d.cts +7 -0
- package/dist/types-DBKNYvsW.d.mts +7 -0
- package/dist/types.cjs +0 -0
- package/dist/types.d.cts +2 -0
- package/dist/types.d.mts +2 -0
- package/dist/types.mjs +0 -0
- package/package.json +91 -0
- package/src/Construct.ts +98 -0
- package/src/__tests__/Construct.environment.spec.ts +360 -0
- package/src/__tests__/publisher.setting.spec.ts +511 -0
- package/src/__tests__/publisher.spec.ts +454 -0
- package/src/adaptors/aws.ts +4 -0
- package/src/adaptors/hono.ts +1 -0
- package/src/crons/Cron.ts +137 -0
- package/src/crons/CronBuilder.ts +192 -0
- package/src/crons/__tests__/Cron.spec.ts +464 -0
- package/src/crons/index.ts +11 -0
- package/src/endpoints/AmazonApiGatewayEndpointAdaptor.ts +315 -0
- package/src/endpoints/AmazonApiGatewayV1EndpointAdaptor.ts +101 -0
- package/src/endpoints/AmazonApiGatewayV2EndpointAdaptor.ts +95 -0
- package/src/endpoints/Endpoint.ts +771 -0
- package/src/endpoints/EndpointBuilder.ts +308 -0
- package/src/endpoints/EndpointFactory.ts +329 -0
- package/src/endpoints/HonoEndpointAdaptor.ts +365 -0
- package/src/endpoints/TestEndpointAdaptor.ts +130 -0
- package/src/endpoints/__tests__/AmazonApiGatewayV1EndpointAdaptor.events.spec.ts +553 -0
- package/src/endpoints/__tests__/AmazonApiGatewayV1EndpointAdaptor.spec.ts +927 -0
- package/src/endpoints/__tests__/AmazonApiGatewayV2EndpointAdaptor.events.spec.ts +721 -0
- package/src/endpoints/__tests__/AmazonApiGatewayV2EndpointAdaptor.factory-publisher.spec.ts +296 -0
- package/src/endpoints/__tests__/AmazonApiGatewayV2EndpointAdaptor.spec.ts +441 -0
- package/src/endpoints/__tests__/Endpoint.spec.ts +800 -0
- package/src/endpoints/__tests__/EndpointBuilder.spec.ts +488 -0
- package/src/endpoints/__tests__/EndpointFactory.spec.ts +479 -0
- package/src/endpoints/__tests__/HonoEndpointAdaptor.events.spec.ts +569 -0
- package/src/endpoints/__tests__/HonoEndpointAdaptor.openapi.spec.ts +313 -0
- package/src/endpoints/__tests__/HonoEndpointAdaptor.spec.ts +1078 -0
- package/src/endpoints/__tests__/TestEndpointAdaptor.spec.ts +236 -0
- package/src/endpoints/__tests__/__snapshots__/HonoEndpointAdaptor.spec.ts.snap +54 -0
- package/src/endpoints/__tests__/endpoint-types.test.ts +88 -0
- package/src/endpoints/helpers.ts +99 -0
- package/src/endpoints/index.ts +5 -0
- package/src/endpoints/parseHonoQuery.ts +51 -0
- package/src/endpoints/parseQueryParams.ts +51 -0
- package/src/functions/AWSLambdaFunction.ts +222 -0
- package/src/functions/BaseFunctionBuilder.ts +110 -0
- package/src/functions/Function.ts +160 -0
- package/src/functions/FunctionBuilder.ts +182 -0
- package/src/functions/FunctionExecutionWrapper.ts +86 -0
- package/src/functions/TestFunctionAdaptor.ts +125 -0
- package/src/functions/__tests__/AWSLambdaFunctionAdaptor.spec.ts +376 -0
- package/src/functions/__tests__/Function.spec.ts +402 -0
- package/src/functions/__tests__/TestFunctionAdaptor.spec.ts +398 -0
- package/src/functions/index.ts +10 -0
- package/src/index.ts +14 -0
- package/src/publisher.ts +83 -0
- package/src/subscribers/AWSLambdaSubscriberAdaptor.ts +269 -0
- package/src/subscribers/Subscriber.ts +112 -0
- package/src/subscribers/SubscriberBuilder.ts +150 -0
- package/src/subscribers/__tests__/AWSLambdaSubscriberAdaptor.spec.ts +623 -0
- package/src/subscribers/__tests__/Subscriber.spec.ts +432 -0
- package/src/subscribers/index.ts +5 -0
- package/src/types.ts +13 -0
- package/tsdown.config.ts +3 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "../Construct-Bm-PSO2V.cjs";
|
|
2
|
+
import "../types-Bp9ysFXd.cjs";
|
|
3
|
+
import "../Function-BP58p9Mp.cjs";
|
|
4
|
+
import "../BaseFunctionBuilder-5QCHkchp.cjs";
|
|
5
|
+
import "../FunctionBuilder-BS1KgxA_.cjs";
|
|
6
|
+
import "../index-Fg3N3EKD.cjs";
|
|
7
|
+
import "../Endpoint-C7z9YJHK.cjs";
|
|
8
|
+
import { HonoEndpoint } from "../HonoEndpointAdaptor-B6lW9Q1k.cjs";
|
|
9
|
+
export { HonoEndpoint };
|
|
@@ -0,0 +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 } from "../HonoEndpointAdaptor-B0IO1zj2.mjs";
|
|
9
|
+
export { HonoEndpoint };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "../Construct-BbKCIPQm.mjs";
|
|
2
|
+
import "../publisher-Bw4770Hi.mjs";
|
|
3
|
+
import "../Function-C5mW-38v.mjs";
|
|
4
|
+
import "../BaseFunctionBuilder-BPE9JBbT.mjs";
|
|
5
|
+
import "../FunctionBuilder-CosgPmMl.mjs";
|
|
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";
|
|
11
|
+
|
|
12
|
+
export { HonoEndpoint };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//#region rolldown:runtime
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
+
key = keys[i];
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
+
get: ((k) => from[k]).bind(null, key),
|
|
13
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
+
value: mod,
|
|
20
|
+
enumerable: true
|
|
21
|
+
}) : target, mod));
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
|
|
25
|
+
Object.defineProperty(exports, '__toESM', {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return __toESM;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
require('../Construct-BSEs6uwW.cjs');
|
|
2
|
+
require('../Function-CbO2NZx-.cjs');
|
|
3
|
+
require('../BaseFunctionBuilder-DtO4Nwxm.cjs');
|
|
4
|
+
require('../FunctionBuilder-DuOeWCAl.cjs');
|
|
5
|
+
require('../functions-DVDb5wEA.cjs');
|
|
6
|
+
const require_Cron = require('../Cron-DQiCj3ef.cjs');
|
|
7
|
+
|
|
8
|
+
exports.Cron = require_Cron.Cron;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "../Construct-Bm-PSO2V.cjs";
|
|
2
|
+
import "../Function-BP58p9Mp.cjs";
|
|
3
|
+
import "../BaseFunctionBuilder-5QCHkchp.cjs";
|
|
4
|
+
import "../FunctionBuilder-BS1KgxA_.cjs";
|
|
5
|
+
import "../index-Fg3N3EKD.cjs";
|
|
6
|
+
import { Cron, CronExpression, RateExpression, ScheduleExpression } from "../Cron-ztnK6zgU.cjs";
|
|
7
|
+
export { Cron, CronExpression, RateExpression, ScheduleExpression };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "../Construct-DIguIyw4.mjs";
|
|
2
|
+
import "../Function-BsBxc2wA.mjs";
|
|
3
|
+
import "../BaseFunctionBuilder-BFPVGnKi.mjs";
|
|
4
|
+
import "../FunctionBuilder-C-PfPN3r.mjs";
|
|
5
|
+
import "../index-CuGR4L7O.mjs";
|
|
6
|
+
import { Cron, CronExpression, RateExpression, ScheduleExpression } from "../Cron-FpAw03k6.mjs";
|
|
7
|
+
export { Cron, CronExpression, RateExpression, ScheduleExpression };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "../Construct-BbKCIPQm.mjs";
|
|
2
|
+
import "../Function-C5mW-38v.mjs";
|
|
3
|
+
import "../BaseFunctionBuilder-BPE9JBbT.mjs";
|
|
4
|
+
import "../FunctionBuilder-CosgPmMl.mjs";
|
|
5
|
+
import "../functions-mM-jcphA.mjs";
|
|
6
|
+
import { Cron } from "../Cron-Bgs6EQOb.mjs";
|
|
7
|
+
|
|
8
|
+
export { Cron };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
require('../Construct-BSEs6uwW.cjs');
|
|
2
|
+
require('../Function-CbO2NZx-.cjs');
|
|
3
|
+
require('../BaseFunctionBuilder-DtO4Nwxm.cjs');
|
|
4
|
+
require('../FunctionBuilder-DuOeWCAl.cjs');
|
|
5
|
+
require('../functions-DVDb5wEA.cjs');
|
|
6
|
+
require('../Cron-DQiCj3ef.cjs');
|
|
7
|
+
const require_CronBuilder = require('../CronBuilder-DIBqJkh_.cjs');
|
|
8
|
+
|
|
9
|
+
exports.CronBuilder = require_CronBuilder.CronBuilder;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "../Construct-Bm-PSO2V.cjs";
|
|
2
|
+
import "../Function-BP58p9Mp.cjs";
|
|
3
|
+
import "../BaseFunctionBuilder-5QCHkchp.cjs";
|
|
4
|
+
import "../FunctionBuilder-BS1KgxA_.cjs";
|
|
5
|
+
import "../index-Fg3N3EKD.cjs";
|
|
6
|
+
import "../Cron-ztnK6zgU.cjs";
|
|
7
|
+
import { CronBuilder } from "../CronBuilder-Cje9K8lZ.cjs";
|
|
8
|
+
export { CronBuilder };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "../Construct-DIguIyw4.mjs";
|
|
2
|
+
import "../Function-BsBxc2wA.mjs";
|
|
3
|
+
import "../BaseFunctionBuilder-BFPVGnKi.mjs";
|
|
4
|
+
import "../FunctionBuilder-C-PfPN3r.mjs";
|
|
5
|
+
import "../index-CuGR4L7O.mjs";
|
|
6
|
+
import "../Cron-FpAw03k6.mjs";
|
|
7
|
+
import { CronBuilder } from "../CronBuilder-B2clNQSP.mjs";
|
|
8
|
+
export { CronBuilder };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "../Construct-BbKCIPQm.mjs";
|
|
2
|
+
import "../Function-C5mW-38v.mjs";
|
|
3
|
+
import "../BaseFunctionBuilder-BPE9JBbT.mjs";
|
|
4
|
+
import "../FunctionBuilder-CosgPmMl.mjs";
|
|
5
|
+
import "../functions-mM-jcphA.mjs";
|
|
6
|
+
import "../Cron-Bgs6EQOb.mjs";
|
|
7
|
+
import { CronBuilder } from "../CronBuilder-DecAvvcn.mjs";
|
|
8
|
+
|
|
9
|
+
export { CronBuilder };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
require('../Construct-BSEs6uwW.cjs');
|
|
2
|
+
require('../Function-CbO2NZx-.cjs');
|
|
3
|
+
require('../BaseFunctionBuilder-DtO4Nwxm.cjs');
|
|
4
|
+
require('../FunctionBuilder-DuOeWCAl.cjs');
|
|
5
|
+
require('../functions-DVDb5wEA.cjs');
|
|
6
|
+
const require_Cron = require('../Cron-DQiCj3ef.cjs');
|
|
7
|
+
const require_CronBuilder = require('../CronBuilder-DIBqJkh_.cjs');
|
|
8
|
+
|
|
9
|
+
//#region src/crons/index.ts
|
|
10
|
+
const c = new require_CronBuilder.CronBuilder();
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.Cron = require_Cron.Cron;
|
|
14
|
+
exports.CronBuilder = require_CronBuilder.CronBuilder;
|
|
15
|
+
exports.c = c;
|
|
16
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["CronBuilder"],"sources":["../../src/crons/index.ts"],"sourcesContent":["export {\n Cron,\n type ScheduleExpression,\n type CronExpression,\n type RateExpression,\n} from './Cron';\nexport { CronBuilder } from './CronBuilder';\n\nimport { CronBuilder } from './CronBuilder';\n\nexport const c = new CronBuilder();\n"],"mappings":";;;;;;;;;AAUA,MAAa,IAAI,IAAIA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "../Construct-Bm-PSO2V.cjs";
|
|
2
|
+
import "../Function-BP58p9Mp.cjs";
|
|
3
|
+
import "../BaseFunctionBuilder-5QCHkchp.cjs";
|
|
4
|
+
import "../FunctionBuilder-BS1KgxA_.cjs";
|
|
5
|
+
import "../index-Fg3N3EKD.cjs";
|
|
6
|
+
import { Cron, CronExpression, RateExpression, ScheduleExpression } from "../Cron-ztnK6zgU.cjs";
|
|
7
|
+
import { CronBuilder } from "../CronBuilder-Cje9K8lZ.cjs";
|
|
8
|
+
import * as _geekmidas_logger4 from "@geekmidas/logger";
|
|
9
|
+
import * as _geekmidas_services3 from "@geekmidas/services";
|
|
10
|
+
import * as _geekmidas_schema2 from "@geekmidas/schema";
|
|
11
|
+
|
|
12
|
+
//#region src/crons/index.d.ts
|
|
13
|
+
declare const c: CronBuilder<_geekmidas_schema2.ComposableStandardSchema, _geekmidas_services3.Service<string, unknown>[], _geekmidas_logger4.Logger, undefined, undefined, string>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { Cron, CronBuilder, CronExpression, RateExpression, ScheduleExpression, c };
|
|
16
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "../Construct-DIguIyw4.mjs";
|
|
2
|
+
import "../Function-BsBxc2wA.mjs";
|
|
3
|
+
import "../BaseFunctionBuilder-BFPVGnKi.mjs";
|
|
4
|
+
import "../FunctionBuilder-C-PfPN3r.mjs";
|
|
5
|
+
import "../index-CuGR4L7O.mjs";
|
|
6
|
+
import { Cron, CronExpression, RateExpression, ScheduleExpression } from "../Cron-FpAw03k6.mjs";
|
|
7
|
+
import { CronBuilder } from "../CronBuilder-B2clNQSP.mjs";
|
|
8
|
+
import * as _geekmidas_services3 from "@geekmidas/services";
|
|
9
|
+
import * as _geekmidas_logger4 from "@geekmidas/logger";
|
|
10
|
+
import * as _geekmidas_schema2 from "@geekmidas/schema";
|
|
11
|
+
|
|
12
|
+
//#region src/crons/index.d.ts
|
|
13
|
+
declare const c: CronBuilder<_geekmidas_schema2.ComposableStandardSchema, _geekmidas_services3.Service<string, unknown>[], _geekmidas_logger4.Logger, undefined, undefined, string>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { Cron, CronBuilder, CronExpression, RateExpression, ScheduleExpression, c };
|
|
16
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "../Construct-BbKCIPQm.mjs";
|
|
2
|
+
import "../Function-C5mW-38v.mjs";
|
|
3
|
+
import "../BaseFunctionBuilder-BPE9JBbT.mjs";
|
|
4
|
+
import "../FunctionBuilder-CosgPmMl.mjs";
|
|
5
|
+
import "../functions-mM-jcphA.mjs";
|
|
6
|
+
import { Cron } from "../Cron-Bgs6EQOb.mjs";
|
|
7
|
+
import { CronBuilder } from "../CronBuilder-DecAvvcn.mjs";
|
|
8
|
+
|
|
9
|
+
//#region src/crons/index.ts
|
|
10
|
+
const c = new CronBuilder();
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { Cron, CronBuilder, c };
|
|
14
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/crons/index.ts"],"sourcesContent":["export {\n Cron,\n type ScheduleExpression,\n type CronExpression,\n type RateExpression,\n} from './Cron';\nexport { CronBuilder } from './CronBuilder';\n\nimport { CronBuilder } from './CronBuilder';\n\nexport const c = new CronBuilder();\n"],"mappings":";;;;;;;;;AAUA,MAAa,IAAI,IAAI"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
require('../Construct-BSEs6uwW.cjs');
|
|
2
|
+
require('../publisher-lFQleddL.cjs');
|
|
3
|
+
require('../Function-CbO2NZx-.cjs');
|
|
4
|
+
require('../BaseFunctionBuilder-DtO4Nwxm.cjs');
|
|
5
|
+
require('../FunctionBuilder-DuOeWCAl.cjs');
|
|
6
|
+
require('../functions-DVDb5wEA.cjs');
|
|
7
|
+
require('../Endpoint-BaHC9y4Z.cjs');
|
|
8
|
+
const require_AmazonApiGatewayEndpointAdaptor = require('../AmazonApiGatewayEndpointAdaptor-i74DEUbc.cjs');
|
|
9
|
+
|
|
10
|
+
exports.AmazonApiGatewayEndpoint = require_AmazonApiGatewayEndpointAdaptor.AmazonApiGatewayEndpoint;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "../Construct-Bm-PSO2V.cjs";
|
|
2
|
+
import "../types-Bp9ysFXd.cjs";
|
|
3
|
+
import "../Function-BP58p9Mp.cjs";
|
|
4
|
+
import "../BaseFunctionBuilder-5QCHkchp.cjs";
|
|
5
|
+
import "../FunctionBuilder-BS1KgxA_.cjs";
|
|
6
|
+
import "../index-Fg3N3EKD.cjs";
|
|
7
|
+
import "../Endpoint-C7z9YJHK.cjs";
|
|
8
|
+
import { AmazonApiGatewayEndpoint, AmazonApiGatewayEndpointHandlerResponse, AmazonApiGatewayV1EndpointHandler, AmazonApiGatewayV2EndpointHandler, Event, GetInputResponse, HandlerEvent, LoggerContext } from "../AmazonApiGatewayEndpointAdaptor-DtzgQ9Vb.cjs";
|
|
9
|
+
export { AmazonApiGatewayEndpoint, AmazonApiGatewayEndpointHandlerResponse, AmazonApiGatewayV1EndpointHandler, AmazonApiGatewayV2EndpointHandler, Event, GetInputResponse, HandlerEvent, LoggerContext };
|
|
@@ -0,0 +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 { AmazonApiGatewayEndpoint, AmazonApiGatewayEndpointHandlerResponse, AmazonApiGatewayV1EndpointHandler, AmazonApiGatewayV2EndpointHandler, Event, GetInputResponse, HandlerEvent, LoggerContext } from "../AmazonApiGatewayEndpointAdaptor-BoBh7vvD.mjs";
|
|
9
|
+
export { AmazonApiGatewayEndpoint, AmazonApiGatewayEndpointHandlerResponse, AmazonApiGatewayV1EndpointHandler, AmazonApiGatewayV2EndpointHandler, Event, GetInputResponse, HandlerEvent, LoggerContext };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "../Construct-BbKCIPQm.mjs";
|
|
2
|
+
import "../publisher-Bw4770Hi.mjs";
|
|
3
|
+
import "../Function-C5mW-38v.mjs";
|
|
4
|
+
import "../BaseFunctionBuilder-BPE9JBbT.mjs";
|
|
5
|
+
import "../FunctionBuilder-CosgPmMl.mjs";
|
|
6
|
+
import "../functions-mM-jcphA.mjs";
|
|
7
|
+
import "../Endpoint-ierdM62O.mjs";
|
|
8
|
+
import { AmazonApiGatewayEndpoint } from "../AmazonApiGatewayEndpointAdaptor-Cx1oqcqh.mjs";
|
|
9
|
+
|
|
10
|
+
export { AmazonApiGatewayEndpoint };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
require('../Construct-BSEs6uwW.cjs');
|
|
2
|
+
require('../publisher-lFQleddL.cjs');
|
|
3
|
+
require('../Function-CbO2NZx-.cjs');
|
|
4
|
+
require('../BaseFunctionBuilder-DtO4Nwxm.cjs');
|
|
5
|
+
require('../FunctionBuilder-DuOeWCAl.cjs');
|
|
6
|
+
require('../functions-DVDb5wEA.cjs');
|
|
7
|
+
require('../Endpoint-BaHC9y4Z.cjs');
|
|
8
|
+
require('../AmazonApiGatewayEndpointAdaptor-i74DEUbc.cjs');
|
|
9
|
+
require('../parseQueryParams-BzPop4I1.cjs');
|
|
10
|
+
const require_AmazonApiGatewayV1EndpointAdaptor = require('../AmazonApiGatewayV1EndpointAdaptor-GkMAUPL5.cjs');
|
|
11
|
+
|
|
12
|
+
exports.AmazonApiGatewayV1Endpoint = require_AmazonApiGatewayV1EndpointAdaptor.AmazonApiGatewayV1Endpoint;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "../Construct-Bm-PSO2V.cjs";
|
|
2
|
+
import "../types-Bp9ysFXd.cjs";
|
|
3
|
+
import "../Function-BP58p9Mp.cjs";
|
|
4
|
+
import "../BaseFunctionBuilder-5QCHkchp.cjs";
|
|
5
|
+
import "../FunctionBuilder-BS1KgxA_.cjs";
|
|
6
|
+
import "../index-Fg3N3EKD.cjs";
|
|
7
|
+
import "../Endpoint-C7z9YJHK.cjs";
|
|
8
|
+
import "../AmazonApiGatewayEndpointAdaptor-DtzgQ9Vb.cjs";
|
|
9
|
+
import { AmazonApiGatewayV1Endpoint } from "../AmazonApiGatewayV1EndpointAdaptor-Gw-j61qM.cjs";
|
|
10
|
+
export { AmazonApiGatewayV1Endpoint };
|
|
@@ -0,0 +1,10 @@
|
|
|
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 "../AmazonApiGatewayEndpointAdaptor-BoBh7vvD.mjs";
|
|
9
|
+
import { AmazonApiGatewayV1Endpoint } from "../AmazonApiGatewayV1EndpointAdaptor-EhMd1YqV.mjs";
|
|
10
|
+
export { AmazonApiGatewayV1Endpoint };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "../Construct-BbKCIPQm.mjs";
|
|
2
|
+
import "../publisher-Bw4770Hi.mjs";
|
|
3
|
+
import "../Function-C5mW-38v.mjs";
|
|
4
|
+
import "../BaseFunctionBuilder-BPE9JBbT.mjs";
|
|
5
|
+
import "../FunctionBuilder-CosgPmMl.mjs";
|
|
6
|
+
import "../functions-mM-jcphA.mjs";
|
|
7
|
+
import "../Endpoint-ierdM62O.mjs";
|
|
8
|
+
import "../AmazonApiGatewayEndpointAdaptor-Cx1oqcqh.mjs";
|
|
9
|
+
import "../parseQueryParams-BJaRh3OB.mjs";
|
|
10
|
+
import { AmazonApiGatewayV1Endpoint } from "../AmazonApiGatewayV1EndpointAdaptor-CLmBDYsl.mjs";
|
|
11
|
+
|
|
12
|
+
export { AmazonApiGatewayV1Endpoint };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
require('../Construct-BSEs6uwW.cjs');
|
|
2
|
+
require('../publisher-lFQleddL.cjs');
|
|
3
|
+
require('../Function-CbO2NZx-.cjs');
|
|
4
|
+
require('../BaseFunctionBuilder-DtO4Nwxm.cjs');
|
|
5
|
+
require('../FunctionBuilder-DuOeWCAl.cjs');
|
|
6
|
+
require('../functions-DVDb5wEA.cjs');
|
|
7
|
+
require('../Endpoint-BaHC9y4Z.cjs');
|
|
8
|
+
require('../AmazonApiGatewayEndpointAdaptor-i74DEUbc.cjs');
|
|
9
|
+
require('../parseQueryParams-BzPop4I1.cjs');
|
|
10
|
+
const require_AmazonApiGatewayV2EndpointAdaptor = require('../AmazonApiGatewayV2EndpointAdaptor-YlFoFSS9.cjs');
|
|
11
|
+
|
|
12
|
+
exports.AmazonApiGatewayV2Endpoint = require_AmazonApiGatewayV2EndpointAdaptor.AmazonApiGatewayV2Endpoint;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "../Construct-Bm-PSO2V.cjs";
|
|
2
|
+
import "../types-Bp9ysFXd.cjs";
|
|
3
|
+
import "../Function-BP58p9Mp.cjs";
|
|
4
|
+
import "../BaseFunctionBuilder-5QCHkchp.cjs";
|
|
5
|
+
import "../FunctionBuilder-BS1KgxA_.cjs";
|
|
6
|
+
import "../index-Fg3N3EKD.cjs";
|
|
7
|
+
import "../Endpoint-C7z9YJHK.cjs";
|
|
8
|
+
import "../AmazonApiGatewayEndpointAdaptor-DtzgQ9Vb.cjs";
|
|
9
|
+
import { AmazonApiGatewayV2Endpoint } from "../AmazonApiGatewayV2EndpointAdaptor-LUlpwmUW.cjs";
|
|
10
|
+
export { AmazonApiGatewayV2Endpoint };
|
|
@@ -0,0 +1,10 @@
|
|
|
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 "../AmazonApiGatewayEndpointAdaptor-BoBh7vvD.mjs";
|
|
9
|
+
import { AmazonApiGatewayV2Endpoint } from "../AmazonApiGatewayV2EndpointAdaptor-zfd1gqXA.mjs";
|
|
10
|
+
export { AmazonApiGatewayV2Endpoint };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "../Construct-BbKCIPQm.mjs";
|
|
2
|
+
import "../publisher-Bw4770Hi.mjs";
|
|
3
|
+
import "../Function-C5mW-38v.mjs";
|
|
4
|
+
import "../BaseFunctionBuilder-BPE9JBbT.mjs";
|
|
5
|
+
import "../FunctionBuilder-CosgPmMl.mjs";
|
|
6
|
+
import "../functions-mM-jcphA.mjs";
|
|
7
|
+
import "../Endpoint-ierdM62O.mjs";
|
|
8
|
+
import "../AmazonApiGatewayEndpointAdaptor-Cx1oqcqh.mjs";
|
|
9
|
+
import "../parseQueryParams-BJaRh3OB.mjs";
|
|
10
|
+
import { AmazonApiGatewayV2Endpoint } from "../AmazonApiGatewayV2EndpointAdaptor-3RqegmJC.mjs";
|
|
11
|
+
|
|
12
|
+
export { AmazonApiGatewayV2Endpoint };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
require('../Construct-BSEs6uwW.cjs');
|
|
2
|
+
require('../Function-CbO2NZx-.cjs');
|
|
3
|
+
require('../BaseFunctionBuilder-DtO4Nwxm.cjs');
|
|
4
|
+
require('../FunctionBuilder-DuOeWCAl.cjs');
|
|
5
|
+
require('../functions-DVDb5wEA.cjs');
|
|
6
|
+
const require_Endpoint = require('../Endpoint-BaHC9y4Z.cjs');
|
|
7
|
+
|
|
8
|
+
exports.Endpoint = require_Endpoint.Endpoint;
|
|
9
|
+
exports.SuccessStatus = require_Endpoint.SuccessStatus;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "../Construct-Bm-PSO2V.cjs";
|
|
2
|
+
import "../types-Bp9ysFXd.cjs";
|
|
3
|
+
import "../Function-BP58p9Mp.cjs";
|
|
4
|
+
import "../BaseFunctionBuilder-5QCHkchp.cjs";
|
|
5
|
+
import "../FunctionBuilder-BS1KgxA_.cjs";
|
|
6
|
+
import "../index-Fg3N3EKD.cjs";
|
|
7
|
+
import { AuthorizeContext, AuthorizeFn, ConvertRouteParams, Endpoint, EndpointContext, EndpointEvent, EndpointHandler, EndpointHeaders, EndpointInput, EndpointOpenApiSchema, EndpointOptions, EndpointOutput, EndpointSchemas, HeaderFn, MultiHeaderFn, SessionContext, SessionFn, SingleHeaderFn, SuccessStatus } from "../Endpoint-C7z9YJHK.cjs";
|
|
8
|
+
export { AuthorizeContext, AuthorizeFn, ConvertRouteParams, Endpoint, EndpointContext, EndpointEvent, EndpointHandler, EndpointHeaders, EndpointInput, EndpointOpenApiSchema, EndpointOptions, EndpointOutput, EndpointSchemas, HeaderFn, MultiHeaderFn, SessionContext, SessionFn, SingleHeaderFn, SuccessStatus };
|
|
@@ -0,0 +1,8 @@
|
|
|
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 { AuthorizeContext, AuthorizeFn, ConvertRouteParams, Endpoint, EndpointContext, EndpointEvent, EndpointHandler, EndpointHeaders, EndpointInput, EndpointOpenApiSchema, EndpointOptions, EndpointOutput, EndpointSchemas, HeaderFn, MultiHeaderFn, SessionContext, SessionFn, SingleHeaderFn, SuccessStatus } from "../Endpoint-DCn53Vd8.mjs";
|
|
8
|
+
export { AuthorizeContext, AuthorizeFn, ConvertRouteParams, Endpoint, EndpointContext, EndpointEvent, EndpointHandler, EndpointHeaders, EndpointInput, EndpointOpenApiSchema, EndpointOptions, EndpointOutput, EndpointSchemas, HeaderFn, MultiHeaderFn, SessionContext, SessionFn, SingleHeaderFn, SuccessStatus };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "../Construct-BbKCIPQm.mjs";
|
|
2
|
+
import "../Function-C5mW-38v.mjs";
|
|
3
|
+
import "../BaseFunctionBuilder-BPE9JBbT.mjs";
|
|
4
|
+
import "../FunctionBuilder-CosgPmMl.mjs";
|
|
5
|
+
import "../functions-mM-jcphA.mjs";
|
|
6
|
+
import { Endpoint, SuccessStatus } from "../Endpoint-ierdM62O.mjs";
|
|
7
|
+
|
|
8
|
+
export { Endpoint, SuccessStatus };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
require('../Construct-BSEs6uwW.cjs');
|
|
2
|
+
require('../Function-CbO2NZx-.cjs');
|
|
3
|
+
require('../BaseFunctionBuilder-DtO4Nwxm.cjs');
|
|
4
|
+
require('../FunctionBuilder-DuOeWCAl.cjs');
|
|
5
|
+
require('../functions-DVDb5wEA.cjs');
|
|
6
|
+
require('../Endpoint-BaHC9y4Z.cjs');
|
|
7
|
+
const require_EndpointBuilder = require('../EndpointBuilder-BHFSpbPR.cjs');
|
|
8
|
+
|
|
9
|
+
exports.EndpointBuilder = require_EndpointBuilder.EndpointBuilder;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "../Construct-Bm-PSO2V.cjs";
|
|
2
|
+
import "../types-Bp9ysFXd.cjs";
|
|
3
|
+
import "../Function-BP58p9Mp.cjs";
|
|
4
|
+
import "../BaseFunctionBuilder-5QCHkchp.cjs";
|
|
5
|
+
import "../FunctionBuilder-BS1KgxA_.cjs";
|
|
6
|
+
import "../index-Fg3N3EKD.cjs";
|
|
7
|
+
import "../Endpoint-C7z9YJHK.cjs";
|
|
8
|
+
import { EndpointBuilder } from "../EndpointBuilder-CP9RGwZH.cjs";
|
|
9
|
+
export { EndpointBuilder };
|
|
@@ -0,0 +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 { EndpointBuilder } from "../EndpointBuilder-Bfnb2oJr.mjs";
|
|
9
|
+
export { EndpointBuilder };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "../Construct-BbKCIPQm.mjs";
|
|
2
|
+
import "../Function-C5mW-38v.mjs";
|
|
3
|
+
import "../BaseFunctionBuilder-BPE9JBbT.mjs";
|
|
4
|
+
import "../FunctionBuilder-CosgPmMl.mjs";
|
|
5
|
+
import "../functions-mM-jcphA.mjs";
|
|
6
|
+
import "../Endpoint-ierdM62O.mjs";
|
|
7
|
+
import { EndpointBuilder } from "../EndpointBuilder-BLUsoK3l.mjs";
|
|
8
|
+
|
|
9
|
+
export { EndpointBuilder };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
require('../Construct-BSEs6uwW.cjs');
|
|
2
|
+
require('../Function-CbO2NZx-.cjs');
|
|
3
|
+
require('../BaseFunctionBuilder-DtO4Nwxm.cjs');
|
|
4
|
+
require('../FunctionBuilder-DuOeWCAl.cjs');
|
|
5
|
+
require('../functions-DVDb5wEA.cjs');
|
|
6
|
+
require('../Endpoint-BaHC9y4Z.cjs');
|
|
7
|
+
require('../EndpointBuilder-BHFSpbPR.cjs');
|
|
8
|
+
const require_EndpointFactory = require('../EndpointFactory-CXX4E6Gx.cjs');
|
|
9
|
+
|
|
10
|
+
exports.EndpointFactory = require_EndpointFactory.EndpointFactory;
|
|
11
|
+
exports.e = require_EndpointFactory.e;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "../Construct-Bm-PSO2V.cjs";
|
|
2
|
+
import "../types-Bp9ysFXd.cjs";
|
|
3
|
+
import "../Function-BP58p9Mp.cjs";
|
|
4
|
+
import "../BaseFunctionBuilder-5QCHkchp.cjs";
|
|
5
|
+
import "../FunctionBuilder-BS1KgxA_.cjs";
|
|
6
|
+
import "../index-Fg3N3EKD.cjs";
|
|
7
|
+
import "../Endpoint-C7z9YJHK.cjs";
|
|
8
|
+
import "../EndpointBuilder-CP9RGwZH.cjs";
|
|
9
|
+
import { EndpointFactory, EndpointFactoryOptions, JoinPaths, RemoveTrailingSlash, e } from "../EndpointFactory-D2zgWbXZ.cjs";
|
|
10
|
+
export { EndpointFactory, EndpointFactoryOptions, JoinPaths, RemoveTrailingSlash, e };
|
|
@@ -0,0 +1,10 @@
|
|
|
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 "../EndpointBuilder-Bfnb2oJr.mjs";
|
|
9
|
+
import { EndpointFactory, EndpointFactoryOptions, JoinPaths, RemoveTrailingSlash, e } from "../EndpointFactory-CNtMXgIh.mjs";
|
|
10
|
+
export { EndpointFactory, EndpointFactoryOptions, JoinPaths, RemoveTrailingSlash, e };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "../Construct-BbKCIPQm.mjs";
|
|
2
|
+
import "../Function-C5mW-38v.mjs";
|
|
3
|
+
import "../BaseFunctionBuilder-BPE9JBbT.mjs";
|
|
4
|
+
import "../FunctionBuilder-CosgPmMl.mjs";
|
|
5
|
+
import "../functions-mM-jcphA.mjs";
|
|
6
|
+
import "../Endpoint-ierdM62O.mjs";
|
|
7
|
+
import "../EndpointBuilder-BLUsoK3l.mjs";
|
|
8
|
+
import { EndpointFactory, e } from "../EndpointFactory-BYdDVCNj.mjs";
|
|
9
|
+
|
|
10
|
+
export { EndpointFactory, e };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
require('../Construct-BSEs6uwW.cjs');
|
|
2
|
+
require('../publisher-lFQleddL.cjs');
|
|
3
|
+
require('../Function-CbO2NZx-.cjs');
|
|
4
|
+
require('../BaseFunctionBuilder-DtO4Nwxm.cjs');
|
|
5
|
+
require('../FunctionBuilder-DuOeWCAl.cjs');
|
|
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');
|
|
11
|
+
|
|
12
|
+
exports.HonoEndpoint = require_HonoEndpointAdaptor.HonoEndpoint;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "../Construct-Bm-PSO2V.cjs";
|
|
2
|
+
import "../types-Bp9ysFXd.cjs";
|
|
3
|
+
import "../Function-BP58p9Mp.cjs";
|
|
4
|
+
import "../BaseFunctionBuilder-5QCHkchp.cjs";
|
|
5
|
+
import "../FunctionBuilder-BS1KgxA_.cjs";
|
|
6
|
+
import "../index-Fg3N3EKD.cjs";
|
|
7
|
+
import "../Endpoint-C7z9YJHK.cjs";
|
|
8
|
+
import { HonoEndpoint, HonoEndpointOptions } from "../HonoEndpointAdaptor-B6lW9Q1k.cjs";
|
|
9
|
+
export { HonoEndpoint, HonoEndpointOptions };
|
|
@@ -0,0 +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";
|
|
9
|
+
export { HonoEndpoint, HonoEndpointOptions };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "../Construct-BbKCIPQm.mjs";
|
|
2
|
+
import "../publisher-Bw4770Hi.mjs";
|
|
3
|
+
import "../Function-C5mW-38v.mjs";
|
|
4
|
+
import "../BaseFunctionBuilder-BPE9JBbT.mjs";
|
|
5
|
+
import "../FunctionBuilder-CosgPmMl.mjs";
|
|
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";
|
|
11
|
+
|
|
12
|
+
export { HonoEndpoint };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
const require_chunk = require('../chunk-CUT6urMc.cjs');
|
|
2
|
+
require('../Construct-BSEs6uwW.cjs');
|
|
3
|
+
const require_publisher = require('../publisher-lFQleddL.cjs');
|
|
4
|
+
require('../Function-CbO2NZx-.cjs');
|
|
5
|
+
require('../BaseFunctionBuilder-DtO4Nwxm.cjs');
|
|
6
|
+
require('../FunctionBuilder-DuOeWCAl.cjs');
|
|
7
|
+
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"));
|
|
11
|
+
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TestEndpointAdaptor.cjs","names":["endpoint: Endpoint<\n TRoute,\n TMethod,\n TInput,\n TOutSchema,\n TServices,\n TLogger,\n TSession,\n TEventPublisher,\n TEventPublisherServiceName\n >","EnvironmentParser","serviceDiscovery: ServiceDiscovery<\n any,\n any\n >","ctx: TestRequestAdaptor<\n TInput,\n TServices,\n TEventPublisher,\n TEventPublisherServiceName\n >"],"sources":["../../src/endpoints/TestEndpointAdaptor.ts"],"sourcesContent":["import { EnvironmentParser } from '@geekmidas/envkit';\nimport type { EventPublisher } from '@geekmidas/events';\nimport type { Logger } from '@geekmidas/logger';\nimport type {\n InferComposableStandardSchema,\n InferStandardSchema,\n} from '@geekmidas/schema';\nimport {\n type Service,\n ServiceDiscovery,\n type ServiceRecord,\n} from '@geekmidas/services';\nimport type { StandardSchemaV1 } from '@standard-schema/spec';\nimport { publishConstructEvents } from '../publisher';\nimport type { HttpMethod } from '../types';\nimport { Endpoint, type EndpointSchemas } from './Endpoint';\n\nexport class TestEndpointAdaptor<\n TRoute extends string,\n TMethod extends HttpMethod,\n TInput extends EndpointSchemas = {},\n TOutSchema extends StandardSchemaV1 | undefined = undefined,\n TServices extends Service[] = [],\n TLogger extends Logger = Logger,\n TSession = unknown,\n TEventPublisher extends EventPublisher<any> | undefined = undefined,\n TEventPublisherServiceName extends string = string,\n> {\n static getDefaultServiceDiscover<\n TRoute extends string,\n TMethod extends HttpMethod,\n TInput extends EndpointSchemas = {},\n TOutSchema extends StandardSchemaV1 | undefined = undefined,\n TServices extends Service[] = [],\n TLogger extends Logger = Logger,\n TSession = unknown,\n TEventPublisher extends EventPublisher<any> | undefined = undefined,\n TEventPublisherServiceName extends string = string,\n >(\n endpoint: Endpoint<\n TRoute,\n TMethod,\n TInput,\n TOutSchema,\n TServices,\n TLogger,\n TSession,\n TEventPublisher,\n TEventPublisherServiceName\n >,\n ) {\n return ServiceDiscovery.getInstance(\n endpoint.logger,\n new EnvironmentParser({}),\n );\n }\n constructor(\n private readonly endpoint: Endpoint<\n TRoute,\n TMethod,\n TInput,\n TOutSchema,\n TServices,\n TLogger,\n TSession,\n TEventPublisher,\n TEventPublisherServiceName\n >,\n private serviceDiscovery: ServiceDiscovery<\n any,\n any\n > = TestEndpointAdaptor.getDefaultServiceDiscover(endpoint),\n ) {}\n\n async request(\n ctx: TestRequestAdaptor<\n TInput,\n TServices,\n TEventPublisher,\n TEventPublisherServiceName\n >,\n ): Promise<InferStandardSchema<TOutSchema>> {\n const body = await this.endpoint.parseInput((ctx as any).body, 'body');\n const query = await this.endpoint.parseInput((ctx as any).query, 'query');\n const params = await this.endpoint.parseInput(\n (ctx as any).params,\n 'params',\n );\n\n const header = Endpoint.createHeaders(ctx.headers);\n const logger = this.endpoint.logger.child({\n route: this.endpoint.route,\n host: ctx.headers.host,\n method: this.endpoint.method,\n }) as TLogger;\n const session = await this.endpoint.getSession({\n logger,\n services: ctx.services,\n header,\n });\n\n const response = await this.endpoint.handler({\n body,\n query,\n params,\n session,\n services: ctx.services,\n logger,\n header,\n } as any);\n\n const output = await this.endpoint.parseOutput(response);\n ctx.publisher && (await this.serviceDiscovery.register([ctx.publisher]));\n\n await publishConstructEvents(this.endpoint, output, this.serviceDiscovery);\n\n return output;\n }\n}\n\nexport type TestRequestAdaptor<\n TInput extends EndpointSchemas = {},\n TServices extends Service[] = [],\n TEventPublisher extends EventPublisher<any> | undefined = undefined,\n TEventPublisherServiceName extends string = string,\n> = {\n services: ServiceRecord<TServices>;\n headers: Record<string, string>;\n publisher?: Service<TEventPublisherServiceName, TEventPublisher>;\n} & InferComposableStandardSchema<TInput>;\n"],"mappings":";;;;;;;;;;;;AAiBA,IAAa,sBAAb,MAAa,oBAUX;CACA,OAAO,0BAWLA,UAWA;AACA,SAAO,sCAAiB,YACtB,SAAS,QACT,IAAIC,qCAAkB,CAAE,GACzB;CACF;CACD,YACmBD,UAWTE,mBAGJ,oBAAoB,0BAA0B,SAAS,EAC3D;EAfiB;EAWT;CAIN;CAEJ,MAAM,QACJC,KAM0C;EAC1C,MAAM,OAAO,MAAM,KAAK,SAAS,WAAY,IAAY,MAAM,OAAO;EACtE,MAAM,QAAQ,MAAM,KAAK,SAAS,WAAY,IAAY,OAAO,QAAQ;EACzE,MAAM,SAAS,MAAM,KAAK,SAAS,WAChC,IAAY,QACb,SACD;EAED,MAAM,SAAS,0BAAS,cAAc,IAAI,QAAQ;EAClD,MAAM,SAAS,KAAK,SAAS,OAAO,MAAM;GACxC,OAAO,KAAK,SAAS;GACrB,MAAM,IAAI,QAAQ;GAClB,QAAQ,KAAK,SAAS;EACvB,EAAC;EACF,MAAM,UAAU,MAAM,KAAK,SAAS,WAAW;GAC7C;GACA,UAAU,IAAI;GACd;EACD,EAAC;EAEF,MAAM,WAAW,MAAM,KAAK,SAAS,QAAQ;GAC3C;GACA;GACA;GACA;GACA,UAAU,IAAI;GACd;GACA;EACD,EAAQ;EAET,MAAM,SAAS,MAAM,KAAK,SAAS,YAAY,SAAS;AACxD,MAAI,aAAc,MAAM,KAAK,iBAAiB,SAAS,CAAC,IAAI,SAAU,EAAC;AAEvE,QAAM,yCAAuB,KAAK,UAAU,QAAQ,KAAK,iBAAiB;AAE1E,SAAO;CACR;AACF"}
|