@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.
- package/dist/{AWSLambdaFunction-CpHFE2m6.d.mts → AWSLambdaFunction-CANc3Qo2.d.mts} +3 -3
- package/dist/{AWSLambdaFunction-qA5LqPsv.cjs → AWSLambdaFunction-DW9qrBNR.cjs} +2 -2
- package/dist/{AWSLambdaFunction-qA5LqPsv.cjs.map → AWSLambdaFunction-DW9qrBNR.cjs.map} +1 -1
- package/dist/{AWSLambdaFunction-DWIZYsCy.mjs → AWSLambdaFunction-nic3vzt3.mjs} +2 -2
- package/dist/{AWSLambdaFunction-DWIZYsCy.mjs.map → AWSLambdaFunction-nic3vzt3.mjs.map} +1 -1
- package/dist/{AWSLambdaSubscriberAdaptor-G8y3YkWj.mjs → AWSLambdaSubscriberAdaptor-BhqrpTVc.mjs} +1 -1
- package/dist/{AWSLambdaSubscriberAdaptor-G8y3YkWj.mjs.map → AWSLambdaSubscriberAdaptor-BhqrpTVc.mjs.map} +1 -1
- package/dist/{AWSLambdaSubscriberAdaptor-C1wQuucQ.d.mts → AWSLambdaSubscriberAdaptor-C6JYIZxn.d.mts} +2 -2
- package/dist/{AWSLambdaSubscriberAdaptor-CmPZ10JF.cjs → AWSLambdaSubscriberAdaptor-ZuQAhW9_.cjs} +1 -1
- package/dist/{AWSLambdaSubscriberAdaptor-CmPZ10JF.cjs.map → AWSLambdaSubscriberAdaptor-ZuQAhW9_.cjs.map} +1 -1
- package/dist/{AmazonApiGatewayEndpointAdaptor-BoBh7vvD.d.mts → AmazonApiGatewayEndpointAdaptor-DNZLntHj.d.mts} +3 -3
- package/dist/{AmazonApiGatewayEndpointAdaptor-i74DEUbc.cjs → AmazonApiGatewayEndpointAdaptor-D_Q_NTMT.cjs} +3 -3
- package/dist/{AmazonApiGatewayEndpointAdaptor-i74DEUbc.cjs.map → AmazonApiGatewayEndpointAdaptor-D_Q_NTMT.cjs.map} +1 -1
- package/dist/{AmazonApiGatewayEndpointAdaptor-Cx1oqcqh.mjs → AmazonApiGatewayEndpointAdaptor-QzIAnWzS.mjs} +3 -3
- package/dist/{AmazonApiGatewayEndpointAdaptor-Cx1oqcqh.mjs.map → AmazonApiGatewayEndpointAdaptor-QzIAnWzS.mjs.map} +1 -1
- package/dist/{AmazonApiGatewayV1EndpointAdaptor-CLmBDYsl.mjs → AmazonApiGatewayV1EndpointAdaptor-BF5bGWV1.mjs} +3 -3
- package/dist/{AmazonApiGatewayV1EndpointAdaptor-CLmBDYsl.mjs.map → AmazonApiGatewayV1EndpointAdaptor-BF5bGWV1.mjs.map} +1 -1
- package/dist/{AmazonApiGatewayV1EndpointAdaptor-GkMAUPL5.cjs → AmazonApiGatewayV1EndpointAdaptor-Bh4tckwd.cjs} +3 -3
- package/dist/{AmazonApiGatewayV1EndpointAdaptor-GkMAUPL5.cjs.map → AmazonApiGatewayV1EndpointAdaptor-Bh4tckwd.cjs.map} +1 -1
- package/dist/{AmazonApiGatewayV1EndpointAdaptor-EhMd1YqV.d.mts → AmazonApiGatewayV1EndpointAdaptor-DbJa4cpU.d.mts} +4 -4
- package/dist/{AmazonApiGatewayV2EndpointAdaptor-3RqegmJC.mjs → AmazonApiGatewayV2EndpointAdaptor-BOaOkLXF.mjs} +3 -3
- package/dist/{AmazonApiGatewayV2EndpointAdaptor-3RqegmJC.mjs.map → AmazonApiGatewayV2EndpointAdaptor-BOaOkLXF.mjs.map} +1 -1
- package/dist/{AmazonApiGatewayV2EndpointAdaptor-zfd1gqXA.d.mts → AmazonApiGatewayV2EndpointAdaptor-BlKn-KJ6.d.mts} +4 -4
- package/dist/{AmazonApiGatewayV2EndpointAdaptor-YlFoFSS9.cjs → AmazonApiGatewayV2EndpointAdaptor-L4Ywv3Pk.cjs} +3 -3
- package/dist/{AmazonApiGatewayV2EndpointAdaptor-YlFoFSS9.cjs.map → AmazonApiGatewayV2EndpointAdaptor-L4Ywv3Pk.cjs.map} +1 -1
- package/dist/{BaseFunctionBuilder-BFPVGnKi.d.mts → BaseFunctionBuilder-Dda7AiID.d.mts} +2 -2
- package/dist/{Construct-DIguIyw4.d.mts → Construct-DdyYENBD.d.mts} +1 -1
- package/dist/Construct.d.mts +1 -1
- package/dist/{Cron-Bgs6EQOb.mjs → Cron-BgJo6EW6.mjs} +1 -1
- package/dist/{Cron-Bgs6EQOb.mjs.map → Cron-BgJo6EW6.mjs.map} +1 -1
- package/dist/{Cron-ztnK6zgU.d.cts → Cron-BxMXmn4t.d.cts} +1 -1
- package/dist/{Cron-DQiCj3ef.cjs → Cron-JYYGj5ik.cjs} +1 -1
- package/dist/{Cron-DQiCj3ef.cjs.map → Cron-JYYGj5ik.cjs.map} +1 -1
- package/dist/{Cron-FpAw03k6.d.mts → Cron-NDBlJhb3.d.mts} +2 -2
- package/dist/{CronBuilder-DIBqJkh_.cjs → CronBuilder-BDDS21OP.cjs} +2 -2
- package/dist/{CronBuilder-DIBqJkh_.cjs.map → CronBuilder-BDDS21OP.cjs.map} +1 -1
- package/dist/{CronBuilder-Cje9K8lZ.d.cts → CronBuilder-C6K5AbIO.d.cts} +2 -2
- package/dist/{CronBuilder-DecAvvcn.mjs → CronBuilder-DVuhB_kA.mjs} +2 -2
- package/dist/{CronBuilder-DecAvvcn.mjs.map → CronBuilder-DVuhB_kA.mjs.map} +1 -1
- package/dist/{CronBuilder-B2clNQSP.d.mts → CronBuilder-s5x8V8hH.d.mts} +4 -4
- package/dist/{Endpoint-BaHC9y4Z.cjs → Endpoint-D1nnEsBU.cjs} +1 -1
- package/dist/{Endpoint-BaHC9y4Z.cjs.map → Endpoint-D1nnEsBU.cjs.map} +1 -1
- package/dist/{Endpoint-ierdM62O.mjs → Endpoint-DNlmybXV.mjs} +1 -1
- package/dist/{Endpoint-ierdM62O.mjs.map → Endpoint-DNlmybXV.mjs.map} +1 -1
- package/dist/{Endpoint-DCn53Vd8.d.mts → Endpoint-DYUjJdEs.d.mts} +3 -3
- package/dist/{EndpointBuilder-CP9RGwZH.d.cts → EndpointBuilder-1fw103D6.d.cts} +1 -1
- package/dist/{EndpointBuilder-Bfnb2oJr.d.mts → EndpointBuilder-B2iScUND.d.mts} +4 -4
- package/dist/{EndpointBuilder-BHFSpbPR.cjs → EndpointBuilder-BhRd626m.cjs} +2 -2
- package/dist/{EndpointBuilder-BHFSpbPR.cjs.map → EndpointBuilder-BhRd626m.cjs.map} +1 -1
- package/dist/{EndpointBuilder-BLUsoK3l.mjs → EndpointBuilder-CpjIMYb0.mjs} +2 -2
- package/dist/{EndpointBuilder-BLUsoK3l.mjs.map → EndpointBuilder-CpjIMYb0.mjs.map} +1 -1
- package/dist/{EndpointFactory-CXX4E6Gx.cjs → EndpointFactory-ChmVHWim.cjs} +2 -2
- package/dist/{EndpointFactory-CXX4E6Gx.cjs.map → EndpointFactory-ChmVHWim.cjs.map} +1 -1
- package/dist/{EndpointFactory-D2zgWbXZ.d.cts → EndpointFactory-D576BhaH.d.cts} +2 -2
- package/dist/{EndpointFactory-BYdDVCNj.mjs → EndpointFactory-DLpEbLzL.mjs} +2 -2
- package/dist/{EndpointFactory-BYdDVCNj.mjs.map → EndpointFactory-DLpEbLzL.mjs.map} +1 -1
- package/dist/{EndpointFactory-CNtMXgIh.d.mts → EndpointFactory-DZQpM-9K.d.mts} +3 -3
- package/dist/{Function-BsBxc2wA.d.mts → Function-C98H68DW.d.mts} +2 -2
- package/dist/{FunctionBuilder-C-PfPN3r.d.mts → FunctionBuilder-DBwR7jg7.d.mts} +4 -4
- package/dist/{FunctionExecutionWrapper-DvglBBjE.d.mts → FunctionExecutionWrapper-B0V7V8YS.d.mts} +2 -2
- package/dist/{FunctionExecutionWrapper-XGrSAAPD.mjs → FunctionExecutionWrapper-CPzSbfaI.mjs} +1 -1
- package/dist/{FunctionExecutionWrapper-XGrSAAPD.mjs.map → FunctionExecutionWrapper-CPzSbfaI.mjs.map} +1 -1
- package/dist/{FunctionExecutionWrapper-CElXEjPe.cjs → FunctionExecutionWrapper-UzfHDM2R.cjs} +1 -1
- package/dist/{FunctionExecutionWrapper-CElXEjPe.cjs.map → FunctionExecutionWrapper-UzfHDM2R.cjs.map} +1 -1
- package/dist/{HonoEndpointAdaptor-B0IO1zj2.d.mts → HonoEndpointAdaptor-01cH100U.d.mts} +5 -5
- package/dist/{HonoEndpointAdaptor-B4snrp7v.cjs → HonoEndpointAdaptor-6LERutxi.cjs} +4 -4
- package/dist/{HonoEndpointAdaptor-B4snrp7v.cjs.map → HonoEndpointAdaptor-6LERutxi.cjs.map} +1 -1
- package/dist/{HonoEndpointAdaptor-D-M4-6Tf.mjs → HonoEndpointAdaptor-fs2928iO.mjs} +4 -4
- package/dist/{HonoEndpointAdaptor-D-M4-6Tf.mjs.map → HonoEndpointAdaptor-fs2928iO.mjs.map} +1 -1
- package/dist/{HonoEndpointAdaptor-B6lW9Q1k.d.cts → HonoEndpointAdaptor-ua6mp3gt.d.cts} +3 -3
- package/dist/{Subscriber-BwuCaC9G.mjs → Subscriber-BTwKnz3c.mjs} +1 -1
- package/dist/{Subscriber-BwuCaC9G.mjs.map → Subscriber-BTwKnz3c.mjs.map} +1 -1
- package/dist/{Subscriber-THGsj7Iy.d.mts → Subscriber-BxH6n8zQ.d.mts} +2 -2
- package/dist/{Subscriber-iMRFG7ba.cjs → Subscriber-G7EUI3yc.cjs} +1 -1
- package/dist/{Subscriber-iMRFG7ba.cjs.map → Subscriber-G7EUI3yc.cjs.map} +1 -1
- package/dist/{SubscriberBuilder-CiPxgnKT.d.mts → SubscriberBuilder-BpSDPzBz.d.mts} +2 -2
- package/dist/{SubscriberBuilder-Dhz0C_t-.mjs → SubscriberBuilder-C1me_972.mjs} +2 -2
- package/dist/{SubscriberBuilder-Dhz0C_t-.mjs.map → SubscriberBuilder-C1me_972.mjs.map} +1 -1
- package/dist/{SubscriberBuilder-wthr-FL9.cjs → SubscriberBuilder-C6iZvuDe.cjs} +2 -2
- package/dist/{SubscriberBuilder-wthr-FL9.cjs.map → SubscriberBuilder-C6iZvuDe.cjs.map} +1 -1
- package/dist/{SubscriberBuilder-DuIgxuzc.d.cts → SubscriberBuilder-DgljKtYu.d.cts} +1 -1
- package/dist/TestEndpointAdaptor-B4SvJvK-.cjs +54 -0
- package/dist/TestEndpointAdaptor-B4SvJvK-.cjs.map +1 -0
- package/dist/TestEndpointAdaptor-CHcgyI3V.d.cts +24 -0
- package/dist/TestEndpointAdaptor-CelYsQi0.mjs +48 -0
- package/dist/TestEndpointAdaptor-CelYsQi0.mjs.map +1 -0
- package/dist/TestEndpointAdaptor-Da0ooGt2.d.mts +24 -0
- package/dist/adaptors/aws.cjs +8 -8
- package/dist/adaptors/aws.d.cts +1 -1
- package/dist/adaptors/aws.d.mts +14 -14
- package/dist/adaptors/aws.mjs +8 -8
- package/dist/adaptors/hono.cjs +4 -4
- package/dist/adaptors/hono.d.cts +2 -2
- package/dist/adaptors/hono.d.mts +8 -8
- package/dist/adaptors/hono.mjs +4 -4
- package/dist/adaptors/testing.cjs +10 -0
- package/dist/adaptors/testing.d.cts +9 -0
- package/dist/adaptors/testing.d.mts +9 -0
- package/dist/adaptors/testing.mjs +10 -0
- package/dist/crons/Cron.cjs +1 -1
- package/dist/crons/Cron.d.cts +2 -2
- package/dist/crons/Cron.d.mts +6 -6
- package/dist/crons/Cron.mjs +1 -1
- package/dist/crons/CronBuilder.cjs +2 -2
- package/dist/crons/CronBuilder.d.cts +3 -3
- package/dist/crons/CronBuilder.d.mts +7 -7
- package/dist/crons/CronBuilder.mjs +2 -2
- package/dist/crons/index.cjs +2 -2
- package/dist/crons/index.d.cts +7 -7
- package/dist/crons/index.d.mts +11 -11
- package/dist/crons/index.mjs +2 -2
- package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.cjs +2 -2
- package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.d.cts +1 -1
- package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.d.mts +8 -8
- package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.mjs +2 -2
- package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.cjs +4 -4
- package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.d.cts +1 -1
- package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.d.mts +9 -9
- package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.mjs +4 -4
- package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.cjs +4 -4
- package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.d.cts +1 -1
- package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.d.mts +9 -9
- package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.mjs +4 -4
- package/dist/endpoints/Endpoint.cjs +1 -1
- package/dist/endpoints/Endpoint.d.cts +1 -1
- package/dist/endpoints/Endpoint.d.mts +7 -7
- package/dist/endpoints/Endpoint.mjs +1 -1
- package/dist/endpoints/EndpointBuilder.cjs +2 -2
- package/dist/endpoints/EndpointBuilder.d.cts +2 -2
- package/dist/endpoints/EndpointBuilder.d.mts +8 -8
- package/dist/endpoints/EndpointBuilder.mjs +2 -2
- package/dist/endpoints/EndpointFactory.cjs +3 -3
- package/dist/endpoints/EndpointFactory.d.cts +3 -3
- package/dist/endpoints/EndpointFactory.d.mts +9 -9
- package/dist/endpoints/EndpointFactory.mjs +3 -3
- package/dist/endpoints/HonoEndpointAdaptor.cjs +4 -4
- package/dist/endpoints/HonoEndpointAdaptor.d.cts +2 -2
- package/dist/endpoints/HonoEndpointAdaptor.d.mts +8 -8
- package/dist/endpoints/HonoEndpointAdaptor.mjs +4 -4
- package/dist/endpoints/TestEndpointAdaptor.cjs +4 -48
- package/dist/endpoints/TestEndpointAdaptor.d.cts +5 -25
- package/dist/endpoints/TestEndpointAdaptor.d.mts +9 -29
- package/dist/endpoints/TestEndpointAdaptor.mjs +4 -47
- package/dist/endpoints/helpers.cjs +2 -2
- package/dist/endpoints/helpers.d.cts +1 -1
- package/dist/endpoints/helpers.d.mts +7 -7
- package/dist/endpoints/helpers.mjs +2 -2
- package/dist/endpoints/index.cjs +3 -3
- package/dist/endpoints/index.d.cts +5 -5
- package/dist/endpoints/index.d.mts +11 -11
- package/dist/endpoints/index.mjs +3 -3
- package/dist/endpoints/parseHonoQuery.cjs +1 -1
- package/dist/endpoints/parseHonoQuery.mjs +1 -1
- package/dist/endpoints/parseQueryParams.cjs +1 -1
- package/dist/endpoints/parseQueryParams.mjs +1 -1
- package/dist/functions/AWSLambdaFunction.cjs +2 -2
- package/dist/functions/AWSLambdaFunction.d.mts +4 -4
- package/dist/functions/AWSLambdaFunction.mjs +2 -2
- package/dist/functions/BaseFunctionBuilder.d.mts +2 -2
- package/dist/functions/Function.d.mts +2 -2
- package/dist/functions/FunctionBuilder.d.mts +4 -4
- package/dist/functions/FunctionExecutionWrapper.cjs +1 -1
- package/dist/functions/FunctionExecutionWrapper.d.mts +3 -3
- package/dist/functions/FunctionExecutionWrapper.mjs +1 -1
- package/dist/functions/TestFunctionAdaptor.d.mts +2 -2
- package/dist/functions/index.d.cts +1 -1
- package/dist/functions/index.d.mts +5 -5
- package/dist/{helpers-DbpO95aE.mjs → helpers-CP7A0U_s.mjs} +2 -2
- package/dist/{helpers-DbpO95aE.mjs.map → helpers-CP7A0U_s.mjs.map} +1 -1
- package/dist/{helpers-BeGM4pP_.cjs → helpers-CjvCSIF5.cjs} +2 -2
- package/dist/{helpers-BeGM4pP_.cjs.map → helpers-CjvCSIF5.cjs.map} +1 -1
- package/dist/index-BXTN4mwI.d.mts +9 -0
- package/dist/index-zOH9f4sh.d.cts +9 -0
- package/dist/index.d.mts +2 -2
- package/dist/{parseHonoQuery-DopC24vB.cjs → parseHonoQuery-BiPp8bEJ.cjs} +1 -1
- package/dist/{parseHonoQuery-DopC24vB.cjs.map → parseHonoQuery-BiPp8bEJ.cjs.map} +1 -1
- package/dist/{parseHonoQuery-znDKBhdE.mjs → parseHonoQuery-yWRoKFFl.mjs} +1 -1
- package/dist/{parseHonoQuery-znDKBhdE.mjs.map → parseHonoQuery-yWRoKFFl.mjs.map} +1 -1
- package/dist/{parseQueryParams-BzPop4I1.cjs → parseQueryParams-C2EjouGt.cjs} +1 -1
- package/dist/{parseQueryParams-BzPop4I1.cjs.map → parseQueryParams-C2EjouGt.cjs.map} +1 -1
- package/dist/{parseQueryParams-BJaRh3OB.mjs → parseQueryParams-DSk9xl09.mjs} +1 -1
- package/dist/{parseQueryParams-BJaRh3OB.mjs.map → parseQueryParams-DSk9xl09.mjs.map} +1 -1
- package/dist/publisher.d.mts +1 -1
- package/dist/subscribers/AWSLambdaSubscriberAdaptor.cjs +1 -1
- package/dist/subscribers/AWSLambdaSubscriberAdaptor.d.mts +3 -3
- package/dist/subscribers/AWSLambdaSubscriberAdaptor.mjs +1 -1
- package/dist/subscribers/Subscriber.cjs +1 -1
- package/dist/subscribers/Subscriber.d.mts +2 -2
- package/dist/subscribers/Subscriber.mjs +1 -1
- package/dist/subscribers/SubscriberBuilder.cjs +2 -2
- package/dist/subscribers/SubscriberBuilder.d.cts +1 -1
- package/dist/subscribers/SubscriberBuilder.d.mts +3 -3
- package/dist/subscribers/SubscriberBuilder.mjs +2 -2
- package/dist/subscribers/index.cjs +2 -2
- package/dist/subscribers/index.d.cts +3 -3
- package/dist/subscribers/index.d.mts +5 -5
- package/dist/subscribers/index.mjs +2 -2
- package/dist/{types-DBKNYvsW.d.mts → types-CVq20-fE.d.mts} +1 -1
- package/dist/types.d.mts +1 -1
- package/package.json +9 -4
- package/src/adaptors/testing.ts +1 -0
- package/dist/endpoints/TestEndpointAdaptor.cjs.map +0 -1
- package/dist/endpoints/TestEndpointAdaptor.mjs.map +0 -1
- package/dist/index-CuGR4L7O.d.mts +0 -9
- 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-
|
|
8
|
-
require('../helpers-
|
|
9
|
-
require('../parseHonoQuery-
|
|
10
|
-
const require_HonoEndpointAdaptor = require('../HonoEndpointAdaptor-
|
|
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-
|
|
6
|
+
import "../index-zOH9f4sh.cjs";
|
|
7
7
|
import "../Endpoint-C7z9YJHK.cjs";
|
|
8
|
-
import { HonoEndpoint, HonoEndpointOptions } from "../HonoEndpointAdaptor-
|
|
8
|
+
import { HonoEndpoint, HonoEndpointOptions } from "../HonoEndpointAdaptor-ua6mp3gt.cjs";
|
|
9
9
|
export { HonoEndpoint, HonoEndpointOptions };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../Construct-
|
|
2
|
-
import "../types-
|
|
3
|
-
import "../Function-
|
|
4
|
-
import "../BaseFunctionBuilder-
|
|
5
|
-
import "../FunctionBuilder-
|
|
6
|
-
import "../index-
|
|
7
|
-
import "../Endpoint-
|
|
8
|
-
import { HonoEndpoint, HonoEndpointOptions } from "../HonoEndpointAdaptor-
|
|
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-
|
|
8
|
-
import "../helpers-
|
|
9
|
-
import "../parseHonoQuery-
|
|
10
|
-
import { HonoEndpoint } from "../HonoEndpointAdaptor-
|
|
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
|
-
|
|
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
|
-
|
|
9
|
-
const
|
|
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
|
-
|
|
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
|
|
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-
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
|
|
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-
|
|
2
|
-
import
|
|
3
|
-
import "../Function-
|
|
4
|
-
import "../BaseFunctionBuilder-
|
|
5
|
-
import "../FunctionBuilder-
|
|
6
|
-
import "../index-
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
|
|
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
|
|
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
|
|
8
|
-
import {
|
|
9
|
-
import { ServiceDiscovery } from "@geekmidas/services";
|
|
7
|
+
import "../Endpoint-DNlmybXV.mjs";
|
|
8
|
+
import { TestEndpointAdaptor } from "../TestEndpointAdaptor-CelYsQi0.mjs";
|
|
10
9
|
|
|
11
|
-
|
|
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-
|
|
7
|
-
const require_helpers = require('../helpers-
|
|
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-
|
|
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-
|
|
2
|
-
import { HttpMethod } from "../types-
|
|
3
|
-
import "../Function-
|
|
4
|
-
import "../BaseFunctionBuilder-
|
|
5
|
-
import "../FunctionBuilder-
|
|
6
|
-
import "../index-
|
|
7
|
-
import { Endpoint } from "../Endpoint-
|
|
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-
|
|
7
|
-
import { getEndpointsFromRoutes, getProjectRoot } from "../helpers-
|
|
6
|
+
import "../Endpoint-DNlmybXV.mjs";
|
|
7
|
+
import { getEndpointsFromRoutes, getProjectRoot } from "../helpers-CP7A0U_s.mjs";
|
|
8
8
|
|
|
9
9
|
export { getEndpointsFromRoutes, getProjectRoot };
|
package/dist/endpoints/index.cjs
CHANGED
|
@@ -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-
|
|
7
|
-
require('../EndpointBuilder-
|
|
8
|
-
const require_EndpointFactory = require('../EndpointFactory-
|
|
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-
|
|
6
|
+
import "../index-zOH9f4sh.cjs";
|
|
7
7
|
import { Endpoint, EndpointOutput } from "../Endpoint-C7z9YJHK.cjs";
|
|
8
|
-
import "../EndpointBuilder-
|
|
9
|
-
import { EndpointFactory } from "../EndpointFactory-
|
|
10
|
-
import * as
|
|
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<[], "",
|
|
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-
|
|
2
|
-
import "../types-
|
|
3
|
-
import "../Function-
|
|
4
|
-
import "../BaseFunctionBuilder-
|
|
5
|
-
import "../FunctionBuilder-
|
|
6
|
-
import "../index-
|
|
7
|
-
import { Endpoint, EndpointOutput } from "../Endpoint-
|
|
8
|
-
import "../EndpointBuilder-
|
|
9
|
-
import { EndpointFactory } from "../EndpointFactory-
|
|
10
|
-
import * as
|
|
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<[], "",
|
|
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
|
package/dist/endpoints/index.mjs
CHANGED
|
@@ -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-
|
|
7
|
-
import "../EndpointBuilder-
|
|
8
|
-
import { EndpointFactory } from "../EndpointFactory-
|
|
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();
|
|
@@ -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-
|
|
7
|
-
const require_AWSLambdaFunction = require('../AWSLambdaFunction-
|
|
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-
|
|
2
|
-
import "../Function-
|
|
3
|
-
import "../FunctionExecutionWrapper-
|
|
4
|
-
import { AWSLambdaFunction, AWSLambdaHandler } from "../AWSLambdaFunction-
|
|
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-
|
|
7
|
-
import { AWSLambdaFunction } from "../AWSLambdaFunction-
|
|
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-
|
|
2
|
-
import { BaseFunctionBuilder } from "../BaseFunctionBuilder-
|
|
1
|
+
import "../Construct-DdyYENBD.mjs";
|
|
2
|
+
import { BaseFunctionBuilder } from "../BaseFunctionBuilder-Dda7AiID.mjs";
|
|
3
3
|
export { BaseFunctionBuilder };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../Construct-
|
|
2
|
-
import { Function, FunctionContext, FunctionFactory, FunctionHandler } from "../Function-
|
|
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-
|
|
2
|
-
import "../Function-
|
|
3
|
-
import "../BaseFunctionBuilder-
|
|
4
|
-
import { FunctionBuilder } from "../FunctionBuilder-
|
|
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-
|
|
6
|
+
const require_FunctionExecutionWrapper = require('../FunctionExecutionWrapper-UzfHDM2R.cjs');
|
|
7
7
|
|
|
8
8
|
exports.FunctionExecutionWrapper = require_FunctionExecutionWrapper.FunctionExecutionWrapper;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../Construct-
|
|
2
|
-
import "../Function-
|
|
3
|
-
import { FunctionExecutionWrapper } from "../FunctionExecutionWrapper-
|
|
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-
|
|
6
|
+
import { FunctionExecutionWrapper } from "../FunctionExecutionWrapper-CPzSbfaI.mjs";
|
|
7
7
|
|
|
8
8
|
export { FunctionExecutionWrapper };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../Construct-
|
|
2
|
-
import { Function } from "../Function-
|
|
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-
|
|
5
|
+
import { f } from "../index-zOH9f4sh.cjs";
|
|
6
6
|
export { BaseFunctionBuilder, Function, FunctionBuilder, FunctionContext, FunctionHandler, f };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../Construct-
|
|
2
|
-
import { Function, FunctionContext, FunctionHandler } from "../Function-
|
|
3
|
-
import { BaseFunctionBuilder } from "../BaseFunctionBuilder-
|
|
4
|
-
import { FunctionBuilder } from "../FunctionBuilder-
|
|
5
|
-
import { f } from "../index-
|
|
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-
|
|
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-
|
|
83
|
+
//# sourceMappingURL=helpers-CP7A0U_s.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers-
|
|
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-
|
|
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-
|
|
95
|
+
//# sourceMappingURL=helpers-CjvCSIF5.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers-
|
|
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
|