@mikemajesty/zod-mock-schema 1.0.18 → 1.0.22

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 (53) hide show
  1. package/README.md +106 -34
  2. package/dist/__tests__/advanced-schemas.spec.js +46 -44
  3. package/dist/__tests__/advanced-schemas.spec.js.map +1 -1
  4. package/dist/__tests__/brazilian-formats.spec.js +69 -67
  5. package/dist/__tests__/brazilian-formats.spec.js.map +1 -1
  6. package/dist/__tests__/complex-intersections.spec.js +28 -26
  7. package/dist/__tests__/complex-intersections.spec.js.map +1 -1
  8. package/dist/__tests__/edge-cases.spec.js +66 -64
  9. package/dist/__tests__/edge-cases.spec.js.map +1 -1
  10. package/dist/__tests__/faker-injection.spec.js +40 -38
  11. package/dist/__tests__/faker-injection.spec.js.map +1 -1
  12. package/dist/__tests__/overrides-all-types.spec.js +85 -83
  13. package/dist/__tests__/overrides-all-types.spec.js.map +1 -1
  14. package/dist/__tests__/overrides.spec.js +95 -93
  15. package/dist/__tests__/overrides.spec.js.map +1 -1
  16. package/dist/__tests__/unsupported-types.spec.js +5 -3
  17. package/dist/__tests__/unsupported-types.spec.js.map +1 -1
  18. package/dist/__tests__/zod-types.spec.js +314 -308
  19. package/dist/__tests__/zod-types.spec.js.map +1 -1
  20. package/dist/cjs/__tests__/advanced-schemas.spec.js +151 -0
  21. package/dist/cjs/__tests__/advanced-schemas.spec.js.map +1 -0
  22. package/dist/cjs/__tests__/brazilian-formats.spec.js +207 -0
  23. package/dist/cjs/__tests__/brazilian-formats.spec.js.map +1 -0
  24. package/dist/cjs/__tests__/complex-intersections.spec.js +178 -0
  25. package/dist/cjs/__tests__/complex-intersections.spec.js.map +1 -0
  26. package/dist/cjs/__tests__/edge-cases.spec.js +208 -0
  27. package/dist/cjs/__tests__/edge-cases.spec.js.map +1 -0
  28. package/dist/cjs/__tests__/faker-injection.spec.js +112 -0
  29. package/dist/cjs/__tests__/faker-injection.spec.js.map +1 -0
  30. package/dist/cjs/__tests__/overrides-all-types.spec.js +285 -0
  31. package/dist/cjs/__tests__/overrides-all-types.spec.js.map +1 -0
  32. package/dist/cjs/__tests__/overrides.spec.js +347 -0
  33. package/dist/cjs/__tests__/overrides.spec.js.map +1 -0
  34. package/dist/cjs/__tests__/unsupported-types.spec.js +29 -0
  35. package/dist/cjs/__tests__/unsupported-types.spec.js.map +1 -0
  36. package/dist/cjs/__tests__/zod-types.spec.js +532 -0
  37. package/dist/cjs/__tests__/zod-types.spec.js.map +1 -0
  38. package/dist/cjs/constants.js +87 -0
  39. package/dist/cjs/constants.js.map +1 -0
  40. package/dist/cjs/index.js +6 -0
  41. package/dist/cjs/index.js.map +1 -0
  42. package/dist/cjs/types.js +3 -0
  43. package/dist/cjs/types.js.map +1 -0
  44. package/dist/cjs/zod-mock-schema.js +373 -0
  45. package/dist/cjs/zod-mock-schema.js.map +1 -0
  46. package/dist/constants.js +5 -1
  47. package/dist/constants.js.map +1 -1
  48. package/dist/index.js +5 -1
  49. package/dist/index.js.map +1 -1
  50. package/dist/types.js +2 -1
  51. package/dist/zod-mock-schema.js +80 -73
  52. package/dist/zod-mock-schema.js.map +1 -1
  53. package/package.json +5 -6
