@bash-app/bash-common 29.39.0 → 29.40.1

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.39.0",
3
+ "version": "29.40.1",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -943,10 +943,11 @@ model ServiceSubscription {
943
943
  }
944
944
 
945
945
  model ServiceListingSubscription {
946
- id String @id @default(cuid())
946
+ id String @id @default(cuid())
947
947
  stripeAccountId String
948
- stripeCheckoutSessionId String? @unique
949
- stripeSubscriptionId String? @unique
948
+ stripeAccount StripeAccount @relation(fields: [stripeAccountId], references: [id], onDelete: Restrict, onUpdate: Restrict)
949
+ stripeCheckoutSessionId String? @unique
950
+ stripeSubscriptionId String? @unique
950
951
 
951
952
  subscriptionStatus ServiceSubscriptionStatus @default(None)
952
953
 
@@ -1059,7 +1060,8 @@ model StripeAccount {
1059
1060
  createdAt DateTime @default(now())
1060
1061
  updatedAt DateTime @updatedAt
1061
1062
 
1062
- service Service[]
1063
+ service Service[]
1064
+ ServiceListingSubscription ServiceListingSubscription[]
1063
1065
 
1064
1066
  @@index([ownerId])
1065
1067
  }
@@ -288,6 +288,8 @@ export interface StripeCreateServiceSubscriptionCheckoutSessionArgs {
288
288
  currency: string;
289
289
  paymentMethodType: string;
290
290
  promoCode?: string;
291
+ successUrl?: string;
292
+ returnUrl?: string;
291
293
  }
292
294
 
293
295