@bash-app/bash-common 25.1.5 → 25.2.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": "25.1.5",
3
+ "version": "25.2.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",
@@ -888,6 +888,8 @@ model Business {
888
888
  id String @id @default(cuid())
889
889
  ownerId String
890
890
  owner User @relation(fields: [ownerId], references: [id], onDelete: Cascade)
891
+ stripeServiceCustomerId String? @unique
892
+ stripeBusinessId String? @unique
891
893
  dateCreated DateTime @default(now())
892
894
  email String
893
895
  street String
@@ -231,10 +231,15 @@ export interface StripeConfirmPayment {
231
231
  }
232
232
 
233
233
  export interface StripeAccountLinkArgs {
234
- userId: string;
234
+ userId?: string;
235
+ returnUrl: string;
236
+ refreshUrl: string;
237
+ }
238
+
239
+ export interface StripeBusinessLinkArgs {
240
+ businessId: string;
235
241
  returnUrl: string;
236
242
  refreshUrl: string;
237
- businessId?: string;
238
243
  }
239
244
 
240
245
  export interface StripeConfirmPaymentResult {