@@ -1,345 +1,351 @@
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),
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),
9
15
  });
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(),
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(),
19
25
  })).max(100).optional(),
20
26
  });
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),
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),
30
36
  }).optional(),
31
37
  });
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),
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),
46
52
  }).optional(),
47
53
  });
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'),
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'),
52
58
  });
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(),
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(),
61
67
  });
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),
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),
68
74
  });
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(),
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(),
80
86
  }),
81
- status: z.enum(['active', 'inactive', 'completed', 'cancelled']),
87
+ status: zod_1.default.enum(['active', 'inactive', 'completed', 'cancelled']),
82
88
  });
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({
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({
89
95
  course: Course,
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(),
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(),
93
99
  })).max(10),
94
100
  });
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(),
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(),
100
106
  academicRecord: AcademicRecord,
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(),
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(),
108
114
  })).max(3).optional(),
109
- campus: z.enum(['main', 'north', 'south', 'online']),
115
+ campus: zod_1.default.enum(['main', 'north', 'south', 'online']),
110
116
  });
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([
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([
116
122
  'computer_science', 'mathematics', 'physics', 'chemistry',
117
123
  'biology', 'engineering', 'business', 'arts', 'law', 'medicine'
118
124
  ]),
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(),
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(),
125
131
  }),
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']),
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']),
132
138
  })).max(5).optional(),
133
- coursesTeaching: z.array(z.object({
139
+ coursesTeaching: zod_1.default.array(zod_1.default.object({
134
140
  course: Course,
135
- semester: z.string().regex(/^\d{4}\.[12]$/),
136
- section: z.string().regex(/^[A-Z]$/),
141
+ semester: zod_1.default.string().regex(/^\d{4}\.[12]$/),
142
+ section: zod_1.default.string().regex(/^[A-Z]$/),
137
143
  })).max(4),
138
144
  });
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([
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([
144
150
  'human_resources', 'information_technology', 'finance',
145
151
  'operations', 'admissions', 'student_affairs', 'facilities'
146
152
  ]),
147
- level: z.number().min(1).max(10),
148
- permissions: z.array(z.object({
149
- resource: z.enum([
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([
150
156
  'users', 'courses', 'enrollments', 'grades', 'payments',
151
157
  'reports', 'settings', 'audit_logs', 'notifications'
152
158
  ]),
153
- actions: z.array(z.enum(['read', 'create', 'update', 'delete', 'approve', 'export'])).min(1),
154
- scope: z.enum(['global', 'department', 'personal']),
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']),
155
161
  })).min(1),
156
- reportsTo: z.uuid().optional(),
157
- managedDepartments: z.array(z.string()).optional(),
162
+ reportsTo: zod_1.default.uuid().optional(),
163
+ managedDepartments: zod_1.default.array(zod_1.default.string()).optional(),
158
164
  });
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([
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([
164
170
  'librarian', 'technician', 'counselor', 'coordinator',
165
171
  'assistant', 'specialist', 'analyst', 'supervisor'
166
172
  ]),
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(),
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(),
172
178
  }),
173
179
  });
174
- const PersonRole = z.discriminatedUnion('type', [
180
+ const PersonRole = zod_1.default.discriminatedUnion('type', [
175
181
  StudentRole,
176
182
  TeacherRole,
177
183
  AdminRole,
178
184
  StaffRole,
179
185
  ]);
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),
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),
188
194
  });
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(),
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(),
201
207
  })).max(5).optional(),
202
208
  });
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(),
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(),
210
216
  });
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(),
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(),
220
226
  })).max(10).optional(),
221
- disabilities: z.array(z.object({
222
- type: z.string(),
223
- description: z.string(),
224
- accommodations: z.array(z.string()).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(),
225
231
  })).max(5).optional(),
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),
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),
231
237
  })).max(3).optional(),
232
238
  });
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'),
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'),
239
245
  }),
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'),
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'),
246
252
  }),
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'),
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'),
250
256
  });
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(),
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(),
256
262
  })).min(1);
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(),
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(),
265
271
  })).max(20).optional(),
