@nyig/models 0.2.11 → 0.2.12

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/index.d.mts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import * as mongoose from 'mongoose';
2
3
 
3
4
  declare const zBPaymentInfo: z.ZodObject<{
4
5
  /**
@@ -129,11 +130,11 @@ declare const zMAttendance: z.ZodObject<{
129
130
  }>;
130
131
  paid: z.ZodOptional<z.ZodBoolean>;
131
132
  campOption: z.ZodNativeEnum<typeof CampOption>;
132
- _id: z.ZodString;
133
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
133
134
  createdAt: z.ZodOptional<z.ZodDate>;
134
135
  updatedAt: z.ZodOptional<z.ZodDate>;
135
136
  }, z.UnknownKeysParam, z.ZodTypeAny, {
136
- _id: string;
137
+ _id: mongoose.Types.ObjectId;
137
138
  student: string;
138
139
  states: AttendState[];
139
140
  tuition: {
@@ -146,7 +147,7 @@ declare const zMAttendance: z.ZodObject<{
146
147
  createdAt?: Date | undefined;
147
148
  updatedAt?: Date | undefined;
148
149
  }, {
149
- _id: string;
150
+ _id: mongoose.Types.ObjectId;
150
151
  student: string;
151
152
  states: AttendState[];
152
153
  tuition: {
@@ -206,11 +207,11 @@ declare const zMCampTracker: z.ZodObject<{
206
207
  semester: z.ZodString;
207
208
  occurrences: z.ZodArray<z.ZodString, "many">;
208
209
  attendances: z.ZodArray<z.ZodString, "many">;
209
- _id: z.ZodString;
210
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
210
211
  createdAt: z.ZodOptional<z.ZodDate>;
211
212
  updatedAt: z.ZodOptional<z.ZodDate>;
212
213
  }, z.UnknownKeysParam, z.ZodTypeAny, {
213
- _id: string;
214
+ _id: mongoose.Types.ObjectId;
214
215
  course: string;
215
216
  teacher: string;
216
217
  semester: string;
@@ -220,7 +221,7 @@ declare const zMCampTracker: z.ZodObject<{
220
221
  createdAt?: Date | undefined;
221
222
  updatedAt?: Date | undefined;
222
223
  }, {
223
- _id: string;
224
+ _id: mongoose.Types.ObjectId;
224
225
  course: string;
225
226
  teacher: string;
226
227
  semester: string;
@@ -255,9 +256,7 @@ declare const zClassTracker: z.ZodObject<{
255
256
  tuition: z.ZodOptional<z.ZodObject<{
256
257
  primary: z.ZodNumber;
257
258
  textbook: z.ZodOptional<z.ZodBoolean>;
258
- shipping: z.ZodOptional<z.ZodBoolean>; /**
259
- * Mongoose object ID
260
- */
259
+ shipping: z.ZodOptional<z.ZodBoolean>;
261
260
  }, "strip", z.ZodTypeAny, {
262
261
  primary: number;
263
262
  textbook?: boolean | undefined;
@@ -303,9 +302,7 @@ declare const zMClassTracker: z.ZodObject<{
303
302
  tuition: z.ZodOptional<z.ZodObject<{
304
303
  primary: z.ZodNumber;
305
304
  textbook: z.ZodOptional<z.ZodBoolean>;
306
- shipping: z.ZodOptional<z.ZodBoolean>; /**
307
- * Mongoose object ID
308
- */
305
+ shipping: z.ZodOptional<z.ZodBoolean>;
309
306
  }, "strip", z.ZodTypeAny, {
310
307
  primary: number;
311
308
  textbook?: boolean | undefined;
@@ -322,11 +319,11 @@ declare const zMClassTracker: z.ZodObject<{
322
319
  classTimes: z.ZodArray<z.ZodDate, "many">;
323
320
  completedList: z.ZodArray<z.ZodBoolean, "many">;
324
321
  completed: z.ZodOptional<z.ZodBoolean>;
325
- _id: z.ZodString;
322
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
326
323
  createdAt: z.ZodOptional<z.ZodDate>;
327
324
  updatedAt: z.ZodOptional<z.ZodDate>;
328
325
  }, z.UnknownKeysParam, z.ZodTypeAny, {
329
- _id: string;
326
+ _id: mongoose.Types.ObjectId;
330
327
  course: string;
331
328
  teacher: string;
332
329
  semester: string;
@@ -343,7 +340,7 @@ declare const zMClassTracker: z.ZodObject<{
343
340
  createdAt?: Date | undefined;
344
341
  updatedAt?: Date | undefined;
345
342
  }, {
346
- _id: string;
343
+ _id: mongoose.Types.ObjectId;
347
344
  course: string;
348
345
  teacher: string;
349
346
  semester: string;
@@ -440,11 +437,11 @@ declare const zMCourse: z.ZodObject<{
440
437
  recLevel: z.ZodString;
441
438
  halfCampTuition: z.ZodNumber;
442
439
  fullCampTuition: z.ZodNumber;
443
- _id: z.ZodString;
440
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
444
441
  createdAt: z.ZodOptional<z.ZodDate>;
445
442
  updatedAt: z.ZodOptional<z.ZodDate>;
446
443
  }, z.UnknownKeysParam, z.ZodTypeAny, {
447
- _id: string;
444
+ _id: mongoose.Types.ObjectId;
448
445
  price: number;
449
446
  name: string;
450
447
  category: CourseCategory;
@@ -457,7 +454,7 @@ declare const zMCourse: z.ZodObject<{
457
454
  createdAt?: Date | undefined;
458
455
  updatedAt?: Date | undefined;
459
456
  }, {
460
- _id: string;
457
+ _id: mongoose.Types.ObjectId;
461
458
  price: number;
462
459
  name: string;
463
460
  category: CourseCategory;
@@ -566,11 +563,11 @@ declare const zMGroupTracker: z.ZodObject<{
566
563
  courseId: z.ZodOptional<z.ZodString>;
567
564
  ageGroup: z.ZodOptional<z.ZodNativeEnum<typeof AgeGroup>>;
568
565
  isNonPublic: z.ZodOptional<z.ZodBoolean>;
569
- _id: z.ZodString;
566
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
570
567
  createdAt: z.ZodOptional<z.ZodDate>;
571
568
  updatedAt: z.ZodOptional<z.ZodDate>;
572
569
  }, z.UnknownKeysParam, z.ZodTypeAny, {
573
- _id: string;
570
+ _id: mongoose.Types.ObjectId;
574
571
  course: string;
575
572
  teacher: string;
576
573
  semester: string;
@@ -587,7 +584,7 @@ declare const zMGroupTracker: z.ZodObject<{
587
584
  createdAt?: Date | undefined;
588
585
  updatedAt?: Date | undefined;
589
586
  }, {
590
- _id: string;
587
+ _id: mongoose.Types.ObjectId;
591
588
  course: string;
592
589
  teacher: string;
593
590
  semester: string;
@@ -688,7 +685,7 @@ declare const zMCampBooking: z.ZodObject<{
688
685
  ctId: z.ZodOptional<z.ZodString>;
689
686
  isOnline: z.ZodBoolean;
690
687
  classDates: z.ZodString;
691
- _id: z.ZodString;
688
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
692
689
  createdAt: z.ZodOptional<z.ZodDate>;
693
690
  updatedAt: z.ZodOptional<z.ZodDate>;
694
691
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -697,7 +694,7 @@ declare const zMCampBooking: z.ZodObject<{
697
694
  lastName: string;
698
695
  rank: string;
699
696
  email: string;
700
- _id: string;
697
+ _id: mongoose.Types.ObjectId;
701
698
  campOption: CampOption;
702
699
  isOnline: boolean;
703
700
  classDates: string;
@@ -717,7 +714,7 @@ declare const zMCampBooking: z.ZodObject<{
717
714
  lastName: string;
718
715
  rank: string;
719
716
  email: string;
720
- _id: string;
717
+ _id: mongoose.Types.ObjectId;
721
718
  campOption: CampOption;
722
719
  isOnline: boolean;
723
720
  classDates: string;
@@ -804,7 +801,7 @@ declare const zMGroupBooking: z.ZodObject<{
804
801
  gtId: z.ZodOptional<z.ZodString>;
805
802
  isTrial: z.ZodOptional<z.ZodBoolean>;
806
803
  classDate: z.ZodOptional<z.ZodString>;
807
- _id: z.ZodString;
804
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
808
805
  createdAt: z.ZodOptional<z.ZodDate>;
809
806
  updatedAt: z.ZodOptional<z.ZodDate>;
810
807
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -813,7 +810,7 @@ declare const zMGroupBooking: z.ZodObject<{
813
810
  lastName: string;
814
811
  rank: string;
815
812
  email: string;
816
- _id: string;
813
+ _id: mongoose.Types.ObjectId;
817
814
  isOnline: boolean;
818
815
  paymentReceived?: boolean | undefined;
819
816
  expireAt?: Date | undefined;
@@ -833,7 +830,7 @@ declare const zMGroupBooking: z.ZodObject<{
833
830
  lastName: string;
834
831
  rank: string;
835
832
  email: string;
836
- _id: string;
833
+ _id: mongoose.Types.ObjectId;
837
834
  isOnline: boolean;
838
835
  paymentReceived?: boolean | undefined;
839
836
  expireAt?: Date | undefined;
@@ -912,7 +909,7 @@ declare const zMPrivateBooking: z.ZodObject<{
912
909
  userId: z.ZodOptional<z.ZodString>;
913
910
  classDate: z.ZodOptional<z.ZodString>;
914
911
  teacherId: z.ZodString;
915
- _id: z.ZodString;
912
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
916
913
  createdAt: z.ZodOptional<z.ZodDate>;
917
914
  updatedAt: z.ZodOptional<z.ZodDate>;
918
915
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -921,7 +918,7 @@ declare const zMPrivateBooking: z.ZodObject<{
921
918
  lastName: string;
922
919
  rank: string;
923
920
  email: string;
924
- _id: string;
921
+ _id: mongoose.Types.ObjectId;
925
922
  courseId: string;
926
923
  teacherId: string;
927
924
  paymentReceived?: boolean | undefined;
@@ -939,7 +936,7 @@ declare const zMPrivateBooking: z.ZodObject<{
939
936
  lastName: string;
940
937
  rank: string;
941
938
  email: string;
942
- _id: string;
939
+ _id: mongoose.Types.ObjectId;
943
940
  courseId: string;
944
941
  teacherId: string;
945
942
  paymentReceived?: boolean | undefined;
@@ -1179,11 +1176,11 @@ declare const zMInvoice: z.ZodObject<{
1179
1176
  }>, "many">;
1180
1177
  createdBy: z.ZodString;
1181
1178
  lastEditBy: z.ZodOptional<z.ZodString>;
1182
- _id: z.ZodString;
1179
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1183
1180
  createdAt: z.ZodOptional<z.ZodDate>;
1184
1181
  updatedAt: z.ZodOptional<z.ZodDate>;
1185
1182
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1186
- _id: string;
1183
+ _id: mongoose.Types.ObjectId;
1187
1184
  billTo: string;
1188
1185
  packages: {
1189
1186
  student: string;
@@ -1206,7 +1203,7 @@ declare const zMInvoice: z.ZodObject<{
1206
1203
  createdAt?: Date | undefined;
1207
1204
  updatedAt?: Date | undefined;
1208
1205
  }, {
1209
- _id: string;
1206
+ _id: mongoose.Types.ObjectId;
1210
1207
  billTo: string;
1211
1208
  packages: {
1212
1209
  student: string;
@@ -1313,11 +1310,11 @@ declare const zMTeacherPayment: z.ZodObject<{
1313
1310
  count: number;
1314
1311
  wage: number;
1315
1312
  }>, "many">;
1316
- _id: z.ZodString;
1313
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1317
1314
  createdAt: z.ZodOptional<z.ZodDate>;
1318
1315
  updatedAt: z.ZodOptional<z.ZodDate>;
1319
1316
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1320
- _id: string;
1317
+ _id: mongoose.Types.ObjectId;
1321
1318
  teacher: string;
1322
1319
  rows: {
1323
1320
  length: number;
@@ -1329,7 +1326,7 @@ declare const zMTeacherPayment: z.ZodObject<{
1329
1326
  createdAt?: Date | undefined;
1330
1327
  updatedAt?: Date | undefined;
1331
1328
  }, {
1332
- _id: string;
1329
+ _id: mongoose.Types.ObjectId;
1333
1330
  teacher: string;
1334
1331
  rows: {
1335
1332
  length: number;
@@ -1472,12 +1469,12 @@ declare const zMReportTicket: z.ZodObject<{
1472
1469
  title: z.ZodString;
1473
1470
  requester: z.ZodString;
1474
1471
  resolver: z.ZodString;
1475
- _id: z.ZodString;
1472
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1476
1473
  createdAt: z.ZodOptional<z.ZodDate>;
1477
1474
  updatedAt: z.ZodOptional<z.ZodDate>;
1478
1475
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1479
1476
  status: TicketStatus;
1480
- _id: string;
1477
+ _id: mongoose.Types.ObjectId;
1481
1478
  description: string;
1482
1479
  title: string;
1483
1480
  requester: string;
@@ -1486,7 +1483,7 @@ declare const zMReportTicket: z.ZodObject<{
1486
1483
  updatedAt?: Date | undefined;
1487
1484
  }, {
1488
1485
  status: TicketStatus;
1489
- _id: string;
1486
+ _id: mongoose.Types.ObjectId;
1490
1487
  description: string;
1491
1488
  title: string;
1492
1489
  requester: string;
@@ -1538,11 +1535,11 @@ declare const zMSemester: z.ZodObject<{
1538
1535
  endDate: z.ZodDate;
1539
1536
  blackoutDates: z.ZodArray<z.ZodDate, "many">;
1540
1537
  importantDates: z.ZodArray<z.ZodString, "many">;
1541
- _id: z.ZodString;
1538
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1542
1539
  createdAt: z.ZodOptional<z.ZodDate>;
1543
1540
  updatedAt: z.ZodOptional<z.ZodDate>;
1544
1541
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1545
- _id: string;
1542
+ _id: mongoose.Types.ObjectId;
1546
1543
  season: Season;
1547
1544
  year: number;
1548
1545
  startDate: Date;
@@ -1552,7 +1549,7 @@ declare const zMSemester: z.ZodObject<{
1552
1549
  createdAt?: Date | undefined;
1553
1550
  updatedAt?: Date | undefined;
1554
1551
  }, {
1555
- _id: string;
1552
+ _id: mongoose.Types.ObjectId;
1556
1553
  season: Season;
1557
1554
  year: number;
1558
1555
  startDate: Date;
@@ -1751,11 +1748,11 @@ declare const zMTConfig: z.ZodObject<{
1751
1748
  height: number;
1752
1749
  width: number;
1753
1750
  }>>;
1754
- _id: z.ZodString;
1751
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1755
1752
  createdAt: z.ZodOptional<z.ZodDate>;
1756
1753
  updatedAt: z.ZodOptional<z.ZodDate>;
1757
1754
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1758
- _id: string;
1755
+ _id: mongoose.Types.ObjectId;
1759
1756
  description: string;
1760
1757
  title: string;
1761
1758
  url: string;
@@ -1783,7 +1780,7 @@ declare const zMTConfig: z.ZodObject<{
1783
1780
  createdAt?: Date | undefined;
1784
1781
  updatedAt?: Date | undefined;
1785
1782
  }, {
1786
- _id: string;
1783
+ _id: mongoose.Types.ObjectId;
1787
1784
  description: string;
1788
1785
  title: string;
1789
1786
  url: string;
@@ -1930,7 +1927,7 @@ declare const zMTReg: z.ZodObject<{
1930
1927
  donation: z.ZodOptional<z.ZodNumber>;
1931
1928
  createMethod: z.ZodOptional<z.ZodString>;
1932
1929
  edited: z.ZodOptional<z.ZodString>;
1933
- _id: z.ZodString;
1930
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1934
1931
  createdAt: z.ZodOptional<z.ZodDate>;
1935
1932
  updatedAt: z.ZodOptional<z.ZodDate>;
1936
1933
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -1939,7 +1936,7 @@ declare const zMTReg: z.ZodObject<{
1939
1936
  lastName: string;
1940
1937
  rank: string;
1941
1938
  email: string;
1942
- _id: string;
1939
+ _id: mongoose.Types.ObjectId;
1943
1940
  tickets: {
1944
1941
  amount: number;
1945
1942
  ticket: string;
@@ -1962,7 +1959,7 @@ declare const zMTReg: z.ZodObject<{
1962
1959
  lastName: string;
1963
1960
  rank: string;
1964
1961
  email: string;
1965
- _id: string;
1962
+ _id: mongoose.Types.ObjectId;
1966
1963
  tickets: {
1967
1964
  amount: number;
1968
1965
  ticket: string;
@@ -2038,11 +2035,11 @@ declare const zMTTicket: z.ZodObject<{
2038
2035
  description: z.ZodOptional<z.ZodString>;
2039
2036
  isNotBuyable: z.ZodOptional<z.ZodBoolean>;
2040
2037
  lastBuyableDate: z.ZodOptional<z.ZodDate>;
2041
- _id: z.ZodString;
2038
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
2042
2039
  createdAt: z.ZodOptional<z.ZodDate>;
2043
2040
  updatedAt: z.ZodOptional<z.ZodDate>;
2044
2041
  }, z.UnknownKeysParam, z.ZodTypeAny, {
2045
- _id: string;
2042
+ _id: mongoose.Types.ObjectId;
2046
2043
  price: number;
2047
2044
  name: string;
2048
2045
  description?: string | undefined;
@@ -2051,7 +2048,7 @@ declare const zMTTicket: z.ZodObject<{
2051
2048
  createdAt?: Date | undefined;
2052
2049
  updatedAt?: Date | undefined;
2053
2050
  }, {
2054
- _id: string;
2051
+ _id: mongoose.Types.ObjectId;
2055
2052
  price: number;
2056
2053
  name: string;
2057
2054
  description?: string | undefined;
@@ -2180,11 +2177,11 @@ declare const zMUser: z.ZodObject<{
2180
2177
  country: z.ZodOptional<z.ZodString>;
2181
2178
  phoneNumber: z.ZodOptional<z.ZodString>;
2182
2179
  birthDate: z.ZodOptional<z.ZodString>;
2183
- _id: z.ZodString;
2180
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
2184
2181
  createdAt: z.ZodOptional<z.ZodDate>;
2185
2182
  updatedAt: z.ZodOptional<z.ZodDate>;
2186
2183
  }, z.UnknownKeysParam, z.ZodTypeAny, {
2187
- _id: string;
2184
+ _id: mongoose.Types.ObjectId;
2188
2185
  name: string;
2189
2186
  email?: string | undefined;
2190
2187
  address?: string | undefined;
@@ -2201,7 +2198,7 @@ declare const zMUser: z.ZodObject<{
2201
2198
  createdAt?: Date | undefined;
2202
2199
  updatedAt?: Date | undefined;
2203
2200
  }, {
2204
- _id: string;
2201
+ _id: mongoose.Types.ObjectId;
2205
2202
  name: string;
2206
2203
  email?: string | undefined;
2207
2204
  address?: string | undefined;
@@ -2299,12 +2296,12 @@ declare const zMStudent: z.ZodObject<{
2299
2296
  phoneNumber: z.ZodOptional<z.ZodString>;
2300
2297
  birthDate: z.ZodOptional<z.ZodString>;
2301
2298
  guardian: z.ZodOptional<z.ZodString>;
2302
- _id: z.ZodString;
2299
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
2303
2300
  createdAt: z.ZodOptional<z.ZodDate>;
2304
2301
  updatedAt: z.ZodOptional<z.ZodDate>;
2305
2302
  }, z.UnknownKeysParam, z.ZodTypeAny, {
2306
2303
  rank: GoRank;
2307
- _id: string;
2304
+ _id: mongoose.Types.ObjectId;
2308
2305
  name: string;
2309
2306
  email?: string | undefined;
2310
2307
  address?: string | undefined;
@@ -2323,7 +2320,7 @@ declare const zMStudent: z.ZodObject<{
2323
2320
  updatedAt?: Date | undefined;
2324
2321
  }, {
2325
2322
  rank: GoRank;
2326
- _id: string;
2323
+ _id: mongoose.Types.ObjectId;
2327
2324
  name: string;
2328
2325
  email?: string | undefined;
2329
2326
  address?: string | undefined;
@@ -2434,12 +2431,12 @@ declare const zMTeacher: z.ZodObject<{
2434
2431
  birthDate: z.ZodOptional<z.ZodString>;
2435
2432
  isInactive: z.ZodOptional<z.ZodBoolean>;
2436
2433
  available: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">>;
2437
- _id: z.ZodString;
2434
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
2438
2435
  createdAt: z.ZodOptional<z.ZodDate>;
2439
2436
  updatedAt: z.ZodOptional<z.ZodDate>;
2440
2437
  }, z.UnknownKeysParam, z.ZodTypeAny, {
2441
2438
  rank: GoRank;
2442
- _id: string;
2439
+ _id: mongoose.Types.ObjectId;
2443
2440
  name: string;
2444
2441
  email?: string | undefined;
2445
2442
  address?: string | undefined;
@@ -2461,7 +2458,7 @@ declare const zMTeacher: z.ZodObject<{
2461
2458
  updatedAt?: Date | undefined;
2462
2459
  }, {
2463
2460
  rank: GoRank;
2464
- _id: string;
2461
+ _id: mongoose.Types.ObjectId;
2465
2462
  name: string;
2466
2463
  email?: string | undefined;
2467
2464
  address?: string | undefined;
package/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import * as mongoose from 'mongoose';
2
3
 
3
4
  declare const zBPaymentInfo: z.ZodObject<{
4
5
  /**
@@ -129,11 +130,11 @@ declare const zMAttendance: z.ZodObject<{
129
130
  }>;
130
131
  paid: z.ZodOptional<z.ZodBoolean>;
131
132
  campOption: z.ZodNativeEnum<typeof CampOption>;
132
- _id: z.ZodString;
133
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
133
134
  createdAt: z.ZodOptional<z.ZodDate>;
134
135
  updatedAt: z.ZodOptional<z.ZodDate>;
135
136
  }, z.UnknownKeysParam, z.ZodTypeAny, {
136
- _id: string;
137
+ _id: mongoose.Types.ObjectId;
137
138
  student: string;
138
139
  states: AttendState[];
139
140
  tuition: {
@@ -146,7 +147,7 @@ declare const zMAttendance: z.ZodObject<{
146
147
  createdAt?: Date | undefined;
147
148
  updatedAt?: Date | undefined;
148
149
  }, {
149
- _id: string;
150
+ _id: mongoose.Types.ObjectId;
150
151
  student: string;
151
152
  states: AttendState[];
152
153
  tuition: {
@@ -206,11 +207,11 @@ declare const zMCampTracker: z.ZodObject<{
206
207
  semester: z.ZodString;
207
208
  occurrences: z.ZodArray<z.ZodString, "many">;
208
209
  attendances: z.ZodArray<z.ZodString, "many">;
209
- _id: z.ZodString;
210
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
210
211
  createdAt: z.ZodOptional<z.ZodDate>;
211
212
  updatedAt: z.ZodOptional<z.ZodDate>;
212
213
  }, z.UnknownKeysParam, z.ZodTypeAny, {
213
- _id: string;
214
+ _id: mongoose.Types.ObjectId;
214
215
  course: string;
215
216
  teacher: string;
216
217
  semester: string;
@@ -220,7 +221,7 @@ declare const zMCampTracker: z.ZodObject<{
220
221
  createdAt?: Date | undefined;
221
222
  updatedAt?: Date | undefined;
222
223
  }, {
223
- _id: string;
224
+ _id: mongoose.Types.ObjectId;
224
225
  course: string;
225
226
  teacher: string;
226
227
  semester: string;
@@ -255,9 +256,7 @@ declare const zClassTracker: z.ZodObject<{
255
256
  tuition: z.ZodOptional<z.ZodObject<{
256
257
  primary: z.ZodNumber;
257
258
  textbook: z.ZodOptional<z.ZodBoolean>;
258
- shipping: z.ZodOptional<z.ZodBoolean>; /**
259
- * Mongoose object ID
260
- */
259
+ shipping: z.ZodOptional<z.ZodBoolean>;
261
260
  }, "strip", z.ZodTypeAny, {
262
261
  primary: number;
263
262
  textbook?: boolean | undefined;
@@ -303,9 +302,7 @@ declare const zMClassTracker: z.ZodObject<{
303
302
  tuition: z.ZodOptional<z.ZodObject<{
304
303
  primary: z.ZodNumber;
305
304
  textbook: z.ZodOptional<z.ZodBoolean>;
306
- shipping: z.ZodOptional<z.ZodBoolean>; /**
307
- * Mongoose object ID
308
- */
305
+ shipping: z.ZodOptional<z.ZodBoolean>;
309
306
  }, "strip", z.ZodTypeAny, {
310
307
  primary: number;
311
308
  textbook?: boolean | undefined;
@@ -322,11 +319,11 @@ declare const zMClassTracker: z.ZodObject<{
322
319
  classTimes: z.ZodArray<z.ZodDate, "many">;
323
320
  completedList: z.ZodArray<z.ZodBoolean, "many">;
324
321
  completed: z.ZodOptional<z.ZodBoolean>;
325
- _id: z.ZodString;
322
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
326
323
  createdAt: z.ZodOptional<z.ZodDate>;
327
324
  updatedAt: z.ZodOptional<z.ZodDate>;
328
325
  }, z.UnknownKeysParam, z.ZodTypeAny, {
329
- _id: string;
326
+ _id: mongoose.Types.ObjectId;
330
327
  course: string;
331
328
  teacher: string;
332
329
  semester: string;
@@ -343,7 +340,7 @@ declare const zMClassTracker: z.ZodObject<{
343
340
  createdAt?: Date | undefined;
344
341
  updatedAt?: Date | undefined;
345
342
  }, {
346
- _id: string;
343
+ _id: mongoose.Types.ObjectId;
347
344
  course: string;
348
345
  teacher: string;
349
346
  semester: string;
@@ -440,11 +437,11 @@ declare const zMCourse: z.ZodObject<{
440
437
  recLevel: z.ZodString;
441
438
  halfCampTuition: z.ZodNumber;
442
439
  fullCampTuition: z.ZodNumber;
443
- _id: z.ZodString;
440
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
444
441
  createdAt: z.ZodOptional<z.ZodDate>;
445
442
  updatedAt: z.ZodOptional<z.ZodDate>;
446
443
  }, z.UnknownKeysParam, z.ZodTypeAny, {
447
- _id: string;
444
+ _id: mongoose.Types.ObjectId;
448
445
  price: number;
449
446
  name: string;
450
447
  category: CourseCategory;
@@ -457,7 +454,7 @@ declare const zMCourse: z.ZodObject<{
457
454
  createdAt?: Date | undefined;
458
455
  updatedAt?: Date | undefined;
459
456
  }, {
460
- _id: string;
457
+ _id: mongoose.Types.ObjectId;
461
458
  price: number;
462
459
  name: string;
463
460
  category: CourseCategory;
@@ -566,11 +563,11 @@ declare const zMGroupTracker: z.ZodObject<{
566
563
  courseId: z.ZodOptional<z.ZodString>;
567
564
  ageGroup: z.ZodOptional<z.ZodNativeEnum<typeof AgeGroup>>;
568
565
  isNonPublic: z.ZodOptional<z.ZodBoolean>;
569
- _id: z.ZodString;
566
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
570
567
  createdAt: z.ZodOptional<z.ZodDate>;
571
568
  updatedAt: z.ZodOptional<z.ZodDate>;
572
569
  }, z.UnknownKeysParam, z.ZodTypeAny, {
573
- _id: string;
570
+ _id: mongoose.Types.ObjectId;
574
571
  course: string;
575
572
  teacher: string;
576
573
  semester: string;
@@ -587,7 +584,7 @@ declare const zMGroupTracker: z.ZodObject<{
587
584
  createdAt?: Date | undefined;
588
585
  updatedAt?: Date | undefined;
589
586
  }, {
590
- _id: string;
587
+ _id: mongoose.Types.ObjectId;
591
588
  course: string;
592
589
  teacher: string;
593
590
  semester: string;
@@ -688,7 +685,7 @@ declare const zMCampBooking: z.ZodObject<{
688
685
  ctId: z.ZodOptional<z.ZodString>;
689
686
  isOnline: z.ZodBoolean;
690
687
  classDates: z.ZodString;
691
- _id: z.ZodString;
688
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
692
689
  createdAt: z.ZodOptional<z.ZodDate>;
693
690
  updatedAt: z.ZodOptional<z.ZodDate>;
694
691
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -697,7 +694,7 @@ declare const zMCampBooking: z.ZodObject<{
697
694
  lastName: string;
698
695
  rank: string;
699
696
  email: string;
700
- _id: string;
697
+ _id: mongoose.Types.ObjectId;
701
698
  campOption: CampOption;
702
699
  isOnline: boolean;
703
700
  classDates: string;
@@ -717,7 +714,7 @@ declare const zMCampBooking: z.ZodObject<{
717
714
  lastName: string;
718
715
  rank: string;
719
716
  email: string;
720
- _id: string;
717
+ _id: mongoose.Types.ObjectId;
721
718
  campOption: CampOption;
722
719
  isOnline: boolean;
723
720
  classDates: string;
@@ -804,7 +801,7 @@ declare const zMGroupBooking: z.ZodObject<{
804
801
  gtId: z.ZodOptional<z.ZodString>;
805
802
  isTrial: z.ZodOptional<z.ZodBoolean>;
806
803
  classDate: z.ZodOptional<z.ZodString>;
807
- _id: z.ZodString;
804
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
808
805
  createdAt: z.ZodOptional<z.ZodDate>;
809
806
  updatedAt: z.ZodOptional<z.ZodDate>;
810
807
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -813,7 +810,7 @@ declare const zMGroupBooking: z.ZodObject<{
813
810
  lastName: string;
814
811
  rank: string;
815
812
  email: string;
816
- _id: string;
813
+ _id: mongoose.Types.ObjectId;
817
814
  isOnline: boolean;
818
815
  paymentReceived?: boolean | undefined;
819
816
  expireAt?: Date | undefined;
@@ -833,7 +830,7 @@ declare const zMGroupBooking: z.ZodObject<{
833
830
  lastName: string;
834
831
  rank: string;
835
832
  email: string;
836
- _id: string;
833
+ _id: mongoose.Types.ObjectId;
837
834
  isOnline: boolean;
838
835
  paymentReceived?: boolean | undefined;
839
836
  expireAt?: Date | undefined;
@@ -912,7 +909,7 @@ declare const zMPrivateBooking: z.ZodObject<{
912
909
  userId: z.ZodOptional<z.ZodString>;
913
910
  classDate: z.ZodOptional<z.ZodString>;
914
911
  teacherId: z.ZodString;
915
- _id: z.ZodString;
912
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
916
913
  createdAt: z.ZodOptional<z.ZodDate>;
917
914
  updatedAt: z.ZodOptional<z.ZodDate>;
918
915
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -921,7 +918,7 @@ declare const zMPrivateBooking: z.ZodObject<{
921
918
  lastName: string;
922
919
  rank: string;
923
920
  email: string;
924
- _id: string;
921
+ _id: mongoose.Types.ObjectId;
925
922
  courseId: string;
926
923
  teacherId: string;
927
924
  paymentReceived?: boolean | undefined;
@@ -939,7 +936,7 @@ declare const zMPrivateBooking: z.ZodObject<{
939
936
  lastName: string;
940
937
  rank: string;
941
938
  email: string;
942
- _id: string;
939
+ _id: mongoose.Types.ObjectId;
943
940
  courseId: string;
944
941
  teacherId: string;
945
942
  paymentReceived?: boolean | undefined;
@@ -1179,11 +1176,11 @@ declare const zMInvoice: z.ZodObject<{
1179
1176
  }>, "many">;
1180
1177
  createdBy: z.ZodString;
1181
1178
  lastEditBy: z.ZodOptional<z.ZodString>;
1182
- _id: z.ZodString;
1179
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1183
1180
  createdAt: z.ZodOptional<z.ZodDate>;
1184
1181
  updatedAt: z.ZodOptional<z.ZodDate>;
1185
1182
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1186
- _id: string;
1183
+ _id: mongoose.Types.ObjectId;
1187
1184
  billTo: string;
1188
1185
  packages: {
1189
1186
  student: string;
@@ -1206,7 +1203,7 @@ declare const zMInvoice: z.ZodObject<{
1206
1203
  createdAt?: Date | undefined;
1207
1204
  updatedAt?: Date | undefined;
1208
1205
  }, {
1209
- _id: string;
1206
+ _id: mongoose.Types.ObjectId;
1210
1207
  billTo: string;
1211
1208
  packages: {
1212
1209
  student: string;
@@ -1313,11 +1310,11 @@ declare const zMTeacherPayment: z.ZodObject<{
1313
1310
  count: number;
1314
1311
  wage: number;
1315
1312
  }>, "many">;
1316
- _id: z.ZodString;
1313
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1317
1314
  createdAt: z.ZodOptional<z.ZodDate>;
1318
1315
  updatedAt: z.ZodOptional<z.ZodDate>;
1319
1316
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1320
- _id: string;
1317
+ _id: mongoose.Types.ObjectId;
1321
1318
  teacher: string;
1322
1319
  rows: {
1323
1320
  length: number;
@@ -1329,7 +1326,7 @@ declare const zMTeacherPayment: z.ZodObject<{
1329
1326
  createdAt?: Date | undefined;
1330
1327
  updatedAt?: Date | undefined;
1331
1328
  }, {
1332
- _id: string;
1329
+ _id: mongoose.Types.ObjectId;
1333
1330
  teacher: string;
1334
1331
  rows: {
1335
1332
  length: number;
@@ -1472,12 +1469,12 @@ declare const zMReportTicket: z.ZodObject<{
1472
1469
  title: z.ZodString;
1473
1470
  requester: z.ZodString;
1474
1471
  resolver: z.ZodString;
1475
- _id: z.ZodString;
1472
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1476
1473
  createdAt: z.ZodOptional<z.ZodDate>;
1477
1474
  updatedAt: z.ZodOptional<z.ZodDate>;
1478
1475
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1479
1476
  status: TicketStatus;
1480
- _id: string;
1477
+ _id: mongoose.Types.ObjectId;
1481
1478
  description: string;
1482
1479
  title: string;
1483
1480
  requester: string;
@@ -1486,7 +1483,7 @@ declare const zMReportTicket: z.ZodObject<{
1486
1483
  updatedAt?: Date | undefined;
1487
1484
  }, {
1488
1485
  status: TicketStatus;
1489
- _id: string;
1486
+ _id: mongoose.Types.ObjectId;
1490
1487
  description: string;
1491
1488
  title: string;
1492
1489
  requester: string;
@@ -1538,11 +1535,11 @@ declare const zMSemester: z.ZodObject<{
1538
1535
  endDate: z.ZodDate;
1539
1536
  blackoutDates: z.ZodArray<z.ZodDate, "many">;
1540
1537
  importantDates: z.ZodArray<z.ZodString, "many">;
1541
- _id: z.ZodString;
1538
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1542
1539
  createdAt: z.ZodOptional<z.ZodDate>;
1543
1540
  updatedAt: z.ZodOptional<z.ZodDate>;
1544
1541
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1545
- _id: string;
1542
+ _id: mongoose.Types.ObjectId;
1546
1543
  season: Season;
1547
1544
  year: number;
1548
1545
  startDate: Date;
@@ -1552,7 +1549,7 @@ declare const zMSemester: z.ZodObject<{
1552
1549
  createdAt?: Date | undefined;
1553
1550
  updatedAt?: Date | undefined;
1554
1551
  }, {
1555
- _id: string;
1552
+ _id: mongoose.Types.ObjectId;
1556
1553
  season: Season;
1557
1554
  year: number;
1558
1555
  startDate: Date;
@@ -1751,11 +1748,11 @@ declare const zMTConfig: z.ZodObject<{
1751
1748
  height: number;
1752
1749
  width: number;
1753
1750
  }>>;
1754
- _id: z.ZodString;
1751
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1755
1752
  createdAt: z.ZodOptional<z.ZodDate>;
1756
1753
  updatedAt: z.ZodOptional<z.ZodDate>;
1757
1754
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1758
- _id: string;
1755
+ _id: mongoose.Types.ObjectId;
1759
1756
  description: string;
1760
1757
  title: string;
1761
1758
  url: string;
@@ -1783,7 +1780,7 @@ declare const zMTConfig: z.ZodObject<{
1783
1780
  createdAt?: Date | undefined;
1784
1781
  updatedAt?: Date | undefined;
1785
1782
  }, {
1786
- _id: string;
1783
+ _id: mongoose.Types.ObjectId;
1787
1784
  description: string;
1788
1785
  title: string;
1789
1786
  url: string;
@@ -1930,7 +1927,7 @@ declare const zMTReg: z.ZodObject<{
1930
1927
  donation: z.ZodOptional<z.ZodNumber>;
1931
1928
  createMethod: z.ZodOptional<z.ZodString>;
1932
1929
  edited: z.ZodOptional<z.ZodString>;
1933
- _id: z.ZodString;
1930
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
1934
1931
  createdAt: z.ZodOptional<z.ZodDate>;
1935
1932
  updatedAt: z.ZodOptional<z.ZodDate>;
1936
1933
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -1939,7 +1936,7 @@ declare const zMTReg: z.ZodObject<{
1939
1936
  lastName: string;
1940
1937
  rank: string;
1941
1938
  email: string;
1942
- _id: string;
1939
+ _id: mongoose.Types.ObjectId;
1943
1940
  tickets: {
1944
1941
  amount: number;
1945
1942
  ticket: string;
@@ -1962,7 +1959,7 @@ declare const zMTReg: z.ZodObject<{
1962
1959
  lastName: string;
1963
1960
  rank: string;
1964
1961
  email: string;
1965
- _id: string;
1962
+ _id: mongoose.Types.ObjectId;
1966
1963
  tickets: {
1967
1964
  amount: number;
1968
1965
  ticket: string;
@@ -2038,11 +2035,11 @@ declare const zMTTicket: z.ZodObject<{
2038
2035
  description: z.ZodOptional<z.ZodString>;
2039
2036
  isNotBuyable: z.ZodOptional<z.ZodBoolean>;
2040
2037
  lastBuyableDate: z.ZodOptional<z.ZodDate>;
2041
- _id: z.ZodString;
2038
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
2042
2039
  createdAt: z.ZodOptional<z.ZodDate>;
2043
2040
  updatedAt: z.ZodOptional<z.ZodDate>;
2044
2041
  }, z.UnknownKeysParam, z.ZodTypeAny, {
2045
- _id: string;
2042
+ _id: mongoose.Types.ObjectId;
2046
2043
  price: number;
2047
2044
  name: string;
2048
2045
  description?: string | undefined;
@@ -2051,7 +2048,7 @@ declare const zMTTicket: z.ZodObject<{
2051
2048
  createdAt?: Date | undefined;
2052
2049
  updatedAt?: Date | undefined;
2053
2050
  }, {
2054
- _id: string;
2051
+ _id: mongoose.Types.ObjectId;
2055
2052
  price: number;
2056
2053
  name: string;
2057
2054
  description?: string | undefined;
@@ -2180,11 +2177,11 @@ declare const zMUser: z.ZodObject<{
2180
2177
  country: z.ZodOptional<z.ZodString>;
2181
2178
  phoneNumber: z.ZodOptional<z.ZodString>;
2182
2179
  birthDate: z.ZodOptional<z.ZodString>;
2183
- _id: z.ZodString;
2180
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
2184
2181
  createdAt: z.ZodOptional<z.ZodDate>;
2185
2182
  updatedAt: z.ZodOptional<z.ZodDate>;
2186
2183
  }, z.UnknownKeysParam, z.ZodTypeAny, {
2187
- _id: string;
2184
+ _id: mongoose.Types.ObjectId;
2188
2185
  name: string;
2189
2186
  email?: string | undefined;
2190
2187
  address?: string | undefined;
@@ -2201,7 +2198,7 @@ declare const zMUser: z.ZodObject<{
2201
2198
  createdAt?: Date | undefined;
2202
2199
  updatedAt?: Date | undefined;
2203
2200
  }, {
2204
- _id: string;
2201
+ _id: mongoose.Types.ObjectId;
2205
2202
  name: string;
2206
2203
  email?: string | undefined;
2207
2204
  address?: string | undefined;
@@ -2299,12 +2296,12 @@ declare const zMStudent: z.ZodObject<{
2299
2296
  phoneNumber: z.ZodOptional<z.ZodString>;
2300
2297
  birthDate: z.ZodOptional<z.ZodString>;
2301
2298
  guardian: z.ZodOptional<z.ZodString>;
2302
- _id: z.ZodString;
2299
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
2303
2300
  createdAt: z.ZodOptional<z.ZodDate>;
2304
2301
  updatedAt: z.ZodOptional<z.ZodDate>;
2305
2302
  }, z.UnknownKeysParam, z.ZodTypeAny, {
2306
2303
  rank: GoRank;
2307
- _id: string;
2304
+ _id: mongoose.Types.ObjectId;
2308
2305
  name: string;
2309
2306
  email?: string | undefined;
2310
2307
  address?: string | undefined;
@@ -2323,7 +2320,7 @@ declare const zMStudent: z.ZodObject<{
2323
2320
  updatedAt?: Date | undefined;
2324
2321
  }, {
2325
2322
  rank: GoRank;
2326
- _id: string;
2323
+ _id: mongoose.Types.ObjectId;
2327
2324
  name: string;
2328
2325
  email?: string | undefined;
2329
2326
  address?: string | undefined;
@@ -2434,12 +2431,12 @@ declare const zMTeacher: z.ZodObject<{
2434
2431
  birthDate: z.ZodOptional<z.ZodString>;
2435
2432
  isInactive: z.ZodOptional<z.ZodBoolean>;
2436
2433
  available: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">, "many">>;
2437
- _id: z.ZodString;
2434
+ _id: z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>;
2438
2435
  createdAt: z.ZodOptional<z.ZodDate>;
2439
2436
  updatedAt: z.ZodOptional<z.ZodDate>;
2440
2437
  }, z.UnknownKeysParam, z.ZodTypeAny, {
2441
2438
  rank: GoRank;
2442
- _id: string;
2439
+ _id: mongoose.Types.ObjectId;
2443
2440
  name: string;
2444
2441
  email?: string | undefined;
2445
2442
  address?: string | undefined;
@@ -2461,7 +2458,7 @@ declare const zMTeacher: z.ZodObject<{
2461
2458
  updatedAt?: Date | undefined;
2462
2459
  }, {
2463
2460
  rank: GoRank;
2464
- _id: string;
2461
+ _id: mongoose.Types.ObjectId;
2465
2462
  name: string;
2466
2463
  email?: string | undefined;
2467
2464
  address?: string | undefined;
package/index.js CHANGED
@@ -127,11 +127,12 @@ var BookingType = /* @__PURE__ */ ((BookingType2) => {
127
127
  // src/interface/booking/campBooking.ts
128
128
  var import_zod13 = require("zod");
129
129
 
130
- // src/mongoose.ts
130
+ // src/interface/mongoose/mongoose.ts
131
131
  var import_zod3 = require("zod");
132
+ var import_mongoose = require("mongoose");
132
133
  function extendZodObjectForMongoose(original) {
133
134
  return original.extend({
134
- _id: import_zod3.z.string(),
135
+ _id: import_zod3.z.instanceof(import_mongoose.Types.ObjectId),
135
136
  createdAt: import_zod3.z.coerce.date().optional(),
136
137
  updatedAt: import_zod3.z.coerce.date().optional()
137
138
  });
package/index.mjs CHANGED
@@ -41,11 +41,12 @@ var BookingType = /* @__PURE__ */ ((BookingType2) => {
41
41
  // src/interface/booking/campBooking.ts
42
42
  import { z as z13 } from "zod";
43
43
 
44
- // src/mongoose.ts
44
+ // src/interface/mongoose/mongoose.ts
45
45
  import { z as z3 } from "zod";
46
+ import { Types } from "mongoose";
46
47
  function extendZodObjectForMongoose(original) {
47
48
  return original.extend({
48
- _id: z3.string(),
49
+ _id: z3.instanceof(Types.ObjectId),
49
50
  createdAt: z3.coerce.date().optional(),
50
51
  updatedAt: z3.coerce.date().optional()
51
52
  });
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@nyig/models",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
7
7
  "types": "index.d.ts",
8
8
  "peerDependencies": {
9
+ "mongoose": ">=8.0.0",
9
10
  "zod": ">=3.22.4"
10
11
  },
11
12
  "devDependencies": {