rategame-shared 1.1.214 → 1.1.215

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.
@@ -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
  }>;
@@ -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;
@@ -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(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.214",
3
+ "version": "1.1.215",
4
4
  "description": "This package contains shared resources for the Rate Game project.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",