Add application workflow and lead analytics
This commit is contained in:
+2731
-34
File diff suppressed because it is too large
Load Diff
@@ -12,8 +12,14 @@ import (
|
||||
|
||||
"adam-french.co.uk/job-tracker/internal/graph/model"
|
||||
"adam-french.co.uk/job-tracker/internal/models"
|
||||
"adam-french.co.uk/job-tracker/internal/services"
|
||||
)
|
||||
|
||||
// Events is the resolver for the events field.
|
||||
func (r *jobApplicationResolver) Events(ctx context.Context, obj *models.JobApplication) ([]*models.JobApplicationEvent, error) {
|
||||
return services.ListApplicationEvents(r.Store.DB, obj.ID)
|
||||
}
|
||||
|
||||
// CreateJobApplication is the resolver for the createJobApplication field.
|
||||
func (r *mutationResolver) CreateJobApplication(ctx context.Context, input model.CreateJobApplicationInput) (*models.JobApplication, error) {
|
||||
// String! is non-null but not non-empty, and the columns are only
|
||||
@@ -36,10 +42,19 @@ func (r *mutationResolver) CreateJobApplication(ctx context.Context, input model
|
||||
Notes: input.Notes,
|
||||
AppliedAt: input.AppliedAt,
|
||||
Description: input.Description,
|
||||
NextAction: input.NextAction, NextActionAt: input.NextActionAt,
|
||||
ContactName: input.ContactName, ContactEmail: input.ContactEmail,
|
||||
ContactRole: input.ContactRole, LastContactedAt: input.LastContactedAt,
|
||||
SalaryRange: input.SalaryRange, WorkArrangement: input.WorkArrangement,
|
||||
ApplicationSource: input.ApplicationSource, ResumeVersion: input.ResumeVersion,
|
||||
RequisitionID: input.RequisitionID,
|
||||
}
|
||||
if err := r.Store.DB.Create(&app).Error; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if _, err := services.RecordApplicationEvent(r.Store.DB, app.ID, services.ApplicationEventInput{Kind: "created", Source: "graphql"}); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &app, nil
|
||||
}
|
||||
|
||||
@@ -54,6 +69,7 @@ func (r *mutationResolver) UpdateJobApplication(ctx context.Context, id int, inp
|
||||
if err := r.Store.DB.First(&app, id).Error; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
oldStatus := app.Status
|
||||
if input.JobTitle != nil {
|
||||
if strings.TrimSpace(*input.JobTitle) == "" {
|
||||
return nil, fmt.Errorf("jobTitle cannot be empty")
|
||||
@@ -84,9 +100,53 @@ func (r *mutationResolver) UpdateJobApplication(ctx context.Context, id int, inp
|
||||
if input.Description != nil {
|
||||
app.Description = input.Description
|
||||
}
|
||||
if input.NextAction != nil {
|
||||
app.NextAction = input.NextAction
|
||||
}
|
||||
if input.NextActionAt != nil {
|
||||
app.NextActionAt = input.NextActionAt
|
||||
}
|
||||
if input.ClearNextActionAt != nil && *input.ClearNextActionAt {
|
||||
app.NextActionAt = nil
|
||||
}
|
||||
if input.ContactName != nil {
|
||||
app.ContactName = input.ContactName
|
||||
}
|
||||
if input.ContactEmail != nil {
|
||||
app.ContactEmail = input.ContactEmail
|
||||
}
|
||||
if input.ContactRole != nil {
|
||||
app.ContactRole = input.ContactRole
|
||||
}
|
||||
if input.SalaryRange != nil {
|
||||
app.SalaryRange = input.SalaryRange
|
||||
}
|
||||
if input.WorkArrangement != nil {
|
||||
app.WorkArrangement = input.WorkArrangement
|
||||
}
|
||||
if input.ApplicationSource != nil {
|
||||
app.ApplicationSource = input.ApplicationSource
|
||||
}
|
||||
if input.ResumeVersion != nil {
|
||||
app.ResumeVersion = input.ResumeVersion
|
||||
}
|
||||
if input.RequisitionID != nil {
|
||||
app.RequisitionID = input.RequisitionID
|
||||
}
|
||||
if input.LastContactedAt != nil {
|
||||
app.LastContactedAt = input.LastContactedAt
|
||||
}
|
||||
if err := r.Store.DB.Save(&app).Error; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if _, err := services.RecordApplicationEvent(r.Store.DB, app.ID, services.ApplicationEventInput{Kind: "updated", Source: "graphql"}); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if oldStatus != app.Status {
|
||||
if _, err := services.RecordApplicationEvent(r.Store.DB, app.ID, services.ApplicationEventInput{Kind: "status_changed", Source: "graphql", Note: stringPtr(oldStatus + " -> " + app.Status)}); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
return &app, nil
|
||||
}
|
||||
|
||||
@@ -109,6 +169,19 @@ func (r *mutationResolver) DeleteJobApplication(ctx context.Context, id int) (bo
|
||||
return true, nil
|
||||
}
|
||||
|
||||
// AddJobApplicationEvent appends a user-entered follow-up or contact event.
|
||||
func (r *mutationResolver) AddJobApplicationEvent(ctx context.Context, applicationID int, input model.AddJobApplicationEventInput) (*models.JobApplicationEvent, error) {
|
||||
var app models.JobApplication
|
||||
if err := r.Store.DB.First(&app, applicationID).Error; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return services.RecordApplicationEvent(r.Store.DB, uint(applicationID), services.ApplicationEventInput{
|
||||
Kind: input.Kind, OccurredAt: timeValue(input.OccurredAt), Note: input.Note,
|
||||
Source: stringValue(input.Source), ContactName: input.ContactName,
|
||||
ContactEmail: input.ContactEmail, ContactRole: input.ContactRole,
|
||||
})
|
||||
}
|
||||
|
||||
// JobApplications is the resolver for the jobApplications field.
|
||||
func (r *queryResolver) JobApplications(ctx context.Context) ([]*models.JobApplication, error) {
|
||||
// Admin-only even though it is a query (@admin in the schema): job
|
||||
@@ -137,3 +210,36 @@ func (r *queryResolver) JobApplication(ctx context.Context, id int) (*models.Job
|
||||
}
|
||||
return &app, nil
|
||||
}
|
||||
|
||||
// JobApplicationEvents is the explicit activity-history query for clients that
|
||||
// do not need the rest of the application object.
|
||||
func (r *queryResolver) JobApplicationEvents(ctx context.Context, applicationID int) ([]*models.JobApplicationEvent, error) {
|
||||
return services.ListApplicationEvents(r.Store.DB, uint(applicationID))
|
||||
}
|
||||
|
||||
// Analytics is calculated from the same application and activity history used
|
||||
// by the tracker, so the dashboard does not maintain a second data model.
|
||||
func (r *queryResolver) Analytics(ctx context.Context) (*model.Analytics, error) {
|
||||
stats, err := services.LoadAnalytics(r.Store.DB)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
result := &model.Analytics{
|
||||
TotalApplications: stats.TotalApplications, ResponseCount: stats.ResponseCount,
|
||||
InterviewCount: stats.InterviewCount, OfferCount: stats.OfferCount,
|
||||
ResponseRate: stats.ResponseRate, InterviewRate: stats.InterviewRate, OfferRate: stats.OfferRate,
|
||||
AverageDaysToResponse: stats.AverageDaysToResponse, AverageDaysToInterview: stats.AverageDaysToInterview, AverageDaysToOffer: stats.AverageDaysToOffer,
|
||||
}
|
||||
for _, item := range stats.StatusCounts {
|
||||
result.StatusCounts = append(result.StatusCounts, &model.AnalyticsStatusCount{Status: item.Status, Count: item.Count})
|
||||
}
|
||||
for _, item := range stats.Transitions {
|
||||
result.Transitions = append(result.Transitions, &model.AnalyticsTransition{From: item.From, To: item.To, Count: item.Count})
|
||||
}
|
||||
return result, nil
|
||||
}
|
||||
|
||||
// JobApplication returns JobApplicationResolver implementation.
|
||||
func (r *Resolver) JobApplication() JobApplicationResolver { return &jobApplicationResolver{r} }
|
||||
|
||||
type jobApplicationResolver struct{ *Resolver }
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
package graph
|
||||
|
||||
import "time"
|
||||
|
||||
func timeValue(value *time.Time) time.Time {
|
||||
if value == nil {
|
||||
return time.Now()
|
||||
}
|
||||
return *value
|
||||
}
|
||||
|
||||
func stringValue(value *string) string {
|
||||
if value == nil {
|
||||
return ""
|
||||
}
|
||||
return *value
|
||||
}
|
||||
|
||||
func stringPtr(value string) *string { return &value }
|
||||
@@ -112,6 +112,21 @@ func (r *mutationResolver) PromoteJobLead(ctx context.Context, id int) (*models.
|
||||
return services.PromoteJobLead(r.Store.DB, uint(id), time.Now())
|
||||
}
|
||||
|
||||
// BulkDismissJobLeads is the resolver for the bulkDismissJobLeads field.
|
||||
func (r *mutationResolver) BulkDismissJobLeads(ctx context.Context, ids []int) ([]*models.JobLead, error) {
|
||||
return services.BulkLeadState(r.Store.DB, ids, services.LeadNew, services.LeadDismissed)
|
||||
}
|
||||
|
||||
// BulkRestoreJobLeads is the resolver for the bulkRestoreJobLeads field.
|
||||
func (r *mutationResolver) BulkRestoreJobLeads(ctx context.Context, ids []int) ([]*models.JobLead, error) {
|
||||
return services.BulkLeadState(r.Store.DB, ids, services.LeadDismissed, services.LeadNew)
|
||||
}
|
||||
|
||||
// BulkPromoteJobLeads is the resolver for the bulkPromoteJobLeads field.
|
||||
func (r *mutationResolver) BulkPromoteJobLeads(ctx context.Context, ids []int) ([]*models.JobLead, error) {
|
||||
return services.BulkPromoteJobLeads(r.Store.DB, ids, time.Now())
|
||||
}
|
||||
|
||||
// UpdateJobSearchProfile is the resolver for the updateJobSearchProfile field.
|
||||
func (r *mutationResolver) UpdateJobSearchProfile(ctx context.Context, input model.UpdateJobSearchProfileInput) (*models.JobSearchProfile, error) {
|
||||
profile, err := services.LoadJobSearchProfile(r.Store.DB)
|
||||
@@ -173,7 +188,7 @@ func (r *queryResolver) JobSources(ctx context.Context) ([]*models.JobSource, er
|
||||
}
|
||||
|
||||
// JobLeads is the resolver for the jobLeads field.
|
||||
func (r *queryResolver) JobLeads(ctx context.Context, state *string, includeUnmatched *bool) ([]*models.JobLead, error) {
|
||||
func (r *queryResolver) JobLeads(ctx context.Context, state *string, includeUnmatched *bool, filters *model.JobLeadFilters) ([]*models.JobLead, error) {
|
||||
// Omit, not Select: every column but the description, which is tens of
|
||||
// kilobytes a row and is fetched one lead at a time through jobLead. A
|
||||
// client that asks for description here gets "".
|
||||
@@ -186,6 +201,23 @@ func (r *queryResolver) JobLeads(ctx context.Context, state *string, includeUnma
|
||||
// about it; `matched` only decides what the inbox offers.
|
||||
query = query.Where("(matched = ? OR state <> ?)", true, services.LeadNew)
|
||||
}
|
||||
if filters != nil {
|
||||
if filters.SourceKind != nil && strings.TrimSpace(*filters.SourceKind) != "" {
|
||||
query = query.Where("source_kind = ?", strings.TrimSpace(*filters.SourceKind))
|
||||
}
|
||||
if filters.MinScore != nil {
|
||||
query = query.Where("score >= ?", *filters.MinScore)
|
||||
}
|
||||
if filters.MaxScore != nil {
|
||||
query = query.Where("score <= ?", *filters.MaxScore)
|
||||
}
|
||||
if filters.Location != nil && strings.TrimSpace(*filters.Location) != "" {
|
||||
query = query.Where("location ILIKE ?", "%"+strings.TrimSpace(*filters.Location)+"%")
|
||||
}
|
||||
if filters.Company != nil && strings.TrimSpace(*filters.Company) != "" {
|
||||
query = query.Where("company ILIKE ?", "%"+strings.TrimSpace(*filters.Company)+"%")
|
||||
}
|
||||
}
|
||||
var leads []*models.JobLead
|
||||
// Best first, unscored after scored, newest first within a score. The
|
||||
// limit is a backstop for includeUnmatched on a database holding several
|
||||
|
||||
@@ -6,6 +6,42 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type AddJobApplicationEventInput struct {
|
||||
Kind string `json:"kind"`
|
||||
OccurredAt *time.Time `json:"occurredAt,omitempty"`
|
||||
Note *string `json:"note,omitempty"`
|
||||
Source *string `json:"source,omitempty"`
|
||||
ContactName *string `json:"contactName,omitempty"`
|
||||
ContactEmail *string `json:"contactEmail,omitempty"`
|
||||
ContactRole *string `json:"contactRole,omitempty"`
|
||||
}
|
||||
|
||||
type Analytics struct {
|
||||
TotalApplications int `json:"totalApplications"`
|
||||
StatusCounts []*AnalyticsStatusCount `json:"statusCounts"`
|
||||
Transitions []*AnalyticsTransition `json:"transitions"`
|
||||
ResponseCount int `json:"responseCount"`
|
||||
InterviewCount int `json:"interviewCount"`
|
||||
OfferCount int `json:"offerCount"`
|
||||
ResponseRate float64 `json:"responseRate"`
|
||||
InterviewRate float64 `json:"interviewRate"`
|
||||
OfferRate float64 `json:"offerRate"`
|
||||
AverageDaysToResponse *float64 `json:"averageDaysToResponse,omitempty"`
|
||||
AverageDaysToInterview *float64 `json:"averageDaysToInterview,omitempty"`
|
||||
AverageDaysToOffer *float64 `json:"averageDaysToOffer,omitempty"`
|
||||
}
|
||||
|
||||
type AnalyticsStatusCount struct {
|
||||
Status string `json:"status"`
|
||||
Count int `json:"count"`
|
||||
}
|
||||
|
||||
type AnalyticsTransition struct {
|
||||
From string `json:"from"`
|
||||
To string `json:"to"`
|
||||
Count int `json:"count"`
|
||||
}
|
||||
|
||||
type CreateJobAppReferenceInput struct {
|
||||
Category string `json:"category"`
|
||||
Label string `json:"label"`
|
||||
@@ -14,14 +50,25 @@ type CreateJobAppReferenceInput struct {
|
||||
}
|
||||
|
||||
type CreateJobApplicationInput struct {
|
||||
JobTitle string `json:"jobTitle"`
|
||||
Company string `json:"company"`
|
||||
Location *string `json:"location,omitempty"`
|
||||
URL *string `json:"url,omitempty"`
|
||||
Status string `json:"status"`
|
||||
Notes *string `json:"notes,omitempty"`
|
||||
AppliedAt *time.Time `json:"appliedAt,omitempty"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
JobTitle string `json:"jobTitle"`
|
||||
Company string `json:"company"`
|
||||
Location *string `json:"location,omitempty"`
|
||||
URL *string `json:"url,omitempty"`
|
||||
Status string `json:"status"`
|
||||
Notes *string `json:"notes,omitempty"`
|
||||
AppliedAt *time.Time `json:"appliedAt,omitempty"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
NextAction *string `json:"nextAction,omitempty"`
|
||||
NextActionAt *time.Time `json:"nextActionAt,omitempty"`
|
||||
ContactName *string `json:"contactName,omitempty"`
|
||||
ContactEmail *string `json:"contactEmail,omitempty"`
|
||||
ContactRole *string `json:"contactRole,omitempty"`
|
||||
SalaryRange *string `json:"salaryRange,omitempty"`
|
||||
WorkArrangement *string `json:"workArrangement,omitempty"`
|
||||
ApplicationSource *string `json:"applicationSource,omitempty"`
|
||||
ResumeVersion *string `json:"resumeVersion,omitempty"`
|
||||
RequisitionID *string `json:"requisitionId,omitempty"`
|
||||
LastContactedAt *time.Time `json:"lastContactedAt,omitempty"`
|
||||
}
|
||||
|
||||
type CreateJobSourceInput struct {
|
||||
@@ -33,6 +80,14 @@ type CreateJobSourceInput struct {
|
||||
Enabled *bool `json:"enabled,omitempty"`
|
||||
}
|
||||
|
||||
type JobLeadFilters struct {
|
||||
SourceKind *string `json:"sourceKind,omitempty"`
|
||||
MinScore *int `json:"minScore,omitempty"`
|
||||
MaxScore *int `json:"maxScore,omitempty"`
|
||||
Location *string `json:"location,omitempty"`
|
||||
Company *string `json:"company,omitempty"`
|
||||
}
|
||||
|
||||
type JobLeadSyncStatus struct {
|
||||
Running bool `json:"running"`
|
||||
LastRunAt *time.Time `json:"lastRunAt,omitempty"`
|
||||
@@ -53,14 +108,26 @@ type UpdateJobAppReferenceInput struct {
|
||||
}
|
||||
|
||||
type UpdateJobApplicationInput struct {
|
||||
JobTitle *string `json:"jobTitle,omitempty"`
|
||||
Company *string `json:"company,omitempty"`
|
||||
Location *string `json:"location,omitempty"`
|
||||
URL *string `json:"url,omitempty"`
|
||||
Status *string `json:"status,omitempty"`
|
||||
Notes *string `json:"notes,omitempty"`
|
||||
AppliedAt *time.Time `json:"appliedAt,omitempty"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
JobTitle *string `json:"jobTitle,omitempty"`
|
||||
Company *string `json:"company,omitempty"`
|
||||
Location *string `json:"location,omitempty"`
|
||||
URL *string `json:"url,omitempty"`
|
||||
Status *string `json:"status,omitempty"`
|
||||
Notes *string `json:"notes,omitempty"`
|
||||
AppliedAt *time.Time `json:"appliedAt,omitempty"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
NextAction *string `json:"nextAction,omitempty"`
|
||||
NextActionAt *time.Time `json:"nextActionAt,omitempty"`
|
||||
ClearNextActionAt *bool `json:"clearNextActionAt,omitempty"`
|
||||
ContactName *string `json:"contactName,omitempty"`
|
||||
ContactEmail *string `json:"contactEmail,omitempty"`
|
||||
ContactRole *string `json:"contactRole,omitempty"`
|
||||
SalaryRange *string `json:"salaryRange,omitempty"`
|
||||
WorkArrangement *string `json:"workArrangement,omitempty"`
|
||||
ApplicationSource *string `json:"applicationSource,omitempty"`
|
||||
ResumeVersion *string `json:"resumeVersion,omitempty"`
|
||||
RequisitionID *string `json:"requisitionId,omitempty"`
|
||||
LastContactedAt *time.Time `json:"lastContactedAt,omitempty"`
|
||||
}
|
||||
|
||||
type UpdateJobSearchProfileInput struct {
|
||||
|
||||
@@ -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