@bash-app/bash-common 27.0.0 → 27.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bash-app/bash-common",
3
- "version": "27.0.0",
3
+ "version": "27.0.2",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -24,7 +24,7 @@ import {
24
24
  Booking,
25
25
  VolunteerService, Prisma, ServiceRange,
26
26
  } from "@prisma/client";
27
- import {UnionFromArray} from "./definitions";
27
+ import {ServiceTypes, UnionFromArray} from "./definitions";
28
28
 
29
29
  export const FRONT_END_USER_DATA_TO_SELECT = {
30
30
  id: true,
@@ -192,7 +192,6 @@ export interface VenueExt extends Venue {
192
192
  availableDateTimes?: Availability[];
193
193
  targetAudience?: TargetAudience | null;
194
194
  links?: ServiceLinkExt[];
195
- serviceRange?: ServiceRange;
196
195
  media?: Media[];
197
196
  amountOfGuests?: AmountOfGuests | null; // Reflecting the correct relation with AmountOfGuests
198
197
  }
@@ -251,6 +250,8 @@ export interface ServiceExt extends Service {
251
250
  sponsors?: Sponsor[];
252
251
  organizations?: Organization[];
253
252
  bookings?: Booking[];
253
+ type?: keyof typeof ServiceTypes; // Add this line to include the service type
254
+
254
255
  }
255
256
 
256
257