@bash-app/bash-common 28.4.1 → 29.1.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 +23 -7
- package/src/definitions.ts +32 -1
- package/src/extendedSchemas.ts +5 -2
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -698,7 +698,7 @@ model Media {
|
|
|
698
698
|
bashEventsReferencingMe BashEvent[]
|
|
699
699
|
sponsoredEventsReferencingMe SponsoredEvent[]
|
|
700
700
|
serviceReferencingMe Service[]
|
|
701
|
-
|
|
701
|
+
volunteerService VolunteerService? @relation(fields: [volunteerServiceId], references: [id])
|
|
702
702
|
volunteerServiceId String?
|
|
703
703
|
}
|
|
704
704
|
|
|
@@ -895,6 +895,7 @@ model Service {
|
|
|
895
895
|
serviceName String?
|
|
896
896
|
|
|
897
897
|
//this is not the business info but that which is associated with the service
|
|
898
|
+
place String?
|
|
898
899
|
email String?
|
|
899
900
|
street String?
|
|
900
901
|
city String?
|
|
@@ -928,7 +929,7 @@ model Service {
|
|
|
928
929
|
bashesInterestedIn BashEventType[]
|
|
929
930
|
bookings Booking[]
|
|
930
931
|
media Media[]
|
|
931
|
-
ServiceLink
|
|
932
|
+
serviceLinks ServiceLink[]
|
|
932
933
|
|
|
933
934
|
eventService EventService?
|
|
934
935
|
entertainmentService EntertainmentService?
|
|
@@ -963,13 +964,15 @@ model VolunteerService {
|
|
|
963
964
|
agreedToAgreement Boolean? @default(false)
|
|
964
965
|
description String?
|
|
965
966
|
status VolunteerServiceStatus?
|
|
966
|
-
|
|
967
|
+
media Media[]
|
|
967
968
|
}
|
|
968
969
|
|
|
969
970
|
model EventService {
|
|
970
971
|
id String @id @default(cuid())
|
|
971
972
|
serviceId String @unique
|
|
972
973
|
service Service @relation(fields: [serviceId], references: [id], onDelete: Cascade)
|
|
974
|
+
serviceRangeId String?
|
|
975
|
+
serviceRange ServiceRange? @relation(fields: [serviceRangeId], references: [id])
|
|
973
976
|
eventServiceTypes EventServiceType[]
|
|
974
977
|
eventServiceSubType String?
|
|
975
978
|
yearsOfExperience YearsOfExperience
|
|
@@ -984,6 +987,8 @@ model EntertainmentService {
|
|
|
984
987
|
id String @id @default(cuid())
|
|
985
988
|
serviceId String @unique
|
|
986
989
|
service Service @relation(fields: [serviceId], references: [id], onDelete: Cascade)
|
|
990
|
+
serviceRangeId String?
|
|
991
|
+
serviceRange ServiceRange? @relation(fields: [serviceRangeId], references: [id])
|
|
987
992
|
entertainmentServiceTypes EntertainmentServiceType[]
|
|
988
993
|
entertainmentServiceSubType String?
|
|
989
994
|
genre MusicGenreType?
|
|
@@ -998,6 +1003,8 @@ model Vendor {
|
|
|
998
1003
|
id String @id @default(cuid())
|
|
999
1004
|
serviceId String @unique
|
|
1000
1005
|
service Service @relation(fields: [serviceId], references: [id], onDelete: Cascade)
|
|
1006
|
+
serviceRangeId String?
|
|
1007
|
+
serviceRange ServiceRange? @relation(fields: [serviceRangeId], references: [id])
|
|
1001
1008
|
yearsOfExperience YearsOfExperience
|
|
1002
1009
|
crowdSizeId String? @unique
|
|
1003
1010
|
crowdSize AmountOfGuests? @relation(fields: [crowdSizeId], references: [id], onDelete: Cascade)
|
|
@@ -1010,6 +1017,8 @@ model Exhibitor {
|
|
|
1010
1017
|
id String @id @default(cuid())
|
|
1011
1018
|
serviceId String @unique
|
|
1012
1019
|
service Service @relation(fields: [serviceId], references: [id], onDelete: Cascade)
|
|
1020
|
+
serviceRangeId String?
|
|
1021
|
+
serviceRange ServiceRange? @relation(fields: [serviceRangeId], references: [id])
|
|
1013
1022
|
yearsOfExperience YearsOfExperience
|
|
1014
1023
|
crowdSizeId String? @unique
|
|
1015
1024
|
crowdSize AmountOfGuests? @relation(fields: [crowdSizeId], references: [id], onDelete: Cascade)
|
|
@@ -1021,6 +1030,8 @@ model Sponsor {
|
|
|
1021
1030
|
id String @id @default(cuid())
|
|
1022
1031
|
serviceId String @unique
|
|
1023
1032
|
service Service @relation(fields: [serviceId], references: [id], onDelete: Cascade)
|
|
1033
|
+
serviceRangeId String?
|
|
1034
|
+
serviceRange ServiceRange? @relation(fields: [serviceRangeId], references: [id])
|
|
1024
1035
|
yearsOfExperience YearsOfExperience
|
|
1025
1036
|
crowdSizeId String? @unique
|
|
1026
1037
|
crowdSize AmountOfGuests? @relation(fields: [crowdSizeId], references: [id])
|
|
@@ -1123,10 +1134,15 @@ enum YearsOfExperience {
|
|
|
1123
1134
|
}
|
|
1124
1135
|
|
|
1125
1136
|
model ServiceRange {
|
|
1126
|
-
id
|
|
1127
|
-
min
|
|
1128
|
-
max
|
|
1129
|
-
volunteerServices
|
|
1137
|
+
id String @id @default(cuid())
|
|
1138
|
+
min Int @default(0)
|
|
1139
|
+
max Int @default(50)
|
|
1140
|
+
volunteerServices VolunteerService[]
|
|
1141
|
+
entertainmentServices EntertainmentService[]
|
|
1142
|
+
EventService EventService[]
|
|
1143
|
+
Vendor Vendor[]
|
|
1144
|
+
Exhibitor Exhibitor[]
|
|
1145
|
+
Sponsor Sponsor[]
|
|
1130
1146
|
}
|
|
1131
1147
|
|
|
1132
1148
|
model Availability {
|
package/src/definitions.ts
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
BashEventVibeTags,
|
|
5
5
|
Contact,
|
|
6
6
|
DayOfWeek,
|
|
7
|
+
Prisma,
|
|
7
8
|
Ticket,
|
|
8
9
|
TicketTier,
|
|
9
10
|
User,
|
|
@@ -82,7 +83,37 @@ export const DEBOUNCE_WAIT = 1000 as const;
|
|
|
82
83
|
export const ASSET_KEY_DELIM = '__' as const;
|
|
83
84
|
export const ASSET_MAX_MD5_BYTE_LENGTH = 1024 * 100; // 100kb
|
|
84
85
|
|
|
85
|
-
|
|
86
|
+
export const SERVICE_LINK_DATA_TO_INCLUDE = {
|
|
87
|
+
link: true,
|
|
88
|
+
} satisfies Prisma.ServiceLinkInclude;
|
|
89
|
+
|
|
90
|
+
export const SERVICE_DATA_TO_INCLUDE = {
|
|
91
|
+
stripeAccount: true,
|
|
92
|
+
availableDateTimes: true,
|
|
93
|
+
targetAudience: true,
|
|
94
|
+
media: true,
|
|
95
|
+
serviceLinks: {
|
|
96
|
+
include: SERVICE_LINK_DATA_TO_INCLUDE
|
|
97
|
+
},
|
|
98
|
+
} satisfies Prisma.ServiceInclude;
|
|
99
|
+
|
|
100
|
+
export const VENUE_DATA_TO_INCLUDE = {
|
|
101
|
+
|
|
102
|
+
} satisfies Prisma.VenueInclude;
|
|
103
|
+
|
|
104
|
+
export const VENDOR_DATA_TO_INCLUDE = {
|
|
105
|
+
crowdSize: true,
|
|
106
|
+
} satisfies Prisma.VendorInclude;
|
|
107
|
+
|
|
108
|
+
export const VOLUNTEER_DATA_TO_INCLUDE = {
|
|
109
|
+
links: {
|
|
110
|
+
include: {
|
|
111
|
+
serviceLinks: true,
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
media: true,
|
|
115
|
+
serviceRange: true,
|
|
116
|
+
} satisfies Prisma.VolunteerServiceInclude;
|
|
86
117
|
|
|
87
118
|
export type DateTimeArgType = Date | string | undefined | null;
|
|
88
119
|
export type RequiredStripeInfoMissingErrorDataType = { [k in keyof User]?: { type: string, label: string } };
|
package/src/extendedSchemas.ts
CHANGED
|
@@ -155,7 +155,6 @@ export interface ServiceExt extends Service {
|
|
|
155
155
|
|
|
156
156
|
stripeAccount?: StripeAccount;
|
|
157
157
|
|
|
158
|
-
visiblility?: VisibilityPreference;
|
|
159
158
|
availableDateTimes?: Availability[];
|
|
160
159
|
|
|
161
160
|
bookings?: Booking[];
|
|
@@ -175,21 +174,25 @@ export interface ServiceExt extends Service {
|
|
|
175
174
|
export interface EventServiceExt extends EventService {
|
|
176
175
|
service: ServiceExt;
|
|
177
176
|
crowdSize?: AmountOfGuests;
|
|
177
|
+
serviceRange?: ServiceRange;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
export interface EntertainmentServiceExt extends EntertainmentService {
|
|
181
181
|
service: ServiceExt;
|
|
182
182
|
crowdSize?: AmountOfGuests;
|
|
183
|
+
serviceRange?: ServiceRange;
|
|
183
184
|
}
|
|
184
185
|
|
|
185
186
|
export interface ExhibitorExt extends Exhibitor {
|
|
186
187
|
service: ServiceExt;
|
|
187
188
|
crowdSize?: AmountOfGuests;
|
|
189
|
+
serviceRange?: ServiceRange;
|
|
188
190
|
}
|
|
189
191
|
|
|
190
192
|
export interface SponsorExt extends Sponsor {
|
|
191
193
|
service: ServiceExt;
|
|
192
194
|
crowdSize?: AmountOfGuests;
|
|
195
|
+
serviceRange?: ServiceRange;
|
|
193
196
|
}
|
|
194
197
|
|
|
195
198
|
export interface VendorExt extends Vendor {
|
|
@@ -199,7 +202,7 @@ export interface VendorExt extends Vendor {
|
|
|
199
202
|
|
|
200
203
|
export interface VenueExt extends Venue {
|
|
201
204
|
service: ServiceExt;
|
|
202
|
-
crowdSize?: AmountOfGuests;
|
|
205
|
+
// crowdSize?: AmountOfGuests;
|
|
203
206
|
}
|
|
204
207
|
|
|
205
208
|
export interface OrganizationExt extends Organization {
|