rategame-shared 1.1.440 → 1.1.441
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
|
@@ -91,6 +91,7 @@ export declare const triviaContentEntitySchema: z.ZodObject<{
|
|
|
91
91
|
export declare const triviaSchema: z.ZodObject<{
|
|
92
92
|
id: z.ZodString;
|
|
93
93
|
title: z.ZodString;
|
|
94
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
94
95
|
description: z.ZodString;
|
|
95
96
|
imageUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
96
97
|
imageUrlMedium: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -1319,6 +1320,7 @@ export declare const triviaSchema: z.ZodObject<{
|
|
|
1319
1320
|
userLikes?: number | undefined;
|
|
1320
1321
|
gameId?: string | undefined;
|
|
1321
1322
|
imageUrl?: string | null | undefined;
|
|
1323
|
+
slug?: string | undefined;
|
|
1322
1324
|
imageUrlMedium?: string | null | undefined;
|
|
1323
1325
|
imageUrlSmall?: string | null | undefined;
|
|
1324
1326
|
stadiumLeagues?: string[] | undefined;
|
|
@@ -1350,6 +1352,7 @@ export declare const triviaSchema: z.ZodObject<{
|
|
|
1350
1352
|
userLikes?: number | undefined;
|
|
1351
1353
|
gameId?: string | undefined;
|
|
1352
1354
|
imageUrl?: string | null | undefined;
|
|
1355
|
+
slug?: string | undefined;
|
|
1353
1356
|
imageUrlMedium?: string | null | undefined;
|
|
1354
1357
|
imageUrlSmall?: string | null | undefined;
|
|
1355
1358
|
stadiumLeagues?: string[] | undefined;
|
package/dist/schemas/trivia.js
CHANGED
|
@@ -52,6 +52,11 @@ const thisDayInSportsDateFullSchema = zod_1.z.string().regex(/^\d{4}-\d{2}-\d{2}
|
|
|
52
52
|
exports.triviaSchema = zod_1.z.object({
|
|
53
53
|
id: zod_1.z.string(),
|
|
54
54
|
title: zod_1.z.string().min(1).max(200),
|
|
55
|
+
// URL-safe slug derived from the title on create/update (backend-generated).
|
|
56
|
+
// Used to build friendly SEO routes (`/trivia/{type}/{slug}-{id}`). The id
|
|
57
|
+
// stays the canonical pointer; the slug is decorative and optional so legacy
|
|
58
|
+
// docs without it still resolve.
|
|
59
|
+
slug: zod_1.z.string().optional(),
|
|
55
60
|
description: zod_1.z.string().min(1).max(5000),
|
|
56
61
|
imageUrl: zod_1.z.string().optional().nullable(),
|
|
57
62
|
// Resized WebP variants populated by the `resizeTriviaImage` cloud function.
|