@cofondateurauchomage/libs 1.1.57 → 1.1.59
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 +1 -1
- package/build/db.model.d.ts +3 -12
- package/build/db.model.js +0 -1
- package/package.json +1 -1
package/build/api.validate.js
CHANGED
|
@@ -13,7 +13,7 @@ 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
|
-
const linkedin = (0, validate_1.isMatchRegex)(regex_1.RGX.Linkedin.regex);
|
|
16
|
+
const linkedin = (0, validate_1.isMatchRegex)(regex_1.RGX.Linkedin.regex).isOptional();
|
|
17
17
|
const website = (0, validate_1.isString)().isOptional();
|
|
18
18
|
const motivations = (0, validate_1.isString)().setMin(10).setMax(500);
|
|
19
19
|
const name = (0, validate_1.isString)().setMin(2).setMax(50);
|
package/build/db.model.d.ts
CHANGED
|
@@ -6,8 +6,7 @@ export declare enum Collections {
|
|
|
6
6
|
stats = "stats",
|
|
7
7
|
notifications = "notifications",
|
|
8
8
|
prospects = "prospects",
|
|
9
|
-
reactions = "reactions"
|
|
10
|
-
linkedinUsers = "linkedinUsers"
|
|
9
|
+
reactions = "reactions"
|
|
11
10
|
}
|
|
12
11
|
export type TSkill = "Business" | "Design" | "Marketing" | "Produit" | "Tech";
|
|
13
12
|
export type TPlan = "free" | "pro" | "premium";
|
|
@@ -79,7 +78,9 @@ export interface INewsletter {
|
|
|
79
78
|
export interface IStatsAssociation {
|
|
80
79
|
liste: string[];
|
|
81
80
|
}
|
|
81
|
+
export type TNotificationType = "match" | "like" | "new_profil";
|
|
82
82
|
export interface INotification {
|
|
83
|
+
type: TNotificationType;
|
|
83
84
|
uid: string;
|
|
84
85
|
createdAt: number;
|
|
85
86
|
isRead: boolean;
|
|
@@ -97,13 +98,3 @@ export interface IReaction {
|
|
|
97
98
|
status: IReactionStatus;
|
|
98
99
|
createdAt: number;
|
|
99
100
|
}
|
|
100
|
-
export interface ILinkedinUser {
|
|
101
|
-
id: string;
|
|
102
|
-
lastName?: string;
|
|
103
|
-
firstName?: string;
|
|
104
|
-
skills?: TSkill[];
|
|
105
|
-
zipCode?: number;
|
|
106
|
-
city?: string;
|
|
107
|
-
bio?: string;
|
|
108
|
-
photo?: string;
|
|
109
|
-
}
|
package/build/db.model.js
CHANGED
|
@@ -11,5 +11,4 @@ var Collections;
|
|
|
11
11
|
Collections["notifications"] = "notifications";
|
|
12
12
|
Collections["prospects"] = "prospects";
|
|
13
13
|
Collections["reactions"] = "reactions";
|
|
14
|
-
Collections["linkedinUsers"] = "linkedinUsers";
|
|
15
14
|
})(Collections = exports.Collections || (exports.Collections = {}));
|