@nyig/models 0.4.5 → 0.4.7

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;
@@ -6191,6 +6200,7 @@ declare const zEventConfigResponse: z.ZodObject<z.objectUtil.extendShape<z.objec
6191
6200
  description: z.ZodOptional<z.ZodString>;
6192
6201
  isNotBuyable: z.ZodOptional<z.ZodBoolean>;
6193
6202
  lastBuyableDate: z.ZodOptional<z.ZodDate>;
6203
+ maxPerOrder: z.ZodOptional<z.ZodNumber>;
6194
6204
  }, {
6195
6205
  _id: z.ZodString;
6196
6206
  editedBy: z.ZodOptional<z.ZodString>;
@@ -6206,6 +6216,7 @@ declare const zEventConfigResponse: z.ZodObject<z.objectUtil.extendShape<z.objec
6206
6216
  description?: string | undefined;
6207
6217
  isNotBuyable?: boolean | undefined;
6208
6218
  lastBuyableDate?: Date | undefined;
6219
+ maxPerOrder?: number | undefined;
6209
6220
  }, {
6210
6221
  _id: string;
6211
6222
  name: string;
@@ -6216,6 +6227,7 @@ declare const zEventConfigResponse: z.ZodObject<z.objectUtil.extendShape<z.objec
6216
6227
  description?: string | undefined;
6217
6228
  isNotBuyable?: boolean | undefined;
6218
6229
  lastBuyableDate?: Date | undefined;
6230
+ maxPerOrder?: number | undefined;
6219
6231
  }>, "many">;
6220
6232
  }>, z.UnknownKeysParam, z.ZodTypeAny, {
6221
6233
  _id: string;
@@ -6244,6 +6256,7 @@ declare const zEventConfigResponse: z.ZodObject<z.objectUtil.extendShape<z.objec
6244
6256
  description?: string | undefined;
6245
6257
  isNotBuyable?: boolean | undefined;
6246
6258
  lastBuyableDate?: Date | undefined;
6259
+ maxPerOrder?: number | undefined;
6247
6260
  }[];
6248
6261
  canRegister: boolean;
6249
6262
  editedBy?: string | undefined;
@@ -6283,6 +6296,7 @@ declare const zEventConfigResponse: z.ZodObject<z.objectUtil.extendShape<z.objec
6283
6296
  description?: string | undefined;
6284
6297
  isNotBuyable?: boolean | undefined;
6285
6298
  lastBuyableDate?: Date | undefined;
6299
+ maxPerOrder?: number | undefined;
6286
6300
  }[];
6287
6301
  canRegister: boolean;
6288
6302
  editedBy?: string | undefined;
@@ -6557,6 +6571,7 @@ declare const zEventRegResponse: z.ZodObject<z.objectUtil.extendShape<z.objectUt
6557
6571
  description: z.ZodOptional<z.ZodString>;
6558
6572
  isNotBuyable: z.ZodOptional<z.ZodBoolean>;
6559
6573
  lastBuyableDate: z.ZodOptional<z.ZodDate>;
6574
+ maxPerOrder: z.ZodOptional<z.ZodNumber>;
6560
6575
  }, {
6561
6576
  _id: z.ZodString;
6562
6577
  editedBy: z.ZodOptional<z.ZodString>;
@@ -6572,6 +6587,7 @@ declare const zEventRegResponse: z.ZodObject<z.objectUtil.extendShape<z.objectUt
6572
6587
  description?: string | undefined;
6573
6588
  isNotBuyable?: boolean | undefined;
6574
6589
  lastBuyableDate?: Date | undefined;
6590
+ maxPerOrder?: number | undefined;
6575
6591
  }, {
6576
6592
  _id: string;
6577
6593
  name: string;
@@ -6582,6 +6598,7 @@ declare const zEventRegResponse: z.ZodObject<z.objectUtil.extendShape<z.objectUt
6582
6598
  description?: string | undefined;
6583
6599
  isNotBuyable?: boolean | undefined;
6584
6600
  lastBuyableDate?: Date | undefined;
6601
+ maxPerOrder?: number | undefined;
6585
6602
  }>;
