@bash-app/bash-common 27.0.1 → 27.0.3

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.1",
3
+ "version": "27.0.3",
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,
@@ -237,7 +237,7 @@ export interface VolunteerServiceExt extends VolunteerService {
237
237
 
238
238
 
239
239
  export interface ServiceExt extends Service {
240
- owner?: PublicUser;
240
+ owner: PublicUser;
241
241
  media?: Media[];
242
242
  targetAudience?: TargetAudience | null;
243
243
  volunteerService?: VolunteerService | null;
@@ -250,6 +250,8 @@ export interface ServiceExt extends Service {
250
250
  sponsors?: Sponsor[];
251
251
  organizations?: Organization[];
252
252
  bookings?: Booking[];
253
+ type?: keyof typeof ServiceTypes; // Add this line to include the service type
254
+
253
255
  }
254
256
 
255
257