@nyig/models 0.4.3 → 0.4.4
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.js +2 -2
- package/index.mjs +2 -2
- package/package.json +7 -7
package/index.js
CHANGED
|
@@ -110,7 +110,7 @@ var zBPaymentInfo = import_zod.z.object({
|
|
|
110
110
|
/**
|
|
111
111
|
* @units CENTS - Proposed payment amount in cents of the booking
|
|
112
112
|
*/
|
|
113
|
-
paymentAmount: import_zod.z.number().int().min(
|
|
113
|
+
paymentAmount: import_zod.z.number().int().min(0),
|
|
114
114
|
/**
|
|
115
115
|
* True if the payment has been received. Populated by webhook.
|
|
116
116
|
*/
|
|
@@ -735,7 +735,7 @@ var zBEventTicket = import_zod27.z.object({
|
|
|
735
735
|
/**
|
|
736
736
|
* Price in cents
|
|
737
737
|
*/
|
|
738
|
-
price: import_zod27.z.number().min(0, "Price must not be negative"),
|
|
738
|
+
price: import_zod27.z.coerce.number().min(0, "Price must not be negative"),
|
|
739
739
|
/**
|
|
740
740
|
* @optional description of the ticket
|
|
741
741
|
*/
|
package/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ var zBPaymentInfo = z.object({
|
|
|
4
4
|
/**
|
|
5
5
|
* @units CENTS - Proposed payment amount in cents of the booking
|
|
6
6
|
*/
|
|
7
|
-
paymentAmount: z.number().int().min(
|
|
7
|
+
paymentAmount: z.number().int().min(0),
|
|
8
8
|
/**
|
|
9
9
|
* True if the payment has been received. Populated by webhook.
|
|
10
10
|
*/
|
|
@@ -629,7 +629,7 @@ var zBEventTicket = z27.object({
|
|
|
629
629
|
/**
|
|
630
630
|
* Price in cents
|
|
631
631
|
*/
|
|
632
|
-
price: z27.number().min(0, "Price must not be negative"),
|
|
632
|
+
price: z27.coerce.number().min(0, "Price must not be negative"),
|
|
633
633
|
/**
|
|
634
634
|
* @optional description of the ticket
|
|
635
635
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nyig/models",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"zod": ">=3.22.4"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@changesets/cli": "^2.27.
|
|
13
|
-
"husky": "^9.
|
|
14
|
-
"lint-staged": "^15.2.
|
|
15
|
-
"prettier": "^3.
|
|
16
|
-
"tsup": "^8.
|
|
17
|
-
"typescript": "^5.
|
|
12
|
+
"@changesets/cli": "^2.27.7",
|
|
13
|
+
"husky": "^9.1.4",
|
|
14
|
+
"lint-staged": "^15.2.7",
|
|
15
|
+
"prettier": "^3.3.3",
|
|
16
|
+
"tsup": "^8.2.3",
|
|
17
|
+
"typescript": "^5.5.4"
|
|
18
18
|
},
|
|
19
19
|
"lint-staged": {
|
|
20
20
|
"*.{js,ts,md}": "prettier --write"
|