@bash-app/bash-common 29.32.0 → 29.33.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": "29.32.0",
3
+ "version": "29.33.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",
@@ -1374,6 +1374,7 @@ model ServiceRate {
1374
1374
  rateType ServiceRateType
1375
1375
  hourlyRate Int?
1376
1376
  dailyRate Int?
1377
+ cleaningFeePerBooking Int?
1377
1378
  minimumTimeBlockHours Int?
1378
1379
  serviceSpecialRates ServiceSpecialRates?
1379
1380
  serviceDailyRates ServiceDailyRates?
@@ -19,7 +19,8 @@ export type ServiceCancelationPolicyMap = {
19
19
  export const ServiceCancelationPolicyData: ServiceCancelationPolicyMap = {
20
20
  [ServiceCancelationPolicyOption.None]: {
21
21
  name: "None",
22
- refundPolicy: []
22
+ refundPolicy: [],
23
+ description: "No cancelation policy."
23
24
  },
24
25
  [ServiceCancelationPolicyOption.VeryFlexible]: {
25
26
  name: "Very Flexible",
@@ -94,7 +95,7 @@ function generateDescription(refundPolicy: ServiceCancelationRefundPolicy[]): st
94
95
  return descriptions.join(" ");
95
96
  }
96
97
 
97
- Object.keys(ServiceCancelationPolicyData).forEach((policyKey) => {
98
+ Object.keys(ServiceCancelationPolicyData).filter((policyKey) => policyKey as ServiceCancelationPolicyOption != ServiceCancelationPolicyOption.None).forEach((policyKey) => {
98
99
  const policy = ServiceCancelationPolicyData[policyKey as ServiceCancelationPolicyOption];
99
100
  policy.description = generateDescription(policy.refundPolicy);
100
101
  });