@bash-app/bash-common 29.19.21 → 29.19.22

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": "29.19.21",
3
+ "version": "29.19.22",
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,22 +1,28 @@
1
1
  import { VenuePricingPlan as VenuePricingPlanOption } from "@prisma/client";
2
2
 
3
- export type VenuePricingPlan = {
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 VenuePricingPlanDataType = {
10
- [key in VenuePricingPlanOption]: VenuePricingPlan;
11
+ export type VenuePricingPlanMap = {
12
+ [key in VenuePricingPlanOption]: VenuePricingPlanData;
11
13
  };
12
14
 
13
- export const VenuePricingPlanData: VenuePricingPlanDataType = {
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