@cofondateurauchomage/libs 1.1.94 → 1.1.98

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
@@ -2,13 +2,13 @@ import { IContact, INewsletter, IProject, IProspect, IReactionStatus, IUser, TPl
2
2
  export type CloudFunctionNames = "createProject" | "updateProject" | "deleteProject" | "createUser" | "updateUser" | "deleteUser" | "updateVisibility" | "addStripeId" | "updatePlan" | "addStatsAssociation" | "updateNewsletter" | "createProspect" | "getProspect" | "updateProspect" | "createReaction" | "deleteReaction";
3
3
  export type RouteNames = "checkout_session" | "delete_customer" | "portal_session" | "webhook";
4
4
  export type BodyForO<O extends CloudFunctionNames | RouteNames> = {
5
- createProject: Omit<IProject, "id" | "plan" | "visibility" | "clicks" | "creationDate" | "lastConnection" | "likes" | "stripeId" | "active"> & IContact & {
5
+ createProject: Omit<IProject, "id" | "plan" | "visibility" | "clicks" | "creationDate" | "lastConnection" | "likes" | "stripeId" | "active" | "referrer" | "postedOnLinkedInAt"> & IContact & {
6
6
  newsletterMarketing?: boolean;
7
7
  emailProspect: string;
8
8
  };
9
9
  deleteProject: {};
10
10
  updateProject: Pick<IProject, "name" | "lastName" | "firstName" | "skills" | "zipCode" | "city" | "invest" | "status" | "status_detail" | "turnover" | "description" | "partner" | "logo"> & Omit<IContact, "email">;
11
- createUser: Omit<IUser, "id" | "plan" | "visibility" | "clicks" | "creationDate" | "lastConnection" | "likes" | "stripeId" | "active"> & IContact & {
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
  };
@@ -30,9 +30,9 @@ export type BodyForO<O extends CloudFunctionNames | RouteNames> = {
30
30
  };
31
31
  addStatsAssociation: {};
32
32
  updateNewsletter: Omit<INewsletter, "new_profil_last_sent_date">;
33
- createProspect: Pick<IProspect, "email">;
33
+ createProspect: Pick<IProspect, "email" | "referrer">;
34
34
  getProspect: Pick<IProspect, "email">;
35
- updateProspect: Omit<IProspect, "creationDate">;
35
+ updateProspect: Omit<IProspect, "creationDate" | "referrer">;
36
36
  createReaction: {
37
37
  toId: string;
38
38
  status: IReactionStatus;
@@ -140,6 +140,7 @@ const validatorsForAllRoutes = {
140
140
  },
141
141
  createProspect: {
142
142
  email,
143
+ referrer: (0, validate_1.isString)().isOptional(),
143
144
  },
144
145
  getProspect: {
145
146
  email,
@@ -39,6 +39,7 @@ export interface IUser {
39
39
  creationDate: number;
40
40
  lastConnection: number;
41
41
  stripeId?: string;
42
+ referrer?: string;
42
43
  }
43
44
  export interface IProject {
44
45
  id: string;
@@ -65,6 +66,8 @@ export interface IProject {
65
66
  redstart?: boolean;
66
67
  level?: boolean;
67
68
  talentsMana?: boolean;
69
+ referrer?: string;
70
+ postedOnLinkedInAt?: number;
68
71
  }
69
72
  export type TProjectStatus = "idea" | "creation" | "launch" | "growth";
70
73
  export interface IContact {
@@ -94,7 +97,7 @@ export interface INotification {
94
97
  body?: string;
95
98
  link?: string;
96
99
  }
97
- export type IProspect = Partial<Omit<IUser, "id" | "plan" | "visibility" | "clicks" | "lastConnection" | "likes" | "stripeId" | "active" | "photo">> & Partial<Omit<IProject, "id" | "plan" | "visibility" | "clicks" | "creationDate" | "lastConnection" | "likes" | "stripeId" | "active" | "logo">> & Partial<IContact> & {
100
+ export type IProspect = Partial<Omit<IUser, "id" | "plan" | "visibility" | "clicks" | "lastConnection" | "likes" | "stripeId" | "active" | "photo">> & Partial<Omit<IProject, "id" | "plan" | "visibility" | "clicks" | "creationDate" | "lastConnection" | "likes" | "stripeId" | "active" | "logo" | "postedOnLinkedInAt">> & Partial<IContact> & {
98
101
  email: string;
99
102
  };
100
103
  export type IReactionStatus = "like" | "dislike";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cofondateurauchomage/libs",
3
- "version": "1.1.94",
3
+ "version": "1.1.98",
4
4
  "description": "",
5
5
  "main": "build/index",
6
6
  "scripts": {