mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-04-06 21:18:12 +03:00
Referral: Add invite code
This commit is contained in:
24
src/services/ReferralSystem/schemas/inviteCodeLinkSchema.ts
Normal file
24
src/services/ReferralSystem/schemas/inviteCodeLinkSchema.ts
Normal 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;
|
||||
Reference in New Issue
Block a user