@cofondateurauchomage/libs 1.1.33 → 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.
package/build/api.d.ts CHANGED
@@ -35,6 +35,7 @@ export type BodyForO<O extends CloudFunctionNames | RouteNames> = {
35
35
  checkout_session: {
36
36
  stripeId?: string;
37
37
  email: string;
38
+ type: "user" | "project";
38
39
  };
39
40
  delete_customer: {
40
41
  stripeId: string;
@@ -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)(),
@@ -124,6 +129,7 @@ const validatorsForAllRoutes = {
124
129
  checkout_session: {
125
130
  stripeId: stripeId.isOptional(),
126
131
  email,
132
+ type: (0, validate_1.isMatchEnum)(["user", "project"]),
127
133
  },
128
134
  delete_customer: {
129
135
  stripeId,
@@ -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.33",
3
+ "version": "1.1.35",
4
4
  "description": "",
5
5
  "main": "build/index",
6
6
  "scripts": {