@cofondateurauchomage/libs 1.1.12 → 1.1.14

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
@@ -16,14 +16,14 @@ export type BodyForO<O extends CloudFunctionNames | RouteNames> = {
16
16
  stripeId: string;
17
17
  active: boolean;
18
18
  };
19
- createUser: Omit<IUser, "id" | "clicks" | "creationDate" | "lastConnection" | "likes"> & {
19
+ createUser: Omit<IUser, "id" | "active" | "clicks" | "creationDate" | "lastConnection" | "likes"> & {
20
20
  newsletterMatch?: boolean;
21
21
  newsletterMarketing?: boolean;
22
22
  };
23
23
  deleteUser: {};
24
24
  updateUser: Pick<IUser, "business" | "city" | "invest" | "linkedin" | "motivations" | "partner" | "skills" | "zipCode">;
25
25
  addStatsAssociation: {};
26
- updateNewsletter: Omit<INewsletter, "contact_id">;
26
+ updateNewsletter: INewsletter;
27
27
  checkout_session: {
28
28
  stripeId?: string;
29
29
  email: string;
@@ -26,7 +26,6 @@ const stripeId = (0, validate_1.isString)().setMin(4).setMax(50);
26
26
  const zipCode = (0, validate_1.isNumber)().setMin(1000).setMax(97680);
27
27
  const newsletterMatch = (0, validate_1.isBoolean)().isOptional();
28
28
  const newsletterMarketing = (0, validate_1.isBoolean)().isOptional();
29
- const contact_id = (0, validate_1.isString)();
30
29
  const validatorsForAllRoutes = {
31
30
  ///////////////////
32
31
  // Cloud functions
@@ -25,6 +25,7 @@ export interface IUser {
25
25
  partner: string;
26
26
  skills: TSkill[];
27
27
  zipCode: number;
28
+ active: boolean;
28
29
  clicks: IClicks;
29
30
  creationDate: number;
30
31
  lastConnection: number;
@@ -55,7 +56,6 @@ export interface IStatsAssociation {
55
56
  liste: string[];
56
57
  }
57
58
  export interface INewsletter {
58
- contact_id: string;
59
59
  match?: boolean;
60
60
  marketing?: boolean;
61
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cofondateurauchomage/libs",
3
- "version": "1.1.12",
3
+ "version": "1.1.14",
4
4
  "description": "",
5
5
  "main": "build/index",
6
6
  "scripts": {