@zyacreatives/shared 1.8.6 → 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.
- package/dist/schemas/post.d.ts +14 -18
- package/dist/schemas/post.js +4 -1
- package/dist/schemas/user.d.ts +2 -2
- package/dist/schemas/user.js +1 -1
- package/package.json +1 -1
- package/src/schemas/post.ts +4 -1
- package/src/schemas/user.ts +2 -5
package/dist/schemas/post.d.ts
CHANGED
|
@@ -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<{
|
|
@@ -43,15 +49,7 @@ export declare const PostWithFilesEntitySchema: z.ZodObject<{
|
|
|
43
49
|
postId: z.ZodString;
|
|
44
50
|
fileId: z.ZodString;
|
|
45
51
|
order: z.ZodNumber;
|
|
46
|
-
|
|
47
|
-
id: z.ZodCUID2;
|
|
48
|
-
key: z.ZodString;
|
|
49
|
-
mimeType: z.ZodString;
|
|
50
|
-
url: z.ZodOptional<z.ZodURL>;
|
|
51
|
-
userId: z.ZodCUID2;
|
|
52
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
53
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
54
|
-
}, z.core.$strip>;
|
|
52
|
+
url: z.ZodURL;
|
|
55
53
|
}, z.core.$strip>>>;
|
|
56
54
|
}, z.core.$strip>;
|
|
57
55
|
export declare const CreatePostInputSchema: z.ZodObject<{
|
|
@@ -79,6 +77,9 @@ export declare const CreatePostOutputSchema: z.ZodObject<{
|
|
|
79
77
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
80
78
|
badge: z.ZodOptional<z.ZodString>;
|
|
81
79
|
userId: z.ZodCUID2;
|
|
80
|
+
creatorUsername: z.ZodString;
|
|
81
|
+
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
82
|
+
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
82
83
|
content: z.ZodString;
|
|
83
84
|
title: z.ZodNullable<z.ZodString>;
|
|
84
85
|
postType: z.ZodEnum<{
|
|
@@ -96,6 +97,9 @@ export declare const GetPostOutputSchema: z.ZodObject<{
|
|
|
96
97
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
97
98
|
badge: z.ZodOptional<z.ZodString>;
|
|
98
99
|
userId: z.ZodCUID2;
|
|
100
|
+
creatorUsername: z.ZodString;
|
|
101
|
+
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
102
|
+
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
99
103
|
content: z.ZodString;
|
|
100
104
|
title: z.ZodNullable<z.ZodString>;
|
|
101
105
|
postType: z.ZodEnum<{
|
|
@@ -111,15 +115,7 @@ export declare const GetPostOutputSchema: z.ZodObject<{
|
|
|
111
115
|
postId: z.ZodString;
|
|
112
116
|
fileId: z.ZodString;
|
|
113
117
|
order: z.ZodNumber;
|
|
114
|
-
|
|
115
|
-
id: z.ZodCUID2;
|
|
116
|
-
key: z.ZodString;
|
|
117
|
-
mimeType: z.ZodString;
|
|
118
|
-
url: z.ZodOptional<z.ZodURL>;
|
|
119
|
-
userId: z.ZodCUID2;
|
|
120
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
121
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
122
|
-
}, z.core.$strip>;
|
|
118
|
+
url: z.ZodURL;
|
|
123
119
|
}, z.core.$strip>>>;
|
|
124
120
|
}, z.core.$strip>;
|
|
125
121
|
export declare const PostIdSchema: z.ZodObject<{
|
package/dist/schemas/post.js
CHANGED
|
@@ -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" }),
|
|
@@ -54,7 +57,7 @@ exports.PostFileEntitySchema = zod_openapi_1.z
|
|
|
54
57
|
exports.PostWithFilesEntitySchema = exports.PostEntitySchema.extend({
|
|
55
58
|
postFiles: zod_openapi_1.z
|
|
56
59
|
.array(exports.PostFileEntitySchema.extend({
|
|
57
|
-
|
|
60
|
+
url: zod_openapi_1.z.url(),
|
|
58
61
|
}))
|
|
59
62
|
.optional()
|
|
60
63
|
.openapi({ description: "Files associated with the project." }),
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
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>;
|
package/dist/schemas/user.js
CHANGED
|
@@ -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.
|
|
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
package/src/schemas/post.ts
CHANGED
|
@@ -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" }),
|
|
@@ -55,7 +58,7 @@ export const PostWithFilesEntitySchema = PostEntitySchema.extend({
|
|
|
55
58
|
postFiles: z
|
|
56
59
|
.array(
|
|
57
60
|
PostFileEntitySchema.extend({
|
|
58
|
-
|
|
61
|
+
url: z.url(),
|
|
59
62
|
})
|
|
60
63
|
)
|
|
61
64
|
.optional()
|
package/src/schemas/user.ts
CHANGED
|
@@ -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.
|
|
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(),
|