Updates and more

This commit is contained in:
2023-11-12 22:43:42 +01:00
parent 7450ecdabb
commit 3889f28eb8
43 changed files with 5188 additions and 322 deletions

View File

@@ -1,5 +1,3 @@
import type {Team} from "./team.js";
import type {Player} from "./data.js";
import {z} from "zod";
import {TeamSchema} from "./team.js";
import {PlayerSchema} from "./data.js";

View File

@@ -32,4 +32,12 @@ export const SchematicInfoSchema = z.object({
schem: SchematicSchema
})
export type SchematicInfo = z.infer<typeof SchematicInfoSchema>
export type SchematicInfo = z.infer<typeof SchematicInfoSchema>
export const SchematicCodeSchema = z.object({
id: z.number().gte(0),
code: z.string(),
expires: z.number().positive()
})
export type SchematicCode = z.infer<typeof SchematicCodeSchema>