Files
orionprotocol-sdk/src/services/ReferralSystem/schemas/inviteCodeLinkSchema.ts
2023-08-28 08:31:37 +03:00

25 lines
461 B
TypeScript

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;