@nyig/models 0.2.21 → 0.2.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.
package/index.d.mts CHANGED
@@ -1586,7 +1586,7 @@ declare const zTConfig: z.ZodObject<{
1586
1586
  /**
1587
1587
  * List of ticket object IDs for this tournament
1588
1588
  */
1589
- tickets: z.ZodArray<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, "many">;
1589
+ tickets: z.ZodArray<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>, "many">;
1590
1590
  /**
1591
1591
  * If false, the tournament registration is closed
1592
1592
  */
@@ -1627,7 +1627,7 @@ declare const zTConfig: z.ZodObject<{
1627
1627
  data: Map<string, {}[]>;
1628
1628
  fields: string[];
1629
1629
  };
1630
- tickets: Types.ObjectId[];
1630
+ tickets: (string | Types.ObjectId)[];
1631
1631
  canRegister: boolean;
1632
1632
  location?: string | undefined;
1633
1633
  donationsDisabled?: boolean | undefined;
@@ -1652,7 +1652,7 @@ declare const zTConfig: z.ZodObject<{
1652
1652
  data: Map<string, {}[]>;
1653
1653
  fields: string[];
1654
1654
  };
1655
- tickets: Types.ObjectId[];
1655
+ tickets: (string | Types.ObjectId)[];
1656
1656
  canRegister: boolean;
1657
1657
  location?: string | undefined;
1658
1658
  donationsDisabled?: boolean | undefined;
@@ -1694,7 +1694,7 @@ declare const zMTConfig: z.ZodObject<{
1694
1694
  data: Map<string, {}[]>;
1695
1695
  fields: string[];
1696
1696
  }>;
1697
- tickets: z.ZodArray<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, "many">;
1697
+ tickets: z.ZodArray<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>, "many">;
1698
1698
  canRegister: z.ZodBoolean;
1699
1699
  donationsDisabled: z.ZodOptional<z.ZodBoolean>;
1700
1700
  image: z.ZodOptional<z.ZodObject<{
@@ -1730,7 +1730,7 @@ declare const zMTConfig: z.ZodObject<{
1730
1730
  data: Map<string, {}[]>;
1731
1731
  fields: string[];
1732
1732
  };
1733
- tickets: Types.ObjectId[];
1733
+ tickets: (string | Types.ObjectId)[];
1734
1734
  canRegister: boolean;
1735
1735
  location?: string | undefined;
1736
1736
  donationsDisabled?: boolean | undefined;
@@ -1758,7 +1758,7 @@ declare const zMTConfig: z.ZodObject<{
1758
1758
  data: Map<string, {}[]>;
1759
1759
  fields: string[];
1760
1760
  };
1761
- tickets: Types.ObjectId[];
1761
+ tickets: (string | Types.ObjectId)[];
1762
1762
  canRegister: boolean;
1763
1763
  location?: string | undefined;
1764
1764
  donationsDisabled?: boolean | undefined;
package/index.d.ts CHANGED
@@ -1586,7 +1586,7 @@ declare const zTConfig: z.ZodObject<{
1586
1586
  /**
1587
1587
  * List of ticket object IDs for this tournament
1588
1588
  */
1589
- tickets: z.ZodArray<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, "many">;
1589
+ tickets: z.ZodArray<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>, "many">;
1590
1590
  /**
1591
1591
  * If false, the tournament registration is closed
1592
1592
  */
@@ -1627,7 +1627,7 @@ declare const zTConfig: z.ZodObject<{
1627
1627
  data: Map<string, {}[]>;
1628
1628
  fields: string[];
1629
1629
  };
1630
- tickets: Types.ObjectId[];
1630
+ tickets: (string | Types.ObjectId)[];
1631
1631
  canRegister: boolean;
1632
1632
  location?: string | undefined;
1633
1633
  donationsDisabled?: boolean | undefined;
@@ -1652,7 +1652,7 @@ declare const zTConfig: z.ZodObject<{
1652
1652
  data: Map<string, {}[]>;
1653
1653
  fields: string[];
1654
1654
  };
1655
- tickets: Types.ObjectId[];
1655
+ tickets: (string | Types.ObjectId)[];
1656
1656
  canRegister: boolean;
1657
1657
  location?: string | undefined;
1658
1658
  donationsDisabled?: boolean | undefined;
@@ -1694,7 +1694,7 @@ declare const zMTConfig: z.ZodObject<{
1694
1694
  data: Map<string, {}[]>;
1695
1695
  fields: string[];
1696
1696
  }>;
1697
- tickets: z.ZodArray<z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, "many">;
1697
+ tickets: z.ZodArray<z.ZodUnion<[z.ZodType<Types.ObjectId, z.ZodTypeDef, Types.ObjectId>, z.ZodString]>, "many">;
1698
1698
  canRegister: z.ZodBoolean;
1699
1699
  donationsDisabled: z.ZodOptional<z.ZodBoolean>;
1700
1700
  image: z.ZodOptional<z.ZodObject<{
@@ -1730,7 +1730,7 @@ declare const zMTConfig: z.ZodObject<{
1730
1730
  data: Map<string, {}[]>;
1731
1731
  fields: string[];
1732
1732
  };
1733
- tickets: Types.ObjectId[];
1733
+ tickets: (string | Types.ObjectId)[];
1734
1734
  canRegister: boolean;
1735
1735
  location?: string | undefined;
1736
1736
  donationsDisabled?: boolean | undefined;
@@ -1758,7 +1758,7 @@ declare const zMTConfig: z.ZodObject<{
1758
1758
  data: Map<string, {}[]>;
1759
1759
  fields: string[];
1760
1760
  };
1761
- tickets: Types.ObjectId[];
1761
+ tickets: (string | Types.ObjectId)[];
1762
1762
  canRegister: boolean;
1763
1763
  location?: string | undefined;
1764
1764
  donationsDisabled?: boolean | undefined;
package/index.js CHANGED
@@ -546,7 +546,7 @@ var zTConfig = import_zod21.z.object({
546
546
  /**
547
547
  * List of ticket object IDs for this tournament
548
548
  */
549
- tickets: import_zod21.z.array(import_zod21.z.instanceof(import_mongoose24.Types.ObjectId)),
549
+ tickets: import_zod21.z.array(import_zod21.z.instanceof(import_mongoose24.Types.ObjectId).or(import_zod21.z.string())),
550
550
  /**
551
551
  * If false, the tournament registration is closed
552
552
  */
package/index.mjs CHANGED
@@ -460,7 +460,7 @@ var zTConfig = z21.object({
460
460
  /**
461
461
  * List of ticket object IDs for this tournament
462
462
  */
463
- tickets: z21.array(z21.instanceof(Types12.ObjectId)),
463
+ tickets: z21.array(z21.instanceof(Types12.ObjectId).or(z21.string())),
464
464
  /**
465
465
  * If false, the tournament registration is closed
466
466
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyig/models",
3
- "version": "0.2.21",
3
+ "version": "0.2.22",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",