@bash-app/bash-common 29.31.0 → 29.32.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.31.0",
3
+ "version": "29.32.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",
@@ -934,6 +934,7 @@ model AssociatedService {
934
934
  }
935
935
 
936
936
  enum ServiceCancelationPolicy {
937
+ None
937
938
  VeryFlexible
938
939
  Flexible
939
940
  Standard90Day
@@ -989,7 +990,7 @@ model Service {
989
990
  emergencyContact String?
990
991
  contactDetails String?
991
992
  // rates Rate[] @relation("MultipleRates")
992
- cancellationPolicy ServiceCancelationPolicy?
993
+ cancellationPolicy ServiceCancelationPolicy? @default(None)
993
994
  // refundPolicy String?
994
995
  // insurancePolicy String?
995
996
  // hoursOfOperation Json? @default("{}")
@@ -1146,25 +1147,26 @@ model Sponsor {
1146
1147
  }
1147
1148
 
1148
1149
  model Venue {
1149
- id String @id @default(cuid())
1150
- serviceId String @unique
1151
- service Service @relation(fields: [serviceId], references: [id], onDelete: Cascade)
1150
+ id String @id @default(cuid())
1151
+ serviceId String @unique
1152
+ service Service @relation(fields: [serviceId], references: [id], onDelete: Cascade)
1152
1153
  // serviceConnectionId String? //Check: ?
1153
1154
  // serviceConnection String?
1154
- yearsInBusiness YearsOfExperience @default(LessThanOneYear)
1155
- amenities String[]
1156
- menuItems String?
1157
- features String[]
1158
- venueTypes String[]
1159
- secondaryVenueTypes String[] @default([])
1160
- pitch String?
1161
- capacity Int?
1162
- trademark Boolean?
1163
- manager Boolean?
1164
- allowed String?
1165
- notAllowed String?
1166
- vibe String?
1167
- dress String?
1155
+ yearsInBusiness YearsOfExperience @default(LessThanOneYear)
1156
+ amenities String[]
1157
+ menuItems String?
1158
+ features String[]
1159
+ venueTypes String[]
1160
+ secondaryVenueTypes String[] @default([])
1161
+ pitch String?
1162
+ capacity Int?
1163
+ anticipatedAttendees Int?
1164
+ trademark Boolean?
1165
+ manager Boolean?
1166
+ allowed String?
1167
+ notAllowed String?
1168
+ vibe String?
1169
+ dress String?
1168
1170
 
1169
1171
  pricingPlan VenuePricingPlan? @default(Percentage)
1170
1172
  subscriptionStatus SubscriptionStatus?
@@ -17,6 +17,10 @@ export type ServiceCancelationPolicyMap = {
17
17
  };
18
18
 
19
19
  export const ServiceCancelationPolicyData: ServiceCancelationPolicyMap = {
20
+ [ServiceCancelationPolicyOption.None]: {
21
+ name: "None",
22
+ refundPolicy: []
23
+ },
20
24
  [ServiceCancelationPolicyOption.VeryFlexible]: {
21
25
  name: "Very Flexible",
22
26
  refundPolicy: [