@bash-app/bash-common 27.2.9 → 27.2.11

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.2.9",
3
+ "version": "27.2.11",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -17,7 +17,7 @@ model Club {
17
17
  street String
18
18
  userId String
19
19
  price Int?
20
- events BashEvent[]
20
+ events BashEvent[]
21
21
  members ClubMember[]
22
22
  admin ClubAdmin[]
23
23
  }
@@ -900,6 +900,7 @@ model Service {
900
900
  // stripeServiceCustomerId String? @unique
901
901
  stripeBusinessId String @unique
902
902
  // stripeBusinessType String @default("Individual")
903
+ serviceType ServiceTypes
903
904
  creatorId String
904
905
  creator User @relation("CreatedService", fields: [creatorId], references: [id], onDelete: Cascade)
905
906
  dateCreated DateTime @default(now())
@@ -976,7 +977,7 @@ model VolunteerService {
976
977
  address String?
977
978
  email String?
978
979
  phone String?
979
- agreedToAgreement Boolean @default(false)
980
+ agreedToAgreement Boolean? @default(false)
980
981
  description String?
981
982
  status VolunteerServiceStatus?
982
983
  }
@@ -208,8 +208,7 @@ export const SERVICE_LINK_DATA_TO_INCLUDE = {
208
208
 
209
209
  export interface VenueExt extends Venue {
210
210
  service?: Service;
211
- availableDateTimes?: Availability[];
212
- agreedToAgreement: boolean;
211
+ availableDateTimes?: Availability[];
213
212
  targetAudience?: TargetAudience | null;
214
213
  links?: ServiceLinkExt[];
215
214
  coverPhotoUrl?: string;
@@ -252,7 +251,6 @@ export interface VolunteerServiceExt extends VolunteerService {
252
251
  address: string | null;
253
252
  email: string | null;
254
253
  phone: string | null;
255
- agreedToAgreement: boolean;
256
254
  description: string | null;
257
255
  status: VolunteerServiceStatus | null;
258
256
  }
@@ -260,11 +258,10 @@ export interface VolunteerServiceExt extends VolunteerService {
260
258
 
261
259
 
262
260
  export interface ServiceExt extends Service {
263
- owner: PublicUser;
261
+ owner?: PublicUser;
264
262
  media?: Media[];
265
263
  coverPhotoUrl?: string;
266
- targetAudience?: TargetAudience | null;
267
- agreedToAgreement: boolean;
264
+ targetAudience?: TargetAudience | null;
268
265
  volunteerService?: VolunteerService | null;
269
266
  serviceLinks?: ServiceLinkExt[];
270
267
  venues?: Venue[];