@cofondateurauchomage/libs 1.1.84 → 1.1.87
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 -1
- package/build/api.validate.js +6 -6
- package/package.json +1 -1
package/build/api.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ export type ResponseForO<O extends CloudFunctionNames | RouteNames> = {
|
|
|
74
74
|
createProspect: {
|
|
75
75
|
id: string;
|
|
76
76
|
} | null;
|
|
77
|
-
getProspect: IProspect;
|
|
77
|
+
getProspect: IProspect | null;
|
|
78
78
|
updateProspect: WriteResult | null;
|
|
79
79
|
createReaction: WriteResult;
|
|
80
80
|
deleteReaction: WriteResult;
|
package/build/api.validate.js
CHANGED
|
@@ -6,24 +6,24 @@ const regex_1 = require("./regex");
|
|
|
6
6
|
const validate_1 = require("./validate");
|
|
7
7
|
//////////////
|
|
8
8
|
// Validators
|
|
9
|
-
const business = (0, validate_1.isString)().
|
|
9
|
+
const business = (0, validate_1.isString)().setMax(1000);
|
|
10
10
|
const city = (0, validate_1.isMatchRegex)(regex_1.RGX.Name.regex);
|
|
11
|
-
const description = (0, validate_1.isString)().
|
|
11
|
+
const description = (0, validate_1.isString)().setMax(1000);
|
|
12
12
|
const email = (0, validate_1.isString)();
|
|
13
13
|
const firstName = (0, validate_1.isMatchRegex)(regex_1.RGX.Name.regex);
|
|
14
14
|
const invest = (0, validate_1.isNumber)().setMin(0).setMax(1000000).isOptional();
|
|
15
15
|
const lastName = (0, validate_1.isMatchRegex)(regex_1.RGX.Name.regex);
|
|
16
16
|
const linkedin = (0, validate_1.isMatchRegex)(regex_1.RGX.Linkedin.regex).isOptional();
|
|
17
17
|
const website = (0, validate_1.isString)().isOptional();
|
|
18
|
-
const motivations = (0, validate_1.isString)().
|
|
19
|
-
const name = (0, validate_1.isString)().
|
|
20
|
-
const partner = (0, validate_1.isString)().
|
|
18
|
+
const motivations = (0, validate_1.isString)().setMax(1000);
|
|
19
|
+
const name = (0, validate_1.isString)().setMax(50);
|
|
20
|
+
const partner = (0, validate_1.isString)().setMax(1000);
|
|
21
21
|
const skills = new validate_1.Validator((value) => !!(value &&
|
|
22
22
|
Array.isArray(value) &&
|
|
23
23
|
value.length >= 1 &&
|
|
24
24
|
value.length <= 2 &&
|
|
25
25
|
value.every((skill) => const_1.SKILLS.includes(skill))));
|
|
26
|
-
const stripeId = (0, validate_1.isString)().
|
|
26
|
+
const stripeId = (0, validate_1.isString)().setMax(50);
|
|
27
27
|
const zipCode = (0, validate_1.isNumber)().setMin(1000).setMax(97680);
|
|
28
28
|
const newsletterMarketing = (0, validate_1.isBoolean)().isOptional();
|
|
29
29
|
const status = (0, validate_1.isMatchEnum)(const_1.PROJECT_STATUS).isOptional();
|