@zyacreatives/shared 2.0.44 → 2.0.45

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.
@@ -128,3 +128,9 @@ export declare const CreateMessageOutputSchema: z.ZodObject<{
128
128
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
129
129
  deletedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
130
130
  }, z.core.$strip>;
131
+ export declare const GetMessagesOutputSchema: z.ZodArray<z.ZodObject<{
132
+ id: z.ZodString;
133
+ messageId: z.ZodString;
134
+ fileId: z.ZodString;
135
+ order: z.ZodNumber;
136
+ }, z.core.$strip>>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateMessageOutputSchema = exports.CreateMessageInputSchema = exports.MessageWithFilesEntitySchema = exports.MessageFileEntitySchema = exports.MessageEntitySchema = void 0;
3
+ exports.GetMessagesOutputSchema = exports.CreateMessageOutputSchema = exports.CreateMessageInputSchema = exports.MessageWithFilesEntitySchema = exports.MessageFileEntitySchema = exports.MessageEntitySchema = void 0;
4
4
  const zod_openapi_1 = require("@hono/zod-openapi");
5
5
  const constants_1 = require("../constants");
6
6
  const file_1 = require("./file");
@@ -102,3 +102,4 @@ exports.CreateMessageInputSchema = zod_openapi_1.z.object({
102
102
  }),
103
103
  });
104
104
  exports.CreateMessageOutputSchema = exports.MessageEntitySchema;
105
+ exports.GetMessagesOutputSchema = zod_openapi_1.z.array(exports.MessageFileEntitySchema);
@@ -1,7 +1,8 @@
1
1
  import z from "zod";
2
- import { CreateMessageInputSchema, CreateMessageOutputSchema, MessageEntitySchema, MessageFileEntitySchema, MessageWithFilesEntitySchema } from "../schemas/message";
2
+ import { CreateMessageInputSchema, CreateMessageOutputSchema, GetMessagesOutputSchema, MessageEntitySchema, MessageFileEntitySchema, MessageWithFilesEntitySchema } from "../schemas/message";
3
3
  export type MessageEntity = z.infer<typeof MessageEntitySchema>;
4
4
  export type MessageFileEntity = z.infer<typeof MessageFileEntitySchema>;
5
5
  export type MessageWithFilesEntity = z.infer<typeof MessageWithFilesEntitySchema>;
6
6
  export type CreateMessageInput = z.infer<typeof CreateMessageInputSchema>;
7
7
  export type CreateMessageOutput = z.infer<typeof CreateMessageOutputSchema>;
8
+ export type GetMessagesOutput = z.infer<typeof GetMessagesOutputSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.0.44",
3
+ "version": "2.0.45",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -108,3 +108,5 @@ export const CreateMessageInputSchema = z.object({
108
108
  });
109
109
 
110
110
  export const CreateMessageOutputSchema = MessageEntitySchema;
111
+
112
+ export const GetMessagesOutputSchema = z.array(MessageFileEntitySchema);
@@ -2,6 +2,7 @@ import z from "zod";
2
2
  import {
3
3
  CreateMessageInputSchema,
4
4
  CreateMessageOutputSchema,
5
+ GetMessagesOutputSchema,
5
6
  MessageEntitySchema,
6
7
  MessageFileEntitySchema,
7
8
  MessageWithFilesEntitySchema,
@@ -18,3 +19,5 @@ export type MessageWithFilesEntity = z.infer<
18
19
  export type CreateMessageInput = z.infer<typeof CreateMessageInputSchema>;
19
20
 
20
21
  export type CreateMessageOutput = z.infer<typeof CreateMessageOutputSchema>;
22
+
23
+ export type GetMessagesOutput = z.infer<typeof GetMessagesOutputSchema>;