6586
6603
  }>, "strip", z.ZodTypeAny, {
6587
6604
  amount: number;
@@ -6595,6 +6612,7 @@ declare const zEventRegResponse: z.ZodObject<z.objectUtil.extendShape<z.objectUt
6595
6612
  description?: string | undefined;
6596
6613
  isNotBuyable?: boolean | undefined;
6597
6614
  lastBuyableDate?: Date | undefined;
6615
+ maxPerOrder?: number | undefined;
6598
6616
  };
6599
6617
  }, {
6600
6618
  amount: number;
@@ -6608,6 +6626,7 @@ declare const zEventRegResponse: z.ZodObject<z.objectUtil.extendShape<z.objectUt
6608
6626
  description?: string | undefined;
6609
6627
  isNotBuyable?: boolean | undefined;
6610
6628
  lastBuyableDate?: Date | undefined;
6629
+ maxPerOrder?: number | undefined;
6611
6630
  };
6612
6631
  }>, "many">;
6613
6632
  }>, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -6629,6 +6648,7 @@ declare const zEventRegResponse: z.ZodObject<z.objectUtil.extendShape<z.objectUt
6629
6648
  description?: string | undefined;
6630
6649
  isNotBuyable?: boolean | undefined;
6631
6650
  lastBuyableDate?: Date | undefined;
6651
+ maxPerOrder?: number | undefined;
6632
6652
  };
6633
6653
  }[];
6634
6654
  agaId: string;
@@ -6666,6 +6686,7 @@ declare const zEventRegResponse: z.ZodObject<z.objectUtil.extendShape<z.objectUt
6666
6686
  description?: string | undefined;
6667
6687
  isNotBuyable?: boolean | undefined;
6668
6688
  lastBuyableDate?: Date | undefined;
6689
+ maxPerOrder?: number | undefined;
6669
6690
  };
6670
6691
  }[];
6671
6692
  agaId: string;
