@bash-app/bash-common 14.1.0 → 14.3.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": "14.1.0",
3
+ "version": "14.3.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",
@@ -841,7 +841,7 @@ model Service {
841
841
 
842
842
  model Venue {
843
843
  id String @id @default(cuid())
844
- Service Service? @relation(fields: [serviceId], references: [id])
844
+ service Service? @relation(fields: [serviceId], references: [id])
845
845
  serviceId String?
846
846
  venueName String
847
847
  capacity Int?
@@ -112,10 +112,12 @@ export const BASH_EVENT_DATA_TO_REMOVE: RemoveCommonProperties<BashEvent, BashEv
112
112
  ];
113
113
 
114
114
  export interface VenueExt extends Venue {
115
+ service: Service;
115
116
  availableDateTimes: Availability[];
116
117
  }
117
118
 
118
119
  export const VENUE_DATA_TO_INCLUDE = {
120
+ service: true,
119
121
  availableDateTimes: true,
120
122
  }
121
123
 
@@ -126,6 +128,7 @@ export interface ServiceExt extends Service {
126
128
  serviceRange: ServiceRange;
127
129
  targetAudience: ServiceTargetAudience;
128
130
  serviceLinks?: ServiceLinkExt[];
131
+ venues: VenueExt[];
129
132
  }
130
133
 
131
134
  export interface ServiceLinkExt extends ServiceLink {
@@ -145,6 +148,9 @@ export const SERVICE_DATA_TO_INCLUDE = {
145
148
  serviceRange: true,
146
149
  serviceLinks: {
147
150
  include: SERVICE_LINK_DATA_TO_INCLUDE
151
+ },
152
+ venues: {
153
+ include: VENUE_DATA_TO_INCLUDE
148
154
  }
149
155
  }
150
156