@bash-app/bash-common 30.38.0 → 30.40.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.40.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
package/src/index.ts CHANGED
@@ -29,5 +29,6 @@ export * from "./utils/service/serviceBookingStatusUtils";
29
29
  export * from "./utils/stripeAccountUtils";
30
30
  export * from "./utils/entityUtils";
31
31
  export * from "./utils/generalDateTimeUtils";
32
+ export * from "./utils/userUtils";
32
33
  export * from "./utils/luxonUtils";
33
34
  export * from "./utils/mathUtils";
@@ -179,6 +179,16 @@ export function serviceDetailUrl(
179
179
  return `/services/${serviceId}/${serviceType}/${specificId}`;
180
180
  }
181
181
 
182
+ export function serviceWizardUrl(
183
+ serviceId: string,
184
+ serviceType: string,
185
+ specificId: string,
186
+ step: number = 0,
187
+ substep: number = 0
188
+ ) {
189
+ return `/wz/services/${serviceId}/${serviceType}/${specificId}/${step}/${substep}`;
190
+ }
191
+
182
192
  export function serviceCheckoutUrl(
183
193
  serviceId: string,
184
194
  serviceType: string,
@@ -0,0 +1 @@
1
+ export const MAX_USER_NAME_CHANGES = 3 as const;