rategame-shared 1.1.331 → 1.1.333
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.
|
@@ -9,6 +9,9 @@ export declare const experienceSchema: z.ZodObject<{
|
|
|
9
9
|
description: z.ZodString;
|
|
10
10
|
thumbnailUrl: z.ZodString;
|
|
11
11
|
gameId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12
|
+
stadiumId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
13
|
+
stadiumVenueName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
14
|
+
stadiumUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12
15
|
rating: z.ZodOptional<z.ZodObject<{
|
|
13
16
|
avg: z.ZodNumber;
|
|
14
17
|
votes: z.ZodObject<{
|
|
@@ -41,6 +44,7 @@ export declare const experienceSchema: z.ZodObject<{
|
|
|
41
44
|
description: string;
|
|
42
45
|
createdAt: number;
|
|
43
46
|
thumbnailUrl: string;
|
|
47
|
+
stadiumUrl?: string | null | undefined;
|
|
44
48
|
rating?: {
|
|
45
49
|
avg: number;
|
|
46
50
|
votes: {
|
|
@@ -48,13 +52,16 @@ export declare const experienceSchema: z.ZodObject<{
|
|
|
48
52
|
options: Record<number, number>;
|
|
49
53
|
};
|
|
50
54
|
} | undefined;
|
|
55
|
+
stadiumId?: string | null | undefined;
|
|
51
56
|
gameId?: string | null | undefined;
|
|
57
|
+
stadiumVenueName?: string | null | undefined;
|
|
52
58
|
}, {
|
|
53
59
|
id: string;
|
|
54
60
|
name: string;
|
|
55
61
|
description: string;
|
|
56
62
|
createdAt: number;
|
|
57
63
|
thumbnailUrl: string;
|
|
64
|
+
stadiumUrl?: string | null | undefined;
|
|
58
65
|
rating?: {
|
|
59
66
|
avg: number;
|
|
60
67
|
votes: {
|
|
@@ -62,7 +69,9 @@ export declare const experienceSchema: z.ZodObject<{
|
|
|
62
69
|
options: Record<number, number>;
|
|
63
70
|
};
|
|
64
71
|
} | undefined;
|
|
72
|
+
stadiumId?: string | null | undefined;
|
|
65
73
|
gameId?: string | null | undefined;
|
|
74
|
+
stadiumVenueName?: string | null | undefined;
|
|
66
75
|
}>;
|
|
67
76
|
export declare const experienceForRatingSchema: z.ZodObject<Omit<{
|
|
68
77
|
id: z.ZodString;
|
|
@@ -70,6 +79,9 @@ export declare const experienceForRatingSchema: z.ZodObject<Omit<{
|
|
|
70
79
|
description: z.ZodString;
|
|
71
80
|
thumbnailUrl: z.ZodString;
|
|
72
81
|
gameId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
82
|
+
stadiumId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
83
|
+
stadiumVenueName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
84
|
+
stadiumUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
73
85
|
rating: z.ZodOptional<z.ZodObject<{
|
|
74
86
|
avg: z.ZodNumber;
|
|
75
87
|
votes: z.ZodObject<{
|
|
@@ -102,14 +114,20 @@ export declare const experienceForRatingSchema: z.ZodObject<Omit<{
|
|
|
102
114
|
description: string;
|
|
103
115
|
createdAt: number;
|
|
104
116
|
thumbnailUrl: string;
|
|
117
|
+
stadiumUrl?: string | null | undefined;
|
|
118
|
+
stadiumId?: string | null | undefined;
|
|
105
119
|
gameId?: string | null | undefined;
|
|
120
|
+
stadiumVenueName?: string | null | undefined;
|
|
106
121
|
}, {
|
|
107
122
|
id: string;
|
|
108
123
|
name: string;
|
|
109
124
|
description: string;
|
|
110
125
|
createdAt: number;
|
|
111
126
|
thumbnailUrl: string;
|
|
127
|
+
stadiumUrl?: string | null | undefined;
|
|
128
|
+
stadiumId?: string | null | undefined;
|
|
112
129
|
gameId?: string | null | undefined;
|
|
130
|
+
stadiumVenueName?: string | null | undefined;
|
|
113
131
|
}>;
|
|
114
132
|
/**
|
|
115
133
|
* Experience Rating schema
|
|
@@ -1224,6 +1242,9 @@ export declare const experienceRatingSchema: z.ZodObject<{
|
|
|
1224
1242
|
description: z.ZodString;
|
|
1225
1243
|
thumbnailUrl: z.ZodString;
|
|
1226
1244
|
gameId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1245
|
+
stadiumId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1246
|
+
stadiumVenueName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1247
|
+
stadiumUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1227
1248
|
rating: z.ZodOptional<z.ZodObject<{
|
|
1228
1249
|
avg: z.ZodNumber;
|
|
1229
1250
|
votes: z.ZodObject<{
|
|
@@ -1256,6 +1277,7 @@ export declare const experienceRatingSchema: z.ZodObject<{
|
|
|
1256
1277
|
description: string;
|
|
1257
1278
|
createdAt: number;
|
|
1258
1279
|
thumbnailUrl: string;
|
|
1280
|
+
stadiumUrl?: string | null | undefined;
|
|
1259
1281
|
rating?: {
|
|
1260
1282
|
avg: number;
|
|
1261
1283
|
votes: {
|
|
@@ -1263,13 +1285,16 @@ export declare const experienceRatingSchema: z.ZodObject<{
|
|
|
1263
1285
|
options: Record<number, number>;
|
|
1264
1286
|
};
|
|
1265
1287
|
} | undefined;
|
|
1288
|
+
stadiumId?: string | null | undefined;
|
|
1266
1289
|
gameId?: string | null | undefined;
|
|
1290
|
+
stadiumVenueName?: string | null | undefined;
|
|
1267
1291
|
}, {
|
|
1268
1292
|
id: string;
|
|
1269
1293
|
name: string;
|
|
1270
1294
|
description: string;
|
|
1271
1295
|
createdAt: number;
|
|
1272
1296
|
thumbnailUrl: string;
|
|
1297
|
+
stadiumUrl?: string | null | undefined;
|
|
1273
1298
|
rating?: {
|
|
1274
1299
|
avg: number;
|
|
1275
1300
|
votes: {
|
|
@@ -1277,7 +1302,9 @@ export declare const experienceRatingSchema: z.ZodObject<{
|
|
|
1277
1302
|
options: Record<number, number>;
|
|
1278
1303
|
};
|
|
1279
1304
|
} | undefined;
|
|
1305
|
+
stadiumId?: string | null | undefined;
|
|
1280
1306
|
gameId?: string | null | undefined;
|
|
1307
|
+
stadiumVenueName?: string | null | undefined;
|
|
1281
1308
|
}>;
|
|
1282
1309
|
userLikes: z.ZodOptional<z.ZodNumber>;
|
|
1283
1310
|
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1343,6 +1370,7 @@ export declare const experienceRatingSchema: z.ZodObject<{
|
|
|
1343
1370
|
description: string;
|
|
1344
1371
|
createdAt: number;
|
|
1345
1372
|
thumbnailUrl: string;
|
|
1373
|
+
stadiumUrl?: string | null | undefined;
|
|
1346
1374
|
rating?: {
|
|
1347
1375
|
avg: number;
|
|
1348
1376
|
votes: {
|
|
@@ -1350,7 +1378,9 @@ export declare const experienceRatingSchema: z.ZodObject<{
|
|
|
1350
1378
|
options: Record<number, number>;
|
|
1351
1379
|
};
|
|
1352
1380
|
} | undefined;
|
|
1381
|
+
stadiumId?: string | null | undefined;
|
|
1353
1382
|
gameId?: string | null | undefined;
|
|
1383
|
+
stadiumVenueName?: string | null | undefined;
|
|
1354
1384
|
};
|
|
1355
1385
|
updatedAt?: number | undefined;
|
|
1356
1386
|
comment?: string | undefined;
|
|
@@ -1385,6 +1415,7 @@ export declare const experienceRatingSchema: z.ZodObject<{
|
|
|
1385
1415
|
description: string;
|
|
1386
1416
|
createdAt: number;
|
|
1387
1417
|
thumbnailUrl: string;
|
|
1418
|
+
stadiumUrl?: string | null | undefined;
|
|
1388
1419
|
rating?: {
|
|
1389
1420
|
avg: number;
|
|
1390
1421
|
votes: {
|
|
@@ -1392,7 +1423,9 @@ export declare const experienceRatingSchema: z.ZodObject<{
|
|
|
1392
1423
|
options: Record<number, number>;
|
|
1393
1424
|
};
|
|
1394
1425
|
} | undefined;
|
|
1426
|
+
stadiumId?: string | null | undefined;
|
|
1395
1427
|
gameId?: string | null | undefined;
|
|
1428
|
+
stadiumVenueName?: string | null | undefined;
|
|
1396
1429
|
};
|
|
1397
1430
|
updatedAt?: number | undefined;
|
|
1398
1431
|
comment?: string | undefined;
|
|
@@ -2554,6 +2587,9 @@ export declare const createExperienceRatingSchema: z.ZodObject<z.objectUtil.exte
|
|
|
2554
2587
|
description: z.ZodString;
|
|
2555
2588
|
thumbnailUrl: z.ZodString;
|
|
2556
2589
|
gameId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2590
|
+
stadiumId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2591
|
+
stadiumVenueName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2592
|
+
stadiumUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2557
2593
|
rating: z.ZodOptional<z.ZodObject<{
|
|
2558
2594
|
avg: z.ZodNumber;
|
|
2559
2595
|
votes: z.ZodObject<{
|
|
@@ -2586,6 +2622,7 @@ export declare const createExperienceRatingSchema: z.ZodObject<z.objectUtil.exte
|
|
|
2586
2622
|
description: string;
|
|
2587
2623
|
createdAt: number;
|
|
2588
2624
|
thumbnailUrl: string;
|
|
2625
|
+
stadiumUrl?: string | null | undefined;
|
|
2589
2626
|
rating?: {
|
|
2590
2627
|
avg: number;
|
|
2591
2628
|
votes: {
|
|
@@ -2593,13 +2630,16 @@ export declare const createExperienceRatingSchema: z.ZodObject<z.objectUtil.exte
|
|
|
2593
2630
|
options: Record<number, number>;
|
|
2594
2631
|
};
|
|
2595
2632
|
} | undefined;
|
|
2633
|
+
stadiumId?: string | null | undefined;
|
|
2596
2634
|
gameId?: string | null | undefined;
|
|
2635
|
+
stadiumVenueName?: string | null | undefined;
|
|
2597
2636
|
}, {
|
|
2598
2637
|
id: string;
|
|
2599
2638
|
name: string;
|
|
2600
2639
|
description: string;
|
|
2601
2640
|
createdAt: number;
|
|
2602
2641
|
thumbnailUrl: string;
|
|
2642
|
+
stadiumUrl?: string | null | undefined;
|
|
2603
2643
|
rating?: {
|
|
2604
2644
|
avg: number;
|
|
2605
2645
|
votes: {
|
|
@@ -2607,7 +2647,9 @@ export declare const createExperienceRatingSchema: z.ZodObject<z.objectUtil.exte
|
|
|
2607
2647
|
options: Record<number, number>;
|
|
2608
2648
|
};
|
|
2609
2649
|
} | undefined;
|
|
2650
|
+
stadiumId?: string | null | undefined;
|
|
2610
2651
|
gameId?: string | null | undefined;
|
|
2652
|
+
stadiumVenueName?: string | null | undefined;
|
|
2611
2653
|
}>;
|
|
2612
2654
|
userLikes: z.ZodOptional<z.ZodNumber>;
|
|
2613
2655
|
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2663,6 +2705,9 @@ export declare const createExperienceRatingSchema: z.ZodObject<z.objectUtil.exte
|
|
|
2663
2705
|
description: z.ZodString;
|
|
2664
2706
|
thumbnailUrl: z.ZodString;
|
|
2665
2707
|
gameId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2708
|
+
stadiumId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2709
|
+
stadiumVenueName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2710
|
+
stadiumUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2666
2711
|
rating: z.ZodOptional<z.ZodObject<{
|
|
2667
2712
|
avg: z.ZodNumber;
|
|
2668
2713
|
votes: z.ZodObject<{
|
|
@@ -2695,14 +2740,20 @@ export declare const createExperienceRatingSchema: z.ZodObject<z.objectUtil.exte
|
|
|
2695
2740
|
description: string;
|
|
2696
2741
|
createdAt: number;
|
|
2697
2742
|
thumbnailUrl: string;
|
|
2743
|
+
stadiumUrl?: string | null | undefined;
|
|
2744
|
+
stadiumId?: string | null | undefined;
|
|
2698
2745
|
gameId?: string | null | undefined;
|
|
2746
|
+
stadiumVenueName?: string | null | undefined;
|
|
2699
2747
|
}, {
|
|
2700
2748
|
id: string;
|
|
2701
2749
|
name: string;
|
|
2702
2750
|
description: string;
|
|
2703
2751
|
createdAt: number;
|
|
2704
2752
|
thumbnailUrl: string;
|
|
2753
|
+
stadiumUrl?: string | null | undefined;
|
|
2754
|
+
stadiumId?: string | null | undefined;
|
|
2705
2755
|
gameId?: string | null | undefined;
|
|
2756
|
+
stadiumVenueName?: string | null | undefined;
|
|
2706
2757
|
}>;
|
|
2707
2758
|
}>, "strip", z.ZodTypeAny, {
|
|
2708
2759
|
id: string;
|
|
@@ -2720,7 +2771,10 @@ export declare const createExperienceRatingSchema: z.ZodObject<z.objectUtil.exte
|
|
|
2720
2771
|
description: string;
|
|
2721
2772
|
createdAt: number;
|
|
2722
2773
|
thumbnailUrl: string;
|
|
2774
|
+
stadiumUrl?: string | null | undefined;
|
|
2775
|
+
stadiumId?: string | null | undefined;
|
|
2723
2776
|
gameId?: string | null | undefined;
|
|
2777
|
+
stadiumVenueName?: string | null | undefined;
|
|
2724
2778
|
};
|
|
2725
2779
|
updatedAt?: number | undefined;
|
|
2726
2780
|
comment?: string | undefined;
|
|
@@ -2754,7 +2808,10 @@ export declare const createExperienceRatingSchema: z.ZodObject<z.objectUtil.exte
|
|
|
2754
2808
|
description: string;
|
|
2755
2809
|
createdAt: number;
|
|
2756
2810
|
thumbnailUrl: string;
|
|
2811
|
+
stadiumUrl?: string | null | undefined;
|
|
2812
|
+
stadiumId?: string | null | undefined;
|
|
2757
2813
|
gameId?: string | null | undefined;
|
|
2814
|
+
stadiumVenueName?: string | null | undefined;
|
|
2758
2815
|
};
|
|
2759
2816
|
updatedAt?: number | undefined;
|
|
2760
2817
|
comment?: string | undefined;
|
|
@@ -16,6 +16,10 @@ exports.experienceSchema = zod_1.z.object({
|
|
|
16
16
|
description: zod_1.z.string(),
|
|
17
17
|
thumbnailUrl: zod_1.z.string(),
|
|
18
18
|
gameId: zod_1.z.string().optional().nullable(),
|
|
19
|
+
// Stadium fields - can be auto-populated from game or manually set
|
|
20
|
+
stadiumId: zod_1.z.string().optional().nullable(),
|
|
21
|
+
stadiumVenueName: zod_1.z.string().optional().nullable(),
|
|
22
|
+
stadiumUrl: zod_1.z.string().optional().nullable(),
|
|
19
23
|
rating: stadium_1.stadiumRatingAggregateSchema.optional(),
|
|
20
24
|
createdAt: zod_1.z.number(),
|
|
21
25
|
});
|
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -722,6 +722,9 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
722
722
|
fanCategory: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"winningTeam">, import("zod").ZodLiteral<"losingTeam">, import("zod").ZodLiteral<"neutral">, import("zod").ZodLiteral<"homeTeam">, import("zod").ZodLiteral<"awayTeam">]>>;
|
|
723
723
|
category: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"watched">, import("zod").ZodLiteral<"attended">, import("zod").ZodLiteral<"highlights">, import("zod").ZodLiteral<"listened">, import("zod").ZodLiteral<"partiallyWatched">]>>;
|
|
724
724
|
userLocation: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
725
|
+
includeExperienceRatings: import("zod").ZodOptional<import("zod").ZodString>;
|
|
726
|
+
experienceRatingsLimit: import("zod").ZodOptional<import("zod").ZodString>;
|
|
727
|
+
experienceRatingsOffset: import("zod").ZodOptional<import("zod").ZodString>;
|
|
725
728
|
}, "strip", import("zod").ZodTypeAny, {
|
|
726
729
|
league: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "cbb" | "cfb" | "epl" | "mls" | "wnba" | "cwc";
|
|
727
730
|
offset?: string | undefined;
|
|
@@ -742,6 +745,9 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
742
745
|
showEmptyRatings?: string | undefined;
|
|
743
746
|
mlbTeamLeague?: string | undefined;
|
|
744
747
|
division?: string | undefined;
|
|
748
|
+
includeExperienceRatings?: string | undefined;
|
|
749
|
+
experienceRatingsLimit?: string | undefined;
|
|
750
|
+
experienceRatingsOffset?: string | undefined;
|
|
745
751
|
}, {
|
|
746
752
|
league: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "cbb" | "cfb" | "epl" | "mls" | "wnba" | "cwc";
|
|
747
753
|
offset?: string | undefined;
|
|
@@ -762,6 +768,9 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
762
768
|
showEmptyRatings?: string | undefined;
|
|
763
769
|
mlbTeamLeague?: string | undefined;
|
|
764
770
|
division?: string | undefined;
|
|
771
|
+
includeExperienceRatings?: string | undefined;
|
|
772
|
+
experienceRatingsLimit?: string | undefined;
|
|
773
|
+
experienceRatingsOffset?: string | undefined;
|
|
765
774
|
}>;
|
|
766
775
|
export declare const ratingLikeSchema: import("zod").ZodObject<{
|
|
767
776
|
ratingId: import("zod").ZodString;
|
package/dist/schemas/rating.js
CHANGED
|
@@ -106,6 +106,10 @@ exports.searchRatingSchema = (0, zod_1.object)({
|
|
|
106
106
|
]).optional(),
|
|
107
107
|
category: exports.ratingCategorySchema.optional(),
|
|
108
108
|
userLocation: (0, zod_1.string)().optional().nullable(),
|
|
109
|
+
// Experience ratings params - when set, include experience ratings in response
|
|
110
|
+
includeExperienceRatings: (0, zod_1.string)().optional(),
|
|
111
|
+
experienceRatingsLimit: (0, zod_1.string)().optional(),
|
|
112
|
+
experienceRatingsOffset: (0, zod_1.string)().optional(),
|
|
109
113
|
});
|
|
110
114
|
exports.ratingLikeSchema = (0, zod_1.object)({
|
|
111
115
|
ratingId: (0, zod_1.string)(),
|