@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 +1 -1
- package/prisma/schema.prisma +1 -1
- package/src/extendedSchemas.ts +6 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -841,7 +841,7 @@ model Service {
|
|
|
841
841
|
|
|
842
842
|
model Venue {
|
|
843
843
|
id String @id @default(cuid())
|
|
844
|
-
|
|
844
|
+
service Service? @relation(fields: [serviceId], references: [id])
|
|
845
845
|
serviceId String?
|
|
846
846
|
venueName String
|
|
847
847
|
capacity Int?
|
package/src/extendedSchemas.ts
CHANGED
|
@@ -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
|
|