@adaptware/eagles-db 0.4.29 → 0.4.30
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 -3
- package/client/index-browser.js +35 -0
- package/client/index.d.ts +4371 -486
- package/client/index.js +38 -3
- package/client/package.json +1 -1
- package/client/schema.prisma +63 -3
- package/client/wasm.js +35 -0
- package/package.json +1 -1
- package/prisma/schema/openJobAnalytics.prisma +7 -0
- package/prisma/schema/reportingOverviewJobAnalytics.prisma +49 -0
package/client/package.json
CHANGED
package/client/schema.prisma
CHANGED
|
@@ -836,7 +836,8 @@ model Document {
|
|
|
836
836
|
organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
837
837
|
candidate User? @relation(fields: [candidate_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
838
838
|
resume Resume?
|
|
839
|
-
job_description_source JobDescription?
|
|
839
|
+
job_description_source JobDescription? @relation("SourceDocument")
|
|
840
|
+
job_description_rendered JobDescription? @relation("RenderedJdDocument")
|
|
840
841
|
interview_recording Interview?
|
|
841
842
|
job_application_responses JobApplicationResponse[]
|
|
842
843
|
assignment_solution Assignment? @relation("AssignmentSolutionDocument")
|
|
@@ -1590,6 +1591,8 @@ model JobDescription {
|
|
|
1590
1591
|
/// @deprecated Prefer `source_document_id` + `Document` (type JOB_DESCRIPTION).
|
|
1591
1592
|
uploaded_job_description_path String?
|
|
1592
1593
|
source_document_id String? @unique
|
|
1594
|
+
rendered_jd_document_id String? @unique
|
|
1595
|
+
rendered_jd_document Document? @relation("RenderedJdDocument", fields: [rendered_jd_document_id], references: [id], onDelete: SetNull)
|
|
1593
1596
|
is_plan_published Boolean @default(false)
|
|
1594
1597
|
is_posted Boolean @default(false)
|
|
1595
1598
|
summary Json?
|
|
@@ -1610,7 +1613,7 @@ model JobDescription {
|
|
|
1610
1613
|
job_profile_id String?
|
|
1611
1614
|
job_profile JobProfile? @relation(fields: [job_profile_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
1612
1615
|
organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
1613
|
-
source_document Document? @relation(fields: [source_document_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
1616
|
+
source_document Document? @relation("SourceDocument", fields: [source_document_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
1614
1617
|
applications Application[]
|
|
1615
1618
|
interviews Interview[]
|
|
1616
1619
|
assignments Assignment[]
|
|
@@ -1626,9 +1629,9 @@ model JobDescription {
|
|
|
1626
1629
|
recruiters User[]
|
|
1627
1630
|
transcripts Transcript[]
|
|
1628
1631
|
integration_job_syncs IntegrationJobSync[]
|
|
1632
|
+
job_application_template JobApplicationTemplate?
|
|
1629
1633
|
conversations Conversation[]
|
|
1630
1634
|
communication_messages CommunicationMessage[]
|
|
1631
|
-
job_application_template JobApplicationTemplate?
|
|
1632
1635
|
|
|
1633
1636
|
@@index([organisation_id])
|
|
1634
1637
|
@@index([hiring_manager_id])
|
|
@@ -1972,6 +1975,9 @@ model OpenJobAnalytics {
|
|
|
1972
1975
|
closing_date DateTime?
|
|
1973
1976
|
is_open Boolean @default(true)
|
|
1974
1977
|
|
|
1978
|
+
closure_type OpenJobClosureType?
|
|
1979
|
+
time_to_hire_days Int?
|
|
1980
|
+
|
|
1975
1981
|
application_count Int @default(0)
|
|
1976
1982
|
in_consideration_count Int @default(0)
|
|
1977
1983
|
shortlisted_count Int @default(0)
|
|
@@ -1982,6 +1988,7 @@ model OpenJobAnalytics {
|
|
|
1982
1988
|
@@index([organisation_id, hiring_manager_id])
|
|
1983
1989
|
@@index([organisation_id, opened_at])
|
|
1984
1990
|
@@index([organisation_id, job_number])
|
|
1991
|
+
@@index([organisation_id, is_open, closure_type, closing_date])
|
|
1985
1992
|
@@index([job_description_id])
|
|
1986
1993
|
@@map("open_job_analytics")
|
|
1987
1994
|
@@schema("analytics")
|
|
@@ -2008,6 +2015,9 @@ model OpenJobAnalyticsDaily {
|
|
|
2008
2015
|
closing_date DateTime?
|
|
2009
2016
|
is_open Boolean @default(true)
|
|
2010
2017
|
|
|
2018
|
+
closure_type OpenJobClosureType?
|
|
2019
|
+
time_to_hire_days Int?
|
|
2020
|
+
|
|
2011
2021
|
application_count Int @default(0)
|
|
2012
2022
|
in_consideration_count Int @default(0)
|
|
2013
2023
|
shortlisted_count Int @default(0)
|
|
@@ -2272,6 +2282,56 @@ model RefreshToken {
|
|
|
2272
2282
|
@@schema("public")
|
|
2273
2283
|
}
|
|
2274
2284
|
|
|
2285
|
+
enum OpenJobClosureType {
|
|
2286
|
+
FILLED
|
|
2287
|
+
CANCELLED
|
|
2288
|
+
|
|
2289
|
+
@@schema("analytics")
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2292
|
+
model ReportingOverviewJobAnalytics {
|
|
2293
|
+
id String @id @default(uuid())
|
|
2294
|
+
organisation_id String
|
|
2295
|
+
job_description_id String @unique
|
|
2296
|
+
|
|
2297
|
+
job_code String?
|
|
2298
|
+
job_number Int?
|
|
2299
|
+
hiring_manager_id String?
|
|
2300
|
+
|
|
2301
|
+
opened_at DateTime
|
|
2302
|
+
target_closing_date DateTime?
|
|
2303
|
+
closing_date DateTime?
|
|
2304
|
+
is_open Boolean @default(true)
|
|
2305
|
+
|
|
2306
|
+
closure_type OpenJobClosureType?
|
|
2307
|
+
time_to_hire_days Int?
|
|
2308
|
+
|
|
2309
|
+
in_consideration_count Int @default(0)
|
|
2310
|
+
|
|
2311
|
+
updated_at DateTime @updatedAt
|
|
2312
|
+
|
|
2313
|
+
recruiters ReportingOverviewJobRecruiter[]
|
|
2314
|
+
|
|
2315
|
+
@@index([organisation_id, is_open])
|
|
2316
|
+
@@index([organisation_id, hiring_manager_id, is_open])
|
|
2317
|
+
@@index([organisation_id, closing_date, closure_type])
|
|
2318
|
+
@@map("reporting_overview_job_analytics")
|
|
2319
|
+
@@schema("analytics")
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
model ReportingOverviewJobRecruiter {
|
|
2323
|
+
id String @id @default(uuid())
|
|
2324
|
+
job_description_id String
|
|
2325
|
+
recruiter_user_id String
|
|
2326
|
+
|
|
2327
|
+
job ReportingOverviewJobAnalytics @relation(fields: [job_description_id], references: [job_description_id], onDelete: Cascade)
|
|
2328
|
+
|
|
2329
|
+
@@unique([job_description_id, recruiter_user_id])
|
|
2330
|
+
@@index([recruiter_user_id])
|
|
2331
|
+
@@map("reporting_overview_job_recruiters")
|
|
2332
|
+
@@schema("analytics")
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2275
2335
|
model Resume {
|
|
2276
2336
|
id String @id @default(uuid())
|
|
2277
2337
|
user_id String?
|
package/client/wasm.js
CHANGED
|
@@ -830,6 +830,7 @@ exports.Prisma.JobDescriptionScalarFieldEnum = {
|
|
|
830
830
|
recommendedQuestions: 'recommendedQuestions',
|
|
831
831
|
uploaded_job_description_path: 'uploaded_job_description_path',
|
|
832
832
|
source_document_id: 'source_document_id',
|
|
833
|
+
rendered_jd_document_id: 'rendered_jd_document_id',
|
|
833
834
|
is_plan_published: 'is_plan_published',
|
|
834
835
|
is_posted: 'is_posted',
|
|
835
836
|
summary: 'summary',
|
|
@@ -1027,6 +1028,8 @@ exports.Prisma.OpenJobAnalyticsScalarFieldEnum = {
|
|
|
1027
1028
|
target_closing_date: 'target_closing_date',
|
|
1028
1029
|
closing_date: 'closing_date',
|
|
1029
1030
|
is_open: 'is_open',
|
|
1031
|
+
closure_type: 'closure_type',
|
|
1032
|
+
time_to_hire_days: 'time_to_hire_days',
|
|
1030
1033
|
application_count: 'application_count',
|
|
1031
1034
|
in_consideration_count: 'in_consideration_count',
|
|
1032
1035
|
shortlisted_count: 'shortlisted_count',
|
|
@@ -1051,6 +1054,8 @@ exports.Prisma.OpenJobAnalyticsDailyScalarFieldEnum = {
|
|
|
1051
1054
|
target_closing_date: 'target_closing_date',
|
|
1052
1055
|
closing_date: 'closing_date',
|
|
1053
1056
|
is_open: 'is_open',
|
|
1057
|
+
closure_type: 'closure_type',
|
|
1058
|
+
time_to_hire_days: 'time_to_hire_days',
|
|
1054
1059
|
application_count: 'application_count',
|
|
1055
1060
|
in_consideration_count: 'in_consideration_count',
|
|
1056
1061
|
shortlisted_count: 'shortlisted_count'
|
|
@@ -1186,6 +1191,29 @@ exports.Prisma.RefreshTokenScalarFieldEnum = {
|
|
|
1186
1191
|
updated_at: 'updated_at'
|
|
1187
1192
|
};
|
|
1188
1193
|
|
|
1194
|
+
exports.Prisma.ReportingOverviewJobAnalyticsScalarFieldEnum = {
|
|
1195
|
+
id: 'id',
|
|
1196
|
+
organisation_id: 'organisation_id',
|
|
1197
|
+
job_description_id: 'job_description_id',
|
|
1198
|
+
job_code: 'job_code',
|
|
1199
|
+
job_number: 'job_number',
|
|
1200
|
+
hiring_manager_id: 'hiring_manager_id',
|
|
1201
|
+
opened_at: 'opened_at',
|
|
1202
|
+
target_closing_date: 'target_closing_date',
|
|
1203
|
+
closing_date: 'closing_date',
|
|
1204
|
+
is_open: 'is_open',
|
|
1205
|
+
closure_type: 'closure_type',
|
|
1206
|
+
time_to_hire_days: 'time_to_hire_days',
|
|
1207
|
+
in_consideration_count: 'in_consideration_count',
|
|
1208
|
+
updated_at: 'updated_at'
|
|
1209
|
+
};
|
|
1210
|
+
|
|
1211
|
+
exports.Prisma.ReportingOverviewJobRecruiterScalarFieldEnum = {
|
|
1212
|
+
id: 'id',
|
|
1213
|
+
job_description_id: 'job_description_id',
|
|
1214
|
+
recruiter_user_id: 'recruiter_user_id'
|
|
1215
|
+
};
|
|
1216
|
+
|
|
1189
1217
|
exports.Prisma.ResumeScalarFieldEnum = {
|
|
1190
1218
|
id: 'id',
|
|
1191
1219
|
user_id: 'user_id',
|
|
@@ -1831,6 +1859,11 @@ exports.OngoingEvaluationRoundStatus = exports.$Enums.OngoingEvaluationRoundStat
|
|
|
1831
1859
|
EVALUATED: 'EVALUATED'
|
|
1832
1860
|
};
|
|
1833
1861
|
|
|
1862
|
+
exports.OpenJobClosureType = exports.$Enums.OpenJobClosureType = {
|
|
1863
|
+
FILLED: 'FILLED',
|
|
1864
|
+
CANCELLED: 'CANCELLED'
|
|
1865
|
+
};
|
|
1866
|
+
|
|
1834
1867
|
exports.OrganisationSize = exports.$Enums.OrganisationSize = {
|
|
1835
1868
|
ONE_TO_TEN: 'ONE_TO_TEN',
|
|
1836
1869
|
ELEVEN_TO_FIFTY: 'ELEVEN_TO_FIFTY',
|
|
@@ -1942,6 +1975,8 @@ exports.Prisma.ModelName = {
|
|
|
1942
1975
|
AsyncOperation: 'AsyncOperation',
|
|
1943
1976
|
Question: 'Question',
|
|
1944
1977
|
RefreshToken: 'RefreshToken',
|
|
1978
|
+
ReportingOverviewJobAnalytics: 'ReportingOverviewJobAnalytics',
|
|
1979
|
+
ReportingOverviewJobRecruiter: 'ReportingOverviewJobRecruiter',
|
|
1945
1980
|
Resume: 'Resume',
|
|
1946
1981
|
ResumeData: 'ResumeData',
|
|
1947
1982
|
RoundAnalytics: 'RoundAnalytics',
|
package/package.json
CHANGED
|
@@ -18,6 +18,9 @@ model OpenJobAnalytics {
|
|
|
18
18
|
closing_date DateTime?
|
|
19
19
|
is_open Boolean @default(true)
|
|
20
20
|
|
|
21
|
+
closure_type OpenJobClosureType?
|
|
22
|
+
time_to_hire_days Int?
|
|
23
|
+
|
|
21
24
|
application_count Int @default(0)
|
|
22
25
|
in_consideration_count Int @default(0)
|
|
23
26
|
shortlisted_count Int @default(0)
|
|
@@ -28,6 +31,7 @@ model OpenJobAnalytics {
|
|
|
28
31
|
@@index([organisation_id, hiring_manager_id])
|
|
29
32
|
@@index([organisation_id, opened_at])
|
|
30
33
|
@@index([organisation_id, job_number])
|
|
34
|
+
@@index([organisation_id, is_open, closure_type, closing_date])
|
|
31
35
|
@@index([job_description_id])
|
|
32
36
|
@@map("open_job_analytics")
|
|
33
37
|
@@schema("analytics")
|
|
@@ -54,6 +58,9 @@ model OpenJobAnalyticsDaily {
|
|
|
54
58
|
closing_date DateTime?
|
|
55
59
|
is_open Boolean @default(true)
|
|
56
60
|
|
|
61
|
+
closure_type OpenJobClosureType?
|
|
62
|
+
time_to_hire_days Int?
|
|
63
|
+
|
|
57
64
|
application_count Int @default(0)
|
|
58
65
|
in_consideration_count Int @default(0)
|
|
59
66
|
shortlisted_count Int @default(0)
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
enum OpenJobClosureType {
|
|
2
|
+
FILLED
|
|
3
|
+
CANCELLED
|
|
4
|
+
|
|
5
|
+
@@schema("analytics")
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
model ReportingOverviewJobAnalytics {
|
|
9
|
+
id String @id @default(uuid())
|
|
10
|
+
organisation_id String
|
|
11
|
+
job_description_id String @unique
|
|
12
|
+
|
|
13
|
+
job_code String?
|
|
14
|
+
job_number Int?
|
|
15
|
+
hiring_manager_id String?
|
|
16
|
+
|
|
17
|
+
opened_at DateTime
|
|
18
|
+
target_closing_date DateTime?
|
|
19
|
+
closing_date DateTime?
|
|
20
|
+
is_open Boolean @default(true)
|
|
21
|
+
|
|
22
|
+
closure_type OpenJobClosureType?
|
|
23
|
+
time_to_hire_days Int?
|
|
24
|
+
|
|
25
|
+
in_consideration_count Int @default(0)
|
|
26
|
+
|
|
27
|
+
updated_at DateTime @updatedAt
|
|
28
|
+
|
|
29
|
+
recruiters ReportingOverviewJobRecruiter[]
|
|
30
|
+
|
|
31
|
+
@@index([organisation_id, is_open])
|
|
32
|
+
@@index([organisation_id, hiring_manager_id, is_open])
|
|
33
|
+
@@index([organisation_id, closing_date, closure_type])
|
|
34
|
+
@@map("reporting_overview_job_analytics")
|
|
35
|
+
@@schema("analytics")
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
model ReportingOverviewJobRecruiter {
|
|
39
|
+
id String @id @default(uuid())
|
|
40
|
+
job_description_id String
|
|
41
|
+
recruiter_user_id String
|
|
42
|
+
|
|
43
|
+
job ReportingOverviewJobAnalytics @relation(fields: [job_description_id], references: [job_description_id], onDelete: Cascade)
|
|
44
|
+
|
|
45
|
+
@@unique([job_description_id, recruiter_user_id])
|
|
46
|
+
@@index([recruiter_user_id])
|
|
47
|
+
@@map("reporting_overview_job_recruiters")
|
|
48
|
+
@@schema("analytics")
|
|
49
|
+
}
|