rategame-shared 1.1.443 → 1.1.445
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/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/models/poll.d.ts +12 -0
- package/dist/models/poll.js +2 -0
- package/dist/schemas/chat.d.ts +6 -6
- package/dist/schemas/chat.js +2 -0
- package/dist/schemas/poll.d.ts +44926 -0
- package/dist/schemas/poll.js +115 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export * from "./schemas/sharedTypes";
|
|
|
22
22
|
export * from "./schemas/season";
|
|
23
23
|
export * from "./schemas/trivia";
|
|
24
24
|
export * from "./schemas/article";
|
|
25
|
+
export * from "./schemas/poll";
|
|
25
26
|
export * from "./schemas/scorePrediction";
|
|
26
27
|
export * from "./schemas/reactivation";
|
|
27
28
|
export * from "./schemas/standings";
|
|
@@ -50,6 +51,7 @@ export * from "./models/communityGame";
|
|
|
50
51
|
export * from "./models/season";
|
|
51
52
|
export * from "./models/trivia";
|
|
52
53
|
export * from "./models/article";
|
|
54
|
+
export * from "./models/poll";
|
|
53
55
|
export * from "./models/scorePrediction";
|
|
54
56
|
export * from "./models/reactivation";
|
|
55
57
|
export * from "./models/standings";
|
package/dist/index.js
CHANGED
|
@@ -38,6 +38,7 @@ __exportStar(require("./schemas/sharedTypes"), exports);
|
|
|
38
38
|
__exportStar(require("./schemas/season"), exports);
|
|
39
39
|
__exportStar(require("./schemas/trivia"), exports);
|
|
40
40
|
__exportStar(require("./schemas/article"), exports);
|
|
41
|
+
__exportStar(require("./schemas/poll"), exports);
|
|
41
42
|
__exportStar(require("./schemas/scorePrediction"), exports);
|
|
42
43
|
__exportStar(require("./schemas/reactivation"), exports);
|
|
43
44
|
__exportStar(require("./schemas/standings"), exports);
|
|
@@ -66,6 +67,7 @@ __exportStar(require("./models/communityGame"), exports);
|
|
|
66
67
|
__exportStar(require("./models/season"), exports);
|
|
67
68
|
__exportStar(require("./models/trivia"), exports);
|
|
68
69
|
__exportStar(require("./models/article"), exports);
|
|
70
|
+
__exportStar(require("./models/poll"), exports);
|
|
69
71
|
__exportStar(require("./models/scorePrediction"), exports);
|
|
70
72
|
__exportStar(require("./models/reactivation"), exports);
|
|
71
73
|
__exportStar(require("./models/standings"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { pollSchema, pollOptionSchema, pollTypeSchema, pollStatusSchema, pollVoteSchema, pollVoteSubmissionSchema, pollVoteResponseSchema, searchPollSchema, pollThreadCommentSchema, pollThreadCommentLikeSchema } from "../schemas/poll";
|
|
3
|
+
export type Poll = z.infer<typeof pollSchema>;
|
|
4
|
+
export type PollOption = z.infer<typeof pollOptionSchema>;
|
|
5
|
+
export type PollType = z.infer<typeof pollTypeSchema>;
|
|
6
|
+
export type PollStatus = z.infer<typeof pollStatusSchema>;
|
|
7
|
+
export type PollVote = z.infer<typeof pollVoteSchema>;
|
|
8
|
+
export type PollVoteSubmission = z.infer<typeof pollVoteSubmissionSchema>;
|
|
9
|
+
export type PollVoteResponse = z.infer<typeof pollVoteResponseSchema>;
|
|
10
|
+
export type SearchPoll = z.infer<typeof searchPollSchema>;
|
|
11
|
+
export type PollThreadComment = z.infer<typeof pollThreadCommentSchema>;
|
|
12
|
+
export type PollThreadCommentLike = z.infer<typeof pollThreadCommentLikeSchema>;
|
package/dist/schemas/chat.d.ts
CHANGED
|
@@ -1187,7 +1187,7 @@ export declare const chatMessageSchema: z.ZodObject<{
|
|
|
1187
1187
|
badge?: string | undefined;
|
|
1188
1188
|
}>;
|
|
1189
1189
|
lastPlay: z.ZodOptional<z.ZodBoolean>;
|
|
1190
|
-
type: z.ZodUnion<[z.ZodLiteral<"game">, z.ZodLiteral<"profile">, z.ZodLiteral<"list">, z.ZodLiteral<"gif">, z.ZodLiteral<"rating">, z.ZodLiteral<"trivia">, z.ZodLiteral<"text">]>;
|
|
1190
|
+
type: z.ZodUnion<[z.ZodLiteral<"game">, z.ZodLiteral<"profile">, z.ZodLiteral<"list">, z.ZodLiteral<"gif">, z.ZodLiteral<"rating">, z.ZodLiteral<"trivia">, z.ZodLiteral<"article">, z.ZodLiteral<"text">]>;
|
|
1191
1191
|
itemId: z.ZodOptional<z.ZodString>;
|
|
1192
1192
|
gifUrl: z.ZodOptional<z.ZodString>;
|
|
1193
1193
|
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2377,7 +2377,7 @@ export declare const chatMessageSchema: z.ZodObject<{
|
|
|
2377
2377
|
} & {
|
|
2378
2378
|
replyToMessage: z.ZodOptional<z.ZodNullable<z.ZodType<any, z.ZodTypeDef, any>>>;
|
|
2379
2379
|
}, "strip", z.ZodTypeAny, {
|
|
2380
|
-
type: "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
|
|
2380
|
+
type: "article" | "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
|
|
2381
2381
|
id: string;
|
|
2382
2382
|
content: string;
|
|
2383
2383
|
user: {
|
|
@@ -2406,7 +2406,7 @@ export declare const chatMessageSchema: z.ZodObject<{
|
|
|
2406
2406
|
replyToDeleted?: boolean | undefined;
|
|
2407
2407
|
replyToMessage?: any;
|
|
2408
2408
|
}, {
|
|
2409
|
-
type: "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
|
|
2409
|
+
type: "article" | "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
|
|
2410
2410
|
id: string;
|
|
2411
2411
|
content: string;
|
|
2412
2412
|
user: {
|
|
@@ -3621,7 +3621,7 @@ export declare const communityChatMessageSchema: z.ZodObject<{
|
|
|
3621
3621
|
avatarUrl?: string | null | undefined;
|
|
3622
3622
|
badge?: string | undefined;
|
|
3623
3623
|
}>;
|
|
3624
|
-
type: z.ZodUnion<[z.ZodLiteral<"game">, z.ZodLiteral<"profile">, z.ZodLiteral<"list">, z.ZodLiteral<"gif">, z.ZodLiteral<"rating">, z.ZodLiteral<"trivia">, z.ZodLiteral<"text">]>;
|
|
3624
|
+
type: z.ZodUnion<[z.ZodLiteral<"game">, z.ZodLiteral<"profile">, z.ZodLiteral<"list">, z.ZodLiteral<"gif">, z.ZodLiteral<"rating">, z.ZodLiteral<"trivia">, z.ZodLiteral<"article">, z.ZodLiteral<"text">]>;
|
|
3625
3625
|
itemId: z.ZodOptional<z.ZodString>;
|
|
3626
3626
|
gifUrl: z.ZodOptional<z.ZodString>;
|
|
3627
3627
|
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -4811,7 +4811,7 @@ export declare const communityChatMessageSchema: z.ZodObject<{
|
|
|
4811
4811
|
} & {
|
|
4812
4812
|
replyToMessage: z.ZodOptional<z.ZodNullable<z.ZodType<any, z.ZodTypeDef, any>>>;
|
|
4813
4813
|
}, "strip", z.ZodTypeAny, {
|
|
4814
|
-
type: "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
|
|
4814
|
+
type: "article" | "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
|
|
4815
4815
|
id: string;
|
|
4816
4816
|
user: {
|
|
4817
4817
|
id: string;
|
|
@@ -4838,7 +4838,7 @@ export declare const communityChatMessageSchema: z.ZodObject<{
|
|
|
4838
4838
|
replyToDeleted?: boolean | undefined;
|
|
4839
4839
|
replyToMessage?: any;
|
|
4840
4840
|
}, {
|
|
4841
|
-
type: "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
|
|
4841
|
+
type: "article" | "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
|
|
4842
4842
|
id: string;
|
|
4843
4843
|
user: {
|
|
4844
4844
|
id: string;
|
package/dist/schemas/chat.js
CHANGED
|
@@ -20,6 +20,7 @@ const baseChatMessageSchema = zod_1.z.object({
|
|
|
20
20
|
zod_1.z.literal("gif"),
|
|
21
21
|
zod_1.z.literal("rating"),
|
|
22
22
|
zod_1.z.literal("trivia"),
|
|
23
|
+
zod_1.z.literal("article"),
|
|
23
24
|
zod_1.z.literal("text"),
|
|
24
25
|
]),
|
|
25
26
|
itemId: zod_1.z.string().optional(),
|
|
@@ -44,6 +45,7 @@ const baseCommunityChatMessageSchema = zod_1.z.object({
|
|
|
44
45
|
zod_1.z.literal("gif"),
|
|
45
46
|
zod_1.z.literal("rating"),
|
|
46
47
|
zod_1.z.literal("trivia"),
|
|
48
|
+
zod_1.z.literal("article"),
|
|
47
49
|
zod_1.z.literal("text"),
|
|
48
50
|
]),
|
|
49
51
|
itemId: zod_1.z.string().optional(),
|