@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.
- package/dist/schemas/post.d.ts +55 -57
- package/dist/schemas/post.js +1 -3
- package/package.json +1 -1
- package/src/schemas/post.ts +1 -3
package/dist/schemas/post.d.ts
CHANGED
|
@@ -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
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
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
|
|
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
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
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>>;
|
package/dist/schemas/post.js
CHANGED
|
@@ -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.
|
|
163
|
-
feed: zod_openapi_1.z.array(exports.FeedPostEntitySchema),
|
|
164
|
-
});
|
|
162
|
+
exports.GetFeedOutputSchema = zod_openapi_1.z.array(exports.FeedPostEntitySchema);
|
package/package.json
CHANGED
package/src/schemas/post.ts
CHANGED