@alevnyacow/nzmt 0.38.0 → 0.38.1

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.
@@ -25,8 +25,8 @@ export type OnErrorHandler = (request: {
25
25
  error: ControllerErrorModel;
26
26
  req: NextRequest;
27
27
  }) => Promise<void>;
28
- export type Methods<T extends Metadata> = {
29
- [K in keyof T['schemas']]: (payload: z.infer<T['schemas'][K]['query']> & z.infer<T['schemas'][K]['body']>) => Promise<z.infer<T['schemas'][K]['response']>>;
28
+ export type EndpointList<T extends Metadata> = {
29
+ [K in keyof T['schemas']]: (request: NextRequest) => Promise<Response>;
30
30
  };
31
31
  type EndpointLogic<T extends ZodAPISchemas> = {
32
32
  handler: (payload: (T['query'] extends ZodType ? z.infer<T['query']> : {}) & (T['body'] extends ZodType ? z.infer<T['body']> : {}), request: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alevnyacow/nzmt",
3
- "version": "0.38.0",
3
+ "version": "0.38.1",
4
4
  "description": "Next Zod Modules Toolkit",
5
5
  "keywords": ["next", "full-stack", "server", "backend", "cli", "scaffolding", "zod", "rest", "contract programming", "contract-first", "react-query", "ddd", "domain-driven"],
6
6
  "repository": {