@zyacreatives/shared 2.5.67 → 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.
- package/dist/schemas/feed.d.ts +8 -0
- package/dist/schemas/feed.js +8 -1
- package/package.json +1 -1
- package/src/schemas/feed.ts +11 -0
package/dist/schemas/feed.d.ts
CHANGED
|
@@ -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 {};
|
package/dist/schemas/feed.js
CHANGED
|
@@ -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
|
+
});
|
package/package.json
CHANGED
package/src/schemas/feed.ts
CHANGED
|
@@ -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>;
|