@zyacreatives/shared 1.8.7 → 1.8.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.
@@ -5,6 +5,9 @@ export declare const PostEntitySchema: z.ZodObject<{
5
5
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
6
  badge: z.ZodOptional<z.ZodString>;
7
7
  userId: z.ZodCUID2;
8
+ creatorUsername: z.ZodString;
9
+ creatorFullName: z.ZodOptional<z.ZodString>;
10
+ creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
8
11
  content: z.ZodString;
9
12
  title: z.ZodNullable<z.ZodString>;
10
13
  postType: z.ZodEnum<{
@@ -28,6 +31,9 @@ export declare const PostWithFilesEntitySchema: z.ZodObject<{
28
31
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
29
32
  badge: z.ZodOptional<z.ZodString>;
30
33
  userId: z.ZodCUID2;
34
+ creatorUsername: z.ZodString;
35
+ creatorFullName: z.ZodOptional<z.ZodString>;
36
+ creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
31
37
  content: z.ZodString;
32
38
  title: z.ZodNullable<z.ZodString>;
33
39
  postType: z.ZodEnum<{
@@ -71,6 +77,9 @@ export declare const CreatePostOutputSchema: z.ZodObject<{
71
77
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
72
78
  badge: z.ZodOptional<z.ZodString>;
73
79
  userId: z.ZodCUID2;
80
+ creatorUsername: z.ZodString;
81
+ creatorFullName: z.ZodOptional<z.ZodString>;
82
+ creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
74
83
  content: z.ZodString;
75
84
  title: z.ZodNullable<z.ZodString>;
76
85
  postType: z.ZodEnum<{
@@ -88,6 +97,9 @@ export declare const GetPostOutputSchema: z.ZodObject<{
88
97
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
89
98
  badge: z.ZodOptional<z.ZodString>;
90
99
  userId: z.ZodCUID2;
100
+ creatorUsername: z.ZodString;
101
+ creatorFullName: z.ZodOptional<z.ZodString>;
102
+ creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
91
103
  content: z.ZodString;
92
104
  title: z.ZodNullable<z.ZodString>;
93
105
  postType: z.ZodEnum<{
@@ -20,6 +20,9 @@ exports.PostEntitySchema = zod_openapi_1.z.object({
20
20
  userId: zod_openapi_1.z
21
21
  .cuid2()
22
22
  .openapi({ description: "User id", example: "ckj1a2b3c0000def" }),
23
+ creatorUsername: zod_openapi_1.z.string().openapi({ description: "Username" }),
24
+ creatorFullName: zod_openapi_1.z.string().optional(),
25
+ creatorImageUrl: zod_openapi_1.z.cuid2().optional().openapi({ description: "Username" }),
23
26
  content: zod_openapi_1.z
24
27
  .string()
25
28
  .openapi({ description: "Post content", example: "Hello world" }),
@@ -139,7 +139,7 @@ export declare const UserProfileEntitySchema: z.ZodObject<{
139
139
  location: z.ZodOptional<z.ZodString>;
140
140
  experienceLevel: z.ZodOptional<z.ZodString>;
141
141
  disciplines: z.ZodOptional<z.ZodArray<z.ZodAny>>;
142
- tags: z.ZodOptional<z.ZodArray<z.ZodAny>>;
142
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
143
143
  brandName: z.ZodOptional<z.ZodString>;
144
144
  websiteURL: z.ZodOptional<z.ZodURL>;
145
145
  investorType: z.ZodOptional<z.ZodString>;
@@ -423,7 +423,7 @@ export declare const GetAuthenticatedUserProfileOutputSchema: z.ZodObject<{
423
423
  location: z.ZodOptional<z.ZodString>;
424
424
  experienceLevel: z.ZodOptional<z.ZodString>;
425
425
  disciplines: z.ZodOptional<z.ZodArray<z.ZodAny>>;
426
- tags: z.ZodOptional<z.ZodArray<z.ZodAny>>;
426
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
427
427
  brandName: z.ZodOptional<z.ZodString>;
428
428
  websiteURL: z.ZodOptional<z.ZodURL>;
429
429
  investorType: z.ZodOptional<z.ZodString>;
@@ -66,7 +66,7 @@ exports.UserProfileEntitySchema = exports.UserEntitySchema.extend({
66
66
  location: zod_openapi_1.z.string().optional(),
67
67
  experienceLevel: zod_openapi_1.z.string().optional(),
68
68
  disciplines: zod_openapi_1.z.array(zod_openapi_1.z.any()).optional(),
69
- tags: zod_openapi_1.z.array(zod_openapi_1.z.any()).optional(),
69
+ tags: zod_openapi_1.z.array(zod_openapi_1.z.string()).optional(),
70
70
  brandName: zod_openapi_1.z.string().optional(),
71
71
  websiteURL: zod_openapi_1.z.url().optional(),
72
72
  investorType: zod_openapi_1.z.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "1.8.7",
3
+ "version": "1.8.8",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,6 +18,9 @@ export const PostEntitySchema = z.object({
18
18
  userId: z
19
19
  .cuid2()
20
20
  .openapi({ description: "User id", example: "ckj1a2b3c0000def" }),
21
+ creatorUsername: z.string().openapi({ description: "Username" }),
22
+ creatorFullName: z.string().optional(),
23
+ creatorImageUrl: z.cuid2().optional().openapi({ description: "Username" }),
21
24
  content: z
22
25
  .string()
23
26
  .openapi({ description: "Post content", example: "Hello world" }),
@@ -2,10 +2,7 @@ import { z } from "@hono/zod-openapi";
2
2
 
3
3
  import { ROLES, USER_STATUSES, ONBOARDING_PAGES } from "../constants";
4
4
  import type { Role, UserStatus, OnboardingPage } from "../constants";
5
- import {
6
- ProjectEntitySchema,
7
-
8
- } from "./project";
5
+ import { ProjectEntitySchema } from "./project";
9
6
  import { BookmarkEntitySchema } from "./bookmark";
10
7
  import { LikeEntitySchema } from "./like";
11
8
 
@@ -77,7 +74,7 @@ export const UserProfileEntitySchema = UserEntitySchema.extend({
77
74
  location: z.string().optional(),
78
75
  experienceLevel: z.string().optional(),
79
76
  disciplines: z.array(z.any()).optional(),
80
- tags: z.array(z.any()).optional(),
77
+ tags: z.array(z.string()).optional(),
81
78
  brandName: z.string().optional(),
82
79
  websiteURL: z.url().optional(),
83
80
  investorType: z.string().optional(),