@famgia/omnify 1.0.42 → 1.0.44

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@famgia/omnify",
3
- "version": "1.0.42",
3
+ "version": "1.0.44",
4
4
  "description": "Schema-driven database migration system with TypeScript types and Laravel migrations",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -24,14 +24,14 @@
24
24
  "README.md"
25
25
  ],
26
26
  "dependencies": {
27
- "@famgia/omnify-cli": "0.0.41",
28
- "@famgia/omnify-core": "0.0.37",
29
- "@famgia/omnify-types": "0.0.34",
30
- "@famgia/omnify-typescript": "0.0.26",
31
- "@famgia/omnify-atlas": "0.0.33",
32
- "@famgia/omnify-japan": "0.0.32",
33
- "@famgia/omnify-mcp": "0.0.25",
34
- "@famgia/omnify-laravel": "0.0.43"
27
+ "@famgia/omnify-cli": "0.0.43",
28
+ "@famgia/omnify-core": "0.0.39",
29
+ "@famgia/omnify-laravel": "0.0.45",
30
+ "@famgia/omnify-types": "0.0.36",
31
+ "@famgia/omnify-atlas": "0.0.35",
32
+ "@famgia/omnify-typescript": "0.0.28",
33
+ "@famgia/omnify-mcp": "0.0.27",
34
+ "@famgia/omnify-japan": "0.0.34"
35
35
  },
36
36
  "keywords": [
37
37
  "omnify",
@@ -251,6 +251,39 @@ export default defineConfig({
251
251
  | \`singleFile\` | boolean | Generate single file vs multiple files |
252
252
  | \`generateEnums\` | boolean | Generate enum types |
253
253
  | \`generateRelationships\` | boolean | Generate relationship types |
254
+ | \`generateRules\` | boolean | Generate Ant Design validation rules (default: true) |
255
+ | \`validationTemplates\` | object | Custom validation message templates |
256
+
257
+ #### Validation Templates
258
+
259
+ Customize validation messages for your locales:
260
+
261
+ \`\`\`typescript
262
+ {
263
+ output: {
264
+ typescript: {
265
+ validationTemplates: {
266
+ required: {
267
+ ja: '\${displayName}を入力してください',
268
+ en: '\${displayName} is required',
269
+ },
270
+ maxLength: {
271
+ ja: '\${displayName}は\${max}文字以内です',
272
+ en: '\${displayName} must be at most \${max} characters',
273
+ },
274
+ minLength: { /* ... */ },
275
+ min: { /* ... */ },
276
+ max: { /* ... */ },
277
+ email: { /* ... */ },
278
+ url: { /* ... */ },
279
+ pattern: { /* ... */ },
280
+ },
281
+ },
282
+ },
283
+ }
284
+ \`\`\`
285
+
286
+ Built-in templates are available for: ja, en, vi, ko, zh
254
287
 
255
288
  ### locale (optional)
256
289
  | Option | Type | Description |