@zyacreatives/shared 2.2.79 → 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 -101
- package/dist/schemas/user.js +4 -2
- package/package.json +1 -1
- package/src/schemas/user.ts +6 -2
package/dist/schemas/user.d.ts
CHANGED
|
@@ -626,27 +626,6 @@ export declare const UserWithPostBookmarksEntitySchema: z.ZodObject<{
|
|
|
626
626
|
order: z.ZodNumber;
|
|
627
627
|
url: z.ZodURL;
|
|
628
628
|
}, z.core.$strip>>>;
|
|
629
|
-
stats: z.ZodObject<{
|
|
630
|
-
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
631
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
632
|
-
parentId: z.ZodCUID2;
|
|
633
|
-
parentType: z.ZodEnum<{
|
|
634
|
-
readonly PROJECT: "PROJECT";
|
|
635
|
-
readonly USER: "USER";
|
|
636
|
-
readonly JOB: "JOB";
|
|
637
|
-
readonly POST: "POST";
|
|
638
|
-
readonly COMMENT: "COMMENT";
|
|
639
|
-
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
640
|
-
}>;
|
|
641
|
-
likesCount: z.ZodNumber;
|
|
642
|
-
bookmarksCount: z.ZodNumber;
|
|
643
|
-
viewsCount: z.ZodNumber;
|
|
644
|
-
commentsCount: z.ZodNumber;
|
|
645
|
-
}, z.core.$strip>;
|
|
646
|
-
score: z.ZodNumber;
|
|
647
|
-
isLiked: z.ZodOptional<z.ZodBoolean>;
|
|
648
|
-
isFollowing: z.ZodOptional<z.ZodBoolean>;
|
|
649
|
-
isBookmarked: z.ZodOptional<z.ZodBoolean>;
|
|
650
629
|
}, z.core.$strip>;
|
|
651
630
|
}, z.core.$strip>>;
|
|
652
631
|
}, z.core.$strip>;
|
|
@@ -659,76 +638,95 @@ export declare const GetUserWithPostBookmarksInputSchema: z.ZodObject<{
|
|
|
659
638
|
limit: z.ZodNullable<z.ZodOptional<z.ZodInt>>;
|
|
660
639
|
}, z.core.$strip>;
|
|
661
640
|
export declare const GetUserWithProjectBookmarksOutputSchema: z.ZodObject<{
|
|
662
|
-
bookmarks: z.ZodObject<{
|
|
641
|
+
bookmarks: z.ZodArray<z.ZodObject<{
|
|
642
|
+
id: z.ZodCUID2;
|
|
643
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
663
644
|
userId: z.ZodCUID2;
|
|
664
|
-
|
|
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<{
|
|
665
655
|
id: z.ZodCUID2;
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
parentId: z.ZodCUID2;
|
|
669
|
-
parentType: z.ZodEnum<{
|
|
656
|
+
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
657
|
+
parentType: z.ZodDefault<z.ZodEnum<{
|
|
670
658
|
readonly PROJECT: "PROJECT";
|
|
671
659
|
readonly USER: "USER";
|
|
672
660
|
readonly JOB: "JOB";
|
|
673
661
|
readonly POST: "POST";
|
|
674
662
|
readonly COMMENT: "COMMENT";
|
|
675
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";
|
|
676
692
|
}>;
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
title: z.ZodString
|
|
681
|
-
imagePlaceholderUrl: z.ZodURL;
|
|
682
|
-
projectCreatorType: z.ZodEnum<{
|
|
683
|
-
readonly CREATIVE: "CREATIVE";
|
|
684
|
-
readonly BRAND: "BRAND";
|
|
685
|
-
readonly INVESTOR: "INVESTOR";
|
|
686
|
-
readonly ADMIN: "ADMIN";
|
|
687
|
-
}>;
|
|
688
|
-
createdAt: z.ZodNumber;
|
|
689
|
-
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>;
|
|
690
697
|
description: z.ZodOptional<z.ZodString>;
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
readonly
|
|
706
|
-
readonly
|
|
707
|
-
readonly
|
|
708
|
-
readonly
|
|
709
|
-
readonly
|
|
710
|
-
readonly
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
717
|
-
creatorUsername: z.ZodString;
|
|
718
|
-
creatorImageUrl: z.ZodString;
|
|
719
|
-
clientId: z.ZodOptional<z.ZodString>;
|
|
720
|
-
clientType: z.ZodOptional<z.ZodEnum<{
|
|
721
|
-
readonly CREATIVE: "CREATIVE";
|
|
722
|
-
readonly BRAND: "BRAND";
|
|
723
|
-
readonly NONE: "NONE";
|
|
724
|
-
}>>;
|
|
725
|
-
clientName: z.ZodOptional<z.ZodString>;
|
|
726
|
-
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
727
|
-
startDate: z.ZodOptional<z.ZodNumber>;
|
|
728
|
-
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;
|
|
729
723
|
}, z.core.$strip>;
|
|
730
|
-
|
|
731
|
-
|
|
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>>;
|
|
732
730
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
733
731
|
}, z.core.$strip>;
|
|
734
732
|
export declare const GetUserWithPostBookmarksOutputSchema: z.ZodObject<{
|
|
@@ -800,27 +798,6 @@ export declare const GetUserWithPostBookmarksOutputSchema: z.ZodObject<{
|
|
|
800
798
|
order: z.ZodNumber;
|
|
801
799
|
url: z.ZodURL;
|
|
802
800
|
}, z.core.$strip>>>;
|
|
803
|
-
stats: z.ZodObject<{
|
|
804
|
-
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
805
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
806
|
-
parentId: z.ZodCUID2;
|
|
807
|
-
parentType: z.ZodEnum<{
|
|
808
|
-
readonly PROJECT: "PROJECT";
|
|
809
|
-
readonly USER: "USER";
|
|
810
|
-
readonly JOB: "JOB";
|
|
811
|
-
readonly POST: "POST";
|
|
812
|
-
readonly COMMENT: "COMMENT";
|
|
813
|
-
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
814
|
-
}>;
|
|
815
|
-
likesCount: z.ZodNumber;
|
|
816
|
-
bookmarksCount: z.ZodNumber;
|
|
817
|
-
viewsCount: z.ZodNumber;
|
|
818
|
-
commentsCount: z.ZodNumber;
|
|
819
|
-
}, z.core.$strip>;
|
|
820
|
-
score: z.ZodNumber;
|
|
821
|
-
isLiked: z.ZodOptional<z.ZodBoolean>;
|
|
822
|
-
isFollowing: z.ZodOptional<z.ZodBoolean>;
|
|
823
|
-
isBookmarked: z.ZodOptional<z.ZodBoolean>;
|
|
824
801
|
}, z.core.$strip>;
|
|
825
802
|
}, z.core.$strip>>;
|
|
826
803
|
}, z.core.$strip>;
|
package/dist/schemas/user.js
CHANGED
|
@@ -154,13 +154,15 @@ exports.UserWithProjectBookmarksEntitySchema = zod_openapi_1.z
|
|
|
154
154
|
exports.UserWithPostBookmarksEntitySchema = zod_openapi_1.z.object({
|
|
155
155
|
userId: zod_openapi_1.z.cuid2().openapi({ example: "cksd0v6q0000s9a5y8z7p3x9" }),
|
|
156
156
|
postBookmarks: zod_openapi_1.z.array(bookmark_1.BookmarkEntitySchema.extend({
|
|
157
|
-
post: post_1.
|
|
157
|
+
post: post_1.PostWithFilesEntitySchema,
|
|
158
158
|
})),
|
|
159
159
|
});
|
|
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
|
@@ -200,7 +200,7 @@ export const UserWithPostBookmarksEntitySchema = z.object({
|
|
|
200
200
|
userId: z.cuid2().openapi({ example: "cksd0v6q0000s9a5y8z7p3x9" }),
|
|
201
201
|
postBookmarks: z.array(
|
|
202
202
|
BookmarkEntitySchema.extend({
|
|
203
|
-
post:
|
|
203
|
+
post: PostWithFilesEntitySchema,
|
|
204
204
|
}),
|
|
205
205
|
),
|
|
206
206
|
});
|
|
@@ -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
|
|