rategame-shared 1.1.186 → 1.1.188
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/feedback.d.ts +2 -1
- package/dist/schemas/feedback.d.ts +44 -0
- package/dist/schemas/feedback.js +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,10 +4,12 @@ export * from "./schemas/game";
|
|
|
4
4
|
export * from "./schemas/team";
|
|
5
5
|
export * from "./schemas/notification";
|
|
6
6
|
export * from "./schemas/chat";
|
|
7
|
+
export * from "./schemas/feedback";
|
|
7
8
|
export * from "./models/user";
|
|
8
9
|
export * from "./models/rating";
|
|
9
10
|
export * from "./models/game";
|
|
10
11
|
export * from "./models/team";
|
|
11
12
|
export * from "./models/notification";
|
|
12
13
|
export * from "./models/chat";
|
|
14
|
+
export * from "./models/feedback";
|
|
13
15
|
export * from "./helpers/index";
|
package/dist/index.js
CHANGED
|
@@ -20,10 +20,12 @@ __exportStar(require("./schemas/game"), exports);
|
|
|
20
20
|
__exportStar(require("./schemas/team"), exports);
|
|
21
21
|
__exportStar(require("./schemas/notification"), exports);
|
|
22
22
|
__exportStar(require("./schemas/chat"), exports);
|
|
23
|
+
__exportStar(require("./schemas/feedback"), exports);
|
|
23
24
|
__exportStar(require("./models/user"), exports);
|
|
24
25
|
__exportStar(require("./models/rating"), exports);
|
|
25
26
|
__exportStar(require("./models/game"), exports);
|
|
26
27
|
__exportStar(require("./models/team"), exports);
|
|
27
28
|
__exportStar(require("./models/notification"), exports);
|
|
28
29
|
__exportStar(require("./models/chat"), exports);
|
|
30
|
+
__exportStar(require("./models/feedback"), exports);
|
|
29
31
|
__exportStar(require("./helpers/index"), exports);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { feedbackSchema } from "../schemas/feedback";
|
|
2
|
+
import { feedbackCreateSchema, feedbackSchema } from "../schemas/feedback";
|
|
3
3
|
export type Feedback = z.infer<typeof feedbackSchema>;
|
|
4
|
+
export type FeedbackCreate = z.infer<typeof feedbackCreateSchema>;
|
|
@@ -45,3 +45,47 @@ export declare const feedbackSchema: z.ZodObject<{
|
|
|
45
45
|
};
|
|
46
46
|
createdAt: Date;
|
|
47
47
|
}>;
|
|
48
|
+
export declare const feedbackCreateSchema: z.ZodObject<Omit<{
|
|
49
|
+
id: z.ZodString;
|
|
50
|
+
content: z.ZodString;
|
|
51
|
+
createdAt: z.ZodDate;
|
|
52
|
+
user: z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
username: z.ZodOptional<z.ZodString>;
|
|
55
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
56
|
+
email: z.ZodOptional<z.ZodString>;
|
|
57
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
id: string;
|
|
60
|
+
email?: string | undefined;
|
|
61
|
+
username?: string | undefined;
|
|
62
|
+
avatarUrl?: string | undefined;
|
|
63
|
+
badge?: string | undefined;
|
|
64
|
+
}, {
|
|
65
|
+
id: string;
|
|
66
|
+
email?: string | undefined;
|
|
67
|
+
username?: string | undefined;
|
|
68
|
+
avatarUrl?: string | undefined;
|
|
69
|
+
badge?: string | undefined;
|
|
70
|
+
}>;
|
|
71
|
+
}, "id">, "strip", z.ZodTypeAny, {
|
|
72
|
+
content: string;
|
|
73
|
+
user: {
|
|
74
|
+
id: string;
|
|
75
|
+
email?: string | undefined;
|
|
76
|
+
username?: string | undefined;
|
|
77
|
+
avatarUrl?: string | undefined;
|
|
78
|
+
badge?: string | undefined;
|
|
79
|
+
};
|
|
80
|
+
createdAt: Date;
|
|
81
|
+
}, {
|
|
82
|
+
content: string;
|
|
83
|
+
user: {
|
|
84
|
+
id: string;
|
|
85
|
+
email?: string | undefined;
|
|
86
|
+
username?: string | undefined;
|
|
87
|
+
avatarUrl?: string | undefined;
|
|
88
|
+
badge?: string | undefined;
|
|
89
|
+
};
|
|
90
|
+
createdAt: Date;
|
|
91
|
+
}>;
|
package/dist/schemas/feedback.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.feedbackSchema = void 0;
|
|
3
|
+
exports.feedbackCreateSchema = exports.feedbackSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.feedbackSchema = zod_1.z.object({
|
|
6
6
|
id: zod_1.z.string(),
|
|
@@ -14,3 +14,4 @@ exports.feedbackSchema = zod_1.z.object({
|
|
|
14
14
|
badge: zod_1.z.string().optional(),
|
|
15
15
|
}),
|
|
16
16
|
});
|
|
17
|
+
exports.feedbackCreateSchema = exports.feedbackSchema.omit({ id: true });
|