rategame-shared 1.1.29 → 1.1.31

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,8 +1,9 @@
1
1
  import { z } from "zod";
2
- import { createAgreeRatingSchema, createRatingSchema, ratingLikeSchema, ratingSchema, searchRatingSchema, threadCommentSchema } from "../schemas/rating";
2
+ import { createAgreeRatingSchema, createRatingSchema, ratingLikeSchema, ratingSchema, searchRatingSchema, threadCommentLikeSchema, threadCommentSchema } from "../schemas/rating";
3
3
  export type Rating = z.infer<typeof ratingSchema>;
4
4
  export type RatingLike = z.infer<typeof ratingLikeSchema>;
5
5
  export type CreateRating = z.infer<typeof createRatingSchema>;
6
6
  export type SearchRating = z.infer<typeof searchRatingSchema>;
7
7
  export type CreateAgreeRating = z.infer<typeof createAgreeRatingSchema>;
8
8
  export type ThreadComment = z.infer<typeof threadCommentSchema>;
9
+ export type ThreadCommentLike = z.infer<typeof threadCommentLikeSchema>;
@@ -1024,6 +1024,16 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
1024
1024
  avatarUrl?: string | null | undefined;
1025
1025
  }>>>;
1026
1026
  level: import("zod").ZodNumber;
1027
+ authorGameRating: import("zod").ZodOptional<import("zod").ZodObject<{
1028
+ id: import("zod").ZodString;
1029
+ value: import("zod").ZodNumber;
1030
+ }, "strip", import("zod").ZodTypeAny, {
1031
+ id: string;
1032
+ value: number;
1033
+ }, {
1034
+ id: string;
1035
+ value: number;
1036
+ }>>;
1027
1037
  }, "strip", import("zod").ZodTypeAny, {
1028
1038
  id: string;
1029
1039
  content: string;
@@ -1044,6 +1054,10 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
1044
1054
  username: string;
1045
1055
  avatarUrl?: string | null | undefined;
1046
1056
  } | null | undefined;
1057
+ authorGameRating?: {
1058
+ id: string;
1059
+ value: number;
1060
+ } | undefined;
1047
1061
  }, {
1048
1062
  id: string;
1049
1063
  content: string;
@@ -1064,4 +1078,298 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
1064
1078
  username: string;
1065
1079
  avatarUrl?: string | null | undefined;
1066
1080
  } | null | undefined;
