@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 +1 -0
- package/build/api.validate.js +6 -0
- package/build/db.model.d.ts +1 -0
- package/package.json +1 -1
package/build/api.d.ts
CHANGED
package/build/api.validate.js
CHANGED
|
@@ -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,
|
package/build/db.model.d.ts
CHANGED