rategame-shared 1.1.408 → 1.1.409

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.
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { createAgreeRatingSchema, createRatingSchema, profileRatingStatsSchema, ratingCategorySchema, ratingLikeSchema, ratingMiniEventSchema, ratingMiniPickSchema, ratingSchema, roundStatsSchema, searchRatingSchema, seasonGroupStatsSchema, seasonStatsSchema, seriesStatsSchema, threadCommentLikeSchema, threadCommentSchema, translationRequestSchema, translationResponseSchema } from "../schemas/rating";
2
+ import { createAgreeRatingSchema, createRatingSchema, profileRatingStatsSchema, ratingCategorySchema, ratingLikeSchema, ratingMiniEventSchema, ratingMiniPickSchema, ratingSchema, roundStatsSchema, searchRatingSchema, seasonGroupStatsSchema, seasonStatsSchema, seriesStatsSchema, threadCommentLikeSchema, threadCommentSchema } from "../schemas/rating";
3
3
  import { seasonGroupingSchema } from "../schemas/sharedTypes";
4
4
  export type Rating = z.infer<typeof ratingSchema>;
5
5
  export type RatingMiniPick = z.infer<typeof ratingMiniPickSchema>;
@@ -17,5 +17,3 @@ export type SearchRating = z.infer<typeof searchRatingSchema>;
17
17
  export type CreateAgreeRating = z.infer<typeof createAgreeRatingSchema>;
18
18
  export type ThreadComment = z.infer<typeof threadCommentSchema>;
19
19
  export type ThreadCommentLike = z.infer<typeof threadCommentLikeSchema>;
20
- export type TranslationRequest = z.infer<typeof translationRequestSchema>;
21
- export type TranslationResponse = z.infer<typeof translationResponseSchema>;
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- export declare const chatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
2
+ export declare const chatMessageSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  content: z.ZodString;
5
5
  createdAt: z.ZodAny;
@@ -1165,7 +1165,6 @@ export declare const chatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
1165
1165
  lastTriviaEmailSentAt: z.ZodOptional<z.ZodNumber>;
1166
1166
  reactivationNotificationsSent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1167
1167
  initialTab: z.ZodOptional<z.ZodString>;
1168
- preferredLanguage: z.ZodOptional<z.ZodString>;
1169
1168
  }, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
1170
1169
  id: string;
1171
1170
  email: string;
@@ -1185,6 +1184,8 @@ export declare const chatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
1185
1184
  gifUrl: z.ZodOptional<z.ZodString>;
1186
1185
  parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1187
1186
  isReply: z.ZodOptional<z.ZodBoolean>;
1187
+ /** True when the parent message was deleted; replyToMessage should be omitted. */
1188
+ replyToDeleted: z.ZodOptional<z.ZodBoolean>;
1188
1189
  replyTo: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
1189
1190
  id: z.ZodString;
1190
1191
  email: z.ZodString;
@@ -2345,7 +2346,6 @@ export declare const chatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
2345
2346
  lastTriviaEmailSentAt: z.ZodOptional<z.ZodNumber>;
2346
2347
  reactivationNotificationsSent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
2347
2348
  initialTab: z.ZodOptional<z.ZodString>;
2348
- preferredLanguage: z.ZodOptional<z.ZodString>;
2349
2349
  }, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
2350
2350
  id: string;
2351
2351
  email: string;
@@ -2359,9 +2359,9 @@ export declare const chatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
2359
2359
  avatarUrl?: string | null | undefined;
2360
2360
  badge?: string | undefined;
2361
2361
  }>>>;
2362
- }, {
2362
+ } & {
2363
2363
  replyToMessage: z.ZodOptional<z.ZodNullable<z.ZodType<any, z.ZodTypeDef, any>>>;
2364
- }>, "strip", z.ZodTypeAny, {
2364
+ }, "strip", z.ZodTypeAny, {
2365
2365
  type: "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
2366
2366
  id: string;
2367
2367
  content: string;
@@ -2387,6 +2387,7 @@ export declare const chatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
2387
2387
  } | null | undefined;
2388
2388
  gifUrl?: string | undefined;
2389
2389
  itemId?: string | undefined;
