@virtality/schema 0.0.1-alpha0.2.1 → 0.0.1-alpha0.2.3

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.
Files changed (69) hide show
  1. package/package.json +12 -4
  2. package/.github/workflows/deploy-dev.yml +0 -30
  3. package/.github/workflows/deploy-main.yml +0 -30
  4. package/index.d.ts +0 -2
  5. package/index.js +0 -1
  6. package/prisma/client/browser.ts +0 -139
  7. package/prisma/client/client.ts +0 -161
  8. package/prisma/client/commonInputTypes.ts +0 -618
  9. package/prisma/client/enums.ts +0 -25
  10. package/prisma/client/internal/class.ts +0 -420
  11. package/prisma/client/internal/prismaNamespace.ts +0 -2900
  12. package/prisma/client/internal/prismaNamespaceBrowser.ts +0 -474
  13. package/prisma/client/models/Account.ts +0 -1636
  14. package/prisma/client/models/Avatar.ts +0 -1088
  15. package/prisma/client/models/BugReport.ts +0 -1390
  16. package/prisma/client/models/BugReportImage.ts +0 -1270
  17. package/prisma/client/models/Device.ts +0 -1445
  18. package/prisma/client/models/Exercise.ts +0 -1758
  19. package/prisma/client/models/Invitation.ts +0 -1542
  20. package/prisma/client/models/Map.ts +0 -1088
  21. package/prisma/client/models/MedicalHistory.ts +0 -1503
  22. package/prisma/client/models/Member.ts +0 -1460
  23. package/prisma/client/models/Organization.ts +0 -1544
  24. package/prisma/client/models/Patient.ts +0 -1962
  25. package/prisma/client/models/PatientProgram.ts +0 -1828
  26. package/prisma/client/models/PatientSession.ts +0 -1936
  27. package/prisma/client/models/Preset.ts +0 -1691
  28. package/prisma/client/models/PresetExercise.ts +0 -1708
  29. package/prisma/client/models/ProgramExercise.ts +0 -1651
  30. package/prisma/client/models/Session.ts +0 -1515
  31. package/prisma/client/models/SessionData.ts +0 -1457
  32. package/prisma/client/models/SessionExercise.ts +0 -1825
  33. package/prisma/client/models/Subscription.ts +0 -1392
  34. package/prisma/client/models/User.ts +0 -2701
  35. package/prisma/client/models/Verification.ts +0 -1172
  36. package/prisma/client/models/WaitingList.ts +0 -1144
  37. package/prisma/client/models.ts +0 -35
  38. package/prisma/migrations/0_init/migration.sql +0 -223
  39. package/prisma/migrations/20250422072524_adds_map_model/migration.sql +0 -8
  40. package/prisma/migrations/20250423172656_adds_patient_session/migration.sql +0 -51
  41. package/prisma/migrations/20250424214137_fixes_patient_session/migration.sql +0 -2
  42. package/prisma/migrations/20250429190619_modifies_session_data/migration.sql +0 -2
  43. package/prisma/migrations/20250504180251_modifies_sessio_data_id/migration.sql +0 -10
  44. package/prisma/migrations/20250608162534_waitinglist/migration.sql +0 -9
  45. package/prisma/migrations/20250620060047_modifies_waitlist/migration.sql +0 -11
  46. package/prisma/migrations/20250622222852_adds_stripe/migration.sql +0 -29
  47. package/prisma/migrations/20250623104158_syncing/migration.sql +0 -8
  48. package/prisma/migrations/20250626195856_auth_admin/migration.sql +0 -8
  49. package/prisma/migrations/20250704213812_first_pkg_migration/migration.sql +0 -55
  50. package/prisma/migrations/20250708180455_new_ex_schema/migration.sql +0 -9
  51. package/prisma/migrations/20250713183812_various_changes/migration.sql +0 -97
  52. package/prisma/migrations/20250727170443_adds_lang_to_patient/migration.sql +0 -5
  53. package/prisma/migrations/20250815114140_adds_is_new_exercises/migration.sql +0 -2
  54. package/prisma/migrations/20250815120653_removes_body_parts_exercise/migration.sql +0 -8
  55. package/prisma/migrations/20250820054538_adds_preset_user_phone_patient_occupation/migration.sql +0 -54
  56. package/prisma/migrations/20250821064333_modifies_preset_preset_exercise/migration.sql +0 -5
  57. package/prisma/migrations/20250823092032_modifies_preset/migration.sql +0 -11
  58. package/prisma/migrations/20250826081010_modifies_session_data/migration.sql +0 -5
  59. package/prisma/migrations/20250826175939_adds_medical_history/migration.sql +0 -30
  60. package/prisma/migrations/20250827131751_modifies_patient_session/migration.sql +0 -11
  61. package/prisma/migrations/20250827133334_modifies_session_data/migration.sql +0 -14
  62. package/prisma/migrations/20250901095827_modifies_medical_history_and_patient_session/migration.sql +0 -5
  63. package/prisma/migrations/20250904124141_modifies_patient_program/migration.sql +0 -15
  64. package/prisma/migrations/20250916090200_add_bug_report/migration.sql +0 -27
  65. package/prisma/migrations/20250916110853_modifies_bug_report/migration.sql +0 -9
  66. package/prisma/migrations/migration_lock.toml +0 -3
  67. package/prisma/schema.prisma +0 -330
  68. package/prisma.config.ts +0 -9
  69. package/tsconfig.json +0 -10
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "@virtality/schema",
3
- "version": "0.0.1-alpha0.2.1",
3
+ "version": "0.0.1-alpha0.2.3",
4
4
  "description": "",
