@iveri/contracts 0.60.0 → 0.62.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.
@@ -32,13 +32,19 @@ export interface GymMyProfile {
32
32
  export interface JoinGymRequest {
33
33
  firstName: string;
34
34
  lastName: string;
35
+ email: string;
35
36
  phone?: Nullable<string>;
36
37
  birthDate?: Nullable<string>;
37
38
  homeBranchId: UUID;
38
39
  }
40
+ /** Ties the signed-in account to the record the desk already holds. */
41
+ export interface LinkGymMemberRequest {
42
+ code: string;
43
+ }
39
44
  export interface UpdateGymMyProfileRequest {
40
45
  firstName?: string;
41
46
  lastName?: string;
47
+ email?: string;
42
48
  phone?: Nullable<string>;
43
49
  birthDate?: Nullable<string>;
44
50
  homeBranchId?: UUID;
@@ -91,6 +97,12 @@ export interface GymMyBooking {
91
97
  /** Cancelling now would keep what the booking cost. */
92
98
  isLateCancel: boolean;
93
99
  }
100
+ export interface CreateMyGymPersonalSessionRequest {
101
+ branchId: UUID;
102
+ trainerId: UUID;
103
+ startsAt: IsoDateTime;
104
+ durationMinutes?: number;
105
+ }
94
106
  export interface GymMyVisit {
95
107
  id: UUID;
96
108
  branchId: UUID;
@@ -53,3 +53,8 @@ export interface CreateGymMemberRequest {
53
53
  export type UpdateGymMemberRequest = Partial<CreateGymMemberRequest> & {
54
54
  status?: GymResourceStatus;
55
55
  };
56
+ /** A short code the desk gives somebody already on the books, which ties their app account to that record. */
57
+ export interface GymMemberInvite {
58
+ code: string;
59
+ expiresAt: IsoDateTime;
60
+ }
@@ -80,6 +80,14 @@ export interface GymBooking {
80
80
  createdAt: IsoDateTime;
81
81
  updatedAt: IsoDateTime;
82
82
  }
83
+ /** A booking seen from the member's side, for their page in the panel. */
84
+ export interface GymMemberBooking {
85
+ id: UUID;
86
+ status: GymBookingStatus;
87
+ spotNumber: Nullable<number>;
88
+ waitlistPosition: Nullable<number>;
89
+ session: GymSession;
90
+ }
83
91
  export interface GymSessionDetail extends GymSession {
84
92
  bookings: GymBooking[];
85
93
  }
@@ -39,6 +39,8 @@ export interface RestaurantKitchenBoard {
39
39
  warnMinutes: number;
40
40
  lateMinutes: number;
41
41
  tickets: RestaurantKitchenTicket[];
42
+ /** Tickets just finished, so one can be called back. */
43
+ recent: RestaurantKitchenTicket[];
42
44
  allDay: RestaurantAllDayCount[];
43
45
  }
44
46
  /** Moves every line of a ticket on together. */
@@ -106,6 +106,7 @@ export interface PublicRestaurantTableOrderLine {
106
106
  status: RestaurantLineStatus;
107
107
  }
108
108
  export interface PublicRestaurantTableOrder {
109
+ id: UUID;
109
110
  number: number;
110
111
  status: RestaurantOrderStatus;
111
112
  placedAt: string;
@@ -124,6 +125,10 @@ export interface PublicRestaurantTableBill {
124
125
  orders: PublicRestaurantTableOrder[];
125
126
  openRequests: RestaurantServiceRequestKind[];
126
127
  }
128
+ /** What a table has at the moment. No open bill is an ordinary answer: nobody has ordered yet. */
129
+ export interface PublicRestaurantTableState {
130
+ bill: PublicRestaurantTableBill | null;
131
+ }
127
132
  export interface PublicRestaurantServiceRequestBody {
128
133
  kind: RestaurantServiceRequestKind;
129
134
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iveri/contracts",
3
- "version": "0.60.0",
3
+ "version": "0.62.0",
4
4
  "description": "Wire contracts shared by every Iveri backend and frontend. Zero runtime dependencies.",
5
5
  "license": "MIT",
6
6
  "repository": {