2390
+ replyToDeleted?: boolean | undefined;
2390
2391
  replyToMessage?: any;
2391
2392
  }, {
2392
2393
  type: "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
@@ -2414,9 +2415,10 @@ export declare const chatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
2414
2415
  } | null | undefined;
2415
2416
  gifUrl?: string | undefined;
2416
2417
  itemId?: string | undefined;
2418
+ replyToDeleted?: boolean | undefined;
2417
2419
  replyToMessage?: any;
2418
2420
  }>;
2419
- export declare const communityChatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
2421
+ export declare const communityChatMessageSchema: z.ZodObject<{
2420
2422
  id: z.ZodString;
2421
2423
  content: z.ZodOptional<z.ZodString>;
2422
2424
  createdAt: z.ZodAny;
@@ -3581,7 +3583,6 @@ export declare const communityChatMessageSchema: z.ZodObject<z.objectUtil.extend
3581
3583
  lastTriviaEmailSentAt: z.ZodOptional<z.ZodNumber>;
3582
3584
  reactivationNotificationsSent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
3583
3585
  initialTab: z.ZodOptional<z.ZodString>;
3584
- preferredLanguage: z.ZodOptional<z.ZodString>;
3585
3586
  }, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
3586
3587
  id: string;
3587
3588
  email: string;
@@ -3600,6 +3601,8 @@ export declare const communityChatMessageSchema: z.ZodObject<z.objectUtil.extend
3600
3601
  gifUrl: z.ZodOptional<z.ZodString>;
3601
3602
  parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3602
3603
  isReply: z.ZodOptional<z.ZodBoolean>;
3604
+ /** True when the parent message was deleted; replyToMessage should be omitted. */
3605
+ replyToDeleted: z.ZodOptional<z.ZodBoolean>;
3603
3606
  replyTo: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
3604
3607
  id: z.ZodString;
3605
3608
  email: z.ZodString;
@@ -4760,7 +4763,6 @@ export declare const communityChatMessageSchema: z.ZodObject<z.objectUtil.extend
4760
4763
  lastTriviaEmailSentAt: z.ZodOptional<z.ZodNumber>;
4761
4764
  reactivationNotificationsSent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
4762
4765
  initialTab: z.ZodOptional<z.ZodString>;
4763
- preferredLanguage: z.ZodOptional<z.ZodString>;
4764
4766
  }, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
4765
4767
  id: string;
4766
4768
  email: string;
@@ -4774,9 +4776,9 @@ export declare const communityChatMessageSchema: z.ZodObject<z.objectUtil.extend
4774
4776
  avatarUrl?: string | null | undefined;
4775
4777
  badge?: string | undefined;
4776
4778
  }>>>;
4777
- }, {
4779
+ } & {
4778
4780
  replyToMessage: z.ZodOptional<z.ZodNullable<z.ZodType<any, z.ZodTypeDef, any>>>;
4779
- }>, "strip", z.ZodTypeAny, {
4781
+ }, "strip", z.ZodTypeAny, {
4780
4782
  type: "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
4781
4783
  id: string;
4782
4784
  user: {
@@ -4800,6 +4802,7 @@ export declare const communityChatMessageSchema: z.ZodObject<z.objectUtil.extend
4800
4802
  } | null | undefined;
4801
4803
  gifUrl?: string | undefined;
4802
4804
  itemId?: string | undefined;
4805
+ replyToDeleted?: boolean | undefined;
4803
4806
  replyToMessage?: any;
4804
4807
  }, {
4805
4808
  type: "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
@@ -4825,6 +4828,7 @@ export declare const communityChatMessageSchema: z.ZodObject<z.objectUtil.extend
4825
4828
  } | null | undefined;
4826
4829
  gifUrl?: string | undefined;
4827
4830
  itemId?: string | undefined;
4831
+ replyToDeleted?: boolean | undefined;
4828
4832
  replyToMessage?: any;
4829
4833
  }>;
