@zyacreatives/shared 2.1.50 → 2.1.51
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/activity.js
CHANGED
|
@@ -7,11 +7,11 @@ exports.ActivitySchema = void 0;
|
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
8
|
const constants_1 = require("../constants");
|
|
9
9
|
exports.ActivitySchema = zod_1.default.object({
|
|
10
|
-
|
|
10
|
+
id: zod_1.default.cuid2().openapi({
|
|
11
11
|
description: "Unique identifier for the bookmarked entity.",
|
|
12
12
|
title: "Entity ID",
|
|
13
13
|
}),
|
|
14
|
-
|
|
14
|
+
type: zod_1.default.enum(constants_1.ACTIVITY_TYPES),
|
|
15
15
|
actorName: zod_1.default.string(),
|
|
16
16
|
actorId: zod_1.default.string(),
|
|
17
17
|
actorUsername: zod_1.default.string(),
|
package/dist/schemas/post.d.ts
CHANGED
|
@@ -264,8 +264,8 @@ export declare const PostWithLikesEntitySchema: z.ZodObject<{
|
|
|
264
264
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
265
265
|
content: z.ZodOptional<z.ZodString>;
|
|
266
266
|
likes: z.ZodArray<z.ZodObject<{
|
|
267
|
-
|
|
268
|
-
|
|
267
|
+
id: z.ZodCUID2;
|
|
268
|
+
type: z.ZodEnum<{
|
|
269
269
|
readonly LIKE: "LIKE";
|
|
270
270
|
readonly UNLIKE: "UNLIKE";
|
|
271
271
|
readonly BOOKMARK: "BOOKMARK";
|
|
@@ -310,8 +310,8 @@ export declare const PostWithBookmarksEntitySchema: z.ZodObject<{
|
|
|
310
310
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
311
311
|
content: z.ZodOptional<z.ZodString>;
|
|
312
312
|
bookmarks: z.ZodArray<z.ZodObject<{
|
|
313
|
-
|
|
314
|
-
|
|
313
|
+
id: z.ZodCUID2;
|
|
314
|
+
type: z.ZodEnum<{
|
|
315
315
|
readonly LIKE: "LIKE";
|
|
316
316
|
readonly UNLIKE: "UNLIKE";
|
|
317
317
|
readonly BOOKMARK: "BOOKMARK";
|
package/package.json
CHANGED
package/src/schemas/activity.ts
CHANGED
|
@@ -2,11 +2,11 @@ import z from "zod";
|
|
|
2
2
|
import { ACTIVITY_TYPES } from "../constants";
|
|
3
3
|
|
|
4
4
|
export const ActivitySchema = z.object({
|
|
5
|
-
|
|
5
|
+
id: z.cuid2().openapi({
|
|
6
6
|
description: "Unique identifier for the bookmarked entity.",
|
|
7
7
|
title: "Entity ID",
|
|
8
8
|
}),
|
|
9
|
-
|
|
9
|
+
type: z.enum(ACTIVITY_TYPES),
|
|
10
10
|
actorName: z.string(),
|
|
11
11
|
actorId: z.string(),
|
|
12
12
|
actorUsername: z.string(),
|