@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.
@@ -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
- projectBookmarks: z.ZodArray<z.ZodObject<{
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
- createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
646
- userId: z.ZodCUID2;
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
- 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;
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
- 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>;
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
- }, z.core.$strip>>;
710
- }, z.core.$strip>;
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<{
@@ -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: exports.UserWithProjectBookmarksEntitySchema,
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.2.80",
3
+ "version": "2.2.81",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -211,7 +211,11 @@ export const GetUserWithPostBookmarksInputSchema =
211
211
  UserWithJobBookmarksInputSchema;
212
212
 
213
213
  export const GetUserWithProjectBookmarksOutputSchema = z.object({
214
- bookmarks: UserWithProjectBookmarksEntitySchema,
214
+ bookmarks: z.array(
215
+ BookmarkEntitySchema.extend({
216
+ post: FeedPostEntitySchema,
217
+ }),
218
+ ),
215
219
  nextCursor: z.string().nullable(),
216
220
  });
217
221