@adaptware/eagles-db 0.1.75 → 0.1.76
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/client/edge.js +38 -5
- package/client/index-browser.js +33 -0
- package/client/index.d.ts +17769 -13597
- package/client/index.js +38 -5
- package/client/package.json +1 -1
- package/client/schema.prisma +45 -0
- package/client/wasm.js +33 -0
- package/package.json +2 -1
- package/prisma/schema/authModule.prisma +30 -0
- package/prisma/schema/refreshToken.prisma +10 -0
- package/prisma/schema/resume.prisma +1 -0
- package/prisma/schema/user.prisma +4 -2
- package/prisma/.DS_Store +0 -0
- package/prisma/migrations/20260415120000_remove_job_profile_current_phase/migration.sql +0 -2
- package/prisma/migrations/migration_lock.toml +0 -3
package/client/package.json
CHANGED
package/client/schema.prisma
CHANGED
|
@@ -313,6 +313,37 @@ model AssignmentLibrary {
|
|
|
313
313
|
@@index([job_description_id])
|
|
314
314
|
}
|
|
315
315
|
|
|
316
|
+
enum AuthProvider {
|
|
317
|
+
GOOGLE
|
|
318
|
+
MICROSOFT
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
model AuthModule {
|
|
322
|
+
id String @id @default(uuid())
|
|
323
|
+
|
|
324
|
+
user_id String
|
|
325
|
+
user User @relation("UserAuthModule", fields: [user_id], references: [id], onDelete: Cascade)
|
|
326
|
+
|
|
327
|
+
provider AuthProvider
|
|
328
|
+
provider_account_id String? @db.Text
|
|
329
|
+
|
|
330
|
+
access_token String? @db.Text
|
|
331
|
+
refresh_token String? @db.Text
|
|
332
|
+
id_token String? @db.Text
|
|
333
|
+
expires_at DateTime?
|
|
334
|
+
|
|
335
|
+
token_type String?
|
|
336
|
+
|
|
337
|
+
scope String?
|
|
338
|
+
is_active Boolean @default(true)
|
|
339
|
+
|
|
340
|
+
created_at DateTime @default(now())
|
|
341
|
+
updated_at DateTime @updatedAt
|
|
342
|
+
|
|
343
|
+
@@unique([provider, provider_account_id])
|
|
344
|
+
@@index([user_id])
|
|
345
|
+
}
|
|
346
|
+
|
|
316
347
|
enum JobType {
|
|
317
348
|
Full_time
|
|
318
349
|
Part_time
|
|
@@ -1164,6 +1195,17 @@ model Question {
|
|
|
1164
1195
|
candidateResponse CandidateQuestionResponse[]
|
|
1165
1196
|
}
|
|
1166
1197
|
|
|
1198
|
+
model RefreshToken {
|
|
1199
|
+
id String @id @default(uuid())
|
|
1200
|
+
user_id String
|
|
1201
|
+
token String @unique
|
|
1202
|
+
is_active Boolean @default(true)
|
|
1203
|
+
expires_at DateTime
|
|
1204
|
+
created_at DateTime @default(now())
|
|
1205
|
+
updated_at DateTime @updatedAt
|
|
1206
|
+
user User @relation("TokenRefresh", fields: [user_id], references: [id], onDelete: Cascade)
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1167
1209
|
model Resume {
|
|
1168
1210
|
id String @id @default(uuid())
|
|
1169
1211
|
user_id String?
|
|
@@ -1192,6 +1234,7 @@ model Resume {
|
|
|
1192
1234
|
yearsOfExperience Int?
|
|
1193
1235
|
|
|
1194
1236
|
@@index([user_id])
|
|
1237
|
+
@@index([file_hash])
|
|
1195
1238
|
}
|
|
1196
1239
|
|
|
1197
1240
|
model ResumeData {
|
|
@@ -1328,6 +1371,8 @@ model User {
|
|
|
1328
1371
|
fitChecks FitCheck[]
|
|
1329
1372
|
created_job_profiles JobProfile[] @relation("ProfileCreator")
|
|
1330
1373
|
assigned_job_profiles JobProfile[] @relation("ProfileAssignee")
|
|
1374
|
+
user_auth_modules AuthModule[] @relation("UserAuthModule")
|
|
1375
|
+
refresh_token_auth RefreshToken[] @relation("TokenRefresh")
|
|
1331
1376
|
|
|
1332
1377
|
name String?
|
|
1333
1378
|
phone String?
|
package/client/wasm.js
CHANGED
|
@@ -289,6 +289,22 @@ exports.Prisma.AssignmentLibraryScalarFieldEnum = {
|
|
|
289
289
|
is_active: 'is_active'
|
|
290
290
|
};
|
|
291
291
|
|
|
292
|
+
exports.Prisma.AuthModuleScalarFieldEnum = {
|
|
293
|
+
id: 'id',
|
|
294
|
+
user_id: 'user_id',
|
|
295
|
+
provider: 'provider',
|
|
296
|
+
provider_account_id: 'provider_account_id',
|
|
297
|
+
access_token: 'access_token',
|
|
298
|
+
refresh_token: 'refresh_token',
|
|
299
|
+
id_token: 'id_token',
|
|
300
|
+
expires_at: 'expires_at',
|
|
301
|
+
token_type: 'token_type',
|
|
302
|
+
scope: 'scope',
|
|
303
|
+
is_active: 'is_active',
|
|
304
|
+
created_at: 'created_at',
|
|
305
|
+
updated_at: 'updated_at'
|
|
306
|
+
};
|
|
307
|
+
|
|
292
308
|
exports.Prisma.BudgetScalarFieldEnum = {
|
|
293
309
|
id: 'id',
|
|
294
310
|
job_type: 'job_type',
|
|
@@ -730,6 +746,16 @@ exports.Prisma.QuestionScalarFieldEnum = {
|
|
|
730
746
|
is_active: 'is_active'
|
|
731
747
|
};
|
|
732
748
|
|
|
749
|
+
exports.Prisma.RefreshTokenScalarFieldEnum = {
|
|
750
|
+
id: 'id',
|
|
751
|
+
user_id: 'user_id',
|
|
752
|
+
token: 'token',
|
|
753
|
+
is_active: 'is_active',
|
|
754
|
+
expires_at: 'expires_at',
|
|
755
|
+
created_at: 'created_at',
|
|
756
|
+
updated_at: 'updated_at'
|
|
757
|
+
};
|
|
758
|
+
|
|
733
759
|
exports.Prisma.ResumeScalarFieldEnum = {
|
|
734
760
|
id: 'id',
|
|
735
761
|
user_id: 'user_id',
|
|
@@ -913,6 +939,11 @@ exports.AssignmentStatus = exports.$Enums.AssignmentStatus = {
|
|
|
913
939
|
CANCELLED: 'CANCELLED'
|
|
914
940
|
};
|
|
915
941
|
|
|
942
|
+
exports.AuthProvider = exports.$Enums.AuthProvider = {
|
|
943
|
+
GOOGLE: 'GOOGLE',
|
|
944
|
+
MICROSOFT: 'MICROSOFT'
|
|
945
|
+
};
|
|
946
|
+
|
|
916
947
|
exports.JobType = exports.$Enums.JobType = {
|
|
917
948
|
Full_time: 'Full_time',
|
|
918
949
|
Part_time: 'Part_time',
|
|
@@ -1103,6 +1134,7 @@ exports.Prisma.ModelName = {
|
|
|
1103
1134
|
AssessmentQuestion: 'AssessmentQuestion',
|
|
1104
1135
|
Assignment: 'Assignment',
|
|
1105
1136
|
AssignmentLibrary: 'AssignmentLibrary',
|
|
1137
|
+
AuthModule: 'AuthModule',
|
|
1106
1138
|
Budget: 'Budget',
|
|
1107
1139
|
Calendly: 'Calendly',
|
|
1108
1140
|
CandidateProfile: 'CandidateProfile',
|
|
@@ -1126,6 +1158,7 @@ exports.Prisma.ModelName = {
|
|
|
1126
1158
|
Permission: 'Permission',
|
|
1127
1159
|
AsyncOperation: 'AsyncOperation',
|
|
1128
1160
|
Question: 'Question',
|
|
1161
|
+
RefreshToken: 'RefreshToken',
|
|
1129
1162
|
Resume: 'Resume',
|
|
1130
1163
|
ResumeData: 'ResumeData',
|
|
1131
1164
|
Suggestion: 'Suggestion',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptware/eagles-db",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.76",
|
|
4
4
|
"description": "A Prisma client package for Treadspace database operations",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"author": "",
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"dependencies": {
|
|
37
|
+
"@adaptware/eagles-db": "/Users/ayushchakraborty/Project/eagles-db/adaptware-eagles-db-v0.1.74.tgz",
|
|
37
38
|
"@prisma/client": "6.15.0",
|
|
38
39
|
"prisma": "6.15.0",
|
|
39
40
|
"zod": "^4.1.5"
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
enum AuthProvider {
|
|
2
|
+
GOOGLE
|
|
3
|
+
MICROSOFT
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
model AuthModule {
|
|
7
|
+
id String @id @default(uuid())
|
|
8
|
+
|
|
9
|
+
user_id String
|
|
10
|
+
user User @relation("UserAuthModule", fields: [user_id], references: [id], onDelete: Cascade)
|
|
11
|
+
|
|
12
|
+
provider AuthProvider
|
|
13
|
+
provider_account_id String? @db.Text
|
|
14
|
+
|
|
15
|
+
access_token String? @db.Text
|
|
16
|
+
refresh_token String? @db.Text
|
|
17
|
+
id_token String? @db.Text
|
|
18
|
+
expires_at DateTime?
|
|
19
|
+
|
|
20
|
+
token_type String?
|
|
21
|
+
|
|
22
|
+
scope String?
|
|
23
|
+
is_active Boolean @default(true)
|
|
24
|
+
|
|
25
|
+
created_at DateTime @default(now())
|
|
26
|
+
updated_at DateTime @updatedAt
|
|
27
|
+
|
|
28
|
+
@@unique([provider, provider_account_id])
|
|
29
|
+
@@index([user_id])
|
|
30
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
model RefreshToken {
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
user_id String
|
|
4
|
+
token String @unique
|
|
5
|
+
is_active Boolean @default(true)
|
|
6
|
+
expires_at DateTime
|
|
7
|
+
created_at DateTime @default(now())
|
|
8
|
+
updated_at DateTime @updatedAt
|
|
9
|
+
user User @relation("TokenRefresh", fields: [user_id], references: [id], onDelete: Cascade)
|
|
10
|
+
}
|
|
@@ -50,8 +50,10 @@ model User {
|
|
|
50
50
|
calendly Calendly?
|
|
51
51
|
google Google?
|
|
52
52
|
fitChecks FitCheck[]
|
|
53
|
-
created_job_profiles JobProfile[]
|
|
54
|
-
assigned_job_profiles JobProfile[]
|
|
53
|
+
created_job_profiles JobProfile[] @relation("ProfileCreator")
|
|
54
|
+
assigned_job_profiles JobProfile[] @relation("ProfileAssignee")
|
|
55
|
+
user_auth_modules AuthModule[] @relation("UserAuthModule")
|
|
56
|
+
refresh_token_auth RefreshToken[] @relation("TokenRefresh")
|
|
55
57
|
|
|
56
58
|
name String?
|
|
57
59
|
phone String?
|
package/prisma/.DS_Store
DELETED
|
Binary file
|