1081
+ authorGameRating?: {
1082
+ id: string;
1083
+ value: number;
1084
+ } | undefined;
1085
+ }>;
1086
+ export declare const threadCommentLikeSchema: import("zod").ZodObject<{
1087
+ id: import("zod").ZodString;
1088
+ user: import("zod").ZodObject<Pick<{
1089
+ id: import("zod").ZodString;
1090
+ email: import("zod").ZodString;
1091
+ username: import("zod").ZodString;
1092
+ avatarUrl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1093
+ createdAt: import("zod").ZodNumber;
1094
+ updatedAt: import("zod").ZodNumber;
1095
+ leagues: import("zod").ZodOptional<import("zod").ZodObject<{
1096
+ nba: import("zod").ZodObject<{
1097
+ totalRatedGames: import("zod").ZodNumber;
1098
+ commentsLeft: import("zod").ZodNumber;
1099
+ avgRating: import("zod").ZodNumber;
1100
+ }, "strip", import("zod").ZodTypeAny, {
1101
+ totalRatedGames: number;
1102
+ commentsLeft: number;
1103
+ avgRating: number;
1104
+ }, {
1105
+ totalRatedGames: number;
1106
+ commentsLeft: number;
1107
+ avgRating: number;
1108
+ }>;
1109
+ ncaa: import("zod").ZodObject<{
1110
+ totalRatedGames: import("zod").ZodNumber;
1111
+ commentsLeft: import("zod").ZodNumber;
1112
+ avgRating: import("zod").ZodNumber;
1113
+ }, "strip", import("zod").ZodTypeAny, {
1114
+ totalRatedGames: number;
1115
+ commentsLeft: number;
1116
+ avgRating: number;
1117
+ }, {
1118
+ totalRatedGames: number;
1119
+ commentsLeft: number;
1120
+ avgRating: number;
1121
+ }>;
1122
+ mlb: import("zod").ZodObject<{
1123
+ totalRatedGames: import("zod").ZodNumber;
1124
+ commentsLeft: import("zod").ZodNumber;
1125
+ avgRating: import("zod").ZodNumber;
1126
+ }, "strip", import("zod").ZodTypeAny, {
1127
+ totalRatedGames: number;
1128
+ commentsLeft: number;
1129
+ avgRating: number;
1130
+ }, {
1131
+ totalRatedGames: number;
1132
+ commentsLeft: number;
1133
+ avgRating: number;
1134
+ }>;
1135
+ nfl: import("zod").ZodObject<{
1136
+ totalRatedGames: import("zod").ZodNumber;
1137
+ commentsLeft: import("zod").ZodNumber;
1138
+ avgRating: import("zod").ZodNumber;
1139
+ }, "strip", import("zod").ZodTypeAny, {
1140
+ totalRatedGames: number;
1141
+ commentsLeft: number;
1142
+ avgRating: number;
1143
+ }, {
1144
+ totalRatedGames: number;
1145
+ commentsLeft: number;
1146
+ avgRating: number;
1147
+ }>;
1148
+ nhl: import("zod").ZodObject<{
1149
+ totalRatedGames: import("zod").ZodNumber;
1150
+ commentsLeft: import("zod").ZodNumber;
1151
+ avgRating: import("zod").ZodNumber;
1152
+ }, "strip", import("zod").ZodTypeAny, {
1153
+ totalRatedGames: number;
1154
+ commentsLeft: number;
1155
+ avgRating: number;
1156
+ }, {
1157
+ totalRatedGames: number;
1158
+ commentsLeft: number;
1159
+ avgRating: number;
1160
+ }>;
1161
+ mls: import("zod").ZodObject<{
1162
+ totalRatedGames: import("zod").ZodNumber;
1163
+ commentsLeft: import("zod").ZodNumber;
1164
+ avgRating: import("zod").ZodNumber;
1165
+ }, "strip", import("zod").ZodTypeAny, {
1166
+ totalRatedGames: number;
1167
+ commentsLeft: number;
1168
+ avgRating: number;
1169
+ }, {
1170
+ totalRatedGames: number;
1171
+ commentsLeft: number;
1172
+ avgRating: number;
1173
+ }>;
1174
+ cfb: import("zod").ZodObject<{
1175
+ totalRatedGames: import("zod").ZodNumber;
1176
+ commentsLeft: import("zod").ZodNumber;
1177
+ avgRating: import("zod").ZodNumber;
1178
+ }, "strip", import("zod").ZodTypeAny, {
1179
+ totalRatedGames: number;
1180
+ commentsLeft: number;
1181
+ avgRating: number;
1182
+ }, {
1183
+ totalRatedGames: number;
1184
+ commentsLeft: number;
1185
+ avgRating: number;
1186
+ }>;
1187
+ cbb: import("zod").ZodObject<{
1188
+ totalRatedGames: import("zod").ZodNumber;
1189
+ commentsLeft: import("zod").ZodNumber;
1190
+ avgRating: import("zod").ZodNumber;
1191
+ }, "strip", import("zod").ZodTypeAny, {
1192
+ totalRatedGames: number;
1193
+ commentsLeft: number;
1194
+ avgRating: number;
1195
+ }, {
1196
+ totalRatedGames: number;
1197
+ commentsLeft: number;
1198
+ avgRating: number;
1199
+ }>;
1200
+ }, "strip", import("zod").ZodTypeAny, {
1201
+ nba: {
1202
+ totalRatedGames: number;
1203
+ commentsLeft: number;
1204
+ avgRating: number;
1205
+ };
1206
+ ncaa: {
1207
+ totalRatedGames: number;
1208
+ commentsLeft: number;
1209
+ avgRating: number;
1210
+ };
1211
+ mlb: {
1212
+ totalRatedGames: number;
1213
+ commentsLeft: number;
1214
+ avgRating: number;
1215
+ };
1216
+ nfl: {
1217
+ totalRatedGames: number;
1218
+ commentsLeft: number;
1219
+ avgRating: number;
1220
+ };
1221
+ nhl: {
1222
+ totalRatedGames: number;
1223
+ commentsLeft: number;
1224
+ avgRating: number;
1225
+ };
1226
+ mls: {
1227
+ totalRatedGames: number;
1228
+ commentsLeft: number;
1229
+ avgRating: number;
1230
+ };
1231
+ cfb: {
1232
+ totalRatedGames: number;
1233
+ commentsLeft: number;
1234
+ avgRating: number;
1235
+ };
1236
+ cbb: {
1237
+ totalRatedGames: number;
1238
+ commentsLeft: number;
1239
+ avgRating: number;
1240
+ };
1241
+ }, {
1242
+ nba: {
1243
+ totalRatedGames: number;
1244
+ commentsLeft: number;
1245
+ avgRating: number;
1246
+ };
1247
+ ncaa: {
1248
+ totalRatedGames: number;
1249
+ commentsLeft: number;
1250
+ avgRating: number;
1251
+ };
1252
+ mlb: {
1253
+ totalRatedGames: number;
1254
+ commentsLeft: number;
1255
+ avgRating: number;
1256
+ };
1257
+ nfl: {
1258
+ totalRatedGames: number;
1259
+ commentsLeft: number;
1260
+ avgRating: number;
1261
+ };
1262
+ nhl: {
1263
+ totalRatedGames: number;
1264
+ commentsLeft: number;
1265
+ avgRating: number;
1266
+ };
1267
+ mls: {
1268
+ totalRatedGames: number;
1269
+ commentsLeft: number;
1270
+ avgRating: number;
1271
+ };
1272
+ cfb: {
1273
+ totalRatedGames: number;
1274
+ commentsLeft: number;
1275
+ avgRating: number;
1276
+ };
1277
+ cbb: {
1278
+ totalRatedGames: number;
1279
+ commentsLeft: number;
1280
+ avgRating: number;
1281
+ };
1282
+ }>>;
1283
+ totalRatedGames: import("zod").ZodOptional<import("zod").ZodNumber>;
1284
+ commentsLeft: import("zod").ZodOptional<import("zod").ZodNumber>;
1285
+ avgRating: import("zod").ZodOptional<import("zod").ZodNumber>;
1286
+ isRegistrationComplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
1287
+ deviceTokens: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1288
+ token: import("zod").ZodString;
1289
+ usedAt: import("zod").ZodNumber;
1290
+ }, "strip", import("zod").ZodTypeAny, {
1291
+ token: string;
1292
+ usedAt: number;
1293
+ }, {
1294
+ token: string;
1295
+ usedAt: number;
1296
+ }>>;
1297
+ askedForPushNotifications: import("zod").ZodBoolean;
1298
+ acceptedPushNotifications: import("zod").ZodBoolean;
1299
+ badge: import("zod").ZodOptional<import("zod").ZodString>;
1300
+ registrationStep: import("zod").ZodOptional<import("zod").ZodNumber>;
1301
+ selectedLeagues: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1302
+ selectedTeams: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1303
+ lockedGameMessageSeen: import("zod").ZodOptional<import("zod").ZodBoolean>;
1304
+ bio: import("zod").ZodOptional<import("zod").ZodString>;
1305
+ socialLinks: import("zod").ZodOptional<import("zod").ZodObject<{
1306
+ instagram: import("zod").ZodOptional<import("zod").ZodString>;
1307
+ x: import("zod").ZodOptional<import("zod").ZodString>;
1308
+ youtube: import("zod").ZodOptional<import("zod").ZodString>;
1309
+ tiktok: import("zod").ZodOptional<import("zod").ZodString>;
1310
+ }, "strip", import("zod").ZodTypeAny, {
1311
+ instagram?: string | undefined;
1312
+ x?: string | undefined;
1313
+ youtube?: string | undefined;
1314
+ tiktok?: string | undefined;
1315
+ }, {
1316
+ instagram?: string | undefined;
1317
+ x?: string | undefined;
1318
+ youtube?: string | undefined;
1319
+ tiktok?: string | undefined;
1320
+ }>>;
1321
+ platform: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"ios">, import("zod").ZodLiteral<"android">, import("zod").ZodLiteral<"macos">, import("zod").ZodLiteral<"windows">, import("zod").ZodLiteral<"web">]>>;
1322
+ selectedTeamsPerLeague: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">>>;
1323
+ notificationSettings: import("zod").ZodOptional<import("zod").ZodObject<{
1324
+ allGames: import("zod").ZodOptional<import("zod").ZodBoolean>;
1325
+ favoriteLeagues: import("zod").ZodOptional<import("zod").ZodBoolean>;
1326
+ favoriteTeams: import("zod").ZodOptional<import("zod").ZodBoolean>;
1327
+ }, "strip", import("zod").ZodTypeAny, {
1328
+ allGames?: boolean | undefined;
1329
+ favoriteLeagues?: boolean | undefined;
1330
+ favoriteTeams?: boolean | undefined;
1331
+ }, {
1332
+ allGames?: boolean | undefined;
1333
+ favoriteLeagues?: boolean | undefined;
1334
+ favoriteTeams?: boolean | undefined;
1335
+ }>>;
1336
+ }, "id" | "email" | "username" | "avatarUrl">, "strip", import("zod").ZodTypeAny, {
1337
+ id: string;
1338
+ email: string;
1339
+ username: string;
1340
+ avatarUrl?: string | null | undefined;
1341
+ }, {
1342
+ id: string;
1343
+ email: string;
1344
+ username: string;
1345
+ avatarUrl?: string | null | undefined;
1346
+ }>;
1347
+ ratingId: import("zod").ZodString;
1348
+ likedAt: import("zod").ZodNumber;
1349
+ commentId: import("zod").ZodString;
1350
+ commentParentId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1351
+ }, "strip", import("zod").ZodTypeAny, {
1352
+ id: string;
1353
+ user: {
1354
+ id: string;
1355
+ email: string;
1356
+ username: string;
1357
+ avatarUrl?: string | null | undefined;
1358
+ };
1359
+ ratingId: string;
1360
+ likedAt: number;
1361
+ commentId: string;
1362
+ commentParentId?: string | null | undefined;
1363
+ }, {
1364
+ id: string;
1365
+ user: {
1366
+ id: string;
1367
+ email: string;
1368
+ username: string;
1369
+ avatarUrl?: string | null | undefined;
1370
+ };
1371
+ ratingId: string;
1372
+ likedAt: number;
1373
+ commentId: string;
1374
+ commentParentId?: string | null | undefined;
1067
1375
  }>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.threadCommentSchema = exports.createRatingSchema = exports.createAgreeRatingSchema = exports.ratingLikeSchema = exports.searchRatingSchema = exports.ratingSchema = void 0;
3
+ exports.threadCommentLikeSchema = exports.threadCommentSchema = exports.createRatingSchema = exports.createAgreeRatingSchema = exports.ratingLikeSchema = exports.searchRatingSchema = exports.ratingSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const game_1 = require("./game");
6
6
  const user_1 = require("./user");
@@ -115,4 +115,16 @@ exports.threadCommentSchema = (0, zod_1.object)({
115
115
  isReply: (0, zod_1.boolean)().optional(),
116
116
  replyTo: user_1.reducedUserSchema.nullable().optional(),
117
117
  level: (0, zod_1.number)(),
118
+ authorGameRating: (0, zod_1.object)({
119
+ id: (0, zod_1.string)(),
120
+ value: (0, zod_1.number)(),
121
+ }).optional(),
122
+ });
123
+ exports.threadCommentLikeSchema = (0, zod_1.object)({
124
+ id: (0, zod_1.string)(),
125
+ user: user_1.reducedUserSchema,
126
+ ratingId: (0, zod_1.string)(),
127
+ likedAt: (0, zod_1.number)(),
128
+ commentId: (0, zod_1.string)(),
129
+ commentParentId: (0, zod_1.string)().nullable().optional(),
118
130
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.29",
3
+ "version": "1.1.31",
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",