@cofondateurauchomage/libs 1.1.140 → 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/api.d.ts CHANGED
@@ -31,7 +31,6 @@ export type BodyForO<O extends CloudFunctionNames | RouteNames> = {
31
31
  updateMetaStripe: {
32
32
  apiSecretKey: string;
33
33
  stripeId: string;
34
- stripeFirstPaidAt?: number;
35
34
  stripeLastPaymentAt?: number;
36
35
  stripeSubscriptionEndedAt?: number | null;
37
36
  stripeCurrentPeriodEnd?: number | null;
@@ -168,7 +168,6 @@ const schemasForAllRoutes = {
168
168
  updateMetaStripe: zod_1.z.object({
169
169
  apiSecretKey: zod_1.z.string(),
170
170
  stripeId: zStrMax50,
171
- stripeFirstPaidAt: zod_1.z.number().optional(),
172
171
  stripeLastPaymentAt: zod_1.z.number().optional(),
173
172
  stripeSubscriptionEndedAt: zod_1.z.union([zod_1.z.number(), zod_1.z.null()]).optional(),
174
173
  stripeCurrentPeriodEnd: zod_1.z.union([zod_1.z.number(), zod_1.z.null()]).optional(),
@@ -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
- * CRM-side state: team actions, Stripe sync, billing overlay.
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
- /** Team-granted Pro (unix ms); orthogonal to Stripe. */
108
- complimentaryProGrantedAt?: number;
109
- complimentaryProRevokedAt?: number;
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 = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cofondateurauchomage/libs",
3
- "version": "1.1.140",
3
+ "version": "1.1.142",
4
4
  "description": "",
5
5
  "main": "build/index",
6
6
  "scripts": {