@geekmidas/constructs 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{HonoEndpointAdaptor-C10W7xCf.d.mts → HonoEndpointAdaptor-Dv1q4Lzj.d.mts} +3 -3
- package/dist/{HonoEndpointAdaptor-BusUWu1w.d.cts → HonoEndpointAdaptor-UHqi6p4T.d.cts} +3 -3
- package/dist/adaptors/aws.d.cts +1 -1
- package/dist/adaptors/aws.d.mts +1 -1
- package/dist/adaptors/hono.d.cts +2 -2
- package/dist/adaptors/hono.d.mts +2 -2
- package/dist/adaptors/testing.d.cts +1 -1
- package/dist/adaptors/testing.d.mts +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 +1 -1
- package/dist/crons/index.d.mts +1 -1
- package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.d.cts +1 -1
- package/dist/endpoints/AmazonApiGatewayEndpointAdaptor.d.mts +1 -1
- package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.d.cts +1 -1
- package/dist/endpoints/AmazonApiGatewayV1EndpointAdaptor.d.mts +1 -1
- package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.d.cts +1 -1
- package/dist/endpoints/AmazonApiGatewayV2EndpointAdaptor.d.mts +1 -1
- package/dist/endpoints/Endpoint.d.cts +1 -1
- package/dist/endpoints/Endpoint.d.mts +1 -1
- package/dist/endpoints/EndpointBuilder.d.cts +1 -1
- package/dist/endpoints/EndpointBuilder.d.mts +1 -1
- package/dist/endpoints/EndpointFactory.d.cts +1 -1
- package/dist/endpoints/EndpointFactory.d.mts +1 -1
- package/dist/endpoints/HonoEndpointAdaptor.d.cts +2 -2
- package/dist/endpoints/HonoEndpointAdaptor.d.mts +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.d.cts +1 -1
- package/dist/endpoints/index.d.mts +3 -3
- package/dist/endpoints/processAudits.d.cts +1 -1
- package/dist/endpoints/processAudits.d.mts +1 -1
- package/dist/endpoints/rls.d.cts +1 -1
- package/dist/endpoints/rls.d.mts +1 -1
- package/dist/functions/index.d.cts +1 -1
- package/dist/functions/index.d.mts +1 -1
- package/dist/{index-BtVKIOXm.d.mts → index-Ca9beiFL.d.cts} +2 -2
- package/dist/{index-CqH4_Ieb.d.cts → index-CnVnNkEo.d.mts} +2 -2
- package/dist/subscribers/index.d.cts +2 -2
- package/dist/subscribers/index.d.mts +2 -2
- package/package.json +5 -5
- package/src/endpoints/__tests__/HonoEndpointAdaptor.kysely-audit.integration.spec.ts +37 -33
|
@@ -7,7 +7,7 @@ import { EnvironmentParser } from "@geekmidas/envkit";
|
|
|
7
7
|
import { EventPublisher } from "@geekmidas/events";
|
|
8
8
|
import { Logger } from "@geekmidas/logger";
|
|
9
9
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
10
|
-
import * as
|
|
10
|
+
import * as hono_types9 from "hono/types";
|
|
11
11
|
|
|
12
12
|
//#region src/endpoints/HonoEndpointAdaptor.d.ts
|
|
13
13
|
interface HonoEndpointOptions {
|
|
@@ -33,11 +33,11 @@ declare class HonoEndpoint<TRoute extends string, TMethod extends HttpMethod, TI
|
|
|
33
33
|
static validate<T extends StandardSchemaV1>(c: Context<any, string, {}>, data: unknown, schema?: T): Promise<any>;
|
|
34
34
|
addRoute(serviceDiscovery: ServiceDiscovery<ServiceRecord<TServices>, TLogger>, app: Hono): void;
|
|
35
35
|
static applyEventMiddleware(app: Hono, serviceDiscovery: ServiceDiscovery<any, any>): void;
|
|
36
|
-
static fromRoutes<TLogger extends Logger, TServices extends Service[]>(routes: string[], envParser: EnvironmentParser<{}>, app: Hono<
|
|
36
|
+
static fromRoutes<TLogger extends Logger, TServices extends Service[]>(routes: string[], envParser: EnvironmentParser<{}>, app: Hono<hono_types9.BlankEnv, hono_types9.BlankSchema, "/">, logger: TLogger, cwd?: string, options?: HonoEndpointOptions): Promise<Hono>;
|
|
37
37
|
static addRoutes<TServices extends Service[] = [], TLogger extends Logger = Logger>(endpoints: Endpoint<string, HttpMethod, any, any, TServices, TLogger>[], serviceDiscovery: ServiceDiscovery<ServiceRecord<TServices>, TLogger>, app: Hono, options?: HonoEndpointOptions): void;
|
|
38
38
|
static addRoute<TRoute extends string, TMethod extends HttpMethod, TInput extends EndpointSchemas = {}, TOutSchema extends StandardSchemaV1 | undefined = undefined, TServices extends Service[] = [], TLogger extends Logger = Logger, TSession = unknown, TEventPublisher extends EventPublisher<any> | undefined = undefined, TEventPublisherServiceName extends string = string, 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<TRoute, TMethod, TInput, TOutSchema, TServices, TLogger, TSession, TEventPublisher, TEventPublisherServiceName, TAuditStorage, TAuditStorageServiceName, TAuditAction, TDatabase, TDatabaseServiceName>, serviceDiscovery: ServiceDiscovery<ServiceRecord<TServices>, TLogger>, app: Hono): void;
|
|
39
39
|
static addDocsRoute<TServices extends Service[] = [], TLogger extends Logger = Logger>(endpoints: Endpoint<string, HttpMethod, any, any, TServices, TLogger>[], app: Hono, docsPath: string, openApiOptions?: HonoEndpointOptions['openApiOptions']): void;
|
|
40
40
|
}
|
|
41
41
|
//#endregion
|
|
42
42
|
export { HonoEndpoint, HonoEndpointOptions };
|
|
43
|
-
//# sourceMappingURL=HonoEndpointAdaptor-
|
|
43
|
+
//# sourceMappingURL=HonoEndpointAdaptor-Dv1q4Lzj.d.mts.map
|
|
@@ -6,7 +6,7 @@ import { Logger } from "@geekmidas/logger";
|
|
|
6
6
|
import { Service, ServiceDiscovery, ServiceRecord } from "@geekmidas/services";
|
|
7
7
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
8
8
|
import { EnvironmentParser } from "@geekmidas/envkit";
|
|
9
|
-
import * as
|
|
9
|
+
import * as hono_types5 from "hono/types";
|
|
10
10
|
import { Context, Hono } from "hono";
|
|
11
11
|
|
|
12
12
|
//#region src/endpoints/HonoEndpointAdaptor.d.ts
|
|
@@ -33,11 +33,11 @@ declare class HonoEndpoint<TRoute extends string, TMethod extends HttpMethod, TI
|
|
|
33
33
|
static validate<T extends StandardSchemaV1>(c: Context<any, string, {}>, data: unknown, schema?: T): Promise<any>;
|
|
34
34
|
addRoute(serviceDiscovery: ServiceDiscovery<ServiceRecord<TServices>, TLogger>, app: Hono): void;
|
|
35
35
|
static applyEventMiddleware(app: Hono, serviceDiscovery: ServiceDiscovery<any, any>): void;
|
|
36
|
-
static fromRoutes<TLogger extends Logger, TServices extends Service[]>(routes: string[], envParser: EnvironmentParser<{}>, app: Hono<
|
|
36
|
+
static fromRoutes<TLogger extends Logger, TServices extends Service[]>(routes: string[], envParser: EnvironmentParser<{}>, app: Hono<hono_types5.BlankEnv, hono_types5.BlankSchema, "/">, logger: TLogger, cwd?: string, options?: HonoEndpointOptions): Promise<Hono>;
|
|
37
37
|
static addRoutes<TServices extends Service[] = [], TLogger extends Logger = Logger>(endpoints: Endpoint<string, HttpMethod, any, any, TServices, TLogger>[], serviceDiscovery: ServiceDiscovery<ServiceRecord<TServices>, TLogger>, app: Hono, options?: HonoEndpointOptions): void;
|
|
38
38
|
static addRoute<TRoute extends string, TMethod extends HttpMethod, TInput extends EndpointSchemas = {}, TOutSchema extends StandardSchemaV1 | undefined = undefined, TServices extends Service[] = [], TLogger extends Logger = Logger, TSession = unknown, TEventPublisher extends EventPublisher<any> | undefined = undefined, TEventPublisherServiceName extends string = string, 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<TRoute, TMethod, TInput, TOutSchema, TServices, TLogger, TSession, TEventPublisher, TEventPublisherServiceName, TAuditStorage, TAuditStorageServiceName, TAuditAction, TDatabase, TDatabaseServiceName>, serviceDiscovery: ServiceDiscovery<ServiceRecord<TServices>, TLogger>, app: Hono): void;
|
|
39
39
|
static addDocsRoute<TServices extends Service[] = [], TLogger extends Logger = Logger>(endpoints: Endpoint<string, HttpMethod, any, any, TServices, TLogger>[], app: Hono, docsPath: string, openApiOptions?: HonoEndpointOptions['openApiOptions']): void;
|
|
40
40
|
}
|
|
41
41
|
//#endregion
|
|
42
42
|
export { HonoEndpoint, HonoEndpointOptions };
|
|
43
|
-
//# sourceMappingURL=HonoEndpointAdaptor-
|
|
43
|
+
//# sourceMappingURL=HonoEndpointAdaptor-UHqi6p4T.d.cts.map
|
package/dist/adaptors/aws.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import "../types-Bp9ysFXd.cjs";
|
|
|
3
3
|
import "../Function-DHD1V9QW.cjs";
|
|
4
4
|
import "../BaseFunctionBuilder-DaQA0uKE.cjs";
|
|
5
5
|
import "../FunctionBuilder-FV6r3I7X.cjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-Ca9beiFL.cjs";
|
|
7
7
|
import "../Authorizer-CpSUMTIs.cjs";
|
|
8
8
|
import "../Endpoint-CC2RGjkl.cjs";
|
|
9
9
|
import "../AmazonApiGatewayEndpointAdaptor-CbJqLU6I.cjs";
|
package/dist/adaptors/aws.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import "../types-CScirkHt.mjs";
|
|
|
3
3
|
import "../Function-Vh1t-Qjj.mjs";
|
|
4
4
|
import "../BaseFunctionBuilder-CoV7J45W.mjs";
|
|
5
5
|
import "../FunctionBuilder-3jsoFffg.mjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-CnVnNkEo.mjs";
|
|
7
7
|
import "../Authorizer-Cpx59w_q.mjs";
|
|
8
8
|
import "../Endpoint-C5djXyae.mjs";
|
|
9
9
|
import "../AmazonApiGatewayEndpointAdaptor-DC3N7zY_.mjs";
|
package/dist/adaptors/hono.d.cts
CHANGED
|
@@ -3,8 +3,8 @@ import "../types-Bp9ysFXd.cjs";
|
|
|
3
3
|
import "../Function-DHD1V9QW.cjs";
|
|
4
4
|
import "../BaseFunctionBuilder-DaQA0uKE.cjs";
|
|
5
5
|
import "../FunctionBuilder-FV6r3I7X.cjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-Ca9beiFL.cjs";
|
|
7
7
|
import "../Authorizer-CpSUMTIs.cjs";
|
|
8
8
|
import "../Endpoint-CC2RGjkl.cjs";
|
|
9
|
-
import { HonoEndpoint } from "../HonoEndpointAdaptor-
|
|
9
|
+
import { HonoEndpoint } from "../HonoEndpointAdaptor-UHqi6p4T.cjs";
|
|
10
10
|
export { HonoEndpoint };
|
package/dist/adaptors/hono.d.mts
CHANGED
|
@@ -3,8 +3,8 @@ import "../types-CScirkHt.mjs";
|
|
|
3
3
|
import "../Function-Vh1t-Qjj.mjs";
|
|
4
4
|
import "../BaseFunctionBuilder-CoV7J45W.mjs";
|
|
5
5
|
import "../FunctionBuilder-3jsoFffg.mjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-CnVnNkEo.mjs";
|
|
7
7
|
import "../Authorizer-Cpx59w_q.mjs";
|
|
8
8
|
import "../Endpoint-C5djXyae.mjs";
|
|
9
|
-
import { HonoEndpoint } from "../HonoEndpointAdaptor-
|
|
9
|
+
import { HonoEndpoint } from "../HonoEndpointAdaptor-Dv1q4Lzj.mjs";
|
|
10
10
|
export { HonoEndpoint };
|
|
@@ -3,7 +3,7 @@ import "../types-Bp9ysFXd.cjs";
|
|
|
3
3
|
import "../Function-DHD1V9QW.cjs";
|
|
4
4
|
import "../BaseFunctionBuilder-DaQA0uKE.cjs";
|
|
5
5
|
import "../FunctionBuilder-FV6r3I7X.cjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-Ca9beiFL.cjs";
|
|
7
7
|
import "../Authorizer-CpSUMTIs.cjs";
|
|
8
8
|
import "../Endpoint-CC2RGjkl.cjs";
|
|
9
9
|
import { TestEndpointAdaptor } from "../TestEndpointAdaptor-Bm0UjDtV.cjs";
|
|
@@ -3,7 +3,7 @@ import "../types-CScirkHt.mjs";
|
|
|
3
3
|
import "../Function-Vh1t-Qjj.mjs";
|
|
4
4
|
import "../BaseFunctionBuilder-CoV7J45W.mjs";
|
|
5
5
|
import "../FunctionBuilder-3jsoFffg.mjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-CnVnNkEo.mjs";
|
|
7
7
|
import "../Authorizer-Cpx59w_q.mjs";
|
|
8
8
|
import "../Endpoint-C5djXyae.mjs";
|
|
9
9
|
import { TestEndpointAdaptor } from "../TestEndpointAdaptor-5-unBV8O.mjs";
|
package/dist/crons/Cron.d.cts
CHANGED
|
@@ -2,6 +2,6 @@ import "../Construct-Dkd8Kvc9.cjs";
|
|
|
2
2
|
import "../Function-DHD1V9QW.cjs";
|
|
3
3
|
import "../BaseFunctionBuilder-DaQA0uKE.cjs";
|
|
4
4
|
import "../FunctionBuilder-FV6r3I7X.cjs";
|
|
5
|
-
import "../index-
|
|
5
|
+
import "../index-Ca9beiFL.cjs";
|
|
6
6
|
import { Cron, CronExpression, RateExpression, ScheduleExpression } from "../Cron-7VPR2cNR.cjs";
|
|
7
7
|
export { Cron, CronExpression, RateExpression, ScheduleExpression };
|
package/dist/crons/Cron.d.mts
CHANGED
|
@@ -2,6 +2,6 @@ import "../Construct-jBKqb-Zi.mjs";
|
|
|
2
2
|
import "../Function-Vh1t-Qjj.mjs";
|
|
3
3
|
import "../BaseFunctionBuilder-CoV7J45W.mjs";
|
|
4
4
|
import "../FunctionBuilder-3jsoFffg.mjs";
|
|
5
|
-
import "../index-
|
|
5
|
+
import "../index-CnVnNkEo.mjs";
|
|
6
6
|
import { Cron, CronExpression, RateExpression, ScheduleExpression } from "../Cron-JZkp_fHy.mjs";
|
|
7
7
|
export { Cron, CronExpression, RateExpression, ScheduleExpression };
|
|
@@ -2,7 +2,7 @@ import "../Construct-Dkd8Kvc9.cjs";
|
|
|
2
2
|
import "../Function-DHD1V9QW.cjs";
|
|
3
3
|
import "../BaseFunctionBuilder-DaQA0uKE.cjs";
|
|
4
4
|
import "../FunctionBuilder-FV6r3I7X.cjs";
|
|
5
|
-
import "../index-
|
|
5
|
+
import "../index-Ca9beiFL.cjs";
|
|
6
6
|
import "../Cron-7VPR2cNR.cjs";
|
|
7
7
|
import { CronBuilder } from "../CronBuilder-290th4zF.cjs";
|
|
8
8
|
export { CronBuilder };
|
|
@@ -2,7 +2,7 @@ import "../Construct-jBKqb-Zi.mjs";
|
|
|
2
2
|
import "../Function-Vh1t-Qjj.mjs";
|
|
3
3
|
import "../BaseFunctionBuilder-CoV7J45W.mjs";
|
|
4
4
|
import "../FunctionBuilder-3jsoFffg.mjs";
|
|
5
|
-
import "../index-
|
|
5
|
+
import "../index-CnVnNkEo.mjs";
|
|
6
6
|
import "../Cron-JZkp_fHy.mjs";
|
|
7
7
|
import { CronBuilder } from "../CronBuilder-BmFDO0Dm.mjs";
|
|
8
8
|
export { CronBuilder };
|
package/dist/crons/index.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import "../Construct-Dkd8Kvc9.cjs";
|
|
|
2
2
|
import "../Function-DHD1V9QW.cjs";
|
|
3
3
|
import "../BaseFunctionBuilder-DaQA0uKE.cjs";
|
|
4
4
|
import "../FunctionBuilder-FV6r3I7X.cjs";
|
|
5
|
-
import "../index-
|
|
5
|
+
import "../index-Ca9beiFL.cjs";
|
|
6
6
|
import { Cron, CronExpression, RateExpression, ScheduleExpression } from "../Cron-7VPR2cNR.cjs";
|
|
7
7
|
import { CronBuilder } from "../CronBuilder-290th4zF.cjs";
|
|
8
8
|
import * as _geekmidas_logger4 from "@geekmidas/logger";
|
package/dist/crons/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import "../Construct-jBKqb-Zi.mjs";
|
|
|
2
2
|
import "../Function-Vh1t-Qjj.mjs";
|
|
3
3
|
import "../BaseFunctionBuilder-CoV7J45W.mjs";
|
|
4
4
|
import "../FunctionBuilder-3jsoFffg.mjs";
|
|
5
|
-
import "../index-
|
|
5
|
+
import "../index-CnVnNkEo.mjs";
|
|
6
6
|
import { Cron, CronExpression, RateExpression, ScheduleExpression } from "../Cron-JZkp_fHy.mjs";
|
|
7
7
|
import { CronBuilder } from "../CronBuilder-BmFDO0Dm.mjs";
|
|
8
8
|
import * as _geekmidas_services3 from "@geekmidas/services";
|
|
@@ -3,7 +3,7 @@ import "../types-Bp9ysFXd.cjs";
|
|
|
3
3
|
import "../Function-DHD1V9QW.cjs";
|
|
4
4
|
import "../BaseFunctionBuilder-DaQA0uKE.cjs";
|
|
5
5
|
import "../FunctionBuilder-FV6r3I7X.cjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-Ca9beiFL.cjs";
|
|
7
7
|
import "../Authorizer-CpSUMTIs.cjs";
|
|
8
8
|
import "../Endpoint-CC2RGjkl.cjs";
|
|
9
9
|
import { AmazonApiGatewayEndpoint, AmazonApiGatewayEndpointHandlerResponse, AmazonApiGatewayV1EndpointHandler, AmazonApiGatewayV2EndpointHandler, Event, GetInputResponse, HandlerEvent, LoggerContext } from "../AmazonApiGatewayEndpointAdaptor-CbJqLU6I.cjs";
|
|
@@ -3,7 +3,7 @@ import "../types-CScirkHt.mjs";
|
|
|
3
3
|
import "../Function-Vh1t-Qjj.mjs";
|
|
4
4
|
import "../BaseFunctionBuilder-CoV7J45W.mjs";
|
|
5
5
|
import "../FunctionBuilder-3jsoFffg.mjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-CnVnNkEo.mjs";
|
|
7
7
|
import "../Authorizer-Cpx59w_q.mjs";
|
|
8
8
|
import "../Endpoint-C5djXyae.mjs";
|
|
9
9
|
import { AmazonApiGatewayEndpoint, AmazonApiGatewayEndpointHandlerResponse, AmazonApiGatewayV1EndpointHandler, AmazonApiGatewayV2EndpointHandler, Event, GetInputResponse, HandlerEvent, LoggerContext } from "../AmazonApiGatewayEndpointAdaptor-DC3N7zY_.mjs";
|
|
@@ -3,7 +3,7 @@ import "../types-Bp9ysFXd.cjs";
|
|
|
3
3
|
import "../Function-DHD1V9QW.cjs";
|
|
4
4
|
import "../BaseFunctionBuilder-DaQA0uKE.cjs";
|
|
5
5
|
import "../FunctionBuilder-FV6r3I7X.cjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-Ca9beiFL.cjs";
|
|
7
7
|
import "../Authorizer-CpSUMTIs.cjs";
|
|
8
8
|
import "../Endpoint-CC2RGjkl.cjs";
|
|
9
9
|
import "../AmazonApiGatewayEndpointAdaptor-CbJqLU6I.cjs";
|
|
@@ -3,7 +3,7 @@ import "../types-CScirkHt.mjs";
|
|
|
3
3
|
import "../Function-Vh1t-Qjj.mjs";
|
|
4
4
|
import "../BaseFunctionBuilder-CoV7J45W.mjs";
|
|
5
5
|
import "../FunctionBuilder-3jsoFffg.mjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-CnVnNkEo.mjs";
|
|
7
7
|
import "../Authorizer-Cpx59w_q.mjs";
|
|
8
8
|
import "../Endpoint-C5djXyae.mjs";
|
|
9
9
|
import "../AmazonApiGatewayEndpointAdaptor-DC3N7zY_.mjs";
|
|
@@ -3,7 +3,7 @@ import "../types-Bp9ysFXd.cjs";
|
|
|
3
3
|
import "../Function-DHD1V9QW.cjs";
|
|
4
4
|
import "../BaseFunctionBuilder-DaQA0uKE.cjs";
|
|
5
5
|
import "../FunctionBuilder-FV6r3I7X.cjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-Ca9beiFL.cjs";
|
|
7
7
|
import "../Authorizer-CpSUMTIs.cjs";
|
|
8
8
|
import "../Endpoint-CC2RGjkl.cjs";
|
|
9
9
|
import "../AmazonApiGatewayEndpointAdaptor-CbJqLU6I.cjs";
|
|
@@ -3,7 +3,7 @@ import "../types-CScirkHt.mjs";
|
|
|
3
3
|
import "../Function-Vh1t-Qjj.mjs";
|
|
4
4
|
import "../BaseFunctionBuilder-CoV7J45W.mjs";
|
|
5
5
|
import "../FunctionBuilder-3jsoFffg.mjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-CnVnNkEo.mjs";
|
|
7
7
|
import "../Authorizer-Cpx59w_q.mjs";
|
|
8
8
|
import "../Endpoint-C5djXyae.mjs";
|
|
9
9
|
import "../AmazonApiGatewayEndpointAdaptor-DC3N7zY_.mjs";
|
|
@@ -3,7 +3,7 @@ import "../types-Bp9ysFXd.cjs";
|
|
|
3
3
|
import "../Function-DHD1V9QW.cjs";
|
|
4
4
|
import "../BaseFunctionBuilder-DaQA0uKE.cjs";
|
|
5
5
|
import "../FunctionBuilder-FV6r3I7X.cjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-Ca9beiFL.cjs";
|
|
7
7
|
import "../Authorizer-CpSUMTIs.cjs";
|
|
8
8
|
import { AuthorizeContext, AuthorizeFn, ConvertRouteParams, CookieFn, CookieOptions, Endpoint, EndpointContext, EndpointEvent, EndpointHandler, EndpointHeaders, EndpointInput, EndpointOpenApiSchema, EndpointOptions, EndpointOutput, EndpointSchemas, HeaderFn, MultiHeaderFn, ResponseBuilder, ResponseMetadata, ResponseWithMetadata, SessionContext, SessionFn, SingleHeaderFn, SuccessStatus } from "../Endpoint-CC2RGjkl.cjs";
|
|
9
9
|
export { AuthorizeContext, AuthorizeFn, ConvertRouteParams, CookieFn, CookieOptions, Endpoint, EndpointContext, EndpointEvent, EndpointHandler, EndpointHeaders, EndpointInput, EndpointOpenApiSchema, EndpointOptions, EndpointOutput, EndpointSchemas, HeaderFn, MultiHeaderFn, ResponseBuilder, ResponseMetadata, ResponseWithMetadata, SessionContext, SessionFn, SingleHeaderFn, SuccessStatus };
|
|
@@ -3,7 +3,7 @@ import "../types-CScirkHt.mjs";
|
|
|
3
3
|
import "../Function-Vh1t-Qjj.mjs";
|
|
4
4
|
import "../BaseFunctionBuilder-CoV7J45W.mjs";
|
|
5
5
|
import "../FunctionBuilder-3jsoFffg.mjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-CnVnNkEo.mjs";
|
|
7
7
|
import "../Authorizer-Cpx59w_q.mjs";
|
|
8
8
|
import { AuthorizeContext, AuthorizeFn, ConvertRouteParams, CookieFn, CookieOptions, Endpoint, EndpointContext, EndpointEvent, EndpointHandler, EndpointHeaders, EndpointInput, EndpointOpenApiSchema, EndpointOptions, EndpointOutput, EndpointSchemas, HeaderFn, MultiHeaderFn, ResponseBuilder, ResponseMetadata, ResponseWithMetadata, SessionContext, SessionFn, SingleHeaderFn, SuccessStatus } from "../Endpoint-C5djXyae.mjs";
|
|
9
9
|
export { AuthorizeContext, AuthorizeFn, ConvertRouteParams, CookieFn, CookieOptions, Endpoint, EndpointContext, EndpointEvent, EndpointHandler, EndpointHeaders, EndpointInput, EndpointOpenApiSchema, EndpointOptions, EndpointOutput, EndpointSchemas, HeaderFn, MultiHeaderFn, ResponseBuilder, ResponseMetadata, ResponseWithMetadata, SessionContext, SessionFn, SingleHeaderFn, SuccessStatus };
|
|
@@ -3,7 +3,7 @@ import "../types-Bp9ysFXd.cjs";
|
|
|
3
3
|
import "../Function-DHD1V9QW.cjs";
|
|
4
4
|
import "../BaseFunctionBuilder-DaQA0uKE.cjs";
|
|
5
5
|
import "../FunctionBuilder-FV6r3I7X.cjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-Ca9beiFL.cjs";
|
|
7
7
|
import "../Authorizer-CpSUMTIs.cjs";
|
|
8
8
|
import "../Endpoint-CC2RGjkl.cjs";
|
|
9
9
|
import { EndpointBuilder } from "../EndpointBuilder-vXk6eIJk.cjs";
|
|
@@ -3,7 +3,7 @@ import "../types-CScirkHt.mjs";
|
|
|
3
3
|
import "../Function-Vh1t-Qjj.mjs";
|
|
4
4
|
import "../BaseFunctionBuilder-CoV7J45W.mjs";
|
|
5
5
|
import "../FunctionBuilder-3jsoFffg.mjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-CnVnNkEo.mjs";
|
|
7
7
|
import "../Authorizer-Cpx59w_q.mjs";
|
|
8
8
|
import "../Endpoint-C5djXyae.mjs";
|
|
9
9
|
import { EndpointBuilder } from "../EndpointBuilder-CD8LkBda.mjs";
|
|
@@ -3,7 +3,7 @@ import "../types-Bp9ysFXd.cjs";
|
|
|
3
3
|
import "../Function-DHD1V9QW.cjs";
|
|
4
4
|
import "../BaseFunctionBuilder-DaQA0uKE.cjs";
|
|
5
5
|
import "../FunctionBuilder-FV6r3I7X.cjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-Ca9beiFL.cjs";
|
|
7
7
|
import "../Authorizer-CpSUMTIs.cjs";
|
|
8
8
|
import "../Endpoint-CC2RGjkl.cjs";
|
|
9
9
|
import "../EndpointBuilder-vXk6eIJk.cjs";
|
|
@@ -3,7 +3,7 @@ import "../types-CScirkHt.mjs";
|
|
|
3
3
|
import "../Function-Vh1t-Qjj.mjs";
|
|
4
4
|
import "../BaseFunctionBuilder-CoV7J45W.mjs";
|
|
5
5
|
import "../FunctionBuilder-3jsoFffg.mjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-CnVnNkEo.mjs";
|
|
7
7
|
import "../Authorizer-Cpx59w_q.mjs";
|
|
8
8
|
import "../Endpoint-C5djXyae.mjs";
|
|
9
9
|
import "../EndpointBuilder-CD8LkBda.mjs";
|
|
@@ -3,8 +3,8 @@ import "../types-Bp9ysFXd.cjs";
|
|
|
3
3
|
import "../Function-DHD1V9QW.cjs";
|
|
4
4
|
import "../BaseFunctionBuilder-DaQA0uKE.cjs";
|
|
5
5
|
import "../FunctionBuilder-FV6r3I7X.cjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-Ca9beiFL.cjs";
|
|
7
7
|
import "../Authorizer-CpSUMTIs.cjs";
|
|
8
8
|
import "../Endpoint-CC2RGjkl.cjs";
|
|
9
|
-
import { HonoEndpoint, HonoEndpointOptions } from "../HonoEndpointAdaptor-
|
|
9
|
+
import { HonoEndpoint, HonoEndpointOptions } from "../HonoEndpointAdaptor-UHqi6p4T.cjs";
|
|
10
10
|
export { HonoEndpoint, HonoEndpointOptions };
|
|
@@ -3,8 +3,8 @@ import "../types-CScirkHt.mjs";
|
|
|
3
3
|
import "../Function-Vh1t-Qjj.mjs";
|
|
4
4
|
import "../BaseFunctionBuilder-CoV7J45W.mjs";
|
|
5
5
|
import "../FunctionBuilder-3jsoFffg.mjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-CnVnNkEo.mjs";
|
|
7
7
|
import "../Authorizer-Cpx59w_q.mjs";
|
|
8
8
|
import "../Endpoint-C5djXyae.mjs";
|
|
9
|
-
import { HonoEndpoint, HonoEndpointOptions } from "../HonoEndpointAdaptor-
|
|
9
|
+
import { HonoEndpoint, HonoEndpointOptions } from "../HonoEndpointAdaptor-Dv1q4Lzj.mjs";
|
|
10
10
|
export { HonoEndpoint, HonoEndpointOptions };
|
|
@@ -3,7 +3,7 @@ import "../types-Bp9ysFXd.cjs";
|
|
|
3
3
|
import "../Function-DHD1V9QW.cjs";
|
|
4
4
|
import "../BaseFunctionBuilder-DaQA0uKE.cjs";
|
|
5
5
|
import "../FunctionBuilder-FV6r3I7X.cjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-Ca9beiFL.cjs";
|
|
7
7
|
import "../Authorizer-CpSUMTIs.cjs";
|
|
8
8
|
import "../Endpoint-CC2RGjkl.cjs";
|
|
9
9
|
import { TestEndpointAdaptor, TestHttpResponse, TestRequestAdaptor } from "../TestEndpointAdaptor-Bm0UjDtV.cjs";
|
|
@@ -3,7 +3,7 @@ import "../types-CScirkHt.mjs";
|
|
|
3
3
|
import "../Function-Vh1t-Qjj.mjs";
|
|
4
4
|
import "../BaseFunctionBuilder-CoV7J45W.mjs";
|
|
5
5
|
import "../FunctionBuilder-3jsoFffg.mjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-CnVnNkEo.mjs";
|
|
7
7
|
import "../Authorizer-Cpx59w_q.mjs";
|
|
8
8
|
import "../Endpoint-C5djXyae.mjs";
|
|
9
9
|
import { TestEndpointAdaptor, TestHttpResponse, TestRequestAdaptor } from "../TestEndpointAdaptor-5-unBV8O.mjs";
|
|
@@ -3,7 +3,7 @@ import "../types-Bp9ysFXd.cjs";
|
|
|
3
3
|
import "../Function-DHD1V9QW.cjs";
|
|
4
4
|
import "../BaseFunctionBuilder-DaQA0uKE.cjs";
|
|
5
5
|
import "../FunctionBuilder-FV6r3I7X.cjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-Ca9beiFL.cjs";
|
|
7
7
|
import "../Authorizer-CpSUMTIs.cjs";
|
|
8
8
|
import { ActorExtractor, EndpointAuditorConfig, MappedAudit } from "../Endpoint-CC2RGjkl.cjs";
|
|
9
9
|
export { ActorExtractor, EndpointAuditorConfig, MappedAudit };
|
|
@@ -3,7 +3,7 @@ import "../types-CScirkHt.mjs";
|
|
|
3
3
|
import "../Function-Vh1t-Qjj.mjs";
|
|
4
4
|
import "../BaseFunctionBuilder-CoV7J45W.mjs";
|
|
5
5
|
import "../FunctionBuilder-3jsoFffg.mjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-CnVnNkEo.mjs";
|
|
7
7
|
import "../Authorizer-Cpx59w_q.mjs";
|
|
8
8
|
import { ActorExtractor, EndpointAuditorConfig, MappedAudit } from "../Endpoint-C5djXyae.mjs";
|
|
9
9
|
export { ActorExtractor, EndpointAuditorConfig, MappedAudit };
|
|
@@ -3,7 +3,7 @@ import { HttpMethod } from "../types-Bp9ysFXd.cjs";
|
|
|
3
3
|
import "../Function-DHD1V9QW.cjs";
|
|
4
4
|
import "../BaseFunctionBuilder-DaQA0uKE.cjs";
|
|
5
5
|
import "../FunctionBuilder-FV6r3I7X.cjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-Ca9beiFL.cjs";
|
|
7
7
|
import "../Authorizer-CpSUMTIs.cjs";
|
|
8
8
|
import { Endpoint } from "../Endpoint-CC2RGjkl.cjs";
|
|
9
9
|
import { Service } from "@geekmidas/services";
|
|
@@ -3,7 +3,7 @@ import { HttpMethod } from "../types-CScirkHt.mjs";
|
|
|
3
3
|
import "../Function-Vh1t-Qjj.mjs";
|
|
4
4
|
import "../BaseFunctionBuilder-CoV7J45W.mjs";
|
|
5
5
|
import "../FunctionBuilder-3jsoFffg.mjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-CnVnNkEo.mjs";
|
|
7
7
|
import "../Authorizer-Cpx59w_q.mjs";
|
|
8
8
|
import { Endpoint } from "../Endpoint-C5djXyae.mjs";
|
|
9
9
|
import { Service } from "@geekmidas/services";
|
|
@@ -3,7 +3,7 @@ import "../types-Bp9ysFXd.cjs";
|
|
|
3
3
|
import "../Function-DHD1V9QW.cjs";
|
|
4
4
|
import "../BaseFunctionBuilder-DaQA0uKE.cjs";
|
|
5
5
|
import "../FunctionBuilder-FV6r3I7X.cjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-Ca9beiFL.cjs";
|
|
7
7
|
import { SecurityScheme } from "../Authorizer-CpSUMTIs.cjs";
|
|
8
8
|
import { ActorExtractor, Endpoint, EndpointContext, EndpointHandler, EndpointOutput, EndpointSchemas, MappedAudit, RLS_BYPASS, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor } from "../Endpoint-CC2RGjkl.cjs";
|
|
9
9
|
import { EndpointBuilder } from "../EndpointBuilder-vXk6eIJk.cjs";
|
|
@@ -3,15 +3,15 @@ import "../types-CScirkHt.mjs";
|
|
|
3
3
|
import "../Function-Vh1t-Qjj.mjs";
|
|
4
4
|
import "../BaseFunctionBuilder-CoV7J45W.mjs";
|
|
5
5
|
import "../FunctionBuilder-3jsoFffg.mjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-CnVnNkEo.mjs";
|
|
7
7
|
import { SecurityScheme } from "../Authorizer-Cpx59w_q.mjs";
|
|
8
8
|
import { ActorExtractor, Endpoint, EndpointContext, EndpointHandler, EndpointOutput, EndpointSchemas, MappedAudit, RLS_BYPASS, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor } from "../Endpoint-C5djXyae.mjs";
|
|
9
9
|
import { EndpointBuilder } from "../EndpointBuilder-CD8LkBda.mjs";
|
|
10
10
|
import { EndpointFactory } from "../EndpointFactory-DaFR9LQG.mjs";
|
|
11
|
-
import * as
|
|
11
|
+
import * as _geekmidas_logger0 from "@geekmidas/logger";
|
|
12
12
|
|
|
13
13
|
//#region src/endpoints/index.d.ts
|
|
14
|
-
declare const e: EndpointFactory<[], "",
|
|
14
|
+
declare const e: EndpointFactory<[], "", _geekmidas_logger0.Logger, unknown, undefined, string, readonly string[], undefined, string, never, undefined, string, Record<string, SecurityScheme>, undefined>;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { ActorExtractor, Endpoint, EndpointBuilder, EndpointContext, EndpointFactory, EndpointHandler, EndpointOutput, EndpointSchemas, MappedAudit, RLS_BYPASS, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor, e };
|
|
17
17
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -3,7 +3,7 @@ import "../types-Bp9ysFXd.cjs";
|
|
|
3
3
|
import "../Function-DHD1V9QW.cjs";
|
|
4
4
|
import "../BaseFunctionBuilder-DaQA0uKE.cjs";
|
|
5
5
|
import "../FunctionBuilder-FV6r3I7X.cjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-Ca9beiFL.cjs";
|
|
7
7
|
import "../Authorizer-CpSUMTIs.cjs";
|
|
8
8
|
import { CookieFn, Endpoint, HeaderFn } from "../Endpoint-CC2RGjkl.cjs";
|
|
9
9
|
import { AuditStorage, AuditableAction, Auditor } from "@geekmidas/audit";
|
|
@@ -3,7 +3,7 @@ import "../types-CScirkHt.mjs";
|
|
|
3
3
|
import "../Function-Vh1t-Qjj.mjs";
|
|
4
4
|
import "../BaseFunctionBuilder-CoV7J45W.mjs";
|
|
5
5
|
import "../FunctionBuilder-3jsoFffg.mjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-CnVnNkEo.mjs";
|
|
7
7
|
import "../Authorizer-Cpx59w_q.mjs";
|
|
8
8
|
import { CookieFn, Endpoint, HeaderFn } from "../Endpoint-C5djXyae.mjs";
|
|
9
9
|
import { Service, ServiceDiscovery } from "@geekmidas/services";
|
package/dist/endpoints/rls.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import "../types-Bp9ysFXd.cjs";
|
|
|
3
3
|
import "../Function-DHD1V9QW.cjs";
|
|
4
4
|
import "../BaseFunctionBuilder-DaQA0uKE.cjs";
|
|
5
5
|
import "../FunctionBuilder-FV6r3I7X.cjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-Ca9beiFL.cjs";
|
|
7
7
|
import "../Authorizer-CpSUMTIs.cjs";
|
|
8
8
|
import { RLS_BYPASS, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor } from "../Endpoint-CC2RGjkl.cjs";
|
|
9
9
|
export { RLS_BYPASS, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor };
|
package/dist/endpoints/rls.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import "../types-CScirkHt.mjs";
|
|
|
3
3
|
import "../Function-Vh1t-Qjj.mjs";
|
|
4
4
|
import "../BaseFunctionBuilder-CoV7J45W.mjs";
|
|
5
5
|
import "../FunctionBuilder-3jsoFffg.mjs";
|
|
6
|
-
import "../index-
|
|
6
|
+
import "../index-CnVnNkEo.mjs";
|
|
7
7
|
import "../Authorizer-Cpx59w_q.mjs";
|
|
8
8
|
import { RLS_BYPASS, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor } from "../Endpoint-C5djXyae.mjs";
|
|
9
9
|
export { RLS_BYPASS, RlsBypass, RlsConfig, RlsContext, RlsContextExtractor };
|
|
@@ -2,5 +2,5 @@ import "../Construct-Dkd8Kvc9.cjs";
|
|
|
2
2
|
import { Function, FunctionContext, FunctionHandler } from "../Function-DHD1V9QW.cjs";
|
|
3
3
|
import { BaseFunctionBuilder } from "../BaseFunctionBuilder-DaQA0uKE.cjs";
|
|
4
4
|
import { FunctionBuilder } from "../FunctionBuilder-FV6r3I7X.cjs";
|
|
5
|
-
import { f } from "../index-
|
|
5
|
+
import { f } from "../index-Ca9beiFL.cjs";
|
|
6
6
|
export { BaseFunctionBuilder, Function, FunctionBuilder, FunctionContext, FunctionHandler, f };
|
|
@@ -2,5 +2,5 @@ import "../Construct-jBKqb-Zi.mjs";
|
|
|
2
2
|
import { Function, FunctionContext, FunctionHandler } from "../Function-Vh1t-Qjj.mjs";
|
|
3
3
|
import { BaseFunctionBuilder } from "../BaseFunctionBuilder-CoV7J45W.mjs";
|
|
4
4
|
import { FunctionBuilder } from "../FunctionBuilder-3jsoFffg.mjs";
|
|
5
|
-
import { f } from "../index-
|
|
5
|
+
import { f } from "../index-CnVnNkEo.mjs";
|
|
6
6
|
export { BaseFunctionBuilder, Function, FunctionBuilder, FunctionContext, FunctionHandler, f };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FunctionBuilder } from "./FunctionBuilder-
|
|
1
|
+
import { FunctionBuilder } from "./FunctionBuilder-FV6r3I7X.cjs";
|
|
2
2
|
import * as _geekmidas_audit10 from "@geekmidas/audit";
|
|
3
3
|
import * as _geekmidas_logger9 from "@geekmidas/logger";
|
|
4
4
|
import * as _geekmidas_schema8 from "@geekmidas/schema";
|
|
@@ -7,4 +7,4 @@ import * as _geekmidas_schema8 from "@geekmidas/schema";
|
|
|
7
7
|
declare const f: FunctionBuilder<_geekmidas_schema8.ComposableStandardSchema, undefined, [], _geekmidas_logger9.Logger, undefined, string, undefined, string, undefined, string, _geekmidas_audit10.AuditableAction<string, unknown>>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { f };
|
|
10
|
-
//# sourceMappingURL=index-
|
|
10
|
+
//# sourceMappingURL=index-Ca9beiFL.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FunctionBuilder } from "./FunctionBuilder-
|
|
1
|
+
import { FunctionBuilder } from "./FunctionBuilder-3jsoFffg.mjs";
|
|
2
2
|
import * as _geekmidas_audit7 from "@geekmidas/audit";
|
|
3
3
|
import * as _geekmidas_logger6 from "@geekmidas/logger";
|
|
4
4
|
import * as _geekmidas_schema5 from "@geekmidas/schema";
|
|
@@ -7,4 +7,4 @@ import * as _geekmidas_schema5 from "@geekmidas/schema";
|
|
|
7
7
|
declare const f: FunctionBuilder<_geekmidas_schema5.ComposableStandardSchema, undefined, [], _geekmidas_logger6.Logger, undefined, string, undefined, string, undefined, string, _geekmidas_audit7.AuditableAction<string, unknown>>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { f };
|
|
10
|
-
//# sourceMappingURL=index-
|
|
10
|
+
//# sourceMappingURL=index-CnVnNkEo.d.mts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../Construct-Dkd8Kvc9.cjs";
|
|
2
2
|
import { Subscriber } from "../Subscriber-DMSzvO_J.cjs";
|
|
3
3
|
import { SubscriberBuilder } from "../SubscriberBuilder-BxJM3Hz_.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
|
//#endregion
|
|
9
9
|
export { Subscriber, SubscriberBuilder, s };
|
|
10
10
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../Construct-jBKqb-Zi.mjs";
|
|
2
2
|
import { Subscriber } from "../Subscriber-aNr1qkxR.mjs";
|
|
3
3
|
import { SubscriberBuilder } from "../SubscriberBuilder-CWS4tdbp.mjs";
|
|
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
|
//#endregion
|
|
9
9
|
export { Subscriber, SubscriberBuilder, s };
|
|
10
10
|
//# sourceMappingURL=index.d.mts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geekmidas/constructs",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -67,14 +67,14 @@
|
|
|
67
67
|
"lodash.uniqby": "~4.7.0",
|
|
68
68
|
"openapi-types": "~12.1.3",
|
|
69
69
|
"@geekmidas/cache": "0.0.7",
|
|
70
|
-
"@geekmidas/audit": "0.0.8",
|
|
71
|
-
"@geekmidas/events": "0.0.2",
|
|
72
70
|
"@geekmidas/errors": "0.0.1",
|
|
73
71
|
"@geekmidas/db": "0.1.0",
|
|
74
72
|
"@geekmidas/logger": "0.0.1",
|
|
75
|
-
"@geekmidas/
|
|
73
|
+
"@geekmidas/schema": "0.0.3",
|
|
76
74
|
"@geekmidas/services": "0.0.1",
|
|
77
|
-
"@geekmidas/
|
|
75
|
+
"@geekmidas/rate-limit": "0.1.0",
|
|
76
|
+
"@geekmidas/events": "0.0.2",
|
|
77
|
+
"@geekmidas/audit": "0.0.8"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@types/lodash.compact": "~3.0.9",
|
|
@@ -32,10 +32,14 @@ import { Endpoint, type EndpointContext } from '../Endpoint';
|
|
|
32
32
|
import { HonoEndpoint } from '../HonoEndpointAdaptor';
|
|
33
33
|
import type { MappedAudit } from '../audit';
|
|
34
34
|
|
|
35
|
+
// Use unique table names to avoid conflicts with parallel tests
|
|
36
|
+
const AUDIT_TABLE = 'hono_audit_logs' as const;
|
|
37
|
+
const USERS_TABLE = 'hono_audit_users' as const;
|
|
38
|
+
|
|
35
39
|
// Database schema
|
|
36
40
|
interface TestDatabase {
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
[AUDIT_TABLE]: AuditLogTable;
|
|
42
|
+
[USERS_TABLE]: {
|
|
39
43
|
id: Generated<number>;
|
|
40
44
|
name: string;
|
|
41
45
|
email: string;
|
|
@@ -84,7 +88,7 @@ describe('HonoEndpoint Kysely Audit Integration', () => {
|
|
|
84
88
|
|
|
85
89
|
// Create audit_logs table
|
|
86
90
|
await db.schema
|
|
87
|
-
.createTable(
|
|
91
|
+
.createTable(AUDIT_TABLE)
|
|
88
92
|
.ifNotExists()
|
|
89
93
|
.addColumn('id', 'varchar(32)', (col) => col.primaryKey())
|
|
90
94
|
.addColumn('type', 'varchar', (col) => col.notNull())
|
|
@@ -105,7 +109,7 @@ describe('HonoEndpoint Kysely Audit Integration', () => {
|
|
|
105
109
|
|
|
106
110
|
// Create users table
|
|
107
111
|
await db.schema
|
|
108
|
-
.createTable(
|
|
112
|
+
.createTable(USERS_TABLE)
|
|
109
113
|
.ifNotExists()
|
|
110
114
|
.addColumn('id', 'serial', (col) => col.primaryKey())
|
|
111
115
|
.addColumn('name', 'varchar', (col) => col.notNull())
|
|
@@ -114,7 +118,7 @@ describe('HonoEndpoint Kysely Audit Integration', () => {
|
|
|
114
118
|
|
|
115
119
|
auditStorage = new KyselyAuditStorage({
|
|
116
120
|
db,
|
|
117
|
-
tableName:
|
|
121
|
+
tableName: AUDIT_TABLE,
|
|
118
122
|
});
|
|
119
123
|
});
|
|
120
124
|
|
|
@@ -123,13 +127,13 @@ describe('HonoEndpoint Kysely Audit Integration', () => {
|
|
|
123
127
|
});
|
|
124
128
|
|
|
125
129
|
afterEach(async () => {
|
|
126
|
-
await db.deleteFrom(
|
|
127
|
-
await db.deleteFrom(
|
|
130
|
+
await db.deleteFrom(AUDIT_TABLE).execute();
|
|
131
|
+
await db.deleteFrom(USERS_TABLE).execute();
|
|
128
132
|
});
|
|
129
133
|
|
|
130
134
|
afterAll(async () => {
|
|
131
|
-
await db.schema.dropTable(
|
|
132
|
-
await db.schema.dropTable(
|
|
135
|
+
await db.schema.dropTable(AUDIT_TABLE).ifExists().execute();
|
|
136
|
+
await db.schema.dropTable(USERS_TABLE).ifExists().execute();
|
|
133
137
|
await db.destroy();
|
|
134
138
|
});
|
|
135
139
|
|
|
@@ -193,7 +197,7 @@ describe('HonoEndpoint Kysely Audit Integration', () => {
|
|
|
193
197
|
expect(response.status).toBe(201);
|
|
194
198
|
|
|
195
199
|
// Verify audit was written to the real database
|
|
196
|
-
const auditsInDb = await db.selectFrom(
|
|
200
|
+
const auditsInDb = await db.selectFrom(AUDIT_TABLE).selectAll().execute();
|
|
197
201
|
|
|
198
202
|
expect(auditsInDb).toHaveLength(1);
|
|
199
203
|
expect(auditsInDb[0].type).toBe('user.created');
|
|
@@ -262,7 +266,7 @@ describe('HonoEndpoint Kysely Audit Integration', () => {
|
|
|
262
266
|
expect(response.status).toBe(500);
|
|
263
267
|
|
|
264
268
|
// Verify no audit was written
|
|
265
|
-
const auditsInDb = await db.selectFrom(
|
|
269
|
+
const auditsInDb = await db.selectFrom(AUDIT_TABLE).selectAll().execute();
|
|
266
270
|
|
|
267
271
|
expect(auditsInDb).toHaveLength(0);
|
|
268
272
|
});
|
|
@@ -334,7 +338,7 @@ describe('HonoEndpoint Kysely Audit Integration', () => {
|
|
|
334
338
|
expect(response.status).toBe(201);
|
|
335
339
|
|
|
336
340
|
// Verify manual audit was written
|
|
337
|
-
const auditsInDb = await db.selectFrom(
|
|
341
|
+
const auditsInDb = await db.selectFrom(AUDIT_TABLE).selectAll().execute();
|
|
338
342
|
|
|
339
343
|
expect(auditsInDb).toHaveLength(1);
|
|
340
344
|
expect(auditsInDb[0].type).toBe('user.created');
|
|
@@ -410,7 +414,7 @@ describe('HonoEndpoint Kysely Audit Integration', () => {
|
|
|
410
414
|
expect(response.status).toBe(500);
|
|
411
415
|
|
|
412
416
|
// Verify no audit was written (transaction rolled back)
|
|
413
|
-
const auditsInDb = await db.selectFrom(
|
|
417
|
+
const auditsInDb = await db.selectFrom(AUDIT_TABLE).selectAll().execute();
|
|
414
418
|
|
|
415
419
|
expect(auditsInDb).toHaveLength(0);
|
|
416
420
|
});
|
|
@@ -453,7 +457,7 @@ describe('HonoEndpoint Kysely Audit Integration', () => {
|
|
|
453
457
|
|
|
454
458
|
// Insert user
|
|
455
459
|
const user = await database
|
|
456
|
-
.insertInto(
|
|
460
|
+
.insertInto(USERS_TABLE)
|
|
457
461
|
.values({ name: 'Success User', email: 'success@example.com' })
|
|
458
462
|
.returningAll()
|
|
459
463
|
.executeTakeFirstOrThrow();
|
|
@@ -496,12 +500,12 @@ describe('HonoEndpoint Kysely Audit Integration', () => {
|
|
|
496
500
|
expect(response.status).toBe(201);
|
|
497
501
|
|
|
498
502
|
// Verify user was created
|
|
499
|
-
const usersInDb = await db.selectFrom(
|
|
503
|
+
const usersInDb = await db.selectFrom(USERS_TABLE).selectAll().execute();
|
|
500
504
|
expect(usersInDb).toHaveLength(1);
|
|
501
505
|
expect(usersInDb[0].email).toBe('success@example.com');
|
|
502
506
|
|
|
503
507
|
// Verify audit was written
|
|
504
|
-
const auditsInDb = await db.selectFrom(
|
|
508
|
+
const auditsInDb = await db.selectFrom(AUDIT_TABLE).selectAll().execute();
|
|
505
509
|
expect(auditsInDb).toHaveLength(1);
|
|
506
510
|
expect(auditsInDb[0].type).toBe('user.created');
|
|
507
511
|
expect(auditsInDb[0].payload).toEqual({
|
|
@@ -586,7 +590,7 @@ describe('HonoEndpoint Kysely Audit Integration', () => {
|
|
|
586
590
|
expect(response.status).toBe(201);
|
|
587
591
|
|
|
588
592
|
// Verify both audits were written
|
|
589
|
-
const auditsInDb = await db.selectFrom(
|
|
593
|
+
const auditsInDb = await db.selectFrom(AUDIT_TABLE).selectAll().execute();
|
|
590
594
|
|
|
591
595
|
expect(auditsInDb).toHaveLength(2);
|
|
592
596
|
|
|
@@ -665,7 +669,7 @@ describe('HonoEndpoint Kysely Audit Integration', () => {
|
|
|
665
669
|
expect(response.status).toBe(201);
|
|
666
670
|
|
|
667
671
|
// Verify actor was included in audit
|
|
668
|
-
const auditsInDb = await db.selectFrom(
|
|
672
|
+
const auditsInDb = await db.selectFrom(AUDIT_TABLE).selectAll().execute();
|
|
669
673
|
|
|
670
674
|
expect(auditsInDb).toHaveLength(1);
|
|
671
675
|
expect(auditsInDb[0].actorId).toBe('user-123');
|
|
@@ -680,7 +684,7 @@ describe('HonoEndpoint Kysely Audit Integration', () => {
|
|
|
680
684
|
// Create audit storage WITH databaseServiceName
|
|
681
685
|
const auditStorageWithServiceName = new KyselyAuditStorage({
|
|
682
686
|
db,
|
|
683
|
-
tableName:
|
|
687
|
+
tableName: AUDIT_TABLE,
|
|
684
688
|
databaseServiceName: 'database', // Matches the database service
|
|
685
689
|
});
|
|
686
690
|
|
|
@@ -721,7 +725,7 @@ describe('HonoEndpoint Kysely Audit Integration', () => {
|
|
|
721
725
|
|
|
722
726
|
// Insert user using ctx.db (should be the transaction)
|
|
723
727
|
const user = await ctx.db
|
|
724
|
-
.insertInto(
|
|
728
|
+
.insertInto(USERS_TABLE)
|
|
725
729
|
.values({ name: 'Transaction User', email: 'trx@example.com' })
|
|
726
730
|
.returningAll()
|
|
727
731
|
.executeTakeFirstOrThrow();
|
|
@@ -766,11 +770,11 @@ describe('HonoEndpoint Kysely Audit Integration', () => {
|
|
|
766
770
|
expect(receivedDbIsTransaction).toBe(true);
|
|
767
771
|
|
|
768
772
|
// Verify both user and audit were committed
|
|
769
|
-
const usersInDb = await db.selectFrom(
|
|
773
|
+
const usersInDb = await db.selectFrom(USERS_TABLE).selectAll().execute();
|
|
770
774
|
expect(usersInDb).toHaveLength(1);
|
|
771
775
|
expect(usersInDb[0].email).toBe('trx@example.com');
|
|
772
776
|
|
|
773
|
-
const auditsInDb = await db.selectFrom(
|
|
777
|
+
const auditsInDb = await db.selectFrom(AUDIT_TABLE).selectAll().execute();
|
|
774
778
|
expect(auditsInDb).toHaveLength(1);
|
|
775
779
|
});
|
|
776
780
|
|
|
@@ -780,7 +784,7 @@ describe('HonoEndpoint Kysely Audit Integration', () => {
|
|
|
780
784
|
// Create audit storage with DIFFERENT databaseServiceName
|
|
781
785
|
const auditStorageWithDifferentServiceName = new KyselyAuditStorage({
|
|
782
786
|
db,
|
|
783
|
-
tableName:
|
|
787
|
+
tableName: AUDIT_TABLE,
|
|
784
788
|
databaseServiceName: 'auditDatabase', // Different from 'database'
|
|
785
789
|
});
|
|
786
790
|
|
|
@@ -822,7 +826,7 @@ describe('HonoEndpoint Kysely Audit Integration', () => {
|
|
|
822
826
|
|
|
823
827
|
// Insert user using ctx.db (should be raw db, not transaction)
|
|
824
828
|
const user = await ctx.db
|
|
825
|
-
.insertInto(
|
|
829
|
+
.insertInto(USERS_TABLE)
|
|
826
830
|
.values({ name: 'Raw DB User', email: 'raw@example.com' })
|
|
827
831
|
.returningAll()
|
|
828
832
|
.executeTakeFirstOrThrow();
|
|
@@ -868,10 +872,10 @@ describe('HonoEndpoint Kysely Audit Integration', () => {
|
|
|
868
872
|
expect(receivedDbIsTransaction).toBe(false);
|
|
869
873
|
|
|
870
874
|
// Both should still be committed (but not in the same transaction)
|
|
871
|
-
const usersInDb = await db.selectFrom(
|
|
875
|
+
const usersInDb = await db.selectFrom(USERS_TABLE).selectAll().execute();
|
|
872
876
|
expect(usersInDb).toHaveLength(1);
|
|
873
877
|
|
|
874
|
-
const auditsInDb = await db.selectFrom(
|
|
878
|
+
const auditsInDb = await db.selectFrom(AUDIT_TABLE).selectAll().execute();
|
|
875
879
|
expect(auditsInDb).toHaveLength(1);
|
|
876
880
|
});
|
|
877
881
|
|
|
@@ -914,7 +918,7 @@ describe('HonoEndpoint Kysely Audit Integration', () => {
|
|
|
914
918
|
receivedDbIsTransaction = (ctx.db as any)?.isTransaction === true;
|
|
915
919
|
|
|
916
920
|
const user = await ctx.db
|
|
917
|
-
.insertInto(
|
|
921
|
+
.insertInto(USERS_TABLE)
|
|
918
922
|
.values({
|
|
919
923
|
name: 'No ServiceName User',
|
|
920
924
|
email: 'noname@example.com',
|
|
@@ -960,10 +964,10 @@ describe('HonoEndpoint Kysely Audit Integration', () => {
|
|
|
960
964
|
expect(response.status).toBe(201);
|
|
961
965
|
expect(receivedDbIsTransaction).toBe(false);
|
|
962
966
|
|
|
963
|
-
const usersInDb = await db.selectFrom(
|
|
967
|
+
const usersInDb = await db.selectFrom(USERS_TABLE).selectAll().execute();
|
|
964
968
|
expect(usersInDb).toHaveLength(1);
|
|
965
969
|
|
|
966
|
-
const auditsInDb = await db.selectFrom(
|
|
970
|
+
const auditsInDb = await db.selectFrom(AUDIT_TABLE).selectAll().execute();
|
|
967
971
|
expect(auditsInDb).toHaveLength(1);
|
|
968
972
|
});
|
|
969
973
|
|
|
@@ -973,7 +977,7 @@ describe('HonoEndpoint Kysely Audit Integration', () => {
|
|
|
973
977
|
// Create audit storage WITH databaseServiceName
|
|
974
978
|
const auditStorageWithServiceName = new KyselyAuditStorage({
|
|
975
979
|
db,
|
|
976
|
-
tableName:
|
|
980
|
+
tableName: AUDIT_TABLE,
|
|
977
981
|
databaseServiceName: 'database',
|
|
978
982
|
});
|
|
979
983
|
|
|
@@ -1008,7 +1012,7 @@ describe('HonoEndpoint Kysely Audit Integration', () => {
|
|
|
1008
1012
|
) => {
|
|
1009
1013
|
// Insert user (should be rolled back)
|
|
1010
1014
|
const user = await ctx.db
|
|
1011
|
-
.insertInto(
|
|
1015
|
+
.insertInto(USERS_TABLE)
|
|
1012
1016
|
.values({ name: 'Rollback User', email: 'rollback@example.com' })
|
|
1013
1017
|
.returningAll()
|
|
1014
1018
|
.executeTakeFirstOrThrow();
|
|
@@ -1053,10 +1057,10 @@ describe('HonoEndpoint Kysely Audit Integration', () => {
|
|
|
1053
1057
|
expect(response.status).toBe(500);
|
|
1054
1058
|
|
|
1055
1059
|
// Both should be rolled back since they're in the same transaction
|
|
1056
|
-
const usersInDb = await db.selectFrom(
|
|
1060
|
+
const usersInDb = await db.selectFrom(USERS_TABLE).selectAll().execute();
|
|
1057
1061
|
expect(usersInDb).toHaveLength(0);
|
|
1058
1062
|
|
|
1059
|
-
const auditsInDb = await db.selectFrom(
|
|
1063
|
+
const auditsInDb = await db.selectFrom(AUDIT_TABLE).selectAll().execute();
|
|
1060
1064
|
expect(auditsInDb).toHaveLength(0);
|
|
1061
1065
|
});
|
|
1062
1066
|
});
|