@bash-app/bash-common 29.18.10 → 29.19.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.18.10",
3
+ "version": "29.19.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",
@@ -900,6 +900,7 @@ model User {
900
900
  serviceSubcriptions ServiceSubscription[]
901
901
  volunteerService VolunteerService[]
902
902
  rate Rate[]
903
+ StripeAccount StripeAccount[]
903
904
  }
904
905
 
905
906
  model Contact {
@@ -1031,11 +1032,17 @@ model Service {
1031
1032
  }
1032
1033
 
1033
1034
  model StripeAccount {
1034
- id String @id @default(cuid())
1035
+ id String @id @default(cuid())
1036
+
1037
+ ownerId String
1038
+ owner User @relation(fields: [ownerId], references: [id])
1039
+
1035
1040
  stripeAccountId String
1036
- createdAt DateTime @default(now())
1037
- updatedAt DateTime @updatedAt
1038
- service Service[]
1041
+
1042
+ createdAt DateTime @default(now())
1043
+ updatedAt DateTime @updatedAt
1044
+
1045
+ service Service[]
1039
1046
  }
1040
1047
 
1041
1048
  model VolunteerService {
@@ -297,7 +297,7 @@ export type BashEventStripeSessionRedirect = {
297
297
  bashEvent: BashEventExt;
298
298
  } & StripeSessionRedirect;
299
299
 
300
- export type StripeLinkingStatus = "Complete" | "Incomplete";
300
+ // export type StripeLinkingStatus = "Complete" | "Incomplete";
301
301
 
302
302
  export interface StripeBusinessDataOwned {
303
303
  logo?: string;
@@ -312,7 +312,7 @@ export interface StripeBusinessDataOwned {
312
312
  paymentsEnabled: boolean;
313
313
  createdDate: Date;
314
314
  updatedDate: Date;
315
- linkingStatus: StripeLinkingStatus; //enum
315
+ linkingStatus: boolean;
316
316
  taxMonitoringEnabled: boolean;
317
317
  }
318
318