@zyacreatives/shared 2.1.81 → 2.1.83
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 +2 -2
- package/dist/schemas/post.js +2 -2
- package/dist/schemas/project.d.ts +59 -1
- package/dist/schemas/project.js +8 -2
- package/dist/types/project.d.ts +3 -1
- package/package.json +1 -1
- package/src/schemas/post.ts +2 -2
- package/src/schemas/project.ts +11 -1
- package/src/types/project.ts +10 -0
package/dist/schemas/post.d.ts
CHANGED
|
@@ -300,7 +300,7 @@ export declare const GetPostWithLikesOutputSchema: z.ZodObject<{
|
|
|
300
300
|
followsYou: z.ZodOptional<z.ZodBoolean>;
|
|
301
301
|
isFollowing: z.ZodOptional<z.ZodBoolean>;
|
|
302
302
|
}, z.core.$strip>>;
|
|
303
|
-
nextCursor: z.ZodOptional<z.ZodString
|
|
303
|
+
nextCursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
304
304
|
}, z.core.$strip>;
|
|
305
305
|
export declare const PostWithCommentsEntitySchema: z.ZodObject<{
|
|
306
306
|
id: z.ZodCUID2;
|
|
@@ -355,7 +355,7 @@ export declare const GetPostWithCommentsOutputSchema: z.ZodObject<{
|
|
|
355
355
|
likesCount: z.ZodDefault<z.ZodInt>;
|
|
356
356
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
357
357
|
}, z.core.$strip>>;
|
|
358
|
-
nextCursor: z.ZodOptional<z.ZodString
|
|
358
|
+
nextCursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
359
359
|
}, z.core.$strip>;
|
|
360
360
|
export declare const PostWithBookmarksEntitySchema: z.ZodObject<{
|
|
361
361
|
id: z.ZodCUID2;
|
package/dist/schemas/post.js
CHANGED
|
@@ -159,7 +159,7 @@ exports.PostWithLikesEntitySchema = exports.MinimalPostSchema.extend({
|
|
|
159
159
|
title: "PostWithPostLikesEntity",
|
|
160
160
|
});
|
|
161
161
|
exports.GetPostWithLikesOutputSchema = exports.PostWithLikesEntitySchema.extend({
|
|
162
|
-
nextCursor: zod_openapi_1.z.string().optional(),
|
|
162
|
+
nextCursor: zod_openapi_1.z.string().optional().nullable(),
|
|
163
163
|
});
|
|
164
164
|
exports.PostWithCommentsEntitySchema = exports.MinimalPostSchema.extend({
|
|
165
165
|
comments: zod_openapi_1.z.array(comment_1.CommentEntitySchema),
|
|
@@ -167,7 +167,7 @@ exports.PostWithCommentsEntitySchema = exports.MinimalPostSchema.extend({
|
|
|
167
167
|
title: "PostWithPostCommentsEntity",
|
|
168
168
|
});
|
|
169
169
|
exports.GetPostWithCommentsOutputSchema = exports.PostWithCommentsEntitySchema.extend({
|
|
170
|
-
nextCursor: zod_openapi_1.z.string().optional(),
|
|
170
|
+
nextCursor: zod_openapi_1.z.string().optional().nullable(),
|
|
171
171
|
});
|
|
172
172
|
exports.PostWithBookmarksEntitySchema = exports.MinimalPostSchema.extend({
|
|
173
173
|
bookmarks: zod_openapi_1.z.array(activity_1.ActivitySchema),
|
|
@@ -334,7 +334,7 @@ export declare const SearchProjectsOutputSchema: z.ZodObject<{
|
|
|
334
334
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
335
335
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
336
336
|
}, z.core.$strip>>;
|
|
337
|
-
nextCursor: z.ZodOptional<z.ZodString
|
|
337
|
+
nextCursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
338
338
|
}, z.core.$strip>;
|
|
339
339
|
export declare const ProjectWithProjectViewsEntitySchema: z.ZodObject<{
|
|
340
340
|
id: z.ZodString;
|
|
@@ -442,3 +442,61 @@ export declare const ProjectWithProjectBookmarksEntitySchema: z.ZodObject<{
|
|
|
442
442
|
}>;
|
|
443
443
|
}, z.core.$strip>>;
|
|
444
444
|
}, z.core.$strip>;
|
|
445
|
+
export declare const GetProjectWithCommentsOutputSchema: z.ZodObject<{
|
|
446
|
+
id: z.ZodString;
|
|
447
|
+
description: z.ZodOptional<z.ZodString>;
|
|
448
|
+
title: z.ZodString;
|
|
449
|
+
imagePlaceholderUrl: z.ZodString;
|
|
450
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
451
|
+
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
452
|
+
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
453
|
+
comments: z.ZodArray<z.ZodObject<{
|
|
454
|
+
id: z.ZodCUID2;
|
|
455
|
+
userId: z.ZodCUID2;
|
|
456
|
+
parentId: z.ZodCUID2;
|
|
457
|
+
parentType: z.ZodEnum<{
|
|
458
|
+
readonly PROJECT: "PROJECT";
|
|
459
|
+
readonly USER: "USER";
|
|
460
|
+
readonly JOB: "JOB";
|
|
461
|
+
readonly POST: "POST";
|
|
462
|
+
readonly COMMENT: "COMMENT";
|
|
463
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
464
|
+
}>;
|
|
465
|
+
content: z.ZodString;
|
|
466
|
+
commenterUsername: z.ZodOptional<z.ZodString>;
|
|
467
|
+
commenterName: z.ZodOptional<z.ZodString>;
|
|
468
|
+
commenterImageUrl: z.ZodOptional<z.ZodString>;
|
|
469
|
+
replyToId: z.ZodNullable<z.ZodOptional<z.ZodCUID2>>;
|
|
470
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
471
|
+
isLiked: z.ZodDefault<z.ZodBoolean>;
|
|
472
|
+
likesCount: z.ZodDefault<z.ZodInt>;
|
|
473
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
474
|
+
}, z.core.$strip>>;
|
|
475
|
+
nextCursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
476
|
+
}, z.core.$strip>;
|
|
477
|
+
export declare const GetProjectWithLikesOutputSchema: z.ZodObject<{
|
|
478
|
+
id: z.ZodString;
|
|
479
|
+
description: z.ZodOptional<z.ZodString>;
|
|
480
|
+
title: z.ZodString;
|
|
481
|
+
imagePlaceholderUrl: z.ZodString;
|
|
482
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
483
|
+
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
484
|
+
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
485
|
+
likes: z.ZodArray<z.ZodObject<{
|
|
486
|
+
id: z.ZodCUID2;
|
|
487
|
+
type: z.ZodEnum<{
|
|
488
|
+
readonly LIKE: "LIKE";
|
|
489
|
+
readonly UNLIKE: "UNLIKE";
|
|
490
|
+
readonly BOOKMARK: "BOOKMARK";
|
|
491
|
+
readonly UNBOOKMARK: "UNBOOKMARK";
|
|
492
|
+
readonly VIEW: "VIEW";
|
|
493
|
+
}>;
|
|
494
|
+
actorName: z.ZodString;
|
|
495
|
+
actorId: z.ZodString;
|
|
496
|
+
actorUsername: z.ZodString;
|
|
497
|
+
actorImageUrl: z.ZodOptional<z.ZodURL>;
|
|
498
|
+
followsYou: z.ZodOptional<z.ZodBoolean>;
|
|
499
|
+
isFollowing: z.ZodOptional<z.ZodBoolean>;
|
|
500
|
+
}, z.core.$strip>>;
|
|
501
|
+
nextCursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
502
|
+
}, z.core.$strip>;
|
package/dist/schemas/project.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProjectWithProjectBookmarksEntitySchema = exports.ProjectWithLikesEntitySchema = exports.ProjectWithProjectCommentsEntitySchema = exports.ProjectWithProjectViewsEntitySchema = exports.SearchProjectsOutputSchema = exports.SearchProjectsInputSchema = exports.MinimalProjectSchema = exports.ProjectIdSchema = exports.GetProjectOutputSchema = exports.DeleteProjectOutputSchema = exports.UpdateProjectOutputSchema = exports.CreateProjectOutputSchema = exports.UpdateProjectInputSchema = exports.CreateProjectInputSchema = exports.ProjectUpdateOutputEntitySchema = exports.ProjectDetailsEntitySchema = exports.ProjectSocialGraphEntitySchema = exports.ProjectFileEntitySchema = exports.ProjectEntitySchema = void 0;
|
|
3
|
+
exports.GetProjectWithLikesOutputSchema = exports.GetProjectWithCommentsOutputSchema = exports.ProjectWithProjectBookmarksEntitySchema = exports.ProjectWithLikesEntitySchema = exports.ProjectWithProjectCommentsEntitySchema = exports.ProjectWithProjectViewsEntitySchema = exports.SearchProjectsOutputSchema = exports.SearchProjectsInputSchema = exports.MinimalProjectSchema = exports.ProjectIdSchema = exports.GetProjectOutputSchema = exports.DeleteProjectOutputSchema = exports.UpdateProjectOutputSchema = exports.CreateProjectOutputSchema = exports.UpdateProjectInputSchema = exports.CreateProjectInputSchema = exports.ProjectUpdateOutputEntitySchema = exports.ProjectDetailsEntitySchema = exports.ProjectSocialGraphEntitySchema = exports.ProjectFileEntitySchema = exports.ProjectEntitySchema = void 0;
|
|
4
4
|
const zod_openapi_1 = require("@hono/zod-openapi");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
const file_1 = require("./file");
|
|
@@ -237,7 +237,7 @@ exports.SearchProjectsInputSchema = zod_openapi_1.z
|
|
|
237
237
|
exports.SearchProjectsOutputSchema = zod_openapi_1.z
|
|
238
238
|
.object({
|
|
239
239
|
projects: zod_openapi_1.z.array(exports.MinimalProjectSchema),
|
|
240
|
-
nextCursor: zod_openapi_1.z.string().optional(),
|
|
240
|
+
nextCursor: zod_openapi_1.z.string().optional().nullable(),
|
|
241
241
|
})
|
|
242
242
|
.openapi({
|
|
243
243
|
title: "SearchProjectsOutput",
|
|
@@ -265,3 +265,9 @@ exports.ProjectWithProjectBookmarksEntitySchema = exports.MinimalProjectSchema.e
|
|
|
265
265
|
}).openapi({
|
|
266
266
|
title: "ProjectWithProjectBookmarksEntity",
|
|
267
267
|
});
|
|
268
|
+
exports.GetProjectWithCommentsOutputSchema = exports.ProjectWithProjectCommentsEntitySchema.extend({
|
|
269
|
+
nextCursor: zod_openapi_1.z.string().optional().nullable(),
|
|
270
|
+
});
|
|
271
|
+
exports.GetProjectWithLikesOutputSchema = exports.ProjectWithLikesEntitySchema.extend({
|
|
272
|
+
nextCursor: zod_openapi_1.z.string().optional().nullable(),
|
|
273
|
+
});
|
package/dist/types/project.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { z } from "@hono/zod-openapi";
|
|
2
|
-
import type { ProjectEntitySchema, ProjectIdSchema, MinimalProjectSchema, ProjectFileEntitySchema, ProjectDetailsEntitySchema, ProjectWithProjectViewsEntitySchema, ProjectWithProjectCommentsEntitySchema, ProjectWithLikesEntitySchema, ProjectWithProjectBookmarksEntitySchema, CreateProjectInputSchema, CreateProjectOutputSchema, UpdateProjectInputSchema, UpdateProjectOutputSchema, DeleteProjectOutputSchema, GetProjectOutputSchema, SearchProjectsInputSchema, SearchProjectsOutputSchema } from "../schemas/project";
|
|
2
|
+
import type { ProjectEntitySchema, ProjectIdSchema, MinimalProjectSchema, ProjectFileEntitySchema, ProjectDetailsEntitySchema, ProjectWithProjectViewsEntitySchema, ProjectWithProjectCommentsEntitySchema, ProjectWithLikesEntitySchema, ProjectWithProjectBookmarksEntitySchema, CreateProjectInputSchema, CreateProjectOutputSchema, UpdateProjectInputSchema, UpdateProjectOutputSchema, DeleteProjectOutputSchema, GetProjectOutputSchema, SearchProjectsInputSchema, SearchProjectsOutputSchema, GetProjectWithLikesOutputSchema, GetProjectWithCommentsOutputSchema } from "../schemas/project";
|
|
3
3
|
import { ViewEntitySchema } from "../schemas/view";
|
|
4
4
|
import { LikeEntitySchema } from "../schemas/like";
|
|
5
5
|
import { CommentEntitySchema } from "../schemas/comment";
|
|
@@ -23,3 +23,5 @@ export type DeleteProjectOutput = z.infer<typeof DeleteProjectOutputSchema>;
|
|
|
23
23
|
export type GetProjectOutput = z.infer<typeof GetProjectOutputSchema>;
|
|
24
24
|
export type SearchProjectsInput = z.infer<typeof SearchProjectsInputSchema>;
|
|
25
25
|
export type SearchProjectsOutput = z.infer<typeof SearchProjectsOutputSchema>;
|
|
26
|
+
export type GetProjectWithCommentsOutput = z.infer<typeof GetProjectWithCommentsOutputSchema>;
|
|
27
|
+
export type GetProjectWithLikesOutput = z.infer<typeof GetProjectWithLikesOutputSchema>;
|
package/package.json
CHANGED
package/src/schemas/post.ts
CHANGED
|
@@ -181,7 +181,7 @@ export const PostWithLikesEntitySchema = MinimalPostSchema.extend({
|
|
|
181
181
|
});
|
|
182
182
|
|
|
183
183
|
export const GetPostWithLikesOutputSchema = PostWithLikesEntitySchema.extend({
|
|
184
|
-
nextCursor: z.string().optional(),
|
|
184
|
+
nextCursor: z.string().optional().nullable(),
|
|
185
185
|
});
|
|
186
186
|
|
|
187
187
|
export const PostWithCommentsEntitySchema = MinimalPostSchema.extend({
|
|
@@ -192,7 +192,7 @@ export const PostWithCommentsEntitySchema = MinimalPostSchema.extend({
|
|
|
192
192
|
|
|
193
193
|
export const GetPostWithCommentsOutputSchema =
|
|
194
194
|
PostWithCommentsEntitySchema.extend({
|
|
195
|
-
nextCursor: z.string().optional(),
|
|
195
|
+
nextCursor: z.string().optional().nullable(),
|
|
196
196
|
});
|
|
197
197
|
|
|
198
198
|
export const PostWithBookmarksEntitySchema = MinimalPostSchema.extend({
|
package/src/schemas/project.ts
CHANGED
|
@@ -250,7 +250,7 @@ export const SearchProjectsInputSchema = z
|
|
|
250
250
|
export const SearchProjectsOutputSchema = z
|
|
251
251
|
.object({
|
|
252
252
|
projects: z.array(MinimalProjectSchema),
|
|
253
|
-
nextCursor: z.string().optional(),
|
|
253
|
+
nextCursor: z.string().optional().nullable(),
|
|
254
254
|
})
|
|
255
255
|
.openapi({
|
|
256
256
|
title: "SearchProjectsOutput",
|
|
@@ -286,3 +286,13 @@ export const ProjectWithProjectBookmarksEntitySchema =
|
|
|
286
286
|
}).openapi({
|
|
287
287
|
title: "ProjectWithProjectBookmarksEntity",
|
|
288
288
|
});
|
|
289
|
+
|
|
290
|
+
export const GetProjectWithCommentsOutputSchema =
|
|
291
|
+
ProjectWithProjectCommentsEntitySchema.extend({
|
|
292
|
+
nextCursor: z.string().optional().nullable(),
|
|
293
|
+
});
|
|
294
|
+
|
|
295
|
+
export const GetProjectWithLikesOutputSchema =
|
|
296
|
+
ProjectWithLikesEntitySchema.extend({
|
|
297
|
+
nextCursor: z.string().optional().nullable(),
|
|
298
|
+
});
|
package/src/types/project.ts
CHANGED
|
@@ -17,6 +17,8 @@ import type {
|
|
|
17
17
|
GetProjectOutputSchema,
|
|
18
18
|
SearchProjectsInputSchema,
|
|
19
19
|
SearchProjectsOutputSchema,
|
|
20
|
+
GetProjectWithLikesOutputSchema,
|
|
21
|
+
GetProjectWithCommentsOutputSchema,
|
|
20
22
|
} from "../schemas/project";
|
|
21
23
|
import { ViewEntitySchema } from "../schemas/view";
|
|
22
24
|
import { LikeEntitySchema } from "../schemas/like";
|
|
@@ -54,3 +56,11 @@ export type DeleteProjectOutput = z.infer<typeof DeleteProjectOutputSchema>;
|
|
|
54
56
|
export type GetProjectOutput = z.infer<typeof GetProjectOutputSchema>;
|
|
55
57
|
export type SearchProjectsInput = z.infer<typeof SearchProjectsInputSchema>;
|
|
56
58
|
export type SearchProjectsOutput = z.infer<typeof SearchProjectsOutputSchema>;
|
|
59
|
+
|
|
60
|
+
export type GetProjectWithCommentsOutput = z.infer<
|
|
61
|
+
typeof GetProjectWithCommentsOutputSchema
|
|
62
|
+
>;
|
|
63
|
+
|
|
64
|
+
export type GetProjectWithLikesOutput = z.infer<
|
|
65
|
+
typeof GetProjectWithLikesOutputSchema
|
|
66
|
+
>;
|