diff --git a/dist/lib/types.d.ts b/dist/lib/types.d.ts index ff996f0..3905903 100644 --- a/dist/lib/types.d.ts +++ b/dist/lib/types.d.ts @@ -6,24 +6,24 @@ export declare const PlayerSchema: z.ZodObject<{ uuid: z.ZodString; username: z.ZodString; rank: z.ZodString; - equipped_avatar_id: z.ZodString; - equipped_avatar_name: z.ZodString; + equipped_avatar_id: z.ZodOptional; + equipped_avatar_name: z.ZodOptional; created_at: z.ZodOptional; updated_at: z.ZodOptional; }, "strip", z.ZodTypeAny, { uuid: string; username: string; rank: string; - equipped_avatar_id: string; - equipped_avatar_name: string; + equipped_avatar_id?: string | undefined; + equipped_avatar_name?: string | undefined; created_at?: Date | undefined; updated_at?: Date | undefined; }, { uuid: string; username: string; rank: string; - equipped_avatar_id: string; - equipped_avatar_name: string; + equipped_avatar_id?: string | undefined; + equipped_avatar_name?: string | undefined; created_at?: Date | undefined; updated_at?: Date | undefined; }>; diff --git a/dist/lib/types.js b/dist/lib/types.js index 56bd791..6f8013a 100644 --- a/dist/lib/types.js +++ b/dist/lib/types.js @@ -6,8 +6,8 @@ export const PlayerSchema = z.object({ uuid: z.string(), username: z.string(), rank: z.string(), - equipped_avatar_id: z.string(), - equipped_avatar_name: z.string(), + equipped_avatar_id: z.string().optional(), + equipped_avatar_name: z.string().optional(), created_at: z.date().optional(), updated_at: z.date().optional(), }); diff --git a/dist/lib/types.js.map b/dist/lib/types.js.map index e084454..3ce5d72 100644 --- a/dist/lib/types.js.map +++ b/dist/lib/types.js.map @@ -1 +1 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AAEH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAA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EAAE;IACtB,OAAO,EAAE,cAAc;IACvB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChC,WAAW,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAChC,WAAW,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC"} \ No newline at end of file diff --git a/src/lib/types.ts b/src/lib/types.ts index 6d7b2ba..4423115 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -8,8 +8,8 @@ export const PlayerSchema = z.object({ uuid: z.string(), username: z.string(), rank: z.string(), - equipped_avatar_id: z.string(), - equipped_avatar_name: z.string(), + equipped_avatar_id: z.string().optional(), + equipped_avatar_name: z.string().optional(), created_at: z.date().optional(), updated_at: z.date().optional(), });