@cofondateurauchomage/libs 1.1.155 → 1.1.157
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 +3 -0
- package/build/api.validate.js +2 -0
- package/build/db.model.d.ts +1 -1
- package/package.json +1 -1
package/build/api.d.ts
CHANGED
|
@@ -31,9 +31,12 @@ export type BodyForO<O extends CloudFunctionNames | RouteNames> = {
|
|
|
31
31
|
updateMetaStripe: {
|
|
32
32
|
apiSecretKey: string;
|
|
33
33
|
stripeId: string;
|
|
34
|
+
stripeFirstPaidAt?: number;
|
|
34
35
|
stripeLastPaymentAt?: number;
|
|
35
36
|
stripeSubscriptionEndedAt?: number | null;
|
|
36
37
|
stripeCurrentPeriodEnd?: number | null;
|
|
38
|
+
/** Absolute net spend (migration backfill). Prefer `stripeNetSpendDeltaCents` for webhooks. */
|
|
39
|
+
stripeNetSpendCents?: number;
|
|
37
40
|
stripeNetSpendDeltaCents?: number;
|
|
38
41
|
subscriptionCancellationFeedback?: string | null;
|
|
39
42
|
subscriptionCancellationComment?: string | null;
|
package/build/api.validate.js
CHANGED
|
@@ -168,9 +168,11 @@ 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(),
|
|
171
172
|
stripeLastPaymentAt: zod_1.z.number().optional(),
|
|
172
173
|
stripeSubscriptionEndedAt: zod_1.z.union([zod_1.z.number(), zod_1.z.null()]).optional(),
|
|
173
174
|
stripeCurrentPeriodEnd: zod_1.z.union([zod_1.z.number(), zod_1.z.null()]).optional(),
|
|
175
|
+
stripeNetSpendCents: zod_1.z.number().int().optional(),
|
|
174
176
|
stripeNetSpendDeltaCents: zod_1.z.number().int().optional(),
|
|
175
177
|
subscriptionCancellationFeedback: zod_1.z.union([zod_1.z.string(), zod_1.z.null()]).optional(),
|
|
176
178
|
subscriptionCancellationComment: zod_1.z.union([zod_1.z.string(), zod_1.z.null()]).optional(),
|
package/build/db.model.d.ts
CHANGED
|
@@ -108,7 +108,7 @@ type ICrmUserProfileSnapshot = Omit<IUser, "photo" | "motivations" | "bestStreng
|
|
|
108
108
|
/** CRM mirror of `projects/{id}` without heavy assets or long text fields. */
|
|
109
109
|
type ICrmProjectProfileSnapshot = Omit<IProject, "logo" | "description" | "partner" | "status_detail" | "clicks">;
|
|
110
110
|
/** CRM pipeline column; computed server-side from profile + billing state. */
|
|
111
|
-
export type TCrmPipelineBucket = "
|
|
111
|
+
export type TCrmPipelineBucket = "prospect" | "inscrit" | "pro" | "ancien_pro";
|
|
112
112
|
interface ICrmProfileBase {
|
|
113
113
|
pipelineBucket: TCrmPipelineBucket;
|
|
114
114
|
searchText: string;
|