@zyacreatives/shared 2.2.81 → 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 +73 -74
- package/dist/schemas/user.js +4 -4
- package/package.json +1 -1
- package/src/schemas/user.ts +5 -5
package/dist/schemas/user.d.ts
CHANGED
|
@@ -638,6 +638,79 @@ 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<{
|
|
642
|
+
userId: z.ZodCUID2;
|
|
643
|
+
projectBookmarks: z.ZodArray<z.ZodObject<{
|
|
644
|
+
id: z.ZodCUID2;
|
|
645
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
646
|
+
userId: z.ZodCUID2;
|
|
647
|
+
parentId: z.ZodCUID2;
|
|
648
|
+
parentType: z.ZodEnum<{
|
|
649
|
+
readonly PROJECT: "PROJECT";
|
|
650
|
+
readonly USER: "USER";
|
|
651
|
+
readonly JOB: "JOB";
|
|
652
|
+
readonly POST: "POST";
|
|
653
|
+
readonly COMMENT: "COMMENT";
|
|
654
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
655
|
+
}>;
|
|
656
|
+
project: z.ZodObject<{
|
|
657
|
+
id: z.ZodString;
|
|
658
|
+
userId: z.ZodString;
|
|
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;
|
|
669
|
+
description: z.ZodOptional<z.ZodString>;
|
|
670
|
+
capitalLookingToRaise: z.ZodOptional<z.ZodString>;
|
|
671
|
+
capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
|
|
672
|
+
readonly USD: "USD (United States Dollar)";
|
|
673
|
+
readonly EUR: "EUR (Euro)";
|
|
674
|
+
readonly GBP: "GBP (British Pound Sterling)";
|
|
675
|
+
readonly NGN: "NGN (Nigerian Naira)";
|
|
676
|
+
readonly CAD: "CAD (Canadian Dollar)";
|
|
677
|
+
readonly AUD: "AUD (Australian Dollar)";
|
|
678
|
+
readonly JPY: "JPY (Japanese Yen)";
|
|
679
|
+
readonly CHF: "CHF (Swiss Franc)";
|
|
680
|
+
readonly INR: "INR (Indian Rupee)";
|
|
681
|
+
readonly ZAR: "ZAR (South African Rand)";
|
|
682
|
+
}>>;
|
|
683
|
+
ventureStage: z.ZodOptional<z.ZodEnum<{
|
|
684
|
+
readonly IDEA: "Idea";
|
|
685
|
+
readonly PRE_SEED: "Pre Seed";
|
|
686
|
+
readonly MVP: "MVP";
|
|
687
|
+
readonly SEED: "Seed";
|
|
688
|
+
readonly SERIES_A: "Series A";
|
|
689
|
+
readonly SERIES_B: "Series B";
|
|
690
|
+
readonly SERIES_C: "Series C";
|
|
691
|
+
readonly GROWTH: "Growth";
|
|
692
|
+
readonly EXIT: "Exit";
|
|
693
|
+
}>>;
|
|
694
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
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>;
|
|
708
|
+
}, z.core.$strip>;
|
|
709
|
+
}, z.core.$strip>>;
|
|
710
|
+
}, z.core.$strip>;
|
|
711
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
712
|
+
}, z.core.$strip>;
|
|
713
|
+
export declare const GetUserWithPostBookmarksOutputSchema: z.ZodObject<{
|
|
641
714
|
bookmarks: z.ZodArray<z.ZodObject<{
|
|
642
715
|
id: z.ZodCUID2;
|
|
643
716
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -729,80 +802,6 @@ export declare const GetUserWithProjectBookmarksOutputSchema: z.ZodObject<{
|
|
|
729
802
|
}, z.core.$strip>>;
|
|
730
803
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
731
804
|
}, z.core.$strip>;
|
|
732
|
-
export declare const GetUserWithPostBookmarksOutputSchema: z.ZodObject<{
|
|
733
|
-
bookmarks: z.ZodObject<{
|
|
734
|
-
userId: z.ZodCUID2;
|
|
735
|
-
postBookmarks: z.ZodArray<z.ZodObject<{
|
|
736
|
-
id: z.ZodCUID2;
|
|
737
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
738
|
-
userId: z.ZodCUID2;
|
|
739
|
-
parentId: z.ZodCUID2;
|
|
740
|
-
parentType: z.ZodEnum<{
|
|
741
|
-
readonly PROJECT: "PROJECT";
|
|
742
|
-
readonly USER: "USER";
|
|
743
|
-
readonly JOB: "JOB";
|
|
744
|
-
readonly POST: "POST";
|
|
745
|
-
readonly COMMENT: "COMMENT";
|
|
746
|
-
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
747
|
-
}>;
|
|
748
|
-
post: z.ZodObject<{
|
|
749
|
-
id: z.ZodCUID2;
|
|
750
|
-
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
751
|
-
parentType: z.ZodDefault<z.ZodEnum<{
|
|
752
|
-
readonly PROJECT: "PROJECT";
|
|
753
|
-
readonly USER: "USER";
|
|
754
|
-
readonly JOB: "JOB";
|
|
755
|
-
readonly POST: "POST";
|
|
756
|
-
readonly COMMENT: "COMMENT";
|
|
757
|
-
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
758
|
-
}>>;
|
|
759
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
760
|
-
name: z.ZodString;
|
|
761
|
-
id: z.ZodInt;
|
|
762
|
-
}, z.core.$strip>>>;
|
|
763
|
-
badge: z.ZodOptional<z.ZodEnum<{
|
|
764
|
-
readonly NETWORKING: "Networking";
|
|
765
|
-
readonly FUNDING: "Funding";
|
|
766
|
-
readonly COLLABORATION: "Collaboration";
|
|
767
|
-
readonly OPPORTUNITIES: "Opportunities";
|
|
768
|
-
readonly SHOWCASE: "Showcase";
|
|
769
|
-
readonly LEARNING: "Learning";
|
|
770
|
-
readonly DISCUSSION: "Discussion";
|
|
771
|
-
readonly MENTORSHIP: "Mentorship";
|
|
772
|
-
}>>;
|
|
773
|
-
userId: z.ZodCUID2;
|
|
774
|
-
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
775
|
-
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
776
|
-
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
777
|
-
content: z.ZodOptional<z.ZodString>;
|
|
778
|
-
postType: z.ZodEnum<{
|
|
779
|
-
readonly MARKETPLACE: "MARKETPLACE";
|
|
780
|
-
readonly PROJECT: "PROJECT";
|
|
781
|
-
readonly JOB_OPENING: "JOB_OPENING";
|
|
782
|
-
readonly DEFAULT_POST: "DEFAULT_POST";
|
|
783
|
-
readonly POST_WITH_LINKS: "POST_WITH_LINKS";
|
|
784
|
-
readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
|
|
785
|
-
readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
|
|
786
|
-
}>;
|
|
787
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
788
|
-
linkMeta: z.ZodOptional<z.ZodObject<{
|
|
789
|
-
url: z.ZodURL;
|
|
790
|
-
title: z.ZodOptional<z.ZodString>;
|
|
791
|
-
description: z.ZodOptional<z.ZodString>;
|
|
792
|
-
image: z.ZodOptional<z.ZodURL>;
|
|
793
|
-
}, z.core.$strip>>;
|
|
794
|
-
postFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
795
|
-
id: z.ZodCUID2;
|
|
796
|
-
postId: z.ZodCUID2;
|
|
797
|
-
fileId: z.ZodCUID2;
|
|
798
|
-
order: z.ZodNumber;
|
|
799
|
-
url: z.ZodURL;
|
|
800
|
-
}, z.core.$strip>>>;
|
|
801
|
-
}, z.core.$strip>;
|
|
802
|
-
}, z.core.$strip>>;
|
|
803
|
-
}, z.core.$strip>;
|
|
804
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
805
|
-
}, z.core.$strip>;
|
|
806
805
|
export declare const UserWithFollowingEntitySchema: z.ZodObject<{
|
|
807
806
|
email: z.ZodEmail;
|
|
808
807
|
username: z.ZodOptional<z.ZodString>;
|
package/dist/schemas/user.js
CHANGED
|
@@ -160,13 +160,13 @@ 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:
|
|
164
|
-
post: post_1.FeedPostEntitySchema,
|
|
165
|
-
})),
|
|
163
|
+
bookmarks: exports.UserWithProjectBookmarksEntitySchema,
|
|
166
164
|
nextCursor: zod_openapi_1.z.string().nullable(),
|
|
167
165
|
});
|
|
168
166
|
exports.GetUserWithPostBookmarksOutputSchema = zod_openapi_1.z.object({
|
|
169
|
-
bookmarks:
|
|
167
|
+
bookmarks: zod_openapi_1.z.array(bookmark_1.BookmarkEntitySchema.extend({
|
|
168
|
+
post: post_1.FeedPostEntitySchema,
|
|
169
|
+
})),
|
|
170
170
|
nextCursor: zod_openapi_1.z.string().nullable(),
|
|
171
171
|
});
|
|
172
172
|
// ==========================================
|
package/package.json
CHANGED
package/src/schemas/user.ts
CHANGED
|
@@ -211,6 +211,11 @@ export const GetUserWithPostBookmarksInputSchema =
|
|
|
211
211
|
UserWithJobBookmarksInputSchema;
|
|
212
212
|
|
|
213
213
|
export const GetUserWithProjectBookmarksOutputSchema = z.object({
|
|
214
|
+
bookmarks: UserWithProjectBookmarksEntitySchema,
|
|
215
|
+
nextCursor: z.string().nullable(),
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
export const GetUserWithPostBookmarksOutputSchema = z.object({
|
|
214
219
|
bookmarks: z.array(
|
|
215
220
|
BookmarkEntitySchema.extend({
|
|
216
221
|
post: FeedPostEntitySchema,
|
|
@@ -219,11 +224,6 @@ export const GetUserWithProjectBookmarksOutputSchema = z.object({
|
|
|
219
224
|
nextCursor: z.string().nullable(),
|
|
220
225
|
});
|
|
221
226
|
|
|
222
|
-
export const GetUserWithPostBookmarksOutputSchema = z.object({
|
|
223
|
-
bookmarks: UserWithPostBookmarksEntitySchema,
|
|
224
|
-
nextCursor: z.string().nullable(),
|
|
225
|
-
});
|
|
226
|
-
|
|
227
227
|
// ==========================================
|
|
228
228
|
// 5. FOLLOWERS & FOLLOWING
|
|
229
229
|
// ==========================================
|