@giftup/zod 10.0.71 → 10.0.73

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 (2) hide show
  1. package/endpoints/cases.ts +5 -11
  2. package/package.json +1 -1
@@ -29,19 +29,13 @@ export const CasesSpinResponseSchema = z.object({
29
29
  })
30
30
 
31
31
  export const CasesInfoResponseSchema = z.object({
32
- access: z.object({
33
- canOpen: z.boolean(),
34
- reason: z.string(),
35
- depositsSum: z.number(),
32
+ additionalInfo: z.object({
33
+ currentStep: z.number().int().nonnegative().optional(),
36
34
  requiredAmount: z.number(),
35
+ depositedAmount: z.number(),
36
+ canOpen: z.boolean(),
37
+ lastDepositAt: z.date().optional(),
37
38
  }),
38
-
39
- currentStep: z.number().int().nonnegative().optional(),
40
- lastUsedDepositAt: z.date().optional(),
41
-
42
- // FREE_DAILY поля
43
- openedToday: z.boolean().optional(),
44
- lastOpenedAt: z.date().optional(),
45
39
  })
46
40
 
47
41
  export type CasesListResponse = z.infer<typeof CasesListResponseSchema>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giftup/zod",
3
- "version": "10.0.71",
3
+ "version": "10.0.73",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",