Files
job-tracker/internal/graph/generated.go
T
adamf 1147bc5697
Test and publish / test (push) Successful in 2m33s
Test and publish / publish (push) Successful in 11m9s
Add application workflow and lead analytics
2026-10-23 20:45:48 +01:00

10148 lines
349 KiB
Go

// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
package graph
import (
"bytes"
"context"
"embed"
"errors"
"fmt"
"math"
"strconv"
"sync/atomic"
"time"
"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"
"github.com/99designs/gqlgen/graphql"
"github.com/99designs/gqlgen/graphql/introspection"
gqlparser "github.com/vektah/gqlparser/v2"
"github.com/vektah/gqlparser/v2/ast"
)
// region ***************************** api!.gotpl *****************************
// NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema {
return &executableSchema{SchemaData: cfg.Schema, Resolvers: cfg.Resolvers, Directives: cfg.Directives, ComplexityRoot: cfg.Complexity}
}
type Config = graphql.Config[ResolverRoot, DirectiveRoot, ComplexityRoot]
type ResolverRoot interface {
JobApplication() JobApplicationResolver
Mutation() MutationResolver
Query() QueryResolver
}
type DirectiveRoot struct {
Admin func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error)
}
type ComplexityRoot struct {
Analytics struct {
AverageDaysToInterview func(childComplexity int) int
AverageDaysToOffer func(childComplexity int) int
AverageDaysToResponse func(childComplexity int) int
InterviewCount func(childComplexity int) int
InterviewRate func(childComplexity int) int
OfferCount func(childComplexity int) int
OfferRate func(childComplexity int) int
ResponseCount func(childComplexity int) int
ResponseRate func(childComplexity int) int
StatusCounts func(childComplexity int) int
TotalApplications func(childComplexity int) int
Transitions func(childComplexity int) int
}
AnalyticsStatusCount struct {
Count func(childComplexity int) int
Status func(childComplexity int) int
}
AnalyticsTransition struct {
Count func(childComplexity int) int
From func(childComplexity int) int
To func(childComplexity int) int
}
JobAppReference struct {
Category func(childComplexity int) int
CreatedAt func(childComplexity int) int
ID func(childComplexity int) int
Label func(childComplexity int) int
SortOrder func(childComplexity int) int
UpdatedAt func(childComplexity int) int
Value func(childComplexity int) int
}
JobApplication struct {
ApplicationSource func(childComplexity int) int
AppliedAt func(childComplexity int) int
Company func(childComplexity int) int
ContactEmail func(childComplexity int) int
ContactName func(childComplexity int) int
ContactRole func(childComplexity int) int
CreatedAt func(childComplexity int) int
Description func(childComplexity int) int
Events func(childComplexity int) int
ID func(childComplexity int) int
JobTitle func(childComplexity int) int
LastContactedAt func(childComplexity int) int
Location func(childComplexity int) int
NextAction func(childComplexity int) int
NextActionAt func(childComplexity int) int
Notes func(childComplexity int) int
RequisitionID func(childComplexity int) int
ResumeVersion func(childComplexity int) int
SalaryRange func(childComplexity int) int
Status func(childComplexity int) int
URL func(childComplexity int) int
UpdatedAt func(childComplexity int) int
WorkArrangement func(childComplexity int) int
}
JobApplicationEvent struct {
ContactEmail func(childComplexity int) int
ContactName func(childComplexity int) int
ContactRole func(childComplexity int) int
CreatedAt func(childComplexity int) int
ID func(childComplexity int) int
JobApplicationID func(childComplexity int) int
Kind func(childComplexity int) int
Note func(childComplexity int) int
OccurredAt func(childComplexity int) int
Source func(childComplexity int) int
}
JobLead struct {
Company func(childComplexity int) int
CreatedAt func(childComplexity int) int
Description func(childComplexity int) int
ID func(childComplexity int) int
JobAppID func(childComplexity int) int
JobTitle func(childComplexity int) int
LastSeenAt func(childComplexity int) int
Location func(childComplexity int) int
Matched func(childComplexity int) int
PostedAt func(childComplexity int) int
Score func(childComplexity int) int
ScoreReasons func(childComplexity int) int
ScoredAt func(childComplexity int) int
SourceKind func(childComplexity int) int
State func(childComplexity int) int
URL func(childComplexity int) int
}
JobLeadSyncStatus struct {
LastError func(childComplexity int) int
LastRunAt func(childComplexity int) int
Running func(childComplexity int) int
}
JobSearchProfile struct {
ExcludeKeywords func(childComplexity int) int
IncludeKeywords func(childComplexity int) int
Locations func(childComplexity int) int
MinScore func(childComplexity int) int
Profile func(childComplexity int) int
UpdatedAt func(childComplexity int) int
}
JobSource struct {
CreatedAt func(childComplexity int) int
Enabled func(childComplexity int) int
ID func(childComplexity int) int
Kind func(childComplexity int) int
Label func(childComplexity int) int
LastCount func(childComplexity int) int
LastError func(childComplexity int) int
LastFetchedAt func(childComplexity int) int
Location func(childComplexity int) int
Query func(childComplexity int) int
Token func(childComplexity int) int
UpdatedAt func(childComplexity int) int
}
Mutation struct {
AddJobApplicationEvent func(childComplexity int, applicationID int, input model.AddJobApplicationEventInput) int
BulkDismissJobLeads func(childComplexity int, ids []int) int
BulkPromoteJobLeads func(childComplexity int, ids []int) int
BulkRestoreJobLeads func(childComplexity int, ids []int) int
CreateJobAppReference func(childComplexity int, input model.CreateJobAppReferenceInput) int
CreateJobApplication func(childComplexity int, input model.CreateJobApplicationInput) int
CreateJobSource func(childComplexity int, input model.CreateJobSourceInput) int
DeleteJobAppReference func(childComplexity int, id int) int
DeleteJobApplication func(childComplexity int, id int) int
DeleteJobSource func(childComplexity int, id int) int
DismissJobLead func(childComplexity int, id int) int
PromoteJobLead func(childComplexity int, id int) int
RescoreJobLeads func(childComplexity int) int
RestoreJobLead func(childComplexity int, id int) int
RunJobLeadSync func(childComplexity int) int
ScoreJobLeads func(childComplexity int) int
UpdateJobAppReference func(childComplexity int, id int, input model.UpdateJobAppReferenceInput) int
UpdateJobApplication func(childComplexity int, id int, input model.UpdateJobApplicationInput) int
UpdateJobSearchProfile func(childComplexity int, input model.UpdateJobSearchProfileInput) int
UpdateJobSource func(childComplexity int, id int, input model.UpdateJobSourceInput) int
}
Query struct {
Analytics func(childComplexity int) int
JobAppReferences func(childComplexity int) int
JobApplication func(childComplexity int, id int) int
JobApplicationEvents func(childComplexity int, applicationID int) int
JobApplications func(childComplexity int) int
JobLead func(childComplexity int, id int) int
JobLeadSyncStatus func(childComplexity int) int
JobLeads func(childComplexity int, state *string, includeUnmatched *bool, filters *model.JobLeadFilters) int
JobSearchProfile func(childComplexity int) int
JobSources func(childComplexity int) int
}
}
// endregion ***************************** api!.gotpl *****************************
// region ************************** generated!.gotpl **************************
type JobApplicationResolver interface {
Events(ctx context.Context, obj *models.JobApplication) ([]*models.JobApplicationEvent, error)
}
type MutationResolver interface {
CreateJobAppReference(ctx context.Context, input model.CreateJobAppReferenceInput) (*models.JobAppReference, error)
UpdateJobAppReference(ctx context.Context, id int, input model.UpdateJobAppReferenceInput) (*models.JobAppReference, error)
DeleteJobAppReference(ctx context.Context, id int) (bool, error)
CreateJobApplication(ctx context.Context, input model.CreateJobApplicationInput) (*models.JobApplication, error)
UpdateJobApplication(ctx context.Context, id int, input model.UpdateJobApplicationInput) (*models.JobApplication, error)
DeleteJobApplication(ctx context.Context, id int) (bool, error)
AddJobApplicationEvent(ctx context.Context, applicationID int, input model.AddJobApplicationEventInput) (*models.JobApplicationEvent, error)
CreateJobSource(ctx context.Context, input model.CreateJobSourceInput) (*models.JobSource, error)
UpdateJobSource(ctx context.Context, id int, input model.UpdateJobSourceInput) (*models.JobSource, error)
DeleteJobSource(ctx context.Context, id int) (bool, error)
DismissJobLead(ctx context.Context, id int) (*models.JobLead, error)
RestoreJobLead(ctx context.Context, id int) (*models.JobLead, error)
PromoteJobLead(ctx context.Context, id int) (*models.JobLead, error)
BulkDismissJobLeads(ctx context.Context, ids []int) ([]*models.JobLead, error)
BulkRestoreJobLeads(ctx context.Context, ids []int) ([]*models.JobLead, error)
BulkPromoteJobLeads(ctx context.Context, ids []int) ([]*models.JobLead, error)
UpdateJobSearchProfile(ctx context.Context, input model.UpdateJobSearchProfileInput) (*models.JobSearchProfile, error)
RunJobLeadSync(ctx context.Context) (bool, error)
ScoreJobLeads(ctx context.Context) (bool, error)
RescoreJobLeads(ctx context.Context) (bool, error)
}
type QueryResolver interface {
JobAppReferences(ctx context.Context) ([]*models.JobAppReference, error)
JobApplications(ctx context.Context) ([]*models.JobApplication, error)
JobApplication(ctx context.Context, id int) (*models.JobApplication, error)
JobApplicationEvents(ctx context.Context, applicationID int) ([]*models.JobApplicationEvent, error)
Analytics(ctx context.Context) (*model.Analytics, error)
JobSources(ctx context.Context) ([]*models.JobSource, error)
JobLeads(ctx context.Context, state *string, includeUnmatched *bool, filters *model.JobLeadFilters) ([]*models.JobLead, error)
JobLead(ctx context.Context, id int) (*models.JobLead, error)
JobSearchProfile(ctx context.Context) (*models.JobSearchProfile, error)
JobLeadSyncStatus(ctx context.Context) (*model.JobLeadSyncStatus, error)
}
// endregion ************************** generated!.gotpl **************************
// region ************************** internal!.gotpl ***************************
type executableSchema graphql.ExecutableSchemaState[ResolverRoot, DirectiveRoot, ComplexityRoot]
func (e *executableSchema) Schema() *ast.Schema {
if e.SchemaData != nil {
return e.SchemaData
}
return parsedSchema
}
func (e *executableSchema) Complexity(ctx context.Context, typeName, field string, childComplexity int, rawArgs map[string]any) (int, bool) {
ec := newExecutionContext(nil, e, nil)
_ = ec
switch typeName + "." + field {
case "Analytics.averageDaysToInterview":
if e.ComplexityRoot.Analytics.AverageDaysToInterview == nil {
break
}
return e.ComplexityRoot.Analytics.AverageDaysToInterview(childComplexity), true
case "Analytics.averageDaysToOffer":
if e.ComplexityRoot.Analytics.AverageDaysToOffer == nil {
break
}
return e.ComplexityRoot.Analytics.AverageDaysToOffer(childComplexity), true
case "Analytics.averageDaysToResponse":
if e.ComplexityRoot.Analytics.AverageDaysToResponse == nil {
break
}
return e.ComplexityRoot.Analytics.AverageDaysToResponse(childComplexity), true
case "Analytics.interviewCount":
if e.ComplexityRoot.Analytics.InterviewCount == nil {
break
}
return e.ComplexityRoot.Analytics.InterviewCount(childComplexity), true
case "Analytics.interviewRate":
if e.ComplexityRoot.Analytics.InterviewRate == nil {
break
}
return e.ComplexityRoot.Analytics.InterviewRate(childComplexity), true
case "Analytics.offerCount":
if e.ComplexityRoot.Analytics.OfferCount == nil {
break
}
return e.ComplexityRoot.Analytics.OfferCount(childComplexity), true
case "Analytics.offerRate":
if e.ComplexityRoot.Analytics.OfferRate == nil {
break
}
return e.ComplexityRoot.Analytics.OfferRate(childComplexity), true
case "Analytics.responseCount":
if e.ComplexityRoot.Analytics.ResponseCount == nil {
break
}
return e.ComplexityRoot.Analytics.ResponseCount(childComplexity), true
case "Analytics.responseRate":
if e.ComplexityRoot.Analytics.ResponseRate == nil {
break
}
return e.ComplexityRoot.Analytics.ResponseRate(childComplexity), true
case "Analytics.statusCounts":
if e.ComplexityRoot.Analytics.StatusCounts == nil {
break
}
return e.ComplexityRoot.Analytics.StatusCounts(childComplexity), true
case "Analytics.totalApplications":
if e.ComplexityRoot.Analytics.TotalApplications == nil {
break
}
return e.ComplexityRoot.Analytics.TotalApplications(childComplexity), true
case "Analytics.transitions":
if e.ComplexityRoot.Analytics.Transitions == nil {
break
}
return e.ComplexityRoot.Analytics.Transitions(childComplexity), true
case "AnalyticsStatusCount.count":
if e.ComplexityRoot.AnalyticsStatusCount.Count == nil {
break
}
return e.ComplexityRoot.AnalyticsStatusCount.Count(childComplexity), true
case "AnalyticsStatusCount.status":
if e.ComplexityRoot.AnalyticsStatusCount.Status == nil {
break
}
return e.ComplexityRoot.AnalyticsStatusCount.Status(childComplexity), true
case "AnalyticsTransition.count":
if e.ComplexityRoot.AnalyticsTransition.Count == nil {
break
}
return e.ComplexityRoot.AnalyticsTransition.Count(childComplexity), true
case "AnalyticsTransition.from":
if e.ComplexityRoot.AnalyticsTransition.From == nil {
break
}
return e.ComplexityRoot.AnalyticsTransition.From(childComplexity), true
case "AnalyticsTransition.to":
if e.ComplexityRoot.AnalyticsTransition.To == nil {
break
}
return e.ComplexityRoot.AnalyticsTransition.To(childComplexity), true
case "JobAppReference.category":
if e.ComplexityRoot.JobAppReference.Category == nil {
break
}
return e.ComplexityRoot.JobAppReference.Category(childComplexity), true
case "JobAppReference.createdAt":
if e.ComplexityRoot.JobAppReference.CreatedAt == nil {
break
}
return e.ComplexityRoot.JobAppReference.CreatedAt(childComplexity), true
case "JobAppReference.id":
if e.ComplexityRoot.JobAppReference.ID == nil {
break
}
return e.ComplexityRoot.JobAppReference.ID(childComplexity), true
case "JobAppReference.label":
if e.ComplexityRoot.JobAppReference.Label == nil {
break
}
return e.ComplexityRoot.JobAppReference.Label(childComplexity), true
case "JobAppReference.sortOrder":
if e.ComplexityRoot.JobAppReference.SortOrder == nil {
break
}
return e.ComplexityRoot.JobAppReference.SortOrder(childComplexity), true
case "JobAppReference.updatedAt":
if e.ComplexityRoot.JobAppReference.UpdatedAt == nil {
break
}
return e.ComplexityRoot.JobAppReference.UpdatedAt(childComplexity), true
case "JobAppReference.value":
if e.ComplexityRoot.JobAppReference.Value == nil {
break
}
return e.ComplexityRoot.JobAppReference.Value(childComplexity), true
case "JobApplication.applicationSource":
if e.ComplexityRoot.JobApplication.ApplicationSource == nil {
break
}
return e.ComplexityRoot.JobApplication.ApplicationSource(childComplexity), true
case "JobApplication.appliedAt":
if e.ComplexityRoot.JobApplication.AppliedAt == nil {
break
}
return e.ComplexityRoot.JobApplication.AppliedAt(childComplexity), true
case "JobApplication.company":
if e.ComplexityRoot.JobApplication.Company == nil {
break
}
return e.ComplexityRoot.JobApplication.Company(childComplexity), true
case "JobApplication.contactEmail":
if e.ComplexityRoot.JobApplication.ContactEmail == nil {
break
}
return e.ComplexityRoot.JobApplication.ContactEmail(childComplexity), true
case "JobApplication.contactName":
if e.ComplexityRoot.JobApplication.ContactName == nil {
break
}
return e.ComplexityRoot.JobApplication.ContactName(childComplexity), true
case "JobApplication.contactRole":
if e.ComplexityRoot.JobApplication.ContactRole == nil {
break
}
return e.ComplexityRoot.JobApplication.ContactRole(childComplexity), true
case "JobApplication.createdAt":
if e.ComplexityRoot.JobApplication.CreatedAt == nil {
break
}
return e.ComplexityRoot.JobApplication.CreatedAt(childComplexity), true
case "JobApplication.description":
if e.ComplexityRoot.JobApplication.Description == nil {
break
}
return e.ComplexityRoot.JobApplication.Description(childComplexity), true
case "JobApplication.events":
if e.ComplexityRoot.JobApplication.Events == nil {
break
}
return e.ComplexityRoot.JobApplication.Events(childComplexity), true
case "JobApplication.id":
if e.ComplexityRoot.JobApplication.ID == nil {
break
}
return e.ComplexityRoot.JobApplication.ID(childComplexity), true
case "JobApplication.jobTitle":
if e.ComplexityRoot.JobApplication.JobTitle == nil {
break
}
return e.ComplexityRoot.JobApplication.JobTitle(childComplexity), true
case "JobApplication.lastContactedAt":
if e.ComplexityRoot.JobApplication.LastContactedAt == nil {
break
}
return e.ComplexityRoot.JobApplication.LastContactedAt(childComplexity), true
case "JobApplication.location":
if e.ComplexityRoot.JobApplication.Location == nil {
break
}
return e.ComplexityRoot.JobApplication.Location(childComplexity), true
case "JobApplication.nextAction":
if e.ComplexityRoot.JobApplication.NextAction == nil {
break
}
return e.ComplexityRoot.JobApplication.NextAction(childComplexity), true
case "JobApplication.nextActionAt":
if e.ComplexityRoot.JobApplication.NextActionAt == nil {
break
}
return e.ComplexityRoot.JobApplication.NextActionAt(childComplexity), true
case "JobApplication.notes":
if e.ComplexityRoot.JobApplication.Notes == nil {
break
}
return e.ComplexityRoot.JobApplication.Notes(childComplexity), true
case "JobApplication.requisitionId":
if e.ComplexityRoot.JobApplication.RequisitionID == nil {
break
}
return e.ComplexityRoot.JobApplication.RequisitionID(childComplexity), true
case "JobApplication.resumeVersion":
if e.ComplexityRoot.JobApplication.ResumeVersion == nil {
break
}
return e.ComplexityRoot.JobApplication.ResumeVersion(childComplexity), true
case "JobApplication.salaryRange":
if e.ComplexityRoot.JobApplication.SalaryRange == nil {
break
}
return e.ComplexityRoot.JobApplication.SalaryRange(childComplexity), true
case "JobApplication.status":
if e.ComplexityRoot.JobApplication.Status == nil {
break
}
return e.ComplexityRoot.JobApplication.Status(childComplexity), true
case "JobApplication.url":
if e.ComplexityRoot.JobApplication.URL == nil {
break
}
return e.ComplexityRoot.JobApplication.URL(childComplexity), true
case "JobApplication.updatedAt":
if e.ComplexityRoot.JobApplication.UpdatedAt == nil {
break
}
return e.ComplexityRoot.JobApplication.UpdatedAt(childComplexity), true
case "JobApplication.workArrangement":
if e.ComplexityRoot.JobApplication.WorkArrangement == nil {
break
}
return e.ComplexityRoot.JobApplication.WorkArrangement(childComplexity), true
case "JobApplicationEvent.contactEmail":
if e.ComplexityRoot.JobApplicationEvent.ContactEmail == nil {
break
}
return e.ComplexityRoot.JobApplicationEvent.ContactEmail(childComplexity), true
case "JobApplicationEvent.contactName":
if e.ComplexityRoot.JobApplicationEvent.ContactName == nil {
break
}
return e.ComplexityRoot.JobApplicationEvent.ContactName(childComplexity), true
case "JobApplicationEvent.contactRole":
if e.ComplexityRoot.JobApplicationEvent.ContactRole == nil {
break
}
return e.ComplexityRoot.JobApplicationEvent.ContactRole(childComplexity), true
case "JobApplicationEvent.createdAt":
if e.ComplexityRoot.JobApplicationEvent.CreatedAt == nil {
break
}
return e.ComplexityRoot.JobApplicationEvent.CreatedAt(childComplexity), true
case "JobApplicationEvent.id":
if e.ComplexityRoot.JobApplicationEvent.ID == nil {
break
}
return e.ComplexityRoot.JobApplicationEvent.ID(childComplexity), true
case "JobApplicationEvent.jobApplicationId":
if e.ComplexityRoot.JobApplicationEvent.JobApplicationID == nil {
break
}
return e.ComplexityRoot.JobApplicationEvent.JobApplicationID(childComplexity), true
case "JobApplicationEvent.kind":
if e.ComplexityRoot.JobApplicationEvent.Kind == nil {
break
}
return e.ComplexityRoot.JobApplicationEvent.Kind(childComplexity), true
case "JobApplicationEvent.note":
if e.ComplexityRoot.JobApplicationEvent.Note == nil {
break
}
return e.ComplexityRoot.JobApplicationEvent.Note(childComplexity), true
case "JobApplicationEvent.occurredAt":
if e.ComplexityRoot.JobApplicationEvent.OccurredAt == nil {
break
}
return e.ComplexityRoot.JobApplicationEvent.OccurredAt(childComplexity), true
case "JobApplicationEvent.source":
if e.ComplexityRoot.JobApplicationEvent.Source == nil {
break
}
return e.ComplexityRoot.JobApplicationEvent.Source(childComplexity), true
case "JobLead.company":
if e.ComplexityRoot.JobLead.Company == nil {
break
}
return e.ComplexityRoot.JobLead.Company(childComplexity), true
case "JobLead.createdAt":
if e.ComplexityRoot.JobLead.CreatedAt == nil {
break
}
return e.ComplexityRoot.JobLead.CreatedAt(childComplexity), true
case "JobLead.description":
if e.ComplexityRoot.JobLead.Description == nil {
break
}
return e.ComplexityRoot.JobLead.Description(childComplexity), true
case "JobLead.id":
if e.ComplexityRoot.JobLead.ID == nil {
break
}
return e.ComplexityRoot.JobLead.ID(childComplexity), true
case "JobLead.jobAppId":
if e.ComplexityRoot.JobLead.JobAppID == nil {
break
}
return e.ComplexityRoot.JobLead.JobAppID(childComplexity), true
case "JobLead.jobTitle":
if e.ComplexityRoot.JobLead.JobTitle == nil {
break
}
return e.ComplexityRoot.JobLead.JobTitle(childComplexity), true
case "JobLead.lastSeenAt":
if e.ComplexityRoot.JobLead.LastSeenAt == nil {
break
}
return e.ComplexityRoot.JobLead.LastSeenAt(childComplexity), true
case "JobLead.location":
if e.ComplexityRoot.JobLead.Location == nil {
break
}
return e.ComplexityRoot.JobLead.Location(childComplexity), true
case "JobLead.matched":
if e.ComplexityRoot.JobLead.Matched == nil {
break
}
return e.ComplexityRoot.JobLead.Matched(childComplexity), true
case "JobLead.postedAt":
if e.ComplexityRoot.JobLead.PostedAt == nil {
break
}
return e.ComplexityRoot.JobLead.PostedAt(childComplexity), true
case "JobLead.score":
if e.ComplexityRoot.JobLead.Score == nil {
break
}
return e.ComplexityRoot.JobLead.Score(childComplexity), true
case "JobLead.scoreReasons":
if e.ComplexityRoot.JobLead.ScoreReasons == nil {
break
}
return e.ComplexityRoot.JobLead.ScoreReasons(childComplexity), true
case "JobLead.scoredAt":
if e.ComplexityRoot.JobLead.ScoredAt == nil {
break
}
return e.ComplexityRoot.JobLead.ScoredAt(childComplexity), true
case "JobLead.sourceKind":
if e.ComplexityRoot.JobLead.SourceKind == nil {
break
}
return e.ComplexityRoot.JobLead.SourceKind(childComplexity), true
case "JobLead.state":
if e.ComplexityRoot.JobLead.State == nil {
break
}
return e.ComplexityRoot.JobLead.State(childComplexity), true
case "JobLead.url":
if e.ComplexityRoot.JobLead.URL == nil {
break
}
return e.ComplexityRoot.JobLead.URL(childComplexity), true
case "JobLeadSyncStatus.lastError":
if e.ComplexityRoot.JobLeadSyncStatus.LastError == nil {
break
}
return e.ComplexityRoot.JobLeadSyncStatus.LastError(childComplexity), true
case "JobLeadSyncStatus.lastRunAt":
if e.ComplexityRoot.JobLeadSyncStatus.LastRunAt == nil {
break
}
return e.ComplexityRoot.JobLeadSyncStatus.LastRunAt(childComplexity), true
case "JobLeadSyncStatus.running":
if e.ComplexityRoot.JobLeadSyncStatus.Running == nil {
break
}
return e.ComplexityRoot.JobLeadSyncStatus.Running(childComplexity), true
case "JobSearchProfile.excludeKeywords":
if e.ComplexityRoot.JobSearchProfile.ExcludeKeywords == nil {
break
}
return e.ComplexityRoot.JobSearchProfile.ExcludeKeywords(childComplexity), true
case "JobSearchProfile.includeKeywords":
if e.ComplexityRoot.JobSearchProfile.IncludeKeywords == nil {
break
}
return e.ComplexityRoot.JobSearchProfile.IncludeKeywords(childComplexity), true
case "JobSearchProfile.locations":
if e.ComplexityRoot.JobSearchProfile.Locations == nil {
break
}
return e.ComplexityRoot.JobSearchProfile.Locations(childComplexity), true
case "JobSearchProfile.minScore":
if e.ComplexityRoot.JobSearchProfile.MinScore == nil {
break
}
return e.ComplexityRoot.JobSearchProfile.MinScore(childComplexity), true
case "JobSearchProfile.profile":
if e.ComplexityRoot.JobSearchProfile.Profile == nil {
break
}
return e.ComplexityRoot.JobSearchProfile.Profile(childComplexity), true
case "JobSearchProfile.updatedAt":
if e.ComplexityRoot.JobSearchProfile.UpdatedAt == nil {
break
}
return e.ComplexityRoot.JobSearchProfile.UpdatedAt(childComplexity), true
case "JobSource.createdAt":
if e.ComplexityRoot.JobSource.CreatedAt == nil {
break
}
return e.ComplexityRoot.JobSource.CreatedAt(childComplexity), true
case "JobSource.enabled":
if e.ComplexityRoot.JobSource.Enabled == nil {
break
}
return e.ComplexityRoot.JobSource.Enabled(childComplexity), true
case "JobSource.id":
if e.ComplexityRoot.JobSource.ID == nil {
break
}
return e.ComplexityRoot.JobSource.ID(childComplexity), true
case "JobSource.kind":
if e.ComplexityRoot.JobSource.Kind == nil {
break
}
return e.ComplexityRoot.JobSource.Kind(childComplexity), true
case "JobSource.label":
if e.ComplexityRoot.JobSource.Label == nil {
break
}
return e.ComplexityRoot.JobSource.Label(childComplexity), true
case "JobSource.lastCount":
if e.ComplexityRoot.JobSource.LastCount == nil {
break
}
return e.ComplexityRoot.JobSource.LastCount(childComplexity), true
case "JobSource.lastError":
if e.ComplexityRoot.JobSource.LastError == nil {
break
}
return e.ComplexityRoot.JobSource.LastError(childComplexity), true
case "JobSource.lastFetchedAt":
if e.ComplexityRoot.JobSource.LastFetchedAt == nil {
break
}
return e.ComplexityRoot.JobSource.LastFetchedAt(childComplexity), true
case "JobSource.location":
if e.ComplexityRoot.JobSource.Location == nil {
break
}
return e.ComplexityRoot.JobSource.Location(childComplexity), true
case "JobSource.query":
if e.ComplexityRoot.JobSource.Query == nil {
break
}
return e.ComplexityRoot.JobSource.Query(childComplexity), true
case "JobSource.token":
if e.ComplexityRoot.JobSource.Token == nil {
break
}
return e.ComplexityRoot.JobSource.Token(childComplexity), true
case "JobSource.updatedAt":
if e.ComplexityRoot.JobSource.UpdatedAt == nil {
break
}
return e.ComplexityRoot.JobSource.UpdatedAt(childComplexity), true
case "Mutation.addJobApplicationEvent":
if e.ComplexityRoot.Mutation.AddJobApplicationEvent == nil {
break
}
args, err := ec.field_Mutation_addJobApplicationEvent_args(ctx, rawArgs)
if err != nil {
return 0, false
}
return e.ComplexityRoot.Mutation.AddJobApplicationEvent(childComplexity, args["applicationId"].(int), args["input"].(model.AddJobApplicationEventInput)), true
case "Mutation.bulkDismissJobLeads":
if e.ComplexityRoot.Mutation.BulkDismissJobLeads == nil {
break
}
args, err := ec.field_Mutation_bulkDismissJobLeads_args(ctx, rawArgs)
if err != nil {
return 0, false
}
return e.ComplexityRoot.Mutation.BulkDismissJobLeads(childComplexity, args["ids"].([]int)), true
case "Mutation.bulkPromoteJobLeads":
if e.ComplexityRoot.Mutation.BulkPromoteJobLeads == nil {
break
}
args, err := ec.field_Mutation_bulkPromoteJobLeads_args(ctx, rawArgs)
if err != nil {
return 0, false
}
return e.ComplexityRoot.Mutation.BulkPromoteJobLeads(childComplexity, args["ids"].([]int)), true
case "Mutation.bulkRestoreJobLeads":
if e.ComplexityRoot.Mutation.BulkRestoreJobLeads == nil {
break
}
args, err := ec.field_Mutation_bulkRestoreJobLeads_args(ctx, rawArgs)
if err != nil {
return 0, false
}
return e.ComplexityRoot.Mutation.BulkRestoreJobLeads(childComplexity, args["ids"].([]int)), true
case "Mutation.createJobAppReference":
if e.ComplexityRoot.Mutation.CreateJobAppReference == nil {
break
}
args, err := ec.field_Mutation_createJobAppReference_args(ctx, rawArgs)
if err != nil {
return 0, false
}
return e.ComplexityRoot.Mutation.CreateJobAppReference(childComplexity, args["input"].(model.CreateJobAppReferenceInput)), true
case "Mutation.createJobApplication":
if e.ComplexityRoot.Mutation.CreateJobApplication == nil {
break
}
args, err := ec.field_Mutation_createJobApplication_args(ctx, rawArgs)
if err != nil {
return 0, false
}
return e.ComplexityRoot.Mutation.CreateJobApplication(childComplexity, args["input"].(model.CreateJobApplicationInput)), true
case "Mutation.createJobSource":
if e.ComplexityRoot.Mutation.CreateJobSource == nil {
break
}
args, err := ec.field_Mutation_createJobSource_args(ctx, rawArgs)
if err != nil {
return 0, false
}
return e.ComplexityRoot.Mutation.CreateJobSource(childComplexity, args["input"].(model.CreateJobSourceInput)), true
case "Mutation.deleteJobAppReference":
if e.ComplexityRoot.Mutation.DeleteJobAppReference == nil {
break
}
args, err := ec.field_Mutation_deleteJobAppReference_args(ctx, rawArgs)
if err != nil {
return 0, false
}
return e.ComplexityRoot.Mutation.DeleteJobAppReference(childComplexity, args["id"].(int)), true
case "Mutation.deleteJobApplication":
if e.ComplexityRoot.Mutation.DeleteJobApplication == nil {
break
}
args, err := ec.field_Mutation_deleteJobApplication_args(ctx, rawArgs)
if err != nil {
return 0, false
}
return e.ComplexityRoot.Mutation.DeleteJobApplication(childComplexity, args["id"].(int)), true
case "Mutation.deleteJobSource":
if e.ComplexityRoot.Mutation.DeleteJobSource == nil {
break
}
args, err := ec.field_Mutation_deleteJobSource_args(ctx, rawArgs)
if err != nil {
return 0, false
}
return e.ComplexityRoot.Mutation.DeleteJobSource(childComplexity, args["id"].(int)), true
case "Mutation.dismissJobLead":
if e.ComplexityRoot.Mutation.DismissJobLead == nil {
break
}
args, err := ec.field_Mutation_dismissJobLead_args(ctx, rawArgs)
if err != nil {
return 0, false
}
return e.ComplexityRoot.Mutation.DismissJobLead(childComplexity, args["id"].(int)), true
case "Mutation.promoteJobLead":
if e.ComplexityRoot.Mutation.PromoteJobLead == nil {
break
}
args, err := ec.field_Mutation_promoteJobLead_args(ctx, rawArgs)
if err != nil {
return 0, false
}
return e.ComplexityRoot.Mutation.PromoteJobLead(childComplexity, args["id"].(int)), true
case "Mutation.rescoreJobLeads":
if e.ComplexityRoot.Mutation.RescoreJobLeads == nil {
break
}
return e.ComplexityRoot.Mutation.RescoreJobLeads(childComplexity), true
case "Mutation.restoreJobLead":
if e.ComplexityRoot.Mutation.RestoreJobLead == nil {
break
}
args, err := ec.field_Mutation_restoreJobLead_args(ctx, rawArgs)
if err != nil {
return 0, false
}
return e.ComplexityRoot.Mutation.RestoreJobLead(childComplexity, args["id"].(int)), true
case "Mutation.runJobLeadSync":
if e.ComplexityRoot.Mutation.RunJobLeadSync == nil {
break
}
return e.ComplexityRoot.Mutation.RunJobLeadSync(childComplexity), true
case "Mutation.scoreJobLeads":
if e.ComplexityRoot.Mutation.ScoreJobLeads == nil {
break
}
return e.ComplexityRoot.Mutation.ScoreJobLeads(childComplexity), true
case "Mutation.updateJobAppReference":
if e.ComplexityRoot.Mutation.UpdateJobAppReference == nil {
break
}
args, err := ec.field_Mutation_updateJobAppReference_args(ctx, rawArgs)
if err != nil {
return 0, false
}
return e.ComplexityRoot.Mutation.UpdateJobAppReference(childComplexity, args["id"].(int), args["input"].(model.UpdateJobAppReferenceInput)), true
case "Mutation.updateJobApplication":
if e.ComplexityRoot.Mutation.UpdateJobApplication == nil {
break
}
args, err := ec.field_Mutation_updateJobApplication_args(ctx, rawArgs)
if err != nil {
return 0, false
}
return e.ComplexityRoot.Mutation.UpdateJobApplication(childComplexity, args["id"].(int), args["input"].(model.UpdateJobApplicationInput)), true
case "Mutation.updateJobSearchProfile":
if e.ComplexityRoot.Mutation.UpdateJobSearchProfile == nil {
break
}
args, err := ec.field_Mutation_updateJobSearchProfile_args(ctx, rawArgs)
if err != nil {
return 0, false
}
return e.ComplexityRoot.Mutation.UpdateJobSearchProfile(childComplexity, args["input"].(model.UpdateJobSearchProfileInput)), true
case "Mutation.updateJobSource":
if e.ComplexityRoot.Mutation.UpdateJobSource == nil {
break
}
args, err := ec.field_Mutation_updateJobSource_args(ctx, rawArgs)
if err != nil {
return 0, false
}
return e.ComplexityRoot.Mutation.UpdateJobSource(childComplexity, args["id"].(int), args["input"].(model.UpdateJobSourceInput)), true
case "Query.analytics":
if e.ComplexityRoot.Query.Analytics == nil {
break
}
return e.ComplexityRoot.Query.Analytics(childComplexity), true
case "Query.jobAppReferences":
if e.ComplexityRoot.Query.JobAppReferences == nil {
break
}
return e.ComplexityRoot.Query.JobAppReferences(childComplexity), true
case "Query.jobApplication":
if e.ComplexityRoot.Query.JobApplication == nil {
break
}
args, err := ec.field_Query_jobApplication_args(ctx, rawArgs)
if err != nil {
return 0, false
}
return e.ComplexityRoot.Query.JobApplication(childComplexity, args["id"].(int)), true
case "Query.jobApplicationEvents":
if e.ComplexityRoot.Query.JobApplicationEvents == nil {
break
}
args, err := ec.field_Query_jobApplicationEvents_args(ctx, rawArgs)
if err != nil {
return 0, false
}
return e.ComplexityRoot.Query.JobApplicationEvents(childComplexity, args["applicationId"].(int)), true
case "Query.jobApplications":
if e.ComplexityRoot.Query.JobApplications == nil {
break
}
return e.ComplexityRoot.Query.JobApplications(childComplexity), true
case "Query.jobLead":
if e.ComplexityRoot.Query.JobLead == nil {
break
}
args, err := ec.field_Query_jobLead_args(ctx, rawArgs)
if err != nil {
return 0, false
}
return e.ComplexityRoot.Query.JobLead(childComplexity, args["id"].(int)), true
case "Query.jobLeadSyncStatus":
if e.ComplexityRoot.Query.JobLeadSyncStatus == nil {
break
}
return e.ComplexityRoot.Query.JobLeadSyncStatus(childComplexity), true
case "Query.jobLeads":
if e.ComplexityRoot.Query.JobLeads == nil {
break
}
args, err := ec.field_Query_jobLeads_args(ctx, rawArgs)
if err != nil {
return 0, false
}
return e.ComplexityRoot.Query.JobLeads(childComplexity, args["state"].(*string), args["includeUnmatched"].(*bool), args["filters"].(*model.JobLeadFilters)), true
case "Query.jobSearchProfile":
if e.ComplexityRoot.Query.JobSearchProfile == nil {
break
}
return e.ComplexityRoot.Query.JobSearchProfile(childComplexity), true
case "Query.jobSources":
if e.ComplexityRoot.Query.JobSources == nil {
break
}
return e.ComplexityRoot.Query.JobSources(childComplexity), true
}
return 0, false
}
func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler {
opCtx := graphql.GetOperationContext(ctx)
ec := newExecutionContext(opCtx, e, make(chan graphql.DeferredResult))
inputUnmarshalMap := graphql.BuildUnmarshalerMap(
ec.unmarshalInputAddJobApplicationEventInput,
ec.unmarshalInputCreateJobAppReferenceInput,
ec.unmarshalInputCreateJobApplicationInput,
ec.unmarshalInputCreateJobSourceInput,
ec.unmarshalInputJobLeadFilters,
ec.unmarshalInputUpdateJobAppReferenceInput,
ec.unmarshalInputUpdateJobApplicationInput,
ec.unmarshalInputUpdateJobSearchProfileInput,
ec.unmarshalInputUpdateJobSourceInput,
)
first := true
switch opCtx.Operation.Operation {
case ast.Query:
return func(ctx context.Context) *graphql.Response {
var response graphql.Response
var data graphql.Marshaler
if first {
first = false
ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
data = ec._Query(ctx, opCtx.Operation.SelectionSet)
} else {
if atomic.LoadInt32(&ec.PendingDeferred) > 0 {
result := <-ec.DeferredResults
atomic.AddInt32(&ec.PendingDeferred, -1)
data = result.Result
response.Path = result.Path
response.Label = result.Label
response.Errors = result.Errors
} else {
return nil
}
}
var buf bytes.Buffer
data.MarshalGQL(&buf)
response.Data = buf.Bytes()
if atomic.LoadInt32(&ec.Deferred) > 0 {
hasNext := atomic.LoadInt32(&ec.PendingDeferred) > 0
response.HasNext = &hasNext
}
return &response
}
case ast.Mutation:
return func(ctx context.Context) *graphql.Response {
if !first {
return nil
}
first = false
ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
data := ec._Mutation(ctx, opCtx.Operation.SelectionSet)
var buf bytes.Buffer
data.MarshalGQL(&buf)
return &graphql.Response{
Data: buf.Bytes(),
}
}
default:
return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation"))
}
}
type executionContext struct {
*graphql.ExecutionContextState[ResolverRoot, DirectiveRoot, ComplexityRoot]
}
func newExecutionContext(
opCtx *graphql.OperationContext,
execSchema *executableSchema,
deferredResults chan graphql.DeferredResult,
) *executionContext {
return &executionContext{
ExecutionContextState: graphql.NewExecutionContextState[ResolverRoot, DirectiveRoot, ComplexityRoot](
opCtx,
(*graphql.ExecutableSchemaState[ResolverRoot, DirectiveRoot, ComplexityRoot])(execSchema),
parsedSchema,
deferredResults,
),
}
}
//go:embed "schema/job_app_reference.graphql" "schema/job_application.graphql" "schema/job_lead.graphql" "schema/schema.graphql"
var sourcesFS embed.FS
func sourceData(filename string) string {
data, err := sourcesFS.ReadFile(filename)
if err != nil {
panic(fmt.Sprintf("codegen problem: %s not available", filename))
}
return string(data)
}
var sources = []*ast.Source{
{Name: "schema/job_app_reference.graphql", Input: sourceData("schema/job_app_reference.graphql"), BuiltIn: false},
{Name: "schema/job_application.graphql", Input: sourceData("schema/job_application.graphql"), BuiltIn: false},
{Name: "schema/job_lead.graphql", Input: sourceData("schema/job_lead.graphql"), BuiltIn: false},
{Name: "schema/schema.graphql", Input: sourceData("schema/schema.graphql"), BuiltIn: false},
}
var parsedSchema = gqlparser.MustLoadSchema(sources...)
// childFields_* functions provide shared child field context lookups.
// Each function is generated once per unique object type, deduplicating the
// switch statements that were previously inlined in every fieldContext_* function.
func (ec *executionContext) childFields_Analytics(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "totalApplications":
return ec.fieldContext_Analytics_totalApplications(ctx, field)
case "statusCounts":
return ec.fieldContext_Analytics_statusCounts(ctx, field)
case "transitions":
return ec.fieldContext_Analytics_transitions(ctx, field)
case "responseCount":
return ec.fieldContext_Analytics_responseCount(ctx, field)
case "interviewCount":
return ec.fieldContext_Analytics_interviewCount(ctx, field)
case "offerCount":
return ec.fieldContext_Analytics_offerCount(ctx, field)
case "responseRate":
return ec.fieldContext_Analytics_responseRate(ctx, field)
case "interviewRate":
return ec.fieldContext_Analytics_interviewRate(ctx, field)
case "offerRate":
return ec.fieldContext_Analytics_offerRate(ctx, field)
case "averageDaysToResponse":
return ec.fieldContext_Analytics_averageDaysToResponse(ctx, field)
case "averageDaysToInterview":
return ec.fieldContext_Analytics_averageDaysToInterview(ctx, field)
case "averageDaysToOffer":
return ec.fieldContext_Analytics_averageDaysToOffer(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type Analytics", field.Name)
}
func (ec *executionContext) childFields_AnalyticsStatusCount(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "status":
return ec.fieldContext_AnalyticsStatusCount_status(ctx, field)
case "count":
return ec.fieldContext_AnalyticsStatusCount_count(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type AnalyticsStatusCount", field.Name)
}
func (ec *executionContext) childFields_AnalyticsTransition(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "from":
return ec.fieldContext_AnalyticsTransition_from(ctx, field)
case "to":
return ec.fieldContext_AnalyticsTransition_to(ctx, field)
case "count":
return ec.fieldContext_AnalyticsTransition_count(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type AnalyticsTransition", field.Name)
}
func (ec *executionContext) childFields_JobAppReference(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "id":
return ec.fieldContext_JobAppReference_id(ctx, field)
case "createdAt":
return ec.fieldContext_JobAppReference_createdAt(ctx, field)
case "updatedAt":
return ec.fieldContext_JobAppReference_updatedAt(ctx, field)
case "category":
return ec.fieldContext_JobAppReference_category(ctx, field)
case "label":
return ec.fieldContext_JobAppReference_label(ctx, field)
case "value":
return ec.fieldContext_JobAppReference_value(ctx, field)
case "sortOrder":
return ec.fieldContext_JobAppReference_sortOrder(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type JobAppReference", field.Name)
}
func (ec *executionContext) childFields_JobApplication(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "id":
return ec.fieldContext_JobApplication_id(ctx, field)
case "createdAt":
return ec.fieldContext_JobApplication_createdAt(ctx, field)
case "updatedAt":
return ec.fieldContext_JobApplication_updatedAt(ctx, field)
case "jobTitle":
return ec.fieldContext_JobApplication_jobTitle(ctx, field)
case "company":
return ec.fieldContext_JobApplication_company(ctx, field)
case "location":
return ec.fieldContext_JobApplication_location(ctx, field)
case "url":
return ec.fieldContext_JobApplication_url(ctx, field)
case "status":
return ec.fieldContext_JobApplication_status(ctx, field)
case "notes":
return ec.fieldContext_JobApplication_notes(ctx, field)
case "appliedAt":
return ec.fieldContext_JobApplication_appliedAt(ctx, field)
case "description":
return ec.fieldContext_JobApplication_description(ctx, field)
case "nextAction":
return ec.fieldContext_JobApplication_nextAction(ctx, field)
case "nextActionAt":
return ec.fieldContext_JobApplication_nextActionAt(ctx, field)
case "contactName":
return ec.fieldContext_JobApplication_contactName(ctx, field)
case "contactEmail":
return ec.fieldContext_JobApplication_contactEmail(ctx, field)
case "contactRole":
return ec.fieldContext_JobApplication_contactRole(ctx, field)
case "salaryRange":
return ec.fieldContext_JobApplication_salaryRange(ctx, field)
case "workArrangement":
return ec.fieldContext_JobApplication_workArrangement(ctx, field)
case "applicationSource":
return ec.fieldContext_JobApplication_applicationSource(ctx, field)
case "resumeVersion":
return ec.fieldContext_JobApplication_resumeVersion(ctx, field)
case "requisitionId":
return ec.fieldContext_JobApplication_requisitionId(ctx, field)
case "lastContactedAt":
return ec.fieldContext_JobApplication_lastContactedAt(ctx, field)
case "events":
return ec.fieldContext_JobApplication_events(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type JobApplication", field.Name)
}
func (ec *executionContext) childFields_JobApplicationEvent(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "id":
return ec.fieldContext_JobApplicationEvent_id(ctx, field)
case "createdAt":
return ec.fieldContext_JobApplicationEvent_createdAt(ctx, field)
case "jobApplicationId":
return ec.fieldContext_JobApplicationEvent_jobApplicationId(ctx, field)
case "kind":
return ec.fieldContext_JobApplicationEvent_kind(ctx, field)
case "occurredAt":
return ec.fieldContext_JobApplicationEvent_occurredAt(ctx, field)
case "note":
return ec.fieldContext_JobApplicationEvent_note(ctx, field)
case "source":
return ec.fieldContext_JobApplicationEvent_source(ctx, field)
case "contactName":
return ec.fieldContext_JobApplicationEvent_contactName(ctx, field)
case "contactEmail":
return ec.fieldContext_JobApplicationEvent_contactEmail(ctx, field)
case "contactRole":
return ec.fieldContext_JobApplicationEvent_contactRole(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type JobApplicationEvent", field.Name)
}
func (ec *executionContext) childFields_JobLead(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "id":
return ec.fieldContext_JobLead_id(ctx, field)
case "createdAt":
return ec.fieldContext_JobLead_createdAt(ctx, field)
case "sourceKind":
return ec.fieldContext_JobLead_sourceKind(ctx, field)
case "jobTitle":
return ec.fieldContext_JobLead_jobTitle(ctx, field)
case "company":
return ec.fieldContext_JobLead_company(ctx, field)
case "location":
return ec.fieldContext_JobLead_location(ctx, field)
case "url":
return ec.fieldContext_JobLead_url(ctx, field)
case "description":
return ec.fieldContext_JobLead_description(ctx, field)
case "postedAt":
return ec.fieldContext_JobLead_postedAt(ctx, field)
case "lastSeenAt":
return ec.fieldContext_JobLead_lastSeenAt(ctx, field)
case "matched":
return ec.fieldContext_JobLead_matched(ctx, field)
case "state":
return ec.fieldContext_JobLead_state(ctx, field)
case "score":
return ec.fieldContext_JobLead_score(ctx, field)
case "scoreReasons":
return ec.fieldContext_JobLead_scoreReasons(ctx, field)
case "scoredAt":
return ec.fieldContext_JobLead_scoredAt(ctx, field)
case "jobAppId":
return ec.fieldContext_JobLead_jobAppId(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type JobLead", field.Name)
}
func (ec *executionContext) childFields_JobLeadSyncStatus(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "running":
return ec.fieldContext_JobLeadSyncStatus_running(ctx, field)
case "lastRunAt":
return ec.fieldContext_JobLeadSyncStatus_lastRunAt(ctx, field)
case "lastError":
return ec.fieldContext_JobLeadSyncStatus_lastError(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type JobLeadSyncStatus", field.Name)
}
func (ec *executionContext) childFields_JobSearchProfile(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "updatedAt":
return ec.fieldContext_JobSearchProfile_updatedAt(ctx, field)
case "profile":
return ec.fieldContext_JobSearchProfile_profile(ctx, field)
case "includeKeywords":
return ec.fieldContext_JobSearchProfile_includeKeywords(ctx, field)
case "excludeKeywords":
return ec.fieldContext_JobSearchProfile_excludeKeywords(ctx, field)
case "locations":
return ec.fieldContext_JobSearchProfile_locations(ctx, field)
case "minScore":
return ec.fieldContext_JobSearchProfile_minScore(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type JobSearchProfile", field.Name)
}
func (ec *executionContext) childFields_JobSource(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "id":
return ec.fieldContext_JobSource_id(ctx, field)
case "createdAt":
return ec.fieldContext_JobSource_createdAt(ctx, field)
case "updatedAt":
return ec.fieldContext_JobSource_updatedAt(ctx, field)
case "kind":
return ec.fieldContext_JobSource_kind(ctx, field)
case "label":
return ec.fieldContext_JobSource_label(ctx, field)
case "token":
return ec.fieldContext_JobSource_token(ctx, field)
case "query":
return ec.fieldContext_JobSource_query(ctx, field)
case "location":
return ec.fieldContext_JobSource_location(ctx, field)
case "enabled":
return ec.fieldContext_JobSource_enabled(ctx, field)
case "lastFetchedAt":
return ec.fieldContext_JobSource_lastFetchedAt(ctx, field)
case "lastCount":
return ec.fieldContext_JobSource_lastCount(ctx, field)
case "lastError":
return ec.fieldContext_JobSource_lastError(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type JobSource", field.Name)
}
func (ec *executionContext) childFields___Directive(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "name":
return ec.fieldContext___Directive_name(ctx, field)
case "description":
return ec.fieldContext___Directive_description(ctx, field)
case "isRepeatable":
return ec.fieldContext___Directive_isRepeatable(ctx, field)
case "locations":
return ec.fieldContext___Directive_locations(ctx, field)
case "args":
return ec.fieldContext___Directive_args(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name)
}
func (ec *executionContext) childFields___EnumValue(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "name":
return ec.fieldContext___EnumValue_name(ctx, field)
case "description":
return ec.fieldContext___EnumValue_description(ctx, field)
case "isDeprecated":
return ec.fieldContext___EnumValue_isDeprecated(ctx, field)
case "deprecationReason":
return ec.fieldContext___EnumValue_deprecationReason(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type __EnumValue", field.Name)
}
func (ec *executionContext) childFields___Field(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "name":
return ec.fieldContext___Field_name(ctx, field)
case "description":
return ec.fieldContext___Field_description(ctx, field)
case "args":
return ec.fieldContext___Field_args(ctx, field)
case "type":
return ec.fieldContext___Field_type(ctx, field)
case "isDeprecated":
return ec.fieldContext___Field_isDeprecated(ctx, field)
case "deprecationReason":
return ec.fieldContext___Field_deprecationReason(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type __Field", field.Name)
}
func (ec *executionContext) childFields___InputValue(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "name":
return ec.fieldContext___InputValue_name(ctx, field)
case "description":
return ec.fieldContext___InputValue_description(ctx, field)
case "type":
return ec.fieldContext___InputValue_type(ctx, field)
case "defaultValue":
return ec.fieldContext___InputValue_defaultValue(ctx, field)
case "isDeprecated":
return ec.fieldContext___InputValue_isDeprecated(ctx, field)
case "deprecationReason":
return ec.fieldContext___InputValue_deprecationReason(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name)
}
func (ec *executionContext) childFields___Schema(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "description":
return ec.fieldContext___Schema_description(ctx, field)
case "types":
return ec.fieldContext___Schema_types(ctx, field)
case "queryType":
return ec.fieldContext___Schema_queryType(ctx, field)
case "mutationType":
return ec.fieldContext___Schema_mutationType(ctx, field)
case "subscriptionType":
return ec.fieldContext___Schema_subscriptionType(ctx, field)
case "directives":
return ec.fieldContext___Schema_directives(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name)
}
func (ec *executionContext) childFields___Type(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
switch field.Name {
case "kind":
return ec.fieldContext___Type_kind(ctx, field)
case "name":
return ec.fieldContext___Type_name(ctx, field)
case "description":
return ec.fieldContext___Type_description(ctx, field)
case "specifiedByURL":
return ec.fieldContext___Type_specifiedByURL(ctx, field)
case "fields":
return ec.fieldContext___Type_fields(ctx, field)
case "interfaces":
return ec.fieldContext___Type_interfaces(ctx, field)
case "possibleTypes":
return ec.fieldContext___Type_possibleTypes(ctx, field)
case "enumValues":
return ec.fieldContext___Type_enumValues(ctx, field)
case "inputFields":
return ec.fieldContext___Type_inputFields(ctx, field)
case "ofType":
return ec.fieldContext___Type_ofType(ctx, field)
case "isOneOf":
return ec.fieldContext___Type_isOneOf(ctx, field)
}
return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name)
}
// endregion ************************** internal!.gotpl ***************************
// region ***************************** args.gotpl *****************************
func (ec *executionContext) field_Mutation_addJobApplicationEvent_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "applicationId",
func(ctx context.Context, v any) (int, error) {
return ec.unmarshalNID2int(ctx, v)
})
if err != nil {
return nil, err
}
args["applicationId"] = arg0
arg1, err := graphql.ProcessArgField(ctx, rawArgs, "input",
func(ctx context.Context, v any) (model.AddJobApplicationEventInput, error) {
return ec.unmarshalNAddJobApplicationEventInput2adamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐAddJobApplicationEventInput(ctx, v)
})
if err != nil {
return nil, err
}
args["input"] = arg1
return args, nil
}
func (ec *executionContext) field_Mutation_bulkDismissJobLeads_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "ids",
func(ctx context.Context, v any) ([]int, error) {
return ec.unmarshalNID2ᚕintᚄ(ctx, v)
})
if err != nil {
return nil, err
}
args["ids"] = arg0
return args, nil
}
func (ec *executionContext) field_Mutation_bulkPromoteJobLeads_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "ids",
func(ctx context.Context, v any) ([]int, error) {
return ec.unmarshalNID2ᚕintᚄ(ctx, v)
})
if err != nil {
return nil, err
}
args["ids"] = arg0
return args, nil
}
func (ec *executionContext) field_Mutation_bulkRestoreJobLeads_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "ids",
func(ctx context.Context, v any) ([]int, error) {
return ec.unmarshalNID2ᚕintᚄ(ctx, v)
})
if err != nil {
return nil, err
}
args["ids"] = arg0
return args, nil
}
func (ec *executionContext) field_Mutation_createJobAppReference_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input",
func(ctx context.Context, v any) (model.CreateJobAppReferenceInput, error) {
return ec.unmarshalNCreateJobAppReferenceInput2adamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐCreateJobAppReferenceInput(ctx, v)
})
if err != nil {
return nil, err
}
args["input"] = arg0
return args, nil
}
func (ec *executionContext) field_Mutation_createJobApplication_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input",
func(ctx context.Context, v any) (model.CreateJobApplicationInput, error) {
return ec.unmarshalNCreateJobApplicationInput2adamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐCreateJobApplicationInput(ctx, v)
})
if err != nil {
return nil, err
}
args["input"] = arg0
return args, nil
}
func (ec *executionContext) field_Mutation_createJobSource_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input",
func(ctx context.Context, v any) (model.CreateJobSourceInput, error) {
return ec.unmarshalNCreateJobSourceInput2adamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐCreateJobSourceInput(ctx, v)
})
if err != nil {
return nil, err
}
args["input"] = arg0
return args, nil
}
func (ec *executionContext) field_Mutation_deleteJobAppReference_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id",
func(ctx context.Context, v any) (int, error) {
return ec.unmarshalNID2int(ctx, v)
})
if err != nil {
return nil, err
}
args["id"] = arg0
return args, nil
}
func (ec *executionContext) field_Mutation_deleteJobApplication_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id",
func(ctx context.Context, v any) (int, error) {
return ec.unmarshalNID2int(ctx, v)
})
if err != nil {
return nil, err
}
args["id"] = arg0
return args, nil
}
func (ec *executionContext) field_Mutation_deleteJobSource_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id",
func(ctx context.Context, v any) (int, error) {
return ec.unmarshalNID2int(ctx, v)
})
if err != nil {
return nil, err
}
args["id"] = arg0
return args, nil
}
func (ec *executionContext) field_Mutation_dismissJobLead_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id",
func(ctx context.Context, v any) (int, error) {
return ec.unmarshalNID2int(ctx, v)
})
if err != nil {
return nil, err
}
args["id"] = arg0
return args, nil
}
func (ec *executionContext) field_Mutation_promoteJobLead_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id",
func(ctx context.Context, v any) (int, error) {
return ec.unmarshalNID2int(ctx, v)
})
if err != nil {
return nil, err
}
args["id"] = arg0
return args, nil
}
func (ec *executionContext) field_Mutation_restoreJobLead_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id",
func(ctx context.Context, v any) (int, error) {
return ec.unmarshalNID2int(ctx, v)
})
if err != nil {
return nil, err
}
args["id"] = arg0
return args, nil
}
func (ec *executionContext) field_Mutation_updateJobAppReference_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id",
func(ctx context.Context, v any) (int, error) {
return ec.unmarshalNID2int(ctx, v)
})
if err != nil {
return nil, err
}
args["id"] = arg0
arg1, err := graphql.ProcessArgField(ctx, rawArgs, "input",
func(ctx context.Context, v any) (model.UpdateJobAppReferenceInput, error) {
return ec.unmarshalNUpdateJobAppReferenceInput2adamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐUpdateJobAppReferenceInput(ctx, v)
})
if err != nil {
return nil, err
}
args["input"] = arg1
return args, nil
}
func (ec *executionContext) field_Mutation_updateJobApplication_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id",
func(ctx context.Context, v any) (int, error) {
return ec.unmarshalNID2int(ctx, v)
})
if err != nil {
return nil, err
}
args["id"] = arg0
arg1, err := graphql.ProcessArgField(ctx, rawArgs, "input",
func(ctx context.Context, v any) (model.UpdateJobApplicationInput, error) {
return ec.unmarshalNUpdateJobApplicationInput2adamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐUpdateJobApplicationInput(ctx, v)
})
if err != nil {
return nil, err
}
args["input"] = arg1
return args, nil
}
func (ec *executionContext) field_Mutation_updateJobSearchProfile_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "input",
func(ctx context.Context, v any) (model.UpdateJobSearchProfileInput, error) {
return ec.unmarshalNUpdateJobSearchProfileInput2adamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐUpdateJobSearchProfileInput(ctx, v)
})
if err != nil {
return nil, err
}
args["input"] = arg0
return args, nil
}
func (ec *executionContext) field_Mutation_updateJobSource_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id",
func(ctx context.Context, v any) (int, error) {
return ec.unmarshalNID2int(ctx, v)
})
if err != nil {
return nil, err
}
args["id"] = arg0
arg1, err := graphql.ProcessArgField(ctx, rawArgs, "input",
func(ctx context.Context, v any) (model.UpdateJobSourceInput, error) {
return ec.unmarshalNUpdateJobSourceInput2adamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐUpdateJobSourceInput(ctx, v)
})
if err != nil {
return nil, err
}
args["input"] = arg1
return args, nil
}
func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "name",
func(ctx context.Context, v any) (string, error) {
return ec.unmarshalNString2string(ctx, v)
})
if err != nil {
return nil, err
}
args["name"] = arg0
return args, nil
}
func (ec *executionContext) field_Query_jobApplicationEvents_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "applicationId",
func(ctx context.Context, v any) (int, error) {
return ec.unmarshalNID2int(ctx, v)
})
if err != nil {
return nil, err
}
args["applicationId"] = arg0
return args, nil
}
func (ec *executionContext) field_Query_jobApplication_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id",
func(ctx context.Context, v any) (int, error) {
return ec.unmarshalNID2int(ctx, v)
})
if err != nil {
return nil, err
}
args["id"] = arg0
return args, nil
}
func (ec *executionContext) field_Query_jobLead_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "id",
func(ctx context.Context, v any) (int, error) {
return ec.unmarshalNID2int(ctx, v)
})
if err != nil {
return nil, err
}
args["id"] = arg0
return args, nil
}
func (ec *executionContext) field_Query_jobLeads_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "state",
func(ctx context.Context, v any) (*string, error) {
return ec.unmarshalOString2ᚖstring(ctx, v)
})
if err != nil {
return nil, err
}
args["state"] = arg0
arg1, err := graphql.ProcessArgField(ctx, rawArgs, "includeUnmatched",
func(ctx context.Context, v any) (*bool, error) {
return ec.unmarshalOBoolean2ᚖbool(ctx, v)
})
if err != nil {
return nil, err
}
args["includeUnmatched"] = arg1
arg2, err := graphql.ProcessArgField(ctx, rawArgs, "filters",
func(ctx context.Context, v any) (*model.JobLeadFilters, error) {
return ec.unmarshalOJobLeadFilters2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐJobLeadFilters(ctx, v)
})
if err != nil {
return nil, err
}
args["filters"] = arg2
return args, nil
}
func (ec *executionContext) field___Directive_args_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated",
func(ctx context.Context, v any) (*bool, error) {
return ec.unmarshalOBoolean2ᚖbool(ctx, v)
})
if err != nil {
return nil, err
}
args["includeDeprecated"] = arg0
return args, nil
}
func (ec *executionContext) field___Field_args_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated",
func(ctx context.Context, v any) (*bool, error) {
return ec.unmarshalOBoolean2ᚖbool(ctx, v)
})
if err != nil {
return nil, err
}
args["includeDeprecated"] = arg0
return args, nil
}
func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated",
func(ctx context.Context, v any) (bool, error) {
return ec.unmarshalOBoolean2bool(ctx, v)
})
if err != nil {
return nil, err
}
args["includeDeprecated"] = arg0
return args, nil
}
func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) {
var err error
args := map[string]any{}
arg0, err := graphql.ProcessArgField(ctx, rawArgs, "includeDeprecated",
func(ctx context.Context, v any) (bool, error) {
return ec.unmarshalOBoolean2bool(ctx, v)
})
if err != nil {
return nil, err
}
args["includeDeprecated"] = arg0
return args, nil
}
// endregion ***************************** args.gotpl *****************************
// region **************************** field.gotpl *****************************
func (ec *executionContext) _Analytics_totalApplications(ctx context.Context, field graphql.CollectedField, obj *model.Analytics) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Analytics_totalApplications(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.TotalApplications, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler {
return ec.marshalNInt2int(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Analytics_totalApplications(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("Analytics", field, false, false, errors.New("field of type Int does not have child fields"))
}
func (ec *executionContext) _Analytics_statusCounts(ctx context.Context, field graphql.CollectedField, obj *model.Analytics) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Analytics_statusCounts(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.StatusCounts, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v []*model.AnalyticsStatusCount) graphql.Marshaler {
return ec.marshalNAnalyticsStatusCount2ᚕᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐAnalyticsStatusCountᚄ(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Analytics_statusCounts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Analytics",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_AnalyticsStatusCount(ctx, field)
},
}
return fc, nil
}
func (ec *executionContext) _Analytics_transitions(ctx context.Context, field graphql.CollectedField, obj *model.Analytics) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Analytics_transitions(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Transitions, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v []*model.AnalyticsTransition) graphql.Marshaler {
return ec.marshalNAnalyticsTransition2ᚕᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐAnalyticsTransitionᚄ(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Analytics_transitions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Analytics",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_AnalyticsTransition(ctx, field)
},
}
return fc, nil
}
func (ec *executionContext) _Analytics_responseCount(ctx context.Context, field graphql.CollectedField, obj *model.Analytics) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Analytics_responseCount(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.ResponseCount, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler {
return ec.marshalNInt2int(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Analytics_responseCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("Analytics", field, false, false, errors.New("field of type Int does not have child fields"))
}
func (ec *executionContext) _Analytics_interviewCount(ctx context.Context, field graphql.CollectedField, obj *model.Analytics) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Analytics_interviewCount(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.InterviewCount, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler {
return ec.marshalNInt2int(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Analytics_interviewCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("Analytics", field, false, false, errors.New("field of type Int does not have child fields"))
}
func (ec *executionContext) _Analytics_offerCount(ctx context.Context, field graphql.CollectedField, obj *model.Analytics) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Analytics_offerCount(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.OfferCount, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler {
return ec.marshalNInt2int(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Analytics_offerCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("Analytics", field, false, false, errors.New("field of type Int does not have child fields"))
}
func (ec *executionContext) _Analytics_responseRate(ctx context.Context, field graphql.CollectedField, obj *model.Analytics) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Analytics_responseRate(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.ResponseRate, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v float64) graphql.Marshaler {
return ec.marshalNFloat2float64(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Analytics_responseRate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("Analytics", field, false, false, errors.New("field of type Float does not have child fields"))
}
func (ec *executionContext) _Analytics_interviewRate(ctx context.Context, field graphql.CollectedField, obj *model.Analytics) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Analytics_interviewRate(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.InterviewRate, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v float64) graphql.Marshaler {
return ec.marshalNFloat2float64(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Analytics_interviewRate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("Analytics", field, false, false, errors.New("field of type Float does not have child fields"))
}
func (ec *executionContext) _Analytics_offerRate(ctx context.Context, field graphql.CollectedField, obj *model.Analytics) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Analytics_offerRate(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.OfferRate, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v float64) graphql.Marshaler {
return ec.marshalNFloat2float64(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Analytics_offerRate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("Analytics", field, false, false, errors.New("field of type Float does not have child fields"))
}
func (ec *executionContext) _Analytics_averageDaysToResponse(ctx context.Context, field graphql.CollectedField, obj *model.Analytics) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Analytics_averageDaysToResponse(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.AverageDaysToResponse, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *float64) graphql.Marshaler {
return ec.marshalOFloat2ᚖfloat64(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_Analytics_averageDaysToResponse(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("Analytics", field, false, false, errors.New("field of type Float does not have child fields"))
}
func (ec *executionContext) _Analytics_averageDaysToInterview(ctx context.Context, field graphql.CollectedField, obj *model.Analytics) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Analytics_averageDaysToInterview(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.AverageDaysToInterview, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *float64) graphql.Marshaler {
return ec.marshalOFloat2ᚖfloat64(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_Analytics_averageDaysToInterview(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("Analytics", field, false, false, errors.New("field of type Float does not have child fields"))
}
func (ec *executionContext) _Analytics_averageDaysToOffer(ctx context.Context, field graphql.CollectedField, obj *model.Analytics) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Analytics_averageDaysToOffer(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.AverageDaysToOffer, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *float64) graphql.Marshaler {
return ec.marshalOFloat2ᚖfloat64(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_Analytics_averageDaysToOffer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("Analytics", field, false, false, errors.New("field of type Float does not have child fields"))
}
func (ec *executionContext) _AnalyticsStatusCount_status(ctx context.Context, field graphql.CollectedField, obj *model.AnalyticsStatusCount) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_AnalyticsStatusCount_status(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Status, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_AnalyticsStatusCount_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("AnalyticsStatusCount", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _AnalyticsStatusCount_count(ctx context.Context, field graphql.CollectedField, obj *model.AnalyticsStatusCount) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_AnalyticsStatusCount_count(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Count, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler {
return ec.marshalNInt2int(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_AnalyticsStatusCount_count(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("AnalyticsStatusCount", field, false, false, errors.New("field of type Int does not have child fields"))
}
func (ec *executionContext) _AnalyticsTransition_from(ctx context.Context, field graphql.CollectedField, obj *model.AnalyticsTransition) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_AnalyticsTransition_from(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.From, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_AnalyticsTransition_from(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("AnalyticsTransition", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _AnalyticsTransition_to(ctx context.Context, field graphql.CollectedField, obj *model.AnalyticsTransition) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_AnalyticsTransition_to(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.To, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_AnalyticsTransition_to(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("AnalyticsTransition", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _AnalyticsTransition_count(ctx context.Context, field graphql.CollectedField, obj *model.AnalyticsTransition) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_AnalyticsTransition_count(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Count, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler {
return ec.marshalNInt2int(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_AnalyticsTransition_count(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("AnalyticsTransition", field, false, false, errors.New("field of type Int does not have child fields"))
}
func (ec *executionContext) _JobAppReference_id(ctx context.Context, field graphql.CollectedField, obj *models.JobAppReference) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobAppReference_id(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.ID, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v uint) graphql.Marshaler {
return ec.marshalNID2uint(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobAppReference_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobAppReference", field, false, false, errors.New("field of type ID does not have child fields"))
}
func (ec *executionContext) _JobAppReference_createdAt(ctx context.Context, field graphql.CollectedField, obj *models.JobAppReference) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobAppReference_createdAt(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.CreatedAt, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler {
return ec.marshalNTime2timeᚐTime(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobAppReference_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobAppReference", field, false, false, errors.New("field of type Time does not have child fields"))
}
func (ec *executionContext) _JobAppReference_updatedAt(ctx context.Context, field graphql.CollectedField, obj *models.JobAppReference) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobAppReference_updatedAt(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.UpdatedAt, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler {
return ec.marshalNTime2timeᚐTime(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobAppReference_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobAppReference", field, false, false, errors.New("field of type Time does not have child fields"))
}
func (ec *executionContext) _JobAppReference_category(ctx context.Context, field graphql.CollectedField, obj *models.JobAppReference) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobAppReference_category(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Category, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobAppReference_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobAppReference", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobAppReference_label(ctx context.Context, field graphql.CollectedField, obj *models.JobAppReference) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobAppReference_label(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Label, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobAppReference_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobAppReference", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobAppReference_value(ctx context.Context, field graphql.CollectedField, obj *models.JobAppReference) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobAppReference_value(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Value, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobAppReference_value(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobAppReference", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobAppReference_sortOrder(ctx context.Context, field graphql.CollectedField, obj *models.JobAppReference) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobAppReference_sortOrder(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.SortOrder, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler {
return ec.marshalNInt2int(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobAppReference_sortOrder(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobAppReference", field, false, false, errors.New("field of type Int does not have child fields"))
}
func (ec *executionContext) _JobApplication_id(ctx context.Context, field graphql.CollectedField, obj *models.JobApplication) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplication_id(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.ID, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v uint) graphql.Marshaler {
return ec.marshalNID2uint(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobApplication_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplication", field, false, false, errors.New("field of type ID does not have child fields"))
}
func (ec *executionContext) _JobApplication_createdAt(ctx context.Context, field graphql.CollectedField, obj *models.JobApplication) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplication_createdAt(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.CreatedAt, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler {
return ec.marshalNTime2timeᚐTime(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobApplication_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplication", field, false, false, errors.New("field of type Time does not have child fields"))
}
func (ec *executionContext) _JobApplication_updatedAt(ctx context.Context, field graphql.CollectedField, obj *models.JobApplication) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplication_updatedAt(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.UpdatedAt, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler {
return ec.marshalNTime2timeᚐTime(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobApplication_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplication", field, false, false, errors.New("field of type Time does not have child fields"))
}
func (ec *executionContext) _JobApplication_jobTitle(ctx context.Context, field graphql.CollectedField, obj *models.JobApplication) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplication_jobTitle(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.JobTitle, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobApplication_jobTitle(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplication", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobApplication_company(ctx context.Context, field graphql.CollectedField, obj *models.JobApplication) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplication_company(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Company, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobApplication_company(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplication", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobApplication_location(ctx context.Context, field graphql.CollectedField, obj *models.JobApplication) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplication_location(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Location, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobApplication_location(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplication", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobApplication_url(ctx context.Context, field graphql.CollectedField, obj *models.JobApplication) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplication_url(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.URL, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobApplication_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplication", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobApplication_status(ctx context.Context, field graphql.CollectedField, obj *models.JobApplication) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplication_status(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Status, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNJobStatus2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobApplication_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplication", field, false, false, errors.New("field of type JobStatus does not have child fields"))
}
func (ec *executionContext) _JobApplication_notes(ctx context.Context, field graphql.CollectedField, obj *models.JobApplication) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplication_notes(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Notes, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobApplication_notes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplication", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobApplication_appliedAt(ctx context.Context, field graphql.CollectedField, obj *models.JobApplication) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplication_appliedAt(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.AppliedAt, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler {
return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobApplication_appliedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplication", field, false, false, errors.New("field of type Time does not have child fields"))
}
func (ec *executionContext) _JobApplication_description(ctx context.Context, field graphql.CollectedField, obj *models.JobApplication) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplication_description(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Description, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobApplication_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplication", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobApplication_nextAction(ctx context.Context, field graphql.CollectedField, obj *models.JobApplication) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplication_nextAction(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.NextAction, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobApplication_nextAction(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplication", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobApplication_nextActionAt(ctx context.Context, field graphql.CollectedField, obj *models.JobApplication) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplication_nextActionAt(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.NextActionAt, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler {
return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobApplication_nextActionAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplication", field, false, false, errors.New("field of type Time does not have child fields"))
}
func (ec *executionContext) _JobApplication_contactName(ctx context.Context, field graphql.CollectedField, obj *models.JobApplication) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplication_contactName(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.ContactName, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobApplication_contactName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplication", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobApplication_contactEmail(ctx context.Context, field graphql.CollectedField, obj *models.JobApplication) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplication_contactEmail(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.ContactEmail, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobApplication_contactEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplication", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobApplication_contactRole(ctx context.Context, field graphql.CollectedField, obj *models.JobApplication) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplication_contactRole(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.ContactRole, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobApplication_contactRole(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplication", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobApplication_salaryRange(ctx context.Context, field graphql.CollectedField, obj *models.JobApplication) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplication_salaryRange(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.SalaryRange, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobApplication_salaryRange(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplication", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobApplication_workArrangement(ctx context.Context, field graphql.CollectedField, obj *models.JobApplication) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplication_workArrangement(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.WorkArrangement, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobApplication_workArrangement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplication", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobApplication_applicationSource(ctx context.Context, field graphql.CollectedField, obj *models.JobApplication) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplication_applicationSource(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.ApplicationSource, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobApplication_applicationSource(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplication", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobApplication_resumeVersion(ctx context.Context, field graphql.CollectedField, obj *models.JobApplication) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplication_resumeVersion(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.ResumeVersion, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobApplication_resumeVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplication", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobApplication_requisitionId(ctx context.Context, field graphql.CollectedField, obj *models.JobApplication) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplication_requisitionId(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.RequisitionID, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobApplication_requisitionId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplication", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobApplication_lastContactedAt(ctx context.Context, field graphql.CollectedField, obj *models.JobApplication) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplication_lastContactedAt(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.LastContactedAt, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler {
return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobApplication_lastContactedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplication", field, false, false, errors.New("field of type Time does not have child fields"))
}
func (ec *executionContext) _JobApplication_events(ctx context.Context, field graphql.CollectedField, obj *models.JobApplication) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplication_events(ctx, field)
},
func(ctx context.Context) (any, error) {
return ec.Resolvers.JobApplication().Events(ctx, obj)
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v []*models.JobApplicationEvent) graphql.Marshaler {
return ec.marshalNJobApplicationEvent2ᚕᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobApplicationEventᚄ(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobApplication_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "JobApplication",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_JobApplicationEvent(ctx, field)
},
}
return fc, nil
}
func (ec *executionContext) _JobApplicationEvent_id(ctx context.Context, field graphql.CollectedField, obj *models.JobApplicationEvent) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplicationEvent_id(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.ID, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v uint) graphql.Marshaler {
return ec.marshalNID2uint(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobApplicationEvent_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplicationEvent", field, false, false, errors.New("field of type ID does not have child fields"))
}
func (ec *executionContext) _JobApplicationEvent_createdAt(ctx context.Context, field graphql.CollectedField, obj *models.JobApplicationEvent) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplicationEvent_createdAt(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.CreatedAt, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler {
return ec.marshalNTime2timeᚐTime(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobApplicationEvent_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplicationEvent", field, false, false, errors.New("field of type Time does not have child fields"))
}
func (ec *executionContext) _JobApplicationEvent_jobApplicationId(ctx context.Context, field graphql.CollectedField, obj *models.JobApplicationEvent) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplicationEvent_jobApplicationId(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.JobApplicationID, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v uint) graphql.Marshaler {
return ec.marshalNID2uint(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobApplicationEvent_jobApplicationId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplicationEvent", field, false, false, errors.New("field of type ID does not have child fields"))
}
func (ec *executionContext) _JobApplicationEvent_kind(ctx context.Context, field graphql.CollectedField, obj *models.JobApplicationEvent) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplicationEvent_kind(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Kind, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobApplicationEvent_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplicationEvent", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobApplicationEvent_occurredAt(ctx context.Context, field graphql.CollectedField, obj *models.JobApplicationEvent) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplicationEvent_occurredAt(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.OccurredAt, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler {
return ec.marshalNTime2timeᚐTime(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobApplicationEvent_occurredAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplicationEvent", field, false, false, errors.New("field of type Time does not have child fields"))
}
func (ec *executionContext) _JobApplicationEvent_note(ctx context.Context, field graphql.CollectedField, obj *models.JobApplicationEvent) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplicationEvent_note(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Note, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobApplicationEvent_note(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplicationEvent", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobApplicationEvent_source(ctx context.Context, field graphql.CollectedField, obj *models.JobApplicationEvent) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplicationEvent_source(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Source, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobApplicationEvent_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplicationEvent", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobApplicationEvent_contactName(ctx context.Context, field graphql.CollectedField, obj *models.JobApplicationEvent) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplicationEvent_contactName(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.ContactName, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobApplicationEvent_contactName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplicationEvent", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobApplicationEvent_contactEmail(ctx context.Context, field graphql.CollectedField, obj *models.JobApplicationEvent) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplicationEvent_contactEmail(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.ContactEmail, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobApplicationEvent_contactEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplicationEvent", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobApplicationEvent_contactRole(ctx context.Context, field graphql.CollectedField, obj *models.JobApplicationEvent) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobApplicationEvent_contactRole(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.ContactRole, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobApplicationEvent_contactRole(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobApplicationEvent", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobLead_id(ctx context.Context, field graphql.CollectedField, obj *models.JobLead) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobLead_id(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.ID, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v uint) graphql.Marshaler {
return ec.marshalNID2uint(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobLead_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobLead", field, false, false, errors.New("field of type ID does not have child fields"))
}
func (ec *executionContext) _JobLead_createdAt(ctx context.Context, field graphql.CollectedField, obj *models.JobLead) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobLead_createdAt(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.CreatedAt, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler {
return ec.marshalNTime2timeᚐTime(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobLead_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobLead", field, false, false, errors.New("field of type Time does not have child fields"))
}
func (ec *executionContext) _JobLead_sourceKind(ctx context.Context, field graphql.CollectedField, obj *models.JobLead) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobLead_sourceKind(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.SourceKind, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobLead_sourceKind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobLead", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobLead_jobTitle(ctx context.Context, field graphql.CollectedField, obj *models.JobLead) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobLead_jobTitle(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.JobTitle, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobLead_jobTitle(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobLead", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobLead_company(ctx context.Context, field graphql.CollectedField, obj *models.JobLead) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobLead_company(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Company, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobLead_company(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobLead", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobLead_location(ctx context.Context, field graphql.CollectedField, obj *models.JobLead) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobLead_location(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Location, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobLead_location(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobLead", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobLead_url(ctx context.Context, field graphql.CollectedField, obj *models.JobLead) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobLead_url(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.URL, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobLead_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobLead", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobLead_description(ctx context.Context, field graphql.CollectedField, obj *models.JobLead) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobLead_description(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Description, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobLead_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobLead", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobLead_postedAt(ctx context.Context, field graphql.CollectedField, obj *models.JobLead) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobLead_postedAt(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.PostedAt, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler {
return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobLead_postedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobLead", field, false, false, errors.New("field of type Time does not have child fields"))
}
func (ec *executionContext) _JobLead_lastSeenAt(ctx context.Context, field graphql.CollectedField, obj *models.JobLead) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobLead_lastSeenAt(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.LastSeenAt, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler {
return ec.marshalNTime2timeᚐTime(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobLead_lastSeenAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobLead", field, false, false, errors.New("field of type Time does not have child fields"))
}
func (ec *executionContext) _JobLead_matched(ctx context.Context, field graphql.CollectedField, obj *models.JobLead) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobLead_matched(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Matched, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler {
return ec.marshalNBoolean2bool(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobLead_matched(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobLead", field, false, false, errors.New("field of type Boolean does not have child fields"))
}
func (ec *executionContext) _JobLead_state(ctx context.Context, field graphql.CollectedField, obj *models.JobLead) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobLead_state(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.State, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobLead_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobLead", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobLead_score(ctx context.Context, field graphql.CollectedField, obj *models.JobLead) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobLead_score(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Score, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *int) graphql.Marshaler {
return ec.marshalOInt2ᚖint(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobLead_score(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobLead", field, false, false, errors.New("field of type Int does not have child fields"))
}
func (ec *executionContext) _JobLead_scoreReasons(ctx context.Context, field graphql.CollectedField, obj *models.JobLead) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobLead_scoreReasons(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.ScoreReasons, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobLead_scoreReasons(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobLead", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobLead_scoredAt(ctx context.Context, field graphql.CollectedField, obj *models.JobLead) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobLead_scoredAt(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.ScoredAt, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler {
return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobLead_scoredAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobLead", field, false, false, errors.New("field of type Time does not have child fields"))
}
func (ec *executionContext) _JobLead_jobAppId(ctx context.Context, field graphql.CollectedField, obj *models.JobLead) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobLead_jobAppId(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.JobAppID, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *uint) graphql.Marshaler {
return ec.marshalOID2ᚖuint(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobLead_jobAppId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobLead", field, false, false, errors.New("field of type ID does not have child fields"))
}
func (ec *executionContext) _JobLeadSyncStatus_running(ctx context.Context, field graphql.CollectedField, obj *model.JobLeadSyncStatus) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobLeadSyncStatus_running(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Running, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler {
return ec.marshalNBoolean2bool(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobLeadSyncStatus_running(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobLeadSyncStatus", field, false, false, errors.New("field of type Boolean does not have child fields"))
}
func (ec *executionContext) _JobLeadSyncStatus_lastRunAt(ctx context.Context, field graphql.CollectedField, obj *model.JobLeadSyncStatus) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobLeadSyncStatus_lastRunAt(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.LastRunAt, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler {
return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobLeadSyncStatus_lastRunAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobLeadSyncStatus", field, false, false, errors.New("field of type Time does not have child fields"))
}
func (ec *executionContext) _JobLeadSyncStatus_lastError(ctx context.Context, field graphql.CollectedField, obj *model.JobLeadSyncStatus) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobLeadSyncStatus_lastError(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.LastError, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobLeadSyncStatus_lastError(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobLeadSyncStatus", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobSearchProfile_updatedAt(ctx context.Context, field graphql.CollectedField, obj *models.JobSearchProfile) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobSearchProfile_updatedAt(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.UpdatedAt, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler {
return ec.marshalNTime2timeᚐTime(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobSearchProfile_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobSearchProfile", field, false, false, errors.New("field of type Time does not have child fields"))
}
func (ec *executionContext) _JobSearchProfile_profile(ctx context.Context, field graphql.CollectedField, obj *models.JobSearchProfile) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobSearchProfile_profile(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Profile, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobSearchProfile_profile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobSearchProfile", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobSearchProfile_includeKeywords(ctx context.Context, field graphql.CollectedField, obj *models.JobSearchProfile) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobSearchProfile_includeKeywords(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.IncludeKeywords, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobSearchProfile_includeKeywords(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobSearchProfile", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobSearchProfile_excludeKeywords(ctx context.Context, field graphql.CollectedField, obj *models.JobSearchProfile) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobSearchProfile_excludeKeywords(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.ExcludeKeywords, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobSearchProfile_excludeKeywords(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobSearchProfile", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobSearchProfile_locations(ctx context.Context, field graphql.CollectedField, obj *models.JobSearchProfile) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobSearchProfile_locations(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Locations, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobSearchProfile_locations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobSearchProfile", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobSearchProfile_minScore(ctx context.Context, field graphql.CollectedField, obj *models.JobSearchProfile) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobSearchProfile_minScore(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.MinScore, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler {
return ec.marshalNInt2int(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobSearchProfile_minScore(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobSearchProfile", field, false, false, errors.New("field of type Int does not have child fields"))
}
func (ec *executionContext) _JobSource_id(ctx context.Context, field graphql.CollectedField, obj *models.JobSource) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobSource_id(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.ID, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v uint) graphql.Marshaler {
return ec.marshalNID2uint(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobSource_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobSource", field, false, false, errors.New("field of type ID does not have child fields"))
}
func (ec *executionContext) _JobSource_createdAt(ctx context.Context, field graphql.CollectedField, obj *models.JobSource) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobSource_createdAt(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.CreatedAt, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler {
return ec.marshalNTime2timeᚐTime(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobSource_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobSource", field, false, false, errors.New("field of type Time does not have child fields"))
}
func (ec *executionContext) _JobSource_updatedAt(ctx context.Context, field graphql.CollectedField, obj *models.JobSource) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobSource_updatedAt(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.UpdatedAt, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler {
return ec.marshalNTime2timeᚐTime(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobSource_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobSource", field, false, false, errors.New("field of type Time does not have child fields"))
}
func (ec *executionContext) _JobSource_kind(ctx context.Context, field graphql.CollectedField, obj *models.JobSource) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobSource_kind(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Kind, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobSource_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobSource", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobSource_label(ctx context.Context, field graphql.CollectedField, obj *models.JobSource) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobSource_label(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Label, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobSource_label(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobSource", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobSource_token(ctx context.Context, field graphql.CollectedField, obj *models.JobSource) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobSource_token(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Token, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobSource_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobSource", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobSource_query(ctx context.Context, field graphql.CollectedField, obj *models.JobSource) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobSource_query(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Query, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobSource_query(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobSource", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobSource_location(ctx context.Context, field graphql.CollectedField, obj *models.JobSource) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobSource_location(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Location, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobSource_location(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobSource", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _JobSource_enabled(ctx context.Context, field graphql.CollectedField, obj *models.JobSource) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobSource_enabled(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Enabled, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler {
return ec.marshalNBoolean2bool(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobSource_enabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobSource", field, false, false, errors.New("field of type Boolean does not have child fields"))
}
func (ec *executionContext) _JobSource_lastFetchedAt(ctx context.Context, field graphql.CollectedField, obj *models.JobSource) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobSource_lastFetchedAt(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.LastFetchedAt, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *time.Time) graphql.Marshaler {
return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_JobSource_lastFetchedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobSource", field, false, false, errors.New("field of type Time does not have child fields"))
}
func (ec *executionContext) _JobSource_lastCount(ctx context.Context, field graphql.CollectedField, obj *models.JobSource) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobSource_lastCount(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.LastCount, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler {
return ec.marshalNInt2int(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobSource_lastCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobSource", field, false, false, errors.New("field of type Int does not have child fields"))
}
func (ec *executionContext) _JobSource_lastError(ctx context.Context, field graphql.CollectedField, obj *models.JobSource) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_JobSource_lastError(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.LastError, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_JobSource_lastError(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("JobSource", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) _Mutation_createJobAppReference(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Mutation_createJobAppReference(ctx, field)
},
func(ctx context.Context) (any, error) {
fc := graphql.GetFieldContext(ctx)
return ec.Resolvers.Mutation().CreateJobAppReference(ctx, fc.Args["input"].(model.CreateJobAppReferenceInput))
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal *models.JobAppReference
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v *models.JobAppReference) graphql.Marshaler {
return ec.marshalNJobAppReference2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobAppReference(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Mutation_createJobAppReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_JobAppReference(ctx, field)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_createJobAppReference_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_updateJobAppReference(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Mutation_updateJobAppReference(ctx, field)
},
func(ctx context.Context) (any, error) {
fc := graphql.GetFieldContext(ctx)
return ec.Resolvers.Mutation().UpdateJobAppReference(ctx, fc.Args["id"].(int), fc.Args["input"].(model.UpdateJobAppReferenceInput))
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal *models.JobAppReference
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v *models.JobAppReference) graphql.Marshaler {
return ec.marshalNJobAppReference2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobAppReference(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Mutation_updateJobAppReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_JobAppReference(ctx, field)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_updateJobAppReference_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_deleteJobAppReference(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Mutation_deleteJobAppReference(ctx, field)
},
func(ctx context.Context) (any, error) {
fc := graphql.GetFieldContext(ctx)
return ec.Resolvers.Mutation().DeleteJobAppReference(ctx, fc.Args["id"].(int))
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal bool
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler {
return ec.marshalNBoolean2bool(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Mutation_deleteJobAppReference(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type Boolean does not have child fields")
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_deleteJobAppReference_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_createJobApplication(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Mutation_createJobApplication(ctx, field)
},
func(ctx context.Context) (any, error) {
fc := graphql.GetFieldContext(ctx)
return ec.Resolvers.Mutation().CreateJobApplication(ctx, fc.Args["input"].(model.CreateJobApplicationInput))
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal *models.JobApplication
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v *models.JobApplication) graphql.Marshaler {
return ec.marshalNJobApplication2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobApplication(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Mutation_createJobApplication(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_JobApplication(ctx, field)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_createJobApplication_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_updateJobApplication(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Mutation_updateJobApplication(ctx, field)
},
func(ctx context.Context) (any, error) {
fc := graphql.GetFieldContext(ctx)
return ec.Resolvers.Mutation().UpdateJobApplication(ctx, fc.Args["id"].(int), fc.Args["input"].(model.UpdateJobApplicationInput))
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal *models.JobApplication
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v *models.JobApplication) graphql.Marshaler {
return ec.marshalNJobApplication2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobApplication(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Mutation_updateJobApplication(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_JobApplication(ctx, field)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_updateJobApplication_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_deleteJobApplication(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Mutation_deleteJobApplication(ctx, field)
},
func(ctx context.Context) (any, error) {
fc := graphql.GetFieldContext(ctx)
return ec.Resolvers.Mutation().DeleteJobApplication(ctx, fc.Args["id"].(int))
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal bool
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler {
return ec.marshalNBoolean2bool(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Mutation_deleteJobApplication(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type Boolean does not have child fields")
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_deleteJobApplication_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_addJobApplicationEvent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Mutation_addJobApplicationEvent(ctx, field)
},
func(ctx context.Context) (any, error) {
fc := graphql.GetFieldContext(ctx)
return ec.Resolvers.Mutation().AddJobApplicationEvent(ctx, fc.Args["applicationId"].(int), fc.Args["input"].(model.AddJobApplicationEventInput))
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal *models.JobApplicationEvent
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v *models.JobApplicationEvent) graphql.Marshaler {
return ec.marshalNJobApplicationEvent2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobApplicationEvent(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Mutation_addJobApplicationEvent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_JobApplicationEvent(ctx, field)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_addJobApplicationEvent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_createJobSource(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Mutation_createJobSource(ctx, field)
},
func(ctx context.Context) (any, error) {
fc := graphql.GetFieldContext(ctx)
return ec.Resolvers.Mutation().CreateJobSource(ctx, fc.Args["input"].(model.CreateJobSourceInput))
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal *models.JobSource
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v *models.JobSource) graphql.Marshaler {
return ec.marshalNJobSource2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobSource(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Mutation_createJobSource(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_JobSource(ctx, field)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_createJobSource_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_updateJobSource(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Mutation_updateJobSource(ctx, field)
},
func(ctx context.Context) (any, error) {
fc := graphql.GetFieldContext(ctx)
return ec.Resolvers.Mutation().UpdateJobSource(ctx, fc.Args["id"].(int), fc.Args["input"].(model.UpdateJobSourceInput))
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal *models.JobSource
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v *models.JobSource) graphql.Marshaler {
return ec.marshalNJobSource2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobSource(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Mutation_updateJobSource(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_JobSource(ctx, field)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_updateJobSource_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_deleteJobSource(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Mutation_deleteJobSource(ctx, field)
},
func(ctx context.Context) (any, error) {
fc := graphql.GetFieldContext(ctx)
return ec.Resolvers.Mutation().DeleteJobSource(ctx, fc.Args["id"].(int))
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal bool
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler {
return ec.marshalNBoolean2bool(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Mutation_deleteJobSource(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return nil, errors.New("field of type Boolean does not have child fields")
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_deleteJobSource_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_dismissJobLead(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Mutation_dismissJobLead(ctx, field)
},
func(ctx context.Context) (any, error) {
fc := graphql.GetFieldContext(ctx)
return ec.Resolvers.Mutation().DismissJobLead(ctx, fc.Args["id"].(int))
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal *models.JobLead
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v *models.JobLead) graphql.Marshaler {
return ec.marshalNJobLead2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobLead(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Mutation_dismissJobLead(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_JobLead(ctx, field)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_dismissJobLead_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_restoreJobLead(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Mutation_restoreJobLead(ctx, field)
},
func(ctx context.Context) (any, error) {
fc := graphql.GetFieldContext(ctx)
return ec.Resolvers.Mutation().RestoreJobLead(ctx, fc.Args["id"].(int))
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal *models.JobLead
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v *models.JobLead) graphql.Marshaler {
return ec.marshalNJobLead2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobLead(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Mutation_restoreJobLead(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_JobLead(ctx, field)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_restoreJobLead_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_promoteJobLead(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Mutation_promoteJobLead(ctx, field)
},
func(ctx context.Context) (any, error) {
fc := graphql.GetFieldContext(ctx)
return ec.Resolvers.Mutation().PromoteJobLead(ctx, fc.Args["id"].(int))
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal *models.JobLead
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v *models.JobLead) graphql.Marshaler {
return ec.marshalNJobLead2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobLead(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Mutation_promoteJobLead(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_JobLead(ctx, field)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_promoteJobLead_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_bulkDismissJobLeads(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Mutation_bulkDismissJobLeads(ctx, field)
},
func(ctx context.Context) (any, error) {
fc := graphql.GetFieldContext(ctx)
return ec.Resolvers.Mutation().BulkDismissJobLeads(ctx, fc.Args["ids"].([]int))
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal []*models.JobLead
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v []*models.JobLead) graphql.Marshaler {
return ec.marshalNJobLead2ᚕᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobLeadᚄ(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Mutation_bulkDismissJobLeads(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_JobLead(ctx, field)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_bulkDismissJobLeads_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_bulkRestoreJobLeads(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Mutation_bulkRestoreJobLeads(ctx, field)
},
func(ctx context.Context) (any, error) {
fc := graphql.GetFieldContext(ctx)
return ec.Resolvers.Mutation().BulkRestoreJobLeads(ctx, fc.Args["ids"].([]int))
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal []*models.JobLead
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v []*models.JobLead) graphql.Marshaler {
return ec.marshalNJobLead2ᚕᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobLeadᚄ(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Mutation_bulkRestoreJobLeads(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_JobLead(ctx, field)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_bulkRestoreJobLeads_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_bulkPromoteJobLeads(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Mutation_bulkPromoteJobLeads(ctx, field)
},
func(ctx context.Context) (any, error) {
fc := graphql.GetFieldContext(ctx)
return ec.Resolvers.Mutation().BulkPromoteJobLeads(ctx, fc.Args["ids"].([]int))
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal []*models.JobLead
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v []*models.JobLead) graphql.Marshaler {
return ec.marshalNJobLead2ᚕᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobLeadᚄ(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Mutation_bulkPromoteJobLeads(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_JobLead(ctx, field)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_bulkPromoteJobLeads_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_updateJobSearchProfile(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Mutation_updateJobSearchProfile(ctx, field)
},
func(ctx context.Context) (any, error) {
fc := graphql.GetFieldContext(ctx)
return ec.Resolvers.Mutation().UpdateJobSearchProfile(ctx, fc.Args["input"].(model.UpdateJobSearchProfileInput))
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal *models.JobSearchProfile
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v *models.JobSearchProfile) graphql.Marshaler {
return ec.marshalNJobSearchProfile2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobSearchProfile(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Mutation_updateJobSearchProfile(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Mutation",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_JobSearchProfile(ctx, field)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Mutation_updateJobSearchProfile_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Mutation_runJobLeadSync(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Mutation_runJobLeadSync(ctx, field)
},
func(ctx context.Context) (any, error) {
return ec.Resolvers.Mutation().RunJobLeadSync(ctx)
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal bool
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler {
return ec.marshalNBoolean2bool(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Mutation_runJobLeadSync(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("Mutation", field, true, true, errors.New("field of type Boolean does not have child fields"))
}
func (ec *executionContext) _Mutation_scoreJobLeads(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Mutation_scoreJobLeads(ctx, field)
},
func(ctx context.Context) (any, error) {
return ec.Resolvers.Mutation().ScoreJobLeads(ctx)
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal bool
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler {
return ec.marshalNBoolean2bool(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Mutation_scoreJobLeads(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("Mutation", field, true, true, errors.New("field of type Boolean does not have child fields"))
}
func (ec *executionContext) _Mutation_rescoreJobLeads(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Mutation_rescoreJobLeads(ctx, field)
},
func(ctx context.Context) (any, error) {
return ec.Resolvers.Mutation().RescoreJobLeads(ctx)
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal bool
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler {
return ec.marshalNBoolean2bool(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Mutation_rescoreJobLeads(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("Mutation", field, true, true, errors.New("field of type Boolean does not have child fields"))
}
func (ec *executionContext) _Query_jobAppReferences(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Query_jobAppReferences(ctx, field)
},
func(ctx context.Context) (any, error) {
return ec.Resolvers.Query().JobAppReferences(ctx)
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal []*models.JobAppReference
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v []*models.JobAppReference) graphql.Marshaler {
return ec.marshalNJobAppReference2ᚕᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobAppReferenceᚄ(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Query_jobAppReferences(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Query",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_JobAppReference(ctx, field)
},
}
return fc, nil
}
func (ec *executionContext) _Query_jobApplications(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Query_jobApplications(ctx, field)
},
func(ctx context.Context) (any, error) {
return ec.Resolvers.Query().JobApplications(ctx)
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal []*models.JobApplication
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v []*models.JobApplication) graphql.Marshaler {
return ec.marshalNJobApplication2ᚕᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobApplicationᚄ(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Query_jobApplications(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Query",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_JobApplication(ctx, field)
},
}
return fc, nil
}
func (ec *executionContext) _Query_jobApplication(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Query_jobApplication(ctx, field)
},
func(ctx context.Context) (any, error) {
fc := graphql.GetFieldContext(ctx)
return ec.Resolvers.Query().JobApplication(ctx, fc.Args["id"].(int))
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal *models.JobApplication
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v *models.JobApplication) graphql.Marshaler {
return ec.marshalOJobApplication2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobApplication(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_Query_jobApplication(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Query",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_JobApplication(ctx, field)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Query_jobApplication_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_jobApplicationEvents(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Query_jobApplicationEvents(ctx, field)
},
func(ctx context.Context) (any, error) {
fc := graphql.GetFieldContext(ctx)
return ec.Resolvers.Query().JobApplicationEvents(ctx, fc.Args["applicationId"].(int))
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal []*models.JobApplicationEvent
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v []*models.JobApplicationEvent) graphql.Marshaler {
return ec.marshalNJobApplicationEvent2ᚕᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobApplicationEventᚄ(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Query_jobApplicationEvents(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Query",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_JobApplicationEvent(ctx, field)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Query_jobApplicationEvents_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_analytics(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Query_analytics(ctx, field)
},
func(ctx context.Context) (any, error) {
return ec.Resolvers.Query().Analytics(ctx)
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal *model.Analytics
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v *model.Analytics) graphql.Marshaler {
return ec.marshalNAnalytics2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐAnalytics(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Query_analytics(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Query",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_Analytics(ctx, field)
},
}
return fc, nil
}
func (ec *executionContext) _Query_jobSources(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Query_jobSources(ctx, field)
},
func(ctx context.Context) (any, error) {
return ec.Resolvers.Query().JobSources(ctx)
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal []*models.JobSource
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v []*models.JobSource) graphql.Marshaler {
return ec.marshalNJobSource2ᚕᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobSourceᚄ(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Query_jobSources(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Query",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_JobSource(ctx, field)
},
}
return fc, nil
}
func (ec *executionContext) _Query_jobLeads(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Query_jobLeads(ctx, field)
},
func(ctx context.Context) (any, error) {
fc := graphql.GetFieldContext(ctx)
return ec.Resolvers.Query().JobLeads(ctx, fc.Args["state"].(*string), fc.Args["includeUnmatched"].(*bool), fc.Args["filters"].(*model.JobLeadFilters))
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal []*models.JobLead
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v []*models.JobLead) graphql.Marshaler {
return ec.marshalNJobLead2ᚕᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobLeadᚄ(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Query_jobLeads(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Query",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_JobLead(ctx, field)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Query_jobLeads_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_jobLead(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Query_jobLead(ctx, field)
},
func(ctx context.Context) (any, error) {
fc := graphql.GetFieldContext(ctx)
return ec.Resolvers.Query().JobLead(ctx, fc.Args["id"].(int))
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal *models.JobLead
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v *models.JobLead) graphql.Marshaler {
return ec.marshalOJobLead2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobLead(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_Query_jobLead(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Query",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_JobLead(ctx, field)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Query_jobLead_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query_jobSearchProfile(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Query_jobSearchProfile(ctx, field)
},
func(ctx context.Context) (any, error) {
return ec.Resolvers.Query().JobSearchProfile(ctx)
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal *models.JobSearchProfile
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v *models.JobSearchProfile) graphql.Marshaler {
return ec.marshalNJobSearchProfile2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobSearchProfile(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Query_jobSearchProfile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Query",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_JobSearchProfile(ctx, field)
},
}
return fc, nil
}
func (ec *executionContext) _Query_jobLeadSyncStatus(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Query_jobLeadSyncStatus(ctx, field)
},
func(ctx context.Context) (any, error) {
return ec.Resolvers.Query().JobLeadSyncStatus(ctx)
},
func(ctx context.Context, next graphql.Resolver) graphql.Resolver {
directive0 := next
directive1 := func(ctx context.Context) (any, error) {
if ec.Directives.Admin == nil {
var zeroVal *model.JobLeadSyncStatus
return zeroVal, errors.New("directive admin is not implemented")
}
return ec.Directives.Admin(ctx, nil, directive0)
}
next = directive1
return next
},
func(ctx context.Context, selections ast.SelectionSet, v *model.JobLeadSyncStatus) graphql.Marshaler {
return ec.marshalNJobLeadSyncStatus2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐJobLeadSyncStatus(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext_Query_jobLeadSyncStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Query",
Field: field,
IsMethod: true,
IsResolver: true,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields_JobLeadSyncStatus(ctx, field)
},
}
return fc, nil
}
func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Query___type(ctx, field)
},
func(ctx context.Context) (any, error) {
fc := graphql.GetFieldContext(ctx)
return ec.IntrospectType(fc.Args["name"].(string))
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Query",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields___Type(ctx, field)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext_Query___schema(ctx, field)
},
func(ctx context.Context) (any, error) {
return ec.IntrospectSchema()
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *introspection.Schema) graphql.Marshaler {
return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext_Query___schema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "Query",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields___Schema(ctx, field)
},
}
return fc, nil
}
func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Directive_name(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Name, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext___Directive_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("__Directive", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Directive_description(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Description(), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext___Directive_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("__Directive", field, true, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Directive_isRepeatable(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.IsRepeatable, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler {
return ec.marshalNBoolean2bool(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext___Directive_isRepeatable(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("__Directive", field, false, false, errors.New("field of type Boolean does not have child fields"))
}
func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Directive_locations(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Locations, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler {
return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext___Directive_locations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("__Directive", field, false, false, errors.New("field of type __DirectiveLocation does not have child fields"))
}
func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Directive_args(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Args, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext___Directive_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Directive",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields___InputValue(ctx, field)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field___Directive_args_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___EnumValue_name(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Name, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext___EnumValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("__EnumValue", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___EnumValue_description(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Description(), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext___EnumValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("__EnumValue", field, true, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___EnumValue_isDeprecated(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.IsDeprecated(), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler {
return ec.marshalNBoolean2bool(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext___EnumValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("__EnumValue", field, true, false, errors.New("field of type Boolean does not have child fields"))
}
func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___EnumValue_deprecationReason(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.DeprecationReason(), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext___EnumValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("__EnumValue", field, true, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Field_name(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Name, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext___Field_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("__Field", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Field_description(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Description(), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext___Field_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("__Field", field, true, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Field_args(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Args, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext___Field_args(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Field",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields___InputValue(ctx, field)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field___Field_args_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Field_type(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Type, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext___Field_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Field",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields___Type(ctx, field)
},
}
return fc, nil
}
func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Field_isDeprecated(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.IsDeprecated(), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler {
return ec.marshalNBoolean2bool(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext___Field_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("__Field", field, true, false, errors.New("field of type Boolean does not have child fields"))
}
func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Field_deprecationReason(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.DeprecationReason(), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext___Field_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("__Field", field, true, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___InputValue_name(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Name, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalNString2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext___InputValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("__InputValue", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___InputValue_description(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Description(), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext___InputValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("__InputValue", field, true, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___InputValue_type(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Type, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext___InputValue_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__InputValue",
Field: field,
IsMethod: false,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields___Type(ctx, field)
},
}
return fc, nil
}
func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___InputValue_defaultValue(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.DefaultValue, nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext___InputValue_defaultValue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("__InputValue", field, false, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) ___InputValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___InputValue_isDeprecated(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.IsDeprecated(), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler {
return ec.marshalNBoolean2bool(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext___InputValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("__InputValue", field, true, false, errors.New("field of type Boolean does not have child fields"))
}
func (ec *executionContext) ___InputValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___InputValue_deprecationReason(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.DeprecationReason(), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext___InputValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("__InputValue", field, true, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Schema_description(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Description(), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext___Schema_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("__Schema", field, true, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Schema_types(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Types(), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext___Schema_types(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Schema",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields___Type(ctx, field)
},
}
return fc, nil
}
func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Schema_queryType(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.QueryType(), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext___Schema_queryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Schema",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields___Type(ctx, field)
},
}
return fc, nil
}
func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Schema_mutationType(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.MutationType(), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext___Schema_mutationType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Schema",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields___Type(ctx, field)
},
}
return fc, nil
}
func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Schema_subscriptionType(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.SubscriptionType(), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext___Schema_subscriptionType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Schema",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields___Type(ctx, field)
},
}
return fc, nil
}
func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Schema_directives(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Directives(), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v []introspection.Directive) graphql.Marshaler {
return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext___Schema_directives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Schema",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields___Directive(ctx, field)
},
}
return fc, nil
}
func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Type_kind(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Kind(), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler {
return ec.marshalN__TypeKind2string(ctx, selections, v)
},
true,
true,
)
}
func (ec *executionContext) fieldContext___Type_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("__Type", field, true, false, errors.New("field of type __TypeKind does not have child fields"))
}
func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Type_name(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Name(), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext___Type_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("__Type", field, true, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Type_description(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Description(), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext___Type_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("__Type", field, true, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Type_specifiedByURL(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.SpecifiedByURL(), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler {
return ec.marshalOString2ᚖstring(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("__Type", field, true, false, errors.New("field of type String does not have child fields"))
}
func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Type_fields(ctx, field)
},
func(ctx context.Context) (any, error) {
fc := graphql.GetFieldContext(ctx)
return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v []introspection.Field) graphql.Marshaler {
return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Type",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields___Field(ctx, field)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Type_interfaces(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.Interfaces(), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext___Type_interfaces(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Type",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields___Type(ctx, field)
},
}
return fc, nil
}
func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Type_possibleTypes(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.PossibleTypes(), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext___Type_possibleTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Type",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields___Type(ctx, field)
},
}
return fc, nil
}
func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Type_enumValues(ctx, field)
},
func(ctx context.Context) (any, error) {
fc := graphql.GetFieldContext(ctx)
return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler {
return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Type",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields___EnumValue(ctx, field)
},
}
defer func() {
if r := recover(); r != nil {
err = ec.Recover(ctx, r)
ec.Error(ctx, err)
}
}()
ctx = graphql.WithFieldContext(ctx, fc)
if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil {
ec.Error(ctx, err)
return fc, err
}
return fc, nil
}
func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Type_inputFields(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.InputFields(), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext___Type_inputFields(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Type",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields___InputValue(ctx, field)
},
}
return fc, nil
}
func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Type_ofType(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.OfType(), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext___Type_ofType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
fc = &graphql.FieldContext{
Object: "__Type",
Field: field,
IsMethod: true,
IsResolver: false,
Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.childFields___Type(ctx, field)
},
}
return fc, nil
}
func (ec *executionContext) ___Type_isOneOf(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
return graphql.ResolveField(
ctx,
ec.OperationContext,
field,
func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) {
return ec.fieldContext___Type_isOneOf(ctx, field)
},
func(ctx context.Context) (any, error) {
return obj.IsOneOf(), nil
},
nil,
func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler {
return ec.marshalOBoolean2bool(ctx, selections, v)
},
true,
false,
)
}
func (ec *executionContext) fieldContext___Type_isOneOf(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
return graphql.NewScalarFieldContext("__Type", field, true, false, errors.New("field of type Boolean does not have child fields"))
}
// endregion **************************** field.gotpl *****************************
// region **************************** input.gotpl *****************************
func (ec *executionContext) unmarshalInputAddJobApplicationEventInput(ctx context.Context, obj any) (model.AddJobApplicationEventInput, error) {
var it model.AddJobApplicationEventInput
if obj == nil {
return it, nil
}
asMap := map[string]any{}
for k, v := range obj.(map[string]any) {
asMap[k] = v
}
fieldsInOrder := [...]string{"kind", "occurredAt", "note", "source", "contactName", "contactEmail", "contactRole"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "kind":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Kind = data
case "occurredAt":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("occurredAt"))
data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v)
if err != nil {
return it, err
}
it.OccurredAt = data
case "note":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("note"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Note = data
case "source":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("source"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Source = data
case "contactName":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactName"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ContactName = data
case "contactEmail":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactEmail"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ContactEmail = data
case "contactRole":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactRole"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ContactRole = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputCreateJobAppReferenceInput(ctx context.Context, obj any) (model.CreateJobAppReferenceInput, error) {
var it model.CreateJobAppReferenceInput
if obj == nil {
return it, nil
}
asMap := map[string]any{}
for k, v := range obj.(map[string]any) {
asMap[k] = v
}
fieldsInOrder := [...]string{"category", "label", "value", "sortOrder"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "category":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("category"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Category = data
case "label":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("label"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Label = data
case "value":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Value = data
case "sortOrder":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortOrder"))
data, err := ec.unmarshalOInt2ᚖint(ctx, v)
if err != nil {
return it, err
}
it.SortOrder = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputCreateJobApplicationInput(ctx context.Context, obj any) (model.CreateJobApplicationInput, error) {
var it model.CreateJobApplicationInput
if obj == nil {
return it, nil
}
asMap := map[string]any{}
for k, v := range obj.(map[string]any) {
asMap[k] = v
}
fieldsInOrder := [...]string{"jobTitle", "company", "location", "url", "status", "notes", "appliedAt", "description", "nextAction", "nextActionAt", "contactName", "contactEmail", "contactRole", "salaryRange", "workArrangement", "applicationSource", "resumeVersion", "requisitionId", "lastContactedAt"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "jobTitle":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("jobTitle"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.JobTitle = data
case "company":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("company"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Company = data
case "location":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("location"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Location = data
case "url":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.URL = data
case "status":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status"))
data, err := ec.unmarshalNJobStatus2string(ctx, v)
if err != nil {
return it, err
}
it.Status = data
case "notes":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("notes"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Notes = data
case "appliedAt":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appliedAt"))
data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v)
if err != nil {
return it, err
}
it.AppliedAt = data
case "description":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Description = data
case "nextAction":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nextAction"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.NextAction = data
case "nextActionAt":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nextActionAt"))
data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v)
if err != nil {
return it, err
}
it.NextActionAt = data
case "contactName":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactName"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ContactName = data
case "contactEmail":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactEmail"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ContactEmail = data
case "contactRole":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactRole"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ContactRole = data
case "salaryRange":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("salaryRange"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.SalaryRange = data
case "workArrangement":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("workArrangement"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.WorkArrangement = data
case "applicationSource":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("applicationSource"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ApplicationSource = data
case "resumeVersion":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resumeVersion"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ResumeVersion = data
case "requisitionId":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requisitionId"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.RequisitionID = data
case "lastContactedAt":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastContactedAt"))
data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v)
if err != nil {
return it, err
}
it.LastContactedAt = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputCreateJobSourceInput(ctx context.Context, obj any) (model.CreateJobSourceInput, error) {
var it model.CreateJobSourceInput
if obj == nil {
return it, nil
}
asMap := map[string]any{}
for k, v := range obj.(map[string]any) {
asMap[k] = v
}
fieldsInOrder := [...]string{"kind", "label", "token", "query", "location", "enabled"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "kind":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Kind = data
case "label":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("label"))
data, err := ec.unmarshalNString2string(ctx, v)
if err != nil {
return it, err
}
it.Label = data
case "token":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("token"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Token = data
case "query":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Query = data
case "location":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("location"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Location = data
case "enabled":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled"))
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
if err != nil {
return it, err
}
it.Enabled = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputJobLeadFilters(ctx context.Context, obj any) (model.JobLeadFilters, error) {
var it model.JobLeadFilters
if obj == nil {
return it, nil
}
asMap := map[string]any{}
for k, v := range obj.(map[string]any) {
asMap[k] = v
}
fieldsInOrder := [...]string{"sourceKind", "minScore", "maxScore", "location", "company"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "sourceKind":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sourceKind"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.SourceKind = data
case "minScore":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("minScore"))
data, err := ec.unmarshalOInt2ᚖint(ctx, v)
if err != nil {
return it, err
}
it.MinScore = data
case "maxScore":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("maxScore"))
data, err := ec.unmarshalOInt2ᚖint(ctx, v)
if err != nil {
return it, err
}
it.MaxScore = data
case "location":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("location"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Location = data
case "company":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("company"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Company = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputUpdateJobAppReferenceInput(ctx context.Context, obj any) (model.UpdateJobAppReferenceInput, error) {
var it model.UpdateJobAppReferenceInput
if obj == nil {
return it, nil
}
asMap := map[string]any{}
for k, v := range obj.(map[string]any) {
asMap[k] = v
}
fieldsInOrder := [...]string{"category", "label", "value", "sortOrder"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "category":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("category"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Category = data
case "label":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("label"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Label = data
case "value":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Value = data
case "sortOrder":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sortOrder"))
data, err := ec.unmarshalOInt2ᚖint(ctx, v)
if err != nil {
return it, err
}
it.SortOrder = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputUpdateJobApplicationInput(ctx context.Context, obj any) (model.UpdateJobApplicationInput, error) {
var it model.UpdateJobApplicationInput
if obj == nil {
return it, nil
}
asMap := map[string]any{}
for k, v := range obj.(map[string]any) {
asMap[k] = v
}
fieldsInOrder := [...]string{"jobTitle", "company", "location", "url", "status", "notes", "appliedAt", "description", "nextAction", "nextActionAt", "clearNextActionAt", "contactName", "contactEmail", "contactRole", "salaryRange", "workArrangement", "applicationSource", "resumeVersion", "requisitionId", "lastContactedAt"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "jobTitle":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("jobTitle"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.JobTitle = data
case "company":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("company"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Company = data
case "location":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("location"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Location = data
case "url":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.URL = data
case "status":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status"))
data, err := ec.unmarshalOJobStatus2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Status = data
case "notes":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("notes"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Notes = data
case "appliedAt":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appliedAt"))
data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v)
if err != nil {
return it, err
}
it.AppliedAt = data
case "description":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Description = data
case "nextAction":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nextAction"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.NextAction = data
case "nextActionAt":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nextActionAt"))
data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v)
if err != nil {
return it, err
}
it.NextActionAt = data
case "clearNextActionAt":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearNextActionAt"))
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
if err != nil {
return it, err
}
it.ClearNextActionAt = data
case "contactName":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactName"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ContactName = data
case "contactEmail":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactEmail"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ContactEmail = data
case "contactRole":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactRole"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ContactRole = data
case "salaryRange":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("salaryRange"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.SalaryRange = data
case "workArrangement":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("workArrangement"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.WorkArrangement = data
case "applicationSource":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("applicationSource"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ApplicationSource = data
case "resumeVersion":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resumeVersion"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ResumeVersion = data
case "requisitionId":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("requisitionId"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.RequisitionID = data
case "lastContactedAt":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("lastContactedAt"))
data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v)
if err != nil {
return it, err
}
it.LastContactedAt = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputUpdateJobSearchProfileInput(ctx context.Context, obj any) (model.UpdateJobSearchProfileInput, error) {
var it model.UpdateJobSearchProfileInput
if obj == nil {
return it, nil
}
asMap := map[string]any{}
for k, v := range obj.(map[string]any) {
asMap[k] = v
}
fieldsInOrder := [...]string{"profile", "includeKeywords", "excludeKeywords", "locations", "minScore"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "profile":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("profile"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Profile = data
case "includeKeywords":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeKeywords"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.IncludeKeywords = data
case "excludeKeywords":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("excludeKeywords"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.ExcludeKeywords = data
case "locations":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("locations"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Locations = data
case "minScore":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("minScore"))
data, err := ec.unmarshalOInt2ᚖint(ctx, v)
if err != nil {
return it, err
}
it.MinScore = data
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputUpdateJobSourceInput(ctx context.Context, obj any) (model.UpdateJobSourceInput, error) {
var it model.UpdateJobSourceInput
if obj == nil {
return it, nil
}
asMap := map[string]any{}
for k, v := range obj.(map[string]any) {
asMap[k] = v
}
fieldsInOrder := [...]string{"kind", "label", "token", "query", "location", "enabled"}
for _, k := range fieldsInOrder {
v, ok := asMap[k]
if !ok {
continue
}
switch k {
case "kind":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("kind"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Kind = data
case "label":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("label"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Label = data
case "token":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("token"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Token = data
case "query":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("query"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Query = data
case "location":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("location"))
data, err := ec.unmarshalOString2ᚖstring(ctx, v)
if err != nil {
return it, err
}
it.Location = data
case "enabled":
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled"))
data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v)
if err != nil {
return it, err
}
it.Enabled = data
}
}
return it, nil
}
// endregion **************************** input.gotpl *****************************
// region ************************** interface.gotpl ***************************
// endregion ************************** interface.gotpl ***************************
// region **************************** object.gotpl ****************************
var analyticsImplementors = []string{"Analytics"}
func (ec *executionContext) _Analytics(ctx context.Context, sel ast.SelectionSet, obj *model.Analytics) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, analyticsImplementors)
out := graphql.NewFieldSet(fields)
deferredFieldSet := graphql.NewFieldSet(nil)
deferLabelToView := make(map[string]*graphql.FieldSetView)
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("Analytics")
case "totalApplications":
out.Values[i] = ec._Analytics_totalApplications(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "statusCounts":
out.Values[i] = ec._Analytics_statusCounts(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "transitions":
out.Values[i] = ec._Analytics_transitions(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "responseCount":
out.Values[i] = ec._Analytics_responseCount(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "interviewCount":
out.Values[i] = ec._Analytics_interviewCount(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "offerCount":
out.Values[i] = ec._Analytics_offerCount(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "responseRate":
out.Values[i] = ec._Analytics_responseRate(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "interviewRate":
out.Values[i] = ec._Analytics_interviewRate(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "offerRate":
out.Values[i] = ec._Analytics_offerRate(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "averageDaysToResponse":
out.Values[i] = ec._Analytics_averageDaysToResponse(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "averageDaysToInterview":
out.Values[i] = ec._Analytics_averageDaysToInterview(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "averageDaysToOffer":
out.Values[i] = ec._Analytics_averageDaysToOffer(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
ec.ProcessDeferredGroup(graphql.DeferredGroup{
Defers: deferLabelToView,
Path: graphql.GetPath(ctx),
FieldSet: deferredFieldSet,
Context: ctx,
})
return out
}
var analyticsStatusCountImplementors = []string{"AnalyticsStatusCount"}
func (ec *executionContext) _AnalyticsStatusCount(ctx context.Context, sel ast.SelectionSet, obj *model.AnalyticsStatusCount) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, analyticsStatusCountImplementors)
out := graphql.NewFieldSet(fields)
deferredFieldSet := graphql.NewFieldSet(nil)
deferLabelToView := make(map[string]*graphql.FieldSetView)
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("AnalyticsStatusCount")
case "status":
out.Values[i] = ec._AnalyticsStatusCount_status(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "count":
out.Values[i] = ec._AnalyticsStatusCount_count(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
ec.ProcessDeferredGroup(graphql.DeferredGroup{
Defers: deferLabelToView,
Path: graphql.GetPath(ctx),
FieldSet: deferredFieldSet,
Context: ctx,
})
return out
}
var analyticsTransitionImplementors = []string{"AnalyticsTransition"}
func (ec *executionContext) _AnalyticsTransition(ctx context.Context, sel ast.SelectionSet, obj *model.AnalyticsTransition) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, analyticsTransitionImplementors)
out := graphql.NewFieldSet(fields)
deferredFieldSet := graphql.NewFieldSet(nil)
deferLabelToView := make(map[string]*graphql.FieldSetView)
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("AnalyticsTransition")
case "from":
out.Values[i] = ec._AnalyticsTransition_from(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "to":
out.Values[i] = ec._AnalyticsTransition_to(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "count":
out.Values[i] = ec._AnalyticsTransition_count(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
ec.ProcessDeferredGroup(graphql.DeferredGroup{
Defers: deferLabelToView,
Path: graphql.GetPath(ctx),
FieldSet: deferredFieldSet,
Context: ctx,
})
return out
}
var jobAppReferenceImplementors = []string{"JobAppReference"}
func (ec *executionContext) _JobAppReference(ctx context.Context, sel ast.SelectionSet, obj *models.JobAppReference) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, jobAppReferenceImplementors)
out := graphql.NewFieldSet(fields)
deferredFieldSet := graphql.NewFieldSet(nil)
deferLabelToView := make(map[string]*graphql.FieldSetView)
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("JobAppReference")
case "id":
out.Values[i] = ec._JobAppReference_id(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "createdAt":
out.Values[i] = ec._JobAppReference_createdAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "updatedAt":
out.Values[i] = ec._JobAppReference_updatedAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "category":
out.Values[i] = ec._JobAppReference_category(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "label":
out.Values[i] = ec._JobAppReference_label(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "value":
out.Values[i] = ec._JobAppReference_value(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "sortOrder":
out.Values[i] = ec._JobAppReference_sortOrder(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
ec.ProcessDeferredGroup(graphql.DeferredGroup{
Defers: deferLabelToView,
Path: graphql.GetPath(ctx),
FieldSet: deferredFieldSet,
Context: ctx,
})
return out
}
var jobApplicationImplementors = []string{"JobApplication"}
func (ec *executionContext) _JobApplication(ctx context.Context, sel ast.SelectionSet, obj *models.JobApplication) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, jobApplicationImplementors)
out := graphql.NewFieldSet(fields)
deferredFieldSet := graphql.NewFieldSet(nil)
deferLabelToView := make(map[string]*graphql.FieldSetView)
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("JobApplication")
case "id":
out.Values[i] = ec._JobApplication_id(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
case "createdAt":
out.Values[i] = ec._JobApplication_createdAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
case "updatedAt":
out.Values[i] = ec._JobApplication_updatedAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
case "jobTitle":
out.Values[i] = ec._JobApplication_jobTitle(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
case "company":
out.Values[i] = ec._JobApplication_company(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
case "location":
out.Values[i] = ec._JobApplication_location(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
atomic.AddUint32(&out.Invalids, 1)
}
case "url":
out.Values[i] = ec._JobApplication_url(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
atomic.AddUint32(&out.Invalids, 1)
}
case "status":
out.Values[i] = ec._JobApplication_status(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&out.Invalids, 1)
}
case "notes":
out.Values[i] = ec._JobApplication_notes(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
atomic.AddUint32(&out.Invalids, 1)
}
case "appliedAt":
out.Values[i] = ec._JobApplication_appliedAt(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
atomic.AddUint32(&out.Invalids, 1)
}
case "description":
out.Values[i] = ec._JobApplication_description(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
atomic.AddUint32(&out.Invalids, 1)
}
case "nextAction":
out.Values[i] = ec._JobApplication_nextAction(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
atomic.AddUint32(&out.Invalids, 1)
}
case "nextActionAt":
out.Values[i] = ec._JobApplication_nextActionAt(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
atomic.AddUint32(&out.Invalids, 1)
}
case "contactName":
out.Values[i] = ec._JobApplication_contactName(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
atomic.AddUint32(&out.Invalids, 1)
}
case "contactEmail":
out.Values[i] = ec._JobApplication_contactEmail(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
atomic.AddUint32(&out.Invalids, 1)
}
case "contactRole":
out.Values[i] = ec._JobApplication_contactRole(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
atomic.AddUint32(&out.Invalids, 1)
}
case "salaryRange":
out.Values[i] = ec._JobApplication_salaryRange(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
atomic.AddUint32(&out.Invalids, 1)
}
case "workArrangement":
out.Values[i] = ec._JobApplication_workArrangement(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
atomic.AddUint32(&out.Invalids, 1)
}
case "applicationSource":
out.Values[i] = ec._JobApplication_applicationSource(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
atomic.AddUint32(&out.Invalids, 1)
}
case "resumeVersion":
out.Values[i] = ec._JobApplication_resumeVersion(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
atomic.AddUint32(&out.Invalids, 1)
}
case "requisitionId":
out.Values[i] = ec._JobApplication_requisitionId(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
atomic.AddUint32(&out.Invalids, 1)
}
case "lastContactedAt":
out.Values[i] = ec._JobApplication_lastContactedAt(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
atomic.AddUint32(&out.Invalids, 1)
}
case "events":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._JobApplication_events(ctx, field, obj)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
return res
}
if field.IsDeferred() {
deferredFieldSet.AddField(field)
fieldIndex := len(deferredFieldSet.Values) - 1
deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler {
return innerFunc(ctx, deferredFieldSet)
})
for _, deferrable := range field.Deferrables {
view, ok := deferLabelToView[deferrable.Label]
if !ok {
view = deferredFieldSet.NewView()
deferLabelToView[deferrable.Label] = view
}
view.AddIndices(fieldIndex)
}
// don't run the out.Concurrently() call below
out.Values[i] = graphql.Null
continue
}
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
ec.ProcessDeferredGroup(graphql.DeferredGroup{
Defers: deferLabelToView,
Path: graphql.GetPath(ctx),
FieldSet: deferredFieldSet,
Context: ctx,
})
return out
}
var jobApplicationEventImplementors = []string{"JobApplicationEvent"}
func (ec *executionContext) _JobApplicationEvent(ctx context.Context, sel ast.SelectionSet, obj *models.JobApplicationEvent) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, jobApplicationEventImplementors)
out := graphql.NewFieldSet(fields)
deferredFieldSet := graphql.NewFieldSet(nil)
deferLabelToView := make(map[string]*graphql.FieldSetView)
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("JobApplicationEvent")
case "id":
out.Values[i] = ec._JobApplicationEvent_id(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "createdAt":
out.Values[i] = ec._JobApplicationEvent_createdAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "jobApplicationId":
out.Values[i] = ec._JobApplicationEvent_jobApplicationId(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "kind":
out.Values[i] = ec._JobApplicationEvent_kind(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "occurredAt":
out.Values[i] = ec._JobApplicationEvent_occurredAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "note":
out.Values[i] = ec._JobApplicationEvent_note(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "source":
out.Values[i] = ec._JobApplicationEvent_source(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "contactName":
out.Values[i] = ec._JobApplicationEvent_contactName(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "contactEmail":
out.Values[i] = ec._JobApplicationEvent_contactEmail(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "contactRole":
out.Values[i] = ec._JobApplicationEvent_contactRole(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
ec.ProcessDeferredGroup(graphql.DeferredGroup{
Defers: deferLabelToView,
Path: graphql.GetPath(ctx),
FieldSet: deferredFieldSet,
Context: ctx,
})
return out
}
var jobLeadImplementors = []string{"JobLead"}
func (ec *executionContext) _JobLead(ctx context.Context, sel ast.SelectionSet, obj *models.JobLead) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, jobLeadImplementors)
out := graphql.NewFieldSet(fields)
deferredFieldSet := graphql.NewFieldSet(nil)
deferLabelToView := make(map[string]*graphql.FieldSetView)
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("JobLead")
case "id":
out.Values[i] = ec._JobLead_id(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "createdAt":
out.Values[i] = ec._JobLead_createdAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "sourceKind":
out.Values[i] = ec._JobLead_sourceKind(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "jobTitle":
out.Values[i] = ec._JobLead_jobTitle(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "company":
out.Values[i] = ec._JobLead_company(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "location":
out.Values[i] = ec._JobLead_location(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "url":
out.Values[i] = ec._JobLead_url(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "description":
out.Values[i] = ec._JobLead_description(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "postedAt":
out.Values[i] = ec._JobLead_postedAt(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "lastSeenAt":
out.Values[i] = ec._JobLead_lastSeenAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "matched":
out.Values[i] = ec._JobLead_matched(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "state":
out.Values[i] = ec._JobLead_state(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "score":
out.Values[i] = ec._JobLead_score(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "scoreReasons":
out.Values[i] = ec._JobLead_scoreReasons(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "scoredAt":
out.Values[i] = ec._JobLead_scoredAt(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "jobAppId":
out.Values[i] = ec._JobLead_jobAppId(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
ec.ProcessDeferredGroup(graphql.DeferredGroup{
Defers: deferLabelToView,
Path: graphql.GetPath(ctx),
FieldSet: deferredFieldSet,
Context: ctx,
})
return out
}
var jobLeadSyncStatusImplementors = []string{"JobLeadSyncStatus"}
func (ec *executionContext) _JobLeadSyncStatus(ctx context.Context, sel ast.SelectionSet, obj *model.JobLeadSyncStatus) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, jobLeadSyncStatusImplementors)
out := graphql.NewFieldSet(fields)
deferredFieldSet := graphql.NewFieldSet(nil)
deferLabelToView := make(map[string]*graphql.FieldSetView)
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("JobLeadSyncStatus")
case "running":
out.Values[i] = ec._JobLeadSyncStatus_running(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "lastRunAt":
out.Values[i] = ec._JobLeadSyncStatus_lastRunAt(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "lastError":
out.Values[i] = ec._JobLeadSyncStatus_lastError(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
ec.ProcessDeferredGroup(graphql.DeferredGroup{
Defers: deferLabelToView,
Path: graphql.GetPath(ctx),
FieldSet: deferredFieldSet,
Context: ctx,
})
return out
}
var jobSearchProfileImplementors = []string{"JobSearchProfile"}
func (ec *executionContext) _JobSearchProfile(ctx context.Context, sel ast.SelectionSet, obj *models.JobSearchProfile) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, jobSearchProfileImplementors)
out := graphql.NewFieldSet(fields)
deferredFieldSet := graphql.NewFieldSet(nil)
deferLabelToView := make(map[string]*graphql.FieldSetView)
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("JobSearchProfile")
case "updatedAt":
out.Values[i] = ec._JobSearchProfile_updatedAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "profile":
out.Values[i] = ec._JobSearchProfile_profile(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "includeKeywords":
out.Values[i] = ec._JobSearchProfile_includeKeywords(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "excludeKeywords":
out.Values[i] = ec._JobSearchProfile_excludeKeywords(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "locations":
out.Values[i] = ec._JobSearchProfile_locations(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "minScore":
out.Values[i] = ec._JobSearchProfile_minScore(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
ec.ProcessDeferredGroup(graphql.DeferredGroup{
Defers: deferLabelToView,
Path: graphql.GetPath(ctx),
FieldSet: deferredFieldSet,
Context: ctx,
})
return out
}
var jobSourceImplementors = []string{"JobSource"}
func (ec *executionContext) _JobSource(ctx context.Context, sel ast.SelectionSet, obj *models.JobSource) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, jobSourceImplementors)
out := graphql.NewFieldSet(fields)
deferredFieldSet := graphql.NewFieldSet(nil)
deferLabelToView := make(map[string]*graphql.FieldSetView)
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("JobSource")
case "id":
out.Values[i] = ec._JobSource_id(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "createdAt":
out.Values[i] = ec._JobSource_createdAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "updatedAt":
out.Values[i] = ec._JobSource_updatedAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "kind":
out.Values[i] = ec._JobSource_kind(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "label":
out.Values[i] = ec._JobSource_label(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "token":
out.Values[i] = ec._JobSource_token(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "query":
out.Values[i] = ec._JobSource_query(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "location":
out.Values[i] = ec._JobSource_location(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "enabled":
out.Values[i] = ec._JobSource_enabled(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "lastFetchedAt":
out.Values[i] = ec._JobSource_lastFetchedAt(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "lastCount":
out.Values[i] = ec._JobSource_lastCount(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "lastError":
out.Values[i] = ec._JobSource_lastError(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
ec.ProcessDeferredGroup(graphql.DeferredGroup{
Defers: deferLabelToView,
Path: graphql.GetPath(ctx),
FieldSet: deferredFieldSet,
Context: ctx,
})
return out
}
var mutationImplementors = []string{"Mutation"}
func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, mutationImplementors)
ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
Object: "Mutation",
})
out := graphql.NewFieldSet(fields)
deferredFieldSet := graphql.NewFieldSet(nil)
deferLabelToView := make(map[string]*graphql.FieldSetView)
for i, field := range fields {
innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
Object: field.Name,
Field: field,
})
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("Mutation")
case "createJobAppReference":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_createJobAppReference(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "updateJobAppReference":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_updateJobAppReference(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "deleteJobAppReference":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_deleteJobAppReference(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "createJobApplication":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_createJobApplication(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "updateJobApplication":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_updateJobApplication(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "deleteJobApplication":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_deleteJobApplication(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "addJobApplicationEvent":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_addJobApplicationEvent(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "createJobSource":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_createJobSource(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "updateJobSource":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_updateJobSource(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "deleteJobSource":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_deleteJobSource(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "dismissJobLead":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_dismissJobLead(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "restoreJobLead":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_restoreJobLead(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "promoteJobLead":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_promoteJobLead(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "bulkDismissJobLeads":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_bulkDismissJobLeads(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "bulkRestoreJobLeads":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_bulkRestoreJobLeads(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "bulkPromoteJobLeads":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_bulkPromoteJobLeads(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "updateJobSearchProfile":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_updateJobSearchProfile(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "runJobLeadSync":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_runJobLeadSync(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "scoreJobLeads":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_scoreJobLeads(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "rescoreJobLeads":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Mutation_rescoreJobLeads(ctx, field)
})
if out.Values[i] == graphql.Null {
out.Invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
ec.ProcessDeferredGroup(graphql.DeferredGroup{
Defers: deferLabelToView,
Path: graphql.GetPath(ctx),
FieldSet: deferredFieldSet,
Context: ctx,
})
return out
}
var queryImplementors = []string{"Query"}
func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors)
ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
Object: "Query",
})
out := graphql.NewFieldSet(fields)
deferredFieldSet := graphql.NewFieldSet(nil)
deferLabelToView := make(map[string]*graphql.FieldSetView)
for i, field := range fields {
innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
Object: field.Name,
Field: field,
})
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("Query")
case "jobAppReferences":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_jobAppReferences(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
return res
}
rrm := func(ctx context.Context) graphql.Marshaler {
return ec.OperationContext.RootResolverMiddleware(ctx,
func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
}
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
case "jobApplications":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_jobApplications(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
return res
}
rrm := func(ctx context.Context) graphql.Marshaler {
return ec.OperationContext.RootResolverMiddleware(ctx,
func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
}
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
case "jobApplication":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_jobApplication(ctx, field)
if res == graphql.RequiredNull {
atomic.AddUint32(&fs.Invalids, 1)
}
return res
}
rrm := func(ctx context.Context) graphql.Marshaler {
return ec.OperationContext.RootResolverMiddleware(ctx,
func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
}
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
case "jobApplicationEvents":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_jobApplicationEvents(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
return res
}
rrm := func(ctx context.Context) graphql.Marshaler {
return ec.OperationContext.RootResolverMiddleware(ctx,
func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
}
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
case "analytics":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_analytics(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
return res
}
rrm := func(ctx context.Context) graphql.Marshaler {
return ec.OperationContext.RootResolverMiddleware(ctx,
func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
}
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
case "jobSources":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_jobSources(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
return res
}
rrm := func(ctx context.Context) graphql.Marshaler {
return ec.OperationContext.RootResolverMiddleware(ctx,
func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
}
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
case "jobLeads":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_jobLeads(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
return res
}
rrm := func(ctx context.Context) graphql.Marshaler {
return ec.OperationContext.RootResolverMiddleware(ctx,
func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
}
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
case "jobLead":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_jobLead(ctx, field)
if res == graphql.RequiredNull {
atomic.AddUint32(&fs.Invalids, 1)
}
return res
}
rrm := func(ctx context.Context) graphql.Marshaler {
return ec.OperationContext.RootResolverMiddleware(ctx,
func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
}
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
case "jobSearchProfile":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_jobSearchProfile(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
return res
}
rrm := func(ctx context.Context) graphql.Marshaler {
return ec.OperationContext.RootResolverMiddleware(ctx,
func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
}
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
case "jobLeadSyncStatus":
field := field
innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_jobLeadSyncStatus(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&fs.Invalids, 1)
}
return res
}
rrm := func(ctx context.Context) graphql.Marshaler {
return ec.OperationContext.RootResolverMiddleware(ctx,
func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) })
}
out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) })
case "__type":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Query___type(ctx, field)
})
if out.Values[i] == graphql.RequiredNull {
atomic.AddUint32(&out.Invalids, 1)
}
case "__schema":
out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) {
return ec._Query___schema(ctx, field)
})
if out.Values[i] == graphql.RequiredNull {
atomic.AddUint32(&out.Invalids, 1)
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
ec.ProcessDeferredGroup(graphql.DeferredGroup{
Defers: deferLabelToView,
Path: graphql.GetPath(ctx),
FieldSet: deferredFieldSet,
Context: ctx,
})
return out
}
var __DirectiveImplementors = []string{"__Directive"}
func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors)
out := graphql.NewFieldSet(fields)
deferredFieldSet := graphql.NewFieldSet(nil)
deferLabelToView := make(map[string]*graphql.FieldSetView)
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("__Directive")
case "name":
out.Values[i] = ec.___Directive_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "description":
out.Values[i] = ec.___Directive_description(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "isRepeatable":
out.Values[i] = ec.___Directive_isRepeatable(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "locations":
out.Values[i] = ec.___Directive_locations(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "args":
out.Values[i] = ec.___Directive_args(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
ec.ProcessDeferredGroup(graphql.DeferredGroup{
Defers: deferLabelToView,
Path: graphql.GetPath(ctx),
FieldSet: deferredFieldSet,
Context: ctx,
})
return out
}
var __EnumValueImplementors = []string{"__EnumValue"}
func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors)
out := graphql.NewFieldSet(fields)
deferredFieldSet := graphql.NewFieldSet(nil)
deferLabelToView := make(map[string]*graphql.FieldSetView)
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("__EnumValue")
case "name":
out.Values[i] = ec.___EnumValue_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "description":
out.Values[i] = ec.___EnumValue_description(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "isDeprecated":
out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "deprecationReason":
out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
ec.ProcessDeferredGroup(graphql.DeferredGroup{
Defers: deferLabelToView,
Path: graphql.GetPath(ctx),
FieldSet: deferredFieldSet,
Context: ctx,
})
return out
}
var __FieldImplementors = []string{"__Field"}
func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors)
out := graphql.NewFieldSet(fields)
deferredFieldSet := graphql.NewFieldSet(nil)
deferLabelToView := make(map[string]*graphql.FieldSetView)
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("__Field")
case "name":
out.Values[i] = ec.___Field_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "description":
out.Values[i] = ec.___Field_description(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "args":
out.Values[i] = ec.___Field_args(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "type":
out.Values[i] = ec.___Field_type(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "isDeprecated":
out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "deprecationReason":
out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
ec.ProcessDeferredGroup(graphql.DeferredGroup{
Defers: deferLabelToView,
Path: graphql.GetPath(ctx),
FieldSet: deferredFieldSet,
Context: ctx,
})
return out
}
var __InputValueImplementors = []string{"__InputValue"}
func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors)
out := graphql.NewFieldSet(fields)
deferredFieldSet := graphql.NewFieldSet(nil)
deferLabelToView := make(map[string]*graphql.FieldSetView)
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("__InputValue")
case "name":
out.Values[i] = ec.___InputValue_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "description":
out.Values[i] = ec.___InputValue_description(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "type":
out.Values[i] = ec.___InputValue_type(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "defaultValue":
out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "isDeprecated":
out.Values[i] = ec.___InputValue_isDeprecated(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "deprecationReason":
out.Values[i] = ec.___InputValue_deprecationReason(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
ec.ProcessDeferredGroup(graphql.DeferredGroup{
Defers: deferLabelToView,
Path: graphql.GetPath(ctx),
FieldSet: deferredFieldSet,
Context: ctx,
})
return out
}
var __SchemaImplementors = []string{"__Schema"}
func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors)
out := graphql.NewFieldSet(fields)
deferredFieldSet := graphql.NewFieldSet(nil)
deferLabelToView := make(map[string]*graphql.FieldSetView)
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("__Schema")
case "description":
out.Values[i] = ec.___Schema_description(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "types":
out.Values[i] = ec.___Schema_types(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "queryType":
out.Values[i] = ec.___Schema_queryType(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "mutationType":
out.Values[i] = ec.___Schema_mutationType(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "subscriptionType":
out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "directives":
out.Values[i] = ec.___Schema_directives(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
ec.ProcessDeferredGroup(graphql.DeferredGroup{
Defers: deferLabelToView,
Path: graphql.GetPath(ctx),
FieldSet: deferredFieldSet,
Context: ctx,
})
return out
}
var __TypeImplementors = []string{"__Type"}
func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors)
out := graphql.NewFieldSet(fields)
deferredFieldSet := graphql.NewFieldSet(nil)
deferLabelToView := make(map[string]*graphql.FieldSetView)
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("__Type")
case "kind":
out.Values[i] = ec.___Type_kind(ctx, field, obj)
if out.Values[i] == graphql.Null {
out.Invalids++
}
case "name":
out.Values[i] = ec.___Type_name(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "description":
out.Values[i] = ec.___Type_description(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "specifiedByURL":
out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "fields":
out.Values[i] = ec.___Type_fields(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "interfaces":
out.Values[i] = ec.___Type_interfaces(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "possibleTypes":
out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "enumValues":
out.Values[i] = ec.___Type_enumValues(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "inputFields":
out.Values[i] = ec.___Type_inputFields(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "ofType":
out.Values[i] = ec.___Type_ofType(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
case "isOneOf":
out.Values[i] = ec.___Type_isOneOf(ctx, field, obj)
if out.Values[i] == graphql.RequiredNull {
out.Invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch(ctx)
if out.Invalids > 0 {
return graphql.Null
}
atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32)))
ec.ProcessDeferredGroup(graphql.DeferredGroup{
Defers: deferLabelToView,
Path: graphql.GetPath(ctx),
FieldSet: deferredFieldSet,
Context: ctx,
})
return out
}
// endregion **************************** object.gotpl ****************************
// region ***************************** type.gotpl *****************************
func (ec *executionContext) unmarshalNAddJobApplicationEventInput2adamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐAddJobApplicationEventInput(ctx context.Context, v any) (model.AddJobApplicationEventInput, error) {
res, err := ec.unmarshalInputAddJobApplicationEventInput(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNAnalytics2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐAnalytics(ctx context.Context, sel ast.SelectionSet, v *model.Analytics) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
return ec._Analytics(ctx, sel, v)
}
func (ec *executionContext) marshalNAnalyticsStatusCount2ᚕᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐAnalyticsStatusCountᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.AnalyticsStatusCount) graphql.Marshaler {
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
fc := graphql.GetFieldContext(ctx)
fc.Result = &v[i]
return ec.marshalNAnalyticsStatusCount2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐAnalyticsStatusCount(ctx, sel, v[i])
})
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) marshalNAnalyticsStatusCount2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐAnalyticsStatusCount(ctx context.Context, sel ast.SelectionSet, v *model.AnalyticsStatusCount) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
return ec._AnalyticsStatusCount(ctx, sel, v)
}
func (ec *executionContext) marshalNAnalyticsTransition2ᚕᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐAnalyticsTransitionᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.AnalyticsTransition) graphql.Marshaler {
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
fc := graphql.GetFieldContext(ctx)
fc.Result = &v[i]
return ec.marshalNAnalyticsTransition2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐAnalyticsTransition(ctx, sel, v[i])
})
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) marshalNAnalyticsTransition2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐAnalyticsTransition(ctx context.Context, sel ast.SelectionSet, v *model.AnalyticsTransition) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
return ec._AnalyticsTransition(ctx, sel, v)
}
func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v any) (bool, error) {
res, err := graphql.UnmarshalBoolean(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
_ = sel
res := graphql.MarshalBoolean(v)
if res == graphql.Null {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
}
}
return res
}
func (ec *executionContext) unmarshalNCreateJobAppReferenceInput2adamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐCreateJobAppReferenceInput(ctx context.Context, v any) (model.CreateJobAppReferenceInput, error) {
res, err := ec.unmarshalInputCreateJobAppReferenceInput(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalNCreateJobApplicationInput2adamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐCreateJobApplicationInput(ctx context.Context, v any) (model.CreateJobApplicationInput, error) {
res, err := ec.unmarshalInputCreateJobApplicationInput(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalNCreateJobSourceInput2adamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐCreateJobSourceInput(ctx context.Context, v any) (model.CreateJobSourceInput, error) {
res, err := ec.unmarshalInputCreateJobSourceInput(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalNFloat2float64(ctx context.Context, v any) (float64, error) {
res, err := graphql.UnmarshalFloatContext(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNFloat2float64(ctx context.Context, sel ast.SelectionSet, v float64) graphql.Marshaler {
_ = sel
res := graphql.MarshalFloatContext(v)
if res == graphql.Null {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
}
}
return graphql.WrapContextMarshaler(ctx, res)
}
func (ec *executionContext) unmarshalNID2int(ctx context.Context, v any) (int, error) {
res, err := graphql.UnmarshalIntID(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNID2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler {
_ = sel
res := graphql.MarshalIntID(v)
if res == graphql.Null {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
}
}
return res
}
func (ec *executionContext) unmarshalNID2uint(ctx context.Context, v any) (uint, error) {
res, err := graphql.UnmarshalUintID(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNID2uint(ctx context.Context, sel ast.SelectionSet, v uint) graphql.Marshaler {
_ = sel
res := graphql.MarshalUintID(v)
if res == graphql.Null {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
}
}
return res
}
func (ec *executionContext) unmarshalNID2ᚕintᚄ(ctx context.Context, v any) ([]int, error) {
vSlice := graphql.CoerceList(v)
var err error
res := make([]int, len(vSlice))
for i := range vSlice {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
res[i], err = ec.unmarshalNID2int(ctx, vSlice[i])
if err != nil {
return nil, err
}
}
return res, nil
}
func (ec *executionContext) marshalNID2ᚕintᚄ(ctx context.Context, sel ast.SelectionSet, v []int) graphql.Marshaler {
ret := make(graphql.Array, len(v))
for i := range v {
ret[i] = ec.marshalNID2int(ctx, sel, v[i])
}
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v any) (int, error) {
res, err := graphql.UnmarshalInt(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler {
_ = sel
res := graphql.MarshalInt(v)
if res == graphql.Null {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
}
}
return res
}
func (ec *executionContext) marshalNJobAppReference2ᚕᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobAppReferenceᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.JobAppReference) graphql.Marshaler {
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
fc := graphql.GetFieldContext(ctx)
fc.Result = &v[i]
return ec.marshalNJobAppReference2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobAppReference(ctx, sel, v[i])
})
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) marshalNJobAppReference2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobAppReference(ctx context.Context, sel ast.SelectionSet, v *models.JobAppReference) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
return ec._JobAppReference(ctx, sel, v)
}
func (ec *executionContext) marshalNJobApplication2ᚕᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobApplicationᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.JobApplication) graphql.Marshaler {
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
fc := graphql.GetFieldContext(ctx)
fc.Result = &v[i]
return ec.marshalNJobApplication2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobApplication(ctx, sel, v[i])
})
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) marshalNJobApplication2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobApplication(ctx context.Context, sel ast.SelectionSet, v *models.JobApplication) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
return ec._JobApplication(ctx, sel, v)
}
func (ec *executionContext) marshalNJobApplicationEvent2ᚕᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobApplicationEventᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.JobApplicationEvent) graphql.Marshaler {
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
fc := graphql.GetFieldContext(ctx)
fc.Result = &v[i]
return ec.marshalNJobApplicationEvent2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobApplicationEvent(ctx, sel, v[i])
})
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) marshalNJobApplicationEvent2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobApplicationEvent(ctx context.Context, sel ast.SelectionSet, v *models.JobApplicationEvent) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
return ec._JobApplicationEvent(ctx, sel, v)
}
func (ec *executionContext) marshalNJobLead2ᚕᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobLeadᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.JobLead) graphql.Marshaler {
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
fc := graphql.GetFieldContext(ctx)
fc.Result = &v[i]
return ec.marshalNJobLead2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobLead(ctx, sel, v[i])
})
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) marshalNJobLead2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobLead(ctx context.Context, sel ast.SelectionSet, v *models.JobLead) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
return ec._JobLead(ctx, sel, v)
}
func (ec *executionContext) marshalNJobLeadSyncStatus2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐJobLeadSyncStatus(ctx context.Context, sel ast.SelectionSet, v *model.JobLeadSyncStatus) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
return ec._JobLeadSyncStatus(ctx, sel, v)
}
func (ec *executionContext) marshalNJobSearchProfile2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobSearchProfile(ctx context.Context, sel ast.SelectionSet, v *models.JobSearchProfile) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
return ec._JobSearchProfile(ctx, sel, v)
}
func (ec *executionContext) marshalNJobSource2ᚕᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobSourceᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.JobSource) graphql.Marshaler {
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
fc := graphql.GetFieldContext(ctx)
fc.Result = &v[i]
return ec.marshalNJobSource2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobSource(ctx, sel, v[i])
})
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) marshalNJobSource2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobSource(ctx context.Context, sel ast.SelectionSet, v *models.JobSource) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
return ec._JobSource(ctx, sel, v)
}
func (ec *executionContext) unmarshalNJobStatus2string(ctx context.Context, v any) (string, error) {
res, err := services.UnmarshalJobStatus(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNJobStatus2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
_ = sel
res := services.MarshalJobStatus(v)
if res == graphql.Null {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
}
}
return res
}
func (ec *executionContext) unmarshalNString2string(ctx context.Context, v any) (string, error) {
res, err := graphql.UnmarshalString(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
_ = sel
res := graphql.MarshalString(v)
if res == graphql.Null {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
}
}
return res
}
func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v any) (time.Time, error) {
res, err := graphql.UnmarshalTime(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalNTime2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler {
_ = sel
res := graphql.MarshalTime(v)
if res == graphql.Null {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
}
}
return res
}
func (ec *executionContext) unmarshalNUpdateJobAppReferenceInput2adamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐUpdateJobAppReferenceInput(ctx context.Context, v any) (model.UpdateJobAppReferenceInput, error) {
res, err := ec.unmarshalInputUpdateJobAppReferenceInput(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalNUpdateJobApplicationInput2adamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐUpdateJobApplicationInput(ctx context.Context, v any) (model.UpdateJobApplicationInput, error) {
res, err := ec.unmarshalInputUpdateJobApplicationInput(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalNUpdateJobSearchProfileInput2adamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐUpdateJobSearchProfileInput(ctx context.Context, v any) (model.UpdateJobSearchProfileInput, error) {
res, err := ec.unmarshalInputUpdateJobSearchProfileInput(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalNUpdateJobSourceInput2adamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐUpdateJobSourceInput(ctx context.Context, v any) (model.UpdateJobSourceInput, error) {
res, err := ec.unmarshalInputUpdateJobSourceInput(ctx, v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler {
return ec.___Directive(ctx, sel, &v)
}
func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler {
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
fc := graphql.GetFieldContext(ctx)
fc.Result = &v[i]
return ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i])
})
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v any) (string, error) {
res, err := graphql.UnmarshalString(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
_ = sel
res := graphql.MarshalString(v)
if res == graphql.Null {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
}
}
return res
}
func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v any) ([]string, error) {
vSlice := graphql.CoerceList(v)
var err error
res := make([]string, len(vSlice))
for i := range vSlice {
ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i])
if err != nil {
return nil, err
}
}
return res, nil
}
func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
fc := graphql.GetFieldContext(ctx)
fc.Result = &v[i]
return ec.marshalN__DirectiveLocation2string(ctx, sel, v[i])
})
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler {
return ec.___EnumValue(ctx, sel, &v)
}
func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler {
return ec.___Field(ctx, sel, &v)
}
func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler {
return ec.___InputValue(ctx, sel, &v)
}
func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
fc := graphql.GetFieldContext(ctx)
fc.Result = &v[i]
return ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
})
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler {
return ec.___Type(ctx, sel, &v)
}
func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
fc := graphql.GetFieldContext(ctx)
fc.Result = &v[i]
return ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
})
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
}
return graphql.Null
}
return ec.___Type(ctx, sel, v)
}
func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v any) (string, error) {
res, err := graphql.UnmarshalString(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
_ = sel
res := graphql.MarshalString(v)
if res == graphql.Null {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow")
}
}
return res
}
func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v any) (bool, error) {
res, err := graphql.UnmarshalBoolean(v)
return res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
_ = sel
_ = ctx
res := graphql.MarshalBoolean(v)
return res
}
func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v any) (*bool, error) {
if v == nil {
return nil, nil
}
res, err := graphql.UnmarshalBoolean(v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler {
if v == nil {
return graphql.Null
}
_ = sel
_ = ctx
res := graphql.MarshalBoolean(*v)
return res
}
func (ec *executionContext) unmarshalOFloat2ᚖfloat64(ctx context.Context, v any) (*float64, error) {
if v == nil {
return nil, nil
}
res, err := graphql.UnmarshalFloatContext(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOFloat2ᚖfloat64(ctx context.Context, sel ast.SelectionSet, v *float64) graphql.Marshaler {
if v == nil {
return graphql.Null
}
_ = sel
res := graphql.MarshalFloatContext(*v)
return graphql.WrapContextMarshaler(ctx, res)
}
func (ec *executionContext) unmarshalOID2ᚖuint(ctx context.Context, v any) (*uint, error) {
if v == nil {
return nil, nil
}
res, err := graphql.UnmarshalUintID(v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOID2ᚖuint(ctx context.Context, sel ast.SelectionSet, v *uint) graphql.Marshaler {
if v == nil {
return graphql.Null
}
_ = sel
_ = ctx
res := graphql.MarshalUintID(*v)
return res
}
func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v any) (*int, error) {
if v == nil {
return nil, nil
}
res, err := graphql.UnmarshalInt(v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler {
if v == nil {
return graphql.Null
}
_ = sel
_ = ctx
res := graphql.MarshalInt(*v)
return res
}
func (ec *executionContext) marshalOJobApplication2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobApplication(ctx context.Context, sel ast.SelectionSet, v *models.JobApplication) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._JobApplication(ctx, sel, v)
}
func (ec *executionContext) marshalOJobLead2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋmodelsᚐJobLead(ctx context.Context, sel ast.SelectionSet, v *models.JobLead) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._JobLead(ctx, sel, v)
}
func (ec *executionContext) unmarshalOJobLeadFilters2ᚖadamᚑfrenchᚗcoᚗukᚋjobᚑtrackerᚋinternalᚋgraphᚋmodelᚐJobLeadFilters(ctx context.Context, v any) (*model.JobLeadFilters, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalInputJobLeadFilters(ctx, v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) unmarshalOJobStatus2ᚖstring(ctx context.Context, v any) (*string, error) {
if v == nil {
return nil, nil
}
res, err := services.UnmarshalJobStatus(v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOJobStatus2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
if v == nil {
return graphql.Null
}
_ = sel
_ = ctx
res := services.MarshalJobStatus(*v)
return res
}
func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v any) (*string, error) {
if v == nil {
return nil, nil
}
res, err := graphql.UnmarshalString(v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
if v == nil {
return graphql.Null
}
_ = sel
_ = ctx
res := graphql.MarshalString(*v)
return res
}
func (ec *executionContext) unmarshalOTime2ᚖtimeᚐTime(ctx context.Context, v any) (*time.Time, error) {
if v == nil {
return nil, nil
}
res, err := graphql.UnmarshalTime(v)
return &res, graphql.ErrorOnPath(ctx, err)
}
func (ec *executionContext) marshalOTime2ᚖtimeᚐTime(ctx context.Context, sel ast.SelectionSet, v *time.Time) graphql.Marshaler {
if v == nil {
return graphql.Null
}
_ = sel
_ = ctx
res := graphql.MarshalTime(*v)
return res
}
func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
fc := graphql.GetFieldContext(ctx)
fc.Result = &v[i]
return ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i])
})
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
fc := graphql.GetFieldContext(ctx)
fc.Result = &v[i]
return ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i])
})
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
fc := graphql.GetFieldContext(ctx)
fc.Result = &v[i]
return ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
})
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec.___Schema(ctx, sel, v)
}
func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler {
fc := graphql.GetFieldContext(ctx)
fc.Result = &v[i]
return ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
})
for _, e := range ret {
if e == graphql.Null {
return graphql.Null
}
}
return ret
}
func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec.___Type(ctx, sel, v)
}
// endregion ***************************** type.gotpl *****************************