rategame-shared 1.1.160 → 1.1.161
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.d.ts +2 -0
- package/dist/helpers/index.js +8 -1
- package/package.json +1 -1
package/dist/helpers/index.d.ts
CHANGED
|
@@ -7,5 +7,7 @@ export declare const firestoreTimestampSchema: z.ZodType<Timestamp, z.ZodTypeDef
|
|
|
7
7
|
type LeagueSlug = "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "mls" | "cbb" | "cfb" | "epl";
|
|
8
8
|
export declare const urlPrefixMap: Record<LeagueSlug, string>;
|
|
9
9
|
export type TimeFilter = z.infer<typeof timeFilterSchema>;
|
|
10
|
+
export type MilestoneType = "streak" | "ratings";
|
|
11
|
+
export declare const milestonesMap: Record<MilestoneType, number[]>;
|
|
10
12
|
export declare const achievementsMap: Record<typeof achievementId._type, Achievement>;
|
|
11
13
|
export {};
|
package/dist/helpers/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.achievementsMap = exports.urlPrefixMap = exports.firestoreTimestampSchema = void 0;
|
|
3
|
+
exports.achievementsMap = exports.milestonesMap = exports.urlPrefixMap = exports.firestoreTimestampSchema = void 0;
|
|
4
4
|
const firestore_1 = require("@firebase/firestore");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
exports.firestoreTimestampSchema = zod_1.z.instanceof(firestore_1.Timestamp);
|
|
@@ -15,6 +15,13 @@ exports.urlPrefixMap = {
|
|
|
15
15
|
cbb: "leagues/cbb/",
|
|
16
16
|
cfb: "leagues/cfb/",
|
|
17
17
|
};
|
|
18
|
+
exports.milestonesMap = {
|
|
19
|
+
streak: [
|
|
20
|
+
3, 7, 10, 14, 21, 30, 40, 50, 75, 100, 150, 200, 250, 300, 400, 500, 750,
|
|
21
|
+
1000,
|
|
22
|
+
],
|
|
23
|
+
ratings: [10, 25, 50, 100, 250, 500, 1000, 2000, 3000, 4000, 5000],
|
|
24
|
+
};
|
|
18
25
|
exports.achievementsMap = {
|
|
19
26
|
speed_rater: {
|
|
20
27
|
id: "speed_rater",
|