@bash-app/bash-common 30.69.2 → 30.71.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": "30.69.2",
3
+ "version": "30.71.0",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -345,6 +345,11 @@ model BashEvent {
345
345
  investments Investment[]
346
346
  capacity Int?
347
347
  location String?
348
+ street String?
349
+ city String?
350
+ state String?
351
+ zipCode String?
352
+ country String?
348
353
  status BashStatus @default(Draft)
349
354
  tags String[]
350
355
  coverPhoto String?
@@ -788,8 +793,13 @@ model AmountOfGuests {
788
793
 
789
794
  enum Privacy {
790
795
  Public
791
- ConnectionsOnly
796
+ ContactsOnly
792
797
  InviteOnly
798
+ ConnectionsOnly // Deprecated - use ContactsOnly instead
799
+ CreatorOnly
800
+ ProOnly
801
+ EliteOnly
802
+ LegendOnly
793
803
  }
794
804
 
795
805
  model TargetAudience {
@@ -1384,6 +1394,26 @@ model UserPreferences {
1384
1394
  dataUsageConsent Boolean @default(true)
1385
1395
  analyticsConsent Boolean @default(true)
1386
1396
 
1397
+ // Filter Preferences (NEW SECTION) - REMOVED JSONB FIELDS
1398
+ membershipTierFilters String[] @default(["Basic", "Creator"]) // Default membership tiers to show
1399
+
1400
+ // Sort Preferences (NEW SECTION)
1401
+ defaultSortBy String @default("startDateTime") // Default sort criteria (startDateTime, price, attendees, etc.)
1402
+ defaultSortDirection String @default("asc") // Default sort direction (asc, desc)
1403
+
1404
+ // Location Preferences (NEW SECTION)
1405
+ preferredCity String? // User's preferred city for events and services
1406
+ preferredState String? // User's preferred state
1407
+ preferredCountry String @default("US") // User's preferred country
1408
+ preferredZipCode String? // User's preferred zip code
1409
+ preferredLatitude Float? // User's preferred latitude for location-based searches
1410
+ preferredLongitude Float? // User's preferred longitude for location-based searches
1411
+ autoDetectLocation Boolean @default(false) // Whether to automatically detect user's location
1412
+
1413
+ // Search & Navigation Preferences (NEW SECTION)
1414
+ recentSearches String[] @default([]) // Last 5 search queries (JSON strings)
1415
+ expandedSections String[] @default([]) // Section IDs that are currently expanded (e.g., "bash-trending", "service-entertainment")
1416
+
1387
1417
  // Payment Preferences
1388
1418
  preferredCurrency String @default("USD")
1389
1419
  savePaymentInfo Boolean @default(false)
@@ -1416,7 +1446,7 @@ model UserPreferences {
1416
1446
  communicationFrequency String @default("NORMAL") // LOW, NORMAL, HIGH
1417
1447
  preferredContactMethod String @default("EMAIL") // EMAIL, PUSH, SMS
1418
1448
 
1419
- @@map("user_preferences")
1449
+ // Use PascalCase table name to match your database convention
1420
1450
  }
1421
1451
 
1422
1452
  model UserFollowing {