@zyacreatives/shared 2.2.60 → 2.2.62

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.
@@ -1,4 +1,5 @@
1
1
  import z from "zod";
2
- import { FeedTagsInputSchema, FeedTagsSchema } from "../schemas/feed";
2
+ import { FeedTagsInputSchema, FeedTagsSchema, TrendingUsersOutputSchema } from "../schemas/feed";
3
3
  export type FeedTagsInput = z.infer<typeof FeedTagsInputSchema>;
4
4
  export type FeedTagsOutput = z.infer<typeof FeedTagsSchema>;
5
+ export type TrendingUsersOutput = z.infer<typeof TrendingUsersOutputSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.2.60",
3
+ "version": "2.2.62",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -12,7 +12,11 @@ export const FeedTagsInputSchema = z.object({
12
12
 
13
13
  export const TrendingUsersOutputSchema = z.object({
14
14
  users: z.array(
15
- MinimalUserSchema.extend({
15
+ z.object({
16
+ creatorUsername: z.string(),
17
+ creatorName: z.string(),
18
+ creatorId: z.cuid2(),
19
+ creatorImageUrl: z.url(),
16
20
  isFollowing: z.boolean().optional(),
17
21
  followsYou: z.boolean().optional(),
18
22
  }),
package/src/types/feed.ts CHANGED
@@ -1,5 +1,10 @@
1
1
  import z from "zod";
2
- import { FeedTagsInputSchema, FeedTagsSchema } from "../schemas/feed";
2
+ import {
3
+ FeedTagsInputSchema,
4
+ FeedTagsSchema,
5
+ TrendingUsersOutputSchema,
6
+ } from "../schemas/feed";
3
7
 
4
8
  export type FeedTagsInput = z.infer<typeof FeedTagsInputSchema>;
5
9
  export type FeedTagsOutput = z.infer<typeof FeedTagsSchema>;
10
+ export type TrendingUsersOutput = z.infer<typeof TrendingUsersOutputSchema>;