rategame-shared 1.1.289 → 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 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);
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ import { supportCreateSchema, supportSchema } from "../schemas/support";
3
+ export type Support = z.infer<typeof supportSchema>;
4
+ export type SupportCreate = z.infer<typeof supportCreateSchema>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.289",
3
+ "version": "1.1.290",
4
4
  "description": "This package contains shared resources for the Rate Game project.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",