@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 +2 -3
- package/build/api.validate.js +2 -2
- package/build/db.model.d.ts +9 -2
- package/build/utils/index.d.ts +0 -1
- package/build/utils/index.js +0 -1
- package/package.json +1 -1
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
|
-
|
|
39
|
-
|
|
40
|
-
stripeNetSpendDeltaCents?: number;
|
|
38
|
+
stripeSpentCents?: number;
|
|
39
|
+
stripeRefundedCents?: number;
|
|
41
40
|
subscriptionCancellationFeedback?: string | null;
|
|
42
41
|
subscriptionCancellationComment?: string | null;
|
|
43
42
|
};
|
package/build/api.validate.js
CHANGED
|
@@ -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
|
-
|
|
176
|
-
|
|
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
|
}),
|
package/build/db.model.d.ts
CHANGED
|
@@ -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
|
|
99
|
-
|
|
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";
|
package/build/utils/index.d.ts
CHANGED
package/build/utils/index.js
CHANGED
|
@@ -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);
|