@zyacreatives/shared 1.5.9 → 1.6.1

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.
@@ -520,3 +520,20 @@ export declare const GetAuthenticatedUserWithUserFollowersOutputSchema: z.ZodObj
520
520
  }>;
521
521
  }, z.core.$strip>>;
522
522
  }, z.core.$strip>;
523
+ export declare const GetAuthenticatedUserWithProjectLikesOutputSchema: z.ZodObject<{
524
+ userId: z.ZodCUID2;
525
+ projectLikes: z.ZodArray<z.ZodObject<{
526
+ projectId: z.ZodCUID2;
527
+ userId: z.ZodCUID2;
528
+ createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
529
+ project: z.ZodObject<{
530
+ id: z.ZodString;
531
+ description: z.ZodOptional<z.ZodString>;
532
+ title: z.ZodString;
533
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
534
+ imagePlaceholderUrl: z.ZodString;
535
+ startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
536
+ endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
537
+ }, z.core.$strip>;
538
+ }, z.core.$strip>>;
539
+ }, z.core.$strip>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetAuthenticatedUserWithUserFollowersOutputSchema = exports.GetAuthenticatedUserWithUserFollowingOutputSchema = exports.GetAuthenticatedUserWithProjectBookmarksOutputSchema = exports.GetAuthenticatedUserWithProjectsOutputSchema = exports.GetAuthenticatedUserProfileOutputSchema = exports.GetAuthenticatedUserOutputSchema = exports.GetUserFollowersOutputSchema = exports.GetUserFollowingOutputSchema = exports.UserWithFollowersEntitySchema = exports.UserWithFollowingEntitySchema = exports.GetUserFollowersInputSchema = exports.GetUserFollowingInputSchema = exports.UserWithProjectBookmarksEntitySchema = exports.UserWithProjectLikesEntitySchema = exports.UserWithProjectsEntitySchema = exports.UserProfileEntitySchema = exports.UserEntitySchema = exports.MinimalUserSchema = exports.BaseUserEntitySchema = exports.UserSocialGraphEntitySchema = void 0;
3
+ exports.GetAuthenticatedUserWithProjectLikesOutputSchema = exports.GetAuthenticatedUserWithUserFollowersOutputSchema = exports.GetAuthenticatedUserWithUserFollowingOutputSchema = exports.GetAuthenticatedUserWithProjectBookmarksOutputSchema = exports.GetAuthenticatedUserWithProjectsOutputSchema = exports.GetAuthenticatedUserProfileOutputSchema = exports.GetAuthenticatedUserOutputSchema = exports.GetUserFollowersOutputSchema = exports.GetUserFollowingOutputSchema = exports.UserWithFollowersEntitySchema = exports.UserWithFollowingEntitySchema = exports.GetUserFollowersInputSchema = exports.GetUserFollowingInputSchema = exports.UserWithProjectBookmarksEntitySchema = exports.UserWithProjectLikesEntitySchema = exports.UserWithProjectsEntitySchema = exports.UserProfileEntitySchema = exports.UserEntitySchema = exports.MinimalUserSchema = exports.BaseUserEntitySchema = exports.UserSocialGraphEntitySchema = void 0;
4
4
  const zod_openapi_1 = require("@hono/zod-openapi");
5
5
  const constants_1 = require("../constants");
6
6
  const project_1 = require("./project");
@@ -137,3 +137,4 @@ exports.GetAuthenticatedUserWithProjectsOutputSchema = exports.UserWithProjectsE
137
137
  exports.GetAuthenticatedUserWithProjectBookmarksOutputSchema = exports.UserWithProjectBookmarksEntitySchema;
138
138
  exports.GetAuthenticatedUserWithUserFollowingOutputSchema = exports.UserWithFollowingEntitySchema;
139
139
  exports.GetAuthenticatedUserWithUserFollowersOutputSchema = exports.UserWithFollowersEntitySchema;
