@iveri/contracts 0.111.0 → 0.113.0

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.
@@ -41,6 +41,11 @@ export interface ClinicAppointment {
41
41
  /** Until when the slot is held for an unpaid deposit. */
42
42
  depositExpiresAt: Nullable<IsoDateTime>;
43
43
  depositPaidAt: Nullable<IsoDateTime>;
44
+ /**
45
+ * When the visit was cancelled, by anybody or by an unpaid deposit releasing it. A deposit paid after this landed on
46
+ * a visit that was no longer happening.
47
+ */
48
+ cancelledAt: Nullable<IsoDateTime>;
44
49
  lines: ClinicAppointmentLine[];
45
50
  note: Nullable<string>;
46
51
  createdAt: IsoDateTime;
@@ -27,6 +27,11 @@ export interface MyClinicAppointment {
27
27
  /** Until when the slot is held for an unpaid deposit. */
28
28
  depositExpiresAt: Nullable<IsoDateTime>;
29
29
  depositPaidAt: Nullable<IsoDateTime>;
30
+ /**
31
+ * When the visit was cancelled, by anybody or by an unpaid deposit releasing it. A deposit paid after this landed on
32
+ * a visit that was no longer happening.
33
+ */
34
+ cancelledAt: Nullable<IsoDateTime>;
30
35
  lines: ClinicAppointmentLine[];
31
36
  note: Nullable<string>;
32
37
  /** Whether the clinic's rules still let this client cancel it themselves. */
@@ -5,6 +5,7 @@ import type { LocalizedText } from '../clinic/localized-text.type.js';
5
5
  import type { GymBookingStatus } from './gym-booking-status.enum.js';
6
6
  import type { GymMediaImage } from './gym-common.type.js';
7
7
  import type { GymResourceStatus } from './gym-resource-status.enum.js';
8
+ import type { GymSessionCancelledBy } from './gym-session-cancelled-by.enum.js';
8
9
  import type { GymSessionKind } from './gym-session-kind.enum.js';
9
10
  import type { GymSessionStatus } from './gym-session-status.enum.js';
10
11
  /** "Tuesdays at 18:00 in Studio 2 with this trainer", in the branch's own wall-clock time. */
@@ -60,7 +61,13 @@ export interface GymSession {
60
61
  bookedCount: number;
61
62
  waitlistCount: number;
62
63
  status: GymSessionStatus;
64
+ /** What a person typed when calling the session off. Null when nobody did, as when its one place was given up. */
63
65
  cancelReason: Nullable<string>;
66
+ /**
67
+ * Who gave up a personal session's one place, which called it off. Null on a session still on and on one the gym
68
+ * called off as a whole, which carries `cancelReason`. Clients translate it; they never match reason text.
69
+ */
70
+ cancelledBy: Nullable<GymSessionCancelledBy>;
64
71
  templateId: Nullable<UUID>;
65
72
  createdAt: IsoDateTime;
66
73
  updatedAt: IsoDateTime;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Who called a personal session off by giving up its one place. A class, or a session the gym called off as a whole,
3
+ * names nobody here: it carries the reason the person typed instead.
4
+ */
5
+ export declare enum GymSessionCancelledBy {
6
+ MEMBER = "member",
7
+ GYM = "gym"
8
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Who called a personal session off by giving up its one place. A class, or a session the gym called off as a whole,
3
+ * names nobody here: it carries the reason the person typed instead.
4
+ */
5
+ export var GymSessionCancelledBy;
6
+ (function (GymSessionCancelledBy) {
7
+ GymSessionCancelledBy["MEMBER"] = "member";
8
+ GymSessionCancelledBy["GYM"] = "gym";
9
+ })(GymSessionCancelledBy || (GymSessionCancelledBy = {}));
@@ -36,6 +36,7 @@ export * from './gym-report.type.js';
36
36
  export * from './gym-resource-status.enum.js';
37
37
  export * from './gym-room.type.js';
38
38
  export * from './gym-schedule.type.js';
39
+ export * from './gym-session-cancelled-by.enum.js';
39
40
  export * from './gym-session-kind.enum.js';
40
41
  export * from './gym-session-status.enum.js';
41
42
  export * from './gym-signature-method.enum.js';
@@ -36,6 +36,7 @@ export * from './gym-report.type.js';
36
36
  export * from './gym-resource-status.enum.js';
37
37
  export * from './gym-room.type.js';
38
38
  export * from './gym-schedule.type.js';
39
+ export * from './gym-session-cancelled-by.enum.js';
39
40
  export * from './gym-session-kind.enum.js';
40
41
  export * from './gym-session-status.enum.js';
41
42
  export * from './gym-signature-method.enum.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iveri/contracts",
3
- "version": "0.111.0",
3
+ "version": "0.113.0",
4
4
  "description": "Wire contracts shared by every Iveri backend and frontend. Zero runtime dependencies.",
5
5
  "license": "MIT",
6
6
  "repository": {