@zyacreatives/shared 2.1.76 → 2.1.78

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.
@@ -32,26 +32,13 @@ export declare const BrandEntitySchema: z.ZodObject<{
32
32
  }, z.core.$strip>>>;
33
33
  createdAt: z.ZodCoercedDate<unknown>;
34
34
  updatedAt: z.ZodCoercedDate<unknown>;
35
- }, z.core.$strip>;
36
- export declare const ListBrandsInputSchema: z.ZodObject<{
37
- query: z.ZodOptional<z.ZodString>;
38
- disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
39
- experienceLevels: z.ZodOptional<z.ZodArray<z.ZodEnum<{
40
- "0-1 year": "0-1 year";
41
- "1-3 years": "1-3 years";
42
- "3-5 years": "3-5 years";
43
- "5+ years": "5+ years";
44
- }>>>;
45
- location: z.ZodOptional<z.ZodString>;
46
- page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
47
- perPage: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
35
+ version: z.ZodInt;
48
36
  }, z.core.$strip>;
49
37
  export declare const CreateBrandProfileInputSchema: z.ZodObject<{
50
38
  brandName: z.ZodString;
51
39
  disciplineSlugs: z.ZodDefault<z.ZodArray<z.ZodString>>;
52
40
  }, z.core.$strip>;
53
41
  export declare const UpdateBrandProfileInputSchema: z.ZodObject<{
54
- expectedUpdateAt: z.ZodISODateTime;
55
42
  brandName: z.ZodOptional<z.ZodString>;
56
43
  links: z.ZodOptional<z.ZodArray<z.ZodObject<{
57
44
  url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
@@ -71,6 +58,7 @@ export declare const UpdateBrandProfileInputSchema: z.ZodObject<{
71
58
  }, z.core.$strip>>>;
72
59
  bio: z.ZodOptional<z.ZodString>;
73
60
  disciplineSlugs: z.ZodOptional<z.ZodArray<z.ZodString>>;
61
+ version: z.ZodInt;
74
62
  }, z.core.$strip>;
75
63
  export declare const GetBrandInputSchema: z.ZodObject<{
76
64
  value: z.ZodCUID2;
@@ -109,6 +97,7 @@ export declare const CreateBrandOutputSchema: z.ZodObject<{
109
97
  }, z.core.$strip>>>;
110
98
  createdAt: z.ZodCoercedDate<unknown>;
111
99
  updatedAt: z.ZodCoercedDate<unknown>;
100
+ version: z.ZodInt;
112
101
  }, z.core.$strip>;
113
102
  export declare const GetBrandOutputSchema: z.ZodObject<{
114
103
  id: z.ZodCUID2;
@@ -134,6 +123,7 @@ export declare const GetBrandOutputSchema: z.ZodObject<{
134
123
  }, z.core.$strip>>>;
135
124
  createdAt: z.ZodCoercedDate<unknown>;
136
125
  updatedAt: z.ZodCoercedDate<unknown>;
126
+ version: z.ZodInt;
137
127
  }, z.core.$strip>;
138
128
  export declare const UpdateBrandOutputSchema: z.ZodObject<{
139
129
  id: z.ZodCUID2;
@@ -159,6 +149,7 @@ export declare const UpdateBrandOutputSchema: z.ZodObject<{
159
149
  }, z.core.$strip>>>;
160
150
  createdAt: z.ZodCoercedDate<unknown>;
161
151
  updatedAt: z.ZodCoercedDate<unknown>;
152
+ version: z.ZodInt;
162
153
  }, z.core.$strip>;
163
154
  export declare const BrandWithUserEntitySchema: z.ZodObject<{
164
155
  id: z.ZodCUID2;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SearchBrandOutputSchema = exports.SearchBrandInputSchema = exports.BrandWithUserEntitySchema = exports.UpdateBrandOutputSchema = exports.GetBrandOutputSchema = exports.CreateBrandOutputSchema = exports.GetBrandQuerySchema = exports.GetBrandInputSchema = exports.UpdateBrandProfileInputSchema = exports.CreateBrandProfileInputSchema = exports.ListBrandsInputSchema = exports.BrandEntitySchema = exports.MinimalBrandEntitySchema = void 0;
3
+ exports.SearchBrandOutputSchema = exports.SearchBrandInputSchema = exports.BrandWithUserEntitySchema = exports.UpdateBrandOutputSchema = exports.GetBrandOutputSchema = exports.CreateBrandOutputSchema = exports.GetBrandQuerySchema = exports.GetBrandInputSchema = exports.UpdateBrandProfileInputSchema = exports.CreateBrandProfileInputSchema = exports.BrandEntitySchema = exports.MinimalBrandEntitySchema = void 0;
4
4
  const zod_openapi_1 = require("@hono/zod-openapi");
5
5
  const common_1 = require("./common");
6
6
  const constants_1 = require("../constants");
@@ -49,46 +49,11 @@ exports.BrandEntitySchema = zod_openapi_1.z
49
49
  })
