@zyacreatives/shared 1.3.7 → 1.3.8

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.
@@ -1,4 +1,6 @@
1
1
  import type { ClientType, Role } from "../constants";
2
+ import type { ProjectSocialGraphEntity } from "./common";
3
+ import { FileEntity } from "./file";
2
4
  import type { MinimalUser } from "./user";
3
5
  export type ProjectFileEntity = {
4
6
  id: string;
@@ -26,6 +28,7 @@ export type ProjectEntity = {
26
28
  imagePlaceholderUrl?: string;
27
29
  endDate?: Date;
28
30
  };
31
+ export type ProjectStatsEntity = ProjectSocialGraphEntity;
29
32
  export type ProjectViewEntity = {
30
33
  id: string;
31
34
  userId?: string;
@@ -63,7 +66,7 @@ export type ProjectWithClientEntity = MinimalProject & {
63
66
  };
64
67
  export type ProjectWithProjectFilesEntity = MinimalProject & {
65
68
  projectFiles: (ProjectFileEntity & {
66
- fileUrl: string;
69
+ file: FileEntity;
67
70
  })[];
68
71
  };
69
72
  export type ListProjectsInput = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "1.3.7",
3
+ "version": "1.3.8",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,6 +1,7 @@
1
1
  import type { ClientType, Role } from "../constants";
2
2
  import type { ProjectSocialGraphEntity } from "./common";
3
- import type { BaseUserEntity, MinimalUser } from "./user";
3
+ import { FileEntity } from "./file";
4
+ import type { MinimalUser } from "./user";
4
5
 
5
6
  export type ProjectFileEntity = {
6
7
  id: string;
@@ -30,6 +31,8 @@ export type ProjectEntity = {
30
31
  endDate?: Date;
31
32
  };
32
33
 
34
+ export type ProjectStatsEntity = ProjectSocialGraphEntity;
35
+
33
36
  export type ProjectViewEntity = {
34
37
  id: string;
35
38
  userId?: string;
@@ -79,7 +82,7 @@ export type ProjectWithClientEntity = MinimalProject & {
79
82
 
80
83
  export type ProjectWithProjectFilesEntity = MinimalProject & {
81
84
  projectFiles: (ProjectFileEntity & {
82
- fileUrl: string;
85
+ file: FileEntity;
83
86
  })[];
84
87
  };
85
88