@cofondateurauchomage/libs 1.1.141 → 1.1.142
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/db.model.d.ts +12 -11
- package/build/db.model.js +1 -0
- package/package.json +1 -1
package/build/db.model.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare enum Collections {
|
|
|
9
9
|
reactions = "reactions",
|
|
10
10
|
visits = "visits",
|
|
11
11
|
blogHtmlArticles = "blog_html_articles",
|
|
12
|
+
stripe_metas = "stripe_metas",
|
|
12
13
|
crm_profiles = "crm_profiles"
|
|
13
14
|
}
|
|
14
15
|
export type TSkill = "Sales" | "Operation" | "Design" | "Marketing" | "Produit" | "Tech" | "Growth" | "Finance";
|
|
@@ -83,14 +84,8 @@ export interface IProject {
|
|
|
83
84
|
partner_swanbase?: boolean;
|
|
84
85
|
partner_iii?: boolean;
|
|
85
86
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
* Document id = canonicalId: `user:{uid}` | `project:{uid}` | `prospect:{docId}` under collection `crm_profiles`.
|
|
89
|
-
*/
|
|
90
|
-
export interface ICrmProfile {
|
|
91
|
-
lastTeamCallAt?: number;
|
|
92
|
-
foundPartner?: boolean;
|
|
93
|
-
/** Stripe infos */
|
|
87
|
+
export interface IStripeMeta {
|
|
88
|
+
stripeId?: string;
|
|
94
89
|
/** First successful invoice payment tied to subscriptions (unix ms). */
|
|
95
90
|
stripeFirstPaidAt?: number;
|
|
96
91
|
/** Last successful invoice payment (unix ms). */
|
|
@@ -104,9 +99,15 @@ export interface ICrmProfile {
|
|
|
104
99
|
/** Stripe `cancellation_details.feedback`. */
|
|
105
100
|
subscriptionCancellationFeedback?: string;
|
|
106
101
|
subscriptionCancellationComment?: string;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* CRM-side state: team actions, Stripe sync, billing overlay.
|
|
105
|
+
* Document id = canonicalId: `prospect:{docId}` | `user:{docId}` | `project:{docId}` under collection `crm_profiles`.
|
|
106
|
+
*/
|
|
107
|
+
export interface ICrmProfile {
|
|
108
|
+
type: "prospect" | "user" | "project";
|
|
109
|
+
lastTeamCallAt?: number;
|
|
110
|
+
foundPartner?: boolean;
|
|
110
111
|
}
|
|
111
112
|
export interface ICrmNote {
|
|
112
113
|
text: string;
|
package/build/db.model.js
CHANGED
|
@@ -13,5 +13,6 @@ var Collections;
|
|
|
13
13
|
Collections["reactions"] = "reactions";
|
|
14
14
|
Collections["visits"] = "visits";
|
|
15
15
|
Collections["blogHtmlArticles"] = "blog_html_articles";
|
|
16
|
+
Collections["stripe_metas"] = "stripe_metas";
|
|
16
17
|
Collections["crm_profiles"] = "crm_profiles";
|
|
17
18
|
})(Collections || (exports.Collections = Collections = {}));
|