@zyacreatives/shared 1.5.7 → 1.5.8
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.
|
@@ -105,6 +105,9 @@ export declare const ProjectCommentEntitySchema: z.ZodObject<{
|
|
|
105
105
|
id: z.ZodCUID2;
|
|
106
106
|
projectId: z.ZodCUID2;
|
|
107
107
|
userId: z.ZodCUID2;
|
|
108
|
+
commenterName: z.ZodString;
|
|
109
|
+
commenterUsername: z.ZodString;
|
|
110
|
+
commenterImageUrl: z.ZodOptional<z.ZodString>;
|
|
108
111
|
parentCommentId: z.ZodOptional<z.ZodCUID2>;
|
|
109
112
|
content: z.ZodString;
|
|
110
113
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -252,6 +255,9 @@ export declare const CommentOnProjectOutputSchema: z.ZodObject<{
|
|
|
252
255
|
id: z.ZodCUID2;
|
|
253
256
|
projectId: z.ZodCUID2;
|
|
254
257
|
userId: z.ZodCUID2;
|
|
258
|
+
commenterName: z.ZodString;
|
|
259
|
+
commenterUsername: z.ZodString;
|
|
260
|
+
commenterImageUrl: z.ZodOptional<z.ZodString>;
|
|
255
261
|
parentCommentId: z.ZodOptional<z.ZodCUID2>;
|
|
256
262
|
content: z.ZodString;
|
|
257
263
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -260,6 +266,9 @@ export declare const DeleteProjectCommentOutputSchema: z.ZodObject<{
|
|
|
260
266
|
id: z.ZodCUID2;
|
|
261
267
|
projectId: z.ZodCUID2;
|
|
262
268
|
userId: z.ZodCUID2;
|
|
269
|
+
commenterName: z.ZodString;
|
|
270
|
+
commenterUsername: z.ZodString;
|
|
271
|
+
commenterImageUrl: z.ZodOptional<z.ZodString>;
|
|
263
272
|
parentCommentId: z.ZodOptional<z.ZodCUID2>;
|
|
264
273
|
content: z.ZodString;
|
|
265
274
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -397,6 +406,9 @@ export declare const ProjectWithProjectCommentsEntitySchema: z.ZodObject<{
|
|
|
397
406
|
id: z.ZodCUID2;
|
|
398
407
|
projectId: z.ZodCUID2;
|
|
399
408
|
userId: z.ZodCUID2;
|
|
409
|
+
commenterName: z.ZodString;
|
|
410
|
+
commenterUsername: z.ZodString;
|
|
411
|
+
commenterImageUrl: z.ZodOptional<z.ZodString>;
|
|
400
412
|
parentCommentId: z.ZodOptional<z.ZodCUID2>;
|
|
401
413
|
content: z.ZodString;
|
|
402
414
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
package/dist/schemas/project.js
CHANGED
|
@@ -156,6 +156,9 @@ exports.ProjectCommentEntitySchema = zod_openapi_1.z
|
|
|
156
156
|
id: zod_openapi_1.z.cuid2(),
|
|
157
157
|
projectId: zod_openapi_1.z.cuid2(),
|
|
158
158
|
userId: zod_openapi_1.z.cuid2(),
|
|
159
|
+
commenterName: zod_openapi_1.z.string(),
|
|
160
|
+
commenterUsername: zod_openapi_1.z.string(),
|
|
161
|
+
commenterImageUrl: zod_openapi_1.z.string().optional(),
|
|
159
162
|
parentCommentId: zod_openapi_1.z.cuid2().optional(),
|
|
160
163
|
content: zod_openapi_1.z.string().min(1),
|
|
161
164
|
createdAt: zod_openapi_1.z.coerce.date().optional(),
|
|
@@ -256,7 +259,6 @@ exports.CommentOnProjectInputSchema = zod_openapi_1.z
|
|
|
256
259
|
exports.DeleteProjectCommentInputSchema = zod_openapi_1.z.object({
|
|
257
260
|
commentId: zod_openapi_1.z.cuid2(),
|
|
258
261
|
});
|
|
259
|
-
/* ------------------------------ Output Schemas ------------------------------ */
|
|
260
262
|
exports.CreateProjectOutputSchema = exports.ProjectEntitySchema;
|
|
261
263
|
exports.UpdateProjectOutputSchema = exports.ProjectEntitySchema;
|
|
262
264
|
exports.CommentOnProjectOutputSchema = exports.ProjectCommentEntitySchema;
|
|
@@ -289,7 +291,6 @@ exports.ListProjectsInputSchema = zod_openapi_1.z
|
|
|
289
291
|
.openapi({
|
|
290
292
|
title: "ListProjectsInput",
|
|
291
293
|
});
|
|
292
|
-
/* ------------------------------ Aggregates ------------------------------ */
|
|
293
294
|
exports.ProjectWithProjectViewsEntitySchema = exports.MinimalProjectSchema.extend({
|
|
294
295
|
views: zod_openapi_1.z.array(exports.ProjectViewEntitySchema),
|
|
295
296
|
}).openapi({
|
package/package.json
CHANGED
package/src/schemas/project.ts
CHANGED
|
@@ -163,6 +163,9 @@ export const ProjectCommentEntitySchema = z
|
|
|
163
163
|
id: z.cuid2(),
|
|
164
164
|
projectId: z.cuid2(),
|
|
165
165
|
userId: z.cuid2(),
|
|
166
|
+
commenterName: z.string(),
|
|
167
|
+
commenterUsername:z.string(),
|
|
168
|
+
commenterImageUrl: z.string().optional(),
|
|
166
169
|
parentCommentId: z.cuid2().optional(),
|
|
167
170
|
content: z.string().min(1),
|
|
168
171
|
createdAt: z.coerce.date().optional(),
|
|
@@ -274,7 +277,6 @@ export const DeleteProjectCommentInputSchema = z.object({
|
|
|
274
277
|
commentId: z.cuid2(),
|
|
275
278
|
});
|
|
276
279
|
|
|
277
|
-
/* ------------------------------ Output Schemas ------------------------------ */
|
|
278
280
|
export const CreateProjectOutputSchema = ProjectEntitySchema;
|
|
279
281
|
export const UpdateProjectOutputSchema = ProjectEntitySchema;
|
|
280
282
|
export const CommentOnProjectOutputSchema = ProjectCommentEntitySchema;
|
|
@@ -312,7 +314,6 @@ export const ListProjectsInputSchema = z
|
|
|
312
314
|
title: "ListProjectsInput",
|
|
313
315
|
});
|
|
314
316
|
|
|
315
|
-
/* ------------------------------ Aggregates ------------------------------ */
|
|
316
317
|
export const ProjectWithProjectViewsEntitySchema = MinimalProjectSchema.extend({
|
|
317
318
|
views: z.array(ProjectViewEntitySchema),
|
|
318
319
|
}).openapi({
|
package/src/types/project.ts
CHANGED
|
@@ -67,6 +67,7 @@ export type CommentOnProjectInput = z.infer<typeof CommentOnProjectInputSchema>;
|
|
|
67
67
|
export type CommentOnProjectOutput = z.infer<
|
|
68
68
|
typeof CommentOnProjectOutputSchema
|
|
69
69
|
>;
|
|
70
|
+
|
|
70
71
|
export type DeleteProjectCommentOutput = z.infer<
|
|
71
72
|
typeof DeleteProjectCommentOutputSchema
|
|
72
73
|
>;
|