@bash-app/bash-common 6.16.1 → 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.1",
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",
@@ -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>>;