Variable _Schema_players_json2Const
Internal
_Schema_players_json2: ZodObject<{
activity: ZodArray<ZodObject<{
date: ZodString;
hours_played: ZodNumber;
}, "strip", ZodTypeAny, {
date: string;
hours_played: number;
}, {
date: string;
hours_played: number;
}>, "many">;
favorite_partners: ZodArray<ZodObject<{
finishes: ZodNumber;
name: ZodString;
}, "strip", ZodTypeAny, {
finishes: number;
name: string;
}, {
finishes: number;
name: string;
}>, "many">;
favorite_server: ZodObject<{
server: ZodString;
}, "strip", ZodTypeAny, {
server: string;
}, {
server: string;
}>;
first_finish: ZodObject<{
map: ZodString;
time: ZodNumber;
timestamp: ZodNumber;
}, "strip", ZodTypeAny, {
map: string;
time: number;
timestamp: number;
}, {
map: string;
time: number;
timestamp: number;
}>;
hours_played_past_365_days: ZodNumber;
last_finishes: ZodArray<ZodObject<{
country: ZodString;
map: ZodString;
time: ZodNumber;
timestamp: ZodNumber;
type: ZodString;
}, "strip", ZodTypeAny, {
country: string;
map: string;
time: number;
timestamp: number;
type: string;
}, {
country: string;
map: string;
time: number;
timestamp: number;
type: string;
}>, "many">;
player: ZodString;
points: ZodIntersection<ZodUnion<[ZodObject<{
points: ZodNumber;
rank: ZodNumber;
}, "strip", ZodTypeAny, {
points: number;
rank: number;
}, {
points: number;
rank: number;
}>, ZodObject<{
rank: ZodNull;
}, "strip", ZodTypeAny, {
rank: null;
}, {
rank: null;
}>]>, ZodObject<{
total: ZodNumber;
}, "strip", ZodTypeAny, {
total: number;
}, {
total: number;
}>>;
points_last_month: ZodUnion<[ZodObject<{
points: ZodNumber;
rank: ZodNumber;
}, "strip", ZodTypeAny, {
points: number;
rank: number;
}, {
points: number;
rank: number;
}>, ZodObject<{
rank: ZodNull;
}, "strip", ZodTypeAny, {
rank: null;
}, {
rank: null;
}>]>;
points_last_week: ZodUnion<[ZodObject<{
points: ZodNumber;
rank: ZodNumber;
}, "strip", ZodTypeAny, {
points: number;
rank: number;
}, {
points: number;
rank: number;
}>, ZodObject<{
rank: ZodNull;
}, "strip", ZodTypeAny, {
rank: null;
}, {
rank: null;
}>]>;
rank: ZodUnion<[ZodObject<{
points: ZodNumber;
rank: ZodNumber;
}, "strip", ZodTypeAny, {
points: number;
rank: number;
}, {
points: number;
rank: number;
}>, ZodObject<{
rank: ZodNull;
}, "strip", ZodTypeAny, {
rank: null;
}, {
rank: null;
}>]>;
team_rank: ZodUnion<[ZodObject<{
points: ZodNumber;
rank: ZodNumber;
}, "strip", ZodTypeAny, {
points: number;
rank: number;
}, {
points: number;
rank: number;
}>, ZodObject<{
rank: ZodNull;
}, "strip", ZodTypeAny, {
rank: null;
}, {
rank: null;
}>]>;
types: ZodRecord<ZodString, ZodObject<{
maps: ZodRecord<ZodString, ZodUnion<[ZodObject<{
finishes: ZodLiteral<(...)>;
points: ZodNumber;
total_finishes: ZodNumber;
}, "strip", ZodTypeAny, {
finishes: 0;
points: number;
total_finishes: number;
}, {
finishes: 0;
points: number;
total_finishes: number;
}>, ZodObject<{
finishes: ZodNumber;
first_finish: ZodNumber;
points: ZodNumber;
rank: ZodNumber;
team_rank: ZodOptional<(...)>;
time: ZodNumber;
total_finishes: ZodNumber;
}, "strip", ZodTypeAny, {
finishes: number;
first_finish: number;
points: number;
rank: number;
team_rank?: (...) | (...);
time: number;
total_finishes: number;
}, {
finishes: number;
first_finish: number;
points: number;
rank: number;
team_rank?: (...) | (...);
time: number;
total_finishes: number;
}>]>>;
points: ZodUnion<[ZodObject<{
points: ZodNumber;
rank: ZodNumber;
total: ZodNumber;
}, "strip", ZodTypeAny, {
points: number;
rank: number;
total: number;
}, {
points: number;
rank: number;
total: number;
}>, ZodObject<{
rank: ZodNull;
total: ZodNumber;
}, "strip", ZodTypeAny, {
rank: null;
total: number;
}, {
rank: null;
total: number;
}>]>;
rank: ZodUnion<[ZodObject<{
points: ZodNumber;
rank: ZodNumber;
}, "strip", ZodTypeAny, {
points: number;
rank: number;
}, {
points: number;
rank: number;
}>, ZodObject<{
rank: ZodNull;
}, "strip", ZodTypeAny, {
rank: null;
}, {
rank: null;
}>]>;
team_rank: ZodUnion<[ZodObject<{
points: ZodNumber;
rank: ZodNumber;
}, "strip", ZodTypeAny, {
points: number;
rank: number;
}, {
points: number;
rank: number;
}>, ZodObject<{
rank: ZodNull;
}, "strip", ZodTypeAny, {
rank: null;
}, {
rank: null;
}>]>;
}, "strip", ZodTypeAny, {
maps: Record<string, {
finishes: 0;
points: number;
total_finishes: number;
} | {
finishes: number;
first_finish: number;
points: number;
rank: number;
team_rank?: number;
time: number;
total_finishes: number;
}>;
points: {
points: number;
rank: number;
total: number;
} | {
rank: null;
total: number;
};
rank: {
points: number;
rank: number;
} | {
rank: null;
};
team_rank: {
points: number;
rank: number;
} | {
rank: null;
};
}, {
maps: Record<string, {
finishes: 0;
points: number;
total_finishes: number;
} | {
finishes: number;
first_finish: number;
points: number;
rank: number;
team_rank?: number;
time: number;
total_finishes: number;
}>;
points: {
points: number;
rank: number;
total: number;
} | {
rank: null;
total: number;
};
rank: {
points: number;
rank: number;
} | {
rank: null;
};
team_rank: {
points: number;
rank: number;
} | {
rank: null;
};
}>>;
}, "strip", ZodTypeAny, {
activity: {
date: string;
hours_played: number;
}[];
favorite_partners: {
finishes: number;
name: string;
}[];
favorite_server: {
server: string;
};
first_finish: {
map: string;
time: number;
timestamp: number;
};
hours_played_past_365_days: number;
last_finishes: {
country: string;
map: string;
time: number;
timestamp: number;
type: string;
}[];
player: string;
points: ({
points: number;
rank: number;
} | {
rank: null;
}) & {
total: number;
};
points_last_month: {
points: number;
rank: number;
} | {
rank: null;
};
points_last_week: {
points: number;
rank: number;
} | {
rank: null;
};
rank: {
points: number;
rank: number;
} | {
rank: null;
};
team_rank: {
points: number;
rank: number;
} | {
rank: null;
};
types: Record<string, {
maps: Record<string, {
finishes: 0;
points: number;
total_finishes: number;
} | {
finishes: number;
first_finish: number;
points: number;
rank: number;
team_rank?: number;
time: number;
total_finishes: number;
}>;
points: {
points: number;
rank: number;
total: number;
} | {
rank: null;
total: number;
};
rank: {
points: number;
rank: number;
} | {
rank: null;
};
team_rank: {
points: number;
rank: number;
} | {
rank: null;
};
}>;
}, {
activity: {
date: string;
hours_played: number;
}[];
favorite_partners: {
finishes: number;
name: string;
}[];
favorite_server: {
server: string;
};
first_finish: {
map: string;
time: number;
timestamp: number;
};
hours_played_past_365_days: number;
last_finishes: {
country: string;
map: string;
time: number;
timestamp: number;
type: string;
}[];
player: string;
points: ({
points: number;
rank: number;
} | {
rank: null;
}) & {
total: number;
};
points_last_month: {
points: number;
rank: number;
} | {
rank: null;
};
points_last_week: {
points: number;
rank: number;
} | {
rank: null;
};
rank: {
points: number;
rank: number;
} | {
rank: null;
};
team_rank: {
points: number;
rank: number;
} | {
rank: null;
};
types: Record<string, {
maps: Record<string, {
finishes: 0;
points: number;
total_finishes: number;
} | {
finishes: number;
first_finish: number;
points: number;
rank: number;
team_rank?: number;
time: number;
total_finishes: number;
}>;
points: {
points: number;
rank: number;
total: number;
} | {
rank: null;
total: number;
};
rank: {
points: number;
rank: number;
} | {
rank: null;
};
team_rank: {
points: number;
rank: number;
} | {
rank: null;
};
}>;
}> = ...
The zod schema for player data.