rategame-shared 1.1.417 → 1.1.419
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 +6 -6
- package/dist/schemas/content.d.ts +9 -9
- package/dist/schemas/experience.d.ts +81 -7
- package/dist/schemas/game.d.ts +399 -75
- package/dist/schemas/pick.d.ts +665 -125
- package/dist/schemas/rating.d.ts +264 -13
- package/dist/schemas/scorePrediction.d.ts +532 -100
- package/dist/schemas/stadium.d.ts +130 -9
- package/dist/schemas/team.d.ts +22 -21
- package/dist/schemas/trivia.d.ts +40 -1
- package/dist/schemas/trivia.js +26 -1
- package/dist/schemas/voting.d.ts +133 -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;
|
|
@@ -2370,9 +2370,9 @@ export declare const chatMessageSchema: z.ZodObject<{
|
|
|
2370
2370
|
avatarUrl?: string | null | undefined;
|
|
2371
2371
|
badge?: string | undefined;
|
|
2372
2372
|
}>>>;
|
|
2373
|
-
}
|
|
2373
|
+
}, {
|
|
2374
2374
|
replyToMessage: z.ZodOptional<z.ZodNullable<z.ZodType<any, z.ZodTypeDef, any>>>;
|
|
2375
|
-
}
|
|
2375
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2376
2376
|
type: "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
|
|
2377
2377
|
id: string;
|
|
2378
2378
|
content: string;
|
|
@@ -2431,7 +2431,7 @@ export declare const chatMessageSchema: z.ZodObject<{
|
|
|
2431
2431
|
replyToDeleted?: boolean | undefined;
|
|
2432
2432
|
replyToMessage?: any;
|
|
2433
2433
|
}>;
|
|
2434
|
-
export declare const communityChatMessageSchema: z.ZodObject<{
|
|
2434
|
+
export declare const communityChatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
2435
2435
|
id: z.ZodString;
|
|
2436
2436
|
content: z.ZodOptional<z.ZodString>;
|
|
2437
2437
|
createdAt: z.ZodAny;
|
|
@@ -4800,9 +4800,9 @@ export declare const communityChatMessageSchema: z.ZodObject<{
|
|
|
4800
4800
|
avatarUrl?: string | null | undefined;
|
|
4801
4801
|
badge?: string | undefined;
|
|
4802
4802
|
}>>>;
|
|
4803
|
-
}
|
|
4803
|
+
}, {
|
|
4804
4804
|
replyToMessage: z.ZodOptional<z.ZodNullable<z.ZodType<any, z.ZodTypeDef, any>>>;
|
|
4805
|
-
}
|
|
4805
|
+
}>, "strip", z.ZodTypeAny, {
|
|
4806
4806
|
type: "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
|
|
4807
4807
|
id: string;
|
|
4808
4808
|
user: {
|
|
@@ -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
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
84
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
85
85
|
id: string;
|
|
86
86
|
url: string;
|
|
87
87
|
title: string;
|
|
@@ -1584,8 +1584,12 @@ export declare const searchExperienceRatingSchema: z.ZodObject<{
|
|
|
1584
1584
|
/**
|
|
1585
1585
|
* Schema for creating a new experience rating
|
|
1586
1586
|
*/
|
|
1587
|
-
export declare const createExperienceRatingSchema: z.ZodObject<{
|
|
1587
|
+
export declare const createExperienceRatingSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
1588
1588
|
id: z.ZodString;
|
|
1589
|
+
createdAt: z.ZodNumber;
|
|
1590
|
+
rating: z.ZodNumber;
|
|
1591
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
1592
|
+
commentLanguage: z.ZodOptional<z.ZodString>;
|
|
1589
1593
|
user: z.ZodObject<Pick<{
|
|
1590
1594
|
id: z.ZodString;
|
|
1591
1595
|
email: z.ZodString;
|
|
@@ -2764,10 +2768,81 @@ export declare const createExperienceRatingSchema: z.ZodObject<{
|
|
|
2764
2768
|
avatarUrl?: string | null | undefined;
|
|
2765
2769
|
badge?: string | undefined;
|
|
2766
2770
|
}>;
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2771
|
+
experience: z.ZodObject<{
|
|
2772
|
+
id: z.ZodString;
|
|
2773
|
+
name: z.ZodString;
|
|
2774
|
+
description: z.ZodString;
|
|
2775
|
+
thumbnailUrl: z.ZodString;
|
|
2776
|
+
gameId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2777
|
+
stadiumId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2778
|
+
stadiumVenueName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2779
|
+
stadiumUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2780
|
+
rating: z.ZodOptional<z.ZodObject<{
|
|
2781
|
+
avg: z.ZodNumber;
|
|
2782
|
+
votes: z.ZodObject<{
|
|
2783
|
+
options: z.ZodRecord<z.ZodNumber, z.ZodNumber>;
|
|
2784
|
+
total: z.ZodNumber;
|
|
2785
|
+
}, "strip", z.ZodTypeAny, {
|
|
2786
|
+
total: number;
|
|
2787
|
+
options: Record<number, number>;
|
|
2788
|
+
}, {
|
|
2789
|
+
total: number;
|
|
2790
|
+
options: Record<number, number>;
|
|
2791
|
+
}>;
|
|
2792
|
+
}, "strip", z.ZodTypeAny, {
|
|
2793
|
+
avg: number;
|
|
2794
|
+
votes: {
|
|
2795
|
+
total: number;
|
|
2796
|
+
options: Record<number, number>;
|
|
2797
|
+
};
|
|
2798
|
+
}, {
|
|
2799
|
+
avg: number;
|
|
2800
|
+
votes: {
|
|
2801
|
+
total: number;
|
|
2802
|
+
options: Record<number, number>;
|
|
2803
|
+
};
|
|
2804
|
+
}>>;
|
|
2805
|
+
createdAt: z.ZodNumber;
|
|
2806
|
+
happenedAt: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
2807
|
+
}, "strip", z.ZodTypeAny, {
|
|
2808
|
+
id: string;
|
|
2809
|
+
name: string;
|
|
2810
|
+
description: string;
|
|
2811
|
+
createdAt: number;
|
|
2812
|
+
thumbnailUrl: string;
|
|
2813
|
+
stadiumUrl?: string | null | undefined;
|
|
2814
|
+
rating?: {
|
|
2815
|
+
avg: number;
|
|
2816
|
+
votes: {
|
|
2817
|
+
total: number;
|
|
2818
|
+
options: Record<number, number>;
|
|
2819
|
+
};
|
|
2820
|
+
} | undefined;
|
|
2821
|
+
stadiumId?: string | null | undefined;
|
|
2822
|
+
gameId?: string | null | undefined;
|
|
2823
|
+
stadiumVenueName?: string | null | undefined;
|
|
2824
|
+
happenedAt?: number | null | undefined;
|
|
2825
|
+
}, {
|
|
2826
|
+
id: string;
|
|
2827
|
+
name: string;
|
|
2828
|
+
description: string;
|
|
2829
|
+
createdAt: number;
|
|
2830
|
+
thumbnailUrl: string;
|
|
2831
|
+
stadiumUrl?: string | null | undefined;
|
|
2832
|
+
rating?: {
|
|
2833
|
+
avg: number;
|
|
2834
|
+
votes: {
|
|
2835
|
+
total: number;
|
|
2836
|
+
options: Record<number, number>;
|
|
2837
|
+
};
|
|
2838
|
+
} | undefined;
|
|
2839
|
+
stadiumId?: string | null | undefined;
|
|
2840
|
+
gameId?: string | null | undefined;
|
|
2841
|
+
stadiumVenueName?: string | null | undefined;
|
|
2842
|
+
happenedAt?: number | null | undefined;
|
|
2843
|
+
}>;
|
|
2770
2844
|
userLikes: z.ZodOptional<z.ZodNumber>;
|
|
2845
|
+
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
2771
2846
|
edited: z.ZodOptional<z.ZodBoolean>;
|
|
2772
2847
|
userLocation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2773
2848
|
events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2813,8 +2888,7 @@ export declare const createExperienceRatingSchema: z.ZodObject<{
|
|
|
2813
2888
|
ratingCount?: number | undefined;
|
|
2814
2889
|
};
|
|
2815
2890
|
}>, "many">>;
|
|
2816
|
-
|
|
2817
|
-
} & {
|
|
2891
|
+
}, "createdAt">, {
|
|
2818
2892
|
experience: z.ZodObject<Omit<{
|
|
2819
2893
|
id: z.ZodString;
|
|
2820
2894
|
name: z.ZodString;
|
|
@@ -2874,7 +2948,7 @@ export declare const createExperienceRatingSchema: z.ZodObject<{
|
|
|
2874
2948
|
stadiumVenueName?: string | null | undefined;
|
|
2875
2949
|
happenedAt?: number | null | undefined;
|
|
2876
2950
|
}>;
|
|
2877
|
-
}
|
|
2951
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2878
2952
|
id: string;
|
|
2879
2953
|
user: {
|
|
2880
2954
|
id: string;
|