@zyacreatives/shared 2.5.70 → 2.5.71
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/schemas/chat.d.ts +11 -0
- package/dist/schemas/chat.js +10 -1
- package/package.json +1 -1
- package/src/schemas/chat.ts +15 -0
package/dist/schemas/chat.d.ts
CHANGED
|
@@ -199,4 +199,15 @@ export declare const GetMessageRequestsForUserOutputSchema: z.ZodObject<{
|
|
|
199
199
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
200
200
|
}, z.core.$strip>;
|
|
201
201
|
export type GetMessageRequestsForUserOutput = z.infer<typeof GetMessageRequestsForUserOutputSchema>;
|
|
202
|
+
export declare const ReportChatInputSchema: z.ZodObject<{
|
|
203
|
+
complaint: z.ZodString;
|
|
204
|
+
messageId: z.ZodOptional<z.ZodCUID2>;
|
|
205
|
+
}, z.core.$strip>;
|
|
206
|
+
export type ReportChatInput = z.infer<typeof ReportChatInputSchema>;
|
|
207
|
+
export declare const ReportChatOutputSchema: z.ZodObject<{
|
|
208
|
+
reported: z.ZodBoolean;
|
|
209
|
+
chatId: z.ZodString;
|
|
210
|
+
messageId: z.ZodNullable<z.ZodString>;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
export type ReportChatOutput = z.infer<typeof ReportChatOutputSchema>;
|
|
202
213
|
export {};
|
package/dist/schemas/chat.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetMessageRequestsForUserOutputSchema = exports.GetChatsForUserOutputSchema = exports.GetChatsOutputSchema = exports.CreateChatOutputSchema = exports.DeclineMessageRequestInputSchema = exports.AcceptMessageRequestInputSchema = exports.ChatIdInputSchema = exports.CreateChatInputSchema = exports.ChatEntitySchema = exports.BaseChatEntitySchema = void 0;
|
|
3
|
+
exports.ReportChatOutputSchema = exports.ReportChatInputSchema = exports.GetMessageRequestsForUserOutputSchema = exports.GetChatsForUserOutputSchema = exports.GetChatsOutputSchema = exports.CreateChatOutputSchema = exports.DeclineMessageRequestInputSchema = exports.AcceptMessageRequestInputSchema = exports.ChatIdInputSchema = exports.CreateChatInputSchema = exports.ChatEntitySchema = exports.BaseChatEntitySchema = void 0;
|
|
4
4
|
const zod_openapi_1 = require("@hono/zod-openapi");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
/**
|
|
@@ -72,3 +72,12 @@ exports.GetChatsForUserOutputSchema = zod_openapi_1.z.object({
|
|
|
72
72
|
nextCursor: zod_openapi_1.z.string().nullable(),
|
|
73
73
|
});
|
|
74
74
|
exports.GetMessageRequestsForUserOutputSchema = exports.GetChatsForUserOutputSchema;
|
|
75
|
+
exports.ReportChatInputSchema = zod_openapi_1.z.object({
|
|
76
|
+
complaint: zod_openapi_1.z.string().trim().min(10).max(1000),
|
|
77
|
+
messageId: zod_openapi_1.z.cuid2().optional(),
|
|
78
|
+
});
|
|
79
|
+
exports.ReportChatOutputSchema = zod_openapi_1.z.object({
|
|
80
|
+
reported: zod_openapi_1.z.boolean(),
|
|
81
|
+
chatId: zod_openapi_1.z.string(),
|
|
82
|
+
messageId: zod_openapi_1.z.string().nullable(),
|
|
83
|
+
});
|
package/package.json
CHANGED
package/src/schemas/chat.ts
CHANGED
|
@@ -117,3 +117,18 @@ export const GetMessageRequestsForUserOutputSchema =
|
|
|
117
117
|
export type GetMessageRequestsForUserOutput = z.infer<
|
|
118
118
|
typeof GetMessageRequestsForUserOutputSchema
|
|
119
119
|
>;
|
|
120
|
+
|
|
121
|
+
export const ReportChatInputSchema = z.object({
|
|
122
|
+
complaint: z.string().trim().min(10).max(1000),
|
|
123
|
+
messageId: z.cuid2().optional(),
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
export type ReportChatInput = z.infer<typeof ReportChatInputSchema>
|
|
127
|
+
|
|
128
|
+
export const ReportChatOutputSchema = z.object({
|
|
129
|
+
reported: z.boolean(),
|
|
130
|
+
chatId: z.string(),
|
|
131
|
+
messageId: z.string().nullable(),
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
export type ReportChatOutput = z.infer<typeof ReportChatOutputSchema>
|