@cofondateurauchomage/libs 1.1.34 → 1.1.35

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.
@@ -32,6 +32,7 @@ const photo = (0, validate_1.isString)().isOptional();
32
32
  const logo = (0, validate_1.isString)().isOptional();
33
33
  const plan = (0, validate_1.isMatchEnum)(["free", "pro", "premium"]);
34
34
  const apiSecretKey = (0, validate_1.isString)();
35
+ const tel = (0, validate_1.isMatchRegex)(regex_1.RGX.Tel.regex).isOptional();
35
36
  const validatorsForAllRoutes = {
36
37
  ///////////////////
37
38
  // Cloud functions
@@ -54,6 +55,7 @@ const validatorsForAllRoutes = {
54
55
  newsletterMatch,
55
56
  newsletterMarketing,
56
57
  logo,
58
+ tel,
57
59
  },
58
60
  deleteProject: {},
59
61
  updateProject: {
@@ -68,6 +70,7 @@ const validatorsForAllRoutes = {
68
70
  description,
69
71
  partner,
70
72
  logo,
73
+ tel,
71
74
  },
72
75
  activeProject: {
73
76
  active: (0, validate_1.isBoolean)(),
@@ -88,6 +91,7 @@ const validatorsForAllRoutes = {
88
91
  newsletterMatch,
89
92
  newsletterMarketing,
90
93
  photo,
94
+ tel,
91
95
  },
92
96
  deleteUser: {},
93
97
  updateUser: {
@@ -100,6 +104,7 @@ const validatorsForAllRoutes = {
100
104
  skills,
101
105
  zipCode,
102
106
  photo,
107
+ tel,
103
108
  },
104
109
  activeUser: {
105
110
  active: (0, validate_1.isBoolean)(),
@@ -63,6 +63,7 @@ export type TProjectStatus = "idea" | "creation" | "launch" | "growth";
63
63
  export interface IContact {
64
64
  email: string;
65
65
  linkedin?: string;
66
+ tel?: string;
66
67
  }
67
68
  export interface INewsletter {
68
69
  match?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cofondateurauchomage/libs",
3
- "version": "1.1.34",
3
+ "version": "1.1.35",
4
4
  "description": "",
5
5
  "main": "build/index",
6
6
  "scripts": {