@zyacreatives/shared 2.1.54 → 2.1.56
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 +6 -2
- package/dist/schemas/post.js +2 -6
- package/package.json +1 -1
- package/src/schemas/post.ts +5 -8
package/dist/schemas/post.d.ts
CHANGED
|
@@ -279,6 +279,9 @@ export declare const PostWithLikesEntitySchema: z.ZodObject<{
|
|
|
279
279
|
}, z.core.$strip>>;
|
|
280
280
|
}, z.core.$strip>;
|
|
281
281
|
export declare const GetPostWithLikesOutputSchema: z.ZodObject<{
|
|
282
|
+
id: z.ZodCUID2;
|
|
283
|
+
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
284
|
+
content: z.ZodOptional<z.ZodString>;
|
|
282
285
|
likes: z.ZodArray<z.ZodObject<{
|
|
283
286
|
id: z.ZodCUID2;
|
|
284
287
|
type: z.ZodEnum<{
|
|
@@ -293,7 +296,6 @@ export declare const GetPostWithLikesOutputSchema: z.ZodObject<{
|
|
|
293
296
|
actorUsername: z.ZodString;
|
|
294
297
|
actorImageUrl: z.ZodOptional<z.ZodURL>;
|
|
295
298
|
}, z.core.$strip>>;
|
|
296
|
-
totalFetched: z.ZodNumber;
|
|
297
299
|
totalNo: z.ZodNumber;
|
|
298
300
|
}, z.core.$strip>;
|
|
299
301
|
export declare const PostWithCommentsEntitySchema: z.ZodObject<{
|
|
@@ -341,6 +343,9 @@ export declare const PostWithBookmarksEntitySchema: z.ZodObject<{
|
|
|
341
343
|
}, z.core.$strip>>;
|
|
342
344
|
}, z.core.$strip>;
|
|
343
345
|
export declare const GetPostWithBookmarksOutputSchema: z.ZodObject<{
|
|
346
|
+
id: z.ZodCUID2;
|
|
347
|
+
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
348
|
+
content: z.ZodOptional<z.ZodString>;
|
|
344
349
|
bookmarks: z.ZodArray<z.ZodObject<{
|
|
345
350
|
id: z.ZodCUID2;
|
|
346
351
|
type: z.ZodEnum<{
|
|
@@ -355,7 +360,6 @@ export declare const GetPostWithBookmarksOutputSchema: z.ZodObject<{
|
|
|
355
360
|
actorUsername: z.ZodString;
|
|
356
361
|
actorImageUrl: z.ZodOptional<z.ZodURL>;
|
|
357
362
|
}, z.core.$strip>>;
|
|
358
|
-
totalFetched: z.ZodNumber;
|
|
359
363
|
totalNo: z.ZodNumber;
|
|
360
364
|
}, z.core.$strip>;
|
|
361
365
|
export declare const LinkPreviewInputSchema: z.ZodObject<{
|
package/dist/schemas/post.js
CHANGED
|
@@ -154,9 +154,7 @@ exports.PostWithLikesEntitySchema = exports.MinimalPostSchema.extend({
|
|
|
154
154
|
}).openapi({
|
|
155
155
|
title: "PostWithPostLikesEntity",
|
|
156
156
|
});
|
|
157
|
-
exports.GetPostWithLikesOutputSchema =
|
|
158
|
-
likes: exports.PostWithLikesEntitySchema.shape.likes,
|
|
159
|
-
totalFetched: zod_openapi_1.z.number().int(),
|
|
157
|
+
exports.GetPostWithLikesOutputSchema = exports.PostWithLikesEntitySchema.extend({
|
|
160
158
|
totalNo: zod_openapi_1.z.number().int(),
|
|
161
159
|
});
|
|
162
160
|
exports.PostWithCommentsEntitySchema = exports.MinimalPostSchema.extend({
|
|
@@ -169,9 +167,7 @@ exports.PostWithBookmarksEntitySchema = exports.MinimalPostSchema.extend({
|
|
|
169
167
|
}).openapi({
|
|
170
168
|
title: "PostWithPostBookmarksEntity",
|
|
171
169
|
});
|
|
172
|
-
exports.GetPostWithBookmarksOutputSchema =
|
|
173
|
-
bookmarks: exports.PostWithBookmarksEntitySchema.shape.bookmarks,
|
|
174
|
-
totalFetched: zod_openapi_1.z.number().int(),
|
|
170
|
+
exports.GetPostWithBookmarksOutputSchema = exports.PostWithBookmarksEntitySchema.extend({
|
|
175
171
|
totalNo: zod_openapi_1.z.number().int(),
|
|
176
172
|
});
|
|
177
173
|
exports.LinkPreviewInputSchema = zod_openapi_1.z.object({
|
package/package.json
CHANGED
package/src/schemas/post.ts
CHANGED
|
@@ -176,9 +176,7 @@ export const PostWithLikesEntitySchema = MinimalPostSchema.extend({
|
|
|
176
176
|
title: "PostWithPostLikesEntity",
|
|
177
177
|
});
|
|
178
178
|
|
|
179
|
-
export const GetPostWithLikesOutputSchema =
|
|
180
|
-
likes: PostWithLikesEntitySchema.shape.likes,
|
|
181
|
-
totalFetched: z.number().int(),
|
|
179
|
+
export const GetPostWithLikesOutputSchema = PostWithLikesEntitySchema.extend({
|
|
182
180
|
totalNo: z.number().int(),
|
|
183
181
|
});
|
|
184
182
|
|
|
@@ -194,11 +192,10 @@ export const PostWithBookmarksEntitySchema = MinimalPostSchema.extend({
|
|
|
194
192
|
title: "PostWithPostBookmarksEntity",
|
|
195
193
|
});
|
|
196
194
|
|
|
197
|
-
export const GetPostWithBookmarksOutputSchema =
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
});
|
|
195
|
+
export const GetPostWithBookmarksOutputSchema =
|
|
196
|
+
PostWithBookmarksEntitySchema.extend({
|
|
197
|
+
totalNo: z.number().int(),
|
|
198
|
+
});
|
|
202
199
|
|
|
203
200
|
export const LinkPreviewInputSchema = z.object({
|
|
204
201
|
url: z.string(),
|