@zyacreatives/shared 2.0.30 → 2.0.32

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.
@@ -308,7 +308,7 @@ export declare const FeedPostEntitySchema: z.ZodObject<{
308
308
  order: z.ZodNumber;
309
309
  url: z.ZodURL;
310
310
  }, z.core.$strip>>>;
311
- stats: {
311
+ stats: z.ZodObject<{
312
312
  updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
313
313
  createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
314
314
  parentId: z.ZodCUID2;
@@ -320,69 +320,67 @@ export declare const FeedPostEntitySchema: z.ZodObject<{
320
320
  bookmarksCount: z.ZodNumber;
321
321
  viewsCount: z.ZodNumber;
322
322
  commentsCount: z.ZodNumber;
323
- };
323
+ }, z.core.$strip>;
324
324
  score: z.ZodNumber;
325
325
  }, z.core.$strip>;
326
326
  export declare const GetFeedInputSchema: z.ZodObject<{
327
327
  limit: z.ZodOptional<z.ZodNumber>;
328
328
  cursor: z.ZodOptional<z.ZodString>;
329
329
  }, z.core.$strip>;
330
- export declare const GetFeedOutputSchema: z.ZodObject<{
331
- feed: z.ZodArray<z.ZodObject<{
332
- id: z.ZodCUID2;
333
- parentId: z.ZodOptional<z.ZodCUID2>;
334
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
335
- badge: z.ZodOptional<z.ZodEnum<{
336
- readonly NETWORKING: "Networking";
337
- readonly FUNDING: "Funding";
338
- readonly COLLABORATION: "Collaboration";
339
- readonly OPPORTUNITIES: "Opportunities";
340
- readonly SHOWCASE: "Showcase";
341
- readonly LEARNING: "Learning";
342
- readonly DISCUSSION: "Discussion";
343
- readonly MENTORSHIP: "Mentorship";
344
- }>>;
345
- userId: z.ZodCUID2;
346
- creatorUsername: z.ZodOptional<z.ZodString>;
347
- creatorFullName: z.ZodOptional<z.ZodString>;
348
- creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
349
- content: z.ZodOptional<z.ZodString>;
350
- postType: z.ZodEnum<{
351
- readonly MARKETPLACE: "MARKETPLACE";
330
+ export declare const GetFeedOutputSchema: z.ZodArray<z.ZodObject<{
331
+ id: z.ZodCUID2;
332
+ parentId: z.ZodOptional<z.ZodCUID2>;
333
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
334
+ badge: z.ZodOptional<z.ZodEnum<{
335
+ readonly NETWORKING: "Networking";
336
+ readonly FUNDING: "Funding";
337
+ readonly COLLABORATION: "Collaboration";
338
+ readonly OPPORTUNITIES: "Opportunities";
339
+ readonly SHOWCASE: "Showcase";
340
+ readonly LEARNING: "Learning";
341
+ readonly DISCUSSION: "Discussion";
342
+ readonly MENTORSHIP: "Mentorship";
343
+ }>>;
344
+ userId: z.ZodCUID2;
345
+ creatorUsername: z.ZodOptional<z.ZodString>;
346
+ creatorFullName: z.ZodOptional<z.ZodString>;
347
+ creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
348
+ content: z.ZodOptional<z.ZodString>;
349
+ postType: z.ZodEnum<{
350
+ readonly MARKETPLACE: "MARKETPLACE";
351
+ readonly PROJECT: "PROJECT";
352
+ readonly JOB_OPENING: "JOB_OPENING";
353
+ readonly DEFAULT_POST: "DEFAULT_POST";
354
+ readonly POST_WITH_LINKS: "POST_WITH_LINKS";
355
+ readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
356
+ readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
357
+ }>;
358
+ createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
359
+ linkMeta: z.ZodOptional<z.ZodObject<{
360
+ url: z.ZodURL;
361
+ title: z.ZodOptional<z.ZodString>;
362
+ description: z.ZodOptional<z.ZodString>;
363
+ image: z.ZodOptional<z.ZodURL>;
364
+ }, z.core.$strip>>;
365
+ postFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
366
+ id: z.ZodString;
367
+ postId: z.ZodString;
368
+ fileId: z.ZodString;
369
+ order: z.ZodNumber;
370
+ url: z.ZodURL;
371
+ }, z.core.$strip>>>;
372
+ stats: z.ZodObject<{
373
+ updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
374
+ createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
375
+ parentId: z.ZodCUID2;
376
+ parentType: z.ZodEnum<{
352
377
  readonly PROJECT: "PROJECT";
353
- readonly JOB_OPENING: "JOB_OPENING";
354
- readonly DEFAULT_POST: "DEFAULT_POST";
355
- readonly POST_WITH_LINKS: "POST_WITH_LINKS";
356
- readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
357
- readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
378
+ readonly POST: "POST";
358
379
  }>;
359
- createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
360
- linkMeta: z.ZodOptional<z.ZodObject<{
361
- url: z.ZodURL;
362
- title: z.ZodOptional<z.ZodString>;
363
- description: z.ZodOptional<z.ZodString>;
364
- image: z.ZodOptional<z.ZodURL>;
365
- }, z.core.$strip>>;
366
- postFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
367
- id: z.ZodString;
368
- postId: z.ZodString;
369
- fileId: z.ZodString;
370
- order: z.ZodNumber;
371
- url: z.ZodURL;
372
- }, z.core.$strip>>>;
373
- stats: {
374
- updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
375
- createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
376
- parentId: z.ZodCUID2;
377
- parentType: z.ZodEnum<{
378
- readonly PROJECT: "PROJECT";
379
- readonly POST: "POST";
380
- }>;
381
- likesCount: z.ZodNumber;
382
- bookmarksCount: z.ZodNumber;
383
- viewsCount: z.ZodNumber;
384
- commentsCount: z.ZodNumber;
385
- };
386
- score: z.ZodNumber;
387
- }, z.core.$strip>>;
388
- }, z.core.$strip>;
380
+ likesCount: z.ZodNumber;
381
+ bookmarksCount: z.ZodNumber;
382
+ viewsCount: z.ZodNumber;
383
+ commentsCount: z.ZodNumber;
384
+ }, z.core.$strip>;
385
+ score: z.ZodNumber;
386
+ }, z.core.$strip>>;
@@ -152,13 +152,11 @@ exports.LinkPreviewOutputSchema = zod_openapi_1.z.object({
152
152
  url: zod_openapi_1.z.string().optional(),
153
153
  });