4830
4834
  export declare const messageReactionSchema: z.ZodObject<{
@@ -5991,7 +5995,6 @@ export declare const messageReactionSchema: z.ZodObject<{
5991
5995
  lastTriviaEmailSentAt: z.ZodOptional<z.ZodNumber>;
5992
5996
  reactivationNotificationsSent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
5993
5997
  initialTab: z.ZodOptional<z.ZodString>;
5994
- preferredLanguage: z.ZodOptional<z.ZodString>;
5995
5998
  }, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
5996
5999
  id: string;
5997
6000
  email: string;
@@ -25,6 +25,8 @@ const baseChatMessageSchema = zod_1.z.object({
25
25
  gifUrl: zod_1.z.string().optional(),
26
26
  parentId: zod_1.z.string().nullable().optional(),
27
27
  isReply: zod_1.z.boolean().optional(),
28
+ /** True when the parent message was deleted; replyToMessage should be omitted. */
29
+ replyToDeleted: zod_1.z.boolean().optional(),
28
30
  replyTo: user_1.reducedUserSchema.nullable().optional(),
29
31
  });
30
32
  const baseCommunityChatMessageSchema = zod_1.z.object({
@@ -46,6 +48,8 @@ const baseCommunityChatMessageSchema = zod_1.z.object({
46
48
  gifUrl: zod_1.z.string().optional(),
47
49
  parentId: zod_1.z.string().nullable().optional(),
48
50
  isReply: zod_1.z.boolean().optional(),
51
+ /** True when the parent message was deleted; replyToMessage should be omitted. */
52
+ replyToDeleted: zod_1.z.boolean().optional(),
49
53
  replyTo: user_1.reducedUserSchema.nullable().optional(),
50
54
  });
51
55
  const UnionChatMessage = zod_1.z.lazy(() => zod_1.z.union([exports.chatMessageSchema, exports.communityChatMessageSchema]));
@@ -1304,7 +1304,6 @@ export declare const experienceRatingSchema: z.ZodObject<{
1304
1304
  lastTriviaEmailSentAt: z.ZodOptional<z.ZodNumber>;
1305
1305
  reactivationNotificationsSent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1306
1306
  initialTab: z.ZodOptional<z.ZodString>;
1307
- preferredLanguage: z.ZodOptional<z.ZodString>;
1308
1307
  }, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
1309
1308
  id: string;
1310
1309
  email: string;
@@ -1577,11 +1576,8 @@ export declare const searchExperienceRatingSchema: z.ZodObject<{
1577
1576
  /**
1578
1577
  * Schema for creating a new experience rating
1579
1578
  */
1580
- export declare const createExperienceRatingSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
1579
+ export declare const createExperienceRatingSchema: z.ZodObject<{
1581
1580
  id: z.ZodString;
1582
- createdAt: z.ZodNumber;
1583
- rating: z.ZodNumber;
1584
- comment: z.ZodOptional<z.ZodString>;
1585
1581
  user: z.ZodObject<Pick<{
1586
1582
  id: z.ZodString;
1587
1583
  email: z.ZodString;
@@ -2742,7 +2738,6 @@ export declare const createExperienceRatingSchema: z.ZodObject<z.objectUtil.exte
2742
2738
  lastTriviaEmailSentAt: z.ZodOptional<z.ZodNumber>;
2743
2739
  reactivationNotificationsSent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
2744
2740
  initialTab: z.ZodOptional<z.ZodString>;
2745
- preferredLanguage: z.ZodOptional<z.ZodString>;
2746
2741
  }, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
2747
2742
  id: string;
2748
2743
  email: string;
@@ -2756,81 +2751,10 @@ export declare const createExperienceRatingSchema: z.ZodObject<z.objectUtil.exte
2756
2751
  avatarUrl?: string | null | undefined;
2757
2752
  badge?: string | undefined;
2758
2753
  }>;
2759
- experience: z.ZodObject<{
2760
- id: z.ZodString;
2761
- name: z.ZodString;
2762
- description: z.ZodString;
2763
- thumbnailUrl: z.ZodString;
2764
- gameId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2765
- stadiumId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2766
- stadiumVenueName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2767
- stadiumUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2768
- rating: z.ZodOptional<z.ZodObject<{
2769
- avg: z.ZodNumber;
2770
- votes: z.ZodObject<{
2771
- options: z.ZodRecord<z.ZodNumber, z.ZodNumber>;
2772
- total: z.ZodNumber;
2773
- }, "strip", z.ZodTypeAny, {
2774
- total: number;
2775
- options: Record<number, number>;
2776
- }, {
2777
- total: number;
2778
- options: Record<number, number>;
2779
- }>;
2780
- }, "strip", z.ZodTypeAny, {
2781
- avg: number;
2782
- votes: {
2783
- total: number;
2784
- options: Record<number, number>;
2785
- };
2786
- }, {
2787
- avg: number;
2788
- votes: {
2789
- total: number;
2790
- options: Record<number, number>;
2791
- };
2792
- }>>;
2793
- createdAt: z.ZodNumber;
2794
- happenedAt: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
2795
- }, "strip", z.ZodTypeAny, {
2796
- id: string;
2797
- name: string;
2798
- description: string;
2799
- createdAt: number;
2800
- thumbnailUrl: string;
2801
- stadiumUrl?: string | null | undefined;
2802
- rating?: {
2803
- avg: number;
2804
- votes: {
2805
- total: number;
2806
- options: Record<number, number>;
2807
- };
2808
- } | undefined;
2809
- stadiumId?: string | null | undefined;
2810
- gameId?: string | null | undefined;
2811
- stadiumVenueName?: string | null | undefined;
2812
- happenedAt?: number | null | undefined;
2813
- }, {
2814
- id: string;
2815
- name: string;
2816
- description: string;
2817
- createdAt: number;
2818
- thumbnailUrl: string;
2819
- stadiumUrl?: string | null | undefined;
2820
- rating?: {
2821
- avg: number;
2822
- votes: {
2823
- total: number;
2824
- options: Record<number, number>;
2825
- };
2826
- } | undefined;
2827
- stadiumId?: string | null | undefined;
2828
- gameId?: string | null | undefined;
2829
- stadiumVenueName?: string | null | undefined;
2830
- happenedAt?: number | null | undefined;
2831
- }>;
2832
- userLikes: z.ZodOptional<z.ZodNumber>;
2833
2754
  updatedAt: z.ZodOptional<z.ZodNumber>;
2755
+ rating: z.ZodNumber;
2756
+ comment: z.ZodOptional<z.ZodString>;
2757
+ userLikes: z.ZodOptional<z.ZodNumber>;
2834
2758
  edited: z.ZodOptional<z.ZodBoolean>;
2835
2759
  userLocation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2836
2760
  events: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2876,7 +2800,7 @@ export declare const createExperienceRatingSchema: z.ZodObject<z.objectUtil.exte
2876
2800
  ratingCount?: number | undefined;
2877
2801
  };
2878
2802
  }>, "many">>;
2879
- }, "createdAt">, {
2803
+ } & {
2880
2804
  experience: z.ZodObject<Omit<{
2881
2805
  id: z.ZodString;
2882
2806
  name: z.ZodString;
@@ -2936,7 +2860,7 @@ export declare const createExperienceRatingSchema: z.ZodObject<z.objectUtil.exte
2936
2860
  stadiumVenueName?: string | null | undefined;
2937
2861
  happenedAt?: number | null | undefined;
2938
2862
  }>;
2939
- }>, "strip", z.ZodTypeAny, {
2863
+ }, "strip", z.ZodTypeAny, {
2940
2864
  id: string;
2941
2865
  user: {
2942
2866
  id: string;
@@ -4180,7 +4104,6 @@ export declare const experienceThreadCommentSchema: z.ZodObject<{
4180
4104
  lastTriviaEmailSentAt: z.ZodOptional<z.ZodNumber>;
4181
4105
  reactivationNotificationsSent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
4182
4106
  initialTab: z.ZodOptional<z.ZodString>;
4183
- preferredLanguage: z.ZodOptional<z.ZodString>;
4184
4107
  }, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
4185
4108
  id: string;
4186
4109
  email: string;
@@ -5357,7 +5280,6 @@ export declare const experienceThreadCommentSchema: z.ZodObject<{
5357
5280
  lastTriviaEmailSentAt: z.ZodOptional<z.ZodNumber>;
5358
5281
  reactivationNotificationsSent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
5359
5282
  initialTab: z.ZodOptional<z.ZodString>;
5360
- preferredLanguage: z.ZodOptional<z.ZodString>;
5361
5283
  }, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
5362
5284
  id: string;
5363
5285
  email: string;