50
50
  .array()
51
51
  .optional(),
52
- createdAt: zod_openapi_1.z.coerce
53
- .date()
54
- .openapi({ example: "2025-10-13T09:00:00.000Z" }),
55
- updatedAt: zod_openapi_1.z.coerce
56
- .date()
57
- .openapi({ example: "2025-10-13T09:00:00.000Z" }),
52
+ createdAt: zod_openapi_1.z.coerce.date().openapi({ example: "2025-10-13T09:00:00.000Z" }),
53
+ updatedAt: zod_openapi_1.z.coerce.date().openapi({ example: "2025-10-13T09:00:00.000Z" }),
54
+ version: zod_openapi_1.z.int(),
58
55
  })
59
56
  .openapi("BrandEntitySchema");
60
- exports.ListBrandsInputSchema = zod_openapi_1.z
61
- .object({
62
- query: zod_openapi_1.z.string().optional().openapi({ example: "AI software brand" }),
63
- disciplines: zod_openapi_1.z
64
- .array(zod_openapi_1.z.string())
65
- .optional()
66
- .openapi({ example: ["design", "marketing"] }),
67
- experienceLevels: zod_openapi_1.z
68
- .array(zod_openapi_1.z.enum(Object.values(constants_1.EXPERIENCE_LEVELS)))
69
- .optional()
70
- .openapi({
71
- example: ["SENIOR", "EXPERT"],
72
- description: "Filter based on the required experience level of partners.",
73
- }),
74
- location: zod_openapi_1.z.string().optional().openapi({ example: "San Francisco" }),
75
- page: zod_openapi_1.z
76
- .number()
77
- .int()
78
- .min(1)
79
- .default(1)
80
- .optional()
81
- .openapi({ example: 1 }),
82
- perPage: zod_openapi_1.z
83
- .number()
84
- .int()
85
- .min(1)
86
- .max(100)
87
- .default(20)
88
- .optional()
89
- .openapi({ example: 20 }),
90
- })
91
- .openapi("ListBrandsInput");
92
57
  exports.CreateBrandProfileInputSchema = zod_openapi_1.z
93
58
  .object({
94
59
  brandName: zod_openapi_1.z
@@ -106,12 +71,7 @@ exports.CreateBrandProfileInputSchema = zod_openapi_1.z
106
71
  });
107
72
  exports.UpdateBrandProfileInputSchema = zod_openapi_1.z
