@bash-app/bash-common 29.25.0 → 29.26.1

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.25.0",
3
+ "version": "29.26.1",
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 {
@@ -1420,6 +1422,8 @@ model ServiceRatesAssociation {
1420
1422
  addons ServiceAddon[]
1421
1423
  packages ServicePackage[]
1422
1424
 
1425
+ media Media[]
1426
+
1423
1427
  @@unique([serviceId])
1424
1428
  @@unique([volunteerServiceId])
1425
1429
  @@unique([serviceGeneralRatesId])
@@ -132,6 +132,7 @@ export const SERVICE_RATES_ASSOCIATION_DATA_TO_INCLUDE = {
132
132
  packages: {
133
133
  include: SERVICE_PACKAGE_DATA_TO_INCLUDE
134
134
  },
135
+ media: true
135
136
  } satisfies Prisma.ServiceRatesAssociationInclude;
136
137
 
137
138
  export const SERVICE_DATA_TO_INCLUDE = {
File without changes
@@ -0,0 +1 @@
1
+ export type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;