@cofondateurauchomage/libs 1.1.103 → 1.1.104

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,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" | "yearsOfExperience" | "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" | "availability"> & 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" | "yearsOfExperience" | "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" | "availability"> & Omit<IContact, "email">;
17
17
  updateVisibility: {
18
18
  visibility: TVisibility;
19
19
  };
@@ -36,6 +36,7 @@ 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
38
  const yearsOfExperience = (0, validate_1.isNumber)().setMin(0).setMax(100).isOptional();
39
+ const availability = (0, validate_1.isMatchEnum)(["full-time", "part-time"]).isOptional();
39
40
  const validatorsForAllRoutes = {
40
41
  ///////////////////
41
42
  // Cloud functions
@@ -58,6 +59,7 @@ const validatorsForAllRoutes = {
58
59
  turnover,
59
60
  description,
60
61
  partner,
62
+ availability,
61
63
  redstart: (0, validate_1.isBoolean)().isOptional(),
62
64
  level: (0, validate_1.isBoolean)().isOptional(),
63
65
  newsletterMarketing,
@@ -83,6 +85,7 @@ const validatorsForAllRoutes = {
83
85
  description,
84
86
  partner,
85
87
  logo,
88
+ availability,
86
89
  },
87
90
  createUser: {
88
91
  email,
@@ -103,6 +106,7 @@ const validatorsForAllRoutes = {
103
106
  zipCode,
104
107
  newsletterMarketing,
105
108
  photo,
109
+ availability,
106
110
  },
107
111
  deleteUser: {},
108
112
  updateUser: {
@@ -120,6 +124,7 @@ const validatorsForAllRoutes = {
120
124
  photo,
121
125
  firstName,
122
126
  lastName,
127
+ availability,
123
128
  },
124
129
  updateVisibility: {
125
130
  visibility: (0, validate_1.isMatchEnum)(["public", "limited", "private"]),
@@ -174,6 +179,7 @@ const validatorsForAllRoutes = {
174
179
  redstart: (0, validate_1.isBoolean)().isOptional(),
175
180
  level: (0, validate_1.isBoolean)().isOptional(),
176
181
  talentsMana: (0, validate_1.isBoolean)().isOptional(),
182
+ availability: availability.isOptional(),
177
183
  },
178
184
  createReaction: {
179
185
  toId: (0, validate_1.isString)(),
@@ -12,6 +12,8 @@ export declare enum Collections {
12
12
  export type TSkill = "Sales" | "Operation" | "Design" | "Marketing" | "Produit" | "Tech";
13
13
  export type TPlan = "free" | "pro" | "premium";
14
14
  export type TVisibility = "public" | "limited" | "private";
15
+ export type TProjectStatus = "idea" | "creation" | "launch" | "growth";
16
+ export type TAvailability = "full-time" | "part-time";
15
17
  export interface IClicks {
16
18
  linkedin: number;
17
19
  email: number;
@@ -32,6 +34,7 @@ export interface IUser {
32
34
  motivations?: string;
33
35
  partner?: string;
34
36
  business: string;
37
+ availability?: TAvailability;
35
38
  photo?: string;
36
39
  plan: TPlan;
37
40
  active?: boolean;
@@ -57,6 +60,7 @@ export interface IProject {
57
60
  turnover?: number;
58
61
  description: string;
59
62
  partner?: string;
63
+ availability?: TAvailability;
60
64
  logo?: string;
61
65
  plan: TPlan;
62
66
  active?: boolean;
@@ -71,7 +75,6 @@ export interface IProject {
71
75
  referrer?: string;
72
76
  postedOnLinkedInAt?: number;
73
77
  }
74
- export type TProjectStatus = "idea" | "creation" | "launch" | "growth";
75
78
  export interface IContact {
76
79
  email: string;
77
80
  linkedin?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cofondateurauchomage/libs",
3
- "version": "1.1.103",
3
+ "version": "1.1.104",
4
4
  "description": "",
5
5
  "main": "build/index",
6
6
  "scripts": {