@a_team/prisma 3.11.0-macos-docker-linux → 3.11.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-75037644275ab3e6c6093de6253f9c07911dd2146aea2573f6c48b18d1ad750a",
2
+ "name": "prisma-client-882f3179ae67dcca98689f5019638264b30d813c27274da25fc2230812838b08",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -72,13 +72,15 @@ enum BillingPaymentDue {
72
72
  Net120
73
73
  }
74
74
 
75
- type Credentials {
76
- scope String?
77
- id_token String?
78
- refresh_token String?
79
- expiry_date Int?
80
- access_token String?
81
- token_type String?
75
+ type CalendarCredentials {
76
+ scope String?
77
+ id_token String?
78
+ refresh_token String?
79
+ expiry_date Int?
80
+ access_token String?
81
+ token_type String?
82
+ email String?
83
+ ext_expires_in Int?
82
84
  }
83
85
 
84
86
  enum CalendarProvider {
@@ -88,18 +90,17 @@ enum CalendarProvider {
88
90
  }
89
91
 
90
92
  model Calendar {
91
- id String @id @default(auto()) @map("_id") @db.ObjectId
92
- credentials Credentials
93
+ id String @id @default(auto()) @map("_id") @db.ObjectId
94
+ credentials CalendarCredentials
93
95
  calendarId String
94
96
  provider CalendarProvider
95
- userId String @unique @db.ObjectId
96
- calendarUser User @relation(fields: [userId], references: [id], name: "calendarUser")
97
- createdAt DateTime @default(now()) @db.Date
98
- updatedAt DateTime @updatedAt @db.Date
99
- events CalendarEvent[] @relation("calendar")
97
+ userId String @unique @db.ObjectId
98
+ calendarUser User @relation(fields: [userId], references: [id], name: "calendarUser")
99
+ createdAt DateTime @default(now()) @db.Date
100
+ updatedAt DateTime @updatedAt @db.Date
101
+ events CalendarEvent[] @relation("calendar")
100
102
 
101
103
  @@unique([userId, provider])
102
- @@unique([calendarId, provider])
103
104
  @@index([provider])
104
105
  @@index([createdAt(sort: Desc)])
105
106
  @@map("calendars")
@@ -197,7 +198,7 @@ model CalendarEventType {
197
198
  updatedAt DateTime
198
199
  availabilities CalendarAvailability[] @relation("eventTypeAvailability")
199
200
 
200
- @@index([type])
201
+ @@unique([type])
201
202
  @@index([autoConfirm])
202
203
  @@map("calendarEventTypes")
203
204
  }
@@ -1310,18 +1311,13 @@ type UserEventType {
1310
1311
  bookingFrequency BookingFrequency?
1311
1312
  }
1312
1313
 
1313
- type CalendarSettings {
1314
- shouldAutoRecord Boolean @default(true)
1315
- isAvailable Boolean @default(true)
1316
- eventTypes UserEventType[]
1317
- }
1318
-
1319
1314
  type Preferences {
1320
1315
  disableSuggestionsTimeLimit Boolean?
1321
1316
  hasAcceptedYouAreIn Boolean?
1322
1317
  dismissedLinkedinBannerAt Boolean?
1323
1318
  lastLinkedInRecommendationsFetch Boolean?
1324
- calendarSettings CalendarSettings?
1319
+ shouldAutoRecord Boolean @default(true)
1320
+ bookingFrequency BookingFrequency?
1325
1321
  }
1326
1322
 
1327
1323
  model UserPreference {
package/package.json CHANGED
@@ -1,7 +1,9 @@
1
1
  {
2
2
  "name": "@a_team/prisma",
3
- "version": "3.11.0-macos-docker-linux",
4
- "os": [],
3
+ "version": "3.11.1-linux",
4
+ "os": [
5
+ "linux"
6
+ ],
5
7
  "cpu": [],
6
8
  "keywords": [],
7
9
  "scripts": {