@geekmidas/constructs 3.0.7 → 3.0.8
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 +9 -0
- package/dist/{Construct-BXG8cFSm.cjs → Construct-B14miJ6P.cjs} +95 -10
- package/dist/Construct-B14miJ6P.cjs.map +1 -0
- package/dist/{Construct-BjpXFNxy.d.mts → Construct-CXqvzglu.d.cts} +11 -6
- package/dist/{Construct-BjpXFNxy.d.mts.map → Construct-CXqvzglu.d.cts.map} +1 -1
- package/dist/{Construct-CQ9zV58W.mjs → Construct-CdJY2DJS.mjs} +83 -9
- package/dist/Construct-CdJY2DJS.mjs.map +1 -0
- package/dist/{Construct-CX7HyFfT.d.cts → Construct-D0n7QTaI.d.mts} +13 -8
- package/dist/Construct-D0n7QTaI.d.mts.map +1 -0
- package/dist/{Endpoint-CGdCGJkC.d.cts → Endpoint-C991gK3T.d.cts} +130 -27
- package/dist/Endpoint-C991gK3T.d.cts.map +1 -0
- package/dist/{Endpoint-BET0JSZK.d.mts → Endpoint-CRHpLPV3.d.mts} +130 -27
- package/dist/Endpoint-CRHpLPV3.d.mts.map +1 -0
- package/dist/{HonoEndpointAdaptor-B5fKdLi7.cjs → HonoEndpointAdaptor-BDz1qM4z.cjs} +81 -24
- package/dist/HonoEndpointAdaptor-BDz1qM4z.cjs.map +1 -0
- package/dist/{HonoEndpointAdaptor-DOUODM7n.mjs → HonoEndpointAdaptor-DPBfEPZj.mjs} +64 -7
- package/dist/HonoEndpointAdaptor-DPBfEPZj.mjs.map +1 -0
- package/dist/{Subscriber-1rDE7HuM.d.cts → Subscriber-D8WkA8np.d.cts} +3 -3
- package/dist/{Subscriber-1rDE7HuM.d.cts.map → Subscriber-D8WkA8np.d.cts.map} +1 -1
- package/dist/{Subscriber-9ObcUdcC.d.mts → Subscriber-Tft61-YG.d.mts} +5 -5
- package/dist/Subscriber-Tft61-YG.d.mts.map +1 -0
- package/dist/adaptors/aws.cjs +737 -21
- package/dist/adaptors/aws.cjs.map +1 -0
- package/dist/adaptors/aws.d.cts +221 -17
- package/dist/adaptors/aws.d.cts.map +1 -0
- package/dist/adaptors/aws.d.mts +221 -17
- package/dist/adaptors/aws.d.mts.map +1 -0
- package/dist/adaptors/aws.mjs +734 -18
- package/dist/adaptors/aws.mjs.map +1 -0
- package/dist/adaptors/hono.cjs +5 -12
- package/dist/adaptors/hono.d.cts +52 -10
- package/dist/adaptors/hono.d.cts.map +1 -0
- package/dist/adaptors/hono.d.mts +52 -10
- package/dist/adaptors/hono.d.mts.map +1 -0
- package/dist/adaptors/hono.mjs +5 -12
- package/dist/adaptors/testing.cjs +392 -21
- package/dist/adaptors/testing.cjs.map +1 -0
- package/dist/adaptors/testing.d.cts +177 -14
- package/dist/adaptors/testing.d.cts.map +1 -0
- package/dist/adaptors/testing.d.mts +177 -14
- package/dist/adaptors/testing.d.mts.map +1 -0
- package/dist/adaptors/testing.mjs +388 -17
- package/dist/adaptors/testing.mjs.map +1 -0
- package/dist/crons/index.cjs +82 -10
- package/dist/crons/index.cjs.map +1 -1
- package/dist/crons/index.d.cts +48 -11
- package/dist/crons/index.d.cts.map +1 -1
- package/dist/crons/index.d.mts +45 -11
- package/dist/crons/index.d.mts.map +1 -1
- package/dist/crons/index.mjs +79 -7
- package/dist/crons/index.mjs.map +1 -1
- package/dist/endpoints/index.cjs +717 -23
- package/dist/endpoints/index.cjs.map +1 -1
- package/dist/endpoints/index.d.cts +316 -14
- package/dist/endpoints/index.d.cts.map +1 -1
- package/dist/endpoints/index.d.mts +315 -14
- package/dist/endpoints/index.d.mts.map +1 -1
- package/dist/endpoints/index.mjs +706 -12
- package/dist/endpoints/index.mjs.map +1 -1
- package/dist/functions/index.cjs +5 -8
- package/dist/functions/index.d.cts +2 -5
- package/dist/functions/index.d.mts +2 -5
- package/dist/functions/index.mjs +2 -5
- package/dist/functions-DiaRAdfp.cjs +2893 -0
- package/dist/functions-DiaRAdfp.cjs.map +1 -0
- package/dist/functions-GmSHFbpr.mjs +2864 -0
- package/dist/functions-GmSHFbpr.mjs.map +1 -0
- package/dist/index-Cq4fz8uM.d.mts +132 -0
- package/dist/index-Cq4fz8uM.d.mts.map +1 -0
- package/dist/index-CzIMpK-e.d.cts +135 -0
- package/dist/index-CzIMpK-e.d.cts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +1 -1
- package/dist/lazyAccessors-CJZYs9uM.mjs +1887 -0
- package/dist/lazyAccessors-CJZYs9uM.mjs.map +1 -0
- package/dist/lazyAccessors-DHvDeww0.cjs +1964 -0
- package/dist/lazyAccessors-DHvDeww0.cjs.map +1 -0
- package/dist/processAudits-B0PbJf1Z.mjs +80 -0
- package/dist/processAudits-B0PbJf1Z.mjs.map +1 -0
- package/dist/processAudits-CUko08pi.cjs +92 -0
- package/dist/processAudits-CUko08pi.cjs.map +1 -0
- package/dist/subscribers/index.cjs +77 -6
- package/dist/subscribers/index.cjs.map +1 -1
- package/dist/subscribers/index.d.cts +27 -5
- package/dist/subscribers/index.d.cts.map +1 -1
- package/dist/subscribers/index.d.mts +26 -5
- package/dist/subscribers/index.d.mts.map +1 -1
- package/dist/subscribers/index.mjs +74 -3
- package/dist/subscribers/index.mjs.map +1 -1
- package/dist/{telemetry-BTaiRqPo.d.cts → telemetry-Bt0vK4ma.d.cts} +1 -1
- package/dist/{telemetry-BJo1gcV1.d.mts.map → telemetry-Bt0vK4ma.d.cts.map} +1 -1
- package/dist/{telemetry-BJo1gcV1.d.mts → telemetry-COvVBKBM.d.mts} +1 -1
- package/dist/{telemetry-BTaiRqPo.d.cts.map → telemetry-COvVBKBM.d.mts.map} +1 -1
- package/dist/{types-B5H3piDg.d.cts → types-B8YlI4cx.d.cts} +1 -1
- package/dist/{types-B5H3piDg.d.cts.map → types-B8YlI4cx.d.cts.map} +1 -1
- package/dist/{types-BqPOdHEm.d.mts → types-BA3eK4xj.d.mts} +1 -1
- package/dist/{types-BqPOdHEm.d.mts.map → types-BA3eK4xj.d.mts.map} +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/package.json +9 -9
- package/src/Construct.ts +26 -8
- package/src/__tests__/Construct.environment.spec.ts +123 -0
- package/src/endpoints/__tests__/MswEndpointAdaptor.spec.ts +1 -9
- package/tsdown.config.ts +30 -1
- package/dist/AWSLambdaFunction-CC8gMZhz.d.mts +0 -32
- package/dist/AWSLambdaFunction-CC8gMZhz.d.mts.map +0 -1
- package/dist/AWSLambdaFunction-CPEAl5nZ.cjs +0 -120
- package/dist/AWSLambdaFunction-CPEAl5nZ.cjs.map +0 -1
- package/dist/AWSLambdaFunction-DJiCAPAf.mjs +0 -114
- package/dist/AWSLambdaFunction-DJiCAPAf.mjs.map +0 -1
- package/dist/AWSLambdaFunction-tzqv5XU6.d.cts +0 -32
- package/dist/AWSLambdaFunction-tzqv5XU6.d.cts.map +0 -1
- package/dist/AWSLambdaSubscriberAdaptor-Cj1wjkUP.d.cts +0 -36
- package/dist/AWSLambdaSubscriberAdaptor-Cj1wjkUP.d.cts.map +0 -1
- package/dist/AWSLambdaSubscriberAdaptor-Cmx9OQGG.d.mts +0 -36
- package/dist/AWSLambdaSubscriberAdaptor-Cmx9OQGG.d.mts.map +0 -1
- package/dist/AWSLambdaSubscriberAdaptor-RKwKYLl1.mjs +0 -172
- package/dist/AWSLambdaSubscriberAdaptor-RKwKYLl1.mjs.map +0 -1
- package/dist/AWSLambdaSubscriberAdaptor-eZ3qoKvK.cjs +0 -178
- package/dist/AWSLambdaSubscriberAdaptor-eZ3qoKvK.cjs.map +0 -1
- package/dist/AmazonApiGatewayEndpointAdaptor-BIltcbAc.cjs +0 -277
- package/dist/AmazonApiGatewayEndpointAdaptor-BIltcbAc.cjs.map +0 -1
- package/dist/AmazonApiGatewayEndpointAdaptor-BpYtYCeW.mjs +0 -271
- package/dist/AmazonApiGatewayEndpointAdaptor-BpYtYCeW.mjs.map +0 -1
- package/dist/AmazonApiGatewayEndpointAdaptor-DA0rS_1Y.d.mts +0 -124
- package/dist/AmazonApiGatewayEndpointAdaptor-DA0rS_1Y.d.mts.map +0 -1
- package/dist/AmazonApiGatewayEndpointAdaptor-DqNcQGMf.d.cts +0 -124
- package/dist/AmazonApiGatewayEndpointAdaptor-DqNcQGMf.d.cts.map +0 -1
- package/dist/AmazonApiGatewayV1EndpointAdaptor-C7rJzNvG.d.mts +0 -23
- package/dist/AmazonApiGatewayV1EndpointAdaptor-C7rJzNvG.d.mts.map +0 -1
- package/dist/AmazonApiGatewayV1EndpointAdaptor-CRwyWT6t.mjs +0 -42
- package/dist/AmazonApiGatewayV1EndpointAdaptor-CRwyWT6t.mjs.map +0 -1
- package/dist/AmazonApiGatewayV1EndpointAdaptor-DEETT6Wj.cjs +0 -47
- package/dist/AmazonApiGatewayV1EndpointAdaptor-DEETT6Wj.cjs.map +0 -1
- package/dist/AmazonApiGatewayV1EndpointAdaptor-DcN2fYsv.d.cts +0 -23
- package/dist/AmazonApiGatewayV1EndpointAdaptor-DcN2fYsv.d.cts.map +0 -1
- package/dist/AmazonApiGatewayV2EndpointAdaptor-C2qO8FN6.cjs +0 -48
- package/dist/AmazonApiGatewayV2EndpointAdaptor-C2qO8FN6.cjs.map +0 -1
- package/dist/AmazonApiGatewayV2EndpointAdaptor-Cn9UoRgB.d.cts +0 -22
- package/dist/AmazonApiGatewayV2EndpointAdaptor-Cn9UoRgB.d.cts.map +0 -1
- package/dist/AmazonApiGatewayV2EndpointAdaptor-d7NP-bZX.d.mts +0 -22
- package/dist/AmazonApiGatewayV2EndpointAdaptor-d7NP-bZX.d.mts.map +0 -1
- package/dist/AmazonApiGatewayV2EndpointAdaptor-m9YKI294.mjs +0 -42
- package/dist/AmazonApiGatewayV2EndpointAdaptor-m9YKI294.mjs.map +0 -1
- package/dist/Authorizer-BZ1LcZFt.cjs +0 -92
- package/dist/Authorizer-BZ1LcZFt.cjs.map +0 -1
- package/dist/Authorizer-C5_FC_Rq.d.mts +0 -126
- package/dist/Authorizer-C5_FC_Rq.d.mts.map +0 -1
- package/dist/Authorizer-CZpg1Jqk.mjs +0 -68
- package/dist/Authorizer-CZpg1Jqk.mjs.map +0 -1
- package/dist/Authorizer-DWtwC8we.d.cts +0 -126
- package/dist/Authorizer-DWtwC8we.d.cts.map +0 -1
- package/dist/BaseFunctionBuilder-C-4hYTfj.d.cts +0 -42
- package/dist/BaseFunctionBuilder-C-4hYTfj.d.cts.map +0 -1
- package/dist/BaseFunctionBuilder-C3rQMoWb.mjs +0 -70
- package/dist/BaseFunctionBuilder-C3rQMoWb.mjs.map +0 -1
- package/dist/BaseFunctionBuilder-DXf6HK-N.cjs +0 -76
- package/dist/BaseFunctionBuilder-DXf6HK-N.cjs.map +0 -1
- package/dist/BaseFunctionBuilder-Q5qIlF-F.d.mts +0 -42
- package/dist/BaseFunctionBuilder-Q5qIlF-F.d.mts.map +0 -1
- package/dist/Construct-BXG8cFSm.cjs.map +0 -1
- package/dist/Construct-CQ9zV58W.mjs.map +0 -1
- package/dist/Construct-CX7HyFfT.d.cts.map +0 -1
- package/dist/Construct.cjs +0 -6
- package/dist/Construct.d.cts +0 -2
- package/dist/Construct.d.mts +0 -2
- package/dist/Construct.mjs +0 -3
- package/dist/Cron-BljK1gsV.d.mts +0 -26
- package/dist/Cron-BljK1gsV.d.mts.map +0 -1
- package/dist/Cron-C1vyfJ8B.cjs +0 -25
- package/dist/Cron-C1vyfJ8B.cjs.map +0 -1
- package/dist/Cron-CjWQEad0.mjs +0 -20
- package/dist/Cron-CjWQEad0.mjs.map +0 -1
- package/dist/Cron-CllHkk3z.d.cts +0 -26
- package/dist/Cron-CllHkk3z.d.cts.map +0 -1
- package/dist/CronBuilder-CAJFtnmZ.mjs +0 -68
- package/dist/CronBuilder-CAJFtnmZ.mjs.map +0 -1
- package/dist/CronBuilder-CG54f9LM.d.mts +0 -32
- package/dist/CronBuilder-CG54f9LM.d.mts.map +0 -1
- package/dist/CronBuilder-CSMd02lu.cjs +0 -74
- package/dist/CronBuilder-CSMd02lu.cjs.map +0 -1
- package/dist/CronBuilder-i23l40xs.d.cts +0 -32
- package/dist/CronBuilder-i23l40xs.d.cts.map +0 -1
- package/dist/Endpoint-BET0JSZK.d.mts.map +0 -1
- package/dist/Endpoint-BcxvF4F3.cjs +0 -440
- package/dist/Endpoint-BcxvF4F3.cjs.map +0 -1
- package/dist/Endpoint-CGdCGJkC.d.cts.map +0 -1
- package/dist/Endpoint-DvY3aqAy.mjs +0 -422
- package/dist/Endpoint-DvY3aqAy.mjs.map +0 -1
- package/dist/EndpointBuilder-6kdrQyIh.d.mts +0 -146
- package/dist/EndpointBuilder-6kdrQyIh.d.mts.map +0 -1
- package/dist/EndpointBuilder-CSwIguiR.d.cts +0 -146
- package/dist/EndpointBuilder-CSwIguiR.d.cts.map +0 -1
- package/dist/EndpointBuilder-EptJojG9.cjs +0 -268
- package/dist/EndpointBuilder-EptJojG9.cjs.map +0 -1
- package/dist/EndpointBuilder-iDpnACRb.mjs +0 -262
- package/dist/EndpointBuilder-iDpnACRb.mjs.map +0 -1
- package/dist/EndpointFactory-CBagQW5j.d.mts +0 -142
- package/dist/EndpointFactory-CBagQW5j.d.mts.map +0 -1
- package/dist/EndpointFactory-D2QxeaAh.cjs +0 -393
- package/dist/EndpointFactory-D2QxeaAh.cjs.map +0 -1
- package/dist/EndpointFactory-DQYSH8XK.d.cts +0 -142
- package/dist/EndpointFactory-DQYSH8XK.d.cts.map +0 -1
- package/dist/EndpointFactory-wgcqWod-.mjs +0 -381
- package/dist/EndpointFactory-wgcqWod-.mjs.map +0 -1
- package/dist/Function-CwlB89lS.d.cts +0 -76
- package/dist/Function-CwlB89lS.d.cts.map +0 -1
- package/dist/Function-D74HrBnX.d.mts +0 -76
- package/dist/Function-D74HrBnX.d.mts.map +0 -1
- package/dist/Function-DgQ_no6B.cjs +0 -84
- package/dist/Function-DgQ_no6B.cjs.map +0 -1
- package/dist/Function-xfQbftdE.mjs +0 -72
- package/dist/Function-xfQbftdE.mjs.map +0 -1
- package/dist/FunctionBuilder-CBeqX18X.mjs +0 -80
- package/dist/FunctionBuilder-CBeqX18X.mjs.map +0 -1
- package/dist/FunctionBuilder-C_qPxC8g.d.mts +0 -40
- package/dist/FunctionBuilder-C_qPxC8g.d.mts.map +0 -1
- package/dist/FunctionBuilder-C_xG9As7.cjs +0 -86
- package/dist/FunctionBuilder-C_xG9As7.cjs.map +0 -1
- package/dist/FunctionBuilder-D_7f5MfS.d.cts +0 -40
- package/dist/FunctionBuilder-D_7f5MfS.d.cts.map +0 -1
- package/dist/FunctionExecutionWrapper-B0ZAssiy.mjs +0 -101
- package/dist/FunctionExecutionWrapper-B0ZAssiy.mjs.map +0 -1
- package/dist/FunctionExecutionWrapper-Cg8HjuHL.d.cts +0 -50
- package/dist/FunctionExecutionWrapper-Cg8HjuHL.d.cts.map +0 -1
- package/dist/FunctionExecutionWrapper-KKHP6fDY.cjs +0 -107
- package/dist/FunctionExecutionWrapper-KKHP6fDY.cjs.map +0 -1
- package/dist/FunctionExecutionWrapper-xbTmBARx.d.mts +0 -50
- package/dist/FunctionExecutionWrapper-xbTmBARx.d.mts.map +0 -1
- package/dist/HonoEndpointAdaptor-B5fKdLi7.cjs.map +0 -1
- package/dist/HonoEndpointAdaptor-C2deTEwW.d.mts +0 -50
- package/dist/HonoEndpointAdaptor-C2deTEwW.d.mts.map +0 -1
- package/dist/HonoEndpointAdaptor-D3IgM-0B.d.cts +0 -50
- package/dist/HonoEndpointAdaptor-D3IgM-0B.d.cts.map +0 -1
- package/dist/HonoEndpointAdaptor-DOUODM7n.mjs.map +0 -1
- package/dist/MswEndpointAdaptor-B41INCc7.mjs +0 -108
- package/dist/MswEndpointAdaptor-B41INCc7.mjs.map +0 -1
- package/dist/MswEndpointAdaptor-CA_fu6Wx.cjs +0 -120
- package/dist/MswEndpointAdaptor-CA_fu6Wx.cjs.map +0 -1
- package/dist/MswEndpointAdaptor-CXgYbOxw.d.mts +0 -101
- package/dist/MswEndpointAdaptor-CXgYbOxw.d.mts.map +0 -1
- package/dist/MswEndpointAdaptor-CsYvrQeB.d.cts +0 -101
- package/dist/MswEndpointAdaptor-CsYvrQeB.d.cts.map +0 -1
- package/dist/Subscriber-9ObcUdcC.d.mts.map +0 -1
- package/dist/Subscriber-BH76wgkL.mjs +0 -28
- package/dist/Subscriber-BH76wgkL.mjs.map +0 -1
- package/dist/Subscriber-BgspJeS4.cjs +0 -34
- package/dist/Subscriber-BgspJeS4.cjs.map +0 -1
- package/dist/SubscriberBuilder-B4md5wzs.mjs +0 -54
- package/dist/SubscriberBuilder-B4md5wzs.mjs.map +0 -1
- package/dist/SubscriberBuilder-Be7WBbCL.d.cts +0 -28
- package/dist/SubscriberBuilder-Be7WBbCL.d.cts.map +0 -1
- package/dist/SubscriberBuilder-BtL22ZJ9.cjs +0 -60
- package/dist/SubscriberBuilder-BtL22ZJ9.cjs.map +0 -1
- package/dist/SubscriberBuilder-DsfIkgTF.d.mts +0 -28
- package/dist/SubscriberBuilder-DsfIkgTF.d.mts.map +0 -1
- package/dist/TestEndpointAdaptor-BFmgf7Fn.mjs +0 -174
- package/dist/TestEndpointAdaptor-BFmgf7Fn.mjs.map +0 -1
- package/dist/TestEndpointAdaptor-C79Z-QS4.d.mts +0 -45
- package/dist/TestEndpointAdaptor-C79Z-QS4.d.mts.map +0 -1
- package/dist/TestEndpointAdaptor-DYLDyAAC.cjs +0 -180
- package/dist/TestEndpointAdaptor-DYLDyAAC.cjs.map +0 -1
- package/dist/TestEndpointAdaptor-pM8yskbb.d.cts +0 -45
- package/dist/TestEndpointAdaptor-pM8yskbb.d.cts.map +0 -1
- package/dist/TestFunctionAdaptor-B859kIeb.cjs +0 -81
- package/dist/TestFunctionAdaptor-B859kIeb.cjs.map +0 -1
- package/dist/TestFunctionAdaptor-C0A-VqnM.d.mts +0 -30
- package/dist/TestFunctionAdaptor-C0A-VqnM.d.mts.map +0 -1
- package/dist/TestFunctionAdaptor-CqdSlhx1.mjs +0 -75
- package/dist/TestFunctionAdaptor-CqdSlhx1.mjs.map +0 -1
- package/dist/TestFunctionAdaptor-Dbq55dKP.d.cts +0 -30
- package/dist/TestFunctionAdaptor-Dbq55dKP.d.cts.map +0 -1
- package/dist/TestSubscriberAdaptor-BEyCFP9G.d.mts +0 -26
- package/dist/TestSubscriberAdaptor-BEyCFP9G.d.mts.map +0 -1
- package/dist/TestSubscriberAdaptor-BknOLRQw.d.cts +0 -26
- package/dist/TestSubscriberAdaptor-BknOLRQw.d.cts.map +0 -1
- package/dist/TestSubscriberAdaptor-CCcviuKa.mjs +0 -51
- package/dist/TestSubscriberAdaptor-CCcviuKa.mjs.map +0 -1
- package/dist/TestSubscriberAdaptor-_69o1d0f.cjs +0 -57
- package/dist/TestSubscriberAdaptor-_69o1d0f.cjs.map +0 -1
- package/dist/chunk-CUT6urMc.cjs +0 -30
- package/dist/crons/Cron.cjs +0 -8
- package/dist/crons/Cron.d.cts +0 -7
- package/dist/crons/Cron.d.mts +0 -7
- package/dist/crons/Cron.mjs +0 -8
- package/dist/crons/CronBuilder.cjs +0 -9
- package/dist/crons/CronBuilder.d.cts +0 -8
- package/dist/crons/CronBuilder.d.mts +0 -8
- package/dist/crons/CronBuilder.mjs +0 -9
- package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.cjs +0 -11
- package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.d.cts +0 -11
- package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.d.mts +0 -11
- package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.mjs +0 -11
- package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.cjs +0 -13
- package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.d.cts +0 -12
- package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.d.mts +0 -12
- package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.mjs +0 -13
- package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.cjs +0 -13
- package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.d.cts +0 -12
- package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.d.mts +0 -12
- package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.mjs +0 -13
- package/dist/endpoints/Authorizer.cjs +0 -6
- package/dist/endpoints/Authorizer.d.cts +0 -2
- package/dist/endpoints/Authorizer.d.mts +0 -2
- package/dist/endpoints/Authorizer.mjs +0 -3
- package/dist/endpoints/Endpoint.cjs +0 -10
- package/dist/endpoints/Endpoint.d.cts +0 -9
- package/dist/endpoints/Endpoint.d.mts +0 -9
- package/dist/endpoints/Endpoint.mjs +0 -8
- package/dist/endpoints/EndpointBuilder.cjs +0 -11
- package/dist/endpoints/EndpointBuilder.d.cts +0 -10
- package/dist/endpoints/EndpointBuilder.d.mts +0 -10
- package/dist/endpoints/EndpointBuilder.mjs +0 -11
- package/dist/endpoints/EndpointFactory.cjs +0 -13
- package/dist/endpoints/EndpointFactory.d.cts +0 -11
- package/dist/endpoints/EndpointFactory.d.mts +0 -11
- package/dist/endpoints/EndpointFactory.mjs +0 -12
- package/dist/endpoints/HonoEndpointAdaptor.cjs +0 -14
- package/dist/endpoints/HonoEndpointAdaptor.d.cts +0 -10
- package/dist/endpoints/HonoEndpointAdaptor.d.mts +0 -10
- package/dist/endpoints/HonoEndpointAdaptor.mjs +0 -14
- package/dist/endpoints/MswEndpointAdaptor.cjs +0 -16
- package/dist/endpoints/MswEndpointAdaptor.d.cts +0 -10
- package/dist/endpoints/MswEndpointAdaptor.d.mts +0 -10
- package/dist/endpoints/MswEndpointAdaptor.mjs +0 -15
- package/dist/endpoints/TestEndpointAdaptor.cjs +0 -12
- package/dist/endpoints/TestEndpointAdaptor.d.cts +0 -10
- package/dist/endpoints/TestEndpointAdaptor.d.mts +0 -10
- package/dist/endpoints/TestEndpointAdaptor.mjs +0 -12
- package/dist/endpoints/audit.cjs +0 -0
- package/dist/endpoints/audit.d.cts +0 -9
- package/dist/endpoints/audit.d.mts +0 -9
- package/dist/endpoints/audit.mjs +0 -0
- package/dist/endpoints/helpers.cjs +0 -10
- package/dist/endpoints/helpers.d.cts +0 -60
- package/dist/endpoints/helpers.d.cts.map +0 -1
- package/dist/endpoints/helpers.d.mts +0 -60
- package/dist/endpoints/helpers.d.mts.map +0 -1
- package/dist/endpoints/helpers.mjs +0 -9
- package/dist/endpoints/lazyAccessors.cjs +0 -10
- package/dist/endpoints/lazyAccessors.d.cts +0 -10
- package/dist/endpoints/lazyAccessors.d.mts +0 -10
- package/dist/endpoints/lazyAccessors.mjs +0 -3
- package/dist/endpoints/parseHonoQuery.cjs +0 -3
- package/dist/endpoints/parseHonoQuery.d.cts +0 -14
- package/dist/endpoints/parseHonoQuery.d.cts.map +0 -1
- package/dist/endpoints/parseHonoQuery.d.mts +0 -14
- package/dist/endpoints/parseHonoQuery.d.mts.map +0 -1
- package/dist/endpoints/parseHonoQuery.mjs +0 -3
- package/dist/endpoints/parseQueryParams.cjs +0 -3
- package/dist/endpoints/parseQueryParams.d.cts +0 -14
- package/dist/endpoints/parseQueryParams.d.cts.map +0 -1
- package/dist/endpoints/parseQueryParams.d.mts +0 -14
- package/dist/endpoints/parseQueryParams.d.mts.map +0 -1
- package/dist/endpoints/parseQueryParams.mjs +0 -3
- package/dist/endpoints/processAudits.cjs +0 -5
- package/dist/endpoints/processAudits.d.cts +0 -95
- package/dist/endpoints/processAudits.d.cts.map +0 -1
- package/dist/endpoints/processAudits.d.mts +0 -95
- package/dist/endpoints/processAudits.d.mts.map +0 -1
- package/dist/endpoints/processAudits.mjs +0 -3
- package/dist/endpoints/rls.cjs +0 -3
- package/dist/endpoints/rls.d.cts +0 -9
- package/dist/endpoints/rls.d.mts +0 -9
- package/dist/endpoints/rls.mjs +0 -3
- package/dist/functions/AWSLambdaFunction.cjs +0 -9
- package/dist/functions/AWSLambdaFunction.d.cts +0 -5
- package/dist/functions/AWSLambdaFunction.d.mts +0 -5
- package/dist/functions/AWSLambdaFunction.mjs +0 -9
- package/dist/functions/BaseFunctionBuilder.cjs +0 -4
- package/dist/functions/BaseFunctionBuilder.d.cts +0 -3
- package/dist/functions/BaseFunctionBuilder.d.mts +0 -3
- package/dist/functions/BaseFunctionBuilder.mjs +0 -4
- package/dist/functions/Function.cjs +0 -5
- package/dist/functions/Function.d.cts +0 -3
- package/dist/functions/Function.d.mts +0 -3
- package/dist/functions/Function.mjs +0 -4
- package/dist/functions/FunctionBuilder.cjs +0 -6
- package/dist/functions/FunctionBuilder.d.cts +0 -5
- package/dist/functions/FunctionBuilder.d.mts +0 -5
- package/dist/functions/FunctionBuilder.mjs +0 -6
- package/dist/functions/FunctionExecutionWrapper.cjs +0 -8
- package/dist/functions/FunctionExecutionWrapper.d.cts +0 -4
- package/dist/functions/FunctionExecutionWrapper.d.mts +0 -4
- package/dist/functions/FunctionExecutionWrapper.mjs +0 -8
- package/dist/functions/TestFunctionAdaptor.cjs +0 -8
- package/dist/functions/TestFunctionAdaptor.d.cts +0 -4
- package/dist/functions/TestFunctionAdaptor.d.mts +0 -4
- package/dist/functions/TestFunctionAdaptor.mjs +0 -8
- package/dist/functions-B1mrMoUH.mjs +0 -8
- package/dist/functions-B1mrMoUH.mjs.map +0 -1
- package/dist/functions-rOD3pXQd.cjs +0 -13
- package/dist/functions-rOD3pXQd.cjs.map +0 -1
- package/dist/helpers-BYyX0qTA.cjs +0 -95
- package/dist/helpers-BYyX0qTA.cjs.map +0 -1
- package/dist/helpers-BtwC2IW8.mjs +0 -83
- package/dist/helpers-BtwC2IW8.mjs.map +0 -1
- package/dist/index-BfeupgMl.d.cts +0 -12
- package/dist/index-BfeupgMl.d.cts.map +0 -1
- package/dist/index-Cg2UDz1r.d.mts +0 -12
- package/dist/index-Cg2UDz1r.d.mts.map +0 -1
- package/dist/lazyAccessors-BVEtB9lU.cjs +0 -223
- package/dist/lazyAccessors-BVEtB9lU.cjs.map +0 -1
- package/dist/lazyAccessors-Bxy5DBp4.d.cts +0 -49
- package/dist/lazyAccessors-Bxy5DBp4.d.cts.map +0 -1
- package/dist/lazyAccessors-CWFdtzSR.d.mts +0 -49
- package/dist/lazyAccessors-CWFdtzSR.d.mts.map +0 -1
- package/dist/lazyAccessors-DM6HcXQk.mjs +0 -175
- package/dist/lazyAccessors-DM6HcXQk.mjs.map +0 -1
- package/dist/parseHonoQuery-BBs8CX-H.cjs +0 -24
- package/dist/parseHonoQuery-BBs8CX-H.cjs.map +0 -1
- package/dist/parseHonoQuery-Cp8CII0P.mjs +0 -18
- package/dist/parseHonoQuery-Cp8CII0P.mjs.map +0 -1
- package/dist/parseQueryParams-B4RK1za3.cjs +0 -31
- package/dist/parseQueryParams-B4RK1za3.cjs.map +0 -1
- package/dist/parseQueryParams-DS3Qmrbd.mjs +0 -25
- package/dist/parseQueryParams-DS3Qmrbd.mjs.map +0 -1
- package/dist/processAudits-CzHkPokQ.cjs +0 -180
- package/dist/processAudits-CzHkPokQ.cjs.map +0 -1
- package/dist/processAudits-Dj8UGqcW.mjs +0 -162
- package/dist/processAudits-Dj8UGqcW.mjs.map +0 -1
- package/dist/publisher-BUDHcaz3.d.cts +0 -16
- package/dist/publisher-BUDHcaz3.d.cts.map +0 -1
- package/dist/publisher-Bw4770Hi.mjs +0 -41
- package/dist/publisher-Bw4770Hi.mjs.map +0 -1
- package/dist/publisher-DXglijK_.d.mts +0 -16
- package/dist/publisher-DXglijK_.d.mts.map +0 -1
- package/dist/publisher-lFQleddL.cjs +0 -53
- package/dist/publisher-lFQleddL.cjs.map +0 -1
- package/dist/publisher.cjs +0 -4
- package/dist/publisher.d.cts +0 -3
- package/dist/publisher.d.mts +0 -3
- package/dist/publisher.mjs +0 -3
- package/dist/rls-C0r4UKVm.mjs +0 -9
- package/dist/rls-C0r4UKVm.mjs.map +0 -1
- package/dist/rls-Cfb6w-tQ.cjs +0 -15
- package/dist/rls-Cfb6w-tQ.cjs.map +0 -1
- package/dist/subscribers/AWSLambdaSubscriberAdaptor.cjs +0 -3
- package/dist/subscribers/AWSLambdaSubscriberAdaptor.d.cts +0 -4
- package/dist/subscribers/AWSLambdaSubscriberAdaptor.d.mts +0 -4
- package/dist/subscribers/AWSLambdaSubscriberAdaptor.mjs +0 -3
- package/dist/subscribers/Subscriber.cjs +0 -4
- package/dist/subscribers/Subscriber.d.cts +0 -3
- package/dist/subscribers/Subscriber.d.mts +0 -3
- package/dist/subscribers/Subscriber.mjs +0 -4
- package/dist/subscribers/SubscriberBuilder.cjs +0 -5
- package/dist/subscribers/SubscriberBuilder.d.cts +0 -4
- package/dist/subscribers/SubscriberBuilder.d.mts +0 -4
- package/dist/subscribers/SubscriberBuilder.mjs +0 -5
- package/dist/subscribers/TestSubscriberAdaptor.cjs +0 -4
- package/dist/subscribers/TestSubscriberAdaptor.d.cts +0 -4
- package/dist/subscribers/TestSubscriberAdaptor.d.mts +0 -4
- package/dist/subscribers/TestSubscriberAdaptor.mjs +0 -4
- package/dist/telemetry.cjs +0 -0
- package/dist/telemetry.d.cts +0 -2
- package/dist/telemetry.d.mts +0 -2
- package/dist/telemetry.mjs +0 -0
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import "../Construct-BjpXFNxy.mjs";
|
|
2
|
-
import "../types-BqPOdHEm.mjs";
|
|
3
|
-
import "../BaseFunctionBuilder-Q5qIlF-F.mjs";
|
|
4
|
-
import "../Function-D74HrBnX.mjs";
|
|
5
|
-
import "../FunctionBuilder-C_qPxC8g.mjs";
|
|
6
|
-
import "../index-Cg2UDz1r.mjs";
|
|
7
|
-
import "../Authorizer-C5_FC_Rq.mjs";
|
|
8
|
-
import "../Endpoint-BET0JSZK.mjs";
|
|
9
|
-
import { HonoEndpoint, HonoEndpointOptions } from "../HonoEndpointAdaptor-C2deTEwW.mjs";
|
|
10
|
-
export { HonoEndpoint, HonoEndpointOptions };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import "../Construct-CQ9zV58W.mjs";
|
|
2
|
-
import "../publisher-Bw4770Hi.mjs";
|
|
3
|
-
import "../BaseFunctionBuilder-C3rQMoWb.mjs";
|
|
4
|
-
import "../Function-xfQbftdE.mjs";
|
|
5
|
-
import "../FunctionBuilder-CBeqX18X.mjs";
|
|
6
|
-
import "../functions-B1mrMoUH.mjs";
|
|
7
|
-
import "../Endpoint-DvY3aqAy.mjs";
|
|
8
|
-
import "../processAudits-Dj8UGqcW.mjs";
|
|
9
|
-
import "../lazyAccessors-DM6HcXQk.mjs";
|
|
10
|
-
import "../helpers-BtwC2IW8.mjs";
|
|
11
|
-
import "../parseHonoQuery-Cp8CII0P.mjs";
|
|
12
|
-
import { HonoEndpoint } from "../HonoEndpointAdaptor-DOUODM7n.mjs";
|
|
13
|
-
|
|
14
|
-
export { HonoEndpoint };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
require('../Construct-BXG8cFSm.cjs');
|
|
2
|
-
require('../publisher-lFQleddL.cjs');
|
|
3
|
-
require('../BaseFunctionBuilder-DXf6HK-N.cjs');
|
|
4
|
-
require('../Function-DgQ_no6B.cjs');
|
|
5
|
-
require('../FunctionBuilder-C_xG9As7.cjs');
|
|
6
|
-
require('../functions-rOD3pXQd.cjs');
|
|
7
|
-
require('../Endpoint-BcxvF4F3.cjs');
|
|
8
|
-
require('../processAudits-CzHkPokQ.cjs');
|
|
9
|
-
require('../lazyAccessors-BVEtB9lU.cjs');
|
|
10
|
-
require('../helpers-BYyX0qTA.cjs');
|
|
11
|
-
require('../parseHonoQuery-BBs8CX-H.cjs');
|
|
12
|
-
require('../HonoEndpointAdaptor-B5fKdLi7.cjs');
|
|
13
|
-
const require_MswEndpointAdaptor = require('../MswEndpointAdaptor-CA_fu6Wx.cjs');
|
|
14
|
-
|
|
15
|
-
exports.TEST_CONTEXT_HEADER = require_MswEndpointAdaptor.TEST_CONTEXT_HEADER;
|
|
16
|
-
exports.createMswHandlers = require_MswEndpointAdaptor.createMswHandlers;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import "../Construct-CX7HyFfT.cjs";
|
|
2
|
-
import "../types-B5H3piDg.cjs";
|
|
3
|
-
import "../BaseFunctionBuilder-C-4hYTfj.cjs";
|
|
4
|
-
import "../Function-CwlB89lS.cjs";
|
|
5
|
-
import "../FunctionBuilder-D_7f5MfS.cjs";
|
|
6
|
-
import "../index-BfeupgMl.cjs";
|
|
7
|
-
import "../Authorizer-DWtwC8we.cjs";
|
|
8
|
-
import "../Endpoint-CGdCGJkC.cjs";
|
|
9
|
-
import { CreateMswHandlersOptions, CreateMswHandlersResult, MswTestContext, RegisterContextOptions, TEST_CONTEXT_HEADER, createMswHandlers } from "../MswEndpointAdaptor-CsYvrQeB.cjs";
|
|
10
|
-
export { CreateMswHandlersOptions, CreateMswHandlersResult, MswTestContext, RegisterContextOptions, TEST_CONTEXT_HEADER, createMswHandlers };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import "../Construct-BjpXFNxy.mjs";
|
|
2
|
-
import "../types-BqPOdHEm.mjs";
|
|
3
|
-
import "../BaseFunctionBuilder-Q5qIlF-F.mjs";
|
|
4
|
-
import "../Function-D74HrBnX.mjs";
|
|
5
|
-
import "../FunctionBuilder-C_qPxC8g.mjs";
|
|
6
|
-
import "../index-Cg2UDz1r.mjs";
|
|
7
|
-
import "../Authorizer-C5_FC_Rq.mjs";
|
|
8
|
-
import "../Endpoint-BET0JSZK.mjs";
|
|
9
|
-
import { CreateMswHandlersOptions, CreateMswHandlersResult, MswTestContext, RegisterContextOptions, TEST_CONTEXT_HEADER, createMswHandlers } from "../MswEndpointAdaptor-CXgYbOxw.mjs";
|
|
10
|
-
export { CreateMswHandlersOptions, CreateMswHandlersResult, MswTestContext, RegisterContextOptions, TEST_CONTEXT_HEADER, createMswHandlers };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import "../Construct-CQ9zV58W.mjs";
|
|
2
|
-
import "../publisher-Bw4770Hi.mjs";
|
|
3
|
-
import "../BaseFunctionBuilder-C3rQMoWb.mjs";
|
|
4
|
-
import "../Function-xfQbftdE.mjs";
|
|
5
|
-
import "../FunctionBuilder-CBeqX18X.mjs";
|
|
6
|
-
import "../functions-B1mrMoUH.mjs";
|
|
7
|
-
import "../Endpoint-DvY3aqAy.mjs";
|
|
8
|
-
import "../processAudits-Dj8UGqcW.mjs";
|
|
9
|
-
import "../lazyAccessors-DM6HcXQk.mjs";
|
|
10
|
-
import "../helpers-BtwC2IW8.mjs";
|
|
11
|
-
import "../parseHonoQuery-Cp8CII0P.mjs";
|
|
12
|
-
import "../HonoEndpointAdaptor-DOUODM7n.mjs";
|
|
13
|
-
import { TEST_CONTEXT_HEADER, createMswHandlers } from "../MswEndpointAdaptor-B41INCc7.mjs";
|
|
14
|
-
|
|
15
|
-
export { TEST_CONTEXT_HEADER, createMswHandlers };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
require('../Construct-BXG8cFSm.cjs');
|
|
2
|
-
require('../publisher-lFQleddL.cjs');
|
|
3
|
-
require('../BaseFunctionBuilder-DXf6HK-N.cjs');
|
|
4
|
-
require('../Function-DgQ_no6B.cjs');
|
|
5
|
-
require('../FunctionBuilder-C_xG9As7.cjs');
|
|
6
|
-
require('../functions-rOD3pXQd.cjs');
|
|
7
|
-
require('../Endpoint-BcxvF4F3.cjs');
|
|
8
|
-
require('../processAudits-CzHkPokQ.cjs');
|
|
9
|
-
require('../lazyAccessors-BVEtB9lU.cjs');
|
|
10
|
-
const require_TestEndpointAdaptor = require('../TestEndpointAdaptor-DYLDyAAC.cjs');
|
|
11
|
-
|
|
12
|
-
exports.TestEndpointAdaptor = require_TestEndpointAdaptor.TestEndpointAdaptor;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import "../Construct-CX7HyFfT.cjs";
|
|
2
|
-
import "../types-B5H3piDg.cjs";
|
|
3
|
-
import "../BaseFunctionBuilder-C-4hYTfj.cjs";
|
|
4
|
-
import "../Function-CwlB89lS.cjs";
|
|
5
|
-
import "../FunctionBuilder-D_7f5MfS.cjs";
|
|
6
|
-
import "../index-BfeupgMl.cjs";
|
|
7
|
-
import "../Authorizer-DWtwC8we.cjs";
|
|
8
|
-
import "../Endpoint-CGdCGJkC.cjs";
|
|
9
|
-
import { TestEndpointAdaptor, TestHttpResponse, TestRequestAdaptor } from "../TestEndpointAdaptor-pM8yskbb.cjs";
|
|
10
|
-
export { TestEndpointAdaptor, TestHttpResponse, TestRequestAdaptor };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import "../Construct-BjpXFNxy.mjs";
|
|
2
|
-
import "../types-BqPOdHEm.mjs";
|
|
3
|
-
import "../BaseFunctionBuilder-Q5qIlF-F.mjs";
|
|
4
|
-
import "../Function-D74HrBnX.mjs";
|
|
5
|
-
import "../FunctionBuilder-C_qPxC8g.mjs";
|
|
6
|
-
import "../index-Cg2UDz1r.mjs";
|
|
7
|
-
import "../Authorizer-C5_FC_Rq.mjs";
|
|
8
|
-
import "../Endpoint-BET0JSZK.mjs";
|
|
9
|
-
import { TestEndpointAdaptor, TestHttpResponse, TestRequestAdaptor } from "../TestEndpointAdaptor-C79Z-QS4.mjs";
|
|
10
|
-
export { TestEndpointAdaptor, TestHttpResponse, TestRequestAdaptor };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import "../Construct-CQ9zV58W.mjs";
|
|
2
|
-
import "../publisher-Bw4770Hi.mjs";
|
|
3
|
-
import "../BaseFunctionBuilder-C3rQMoWb.mjs";
|
|
4
|
-
import "../Function-xfQbftdE.mjs";
|
|
5
|
-
import "../FunctionBuilder-CBeqX18X.mjs";
|
|
6
|
-
import "../functions-B1mrMoUH.mjs";
|
|
7
|
-
import "../Endpoint-DvY3aqAy.mjs";
|
|
8
|
-
import "../processAudits-Dj8UGqcW.mjs";
|
|
9
|
-
import "../lazyAccessors-DM6HcXQk.mjs";
|
|
10
|
-
import { TestEndpointAdaptor } from "../TestEndpointAdaptor-BFmgf7Fn.mjs";
|
|
11
|
-
|
|
12
|
-
export { TestEndpointAdaptor };
|
package/dist/endpoints/audit.cjs
DELETED
|
File without changes
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import "../Construct-CX7HyFfT.cjs";
|
|
2
|
-
import "../types-B5H3piDg.cjs";
|
|
3
|
-
import "../BaseFunctionBuilder-C-4hYTfj.cjs";
|
|
4
|
-
import "../Function-CwlB89lS.cjs";
|
|
5
|
-
import "../FunctionBuilder-D_7f5MfS.cjs";
|
|
6
|
-
import "../index-BfeupgMl.cjs";
|
|
7
|
-
import "../Authorizer-DWtwC8we.cjs";
|
|
8
|
-
import { ActorExtractor, EndpointAuditorConfig, MappedAudit } from "../Endpoint-CGdCGJkC.cjs";
|
|
9
|
-
export { ActorExtractor, EndpointAuditorConfig, MappedAudit };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import "../Construct-BjpXFNxy.mjs";
|
|
2
|
-
import "../types-BqPOdHEm.mjs";
|
|
3
|
-
import "../BaseFunctionBuilder-Q5qIlF-F.mjs";
|
|
4
|
-
import "../Function-D74HrBnX.mjs";
|
|
5
|
-
import "../FunctionBuilder-C_qPxC8g.mjs";
|
|
6
|
-
import "../index-Cg2UDz1r.mjs";
|
|
7
|
-
import "../Authorizer-C5_FC_Rq.mjs";
|
|
8
|
-
import { ActorExtractor, EndpointAuditorConfig, MappedAudit } from "../Endpoint-BET0JSZK.mjs";
|
|
9
|
-
export { ActorExtractor, EndpointAuditorConfig, MappedAudit };
|
package/dist/endpoints/audit.mjs
DELETED
|
File without changes
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
require('../Construct-BXG8cFSm.cjs');
|
|
2
|
-
require('../BaseFunctionBuilder-DXf6HK-N.cjs');
|
|
3
|
-
require('../Function-DgQ_no6B.cjs');
|
|
4
|
-
require('../FunctionBuilder-C_xG9As7.cjs');
|
|
5
|
-
require('../functions-rOD3pXQd.cjs');
|
|
6
|
-
require('../Endpoint-BcxvF4F3.cjs');
|
|
7
|
-
const require_helpers = require('../helpers-BYyX0qTA.cjs');
|
|
8
|
-
|
|
9
|
-
exports.getEndpointsFromRoutes = require_helpers.getEndpointsFromRoutes;
|
|
10
|
-
exports.getProjectRoot = require_helpers.getProjectRoot;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import "../Construct-CX7HyFfT.cjs";
|
|
2
|
-
import { HttpMethod } from "../types-B5H3piDg.cjs";
|
|
3
|
-
import "../BaseFunctionBuilder-C-4hYTfj.cjs";
|
|
4
|
-
import "../Function-CwlB89lS.cjs";
|
|
5
|
-
import "../FunctionBuilder-D_7f5MfS.cjs";
|
|
6
|
-
import "../index-BfeupgMl.cjs";
|
|
7
|
-
import "../Authorizer-DWtwC8we.cjs";
|
|
8
|
-
import { Endpoint } from "../Endpoint-CGdCGJkC.cjs";
|
|
9
|
-
import { Service } from "@geekmidas/services";
|
|
10
|
-
|
|
11
|
-
//#region src/endpoints/helpers.d.ts
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Recursively finds the project root directory by looking for lock files.
|
|
15
|
-
* Traverses up the directory tree until it finds a package manager lock file.
|
|
16
|
-
*
|
|
17
|
-
* @param cwd - The current working directory to start searching from
|
|
18
|
-
* @returns Promise resolving to the absolute path of the project root
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```typescript
|
|
22
|
-
* const projectRoot = await getProjectRoot(process.cwd());
|
|
23
|
-
* console.log(`Project root: ${projectRoot}`);
|
|
24
|
-
* // Output: Project root: /Users/user/my-project
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
declare function getProjectRoot(cwd: string): Promise<string>;
|
|
28
|
-
/**
|
|
29
|
-
* Discovers and imports all Endpoint instances from the specified route patterns.
|
|
30
|
-
* Uses fast-glob to find files matching the patterns and extracts exported Endpoints.
|
|
31
|
-
*
|
|
32
|
-
* @template TServices - Array of service types used by the endpoints
|
|
33
|
-
* @param routes - Array of glob patterns to match route files (e.g., ['src/routes/*.ts'])
|
|
34
|
-
* @param cwd - The current working directory to resolve paths from
|
|
35
|
-
* @returns Promise resolving to an array of Endpoint instances found in the matched files
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```typescript
|
|
39
|
-
* // Find all endpoints in the routes directory
|
|
40
|
-
* const endpoints = await getEndpointsFromRoutes(
|
|
41
|
-
* ['src/routes/**\/*.ts'],
|
|
42
|
-
* process.cwd()
|
|
43
|
-
* );
|
|
44
|
-
*
|
|
45
|
-
* // Register endpoints with your server
|
|
46
|
-
* for (const endpoint of endpoints) {
|
|
47
|
-
* server.register(endpoint);
|
|
48
|
-
* }
|
|
49
|
-
* ```
|
|
50
|
-
*
|
|
51
|
-
* @remarks
|
|
52
|
-
* - Only exports that are valid Endpoint instances are included
|
|
53
|
-
* - Files are imported dynamically, so they must be valid ES modules
|
|
54
|
-
* - The function filters out non-Endpoint exports automatically
|
|
55
|
-
*/
|
|
56
|
-
declare function getEndpointsFromRoutes<TServices extends Service[]>(routes: string[], cwd: string): Promise<Endpoint<string, HttpMethod, any, any, TServices>[]>;
|
|
57
|
-
//# sourceMappingURL=helpers.d.ts.map
|
|
58
|
-
//#endregion
|
|
59
|
-
export { getEndpointsFromRoutes, getProjectRoot };
|
|
60
|
-
//# sourceMappingURL=helpers.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.cts","names":[],"sources":["../../src/endpoints/helpers.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAsBA;AAoDA;;;;;AAGW,iBAvDW,cAAA,CAuDX,GAAA,EAAA,MAAA,CAAA,EAvDwC,OAuDxC,CAAA,MAAA,CAAA;;AAAD;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAHY,yCAAyC,2CAG5D,QAAQ,iBAAiB,sBAAsB"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import "../Construct-BjpXFNxy.mjs";
|
|
2
|
-
import { HttpMethod } from "../types-BqPOdHEm.mjs";
|
|
3
|
-
import "../BaseFunctionBuilder-Q5qIlF-F.mjs";
|
|
4
|
-
import "../Function-D74HrBnX.mjs";
|
|
5
|
-
import "../FunctionBuilder-C_qPxC8g.mjs";
|
|
6
|
-
import "../index-Cg2UDz1r.mjs";
|
|
7
|
-
import "../Authorizer-C5_FC_Rq.mjs";
|
|
8
|
-
import { Endpoint } from "../Endpoint-BET0JSZK.mjs";
|
|
9
|
-
import { Service } from "@geekmidas/services";
|
|
10
|
-
|
|
11
|
-
//#region src/endpoints/helpers.d.ts
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Recursively finds the project root directory by looking for lock files.
|
|
15
|
-
* Traverses up the directory tree until it finds a package manager lock file.
|
|
16
|
-
*
|
|
17
|
-
* @param cwd - The current working directory to start searching from
|
|
18
|
-
* @returns Promise resolving to the absolute path of the project root
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```typescript
|
|
22
|
-
* const projectRoot = await getProjectRoot(process.cwd());
|
|
23
|
-
* console.log(`Project root: ${projectRoot}`);
|
|
24
|
-
* // Output: Project root: /Users/user/my-project
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
declare function getProjectRoot(cwd: string): Promise<string>;
|
|
28
|
-
/**
|
|
29
|
-
* Discovers and imports all Endpoint instances from the specified route patterns.
|
|
30
|
-
* Uses fast-glob to find files matching the patterns and extracts exported Endpoints.
|
|
31
|
-
*
|
|
32
|
-
* @template TServices - Array of service types used by the endpoints
|
|
33
|
-
* @param routes - Array of glob patterns to match route files (e.g., ['src/routes/*.ts'])
|
|
34
|
-
* @param cwd - The current working directory to resolve paths from
|
|
35
|
-
* @returns Promise resolving to an array of Endpoint instances found in the matched files
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```typescript
|
|
39
|
-
* // Find all endpoints in the routes directory
|
|
40
|
-
* const endpoints = await getEndpointsFromRoutes(
|
|
41
|
-
* ['src/routes/**\/*.ts'],
|
|
42
|
-
* process.cwd()
|
|
43
|
-
* );
|
|
44
|
-
*
|
|
45
|
-
* // Register endpoints with your server
|
|
46
|
-
* for (const endpoint of endpoints) {
|
|
47
|
-
* server.register(endpoint);
|
|
48
|
-
* }
|
|
49
|
-
* ```
|
|
50
|
-
*
|
|
51
|
-
* @remarks
|
|
52
|
-
* - Only exports that are valid Endpoint instances are included
|
|
53
|
-
* - Files are imported dynamically, so they must be valid ES modules
|
|
54
|
-
* - The function filters out non-Endpoint exports automatically
|
|
55
|
-
*/
|
|
56
|
-
declare function getEndpointsFromRoutes<TServices extends Service[]>(routes: string[], cwd: string): Promise<Endpoint<string, HttpMethod, any, any, TServices>[]>;
|
|
57
|
-
//# sourceMappingURL=helpers.d.ts.map
|
|
58
|
-
//#endregion
|
|
59
|
-
export { getEndpointsFromRoutes, getProjectRoot };
|
|
60
|
-
//# sourceMappingURL=helpers.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.mts","names":[],"sources":["../../src/endpoints/helpers.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAsBA;AAoDA;;;;;AAGW,iBAvDW,cAAA,CAuDX,GAAA,EAAA,MAAA,CAAA,EAvDwC,OAuDxC,CAAA,MAAA,CAAA;;AAAD;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAHY,yCAAyC,2CAG5D,QAAQ,iBAAiB,sBAAsB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import "../Construct-CQ9zV58W.mjs";
|
|
2
|
-
import "../BaseFunctionBuilder-C3rQMoWb.mjs";
|
|
3
|
-
import "../Function-xfQbftdE.mjs";
|
|
4
|
-
import "../FunctionBuilder-CBeqX18X.mjs";
|
|
5
|
-
import "../functions-B1mrMoUH.mjs";
|
|
6
|
-
import "../Endpoint-DvY3aqAy.mjs";
|
|
7
|
-
import { getEndpointsFromRoutes, getProjectRoot } from "../helpers-BtwC2IW8.mjs";
|
|
8
|
-
|
|
9
|
-
export { getEndpointsFromRoutes, getProjectRoot };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
const require_lazyAccessors = require('../lazyAccessors-BVEtB9lU.cjs');
|
|
2
|
-
|
|
3
|
-
exports.createApiGatewayCookies = require_lazyAccessors.createApiGatewayCookies;
|
|
4
|
-
exports.createApiGatewayHeaders = require_lazyAccessors.createApiGatewayHeaders;
|
|
5
|
-
exports.createCookieHeaderAccessor = require_lazyAccessors.createCookieHeaderAccessor;
|
|
6
|
-
exports.createHonoCookies = require_lazyAccessors.createHonoCookies;
|
|
7
|
-
exports.createHonoHeaders = require_lazyAccessors.createHonoHeaders;
|
|
8
|
-
exports.createNoopCookies = require_lazyAccessors.createNoopCookies;
|
|
9
|
-
exports.createNoopHeaders = require_lazyAccessors.createNoopHeaders;
|
|
10
|
-
exports.createObjectHeaders = require_lazyAccessors.createObjectHeaders;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import "../Construct-CX7HyFfT.cjs";
|
|
2
|
-
import "../types-B5H3piDg.cjs";
|
|
3
|
-
import "../BaseFunctionBuilder-C-4hYTfj.cjs";
|
|
4
|
-
import "../Function-CwlB89lS.cjs";
|
|
5
|
-
import "../FunctionBuilder-D_7f5MfS.cjs";
|
|
6
|
-
import "../index-BfeupgMl.cjs";
|
|
7
|
-
import "../Authorizer-DWtwC8we.cjs";
|
|
8
|
-
import "../Endpoint-CGdCGJkC.cjs";
|
|
9
|
-
import { createApiGatewayCookies, createApiGatewayHeaders, createCookieHeaderAccessor, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders, createObjectHeaders } from "../lazyAccessors-Bxy5DBp4.cjs";
|
|
10
|
-
export { createApiGatewayCookies, createApiGatewayHeaders, createCookieHeaderAccessor, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders, createObjectHeaders };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import "../Construct-BjpXFNxy.mjs";
|
|
2
|
-
import "../types-BqPOdHEm.mjs";
|
|
3
|
-
import "../BaseFunctionBuilder-Q5qIlF-F.mjs";
|
|
4
|
-
import "../Function-D74HrBnX.mjs";
|
|
5
|
-
import "../FunctionBuilder-C_qPxC8g.mjs";
|
|
6
|
-
import "../index-Cg2UDz1r.mjs";
|
|
7
|
-
import "../Authorizer-C5_FC_Rq.mjs";
|
|
8
|
-
import "../Endpoint-BET0JSZK.mjs";
|
|
9
|
-
import { createApiGatewayCookies, createApiGatewayHeaders, createCookieHeaderAccessor, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders, createObjectHeaders } from "../lazyAccessors-CWFdtzSR.mjs";
|
|
10
|
-
export { createApiGatewayCookies, createApiGatewayHeaders, createCookieHeaderAccessor, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders, createObjectHeaders };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { createApiGatewayCookies, createApiGatewayHeaders, createCookieHeaderAccessor, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders, createObjectHeaders } from "../lazyAccessors-DM6HcXQk.mjs";
|
|
2
|
-
|
|
3
|
-
export { createApiGatewayCookies, createApiGatewayHeaders, createCookieHeaderAccessor, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders, createObjectHeaders };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Context } from "hono";
|
|
2
|
-
|
|
3
|
-
//#region src/endpoints/parseHonoQuery.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Parse Hono query parameters using qs bracket notation
|
|
7
|
-
* Supports nested objects, arrays, and deep nesting via standard bracket syntax
|
|
8
|
-
*/
|
|
9
|
-
declare function parseHonoQuery(c: Context): Record<string, any>;
|
|
10
|
-
//# sourceMappingURL=parseHonoQuery.d.ts.map
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
export { parseHonoQuery };
|
|
14
|
-
//# sourceMappingURL=parseHonoQuery.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parseHonoQuery.d.cts","names":[],"sources":["../../src/endpoints/parseHonoQuery.ts"],"sourcesContent":[],"mappings":";;;;;;AAOA;;AAAkC,iBAAlB,cAAA,CAAkB,CAAA,EAAA,OAAA,CAAA,EAAU,MAAV,CAAA,MAAA,EAAA,GAAA,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Context } from "hono";
|
|
2
|
-
|
|
3
|
-
//#region src/endpoints/parseHonoQuery.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Parse Hono query parameters using qs bracket notation
|
|
7
|
-
* Supports nested objects, arrays, and deep nesting via standard bracket syntax
|
|
8
|
-
*/
|
|
9
|
-
declare function parseHonoQuery(c: Context): Record<string, any>;
|
|
10
|
-
//# sourceMappingURL=parseHonoQuery.d.ts.map
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
export { parseHonoQuery };
|
|
14
|
-
//# sourceMappingURL=parseHonoQuery.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parseHonoQuery.d.mts","names":[],"sources":["../../src/endpoints/parseHonoQuery.ts"],"sourcesContent":[],"mappings":";;;;;;AAOA;;AAAkC,iBAAlB,cAAA,CAAkB,CAAA,EAAA,OAAA,CAAA,EAAU,MAAV,CAAA,MAAA,EAAA,GAAA,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
//#region src/endpoints/parseQueryParams.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Parse query parameters from a flat object into a nested structure
|
|
4
|
-
* Uses qs bracket notation for standard interoperability
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* parseQueryParams({ 'tags[]': ['a', 'b'], 'filter[name]': 'john' })
|
|
8
|
-
* // Returns: { tags: ['a', 'b'], filter: { name: 'john' } }
|
|
9
|
-
*/
|
|
10
|
-
declare function parseQueryParams(queryParams: Record<string, string | string[] | undefined> | null): Record<string, any>;
|
|
11
|
-
//# sourceMappingURL=parseQueryParams.d.ts.map
|
|
12
|
-
//#endregion
|
|
13
|
-
export { parseQueryParams };
|
|
14
|
-
//# sourceMappingURL=parseQueryParams.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parseQueryParams.d.cts","names":[],"sources":["../../src/endpoints/parseQueryParams.ts"],"sourcesContent":[],"mappings":";;AAUA;;;;AAES;;;iBAFO,gBAAA,cACF,uDACX"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
//#region src/endpoints/parseQueryParams.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Parse query parameters from a flat object into a nested structure
|
|
4
|
-
* Uses qs bracket notation for standard interoperability
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* parseQueryParams({ 'tags[]': ['a', 'b'], 'filter[name]': 'john' })
|
|
8
|
-
* // Returns: { tags: ['a', 'b'], filter: { name: 'john' } }
|
|
9
|
-
*/
|
|
10
|
-
declare function parseQueryParams(queryParams: Record<string, string | string[] | undefined> | null): Record<string, any>;
|
|
11
|
-
//# sourceMappingURL=parseQueryParams.d.ts.map
|
|
12
|
-
//#endregion
|
|
13
|
-
export { parseQueryParams };
|
|
14
|
-
//# sourceMappingURL=parseQueryParams.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parseQueryParams.d.mts","names":[],"sources":["../../src/endpoints/parseQueryParams.ts"],"sourcesContent":[],"mappings":";;AAUA;;;;AAES;;;iBAFO,gBAAA,cACF,uDACX"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
const require_processAudits = require('../processAudits-CzHkPokQ.cjs');
|
|
2
|
-
|
|
3
|
-
exports.createAuditContext = require_processAudits.createAuditContext;
|
|
4
|
-
exports.executeWithAuditTransaction = require_processAudits.executeWithAuditTransaction;
|
|
5
|
-
exports.processEndpointAudits = require_processAudits.processEndpointAudits;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import "../Construct-CX7HyFfT.cjs";
|
|
2
|
-
import "../types-B5H3piDg.cjs";
|
|
3
|
-
import "../BaseFunctionBuilder-C-4hYTfj.cjs";
|
|
4
|
-
import "../Function-CwlB89lS.cjs";
|
|
5
|
-
import "../FunctionBuilder-D_7f5MfS.cjs";
|
|
6
|
-
import "../index-BfeupgMl.cjs";
|
|
7
|
-
import "../Authorizer-DWtwC8we.cjs";
|
|
8
|
-
import { CookieFn, Endpoint, HeaderFn } from "../Endpoint-CGdCGJkC.cjs";
|
|
9
|
-
import { AuditStorage, AuditableAction, Auditor } from "@geekmidas/audit";
|
|
10
|
-
import { Logger } from "@geekmidas/logger";
|
|
11
|
-
import { Service, ServiceDiscovery } from "@geekmidas/services";
|
|
12
|
-
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
13
|
-
import { InferStandardSchema } from "@geekmidas/schema";
|
|
14
|
-
|
|
15
|
-
//#region src/endpoints/processAudits.d.ts
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Process declarative audit definitions after successful endpoint execution.
|
|
19
|
-
* Similar to publishConstructEvents for events.
|
|
20
|
-
*
|
|
21
|
-
* @param endpoint - The endpoint with audit configuration
|
|
22
|
-
* @param response - The handler response to generate audit payloads from
|
|
23
|
-
* @param serviceDiscovery - Service discovery for registering audit storage
|
|
24
|
-
* @param logger - Logger for debug/error messages
|
|
25
|
-
* @param ctx - Request context (session, headers, cookies, services)
|
|
26
|
-
* @param existingAuditor - Optional existing auditor instance (e.g., from handler context).
|
|
27
|
-
* If provided, uses this auditor (with its stored transaction).
|
|
28
|
-
* If not provided, creates a new auditor.
|
|
29
|
-
*/
|
|
30
|
-
declare function processEndpointAudits<TServices extends Service[] = [], TSession = unknown, TLogger extends Logger = Logger, OutSchema extends StandardSchemaV1 | undefined = undefined, TAuditStorage extends AuditStorage | undefined = undefined, TAuditStorageServiceName extends string = string, TAuditAction extends AuditableAction<string, unknown> = AuditableAction<string, unknown>>(endpoint: Endpoint<any, any, any, OutSchema, TServices, TLogger, TSession, any, any, TAuditStorage, TAuditStorageServiceName, TAuditAction>, response: InferStandardSchema<OutSchema>, serviceDiscovery: ServiceDiscovery<any>, logger: TLogger, ctx: {
|
|
31
|
-
session: TSession;
|
|
32
|
-
header: HeaderFn;
|
|
33
|
-
cookie: CookieFn;
|
|
34
|
-
services: Record<string, unknown>;
|
|
35
|
-
}, existingAuditor?: Auditor<TAuditAction>): Promise<void>;
|
|
36
|
-
/**
|
|
37
|
-
* Context for audit-aware handler execution.
|
|
38
|
-
*/
|
|
39
|
-
interface AuditExecutionContext<TAuditAction extends AuditableAction<string, unknown> = AuditableAction<string, unknown>> {
|
|
40
|
-
/** The auditor instance for recording audits */
|
|
41
|
-
auditor: Auditor<TAuditAction>;
|
|
42
|
-
/** The audit storage instance */
|
|
43
|
-
storage: AuditStorage;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Create audit context for handler execution.
|
|
47
|
-
* Returns the auditor and storage for use in the handler.
|
|
48
|
-
*
|
|
49
|
-
* @param endpoint - The endpoint with audit configuration
|
|
50
|
-
* @param serviceDiscovery - Service discovery for getting audit storage
|
|
51
|
-
* @param logger - Logger for debug/error messages
|
|
52
|
-
* @param ctx - Request context for actor extraction
|
|
53
|
-
* @returns Audit context with auditor and storage, or undefined if not configured
|
|
54
|
-
*/
|
|
55
|
-
declare function createAuditContext<TServices extends Service[] = [], TSession = unknown, TLogger extends Logger = Logger, TAuditStorage extends AuditStorage | undefined = undefined, TAuditStorageServiceName extends string = string, TAuditAction extends AuditableAction<string, unknown> = AuditableAction<string, unknown>, TDatabase = undefined, TDatabaseServiceName extends string = string>(endpoint: Endpoint<any, any, any, any, TServices, TLogger, TSession, any, any, TAuditStorage, TAuditStorageServiceName, TAuditAction, TDatabase, TDatabaseServiceName>, serviceDiscovery: ServiceDiscovery<any>, logger: TLogger, ctx: {
|
|
56
|
-
session: TSession;
|
|
57
|
-
header: HeaderFn;
|
|
58
|
-
cookie: CookieFn;
|
|
59
|
-
services: Record<string, unknown>;
|
|
60
|
-
}): Promise<AuditExecutionContext<TAuditAction> | undefined>;
|
|
61
|
-
/**
|
|
62
|
-
* Options for executeWithAuditTransaction.
|
|
63
|
-
*/
|
|
64
|
-
interface ExecuteWithAuditTransactionOptions {
|
|
65
|
-
/**
|
|
66
|
-
* Database connection to use for the transaction.
|
|
67
|
-
* If this is already a transaction, it will be reused instead of creating a nested one.
|
|
68
|
-
* If not provided, the storage's internal database is used.
|
|
69
|
-
*/
|
|
70
|
-
db?: unknown;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Execute a handler with automatic audit transaction support.
|
|
74
|
-
* If the audit storage provides a withTransaction method, wraps execution
|
|
75
|
-
* in a transaction so audits are atomic with handler's database operations.
|
|
76
|
-
*
|
|
77
|
-
* This is database-agnostic - each storage implementation provides its own
|
|
78
|
-
* transaction handling based on the underlying database (Kysely, Drizzle, etc.).
|
|
79
|
-
*
|
|
80
|
-
* If the db parameter is provided and is already a transaction, the storage
|
|
81
|
-
* will reuse it instead of creating a nested transaction (similar to
|
|
82
|
-
* packages/db/src/kysely.ts#withTransaction).
|
|
83
|
-
*
|
|
84
|
-
* @param auditContext - The audit context from createAuditContext
|
|
85
|
-
* @param handler - The handler function to execute (receives auditor)
|
|
86
|
-
* @param onComplete - Called after handler with response, to process declarative audits
|
|
87
|
-
* @param options - Optional configuration including database connection
|
|
88
|
-
* @returns The handler result
|
|
89
|
-
*/
|
|
90
|
-
declare function executeWithAuditTransaction<T, TAuditAction extends AuditableAction<string, unknown> = AuditableAction<string, unknown>>(auditContext: AuditExecutionContext<TAuditAction> | undefined, handler: (auditor?: Auditor<TAuditAction>) => Promise<T>, onComplete?: (response: T, auditor: Auditor<TAuditAction>) => Promise<void>, options?: ExecuteWithAuditTransactionOptions): Promise<T>;
|
|
91
|
-
//# sourceMappingURL=processAudits.d.ts.map
|
|
92
|
-
|
|
93
|
-
//#endregion
|
|
94
|
-
export { AuditExecutionContext, ExecuteWithAuditTransactionOptions, createAuditContext, executeWithAuditTransaction, processEndpointAudits };
|
|
95
|
-
//# sourceMappingURL=processAudits.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"processAudits.d.cts","names":[],"sources":["../../src/endpoints/processAudits.ts"],"sourcesContent":[],"mappings":"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"}
|