@geekmidas/constructs 3.0.2 → 3.0.5
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 +18 -0
- package/dist/{AmazonApiGatewayEndpointAdaptor-B30TqZRX.d.mts → AmazonApiGatewayEndpointAdaptor-CS-m4WZy.d.mts} +11 -2
- package/dist/AmazonApiGatewayEndpointAdaptor-CS-m4WZy.d.mts.map +1 -0
- package/dist/{AmazonApiGatewayEndpointAdaptor-ciUHVvPX.mjs → AmazonApiGatewayEndpointAdaptor-Cmm9d_Po.mjs} +20 -2
- package/dist/AmazonApiGatewayEndpointAdaptor-Cmm9d_Po.mjs.map +1 -0
- package/dist/{AmazonApiGatewayEndpointAdaptor-jDYqkgFE.cjs → AmazonApiGatewayEndpointAdaptor-D7mhDtSL.cjs} +20 -2
- package/dist/AmazonApiGatewayEndpointAdaptor-D7mhDtSL.cjs.map +1 -0
- package/dist/{AmazonApiGatewayEndpointAdaptor-D4lAuXA-.d.cts → AmazonApiGatewayEndpointAdaptor-DisDeEF0.d.cts} +11 -2
- package/dist/AmazonApiGatewayEndpointAdaptor-DisDeEF0.d.cts.map +1 -0
- package/dist/{AmazonApiGatewayV1EndpointAdaptor-B5xFYauV.d.cts → AmazonApiGatewayV1EndpointAdaptor-D6wNqjth.d.cts} +3 -3
- package/dist/AmazonApiGatewayV1EndpointAdaptor-D6wNqjth.d.cts.map +1 -0
- package/dist/{AmazonApiGatewayV1EndpointAdaptor-CG1UJoAK.d.mts → AmazonApiGatewayV1EndpointAdaptor-DSMe7dZ4.d.mts} +3 -3
- package/dist/AmazonApiGatewayV1EndpointAdaptor-DSMe7dZ4.d.mts.map +1 -0
- package/dist/{AmazonApiGatewayV1EndpointAdaptor-CW0BCUkm.cjs → AmazonApiGatewayV1EndpointAdaptor-DstIoQBv.cjs} +4 -4
- package/dist/{AmazonApiGatewayV1EndpointAdaptor-CW0BCUkm.cjs.map → AmazonApiGatewayV1EndpointAdaptor-DstIoQBv.cjs.map} +1 -1
- package/dist/{AmazonApiGatewayV1EndpointAdaptor-COLHHAsd.mjs → AmazonApiGatewayV1EndpointAdaptor-zrlehWUG.mjs} +4 -4
- package/dist/{AmazonApiGatewayV1EndpointAdaptor-COLHHAsd.mjs.map → AmazonApiGatewayV1EndpointAdaptor-zrlehWUG.mjs.map} +1 -1
- package/dist/{AmazonApiGatewayV2EndpointAdaptor-ofjuxcPV.d.mts → AmazonApiGatewayV2EndpointAdaptor-ByljgCnY.d.mts} +3 -3
- package/dist/AmazonApiGatewayV2EndpointAdaptor-ByljgCnY.d.mts.map +1 -0
- package/dist/{AmazonApiGatewayV2EndpointAdaptor-C7ZrwcTX.cjs → AmazonApiGatewayV2EndpointAdaptor-DaAHSnqs.cjs} +7 -9
- package/dist/AmazonApiGatewayV2EndpointAdaptor-DaAHSnqs.cjs.map +1 -0
- package/dist/{AmazonApiGatewayV2EndpointAdaptor-Cl9ERGyi.mjs → AmazonApiGatewayV2EndpointAdaptor-Dj5v-I6S.mjs} +6 -9
- package/dist/AmazonApiGatewayV2EndpointAdaptor-Dj5v-I6S.mjs.map +1 -0
- package/dist/{AmazonApiGatewayV2EndpointAdaptor-OkwjABOz.d.cts → AmazonApiGatewayV2EndpointAdaptor-PcMFUEF9.d.cts} +3 -3
- package/dist/AmazonApiGatewayV2EndpointAdaptor-PcMFUEF9.d.cts.map +1 -0
- package/dist/{Endpoint-BiPM0glm.d.mts → Endpoint-BIvS-rKH.d.mts} +6 -6
- package/dist/Endpoint-BIvS-rKH.d.mts.map +1 -0
- package/dist/{Endpoint-C9N6CmvB.d.cts → Endpoint-BPh52sXZ.d.cts} +6 -6
- package/dist/Endpoint-BPh52sXZ.d.cts.map +1 -0
- package/dist/Endpoint-BcxvF4F3.cjs.map +1 -1
- package/dist/Endpoint-DvY3aqAy.mjs.map +1 -1
- package/dist/{EndpointBuilder-B0Aj5jbB.d.mts → EndpointBuilder-3xH8Gllw.d.mts} +4 -3
- package/dist/EndpointBuilder-3xH8Gllw.d.mts.map +1 -0
- package/dist/{EndpointBuilder-Bel6RS7W.d.cts → EndpointBuilder-BmVTFp1A.d.cts} +4 -3
- package/dist/EndpointBuilder-BmVTFp1A.d.cts.map +1 -0
- package/dist/{EndpointBuilder-D1RtrBu1.mjs → EndpointBuilder-CMzbGG2c.mjs} +5 -1
- package/dist/{EndpointBuilder-D1RtrBu1.mjs.map → EndpointBuilder-CMzbGG2c.mjs.map} +1 -1
- package/dist/{EndpointBuilder-fXmTxRyW.cjs → EndpointBuilder-QdDf3x87.cjs} +5 -1
- package/dist/{EndpointBuilder-fXmTxRyW.cjs.map → EndpointBuilder-QdDf3x87.cjs.map} +1 -1
- package/dist/{EndpointFactory-DBfTbSTX.cjs → EndpointFactory-AsfUsn-v.cjs} +2 -2
- package/dist/{EndpointFactory-DBfTbSTX.cjs.map → EndpointFactory-AsfUsn-v.cjs.map} +1 -1
- package/dist/{EndpointFactory-DkB8yxdQ.mjs → EndpointFactory-CkPaFZA0.mjs} +2 -2
- package/dist/{EndpointFactory-DkB8yxdQ.mjs.map → EndpointFactory-CkPaFZA0.mjs.map} +1 -1
- package/dist/{EndpointFactory-CWIeWCRG.d.mts → EndpointFactory-DKHnUYl8.d.mts} +3 -3
- package/dist/{EndpointFactory-CXvakOkn.d.cts.map → EndpointFactory-DKHnUYl8.d.mts.map} +1 -1
- package/dist/{EndpointFactory-CXvakOkn.d.cts → EndpointFactory-DaDXPRAg.d.cts} +3 -3
- package/dist/{EndpointFactory-CWIeWCRG.d.mts.map → EndpointFactory-DaDXPRAg.d.cts.map} +1 -1
- package/dist/{HonoEndpointAdaptor-C3AdQ0xS.d.mts → HonoEndpointAdaptor-Cb45sqM9.d.mts} +4 -4
- package/dist/{HonoEndpointAdaptor-BCql3gLP.d.cts.map → HonoEndpointAdaptor-Cb45sqM9.d.mts.map} +1 -1
- package/dist/{HonoEndpointAdaptor-y9fCIxaz.mjs → HonoEndpointAdaptor-D7N5oiO0.mjs} +6 -3
- package/dist/HonoEndpointAdaptor-D7N5oiO0.mjs.map +1 -0
- package/dist/{HonoEndpointAdaptor-CavBd6P2.cjs → HonoEndpointAdaptor-Jbptyuxv.cjs} +6 -3
- package/dist/HonoEndpointAdaptor-Jbptyuxv.cjs.map +1 -0
- package/dist/{HonoEndpointAdaptor-BCql3gLP.d.cts → HonoEndpointAdaptor-VStaYQHr.d.cts} +2 -2
- package/dist/{HonoEndpointAdaptor-C3AdQ0xS.d.mts.map → HonoEndpointAdaptor-VStaYQHr.d.cts.map} +1 -1
- package/dist/{TestEndpointAdaptor-DjQSuxRq.cjs → TestEndpointAdaptor-BKoJpTGT.cjs} +5 -2
- package/dist/TestEndpointAdaptor-BKoJpTGT.cjs.map +1 -0
- package/dist/{TestEndpointAdaptor-qSWV8dpS.d.mts → TestEndpointAdaptor-Bt-uW6SC.d.mts} +2 -2
- package/dist/{TestEndpointAdaptor-CCf3Dg0u.d.cts.map → TestEndpointAdaptor-Bt-uW6SC.d.mts.map} +1 -1
- package/dist/{TestEndpointAdaptor-CDOhCmIk.mjs → TestEndpointAdaptor-DHVaHmhw.mjs} +5 -2
- package/dist/TestEndpointAdaptor-DHVaHmhw.mjs.map +1 -0
- package/dist/{TestEndpointAdaptor-CCf3Dg0u.d.cts → TestEndpointAdaptor-UKhHj1RR.d.cts} +2 -2
- package/dist/{TestEndpointAdaptor-qSWV8dpS.d.mts.map → TestEndpointAdaptor-UKhHj1RR.d.cts.map} +1 -1
- package/dist/adaptors/aws.cjs +4 -4
- package/dist/adaptors/aws.d.cts +5 -5
- package/dist/adaptors/aws.d.mts +5 -5
- package/dist/adaptors/aws.mjs +4 -4
- package/dist/adaptors/hono.cjs +2 -2
- package/dist/adaptors/hono.d.cts +3 -3
- package/dist/adaptors/hono.d.mts +3 -3
- package/dist/adaptors/hono.mjs +2 -2
- package/dist/adaptors/testing.cjs +1 -1
- package/dist/adaptors/testing.d.cts +3 -3
- package/dist/adaptors/testing.d.mts +3 -3
- package/dist/adaptors/testing.mjs +1 -1
- package/dist/crons/Cron.d.cts +1 -1
- package/dist/crons/Cron.d.mts +1 -1
- package/dist/crons/CronBuilder.d.cts +1 -1
- package/dist/crons/CronBuilder.d.mts +1 -1
- package/dist/crons/index.d.cts +5 -5
- package/dist/crons/index.d.mts +5 -5
- package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.cjs +1 -1
- package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.d.cts +3 -3
- package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.d.mts +3 -3
- package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.mjs +1 -1
- package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.cjs +3 -3
- package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.d.cts +4 -4
- package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.d.mts +4 -4
- package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.mjs +3 -3
- package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.cjs +2 -3
- package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.d.cts +4 -4
- package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.d.mts +4 -4
- package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.mjs +2 -3
- package/dist/endpoints/Endpoint.d.cts +2 -2
- package/dist/endpoints/Endpoint.d.mts +2 -2
- package/dist/endpoints/EndpointBuilder.cjs +1 -1
- package/dist/endpoints/EndpointBuilder.d.cts +3 -3
- package/dist/endpoints/EndpointBuilder.d.mts +3 -3
- package/dist/endpoints/EndpointBuilder.mjs +1 -1
- package/dist/endpoints/EndpointFactory.cjs +2 -2
- package/dist/endpoints/EndpointFactory.d.cts +4 -4
- package/dist/endpoints/EndpointFactory.d.mts +4 -4
- package/dist/endpoints/EndpointFactory.mjs +2 -2
- package/dist/endpoints/HonoEndpointAdaptor.cjs +2 -2
- package/dist/endpoints/HonoEndpointAdaptor.d.cts +3 -3
- package/dist/endpoints/HonoEndpointAdaptor.d.mts +3 -3
- package/dist/endpoints/HonoEndpointAdaptor.mjs +2 -2
- package/dist/endpoints/TestEndpointAdaptor.cjs +1 -1
- package/dist/endpoints/TestEndpointAdaptor.d.cts +3 -3
- package/dist/endpoints/TestEndpointAdaptor.d.mts +3 -3
- package/dist/endpoints/TestEndpointAdaptor.mjs +1 -1
- package/dist/endpoints/audit.d.cts +2 -2
- package/dist/endpoints/audit.d.mts +2 -2
- package/dist/endpoints/helpers.d.cts +2 -2
- package/dist/endpoints/helpers.d.mts +2 -2
- package/dist/endpoints/index.cjs +2 -2
- package/dist/endpoints/index.d.cts +7 -7
- package/dist/endpoints/index.d.mts +7 -7
- package/dist/endpoints/index.mjs +2 -2
- package/dist/endpoints/lazyAccessors.d.cts +3 -3
- package/dist/endpoints/lazyAccessors.d.mts +3 -3
- package/dist/endpoints/parseHonoQuery.cjs +1 -1
- package/dist/endpoints/parseHonoQuery.d.cts +2 -2
- package/dist/endpoints/parseHonoQuery.d.cts.map +1 -1
- package/dist/endpoints/parseHonoQuery.d.mts +2 -2
- package/dist/endpoints/parseHonoQuery.d.mts.map +1 -1
- package/dist/endpoints/parseHonoQuery.mjs +1 -1
- package/dist/endpoints/parseQueryParams.cjs +1 -1
- package/dist/endpoints/parseQueryParams.d.cts +2 -2
- package/dist/endpoints/parseQueryParams.d.cts.map +1 -1
- package/dist/endpoints/parseQueryParams.d.mts +2 -2
- package/dist/endpoints/parseQueryParams.d.mts.map +1 -1
- package/dist/endpoints/parseQueryParams.mjs +1 -1
- package/dist/endpoints/processAudits.d.cts +2 -2
- package/dist/endpoints/processAudits.d.mts +2 -2
- package/dist/endpoints/rls.d.cts +2 -2
- package/dist/endpoints/rls.d.mts +2 -2
- package/dist/functions/index.d.cts +1 -1
- package/dist/functions/index.d.mts +1 -1
- package/dist/index-BfeupgMl.d.cts +12 -0
- package/dist/{index-BRoc67OX.d.cts.map → index-BfeupgMl.d.cts.map} +1 -1
- package/dist/index-CtMNRkV7.d.mts +12 -0
- package/dist/{index-_5DYCNAt.d.mts.map → index-CtMNRkV7.d.mts.map} +1 -1
- package/dist/{lazyAccessors-DXkJpnyX.d.mts → lazyAccessors-Ba8HxeIC.d.cts} +2 -2
- package/dist/{lazyAccessors-DXkJpnyX.d.mts.map → lazyAccessors-Ba8HxeIC.d.cts.map} +1 -1
- package/dist/{lazyAccessors-DdZaA716.d.cts → lazyAccessors-D9tzUZaz.d.mts} +2 -2
- package/dist/{lazyAccessors-DdZaA716.d.cts.map → lazyAccessors-D9tzUZaz.d.mts.map} +1 -1
- package/dist/parseHonoQuery-BBs8CX-H.cjs +24 -0
- package/dist/parseHonoQuery-BBs8CX-H.cjs.map +1 -0
- package/dist/parseHonoQuery-Cp8CII0P.mjs +18 -0
- package/dist/parseHonoQuery-Cp8CII0P.mjs.map +1 -0
- package/dist/parseQueryParams-B4RK1za3.cjs +31 -0
- package/dist/parseQueryParams-B4RK1za3.cjs.map +1 -0
- package/dist/parseQueryParams-DS3Qmrbd.mjs +25 -0
- package/dist/parseQueryParams-DS3Qmrbd.mjs.map +1 -0
- package/dist/subscribers/index.d.cts +2 -2
- package/dist/subscribers/index.d.mts +2 -2
- package/dist/subscribers/index.d.mts.map +1 -1
- package/package.json +15 -13
- package/src/endpoints/AmazonApiGatewayEndpointAdaptor.ts +32 -1
- package/src/endpoints/AmazonApiGatewayV1EndpointAdaptor.ts +5 -1
- package/src/endpoints/AmazonApiGatewayV2EndpointAdaptor.ts +8 -18
- package/src/endpoints/Endpoint.ts +7 -4
- package/src/endpoints/EndpointBuilder.ts +6 -1
- package/src/endpoints/EndpointFactory.ts +1 -1
- package/src/endpoints/HonoEndpointAdaptor.ts +9 -0
- package/src/endpoints/TestEndpointAdaptor.ts +3 -0
- package/src/endpoints/__tests__/AmazonApiGatewayV1EndpointAdaptor.spec.ts +119 -7
- package/src/endpoints/__tests__/AmazonApiGatewayV2EndpointAdaptor.events.spec.ts +4 -2
- package/src/endpoints/__tests__/AmazonApiGatewayV2EndpointAdaptor.spec.ts +146 -7
- package/src/endpoints/__tests__/EndpointBuilder.spec.ts +35 -0
- package/src/endpoints/__tests__/HonoEndpointAdaptor.spec.ts +109 -4
- package/src/endpoints/__tests__/TestEndpointAdaptor.spec.ts +139 -0
- package/src/endpoints/parseHonoQuery.ts +9 -46
- package/src/endpoints/parseQueryParams.ts +12 -33
- package/dist/AmazonApiGatewayEndpointAdaptor-B30TqZRX.d.mts.map +0 -1
- package/dist/AmazonApiGatewayEndpointAdaptor-D4lAuXA-.d.cts.map +0 -1
- package/dist/AmazonApiGatewayEndpointAdaptor-ciUHVvPX.mjs.map +0 -1
- package/dist/AmazonApiGatewayEndpointAdaptor-jDYqkgFE.cjs.map +0 -1
- package/dist/AmazonApiGatewayV1EndpointAdaptor-B5xFYauV.d.cts.map +0 -1
- package/dist/AmazonApiGatewayV1EndpointAdaptor-CG1UJoAK.d.mts.map +0 -1
- package/dist/AmazonApiGatewayV2EndpointAdaptor-C7ZrwcTX.cjs.map +0 -1
- package/dist/AmazonApiGatewayV2EndpointAdaptor-Cl9ERGyi.mjs.map +0 -1
- package/dist/AmazonApiGatewayV2EndpointAdaptor-OkwjABOz.d.cts.map +0 -1
- package/dist/AmazonApiGatewayV2EndpointAdaptor-ofjuxcPV.d.mts.map +0 -1
- package/dist/Endpoint-BiPM0glm.d.mts.map +0 -1
- package/dist/Endpoint-C9N6CmvB.d.cts.map +0 -1
- package/dist/EndpointBuilder-B0Aj5jbB.d.mts.map +0 -1
- package/dist/EndpointBuilder-Bel6RS7W.d.cts.map +0 -1
- package/dist/HonoEndpointAdaptor-CavBd6P2.cjs.map +0 -1
- package/dist/HonoEndpointAdaptor-y9fCIxaz.mjs.map +0 -1
- package/dist/TestEndpointAdaptor-CDOhCmIk.mjs.map +0 -1
- package/dist/TestEndpointAdaptor-DjQSuxRq.cjs.map +0 -1
- package/dist/index-BRoc67OX.d.cts +0 -12
- package/dist/index-_5DYCNAt.d.mts +0 -12
- package/dist/parseHonoQuery-D4MhxTRc.cjs +0 -39
- package/dist/parseHonoQuery-D4MhxTRc.cjs.map +0 -1
- package/dist/parseHonoQuery-DpK3sGPc.mjs +0 -33
- package/dist/parseHonoQuery-DpK3sGPc.mjs.map +0 -1
- package/dist/parseQueryParams-BSNkjmZ9.cjs +0 -40
- package/dist/parseQueryParams-BSNkjmZ9.cjs.map +0 -1
- package/dist/parseQueryParams-UMTRnRrW.mjs +0 -34
- package/dist/parseQueryParams-UMTRnRrW.mjs.map +0 -1
|
@@ -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
|
-
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-
|
|
8
|
+
import { ActorExtractor, Endpoint, EndpointContext, EndpointHandler, EndpointOutput, EndpointSchemas, MappedAudit, RLS_BYPASS, ResponseBuilder, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor } from "../Endpoint-BPh52sXZ.cjs";
|
|
9
|
+
import { EndpointBuilder } from "../EndpointBuilder-BmVTFp1A.cjs";
|
|
10
|
+
import { EndpointFactory } from "../EndpointFactory-DaDXPRAg.cjs";
|
|
11
11
|
import { publishConstructEvents } from "../publisher-BrzPGnm4.cjs";
|
|
12
|
-
import { createApiGatewayCookies, createApiGatewayHeaders, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders } from "../lazyAccessors-
|
|
13
|
-
import * as
|
|
12
|
+
import { createApiGatewayCookies, createApiGatewayHeaders, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders } from "../lazyAccessors-Ba8HxeIC.cjs";
|
|
13
|
+
import * as _geekmidas_logger9 from "@geekmidas/logger";
|
|
14
14
|
|
|
15
15
|
//#region src/endpoints/index.d.ts
|
|
16
|
-
declare const e: EndpointFactory<[], "",
|
|
16
|
+
declare const e: EndpointFactory<[], "", _geekmidas_logger9.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
|
|
@@ -3,17 +3,17 @@ import "../types-aFmq5cKh.mjs";
|
|
|
3
3
|
import "../BaseFunctionBuilder-CsvFjzA8.mjs";
|
|
4
4
|
import "../Function-CZw1DRQ6.mjs";
|
|
5
5
|
import "../FunctionBuilder-m5BNA2Ap.mjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-CtMNRkV7.mjs";
|
|
7
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-
|
|
9
|
-
import { EndpointBuilder } from "../EndpointBuilder-
|
|
10
|
-
import { EndpointFactory } from "../EndpointFactory-
|
|
8
|
+
import { ActorExtractor, Endpoint, EndpointContext, EndpointHandler, EndpointOutput, EndpointSchemas, MappedAudit, RLS_BYPASS, ResponseBuilder, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor } from "../Endpoint-BIvS-rKH.mjs";
|
|
9
|
+
import { EndpointBuilder } from "../EndpointBuilder-3xH8Gllw.mjs";
|
|
10
|
+
import { EndpointFactory } from "../EndpointFactory-DKHnUYl8.mjs";
|
|
11
11
|
import { publishConstructEvents } from "../publisher-CP4gpv-4.mjs";
|
|
12
|
-
import { createApiGatewayCookies, createApiGatewayHeaders, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders } from "../lazyAccessors-
|
|
13
|
-
import * as
|
|
12
|
+
import { createApiGatewayCookies, createApiGatewayHeaders, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders } from "../lazyAccessors-D9tzUZaz.mjs";
|
|
13
|
+
import * as _geekmidas_logger5 from "@geekmidas/logger";
|
|
14
14
|
|
|
15
15
|
//#region src/endpoints/index.d.ts
|
|
16
|
-
declare const e: EndpointFactory<[], "",
|
|
16
|
+
declare const e: EndpointFactory<[], "", _geekmidas_logger5.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
|
@@ -8,8 +8,8 @@ import { Endpoint, ResponseBuilder } from "../Endpoint-DvY3aqAy.mjs";
|
|
|
8
8
|
import { createApiGatewayCookies, createApiGatewayHeaders, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders } from "../lazyAccessors-DM6HcXQk.mjs";
|
|
9
9
|
import { BUILT_IN_SECURITY_SCHEMES, createAuthorizer, getSecurityScheme, isBuiltInSecurityScheme } from "../Authorizer-4unKN3Xn.mjs";
|
|
10
10
|
import { RLS_BYPASS } from "../rls-7XXX7DvY.mjs";
|
|
11
|
-
import { EndpointBuilder } from "../EndpointBuilder-
|
|
12
|
-
import { EndpointFactory } from "../EndpointFactory-
|
|
11
|
+
import { EndpointBuilder } from "../EndpointBuilder-CMzbGG2c.mjs";
|
|
12
|
+
import { EndpointFactory } from "../EndpointFactory-CkPaFZA0.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
|
-
import "../Endpoint-
|
|
9
|
-
import { createApiGatewayCookies, createApiGatewayHeaders, createCookieHeaderAccessor, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders, createObjectHeaders } from "../lazyAccessors-
|
|
8
|
+
import "../Endpoint-BPh52sXZ.cjs";
|
|
9
|
+
import { createApiGatewayCookies, createApiGatewayHeaders, createCookieHeaderAccessor, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders, createObjectHeaders } from "../lazyAccessors-Ba8HxeIC.cjs";
|
|
10
10
|
export { createApiGatewayCookies, createApiGatewayHeaders, createCookieHeaderAccessor, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders, createObjectHeaders };
|
|
@@ -3,8 +3,8 @@ import "../types-aFmq5cKh.mjs";
|
|
|
3
3
|
import "../BaseFunctionBuilder-CsvFjzA8.mjs";
|
|
4
4
|
import "../Function-CZw1DRQ6.mjs";
|
|
5
5
|
import "../FunctionBuilder-m5BNA2Ap.mjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-CtMNRkV7.mjs";
|
|
7
7
|
import "../Authorizer-DBsrDTuf.mjs";
|
|
8
|
-
import "../Endpoint-
|
|
9
|
-
import { createApiGatewayCookies, createApiGatewayHeaders, createCookieHeaderAccessor, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders, createObjectHeaders } from "../lazyAccessors-
|
|
8
|
+
import "../Endpoint-BIvS-rKH.mjs";
|
|
9
|
+
import { createApiGatewayCookies, createApiGatewayHeaders, createCookieHeaderAccessor, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders, createObjectHeaders } from "../lazyAccessors-D9tzUZaz.mjs";
|
|
10
10
|
export { createApiGatewayCookies, createApiGatewayHeaders, createCookieHeaderAccessor, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders, createObjectHeaders };
|
|
@@ -3,8 +3,8 @@ import { Context } from "hono";
|
|
|
3
3
|
//#region src/endpoints/parseHonoQuery.d.ts
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Parse Hono query parameters
|
|
7
|
-
*
|
|
6
|
+
* Parse Hono query parameters using qs bracket notation
|
|
7
|
+
* Supports nested objects, arrays, and deep nesting via standard bracket syntax
|
|
8
8
|
*/
|
|
9
9
|
declare function parseHonoQuery(c: Context): Record<string, any>;
|
|
10
10
|
//# sourceMappingURL=parseHonoQuery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseHonoQuery.d.cts","names":[],"sources":["../../src/endpoints/parseHonoQuery.ts"],"sourcesContent":[],"mappings":";;;;;;
|
|
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"}
|
|
@@ -3,8 +3,8 @@ import { Context } from "hono";
|
|
|
3
3
|
//#region src/endpoints/parseHonoQuery.d.ts
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Parse Hono query parameters
|
|
7
|
-
*
|
|
6
|
+
* Parse Hono query parameters using qs bracket notation
|
|
7
|
+
* Supports nested objects, arrays, and deep nesting via standard bracket syntax
|
|
8
8
|
*/
|
|
9
9
|
declare function parseHonoQuery(c: Context): Record<string, any>;
|
|
10
10
|
//# sourceMappingURL=parseHonoQuery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseHonoQuery.d.mts","names":[],"sources":["../../src/endpoints/parseHonoQuery.ts"],"sourcesContent":[],"mappings":";;;;;;
|
|
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,10 +1,10 @@
|
|
|
1
1
|
//#region src/endpoints/parseQueryParams.d.ts
|
|
2
2
|
/**
|
|
3
3
|
* Parse query parameters from a flat object into a nested structure
|
|
4
|
-
*
|
|
4
|
+
* Uses qs bracket notation for standard interoperability
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
|
-
* parseQueryParams({ 'tags': ['a', 'b'], 'filter
|
|
7
|
+
* parseQueryParams({ 'tags[]': ['a', 'b'], 'filter[name]': 'john' })
|
|
8
8
|
* // Returns: { tags: ['a', 'b'], filter: { name: 'john' } }
|
|
9
9
|
*/
|
|
10
10
|
declare function parseQueryParams(queryParams: Record<string, string | string[] | undefined> | null): Record<string, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseQueryParams.d.cts","names":[],"sources":["../../src/endpoints/parseQueryParams.ts"],"sourcesContent":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"parseQueryParams.d.cts","names":[],"sources":["../../src/endpoints/parseQueryParams.ts"],"sourcesContent":[],"mappings":";;AAUA;;;;AAES;;;iBAFO,gBAAA,cACF,uDACX"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
//#region src/endpoints/parseQueryParams.d.ts
|
|
2
2
|
/**
|
|
3
3
|
* Parse query parameters from a flat object into a nested structure
|
|
4
|
-
*
|
|
4
|
+
* Uses qs bracket notation for standard interoperability
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
|
-
* parseQueryParams({ 'tags': ['a', 'b'], 'filter
|
|
7
|
+
* parseQueryParams({ 'tags[]': ['a', 'b'], 'filter[name]': 'john' })
|
|
8
8
|
* // Returns: { tags: ['a', 'b'], filter: { name: 'john' } }
|
|
9
9
|
*/
|
|
10
10
|
declare function parseQueryParams(queryParams: Record<string, string | string[] | undefined> | null): Record<string, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseQueryParams.d.mts","names":[],"sources":["../../src/endpoints/parseQueryParams.ts"],"sourcesContent":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"parseQueryParams.d.mts","names":[],"sources":["../../src/endpoints/parseQueryParams.ts"],"sourcesContent":[],"mappings":";;AAUA;;;;AAES;;;iBAFO,gBAAA,cACF,uDACX"}
|
|
@@ -3,9 +3,9 @@ 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
|
-
import { CookieFn, Endpoint, HeaderFn } from "../Endpoint-
|
|
8
|
+
import { CookieFn, Endpoint, HeaderFn } from "../Endpoint-BPh52sXZ.cjs";
|
|
9
9
|
import { AuditStorage, AuditableAction, Auditor } from "@geekmidas/audit";
|
|
10
10
|
import { Logger } from "@geekmidas/logger";
|
|
11
11
|
import { Service, ServiceDiscovery } from "@geekmidas/services";
|
|
@@ -3,9 +3,9 @@ import "../types-aFmq5cKh.mjs";
|
|
|
3
3
|
import "../BaseFunctionBuilder-CsvFjzA8.mjs";
|
|
4
4
|
import "../Function-CZw1DRQ6.mjs";
|
|
5
5
|
import "../FunctionBuilder-m5BNA2Ap.mjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-CtMNRkV7.mjs";
|
|
7
7
|
import "../Authorizer-DBsrDTuf.mjs";
|
|
8
|
-
import { CookieFn, Endpoint, HeaderFn } from "../Endpoint-
|
|
8
|
+
import { CookieFn, Endpoint, HeaderFn } from "../Endpoint-BIvS-rKH.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.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
|
-
import { RLS_BYPASS, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor } from "../Endpoint-
|
|
8
|
+
import { RLS_BYPASS, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor } from "../Endpoint-BPh52sXZ.cjs";
|
|
9
9
|
export { RLS_BYPASS, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor };
|
package/dist/endpoints/rls.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import "../types-aFmq5cKh.mjs";
|
|
|
3
3
|
import "../BaseFunctionBuilder-CsvFjzA8.mjs";
|
|
4
4
|
import "../Function-CZw1DRQ6.mjs";
|
|
5
5
|
import "../FunctionBuilder-m5BNA2Ap.mjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-CtMNRkV7.mjs";
|
|
7
7
|
import "../Authorizer-DBsrDTuf.mjs";
|
|
8
|
-
import { RLS_BYPASS, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor } from "../Endpoint-
|
|
8
|
+
import { RLS_BYPASS, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor } from "../Endpoint-BIvS-rKH.mjs";
|
|
9
9
|
export { RLS_BYPASS, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor };
|
|
@@ -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 };
|
|
@@ -2,5 +2,5 @@ import "../Construct-C2SyofdS.mjs";
|
|
|
2
2
|
import { BaseFunctionBuilder } from "../BaseFunctionBuilder-CsvFjzA8.mjs";
|
|
3
3
|
import { Function, FunctionContext, FunctionHandler } from "../Function-CZw1DRQ6.mjs";
|
|
4
4
|
import { FunctionBuilder } from "../FunctionBuilder-m5BNA2Ap.mjs";
|
|
5
|
-
import { f } from "../index-
|
|
5
|
+
import { f } from "../index-CtMNRkV7.mjs";
|
|
6
6
|
export { BaseFunctionBuilder, Function, FunctionBuilder, FunctionContext, FunctionHandler, f };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FunctionBuilder } from "./FunctionBuilder-D_7f5MfS.cjs";
|
|
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-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_audit9 from "@geekmidas/audit";
|
|
3
|
+
import * as _geekmidas_logger8 from "@geekmidas/logger";
|
|
4
|
+
import * as _geekmidas_schema7 from "@geekmidas/schema";
|
|
5
|
+
|
|
6
|
+
//#region src/functions/index.d.ts
|
|
7
|
+
declare const f: FunctionBuilder<_geekmidas_schema7.ComposableStandardSchema, undefined, [], _geekmidas_logger8.Logger, undefined, string, undefined, string, undefined, string, _geekmidas_audit9.AuditableAction<string, unknown>>;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { f };
|
|
12
|
+
//# sourceMappingURL=index-CtMNRkV7.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-CtMNRkV7.d.mts","names":[],"sources":["../src/functions/index.ts"],"sourcesContent":[],"mappings":";;;;;;cAWa,GAAC,gBAAwB,kBAAA,CAAxB,wBAAA,iBAAA,kBAAA,CAAA,MAAA,2DAAA,iBAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CookieFn, HeaderFn } from "./Endpoint-
|
|
1
|
+
import { CookieFn, HeaderFn } from "./Endpoint-BPh52sXZ.cjs";
|
|
2
2
|
import { Context } from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/endpoints/lazyAccessors.d.ts
|
|
@@ -46,4 +46,4 @@ declare function createNoopCookies(): CookieFn;
|
|
|
46
46
|
//# sourceMappingURL=lazyAccessors.d.ts.map
|
|
47
47
|
//#endregion
|
|
48
48
|
export { createApiGatewayCookies, createApiGatewayHeaders, createCookieHeaderAccessor, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders, createObjectHeaders };
|
|
49
|
-
//# sourceMappingURL=lazyAccessors-
|
|
49
|
+
//# sourceMappingURL=lazyAccessors-Ba8HxeIC.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazyAccessors-
|
|
1
|
+
{"version":3,"file":"lazyAccessors-Ba8HxeIC.d.cts","names":[],"sources":["../src/endpoints/lazyAccessors.ts"],"sourcesContent":[],"mappings":";;;;;AAqCA;;;;AAAuD;AAgCvC,iBArDA,iBAAA,CAqDuB,CAAA,EArDF,OAqDE,CAAA,EArDQ,QAqDR;;;;AAE5B;AAoCX;AA+CgB,iBArHA,iBAAA,CAqHmB,CAAA,EArHE,OAqHF,CAAA,EArHY,QAqHZ;;;;AAExB;AAkCK,iBAzHA,uBAAA,CA2Hb,OAAQ,EA1HD,MA0HC,CAAA,MAAA,EAAA,MAAA,GAAA,SAAA,CAAA,GAAA,IAAA,GAAA,SAAA,CAAA,EAzHR,QAyHQ;AAiCX;AAUA;;;iBAhIgB,uBAAA,mEAGb;;;;;iBA4Ca,mBAAA,UACN,qCACP;;;;;iBAkCa,0BAAA,oCAEb;;;;iBAiCa,iBAAA,CAAA,GAAqB;;;;iBAUrB,iBAAA,CAAA,GAAqB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CookieFn, HeaderFn } from "./Endpoint-
|
|
1
|
+
import { CookieFn, HeaderFn } from "./Endpoint-BIvS-rKH.mjs";
|
|
2
2
|
import { Context } from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/endpoints/lazyAccessors.d.ts
|
|
@@ -46,4 +46,4 @@ declare function createNoopCookies(): CookieFn;
|
|
|
46
46
|
//# sourceMappingURL=lazyAccessors.d.ts.map
|
|
47
47
|
//#endregion
|
|
48
48
|
export { createApiGatewayCookies, createApiGatewayHeaders, createCookieHeaderAccessor, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders, createObjectHeaders };
|
|
49
|
-
//# sourceMappingURL=lazyAccessors-
|
|
49
|
+
//# sourceMappingURL=lazyAccessors-D9tzUZaz.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazyAccessors-
|
|
1
|
+
{"version":3,"file":"lazyAccessors-D9tzUZaz.d.mts","names":[],"sources":["../src/endpoints/lazyAccessors.ts"],"sourcesContent":[],"mappings":";;;;;AAqCA;;;;AAAuD;AAgCvC,iBArDA,iBAAA,CAqDuB,CAAA,EArDF,OAqDE,CAAA,EArDQ,QAqDR;;;;AAE5B;AAoCX;AA+CgB,iBArHA,iBAAA,CAqHmB,CAAA,EArHE,OAqHF,CAAA,EArHY,QAqHZ;;;;AAExB;AAkCK,iBAzHA,uBAAA,CA2Hb,OAAQ,EA1HD,MA0HC,CAAA,MAAA,EAAA,MAAA,GAAA,SAAA,CAAA,GAAA,IAAA,GAAA,SAAA,CAAA,EAzHR,QAyHQ;AAiCX;AAUA;;;iBAhIgB,uBAAA,mEAGb;;;;;iBA4Ca,mBAAA,UACN,qCACP;;;;;iBAkCa,0BAAA,oCAEb;;;;iBAiCa,iBAAA,CAAA,GAAqB;;;;iBAUrB,iBAAA,CAAA,GAAqB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
const qs = require_chunk.__toESM(require("qs"));
|
|
3
|
+
|
|
4
|
+
//#region src/endpoints/parseHonoQuery.ts
|
|
5
|
+
/**
|
|
6
|
+
* Parse Hono query parameters using qs bracket notation
|
|
7
|
+
* Supports nested objects, arrays, and deep nesting via standard bracket syntax
|
|
8
|
+
*/
|
|
9
|
+
function parseHonoQuery(c) {
|
|
10
|
+
const url = c.req.url;
|
|
11
|
+
const queryIndex = url.indexOf("?");
|
|
12
|
+
if (queryIndex === -1) return {};
|
|
13
|
+
const queryString = url.slice(queryIndex + 1);
|
|
14
|
+
return qs.default.parse(queryString);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
Object.defineProperty(exports, 'parseHonoQuery', {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return parseHonoQuery;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=parseHonoQuery-BBs8CX-H.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseHonoQuery-BBs8CX-H.cjs","names":["c: Context"],"sources":["../src/endpoints/parseHonoQuery.ts"],"sourcesContent":["import type { Context } from 'hono';\nimport qs from 'qs';\n\n/**\n * Parse Hono query parameters using qs bracket notation\n * Supports nested objects, arrays, and deep nesting via standard bracket syntax\n */\nexport function parseHonoQuery(c: Context): Record<string, any> {\n\tconst url = c.req.url;\n\tconst queryIndex = url.indexOf('?');\n\tif (queryIndex === -1) {\n\t\treturn {};\n\t}\n\tconst queryString = url.slice(queryIndex + 1);\n\treturn qs.parse(queryString) as Record<string, any>;\n}\n"],"mappings":";;;;;;;;AAOA,SAAgB,eAAeA,GAAiC;CAC/D,MAAM,MAAM,EAAE,IAAI;CAClB,MAAM,aAAa,IAAI,QAAQ,IAAI;AACnC,KAAI,eAAe,GAClB,QAAO,CAAE;CAEV,MAAM,cAAc,IAAI,MAAM,aAAa,EAAE;AAC7C,QAAO,WAAG,MAAM,YAAY;AAC5B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import qs from "qs";
|
|
2
|
+
|
|
3
|
+
//#region src/endpoints/parseHonoQuery.ts
|
|
4
|
+
/**
|
|
5
|
+
* Parse Hono query parameters using qs bracket notation
|
|
6
|
+
* Supports nested objects, arrays, and deep nesting via standard bracket syntax
|
|
7
|
+
*/
|
|
8
|
+
function parseHonoQuery(c) {
|
|
9
|
+
const url = c.req.url;
|
|
10
|
+
const queryIndex = url.indexOf("?");
|
|
11
|
+
if (queryIndex === -1) return {};
|
|
12
|
+
const queryString = url.slice(queryIndex + 1);
|
|
13
|
+
return qs.parse(queryString);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { parseHonoQuery };
|
|
18
|
+
//# sourceMappingURL=parseHonoQuery-Cp8CII0P.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseHonoQuery-Cp8CII0P.mjs","names":["c: Context"],"sources":["../src/endpoints/parseHonoQuery.ts"],"sourcesContent":["import type { Context } from 'hono';\nimport qs from 'qs';\n\n/**\n * Parse Hono query parameters using qs bracket notation\n * Supports nested objects, arrays, and deep nesting via standard bracket syntax\n */\nexport function parseHonoQuery(c: Context): Record<string, any> {\n\tconst url = c.req.url;\n\tconst queryIndex = url.indexOf('?');\n\tif (queryIndex === -1) {\n\t\treturn {};\n\t}\n\tconst queryString = url.slice(queryIndex + 1);\n\treturn qs.parse(queryString) as Record<string, any>;\n}\n"],"mappings":";;;;;;;AAOA,SAAgB,eAAeA,GAAiC;CAC/D,MAAM,MAAM,EAAE,IAAI;CAClB,MAAM,aAAa,IAAI,QAAQ,IAAI;AACnC,KAAI,eAAe,GAClB,QAAO,CAAE;CAEV,MAAM,cAAc,IAAI,MAAM,aAAa,EAAE;AAC7C,QAAO,GAAG,MAAM,YAAY;AAC5B"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
const qs = require_chunk.__toESM(require("qs"));
|
|
3
|
+
|
|
4
|
+
//#region src/endpoints/parseQueryParams.ts
|
|
5
|
+
/**
|
|
6
|
+
* Parse query parameters from a flat object into a nested structure
|
|
7
|
+
* Uses qs bracket notation for standard interoperability
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* parseQueryParams({ 'tags[]': ['a', 'b'], 'filter[name]': 'john' })
|
|
11
|
+
* // Returns: { tags: ['a', 'b'], filter: { name: 'john' } }
|
|
12
|
+
*/
|
|
13
|
+
function parseQueryParams(queryParams) {
|
|
14
|
+
if (!queryParams) return {};
|
|
15
|
+
const parts = [];
|
|
16
|
+
for (const [key, value] of Object.entries(queryParams)) {
|
|
17
|
+
if (value === void 0) continue;
|
|
18
|
+
if (Array.isArray(value)) for (const v of value) parts.push(`${encodeURIComponent(key)}=${encodeURIComponent(v)}`);
|
|
19
|
+
else parts.push(`${encodeURIComponent(key)}=${encodeURIComponent(value)}`);
|
|
20
|
+
}
|
|
21
|
+
return qs.default.parse(parts.join("&"));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
Object.defineProperty(exports, 'parseQueryParams', {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return parseQueryParams;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=parseQueryParams-B4RK1za3.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseQueryParams-B4RK1za3.cjs","names":["queryParams: Record<string, string | string[] | undefined> | null","parts: string[]"],"sources":["../src/endpoints/parseQueryParams.ts"],"sourcesContent":["import qs from 'qs';\n\n/**\n * Parse query parameters from a flat object into a nested structure\n * Uses qs bracket notation for standard interoperability\n *\n * @example\n * parseQueryParams({ 'tags[]': ['a', 'b'], 'filter[name]': 'john' })\n * // Returns: { tags: ['a', 'b'], filter: { name: 'john' } }\n */\nexport function parseQueryParams(\n\tqueryParams: Record<string, string | string[] | undefined> | null,\n): Record<string, any> {\n\tif (!queryParams) {\n\t\treturn {};\n\t}\n\n\t// Reconstruct a query string from the flat object so qs can parse bracket notation\n\tconst parts: string[] = [];\n\tfor (const [key, value] of Object.entries(queryParams)) {\n\t\tif (value === undefined) continue;\n\t\tif (Array.isArray(value)) {\n\t\t\tfor (const v of value) {\n\t\t\t\tparts.push(`${encodeURIComponent(key)}=${encodeURIComponent(v)}`);\n\t\t\t}\n\t\t} else {\n\t\t\tparts.push(`${encodeURIComponent(key)}=${encodeURIComponent(value)}`);\n\t\t}\n\t}\n\n\treturn qs.parse(parts.join('&')) as Record<string, any>;\n}\n"],"mappings":";;;;;;;;;;;;AAUA,SAAgB,iBACfA,aACsB;AACtB,MAAK,YACJ,QAAO,CAAE;CAIV,MAAMC,QAAkB,CAAE;AAC1B,MAAK,MAAM,CAAC,KAAK,MAAM,IAAI,OAAO,QAAQ,YAAY,EAAE;AACvD,MAAI,iBAAqB;AACzB,MAAI,MAAM,QAAQ,MAAM,CACvB,MAAK,MAAM,KAAK,MACf,OAAM,MAAM,EAAE,mBAAmB,IAAI,CAAC,GAAG,mBAAmB,EAAE,CAAC,EAAE;MAGlE,OAAM,MAAM,EAAE,mBAAmB,IAAI,CAAC,GAAG,mBAAmB,MAAM,CAAC,EAAE;CAEtE;AAED,QAAO,WAAG,MAAM,MAAM,KAAK,IAAI,CAAC;AAChC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import qs from "qs";
|
|
2
|
+
|
|
3
|
+
//#region src/endpoints/parseQueryParams.ts
|
|
4
|
+
/**
|
|
5
|
+
* Parse query parameters from a flat object into a nested structure
|
|
6
|
+
* Uses qs bracket notation for standard interoperability
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* parseQueryParams({ 'tags[]': ['a', 'b'], 'filter[name]': 'john' })
|
|
10
|
+
* // Returns: { tags: ['a', 'b'], filter: { name: 'john' } }
|
|
11
|
+
*/
|
|
12
|
+
function parseQueryParams(queryParams) {
|
|
13
|
+
if (!queryParams) return {};
|
|
14
|
+
const parts = [];
|
|
15
|
+
for (const [key, value] of Object.entries(queryParams)) {
|
|
16
|
+
if (value === void 0) continue;
|
|
17
|
+
if (Array.isArray(value)) for (const v of value) parts.push(`${encodeURIComponent(key)}=${encodeURIComponent(v)}`);
|
|
18
|
+
else parts.push(`${encodeURIComponent(key)}=${encodeURIComponent(value)}`);
|
|
19
|
+
}
|
|
20
|
+
return qs.parse(parts.join("&"));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { parseQueryParams };
|
|
25
|
+
//# sourceMappingURL=parseQueryParams-DS3Qmrbd.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseQueryParams-DS3Qmrbd.mjs","names":["queryParams: Record<string, string | string[] | undefined> | null","parts: string[]"],"sources":["../src/endpoints/parseQueryParams.ts"],"sourcesContent":["import qs from 'qs';\n\n/**\n * Parse query parameters from a flat object into a nested structure\n * Uses qs bracket notation for standard interoperability\n *\n * @example\n * parseQueryParams({ 'tags[]': ['a', 'b'], 'filter[name]': 'john' })\n * // Returns: { tags: ['a', 'b'], filter: { name: 'john' } }\n */\nexport function parseQueryParams(\n\tqueryParams: Record<string, string | string[] | undefined> | null,\n): Record<string, any> {\n\tif (!queryParams) {\n\t\treturn {};\n\t}\n\n\t// Reconstruct a query string from the flat object so qs can parse bracket notation\n\tconst parts: string[] = [];\n\tfor (const [key, value] of Object.entries(queryParams)) {\n\t\tif (value === undefined) continue;\n\t\tif (Array.isArray(value)) {\n\t\t\tfor (const v of value) {\n\t\t\t\tparts.push(`${encodeURIComponent(key)}=${encodeURIComponent(v)}`);\n\t\t\t}\n\t\t} else {\n\t\t\tparts.push(`${encodeURIComponent(key)}=${encodeURIComponent(value)}`);\n\t\t}\n\t}\n\n\treturn qs.parse(parts.join('&')) as Record<string, any>;\n}\n"],"mappings":";;;;;;;;;;;AAUA,SAAgB,iBACfA,aACsB;AACtB,MAAK,YACJ,QAAO,CAAE;CAIV,MAAMC,QAAkB,CAAE;AAC1B,MAAK,MAAM,CAAC,KAAK,MAAM,IAAI,OAAO,QAAQ,YAAY,EAAE;AACvD,MAAI,iBAAqB;AACzB,MAAI,MAAM,QAAQ,MAAM,CACvB,MAAK,MAAM,KAAK,MACf,OAAM,MAAM,EAAE,mBAAmB,IAAI,CAAC,GAAG,mBAAmB,EAAE,CAAC,EAAE;MAGlE,OAAM,MAAM,EAAE,mBAAmB,IAAI,CAAC,GAAG,mBAAmB,MAAM,CAAC,EAAE;CAEtE;AAED,QAAO,GAAG,MAAM,MAAM,KAAK,IAAI,CAAC;AAChC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../Construct-CX7HyFfT.cjs";
|
|
2
2
|
import { Subscriber } from "../Subscriber-1rDE7HuM.cjs";
|
|
3
3
|
import { SubscriberBuilder } from "../SubscriberBuilder-B9uva8fZ.cjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _geekmidas_logger8 from "@geekmidas/logger";
|
|
5
5
|
|
|
6
6
|
//#region src/subscribers/index.d.ts
|
|
7
|
-
declare const s: SubscriberBuilder<[],
|
|
7
|
+
declare const s: SubscriberBuilder<[], _geekmidas_logger8.Logger, undefined, undefined, string, []>;
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
9
9
|
|
|
10
10
|
//#endregion
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../Construct-C2SyofdS.mjs";
|
|
2
2
|
import { Subscriber } from "../Subscriber-BgB3RRxb.mjs";
|
|
3
3
|
import { SubscriberBuilder } from "../SubscriberBuilder-DaQkh2Nt.mjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _geekmidas_logger10 from "@geekmidas/logger";
|
|
5
5
|
|
|
6
6
|
//#region src/subscribers/index.d.ts
|
|
7
|
-
declare const s: SubscriberBuilder<[],
|
|
7
|
+
declare const s: SubscriberBuilder<[], _geekmidas_logger10.Logger, undefined, undefined, string, []>;
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
9
9
|
|
|
10
10
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/subscribers/index.ts"],"sourcesContent":[],"mappings":";;;;;;cAKa,GAAC,sBAA0B,
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/subscribers/index.ts"],"sourcesContent":[],"mappings":";;;;;;cAKa,GAAC,sBAA0B,mBAAA,CAA1B,MAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geekmidas/constructs",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -65,7 +65,8 @@
|
|
|
65
65
|
"lodash.pick": "~4.4.0",
|
|
66
66
|
"lodash.set": "~4.3.2",
|
|
67
67
|
"lodash.uniqby": "~4.7.0",
|
|
68
|
-
"openapi-types": "~12.1.3"
|
|
68
|
+
"openapi-types": "~12.1.3",
|
|
69
|
+
"qs": "~6.15.0"
|
|
69
70
|
},
|
|
70
71
|
"devDependencies": {
|
|
71
72
|
"@types/lodash.compact": "~3.0.9",
|
|
@@ -74,21 +75,22 @@
|
|
|
74
75
|
"@types/lodash.set": "~4.3.9",
|
|
75
76
|
"@types/lodash.uniqby": "~4.7.9",
|
|
76
77
|
"@types/pg": "~8.15.6",
|
|
78
|
+
"@types/qs": "~6.15.0",
|
|
77
79
|
"better-auth": "~1.4.18",
|
|
78
80
|
"kysely": "~0.28.8",
|
|
79
81
|
"pg": "~8.16.3",
|
|
80
82
|
"zod": "~4.1.13",
|
|
81
|
-
"@geekmidas/envkit": "^1.0.3",
|
|
82
83
|
"@geekmidas/audit": "^2.0.0",
|
|
83
|
-
"@geekmidas/db": "^1.0.
|
|
84
|
+
"@geekmidas/db": "^1.0.1",
|
|
84
85
|
"@geekmidas/cache": "^1.1.0",
|
|
86
|
+
"@geekmidas/envkit": "^1.0.4",
|
|
85
87
|
"@geekmidas/errors": "^1.0.0",
|
|
86
|
-
"@geekmidas/events": "^1.1.0",
|
|
87
88
|
"@geekmidas/logger": "^1.0.0",
|
|
88
|
-
"@geekmidas/
|
|
89
|
+
"@geekmidas/events": "^1.1.0",
|
|
89
90
|
"@geekmidas/rate-limit": "^2.0.0",
|
|
90
|
-
"@geekmidas/
|
|
91
|
-
"@geekmidas/services": "^1.0.1"
|
|
91
|
+
"@geekmidas/schema": "^1.0.0",
|
|
92
|
+
"@geekmidas/services": "^1.0.1",
|
|
93
|
+
"@geekmidas/testkit": "^1.0.5"
|
|
92
94
|
},
|
|
93
95
|
"peerDependencies": {
|
|
94
96
|
"@middy/core": ">=6.3.1",
|
|
@@ -96,14 +98,14 @@
|
|
|
96
98
|
"hono": ">=4.8.2",
|
|
97
99
|
"@geekmidas/audit": "^2.0.0",
|
|
98
100
|
"@geekmidas/cache": "^1.1.0",
|
|
99
|
-
"@geekmidas/db": "^1.0.
|
|
100
|
-
"@geekmidas/
|
|
101
|
-
"@geekmidas/envkit": "^1.0.3",
|
|
101
|
+
"@geekmidas/db": "^1.0.1",
|
|
102
|
+
"@geekmidas/envkit": "^1.0.4",
|
|
102
103
|
"@geekmidas/events": "^1.1.0",
|
|
104
|
+
"@geekmidas/errors": "^1.0.0",
|
|
103
105
|
"@geekmidas/logger": "^1.0.0",
|
|
106
|
+
"@geekmidas/services": "^1.0.1",
|
|
104
107
|
"@geekmidas/rate-limit": "^2.0.0",
|
|
105
|
-
"@geekmidas/schema": "^1.0.0"
|
|
106
|
-
"@geekmidas/services": "^1.0.1"
|
|
108
|
+
"@geekmidas/schema": "^1.0.0"
|
|
107
109
|
},
|
|
108
110
|
"peerDependenciesMeta": {
|
|
109
111
|
"@geekmidas/audit": {
|
|
@@ -145,6 +145,34 @@ export abstract class AmazonApiGatewayEndpoint<
|
|
|
145
145
|
}
|
|
146
146
|
abstract getInput(e: TEvent): GetInputResponse;
|
|
147
147
|
|
|
148
|
+
/**
|
|
149
|
+
* Decodes the raw body from an API Gateway event.
|
|
150
|
+
* Uses Content-Type to decide parsing strategy (like Express/Fastify/Hono):
|
|
151
|
+
* - `application/json` (or missing) → JSON.parse the decoded string
|
|
152
|
+
* - Anything else → return decoded string as-is, let the schema handle it
|
|
153
|
+
*
|
|
154
|
+
* Defaults to JSON when no Content-Type is provided for backwards compatibility.
|
|
155
|
+
*/
|
|
156
|
+
static decodeBody(
|
|
157
|
+
body: string | undefined | null,
|
|
158
|
+
isBase64Encoded: boolean | undefined,
|
|
159
|
+
contentType: string | undefined,
|
|
160
|
+
): any {
|
|
161
|
+
if (!body) return undefined;
|
|
162
|
+
|
|
163
|
+
const raw = isBase64Encoded
|
|
164
|
+
? Buffer.from(body, 'base64').toString('utf-8')
|
|
165
|
+
: body;
|
|
166
|
+
|
|
167
|
+
const isJson =
|
|
168
|
+
!contentType || contentType.toLowerCase().includes('application/json');
|
|
169
|
+
if (isJson) {
|
|
170
|
+
return JSON.parse(raw);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
return raw;
|
|
174
|
+
}
|
|
175
|
+
|
|
148
176
|
protected getCookies(e: TEvent): CookieFn {
|
|
149
177
|
const headers = e.headers as Record<string, string>;
|
|
150
178
|
return Endpoint.createCookies(headers?.cookie);
|
|
@@ -230,7 +258,10 @@ export abstract class AmazonApiGatewayEndpoint<
|
|
|
230
258
|
services,
|
|
231
259
|
logger,
|
|
232
260
|
session,
|
|
233
|
-
|
|
261
|
+
body: (req.event as any).body,
|
|
262
|
+
query: (req.event as any).query,
|
|
263
|
+
params: (req.event as any).params,
|
|
264
|
+
} as any);
|
|
234
265
|
|
|
235
266
|
if (!isAuthorized) {
|
|
236
267
|
logger.warn('Unauthorized access attempt');
|