rategame-shared 1.1.489 → 1.1.491

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.
@@ -7,5 +7,10 @@ export type RatingTextPart = {
7
7
  isTag: boolean;
8
8
  startOffset: number;
9
9
  };
10
+ export declare function normalizeRatingTag(display: string): string;
11
+ export declare function toStoredRatingTag(tag: string): string;
12
+ export declare function getRatingTagPath(tag: string): string;
13
+ export declare function getStadiumRatingTagPath(stadiumId: string, tag: string): string;
14
+ export declare function getExperienceRatingTagPath(experienceId: string, tag: string): string;
10
15
  export declare function extractRatingTags(text: string): ExtractedRatingTag[];
11
16
  export declare function parseRatingTextWithTags(text: string): RatingTextPart[];
@@ -1,10 +1,28 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseRatingTextWithTags = exports.extractRatingTags = void 0;
3
+ exports.parseRatingTextWithTags = exports.extractRatingTags = exports.getExperienceRatingTagPath = exports.getStadiumRatingTagPath = exports.getRatingTagPath = exports.toStoredRatingTag = exports.normalizeRatingTag = void 0;
4
4
  const RATING_TAG_PATTERN = /(?:^|\s)(#[\p{L}\p{N}]+)/gu;
5
5
  function normalizeRatingTag(display) {
6
6
  return display.normalize("NFKC").toLowerCase();
7
7
  }
8
+ exports.normalizeRatingTag = normalizeRatingTag;
9
+ function toStoredRatingTag(tag) {
10
+ const withHash = tag.startsWith("#") ? tag : `#${tag}`;
11
+ return normalizeRatingTag(withHash);
12
+ }
13
+ exports.toStoredRatingTag = toStoredRatingTag;
14
+ function getRatingTagPath(tag) {
15
+ return `/ratings/tag/${encodeURIComponent(toStoredRatingTag(tag).slice(1))}`;
16
+ }
17
+ exports.getRatingTagPath = getRatingTagPath;
18
+ function getStadiumRatingTagPath(stadiumId, tag) {
19
+ return `/stadiums/${stadiumId}/tag/${encodeURIComponent(toStoredRatingTag(tag).slice(1))}`;
20
+ }
21
+ exports.getStadiumRatingTagPath = getStadiumRatingTagPath;
22
+ function getExperienceRatingTagPath(experienceId, tag) {
23
+ return `/experiences/${experienceId}/tag/${encodeURIComponent(toStoredRatingTag(tag).slice(1))}`;
24
+ }
25
+ exports.getExperienceRatingTagPath = getExperienceRatingTagPath;
8
26
  function getRatingTagMatches(text) {
9
27
  const matches = [];
10
28
  const regex = new RegExp(RATING_TAG_PATTERN.source, RATING_TAG_PATTERN.flags);
@@ -37,6 +37,16 @@ export declare const experienceSchema: z.ZodObject<{
37
37
  options: Record<number, number>;
38
38
  };
39
39
  }>>;
40
+ ratingTagCounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
41
+ count: z.ZodNumber;
42
+ display: z.ZodString;
43
+ }, "strip", z.ZodTypeAny, {
44
+ display: string;
45
+ count: number;
46
+ }, {
47
+ display: string;
48
+ count: number;
49
+ }>>>;
40
50
  createdAt: z.ZodNumber;
41
51
  happenedAt: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
42
52
  }, "strip", z.ZodTypeAny, {
@@ -53,6 +63,10 @@ export declare const experienceSchema: z.ZodObject<{
53
63
  };
54
64
  } | undefined;
55
65
  stadiumUrl?: string | null | undefined;
66
+ ratingTagCounts?: Record<string, {
67
+ display: string;
68
+ count: number;
69
+ }> | undefined;
56
70
  stadiumId?: string | null | undefined;
57
71
  gameId?: string | null | undefined;
58
72
  stadiumVenueName?: string | null | undefined;
@@ -71,6 +85,10 @@ export declare const experienceSchema: z.ZodObject<{
71
85
  };
72
86
  } | undefined;
73
87
  stadiumUrl?: string | null | undefined;
88
+ ratingTagCounts?: Record<string, {
89
+ display: string;
90
+ count: number;
91
+ }> | undefined;
74
92
  stadiumId?: string | null | undefined;
