@bash-app/bash-common 6.16.0 → 7.0.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": "6.16.0",
3
+ "version": "7.0.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",
@@ -802,7 +802,7 @@ model Service {
802
802
  streetAddress String
803
803
  city String
804
804
  state String
805
- postalCode String
805
+ postalCode String
806
806
  country String
807
807
  phone String
808
808
  privacy Privacy @default(Public)
@@ -31,7 +31,7 @@ export const PRIVATE_USER_ACCOUNT_TO_SELECT = {
31
31
  streetAddress: true,
32
32
  city: true,
33
33
  state: true,
34
- zipCode: true,
34
+ postalCode: true,
35
35
  country: true,
36
36
  phone: true,
37
37
  }
@@ -77,7 +77,7 @@ export const BASH_EVENT_DATA_TO_CLONE = [
77
77
  'promoCodes',
78
78
  ] as const;
79
79
 
80
- export interface BashNotificationsExt extends BashNotification {
80
+ export interface BashNotificationExt extends BashNotification {
81
81
  creator?: User;
82
82
  bashEvent?: BashEvent;
83
83
  eventTask?: EventTask;
@@ -85,6 +85,20 @@ export interface BashNotificationsExt extends BashNotification {
85
85
  reminders?: Reminder[];
86
86
  }
87
87
 
88
+ export const BASH_NOTIFICATION_DATA_TO_INCLUDE = {
89
+ bashEvent: {
90
+ select: {
91
+ coverPhoto: true,
92
+ },
93
+ },
94
+ creator: {
95
+ select: {
96
+ image: true,
97
+ },
98
+ },
99
+
100
+ }
101
+
88
102
  type RemoveCommonProperties<T, U> = keyof (Omit<T, keyof U> & Omit<U, keyof T>);
89
103
  type UnionFromArray<T extends ReadonlyArray<any>> = T[number];
90
104
  type BashEventExtMinusDataToCloneType = Omit<BashEventExt, UnionFromArray<typeof BASH_EVENT_DATA_TO_CLONE>>;