@zyacreatives/shared 2.0.30 → 2.0.31

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.
@@ -327,62 +327,60 @@ 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: {
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
+ };
385
+ score: z.ZodNumber;
386
+ }, z.core.$strip>>;
@@ -159,6 +159,4 @@ 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.31",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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)