@cofondateurauchomage/libs 1.1.66 → 1.1.67
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 +2 -2
- package/build/api.validate.js +4 -0
- package/package.json +1 -1
package/build/api.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export type BodyForO<O extends CloudFunctionNames | RouteNames> = {
|
|
|
8
8
|
emailProspect: string;
|
|
9
9
|
};
|
|
10
10
|
deleteProject: {};
|
|
11
|
-
updateProject: Pick<IProject, "
|
|
11
|
+
updateProject: Pick<IProject, "name" | "lastName" | "firstName" | "skills" | "zipCode" | "city" | "invest" | "status" | "status_detail" | "turnover" | "description" | "partner" | "logo"> & Omit<IContact, "email">;
|
|
12
12
|
activeProject: {
|
|
13
13
|
active: boolean;
|
|
14
14
|
};
|
|
@@ -18,7 +18,7 @@ export type BodyForO<O extends CloudFunctionNames | RouteNames> = {
|
|
|
18
18
|
emailProspect: string;
|
|
19
19
|
};
|
|
20
20
|
deleteUser: {};
|
|
21
|
-
updateUser: Pick<IUser, "
|
|
21
|
+
updateUser: Pick<IUser, "lastName" | "firstName" | "skills" | "zipCode" | "city" | "invest" | "motivations" | "partner" | "business" | "photo"> & Omit<IContact, "email">;
|
|
22
22
|
activeUser: {
|
|
23
23
|
active: boolean;
|
|
24
24
|
};
|
package/build/api.validate.js
CHANGED
|
@@ -67,6 +67,8 @@ const validatorsForAllRoutes = {
|
|
|
67
67
|
linkedin,
|
|
68
68
|
website,
|
|
69
69
|
name,
|
|
70
|
+
firstName,
|
|
71
|
+
lastName,
|
|
70
72
|
skills,
|
|
71
73
|
zipCode,
|
|
72
74
|
city,
|
|
@@ -113,6 +115,8 @@ const validatorsForAllRoutes = {
|
|
|
113
115
|
skills,
|
|
114
116
|
zipCode,
|
|
115
117
|
photo,
|
|
118
|
+
firstName,
|
|
119
|
+
lastName,
|
|
116
120
|
},
|
|
117
121
|
activeUser: {
|
|
118
122
|
active: (0, validate_1.isBoolean)(),
|