@bash-app/bash-common 29.35.0 → 29.35.2

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.35.0",
3
+ "version": "29.35.2",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -817,13 +817,14 @@ enum SponsorType {
817
817
  }
818
818
 
819
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
820
+ id String @id @default(uuid())
821
+ platform SocialMediaPlatform
822
+ url String
823
+ visibility VisibilityPreference @default(Private)
824
+ user User @relation(fields: [userId], references: [id])
825
+ userId String
825
826
 
826
- @@unique([userId, platform]) // Ensure each user has only one profile per platform
827
+ @@unique([userId, platform])
827
828
  }
828
829
 
829
830
  enum SocialMediaPlatform {
@@ -36,6 +36,7 @@ import {
36
36
  ServiceSpecialRates,
37
37
  ServiceAddon,
38
38
  ServicePackage,
39
+ SocialMediaProfile,
39
40
  } from "@prisma/client";
40
41
  import { SERVICE_LINK_DATA_TO_INCLUDE, UnionFromArray, VENUE_DATA_TO_INCLUDE } from "./definitions";
41
42
 
@@ -510,6 +511,7 @@ export interface UserExt extends User {
510
511
  ticketsIOwn?: TicketExt[] | null;
511
512
  ownedServices?: ServiceExt[];
512
513
  createdServices?: ServiceExt[];
514
+ socialMediaProfiles: SocialMediaProfile[];
513
515
  }
514
516
 
515
517
  export const USER_DATA_SELECT_REVIEWS_COMMENTS = {