@alevnyacow/nzmt 0.18.4 → 0.18.6
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/README.md +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -82,9 +82,9 @@ Everything is wired automatically via DI — no manual setup needed.
|
|
|
82
82
|
|
|
83
83
|
Then tweak a few files:
|
|
84
84
|
|
|
85
|
-
- `/
|
|
86
|
-
- `/server/stores/
|
|
87
|
-
- `/server/stores/
|
|
85
|
+
- `/domain/entities/user/user.entity.ts` → entity schema
|
|
86
|
+
- `/server/stores/user/user.store.ts` → store schemas (if default schemas do not fit your needs)
|
|
87
|
+
- `/server/stores/user/user.store.prisma.ts` → map `UserStore` contracts to Prisma client contracts
|
|
88
88
|
|
|
89
89
|
👉 One command + few tweaks → ready-to-use React Query hooks & Server Actions backend.
|
|
90
90
|
|
|
@@ -97,9 +97,9 @@ Schema: Client → React Query → API → Controller → Service → Store →
|
|
|
97
97
|
```tsx
|
|
98
98
|
'use client'
|
|
99
99
|
|
|
100
|
-
import { UserQueries } from "@/
|
|
100
|
+
import { UserQueries } from "@/ui/shared/queries/user";
|
|
101
101
|
|
|
102
|
-
export default function () {
|
|
102
|
+
export default function Page() {
|
|
103
103
|
const { mutate: addUser } = UserQueries.usePOST()
|
|
104
104
|
const { data, isFetching } = UserQueries.useGET({ query: {} })
|
|
105
105
|
|
|
@@ -132,7 +132,7 @@ Schema: Server Action → Service → Store → DB
|
|
|
132
132
|
import { fromDI } from "@/server/di"
|
|
133
133
|
import type { UserService } from "@/server/services/user"
|
|
134
134
|
|
|
135
|
-
export default async function() {
|
|
135
|
+
export default async function Page() {
|
|
136
136
|
/**
|
|
137
137
|
* FYI: `fromDI` argument is strongly typed and
|
|
138
138
|
* this type automatically updates after you scaffold
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alevnyacow/nzmt",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.6",
|
|
4
4
|
"description": "Next Zod Modules Toolkit",
|
|
5
5
|
"keywords": ["next", "full-stack", "server", "backend", "cli", "scaffolder", "zod", "rest", "contract programming", "react-query", "ddd", "domain-driven"],
|
|
6
6
|
"repository": {
|