@koma-app/core 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +11 -0
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -32,6 +32,8 @@ export type AgendaCourse = {
32
32
  };
33
33
  export type MyReservation = {
34
34
  createdAt: string;
35
+ /** Moyen de paiement de la résa. « credit » : l'annulation dans le délai est immédiate (API ≥ 04/10/2026). */
36
+ paymentMethod?: "onsite" | "card" | "credit";
35
37
  cancellationRequestedAt: string | null;
36
38
  };
37
39
  export type MyCredits = {
@@ -102,7 +104,16 @@ export type CreditPaymentResult = {
102
104
  creditsLeft: number;
103
105
  nextExpiresAt: string | null;
104
106
  };
107
+ /** `cancelled: true` : résa par crédit annulée tout de suite, crédit rendu. Sinon, demande transmise au studio. */
105
108
  export type CancellationResult = {
106
109
  success: true;
110
+ cancelled: true;
111
+ recredit: {
112
+ extended: boolean;
113
+ expiresAt: string;
114
+ } | null;
115
+ } | {
116
+ success: true;
117
+ cancelled?: false;
107
118
  cancellationRequestedAt: string;
108
119
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koma-app/core",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Client typé, types et formateurs du storefront Koma — sans React.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Koma <contact@koma-app.fr>",