@zyacreatives/shared 2.2.59 → 2.2.60

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.
@@ -6,3 +6,20 @@ export declare const FeedTagsSchema: z.ZodObject<{
6
6
  export declare const FeedTagsInputSchema: z.ZodObject<{
7
7
  tags: z.ZodArray<z.ZodString>;
8
8
  }, z.core.$strip>;
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
+ }>;
22
+ isFollowing: z.ZodOptional<z.ZodBoolean>;
23
+ followsYou: z.ZodOptional<z.ZodBoolean>;
24
+ }, z.core.$strip>>;
25
+ }, z.core.$strip>;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FeedTagsInputSchema = exports.FeedTagsSchema = void 0;
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");
5
6
  exports.FeedTagsSchema = zod_openapi_1.z.object({
6
7
  userId: zod_openapi_1.z.cuid2(),
7
8
  tags: zod_openapi_1.z.array(zod_openapi_1.z.string()),
@@ -9,3 +10,9 @@ exports.FeedTagsSchema = zod_openapi_1.z.object({
9
10
  exports.FeedTagsInputSchema = zod_openapi_1.z.object({
10
11
  tags: zod_openapi_1.z.array(zod_openapi_1.z.string()),
11
12
  });
13
+ exports.TrendingUsersOutputSchema = zod_openapi_1.z.object({
14
+ users: zod_openapi_1.z.array(user_1.MinimalUserSchema.extend({
15
+ isFollowing: zod_openapi_1.z.boolean().optional(),
16
+ followsYou: zod_openapi_1.z.boolean().optional(),
17
+ })),
18
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.2.59",
3
+ "version": "2.2.60",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,4 +1,5 @@
1
1
  import { z } from "@hono/zod-openapi";
2
+ import { MinimalUserSchema } from "./user";
2
3
 
3
4
  export const FeedTagsSchema = z.object({
4
5
  userId: z.cuid2(),
@@ -9,3 +10,11 @@ export const FeedTagsInputSchema = z.object({
9
10
  tags: z.array(z.string()),
10
11
  });
11
12
 
13
+ export const TrendingUsersOutputSchema = z.object({
14
+ users: z.array(
15
+ MinimalUserSchema.extend({
16
+ isFollowing: z.boolean().optional(),
17
+ followsYou: z.boolean().optional(),
18
+ }),
19
+ ),
20
+ });