Referral: Add invite code

This commit is contained in:
Dmitry Leleko
2023-08-28 08:31:21 +03:00
parent 8175d180b2
commit 3aa49b43e3
4 changed files with 81 additions and 17 deletions

View File

@@ -0,0 +1,24 @@
import { z } from 'zod';
const inviteCodeLinkSchema = z.object({
link: z
.object({
referer: z.string(),
ref_link: z.string(),
option: z.number(),
})
.nullable(),
invite: z
.object({
code: z.string(),
data: z.null(),
limits: z.object({
tag: z.string(),
max_invites: z.number(),
max_ref_depth: z.number(),
}),
})
.nullable(),
});
export default inviteCodeLinkSchema;