@bash-app/bash-common 30.0.0 → 30.2.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": "30.0.0",
3
+ "version": "30.2.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",
@@ -99,7 +99,8 @@ model EventTask {
99
99
  creator User @relation(fields: [creatorId], references: [id], onDelete: Cascade)
100
100
  bashEventId String
101
101
  bashEvent BashEvent @relation(fields: [bashEventId], references: [id], onDelete: Cascade)
102
- description String
102
+ title String @default("")
103
+ description String?
103
104
  assignedToId String?
104
105
  assignedTo User? @relation("TasksAssignedToMe", fields: [assignedToId], references: [id], onDelete: Cascade)
105
106
  status TaskStatus?
@@ -111,6 +112,8 @@ enum TaskStatus {
111
112
  Accepted
112
113
  Rejected
113
114
  Completed
115
+ Assigned
116
+ Open
114
117
  }
115
118
 
116
119
  model Reminder {
@@ -196,7 +199,7 @@ model BashEvent {
196
199
  title String
197
200
  creatorId String
198
201
  creator User @relation("CreatedEvent", fields: [creatorId], references: [id], onDelete: Cascade)
199
- createdAt DateTime @default(now())
202
+ createdAt DateTime? @default(now())
200
203
  isApproved Boolean? @default(false)
201
204
  description String?
202
205
  eventType String @default("Other")
@@ -516,11 +516,12 @@ export const VENUE_DATA_TO_REMOVE: RemoveCommonProperties<
516
516
  //-----------------------------------------
517
517
 
518
518
  export interface BashNotificationExt extends BashNotification {
519
- creator?: PublicUser;
520
519
  bashEvent?: BashEvent;
520
+ creator?: PublicUser;
521
+ eventTask?: EventTask;
522
+ userAction?: string;
521
523
  service?: ServiceExt;
522
524
  serviceBooking?: ServiceBookingExt;
523
- eventTask?: EventTask;
524
525
  invitation?: Invitation;
525
526
  reminders?: Reminder[];
526
527
  }