@@ -6715,6 +6736,7 @@ declare const zEventTicketRegResponse: z.ZodObject<z.objectUtil.extendShape<{
6715
6736
  description: z.ZodOptional<z.ZodString>;
6716
6737
  isNotBuyable: z.ZodOptional<z.ZodBoolean>;
6717
6738
  lastBuyableDate: z.ZodOptional<z.ZodDate>;
6739
+ maxPerOrder: z.ZodOptional<z.ZodNumber>;
6718
6740
  }, {
6719
6741
  _id: z.ZodString;
6720
6742
  editedBy: z.ZodOptional<z.ZodString>;
@@ -6730,6 +6752,7 @@ declare const zEventTicketRegResponse: z.ZodObject<z.objectUtil.extendShape<{
6730
6752
  description?: string | undefined;
6731
6753
  isNotBuyable?: boolean | undefined;
6732
6754
  lastBuyableDate?: Date | undefined;
6755
+ maxPerOrder?: number | undefined;
6733
6756
  }, {
6734
6757
  _id: string;
6735
6758
  name: string;
@@ -6740,6 +6763,7 @@ declare const zEventTicketRegResponse: z.ZodObject<z.objectUtil.extendShape<{
6740
6763
  description?: string | undefined;
6741
6764
  isNotBuyable?: boolean | undefined;
6742
6765
  lastBuyableDate?: Date | undefined;
6766
+ maxPerOrder?: number | undefined;
6743
6767
  }>;
6744
6768
  }>, "strip", z.ZodTypeAny, {
6745
6769
  amount: number;
@@ -6753,6 +6777,7 @@ declare const zEventTicketRegResponse: z.ZodObject<z.objectUtil.extendShape<{
6753
6777
  description?: string | undefined;
6754
6778
  isNotBuyable?: boolean | undefined;
6755
6779
  lastBuyableDate?: Date | undefined;
6780
+ maxPerOrder?: number | undefined;
6756
6781
  };
6757
6782
  }, {
6758
6783
  amount: number;
@@ -6766,6 +6791,7 @@ declare const zEventTicketRegResponse: z.ZodObject<z.objectUtil.extendShape<{
6766
6791
  description?: string | undefined;
6767
6792
  isNotBuyable?: boolean | undefined;
6768
6793
  lastBuyableDate?: Date | undefined;
6794
+ maxPerOrder?: number | undefined;
6769
6795
  };
6770
6796
  }>;
6771
6797
  type EventTicketRegResponse = z.infer<typeof zEventTicketRegResponse>;
@@ -6789,18 +6815,24 @@ declare const zBEventTicket: z.ZodObject<{
6789
6815
  * @optional If date is provided and in the past, ticket cannot be purchased
6790
6816
  */
6791
6817
  lastBuyableDate: z.ZodOptional<z.ZodDate>;
6818
+ /**
6819
+ * @optional max limit is 1 unless maxPerOrder is specified
6820
+ */
6821
+ maxPerOrder: z.ZodOptional<z.ZodNumber>;
6792
6822
  }, "strip", z.ZodTypeAny, {
6793
6823
  name: string;
6794
6824
  price: number;
6795
6825
  description?: string | undefined;
6796
6826
  isNotBuyable?: boolean | undefined;
6797
6827
  lastBuyableDate?: Date | undefined;
6828
+ maxPerOrder?: number | undefined;
6798
6829
  }, {
6799
6830
  name: string;
6800
6831
  price: number;
6801
6832
  description?: string | undefined;
6802
6833
  isNotBuyable?: boolean | undefined;
6803
6834
  lastBuyableDate?: Date | undefined;
6835
+ maxPerOrder?: number | undefined;
6804
6836
  }>;
6805
6837
  declare const zEventTicket: z.ZodObject<z.objectUtil.extendShape<{
6806
6838
  name: z.ZodString;
@@ -6820,6 +6852,10 @@ declare const zEventTicket: z.ZodObject<z.objectUtil.extendShape<{
6820
6852
  * @optional If date is provided and in the past, ticket cannot be purchased
6821
6853
  */
6822
6854
  lastBuyableDate: z.ZodOptional<z.ZodDate>;
6855
+ /**
6856
+ * @optional max limit is 1 unless maxPerOrder is specified
6857
+ */
6858
+ maxPerOrder: z.ZodOptional<z.ZodNumber>;
6823
6859
  }, {
6824
6860
  _id: z.ZodString;
6825
6861
  editedBy: z.ZodOptional<z.ZodString>;
@@ -6835,6 +6871,7 @@ declare const zEventTicket: z.ZodObject<z.objectUtil.extendShape<{
6835
6871
  description?: string | undefined;
6836
6872
  isNotBuyable?: boolean | undefined;
6837
6873
  lastBuyableDate?: Date | undefined;
6874
+ maxPerOrder?: number | undefined;
6838
6875
  }, {
6839
6876
  _id: string;
6840
6877
  name: string;
@@ -6845,6 +6882,7 @@ declare const zEventTicket: z.ZodObject<z.objectUtil.extendShape<{
6845
6882
  description?: string | undefined;
6846
6883
  isNotBuyable?: boolean | undefined;
6847
6884
  lastBuyableDate?: Date | undefined;
6885
+ maxPerOrder?: number | undefined;
6848
6886
  }>;
6849
6887
  type BEventTicket = z.infer<typeof zBEventTicket>;
6850
6888
  type EventTicket = z.infer<typeof zEventTicket>;
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;
@@ -6191,6 +6200,7 @@ declare const zEventConfigResponse: z.ZodObject<z.objectUtil.extendShape<z.objec
6191
6200
  description: z.ZodOptional<z.ZodString>;
6192
6201
  isNotBuyable: z.ZodOptional<z.ZodBoolean>;
6193
6202
  lastBuyableDate: z.ZodOptional<z.ZodDate>;
6203
+ maxPerOrder: z.ZodOptional<z.ZodNumber>;
6194
6204
  }, {
6195
6205
  _id: z.ZodString;
6196
6206
  editedBy: z.ZodOptional<z.ZodString>;
@@ -6206,6 +6216,7 @@ declare const zEventConfigResponse: z.ZodObject<z.objectUtil.extendShape<z.objec
6206
6216
  description?: string | undefined;
6207
6217
  isNotBuyable?: boolean | undefined;
6208
6218
  lastBuyableDate?: Date | undefined;
6219
+ maxPerOrder?: number | undefined;
6209
6220
  }, {
6210
6221
  _id: string;
6211
6222
  name: string;
@@ -6216,6 +6227,7 @@ declare const zEventConfigResponse: z.ZodObject<z.objectUtil.extendShape<z.objec
6216
6227
  description?: string | undefined;
6217
6228
  isNotBuyable?: boolean | undefined;
6218
6229
  lastBuyableDate?: Date | undefined;
6230
+ maxPerOrder?: number | undefined;
6219
6231
  }>, "many">;
6220
6232
  }>, z.UnknownKeysParam, z.ZodTypeAny, {
6221
6233
  _id: string;
@@ -6244,6 +6256,7 @@ declare const zEventConfigResponse: z.ZodObject<z.objectUtil.extendShape<z.objec
6244
6256
  description?: string | undefined;
6245
6257
  isNotBuyable?: boolean | undefined;
6246
6258
  lastBuyableDate?: Date | undefined;
6259
+ maxPerOrder?: number | undefined;
6247
6260
  }[];
6248
6261
  canRegister: boolean;
6249
6262
  editedBy?: string | undefined;
@@ -6283,6 +6296,7 @@ declare const zEventConfigResponse: z.ZodObject<z.objectUtil.extendShape<z.objec
6283
6296
  description?: string | undefined;
6284
6297
  isNotBuyable?: boolean | undefined;
6285
6298
  lastBuyableDate?: Date | undefined;
6299
+ maxPerOrder?: number | undefined;
6286
6300
  }[];
6287
6301
  canRegister: boolean;
6288
6302
  editedBy?: string | undefined;
@@ -6557,6 +6571,7 @@ declare const zEventRegResponse: z.ZodObject<z.objectUtil.extendShape<z.objectUt
6557
6571
  description: z.ZodOptional<z.ZodString>;
6558
6572
  isNotBuyable: z.ZodOptional<z.ZodBoolean>;
6559
6573
  lastBuyableDate: z.ZodOptional<z.ZodDate>;
6574
+ maxPerOrder: z.ZodOptional<z.ZodNumber>;
6560
6575
  }, {
6561
6576
  _id: z.ZodString;
6562
6577
  editedBy: z.ZodOptional<z.ZodString>;
@@ -6572,6 +6587,7 @@ declare const zEventRegResponse: z.ZodObject<z.objectUtil.extendShape<z.objectUt
6572
6587
  description?: string | undefined;
6573
6588
  isNotBuyable?: boolean | undefined;
6574
6589
  lastBuyableDate?: Date | undefined;
6590
+ maxPerOrder?: number | undefined;
6575
6591
  }, {
6576
6592
  _id: string;
6577
6593
  name: string;
@@ -6582,6 +6598,7 @@ declare const zEventRegResponse: z.ZodObject<z.objectUtil.extendShape<z.objectUt
6582
6598
  description?: string | undefined;
6583
6599
  isNotBuyable?: boolean | undefined;
6584
6600
  lastBuyableDate?: Date | undefined;
6601
+ maxPerOrder?: number | undefined;
6585
6602
  }>;
