rategame-shared 1.1.417 → 1.1.418

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,19 +1,8 @@
1
1
  import { z } from "zod";
2
- import { leagueStatsSchema, createUserSchema, userSchema, reducedUserSchema, searchUserSchema, achievementSchema, changeUsernameSchema } from "../schemas/user";
2
+ import { leagueStatsSchema, createUserSchema, userSchema, reducedUserSchema, searchUserSchema, achievementSchema } from "../schemas/user";
3
3
  export type User = z.infer<typeof userSchema>;
4
4
  export type SearchUser = z.infer<typeof searchUserSchema>;
5
5
  export type CreateUser = z.infer<typeof createUserSchema>;
6
6
  export type LeagueStats = z.infer<typeof leagueStatsSchema>;
7
7
  export type ReducedUser = z.infer<typeof reducedUserSchema>;
8
8
  export type Achievement = z.infer<typeof achievementSchema>;
9
- export type ChangeUsername = z.infer<typeof changeUsernameSchema>;
10
- export interface UsernameClaim {
11
- userId: string;
12
- claimedAt: number;
13
- reservedUntil?: number;
14
- }
15
- export interface UsernameHistoryEvent {
16
- from: string;
17
- to: string;
18
- at: number;
19
- }
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- export declare const chatMessageSchema: z.ZodObject<{
2
+ export declare const chatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
3
3
  id: z.ZodString;
4
4
  content: z.ZodString;
5
5
  createdAt: z.ZodAny;
@@ -1063,8 +1063,6 @@ export declare const chatMessageSchema: z.ZodObject<{
1063
1063
  viewedToS: z.ZodOptional<z.ZodBoolean>;
1064
1064
  banned: z.ZodOptional<z.ZodBoolean>;
1065
1065
  lowercaseUsername: z.ZodOptional<z.ZodString>;
1066
- lastUsernameChangeAt: z.ZodOptional<z.ZodNumber>;
1067
- previousUsernames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1068
1066
  headerColor: z.ZodOptional<z.ZodString>;
1069
1067
  profileCompletionTrackerDismissed: z.ZodOptional<z.ZodBoolean>;
1070
1068
  profileCompletionStatus: z.ZodOptional<z.ZodObject<{
@@ -2249,8 +2247,6 @@ export declare const chatMessageSchema: z.ZodObject<{
2249
2247
  viewedToS: z.ZodOptional<z.ZodBoolean>;
2250
2248
  banned: z.ZodOptional<z.ZodBoolean>;
2251
2249
  lowercaseUsername: z.ZodOptional<z.ZodString>;
2252
- lastUsernameChangeAt: z.ZodOptional<z.ZodNumber>;
2253
- previousUsernames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2254
2250
  headerColor: z.ZodOptional<z.ZodString>;
2255
2251
  profileCompletionTrackerDismissed: z.ZodOptional<z.ZodBoolean>;
2256
2252
  profileCompletionStatus: z.ZodOptional<z.ZodObject<{
@@ -2370,9 +2366,9 @@ export declare const chatMessageSchema: z.ZodObject<{
2370
2366
  avatarUrl?: string | null | undefined;
2371
2367
  badge?: string | undefined;
2372
2368
  }>>>;
2373
- } & {
2369
+ }, {
2374
2370
  replyToMessage: z.ZodOptional<z.ZodNullable<z.ZodType<any, z.ZodTypeDef, any>>>;
2375
- }, "strip", z.ZodTypeAny, {
2371
+ }>, "strip", z.ZodTypeAny, {
2376
2372
  type: "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
2377
2373
  id: string;
2378
2374
  content: string;
@@ -2431,7 +2427,7 @@ export declare const chatMessageSchema: z.ZodObject<{
2431
2427
  replyToDeleted?: boolean | undefined;
2432
2428
  replyToMessage?: any;
2433
2429
  }>;
2434
- export declare const communityChatMessageSchema: z.ZodObject<{
2430
+ export declare const communityChatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
2435
2431
  id: z.ZodString;
2436
2432
  content: z.ZodOptional<z.ZodString>;
2437
2433
  createdAt: z.ZodAny;
@@ -3494,8 +3490,6 @@ export declare const communityChatMessageSchema: z.ZodObject<{
3494
3490
  viewedToS: z.ZodOptional<z.ZodBoolean>;
3495
3491
  banned: z.ZodOptional<z.ZodBoolean>;
3496
3492
  lowercaseUsername: z.ZodOptional<z.ZodString>;
3497
- lastUsernameChangeAt: z.ZodOptional<z.ZodNumber>;
3498
- previousUsernames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3499
3493
  headerColor: z.ZodOptional<z.ZodString>;
3500
3494
  profileCompletionTrackerDismissed: z.ZodOptional<z.ZodBoolean>;
3501
3495
  profileCompletionStatus: z.ZodOptional<z.ZodObject<{
@@ -4679,8 +4673,6 @@ export declare const communityChatMessageSchema: z.ZodObject<{
4679
4673
  viewedToS: z.ZodOptional<z.ZodBoolean>;
4680
4674
  banned: z.ZodOptional<z.ZodBoolean>;
4681
4675
  lowercaseUsername: z.ZodOptional<z.ZodString>;
4682
- lastUsernameChangeAt: z.ZodOptional<z.ZodNumber>;
4683
- previousUsernames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4684
4676
  headerColor: z.ZodOptional<z.ZodString>;
4685
4677
  profileCompletionTrackerDismissed: z.ZodOptional<z.ZodBoolean>;
4686
4678
  profileCompletionStatus: z.ZodOptional<z.ZodObject<{
@@ -4800,9 +4792,9 @@ export declare const communityChatMessageSchema: z.ZodObject<{
4800
4792
  avatarUrl?: string | null | undefined;
4801
4793
  badge?: string | undefined;
4802
4794
  }>>>;
4803
- } & {
4795
+ }, {
4804
4796
  replyToMessage: z.ZodOptional<z.ZodNullable<z.ZodType<any, z.ZodTypeDef, any>>>;
4805
- }, "strip", z.ZodTypeAny, {
4797
+ }>, "strip", z.ZodTypeAny, {
4806
4798
  type: "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
4807
4799
  id: string;
4808
4800
  user: {
@@ -5918,8 +5910,6 @@ export declare const messageReactionSchema: z.ZodObject<{
5918
5910
  viewedToS: z.ZodOptional<z.ZodBoolean>;
5919
5911
  banned: z.ZodOptional<z.ZodBoolean>;
5920
5912
  lowercaseUsername: z.ZodOptional<z.ZodString>;
5921
- lastUsernameChangeAt: z.ZodOptional<z.ZodNumber>;
5922
- previousUsernames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5923
5913
  headerColor: z.ZodOptional<z.ZodString>;
5924
5914
  profileCompletionTrackerDismissed: z.ZodOptional<z.ZodBoolean>;
5925
5915
  profileCompletionStatus: z.ZodOptional<z.ZodObject<{
@@ -17,16 +17,16 @@ export declare const featuredVideoSchema: import("zod").ZodObject<{
17
17
  description: string;
18
18
  thumbnail: string;
19
19
  }>;
20
- export declare const createFeaturedVideoScheduleInputSchema: import("zod").ZodObject<{
20
+ export declare const createFeaturedVideoScheduleInputSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
21
21
  id: import("zod").ZodString;
22
22
  title: import("zod").ZodString;
23
23
  description: import("zod").ZodString;
24
24
  url: import("zod").ZodString;
25
25
  thumbnail: import("zod").ZodString;
26
- } & {
26
+ }, {
27
27
  startsAt: import("zod").ZodNumber;
28
28
  endsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
29
- }, "strip", import("zod").ZodTypeAny, {
29
+ }>, "strip", import("zod").ZodTypeAny, {
30
30
  id: string;
31
31
  url: string;
32
32
  title: string;
@@ -43,16 +43,16 @@ export declare const createFeaturedVideoScheduleInputSchema: import("zod").ZodOb
43
43
  startsAt: number;
44
44
  endsAt?: number | undefined;
45
45
  }>;
46
- export declare const updateFeaturedVideoScheduleInputSchema: import("zod").ZodObject<{
46
+ export declare const updateFeaturedVideoScheduleInputSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
47
47
  id: import("zod").ZodString;
48
48
  title: import("zod").ZodString;
49
49
  description: import("zod").ZodString;
50
50
  url: import("zod").ZodString;
51
51
  thumbnail: import("zod").ZodString;
52
- } & {
52
+ }, {
53
53
  startsAt: import("zod").ZodNumber;
54
54
  endsAt: import("zod").ZodOptional<import("zod").ZodNumber>;
55
- }, "strip", import("zod").ZodTypeAny, {
55
+ }>, "strip", import("zod").ZodTypeAny, {
56
56
  id: string;
57
57
  url: string;
58
58
  title: string;
@@ -69,19 +69,19 @@ export declare const updateFeaturedVideoScheduleInputSchema: import("zod").ZodOb
69
69
  startsAt: number;
70
70
  endsAt?: number | undefined;
71
71
  }>;
72
- export declare const featuredVideoScheduleSchema: import("zod").ZodObject<{
72
+ export declare const featuredVideoScheduleSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
73
73
  id: import("zod").ZodString;
74
74
  title: import("zod").ZodString;
75
75
  description: import("zod").ZodString;
76
76
  url: import("zod").ZodString;
77
77
  thumbnail: import("zod").ZodString;
78
- } & {
78
+ }, {
79
79
  scheduleId: import("zod").ZodString;
80
80
  startsAt: import("zod").ZodNumber;
81
81
  endsAt: import("zod").ZodNumber;
82
82
  createdAt: import("zod").ZodNumber;
83
83
  updatedAt: import("zod").ZodNumber;
84
- }, "strip", import("zod").ZodTypeAny, {
84
+ }>, "strip", import("zod").ZodTypeAny, {
85
85
  id: string;
86
86
  url: string;
87
87
  title: string;
@@ -1202,8 +1202,6 @@ export declare const experienceRatingSchema: z.ZodObject<{
1202
1202
  viewedToS: z.ZodOptional<z.ZodBoolean>;
1203
1203
  banned: z.ZodOptional<z.ZodBoolean>;
1204
1204
  lowercaseUsername: z.ZodOptional<z.ZodString>;
1205
- lastUsernameChangeAt: z.ZodOptional<z.ZodNumber>;
1206
- previousUsernames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1207
1205
  headerColor: z.ZodOptional<z.ZodString>;
1208
1206
  profileCompletionTrackerDismissed: z.ZodOptional<z.ZodBoolean>;
1209
1207
  profileCompletionStatus: z.ZodOptional<z.ZodObject<{
@@ -1584,8 +1582,12 @@ export declare const searchExperienceRatingSchema: z.ZodObject<{
1584
1582
  /**
1585
1583
  * Schema for creating a new experience rating
1586
1584
  */
1587
- export declare const createExperienceRatingSchema: z.ZodObject<{
1585
+ export declare const createExperienceRatingSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
1588
1586
  id: z.ZodString;
1587
+ createdAt: z.ZodNumber;
1588
+ rating: z.ZodNumber;
1589
+ comment: z.ZodOptional<z.ZodString>;
1590
+ commentLanguage: z.ZodOptional<z.ZodString>;
1589
1591
  user: z.ZodObject<Pick<{
1590
1592
  id: z.ZodString;
1591
1593
  email: z.ZodString;
@@ -2643,8 +2645,6 @@ export declare const createExperienceRatingSchema: z.ZodObject<{
2643
2645
  viewedToS: z.ZodOptional<z.ZodBoolean>;
2644
2646
  banned: z.ZodOptional<z.ZodBoolean>;
2645
2647
  lowercaseUsername: z.ZodOptional<z.ZodString>;
2646
- lastUsernameChangeAt: z.ZodOptional<z.ZodNumber>;
2647
- previousUsernames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2648
2648
  headerColor: z.ZodOptional<z.ZodString>;
2649
2649
  profileCompletionTrackerDismissed: z.ZodOptional<z.ZodBoolean>;
2650
2650
  profileCompletionStatus: z.ZodOptional<z.ZodObject<{
@@ -2764,10 +2764,81 @@ export declare const createExperienceRatingSchema: z.ZodObject<{
2764
2764
  avatarUrl?: string | null | undefined;
2765
2765
  badge?: string | undefined;
2766
2766
  }>;
2767
- updatedAt: z.ZodOptional<z.ZodNumber>;
2768
- rating: z.ZodNumber;
2769
- comment: z.ZodOptional<z.ZodString>;
2767
+ experience: z.ZodObject<{
2768
+ id: z.ZodString;
2769
+ name: z.ZodString;
2770
+ description: z.ZodString;
2771
+ thumbnailUrl: z.ZodString;
2772
+ gameId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2773
+ stadiumId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2774
+ stadiumVenueName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2775
+ stadiumUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2776
+ rating: z.ZodOptional<z.ZodObject<{
2777
+ avg: z.ZodNumber;
2778
+ votes: z.ZodObject<{
2779
+ options: z.ZodRecord<z.ZodNumber, z.ZodNumber>;
2780
+ total: z.ZodNumber;
2781
+ }, "strip", z.ZodTypeAny, {
2782
+ total: number;
2783
+ options: Record<number, number>;
2784
+ }, {
2785
+ total: number;
2786
+ options: Record<number, number>;
2787
+ }>;
2788
+ }, "strip", z.ZodTypeAny, {
2789
+ avg: number;
2790
+ votes: {
2791
+ total: number;
2792
+ options: Record<number, number>;
2793
+ };
2794
+ }, {
2795
+ avg: number;
2796
+ votes: {
2797
+ total: number;
2798
+ options: Record<number, number>;
2799
+ };
2800
+ }>>;
2801
+ createdAt: z.ZodNumber;
2802
+ happenedAt: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
2803
+ }, "strip", z.ZodTypeAny, {
2804
+ id: string;
2805
+ name: string;
2806
+ description: string;
2807
+ createdAt: number;
2808
+ thumbnailUrl: string;
2809
+ stadiumUrl?: string | null | undefined;
2810
+ rating?: {
2811
+ avg: number;
2812
+ votes: {
2813
+ total: number;
2814
+ options: Record<number, number>;
2815
+ };
2816
+ } | undefined;
2817
+ stadiumId?: string | null | undefined;
2818
+ gameId?: string | null | undefined;
2819
+ stadiumVenueName?: string | null | undefined;
2820
+ happenedAt?: number | null | undefined;
2821
+ }, {
2822
+ id: string;
2823
+ name: string;
2824
+ description: string;
2825
+ createdAt: number;
2826
+ thumbnailUrl: string;
2827
+ stadiumUrl?: string | null | undefined;
2828
+ rating?: {
2829
+ avg: number;
2830
+ votes: {
2831
+ total: number;
2832
+ options: Record<number, number>;
2833
+ };
2834
+ } | undefined;
2835
+ stadiumId?: string | null | undefined;
2836
+ gameId?: string | null | undefined;
2837
+ stadiumVenueName?: string | null | undefined;
2838
+ happenedAt?: number | null | undefined;
2839
+ }>;
2770
2840
  userLikes: z.ZodOptional<z.ZodNumber>;
2841
+ updatedAt: z.ZodOptional<z.ZodNumber>;
2771
2842
  edited: z.ZodOptional<z.ZodBoolean>;
2772
2843
  userLocation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2773
2844
  events: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2813,8 +2884,7 @@ export declare const createExperienceRatingSchema: z.ZodObject<{
2813
2884
  ratingCount?: number | undefined;
2814
2885
  };
2815
2886
  }>, "many">>;
2816
- commentLanguage: z.ZodOptional<z.ZodString>;
2817
- } & {
2887
+ }, "createdAt">, {
2818
2888
  experience: z.ZodObject<Omit<{
2819
2889
  id: z.ZodString;
2820
2890
  name: z.ZodString;
@@ -2874,7 +2944,7 @@ export declare const createExperienceRatingSchema: z.ZodObject<{
2874
2944
  stadiumVenueName?: string | null | undefined;
2875
2945
  happenedAt?: number | null | undefined;
2876
2946
  }>;
2877
- }, "strip", z.ZodTypeAny, {
2947
+ }>, "strip", z.ZodTypeAny, {
2878
2948
  id: string;
2879
2949
  user: {
2880
2950
  id: string;
@@ -4017,8 +4087,6 @@ export declare const experienceThreadCommentSchema: z.ZodObject<{
4017
4087
  viewedToS: z.ZodOptional<z.ZodBoolean>;
4018
4088
  banned: z.ZodOptional<z.ZodBoolean>;
4019
4089
  lowercaseUsername: z.ZodOptional<z.ZodString>;
4020
- lastUsernameChangeAt: z.ZodOptional<z.ZodNumber>;
4021
- previousUsernames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4022
4090
  headerColor: z.ZodOptional<z.ZodString>;
4023
4091
  profileCompletionTrackerDismissed: z.ZodOptional<z.ZodBoolean>;
4024
4092
  profileCompletionStatus: z.ZodOptional<z.ZodObject<{
@@ -5198,8 +5266,6 @@ export declare const experienceThreadCommentSchema: z.ZodObject<{
5198
5266
  viewedToS: z.ZodOptional<z.ZodBoolean>;
5199
5267
  banned: z.ZodOptional<z.ZodBoolean>;
5200
5268
  lowercaseUsername: z.ZodOptional<z.ZodString>;
5201
- lastUsernameChangeAt: z.ZodOptional<z.ZodNumber>;
5202
- previousUsernames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5203
5269
  headerColor: z.ZodOptional<z.ZodString>;
5204
5270
  profileCompletionTrackerDismissed: z.ZodOptional<z.ZodBoolean>;
5205
5271
  profileCompletionStatus: z.ZodOptional<z.ZodObject<{