@bash-app/bash-common 14.0.0 → 14.2.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 +10 -1
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
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
ServiceTargetAudience,
|
|
14
14
|
Checkout,
|
|
15
15
|
ServiceLink,
|
|
16
|
-
Link,
|
|
16
|
+
Link, Venue, Availability,
|
|
17
17
|
} from "@prisma/client";
|
|
18
18
|
|
|
19
19
|
export const FRONT_END_USER_DATA_TO_SELECT = {
|
|
@@ -111,6 +111,15 @@ export const BASH_EVENT_DATA_TO_REMOVE: RemoveCommonProperties<BashEvent, BashEv
|
|
|
111
111
|
'tickets'
|
|
112
112
|
];
|
|
113
113
|
|
|
114
|
+
export interface VenueExt extends Venue {
|
|
115
|
+
service: Service;
|
|
116
|
+
availableDateTimes: Availability[];
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export const VENUE_DATA_TO_INCLUDE = {
|
|
120
|
+
availableDateTimes: true,
|
|
121
|
+
}
|
|
122
|
+
|
|
114
123
|
export interface ServiceExt extends Service {
|
|
115
124
|
owner: User;
|
|
116
125
|
media: Media[];
|