rategame-shared 1.1.166 → 1.1.167
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 +82 -0
- package/dist/schemas/game.d.ts +232 -52
- package/dist/schemas/rating.d.ts +27 -0
- package/dist/schemas/team.d.ts +65 -2
- package/dist/schemas/user.d.ts +48 -0
- package/dist/schemas/user.js +13 -0
- 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,106 +204,147 @@ 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",
|
|
290
348
|
},
|
|
291
349
|
// the_big_o: {
|
|
292
350
|
// id: "the_big_o",
|
|
@@ -297,60 +355,84 @@ exports.achievementsMap = {
|
|
|
297
355
|
id: "mid_table",
|
|
298
356
|
name: "Mid Table",
|
|
299
357
|
description: "Rate 50 EPL games.",
|
|
358
|
+
type: "league",
|
|
359
|
+
league: "epl",
|
|
300
360
|
},
|
|
301
361
|
fan_of_the_match: {
|
|
302
362
|
id: "fan_of_the_match",
|
|
303
363
|
name: "Fan of the Match",
|
|
304
364
|
description: "Rate 100 EPL games.",
|
|
365
|
+
type: "league",
|
|
366
|
+
league: "epl",
|
|
305
367
|
},
|
|
306
368
|
super_ai: {
|
|
307
369
|
id: "super_ai",
|
|
308
370
|
name: "Super AI",
|
|
309
371
|
description: "Rate 260 EPL games.",
|
|
372
|
+
type: "league",
|
|
373
|
+
league: "epl",
|
|
310
374
|
},
|
|
311
375
|
dick_butkus: {
|
|
312
376
|
id: "dick_butkus",
|
|
313
377
|
name: "Dick Butkus",
|
|
314
378
|
description: "Rate 50 CFB games.",
|
|
379
|
+
type: "league",
|
|
380
|
+
league: "cfb",
|
|
315
381
|
},
|
|
316
382
|
the_kick_six: {
|
|
317
383
|
id: "the_kick_six",
|
|
318
384
|
name: "The Kick Six",
|
|
319
385
|
description: "Rate 100 CFB games.",
|
|
386
|
+
type: "league",
|
|
387
|
+
league: "cfb",
|
|
320
388
|
},
|
|
321
389
|
hit_the_heismann: {
|
|
322
390
|
id: "hit_the_heismann",
|
|
323
391
|
name: "Hit the Heismann",
|
|
324
392
|
description: "Rate an entire season of CFB.",
|
|
393
|
+
type: "league",
|
|
394
|
+
league: "cfb",
|
|
325
395
|
},
|
|
326
396
|
coin_toss: {
|
|
327
397
|
id: "coin_toss",
|
|
328
398
|
name: "Coin Toss",
|
|
329
399
|
description: "Rate 50 NFL games.",
|
|
400
|
+
type: "league",
|
|
401
|
+
league: "nfl",
|
|
330
402
|
},
|
|
331
403
|
golden_jacket: {
|
|
332
404
|
id: "golden_jacket",
|
|
333
405
|
name: "Golden Jacket",
|
|
334
406
|
description: "Rate 100 NFL games.",
|
|
407
|
+
type: "league",
|
|
408
|
+
league: "nfl",
|
|
335
409
|
},
|
|
336
410
|
pop_the_champagne: {
|
|
337
411
|
id: "pop_the_champagne",
|
|
338
412
|
name: "Pop the Champagne",
|
|
339
413
|
description: "Rate an entire season of NFL.",
|
|
414
|
+
type: "league",
|
|
415
|
+
league: "nfl",
|
|
340
416
|
},
|
|
341
417
|
game_grower: {
|
|
342
418
|
id: "game_grower",
|
|
343
419
|
name: "Game Grower",
|
|
344
420
|
description: "Rate 50 MLS games.",
|
|
421
|
+
type: "league",
|
|
422
|
+
league: "mls",
|
|
345
423
|
},
|
|
346
424
|
fandon_donovan: {
|
|
347
425
|
id: "fandon_donovan",
|
|
348
426
|
name: "Fandon Donovan",
|
|
349
427
|
description: "Rate 100 MLS games.",
|
|
428
|
+
type: "league",
|
|
429
|
+
league: "mls",
|
|
350
430
|
},
|
|
351
431
|
soccer_stud: {
|
|
352
432
|
id: "soccer_stud",
|
|
353
433
|
name: "Soccer Stud",
|
|
354
434
|
description: "Rate an entire season of MLS.",
|
|
435
|
+
type: "league",
|
|
436
|
+
league: "mls",
|
|
355
437
|
},
|
|
356
438
|
};
|