108
73
  .object({
109
- expectedUpdateAt: zod_openapi_1.z.iso.datetime(),
110
- brandName: zod_openapi_1.z
111
- .string()
112
- .min(1)
113
- .optional()
114
- .openapi({ example: "Acme Studio" }),
74
+ brandName: zod_openapi_1.z.string().min(1).optional().openapi({ example: "Acme Studio" }),
115
75
  links: zod_openapi_1.z
116
76
  .object({
117
77
  url: zod_openapi_1.z.union([
@@ -140,6 +100,7 @@ exports.UpdateBrandProfileInputSchema = zod_openapi_1.z
140
100
  .min(1, "At least one discipline is required")
141
101
  .optional()
142
102
  .openapi({ example: ["frontend", "ui-ux"] }),
103
+ version: zod_openapi_1.z.int(),
143
104
  })
144
105
  .openapi({
145
106
  title: "update brand profile",
@@ -20,6 +20,7 @@ export declare const CreativeEntitySchema: z.ZodObject<{
20
20
  userId: z.ZodCUID2;
21
21
  bio: z.ZodOptional<z.ZodString>;
22
22
  role: z.ZodOptional<z.ZodString>;
23
+ version: z.ZodInt;
23
24
  location: z.ZodOptional<z.ZodString>;
24
25
  experienceLevel: z.ZodOptional<z.ZodEnum<{
25
26
  "0-1 year": "0-1 year";
@@ -55,19 +56,6 @@ export declare const CreativeEntitySchema: z.ZodObject<{
55
56
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
56
57
  updatedAt: z.ZodCoercedDate<unknown>;
57
58
  }, z.core.$strip>;
58
- export declare const ListCreativesInputSchema: z.ZodObject<{
59
- query: z.ZodOptional<z.ZodString>;
60
- disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
61
- experienceLevels: z.ZodOptional<z.ZodArray<z.ZodEnum<{
62
- "0-1 year": "0-1 year";
63
- "1-3 years": "1-3 years";
64
- "3-5 years": "3-5 years";
65
- "5+ years": "5+ years";
66
- }>>>;
67
- location: z.ZodOptional<z.ZodString>;
68
- page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
69
- perPage: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
70
- }, z.core.$strip>;
71
59
  export declare const CreateCreativeProfileInputSchema: z.ZodObject<{
72
60
  experienceLevel: z.ZodDefault<z.ZodEnum<{
73
61
  readonly YEAR_0_1: "0-1 year";
@@ -80,7 +68,6 @@ export declare const CreateCreativeProfileInputSchema: z.ZodObject<{
80
68
  disciplineSlugs: z.ZodDefault<z.ZodArray<z.ZodString>>;
81
69
  }, z.core.$strip>;
82
70
  export declare const UpdateCreativeProfileInputSchema: z.ZodObject<{
83
- expectedUpdateAt: z.ZodISODateTime;
84
71
  experienceLevel: z.ZodOptional<z.ZodEnum<{
85
72
  readonly YEAR_0_1: "0-1 year";
86
73
  readonly YEAR_1_3: "1-3 years";
@@ -110,6 +97,7 @@ export declare const UpdateCreativeProfileInputSchema: z.ZodObject<{
110
97
  readonly GENERIC_WEBSITE: "Generic Website";
111
98
  }>;
112
99
  }, z.core.$strip>>>;
100
+ version: z.ZodInt;
113
101
  achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
114
102
  title: z.ZodString;
115
103
  link: z.ZodOptional<z.ZodString>;
@@ -134,6 +122,7 @@ export declare const CreateCreativeOutputSchema: z.ZodObject<{
134
122
  userId: z.ZodCUID2;
135
123
  bio: z.ZodOptional<z.ZodString>;
136
124
  role: z.ZodOptional<z.ZodString>;
125
+ version: z.ZodInt;
137
126
  location: z.ZodOptional<z.ZodString>;
138
127
  experienceLevel: z.ZodOptional<z.ZodEnum<{
139
128
  "0-1 year": "0-1 year";
@@ -174,6 +163,7 @@ export declare const GetCreativeOutputSchema: z.ZodObject<{
174
163
  userId: z.ZodCUID2;
175
164
  bio: z.ZodOptional<z.ZodString>;
176
165
  role: z.ZodOptional<z.ZodString>;
166
+ version: z.ZodInt;
177
167
  location: z.ZodOptional<z.ZodString>;
178
168
  experienceLevel: z.ZodOptional<z.ZodEnum<{
179
169
  "0-1 year": "0-1 year";
@@ -214,6 +204,7 @@ export declare const UpdateCreativeOutputSchema: z.ZodObject<{
214
204
  userId: z.ZodCUID2;
215
205
  bio: z.ZodOptional<z.ZodString>;
216
206
  role: z.ZodOptional<z.ZodString>;
207
+ version: z.ZodInt;
217
208
  location: z.ZodOptional<z.ZodString>;
218
209
  experienceLevel: z.ZodOptional<z.ZodEnum<{
219
210
  "0-1 year": "0-1 year";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SearchCreativeOutputSchema = exports.SearchCreativeInputSchema = exports.CreativeWithUserEntitySchema = exports.UpdateCreativeOutputSchema = exports.GetCreativeOutputSchema = exports.CreateCreativeOutputSchema = exports.GetCreativeQuerySchema = exports.GetCreativeInputSchema = exports.UpdateCreativeProfileInputSchema = exports.CreateCreativeProfileInputSchema = exports.ListCreativesInputSchema = exports.CreativeEntitySchema = exports.MinimalCreativeEntitySchema = void 0;
3
+ exports.SearchCreativeOutputSchema = exports.SearchCreativeInputSchema = exports.CreativeWithUserEntitySchema = exports.UpdateCreativeOutputSchema = exports.GetCreativeOutputSchema = exports.CreateCreativeOutputSchema = exports.GetCreativeQuerySchema = exports.GetCreativeInputSchema = exports.UpdateCreativeProfileInputSchema = exports.CreateCreativeProfileInputSchema = exports.CreativeEntitySchema = exports.MinimalCreativeEntitySchema = void 0;
4
4
  const zod_openapi_1 = require("@hono/zod-openapi");
5
5
  const constants_1 = require("../constants");
6
6
  const common_1 = require("./common");
@@ -32,6 +32,7 @@ exports.CreativeEntitySchema = zod_openapi_1.z
32
32
  example: "A multi-disciplinary designer specializing in brand identity.",
33
33
  }),
34
34
  role: zod_openapi_1.z.string().optional().openapi({ example: "Designer" }),
35
+ version: zod_openapi_1.z.int(),
35
36
  location: zod_openapi_1.z.string().optional().openapi({ example: "London, UK" }),
36
37
  experienceLevel: zod_openapi_1.z
37
38
  .enum(Object.values(constants_1.EXPERIENCE_LEVELS))
@@ -74,51 +75,12 @@ exports.CreativeEntitySchema = zod_openapi_1.z
74
75
  .date()
75
76
  .optional()
76
77
  .openapi({ example: "2025-10-13T09:00:00.000Z" }),
77
- updatedAt: zod_openapi_1.z.coerce
78
- .date()
79
- .openapi({ example: "2025-10-13T09:00:00.000Z" }),
78
+ updatedAt: zod_openapi_1.z.coerce.date().openapi({ example: "2025-10-13T09:00:00.000Z" }),
80
79
  })
81
80
  .openapi({
82
81
  title: "CreativeEntitySchema",
83
82
  description: "Represents a creative profile, including bio, experience level, location, disciplines and timestamps.",
84
83
  });
85
- exports.ListCreativesInputSchema = zod_openapi_1.z
86
- .object({
87
- query: zod_openapi_1.z.string().optional().openapi({ example: "logo designer" }),
88
- disciplines: zod_openapi_1.z
89
- .array(zod_openapi_1.z.string())
90
- .optional()
91
- .openapi({ example: ["branding", "web design"] }),
92
- experienceLevels: zod_openapi_1.z
93
- .array(zod_openapi_1.z.enum(Object.values(constants_1.EXPERIENCE_LEVELS)))
94
- .optional()
95
- .openapi({
96
- example: [
97
- constants_1.EXPERIENCE_LEVELS.YEAR_1_3,
98
- constants_1.EXPERIENCE_LEVELS.YEAR_5_PLUS,
99
- ],
100
- }),
101
- location: zod_openapi_1.z.string().optional().openapi({ example: "Los Angeles" }),
102
- page: zod_openapi_1.z
103
- .number()
104
- .int()
105
- .min(1)
106
- .default(1)
107
- .optional()
108
- .openapi({ example: 1 }),
109
- perPage: zod_openapi_1.z
110
- .number()
111
- .int()
112
- .min(1)
113
- .max(100)
114
- .default(20)
115
- .optional()
116
- .openapi({ example: 20 }),
117
- })
118
- .openapi({
119
- title: "ListCreativesInput",
120
- description: "Query parameters for filtering and paginating creatives. Supports text search, discipline filtering, experience level filtering, tag filtering, location filtering, and pagination settings.",
121
- });
122
84
  exports.CreateCreativeProfileInputSchema = zod_openapi_1.z
123
85
  .object({
124
86
  experienceLevel: zod_openapi_1.z
@@ -152,7 +114,6 @@ exports.CreateCreativeProfileInputSchema = zod_openapi_1.z
152
114
  });
153
115
  exports.UpdateCreativeProfileInputSchema = zod_openapi_1.z
154
116
  .object({
155
- expectedUpdateAt: zod_openapi_1.z.iso.datetime(),
156
117
  experienceLevel: zod_openapi_1.z
157
118
  .enum(constants_1.EXPERIENCE_LEVELS)
158
119
  .optional()
@@ -194,6 +155,7 @@ exports.UpdateCreativeProfileInputSchema = zod_openapi_1.z
194
155
  })
195
156
  .array()
196
157
  .optional(),
158
+ version: zod_openapi_1.z.int(),
197
159
  achievements: zod_openapi_1.z
198
160
  .object({
199
161
  title: zod_openapi_1.z.string(),
@@ -152,7 +152,6 @@ exports.CreatePostOutputSchema = exports.PostEntitySchema;
152
152
  exports.GetPostOutputSchema = exports.PostWithFilesEntitySchema;
153
153
  exports.PostIdSchema = zod_openapi_1.z.object({ postId: zod_openapi_1.z.cuid2() });
154
154
  exports.MinimalPostSchema = exports.PostEntitySchema.pick({
155
- title: true,
156
155
  id: true,
157
156
  parentId: true,
158
157
  content: true,
@@ -30,6 +30,7 @@ export declare const UserEntitySchema: z.ZodObject<{
30
30
  DONE: "DONE";
31
31
  }>;
32
32
  createdAt: z.ZodCoercedDate<unknown>;
33
+ version: z.ZodInt;
33
34
  updatedAt: z.ZodCoercedDate<unknown>;
34
35
  }, z.core.$strip>;
35
36
  export declare const MinimalUserSchema: z.ZodObject<{
@@ -81,6 +82,7 @@ export declare const UserProfileEntitySchema: z.ZodObject<{
81
82
  DONE: "DONE";
82
83
  }>;
83
84
  createdAt: z.ZodCoercedDate<unknown>;
85
+ version: z.ZodInt;
84
86
  updatedAt: z.ZodCoercedDate<unknown>;
85
87
  profileType: z.ZodOptional<z.ZodEnum<{
86
88
  creative: "creative";
@@ -111,12 +113,14 @@ export declare const UserProfileEntitySchema: z.ZodObject<{
111
113
  }, z.core.$strip>>>;
112
114
  createdAt: z.ZodCoercedDate<unknown>;
113
115
  updatedAt: z.ZodCoercedDate<unknown>;
116
+ version: z.ZodInt;
114
117
  }, z.core.$strip>;
115
118
  creative: z.ZodObject<{
116
119
  id: z.ZodCUID2;
117
120
  userId: z.ZodCUID2;
118
121
  bio: z.ZodOptional<z.ZodString>;
119
122
  role: z.ZodOptional<z.ZodString>;
123
+ version: z.ZodInt;
120
124
  location: z.ZodOptional<z.ZodString>;
121
125
  experienceLevel: z.ZodOptional<z.ZodEnum<{
122
126
  "0-1 year": "0-1 year";
@@ -258,6 +262,60 @@ export declare const UserWithProjectLikesEntitySchema: z.ZodObject<{
258
262
  }, z.core.$strip>;
259
263
  }, z.core.$strip>>;
260
264
  }, z.core.$strip>;
265
+ export declare const UserWithPostLikesEntitySchema: z.ZodObject<{
266
+ userId: z.ZodCUID2;
267
+ postLikes: z.ZodArray<z.ZodObject<{
268
+ id: z.ZodCUID2;
269
+ createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
270
+ userId: z.ZodCUID2;
271
+ parentId: z.ZodCUID2;
272
+ parentType: z.ZodEnum<{
273
+ readonly PROJECT: "PROJECT";
274
+ readonly USER: "USER";
275
+ readonly JOB: "JOB";
276
+ readonly POST: "POST";
277
+ readonly COMMENT: "COMMENT";
278
+ readonly JOB_APPLICATION: "JOB_APPLICATION";
279
+ }>;
280
+ post: z.ZodObject<{
281
+ id: z.ZodCUID2;
282
+ createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
283
+ parentId: z.ZodOptional<z.ZodCUID2>;
284
+ content: z.ZodOptional<z.ZodString>;
285
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
286
+ name: z.ZodString;
287
+ id: z.ZodInt;
288
+ }, z.core.$strip>>>;
289
+ }, z.core.$strip>;
290
+ }, z.core.$strip>>;
291
+ }, z.core.$strip>;
292
+ export declare const UserWithPostBookmarksEntitySchema: z.ZodObject<{
293
+ userId: z.ZodCUID2;
294
+ postBookmarks: z.ZodArray<z.ZodObject<{
295
+ id: z.ZodCUID2;
296
+ createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
297
+ userId: z.ZodCUID2;
298
+ parentId: z.ZodCUID2;
299
+ parentType: z.ZodEnum<{
300
+ readonly PROJECT: "PROJECT";
301
+ readonly USER: "USER";
302
+ readonly JOB: "JOB";
303
+ readonly POST: "POST";
304
+ readonly COMMENT: "COMMENT";
305
+ readonly JOB_APPLICATION: "JOB_APPLICATION";
306
+ }>;
307
+ post: z.ZodObject<{
308
+ id: z.ZodCUID2;
309
+ createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
310
+ parentId: z.ZodOptional<z.ZodCUID2>;
311
+ content: z.ZodOptional<z.ZodString>;
312
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
313
+ name: z.ZodString;
314
+ id: z.ZodInt;
315
+ }, z.core.$strip>>>;
316
+ }, z.core.$strip>;
317
+ }, z.core.$strip>>;
318
+ }, z.core.$strip>;
261
319
  export declare const UserWithProjectBookmarksEntitySchema: z.ZodObject<{
262
320
  userId: z.ZodCUID2;
263
321
  projectBookmarks: z.ZodArray<z.ZodObject<{
@@ -472,6 +530,7 @@ export declare const GetAuthenticatedUserOutputSchema: z.ZodObject<{
472
530
  DONE: "DONE";
473
531
  }>;
474
532
  createdAt: z.ZodCoercedDate<unknown>;
533
+ version: z.ZodInt;
475
534
  updatedAt: z.ZodCoercedDate<unknown>;
476
535
  }, z.core.$strip>;
477
536
  export declare const GetAuthenticatedUserProfileOutputSchema: z.ZodObject<{
@@ -505,6 +564,7 @@ export declare const GetAuthenticatedUserProfileOutputSchema: z.ZodObject<{
505
564
  DONE: "DONE";
506
565
  }>;
507
566
  createdAt: z.ZodCoercedDate<unknown>;
567
+ version: z.ZodInt;
508
568
  updatedAt: z.ZodCoercedDate<unknown>;
509
569
  profileType: z.ZodOptional<z.ZodEnum<{
510
570
  creative: "creative";
@@ -535,12 +595,14 @@ export declare const GetAuthenticatedUserProfileOutputSchema: z.ZodObject<{
535
595
  }, z.core.$strip>>>;
536
596
  createdAt: z.ZodCoercedDate<unknown>;
537
597
  updatedAt: z.ZodCoercedDate<unknown>;
598
+ version: z.ZodInt;
538
599
  }, z.core.$strip>;
539
600
  creative: z.ZodObject<{
540
601
  id: z.ZodCUID2;
541
602
  userId: z.ZodCUID2;
542
603
  bio: z.ZodOptional<z.ZodString>;
543
604
  role: z.ZodOptional<z.ZodString>;
605
+ version: z.ZodInt;
544
606
  location: z.ZodOptional<z.ZodString>;
545
607
  experienceLevel: z.ZodOptional<z.ZodEnum<{
546
608
  "0-1 year": "0-1 year";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SearchUsersOutputSchema = exports.SearchUsersInputSchema = exports.GetUserActivityOutputSchema = exports.GetUserActivityInputSchema = exports.GetAuthenticatedUserWithProjectLikesOutputSchema = exports.GetAuthenticatedUserWithUserFollowersOutputSchema = exports.GetAuthenticatedUserWithUserFollowingOutputSchema = exports.GetAuthenticatedUserWithProjectBookmarksOutputSchema = exports.GetAuthenticatedUserWithProjectsOutputSchema = exports.GetAuthenticatedUserProfileOutputSchema = exports.GetAuthenticatedUserOutputSchema = exports.UserWithPostsEntitySchema = exports.GetUserFollowingOutputSchema = exports.GetUserFollowersOutputSchema = exports.UserWithFollowersEntitySchema = exports.UserWithFollowingEntitySchema = exports.GetUserFollowersInputSchema = exports.GetUserFollowingInputSchema = exports.UserWithProjectBookmarksEntitySchema = exports.UserWithProjectLikesEntitySchema = exports.UserWithProjectsEntitySchema = exports.UserProfileEntitySchema = exports.UserStatsEntitySchema = exports.MinimalUserSchema = exports.UserEntitySchema = void 0;
3
+ exports.SearchUsersOutputSchema = exports.SearchUsersInputSchema = exports.GetUserActivityOutputSchema = exports.GetUserActivityInputSchema = exports.GetAuthenticatedUserWithProjectLikesOutputSchema = exports.GetAuthenticatedUserWithUserFollowersOutputSchema = exports.GetAuthenticatedUserWithUserFollowingOutputSchema = exports.GetAuthenticatedUserWithProjectBookmarksOutputSchema = exports.GetAuthenticatedUserWithProjectsOutputSchema = exports.GetAuthenticatedUserProfileOutputSchema = exports.GetAuthenticatedUserOutputSchema = exports.UserWithPostsEntitySchema = exports.GetUserFollowingOutputSchema = exports.GetUserFollowersOutputSchema = exports.UserWithFollowersEntitySchema = exports.UserWithFollowingEntitySchema = exports.GetUserFollowersInputSchema = exports.GetUserFollowingInputSchema = exports.UserWithProjectBookmarksEntitySchema = exports.UserWithPostBookmarksEntitySchema = exports.UserWithPostLikesEntitySchema = exports.UserWithProjectLikesEntitySchema = exports.UserWithProjectsEntitySchema = exports.UserProfileEntitySchema = exports.UserStatsEntitySchema = exports.MinimalUserSchema = exports.UserEntitySchema = 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");
@@ -38,6 +38,7 @@ exports.UserEntitySchema = zod_openapi_1.z
38
38
  createdAt: zod_openapi_1.z.coerce
39
39
  .date()
40
40
  .openapi({ example: "2025-10-13T09:00:00.000Z" }),
41
+ version: zod_openapi_1.z.int(),
41
42
  updatedAt: zod_openapi_1.z.coerce
42
43
  .date()
43
44
  .openapi({ example: "2025-10-13T09:00:00.000Z" }),
@@ -82,6 +83,34 @@ exports.UserWithProjectLikesEntitySchema = zod_openapi_1.z.object({
82
83
  }),
83
84
  })),
84
85
  });
86
+ exports.UserWithPostLikesEntitySchema = zod_openapi_1.z.object({
87
+ userId: zod_openapi_1.z.cuid2(),
88
+ postLikes: zod_openapi_1.z.array(like_1.LikeEntitySchema.extend({
89
+ post: post_1.PostEntitySchema.pick({
90
+ id: true,
91
+ parentId: true,
92
+ title: true,
93
+ content: true,
94
+ tags: true,
95
+ createdAt: true,
96
+ updatedAt: true,
97
+ }),
98
+ })),
99
+ });
100
+ exports.UserWithPostBookmarksEntitySchema = zod_openapi_1.z.object({
101
+ userId: zod_openapi_1.z.cuid2(),
102
+ postBookmarks: zod_openapi_1.z.array(bookmark_1.BookmarkEntitySchema.extend({
103
+ post: post_1.PostEntitySchema.pick({
104
+ id: true,
105
+ parentId: true,
106
+ title: true,
107
+ content: true,
108
+ tags: true,
109
+ createdAt: true,
110
+ updatedAt: true,
111
+ }),
112
+ })),
113
+ });
85
114
  exports.UserWithProjectBookmarksEntitySchema = zod_openapi_1.z
86
115
  .object({
87
116
  userId: zod_openapi_1.z.cuid2(),
@@ -1,7 +1,6 @@
1
1
  import { z } from "@hono/zod-openapi";
2
- import { BrandEntitySchema, ListBrandsInputSchema, CreateBrandProfileInputSchema, UpdateBrandProfileInputSchema, GetBrandInputSchema, CreateBrandOutputSchema, GetBrandOutputSchema, UpdateBrandOutputSchema, BrandWithUserEntitySchema, SearchBrandInputSchema, SearchBrandOutputSchema, MinimalBrandEntitySchema } from "../schemas/brand";
2
+ import { BrandEntitySchema, CreateBrandProfileInputSchema, UpdateBrandProfileInputSchema, GetBrandInputSchema, CreateBrandOutputSchema, GetBrandOutputSchema, UpdateBrandOutputSchema, BrandWithUserEntitySchema, SearchBrandInputSchema, SearchBrandOutputSchema, MinimalBrandEntitySchema } from "../schemas/brand";
3
3
  export type BrandEntity = z.infer<typeof BrandEntitySchema>;
4
- export type ListBrandsInput = z.infer<typeof ListBrandsInputSchema>;
5
4
  export type CreateBrandProfileInput = z.infer<typeof CreateBrandProfileInputSchema>;
6
5
  export type UpdateBrandProfileInput = z.infer<typeof UpdateBrandProfileInputSchema>;
7
6
  export type GetBrandInput = z.infer<typeof GetBrandInputSchema>;
@@ -1,7 +1,6 @@
1
1
  import { z } from "@hono/zod-openapi";
2
- import { CreativeEntitySchema, ListCreativesInputSchema, CreateCreativeProfileInputSchema, UpdateCreativeProfileInputSchema, GetCreativeInputSchema, CreateCreativeOutputSchema, GetCreativeOutputSchema, UpdateCreativeOutputSchema, CreativeWithUserEntitySchema, SearchCreativeInputSchema, SearchCreativeOutputSchema, MinimalCreativeEntitySchema } from "../schemas/creative";
2
+ import { CreativeEntitySchema, CreateCreativeProfileInputSchema, UpdateCreativeProfileInputSchema, GetCreativeInputSchema, CreateCreativeOutputSchema, GetCreativeOutputSchema, UpdateCreativeOutputSchema, CreativeWithUserEntitySchema, SearchCreativeInputSchema, SearchCreativeOutputSchema, MinimalCreativeEntitySchema } from "../schemas/creative";
3
3
  export type CreativeEntity = z.infer<typeof CreativeEntitySchema>;
4
- export type ListCreativesInput = z.infer<typeof ListCreativesInputSchema>;
5
4
  export type CreateCreativeProfileInput = z.infer<typeof CreateCreativeProfileInputSchema>;
6
5
  export type UpdateCreativeProfileInput = z.infer<typeof UpdateCreativeProfileInputSchema>;
7
6
  export type GetCreativeInput = z.infer<typeof GetCreativeInputSchema>;
@@ -1,4 +1,4 @@
1
- import { MinimalUserSchema, UserEntitySchema, UserProfileEntitySchema, UserWithProjectsEntitySchema, UserWithProjectBookmarksEntitySchema, GetUserFollowingInputSchema, GetUserFollowersInputSchema, UserWithFollowingEntitySchema, UserWithFollowersEntitySchema, GetUserFollowingOutputSchema, GetUserFollowersOutputSchema, GetAuthenticatedUserOutputSchema, GetAuthenticatedUserProfileOutputSchema, GetAuthenticatedUserWithProjectsOutputSchema, GetAuthenticatedUserWithProjectBookmarksOutputSchema, GetAuthenticatedUserWithUserFollowingOutputSchema, GetAuthenticatedUserWithUserFollowersOutputSchema, SearchUsersInputSchema, UserWithProjectLikesEntitySchema, GetAuthenticatedUserWithProjectLikesOutputSchema, GetUserActivityInputSchema, GetUserActivityOutputSchema, UserStatsEntitySchema, UserWithPostsEntitySchema, SearchUsersOutputSchema } from "../schemas/user";
1
+ import { MinimalUserSchema, UserEntitySchema, UserProfileEntitySchema, UserWithProjectsEntitySchema, UserWithProjectBookmarksEntitySchema, GetUserFollowingInputSchema, GetUserFollowersInputSchema, UserWithFollowingEntitySchema, UserWithFollowersEntitySchema, GetUserFollowingOutputSchema, GetUserFollowersOutputSchema, GetAuthenticatedUserOutputSchema, GetAuthenticatedUserProfileOutputSchema, GetAuthenticatedUserWithProjectsOutputSchema, GetAuthenticatedUserWithProjectBookmarksOutputSchema, GetAuthenticatedUserWithUserFollowingOutputSchema, GetAuthenticatedUserWithUserFollowersOutputSchema, SearchUsersInputSchema, UserWithProjectLikesEntitySchema, GetAuthenticatedUserWithProjectLikesOutputSchema, GetUserActivityInputSchema, GetUserActivityOutputSchema, UserStatsEntitySchema, UserWithPostsEntitySchema, SearchUsersOutputSchema, UserWithPostBookmarksEntitySchema, UserWithPostLikesEntitySchema } from "../schemas/user";
2
2
  import { z } from "@hono/zod-openapi";
3
3
  export type BaseUserEntity = z.infer<typeof UserEntitySchema>;
4
4
  export type MinimalUser = z.infer<typeof MinimalUserSchema>;
@@ -7,6 +7,8 @@ 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
9
  export type UserWithProjectLikesEntity = z.infer<typeof UserWithProjectLikesEntitySchema>;
10
+ export type UserWithPostBookmarksEntity = z.infer<typeof UserWithPostBookmarksEntitySchema>;
11
+ export type UserWithPostLikesEntity = z.infer<typeof UserWithPostLikesEntitySchema>;
10
12
  export type UserWithUserPostsEntity = z.infer<typeof UserWithPostsEntitySchema>;
11
13
  export type GetUserFollowingInput = z.infer<typeof GetUserFollowingInputSchema>;
12
14
  export type GetUserFollowersInput = z.infer<typeof GetUserFollowersInputSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.1.76",
3
+ "version": "2.1.78",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",