@nyig/models 0.6.11 → 0.6.13

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
@@ -6417,7 +6417,7 @@ type Semester = z.infer<typeof zSemester>;
6417
6417
  declare enum YouthOrAdult {
6418
6418
  YOUTH_ONLY = "Youth only",
6419
6419
  ADULT_ONLY = "Adult only",
6420
- BOTH = "both"
6420
+ BOTH = "Both"
6421
6421
  }
6422
6422
 
6423
6423
  declare const zBEventConfig: z.ZodObject<{
@@ -6454,16 +6454,6 @@ declare const zBEventConfig: z.ZodObject<{
6454
6454
  * Full description
6455
6455
  */
6456
6456
  description: z.ZodString;
6457
- /**
6458
- * @deprecated
6459
- * info in description field, kept for backwards compatibility
6460
- */
6461
- details: z.ZodOptional<z.ZodAny>;
6462
- /**
6463
- * @deprecated
6464
- * info in description field, kept for backwards compatibility
6465
- */
6466
- schedule: z.ZodOptional<z.ZodAny>;
6467
6457
  /**
6468
6458
  * @optional description of the tickets step, shown in service
6469
6459
  * when the customer is on step 1 of the booking page
@@ -6482,10 +6472,13 @@ declare const zBEventConfig: z.ZodObject<{
6482
6472
  * If false, the tournament registration is closed
6483
6473
  */
6484
6474
  canRegister: z.ZodBoolean;
6475
+ /**
6476
+ * If false, the tournament is not viewable in public APIs
6477
+ * admin console can still see it
6478
+ */
6479
+ isHidden: z.ZodBoolean;
6485
6480
  /**
6486
6481
  * Defines the registration of youth and adults in the event
6487
- * youth_only - only youth
6488
- * both - both youth and adult
6489
6482
  */
6490
6483
  youthOrAdult: z.ZodOptional<z.ZodNativeEnum<typeof YouthOrAdult>>;
6491
6484
  /**
@@ -6518,9 +6511,8 @@ declare const zBEventConfig: z.ZodObject<{
6518
6511
  shortDescription: string;
6519
6512
  tickets: string[];
6520
6513
  canRegister: boolean;
6514
+ isHidden: boolean;
6521
6515
  location?: string | undefined;
6522
- details?: any;
6523
- schedule?: any;
6524
6516
  ticketsStepDescription?: string | undefined;
6525
6517
  participantStepDescription?: string | undefined;
6526
6518
  youthOrAdult?: YouthOrAdult | undefined;
@@ -6540,9 +6532,8 @@ declare const zBEventConfig: z.ZodObject<{
6540
6532
  shortDescription: string;
6541
6533
  tickets: string[];
6542
6534
  canRegister: boolean;
6535
+ isHidden: boolean;
6543
6536
  location?: string | undefined;
6544
- details?: any;
6545
- schedule?: any;
6546
6537
  ticketsStepDescription?: string | undefined;
6547
6538
  participantStepDescription?: string | undefined;
6548
6539
  youthOrAdult?: YouthOrAdult | undefined;
@@ -6587,16 +6578,6 @@ declare const zEventConfig: z.ZodObject<{
6587
6578
  * Full description
6588
6579
  */
6589
6580
  description: z.ZodString;
6590
- /**
6591
- * @deprecated
6592
- * info in description field, kept for backwards compatibility
6593
- */
6594
- details: z.ZodOptional<z.ZodAny>;
6595
- /**
6596
- * @deprecated
6597
- * info in description field, kept for backwards compatibility
6598
- */
6599
- schedule: z.ZodOptional<z.ZodAny>;
6600
6581
  /**
6601
6582
  * @optional description of the tickets step, shown in service
6602
6583
  * when the customer is on step 1 of the booking page
@@ -6615,10 +6596,13 @@ declare const zEventConfig: z.ZodObject<{
6615
6596
  * If false, the tournament registration is closed
6616
6597
  */
6617
6598
  canRegister: z.ZodBoolean;
6599
+ /**
6600
+ * If false, the tournament is not viewable in public APIs
6601
+ * admin console can still see it
6602
+ */
6603
+ isHidden: z.ZodBoolean;
6618
6604
  /**
6619
6605
  * Defines the registration of youth and adults in the event
6620
- * youth_only - only youth
6621
- * both - both youth and adult
6622
6606
  */
6623
6607
  youthOrAdult: z.ZodOptional<z.ZodNativeEnum<typeof YouthOrAdult>>;
6624
6608
  /**
@@ -6657,12 +6641,11 @@ declare const zEventConfig: z.ZodObject<{
6657
6641
  shortDescription: string;
6658
6642
  tickets: string[];
6659
6643
  canRegister: boolean;
6644
+ isHidden: boolean;
6660
6645
  editedBy?: string | undefined;
6661
6646
  createdAt?: string | undefined;
6662
6647
  updatedAt?: string | undefined;
6663
6648
  location?: string | undefined;
6664
- details?: any;
6665
- schedule?: any;
6666
6649
  ticketsStepDescription?: string | undefined;
6667
6650
  participantStepDescription?: string | undefined;
6668
6651
  youthOrAdult?: YouthOrAdult | undefined;
@@ -6683,12 +6666,11 @@ declare const zEventConfig: z.ZodObject<{
6683
6666
  shortDescription: string;
6684
6667
  tickets: string[];
6685
6668
  canRegister: boolean;
6669
+ isHidden: boolean;
6686
6670
  editedBy?: string | undefined;
6687
6671
  createdAt?: string | undefined;
6688
6672
  updatedAt?: string | undefined;
6689
6673
  location?: string | undefined;
6690
- details?: any;
6691
- schedule?: any;
6692
6674
  ticketsStepDescription?: string | undefined;
6693
6675
  participantStepDescription?: string | undefined;
6694
6676
  youthOrAdult?: YouthOrAdult | undefined;
@@ -6708,11 +6690,10 @@ declare const zEventConfigResponse: z.ZodObject<{
6708
6690
  tEnd: z.ZodDate;
6709
6691
  shortDescription: z.ZodString;
6710
6692
  description: z.ZodString;
6711
- details: z.ZodOptional<z.ZodAny>;
6712
- schedule: z.ZodOptional<z.ZodAny>;
6713
6693
  ticketsStepDescription: z.ZodOptional<z.ZodString>;
6714
6694
  participantStepDescription: z.ZodOptional<z.ZodString>;
6715
6695
  canRegister: z.ZodBoolean;
6696
+ isHidden: z.ZodBoolean;
6716
6697
  youthOrAdult: z.ZodOptional<z.ZodNativeEnum<typeof YouthOrAdult>>;
6717
6698
  donationsDisabled: z.ZodOptional<z.ZodBoolean>;
6718
6699
  image: z.ZodOptional<z.ZodObject<{
@@ -6790,12 +6771,11 @@ declare const zEventConfigResponse: z.ZodObject<{
6790
6771
  maxPerOrder?: number | undefined;
6791
6772
  }[];
6792
6773
  canRegister: boolean;
6774
+ isHidden: boolean;
6793
6775
  editedBy?: string | undefined;
6794
6776
  createdAt?: string | undefined;
6795
6777
  updatedAt?: string | undefined;
6796
6778
  location?: string | undefined;
6797
- details?: any;
6798
- schedule?: any;
6799
6779
  ticketsStepDescription?: string | undefined;
6800
6780
  participantStepDescription?: string | undefined;
6801
6781
  youthOrAdult?: YouthOrAdult | undefined;
@@ -6827,12 +6807,11 @@ declare const zEventConfigResponse: z.ZodObject<{
6827
6807
  maxPerOrder?: number | undefined;
6828
6808
  }[];
6829
6809
  canRegister: boolean;
6810
+ isHidden: boolean;
6830
6811
  editedBy?: string | undefined;
6831
6812
  createdAt?: string | undefined;
6832
6813
  updatedAt?: string | undefined;
6833
6814
  location?: string | undefined;
6834
- details?: any;
6835
- schedule?: any;
6836
6815
  ticketsStepDescription?: string | undefined;
6837
6816
  participantStepDescription?: string | undefined;
6838
6817
  youthOrAdult?: YouthOrAdult | undefined;
package/index.d.ts CHANGED
@@ -6417,7 +6417,7 @@ type Semester = z.infer<typeof zSemester>;
6417
6417
  declare enum YouthOrAdult {
6418
6418
  YOUTH_ONLY = "Youth only",
6419
6419
  ADULT_ONLY = "Adult only",
6420
- BOTH = "both"
6420
+ BOTH = "Both"
6421
6421
  }
6422
6422
 
6423
6423
  declare const zBEventConfig: z.ZodObject<{
@@ -6454,16 +6454,6 @@ declare const zBEventConfig: z.ZodObject<{
6454
6454
  * Full description
6455
6455
  */
6456
6456
  description: z.ZodString;
6457
- /**
6458
- * @deprecated
6459
- * info in description field, kept for backwards compatibility
6460
- */
6461
- details: z.ZodOptional<z.ZodAny>;
6462
- /**
6463
- * @deprecated
6464
- * info in description field, kept for backwards compatibility
6465
- */
6466
- schedule: z.ZodOptional<z.ZodAny>;
6467
6457
  /**
6468
6458
  * @optional description of the tickets step, shown in service
6469
6459
  * when the customer is on step 1 of the booking page
@@ -6482,10 +6472,13 @@ declare const zBEventConfig: z.ZodObject<{
6482
6472
  * If false, the tournament registration is closed
6483
6473
  */
6484
6474
  canRegister: z.ZodBoolean;
6475
+ /**
6476
+ * If false, the tournament is not viewable in public APIs
6477
+ * admin console can still see it
6478
+ */
6479
+ isHidden: z.ZodBoolean;
6485
6480
  /**
6486
6481
  * Defines the registration of youth and adults in the event
6487
- * youth_only - only youth
6488
- * both - both youth and adult
6489
6482
  */
6490
6483
  youthOrAdult: z.ZodOptional<z.ZodNativeEnum<typeof YouthOrAdult>>;
6491
6484
  /**
@@ -6518,9 +6511,8 @@ declare const zBEventConfig: z.ZodObject<{
6518
6511
  shortDescription: string;
6519
6512
  tickets: string[];
6520
6513
  canRegister: boolean;
6514
+ isHidden: boolean;
6521
6515
  location?: string | undefined;
6522
- details?: any;
6523
- schedule?: any;
6524
6516
  ticketsStepDescription?: string | undefined;
6525
6517
  participantStepDescription?: string | undefined;
6526
6518
  youthOrAdult?: YouthOrAdult | undefined;
@@ -6540,9 +6532,8 @@ declare const zBEventConfig: z.ZodObject<{
6540
6532
  shortDescription: string;
6541
6533
  tickets: string[];
6542
6534
  canRegister: boolean;
6535
+ isHidden: boolean;
6543
6536
  location?: string | undefined;
6544
- details?: any;
6545
- schedule?: any;
6546
6537
  ticketsStepDescription?: string | undefined;
6547
6538
  participantStepDescription?: string | undefined;
6548
6539
  youthOrAdult?: YouthOrAdult | undefined;
@@ -6587,16 +6578,6 @@ declare const zEventConfig: z.ZodObject<{
6587
6578
  * Full description
6588
6579
  */
6589
6580
  description: z.ZodString;
6590
- /**
6591
- * @deprecated
6592
- * info in description field, kept for backwards compatibility
6593
- */
6594
- details: z.ZodOptional<z.ZodAny>;
6595
- /**
6596
- * @deprecated
6597
- * info in description field, kept for backwards compatibility
6598
- */
6599
- schedule: z.ZodOptional<z.ZodAny>;
6600
6581
  /**
6601
6582
  * @optional description of the tickets step, shown in service
6602
6583
  * when the customer is on step 1 of the booking page
@@ -6615,10 +6596,13 @@ declare const zEventConfig: z.ZodObject<{
6615
6596
  * If false, the tournament registration is closed
6616
6597
  */
6617
6598
  canRegister: z.ZodBoolean;
6599
+ /**
6600
+ * If false, the tournament is not viewable in public APIs
6601
+ * admin console can still see it
6602
+ */
6603
+ isHidden: z.ZodBoolean;
6618
6604
  /**
6619
6605
  * Defines the registration of youth and adults in the event
6620
- * youth_only - only youth
6621
- * both - both youth and adult
6622
6606
  */
6623
6607
  youthOrAdult: z.ZodOptional<z.ZodNativeEnum<typeof YouthOrAdult>>;
6624
6608
  /**
@@ -6657,12 +6641,11 @@ declare const zEventConfig: z.ZodObject<{
6657
6641
  shortDescription: string;
6658
6642
  tickets: string[];
6659
6643
  canRegister: boolean;
6644
+ isHidden: boolean;
6660
6645
  editedBy?: string | undefined;
6661
6646
  createdAt?: string | undefined;
6662
6647
  updatedAt?: string | undefined;
6663
6648
  location?: string | undefined;
6664
- details?: any;
6665
- schedule?: any;
6666
6649
  ticketsStepDescription?: string | undefined;
6667
6650
  participantStepDescription?: string | undefined;
6668
6651
  youthOrAdult?: YouthOrAdult | undefined;
@@ -6683,12 +6666,11 @@ declare const zEventConfig: z.ZodObject<{
6683
6666
  shortDescription: string;
6684
6667
  tickets: string[];
6685
6668
  canRegister: boolean;
6669
+ isHidden: boolean;
6686
6670
  editedBy?: string | undefined;
6687
6671
  createdAt?: string | undefined;
6688
6672
  updatedAt?: string | undefined;
6689
6673
  location?: string | undefined;
6690
- details?: any;
6691
- schedule?: any;
6692
6674
  ticketsStepDescription?: string | undefined;
6693
6675
  participantStepDescription?: string | undefined;
6694
6676
  youthOrAdult?: YouthOrAdult | undefined;
@@ -6708,11 +6690,10 @@ declare const zEventConfigResponse: z.ZodObject<{
6708
6690
  tEnd: z.ZodDate;
6709
6691
  shortDescription: z.ZodString;
6710
6692
  description: z.ZodString;
6711
- details: z.ZodOptional<z.ZodAny>;
6712
- schedule: z.ZodOptional<z.ZodAny>;
6713
6693
  ticketsStepDescription: z.ZodOptional<z.ZodString>;
6714
6694
  participantStepDescription: z.ZodOptional<z.ZodString>;
6715
6695
  canRegister: z.ZodBoolean;
6696
+ isHidden: z.ZodBoolean;
6716
6697
  youthOrAdult: z.ZodOptional<z.ZodNativeEnum<typeof YouthOrAdult>>;
6717
6698
  donationsDisabled: z.ZodOptional<z.ZodBoolean>;
6718
6699
  image: z.ZodOptional<z.ZodObject<{
@@ -6790,12 +6771,11 @@ declare const zEventConfigResponse: z.ZodObject<{
6790
6771
  maxPerOrder?: number | undefined;
6791
6772
  }[];
6792
6773
  canRegister: boolean;
6774
+ isHidden: boolean;
6793
6775
  editedBy?: string | undefined;
6794
6776
  createdAt?: string | undefined;
6795
6777
  updatedAt?: string | undefined;
6796
6778
  location?: string | undefined;
6797
- details?: any;
6798
- schedule?: any;
6799
6779
  ticketsStepDescription?: string | undefined;
6800
6780
  participantStepDescription?: string | undefined;
6801
6781
  youthOrAdult?: YouthOrAdult | undefined;
@@ -6827,12 +6807,11 @@ declare const zEventConfigResponse: z.ZodObject<{
6827
6807
  maxPerOrder?: number | undefined;
6828
6808
  }[];
6829
6809
  canRegister: boolean;
6810
+ isHidden: boolean;
6830
6811
  editedBy?: string | undefined;
6831
6812
  createdAt?: string | undefined;
6832
6813
  updatedAt?: string | undefined;
6833
6814
  location?: string | undefined;
6834
- details?: any;
6835
- schedule?: any;
6836
6815
  ticketsStepDescription?: string | undefined;
6837
6816
  participantStepDescription?: string | undefined;
6838
6817
  youthOrAdult?: YouthOrAdult | undefined;
package/index.js CHANGED
@@ -843,7 +843,7 @@ var zEventTicket = addAutoProps(zBEventTicket);
843
843
  var YouthOrAdult = /* @__PURE__ */ ((YouthOrAdult2) => {
844
844
  YouthOrAdult2["YOUTH_ONLY"] = "Youth only";
845
845
  YouthOrAdult2["ADULT_ONLY"] = "Adult only";
846
- YouthOrAdult2["BOTH"] = "both";
846
+ YouthOrAdult2["BOTH"] = "Both";
847
847
  return YouthOrAdult2;
848
848
  })(YouthOrAdult || {});
849
849
 
@@ -882,16 +882,6 @@ var zBEventConfig = import_zod29.z.object({
882
882
  * Full description
883
883
  */
884
884
  description: import_zod29.z.string().min(5),
885
- /**
886
- * @deprecated
887
- * info in description field, kept for backwards compatibility
888
- */
889
- details: import_zod29.z.any().optional(),
890
- /**
891
- * @deprecated
892
- * info in description field, kept for backwards compatibility
893
- */
894
- schedule: import_zod29.z.any().optional(),
895
885
  /**
896
886
  * @optional description of the tickets step, shown in service
897
887
  * when the customer is on step 1 of the booking page
@@ -910,10 +900,13 @@ var zBEventConfig = import_zod29.z.object({
910
900
  * If false, the tournament registration is closed
911
901
  */
912
902
  canRegister: import_zod29.z.boolean(),
903
+ /**
904
+ * If false, the tournament is not viewable in public APIs
905
+ * admin console can still see it
906
+ */
907
+ isHidden: import_zod29.z.boolean(),
913
908
  /**
914
909
  * Defines the registration of youth and adults in the event
915
- * youth_only - only youth
916
- * both - both youth and adult
917
910
  */
918
911
  youthOrAdult: import_zod29.z.nativeEnum(YouthOrAdult).optional(),
919
912
  /**
package/index.mjs CHANGED
@@ -731,7 +731,7 @@ var zEventTicket = addAutoProps(zBEventTicket);
731
731
  var YouthOrAdult = /* @__PURE__ */ ((YouthOrAdult2) => {
732
732
  YouthOrAdult2["YOUTH_ONLY"] = "Youth only";
733
733
  YouthOrAdult2["ADULT_ONLY"] = "Adult only";
734
- YouthOrAdult2["BOTH"] = "both";
734
+ YouthOrAdult2["BOTH"] = "Both";
735
735
  return YouthOrAdult2;
736
736
  })(YouthOrAdult || {});
737
737
 
@@ -770,16 +770,6 @@ var zBEventConfig = z29.object({
770
770
  * Full description
771
771
  */
772
772
  description: z29.string().min(5),
773
- /**
774
- * @deprecated
775
- * info in description field, kept for backwards compatibility
776
- */
777
- details: z29.any().optional(),
778
- /**
779
- * @deprecated
780
- * info in description field, kept for backwards compatibility
781
- */
782
- schedule: z29.any().optional(),
783
773
  /**
784
774
  * @optional description of the tickets step, shown in service
785
775
  * when the customer is on step 1 of the booking page
@@ -798,10 +788,13 @@ var zBEventConfig = z29.object({
798
788
  * If false, the tournament registration is closed
799
789
  */
800
790
  canRegister: z29.boolean(),
791
+ /**
792
+ * If false, the tournament is not viewable in public APIs
793
+ * admin console can still see it
794
+ */
795
+ isHidden: z29.boolean(),
801
796
  /**
802
797
  * Defines the registration of youth and adults in the event
803
- * youth_only - only youth
804
- * both - both youth and adult
805
798
  */
806
799
  youthOrAdult: z29.nativeEnum(YouthOrAdult).optional(),
807
800
  /**
package/package.json CHANGED
@@ -1,10 +1,19 @@
1
1
  {
2
2
  "name": "@nyig/models",
3
- "version": "0.6.11",
3
+ "version": "0.6.13",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
7
7
  "types": "index.d.ts",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/liryan1/nyig-models.git"
11
+ },
12
+ "publishConfig": {
13
+ "access": "public",
14
+ "directory": "dist",
15
+ "provenance": true
16
+ },
8
17
  "peerDependencies": {
9
18
  "zod": "^3.25.76"
10
19
  },
@@ -19,9 +28,6 @@
19
28
  "lint-staged": {
20
29
  "*.{js,ts,md}": "prettier --write"
21
30
  },
22
- "publishConfig": {
23
- "directory": "dist"
24
- },
25
31
  "scripts": {
26
32
  "build": "tsup src/index.ts --format cjs,esm --dts",
27
33
  "clean": "rm -rf dist node_modules",