@zyacreatives/shared 1.4.1 → 1.4.3

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.
@@ -36,8 +36,8 @@ export declare const CreateCreativeProfileInputSchema: z.ZodObject<{
36
36
  readonly YEAR_3_5: "3-5 years";
37
37
  readonly YEAR_5_PLUS: "5+ years";
38
38
  }>>;
39
- bio: z.ZodDefault<z.ZodOptional<z.ZodString>>;
40
- location: z.ZodDefault<z.ZodOptional<z.ZodString>>;
39
+ bio: z.ZodOptional<z.ZodString>;
40
+ location: z.ZodOptional<z.ZodString>;
41
41
  disciplineSlugs: z.ZodDefault<z.ZodArray<z.ZodString>>;
42
42
  }, z.core.$strip>;
43
43
  export declare const UpdateCreativeProfileInputSchema: z.ZodObject<{
@@ -68,13 +68,11 @@ exports.CreateCreativeProfileInputSchema = zod_openapi_1.z
68
68
  .string()
69
69
  .max(210)
70
70
  .optional()
71
- .default("")
72
71
  .openapi({ example: "I am a freelance UI/UX designer." }),
73
72
  location: zod_openapi_1.z
74
73
  .string()
75
74
  .max(100)
76
75
  .optional()
77
- .default("")
78
76
  .openapi({ example: "Lagos, Nigeria" }),
79
77
  disciplineSlugs: zod_openapi_1.z
80
78
  .array(zod_openapi_1.z.string())
@@ -1,10 +1,20 @@
1
+ import { BaseUserEntitySchema, MinimalUserSchema, UserEntitySchema, UserProfileEntitySchema, UserWithProjectsEntitySchema, UserWithProjectBookmarksEntitySchema, GetUserFollowingInputSchema, GetUserFollowersInputSchema, UserWithFollowingEntitySchema, UserWithFollowersEntitySchema, GetUserFollowingOutputSchema, GetUserFollowersOutputSchema, GetAuthenticatedUserOutputSchema, GetAuthenticatedUserProfileOutputSchema, GetAuthenticatedUserWithProjectsOutputSchema, GetAuthenticatedUserWithProjectBookmarksOutputSchema, GetAuthenticatedUserWithUserFollowingOutputSchema, GetAuthenticatedUserWithUserFollowersOutputSchema } from "../schemas/user";
1
2
  import { z } from "@hono/zod-openapi";
2
- import { BaseUserEntitySchema, UserWithFollowingEntitySchema, MinimalUserSchema, UserEntitySchema, UserProfileEntitySchema, UserWithProjectBookmarksEntitySchema, UserWithProjectsEntitySchema, UserWithFollowersEntitySchema } from "../schemas";
3
3
  export type BaseUserEntity = z.infer<typeof BaseUserEntitySchema>;
4
4
  export type MinimalUser = z.infer<typeof MinimalUserSchema>;
5
5
  export type UserEntity = z.infer<typeof UserEntitySchema>;
6
6
  export type UserProfileEntity = z.infer<typeof UserProfileEntitySchema>;
7
7
  export type UserWithProjectsEntity = z.infer<typeof UserWithProjectsEntitySchema>;
8
8
  export type UserWithProjectBookmarksEntity = z.infer<typeof UserWithProjectBookmarksEntitySchema>;
9
+ export type GetUserFollowingInput = z.infer<typeof GetUserFollowingInputSchema>;
10
+ export type GetUserFollowersInput = z.infer<typeof GetUserFollowersInputSchema>;
9
11
  export type UserWithFollowingEntity = z.infer<typeof UserWithFollowingEntitySchema>;
10
12
  export type UserWithFollowersEntity = z.infer<typeof UserWithFollowersEntitySchema>;
13
+ export type GetUserFollowingOutput = z.infer<typeof GetUserFollowingOutputSchema>;
14
+ export type GetUserFollowersOutput = z.infer<typeof GetUserFollowersOutputSchema>;
15
+ export type GetAuthenticatedUserOutput = z.infer<typeof GetAuthenticatedUserOutputSchema>;
16
+ export type GetAuthenticatedUserProfileOutput = z.infer<typeof GetAuthenticatedUserProfileOutputSchema>;
17
+ export type GetAuthenticatedUserWithProjectsOutput = z.infer<typeof GetAuthenticatedUserWithProjectsOutputSchema>;
18
+ export type GetAuthenticatedUserWithProjectBookmarksOutput = z.infer<typeof GetAuthenticatedUserWithProjectBookmarksOutputSchema>;
19
+ export type GetAuthenticatedUserWithUserFollowingOutput = z.infer<typeof GetAuthenticatedUserWithUserFollowingOutputSchema>;
20
+ 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.4.1",
3
+ "version": "1.4.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -80,13 +80,11 @@ export const CreateCreativeProfileInputSchema = z
80
80
  .string()
81
81
  .max(210)
82
82
  .optional()
83
- .default("")
84
83
  .openapi({ example: "I am a freelance UI/UX designer." }),
85
84
  location: z
86
85
  .string()
87
86
  .max(100)
88
87
  .optional()
89
- .default("")
90
88
  .openapi({ example: "Lagos, Nigeria" }),
91
89
  disciplineSlugs: z
92
90
  .array(z.string())
@@ -136,6 +134,6 @@ export const GetCreativeQuerySchema = ProfileIdentifierSchema;
136
134
 
137
135
  export const CreateCreativeOutputSchema = CreativeEntitySchema;
138
136
 
139
- export const GetCreativeOutputSchema = CreativeEntitySchema
137
+ export const GetCreativeOutputSchema = CreativeEntitySchema;
140
138
 
141
139
  export const UpdateCreativeOutputSchema = CreativeEntitySchema;
package/src/types/user.ts CHANGED
@@ -1,35 +1,67 @@
1
- import { z } from "@hono/zod-openapi";
1
+ // user.types.ts
2
2
  import {
3
+ UserSocialGraphEntitySchema,
3
4
  BaseUserEntitySchema,
4
- UserWithFollowingEntitySchema,
5
5
  MinimalUserSchema,
6
6
  UserEntitySchema,
7
7
  UserProfileEntitySchema,
8
- UserWithProjectBookmarksEntitySchema,
9
8
  UserWithProjectsEntitySchema,
9
+ UserWithProjectBookmarksEntitySchema,
10
+ GetUserFollowingInputSchema,
11
+ GetUserFollowersInputSchema,
12
+ UserWithFollowingEntitySchema,
10
13
  UserWithFollowersEntitySchema,
11
- } from "../schemas";
14
+ GetUserFollowingOutputSchema,
15
+ GetUserFollowersOutputSchema,
16
+ GetAuthenticatedUserOutputSchema,
17
+ GetAuthenticatedUserProfileOutputSchema,
18
+ GetAuthenticatedUserWithProjectsOutputSchema,
19
+ GetAuthenticatedUserWithProjectBookmarksOutputSchema,
20
+ GetAuthenticatedUserWithUserFollowingOutputSchema,
21
+ GetAuthenticatedUserWithUserFollowersOutputSchema,
22
+ } from "../schemas/user";
12
23
 
