@cofondateurauchomage/libs 1.1.51 → 1.1.53

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.
@@ -131,6 +131,9 @@ const validatorsForAllRoutes = {
131
131
  updateNewsletter: {
132
132
  match: (0, validate_1.isBoolean)().isOptional(),
133
133
  marketing: (0, validate_1.isBoolean)().isOptional(),
134
+ notification: (0, validate_1.isBoolean)().isOptional(),
135
+ feature: (0, validate_1.isBoolean)().isOptional(),
136
+ new_profil: (0, validate_1.isBoolean)().isOptional(),
134
137
  },
135
138
  createProspect: {
136
139
  email,
@@ -68,8 +68,11 @@ export interface IContact {
68
68
  website?: string;
69
69
  }
70
70
  export interface INewsletter {
71
- match?: boolean;
72
71
  marketing?: boolean;
72
+ notification?: boolean;
73
+ feature?: boolean;
74
+ match?: boolean;
75
+ new_profil?: boolean;
73
76
  }
74
77
  export interface IStatsAssociation {
75
78
  liste: string[];
@@ -6,3 +6,5 @@ export declare function pickObject<T extends object, K extends keyof T>(obj: T,
6
6
  * Omit certaines clés d'un objet
7
7
  */
8
8
  export declare function omitObject<T extends object, K extends keyof T>(obj: T, ...keys: K[]): Omit<T, K>;
9
+ export declare function typedKeys<T extends object>(obj: T): Array<keyof T>;
10
+ export declare function typedObjectEntries<T extends object>(obj: T): Array<[keyof T, T[keyof T]]>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.omitObject = exports.pickObject = void 0;
3
+ exports.typedObjectEntries = exports.typedKeys = exports.omitObject = exports.pickObject = void 0;
4
4
  /**
5
5
  * Pick certaines clés d'un objet
6
6
  */
@@ -20,3 +20,11 @@ function omitObject(obj, ...keys) {
20
20
  }, {});
21
21
  }
22
22
  exports.omitObject = omitObject;
23
+ function typedKeys(obj) {
24
+ return Object.keys(obj);
25
+ }
26
+ exports.typedKeys = typedKeys;
27
+ function typedObjectEntries(obj) {
28
+ return Object.entries(obj);
29
+ }
30
+ exports.typedObjectEntries = typedObjectEntries;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cofondateurauchomage/libs",
3
- "version": "1.1.51",
3
+ "version": "1.1.53",
4
4
  "description": "",
5
5
  "main": "build/index",
6
6
  "scripts": {