@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 +1 -1
- package/src/extendedSchemas.ts +15 -1
package/package.json
CHANGED
package/src/extendedSchemas.ts
CHANGED
|
@@ -77,7 +77,7 @@ export const BASH_EVENT_DATA_TO_CLONE = [
|
|
|
77
77
|
'promoCodes',
|
|
78
78
|
] as const;
|
|
79
79
|
|
|
80
|
-
export interface
|
|
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>>;
|