rategame-shared 1.1.547 → 1.1.549
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/models/classics.d.ts +2 -2
- package/dist/schemas/article.d.ts +3 -0
- package/dist/schemas/article.js +3 -0
- package/dist/schemas/classics.d.ts +1 -1
- package/dist/schemas/classics.js +2 -2
- package/dist/schemas/trivia.d.ts +18 -0
- package/dist/schemas/trivia.js +3 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { classicTimelineGameSchema,
|
|
2
|
+
import { classicTimelineGameSchema, classicsTimelineResponseSchema } from "../schemas/classics";
|
|
3
3
|
export type ClassicTimelineGame = z.infer<typeof classicTimelineGameSchema>;
|
|
4
|
-
export type
|
|
4
|
+
export type ClassicsTimelineResponse = z.infer<typeof classicsTimelineResponseSchema>;
|
|
@@ -96,6 +96,7 @@ export declare const articleSchema: z.ZodObject<{
|
|
|
96
96
|
slug: z.ZodString;
|
|
97
97
|
title: z.ZodString;
|
|
98
98
|
body: z.ZodEffects<z.ZodString, string, string>;
|
|
99
|
+
language: z.ZodOptional<z.ZodString>;
|
|
99
100
|
imageUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
100
101
|
imageUrlMedium: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
101
102
|
imageUrlSmall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -1830,6 +1831,7 @@ export declare const articleSchema: z.ZodObject<{
|
|
|
1830
1831
|
};
|
|
1831
1832
|
createdAt: number;
|
|
1832
1833
|
slug: string;
|
|
1834
|
+
language?: string | undefined;
|
|
1833
1835
|
userLikes?: number | undefined;
|
|
1834
1836
|
imageUrl?: string | null | undefined;
|
|
1835
1837
|
imageUrlMedium?: string | null | undefined;
|
|
@@ -1869,6 +1871,7 @@ export declare const articleSchema: z.ZodObject<{
|
|
|
1869
1871
|
};
|
|
1870
1872
|
createdAt: number;
|
|
1871
1873
|
slug: string;
|
|
1874
|
+
language?: string | undefined;
|
|
1872
1875
|
userLikes?: number | undefined;
|
|
1873
1876
|
imageUrl?: string | null | undefined;
|
|
1874
1877
|
imageUrlMedium?: string | null | undefined;
|
package/dist/schemas/article.js
CHANGED
|
@@ -107,6 +107,9 @@ exports.articleSchema = zod_1.z.object({
|
|
|
107
107
|
title: zod_1.z.string().min(1).max(200),
|
|
108
108
|
// Markdown body (GFM). Length is measured on prose, not image URLs.
|
|
109
109
|
body: exports.articleBodySchema,
|
|
110
|
+
// Language detected from `body` on create/update. Hides Translate when it
|
|
111
|
+
// matches the reader's preferred language.
|
|
112
|
+
language: zod_1.z.string().optional(),
|
|
110
113
|
imageUrl: zod_1.z.string().optional().nullable(),
|
|
111
114
|
// Resized WebP variants populated by the `resizeArticleImage` cloud function.
|
|
112
115
|
// Consumers should prefer the smallest variant that still looks crisp and fall
|
|
@@ -4614,7 +4614,7 @@ export declare const classicTimelineGameSchema: z.ZodObject<Pick<{
|
|
|
4614
4614
|
league?: string | undefined;
|
|
4615
4615
|
roundName?: string | undefined;
|
|
4616
4616
|
}>;
|
|
4617
|
-
export declare const
|
|
4617
|
+
export declare const classicsTimelineResponseSchema: z.ZodObject<{
|
|
4618
4618
|
games: z.ZodArray<z.ZodObject<Pick<{
|
|
4619
4619
|
id: z.ZodOptional<z.ZodString>;
|
|
4620
4620
|
status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">, z.ZodLiteral<"postponed">, z.ZodLiteral<"canceled">]>;
|
package/dist/schemas/classics.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.classicsTimelineResponseSchema = exports.classicTimelineGameSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const game_1 = require("./game");
|
|
6
6
|
exports.classicTimelineGameSchema = game_1.commonGameSchema
|
|
@@ -10,7 +10,7 @@ exports.classicTimelineGameSchema = game_1.commonGameSchema
|
|
|
10
10
|
homeTeam: game_1.gameTeamSchema.pick({ name: true }),
|
|
11
11
|
awayTeam: game_1.gameTeamSchema.pick({ name: true }),
|
|
12
12
|
});
|
|
13
|
-
exports.
|
|
13
|
+
exports.classicsTimelineResponseSchema = zod_1.z.object({
|
|
14
14
|
games: zod_1.z.array(exports.classicTimelineGameSchema),
|
|
15
15
|
expiresAt: zod_1.z.number(),
|
|
16
16
|
});
|
package/dist/schemas/trivia.d.ts
CHANGED
|
@@ -96,6 +96,7 @@ export declare const triviaSchema: z.ZodObject<{
|
|
|
96
96
|
title: z.ZodString;
|
|
97
97
|
slug: z.ZodOptional<z.ZodString>;
|
|
98
98
|
description: z.ZodString;
|
|
99
|
+
language: z.ZodOptional<z.ZodString>;
|
|
99
100
|
imageUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
100
101
|
imageUrlMedium: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
101
102
|
imageUrlSmall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -130,6 +131,9 @@ export declare const triviaSchema: z.ZodObject<{
|
|
|
130
131
|
birthday: z.ZodOptional<z.ZodNumber>;
|
|
131
132
|
birthdayTimeZone: z.ZodOptional<z.ZodString>;
|
|
132
133
|
location: z.ZodOptional<z.ZodString>;
|
|
134
|
+
/**
|
|
135
|
+
* Thread comment schema for trivia
|
|
136
|
+
*/
|
|
133
137
|
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
134
138
|
createdAt: z.ZodNumber;
|
|
135
139
|
updatedAt: z.ZodNumber;
|
|
@@ -1796,6 +1800,7 @@ export declare const triviaSchema: z.ZodObject<{
|
|
|
1796
1800
|
badge?: string | undefined;
|
|
1797
1801
|
};
|
|
1798
1802
|
createdAt: number;
|
|
1803
|
+
language?: string | undefined;
|
|
1799
1804
|
league?: string | undefined;
|
|
1800
1805
|
gameId?: string | undefined;
|
|
1801
1806
|
stadiumId?: string | undefined;
|
|
@@ -1829,6 +1834,7 @@ export declare const triviaSchema: z.ZodObject<{
|
|
|
1829
1834
|
badge?: string | undefined;
|
|
1830
1835
|
};
|
|
1831
1836
|
createdAt: number;
|
|
1837
|
+
language?: string | undefined;
|
|
1832
1838
|
league?: string | undefined;
|
|
1833
1839
|
gameId?: string | undefined;
|
|
1834
1840
|
stadiumId?: string | undefined;
|
|
@@ -1895,6 +1901,9 @@ export declare const createTriviaSchema: z.ZodObject<{
|
|
|
1895
1901
|
birthday: z.ZodOptional<z.ZodNumber>;
|
|
1896
1902
|
birthdayTimeZone: z.ZodOptional<z.ZodString>;
|
|
1897
1903
|
location: z.ZodOptional<z.ZodString>;
|
|
1904
|
+
/**
|
|
1905
|
+
* Thread comment schema for trivia
|
|
1906
|
+
*/
|
|
1898
1907
|
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1899
1908
|
createdAt: z.ZodNumber;
|
|
1900
1909
|
updatedAt: z.ZodNumber;
|
|
@@ -3678,6 +3687,9 @@ export declare const triviaThreadCommentSchema: z.ZodObject<{
|
|
|
3678
3687
|
birthday: z.ZodOptional<z.ZodNumber>;
|
|
3679
3688
|
birthdayTimeZone: z.ZodOptional<z.ZodString>;
|
|
3680
3689
|
location: z.ZodOptional<z.ZodString>;
|
|
3690
|
+
/**
|
|
3691
|
+
* Thread comment schema for trivia
|
|
3692
|
+
*/
|
|
3681
3693
|
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3682
3694
|
createdAt: z.ZodNumber;
|
|
3683
3695
|
updatedAt: z.ZodNumber;
|
|
@@ -5339,6 +5351,9 @@ export declare const triviaThreadCommentSchema: z.ZodObject<{
|
|
|
5339
5351
|
birthday: z.ZodOptional<z.ZodNumber>;
|
|
5340
5352
|
birthdayTimeZone: z.ZodOptional<z.ZodString>;
|
|
5341
5353
|
location: z.ZodOptional<z.ZodString>;
|
|
5354
|
+
/**
|
|
5355
|
+
* Thread comment schema for trivia
|
|
5356
|
+
*/
|
|
5342
5357
|
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5343
5358
|
createdAt: z.ZodNumber;
|
|
5344
5359
|
updatedAt: z.ZodNumber;
|
|
@@ -7052,6 +7067,9 @@ export declare const triviaThreadCommentLikeSchema: z.ZodObject<{
|
|
|
7052
7067
|
birthday: z.ZodOptional<z.ZodNumber>;
|
|
7053
7068
|
birthdayTimeZone: z.ZodOptional<z.ZodString>;
|
|
7054
7069
|
location: z.ZodOptional<z.ZodString>;
|
|
7070
|
+
/**
|
|
7071
|
+
* Thread comment schema for trivia
|
|
7072
|
+
*/
|
|
7055
7073
|
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7056
7074
|
createdAt: z.ZodNumber;
|
|
7057
7075
|
updatedAt: z.ZodNumber;
|
package/dist/schemas/trivia.js
CHANGED
|
@@ -68,6 +68,9 @@ exports.triviaSchema = zod_1.z.object({
|
|
|
68
68
|
// docs without it still resolve.
|
|
69
69
|
slug: zod_1.z.string().optional(),
|
|
70
70
|
description: zod_1.z.string().min(1).max(5000),
|
|
71
|
+
// Language detected from `description` on create/update. Hides Translate
|
|
72
|
+
// when it matches the reader's preferred language.
|
|
73
|
+
language: zod_1.z.string().optional(),
|
|
71
74
|
imageUrl: zod_1.z.string().optional().nullable(),
|
|
72
75
|
// Resized WebP variants populated by the `resizeTriviaImage` cloud function.
|
|
73
76
|
// Consumers should prefer the smallest variant that still looks crisp at the
|