@omnifyjp/ts 3.14.0 → 3.14.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.
Files changed (2) hide show
  1. package/README.md +11 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -13,12 +13,21 @@ Per model (in `<output>/base/<Model>.ts`):
13
13
  - **Zod schemas** for create / update with validation rules
14
14
  - **Per-locale Zod sub-objects** for `translatable: true` fields (issue #53)
15
15
  - **`<modelName>Metadata`** constant — single source of truth for form
16
- runners (field type taxonomy, validation, label dictionary, enum values,
17
- relation pointers, aggregations) — issue #54
16
+ runners (field type taxonomy, validation, label + description + placeholder
17
+ dictionaries, enum values, relation pointers, aggregations) — issues #54 + #59
18
18
  - **`<Model>CreateFormState` / `<Model>UpdateFormState`** interfaces and
19
19
  **`empty<Model>CreateForm()` / `build<Model>CreatePayload()` /
20
20
  `build<Model>UpdatePayload()`** helpers (issue #55)
21
21
 
22
+ Per model with `options.service` or `options.api` (in `<output>/base/`):
23
+
24
+ - **`<Model>Service.ts`** — service factory with typed CRUD methods,
25
+ auto-generated `<Model>Filters` interface from filterable fields (issue #58)
26
+ - **`<Model>QueryKeys.ts`** — TanStack Query key factory per model
27
+ - **`<Model>Hooks.ts`** — React Query hooks (`useList`, `useDetail`,
28
+ `useCreate`, `useUpdate`, `useDelete`, `useRestore`) with auto-invalidation
29
+ and toast notifications via `sonner`
30
+
22
31
  Plus shared infrastructure at the codegen output root:
23
32
 
24
33
  - `common.ts` — `LocaleMap`, `Locale`, `DateTimeString`, `OmnifyFile`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnifyjp/ts",
3
- "version": "3.14.0",
3
+ "version": "3.14.1",
4
4
  "description": "TypeScript model type generator from Omnify schemas.json",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",