5
- "main": "index.js",
6
- "types": "index.d.ts",
5
+ "main": "prisma/generated/client.js",
6
+ "types": "prisma/generated/client.d.ts",
7
+ "files": [
8
+ "prisma/generated/**/*"
9
+ ],
7
10
  "author": "Stelios Pnevmatikakis",
8
11
  "license": "ISC",
9
12
  "type": "module",
@@ -15,7 +18,8 @@
15
18
  "types"
16
19
  ],
17
20
  "scripts": {
18
- "generate": "npx prisma generate"
21
+ "generate": "npx prisma generate",
22
+ "build": "tsc"
19
23
  },
20
24
  "dependencies": {
21
25
  "@prisma/client": ">=6",
@@ -27,5 +31,9 @@
27
31
  },
28
32
  "peerDependencies": {
29
33
  "@prisma/client": ">=6"
34
+ },
35
+ "overrides": {
36
+ "hono": "^4.10.7",
37
+ "valibot": "^1.2.0"
30
38
  }
31
39
  }
@@ -1,30 +0,0 @@
1
- name: Deploy Prisma Migrations (dev)
2
-
3
- on:
4
- push:
5
- branches:
6
- - dev
7
-
8
- jobs:
9
- deploy:
10
- runs-on: ubuntu-latest
11
-
12
- env:
13
- DATABASE_URL: ${{ secrets.DATABASE_URL_DEV }}
14
-
15
- steps:
16
- - uses: actions/checkout@v3
17
-
18
- - name: Set up Node.js
19
- uses: actions/setup-node@v3
20
- with:
21
- node-version: '24'
22
-
23
- - name: Install dependencies
24
- run: npm install
25
-
26
- - name: Generate Client
27
- run: npm run generate
28
-
29
- - name: Run Prisma Migrations
30
- run: npx prisma migrate deploy
@@ -1,30 +0,0 @@
1
- name: Deploy Prisma Migrations (main)
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
-
8
- jobs:
9
- deploy:
10
- runs-on: ubuntu-latest
11
-
12
- env:
13
- DATABASE_URL: ${{ secrets.DATABASE_URL_MAIN }}
14
-
15
- steps:
16
- - uses: actions/checkout@v3
17
-
18
- - name: Set up Node.js
19
- uses: actions/setup-node@v3
20
- with:
21
- node-version: '24'
22
-
23
- - name: Install dependencies
24
- run: npm install
25
-
26
- - name: Generate Client
27
- run: npm run generate
28
-
29
- - name: Run Prisma Migrations
30
- run: npx prisma migrate deploy
package/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from '@prisma/client';
2
- export * from './custom';
package/index.js DELETED
@@ -1 +0,0 @@
1
- export * from '@prisma/client';
@@ -1,139 +0,0 @@
1
-
2
- /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
- /* eslint-disable */
4
- // biome-ignore-all lint: generated file
5
- // @ts-nocheck
6
- /*
7
- * This file should be your main import to use Prisma-related types and utilities in a browser.
8
- * Use it to get access to models, enums, and input types.
9
- *
10
- * This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only.
11
- * See `client.ts` for the standard, server-side entry point.
12
- *
13
- * 🟢 You can import this file directly.
14
- */
15
-
16
- import * as Prisma from './internal/prismaNamespaceBrowser.js'
17
- export { Prisma }
18
- export * as $Enums from './enums.js'
19
- export * from './enums.js';
20
- /**
21
- * Model Account
22
- *
23
- */
24
- export type Account = Prisma.AccountModel
25
- /**
26
- * Model User
27
- *
28
- */
29
- export type User = Prisma.UserModel
30
- /**
31
- * Model Session
32
- *
33
- */
34
- export type Session = Prisma.SessionModel
35
- /**
36
- * Model Verification
37
- *
38
- */
39
- export type Verification = Prisma.VerificationModel
40
- /**
41
- * Model Organization
42
- *
43
- */
44
- export type Organization = Prisma.OrganizationModel
45
- /**
46
- * Model Member
47
- *
48
- */
49
- export type Member = Prisma.MemberModel
50
- /**
51
- * Model Invitation
52
- *
53
- */
54
- export type Invitation = Prisma.InvitationModel
55
- /**
56
- * Model Subscription
57
- *
58
- */
59
- export type Subscription = Prisma.SubscriptionModel
60
- /**
61
- * Model Device
62
- *
63
- */
64
- export type Device = Prisma.DeviceModel
65
- /**
66
- * Model Exercise
67
- *
68
- */
69
- export type Exercise = Prisma.ExerciseModel
70
- /**
71
- * Model Patient
72
- *
73
- */
74
- export type Patient = Prisma.PatientModel
75
- /**
76
- * Model MedicalHistory
77
- *
78
- */
79
- export type MedicalHistory = Prisma.MedicalHistoryModel
80
- /**
81
- * Model Preset
82
- *
83
- */
84
- export type Preset = Prisma.PresetModel
85
- /**
86
- * Model PresetExercise
87
- *
88
- */
89
- export type PresetExercise = Prisma.PresetExerciseModel
90
- /**
91
- * Model PatientProgram
92
- *
93
- */
94
- export type PatientProgram = Prisma.PatientProgramModel
95
- /**
96
- * Model ProgramExercise
97
- *
98
- */
99
- export type ProgramExercise = Prisma.ProgramExerciseModel
100
- /**
101
- * Model PatientSession
102
- *
103
- */
104
- export type PatientSession = Prisma.PatientSessionModel
105
- /**
106
- * Model SessionExercise
107
- *
108
- */
109
- export type SessionExercise = Prisma.SessionExerciseModel
110
- /**
111
- * Model SessionData
112
- *
113
- */
114
- export type SessionData = Prisma.SessionDataModel
115
- /**
116
- * Model Avatar
117
- *
118
- */
119
- export type Avatar = Prisma.AvatarModel
120
- /**
121
- * Model Map
122
- *
123
- */
124
- export type Map = Prisma.MapModel
125
- /**
126
- * Model WaitingList
127
- *
128
- */
129
- export type WaitingList = Prisma.WaitingListModel
130
- /**
131
- * Model BugReport
132
- *
133
- */
134
- export type BugReport = Prisma.BugReportModel
135
- /**
136
- * Model BugReportImage
137
- *
138
- */
139
- export type BugReportImage = Prisma.BugReportImageModel
@@ -1,161 +0,0 @@
1
-
2
- /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
- /* eslint-disable */
4
- // biome-ignore-all lint: generated file
5
- // @ts-nocheck
6
- /*
7
- * This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types.
8
- * If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead.
9
- *
10
- * 🟢 You can import this file directly.
11
- */
12
-
13
- import * as process from 'node:process'
14
- import * as path from 'node:path'
15
- import { fileURLToPath } from 'node:url'
16
- globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url))
17
-
18
- import * as runtime from "@prisma/client/runtime/client"
19
- import * as $Enums from "./enums.js"
20
- import * as $Class from "./internal/class.js"
21
- import * as Prisma from "./internal/prismaNamespace.js"
22
-
23
- export * as $Enums from './enums.js'
24
- export * from "./enums.js"
25
- /**
26
- * ## Prisma Client
27
- *
28
- * Type-safe database client for TypeScript
29
- * @example
30
- * ```
31
- * const prisma = new PrismaClient()
32
- * // Fetch zero or more Accounts
33
- * const accounts = await prisma.account.findMany()
34
- * ```
35
- *
36
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
37
- */
38
- export const PrismaClient = $Class.getPrismaClientClass()
39
- 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>
40
- export { Prisma }
41
-
42
- /**
43
- * Model Account
44
- *
45
- */
46
- export type Account = Prisma.AccountModel
47
- /**
48
- * Model User
49
- *
50
- */
51
- export type User = Prisma.UserModel
52
- /**
53
- * Model Session
54
- *
55
- */
56
- export type Session = Prisma.SessionModel
57
- /**
58
- * Model Verification
59
- *
60
- */
61
- export type Verification = Prisma.VerificationModel
62
- /**
63
- * Model Organization
64
- *
65
- */
66
- export type Organization = Prisma.OrganizationModel
67
- /**
68
- * Model Member
69
- *
70
- */
71
- export type Member = Prisma.MemberModel
72
- /**
73
- * Model Invitation
74
- *
75
- */
76
- export type Invitation = Prisma.InvitationModel
77
- /**
78
- * Model Subscription
79
- *
80
- */
81
- export type Subscription = Prisma.SubscriptionModel
82
- /**
83
- * Model Device
84
- *
85
- */
86
- export type Device = Prisma.DeviceModel
87
- /**
88
- * Model Exercise
89
- *
90
- */
91
- export type Exercise = Prisma.ExerciseModel
92
- /**
93
- * Model Patient
94
- *
95
- */
96
- export type Patient = Prisma.PatientModel
97
- /**
98
- * Model MedicalHistory
99
- *
100
- */
101
- export type MedicalHistory = Prisma.MedicalHistoryModel
102
- /**
103
- * Model Preset
104
- *
105
- */
106
- export type Preset = Prisma.PresetModel
107
- /**
108
- * Model PresetExercise
109
- *
110
- */
111
- export type PresetExercise = Prisma.PresetExerciseModel
112
- /**
113
- * Model PatientProgram
114
- *
115
- */
116
- export type PatientProgram = Prisma.PatientProgramModel
117
- /**
118
- * Model ProgramExercise
119
- *
120
- */
121
- export type ProgramExercise = Prisma.ProgramExerciseModel
122
- /**
123
- * Model PatientSession
124
- *
125
- */
126
- export type PatientSession = Prisma.PatientSessionModel
127
- /**
128
- * Model SessionExercise
129
- *
130
- */
131
- export type SessionExercise = Prisma.SessionExerciseModel
132
- /**
133
- * Model SessionData
134
- *
135
- */
136
- export type SessionData = Prisma.SessionDataModel
137
- /**
138
- * Model Avatar
139
- *
140
- */
141
- export type Avatar = Prisma.AvatarModel
142
- /**
143
- * Model Map
144
- *
145
- */
146
- export type Map = Prisma.MapModel
147
- /**
148
- * Model WaitingList
149
- *
150
- */
151
- export type WaitingList = Prisma.WaitingListModel
152
- /**
153
- * Model BugReport
154
- *
155
- */
156
- export type BugReport = Prisma.BugReportModel
157
- /**
158
- * Model BugReportImage
159
- *
160
- */
161
- export type BugReportImage = Prisma.BugReportImageModel