@zyacreatives/shared 2.2.62 → 2.2.63

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.
@@ -7,18 +7,11 @@ export declare const FeedTagsInputSchema: z.ZodObject<{
7
7
  tags: z.ZodArray<z.ZodString>;
8
8
  }, z.core.$strip>;
9
9
  export declare const TrendingUsersOutputSchema: z.ZodObject<{
10
- users: z.ZodArray<z.ZodObject<{
11
- email: z.ZodEmail;
12
- username: z.ZodOptional<z.ZodString>;
13
- id: z.ZodCUID2;
14
- name: z.ZodOptional<z.ZodString>;
15
- image: z.ZodOptional<z.ZodString>;
16
- role: z.ZodEnum<{
17
- CREATIVE: "CREATIVE";
18
- BRAND: "BRAND";
19
- INVESTOR: "INVESTOR";
20
- ADMIN: "ADMIN";
21
- }>;
10
+ creators: z.ZodArray<z.ZodObject<{
11
+ creatorUsername: z.ZodString;
12
+ creatorName: z.ZodString;
13
+ creatorId: z.ZodCUID2;
14
+ creatorImageUrl: z.ZodURL;
22
15
  isFollowing: z.ZodOptional<z.ZodBoolean>;
23
16
  followsYou: z.ZodOptional<z.ZodBoolean>;
24
17
  }, z.core.$strip>>;
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TrendingUsersOutputSchema = exports.FeedTagsInputSchema = exports.FeedTagsSchema = void 0;
4
4
  const zod_openapi_1 = require("@hono/zod-openapi");
5
- const user_1 = require("./user");
6
5
  exports.FeedTagsSchema = zod_openapi_1.z.object({
7
6
  userId: zod_openapi_1.z.cuid2(),
8
7
  tags: zod_openapi_1.z.array(zod_openapi_1.z.string()),
@@ -11,7 +10,11 @@ exports.FeedTagsInputSchema = zod_openapi_1.z.object({
11
10
  tags: zod_openapi_1.z.array(zod_openapi_1.z.string()),
12
11
  });
13
12
  exports.TrendingUsersOutputSchema = zod_openapi_1.z.object({
14
- users: zod_openapi_1.z.array(user_1.MinimalUserSchema.extend({
13
+ creators: zod_openapi_1.z.array(zod_openapi_1.z.object({
14
+ creatorUsername: zod_openapi_1.z.string(),
15
+ creatorName: zod_openapi_1.z.string(),
16
+ creatorId: zod_openapi_1.z.cuid2(),
17
+ creatorImageUrl: zod_openapi_1.z.url(),
15
18
  isFollowing: zod_openapi_1.z.boolean().optional(),
16
19
  followsYou: zod_openapi_1.z.boolean().optional(),
17
20
  })),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.2.62",
3
+ "version": "2.2.63",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,7 +11,7 @@ export const FeedTagsInputSchema = z.object({
11
11
  });
12
12
 
13
13
  export const TrendingUsersOutputSchema = z.object({
14
- users: z.array(
14
+ creators: z.array(
15
15
  z.object({
16
16
  creatorUsername: z.string(),
17
17
  creatorName: z.string(),