rategame-shared 1.1.214 → 1.1.216
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/rating.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { createAgreeRatingSchema, createRatingSchema, profileRatingStatsSchema, ratingLikeSchema, ratingSchema, roundStatsSchema, searchRatingSchema, seasonGroupStatsSchema, seasonStatsSchema, seriesStatsSchema, threadCommentLikeSchema, threadCommentSchema } from "../schemas/rating";
|
|
2
|
+
import { createAgreeRatingSchema, createRatingSchema, profileRatingStatsSchema, ratingCategorySchema, ratingLikeSchema, ratingSchema, roundStatsSchema, searchRatingSchema, seasonGroupStatsSchema, seasonStatsSchema, seriesStatsSchema, threadCommentLikeSchema, threadCommentSchema } from "../schemas/rating";
|
|
3
3
|
import { seasonGroupingSchema } from "../schemas/sharedTypes";
|
|
4
4
|
export type Rating = z.infer<typeof ratingSchema>;
|
|
5
|
+
export type RatingCategory = z.infer<typeof ratingCategorySchema>;
|
|
5
6
|
export type ProfileRatingStats = z.infer<typeof profileRatingStatsSchema>;
|
|
6
7
|
export type SeasonStats = z.infer<typeof seasonStatsSchema>;
|
|
7
8
|
export type SeasonGrouping = z.infer<typeof seasonGroupingSchema>;
|
|
@@ -259,6 +259,7 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
259
259
|
listCount: z.ZodOptional<z.ZodNumber>;
|
|
260
260
|
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
261
261
|
edited: z.ZodOptional<z.ZodBoolean>;
|
|
262
|
+
category: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"watched">, z.ZodLiteral<"attended">, z.ZodLiteral<"highlights">]>>;
|
|
262
263
|
}, "strip", z.ZodTypeAny, {
|
|
263
264
|
id: string;
|
|
264
265
|
user: {
|
|
@@ -324,6 +325,7 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
324
325
|
weight?: number | undefined;
|
|
325
326
|
fanCategory?: "homeTeam" | "awayTeam" | "winningTeam" | "losingTeam" | "neutral" | undefined;
|
|
326
327
|
edited?: boolean | undefined;
|
|
328
|
+
category?: "watched" | "attended" | "highlights" | undefined;
|
|
327
329
|
}, {
|
|
328
330
|
id: string;
|
|
329
331
|
user: {
|
|
@@ -389,11 +391,13 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
389
391
|
weight?: number | undefined;
|
|
390
392
|
fanCategory?: "homeTeam" | "awayTeam" | "winningTeam" | "losingTeam" | "neutral" | undefined;
|
|
391
393
|
edited?: boolean | undefined;
|
|
394
|
+
category?: "watched" | "attended" | "highlights" | undefined;
|
|
392
395
|
}>>;
|
|
393
396
|
}, "strip", z.ZodTypeAny, {
|
|
394
397
|
id: string;
|
|
395
398
|
source: string;
|
|
396
399
|
text: string;
|
|
400
|
+
category: string;
|
|
397
401
|
userId: string;
|
|
398
402
|
initiator: {
|
|
399
403
|
id: string;
|
|
@@ -402,7 +406,6 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
402
406
|
avatarUrl?: string | undefined;
|
|
403
407
|
badge?: string | undefined;
|
|
404
408
|
};
|
|
405
|
-
category: string;
|
|
406
409
|
link?: string | undefined;
|
|
407
410
|
data?: any;
|
|
408
411
|
createdAt?: any;
|
|
@@ -471,12 +474,14 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
471
474
|
weight?: number | undefined;
|
|
472
475
|
fanCategory?: "homeTeam" | "awayTeam" | "winningTeam" | "losingTeam" | "neutral" | undefined;
|
|
473
476
|
edited?: boolean | undefined;
|
|
477
|
+
category?: "watched" | "attended" | "highlights" | undefined;
|
|
474
478
|
} | undefined;
|
|
475
479
|
linkText?: string | undefined;
|
|
476
480
|
}, {
|
|
477
481
|
id: string;
|
|
478
482
|
source: string;
|
|
479
483
|
text: string;
|
|
484
|
+
category: string;
|
|
480
485
|
userId: string;
|
|
481
486
|
initiator: {
|
|
482
487
|
id: string;
|
|
@@ -485,7 +490,6 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
485
490
|
avatarUrl?: string | undefined;
|
|
486
491
|
badge?: string | undefined;
|
|
487
492
|
};
|
|
488
|
-
category: string;
|
|
489
493
|
link?: string | undefined;
|
|
490
494
|
data?: any;
|
|
491
495
|
createdAt?: any;
|
|
@@ -554,6 +558,7 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
554
558
|
weight?: number | undefined;
|
|
555
559
|
fanCategory?: "homeTeam" | "awayTeam" | "winningTeam" | "losingTeam" | "neutral" | undefined;
|
|
556
560
|
edited?: boolean | undefined;
|
|
561
|
+
category?: "watched" | "attended" | "highlights" | undefined;
|
|
557
562
|
} | undefined;
|
|
558
563
|
linkText?: string | undefined;
|
|
559
564
|
}>;
|
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare const ratingCategorySchema: import("zod").ZodUnion<[import("zod").ZodLiteral<"watched">, import("zod").ZodLiteral<"attended">, import("zod").ZodLiteral<"highlights">]>;
|
|
1
2
|
export declare const ratingSchema: import("zod").ZodObject<{
|
|
2
3
|
id: import("zod").ZodString;
|
|
3
4
|
createdAt: import("zod").ZodNumber;
|
|
@@ -229,6 +230,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
229
230
|
listCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
230
231
|
updatedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
231
232
|
edited: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
233
|
+
category: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"watched">, import("zod").ZodLiteral<"attended">, import("zod").ZodLiteral<"highlights">]>>;
|
|
232
234
|
}, "strip", import("zod").ZodTypeAny, {
|
|
233
235
|
id: string;
|
|
234
236
|
user: {
|
|
@@ -294,6 +296,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
294
296
|
weight?: number | undefined;
|
|
295
297
|
fanCategory?: "homeTeam" | "awayTeam" | "winningTeam" | "losingTeam" | "neutral" | undefined;
|
|
296
298
|
edited?: boolean | undefined;
|
|
299
|
+
category?: "watched" | "attended" | "highlights" | undefined;
|
|
297
300
|
}, {
|
|
298
301
|
id: string;
|
|
299
302
|
user: {
|
|
@@ -359,6 +362,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
359
362
|
weight?: number | undefined;
|
|
360
363
|
fanCategory?: "homeTeam" | "awayTeam" | "winningTeam" | "losingTeam" | "neutral" | undefined;
|
|
361
364
|
edited?: boolean | undefined;
|
|
365
|
+
category?: "watched" | "attended" | "highlights" | undefined;
|
|
362
366
|
}>;
|
|
363
367
|
export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
364
368
|
q: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -712,6 +716,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
712
716
|
listCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
713
717
|
updatedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
714
718
|
edited: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
719
|
+
category: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"watched">, import("zod").ZodLiteral<"attended">, import("zod").ZodLiteral<"highlights">]>>;
|
|
715
720
|
}, "id" | "user" | "createdAt">, {
|
|
716
721
|
game: import("zod").ZodObject<Omit<{
|
|
717
722
|
id: import("zod").ZodString;
|
|
@@ -871,6 +876,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
871
876
|
weight?: number | undefined;
|
|
872
877
|
fanCategory?: "homeTeam" | "awayTeam" | "winningTeam" | "losingTeam" | "neutral" | undefined;
|
|
873
878
|
edited?: boolean | undefined;
|
|
879
|
+
category?: "watched" | "attended" | "highlights" | undefined;
|
|
874
880
|
}, {
|
|
875
881
|
rating: number;
|
|
876
882
|
game: {
|
|
@@ -895,6 +901,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
895
901
|
weight?: number | undefined;
|
|
896
902
|
fanCategory?: "homeTeam" | "awayTeam" | "winningTeam" | "losingTeam" | "neutral" | undefined;
|
|
897
903
|
edited?: boolean | undefined;
|
|
904
|
+
category?: "watched" | "attended" | "highlights" | undefined;
|
|
898
905
|
}>;
|
|
899
906
|
export declare const threadCommentSchema: import("zod").ZodObject<{
|
|
900
907
|
id: import("zod").ZodString;
|
|
@@ -2657,12 +2664,15 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
|
|
|
2657
2664
|
authorGameRating: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
2658
2665
|
id: import("zod").ZodString;
|
|
2659
2666
|
value: import("zod").ZodNumber;
|
|
2667
|
+
category: import("zod").ZodUnion<[import("zod").ZodLiteral<"watched">, import("zod").ZodLiteral<"attended">, import("zod").ZodLiteral<"highlights">]>;
|
|
2660
2668
|
}, "strip", import("zod").ZodTypeAny, {
|
|
2661
2669
|
id: string;
|
|
2662
2670
|
value: number;
|
|
2671
|
+
category: "watched" | "attended" | "highlights";
|
|
2663
2672
|
}, {
|
|
2664
2673
|
id: string;
|
|
2665
2674
|
value: number;
|
|
2675
|
+
category: "watched" | "attended" | "highlights";
|
|
2666
2676
|
}>>>;
|
|
2667
2677
|
gameId: import("zod").ZodString;
|
|
2668
2678
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -2691,6 +2701,7 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
|
|
|
2691
2701
|
authorGameRating?: {
|
|
2692
2702
|
id: string;
|
|
2693
2703
|
value: number;
|
|
2704
|
+
category: "watched" | "attended" | "highlights";
|
|
2694
2705
|
} | null | undefined;
|
|
2695
2706
|
}, {
|
|
2696
2707
|
id: string;
|
|
@@ -2718,6 +2729,7 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
|
|
|
2718
2729
|
authorGameRating?: {
|
|
2719
2730
|
id: string;
|
|
2720
2731
|
value: number;
|
|
2732
|
+
category: "watched" | "attended" | "highlights";
|
|
2721
2733
|
} | null | undefined;
|
|
2722
2734
|
}>;
|
|
2723
2735
|
export declare const threadCommentLikeSchema: import("zod").ZodObject<{
|
package/dist/schemas/rating.js
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.seriesStatsSchema = exports.roundStatsSchema = exports.seasonGroupStatsSchema = exports.seasonStatsSchema = exports.profileRatingStatsSchema = exports.threadCommentLikeSchema = exports.threadCommentSchema = exports.createRatingSchema = exports.createAgreeRatingSchema = exports.ratingLikeSchema = exports.searchRatingSchema = exports.ratingSchema = void 0;
|
|
3
|
+
exports.seriesStatsSchema = exports.roundStatsSchema = exports.seasonGroupStatsSchema = exports.seasonStatsSchema = exports.profileRatingStatsSchema = exports.threadCommentLikeSchema = exports.threadCommentSchema = exports.createRatingSchema = exports.createAgreeRatingSchema = exports.ratingLikeSchema = exports.searchRatingSchema = exports.ratingSchema = exports.ratingCategorySchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const game_1 = require("./game");
|
|
6
6
|
const user_1 = require("./user");
|
|
7
7
|
const sharedTypes_1 = require("./sharedTypes");
|
|
8
|
+
exports.ratingCategorySchema = (0, zod_1.union)([
|
|
9
|
+
(0, zod_1.literal)("watched"),
|
|
10
|
+
(0, zod_1.literal)("attended"),
|
|
11
|
+
(0, zod_1.literal)("highlights"),
|
|
12
|
+
]);
|
|
8
13
|
exports.ratingSchema = (0, zod_1.object)({
|
|
9
14
|
id: (0, zod_1.string)(),
|
|
10
15
|
createdAt: (0, zod_1.number)(),
|
|
@@ -43,6 +48,7 @@ exports.ratingSchema = (0, zod_1.object)({
|
|
|
43
48
|
listCount: (0, zod_1.number)().optional(),
|
|
44
49
|
updatedAt: (0, zod_1.number)().optional(),
|
|
45
50
|
edited: (0, zod_1.boolean)().optional(),
|
|
51
|
+
category: exports.ratingCategorySchema.optional(),
|
|
46
52
|
});
|
|
47
53
|
exports.searchRatingSchema = (0, zod_1.object)({
|
|
48
54
|
q: (0, zod_1.string)().optional(),
|
|
@@ -116,6 +122,7 @@ exports.threadCommentSchema = (0, zod_1.object)({
|
|
|
116
122
|
authorGameRating: (0, zod_1.object)({
|
|
117
123
|
id: (0, zod_1.string)(),
|
|
118
124
|
value: (0, zod_1.number)(),
|
|
125
|
+
category: exports.ratingCategorySchema,
|
|
119
126
|
})
|
|
120
127
|
.nullable()
|
|
121
128
|
.optional(),
|