266
272
  });
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(),
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(),
276
282
  })).max(10).optional(),
277
- officeLocation: z.string(),
283
+ officeLocation: zod_1.default.string(),
278
284
  });
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(),
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(),
286
292
  })).max(10).optional(),
287
293
  });
288
- const Metadata = z.union([
294
+ const Metadata = zod_1.default.union([
289
295
  StudentMetadata,
290
296
  TeacherMetadata,
291
297
  AdminMetadata,
292
298
  ]);
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(),
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(),
300
306
  }),
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(),
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(),
307
313
  }),
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(),
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(),
313
319
  }),
314
320
  role: PersonRole,
315
- status: z.enum(['active', 'inactive', 'pending', 'suspended', 'graduated', 'terminated']),
321
+ status: zod_1.default.enum(['active', 'inactive', 'pending', 'suspended', 'graduated', 'terminated']),
316
322
  statusHistory: StatusHistory,
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(),
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(),
323
329
  })).min(1).max(5),
324
330
  documents: Documents,
325
331
  contactInfo: ContactInfo,
326
- addresses: z.array(Address).min(1).max(3),
332
+ addresses: zod_1.default.array(Address).min(1).max(3),
327
333
  financialInfo: FinancialInfo.optional(),
328
334
  healthInfo: HealthInfo.optional(),
329
335
  preferences: Preferences,
330
336
  roleSpecificMetadata: Metadata.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(),
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(),
339
345
  }),
340
346
  }).and(Identifiable).and(Auditable);