6586
6603
  }>, "strip", z.ZodTypeAny, {
6587
6604
  amount: number;
@@ -6595,6 +6612,7 @@ declare const zEventRegResponse: z.ZodObject<z.objectUtil.extendShape<z.objectUt
6595
6612
  description?: string | undefined;
6596
6613
  isNotBuyable?: boolean | undefined;
6597
6614
  lastBuyableDate?: Date | undefined;
6615
+ maxPerOrder?: number | undefined;
6598
6616
  };
6599
6617
  }, {
6600
6618
  amount: number;
@@ -6608,6 +6626,7 @@ declare const zEventRegResponse: z.ZodObject<z.objectUtil.extendShape<z.objectUt
6608
6626
  description?: string | undefined;
6609
6627
  isNotBuyable?: boolean | undefined;
6610
6628
  lastBuyableDate?: Date | undefined;
6629
+ maxPerOrder?: number | undefined;
6611
6630
  };
6612
6631
  }>, "many">;
6613
6632
  }>, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -6629,6 +6648,7 @@ declare const zEventRegResponse: z.ZodObject<z.objectUtil.extendShape<z.objectUt
6629
6648
  description?: string | undefined;
6630
6649
  isNotBuyable?: boolean | undefined;
6631
6650
  lastBuyableDate?: Date | undefined;
