@bash-app/bash-common 27.2.8 → 27.2.10
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 +50 -51
- package/src/extendedSchemas.ts +3 -7
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -235,7 +235,7 @@ model BashEvent {
|
|
|
235
235
|
subtitle String?
|
|
236
236
|
isFeatured Boolean?
|
|
237
237
|
isTrending Boolean?
|
|
238
|
-
stripeAccount
|
|
238
|
+
stripeAccount StripeAccount[]
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
model Checkout {
|
|
@@ -564,12 +564,12 @@ enum Privacy {
|
|
|
564
564
|
}
|
|
565
565
|
|
|
566
566
|
model TargetAudience {
|
|
567
|
-
id
|
|
568
|
-
ageRange
|
|
569
|
-
gender
|
|
570
|
-
occupation
|
|
571
|
-
education
|
|
572
|
-
showOnDetailPage
|
|
567
|
+
id String @id @default(cuid())
|
|
568
|
+
ageRange AgeRange @default(NoPreference)
|
|
569
|
+
gender Gender @default(NoPreference)
|
|
570
|
+
occupation Occupation @default(NoPreference)
|
|
571
|
+
education Education @default(NoPreference)
|
|
572
|
+
showOnDetailPage Boolean @default(true)
|
|
573
573
|
bashEvent BashEvent?
|
|
574
574
|
service Service?
|
|
575
575
|
venue Venue?
|
|
@@ -904,6 +904,7 @@ model Service {
|
|
|
904
904
|
creator User @relation("CreatedService", fields: [creatorId], references: [id], onDelete: Cascade)
|
|
905
905
|
dateCreated DateTime @default(now())
|
|
906
906
|
email String
|
|
907
|
+
place String?
|
|
907
908
|
street String
|
|
908
909
|
city String
|
|
909
910
|
state String
|
|
@@ -942,22 +943,22 @@ model Service {
|
|
|
942
943
|
contactEmail String?
|
|
943
944
|
businessPhone String?
|
|
944
945
|
bookings Booking[]
|
|
945
|
-
stripeAccount
|
|
946
|
+
stripeAccount StripeAccount[]
|
|
946
947
|
|
|
947
948
|
@@index([email])
|
|
948
949
|
@@index([phone])
|
|
949
950
|
}
|
|
950
951
|
|
|
951
952
|
model StripeAccount {
|
|
952
|
-
id String
|
|
953
|
+
id String @id @default(cuid())
|
|
953
954
|
stripeAccountId String?
|
|
954
|
-
entityId
|
|
955
|
-
entityType
|
|
956
|
-
createdAt
|
|
957
|
-
updatedAt
|
|
958
|
-
service
|
|
955
|
+
entityId String
|
|
956
|
+
entityType EntityType
|
|
957
|
+
createdAt DateTime @default(now())
|
|
958
|
+
updatedAt DateTime @updatedAt
|
|
959
|
+
service Service? @relation(fields: [entityId], references: [id])
|
|
959
960
|
bashEventId String?
|
|
960
|
-
bashEvent
|
|
961
|
+
bashEvent BashEvent? @relation(fields: [bashEventId], references: [id])
|
|
961
962
|
}
|
|
962
963
|
|
|
963
964
|
model VolunteerService {
|
|
@@ -975,7 +976,7 @@ model VolunteerService {
|
|
|
975
976
|
address String?
|
|
976
977
|
email String?
|
|
977
978
|
phone String?
|
|
978
|
-
agreedToAgreement Boolean @default(false)
|
|
979
|
+
agreedToAgreement Boolean? @default(false)
|
|
979
980
|
description String?
|
|
980
981
|
status VolunteerServiceStatus?
|
|
981
982
|
}
|
|
@@ -1191,54 +1192,52 @@ model Venue {
|
|
|
1191
1192
|
id String @id @default(cuid())
|
|
1192
1193
|
ownerId String
|
|
1193
1194
|
owner User @relation(fields: [ownerId], references: [id], onDelete: Cascade)
|
|
1194
|
-
service Service? @relation(fields: [serviceId], references: [id], onDelete: Cascade)
|
|
1195
|
-
serviceId String?
|
|
1196
|
-
serviceConnectionId String?
|
|
1197
|
-
serviceConnection String?
|
|
1198
|
-
venueName String?
|
|
1199
|
-
email String?
|
|
1200
|
-
place
|
|
1201
|
-
street String?
|
|
1202
|
-
city String?
|
|
1203
|
-
state String?
|
|
1204
|
-
zipCode String?
|
|
1205
|
-
country String?
|
|
1206
|
-
phone String?
|
|
1207
|
-
coverPhoto String?
|
|
1195
|
+
service Service? @relation(fields: [serviceId], references: [id], onDelete: Cascade)
|
|
1196
|
+
serviceId String?
|
|
1197
|
+
serviceConnectionId String?
|
|
1198
|
+
serviceConnection String?
|
|
1199
|
+
venueName String?
|
|
1200
|
+
email String?
|
|
1201
|
+
place String?
|
|
1202
|
+
street String?
|
|
1203
|
+
city String?
|
|
1204
|
+
state String?
|
|
1205
|
+
zipCode String?
|
|
1206
|
+
country String?
|
|
1207
|
+
phone String?
|
|
1208
|
+
coverPhoto String?
|
|
1208
1209
|
media Media[]
|
|
1209
1210
|
visibility VisibilityPreference @default(Public)
|
|
1210
1211
|
status ServiceStatus @default(Draft)
|
|
1211
1212
|
yearsInBusiness YearsOfExperience @default(LessThanOneYear)
|
|
1212
|
-
description String?
|
|
1213
|
-
amenities String[]
|
|
1214
|
-
menuItems String?
|
|
1215
|
-
additionalInfo String?
|
|
1216
|
-
features String[]
|
|
1217
|
-
venueTypes String[]
|
|
1213
|
+
description String?
|
|
1214
|
+
amenities String[]
|
|
1215
|
+
menuItems String?
|
|
1216
|
+
additionalInfo String?
|
|
1217
|
+
features String[]
|
|
1218
|
+
venueTypes String[]
|
|
1218
1219
|
availableDateTimes Availability[] @relation("AvailableDateTimes")
|
|
1219
|
-
mission String?
|
|
1220
|
-
pitch String?
|
|
1221
|
-
communityInvolvement String?
|
|
1222
|
-
emergencyContact String?
|
|
1223
|
-
contactDetails String?
|
|
1224
|
-
rates String?
|
|
1225
|
-
cancellationPolicy String?
|
|
1226
|
-
refundPolicy String?
|
|
1227
|
-
safetyPolicy String?
|
|
1228
|
-
insurancePolicy String?
|
|
1220
|
+
mission String?
|
|
1221
|
+
pitch String?
|
|
1222
|
+
communityInvolvement String?
|
|
1223
|
+
emergencyContact String?
|
|
1224
|
+
contactDetails String?
|
|
1225
|
+
rates String?
|
|
1226
|
+
cancellationPolicy String?
|
|
1227
|
+
refundPolicy String?
|
|
1228
|
+
safetyPolicy String?
|
|
1229
|
+
insurancePolicy String?
|
|
1229
1230
|
targetAudience TargetAudience? @relation(fields: [targetAudienceId], references: [id])
|
|
1230
1231
|
targetAudienceId String? @unique
|
|
1231
1232
|
bashesInterestedIn BashEventType[]
|
|
1232
1233
|
links ServiceLink[]
|
|
1233
|
-
capacity Int?
|
|
1234
|
+
capacity Int?
|
|
1234
1235
|
amountOfGuests AmountOfGuests? @relation(fields: [amountOfGuestsId], references: [id], onDelete: Cascade)
|
|
1235
1236
|
amountOfGuestsId String? @unique
|
|
1236
|
-
trademark
|
|
1237
|
-
manager
|
|
1237
|
+
trademark Boolean?
|
|
1238
|
+
manager Boolean?
|
|
1238
1239
|
}
|
|
1239
1240
|
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
1241
|
model Organization {
|
|
1243
1242
|
id String @id @default(cuid())
|
|
1244
1243
|
ownerId String
|
package/src/extendedSchemas.ts
CHANGED
|
@@ -208,8 +208,7 @@ export const SERVICE_LINK_DATA_TO_INCLUDE = {
|
|
|
208
208
|
|
|
209
209
|
export interface VenueExt extends Venue {
|
|
210
210
|
service?: Service;
|
|
211
|
-
availableDateTimes?: Availability[];
|
|
212
|
-
agreedToAgreement: boolean;
|
|
211
|
+
availableDateTimes?: Availability[];
|
|
213
212
|
targetAudience?: TargetAudience | null;
|
|
214
213
|
links?: ServiceLinkExt[];
|
|
215
214
|
coverPhotoUrl?: string;
|
|
@@ -252,7 +251,6 @@ export interface VolunteerServiceExt extends VolunteerService {
|
|
|
252
251
|
address: string | null;
|
|
253
252
|
email: string | null;
|
|
254
253
|
phone: string | null;
|
|
255
|
-
agreedToAgreement: boolean;
|
|
256
254
|
description: string | null;
|
|
257
255
|
status: VolunteerServiceStatus | null;
|
|
258
256
|
}
|
|
@@ -260,11 +258,10 @@ export interface VolunteerServiceExt extends VolunteerService {
|
|
|
260
258
|
|
|
261
259
|
|
|
262
260
|
export interface ServiceExt extends Service {
|
|
263
|
-
owner
|
|
261
|
+
owner?: PublicUser;
|
|
264
262
|
media?: Media[];
|
|
265
263
|
coverPhotoUrl?: string;
|
|
266
|
-
targetAudience?: TargetAudience | null;
|
|
267
|
-
agreedToAgreement: boolean;
|
|
264
|
+
targetAudience?: TargetAudience | null;
|
|
268
265
|
volunteerService?: VolunteerService | null;
|
|
269
266
|
serviceLinks?: ServiceLinkExt[];
|
|
270
267
|
venues?: Venue[];
|
|
@@ -276,7 +273,6 @@ agreedToAgreement: boolean;
|
|
|
276
273
|
organizations?: Organization[];
|
|
277
274
|
bookings?: Booking[];
|
|
278
275
|
type?: keyof typeof ServiceTypes; // Add this line to include the service type
|
|
279
|
-
|
|
280
276
|
}
|
|
281
277
|
|
|
282
278
|
|