140
+ exports.GetAuthenticatedUserWithProjectLikesOutputSchema = exports.UserWithProjectLikesEntitySchema;
@@ -1,4 +1,4 @@
1
- import { BaseUserEntitySchema, MinimalUserSchema, UserEntitySchema, UserProfileEntitySchema, UserWithProjectsEntitySchema, UserWithProjectBookmarksEntitySchema, GetUserFollowingInputSchema, GetUserFollowersInputSchema, UserWithFollowingEntitySchema, UserWithFollowersEntitySchema, GetUserFollowingOutputSchema, GetUserFollowersOutputSchema, GetAuthenticatedUserOutputSchema, GetAuthenticatedUserProfileOutputSchema, GetAuthenticatedUserWithProjectsOutputSchema, GetAuthenticatedUserWithProjectBookmarksOutputSchema, GetAuthenticatedUserWithUserFollowingOutputSchema, GetAuthenticatedUserWithUserFollowersOutputSchema, UserWithProjectLikesEntitySchema } from "../schemas/user";
1
+ import { BaseUserEntitySchema, MinimalUserSchema, UserEntitySchema, UserProfileEntitySchema, UserWithProjectsEntitySchema, UserWithProjectBookmarksEntitySchema, GetUserFollowingInputSchema, GetUserFollowersInputSchema, UserWithFollowingEntitySchema, UserWithFollowersEntitySchema, GetUserFollowingOutputSchema, GetUserFollowersOutputSchema, GetAuthenticatedUserOutputSchema, GetAuthenticatedUserProfileOutputSchema, GetAuthenticatedUserWithProjectsOutputSchema, GetAuthenticatedUserWithProjectBookmarksOutputSchema, GetAuthenticatedUserWithUserFollowingOutputSchema, GetAuthenticatedUserWithUserFollowersOutputSchema, UserWithProjectLikesEntitySchema, GetAuthenticatedUserWithProjectLikesOutputSchema } from "../schemas/user";
2
2
  import { z } from "@hono/zod-openapi";
3
3
  export type BaseUserEntity = z.infer<typeof BaseUserEntitySchema>;
4
4
  export type MinimalUser = z.infer<typeof MinimalUserSchema>;
@@ -17,5 +17,6 @@ export type GetAuthenticatedUserOutput = z.infer<typeof GetAuthenticatedUserOutp
17
17
  export type GetAuthenticatedUserProfileOutput = z.infer<typeof GetAuthenticatedUserProfileOutputSchema>;
18
18
  export type GetAuthenticatedUserWithProjectsOutput = z.infer<typeof GetAuthenticatedUserWithProjectsOutputSchema>;
19
19
  export type GetAuthenticatedUserWithProjectBookmarksOutput = z.infer<typeof GetAuthenticatedUserWithProjectBookmarksOutputSchema>;
20
+ export type GetAuthenticatedUserWithProjectLikesOutput = z.infer<typeof GetAuthenticatedUserWithProjectLikesOutputSchema>;
20
21
  export type GetAuthenticatedUserWithUserFollowingOutput = z.infer<typeof GetAuthenticatedUserWithUserFollowingOutputSchema>;
21
22
  export type GetAuthenticatedUserWithUserFollowersOutput = z.infer<typeof GetAuthenticatedUserWithUserFollowersOutputSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "1.5.9",
3
+ "version": "1.6.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -171,3 +171,6 @@ export const GetAuthenticatedUserWithUserFollowingOutputSchema =
171
171
 
172
172
  export const GetAuthenticatedUserWithUserFollowersOutputSchema =
173
173
  UserWithFollowersEntitySchema;
174
+
175
+ export const GetAuthenticatedUserWithProjectLikesOutputSchema =
176
+ UserWithProjectLikesEntitySchema;
package/src/types/user.ts CHANGED
@@ -20,6 +20,7 @@ import {
20
20
  GetAuthenticatedUserWithUserFollowingOutputSchema,
21
21
  GetAuthenticatedUserWithUserFollowersOutputSchema,
22
22
  UserWithProjectLikesEntitySchema,
23
+ GetAuthenticatedUserWithProjectLikesOutputSchema,
23
24
  } from "../schemas/user";
24
25
 
25
26
  import { z } from "@hono/zod-openapi";
@@ -63,6 +64,9 @@ export type GetAuthenticatedUserWithProjectsOutput = z.infer<
63
64
  export type GetAuthenticatedUserWithProjectBookmarksOutput = z.infer<
64
65
  typeof GetAuthenticatedUserWithProjectBookmarksOutputSchema
65
66
  >;
67
+ export type GetAuthenticatedUserWithProjectLikesOutput = z.infer<
68
+ typeof GetAuthenticatedUserWithProjectLikesOutputSchema
69
+ >;
66
70
  export type GetAuthenticatedUserWithUserFollowingOutput = z.infer<
67
71
  typeof GetAuthenticatedUserWithUserFollowingOutputSchema
68
72
  >;