rategame-shared 1.1.402 → 1.1.403
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/schemas/chat.d.ts +21 -6
- package/dist/schemas/experience.d.ts +92 -6
- package/dist/schemas/game.d.ts +459 -75
- package/dist/schemas/list.d.ts +15 -0
- package/dist/schemas/moderation.d.ts +12 -0
- package/dist/schemas/pick.d.ts +779 -125
- package/dist/schemas/rating.d.ts +273 -13
- package/dist/schemas/scorePrediction.d.ts +613 -100
- package/dist/schemas/stadium.d.ts +141 -8
- package/dist/schemas/team.d.ts +22 -21
- package/dist/schemas/trivia.d.ts +15 -0
- package/dist/schemas/user.d.ts +13 -0
- package/dist/schemas/user.js +1 -0
- package/dist/schemas/userEvent.d.ts +9 -0
- package/dist/schemas/voting.d.ts +160 -25
- package/package.json +1 -1
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;
|
|
@@ -827,14 +827,17 @@ export declare const chatMessageSchema: z.ZodObject<{
|
|
|
827
827
|
current: z.ZodNumber;
|
|
828
828
|
longest: z.ZodNumber;
|
|
829
829
|
updatedAt: z.ZodNumber;
|
|
830
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
830
831
|
}, "strip", z.ZodTypeAny, {
|
|
831
832
|
current: number;
|
|
832
833
|
updatedAt: number;
|
|
833
834
|
longest: number;
|
|
835
|
+
timeZone?: string | undefined;
|
|
834
836
|
}, {
|
|
835
837
|
current: number;
|
|
836
838
|
updatedAt: number;
|
|
837
839
|
longest: number;
|
|
840
|
+
timeZone?: string | undefined;
|
|
838
841
|
}>>;
|
|
839
842
|
milestones: z.ZodOptional<z.ZodObject<{
|
|
840
843
|
ratings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1990,14 +1993,17 @@ export declare const chatMessageSchema: z.ZodObject<{
|
|
|
1990
1993
|
current: z.ZodNumber;
|
|
1991
1994
|
longest: z.ZodNumber;
|
|
1992
1995
|
updatedAt: z.ZodNumber;
|
|
1996
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
1993
1997
|
}, "strip", z.ZodTypeAny, {
|
|
1994
1998
|
current: number;
|
|
1995
1999
|
updatedAt: number;
|
|
1996
2000
|
longest: number;
|
|
2001
|
+
timeZone?: string | undefined;
|
|
1997
2002
|
}, {
|
|
1998
2003
|
current: number;
|
|
1999
2004
|
updatedAt: number;
|
|
2000
2005
|
longest: number;
|
|
2006
|
+
timeZone?: string | undefined;
|
|
2001
2007
|
}>>;
|
|
2002
2008
|
milestones: z.ZodOptional<z.ZodObject<{
|
|
2003
2009
|
ratings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2325,9 +2331,9 @@ export declare const chatMessageSchema: z.ZodObject<{
|
|
|
2325
2331
|
avatarUrl?: string | null | undefined;
|
|
2326
2332
|
badge?: string | undefined;
|
|
2327
2333
|
}>>>;
|
|
2328
|
-
}
|
|
2334
|
+
}, {
|
|
2329
2335
|
replyToMessage: z.ZodOptional<z.ZodNullable<z.ZodType<any, z.ZodTypeDef, any>>>;
|
|
2330
|
-
}
|
|
2336
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2331
2337
|
type: "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
|
|
2332
2338
|
id: string;
|
|
2333
2339
|
content: string;
|
|
@@ -2382,7 +2388,7 @@ export declare const chatMessageSchema: z.ZodObject<{
|
|
|
2382
2388
|
itemId?: string | undefined;
|
|
2383
2389
|
replyToMessage?: any;
|
|
2384
2390
|
}>;
|
|
2385
|
-
export declare const communityChatMessageSchema: z.ZodObject<{
|
|
2391
|
+
export declare const communityChatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
2386
2392
|
id: z.ZodString;
|
|
2387
2393
|
content: z.ZodOptional<z.ZodString>;
|
|
2388
2394
|
createdAt: z.ZodAny;
|
|
@@ -3209,14 +3215,17 @@ export declare const communityChatMessageSchema: z.ZodObject<{
|
|
|
3209
3215
|
current: z.ZodNumber;
|
|
3210
3216
|
longest: z.ZodNumber;
|
|
3211
3217
|
updatedAt: z.ZodNumber;
|
|
3218
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
3212
3219
|
}, "strip", z.ZodTypeAny, {
|
|
3213
3220
|
current: number;
|
|
3214
3221
|
updatedAt: number;
|
|
3215
3222
|
longest: number;
|
|
3223
|
+
timeZone?: string | undefined;
|
|
3216
3224
|
}, {
|
|
3217
3225
|
current: number;
|
|
3218
3226
|
updatedAt: number;
|
|
3219
3227
|
longest: number;
|
|
3228
|
+
timeZone?: string | undefined;
|
|
3220
3229
|
}>>;
|
|
3221
3230
|
milestones: z.ZodOptional<z.ZodObject<{
|
|
3222
3231
|
ratings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -4371,14 +4380,17 @@ export declare const communityChatMessageSchema: z.ZodObject<{
|
|
|
4371
4380
|
current: z.ZodNumber;
|
|
4372
4381
|
longest: z.ZodNumber;
|
|
4373
4382
|
updatedAt: z.ZodNumber;
|
|
4383
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
4374
4384
|
}, "strip", z.ZodTypeAny, {
|
|
4375
4385
|
current: number;
|
|
4376
4386
|
updatedAt: number;
|
|
4377
4387
|
longest: number;
|
|
4388
|
+
timeZone?: string | undefined;
|
|
4378
4389
|
}, {
|
|
4379
4390
|
current: number;
|
|
4380
4391
|
updatedAt: number;
|
|
4381
4392
|
longest: number;
|
|
4393
|
+
timeZone?: string | undefined;
|
|
4382
4394
|
}>>;
|
|
4383
4395
|
milestones: z.ZodOptional<z.ZodObject<{
|
|
4384
4396
|
ratings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -4706,9 +4718,9 @@ export declare const communityChatMessageSchema: z.ZodObject<{
|
|
|
4706
4718
|
avatarUrl?: string | null | undefined;
|
|
4707
4719
|
badge?: string | undefined;
|
|
4708
4720
|
}>>>;
|
|
4709
|
-
}
|
|
4721
|
+
}, {
|
|
4710
4722
|
replyToMessage: z.ZodOptional<z.ZodNullable<z.ZodType<any, z.ZodTypeDef, any>>>;
|
|
4711
|
-
}
|
|
4723
|
+
}>, "strip", z.ZodTypeAny, {
|
|
4712
4724
|
type: "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
|
|
4713
4725
|
id: string;
|
|
4714
4726
|
user: {
|
|
@@ -5585,14 +5597,17 @@ export declare const messageReactionSchema: z.ZodObject<{
|
|
|
5585
5597
|
current: z.ZodNumber;
|
|
5586
5598
|
longest: z.ZodNumber;
|
|
5587
5599
|
updatedAt: z.ZodNumber;
|
|
5600
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
5588
5601
|
}, "strip", z.ZodTypeAny, {
|
|
5589
5602
|
current: number;
|
|
5590
5603
|
updatedAt: number;
|
|
5591
5604
|
longest: number;
|
|
5605
|
+
timeZone?: string | undefined;
|
|
5592
5606
|
}, {
|
|
5593
5607
|
current: number;
|
|
5594
5608
|
updatedAt: number;
|
|
5595
5609
|
longest: number;
|
|
5610
|
+
timeZone?: string | undefined;
|
|
5596
5611
|
}>>;
|
|
5597
5612
|
milestones: z.ZodOptional<z.ZodObject<{
|
|
5598
5613
|
ratings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -966,14 +966,17 @@ export declare const experienceRatingSchema: z.ZodObject<{
|
|
|
966
966
|
current: z.ZodNumber;
|
|
967
967
|
longest: z.ZodNumber;
|
|
968
968
|
updatedAt: z.ZodNumber;
|
|
969
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
969
970
|
}, "strip", z.ZodTypeAny, {
|
|
970
971
|
current: number;
|
|
971
972
|
updatedAt: number;
|
|
972
973
|
longest: number;
|
|
974
|
+
timeZone?: string | undefined;
|
|
973
975
|
}, {
|
|
974
976
|
current: number;
|
|
975
977
|
updatedAt: number;
|
|
976
978
|
longest: number;
|
|
979
|
+
timeZone?: string | undefined;
|
|
977
980
|
}>>;
|
|
978
981
|
milestones: z.ZodOptional<z.ZodObject<{
|
|
979
982
|
ratings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1560,8 +1563,11 @@ export declare const searchExperienceRatingSchema: z.ZodObject<{
|
|
|
1560
1563
|
/**
|
|
1561
1564
|
* Schema for creating a new experience rating
|
|
1562
1565
|
*/
|
|
1563
|
-
export declare const createExperienceRatingSchema: z.ZodObject<{
|
|
1566
|
+
export declare const createExperienceRatingSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
1564
1567
|
id: z.ZodString;
|
|
1568
|
+
createdAt: z.ZodNumber;
|
|
1569
|
+
rating: z.ZodNumber;
|
|
1570
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
1565
1571
|
user: z.ZodObject<Pick<{
|
|
1566
1572
|
id: z.ZodString;
|
|
1567
1573
|
email: z.ZodString;
|
|
@@ -2384,14 +2390,17 @@ export declare const createExperienceRatingSchema: z.ZodObject<{
|
|
|
2384
2390
|
current: z.ZodNumber;
|
|
2385
2391
|
longest: z.ZodNumber;
|
|
2386
2392
|
updatedAt: z.ZodNumber;
|
|
2393
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
2387
2394
|
}, "strip", z.ZodTypeAny, {
|
|
2388
2395
|
current: number;
|
|
2389
2396
|
updatedAt: number;
|
|
2390
2397
|
longest: number;
|
|
2398
|
+
timeZone?: string | undefined;
|
|
2391
2399
|
}, {
|
|
2392
2400
|
current: number;
|
|
2393
2401
|
updatedAt: number;
|
|
2394
2402
|
longest: number;
|
|
2403
|
+
timeZone?: string | undefined;
|
|
2395
2404
|
}>>;
|
|
2396
2405
|
milestones: z.ZodOptional<z.ZodObject<{
|
|
2397
2406
|
ratings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2719,10 +2728,81 @@ export declare const createExperienceRatingSchema: z.ZodObject<{
|
|
|
2719
2728
|
avatarUrl?: string | null | undefined;
|
|
2720
2729
|
badge?: string | undefined;
|
|
2721
2730
|
}>;
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2731
|
+
experience: z.ZodObject<{
|
|
2732
|
+
id: z.ZodString;
|
|
2733
|
+
name: z.ZodString;
|
|
2734
|
+
description: z.ZodString;
|
|
2735
|
+
thumbnailUrl: z.ZodString;
|
|
2736
|
+
gameId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2737
|
+
stadiumId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2738
|
+
stadiumVenueName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2739
|
+
stadiumUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2740
|
+
rating: z.ZodOptional<z.ZodObject<{
|
|
2741
|
+
avg: z.ZodNumber;
|
|
2742
|
+
votes: z.ZodObject<{
|
|
2743
|
+
options: z.ZodRecord<z.ZodNumber, z.ZodNumber>;
|
|
2744
|
+
total: z.ZodNumber;
|
|
2745
|
+
}, "strip", z.ZodTypeAny, {
|
|
2746
|
+
total: number;
|
|
2747
|
+
options: Record<number, number>;
|
|
2748
|
+
}, {
|
|
2749
|
+
total: number;
|
|
2750
|
+
options: Record<number, number>;
|
|
2751
|
+
}>;
|
|
2752
|
+
}, "strip", z.ZodTypeAny, {
|
|
2753
|
+
avg: number;
|
|
2754
|
+
votes: {
|
|
2755
|
+
total: number;
|
|
2756
|
+
options: Record<number, number>;
|
|
2757
|
+
};
|
|
2758
|
+
}, {
|
|
2759
|
+
avg: number;
|
|
2760
|
+
votes: {
|
|
2761
|
+
total: number;
|
|
2762
|
+
options: Record<number, number>;
|
|
2763
|
+
};
|
|
2764
|
+
}>>;
|
|
2765
|
+
createdAt: z.ZodNumber;
|
|
2766
|
+
happenedAt: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
2767
|
+
}, "strip", z.ZodTypeAny, {
|
|
2768
|
+
id: string;
|
|
2769
|
+
name: string;
|
|
2770
|
+
description: string;
|
|
2771
|
+
createdAt: number;
|
|
2772
|
+
thumbnailUrl: string;
|
|
2773
|
+
stadiumUrl?: string | null | undefined;
|
|
2774
|
+
rating?: {
|
|
2775
|
+
avg: number;
|
|
2776
|
+
votes: {
|
|
2777
|
+
total: number;
|
|
2778
|
+
options: Record<number, number>;
|
|
2779
|
+
};
|
|
2780
|
+
} | undefined;
|
|
2781
|
+
stadiumId?: string | null | undefined;
|
|
2782
|
+
gameId?: string | null | undefined;
|
|
2783
|
+
stadiumVenueName?: string | null | undefined;
|
|
2784
|
+
happenedAt?: number | null | undefined;
|
|
2785
|
+
}, {
|
|
2786
|
+
id: string;
|
|
2787
|
+
name: string;
|
|
2788
|
+
description: string;
|
|
2789
|
+
createdAt: number;
|
|
2790
|
+
thumbnailUrl: string;
|
|
2791
|
+
stadiumUrl?: string | null | undefined;
|
|
2792
|
+
rating?: {
|
|
2793
|
+
avg: number;
|
|
2794
|
+
votes: {
|
|
2795
|
+
total: number;
|
|
2796
|
+
options: Record<number, number>;
|
|
2797
|
+
};
|
|
2798
|
+
} | undefined;
|
|
2799
|
+
stadiumId?: string | null | undefined;
|
|
2800
|
+
gameId?: string | null | undefined;
|
|
2801
|
+
stadiumVenueName?: string | null | undefined;
|
|
2802
|
+
happenedAt?: number | null | undefined;
|
|
2803
|
+
}>;
|
|
2725
2804
|
userLikes: z.ZodOptional<z.ZodNumber>;
|
|
2805
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
2726
2806
|
edited: z.ZodOptional<z.ZodBoolean>;
|
|
2727
2807
|
userLocation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2728
2808
|
events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2768,7 +2848,7 @@ export declare const createExperienceRatingSchema: z.ZodObject<{
|
|
|
2768
2848
|
ratingCount?: number | undefined;
|
|
2769
2849
|
};
|
|
2770
2850
|
}>, "many">>;
|
|
2771
|
-
}
|
|
2851
|
+
}, "createdAt">, {
|
|
2772
2852
|
experience: z.ZodObject<Omit<{
|
|
2773
2853
|
id: z.ZodString;
|
|
2774
2854
|
name: z.ZodString;
|
|
@@ -2828,7 +2908,7 @@ export declare const createExperienceRatingSchema: z.ZodObject<{
|
|
|
2828
2908
|
stadiumVenueName?: string | null | undefined;
|
|
2829
2909
|
happenedAt?: number | null | undefined;
|
|
2830
2910
|
}>;
|
|
2831
|
-
}
|
|
2911
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2832
2912
|
id: string;
|
|
2833
2913
|
user: {
|
|
2834
2914
|
id: string;
|
|
@@ -3734,14 +3814,17 @@ export declare const experienceThreadCommentSchema: z.ZodObject<{
|
|
|
3734
3814
|
current: z.ZodNumber;
|
|
3735
3815
|
longest: z.ZodNumber;
|
|
3736
3816
|
updatedAt: z.ZodNumber;
|
|
3817
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
3737
3818
|
}, "strip", z.ZodTypeAny, {
|
|
3738
3819
|
current: number;
|
|
3739
3820
|
updatedAt: number;
|
|
3740
3821
|
longest: number;
|
|
3822
|
+
timeZone?: string | undefined;
|
|
3741
3823
|
}, {
|
|
3742
3824
|
current: number;
|
|
3743
3825
|
updatedAt: number;
|
|
3744
3826
|
longest: number;
|
|
3827
|
+
timeZone?: string | undefined;
|
|
3745
3828
|
}>>;
|
|
3746
3829
|
milestones: z.ZodOptional<z.ZodObject<{
|
|
3747
3830
|
ratings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -4894,14 +4977,17 @@ export declare const experienceThreadCommentSchema: z.ZodObject<{
|
|
|
4894
4977
|
current: z.ZodNumber;
|
|
4895
4978
|
longest: z.ZodNumber;
|
|
4896
4979
|
updatedAt: z.ZodNumber;
|
|
4980
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
4897
4981
|
}, "strip", z.ZodTypeAny, {
|
|
4898
4982
|
current: number;
|
|
4899
4983
|
updatedAt: number;
|
|
4900
4984
|
longest: number;
|
|
4985
|
+
timeZone?: string | undefined;
|
|
4901
4986
|
}, {
|
|
4902
4987
|
current: number;
|
|
4903
4988
|
updatedAt: number;
|
|
4904
4989
|
longest: number;
|
|
4990
|
+
timeZone?: string | undefined;
|
|
4905
4991
|
}>>;
|
|
4906
4992
|
milestones: z.ZodOptional<z.ZodObject<{
|
|
4907
4993
|
ratings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|