@nyig/models 0.4.12 → 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.
- package/index.d.mts +2388 -2716
- package/index.d.ts +2388 -2716
- package/index.js +18 -6
- package/index.mjs +15 -3
- 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
|
|
22
|
-
__export(
|
|
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(
|
|
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
|
|
@@ -694,11 +696,16 @@ var zTeacherPaymentRow = import_zod23.z.object({
|
|
|
694
696
|
var zBTeacherPayment = import_zod23.z.object({
|
|
695
697
|
teacher: import_zod23.z.string().min(1, "select or enter a teacher"),
|
|
696
698
|
rows: import_zod23.z.array(zTeacherPaymentRow),
|
|
697
|
-
paid: import_zod23.z.boolean().optional()
|
|
699
|
+
paid: import_zod23.z.boolean().optional(),
|
|
700
|
+
/**
|
|
701
|
+
* paymentNotes differentiates from notes as it is displayed on the rendered PDF
|
|
702
|
+
*/
|
|
703
|
+
paymentNotes: import_zod23.z.string().optional()
|
|
698
704
|
});
|
|
699
705
|
var zTeacherPayment = addAutoProps(zBTeacherPayment);
|
|
700
706
|
var zTeacherPaymentResponse = zTeacherPayment.extend({
|
|
701
|
-
teacher:
|
|
707
|
+
teacher: import_zod23.z.object({ name: import_zod23.z.string(), rank: import_zod23.z.string().optional() }),
|
|
708
|
+
editedBy: import_zod23.z.object({ name: import_zod23.z.string(), rank: import_zod23.z.string().optional() })
|
|
702
709
|
});
|
|
703
710
|
|
|
704
711
|
// src/interface/public/aurora.ts
|
|
@@ -848,6 +855,11 @@ var zBEventConfig = import_zod29.z.object({
|
|
|
848
855
|
* If false, the tournament registration is closed
|
|
849
856
|
*/
|
|
850
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(),
|
|
851
863
|
/**
|
|
852
864
|
* If true, free form donation amounts are disabled.
|
|
853
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
|
|
@@ -587,11 +589,16 @@ var zTeacherPaymentRow = z23.object({
|
|
|
587
589
|
var zBTeacherPayment = z23.object({
|
|
588
590
|
teacher: z23.string().min(1, "select or enter a teacher"),
|
|
589
591
|
rows: z23.array(zTeacherPaymentRow),
|
|
590
|
-
paid: z23.boolean().optional()
|
|
592
|
+
paid: z23.boolean().optional(),
|
|
593
|
+
/**
|
|
594
|
+
* paymentNotes differentiates from notes as it is displayed on the rendered PDF
|
|
595
|
+
*/
|
|
596
|
+
paymentNotes: z23.string().optional()
|
|
591
597
|
});
|
|
592
598
|
var zTeacherPayment = addAutoProps(zBTeacherPayment);
|
|
593
599
|
var zTeacherPaymentResponse = zTeacherPayment.extend({
|
|
594
|
-
teacher:
|
|
600
|
+
teacher: z23.object({ name: z23.string(), rank: z23.string().optional() }),
|
|
601
|
+
editedBy: z23.object({ name: z23.string(), rank: z23.string().optional() })
|
|
595
602
|
});
|
|
596
603
|
|
|
597
604
|
// src/interface/public/aurora.ts
|
|
@@ -741,6 +748,11 @@ var zBEventConfig = z29.object({
|
|
|
741
748
|
* If false, the tournament registration is closed
|
|
742
749
|
*/
|
|
743
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(),
|
|
744
756
|
/**
|
|
745
757
|
* If true, free form donation amounts are disabled.
|
|
746
758
|
*/
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nyig/models",
|
|
3
|
-
"version": "0.4.
|
|
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.
|
|
9
|
+
"zod": ">=3.24.3"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@changesets/cli": "^2.
|
|
13
|
-
"husky": "^9.1.
|
|
14
|
-
"lint-staged": "^15.
|
|
15
|
-
"prettier": "^3.
|
|
16
|
-
"tsup": "^8.
|
|
17
|
-
"typescript": "^5.
|
|
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"
|