rategame-shared 1.1.405 → 1.1.407
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 -6
- 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 +20 -0
- package/dist/schemas/pick.d.ts +703 -125
- package/dist/schemas/rating.d.ts +322 -15
- package/dist/schemas/rating.js +16 -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;
|
|
@@ -2344,6 +2345,7 @@ export declare const chatMessageSchema: z.ZodObject<{
|
|
|
2344
2345
|
lastTriviaEmailSentAt: z.ZodOptional<z.ZodNumber>;
|
|
2345
2346
|
reactivationNotificationsSent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
2346
2347
|
initialTab: z.ZodOptional<z.ZodString>;
|
|
2348
|
+
preferredLanguage: z.ZodOptional<z.ZodString>;
|
|
2347
2349
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
2348
2350
|
id: string;
|
|
2349
2351
|
email: string;
|
|
@@ -2357,9 +2359,9 @@ export declare const chatMessageSchema: z.ZodObject<{
|
|
|
2357
2359
|
avatarUrl?: string | null | undefined;
|
|
2358
2360
|
badge?: string | undefined;
|
|
2359
2361
|
}>>>;
|
|
2360
|
-
}
|
|
2362
|
+
}, {
|
|
2361
2363
|
replyToMessage: z.ZodOptional<z.ZodNullable<z.ZodType<any, z.ZodTypeDef, any>>>;
|
|
2362
|
-
}
|
|
2364
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2363
2365
|
type: "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
|
|
2364
2366
|
id: string;
|
|
2365
2367
|
content: string;
|
|
@@ -2414,7 +2416,7 @@ export declare const chatMessageSchema: z.ZodObject<{
|
|
|
2414
2416
|
itemId?: string | undefined;
|
|
2415
2417
|
replyToMessage?: any;
|
|
2416
2418
|
}>;
|
|
2417
|
-
export declare const communityChatMessageSchema: z.ZodObject<{
|
|
2419
|
+
export declare const communityChatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
2418
2420
|
id: z.ZodString;
|
|
2419
2421
|
content: z.ZodOptional<z.ZodString>;
|
|
2420
2422
|
createdAt: z.ZodAny;
|
|
@@ -3579,6 +3581,7 @@ export declare const communityChatMessageSchema: z.ZodObject<{
|
|
|
3579
3581
|
lastTriviaEmailSentAt: z.ZodOptional<z.ZodNumber>;
|
|
3580
3582
|
reactivationNotificationsSent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
3581
3583
|
initialTab: z.ZodOptional<z.ZodString>;
|
|
3584
|
+
preferredLanguage: z.ZodOptional<z.ZodString>;
|
|
3582
3585
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
3583
3586
|
id: string;
|
|
3584
3587
|
email: string;
|
|
@@ -4757,6 +4760,7 @@ export declare const communityChatMessageSchema: z.ZodObject<{
|
|
|
4757
4760
|
lastTriviaEmailSentAt: z.ZodOptional<z.ZodNumber>;
|
|
4758
4761
|
reactivationNotificationsSent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
4759
4762
|
initialTab: z.ZodOptional<z.ZodString>;
|
|
4763
|
+
preferredLanguage: z.ZodOptional<z.ZodString>;
|
|
4760
4764
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
4761
4765
|
id: string;
|
|
4762
4766
|
email: string;
|
|
@@ -4770,9 +4774,9 @@ export declare const communityChatMessageSchema: z.ZodObject<{
|
|
|
4770
4774
|
avatarUrl?: string | null | undefined;
|
|
4771
4775
|
badge?: string | undefined;
|
|
4772
4776
|
}>>>;
|
|
4773
|
-
}
|
|
4777
|
+
}, {
|
|
4774
4778
|
replyToMessage: z.ZodOptional<z.ZodNullable<z.ZodType<any, z.ZodTypeDef, any>>>;
|
|
4775
|
-
}
|
|
4779
|
+
}>, "strip", z.ZodTypeAny, {
|
|
4776
4780
|
type: "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
|
|
4777
4781
|
id: string;
|
|
4778
4782
|
user: {
|
|
@@ -5987,6 +5991,7 @@ export declare const messageReactionSchema: z.ZodObject<{
|
|
|
5987
5991
|
lastTriviaEmailSentAt: z.ZodOptional<z.ZodNumber>;
|
|
5988
5992
|
reactivationNotificationsSent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
5989
5993
|
initialTab: z.ZodOptional<z.ZodString>;
|
|
5994
|
+
preferredLanguage: z.ZodOptional<z.ZodString>;
|
|
5990
5995
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", z.ZodTypeAny, {
|
|
5991
5996
|
id: string;
|
|
5992
5997
|
email: string;
|
|
@@ -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;
|