@bash-app/bash-common 17.3.0 → 17.5.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": "17.3.0",
3
+ "version": "17.5.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",
@@ -860,8 +860,8 @@ model Venue {
860
860
  coverPhoto String?
861
861
  media Media[]
862
862
  visibility VisibilityPreference @default(Public)
863
- yearsInBusiness YearsOfExperience
864
- description String?
863
+ yearsInBusiness YearsOfExperience
864
+ description String?
865
865
  capacity Int?
866
866
  amenities String[]
867
867
  additionalInfo String?
@@ -883,6 +883,7 @@ model Venue {
883
883
  targetAudience VenueTargetAudience @relation("VenueTargetAudience", fields: [venueTargetAudienceId], references: [id])
884
884
  bashesInterestedIn BashEventType[]
885
885
  venueTargetAudienceId String @unique
886
+ venueLinks ServiceLink[]
886
887
  }
887
888
 
888
889
  enum ServiceTag {
@@ -1025,6 +1026,8 @@ model ServiceLink {
1025
1026
  service Service @relation(fields: [serviceId], references: [id], onDelete: Cascade)
1026
1027
  linkId String
1027
1028
  link Link @relation(fields: [linkId], references: [id], onDelete: Cascade)
1029
+ venue Venue? @relation(fields: [venueId], references: [id])
1030
+ venueId String?
1028
1031
 
1029
1032
  @@index([serviceId])
1030
1033
  }
@@ -127,6 +127,7 @@ export interface VenueExt extends Venue {
127
127
  service: Service;
128
128
  availableDateTimes: Availability[];
129
129
  targetAudience: VenueTargetAudience;
130
+ venueLinks: ServiceLink[];
130
131
  }
131
132
 
132
133
  export const VENUE_DATA_TO_INCLUDE = {
@@ -30,7 +30,6 @@ export class AwsS3Utils {
30
30
  if (!preSignedUrl) {
31
31
  throw new Error('The pre-signed url for uploading the file was undefined');
32
32
  }
33
- console.log(`Uploading with url: ${preSignedUrl}`);
34
33
  const res = await fetch(preSignedUrl, {
35
34
  method: 'PUT',
36
35
  headers: {