75
93
  gameId?: string | null | undefined;
76
94
  stadiumVenueName?: string | null | undefined;
@@ -110,9 +128,19 @@ export declare const experienceForRatingSchema: z.ZodObject<Omit<{
110
128
  options: Record<number, number>;
111
129
  };
112
130
  }>>;
131
+ ratingTagCounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
132
+ count: z.ZodNumber;
133
+ display: z.ZodString;
134
+ }, "strip", z.ZodTypeAny, {
135
+ display: string;
136
+ count: number;
137
+ }, {
138
+ display: string;
139
+ count: number;
140
+ }>>>;
113
141
  createdAt: z.ZodNumber;
114
142
  happenedAt: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
115
- }, "rating">, "strip", z.ZodTypeAny, {
143
+ }, "rating" | "ratingTagCounts">, "strip", z.ZodTypeAny, {
116
144
  id: string;
117
145
  name: string;
118
146
  description: string;
@@ -1800,6 +1828,16 @@ export declare const experienceRatingSchema: z.ZodObject<{
1800
1828
  options: Record<number, number>;
1801
1829
  };
1802
1830
  }>>;
1831
+ ratingTagCounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1832
+ count: z.ZodNumber;
1833
+ display: z.ZodString;
1834
+ }, "strip", z.ZodTypeAny, {
1835
+ display: string;
1836
+ count: number;
1837
+ }, {
1838
+ display: string;
1839
+ count: number;
1840
+ }>>>;
1803
1841
  createdAt: z.ZodNumber;
1804
1842
  happenedAt: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1805
1843
  }, "strip", z.ZodTypeAny, {
@@ -1816,6 +1854,10 @@ export declare const experienceRatingSchema: z.ZodObject<{
1816
1854
  };
1817
1855
  } | undefined;
1818
1856
  stadiumUrl?: string | null | undefined;
1857
+ ratingTagCounts?: Record<string, {
1858
+ display: string;
1859
+ count: number;
1860
+ }> | undefined;
1819
1861
  stadiumId?: string | null | undefined;
1820
1862
  gameId?: string | null | undefined;
1821
1863
  stadiumVenueName?: string | null | undefined;
@@ -1834,6 +1876,10 @@ export declare const experienceRatingSchema: z.ZodObject<{
1834
1876
  };
1835
1877
  } | undefined;
1836
1878
  stadiumUrl?: string | null | undefined;
1879
+ ratingTagCounts?: Record<string, {
1880
+ display: string;
1881
+ count: number;
1882
+ }> | undefined;
1837
1883
  stadiumId?: string | null | undefined;
1838
1884
  gameId?: string | null | undefined;
1839
1885
  stadiumVenueName?: string | null | undefined;
@@ -1886,6 +1932,7 @@ export declare const experienceRatingSchema: z.ZodObject<{
1886
1932
  ratingCount?: number | undefined;
1887
1933
  };
1888
1934
  }>, "many">>;
1935
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1889
1936
  }, "strip", z.ZodTypeAny, {
1890
1937
  id: string;
1891
1938
  user: {
@@ -1911,6 +1958,10 @@ export declare const experienceRatingSchema: z.ZodObject<{
1911
1958
  };
1912
1959
  } | undefined;
1913
1960
  stadiumUrl?: string | null | undefined;
1961
+ ratingTagCounts?: Record<string, {
1962
+ display: string;
1963
+ count: number;
1964
+ }> | undefined;
1914
1965
  stadiumId?: string | null | undefined;
1915
1966
  gameId?: string | null | undefined;
1916
1967
  stadiumVenueName?: string | null | undefined;
@@ -1933,6 +1984,7 @@ export declare const experienceRatingSchema: z.ZodObject<{
1933
1984
  };
1934
1985
  }[] | undefined;
1935
1986
  commentLanguage?: string | undefined;
