@geekmidas/constructs 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/{AmazonApiGatewayV1EndpointAdaptor-COLHHAsd.mjs → AmazonApiGatewayV1EndpointAdaptor-DCfEo-Tu.mjs} +2 -2
- package/dist/{AmazonApiGatewayV1EndpointAdaptor-COLHHAsd.mjs.map → AmazonApiGatewayV1EndpointAdaptor-DCfEo-Tu.mjs.map} +1 -1
- package/dist/{AmazonApiGatewayV1EndpointAdaptor-CW0BCUkm.cjs → AmazonApiGatewayV1EndpointAdaptor-DwKlAfnb.cjs} +2 -2
- package/dist/{AmazonApiGatewayV1EndpointAdaptor-CW0BCUkm.cjs.map → AmazonApiGatewayV1EndpointAdaptor-DwKlAfnb.cjs.map} +1 -1
- package/dist/{AmazonApiGatewayV2EndpointAdaptor-C7ZrwcTX.cjs → AmazonApiGatewayV2EndpointAdaptor-B126fL6i.cjs} +4 -7
- package/dist/AmazonApiGatewayV2EndpointAdaptor-B126fL6i.cjs.map +1 -0
- package/dist/{AmazonApiGatewayV2EndpointAdaptor-Cl9ERGyi.mjs → AmazonApiGatewayV2EndpointAdaptor-CGMF4lD4.mjs} +3 -7
- package/dist/AmazonApiGatewayV2EndpointAdaptor-CGMF4lD4.mjs.map +1 -0
- package/dist/AmazonApiGatewayV2EndpointAdaptor-OkwjABOz.d.cts.map +1 -1
- package/dist/AmazonApiGatewayV2EndpointAdaptor-ofjuxcPV.d.mts.map +1 -1
- package/dist/{Authorizer-Dx57psuM.cjs → Authorizer-BXxBee2P.cjs} +1 -1
- package/dist/{Authorizer-Dx57psuM.cjs.map → Authorizer-BXxBee2P.cjs.map} +1 -1
- package/dist/{Authorizer-4unKN3Xn.mjs → Authorizer-BgjU8-z6.mjs} +1 -1
- package/dist/{Authorizer-4unKN3Xn.mjs.map → Authorizer-BgjU8-z6.mjs.map} +1 -1
- package/dist/{Cron-B3vrGuaD.mjs → Cron-BUpUS-0f.mjs} +1 -1
- package/dist/{Cron-B3vrGuaD.mjs.map → Cron-BUpUS-0f.mjs.map} +1 -1
- package/dist/{Cron-DEKZg5j4.cjs → Cron-Bp08dJ4R.cjs} +1 -1
- package/dist/{Cron-DEKZg5j4.cjs.map → Cron-Bp08dJ4R.cjs.map} +1 -1
- package/dist/{CronBuilder-BHpY6w3b.cjs → CronBuilder-CIxJQ1Ps.cjs} +2 -2
- package/dist/{CronBuilder-BHpY6w3b.cjs.map → CronBuilder-CIxJQ1Ps.cjs.map} +1 -1
- package/dist/{CronBuilder-VXpyNfp2.mjs → CronBuilder-DUggbCHc.mjs} +2 -2
- package/dist/{CronBuilder-VXpyNfp2.mjs.map → CronBuilder-DUggbCHc.mjs.map} +1 -1
- package/dist/{EndpointBuilder-D1RtrBu1.mjs → EndpointBuilder-CF-ZWtdu.mjs} +3 -3
- package/dist/{EndpointBuilder-D1RtrBu1.mjs.map → EndpointBuilder-CF-ZWtdu.mjs.map} +1 -1
- package/dist/{EndpointBuilder-fXmTxRyW.cjs → EndpointBuilder-CyszO0bs.cjs} +3 -3
- package/dist/{EndpointBuilder-fXmTxRyW.cjs.map → EndpointBuilder-CyszO0bs.cjs.map} +1 -1
- package/dist/{EndpointFactory-DBfTbSTX.cjs → EndpointFactory-B0D6d6t9.cjs} +3 -3
- package/dist/{EndpointFactory-DBfTbSTX.cjs.map → EndpointFactory-B0D6d6t9.cjs.map} +1 -1
- package/dist/{EndpointFactory-DkB8yxdQ.mjs → EndpointFactory-Do498RmG.mjs} +3 -3
- package/dist/{EndpointFactory-DkB8yxdQ.mjs.map → EndpointFactory-Do498RmG.mjs.map} +1 -1
- package/dist/{HonoEndpointAdaptor-BCql3gLP.d.cts → HonoEndpointAdaptor-BNHGwpvZ.d.cts} +3 -3
- package/dist/{HonoEndpointAdaptor-BCql3gLP.d.cts.map → HonoEndpointAdaptor-BNHGwpvZ.d.cts.map} +1 -1
- package/dist/{HonoEndpointAdaptor-y9fCIxaz.mjs → HonoEndpointAdaptor-BvxQreVM.mjs} +2 -2
- package/dist/{HonoEndpointAdaptor-y9fCIxaz.mjs.map → HonoEndpointAdaptor-BvxQreVM.mjs.map} +1 -1
- package/dist/{HonoEndpointAdaptor-CavBd6P2.cjs → HonoEndpointAdaptor-CQqQPLHH.cjs} +2 -2
- package/dist/{HonoEndpointAdaptor-CavBd6P2.cjs.map → HonoEndpointAdaptor-CQqQPLHH.cjs.map} +1 -1
- package/dist/{HonoEndpointAdaptor-C3AdQ0xS.d.mts → HonoEndpointAdaptor-DgoeqUX6.d.mts} +3 -3
- package/dist/{HonoEndpointAdaptor-C3AdQ0xS.d.mts.map → HonoEndpointAdaptor-DgoeqUX6.d.mts.map} +1 -1
- package/dist/{Subscriber-Scz7hrV6.cjs → Subscriber-ClqSPbIZ.cjs} +1 -1
- package/dist/{Subscriber-Scz7hrV6.cjs.map → Subscriber-ClqSPbIZ.cjs.map} +1 -1
- package/dist/{Subscriber-BEhOdNQi.mjs → Subscriber-DKQK5gLD.mjs} +1 -1
- package/dist/{Subscriber-BEhOdNQi.mjs.map → Subscriber-DKQK5gLD.mjs.map} +1 -1
- package/dist/{SubscriberBuilder-B82h4v-S.cjs → SubscriberBuilder-BS5B_688.cjs} +2 -2
- package/dist/{SubscriberBuilder-B82h4v-S.cjs.map → SubscriberBuilder-BS5B_688.cjs.map} +1 -1
- package/dist/{SubscriberBuilder-DlUaG0Ej.mjs → SubscriberBuilder-BswTuvUc.mjs} +2 -2
- package/dist/{SubscriberBuilder-DlUaG0Ej.mjs.map → SubscriberBuilder-BswTuvUc.mjs.map} +1 -1
- package/dist/adaptors/aws.cjs +3 -3
- package/dist/adaptors/aws.d.cts +1 -1
- package/dist/adaptors/aws.d.mts +1 -1
- package/dist/adaptors/aws.mjs +3 -3
- package/dist/adaptors/hono.cjs +2 -2
- package/dist/adaptors/hono.d.cts +2 -2
- package/dist/adaptors/hono.d.mts +2 -2
- package/dist/adaptors/hono.mjs +2 -2
- package/dist/adaptors/testing.d.cts +1 -1
- package/dist/adaptors/testing.d.mts +1 -1
- package/dist/crons/Cron.cjs +1 -1
- package/dist/crons/Cron.d.cts +1 -1
- package/dist/crons/Cron.d.mts +1 -1
- package/dist/crons/Cron.mjs +1 -1
- package/dist/crons/CronBuilder.cjs +2 -2
- package/dist/crons/CronBuilder.d.cts +1 -1
- package/dist/crons/CronBuilder.d.mts +1 -1
- package/dist/crons/CronBuilder.mjs +2 -2
- package/dist/crons/index.cjs +2 -2
- package/dist/crons/index.d.cts +5 -5
- package/dist/crons/index.d.cts.map +1 -1
- package/dist/crons/index.d.mts +5 -5
- package/dist/crons/index.d.mts.map +1 -1
- package/dist/crons/index.mjs +2 -2
- package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.d.cts +1 -1
- package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.d.mts +1 -1
- package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.cjs +2 -2
- package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.d.cts +1 -1
- package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.d.mts +1 -1
- package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.mjs +2 -2
- package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.cjs +1 -2
- package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.d.cts +1 -1
- package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.d.mts +1 -1
- package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.mjs +1 -2
- package/dist/endpoints/Authorizer.cjs +1 -1
- package/dist/endpoints/Authorizer.mjs +1 -1
- package/dist/endpoints/Endpoint.d.cts +1 -1
- package/dist/endpoints/Endpoint.d.mts +1 -1
- package/dist/endpoints/EndpointBuilder.cjs +3 -3
- package/dist/endpoints/EndpointBuilder.d.cts +1 -1
- package/dist/endpoints/EndpointBuilder.d.mts +1 -1
- package/dist/endpoints/EndpointBuilder.mjs +3 -3
- package/dist/endpoints/EndpointFactory.cjs +4 -4
- package/dist/endpoints/EndpointFactory.d.cts +1 -1
- package/dist/endpoints/EndpointFactory.d.mts +1 -1
- package/dist/endpoints/EndpointFactory.mjs +4 -4
- package/dist/endpoints/HonoEndpointAdaptor.cjs +2 -2
- package/dist/endpoints/HonoEndpointAdaptor.d.cts +2 -2
- package/dist/endpoints/HonoEndpointAdaptor.d.mts +2 -2
- package/dist/endpoints/HonoEndpointAdaptor.mjs +2 -2
- package/dist/endpoints/TestEndpointAdaptor.d.cts +1 -1
- package/dist/endpoints/TestEndpointAdaptor.d.mts +1 -1
- package/dist/endpoints/audit.d.cts +1 -1
- package/dist/endpoints/audit.d.mts +1 -1
- package/dist/endpoints/helpers.d.cts +1 -1
- package/dist/endpoints/helpers.d.mts +1 -1
- package/dist/endpoints/index.cjs +4 -4
- package/dist/endpoints/index.d.cts +3 -3
- package/dist/endpoints/index.d.mts +3 -3
- package/dist/endpoints/index.mjs +4 -4
- package/dist/endpoints/lazyAccessors.d.cts +1 -1
- package/dist/endpoints/lazyAccessors.d.mts +1 -1
- 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 +1 -1
- package/dist/endpoints/processAudits.d.mts +1 -1
- package/dist/endpoints/rls.cjs +1 -1
- package/dist/endpoints/rls.d.cts +1 -1
- package/dist/endpoints/rls.d.mts +1 -1
- package/dist/endpoints/rls.mjs +1 -1
- package/dist/functions/index.d.cts +1 -1
- package/dist/functions/index.d.mts +1 -1
- package/dist/index-Br-zTYii.d.mts +12 -0
- package/dist/{index-BRoc67OX.d.cts.map → index-Br-zTYii.d.mts.map} +1 -1
- package/dist/index-dRNH0dT6.d.cts +12 -0
- package/dist/{index-_5DYCNAt.d.mts.map → index-dRNH0dT6.d.cts.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/{rls-DxFqdIA0.cjs → rls-BrywnrQb.cjs} +1 -1
- package/dist/{rls-DxFqdIA0.cjs.map → rls-BrywnrQb.cjs.map} +1 -1
- package/dist/{rls-7XXX7DvY.mjs → rls-C0cWOnk4.mjs} +1 -1
- package/dist/{rls-7XXX7DvY.mjs.map → rls-C0cWOnk4.mjs.map} +1 -1
- package/dist/subscribers/Subscriber.cjs +1 -1
- package/dist/subscribers/Subscriber.mjs +1 -1
- package/dist/subscribers/SubscriberBuilder.cjs +2 -2
- package/dist/subscribers/SubscriberBuilder.mjs +2 -2
- package/dist/subscribers/index.cjs +2 -2
- package/dist/subscribers/index.d.cts +2 -2
- package/dist/subscribers/index.d.mts +2 -2
- package/dist/subscribers/index.mjs +2 -2
- package/package.json +15 -13
- package/src/endpoints/AmazonApiGatewayV2EndpointAdaptor.ts +2 -18
- package/src/endpoints/__tests__/AmazonApiGatewayV1EndpointAdaptor.spec.ts +7 -7
- package/src/endpoints/__tests__/AmazonApiGatewayV2EndpointAdaptor.events.spec.ts +4 -2
- package/src/endpoints/__tests__/AmazonApiGatewayV2EndpointAdaptor.spec.ts +9 -7
- package/src/endpoints/__tests__/HonoEndpointAdaptor.spec.ts +4 -4
- package/src/endpoints/parseHonoQuery.ts +9 -46
- package/src/endpoints/parseQueryParams.ts +12 -33
- package/dist/AmazonApiGatewayV2EndpointAdaptor-C7ZrwcTX.cjs.map +0 -1
- package/dist/AmazonApiGatewayV2EndpointAdaptor-Cl9ERGyi.mjs.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-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-Br-zTYii.mjs";
|
|
7
7
|
import { Authorizer, BUILT_IN_SECURITY_SCHEMES, BuiltInSecuritySchemeId, OAuthFlow, OAuthFlows, SecurityScheme, createAuthorizer, getSecurityScheme, isBuiltInSecurityScheme } from "../Authorizer-DBsrDTuf.mjs";
|
|
8
8
|
import { ActorExtractor, Endpoint, EndpointContext, EndpointHandler, EndpointOutput, EndpointSchemas, MappedAudit, RLS_BYPASS, ResponseBuilder, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor } from "../Endpoint-BiPM0glm.mjs";
|
|
9
9
|
import { EndpointBuilder } from "../EndpointBuilder-B0Aj5jbB.mjs";
|
|
10
10
|
import { EndpointFactory } from "../EndpointFactory-CWIeWCRG.mjs";
|
|
11
11
|
import { publishConstructEvents } from "../publisher-CP4gpv-4.mjs";
|
|
12
12
|
import { createApiGatewayCookies, createApiGatewayHeaders, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders } from "../lazyAccessors-DXkJpnyX.mjs";
|
|
13
|
-
import * as
|
|
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
|
@@ -6,10 +6,10 @@ import "../FunctionBuilder-CBeqX18X.mjs";
|
|
|
6
6
|
import "../functions-B1mrMoUH.mjs";
|
|
7
7
|
import { Endpoint, ResponseBuilder } from "../Endpoint-DvY3aqAy.mjs";
|
|
8
8
|
import { createApiGatewayCookies, createApiGatewayHeaders, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders } from "../lazyAccessors-DM6HcXQk.mjs";
|
|
9
|
-
import { BUILT_IN_SECURITY_SCHEMES, createAuthorizer, getSecurityScheme, isBuiltInSecurityScheme } from "../Authorizer-
|
|
10
|
-
import { RLS_BYPASS } from "../rls-
|
|
11
|
-
import { EndpointBuilder } from "../EndpointBuilder-
|
|
12
|
-
import { EndpointFactory } from "../EndpointFactory-
|
|
9
|
+
import { BUILT_IN_SECURITY_SCHEMES, createAuthorizer, getSecurityScheme, isBuiltInSecurityScheme } from "../Authorizer-BgjU8-z6.mjs";
|
|
10
|
+
import { RLS_BYPASS } from "../rls-C0cWOnk4.mjs";
|
|
11
|
+
import { EndpointBuilder } from "../EndpointBuilder-CF-ZWtdu.mjs";
|
|
12
|
+
import { EndpointFactory } from "../EndpointFactory-Do498RmG.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/endpoints/index.ts
|
|
15
15
|
const e = new EndpointFactory();
|
|
@@ -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-dRNH0dT6.cjs";
|
|
7
7
|
import "../Authorizer-DWtwC8we.cjs";
|
|
8
8
|
import "../Endpoint-C9N6CmvB.cjs";
|
|
9
9
|
import { createApiGatewayCookies, createApiGatewayHeaders, createCookieHeaderAccessor, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders, createObjectHeaders } from "../lazyAccessors-DdZaA716.cjs";
|
|
@@ -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-Br-zTYii.mjs";
|
|
7
7
|
import "../Authorizer-DBsrDTuf.mjs";
|
|
8
8
|
import "../Endpoint-BiPM0glm.mjs";
|
|
9
9
|
import { createApiGatewayCookies, createApiGatewayHeaders, createCookieHeaderAccessor, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders, createObjectHeaders } from "../lazyAccessors-DXkJpnyX.mjs";
|
|
@@ -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,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-dRNH0dT6.cjs";
|
|
7
7
|
import "../Authorizer-DWtwC8we.cjs";
|
|
8
8
|
import { CookieFn, Endpoint, HeaderFn } from "../Endpoint-C9N6CmvB.cjs";
|
|
9
9
|
import { AuditStorage, AuditableAction, Auditor } from "@geekmidas/audit";
|
|
@@ -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-Br-zTYii.mjs";
|
|
7
7
|
import "../Authorizer-DBsrDTuf.mjs";
|
|
8
8
|
import { CookieFn, Endpoint, HeaderFn } from "../Endpoint-BiPM0glm.mjs";
|
|
9
9
|
import { Service, ServiceDiscovery } from "@geekmidas/services";
|
package/dist/endpoints/rls.cjs
CHANGED
package/dist/endpoints/rls.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import "../types-B5H3piDg.cjs";
|
|
|
3
3
|
import "../BaseFunctionBuilder-C-4hYTfj.cjs";
|
|
4
4
|
import "../Function-CwlB89lS.cjs";
|
|
5
5
|
import "../FunctionBuilder-D_7f5MfS.cjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-dRNH0dT6.cjs";
|
|
7
7
|
import "../Authorizer-DWtwC8we.cjs";
|
|
8
8
|
import { RLS_BYPASS, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor } from "../Endpoint-C9N6CmvB.cjs";
|
|
9
9
|
export { RLS_BYPASS, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor };
|
package/dist/endpoints/rls.d.mts
CHANGED
|
@@ -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-Br-zTYii.mjs";
|
|
7
7
|
import "../Authorizer-DBsrDTuf.mjs";
|
|
8
8
|
import { RLS_BYPASS, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor } from "../Endpoint-BiPM0glm.mjs";
|
|
9
9
|
export { RLS_BYPASS, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor };
|
package/dist/endpoints/rls.mjs
CHANGED
|
@@ -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-dRNH0dT6.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-Br-zTYii.mjs";
|
|
6
6
|
export { BaseFunctionBuilder, Function, FunctionBuilder, FunctionContext, FunctionHandler, f };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FunctionBuilder } from "./FunctionBuilder-m5BNA2Ap.mjs";
|
|
2
|
+
import * as _geekmidas_audit4 from "@geekmidas/audit";
|
|
3
|
+
import * as _geekmidas_logger3 from "@geekmidas/logger";
|
|
4
|
+
import * as _geekmidas_schema2 from "@geekmidas/schema";
|
|
5
|
+
|
|
6
|
+
//#region src/functions/index.d.ts
|
|
7
|
+
declare const f: FunctionBuilder<_geekmidas_schema2.ComposableStandardSchema, undefined, [], _geekmidas_logger3.Logger, undefined, string, undefined, string, undefined, string, _geekmidas_audit4.AuditableAction<string, unknown>>;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { f };
|
|
12
|
+
//# sourceMappingURL=index-Br-zTYii.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-Br-zTYii.d.mts","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-D_7f5MfS.cjs";
|
|
2
|
+
import * as _geekmidas_audit6 from "@geekmidas/audit";
|
|
3
|
+
import * as _geekmidas_logger5 from "@geekmidas/logger";
|
|
4
|
+
import * as _geekmidas_schema4 from "@geekmidas/schema";
|
|
5
|
+
|
|
6
|
+
//#region src/functions/index.d.ts
|
|
7
|
+
declare const f: FunctionBuilder<_geekmidas_schema4.ComposableStandardSchema, undefined, [], _geekmidas_logger5.Logger, undefined, string, undefined, string, undefined, string, _geekmidas_audit6.AuditableAction<string, unknown>>;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { f };
|
|
12
|
+
//# sourceMappingURL=index-dRNH0dT6.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-dRNH0dT6.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,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rls-
|
|
1
|
+
{"version":3,"file":"rls-BrywnrQb.cjs","names":[],"sources":["../src/endpoints/rls.ts"],"sourcesContent":["import type { Logger } from '@geekmidas/logger';\nimport type { Service, ServiceRecord } from '@geekmidas/services';\nimport type { CookieFn, HeaderFn } from './Endpoint';\n\n/**\n * RLS context - key-value pairs to set as PostgreSQL session variables.\n * Keys become `prefix.key` (e.g., `app.user_id`).\n */\nexport interface RlsContext {\n\t[key: string]: string | number | boolean | null | undefined;\n}\n\n/**\n * Function type for extracting RLS context from request context.\n *\n * @template TServices - Available service dependencies\n * @template TSession - Session data type\n * @template TLogger - Logger type\n *\n * @example\n * ```ts\n * const extractor: RlsContextExtractor<[], UserSession> = ({ session }) => ({\n * user_id: session.userId,\n * tenant_id: session.tenantId,\n * roles: session.roles.join(','),\n * });\n * ```\n */\nexport type RlsContextExtractor<\n\tTServices extends Service[] = [],\n\tTSession = unknown,\n\tTLogger extends Logger = Logger,\n> = (ctx: {\n\tservices: ServiceRecord<TServices>;\n\tsession: TSession;\n\theader: HeaderFn;\n\tcookie: CookieFn;\n\tlogger: TLogger;\n}) => RlsContext | Promise<RlsContext>;\n\n/**\n * Configuration for RLS on an endpoint or factory.\n *\n * @template TServices - Available service dependencies\n * @template TSession - Session data type\n * @template TLogger - Logger type\n */\nexport interface RlsConfig<\n\tTServices extends Service[] = [],\n\tTSession = unknown,\n\tTLogger extends Logger = Logger,\n> {\n\t/** Function to extract RLS context from request */\n\textractor: RlsContextExtractor<TServices, TSession, TLogger>;\n\t/** Prefix for PostgreSQL session variables (default: 'app') */\n\tprefix?: string;\n}\n\n/**\n * Symbol used to bypass RLS for an endpoint.\n */\nexport const RLS_BYPASS = Symbol.for('geekmidas.rls.bypass');\n\n/**\n * Type for RLS bypass marker.\n */\nexport type RlsBypass = typeof RLS_BYPASS;\n"],"mappings":";;;;;AA6DA,MAAa,aAAa,OAAO,IAAI,uBAAuB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rls-
|
|
1
|
+
{"version":3,"file":"rls-C0cWOnk4.mjs","names":[],"sources":["../src/endpoints/rls.ts"],"sourcesContent":["import type { Logger } from '@geekmidas/logger';\nimport type { Service, ServiceRecord } from '@geekmidas/services';\nimport type { CookieFn, HeaderFn } from './Endpoint';\n\n/**\n * RLS context - key-value pairs to set as PostgreSQL session variables.\n * Keys become `prefix.key` (e.g., `app.user_id`).\n */\nexport interface RlsContext {\n\t[key: string]: string | number | boolean | null | undefined;\n}\n\n/**\n * Function type for extracting RLS context from request context.\n *\n * @template TServices - Available service dependencies\n * @template TSession - Session data type\n * @template TLogger - Logger type\n *\n * @example\n * ```ts\n * const extractor: RlsContextExtractor<[], UserSession> = ({ session }) => ({\n * user_id: session.userId,\n * tenant_id: session.tenantId,\n * roles: session.roles.join(','),\n * });\n * ```\n */\nexport type RlsContextExtractor<\n\tTServices extends Service[] = [],\n\tTSession = unknown,\n\tTLogger extends Logger = Logger,\n> = (ctx: {\n\tservices: ServiceRecord<TServices>;\n\tsession: TSession;\n\theader: HeaderFn;\n\tcookie: CookieFn;\n\tlogger: TLogger;\n}) => RlsContext | Promise<RlsContext>;\n\n/**\n * Configuration for RLS on an endpoint or factory.\n *\n * @template TServices - Available service dependencies\n * @template TSession - Session data type\n * @template TLogger - Logger type\n */\nexport interface RlsConfig<\n\tTServices extends Service[] = [],\n\tTSession = unknown,\n\tTLogger extends Logger = Logger,\n> {\n\t/** Function to extract RLS context from request */\n\textractor: RlsContextExtractor<TServices, TSession, TLogger>;\n\t/** Prefix for PostgreSQL session variables (default: 'app') */\n\tprefix?: string;\n}\n\n/**\n * Symbol used to bypass RLS for an endpoint.\n */\nexport const RLS_BYPASS = Symbol.for('geekmidas.rls.bypass');\n\n/**\n * Type for RLS bypass marker.\n */\nexport type RlsBypass = typeof RLS_BYPASS;\n"],"mappings":";;;;AA6DA,MAAa,aAAa,OAAO,IAAI,uBAAuB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require('../Construct-BXG8cFSm.cjs');
|
|
2
|
-
require('../Subscriber-
|
|
3
|
-
const require_SubscriberBuilder = require('../SubscriberBuilder-
|
|
2
|
+
require('../Subscriber-ClqSPbIZ.cjs');
|
|
3
|
+
const require_SubscriberBuilder = require('../SubscriberBuilder-BS5B_688.cjs');
|
|
4
4
|
|
|
5
5
|
exports.SubscriberBuilder = require_SubscriberBuilder.SubscriberBuilder;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../Construct-CQ9zV58W.mjs";
|
|
2
|
-
import "../Subscriber-
|
|
3
|
-
import { SubscriberBuilder } from "../SubscriberBuilder-
|
|
2
|
+
import "../Subscriber-DKQK5gLD.mjs";
|
|
3
|
+
import { SubscriberBuilder } from "../SubscriberBuilder-BswTuvUc.mjs";
|
|
4
4
|
|
|
5
5
|
export { SubscriberBuilder };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
require('../Construct-BXG8cFSm.cjs');
|
|
2
|
-
const require_Subscriber = require('../Subscriber-
|
|
3
|
-
const require_SubscriberBuilder = require('../SubscriberBuilder-
|
|
2
|
+
const require_Subscriber = require('../Subscriber-ClqSPbIZ.cjs');
|
|
3
|
+
const require_SubscriberBuilder = require('../SubscriberBuilder-BS5B_688.cjs');
|
|
4
4
|
|
|
5
5
|
//#region src/subscribers/index.ts
|
|
6
6
|
const s = new require_SubscriberBuilder.SubscriberBuilder();
|
|
@@ -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_logger7 from "@geekmidas/logger";
|
|
5
5
|
|
|
6
6
|
//#region src/subscribers/index.d.ts
|
|
7
|
-
declare const s: SubscriberBuilder<[],
|
|
7
|
+
declare const s: SubscriberBuilder<[], _geekmidas_logger7.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_logger7 from "@geekmidas/logger";
|
|
5
5
|
|
|
6
6
|
//#region src/subscribers/index.d.ts
|
|
7
|
-
declare const s: SubscriberBuilder<[],
|
|
7
|
+
declare const s: SubscriberBuilder<[], _geekmidas_logger7.Logger, undefined, undefined, string, []>;
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
9
9
|
|
|
10
10
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../Construct-CQ9zV58W.mjs";
|
|
2
|
-
import { Subscriber } from "../Subscriber-
|
|
3
|
-
import { SubscriberBuilder } from "../SubscriberBuilder-
|
|
2
|
+
import { Subscriber } from "../Subscriber-DKQK5gLD.mjs";
|
|
3
|
+
import { SubscriberBuilder } from "../SubscriberBuilder-BswTuvUc.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/subscribers/index.ts
|
|
6
6
|
const s = new SubscriberBuilder();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geekmidas/constructs",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
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.0",
|
|
84
84
|
"@geekmidas/cache": "^1.1.0",
|
|
85
|
+
"@geekmidas/db": "^1.0.1",
|
|
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
89
|
"@geekmidas/schema": "^1.0.0",
|
|
90
|
+
"@geekmidas/services": "^1.0.1",
|
|
89
91
|
"@geekmidas/rate-limit": "^2.0.0",
|
|
90
|
-
"@geekmidas/
|
|
91
|
-
"@geekmidas/
|
|
92
|
+
"@geekmidas/events": "^1.1.0",
|
|
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",
|
|
102
|
-
"@geekmidas/events": "^1.1.0",
|
|
101
|
+
"@geekmidas/db": "^1.0.1",
|
|
102
|
+
"@geekmidas/envkit": "^1.0.4",
|
|
103
103
|
"@geekmidas/logger": "^1.0.0",
|
|
104
|
-
"@geekmidas/
|
|
104
|
+
"@geekmidas/events": "^1.1.0",
|
|
105
|
+
"@geekmidas/errors": "^1.0.0",
|
|
105
106
|
"@geekmidas/schema": "^1.0.0",
|
|
106
|
-
"@geekmidas/services": "^1.0.1"
|
|
107
|
+
"@geekmidas/services": "^1.0.1",
|
|
108
|
+
"@geekmidas/rate-limit": "^2.0.0"
|
|
107
109
|
},
|
|
108
110
|
"peerDependenciesMeta": {
|
|
109
111
|
"@geekmidas/audit": {
|