Add application workflow and lead analytics
This commit is contained in:
@@ -43,6 +43,57 @@ type JobApplication {
|
||||
notes: String
|
||||
appliedAt: Time
|
||||
description: String
|
||||
nextAction: String
|
||||
nextActionAt: Time
|
||||
contactName: String
|
||||
contactEmail: String
|
||||
contactRole: String
|
||||
salaryRange: String
|
||||
workArrangement: String
|
||||
applicationSource: String
|
||||
resumeVersion: String
|
||||
requisitionId: String
|
||||
lastContactedAt: Time
|
||||
events: [JobApplicationEvent!]!
|
||||
}
|
||||
|
||||
type JobApplicationEvent {
|
||||
id: ID!
|
||||
createdAt: Time!
|
||||
jobApplicationId: ID!
|
||||
kind: String!
|
||||
occurredAt: Time!
|
||||
note: String
|
||||
source: String!
|
||||
contactName: String
|
||||
contactEmail: String
|
||||
contactRole: String
|
||||
}
|
||||
|
||||
type AnalyticsStatusCount {
|
||||
status: String!
|
||||
count: Int!
|
||||
}
|
||||
|
||||
type AnalyticsTransition {
|
||||
from: String!
|
||||
to: String!
|
||||
count: Int!
|
||||
}
|
||||
|
||||
type Analytics {
|
||||
totalApplications: Int!
|
||||
statusCounts: [AnalyticsStatusCount!]!
|
||||
transitions: [AnalyticsTransition!]!
|
||||
responseCount: Int!
|
||||
interviewCount: Int!
|
||||
offerCount: Int!
|
||||
responseRate: Float!
|
||||
interviewRate: Float!
|
||||
offerRate: Float!
|
||||
averageDaysToResponse: Float
|
||||
averageDaysToInterview: Float
|
||||
averageDaysToOffer: Float
|
||||
}
|
||||
|
||||
input CreateJobApplicationInput {
|
||||
@@ -54,6 +105,17 @@ input CreateJobApplicationInput {
|
||||
notes: String
|
||||
appliedAt: Time
|
||||
description: String
|
||||
nextAction: String
|
||||
nextActionAt: Time
|
||||
contactName: String
|
||||
contactEmail: String
|
||||
contactRole: String
|
||||
salaryRange: String
|
||||
workArrangement: String
|
||||
applicationSource: String
|
||||
resumeVersion: String
|
||||
requisitionId: String
|
||||
lastContactedAt: Time
|
||||
}
|
||||
|
||||
input UpdateJobApplicationInput {
|
||||
@@ -65,11 +127,25 @@ input UpdateJobApplicationInput {
|
||||
notes: String
|
||||
appliedAt: Time
|
||||
description: String
|
||||
nextAction: String
|
||||
nextActionAt: Time
|
||||
clearNextActionAt: Boolean
|
||||
contactName: String
|
||||
contactEmail: String
|
||||
contactRole: String
|
||||
salaryRange: String
|
||||
workArrangement: String
|
||||
applicationSource: String
|
||||
resumeVersion: String
|
||||
requisitionId: String
|
||||
lastContactedAt: Time
|
||||
}
|
||||
|
||||
extend type Query {
|
||||
jobApplications: [JobApplication!]! @admin
|
||||
jobApplication(id: ID!): JobApplication @admin
|
||||
jobApplicationEvents(applicationId: ID!): [JobApplicationEvent!]! @admin
|
||||
analytics: Analytics! @admin
|
||||
}
|
||||
|
||||
extend type Mutation {
|
||||
@@ -78,4 +154,15 @@ extend type Mutation {
|
||||
# Errors on an id that does not exist, like the other deletes; the Boolean
|
||||
# is only ever true.
|
||||
deleteJobApplication(id: ID!): Boolean! @admin
|
||||
addJobApplicationEvent(applicationId: ID!, input: AddJobApplicationEventInput!): JobApplicationEvent! @admin
|
||||
}
|
||||
|
||||
input AddJobApplicationEventInput {
|
||||
kind: String!
|
||||
occurredAt: Time
|
||||
note: String
|
||||
source: String
|
||||
contactName: String
|
||||
contactEmail: String
|
||||
contactRole: String
|
||||
}
|
||||
|
||||
@@ -99,11 +99,19 @@ type JobLeadSyncStatus {
|
||||
lastError: String!
|
||||
}
|
||||
|
||||
input JobLeadFilters {
|
||||
sourceKind: String
|
||||
minScore: Int
|
||||
maxScore: Int
|
||||
location: String
|
||||
company: String
|
||||
}
|
||||
|
||||
extend type Query {
|
||||
jobSources: [JobSource!]! @admin
|
||||
# state filters to one of new, dismissed, promoted; omitted returns all.
|
||||
# Leads that failed the pre-filter are left out unless includeUnmatched.
|
||||
jobLeads(state: String, includeUnmatched: Boolean): [JobLead!]! @admin
|
||||
jobLeads(state: String, includeUnmatched: Boolean, filters: JobLeadFilters): [JobLead!]! @admin
|
||||
jobLead(id: ID!): JobLead @admin
|
||||
jobSearchProfile: JobSearchProfile! @admin
|
||||
jobLeadSyncStatus: JobLeadSyncStatus! @admin
|
||||
@@ -124,6 +132,9 @@ extend type Mutation {
|
||||
# is already tracked, links to that row instead of making a second — and
|
||||
# returns the lead, now promoted, with jobAppId set.
|
||||
promoteJobLead(id: ID!): JobLead! @admin
|
||||
bulkDismissJobLeads(ids: [ID!]!): [JobLead!]! @admin
|
||||
bulkRestoreJobLeads(ids: [ID!]!): [JobLead!]! @admin
|
||||
bulkPromoteJobLeads(ids: [ID!]!): [JobLead!]! @admin
|
||||
|
||||
updateJobSearchProfile(input: UpdateJobSearchProfileInput!): JobSearchProfile! @admin
|
||||
|
||||
|
||||
Reference in New Issue
Block a user