@zyacreatives/shared 2.5.66 → 2.5.68

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.
@@ -62,4 +62,12 @@ export declare const TrendingUsersOutputSchema: z.ZodObject<{
62
62
  }, z.core.$strip>>;
63
63
  }, z.core.$strip>;
64
64
  export type TrendingUsersOutput = z.infer<typeof TrendingUsersOutputSchema>;
65
+ export declare const FeedTagsInputSchema: z.ZodObject<{
66
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
67
+ }, z.core.$strip>;
68
+ export declare const FeedTagsSchema: z.ZodObject<{
69
+ userId: z.ZodCUID2;
70
+ tags: z.ZodArray<z.ZodString>;
71
+ }, z.core.$strip>;
72
+ export type FeedTagsInput = z.infer<typeof FeedTagsInputSchema>;
65
73
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TrendingUsersOutputSchema = exports.FeedTagsOutputSchema = exports.UpdateFeedTagsInputSchema = exports.TrendingUserSchema = exports.FeedTagsEntitySchema = void 0;
3
+ exports.FeedTagsSchema = exports.FeedTagsInputSchema = exports.TrendingUsersOutputSchema = exports.FeedTagsOutputSchema = exports.UpdateFeedTagsInputSchema = exports.TrendingUserSchema = exports.FeedTagsEntitySchema = void 0;
4
4
  const zod_openapi_1 = require("@hono/zod-openapi");
5
5
  /**
6
6
  * --------------------------------
@@ -49,3 +49,10 @@ exports.FeedTagsOutputSchema = exports.FeedTagsEntitySchema;
49
49
  exports.TrendingUsersOutputSchema = zod_openapi_1.z.object({
50
50
  creators: zod_openapi_1.z.array(exports.TrendingUserSchema),
51
51
  });
52
+ exports.FeedTagsInputSchema = zod_openapi_1.z.object({
53
+ tags: zod_openapi_1.z.array(zod_openapi_1.z.string().min(1)).default([]),
54
+ });
55
+ exports.FeedTagsSchema = zod_openapi_1.z.object({
56
+ userId: zod_openapi_1.z.cuid2(),
57
+ tags: zod_openapi_1.z.array(zod_openapi_1.z.string()),
58
+ });
@@ -659,6 +659,7 @@ export declare const ProjectSearchDocumentSchema: z.ZodObject<{
659
659
  id: z.ZodCUID2;
660
660
  url: z.ZodURL;
661
661
  }, z.core.$strip>>>;
662
+ isBookmarked: z.ZodDefault<z.ZodBoolean>;
662
663
  }, z.core.$strip>;
663
664
  export type ProjectSearchDocument = z.infer<typeof ProjectSearchDocumentSchema>;
664
665
  /**
@@ -847,6 +848,7 @@ export declare const SearchProjectsOutputSchema: z.ZodObject<{
847
848
  id: z.ZodCUID2;
848
849
  url: z.ZodURL;
849
850
  }, z.core.$strip>>>;
851
+ isBookmarked: z.ZodDefault<z.ZodBoolean>;
850
852
  }, z.core.$strip>>;
851
853
  nextCursor: z.ZodOptional<z.ZodString>;
852
854
  }, z.core.$strip>;
@@ -258,6 +258,7 @@ exports.ProjectSearchDocumentSchema = zod_openapi_1.z
258
258
  startDate: zod_openapi_1.z.iso.datetime().optional(),
259
259
  endDate: zod_openapi_1.z.iso.datetime().optional(),
260
260
  files: zod_openapi_1.z.array(file_1.FileEntitySchema).optional(),
261
+ isBookmarked: zod_openapi_1.z.boolean().default(false)
261
262
  })
262
263
  .openapi("ProjectSearchDocument");
263
264
  /**
@@ -627,6 +627,7 @@ export declare const UserWithProjectBookmarksEntitySchema: z.ZodObject<{
627
627
  id: z.ZodCUID2;
628
628
  url: z.ZodURL;
629
629
  }, z.core.$strip>>>;
630
+ isBookmarked: z.ZodDefault<z.ZodBoolean>;
630
631
  }, z.core.$strip>;
631
632
  }, z.core.$strip>>;
632
633
  }, z.core.$strip>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.5.66",
3
+ "version": "2.5.68",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -69,3 +69,14 @@ export const TrendingUsersOutputSchema = z.object({
69
69
  });
70
70
 
71
71
  export type TrendingUsersOutput = z.infer<typeof TrendingUsersOutputSchema>;
72
+
73
+ export const FeedTagsInputSchema = z.object({
74
+ tags: z.array(z.string().min(1)).default([]),
75
+ });
76
+
77
+ export const FeedTagsSchema = z.object({
78
+ userId: z.cuid2(),
79
+ tags: z.array(z.string()),
80
+ });
81
+
82
+ export type FeedTagsInput = z.infer<typeof FeedTagsInputSchema>;
@@ -382,6 +382,7 @@ export const ProjectSearchDocumentSchema = z
382
382
  endDate: z.iso.datetime().optional(),
383
383
 
384
384
  files: z.array(FileEntitySchema).optional(),
385
+ isBookmarked: z.boolean().default(false)
385
386
  })
386
387
  .openapi("ProjectSearchDocument");
387
388