@virtality/schema 0.0.1-alpha0.2.9 → 0.0.1-alpha0.3.1
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 +7 -6
- package/prisma/generated/browser.d.ts +48 -43
- package/prisma/generated/client.d.ts +51 -46
- package/prisma/generated/client.js +3 -3
- package/prisma/generated/commonInputTypes.d.ts +170 -170
- package/prisma/generated/internal/class.d.ts +108 -97
- package/prisma/generated/internal/class.js +4 -4
- package/prisma/generated/internal/prismaNamespace.d.ts +1039 -940
- package/prisma/generated/internal/prismaNamespace.js +135 -128
- package/prisma/generated/internal/prismaNamespaceBrowser.d.ts +146 -138
- package/prisma/generated/internal/prismaNamespaceBrowser.js +131 -124
- package/prisma/generated/models/Account.d.ts +8 -20
- package/prisma/generated/models/Avatar.d.ts +6 -0
- package/prisma/generated/models/Device.d.ts +14 -8
- package/prisma/generated/models/Exercise.d.ts +42 -42
- package/prisma/generated/models/Patient.d.ts +60 -60
- package/prisma/generated/models/PatientProgram.d.ts +71 -71
- package/prisma/generated/models/PatientSession.d.ts +153 -153
- package/prisma/generated/models/PresetExercise.d.ts +0 -7
- package/prisma/generated/models/ReferralCode.d.ts +1153 -0
- package/prisma/generated/models/ReferralCode.js +1 -0
- package/prisma/generated/models/User.d.ts +268 -88
- package/prisma/generated/models.d.ts +15 -14
|
@@ -9,11 +9,11 @@ export interface PrismaClientConstructor {
|
|
|
9
9
|
* @example
|
|
10
10
|
* ```
|
|
11
11
|
* const prisma = new PrismaClient()
|
|
12
|
-
* // Fetch zero or more
|
|
13
|
-
* const
|
|
12
|
+
* // Fetch zero or more Avatars
|
|
13
|
+
* const avatars = await prisma.avatar.findMany()
|
|
14
14
|
* ```
|
|
15
15
|
*
|
|
16
|
-
* Read more in our [docs](https://
|
|
16
|
+
* Read more in our [docs](https://pris.ly/d/client).
|
|
17
17
|
*/
|
|
18
18
|
new <Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, LogOpts extends LogOptions<Options> = LogOptions<Options>, OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends {
|
|
19
19
|
omit: infer U;
|
|
@@ -26,11 +26,11 @@ export interface PrismaClientConstructor {
|
|
|
26
26
|
* @example
|
|
27
27
|
* ```
|
|
28
28
|
* const prisma = new PrismaClient()
|
|
29
|
-
* // Fetch zero or more
|
|
30
|
-
* const
|
|
29
|
+
* // Fetch zero or more Avatars
|
|
30
|
+
* const avatars = await prisma.avatar.findMany()
|
|
31
31
|
* ```
|
|
32
32
|
*
|
|
33
|
-
* Read more in our [docs](https://
|
|
33
|
+
* Read more in our [docs](https://pris.ly/d/client).
|
|
34
34
|
*/
|
|
35
35
|
export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = undefined, in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> {
|
|
36
36
|
[K: symbol]: {
|
|
@@ -52,7 +52,7 @@ export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out
|
|
|
52
52
|
* const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
|
|
53
53
|
* ```
|
|
54
54
|
*
|
|
55
|
-
* Read more in our [docs](https://
|
|
55
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
56
56
|
*/
|
|
57
57
|
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
58
58
|
/**
|
|
@@ -63,7 +63,7 @@ export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out
|
|
|
63
63
|
* const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
|
|
64
64
|
* ```
|
|
65
65
|
*
|
|
66
|
-
* Read more in our [docs](https://
|
|
66
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
67
67
|
*/
|
|
68
68
|
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
69
69
|
/**
|
|
@@ -73,7 +73,7 @@ export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out
|
|
|
73
73
|
* const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
|
|
74
74
|
* ```
|
|
75
75
|
*
|
|
76
|
-
* Read more in our [docs](https://
|
|
76
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
77
77
|
*/
|
|
78
78
|
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
79
79
|
/**
|
|
@@ -84,7 +84,7 @@ export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out
|
|
|
84
84
|
* const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
|
|
85
85
|
* ```
|
|
86
86
|
*
|
|
87
|
-
* Read more in our [docs](https://
|
|
87
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
88
88
|
*/
|
|
89
89
|
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
90
90
|
/**
|
|
@@ -112,80 +112,91 @@ export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out
|
|
|
112
112
|
extArgs: ExtArgs;
|
|
113
113
|
}>>;
|
|
114
114
|
/**
|
|
115
|
-
* `prisma.
|
|
115
|
+
* `prisma.avatar`: Exposes CRUD operations for the **Avatar** model.
|
|
116
116
|
* Example usage:
|
|
117
117
|
* ```ts
|
|
118
|
-
* // Fetch zero or more
|
|
119
|
-
* const
|
|
118
|
+
* // Fetch zero or more Avatars
|
|
119
|
+
* const avatars = await prisma.avatar.findMany()
|
|
120
120
|
* ```
|
|
121
121
|
*/
|
|
122
|
-
get
|
|
122
|
+
get avatar(): Prisma.AvatarDelegate<ExtArgs, {
|
|
123
123
|
omit: OmitOpts;
|
|
124
124
|
}>;
|
|
125
125
|
/**
|
|
126
|
-
* `prisma.
|
|
126
|
+
* `prisma.map`: Exposes CRUD operations for the **Map** model.
|
|
127
127
|
* Example usage:
|
|
128
128
|
* ```ts
|
|
129
|
-
* // Fetch zero or more
|
|
130
|
-
* const
|
|
129
|
+
* // Fetch zero or more Maps
|
|
130
|
+
* const maps = await prisma.map.findMany()
|
|
131
131
|
* ```
|
|
132
132
|
*/
|
|
133
|
-
get
|
|
133
|
+
get map(): Prisma.MapDelegate<ExtArgs, {
|
|
134
134
|
omit: OmitOpts;
|
|
135
135
|
}>;
|
|
136
136
|
/**
|
|
137
|
-
* `prisma.
|
|
137
|
+
* `prisma.device`: Exposes CRUD operations for the **Device** model.
|
|
138
138
|
* Example usage:
|
|
139
139
|
* ```ts
|
|
140
|
-
* // Fetch zero or more
|
|
141
|
-
* const
|
|
140
|
+
* // Fetch zero or more Devices
|
|
141
|
+
* const devices = await prisma.device.findMany()
|
|
142
142
|
* ```
|
|
143
143
|
*/
|
|
144
|
-
get
|
|
144
|
+
get device(): Prisma.DeviceDelegate<ExtArgs, {
|
|
145
145
|
omit: OmitOpts;
|
|
146
146
|
}>;
|
|
147
147
|
/**
|
|
148
|
-
* `prisma.
|
|
148
|
+
* `prisma.user`: Exposes CRUD operations for the **User** model.
|
|
149
149
|
* Example usage:
|
|
150
150
|
* ```ts
|
|
151
|
-
* // Fetch zero or more
|
|
152
|
-
* const
|
|
151
|
+
* // Fetch zero or more Users
|
|
152
|
+
* const users = await prisma.user.findMany()
|
|
153
153
|
* ```
|
|
154
154
|
*/
|
|
155
|
-
get
|
|
155
|
+
get user(): Prisma.UserDelegate<ExtArgs, {
|
|
156
156
|
omit: OmitOpts;
|
|
157
157
|
}>;
|
|
158
158
|
/**
|
|
159
|
-
* `prisma.
|
|
159
|
+
* `prisma.account`: Exposes CRUD operations for the **Account** model.
|
|
160
160
|
* Example usage:
|
|
161
161
|
* ```ts
|
|
162
|
-
* // Fetch zero or more
|
|
163
|
-
* const
|
|
162
|
+
* // Fetch zero or more Accounts
|
|
163
|
+
* const accounts = await prisma.account.findMany()
|
|
164
164
|
* ```
|
|
165
165
|
*/
|
|
166
|
-
get
|
|
166
|
+
get account(): Prisma.AccountDelegate<ExtArgs, {
|
|
167
167
|
omit: OmitOpts;
|
|
168
168
|
}>;
|
|
169
169
|
/**
|
|
170
|
-
* `prisma.
|
|
170
|
+
* `prisma.session`: Exposes CRUD operations for the **Session** model.
|
|
171
171
|
* Example usage:
|
|
172
172
|
* ```ts
|
|
173
|
-
* // Fetch zero or more
|
|
174
|
-
* const
|
|
173
|
+
* // Fetch zero or more Sessions
|
|
174
|
+
* const sessions = await prisma.session.findMany()
|
|
175
175
|
* ```
|
|
176
176
|
*/
|
|
177
|
-
get
|
|
177
|
+
get session(): Prisma.SessionDelegate<ExtArgs, {
|
|
178
178
|
omit: OmitOpts;
|
|
179
179
|
}>;
|
|
180
180
|
/**
|
|
181
|
-
* `prisma.
|
|
181
|
+
* `prisma.verification`: Exposes CRUD operations for the **Verification** model.
|
|
182
182
|
* Example usage:
|
|
183
183
|
* ```ts
|
|
184
|
-
* // Fetch zero or more
|
|
185
|
-
* const
|
|
184
|
+
* // Fetch zero or more Verifications
|
|
185
|
+
* const verifications = await prisma.verification.findMany()
|
|
186
186
|
* ```
|
|
187
187
|
*/
|
|
188
|
-
get
|
|
188
|
+
get verification(): Prisma.VerificationDelegate<ExtArgs, {
|
|
189
|
+
omit: OmitOpts;
|
|
190
|
+
}>;
|
|
191
|
+
/**
|
|
192
|
+
* `prisma.referralCode`: Exposes CRUD operations for the **ReferralCode** model.
|
|
193
|
+
* Example usage:
|
|
194
|
+
* ```ts
|
|
195
|
+
* // Fetch zero or more ReferralCodes
|
|
196
|
+
* const referralCodes = await prisma.referralCode.findMany()
|
|
197
|
+
* ```
|
|
198
|
+
*/
|
|
199
|
+
get referralCode(): Prisma.ReferralCodeDelegate<ExtArgs, {
|
|
189
200
|
omit: OmitOpts;
|
|
190
201
|
}>;
|
|
191
202
|
/**
|
|
@@ -200,47 +211,47 @@ export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out
|
|
|
200
211
|
omit: OmitOpts;
|
|
201
212
|
}>;
|
|
202
213
|
/**
|
|
203
|
-
* `prisma.
|
|
214
|
+
* `prisma.waitingList`: Exposes CRUD operations for the **WaitingList** model.
|
|
204
215
|
* Example usage:
|
|
205
216
|
* ```ts
|
|
206
|
-
* // Fetch zero or more
|
|
207
|
-
* const
|
|
217
|
+
* // Fetch zero or more WaitingLists
|
|
218
|
+
* const waitingLists = await prisma.waitingList.findMany()
|
|
208
219
|
* ```
|
|
209
220
|
*/
|
|
210
|
-
get
|
|
221
|
+
get waitingList(): Prisma.WaitingListDelegate<ExtArgs, {
|
|
211
222
|
omit: OmitOpts;
|
|
212
223
|
}>;
|
|
213
224
|
/**
|
|
214
|
-
* `prisma.
|
|
225
|
+
* `prisma.bugReport`: Exposes CRUD operations for the **BugReport** model.
|
|
215
226
|
* Example usage:
|
|
216
227
|
* ```ts
|
|
217
|
-
* // Fetch zero or more
|
|
218
|
-
* const
|
|
228
|
+
* // Fetch zero or more BugReports
|
|
229
|
+
* const bugReports = await prisma.bugReport.findMany()
|
|
219
230
|
* ```
|
|
220
231
|
*/
|
|
221
|
-
get
|
|
232
|
+
get bugReport(): Prisma.BugReportDelegate<ExtArgs, {
|
|
222
233
|
omit: OmitOpts;
|
|
223
234
|
}>;
|
|
224
235
|
/**
|
|
225
|
-
* `prisma.
|
|
236
|
+
* `prisma.bugReportImage`: Exposes CRUD operations for the **BugReportImage** model.
|
|
226
237
|
* Example usage:
|
|
227
238
|
* ```ts
|
|
228
|
-
* // Fetch zero or more
|
|
229
|
-
* const
|
|
239
|
+
* // Fetch zero or more BugReportImages
|
|
240
|
+
* const bugReportImages = await prisma.bugReportImage.findMany()
|
|
230
241
|
* ```
|
|
231
242
|
*/
|
|
232
|
-
get
|
|
243
|
+
get bugReportImage(): Prisma.BugReportImageDelegate<ExtArgs, {
|
|
233
244
|
omit: OmitOpts;
|
|
234
245
|
}>;
|
|
235
246
|
/**
|
|
236
|
-
* `prisma.
|
|
247
|
+
* `prisma.exercise`: Exposes CRUD operations for the **Exercise** model.
|
|
237
248
|
* Example usage:
|
|
238
249
|
* ```ts
|
|
239
|
-
* // Fetch zero or more
|
|
240
|
-
* const
|
|
250
|
+
* // Fetch zero or more Exercises
|
|
251
|
+
* const exercises = await prisma.exercise.findMany()
|
|
241
252
|
* ```
|
|
242
253
|
*/
|
|
243
|
-
get
|
|
254
|
+
get exercise(): Prisma.ExerciseDelegate<ExtArgs, {
|
|
244
255
|
omit: OmitOpts;
|
|
245
256
|
}>;
|
|
246
257
|
/**
|
|
@@ -266,25 +277,36 @@ export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out
|
|
|
266
277
|
omit: OmitOpts;
|
|
267
278
|
}>;
|
|
268
279
|
/**
|
|
269
|
-
* `prisma.
|
|
280
|
+
* `prisma.organization`: Exposes CRUD operations for the **Organization** model.
|
|
270
281
|
* Example usage:
|
|
271
282
|
* ```ts
|
|
272
|
-
* // Fetch zero or more
|
|
273
|
-
* const
|
|
283
|
+
* // Fetch zero or more Organizations
|
|
284
|
+
* const organizations = await prisma.organization.findMany()
|
|
274
285
|
* ```
|
|
275
286
|
*/
|
|
276
|
-
get
|
|
287
|
+
get organization(): Prisma.OrganizationDelegate<ExtArgs, {
|
|
277
288
|
omit: OmitOpts;
|
|
278
289
|
}>;
|
|
279
290
|
/**
|
|
280
|
-
* `prisma.
|
|
291
|
+
* `prisma.member`: Exposes CRUD operations for the **Member** model.
|
|
281
292
|
* Example usage:
|
|
282
293
|
* ```ts
|
|
283
|
-
* // Fetch zero or more
|
|
284
|
-
* const
|
|
294
|
+
* // Fetch zero or more Members
|
|
295
|
+
* const members = await prisma.member.findMany()
|
|
285
296
|
* ```
|
|
286
297
|
*/
|
|
287
|
-
get
|
|
298
|
+
get member(): Prisma.MemberDelegate<ExtArgs, {
|
|
299
|
+
omit: OmitOpts;
|
|
300
|
+
}>;
|
|
301
|
+
/**
|
|
302
|
+
* `prisma.invitation`: Exposes CRUD operations for the **Invitation** model.
|
|
303
|
+
* Example usage:
|
|
304
|
+
* ```ts
|
|
305
|
+
* // Fetch zero or more Invitations
|
|
306
|
+
* const invitations = await prisma.invitation.findMany()
|
|
307
|
+
* ```
|
|
308
|
+
*/
|
|
309
|
+
get invitation(): Prisma.InvitationDelegate<ExtArgs, {
|
|
288
310
|
omit: OmitOpts;
|
|
289
311
|
}>;
|
|
290
312
|
/**
|
|
@@ -321,80 +343,69 @@ export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out
|
|
|
321
343
|
omit: OmitOpts;
|
|
322
344
|
}>;
|
|
323
345
|
/**
|
|
324
|
-
* `prisma.
|
|
325
|
-
* Example usage:
|
|
326
|
-
* ```ts
|
|
327
|
-
* // Fetch zero or more Avatars
|
|
328
|
-
* const avatars = await prisma.avatar.findMany()
|
|
329
|
-
* ```
|
|
330
|
-
*/
|
|
331
|
-
get avatar(): Prisma.AvatarDelegate<ExtArgs, {
|
|
332
|
-
omit: OmitOpts;
|
|
333
|
-
}>;
|
|
334
|
-
/**
|
|
335
|
-
* `prisma.map`: Exposes CRUD operations for the **Map** model.
|
|
346
|
+
* `prisma.supplementalTherapy`: Exposes CRUD operations for the **SupplementalTherapy** model.
|
|
336
347
|
* Example usage:
|
|
337
348
|
* ```ts
|
|
338
|
-
* // Fetch zero or more
|
|
339
|
-
* const
|
|
349
|
+
* // Fetch zero or more SupplementalTherapies
|
|
350
|
+
* const supplementalTherapies = await prisma.supplementalTherapy.findMany()
|
|
340
351
|
* ```
|
|
341
352
|
*/
|
|
342
|
-
get
|
|
353
|
+
get supplementalTherapy(): Prisma.SupplementalTherapyDelegate<ExtArgs, {
|
|
343
354
|
omit: OmitOpts;
|
|
344
355
|
}>;
|
|
345
356
|
/**
|
|
346
|
-
* `prisma.
|
|
357
|
+
* `prisma.patientSessionSupplementalTherapyRel`: Exposes CRUD operations for the **PatientSessionSupplementalTherapyRel** model.
|
|
347
358
|
* Example usage:
|
|
348
359
|
* ```ts
|
|
349
|
-
* // Fetch zero or more
|
|
350
|
-
* const
|
|
360
|
+
* // Fetch zero or more PatientSessionSupplementalTherapyRels
|
|
361
|
+
* const patientSessionSupplementalTherapyRels = await prisma.patientSessionSupplementalTherapyRel.findMany()
|
|
351
362
|
* ```
|
|
352
363
|
*/
|
|
353
|
-
get
|
|
364
|
+
get patientSessionSupplementalTherapyRel(): Prisma.PatientSessionSupplementalTherapyRelDelegate<ExtArgs, {
|
|
354
365
|
omit: OmitOpts;
|
|
355
366
|
}>;
|
|
356
367
|
/**
|
|
357
|
-
* `prisma.
|
|
368
|
+
* `prisma.patient`: Exposes CRUD operations for the **Patient** model.
|
|
358
369
|
* Example usage:
|
|
359
370
|
* ```ts
|
|
360
|
-
* // Fetch zero or more
|
|
361
|
-
* const
|
|
371
|
+
* // Fetch zero or more Patients
|
|
372
|
+
* const patients = await prisma.patient.findMany()
|
|
362
373
|
* ```
|
|
363
374
|
*/
|
|
364
|
-
get
|
|
375
|
+
get patient(): Prisma.PatientDelegate<ExtArgs, {
|
|
365
376
|
omit: OmitOpts;
|
|
366
377
|
}>;
|
|
367
378
|
/**
|
|
368
|
-
* `prisma.
|
|
379
|
+
* `prisma.medicalHistory`: Exposes CRUD operations for the **MedicalHistory** model.
|
|
369
380
|
* Example usage:
|
|
370
381
|
* ```ts
|
|
371
|
-
* // Fetch zero or more
|
|
372
|
-
* const
|
|
382
|
+
* // Fetch zero or more MedicalHistories
|
|
383
|
+
* const medicalHistories = await prisma.medicalHistory.findMany()
|
|
373
384
|
* ```
|
|
374
385
|
*/
|
|
375
|
-
get
|
|
386
|
+
get medicalHistory(): Prisma.MedicalHistoryDelegate<ExtArgs, {
|
|
376
387
|
omit: OmitOpts;
|
|
377
388
|
}>;
|
|
378
389
|
/**
|
|
379
|
-
* `prisma.
|
|
390
|
+
* `prisma.patientProgram`: Exposes CRUD operations for the **PatientProgram** model.
|
|
380
391
|
* Example usage:
|
|
381
392
|
* ```ts
|
|
382
|
-
* // Fetch zero or more
|
|
383
|
-
* const
|
|
393
|
+
* // Fetch zero or more PatientPrograms
|
|
394
|
+
* const patientPrograms = await prisma.patientProgram.findMany()
|
|
384
395
|
* ```
|
|
385
396
|
*/
|
|
386
|
-
get
|
|
397
|
+
get patientProgram(): Prisma.PatientProgramDelegate<ExtArgs, {
|
|
387
398
|
omit: OmitOpts;
|
|
388
399
|
}>;
|
|
389
400
|
/**
|
|
390
|
-
* `prisma.
|
|
401
|
+
* `prisma.programExercise`: Exposes CRUD operations for the **ProgramExercise** model.
|
|
391
402
|
* Example usage:
|
|
392
403
|
* ```ts
|
|
393
|
-
* // Fetch zero or more
|
|
394
|
-
* const
|
|
404
|
+
* // Fetch zero or more ProgramExercises
|
|
405
|
+
* const programExercises = await prisma.programExercise.findMany()
|
|
395
406
|
* ```
|
|
396
407
|
*/
|
|
397
|
-
get
|
|
408
|
+
get programExercise(): Prisma.ProgramExerciseDelegate<ExtArgs, {
|
|
398
409
|
omit: OmitOpts;
|
|
399
410
|
}>;
|
|
400
411
|
}
|