@bash-app/bash-common 26.1.0 → 26.1.2
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 +8 -11
- package/src/extendedSchemas.ts +3 -31
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -1187,22 +1187,20 @@ model Venue {
|
|
|
1187
1187
|
serviceId String
|
|
1188
1188
|
serviceConnectionId String?
|
|
1189
1189
|
serviceConnection String?
|
|
1190
|
-
venueName String
|
|
1191
|
-
email String
|
|
1192
|
-
street String
|
|
1193
|
-
city String
|
|
1194
|
-
state String
|
|
1195
|
-
zipCode String
|
|
1196
|
-
country String
|
|
1197
|
-
phone String
|
|
1190
|
+
venueName String?
|
|
1191
|
+
email String?
|
|
1192
|
+
street String?
|
|
1193
|
+
city String?
|
|
1194
|
+
state String?
|
|
1195
|
+
zipCode String?
|
|
1196
|
+
country String?
|
|
1197
|
+
phone String?
|
|
1198
1198
|
coverPhoto String?
|
|
1199
1199
|
media Media[]
|
|
1200
1200
|
visibility VisibilityPreference @default(Public)
|
|
1201
1201
|
status ServiceStatus @default(Draft)
|
|
1202
1202
|
yearsInBusiness YearsOfExperience @default(LessThanOneYear)
|
|
1203
1203
|
description String?
|
|
1204
|
-
serviceRangeId String @unique
|
|
1205
|
-
serviceRange ServiceRange @relation(fields: [serviceRangeId], references: [id], onDelete: Cascade)
|
|
1206
1204
|
amenities String[]
|
|
1207
1205
|
menuItems String?
|
|
1208
1206
|
additionalInfo String?
|
|
@@ -1342,7 +1340,6 @@ model ServiceRange {
|
|
|
1342
1340
|
min Int @default(0)
|
|
1343
1341
|
max Int @default(50)
|
|
1344
1342
|
volunteerServices VolunteerService[]
|
|
1345
|
-
venue Venue?
|
|
1346
1343
|
}
|
|
1347
1344
|
|
|
1348
1345
|
model Availability {
|
package/src/extendedSchemas.ts
CHANGED
|
@@ -189,25 +189,14 @@ export const SERVICE_LINK_DATA_TO_INCLUDE = {
|
|
|
189
189
|
|
|
190
190
|
export interface VenueExt extends Venue {
|
|
191
191
|
service?: Service;
|
|
192
|
-
availableDateTimes
|
|
192
|
+
availableDateTimes?: Availability[];
|
|
193
193
|
targetAudience?: TargetAudience | null;
|
|
194
|
-
links
|
|
195
|
-
serviceRange
|
|
194
|
+
links?: ServiceLinkExt[];
|
|
195
|
+
serviceRange?: ServiceRange;
|
|
196
196
|
media?: Media[];
|
|
197
197
|
amountOfGuests?: AmountOfGuests | null; // Reflecting the correct relation with AmountOfGuests
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
export const VENUE_DATA_TO_INCLUDE = {
|
|
201
|
-
availableDateTimes: true,
|
|
202
|
-
targetAudience: true,
|
|
203
|
-
links: {
|
|
204
|
-
include: SERVICE_LINK_DATA_TO_INCLUDE
|
|
205
|
-
},
|
|
206
|
-
media: true,
|
|
207
|
-
serviceRange: true,
|
|
208
|
-
amountOfGuests: true,
|
|
209
|
-
} satisfies Prisma.VenueInclude;
|
|
210
|
-
|
|
211
200
|
export const VOLUNTEER_DATA_TO_INCLUDE = {
|
|
212
201
|
links: {
|
|
213
202
|
include: {
|
|
@@ -264,23 +253,6 @@ export interface ServiceExt extends Service {
|
|
|
264
253
|
bookings?: Booking[];
|
|
265
254
|
}
|
|
266
255
|
|
|
267
|
-
export const BUSINESS_DATA_TO_INCLUDE = {
|
|
268
|
-
owner: {
|
|
269
|
-
select: FRONT_END_USER_DATA_TO_SELECT,
|
|
270
|
-
},
|
|
271
|
-
media: true,
|
|
272
|
-
targetAudience: true,
|
|
273
|
-
serviceLinks: {
|
|
274
|
-
include: SERVICE_LINK_DATA_TO_INCLUDE,
|
|
275
|
-
},
|
|
276
|
-
venues: {
|
|
277
|
-
include: VENUE_DATA_TO_INCLUDE,
|
|
278
|
-
},
|
|
279
|
-
vendors: {
|
|
280
|
-
include: VENDOR_DATA_TO_INCLUDE,
|
|
281
|
-
},
|
|
282
|
-
}
|
|
283
|
-
|
|
284
256
|
|
|
285
257
|
export interface ServiceLinkExt extends ServiceLink {
|
|
286
258
|
link: Link;
|