@cofondateurauchomage/libs 1.1.156 → 1.1.159

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,10 +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;
37
- stripeNetSpendDeltaCents?: number;
38
+ stripeSpentCents?: number;
39
+ stripeRefundedCents?: number;
38
40
  subscriptionCancellationFeedback?: string | null;
39
41
  subscriptionCancellationComment?: string | null;
40
42
  };
@@ -168,10 +168,12 @@ 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(),
174
- stripeNetSpendDeltaCents: zod_1.z.number().int().optional(),
175
+ stripeSpentCents: zod_1.z.number().int().optional(),
176
+ stripeRefundedCents: 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(),
177
179
  }),
@@ -95,8 +95,10 @@ 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;
@@ -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.156",
3
+ "version": "1.1.159",
4
4
  "description": "",
5
5
  "main": "build/index",
6
6
  "scripts": {