@zyacreatives/shared 1.7.4 → 1.7.5

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.
@@ -5,7 +5,7 @@ export declare const PostEntitySchema: z.ZodObject<{
5
5
  userId: z.ZodCUID2;
6
6
  content: z.ZodString;
7
7
  title: z.ZodNullable<z.ZodString>;
8
- parentType: z.ZodEnum<{
8
+ postType: z.ZodEnum<{
9
9
  readonly MARKETPLACE: "MARKETPLACE";
10
10
  readonly PROJECT: "PROJECT";
11
11
  readonly JOB_OPENING: "JOB_OPENING";
@@ -26,7 +26,7 @@ export declare const PostWithFilesEntitySchema: z.ZodObject<{
26
26
  userId: z.ZodCUID2;
27
27
  content: z.ZodString;
28
28
  title: z.ZodNullable<z.ZodString>;
29
- parentType: z.ZodEnum<{
29
+ postType: z.ZodEnum<{
30
30
  readonly MARKETPLACE: "MARKETPLACE";
31
31
  readonly PROJECT: "PROJECT";
32
32
  readonly JOB_OPENING: "JOB_OPENING";
@@ -21,7 +21,7 @@ exports.PostEntitySchema = zod_openapi_1.z.object({
21
21
  .string()
22
22
  .nullable()
23
23
  .openapi({ description: "Optional title", example: "My first post" }),
24
- parentType: zod_openapi_1.z.enum(constants_1.POST_TYPES).openapi({
24
+ postType: zod_openapi_1.z.enum(constants_1.POST_TYPES).openapi({
25
25
  description: "Type of the post entity this statistic belongs to.",
26
26
  title: "Post Type",
27
27
  }),
@@ -1,4 +1,5 @@
1
1
  import z from "zod";
2
2
  import { ProjectSocialGraphEntitySchema, UserSocialGraphEntitySchema } from "../schemas";
3
3
  export type ProjectSocialGraphEntity = z.infer<typeof ProjectSocialGraphEntitySchema>;
4
+ export type PostSocialGraphEntity = z.infer<typeof ProjectSocialGraphEntitySchema>;
4
5
  export type UserSocialGraphEntity = z.infer<typeof UserSocialGraphEntitySchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "1.7.4",
3
+ "version": "1.7.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,7 +19,7 @@ export const PostEntitySchema = z.object({
19
19
  .string()
20
20
  .nullable()
21
21
  .openapi({ description: "Optional title", example: "My first post" }),
22
- parentType: z.enum(POST_TYPES).openapi({
22
+ postType: z.enum(POST_TYPES).openapi({
23
23
  description: "Type of the post entity this statistic belongs to.",
24
24
  title: "Post Type",
25
25
  }),
@@ -7,4 +7,7 @@ import {
7
7
  export type ProjectSocialGraphEntity = z.infer<
8
8
  typeof ProjectSocialGraphEntitySchema
9
9
  >;
10
+ export type PostSocialGraphEntity = z.infer<
11
+ typeof ProjectSocialGraphEntitySchema
12
+ >;
10
13
  export type UserSocialGraphEntity = z.infer<typeof UserSocialGraphEntitySchema>;