@bash-app/bash-common 29.24.0 → 29.26.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.24.0",
3
+ "version": "29.26.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",
@@ -727,7 +727,9 @@ model Media {
727
727
  volunteerService VolunteerService? @relation(fields: [volunteerServiceId], references: [id])
728
728
  volunteerServiceId String?
729
729
 
730
- stripeAccount StripeAccount[]
730
+ stripeAccount StripeAccount[]
731
+ serviceRatesAssociation ServiceRatesAssociation? @relation(fields: [serviceRatesAssociationId], references: [id], onDelete: Cascade)
732
+ serviceRatesAssociationId String?
731
733
  }
732
734
 
733
735
  enum MediaType {
@@ -1360,6 +1362,7 @@ model ServiceRate {
1360
1362
  rateType ServiceRateType
1361
1363
  hourlyRate Int?
1362
1364
  dailyRate Int?
1365
+ minimumTimeBlockHours Int?
1363
1366
  serviceSpecialRates ServiceSpecialRates?
1364
1367
  serviceDailyRates ServiceDailyRates?
1365
1368
  serviceRatesAssociation ServiceRatesAssociation?
@@ -1410,8 +1413,6 @@ model ServiceRatesAssociation {
1410
1413
  volunteerServiceId String?
1411
1414
  volunteerService VolunteerService? @relation(fields: [volunteerServiceId], references: [id], onDelete: Cascade)
1412
1415
 
1413
- minimumTimeBlockHours Int
1414
-
1415
1416
  serviceGeneralRatesId String?
1416
1417
  serviceGeneralRates ServiceRate? @relation(fields: [serviceGeneralRatesId], references: [id], onDelete: Cascade)
1417
1418
 
@@ -1421,6 +1422,8 @@ model ServiceRatesAssociation {
1421
1422
  addons ServiceAddon[]
1422
1423
  packages ServicePackage[]
1423
1424
 
1425
+ media Media[]
1426
+
1424
1427
  @@unique([serviceId])
1425
1428
  @@unique([volunteerServiceId])
1426
1429
  @@unique([serviceGeneralRatesId])
File without changes
@@ -0,0 +1 @@
1
+ export type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;