@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@virtality/schema",
|
|
3
|
-
"version": "0.0.1-alpha0.
|
|
3
|
+
"version": "0.0.1-alpha0.3.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "prisma/generated/client.js",
|
|
6
6
|
"types": "prisma/generated/client.d.ts",
|
|
@@ -17,10 +17,6 @@
|
|
|
17
17
|
"typescript",
|
|
18
18
|
"types"
|
|
19
19
|
],
|
|
20
|
-
"scripts": {
|
|
21
|
-
"generate": "prisma generate",
|
|
22
|
-
"build": "rm -rf ./prisma/generated && tsc"
|
|
23
|
-
},
|
|
24
20
|
"dependencies": {
|
|
25
21
|
"@prisma/client": "7.1.0",
|
|
26
22
|
"dotenv": "17.2.3"
|
|
@@ -35,5 +31,10 @@
|
|
|
35
31
|
"overrides": {
|
|
36
32
|
"hono": "^4.10.7",
|
|
37
33
|
"valibot": "^1.2.0"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"generate": "prisma generate",
|
|
37
|
+
"migrate:dev": "prisma migrate dev",
|
|
38
|
+
"build": "rm -rf ./prisma/generated && tsc"
|
|
38
39
|
}
|
|
39
|
-
}
|
|
40
|
+
}
|
|
@@ -3,65 +3,70 @@ export { Prisma };
|
|
|
3
3
|
export * as $Enums from './enums.js';
|
|
4
4
|
export * from './enums.js';
|
|
5
5
|
/**
|
|
6
|
-
* Model
|
|
6
|
+
* Model Avatar
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
|
-
export type
|
|
9
|
+
export type Avatar = Prisma.AvatarModel;
|
|
10
10
|
/**
|
|
11
|
-
* Model
|
|
11
|
+
* Model Map
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
|
-
export type
|
|
14
|
+
export type Map = Prisma.MapModel;
|
|
15
15
|
/**
|
|
16
|
-
* Model
|
|
16
|
+
* Model Device
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
|
-
export type
|
|
19
|
+
export type Device = Prisma.DeviceModel;
|
|
20
20
|
/**
|
|
21
|
-
* Model
|
|
21
|
+
* Model User
|
|
22
22
|
*
|
|
23
23
|
*/
|
|
24
|
-
export type
|
|
24
|
+
export type User = Prisma.UserModel;
|
|
25
25
|
/**
|
|
26
|
-
* Model
|
|
26
|
+
* Model Account
|
|
27
27
|
*
|
|
28
28
|
*/
|
|
29
|
-
export type
|
|
29
|
+
export type Account = Prisma.AccountModel;
|
|
30
30
|
/**
|
|
31
|
-
* Model
|
|
31
|
+
* Model Session
|
|
32
32
|
*
|
|
33
33
|
*/
|
|
34
|
-
export type
|
|
34
|
+
export type Session = Prisma.SessionModel;
|
|
35
35
|
/**
|
|
36
|
-
* Model
|
|
36
|
+
* Model Verification
|
|
37
37
|
*
|
|
38
38
|
*/
|
|
39
|
-
export type
|
|
39
|
+
export type Verification = Prisma.VerificationModel;
|
|
40
|
+
/**
|
|
41
|
+
* Model ReferralCode
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
export type ReferralCode = Prisma.ReferralCodeModel;
|
|
40
45
|
/**
|
|
41
46
|
* Model Subscription
|
|
42
47
|
*
|
|
43
48
|
*/
|
|
44
49
|
export type Subscription = Prisma.SubscriptionModel;
|
|
45
50
|
/**
|
|
46
|
-
* Model
|
|
51
|
+
* Model WaitingList
|
|
47
52
|
*
|
|
48
53
|
*/
|
|
49
|
-
export type
|
|
54
|
+
export type WaitingList = Prisma.WaitingListModel;
|
|
50
55
|
/**
|
|
51
|
-
* Model
|
|
56
|
+
* Model BugReport
|
|
52
57
|
*
|
|
53
58
|
*/
|
|
54
|
-
export type
|
|
59
|
+
export type BugReport = Prisma.BugReportModel;
|
|
55
60
|
/**
|
|
56
|
-
* Model
|
|
61
|
+
* Model BugReportImage
|
|
57
62
|
*
|
|
58
63
|
*/
|
|
59
|
-
export type
|
|
64
|
+
export type BugReportImage = Prisma.BugReportImageModel;
|
|
60
65
|
/**
|
|
61
|
-
* Model
|
|
66
|
+
* Model Exercise
|
|
62
67
|
*
|
|
63
68
|
*/
|
|
64
|
-
export type
|
|
69
|
+
export type Exercise = Prisma.ExerciseModel;
|
|
65
70
|
/**
|
|
66
71
|
* Model Preset
|
|
67
72
|
*
|
|
@@ -73,15 +78,20 @@ export type Preset = Prisma.PresetModel;
|
|
|
73
78
|
*/
|
|
74
79
|
export type PresetExercise = Prisma.PresetExerciseModel;
|
|
75
80
|
/**
|
|
76
|
-
* Model
|
|
81
|
+
* Model Organization
|
|
77
82
|
*
|
|
78
83
|
*/
|
|
79
|
-
export type
|
|
84
|
+
export type Organization = Prisma.OrganizationModel;
|
|
80
85
|
/**
|
|
81
|
-
* Model
|
|
86
|
+
* Model Member
|
|
82
87
|
*
|
|
83
88
|
*/
|
|
84
|
-
export type
|
|
89
|
+
export type Member = Prisma.MemberModel;
|
|
90
|
+
/**
|
|
91
|
+
* Model Invitation
|
|
92
|
+
*
|
|
93
|
+
*/
|
|
94
|
+
export type Invitation = Prisma.InvitationModel;
|
|
85
95
|
/**
|
|
86
96
|
* Model PatientSession
|
|
87
97
|
*
|
|
@@ -98,37 +108,32 @@ export type SessionExercise = Prisma.SessionExerciseModel;
|
|
|
98
108
|
*/
|
|
99
109
|
export type SessionData = Prisma.SessionDataModel;
|
|
100
110
|
/**
|
|
101
|
-
* Model
|
|
102
|
-
*
|
|
103
|
-
*/
|
|
104
|
-
export type Avatar = Prisma.AvatarModel;
|
|
105
|
-
/**
|
|
106
|
-
* Model Map
|
|
111
|
+
* Model SupplementalTherapy
|
|
107
112
|
*
|
|
108
113
|
*/
|
|
109
|
-
export type
|
|
114
|
+
export type SupplementalTherapy = Prisma.SupplementalTherapyModel;
|
|
110
115
|
/**
|
|
111
|
-
* Model
|
|
116
|
+
* Model PatientSessionSupplementalTherapyRel
|
|
112
117
|
*
|
|
113
118
|
*/
|
|
114
|
-
export type
|
|
119
|
+
export type PatientSessionSupplementalTherapyRel = Prisma.PatientSessionSupplementalTherapyRelModel;
|
|
115
120
|
/**
|
|
116
|
-
* Model
|
|
121
|
+
* Model Patient
|
|
117
122
|
*
|
|
118
123
|
*/
|
|
119
|
-
export type
|
|
124
|
+
export type Patient = Prisma.PatientModel;
|
|
120
125
|
/**
|
|
121
|
-
* Model
|
|
126
|
+
* Model MedicalHistory
|
|
122
127
|
*
|
|
123
128
|
*/
|
|
124
|
-
export type
|
|
129
|
+
export type MedicalHistory = Prisma.MedicalHistoryModel;
|
|
125
130
|
/**
|
|
126
|
-
* Model
|
|
131
|
+
* Model PatientProgram
|
|
127
132
|
*
|
|
128
133
|
*/
|
|
129
|
-
export type
|
|
134
|
+
export type PatientProgram = Prisma.PatientProgramModel;
|
|
130
135
|
/**
|
|
131
|
-
* Model
|
|
136
|
+
* Model ProgramExercise
|
|
132
137
|
*
|
|
133
138
|
*/
|
|
134
|
-
export type
|
|
139
|
+
export type ProgramExercise = Prisma.ProgramExerciseModel;
|
|
@@ -10,75 +10,80 @@ export * from "./enums.js";
|
|
|
10
10
|
* @example
|
|
11
11
|
* ```
|
|
12
12
|
* const prisma = new PrismaClient()
|
|
13
|
-
* // Fetch zero or more
|
|
14
|
-
* const
|
|
13
|
+
* // Fetch zero or more Avatars
|
|
14
|
+
* const avatars = await prisma.avatar.findMany()
|
|
15
15
|
* ```
|
|
16
16
|
*
|
|
17
|
-
* Read more in our [docs](https://
|
|
17
|
+
* Read more in our [docs](https://pris.ly/d/client).
|
|
18
18
|
*/
|
|
19
19
|
export declare const PrismaClient: $Class.PrismaClientConstructor;
|
|
20
20
|
export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts extends Prisma.PrismaClientOptions["omit"] = Prisma.PrismaClientOptions["omit"], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>;
|
|
21
21
|
export { Prisma };
|
|
22
22
|
/**
|
|
23
|
-
* Model
|
|
23
|
+
* Model Avatar
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
|
-
export type
|
|
26
|
+
export type Avatar = Prisma.AvatarModel;
|
|
27
27
|
/**
|
|
28
|
-
* Model
|
|
28
|
+
* Model Map
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
|
-
export type
|
|
31
|
+
export type Map = Prisma.MapModel;
|
|
32
32
|
/**
|
|
33
|
-
* Model
|
|
33
|
+
* Model Device
|
|
34
34
|
*
|
|
35
35
|
*/
|
|
36
|
-
export type
|
|
36
|
+
export type Device = Prisma.DeviceModel;
|
|
37
37
|
/**
|
|
38
|
-
* Model
|
|
38
|
+
* Model User
|
|
39
39
|
*
|
|
40
40
|
*/
|
|
41
|
-
export type
|
|
41
|
+
export type User = Prisma.UserModel;
|
|
42
42
|
/**
|
|
43
|
-
* Model
|
|
43
|
+
* Model Account
|
|
44
44
|
*
|
|
45
45
|
*/
|
|
46
|
-
export type
|
|
46
|
+
export type Account = Prisma.AccountModel;
|
|
47
47
|
/**
|
|
48
|
-
* Model
|
|
48
|
+
* Model Session
|
|
49
49
|
*
|
|
50
50
|
*/
|
|
51
|
-
export type
|
|
51
|
+
export type Session = Prisma.SessionModel;
|
|
52
52
|
/**
|
|
53
|
-
* Model
|
|
53
|
+
* Model Verification
|
|
54
54
|
*
|
|
55
55
|
*/
|
|
56
|
-
export type
|
|
56
|
+
export type Verification = Prisma.VerificationModel;
|
|
57
|
+
/**
|
|
58
|
+
* Model ReferralCode
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
export type ReferralCode = Prisma.ReferralCodeModel;
|
|
57
62
|
/**
|
|
58
63
|
* Model Subscription
|
|
59
64
|
*
|
|
60
65
|
*/
|
|
61
66
|
export type Subscription = Prisma.SubscriptionModel;
|
|
62
67
|
/**
|
|
63
|
-
* Model
|
|
68
|
+
* Model WaitingList
|
|
64
69
|
*
|
|
65
70
|
*/
|
|
66
|
-
export type
|
|
71
|
+
export type WaitingList = Prisma.WaitingListModel;
|
|
67
72
|
/**
|
|
68
|
-
* Model
|
|
73
|
+
* Model BugReport
|
|
69
74
|
*
|
|
70
75
|
*/
|
|
71
|
-
export type
|
|
76
|
+
export type BugReport = Prisma.BugReportModel;
|
|
72
77
|
/**
|
|
73
|
-
* Model
|
|
78
|
+
* Model BugReportImage
|
|
74
79
|
*
|
|
75
80
|
*/
|
|
76
|
-
export type
|
|
81
|
+
export type BugReportImage = Prisma.BugReportImageModel;
|
|
77
82
|
/**
|
|
78
|
-
* Model
|
|
83
|
+
* Model Exercise
|
|
79
84
|
*
|
|
80
85
|
*/
|
|
81
|
-
export type
|
|
86
|
+
export type Exercise = Prisma.ExerciseModel;
|
|
82
87
|
/**
|
|
83
88
|
* Model Preset
|
|
84
89
|
*
|
|
@@ -90,15 +95,20 @@ export type Preset = Prisma.PresetModel;
|
|
|
90
95
|
*/
|
|
91
96
|
export type PresetExercise = Prisma.PresetExerciseModel;
|
|
92
97
|
/**
|
|
93
|
-
* Model
|
|
98
|
+
* Model Organization
|
|
94
99
|
*
|
|
95
100
|
*/
|
|
96
|
-
export type
|
|
101
|
+
export type Organization = Prisma.OrganizationModel;
|
|
97
102
|
/**
|
|
98
|
-
* Model
|
|
103
|
+
* Model Member
|
|
99
104
|
*
|
|
100
105
|
*/
|
|
101
|
-
export type
|
|
106
|
+
export type Member = Prisma.MemberModel;
|
|
107
|
+
/**
|
|
108
|
+
* Model Invitation
|
|
109
|
+
*
|
|
110
|
+
*/
|
|
111
|
+
export type Invitation = Prisma.InvitationModel;
|
|
102
112
|
/**
|
|
103
113
|
* Model PatientSession
|
|
104
114
|
*
|
|
@@ -115,37 +125,32 @@ export type SessionExercise = Prisma.SessionExerciseModel;
|
|
|
115
125
|
*/
|
|
116
126
|
export type SessionData = Prisma.SessionDataModel;
|
|
117
127
|
/**
|
|
118
|
-
* Model
|
|
119
|
-
*
|
|
120
|
-
*/
|
|
121
|
-
export type Avatar = Prisma.AvatarModel;
|
|
122
|
-
/**
|
|
123
|
-
* Model Map
|
|
128
|
+
* Model SupplementalTherapy
|
|
124
129
|
*
|
|
125
130
|
*/
|
|
126
|
-
export type
|
|
131
|
+
export type SupplementalTherapy = Prisma.SupplementalTherapyModel;
|
|
127
132
|
/**
|
|
128
|
-
* Model
|
|
133
|
+
* Model PatientSessionSupplementalTherapyRel
|
|
129
134
|
*
|
|
130
135
|
*/
|
|
131
|
-
export type
|
|
136
|
+
export type PatientSessionSupplementalTherapyRel = Prisma.PatientSessionSupplementalTherapyRelModel;
|
|
132
137
|
/**
|
|
133
|
-
* Model
|
|
138
|
+
* Model Patient
|
|
134
139
|
*
|
|
135
140
|
*/
|
|
136
|
-
export type
|
|
141
|
+
export type Patient = Prisma.PatientModel;
|
|
137
142
|
/**
|
|
138
|
-
* Model
|
|
143
|
+
* Model MedicalHistory
|
|
139
144
|
*
|
|
140
145
|
*/
|
|
141
|
-
export type
|
|
146
|
+
export type MedicalHistory = Prisma.MedicalHistoryModel;
|
|
142
147
|
/**
|
|
143
|
-
* Model
|
|
148
|
+
* Model PatientProgram
|
|
144
149
|
*
|
|
145
150
|
*/
|
|
146
|
-
export type
|
|
151
|
+
export type PatientProgram = Prisma.PatientProgramModel;
|
|
147
152
|
/**
|
|
148
|
-
* Model
|
|
153
|
+
* Model ProgramExercise
|
|
149
154
|
*
|
|
150
155
|
*/
|
|
151
|
-
export type
|
|
156
|
+
export type ProgramExercise = Prisma.ProgramExerciseModel;
|
|
@@ -22,11 +22,11 @@ export * from "./enums.js";
|
|
|
22
22
|
* @example
|
|
23
23
|
* ```
|
|
24
24
|
* const prisma = new PrismaClient()
|
|
25
|
-
* // Fetch zero or more
|
|
26
|
-
* const
|
|
25
|
+
* // Fetch zero or more Avatars
|
|
26
|
+
* const avatars = await prisma.avatar.findMany()
|
|
27
27
|
* ```
|
|
28
28
|
*
|
|
29
|
-
* Read more in our [docs](https://
|
|
29
|
+
* Read more in our [docs](https://pris.ly/d/client).
|
|
30
30
|
*/
|
|
31
31
|
export const PrismaClient = $Class.getPrismaClientClass();
|
|
32
32
|
export { Prisma };
|