@bash-app/bash-common 23.2.0 → 23.4.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": "23.2.0",
3
+ "version": "23.4.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",
@@ -673,16 +673,15 @@ enum InvestmentType {
673
673
  }
674
674
 
675
675
  model Link {
676
- id String @id @default(cuid())
677
- url String
678
- type String?
679
- icon String?
680
- eventLinks EventLink[]
681
- userLinks UserLink[]
682
- serviceLinks ServiceLink[]
683
- volunteerServiceId String?
684
- volunteerService VolunteerService? @relation("VolunteerServiceLinks", fields: [volunteerServiceId], references: [id])
685
-
676
+ id String @id @default(cuid())
677
+ url String
678
+ type String?
679
+ icon String?
680
+ eventLinks EventLink[]
681
+ userLinks UserLink[]
682
+ serviceLinks ServiceLink[]
683
+ volunteerServiceId String?
684
+ volunteerService VolunteerService? @relation("VolunteerServiceLinks", fields: [volunteerServiceId], references: [id])
686
685
  }
687
686
 
688
687
  model Media {
@@ -706,9 +705,8 @@ model Media {
706
705
  sponsorId String?
707
706
  organization Organization? @relation(fields: [organizationId], references: [id])
708
707
  organizationId String?
709
- volunteerServiceId String?
710
- volunteerService VolunteerService? @relation("VolunteerServiceMedia", fields: [volunteerServiceId], references: [id])
711
-
708
+ volunteerServiceId String?
709
+ volunteerService VolunteerService? @relation("VolunteerServiceMedia", fields: [volunteerServiceId], references: [id])
712
710
  }
713
711
 
714
712
  enum MediaType {
@@ -928,15 +926,18 @@ model Business {
928
926
  }
929
927
 
930
928
  model VolunteerService {
931
- id String @id @default(cuid())
932
- businessId String @unique
933
- business Business @relation(fields: [businessId], references: [id])
934
- serviceRangeId String?
935
- serviceRange ServiceRange? @relation(fields: [serviceRangeId], references: [id])
936
- media Media[] @relation("VolunteerServiceMedia")
937
- links Link[] @relation("VolunteerServiceLinks")
938
- availableDateTimes Availability[] @relation("AvailableDateTimes")
939
- fullName String?
929
+ id String @id @default(cuid())
930
+ businessId String @unique
931
+ business Business @relation(fields: [businessId], references: [id])
932
+ serviceRangeId String?
933
+ serviceRange ServiceRange? @relation(fields: [serviceRangeId], references: [id])
934
+ media Media[] @relation("VolunteerServiceMedia")
935
+ links Link[] @relation("VolunteerServiceLinks")
936
+ availableDateTimes Availability[] @relation("AvailableDateTimes")
937
+ fullName String?
938
+ address String?
939
+ email String?
940
+ phone String?
940
941
  }
941
942
 
942
943
  model EventService {
@@ -1289,11 +1290,11 @@ enum YearsOfExperience {
1289
1290
  }
1290
1291
 
1291
1292
  model ServiceRange {
1292
- id String @id @default(cuid())
1293
- min Int @default(0)
1294
- max Int @default(50)
1295
- volunteerServices VolunteerService[]
1296
- venue Venue?
1293
+ id String @id @default(cuid())
1294
+ min Int @default(0)
1295
+ max Int @default(50)
1296
+ volunteerServices VolunteerService[]
1297
+ venue Venue?
1297
1298
  }
1298
1299
 
1299
1300
  model Availability {
@@ -1314,7 +1315,7 @@ model Availability {
1314
1315
  sponsor Sponsor? @relation("AvailableDateTimes", fields: [sponsorId], references: [id])
1315
1316
  organizationId String?
1316
1317
  organization Organization? @relation("AvailableDateTimes", fields: [organizationId], references: [id])
1317
- volunteerServiceId String?
1318
+ volunteerServiceId String?
1318
1319
  volunteerService VolunteerService? @relation("AvailableDateTimes", fields: [volunteerServiceId], references: [id])
1319
1320
  }
1320
1321
 
@@ -1409,3 +1410,14 @@ model ServiceLink {
1409
1410
 
1410
1411
  @@index([businessId])
1411
1412
  }
1413
+
1414
+ enum ServiceTypes {
1415
+ Volunteer
1416
+ EventService
1417
+ EntertainmentService
1418
+ Vendor
1419
+ Exhibitor
1420
+ Sponsor
1421
+ Venue
1422
+ Organization
1423
+ }
@@ -238,6 +238,9 @@ export interface VolunteerServiceExt extends VolunteerService {
238
238
  links?: Link[];
239
239
  availableDateTimes?: Availability[];
240
240
  fullName: string | null;
241
+ address: string | null;
242
+ email: string | null;
243
+ phone: string | null;
241
244
  }
242
245
 
243
246