@cofondateurauchomage/libs 1.1.104 → 1.1.106
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.validate.js +5 -7
- package/build/const.d.ts +2 -1
- package/build/const.js +5 -1
- package/build/db.model.d.ts +3 -4
- package/package.json +1 -1
package/build/api.validate.js
CHANGED
|
@@ -36,7 +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)(
|
|
39
|
+
const availability = (0, validate_1.isMatchEnum)(const_1.AVAILABILITY).isOptional();
|
|
40
40
|
const validatorsForAllRoutes = {
|
|
41
41
|
///////////////////
|
|
42
42
|
// Cloud functions
|
|
@@ -60,11 +60,10 @@ const validatorsForAllRoutes = {
|
|
|
60
60
|
description,
|
|
61
61
|
partner,
|
|
62
62
|
availability,
|
|
63
|
-
redstart: (0, validate_1.isBoolean)().isOptional(),
|
|
64
|
-
level: (0, validate_1.isBoolean)().isOptional(),
|
|
65
63
|
newsletterMarketing,
|
|
66
64
|
logo,
|
|
67
|
-
|
|
65
|
+
partner_swanbase: (0, validate_1.isBoolean)().isOptional(),
|
|
66
|
+
partner_3i: (0, validate_1.isBoolean)().isOptional(),
|
|
68
67
|
},
|
|
69
68
|
deleteProject: {},
|
|
70
69
|
updateProject: {
|
|
@@ -176,9 +175,8 @@ const validatorsForAllRoutes = {
|
|
|
176
175
|
status_detail: status_detail.isOptional(),
|
|
177
176
|
turnover: turnover.isOptional(),
|
|
178
177
|
description: description.isOptional(),
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
talentsMana: (0, validate_1.isBoolean)().isOptional(),
|
|
178
|
+
partner_swanbase: (0, validate_1.isBoolean)().isOptional(),
|
|
179
|
+
partner_3i: (0, validate_1.isBoolean)().isOptional(),
|
|
182
180
|
availability: availability.isOptional(),
|
|
183
181
|
},
|
|
184
182
|
createReaction: {
|
package/build/const.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { TPlan, TProjectStatus, TSkill } from "./db.model";
|
|
1
|
+
import { TAvailability, TPlan, TProjectStatus, TSkill } from "./db.model";
|
|
2
2
|
export declare const EMAIL = "contact@cofondateurauchomage.fr";
|
|
3
3
|
export declare const SKILLS: TSkill[];
|
|
4
4
|
export declare const PROJECT_STATUS: TProjectStatus[];
|
|
5
5
|
export declare const PLANS: TPlan[];
|
|
6
|
+
export declare const AVAILABILITY: TAvailability[];
|
package/build/const.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PLANS = exports.PROJECT_STATUS = exports.SKILLS = exports.EMAIL = void 0;
|
|
3
|
+
exports.AVAILABILITY = exports.PLANS = exports.PROJECT_STATUS = exports.SKILLS = exports.EMAIL = void 0;
|
|
4
4
|
exports.EMAIL = "contact@cofondateurauchomage.fr";
|
|
5
5
|
exports.SKILLS = [
|
|
6
6
|
"Sales",
|
|
@@ -17,3 +17,7 @@ exports.PROJECT_STATUS = [
|
|
|
17
17
|
"growth",
|
|
18
18
|
];
|
|
19
19
|
exports.PLANS = ["free", "pro"];
|
|
20
|
+
exports.AVAILABILITY = [
|
|
21
|
+
"full_time",
|
|
22
|
+
"part_time",
|
|
23
|
+
];
|
package/build/db.model.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export type TSkill = "Sales" | "Operation" | "Design" | "Marketing" | "Produit"
|
|
|
13
13
|
export type TPlan = "free" | "pro" | "premium";
|
|
14
14
|
export type TVisibility = "public" | "limited" | "private";
|
|
15
15
|
export type TProjectStatus = "idea" | "creation" | "launch" | "growth";
|
|
16
|
-
export type TAvailability = "
|
|
16
|
+
export type TAvailability = "full_time" | "part_time";
|
|
17
17
|
export interface IClicks {
|
|
18
18
|
linkedin: number;
|
|
19
19
|
email: number;
|
|
@@ -69,9 +69,8 @@ export interface IProject {
|
|
|
69
69
|
creationDate: number;
|
|
70
70
|
lastConnection: number;
|
|
71
71
|
stripeId?: string;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
talentsMana?: boolean;
|
|
72
|
+
partner_swanbase?: boolean;
|
|
73
|
+
partner_3i?: boolean;
|
|
75
74
|
referrer?: string;
|
|
76
75
|
postedOnLinkedInAt?: number;
|
|
77
76
|
}
|