@bash-app/bash-common 29.34.0 → 29.35.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.34.0",
3
+ "version": "29.35.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",
@@ -816,6 +816,42 @@ enum SponsorType {
816
816
  CompetitionPrizeProvider
817
817
  }
818
818
 
819
+ model SocialMediaProfile {
820
+ id String @id @default(uuid())
821
+ platform SocialMediaPlatform // Enum type for platform
822
+ url String // URL to the social media profile
823
+ user User @relation(fields: [userId], references: [id])
824
+ userId String
825
+
826
+ @@unique([userId, platform]) // Ensure each user has only one profile per platform
827
+ }
828
+
829
+ enum SocialMediaPlatform {
830
+ Facebook
831
+ Instagram
832
+ LinkedIn
833
+ TikTok
834
+ X
835
+ YouTube
836
+ Snapchat
837
+ Pinterest
838
+ Reddit
839
+ WhatsApp
840
+ Messenger
841
+ Telegram
842
+ Discord
843
+ Clubhouse
844
+ Twitch
845
+ Medium
846
+ BeReal
847
+ Mastodon
848
+ Tumblr
849
+ Threads
850
+ WeChat
851
+ Vk
852
+ Line
853
+ }
854
+
819
855
  model User {
820
856
  id String @id @default(cuid())
821
857
  email String @unique
@@ -863,6 +899,7 @@ model User {
863
899
  zipCode String?
864
900
  country String? @default("US")
865
901
  phone String?
902
+ socialMediaProfiles SocialMediaProfile[]
866
903
  documentIDId String? @unique
867
904
  documentID DocumentID?
868
905
  comment BashComment[]
@@ -283,14 +283,6 @@ export interface StripeCreateBashEventDonationCheckoutSessionArgs {
283
283
  donationAmount: number;
284
284
  }
285
285
 
286
- export interface StripeCreateServiceSubscriptionCheckoutSessionArgs {
287
- serviceId: string;
288
- currency: string;
289
- paymentMethodType: string;
290
- promoCode?: string;
291
- }
292
-
293
-
294
286
  export type StripeSessionRedirect = {
295
287
  stripeAccountIdDB: string;
296
288
  redirectUrl: string;