rategame-shared 1.1.366 → 1.1.367
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/trivia.d.ts
CHANGED
|
@@ -1179,7 +1179,6 @@ export declare const triviaSchema: z.ZodObject<{
|
|
|
1179
1179
|
}>;
|
|
1180
1180
|
createdAt: z.ZodNumber;
|
|
1181
1181
|
userLikes: z.ZodOptional<z.ZodNumber>;
|
|
1182
|
-
commentCount: z.ZodOptional<z.ZodNumber>;
|
|
1183
1182
|
}, "strip", z.ZodTypeAny, {
|
|
1184
1183
|
type: "league" | "stadium" | "team";
|
|
1185
1184
|
id: string;
|
|
@@ -1198,7 +1197,6 @@ export declare const triviaSchema: z.ZodObject<{
|
|
|
1198
1197
|
teamId?: string | undefined;
|
|
1199
1198
|
userLikes?: number | undefined;
|
|
1200
1199
|
imageUrl?: string | null | undefined;
|
|
1201
|
-
commentCount?: number | undefined;
|
|
1202
1200
|
}, {
|
|
1203
1201
|
type: "league" | "stadium" | "team";
|
|
1204
1202
|
id: string;
|
|
@@ -1217,7 +1215,6 @@ export declare const triviaSchema: z.ZodObject<{
|
|
|
1217
1215
|
teamId?: string | undefined;
|
|
1218
1216
|
userLikes?: number | undefined;
|
|
1219
1217
|
imageUrl?: string | null | undefined;
|
|
1220
|
-
commentCount?: number | undefined;
|
|
1221
1218
|
}>;
|
|
1222
1219
|
/**
|
|
1223
1220
|
* Schema for creating a new trivia - id and createdAt are generated by the backend.
|
|
@@ -2367,6 +2364,7 @@ export declare const searchTriviaSchema: z.ZodObject<{
|
|
|
2367
2364
|
teamId: z.ZodOptional<z.ZodString>;
|
|
2368
2365
|
league: z.ZodOptional<z.ZodString>;
|
|
2369
2366
|
stadiumId: z.ZodOptional<z.ZodString>;
|
|
2367
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
2370
2368
|
limit: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
2371
2369
|
offset: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
2372
2370
|
sortBy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"createdAt:desc">, z.ZodLiteral<"userLikes:desc">]>>;
|
|
@@ -2378,6 +2376,7 @@ export declare const searchTriviaSchema: z.ZodObject<{
|
|
|
2378
2376
|
stadiumId?: string | undefined;
|
|
2379
2377
|
teamId?: string | undefined;
|
|
2380
2378
|
sortBy?: "createdAt:desc" | "userLikes:desc" | undefined;
|
|
2379
|
+
userId?: string | undefined;
|
|
2381
2380
|
}, {
|
|
2382
2381
|
type?: "league" | "stadium" | "team" | undefined;
|
|
2383
2382
|
offset?: string | undefined;
|
|
@@ -2386,6 +2385,7 @@ export declare const searchTriviaSchema: z.ZodObject<{
|
|
|
2386
2385
|
stadiumId?: string | undefined;
|
|
2387
2386
|
teamId?: string | undefined;
|
|
2388
2387
|
sortBy?: "createdAt:desc" | "userLikes:desc" | undefined;
|
|
2388
|
+
userId?: string | undefined;
|
|
2389
2389
|
}>;
|
|
2390
2390
|
/**
|
|
2391
2391
|
* Thread comment schema for trivia
|
package/dist/schemas/trivia.js
CHANGED
|
@@ -51,7 +51,6 @@ exports.triviaSchema = zod_1.z.object({
|
|
|
51
51
|
createdAt: zod_1.z.number(),
|
|
52
52
|
// Engagement
|
|
53
53
|
userLikes: zod_1.z.number().optional(),
|
|
54
|
-
commentCount: zod_1.z.number().optional(),
|
|
55
54
|
});
|
|
56
55
|
/**
|
|
57
56
|
* Schema for creating a new trivia - id and createdAt are generated by the backend.
|
|
@@ -74,6 +73,7 @@ exports.searchTriviaSchema = zod_1.z.object({
|
|
|
74
73
|
teamId: zod_1.z.string().optional(),
|
|
75
74
|
league: zod_1.z.string().optional(),
|
|
76
75
|
stadiumId: zod_1.z.string().optional(),
|
|
76
|
+
userId: zod_1.z.string().optional(),
|
|
77
77
|
limit: zod_1.z.string().optional().default("20"),
|
|
78
78
|
offset: zod_1.z.string().optional().default("0"),
|
|
79
79
|
sortBy: zod_1.z
|