@zyacreatives/shared 1.1.2 → 1.1.4

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.
@@ -58,6 +58,9 @@ export type ProjectBookmarkEntity = {
58
58
  userId: string;
59
59
  projectId: string;
60
60
  };
61
+ export type ProjectUpdateOutputEntity = {
62
+ id: string;
63
+ };
61
64
  export type MinimalProject = Pick<ProjectEntity, "id" | "title" | "description" | "tags" | "startDate" | "endDate" | "imagePlaceholderUrl">;
62
65
  export type ProjectWithClientEntity = MinimalProject & {
63
66
  client: MinimalUser;
@@ -76,3 +79,15 @@ export type ListProjectsDto = {
76
79
  page?: number;
77
80
  perPage?: number;
78
81
  };
82
+ export type ProjectWithProjectViewsEntity = MinimalProject & {
83
+ views: ProjectViewEntity[];
84
+ } & Partial<ProjectSocialGraphEntity>;
85
+ export type ProjectWithProjectCommentsEntity = MinimalProject & {
86
+ comments: ProjectCommentEntity[];
87
+ } & Partial<ProjectSocialGraphEntity>;
88
+ export type ProjectWithProjectLikesEntity = MinimalProject & {
89
+ likes: ProjectLikeEntity[];
90
+ } & Partial<ProjectSocialGraphEntity>;
91
+ export type ProjectWithProjectBookmarksEntity = MinimalProject & {
92
+ bookmarks: ProjectBookmarkEntity[];
93
+ } & Partial<ProjectSocialGraphEntity>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -67,6 +67,10 @@ export type ProjectBookmarkEntity = {
67
67
  projectId: string;
68
68
  };
69
69
 
70
+ export type ProjectUpdateOutputEntity = {
71
+ id: string;
72
+ };
73
+
70
74
  export type MinimalProject = Pick<
71
75
  ProjectEntity,
72
76
  | "id"
@@ -98,3 +102,19 @@ export type ListProjectsDto = {
98
102
  page?: number;
99
103
  perPage?: number;
100
104
  };
105
+
106
+ export type ProjectWithProjectViewsEntity = MinimalProject & {
107
+ views: ProjectViewEntity[];
108
+ } & Partial<ProjectSocialGraphEntity>;
109
+
110
+ export type ProjectWithProjectCommentsEntity = MinimalProject & {
111
+ comments: ProjectCommentEntity[];
112
+ } & Partial<ProjectSocialGraphEntity>;
113
+
114
+ export type ProjectWithProjectLikesEntity = MinimalProject & {
115
+ likes: ProjectLikeEntity[];
116
+ } & Partial<ProjectSocialGraphEntity>;
117
+
118
+ export type ProjectWithProjectBookmarksEntity = MinimalProject & {
119
+ bookmarks: ProjectBookmarkEntity[];
120
+ } & Partial<ProjectSocialGraphEntity>;