@bash-app/bash-common 29.18.8 → 29.18.10

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": "29.18.8",
3
+ "version": "29.18.10",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -187,60 +187,60 @@ model Invitation {
187
187
  }
188
188
 
189
189
  model BashEvent {
190
- id String @id @default(cuid())
191
- title String
192
- creatorId String
193
- creator User @relation("CreatedEvent", fields: [creatorId], references: [id], onDelete: Cascade)
194
- description String?
195
- eventType String @default("Other")
196
- startDateTime DateTime? @default(now())
197
- endDateTime DateTime? @default(now())
198
- ticketTiers TicketTier[]
199
- targetAudienceId String? @unique
200
- targetAudience TargetAudience? @relation(fields: [targetAudienceId], references: [id], onDelete: Cascade)
201
- amountOfGuestsId String? @unique
202
- amountOfGuests AmountOfGuests? @relation(fields: [amountOfGuestsId], references: [id], onDelete: Cascade)
203
- recurrence Recurrence?
204
- vibe String?
205
- occasion String?
206
- dress String?
207
- allowed String?
208
- notAllowed String?
209
- nonProfit Boolean?
210
- nonProfitId String?
211
- privacy Privacy @default(Public)
212
- tickets Ticket[]
213
- reviews Review[]
214
- sponsorships SponsoredEvent[]
215
- investments Investment[]
216
- capacity Int?
217
- location String?
218
- status BashStatus @default(Draft)
219
- tags String[]
220
- coverPhoto String?
221
- media Media[]
222
- club Club? @relation(fields: [clubId], references: [id], onDelete: SetNull)
223
- clubId String?
224
- links EventLink[]
225
- competitions Competition[]
226
- invitations Invitation[]
227
- dateTimePublished DateTime?
228
- comments BashComment[]
229
- includedItems String[]
230
- associatedBashesReferencingMe AssociatedBash[] //maybe rename later to AssociatedWithABash
190
+ id String @id @default(cuid())
191
+ title String
192
+ creatorId String
193
+ creator User @relation("CreatedEvent", fields: [creatorId], references: [id], onDelete: Cascade)
194
+ description String?
195
+ eventType String @default("Other")
196
+ startDateTime DateTime? @default(now())
197
+ endDateTime DateTime? @default(now())
198
+ ticketTiers TicketTier[]
199
+ targetAudienceId String? @unique
200
+ targetAudience TargetAudience? @relation(fields: [targetAudienceId], references: [id], onDelete: Cascade)
201
+ amountOfGuestsId String? @unique
202
+ amountOfGuests AmountOfGuests? @relation(fields: [amountOfGuestsId], references: [id], onDelete: Cascade)
203
+ recurrence Recurrence?
204
+ vibe String?
205
+ occasion String?
206
+ dress String?
207
+ allowed String?
208
+ notAllowed String?
209
+ nonProfit Boolean?
210
+ nonProfitId String?
211
+ privacy Privacy @default(Public)
212
+ tickets Ticket[]
213
+ reviews Review[]
214
+ sponsorships SponsoredEvent[]
215
+ investments Investment[]
216
+ capacity Int?
217
+ location String?
218
+ status BashStatus @default(Draft)
219
+ tags String[]
220
+ coverPhoto String?
221
+ media Media[]
222
+ club Club? @relation(fields: [clubId], references: [id], onDelete: SetNull)
223
+ clubId String?
224
+ links EventLink[]
225
+ competitions Competition[]
226
+ invitations Invitation[]
227
+ dateTimePublished DateTime?
228
+ comments BashComment[]
229
+ includedItems String[]
230
+ associatedBashesReferencingMe AssociatedBash[] //maybe rename later to AssociatedWithABash
231
231
  associatedServicesReferencingMe Service[] //maybe rename later to AssociatedWithAService
232
- bashNotificationsReferencingMe BashNotification[]
233
- checkouts Checkout[]
234
- eventTasks EventTask[]
235
- videoLink String?
236
- subtitle String?
237
- isFeatured Boolean?
238
- isTrending Boolean?
239
- coordinates Coordinates[] // A BashEvent can have multiple sets of coordinates
232
+ bashNotificationsReferencingMe BashNotification[]
233
+ checkouts Checkout[]
234
+ eventTasks EventTask[]
235
+ videoLink String?
236
+ subtitle String?
237
+ isFeatured Boolean?
238
+ isTrending Boolean?
239
+ coordinates Coordinates[] // A BashEvent can have multiple sets of coordinates
240
240
  // stripeAccount StripeAccount[]
241
- rate Rate[]
242
- venueId String? // Nullable, meaning it's optional
243
- venue Venue? @relation(fields: [venueId], references: [id])
241
+ rate Rate[]
242
+ venueId String? // Nullable, meaning it's optional
243
+ venue Venue? @relation(fields: [venueId], references: [id])
244
244
  }
