@mikemajesty/zod-mock-schema 1.0.33 → 1.0.35

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 (52) hide show
  1. package/dist/__tests__/advanced-schemas.spec.js +44 -46
  2. package/dist/__tests__/advanced-schemas.spec.js.map +1 -1
  3. package/dist/__tests__/brazilian-formats.spec.js +67 -69
  4. package/dist/__tests__/brazilian-formats.spec.js.map +1 -1
  5. package/dist/__tests__/complex-intersections.spec.js +26 -28
  6. package/dist/__tests__/complex-intersections.spec.js.map +1 -1
  7. package/dist/__tests__/edge-cases.spec.js +64 -66
  8. package/dist/__tests__/edge-cases.spec.js.map +1 -1
  9. package/dist/__tests__/faker-injection.spec.js +38 -40
  10. package/dist/__tests__/faker-injection.spec.js.map +1 -1
  11. package/dist/__tests__/overrides-all-types.spec.js +83 -85
  12. package/dist/__tests__/overrides-all-types.spec.js.map +1 -1
  13. package/dist/__tests__/overrides.spec.js +93 -95
  14. package/dist/__tests__/overrides.spec.js.map +1 -1
  15. package/dist/__tests__/unsupported-types.spec.js +3 -5
  16. package/dist/__tests__/unsupported-types.spec.js.map +1 -1
  17. package/dist/__tests__/zod-types.spec.js +308 -314
  18. package/dist/__tests__/zod-types.spec.js.map +1 -1
  19. package/dist/constants.js +81 -85
  20. package/dist/constants.js.map +1 -1
  21. package/dist/index.js +1 -5
  22. package/dist/index.js.map +1 -1
  23. package/dist/types.js +1 -2
  24. package/dist/zod-mock-schema.js +75 -80
  25. package/dist/zod-mock-schema.js.map +1 -1
  26. package/package.json +6 -11
  27. package/dist/cjs/__tests__/advanced-schemas.spec.js +0 -151
  28. package/dist/cjs/__tests__/advanced-schemas.spec.js.map +0 -1
  29. package/dist/cjs/__tests__/brazilian-formats.spec.js +0 -207
  30. package/dist/cjs/__tests__/brazilian-formats.spec.js.map +0 -1
  31. package/dist/cjs/__tests__/complex-intersections.spec.js +0 -178
  32. package/dist/cjs/__tests__/complex-intersections.spec.js.map +0 -1
  33. package/dist/cjs/__tests__/edge-cases.spec.js +0 -208
  34. package/dist/cjs/__tests__/edge-cases.spec.js.map +0 -1
  35. package/dist/cjs/__tests__/faker-injection.spec.js +0 -112
  36. package/dist/cjs/__tests__/faker-injection.spec.js.map +0 -1
  37. package/dist/cjs/__tests__/overrides-all-types.spec.js +0 -285
  38. package/dist/cjs/__tests__/overrides-all-types.spec.js.map +0 -1
  39. package/dist/cjs/__tests__/overrides.spec.js +0 -347
  40. package/dist/cjs/__tests__/overrides.spec.js.map +0 -1
  41. package/dist/cjs/__tests__/unsupported-types.spec.js +0 -29
  42. package/dist/cjs/__tests__/unsupported-types.spec.js.map +0 -1
  43. package/dist/cjs/__tests__/zod-types.spec.js +0 -532
  44. package/dist/cjs/__tests__/zod-types.spec.js.map +0 -1
  45. package/dist/cjs/constants.js +0 -87
  46. package/dist/cjs/constants.js.map +0 -1
  47. package/dist/cjs/index.js +0 -6
  48. package/dist/cjs/index.js.map +0 -1
  49. package/dist/cjs/types.js +0 -3
  50. package/dist/cjs/types.js.map +0 -1
  51. package/dist/cjs/zod-mock-schema.js +0 -373
  52. package/dist/cjs/zod-mock-schema.js.map +0 -1
