@cofondateurauchomage/libs 1.1.22 → 1.1.24

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/build/api.d.ts CHANGED
@@ -7,7 +7,7 @@ export type BodyForO<O extends CloudFunctionNames | RouteNames> = {
7
7
  newsletterMarketing?: boolean;
8
8
  };
9
9
  deleteProject: {};
10
- updateProject: Pick<IProject, "city" | "description" | "invest" | "name" | "partner" | "skills" | "zipCode" | "status" | "status_detail"> & Omit<IContact, "email">;
10
+ updateProject: Pick<IProject, "city" | "description" | "invest" | "name" | "partner" | "skills" | "zipCode" | "status" | "status_detail" | "logo"> & Omit<IContact, "email">;
11
11
  addStripeIdToProject: {
12
12
  email: string;
13
13
  stripeId: string;
@@ -21,7 +21,7 @@ export type BodyForO<O extends CloudFunctionNames | RouteNames> = {
21
21
  newsletterMarketing?: boolean;
22
22
  };
23
23
  deleteUser: {};
24
- updateUser: Pick<IUser, "business" | "city" | "invest" | "motivations" | "partner" | "skills" | "zipCode"> & Omit<IContact, "email">;
24
+ updateUser: Pick<IUser, "business" | "city" | "invest" | "motivations" | "partner" | "skills" | "zipCode" | "photo"> & Omit<IContact, "email">;
25
25
  activeUser: {
26
26
  active: boolean;
27
27
  };
@@ -28,6 +28,8 @@ const newsletterMatch = (0, validate_1.isBoolean)().isOptional();
28
28
  const newsletterMarketing = (0, validate_1.isBoolean)().isOptional();
29
29
  const status = (0, validate_1.isMatchEnum)(const_1.PROJECT_STATUS).isOptional();
30
30
  const status_detail = (0, validate_1.isString)().setMax(300).isOptional();
31
+ const photo = (0, validate_1.isString)().isOptional();
32
+ const logo = (0, validate_1.isString)().isOptional();
31
33
  const validatorsForAllRoutes = {
32
34
  ///////////////////
33
35
  // Cloud functions
@@ -49,6 +51,7 @@ const validatorsForAllRoutes = {
49
51
  level: (0, validate_1.isBoolean)().isOptional(),
50
52
  newsletterMatch,
51
53
  newsletterMarketing,
54
+ logo,
52
55
  },
53
56
  deleteProject: {},
54
57
  updateProject: {
@@ -62,6 +65,7 @@ const validatorsForAllRoutes = {
62
65
  status_detail,
63
66
  description,
64
67
  partner,
68
+ logo,
65
69
  },
66
70
  addStripeIdToProject: {
67
71
  email,
@@ -86,6 +90,7 @@ const validatorsForAllRoutes = {
86
90
  zipCode,
87
91
  newsletterMatch,
88
92
  newsletterMarketing,
93
+ photo,
89
94
  },
90
95
  deleteUser: {},
91
96
  updateUser: {
@@ -97,6 +102,7 @@ const validatorsForAllRoutes = {
97
102
  partner,
98
103
  skills,
99
104
  zipCode,
105
+ photo,
100
106
  },
101
107
  activeUser: {
102
108
  active: (0, validate_1.isBoolean)(),
@@ -24,6 +24,7 @@ export interface IUser {
24
24
  motivations: string;
25
25
  partner: string;
26
26
  business: string;
27
+ photo?: string;
27
28
  active: boolean;
28
29
  clicks: IClicks;
29
30
  creationDate: number;
@@ -43,6 +44,7 @@ export interface IProject {
43
44
  status_detail?: string;
44
45
  description: string;
45
46
  partner: string;
47
+ logo?: string;
46
48
  active: boolean;
47
49
  clicks: IClicks;
48
50
  creationDate: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cofondateurauchomage/libs",
3
- "version": "1.1.22",
3
+ "version": "1.1.24",
4
4
  "description": "",
5
5
  "main": "build/index",
6
6
  "scripts": {