@congruent-stack/congruent-api 0.12.1 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -950,7 +950,11 @@ async function triggerEndpointDecoratorNoStaticTypeCheck(endpoint, decorator, re
950
950
  }
951
951
  const path = endpoint.createPath(requestObject.pathParams);
952
952
  return decorator.handle({
953
- ...requestObject,
953
+ //...requestObject,
954
+ headers,
955
+ query,
956
+ body,
957
+ pathParams: requestObject.pathParams,
954
958
  method: endpoint.method,
955
959
  genericPath: endpoint.genericPath,
956
960
  path,
package/dist/index.d.cts CHANGED
@@ -411,7 +411,7 @@ declare class MethodEndpointHandlerRegistryEntry<TDef extends IHttpMethodEndpoin
411
411
  pathParams: TypedPathParams<TPathParams>;
412
412
  query: TDef['query'] extends z.ZodType ? z.output<TDef['query']> : null;
413
413
  body: TDef['body'] extends z.ZodType ? z.output<TDef['body']> : null;
414
- }): Promise<any>;
414
+ }): Promise<HttpMethodEndpointHandlerOutput<TDef>>;
415
415
  exec(injected: TInjected, requestObject: {
416
416
  headers: TDef['headers'] extends z.ZodType ? z.output<TDef['headers']> : Record<string, string>;
417
417
  pathParams: TypedPathParams<TPathParams>;
package/dist/index.d.mts CHANGED
@@ -411,7 +411,7 @@ declare class MethodEndpointHandlerRegistryEntry<TDef extends IHttpMethodEndpoin
411
411
  pathParams: TypedPathParams<TPathParams>;
412
412
  query: TDef['query'] extends z.ZodType ? z.output<TDef['query']> : null;
413
413
  body: TDef['body'] extends z.ZodType ? z.output<TDef['body']> : null;
414
- }): Promise<any>;
414
+ }): Promise<HttpMethodEndpointHandlerOutput<TDef>>;
415
415
  exec(injected: TInjected, requestObject: {
416
416
  headers: TDef['headers'] extends z.ZodType ? z.output<TDef['headers']> : Record<string, string>;
417
417
  pathParams: TypedPathParams<TPathParams>;
package/dist/index.mjs CHANGED
@@ -948,7 +948,11 @@ async function triggerEndpointDecoratorNoStaticTypeCheck(endpoint, decorator, re
948
948
  }
949
949
  const path = endpoint.createPath(requestObject.pathParams);
950
950
  return decorator.handle({
951
- ...requestObject,
951
+ //...requestObject,
952
+ headers,
953
+ query,
954
+ body,
955
+ pathParams: requestObject.pathParams,
952
956
  method: endpoint.method,
953
957
  genericPath: endpoint.genericPath,
954
958
  path,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@congruent-stack/congruent-api",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.13.0",
5
5
  "description": "Typescript schema-first tooling for agnostic REST APIs.",
6
6
  "keywords": [],
7
7
  "author": "congruent-stack",