rategame-shared 1.1.217 → 1.1.219

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,6 +855,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
855
855
  seasonType?: number | undefined;
856
856
  }>;
857
857
  id: import("zod").ZodOptional<import("zod").ZodString>;
858
+ category: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodLiteral<"watched">, import("zod").ZodLiteral<"attended">, import("zod").ZodLiteral<"highlights">]>, import("zod").ZodLiteral<"">]>>>;
858
859
  }>, "strip", import("zod").ZodTypeAny, {
859
860
  rating: number;
860
861
  game: {
@@ -879,7 +880,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
879
880
  weight?: number | undefined;
880
881
  fanCategory?: "homeTeam" | "awayTeam" | "winningTeam" | "losingTeam" | "neutral" | undefined;
881
882
  edited?: boolean | undefined;
882
- category?: "watched" | "attended" | "highlights" | undefined;
883
+ category?: "" | "watched" | "attended" | "highlights" | null | undefined;
883
884
  }, {
884
885
  rating: number;
885
886
  game: {
@@ -904,7 +905,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
904
905
  weight?: number | undefined;
905
906
  fanCategory?: "homeTeam" | "awayTeam" | "winningTeam" | "losingTeam" | "neutral" | undefined;
906
907
  edited?: boolean | undefined;
907
- category?: "watched" | "attended" | "highlights" | undefined;
908
+ category?: "" | "watched" | "attended" | "highlights" | null | undefined;
908
909
  }>;
909
910
  export declare const threadCommentSchema: import("zod").ZodObject<{
910
911
  id: import("zod").ZodString;
@@ -2667,15 +2668,15 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
2667
2668
  authorGameRating: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
2668
2669
  id: import("zod").ZodString;
2669
2670
  value: import("zod").ZodNumber;
2670
- category: import("zod").ZodUnion<[import("zod").ZodLiteral<"watched">, import("zod").ZodLiteral<"attended">, import("zod").ZodLiteral<"highlights">]>;
2671
+ category: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"watched">, import("zod").ZodLiteral<"attended">, import("zod").ZodLiteral<"highlights">]>>>;
2671
2672
  }, "strip", import("zod").ZodTypeAny, {
2672
2673
  id: string;
2673
2674
  value: number;
2674
- category: "watched" | "attended" | "highlights";
2675
+ category?: "watched" | "attended" | "highlights" | null | undefined;
2675
2676
  }, {
2676
2677
  id: string;
2677
2678
  value: number;
2678
- category: "watched" | "attended" | "highlights";
2679
+ category?: "watched" | "attended" | "highlights" | null | undefined;
2679
2680
  }>>>;
2680
2681
  gameId: import("zod").ZodString;
2681
2682
  }, "strip", import("zod").ZodTypeAny, {
@@ -2704,7 +2705,7 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
2704
2705
  authorGameRating?: {
2705
2706
  id: string;
2706
2707
  value: number;
2707
- category: "watched" | "attended" | "highlights";
2708
+ category?: "watched" | "attended" | "highlights" | null | undefined;
2708
2709
  } | null | undefined;
2709
2710
  }, {
2710
2711
  id: string;
@@ -2732,7 +2733,7 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
2732
2733
  authorGameRating?: {
2733
2734
  id: string;
2734
2735
  value: number;
2735
- category: "watched" | "attended" | "highlights";
2736
+ category?: "watched" | "attended" | "highlights" | null | undefined;
2736
2737
  } | null | undefined;
2737
2738
  }>;
2738
2739
  export declare const threadCommentLikeSchema: import("zod").ZodObject<{
@@ -109,6 +109,9 @@ exports.createRatingSchema = exports.ratingSchema
109
109
  roundName: true,
110
110
  }),
111
111
  id: (0, zod_1.string)().optional(),
112
+ category: (0, zod_1.union)([exports.ratingCategorySchema, (0, zod_1.literal)("")])
113
+ .nullable()
114
+ .optional(),
112
115
  });
113
116
  exports.threadCommentSchema = (0, zod_1.object)({
114
117
  id: (0, zod_1.string)(),
@@ -123,7 +126,7 @@ exports.threadCommentSchema = (0, zod_1.object)({
123
126
  authorGameRating: (0, zod_1.object)({
124
127
  id: (0, zod_1.string)(),
125
128
  value: (0, zod_1.number)(),
126
- category: exports.ratingCategorySchema,
129
+ category: exports.ratingCategorySchema.optional().nullable(),
127
130
  })
128
131
  .nullable()
129
132
  .optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.217",
3
+ "version": "1.1.219",
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",