13
- export type BaseUserEntity = z.infer<typeof BaseUserEntitySchema>;
24
+ import { z } from "@hono/zod-openapi";
14
25
 
26
+ export type BaseUserEntity = z.infer<typeof BaseUserEntitySchema>;
15
27
  export type MinimalUser = z.infer<typeof MinimalUserSchema>;
16
-
17
28
  export type UserEntity = z.infer<typeof UserEntitySchema>;
18
-
19
29
  export type UserProfileEntity = z.infer<typeof UserProfileEntitySchema>;
20
-
21
30
  export type UserWithProjectsEntity = z.infer<
22
31
  typeof UserWithProjectsEntitySchema
23
32
  >;
24
-
25
33
  export type UserWithProjectBookmarksEntity = z.infer<
26
34
  typeof UserWithProjectBookmarksEntitySchema
27
35
  >;
28
-
36
+ export type GetUserFollowingInput = z.infer<typeof GetUserFollowingInputSchema>;
37
+ export type GetUserFollowersInput = z.infer<typeof GetUserFollowersInputSchema>;
29
38
  export type UserWithFollowingEntity = z.infer<
30
39
  typeof UserWithFollowingEntitySchema
31
40
  >;
32
-
33
41
  export type UserWithFollowersEntity = z.infer<
34
42
  typeof UserWithFollowersEntitySchema
35
43
  >;
44
+ export type GetUserFollowingOutput = z.infer<
45
+ typeof GetUserFollowingOutputSchema
46
+ >;
47
+ export type GetUserFollowersOutput = z.infer<
48
+ typeof GetUserFollowersOutputSchema
49
+ >;
50
+ export type GetAuthenticatedUserOutput = z.infer<
51
+ typeof GetAuthenticatedUserOutputSchema
52
+ >;
53
+ export type GetAuthenticatedUserProfileOutput = z.infer<
54
+ typeof GetAuthenticatedUserProfileOutputSchema
55
+ >;
56
+ export type GetAuthenticatedUserWithProjectsOutput = z.infer<
57
+ typeof GetAuthenticatedUserWithProjectsOutputSchema
58
+ >;
59
+ export type GetAuthenticatedUserWithProjectBookmarksOutput = z.infer<
60
+ typeof GetAuthenticatedUserWithProjectBookmarksOutputSchema
61
+ >;
62
+ export type GetAuthenticatedUserWithUserFollowingOutput = z.infer<
63
+ typeof GetAuthenticatedUserWithUserFollowingOutputSchema
64
+ >;
65
+ export type GetAuthenticatedUserWithUserFollowersOutput = z.infer<
66
+ typeof GetAuthenticatedUserWithUserFollowersOutputSchema
67
+ >;