@bash-app/bash-common 30.38.0 → 30.39.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.38.0",
3
+ "version": "30.39.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",
@@ -265,6 +265,9 @@ model BashEvent {
265
265
  eventType String @default("Other")
266
266
  startDateTime DateTime? @default(now())
267
267
  endDateTime DateTime? @default(now())
268
+ waiverUrl String?
269
+ waiverRequired Boolean @default(false)
270
+ waiverDisplayType String? @default("inline")
268
271
  ticketTiers TicketTier[]
269
272
  targetAudienceId String? @unique
270
273
  targetAudience TargetAudience? @relation(fields: [targetAudienceId], references: [id], onDelete: Cascade)
@@ -980,6 +983,7 @@ enum SocialMediaPlatform {
980
983
 
981
984
  model User {
982
985
  id String @id @default(cuid())
986
+ username String? @unique
983
987
  email String @unique
984
988
  createdOn DateTime @default(now())
985
989
  stripeCustomerId String? @unique
@@ -1,66 +1,66 @@
1
1
  import {
2
- AmountOfGuests,
3
- AssociatedBash,
4
- AssociatedService,
5
- BashComment,
6
- BashEvent,
7
- BashEventPromoCode,
8
- BashNotification,
9
- Checkout,
10
- Contact,
11
- Coordinates,
12
- Demerit,
13
- EntertainmentService,
14
- EventService,
15
- EventTask,
16
- Exhibitor,
17
- Invitation,
18
- Link,
19
- Media,
20
- Organization,
21
- Prisma,
22
- Recurrence,
23
- Reminder,
24
- Review,
25
- Service,
26
- ServiceAddon,
27
- ServiceBooking,
28
- ServiceBookingAddOn,
29
- ServiceBookingCheckout,
30
- ServiceBookingDay,
31
- ServiceBookingFee,
32
- ServiceBookingPackage,
33
- ServiceBookingPriceBreakdown,
34
- ServiceDailyRates,
35
- ServiceLink,
36
- ServicePackage,
37
- ServiceRange,
38
- ServiceRate,
39
- ServiceRatesAssociation,
40
- ServiceSpecialRates,
41
- ServiceSubscriptionCounts,
42
- SocialMediaPlatform,
43
- SocialMediaProfile,
44
- Sponsor,
45
- SponsoredEvent,
46
- StripeAccount,
47
- TargetAudience,
48
- Ticket,
49
- TicketMetadata,
50
- TicketTier,
51
- TicketTransfer,
52
- User,
53
- UserPreferences,
54
- UserStats,
55
- UserSubscription,
56
- Vendor,
57
- Venue,
58
- VolunteerService,
2
+ AmountOfGuests,
3
+ AssociatedBash,
4
+ AssociatedService,
5
+ BashComment,
6
+ BashEvent,
7
+ BashEventPromoCode,
8
+ BashNotification,
9
+ Checkout,
10
+ Contact,
11
+ Coordinates,
12
+ Demerit,
13
+ EntertainmentService,
14
+ EventService,
15
+ EventTask,
16
+ Exhibitor,
17
+ Invitation,
18
+ Link,
19
+ Media,
20
+ Organization,
21
+ Prisma,
22
+ Recurrence,
23
+ Reminder,
24
+ Review,
25
+ Service,
26
+ ServiceAddon,
27
+ ServiceBooking,
28
+ ServiceBookingAddOn,
29
+ ServiceBookingCheckout,
30
+ ServiceBookingDay,
31
+ ServiceBookingFee,
32
+ ServiceBookingPackage,
33
+ ServiceBookingPriceBreakdown,
34
+ ServiceDailyRates,
35
+ ServiceLink,
36
+ ServicePackage,
37
+ ServiceRange,
38
+ ServiceRate,
39
+ ServiceRatesAssociation,
40
+ ServiceSpecialRates,
41
+ ServiceSubscriptionCounts,
42
+ SocialMediaPlatform,
43
+ SocialMediaProfile,
44
+ Sponsor,
45
+ SponsoredEvent,
46
+ StripeAccount,
47
+ TargetAudience,
48
+ Ticket,
49
+ TicketMetadata,
50
+ TicketTier,
51
+ TicketTransfer,
52
+ User,
53
+ UserPreferences,
54
+ UserStats,
55
+ UserSubscription,
56
+ Vendor,
57
+ Venue,
58
+ VolunteerService,
59
59
  } from "@prisma/client";
60
60
  import { SERVICE_LINK_DATA_TO_INCLUDE } from "./definitions";
61
61
  import {
62
- RemoveCommonProperties,
63
- UnionFromArray
62
+ RemoveCommonProperties,
63
+ UnionFromArray
64
64
  } from "./utils/typeUtils";
65
65
 
66
66
  //------------------------------------------------------user subscriptions------------------------------------------------------