@zyacreatives/shared 2.0.64 → 2.0.66

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.
@@ -182,26 +182,6 @@ export declare const BrandWithUserEntitySchema: z.ZodObject<{
182
182
  bio: z.ZodOptional<z.ZodString>;
183
183
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
184
184
  disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
185
- links: z.ZodOptional<z.ZodArray<z.ZodObject<{
186
- name: z.ZodString;
187
- url: z.ZodString;
188
- type: z.ZodDefault<z.ZodEnum<{
189
- readonly INSTAGRAM: "Instagram";
190
- readonly LINKEDIN: "LinkedIn";
191
- readonly TWITTER: "Twitter";
192
- readonly YOUTUBE: "Youtube";
193
- readonly PORTFOLIO: "Portfolio Website";
194
- readonly GENERIC_WEBSITE: "Generic Website";
195
- }>>;
196
- }, z.core.$strip>>>;
197
- achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
198
- title: z.ZodString;
199
- description: z.ZodString;
200
- link: z.ZodOptional<z.ZodString>;
201
- year: z.ZodOptional<z.ZodNumber>;
202
- }, z.core.$strip>>>;
203
- createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
204
- updatedAt: z.ZodCoercedDate<unknown>;
205
185
  user: z.ZodObject<{
206
186
  id: z.ZodCUID2;
207
187
  username: z.ZodOptional<z.ZodString>;
@@ -229,26 +209,6 @@ export declare const SearchBrandOutputSchema: z.ZodObject<{
229
209
  bio: z.ZodOptional<z.ZodString>;
230
210
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
231
211
  disciplines: z.ZodOptional<z.ZodArray<z.ZodString>>;
232
- links: z.ZodOptional<z.ZodArray<z.ZodObject<{
233
- name: z.ZodString;
234
- url: z.ZodString;
235
- type: z.ZodDefault<z.ZodEnum<{
236
- readonly INSTAGRAM: "Instagram";
237
- readonly LINKEDIN: "LinkedIn";
238
- readonly TWITTER: "Twitter";
239
- readonly YOUTUBE: "Youtube";
240
- readonly PORTFOLIO: "Portfolio Website";
241
- readonly GENERIC_WEBSITE: "Generic Website";
242
- }>>;
243
- }, z.core.$strip>>>;
244
- achievements: z.ZodOptional<z.ZodArray<z.ZodObject<{
245
- title: z.ZodString;
246
- description: z.ZodString;
247
- link: z.ZodOptional<z.ZodString>;
248
- year: z.ZodOptional<z.ZodNumber>;
249
- }, z.core.$strip>>>;
250
- createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
251
- updatedAt: z.ZodCoercedDate<unknown>;
252
212
  user: z.ZodObject<{
253
213
  id: z.ZodCUID2;
254
214
  username: z.ZodOptional<z.ZodString>;
@@ -146,7 +146,7 @@ exports.GetBrandQuerySchema = common_1.ProfileIdentifierSchema;
146
146
  exports.CreateBrandOutputSchema = exports.BrandEntitySchema;
147
147
  exports.GetBrandOutputSchema = exports.BrandEntitySchema;
148
148
  exports.UpdateBrandOutputSchema = exports.BrandEntitySchema;
149
- exports.BrandWithUserEntitySchema = exports.BrandEntitySchema.extend({
149
+ exports.BrandWithUserEntitySchema = exports.MinimalBrandEntitySchema.extend({
150
150
  user: user_1.MinimalUserSchema,
151
151
  });
152
152
  exports.SearchBrandInputSchema = zod_openapi_1.z.object({
@@ -263,7 +263,7 @@ export declare const UpdateCreativeOutputSchema: z.ZodObject<{
263
263
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
264
264
  updatedAt: z.ZodCoercedDate<unknown>;
265
265
  }, z.core.$strip>;
266
- export declare const CreativeWithUserEntitySchema: z.ZodOptional<z.ZodObject<{
266
+ export declare const CreativeWithUserEntitySchema: z.ZodObject<{
267
267
  id: z.ZodCUID2;
268
268
  userId: z.ZodCUID2;
269
269
  bio: z.ZodOptional<z.ZodString>;
@@ -290,14 +290,14 @@ export declare const CreativeWithUserEntitySchema: z.ZodOptional<z.ZodObject<{
290
290
  name: z.ZodOptional<z.ZodString>;
291
291
  image: z.ZodOptional<z.ZodString>;
292
292
  }, z.core.$strip>;
293
- }, z.core.$strip>>;
293
+ }, z.core.$strip>;
294
294
  export declare const SearchCreativeInputSchema: z.ZodObject<{
295
295
  string: z.ZodString;
296
296
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
297
297
  cursor: z.ZodOptional<z.ZodString>;
298
298
  }, z.core.$strip>;
299
299
  export declare const SearchCreativeOutputSchema: z.ZodObject<{
300
- creatives: z.ZodArray<z.ZodOptional<z.ZodObject<{
300
+ creatives: z.ZodArray<z.ZodObject<{
301
301
  id: z.ZodCUID2;
302
302
  userId: z.ZodCUID2;
303
303
  bio: z.ZodOptional<z.ZodString>;
@@ -324,6 +324,6 @@ export declare const SearchCreativeOutputSchema: z.ZodObject<{
324
324
  name: z.ZodOptional<z.ZodString>;
325
325
  image: z.ZodOptional<z.ZodString>;
326
326
  }, z.core.$strip>;
327
- }, z.core.$strip>>>;
327
+ }, z.core.$strip>>;
328
328
  nextCursor: z.ZodOptional<z.ZodString>;
329
329
  }, z.core.$strip>;
@@ -198,7 +198,7 @@ exports.GetCreativeOutputSchema = exports.CreativeEntitySchema;
198
198
  exports.UpdateCreativeOutputSchema = exports.CreativeEntitySchema;
199
199
  exports.CreativeWithUserEntitySchema = exports.MinimalCreativeEntitySchema.extend({
200
200
  user: user_1.MinimalUserSchema,
201
- }).optional();
201
+ });
202
202
  exports.SearchCreativeInputSchema = zod_openapi_1.z.object({
203
203
  string: zod_openapi_1.z
204
204
  .string()
@@ -24,7 +24,6 @@ export declare const ProjectEntitySchema: z.ZodObject<{
24
24
  isFeatured: z.ZodOptional<z.ZodBoolean>;
25
25
  startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
26
26
  endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
27
- searchVector: z.ZodString;
28
27
  createdAt: z.ZodCoercedDate<unknown>;
29
28
  updatedAt: z.ZodCoercedDate<unknown>;
30
29
  }, z.core.$strip>;
@@ -66,7 +65,6 @@ export declare const ProjectWithFilesEntitySchema: z.ZodObject<{
66
65
  isFeatured: z.ZodOptional<z.ZodBoolean>;
67
66
  startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
68
67
  endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
69
- searchVector: z.ZodString;
70
68
  createdAt: z.ZodCoercedDate<unknown>;
71
69
  updatedAt: z.ZodCoercedDate<unknown>;
72
70
  projectFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -180,7 +178,6 @@ export declare const CreateProjectOutputSchema: z.ZodObject<{
180
178
  isFeatured: z.ZodOptional<z.ZodBoolean>;
181
179
  startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
182
180
  endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
183
- searchVector: z.ZodString;
184
181
  createdAt: z.ZodCoercedDate<unknown>;
185
182
  updatedAt: z.ZodCoercedDate<unknown>;
186
183
  }, z.core.$strip>;
@@ -209,7 +206,6 @@ export declare const UpdateProjectOutputSchema: z.ZodObject<{
209
206
  isFeatured: z.ZodOptional<z.ZodBoolean>;
210
207
  startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
211
208
  endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
212
- searchVector: z.ZodString;
213
209
  createdAt: z.ZodCoercedDate<unknown>;
214
210
  updatedAt: z.ZodCoercedDate<unknown>;
215
211
  }, z.core.$strip>;
@@ -238,7 +234,6 @@ export declare const DeleteProjectOutputSchema: z.ZodObject<{
238
234
  isFeatured: z.ZodOptional<z.ZodBoolean>;
239
235
  startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
240
236
  endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
241
- searchVector: z.ZodString;
242
237
  createdAt: z.ZodCoercedDate<unknown>;
243
238
  updatedAt: z.ZodCoercedDate<unknown>;
244
239
  }, z.core.$strip>;
@@ -267,7 +262,6 @@ export declare const GetProjectOutputSchema: z.ZodObject<{
267
262
  isFeatured: z.ZodOptional<z.ZodBoolean>;
268
263
  startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
269
264
  endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
270
- searchVector: z.ZodString;
271
265
  createdAt: z.ZodCoercedDate<unknown>;
272
266
  updatedAt: z.ZodCoercedDate<unknown>;
273
267
  projectFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -80,10 +80,6 @@ exports.ProjectEntitySchema = zod_openapi_1.z
80
80
  description: "End date of the project.",
81
81
  example: new Date("2024-06-30"),
82
82
  }),
83
- searchVector: zod_openapi_1.z.string().openapi({
84
- description: "Search vector for full-text search indexing.",
85
- example: "ecommerce mobile app react native",
86
- }),
87
83
  createdAt: zod_openapi_1.z.coerce.date().openapi({
88
84
  description: "Timestamp when the project was created.",
89
85
  example: new Date("2024-01-01T00:00:00.000Z"),
@@ -244,7 +244,6 @@ export declare const UserWithProjectsEntitySchema: z.ZodObject<{
244
244
  isFeatured: z.ZodOptional<z.ZodBoolean>;
245
245
  startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
246
246
  endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
247
- searchVector: z.ZodString;
248
247
  }, z.core.$strip>>;
249
248
  }, z.core.$strip>;
250
249
  export declare const UserWithProjectLikesEntitySchema: z.ZodObject<{
@@ -634,7 +633,6 @@ export declare const GetAuthenticatedUserWithProjectsOutputSchema: z.ZodObject<{
634
633
  isFeatured: z.ZodOptional<z.ZodBoolean>;
635
634
  startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
636
635
  endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
637
- searchVector: z.ZodString;
638
636
  }, z.core.$strip>>;
639
637
  }, z.core.$strip>;
640
638
  export declare const GetAuthenticatedUserWithProjectBookmarksOutputSchema: z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.0.64",
3
+ "version": "2.0.66",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -165,7 +165,7 @@ export const GetBrandOutputSchema = BrandEntitySchema;
165
165
 
166
166
  export const UpdateBrandOutputSchema = BrandEntitySchema;
167
167
 
168
- export const BrandWithUserEntitySchema = BrandEntitySchema.extend({
168
+ export const BrandWithUserEntitySchema = MinimalBrandEntitySchema.extend({
169
169
  user: MinimalUserSchema,
170
170
  });
171
171
 
@@ -237,7 +237,7 @@ export const UpdateCreativeOutputSchema = CreativeEntitySchema;
237
237
 
238
238
  export const CreativeWithUserEntitySchema = MinimalCreativeEntitySchema.extend({
239
239
  user: MinimalUserSchema,
240
- }).optional();
240
+ })
241
241
 
242
242
  export const SearchCreativeInputSchema = z.object({
243
243
  string: z
@@ -79,10 +79,6 @@ export const ProjectEntitySchema = z
79
79
  description: "End date of the project.",
80
80
  example: new Date("2024-06-30"),
81
81
  }),
82
- searchVector: z.string().openapi({
83
- description: "Search vector for full-text search indexing.",
84
- example: "ecommerce mobile app react native",
85
- }),
86
82
  createdAt: z.coerce.date().openapi({
87
83
  description: "Timestamp when the project was created.",
88
84
  example: new Date("2024-01-01T00:00:00.000Z"),