rategame-shared 1.1.288 → 1.1.290
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/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/models/support.d.ts +4 -0
- package/dist/models/support.js +2 -0
- package/dist/schemas/list.d.ts +9 -9
- package/dist/schemas/list.js +2 -2
- package/dist/schemas/stadium.d.ts +3 -0
- package/dist/schemas/stadium.js +1 -0
- package/dist/schemas/support.d.ts +55 -0
- package/dist/schemas/support.js +15 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from "./schemas/team";
|
|
|
5
5
|
export * from "./schemas/notification";
|
|
6
6
|
export * from "./schemas/chat";
|
|
7
7
|
export * from "./schemas/feedback";
|
|
8
|
+
export * from "./schemas/support";
|
|
8
9
|
export * from "./schemas/list";
|
|
9
10
|
export * from "./schemas/moderation";
|
|
10
11
|
export * from "./schemas/userEvent";
|
|
@@ -18,6 +19,7 @@ export * from "./models/team";
|
|
|
18
19
|
export * from "./models/notification";
|
|
19
20
|
export * from "./models/chat";
|
|
20
21
|
export * from "./models/feedback";
|
|
22
|
+
export * from "./models/support";
|
|
21
23
|
export * from "./models/list";
|
|
22
24
|
export * from "./models/moderation";
|
|
23
25
|
export * from "./models/userEvent";
|
package/dist/index.js
CHANGED
|
@@ -21,6 +21,7 @@ __exportStar(require("./schemas/team"), exports);
|
|
|
21
21
|
__exportStar(require("./schemas/notification"), exports);
|
|
22
22
|
__exportStar(require("./schemas/chat"), exports);
|
|
23
23
|
__exportStar(require("./schemas/feedback"), exports);
|
|
24
|
+
__exportStar(require("./schemas/support"), exports);
|
|
24
25
|
__exportStar(require("./schemas/list"), exports);
|
|
25
26
|
__exportStar(require("./schemas/moderation"), exports);
|
|
26
27
|
__exportStar(require("./schemas/userEvent"), exports);
|
|
@@ -34,6 +35,7 @@ __exportStar(require("./models/team"), exports);
|
|
|
34
35
|
__exportStar(require("./models/notification"), exports);
|
|
35
36
|
__exportStar(require("./models/chat"), exports);
|
|
36
37
|
__exportStar(require("./models/feedback"), exports);
|
|
38
|
+
__exportStar(require("./models/support"), exports);
|
|
37
39
|
__exportStar(require("./models/list"), exports);
|
|
38
40
|
__exportStar(require("./models/moderation"), exports);
|
|
39
41
|
__exportStar(require("./models/userEvent"), exports);
|
package/dist/schemas/list.d.ts
CHANGED
|
@@ -1025,13 +1025,13 @@ export declare const listSchema: z.ZodObject<{
|
|
|
1025
1025
|
badge?: string | undefined;
|
|
1026
1026
|
}>;
|
|
1027
1027
|
itemIds: z.ZodArray<z.ZodString, "many">;
|
|
1028
|
-
type: z.ZodEnum<["game", "rating", "stadium"]>;
|
|
1028
|
+
type: z.ZodEnum<["game", "rating", "stadium", "stadium-rating"]>;
|
|
1029
1029
|
league: z.ZodOptional<z.ZodString>;
|
|
1030
1030
|
season: z.ZodOptional<z.ZodString>;
|
|
1031
1031
|
public: z.ZodBoolean;
|
|
1032
1032
|
likesCount: z.ZodOptional<z.ZodNumber>;
|
|
1033
1033
|
}, "strip", z.ZodTypeAny, {
|
|
1034
|
-
type: "rating" | "stadium" | "game";
|
|
1034
|
+
type: "rating" | "stadium" | "game" | "stadium-rating";
|
|
1035
1035
|
id: string;
|
|
1036
1036
|
name: string;
|
|
1037
1037
|
public: boolean;
|
|
@@ -1050,7 +1050,7 @@ export declare const listSchema: z.ZodObject<{
|
|
|
1050
1050
|
season?: string | undefined;
|
|
1051
1051
|
likesCount?: number | undefined;
|
|
1052
1052
|
}, {
|
|
1053
|
-
type: "rating" | "stadium" | "game";
|
|
1053
|
+
type: "rating" | "stadium" | "game" | "stadium-rating";
|
|
1054
1054
|
id: string;
|
|
1055
1055
|
name: string;
|
|
1056
1056
|
public: boolean;
|
|
@@ -2095,13 +2095,13 @@ export declare const listCreateSchema: z.ZodObject<Omit<{
|
|
|
2095
2095
|
badge?: string | undefined;
|
|
2096
2096
|
}>;
|
|
2097
2097
|
itemIds: z.ZodArray<z.ZodString, "many">;
|
|
2098
|
-
type: z.ZodEnum<["game", "rating", "stadium"]>;
|
|
2098
|
+
type: z.ZodEnum<["game", "rating", "stadium", "stadium-rating"]>;
|
|
2099
2099
|
league: z.ZodOptional<z.ZodString>;
|
|
2100
2100
|
season: z.ZodOptional<z.ZodString>;
|
|
2101
2101
|
public: z.ZodBoolean;
|
|
2102
2102
|
likesCount: z.ZodOptional<z.ZodNumber>;
|
|
2103
2103
|
}, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
|
|
2104
|
-
type: "rating" | "stadium" | "game";
|
|
2104
|
+
type: "rating" | "stadium" | "game" | "stadium-rating";
|
|
2105
2105
|
name: string;
|
|
2106
2106
|
public: boolean;
|
|
2107
2107
|
user: {
|
|
@@ -2117,7 +2117,7 @@ export declare const listCreateSchema: z.ZodObject<Omit<{
|
|
|
2117
2117
|
season?: string | undefined;
|
|
2118
2118
|
likesCount?: number | undefined;
|
|
2119
2119
|
}, {
|
|
2120
|
-
type: "rating" | "stadium" | "game";
|
|
2120
|
+
type: "rating" | "stadium" | "game" | "stadium-rating";
|
|
2121
2121
|
name: string;
|
|
2122
2122
|
public: boolean;
|
|
2123
2123
|
user: {
|
|
@@ -5283,10 +5283,10 @@ export declare const searchListSchema: z.ZodObject<{
|
|
|
5283
5283
|
limit: z.ZodOptional<z.ZodString>;
|
|
5284
5284
|
userId: z.ZodOptional<z.ZodString>;
|
|
5285
5285
|
showPrivate: z.ZodOptional<z.ZodBoolean>;
|
|
5286
|
-
type: z.ZodOptional<z.ZodEnum<["game", "rating", "stadium"]>>;
|
|
5286
|
+
type: z.ZodOptional<z.ZodEnum<["game", "rating", "stadium", "stadium-rating"]>>;
|
|
5287
5287
|
profileId: z.ZodOptional<z.ZodString>;
|
|
5288
5288
|
}, "strip", z.ZodTypeAny, {
|
|
5289
|
-
type?: "rating" | "stadium" | "game" | undefined;
|
|
5289
|
+
type?: "rating" | "stadium" | "game" | "stadium-rating" | undefined;
|
|
5290
5290
|
offset?: string | undefined;
|
|
5291
5291
|
q?: string | undefined;
|
|
5292
5292
|
limit?: string | undefined;
|
|
@@ -5295,7 +5295,7 @@ export declare const searchListSchema: z.ZodObject<{
|
|
|
5295
5295
|
showPrivate?: boolean | undefined;
|
|
5296
5296
|
profileId?: string | undefined;
|
|
5297
5297
|
}, {
|
|
5298
|
-
type?: "rating" | "stadium" | "game" | undefined;
|
|
5298
|
+
type?: "rating" | "stadium" | "game" | "stadium-rating" | undefined;
|
|
5299
5299
|
offset?: string | undefined;
|
|
5300
5300
|
q?: string | undefined;
|
|
5301
5301
|
limit?: string | undefined;
|
package/dist/schemas/list.js
CHANGED
|
@@ -11,7 +11,7 @@ exports.listSchema = zod_1.z.object({
|
|
|
11
11
|
updatedAt: zod_1.z.number().optional(),
|
|
12
12
|
user: user_1.reducedUserSchema,
|
|
13
13
|
itemIds: zod_1.z.array(zod_1.z.string()),
|
|
14
|
-
type: zod_1.z.enum(["game", "rating", "stadium"]),
|
|
14
|
+
type: zod_1.z.enum(["game", "rating", "stadium", "stadium-rating"]),
|
|
15
15
|
league: zod_1.z.string().optional(),
|
|
16
16
|
season: zod_1.z.string().optional(),
|
|
17
17
|
public: zod_1.z.boolean(),
|
|
@@ -48,6 +48,6 @@ exports.searchListSchema = zod_1.z.object({
|
|
|
48
48
|
limit: zod_1.z.string().optional(),
|
|
49
49
|
userId: zod_1.z.string().optional(),
|
|
50
50
|
showPrivate: zod_1.z.boolean().optional(),
|
|
51
|
-
type: zod_1.z.enum(["game", "rating", "stadium"]).optional(),
|
|
51
|
+
type: zod_1.z.enum(["game", "rating", "stadium", "stadium-rating"]).optional(),
|
|
52
52
|
profileId: zod_1.z.string().optional(),
|
|
53
53
|
});
|
|
@@ -1779,8 +1779,10 @@ export declare const searchStadiumRatingSchema: z.ZodObject<{
|
|
|
1779
1779
|
userId: z.ZodOptional<z.ZodString>;
|
|
1780
1780
|
username: z.ZodOptional<z.ZodString>;
|
|
1781
1781
|
league: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"mls">, z.ZodLiteral<"wnba">, z.ZodLiteral<"cwc">, z.ZodLiteral<"global">]>>;
|
|
1782
|
+
q: z.ZodOptional<z.ZodString>;
|
|
1782
1783
|
}, "strip", z.ZodTypeAny, {
|
|
1783
1784
|
offset?: string | undefined;
|
|
1785
|
+
q?: string | undefined;
|
|
1784
1786
|
league?: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "cbb" | "cfb" | "epl" | "mls" | "wnba" | "cwc" | undefined;
|
|
1785
1787
|
username?: string | undefined;
|
|
1786
1788
|
limit?: string | undefined;
|
|
@@ -1789,6 +1791,7 @@ export declare const searchStadiumRatingSchema: z.ZodObject<{
|
|
|
1789
1791
|
showEmptyRatings?: string | undefined;
|
|
1790
1792
|
}, {
|
|
1791
1793
|
offset?: string | undefined;
|
|
1794
|
+
q?: string | undefined;
|
|
1792
1795
|
league?: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "cbb" | "cfb" | "epl" | "mls" | "wnba" | "cwc" | undefined;
|
|
1793
1796
|
username?: string | undefined;
|
|
1794
1797
|
limit?: string | undefined;
|
package/dist/schemas/stadium.js
CHANGED
|
@@ -75,6 +75,7 @@ exports.searchStadiumRatingSchema = zod_1.z.object({
|
|
|
75
75
|
userId: zod_1.z.string().optional(),
|
|
76
76
|
username: zod_1.z.string().optional(),
|
|
77
77
|
league: sharedTypes_1.leagueSlug.optional(),
|
|
78
|
+
q: zod_1.z.string().optional(),
|
|
78
79
|
});
|
|
79
80
|
exports.createStadiumRatingSchema = exports.stadiumRatingSchema
|
|
80
81
|
.omit({
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const supportSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
email: z.ZodString;
|
|
6
|
+
subject: z.ZodString;
|
|
7
|
+
message: z.ZodString;
|
|
8
|
+
status: z.ZodOptional<z.ZodEnum<["new", "in-progress", "resolved"]>>;
|
|
9
|
+
supportEmail: z.ZodOptional<z.ZodString>;
|
|
10
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
message: string;
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
email: string;
|
|
16
|
+
subject: string;
|
|
17
|
+
status?: "in-progress" | "new" | "resolved" | undefined;
|
|
18
|
+
createdAt?: number | undefined;
|
|
19
|
+
supportEmail?: string | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
message: string;
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
email: string;
|
|
25
|
+
subject: string;
|
|
26
|
+
status?: "in-progress" | "new" | "resolved" | undefined;
|
|
27
|
+
createdAt?: number | undefined;
|
|
28
|
+
supportEmail?: string | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export declare const supportCreateSchema: z.ZodObject<Omit<{
|
|
31
|
+
id: z.ZodString;
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
email: z.ZodString;
|
|
34
|
+
subject: z.ZodString;
|
|
35
|
+
message: z.ZodString;
|
|
36
|
+
status: z.ZodOptional<z.ZodEnum<["new", "in-progress", "resolved"]>>;
|
|
37
|
+
supportEmail: z.ZodOptional<z.ZodString>;
|
|
38
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
}, "id">, "strip", z.ZodTypeAny, {
|
|
40
|
+
message: string;
|
|
41
|
+
name: string;
|
|
42
|
+
email: string;
|
|
43
|
+
subject: string;
|
|
44
|
+
status?: "in-progress" | "new" | "resolved" | undefined;
|
|
45
|
+
createdAt?: number | undefined;
|
|
46
|
+
supportEmail?: string | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
message: string;
|
|
49
|
+
name: string;
|
|
50
|
+
email: string;
|
|
51
|
+
subject: string;
|
|
52
|
+
status?: "in-progress" | "new" | "resolved" | undefined;
|
|
53
|
+
createdAt?: number | undefined;
|
|
54
|
+
supportEmail?: string | undefined;
|
|
55
|
+
}>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.supportCreateSchema = exports.supportSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.supportSchema = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.string(),
|
|
7
|
+
name: zod_1.z.string(),
|
|
8
|
+
email: zod_1.z.string().email(),
|
|
9
|
+
subject: zod_1.z.string(),
|
|
10
|
+
message: zod_1.z.string(),
|
|
11
|
+
status: zod_1.z.enum(["new", "in-progress", "resolved"]).optional(),
|
|
12
|
+
supportEmail: zod_1.z.string().optional(),
|
|
13
|
+
createdAt: zod_1.z.number().optional(),
|
|
14
|
+
});
|
|
15
|
+
exports.supportCreateSchema = exports.supportSchema.omit({ id: true });
|