154
154
  exports.FeedPostEntitySchema = exports.PostWithFilesEntitySchema.extend({
155
- stats: entity_stats_1.EntityStatsSchema.shape,
155
+ stats: entity_stats_1.EntityStatsSchema,
156
156
  score: zod_openapi_1.z.number(),
157
157
  });
158
158
  exports.GetFeedInputSchema = zod_openapi_1.z.object({
159
159
  limit: zod_openapi_1.z.number().optional(),
160
160
  cursor: zod_openapi_1.z.string().optional(),
161
161
  });
162
- exports.GetFeedOutputSchema = zod_openapi_1.z.object({
163
- feed: zod_openapi_1.z.array(exports.FeedPostEntitySchema),
164
- });
162
+ exports.GetFeedOutputSchema = zod_openapi_1.z.array(exports.FeedPostEntitySchema);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.0.30",
3
+ "version": "2.0.32",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -167,7 +167,7 @@ export const LinkPreviewOutputSchema = z.object({
167
167
  });
168
168
 
169
169
  export const FeedPostEntitySchema = PostWithFilesEntitySchema.extend({
170
- stats: EntityStatsSchema.shape,
170
+ stats: EntityStatsSchema,
171
171
  score: z.number(),
172
172
  });
173
173
 
@@ -176,6 +176,4 @@ export const GetFeedInputSchema = z.object({
176
176
  cursor: z.string().optional(),
177
177
  });
178
178
 
179
- export const GetFeedOutputSchema = z.object({
180
- feed: z.array(FeedPostEntitySchema),
181
- });
179
+ export const GetFeedOutputSchema = z.array(FeedPostEntitySchema)