@bash-app/bash-common 17.7.0 → 17.7.1

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": "17.7.0",
3
+ "version": "17.7.1",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -484,13 +484,15 @@ model CustomBashEventType {
484
484
  }
485
485
 
486
486
  model AmountOfGuests {
487
- id String @id @default(cuid())
488
- bashEventId String @unique
489
- bashEvent BashEvent @relation(fields: [bashEventId], references: [id], onDelete: Cascade)
490
- minimum Int? @default(10)
491
- ideal Int? @default(35)
492
- showMinimumGuests Boolean @default(true)
493
- showIdealGuests Boolean @default(true)
487
+ id String @id @default(cuid())
488
+ bashEventId String? @unique
489
+ bashEvent BashEvent? @relation(fields: [bashEventId], references: [id], onDelete: Cascade)
490
+ venueId String? @unique
491
+ venue Venue? @relation(fields: [venueId], references: [id])
492
+ minimum Int? @default(10)
493
+ ideal Int? @default(35)
494
+ showMinimumGuests Boolean @default(true)
495
+ showIdealGuests Boolean @default(true)
494
496
  }
495
497
 
496
498
  enum Privacy {
@@ -862,7 +864,7 @@ model Venue {
862
864
  visibility VisibilityPreference @default(Public)
863
865
  yearsInBusiness YearsOfExperience
864
866
  description String?
865
- capacity Int?
867
+ capacity AmountOfGuests?
866
868
  amenities String[]
867
869
  additionalInfo String?
868
870
  features String[]
@@ -878,11 +880,11 @@ model Venue {
878
880
  cancellationPolicy String?
879
881
  refundPolicy String?
880
882
  safetyPolicy String?
881
- crowdSizeId String @unique
882
- crowdSize ServiceRange @relation("CrowdSize", fields: [crowdSizeId], references: [id], onDelete: Cascade)
883
- targetAudience VenueTargetAudience @relation("VenueTargetAudience", fields: [venueTargetAudienceId], references: [id])
883
+ crowdSizeId String? @unique
884
+ crowdSize ServiceRange? @relation("CrowdSize", fields: [crowdSizeId], references: [id], onDelete: Cascade)
885
+ venueTargetAudienceId String? @unique
886
+ targetAudience VenueTargetAudience? @relation("VenueTargetAudience", fields: [venueTargetAudienceId], references: [id])
884
887
  bashesInterestedIn BashEventType[]
885
- venueTargetAudienceId String @unique
886
888
  venueLinks ServiceLink[]
887
889
  }
888
890
 
@@ -129,12 +129,16 @@ export interface VenueExt extends Venue {
129
129
  targetAudience: VenueTargetAudience;
130
130
  venueLinks: ServiceLinkExt[];
131
131
  crowdSize: ServiceRange;
132
+ capacity?: AmountOfGuests;
132
133
  }
133
134
 
134
135
  export const VENUE_DATA_TO_INCLUDE = {
135
136
  service: true,
136
137
  availableDateTimes: true,
137
138
  targetAudience: true,
139
+ venueLinks: true,
140
+ crowdSize: true,
141
+ capacity: true,
138
142
  }
139
143
 
140
144
  export interface ServiceExt extends Service {