@cofondateurauchomage/libs 1.1.103 → 1.1.105
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 +2 -2
- package/build/api.validate.js +6 -0
- package/build/const.d.ts +2 -1
- package/build/const.js +5 -1
- package/build/db.model.d.ts +4 -1
- package/package.json +1 -1
package/build/api.d.ts
CHANGED
|
@@ -7,13 +7,13 @@ export type BodyForO<O extends CloudFunctionNames | RouteNames> = {
|
|
|
7
7
|
emailProspect: string;
|
|
8
8
|
};
|
|
9
9
|
deleteProject: {};
|
|
10
|
-
updateProject: Pick<IProject, "name" | "lastName" | "firstName" | "skills" | "yearsOfExperience" | "zipCode" | "city" | "invest" | "status" | "status_detail" | "turnover" | "description" | "partner" | "logo"> & Omit<IContact, "email">;
|
|
10
|
+
updateProject: Pick<IProject, "name" | "lastName" | "firstName" | "skills" | "yearsOfExperience" | "zipCode" | "city" | "invest" | "status" | "status_detail" | "turnover" | "description" | "partner" | "logo" | "availability"> & Omit<IContact, "email">;
|
|
11
11
|
createUser: Omit<IUser, "id" | "plan" | "visibility" | "clicks" | "creationDate" | "lastConnection" | "likes" | "stripeId" | "active" | "referrer"> & IContact & {
|
|
12
12
|
newsletterMarketing?: boolean;
|
|
13
13
|
emailProspect: string;
|
|
14
14
|
};
|
|
15
15
|
deleteUser: {};
|
|
16
|
-
updateUser: Pick<IUser, "lastName" | "firstName" | "skills" | "yearsOfExperience" | "zipCode" | "city" | "invest" | "motivations" | "partner" | "business" | "photo"> & Omit<IContact, "email">;
|
|
16
|
+
updateUser: Pick<IUser, "lastName" | "firstName" | "skills" | "yearsOfExperience" | "zipCode" | "city" | "invest" | "motivations" | "partner" | "business" | "photo" | "availability"> & Omit<IContact, "email">;
|
|
17
17
|
updateVisibility: {
|
|
18
18
|
visibility: TVisibility;
|
|
19
19
|
};
|
package/build/api.validate.js
CHANGED
|
@@ -36,6 +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)(const_1.AVAILABILITY).isOptional();
|
|
39
40
|
const validatorsForAllRoutes = {
|
|
40
41
|
///////////////////
|
|
41
42
|
// Cloud functions
|
|
@@ -58,6 +59,7 @@ const validatorsForAllRoutes = {
|
|
|
58
59
|
turnover,
|
|
59
60
|
description,
|
|
60
61
|
partner,
|
|
62
|
+
availability,
|
|
61
63
|
redstart: (0, validate_1.isBoolean)().isOptional(),
|
|
62
64
|
level: (0, validate_1.isBoolean)().isOptional(),
|
|
63
65
|
newsletterMarketing,
|
|
@@ -83,6 +85,7 @@ const validatorsForAllRoutes = {
|
|
|
83
85
|
description,
|
|
84
86
|
partner,
|
|
85
87
|
logo,
|
|
88
|
+
availability,
|
|
86
89
|
},
|
|
87
90
|
createUser: {
|
|
88
91
|
email,
|
|
@@ -103,6 +106,7 @@ const validatorsForAllRoutes = {
|
|
|
103
106
|
zipCode,
|
|
104
107
|
newsletterMarketing,
|
|
105
108
|
photo,
|
|
109
|
+
availability,
|
|
106
110
|
},
|
|
107
111
|
deleteUser: {},
|
|
108
112
|
updateUser: {
|
|
@@ -120,6 +124,7 @@ const validatorsForAllRoutes = {
|
|
|
120
124
|
photo,
|
|
121
125
|
firstName,
|
|
122
126
|
lastName,
|
|
127
|
+
availability,
|
|
123
128
|
},
|
|
124
129
|
updateVisibility: {
|
|
125
130
|
visibility: (0, validate_1.isMatchEnum)(["public", "limited", "private"]),
|
|
@@ -174,6 +179,7 @@ const validatorsForAllRoutes = {
|
|
|
174
179
|
redstart: (0, validate_1.isBoolean)().isOptional(),
|
|
175
180
|
level: (0, validate_1.isBoolean)().isOptional(),
|
|
176
181
|
talentsMana: (0, validate_1.isBoolean)().isOptional(),
|
|
182
|
+
availability: availability.isOptional(),
|
|
177
183
|
},
|
|
178
184
|
createReaction: {
|
|
179
185
|
toId: (0, validate_1.isString)(),
|
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
|
@@ -12,6 +12,8 @@ export declare enum Collections {
|
|
|
12
12
|
export type TSkill = "Sales" | "Operation" | "Design" | "Marketing" | "Produit" | "Tech";
|
|
13
13
|
export type TPlan = "free" | "pro" | "premium";
|
|
14
14
|
export type TVisibility = "public" | "limited" | "private";
|
|
15
|
+
export type TProjectStatus = "idea" | "creation" | "launch" | "growth";
|
|
16
|
+
export type TAvailability = "full_time" | "part_time";
|
|
15
17
|
export interface IClicks {
|
|
16
18
|
linkedin: number;
|
|
17
19
|
email: number;
|
|
@@ -32,6 +34,7 @@ export interface IUser {
|
|
|
32
34
|
motivations?: string;
|
|
33
35
|
partner?: string;
|
|
34
36
|
business: string;
|
|
37
|
+
availability?: TAvailability;
|
|
35
38
|
photo?: string;
|
|
36
39
|
plan: TPlan;
|
|
37
40
|
active?: boolean;
|
|
@@ -57,6 +60,7 @@ export interface IProject {
|
|
|
57
60
|
turnover?: number;
|
|
58
61
|
description: string;
|
|
59
62
|
partner?: string;
|
|
63
|
+
availability?: TAvailability;
|
|
60
64
|
logo?: string;
|
|
61
65
|
plan: TPlan;
|
|
62
66
|
active?: boolean;
|
|
@@ -71,7 +75,6 @@ export interface IProject {
|
|
|
71
75
|
referrer?: string;
|
|
72
76
|
postedOnLinkedInAt?: number;
|
|
73
77
|
}
|
|
74
|
-
export type TProjectStatus = "idea" | "creation" | "launch" | "growth";
|
|
75
78
|
export interface IContact {
|
|
76
79
|
email: string;
|
|
77
80
|
linkedin?: string;
|