@nyig/models 0.2.18 → 0.2.20

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
@@ -1210,7 +1210,7 @@ declare const zTeacherPaymentRow: z.ZodObject<{
1210
1210
  wage: number;
1211
1211
  }>;
1212
1212
  declare const zTeacherPayment: z.ZodObject<{
1213
- teacher: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1213
+ teacher: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
1214
1214
  rows: z.ZodArray<z.ZodObject<{
1215
1215
  course: z.ZodString;
1216
1216
  length: z.ZodNumber;
@@ -1229,7 +1229,7 @@ declare const zTeacherPayment: z.ZodObject<{
1229
1229
  }>, "many">;
1230
1230
  paid: z.ZodOptional<z.ZodBoolean>;
1231
1231
  }, "strip", z.ZodTypeAny, {
1232
- teacher: Types.ObjectId;
1232
+ teacher: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1233
1233
  rows: {
1234
1234
  length: number;
1235
1235
  course: string;
@@ -1238,7 +1238,7 @@ declare const zTeacherPayment: z.ZodObject<{
1238
1238
  }[];
1239
1239
  paid?: boolean | undefined;
1240
1240
  }, {
1241
- teacher: Types.ObjectId;
1241
+ teacher: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1242
1242
  rows: {
1243
1243
  length: number;
1244
1244
  course: string;
@@ -1249,7 +1249,7 @@ declare const zTeacherPayment: z.ZodObject<{
1249
1249
  }>;
1250
1250
  declare const zMTeacherPayment: z.ZodObject<{
1251
1251
  paid: z.ZodOptional<z.ZodBoolean>;
1252
- teacher: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1252
+ teacher: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
1253
1253
  rows: z.ZodArray<z.ZodObject<{
1254
1254
  course: z.ZodString;
1255
1255
  length: z.ZodNumber;
@@ -1271,7 +1271,7 @@ declare const zMTeacherPayment: z.ZodObject<{
1271
1271
  updatedAt: z.ZodOptional<z.ZodDate>;
1272
1272
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1273
1273
  _id: Types.ObjectId;
1274
- teacher: Types.ObjectId;
1274
+ teacher: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1275
1275
  rows: {
1276
1276
  length: number;
1277
1277
  course: string;
@@ -1283,7 +1283,7 @@ declare const zMTeacherPayment: z.ZodObject<{
1283
1283
  updatedAt?: Date | undefined;
1284
1284
  }, {
1285
1285
  _id: Types.ObjectId;
1286
- teacher: Types.ObjectId;
1286
+ teacher: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1287
1287
  rows: {
1288
1288
  length: number;
1289
1289
  course: string;
package/index.d.ts CHANGED
@@ -1210,7 +1210,7 @@ declare const zTeacherPaymentRow: z.ZodObject<{
1210
1210
  wage: number;
1211
1211
  }>;
1212
1212
  declare const zTeacherPayment: z.ZodObject<{
1213
- teacher: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1213
+ teacher: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
1214
1214
  rows: z.ZodArray<z.ZodObject<{
1215
1215
  course: z.ZodString;
1216
1216
  length: z.ZodNumber;
@@ -1229,7 +1229,7 @@ declare const zTeacherPayment: z.ZodObject<{
1229
1229
  }>, "many">;
1230
1230
  paid: z.ZodOptional<z.ZodBoolean>;
1231
1231
  }, "strip", z.ZodTypeAny, {
1232
- teacher: Types.ObjectId;
1232
+ teacher: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1233
1233
  rows: {
1234
1234
  length: number;
1235
1235
  course: string;
@@ -1238,7 +1238,7 @@ declare const zTeacherPayment: z.ZodObject<{
1238
1238
  }[];
1239
1239
  paid?: boolean | undefined;
1240
1240
  }, {
1241
- teacher: Types.ObjectId;
1241
+ teacher: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1242
1242
  rows: {
1243
1243
  length: number;
1244
1244
  course: string;
@@ -1249,7 +1249,7 @@ declare const zTeacherPayment: z.ZodObject<{
1249
1249
  }>;
1250
1250
  declare const zMTeacherPayment: z.ZodObject<{
1251
1251
  paid: z.ZodOptional<z.ZodBoolean>;
1252
- teacher: z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>;
1252
+ teacher: z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>;
1253
1253
  rows: z.ZodArray<z.ZodObject<{
1254
1254
  course: z.ZodString;
1255
1255
  length: z.ZodNumber;
@@ -1271,7 +1271,7 @@ declare const zMTeacherPayment: z.ZodObject<{
1271
1271
  updatedAt: z.ZodOptional<z.ZodDate>;
1272
1272
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1273
1273
  _id: Types.ObjectId;
1274
- teacher: Types.ObjectId;
1274
+ teacher: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1275
1275
  rows: {
1276
1276
  length: number;
1277
1277
  course: string;
@@ -1283,7 +1283,7 @@ declare const zMTeacherPayment: z.ZodObject<{
1283
1283
  updatedAt?: Date | undefined;
1284
1284
  }, {
1285
1285
  _id: Types.ObjectId;
1286
- teacher: Types.ObjectId;
1286
+ teacher: (string | Types.ObjectId) & (string | Types.ObjectId | undefined);
1287
1287
  rows: {
1288
1288
  length: number;
1289
1289
  course: string;
package/index.js CHANGED
@@ -251,7 +251,7 @@ var zTeacherPaymentRow = import_zod8.z.object({
251
251
  wage: import_zod8.z.number()
252
252
  });
253
253
  var zTeacherPayment = import_zod8.z.object({
254
- teacher: import_zod8.z.instanceof(import_mongoose9.Types.ObjectId),
254
+ teacher: import_zod8.z.instanceof(import_mongoose9.Types.ObjectId).or(import_zod8.z.string()),
255
255
  rows: import_zod8.z.array(zTeacherPaymentRow),
256
256
  paid: import_zod8.z.boolean().optional()
257
257
  });
package/index.mjs CHANGED
@@ -165,7 +165,7 @@ var zTeacherPaymentRow = z8.object({
165
165
  wage: z8.number()
166
166
  });
167
167
  var zTeacherPayment = z8.object({
168
- teacher: z8.instanceof(Types6.ObjectId),
168
+ teacher: z8.instanceof(Types6.ObjectId).or(z8.string()),
169
169
  rows: z8.array(zTeacherPaymentRow),
170
170
  paid: z8.boolean().optional()
171
171
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyig/models",
3
- "version": "0.2.18",
3
+ "version": "0.2.20",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",