@bash-app/bash-common 29.63.0 → 29.64.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bash-app/bash-common",
3
- "version": "29.63.0",
3
+ "version": "29.64.0",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -191,7 +191,8 @@ model BashEvent {
191
191
  title String
192
192
  creatorId String
193
193
  creator User @relation("CreatedEvent", fields: [creatorId], references: [id], onDelete: Cascade)
194
- isApproved Boolean?
194
+ createdAt DateTime @default(now())
195
+ isApproved Boolean? @default(false)
195
196
  description String?
196
197
  eventType String @default("Other")
197
198
  startDateTime DateTime? @default(now())
@@ -613,8 +614,10 @@ enum Education {
613
614
 
614
615
  enum BashStatus {
615
616
  Draft
617
+ Pending
616
618
  PreSale
617
619
  Published
620
+ Finished
618
621
  }
619
622
 
620
623
  enum ServiceStatus {
@@ -750,19 +753,18 @@ enum PrizeType {
750
753
 
751
754
  model Review {
752
755
  id String @id @default(cuid())
753
- rating Int // Star rating, required
754
- creatorId String // ID of the user who created the review
756
+ rating Int // Star rating, required
757
+ creatorId String // ID of the user who created the review
755
758
  creator User @relation(fields: [creatorId], references: [id], onDelete: Cascade)
756
- bashEventId String // ID of the bash event being reviewed
759
+ bashEventId String // ID of the bash event being reviewed
757
760
  bashEvent BashEvent @relation(fields: [bashEventId], references: [id], onDelete: Cascade)
758
761
  comments BashComment[] // Optional comments tied to the review
759
762
  createdAt DateTime @default(now()) // Timestamp for when the review was created
760
- updatedAt DateTime @updatedAt // Auto-updated timestamp for edits
763
+ updatedAt DateTime @updatedAt // Auto-updated timestamp for edits
761
764
 
762
765
  @@unique([creatorId, bashEventId]) // Prevent duplicate reviews for the same bash by a user
763
766
  }
764
767
 
765
-
766
768
  model GoogleReview {
767
769
  id String @id @default(cuid())
768
770
  author_name String?
@@ -310,6 +310,7 @@ export enum ApiErrorType {
310
310
  StripeCheckoutSessionIncomplete,
311
311
  CouldNotSendEmail,
312
312
  TicketTierHiddenAsAtLeastOneTicketHasAlreadyBeenPurchased,
313
+ PaymentMethodNotSetup,
313
314
  }
314
315
 
315
316
  export type ErrorDataType = Record<RecordKey, any>;
@@ -339,6 +340,17 @@ export interface UserSubscriptionData {
339
340
  subscriptionType: UserSubscriptionType;
340
341
  }
341
342
 
343
+ export interface StripePaymentMethod {
344
+ id: string;
345
+
346
+ customerName: string;
347
+
348
+ lastFour: string;
349
+ expMonth: number;
350
+ expYear: number;
351
+ country: string;
352
+ }
353
+
342
354
  export interface StripeCreateBashEventTicketsCheckoutSessionArgs {
343
355
  bashEventId: string;
344
356
  currency: string;
@@ -365,6 +377,18 @@ export interface StripeCreateAccountPortalSessionArgs {
365
377
  returnUrl: string;
366
378
  }
367
379
 
380
+ export interface GenericPrompt {
381
+ prompt?: string;
382
+ }
383
+
384
+ export interface GenericDescription {
385
+ description: string;
386
+ }
387
+
388
+ export interface GenericTitle {
389
+ title: string;
390
+ }
391
+
368
392
  export type StripeSessionRedirect = {
369
393
  stripeAccountIdDB: string;
370
394
  redirectUrl: string;