@bash-app/bash-common 29.19.21 → 29.19.23
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/prisma/schema.prisma +2 -2
- package/src/utils/venueUtils.ts +10 -4
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -954,7 +954,7 @@ model AssociatedService {
|
|
|
954
954
|
model Service {
|
|
955
955
|
id String @id @default(cuid())
|
|
956
956
|
|
|
957
|
-
serviceType ServiceTypes
|
|
957
|
+
serviceType ServiceTypes?
|
|
958
958
|
serviceStatus ServiceStatus @default(Draft)
|
|
959
959
|
serviceCondition ServiceCondition @default(Pending)
|
|
960
960
|
|
|
@@ -967,7 +967,7 @@ model Service {
|
|
|
967
967
|
creator User? @relation("CreatedService", fields: [creatorId], references: [id])
|
|
968
968
|
|
|
969
969
|
createdAt DateTime @default(now())
|
|
970
|
-
updatedAt DateTime @updatedAt
|
|
970
|
+
updatedAt DateTime? @updatedAt
|
|
971
971
|
|
|
972
972
|
associatedBashesReferencingMe AssociatedBash[]
|
|
973
973
|
associatedServicesReferencingMe AssociatedService[]
|
package/src/utils/venueUtils.ts
CHANGED
|
@@ -1,22 +1,28 @@
|
|
|
1
1
|
import { VenuePricingPlan as VenuePricingPlanOption } from "@prisma/client";
|
|
2
2
|
|
|
3
|
-
export type
|
|
3
|
+
export type VenuePricingPlanData = {
|
|
4
|
+
name: string,
|
|
5
|
+
description: string,
|
|
4
6
|
percentageFee: number;
|
|
5
7
|
monthlyFee: number;
|
|
6
8
|
flatFee: number;
|
|
7
9
|
};
|
|
8
10
|
|
|
9
|
-
export type
|
|
10
|
-
[key in VenuePricingPlanOption]:
|
|
11
|
+
export type VenuePricingPlanMap = {
|
|
12
|
+
[key in VenuePricingPlanOption]: VenuePricingPlanData;
|
|
11
13
|
};
|
|
12
14
|
|
|
13
|
-
export const VenuePricingPlanData:
|
|
15
|
+
export const VenuePricingPlanData: VenuePricingPlanMap = {
|
|
14
16
|
[VenuePricingPlanOption.Percentage]: {
|
|
17
|
+
name: "Pay per booking",
|
|
18
|
+
description: "15% of each booking goes to Bash",
|
|
15
19
|
percentageFee: 0.15,
|
|
16
20
|
monthlyFee: 0.0,
|
|
17
21
|
flatFee: 0.0
|
|
18
22
|
},
|
|
19
23
|
[VenuePricingPlanOption.Subscription]: {
|
|
24
|
+
name: "Monthly subscription",
|
|
25
|
+
description: "Pay $100/month and keep 100% of each booking.",
|
|
20
26
|
percentageFee: 0.0,
|
|
21
27
|
monthlyFee: 100.0,
|
|
22
28
|
flatFee: 0.0
|