@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.
@@ -1,7 +1,7 @@
1
1
  import z from "zod";
2
2
  export declare const ActivitySchema: z.ZodObject<{
3
- activityId: z.ZodCUID2;
4
- activityType: z.ZodEnum<{
3
+ id: z.ZodCUID2;
4
+ type: z.ZodEnum<{
5
5
  readonly LIKE: "LIKE";
6
6
  readonly UNLIKE: "UNLIKE";
7
7
  readonly BOOKMARK: "BOOKMARK";
@@ -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
- activityId: zod_1.default.cuid2().openapi({
10
+ id: zod_1.default.cuid2().openapi({
11
11
  description: "Unique identifier for the bookmarked entity.",
12
12
  title: "Entity ID",
13
13
  }),
14
- activityType: zod_1.default.enum(constants_1.ACTIVITY_TYPES),
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(),
@@ -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
- activityId: z.ZodCUID2;
268
- activityType: z.ZodEnum<{
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
- activityId: z.ZodCUID2;
314
- activityType: z.ZodEnum<{
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.1.50",
3
+ "version": "2.1.51",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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
- activityId: z.cuid2().openapi({
5
+ id: z.cuid2().openapi({
6
6
  description: "Unique identifier for the bookmarked entity.",
7
7
  title: "Entity ID",
8
8
  }),
9
- activityType: z.enum(ACTIVITY_TYPES),
9
+ type: z.enum(ACTIVITY_TYPES),
10
10
  actorName: z.string(),
11
11
  actorId: z.string(),
12
12
  actorUsername: z.string(),