@bash-app/bash-common 29.9.0 → 29.11.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bash-app/bash-common",
3
- "version": "29.9.0",
3
+ "version": "29.11.0",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -199,20 +199,20 @@ export interface NumberOfHoursForDate {
199
199
  bookingDateTime: DateTimeArgType;
200
200
  }
201
201
 
202
- // export interface AvailableNumberOfHoursForRate {
203
- // rate: Rate;
204
- // availableHours: NumberOfHoursForDate[];
205
- // }
202
+ export interface AvailableNumberOfHoursForRate {
203
+ rate: Rate;
204
+ availableHours: NumberOfHoursForDate[];
205
+ }
206
206
 
207
207
  export interface AvailableHoursForRateForDate {
208
208
  rate: Rate,
209
209
  availableHoursForDate: NumberOfHoursForDate;
210
210
  }
211
211
 
212
- // export interface AvailableHoursForRate {
213
- // rate: Rate;
214
- // availableHours: NumberOfHoursForDate[];
215
- // }
212
+ export interface AvailableHoursForRate {
213
+ rate: Rate;
214
+ availableHours: NumberOfHoursForDate[];
215
+ }
216
216
 
217
217
  export interface SignInEmailWithPassword {
218
218
  email: string;
@@ -25,6 +25,7 @@ import {
25
25
  VisibilityPreference,
26
26
  BashEventType,
27
27
  Coordinates,
28
+ Rate,
28
29
  } from "@prisma/client";
29
30
  import { UnionFromArray } from "./definitions";
30
31
 
@@ -160,6 +161,7 @@ export interface ServiceExt extends Service {
160
161
  availableDateTimes?: Availability[];
161
162
 
162
163
  bookings?: Booking[];
164
+ rates?: Rate[];
163
165
  targetAudience?: TargetAudience;
164
166
  media?: Media[];
165
167
  serviceLinks?: ServiceLinkExt[];