1987
+ tags?: string[] | undefined;
1936
1988
  }, {
1937
1989
  id: string;
1938
1990
  user: {
@@ -1958,6 +2010,10 @@ export declare const experienceRatingSchema: z.ZodObject<{
1958
2010
  };
1959
2011
  } | undefined;
1960
2012
  stadiumUrl?: string | null | undefined;
2013
+ ratingTagCounts?: Record<string, {
2014
+ display: string;
2015
+ count: number;
2016
+ }> | undefined;
1961
2017
  stadiumId?: string | null | undefined;
1962
2018
  gameId?: string | null | undefined;
1963
2019
  stadiumVenueName?: string | null | undefined;
@@ -1980,6 +2036,7 @@ export declare const experienceRatingSchema: z.ZodObject<{
1980
2036
  };
1981
2037
  }[] | undefined;
1982
2038
  commentLanguage?: string | undefined;
2039
+ tags?: string[] | undefined;
1983
2040
  }>;
1984
2041
  /**
1985
2042
  * Search/filter parameters for experience ratings
@@ -1997,6 +2054,7 @@ export declare const searchExperienceRatingSchema: z.ZodObject<{
1997
2054
  ratingMax: z.ZodOptional<z.ZodString>;
1998
2055
  customDateFrom: z.ZodOptional<z.ZodString>;
1999
2056
  customDateTo: z.ZodOptional<z.ZodString>;
2057
+ tag: z.ZodOptional<z.ZodString>;
2000
2058
  }, "strip", z.ZodTypeAny, {
2001
2059
  offset?: string | undefined;
2002
2060
  q?: string | undefined;
@@ -2009,6 +2067,7 @@ export declare const searchExperienceRatingSchema: z.ZodObject<{
2009
2067
  ratingMin?: string | undefined;
2010
2068
  ratingMax?: string | undefined;
2011
2069
  showEmptyRatings?: string | undefined;
2070
+ tag?: string | undefined;
2012
2071
  onlyUserRatings?: string | undefined;
2013
2072
  }, {
2014
2073
  offset?: string | undefined;
@@ -2022,6 +2081,7 @@ export declare const searchExperienceRatingSchema: z.ZodObject<{
2022
2081
  ratingMin?: string | undefined;
2023
2082
  ratingMax?: string | undefined;
2024
2083
  showEmptyRatings?: string | undefined;
2084
+ tag?: string | undefined;
2025
2085
  onlyUserRatings?: string | undefined;
2026
2086
  }>;
2027
2087
  /**
@@ -3735,9 +3795,19 @@ export declare const createExperienceRatingSchema: z.ZodObject<{
3735
3795
  options: Record<number, number>;
3736
3796
  };
3737
3797
  }>>;
3798
+ ratingTagCounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3799
+ count: z.ZodNumber;
3800
+ display: z.ZodString;
3801
+ }, "strip", z.ZodTypeAny, {
3802
+ display: string;
3803
+ count: number;
3804
+ }, {
3805
+ display: string;
3806
+ count: number;
3807
+ }>>>;
3738
3808
  createdAt: z.ZodNumber;
3739
3809
  happenedAt: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
3740
- }, "rating">, "strip", z.ZodTypeAny, {
3810
+ }, "rating" | "ratingTagCounts">, "strip", z.ZodTypeAny, {
3741
3811
  id: string;
3742
3812
  name: string;
3743
3813
  description: string;
@@ -6,6 +6,7 @@ const sharedTypes_1 = require("./sharedTypes");
6
6
  const user_1 = require("./user");
7
7
  const stadium_1 = require("./stadium");
8
8
  const rating_1 = require("./rating");
9
+ const game_1 = require("./game");
9
10
  /**
10
11
  * Experience document schema
11
12
  * Represents a limited-time event that users can rate (e.g., Super Bowl Halftime)
@@ -21,12 +22,14 @@ exports.experienceSchema = zod_1.z.object({
21
22
  stadiumVenueName: zod_1.z.string().optional().nullable(),
22
23
  stadiumUrl: zod_1.z.string().optional().nullable(),
23
24
  rating: stadium_1.stadiumRatingAggregateSchema.optional(),
25
+ ratingTagCounts: game_1.ratingTagCountsSchema.optional(),
24
26
  createdAt: zod_1.z.number(),
25
27
  happenedAt: zod_1.z.number().optional().nullable(),
26
28
  });
27
29
  // Simplified experience schema for rating creation (excludes rating aggregate data)
28
30
  exports.experienceForRatingSchema = exports.experienceSchema.omit({
29
31
  rating: true,
32
+ ratingTagCounts: true,
30
33
  });
31
34
  /**
32
35
  * Experience Rating schema
@@ -45,6 +48,7 @@ exports.experienceRatingSchema = zod_1.z.object({
45
48
  edited: zod_1.z.boolean().optional(),
46
49
  userLocation: zod_1.z.string().optional().nullable(),
47
50
  events: zod_1.z.array(rating_1.ratingMiniEventSchema).optional(),
51
+ tags: zod_1.z.array(zod_1.z.string()).optional(),
48
52
  });
49
53
  /**
50
54
  * Search/filter parameters for experience ratings
@@ -62,6 +66,7 @@ exports.searchExperienceRatingSchema = zod_1.z.object({
62
66
  ratingMax: zod_1.z.string().optional(),
63
67
  customDateFrom: zod_1.z.string().optional(),
64
68
  customDateTo: zod_1.z.string().optional(),
69
+ tag: zod_1.z.string().optional(),
65
70
  });
66
71
  /**
67
72
  * Schema for creating a new experience rating
@@ -69,6 +74,7 @@ exports.searchExperienceRatingSchema = zod_1.z.object({
69
74
  exports.createExperienceRatingSchema = exports.experienceRatingSchema
70
75
  .omit({
71
76
  createdAt: true,
77
+ tags: true,
72
78
  })
73
79
  .extend({
74
80
  experience: exports.experienceForRatingSchema,
@@ -850,6 +850,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
850
850
  seasonGroup: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"combined">, import("zod").ZodLiteral<"regularSeason">, import("zod").ZodLiteral<"playoffs">]>>;
851
851
  teamIds: import("zod").ZodOptional<import("zod").ZodString>;
852
852
  multiTeamSearch: import("zod").ZodOptional<import("zod").ZodString>;
853
+ tag: import("zod").ZodOptional<import("zod").ZodString>;
853
854
  }, "strip", import("zod").ZodTypeAny, {
854
855
  offset?: string | undefined;
855
856
  round?: string | undefined;
@@ -880,6 +881,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
880
881
  division?: string | undefined;
881
882
  teamIds?: string | undefined;
882
883
  multiTeamSearch?: string | undefined;
884
+ tag?: string | undefined;
883
885
  }, {
884
886
  offset?: string | undefined;
885
887
  round?: string | undefined;
@@ -910,6 +912,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
910
912
  division?: string | undefined;
911
913
  teamIds?: string | undefined;
912
914
  multiTeamSearch?: string | undefined;
915
+ tag?: string | undefined;
913
916
  }>;
914
917
  export declare const ratingLikeSchema: import("zod").ZodObject<{
915
918
  ratingId: import("zod").ZodString;
@@ -139,6 +139,7 @@ exports.searchRatingSchema = (0, zod_1.object)({
139
139
  seasonGroup: sharedTypes_1.seasonGroupingSchema.optional(),
140
140
  teamIds: (0, zod_1.string)().optional(),
141
141
  multiTeamSearch: (0, zod_1.string)().optional(),
142
+ tag: (0, zod_1.string)().optional(),
142
143
  });
143
144
  exports.ratingLikeSchema = (0, zod_1.object)({
144
145
  ratingId: (0, zod_1.string)(),
@@ -98,6 +98,16 @@ export declare const stadiumSchema: z.ZodObject<{
98
98
  options: Record<number, number>;
99
99
  };
100
100
  }>>;
101
+ ratingTagCounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
102
+ count: z.ZodNumber;
103
+ display: z.ZodString;
104
+ }, "strip", z.ZodTypeAny, {
105
+ display: string;
106
+ count: number;
107
+ }, {
108
+ display: string;
109
+ count: number;
110
+ }>>>;
101
111
  location: z.ZodNullable<z.ZodOptional<z.ZodObject<{
102
112
  geoLat: z.ZodNumber;
103
113
  geoLong: z.ZodNumber;
@@ -138,6 +148,10 @@ export declare const stadiumSchema: z.ZodObject<{
138
148
  options: Record<number, number>;
139
149
  };
140
150
  } | undefined;
151
+ ratingTagCounts?: Record<string, {
152
+ display: string;
153
+ count: number;
154
+ }> | undefined;
141
155
  teamIds?: string[] | undefined;
142
156
  specialEvent?: boolean | undefined;
143
157
  country?: string | null | undefined;
@@ -171,6 +185,10 @@ export declare const stadiumSchema: z.ZodObject<{
171
185
  options: Record<number, number>;
172
186
  };
173
187
  } | undefined;
188
+ ratingTagCounts?: Record<string, {
189
+ display: string;
190
+ count: number;
191
+ }> | undefined;
174
192
  teamIds?: string[] | undefined;
175
193
  specialEvent?: boolean | undefined;
176
194
  country?: string | null | undefined;
@@ -242,6 +260,16 @@ export declare const stadiumForRatingSchema: z.ZodObject<Omit<{
242
260
  options: Record<number, number>;
243
261
  };
244
262
  }>>;
263
+ ratingTagCounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
264
+ count: z.ZodNumber;
265
+ display: z.ZodString;
266
+ }, "strip", z.ZodTypeAny, {
267
+ display: string;
268
+ count: number;
269
+ }, {
270
+ display: string;
271
+ count: number;
272
+ }>>>;
245
273
  location: z.ZodNullable<z.ZodOptional<z.ZodObject<{
246
274
  geoLat: z.ZodNumber;
247
275
  geoLong: z.ZodNumber;
@@ -256,7 +284,7 @@ export declare const stadiumForRatingSchema: z.ZodObject<Omit<{
256
284
  specialEvent: z.ZodOptional<z.ZodBoolean>;
257
285
  weightedScore: z.ZodOptional<z.ZodNumber>;
258
286
  sportsdataStadiumId: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
259
- }, "rating">, "strip", z.ZodTypeAny, {
287
+ }, "rating" | "ratingTagCounts">, "strip", z.ZodTypeAny, {
260
288
  city: string;
261
289
  venueName: string;
262
290
  teams: {
@@ -1999,6 +2027,16 @@ export declare const stadiumRatingSchema: z.ZodObject<{
1999
2027
  options: Record<number, number>;
2000
2028
  };
2001
2029
  }>>;
2030
+ ratingTagCounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2031
+ count: z.ZodNumber;
2032
+ display: z.ZodString;
2033
+ }, "strip", z.ZodTypeAny, {
2034
+ display: string;
2035
+ count: number;
2036
+ }, {
2037
+ display: string;
2038
+ count: number;
2039
+ }>>>;
2002
2040
  location: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2003
2041
  geoLat: z.ZodNumber;
2004
2042
  geoLong: z.ZodNumber;
@@ -2039,6 +2077,10 @@ export declare const stadiumRatingSchema: z.ZodObject<{
2039
2077
  options: Record<number, number>;
2040
2078
  };
2041
2079
  } | undefined;
2080
+ ratingTagCounts?: Record<string, {
2081
+ display: string;
2082
+ count: number;
2083
+ }> | undefined;
2042
2084
  teamIds?: string[] | undefined;
2043
2085
  specialEvent?: boolean | undefined;
2044
2086
  country?: string | null | undefined;
@@ -2072,6 +2114,10 @@ export declare const stadiumRatingSchema: z.ZodObject<{
2072
2114
  options: Record<number, number>;
2073
2115
  };
2074
2116
  } | undefined;
2117
+ ratingTagCounts?: Record<string, {
2118
+ display: string;
2119
+ count: number;
2120
+ }> | undefined;
2075
2121
  teamIds?: string[] | undefined;
2076
2122
  specialEvent?: boolean | undefined;
2077
2123
  country?: string | null | undefined;
@@ -2358,6 +2404,7 @@ export declare const stadiumRatingSchema: z.ZodObject<{
2358
2404
  ratingCount?: number | undefined;
2359
2405
  };
2360
2406
  }>, "many">>;
2407
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2361
2408
  }, "strip", z.ZodTypeAny, {
2362
2409
  type: "stadium" | "game";
2363
2410
  id: string;
@@ -2395,6 +2442,10 @@ export declare const stadiumRatingSchema: z.ZodObject<{
2395
2442
  options: Record<number, number>;
2396
2443
  };
2397
2444
  } | undefined;
2445
+ ratingTagCounts?: Record<string, {
2446
+ display: string;
2447
+ count: number;
2448
+ }> | undefined;
2398
2449
  teamIds?: string[] | undefined;
2399
2450
  specialEvent?: boolean | undefined;
2400
2451
  country?: string | null | undefined;
@@ -2472,6 +2523,7 @@ export declare const stadiumRatingSchema: z.ZodObject<{
2472
2523
  };
2473
2524
  }[] | undefined;
2474
2525
  commentLanguage?: string | undefined;
2526
+ tags?: string[] | undefined;
2475
2527
  gamesAttended?: number | undefined;
2476
2528
  }, {
2477
2529
  type: "stadium" | "game";
@@ -2510,6 +2562,10 @@ export declare const stadiumRatingSchema: z.ZodObject<{
2510
2562
  options: Record<number, number>;
2511
2563
  };
2512
2564
  } | undefined;
2565
+ ratingTagCounts?: Record<string, {
2566
+ display: string;
2567
+ count: number;
2568
+ }> | undefined;
2513
2569
  teamIds?: string[] | undefined;
2514
2570
  specialEvent?: boolean | undefined;
2515
2571
  country?: string | null | undefined;
@@ -2587,6 +2643,7 @@ export declare const stadiumRatingSchema: z.ZodObject<{
2587
2643
  };
2588
2644
  }[] | undefined;
2589
2645
  commentLanguage?: string | undefined;
2646
+ tags?: string[] | undefined;
2590
2647
  gamesAttended?: number | undefined;
2591
2648
  }>;
2592
2649
  export declare const searchStadiumRatingSchema: z.ZodObject<{
@@ -2605,6 +2662,7 @@ export declare const searchStadiumRatingSchema: z.ZodObject<{
2605
2662
  customDateFrom: z.ZodOptional<z.ZodString>;
2606
2663
  customDateTo: z.ZodOptional<z.ZodString>;
2607
2664
  createdAt: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"16hr">, z.ZodLiteral<"Today">, z.ZodLiteral<"Last 3 Days">, z.ZodLiteral<"This Week">, z.ZodLiteral<"This Season">, z.ZodLiteral<"This Month">, z.ZodLiteral<"This Year">, z.ZodLiteral<"2025">, z.ZodLiteral<"2024">, z.ZodLiteral<"All">, z.ZodLiteral<"All Time">, z.ZodLiteral<"12h">, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">]>>;
2665
+ tag: z.ZodOptional<z.ZodString>;
2608
2666
  }, "strip", z.ZodTypeAny, {
2609
2667
  offset?: string | undefined;
2610
2668
  q?: string | undefined;
@@ -2620,6 +2678,7 @@ export declare const searchStadiumRatingSchema: z.ZodObject<{
2620
2678
  ratingMin?: string | undefined;
2621
2679
  ratingMax?: string | undefined;
2622
2680
  showEmptyRatings?: string | undefined;
2681
+ tag?: string | undefined;
2623
2682
  onlyUserRatings?: string | undefined;
2624
2683
  }, {
2625
2684
  offset?: string | undefined;
@@ -2636,6 +2695,7 @@ export declare const searchStadiumRatingSchema: z.ZodObject<{
2636
2695
  ratingMin?: string | undefined;
2637
2696
  ratingMax?: string | undefined;
2638
2697
  showEmptyRatings?: string | undefined;
2698
+ tag?: string | undefined;
2639
2699
  onlyUserRatings?: string | undefined;
2640
2700
  }>;
2641
2701
  export declare const createStadiumRatingSchema: z.ZodObject<{
@@ -4606,6 +4666,16 @@ export declare const createStadiumRatingSchema: z.ZodObject<{
4606
4666
  options: Record<number, number>;
4607
4667
  };
4608
4668
  }>>;
4669
+ ratingTagCounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
4670
+ count: z.ZodNumber;
4671
+ display: z.ZodString;
4672
+ }, "strip", z.ZodTypeAny, {
4673
+ display: string;
4674
+ count: number;
4675
+ }, {
4676
+ display: string;
4677
+ count: number;
4678
+ }>>>;
4609
4679
  location: z.ZodNullable<z.ZodOptional<z.ZodObject<{
4610
4680
  geoLat: z.ZodNumber;
4611
4681
  geoLong: z.ZodNumber;
@@ -4620,7 +4690,7 @@ export declare const createStadiumRatingSchema: z.ZodObject<{
4620
4690
  specialEvent: z.ZodOptional<z.ZodBoolean>;
4621
4691
  weightedScore: z.ZodOptional<z.ZodNumber>;
4622
4692
  sportsdataStadiumId: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
4623
- }, "rating">, "strip", z.ZodTypeAny, {
4693
+ }, "rating" | "ratingTagCounts">, "strip", z.ZodTypeAny, {
4624
4694
  city: string;
4625
4695
  venueName: string;
4626
4696
  teams: {
@@ -5,7 +5,6 @@ const zod_1 = require("zod");
5
5
  const sharedTypes_1 = require("./sharedTypes");
6
6
  const user_1 = require("./user");
7
7
  const game_1 = require("./game");
8
- const game_2 = require("./game");
9
8
  const zod_2 = require("zod");
10
9
  const rating_1 = require("./rating");
11
10
  const reducedTeamSchema = zod_1.z.object({
@@ -46,7 +45,7 @@ const gameForStadiumRatingSchema = (0, zod_2.object)({
46
45
  league: sharedTypes_1.leagueSlug.or((0, zod_2.string)()).optional().nullable(),
47
46
  homeTeam: game_1.gameTeamSchema,
48
47
  awayTeam: game_1.gameTeamSchema,
49
- seriesInfo: game_2.seriesInfoSchema.optional().nullable(),
48
+ seriesInfo: game_1.seriesInfoSchema.optional().nullable(),
50
49
  week: (0, zod_2.number)().optional().nullable(),
51
50
  seasonType: (0, zod_2.number)().optional().nullable(),
52
51
  startedAt: (0, zod_2.number)().optional().nullable(),
@@ -61,6 +60,7 @@ exports.stadiumSchema = zod_1.z.object({
61
60
  teamIds: zod_1.z.array(zod_1.z.string()).optional(),
62
61
  teamLeagues: zod_1.z.array(zod_1.z.string()).optional(),
63
62
  rating: exports.stadiumRatingAggregateSchema.optional(),
63
+ ratingTagCounts: game_1.ratingTagCountsSchema.optional(),
64
64
  location: exports.stadiumLocationSchema.optional().nullable(),
65
65
  locationVerificationFlag: exports.stadiumLocationVerificationFlagSchema.optional().nullable(),
66
66
  specialEvent: zod_1.z.boolean().optional(),
@@ -70,6 +70,7 @@ exports.stadiumSchema = zod_1.z.object({
70
70
  // Simplified stadium schema for rating creation (excludes complex rating data)
71
71
  exports.stadiumForRatingSchema = exports.stadiumSchema.omit({
72
72
  rating: true,
73
+ ratingTagCounts: true,
73
74
  });
74
75
  exports.stadiumRatingSchema = zod_1.z.object({
75
76
  id: zod_1.z.string(),
@@ -87,6 +88,7 @@ exports.stadiumRatingSchema = zod_1.z.object({
87
88
  edited: zod_1.z.boolean().optional(),
88
89
  userLocation: zod_1.z.string().optional().nullable(),
89
90
  events: zod_1.z.array(rating_1.ratingMiniEventSchema).optional(),
91
+ tags: zod_1.z.array(zod_1.z.string()).optional(),
90
92
  });
91
93
  exports.searchStadiumRatingSchema = zod_1.z.object({
92
94
  sortBy: sharedTypes_1.ratingSortSchema.optional(),
@@ -104,10 +106,12 @@ exports.searchStadiumRatingSchema = zod_1.z.object({
104
106
  customDateFrom: zod_1.z.string().optional(),
105
107
  customDateTo: zod_1.z.string().optional(),
106
108
  createdAt: sharedTypes_1.timeFilterSchema.optional(),
109
+ tag: zod_1.z.string().optional(),
107
110
  });
108
111
  exports.createStadiumRatingSchema = exports.stadiumRatingSchema
109
112
  .omit({
110
113
  createdAt: true,
114
+ tags: true,
111
115
  })
112
116
  .extend({
113
117
  stadium: exports.stadiumForRatingSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.489",
3
+ "version": "1.1.491",
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",