@bash-app/bash-common 30.39.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.39.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",
@@ -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------------------------------------------------------
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;