@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bash-app/bash-common",
3
- "version": "14.0.0",
3
+ "version": "14.2.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?
@@ -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[];