@cofondateurauchomage/libs 1.1.65 → 1.1.67
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
CHANGED
|
@@ -8,7 +8,7 @@ export type BodyForO<O extends CloudFunctionNames | RouteNames> = {
|
|
|
8
8
|
emailProspect: string;
|
|
9
9
|
};
|
|
10
10
|
deleteProject: {};
|
|
11
|
-
updateProject: Pick<IProject, "
|
|
11
|
+
updateProject: Pick<IProject, "name" | "lastName" | "firstName" | "skills" | "zipCode" | "city" | "invest" | "status" | "status_detail" | "turnover" | "description" | "partner" | "logo"> & Omit<IContact, "email">;
|
|
12
12
|
activeProject: {
|
|
13
13
|
active: boolean;
|
|
14
14
|
};
|
|
@@ -18,7 +18,7 @@ export type BodyForO<O extends CloudFunctionNames | RouteNames> = {
|
|
|
18
18
|
emailProspect: string;
|
|
19
19
|
};
|
|
20
20
|
deleteUser: {};
|
|
21
|
-
updateUser: Pick<IUser, "
|
|
21
|
+
updateUser: Pick<IUser, "lastName" | "firstName" | "skills" | "zipCode" | "city" | "invest" | "motivations" | "partner" | "business" | "photo"> & Omit<IContact, "email">;
|
|
22
22
|
activeUser: {
|
|
23
23
|
active: boolean;
|
|
24
24
|
};
|
package/build/api.validate.js
CHANGED
|
@@ -67,6 +67,8 @@ const validatorsForAllRoutes = {
|
|
|
67
67
|
linkedin,
|
|
68
68
|
website,
|
|
69
69
|
name,
|
|
70
|
+
firstName,
|
|
71
|
+
lastName,
|
|
70
72
|
skills,
|
|
71
73
|
zipCode,
|
|
72
74
|
city,
|
|
@@ -113,6 +115,8 @@ const validatorsForAllRoutes = {
|
|
|
113
115
|
skills,
|
|
114
116
|
zipCode,
|
|
115
117
|
photo,
|
|
118
|
+
firstName,
|
|
119
|
+
lastName,
|
|
116
120
|
},
|
|
117
121
|
activeUser: {
|
|
118
122
|
active: (0, validate_1.isBoolean)(),
|
|
@@ -21,5 +21,5 @@ type Cleaned<T> = {
|
|
|
21
21
|
export declare function cleanObject<T extends object>(obj: T, options?: {
|
|
22
22
|
recursive?: boolean;
|
|
23
23
|
}): Cleaned<T>;
|
|
24
|
-
export
|
|
24
|
+
export declare function deepEqual<T>(obj1: T, obj2: T): boolean;
|
|
25
25
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.cleanObject = exports.isObject = exports.typedObjectEntries = exports.typedKeys = exports.omitObject = exports.pickObject = void 0;
|
|
3
|
+
exports.deepEqual = exports.cleanObject = exports.isObject = exports.typedObjectEntries = exports.typedKeys = exports.omitObject = exports.pickObject = void 0;
|
|
4
4
|
const arrayUtils_1 = require("./arrayUtils");
|
|
5
5
|
/**
|
|
6
6
|
* Pick certaines clés d'un objet
|
|
@@ -77,4 +77,4 @@ function deepEqual(obj1, obj2) {
|
|
|
77
77
|
}
|
|
78
78
|
return false;
|
|
79
79
|
}
|
|
80
|
-
exports.
|
|
80
|
+
exports.deepEqual = deepEqual;
|