@nyig/models 0.4.6 → 0.4.8

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
@@ -4382,6 +4382,7 @@ declare const zBInvoice: z.ZodObject<{
4382
4382
  textbook: z.ZodOptional<z.ZodNumber>;
4383
4383
  shipping: z.ZodOptional<z.ZodNumber>;
4384
4384
  paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
4385
+ paidAt: z.ZodOptional<z.ZodString>;
4385
4386
  showEin: z.ZodOptional<z.ZodBoolean>;
4386
4387
  notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
4387
4388
  createdBy: z.ZodString;
@@ -4405,6 +4406,7 @@ declare const zBInvoice: z.ZodObject<{
4405
4406
  textbook?: number | undefined;
4406
4407
  shipping?: number | undefined;
4407
4408
  paid?: PaymentMethod | undefined;
4409
+ paidAt?: string | undefined;
4408
4410
  showEin?: boolean | undefined;
4409
4411
  lastEditBy?: string | undefined;
4410
4412
  }, {
@@ -4426,6 +4428,7 @@ declare const zBInvoice: z.ZodObject<{
4426
4428
  textbook?: number | undefined;
4427
4429
  shipping?: number | undefined;
4428
4430
  paid?: PaymentMethod | undefined;
4431
+ paidAt?: string | undefined;
4429
4432
  showEin?: boolean | undefined;
4430
4433
  lastEditBy?: string | undefined;
4431
4434
  }>;
@@ -4474,6 +4477,7 @@ declare const zInvoice: z.ZodObject<z.objectUtil.extendShape<{
4474
4477
  textbook: z.ZodOptional<z.ZodNumber>;
4475
4478
  shipping: z.ZodOptional<z.ZodNumber>;
4476
4479
  paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
4480
+ paidAt: z.ZodOptional<z.ZodString>;
4477
4481
  showEin: z.ZodOptional<z.ZodBoolean>;
4478
4482
  notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
4479
4483
  createdBy: z.ZodString;
@@ -4506,6 +4510,7 @@ declare const zInvoice: z.ZodObject<z.objectUtil.extendShape<{
4506
4510
  createdAt?: string | undefined;
4507
4511
  updatedAt?: string | undefined;
4508
4512
  paid?: PaymentMethod | undefined;
4513
+ paidAt?: string | undefined;
4509
4514
  showEin?: boolean | undefined;
4510
4515
  lastEditBy?: string | undefined;
4511
4516
  }, {
@@ -4531,6 +4536,7 @@ declare const zInvoice: z.ZodObject<z.objectUtil.extendShape<{
4531
4536
  createdAt?: string | undefined;
4532
4537
  updatedAt?: string | undefined;
4533
4538
  paid?: PaymentMethod | undefined;
4539
+ paidAt?: string | undefined;
4534
4540
  showEin?: boolean | undefined;
4535
4541
  lastEditBy?: string | undefined;
4536
4542
  }>;
@@ -4579,6 +4585,7 @@ declare const zInvoiceResponse: z.ZodObject<z.objectUtil.extendShape<z.objectUti
4579
4585
  textbook: z.ZodOptional<z.ZodNumber>;
4580
4586
  shipping: z.ZodOptional<z.ZodNumber>;
4581
4587
  paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
4588
+ paidAt: z.ZodOptional<z.ZodString>;
4582
4589
  showEin: z.ZodOptional<z.ZodBoolean>;
4583
4590
  notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
4584
4591
  createdBy: z.ZodString;
@@ -4970,6 +4977,7 @@ declare const zInvoiceResponse: z.ZodObject<z.objectUtil.extendShape<z.objectUti
4970
4977
  createdAt?: string | undefined;
4971
4978
  updatedAt?: string | undefined;
4972
4979
  paid?: PaymentMethod | undefined;
4980
+ paidAt?: string | undefined;
4973
4981
  showEin?: boolean | undefined;
4974
4982
  lastEditBy?: {
4975
4983
  rank: GoRank;
@@ -5064,6 +5072,7 @@ declare const zInvoiceResponse: z.ZodObject<z.objectUtil.extendShape<z.objectUti
5064
5072
  createdAt?: string | undefined;
5065
5073
  updatedAt?: string | undefined;
5066
5074
  paid?: PaymentMethod | undefined;
5075
+ paidAt?: string | undefined;
5067
5076
  showEin?: boolean | undefined;
5068
5077
  lastEditBy?: {
5069
5078
  rank: GoRank;
@@ -6807,7 +6816,7 @@ declare const zBEventTicket: z.ZodObject<{
6807
6816
  */
6808
6817
  lastBuyableDate: z.ZodOptional<z.ZodDate>;
6809
6818
  /**
6810
- * @optional limit is 1 unless maxPerOrder is specified
6819
+ * @optional max limit is 1 unless maxPerOrder is specified
6811
6820
  */
6812
6821
  maxPerOrder: z.ZodOptional<z.ZodNumber>;
6813
6822
  }, "strip", z.ZodTypeAny, {
@@ -6844,7 +6853,7 @@ declare const zEventTicket: z.ZodObject<z.objectUtil.extendShape<{
6844
6853
  */
6845
6854
  lastBuyableDate: z.ZodOptional<z.ZodDate>;
6846
6855
  /**
6847
- * @optional limit is 1 unless maxPerOrder is specified
6856
+ * @optional max limit is 1 unless maxPerOrder is specified
6848
6857
  */
6849
6858
  maxPerOrder: z.ZodOptional<z.ZodNumber>;
6850
6859
  }, {
package/index.d.ts CHANGED
@@ -4382,6 +4382,7 @@ declare const zBInvoice: z.ZodObject<{
4382
4382
  textbook: z.ZodOptional<z.ZodNumber>;
4383
4383
  shipping: z.ZodOptional<z.ZodNumber>;
4384
4384
  paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
4385
+ paidAt: z.ZodOptional<z.ZodString>;
4385
4386
  showEin: z.ZodOptional<z.ZodBoolean>;
4386
4387
  notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
4387
4388
  createdBy: z.ZodString;
@@ -4405,6 +4406,7 @@ declare const zBInvoice: z.ZodObject<{
4405
4406
  textbook?: number | undefined;
4406
4407
  shipping?: number | undefined;
4407
4408
  paid?: PaymentMethod | undefined;
4409
+ paidAt?: string | undefined;
4408
4410
  showEin?: boolean | undefined;
4409
4411
  lastEditBy?: string | undefined;
4410
4412
  }, {
@@ -4426,6 +4428,7 @@ declare const zBInvoice: z.ZodObject<{
4426
4428
  textbook?: number | undefined;
4427
4429
  shipping?: number | undefined;
4428
4430
  paid?: PaymentMethod | undefined;
4431
+ paidAt?: string | undefined;
4429
4432
  showEin?: boolean | undefined;
4430
4433
  lastEditBy?: string | undefined;
4431
4434
  }>;
@@ -4474,6 +4477,7 @@ declare const zInvoice: z.ZodObject<z.objectUtil.extendShape<{
4474
4477
  textbook: z.ZodOptional<z.ZodNumber>;
4475
4478
  shipping: z.ZodOptional<z.ZodNumber>;
4476
4479
  paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
4480
+ paidAt: z.ZodOptional<z.ZodString>;
4477
4481
  showEin: z.ZodOptional<z.ZodBoolean>;
4478
4482
  notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
4479
4483
  createdBy: z.ZodString;
@@ -4506,6 +4510,7 @@ declare const zInvoice: z.ZodObject<z.objectUtil.extendShape<{
4506
4510
  createdAt?: string | undefined;
4507
4511
  updatedAt?: string | undefined;
4508
4512
  paid?: PaymentMethod | undefined;
4513
+ paidAt?: string | undefined;
4509
4514
  showEin?: boolean | undefined;
4510
4515
  lastEditBy?: string | undefined;
4511
4516
  }, {
@@ -4531,6 +4536,7 @@ declare const zInvoice: z.ZodObject<z.objectUtil.extendShape<{
4531
4536
  createdAt?: string | undefined;
4532
4537
  updatedAt?: string | undefined;
4533
4538
  paid?: PaymentMethod | undefined;
4539
+ paidAt?: string | undefined;
4534
4540
  showEin?: boolean | undefined;
4535
4541
  lastEditBy?: string | undefined;
4536
4542
  }>;
@@ -4579,6 +4585,7 @@ declare const zInvoiceResponse: z.ZodObject<z.objectUtil.extendShape<z.objectUti
4579
4585
  textbook: z.ZodOptional<z.ZodNumber>;
4580
4586
  shipping: z.ZodOptional<z.ZodNumber>;
4581
4587
  paid: z.ZodOptional<z.ZodNativeEnum<typeof PaymentMethod>>;
4588
+ paidAt: z.ZodOptional<z.ZodString>;
4582
4589
  showEin: z.ZodOptional<z.ZodBoolean>;
4583
4590
  notes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
4584
4591
  createdBy: z.ZodString;
@@ -4970,6 +4977,7 @@ declare const zInvoiceResponse: z.ZodObject<z.objectUtil.extendShape<z.objectUti
4970
4977
  createdAt?: string | undefined;
4971
4978
  updatedAt?: string | undefined;
4972
4979
  paid?: PaymentMethod | undefined;
4980
+ paidAt?: string | undefined;
4973
4981
  showEin?: boolean | undefined;
4974
4982
  lastEditBy?: {
4975
4983
  rank: GoRank;
@@ -5064,6 +5072,7 @@ declare const zInvoiceResponse: z.ZodObject<z.objectUtil.extendShape<z.objectUti
5064
5072
  createdAt?: string | undefined;
5065
5073
  updatedAt?: string | undefined;
5066
5074
  paid?: PaymentMethod | undefined;
5075
+ paidAt?: string | undefined;
5067
5076
  showEin?: boolean | undefined;
5068
5077
  lastEditBy?: {
5069
5078
  rank: GoRank;
@@ -6807,7 +6816,7 @@ declare const zBEventTicket: z.ZodObject<{
6807
6816
  */
6808
6817
  lastBuyableDate: z.ZodOptional<z.ZodDate>;
6809
6818
  /**
6810
- * @optional limit is 1 unless maxPerOrder is specified
6819
+ * @optional max limit is 1 unless maxPerOrder is specified
6811
6820
  */
6812
6821
  maxPerOrder: z.ZodOptional<z.ZodNumber>;
6813
6822
  }, "strip", z.ZodTypeAny, {
@@ -6844,7 +6853,7 @@ declare const zEventTicket: z.ZodObject<z.objectUtil.extendShape<{
6844
6853
  */
6845
6854
  lastBuyableDate: z.ZodOptional<z.ZodDate>;
6846
6855
  /**
6847
- * @optional limit is 1 unless maxPerOrder is specified
6856
+ * @optional max limit is 1 unless maxPerOrder is specified
6848
6857
  */
6849
6858
  maxPerOrder: z.ZodOptional<z.ZodNumber>;
6850
6859
  }, {
package/index.js CHANGED
@@ -662,6 +662,7 @@ var zBInvoice = import_zod22.z.object({
662
662
  textbook: import_zod22.z.coerce.number().int().min(0).optional(),
663
663
  shipping: import_zod22.z.coerce.number().int().min(0).optional(),
664
664
  paid: import_zod22.z.nativeEnum(PaymentMethod).optional(),
665
+ paidAt: import_zod22.z.string().optional(),
665
666
  showEin: import_zod22.z.boolean().optional(),
666
667
  notes: import_zod22.z.string().or(import_zod22.z.literal("")).optional(),
667
668
  createdBy: import_zod22.z.string(),
@@ -768,9 +769,9 @@ var zBEventTicket = import_zod27.z.object({
768
769
  */
769
770
  lastBuyableDate: import_zod27.z.coerce.date().optional(),
770
771
  /**
771
- * @optional limit is 1 unless maxPerOrder is specified
772
+ * @optional max limit is 1 unless maxPerOrder is specified
772
773
  */
773
- maxPerOrder: import_zod27.z.number().int().min(2).optional()
774
+ maxPerOrder: import_zod27.z.coerce.number().int().min(2).optional()
774
775
  });
775
776
  var zEventTicket = addAutoProps(zBEventTicket);
776
777
 
package/index.mjs CHANGED
@@ -555,6 +555,7 @@ var zBInvoice = z22.object({
555
555
  textbook: z22.coerce.number().int().min(0).optional(),
556
556
  shipping: z22.coerce.number().int().min(0).optional(),
557
557
  paid: z22.nativeEnum(PaymentMethod).optional(),
558
+ paidAt: z22.string().optional(),
558
559
  showEin: z22.boolean().optional(),
559
560
  notes: z22.string().or(z22.literal("")).optional(),
560
561
  createdBy: z22.string(),
@@ -661,9 +662,9 @@ var zBEventTicket = z27.object({
661
662
  */
662
663
  lastBuyableDate: z27.coerce.date().optional(),
663
664
  /**
664
- * @optional limit is 1 unless maxPerOrder is specified
665
+ * @optional max limit is 1 unless maxPerOrder is specified
665
666
  */
666
- maxPerOrder: z27.number().int().min(2).optional()
667
+ maxPerOrder: z27.coerce.number().int().min(2).optional()
667
668
  });
668
669
  var zEventTicket = addAutoProps(zBEventTicket);
669
670
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyig/models",
3
- "version": "0.4.6",
3
+ "version": "0.4.8",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",