@cofondateurauchomage/libs 1.1.100 → 1.1.102
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 +6 -0
- package/build/db.model.d.ts +5 -3
- package/package.json +1 -1
package/build/api.d.ts
CHANGED
|
@@ -7,13 +7,13 @@ export type BodyForO<O extends CloudFunctionNames | RouteNames> = {
|
|
|
7
7
|
emailProspect: string;
|
|
8
8
|
};
|
|
9
9
|
deleteProject: {};
|
|
10
|
-
updateProject: Pick<IProject, "name" | "lastName" | "firstName" | "skills" | "zipCode" | "city" | "invest" | "status" | "status_detail" | "turnover" | "description" | "partner" | "logo"> & Omit<IContact, "email">;
|
|
10
|
+
updateProject: Pick<IProject, "name" | "lastName" | "firstName" | "skills" | "yearsOfExperience" | "zipCode" | "city" | "invest" | "status" | "status_detail" | "turnover" | "description" | "partner" | "logo"> & Omit<IContact, "email">;
|
|
11
11
|
createUser: Omit<IUser, "id" | "plan" | "visibility" | "clicks" | "creationDate" | "lastConnection" | "likes" | "stripeId" | "active" | "referrer"> & IContact & {
|
|
12
12
|
newsletterMarketing?: boolean;
|
|
13
13
|
emailProspect: string;
|
|
14
14
|
};
|
|
15
15
|
deleteUser: {};
|
|
16
|
-
updateUser: Pick<IUser, "lastName" | "firstName" | "skills" | "zipCode" | "city" | "invest" | "motivations" | "partner" | "business" | "photo"> & Omit<IContact, "email">;
|
|
16
|
+
updateUser: Pick<IUser, "lastName" | "firstName" | "skills" | "yearsOfExperience" | "zipCode" | "city" | "invest" | "motivations" | "partner" | "business" | "photo"> & Omit<IContact, "email">;
|
|
17
17
|
updateVisibility: {
|
|
18
18
|
visibility: TVisibility;
|
|
19
19
|
};
|
package/build/api.validate.js
CHANGED
|
@@ -35,6 +35,7 @@ const apiSecretKey = (0, validate_1.isString)();
|
|
|
35
35
|
const tel = (0, validate_1.isMatchRegex)(regex_1.RGX.Tel.regex).isOptional();
|
|
36
36
|
const reactionStatus = (0, validate_1.isMatchEnum)(["like", "dislike"]);
|
|
37
37
|
const turnover = (0, validate_1.isNumber)().setMin(0).isOptional();
|
|
38
|
+
const yearsOfExperience = (0, validate_1.isNumber)().setMin(0).setMax(100).isOptional();
|
|
38
39
|
const validatorsForAllRoutes = {
|
|
39
40
|
///////////////////
|
|
40
41
|
// Cloud functions
|
|
@@ -48,6 +49,7 @@ const validatorsForAllRoutes = {
|
|
|
48
49
|
lastName,
|
|
49
50
|
firstName,
|
|
50
51
|
skills,
|
|
52
|
+
yearsOfExperience,
|
|
51
53
|
zipCode,
|
|
52
54
|
city,
|
|
53
55
|
invest,
|
|
@@ -71,6 +73,7 @@ const validatorsForAllRoutes = {
|
|
|
71
73
|
firstName,
|
|
72
74
|
lastName,
|
|
73
75
|
skills,
|
|
76
|
+
yearsOfExperience,
|
|
74
77
|
zipCode,
|
|
75
78
|
city,
|
|
76
79
|
invest,
|
|
@@ -96,6 +99,7 @@ const validatorsForAllRoutes = {
|
|
|
96
99
|
motivations,
|
|
97
100
|
partner,
|
|
98
101
|
skills,
|
|
102
|
+
yearsOfExperience,
|
|
99
103
|
zipCode,
|
|
100
104
|
newsletterMarketing,
|
|
101
105
|
photo,
|
|
@@ -111,6 +115,7 @@ const validatorsForAllRoutes = {
|
|
|
111
115
|
motivations,
|
|
112
116
|
partner,
|
|
113
117
|
skills,
|
|
118
|
+
yearsOfExperience,
|
|
114
119
|
zipCode,
|
|
115
120
|
photo,
|
|
116
121
|
firstName,
|
|
@@ -159,6 +164,7 @@ const validatorsForAllRoutes = {
|
|
|
159
164
|
motivations: motivations.isOptional(),
|
|
160
165
|
partner: partner.isOptional(),
|
|
161
166
|
skills: skills.isOptional(),
|
|
167
|
+
yearsOfExperience: yearsOfExperience.isOptional(),
|
|
162
168
|
zipCode: zipCode.isOptional(),
|
|
163
169
|
name: name.isOptional(),
|
|
164
170
|
status: status.isOptional(),
|
package/build/db.model.d.ts
CHANGED
|
@@ -24,12 +24,13 @@ export interface IUser {
|
|
|
24
24
|
lastName: string;
|
|
25
25
|
firstName: string;
|
|
26
26
|
skills: TSkill[];
|
|
27
|
+
yearsOfExperience?: number;
|
|
27
28
|
zipCode: number;
|
|
28
29
|
city: string;
|
|
29
30
|
invest?: number;
|
|
30
31
|
joblessDate?: string;
|
|
31
|
-
motivations
|
|
32
|
-
partner
|
|
32
|
+
motivations?: string;
|
|
33
|
+
partner?: string;
|
|
33
34
|
business: string;
|
|
34
35
|
photo?: string;
|
|
35
36
|
plan: TPlan;
|
|
@@ -47,6 +48,7 @@ export interface IProject {
|
|
|
47
48
|
lastName: string;
|
|
48
49
|
firstName: string;
|
|
49
50
|
skills: TSkill[];
|
|
51
|
+
yearsOfExperience?: number;
|
|
50
52
|
zipCode: number;
|
|
51
53
|
city: string;
|
|
52
54
|
invest?: number;
|
|
@@ -54,7 +56,7 @@ export interface IProject {
|
|
|
54
56
|
status_detail?: string;
|
|
55
57
|
turnover?: number;
|
|
56
58
|
description: string;
|
|
57
|
-
partner
|
|
59
|
+
partner?: string;
|
|
58
60
|
logo?: string;
|
|
59
61
|
plan: TPlan;
|
|
60
62
|
active?: boolean;
|