@giftup/zod 10.0.65 → 10.0.68

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.
@@ -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
- awardId: z.string().cuid().min(1, 'api_error_award_id_required').optional(),
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({
@@ -26,10 +26,7 @@ export const endpoints = {
26
26
  url: '/app/buy_case_invoice',
27
27
  method: 'GET',
28
28
  },
29
- get_user_cases: {
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: '/cases/promocodes/check',
78
+ method: 'GET',
79
+ },
80
+ },
81
+ vouchers: {
82
+ list: {
83
+ url: '/cases/vouchers',
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
- promocodes: {
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giftup/zod",
3
- "version": "10.0.65",
3
+ "version": "10.0.68",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",