rategame-shared 1.1.446 → 1.1.447

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.
@@ -16689,6 +16689,7 @@ export declare const pollOptionSchema: z.ZodObject<{
16689
16689
  note?: string | undefined;
16690
16690
  } | undefined;
16691
16691
  }>]>>>;
16692
+ primaryColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16692
16693
  }, "strip", z.ZodTypeAny, {
16693
16694
  id: string;
16694
16695
  player: {
@@ -16702,6 +16703,7 @@ export declare const pollOptionSchema: z.ZodObject<{
16702
16703
  leagueId: string;
16703
16704
  id?: string | undefined;
16704
16705
  };
16706
+ primaryColor?: string | null | undefined;
16705
16707
  mostVotedGame?: {
16706
16708
  round: number;
16707
16709
  status: "canceled" | "live" | "scheduled" | "final" | "postponed";
@@ -18002,6 +18004,7 @@ export declare const pollOptionSchema: z.ZodObject<{
18002
18004
  leagueId: string;
18003
18005
  id?: string | undefined;
18004
18006
  };
18007
+ primaryColor?: string | null | undefined;
18005
18008
  mostVotedGame?: {
18006
18009
  round: number;
18007
18010
  status: "canceled" | "live" | "scheduled" | "final" | "postponed";
@@ -37163,6 +37166,7 @@ export declare const pollSchema: z.ZodObject<{
37163
37166
  note?: string | undefined;
37164
37167
  } | undefined;
37165
37168
  }>]>>>;
37169
+ primaryColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37166
37170
  }, "strip", z.ZodTypeAny, {
37167
37171
  id: string;
37168
37172
  player: {
@@ -37176,6 +37180,7 @@ export declare const pollSchema: z.ZodObject<{
37176
37180
  leagueId: string;
37177
37181
  id?: string | undefined;
37178
37182
  };
37183
+ primaryColor?: string | null | undefined;
37179
37184
  mostVotedGame?: {
37180
37185
  round: number;
37181
37186
  status: "canceled" | "live" | "scheduled" | "final" | "postponed";
@@ -38476,6 +38481,7 @@ export declare const pollSchema: z.ZodObject<{
38476
38481
  leagueId: string;
38477
38482
  id?: string | undefined;
38478
38483
  };
38484
+ primaryColor?: string | null | undefined;
38479
38485
  mostVotedGame?: {
38480
38486
  round: number;
38481
38487
  status: "canceled" | "live" | "scheduled" | "final" | "postponed";
@@ -39786,6 +39792,7 @@ export declare const pollSchema: z.ZodObject<{
39786
39792
  leagueId: string;
39787
39793
  id?: string | undefined;
39788
39794
  };
39795
+ primaryColor?: string | null | undefined;
39789
39796
  mostVotedGame?: {
39790
39797
  round: number;
39791
39798
  status: "canceled" | "live" | "scheduled" | "final" | "postponed";
@@ -41107,6 +41114,7 @@ export declare const pollSchema: z.ZodObject<{
41107
41114
  leagueId: string;
41108
41115
  id?: string | undefined;
41109
41116
  };
41117
+ primaryColor?: string | null | undefined;
41110
41118
  mostVotedGame?: {
41111
41119
  round: number;
41112
41120
  status: "canceled" | "live" | "scheduled" | "final" | "postponed";
@@ -42448,21 +42456,16 @@ export declare const pollVoteSubmissionSchema: z.ZodObject<{
42448
42456
  optionId: string;
42449
42457
  }>;
42450
42458
  /**
42451
- * Vote response — returns the updated tallies so the client can reconcile its
42452
- * optimistic update against the canonical poll document.
42459
+ * Vote response — only the persisted selection (`null` when the vote was
42460
+ * toggled off). Tallies are no longer returned: the client keeps its optimistic
42461
+ * counts and reconciles against the poll document on its next refetch.
42453
42462
  */
42454
42463
  export declare const pollVoteResponseSchema: z.ZodObject<{
42455
- optionId: z.ZodString;
42456
- voteCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
42457
- totalVotes: z.ZodNumber;
42464
+ optionId: z.ZodNullable<z.ZodString>;
42458
42465
  }, "strip", z.ZodTypeAny, {
42459
- totalVotes: number;
42460
- voteCounts: Record<string, number>;
42461
- optionId: string;
42466
+ optionId: string | null;
42462
42467
  }, {
42463
- totalVotes: number;
42464
- voteCounts: Record<string, number>;
42465
- optionId: string;
42468
+ optionId: string | null;
42466
42469
  }>;
42467
42470
  /**
42468
42471
  * Search/filter parameters for polls.
@@ -24,6 +24,7 @@ exports.pollOptionSchema = zod_1.z.object({
24
24
  player: player_1.playerSchema,
25
25
  teamLogoUrl: zod_1.z.string().nullable().optional(),
26
26
  mostVotedGame: game_1.unionGameSchema.nullable().optional(),
27
+ primaryColor: zod_1.z.string().nullable().optional(),
27
28
  });
28
29
  /**
29
30
  * Poll document schema.
@@ -74,13 +75,12 @@ exports.pollVoteSubmissionSchema = zod_1.z.object({
74
75
  optionId: zod_1.z.string(),
75
76
  });
76
77
  /**
77
- * Vote response — returns the updated tallies so the client can reconcile its
78
- * optimistic update against the canonical poll document.
78
+ * Vote response — only the persisted selection (`null` when the vote was
79
+ * toggled off). Tallies are no longer returned: the client keeps its optimistic
80
+ * counts and reconciles against the poll document on its next refetch.
79
81
  */
80
82
  exports.pollVoteResponseSchema = zod_1.z.object({
81
- optionId: zod_1.z.string(),
82
- voteCounts: zod_1.z.record(zod_1.z.string(), zod_1.z.number()),
83
- totalVotes: zod_1.z.number(),
83
+ optionId: zod_1.z.string().nullable(),
84
84
  });
85
85
  /**
86
86
  * Search/filter parameters for polls.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.446",
3
+ "version": "1.1.447",
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",