@giftup/zod 10.0.64 → 10.0.67
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/endpoints/cases.ts +1 -2
- package/endpoints/schema.ts +14 -10
- package/models.ts +2 -0
- package/package.json +1 -1
package/endpoints/cases.ts
CHANGED
|
@@ -11,8 +11,7 @@ export const CasesSpinRequestSchema = z.object({
|
|
|
11
11
|
isDemo: z.boolean().optional(),
|
|
12
12
|
hash: z.string(),
|
|
13
13
|
promocode: z.string().min(1, 'api_error_promocode_invalid').optional().nullable(),
|
|
14
|
-
|
|
15
|
-
userCaseId: z.string().cuid().min(1, 'api_error_award_id_required').optional(),
|
|
14
|
+
voucherId: z.string().cuid().min(1, 'api_error_voucher_id_required').optional(),
|
|
16
15
|
})
|
|
17
16
|
|
|
18
17
|
export const CasesSpinResponseSchema = z.object({
|
package/endpoints/schema.ts
CHANGED
|
@@ -26,10 +26,7 @@ export const endpoints = {
|
|
|
26
26
|
url: '/app/buy_case_invoice',
|
|
27
27
|
method: 'GET',
|
|
28
28
|
},
|
|
29
|
-
|
|
30
|
-
url: '/app/get_user_cases',
|
|
31
|
-
method: 'GET',
|
|
32
|
-
},
|
|
29
|
+
|
|
33
30
|
create_xtr_invoice: {
|
|
34
31
|
url: '/app/create_xtr_invoice',
|
|
35
32
|
method: 'GET',
|
|
@@ -75,6 +72,18 @@ export const endpoints = {
|
|
|
75
72
|
spin: { url: '/cases/spin', method: 'POST' },
|
|
76
73
|
caseInfo: { url: '/cases/info', method: 'GET' },
|
|
77
74
|
checkSubscribe: { url: '/cases/check_subscribe', method: 'GET' },
|
|
75
|
+
promocodes: {
|
|
76
|
+
check: {
|
|
77
|
+
url: '/promocodes/check',
|
|
78
|
+
method: 'GET',
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
vouchers: {
|
|
82
|
+
list: {
|
|
83
|
+
url: '/app/get_user_cases',
|
|
84
|
+
method: 'GET',
|
|
85
|
+
},
|
|
86
|
+
},
|
|
78
87
|
},
|
|
79
88
|
referrals: {
|
|
80
89
|
list: { url: '/referrals', method: 'GET' },
|
|
@@ -101,12 +110,7 @@ export const endpoints = {
|
|
|
101
110
|
balance: {
|
|
102
111
|
deposit: { url: '/balance/deposit', method: 'POST' },
|
|
103
112
|
},
|
|
104
|
-
|
|
105
|
-
check: {
|
|
106
|
-
url: '/promocodes/check',
|
|
107
|
-
method: 'GET',
|
|
108
|
-
},
|
|
109
|
-
},
|
|
113
|
+
|
|
110
114
|
metrika: {
|
|
111
115
|
auth_report: {
|
|
112
116
|
url: '/metrika/auth_report',
|
package/models.ts
CHANGED
|
@@ -62,6 +62,8 @@ export const CaseSchema = z.object({
|
|
|
62
62
|
id: z.string().cuid(),
|
|
63
63
|
name: z.string(),
|
|
64
64
|
price: z.number().int().nonnegative(),
|
|
65
|
+
priceStars: z.number().int().nonnegative(),
|
|
66
|
+
|
|
65
67
|
image: z.string(),
|
|
66
68
|
bgImage: z.string(),
|
|
67
69
|
sequence: z.number().int().default(0).optional(),
|