245
245
 
246
246
  model Coordinates {
@@ -928,10 +928,9 @@ model AssociatedBash {
928
928
  owner User? @relation(fields: [ownerUserId], references: [id], onDelete: Cascade)
929
929
  isOrganizer Boolean?
930
930
  isFavorite Boolean?
931
- service Service[]
931
+ service Service[]
932
932
 
933
933
  @@unique([ownerEmail, bashEventId])
934
-
935
934
  }
936
935
 
937
936
  //anyone that is invited to be an organizer of a service profile or is the creator/owner...for having others edit or post about a service in the bashfeed (but the service must be associated with a bash to post)
@@ -969,7 +968,7 @@ model Service {
969
968
  createdAt DateTime @default(now())
970
969
  updatedAt DateTime @updatedAt
971
970
 
972
- associatedBashesReferencingMe AssociatedBash[]
971
+ associatedBashesReferencingMe AssociatedBash[]
973
972
  associatedServicesReferencingMe AssociatedService[]
974
973
 
975
974
  serviceName String?
@@ -12,7 +12,7 @@ import {
12
12
  User,
13
13
  YearsOfExperience
14
14
  } from "@prisma/client";
15
- import { ServiceExt, CheckoutExt, PublicUser, VolunteerServiceExt} from "./extendedSchemas";
15
+ import { ServiceExt, CheckoutExt, PublicUser, VolunteerServiceExt, BashEventExt} from "./extendedSchemas";
16
16
 
17
17
  export const PASSWORD_MIN_LENGTH = 10 as const;
18
18
  export const PASSWORD_REQUIREMENTS_REGEX = new RegExp(String.raw`^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{${PASSWORD_MIN_LENGTH},}$`);
@@ -285,18 +285,35 @@ export interface StripeCreateBashEventDonationCheckoutSessionArgs {
285
285
  donationAmount: number;
286
286
  }
287
287
 
288
- export interface StripeSessionRedirect {
288
+ export type StripeSessionRedirect = {
289
289
  redirectUrl: string;
290
290
  }
291
291
 
292
- export interface ServiceStripeSessionRedirect {
292
+ export type ServiceStripeSessionRedirect = {
293
293
  service: ServiceExt;
294
- redirectUrl: string;
295
- }
294
+ } & StripeSessionRedirect;
296
295
 
297
- export interface BashEventStripeSessionRedirect {
298
- service: ServiceExt;
299
- redirectUrl: string;
296
+ export type BashEventStripeSessionRedirect = {
297
+ bashEvent: BashEventExt;
298
+ } & StripeSessionRedirect;
299
+
300
+ export type StripeLinkingStatus = "Complete" | "Incomplete";
301
+
302
+ export interface StripeBusinessDataOwned {
303
+ logo?: string;
304
+ businessName?: string;
305
+ businessNameDBA?: string;
306
+ email: string;
307
+ phone: string;
308
+ website: string;
309
+ address: string;
310
+ accountType: string;
311
+ bankAccount: string;
312
+ paymentsEnabled: boolean;
313
+ createdDate: Date;
314
+ updatedDate: Date;
315
+ linkingStatus: StripeLinkingStatus; //enum
316
+ taxMonitoringEnabled: boolean;
300
317
  }
301
318
 
302
319
  export interface StripeConfirmPayment {