rategame-shared 1.1.197 → 1.1.198

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -855,7 +855,7 @@ export declare const chatMessageSchema: z.ZodObject<{
855
855
  }>;
856
856
  export declare const communityChatMessageSchema: z.ZodObject<{
857
857
  id: z.ZodString;
858
- content: z.ZodString;
858
+ content: z.ZodOptional<z.ZodString>;
859
859
  createdAt: z.ZodAny;
860
860
  league: z.ZodString;
861
861
  user: z.ZodObject<Pick<{
@@ -1676,9 +1676,12 @@ export declare const communityChatMessageSchema: z.ZodObject<{
1676
1676
  avatarUrl?: string | null | undefined;
1677
1677
  badge?: string | undefined;
1678
1678
  }>;
1679
+ type: z.ZodUnion<[z.ZodLiteral<"game">, z.ZodLiteral<"profile">, z.ZodLiteral<"list">, z.ZodLiteral<"gif">]>;
1680
+ itemId: z.ZodOptional<z.ZodString>;
1681
+ gifUrl: z.ZodOptional<z.ZodString>;
1679
1682
  }, "strip", z.ZodTypeAny, {
1683
+ type: "game" | "profile" | "list" | "gif";
1680
1684
  id: string;
1681
- content: string;
1682
1685
  user: {
1683
1686
  id: string;
1684
1687
  email: string;
@@ -1687,10 +1690,13 @@ export declare const communityChatMessageSchema: z.ZodObject<{
1687
1690
  badge?: string | undefined;
1688
1691
  };
1689
1692
  league: string;
1693
+ content?: string | undefined;
1690
1694
  createdAt?: any;
1695
+ itemId?: string | undefined;
1696
+ gifUrl?: string | undefined;
1691
1697
  }, {
1698
+ type: "game" | "profile" | "list" | "gif";
1692
1699
  id: string;
1693
- content: string;
1694
1700
  user: {
1695
1701
  id: string;
1696
1702
  email: string;
@@ -1699,5 +1705,8 @@ export declare const communityChatMessageSchema: z.ZodObject<{
1699
1705
  badge?: string | undefined;
1700
1706
  };
1701
1707
  league: string;
1708
+ content?: string | undefined;
1702
1709
  createdAt?: any;
1710
+ itemId?: string | undefined;
1711
+ gifUrl?: string | undefined;
1703
1712
  }>;
@@ -14,8 +14,16 @@ exports.chatMessageSchema = zod_1.z.object({
14
14
  });
15
15
  exports.communityChatMessageSchema = zod_1.z.object({
16
16
  id: zod_1.z.string(),
17
- content: zod_1.z.string().min(1),
17
+ content: zod_1.z.string().min(1).optional(),
18
18
  createdAt: zod_1.z.any(),
19
19
  league: zod_1.z.string(),
20
20
  user: user_1.reducedUserSchema,
21
+ type: zod_1.z.union([
22
+ zod_1.z.literal("game"),
23
+ zod_1.z.literal("profile"),
24
+ zod_1.z.literal("list"),
25
+ zod_1.z.literal("gif"),
26
+ ]),
27
+ itemId: zod_1.z.string().optional(),
28
+ gifUrl: zod_1.z.string().optional(),
21
29
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.197",
3
+ "version": "1.1.198",
4
4
  "description": "This package contains shared resources for the Rate Game project.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",