@bash-app/bash-common 22.0.2 → 23.0.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.
@@ -1,361 +1,367 @@
1
- import {
2
- AmountOfGuests,
3
- EventTask,
4
- AssociatedBash,
5
- BashEvent,
6
- Invitation,
7
- Ticket,
8
- User,
9
- TicketTier, Business, Review, Media, BashComment, Recurrence, Contact,
10
- BashNotification, BashEventPromoCode,
11
- Reminder,
12
- Checkout,
13
- ServiceLink,
14
- Link, Venue, Availability,
15
- TargetAudience,
16
- ServiceStatus,
17
- Vendor,
18
- EventService,
19
- EntertainmentService,
20
- Exhibitor,
21
- Sponsor,
22
- Organization,
23
- Booking,
24
- VolunteerService, Prisma, ServiceRange,
25
- } from "@prisma/client";
26
- import {UnionFromArray} from "./definitions";
27
-
28
- export const FRONT_END_USER_DATA_TO_SELECT = {
29
- id: true,
30
- email: true,
31
- givenName: true,
32
- familyName: true,
33
- image: true,
34
- uploadedImage: true,
35
- } satisfies Prisma.UserSelect;
36
-
37
- export const PRIVATE_USER_ACCOUNT_TO_SELECT = {
38
- ...FRONT_END_USER_DATA_TO_SELECT,
39
- street: true,
40
- city: true,
41
- state: true,
42
- zipCode: true,
43
- country: true,
44
- phone: true,
45
- } satisfies Prisma.UserSelect;
46
-
47
- export interface BashEventExt extends BashEvent {
48
- targetAudience?: TargetAudience;
49
- amountOfGuests?: AmountOfGuests;
50
- recurrence?: Recurrence;
51
- creator?: PublicUser;
52
- ticketTiers: TicketTierExt[];
53
- media: Media[];
54
- eventTasks: EventTask[];
55
- tickets?: Ticket[]; // Only include tickets that the user has purchased and not all tickets (could be thousands + privacy)
56
- // Do not include in fetch. Could be hundreds of these
57
- invitations: InvitationExt[];
58
- }
59
-
60
- export const TICKET_TIER_DATA_TO_INCLUDE = {
61
- promoCodes: true,
62
- } satisfies Prisma.TicketTierInclude;
63
-
64
- export const BASH_EVENT_DATA_TO_INCLUDE = {
65
- creator: {
66
- select: FRONT_END_USER_DATA_TO_SELECT
67
- },
68
- targetAudience: true,
69
- amountOfGuests: true,
70
- recurrence: true,
71
- ticketTiers: {
72
- include: TICKET_TIER_DATA_TO_INCLUDE
73
- },
74
- eventTasks: true,
75
- media: true,
76
- } satisfies Prisma.BashEventInclude;
77
-
78
- export const BASH_EVENT_DATA_TO_CLONE = [
79
- 'ticketTiers',
80
- 'media',
81
- 'recurrence',
82
- 'invitations',
83
- ] as const;
84
-
85
- type RemoveCommonProperties<T, U> = keyof (Omit<T, keyof U> & Omit<U, keyof T>);
86
- type BashEventExtMinusDataToCloneType = Omit<BashEventExt, UnionFromArray<typeof BASH_EVENT_DATA_TO_CLONE>>;
87
-
88
- export const BASH_EVENT_DATA_TO_REMOVE: RemoveCommonProperties<BashEvent, BashEventExtMinusDataToCloneType>[] = [
89
- 'creator',
90
- 'eventTasks',
91
- 'tickets',
92
- 'targetAudience',
93
- 'amountOfGuests',
94
- ];
95
-
96
- export interface BashNotificationExt extends BashNotification {
97
- creator?: PublicUser;
98
- bashEvent?: BashEvent;
99
- eventTask?: EventTask;
100
- invitation?: Invitation;
101
- reminders?: Reminder[];
102
- }
103
-
104
- export const BASH_NOTIFICATION_DATA_TO_INCLUDE = {
105
- bashEvent: {
106
- select: {
107
- coverPhoto: true,
108
- },
109
- },
110
- creator: {
111
- select: {
112
- image: true,
113
- },
114
- },
115
- } satisfies Prisma.BashNotificationInclude;
116
-
117
- export interface EventTaskExt extends EventTask {
118
- creator: PublicUser;
119
- assignedTo?: PublicUser | null;
120
- }
121
-
122
- export const EVENT_TASK_DATA_TO_INCLUDE = {
123
- creator: {
124
- select: FRONT_END_USER_DATA_TO_SELECT
125
- },
126
- assignedTo: {
127
- select: FRONT_END_USER_DATA_TO_SELECT
128
- }
129
- } satisfies Prisma.EventTaskInclude;
130
-
131
-
132
- export interface EventServiceExt extends EventService {
133
- business: Business;
134
- availableDateTimes: Availability[];
135
- targetAudience: TargetAudience;
136
- links: ServiceLinkExt[];
137
- crowdSize?: AmountOfGuests;
138
- media?: Media[];
139
- }
140
-
141
- export interface EntertainmentServiceExt extends EntertainmentService {
142
- business: Business;
143
- availableDateTimes: Availability[];
144
- targetAudience: TargetAudience;
145
- links: ServiceLinkExt[];
146
- crowdSize?: AmountOfGuests;
147
- media?: Media[];
148
- }
149
-
150
- export interface ExhibitorExt extends Exhibitor {
151
- business: Business;
152
- availableDateTimes: Availability[];
153
- targetAudience: TargetAudience;
154
- links: ServiceLinkExt[];
155
- crowdSize?: AmountOfGuests;
156
- media?: Media[];
157
- }
158
-
159
- export interface SponsorExt extends Sponsor {
160
- business: Business;
161
- availableDateTimes: Availability[];
162
- targetAudience: TargetAudience;
163
- links: ServiceLinkExt[];
164
- crowdSize?: AmountOfGuests;
165
- media?: Media[];
166
- }
167
-
168
- export interface VendorExt extends Vendor {
169
- business: Business;
170
- availableDateTimes: Availability[];
171
- targetAudience?: TargetAudience;
172
- links: ServiceLinkExt[];
173
- crowdSize?: AmountOfGuests;
174
- media?: Media[];
175
- }
176
-
177
- export const VENDOR_DATA_TO_INCLUDE = {
178
- business: true,
179
- availableDateTimes: true,
180
- targetAudience: true,
181
- links: true,
182
- crowdSize: true,
183
- media: true,
184
- } satisfies Prisma.VendorInclude;
185
-
186
- export const SERVICE_LINK_DATA_TO_INCLUDE = {
187
- link: true,
188
- } satisfies Prisma.ServiceLinkInclude;
189
-
190
- export interface VenueExt extends Venue {
191
- business: Business;
192
- availableDateTimes: Availability[];
193
- targetAudience?: TargetAudience | null;
194
- links: ServiceLinkExt[];
195
- serviceRange: ServiceRange;
196
- media?: Media[];
197
- amountOfGuests?: AmountOfGuests | null; // Reflecting the correct relation with AmountOfGuests
198
- }
199
-
200
- export const VENUE_DATA_TO_INCLUDE = {
201
- business: true,
202
- availableDateTimes: true,
203
- targetAudience: true,
204
- links: {
205
- include: SERVICE_LINK_DATA_TO_INCLUDE
206
- },
207
- media: true,
208
- serviceRange: true,
209
- amountOfGuests: true,
210
- } satisfies Prisma.VenueInclude;
211
-
212
- export interface OrganizationExt extends Organization {
213
- business: Business;
214
- availableDateTimes: Availability[];
215
- targetAudience: TargetAudience;
216
- links: ServiceLinkExt[];
217
- crowdSize?: AmountOfGuests;
218
- media?: Media[];
219
- status: ServiceStatus;
220
- }
221
-
222
-
223
- export interface BusinessExt extends Business {
224
- owner: PublicUser;
225
- media: Media[];
226
- targetAudience?: TargetAudience | null;
227
- volunteerService?: VolunteerService | null;
228
- serviceLinks?: ServiceLinkExt[];
229
- venues?: Venue[];
230
- eventServices?: EventService[];
231
- entertainmentServices?: EntertainmentService[];
232
- vendors?: Vendor[];
233
- exhibitors?: Exhibitor[];
234
- sponsors?: Sponsor[];
235
- organizations?: Organization[];
236
- bookings?: Booking[];
237
- }
238
-
239
- export const BUSINESS_DATA_TO_INCLUDE = {
240
- owner: {
241
- select: FRONT_END_USER_DATA_TO_SELECT
242
- },
243
- media: true,
244
- volunteerService: true,
245
- targetAudience: true,
246
- serviceLinks: {
247
- include: SERVICE_LINK_DATA_TO_INCLUDE
248
- },
249
- venues: {
250
- include: VENUE_DATA_TO_INCLUDE
251
- },
252
- vendors: {
253
- include: VENDOR_DATA_TO_INCLUDE
254
- }
255
- } satisfies Prisma.BusinessInclude
256
-
257
- export interface ServiceLinkExt extends ServiceLink {
258
- link: Link;
259
- }
260
-
261
- export interface InvitationExt extends Invitation {
262
- creator: PublicUser;
263
- sentTo: PublicUser;
264
- tickets: Ticket[];
265
- associatedBash?: AssociatedBash | null;
266
- }
267
-
268
- export const INVITATION_DATA_TO_INCLUDE = {
269
- creator: {
270
- select: FRONT_END_USER_DATA_TO_SELECT
271
- },
272
- sentTo: {
273
- select: FRONT_END_USER_DATA_TO_SELECT
274
- },
275
- tickets: true,
276
- } satisfies Prisma.InvitationInclude;
277
-
278
- export interface InvitationExtraData extends Invitation {
279
- isFreeGuest?: boolean;
280
- isOrganizer?: boolean;
281
- }
282
-
283
- export interface AssociatedBashExt extends AssociatedBash {
284
- bashEvent: BashEventExt;
285
- invitation: InvitationExt;
286
- }
287
-
288
- export const ASSOCIATED_BASH_DATA_TO_INCLUDE = {
289
- bashEvent: {
290
- include: BASH_EVENT_DATA_TO_INCLUDE
291
- },
292
- invitation: {
293
- include: INVITATION_DATA_TO_INCLUDE
294
- }
295
- } satisfies Prisma.AssociatedBashInclude;
296
-
297
- export interface TicketTierExt extends TicketTier {
298
- bashEvent: BashEvent;
299
- tickets: TicketExt[];
300
- promoCodes: BashEventPromoCode[];
301
- }
302
-
303
- export interface TicketExt extends Ticket {
304
- owner: PublicUser;
305
- forUser: PublicUser;
306
- checkout?: Checkout;
307
- }
308
-
309
- export interface CheckoutExt extends Checkout {
310
- owner: PublicUser;
311
- tickets: Ticket[]
312
- }
313
-
314
- export const CHECKOUT_DATA_TO_INCLUDE = {
315
- owner: {
316
- select: FRONT_END_USER_DATA_TO_SELECT
317
- },
318
- tickets: {
319
- select: {
320
- ownerId: true
321
- }
322
- }
323
- } satisfies Prisma.CheckoutInclude;
324
-
325
- export interface ReviewExt extends Review {
326
- comments: BashComment[];
327
- }
328
-
329
- export const CONTACT_DATA_TO_INCLUDE = {
330
- contactOwner: {
331
- select: FRONT_END_USER_DATA_TO_SELECT
332
- },
333
- } satisfies Prisma.ContactInclude;
334
-
335
-
336
- export interface UserExtraData extends User {
337
- password?: string;
338
- otp?: string;
339
- }
340
-
341
- export interface UserExt extends User {
342
- businesses?: Business[] | null;
343
-
344
- // Do not include in fetch as there could be thousands of these
345
- associatedBashes?: AssociatedBash[] | null;
346
- reviews?: ReviewExt[] | null;
347
- contacts?: Contact[] | null;
348
- ticketsIOwn?: TicketExt[] | null;
349
- }
350
-
351
- export const USER_DATA_SELECT_REVIEWS_COMMENTS = {
352
- reviews: {
353
- include: {
354
- comments: true
355
- }
356
- }
357
- } satisfies Prisma.UserSelect;
358
-
359
-
360
- export type PublicUser = Pick<UserExt, keyof typeof FRONT_END_USER_DATA_TO_SELECT>
361
- & Partial<Pick<UserExt, keyof typeof USER_DATA_SELECT_REVIEWS_COMMENTS>>;
1
+ import {
2
+ AmountOfGuests,
3
+ EventTask,
4
+ AssociatedBash,
5
+ BashEvent,
6
+ Invitation,
7
+ Ticket,
8
+ User,
9
+ TicketTier, Business, Review, Media, BashComment, Recurrence, Contact,
10
+ BashNotification, BashEventPromoCode,
11
+ Reminder,
12
+ Checkout,
13
+ ServiceLink,
14
+ Link, Venue, Availability,
15
+ TargetAudience,
16
+ ServiceStatus,
17
+ Vendor,
18
+ EventService,
19
+ EntertainmentService,
20
+ Exhibitor,
21
+ Sponsor,
22
+ Organization,
23
+ Booking,
24
+ VolunteerService, Prisma, ServiceRange,
25
+ } from "@prisma/client";
26
+ import {UnionFromArray} from "./definitions";
27
+
28
+ export const FRONT_END_USER_DATA_TO_SELECT = {
29
+ id: true,
30
+ email: true,
31
+ givenName: true,
32
+ familyName: true,
33
+ image: true,
34
+ uploadedImage: true,
35
+ } satisfies Prisma.UserSelect;
36
+
37
+ export const PRIVATE_USER_ACCOUNT_TO_SELECT = {
38
+ ...FRONT_END_USER_DATA_TO_SELECT,
39
+ street: true,
40
+ city: true,
41
+ state: true,
42
+ zipCode: true,
43
+ country: true,
44
+ phone: true,
45
+ } satisfies Prisma.UserSelect;
46
+
47
+ export interface BashEventExt extends BashEvent {
48
+ targetAudience?: TargetAudience;
49
+ amountOfGuests?: AmountOfGuests;
50
+ recurrence?: Recurrence;
51
+ creator?: PublicUser;
52
+ ticketTiers: TicketTierExt[];
53
+ media: Media[];
54
+ eventTasks: EventTask[];
55
+ tickets?: Ticket[]; // Only include tickets that the user has purchased and not all tickets (could be thousands + privacy)
56
+ // Do not include in fetch. Could be hundreds of these
57
+ invitations: InvitationExt[];
58
+ }
59
+
60
+ export const TICKET_TIER_DATA_TO_INCLUDE = {
61
+ promoCodes: true,
62
+ } satisfies Prisma.TicketTierInclude;
63
+
64
+ export const BASH_EVENT_DATA_TO_INCLUDE = {
65
+ creator: {
66
+ select: FRONT_END_USER_DATA_TO_SELECT
67
+ },
68
+ targetAudience: true,
69
+ amountOfGuests: true,
70
+ recurrence: true,
71
+ ticketTiers: {
72
+ include: TICKET_TIER_DATA_TO_INCLUDE
73
+ },
74
+ eventTasks: true,
75
+ media: true,
76
+ } satisfies Prisma.BashEventInclude;
77
+
78
+ export const BASH_EVENT_DATA_TO_CLONE = [
79
+ 'ticketTiers',
80
+ 'media',
81
+ 'recurrence',
82
+ 'invitations',
83
+ ] as const;
84
+
85
+ type RemoveCommonProperties<T, U> = keyof (Omit<T, keyof U> & Omit<U, keyof T>);
86
+ type BashEventExtMinusDataToCloneType = Omit<BashEventExt, UnionFromArray<typeof BASH_EVENT_DATA_TO_CLONE>>;
87
+
88
+ export const BASH_EVENT_DATA_TO_REMOVE: RemoveCommonProperties<BashEvent, BashEventExtMinusDataToCloneType>[] = [
89
+ 'creator',
90
+ 'eventTasks',
91
+ 'tickets',
92
+ 'targetAudience',
93
+ 'amountOfGuests',
94
+ ];
95
+
96
+ export interface BashNotificationExt extends BashNotification {
97
+ creator?: PublicUser;
98
+ bashEvent?: BashEvent;
99
+ eventTask?: EventTask;
100
+ invitation?: Invitation;
101
+ reminders?: Reminder[];
102
+ }
103
+
104
+ export const BASH_NOTIFICATION_DATA_TO_INCLUDE = {
105
+ bashEvent: {
106
+ select: {
107
+ coverPhoto: true,
108
+ },
109
+ },
110
+ creator: {
111
+ select: {
112
+ image: true,
113
+ },
114
+ },
115
+ } satisfies Prisma.BashNotificationInclude;
116
+
117
+ export interface EventTaskExt extends EventTask {
118
+ creator: PublicUser;
119
+ assignedTo?: PublicUser | null;
120
+ }
121
+
122
+ export const EVENT_TASK_DATA_TO_INCLUDE = {
123
+ creator: {
124
+ select: FRONT_END_USER_DATA_TO_SELECT
125
+ },
126
+ assignedTo: {
127
+ select: FRONT_END_USER_DATA_TO_SELECT
128
+ }
129
+ } satisfies Prisma.EventTaskInclude;
130
+
131
+
132
+ export interface EventServiceExt extends EventService {
133
+ business: Business;
134
+ availableDateTimes: Availability[];
135
+ targetAudience: TargetAudience;
136
+ links: ServiceLinkExt[];
137
+ crowdSize?: AmountOfGuests;
138
+ media?: Media[];
139
+ }
140
+
141
+ export interface EntertainmentServiceExt extends EntertainmentService {
142
+ business: Business;
143
+ availableDateTimes: Availability[];
144
+ targetAudience: TargetAudience;
145
+ links: ServiceLinkExt[];
146
+ crowdSize?: AmountOfGuests;
147
+ media?: Media[];
148
+ }
149
+
150
+ export interface ExhibitorExt extends Exhibitor {
151
+ business: Business;
152
+ availableDateTimes: Availability[];
153
+ targetAudience: TargetAudience;
154
+ links: ServiceLinkExt[];
155
+ crowdSize?: AmountOfGuests;
156
+ media?: Media[];
157
+ }
158
+
159
+ export interface SponsorExt extends Sponsor {
160
+ business: Business;
161
+ availableDateTimes: Availability[];
162
+ targetAudience: TargetAudience;
163
+ links: ServiceLinkExt[];
164
+ crowdSize?: AmountOfGuests;
165
+ media?: Media[];
166
+ }
167
+
168
+ export interface VendorExt extends Vendor {
169
+ business: Business;
170
+ availableDateTimes: Availability[];
171
+ targetAudience?: TargetAudience;
172
+ links: ServiceLinkExt[];
173
+ crowdSize?: AmountOfGuests;
174
+ media?: Media[];
175
+ }
176
+
177
+ export const VENDOR_DATA_TO_INCLUDE = {
178
+ business: true,
179
+ availableDateTimes: true,
180
+ targetAudience: true,
181
+ links: true,
182
+ crowdSize: true,
183
+ media: true,
184
+ } satisfies Prisma.VendorInclude;
185
+
186
+ export const SERVICE_LINK_DATA_TO_INCLUDE = {
187
+ link: true,
188
+ } satisfies Prisma.ServiceLinkInclude;
189
+
190
+ export interface VenueExt extends Venue {
191
+ business: Business;
192
+ availableDateTimes: Availability[];
193
+ targetAudience?: TargetAudience | null;
194
+ links: ServiceLinkExt[];
195
+ serviceRange: ServiceRange;
196
+ media?: Media[];
197
+ amountOfGuests?: AmountOfGuests | null; // Reflecting the correct relation with AmountOfGuests
198
+ }
199
+
200
+ export const VENUE_DATA_TO_INCLUDE = {
201
+ business: true,
202
+ availableDateTimes: true,
203
+ targetAudience: true,
204
+ links: {
205
+ include: SERVICE_LINK_DATA_TO_INCLUDE
206
+ },
207
+ media: true,
208
+ serviceRange: true,
209
+ amountOfGuests: true,
210
+ } satisfies Prisma.VenueInclude;
211
+
212
+ export interface OrganizationExt extends Organization {
213
+ business: Business;
214
+ availableDateTimes: Availability[];
215
+ targetAudience: TargetAudience;
216
+ links: ServiceLinkExt[];
217
+ crowdSize?: AmountOfGuests;
218
+ media?: Media[];
219
+ status: ServiceStatus;
220
+ }
221
+
222
+ export interface VolunteerServiceExt extends VolunteerService {
223
+ serviceRange?: ServiceRange;
224
+ media?: Media[];
225
+ links?: Link[];
226
+ }
227
+
228
+
229
+ export interface BusinessExt extends Business {
230
+ owner: PublicUser;
231
+ media: Media[];
232
+ targetAudience?: TargetAudience | null;
233
+ volunteerService?: VolunteerService | null;
234
+ serviceLinks?: ServiceLinkExt[];
235
+ venues?: Venue[];
236
+ eventServices?: EventService[];
237
+ entertainmentServices?: EntertainmentService[];
238
+ vendors?: Vendor[];
239
+ exhibitors?: Exhibitor[];
240
+ sponsors?: Sponsor[];
241
+ organizations?: Organization[];
242
+ bookings?: Booking[];
243
+ }
244
+
245
+ export const BUSINESS_DATA_TO_INCLUDE = {
246
+ owner: {
247
+ select: FRONT_END_USER_DATA_TO_SELECT
248
+ },
249
+ media: true,
250
+ volunteerService: true,
251
+ targetAudience: true,
252
+ serviceLinks: {
253
+ include: SERVICE_LINK_DATA_TO_INCLUDE
254
+ },
255
+ venues: {
256
+ include: VENUE_DATA_TO_INCLUDE
257
+ },
258
+ vendors: {
259
+ include: VENDOR_DATA_TO_INCLUDE
260
+ }
261
+ } satisfies Prisma.BusinessInclude
262
+
263
+ export interface ServiceLinkExt extends ServiceLink {
264
+ link: Link;
265
+ }
266
+
267
+ export interface InvitationExt extends Invitation {
268
+ creator: PublicUser;
269
+ sentTo: PublicUser;
270
+ tickets: Ticket[];
271
+ associatedBash?: AssociatedBash | null;
272
+ }
273
+
274
+ export const INVITATION_DATA_TO_INCLUDE = {
275
+ creator: {
276
+ select: FRONT_END_USER_DATA_TO_SELECT
277
+ },
278
+ sentTo: {
279
+ select: FRONT_END_USER_DATA_TO_SELECT
280
+ },
281
+ tickets: true,
282
+ } satisfies Prisma.InvitationInclude;
283
+
284
+ export interface InvitationExtraData extends Invitation {
285
+ isFreeGuest?: boolean;
286
+ isOrganizer?: boolean;
287
+ }
288
+
289
+ export interface AssociatedBashExt extends AssociatedBash {
290
+ bashEvent: BashEventExt;
291
+ invitation: InvitationExt;
292
+ }
293
+
294
+ export const ASSOCIATED_BASH_DATA_TO_INCLUDE = {
295
+ bashEvent: {
296
+ include: BASH_EVENT_DATA_TO_INCLUDE
297
+ },
298
+ invitation: {
299
+ include: INVITATION_DATA_TO_INCLUDE
300
+ }
301
+ } satisfies Prisma.AssociatedBashInclude;
302
+
303
+ export interface TicketTierExt extends TicketTier {
304
+ bashEvent: BashEvent;
305
+ tickets: TicketExt[];
306
+ promoCodes: BashEventPromoCode[];
307
+ }
308
+
309
+ export interface TicketExt extends Ticket {
310
+ owner: PublicUser;
311
+ forUser: PublicUser;
312
+ checkout?: Checkout;
313
+ }
314
+
315
+ export interface CheckoutExt extends Checkout {
316
+ owner: PublicUser;
317
+ tickets: Ticket[]
318
+ }
319
+
320
+ export const CHECKOUT_DATA_TO_INCLUDE = {
321
+ owner: {
322
+ select: FRONT_END_USER_DATA_TO_SELECT
323
+ },
324
+ tickets: {
325
+ select: {
326
+ ownerId: true
327
+ }
328
+ }
329
+ } satisfies Prisma.CheckoutInclude;
330
+
331
+ export interface ReviewExt extends Review {
332
+ comments: BashComment[];
333
+ }
334
+
335
+ export const CONTACT_DATA_TO_INCLUDE = {
336
+ contactOwner: {
337
+ select: FRONT_END_USER_DATA_TO_SELECT
338
+ },
339
+ } satisfies Prisma.ContactInclude;
340
+
341
+
342
+ export interface UserExtraData extends User {
343
+ password?: string;
344
+ otp?: string;
345
+ }
346
+
347
+ export interface UserExt extends User {
348
+ businesses?: Business[] | null;
349
+
350
+ // Do not include in fetch as there could be thousands of these
351
+ associatedBashes?: AssociatedBash[] | null;
352
+ reviews?: ReviewExt[] | null;
353
+ contacts?: Contact[] | null;
354
+ ticketsIOwn?: TicketExt[] | null;
355
+ }
356
+
357
+ export const USER_DATA_SELECT_REVIEWS_COMMENTS = {
358
+ reviews: {
359
+ include: {
360
+ comments: true
361
+ }
362
+ }
363
+ } satisfies Prisma.UserSelect;
364
+
365
+
366
+ export type PublicUser = Pick<UserExt, keyof typeof FRONT_END_USER_DATA_TO_SELECT>
367
+ & Partial<Pick<UserExt, keyof typeof USER_DATA_SELECT_REVIEWS_COMMENTS>>;