@cofondateurauchomage/libs 1.1.145 → 1.1.147
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 +4 -4
- package/build/db.model.d.ts +5 -1
- package/package.json +1 -1
package/build/api.d.ts
CHANGED
|
@@ -2,18 +2,18 @@ import { IBlogHtmlArticle, IContact, INewsletter, IProject, IProspect, IReaction
|
|
|
2
2
|
export type CloudFunctionNames = "createProject" | "updateProject" | "deleteProject" | "createUser" | "updateUser" | "deleteUser" | "updateVisibility" | "addStripeId" | "updatePlan" | "updateMetaStripe" | "addStatsAssociation" | "updateNewsletter" | "createProspect" | "getProspect" | "updateProspect" | "createReaction" | "deleteReaction" | "createBlogHtmlArticle";
|
|
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" | "stripeId" | "referrer" | "postedOnLinkedInAt"> & IContact & {
|
|
5
|
+
createProject: Omit<IProject, "id" | "plan" | "visibility" | "clicks" | "creationDate" | "lastConnection" | "stripeId" | "referrer" | "postedOnLinkedInAt" | "complimentaryProGrantedAt" | "complimentaryProRevokedAt"> & IContact & {
|
|
6
6
|
newsletterMarketing?: boolean;
|
|
7
7
|
emailProspect: string;
|
|
8
8
|
};
|
|
9
9
|
deleteProject: {};
|
|
10
|
-
updateProject: Partial<Omit<IProject, "id" | "plan" | "visibility" | "clicks" | "creationDate" | "lastConnection" | "stripeId" | "referrer" | "postedOnLinkedInAt" | "partner_swanbase" | "partner_iii"> & Omit<IContact, "email">>;
|
|
11
|
-
createUser: Omit<IUser, "id" | "plan" | "visibility" | "clicks" | "creationDate" | "lastConnection" | "stripeId" | "referrer"> & IContact & {
|
|
10
|
+
updateProject: Partial<Omit<IProject, "id" | "plan" | "visibility" | "clicks" | "creationDate" | "lastConnection" | "stripeId" | "referrer" | "postedOnLinkedInAt" | "partner_swanbase" | "partner_iii" | "complimentaryProGrantedAt" | "complimentaryProRevokedAt"> & Omit<IContact, "email">>;
|
|
11
|
+
createUser: Omit<IUser, "id" | "plan" | "visibility" | "clicks" | "creationDate" | "lastConnection" | "stripeId" | "referrer" | "complimentaryProGrantedAt" | "complimentaryProRevokedAt"> & IContact & {
|
|
12
12
|
newsletterMarketing?: boolean;
|
|
13
13
|
emailProspect: string;
|
|
14
14
|
};
|
|
15
15
|
deleteUser: {};
|
|
16
|
-
updateUser: Partial<Omit<IUser, "id" | "plan" | "visibility" | "clicks" | "creationDate" | "lastConnection" | "stripeId" | "referrer"> & Omit<IContact, "email">>;
|
|
16
|
+
updateUser: Partial<Omit<IUser, "id" | "plan" | "visibility" | "clicks" | "creationDate" | "lastConnection" | "stripeId" | "referrer" | "complimentaryProGrantedAt" | "complimentaryProRevokedAt"> & Omit<IContact, "email">>;
|
|
17
17
|
updateVisibility: {
|
|
18
18
|
visibility: TVisibility;
|
|
19
19
|
};
|
package/build/db.model.d.ts
CHANGED
|
@@ -47,6 +47,8 @@ export interface IUser {
|
|
|
47
47
|
photo?: string;
|
|
48
48
|
id: string;
|
|
49
49
|
plan: TPlan;
|
|
50
|
+
complimentaryProGrantedAt?: number;
|
|
51
|
+
complimentaryProRevokedAt?: number;
|
|
50
52
|
visibility: TVisibility;
|
|
51
53
|
clicks: IClicks;
|
|
52
54
|
creationDate: number;
|
|
@@ -74,6 +76,8 @@ export interface IProject {
|
|
|
74
76
|
logo?: string;
|
|
75
77
|
id: string;
|
|
76
78
|
plan: TPlan;
|
|
79
|
+
complimentaryProGrantedAt?: number;
|
|
80
|
+
complimentaryProRevokedAt?: number;
|
|
77
81
|
visibility: TVisibility;
|
|
78
82
|
clicks: IClicks;
|
|
79
83
|
creationDate: number;
|
|
@@ -141,7 +145,7 @@ export interface INotification {
|
|
|
141
145
|
body?: string;
|
|
142
146
|
link?: string;
|
|
143
147
|
}
|
|
144
|
-
export type IProspect = Partial<Omit<IUser, "id" | "plan" | "visibility" | "clicks" | "lastConnection" | "stripeId" | "photo" | 'availability'>> & Partial<Omit<IProject, "id" | "plan" | "visibility" | "clicks" | "lastConnection" | "stripeId" | "logo" | "postedOnLinkedInAt" | 'ambitions' | 'productTypes' | 'industries'>> & Partial<IContact> & {
|
|
148
|
+
export type IProspect = Partial<Omit<IUser, "id" | "plan" | "visibility" | "clicks" | "lastConnection" | "stripeId" | "photo" | 'availability' | "complimentaryProGrantedAt" | "complimentaryProRevokedAt">> & Partial<Omit<IProject, "id" | "plan" | "visibility" | "clicks" | "lastConnection" | "stripeId" | "logo" | "postedOnLinkedInAt" | 'ambitions' | 'productTypes' | 'industries' | "complimentaryProGrantedAt" | "complimentaryProRevokedAt">> & Partial<IContact> & {
|
|
145
149
|
email: string;
|
|
146
150
|
};
|
|
147
151
|
export type IReactionStatus = "like" | "dislike";
|