@@ -1,351 +1,345 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.PersonEntitySchema = void 0;
7
- const zod_mock_schema_js_1 = require("../zod-mock-schema.js");
8
- const zod_1 = __importDefault(require("zod"));
9
- const Identifiable = zod_1.default.object({
10
- id: zod_1.default.uuid(),
11
- createdAt: zod_1.default.date(),
12
- updatedAt: zod_1.default.date().optional(),
13
- deletedAt: zod_1.default.date().optional().nullable(),
14
- version: zod_1.default.number().int().positive().default(1),
1
+ import { ZodMockSchema } from '../zod-mock-schema.js';
2
+ import z from 'zod';
3
+ const Identifiable = z.object({
4
+ id: z.uuid(),
5
+ createdAt: z.date(),
6
+ updatedAt: z.date().optional(),
7
+ deletedAt: z.date().optional().nullable(),
8
+ version: z.number().int().positive().default(1),
15
9
  });
16
- const Auditable = zod_1.default.object({
17
- createdBy: zod_1.default.uuid(),
18
- updatedBy: zod_1.default.uuid().optional(),
19
- deletedBy: zod_1.default.uuid().optional().nullable(),
20
- auditLog: zod_1.default.array(zod_1.default.object({
21
- timestamp: zod_1.default.date(),
22
- action: zod_1.default.enum(['CREATE', 'UPDATE', 'DELETE', 'RESTORE']),
23
- userId: zod_1.default.uuid(),
24
- changes: zod_1.default.record(zod_1.default.string(), zod_1.default.any()).optional(),
10
+ const Auditable = z.object({
11
+ createdBy: z.uuid(),
12
+ updatedBy: z.uuid().optional(),
13
+ deletedBy: z.uuid().optional().nullable(),
14
+ auditLog: z.array(z.object({
15
+ timestamp: z.date(),
16
+ action: z.enum(['CREATE', 'UPDATE', 'DELETE', 'RESTORE']),
17
+ userId: z.uuid(),
18
+ changes: z.record(z.string(), z.any()).optional(),
25
19
  })).max(100).optional(),
26
20
  });
27
- const ContactInfo = zod_1.default.object({
28
- email: zod_1.default.email(),
29
- phone: zod_1.default.string().regex(/^\d{10,11}$/),
30
- alternativePhone: zod_1.default.string().regex(/^\d{10,11}$/).optional(),
31
- emergencyContact: zod_1.default.object({
32
- name: zod_1.default.string(),
33
- relationship: zod_1.default.enum(['parent', 'spouse', 'child', 'sibling', 'friend', 'other']),
34
- phone: zod_1.default.string().regex(/^\d{10,11}$/),
35
- priority: zod_1.default.number().min(1).max(3),
21
+ const ContactInfo = z.object({
22
+ email: z.email(),
23
+ phone: z.string().regex(/^\d{10,11}$/),
24
+ alternativePhone: z.string().regex(/^\d{10,11}$/).optional(),
25
+ emergencyContact: z.object({
26
+ name: z.string(),
27
+ relationship: z.enum(['parent', 'spouse', 'child', 'sibling', 'friend', 'other']),
28
+ phone: z.string().regex(/^\d{10,11}$/),
29
+ priority: z.number().min(1).max(3),
36
30
  }).optional(),
37
31
  });
38
- const Address = zod_1.default.object({
39
- street: zod_1.default.string().min(3),
40
- number: zod_1.default.string(),
41
- complement: zod_1.default.string().optional(),
42
- neighborhood: zod_1.default.string(),
43
- city: zod_1.default.string(),
44
- state: zod_1.default.string().length(2).regex(/^[A-Z]{2}$/),
45
- cep: zod_1.default.string().regex(/^\d{8}$/),
46
- country: zod_1.default.string().default('BR'),
47
- isPrimary: zod_1.default.boolean().default(true),
48
- type: zod_1.default.enum(['home', 'work', 'billing', 'shipping']),
49
- coordinates: zod_1.default.object({
50
- lat: zod_1.default.number().min(-90).max(90),
51
- lng: zod_1.default.number().min(-180).max(180),
32
+ const Address = z.object({
33
+ street: z.string().min(3),
34
+ number: z.string(),
35
+ complement: z.string().optional(),
36
+ neighborhood: z.string(),
37
+ city: z.string(),
38
+ state: z.string().length(2).regex(/^[A-Z]{2}$/),
39
+ cep: z.string().regex(/^\d{8}$/),
40
+ country: z.string().default('BR'),
41
+ isPrimary: z.boolean().default(true),
42
+ type: z.enum(['home', 'work', 'billing', 'shipping']),
43
+ coordinates: z.object({
44
+ lat: z.number().min(-90).max(90),
45
+ lng: z.number().min(-180).max(180),
52
46
  }).optional(),
53
47
  });
54
- const Geolocatable = zod_1.default.object({
55
- addresses: zod_1.default.array(Address).min(1).max(5),
56
- timezone: zod_1.default.string().optional(),
57
- locale: zod_1.default.string().default('pt-BR'),
48
+ const Geolocatable = z.object({
49
+ addresses: z.array(Address).min(1).max(5),
50
+ timezone: z.string().optional(),
51
+ locale: z.string().default('pt-BR'),
58
52
  });
59
- const BankAccount = zod_1.default.object({
60
- bankCode: zod_1.default.string().regex(/^\d{3}$/),
61
- agency: zod_1.default.string().regex(/^\d{4,5}$/),
62
- account: zod_1.default.string().regex(/^\d{6,12}$/),
63
- digit: zod_1.default.string().regex(/^[0-9X]$/),
64
- type: zod_1.default.enum(['checking', 'savings', 'salary', 'payment']),
65
- isPrimary: zod_1.default.boolean(),
66
- verifiedAt: zod_1.default.date().optional(),
53
+ const BankAccount = z.object({
54
+ bankCode: z.string().regex(/^\d{3}$/),
55
+ agency: z.string().regex(/^\d{4,5}$/),
56
+ account: z.string().regex(/^\d{6,12}$/),
57
+ digit: z.string().regex(/^[0-9X]$/),
58
+ type: z.enum(['checking', 'savings', 'salary', 'payment']),
59
+ isPrimary: z.boolean(),
60
+ verifiedAt: z.date().optional(),
67
61
  });
68
- const FinancialInfo = zod_1.default.object({
69
- bankAccounts: zod_1.default.array(BankAccount).max(3),
70
- creditScore: zod_1.default.number().min(0).max(1000).optional(),
71
- incomeRange: zod_1.default.enum(['A', 'B', 'C', 'D', 'E']).optional(),
72
- taxId: zod_1.default.string().regex(/^\d{11}$|^\d{14}$/).optional(),
73
- paymentMethods: zod_1.default.array(zod_1.default.enum(['credit_card', 'debit_card', 'pix', 'boleto', 'bank_transfer'])).min(1),
62
+ const FinancialInfo = z.object({
63
+ bankAccounts: z.array(BankAccount).max(3),
64
+ creditScore: z.number().min(0).max(1000).optional(),
65
+ incomeRange: z.enum(['A', 'B', 'C', 'D', 'E']).optional(),
66
+ taxId: z.string().regex(/^\d{11}$|^\d{14}$/).optional(),
67
+ paymentMethods: z.array(z.enum(['credit_card', 'debit_card', 'pix', 'boleto', 'bank_transfer'])).min(1),
74
68
  });
75
- const Course = zod_1.default.object({
76
- id: zod_1.default.string().regex(/^CRS\d{8}$/),
77
- name: zod_1.default.string(),
78
- code: zod_1.default.string().regex(/^[A-Z]{3}\d{3}$/),
79
- credits: zod_1.default.number().int().min(1).max(12),
80
- professorId: zod_1.default.uuid().optional(),
81
- schedule: zod_1.default.object({
82
- days: zod_1.default.array(zod_1.default.enum(['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'])).min(1).max(6),
83
- startTime: zod_1.default.string().regex(/^\d{2}:\d{2}$/),
84
- endTime: zod_1.default.string().regex(/^\d{2}:\d{2}$/),
85
- room: zod_1.default.string().optional(),
69
+ const Course = z.object({
70
+ id: z.string().regex(/^CRS\d{8}$/),
71
+ name: z.string(),
72
+ code: z.string().regex(/^[A-Z]{3}\d{3}$/),
73
+ credits: z.number().int().min(1).max(12),
74
+ professorId: z.uuid().optional(),
75
+ schedule: z.object({
76
+ days: z.array(z.enum(['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'])).min(1).max(6),
77
+ startTime: z.string().regex(/^\d{2}:\d{2}$/),
78
+ endTime: z.string().regex(/^\d{2}:\d{2}$/),
79
+ room: z.string().optional(),
86
80
  }),
87
- status: zod_1.default.enum(['active', 'inactive', 'completed', 'cancelled']),
81
+ status: z.enum(['active', 'inactive', 'completed', 'cancelled']),
88
82
  });
89
- const AcademicRecord = zod_1.default.object({
90
- enrollmentId: zod_1.default.string().regex(/^ENR\d{10}$/),
91
- semester: zod_1.default.string().regex(/^\d{4}\.[12]$/),
92
- gpa: zod_1.default.number().min(0).max(10).optional(),
93
- totalCredits: zod_1.default.number().int().min(0),
94
- courses: zod_1.default.array(zod_1.default.object({
83
+ const AcademicRecord = z.object({
84
+ enrollmentId: z.string().regex(/^ENR\d{10}$/),
85
+ semester: z.string().regex(/^\d{4}\.[12]$/),
86
+ gpa: z.number().min(0).max(10).optional(),
87
+ totalCredits: z.number().int().min(0),
88
+ courses: z.array(z.object({
95
89
  course: Course,
96
- grade: zod_1.default.number().min(0).max(10).optional(),
97
- status: zod_1.default.enum(['enrolled', 'approved', 'failed', 'dropped']),
98
- attendance: zod_1.default.number().min(0).max(100).optional(),
90
+ grade: z.number().min(0).max(10).optional(),
91
+ status: z.enum(['enrolled', 'approved', 'failed', 'dropped']),
92
+ attendance: z.number().min(0).max(100).optional(),
99
93
  })).max(10),
100
94
  });
101
- const StudentRole = zod_1.default.object({
102
- type: zod_1.default.literal('student'),
103
- studentId: zod_1.default.string().regex(/^STU\d{8}$/),
104
- enrollmentDate: zod_1.default.date(),
105
- graduationDate: zod_1.default.date().optional(),
95
+ const StudentRole = z.object({
96
+ type: z.literal('student'),
97
+ studentId: z.string().regex(/^STU\d{8}$/),
98
+ enrollmentDate: z.date(),
99
+ graduationDate: z.date().optional(),
106
100
  academicRecord: AcademicRecord,
107
- scholarships: zod_1.default.array(zod_1.default.object({
108
- id: zod_1.default.string().regex(/^SCH\d{6}$/),
109
- type: zod_1.default.enum(['merit', 'need', 'athletic', 'research']),
110
- amount: zod_1.default.number().positive(),
111
- startDate: zod_1.default.date(),
112
- endDate: zod_1.default.date(),
113
- renewable: zod_1.default.boolean(),
101
+ scholarships: z.array(z.object({
102
+ id: z.string().regex(/^SCH\d{6}$/),
103
+ type: z.enum(['merit', 'need', 'athletic', 'research']),
104
+ amount: z.number().positive(),
105
+ startDate: z.date(),
106
+ endDate: z.date(),
107
+ renewable: z.boolean(),
114
108
  })).max(3).optional(),
115
- campus: zod_1.default.enum(['main', 'north', 'south', 'online']),
109
+ campus: z.enum(['main', 'north', 'south', 'online']),
116
110
  });
117
- const TeacherRole = zod_1.default.object({
118
- type: zod_1.default.literal('teacher'),
119
- employeeId: zod_1.default.string().regex(/^TCH\d{8}$/),
120
- hireDate: zod_1.default.date(),
121
- department: zod_1.default.enum([
111
+ const TeacherRole = z.object({
112
+ type: z.literal('teacher'),
113
+ employeeId: z.string().regex(/^TCH\d{8}$/),
114
+ hireDate: z.date(),
115
+ department: z.enum([
122
116
  'computer_science', 'mathematics', 'physics', 'chemistry',
123
117
  'biology', 'engineering', 'business', 'arts', 'law', 'medicine'
124
118
  ]),
125
- title: zod_1.default.enum(['assistant', 'associate', 'full', 'adjunct', 'visiting']),
126
- salary: zod_1.default.object({
127
- base: zod_1.default.number().positive(),
128
- currency: zod_1.default.string().default('BRL'),
129
- paymentSchedule: zod_1.default.enum(['monthly', 'biweekly', 'weekly']),
130
- benefits: zod_1.default.array(zod_1.default.enum(['health', 'dental', 'vision', 'retirement', 'tuition'])).optional(),
119
+ title: z.enum(['assistant', 'associate', 'full', 'adjunct', 'visiting']),
120
+ salary: z.object({
121
+ base: z.number().positive(),
122
+ currency: z.string().default('BRL'),
123
+ paymentSchedule: z.enum(['monthly', 'biweekly', 'weekly']),
124
+ benefits: z.array(z.enum(['health', 'dental', 'vision', 'retirement', 'tuition'])).optional(),
131
125
  }),
132
- officeHours: zod_1.default.array(zod_1.default.object({
133
- day: zod_1.default.enum(['monday', 'tuesday', 'wednesday', 'thursday', 'friday']),
134
- start: zod_1.default.string().regex(/^\d{2}:\d{2}$/),
135
- end: zod_1.default.string().regex(/^\d{2}:\d{2}$/),
136
- location: zod_1.default.string(),
137
- mode: zod_1.default.enum(['in_person', 'virtual', 'hybrid']),
126
+ officeHours: z.array(z.object({
127
+ day: z.enum(['monday', 'tuesday', 'wednesday', 'thursday', 'friday']),
128
+ start: z.string().regex(/^\d{2}:\d{2}$/),
129
+ end: z.string().regex(/^\d{2}:\d{2}$/),
130
+ location: z.string(),
131
+ mode: z.enum(['in_person', 'virtual', 'hybrid']),
138
132
  })).max(5).optional(),
139
- coursesTeaching: zod_1.default.array(zod_1.default.object({
133
+ coursesTeaching: z.array(z.object({
140
134
  course: Course,
141
- semester: zod_1.default.string().regex(/^\d{4}\.[12]$/),
142
- section: zod_1.default.string().regex(/^[A-Z]$/),
135
+ semester: z.string().regex(/^\d{4}\.[12]$/),
136
+ section: z.string().regex(/^[A-Z]$/),
143
137
  })).max(4),
144
138
  });
145
- const AdminRole = zod_1.default.object({
146
- type: zod_1.default.literal('admin'),
147
- employeeId: zod_1.default.string().regex(/^ADM\d{8}$/),
148
- hireDate: zod_1.default.date(),
149
- department: zod_1.default.enum([
139
+ const AdminRole = z.object({
140
+ type: z.literal('admin'),
141
+ employeeId: z.string().regex(/^ADM\d{8}$/),
142
+ hireDate: z.date(),
143
+ department: z.enum([
150
144
  'human_resources', 'information_technology', 'finance',
151
145
  'operations', 'admissions', 'student_affairs', 'facilities'
152
146
  ]),
153
- level: zod_1.default.number().min(1).max(10),
154
- permissions: zod_1.default.array(zod_1.default.object({
155
- resource: zod_1.default.enum([
147
+ level: z.number().min(1).max(10),
148
+ permissions: z.array(z.object({
149
+ resource: z.enum([
156
150
  'users', 'courses', 'enrollments', 'grades', 'payments',
157
151
  'reports', 'settings', 'audit_logs', 'notifications'
158
152
  ]),
159
- actions: zod_1.default.array(zod_1.default.enum(['read', 'create', 'update', 'delete', 'approve', 'export'])).min(1),
160
- scope: zod_1.default.enum(['global', 'department', 'personal']),
153
+ actions: z.array(z.enum(['read', 'create', 'update', 'delete', 'approve', 'export'])).min(1),
154
+ scope: z.enum(['global', 'department', 'personal']),
161
155
  })).min(1),
162
- reportsTo: zod_1.default.uuid().optional(),
163
- managedDepartments: zod_1.default.array(zod_1.default.string()).optional(),
156
+ reportsTo: z.uuid().optional(),
157
+ managedDepartments: z.array(z.string()).optional(),
164
158
  });
165
- const StaffRole = zod_1.default.object({
166
- type: zod_1.default.literal('staff'),
167
- employeeId: zod_1.default.string().regex(/^STF\d{8}$/),
168
- hireDate: zod_1.default.date(),
169
- position: zod_1.default.enum([
159
+ const StaffRole = z.object({
160
+ type: z.literal('staff'),
161
+ employeeId: z.string().regex(/^STF\d{8}$/),
162
+ hireDate: z.date(),
163
+ position: z.enum([
170
164
  'librarian', 'technician', 'counselor', 'coordinator',
171
165
  'assistant', 'specialist', 'analyst', 'supervisor'
172
166
  ]),
173
- department: zod_1.default.string(),
174
- schedule: zod_1.default.object({
175
- workHours: zod_1.default.number().min(20).max(60),
176
- shift: zod_1.default.enum(['morning', 'afternoon', 'night', 'flexible']),
177
- remoteDays: zod_1.default.array(zod_1.default.enum(['monday', 'tuesday', 'wednesday', 'thursday', 'friday'])).max(3).optional(),
167
+ department: z.string(),
168
+ schedule: z.object({
169
+ workHours: z.number().min(20).max(60),
170
+ shift: z.enum(['morning', 'afternoon', 'night', 'flexible']),
171
+ remoteDays: z.array(z.enum(['monday', 'tuesday', 'wednesday', 'thursday', 'friday'])).max(3).optional(),
178
172
  }),
179
173
  });
180
- const PersonRole = zod_1.default.discriminatedUnion('type', [
174
+ const PersonRole = z.discriminatedUnion('type', [
181
175
  StudentRole,
182
176
  TeacherRole,
183
177
  AdminRole,
184
178
  StaffRole,
185
179
  ]);
186
- const IdentityDocument = zod_1.default.object({
187
- type: zod_1.default.literal('id_card'),
188
- number: zod_1.default.string().regex(/^[A-Z0-9]{5,20}$/),
189
- issuingAuthority: zod_1.default.string(),
190
- issueDate: zod_1.default.date(),
191
- expiryDate: zod_1.default.date().optional(),
192
- photoUrl: zod_1.default.url().optional(),
193
- verified: zod_1.default.boolean().default(false),
180
+ const IdentityDocument = z.object({
181
+ type: z.literal('id_card'),
182
+ number: z.string().regex(/^[A-Z0-9]{5,20}$/),
183
+ issuingAuthority: z.string(),
184
+ issueDate: z.date(),
185
+ expiryDate: z.date().optional(),
186
+ photoUrl: z.url().optional(),
187
+ verified: z.boolean().default(false),
194
188
  });
195
- const PassportDocument = zod_1.default.object({
196
- type: zod_1.default.literal('passport'),
197
- number: zod_1.default.string().regex(/^[A-Z0-9]{8,12}$/),
198
- country: zod_1.default.string().length(3),
199
- nationality: zod_1.default.string(),
200
- issueDate: zod_1.default.date(),
201
- expiryDate: zod_1.default.date(),
202
- visaInfo: zod_1.default.array(zod_1.default.object({
203
- country: zod_1.default.string().length(3),
204
- type: zod_1.default.string(),
205
- issueDate: zod_1.default.date(),
206
- expiryDate: zod_1.default.date(),
189
+ const PassportDocument = z.object({
190
+ type: z.literal('passport'),
191
+ number: z.string().regex(/^[A-Z0-9]{8,12}$/),
192
+ country: z.string().length(3),
193
+ nationality: z.string(),
194
+ issueDate: z.date(),
195
+ expiryDate: z.date(),
196
+ visaInfo: z.array(z.object({
197
+ country: z.string().length(3),
198
+ type: z.string(),
199
+ issueDate: z.date(),
200
+ expiryDate: z.date(),
207
201
  })).max(5).optional(),
208
202
  });
209
- const ProfessionalDocument = zod_1.default.object({
210
- type: zod_1.default.literal('professional'),
211
- number: zod_1.default.string().regex(/^[A-Z0-9]{5,15}$/),
212
- category: zod_1.default.string(),
213
- council: zod_1.default.string(),
214
- state: zod_1.default.string().length(2),
215
- validity: zod_1.default.date(),
203
+ const ProfessionalDocument = z.object({
204
+ type: z.literal('professional'),
205
+ number: z.string().regex(/^[A-Z0-9]{5,15}$/),
206
+ category: z.string(),
207
+ council: z.string(),
208
+ state: z.string().length(2),
209
+ validity: z.date(),
216
210
  });
217
- const Documents = zod_1.default.array(zod_1.default.union([IdentityDocument, PassportDocument, ProfessionalDocument])).max(5).optional();
218
- const HealthInfo = zod_1.default.object({
219
- bloodType: zod_1.default.enum(['A+', 'A-', 'B+', 'B-', 'AB+', 'AB-', 'O+', 'O-']).optional(),
220
- allergies: zod_1.default.array(zod_1.default.string()).max(20).optional(),
221
- medications: zod_1.default.array(zod_1.default.object({
222
- name: zod_1.default.string(),
223
- dosage: zod_1.default.string(),
224
- frequency: zod_1.default.string(),
225
- prescribedBy: zod_1.default.string().optional(),
211
+ const Documents = z.array(z.union([IdentityDocument, PassportDocument, ProfessionalDocument])).max(5).optional();
212
+ const HealthInfo = z.object({
213
+ bloodType: z.enum(['A+', 'A-', 'B+', 'B-', 'AB+', 'AB-', 'O+', 'O-']).optional(),
214
+ allergies: z.array(z.string()).max(20).optional(),
215
+ medications: z.array(z.object({
216
+ name: z.string(),
217
+ dosage: z.string(),
218
+ frequency: z.string(),
219
+ prescribedBy: z.string().optional(),
226
220
  })).max(10).optional(),
227
- disabilities: zod_1.default.array(zod_1.default.object({
228
- type: zod_1.default.string(),
229
- description: zod_1.default.string(),
230
- accommodations: zod_1.default.array(zod_1.default.string()).optional(),
221
+ disabilities: z.array(z.object({
222
+ type: z.string(),
223
+ description: z.string(),
224
+ accommodations: z.array(z.string()).optional(),
231
225
  })).max(5).optional(),
232
- emergencyMedicalContacts: zod_1.default.array(zod_1.default.object({
233
- name: zod_1.default.string(),
234
- relationship: zod_1.default.string(),
235
- phone: zod_1.default.string().regex(/^\d{10,11}$/),
236
- priority: zod_1.default.number().min(1).max(3),
226
+ emergencyMedicalContacts: z.array(z.object({
227
+ name: z.string(),
228
+ relationship: z.string(),
229
+ phone: z.string().regex(/^\d{10,11}$/),
230
+ priority: z.number().min(1).max(3),
237
231
  })).max(3).optional(),
238
232
  });
239
- const Preferences = zod_1.default.object({
240
- notification: zod_1.default.object({
241
- email: zod_1.default.boolean().default(true),
242
- sms: zod_1.default.boolean().default(false),
243
- push: zod_1.default.boolean().default(true),
244
- digest: zod_1.default.enum(['daily', 'weekly', 'monthly', 'never']).default('weekly'),
233
+ const Preferences = z.object({
234
+ notification: z.object({
235
+ email: z.boolean().default(true),
236
+ sms: z.boolean().default(false),
237
+ push: z.boolean().default(true),
238
+ digest: z.enum(['daily', 'weekly', 'monthly', 'never']).default('weekly'),
245
239
  }),
246
- privacy: zod_1.default.object({
247
- profileVisible: zod_1.default.boolean().default(true),
248
- searchable: zod_1.default.boolean().default(true),
249
- showEmail: zod_1.default.boolean().default(false),
250
- showPhone: zod_1.default.boolean().default(false),
251
- dataSharing: zod_1.default.enum(['none', 'essential', 'all']).default('essential'),
240
+ privacy: z.object({
241
+ profileVisible: z.boolean().default(true),
242
+ searchable: z.boolean().default(true),
243
+ showEmail: z.boolean().default(false),
244
+ showPhone: z.boolean().default(false),
245
+ dataSharing: z.enum(['none', 'essential', 'all']).default('essential'),
252
246
  }),
253
- language: zod_1.default.string().default('pt-BR'),
254
- timeFormat: zod_1.default.enum(['12h', '24h']).default('24h'),
255
- dateFormat: zod_1.default.enum(['DD/MM/YYYY', 'MM/DD/YYYY', 'YYYY-MM-DD']).default('DD/MM/YYYY'),
247
+ language: z.string().default('pt-BR'),
248
+ timeFormat: z.enum(['12h', '24h']).default('24h'),
249
+ dateFormat: z.enum(['DD/MM/YYYY', 'MM/DD/YYYY', 'YYYY-MM-DD']).default('DD/MM/YYYY'),
256
250
  });
257
- const StatusHistory = zod_1.default.array(zod_1.default.object({
258
- status: zod_1.default.enum(['active', 'inactive', 'pending', 'suspended', 'graduated', 'terminated']),
259
- effectiveDate: zod_1.default.date(),
260
- reason: zod_1.default.string().optional(),
261
- changedBy: zod_1.default.uuid().optional(),
251
+ const StatusHistory = z.array(z.object({
252
+ status: z.enum(['active', 'inactive', 'pending', 'suspended', 'graduated', 'terminated']),
253
+ effectiveDate: z.date(),
254
+ reason: z.string().optional(),
255
+ changedBy: z.uuid().optional(),
262
256
  })).min(1);
263
- const StudentMetadata = zod_1.default.object({
264
- advisorId: zod_1.default.uuid().optional(),
265
- thesisTitle: zod_1.default.string().optional(),
266
- researchArea: zod_1.default.string().optional(),
267
- publications: zod_1.default.array(zod_1.default.object({
268
- title: zod_1.default.string(),
269
- year: zod_1.default.number().int().min(2000).max(2030),
270
- venue: zod_1.default.string().optional(),
257
+ const StudentMetadata = z.object({
258
+ advisorId: z.uuid().optional(),
259
+ thesisTitle: z.string().optional(),
260
+ researchArea: z.string().optional(),
261
+ publications: z.array(z.object({
262
+ title: z.string(),
263
+ year: z.number().int().min(2000).max(2030),
264
+ venue: z.string().optional(),
271
265
  })).max(20).optional(),
272
266
  });
273
- const TeacherMetadata = zod_1.default.object({
274
- researchInterests: zod_1.default.array(zod_1.default.string()).max(10).optional(),
275
- publicationsCount: zod_1.default.number().int().min(0),
276
- grants: zod_1.default.array(zod_1.default.object({
277
- id: zod_1.default.string(),
278
- title: zod_1.default.string(),
279
- fundingAgency: zod_1.default.string(),
280
- amount: zod_1.default.number().positive(),
281
- period: zod_1.default.string(),
267
+ const TeacherMetadata = z.object({
268
+ researchInterests: z.array(z.string()).max(10).optional(),
269
+ publicationsCount: z.number().int().min(0),
270
+ grants: z.array(z.object({
271
+ id: z.string(),
272
+ title: z.string(),
273
+ fundingAgency: z.string(),
274
+ amount: z.number().positive(),
275
+ period: z.string(),
282
276
  })).max(10).optional(),
283
- officeLocation: zod_1.default.string(),
277
+ officeLocation: z.string(),
284
278
  });
285
- const AdminMetadata = zod_1.default.object({
286
- budgetResponsibility: zod_1.default.number().positive().optional(),
287
- teamSize: zod_1.default.number().int().min(0),
288
- projects: zod_1.default.array(zod_1.default.object({
289
- name: zod_1.default.string(),
290
- status: zod_1.default.enum(['planning', 'active', 'completed', 'cancelled']),
291
- deadline: zod_1.default.date().optional(),
279
+ const AdminMetadata = z.object({
280
+ budgetResponsibility: z.number().positive().optional(),
281
+ teamSize: z.number().int().min(0),
282
+ projects: z.array(z.object({
283
+ name: z.string(),
284
+ status: z.enum(['planning', 'active', 'completed', 'cancelled']),
285
+ deadline: z.date().optional(),
292
286
  })).max(10).optional(),
293
287
  });
294
- const Metadata = zod_1.default.union([
288
+ const Metadata = z.union([
295
289
  StudentMetadata,
296
290
  TeacherMetadata,
297
291
  AdminMetadata,
298
292
  ]);
299
- exports.PersonEntitySchema = zod_1.default.object({
300
- name: zod_1.default.object({
301
- firstName: zod_1.default.string().min(2).max(50),
302
- lastName: zod_1.default.string().min(2).max(50),
303
- middleName: zod_1.default.string().optional(),
304
- preferredName: zod_1.default.string().optional(),
305
- title: zod_1.default.enum(['Mr.', 'Mrs.', 'Ms.', 'Dr.', 'Prof.']).optional(),
293
+ export const PersonEntitySchema = z.object({
294
+ name: z.object({
295
+ firstName: z.string().min(2).max(50),
296
+ lastName: z.string().min(2).max(50),
297
+ middleName: z.string().optional(),
298
+ preferredName: z.string().optional(),
299
+ title: z.enum(['Mr.', 'Mrs.', 'Ms.', 'Dr.', 'Prof.']).optional(),
306
300
  }),
307
- demographic: zod_1.default.object({
308
- birthDate: zod_1.default.date(),
309
- age: zod_1.default.number().int().min(0).max(120),
310
- gender: zod_1.default.enum(['male', 'female', 'non_binary', 'prefer_not_to_say']),
311
- nationality: zod_1.default.string(),
312
- maritalStatus: zod_1.default.enum(['single', 'married', 'divorced', 'widowed']).optional(),
301
+ demographic: z.object({
302
+ birthDate: z.date(),
303
+ age: z.number().int().min(0).max(120),
304
+ gender: z.enum(['male', 'female', 'non_binary', 'prefer_not_to_say']),
305
+ nationality: z.string(),
306
+ maritalStatus: z.enum(['single', 'married', 'divorced', 'widowed']).optional(),
313
307
  }),
314
- officialDocuments: zod_1.default.object({
315
- cpf: zod_1.default.string().regex(/^\d{11}$/),
316
- rg: zod_1.default.string().regex(/^\d{7,9}$/),
317
- pis: zod_1.default.string().regex(/^\d{11}$/).optional(),
318
- voterId: zod_1.default.string().regex(/^\d{12}$/).optional(),
308
+ officialDocuments: z.object({
309
+ cpf: z.string().regex(/^\d{11}$/),
310
+ rg: z.string().regex(/^\d{7,9}$/),
311
+ pis: z.string().regex(/^\d{11}$/).optional(),
312
+ voterId: z.string().regex(/^\d{12}$/).optional(),
319
313
  }),
320
314
  role: PersonRole,
321
- status: zod_1.default.enum(['active', 'inactive', 'pending', 'suspended', 'graduated', 'terminated']),
315
+ status: z.enum(['active', 'inactive', 'pending', 'suspended', 'graduated', 'terminated']),
322
316
  statusHistory: StatusHistory,
323
- emergencyContacts: zod_1.default.array(zod_1.default.object({
324
- name: zod_1.default.string(),
325
- phone: zod_1.default.string().regex(/^\d{10,11}$/),
326
- relationship: zod_1.default.enum(['parent', 'spouse', 'child', 'sibling', 'friend', 'other']),
327
- priority: zod_1.default.number().min(1).max(3),
328
- availableHours: zod_1.default.string().optional(),
317
+ emergencyContacts: z.array(z.object({
318
+ name: z.string(),
319
+ phone: z.string().regex(/^\d{10,11}$/),
320
+ relationship: z.enum(['parent', 'spouse', 'child', 'sibling', 'friend', 'other']),
321
+ priority: z.number().min(1).max(3),
322
+ availableHours: z.string().optional(),
329
323
  })).min(1).max(5),
330
324
  documents: Documents,
331
325
  contactInfo: ContactInfo,
332
- addresses: zod_1.default.array(Address).min(1).max(3),
326
+ addresses: z.array(Address).min(1).max(3),
333
327
  financialInfo: FinancialInfo.optional(),
334
328
  healthInfo: HealthInfo.optional(),
335
329
  preferences: Preferences,
336
330
  roleSpecificMetadata: Metadata.optional(),
337
- academicHistory: zod_1.default.array(AcademicRecord).max(10).optional(),
338
- system: zod_1.default.object({
339
- isVerified: zod_1.default.boolean().default(false),
340
- verificationLevel: zod_1.default.number().min(0).max(3).default(0),
341
- lastLogin: zod_1.default.date().optional(),
342
- loginCount: zod_1.default.number().int().min(0).default(0),
343
- tags: zod_1.default.array(zod_1.default.string()).max(20).optional(),
344
- flags: zod_1.default.array(zod_1.default.enum(['high_value', 'at_risk', 'vip', 'fraud_risk', 'legacy'])).optional(),
331
+ academicHistory: z.array(AcademicRecord).max(10).optional(),
332
+ system: z.object({
333
+ isVerified: z.boolean().default(false),
334
+ verificationLevel: z.number().min(0).max(3).default(0),
335
+ lastLogin: z.date().optional(),
336
+ loginCount: z.number().int().min(0).default(0),
337
+ tags: z.array(z.string()).max(20).optional(),
338
+ flags: z.array(z.enum(['high_value', 'at_risk', 'vip', 'fraud_risk', 'legacy'])).optional(),
345
339
  }),
346
340
  }).and(Identifiable).and(Auditable);
347
341
  describe('PersonEntity with Complex Schema', () => {
348
- const entityMock = new zod_mock_schema_js_1.ZodMockSchema(exports.PersonEntitySchema);
342
+ const entityMock = new ZodMockSchema(PersonEntitySchema);
349
343
  test('should generate complex mock data', () => {
350
344
  const mock = entityMock.generate();
351
345
  expect(mock).toBeDefined();
@@ -357,15 +351,15 @@ describe('PersonEntity with Complex Schema', () => {
357
351
  describe('New Zod Types Support', () => {
358
352
  describe('ZodSet', () => {
359
353
  test('should generate a Set with elements', () => {
360
- const schema = zod_1.default.set(zod_1.default.string());
361
- const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
354
+ const schema = z.set(z.string());
355
+ const mock = new ZodMockSchema(schema);
362
356
  const result = mock.generate();
363
357
  expect(result).toBeInstanceOf(Set);
364
358
  expect(result.size).toBeGreaterThan(0);
365
359
  });
366
360
  test('should respect min/max size constraints', () => {
367
- const schema = zod_1.default.set(zod_1.default.number()).min(2).max(5);
368
- const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
361
+ const schema = z.set(z.number()).min(2).max(5);
362
+ const mock = new ZodMockSchema(schema);
369
363
  const result = mock.generate();
370
364
  expect(result).toBeInstanceOf(Set);
371
365
  expect(result.size).toBeGreaterThanOrEqual(2);
@@ -374,8 +368,8 @@ describe('New Zod Types Support', () => {
374
368
  });
375
369
  describe('ZodMap', () => {
376
370
  test('should generate a Map with entries', () => {
377
- const schema = zod_1.default.map(zod_1.default.string(), zod_1.default.number());
378
- const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
371
+ const schema = z.map(z.string(), z.number());
372
+ const mock = new ZodMockSchema(schema);
379
373
  const result = mock.generate();
380
374
  expect(result).toBeInstanceOf(Map);
381
375
  expect(result.size).toBeGreaterThan(0);
@@ -383,8 +377,8 @@ describe('New Zod Types Support', () => {
383
377
  });
384
378
  describe('ZodTuple', () => {
385
379
  test('should generate a tuple with correct types', () => {
386
- const schema = zod_1.default.tuple([zod_1.default.string(), zod_1.default.number(), zod_1.default.boolean()]);
387
- const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
380
+ const schema = z.tuple([z.string(), z.number(), z.boolean()]);
381
+ const mock = new ZodMockSchema(schema);
388
382
  const result = mock.generate();
389
383
  expect(Array.isArray(result)).toBe(true);
390
384
  expect(result).toHaveLength(3);
@@ -393,8 +387,8 @@ describe('New Zod Types Support', () => {
393
387
  expect(typeof result[2]).toBe('boolean');
394
388
  });
395
389
  test('should generate tuple with rest elements', () => {
396
- const schema = zod_1.default.tuple([zod_1.default.string()]).rest(zod_1.default.number());
397
- const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
390
+ const schema = z.tuple([z.string()]).rest(z.number());
391
+ const mock = new ZodMockSchema(schema);
398
392
  const result = mock.generate();
399
393
  expect(Array.isArray(result)).toBe(true);
400
394
  expect(result.length).toBeGreaterThanOrEqual(1);
@@ -403,8 +397,8 @@ describe('New Zod Types Support', () => {
403
397
  });
404
398
  describe('ZodFunction', () => {
405
399
  test('should generate a function that returns mocked value', () => {
406
- const schema = zod_1.default.function();
407
- const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
400
+ const schema = z.function();
401
+ const mock = new ZodMockSchema(schema);
408
402
  const result = mock.generate();
409
403
  expect(typeof result).toBe('function');
410
404
  expect(result).toBeDefined();
@@ -412,11 +406,11 @@ describe('New Zod Types Support', () => {
412
406
  });
413
407
  describe('ZodDiscriminatedUnion', () => {
414
408
  test('should generate one of the union options', () => {
415
- const schema = zod_1.default.discriminatedUnion('type', [
416
- zod_1.default.object({ type: zod_1.default.literal('a'), value: zod_1.default.string() }),
417
- zod_1.default.object({ type: zod_1.default.literal('b'), value: zod_1.default.number() }),
409
+ const schema = z.discriminatedUnion('type', [
410
+ z.object({ type: z.literal('a'), value: z.string() }),
411
+ z.object({ type: z.literal('b'), value: z.number() }),
418
412
  ]);
419
- const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
413
+ const mock = new ZodMockSchema(schema);
420
414
  const result = mock.generate();
421
415
  expect(result).toBeDefined();
422
416
  expect(['a', 'b']).toContain(result.type);
@@ -424,8 +418,8 @@ describe('New Zod Types Support', () => {
424
418
  });
425
419
  describe('ZodBigInt', () => {
426
420
  test('should generate a BigInt', () => {
427
- const schema = zod_1.default.bigint();
428
- const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
421
+ const schema = z.bigint();
422
+ const mock = new ZodMockSchema(schema);
429
423
  const result = mock.generate();
430
424
  expect(typeof result).toBe('bigint');
431
425
  expect(result).toBeGreaterThan(BigInt(0));
@@ -433,16 +427,16 @@ describe('New Zod Types Support', () => {
433
427
  });
434
428
  describe('ZodNaN', () => {
435
429
  test('should generate NaN', () => {
436
- const schema = zod_1.default.nan();
437
- const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
430
+ const schema = z.nan();
431
+ const mock = new ZodMockSchema(schema);
438
432
  const result = mock.generate();
439
433
  expect(Number.isNaN(result)).toBe(true);
440
434
  });
441
435
  });
442
436
  describe('ZodReadonly', () => {
443
437
  test('should generate readonly object', () => {
444
- const schema = zod_1.default.object({ name: zod_1.default.string() }).readonly();
445
- const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
438
+ const schema = z.object({ name: z.string() }).readonly();
439
+ const mock = new ZodMockSchema(schema);
446
440
  const result = mock.generate();
447
441
  expect(result).toBeDefined();
448
442
  expect(typeof result.name).toBe('string');
@@ -452,20 +446,20 @@ describe('New Zod Types Support', () => {
452
446
  describe('Improved Constraints', () => {
453
447
  describe('String min/max', () => {
454
448
  test('should respect min length', () => {
455
- const schema = zod_1.default.string().min(10);
456
- const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
449
+ const schema = z.string().min(10);
450
+ const mock = new ZodMockSchema(schema);
457
451
  const result = mock.generate();
458
452
  expect(result.length).toBeGreaterThanOrEqual(10);
459
453
  });
460
454
  test('should respect max length', () => {
461
- const schema = zod_1.default.string().max(5);
462
- const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
455
+ const schema = z.string().max(5);
456
+ const mock = new ZodMockSchema(schema);
463
457
  const result = mock.generate();
464
458
  expect(result.length).toBeLessThanOrEqual(5);
465
459
  });
466
460
  test('should respect both min and max', () => {
467
- const schema = zod_1.default.string().min(5).max(10);
468
- const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
461
+ const schema = z.string().min(5).max(10);
462
+ const mock = new ZodMockSchema(schema);
469
463
  const result = mock.generate();
470
464
  expect(result.length).toBeGreaterThanOrEqual(5);
471
465
  expect(result.length).toBeLessThanOrEqual(10);
@@ -475,8 +469,8 @@ describe('Improved Constraints', () => {
475
469
  test('should respect date range', () => {
476
470
  const minDate = new Date('2025-01-01');
477
471
  const maxDate = new Date('2025-12-31');
478
- const schema = zod_1.default.date().min(minDate).max(maxDate);
479
- const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
472
+ const schema = z.date().min(minDate).max(maxDate);
473
+ const mock = new ZodMockSchema(schema);
480
474
  const result = mock.generate();
481
475
  expect(result).toBeInstanceOf(Date);
482
476
  expect(result.getTime()).toBeGreaterThanOrEqual(minDate.getTime());
@@ -485,14 +479,14 @@ describe('Improved Constraints', () => {
485
479
  });
486
480
  describe('ZodDefault always uses default value', () => {
487
481
  test('should always return the default value', () => {
488
- const schema = zod_1.default.string().default('DEFAULT_VALUE');
489
- const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
482
+ const schema = z.string().default('DEFAULT_VALUE');
483
+ const mock = new ZodMockSchema(schema);
490
484
  const results = Array.from({ length: 10 }, () => mock.generate());
491
485
  expect(results.every(r => r === 'DEFAULT_VALUE')).toBe(true);
492
486
  });
493
487
  test('should work with default numbers', () => {
494
- const schema = zod_1.default.number().default(42);
495
- const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
488
+ const schema = z.number().default(42);
489
+ const mock = new ZodMockSchema(schema);
496
490
  const result = mock.generate();
497
491
  expect(result).toBe(42);
498
492
  });
@@ -500,31 +494,31 @@ describe('Improved Constraints', () => {
500
494
  });
501
495
  describe('Seed Support', () => {
502
496
  test('should generate same data with same seed', () => {
503
- const schema = zod_1.default.object({
504
- name: zod_1.default.string(),
505
- age: zod_1.default.number(),
506
- email: zod_1.default.email(),
497
+ const schema = z.object({
498
+ name: z.string(),
499
+ age: z.number(),
500
+ email: z.email(),
507
501
  });
508
- const mock1 = new zod_mock_schema_js_1.ZodMockSchema(schema).seed(12345);
502
+ const mock1 = new ZodMockSchema(schema).seed(12345);
509
503
  const result1 = mock1.generate();
510
- const mock2 = new zod_mock_schema_js_1.ZodMockSchema(schema).seed(12345);
504
+ const mock2 = new ZodMockSchema(schema).seed(12345);
511
505
  const result2 = mock2.generate();
512
506
  expect(result1).toEqual(result2);
513
507
  });
514
508
  test('should generate different data with different seeds', () => {
515
- const schema = zod_1.default.object({
516
- name: zod_1.default.string(),
517
- age: zod_1.default.number(),
509
+ const schema = z.object({
510
+ name: z.string(),
511
+ age: z.number(),
518
512
  });
519
- const mock1 = new zod_mock_schema_js_1.ZodMockSchema(schema).seed(111);
513
+ const mock1 = new ZodMockSchema(schema).seed(111);
520
514
  const result1 = mock1.generate();
521
- const mock2 = new zod_mock_schema_js_1.ZodMockSchema(schema).seed(222);
515
+ const mock2 = new ZodMockSchema(schema).seed(222);
522
516
  const result2 = mock2.generate();
523
517
  expect(result1).not.toEqual(result2);
524
518
  });
525
519
  test('should support array seed', () => {
526
- const schema = zod_1.default.string();
527
- const mock = new zod_mock_schema_js_1.ZodMockSchema(schema).seed([1, 2, 3]);
520
+ const schema = z.string();
521
+ const mock = new ZodMockSchema(schema).seed([1, 2, 3]);
528
522
  const result = mock.generate();
529
523
  expect(typeof result).toBe('string');
530
524
  });