6651
+ maxPerOrder?: number | undefined;
6632
6652
  };
6633
6653
  }[];
6634
6654
  agaId: string;
@@ -6666,6 +6686,7 @@ declare const zEventRegResponse: z.ZodObject<z.objectUtil.extendShape<z.objectUt
6666
6686
  description?: string | undefined;
6667
6687
  isNotBuyable?: boolean | undefined;
6668
6688
  lastBuyableDate?: Date | undefined;
6689
+ maxPerOrder?: number | undefined;
6669
6690
  };
6670
6691
  }[];
6671
6692
  agaId: string;
@@ -6715,6 +6736,7 @@ declare const zEventTicketRegResponse: z.ZodObject<z.objectUtil.extendShape<{
6715
6736
  description: z.ZodOptional<z.ZodString>;
6716
6737
  isNotBuyable: z.ZodOptional<z.ZodBoolean>;
6717
6738
  lastBuyableDate: z.ZodOptional<z.ZodDate>;
6739
+ maxPerOrder: z.ZodOptional<z.ZodNumber>;
6718
6740
  }, {
6719
6741
  _id: z.ZodString;
6720
6742
  editedBy: z.ZodOptional<z.ZodString>;
@@ -6730,6 +6752,7 @@ declare const zEventTicketRegResponse: z.ZodObject<z.objectUtil.extendShape<{
6730
6752
  description?: string | undefined;
6731
6753
  isNotBuyable?: boolean | undefined;
6732
6754
  lastBuyableDate?: Date | undefined;
6755
+ maxPerOrder?: number | undefined;
6733
6756
  }, {
6734
6757
  _id: string;
6735
6758
  name: string;
@@ -6740,6 +6763,7 @@ declare const zEventTicketRegResponse: z.ZodObject<z.objectUtil.extendShape<{
6740
6763
  description?: string | undefined;
6741
6764
  isNotBuyable?: boolean | undefined;
6742
6765
  lastBuyableDate?: Date | undefined;
6766
+ maxPerOrder?: number | undefined;
6743
6767
  }>;
6744
6768
  }>, "strip", z.ZodTypeAny, {
6745
6769
  amount: number;
@@ -6753,6 +6777,7 @@ declare const zEventTicketRegResponse: z.ZodObject<z.objectUtil.extendShape<{
6753
6777
  description?: string | undefined;
6754
6778
  isNotBuyable?: boolean | undefined;
6755
6779
  lastBuyableDate?: Date | undefined;
6780
+ maxPerOrder?: number | undefined;
6756
6781
  };
6757
6782
  }, {
6758
6783
  amount: number;
@@ -6766,6 +6791,7 @@ declare const zEventTicketRegResponse: z.ZodObject<z.objectUtil.extendShape<{
6766
6791
  description?: string | undefined;
6767
6792
  isNotBuyable?: boolean | undefined;
6768
6793
  lastBuyableDate?: Date | undefined;
6794
+ maxPerOrder?: number | undefined;
6769
6795
  };
6770
6796
  }>;
6771
6797
  type EventTicketRegResponse = z.infer<typeof zEventTicketRegResponse>;
@@ -6789,18 +6815,24 @@ declare const zBEventTicket: z.ZodObject<{
6789
6815
  * @optional If date is provided and in the past, ticket cannot be purchased
6790
6816
  */
6791
6817
  lastBuyableDate: z.ZodOptional<z.ZodDate>;
6818
+ /**
6819
+ * @optional max limit is 1 unless maxPerOrder is specified
6820
+ */
6821
+ maxPerOrder: z.ZodOptional<z.ZodNumber>;
6792
6822
  }, "strip", z.ZodTypeAny, {
6793
6823
  name: string;
6794
6824
  price: number;
6795
6825
  description?: string | undefined;
6796
6826
  isNotBuyable?: boolean | undefined;
6797
6827
  lastBuyableDate?: Date | undefined;
6828
+ maxPerOrder?: number | undefined;
6798
6829
  }, {
6799
6830
  name: string;
6800
6831
  price: number;
6801
6832
  description?: string | undefined;
6802
6833
  isNotBuyable?: boolean | undefined;
6803
6834
  lastBuyableDate?: Date | undefined;
6835
+ maxPerOrder?: number | undefined;
6804
6836
  }>;
6805
6837
  declare const zEventTicket: z.ZodObject<z.objectUtil.extendShape<{
6806
6838
  name: z.ZodString;
@@ -6820,6 +6852,10 @@ declare const zEventTicket: z.ZodObject<z.objectUtil.extendShape<{
6820
6852
  * @optional If date is provided and in the past, ticket cannot be purchased
6821
6853
  */
6822
6854
  lastBuyableDate: z.ZodOptional<z.ZodDate>;
6855
+ /**
6856
+ * @optional max limit is 1 unless maxPerOrder is specified
6857
+ */
6858
+ maxPerOrder: z.ZodOptional<z.ZodNumber>;
6823
6859
  }, {
6824
6860
  _id: z.ZodString;
6825
6861
  editedBy: z.ZodOptional<z.ZodString>;
@@ -6835,6 +6871,7 @@ declare const zEventTicket: z.ZodObject<z.objectUtil.extendShape<{
6835
6871
  description?: string | undefined;
6836
6872
  isNotBuyable?: boolean | undefined;
6837
6873
  lastBuyableDate?: Date | undefined;
6874
+ maxPerOrder?: number | undefined;
6838
6875
  }, {
6839
6876
  _id: string;
6840
6877
  name: string;
@@ -6845,6 +6882,7 @@ declare const zEventTicket: z.ZodObject<z.objectUtil.extendShape<{
6845
6882
  description?: string | undefined;
6846
6883
  isNotBuyable?: boolean | undefined;
6847
6884
  lastBuyableDate?: Date | undefined;
6885
+ maxPerOrder?: number | undefined;
6848
6886
  }>;
6849
6887
  type BEventTicket = z.infer<typeof zBEventTicket>;
6850
6888
  type EventTicket = z.infer<typeof zEventTicket>;
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(),
@@ -766,7 +767,11 @@ var zBEventTicket = import_zod27.z.object({
766
767
  /**
767
768
  * @optional If date is provided and in the past, ticket cannot be purchased
768
769
  */
769
- lastBuyableDate: import_zod27.z.coerce.date().optional()
770
+ lastBuyableDate: import_zod27.z.coerce.date().optional(),
771
+ /**
772
+ * @optional max limit is 1 unless maxPerOrder is specified
773
+ */
774
+ maxPerOrder: import_zod27.z.number().int().min(2).optional()
770
775
  });
771
776
  var zEventTicket = addAutoProps(zBEventTicket);
772
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(),
@@ -659,7 +660,11 @@ var zBEventTicket = z27.object({
659
660
  /**
660
661
  * @optional If date is provided and in the past, ticket cannot be purchased
661
662
  */
662
- lastBuyableDate: z27.coerce.date().optional()
663
+ lastBuyableDate: z27.coerce.date().optional(),
664
+ /**
665
+ * @optional max limit is 1 unless maxPerOrder is specified
666
+ */
667
+ maxPerOrder: z27.number().int().min(2).optional()
663
668
  });
664
669
  var zEventTicket = addAutoProps(zBEventTicket);
665
670
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyig/models",
3
- "version": "0.4.5",
3
+ "version": "0.4.7",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",