@cofondateurauchomage/libs 1.1.77 → 1.1.79

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
@@ -52,3 +52,41 @@ export type BodyForO<O extends CloudFunctionNames | RouteNames> = {
52
52
  };
53
53
  webhook: {};
54
54
  }[O];
55
+ type Timestamp = {
56
+ seconds: number;
57
+ nanoseconds: number;
58
+ };
59
+ type WriteResult = {
60
+ writeTime: Timestamp;
61
+ };
62
+ export type ResponseForO<O extends CloudFunctionNames | RouteNames> = {
63
+ createProject: Promise<WriteResult>;
64
+ deleteProject: Promise<WriteResult>;
65
+ updateProject: Promise<WriteResult>;
66
+ createUser: Promise<WriteResult>;
67
+ deleteUser: Promise<WriteResult>;
68
+ updateUser: Promise<WriteResult>;
69
+ updateVisibility: Promise<WriteResult>;
70
+ addStripeId: Promise<WriteResult>;
71
+ updatePlan: Promise<WriteResult>;
72
+ addStatsAssociation: Promise<WriteResult>;
73
+ updateNewsletter: Promise<WriteResult>;
74
+ createProspect: Promise<{
75
+ id: string;
76
+ }>;
77
+ getProspect: Promise<IProspect>;
78
+ updateProspect: Promise<WriteResult>;
79
+ createReaction: Promise<WriteResult>;
80
+ deleteReaction: Promise<WriteResult>;
81
+ checkout_session: Promise<{
82
+ sessionId: string;
83
+ }>;
84
+ delete_customer: Promise<{
85
+ success: boolean;
86
+ }>;
87
+ portal_session: Promise<{
88
+ url: string;
89
+ }>;
90
+ webhook: Promise<void>;
91
+ }[O];
92
+ export {};
@@ -144,7 +144,7 @@ const validatorsForAllRoutes = {
144
144
  email,
145
145
  },
146
146
  updateProspect: {
147
- email: email.isOptional(),
147
+ email,
148
148
  tel: tel.isOptional(),
149
149
  linkedin: linkedin.isOptional(),
150
150
  website: website.isOptional(),
@@ -94,7 +94,9 @@ export interface INotification {
94
94
  body?: string;
95
95
  link?: string;
96
96
  }
97
- export type IProspect = Partial<Omit<IUser, "id" | "plan" | "visibility" | "clicks" | "creationDate" | "lastConnection" | "likes" | "stripeId" | "active" | "photo">> & Partial<Omit<IProject, "id" | "plan" | "visibility" | "clicks" | "creationDate" | "lastConnection" | "likes" | "stripeId" | "active" | "logo">> & Partial<IContact>;
97
+ export type IProspect = Partial<Omit<IUser, "id" | "plan" | "visibility" | "clicks" | "creationDate" | "lastConnection" | "likes" | "stripeId" | "active" | "photo">> & Partial<Omit<IProject, "id" | "plan" | "visibility" | "clicks" | "creationDate" | "lastConnection" | "likes" | "stripeId" | "active" | "logo">> & Partial<IContact> & {
98
+ email: string;
99
+ };
98
100
  export type IReactionStatus = "like" | "dislike";
99
101
  export interface IReaction {
100
102
  fromUserId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cofondateurauchomage/libs",
3
- "version": "1.1.77",
3
+ "version": "1.1.79",
4
4
  "description": "",
5
5
  "main": "build/index",
6
6
  "scripts": {