@geekmidas/constructs 1.0.5 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/{AWSLambdaFunction-CDJX0Tr1.d.mts → AWSLambdaFunction-BF1gJJjG.d.mts} +3 -3
- package/dist/{AWSLambdaFunction-CDJX0Tr1.d.mts.map → AWSLambdaFunction-BF1gJJjG.d.mts.map} +1 -1
- package/dist/{AWSLambdaSubscriberAdaptor-Soie57uM.cjs → AWSLambdaSubscriberAdaptor-BtBKExsh.cjs} +38 -35
- package/dist/AWSLambdaSubscriberAdaptor-BtBKExsh.cjs.map +1 -0
- package/dist/{AWSLambdaSubscriberAdaptor-BfEGolJA.d.cts → AWSLambdaSubscriberAdaptor-Cj1wjkUP.d.cts} +3 -2
- package/dist/{AWSLambdaSubscriberAdaptor-BfEGolJA.d.cts.map → AWSLambdaSubscriberAdaptor-Cj1wjkUP.d.cts.map} +1 -1
- package/dist/{AWSLambdaSubscriberAdaptor-BUvb-v_n.mjs → AWSLambdaSubscriberAdaptor-DsRmmGm1.mjs} +38 -35
- package/dist/AWSLambdaSubscriberAdaptor-DsRmmGm1.mjs.map +1 -0
- package/dist/{AWSLambdaSubscriberAdaptor-Pb7Jof-i.d.mts → AWSLambdaSubscriberAdaptor-OQvj2lKI.d.mts} +4 -3
- package/dist/{AWSLambdaSubscriberAdaptor-Pb7Jof-i.d.mts.map → AWSLambdaSubscriberAdaptor-OQvj2lKI.d.mts.map} +1 -1
- package/dist/{AmazonApiGatewayEndpointAdaptor-DRG4hu-k.d.mts → AmazonApiGatewayEndpointAdaptor-CQSZArI6.d.mts} +4 -4
- package/dist/{AmazonApiGatewayEndpointAdaptor-DRG4hu-k.d.mts.map → AmazonApiGatewayEndpointAdaptor-CQSZArI6.d.mts.map} +1 -1
- package/dist/{AmazonApiGatewayV1EndpointAdaptor-Bj9BDhNM.d.mts → AmazonApiGatewayV1EndpointAdaptor-xTrFYt48.d.mts} +4 -4
- package/dist/{AmazonApiGatewayV1EndpointAdaptor-Bj9BDhNM.d.mts.map → AmazonApiGatewayV1EndpointAdaptor-xTrFYt48.d.mts.map} +1 -1
- package/dist/{AmazonApiGatewayV2EndpointAdaptor-C0199fdk.d.mts → AmazonApiGatewayV2EndpointAdaptor-BBayh2_k.d.mts} +4 -4
- package/dist/{AmazonApiGatewayV2EndpointAdaptor-C0199fdk.d.mts.map → AmazonApiGatewayV2EndpointAdaptor-BBayh2_k.d.mts.map} +1 -1
- package/dist/{Authorizer-BgjU8-z6.mjs → Authorizer-4unKN3Xn.mjs} +1 -1
- package/dist/{Authorizer-BgjU8-z6.mjs.map → Authorizer-4unKN3Xn.mjs.map} +1 -1
- package/dist/{Authorizer-DCcYOx3h.d.mts → Authorizer-DBsrDTuf.d.mts} +1 -1
- package/dist/{Authorizer-DCcYOx3h.d.mts.map → Authorizer-DBsrDTuf.d.mts.map} +1 -1
- package/dist/{Authorizer-BXxBee2P.cjs → Authorizer-Dx57psuM.cjs} +1 -1
- package/dist/{Authorizer-BXxBee2P.cjs.map → Authorizer-Dx57psuM.cjs.map} +1 -1
- package/dist/{BaseFunctionBuilder-JpN2FtB4.d.mts → BaseFunctionBuilder-CsvFjzA8.d.mts} +2 -2
- package/dist/{BaseFunctionBuilder-JpN2FtB4.d.mts.map → BaseFunctionBuilder-CsvFjzA8.d.mts.map} +1 -1
- package/dist/{Construct-DvXCkLOP.d.mts → Construct-C2SyofdS.d.mts} +1 -1
- package/dist/{Construct-DvXCkLOP.d.mts.map → Construct-C2SyofdS.d.mts.map} +1 -1
- package/dist/Construct.d.mts +1 -1
- package/dist/{Cron-D5NpDp6y.mjs → Cron-B3vrGuaD.mjs} +1 -1
- package/dist/{Cron-D5NpDp6y.mjs.map → Cron-B3vrGuaD.mjs.map} +1 -1
- package/dist/{Cron-BJWjEj3U.d.cts → Cron-BDxW6fYg.d.cts} +1 -1
- package/dist/{Cron-BJWjEj3U.d.cts.map → Cron-BDxW6fYg.d.cts.map} +1 -1
- package/dist/{Cron-BjNvt_Wj.d.mts → Cron-CWxjO2Fg.d.mts} +2 -2
- package/dist/{Cron-BjNvt_Wj.d.mts.map → Cron-CWxjO2Fg.d.mts.map} +1 -1
- package/dist/{Cron-BV6weqem.cjs → Cron-DEKZg5j4.cjs} +1 -1
- package/dist/{Cron-BV6weqem.cjs.map → Cron-DEKZg5j4.cjs.map} +1 -1
- package/dist/{CronBuilder-DzPkDCiP.cjs → CronBuilder-BHpY6w3b.cjs} +2 -2
- package/dist/{CronBuilder-DzPkDCiP.cjs.map → CronBuilder-BHpY6w3b.cjs.map} +1 -1
- package/dist/{CronBuilder-CmPYae1S.d.cts → CronBuilder-CginrW3H.d.cts} +2 -2
- package/dist/{CronBuilder-CmPYae1S.d.cts.map → CronBuilder-CginrW3H.d.cts.map} +1 -1
- package/dist/{CronBuilder-X4au0zTu.d.mts → CronBuilder-DJnXbDGK.d.mts} +4 -4
- package/dist/{CronBuilder-X4au0zTu.d.mts.map → CronBuilder-DJnXbDGK.d.mts.map} +1 -1
- package/dist/{CronBuilder-p1Ro6a0n.mjs → CronBuilder-VXpyNfp2.mjs} +2 -2
- package/dist/{CronBuilder-p1Ro6a0n.mjs.map → CronBuilder-VXpyNfp2.mjs.map} +1 -1
- package/dist/{Endpoint-DU20A9E8.d.mts → Endpoint-BiPM0glm.d.mts} +4 -4
- package/dist/{Endpoint-DU20A9E8.d.mts.map → Endpoint-BiPM0glm.d.mts.map} +1 -1
- package/dist/{EndpointBuilder-CuVlda7g.d.mts → EndpointBuilder-B0Aj5jbB.d.mts} +5 -5
- package/dist/{EndpointBuilder-CuVlda7g.d.mts.map → EndpointBuilder-B0Aj5jbB.d.mts.map} +1 -1
- package/dist/{EndpointBuilder-BfzI6Rpc.d.cts → EndpointBuilder-Bel6RS7W.d.cts} +1 -1
- package/dist/{EndpointBuilder-BfzI6Rpc.d.cts.map → EndpointBuilder-Bel6RS7W.d.cts.map} +1 -1
- package/dist/{EndpointBuilder-CF-ZWtdu.mjs → EndpointBuilder-D1RtrBu1.mjs} +3 -3
- package/dist/{EndpointBuilder-CF-ZWtdu.mjs.map → EndpointBuilder-D1RtrBu1.mjs.map} +1 -1
- package/dist/{EndpointBuilder-CyszO0bs.cjs → EndpointBuilder-fXmTxRyW.cjs} +3 -3
- package/dist/{EndpointBuilder-CyszO0bs.cjs.map → EndpointBuilder-fXmTxRyW.cjs.map} +1 -1
- package/dist/{EndpointFactory-B29PiUhj.d.mts → EndpointFactory-CWIeWCRG.d.mts} +4 -4
- package/dist/{EndpointFactory-B29PiUhj.d.mts.map → EndpointFactory-CWIeWCRG.d.mts.map} +1 -1
- package/dist/{EndpointFactory-CVT9quQD.d.cts → EndpointFactory-CXvakOkn.d.cts} +2 -2
- package/dist/{EndpointFactory-CVT9quQD.d.cts.map → EndpointFactory-CXvakOkn.d.cts.map} +1 -1
- package/dist/{EndpointFactory-B0D6d6t9.cjs → EndpointFactory-DBfTbSTX.cjs} +3 -3
- package/dist/{EndpointFactory-B0D6d6t9.cjs.map → EndpointFactory-DBfTbSTX.cjs.map} +1 -1
- package/dist/{EndpointFactory-Do498RmG.mjs → EndpointFactory-DkB8yxdQ.mjs} +3 -3
- package/dist/{EndpointFactory-Do498RmG.mjs.map → EndpointFactory-DkB8yxdQ.mjs.map} +1 -1
- package/dist/{Function-DEX2O-SB.d.mts → Function-CZw1DRQ6.d.mts} +2 -2
- package/dist/{Function-DEX2O-SB.d.mts.map → Function-CZw1DRQ6.d.mts.map} +1 -1
- package/dist/{FunctionBuilder-DRw1s5uT.d.mts → FunctionBuilder-m5BNA2Ap.d.mts} +4 -4
- package/dist/{FunctionBuilder-DRw1s5uT.d.mts.map → FunctionBuilder-m5BNA2Ap.d.mts.map} +1 -1
- package/dist/{FunctionExecutionWrapper-D2kbmPJG.d.mts → FunctionExecutionWrapper-C7yYXIq-.d.mts} +2 -2
- package/dist/{FunctionExecutionWrapper-D2kbmPJG.d.mts.map → FunctionExecutionWrapper-C7yYXIq-.d.mts.map} +1 -1
- package/dist/{HonoEndpointAdaptor-BCql3gLP.d.cts → HonoEndpointAdaptor-BuyXynoH.d.cts} +3 -3
- package/dist/{HonoEndpointAdaptor-BCql3gLP.d.cts.map → HonoEndpointAdaptor-BuyXynoH.d.cts.map} +1 -1
- package/dist/{HonoEndpointAdaptor-BMNAai8a.d.mts → HonoEndpointAdaptor-C3AdQ0xS.d.mts} +5 -5
- package/dist/{HonoEndpointAdaptor-BMNAai8a.d.mts.map → HonoEndpointAdaptor-C3AdQ0xS.d.mts.map} +1 -1
- package/dist/{Subscriber-DKQK5gLD.mjs → Subscriber-BEhOdNQi.mjs} +1 -1
- package/dist/{Subscriber-DKQK5gLD.mjs.map → Subscriber-BEhOdNQi.mjs.map} +1 -1
- package/dist/{Subscriber-DCgMSkQA.d.mts → Subscriber-BgB3RRxb.d.mts} +2 -2
- package/dist/{Subscriber-DCgMSkQA.d.mts.map → Subscriber-BgB3RRxb.d.mts.map} +1 -1
- package/dist/{Subscriber-ClqSPbIZ.cjs → Subscriber-Scz7hrV6.cjs} +1 -1
- package/dist/{Subscriber-ClqSPbIZ.cjs.map → Subscriber-Scz7hrV6.cjs.map} +1 -1
- package/dist/{SubscriberBuilder-BS5B_688.cjs → SubscriberBuilder-B82h4v-S.cjs} +2 -2
- package/dist/{SubscriberBuilder-BS5B_688.cjs.map → SubscriberBuilder-B82h4v-S.cjs.map} +1 -1
- package/dist/{SubscriberBuilder-UIwW_wIY.d.cts → SubscriberBuilder-B9uva8fZ.d.cts} +1 -1
- package/dist/{SubscriberBuilder-BcyK44e_.d.mts.map → SubscriberBuilder-B9uva8fZ.d.cts.map} +1 -1
- package/dist/{SubscriberBuilder-BcyK44e_.d.mts → SubscriberBuilder-DaQkh2Nt.d.mts} +2 -2
- package/dist/{SubscriberBuilder-UIwW_wIY.d.cts.map → SubscriberBuilder-DaQkh2Nt.d.mts.map} +1 -1
- package/dist/{SubscriberBuilder-BswTuvUc.mjs → SubscriberBuilder-DlUaG0Ej.mjs} +2 -2
- package/dist/{SubscriberBuilder-BswTuvUc.mjs.map → SubscriberBuilder-DlUaG0Ej.mjs.map} +1 -1
- package/dist/{TestEndpointAdaptor-oWNADEl4.d.mts → TestEndpointAdaptor-qSWV8dpS.d.mts} +3 -3
- package/dist/{TestEndpointAdaptor-oWNADEl4.d.mts.map → TestEndpointAdaptor-qSWV8dpS.d.mts.map} +1 -1
- package/dist/TestFunctionAdaptor-BHk2bDOV.d.cts +30 -0
- package/dist/TestFunctionAdaptor-BHk2bDOV.d.cts.map +1 -0
- package/dist/TestFunctionAdaptor-CK-dbKpO.mjs +67 -0
- package/dist/TestFunctionAdaptor-CK-dbKpO.mjs.map +1 -0
- package/dist/TestFunctionAdaptor-CSMX7myB.cjs +73 -0
- package/dist/TestFunctionAdaptor-CSMX7myB.cjs.map +1 -0
- package/dist/TestFunctionAdaptor-DzT8GRdR.d.mts +30 -0
- package/dist/TestFunctionAdaptor-DzT8GRdR.d.mts.map +1 -0
- package/dist/TestSubscriberAdaptor-1m-2bM_j.cjs +49 -0
- package/dist/TestSubscriberAdaptor-1m-2bM_j.cjs.map +1 -0
- package/dist/TestSubscriberAdaptor-CPEiqSfE.d.mts +26 -0
- package/dist/TestSubscriberAdaptor-CPEiqSfE.d.mts.map +1 -0
- package/dist/TestSubscriberAdaptor-CrqLkyUE.mjs +43 -0
- package/dist/TestSubscriberAdaptor-CrqLkyUE.mjs.map +1 -0
- package/dist/TestSubscriberAdaptor-DQk5xzb0.d.cts +26 -0
- package/dist/TestSubscriberAdaptor-DQk5xzb0.d.cts.map +1 -0
- package/dist/adaptors/aws.cjs +1 -1
- package/dist/adaptors/aws.d.cts +2 -2
- package/dist/adaptors/aws.d.mts +16 -16
- package/dist/adaptors/aws.mjs +1 -1
- package/dist/adaptors/hono.d.cts +2 -2
- package/dist/adaptors/hono.d.mts +9 -9
- package/dist/adaptors/testing.cjs +5 -1
- package/dist/adaptors/testing.d.cts +5 -2
- package/dist/adaptors/testing.d.mts +13 -10
- package/dist/adaptors/testing.mjs +3 -1
- 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 +7 -7
- package/dist/crons/index.mjs +2 -2
- package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.d.cts +1 -1
- package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.d.mts +10 -10
- package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.d.cts +1 -1
- package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.d.mts +11 -11
- package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.d.cts +1 -1
- package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.d.mts +11 -11
- package/dist/endpoints/Authorizer.cjs +1 -1
- package/dist/endpoints/Authorizer.d.mts +1 -1
- package/dist/endpoints/Authorizer.mjs +1 -1
- package/dist/endpoints/Endpoint.d.cts +1 -1
- package/dist/endpoints/Endpoint.d.mts +8 -8
- package/dist/endpoints/EndpointBuilder.cjs +3 -3
- package/dist/endpoints/EndpointBuilder.d.cts +2 -2
- package/dist/endpoints/EndpointBuilder.d.mts +9 -9
- package/dist/endpoints/EndpointBuilder.mjs +3 -3
- package/dist/endpoints/EndpointFactory.cjs +4 -4
- package/dist/endpoints/EndpointFactory.d.cts +3 -3
- package/dist/endpoints/EndpointFactory.d.mts +10 -10
- package/dist/endpoints/EndpointFactory.mjs +4 -4
- package/dist/endpoints/HonoEndpointAdaptor.d.cts +2 -2
- package/dist/endpoints/HonoEndpointAdaptor.d.mts +9 -9
- package/dist/endpoints/TestEndpointAdaptor.d.cts +1 -1
- package/dist/endpoints/TestEndpointAdaptor.d.mts +9 -9
- package/dist/endpoints/audit.d.cts +1 -1
- package/dist/endpoints/audit.d.mts +8 -8
- package/dist/endpoints/helpers.d.cts +1 -1
- package/dist/endpoints/helpers.d.mts +8 -8
- package/dist/endpoints/index.cjs +4 -4
- package/dist/endpoints/index.d.cts +7 -7
- package/dist/endpoints/index.d.mts +14 -14
- package/dist/endpoints/index.mjs +4 -4
- package/dist/endpoints/lazyAccessors.d.cts +2 -2
- package/dist/endpoints/lazyAccessors.d.mts +9 -9
- package/dist/endpoints/processAudits.d.cts +1 -1
- package/dist/endpoints/processAudits.d.mts +8 -8
- package/dist/endpoints/rls.cjs +1 -1
- package/dist/endpoints/rls.d.cts +1 -1
- package/dist/endpoints/rls.d.mts +8 -8
- package/dist/endpoints/rls.mjs +1 -1
- package/dist/functions/AWSLambdaFunction.d.mts +4 -4
- 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.d.mts +3 -3
- package/dist/functions/TestFunctionAdaptor.cjs +4 -67
- package/dist/functions/TestFunctionAdaptor.d.cts +3 -30
- package/dist/functions/TestFunctionAdaptor.d.mts +4 -31
- package/dist/functions/TestFunctionAdaptor.mjs +4 -66
- package/dist/functions/index.d.cts +1 -1
- package/dist/functions/index.d.mts +5 -5
- package/dist/{index-DHGtpWKA.d.mts → index-BfeupgMl.d.cts} +2 -2
- package/dist/{index-0bHR_AbP.d.cts.map → index-BfeupgMl.d.cts.map} +1 -1
- package/dist/index-DQo_Csy7.d.mts +12 -0
- package/dist/{index-DHGtpWKA.d.mts.map → index-DQo_Csy7.d.mts.map} +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/{lazyAccessors-D1tbdxUk.d.mts → lazyAccessors-DXkJpnyX.d.mts} +2 -2
- package/dist/{lazyAccessors-D1tbdxUk.d.mts.map → lazyAccessors-DXkJpnyX.d.mts.map} +1 -1
- package/dist/{lazyAccessors-ZRbwOONj.d.cts → lazyAccessors-DdZaA716.d.cts} +1 -1
- package/dist/{lazyAccessors-ZRbwOONj.d.cts.map → lazyAccessors-DdZaA716.d.cts.map} +1 -1
- package/dist/{publisher-DdPDps5m.d.cts → publisher-BrzPGnm4.d.cts} +1 -1
- package/dist/{publisher-BeouS9lG.d.mts.map → publisher-BrzPGnm4.d.cts.map} +1 -1
- package/dist/{publisher-BeouS9lG.d.mts → publisher-CP4gpv-4.d.mts} +2 -2
- package/dist/{publisher-DdPDps5m.d.cts.map → publisher-CP4gpv-4.d.mts.map} +1 -1
- package/dist/publisher.d.cts +1 -1
- package/dist/publisher.d.mts +2 -2
- package/dist/{rls-C0cWOnk4.mjs → rls-7XXX7DvY.mjs} +1 -1
- package/dist/{rls-C0cWOnk4.mjs.map → rls-7XXX7DvY.mjs.map} +1 -1
- package/dist/{rls-BrywnrQb.cjs → rls-DxFqdIA0.cjs} +1 -1
- package/dist/{rls-BrywnrQb.cjs.map → rls-DxFqdIA0.cjs.map} +1 -1
- package/dist/subscribers/AWSLambdaSubscriberAdaptor.cjs +1 -1
- package/dist/subscribers/AWSLambdaSubscriberAdaptor.d.cts +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/TestSubscriberAdaptor.cjs +4 -0
- package/dist/subscribers/TestSubscriberAdaptor.d.cts +4 -0
- package/dist/subscribers/TestSubscriberAdaptor.d.mts +4 -0
- package/dist/subscribers/TestSubscriberAdaptor.mjs +4 -0
- package/dist/subscribers/index.cjs +5 -2
- package/dist/subscribers/index.cjs.map +1 -1
- package/dist/subscribers/index.d.cts +5 -4
- package/dist/subscribers/index.d.cts.map +1 -1
- package/dist/subscribers/index.d.mts +7 -6
- package/dist/subscribers/index.d.mts.map +1 -1
- package/dist/subscribers/index.mjs +5 -3
- package/dist/subscribers/index.mjs.map +1 -1
- package/dist/{telemetry-yAHf5yDs.d.mts → telemetry-C-kNOW3C.d.mts} +1 -1
- package/dist/{telemetry-yAHf5yDs.d.mts.map → telemetry-C-kNOW3C.d.mts.map} +1 -1
- package/dist/telemetry.d.mts +1 -1
- package/dist/{types-Dw-iLd3Y.d.mts → types-aFmq5cKh.d.mts} +1 -1
- package/dist/{types-Dw-iLd3Y.d.mts.map → types-aFmq5cKh.d.mts.map} +1 -1
- package/dist/types.d.mts +1 -1
- package/package.json +7 -7
- package/src/adaptors/testing.ts +2 -0
- package/src/subscribers/AWSLambdaSubscriberAdaptor.ts +61 -37
- package/src/subscribers/TestSubscriberAdaptor.ts +127 -0
- package/src/subscribers/__tests__/AWSLambdaSubscriberAdaptor.spec.ts +239 -27
- package/src/subscribers/__tests__/TestSubscriberAdaptor.spec.ts +558 -0
- package/src/subscribers/index.ts +1 -0
- package/dist/AWSLambdaSubscriberAdaptor-BUvb-v_n.mjs.map +0 -1
- package/dist/AWSLambdaSubscriberAdaptor-Soie57uM.cjs.map +0 -1
- package/dist/functions/TestFunctionAdaptor.cjs.map +0 -1
- package/dist/functions/TestFunctionAdaptor.d.cts.map +0 -1
- package/dist/functions/TestFunctionAdaptor.d.mts.map +0 -1
- package/dist/functions/TestFunctionAdaptor.mjs.map +0 -1
- package/dist/index-0bHR_AbP.d.cts +0 -12
|
@@ -3,7 +3,7 @@ import "../types-B5H3piDg.cjs";
|
|
|
3
3
|
import "../BaseFunctionBuilder-C-4hYTfj.cjs";
|
|
4
4
|
import "../Function-CwlB89lS.cjs";
|
|
5
5
|
import "../FunctionBuilder-D_7f5MfS.cjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-BfeupgMl.cjs";
|
|
7
7
|
import "../Authorizer-DWtwC8we.cjs";
|
|
8
8
|
import { ActorExtractor, EndpointAuditorConfig, MappedAudit } from "../Endpoint-C9N6CmvB.cjs";
|
|
9
9
|
export { ActorExtractor, EndpointAuditorConfig, MappedAudit };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../Construct-
|
|
2
|
-
import "../types-
|
|
3
|
-
import "../BaseFunctionBuilder-
|
|
4
|
-
import "../Function-
|
|
5
|
-
import "../FunctionBuilder-
|
|
6
|
-
import "../index-
|
|
7
|
-
import "../Authorizer-
|
|
8
|
-
import { ActorExtractor, EndpointAuditorConfig, MappedAudit } from "../Endpoint-
|
|
1
|
+
import "../Construct-C2SyofdS.mjs";
|
|
2
|
+
import "../types-aFmq5cKh.mjs";
|
|
3
|
+
import "../BaseFunctionBuilder-CsvFjzA8.mjs";
|
|
4
|
+
import "../Function-CZw1DRQ6.mjs";
|
|
5
|
+
import "../FunctionBuilder-m5BNA2Ap.mjs";
|
|
6
|
+
import "../index-DQo_Csy7.mjs";
|
|
7
|
+
import "../Authorizer-DBsrDTuf.mjs";
|
|
8
|
+
import { ActorExtractor, EndpointAuditorConfig, MappedAudit } from "../Endpoint-BiPM0glm.mjs";
|
|
9
9
|
export { ActorExtractor, EndpointAuditorConfig, MappedAudit };
|
|
@@ -3,7 +3,7 @@ import { HttpMethod } from "../types-B5H3piDg.cjs";
|
|
|
3
3
|
import "../BaseFunctionBuilder-C-4hYTfj.cjs";
|
|
4
4
|
import "../Function-CwlB89lS.cjs";
|
|
5
5
|
import "../FunctionBuilder-D_7f5MfS.cjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-BfeupgMl.cjs";
|
|
7
7
|
import "../Authorizer-DWtwC8we.cjs";
|
|
8
8
|
import { Endpoint } from "../Endpoint-C9N6CmvB.cjs";
|
|
9
9
|
import { Service } from "@geekmidas/services";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "../Construct-
|
|
2
|
-
import { HttpMethod } from "../types-
|
|
3
|
-
import "../BaseFunctionBuilder-
|
|
4
|
-
import "../Function-
|
|
5
|
-
import "../FunctionBuilder-
|
|
6
|
-
import "../index-
|
|
7
|
-
import "../Authorizer-
|
|
8
|
-
import { Endpoint } from "../Endpoint-
|
|
1
|
+
import "../Construct-C2SyofdS.mjs";
|
|
2
|
+
import { HttpMethod } from "../types-aFmq5cKh.mjs";
|
|
3
|
+
import "../BaseFunctionBuilder-CsvFjzA8.mjs";
|
|
4
|
+
import "../Function-CZw1DRQ6.mjs";
|
|
5
|
+
import "../FunctionBuilder-m5BNA2Ap.mjs";
|
|
6
|
+
import "../index-DQo_Csy7.mjs";
|
|
7
|
+
import "../Authorizer-DBsrDTuf.mjs";
|
|
8
|
+
import { Endpoint } from "../Endpoint-BiPM0glm.mjs";
|
|
9
9
|
import { Service } from "@geekmidas/services";
|
|
10
10
|
|
|
11
11
|
//#region src/endpoints/helpers.d.ts
|
package/dist/endpoints/index.cjs
CHANGED
|
@@ -6,10 +6,10 @@ require('../FunctionBuilder-C_xG9As7.cjs');
|
|
|
6
6
|
require('../functions-rOD3pXQd.cjs');
|
|
7
7
|
const require_Endpoint = require('../Endpoint-BcxvF4F3.cjs');
|
|
8
8
|
const require_lazyAccessors = require('../lazyAccessors-B8Hhras9.cjs');
|
|
9
|
-
const require_Authorizer = require('../Authorizer-
|
|
10
|
-
const require_rls = require('../rls-
|
|
11
|
-
const require_EndpointBuilder = require('../EndpointBuilder-
|
|
12
|
-
const require_EndpointFactory = require('../EndpointFactory-
|
|
9
|
+
const require_Authorizer = require('../Authorizer-Dx57psuM.cjs');
|
|
10
|
+
const require_rls = require('../rls-DxFqdIA0.cjs');
|
|
11
|
+
const require_EndpointBuilder = require('../EndpointBuilder-fXmTxRyW.cjs');
|
|
12
|
+
const require_EndpointFactory = require('../EndpointFactory-DBfTbSTX.cjs');
|
|
13
13
|
|
|
14
14
|
//#region src/endpoints/index.ts
|
|
15
15
|
const e = new require_EndpointFactory.EndpointFactory();
|
|
@@ -3,17 +3,17 @@ import "../types-B5H3piDg.cjs";
|
|
|
3
3
|
import "../BaseFunctionBuilder-C-4hYTfj.cjs";
|
|
4
4
|
import "../Function-CwlB89lS.cjs";
|
|
5
5
|
import "../FunctionBuilder-D_7f5MfS.cjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-BfeupgMl.cjs";
|
|
7
7
|
import { Authorizer, BUILT_IN_SECURITY_SCHEMES, BuiltInSecuritySchemeId, OAuthFlow, OAuthFlows, SecurityScheme, createAuthorizer, getSecurityScheme, isBuiltInSecurityScheme } from "../Authorizer-DWtwC8we.cjs";
|
|
8
8
|
import { ActorExtractor, Endpoint, EndpointContext, EndpointHandler, EndpointOutput, EndpointSchemas, MappedAudit, RLS_BYPASS, ResponseBuilder, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor } from "../Endpoint-C9N6CmvB.cjs";
|
|
9
|
-
import { EndpointBuilder } from "../EndpointBuilder-
|
|
10
|
-
import { EndpointFactory } from "../EndpointFactory-
|
|
11
|
-
import { publishConstructEvents } from "../publisher-
|
|
12
|
-
import { createApiGatewayCookies, createApiGatewayHeaders, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders } from "../lazyAccessors-
|
|
13
|
-
import * as
|
|
9
|
+
import { EndpointBuilder } from "../EndpointBuilder-Bel6RS7W.cjs";
|
|
10
|
+
import { EndpointFactory } from "../EndpointFactory-CXvakOkn.cjs";
|
|
11
|
+
import { publishConstructEvents } from "../publisher-BrzPGnm4.cjs";
|
|
12
|
+
import { createApiGatewayCookies, createApiGatewayHeaders, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders } from "../lazyAccessors-DdZaA716.cjs";
|
|
13
|
+
import * as _geekmidas_logger6 from "@geekmidas/logger";
|
|
14
14
|
|
|
15
15
|
//#region src/endpoints/index.d.ts
|
|
16
|
-
declare const e: EndpointFactory<[], "",
|
|
16
|
+
declare const e: EndpointFactory<[], "", _geekmidas_logger6.Logger, unknown, undefined, string, readonly string[], undefined, string, never, undefined, string, Record<string, SecurityScheme>, undefined>;
|
|
17
17
|
//# sourceMappingURL=index.d.ts.map
|
|
18
18
|
|
|
19
19
|
//#endregion
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import "../Construct-
|
|
2
|
-
import "../types-
|
|
3
|
-
import "../BaseFunctionBuilder-
|
|
4
|
-
import "../Function-
|
|
5
|
-
import "../FunctionBuilder-
|
|
6
|
-
import "../index-
|
|
7
|
-
import { Authorizer, BUILT_IN_SECURITY_SCHEMES, BuiltInSecuritySchemeId, OAuthFlow, OAuthFlows, SecurityScheme, createAuthorizer, getSecurityScheme, isBuiltInSecurityScheme } from "../Authorizer-
|
|
8
|
-
import { ActorExtractor, Endpoint, EndpointContext, EndpointHandler, EndpointOutput, EndpointSchemas, MappedAudit, RLS_BYPASS, ResponseBuilder, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor } from "../Endpoint-
|
|
9
|
-
import { EndpointBuilder } from "../EndpointBuilder-
|
|
10
|
-
import { EndpointFactory } from "../EndpointFactory-
|
|
11
|
-
import { publishConstructEvents } from "../publisher-
|
|
12
|
-
import { createApiGatewayCookies, createApiGatewayHeaders, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders } from "../lazyAccessors-
|
|
13
|
-
import * as
|
|
1
|
+
import "../Construct-C2SyofdS.mjs";
|
|
2
|
+
import "../types-aFmq5cKh.mjs";
|
|
3
|
+
import "../BaseFunctionBuilder-CsvFjzA8.mjs";
|
|
4
|
+
import "../Function-CZw1DRQ6.mjs";
|
|
5
|
+
import "../FunctionBuilder-m5BNA2Ap.mjs";
|
|
6
|
+
import "../index-DQo_Csy7.mjs";
|
|
7
|
+
import { Authorizer, BUILT_IN_SECURITY_SCHEMES, BuiltInSecuritySchemeId, OAuthFlow, OAuthFlows, SecurityScheme, createAuthorizer, getSecurityScheme, isBuiltInSecurityScheme } from "../Authorizer-DBsrDTuf.mjs";
|
|
8
|
+
import { ActorExtractor, Endpoint, EndpointContext, EndpointHandler, EndpointOutput, EndpointSchemas, MappedAudit, RLS_BYPASS, ResponseBuilder, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor } from "../Endpoint-BiPM0glm.mjs";
|
|
9
|
+
import { EndpointBuilder } from "../EndpointBuilder-B0Aj5jbB.mjs";
|
|
10
|
+
import { EndpointFactory } from "../EndpointFactory-CWIeWCRG.mjs";
|
|
11
|
+
import { publishConstructEvents } from "../publisher-CP4gpv-4.mjs";
|
|
12
|
+
import { createApiGatewayCookies, createApiGatewayHeaders, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders } from "../lazyAccessors-DXkJpnyX.mjs";
|
|
13
|
+
import * as _geekmidas_logger8 from "@geekmidas/logger";
|
|
14
14
|
|
|
15
15
|
//#region src/endpoints/index.d.ts
|
|
16
|
-
declare const e: EndpointFactory<[], "",
|
|
16
|
+
declare const e: EndpointFactory<[], "", _geekmidas_logger8.Logger, unknown, undefined, string, readonly string[], undefined, string, never, undefined, string, Record<string, SecurityScheme>, undefined>;
|
|
17
17
|
//# sourceMappingURL=index.d.ts.map
|
|
18
18
|
|
|
19
19
|
//#endregion
|
package/dist/endpoints/index.mjs
CHANGED
|
@@ -6,10 +6,10 @@ import "../FunctionBuilder-CBeqX18X.mjs";
|
|
|
6
6
|
import "../functions-B1mrMoUH.mjs";
|
|
7
7
|
import { Endpoint, ResponseBuilder } from "../Endpoint-DvY3aqAy.mjs";
|
|
8
8
|
import { createApiGatewayCookies, createApiGatewayHeaders, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders } from "../lazyAccessors-B-Jgkg2o.mjs";
|
|
9
|
-
import { BUILT_IN_SECURITY_SCHEMES, createAuthorizer, getSecurityScheme, isBuiltInSecurityScheme } from "../Authorizer-
|
|
10
|
-
import { RLS_BYPASS } from "../rls-
|
|
11
|
-
import { EndpointBuilder } from "../EndpointBuilder-
|
|
12
|
-
import { EndpointFactory } from "../EndpointFactory-
|
|
9
|
+
import { BUILT_IN_SECURITY_SCHEMES, createAuthorizer, getSecurityScheme, isBuiltInSecurityScheme } from "../Authorizer-4unKN3Xn.mjs";
|
|
10
|
+
import { RLS_BYPASS } from "../rls-7XXX7DvY.mjs";
|
|
11
|
+
import { EndpointBuilder } from "../EndpointBuilder-D1RtrBu1.mjs";
|
|
12
|
+
import { EndpointFactory } from "../EndpointFactory-DkB8yxdQ.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/endpoints/index.ts
|
|
15
15
|
const e = new EndpointFactory();
|
|
@@ -3,8 +3,8 @@ import "../types-B5H3piDg.cjs";
|
|
|
3
3
|
import "../BaseFunctionBuilder-C-4hYTfj.cjs";
|
|
4
4
|
import "../Function-CwlB89lS.cjs";
|
|
5
5
|
import "../FunctionBuilder-D_7f5MfS.cjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-BfeupgMl.cjs";
|
|
7
7
|
import "../Authorizer-DWtwC8we.cjs";
|
|
8
8
|
import "../Endpoint-C9N6CmvB.cjs";
|
|
9
|
-
import { createApiGatewayCookies, createApiGatewayHeaders, createCookieHeaderAccessor, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders, createObjectHeaders } from "../lazyAccessors-
|
|
9
|
+
import { createApiGatewayCookies, createApiGatewayHeaders, createCookieHeaderAccessor, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders, createObjectHeaders } from "../lazyAccessors-DdZaA716.cjs";
|
|
10
10
|
export { createApiGatewayCookies, createApiGatewayHeaders, createCookieHeaderAccessor, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders, createObjectHeaders };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../Construct-
|
|
2
|
-
import "../types-
|
|
3
|
-
import "../BaseFunctionBuilder-
|
|
4
|
-
import "../Function-
|
|
5
|
-
import "../FunctionBuilder-
|
|
6
|
-
import "../index-
|
|
7
|
-
import "../Authorizer-
|
|
8
|
-
import "../Endpoint-
|
|
9
|
-
import { createApiGatewayCookies, createApiGatewayHeaders, createCookieHeaderAccessor, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders, createObjectHeaders } from "../lazyAccessors-
|
|
1
|
+
import "../Construct-C2SyofdS.mjs";
|
|
2
|
+
import "../types-aFmq5cKh.mjs";
|
|
3
|
+
import "../BaseFunctionBuilder-CsvFjzA8.mjs";
|
|
4
|
+
import "../Function-CZw1DRQ6.mjs";
|
|
5
|
+
import "../FunctionBuilder-m5BNA2Ap.mjs";
|
|
6
|
+
import "../index-DQo_Csy7.mjs";
|
|
7
|
+
import "../Authorizer-DBsrDTuf.mjs";
|
|
8
|
+
import "../Endpoint-BiPM0glm.mjs";
|
|
9
|
+
import { createApiGatewayCookies, createApiGatewayHeaders, createCookieHeaderAccessor, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders, createObjectHeaders } from "../lazyAccessors-DXkJpnyX.mjs";
|
|
10
10
|
export { createApiGatewayCookies, createApiGatewayHeaders, createCookieHeaderAccessor, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders, createObjectHeaders };
|
|
@@ -3,7 +3,7 @@ import "../types-B5H3piDg.cjs";
|
|
|
3
3
|
import "../BaseFunctionBuilder-C-4hYTfj.cjs";
|
|
4
4
|
import "../Function-CwlB89lS.cjs";
|
|
5
5
|
import "../FunctionBuilder-D_7f5MfS.cjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-BfeupgMl.cjs";
|
|
7
7
|
import "../Authorizer-DWtwC8we.cjs";
|
|
8
8
|
import { CookieFn, Endpoint, HeaderFn } from "../Endpoint-C9N6CmvB.cjs";
|
|
9
9
|
import { AuditStorage, AuditableAction, Auditor } from "@geekmidas/audit";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "../Construct-
|
|
2
|
-
import "../types-
|
|
3
|
-
import "../BaseFunctionBuilder-
|
|
4
|
-
import "../Function-
|
|
5
|
-
import "../FunctionBuilder-
|
|
6
|
-
import "../index-
|
|
7
|
-
import "../Authorizer-
|
|
8
|
-
import { CookieFn, Endpoint, HeaderFn } from "../Endpoint-
|
|
1
|
+
import "../Construct-C2SyofdS.mjs";
|
|
2
|
+
import "../types-aFmq5cKh.mjs";
|
|
3
|
+
import "../BaseFunctionBuilder-CsvFjzA8.mjs";
|
|
4
|
+
import "../Function-CZw1DRQ6.mjs";
|
|
5
|
+
import "../FunctionBuilder-m5BNA2Ap.mjs";
|
|
6
|
+
import "../index-DQo_Csy7.mjs";
|
|
7
|
+
import "../Authorizer-DBsrDTuf.mjs";
|
|
8
|
+
import { CookieFn, Endpoint, HeaderFn } from "../Endpoint-BiPM0glm.mjs";
|
|
9
9
|
import { Service, ServiceDiscovery } from "@geekmidas/services";
|
|
10
10
|
import { AuditStorage, AuditableAction, Auditor } from "@geekmidas/audit";
|
|
11
11
|
import { Logger } from "@geekmidas/logger";
|
package/dist/endpoints/rls.cjs
CHANGED
package/dist/endpoints/rls.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import "../types-B5H3piDg.cjs";
|
|
|
3
3
|
import "../BaseFunctionBuilder-C-4hYTfj.cjs";
|
|
4
4
|
import "../Function-CwlB89lS.cjs";
|
|
5
5
|
import "../FunctionBuilder-D_7f5MfS.cjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-BfeupgMl.cjs";
|
|
7
7
|
import "../Authorizer-DWtwC8we.cjs";
|
|
8
8
|
import { RLS_BYPASS, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor } from "../Endpoint-C9N6CmvB.cjs";
|
|
9
9
|
export { RLS_BYPASS, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor };
|
package/dist/endpoints/rls.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../Construct-
|
|
2
|
-
import "../types-
|
|
3
|
-
import "../BaseFunctionBuilder-
|
|
4
|
-
import "../Function-
|
|
5
|
-
import "../FunctionBuilder-
|
|
6
|
-
import "../index-
|
|
7
|
-
import "../Authorizer-
|
|
8
|
-
import { RLS_BYPASS, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor } from "../Endpoint-
|
|
1
|
+
import "../Construct-C2SyofdS.mjs";
|
|
2
|
+
import "../types-aFmq5cKh.mjs";
|
|
3
|
+
import "../BaseFunctionBuilder-CsvFjzA8.mjs";
|
|
4
|
+
import "../Function-CZw1DRQ6.mjs";
|
|
5
|
+
import "../FunctionBuilder-m5BNA2Ap.mjs";
|
|
6
|
+
import "../index-DQo_Csy7.mjs";
|
|
7
|
+
import "../Authorizer-DBsrDTuf.mjs";
|
|
8
|
+
import { RLS_BYPASS, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor } from "../Endpoint-BiPM0glm.mjs";
|
|
9
9
|
export { RLS_BYPASS, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor };
|
package/dist/endpoints/rls.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../Construct-
|
|
2
|
-
import "../Function-
|
|
3
|
-
import "../FunctionExecutionWrapper-
|
|
4
|
-
import { AWSLambdaFunction, AWSLambdaHandler } from "../AWSLambdaFunction-
|
|
1
|
+
import "../Construct-C2SyofdS.mjs";
|
|
2
|
+
import "../Function-CZw1DRQ6.mjs";
|
|
3
|
+
import "../FunctionExecutionWrapper-C7yYXIq-.mjs";
|
|
4
|
+
import { AWSLambdaFunction, AWSLambdaHandler } from "../AWSLambdaFunction-BF1gJJjG.mjs";
|
|
5
5
|
export { AWSLambdaFunction, AWSLambdaHandler };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../Construct-
|
|
2
|
-
import { BaseFunctionBuilder } from "../BaseFunctionBuilder-
|
|
1
|
+
import "../Construct-C2SyofdS.mjs";
|
|
2
|
+
import { BaseFunctionBuilder } from "../BaseFunctionBuilder-CsvFjzA8.mjs";
|
|
3
3
|
export { BaseFunctionBuilder };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../Construct-
|
|
2
|
-
import { Function, FunctionContext, FunctionFactory, FunctionHandler } from "../Function-
|
|
1
|
+
import "../Construct-C2SyofdS.mjs";
|
|
2
|
+
import { Function, FunctionContext, FunctionFactory, FunctionHandler } from "../Function-CZw1DRQ6.mjs";
|
|
3
3
|
export { Function, FunctionContext, FunctionFactory, FunctionHandler };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../Construct-
|
|
2
|
-
import "../BaseFunctionBuilder-
|
|
3
|
-
import "../Function-
|
|
4
|
-
import { FunctionBuilder } from "../FunctionBuilder-
|
|
1
|
+
import "../Construct-C2SyofdS.mjs";
|
|
2
|
+
import "../BaseFunctionBuilder-CsvFjzA8.mjs";
|
|
3
|
+
import "../Function-CZw1DRQ6.mjs";
|
|
4
|
+
import { FunctionBuilder } from "../FunctionBuilder-m5BNA2Ap.mjs";
|
|
5
5
|
export { FunctionBuilder };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../Construct-
|
|
2
|
-
import "../Function-
|
|
3
|
-
import { FunctionExecutionWrapper } from "../FunctionExecutionWrapper-
|
|
1
|
+
import "../Construct-C2SyofdS.mjs";
|
|
2
|
+
import "../Function-CZw1DRQ6.mjs";
|
|
3
|
+
import { FunctionExecutionWrapper } from "../FunctionExecutionWrapper-C7yYXIq-.mjs";
|
|
4
4
|
export { FunctionExecutionWrapper };
|
|
@@ -1,71 +1,8 @@
|
|
|
1
|
-
const require_chunk = require('../chunk-CUT6urMc.cjs');
|
|
2
1
|
require('../Construct-BXG8cFSm.cjs');
|
|
3
|
-
|
|
2
|
+
require('../publisher-lFQleddL.cjs');
|
|
4
3
|
require('../BaseFunctionBuilder-DXf6HK-N.cjs');
|
|
5
4
|
require('../Function-DgQ_no6B.cjs');
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const __geekmidas_audit = require_chunk.__toESM(require("@geekmidas/audit"));
|
|
9
|
-
const __geekmidas_envkit = require_chunk.__toESM(require("@geekmidas/envkit"));
|
|
5
|
+
require('../FunctionBuilder-C_xG9As7.cjs');
|
|
6
|
+
const require_TestFunctionAdaptor = require('../TestFunctionAdaptor-CSMX7myB.cjs');
|
|
10
7
|
|
|
11
|
-
|
|
12
|
-
var TestFunctionAdaptor = class TestFunctionAdaptor {
|
|
13
|
-
static getDefaultServiceDiscovery(_fn) {
|
|
14
|
-
return __geekmidas_services.ServiceDiscovery.getInstance(new __geekmidas_envkit.EnvironmentParser({}));
|
|
15
|
-
}
|
|
16
|
-
constructor(fn, serviceDiscovery = TestFunctionAdaptor.getDefaultServiceDiscovery(fn)) {
|
|
17
|
-
this.fn = fn;
|
|
18
|
-
this.serviceDiscovery = serviceDiscovery;
|
|
19
|
-
}
|
|
20
|
-
async invoke(ctx) {
|
|
21
|
-
const parsedInput = await require_FunctionBuilder.FunctionBuilder.parseComposableStandardSchema(ctx.input, this.fn.input);
|
|
22
|
-
const logger = this.fn.logger.child({ test: true });
|
|
23
|
-
let services;
|
|
24
|
-
if (ctx.services) services = ctx.services;
|
|
25
|
-
else services = await this.serviceDiscovery.register(this.fn.services);
|
|
26
|
-
let db;
|
|
27
|
-
if ("db" in ctx && ctx.db !== void 0) db = ctx.db;
|
|
28
|
-
else if (this.fn.databaseService) {
|
|
29
|
-
const dbServices = await this.serviceDiscovery.register([this.fn.databaseService]);
|
|
30
|
-
db = dbServices[this.fn.databaseService.serviceName];
|
|
31
|
-
}
|
|
32
|
-
let auditor;
|
|
33
|
-
if ("auditor" in ctx && ctx.auditor !== void 0) auditor = ctx.auditor;
|
|
34
|
-
else if (this.fn.auditorStorageService) {
|
|
35
|
-
const auditServices = await this.serviceDiscovery.register([this.fn.auditorStorageService]);
|
|
36
|
-
const storage = auditServices[this.fn.auditorStorageService.serviceName];
|
|
37
|
-
auditor = new __geekmidas_audit.DefaultAuditor({
|
|
38
|
-
actor: {
|
|
39
|
-
id: "system",
|
|
40
|
-
type: "system"
|
|
41
|
-
},
|
|
42
|
-
storage,
|
|
43
|
-
metadata: {
|
|
44
|
-
function: this.fn.type,
|
|
45
|
-
test: true
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
const response = await this.fn.fn({
|
|
50
|
-
input: parsedInput,
|
|
51
|
-
services,
|
|
52
|
-
logger,
|
|
53
|
-
db,
|
|
54
|
-
auditor
|
|
55
|
-
});
|
|
56
|
-
const output = await this.fn.parseOutput(response);
|
|
57
|
-
if (auditor) {
|
|
58
|
-
const records = auditor.getRecords();
|
|
59
|
-
if (records.length > 0) {
|
|
60
|
-
logger.debug({ auditCount: records.length }, "Flushing function audits");
|
|
61
|
-
await auditor.flush();
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
await require_publisher.publishEvents(logger, this.serviceDiscovery, this.fn.events, output, this.fn.publisherService);
|
|
65
|
-
return output;
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
//#endregion
|
|
70
|
-
exports.TestFunctionAdaptor = TestFunctionAdaptor;
|
|
71
|
-
//# sourceMappingURL=TestFunctionAdaptor.cjs.map
|
|
8
|
+
exports.TestFunctionAdaptor = require_TestFunctionAdaptor.TestFunctionAdaptor;
|
|
@@ -1,31 +1,4 @@
|
|
|
1
1
|
import "../Construct-CX7HyFfT.cjs";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { Logger } from "@geekmidas/logger";
|
|
6
|
-
import { Service, ServiceDiscovery, ServiceRecord } from "@geekmidas/services";
|
|
7
|
-
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
8
|
-
import { ComposableStandardSchema, InferComposableStandardSchema, InferStandardSchema } from "@geekmidas/schema";
|
|
9
|
-
|
|
10
|
-
//#region src/functions/TestFunctionAdaptor.d.ts
|
|
11
|
-
declare class TestFunctionAdaptor<TInput extends ComposableStandardSchema | undefined = undefined, TOutSchema extends StandardSchemaV1 | undefined = undefined, TServices extends Service[] = [], TLogger extends Logger = Logger, TEventPublisher extends EventPublisher<any> | undefined = undefined, TEventPublisherServiceName extends string = string, TAuditStorage extends AuditStorage | undefined = undefined, TAuditStorageServiceName extends string = string, TDatabase = undefined, TDatabaseServiceName extends string = string, TAuditAction extends AuditableAction<string, unknown> = AuditableAction<string, unknown>> {
|
|
12
|
-
private readonly fn;
|
|
13
|
-
private serviceDiscovery;
|
|
14
|
-
static getDefaultServiceDiscovery<TInput extends ComposableStandardSchema | undefined = undefined, TOutSchema extends StandardSchemaV1 | undefined = undefined, TServices extends Service[] = [], TLogger extends Logger = Logger, TEventPublisher extends EventPublisher<any> | undefined = undefined, TEventPublisherServiceName extends string = string, TAuditStorage extends AuditStorage | undefined = undefined, TAuditStorageServiceName extends string = string, TDatabase = undefined, TDatabaseServiceName extends string = string, TAuditAction extends AuditableAction<string, unknown> = AuditableAction<string, unknown>>(_fn: Function<TInput, TServices, TLogger, TOutSchema, TEventPublisher, TEventPublisherServiceName, TAuditStorage, TAuditStorageServiceName, TDatabase, TDatabaseServiceName, TAuditAction, any>): ServiceDiscovery<any>;
|
|
15
|
-
constructor(fn: Function<TInput, TServices, TLogger, TOutSchema, TEventPublisher, TEventPublisherServiceName, TAuditStorage, TAuditStorageServiceName, TDatabase, TDatabaseServiceName, TAuditAction, any>, serviceDiscovery?: ServiceDiscovery<any>);
|
|
16
|
-
invoke(ctx: TestFunctionRequest<TInput, TServices, TEventPublisher, TEventPublisherServiceName, TDatabase, TAuditAction>): Promise<InferStandardSchema<TOutSchema>>;
|
|
17
|
-
}
|
|
18
|
-
type TestFunctionRequest<TInput extends ComposableStandardSchema | undefined = undefined, TServices extends Service[] = [], TEventPublisher extends EventPublisher<any> | undefined = undefined, TEventPublisherServiceName extends string = string, TDatabase = undefined, TAuditAction extends AuditableAction<string, unknown> = AuditableAction<string, unknown>> = {
|
|
19
|
-
input: InferComposableStandardSchema<TInput>;
|
|
20
|
-
services: ServiceRecord<TServices>;
|
|
21
|
-
publisher?: Service<TEventPublisherServiceName, TEventPublisher>;
|
|
22
|
-
db?: TDatabase;
|
|
23
|
-
auditor?: Auditor<TAuditAction>;
|
|
24
|
-
} & InferComposableStandardSchema<{
|
|
25
|
-
input: TInput;
|
|
26
|
-
}>;
|
|
27
|
-
//# sourceMappingURL=TestFunctionAdaptor.d.ts.map
|
|
28
|
-
|
|
29
|
-
//#endregion
|
|
30
|
-
export { TestFunctionAdaptor, TestFunctionRequest };
|
|
31
|
-
//# sourceMappingURL=TestFunctionAdaptor.d.cts.map
|
|
2
|
+
import "../Function-CwlB89lS.cjs";
|
|
3
|
+
import { TestFunctionAdaptor, TestFunctionRequest } from "../TestFunctionAdaptor-BHk2bDOV.cjs";
|
|
4
|
+
export { TestFunctionAdaptor, TestFunctionRequest };
|
|
@@ -1,31 +1,4 @@
|
|
|
1
|
-
import "../Construct-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { EventPublisher } from "@geekmidas/events";
|
|
6
|
-
import { Logger } from "@geekmidas/logger";
|
|
7
|
-
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
8
|
-
import { ComposableStandardSchema, InferComposableStandardSchema, InferStandardSchema } from "@geekmidas/schema";
|
|
9
|
-
|
|
10
|
-
//#region src/functions/TestFunctionAdaptor.d.ts
|
|
11
|
-
declare class TestFunctionAdaptor<TInput extends ComposableStandardSchema | undefined = undefined, TOutSchema extends StandardSchemaV1 | undefined = undefined, TServices extends Service[] = [], TLogger extends Logger = Logger, TEventPublisher extends EventPublisher<any> | undefined = undefined, TEventPublisherServiceName extends string = string, TAuditStorage extends AuditStorage | undefined = undefined, TAuditStorageServiceName extends string = string, TDatabase = undefined, TDatabaseServiceName extends string = string, TAuditAction extends AuditableAction<string, unknown> = AuditableAction<string, unknown>> {
|
|
12
|
-
private readonly fn;
|
|
13
|
-
private serviceDiscovery;
|
|
14
|
-
static getDefaultServiceDiscovery<TInput extends ComposableStandardSchema | undefined = undefined, TOutSchema extends StandardSchemaV1 | undefined = undefined, TServices extends Service[] = [], TLogger extends Logger = Logger, TEventPublisher extends EventPublisher<any> | undefined = undefined, TEventPublisherServiceName extends string = string, TAuditStorage extends AuditStorage | undefined = undefined, TAuditStorageServiceName extends string = string, TDatabase = undefined, TDatabaseServiceName extends string = string, TAuditAction extends AuditableAction<string, unknown> = AuditableAction<string, unknown>>(_fn: Function<TInput, TServices, TLogger, TOutSchema, TEventPublisher, TEventPublisherServiceName, TAuditStorage, TAuditStorageServiceName, TDatabase, TDatabaseServiceName, TAuditAction, any>): ServiceDiscovery<any>;
|
|
15
|
-
constructor(fn: Function<TInput, TServices, TLogger, TOutSchema, TEventPublisher, TEventPublisherServiceName, TAuditStorage, TAuditStorageServiceName, TDatabase, TDatabaseServiceName, TAuditAction, any>, serviceDiscovery?: ServiceDiscovery<any>);
|
|
16
|
-
invoke(ctx: TestFunctionRequest<TInput, TServices, TEventPublisher, TEventPublisherServiceName, TDatabase, TAuditAction>): Promise<InferStandardSchema<TOutSchema>>;
|
|
17
|
-
}
|
|
18
|
-
type TestFunctionRequest<TInput extends ComposableStandardSchema | undefined = undefined, TServices extends Service[] = [], TEventPublisher extends EventPublisher<any> | undefined = undefined, TEventPublisherServiceName extends string = string, TDatabase = undefined, TAuditAction extends AuditableAction<string, unknown> = AuditableAction<string, unknown>> = {
|
|
19
|
-
input: InferComposableStandardSchema<TInput>;
|
|
20
|
-
services: ServiceRecord<TServices>;
|
|
21
|
-
publisher?: Service<TEventPublisherServiceName, TEventPublisher>;
|
|
22
|
-
db?: TDatabase;
|
|
23
|
-
auditor?: Auditor<TAuditAction>;
|
|
24
|
-
} & InferComposableStandardSchema<{
|
|
25
|
-
input: TInput;
|
|
26
|
-
}>;
|
|
27
|
-
//# sourceMappingURL=TestFunctionAdaptor.d.ts.map
|
|
28
|
-
|
|
29
|
-
//#endregion
|
|
30
|
-
export { TestFunctionAdaptor, TestFunctionRequest };
|
|
31
|
-
//# sourceMappingURL=TestFunctionAdaptor.d.mts.map
|
|
1
|
+
import "../Construct-C2SyofdS.mjs";
|
|
2
|
+
import "../Function-CZw1DRQ6.mjs";
|
|
3
|
+
import { TestFunctionAdaptor, TestFunctionRequest } from "../TestFunctionAdaptor-DzT8GRdR.mjs";
|
|
4
|
+
export { TestFunctionAdaptor, TestFunctionRequest };
|
|
@@ -1,70 +1,8 @@
|
|
|
1
1
|
import "../Construct-CQ9zV58W.mjs";
|
|
2
|
-
import
|
|
2
|
+
import "../publisher-Bw4770Hi.mjs";
|
|
3
3
|
import "../BaseFunctionBuilder-C3rQMoWb.mjs";
|
|
4
4
|
import "../Function-xfQbftdE.mjs";
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { DefaultAuditor } from "@geekmidas/audit";
|
|
8
|
-
import { EnvironmentParser } from "@geekmidas/envkit";
|
|
5
|
+
import "../FunctionBuilder-CBeqX18X.mjs";
|
|
6
|
+
import { TestFunctionAdaptor } from "../TestFunctionAdaptor-CK-dbKpO.mjs";
|
|
9
7
|
|
|
10
|
-
|
|
11
|
-
var TestFunctionAdaptor = class TestFunctionAdaptor {
|
|
12
|
-
static getDefaultServiceDiscovery(_fn) {
|
|
13
|
-
return ServiceDiscovery.getInstance(new EnvironmentParser({}));
|
|
14
|
-
}
|
|
15
|
-
constructor(fn, serviceDiscovery = TestFunctionAdaptor.getDefaultServiceDiscovery(fn)) {
|
|
16
|
-
this.fn = fn;
|
|
17
|
-
this.serviceDiscovery = serviceDiscovery;
|
|
18
|
-
}
|
|
19
|
-
async invoke(ctx) {
|
|
20
|
-
const parsedInput = await FunctionBuilder.parseComposableStandardSchema(ctx.input, this.fn.input);
|
|
21
|
-
const logger = this.fn.logger.child({ test: true });
|
|
22
|
-
let services;
|
|
23
|
-
if (ctx.services) services = ctx.services;
|
|
24
|
-
else services = await this.serviceDiscovery.register(this.fn.services);
|
|
25
|
-
let db;
|
|
26
|
-
if ("db" in ctx && ctx.db !== void 0) db = ctx.db;
|
|
27
|
-
else if (this.fn.databaseService) {
|
|
28
|
-
const dbServices = await this.serviceDiscovery.register([this.fn.databaseService]);
|
|
29
|
-
db = dbServices[this.fn.databaseService.serviceName];
|
|
30
|
-
}
|
|
31
|
-
let auditor;
|
|
32
|
-
if ("auditor" in ctx && ctx.auditor !== void 0) auditor = ctx.auditor;
|
|
33
|
-
else if (this.fn.auditorStorageService) {
|
|
34
|
-
const auditServices = await this.serviceDiscovery.register([this.fn.auditorStorageService]);
|
|
35
|
-
const storage = auditServices[this.fn.auditorStorageService.serviceName];
|
|
36
|
-
auditor = new DefaultAuditor({
|
|
37
|
-
actor: {
|
|
38
|
-
id: "system",
|
|
39
|
-
type: "system"
|
|
40
|
-
},
|
|
41
|
-
storage,
|
|
42
|
-
metadata: {
|
|
43
|
-
function: this.fn.type,
|
|
44
|
-
test: true
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
const response = await this.fn.fn({
|
|
49
|
-
input: parsedInput,
|
|
50
|
-
services,
|
|
51
|
-
logger,
|
|
52
|
-
db,
|
|
53
|
-
auditor
|
|
54
|
-
});
|
|
55
|
-
const output = await this.fn.parseOutput(response);
|
|
56
|
-
if (auditor) {
|
|
57
|
-
const records = auditor.getRecords();
|
|
58
|
-
if (records.length > 0) {
|
|
59
|
-
logger.debug({ auditCount: records.length }, "Flushing function audits");
|
|
60
|
-
await auditor.flush();
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
await publishEvents(logger, this.serviceDiscovery, this.fn.events, output, this.fn.publisherService);
|
|
64
|
-
return output;
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
//#endregion
|
|
69
|
-
export { TestFunctionAdaptor };
|
|
70
|
-
//# sourceMappingURL=TestFunctionAdaptor.mjs.map
|
|
8
|
+
export { TestFunctionAdaptor };
|
|
@@ -2,5 +2,5 @@ import "../Construct-CX7HyFfT.cjs";
|
|
|
2
2
|
import { BaseFunctionBuilder } from "../BaseFunctionBuilder-C-4hYTfj.cjs";
|
|
3
3
|
import { Function, FunctionContext, FunctionHandler } from "../Function-CwlB89lS.cjs";
|
|
4
4
|
import { FunctionBuilder } from "../FunctionBuilder-D_7f5MfS.cjs";
|
|
5
|
-
import { f } from "../index-
|
|
5
|
+
import { f } from "../index-BfeupgMl.cjs";
|
|
6
6
|
export { BaseFunctionBuilder, Function, FunctionBuilder, FunctionContext, FunctionHandler, f };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../Construct-
|
|
2
|
-
import { BaseFunctionBuilder } from "../BaseFunctionBuilder-
|
|
3
|
-
import { Function, FunctionContext, FunctionHandler } from "../Function-
|
|
4
|
-
import { FunctionBuilder } from "../FunctionBuilder-
|
|
5
|
-
import { f } from "../index-
|
|
1
|
+
import "../Construct-C2SyofdS.mjs";
|
|
2
|
+
import { BaseFunctionBuilder } from "../BaseFunctionBuilder-CsvFjzA8.mjs";
|
|
3
|
+
import { Function, FunctionContext, FunctionHandler } from "../Function-CZw1DRQ6.mjs";
|
|
4
|
+
import { FunctionBuilder } from "../FunctionBuilder-m5BNA2Ap.mjs";
|
|
5
|
+
import { f } from "../index-DQo_Csy7.mjs";
|
|
6
6
|
export { BaseFunctionBuilder, Function, FunctionBuilder, FunctionContext, FunctionHandler, f };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FunctionBuilder } from "./FunctionBuilder-
|
|
1
|
+
import { FunctionBuilder } from "./FunctionBuilder-D_7f5MfS.cjs";
|
|
2
2
|
import * as _geekmidas_audit5 from "@geekmidas/audit";
|
|
3
3
|
import * as _geekmidas_logger4 from "@geekmidas/logger";
|
|
4
4
|
import * as _geekmidas_schema3 from "@geekmidas/schema";
|
|
@@ -9,4 +9,4 @@ declare const f: FunctionBuilder<_geekmidas_schema3.ComposableStandardSchema, un
|
|
|
9
9
|
|
|
10
10
|
//#endregion
|
|
11
11
|
export { f };
|
|
12
|
-
//# sourceMappingURL=index-
|
|
12
|
+
//# sourceMappingURL=index-BfeupgMl.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BfeupgMl.d.cts","names":[],"sources":["../src/functions/index.ts"],"sourcesContent":[],"mappings":";;;;;;cAWa,GAAC,gBAAwB,kBAAA,CAAxB,wBAAA,iBAAA,kBAAA,CAAA,MAAA,2DAAA,iBAAA,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FunctionBuilder } from "./FunctionBuilder-m5BNA2Ap.mjs";
|
|
2
|
+
import * as _geekmidas_audit5 from "@geekmidas/audit";
|
|
3
|
+
import * as _geekmidas_logger4 from "@geekmidas/logger";
|
|
4
|
+
import * as _geekmidas_schema3 from "@geekmidas/schema";
|
|
5
|
+
|
|
6
|
+
//#region src/functions/index.d.ts
|
|
7
|
+
declare const f: FunctionBuilder<_geekmidas_schema3.ComposableStandardSchema, undefined, [], _geekmidas_logger4.Logger, undefined, string, undefined, string, undefined, string, _geekmidas_audit5.AuditableAction<string, unknown>>;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { f };
|
|
12
|
+
//# sourceMappingURL=index-DQo_Csy7.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-DQo_Csy7.d.mts","names":[],"sources":["../src/functions/index.ts"],"sourcesContent":[],"mappings":";;;;;;cAWa,GAAC,gBAAwB,kBAAA,CAAxB,wBAAA,iBAAA,kBAAA,CAAA,MAAA,2DAAA,iBAAA,CAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Construct, ConstructType, sniffService, snifferContext } from "./Construct-
|
|
2
|
-
import { HttpMethod, LowerHttpMethod, RemoveUndefined } from "./types-
|
|
3
|
-
import { Telemetry, TelemetryContext, TelemetryRequest, TelemetryResponse } from "./telemetry-
|
|
1
|
+
import { Construct, ConstructType, sniffService, snifferContext } from "./Construct-C2SyofdS.mjs";
|
|
2
|
+
import { HttpMethod, LowerHttpMethod, RemoveUndefined } from "./types-aFmq5cKh.mjs";
|
|
3
|
+
import { Telemetry, TelemetryContext, TelemetryRequest, TelemetryResponse } from "./telemetry-C-kNOW3C.mjs";
|
|
4
4
|
import { Service, ServiceRecord } from "@geekmidas/services";
|
|
5
5
|
export { Construct, ConstructType, HttpMethod, LowerHttpMethod, RemoveUndefined, Service, ServiceRecord, Telemetry, TelemetryContext, TelemetryRequest, TelemetryResponse, sniffService, snifferContext };
|