@bash-app/bash-common 18.3.0 → 18.3.2

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": "18.3.0",
3
+ "version": "18.3.2",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -884,7 +884,7 @@ model EventService {
884
884
  status ServiceStatus @default(Draft)
885
885
  yearsOfExperience YearsOfExperience
886
886
  description String?
887
- crowdSize AmountOfGuests? @relation(fields: [amountOfGuestsId], references: [id])
887
+ crowdSize AmountOfGuests? @relation(fields: [crowdSizeId], references: [id])
888
888
  additionalInfo String?
889
889
  goodsOrServices String[]
890
890
  menuItems String?
@@ -902,7 +902,7 @@ model EventService {
902
902
  links ServiceLink[]
903
903
  targetAudience TargetAudience? @relation(fields: [targetAudienceId], references: [id])
904
904
  targetAudienceId String?
905
- amountOfGuestsId String?
905
+ crowdSizeId String?
906
906
  User User? @relation(fields: [userId], references: [id])
907
907
  userId String?
908
908
  }
@@ -928,7 +928,7 @@ model EntertainmentService {
928
928
  status ServiceStatus @default(Draft)
929
929
  yearsOfExperience YearsOfExperience
930
930
  description String?
931
- crowdSize AmountOfGuests? @relation(fields: [amountOfGuestsId], references: [id])
931
+ crowdSize AmountOfGuests? @relation(fields: [crowdSizeId], references: [id])
932
932
  additionalInfo String?
933
933
  goodsOrServices String[]
934
934
  venueTypes String[]
@@ -945,7 +945,7 @@ model EntertainmentService {
945
945
  links ServiceLink[]
946
946
  targetAudience TargetAudience? @relation(fields: [targetAudienceId], references: [id])
947
947
  targetAudienceId String?
948
- amountOfGuestsId String?
948
+ crowdSizeId String?
949
949
  User User? @relation(fields: [userId], references: [id])
950
950
  userId String?
951
951
  }
@@ -968,7 +968,7 @@ model Vendor {
968
968
  status ServiceStatus @default(Draft)
969
969
  yearsOfExperience YearsOfExperience
970
970
  description String?
971
- crowdSize AmountOfGuests? @relation(fields: [amountOfGuestsId], references: [id])
971
+ crowdSize AmountOfGuests? @relation(fields: [crowdSizeId], references: [id])
972
972
  additionalInfo String?
973
973
  goodsOrServices String[]
974
974
  menuItems String?
@@ -988,7 +988,7 @@ model Vendor {
988
988
  targetAudienceId String?
989
989
  User User? @relation(fields: [userId], references: [id])
990
990
  userId String?
991
- amountOfGuestsId String?
991
+ crowdSizeId String?
992
992
  }
993
993
 
994
994
  model Exhibitor {
@@ -1008,7 +1008,7 @@ model Exhibitor {
1008
1008
  visibility VisibilityPreference @default(Public)
1009
1009
  yearsOfExperience YearsOfExperience
1010
1010
  description String?
1011
- crowdSize AmountOfGuests? @relation(fields: [amountOfGuestsId], references: [id])
1011
+ crowdSize AmountOfGuests? @relation(fields: [crowdSizeId], references: [id])
1012
1012
  additionalInfo String?
1013
1013
  goodsOrServices String[]
1014
1014
  venueTypes String[]
@@ -1028,7 +1028,7 @@ model Exhibitor {
1028
1028
  targetAudienceId String?
1029
1029
  User User? @relation(fields: [userId], references: [id])
1030
1030
  userId String?
1031
- amountOfGuestsId String?
1031
+ crowdSizeId String?
1032
1032
  }
1033
1033
 
1034
1034
  model Sponsor {
@@ -1049,7 +1049,7 @@ model Sponsor {
1049
1049
  status ServiceStatus @default(Draft)
1050
1050
  yearsOfExperience YearsOfExperience
1051
1051
  description String?
1052
- crowdSize AmountOfGuests? @relation(fields: [amountOfGuestsId], references: [id])
1052
+ crowdSize AmountOfGuests? @relation(fields: [crowdSizeId], references: [id])
1053
1053
  additionalInfo String?
1054
1054
  goodsOrServices String[]
1055
1055
  menuItems String?
@@ -1067,7 +1067,7 @@ model Sponsor {
1067
1067
  links ServiceLink[]
1068
1068
  targetAudience TargetAudience? @relation(fields: [targetAudienceId], references: [id])
1069
1069
  targetAudienceId String?
1070
- amountOfGuestsId String?
1070
+ crowdSizeId String?
1071
1071
  User User? @relation(fields: [userId], references: [id])
1072
1072
  userId String?
1073
1073
  }
@@ -1134,7 +1134,7 @@ model Organization {
1134
1134
  visibility VisibilityPreference @default(Public)
1135
1135
  status ServiceStatus @default(Draft)
1136
1136
  description String?
1137
- crowdSize AmountOfGuests? @relation(fields: [amountOfGuestsId], references: [id])
1137
+ crowdSize AmountOfGuests? @relation(fields: [crowdSizeId], references: [id])
1138
1138
  additionalInfo String?
1139
1139
  goodsOrServices String[]
1140
1140
  venueTypes String[]
@@ -1151,7 +1151,7 @@ model Organization {
1151
1151
  links ServiceLink[]
1152
1152
  targetAudience TargetAudience? @relation(fields: [targetAudienceId], references: [id])
1153
1153
  targetAudienceId String?
1154
- amountOfGuestsId String?
1154
+ crowdSizeId String?
1155
1155
  User User? @relation(fields: [userId], references: [id])
1156
1156
  userId String?
1157
1157
  }
@@ -15,6 +15,7 @@ import {
15
15
  TargetAudience,
16
16
  ServiceStatus,
17
17
  Vendor,
18
+ EventService,
18
19
  } from "@prisma/client";
19
20
  import { AttendeeOfBashEvent } from "./definitions";
20
21
 
@@ -124,11 +125,21 @@ export const BASH_EVENT_DATA_TO_REMOVE: RemoveCommonProperties<BashEvent, BashEv
124
125
  'tickets'
125
126
  ];
126
127
 
128
+ export interface EventServiceExt extends EventService {
129
+ service: Service;
130
+ availableDateTimes: Availability[];
131
+ targetAudience: TargetAudience;
132
+ links: ServiceLinkExt[];
133
+ capacity?: AmountOfGuests;
134
+ media?: Media[];
135
+ status: ServiceStatus;
136
+ }
137
+
127
138
  export interface VendorExt extends Vendor {
128
139
  service: Service;
129
140
  availableDateTimes: Availability[];
130
141
  targetAudience: TargetAudience;
131
- vendorLinks: ServiceLinkExt[];
142
+ links: ServiceLinkExt[];
132
143
  capacity?: AmountOfGuests;
133
144
  media?: Media[];
134
145
  status: ServiceStatus;
@@ -138,7 +149,7 @@ export interface VenueExt extends Venue {
138
149
  service: Service;
139
150
  availableDateTimes: Availability[];
140
151
  targetAudience: TargetAudience;
141
- venueLinks: ServiceLinkExt[];
152
+ links: ServiceLinkExt[];
142
153
  capacity?: AmountOfGuests;
143
154
  media?: Media[];
144
155
  status: ServiceStatus;
@@ -148,7 +159,7 @@ export const VENUE_DATA_TO_INCLUDE = {
148
159
  service: true,
149
160
  availableDateTimes: true,
150
161
  targetAudience: true,
151
- venueLinks: true,
162
+ links: true,
152
163
  capacity: true,
153
164
  media: true,
154
165
  }