@zyacreatives/shared 1.5.5 → 1.5.7
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/project.d.ts +120 -135
- package/dist/schemas/project.js +132 -357
- package/dist/schemas/user.d.ts +8 -8
- package/dist/types/project.d.ts +12 -20
- package/package.json +1 -1
- package/src/schemas/project.ts +138 -371
- package/src/types/project.ts +35 -55
package/dist/schemas/user.d.ts
CHANGED
|
@@ -158,8 +158,6 @@ export declare const UserWithProjectsEntitySchema: z.ZodObject<{
|
|
|
158
158
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
159
159
|
url: z.ZodOptional<z.ZodString>;
|
|
160
160
|
imagePlaceholderUrl: z.ZodString;
|
|
161
|
-
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
162
|
-
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
163
161
|
projectCreatorType: z.ZodEnum<{
|
|
164
162
|
readonly CREATIVE: "CREATIVE";
|
|
165
163
|
readonly BRAND: "BRAND";
|
|
@@ -174,15 +172,17 @@ export declare const UserWithProjectsEntitySchema: z.ZodObject<{
|
|
|
174
172
|
}>>;
|
|
175
173
|
clientName: z.ZodOptional<z.ZodString>;
|
|
176
174
|
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
175
|
+
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
176
|
+
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
177
177
|
searchVector: z.ZodString;
|
|
178
178
|
}, z.core.$strip>>;
|
|
179
179
|
}, z.core.$strip>;
|
|
180
180
|
export declare const UserWithProjectBookmarksEntitySchema: z.ZodObject<{
|
|
181
181
|
userId: z.ZodCUID2;
|
|
182
182
|
projectBookmarks: z.ZodArray<z.ZodObject<{
|
|
183
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
184
|
-
userId: z.ZodCUID2;
|
|
185
183
|
projectId: z.ZodCUID2;
|
|
184
|
+
userId: z.ZodCUID2;
|
|
185
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
186
186
|
project: z.ZodObject<{
|
|
187
187
|
id: z.ZodString;
|
|
188
188
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -415,8 +415,6 @@ export declare const GetAuthenticatedUserWithProjectsOutputSchema: z.ZodObject<{
|
|
|
415
415
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
416
416
|
url: z.ZodOptional<z.ZodString>;
|
|
417
417
|
imagePlaceholderUrl: z.ZodString;
|
|
418
|
-
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
419
|
-
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
420
418
|
projectCreatorType: z.ZodEnum<{
|
|
421
419
|
readonly CREATIVE: "CREATIVE";
|
|
422
420
|
readonly BRAND: "BRAND";
|
|
@@ -431,15 +429,17 @@ export declare const GetAuthenticatedUserWithProjectsOutputSchema: z.ZodObject<{
|
|
|
431
429
|
}>>;
|
|
432
430
|
clientName: z.ZodOptional<z.ZodString>;
|
|
433
431
|
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
432
|
+
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
433
|
+
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
434
434
|
searchVector: z.ZodString;
|
|
435
435
|
}, z.core.$strip>>;
|
|
436
436
|
}, z.core.$strip>;
|
|
437
437
|
export declare const GetAuthenticatedUserWithProjectBookmarksOutputSchema: z.ZodObject<{
|
|
438
438
|
userId: z.ZodCUID2;
|
|
439
439
|
projectBookmarks: z.ZodArray<z.ZodObject<{
|
|
440
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
441
|
-
userId: z.ZodCUID2;
|
|
442
440
|
projectId: z.ZodCUID2;
|
|
441
|
+
userId: z.ZodCUID2;
|
|
442
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
443
443
|
project: z.ZodObject<{
|
|
444
444
|
id: z.ZodString;
|
|
445
445
|
description: z.ZodOptional<z.ZodString>;
|
package/dist/types/project.d.ts
CHANGED
|
@@ -1,35 +1,27 @@
|
|
|
1
1
|
import type { z } from "@hono/zod-openapi";
|
|
2
|
-
import type { ProjectEntitySchema,
|
|
2
|
+
import type { ProjectEntitySchema, ProjectIdSchema, MinimalProjectSchema, ProjectFileEntitySchema, ProjectViewEntitySchema, ProjectLikeEntitySchema, ProjectCommentEntitySchema, ProjectBookmarkEntitySchema, ProjectWithFilesEntitySchema, ProjectWithProjectViewsEntitySchema, ProjectWithProjectCommentsEntitySchema, ProjectWithProjectLikesEntitySchema, ProjectWithProjectBookmarksEntitySchema, CreateProjectInputSchema, CreateProjectOutputSchema, UpdateProjectInputSchema, UpdateProjectOutputSchema, DeleteProjectOutputSchema, GetProjectOutputSchema, ListProjectsInputSchema, ViewProjectInputSchema, CommentOnProjectInputSchema, CommentOnProjectOutputSchema, DeleteProjectCommentOutputSchema, BookmarkProjectOutputSchema } from "../schemas/project";
|
|
3
3
|
export type ProjectEntity = z.infer<typeof ProjectEntitySchema>;
|
|
4
|
+
export type ProjectIdInput = z.infer<typeof ProjectIdSchema>;
|
|
5
|
+
export type MinimalProject = z.infer<typeof MinimalProjectSchema>;
|
|
4
6
|
export type ProjectFileEntity = z.infer<typeof ProjectFileEntitySchema>;
|
|
5
|
-
export type ProjectWithFilesEntity = z.infer<typeof ProjectWithFilesEntitySchema>;
|
|
6
7
|
export type ProjectViewEntity = z.infer<typeof ProjectViewEntitySchema>;
|
|
7
8
|
export type ProjectLikeEntity = z.infer<typeof ProjectLikeEntitySchema>;
|
|
8
9
|
export type ProjectCommentEntity = z.infer<typeof ProjectCommentEntitySchema>;
|
|
9
10
|
export type ProjectBookmarkEntity = z.infer<typeof ProjectBookmarkEntitySchema>;
|
|
10
|
-
export type
|
|
11
|
+
export type ProjectWithFilesEntity = z.infer<typeof ProjectWithFilesEntitySchema>;
|
|
12
|
+
export type ProjectWithProjectViewsEntity = z.infer<typeof ProjectWithProjectViewsEntitySchema>;
|
|
13
|
+
export type ProjectWithProjectCommentsEntity = z.infer<typeof ProjectWithProjectCommentsEntitySchema>;
|
|
14
|
+
export type ProjectWithProjectLikesEntity = z.infer<typeof ProjectWithProjectLikesEntitySchema>;
|
|
15
|
+
export type ProjectWithProjectBookmarksEntity = z.infer<typeof ProjectWithProjectBookmarksEntitySchema>;
|
|
11
16
|
export type CreateProjectInput = z.infer<typeof CreateProjectInputSchema>;
|
|
12
17
|
export type CreateProjectOutput = z.infer<typeof CreateProjectOutputSchema>;
|
|
13
18
|
export type UpdateProjectInput = z.infer<typeof UpdateProjectInputSchema>;
|
|
14
19
|
export type UpdateProjectOutput = z.infer<typeof UpdateProjectOutputSchema>;
|
|
15
|
-
export type
|
|
16
|
-
export type
|
|
20
|
+
export type DeleteProjectOutput = z.infer<typeof DeleteProjectOutputSchema>;
|
|
21
|
+
export type GetProjectOutput = z.infer<typeof GetProjectOutputSchema>;
|
|
22
|
+
export type ListProjectsInput = z.infer<typeof ListProjectsInputSchema>;
|
|
23
|
+
export type ViewProjectInput = z.infer<typeof ViewProjectInputSchema>;
|
|
17
24
|
export type CommentOnProjectInput = z.infer<typeof CommentOnProjectInputSchema>;
|
|
18
25
|
export type CommentOnProjectOutput = z.infer<typeof CommentOnProjectOutputSchema>;
|
|
19
|
-
export type DeleteProjectInput = z.infer<typeof DeleteProjectInputSchema>;
|
|
20
|
-
export type DeleteProjectCommentParams = z.infer<typeof DeleteProjectCommentParamsSchema>;
|
|
21
26
|
export type DeleteProjectCommentOutput = z.infer<typeof DeleteProjectCommentOutputSchema>;
|
|
22
|
-
export type DeleteProjectOutput = z.infer<typeof DeleteProjectOutputSchema>;
|
|
23
|
-
export type GetProjectParams = z.infer<typeof GetProjectParamsSchema>;
|
|
24
|
-
export type GetProjectOutput = z.infer<typeof GetProjectOutputSchema>;
|
|
25
|
-
export type BookmarkProjectParams = z.infer<typeof BookmarkProjectParamsSchema>;
|
|
26
27
|
export type BookmarkProjectOutput = z.infer<typeof BookmarkProjectOutputSchema>;
|
|
27
|
-
export type LikeProjectParams = z.infer<typeof LikeProjectParamsSchema>;
|
|
28
|
-
export type UnlikeProjectParams = z.infer<typeof UnlikeProjectParamsSchema>;
|
|
29
|
-
export type ViewProjectInput = z.infer<typeof ViewProjectInputSchema>;
|
|
30
|
-
export type MinimalProject = z.infer<typeof MinimalProjectSchema>;
|
|
31
|
-
export type ListProjectsInput = z.infer<typeof ListProjectsInputSchema>;
|
|
32
|
-
export type ProjectWithProjectViewsEntity = z.infer<typeof ProjectWithProjectViewsEntitySchema>;
|
|
33
|
-
export type ProjectWithProjectCommentsEntity = z.infer<typeof ProjectWithProjectCommentsEntitySchema>;
|
|
34
|
-
export type ProjectWithProjectLikesEntity = z.infer<typeof ProjectWithProjectLikesEntitySchema>;
|
|
35
|
-
export type ProjectWithProjectBookmarksEntity = z.infer<typeof ProjectWithProjectBookmarksEntitySchema>;
|