@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 +1 -1
- package/src/extendedSchemas.ts +59 -59
- package/src/index.ts +1 -0
- package/src/utils/service/serviceUtils.ts +10 -0
- package/src/utils/userUtils.ts +1 -0
package/package.json
CHANGED
package/src/extendedSchemas.ts
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
-
|
|
63
|
-
|
|
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;
|