rategame-shared 1.1.409 → 1.1.411
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.
- package/dist/models/rating.d.ts +3 -1
- package/dist/schemas/chat.d.ts +11 -14
- package/dist/schemas/chat.js +0 -4
- package/dist/schemas/experience.d.ts +84 -6
- package/dist/schemas/game.d.ts +419 -75
- package/dist/schemas/list.d.ts +5 -0
- package/dist/schemas/moderation.d.ts +4 -0
- package/dist/schemas/notification.d.ts +5 -0
- package/dist/schemas/pick.d.ts +703 -125
- package/dist/schemas/rating.d.ts +310 -15
- package/dist/schemas/rating.js +15 -1
- package/dist/schemas/scorePrediction.d.ts +559 -100
- package/dist/schemas/stadium.d.ts +133 -8
- package/dist/schemas/team.d.ts +22 -21
- package/dist/schemas/trivia.d.ts +5 -0
- package/dist/schemas/user.d.ts +7 -0
- package/dist/schemas/user.js +1 -0
- package/dist/schemas/userEvent.d.ts +3 -0
- package/dist/schemas/voting.d.ts +142 -25
- package/package.json +1 -1
package/dist/models/rating.d.ts
CHANGED
|
@@ -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 } from "../schemas/rating";
|
|
2
|
+
import { createAgreeRatingSchema, createRatingSchema, profileRatingStatsSchema, ratingCategorySchema, ratingLikeSchema, ratingMiniEventSchema, ratingMiniPickSchema, ratingSchema, roundStatsSchema, searchRatingSchema, seasonGroupStatsSchema, seasonStatsSchema, seriesStatsSchema, threadCommentLikeSchema, threadCommentSchema, translationRequestSchema, translationResponseSchema } 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,3 +17,5 @@ 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>;
|
package/dist/schemas/chat.d.ts
CHANGED
|
@@ -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;
|
|
@@ -1165,6 +1165,7 @@ export declare const chatMessageSchema: z.ZodObject<{
|
|
|
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>;
|
|
1168
1169
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
1169
1170
|
id: string;
|
|
1170
1171
|
email: string;
|
|
@@ -1184,8 +1185,6 @@ export declare const chatMessageSchema: z.ZodObject<{
|
|
|
1184
1185
|
gifUrl: z.ZodOptional<z.ZodString>;
|
|
1185
1186
|
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1186
1187
|
isReply: z.ZodOptional<z.ZodBoolean>;
|
|
1187
|
-
/** True when the parent message was deleted; replyToMessage should be omitted. */
|
|
1188
|
-
replyToDeleted: z.ZodOptional<z.ZodBoolean>;
|
|
1189
1188
|
replyTo: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
|
|
1190
1189
|
id: z.ZodString;
|
|
1191
1190
|
email: z.ZodString;
|
|
@@ -2346,6 +2345,7 @@ export declare const chatMessageSchema: z.ZodObject<{
|
|
|
2346
2345
|
lastTriviaEmailSentAt: z.ZodOptional<z.ZodNumber>;
|
|
2347
2346
|
reactivationNotificationsSent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
2348
2347
|
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<{
|
|
|
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
|
-
}
|
|
2364
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2365
2365
|
type: "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
|
|
2366
2366
|
id: string;
|
|
2367
2367
|
content: string;
|
|
@@ -2387,7 +2387,6 @@ export declare const chatMessageSchema: z.ZodObject<{
|
|
|
2387
2387
|
} | null | undefined;
|
|
2388
2388
|
gifUrl?: string | undefined;
|
|
2389
2389
|
itemId?: string | undefined;
|
|
2390
|
-
replyToDeleted?: boolean | undefined;
|
|
2391
2390
|
replyToMessage?: any;
|
|
2392
2391
|
}, {
|
|
2393
2392
|
type: "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
|
|
@@ -2415,10 +2414,9 @@ export declare const chatMessageSchema: z.ZodObject<{
|
|
|
2415
2414
|
} | null | undefined;
|
|
2416
2415
|
gifUrl?: string | undefined;
|
|
2417
2416
|
itemId?: string | undefined;
|
|
2418
|
-
replyToDeleted?: boolean | undefined;
|
|
2419
2417
|
replyToMessage?: any;
|
|
2420
2418
|
}>;
|
|
2421
|
-
export declare const communityChatMessageSchema: z.ZodObject<{
|
|
2419
|
+
export declare const communityChatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
2422
2420
|
id: z.ZodString;
|
|
2423
2421
|
content: z.ZodOptional<z.ZodString>;
|
|
2424
2422
|
createdAt: z.ZodAny;
|
|
@@ -3583,6 +3581,7 @@ export declare const communityChatMessageSchema: z.ZodObject<{
|
|
|
3583
3581
|
lastTriviaEmailSentAt: z.ZodOptional<z.ZodNumber>;
|
|
3584
3582
|
reactivationNotificationsSent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
3585
3583
|
initialTab: z.ZodOptional<z.ZodString>;
|
|
3584
|
+
preferredLanguage: z.ZodOptional<z.ZodString>;
|
|
3586
3585
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
3587
3586
|
id: string;
|
|
3588
3587
|
email: string;
|
|
@@ -3601,8 +3600,6 @@ export declare const communityChatMessageSchema: z.ZodObject<{
|
|
|
3601
3600
|
gifUrl: z.ZodOptional<z.ZodString>;
|
|
3602
3601
|
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3603
3602
|
isReply: z.ZodOptional<z.ZodBoolean>;
|
|
3604
|
-
/** True when the parent message was deleted; replyToMessage should be omitted. */
|
|
3605
|
-
replyToDeleted: z.ZodOptional<z.ZodBoolean>;
|
|
3606
3603
|
replyTo: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
|
|
3607
3604
|
id: z.ZodString;
|
|
3608
3605
|
email: z.ZodString;
|
|
@@ -4763,6 +4760,7 @@ export declare const communityChatMessageSchema: z.ZodObject<{
|
|
|
4763
4760
|
lastTriviaEmailSentAt: z.ZodOptional<z.ZodNumber>;
|
|
4764
4761
|
reactivationNotificationsSent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
4765
4762
|
initialTab: z.ZodOptional<z.ZodString>;
|
|
4763
|
+
preferredLanguage: z.ZodOptional<z.ZodString>;
|
|
4766
4764
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
4767
4765
|
id: string;
|
|
4768
4766
|
email: string;
|
|
@@ -4776,9 +4774,9 @@ export declare const communityChatMessageSchema: z.ZodObject<{
|
|
|
4776
4774
|
avatarUrl?: string | null | undefined;
|
|
4777
4775
|
badge?: string | undefined;
|
|
4778
4776
|
}>>>;
|
|
4779
|
-
}
|
|
4777
|
+
}, {
|
|
4780
4778
|
replyToMessage: z.ZodOptional<z.ZodNullable<z.ZodType<any, z.ZodTypeDef, any>>>;
|
|
4781
|
-
}
|
|
4779
|
+
}>, "strip", z.ZodTypeAny, {
|
|
4782
4780
|
type: "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
|
|
4783
4781
|
id: string;
|
|
4784
4782
|
user: {
|
|
@@ -4802,7 +4800,6 @@ export declare const communityChatMessageSchema: z.ZodObject<{
|
|
|
4802
4800
|
} | null | undefined;
|
|
4803
4801
|
gifUrl?: string | undefined;
|
|
4804
4802
|
itemId?: string | undefined;
|
|
4805
|
-
replyToDeleted?: boolean | undefined;
|
|
4806
4803
|
replyToMessage?: any;
|
|
4807
4804
|
}, {
|
|
4808
4805
|
type: "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
|
|
@@ -4828,7 +4825,6 @@ export declare const communityChatMessageSchema: z.ZodObject<{
|
|
|
4828
4825
|
} | null | undefined;
|
|
4829
4826
|
gifUrl?: string | undefined;
|
|
4830
4827
|
itemId?: string | undefined;
|
|
4831
|
-
replyToDeleted?: boolean | undefined;
|
|
4832
4828
|
replyToMessage?: any;
|
|
4833
4829
|
}>;
|
|
4834
4830
|
export declare const messageReactionSchema: z.ZodObject<{
|
|
@@ -5995,6 +5991,7 @@ export declare const messageReactionSchema: z.ZodObject<{
|
|
|
5995
5991
|
lastTriviaEmailSentAt: z.ZodOptional<z.ZodNumber>;
|
|
5996
5992
|
reactivationNotificationsSent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
5997
5993
|
initialTab: z.ZodOptional<z.ZodString>;
|
|
5994
|
+
preferredLanguage: z.ZodOptional<z.ZodString>;
|
|
5998
5995
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
5999
5996
|
id: string;
|
|
6000
5997
|
email: string;
|
package/dist/schemas/chat.js
CHANGED
|
@@ -25,8 +25,6 @@ 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(),
|
|
30
28
|
replyTo: user_1.reducedUserSchema.nullable().optional(),
|
|
31
29
|
});
|
|
32
30
|
const baseCommunityChatMessageSchema = zod_1.z.object({
|
|
@@ -48,8 +46,6 @@ const baseCommunityChatMessageSchema = zod_1.z.object({
|
|
|
48
46
|
gifUrl: zod_1.z.string().optional(),
|
|
49
47
|
parentId: zod_1.z.string().nullable().optional(),
|
|
50
48
|
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(),
|
|
53
49
|
replyTo: user_1.reducedUserSchema.nullable().optional(),
|
|
54
50
|
});
|
|
55
51
|
const UnionChatMessage = zod_1.z.lazy(() => zod_1.z.union([exports.chatMessageSchema, exports.communityChatMessageSchema]));
|
|
@@ -1304,6 +1304,7 @@ 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>;
|
|
1307
1308
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
1308
1309
|
id: string;
|
|
1309
1310
|
email: string;
|
|
@@ -1576,8 +1577,11 @@ export declare const searchExperienceRatingSchema: z.ZodObject<{
|
|
|
1576
1577
|
/**
|
|
1577
1578
|
* Schema for creating a new experience rating
|
|
1578
1579
|
*/
|
|
1579
|
-
export declare const createExperienceRatingSchema: z.ZodObject<{
|
|
1580
|
+
export declare const createExperienceRatingSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
1580
1581
|
id: z.ZodString;
|
|
1582
|
+
createdAt: z.ZodNumber;
|
|
1583
|
+
rating: z.ZodNumber;
|
|
1584
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
1581
1585
|
user: z.ZodObject<Pick<{
|
|
1582
1586
|
id: z.ZodString;
|
|
1583
1587
|
email: z.ZodString;
|
|
@@ -2738,6 +2742,7 @@ export declare const createExperienceRatingSchema: z.ZodObject<{
|
|
|
2738
2742
|
lastTriviaEmailSentAt: z.ZodOptional<z.ZodNumber>;
|
|
2739
2743
|
reactivationNotificationsSent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
2740
2744
|
initialTab: z.ZodOptional<z.ZodString>;
|
|
2745
|
+
preferredLanguage: z.ZodOptional<z.ZodString>;
|
|
2741
2746
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
2742
2747
|
id: string;
|
|
2743
2748
|
email: string;
|
|
@@ -2751,10 +2756,81 @@ export declare const createExperienceRatingSchema: z.ZodObject<{
|
|
|
2751
2756
|
avatarUrl?: string | null | undefined;
|
|
2752
2757
|
badge?: string | undefined;
|
|
2753
2758
|
}>;
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
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
|
+
}>;
|
|
2757
2832
|
userLikes: z.ZodOptional<z.ZodNumber>;
|
|
2833
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
2758
2834
|
edited: z.ZodOptional<z.ZodBoolean>;
|
|
2759
2835
|
userLocation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2760
2836
|
events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2800,7 +2876,7 @@ export declare const createExperienceRatingSchema: z.ZodObject<{
|
|
|
2800
2876
|
ratingCount?: number | undefined;
|
|
2801
2877
|
};
|
|
2802
2878
|
}>, "many">>;
|
|
2803
|
-
}
|
|
2879
|
+
}, "createdAt">, {
|
|
2804
2880
|
experience: z.ZodObject<Omit<{
|
|
2805
2881
|
id: z.ZodString;
|
|
2806
2882
|
name: z.ZodString;
|
|
@@ -2860,7 +2936,7 @@ export declare const createExperienceRatingSchema: z.ZodObject<{
|
|
|
2860
2936
|
stadiumVenueName?: string | null | undefined;
|
|
2861
2937
|
happenedAt?: number | null | undefined;
|
|
2862
2938
|
}>;
|
|
2863
|
-
}
|
|
2939
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2864
2940
|
id: string;
|
|
2865
2941
|
user: {
|
|
2866
2942
|
id: string;
|
|
@@ -4104,6 +4180,7 @@ export declare const experienceThreadCommentSchema: z.ZodObject<{
|
|
|
4104
4180
|
lastTriviaEmailSentAt: z.ZodOptional<z.ZodNumber>;
|
|
4105
4181
|
reactivationNotificationsSent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
4106
4182
|
initialTab: z.ZodOptional<z.ZodString>;
|
|
4183
|
+
preferredLanguage: z.ZodOptional<z.ZodString>;
|
|
4107
4184
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
4108
4185
|
id: string;
|
|
4109
4186
|
email: string;
|
|
@@ -5280,6 +5357,7 @@ export declare const experienceThreadCommentSchema: z.ZodObject<{
|
|
|
5280
5357
|
lastTriviaEmailSentAt: z.ZodOptional<z.ZodNumber>;
|
|
5281
5358
|
reactivationNotificationsSent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
5282
5359
|
initialTab: z.ZodOptional<z.ZodString>;
|
|
5360
|
+
preferredLanguage: z.ZodOptional<z.ZodString>;
|
|
5283
5361
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
5284
5362
|
id: string;
|
|
5285
5363
|
email: string;
|