rategame-shared 1.1.168 → 1.1.170
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/helpers/index.js +89 -5
- package/dist/models/rating.d.ts +2 -1
- package/dist/schemas/game.d.ts +252 -72
- package/dist/schemas/rating.d.ts +64 -3
- package/dist/schemas/rating.js +13 -1
- package/dist/schemas/team.d.ts +72 -9
- package/dist/schemas/user.d.ts +56 -8
- package/dist/schemas/user.js +14 -1
- package/package.json +1 -1
- package/dist/models/player.d.ts +0 -3
- package/dist/models/player.js +0 -2
- package/dist/schemas/player.d.ts +0 -32
- package/dist/schemas/player.js +0 -15
package/dist/helpers/index.js
CHANGED
|
@@ -32,6 +32,7 @@ exports.achievementsMap = {
|
|
|
32
32
|
silver: { threshold: 10 },
|
|
33
33
|
gold: { threshold: 50 },
|
|
34
34
|
},
|
|
35
|
+
type: "global",
|
|
35
36
|
},
|
|
36
37
|
take_this: {
|
|
37
38
|
id: "take_this",
|
|
@@ -42,6 +43,7 @@ exports.achievementsMap = {
|
|
|
42
43
|
silver: { threshold: 25 },
|
|
43
44
|
gold: { threshold: 50 },
|
|
44
45
|
},
|
|
46
|
+
type: "global",
|
|
45
47
|
},
|
|
46
48
|
front_runner: {
|
|
47
49
|
id: "front_runner",
|
|
@@ -52,6 +54,7 @@ exports.achievementsMap = {
|
|
|
52
54
|
silver: { threshold: 25 },
|
|
53
55
|
gold: { threshold: 50 },
|
|
54
56
|
},
|
|
57
|
+
type: "global",
|
|
55
58
|
},
|
|
56
59
|
loyal_till_the_end: {
|
|
57
60
|
id: "loyal_till_the_end",
|
|
@@ -62,6 +65,7 @@ exports.achievementsMap = {
|
|
|
62
65
|
silver: { threshold: 25 },
|
|
63
66
|
gold: { threshold: 50 },
|
|
64
67
|
},
|
|
68
|
+
type: "global",
|
|
65
69
|
},
|
|
66
70
|
around_the_world: {
|
|
67
71
|
id: "around_the_world",
|
|
@@ -72,16 +76,19 @@ exports.achievementsMap = {
|
|
|
72
76
|
silver: { threshold: 5 },
|
|
73
77
|
gold: { threshold: 8 },
|
|
74
78
|
},
|
|
79
|
+
type: "global",
|
|
75
80
|
},
|
|
76
81
|
superfan: {
|
|
77
82
|
id: "superfan",
|
|
78
83
|
name: "Superfan",
|
|
79
84
|
description: "Rate every game played by your favorite team in a season.",
|
|
85
|
+
type: "global",
|
|
80
86
|
},
|
|
81
87
|
"fan-tastic": {
|
|
82
88
|
id: "fan-tastic",
|
|
83
89
|
name: "Fan-Tastic",
|
|
84
90
|
description: "Select your favorite teams in the app(at least 3).",
|
|
91
|
+
type: "global",
|
|
85
92
|
},
|
|
86
93
|
marathon_fan: {
|
|
87
94
|
id: "marathon_fan",
|
|
@@ -92,6 +99,7 @@ exports.achievementsMap = {
|
|
|
92
99
|
silver: { threshold: 10 },
|
|
93
100
|
gold: { threshold: 20 },
|
|
94
101
|
},
|
|
102
|
+
type: "global",
|
|
95
103
|
},
|
|
96
104
|
new_years_resolution: {
|
|
97
105
|
id: "new_years_resolution",
|
|
@@ -102,6 +110,7 @@ exports.achievementsMap = {
|
|
|
102
110
|
silver: { threshold: 5 },
|
|
103
111
|
gold: { threshold: 10 },
|
|
104
112
|
},
|
|
113
|
+
type: "global",
|
|
105
114
|
},
|
|
106
115
|
dog_days_of_summer: {
|
|
107
116
|
id: "dog_days_of_summer",
|
|
@@ -112,11 +121,13 @@ exports.achievementsMap = {
|
|
|
112
121
|
silver: { threshold: 50 },
|
|
113
122
|
gold: { threshold: 100 },
|
|
114
123
|
},
|
|
124
|
+
type: "global",
|
|
115
125
|
},
|
|
116
126
|
"50_50_club": {
|
|
117
127
|
id: "50_50_club",
|
|
118
128
|
name: "50/50 Club",
|
|
119
129
|
description: "Rate at least 50% of all games in a single season for one league.",
|
|
130
|
+
type: "global",
|
|
120
131
|
},
|
|
121
132
|
take_off: {
|
|
122
133
|
id: "take_off",
|
|
@@ -127,6 +138,7 @@ exports.achievementsMap = {
|
|
|
127
138
|
silver: { threshold: 5 },
|
|
128
139
|
gold: { threshold: 8 },
|
|
129
140
|
},
|
|
141
|
+
type: "global",
|
|
130
142
|
},
|
|
131
143
|
embrace_debate: {
|
|
132
144
|
id: "embrace_debate",
|
|
@@ -137,6 +149,7 @@ exports.achievementsMap = {
|
|
|
137
149
|
silver: { threshold: 50 },
|
|
138
150
|
gold: { threshold: 100 },
|
|
139
151
|
},
|
|
152
|
+
type: "global",
|
|
140
153
|
},
|
|
141
154
|
fan_of_the_people: {
|
|
142
155
|
id: "fan_of_the_people",
|
|
@@ -147,6 +160,7 @@ exports.achievementsMap = {
|
|
|
147
160
|
silver: { threshold: 50 },
|
|
148
161
|
gold: { threshold: 100 },
|
|
149
162
|
},
|
|
163
|
+
type: "global",
|
|
150
164
|
},
|
|
151
165
|
the_peoples_fan: {
|
|
152
166
|
id: "the_peoples_fan",
|
|
@@ -157,6 +171,7 @@ exports.achievementsMap = {
|
|
|
157
171
|
silver: { threshold: 50 },
|
|
158
172
|
gold: { threshold: 100 },
|
|
159
173
|
},
|
|
174
|
+
type: "global",
|
|
160
175
|
},
|
|
161
176
|
take_titan: {
|
|
162
177
|
id: "take_titan",
|
|
@@ -167,6 +182,7 @@ exports.achievementsMap = {
|
|
|
167
182
|
silver: { threshold: 500 },
|
|
168
183
|
gold: { threshold: 1000 },
|
|
169
184
|
},
|
|
185
|
+
type: "global",
|
|
170
186
|
},
|
|
171
187
|
take_first: {
|
|
172
188
|
id: "take_first",
|
|
@@ -177,6 +193,7 @@ exports.achievementsMap = {
|
|
|
177
193
|
silver: { threshold: 50 },
|
|
178
194
|
gold: { threshold: 100 },
|
|
179
195
|
},
|
|
196
|
+
type: "global",
|
|
180
197
|
},
|
|
181
198
|
hall_of_takes: {
|
|
182
199
|
id: "hall_of_takes",
|
|
@@ -187,170 +204,237 @@ exports.achievementsMap = {
|
|
|
187
204
|
silver: { threshold: 500 },
|
|
188
205
|
gold: { threshold: 1000 },
|
|
189
206
|
},
|
|
207
|
+
type: "global",
|
|
190
208
|
},
|
|
191
209
|
ball_knower: {
|
|
192
210
|
id: "ball_knower",
|
|
193
211
|
name: "Ball Knower",
|
|
194
212
|
description: "Rate 50 Basketball games.",
|
|
213
|
+
type: "sport",
|
|
214
|
+
sport: "basketball",
|
|
195
215
|
},
|
|
196
216
|
heating_up: {
|
|
197
217
|
id: "heating_up",
|
|
198
218
|
name: "Heating Up",
|
|
199
219
|
description: "Rate 10 Basketball games in 24 hours.",
|
|
220
|
+
type: "sport",
|
|
221
|
+
sport: "basketball",
|
|
200
222
|
},
|
|
201
223
|
full_court_press: {
|
|
202
224
|
id: "full_court_press",
|
|
203
225
|
name: "Full Court Press",
|
|
204
226
|
description: "Rate a game from every single NBA team.",
|
|
227
|
+
type: "sport",
|
|
228
|
+
sport: "basketball",
|
|
205
229
|
},
|
|
206
230
|
grid_iron_guru: {
|
|
207
231
|
id: "grid_iron_guru",
|
|
208
232
|
name: "Grid Iron Guru",
|
|
209
233
|
description: "Rate 50 Football games.",
|
|
234
|
+
type: "sport",
|
|
235
|
+
sport: "football",
|
|
210
236
|
},
|
|
211
237
|
across_the_yard: {
|
|
212
238
|
id: "across_the_yard",
|
|
213
239
|
name: "Across the Yard",
|
|
214
240
|
description: "Rate a Football game from every division & conference.",
|
|
241
|
+
type: "sport",
|
|
242
|
+
sport: "football",
|
|
215
243
|
},
|
|
216
244
|
pigskin_power: {
|
|
217
245
|
id: "pigskin_power",
|
|
218
246
|
name: "Pigskin Power",
|
|
219
247
|
description: "Rate an entire season of Football.",
|
|
248
|
+
type: "sport",
|
|
249
|
+
sport: "football",
|
|
220
250
|
},
|
|
221
251
|
goal_getter: {
|
|
222
252
|
id: "goal_getter",
|
|
223
253
|
name: "Goal Getter",
|
|
224
254
|
description: "Rate 50 Soccer games.",
|
|
255
|
+
type: "sport",
|
|
256
|
+
sport: "soccer",
|
|
225
257
|
},
|
|
226
258
|
footie_fanatic: {
|
|
227
259
|
id: "footie_fanatic",
|
|
228
260
|
name: "Footie Fanatic",
|
|
229
261
|
description: "Rate 100 Soccer games.",
|
|
262
|
+
type: "sport",
|
|
263
|
+
sport: "soccer",
|
|
230
264
|
},
|
|
231
265
|
campaign_conqueror: {
|
|
232
266
|
id: "campaign_conqueror",
|
|
233
267
|
name: "Campaign Conqueror",
|
|
234
268
|
description: "Rate an entire season of Soccer.",
|
|
269
|
+
type: "sport",
|
|
270
|
+
sport: "soccer",
|
|
235
271
|
},
|
|
236
272
|
diamond_hands: {
|
|
237
273
|
id: "diamond_hands",
|
|
238
274
|
name: "Diamond Hands",
|
|
239
275
|
description: "Rate 50 Baseball games.",
|
|
276
|
+
type: "sport",
|
|
277
|
+
sport: "baseball",
|
|
240
278
|
},
|
|
241
279
|
field_of_dreams: {
|
|
242
280
|
id: "field_of_dreams",
|
|
243
281
|
name: "Field of Dreams",
|
|
244
282
|
description: "Rate 100 Baseball games.",
|
|
283
|
+
type: "sport",
|
|
284
|
+
sport: "baseball",
|
|
245
285
|
},
|
|
246
286
|
charlie_hustle: {
|
|
247
287
|
id: "charlie_hustle",
|
|
248
288
|
name: "Charlie Hustle",
|
|
249
289
|
description: "Rate an entire season of MLB.",
|
|
290
|
+
type: "sport",
|
|
291
|
+
sport: "baseball",
|
|
250
292
|
},
|
|
251
293
|
power_play: {
|
|
252
294
|
id: "power_play",
|
|
253
295
|
name: "Power Play",
|
|
254
296
|
description: "Rate 50 Hockey games.",
|
|
297
|
+
type: "sport",
|
|
298
|
+
sport: "hockey",
|
|
255
299
|
},
|
|
256
300
|
ice_king: {
|
|
257
301
|
id: "ice_king",
|
|
258
302
|
name: "Ice King",
|
|
259
303
|
description: "Rate 100 Hockey games.",
|
|
304
|
+
type: "sport",
|
|
305
|
+
sport: "hockey",
|
|
260
306
|
},
|
|
261
307
|
marleau_master: {
|
|
262
308
|
id: "marleau_master",
|
|
263
309
|
name: "Marleau Master",
|
|
264
310
|
description: "Rate an entire season of NHL.",
|
|
311
|
+
type: "sport",
|
|
312
|
+
sport: "hockey",
|
|
265
313
|
},
|
|
266
314
|
the_admiral: {
|
|
267
315
|
id: "the_admiral",
|
|
268
316
|
name: "The Admiral",
|
|
269
317
|
description: "Rate 50 College Basketball games.",
|
|
318
|
+
type: "league",
|
|
319
|
+
league: "ncaa",
|
|
270
320
|
},
|
|
271
321
|
the_grateful_red: {
|
|
272
322
|
id: "the_grateful_red",
|
|
273
323
|
name: "The Grateful Red",
|
|
274
324
|
description: "Rate 101 College Basketball games.",
|
|
325
|
+
type: "league",
|
|
326
|
+
league: "ncaa",
|
|
275
327
|
},
|
|
276
328
|
mad_march: {
|
|
277
329
|
id: "mad_march",
|
|
278
330
|
name: "Mad March",
|
|
279
331
|
description: "Rate every March Madness game.",
|
|
332
|
+
type: "league",
|
|
333
|
+
league: "ncaa",
|
|
280
334
|
},
|
|
281
335
|
the_logo: {
|
|
282
336
|
id: "the_logo",
|
|
283
337
|
name: "The Logo",
|
|
284
338
|
description: "Rate 44 NBA games.",
|
|
339
|
+
type: "league",
|
|
340
|
+
league: "nba",
|
|
285
341
|
},
|
|
286
342
|
the_big_dipper: {
|
|
287
343
|
id: "the_big_dipper",
|
|
288
344
|
name: "The Big Dipper",
|
|
289
345
|
description: "Rate 100 NBA games.",
|
|
346
|
+
type: "league",
|
|
347
|
+
league: "nba",
|
|
348
|
+
},
|
|
349
|
+
the_big_o: {
|
|
350
|
+
id: "the_big_o",
|
|
351
|
+
name: "The Big O",
|
|
352
|
+
description: "Average 10 rated games, 10 takes and 10 agrees per week for an entire NBA season.",
|
|
353
|
+
type: "league",
|
|
354
|
+
league: "nba",
|
|
290
355
|
},
|
|
291
|
-
// the_big_o: {
|
|
292
|
-
// id: "the_big_o",
|
|
293
|
-
// name: "The Big O",
|
|
294
|
-
// description: "Rate 250 NBA games.",
|
|
295
|
-
// },
|
|
296
356
|
mid_table: {
|
|
297
357
|
id: "mid_table",
|
|
298
358
|
name: "Mid Table",
|
|
299
359
|
description: "Rate 50 EPL games.",
|
|
360
|
+
type: "league",
|
|
361
|
+
league: "epl",
|
|
300
362
|
},
|
|
301
363
|
fan_of_the_match: {
|
|
302
364
|
id: "fan_of_the_match",
|
|
303
365
|
name: "Fan of the Match",
|
|
304
366
|
description: "Rate 100 EPL games.",
|
|
367
|
+
type: "league",
|
|
368
|
+
league: "epl",
|
|
305
369
|
},
|
|
306
370
|
super_ai: {
|
|
307
371
|
id: "super_ai",
|
|
308
372
|
name: "Super AI",
|
|
309
373
|
description: "Rate 260 EPL games.",
|
|
374
|
+
type: "league",
|
|
375
|
+
league: "epl",
|
|
310
376
|
},
|
|
311
377
|
dick_butkus: {
|
|
312
378
|
id: "dick_butkus",
|
|
313
379
|
name: "Dick Butkus",
|
|
314
380
|
description: "Rate 50 CFB games.",
|
|
381
|
+
type: "league",
|
|
382
|
+
league: "cfb",
|
|
315
383
|
},
|
|
316
384
|
the_kick_six: {
|
|
317
385
|
id: "the_kick_six",
|
|
318
386
|
name: "The Kick Six",
|
|
319
387
|
description: "Rate 100 CFB games.",
|
|
388
|
+
type: "league",
|
|
389
|
+
league: "cfb",
|
|
320
390
|
},
|
|
321
391
|
hit_the_heismann: {
|
|
322
392
|
id: "hit_the_heismann",
|
|
323
393
|
name: "Hit the Heismann",
|
|
324
394
|
description: "Rate an entire season of CFB.",
|
|
395
|
+
type: "league",
|
|
396
|
+
league: "cfb",
|
|
325
397
|
},
|
|
326
398
|
coin_toss: {
|
|
327
399
|
id: "coin_toss",
|
|
328
400
|
name: "Coin Toss",
|
|
329
401
|
description: "Rate 50 NFL games.",
|
|
402
|
+
type: "league",
|
|
403
|
+
league: "nfl",
|
|
330
404
|
},
|
|
331
405
|
golden_jacket: {
|
|
332
406
|
id: "golden_jacket",
|
|
333
407
|
name: "Golden Jacket",
|
|
334
408
|
description: "Rate 100 NFL games.",
|
|
409
|
+
type: "league",
|
|
410
|
+
league: "nfl",
|
|
335
411
|
},
|
|
336
412
|
pop_the_champagne: {
|
|
337
413
|
id: "pop_the_champagne",
|
|
338
414
|
name: "Pop the Champagne",
|
|
339
415
|
description: "Rate an entire season of NFL.",
|
|
416
|
+
type: "league",
|
|
417
|
+
league: "nfl",
|
|
340
418
|
},
|
|
341
419
|
game_grower: {
|
|
342
420
|
id: "game_grower",
|
|
343
421
|
name: "Game Grower",
|
|
344
422
|
description: "Rate 50 MLS games.",
|
|
423
|
+
type: "league",
|
|
424
|
+
league: "mls",
|
|
345
425
|
},
|
|
346
426
|
fandon_donovan: {
|
|
347
427
|
id: "fandon_donovan",
|
|
348
428
|
name: "Fandon Donovan",
|
|
349
429
|
description: "Rate 100 MLS games.",
|
|
430
|
+
type: "league",
|
|
431
|
+
league: "mls",
|
|
350
432
|
},
|
|
351
433
|
soccer_stud: {
|
|
352
434
|
id: "soccer_stud",
|
|
353
435
|
name: "Soccer Stud",
|
|
354
436
|
description: "Rate an entire season of MLS.",
|
|
437
|
+
type: "league",
|
|
438
|
+
league: "mls",
|
|
355
439
|
},
|
|
356
440
|
};
|
package/dist/models/rating.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { createAgreeRatingSchema, createRatingSchema, profileRatingStatsSchema, ratingLikeSchema, ratingSchema, roundStatsSchema, searchRatingSchema, seasonGroupStatsSchema, seasonStatsSchema, threadCommentLikeSchema, threadCommentSchema } from "../schemas/rating";
|
|
2
|
+
import { createAgreeRatingSchema, createRatingSchema, profileRatingStatsSchema, 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
5
|
export type ProfileRatingStats = z.infer<typeof profileRatingStatsSchema>;
|
|
@@ -7,6 +7,7 @@ export type SeasonStats = z.infer<typeof seasonStatsSchema>;
|
|
|
7
7
|
export type SeasonGrouping = z.infer<typeof seasonGroupingSchema>;
|
|
8
8
|
export type SeasonGroupStats = z.infer<typeof seasonGroupStatsSchema>;
|
|
9
9
|
export type RoundStats = z.infer<typeof roundStatsSchema>;
|
|
10
|
+
export type SeriesStats = z.infer<typeof seriesStatsSchema>;
|
|
10
11
|
export type RatingLike = z.infer<typeof ratingLikeSchema>;
|
|
11
12
|
export type CreateRating = z.infer<typeof createRatingSchema>;
|
|
12
13
|
export type SearchRating = z.infer<typeof searchRatingSchema>;
|