@a_team/prisma 3.13.0-macos-docker-linux → 3.13.1-linux

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "prisma-client-2ded482b7a54b384d2f71d7dc12df87d5c8186c4a24150f7108cf2c00d0c605f",
2
+ "name": "prisma-client-13967ae919ffb3598ada296f1b0e3991300d150460fa405bc90cbda51cc7938a",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -135,49 +135,67 @@ enum EventStatus {
135
135
  created
136
136
  accepted
137
137
  rejected
138
- rescheduled
139
- deleted
140
138
  canceled
141
139
  }
142
140
 
143
141
  type Attendee {
144
- email String
145
- name String?
146
- timezone String?
142
+ email String
143
+ name String?
144
+ timezone String?
145
+ emailFrom String?
146
+ emailCC String?
147
+ isGuest Boolean? @default(false)
148
+ recordingOptOut Boolean? @default(false)
149
+ }
150
+
151
+ type EventMetadata {
152
+ message String
153
+ companyName String?
154
+ interviewRoleDescription String?
155
+ roleAndMissionTitle String?
156
+ proposalId String?
157
+ }
158
+
159
+ type VideoCallData {
160
+ id String
161
+ type String
162
+ url String
163
+ password String?
147
164
  }
148
165
 
149
166
  model CalendarEvent {
150
- id String @id @default(auto()) @map("_id") @db.ObjectId
151
- calendarEventId String? // events with no auto confirmation won't initially have the event id.
152
- userId String @db.ObjectId
153
- eventOwner User @relation(fields: [userId], references: [id], name: "eventOwner")
154
- calendarId String @db.ObjectId
155
- calendar Calendar @relation(fields: [calendarId], references: [id], name: "calendar")
156
- eventTypeId String @db.ObjectId
157
- eventType CalendarEventType @relation(fields: [eventTypeId], references: [id], name: "eventType")
158
- attendees Attendee[]
159
- rescheduledBy String? @db.ObjectId
160
- reschedulingUser User? @relation(fields: [rescheduledBy], references: [id], name: "reschedulingUser")
161
- status EventStatus
162
- startTime String
163
- endTime String
164
- summary String?
165
- description String?
166
- callUrl String? // URL of the daily.co or any video call provider
167
- callId String? // id of the call link e.g. daily.co room id
168
- clientRecordingOptOut Boolean @default(false)
169
- cancellationReason String? // in case of cancellation we ask for the reason
170
- createdAt DateTime
171
- updatedAt DateTime
172
- clientInterview ClientInterview?
173
-
174
- @@unique([calendarEventId])
175
- @@index([userId])
167
+ id String @id @default(auto()) @map("_id") @db.ObjectId
168
+ calendarEventId String? // events with no auto confirmation won't initially have the event id.
169
+ eventTypeId String @db.ObjectId
170
+ eventType CalendarEventType @relation(fields: [eventTypeId], references: [id], name: "eventType")
171
+ eventOwnerId String @db.ObjectId
172
+ eventOwner User @relation(fields: [eventOwnerId], references: [id], name: "eventOwner")
173
+ calendarId String @db.ObjectId
174
+ calendar Calendar @relation(fields: [calendarId], references: [id], name: "calendar")
175
+ title String?
176
+ description String?
177
+ startTime String
178
+ endTime String
179
+ status EventStatus
180
+ attendees Attendee[]
181
+ metadata EventMetadata?
182
+ videoCallData VideoCallData?
183
+ cancellationReason String?
184
+ rescheduledBy String? @db.ObjectId
185
+ reschedulingUser User? @relation(fields: [rescheduledBy], references: [id], name: "reschedulingUser")
186
+ rescheduleReason String?
187
+ rescheduleStartTime String?
188
+ rescheduleEndTime String?
189
+ createdAt DateTime
190
+ updatedAt DateTime
191
+ clientInterview ClientInterview?
192
+
193
+ @@index([eventOwnerId])
176
194
  @@index([calendarId])
177
195
  @@index([eventTypeId])
178
196
  @@index([status])
179
197
  @@index([startTime, endTime])
180
- @@index([userId, status])
198
+ @@index([eventOwnerId, status])
181
199
  @@index([calendarId, startTime, endTime])
182
200
  @@map("calendarEvents")
183
201
  }
@@ -191,6 +209,7 @@ enum EventType {
191
209
  model CalendarEventType {
192
210
  id String @id @default(auto()) @map("_id") @db.ObjectId
193
211
  type EventType
212
+ title String
194
213
  minimumBookingNotice Int @default(1440) // provided in minutes. Defaults to 24 hours
195
214
  bookingTime Int @default(30) // default booking time is 30 minutes
196
215
  reminders Int[] // array of minutes to send reminder before
@@ -157,19 +157,19 @@ exports.Prisma.CalendarAvailabilityScalarFieldEnum = {
157
157
  exports.Prisma.CalendarEventScalarFieldEnum = {
158
158
  id: 'id',
159
159
  calendarEventId: 'calendarEventId',
160
- userId: 'userId',
161
- calendarId: 'calendarId',
162
160
  eventTypeId: 'eventTypeId',
163
- rescheduledBy: 'rescheduledBy',
164
- status: 'status',
161
+ eventOwnerId: 'eventOwnerId',
162
+ calendarId: 'calendarId',
163
+ title: 'title',
164
+ description: 'description',
165
165
  startTime: 'startTime',
166
166
  endTime: 'endTime',
167
- summary: 'summary',
168
- description: 'description',
169
- callUrl: 'callUrl',
170
- callId: 'callId',
171
- clientRecordingOptOut: 'clientRecordingOptOut',
167
+ status: 'status',
172
168
  cancellationReason: 'cancellationReason',
169
+ rescheduledBy: 'rescheduledBy',
170
+ rescheduleReason: 'rescheduleReason',
171
+ rescheduleStartTime: 'rescheduleStartTime',
172
+ rescheduleEndTime: 'rescheduleEndTime',
173
173
  createdAt: 'createdAt',
174
174
  updatedAt: 'updatedAt'
175
175
  };
@@ -177,6 +177,7 @@ exports.Prisma.CalendarEventScalarFieldEnum = {
177
177
  exports.Prisma.CalendarEventTypeScalarFieldEnum = {
178
178
  id: 'id',
179
179
  type: 'type',
180
+ title: 'title',
180
181
  minimumBookingNotice: 'minimumBookingNotice',
181
182
  bookingTime: 'bookingTime',
182
183
  reminders: 'reminders',
@@ -520,8 +521,6 @@ exports.EventStatus = exports.$Enums.EventStatus = {
520
521
  created: 'created',
521
522
  accepted: 'accepted',
522
523
  rejected: 'rejected',
523
- rescheduled: 'rescheduled',
524
- deleted: 'deleted',
525
524
  canceled: 'canceled'
526
525
  };
527
526
 
package/package.json CHANGED
@@ -1,7 +1,9 @@
1
1
  {
2
2
  "name": "@a_team/prisma",
3
- "version": "3.13.0-macos-docker-linux",
4
- "os": [],
3
+ "version": "3.13.1-linux",
4
+ "os": [
5
+ "linux"
6
+ ],
5
7
  "cpu": [],
6
8
  "keywords": [],
7
9
  "prisma": {