@cofondateurauchomage/libs 1.1.157 → 1.1.160

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
@@ -35,9 +35,8 @@ export type BodyForO<O extends CloudFunctionNames | RouteNames> = {
35
35
  stripeLastPaymentAt?: number;
36
36
  stripeSubscriptionEndedAt?: number | null;
37
37
  stripeCurrentPeriodEnd?: number | null;
38
- /** Absolute net spend (migration backfill). Prefer `stripeNetSpendDeltaCents` for webhooks. */
39
- stripeNetSpendCents?: number;
40
- stripeNetSpendDeltaCents?: number;
38
+ stripeSpentCents?: number;
39
+ stripeRefundedCents?: number;
41
40
  subscriptionCancellationFeedback?: string | null;
42
41
  subscriptionCancellationComment?: string | null;
43
42
  };
@@ -172,8 +172,8 @@ const schemasForAllRoutes = {
172
172
  stripeLastPaymentAt: zod_1.z.number().optional(),
173
173
  stripeSubscriptionEndedAt: zod_1.z.union([zod_1.z.number(), zod_1.z.null()]).optional(),
174
174
  stripeCurrentPeriodEnd: zod_1.z.union([zod_1.z.number(), zod_1.z.null()]).optional(),
175
- stripeNetSpendCents: zod_1.z.number().int().optional(),
176
- stripeNetSpendDeltaCents: zod_1.z.number().int().optional(),
175
+ stripeSpentCents: zod_1.z.number().int().optional(),
176
+ stripeRefundedCents: zod_1.z.number().int().optional(),
177
177
  subscriptionCancellationFeedback: zod_1.z.union([zod_1.z.string(), zod_1.z.null()]).optional(),
178
178
  subscriptionCancellationComment: zod_1.z.union([zod_1.z.string(), zod_1.z.null()]).optional(),
179
179
  }),
@@ -95,11 +95,15 @@ export interface IStripeMeta {
95
95
  stripeSubscriptionEndedAt?: number;
96
96
  /** Stripe `current_period_end` for the active subscription (unix ms); cleared when no active sub. */
97
97
  stripeCurrentPeriodEnd?: number;
98
- /** Lifetime net cents (invoice payments − refunds handled via deltas from webhooks). */
99
- stripeNetSpendCents?: number;
98
+ /** Lifetime total spent cents. */
99
+ stripeTotalSpentCents?: number;
100
+ /** Lifetime total refunded cents. */
101
+ stripeTotalRefundedCents?: number;
100
102
  /** Stripe `cancellation_details.feedback`. */
101
103
  subscriptionCancellationFeedback?: string;
102
104
  subscriptionCancellationComment?: string;
105
+ /** Origin of the checkout session (e.g. "Page abonnement", "Page profil", "Page recherche", etc.). */
106
+ checkoutOrigin?: string;
103
107
  }
104
108
  /** CRM mirror of `prospects/{id}` without heavy assets or long text fields. */
105
109
  type ICrmProspectProfileSnapshot = Omit<IProspect, "motivations" | "bestStrength" | "partner" | "business" | "description" | "status_detail">;
@@ -115,6 +119,9 @@ interface ICrmProfileBase {
115
119
  /** 0 if not called */
116
120
  lastTeamCallAt: number;
117
121
  foundPartner?: boolean;
122
+ hasStripe?: boolean;
123
+ hasTel?: boolean;
124
+ hasLinkedin?: boolean;
118
125
  }
119
126
  export interface ICrmProfileProspect extends ICrmProfileBase {
120
127
  type: "prospect";
@@ -1,5 +1,4 @@
1
1
  export * from "./arrayUtils";
2
- export * from "./crmSearchText";
3
2
  export * from "./errorUtils";
4
3
  export * from "./objectUtils";
5
4
  export * from "./stringUtils";
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./arrayUtils"), exports);
18
- __exportStar(require("./crmSearchText"), exports);
19
18
  __exportStar(require("./errorUtils"), exports);
20
19
  __exportStar(require("./objectUtils"), exports);
21
20
  __exportStar(require("./stringUtils"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cofondateurauchomage/libs",
3
- "version": "1.1.157",
3
+ "version": "1.1.160",
4
4
  "description": "",
5
5
  "main": "build/index",
6
6
  "scripts": {