rategame-shared 1.1.532 → 1.1.534
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/playerProfileFormat.js +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/models/pollPrediction.d.ts +14 -0
- package/dist/models/pollPrediction.js +2 -0
- package/dist/schemas/pollPrediction.d.ts +12875 -0
- package/dist/schemas/pollPrediction.js +194 -0
- package/dist/schemas/team.d.ts +6 -0
- package/dist/schemas/team.js +2 -0
- package/package.json +2 -2
|
@@ -466,12 +466,12 @@ const getPlayerGameStats = (stats, league, position) => {
|
|
|
466
466
|
}
|
|
467
467
|
else if (positionCode.includes('RB') || positionCode.includes('RUNNING')) {
|
|
468
468
|
addFrom([
|
|
469
|
+
'rushing_attempts',
|
|
469
470
|
'rushing_yards',
|
|
470
471
|
'rushing_touchdowns',
|
|
471
472
|
'receptions',
|
|
472
|
-
'receiving_touchdowns',
|
|
473
|
-
'rushing_attempts',
|
|
474
473
|
'receiving_yards',
|
|
474
|
+
'receiving_touchdowns',
|
|
475
475
|
]);
|
|
476
476
|
}
|
|
477
477
|
else if (positionCode.includes('WR') ||
|
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export * from "./schemas/reactivation";
|
|
|
29
29
|
export * from "./schemas/standings";
|
|
30
30
|
export * from "./schemas/attendance";
|
|
31
31
|
export * from "./schemas/miniLeague";
|
|
32
|
+
export * from "./schemas/pollPrediction";
|
|
32
33
|
export * from "./models/user";
|
|
33
34
|
export * from "./models/rating";
|
|
34
35
|
export * from "./models/game";
|
|
@@ -68,5 +69,6 @@ export * from "./models/reactivation";
|
|
|
68
69
|
export * from "./models/standings";
|
|
69
70
|
export * from "./models/attendance";
|
|
70
71
|
export * from "./models/miniLeague";
|
|
72
|
+
export * from "./models/pollPrediction";
|
|
71
73
|
export * from "./constants";
|
|
72
74
|
export * from "./helpers/playerProfileFormat";
|
package/dist/index.js
CHANGED
|
@@ -45,6 +45,7 @@ __exportStar(require("./schemas/reactivation"), exports);
|
|
|
45
45
|
__exportStar(require("./schemas/standings"), exports);
|
|
46
46
|
__exportStar(require("./schemas/attendance"), exports);
|
|
47
47
|
__exportStar(require("./schemas/miniLeague"), exports);
|
|
48
|
+
__exportStar(require("./schemas/pollPrediction"), exports);
|
|
48
49
|
__exportStar(require("./models/user"), exports);
|
|
49
50
|
__exportStar(require("./models/rating"), exports);
|
|
50
51
|
__exportStar(require("./models/game"), exports);
|
|
@@ -84,5 +85,6 @@ __exportStar(require("./models/reactivation"), exports);
|
|
|
84
85
|
__exportStar(require("./models/standings"), exports);
|
|
85
86
|
__exportStar(require("./models/attendance"), exports);
|
|
86
87
|
__exportStar(require("./models/miniLeague"), exports);
|
|
88
|
+
__exportStar(require("./models/pollPrediction"), exports);
|
|
87
89
|
__exportStar(require("./constants"), exports);
|
|
88
90
|
__exportStar(require("./helpers/playerProfileFormat"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { pollPredictionLeagueSchema, pollPredictionBallotSchema, pollPredictionBallotScoreSchema, pollPredictionBallotTeamResultSchema, pollPredictionHomeResponseSchema, pollPredictionLeaderboardEntrySchema, pollPredictionLeaderboardResponseSchema, pollPredictionRoundSchema, pollPredictionRoundStatusSchema, pollPredictionSubmitBallotDtoSchema, pollPredictionTeamSchema, pollPredictionUserBallotsResponseSchema } from "../schemas/pollPrediction";
|
|
3
|
+
export type PollPredictionLeague = z.infer<typeof pollPredictionLeagueSchema>;
|
|
4
|
+
export type PollPredictionTeam = z.infer<typeof pollPredictionTeamSchema>;
|
|
5
|
+
export type PollPredictionRoundStatus = z.infer<typeof pollPredictionRoundStatusSchema>;
|
|
6
|
+
export type PollPredictionRound = z.infer<typeof pollPredictionRoundSchema>;
|
|
7
|
+
export type PollPredictionBallotTeamResult = z.infer<typeof pollPredictionBallotTeamResultSchema>;
|
|
8
|
+
export type PollPredictionBallotScore = z.infer<typeof pollPredictionBallotScoreSchema>;
|
|
9
|
+
export type PollPredictionBallot = z.infer<typeof pollPredictionBallotSchema>;
|
|
10
|
+
export type PollPredictionSubmitBallotDto = z.infer<typeof pollPredictionSubmitBallotDtoSchema>;
|
|
11
|
+
export type PollPredictionHomeResponse = z.infer<typeof pollPredictionHomeResponseSchema>;
|
|
12
|
+
export type PollPredictionLeaderboardEntry = z.infer<typeof pollPredictionLeaderboardEntrySchema>;
|
|
13
|
+
export type PollPredictionLeaderboardResponse = z.infer<typeof pollPredictionLeaderboardResponseSchema>;
|
|
14
|
+
export type PollPredictionUserBallotsResponse = z.infer<typeof pollPredictionUserBallotsResponseSchema>;
|