@zyacreatives/shared 2.2.80 → 2.2.81
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 +78 -59
- 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
|
@@ -638,76 +638,95 @@ export declare const GetUserWithPostBookmarksInputSchema: z.ZodObject<{
|
|
|
638
638
|
limit: z.ZodNullable<z.ZodOptional<z.ZodInt>>;
|
|
639
639
|
}, z.core.$strip>;
|
|
640
640
|
export declare const GetUserWithProjectBookmarksOutputSchema: z.ZodObject<{
|
|
641
|
-
bookmarks: z.ZodObject<{
|
|
641
|
+
bookmarks: z.ZodArray<z.ZodObject<{
|
|
642
|
+
id: z.ZodCUID2;
|
|
643
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
642
644
|
userId: z.ZodCUID2;
|
|
643
|
-
|
|
645
|
+
parentId: z.ZodCUID2;
|
|
646
|
+
parentType: z.ZodEnum<{
|
|
647
|
+
readonly PROJECT: "PROJECT";
|
|
648
|
+
readonly USER: "USER";
|
|
649
|
+
readonly JOB: "JOB";
|
|
650
|
+
readonly POST: "POST";
|
|
651
|
+
readonly COMMENT: "COMMENT";
|
|
652
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
653
|
+
}>;
|
|
654
|
+
post: z.ZodObject<{
|
|
644
655
|
id: z.ZodCUID2;
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
parentId: z.ZodCUID2;
|
|
648
|
-
parentType: z.ZodEnum<{
|
|
656
|
+
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
657
|
+
parentType: z.ZodDefault<z.ZodEnum<{
|
|
649
658
|
readonly PROJECT: "PROJECT";
|
|
650
659
|
readonly USER: "USER";
|
|
651
660
|
readonly JOB: "JOB";
|
|
652
661
|
readonly POST: "POST";
|
|
653
662
|
readonly COMMENT: "COMMENT";
|
|
654
663
|
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
664
|
+
}>>;
|
|
665
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
666
|
+
name: z.ZodString;
|
|
667
|
+
id: z.ZodInt;
|
|
668
|
+
}, z.core.$strip>>>;
|
|
669
|
+
badge: z.ZodOptional<z.ZodEnum<{
|
|
670
|
+
readonly NETWORKING: "Networking";
|
|
671
|
+
readonly FUNDING: "Funding";
|
|
672
|
+
readonly COLLABORATION: "Collaboration";
|
|
673
|
+
readonly OPPORTUNITIES: "Opportunities";
|
|
674
|
+
readonly SHOWCASE: "Showcase";
|
|
675
|
+
readonly LEARNING: "Learning";
|
|
676
|
+
readonly DISCUSSION: "Discussion";
|
|
677
|
+
readonly MENTORSHIP: "Mentorship";
|
|
678
|
+
}>>;
|
|
679
|
+
userId: z.ZodCUID2;
|
|
680
|
+
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
681
|
+
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
682
|
+
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
683
|
+
content: z.ZodOptional<z.ZodString>;
|
|
684
|
+
postType: z.ZodEnum<{
|
|
685
|
+
readonly MARKETPLACE: "MARKETPLACE";
|
|
686
|
+
readonly PROJECT: "PROJECT";
|
|
687
|
+
readonly JOB_OPENING: "JOB_OPENING";
|
|
688
|
+
readonly DEFAULT_POST: "DEFAULT_POST";
|
|
689
|
+
readonly POST_WITH_LINKS: "POST_WITH_LINKS";
|
|
690
|
+
readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
|
|
691
|
+
readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
|
|
655
692
|
}>;
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
title: z.ZodString
|
|
660
|
-
imagePlaceholderUrl: z.ZodURL;
|
|
661
|
-
projectCreatorType: z.ZodEnum<{
|
|
662
|
-
readonly CREATIVE: "CREATIVE";
|
|
663
|
-
readonly BRAND: "BRAND";
|
|
664
|
-
readonly INVESTOR: "INVESTOR";
|
|
665
|
-
readonly ADMIN: "ADMIN";
|
|
666
|
-
}>;
|
|
667
|
-
createdAt: z.ZodNumber;
|
|
668
|
-
updatedAt: z.ZodNumber;
|
|
693
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
694
|
+
linkMeta: z.ZodOptional<z.ZodObject<{
|
|
695
|
+
url: z.ZodURL;
|
|
696
|
+
title: z.ZodOptional<z.ZodString>;
|
|
669
697
|
description: z.ZodOptional<z.ZodString>;
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
readonly
|
|
685
|
-
readonly
|
|
686
|
-
readonly
|
|
687
|
-
readonly
|
|
688
|
-
readonly
|
|
689
|
-
readonly
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
696
|
-
creatorUsername: z.ZodString;
|
|
697
|
-
creatorImageUrl: z.ZodString;
|
|
698
|
-
clientId: z.ZodOptional<z.ZodString>;
|
|
699
|
-
clientType: z.ZodOptional<z.ZodEnum<{
|
|
700
|
-
readonly CREATIVE: "CREATIVE";
|
|
701
|
-
readonly BRAND: "BRAND";
|
|
702
|
-
readonly NONE: "NONE";
|
|
703
|
-
}>>;
|
|
704
|
-
clientName: z.ZodOptional<z.ZodString>;
|
|
705
|
-
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
706
|
-
startDate: z.ZodOptional<z.ZodNumber>;
|
|
707
|
-
endDate: z.ZodOptional<z.ZodNumber>;
|
|
698
|
+
image: z.ZodOptional<z.ZodURL>;
|
|
699
|
+
}, z.core.$strip>>;
|
|
700
|
+
postFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
701
|
+
id: z.ZodCUID2;
|
|
702
|
+
postId: z.ZodCUID2;
|
|
703
|
+
fileId: z.ZodCUID2;
|
|
704
|
+
order: z.ZodNumber;
|
|
705
|
+
url: z.ZodURL;
|
|
706
|
+
}, z.core.$strip>>>;
|
|
707
|
+
stats: z.ZodObject<{
|
|
708
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
709
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
710
|
+
parentId: z.ZodCUID2;
|
|
711
|
+
parentType: z.ZodEnum<{
|
|
712
|
+
readonly PROJECT: "PROJECT";
|
|
713
|
+
readonly USER: "USER";
|
|
714
|
+
readonly JOB: "JOB";
|
|
715
|
+
readonly POST: "POST";
|
|
716
|
+
readonly COMMENT: "COMMENT";
|
|
717
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
718
|
+
}>;
|
|
719
|
+
likesCount: z.ZodNumber;
|
|
720
|
+
bookmarksCount: z.ZodNumber;
|
|
721
|
+
viewsCount: z.ZodNumber;
|
|
722
|
+
commentsCount: z.ZodNumber;
|
|
708
723
|
}, z.core.$strip>;
|
|
709
|
-
|
|
710
|
-
|
|
724
|
+
score: z.ZodNumber;
|
|
725
|
+
isLiked: z.ZodOptional<z.ZodBoolean>;
|
|
726
|
+
isFollowing: z.ZodOptional<z.ZodBoolean>;
|
|
727
|
+
isBookmarked: z.ZodOptional<z.ZodBoolean>;
|
|
728
|
+
}, z.core.$strip>;
|
|
729
|
+
}, z.core.$strip>>;
|
|
711
730
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
712
731
|
}, z.core.$strip>;
|
|
713
732
|
export declare const GetUserWithPostBookmarksOutputSchema: z.ZodObject<{
|
package/dist/schemas/user.js
CHANGED
|
@@ -160,7 +160,9 @@ exports.UserWithPostBookmarksEntitySchema = zod_openapi_1.z.object({
|
|
|
160
160
|
exports.GetUserWithProjectBookmarksInputSchema = exports.UserWithJobBookmarksInputSchema;
|
|
161
161
|
exports.GetUserWithPostBookmarksInputSchema = exports.UserWithJobBookmarksInputSchema;
|
|
162
162
|
exports.GetUserWithProjectBookmarksOutputSchema = zod_openapi_1.z.object({
|
|
163
|
-
bookmarks:
|
|
163
|
+
bookmarks: zod_openapi_1.z.array(bookmark_1.BookmarkEntitySchema.extend({
|
|
164
|
+
post: post_1.FeedPostEntitySchema,
|
|
165
|
+
})),
|
|
164
166
|
nextCursor: zod_openapi_1.z.string().nullable(),
|
|
165
167
|
});
|
|
166
168
|
exports.GetUserWithPostBookmarksOutputSchema = zod_openapi_1.z.object({
|
package/package.json
CHANGED
package/src/schemas/user.ts
CHANGED
|
@@ -211,7 +211,11 @@ export const GetUserWithPostBookmarksInputSchema =
|
|
|
211
211
|
UserWithJobBookmarksInputSchema;
|
|
212
212
|
|
|
213
213
|
export const GetUserWithProjectBookmarksOutputSchema = z.object({
|
|
214
|
-
bookmarks:
|
|
214
|
+
bookmarks: z.array(
|
|
215
|
+
BookmarkEntitySchema.extend({
|
|
216
|
+
post: FeedPostEntitySchema,
|
|
217
|
+
}),
|
|
218
|
+
),
|
|
215
219
|
nextCursor: z.string().nullable(),
|
|
216
220
|
});
|
|
217
221
|
|