@zyacreatives/shared 2.2.80 → 2.2.82
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/user.d.ts +71 -53
- package/dist/schemas/user.js +3 -1
- package/package.json +1 -1
- package/src/schemas/user.ts +5 -1
package/dist/schemas/user.d.ts
CHANGED
|
@@ -711,77 +711,95 @@ export declare const GetUserWithProjectBookmarksOutputSchema: z.ZodObject<{
|
|
|
711
711
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
712
712
|
}, z.core.$strip>;
|
|
713
713
|
export declare const GetUserWithPostBookmarksOutputSchema: z.ZodObject<{
|
|
714
|
-
bookmarks: z.ZodObject<{
|
|
714
|
+
bookmarks: z.ZodArray<z.ZodObject<{
|
|
715
|
+
id: z.ZodCUID2;
|
|
716
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
715
717
|
userId: z.ZodCUID2;
|
|
716
|
-
|
|
718
|
+
parentId: z.ZodCUID2;
|
|
719
|
+
parentType: z.ZodEnum<{
|
|
720
|
+
readonly PROJECT: "PROJECT";
|
|
721
|
+
readonly USER: "USER";
|
|
722
|
+
readonly JOB: "JOB";
|
|
723
|
+
readonly POST: "POST";
|
|
724
|
+
readonly COMMENT: "COMMENT";
|
|
725
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
726
|
+
}>;
|
|
727
|
+
post: z.ZodObject<{
|
|
717
728
|
id: z.ZodCUID2;
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
parentId: z.ZodCUID2;
|
|
721
|
-
parentType: z.ZodEnum<{
|
|
729
|
+
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
730
|
+
parentType: z.ZodDefault<z.ZodEnum<{
|
|
722
731
|
readonly PROJECT: "PROJECT";
|
|
723
732
|
readonly USER: "USER";
|
|
724
733
|
readonly JOB: "JOB";
|
|
725
734
|
readonly POST: "POST";
|
|
726
735
|
readonly COMMENT: "COMMENT";
|
|
727
736
|
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
737
|
+
}>>;
|
|
738
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
739
|
+
name: z.ZodString;
|
|
740
|
+
id: z.ZodInt;
|
|
741
|
+
}, z.core.$strip>>>;
|
|
742
|
+
badge: z.ZodOptional<z.ZodEnum<{
|
|
743
|
+
readonly NETWORKING: "Networking";
|
|
744
|
+
readonly FUNDING: "Funding";
|
|
745
|
+
readonly COLLABORATION: "Collaboration";
|
|
746
|
+
readonly OPPORTUNITIES: "Opportunities";
|
|
747
|
+
readonly SHOWCASE: "Showcase";
|
|
748
|
+
readonly LEARNING: "Learning";
|
|
749
|
+
readonly DISCUSSION: "Discussion";
|
|
750
|
+
readonly MENTORSHIP: "Mentorship";
|
|
751
|
+
}>>;
|
|
752
|
+
userId: z.ZodCUID2;
|
|
753
|
+
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
754
|
+
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
755
|
+
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
756
|
+
content: z.ZodOptional<z.ZodString>;
|
|
757
|
+
postType: z.ZodEnum<{
|
|
758
|
+
readonly MARKETPLACE: "MARKETPLACE";
|
|
759
|
+
readonly PROJECT: "PROJECT";
|
|
760
|
+
readonly JOB_OPENING: "JOB_OPENING";
|
|
761
|
+
readonly DEFAULT_POST: "DEFAULT_POST";
|
|
762
|
+
readonly POST_WITH_LINKS: "POST_WITH_LINKS";
|
|
763
|
+
readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
|
|
764
|
+
readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
|
|
728
765
|
}>;
|
|
729
|
-
|
|
766
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
767
|
+
linkMeta: z.ZodOptional<z.ZodObject<{
|
|
768
|
+
url: z.ZodURL;
|
|
769
|
+
title: z.ZodOptional<z.ZodString>;
|
|
770
|
+
description: z.ZodOptional<z.ZodString>;
|
|
771
|
+
image: z.ZodOptional<z.ZodURL>;
|
|
772
|
+
}, z.core.$strip>>;
|
|
773
|
+
postFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
730
774
|
id: z.ZodCUID2;
|
|
731
|
-
|
|
732
|
-
|
|
775
|
+
postId: z.ZodCUID2;
|
|
776
|
+
fileId: z.ZodCUID2;
|
|
777
|
+
order: z.ZodNumber;
|
|
778
|
+
url: z.ZodURL;
|
|
779
|
+
}, z.core.$strip>>>;
|
|
780
|
+
stats: z.ZodObject<{
|
|
781
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
782
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
783
|
+
parentId: z.ZodCUID2;
|
|
784
|
+
parentType: z.ZodEnum<{
|
|
733
785
|
readonly PROJECT: "PROJECT";
|
|
734
786
|
readonly USER: "USER";
|
|
735
787
|
readonly JOB: "JOB";
|
|
736
788
|
readonly POST: "POST";
|
|
737
789
|
readonly COMMENT: "COMMENT";
|
|
738
790
|
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
739
|
-
}>>;
|
|
740
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
741
|
-
name: z.ZodString;
|
|
742
|
-
id: z.ZodInt;
|
|
743
|
-
}, z.core.$strip>>>;
|
|
744
|
-
badge: z.ZodOptional<z.ZodEnum<{
|
|
745
|
-
readonly NETWORKING: "Networking";
|
|
746
|
-
readonly FUNDING: "Funding";
|
|
747
|
-
readonly COLLABORATION: "Collaboration";
|
|
748
|
-
readonly OPPORTUNITIES: "Opportunities";
|
|
749
|
-
readonly SHOWCASE: "Showcase";
|
|
750
|
-
readonly LEARNING: "Learning";
|
|
751
|
-
readonly DISCUSSION: "Discussion";
|
|
752
|
-
readonly MENTORSHIP: "Mentorship";
|
|
753
|
-
}>>;
|
|
754
|
-
userId: z.ZodCUID2;
|
|
755
|
-
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
756
|
-
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
757
|
-
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
758
|
-
content: z.ZodOptional<z.ZodString>;
|
|
759
|
-
postType: z.ZodEnum<{
|
|
760
|
-
readonly MARKETPLACE: "MARKETPLACE";
|
|
761
|
-
readonly PROJECT: "PROJECT";
|
|
762
|
-
readonly JOB_OPENING: "JOB_OPENING";
|
|
763
|
-
readonly DEFAULT_POST: "DEFAULT_POST";
|
|
764
|
-
readonly POST_WITH_LINKS: "POST_WITH_LINKS";
|
|
765
|
-
readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
|
|
766
|
-
readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
|
|
767
791
|
}>;
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
description: z.ZodOptional<z.ZodString>;
|
|
773
|
-
image: z.ZodOptional<z.ZodURL>;
|
|
774
|
-
}, z.core.$strip>>;
|
|
775
|
-
postFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
776
|
-
id: z.ZodCUID2;
|
|
777
|
-
postId: z.ZodCUID2;
|
|
778
|
-
fileId: z.ZodCUID2;
|
|
779
|
-
order: z.ZodNumber;
|
|
780
|
-
url: z.ZodURL;
|
|
781
|
-
}, z.core.$strip>>>;
|
|
792
|
+
likesCount: z.ZodNumber;
|
|
793
|
+
bookmarksCount: z.ZodNumber;
|
|
794
|
+
viewsCount: z.ZodNumber;
|
|
795
|
+
commentsCount: z.ZodNumber;
|
|
782
796
|
}, z.core.$strip>;
|
|
783
|
-
|
|
784
|
-
|
|
797
|
+
score: z.ZodNumber;
|
|
798
|
+
isLiked: z.ZodOptional<z.ZodBoolean>;
|
|
799
|
+
isFollowing: z.ZodOptional<z.ZodBoolean>;
|
|
800
|
+
isBookmarked: z.ZodOptional<z.ZodBoolean>;
|
|
801
|
+
}, z.core.$strip>;
|
|
802
|
+
}, z.core.$strip>>;
|
|
785
803
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
786
804
|
}, z.core.$strip>;
|
|
787
805
|
export declare const UserWithFollowingEntitySchema: z.ZodObject<{
|
package/dist/schemas/user.js
CHANGED
|
@@ -164,7 +164,9 @@ exports.GetUserWithProjectBookmarksOutputSchema = zod_openapi_1.z.object({
|
|
|
164
164
|
nextCursor: zod_openapi_1.z.string().nullable(),
|
|
165
165
|
});
|
|
166
166
|
exports.GetUserWithPostBookmarksOutputSchema = zod_openapi_1.z.object({
|
|
167
|
-
bookmarks:
|
|
167
|
+
bookmarks: zod_openapi_1.z.array(bookmark_1.BookmarkEntitySchema.extend({
|
|
168
|
+
post: post_1.FeedPostEntitySchema,
|
|
169
|
+
})),
|
|
168
170
|
nextCursor: zod_openapi_1.z.string().nullable(),
|
|
169
171
|
});
|
|
170
172
|
// ==========================================
|
package/package.json
CHANGED
package/src/schemas/user.ts
CHANGED
|
@@ -216,7 +216,11 @@ export const GetUserWithProjectBookmarksOutputSchema = z.object({
|
|
|
216
216
|
});
|
|
217
217
|
|
|
218
218
|
export const GetUserWithPostBookmarksOutputSchema = z.object({
|
|
219
|
-
bookmarks:
|
|
219
|
+
bookmarks: z.array(
|
|
220
|
+
BookmarkEntitySchema.extend({
|
|
221
|
+
post: FeedPostEntitySchema,
|
|
222
|
+
}),
|
|
223
|
+
),
|
|
220
224
|
nextCursor: z.string().nullable(),
|
|
221
225
|
});
|
|
222
226
|
|