@nyig/models 0.4.13 → 0.4.14

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.
Files changed (5) hide show
  1. package/index.d.mts +2288 -2525
  2. package/index.d.ts +2288 -2525
  3. package/index.js +11 -4
  4. package/index.mjs +8 -1
  5. package/package.json +8 -8
package/index.js CHANGED
@@ -18,8 +18,8 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
20
  // src/index.ts
21
- var src_exports = {};
22
- __export(src_exports, {
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
23
  AgeGroup: () => AgeGroup,
24
24
  AttendState: () => AttendState,
25
25
  BookingType: () => BookingType,
@@ -103,7 +103,7 @@ __export(src_exports, {
103
103
  zUser: () => zUser,
104
104
  zUserRoles: () => zUserRoles
105
105
  });
106
- module.exports = __toCommonJS(src_exports);
106
+ module.exports = __toCommonJS(index_exports);
107
107
 
108
108
  // src/interface/booking/bPaymentInfo.ts
109
109
  var import_zod = require("zod");
@@ -152,7 +152,9 @@ var zBUserInfo = import_zod2.z.object({
152
152
  // Additional info such as friend/family referer
153
153
  hearAboutUsDetails: import_zod2.z.string().optional(),
154
154
  // show/hide on Aurora event page "who is coming" list
155
- showOnWhoIsComing: import_zod2.z.boolean().optional()
155
+ showOnWhoIsComing: import_zod2.z.boolean().optional(),
156
+ // Required for youth tournaments
157
+ dateOfBirth: import_zod2.z.string().optional()
156
158
  });
157
159
 
158
160
  // src/interface/booking/bookingType.ts
@@ -853,6 +855,11 @@ var zBEventConfig = import_zod29.z.object({
853
855
  * If false, the tournament registration is closed
854
856
  */
855
857
  canRegister: import_zod29.z.boolean(),
858
+ /**
859
+ * If true, the tournament is youth only.
860
+ * example: registration requires a date of birth to confirm.
861
+ */
862
+ isYouth: import_zod29.z.boolean(),
856
863
  /**
857
864
  * If true, free form donation amounts are disabled.
858
865
  */
package/index.mjs CHANGED
@@ -45,7 +45,9 @@ var zBUserInfo = z2.object({
45
45
  // Additional info such as friend/family referer
46
46
  hearAboutUsDetails: z2.string().optional(),
47
47
  // show/hide on Aurora event page "who is coming" list
48
- showOnWhoIsComing: z2.boolean().optional()
48
+ showOnWhoIsComing: z2.boolean().optional(),
49
+ // Required for youth tournaments
50
+ dateOfBirth: z2.string().optional()
49
51
  });
50
52
 
51
53
  // src/interface/booking/bookingType.ts
@@ -746,6 +748,11 @@ var zBEventConfig = z29.object({
746
748
  * If false, the tournament registration is closed
747
749
  */
748
750
  canRegister: z29.boolean(),
751
+ /**
752
+ * If true, the tournament is youth only.
753
+ * example: registration requires a date of birth to confirm.
754
+ */
755
+ isYouth: z29.boolean(),
749
756
  /**
750
757
  * If true, free form donation amounts are disabled.
751
758
  */
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@nyig/models",
3
- "version": "0.4.13",
3
+ "version": "0.4.14",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
7
7
  "types": "index.d.ts",
8
8
  "peerDependencies": {
9
- "zod": ">=3.22.4"
9
+ "zod": ">=3.24.3"
10
10
  },
11
11
  "devDependencies": {
12
- "@changesets/cli": "^2.27.7",
13
- "husky": "^9.1.5",
14
- "lint-staged": "^15.2.9",
15
- "prettier": "^3.3.3",
16
- "tsup": "^8.2.4",
17
- "typescript": "^5.5.4"
12
+ "@changesets/cli": "^2.29.2",
13
+ "husky": "^9.1.7",
14
+ "lint-staged": "^15.5.1",
15
+ "prettier": "^3.5.3",
16
+ "tsup": "^8.4.0",
17
+ "typescript": "^5.8.3"
18
18
  },
19
19
  "lint-staged": {
20
20
  "*.{js,ts,md}": "prettier --write"