@bash-app/bash-common 18.1.0 → 18.3.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 +1 -1
- package/prisma/schema.prisma +7 -0
- package/src/extendedSchemas.ts +12 -1
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -881,6 +881,7 @@ model EventService {
|
|
|
881
881
|
coverPhoto String?
|
|
882
882
|
media Media[]
|
|
883
883
|
visibility VisibilityPreference @default(Public)
|
|
884
|
+
status ServiceStatus @default(Draft)
|
|
884
885
|
yearsOfExperience YearsOfExperience
|
|
885
886
|
description String?
|
|
886
887
|
crowdSize AmountOfGuests? @relation(fields: [amountOfGuestsId], references: [id])
|
|
@@ -924,6 +925,7 @@ model EntertainmentService {
|
|
|
924
925
|
coverPhoto String?
|
|
925
926
|
media Media[]
|
|
926
927
|
visibility VisibilityPreference @default(Public)
|
|
928
|
+
status ServiceStatus @default(Draft)
|
|
927
929
|
yearsOfExperience YearsOfExperience
|
|
928
930
|
description String?
|
|
929
931
|
crowdSize AmountOfGuests? @relation(fields: [amountOfGuestsId], references: [id])
|
|
@@ -963,6 +965,7 @@ model Vendor {
|
|
|
963
965
|
coverPhoto String?
|
|
964
966
|
media Media[]
|
|
965
967
|
visibility VisibilityPreference @default(Public)
|
|
968
|
+
status ServiceStatus @default(Draft)
|
|
966
969
|
yearsOfExperience YearsOfExperience
|
|
967
970
|
description String?
|
|
968
971
|
crowdSize AmountOfGuests? @relation(fields: [amountOfGuestsId], references: [id])
|
|
@@ -1010,6 +1013,7 @@ model Exhibitor {
|
|
|
1010
1013
|
goodsOrServices String[]
|
|
1011
1014
|
venueTypes String[]
|
|
1012
1015
|
availableDateTimes Availability[] @relation("AvailableDateTimes")
|
|
1016
|
+
status ServiceStatus @default(Draft)
|
|
1013
1017
|
mission String?
|
|
1014
1018
|
communityInvolvement String?
|
|
1015
1019
|
emergencyContact String?
|
|
@@ -1042,6 +1046,7 @@ model Sponsor {
|
|
|
1042
1046
|
coverPhoto String?
|
|
1043
1047
|
media Media[]
|
|
1044
1048
|
visibility VisibilityPreference @default(Public)
|
|
1049
|
+
status ServiceStatus @default(Draft)
|
|
1045
1050
|
yearsOfExperience YearsOfExperience
|
|
1046
1051
|
description String?
|
|
1047
1052
|
crowdSize AmountOfGuests? @relation(fields: [amountOfGuestsId], references: [id])
|
|
@@ -1082,6 +1087,7 @@ model Venue {
|
|
|
1082
1087
|
coverPhoto String?
|
|
1083
1088
|
media Media[]
|
|
1084
1089
|
visibility VisibilityPreference @default(Public)
|
|
1090
|
+
status ServiceStatus @default(Draft)
|
|
1085
1091
|
yearsInBusiness YearsOfExperience
|
|
1086
1092
|
description String?
|
|
1087
1093
|
capacity AmountOfGuests?
|
|
@@ -1126,6 +1132,7 @@ model Organization {
|
|
|
1126
1132
|
coverPhoto String?
|
|
1127
1133
|
media Media[]
|
|
1128
1134
|
visibility VisibilityPreference @default(Public)
|
|
1135
|
+
status ServiceStatus @default(Draft)
|
|
1129
1136
|
description String?
|
|
1130
1137
|
crowdSize AmountOfGuests? @relation(fields: [amountOfGuestsId], references: [id])
|
|
1131
1138
|
additionalInfo String?
|
package/src/extendedSchemas.ts
CHANGED
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
Link, Venue, Availability,
|
|
15
15
|
TargetAudience,
|
|
16
16
|
ServiceStatus,
|
|
17
|
+
Vendor,
|
|
17
18
|
} from "@prisma/client";
|
|
18
19
|
import { AttendeeOfBashEvent } from "./definitions";
|
|
19
20
|
|
|
@@ -123,6 +124,16 @@ export const BASH_EVENT_DATA_TO_REMOVE: RemoveCommonProperties<BashEvent, BashEv
|
|
|
123
124
|
'tickets'
|
|
124
125
|
];
|
|
125
126
|
|
|
127
|
+
export interface VendorExt extends Vendor {
|
|
128
|
+
service: Service;
|
|
129
|
+
availableDateTimes: Availability[];
|
|
130
|
+
targetAudience: TargetAudience;
|
|
131
|
+
vendorLinks: ServiceLinkExt[];
|
|
132
|
+
capacity?: AmountOfGuests;
|
|
133
|
+
media?: Media[];
|
|
134
|
+
status: ServiceStatus;
|
|
135
|
+
}
|
|
136
|
+
|
|
126
137
|
export interface VenueExt extends Venue {
|
|
127
138
|
service: Service;
|
|
128
139
|
availableDateTimes: Availability[];
|
|
@@ -130,7 +141,7 @@ export interface VenueExt extends Venue {
|
|
|
130
141
|
venueLinks: ServiceLinkExt[];
|
|
131
142
|
capacity?: AmountOfGuests;
|
|
132
143
|
media?: Media[];
|
|
133
|
-
status
|
|
144
|
+
status: ServiceStatus;
|
|
134
145
|
}
|
|
135
146
|
|
|
136
147
|
export const VENUE_DATA_TO_INCLUDE = {
|