341
347
  describe('PersonEntity with Complex Schema', () => {
342
- const entityMock = new ZodMockSchema(PersonEntitySchema);
348
+ const entityMock = new zod_mock_schema_js_1.ZodMockSchema(exports.PersonEntitySchema);
343
349
  test('should generate complex mock data', () => {
344
350
  const mock = entityMock.generate();
345
351
  expect(mock).toBeDefined();
@@ -351,15 +357,15 @@ describe('PersonEntity with Complex Schema', () => {
351
357
  describe('New Zod Types Support', () => {
352
358
  describe('ZodSet', () => {
353
359
  test('should generate a Set with elements', () => {
354
- const schema = z.set(z.string());
355
- const mock = new ZodMockSchema(schema);
360
+ const schema = zod_1.default.set(zod_1.default.string());
361
+ const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
356
362
  const result = mock.generate();
357
363
  expect(result).toBeInstanceOf(Set);
358
364
  expect(result.size).toBeGreaterThan(0);
359
365
  });
360
366
  test('should respect min/max size constraints', () => {
361
- const schema = z.set(z.number()).min(2).max(5);
362
- const mock = new ZodMockSchema(schema);
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);
363
369
  const result = mock.generate();
364
370
  expect(result).toBeInstanceOf(Set);
365
371
  expect(result.size).toBeGreaterThanOrEqual(2);
@@ -368,8 +374,8 @@ describe('New Zod Types Support', () => {
368
374
  });
369
375
  describe('ZodMap', () => {
370
376
  test('should generate a Map with entries', () => {
371
- const schema = z.map(z.string(), z.number());
372
- const mock = new ZodMockSchema(schema);
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);
373
379
  const result = mock.generate();
374
380
  expect(result).toBeInstanceOf(Map);
375
381
  expect(result.size).toBeGreaterThan(0);
@@ -377,8 +383,8 @@ describe('New Zod Types Support', () => {
377
383
  });
378
384
  describe('ZodTuple', () => {
379
385
  test('should generate a tuple with correct types', () => {
380
- const schema = z.tuple([z.string(), z.number(), z.boolean()]);
381
- const mock = new ZodMockSchema(schema);
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);
382
388
  const result = mock.generate();
383
389
  expect(Array.isArray(result)).toBe(true);
384
390
  expect(result).toHaveLength(3);
@@ -387,8 +393,8 @@ describe('New Zod Types Support', () => {
387
393
  expect(typeof result[2]).toBe('boolean');
388
394
  });
389
395
  test('should generate tuple with rest elements', () => {
390
- const schema = z.tuple([z.string()]).rest(z.number());
391
- const mock = new ZodMockSchema(schema);
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);
392
398
  const result = mock.generate();
393
399
  expect(Array.isArray(result)).toBe(true);
394
400
  expect(result.length).toBeGreaterThanOrEqual(1);
@@ -397,8 +403,8 @@ describe('New Zod Types Support', () => {
397
403
  });
398
404
  describe('ZodFunction', () => {
399
405
  test('should generate a function that returns mocked value', () => {
400
- const schema = z.function();
401
- const mock = new ZodMockSchema(schema);
406
+ const schema = zod_1.default.function();
407
+ const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
402
408
  const result = mock.generate();
403
409
  expect(typeof result).toBe('function');
404
410
  expect(result).toBeDefined();
@@ -406,11 +412,11 @@ describe('New Zod Types Support', () => {
406
412
  });
407
413
  describe('ZodDiscriminatedUnion', () => {
408
414
  test('should generate one of the union options', () => {
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() }),
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() }),
412
418
  ]);
413
- const mock = new ZodMockSchema(schema);
419
+ const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
414
420
  const result = mock.generate();
415
421
  expect(result).toBeDefined();
416
422
  expect(['a', 'b']).toContain(result.type);
@@ -418,8 +424,8 @@ describe('New Zod Types Support', () => {
418
424
  });
419
425
  describe('ZodBigInt', () => {
420
426
  test('should generate a BigInt', () => {
421
- const schema = z.bigint();
422
- const mock = new ZodMockSchema(schema);
427
+ const schema = zod_1.default.bigint();
428
+ const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
423
429
  const result = mock.generate();
424
430
  expect(typeof result).toBe('bigint');
425
431
  expect(result).toBeGreaterThan(BigInt(0));
@@ -427,16 +433,16 @@ describe('New Zod Types Support', () => {
427
433
  });
428
434
  describe('ZodNaN', () => {
429
435
  test('should generate NaN', () => {
430
- const schema = z.nan();
431
- const mock = new ZodMockSchema(schema);
436
+ const schema = zod_1.default.nan();
437
+ const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
432
438
  const result = mock.generate();
433
439
  expect(Number.isNaN(result)).toBe(true);
434
440
  });
435
441
  });
436
442
  describe('ZodReadonly', () => {
437
443
  test('should generate readonly object', () => {
438
- const schema = z.object({ name: z.string() }).readonly();
439
- const mock = new ZodMockSchema(schema);
444
+ const schema = zod_1.default.object({ name: zod_1.default.string() }).readonly();
445
+ const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
440
446
  const result = mock.generate();
441
447
  expect(result).toBeDefined();
442
448
  expect(typeof result.name).toBe('string');
@@ -446,20 +452,20 @@ describe('New Zod Types Support', () => {
446
452
  describe('Improved Constraints', () => {
447
453
  describe('String min/max', () => {
448
454
  test('should respect min length', () => {
449
- const schema = z.string().min(10);
450
- const mock = new ZodMockSchema(schema);
455
+ const schema = zod_1.default.string().min(10);
456
+ const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
451
457
  const result = mock.generate();
452
458
  expect(result.length).toBeGreaterThanOrEqual(10);
453
459
  });
454
460
  test('should respect max length', () => {
455
- const schema = z.string().max(5);
456
- const mock = new ZodMockSchema(schema);
461
+ const schema = zod_1.default.string().max(5);
462
+ const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
457
463
  const result = mock.generate();
458
464
  expect(result.length).toBeLessThanOrEqual(5);
459
465
  });
460
466
  test('should respect both min and max', () => {
461
- const schema = z.string().min(5).max(10);
462
- const mock = new ZodMockSchema(schema);
467
+ const schema = zod_1.default.string().min(5).max(10);
468
+ const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
463
469
  const result = mock.generate();
464
470
  expect(result.length).toBeGreaterThanOrEqual(5);
465
471
  expect(result.length).toBeLessThanOrEqual(10);
@@ -469,8 +475,8 @@ describe('Improved Constraints', () => {
469
475
  test('should respect date range', () => {
470
476
  const minDate = new Date('2025-01-01');
471
477
  const maxDate = new Date('2025-12-31');
472
- const schema = z.date().min(minDate).max(maxDate);
473
- const mock = new ZodMockSchema(schema);
478
+ const schema = zod_1.default.date().min(minDate).max(maxDate);
479
+ const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
474
480
  const result = mock.generate();
475
481
  expect(result).toBeInstanceOf(Date);
476
482
  expect(result.getTime()).toBeGreaterThanOrEqual(minDate.getTime());
@@ -479,14 +485,14 @@ describe('Improved Constraints', () => {
479
485
  });
480
486
  describe('ZodDefault always uses default value', () => {
481
487
  test('should always return the default value', () => {
482
- const schema = z.string().default('DEFAULT_VALUE');
483
- const mock = new ZodMockSchema(schema);
488
+ const schema = zod_1.default.string().default('DEFAULT_VALUE');
489
+ const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
484
490
  const results = Array.from({ length: 10 }, () => mock.generate());
485
491
  expect(results.every(r => r === 'DEFAULT_VALUE')).toBe(true);
486
492
  });
487
493
  test('should work with default numbers', () => {
488
- const schema = z.number().default(42);
489
- const mock = new ZodMockSchema(schema);
494
+ const schema = zod_1.default.number().default(42);
495
+ const mock = new zod_mock_schema_js_1.ZodMockSchema(schema);
490
496
  const result = mock.generate();
491
497
  expect(result).toBe(42);
492
498
  });
@@ -494,31 +500,31 @@ describe('Improved Constraints', () => {
494
500
  });
495
501
  describe('Seed Support', () => {
496
502
  test('should generate same data with same seed', () => {
497
- const schema = z.object({
498
- name: z.string(),
499
- age: z.number(),
500
- email: z.email(),
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(),
501
507
  });
502
- const mock1 = new ZodMockSchema(schema).seed(12345);
508
+ const mock1 = new zod_mock_schema_js_1.ZodMockSchema(schema).seed(12345);
503
509
  const result1 = mock1.generate();
504
- const mock2 = new ZodMockSchema(schema).seed(12345);
510
+ const mock2 = new zod_mock_schema_js_1.ZodMockSchema(schema).seed(12345);
505
511
  const result2 = mock2.generate();
506
512
  expect(result1).toEqual(result2);
507
513
  });
508
514
  test('should generate different data with different seeds', () => {
509
- const schema = z.object({
510
- name: z.string(),
511
- age: z.number(),
515
+ const schema = zod_1.default.object({
516
+ name: zod_1.default.string(),
517
+ age: zod_1.default.number(),
512
518
  });
513
- const mock1 = new ZodMockSchema(schema).seed(111);
519
+ const mock1 = new zod_mock_schema_js_1.ZodMockSchema(schema).seed(111);
514
520
  const result1 = mock1.generate();
515
- const mock2 = new ZodMockSchema(schema).seed(222);
521
+ const mock2 = new zod_mock_schema_js_1.ZodMockSchema(schema).seed(222);
516
522
  const result2 = mock2.generate();
517
523
  expect(result1).not.toEqual(result2);
518
524
  });
519
525
  test('should support array seed', () => {
520
- const schema = z.string();
521
- const mock = new ZodMockSchema(schema).seed([1, 2, 3]);
526
+ const schema = zod_1.default.string();
527
+ const mock = new zod_mock_schema_js_1.ZodMockSchema(schema).seed([1, 2, 3]);
522
528
  const result = mock.generate();
523
529
  expect(typeof result).toBe('string');
524
530
  });