@bash-app/bash-common 27.2.4 → 27.2.6

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": "27.2.4",
3
+ "version": "27.2.6",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -235,6 +235,7 @@ model BashEvent {
235
235
  subtitle String?
236
236
  isFeatured Boolean?
237
237
  isTrending Boolean?
238
+ stripeAccount StripeAccount[]
238
239
  }
239
240
 
240
241
  model Checkout {
@@ -941,14 +942,22 @@ model Service {
941
942
  contactEmail String?
942
943
  businessPhone String?
943
944
  bookings Booking[]
945
+ stripeAccount StripeAccount[]
944
946
 
945
947
  @@index([email])
946
948
  @@index([phone])
947
949
  }
948
950
 
949
- model ServiceStripeConnection {
951
+ model StripeAccount {
950
952
  id String @id @default(cuid())
951
953
  stripeAccountId String?
954
+ entityId String
955
+ entityType EntityType
956
+ createdAt DateTime @default(now())
957
+ updatedAt DateTime @updatedAt
958
+ service Service? @relation(fields: [entityId], references: [id])
959
+ bashEventId String?
960
+ bashEvent BashEvent? @relation(fields: [bashEventId], references: [id])
952
961
  }
953
962
 
954
963
  model VolunteerService {
@@ -1224,6 +1233,8 @@ model Venue {
1224
1233
  capacity Int?
1225
1234
  amountOfGuests AmountOfGuests? @relation(fields: [amountOfGuestsId], references: [id], onDelete: Cascade)
1226
1235
  amountOfGuestsId String? @unique
1236
+ trademark Boolean @default(false)
1237
+ manager Boolean @default(false)
1227
1238
  }
1228
1239
 
1229
1240
 
@@ -1466,3 +1477,14 @@ enum ServiceTypes {
1466
1477
  Venues
1467
1478
  Organizations
1468
1479
  }
1480
+
1481
+ enum EntityType {
1482
+ EVENT_SERVICE
1483
+ ENTERTAINMENT_SERVICE
1484
+ VENDOR
1485
+ EXHIBITOR
1486
+ SPONSOR
1487
+ VENUE
1488
+ ORGANIZATION
1489
+ BASH_EVENT // For BashEvents
1490
+ }
@@ -214,9 +214,10 @@ export interface VenueExt extends Venue {
214
214
  links?: ServiceLinkExt[];
215
215
  coverPhotoUrl?: string;
216
216
  media?: Media[];
217
- amountOfGuests?: AmountOfGuests | null; // Reflecting the correct relation with AmountOfGuests
217
+ amountOfGuests?: AmountOfGuests | null;
218
218
  }
219
219
 
220
+
220
221
  export const VOLUNTEER_DATA_TO_INCLUDE = {
221
222
  links: {
222
223
  include: {