@bash-app/bash-common 27.5.2 → 27.5.3

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": "27.5.2",
3
+ "version": "27.5.3",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -1192,8 +1192,8 @@ model Sponsor {
1192
1192
 
1193
1193
  model Venue {
1194
1194
  id String @id @default(cuid())
1195
- ownerId String
1196
- owner User @relation(fields: [ownerId], references: [id], onDelete: Cascade)
1195
+ creatorId String
1196
+ creator User @relation(fields: [creatorId], references: [id], onDelete: Cascade)
1197
1197
  service Service? @relation(fields: [serviceId], references: [id], onDelete: Cascade)
1198
1198
  serviceId String?
1199
1199
  serviceConnectionId String?
@@ -205,7 +205,8 @@ export interface VendorExt extends Vendor {
205
205
  }
206
206
 
207
207
  export interface VenueExt extends Venue {
208
- owner: User;
208
+ creator: User;
209
+ owner?: PublicUser;
209
210
  service?: Service;
210
211
  availableDateTimes?: Availability[];
211
212
  targetAudience?: TargetAudience | null;
@@ -243,7 +244,8 @@ export interface VolunteerServiceExt extends VolunteerService {
243
244
  }
244
245
 
245
246
  export interface ServiceExt extends Service {
246
- owner?: PublicUser;
247
+ creator: User;
248
+ owner?: PublicUser;
247
249
  media?: Media[];
248
250
  coverPhotoUrl?: string;
249
251
  targetAudience?: TargetAudience | null;